@interopio/desktop 6.8.4 → 6.9.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 +6 -0
- package/desktop.d.ts +209 -11
- package/dist/desktop.browser.js +634 -164
- 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 +634 -164
- package/dist/desktop.es.js.map +1 -1
- package/dist/desktop.umd.js +634 -164
- 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 +2 -2
package/changelog.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
6.9.0
|
|
2
|
+
- feat: Enable executeJavaScript Method Access through External API
|
|
3
|
+
- feat: Bulk update Notifications from Notification Panel
|
|
4
|
+
- feat: Added the pinned tabs methods and properties
|
|
5
|
+
- feat: Interception API
|
|
6
|
+
- feat: Added fdc3 parsing options to the channels API
|
|
1
7
|
6.8.4
|
|
2
8
|
- chore: bump due to workspaces api release
|
|
3
9
|
6.8.3
|
package/desktop.d.ts
CHANGED
|
@@ -224,6 +224,12 @@ export declare namespace IOConnectDesktop {
|
|
|
224
224
|
* Cookies API.
|
|
225
225
|
*/
|
|
226
226
|
cookies: IOConnectDesktop.Cookies.API;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Interception API.
|
|
230
|
+
* @since io.Connect Desktop 9.6
|
|
231
|
+
*/
|
|
232
|
+
interception: IOConnectDesktop.Interception.API;
|
|
227
233
|
}
|
|
228
234
|
|
|
229
235
|
/**
|
|
@@ -5646,7 +5652,7 @@ export declare namespace IOConnectDesktop {
|
|
|
5646
5652
|
* Refreshes the current window.
|
|
5647
5653
|
* @param ignoreCache Flag indicating whether to use the Chromium cache (if `false`), or the server cache (if `true`) when refreshing the web page. Defaults to `false`.
|
|
5648
5654
|
*/
|
|
5649
|
-
refresh(ignoreCache
|
|
5655
|
+
refresh(ignoreCache?: boolean): Promise<IOConnectWindow>;
|
|
5650
5656
|
|
|
5651
5657
|
/**
|
|
5652
5658
|
* Downloads a file.
|
|
@@ -5961,13 +5967,13 @@ export declare namespace IOConnectDesktop {
|
|
|
5961
5967
|
* Pinned tab windows don't have a "Close" button preventing the user from closing them. Available only for tab windows in web groups.
|
|
5962
5968
|
* @since io.Connect Desktop 9.5
|
|
5963
5969
|
*/
|
|
5964
|
-
pin(): Promise<
|
|
5970
|
+
pin(): Promise<IOConnectWindow>;
|
|
5965
5971
|
|
|
5966
5972
|
/**
|
|
5967
5973
|
* Unpins the tab of the current window. The previously pinned tab reverts to a normal tab window containing a "Close" button. Available only for tab windows in web groups.
|
|
5968
5974
|
* @since io.Connect Desktop 9.5
|
|
5969
5975
|
*/
|
|
5970
|
-
unpin(): Promise<
|
|
5976
|
+
unpin(): Promise<IOConnectWindow>;
|
|
5971
5977
|
|
|
5972
5978
|
/**
|
|
5973
5979
|
* Executes code in the context of the io.Connect Window.
|
|
@@ -6080,16 +6086,18 @@ export declare namespace IOConnectDesktop {
|
|
|
6080
6086
|
export interface API {
|
|
6081
6087
|
/**
|
|
6082
6088
|
* Subscribes for data updates of the current Channel. Persisted after a Channel change. Returns an unsubscribe function.
|
|
6083
|
-
* @param callback Callback function
|
|
6089
|
+
* @param callback Callback function for handling the received data. The callback receives as arguments the updated Channel data, the current Channel context and the ID of the updating app instance.
|
|
6090
|
+
* @param options Settings for subscribing to an FDC3 context published in the io.Connect Channel. *Available since io.Connect Desktop 9.6.*
|
|
6084
6091
|
*/
|
|
6085
|
-
subscribe(callback: (data: any, context: ChannelContext, updaterId: string) => void): () => void;
|
|
6092
|
+
subscribe(callback: (data: any, context: ChannelContext, updaterId: string) => void, options?: FDC3Options): () => void;
|
|
6086
6093
|
|
|
6087
6094
|
/**
|
|
6088
|
-
* Subscribes for data updates of a specified Channel.
|
|
6089
|
-
* @param name The Channel to
|
|
6090
|
-
* @param callback Callback function
|
|
6095
|
+
* Subscribes for data updates of a specified Channel. Resolves with an unsubscribe function.
|
|
6096
|
+
* @param name The Channel to which to subscribe.
|
|
6097
|
+
* @param callback Callback function for handling the received data. The callback receives as arguments the updated Channel data, the current Channel context and the ID of the updating app instance.
|
|
6098
|
+
* @param options Settings for subscribing to an FDC3 context published in the io.Connect Channel. *Available since io.Connect Desktop 9.6.*
|
|
6091
6099
|
*/
|
|
6092
|
-
subscribeFor(name: string, callback: (data: any, context: ChannelContext, updaterId: string) => void): Promise<() => void>;
|
|
6100
|
+
subscribeFor(name: string, callback: (data: any, context: ChannelContext, updaterId: string) => void, options?: FDC3Options): Promise<() => void>;
|
|
6093
6101
|
|
|
6094
6102
|
/**
|
|
6095
6103
|
* Updates the context of the current or a specified Channel.
|
|
@@ -6125,13 +6133,15 @@ export declare namespace IOConnectDesktop {
|
|
|
6125
6133
|
/**
|
|
6126
6134
|
* Retrieves the context of a specified Channel.
|
|
6127
6135
|
* @param name The name of the Channel whose context to retrieve.
|
|
6136
|
+
* @param options Settings for retrieving an FDC3 context published in the io.Connect Channel. *Available since io.Connect Desktop 9.6.*
|
|
6128
6137
|
*/
|
|
6129
|
-
get(name: string): Promise<ChannelContext>;
|
|
6138
|
+
get(name: string, options?: FDC3Options): Promise<ChannelContext>;
|
|
6130
6139
|
|
|
6131
6140
|
/**
|
|
6132
6141
|
* Retrieves the context of the current Channel.
|
|
6142
|
+
* @param options Settings for retrieving an FDC3 context published in the io.Connect Channel. *Available since io.Connect Desktop 9.6.*
|
|
6133
6143
|
*/
|
|
6134
|
-
getMy(): Promise<ChannelContext>;
|
|
6144
|
+
getMy(options?: FDC3Options): Promise<ChannelContext>;
|
|
6135
6145
|
|
|
6136
6146
|
/**
|
|
6137
6147
|
* Joins a new Channel by name. Leaves the current Channel.
|
|
@@ -6215,6 +6225,17 @@ export declare namespace IOConnectDesktop {
|
|
|
6215
6225
|
onChanged(callback: (channel: string) => void): () => void;
|
|
6216
6226
|
}
|
|
6217
6227
|
|
|
6228
|
+
/**
|
|
6229
|
+
* Settings for retrieving and subscribing for FDC3 contexts published in an io.Connect Channel.
|
|
6230
|
+
* @since io.Connect Desktop 9.6
|
|
6231
|
+
*/
|
|
6232
|
+
export interface FDC3Options {
|
|
6233
|
+
/**
|
|
6234
|
+
* Type of the FDC3 context to retrieve or to which to subscribe.
|
|
6235
|
+
*/
|
|
6236
|
+
contextType?: string;
|
|
6237
|
+
}
|
|
6238
|
+
|
|
6218
6239
|
/**
|
|
6219
6240
|
* Describes an io.Connect Window that can use Channels.
|
|
6220
6241
|
*/
|
|
@@ -6433,6 +6454,20 @@ export declare namespace IOConnectDesktop {
|
|
|
6433
6454
|
*/
|
|
6434
6455
|
addIntentListener(intent: string | AddIntentListenerRequest, handler: (context: IntentContext) => any): { unsubscribe: UnsubscribeFunction };
|
|
6435
6456
|
|
|
6457
|
+
/**
|
|
6458
|
+
* Notifies when a handler for an Intent is added. Returns an unsubscribe function.
|
|
6459
|
+
* @param callback Callback function for handling the event. Receives an object describing the added Intent handler as an argument.
|
|
6460
|
+
* @since io.Connect Desktop 9.6
|
|
6461
|
+
*/
|
|
6462
|
+
onHandlerAdded(callback: (handler: IOConnectDesktop.Intents.IntentHandler) => void, intentName: string): UnsubscribeFunction;
|
|
6463
|
+
|
|
6464
|
+
/**
|
|
6465
|
+
* Notifies when a handler for an Intent is removed. Returns an unsubscribe function.
|
|
6466
|
+
* @param callback Callback function for handling the event. Receives an object describing the removed Intent handler as an argument.
|
|
6467
|
+
* @since io.Connect Desktop 9.6
|
|
6468
|
+
*/
|
|
6469
|
+
onHandlerRemoved(callback: (handler: IOConnectDesktop.Intents.IntentHandler)=> void, intentName: string): UnsubscribeFunction;
|
|
6470
|
+
|
|
6436
6471
|
/**
|
|
6437
6472
|
* Registers an Intent handler. If your app is already registered as an Intent handler through its configuration,
|
|
6438
6473
|
* use this method to supply a handler for the specified Intent. Otherwise, you can use it to register your app as an Intent handler
|
|
@@ -7014,6 +7049,14 @@ export declare namespace IOConnectDesktop {
|
|
|
7014
7049
|
*/
|
|
7015
7050
|
snoozeMany(notifications: string[], duration: number): Promise<void>;
|
|
7016
7051
|
|
|
7052
|
+
/**
|
|
7053
|
+
* Imports a list of notifications into the platform. Only imported notifications with state `"Active"` will be shown as notification toasts.
|
|
7054
|
+
* All imported notifications will be available in the Notification Panel. An event for raising a notification will be triggered for all imported notifications.
|
|
7055
|
+
* @param notificationOptions List of objects each describing a notification to import. The notification options for importing notifications are identical to the ones for raising a notification.
|
|
7056
|
+
* @since io.Connect Desktop 9.6
|
|
7057
|
+
*/
|
|
7058
|
+
import(notificationOptions: IOConnectNotificationOptions[]): Promise<IOConnectDesktop.Notifications.NotificationData[]>;
|
|
7059
|
+
|
|
7017
7060
|
/**
|
|
7018
7061
|
* Notifies when a new notification is raised.
|
|
7019
7062
|
* @param callback Callback function for handling the event.
|
|
@@ -7095,6 +7138,12 @@ export declare namespace IOConnectDesktop {
|
|
|
7095
7138
|
* Array of names of apps not allowed to raise notifications.
|
|
7096
7139
|
*/
|
|
7097
7140
|
blocked?: string[];
|
|
7141
|
+
|
|
7142
|
+
/**
|
|
7143
|
+
* Array of names of apps that are currently muted.
|
|
7144
|
+
* @since io.Connect Desktop 9.6
|
|
7145
|
+
*/
|
|
7146
|
+
muted?: string[];
|
|
7098
7147
|
}
|
|
7099
7148
|
|
|
7100
7149
|
/**
|
|
@@ -7382,6 +7431,20 @@ export declare namespace IOConnectDesktop {
|
|
|
7382
7431
|
* Settings for invoking an Interop method when the notification action is clicked.
|
|
7383
7432
|
*/
|
|
7384
7433
|
interop?: InteropActionSettings;
|
|
7434
|
+
|
|
7435
|
+
/**
|
|
7436
|
+
* Unique ID for the notification action. This ID can be used in the `displayPath` property of another notification action to determine the position of the latter within the notification action menu.
|
|
7437
|
+
* @since io.Connect Desktop 9.6
|
|
7438
|
+
*/
|
|
7439
|
+
displayId?: string;
|
|
7440
|
+
|
|
7441
|
+
/**
|
|
7442
|
+
* List of `displayId` values or titles of other notification actions describing the path within the notification action menu where the current notification action will be placed (e.g., `[ "main-action-id", "My Nested Action" ]`).
|
|
7443
|
+
* The display ID takes precedence over the title when the framework searches for the respective item. If the provided display ID or title doesn't exist, an empty notification action will be created
|
|
7444
|
+
* (the action will have a dropdown menu that will contain other actions, but when the user clicks on the action itself, nothing will happen).
|
|
7445
|
+
* @since io.Connect Desktop 9.6
|
|
7446
|
+
*/
|
|
7447
|
+
displayPath?: string[];
|
|
7385
7448
|
}
|
|
7386
7449
|
|
|
7387
7450
|
/**
|
|
@@ -7449,6 +7512,13 @@ export declare namespace IOConnectDesktop {
|
|
|
7449
7512
|
* Describes the placement settings for the Notification Panel and the notification toasts.
|
|
7450
7513
|
*/
|
|
7451
7514
|
placement?: NotificationPlacement;
|
|
7515
|
+
|
|
7516
|
+
/**
|
|
7517
|
+
* If `true`, when the user clicks on the body of a notification in the Notification Panel, the notification will be removed from the list.
|
|
7518
|
+
* Set to `false` if you want users to be able to click on the notification body (e.g., to copy text) without the notification disappearing from the Notification Panel.
|
|
7519
|
+
* @since io.Connect Desktop 9.6
|
|
7520
|
+
*/
|
|
7521
|
+
closeNotificationOnClick?: boolean;
|
|
7452
7522
|
}
|
|
7453
7523
|
|
|
7454
7524
|
|
|
@@ -7877,4 +7947,132 @@ export declare namespace IOConnectDesktop {
|
|
|
7877
7947
|
value: string;
|
|
7878
7948
|
}
|
|
7879
7949
|
}
|
|
7950
|
+
|
|
7951
|
+
/**
|
|
7952
|
+
* @intro
|
|
7953
|
+
* @since io.Connect Desktop 9.6
|
|
7954
|
+
* The Interception API enables apps to register interception handlers with which to modify the low-level platform operations.
|
|
7955
|
+
* Interception handlers can be executed before and/or after the default implementations of the platform operations,
|
|
7956
|
+
* and the execution of the default implementation for a platform operation can be prevented entirely.
|
|
7957
|
+
* This allows for finer control over the platform operations.
|
|
7958
|
+
* It's possible to register only a single interception handler per platform operation within an API domain.
|
|
7959
|
+
*
|
|
7960
|
+
* For an app to be able to register interception handlers, interception must be enabled in the system configuration of **io.Connect Desktop**.
|
|
7961
|
+
*
|
|
7962
|
+
* *Available since io.Connect Desktop 9.6.*
|
|
7963
|
+
*/
|
|
7964
|
+
export namespace Interception {
|
|
7965
|
+
/**
|
|
7966
|
+
* Interception API.
|
|
7967
|
+
* @since io.Connect Desktop 9.6
|
|
7968
|
+
*/
|
|
7969
|
+
export interface API {
|
|
7970
|
+
/**
|
|
7971
|
+
* Registers an interception handler. It's possible to register only a single interception handler per platform operation within an API domain.
|
|
7972
|
+
* @param config Object containing the interception handler to register and settings describing the platform operations to intercept.
|
|
7973
|
+
*/
|
|
7974
|
+
register(config: InterceptionRegistrationConfig): Promise<void>;
|
|
7975
|
+
/**
|
|
7976
|
+
* Unregisters all interception handlers for the specified platform operations.
|
|
7977
|
+
* @param config Object specifying the platform operations which to stop intercepting.
|
|
7978
|
+
*/
|
|
7979
|
+
unregister(config: InterceptionUnregistrationConfig): Promise<void>;
|
|
7980
|
+
}
|
|
7981
|
+
|
|
7982
|
+
/**
|
|
7983
|
+
* Settings for registering an interception handler for the targeted platform operations.
|
|
7984
|
+
*/
|
|
7985
|
+
export interface InterceptionRegistrationConfig {
|
|
7986
|
+
/**
|
|
7987
|
+
* Method implementation to be registered as a handler for the specified platform operations.
|
|
7988
|
+
* It's possible to register only a single interception handler per platform operation within an API domain.
|
|
7989
|
+
* @param message Object describing the intercepted platform operation.
|
|
7990
|
+
*/
|
|
7991
|
+
handler: (message: InterceptionMessage) => Promise<InterceptionResponse | void>;
|
|
7992
|
+
/**
|
|
7993
|
+
* List of objects each describing a platform operation to intercept.
|
|
7994
|
+
*/
|
|
7995
|
+
interceptions: Interception[];
|
|
7996
|
+
}
|
|
7997
|
+
|
|
7998
|
+
/**
|
|
7999
|
+
* Settings for unregistering the interception handlers for the targeted platform operations.
|
|
8000
|
+
*/
|
|
8001
|
+
export interface InterceptionUnregistrationConfig {
|
|
8002
|
+
/**
|
|
8003
|
+
* List of objects each describing a platform operation which to stop intercepting.
|
|
8004
|
+
*/
|
|
8005
|
+
interceptions: Interception[];
|
|
8006
|
+
}
|
|
8007
|
+
|
|
8008
|
+
/**
|
|
8009
|
+
* Describes an intercepted platform operation.
|
|
8010
|
+
*/
|
|
8011
|
+
export interface InterceptionMessage {
|
|
8012
|
+
/**
|
|
8013
|
+
* The io.Connect API domain in which the platform operation has been intercepted.
|
|
8014
|
+
*/
|
|
8015
|
+
domain: string;
|
|
8016
|
+
/**
|
|
8017
|
+
* The io.Connect platform operation that has been intercepted.
|
|
8018
|
+
*/
|
|
8019
|
+
operation: string;
|
|
8020
|
+
/**
|
|
8021
|
+
* ID of the app that has invoked the platform operation. Can be used for tracking purposes.
|
|
8022
|
+
*/
|
|
8023
|
+
callerId: string;
|
|
8024
|
+
/**
|
|
8025
|
+
* Specifies whether the platform operation has been intercepted before or after the execution of its default implementation.
|
|
8026
|
+
*/
|
|
8027
|
+
phase: "before" | "after";
|
|
8028
|
+
/**
|
|
8029
|
+
* In the `"before"` phase, this property will contain the arguments with which the calling app has invoked the intercepted operation.
|
|
8030
|
+
* In the `"after"` phase, this property will contain the result returned from executing the default platform implementation of the intercepted operation
|
|
8031
|
+
* (or the result from the decorated operation, if the interception handler was invoked also in the `"before"` phase to modify the default operation).
|
|
8032
|
+
*/
|
|
8033
|
+
operationArgs?: any[];
|
|
8034
|
+
}
|
|
8035
|
+
|
|
8036
|
+
/**
|
|
8037
|
+
* Describes the response returned by an interception handler.
|
|
8038
|
+
* If the platform operation has been intercepted before the execution of its default implementation and the interception handler returns `undefined` or an empty object,
|
|
8039
|
+
* the platform will proceed with the execution of the default operation implementation.
|
|
8040
|
+
* If the platform operation has been intercepted after the execution of its default implementation and the interception handler returns `undefined` or an empty object,
|
|
8041
|
+
* the platform will return the already calculated result.
|
|
8042
|
+
*/
|
|
8043
|
+
export interface InterceptionResponse {
|
|
8044
|
+
/**
|
|
8045
|
+
* Arguments with which to proceed the execution of the intercepted platform operation.
|
|
8046
|
+
* This property is taken into account only when the platform operation is intercepted before the execution of its default implementation.
|
|
8047
|
+
*/
|
|
8048
|
+
operationArgs?: any[];
|
|
8049
|
+
/**
|
|
8050
|
+
* Result from the platform operation. Use this property to return a result from your interception handler
|
|
8051
|
+
* when the platform operation has been intercepted after the execution of its default implementation.
|
|
8052
|
+
* If the platform operation has been intercepted before the execution of its default implementation and this property is set,
|
|
8053
|
+
* the execution of the default implementation will be prevented and the platform will return the specified result.
|
|
8054
|
+
*/
|
|
8055
|
+
operationResult?: any;
|
|
8056
|
+
}
|
|
8057
|
+
|
|
8058
|
+
/**
|
|
8059
|
+
* Describes a platform operation to intercept and provides settings for its interception.
|
|
8060
|
+
*/
|
|
8061
|
+
export interface Interception {
|
|
8062
|
+
/**
|
|
8063
|
+
* io.Connect API domain of the platform operation.
|
|
8064
|
+
*/
|
|
8065
|
+
domain: string | "all";
|
|
8066
|
+
/**
|
|
8067
|
+
* Name of the io.Connect platform operation within the specified io.Connect API domain.
|
|
8068
|
+
* Set to `"all"` to intercept all operations within the domain.
|
|
8069
|
+
*/
|
|
8070
|
+
operation: string | "all";
|
|
8071
|
+
/**
|
|
8072
|
+
* Specifies whether to intercept the platform operation before or after the execution of its default implementation.
|
|
8073
|
+
* Set to `"all"` to intercept the platform operation both before and after the execution of its default implementation.
|
|
8074
|
+
*/
|
|
8075
|
+
phase?: "before" | "after" | "all";
|
|
8076
|
+
}
|
|
8077
|
+
}
|
|
7880
8078
|
}
|