@3dsource/metabox-front-api 1.0.1 → 1.0.2-dev.1
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/dist/actions/UnrealCommand.d.ts +14 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +6 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +6 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/interfaces/ToMetaboxMessagePayloads.d.ts +2 -1
- package/package.json +1 -1
- package/dist/actions/SendCommandToUnreal.d.ts +0 -9
|
@@ -0,0 +1,14 @@
|
|
|
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;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,10 +6,11 @@ export { GetPdf } from './actions/GetPdf';
|
|
|
6
6
|
export { SetMaterial } from './actions/SetMaterial';
|
|
7
7
|
export { SetEnvironmentMaterial } from './actions/SetEnvironmentMaterial';
|
|
8
8
|
export { GetScreenshot } from './actions/GetScreenshot';
|
|
9
|
-
export { SendCommandToUnreal } from './actions/
|
|
9
|
+
export { SendCommandToUnreal } from './actions/UnrealCommand';
|
|
10
|
+
export { UnrealCommand } from './actions/UnrealCommand';
|
|
10
11
|
export { WatchCallbacks } from './actions/WatchCallbacks';
|
|
11
|
-
export type { MimeType } from './actions/GetScreenshot';
|
|
12
12
|
export { CommandBase } from './actions/CommandBase';
|
|
13
|
+
export type { MimeType } from './actions/GetScreenshot';
|
|
13
14
|
export * from './lib/integrateMetaBox';
|
|
14
15
|
export * from './lib/Communicator';
|
|
15
16
|
export * from './lib/fromCommunicatorEvent';
|
package/dist/index.esm.js
CHANGED
|
@@ -261,7 +261,7 @@ class GetScreenshot extends CommandBase {
|
|
|
261
261
|
* @hidden
|
|
262
262
|
* Represents a command to send Unreal command.
|
|
263
263
|
*/
|
|
264
|
-
class
|
|
264
|
+
class UnrealCommand extends CommandBase {
|
|
265
265
|
constructor(payload) {
|
|
266
266
|
super();
|
|
267
267
|
this.data = {
|
|
@@ -270,6 +270,10 @@ class SendCommandToUnreal extends CommandBase {
|
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* @deprecated, use `UnrealCommand` instead.
|
|
275
|
+
*/
|
|
276
|
+
const SendCommandToUnreal = UnrealCommand;
|
|
273
277
|
|
|
274
278
|
/**
|
|
275
279
|
* @experimental
|
|
@@ -572,5 +576,5 @@ function getUrlParams() {
|
|
|
572
576
|
return selections;
|
|
573
577
|
}
|
|
574
578
|
|
|
575
|
-
export { CommandBase, Communicator, GetPdf, GetScreenshot, SendCommandToUnreal, SetEnvironment, SetEnvironmentMaterial, SetMaterial, SetProduct, ShowEmbeddedMenu, ShowOverlayInterface, WatchCallbacks, fromCommunicatorEvent, getUrlParams, integrateMetaBox, saveImage, setUrlParams, sleep };
|
|
579
|
+
export { CommandBase, Communicator, GetPdf, GetScreenshot, SendCommandToUnreal, SetEnvironment, SetEnvironmentMaterial, SetMaterial, SetProduct, ShowEmbeddedMenu, ShowOverlayInterface, UnrealCommand, WatchCallbacks, fromCommunicatorEvent, getUrlParams, integrateMetaBox, saveImage, setUrlParams, sleep };
|
|
576
580
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.umd.js
CHANGED
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
* @hidden
|
|
266
266
|
* Represents a command to send Unreal command.
|
|
267
267
|
*/
|
|
268
|
-
class
|
|
268
|
+
class UnrealCommand extends CommandBase {
|
|
269
269
|
constructor(payload) {
|
|
270
270
|
super();
|
|
271
271
|
this.data = {
|
|
@@ -274,6 +274,10 @@
|
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* @deprecated, use `UnrealCommand` instead.
|
|
279
|
+
*/
|
|
280
|
+
const SendCommandToUnreal = UnrealCommand;
|
|
277
281
|
|
|
278
282
|
/**
|
|
279
283
|
* @experimental
|
|
@@ -587,6 +591,7 @@
|
|
|
587
591
|
exports.SetProduct = SetProduct;
|
|
588
592
|
exports.ShowEmbeddedMenu = ShowEmbeddedMenu;
|
|
589
593
|
exports.ShowOverlayInterface = ShowOverlayInterface;
|
|
594
|
+
exports.UnrealCommand = UnrealCommand;
|
|
590
595
|
exports.WatchCallbacks = WatchCallbacks;
|
|
591
596
|
exports.fromCommunicatorEvent = fromCommunicatorEvent;
|
|
592
597
|
exports.getUrlParams = getUrlParams;
|
package/dist/index.umd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { MimeType } from '../actions/GetScreenshot';
|
|
2
2
|
import type { ApplicationDeviceTypes } from './application-device-types';
|
|
3
|
+
import type { MetaBoxCommandPacket } from '@3dsource/types-unreal';
|
|
3
4
|
export type ToMetaBoxActions = 'getPdf' | 'loadLevel' | 'setProduct' | 'getFastRender' | 'getScreenshot' | 'watchCallbacks' | 'setMaterialById' | 'showEmbeddedMenu' | 'forceSetDeviceType' | 'sendCommandToUnreal' | 'showOverlayInterface' | 'setEnvironmentMaterialById' | 'resetCamera' | 'addResponse';
|
|
4
5
|
/**
|
|
5
6
|
* @internal
|
|
@@ -46,7 +47,7 @@ export interface ToMetaboxMessagePayloads {
|
|
|
46
47
|
slotId: string;
|
|
47
48
|
materialId: string;
|
|
48
49
|
};
|
|
49
|
-
sendCommandToUnreal:
|
|
50
|
+
sendCommandToUnreal: MetaBoxCommandPacket;
|
|
50
51
|
setEnvironmentMaterialById: {
|
|
51
52
|
productId: string;
|
|
52
53
|
slotId: string;
|
package/package.json
CHANGED