@interopio/browser 4.0.0 → 4.0.2
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 +50 -12
- package/dist/browser.es.js +2 -19
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.umd.js +2 -19
- package/dist/browser.umd.js.map +1 -1
- package/dist/browser.umd.min.js +1 -1
- package/package.json +4 -4
package/browser.d.ts
CHANGED
|
@@ -154,6 +154,7 @@ export namespace IOConnectBrowser {
|
|
|
154
154
|
* If `true`, when the io.Connect API factory function is invoked more than once in the same app,
|
|
155
155
|
* it will return the already initialized API object instead of throwing an error.
|
|
156
156
|
* @default false
|
|
157
|
+
* @since io.Connect Browser 3.5
|
|
157
158
|
*/
|
|
158
159
|
memoizeAPI?: boolean;
|
|
159
160
|
|
|
@@ -163,24 +164,28 @@ export namespace IOConnectBrowser {
|
|
|
163
164
|
*/
|
|
164
165
|
libraries?: Array<(io: IOConnectBrowser.API, config?: IOConnectBrowser.Config | IOConnectDesktop.Config) => Promise<void>>;
|
|
165
166
|
|
|
166
|
-
/* TODO: mark as deprecated in favor of configuring intentResolver in platform and browser config */
|
|
167
|
-
/* Enable and configure Intents Resolver UI */
|
|
168
167
|
/**
|
|
169
|
-
* Settings for the Intents Resolver UI.
|
|
168
|
+
* Deprecated. Settings for the legacy Intents Resolver UI in **io.Connect Browser**.
|
|
169
|
+
* @ignore
|
|
170
170
|
*/
|
|
171
171
|
intents?: IOConnectBrowser.Intents.Config;
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
174
|
* Settings for the io.Connect widget.
|
|
175
|
+
* @since io.Connect Browser 3.5
|
|
175
176
|
*/
|
|
176
177
|
widget?: WidgetConfig;
|
|
177
178
|
|
|
178
179
|
/**
|
|
179
180
|
* Settings for the io.Connect modals.
|
|
181
|
+
* @since io.Connect Browser 4.0
|
|
180
182
|
*/
|
|
181
183
|
modals?: ModalsUIConfig;
|
|
182
184
|
|
|
183
|
-
|
|
185
|
+
/**
|
|
186
|
+
* Settings for the Intents Resolver UI.
|
|
187
|
+
* @since io.Connect Browser 4.0
|
|
188
|
+
*/
|
|
184
189
|
intentResolver?: IntentResolverUIConfig;
|
|
185
190
|
}
|
|
186
191
|
|
|
@@ -283,17 +288,25 @@ export namespace IOConnectBrowser {
|
|
|
283
288
|
timeout?: number;
|
|
284
289
|
}
|
|
285
290
|
|
|
286
|
-
|
|
291
|
+
/**
|
|
292
|
+
* Settings for the Intents Resolver UI.
|
|
293
|
+
*/
|
|
287
294
|
export interface IntentResolverUIConfig {
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* If `true`, will enable the Intents Resolver UI for the Browser Client unless the app origin has been blocked in the Main app configuration.
|
|
298
|
+
*/
|
|
288
299
|
enable: boolean;
|
|
289
300
|
|
|
290
301
|
/**
|
|
291
|
-
*
|
|
302
|
+
* If `true`, the `@interopio/browser` library will wait for the `IOBrowserIntentResolverUI()` factory function
|
|
303
|
+
* to resolve before completing its initialization.
|
|
292
304
|
* @default true
|
|
293
305
|
*/
|
|
294
306
|
awaitFactory?: boolean;
|
|
307
|
+
|
|
295
308
|
/**
|
|
296
|
-
*
|
|
309
|
+
* Interval in milliseconds to wait for the `IOBrowserIntentResolverUI()` factory function to be fetched from the remote source.
|
|
297
310
|
* @default 5000
|
|
298
311
|
*/
|
|
299
312
|
timeout?: number;
|
|
@@ -349,7 +362,6 @@ export namespace IOConnectBrowser {
|
|
|
349
362
|
}
|
|
350
363
|
|
|
351
364
|
/**
|
|
352
|
-
* @intro
|
|
353
365
|
* The [`@interopio/modals-ui`](https://www.npmjs.com/package/@interopio/modals-ui) library provides components and APIs used
|
|
354
366
|
* in **io.Connect Browser** for displaying dialogs and alerts. When initializing the [`@interopio/browser`](https://www.npmjs.com/package/@interopio/browser) library,
|
|
355
367
|
* you can provide configuration for the Modals UI library (e.g., disable alerts and/or dialogs, and more).
|
|
@@ -360,6 +372,7 @@ export namespace IOConnectBrowser {
|
|
|
360
372
|
* Settings for the io.Connect alerts.
|
|
361
373
|
*/
|
|
362
374
|
alerts?: {
|
|
375
|
+
|
|
363
376
|
/**
|
|
364
377
|
* If `true`, will enable the io.Connect alerts.
|
|
365
378
|
*/
|
|
@@ -370,6 +383,7 @@ export namespace IOConnectBrowser {
|
|
|
370
383
|
* Settings for the io.Connect dialogs.
|
|
371
384
|
*/
|
|
372
385
|
dialogs?: {
|
|
386
|
+
|
|
373
387
|
/**
|
|
374
388
|
* If `true`, will enable the io.Connect dialogs.
|
|
375
389
|
*/
|
|
@@ -531,6 +545,7 @@ export namespace IOConnectBrowser {
|
|
|
531
545
|
|
|
532
546
|
/**
|
|
533
547
|
* Modals API.
|
|
548
|
+
* @since io.Connect Browser 4.0
|
|
534
549
|
*/
|
|
535
550
|
modals?: IOConnectModals.API;
|
|
536
551
|
}
|
|
@@ -791,6 +806,7 @@ export namespace IOConnectBrowser {
|
|
|
791
806
|
|
|
792
807
|
/**
|
|
793
808
|
* Retrieves the last restored Global Layout (if any).
|
|
809
|
+
* @since io.Connect Browser 4.0
|
|
794
810
|
*/
|
|
795
811
|
getCurrentLayout(): Promise<Layout | undefined>;
|
|
796
812
|
|
|
@@ -848,6 +864,7 @@ export namespace IOConnectBrowser {
|
|
|
848
864
|
* Notifies when a new default Global Layout has been selected or when the current one has been cleared.
|
|
849
865
|
* @param callback Callback function for handling the event. Receives as an argument an object with a `name` property
|
|
850
866
|
* holding the name of the newly selected default Global Layout. If the default Global Layout has been cleared, the argument will be `undefined`.
|
|
867
|
+
* @since io.Connect Browser 4.0
|
|
851
868
|
*/
|
|
852
869
|
onDefaultGlobalChanged(callback: (layout?: { name: string }) => void): () => void;
|
|
853
870
|
|
|
@@ -914,6 +931,7 @@ export namespace IOConnectBrowser {
|
|
|
914
931
|
/**
|
|
915
932
|
* Notifies when a Layout is restored.
|
|
916
933
|
* @param callback Callback function for handling the event. Receives as an argument the `Layout` object that was restored.
|
|
934
|
+
* @since io.Connect Browser 4.0
|
|
917
935
|
*/
|
|
918
936
|
onRestored(callback: (layout: Layout) => void): () => void;
|
|
919
937
|
|
|
@@ -1196,6 +1214,7 @@ export namespace IOConnectBrowser {
|
|
|
1196
1214
|
/**
|
|
1197
1215
|
* Alias for `onActiveCountChanged()` for compatibility with **io.Connect Desktop**.
|
|
1198
1216
|
* @param callback Callback function for handling the event.
|
|
1217
|
+
* @since io.Connect Browser 4.0
|
|
1199
1218
|
*/
|
|
1200
1219
|
onCounterChanged(callback: (info: { count: number; }) => void): UnsubscribeFunction;
|
|
1201
1220
|
|
|
@@ -1342,6 +1361,7 @@ export namespace IOConnectBrowser {
|
|
|
1342
1361
|
/**
|
|
1343
1362
|
* If `true`, will enable showing a notification badge in the io.Connect Home App.
|
|
1344
1363
|
* @default true
|
|
1364
|
+
* @since io.Connect Browser 4.0
|
|
1345
1365
|
*/
|
|
1346
1366
|
showNotificationBadge?: boolean;
|
|
1347
1367
|
}
|
|
@@ -1548,6 +1568,7 @@ export namespace IOConnectBrowser {
|
|
|
1548
1568
|
* Clears the context data of the current Channel. The `data` property of the Channel context is set to an empty object.
|
|
1549
1569
|
* Pass a Channel name as an argument to clear the data of a specific Channel.
|
|
1550
1570
|
* @param name Name of the Channel whose context data to clear.
|
|
1571
|
+
* @since io.Connect Browser 4.0
|
|
1551
1572
|
*/
|
|
1552
1573
|
clearChannelData(name?: string): Promise<void>;
|
|
1553
1574
|
|
|
@@ -1555,6 +1576,7 @@ export namespace IOConnectBrowser {
|
|
|
1555
1576
|
* Sets a specified path within the Channel context to the provided value. If the path doesn't exist, it will be created.
|
|
1556
1577
|
* @param path Object containing the path to update and the value with which to update it. The path must be specified as a dot-separated string (e.g., `"prop1.prop2"`).
|
|
1557
1578
|
* @param name Name of the Channel to update. If not specified, will update the current Channel.
|
|
1579
|
+
* @since io.Connect Browser 4.0
|
|
1558
1580
|
*/
|
|
1559
1581
|
setPath(path: IOConnectBrowser.Contexts.PathValue, name?: string): Promise<void>;
|
|
1560
1582
|
|
|
@@ -1562,6 +1584,7 @@ export namespace IOConnectBrowser {
|
|
|
1562
1584
|
* Sets a list of specified paths within the Channel context to the provided values. If a path doesn't exist, it will be created.
|
|
1563
1585
|
* @param paths List of objects each containing a path to update and the value with which to update it. The path must be specified as a dot-separated string (e.g., `"prop1.prop2"`).
|
|
1564
1586
|
* @param name Name of the Channel to update. If not specified, will update the current Channel.
|
|
1587
|
+
* @since io.Connect Browser 4.0
|
|
1565
1588
|
*/
|
|
1566
1589
|
setPaths(paths: IOConnectBrowser.Contexts.PathValue[], name?: string): Promise<void>;
|
|
1567
1590
|
}
|
|
@@ -2164,7 +2187,7 @@ export namespace IOConnectBrowser {
|
|
|
2164
2187
|
* The exception to the uniqueness constraint is that an App Directory can hold definitions for multiple versions of the same app.
|
|
2165
2188
|
* The same appName could occur in other directories. We are not currently specifying app name conventions in the document.
|
|
2166
2189
|
*/
|
|
2167
|
-
name
|
|
2190
|
+
name?: string;
|
|
2168
2191
|
|
|
2169
2192
|
/**
|
|
2170
2193
|
* Enum: "web" "native" "citrix" "onlineNative" "other".
|
|
@@ -2441,7 +2464,12 @@ export namespace IOConnectBrowser {
|
|
|
2441
2464
|
* The Intents API is accessible via the [`io.intents`](#API) object.
|
|
2442
2465
|
*/
|
|
2443
2466
|
namespace Intents {
|
|
2467
|
+
|
|
2468
|
+
/**
|
|
2469
|
+
* Intents API.
|
|
2470
|
+
*/
|
|
2444
2471
|
export interface API {
|
|
2472
|
+
|
|
2445
2473
|
/**
|
|
2446
2474
|
* Raises an intent, optionally passing context to the intent handlers, and optionally targeting specific intent handlers.
|
|
2447
2475
|
* If no handlers are matching the targeting conditions the promise will be rejected.
|
|
@@ -2522,10 +2550,16 @@ export namespace IOConnectBrowser {
|
|
|
2522
2550
|
onHandlerRemoved(callback: (handler: IntentHandler, intentName: string) => void): UnsubscribeFunction;
|
|
2523
2551
|
|
|
2524
2552
|
/**
|
|
2525
|
-
*
|
|
2553
|
+
* Deprecated for **io.Connect Browser**. Intents Resolver API.
|
|
2554
|
+
* @ignore
|
|
2526
2555
|
*/
|
|
2527
2556
|
resolver?: Resolver;
|
|
2528
2557
|
}
|
|
2558
|
+
|
|
2559
|
+
/**
|
|
2560
|
+
* Deprecated. Settings for the legacy Intents Resolver UI for **io.Connect Browser**.
|
|
2561
|
+
* @ignore
|
|
2562
|
+
*/
|
|
2529
2563
|
export interface Config {
|
|
2530
2564
|
/**
|
|
2531
2565
|
* Whether to use Intents Resolver UI to handle raising an intent.
|
|
@@ -2549,6 +2583,7 @@ export namespace IOConnectBrowser {
|
|
|
2549
2583
|
|
|
2550
2584
|
/**
|
|
2551
2585
|
* Describes an Intent handler app within the Intents Resolver API.
|
|
2586
|
+
* @ignore
|
|
2552
2587
|
*/
|
|
2553
2588
|
interface ResolverIntentHandler {
|
|
2554
2589
|
/**
|
|
@@ -2573,7 +2608,8 @@ export namespace IOConnectBrowser {
|
|
|
2573
2608
|
}
|
|
2574
2609
|
|
|
2575
2610
|
/**
|
|
2576
|
-
* API for controlling the Intents Resolver UI app.
|
|
2611
|
+
* Deprecated for **io.Connect Browser**. API for controlling the Intents Resolver UI app.
|
|
2612
|
+
* @ignore
|
|
2577
2613
|
*/
|
|
2578
2614
|
export interface Resolver {
|
|
2579
2615
|
/**
|
|
@@ -2623,6 +2659,7 @@ export namespace IOConnectBrowser {
|
|
|
2623
2659
|
|
|
2624
2660
|
/**
|
|
2625
2661
|
* Describes the app instance that opened the Intents Resolver UI.
|
|
2662
|
+
* @ignore
|
|
2626
2663
|
*/
|
|
2627
2664
|
export interface ResolverCaller {
|
|
2628
2665
|
/**
|
|
@@ -2641,6 +2678,7 @@ export namespace IOConnectBrowser {
|
|
|
2641
2678
|
|
|
2642
2679
|
/**
|
|
2643
2680
|
* Options for sending the chosen Intent handler to the app that raised the Intent.
|
|
2681
|
+
* @ignore
|
|
2644
2682
|
*/
|
|
2645
2683
|
export interface SendResolverResponseOptions {
|
|
2646
2684
|
/**
|
|
@@ -2668,7 +2706,7 @@ export namespace IOConnectBrowser {
|
|
|
2668
2706
|
}
|
|
2669
2707
|
|
|
2670
2708
|
/**
|
|
2671
|
-
* Provides additional information about an Intent (e.g., when an Intent is retrieved
|
|
2709
|
+
* Provides additional information about an Intent (e.g., when an Intent is retrieved via the `getIntents()` method).
|
|
2672
2710
|
*/
|
|
2673
2711
|
export interface IntentInfo extends AddIntentListenerRequest {}
|
|
2674
2712
|
|
package/dist/browser.es.js
CHANGED
|
@@ -1903,7 +1903,7 @@ const v2LocalizedDefinitionDecoder = object$1({
|
|
|
1903
1903
|
});
|
|
1904
1904
|
const v2DefinitionDecoder = object$1({
|
|
1905
1905
|
appId: nonEmptyStringDecoder$3,
|
|
1906
|
-
name: nonEmptyStringDecoder$3,
|
|
1906
|
+
name: optional$1(nonEmptyStringDecoder$3),
|
|
1907
1907
|
type: v2TypeDecoder,
|
|
1908
1908
|
details: v2DetailsDecoder,
|
|
1909
1909
|
version: optional$1(nonEmptyStringDecoder$3),
|
|
@@ -2296,23 +2296,6 @@ const intentDefinitionDecoder = object$2({
|
|
|
2296
2296
|
contexts: optional$2(array$2(string$2())),
|
|
2297
2297
|
customConfig: optional$2(object$2())
|
|
2298
2298
|
});
|
|
2299
|
-
object$2({
|
|
2300
|
-
name: nonEmptyStringDecoder$2,
|
|
2301
|
-
title: optional$2(nonEmptyStringDecoder$2),
|
|
2302
|
-
version: optional$2(nonEmptyStringDecoder$2),
|
|
2303
|
-
appId: optional$2(nonEmptyStringDecoder$2),
|
|
2304
|
-
manifest: nonEmptyStringDecoder$2,
|
|
2305
|
-
manifestType: nonEmptyStringDecoder$2,
|
|
2306
|
-
tooltip: optional$2(nonEmptyStringDecoder$2),
|
|
2307
|
-
description: optional$2(nonEmptyStringDecoder$2),
|
|
2308
|
-
contactEmail: optional$2(nonEmptyStringDecoder$2),
|
|
2309
|
-
supportEmail: optional$2(nonEmptyStringDecoder$2),
|
|
2310
|
-
publisher: optional$2(nonEmptyStringDecoder$2),
|
|
2311
|
-
images: optional$2(array$2(object$2({ url: optional$2(nonEmptyStringDecoder$2) }))),
|
|
2312
|
-
icons: optional$2(array$2(object$2({ icon: optional$2(nonEmptyStringDecoder$2) }))),
|
|
2313
|
-
customConfig: anyJson$2(),
|
|
2314
|
-
intents: optional$2(array$2(intentDefinitionDecoder))
|
|
2315
|
-
});
|
|
2316
2299
|
const applicationDefinitionDecoder = object$2({
|
|
2317
2300
|
name: nonEmptyStringDecoder$2,
|
|
2318
2301
|
type: nonEmptyStringDecoder$2.where((s) => s === "window", "Expected a value of window"),
|
|
@@ -7536,7 +7519,7 @@ class IoC {
|
|
|
7536
7519
|
}
|
|
7537
7520
|
}
|
|
7538
7521
|
|
|
7539
|
-
var version$1 = "4.0.
|
|
7522
|
+
var version$1 = "4.0.2";
|
|
7540
7523
|
|
|
7541
7524
|
const setupGlobalSystem = (io, bridge) => {
|
|
7542
7525
|
return {
|