@3dsource/metabox-front-api 1.2.2-dev.5 → 1.2.3-dev.0

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.
package/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- import { MetaBoxCommandPacket } from '@3dsource/types-unreal';
2
- import { UnrealCallBackJson, UnrealState, StreamResolutionProps } from '@3dsource/angular-unreal-module';
3
1
  import { Observable } from 'rxjs';
4
2
 
5
3
  type ApplicationDeviceTypes = 'deviceTypeAuto' | 'deviceTypeMobile' | 'deviceTypeDesktop';
@@ -29,8 +27,8 @@ declare const MetaboxBasicConfiguratorActions: {
29
27
  readonly setEnvironmentMaterialById: "setEnvironmentMaterialById";
30
28
  readonly setProduct: "setProduct";
31
29
  readonly setMaterialById: "setMaterialById";
32
- readonly sendCommandToUnreal: "sendCommandToUnreal";
33
30
  readonly getPdf: "getPdf";
31
+ readonly getCallToActionInformation: "getCallToActionInformation";
34
32
  readonly getScreenshot: "getScreenshot";
35
33
  readonly getFastRender: "getFastRender";
36
34
  readonly showEmbeddedMenu: "showEmbeddedMenu";
@@ -42,8 +40,9 @@ declare const MetaboxBasicConfiguratorActions: {
42
40
  readonly playShowcase: "playShowcase";
43
41
  readonly pauseShowcase: "pauseShowcase";
44
42
  readonly stopShowcase: "stopShowcase";
45
- readonly watchCallbacks: "watchCallbacks";
43
+ readonly sendCommandToUnreal: "sendCommandToUnreal";
46
44
  readonly addResponse: "addResponse";
45
+ readonly watchCallbacks: "watchCallbacks";
47
46
  };
48
47
  type ToMetaBoxActions = (typeof MetaboxBasicConfiguratorActions)[keyof typeof MetaboxBasicConfiguratorActions];
49
48
  /**
@@ -56,6 +55,7 @@ type ToMetaboxMessagePayload = ToMetaboxMessagePayloads[keyof ToMetaboxMessagePa
56
55
  */
57
56
  interface ToMetaboxMessagePayloads {
58
57
  [MetaboxBasicConfiguratorActions.getPdf]: void;
58
+ [MetaboxBasicConfiguratorActions.getCallToActionInformation]: void;
59
59
  [MetaboxBasicConfiguratorActions.loadLevel]: {
60
60
  id: string;
61
61
  };
@@ -64,13 +64,11 @@ interface ToMetaboxMessagePayloads {
64
64
  };
65
65
  /**
66
66
  * @deprecated
67
- * @hidden
67
+ * @hidden use
68
+ * {@link MetaboxBasicConfiguratorActions.watchCallbacks}
68
69
  */
69
70
  [MetaboxBasicConfiguratorActions.addResponse]: void;
70
- /**
71
- * @deprecated
72
- * @hidden
73
- */
71
+ [MetaboxBasicConfiguratorActions.watchCallbacks]: void;
74
72
  [MetaboxBasicConfiguratorActions.getFastRender]: {
75
73
  format: MimeType;
76
74
  size?: {
@@ -85,12 +83,10 @@ interface ToMetaboxMessagePayloads {
85
83
  y: number;
86
84
  };
87
85
  };
88
- [MetaboxBasicConfiguratorActions.watchCallbacks]: void;
89
86
  [MetaboxBasicConfiguratorActions.setMaterialById]: {
90
87
  slotId: string;
91
88
  materialId: string;
92
89
  };
93
- [MetaboxBasicConfiguratorActions.sendCommandToUnreal]: MetaBoxCommandPacket;
94
90
  [MetaboxBasicConfiguratorActions.setEnvironmentMaterialById]: {
95
91
  slotId: string;
96
92
  materialId: string;
@@ -114,6 +110,7 @@ interface ToMetaboxMessagePayloads {
114
110
  [MetaboxBasicConfiguratorActions.playShowcase]: void;
115
111
  [MetaboxBasicConfiguratorActions.pauseShowcase]: void;
116
112
  [MetaboxBasicConfiguratorActions.stopShowcase]: void;
113
+ [MetaboxBasicConfiguratorActions.sendCommandToUnreal]: object;
117
114
  }
118
115
  interface ToMetaBoxMessageEnvelope {
119
116
  action: ToMetaBoxActions;
@@ -124,6 +121,31 @@ interface ToMetaBoxMessage {
124
121
  payload: ToMetaBoxMessageEnvelope;
125
122
  }
126
123
 
124
+ /** Represents an ecom configurator object with all necessary information about cta */
125
+ interface EcomConfigurator {
126
+ /** The unique ecom configurator identifier. */
127
+ id: string;
128
+ /** The created data of ecom configurator. */
129
+ createdAt: string;
130
+ /** A reference to the Call To Action Information. */
131
+ cta?: Cta;
132
+ /** GraphQL typename for the ecom configurator. */
133
+ __typename: 'Configurator';
134
+ }
135
+ /**
136
+ * Represents the call-to-action information for an ecom configurator.
137
+ */
138
+ interface Cta {
139
+ /** The indicator of whether the call-to-action is enabled or not. */
140
+ enabled: boolean;
141
+ /** Label of button for call-to-action. */
142
+ label: string;
143
+ /** Callback URL using for sent configurator selected information to this url and redirected to the url after get response. */
144
+ callbackUrl: string;
145
+ /** GraphQL typename for the CTA object. */
146
+ __typename: 'Cta';
147
+ }
148
+
127
149
  /**
128
150
  * Represents a basic configurator object with its configuration, selected materials,
129
151
  * product identifier, and associated environment with its materials.
@@ -173,6 +195,7 @@ interface UniversalConfigurator {
173
195
  environments: UniversalConfiguratorEnvironment[];
174
196
  /** The camera settings used in the configurator. */
175
197
  /** Indicates if the configurator is active. */
198
+ isActive: boolean;
176
199
  /** GraphQL typename for the configurator. */
177
200
  __typename: 'UniversalConfigurator';
178
201
  }
@@ -210,6 +233,7 @@ interface Product {
210
233
  /** Unique external id for the product. */
211
234
  externalId: string;
212
235
  /** Showcase details for the product. */
236
+ showcase?: Showcase;
213
237
  /** GraphQL typename for the product. */
214
238
  __typename: 'Product';
215
239
  }
@@ -270,6 +294,28 @@ interface Material {
270
294
  /** GraphQL typename for the material. */
271
295
  __typename: 'Material';
272
296
  }
297
+ /**
298
+ * Details showcase the presentation of a product.
299
+ */
300
+ interface Showcase {
301
+ /** A list of low-bandwidth versions for the showcase (optional). */
302
+ lowBandwidth?: (Timecode | null)[] | null;
303
+ /** Duration for the showcase (optional). */
304
+ duration?: number;
305
+ /** GraphQL typename for the showcase. */
306
+ __typename: 'Showcase';
307
+ }
308
+ /**
309
+ * Represents a low-bandwidth entity used in showcases in LBM mode.
310
+ */
311
+ interface Timecode {
312
+ /** Time marker for the entity. */
313
+ time: number;
314
+ /** Duration of the entity display. */
315
+ duration: number;
316
+ /** GraphQL typename (as a string, flexible type). */
317
+ __typename: 'Timecode';
318
+ }
273
319
  /**
274
320
  * Represents the environment settings for a universal configurator.
275
321
  */
@@ -294,8 +340,11 @@ interface Environment {
294
340
  /** Title or name of the environment. */
295
341
  title: string;
296
342
  /** Flag indicating if UDS is enabled. */
343
+ udsEnabled: boolean;
297
344
  /** The north yaw of the sun in the environment. */
345
+ sunNorthYaw: number;
298
346
  /** The UDS hour setting for the environment. */
347
+ udsHour: number;
299
348
  /** GraphQL typename for the environment. */
300
349
  __typename: 'Environment';
301
350
  /** List of thumbnails for the environment (optional). */
@@ -311,22 +360,34 @@ type SelectedIds = Record<string, Record<string, string>>;
311
360
  * Defines the structure for an available showcase status for the current product on a scene.
312
361
  */
313
362
  type ShowCaseStatus = 'init' | 'play' | 'pause' | 'stop';
363
+ /**
364
+ * Defines the structure for a video resolution.
365
+ */
366
+ interface VideoResolution {
367
+ width: number | null;
368
+ height: number | null;
369
+ }
314
370
 
315
371
  interface FromMetaboxMessagePayloads {
316
372
  /**
317
- * Dispatches Every time the configurator data is updated.
318
- * I.e., when the user changes the configuration. (Material, Product, Environment)
373
+ * @hidden
374
+ * @deprecated use {@link FromMetaboxMessagePayloads.configuratorDataUpdated}
319
375
  */
320
376
  configuratorData: ConfiguratorEnvelope;
321
377
  /**
322
378
  * @hidden
323
- * @deprecated, use configuratorData instead.
379
+ * @deprecated use {@link FromMetaboxMessagePayloads.configuratorDataUpdated}
324
380
  */
325
381
  basicConfiguratorDataWithState: ConfiguratorEnvelope;
326
382
  /**
327
- * Dispatches Every time when the configurator product showcase will be changed.
383
+ * Dispatches Every time the configurator data is updated.
384
+ * I.e., when the user changes the configuration. (Material, Product, Environment)
385
+ */
386
+ configuratorDataUpdated: ConfiguratorEnvelope;
387
+ /**
388
+ * Dispatches Every time the ecom configurator data is updated (label, endpointUrl).
328
389
  */
329
- showcaseStatus: ShowCaseStatus;
390
+ ecomConfiguratorDataUpdated: EcomConfigurator;
330
391
  /**
331
392
  * Dispatches Every time when the configurator connected/disconnected with Unreal Engine.
332
393
  */
@@ -336,16 +397,28 @@ interface FromMetaboxMessagePayloads {
336
397
  */
337
398
  viewportReady: boolean;
338
399
  /**
400
+ * Dispatches at the moment while the configurator loads. Shows status information..
401
+ */
402
+ showcaseStatusChanged: ShowCaseStatus;
403
+ /**
404
+ * @hidden
405
+ * @deprecated
339
406
  * Dispatches Every when user toggles fullscreen button in an internal menu.
340
407
  */
341
408
  isFullScreen: boolean;
342
409
  /**
410
+ * @hidden
411
+ * @deprecated use {@link FromMetaboxMessagePayloads.statusMessageChanged}
343
412
  * Dispatches at the moment while the configurator loads. Shows status information.
344
413
  */
345
414
  statusMessage: string | null;
346
415
  /**
347
- * @deprecated
416
+ * Dispatches at the moment while the configurator loads. Shows status information.
417
+ */
418
+ statusMessageChanged: string | null;
419
+ /**
348
420
  * @hidden
421
+ * @deprecated
349
422
  * Dispatches every time when the freeze-frame is arrived or updated.
350
423
  */
351
424
  freezeFrame: {
@@ -353,47 +426,68 @@ interface FromMetaboxMessagePayloads {
353
426
  progress: number | null;
354
427
  };
355
428
  /**
356
- * @experimental
357
- * Dispatches every Unreal is sending a command callback.
358
- * Works only after the new WatchCallbacks () command is sent.
429
+ * Dispatches every time when Unreal is sending ordered render with new GetScreenshot() command.
359
430
  */
360
- unrealCallback: {
361
- json: UnrealCallBackJson;
362
- };
431
+ screenshotReady: string | null;
363
432
  /**
364
- * Dispatches every time when Unreal is sending ordered render with new GetFastRender() command.
433
+ * @hidden
434
+ * @deprecated use {@link FromMetaboxMessagePayloads.screenshotReady}
435
+ * Dispatches every time when Unreal is sending ordered render with new GetScreenshot() command.
365
436
  */
366
437
  screenshot: string | null;
438
+ /**
439
+ * @hidden
440
+ * @deprecated, use {@link FromMetaboxMessagePayloads.screenshotReady}
441
+ */
367
442
  getScreenshot: string | null;
368
443
  /**
369
444
  * @hidden
370
- * @deprecated, use screenshot
445
+ * @deprecated, use {@link FromMetaboxMessagePayloads.screenshotReady}
371
446
  */
372
447
  fastRender: string | null;
373
448
  /**
374
449
  * @hidden
375
- * @deprecated, use fastRender
450
+ * @deprecated, use {@link FromMetaboxMessagePayloads.screenshotReady}
376
451
  */
377
452
  getFastRender: string | null;
378
453
  /**
454
+ * @internal
455
+ * Dispatches every Unreal is sending a command callback.
456
+ * Works only after the new WatchCallbacks () command is sent.
457
+ * !!! WARNING use at your own risk. We don't guarantee right behavior
458
+ *
459
+ */
460
+ unrealCallback: {
461
+ json: object;
462
+ };
463
+ /**
464
+ * @hidden
465
+ * @internal
379
466
  * @experimental
380
- * Dispatches every Unreal state is changing, including all unreal module state.
467
+ * Dispatches every Unreal state is changing, including all unreal module current state.
468
+ * !!! WARNING use at your own risk. We don't guarantee right behavior
381
469
  */
382
- unrealState: UnrealState;
470
+ unrealState: object;
383
471
  /**
384
472
  * @hidden
385
- * @deprecated, use unrealState
473
+ * @internal
474
+ * @deprecated, use {@link FromMetaboxMessagePayloads.unrealState}
386
475
  */
387
- unrealFeature: UnrealState;
476
+ unrealFeature: object;
388
477
  /**
389
478
  * Dispatches every time when Unreal is changing its video stream size.
390
479
  */
391
- videoResolution: StreamResolutionProps;
480
+ videoResolutionChanged: VideoResolution;
392
481
  /**
393
482
  * @hidden
394
- * @deprecated, use videoResolution
483
+ * @deprecated, use ${@link FromMetaboxMessagePayloads.videoResolutionChanged }
395
484
  */
396
- streamResolution: StreamResolutionProps;
485
+ videoResolution: VideoResolution;
486
+ /**
487
+ * @hidden
488
+ * @deprecated, use ${@link FromMetaboxMessagePayloads.videoResolutionChanged }
489
+ */
490
+ streamResolution: VideoResolution;
397
491
  }
398
492
  /**
399
493
  * @hidden
@@ -597,17 +691,6 @@ declare function integrateMetaBox(iframeSrc: string, containerId: string | undef
597
691
  */
598
692
  declare function saveImage(imageUrl: string, filename: string): void;
599
693
 
600
- /**
601
- * Pauses execution for a specified duration.
602
- *
603
- * @remarks
604
- * This function returns a promise that resolves after the given number of milliseconds.
605
- *
606
- * @param {number} time - The time to sleep in milliseconds.
607
- * @returns A promise that resolves after the specified duration.
608
- */
609
- declare function sleep(time: number): Promise<void>;
610
-
611
694
  /**
612
695
  * Sets the URL parameters based on the provided state.
613
696
  *
@@ -635,7 +718,7 @@ declare function getUrlParams(): Record<string, string>;
635
718
  declare function fromCommunicatorEvent<T extends FromMetaBoxApiEvents>(target: Communicator, eventName: T): Observable<FromMetaboxMessagePayloads[T]>;
636
719
 
637
720
  /**
638
- * Represents a command to get a PDF from Metabox.
721
+ * Represents a command to get a PDF from Metabox Basic Configurator.
639
722
  * @remarks
640
723
  * This class sends a message to the Metabox API to generate a PDF based on the current configuration.
641
724
  * This action does not require any parameters.
@@ -644,7 +727,7 @@ declare function fromCommunicatorEvent<T extends FromMetaBoxApiEvents>(target: C
644
727
  *
645
728
  * @example
646
729
  * import { GetPdf, Communicator } from '@3dsource/metabox-front-api';
647
- * window.env3DSource.apiReady = (api:Communicator) => {
730
+ * window.env3DSource.apiReady = (api: Communicator) => {
648
731
  * api.sendCommandToMetaBox(new GetPdf());
649
732
  * };
650
733
  */
@@ -658,6 +741,30 @@ declare class GetPdf extends CommandBase {
658
741
  constructor();
659
742
  }
660
743
 
744
+ /**
745
+ * Represents a command to get a Call To Action Information from Metabox Basic Configurator.
746
+ * @remarks
747
+ * This class sends a message to the Metabox API to generate Call To Action information based on the current configuration and sends it to the endpoint url from the cta information.
748
+ * This action does not require any parameters.
749
+ *
750
+ * **Important**: Invoking this command will buffer it until the viewport is ready. Only then will the request be processed.
751
+ *
752
+ * @example
753
+ * import { GetCallToActionInformation, Communicator } from '@3dsource/metabox-front-api';
754
+ * window.env3DSource.apiReady = (api: Communicator) => {
755
+ * api.sendCommandToMetaBox(new GetCallToActionInformation());
756
+ * };
757
+ */
758
+ declare class GetCallToActionInformation extends CommandBase {
759
+ /**
760
+ * Creates an instance of GetCallToActionInformation.
761
+ *
762
+ * @remarks
763
+ * This constructor does not require any parameters.
764
+ */
765
+ constructor();
766
+ }
767
+
661
768
  /**
662
769
  * Image format.
663
770
  * @remarks
@@ -671,7 +778,7 @@ type MimeType = 'image/png' | 'image/jpeg' | 'image/webp';
671
778
  *
672
779
  * @example
673
780
  * import { GetScreenshot, Communicator, saveImage } from '@3dsource/metabox-front-api';
674
- * window.env3DSource.apiReady = (api:Communicator) => {
781
+ * window.env3DSource.apiReady = (api: Communicator) => {
675
782
  * // Listen for events from to the Metabox API
676
783
  * api.addEventListener('screenshot', (data) => {
677
784
  * // Process the get screenshot response
@@ -692,6 +799,9 @@ declare class GetScreenshot extends CommandBase {
692
799
  });
693
800
  }
694
801
 
802
+ /**
803
+ * @deprecated, use {@link GetScreenshot} instead.
804
+ */
695
805
  declare const GetFastRender: typeof GetScreenshot;
696
806
 
697
807
  /**
@@ -704,7 +814,7 @@ declare const GetFastRender: typeof GetScreenshot;
704
814
  *
705
815
  * @example
706
816
  * import { ResetCamera, Communicator } from '@3dsource/metabox-front-api';
707
- * window.env3DSource.apiReady = (api:Communicator) => {
817
+ * window.env3DSource.apiReady = (api: Communicator) => {
708
818
  * api.sendCommandToMetaBox(new ResetCamera());
709
819
  * };
710
820
  */
@@ -727,7 +837,7 @@ declare class ResetCamera extends CommandBase {
727
837
  *
728
838
  * @example
729
839
  * import { ApplyZoom, Communicator } from '@3dsource/metabox-front-api';
730
- * window.env3DSource.apiReady = (api:Communicator) => {
840
+ * window.env3DSource.apiReady = (api: Communicator) => {
731
841
  * api.sendCommandToMetaBox(new ApplyZoom(10));
732
842
  * api.sendCommandToMetaBox(new ApplyZoom(-10));
733
843
  * };
@@ -742,23 +852,25 @@ declare class ApplyZoom extends CommandBase {
742
852
  }
743
853
 
744
854
  /**
745
- * Represents a command to Init Showcase for a product on a scene and start a sequence for the product.
855
+ * Represents a command to Init Showcase for a product a scene and start a sequence for the product.
746
856
  * @remarks
747
857
  * This class sends a command to the Metabox API to init showcase if the product has a sequence.
858
+ * For check this needs to find a showcase property in the current product.
859
+ * If this property exists, you can send init showcase command.
748
860
  *
749
861
  * **Important**: Invoking this command will buffer it until the viewport is ready. Only then will the request be processed.
750
862
  *
751
863
  * @example
864
+ * ```typescript
752
865
  * import { InitShowcase, Communicator } from '@3dsource/metabox-front-api';
753
- * window.env3DSource.apiReady = (api:Communicator) => {
754
- * api.sendCommandToMetaBox(new InitShowcase('ffea6b5c-3a8a-4f56-9417-e605acb5cca3');
866
+ * window.env3DSource.apiReady = (api: Communicator) => {
867
+ * api.sendCommandToMetaBox(new InitShowcase('ffea6b5c-3a8a-4f56-9417-e605acb5cca3'));
755
868
  * };
756
869
  */
757
870
  declare class InitShowcase extends CommandBase {
758
871
  /**
759
872
  * Creates an instance of InitShowcase.
760
- *
761
- * @param {string} productId
873
+ * @param {string} productId - The unique identifier for the product
762
874
  */
763
875
  constructor(productId: string);
764
876
  }
@@ -772,7 +884,7 @@ declare class InitShowcase extends CommandBase {
772
884
  *
773
885
  * @example
774
886
  * import { PlayShowcase, Communicator } from '@3dsource/metabox-front-api';
775
- * window.env3DSource.apiReady = (api:Communicator) => {
887
+ * window.env3DSource.apiReady = (api: Communicator) => {
776
888
  * api.sendCommandToMetaBox(new PlayShowcase());
777
889
  * };
778
890
  */
@@ -786,6 +898,15 @@ declare class PlayShowcase extends CommandBase {
786
898
  constructor();
787
899
  }
788
900
 
901
+ /**
902
+ * @internal
903
+ * @hidden
904
+ * Represents a command to send Unreal command.
905
+ */
906
+ declare class UnrealCommand extends CommandBase {
907
+ constructor(payload: object);
908
+ }
909
+
789
910
  /**
790
911
  * Represents a command to Pause Showcase for a product when it already init and play, and you call pause.
791
912
  * @remarks
@@ -795,7 +916,7 @@ declare class PlayShowcase extends CommandBase {
795
916
  *
796
917
  * @example
797
918
  * import { PauseShowcase, Communicator } from '@3dsource/metabox-front-api';
798
- * window.env3DSource.apiReady = (api:Communicator) => {
919
+ * window.env3DSource.apiReady = (api: Communicator) => {
799
920
  * api.sendCommandToMetaBox(new PauseShowcase());
800
921
  * };
801
922
  */
@@ -818,7 +939,7 @@ declare class PauseShowcase extends CommandBase {
818
939
  *
819
940
  * @example
820
941
  * import { StopShowcase, Communicator } from '@3dsource/metabox-front-api';
821
- * window.env3DSource.apiReady = (api:Communicator) => {
942
+ * window.env3DSource.apiReady = (api: Communicator) => {
822
943
  * api.sendCommandToMetaBox(new StopShowcase());
823
944
  * };
824
945
  */
@@ -842,7 +963,7 @@ declare class StopShowcase extends CommandBase {
842
963
  * import { SetProduct, Communicator } from '@3dsource/metabox-front-api';
843
964
  *
844
965
  * //...Assume that the integration is already implemented
845
- * window.env3DSource.apiReady = (api:Communicator) => {
966
+ * window.env3DSource.apiReady = (api: Communicator) => {
846
967
  * api.setCommandToMetaBox(new SetProduct(
847
968
  * 'ffea6b5c-3a8a-4f56-9417-e605acb5cca3'
848
969
  * ));
@@ -864,7 +985,7 @@ declare class SetProduct extends CommandBase {
864
985
  * import { SetMaterial, Communicator } from '@3dsource/metabox-front-api';
865
986
  *
866
987
  * //...Assume that the integration is already implemented
867
- * window.env3DSource.apiReady = (api:Communicator) => {
988
+ * window.env3DSource.apiReady = (api: Communicator) => {
868
989
  * api.sendCommandToMetaBox(new SetMaterial(
869
990
  * 'carpaint',
870
991
  * 'dd829d6e-9200-47a7-8d5b-af5df89b7e91',
@@ -888,7 +1009,7 @@ declare class SetMaterial extends CommandBase {
888
1009
  * import { SetEnvironment, Communicator } from '@3dsource/metabox-front-api';
889
1010
  *
890
1011
  * //...Assume that the integration is already implemented
891
- * window.env3DSource.apiReady = (api:Communicator) => {
1012
+ * window.env3DSource.apiReady = (api: Communicator) => {
892
1013
  * // Change the environment to '55555555-1234-1234-1234-01234567890'
893
1014
  * api.sendCommandToMetaBox(new SetEnvironment('55555555-1234-1234-1234-01234567890'));
894
1015
  * };
@@ -909,7 +1030,7 @@ declare class SetEnvironment extends CommandBase {
909
1030
  * import { SetEnvironmentMaterial, Communicator } from '@3dsource/metabox-front-api';
910
1031
  *
911
1032
  * //...Assume that the integration is already implemented
912
- * window.env3DSource.apiReady = (api:Communicator) => {
1033
+ * window.env3DSource.apiReady = (api: Communicator) => {
913
1034
  * api.sendCommandToMetaBox(new SetEnvironmentMaterial(
914
1035
  * 'carpaint',
915
1036
  * 'dd829d6e-9200-47a7-8d5b-af5df89b7e91',
@@ -933,7 +1054,7 @@ declare class SetEnvironmentMaterial extends CommandBase {
933
1054
  * import { ShowEmbeddedMenu, Communicator } from '@3dsource/metabox-front-api';
934
1055
  *
935
1056
  * //...Assume that the integration is already implemented
936
- * window.env3DSource.apiReady = (api:Communicator) => {
1057
+ * window.env3DSource.apiReady = (api: Communicator) => {
937
1058
  * api.setCommandToMetaBox(new ShowEmbeddedMenu(true));
938
1059
  * };
939
1060
  */
@@ -956,7 +1077,7 @@ declare class ShowEmbeddedMenu extends CommandBase {
956
1077
  * import { ShowOverlayInterface, Communicator } from '@3dsource/metabox-front-api';
957
1078
  *
958
1079
  * //...Assume that the integration is already implemented
959
- * window.env3DSource.apiReady = (api:Communicator) => {
1080
+ * window.env3DSource.apiReady = (api: Communicator) => {
960
1081
  * api.setCommandToMetaBox(new ShowOverlayInterface(true));
961
1082
  * };
962
1083
  */
@@ -969,15 +1090,6 @@ declare class ShowOverlayInterface extends CommandBase {
969
1090
  constructor(visible: boolean);
970
1091
  }
971
1092
 
972
- /**
973
- * @internal
974
- * @hidden
975
- * Represents a command to send Unreal command.
976
- */
977
- declare class UnrealCommand extends CommandBase {
978
- constructor(payload: MetaBoxCommandPacket);
979
- }
980
-
981
1093
  /**
982
1094
  * @experimental
983
1095
  * @internal
@@ -996,5 +1108,5 @@ declare class WatchCallbacks extends CommandBase {
996
1108
  constructor();
997
1109
  }
998
1110
 
999
- export { ApplyZoom, CommandBase, Communicator, EventDispatcher, GetFastRender, GetPdf, GetScreenshot, InitShowcase, MetaboxBasicConfiguratorActions, PauseShowcase, PlayShowcase, ResetCamera, SetEnvironment, SetEnvironmentMaterial, SetMaterial, SetProduct, ShowEmbeddedMenu, ShowOverlayInterface, StopShowcase, UnrealCommand, WatchCallbacks, fromCommunicatorEvent, getUrlParams, integrateMetaBox, saveImage, setUrlParams, sleep };
1000
- export type { ApplicationDeviceTypes, ConfiguratorEnvelope, DeprecatedEnvelope, Environment, FromMetaBoxAPIEnvelope, FromMetaBoxApiEvents, FromMetaBoxMessage, FromMetaboxApiAction, FromMetaboxDeprecatedApiAction, FromMetaboxMessagePayloads, Listener, MCAppLoaded, Material, MetaBoxApiEnvelope, MetaProperty, MimeType, Product, SelectedIds, ShowCaseStatus, Slot, Thumbnail, ToMetaBoxActions, ToMetaBoxMessage, ToMetaBoxMessageEnvelope, ToMetaboxMessagePayload, ToMetaboxMessagePayloads, UniversalConfigurator, UniversalConfiguratorEnvironment, UniversalConfiguratorProduct };
1111
+ export { ApplyZoom, CommandBase, Communicator, EventDispatcher, GetCallToActionInformation, GetFastRender, GetPdf, GetScreenshot, InitShowcase, MetaboxBasicConfiguratorActions, PauseShowcase, PlayShowcase, ResetCamera, SetEnvironment, SetEnvironmentMaterial, SetMaterial, SetProduct, ShowEmbeddedMenu, ShowOverlayInterface, StopShowcase, UnrealCommand, WatchCallbacks, fromCommunicatorEvent, getUrlParams, integrateMetaBox, saveImage, setUrlParams };
1112
+ export type { ApplicationDeviceTypes, ConfiguratorEnvelope, Cta, DeprecatedEnvelope, EcomConfigurator, Environment, FromMetaBoxAPIEnvelope, FromMetaBoxApiEvents, FromMetaBoxMessage, FromMetaboxApiAction, FromMetaboxDeprecatedApiAction, FromMetaboxMessagePayloads, Listener, MCAppLoaded, Material, MetaBoxApiEnvelope, MetaProperty, MimeType, Product, SelectedIds, ShowCaseStatus, Showcase, Slot, Thumbnail, Timecode, ToMetaBoxActions, ToMetaBoxMessage, ToMetaBoxMessageEnvelope, ToMetaboxMessagePayload, ToMetaboxMessagePayloads, UniversalConfigurator, UniversalConfiguratorEnvironment, UniversalConfiguratorProduct, VideoResolution };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dsource/metabox-front-api",
3
- "version": "1.2.2-dev.5",
3
+ "version": "1.2.3-dev.0",
4
4
  "description": "API for Metabox BASIC configurator",
5
5
  "keywords": [
6
6
  "metabox",
@@ -18,9 +18,6 @@
18
18
  "dependencies": {
19
19
  "tslib": "^2.8.1"
20
20
  },
21
- "peerDependencies": {
22
- "@3dsource/angular-unreal-module": ">=0.0.34"
23
- },
24
21
  "engines": {
25
22
  "node": ">=20",
26
23
  "npm": ">9"