@interopio/desktop 6.13.1 → 6.15.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 CHANGED
@@ -1,3 +1,15 @@
1
+ 6.15.0
2
+ - fix: channels - creation inconsistency - G4E-9871
3
+ - chore: intents - add excludeList in handlerFilter - G4E-9881
4
+ - chore: latest core version
5
+ 6.14.0
6
+ - feat: windows - add dragMove method
7
+ - feat: windows - add clearPlacement method
8
+ - feat: windows - configure method now accepts a new option - showInTaskbar
9
+ - feat: layouts - add onDefaultGlobalChanged event
10
+ - feat: layouts - onRenamed event now receives the old name as a second argument
11
+ - feat: layouts - add new options to the save method - ignoreContexts
12
+ - bugfix: appManager - fix hangs on initialization with appManager: "full" outside platform
1
13
  6.13.1
2
14
  - fix: windows - group.onClosing throws an unhandledrejection error when the group is closed before the event is subscribed
3
15
  6.13.0
package/desktop.d.ts CHANGED
@@ -1651,6 +1651,8 @@ export declare namespace IOConnectDesktop {
1651
1651
  activityType?: string;
1652
1652
  /** If `true`, multiple instances of the app can be started. */
1653
1653
  allowMultiple?: boolean;
1654
+ /** Whether to register the iodesktop object in the global window context. */
1655
+ registerIoDesktop?: boolean;
1654
1656
  }
1655
1657
 
1656
1658
  /** @ignore */
@@ -2116,11 +2118,20 @@ export declare namespace IOConnectDesktop {
2116
2118
  */
2117
2119
  onChanged(callback: (layout: Layout) => void): UnsubscribeFunction;
2118
2120
 
2121
+ /**
2122
+ * Notifies when a new default Global Layout has been selected or when the current one has been cleared.
2123
+ * @param callback Callback function for handling the event. Receives as an argument an object with a `name` property
2124
+ * holding the name of the newly selected default Global Layout. If the default Global Layout has been cleared, the argument will be `undefined`.
2125
+ */
2126
+ onDefaultGlobalChanged(callback: (layout?: { name: string }) => void): UnsubscribeFunction;
2127
+
2119
2128
  /**
2120
2129
  * Notifies when a Layout is renamed.
2121
2130
  * @param callback Callback function for handling the event.
2131
+ * Receives as a first argument the `Layout` object describing the renamed Layout.
2132
+ * Receives as a second argument an object with a `name` property holding the previous Layout name.
2122
2133
  */
2123
- onRenamed(callback: (layout: Layout) => void): UnsubscribeFunction;
2134
+ onRenamed(callback: (layout: Layout, previous: { name: string }) => void): UnsubscribeFunction;
2124
2135
 
2125
2136
  /**
2126
2137
  * Notifies when a Layout is restored.
@@ -2403,6 +2414,14 @@ export declare namespace IOConnectDesktop {
2403
2414
  * @ignore
2404
2415
  */
2405
2416
  ignoreMyInstance?: boolean;
2417
+
2418
+ /**
2419
+ * If `true`, the context objects of individual io.Connect Windows and Workspaces participating in the Global Layout won't be saved when the Layout is saved.
2420
+ * You can still use the `context` property to provide context data to be saved for the Global Layout itself.
2421
+ * Valid only for Global Layouts.
2422
+ * *Available since io.Connect Desktop 9.9.*
2423
+ */
2424
+ ignoreContexts?: boolean;
2406
2425
  }
2407
2426
 
2408
2427
  /**
@@ -3865,6 +3884,24 @@ export declare namespace IOConnectDesktop {
3865
3884
  * @default "onDemand"
3866
3885
  */
3867
3886
  buttonsVisibility?: "off" | "onDemand" | "always" | "onFocus";
