@3dsource/metabox-front-api 0.0.16 → 0.0.18

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.
@@ -44,7 +44,7 @@ export declare const FromMetaboxApiAction: {
44
44
  readonly videoSize: "videoSize";
45
45
  /**
46
46
  * @hidden
47
- * Used in platform, must be removed in future
47
+ * Used in a platform, must be removed in future
48
48
  * @deprecated
49
49
  */
50
50
  readonly unrealResponse: "unrealResponse";
@@ -68,29 +68,29 @@ export interface MCAppLoaded {
68
68
  export interface FromMetaboxMessagePayloads {
69
69
  /**
70
70
  * Dispatches Every time the configurator data is updated.
71
- * I.e. when the user changes the configuration. (Material, Product, Environment)
71
+ * I.e., when the user changes the configuration. (Material, Product, Environment)
72
72
  */
73
73
  basicConfiguratorDataWithState: ConfiguratorEnvelope;
74
74
  /**
75
- * Dispatches Every time when configurator connected/disconnected with Unreal Engine.
75
+ * Dispatches Every time when the configurator connected/disconnected with Unreal Engine.
76
76
  */
77
77
  dataChannelConnected: boolean;
78
78
  /**
79
- * Dispatches Every time when Unreal Viewport is visible/hidden.
79
+ * Dispatches Every time when the Unreal Viewport is visible/hidden.
80
80
  */
81
81
  viewportReady: boolean;
82
82
  /**
83
- * Dispatches Every when user toggle fullscreen button in internal menu.
83
+ * Dispatches Every when user toggles fullscreen button in an internal menu.
84
84
  */
85
85
  isFullScreen: boolean;
86
86
  /**
87
- * Dispatches at the moment while configurator loads. Shows status information.
87
+ * Dispatches at the moment while the configurator loads. Shows status information.
88
88
  */
89
89
  statusMessage: string | null;
90
90
  /**
91
91
  * @internal
92
92
  * @hidden
93
- * Dispatches every time when freeze-frame is arrived or updated.
93
+ * Dispatches every time when the freeze-frame is arrived or updated.
94
94
  */
95
95
  freezeFrame: {
96
96
  dataUrl: string | null;
@@ -98,8 +98,8 @@ export interface FromMetaboxMessagePayloads {
98
98
  };
99
99
  /**
100
100
  * @experimental
101
- * Dispatches every Unreal is sending command callback.
102
- * Works only after new WatchCallbacks() command is sent.
101
+ * Dispatches every Unreal is sending a command callback.
102
+ * Works only after the new WatchCallbacks () command is sent.
103
103
  */
104
104
  unrealCallback: object;
105
105
  /**
@@ -121,13 +121,13 @@ export interface FromMetaboxMessagePayloads {
121
121
  */
122
122
  streamResolution: {
123
123
  width: number;
124
- number: number;
124
+ height: number;
125
125
  };
126
126
  }
127
127
  export type FromMetaBoxApiEvents = keyof FromMetaboxMessagePayloads;
128
128
  /**
129
129
  * @internal
130
- * This creates an all event envelopes defined in MetaBoxAPIPayloads.
130
+ * This creates all event envelopes defined in MetaBoxAPIPayloads.
131
131
  */
132
132
  export interface MetaBoxApiEnvelope<T extends FromMetaBoxApiEvents> {
133
133
  action: 'bridge';
@@ -1,5 +1,5 @@
1
1
  import type { MimeType } from '../actions/GetFastRender';
2
- import type { ApplicationDeviceType } from './application-device-types';
2
+ import type { ApplicationDeviceTypesKeys } from './application-device-types';
3
3
  export declare const ToMetaBoxApiAction: {
4
4
  readonly getPdf: "getPdf";
5
5
  readonly loadLevel: "loadLevel";
@@ -18,6 +18,7 @@ export declare const ToMetaBoxApiAction: {
18
18
  readonly sendCommandToUnreal: "sendCommandToUnreal";
19
19
  readonly showOverlayInterface: "showOverlayInterface";
20
20
  readonly setEnvironmentMaterialById: "setEnvironmentMaterialById";
21
+ readonly resetCamera: "resetCamera";
21
22
  };
22
23
  export type ToMetaBoxActions = (typeof ToMetaBoxApiAction)[keyof typeof ToMetaBoxApiAction];
23
24
  /**
@@ -63,8 +64,9 @@ export interface ToMetaboxMessagePayloads {
63
64
  visible: boolean;
64
65
  };
65
66
  forceSetDeviceType: {
66
- deviceType: ApplicationDeviceType;
67
+ deviceType: ApplicationDeviceTypesKeys;
67
68
  };
69
+ resetCamera: void;
68
70
  }
69
71
  export interface ToMetaBoxMessageEnvelope {
70
72
  action: ToMetaBoxActions;
@@ -7,4 +7,4 @@ export declare const APPLICATION_DEVICE_TYPES: {
7
7
  * @internal
8
8
  * Represents the type of device for the application.
9
9
  */
10
- export type ApplicationDeviceType = (typeof APPLICATION_DEVICE_TYPES)[keyof typeof APPLICATION_DEVICE_TYPES];
10
+ export type ApplicationDeviceTypesKeys = (typeof APPLICATION_DEVICE_TYPES)[keyof typeof APPLICATION_DEVICE_TYPES];
@@ -20,7 +20,7 @@
20
20
  * @example
21
21
  * import {
22
22
  * integrateMetaBox,
23
- * } from 'https://unpkg.com/@3dsource/metabox-front-api@latest/dist/index.js';
23
+ * } from 'https://cdn.jsdelivr.net/npm/@3dsource/metabox-front-api@latest/dist/index.js';
24
24
  *
25
25
  * integrateMetaBox(
26
26
  * 'https://metabox.3dsource.com/metabox-configurator/basic/12345678-1234-1234-1234-01234567890?introImage=https://example.com/intro.webp&sidebar=false',
package/package.json CHANGED
@@ -1,45 +1,48 @@
1
- {
2
- "name": "@3dsource/metabox-front-api",
3
- "version": "0.0.16",
4
- "description": "API for MetaBox BASIC configurator",
5
- "keywords": [
6
- "metabox",
7
- "api",
8
- "configurator"
9
- ],
10
- "repository": {
11
- "type": "git",
12
- "url": "git@bitbucket.org:dreamsoft/ams_vps-frontend.git"
13
- },
14
- "license": "MIT",
15
- "author": "3dsource.com",
16
- "type": "module",
17
- "exports": {
18
- ".": {
19
- "types": "./dist/index.d.ts",
20
- "require": "./dist/index.umd.js",
21
- "import": "./dist/index.esm.js"
22
- }
23
- },
24
- "main": "dist/index.umd.js",
25
- "jsdelivr": "dist/index.esm.js",
26
- "unpkg": "dist/index.esm.js",
27
- "module": "dist/index.esm.js",
28
- "types": "dist/index.d.ts",
29
- "files": [
30
- "dist/**/*"
31
- ],
32
- "scripts": {
33
- "apiDoc": "typedoc --entryPointStrategy Expand src/index.ts --tsconfig ./../../../tsconfig.typedoc.json --out ./../../../dist/browser/apiDocBasic",
34
- "build": "rollup -c",
35
- "clean": "rimraf dist",
36
- "packAll": "npm run clean && npm run build && npm pack",
37
- "publishApi": "npm run packAll && npm publish --access public"
38
- },
39
- "devDependencies": {
40
- "rimraf": "^3.0.2",
41
- "rollup": "^4.39.0",
42
- "rollup-plugin-typescript2": "^0.36.0",
43
- "typescript": "~5.7.3"
44
- }
45
- }
1
+ {
2
+ "name": "@3dsource/metabox-front-api",
3
+ "version": "0.0.18",
4
+ "description": "API for MetaBox BASIC configurator",
5
+ "keywords": [
6
+ "metabox",
7
+ "api",
8
+ "configurator"
9
+ ],
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git@bitbucket.org:dreamsoft/ams_vps-frontend.git"
13
+ },
14
+ "license": "MIT",
15
+ "author": "3dsource.com",
16
+ "type": "module",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "require": "./dist/index.umd.js",
21
+ "import": "./dist/index.esm.js"
22
+ }
23
+ },
24
+ "main": "dist/index.umd.js",
25
+ "jsdelivr": "dist/index.esm.js",
26
+ "unpkg": "dist/index.esm.js",
27
+ "module": "dist/index.esm.js",
28
+ "types": "dist/index.d.ts",
29
+ "files": [
30
+ "dist/**/*"
31
+ ],
32
+ "scripts": {
33
+ "apiDoc": "typedoc --entryPointStrategy Expand src/index.ts --tsconfig ./../../../tsconfig.typedoc.json --out ./../../../dist/browser/apiDocBasic",
34
+ "build": "rollup -c",
35
+ "clean": "rimraf dist",
36
+ "packAll": "npm run clean && npm run build && npm pack",
37
+ "publishApi": "npm run packAll && npm publish --access public"
38
+ },
39
+ "devDependencies": {
40
+ "rimraf": "^3.0.2",
41
+ "rollup": "^4.39.0",
42
+ "rollup-plugin-typescript2": "^0.36.0",
43
+ "typescript": "~5.7.3"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ }
48
+ }