@3dsource/metabox-front-api 0.0.18 → 0.0.19-beta.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/README.md +218 -202
- package/dist/actions/CommandBase.d.ts +7 -0
- package/dist/actions/GetFastRender.d.ts +10 -14
- package/dist/actions/GetPdf.d.ts +8 -8
- package/dist/actions/SendCommandToUnreal.d.ts +4 -4
- package/dist/actions/SetEnvironment.d.ts +7 -9
- package/dist/actions/SetEnvironmentMaterial.d.ts +8 -11
- package/dist/actions/SetMaterial.d.ts +8 -11
- package/dist/actions/SetProduct.d.ts +8 -8
- package/dist/actions/ShowEmbeddedMenu.d.ts +7 -10
- package/dist/actions/ShowOverlayInterface.d.ts +7 -7
- package/dist/actions/WatchCallbacks.d.ts +3 -3
- package/dist/const/FromMetaboxApiAction.d.ts +52 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.esm.js +126 -236
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +126 -239
- package/dist/index.umd.js.map +1 -1
- package/dist/interfaces/FromMetaboxMessagePayloads.d.ts +21 -73
- package/dist/interfaces/ToMetaboxMessagePayloads.d.ts +7 -23
- package/dist/interfaces/UniversalConfigurator.d.ts +42 -2
- package/dist/interfaces/application-device-types.d.ts +1 -10
- package/dist/lib/{initializeCommunicator.d.ts → Communicator.d.ts} +7 -13
- package/dist/lib/EventDispatcher.d.ts +3 -3
- package/dist/lib/integrateMetaBox.d.ts +4 -3
- package/dist/lib/test/Communicator.spec.d.ts +1 -0
- package/dist/lib/test/integrateMetabox.spec.d.ts +9 -0
- package/package.json +52 -48
- package/dist/actions/ApiAction.d.ts +0 -26
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CommandBase } from './CommandBase';
|
|
2
2
|
/**
|
|
3
|
-
* {@inheritDoc
|
|
3
|
+
* {@inheritDoc CommandBase}
|
|
4
4
|
*
|
|
5
|
-
* Represents
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* This action sends a message to the MetaBox API to toggle the visibility of the embedded menu.
|
|
5
|
+
* Represents a command to toggle the Embedded MetaBox Menu.
|
|
9
6
|
*
|
|
10
7
|
* @example
|
|
11
|
-
* import { ShowEmbeddedMenu } from '
|
|
12
|
-
* window.env3DSource.apiReady = (api) => {
|
|
13
|
-
* new ShowEmbeddedMenu(true);
|
|
8
|
+
* import { ShowEmbeddedMenu,Communicator } from '@3dsource/metabox-front-api';
|
|
9
|
+
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
10
|
+
* api.setCommandToMetaBox(new ShowEmbeddedMenu(true));
|
|
14
11
|
* };
|
|
15
12
|
*/
|
|
16
|
-
export declare class ShowEmbeddedMenu extends
|
|
13
|
+
export declare class ShowEmbeddedMenu extends CommandBase {
|
|
17
14
|
/**
|
|
18
15
|
* Creates an instance of ShowEmbeddedMenu.
|
|
19
16
|
*
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CommandBase } from './CommandBase';
|
|
2
2
|
/**
|
|
3
|
-
* {@inheritDoc
|
|
3
|
+
* {@inheritDoc CommandBase}
|
|
4
4
|
*
|
|
5
|
-
* Represents
|
|
5
|
+
* Represents a command to toggle the Unreal Overlay Interface Menu.
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
8
|
* This action sends a message to the MetaBox API to toggle the visibility of the Unreal overlay UI.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
|
-
* import { ShowOverlayInterface } from '
|
|
12
|
-
* window.env3DSource.apiReady = (api) => {
|
|
13
|
-
* new ShowOverlayInterface(true);
|
|
11
|
+
* import { ShowOverlayInterface,Communicator } from '@3dsource/metabox-front-api';
|
|
12
|
+
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
13
|
+
* api.setCommandToMetaBox(new ShowOverlayInterface(true));
|
|
14
14
|
* };
|
|
15
15
|
*/
|
|
16
|
-
export declare class ShowOverlayInterface extends
|
|
16
|
+
export declare class ShowOverlayInterface extends CommandBase {
|
|
17
17
|
/**
|
|
18
18
|
* Creates an instance of ShowOverlayInterface.
|
|
19
19
|
*
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CommandBase } from './CommandBase';
|
|
2
2
|
/**
|
|
3
3
|
* @experimental
|
|
4
4
|
* @internal
|
|
5
5
|
* @hidden
|
|
6
6
|
* @remarks
|
|
7
|
-
* Represents
|
|
7
|
+
* Represents a command to watch Unreal callbacks from Unreal engine.
|
|
8
8
|
* Can be useful for custom solutions.
|
|
9
9
|
*/
|
|
10
|
-
export declare class WatchCallbacks extends
|
|
10
|
+
export declare class WatchCallbacks extends CommandBase {
|
|
11
11
|
/**
|
|
12
12
|
* Creates an instance of WatchCallbacks.
|
|
13
13
|
*
|
|
@@ -0,0 +1,52 @@
|
|
|
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
CHANGED
|
@@ -9,13 +9,13 @@ export { GetFastRender } from './actions/GetFastRender';
|
|
|
9
9
|
export { SendCommandToUnreal } from './actions/SendCommandToUnreal';
|
|
10
10
|
export { WatchCallbacks } from './actions/WatchCallbacks';
|
|
11
11
|
export type { MimeType } from './actions/GetFastRender';
|
|
12
|
-
export {
|
|
12
|
+
export { CommandBase } from './actions/CommandBase';
|
|
13
13
|
export * from './lib/integrateMetaBox';
|
|
14
|
-
export * from './lib/
|
|
14
|
+
export * from './lib/Communicator';
|
|
15
15
|
export * from './lib/saveImage';
|
|
16
16
|
export * from './lib/sleep';
|
|
17
17
|
export * from './lib/UrlUtils';
|
|
18
18
|
export type * from './interfaces/UniversalConfigurator';
|
|
19
|
-
export * from './interfaces/ToMetaboxMessagePayloads';
|
|
20
|
-
export * from './interfaces/FromMetaboxMessagePayloads';
|
|
19
|
+
export type * from './interfaces/ToMetaboxMessagePayloads';
|
|
20
|
+
export type * from './interfaces/FromMetaboxMessagePayloads';
|
|
21
21
|
export * from './interfaces/application-device-types';
|