@interopio/browser 4.2.5 → 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 +35 -12
- package/changelog.md +7 -0
- package/dist/browser.es.js +4071 -3589
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.umd.js +4071 -3589
- package/dist/browser.umd.js.map +1 -1
- package/dist/browser.umd.min.js +8 -8
- package/package.json +8 -8
- package/readme.md +28 -6
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
|
-
*
|
|
934
|
-
* @param callback
|
|
935
|
-
*
|
|
936
|
-
*
|
|
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
|
-
|
|
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
|
-
*
|
|
1161
|
-
*
|
|
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
|
/**
|
|
@@ -2434,6 +2450,12 @@ export namespace IOConnectBrowser {
|
|
|
2434
2450
|
/** Instances of that app. */
|
|
2435
2451
|
instances: Instance[];
|
|
2436
2452
|
|
|
2453
|
+
/**
|
|
2454
|
+
* Retrieves the definition of the current app.
|
|
2455
|
+
* @since io.Connect Browser 4.3
|
|
2456
|
+
*/
|
|
2457
|
+
getConfiguration(): Promise<Definition>;
|
|
2458
|
+
|
|
2437
2459
|
/**
|
|
2438
2460
|
* Returns the newly started application instance.
|
|
2439
2461
|
* @param context The initial context of the application.
|
|
@@ -3094,8 +3116,9 @@ export namespace IOConnectBrowser {
|
|
|
3094
3116
|
/**
|
|
3095
3117
|
* Notifies you when the theme is changed.
|
|
3096
3118
|
* @param callback Callback to handle the event. Receives the theme object as an argument.
|
|
3119
|
+
* @returns Unsubscribe function.
|
|
3097
3120
|
*/
|
|
3098
|
-
onChanged(callback: (theme: Theme) => any):
|
|
3121
|
+
onChanged(callback: (theme: Theme) => any): UnsubscribeFunction;
|
|
3099
3122
|
|
|
3100
3123
|
/**
|
|
3101
3124
|
* Selects a new theme
|
package/changelog.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
4.4.0
|
|
2
|
+
feat: G4E-10351 Add 'saveWindowContexts' option to 'io.layouts.save' that includes web window contexts in the saved layout
|
|
3
|
+
4.3.0
|
|
4
|
+
feat: G4E-10201 Exposed application.getConfiguration()
|
|
5
|
+
feat: G4E-10509 Extended validNonExistentApps config for prefs to allow all apps
|
|
6
|
+
fix: G4E-10158 Fixed multiple subscriptions for io.themes.onChanged in UIController
|
|
7
|
+
fix: G4E-10230 Fixed io.themes.onChanged fires callback when re-selecting current theme
|
|
1
8
|
4.2.2
|
|
2
9
|
feat: G4E-10023 Exclude workspace and workspace windows contexts when saving a layout using ignoreContexts flag
|
|
3
10
|
4.2.0
|