@3dsource/metabox-front-api 0.0.19-beta.5 → 0.0.19-beta.6
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/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export type { MimeType } from './actions/GetFastRender';
|
|
|
12
12
|
export { CommandBase } from './actions/CommandBase';
|
|
13
13
|
export * from './lib/integrateMetaBox';
|
|
14
14
|
export * from './lib/Communicator';
|
|
15
|
+
export * from './lib/fromCommunicatorEvent';
|
|
15
16
|
export * from './lib/saveImage';
|
|
16
17
|
export * from './lib/sleep';
|
|
17
18
|
export * from './lib/UrlUtils';
|
package/dist/index.esm.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { fromEvent } from 'rxjs';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Base class for commands sent to the MetaBox.
|
|
3
5
|
*/
|
|
@@ -509,6 +511,10 @@ function integrateMetaBox(iframeSrc, containerId = 'embed3DSource', apiReadyCall
|
|
|
509
511
|
container.appendChild(iframe);
|
|
510
512
|
}
|
|
511
513
|
|
|
514
|
+
function fromCommunicatorEvent(target, eventName) {
|
|
515
|
+
return fromEvent(target, eventName);
|
|
516
|
+
}
|
|
517
|
+
|
|
512
518
|
/**
|
|
513
519
|
* Saves an image by triggering a download.
|
|
514
520
|
*
|
|
@@ -574,5 +580,5 @@ function getUrlParams() {
|
|
|
574
580
|
return selections;
|
|
575
581
|
}
|
|
576
582
|
|
|
577
|
-
export { CommandBase, Communicator, GetFastRender, GetPdf, SendCommandToUnreal, SetEnvironment, SetEnvironmentMaterial, SetMaterial, SetProduct, ShowEmbeddedMenu, ShowOverlayInterface, WatchCallbacks, getUrlParams, integrateMetaBox, saveImage, setUrlParams, sleep };
|
|
583
|
+
export { CommandBase, Communicator, GetFastRender, GetPdf, SendCommandToUnreal, SetEnvironment, SetEnvironmentMaterial, SetMaterial, SetProduct, ShowEmbeddedMenu, ShowOverlayInterface, WatchCallbacks, fromCommunicatorEvent, getUrlParams, integrateMetaBox, saveImage, setUrlParams, sleep };
|
|
578
584
|
//# 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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["metabox-front-api"] = {}));
|
|
5
|
-
})(this, (function (exports) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'rxjs'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["metabox-front-api"] = {}, global.rxjs));
|
|
5
|
+
})(this, (function (exports, rxjs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Base class for commands sent to the MetaBox.
|
|
@@ -515,6 +515,10 @@
|
|
|
515
515
|
container.appendChild(iframe);
|
|
516
516
|
}
|
|
517
517
|
|
|
518
|
+
function fromCommunicatorEvent(target, eventName) {
|
|
519
|
+
return rxjs.fromEvent(target, eventName);
|
|
520
|
+
}
|
|
521
|
+
|
|
518
522
|
/**
|
|
519
523
|
* Saves an image by triggering a download.
|
|
520
524
|
*
|
|
@@ -592,6 +596,7 @@
|
|
|
592
596
|
exports.ShowEmbeddedMenu = ShowEmbeddedMenu;
|
|
593
597
|
exports.ShowOverlayInterface = ShowOverlayInterface;
|
|
594
598
|
exports.WatchCallbacks = WatchCallbacks;
|
|
599
|
+
exports.fromCommunicatorEvent = fromCommunicatorEvent;
|
|
595
600
|
exports.getUrlParams = getUrlParams;
|
|
596
601
|
exports.integrateMetaBox = integrateMetaBox;
|
|
597
602
|
exports.saveImage = saveImage;
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Communicator } from './Communicator';
|
|
2
|
+
import type { FromMetaBoxApiEvents, FromMetaboxMessagePayloads } from '../interfaces/FromMetaboxMessagePayloads';
|
|
3
|
+
import type { Observable } from 'rxjs';
|
|
4
|
+
export declare function fromCommunicatorEvent<T extends FromMetaBoxApiEvents>(target: Communicator, eventName: T): Observable<FromMetaboxMessagePayloads[T]>;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FromMetaBoxApiEvents, FromMetaboxMessagePayloads } from '../../interfaces/FromMetaboxMessagePayloads';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
export declare function fromCommunicatorEvent<T extends FromMetaBoxApiEvents>(target: Communicator, eventName: T): Observable<FromMetaboxMessagePayloads[T]>;
|
|
1
|
+
export {};
|