@interopio/browser 3.3.5-next.0 → 3.3.6
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 +30 -118
- package/changelog.md +2 -0
- package/dist/browser.es.js +198 -370
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.umd.js +198 -370
- package/dist/browser.umd.js.map +1 -1
- package/dist/browser.umd.min.js +1 -1
- package/package.json +8 -8
package/browser.d.ts
CHANGED
|
@@ -696,7 +696,7 @@ export namespace IOConnectBrowser {
|
|
|
696
696
|
export interface LayoutResult {
|
|
697
697
|
/** Status of the Layout operation. If successful, will be set to "Success", otherwise, will contain the returned error message. */
|
|
698
698
|
status: string;
|
|
699
|
-
}
|
|
699
|
+
}
|
|
700
700
|
}
|
|
701
701
|
|
|
702
702
|
/**
|
|
@@ -939,10 +939,10 @@ export namespace IOConnectBrowser {
|
|
|
939
939
|
/**
|
|
940
940
|
* Updates the context of the current or a given channel.
|
|
941
941
|
* @param data Data object with which to update the channel context.
|
|
942
|
-
* @param
|
|
942
|
+
* @param name The name of the channel to be updated. If not provided will update the current channel.
|
|
943
943
|
* @returns Promise that resolves when the data has been published.
|
|
944
944
|
*/
|
|
945
|
-
publish(data: any,
|
|
945
|
+
publish(data: any, name?: string): Promise<void>;
|
|
946
946
|
|
|
947
947
|
/**
|
|
948
948
|
* Returns a list of all channel names.
|
|
@@ -1059,21 +1059,6 @@ export namespace IOConnectBrowser {
|
|
|
1059
1059
|
restrictAll(restrictions: RestrictionsConfig): Promise<void>;
|
|
1060
1060
|
}
|
|
1061
1061
|
|
|
1062
|
-
/**
|
|
1063
|
-
* Options for updating a Channel context with the `publish()` method.
|
|
1064
|
-
*/
|
|
1065
|
-
export interface PublishOptions {
|
|
1066
|
-
/**
|
|
1067
|
-
* The name of the Channel to update. If not provided, the current Channel will be updated.
|
|
1068
|
-
*/
|
|
1069
|
-
name?: string;
|
|
1070
|
-
|
|
1071
|
-
/**
|
|
1072
|
-
* Flag indicating whether the published data is an FDC3 context. If so, it must contain a required `type` property.
|
|
1073
|
-
*/
|
|
1074
|
-
fdc3?: boolean;
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
1062
|
/**
|
|
1078
1063
|
* All restrictions applied to a window for publishing or subscribing to Channels.
|
|
1079
1064
|
*/
|
|
@@ -1268,6 +1253,16 @@ export namespace IOConnectBrowser {
|
|
|
1268
1253
|
flags: string;
|
|
1269
1254
|
}
|
|
1270
1255
|
|
|
1256
|
+
/**
|
|
1257
|
+
* Configuration for the `allow` attribute of the `<iframe>` element in which the app will be started when opened in a Workspace.
|
|
1258
|
+
*/
|
|
1259
|
+
export interface IFramePermissionsPolicyConfig {
|
|
1260
|
+
/**
|
|
1261
|
+
* Collection of flags that will be applied to the `<iframe>` element when the app is opened in a Workspace.
|
|
1262
|
+
*/
|
|
1263
|
+
flags: string;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1271
1266
|
export interface DefinitionDetails {
|
|
1272
1267
|
url: string;
|
|
1273
1268
|
|
|
@@ -1299,6 +1294,11 @@ export namespace IOConnectBrowser {
|
|
|
1299
1294
|
* Configuration for the `sandbox` attribute of the `<iframe>` element in which the app will be started when opened in a Workspace.
|
|
1300
1295
|
*/
|
|
1301
1296
|
workspacesSandbox?: WorkspacesSandbox;
|
|
1297
|
+
|
|
1298
|
+
/**
|
|
1299
|
+
* Configuration for the `sandbox` attribute of the `<iframe>` element in which the app will be started when opened in a Workspace.
|
|
1300
|
+
*/
|
|
1301
|
+
iframePermissionsPolicy?: IFramePermissionsPolicyConfig;
|
|
1302
1302
|
}
|
|
1303
1303
|
|
|
1304
1304
|
/**
|
|
@@ -1856,11 +1856,6 @@ export namespace IOConnectBrowser {
|
|
|
1856
1856
|
*/
|
|
1857
1857
|
getIntents(handler: IntentHandler): Promise<GetIntentsResult>;
|
|
1858
1858
|
|
|
1859
|
-
/**
|
|
1860
|
-
* Removes all saved Intent handlers for previously raised Intents.
|
|
1861
|
-
*/
|
|
1862
|
-
clearSavedHandlers(): Promise<void>;
|
|
1863
|
-
|
|
1864
1859
|
/**
|
|
1865
1860
|
* An object, which exposes the Intents Resolver API.
|
|
1866
1861
|
*/
|
|
@@ -1887,109 +1882,32 @@ export namespace IOConnectBrowser {
|
|
|
1887
1882
|
methodResponseTimeoutMs?: number;
|
|
1888
1883
|
}
|
|
1889
1884
|
|
|
1890
|
-
/**
|
|
1891
|
-
* Describes an Intent handler app within the Intents Resolver API.
|
|
1892
|
-
*/
|
|
1893
1885
|
interface ResolverIntentHandler {
|
|
1894
|
-
/**
|
|
1895
|
-
* Name of the Intent handler app.
|
|
1896
|
-
*/
|
|
1897
1886
|
applicationName: string;
|
|
1898
|
-
|
|
1899
|
-
/**
|
|
1900
|
-
* Title of the Intent handler.
|
|
1901
|
-
*/
|
|
1902
|
-
applicationTitle?: string;
|
|
1903
|
-
|
|
1904
|
-
/**
|
|
1905
|
-
* Icon of the Intent handler app.
|
|
1906
|
-
*/
|
|
1907
1887
|
applicationIcon?: string;
|
|
1908
|
-
|
|
1909
|
-
/**
|
|
1910
|
-
* ID of the Intent handler app instance.
|
|
1911
|
-
*/
|
|
1912
1888
|
instanceId?: string;
|
|
1913
1889
|
}
|
|
1914
1890
|
|
|
1915
|
-
/**
|
|
1916
|
-
* API for controlling the Intents Resolver UI app.
|
|
1917
|
-
*/
|
|
1918
1891
|
export interface Resolver {
|
|
1919
1892
|
/**
|
|
1920
|
-
* Name of the raised
|
|
1893
|
+
* Name of the raised intent
|
|
1921
1894
|
*/
|
|
1922
|
-
intent
|
|
1923
|
-
|
|
1924
|
-
/**
|
|
1925
|
-
* Version of the Intents Resolver API.
|
|
1926
|
-
*/
|
|
1927
|
-
version: string;
|
|
1928
|
-
|
|
1929
|
-
/**
|
|
1930
|
-
* Criteria for filtering the available Intent handlers. Available only if the `filterHandlers()` method was used to open the Intents Resolver UI.
|
|
1931
|
-
*/
|
|
1932
|
-
handlerFilter?: HandlerFilter;
|
|
1933
|
-
|
|
1934
|
-
/**
|
|
1935
|
-
* Details about the app instance that opened the Intents Resolver UI.
|
|
1936
|
-
*/
|
|
1937
|
-
caller?: ResolverCaller;
|
|
1938
|
-
|
|
1939
|
-
/**
|
|
1940
|
-
* Retrieves the title for the search operation. Available only if the `filterHandlers()` method was used to open the Intents Resolver UI and the `title` property of the `HandlerFilter` object was set.
|
|
1941
|
-
*/
|
|
1942
|
-
getTitle(): string | undefined;
|
|
1943
|
-
|
|
1944
|
-
/**
|
|
1945
|
-
* Notifies when a handler for the current Intent is added. Replays already existing handlers.
|
|
1946
|
-
* @param callback Callback function for handling the event.
|
|
1947
|
-
*/
|
|
1948
|
-
onHandlerAdded(callback: (handler: ResolverIntentHandler, intent: IntentInfo) => void): UnsubscribeFunction;
|
|
1949
|
-
|
|
1950
|
-
/**
|
|
1951
|
-
* Notifies when a handler for the current Intent is removed.
|
|
1952
|
-
* @param callback Callback function for handling the event.
|
|
1953
|
-
*/
|
|
1954
|
-
onHandlerRemoved(callback: (removedHandler: ResolverIntentHandler, intent: IntentInfo) => void): UnsubscribeFunction;
|
|
1895
|
+
intent: string;
|
|
1955
1896
|
|
|
1956
1897
|
/**
|
|
1957
|
-
*
|
|
1898
|
+
* Notifies when a ResolverIntentHandler of the current intent is added. Replays the already existing handlers.
|
|
1958
1899
|
*/
|
|
1959
|
-
|
|
1960
|
-
}
|
|
1900
|
+
onHandlerAdded(callback: (handler: ResolverIntentHandler) => void): UnsubscribeFunction;
|
|
1961
1901
|
|
|
1962
|
-
/**
|
|
1963
|
-
* Describes the app instance that opened the Intents Resolver UI.
|
|
1964
|
-
*/
|
|
1965
|
-
export interface ResolverCaller {
|
|
1966
|
-
/**
|
|
1967
|
-
* ID of the Interop instance of the app that opened the Intents Resolver UI.
|
|
1968
|
-
*/
|
|
1969
|
-
id: string;
|
|
1970
1902
|
/**
|
|
1971
|
-
*
|
|
1903
|
+
* Notifies when a ResolverIntentHandler of the current intent is removed.
|
|
1972
1904
|
*/
|
|
1973
|
-
|
|
1974
|
-
/**
|
|
1975
|
-
* Title of the app that opened the Intents Resolver UI.
|
|
1976
|
-
*/
|
|
1977
|
-
applicationTitle?: string;
|
|
1978
|
-
}
|
|
1905
|
+
onHandlerRemoved(callback: (removedHandler: ResolverIntentHandler) => void): UnsubscribeFunction;
|
|
1979
1906
|
|
|
1980
|
-
/**
|
|
1981
|
-
* Options for sending the chosen Intent handler to the app that raised the Intent.
|
|
1982
|
-
*/
|
|
1983
|
-
export interface SendResolverResponseOptions {
|
|
1984
|
-
/**
|
|
1985
|
-
* If `true`, the chosen Intent handler will be saved as a handler for the raised Intent. If the handler is saved, the next time the same Intent is raised, the Intents Resolver UI won't open and the saved handler will be used automatically.
|
|
1986
|
-
* @default false
|
|
1987
|
-
*/
|
|
1988
|
-
saveHandler: boolean;
|
|
1989
1907
|
/**
|
|
1990
|
-
*
|
|
1908
|
+
* Sends the chosen handler to the application which raised the intent
|
|
1991
1909
|
*/
|
|
1992
|
-
|
|
1910
|
+
sendResponse(handler: ResolverIntentHandler): Promise<IOConnectCore.Interop.InvocationResult | undefined>;
|
|
1993
1911
|
}
|
|
1994
1912
|
|
|
1995
1913
|
/**
|
|
@@ -2008,7 +1926,7 @@ export namespace IOConnectBrowser {
|
|
|
2008
1926
|
/**
|
|
2009
1927
|
* Provides additional information about an Intent (e.g., when an Intent is retrieved with the `getIntents()` method).
|
|
2010
1928
|
*/
|
|
2011
|
-
export interface IntentInfo extends AddIntentListenerRequest {}
|
|
1929
|
+
export interface IntentInfo extends AddIntentListenerRequest { }
|
|
2012
1930
|
|
|
2013
1931
|
|
|
2014
1932
|
/**
|
|
@@ -2189,12 +2107,6 @@ export namespace IOConnectBrowser {
|
|
|
2189
2107
|
* @default: false
|
|
2190
2108
|
*/
|
|
2191
2109
|
readonly waitUserResponseIndefinitely?: boolean;
|
|
2192
|
-
|
|
2193
|
-
/**
|
|
2194
|
-
* If `true`, the previously saved Intent handler for this Intent (if any) will be cleared.
|
|
2195
|
-
* @default false
|
|
2196
|
-
*/
|
|
2197
|
-
readonly clearSavedHandler?: boolean;
|
|
2198
2110
|
}
|
|
2199
2111
|
|
|
2200
2112
|
/**
|
|
@@ -2373,14 +2285,14 @@ export namespace IOConnectBrowser {
|
|
|
2373
2285
|
* @param app Name of the app whose user preferences to replace.
|
|
2374
2286
|
* @param data Data to replace the existing user preferences.
|
|
2375
2287
|
* @returns Promise that resolves when the user preferences of a specified app have been replaced.
|
|
2376
|
-
*/
|
|
2288
|
+
*/
|
|
2377
2289
|
setFor(app: string, data: any): Promise<void>;
|
|
2378
2290
|
|
|
2379
2291
|
/**
|
|
2380
2292
|
* Subscribes for changes to the user preferences of the current app.
|
|
2381
2293
|
* @param callback Callback function that will be invoked once with the initial user preferences and after that on every change of the user preferences.
|
|
2382
2294
|
* @returns Unsubscribe function.
|
|
2383
|
-
*/
|
|
2295
|
+
*/
|
|
2384
2296
|
subscribe(callback: (prefs: AppPreferences) => void): UnsubscribeFunction;
|
|
2385
2297
|
|
|
2386
2298
|
/**
|
|
@@ -2388,7 +2300,7 @@ export namespace IOConnectBrowser {
|
|
|
2388
2300
|
* @param app Name of the app to which to subscribe.
|
|
2389
2301
|
* @param callback Callback function that will be invoked once with the initial user preferences and after that on every change of the user preferences.
|
|
2390
2302
|
* @returns Unsubscribe function.
|
|
2391
|
-
*/
|
|
2303
|
+
*/
|
|
2392
2304
|
subscribeFor(app: string, callback: (prefs: AppPreferences) => void): UnsubscribeFunction;
|
|
2393
2305
|
|
|
2394
2306
|
/**
|