@interopio/desktop 6.1.0 → 6.2.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 +9 -0
- package/desktop.d.ts +123 -3
- package/dist/desktop.browser.js +660 -672
- 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 +660 -672
- package/dist/desktop.es.js.map +1 -1
- package/dist/desktop.umd.js +660 -672
- 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 -5
- package/dist/desktop.umd.js.7z +0 -0
package/changelog.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
6.2.0
|
|
2
|
+
- feat: notifications - allow user to change the notification panel and toasts position
|
|
3
|
+
- feat: windows: add new method - clone
|
|
4
|
+
- feat: intents - filterIntents method added
|
|
5
|
+
- chore: notifications - fix typings - onDataChanged
|
|
6
|
+
- chore: notifications - fix typings - onclose
|
|
7
|
+
- chore: prefs - fix typings - lastUpdate
|
|
8
|
+
- chore: remove shortid dependency
|
|
9
|
+
- chore: update core to 6.1.0
|
|
1
10
|
6.1.0
|
|
2
11
|
- feat: layouts - when saving a layout, setAsCurrent option is added
|
|
3
12
|
- feat: intens - pass caller as a second arg to io.intents.register handler
|
package/desktop.d.ts
CHANGED
|
@@ -4527,6 +4527,12 @@ export declare namespace IOConnectDesktop {
|
|
|
4527
4527
|
* @param callback Callback function for handling the event.
|
|
4528
4528
|
*/
|
|
4529
4529
|
onVisibilityChanged(callback: (group: Group) => void): UnsubscribeFunction;
|
|
4530
|
+
|
|
4531
|
+
/**
|
|
4532
|
+
* Notifies when the window group is about to be closed.
|
|
4533
|
+
* @param callback Callback function for handling the event. Returns a `Promise` that will be awaited before the window group is closed. The timeout for waiting is 30 seconds. A function for preventing the closing is passed to the callback as a parameter.
|
|
4534
|
+
*/
|
|
4535
|
+
onClosing(callback: (prevent: (options?: PreventClosingOptions) => void) => Promise<void>): void;
|
|
4530
4536
|
}
|
|
4531
4537
|
|
|
4532
4538
|
/**
|
|
@@ -5340,7 +5346,7 @@ export declare namespace IOConnectDesktop {
|
|
|
5340
5346
|
|
|
5341
5347
|
/**
|
|
5342
5348
|
* Refreshes the current window.
|
|
5343
|
-
* @param ignoreCache Flag indicating whether to
|
|
5349
|
+
* @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`.
|
|
5344
5350
|
*/
|
|
5345
5351
|
refresh(ignoreCache: boolean): Promise<IOConnectWindow>;
|
|
5346
5352
|
|
|
@@ -5638,6 +5644,12 @@ export declare namespace IOConnectDesktop {
|
|
|
5638
5644
|
* @since io.Connect Desktop 9.1.0
|
|
5639
5645
|
*/
|
|
5640
5646
|
onDockingChanged(callback: (window: IOConnectDesktop.Windows.IOConnectWindow, dockingPlacement: DockingPlacement) => void): UnsubscribeFunction
|
|
5647
|
+
|
|
5648
|
+
/**
|
|
5649
|
+
* Duplicates the current io.Connect Window.
|
|
5650
|
+
* @param options Optional start options that will override the default start options when cloning the window.
|
|
5651
|
+
*/
|
|
5652
|
+
clone(options?: IOConnectDesktop.AppManager.ApplicationStartOptions): Promise<IOConnectWindow>
|
|
5641
5653
|
}
|
|
5642
5654
|
|
|
5643
5655
|
/**
|
|
@@ -6017,6 +6029,18 @@ export declare namespace IOConnectDesktop {
|
|
|
6017
6029
|
*/
|
|
6018
6030
|
find(intentFilter?: string | IntentFilter): Promise<Intent[]>;
|
|
6019
6031
|
|
|
6032
|
+
/**
|
|
6033
|
+
* Filters Intent handlers by specified criteria. If there are more than one valid Intent handlers and the Intents Resolver UI is enabled, it will open and display the available handlers.
|
|
6034
|
+
* @param handlerFilter Filter for the list of Intent handlers to return.
|
|
6035
|
+
*/
|
|
6036
|
+
filterHandlers(handlerFilter: HandlerFilter): Promise<FilterHandlersResult>;
|
|
6037
|
+
|
|
6038
|
+
/**
|
|
6039
|
+
* Retrieves all Intents associated with an Intent handler.
|
|
6040
|
+
* @param handler Intent handler whose Intents to retrieve.
|
|
6041
|
+
*/
|
|
6042
|
+
getIntents(handler: IntentHandler): Promise<GetIntentsResult>;
|
|
6043
|
+
|
|
6020
6044
|
/**
|
|
6021
6045
|
* API for controlling the Intents Resolver UI app.
|
|
6022
6046
|
*/
|
|
@@ -6131,6 +6155,55 @@ export declare namespace IOConnectDesktop {
|
|
|
6131
6155
|
*/
|
|
6132
6156
|
resultType?: string;
|
|
6133
6157
|
}
|
|
6158
|
+
|
|
6159
|
+
/**
|
|
6160
|
+
* Provides additional information about an Intent (e.g., when an Intent is retrieved with the `getIntents()` method).
|
|
6161
|
+
*/
|
|
6162
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
6163
|
+
export interface IntentInfo extends AddIntentListenerRequest {}
|
|
6164
|
+
|
|
6165
|
+
/**
|
|
6166
|
+
* Specifies the criteria for filtering the available Intent handlers when using the `filterHandlers()` method.
|
|
6167
|
+
*/
|
|
6168
|
+
export interface HandlerFilter {
|
|
6169
|
+
/**
|
|
6170
|
+
* Title for the search operation that will be provided to the Intents Resolver UI.
|
|
6171
|
+
*/
|
|
6172
|
+
title?: string;
|
|
6173
|
+
|
|
6174
|
+
/**
|
|
6175
|
+
* Flag indicating whether the Intents Resolver UI will open to provide the user with the list of valid Intent handlers.
|
|
6176
|
+
* @default true
|
|
6177
|
+
*/
|
|
6178
|
+
openResolver?: boolean;
|
|
6179
|
+
|
|
6180
|
+
/**
|
|
6181
|
+
* Interval in milliseconds to wait for the `filterHandlers()` method to resolve if more than one Intent handler is available and the Intents Resolver UI is enabled.
|
|
6182
|
+
* @default 90000
|
|
6183
|
+
*/
|
|
6184
|
+
timeout?: number;
|
|
6185
|
+
|
|
6186
|
+
/**
|
|
6187
|
+
* Intent name to be used as a filter criterion.
|
|
6188
|
+
*/
|
|
6189
|
+
intent?: string;
|
|
6190
|
+
|
|
6191
|
+
/**
|
|
6192
|
+
* List of context types with which the Intent handlers work to be used as filter criteria.
|
|
6193
|
+
*/
|
|
6194
|
+
contextTypes?: string[];
|
|
6195
|
+
|
|
6196
|
+
/**
|
|
6197
|
+
* Result type returned by the Intent handlers to be used as a filter criterion.
|
|
6198
|
+
*/
|
|
6199
|
+
resultType?: string;
|
|
6200
|
+
|
|
6201
|
+
/**
|
|
6202
|
+
* List of app names which will be used as a filter criteria.
|
|
6203
|
+
*/
|
|
6204
|
+
applicationNames?: string[];
|
|
6205
|
+
}
|
|
6206
|
+
|
|
6134
6207
|
/**
|
|
6135
6208
|
* Filter for retrieving Intents.
|
|
6136
6209
|
*/
|
|
@@ -6308,6 +6381,26 @@ export declare namespace IOConnectDesktop {
|
|
|
6308
6381
|
*/
|
|
6309
6382
|
result?: any;
|
|
6310
6383
|
}
|
|
6384
|
+
|
|
6385
|
+
/**
|
|
6386
|
+
* Describes the result returned by the `filterHandlers()` method.
|
|
6387
|
+
*/
|
|
6388
|
+
export interface FilterHandlersResult {
|
|
6389
|
+
/**
|
|
6390
|
+
* List of Intent handlers that satisfy the filter criteria.
|
|
6391
|
+
*/
|
|
6392
|
+
handlers: IntentHandler[];
|
|
6393
|
+
}
|
|
6394
|
+
|
|
6395
|
+
/**
|
|
6396
|
+
* Describes the result returned by the `getIntents()` method.
|
|
6397
|
+
*/
|
|
6398
|
+
export interface GetIntentsResult {
|
|
6399
|
+
/**
|
|
6400
|
+
* List of objects describing the Intents associated with the specified Intent handler.
|
|
6401
|
+
*/
|
|
6402
|
+
intents: IntentInfo[];
|
|
6403
|
+
}
|
|
6311
6404
|
}
|
|
6312
6405
|
|
|
6313
6406
|
/**
|
|
@@ -6436,7 +6529,7 @@ export declare namespace IOConnectDesktop {
|
|
|
6436
6529
|
* Notifies when the arbitrary data associated with the notification (available in the `data` property of the notification) is changed.
|
|
6437
6530
|
* @param callback Callback function for handling the event.
|
|
6438
6531
|
*/
|
|
6439
|
-
onDataChanged<T>(callback: (data: T) => void): UnsubscribeFunction
|
|
6532
|
+
onDataChanged<T>(callback: (notification: { id: string }, data: T) => void): UnsubscribeFunction
|
|
6440
6533
|
}
|
|
6441
6534
|
|
|
6442
6535
|
/**
|
|
@@ -6596,6 +6689,11 @@ export declare namespace IOConnectDesktop {
|
|
|
6596
6689
|
*/
|
|
6597
6690
|
onerror: (event: ErrorEvent) => void;
|
|
6598
6691
|
|
|
6692
|
+
/**
|
|
6693
|
+
* Notifies when the notification is closed.
|
|
6694
|
+
*/
|
|
6695
|
+
onclose: (() => void);
|
|
6696
|
+
|
|
6599
6697
|
/**
|
|
6600
6698
|
* Closes the notification.
|
|
6601
6699
|
*/
|
|
@@ -6817,6 +6915,28 @@ export declare namespace IOConnectDesktop {
|
|
|
6817
6915
|
*/
|
|
6818
6916
|
stackBy?: "severity" | "application";
|
|
6819
6917
|
}
|
|
6918
|
+
|
|
6919
|
+
/**
|
|
6920
|
+
* Describes the placement settings for the Notification Panel and the notification toasts.
|
|
6921
|
+
*/
|
|
6922
|
+
placement?: NotificationPlacement;
|
|
6923
|
+
}
|
|
6924
|
+
|
|
6925
|
+
|
|
6926
|
+
/**
|
|
6927
|
+
* Settings for placing the Notification Panel and the notification toasts.
|
|
6928
|
+
*/
|
|
6929
|
+
export interface NotificationPlacement {
|
|
6930
|
+
/**
|
|
6931
|
+
* Defines the position of the Notification Panel on the screen.
|
|
6932
|
+
* @default "right"
|
|
6933
|
+
*/
|
|
6934
|
+
panel?: "left" | "right";
|
|
6935
|
+
/**
|
|
6936
|
+
* Defines the position of the notification toasts on the screen.
|
|
6937
|
+
* @default "bottom-right"
|
|
6938
|
+
*/
|
|
6939
|
+
toasts?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
6820
6940
|
}
|
|
6821
6941
|
}
|
|
6822
6942
|
|
|
@@ -6976,7 +7096,7 @@ export declare namespace IOConnectDesktop {
|
|
|
6976
7096
|
/**
|
|
6977
7097
|
* Timestamp of the last update of the user preferences.
|
|
6978
7098
|
*/
|
|
6979
|
-
lastUpdate:
|
|
7099
|
+
lastUpdate: string;
|
|
6980
7100
|
}
|
|
6981
7101
|
}
|
|
6982
7102
|
|