@3dsource/metabox-front-api 0.0.12 → 0.0.13
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/SendCommandToUnreal.d.ts +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +22 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +22 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/interfaces/ToMetaboxMessagePayloads.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { GetPdf } from './actions/GetPdf';
|
|
|
5
5
|
export { SetMaterial } from './actions/SetMaterial';
|
|
6
6
|
export { SetEnvironmentMaterial } from './actions/SetEnvironmentMaterial';
|
|
7
7
|
export { GetFastRender } from './actions/GetFastRender';
|
|
8
|
+
export { SendCommandToUnreal } from './actions/SendCommandToUnreal';
|
|
8
9
|
export { WatchCallbacks } from './actions/WatchCallbacks';
|
|
9
10
|
export { MimeType } from './actions/GetFastRender';
|
|
10
11
|
export { ApiAction } from './actions/ApiAction';
|
package/dist/index.esm.js
CHANGED
|
@@ -33,6 +33,7 @@ const ToMetaBoxApiAction = {
|
|
|
33
33
|
setMaterialById: 'setMaterialById',
|
|
34
34
|
showEmbeddedMenu: 'showEmbeddedMenu',
|
|
35
35
|
forceSetDeviceType: 'forceSetDeviceType',
|
|
36
|
+
sendCommandToUnreal: 'sendCommandToUnreal',
|
|
36
37
|
setEnvironmentMaterialById: 'setEnvironmentMaterialById',
|
|
37
38
|
};
|
|
38
39
|
|
|
@@ -374,6 +375,26 @@ class GetFastRender extends ApiAction {
|
|
|
374
375
|
}
|
|
375
376
|
}
|
|
376
377
|
|
|
378
|
+
/*
|
|
379
|
+
* Copyright (c) 2025.
|
|
380
|
+
* 3DSource.com, Sergii Karanda steve@3dsource.com
|
|
381
|
+
* All Rights Reserved
|
|
382
|
+
*/
|
|
383
|
+
/**
|
|
384
|
+
* @internal
|
|
385
|
+
* @hidden
|
|
386
|
+
* Represents an action to send Unreal command.
|
|
387
|
+
*/
|
|
388
|
+
class SendCommandToUnreal extends ApiAction {
|
|
389
|
+
constructor(payload) {
|
|
390
|
+
super();
|
|
391
|
+
this.api.sendMessageToMetaBox({
|
|
392
|
+
payload,
|
|
393
|
+
action: ToMetaBoxApiAction.sendCommandToUnreal,
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
377
398
|
/*
|
|
378
399
|
* Copyright (c) 2025.
|
|
379
400
|
* 3DSource.com, Sergii Karanda steve@3dsource.com
|
|
@@ -748,5 +769,5 @@ const APPLICATION_DEVICE_TYPES = {
|
|
|
748
769
|
deviceTypeDesktop: 'deviceTypeDesktop',
|
|
749
770
|
};
|
|
750
771
|
|
|
751
|
-
export { APPLICATION_DEVICE_TYPES, ApiAction, Communicator, FromMetaboxApiAction, GetFastRender, GetPdf, SetEnvironment, SetEnvironmentMaterial, SetMaterial, SetProduct, ShowEmbeddedMenu, ToMetaBoxApiAction, WatchCallbacks, getUrlParams, integrateMetaBox, saveImage, setUrlParams, sleep };
|
|
772
|
+
export { APPLICATION_DEVICE_TYPES, ApiAction, Communicator, FromMetaboxApiAction, GetFastRender, GetPdf, SendCommandToUnreal, SetEnvironment, SetEnvironmentMaterial, SetMaterial, SetProduct, ShowEmbeddedMenu, ToMetaBoxApiAction, WatchCallbacks, getUrlParams, integrateMetaBox, saveImage, setUrlParams, sleep };
|
|
752
773
|
//# 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
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
setMaterialById: 'setMaterialById',
|
|
40
40
|
showEmbeddedMenu: 'showEmbeddedMenu',
|
|
41
41
|
forceSetDeviceType: 'forceSetDeviceType',
|
|
42
|
+
sendCommandToUnreal: 'sendCommandToUnreal',
|
|
42
43
|
setEnvironmentMaterialById: 'setEnvironmentMaterialById',
|
|
43
44
|
};
|
|
44
45
|
|
|
@@ -380,6 +381,26 @@
|
|
|
380
381
|
}
|
|
381
382
|
}
|
|
382
383
|
|
|
384
|
+
/*
|
|
385
|
+
* Copyright (c) 2025.
|
|
386
|
+
* 3DSource.com, Sergii Karanda steve@3dsource.com
|
|
387
|
+
* All Rights Reserved
|
|
388
|
+
*/
|
|
389
|
+
/**
|
|
390
|
+
* @internal
|
|
391
|
+
* @hidden
|
|
392
|
+
* Represents an action to send Unreal command.
|
|
393
|
+
*/
|
|
394
|
+
class SendCommandToUnreal extends ApiAction {
|
|
395
|
+
constructor(payload) {
|
|
396
|
+
super();
|
|
397
|
+
this.api.sendMessageToMetaBox({
|
|
398
|
+
payload,
|
|
399
|
+
action: ToMetaBoxApiAction.sendCommandToUnreal,
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
383
404
|
/*
|
|
384
405
|
* Copyright (c) 2025.
|
|
385
406
|
* 3DSource.com, Sergii Karanda steve@3dsource.com
|
|
@@ -760,6 +781,7 @@
|
|
|
760
781
|
exports.FromMetaboxApiAction = FromMetaboxApiAction;
|
|
761
782
|
exports.GetFastRender = GetFastRender;
|
|
762
783
|
exports.GetPdf = GetPdf;
|
|
784
|
+
exports.SendCommandToUnreal = SendCommandToUnreal;
|
|
763
785
|
exports.SetEnvironment = SetEnvironment;
|
|
764
786
|
exports.SetEnvironmentMaterial = SetEnvironmentMaterial;
|
|
765
787
|
exports.SetMaterial = SetMaterial;
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -15,6 +15,7 @@ export declare const ToMetaBoxApiAction: {
|
|
|
15
15
|
readonly setMaterialById: "setMaterialById";
|
|
16
16
|
readonly showEmbeddedMenu: "showEmbeddedMenu";
|
|
17
17
|
readonly forceSetDeviceType: "forceSetDeviceType";
|
|
18
|
+
readonly sendCommandToUnreal: "sendCommandToUnreal";
|
|
18
19
|
readonly setEnvironmentMaterialById: "setEnvironmentMaterialById";
|
|
19
20
|
};
|
|
20
21
|
export type ToMetaBoxActions = (typeof ToMetaBoxApiAction)[keyof typeof ToMetaBoxApiAction];
|
|
@@ -48,6 +49,7 @@ export interface ToMetaboxMessagePayloads {
|
|
|
48
49
|
slotId: string;
|
|
49
50
|
materialId: string;
|
|
50
51
|
};
|
|
52
|
+
sendCommandToUnreal: unknown;
|
|
51
53
|
setEnvironmentMaterialById: {
|
|
52
54
|
productId: string;
|
|
53
55
|
slotId: string;
|