@smplrspace/smplr-loader 2.28.1-beta.36 → 2.28.1-beta.37

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.
@@ -213,14 +213,17 @@ export declare class Editor {
213
213
  startSession(options?: SessionOptions): void;
214
214
  }
215
215
 
216
- export declare interface EditorOptions {
216
+ export declare type EditorOptions = {
217
217
  spaceId: string;
218
218
  user: EmbeddedEditorUser;
219
219
  clientToken: string;
220
- containerId: string;
221
220
  disableErrorReporting?: boolean;
222
221
  whiteLabel?: boolean;
223
- }
222
+ } & ({
223
+ containerId: string;
224
+ } | {
225
+ container: HTMLElement;
226
+ });
224
227
 
225
228
  export declare interface EmbeddedEditorUser {
226
229
  id: string;
@@ -461,13 +464,16 @@ export declare interface MapCameraPlacement {
461
464
  center: GeoPoint;
462
465
  }
463
466
 
464
- export declare interface MapOptions {
467
+ export declare type MapOptions = {
465
468
  clientToken: string;
466
- containerId: string;
467
469
  disableErrorReporting?: boolean;
468
470
  internal?: boolean;
469
471
  sideLoadedAuth0?: Pick<Auth0ContextValue, 'getTokenSilently'>;
470
- }
472
+ } & ({
473
+ containerId: string;
474
+ } | {
475
+ container: HTMLElement;
476
+ });
471
477
 
472
478
  export declare interface MapSpaceRenderOptions {
473
479
  footprint: {
@@ -1021,16 +1027,19 @@ export declare class Space {
1021
1027
  }): Promise<string>;
1022
1028
  }
1023
1029
 
1024
- export declare interface SpaceOptions {
1030
+ export declare type SpaceOptions = {
1025
1031
  spaceId: string;
1026
1032
  spaceDefinition?: object;
1027
1033
  clientToken: string;
1028
- containerId: string;
1029
1034
  disableErrorReporting?: boolean;
1030
1035
  whiteLabel?: boolean;
1031
1036
  internal?: boolean;
1032
1037
  sideLoadedAuth0?: Pick<Auth0ContextValue, 'getTokenSilently'>;
1033
- }
1038
+ } & ({
1039
+ containerId: string;
1040
+ } | {
1041
+ container: HTMLElement;
1042
+ });
1034
1043
 
1035
1044
  export declare interface SpaceRenderOptions {
1036
1045
  compass?: boolean
@@ -1136,7 +1145,7 @@ declare interface Vector3Coord extends Vector2Coord {
1136
1145
  z: number;
1137
1146
  }
1138
1147
 
1139
- export declare const version = "2.28.1-beta.36";
1148
+ export declare const version = "2.28.1-beta.37";
1140
1149
 
1141
1150
  declare interface ViewerRendererHandle {
1142
1151
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smplrspace/smplr-loader",
3
- "version": "2.28.1-beta.36",
3
+ "version": "2.28.1-beta.37",
4
4
  "description": "NPM package to load a typed Smplr.js from CDN easily",
5
5
  "type": "module",
6
6
  "files": [