@interopio/desktop 6.9.2 → 6.10.1
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 +5 -4
- package/desktop.d.ts +84 -11
- package/dist/desktop.browser.js +1857 -135
- 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 +1857 -135
- package/dist/desktop.es.js.map +1 -1
- package/dist/desktop.umd.js +1857 -135
- 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 +51 -49
- package/LICENSE +0 -21
- package/dist/desktop.no.core.es.js +0 -20375
- package/dist/desktop.no.core.es.js.map +0 -1
package/changelog.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
6.
|
|
2
|
-
-
|
|
3
|
-
6.
|
|
4
|
-
-
|
|
1
|
+
6.10.1
|
|
2
|
+
- chore: latest core package with a fix for re-announcing contexts
|
|
3
|
+
6.10.0
|
|
4
|
+
- feat: channels - add support for multi channels
|
|
5
|
+
- fix: windows - navigate method accepts timeout as a parameter
|
|
5
6
|
6.9.0
|
|
6
7
|
- feat: Enable executeJavaScript Method Access through External API
|
|
7
8
|
- feat: Bulk update Notifications from Notification Panel
|
package/desktop.d.ts
CHANGED
|
@@ -122,7 +122,7 @@ export declare namespace IOConnectDesktop {
|
|
|
122
122
|
* Initializes or disables the Channels API.
|
|
123
123
|
* @default false
|
|
124
124
|
*/
|
|
125
|
-
channels?: boolean;
|
|
125
|
+
channels?: boolean | IOConnectDesktop.Channels.Configuration;
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
128
|
* Initializes or disables the Displays API.
|
|
@@ -2947,7 +2947,7 @@ export declare namespace IOConnectDesktop {
|
|
|
2947
2947
|
/**
|
|
2948
2948
|
* ID of the window that will be used to relatively position the new window. Can be combined with `relativeDirection`.
|
|
2949
2949
|
*/
|
|
2950
|
-
relativeTo?: string;
|
|
2950
|
+
relativeTo?: string | IOConnectWindow;
|
|
2951
2951
|
|
|
2952
2952
|
/**
|
|
2953
2953
|
* Direction for positioning the window relatively to the window specified in the `relativeTo` property.
|
|
@@ -3100,13 +3100,13 @@ export declare namespace IOConnectDesktop {
|
|
|
3100
3100
|
/**
|
|
3101
3101
|
* Name of the Channel to which the window will be joined by default when it's started.
|
|
3102
3102
|
*/
|
|
3103
|
-
channelId
|
|
3103
|
+
channelId?: string;
|
|
3104
3104
|
|
|
3105
3105
|
/**
|
|
3106
3106
|
* If `true`, the Channel Selector will be visible, but the user won't be able to switch between Channels from it.
|
|
3107
3107
|
* @default false
|
|
3108
3108
|
*/
|
|
3109
|
-
readOnly
|
|
3109
|
+
readOnly?: boolean;
|
|
3110
3110
|
}
|
|
3111
3111
|
|
|
3112
3112
|
/**
|
|
@@ -3142,6 +3142,13 @@ export declare namespace IOConnectDesktop {
|
|
|
3142
3142
|
* Query string that will be appended to the URL when starting the app. If the string doesn't start with a `?`, one will be prepended to it. Note that the query string must be URL encoded.
|
|
3143
3143
|
*/
|
|
3144
3144
|
queryString?: string;
|
|
3145
|
+
|
|
3146
|
+
/**
|
|
3147
|
+
* Interval in seconds to wait for the window to navigate.
|
|
3148
|
+
* @default 120
|
|
3149
|
+
* @since io.Connect Desktop 9.7
|
|
3150
|
+
*/
|
|
3151
|
+
timeout?: number;
|
|
3145
3152
|
}
|
|
3146
3153
|
|
|
3147
3154
|
/**
|
|
@@ -6080,6 +6087,32 @@ export declare namespace IOConnectDesktop {
|
|
|
6080
6087
|
* The Channels API is accessible through the `io.channels` object.
|
|
6081
6088
|
*/
|
|
6082
6089
|
namespace Channels {
|
|
6090
|
+
|
|
6091
|
+
/**
|
|
6092
|
+
* Mode for the Channels API. Used internally, shouldn't be used by end user apps.
|
|
6093
|
+
* @ignore
|
|
6094
|
+
*/
|
|
6095
|
+
export const enum OperationMode {
|
|
6096
|
+
Single = "single",
|
|
6097
|
+
Multi = "multi"
|
|
6098
|
+
}
|
|
6099
|
+
|
|
6100
|
+
/**
|
|
6101
|
+
* Settings for the Channels API.
|
|
6102
|
+
*/
|
|
6103
|
+
export interface Configuration {
|
|
6104
|
+
/**
|
|
6105
|
+
* If `true`, will enable the Channels API.
|
|
6106
|
+
* @default false
|
|
6107
|
+
*/
|
|
6108
|
+
enabled?: boolean;
|
|
6109
|
+
/**
|
|
6110
|
+
* Sets the mode for the Channels API. Used internally, shouldn't be used by end user apps.
|
|
6111
|
+
* @default "single"
|
|
6112
|
+
* @ignore
|
|
6113
|
+
*/
|
|
6114
|
+
operationMode?: OperationMode;
|
|
6115
|
+
}
|
|
6083
6116
|
/**
|
|
6084
6117
|
* Channels API.
|
|
6085
6118
|
*/
|
|
@@ -6139,6 +6172,7 @@ export declare namespace IOConnectDesktop {
|
|
|
6139
6172
|
|
|
6140
6173
|
/**
|
|
6141
6174
|
* Retrieves the context of the current Channel.
|
|
6175
|
+
* It's recommended to use the `getMyChannels()` method instead, which can retrieve the contexts of the currently joined Channels both in single and in multi Channel mode.
|
|
6142
6176
|
* @param options Settings for retrieving an FDC3 context published in the io.Connect Channel. *Available since io.Connect Desktop 9.6.*
|
|
6143
6177
|
*/
|
|
6144
6178
|
getMy(options?: FDC3Options): Promise<ChannelContext>;
|
|
@@ -6151,19 +6185,26 @@ export declare namespace IOConnectDesktop {
|
|
|
6151
6185
|
join(name: string, windowId?: string): Promise<void>;
|
|
6152
6186
|
|
|
6153
6187
|
/**
|
|
6154
|
-
*
|
|
6155
|
-
* @param
|
|
6188
|
+
* Removes the current or a specified window from the current or a specified Channel.
|
|
6189
|
+
* @param options Options for leaving Channels. You can provide only the window ID, or an object holding the window ID and the name of the Channel to leave.
|
|
6190
|
+
* In either case, if only a window ID is provided, the specified window will be removed from the current Channel if in single Channel mode,
|
|
6191
|
+
* or from all currently joined Channels if in multi Channel mode.
|
|
6192
|
+
* If you provide only the name of the Channel to leave, the current window will be removed from the specified Channel.
|
|
6193
|
+
* If you don't provide an argument, the current window will be removed from the current Channel if in single Channel mode,
|
|
6194
|
+
* or from all currently joined Channels if in multi Channel mode.
|
|
6156
6195
|
*/
|
|
6157
|
-
leave(windowId?: string): Promise<void>;
|
|
6196
|
+
leave(options?: string | { windowId?: string, channel?: string }): Promise<void>;
|
|
6158
6197
|
|
|
6159
6198
|
/**
|
|
6160
6199
|
* Retrieves the name of the current Channel.
|
|
6200
|
+
* @deprecated
|
|
6161
6201
|
* @ignore
|
|
6162
6202
|
*/
|
|
6163
6203
|
current(): string;
|
|
6164
6204
|
|
|
6165
6205
|
/**
|
|
6166
6206
|
* Retrieves the name of the current Channel.
|
|
6207
|
+
* It's recommended to use the `myChannels()` method instead, which can retrieve the names of the currently joined Channels both in single and in multi Channel mode.
|
|
6167
6208
|
*/
|
|
6168
6209
|
my(): string;
|
|
6169
6210
|
|
|
@@ -6214,15 +6255,47 @@ export declare namespace IOConnectDesktop {
|
|
|
6214
6255
|
/**
|
|
6215
6256
|
* Notifies when a Channel is changed.
|
|
6216
6257
|
* @param callback Callback function for handling the event.
|
|
6258
|
+
* @deprecated use onChannelsChanged instead
|
|
6217
6259
|
* @ignore
|
|
6218
6260
|
*/
|
|
6219
6261
|
changed(callback: (channel: string) => void): () => void;
|
|
6220
6262
|
|
|
6221
6263
|
/**
|
|
6222
|
-
* Notifies when a Channel
|
|
6223
|
-
*
|
|
6264
|
+
* Notifies when the current window joins or leaves a Channel. Returns an unsubscribe function.
|
|
6265
|
+
* It's recommended to use the `onChannelsChanged()` method instead, which can handle Channel changes both in single and in multi Channel mode.
|
|
6266
|
+
* @param callback Callback function for handling the event. Receives as an argument the name of the Channel which the window has joined or left.
|
|
6224
6267
|
*/
|
|
6225
6268
|
onChanged(callback: (channel: string) => void): () => void;
|
|
6269
|
+
|
|
6270
|
+
/**
|
|
6271
|
+
* Retrieves a list with the contexts of the current Channels. Can be used both in single and in multi Channel mode.
|
|
6272
|
+
* If used in single Channel mode, the returned array will always contain a single member if the window is joined to a Channel, or will be empty otherwise.
|
|
6273
|
+
* @since io.Connect Desktop 9.7
|
|
6274
|
+
*/
|
|
6275
|
+
getMyChannels(options?: FDC3Options): Promise<ChannelContext[]>;
|
|
6276
|
+
|
|
6277
|
+
/**
|
|
6278
|
+
* Retrieves a list with the names of the current Channels. Can be used both in single and in multi Channel mode.
|
|
6279
|
+
* If used in single Channel mode, the returned array will always contain a single member if the window is joined to a Channel, or will be empty otherwise.
|
|
6280
|
+
* @since io.Connect Desktop 9.7
|
|
6281
|
+
*/
|
|
6282
|
+
myChannels(): string[];
|
|
6283
|
+
|
|
6284
|
+
/**
|
|
6285
|
+
* Notifies when the current window joins or leaves a Channel. Can be used both in single and in multi Channel mode.
|
|
6286
|
+
* If used in single Channel mode, when the window joins a Channel, the array argument passed to the callback for handling the event
|
|
6287
|
+
* will always contain a single member; when the window leaves the current Channel, the array will be empty. Returns an unsubscribe function.
|
|
6288
|
+
* @param callback Callback function for handling the event. Receives a list with the names of the currently joined Channels as an argument.
|
|
6289
|
+
* @since io.Connect Desktop 9.7
|
|
6290
|
+
*/
|
|
6291
|
+
onChannelsChanged(callback: (channels: string[]) => void): () => void;
|
|
6292
|
+
|
|
6293
|
+
/**
|
|
6294
|
+
* Retrieves the current Channel mode (single or multi Channel). Set by the io.Connect framework based on configuration.
|
|
6295
|
+
* @default "single"
|
|
6296
|
+
* @since io.Connect Desktop 9.7
|
|
6297
|
+
*/
|
|
6298
|
+
mode: OperationMode;
|
|
6226
6299
|
}
|
|
6227
6300
|
|
|
6228
6301
|
/**
|
|
@@ -6466,7 +6539,7 @@ export declare namespace IOConnectDesktop {
|
|
|
6466
6539
|
* @param callback Callback function for handling the event. Receives an object describing the removed Intent handler as an argument.
|
|
6467
6540
|
* @since io.Connect Desktop 9.6
|
|
6468
6541
|
*/
|
|
6469
|
-
onHandlerRemoved(callback: (handler: IOConnectDesktop.Intents.IntentHandler)=> void, intentName: string): UnsubscribeFunction;
|
|
6542
|
+
onHandlerRemoved(callback: (handler: IOConnectDesktop.Intents.IntentHandler) => void, intentName: string): UnsubscribeFunction;
|
|
6470
6543
|
|
|
6471
6544
|
/**
|
|
6472
6545
|
* Registers an Intent handler. If your app is already registered as an Intent handler through its configuration,
|
|
@@ -6676,7 +6749,7 @@ export declare namespace IOConnectDesktop {
|
|
|
6676
6749
|
/**
|
|
6677
6750
|
* Provides additional information about an Intent (e.g., when an Intent is retrieved with the `getIntents()` method).
|
|
6678
6751
|
*/
|
|
6679
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
6752
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface, @typescript-eslint/no-empty-object-type
|
|
6680
6753
|
export interface IntentInfo extends AddIntentListenerRequest { }
|
|
6681
6754
|
|
|
6682
6755
|
/**
|