@3dsource/metabox-front-api 1.2.0 → 1.2.1-dev.2

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.
Files changed (33) hide show
  1. package/README.md +218 -216
  2. package/package.json +44 -56
  3. package/dist/actions/CommandBase.d.ts +0 -7
  4. package/dist/actions/GetFastRender.d.ts +0 -2
  5. package/dist/actions/GetPdf.d.ts +0 -24
  6. package/dist/actions/GetScreenshot.d.ts +0 -34
  7. package/dist/actions/SetEnvironment.d.ts +0 -21
  8. package/dist/actions/SetEnvironmentMaterial.d.ts +0 -24
  9. package/dist/actions/SetMaterial.d.ts +0 -24
  10. package/dist/actions/SetProduct.d.ts +0 -25
  11. package/dist/actions/ShowEmbeddedMenu.d.ts +0 -20
  12. package/dist/actions/ShowOverlayInterface.d.ts +0 -23
  13. package/dist/actions/UnrealCommand.d.ts +0 -14
  14. package/dist/actions/WatchCallbacks.d.ts +0 -18
  15. package/dist/const/FromMetaboxApiAction.d.ts +0 -52
  16. package/dist/index.d.ts +0 -23
  17. package/dist/index.esm.js +0 -580
  18. package/dist/index.esm.js.map +0 -1
  19. package/dist/index.umd.js +0 -604
  20. package/dist/index.umd.js.map +0 -1
  21. package/dist/interfaces/FromMetaboxMessagePayloads.d.ts +0 -116
  22. package/dist/interfaces/ToMetaboxMessagePayloads.d.ts +0 -72
  23. package/dist/interfaces/UniversalConfigurator.d.ts +0 -213
  24. package/dist/interfaces/application-device-types.d.ts +0 -1
  25. package/dist/lib/Communicator.d.ts +0 -57
  26. package/dist/lib/EventDispatcher.d.ts +0 -39
  27. package/dist/lib/UrlUtils.d.ts +0 -18
  28. package/dist/lib/fromCommunicatorEvent.d.ts +0 -9
  29. package/dist/lib/integrateMetaBox.d.ts +0 -31
  30. package/dist/lib/saveImage.d.ts +0 -11
  31. package/dist/lib/sleep.d.ts +0 -10
  32. package/dist/lib/test/Communicator.spec.d.ts +0 -1
  33. package/dist/lib/test/integrateMetabox.spec.d.ts +0 -9
