@interopio/workspaces-api 3.0.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.
Files changed (43) hide show
  1. package/LICENSE +21 -0
  2. package/changelog.md +133 -0
  3. package/dist/workspaces.es.js +5608 -0
  4. package/dist/workspaces.es.js.map +1 -0
  5. package/dist/workspaces.umd.js +5616 -0
  6. package/dist/workspaces.umd.js.map +1 -0
  7. package/dist/workspaces.umd.min.js +1 -0
  8. package/package.json +52 -0
  9. package/readme.md +7 -0
  10. package/rollup.config.js +54 -0
  11. package/src/builders/baseBuilder.ts +50 -0
  12. package/src/builders/parentBuilder.ts +62 -0
  13. package/src/builders/workspaceBuilder.ts +102 -0
  14. package/src/communication/bridge.ts +264 -0
  15. package/src/communication/constants.ts +202 -0
  16. package/src/communication/interop-transport.ts +175 -0
  17. package/src/controllers/base.ts +487 -0
  18. package/src/controllers/main.ts +541 -0
  19. package/src/controllers/shortcuts.ts +28 -0
  20. package/src/index.ts +23 -0
  21. package/src/main.ts +415 -0
  22. package/src/models/base/base.ts +402 -0
  23. package/src/models/column.ts +189 -0
  24. package/src/models/frame.ts +368 -0
  25. package/src/models/group.ts +237 -0
  26. package/src/models/row.ts +189 -0
  27. package/src/models/window.ts +309 -0
  28. package/src/models/workspace.ts +717 -0
  29. package/src/shared/decoders.ts +939 -0
  30. package/src/shared/ioc.ts +227 -0
  31. package/src/shared/privateDataManager.ts +110 -0
  32. package/src/shared/promisePlus.ts +34 -0
  33. package/src/shared/promiseWrapper.ts +11 -0
  34. package/src/types/builders.ts +10 -0
  35. package/src/types/controller.ts +79 -0
  36. package/src/types/glue.ts +37 -0
  37. package/src/types/ioc.ts +33 -0
  38. package/src/types/privateData.ts +92 -0
  39. package/src/types/protocol.ts +453 -0
  40. package/src/types/subscription.ts +31 -0
  41. package/temp.d.ts +49 -0
  42. package/tsconfig.json +10 -0
  43. package/workspaces.d.ts +1986 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
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.
package/changelog.md ADDED
@@ -0,0 +1,133 @@
1
+ 3.0.0
2
+ feat: Introduce the new IO Connect Workspaces API
3
+ 1.24.1
4
+ chore: bump due to dependencies update
5
+ 1.24.0
6
+ feat: added allowSystemHibernation as a new lock option and added it to the config decoder
7
+ 1.23.0
8
+ chore: bump due to dependencies update
9
+ 1.22.0
10
+ feat: added onHibernated/Resumed events for workspaces
11
+ chore: updated the workspaces.d.ts with the new onWindowSelected events
12
+ fix: workspaceWindow.isLoaded returns undefined instead of false
13
+ 1.21.0
14
+ feat: added onWindowSelected events
15
+ chore: updated the temp.ts types
16
+ 1.20.5
17
+ chore: bump due to dependencies update
18
+ 1.20.4
19
+ chore: bump due to dependencies update
20
+ 1.20.3
21
+ chore: bump due to dependencies update
22
+ 1.20.2
23
+ chore: bump due to dependencies update
24
+ 1.20.1
25
+ feat: added bundleTo methods to the group
26
+ 1.20.0
27
+ feat: updated all dependencies to the latest major versions
28
+ 1.19.0
29
+ fix: layouts import in Enterprise now uses a new operation to import all layouts instead of one by one
30
+ feat: added isSelected to the workspace window typings and enabled the focused property for Core and Core+
31
+ feat: adds support for layoutComponentId
32
+ fix: closing a workspace now checks if this is the last workspace in a platform frame
33
+ 1.18.2
34
+ chore: bump due to dependencies update
35
+ 1.18.1
36
+ fix: layouts import in Enterprise price is now reverted back to operating on top of the bridge protocol
37
+ 1.18.0
38
+ chore: updated the typings
39
+ 1.17.3
40
+ chore: updated rollup build to use a clean dist dir
41
+ 1.17.2
42
+ fix: dedicated the layouts import to the underlying glue, instead of transmitting a dedicated workspaces protocol message
43
+ 1.17.1
44
+ feat: optimized the performance of glue.workspaces.getMyWorkspace()
45
+ chore: removed unnecessary console.log
46
+ 1.17.0
47
+ feat: added workspace lock events
48
+ 1.16.4
49
+ feat: added version property to the top-level API
50
+ 1.16.3
51
+ feat: added workspace.show/hideLoadingAnimation and window.isSelected
52
+ feat: added frame.onFocusChanged event
53
+ 1.16.2
54
+ feat: added the setMaximizationBoundary method
55
+ 1.16.1
56
+ feat: added support for allowReorder, allowWindowReorder and allowWorkspaceTabReorder
57
+ feat: added frameBounds to the data provided to workspace and frame closed events
58
+ 1.16.0
59
+ feat: added support for allowWorkspaceTabExtract
60
+ 1.15.5
61
+ chore: moved the workspace application property
62
+ 1.15.4
63
+ chore: bump due to dependencies update
64
+ 1.15.3
65
+ chore: bump due to dependencies update
66
+ 1.15.2
67
+ feat: added onWindowMaximized and onWindowRestored events
68
+ 1.15.1
69
+ fix: improved the typings of the box definitions
70
+ 1.15.0
71
+ feat: added support for maximization boundaries
72
+ 1.14.0
73
+ feat: added support for shortcuts in Enterprise
74
+ 1.13.0
75
+ feat: added support for application name when restoring a workspace in Enterprise
76
+ 1.12.2
77
+ fix: fixes the breaking change introduced in 1.12.0 which caused incompatibility between 1.12.X platform and api clients prior to 1.12.0
78
+ 1.12.1
79
+ chore: bump due to dependencies update
80
+ 1.12.0
81
+ feat: added improvements for the connection transport switch functionality
82
+ 1.11.1
83
+ chore: bump due to dependencies update
84
+ 1.11.0
85
+ chore: updated the workspaces typings with the latest features
86
+ 1.10.6
87
+ chore: updated the decoders to pass isMaximized in window layout items
88
+ 1.10.5
89
+ chore: bump due to dependencies update
90
+ 1.10.4
91
+ feat: added positionIndex property as a config when opening workspaces
92
+ feat: added a WorkspacePinOptions interface for better extensibility
93
+ 1.10.3
94
+ feat: added createFrame, frame.init, frame.isInitialized and frame.onInitializationRequested
95
+ 1.10.2
96
+ feat: added isSelected support
97
+ feat: pinned tabs support and workspace icons
98
+ 1.10.1
99
+ feat: saveLayout() now can also save meta data
100
+ 1.10.0
101
+ feat: added support for GDX (Glue42 Developer Extension)
102
+ 1.9.1
103
+ chore: bump due to dependencies update
104
+ 1.9.0
105
+ feat: added waitForFrame method and updated to the latest core
106
+ 1.8.2
107
+ chore: bump due to dependencies update
108
+ 1.8.1
109
+ chore: added noTabHeader to the workspace restore options
110
+ 1.8.0
111
+ feat: updated all typings to be inline with Enterprise 3.12
112
+ feat: added isSelected to the workspace object
113
+ feat: implemented the maximization of containers
114
+ 1.7.5
115
+ feat: added allowSplitters to rows and columns and allowDropLeft, allowDropTop, allowDropRight, allowDropBottom, allowDropHeader to the groups
116
+ fix: started firing open and close workspace events when the last workspace in a frame acting like a platform has been closed
117
+ chore: Resolved dependency vulnerabilities
118
+ 1.7.4
119
+ feat: added getWorkspaceById method and made internal performance optimizations
120
+ 1.7.3
121
+ chore: bump due to dependencies update
122
+ 1.7.2
123
+ chore: bump due to dependencies update
124
+ 1.7.1
125
+ fix: fixed allowDropLeft, allowDropTop, allowDropRight, allowDropBottom in the workspaces config object by adding them to the decoders
126
+ 1.7.0
127
+ feat: added getBounds for workspaces frames
128
+ feat: added support for workspaces constraints
129
+ feat: added support for workspaces elements sizes
130
+ 1.6.2
131
+ fix: improved compatibility with GD 3.11 by allowing for an optional isSelected workspaceConfig in the protocol
132
+ 1.6.1
133
+ chore: Resolved dependency vulnerabilities