@interopio/browser 4.3.0 → 4.4.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/browser.d.ts CHANGED
@@ -483,10 +483,10 @@ export namespace IOConnectBrowser {
483
483
  */
484
484
  level?: IOConnectCore.Logger.LogLevel;
485
485
 
486
- /**
487
- * Implementation of a custom logger to be used as a system logger.
488
- * This logger will also be used by any logger instances created via the Logger API.
489
- * @since io.Connect Browser 4.2
486
+ /**
487
+ * Implementation of a custom logger to be used as a system logger.
488
+ * This logger will also be used by any logger instances created via the Logger API.
489
+ * @since io.Connect Browser 4.2
490
490
  */
491
491
  customLogger?: IOConnectCore.CustomLogger;
492
492
  }
@@ -930,10 +930,10 @@ export namespace IOConnectBrowser {
930
930
  onRemoved(callback: (layout: Layout) => void): () => void;
931
931
 
932
932
  /**
933
- * Subscribes for Layout save requests.
934
- * @param callback The callback passed as an argument will be invoked when a Layout save operation is requested.
935
- * You have the option to save data (context) which will be restored when the Layout is restored.
936
- * Returns an unsubscribe function.
933
+ * Notifies when a Layout save operation is requested. Returns an unsubscribe function.
934
+ * @param callback Callback function for handling the event. The callback must return a `SaveRequestResponse` object containing
935
+ * context to be saved for the current window when the Layout is saved.
936
+ * When the Layout is saved and the `ignoreContexts` property of the `NewLayoutOptions` object is set to `true`, the returned context will be ignored.
937
937
  */
938
938
  onSaveRequested(callback: (info?: SaveRequestContext) => SaveRequestResponse): () => void;
939
939
 
@@ -1125,7 +1125,10 @@ export namespace IOConnectBrowser {
1125
1125
  * Options for saving a Layout.
1126
1126
  */
1127
1127
  export interface NewLayoutOptions {
1128
- /** Name for the Layout. */
1128
+
1129
+ /**
1130
+ * Name for the Layout.
1131
+ */
1129
1132
  name: string;
1130
1133
 
1131
1134
  /**
@@ -1157,12 +1160,25 @@ export namespace IOConnectBrowser {
1157
1160
 
1158
1161
  /**
1159
1162
  * If `true`, the context objects of individual io.Connect Windows and Workspaces participating in the Global Layout won't be saved when the Layout is saved.
1160
- * You can still use the context property to provide context data to be saved for the Global Layout itself.
1161
- * Valid only for Global Layouts.
1163
+ * This is valid for context objects returned by the `onSaveRequested()` event handler, as well as for context objects
1164
+ * set via the `setContext()` method of a `WebWindow` instance.
1165
+ * You can still use the `context` property of the `NewLayoutOptions` object to provide context data to be saved for the Global Layout itself.
1162
1166
  * @default false
1163
1167
  * @since io.Connect Browser 4.3
1164
1168
  */
1165
1169
  ignoreContexts?: boolean;
1170
+
1171
+ /**
1172
+ * If `true`, the context objects of individual io.Connect Windows set via the `setContext()` method of a `WebWindow` instance
1173
+ * will be saved when the Global Layout is saved. This is valid both for Browser Client apps, as well as for windows that have been
1174
+ * opened by the Main app or by a Browser Client, but aren't Browser Clients themselves (i.e., don't use the io.Connect libraries).
1175
+ * If a Browser Client has subscribed for the `onSaveRequested()` event and its context has also been set via the `setContext()` method,
1176
+ * the context returned by the `onSaveRequested()` event handler will take precedence.
1177
+ * If the `ignoreContexts` property of the `NewLayoutOptions` object is set to `true`, this property will be ignored.
1178
+ * @default false
1179
+ * @since io.Connect Browser 4.4
1180
+ */
1181
+ saveWindowContexts?: boolean;
1166
1182
  }
1167
1183
 
1168
1184
  /**
package/changelog.md CHANGED
@@ -1,3 +1,5 @@
1
+ 4.4.0
2
+ feat: G4E-10351 Add 'saveWindowContexts' option to 'io.layouts.save' that includes web window contexts in the saved layout
1
3
  4.3.0
2
4
  feat: G4E-10201 Exposed application.getConfiguration()
3
5
  feat: G4E-10509 Extended validNonExistentApps config for prefs to allow all apps