@interopio/desktop 6.5.1 → 6.6.1-next.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/changelog.md +3 -0
- package/desktop.d.ts +180 -13
- package/dist/desktop.browser.js +294 -102
- package/dist/desktop.browser.js.map +1 -1
- package/dist/desktop.browser.min.js +1 -1
- package/dist/desktop.browser.min.js.map +1 -1
- package/dist/desktop.es.js +294 -102
- package/dist/desktop.es.js.map +1 -1
- package/dist/desktop.umd.js +294 -102
- package/dist/desktop.umd.js.map +1 -1
- package/dist/desktop.umd.min.js +1 -1
- package/dist/desktop.umd.min.js.map +1 -1
- package/package.json +4 -4
package/changelog.md
CHANGED
package/desktop.d.ts
CHANGED
|
@@ -2008,7 +2008,13 @@ export declare namespace IOConnectDesktop {
|
|
|
2008
2008
|
* Restores a Layout.
|
|
2009
2009
|
* @param options Options for restoring a Layout.
|
|
2010
2010
|
*/
|
|
2011
|
-
restore(options: RestoreOptions): Promise<
|
|
2011
|
+
restore(options: RestoreOptions): Promise<RestoreResumeResult>;
|
|
2012
|
+
|
|
2013
|
+
/**
|
|
2014
|
+
* Resets a Layout.
|
|
2015
|
+
* @param options Options for resetting a Layout.
|
|
2016
|
+
*/
|
|
2017
|
+
reset(options: ResetLayoutOptions): Promise<RestoreResumeResult>;
|
|
2012
2018
|
|
|
2013
2019
|
/**
|
|
2014
2020
|
* Removes a Layout
|
|
@@ -2035,6 +2041,11 @@ export declare namespace IOConnectDesktop {
|
|
|
2035
2041
|
*/
|
|
2036
2042
|
getCurrentLayout(): Promise<Layout | undefined>;
|
|
2037
2043
|
|
|
2044
|
+
/**
|
|
2045
|
+
* Retrieves info about the currently active Layout (ID, type, name, participating app instances), as well as about any previously active Layouts that still have running instances of their participating apps.
|
|
2046
|
+
*/
|
|
2047
|
+
getRestoredLayoutsInfo(): Promise<GetRestoredLayoutsInfoResult | undefined>;
|
|
2048
|
+
|
|
2038
2049
|
/**
|
|
2039
2050
|
* Hibernates a Layout.
|
|
2040
2051
|
* @param name Name of the Layout to hibernate.
|
|
@@ -2048,7 +2059,7 @@ export declare namespace IOConnectDesktop {
|
|
|
2048
2059
|
* @param context Context for the Layout.
|
|
2049
2060
|
* @param options Options for resuming a Layout.
|
|
2050
2061
|
*/
|
|
2051
|
-
resume(name: string, context?: any, options?: IOConnectDesktop.Layouts.ResumeOptions): Promise<
|
|
2062
|
+
resume(name: string, context?: any, options?: IOConnectDesktop.Layouts.ResumeOptions): Promise<RestoreResumeResult>;
|
|
2052
2063
|
|
|
2053
2064
|
/**
|
|
2054
2065
|
* Updates the context saved for your app in the currently loaded Layout.
|
|
@@ -2196,17 +2207,37 @@ export declare namespace IOConnectDesktop {
|
|
|
2196
2207
|
}
|
|
2197
2208
|
|
|
2198
2209
|
/**
|
|
2199
|
-
* Describes the result returned from resuming a Layout.
|
|
2210
|
+
* Describes the result returned from restoring or resuming a Layout.
|
|
2200
2211
|
*/
|
|
2201
|
-
export interface
|
|
2212
|
+
export interface RestoreResumeResult extends LayoutResult {
|
|
2202
2213
|
/**
|
|
2203
|
-
*
|
|
2204
|
-
* Each object contains the instance ID and the app name of the resumed app instance.
|
|
2214
|
+
* Status of the Layout restore or resume operation.
|
|
2205
2215
|
*/
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2216
|
+
status: "Success" | "Failed";
|
|
2217
|
+
|
|
2218
|
+
/**
|
|
2219
|
+
* ID of the Layout that was restored or resumed.
|
|
2220
|
+
*/
|
|
2221
|
+
layoutId: string;
|
|
2222
|
+
|
|
2223
|
+
/**
|
|
2224
|
+
* List of objects describing the app instances participating in the restored or resumed Layout.
|
|
2225
|
+
*/
|
|
2226
|
+
instances: RestoredInstance[];
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
/**
|
|
2230
|
+
* Describes an app instance participating in a restored or resumed Layout.
|
|
2231
|
+
*/
|
|
2232
|
+
export interface RestoredInstance {
|
|
2233
|
+
/**
|
|
2234
|
+
* Name of the app within the io.Connect framework.
|
|
2235
|
+
*/
|
|
2236
|
+
appName: string;
|
|
2237
|
+
/**
|
|
2238
|
+
* Unique ID of the app instance within the io.Connect framework.
|
|
2239
|
+
*/
|
|
2240
|
+
instanceId: string;
|
|
2210
2241
|
}
|
|
2211
2242
|
|
|
2212
2243
|
/**
|
|
@@ -2223,6 +2254,48 @@ export declare namespace IOConnectDesktop {
|
|
|
2223
2254
|
}[];
|
|
2224
2255
|
}
|
|
2225
2256
|
|
|
2257
|
+
/**
|
|
2258
|
+
* Describes the currently active Layout (ID, type, name and participating app instances), as well as any previously active Layouts that still have running instances of their participating apps.
|
|
2259
|
+
*/
|
|
2260
|
+
export interface GetRestoredLayoutsInfoResult {
|
|
2261
|
+
/**
|
|
2262
|
+
* List of objects each describing the currently active Layout or any previously active Layouts.
|
|
2263
|
+
*/
|
|
2264
|
+
layoutInfo: RestoredLayoutDetails[];
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
/**
|
|
2268
|
+
* Describes a currently active Layout, or a previously active Layout that may still have running instances of its participating apps.
|
|
2269
|
+
*/
|
|
2270
|
+
export interface RestoredLayoutDetails {
|
|
2271
|
+
/**
|
|
2272
|
+
* ID of the Layout.
|
|
2273
|
+
*/
|
|
2274
|
+
id: string;
|
|
2275
|
+
/**
|
|
2276
|
+
* Type of the Layout.
|
|
2277
|
+
*/
|
|
2278
|
+
type: string;
|
|
2279
|
+
/**
|
|
2280
|
+
* Name of the Layout.
|
|
2281
|
+
*/
|
|
2282
|
+
name: string;
|
|
2283
|
+
/**
|
|
2284
|
+
* List of objects each describing the app instances participating in the Layout.
|
|
2285
|
+
*/
|
|
2286
|
+
instances: RestoredLayoutInstanceInfo[];
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* Describes an app instance participating in a Layout.
|
|
2291
|
+
*/
|
|
2292
|
+
export interface RestoredLayoutInstanceInfo extends RestoredInstance {
|
|
2293
|
+
/**
|
|
2294
|
+
* Flag indicating whether the app instance has been stopped.
|
|
2295
|
+
*/
|
|
2296
|
+
stopped: boolean;
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2226
2299
|
/**
|
|
2227
2300
|
* Type of the Layout component - an activity or an app.
|
|
2228
2301
|
* @ignore
|
|
@@ -2409,6 +2482,31 @@ export declare namespace IOConnectDesktop {
|
|
|
2409
2482
|
splash?: RestoreSplashOptions;
|
|
2410
2483
|
}
|
|
2411
2484
|
|
|
2485
|
+
/**
|
|
2486
|
+
* Options for resetting a Layout.
|
|
2487
|
+
*/
|
|
2488
|
+
export interface ResetLayoutOptions {
|
|
2489
|
+
/**
|
|
2490
|
+
* ID of the Layout to reset.
|
|
2491
|
+
*/
|
|
2492
|
+
layoutId: string
|
|
2493
|
+
/**
|
|
2494
|
+
* If `true`, will reset only the visible apps. Any apps that may have been hidden programmatically won't be included in the Layout reset process.
|
|
2495
|
+
* @default false
|
|
2496
|
+
*/
|
|
2497
|
+
visibleOnly?: boolean;
|
|
2498
|
+
/**
|
|
2499
|
+
* If `true`, will create any missing apps that may have been closed by the user or programmatically.
|
|
2500
|
+
* @default true
|
|
2501
|
+
*/
|
|
2502
|
+
createMissing?: boolean;
|
|
2503
|
+
/**
|
|
2504
|
+
* If `true`, will reset the Layout to its default state. Set to `false` to preserve any current app context or Channel selection.
|
|
2505
|
+
* @default true
|
|
2506
|
+
*/
|
|
2507
|
+
resetState?: boolean;
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2412
2510
|
/**
|
|
2413
2511
|
* Options for hibernating Layouts.
|
|
2414
2512
|
*/
|
|
@@ -5961,9 +6059,9 @@ export declare namespace IOConnectDesktop {
|
|
|
5961
6059
|
/**
|
|
5962
6060
|
* Updates the context of the current or a specified Channel.
|
|
5963
6061
|
* @param data Data object with which to update the Channel context.
|
|
5964
|
-
* @param
|
|
6062
|
+
* @param options The name of the Channel to update, or an object containing the name of the Channel to update and a flag indicating whether the published data is an FDC3 context. If no options are provided, the current Channel will be updated.
|
|
5965
6063
|
*/
|
|
5966
|
-
publish(data: any,
|
|
6064
|
+
publish(data: any, options?: string | PublishOptions): Promise<void>;
|
|
5967
6065
|
|
|
5968
6066
|
/**
|
|
5969
6067
|
* Sets a specified path within the Channel context to the provided value. If the path doesn't exist, it will be created.
|
|
@@ -6142,6 +6240,21 @@ export declare namespace IOConnectDesktop {
|
|
|
6142
6240
|
data: any;
|
|
6143
6241
|
}
|
|
6144
6242
|
|
|
6243
|
+
/**
|
|
6244
|
+
* Options for updating a Channel context with the `publish()` method.
|
|
6245
|
+
*/
|
|
6246
|
+
export interface PublishOptions {
|
|
6247
|
+
/**
|
|
6248
|
+
* The name of the Channel to update. If not provided, the current Channel will be updated.
|
|
6249
|
+
*/
|
|
6250
|
+
name?: string;
|
|
6251
|
+
|
|
6252
|
+
/**
|
|
6253
|
+
* Flag indicating whether the published data is an FDC3 context. If so, it must contain a required `type` property.
|
|
6254
|
+
*/
|
|
6255
|
+
fdc3?: boolean;
|
|
6256
|
+
}
|
|
6257
|
+
|
|
6145
6258
|
/**
|
|
6146
6259
|
* All restrictions applied to a window for publishing or subscribing to Channels.
|
|
6147
6260
|
*/
|
|
@@ -6306,6 +6419,11 @@ export declare namespace IOConnectDesktop {
|
|
|
6306
6419
|
*/
|
|
6307
6420
|
getIntents(handler: IntentHandler): Promise<GetIntentsResult>;
|
|
6308
6421
|
|
|
6422
|
+
/**
|
|
6423
|
+
* Removes all saved Intent handlers for previously raised Intents.
|
|
6424
|
+
*/
|
|
6425
|
+
clearSavedHandlers(): Promise<void>;
|
|
6426
|
+
|
|
6309
6427
|
/**
|
|
6310
6428
|
* API for controlling the Intents Resolver UI app.
|
|
6311
6429
|
*/
|
|
@@ -6358,6 +6476,11 @@ export declare namespace IOConnectDesktop {
|
|
|
6358
6476
|
*/
|
|
6359
6477
|
handlerFilter?: HandlerFilter;
|
|
6360
6478
|
|
|
6479
|
+
/**
|
|
6480
|
+
* Details about the app instance that opened the Intents Resolver UI.
|
|
6481
|
+
*/
|
|
6482
|
+
caller?: ResolverCaller;
|
|
6483
|
+
|
|
6361
6484
|
/**
|
|
6362
6485
|
* 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.
|
|
6363
6486
|
*/
|
|
@@ -6378,7 +6501,40 @@ export declare namespace IOConnectDesktop {
|
|
|
6378
6501
|
/**
|
|
6379
6502
|
* Sends the chosen Intent handler to the app which raised the Intent.
|
|
6380
6503
|
*/
|
|
6381
|
-
sendResponse(handler: ResolverIntentHandler): Promise<IOConnectDesktop.Interop.InvocationResult | undefined>;
|
|
6504
|
+
sendResponse(handler: ResolverIntentHandler, options?: SendResolverResponseOptions): Promise<IOConnectDesktop.Interop.InvocationResult | undefined>;
|
|
6505
|
+
}
|
|
6506
|
+
|
|
6507
|
+
/**
|
|
6508
|
+
* Describes the app instance that opened the Intents Resolver UI.
|
|
6509
|
+
*/
|
|
6510
|
+
export interface ResolverCaller {
|
|
6511
|
+
/**
|
|
6512
|
+
* ID of the Interop instance of the app that opened the Intents Resolver UI.
|
|
6513
|
+
*/
|
|
6514
|
+
id: string;
|
|
6515
|
+
/**
|
|
6516
|
+
* Name of the app that opened the Intents Resolver UI.
|
|
6517
|
+
*/
|
|
6518
|
+
applicationName?: string;
|
|
6519
|
+
/**
|
|
6520
|
+
* Title of the app that opened the Intents Resolver UI.
|
|
6521
|
+
*/
|
|
6522
|
+
applicationTitle?: string;
|
|
6523
|
+
}
|
|
6524
|
+
|
|
6525
|
+
/**
|
|
6526
|
+
* Options for sending the chosen Intent handler to the app that raised the Intent.
|
|
6527
|
+
*/
|
|
6528
|
+
export interface SendResolverResponseOptions {
|
|
6529
|
+
/**
|
|
6530
|
+
* 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.
|
|
6531
|
+
* @default false
|
|
6532
|
+
*/
|
|
6533
|
+
saveHandler: boolean;
|
|
6534
|
+
/**
|
|
6535
|
+
* Use this property to supply the name of the Intent when the Intents Resolver UI is opened via the `filterHandlers()` method and you want to save the Intent handler for that Intent. If the Intents Resolver UI is opened via the `raise()` method, it isn't necessary to explicitly provide the Intent name here, as specifying an Intent name is mandatory when using the `raise()` method.
|
|
6536
|
+
*/
|
|
6537
|
+
intent?: string;
|
|
6382
6538
|
}
|
|
6383
6539
|
|
|
6384
6540
|
/**
|
|
@@ -6390,6 +6546,11 @@ export declare namespace IOConnectDesktop {
|
|
|
6390
6546
|
*/
|
|
6391
6547
|
applicationName: string;
|
|
6392
6548
|
|
|
6549
|
+
/**
|
|
6550
|
+
* Title of the Intent handler.
|
|
6551
|
+
*/
|
|
6552
|
+
applicationTitle?: string;
|
|
6553
|
+
|
|
6393
6554
|
/**
|
|
6394
6555
|
* Icon of the Intent handler app.
|
|
6395
6556
|
*/
|
|
@@ -6625,6 +6786,12 @@ export declare namespace IOConnectDesktop {
|
|
|
6625
6786
|
* @default false
|
|
6626
6787
|
*/
|
|
6627
6788
|
readonly waitUserResponseIndefinitely?: boolean;
|
|
6789
|
+
|
|
6790
|
+
/**
|
|
6791
|
+
* If `true`, the previously saved Intent handler for this Intent (if any) will be cleared.
|
|
6792
|
+
* @default false
|
|
6793
|
+
*/
|
|
6794
|
+
readonly clearSavedHandler?: boolean;
|
|
6628
6795
|
}
|
|
6629
6796
|
|
|
6630
6797
|
/**
|