@interopio/workspaces-api 4.4.0 → 4.5.0-next.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/changelog.md +7 -2
- package/dist/workspaces.es.js +23 -2
- package/dist/workspaces.es.js.map +1 -1
- package/dist/workspaces.umd.js +23 -2
- package/dist/workspaces.umd.js.map +1 -1
- package/dist/workspaces.umd.min.js +1 -1
- package/package.json +1 -1
- package/workspaces.d.ts +17 -0
package/dist/workspaces.umd.js
CHANGED
|
@@ -1636,6 +1636,13 @@
|
|
|
1636
1636
|
frameId: nonEmptyStringDecoder,
|
|
1637
1637
|
options: frameDialogOptionsDecoder
|
|
1638
1638
|
});
|
|
1639
|
+
const frameSetOnTopOptionsDecoder = object({
|
|
1640
|
+
onTop: boolean()
|
|
1641
|
+
});
|
|
1642
|
+
const setFrameOnTopConfigDecoder = object({
|
|
1643
|
+
frameId: nonEmptyStringDecoder,
|
|
1644
|
+
onTop: boolean()
|
|
1645
|
+
});
|
|
1639
1646
|
|
|
1640
1647
|
const webPlatformMethodName = "T42.Web.Platform.Control";
|
|
1641
1648
|
const webPlatformWspStreamName = "T42.Web.Platform.WSP.Stream";
|
|
@@ -1719,7 +1726,8 @@
|
|
|
1719
1726
|
showPopup: { name: "showPopup", argsDecoder: ShowPopupConfigDecoder, resultDecoder: voidResultDecoder },
|
|
1720
1727
|
changeFrameVisibility: { name: "changeFrameVisibility", argsDecoder: changeFrameVisibilityConfigDecoder, resultDecoder: voidResultDecoder },
|
|
1721
1728
|
getFrameVisibility: { name: "getFrameVisibility", argsDecoder: simpleItemConfigDecoder, resultDecoder: frameVisibilityResultDecoder },
|
|
1722
|
-
showFrameDialog: { name: "showFrameDialog", argsDecoder: showFrameDialogConfigDecoder, resultDecoder: anyJson() }
|
|
1729
|
+
showFrameDialog: { name: "showFrameDialog", argsDecoder: showFrameDialogConfigDecoder, resultDecoder: anyJson() },
|
|
1730
|
+
setFrameOnTop: { name: "setFrameOnTop", argsDecoder: setFrameOnTopConfigDecoder, resultDecoder: voidResultDecoder }
|
|
1723
1731
|
};
|
|
1724
1732
|
|
|
1725
1733
|
class PromiseWrapper {
|
|
@@ -3730,6 +3738,13 @@
|
|
|
3730
3738
|
frameDialogOptionsDecoder.runWithException(options);
|
|
3731
3739
|
return getData$1(this).controller.showFrameDialog(this.id, options);
|
|
3732
3740
|
}
|
|
3741
|
+
async setOnTop(options) {
|
|
3742
|
+
if (!isDesktop()) {
|
|
3743
|
+
throw new Error("The setOnTop operation is not supported in IO Connect Browser");
|
|
3744
|
+
}
|
|
3745
|
+
frameSetOnTopOptionsDecoder.runWithException(options);
|
|
3746
|
+
return getData$1(this).controller.setFrameOnTop(this.id, options);
|
|
3747
|
+
}
|
|
3733
3748
|
async onClosing(callback) {
|
|
3734
3749
|
if (!isDesktop()) {
|
|
3735
3750
|
throw new Error("Frame closing operations are not supported in io.Connect Browser");
|
|
@@ -4670,6 +4685,9 @@
|
|
|
4670
4685
|
const result = await this.bridge.send(OPERATIONS.showFrameDialog.name, { frameId, options }, { timeout: ONE_DAY_MS });
|
|
4671
4686
|
return result;
|
|
4672
4687
|
}
|
|
4688
|
+
async setFrameOnTop(frameId, options) {
|
|
4689
|
+
return this.bridge.send(OPERATIONS.setFrameOnTop.name, { frameId, onTop: options.onTop });
|
|
4690
|
+
}
|
|
4673
4691
|
async isOperationSupported(operation) {
|
|
4674
4692
|
if (isDesktop()) {
|
|
4675
4693
|
return { isSupported: true };
|
|
@@ -5045,6 +5063,9 @@
|
|
|
5045
5063
|
async showFrameDialog(frameId, options) {
|
|
5046
5064
|
return this.base.showFrameDialog(frameId, options);
|
|
5047
5065
|
}
|
|
5066
|
+
async setFrameOnTop(frameId, options) {
|
|
5067
|
+
return this.base.setFrameOnTop(frameId, options);
|
|
5068
|
+
}
|
|
5048
5069
|
async handleCoreLocalSubscription(config, levelId) {
|
|
5049
5070
|
await this.bridge.createCoreEventSubscription();
|
|
5050
5071
|
config.scopeId = config.scopeId || levelId;
|
|
@@ -5349,7 +5370,7 @@
|
|
|
5349
5370
|
}
|
|
5350
5371
|
}
|
|
5351
5372
|
|
|
5352
|
-
var version = "4.
|
|
5373
|
+
var version = "4.5.0-next.1";
|
|
5353
5374
|
|
|
5354
5375
|
const composeAPI = (glue, ioc) => {
|
|
5355
5376
|
const controller = ioc.controller;
|