@interopio/desktop 6.9.0-rc.1 → 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/LICENSE +21 -0
- package/changelog.md +12 -0
- package/desktop.d.ts +65 -21
- package/dist/desktop.browser.js +19149 -19008
- 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 +19149 -19008
- package/dist/desktop.es.js.map +1 -1
- package/dist/desktop.no.core.es.js +20375 -0
- package/dist/desktop.no.core.es.js.map +1 -0
- package/dist/desktop.umd.js +19149 -19008
- 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 +5 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Tick42
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/changelog.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
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
|
|
7
|
+
6.8.4
|
|
8
|
+
- chore: bump due to workspaces api release
|
|
9
|
+
6.8.3
|
|
10
|
+
- fix: Added missing fdc3 dependency
|
|
11
|
+
6.8.2
|
|
12
|
+
- chore: Update ChannelContext's data type
|
|
1
13
|
6.8.1
|
|
2
14
|
- fix: ignore peerID when invocation target has instance
|
|
3
15
|
6.8.0
|
package/desktop.d.ts
CHANGED
|
@@ -227,6 +227,7 @@ export declare namespace IOConnectDesktop {
|
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
229
|
* Interception API.
|
|
230
|
+
* @since io.Connect Desktop 9.6
|
|
230
231
|
*/
|
|
231
232
|
interception: IOConnectDesktop.Interception.API;
|
|
232
233
|
}
|
|
@@ -5651,7 +5652,7 @@ export declare namespace IOConnectDesktop {
|
|
|
5651
5652
|
* Refreshes the current window.
|
|
5652
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`.
|
|
5653
5654
|
*/
|
|
5654
|
-
refresh(ignoreCache
|
|
5655
|
+
refresh(ignoreCache?: boolean): Promise<IOConnectWindow>;
|
|
5655
5656
|
|
|
5656
5657
|
/**
|
|
5657
5658
|
* Downloads a file.
|
|
@@ -6085,16 +6086,18 @@ export declare namespace IOConnectDesktop {
|
|
|
6085
6086
|
export interface API {
|
|
6086
6087
|
/**
|
|
6087
6088
|
* Subscribes for data updates of the current Channel. Persisted after a Channel change. Returns an unsubscribe function.
|
|
6088
|
-
* @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.*
|
|
6089
6091
|
*/
|
|
6090
|
-
subscribe(callback: (data: any, context: ChannelContext, updaterId: string) => void): () => void;
|
|
6092
|
+
subscribe(callback: (data: any, context: ChannelContext, updaterId: string) => void, options?: FDC3Options): () => void;
|
|
6091
6093
|
|
|
6092
6094
|
/**
|
|
6093
|
-
* Subscribes for data updates of a specified Channel.
|
|
6094
|
-
* @param name The Channel to
|
|
6095
|
-
* @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.*
|
|
6096
6099
|
*/
|
|
6097
|
-
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>;
|
|
6098
6101
|
|
|
6099
6102
|
/**
|
|
6100
6103
|
* Updates the context of the current or a specified Channel.
|
|
@@ -6130,13 +6133,15 @@ export declare namespace IOConnectDesktop {
|
|
|
6130
6133
|
/**
|
|
6131
6134
|
* Retrieves the context of a specified Channel.
|
|
6132
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.*
|
|
6133
6137
|
*/
|
|
6134
|
-
get(name: string): Promise<ChannelContext>;
|
|
6138
|
+
get(name: string, options?: FDC3Options): Promise<ChannelContext>;
|
|
6135
6139
|
|
|
6136
6140
|
/**
|
|
6137
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.*
|
|
6138
6143
|
*/
|
|
6139
|
-
getMy(): Promise<ChannelContext>;
|
|
6144
|
+
getMy(options?: FDC3Options): Promise<ChannelContext>;
|
|
6140
6145
|
|
|
6141
6146
|
/**
|
|
6142
6147
|
* Joins a new Channel by name. Leaves the current Channel.
|
|
@@ -6220,6 +6225,17 @@ export declare namespace IOConnectDesktop {
|
|
|
6220
6225
|
onChanged(callback: (channel: string) => void): () => void;
|
|
6221
6226
|
}
|
|
6222
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
|
+
|
|
6223
6239
|
/**
|
|
6224
6240
|
* Describes an io.Connect Window that can use Channels.
|
|
6225
6241
|
*/
|
|
@@ -6439,16 +6455,18 @@ export declare namespace IOConnectDesktop {
|
|
|
6439
6455
|
addIntentListener(intent: string | AddIntentListenerRequest, handler: (context: IntentContext) => any): { unsubscribe: UnsubscribeFunction };
|
|
6440
6456
|
|
|
6441
6457
|
/**
|
|
6442
|
-
* Notifies when a handler for
|
|
6443
|
-
* @param callback Callback function for handling the event.
|
|
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
|
|
6444
6461
|
*/
|
|
6445
|
-
onHandlerAdded(callback: (handler: IOConnectDesktop.Intents.
|
|
6462
|
+
onHandlerAdded(callback: (handler: IOConnectDesktop.Intents.IntentHandler) => void, intentName: string): UnsubscribeFunction;
|
|
6446
6463
|
|
|
6447
6464
|
/**
|
|
6448
|
-
* Notifies when a handler for
|
|
6449
|
-
* @param callback Callback function for handling the event.
|
|
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
|
|
6450
6468
|
*/
|
|
6451
|
-
onHandlerRemoved(callback: (handler: IOConnectDesktop.Intents.
|
|
6469
|
+
onHandlerRemoved(callback: (handler: IOConnectDesktop.Intents.IntentHandler)=> void, intentName: string): UnsubscribeFunction;
|
|
6452
6470
|
|
|
6453
6471
|
/**
|
|
6454
6472
|
* Registers an Intent handler. If your app is already registered as an Intent handler through its configuration,
|
|
@@ -7031,6 +7049,14 @@ export declare namespace IOConnectDesktop {
|
|
|
7031
7049
|
*/
|
|
7032
7050
|
snoozeMany(notifications: string[], duration: number): Promise<void>;
|
|
7033
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
|
+
|
|
7034
7060
|
/**
|
|
7035
7061
|
* Notifies when a new notification is raised.
|
|
7036
7062
|
* @param callback Callback function for handling the event.
|
|
@@ -7112,6 +7138,12 @@ export declare namespace IOConnectDesktop {
|
|
|
7112
7138
|
* Array of names of apps not allowed to raise notifications.
|
|
7113
7139
|
*/
|
|
7114
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[];
|
|
7115
7147
|
}
|
|
7116
7148
|
|
|
7117
7149
|
/**
|
|
@@ -7402,15 +7434,17 @@ export declare namespace IOConnectDesktop {
|
|
|
7402
7434
|
|
|
7403
7435
|
/**
|
|
7404
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
|
|
7405
7438
|
*/
|
|
7406
|
-
displayId
|
|
7439
|
+
displayId?: string;
|
|
7407
7440
|
|
|
7408
7441
|
/**
|
|
7409
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" ]`).
|
|
7410
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
|
|
7411
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
|
|
7412
7446
|
*/
|
|
7413
|
-
displayPath
|
|
7447
|
+
displayPath?: string[];
|
|
7414
7448
|
}
|
|
7415
7449
|
|
|
7416
7450
|
/**
|
|
@@ -7478,6 +7512,13 @@ export declare namespace IOConnectDesktop {
|
|
|
7478
7512
|
* Describes the placement settings for the Notification Panel and the notification toasts.
|
|
7479
7513
|
*/
|
|
7480
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;
|
|
7481
7522
|
}
|
|
7482
7523
|
|
|
7483
7524
|
|
|
@@ -7909,20 +7950,21 @@ export declare namespace IOConnectDesktop {
|
|
|
7909
7950
|
|
|
7910
7951
|
/**
|
|
7911
7952
|
* @intro
|
|
7953
|
+
* @since io.Connect Desktop 9.6
|
|
7912
7954
|
* The Interception API enables apps to register interception handlers with which to modify the low-level platform operations.
|
|
7913
7955
|
* Interception handlers can be executed before and/or after the default implementations of the platform operations,
|
|
7914
7956
|
* and the execution of the default implementation for a platform operation can be prevented entirely.
|
|
7915
7957
|
* This allows for finer control over the platform operations.
|
|
7916
7958
|
* It's possible to register only a single interception handler per platform operation within an API domain.
|
|
7917
7959
|
*
|
|
7918
|
-
* For an app to be able to register interception handlers, interception must be enabled
|
|
7919
|
-
* in the system configuration of **io.Connect Desktop** and the name of the app must be specified in the list of apps allowed to register interception handlers.
|
|
7960
|
+
* For an app to be able to register interception handlers, interception must be enabled in the system configuration of **io.Connect Desktop**.
|
|
7920
7961
|
*
|
|
7921
7962
|
* *Available since io.Connect Desktop 9.6.*
|
|
7922
7963
|
*/
|
|
7923
7964
|
export namespace Interception {
|
|
7924
7965
|
/**
|
|
7925
7966
|
* Interception API.
|
|
7967
|
+
* @since io.Connect Desktop 9.6
|
|
7926
7968
|
*/
|
|
7927
7969
|
export interface API {
|
|
7928
7970
|
/**
|
|
@@ -7980,11 +8022,13 @@ export declare namespace IOConnectDesktop {
|
|
|
7980
8022
|
*/
|
|
7981
8023
|
callerId: string;
|
|
7982
8024
|
/**
|
|
7983
|
-
* Specifies whether the platform operation has been intercepted before or after its
|
|
8025
|
+
* Specifies whether the platform operation has been intercepted before or after the execution of its default implementation.
|
|
7984
8026
|
*/
|
|
7985
8027
|
phase: "before" | "after";
|
|
7986
8028
|
/**
|
|
7987
|
-
*
|
|
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).
|
|
7988
8032
|
*/
|
|
7989
8033
|
operationArgs?: any[];
|
|
7990
8034
|
}
|