@interopio/desktop 6.11.0 → 6.13.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,3 +1,9 @@
1
+ 6.13.0
2
+ - feat: windows - group.reload method added
3
+ 6.12.0
4
+ - feat: channels - works outside from the platform
5
+ - feat: channels - add clearChannelData method
6
+ - bugfix: windows - focus and active methods always resolve
1
7
  6.11.0
2
8
  - fix: increase the timeout for the interop methods to 90 seconds
3
9
  - fix: appManager: fix the issue with the appManager.start - race condition
package/desktop.d.ts CHANGED
@@ -3,7 +3,6 @@ import { ApplicationConfig } from "@interopio/schemas";
3
3
  import { IOConnectCore } from "@interopio/core";
4
4
  import { IOConnectWorkspaces } from "@interopio/workspaces-api";
5
5
  import { UnsubscribeFunction } from "callback-registry";
6
- import { Context as FDC3Context } from "@finos/fdc3";
7
6
 
8
7
  /**
9
8
  * Factory function that creates a new io.Connect instance.
@@ -2136,7 +2135,14 @@ export declare namespace IOConnectDesktop {
2136
2135
  onSaveRequested(callback: (info?: SaveRequestContext) => SaveRequestResponse): UnsubscribeFunction;
2137
2136
 
2138
2137
  /**
2139
- * Notifies when a Layout is modified.
2138
+ * This event will be raised the first time the currently loaded global layout has been modified.
2139
+ * Modified means that the layout has been changed:
2140
+ * - an app has been started or stopped
2141
+ * - an app has ben moved
2142
+ * - a workspace that is part of the layout has been modified
2143
+ * This event can be used to mark the layout as dirty.
2144
+ * This event will be raised only the first time the layout is modified. A second modification won't raise the event again.
2145
+ * Saving the layout will reset that and the event will be raised again the next time the layout is modified.
2140
2146
  * @param callback Callback function for handling the event.
2141
2147
  */
2142
2148
  onLayoutModified(callback: (info: LayoutModifiedEvent) => SaveRequestResponse): UnsubscribeFunction;
@@ -4781,6 +4787,11 @@ export declare namespace IOConnectDesktop {
4781
4787
  */
4782
4788
  hide(): Promise<void>;
4783
4789
 
4790
+ /**
4791
+ * Reloads a window group. Available only for web groups.
4792
+ */
4793
+ reload(): Promise<void>;
4794
+
4784
4795
  /**
4785
4796
  * Closes the window group.
4786
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.
@@ -6250,6 +6261,13 @@ export declare namespace IOConnectDesktop {
6250
6261
  */
6251
6262
  getRestrictions(windowId?: string): Promise<Restrictions>;
6252
6263
 
6264
+ /**
6265
+ * Clears the context data of the current Channel. The `data` property of the Channel context is set to an empty object. Pass a Channel name as an argument to clear the data of a specific Channel.
6266
+ * @param channel Name of the Channel whose context data to clear.
6267
+ * @since io.Connect Desktop 9.8
6268
+ */
6269
+ clearChannelData(channel?: string): Promise<void>;
6270
+
6253
6271
  /**
6254
6272
  * Notifies when a Channel is changed.
6255
6273
  * @param callback Callback function for handling the event.
@@ -6347,6 +6365,25 @@ export declare namespace IOConnectDesktop {
6347
6365
  channels?: string[];
6348
6366
  }
6349
6367
 
6368
+ export interface FDC3Context {
6369
+ /**
6370
+ * Context data objects may contain equivalent key-value pairs for identifying and looking up context types, with optional identifiers to support various applications,
6371
+ * though some types may require at least one identifier.
6372
+ */
6373
+ id?: {
6374
+ [key: string]: any;
6375
+ };
6376
+ /**
6377
+ * Context data objects may include a "name" property for additional information or display, with some derived types making it mandatory based on the use case.
6378
+ */
6379
+ name?: string;
6380
+ /**
6381
+ * Required field in the FDC3 context data schema, essential for routing context data and for intent discovery within the FDC3 ecosystem.
6382
+ */
6383
+ type: string;
6384
+ [property: string]: any;
6385
+ }
6386
+
6350
6387
  /**
6351
6388
  * Describes a Channel context.
6352
6389
  */