@interopio/workspaces-api 4.2.4 → 4.3.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/workspaces.d.ts CHANGED
@@ -105,6 +105,8 @@ export namespace IOConnectWorkspaces {
105
105
  title?: string;
106
106
  /** The context of the window used when restoring the window */
107
107
  context?: any;
108
+ /** Id used for correlating window instances to layout objects */
109
+ instanceId?: string;
108
110
  }
109
111
 
110
112
  /** An object describing a window definition in a workspace layout. */
@@ -304,11 +306,11 @@ export namespace IOConnectWorkspaces {
304
306
  }
305
307
 
306
308
  /**
307
- * The loading strategy used to open new workspaces.
308
- * "direct" will cause all windows to start loading at the same time as soon as the workspace loads
309
- * "delayed" will cause all visible/active/selected windows to start loading at the same time as soon as the workspace loads. The rest will be loaded gradually at a specific interval.
310
- * "lazy" will cause all visible/active/selected windows to start loading at the same time as soon as the workspace loads. The rest will start loading when the user selects them and not before that.
311
- /** The loading strategy used to open new workspaces. "direct" will cause all windows to start loading at the same time, "delayed" */
309
+ * The loading strategy for opening new Workspaces.
310
+ * Use `"direct"` to make all windows participating in the Workspace to start loading at the same time as soon as the Workspace loads.
311
+ * Use `"delayed"` to make only the visible, active, and selected windows to start loading when the Workspace loads. The rest of the windows will be loaded gradually after that.
312
+ * Use `"lazy"` to make only the visible, active, and selected windows to start loading when the Workspace loads. The rest of the windows will start loading only when the user selects them.
313
+ */
312
314
  export type LoadingStrategy = "direct" | "delayed" | "lazy";
313
315
 
314
316
  /** An object which represent a workspace element. This is an element can be a box or a workspace window. */
@@ -746,18 +748,30 @@ export namespace IOConnectWorkspaces {
746
748
  icon?: string;
747
749
  }
748
750
 
749
- /** An object describing the possible options when defining a new workspace */
751
+ /**
752
+ * Describes a Workspace to be created.
753
+ */
750
754
  export interface WorkspaceDefinition {
751
- /** An array of all the workspace's children which will also be opened. */
755
+
756
+ /**
757
+ * Array of objects describing the Workspace windows and box elements (rows, columns, groups) that the Workspace will contain.
758
+ */
752
759
  children?: Array<WorkspaceWindowDefinition | BoxDefinition>;
753
760
 
754
- /** An object which will be set as the window context of all windows inside this workspace. */
761
+ /**
762
+ * Context object for the Workspace. Can contain any data relevant to the Workspace
763
+ * which the Workspace or the apps loaded in it can use after the Workspace has been created.
764
+ */
755
765
  context?: any;
756
766
 
757
- /** Workspace-specific options. */
767
+ /**
768
+ * Configuration for the new Workspace.
769
+ */
758
770
  config?: WorkspaceConfig;
759
771
 
760
- /** Options regarding the frame where this workspace will be opened in. */
772
+ /**
773
+ * Options for targeting a Workspaces App instance that will host the newly created Workspace.
774
+ */
761
775
  frame?: FrameTargetingOptions;
762
776
  }
763
777
 
@@ -2555,3 +2569,4 @@ export namespace IOConnectWorkspaces {
2555
2569
 
2556
2570
 
2557
2571
 
2572
+
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 Tick42
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.