@shopware-ag/dive 1.19.1-beta.2 → 1.19.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { ARSystemOptions } from '../AR';
1
+ import { ARSystemOptions } from '../ARSystem';
2
2
  export declare class ARQuickLook {
3
3
  launch(uri: string, options?: ARSystemOptions): Promise<void>;
4
4
  private convertToUSDZ;
@@ -1,4 +1,4 @@
1
- import { ARSystemOptions } from '../AR';
1
+ import { ARSystemOptions } from '../ARSystem';
2
2
  export declare class SceneViewer {
3
3
  launch(uri: string, options?: ARSystemOptions): void;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { ARSystemOptions } from '../../../ar/AR';
1
+ import { ARSystemOptions } from '../../../ar/ARSystem';
2
2
  export default interface LAUNCH_AR {
3
3
  DESCRIPTION: 'Launches AR mode in native capabilities. (iOS: AR Quick Look, Android: Google Scene Viewer)';
4
4
  PAYLOAD: {
@@ -6,7 +6,5 @@ export declare class Converter {
6
6
  private _exporter;
7
7
  constructor(_uri: string);
8
8
  static convert(uri: string): Converter;
9
- private _getFileTypeFromUri;
10
- private _loadFile;
11
9
  to<T extends FileType>(type: T, options?: FileTypeToExporterOptions[T]): Promise<ArrayBuffer>;
12
10
  }
@@ -60,7 +60,7 @@ export default class DIVE {
60
60
  }
61
61
  export { DIVE, DIVECommunication };
62
62
  export * from './math/index.ts';
63
- export * from './ar/AR';
64
- export type * from './com/actions/index.ts';
65
- export type * from './com/types';
66
- export type * from './types';
63
+ export * from './ar/ARSystem.ts';
64
+ export * from './com/actions/index.ts';
65
+ export * from './com/types';
66
+ export * from './types';
@@ -0,0 +1,12 @@
1
+ export declare class ARCompatibilityError extends Error {
2
+ readonly browserInfo: {
3
+ userAgent: string;
4
+ platform: string;
5
+ vendor: string;
6
+ browser: string;
7
+ version: string;
8
+ os: string;
9
+ osVersion: string;
10
+ };
11
+ constructor(baseMessage: string, userAgent: string, platform: string, vendor: string);
12
+ }
@@ -0,0 +1,4 @@
1
+ export declare class FileTypeError extends Error {
2
+ readonly requestedFileType: string;
3
+ constructor(message: string, requestedFileType: string);
4
+ }
@@ -0,0 +1,4 @@
1
+ export { ParseError } from './parse/parse-error';
2
+ export { FileTypeError } from './file-type/file-type-error';
3
+ export { NetworkError } from './network/network-error';
4
+ export { ARCompatibilityError } from './ar-compatibility/ar-compatibility-error';
@@ -0,0 +1,5 @@
1
+ export declare class NetworkError extends Error {
2
+ readonly url: string;
3
+ readonly cause?: unknown | undefined;
4
+ constructor(url: string, message: string, cause?: unknown | undefined);
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare class ParseError extends Error {
2
+ readonly cause?: unknown | undefined;
3
+ constructor(message: string, cause?: unknown | undefined);
4
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Extracts the file extension from a URI
3
+ * @param uri The URI to extract the extension from
4
+ * @returns The file extension in lowercase, or an empty string if no extension is found
5
+ */
6
+ export declare function getFileTypeFromUri(uri: string): string;
@@ -0,0 +1,7 @@
1
+ export * from './getFileTypeFromUri/getFileTypeFromUri';
2
+ export * from './isFileTypeSupported/isFileTypeSupported';
3
+ export * from './findSceneRecursive/findSceneRecursive';
4
+ export * from './getObjectDelta/getObjectDelta';
5
+ export * from './isInterface/implementsInterface';
6
+ export * from './findInterface/findInterface';
7
+ export * from './applyMixins/applyMixins';
@@ -0,0 +1,7 @@
1
+ import { FileType } from '../../types/file/FileTypes';
2
+ /**
3
+ * Checks if a file extension is supported
4
+ * @param extension The file extension to check
5
+ * @returns True if the extension is supported, false otherwise
6
+ */
7
+ export declare function isFileTypeSupported(extension: string): extension is FileType;
@@ -29,6 +29,7 @@ export declare class SystemInfo {
29
29
  * (Chrome, Firefox, etc.) do not support ARQuickLook, even on iOS.
30
30
  *
31
31
  * @returns boolean indicating if ARQuickLook is supported
32
+ * @throws ARCompatibilityError if ARQuickLook is not supported, with detailed browser information
32
33
  */
33
34
  static GetSupportsARQuickLook(): boolean;
34
35
  /**
@@ -3,5 +3,6 @@ export declare class Loader {
3
3
  private _gltfLoader;
4
4
  private _usdzLoader;
5
5
  constructor();
6
+ private _loadFile;
6
7
  load(uri: string): Promise<Object3D>;
7
8
  }
@@ -1,4 +1,4 @@
1
- declare const FILE_TYPES: {
1
+ export declare const FILE_TYPES: {
2
2
  readonly glb: {
3
3
  readonly key: "glb";
4
4
  readonly extension: "glb";
@@ -14,4 +14,3 @@ declare const FILE_TYPES: {
14
14
  };
15
15
  export type FileType = keyof typeof FILE_TYPES;
16
16
  export declare const SUPPORTED_FILE_TYPES: readonly string[];
17
- export {};
@@ -2,4 +2,5 @@ export * from './SceneData';
2
2
  export * from './SceneObjects';
3
3
  export * from './SceneType';
4
4
  export * from './file';
5
+ export * from '../error';
5
6
  export * from './info';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/dive",
3
- "version": "1.19.1-beta.2",
3
+ "version": "1.19.1-beta.3",
4
4
  "description": "Shopware Spatial Framework",
5
5
  "type": "module",
6
6
  "main": "build/dive.cjs",
@@ -1,12 +0,0 @@
1
- export declare class ConversionError extends Error {
2
- readonly cause?: unknown | undefined;
3
- constructor(message: string, cause?: unknown | undefined);
4
- }
5
- export declare class FileTypeError extends Error {
6
- constructor(message: string);
7
- }
8
- export declare class NetworkError extends Error {
9
- readonly url: string;
10
- readonly cause?: unknown | undefined;
11
- constructor(url: string, message: string, cause?: unknown | undefined);
12
- }
File without changes