@interopio/workspaces-api 4.4.0 → 4.5.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.
package/changelog.md CHANGED
@@ -1,4 +1,8 @@
1
- 4.2.1
1
+ ## 4.5.0
2
+
3
+ ### Minor Changes
4
+
5
+ - f9022d0: feat: Added the WorkspacesFrame.setOnTop method
2
6
 
3
7
  ## 4.4.0
4
8
 
@@ -19,6 +23,7 @@
19
23
  ### Patch Changes
20
24
 
21
25
  - ff2a338: chore: prerelease 4.3 snapshot
26
+ 4.2.1
22
27
  chore: G4E-10143 Changed the timeout for the showDialog method
23
28
  feat: G4E-9244 Added option to blur the Frame instance that has displayed the dialog
24
29
  4.2.0
@@ -1630,6 +1630,13 @@ const showFrameDialogConfigDecoder = object({
1630
1630
  frameId: nonEmptyStringDecoder,
1631
1631
  options: frameDialogOptionsDecoder
1632
1632
  });
1633
+ const frameSetOnTopOptionsDecoder = object({
1634
+ onTop: boolean()
1635
+ });
1636
+ const setFrameOnTopConfigDecoder = object({
1637
+ frameId: nonEmptyStringDecoder,
1638
+ onTop: boolean()
1639
+ });
1633
1640
 
1634
1641
  const webPlatformMethodName = "T42.Web.Platform.Control";
1635
1642
  const webPlatformWspStreamName = "T42.Web.Platform.WSP.Stream";
@@ -1713,7 +1720,8 @@ const OPERATIONS = {
1713
1720
  showPopup: { name: "showPopup", argsDecoder: ShowPopupConfigDecoder, resultDecoder: voidResultDecoder },
1714
1721
  changeFrameVisibility: { name: "changeFrameVisibility", argsDecoder: changeFrameVisibilityConfigDecoder, resultDecoder: voidResultDecoder },
1715
1722
  getFrameVisibility: { name: "getFrameVisibility", argsDecoder: simpleItemConfigDecoder, resultDecoder: frameVisibilityResultDecoder },
1716
- showFrameDialog: { name: "showFrameDialog", argsDecoder: showFrameDialogConfigDecoder, resultDecoder: anyJson() }
1723
+ showFrameDialog: { name: "showFrameDialog", argsDecoder: showFrameDialogConfigDecoder, resultDecoder: anyJson() },
1724
+ setFrameOnTop: { name: "setFrameOnTop", argsDecoder: setFrameOnTopConfigDecoder, resultDecoder: voidResultDecoder }
1717
1725
  };
1718
1726
 
1719
1727
  class PromiseWrapper {
@@ -3724,6 +3732,13 @@ class Frame {
3724
3732
  frameDialogOptionsDecoder.runWithException(options);
3725
3733
  return getData$1(this).controller.showFrameDialog(this.id, options);
3726
3734
  }
3735
+ async setOnTop(options) {
3736
+ if (!isDesktop()) {
3737
+ throw new Error("The setOnTop operation is not supported in IO Connect Browser");
3738
+ }
3739
+ frameSetOnTopOptionsDecoder.runWithException(options);
3740
+ return getData$1(this).controller.setFrameOnTop(this.id, options);
3741
+ }
3727
3742
  async onClosing(callback) {
3728
3743
  if (!isDesktop()) {
3729
3744
  throw new Error("Frame closing operations are not supported in io.Connect Browser");
@@ -4664,6 +4679,9 @@ class BaseController {
4664
4679
  const result = await this.bridge.send(OPERATIONS.showFrameDialog.name, { frameId, options }, { timeout: ONE_DAY_MS });
4665
4680
  return result;
4666
4681
  }
4682
+ async setFrameOnTop(frameId, options) {
4683
+ return this.bridge.send(OPERATIONS.setFrameOnTop.name, { frameId, onTop: options.onTop });
4684
+ }
4667
4685
  async isOperationSupported(operation) {
4668
4686
  if (isDesktop()) {
4669
4687
  return { isSupported: true };
@@ -5039,6 +5057,9 @@ class MainController {
5039
5057
  async showFrameDialog(frameId, options) {
5040
5058
  return this.base.showFrameDialog(frameId, options);
5041
5059
  }
5060
+ async setFrameOnTop(frameId, options) {
5061
+ return this.base.setFrameOnTop(frameId, options);
5062
+ }
5042
5063
  async handleCoreLocalSubscription(config, levelId) {
5043
5064
  await this.bridge.createCoreEventSubscription();
5044
5065
  config.scopeId = config.scopeId || levelId;
@@ -5343,7 +5364,7 @@ class IoC {
5343
5364
  }
5344
5365
  }
5345
5366
 
5346
- var version = "4.4.0";
5367
+ var version = "4.5.0";
5347
5368
 
5348
5369
  const composeAPI = (glue, ioc) => {
5349
5370
  const controller = ioc.controller;