@interopio/workspaces-api 4.1.0 → 4.1.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/workspaces.d.ts CHANGED
@@ -167,9 +167,11 @@ export namespace IOConnectWorkspaces {
167
167
  positionIndex?: number;
168
168
 
169
169
  /**
170
- * Controls the users ability to activate the Workspaces frame when the workspace is restored.
171
- * *Available only in **io.Connect Desktop**.*
170
+ * If `true`, the Workspaces Frame instance containing the restored Workspace will be activated.
171
+ * This means that the Workspaces Frame window will gain focus, will be restored to its normal state (e.g., if it has been previously minimized),
172
+ * and will be brought in front of other existing windows.
172
173
  * Defaults to the configuration passed in the `workspaces.json` file or to `false`.
174
+ * *Available only in **io.Connect Desktop**.*
173
175
  */
174
176
  activateFrame?: boolean;
175
177
 
@@ -180,6 +182,19 @@ export namespace IOConnectWorkspaces {
180
182
  allowSystemHibernation?: boolean;
181
183
  }
182
184
 
185
+ /**
186
+ * Settings for showing a previously hidden Workspaces Frame instance.
187
+ */
188
+ export interface FrameShowConfig {
189
+
190
+ /**
191
+ * If `true`, the Workspaces Frame instance will be activated. This means that the Workspaces Frame window will gain focus,
192
+ * will be restored to its normal state (e.g., if it has been previously minimized), and will be brought in front of other existing windows.
193
+ * @default false
194
+ */
195
+ activate?: boolean;
196
+ }
197
+
183
198
  /** An object containing the bounds of a frame */
184
199
  export interface FrameBounds {
185
200
  top: number;
@@ -190,6 +205,7 @@ export namespace IOConnectWorkspaces {
190
205
 
191
206
  /** An object describing the possible settings when defining a new frame. */
192
207
  export interface NewFrameConfig {
208
+
193
209
  /** An object describing the possible settings when defining a new frame. */
194
210
  bounds?: {
195
211
  top?: number;
@@ -197,6 +213,15 @@ export namespace IOConnectWorkspaces {
197
213
  width?: number;
198
214
  height?: number;
199
215
  };
216
+
217
+ /**
218
+ * If `true`, the newly created Workspaces Frame instance will be visible.
219
+ * *Available only in **io.Connect Desktop**.*
220
+ * @since io.Connect Desktop 9.9.5
221
+ * @default true
222
+ */
223
+ isVisible?: boolean;
224
+
200
225
  /** A string which will be used as an id of the new frame. The call will reject if a frame with id already exists */
201
226
  frameId?: string;
202
227
  }
@@ -231,12 +256,12 @@ export namespace IOConnectWorkspaces {
231
256
  * @since io.Connect Desktop 9.9
232
257
  */
233
258
  export interface FrameCloseOptions {
234
- /**
235
- * If `true`, will allow preventing the operation for closing the Frame.
259
+ /**
260
+ * If `true`, will allow preventing the operation for closing the Frame.
236
261
  */
237
262
  allowPrevent?: boolean;
238
- /**
239
- * If `true`, will show a dialog for the user to confirm or cancel closing the Frame.
263
+ /**
264
+ * If `true`, will show a dialog for the user to confirm or cancel closing the Frame.
240
265
  */
241
266
  showDialog?: boolean;
242
267
  }
@@ -662,9 +687,10 @@ export namespace IOConnectWorkspaces {
662
687
 
663
688
  export interface FrameTargetingOptions {
664
689
  /**
665
- * If `true`, the frame will be activated when the operation is executed.
666
- * *Available only in **io.Connect Desktop**.*
690
+ * If `true`, the targeted Workspaces Frame instance will be activated. This means that the Workspaces Frame window will gain focus,
691
+ * will be restored to its normal state (e.g., if it has been previously minimized), and will be brought in front of other existing windows.
667
692
  * Defaults to the configuration passed in the `workspaces.json` file or to `false`.
693
+ * *Available only in **io.Connect Desktop**.*
668
694
  */
669
695
  activate?: boolean;
670
696
 
@@ -900,7 +926,7 @@ export namespace IOConnectWorkspaces {
900
926
  init(config: FrameInitializationConfig): Promise<void>;
901
927
 
902
928
  /**
903
- * Retrieves the taskbar icon of the `Frame` instance.
929
+ * Retrieves the taskbar icon of the `Frame` instance.
904
930
  * *Available only for **io.Connect Desktop**.*
905
931
  * @since io.Connect Desktop 9.9
906
932
  */
@@ -929,6 +955,27 @@ export namespace IOConnectWorkspaces {
929
955
  */
930
956
  getConstraints(): Promise<FrameConstraints>;
931
957
 
958
+ /**
959
+ * Retrieves the current visibility state of the Workspaces Frame instance.
960
+ * *Available only in **io.Connect Desktop**.*
961
+ * @since io.Connect Desktop 9.9.5
962
+ */
963
+ isVisible(): Promise<boolean>;
964
+
965
+ /**
966
+ * Shows the Workspaces Frame instance if it has been previously hidden.
967
+ * *Available only in **io.Connect Desktop**.*
968
+ * @since io.Connect Desktop 9.9.5
969
+ */
970
+ show(config?: FrameShowConfig): Promise<void>;
971
+
972
+ /**
973
+ * Hides the Workspaces Frame instance if it's currently visible.
974
+ * *Available only in **io.Connect Desktop**.*
975
+ * @since io.Connect Desktop 9.9.5
976
+ */
977
+ hide(): Promise<void>;
978
+
932
979
  /**
933
980
  * Opens a new workspace in this frame by restoring a previously saved workspace layout.
934
981
  * @param name The name of a saved workspace layout, which will be restored.
@@ -943,11 +990,11 @@ export namespace IOConnectWorkspaces {
943
990
  */
944
991
  createWorkspace(definition: WorkspaceDefinition, config?: WorkspaceCreateConfig): Promise<Workspace>;
945
992
 
946
- /**
993
+ /**
947
994
  * Notifies when the Frame is about to be closed.
948
- * *Available only for io.Connect Desktop.*
949
- * @param callback Callback function for handling the event. Receives as an argument an object with options for closing the Frame.
950
- * @since io.Connect Desktop 9.9
995
+ * *Available only for io.Connect Desktop.*
996
+ * @param callback Callback function for handling the event. Receives as an argument an object with options for closing the Frame.
997
+ * @since io.Connect Desktop 9.9
951
998
  */
952
999
  onClosing(callback: (options: FrameClosingData) => void | Promise<void>): Promise<Unsubscribe>;
953
1000