@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.
@@ -1,19 +1,16 @@
1
- import { ApiAction } from './ApiAction';
1
+ import { CommandBase } from './CommandBase';
2
2
  /**
3
- * {@inheritDoc ApiAction}
3
+ * {@inheritDoc CommandBase}
4
4
  *
5
- * Represents an action to toggle the Embedded MetaBox Menu.
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 'https://cdn.jsdelivr.net/npm/@3dsource/metabox-front-api@latest/dist/index.js';
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 ApiAction {
13
+ export declare class ShowEmbeddedMenu extends CommandBase {
17
14
  /**
18
15
  * Creates an instance of ShowEmbeddedMenu.
19
16
  *
@@ -1,19 +1,19 @@
1
- import { ApiAction } from './ApiAction';
1
+ import { CommandBase } from './CommandBase';
2
2
  /**
3
- * {@inheritDoc ApiAction}
3
+ * {@inheritDoc CommandBase}
4
4
  *
5
- * Represents an action to toggle the Unreal Overlay Interface Menu.
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 'https://cdn.jsdelivr.net/npm/@3dsource/metabox-front-api@latest/dist/index.js';
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 ApiAction {
16
+ export declare class ShowOverlayInterface extends CommandBase {
17
17
  /**
18
18
  * Creates an instance of ShowOverlayInterface.
19
19
  *
@@ -1,13 +1,13 @@
1
- import { ApiAction } from './ApiAction';
1
+ import { CommandBase } from './CommandBase';
2
2
  /**
3
3
  * @experimental
4
4
  * @internal
5
5
  * @hidden
6
6
  * @remarks
7
- * Represents an action to watch Unreal callbacks from Unreal engine.
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 ApiAction {
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 { ApiAction } from './actions/ApiAction';
12
+ export { CommandBase } from './actions/CommandBase';
13
13
  export * from './lib/integrateMetaBox';
14
- export * from './lib/initializeCommunicator';
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';