@interopio/browser 4.3.0 → 4.5.0-beta.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 +31 -13
- package/changelog.md +5 -0
- package/dist/browser.es.js +3980 -3593
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.umd.js +3980 -3593
- package/dist/browser.umd.js.map +1 -1
- package/dist/browser.umd.min.js +8 -8
- package/package.json +7 -8
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
|
/**
|
|
@@ -1520,9 +1536,10 @@ export namespace IOConnectBrowser {
|
|
|
1520
1536
|
/**
|
|
1521
1537
|
* Retrieves a list with the contexts of the current Channels. Can be used both in single and in multi Channel mode.
|
|
1522
1538
|
* If used in single Channel mode, the returned array will always contain a single member if the window is joined to a Channel, or will be empty otherwise.
|
|
1539
|
+
* @param options Settings for retrieving FDC3 contexts published in the io.Connect Channels. *Available since io.Connect Browser 4.5.*
|
|
1523
1540
|
* @since io.Connect Browser 3.5
|
|
1524
1541
|
*/
|
|
1525
|
-
getMyChannels(): Promise<ChannelContext[]>;
|
|
1542
|
+
getMyChannels(options?: FDC3Options): Promise<ChannelContext[]>;
|
|
1526
1543
|
|
|
1527
1544
|
/**
|
|
1528
1545
|
* Retrieves a list with the names of the current Channels. Can be used both in single and in multi Channel mode.
|
|
@@ -2399,7 +2416,8 @@ export namespace IOConnectBrowser {
|
|
|
2399
2416
|
}
|
|
2400
2417
|
|
|
2401
2418
|
interface InteropAppChannelV2 {
|
|
2402
|
-
name
|
|
2419
|
+
name?: string;
|
|
2420
|
+
id?: string;
|
|
2403
2421
|
description?: string;
|
|
2404
2422
|
broadcasts?: string[];
|
|
2405
2423
|
listensFor?: string[];
|
package/changelog.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
4.5.0
|
|
2
|
+
fix: G4E-10635 Enforced stricter URL validation for app definitions and io.windows.open() URLs. URLs with unsafe protocols ("data:", "javascript:", "vbscript:") are now rejected.
|
|
3
|
+
feat: G4E-10757 Add 'options' argument to io.channels.getMyChannels() method
|
|
4
|
+
4.4.0
|
|
5
|
+
feat: G4E-10351 Add 'saveWindowContexts' option to 'io.layouts.save' that includes web window contexts in the saved layout
|
|
1
6
|
4.3.0
|
|
2
7
|
feat: G4E-10201 Exposed application.getConfiguration()
|
|
3
8
|
feat: G4E-10509 Extended validNonExistentApps config for prefs to allow all apps
|