3887
+
3888
+ /**
3889
+ * If `true`, the window icon will appear in the taskbar.",
3890
+ * @since io.Connect Desktop 9.9
3891
+ */
3892
+ showInTaskbar?: boolean;
3893
+
3894
+ /**
3895
+ * Settings for searching in web apps.
3896
+ * @since io.Connect Desktop 9.9
3897
+ */
3898
+ search?: {
3899
+ /**
3900
+ * If `true`, will enable searching in web apps with `CTRL + F`.
3901
+ * @default true
3902
+ */
3903
+ enabled?: boolean;
3904
+ };
3868
3905
  }
3869
3906
 
3870
3907
  /**
@@ -4090,6 +4127,13 @@ export declare namespace IOConnectDesktop {
4090
4127
  */
4091
4128
  snapped: boolean;
4092
4129
 
4130
+ /**
4131
+ * If `true`, the last known bounds of the io.Connect Window will be saved unless the window has already been snapped.
4132
+ * This allows the window to be restored using these saved bounds when clearing the placement settings for the window via the `clearPlacement()` method.
4133
+ * @since io.Connect Desktop 9.9
4134
+ */
4135
+ saveBounds?: boolean;
4136
+
4093
4137
  /**
4094
4138
  * Vertical alignment for the placed window. If `horizontalAlignment` is set, then `verticalAlignment` will default to "stretch".
4095
4139
  */
@@ -4142,6 +4186,21 @@ export declare namespace IOConnectDesktop {
4142
4186
  display?: IOConnectDesktop.Displays.Display | "current";
4143
4187
  }
4144
4188
 
4189
+ /**
4190
+ * Settings for clearing the window placement.
4191
+ */
4192
+ export interface ClearPlacementSettings {
4193
+ /**
4194
+ * If `true`, the io.Connect Window will be restored to its last known bounds saved in the `place()` method if `saveBounds` has been set to `true`.
4195
+ */
4196
+ restoreBounds?: boolean;
4197
+
4198
+ /**
4199
+ * New bounds for the io.Connect Window. If this is provided, the `restoreBounds` property will be ignored.
4200
+ */
4201
+ newBounds?: Partial<Bounds>;
4202
+ }
4203
+
4145
4204
  /**
4146
4205
  * Modes for flashing the window icon in the taskbar:
4147
4206
  * - `"auto"` - the icon will flash only if the window isn't on focus and will stop flashing when the window is activated;
@@ -4661,7 +4720,24 @@ export declare namespace IOConnectDesktop {
4661
4720
  */
4662
4721
  value?: string;
4663
4722
  }
4664
-
4723
+ /**
4724
+ * Options for dragging a window.
4725
+ */
4726
+ export interface DragMoveOptions {
4727
+ /**
4728
+ * Location of the mouse cursor within the window at the time the dragging operation was initiated.
4729
+ */
4730
+ location?: {
4731
+ /**
4732
+ * Horizontal coordinate of the mouse cursor within the window in pixels. Relative to the left border of the io.Connect Window.
4733
+ */
4734
+ x: number;
4735
+ /**
4736
+ * Vertical coordinate of the mouse cursor within the window in pixels. Relative to the top border of the io.Connect Window.
4737
+ */
4738
+ y: number;
4739
+ }
4740
+ }
4665
4741
  /**
4666
4742
  * Describes a docked window.
4667
4743
  */
