@finos/legend-application 11.0.3 → 12.0.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/lib/application/LegendApplication.js +1 -1
- package/lib/application/LegendApplication.js.map +1 -1
- package/lib/application/LegendApplicationPluginManager.d.ts +1 -1
- package/lib/application/LegendApplicationPluginManager.d.ts.map +1 -1
- package/lib/components/ActionAlert.d.ts.map +1 -1
- package/lib/components/ActionAlert.js +5 -5
- package/lib/components/ActionAlert.js.map +1 -1
- package/lib/components/ApplicationStoreProviderTestUtils.d.ts +1 -1
- package/lib/components/ApplicationStoreProviderTestUtils.d.ts.map +1 -1
- package/lib/components/ApplicationStoreProviderTestUtils.js +1 -1
- package/lib/components/ApplicationStoreProviderTestUtils.js.map +1 -1
- package/lib/components/BlockingAlert.js +1 -1
- package/lib/components/BlockingAlert.js.map +1 -1
- package/lib/components/LegendApplicationComponentFrameworkProvider.d.ts.map +1 -1
- package/lib/components/LegendApplicationComponentFrameworkProvider.js +5 -5
- package/lib/components/LegendApplicationComponentFrameworkProvider.js.map +1 -1
- package/lib/components/NotificationManager.js +5 -5
- package/lib/components/NotificationManager.js.map +1 -1
- package/lib/components/VirtualAssistant.d.ts.map +1 -1
- package/lib/components/VirtualAssistant.js +4 -4
- package/lib/components/VirtualAssistant.js.map +1 -1
- package/lib/components/WebApplicationNavigatorProvider.d.ts +1 -1
- package/lib/components/WebApplicationNavigatorProvider.d.ts.map +1 -1
- package/lib/components/WebApplicationNavigatorProvider.js +1 -1
- package/lib/components/WebApplicationNavigatorProvider.js.map +1 -1
- package/lib/components/WebApplicationNavigatorProviderTestUtils.d.ts +1 -1
- package/lib/components/WebApplicationNavigatorProviderTestUtils.d.ts.map +1 -1
- package/lib/components/WebApplicationNavigatorProviderTestUtils.js +1 -1
- package/lib/components/WebApplicationNavigatorProviderTestUtils.js.map +1 -1
- package/lib/components/shared/DocumentationLink.d.ts.map +1 -1
- package/lib/components/shared/DocumentationLink.js +5 -3
- package/lib/components/shared/DocumentationLink.js.map +1 -1
- package/lib/components/shared/TextInputEditor.js +1 -1
- package/lib/components/shared/TextInputEditor.js.map +1 -1
- package/lib/components/useCommands.d.ts +1 -1
- package/lib/components/useCommands.d.ts.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +10 -7
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -7
- package/lib/index.js.map +1 -1
- package/lib/package.json +3 -3
- package/lib/stores/AlertService.d.ts +13 -3
- package/lib/stores/AlertService.d.ts.map +1 -1
- package/lib/stores/AlertService.js +36 -0
- package/lib/stores/AlertService.js.map +1 -1
- package/lib/stores/ApplicationEvent.d.ts +0 -1
- package/lib/stores/ApplicationEvent.d.ts.map +1 -1
- package/lib/stores/ApplicationEvent.js +0 -1
- package/lib/stores/ApplicationEvent.js.map +1 -1
- package/lib/stores/ApplicationStore.d.ts +27 -51
- package/lib/stores/ApplicationStore.d.ts.map +1 -1
- package/lib/stores/ApplicationStore.js +51 -182
- package/lib/stores/ApplicationStore.js.map +1 -1
- package/lib/stores/ApplicationStoreTestUtils.js +1 -1
- package/lib/stores/ApplicationStoreTestUtils.js.map +1 -1
- package/lib/stores/ClipboardService.d.ts +22 -0
- package/lib/stores/ClipboardService.d.ts.map +1 -0
- package/lib/stores/ClipboardService.js +29 -0
- package/lib/stores/ClipboardService.js.map +1 -0
- package/lib/stores/{CommandCenter.d.ts → CommandService.d.ts} +2 -2
- package/lib/stores/CommandService.d.ts.map +1 -0
- package/lib/stores/{CommandCenter.js → CommandService.js} +3 -3
- package/lib/stores/CommandService.js.map +1 -0
- package/lib/stores/DocumentationService.js +3 -3
- package/lib/stores/DocumentationService.js.map +1 -1
- package/lib/stores/IdentityService.d.ts +7 -1
- package/lib/stores/IdentityService.d.ts.map +1 -1
- package/lib/stores/IdentityService.js +16 -1
- package/lib/stores/IdentityService.js.map +1 -1
- package/lib/stores/KeyboardShortcutsService.d.ts.map +1 -1
- package/lib/stores/KeyboardShortcutsService.js +2 -9
- package/lib/stores/KeyboardShortcutsService.js.map +1 -1
- package/lib/stores/LayoutService.d.ts +35 -0
- package/lib/stores/LayoutService.d.ts.map +1 -0
- package/lib/stores/LayoutService.js +53 -0
- package/lib/stores/LayoutService.js.map +1 -0
- package/lib/stores/LegendApplicationPlugin.d.ts +2 -2
- package/lib/stores/LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/NotificationService.d.ts +20 -0
- package/lib/stores/NotificationService.d.ts.map +1 -1
- package/lib/stores/NotificationService.js +75 -0
- package/lib/stores/NotificationService.js.map +1 -1
- package/lib/stores/TelemetryService.d.ts +4 -1
- package/lib/stores/TelemetryService.d.ts.map +1 -1
- package/lib/stores/TelemetryService.js +13 -1
- package/lib/stores/TelemetryService.js.map +1 -1
- package/lib/stores/event/EventService.d.ts.map +1 -0
- package/lib/stores/event/EventService.js.map +1 -0
- package/lib/stores/event/IframeEventNotifierPlugin.d.ts.map +1 -0
- package/lib/stores/{IframeEventNotifierPlugin.js → event/IframeEventNotifierPlugin.js} +1 -1
- package/lib/stores/event/IframeEventNotifierPlugin.js.map +1 -0
- package/lib/stores/{WebApplicationNavigator.d.ts → navigation/NavigationService.d.ts} +11 -35
- package/lib/stores/navigation/NavigationService.d.ts.map +1 -0
- package/lib/stores/navigation/NavigationService.js +22 -0
- package/lib/stores/navigation/NavigationService.js.map +1 -0
- package/lib/stores/navigation/WebApplicationNavigator.d.ts +46 -0
- package/lib/stores/navigation/WebApplicationNavigator.d.ts.map +1 -0
- package/lib/stores/navigation/WebApplicationNavigator.js.map +1 -0
- package/lib/stores/navigation/WebApplicationRouter.d.ts.map +1 -0
- package/lib/stores/navigation/WebApplicationRouter.js.map +1 -0
- package/lib/stores/pure-language/PureLanguageSupport.d.ts.map +1 -0
- package/lib/stores/{PureLanguageSupport.js → pure-language/PureLanguageSupport.js} +1 -1
- package/lib/stores/pure-language/PureLanguageSupport.js.map +1 -0
- package/lib/stores/{PureLanguageTextEditorSupport.d.ts → pure-language/PureLanguageTextEditorSupport.d.ts} +1 -1
- package/lib/stores/pure-language/PureLanguageTextEditorSupport.d.ts.map +1 -0
- package/lib/stores/pure-language/PureLanguageTextEditorSupport.js.map +1 -0
- package/lib/stores/storage/ApplicationStorage.d.ts +52 -0
- package/lib/stores/storage/ApplicationStorage.d.ts.map +1 -0
- package/lib/stores/storage/ApplicationStorage.js +37 -0
- package/lib/stores/storage/ApplicationStorage.js.map +1 -0
- package/lib/stores/storage/StorageService.d.ts +38 -0
- package/lib/stores/storage/StorageService.d.ts.map +1 -0
- package/lib/stores/storage/StorageService.js +65 -0
- package/lib/stores/storage/StorageService.js.map +1 -0
- package/lib/stores/terminal/XTerm.js +4 -4
- package/lib/stores/terminal/XTerm.js.map +1 -1
- package/package.json +7 -7
- package/src/application/LegendApplication.tsx +1 -1
- package/src/application/LegendApplicationPluginManager.tsx +1 -1
- package/src/components/ActionAlert.tsx +7 -5
- package/src/components/ApplicationStoreProviderTestUtils.tsx +1 -1
- package/src/components/BlockingAlert.tsx +1 -1
- package/src/components/LegendApplicationComponentFrameworkProvider.tsx +7 -5
- package/src/components/NotificationManager.tsx +5 -5
- package/src/components/VirtualAssistant.tsx +8 -4
- package/src/components/WebApplicationNavigatorProvider.tsx +1 -1
- package/src/components/WebApplicationNavigatorProviderTestUtils.tsx +1 -1
- package/src/components/shared/DocumentationLink.tsx +13 -5
- package/src/components/shared/TextInputEditor.tsx +1 -1
- package/src/components/useCommands.tsx +1 -1
- package/src/index.ts +10 -7
- package/src/stores/AlertService.ts +47 -3
- package/src/stores/ApplicationEvent.ts +0 -1
- package/src/stores/ApplicationStore.ts +64 -275
- package/src/stores/ApplicationStoreTestUtils.ts +1 -1
- package/src/stores/ClipboardService.ts +33 -0
- package/src/stores/{CommandCenter.ts → CommandService.ts} +2 -2
- package/src/stores/DocumentationService.ts +3 -3
- package/src/stores/IdentityService.ts +23 -1
- package/src/stores/KeyboardShortcutsService.ts +2 -15
- package/src/stores/LayoutService.ts +59 -0
- package/src/stores/LegendApplicationPlugin.ts +2 -2
- package/src/stores/NotificationService.ts +143 -0
- package/src/stores/TelemetryService.ts +15 -1
- package/src/stores/{IframeEventNotifierPlugin.ts → event/IframeEventNotifierPlugin.ts} +1 -1
- package/src/stores/navigation/NavigationService.ts +98 -0
- package/src/stores/{WebApplicationNavigator.ts → navigation/WebApplicationNavigator.ts} +5 -74
- package/src/stores/{PureLanguageSupport.ts → pure-language/PureLanguageSupport.ts} +1 -1
- package/src/stores/{PureLanguageTextEditorSupport.ts → pure-language/PureLanguageTextEditorSupport.ts} +1 -1
- package/src/stores/storage/ApplicationStorage.ts +78 -0
- package/src/stores/storage/StorageService.ts +90 -0
- package/src/stores/terminal/XTerm.ts +4 -4
- package/tsconfig.json +12 -7
- package/lib/stores/CommandCenter.d.ts.map +0 -1
- package/lib/stores/CommandCenter.js.map +0 -1
- package/lib/stores/EventService.d.ts.map +0 -1
- package/lib/stores/EventService.js.map +0 -1
- package/lib/stores/IframeEventNotifierPlugin.d.ts.map +0 -1
- package/lib/stores/IframeEventNotifierPlugin.js.map +0 -1
- package/lib/stores/PureLanguageSupport.d.ts.map +0 -1
- package/lib/stores/PureLanguageSupport.js.map +0 -1
- package/lib/stores/PureLanguageTextEditorSupport.d.ts.map +0 -1
- package/lib/stores/PureLanguageTextEditorSupport.js.map +0 -1
- package/lib/stores/WebApplicationNavigator.d.ts.map +0 -1
- package/lib/stores/WebApplicationNavigator.js.map +0 -1
- package/lib/stores/WebApplicationRouter.d.ts.map +0 -1
- package/lib/stores/WebApplicationRouter.js.map +0 -1
- /package/lib/stores/{EventService.d.ts → event/EventService.d.ts} +0 -0
- /package/lib/stores/{EventService.js → event/EventService.js} +0 -0
- /package/lib/stores/{IframeEventNotifierPlugin.d.ts → event/IframeEventNotifierPlugin.d.ts} +0 -0
- /package/lib/stores/{WebApplicationNavigator.js → navigation/WebApplicationNavigator.js} +0 -0
- /package/lib/stores/{WebApplicationRouter.d.ts → navigation/WebApplicationRouter.d.ts} +0 -0
- /package/lib/stores/{WebApplicationRouter.js → navigation/WebApplicationRouter.js} +0 -0
- /package/lib/stores/{PureLanguageSupport.d.ts → pure-language/PureLanguageSupport.d.ts} +0 -0
- /package/lib/stores/{PureLanguageTextEditorSupport.js → pure-language/PureLanguageTextEditorSupport.js} +0 -0
- /package/src/stores/{EventService.ts → event/EventService.ts} +0 -0
- /package/src/stores/{WebApplicationRouter.ts → navigation/WebApplicationRouter.ts} +0 -0
package/lib/index.d.ts
CHANGED
|
@@ -27,12 +27,15 @@ export * from './stores/ApplicationStore.js';
|
|
|
27
27
|
export * from './stores/ApplicationTelemetry.js';
|
|
28
28
|
export * from './stores/ApplicationEvent.js';
|
|
29
29
|
export * from './application/LegendApplicationConfig.js';
|
|
30
|
-
export { WebApplicationNavigator } from './stores/WebApplicationNavigator.js';
|
|
30
|
+
export { WebApplicationNavigator } from './stores/navigation/WebApplicationNavigator.js';
|
|
31
|
+
export { NavigationService } from './stores/navigation/NavigationService.js';
|
|
32
|
+
export { LocalStorage } from './stores/storage/ApplicationStorage.js';
|
|
33
|
+
export * from './stores/storage/StorageService.js';
|
|
31
34
|
export * from './stores/DocumentationService.js';
|
|
32
|
-
export * from './stores/
|
|
33
|
-
export * from './stores/EventService.js';
|
|
35
|
+
export * from './stores/CommandService.js';
|
|
36
|
+
export * from './stores/event/EventService.js';
|
|
37
|
+
export * from './stores/event/IframeEventNotifierPlugin.js';
|
|
34
38
|
export * from './stores/TelemetryService.js';
|
|
35
|
-
export * from './stores/IframeEventNotifierPlugin.js';
|
|
36
39
|
export * from './stores/NotificationService.js';
|
|
37
40
|
export * from './stores/AlertService.js';
|
|
38
41
|
export * from './stores/AssistantService.js';
|
|
@@ -42,9 +45,9 @@ export * from './components/shared/TextSearchAdvancedConfigMenu.js';
|
|
|
42
45
|
export * from './stores/shared/TextSearchAdvancedConfigState.js';
|
|
43
46
|
export * from './stores/LegendApplicationDocumentation.js';
|
|
44
47
|
export * from './stores/ApplicationStoreTestUtils.js';
|
|
45
|
-
export * from './stores/WebApplicationRouter.js';
|
|
46
|
-
export { PURE_GRAMMAR_TOKEN } from './stores/PureLanguageSupport.js';
|
|
47
|
-
export * from './stores/PureLanguageTextEditorSupport.js';
|
|
48
|
+
export * from './stores/navigation/WebApplicationRouter.js';
|
|
49
|
+
export { PURE_GRAMMAR_TOKEN } from './stores/pure-language/PureLanguageSupport.js';
|
|
50
|
+
export * from './stores/pure-language/PureLanguageTextEditorSupport.js';
|
|
48
51
|
export { DISPLAY_ANSI_ESCAPE } from './stores/terminal/Terminal.js';
|
|
49
52
|
export * from './components/shared/DocumentationLink.js';
|
|
50
53
|
export * from './components/shared/TextInputEditor.js';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,YAAY,CAAC;AAE3B,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,iDAAiD,CAAC;AAChE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mDAAmD,CAAC;AAClE,cAAc,0DAA0D,CAAC;AAEzE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,YAAY,CAAC;AAE3B,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,6DAA6D,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icationStore.js';
|
|
|
27
27
|
export * from './stores/ApplicationTelemetry.js';
|
|
28
28
|
export * from './stores/ApplicationEvent.js';
|
|
29
29
|
export * from './application/LegendApplicationConfig.js';
|
|
30
|
-
export { WebApplicationNavigator } from './stores/WebApplicationNavigator.js';
|
|
30
|
+
export { WebApplicationNavigator } from './stores/navigation/WebApplicationNavigator.js';
|
|
31
|
+
export { NavigationService } from './stores/navigation/NavigationService.js';
|
|
32
|
+
export { LocalStorage } from './stores/storage/ApplicationStorage.js';
|
|
33
|
+
export * from './stores/storage/StorageService.js';
|
|
31
34
|
export * from './stores/DocumentationService.js';
|
|
32
|
-
export * from './stores/
|
|
33
|
-
export * from './stores/EventService.js';
|
|
35
|
+
export * from './stores/CommandService.js';
|
|
36
|
+
export * from './stores/event/EventService.js';
|
|
37
|
+
export * from './stores/event/IframeEventNotifierPlugin.js';
|
|
34
38
|
export * from './stores/TelemetryService.js';
|
|
35
|
-
export * from './stores/IframeEventNotifierPlugin.js';
|
|
36
39
|
export * from './stores/NotificationService.js';
|
|
37
40
|
export * from './stores/AlertService.js';
|
|
38
41
|
export * from './stores/AssistantService.js';
|
|
@@ -42,9 +45,9 @@ export * from './components/shared/TextSearchAdvancedConfigMenu.js';
|
|
|
42
45
|
export * from './stores/shared/TextSearchAdvancedConfigState.js';
|
|
43
46
|
export * from './stores/LegendApplicationDocumentation.js';
|
|
44
47
|
export * from './stores/ApplicationStoreTestUtils.js';
|
|
45
|
-
export * from './stores/WebApplicationRouter.js';
|
|
46
|
-
export { PURE_GRAMMAR_TOKEN } from './stores/PureLanguageSupport.js';
|
|
47
|
-
export * from './stores/PureLanguageTextEditorSupport.js';
|
|
48
|
+
export * from './stores/navigation/WebApplicationRouter.js';
|
|
49
|
+
export { PURE_GRAMMAR_TOKEN } from './stores/pure-language/PureLanguageSupport.js';
|
|
50
|
+
export * from './stores/pure-language/PureLanguageTextEditorSupport.js';
|
|
48
51
|
export { DISPLAY_ANSI_ESCAPE } from './stores/terminal/Terminal.js';
|
|
49
52
|
// ------------------------------------------- Shared components -------------------------------------------
|
|
50
53
|
export * from './components/shared/DocumentationLink.js';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,YAAY,CAAC;AAE3B,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,iDAAiD,CAAC;AAChE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mDAAmD,CAAC;AAClE,cAAc,0DAA0D,CAAC;AAEzE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,YAAY,CAAC;AAE3B,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,iDAAiD,CAAC;AAChE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mDAAmD,CAAC;AAClE,cAAc,0DAA0D,CAAC;AAEzE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AACzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AAEpD,cAAc,qDAAqD,CAAC;AACpE,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAE3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,cAAc,yDAAyD,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,4GAA4G;AAE5G,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,sDAAsD,CAAC;AACrE,cAAc,mCAAmC,CAAC;AAElD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oCAAoC,CAAC;AAEnD;;GAEG;AACH,cAAc,2DAA2D,CAAC;AAC1E,cAAc,gCAAgC,CAAC"}
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-application",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "Legend application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@types/react-router-dom": "5.3.3",
|
|
53
53
|
"history": "5.3.0",
|
|
54
54
|
"mobx": "6.8.0",
|
|
55
|
-
"mobx-react-lite": "3.4.
|
|
55
|
+
"mobx-react-lite": "3.4.3",
|
|
56
56
|
"monaco-editor": "0.36.1",
|
|
57
57
|
"react": "18.2.0",
|
|
58
58
|
"react-dnd": "16.0.1",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"eslint": "8.35.0",
|
|
78
78
|
"jest": "29.5.0",
|
|
79
79
|
"npm-run-all": "4.1.5",
|
|
80
|
-
"rimraf": "4.
|
|
80
|
+
"rimraf": "4.4.0",
|
|
81
81
|
"sass": "1.58.3",
|
|
82
82
|
"typescript": "4.9.5"
|
|
83
83
|
},
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
17
|
+
import type { GenericLegendApplicationStore } from './ApplicationStore.js';
|
|
16
18
|
export declare enum ActionAlertType {
|
|
17
19
|
STANDARD = "STANDARD",
|
|
18
20
|
CAUTION = "CAUTION"
|
|
@@ -23,14 +25,14 @@ export declare enum ActionAlertActionType {
|
|
|
23
25
|
PROCEED = "PROCEED"
|
|
24
26
|
}
|
|
25
27
|
export interface ActionAlertInfo {
|
|
26
|
-
title?: string;
|
|
28
|
+
title?: string | undefined;
|
|
27
29
|
message: string;
|
|
28
|
-
prompt?: string;
|
|
30
|
+
prompt?: string | undefined;
|
|
29
31
|
type?: ActionAlertType;
|
|
30
32
|
onClose?: () => void;
|
|
31
33
|
onEnter?: () => void;
|
|
32
34
|
actions: {
|
|
33
|
-
label:
|
|
35
|
+
label: React.ReactNode;
|
|
34
36
|
default?: boolean;
|
|
35
37
|
handler?: () => void;
|
|
36
38
|
type?: ActionAlertActionType;
|
|
@@ -41,4 +43,12 @@ export interface BlockingAlertInfo {
|
|
|
41
43
|
prompt?: string;
|
|
42
44
|
showLoading?: boolean;
|
|
43
45
|
}
|
|
46
|
+
export declare class AlertService {
|
|
47
|
+
readonly applicationStore: GenericLegendApplicationStore;
|
|
48
|
+
blockingAlertInfo?: BlockingAlertInfo | undefined;
|
|
49
|
+
actionAlertInfo?: ActionAlertInfo | undefined;
|
|
50
|
+
constructor(applicationStore: GenericLegendApplicationStore);
|
|
51
|
+
setBlockingAlert(alertInfo: BlockingAlertInfo | undefined): void;
|
|
52
|
+
setActionAlertInfo(alertInfo: ActionAlertInfo | undefined): void;
|
|
53
|
+
}
|
|
44
54
|
//# sourceMappingURL=AlertService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertService.d.ts","sourceRoot":"","sources":["../../src/stores/AlertService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"AlertService.d.ts","sourceRoot":"","sources":["../../src/stores/AlertService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAE3E,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,oBAAY,qBAAqB;IAC/B,QAAQ,aAAa;IACrB,oBAAoB,yBAAyB;IAC7C,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE;QACP,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,IAAI,CAAC,EAAE,qBAAqB,CAAC;KAC9B,EAAE,CAAC;CACL;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qBAAa,YAAY;IACvB,QAAQ,CAAC,gBAAgB,EAAE,6BAA6B,CAAC;IAEzD,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAClD,eAAe,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;gBAElC,gBAAgB,EAAE,6BAA6B;IAW3D,gBAAgB,CAAC,SAAS,EAAE,iBAAiB,GAAG,SAAS,GAAG,IAAI;IAShE,kBAAkB,CAAC,SAAS,EAAE,eAAe,GAAG,SAAS,GAAG,IAAI;CAajE"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { action, makeObservable, observable } from 'mobx';
|
|
16
17
|
export var ActionAlertType;
|
|
17
18
|
(function (ActionAlertType) {
|
|
18
19
|
ActionAlertType["STANDARD"] = "STANDARD";
|
|
@@ -24,4 +25,39 @@ export var ActionAlertActionType;
|
|
|
24
25
|
ActionAlertActionType["PROCEED_WITH_CAUTION"] = "PROCEED_WITH_CAUTION";
|
|
25
26
|
ActionAlertActionType["PROCEED"] = "PROCEED";
|
|
26
27
|
})(ActionAlertActionType = ActionAlertActionType || (ActionAlertActionType = {}));
|
|
28
|
+
export class AlertService {
|
|
29
|
+
applicationStore;
|
|
30
|
+
blockingAlertInfo;
|
|
31
|
+
actionAlertInfo;
|
|
32
|
+
constructor(applicationStore) {
|
|
33
|
+
makeObservable(this, {
|
|
34
|
+
blockingAlertInfo: observable,
|
|
35
|
+
actionAlertInfo: observable,
|
|
36
|
+
setBlockingAlert: action,
|
|
37
|
+
setActionAlertInfo: action,
|
|
38
|
+
});
|
|
39
|
+
this.applicationStore = applicationStore;
|
|
40
|
+
}
|
|
41
|
+
setBlockingAlert(alertInfo) {
|
|
42
|
+
if (alertInfo) {
|
|
43
|
+
this.applicationStore.keyboardShortcutsService.blockGlobalHotkeys();
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
this.applicationStore.keyboardShortcutsService.unblockGlobalHotkeys();
|
|
47
|
+
}
|
|
48
|
+
this.blockingAlertInfo = alertInfo;
|
|
49
|
+
}
|
|
50
|
+
setActionAlertInfo(alertInfo) {
|
|
51
|
+
if (this.actionAlertInfo && alertInfo) {
|
|
52
|
+
this.applicationStore.notificationService.notifyIllegalState('Action alert is stacked: new alert is invoked while another one is being displayed');
|
|
53
|
+
}
|
|
54
|
+
if (alertInfo) {
|
|
55
|
+
this.applicationStore.keyboardShortcutsService.blockGlobalHotkeys();
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
this.applicationStore.keyboardShortcutsService.unblockGlobalHotkeys();
|
|
59
|
+
}
|
|
60
|
+
this.actionAlertInfo = alertInfo;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
27
63
|
//# sourceMappingURL=AlertService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertService.js","sourceRoot":"","sources":["../../src/stores/AlertService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;AACrB,CAAC,EAHW,eAAe,GAAf,eAAe,KAAf,eAAe,QAG1B;AAED,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,8CAAqB,CAAA;IACrB,sEAA6C,CAAA;IAC7C,4CAAmB,CAAA;AACrB,CAAC,EAJW,qBAAqB,GAArB,qBAAqB,KAArB,qBAAqB,QAIhC"}
|
|
1
|
+
{"version":3,"file":"AlertService.js","sourceRoot":"","sources":["../../src/stores/AlertService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AA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ACvE;QACD,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;IACnC,CAAC;CACF"}
|
|
@@ -22,7 +22,6 @@ export declare enum APPLICATION_EVENT {
|
|
|
22
22
|
APPLICATION_DOCUMENTATION_FETCH__FAILURE = "application.fetch.documentation.failure",
|
|
23
23
|
APPLICATION_DOCUMENTATION_LOAD__SKIP = "application.load.documentation.skip",
|
|
24
24
|
APPLICATION_DOCUMENTATION_REQUIREMENT_CHECK__FAILURE = "application.load.documentation.requirement-check.failure",
|
|
25
|
-
APPLICATION_KEYBOARD_SHORTCUTS_CONFIGURATION_CHECK__FAILURE = "application.load.keyboard-shortcuts.configuration-check.failure",
|
|
26
25
|
APPLICATION_TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE = "application.load.terminal-command.configuration-check.failure",
|
|
27
26
|
APPLICATION_CONTEXTUAL_DOCUMENTATION_LOAD__SKIP = "application.load.contextual-documentation.skip",
|
|
28
27
|
APPLICATION_COMMAND_CENTER_REGISTRATION__FAILURE = "application.command-center.registration.failure",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationEvent.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,iBAAiB;IAC3B,8BAA8B,kCAAkC;IAChE,0BAA0B,8BAA8B;IAExD,kCAAkC,oCAAoC;IACtE,kCAAkC,sCAAsC;IAExE,wCAAwC,4CAA4C;IAEpF,wCAAwC,4CAA4C;IACpF,oCAAoC,wCAAwC;IAC5E,oDAAoD,6DAA6D;IACjH,
|
|
1
|
+
{"version":3,"file":"ApplicationEvent.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,iBAAiB;IAC3B,8BAA8B,kCAAkC;IAChE,0BAA0B,8BAA8B;IAExD,kCAAkC,oCAAoC;IACtE,kCAAkC,sCAAsC;IAExE,wCAAwC,4CAA4C;IAEpF,wCAAwC,4CAA4C;IACpF,oCAAoC,wCAAwC;IAC5E,oDAAoD,6DAA6D;IACjH,yDAAyD,kEAAkE;IAC3H,+CAA+C,mDAAmD;IAElG,gDAAgD,oDAAoD;IAEpG,yBAAyB,6BAA6B;IACtD,yBAAyB,6BAA6B;IAEtD,iBAAiB,sBAAsB;IAEvC,2BAA2B,+BAA+B;IAE1D,4BAA4B,gCAAgC;IAE5D,6CAA6C,6DAA6D;CAC3G"}
|
|
@@ -23,7 +23,6 @@ export var APPLICATION_EVENT;
|
|
|
23
23
|
APPLICATION_EVENT["APPLICATION_DOCUMENTATION_FETCH__FAILURE"] = "application.fetch.documentation.failure";
|
|
24
24
|
APPLICATION_EVENT["APPLICATION_DOCUMENTATION_LOAD__SKIP"] = "application.load.documentation.skip";
|
|
25
25
|
APPLICATION_EVENT["APPLICATION_DOCUMENTATION_REQUIREMENT_CHECK__FAILURE"] = "application.load.documentation.requirement-check.failure";
|
|
26
|
-
APPLICATION_EVENT["APPLICATION_KEYBOARD_SHORTCUTS_CONFIGURATION_CHECK__FAILURE"] = "application.load.keyboard-shortcuts.configuration-check.failure";
|
|
27
26
|
APPLICATION_EVENT["APPLICATION_TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE"] = "application.load.terminal-command.configuration-check.failure";
|
|
28
27
|
APPLICATION_EVENT["APPLICATION_CONTEXTUAL_DOCUMENTATION_LOAD__SKIP"] = "application.load.contextual-documentation.skip";
|
|
29
28
|
APPLICATION_EVENT["APPLICATION_COMMAND_CENTER_REGISTRATION__FAILURE"] = "application.command-center.registration.failure";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationEvent.js","sourceRoot":"","sources":["../../src/stores/ApplicationEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"ApplicationEvent.js","sourceRoot":"","sources":["../../src/stores/ApplicationEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,iBA2BX;AA3BD,WAAY,iBAAiB;IAC3B,qFAAgE,CAAA;IAChE,6EAAwD,CAAA;IAExD,2FAAsE,CAAA;IACtE,6FAAwE,CAAA;IAExE,yGAAoF,CAAA;IAEpF,yGAAoF,CAAA;IACpF,iGAA4E,CAAA;IAC5E,sIAAiH,CAAA;IACjH,gJAA2H,CAAA;IAC3H,uHAAkG,CAAA;IAElG,yHAAoG,CAAA;IAEpG,2EAAsD,CAAA;IACtD,2EAAsD,CAAA;IAEtD,4DAAuC,CAAA;IAEvC,+EAA0D,CAAA;IAE1D,iFAA4D,CAAA;IAE5D,+HAA0G,CAAA;AAC5G,CAAC,EA3BW,iBAAiB,GAAjB,iBAAiB,KAAjB,iBAAiB,QA2B5B"}
|
|
@@ -13,78 +13,56 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { TracerService, LogService } from '@finos/legend-shared';
|
|
17
17
|
import type { LegendApplicationConfig } from '../application/LegendApplicationConfig.js';
|
|
18
|
-
import type { WebApplicationNavigator } from './WebApplicationNavigator.js';
|
|
18
|
+
import type { WebApplicationNavigator } from './navigation/WebApplicationNavigator.js';
|
|
19
19
|
import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js';
|
|
20
20
|
import { DocumentationService } from './DocumentationService.js';
|
|
21
21
|
import { AssistantService } from './AssistantService.js';
|
|
22
|
-
import { EventService } from './EventService.js';
|
|
22
|
+
import { EventService } from './event/EventService.js';
|
|
23
23
|
import { ApplicationNavigationContextService } from './ApplicationNavigationContextService.js';
|
|
24
24
|
import type { LegendApplicationPlugin } from './LegendApplicationPlugin.js';
|
|
25
|
-
import {
|
|
25
|
+
import { CommandService } from './CommandService.js';
|
|
26
26
|
import { KeyboardShortcutsService } from './KeyboardShortcutsService.js';
|
|
27
27
|
import { TerminalService } from './TerminalService.js';
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
28
|
+
import { AlertService } from './AlertService.js';
|
|
29
|
+
import { NotificationService } from './NotificationService.js';
|
|
30
|
+
import { IdentityService } from './IdentityService.js';
|
|
31
|
+
import { StorageService } from './storage/StorageService.js';
|
|
30
32
|
import { TelemetryService } from './TelemetryService.js';
|
|
31
33
|
import { TimeService } from './TimeService.js';
|
|
34
|
+
import { LayoutService } from './LayoutService.js';
|
|
35
|
+
import { ClipboardService } from './ClipboardService.js';
|
|
36
|
+
import { NavigationService } from './navigation/NavigationService.js';
|
|
32
37
|
export type GenericLegendApplicationStore = ApplicationStore<LegendApplicationConfig, LegendApplicationPluginManager<LegendApplicationPlugin>>;
|
|
33
38
|
export declare class ApplicationStore<T extends LegendApplicationConfig, V extends LegendApplicationPluginManager<LegendApplicationPlugin>> {
|
|
34
39
|
readonly uuid: string;
|
|
35
40
|
readonly config: T;
|
|
36
41
|
readonly pluginManager: V;
|
|
37
|
-
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
readonly
|
|
42
|
+
readonly identityService: IdentityService;
|
|
43
|
+
readonly storageService: StorageService;
|
|
44
|
+
readonly timeService: TimeService;
|
|
45
|
+
readonly commandService: CommandService;
|
|
46
|
+
readonly keyboardShortcutsService: KeyboardShortcutsService;
|
|
47
|
+
readonly layoutService: LayoutService;
|
|
48
|
+
readonly clipboardService: ClipboardService;
|
|
44
49
|
readonly terminalService: TerminalService;
|
|
50
|
+
readonly logService: LogService;
|
|
51
|
+
readonly navigationService: NavigationService;
|
|
52
|
+
readonly navigationContextService: ApplicationNavigationContextService;
|
|
45
53
|
readonly documentationService: DocumentationService;
|
|
46
54
|
readonly assistantService: AssistantService;
|
|
47
|
-
readonly
|
|
55
|
+
readonly alertService: AlertService;
|
|
56
|
+
readonly notificationService: NotificationService;
|
|
48
57
|
readonly eventService: EventService;
|
|
49
58
|
readonly telemetryService: TelemetryService;
|
|
50
59
|
readonly tracerService: TracerService;
|
|
51
|
-
|
|
52
|
-
readonly keyboardShortcutsService: KeyboardShortcutsService;
|
|
53
|
-
backdropContainerElementID?: string | undefined;
|
|
54
|
-
showBackdrop: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* NOTE: this is the poor man way of doing theming
|
|
57
|
-
* we would need to revise this flag later
|
|
58
|
-
* See https://github.com/finos/legend-studio/issues/264
|
|
59
|
-
*/
|
|
60
|
-
TEMPORARY__isLightThemeEnabled: boolean;
|
|
61
|
-
constructor(config: T, navigator: WebApplicationNavigator, pluginManager: V);
|
|
62
|
-
TEMPORARY__setIsLightThemeEnabled(val: boolean): void;
|
|
63
|
-
setupTelemetryService(): void;
|
|
64
|
-
/**
|
|
65
|
-
* Change the ID used to find the base element to mount the backdrop on.
|
|
66
|
-
* This is useful when we want to use backdrop with embedded application which
|
|
67
|
-
* requires its own backdrop usage.
|
|
68
|
-
*/
|
|
69
|
-
setBackdropContainerElementID(val: string | undefined): void;
|
|
70
|
-
setShowBackdrop(val: boolean): void;
|
|
71
|
-
setBlockingAlert(alertInfo: BlockingAlertInfo | undefined): void;
|
|
72
|
-
setActionAlertInfo(alertInfo: ActionAlertInfo | undefined): void;
|
|
73
|
-
setCurrentUser(val: string): void;
|
|
74
|
-
setNotification(notification: Notification | undefined): void;
|
|
75
|
-
notify(message: string, actions?: NotificationAction[], autoHideDuration?: number | null): void;
|
|
76
|
-
notifySuccess(message: string, actions?: NotificationAction[], autoHideDuration?: number | null): void;
|
|
77
|
-
notifyWarning(content: string | Error, actions?: NotificationAction[], autoHideDuration?: number | null): void;
|
|
78
|
-
notifyIllegalState(message: string, actions?: NotificationAction[], autoHideDuration?: number | null): void;
|
|
79
|
-
notifyError(content: Error | string, actions?: NotificationAction[]): void;
|
|
60
|
+
constructor(config: T,
|
|
80
61
|
/**
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* is where we would not expect an error to throw (i.e. `IllegalStateError`), but we want to be sure that if the error
|
|
84
|
-
* ever occurs, it still shows very apparently in the UI, as such, printing out in the console is not good enough,
|
|
85
|
-
* but crashing the app is bad too, so this is a good balance.
|
|
62
|
+
* NOTE: as of now, we only support web environment, we will not provide a generic `ApplicationNavigator`
|
|
63
|
+
* This is something we need to think about when we potentially move to another platform
|
|
86
64
|
*/
|
|
87
|
-
|
|
65
|
+
navigator: WebApplicationNavigator, pluginManager: V);
|
|
88
66
|
/**
|
|
89
67
|
* When we call store/state functions from the component, we should handle error thrown at these functions instead
|
|
90
68
|
* of throwing them to the UI. This enforces that by throwing `IllegalStateError`
|
|
@@ -94,7 +72,5 @@ export declare class ApplicationStore<T extends LegendApplicationConfig, V exten
|
|
|
94
72
|
* Guarantee that the action being used by the component does not throw unhandled errors
|
|
95
73
|
*/
|
|
96
74
|
guardUnhandledError: (actionFn: () => Promise<void>) => (() => void);
|
|
97
|
-
copyTextToClipboard(text: string): Promise<void>;
|
|
98
|
-
notifyUnsupportedFeature(featureName: string): void;
|
|
99
75
|
}
|
|
100
76
|
//# sourceMappingURL=ApplicationStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStore.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"ApplicationStore.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,aAAa,EACb,UAAU,EAGX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AACvF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AACvG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