@interopio/workspaces-api 3.0.2 → 3.0.4
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 +4 -0
- package/dist/workspaces.es.js +5 -18
- package/dist/workspaces.es.js.map +1 -1
- package/dist/workspaces.umd.js +5 -18
- package/dist/workspaces.umd.js.map +1 -1
- package/dist/workspaces.umd.min.js +1 -1
- package/package.json +3 -3
- package/src/communication/bridge.ts +0 -1
- package/src/models/base/base.ts +4 -9
- package/src/shared/privateDataManager.ts +0 -17
- package/workspaces.d.ts +29 -34
package/workspaces.d.ts
CHANGED
|
@@ -5,14 +5,13 @@ declare const WorkspacesFactory: WorkspacesFactoryFunction;
|
|
|
5
5
|
export default WorkspacesFactory;
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @
|
|
9
|
-
* @docName Workspaces
|
|
8
|
+
* @docname Workspaces
|
|
10
9
|
* @intro
|
|
11
10
|
* The Workspaces API offers advanced window management functionalities. Using Workspaces, users are able to arrange multiple applications
|
|
12
11
|
* within the same visual window (called *Frame*). This arrangement can be performed programmatically or by dragging and dropping applications within the Frame.
|
|
13
12
|
* Users can also save Workspace Layouts and restore them within the same Frame or even in different Frames.
|
|
14
13
|
*
|
|
15
|
-
* The
|
|
14
|
+
* The io.Connect Workspaces enable the users to compose a custom arrangement of applications by treating each application
|
|
16
15
|
* as an individual building block that can be added, removed, moved or resized within a Workspace.
|
|
17
16
|
* The Frame can hold multiple Workspaces (as tabs) and can also be maximized, minimized or resized.
|
|
18
17
|
*
|
|
@@ -51,7 +50,7 @@ export namespace IOConnectWorkspaces {
|
|
|
51
50
|
/** The type of the workspace element. */
|
|
52
51
|
type: "Workspace";
|
|
53
52
|
|
|
54
|
-
/** The name of the workspaces app with which the layout is associated (available only in
|
|
53
|
+
/** The name of the workspaces app with which the layout is associated (available only in **io.Connect Desktop**). */
|
|
55
54
|
application?: string;
|
|
56
55
|
|
|
57
56
|
state: WorkspaceLayoutComponentState;
|
|
@@ -94,7 +93,7 @@ export namespace IOConnectWorkspaces {
|
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
export interface WindowLayoutItemConfig {
|
|
97
|
-
/** The name of the application as defined in
|
|
96
|
+
/** The name of the application as defined in **io.Connect Desktop**. */
|
|
98
97
|
appName: string;
|
|
99
98
|
/** The id of the window */
|
|
100
99
|
windowId?: string;
|
|
@@ -128,7 +127,7 @@ export namespace IOConnectWorkspaces {
|
|
|
128
127
|
/** A string id of an existing frame. If provided, this workspace will be opened in that specific frame */
|
|
129
128
|
frameId?: string;
|
|
130
129
|
|
|
131
|
-
/** The application name of the workspace app that should be used for the new frame (available only for
|
|
130
|
+
/** The application name of the workspace app that should be used for the new frame (available only for **io.Connect Desktop**) */
|
|
132
131
|
applicationName?: string;
|
|
133
132
|
|
|
134
133
|
/** A setting used to declare that the workspace must be in a new frame and also provide options for that new frame */
|
|
@@ -284,7 +283,7 @@ export namespace IOConnectWorkspaces {
|
|
|
284
283
|
/** Controls whether a workspace tab can be reordered in the frame */
|
|
285
284
|
allowWorkspaceTabReorder?: boolean;
|
|
286
285
|
|
|
287
|
-
/** Controls whether a workspace tab can be extracted from the frame (available only for
|
|
286
|
+
/** Controls whether a workspace tab can be extracted from the frame (available only for **io.Connect Desktop**). */
|
|
288
287
|
allowWorkspaceTabExtract?: boolean;
|
|
289
288
|
|
|
290
289
|
/** Controls the visibility of the close button located in the workspaces tab */
|
|
@@ -358,7 +357,7 @@ export namespace IOConnectWorkspaces {
|
|
|
358
357
|
/** Controls the whether the workspace tab can be reordered */
|
|
359
358
|
allowWorkspaceTabReorder?: boolean;
|
|
360
359
|
|
|
361
|
-
/** Controls the whether the workspace tab can be extracted (available only for
|
|
360
|
+
/** Controls the whether the workspace tab can be extracted (available only for **io.Connect Desktop**). */
|
|
362
361
|
allowWorkspaceTabExtract?: boolean;
|
|
363
362
|
|
|
364
363
|
/** Controls the visibility of all the add window buttons (the ones with the plus icon) located in the group headers */
|
|
@@ -555,7 +554,7 @@ export namespace IOConnectWorkspaces {
|
|
|
555
554
|
/** A string id of an existing frame. If provided, this workspace will be opened in that specific frame */
|
|
556
555
|
reuseFrameId?: string;
|
|
557
556
|
|
|
558
|
-
/** The application name of the workspace app that should be used for the new frame (available only for
|
|
557
|
+
/** The application name of the workspace app that should be used for the new frame (available only for **io.Connect Desktop**). */
|
|
559
558
|
applicationName?: string;
|
|
560
559
|
|
|
561
560
|
/** A setting used to declare that the workspace must be in a new frame and also provide options for that new frame */
|
|
@@ -655,12 +654,12 @@ export namespace IOConnectWorkspaces {
|
|
|
655
654
|
/** An unique string name and identifier of the layout */
|
|
656
655
|
name: string;
|
|
657
656
|
|
|
658
|
-
/** The name of the workspaces app with which the layout is associated (available only in
|
|
657
|
+
/** The name of the workspaces app with which the layout is associated (available only in **io.Connect Desktop**). */
|
|
659
658
|
applicationName?: string;
|
|
660
659
|
}
|
|
661
660
|
|
|
662
661
|
export interface EmptyFrameDefinition {
|
|
663
|
-
/** The application name of the workspace app that should be used for the new frame (available only for
|
|
662
|
+
/** The application name of the workspace app that should be used for the new frame (available only for **io.Connect Desktop**). */
|
|
664
663
|
applicationName?: string;
|
|
665
664
|
|
|
666
665
|
/**
|
|
@@ -705,11 +704,7 @@ export namespace IOConnectWorkspaces {
|
|
|
705
704
|
/** An object describing a frame */
|
|
706
705
|
export interface Frame extends FrameSummary {
|
|
707
706
|
/**
|
|
708
|
-
*
|
|
709
|
-
*/
|
|
710
|
-
|
|
711
|
-
/**
|
|
712
|
-
* Registers keyboard shortcut to the current frame (available only in IO Connect Desktop).
|
|
707
|
+
* Registers keyboard shortcut to the current frame (available only in **io.Connect Desktop**).
|
|
713
708
|
*/
|
|
714
709
|
registerShortcut(shortcut: string, callback: () => void): Promise<Unsubscribe>;
|
|
715
710
|
|
|
@@ -737,25 +732,25 @@ export namespace IOConnectWorkspaces {
|
|
|
737
732
|
|
|
738
733
|
/**
|
|
739
734
|
* Returns the current state of the frame.
|
|
740
|
-
* Not available in
|
|
735
|
+
* Not available in **io.Connect Browser**.
|
|
741
736
|
*/
|
|
742
737
|
state(): Promise<FrameState>;
|
|
743
738
|
|
|
744
739
|
/**
|
|
745
740
|
* Minimizes this frame.
|
|
746
|
-
* Not available in
|
|
741
|
+
* Not available in **io.Connect Browser**.
|
|
747
742
|
*/
|
|
748
743
|
minimize(): Promise<void>;
|
|
749
744
|
|
|
750
745
|
/**
|
|
751
746
|
* Maximizes this frame.
|
|
752
|
-
* Not available in
|
|
747
|
+
* Not available in **io.Connect Browser**.
|
|
753
748
|
*/
|
|
754
749
|
maximize(): Promise<void>;
|
|
755
750
|
|
|
756
751
|
/**
|
|
757
752
|
* Restores this frame.
|
|
758
|
-
* Not available in
|
|
753
|
+
* Not available in **io.Connect Browser**.
|
|
759
754
|
*/
|
|
760
755
|
restore(): Promise<void>;
|
|
761
756
|
|
|
@@ -807,27 +802,27 @@ export namespace IOConnectWorkspaces {
|
|
|
807
802
|
|
|
808
803
|
/**
|
|
809
804
|
* Notifies when this frame is maximized.
|
|
810
|
-
* This event is not supported in
|
|
805
|
+
* This event is not supported in **io.Connect Browser**.
|
|
811
806
|
* @param callback Callback function to handle the event.
|
|
812
807
|
*/
|
|
813
808
|
onMaximized(callback: () => void): Promise<Unsubscribe>;
|
|
814
809
|
|
|
815
810
|
/**
|
|
816
811
|
* Notifies when this frame is closed.
|
|
817
|
-
* This event is not supported in
|
|
812
|
+
* This event is not supported in **io.Connect Browser**.
|
|
818
813
|
* @param callback Callback function to handle the event.
|
|
819
814
|
*/
|
|
820
815
|
onMinimized(callback: () => void): Promise<Unsubscribe>;
|
|
821
816
|
|
|
822
817
|
/**
|
|
823
818
|
* Notifies when this frame is closed.
|
|
824
|
-
* This event is not supported in
|
|
819
|
+
* This event is not supported in **io.Connect Browser**.
|
|
825
820
|
* @param callback Callback function to handle the event.
|
|
826
821
|
*/
|
|
827
822
|
onNormal(callback: () => void): Promise<Unsubscribe>;
|
|
828
823
|
|
|
829
824
|
/**
|
|
830
|
-
* Triggered when either a window in the frame is focused or the frame itself (supported only in
|
|
825
|
+
* Triggered when either a window in the frame is focused or the frame itself (supported only in **io.Connect Desktop**).
|
|
831
826
|
* @param callback Callback function to handle the event. It receives a data oject which indicates how the focus has changed.
|
|
832
827
|
*/
|
|
833
828
|
onFocusChanged(callback: (data: FrameFocusChangedData) => void): Promise<IOConnectWorkspaces.Unsubscribe>;
|
|
@@ -897,7 +892,7 @@ export namespace IOConnectWorkspaces {
|
|
|
897
892
|
/** Indicates if the workspace is hibernated */
|
|
898
893
|
isHibernated?: boolean;
|
|
899
894
|
|
|
900
|
-
/** Indicates if the workspace is selected in its frame. Can be undefined if using with an older version of
|
|
895
|
+
/** Indicates if the workspace is selected in its frame. Can be undefined if using with an older version of **io.Connect Desktop** or **io.Connect Browser**. */
|
|
901
896
|
isSelected?: boolean;
|
|
902
897
|
|
|
903
898
|
/** Indicates if dragging of splitters is allowed in the workspace */
|
|
@@ -930,7 +925,7 @@ export namespace IOConnectWorkspaces {
|
|
|
930
925
|
/** Indicates if the save button for this workspace is visible to the user */
|
|
931
926
|
showSaveButton?: boolean;
|
|
932
927
|
|
|
933
|
-
/** Controls whether the workspace tab can be extracted (available only for
|
|
928
|
+
/** Controls whether the workspace tab can be extracted (available only for **io.Connect Desktop**) */
|
|
934
929
|
allowWorkspaceTabExtract?: boolean;
|
|
935
930
|
|
|
936
931
|
/** Controls whether the workspace tab can be reordered*/
|
|
@@ -1023,7 +1018,7 @@ export namespace IOConnectWorkspaces {
|
|
|
1023
1018
|
refreshReference(): Promise<void>;
|
|
1024
1019
|
|
|
1025
1020
|
/**
|
|
1026
|
-
* Saves the current workspace structure as a layout. In
|
|
1021
|
+
* Saves the current workspace structure as a layout. In **io.Connect Browser** this will throw an error if the name matches the name of a read-only layout.
|
|
1027
1022
|
* @param name A string representing the name (also ID) of the new workspace layout.
|
|
1028
1023
|
*/
|
|
1029
1024
|
saveLayout(name: string, config?: { saveContext?: boolean }): Promise<void>;
|
|
@@ -1171,7 +1166,7 @@ export namespace IOConnectWorkspaces {
|
|
|
1171
1166
|
|
|
1172
1167
|
/**
|
|
1173
1168
|
* Notifies when a window was removed from this workspace and returns an unsubscribe function.
|
|
1174
|
-
* Not supported in
|
|
1169
|
+
* Not supported in **io.Connect Browser**.
|
|
1175
1170
|
* @param callback Callback function to handle the event. Receives an object containing the ids of the removed window, and the respective workspace and frame as a parameter.
|
|
1176
1171
|
*/
|
|
1177
1172
|
onWindowRemoved(callback: (removed: { windowId?: string; workspaceId: string; frameId: string }) => void): Promise<Unsubscribe>;
|
|
@@ -1235,12 +1230,12 @@ export namespace IOConnectWorkspaces {
|
|
|
1235
1230
|
setIcon(icon: string): Promise<void>;
|
|
1236
1231
|
|
|
1237
1232
|
/**
|
|
1238
|
-
* Shows the loading animation of the workspace (supported only in
|
|
1233
|
+
* Shows the loading animation of the workspace (supported only in **io.Connect Desktop**).
|
|
1239
1234
|
*/
|
|
1240
1235
|
showLoadingAnimation(): Promise<void>;
|
|
1241
1236
|
|
|
1242
1237
|
/**
|
|
1243
|
-
* Hides the loading animation of the workspace (supported only in
|
|
1238
|
+
* Hides the loading animation of the workspace (supported only in **io.Connect Desktop**).
|
|
1244
1239
|
*/
|
|
1245
1240
|
hideLoadingAnimation(): Promise<void>;
|
|
1246
1241
|
}
|
|
@@ -1605,7 +1600,7 @@ export namespace IOConnectWorkspaces {
|
|
|
1605
1600
|
getGdWindow(): any;
|
|
1606
1601
|
|
|
1607
1602
|
/**
|
|
1608
|
-
* Moves the workspace window to a new box. In
|
|
1603
|
+
* Moves the workspace window to a new box. In **io.Connect Browser** this box must be part of the same frame.
|
|
1609
1604
|
* @param box An object describing the new box of the window.
|
|
1610
1605
|
*/
|
|
1611
1606
|
moveTo(box: WorkspaceBox): Promise<void>;
|
|
@@ -1770,7 +1765,7 @@ export namespace IOConnectWorkspaces {
|
|
|
1770
1765
|
getSummaries(): Promise<WorkspaceLayoutSummary[]>;
|
|
1771
1766
|
|
|
1772
1767
|
/**
|
|
1773
|
-
* Deletes a previously saved layout. In
|
|
1768
|
+
* Deletes a previously saved layout. In **io.Connect Browser** delete will fail with an error in trying to delete a read-only layout, this is a layout defined in the io.layouts.json file.
|
|
1774
1769
|
* @param name The name of the layout to delete.
|
|
1775
1770
|
*/
|
|
1776
1771
|
delete(name: string): Promise<void>;
|
|
@@ -1782,7 +1777,7 @@ export namespace IOConnectWorkspaces {
|
|
|
1782
1777
|
export(predicate?: (layout: WorkspaceLayout) => boolean): Promise<WorkspaceLayout[]>;
|
|
1783
1778
|
|
|
1784
1779
|
/**
|
|
1785
|
-
* Saves the provided layouts into
|
|
1780
|
+
* Saves the provided layouts into io.Connect. In **io.Connect Browser** this will fail with an error if a provided layout's name matches a read-only layout.
|
|
1786
1781
|
* @param layouts A collection of layouts to add to IO Connet.
|
|
1787
1782
|
*/
|
|
1788
1783
|
import(layouts: WorkspaceLayout[], mode?: "replace" | "merge"): Promise<void>;
|
|
@@ -1980,7 +1975,7 @@ export namespace IOConnectWorkspaces {
|
|
|
1980
1975
|
*/
|
|
1981
1976
|
onWindowSelected(callback: (workspaceWindow: IOConnectWorkspaces.WorkspaceWindow) => void): Promise<IOConnectWorkspaces.Unsubscribe>;
|
|
1982
1977
|
|
|
1983
|
-
/**
|
|
1978
|
+
/** The io.Connect Workspaces API version. */
|
|
1984
1979
|
version: string;
|
|
1985
1980
|
}
|
|
1986
1981
|
}
|