@3dsource/metabox-modular-configurator-api 0.0.2 → 0.0.4-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';
@@ -12,8 +10,8 @@ declare const MetaboxModularConfiguratorActions: {
12
10
  readonly setComponent: "setComponent";
13
11
  readonly setComponentType: "setComponentType";
14
12
  readonly setComponentMaterialById: "setComponentMaterialById";
15
- readonly sendCommandToUnreal: "sendCommandToUnreal";
16
13
  readonly getPdf: "getPdf";
14
+ readonly getCallToActionInformation: "getCallToActionInformation";
17
15
  readonly getScreenshot: "getScreenshot";
18
16
  readonly showEmbeddedMenu: "showEmbeddedMenu";
19
17
  readonly forceSetDeviceType: "forceSetDeviceType";
@@ -24,7 +22,7 @@ declare const MetaboxModularConfiguratorActions: {
24
22
  readonly playShowcase: "playShowcase";
25
23
  readonly pauseShowcase: "pauseShowcase";
26
24
  readonly stopShowcase: "stopShowcase";
27
- readonly watchCallbacks: "watchCallbacks";
25
+ readonly sendCommandToUnreal: "sendCommandToUnreal";
28
26
  };
29
27
  type ToMetaBoxActions = (typeof MetaboxModularConfiguratorActions)[keyof typeof MetaboxModularConfiguratorActions];
30
28
  /**
@@ -56,7 +54,6 @@ interface ToMetaboxMessagePayloads {
56
54
  slotId: string;
57
55
  materialId: string;
58
56
  };
59
- [MetaboxModularConfiguratorActions.sendCommandToUnreal]: MetaBoxCommandPacket;
60
57
  [MetaboxModularConfiguratorActions.getScreenshot]: {
61
58
  format: MimeType;
62
59
  size?: {
@@ -64,8 +61,8 @@ interface ToMetaboxMessagePayloads {
64
61
  y: number;
65
62
  };
66
63
  };
64
+ [MetaboxModularConfiguratorActions.getCallToActionInformation]: void;
67
65
  [MetaboxModularConfiguratorActions.getPdf]: void;
68
- [MetaboxModularConfiguratorActions.watchCallbacks]: void;
69
66
  [MetaboxModularConfiguratorActions.showEmbeddedMenu]: {
70
67
  visible: boolean;
71
68
  };
@@ -85,6 +82,7 @@ interface ToMetaboxMessagePayloads {
85
82
  [MetaboxModularConfiguratorActions.playShowcase]: void;
86
83
  [MetaboxModularConfiguratorActions.pauseShowcase]: void;
87
84
  [MetaboxModularConfiguratorActions.stopShowcase]: void;
85
+ [MetaboxModularConfiguratorActions.sendCommandToUnreal]: object;
88
86
  }
89
87
  interface ToMetaBoxMessageEnvelope {
90
88
  action: ToMetaBoxActions;
@@ -96,26 +94,26 @@ interface ToMetaBoxMessage {
96
94
  }
97
95
 
98
96
  /**
99
- * Represents a modular configurator object with its configuration, current configuration tree,
97
+ * Represents a modular configurator envelope with an initial configurator, and changes contain a configuration tree,
100
98
  * all components by active component type, component selected materials,
101
99
  * and associated environment.
102
100
  */
103
101
  interface ModularConfiguratorEnvelope {
104
- /** A reference to the modular configurator */
105
- configurator: ModularConfiguratorApi;
102
+ /** Represents the modular configurator api with its components, component types, and environments */
103
+ configurator: InitialModularConfigurator;
106
104
  /** The unique tree of components and parent and component type id */
107
105
  configurationTree: ComponentWithParent[];
108
106
  /** A record mapping all components by current component type */
109
107
  componentsByComponentType: Record<string, string>;
110
- /** A record mapping component material selections */
108
+ /** A record mapping component material selection */
111
109
  componentMaterialsIds: SelectedIds;
112
110
  /** The unique environment identifier */
113
111
  environmentId: string;
114
112
  /** A record mapping environment material selections */
115
113
  environmentMaterialsIds: SelectedIds;
116
114
  }
117
- /** Represents the modular configurator api with its modular properties and components */
118
- interface ModularConfiguratorApi {
115
+ /** Represents the modular configurator api with its components, component types, and environments */
116
+ interface InitialModularConfigurator {
119
117
  /** Unique identifier for the configurator. */
120
118
  id: string;
121
119
  /** Client information associated with the configurator. */
@@ -129,6 +127,7 @@ interface ModularConfiguratorApi {
129
127
  componentTypes: ModularConfiguratorComponentType[];
130
128
  /** The camera settings used in the configurator. */
131
129
  /** Indicates if the configurator is active. */
130
+ isActive: boolean;
132
131
  connectors: ModularConfiguratorConnector[];
133
132
  /** GraphQL typename for the Modular Configurator. */
134
133
  __typename: 'ModularConfigurator';
@@ -207,6 +206,7 @@ interface Product {
207
206
  /** Unique external id for the product. */
208
207
  externalId: string;
209
208
  /** Showcase details for the product. */
209
+ showcase?: Showcase;
210
210
  /** GraphQL typename for the product. */
211
211
  __typename: 'Product';
212
212
  }
@@ -267,6 +267,43 @@ interface Material {
267
267
  /** GraphQL typename for the material. */
268
268
  __typename: 'Material';
269
269
  }
270
+ /**
271
+ * Defines model details for products or materials.
272
+ */
273
+ interface Model {
274
+ /** Unique identifier for the model. */
275
+ id: string;
276
+ /** Path to the pak file for the model. */
277
+ pakFilePath: string;
278
+ /** Asset path for the model. */
279
+ assetPath: string;
280
+ /** Unreal Engine version required for the model. */
281
+ unrealVersion: string;
282
+ /** GraphQL typename for the model. */
283
+ __typename: 'Model';
284
+ }
285
+ /**
286
+ * Details showcase the presentation of a product.
287
+ */
288
+ interface Showcase {
289
+ /** A list of low-bandwidth versions for the showcase (optional). */
290
+ lowBandwidth?: (Timecode | null)[] | null;
291
+ /** Duration for the showcase (optional). */
292
+ duration?: number;
293
+ /** GraphQL typename for the showcase. */
294
+ __typename: 'Showcase';
295
+ }
296
+ /**
297
+ * Represents a low-bandwidth entity used in showcases in LBM mode.
298
+ */
299
+ interface Timecode {
300
+ /** Time marker for the entity. */
301
+ time: number;
302
+ /** Duration of the entity display. */
303
+ duration: number;
304
+ /** GraphQL typename (as a string, flexible type). */
305
+ __typename: 'Timecode';
306
+ }
270
307
  /**
271
308
  * Represents the environment settings for a modular configurator.
272
309
  */
@@ -291,8 +328,11 @@ interface Environment {
291
328
  /** Title or name of the environment. */
292
329
  title: string;
293
330
  /** Flag indicating if UDS is enabled. */
331
+ udsEnabled: boolean;
294
332
  /** The north yaw of the sun in the environment. */
333
+ sunNorthYaw: number;
295
334
  /** The UDS hour setting for the environment. */
335
+ udsHour: number;
296
336
  /** List of thumbnails for the environment (optional). */
297
337
  thumbnailList: Thumbnail[];
298
338
  /** List of slots for the environment (optional). */
@@ -317,50 +357,73 @@ type SelectedIds = Record<string, Record<string, string>>;
317
357
  * Defines the structure for an available showcase status for the current product on a scene.
318
358
  */
319
359
  type ShowCaseStatus = 'init' | 'play' | 'pause' | 'stop';
360
+ /**
361
+ * Defines the structure for a video resolution.
362
+ */
363
+ interface VideoResolution {
364
+ width: number | null;
365
+ height: number | null;
366
+ }
367
+
368
+ /** Represents an ecom configurator object with all necessary information about cta */
369
+ interface EcomConfigurator {
370
+ /** The unique ecom configurator identifier. */
371
+ id: string;
372
+ /** The created data of ecom configurator. */
373
+ createdAt: string;
374
+ /** A reference to the Call To Action Information. */
375
+ cta?: Cta;
376
+ /** GraphQL typename for the ecom configurator. */
377
+ __typename: 'Configurator';
378
+ }
379
+ /**
380
+ * Represents the call-to-action information for an ecom configurator.
381
+ */
382
+ interface Cta {
383
+ /** The indicator of whether the call-to-action is enabled or not. */
384
+ enabled: boolean;
385
+ /** Label of button for call-to-action. */
386
+ label: string;
387
+ /** Callback URL using for sent configurator selected information to this url and redirected to the url after get response. */
388
+ callbackUrl: string;
389
+ /** GraphQL typename for the CTA object. */
390
+ __typename: 'Cta';
391
+ }
320
392
 
321
393
  interface FromMetaboxMessagePayloads {
322
394
  /**
323
- * Dispatches Every time the configurator data is updated.
324
- * I.e., when the user changes the configuration. (Material, Product, Environment)
395
+ * Dispatches every time the configurator data is updated.
396
+ * I.e., when the user changes the configuration. (Material, Component Tree, Components, Component Type, Environment)
397
+ */
398
+ configuratorDataUpdated: ModularConfiguratorEnvelope;
399
+ /**
400
+ * Dispatches Every time the ecom configurator data is updated (label, endpointUrl).
325
401
  */
326
- configuratorData: ModularConfiguratorEnvelope;
402
+ ecomConfiguratorDataUpdated: EcomConfigurator;
327
403
  /**
328
- * Dispatches Every time when the configurator product showcase will be changed.
404
+ * Dispatches every time when the configurator showcase status will be changed.
329
405
  */
330
- showcaseStatus: ShowCaseStatus;
406
+ showcaseStatusChanged: ShowCaseStatus;
331
407
  /**
332
- * Dispatches Every time when the configurator connected/disconnected with Unreal Engine.
408
+ * Dispatches every time when the configurator connected/disconnected with Unreal Engine.
333
409
  */
334
410
  dataChannelConnected: boolean;
335
411
  /**
336
- * Dispatches Every time when the Unreal Viewport is visible/hidden.
412
+ * Dispatches every time when the Viewport is ready / not ready.
337
413
  */
338
414
  viewportReady: boolean;
339
415
  /**
340
416
  * Dispatches at the moment while the configurator loads. Shows status information.
341
417
  */
342
- statusMessage: string | null;
343
- /**
344
- * @experimental
345
- * Dispatches every Unreal is sending a command callback.
346
- * Works only after the new WatchCallbacks () command is sent.
347
- */
348
- unrealCallback: {
349
- json: UnrealCallBackJson;
350
- };
351
- /**
352
- * Dispatches every time when Unreal is sending ordered render with new GetFastRender() command.
353
- */
354
- screenshot: string | null;
418
+ statusMessageChanged: string | null;
355
419
  /**
356
- * @experimental
357
- * Dispatches every Unreal state is changing, including all unreal module state.
420
+ * Dispatches every time when Unreal is sending ordered render with new GetScreenshot() command.
358
421
  */
359
- unrealState: UnrealState;
422
+ screenshotReady: string | null;
360
423
  /**
361
424
  * Dispatches every time when Unreal is changing its video stream size.
362
425
  */
363
- videoResolution: StreamResolutionProps;
426
+ videoResolutionChanged: VideoResolution;
364
427
  }
365
428
  /**
366
429
  * @hidden
@@ -405,6 +468,29 @@ declare class CommandBase {
405
468
  data: ToMetaBoxMessageEnvelope;
406
469
  }
407
470
 
471
+ /**
472
+ * Represents a command to ApplyZoom and change zoom camera on a scene.
473
+ * @remarks
474
+ * This class sends a command to the Metabox API to change zoom on a scene.
475
+ *
476
+ * **Important**: Invoking this command will buffer it until the viewport is ready. Only then will the request be processed.
477
+ *
478
+ * @example
479
+ * import { ApplyZoom, Communicator } from '@3dsource/metabox-modular-configurator-api';
480
+ * window.env3DSource.apiReady = (api: Communicator) => {
481
+ * api.sendCommandToMetaBox(new ApplyZoom(10));
482
+ * api.sendCommandToMetaBox(new ApplyZoom(-10));
483
+ * };
484
+ */
485
+ declare class ApplyZoom extends CommandBase {
486
+ /**
487
+ * Creates an instance of ApplyZoom.
488
+ *
489
+ * @param {...number} zoom
490
+ */
491
+ constructor(zoom: number);
492
+ }
493
+
408
494
  /**
409
495
  * Represents a callback listener for specific message types.
410
496
  * Used internally by EventDispatcher to store event listeners.
@@ -548,41 +634,35 @@ declare function integrateMetabox(iframeSrc: string, containerId: string | undef
548
634
  declare function saveImage(imageUrl: string, filename: string): void;
549
635
 
550
636
  /**
551
- * Pauses execution for a specified duration.
552
- *
553
- * @remarks
554
- * This function returns a promise that resolves after the given number of milliseconds.
555
- *
556
- * @param {number} time - The time to sleep in milliseconds.
557
- * @returns A promise that resolves after the specified duration.
637
+ * Wrapper helper function to use it with rxJs the same as `fromEvent` to listen to events from the Communicator.
638
+ * @param {Communicator} target
639
+ * @param eventName
558
640
  */
559
- declare function sleep(time: number): Promise<void>;
641
+ declare function fromCommunicatorEvent<T extends FromMetaBoxApiEvents>(target: Communicator, eventName: T): Observable<FromMetaboxMessagePayloads[T]>;
560
642
 
561
643
  /**
562
- * Sets the URL parameters based on the provided state.
563
- *
644
+ * Represents a command to get a Call To Action Information from Metabox Modular Configurator.
564
645
  * @remarks
565
- * This function updates the current URL by replacing its search parameters with the key-value pairs from the provided state object.
566
- *
567
- * @param state - An object containing key-value pairs to set as URL parameters.
568
- */
569
- declare function setUrlParams(state: Record<string, string>): void;
570
- /**
571
- * Retrieves the URL parameters as an object.
646
+ * 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.
647
+ * This action does not require any parameters.
572
648
  *
573
- * @remarks
574
- * This function parses the current URL's search parameters and returns them as a key-value object.
649
+ * **Important**: Invoking this command will buffer it until the viewport is ready. Only then will the request be processed.
575
650
  *
576
- * @returns An object containing the URL parameters.
577
- */
578
- declare function getUrlParams(): Record<string, string>;
579
-
580
- /**
581
- * Wrapper helper function to use it with rxJs the same as `fromEvent` to listen to events from the Communicator.
582
- * @param {Communicator} target
583
- * @param eventName
651
+ * @example
652
+ * import { GetCallToActionInformation, Communicator } from '@3dsource/metabox-modular-configurator-api';
653
+ * window.env3DSource.apiReady = (api: Communicator) => {
654
+ * api.sendCommandToMetaBox(new GetCallToActionInformation());
655
+ * };
584
656
  */
585
- declare function fromCommunicatorEvent<T extends FromMetaBoxApiEvents>(target: Communicator, eventName: T): Observable<FromMetaboxMessagePayloads[T]>;
657
+ declare class GetCallToActionInformation extends CommandBase {
658
+ /**
659
+ * Creates an instance of GetCallToActionInformation.
660
+ *
661
+ * @remarks
662
+ * This constructor does not require any parameters.
663
+ */
664
+ constructor();
665
+ }
586
666
 
587
667
  /**
588
668
  * Represents a command to get a PDF from Metabox.
@@ -594,7 +674,7 @@ declare function fromCommunicatorEvent<T extends FromMetaBoxApiEvents>(target: C
594
674
  *
595
675
  * @example
596
676
  * import { GetPdf, Communicator } from '@3dsource/metabox-modular-configurator-api';
597
- * window.env3DSource.apiReady = (api:Communicator) => {
677
+ * window.env3DSource.apiReady = (api: Communicator) => {
598
678
  * api.sendCommandToMetaBox(new GetPdf());
599
679
  * };
600
680
  */
@@ -618,7 +698,7 @@ declare class GetPdf extends CommandBase {
618
698
  *
619
699
  * @example
620
700
  * import { ResetCamera, Communicator } from '@3dsource/metabox-modular-configurator-api';
621
- * window.env3DSource.apiReady = (api:Communicator) => {
701
+ * window.env3DSource.apiReady = (api: Communicator) => {
622
702
  * api.sendCommandToMetaBox(new ResetCamera());
623
703
  * };
624
704
  */
@@ -633,38 +713,19 @@ declare class ResetCamera extends CommandBase {
633
713
  }
634
714
 
635
715
  /**
636
- * Represents a command to ApplyZoom and change zoom camera on a scene.
716
+ * Represents a command to Init Showcase for a product in a component on a scene and start a sequence for the product.
637
717
  * @remarks
638
- * This class sends a command to the Metabox API to change zoom on a scene.
639
- *
640
- * **Important**: Invoking this command will buffer it until the viewport is ready. Only then will the request be processed.
641
- *
642
- * @example
643
- * import { ApplyZoom, Communicator } from '@3dsource/metabox-modular-configurator-api';
644
- * window.env3DSource.apiReady = (api:Communicator) => {
645
- * api.sendCommandToMetaBox(new ApplyZoom(10));
646
- * api.sendCommandToMetaBox(new ApplyZoom(-10));
647
- * };
648
- */
649
- declare class ApplyZoom extends CommandBase {
650
- /**
651
- * Creates an instance of ApplyZoom.
652
- *
653
- * @param {...number} zoom
654
- */
655
- constructor(zoom: number);
656
- }
657
-
658
- /**
659
- * Represents a command to Init Showcase for a product on a scene and start a sequence for the product.
660
- * @remarks
661
- * This class sends a command to the Metabox API to init showcase if the product has a sequence.
718
+ * This class sends a command to the Metabox API to init showcase if the product in a component has a sequence.
719
+ * For check this needs to find a showcase property in the current product in a component
720
+ * If this property exists, you can send init showcase command
721
+ * You can send init showcase command only for root components; otherwise we will ignore this command
662
722
  *
663
723
  * **Important**: Invoking this command will buffer it until the viewport is ready. Only then will the request be processed.
664
724
  *
665
725
  * @example
726
+ * ```typescript
666
727
  * import { InitShowcase, Communicator } from '@3dsource/metabox-modular-configurator-api';
667
- * window.env3DSource.apiReady = (api:Communicator) => {
728
+ * window.env3DSource.apiReady = (api: Communicator) => {
668
729
  * api.sendCommandToMetaBox(new InitShowcase('ffea6b5c-3a8a-4f56-9417-e605acb5cca3');
669
730
  * };
670
731
  */
@@ -677,6 +738,15 @@ declare class InitShowcase extends CommandBase {
677
738
  constructor(productId: string);
678
739
  }
679
740
 
741
+ /**
742
+ * @internal
743
+ * @hidden
744
+ * Represents a command to send Unreal command.
745
+ */
746
+ declare class UnrealCommand extends CommandBase {
747
+ constructor(payload: object);
748
+ }
749
+
680
750
  /**
681
751
  * Represents a command to Play Showcase for a product when it already init, and you call pause, for example, before it.
682
752
  * @remarks
@@ -686,7 +756,7 @@ declare class InitShowcase extends CommandBase {
686
756
  *
687
757
  * @example
688
758
  * import { PlayShowcase, Communicator } from '@3dsource/metabox-modular-configurator-api';
689
- * window.env3DSource.apiReady = (api:Communicator) => {
759
+ * window.env3DSource.apiReady = (api: Communicator) => {
690
760
  * api.sendCommandToMetaBox(new PlayShowcase());
691
761
  * };
692
762
  */
@@ -709,7 +779,7 @@ declare class PlayShowcase extends CommandBase {
709
779
  *
710
780
  * @example
711
781
  * import { PauseShowcase, Communicator } from '@3dsource/metabox-modular-configurator-api';
712
- * window.env3DSource.apiReady = (api:Communicator) => {
782
+ * window.env3DSource.apiReady = (api: Communicator) => {
713
783
  * api.sendCommandToMetaBox(new PauseShowcase());
714
784
  * };
715
785
  */
@@ -732,7 +802,7 @@ declare class PauseShowcase extends CommandBase {
732
802
  *
733
803
  * @example
734
804
  * import { StopShowcase, Communicator } from '@3dsource/metabox-modular-configurator-api';
735
- * window.env3DSource.apiReady = (api:Communicator) => {
805
+ * window.env3DSource.apiReady = (api: Communicator) => {
736
806
  * api.sendCommandToMetaBox(new StopShowcase());
737
807
  * };
738
808
  */
@@ -759,7 +829,7 @@ type MimeType = 'image/png' | 'image/jpeg' | 'image/webp';
759
829
  *
760
830
  * @example
761
831
  * import { GetScreenshot, Communicator, saveImage } from '@3dsource/metabox-modular-configurator-api';
762
- * window.env3DSource.apiReady = (api:Communicator) => {
832
+ * window.env3DSource.apiReady = (api: Communicator) => {
763
833
  * // Listen for events from to the Metabox API
764
834
  * api.addEventListener('screenshot', (data) => {
765
835
  * // Process the get screenshot response
@@ -790,7 +860,7 @@ declare class GetScreenshot extends CommandBase {
790
860
  * import { SetComponent, Communicator } from '@3dsource/metabox-modular-configurator-api';
791
861
  *
792
862
  * //...Assume that the integration is already implemented
793
- * window.env3DSource.apiReady = (api:Communicator) => {
863
+ * window.env3DSource.apiReady = (api: Communicator) => {
794
864
  * api.setCommandToMetaBox(new SetComponent(
795
865
  * 'ffea6b5c-3a8a-4f56-9417-e605acb5cca3', 'typeId', true
796
866
  * ));
@@ -814,7 +884,7 @@ declare class SetComponent extends CommandBase {
814
884
  * import { SetComponentMaterial, Communicator } from '@3dsource/metabox-modular-configurator-api';
815
885
  *
816
886
  * //...Assume that the integration is already implemented
817
- * window.env3DSource.apiReady = (api:Communicator) => {
887
+ * window.env3DSource.apiReady = (api: Communicator) => {
818
888
  * api.sendCommandToMetaBox(new SetComponentMaterial(
819
889
  * 'carpaint',
820
890
  * 'dd829d6e-9200-47a7-8d5b-af5df89b7e91',
@@ -841,7 +911,7 @@ declare class SetComponentMaterial extends CommandBase {
841
911
  * import { SetComponentType, Communicator } from '@3dsource/metabox-modular-configurator-api';
842
912
  *
843
913
  * //...Assume that the integration is already implemented
844
- * window.env3DSource.apiReady = (api:Communicator) => {
914
+ * window.env3DSource.apiReady = (api: Communicator) => {
845
915
  * api.setCommandToMetaBox(new SetComponentType(
846
916
  * 'ffea6b5c-3a8a-4f56-9417-e605acb5cca3'
847
917
  * ));
@@ -863,7 +933,7 @@ declare class SetComponentType extends CommandBase {
863
933
  * import { SetEnvironment, Communicator } from '@3dsource/metabox-modular-configurator-api';
864
934
  *
865
935
  * //...Assume that the integration is already implemented
866
- * window.env3DSource.apiReady = (api:Communicator) => {
936
+ * window.env3DSource.apiReady = (api: Communicator) => {
867
937
  * // Change the environment to '55555555-1234-1234-1234-01234567890'
868
938
  * api.sendCommandToMetaBox(new SetEnvironment('55555555-1234-1234-1234-01234567890'));
869
939
  * };
@@ -884,7 +954,7 @@ declare class SetEnvironment extends CommandBase {
884
954
  * import { SetEnvironmentMaterial, Communicator } from '@3dsource/metabox-modular-configurator-api';
885
955
  *
886
956
  * //...Assume that the integration is already implemented
887
- * window.env3DSource.apiReady = (api:Communicator) => {
957
+ * window.env3DSource.apiReady = (api: Communicator) => {
888
958
  * api.sendCommandToMetaBox(new SetEnvironmentMaterial(
889
959
  * 'carpaint',
890
960
  * 'dd829d6e-9200-47a7-8d5b-af5df89b7e91',
@@ -908,7 +978,7 @@ declare class SetEnvironmentMaterial extends CommandBase {
908
978
  * import { ShowEmbeddedMenu, Communicator } from '@3dsource/metabox-modular-configurator-api';
909
979
  *
910
980
  * //...Assume that the integration is already implemented
911
- * window.env3DSource.apiReady = (api:Communicator) => {
981
+ * window.env3DSource.apiReady = (api: Communicator) => {
912
982
  * api.setCommandToMetaBox(new ShowEmbeddedMenu(true));
913
983
  * };
914
984
  */
@@ -931,7 +1001,7 @@ declare class ShowEmbeddedMenu extends CommandBase {
931
1001
  * import { ShowOverlayInterface, Communicator } from '@3dsource/metabox-modular-configurator-api';
932
1002
  *
933
1003
  * //...Assume that the integration is already implemented
934
- * window.env3DSource.apiReady = (api:Communicator) => {
1004
+ * window.env3DSource.apiReady = (api: Communicator) => {
935
1005
  * api.setCommandToMetaBox(new ShowOverlayInterface(true));
936
1006
  * };
937
1007
  */
@@ -944,32 +1014,5 @@ declare class ShowOverlayInterface extends CommandBase {
944
1014
  constructor(visible: boolean);
945
1015
  }
946
1016
 
947
- /**
948
- * @internal
949
- * @hidden
950
- * Represents a command to send Unreal command.
951
- */
952
- declare class UnrealCommand extends CommandBase {
953
- constructor(payload: MetaBoxCommandPacket);
954
- }
955
-
956
- /**
957
- * @experimental
958
- * @internal
959
- * @hidden
960
- * @remarks
961
- * Represents a command to watch Unreal callbacks from Unreal engine.
962
- * Can be useful for custom solutions.
963
- */
964
- declare class WatchCallbacks extends CommandBase {
965
- /**
966
- * Creates an instance of WatchCallbacks.
967
- *
968
- * @remarks
969
- * This constructor does not require any parameters.
970
- */
971
- constructor();
972
- }
973
-
974
- export { ApplyZoom, CommandBase, Communicator, EventDispatcher, GetPdf, GetScreenshot, InitShowcase, MetaboxModularConfiguratorActions, PauseShowcase, PlayShowcase, ResetCamera, SetComponent, SetComponentMaterial, SetComponentType, SetEnvironment, SetEnvironmentMaterial, ShowEmbeddedMenu, ShowOverlayInterface, StopShowcase, UnrealCommand, WatchCallbacks, fromCommunicatorEvent, getUrlParams, integrateMetabox, saveImage, setUrlParams, sleep };
975
- export type { ApplicationDeviceTypes, ComponentWithParent, Environment, FromMetaBoxAPIEnvelope, FromMetaBoxApiEvents, FromMetaBoxMessage, FromMetaboxApiAction, FromMetaboxMessagePayloads, Listener, MCAppLoaded, Material, MetaBoxApiEnvelope, MetaProperty, MimeType, ModularConfiguratorApi, ModularConfiguratorComponent, ModularConfiguratorComponentType, ModularConfiguratorConnector, ModularConfiguratorEnvelope, ModularConfiguratorEnvironment, ModularConfiguratorVirtualSocketToConnector, Product, SelectedIds, ShowCaseStatus, Slot, Test, Thumbnail, ToMetaBoxActions, ToMetaBoxMessage, ToMetaBoxMessageEnvelope, ToMetaboxMessagePayload, ToMetaboxMessagePayloads };
1017
+ export { ApplyZoom, CommandBase, Communicator, EventDispatcher, GetCallToActionInformation, GetPdf, GetScreenshot, InitShowcase, MetaboxModularConfiguratorActions, PauseShowcase, PlayShowcase, ResetCamera, SetComponent, SetComponentMaterial, SetComponentType, SetEnvironment, SetEnvironmentMaterial, ShowEmbeddedMenu, ShowOverlayInterface, StopShowcase, UnrealCommand, fromCommunicatorEvent, integrateMetabox, saveImage };
1018
+ export type { ApplicationDeviceTypes, ComponentWithParent, Cta, EcomConfigurator, Environment, FromMetaBoxAPIEnvelope, FromMetaBoxApiEvents, FromMetaBoxMessage, FromMetaboxApiAction, FromMetaboxMessagePayloads, InitialModularConfigurator, Listener, MCAppLoaded, Material, MetaBoxApiEnvelope, MetaProperty, MimeType, Model, ModularConfiguratorComponent, ModularConfiguratorComponentType, ModularConfiguratorConnector, ModularConfiguratorEnvelope, ModularConfiguratorEnvironment, ModularConfiguratorVirtualSocketToConnector, Product, SelectedIds, ShowCaseStatus, Showcase, Slot, Test, Thumbnail, Timecode, ToMetaBoxActions, ToMetaBoxMessage, ToMetaBoxMessageEnvelope, ToMetaboxMessagePayload, ToMetaboxMessagePayloads, VideoResolution };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dsource/metabox-modular-configurator-api",
3
- "version": "0.0.2",
3
+ "version": "0.0.4-dev.0",
4
4
  "description": "API for Metabox MODULAR configurator",
5
5
  "keywords": [
6
6
  "metabox",
@@ -18,11 +18,8 @@
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
- "node": ">=20",
22
+ "node": ">=20.19.3",
26
23
  "npm": ">9"
27
24
  },
28
25
  "module": "fesm2022/3dsource-metabox-modular-configurator-api.mjs",