@interopio/desktop 6.12.0 → 6.13.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 CHANGED
@@ -1,3 +1,7 @@
1
+ 6.13.1
2
+ - fix: windows - group.onClosing throws an unhandledrejection error when the group is closed before the event is subscribed
3
+ 6.13.0
4
+ - feat: windows - group.reload method added
1
5
  6.12.0
2
6
  - feat: channels - works outside from the platform
3
7
  - feat: channels - add clearChannelData method
package/desktop.d.ts CHANGED
@@ -4787,6 +4787,11 @@ export declare namespace IOConnectDesktop {
4787
4787
  */
4788
4788
  hide(): Promise<void>;
4789
4789
 
4790
+ /**
4791
+ * Reloads a window group. Available only for web groups.
4792
+ */
4793
+ reload(): Promise<void>;
4794
+
4790
4795
  /**
4791
4796
  * Closes the window group.
4792
4797
  * @param options Options for closing the group that can be used to prevent closing the group and control whether to show a confirmation dialog before closing it.
@@ -15412,6 +15412,8 @@
15412
15412
  }
15413
15413
  nonWindowHandlersCore(targetId, type, isGroup, callback) {
15414
15414
  const id = `${targetId}-${type}`;
15415
+ const noOperationHandler = () => {
15416
+ };
15415
15417
  const unsub = () => {
15416
15418
  var _a;
15417
15419
  if (this.unsubCallbacks[id]) {
@@ -15430,13 +15432,13 @@
15430
15432
  this.executeGroup(type, {
15431
15433
  groupId: targetId,
15432
15434
  options
15433
- });
15435
+ }).catch(noOperationHandler);
15434
15436
  }
15435
15437
  else {
15436
15438
  this.execute(type, {
15437
15439
  windowId: targetId,
15438
15440
  options
15439
- });
15441
+ }).catch(noOperationHandler);
15440
15442
  }
15441
15443
  }
15442
15444
  };
@@ -15448,10 +15450,10 @@
15448
15450
  this.unsubCallbacks[id] = [callback];
15449
15451
  }
15450
15452
  if (isGroup) {
15451
- this.executeGroup(type, { groupId: targetId });
15453
+ this.executeGroup(type, { groupId: targetId }).catch(noOperationHandler);
15452
15454
  }
15453
15455
  else {
15454
- this.execute(type, { windowId: targetId });
15456
+ this.execute(type, { windowId: targetId }).catch(noOperationHandler);
15455
15457
  }
15456
15458
  return unsub;
15457
15459
  }
@@ -16262,6 +16264,11 @@
16262
16264
  groupId: id
16263
16265
  });
16264
16266
  },
16267
+ reload: () => {
16268
+ return executor.executeGroup("reloadGroup", {
16269
+ groupId: id
16270
+ });
16271
+ },
16265
16272
  close: () => {
16266
16273
  return executor.executeGroup("closeGroup", {
16267
16274
  groupId: id
@@ -19176,7 +19183,7 @@
19176
19183
  };
19177
19184
  }
19178
19185
 
19179
- var version = "6.12.0";
19186
+ var version = "6.13.1";
19180
19187
 
19181
19188
  var prepareConfig = (options) => {
19182
19189
  function getLibConfig(value, defaultMode, trueMode) {