@interopio/browser 4.5.0-beta.0 → 4.6.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 +82 -9
- package/changelog.md +10 -1
- package/dist/browser.es.js +187 -102
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.umd.js +187 -102
- package/dist/browser.umd.js.map +1 -1
- package/dist/browser.umd.min.js +3 -3
- package/package.json +12 -16
package/browser.d.ts
CHANGED
|
@@ -871,6 +871,17 @@ export namespace IOConnectBrowser {
|
|
|
871
871
|
*/
|
|
872
872
|
getAll(type: LayoutType): Promise<LayoutSummary[]>;
|
|
873
873
|
|
|
874
|
+
/**
|
|
875
|
+
* Retrieves the contents of a Global Layout or a Workspace Layout depending on the specified options.
|
|
876
|
+
* When used for retrieving the contents of a Global Layout, the returned result will contain all components participating in the Global Layout:
|
|
877
|
+
* individual app instances (including all Workspaces App instances), all Workspace instances hosted in all Workspaces App instances,
|
|
878
|
+
* and all windows participating in all Workspaces.
|
|
879
|
+
* When used for retrieving the contents of a Workspace Layout, the returned result will contain only the windows participating in the Workspace.
|
|
880
|
+
* @param options Options for retrieving the Layout contents.
|
|
881
|
+
* @since io.Connect Browser 4.5
|
|
882
|
+
*/
|
|
883
|
+
getLayoutContents(options: GetContentsOptions): Promise<LayoutContents>;
|
|
884
|
+
|
|
874
885
|
/**
|
|
875
886
|
* Returns a collection of all available `Layout` objects of the provided type.
|
|
876
887
|
* @param type Type of the Layouts to export.
|
|
@@ -1026,6 +1037,44 @@ export namespace IOConnectBrowser {
|
|
|
1026
1037
|
version?: number;
|
|
1027
1038
|
}
|
|
1028
1039
|
|
|
1040
|
+
/**
|
|
1041
|
+
* Options for retrieving the contents of Global or Workspace Layouts via the `getLayoutContents()` method.
|
|
1042
|
+
*/
|
|
1043
|
+
export interface GetContentsOptions {
|
|
1044
|
+
/**
|
|
1045
|
+
* Name of the Layout whose contents to retrieve.
|
|
1046
|
+
*/
|
|
1047
|
+
name: string;
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* Type of the Layout. The supported types for this operation are `"Global"` and `"Workspace"`.
|
|
1051
|
+
*/
|
|
1052
|
+
type: LayoutType;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* Describes the contents of Global or Workspace Layouts retrieved via the `getLayoutContents()` method.
|
|
1057
|
+
*/
|
|
1058
|
+
export interface LayoutContents {
|
|
1059
|
+
/**
|
|
1060
|
+
* Individual app instances (including Workspaces App instances) participating in the Global Layout.
|
|
1061
|
+
* When retrieving the contents of a Workspace Layout, this property will always be an empty array.
|
|
1062
|
+
*/
|
|
1063
|
+
appComponents: Array<WindowComponent | WorkspaceFrameComponent | IOConnectWorkspaces.WorkspaceComponent>;
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* Workspaces (from all Workspaces App instances) participating in the Global Layout.
|
|
1067
|
+
* When retrieving the contents of a Workspace Layout, this property will always be an empty array.
|
|
1068
|
+
*/
|
|
1069
|
+
workspaceComponents: IOConnectWorkspaces.WorkspaceLayoutComponentState[];
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* All window instances from all Workspaces participating in the Global Layout (when retrieving the contents of a Global Layout),
|
|
1073
|
+
* or all window instances participating in the Workspace (when retrieving the contents of a Workspace Layout).
|
|
1074
|
+
*/
|
|
1075
|
+
workspaceWindows: IOConnectWorkspaces.WindowLayoutItem[];
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1029
1078
|
/**
|
|
1030
1079
|
* @ignore
|
|
1031
1080
|
*/
|
|
@@ -1334,7 +1383,7 @@ export namespace IOConnectBrowser {
|
|
|
1334
1383
|
* Configures the Global notification settings.
|
|
1335
1384
|
* @param options configuration options
|
|
1336
1385
|
*/
|
|
1337
|
-
configure(options: Configuration): Promise<
|
|
1386
|
+
configure(options: Configuration): Promise<Configuration>;
|
|
1338
1387
|
|
|
1339
1388
|
/** Retrieves the current global notification settings. */
|
|
1340
1389
|
getConfiguration(): Promise<Configuration>;
|
|
@@ -1558,9 +1607,12 @@ export namespace IOConnectBrowser {
|
|
|
1558
1607
|
|
|
1559
1608
|
/**
|
|
1560
1609
|
* Removes the current or a specified window from the current or a specified Channel.
|
|
1561
|
-
*
|
|
1610
|
+
* If you don't provide an argument, the current window will be removed from the current Channel if in single Channel mode,
|
|
1611
|
+
* or from all currently joined Channels if in multi Channel mode.
|
|
1612
|
+
* @param options Object with options which you can use to remove any window from any Channel,
|
|
1613
|
+
* or a string with the ID of a window to remove from the currently joined Channel or Channels.
|
|
1562
1614
|
*/
|
|
1563
|
-
leave(options?: LeaveOptions): Promise<void>;
|
|
1615
|
+
leave(options?: string | LeaveOptions): Promise<void>;
|
|
1564
1616
|
|
|
1565
1617
|
/**
|
|
1566
1618
|
* Returns the name of the current channel.
|
|
@@ -1700,8 +1752,6 @@ export namespace IOConnectBrowser {
|
|
|
1700
1752
|
* If only a window ID is provided, the specified window will be removed from the current Channel if in single Channel mode,
|
|
1701
1753
|
* or from all currently joined Channels if in multi Channel mode.
|
|
1702
1754
|
* If you provide only the name of the Channel to leave, the current window will be removed from the specified Channel.
|
|
1703
|
-
* If you don't provide an argument, the current window will be removed from the current Channel if in single Channel mode,
|
|
1704
|
-
* or from all currently joined Channels if in multi Channel mode.
|
|
1705
1755
|
* @since io.Connect Browser 3.5
|
|
1706
1756
|
*/
|
|
1707
1757
|
export interface LeaveOptions {
|
|
@@ -2015,11 +2065,25 @@ export namespace IOConnectBrowser {
|
|
|
2015
2065
|
}
|
|
2016
2066
|
|
|
2017
2067
|
/**
|
|
2018
|
-
*
|
|
2068
|
+
* Configuration for the `allow` attribute of the `<iframe>` element in which the app will be started.
|
|
2069
|
+
* This applies when the app is loaded in a Workspace as well as when it's opened as a standalone `<iframe>` via the io.Connect IFrames API.
|
|
2019
2070
|
*/
|
|
2020
2071
|
export interface IFramePermissionsPolicyConfig {
|
|
2021
2072
|
/**
|
|
2022
|
-
*
|
|
2073
|
+
* Collection of flags that will be applied to the `allow` attribute of the `<iframe>` element.
|
|
2074
|
+
* Provide the flags as a single string and use spaces to separate them.
|
|
2075
|
+
*/
|
|
2076
|
+
flags: string;
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
/**
|
|
2080
|
+
* Configuration for the `sandbox` attribute of the `<iframe>` element in which the app will be started.
|
|
2081
|
+
* This applies when the app is loaded in a Workspace as well as when it's opened as a standalone `<iframe>` via the io.Connect IFrames API.
|
|
2082
|
+
*/
|
|
2083
|
+
export interface IFrameSandboxConfig {
|
|
2084
|
+
/**
|
|
2085
|
+
* Collection of flags that will be applied to the `sandbox` attribute of the `<iframe>` element.
|
|
2086
|
+
* Provide the flags as a single string and use spaces to separate them.
|
|
2023
2087
|
*/
|
|
2024
2088
|
flags: string;
|
|
2025
2089
|
}
|
|
@@ -2053,6 +2117,7 @@ export namespace IOConnectBrowser {
|
|
|
2053
2117
|
|
|
2054
2118
|
/**
|
|
2055
2119
|
* Configuration for the `sandbox` attribute of the `<iframe>` element in which the app will be started when opened in a Workspace.
|
|
2120
|
+
* @deprecated Will be removed in **io.Connect Browser** 5.0. Use the `iframeSandbox` property instead.
|
|
2056
2121
|
*/
|
|
2057
2122
|
workspacesSandbox?: WorkspacesSandbox;
|
|
2058
2123
|
|
|
@@ -2062,9 +2127,17 @@ export namespace IOConnectBrowser {
|
|
|
2062
2127
|
channelSelector?: ChannelSelector;
|
|
2063
2128
|
|
|
2064
2129
|
/**
|
|
2065
|
-
* Configuration for the `
|
|
2130
|
+
* Configuration for the `allow` attribute of the `<iframe>` element in which the app will be started.
|
|
2131
|
+
* This applies when the app is loaded in a Workspace as well as when it's opened as a standalone `<iframe>` via the io.Connect IFrames API.
|
|
2066
2132
|
*/
|
|
2067
2133
|
iframePermissionsPolicy?: IFramePermissionsPolicyConfig;
|
|
2134
|
+
|
|
2135
|
+
/**
|
|
2136
|
+
* Configuration for the `sandbox` attribute of the `<iframe>` element in which the app will be started.
|
|
2137
|
+
* This applies when the app is loaded in a Workspace as well as when it's opened as a standalone `<iframe>` via the io.Connect IFrames API.
|
|
2138
|
+
* @since io.Connect Browser 4.5
|
|
2139
|
+
*/
|
|
2140
|
+
iframeSandbox?: IFrameSandboxConfig;
|
|
2068
2141
|
}
|
|
2069
2142
|
|
|
2070
2143
|
/**
|
|
@@ -2813,7 +2886,7 @@ export namespace IOConnectBrowser {
|
|
|
2813
2886
|
/**
|
|
2814
2887
|
* Provides additional information about an Intent (e.g., when an Intent is retrieved via the `getIntents()` method).
|
|
2815
2888
|
*/
|
|
2816
|
-
export interface IntentInfo extends AddIntentListenerRequest {}
|
|
2889
|
+
export interface IntentInfo extends AddIntentListenerRequest { }
|
|
2817
2890
|
|
|
2818
2891
|
/**
|
|
2819
2892
|
* Criteria for excluding Intent handlers from the results when using the `filterHandlers()` method.
|
package/changelog.md
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
4.6.0
|
|
2
|
+
feat: G4E-11120 add `isChannelsMetadataSupported` system method to check if Channels API supports `metadata`.
|
|
1
3
|
4.5.0
|
|
2
|
-
|
|
4
|
+
feat: G4E-10515 add support for iframes-api
|
|
5
|
+
feat: G4E-10030 Add a layouts API method that returns lists of applications, workspaces and workspace windows
|
|
6
|
+
feat: G4E-10759 Added support for passing a string to io.channels.leave() as a shortcut for { windowId } and consistency with io.CD.
|
|
3
7
|
feat: G4E-10757 Add 'options' argument to io.channels.getMyChannels() method
|
|
8
|
+
fix: G4E-10767 notifications.configure() to resolve with the updated notification configuration instead of undefined.
|
|
9
|
+
fix: G4E-10762 channels restrictAll() now resolves with undefined instead of an empty object, aligning its return contract with io.CD.
|
|
10
|
+
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.
|
|
11
|
+
4.4.1
|
|
12
|
+
chore: update interopio/insights packages
|
|
4
13
|
4.4.0
|
|
5
14
|
feat: G4E-10351 Add 'saveWindowContexts' option to 'io.layouts.save' that includes web window contexts in the saved layout
|
|
6
15
|
4.3.0
|