@@ -1,24 +0,0 @@
1
- import { CommandBase } from './CommandBase';
2
- /**
3
- * Represents a command to set a material by its ID.
4
- *
5
- * @example
6
- * import { SetMaterial,Communicator } from '@3dsource/metabox-front-api';
7
- *
8
- * //...Assume that the integration is already implemented
9
- * window.env3DSource.apiReady = (api:Communicator) => {
10
- * api.sendCommandToMetaBox(new SetMaterial(
11
- * 'carpaint',
12
- * 'dd829d6e-9200-47a7-8d5b-af5df89b7e91',
13
- * ));
14
- * };
15
- */
16
- export declare class SetMaterial extends CommandBase {
17
- /**
18
- * Creates an instance of SetMaterial.
19
- *
20
- * @param slotId - The slot ID.
21
- * @param materialId - The material ID.
22
- */
23
- constructor(slotId: string, materialId: string);
24
- }
@@ -1,25 +0,0 @@
1
- import { CommandBase } from './CommandBase';
2
- /**
3
- * Represents a command to set a product by its ID.
4
- *
5
- * @remarks
6
- * This action sends a message to the MetaBox API to set a product using the provided product ID.
7
- *
8
- * @example
9
- * import { SetProduct,Communicator } from '@3dsource/metabox-front-api';
10
- *
11
- * //...Assume that the integration is already implemented
12
- * window.env3DSource.apiReady = (api:Communicator) => {
13
- * api.setCommandToMetaBox(new SetProduct(
14
- * 'ffea6b5c-3a8a-4f56-9417-e605acb5cca3'
15
- * ));
16
- * };
17
- */
18
- export declare class SetProduct extends CommandBase {
19
- /**
20
- * Creates an instance of SetProduct.
21
- *
22
- * @param productId - The product ID.
23
- */
24
- constructor(productId: string);
25
- }
@@ -1,20 +0,0 @@
1
- import { CommandBase } from './CommandBase';
2
- /**
3
- * Represents a command to toggle the Embedded MetaBox Menu.
4
- *
5
- * @example
6
- * import { ShowEmbeddedMenu,Communicator } from '@3dsource/metabox-front-api';
7
- *
8
- * //...Assume that the integration is already implemented
9
- * window.env3DSource.apiReady = (api:Communicator) => {
10
- * api.setCommandToMetaBox(new ShowEmbeddedMenu(true));
11
- * };
12
- */
13
- export declare class ShowEmbeddedMenu extends CommandBase {
14
- /**
15
- * Creates an instance of ShowEmbeddedMenu.
16
- *
17
- * @param visible - A flag indicating whether the embedded menu should be visible.
18
- */
19
- constructor(visible: boolean);
20
- }
@@ -1,23 +0,0 @@
1
- import { CommandBase } from './CommandBase';
2
- /**
3
- * Represents a command to toggle the Unreal Overlay Interface Menu.
4
- *
5
- * @remarks
6
- * This action sends a message to the MetaBox API to toggle the visibility of the Unreal overlay UI.
7
- *
8
- * @example
9
- * import { ShowOverlayInterface,Communicator } from '@3dsource/metabox-front-api';
10
- *
11
- * //...Assume that the integration is already implemented
12
- * window.env3DSource.apiReady = (api:Communicator) => {
13
- * api.setCommandToMetaBox(new ShowOverlayInterface(true));
14
- * };
15
- */
16
- export declare class ShowOverlayInterface extends CommandBase {
17
- /**
18
- * Creates an instance of ShowOverlayInterface.
19
- *
20
- * @param visible - A flag indicating whether the Unreal overlay UI should be visible.
21
- */
22
- constructor(visible: boolean);
23
- }
@@ -1,14 +0,0 @@
1
- import { CommandBase } from './CommandBase';
2
- import type { MetaBoxCommandPacket } from '@3dsource/types-unreal';
3
- /**
4
- * @internal
5
- * @hidden
6
- * Represents a command to send Unreal command.
7
- */
8
- export declare class UnrealCommand extends CommandBase {
9
- constructor(payload: MetaBoxCommandPacket);
10
- }
11
- /**
12
- * @deprecated, use `UnrealCommand` instead.
13
- */
14
- export declare const SendCommandToUnreal: typeof UnrealCommand;
@@ -1,18 +0,0 @@
1
- import { CommandBase } from './CommandBase';
2
- /**
3
- * @experimental
4
- * @internal
5
- * @hidden
6
- * @remarks
7
- * Represents a command to watch Unreal callbacks from Unreal engine.
8
- * Can be useful for custom solutions.
9
- */
10
- export declare class WatchCallbacks extends CommandBase {
11
- /**
12
- * Creates an instance of WatchCallbacks.
13
- *
14
- * @remarks
15
- * This constructor does not require any parameters.
16
- */
17
- constructor();
18
- }
@@ -1,52 +0,0 @@
1
- export type FromMetaboxApiAction = 'bridge' | 'appLoaded'
2
- /**
3
- * @hidden
4
- * @deprecated, use MetaBoxApiAction.Bridge with eventType: "unrealFeature"
5
- */
6
- | 'unrealFeatureBridge'
7
- /**
8
- * @hidden
9
- * @deprecated, use MetaBoxApiAction.Bridge with eventType: "unrealCallback"
10
- */
11
- | 'unrealCallback'
12
- /**
13
- * @hidden
14
- * @deprecated, use MetaBoxApiAction.Bridge with eventType: "configuratorDataWithState"
15
- */
16
- | 'configuratorDataWithStateBridge'
17
- /**
18
- * @hidden
19
- * @deprecated, use MetaBoxApiAction.Bridge with eventType: "configuratorDataWithState"
20
- */
21
- | 'configuratorDataBridge'
22
- /**
23
- * @hidden
24
- * @deprecated, use MetaBoxApiAction.Bridge with eventType: "configuratorDataWithState"
25
- */
26
- | 'menuDataBridge'
27
- /**
28
- * @hidden
29
- * @deprecated, use MetaBoxApiAction.Bridge with eventType: "configuratorDataWithState"
30
- */
31
- | 'flatMenuDataBridge'
32
- /**
33
- * @hidden
34
- * @deprecated, use Bridge with isFullscreen
35
- */
36
- | 'fullScreenBridge'
37
- /**
38
- * @hidden
39
- * @deprecated, use Bridge with streamResolution
40
- */
41
- | 'videoSize'
42
- /**
43
- * @hidden
44
- * Used in a platform, must be removed in future
45
- * @deprecated
46
- */
47
- | 'unrealResponse'
48
- /**
49
- * @hidden
50
- * @deprecated\
51
- */
52
- | 'getFastRender';
package/dist/index.d.ts DELETED
@@ -1,23 +0,0 @@
1
- export { ShowOverlayInterface } from './actions/ShowOverlayInterface';
2
- export { ShowEmbeddedMenu } from './actions/ShowEmbeddedMenu';
3
- export { SetEnvironment } from './actions/SetEnvironment';
4
- export { SetProduct } from './actions/SetProduct';
5
- export { GetPdf } from './actions/GetPdf';
6
- export { SetMaterial } from './actions/SetMaterial';
7
- export { SetEnvironmentMaterial } from './actions/SetEnvironmentMaterial';
8
- export { GetScreenshot } from './actions/GetScreenshot';
9
- export { SendCommandToUnreal } from './actions/UnrealCommand';
10
- export { UnrealCommand } from './actions/UnrealCommand';
11
- export { WatchCallbacks } from './actions/WatchCallbacks';
12
- export { CommandBase } from './actions/CommandBase';
13
- export type { MimeType } from './actions/GetScreenshot';
14
- export * from './lib/integrateMetaBox';
15
- export * from './lib/Communicator';
16
- export * from './lib/fromCommunicatorEvent';
17
- export * from './lib/saveImage';
18
- export * from './lib/sleep';
19
- export * from './lib/UrlUtils';
20
- export type * from './interfaces/application-device-types';
21
- export type * from './interfaces/UniversalConfigurator';
22
- export type * from './interfaces/ToMetaboxMessagePayloads';
23
- export type * from './interfaces/FromMetaboxMessagePayloads';