@@ -5491,6 +5567,16 @@ export declare namespace IOConnectDesktop {
5491
5567
  */
5492
5568
  snap(target: string | IOConnectWindow, options?: SnappingOptions | RelativeDirection, success?: (window: IOConnectWindow) => void, error?: (error: string) => void): Promise<IOConnectWindow>;
5493
5569
 
5570
+ /**
5571
+ * This method can be used to start dragging the window with the mouse when the left mouse button is pressed.
5572
+ * @param options Options for dragging the window. Use this argument to optionally provide the location of the mouse cursor within the window
5573
+ * at the time the dragging operation was initiated. The platform will use that location to place the window under the mouse cursor when the mouse is moving
5574
+ * (e.g., in case the mouse has already moved several pixels in any direction before the dragging operation has been initiated by the platform).
5575
+ * If the starting mouse location isn't specified, its current position will be used.
5576
+ * @since io.Connect Desktop 9.9
5577
+ */
5578
+ dragMove(options?: DragMoveOptions): Promise<void>;
5579
+
5494
5580
  /**
5495
5581
  * Shows a loader animation for the window or updates the loader properties (animation type, background or text).
5496
5582
  * @param options Settings for the loader animation.
@@ -5728,6 +5814,14 @@ export declare namespace IOConnectDesktop {
5728
5814
  */
5729
5815
  place(options: PlacementSettings): Promise<void>;
5730
5816
 
5817
+ /**
5818
+ * Clears the window placement settings.
5819
+ * This means that the window will no longer be automatically snapped to a specific position on the display in case of resolution, scaling, and monitor changes.
5820
+ * @param options Settings for clearing the window placement.
5821
+ * @since io.Connect Desktop 9.9
5822
+ */
5823
+ clearPlacement(options?: ClearPlacementSettings): Promise<void>;
5824
+
5731
5825
  /**
5732
5826
  * Makes the window navigate back to the previous web page.
5733
5827
  */
@@ -6786,6 +6880,34 @@ export declare namespace IOConnectDesktop {
6786
6880
  // eslint-disable-next-line @typescript-eslint/no-empty-interface, @typescript-eslint/no-empty-object-type
6787
6881
  export interface IntentInfo extends AddIntentListenerRequest { }
6788
6882
 
6883
+ /**
6884
+ * Criteria for excluding Intent handlers from the results when using the `filterHandlers()` method.
6885
+ * Intent handlers can be excluded either by app name, or by app instance ID.
6886
+ */
6887
+ export type HandlerExclusionCriteria = AppHandlerExclusion | InstanceHandlerExclusion;
6888
+
6889
+ /**
6890
+ * Describes the criteria for excluding Intent handlers by app name when using the `filterHandlers()` method.
6891
+ */
6892
+ export interface AppHandlerExclusion {
6893
+ /**
6894
+ * Name of an app to exclude from the list of Intent handlers.
6895
+ * When using an app name as an exclusion criterion, all Intents handlers associated with that app name will be excluded
6896
+ * (the app itself and all already running instances of it).
6897
+ */
6898
+ applicationName: string;
6899
+ }
6900
+
6901
+ /**
6902
+ * Describes the criteria for excluding Intent handlers by app instance ID when using the `filterHandlers()` method.
6903
+ */
6904
+ export interface InstanceHandlerExclusion {
6905
+ /**
6906
+ * ID of a specific app instance to exclude from the list of Intent handlers.
6907
+ */
6908
+ instanceId: string;
6909
+ }
6910
+
6789
6911
  /**
6790
6912
  * Specifies the criteria for filtering the available Intent handlers when using the `filterHandlers()` method.
6791
6913
  */
@@ -6826,6 +6948,12 @@ export declare namespace IOConnectDesktop {
6826
6948
  * List of app names which will be used as a filter criteria.
6827
6949
  */
6828
6950
  applicationNames?: string[];
6951
+
6952
+ /**
6953
+ * List of exclusion criteria for filtering out Intent handlers from the results.
6954
+ * @since io.Connect Desktop 9.10
6955
+ */
6956
+ excludeList?: HandlerExclusionCriteria[];
6829
6957
  }
6830
6958
 
6831
6959
  /**
@@ -7646,6 +7774,11 @@ export declare namespace IOConnectDesktop {
7646
7774
  * If `true`, will enable showing a notification badge on the tray menu icon, in the "Notifications" section of the io.Connect launcher, and on the taskbar icon of the io.Connect launcher (or your shell app).
7647
7775
  */
7648
7776
  showNotificationBadge?: boolean;
7777
+
7778
+ /**
7779
+ * If `true`, the Notification Panel will be hidden automatically when it loses focus.
7780
+ */
7781
+ autoHidePanel?: boolean;
7649
7782
  }
7650
7783
 
7651
7784
  /**