@finos/legend-application 14.0.4 → 15.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/__lib__/LegendApplicationDocumentation.d.ts.map +1 -0
- package/lib/__lib__/LegendApplicationDocumentation.js.map +1 -0
- package/lib/{application → __lib__}/LegendApplicationEvent.d.ts +0 -1
- package/lib/__lib__/LegendApplicationEvent.d.ts.map +1 -0
- package/lib/{application → __lib__}/LegendApplicationEvent.js +0 -1
- package/lib/__lib__/LegendApplicationEvent.js.map +1 -0
- package/lib/__lib__/LegendApplicationNavigation.d.ts +19 -0
- package/lib/__lib__/LegendApplicationNavigation.d.ts.map +1 -0
- package/lib/__lib__/LegendApplicationNavigation.js +20 -0
- package/lib/__lib__/LegendApplicationNavigation.js.map +1 -0
- package/lib/__lib__/LegendApplicationSetting.d.ts.map +1 -0
- package/lib/__lib__/LegendApplicationSetting.js.map +1 -0
- package/lib/{application → __lib__}/LegendApplicationTelemetry.d.ts +0 -11
- package/lib/__lib__/LegendApplicationTelemetry.d.ts.map +1 -0
- package/lib/{application → __lib__}/LegendApplicationTelemetry.js +0 -4
- package/lib/__lib__/LegendApplicationTelemetry.js.map +1 -0
- package/lib/__lib__/LegendApplicationTheme.d.ts.map +1 -0
- package/lib/__lib__/LegendApplicationTheme.js.map +1 -0
- package/lib/__test__.d.ts +18 -0
- package/lib/__test__.d.ts.map +1 -0
- package/lib/__test__.js +18 -0
- package/lib/__test__.js.map +1 -0
- package/lib/application/LegendApplication.d.ts +7 -4
- package/lib/application/LegendApplication.d.ts.map +1 -1
- package/lib/application/LegendApplication.js +28 -11
- package/lib/application/LegendApplication.js.map +1 -1
- package/lib/application/LegendApplicationConfig.d.ts +8 -1
- package/lib/application/LegendApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendApplicationConfig.js +6 -2
- package/lib/application/LegendApplicationConfig.js.map +1 -1
- package/lib/browser.d.ts +19 -0
- package/lib/browser.d.ts.map +1 -0
- package/lib/browser.js +19 -0
- package/lib/browser.js.map +1 -0
- package/lib/components/{LegendApplicationComponentFrameworkProvider.d.ts → ApplicationComponentFrameworkProvider.d.ts} +2 -2
- package/lib/components/ApplicationComponentFrameworkProvider.d.ts.map +1 -0
- package/lib/components/{LegendApplicationComponentFrameworkProvider.js → ApplicationComponentFrameworkProvider.js} +3 -3
- package/lib/components/ApplicationComponentFrameworkProvider.js.map +1 -0
- package/lib/components/ApplicationFrameworkProvider.d.ts +21 -0
- package/lib/components/ApplicationFrameworkProvider.d.ts.map +1 -0
- package/lib/components/ApplicationFrameworkProvider.js +39 -0
- package/lib/components/ApplicationFrameworkProvider.js.map +1 -0
- package/lib/components/{shared/DocumentationLink.d.ts → ApplicationPlatformProvider.d.ts} +4 -10
- package/lib/components/ApplicationPlatformProvider.d.ts.map +1 -0
- package/lib/components/{WebApplicationNavigatorProviderTestUtils.d.ts → ApplicationPlatformProvider.js} +5 -7
- package/lib/components/ApplicationPlatformProvider.js.map +1 -0
- package/lib/components/ApplicationStoreProvider.d.ts +3 -4
- package/lib/components/ApplicationStoreProvider.d.ts.map +1 -1
- package/lib/components/ApplicationStoreProvider.js +6 -23
- package/lib/components/ApplicationStoreProvider.js.map +1 -1
- package/lib/components/{WebApplicationNavigatorProvider.d.ts → BrowserEnvironmentProvider.d.ts} +3 -4
- package/lib/components/BrowserEnvironmentProvider.d.ts.map +1 -0
- package/lib/components/BrowserEnvironmentProvider.js +31 -0
- package/lib/components/BrowserEnvironmentProvider.js.map +1 -0
- package/lib/components/VirtualAssistant.d.ts.map +1 -1
- package/lib/components/VirtualAssistant.js +17 -9
- package/lib/components/VirtualAssistant.js.map +1 -1
- package/lib/components/{shared/FuzzySearchAdvancedConfigMenu.d.ts → __test-utils__/BrowserEnvironmentTestUtils.d.ts} +13 -7
- package/lib/components/__test-utils__/BrowserEnvironmentTestUtils.d.ts.map +1 -0
- package/lib/components/__test-utils__/BrowserEnvironmentTestUtils.js +42 -0
- package/lib/components/__test-utils__/BrowserEnvironmentTestUtils.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +8 -16
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -18
- package/lib/index.js.map +1 -1
- package/lib/package.json +4 -6
- package/lib/stores/{shared/PackageableElementOption.d.ts → ApplicationConfig.d.ts} +6 -7
- package/lib/stores/ApplicationConfig.d.ts.map +1 -0
- package/lib/stores/ApplicationConfig.js +21 -0
- package/lib/stores/ApplicationConfig.js.map +1 -0
- package/lib/stores/ApplicationNavigationContextService.js +1 -1
- package/lib/stores/ApplicationNavigationContextService.js.map +1 -1
- package/lib/stores/ApplicationStore.d.ts +4 -8
- package/lib/stores/ApplicationStore.d.ts.map +1 -1
- package/lib/stores/ApplicationStore.js +14 -14
- package/lib/stores/ApplicationStore.js.map +1 -1
- package/lib/stores/AssistantService.d.ts +3 -3
- package/lib/stores/AssistantService.d.ts.map +1 -1
- package/lib/stores/AssistantService.js +18 -10
- package/lib/stores/AssistantService.js.map +1 -1
- package/lib/stores/CommandService.js +1 -1
- package/lib/stores/CommandService.js.map +1 -1
- package/lib/stores/Core_LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/Core_LegendApplicationPlugin.js +2 -52
- package/lib/stores/Core_LegendApplicationPlugin.js.map +1 -1
- package/lib/stores/DocumentationService.d.ts +1 -1
- package/lib/stores/DocumentationService.d.ts.map +1 -1
- package/lib/stores/DocumentationService.js +4 -5
- package/lib/stores/DocumentationService.js.map +1 -1
- package/lib/stores/LayoutService.js +3 -3
- package/lib/stores/LayoutService.js.map +1 -1
- package/lib/stores/LegendApplicationPlugin.d.ts +1 -15
- package/lib/stores/LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendApplicationPlugin.js +0 -5
- package/lib/stores/LegendApplicationPlugin.js.map +1 -1
- package/lib/stores/SettingService.d.ts +1 -0
- package/lib/stores/SettingService.d.ts.map +1 -1
- package/lib/stores/SettingService.js +1 -1
- package/lib/stores/SettingService.js.map +1 -1
- package/lib/stores/__test-utils__/ApplicationStoreTestUtils.d.ts +18 -0
- package/lib/stores/__test-utils__/ApplicationStoreTestUtils.d.ts.map +1 -0
- package/lib/stores/__test-utils__/ApplicationStoreTestUtils.js +21 -0
- package/lib/stores/__test-utils__/ApplicationStoreTestUtils.js.map +1 -0
- package/lib/stores/navigation/BrowserNavigator.d.ts +64 -0
- package/lib/stores/navigation/BrowserNavigator.d.ts.map +1 -0
- package/lib/stores/navigation/{WebApplicationNavigator.js → BrowserNavigator.js} +22 -3
- package/lib/stores/navigation/BrowserNavigator.js.map +1 -0
- package/lib/stores/navigation/{WebApplicationNavigator.d.ts → DefaultNavigator.d.ts} +3 -12
- package/lib/stores/navigation/DefaultNavigator.d.ts.map +1 -0
- package/lib/stores/navigation/DefaultNavigator.js +74 -0
- package/lib/stores/navigation/DefaultNavigator.js.map +1 -0
- package/lib/stores/navigation/NavigationService.d.ts +7 -0
- package/lib/stores/navigation/NavigationService.d.ts.map +1 -1
- package/lib/stores/navigation/NavigationService.js.map +1 -1
- package/lib/stores/platform/ApplicationPlatform.d.ts +24 -0
- package/lib/stores/platform/ApplicationPlatform.d.ts.map +1 -0
- package/lib/stores/platform/ApplicationPlatform.js +25 -0
- package/lib/stores/platform/ApplicationPlatform.js.map +1 -0
- package/lib/stores/platform/BrowserPlatform.d.ts +29 -0
- package/lib/stores/platform/BrowserPlatform.d.ts.map +1 -0
- package/lib/stores/platform/BrowserPlatform.js +39 -0
- package/lib/stores/platform/BrowserPlatform.js.map +1 -0
- package/lib/stores/storage/StorageService.d.ts +5 -2
- package/lib/stores/storage/StorageService.d.ts.map +1 -1
- package/lib/stores/storage/StorageService.js +20 -10
- package/lib/stores/storage/StorageService.js.map +1 -1
- package/lib/stores/terminal/XTerm.d.ts.map +1 -1
- package/lib/stores/terminal/XTerm.js +5 -5
- package/lib/stores/terminal/XTerm.js.map +1 -1
- package/package.json +7 -9
- package/src/{application → __lib__}/LegendApplicationEvent.ts +1 -1
- package/{lib/stores/shared/PackageableElementOption.js → src/__lib__/LegendApplicationNavigation.ts} +4 -5
- package/src/{application → __lib__}/LegendApplicationTelemetry.ts +0 -24
- package/src/{components.ts → __test__.ts} +2 -7
- package/src/application/LegendApplication.ts +45 -16
- package/src/application/LegendApplicationConfig.ts +13 -2
- package/src/browser.ts +19 -0
- package/src/components/{LegendApplicationComponentFrameworkProvider.tsx → ApplicationComponentFrameworkProvider.tsx} +2 -2
- package/src/components/ApplicationFrameworkProvider.tsx +47 -0
- package/src/components/ApplicationPlatformProvider.tsx +29 -0
- package/src/components/ApplicationStoreProvider.tsx +8 -33
- package/src/components/BrowserEnvironmentProvider.tsx +48 -0
- package/src/components/VirtualAssistant.tsx +53 -11
- package/src/components/__test-utils__/BrowserEnvironmentTestUtils.tsx +63 -0
- package/src/index.ts +12 -24
- package/src/stores/ApplicationConfig.ts +22 -0
- package/src/stores/ApplicationNavigationContextService.ts +1 -1
- package/src/stores/ApplicationStore.ts +18 -19
- package/src/stores/AssistantService.ts +20 -9
- package/src/stores/CommandService.ts +1 -1
- package/src/stores/Core_LegendApplicationPlugin.ts +2 -78
- package/src/stores/DocumentationService.ts +4 -5
- package/src/stores/LayoutService.ts +3 -3
- package/src/stores/LegendApplicationPlugin.ts +1 -21
- package/src/stores/SettingService.ts +2 -1
- package/src/stores/__test-utils__/ApplicationStoreTestUtils.ts +24 -0
- package/src/stores/navigation/{WebApplicationNavigator.ts → BrowserNavigator.ts} +41 -2
- package/src/stores/navigation/DefaultNavigator.ts +150 -0
- package/src/stores/navigation/NavigationService.ts +8 -0
- package/src/stores/{shared/PackageableElementOption.ts → platform/ApplicationPlatform.ts} +14 -11
- package/src/stores/platform/BrowserPlatform.ts +54 -0
- package/src/stores/storage/StorageService.ts +32 -14
- package/src/stores/terminal/XTerm.ts +8 -5
- package/tsconfig.json +19 -23
- package/lib/application/LegendApplicationDocumentation.d.ts.map +0 -1
- package/lib/application/LegendApplicationDocumentation.js.map +0 -1
- package/lib/application/LegendApplicationEvent.d.ts.map +0 -1
- package/lib/application/LegendApplicationEvent.js.map +0 -1
- package/lib/application/LegendApplicationSetting.d.ts.map +0 -1
- package/lib/application/LegendApplicationSetting.js.map +0 -1
- package/lib/application/LegendApplicationTelemetry.d.ts.map +0 -1
- package/lib/application/LegendApplicationTelemetry.js.map +0 -1
- package/lib/application/LegendApplicationTheme.d.ts.map +0 -1
- package/lib/application/LegendApplicationTheme.js.map +0 -1
- package/lib/components/ApplicationStoreProviderTestUtils.d.ts +0 -31
- package/lib/components/ApplicationStoreProviderTestUtils.d.ts.map +0 -1
- package/lib/components/ApplicationStoreProviderTestUtils.js +0 -32
- package/lib/components/ApplicationStoreProviderTestUtils.js.map +0 -1
- package/lib/components/LegendApplicationComponentFrameworkProvider.d.ts.map +0 -1
- package/lib/components/LegendApplicationComponentFrameworkProvider.js.map +0 -1
- package/lib/components/WebApplicationNavigatorProvider.d.ts.map +0 -1
- package/lib/components/WebApplicationNavigatorProvider.js +0 -29
- package/lib/components/WebApplicationNavigatorProvider.js.map +0 -1
- package/lib/components/WebApplicationNavigatorProviderTestUtils.d.ts.map +0 -1
- package/lib/components/WebApplicationNavigatorProviderTestUtils.js +0 -28
- package/lib/components/WebApplicationNavigatorProviderTestUtils.js.map +0 -1
- package/lib/components/shared/DocumentationLink.d.ts.map +0 -1
- package/lib/components/shared/DocumentationLink.js +0 -53
- package/lib/components/shared/DocumentationLink.js.map +0 -1
- package/lib/components/shared/FuzzySearchAdvancedConfigMenu.d.ts.map +0 -1
- package/lib/components/shared/FuzzySearchAdvancedConfigMenu.js +0 -37
- package/lib/components/shared/FuzzySearchAdvancedConfigMenu.js.map +0 -1
- package/lib/components/shared/PackageableElementOptionLabel.d.ts +0 -22
- package/lib/components/shared/PackageableElementOptionLabel.d.ts.map +0 -1
- package/lib/components/shared/PackageableElementOptionLabel.js +0 -46
- package/lib/components/shared/PackageableElementOptionLabel.js.map +0 -1
- package/lib/components/shared/TabManager.d.ts +0 -24
- package/lib/components/shared/TabManager.d.ts.map +0 -1
- package/lib/components/shared/TabManager.js +0 -117
- package/lib/components/shared/TabManager.js.map +0 -1
- package/lib/components.d.ts +0 -21
- package/lib/components.d.ts.map +0 -1
- package/lib/components.js +0 -21
- package/lib/components.js.map +0 -1
- package/lib/const.d.ts +0 -35
- package/lib/const.d.ts.map +0 -1
- package/lib/const.js +0 -39
- package/lib/const.js.map +0 -1
- package/lib/stores/ApplicationStoreTestUtils.d.ts +0 -41
- package/lib/stores/ApplicationStoreTestUtils.d.ts.map +0 -1
- package/lib/stores/ApplicationStoreTestUtils.js +0 -70
- package/lib/stores/ApplicationStoreTestUtils.js.map +0 -1
- package/lib/stores/navigation/WebApplicationNavigator.d.ts.map +0 -1
- package/lib/stores/navigation/WebApplicationNavigator.js.map +0 -1
- package/lib/stores/navigation/WebApplicationRouter.d.ts +0 -22
- package/lib/stores/navigation/WebApplicationRouter.d.ts.map +0 -1
- package/lib/stores/navigation/WebApplicationRouter.js +0 -25
- package/lib/stores/navigation/WebApplicationRouter.js.map +0 -1
- package/lib/stores/pure-language/PureLanguageCodeEditorSupport.d.ts +0 -70
- package/lib/stores/pure-language/PureLanguageCodeEditorSupport.d.ts.map +0 -1
- package/lib/stores/pure-language/PureLanguageCodeEditorSupport.js +0 -237
- package/lib/stores/pure-language/PureLanguageCodeEditorSupport.js.map +0 -1
- package/lib/stores/pure-language/PureLanguageSupport.d.ts +0 -39
- package/lib/stores/pure-language/PureLanguageSupport.d.ts.map +0 -1
- package/lib/stores/pure-language/PureLanguageSupport.js +0 -437
- package/lib/stores/pure-language/PureLanguageSupport.js.map +0 -1
- package/lib/stores/shared/FuzzySearchAdvancedConfigState.d.ts +0 -30
- package/lib/stores/shared/FuzzySearchAdvancedConfigState.d.ts.map +0 -1
- package/lib/stores/shared/FuzzySearchAdvancedConfigState.js +0 -59
- package/lib/stores/shared/FuzzySearchAdvancedConfigState.js.map +0 -1
- package/lib/stores/shared/PackageableElementOption.d.ts.map +0 -1
- package/lib/stores/shared/PackageableElementOption.js.map +0 -1
- package/lib/stores/shared/TabManagerState.d.ts +0 -40
- package/lib/stores/shared/TabManagerState.d.ts.map +0 -1
- package/lib/stores/shared/TabManagerState.js +0 -93
- package/lib/stores/shared/TabManagerState.js.map +0 -1
- package/src/components/ApplicationStoreProviderTestUtils.tsx +0 -59
- package/src/components/WebApplicationNavigatorProvider.tsx +0 -46
- package/src/components/WebApplicationNavigatorProviderTestUtils.tsx +0 -37
- package/src/components/shared/DocumentationLink.tsx +0 -87
- package/src/components/shared/FuzzySearchAdvancedConfigMenu.tsx +0 -73
- package/src/components/shared/PackageableElementOptionLabel.tsx +0 -85
- package/src/components/shared/TabManager.tsx +0 -288
- package/src/const.ts +0 -40
- package/src/stores/ApplicationStoreTestUtils.ts +0 -107
- package/src/stores/navigation/WebApplicationRouter.ts +0 -49
- package/src/stores/pure-language/PureLanguageCodeEditorSupport.ts +0 -338
- package/src/stores/pure-language/PureLanguageSupport.ts +0 -498
- package/src/stores/shared/FuzzySearchAdvancedConfigState.ts +0 -65
- package/src/stores/shared/TabManagerState.ts +0 -124
- /package/lib/{application → __lib__}/LegendApplicationDocumentation.d.ts +0 -0
- /package/lib/{application → __lib__}/LegendApplicationDocumentation.js +0 -0
- /package/lib/{application → __lib__}/LegendApplicationSetting.d.ts +0 -0
- /package/lib/{application → __lib__}/LegendApplicationSetting.js +0 -0
- /package/lib/{application → __lib__}/LegendApplicationTheme.d.ts +0 -0
- /package/lib/{application → __lib__}/LegendApplicationTheme.js +0 -0
- /package/src/{application → __lib__}/LegendApplicationDocumentation.ts +0 -0
- /package/src/{application → __lib__}/LegendApplicationSetting.ts +0 -0
- /package/src/{application → __lib__}/LegendApplicationTheme.ts +0 -0
package/lib/index.d.ts
CHANGED
|
@@ -13,23 +13,21 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export * from './
|
|
16
|
+
export * from './stores/ApplicationConfig.js';
|
|
17
17
|
export * from './application/LegendApplication.js';
|
|
18
18
|
export * from './application/LegendApplicationConfig.js';
|
|
19
19
|
export * from './application/LegendApplicationPluginManager.js';
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export
|
|
20
|
+
export * from './__lib__/LegendApplicationEvent.js';
|
|
21
|
+
export * from './__lib__/LegendApplicationTelemetry.js';
|
|
22
|
+
export * from './__lib__/LegendApplicationSetting.js';
|
|
23
|
+
export * from './__lib__/LegendApplicationDocumentation.js';
|
|
24
|
+
export { LEGEND_APPLICATION_COLOR_THEME } from './__lib__/LegendApplicationTheme.js';
|
|
24
25
|
export * from './components/ApplicationStoreProvider.js';
|
|
25
|
-
export * from './components/
|
|
26
|
-
export * from './components/LegendApplicationComponentFrameworkProvider.js';
|
|
26
|
+
export * from './components/ApplicationFrameworkProvider.js';
|
|
27
27
|
export * from './components/useApplicationNavigationContext.js';
|
|
28
28
|
export * from './components/useCommands.js';
|
|
29
|
-
export
|
|
30
|
-
export * from './components/WebApplicationNavigatorProviderTestUtils.js';
|
|
29
|
+
export { forceDispatchKeyboardEvent, BackdropContainer, } from './components/ApplicationComponentFrameworkProvider.js';
|
|
31
30
|
export * from './stores/ApplicationStore.js';
|
|
32
|
-
export { WebApplicationNavigator } from './stores/navigation/WebApplicationNavigator.js';
|
|
33
31
|
export { NavigationService, type NavigationAddress, type NavigationLocation, type NavigationZone, } from './stores/navigation/NavigationService.js';
|
|
34
32
|
export * from './stores/storage/ApplicationStorage.js';
|
|
35
33
|
export * from './stores/storage/StorageService.js';
|
|
@@ -45,11 +43,5 @@ export * from './stores/AssistantService.js';
|
|
|
45
43
|
export * from './stores/ApplicationNavigationContextService.js';
|
|
46
44
|
export * from './stores/LegendApplicationPlugin.js';
|
|
47
45
|
export * from './stores/Core_LegendApplicationPlugin.js';
|
|
48
|
-
export * from './stores/ApplicationStoreTestUtils.js';
|
|
49
|
-
export * from './stores/navigation/WebApplicationRouter.js';
|
|
50
46
|
export { DISPLAY_ANSI_ESCAPE } from './stores/terminal/Terminal.js';
|
|
51
|
-
export { PURE_GRAMMAR_TOKEN, setupPureLanguageService, } from './stores/pure-language/PureLanguageSupport.js';
|
|
52
|
-
export * from './stores/pure-language/PureLanguageCodeEditorSupport.js';
|
|
53
|
-
export * from './components/shared/PackageableElementOptionLabel.js';
|
|
54
|
-
export * from './stores/shared/PackageableElementOption.js';
|
|
55
47
|
//# sourceMappingURL=index.d.ts.map
|
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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,+BAA+B,CAAC;AAE9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAEhE,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iDAAiD,CAAC;AAChE,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EACL,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,uDAAuD,CAAC;AAE/D,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EACL,iBAAiB,EACjB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,MAAM,0CAA0C,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,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;AACpD,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -13,23 +13,21 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export * from './
|
|
16
|
+
export * from './stores/ApplicationConfig.js';
|
|
17
17
|
export * from './application/LegendApplication.js';
|
|
18
18
|
export * from './application/LegendApplicationConfig.js';
|
|
19
19
|
export * from './application/LegendApplicationPluginManager.js';
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export
|
|
20
|
+
export * from './__lib__/LegendApplicationEvent.js';
|
|
21
|
+
export * from './__lib__/LegendApplicationTelemetry.js';
|
|
22
|
+
export * from './__lib__/LegendApplicationSetting.js';
|
|
23
|
+
export * from './__lib__/LegendApplicationDocumentation.js';
|
|
24
|
+
export { LEGEND_APPLICATION_COLOR_THEME } from './__lib__/LegendApplicationTheme.js';
|
|
24
25
|
export * from './components/ApplicationStoreProvider.js';
|
|
25
|
-
export * from './components/
|
|
26
|
-
export * from './components/LegendApplicationComponentFrameworkProvider.js';
|
|
26
|
+
export * from './components/ApplicationFrameworkProvider.js';
|
|
27
27
|
export * from './components/useApplicationNavigationContext.js';
|
|
28
28
|
export * from './components/useCommands.js';
|
|
29
|
-
export
|
|
30
|
-
export * from './components/WebApplicationNavigatorProviderTestUtils.js';
|
|
29
|
+
export { forceDispatchKeyboardEvent, BackdropContainer, } from './components/ApplicationComponentFrameworkProvider.js';
|
|
31
30
|
export * from './stores/ApplicationStore.js';
|
|
32
|
-
export { WebApplicationNavigator } from './stores/navigation/WebApplicationNavigator.js';
|
|
33
31
|
export { NavigationService, } from './stores/navigation/NavigationService.js';
|
|
34
32
|
export * from './stores/storage/ApplicationStorage.js';
|
|
35
33
|
export * from './stores/storage/StorageService.js';
|
|
@@ -45,13 +43,5 @@ export * from './stores/AssistantService.js';
|
|
|
45
43
|
export * from './stores/ApplicationNavigationContextService.js';
|
|
46
44
|
export * from './stores/LegendApplicationPlugin.js';
|
|
47
45
|
export * from './stores/Core_LegendApplicationPlugin.js';
|
|
48
|
-
export * from './stores/ApplicationStoreTestUtils.js';
|
|
49
|
-
export * from './stores/navigation/WebApplicationRouter.js';
|
|
50
46
|
export { DISPLAY_ANSI_ESCAPE } from './stores/terminal/Terminal.js';
|
|
51
|
-
// ------------------------------------------- TO BE MOVED -------------------------------------------
|
|
52
|
-
// TODO: move to `@finos/legend-lego/code-editor`
|
|
53
|
-
export { PURE_GRAMMAR_TOKEN, setupPureLanguageService, } from './stores/pure-language/PureLanguageSupport.js';
|
|
54
|
-
export * from './stores/pure-language/PureLanguageCodeEditorSupport.js';
|
|
55
|
-
export * from './components/shared/PackageableElementOptionLabel.js';
|
|
56
|
-
export * from './stores/shared/PackageableElementOption.js';
|
|
57
47
|
//# sourceMappingURL=index.js.map
|
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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,+BAA+B,CAAC;AAE9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAEhE,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iDAAiD,CAAC;AAChE,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EACL,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,uDAAuD,CAAC;AAE/D,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EACL,iBAAiB,GAIlB,MAAM,0CAA0C,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,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;AACpD,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC"}
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-application",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"description": "Legend application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"exports": {
|
|
24
24
|
".": "./lib/index.js",
|
|
25
|
-
"./
|
|
25
|
+
"./browser": "./lib/browser.js",
|
|
26
|
+
"./test": "./lib/__test__.js",
|
|
26
27
|
"./lib/index.css": "./lib/index.css"
|
|
27
28
|
},
|
|
28
29
|
"module": "lib/index.js",
|
|
@@ -45,16 +46,13 @@
|
|
|
45
46
|
},
|
|
46
47
|
"dependencies": {
|
|
47
48
|
"@finos/legend-art": "workspace:*",
|
|
48
|
-
"@finos/legend-graph": "workspace:*",
|
|
49
49
|
"@finos/legend-shared": "workspace:*",
|
|
50
|
-
"@types/
|
|
51
|
-
"@types/react": "18.0.34",
|
|
50
|
+
"@types/react": "18.0.37",
|
|
52
51
|
"@types/react-dom": "18.0.11",
|
|
53
52
|
"@types/react-router-dom": "5.3.3",
|
|
54
53
|
"history": "5.3.0",
|
|
55
54
|
"mobx": "6.9.0",
|
|
56
55
|
"mobx-react-lite": "3.4.3",
|
|
57
|
-
"monaco-editor": "0.37.1",
|
|
58
56
|
"react": "18.2.0",
|
|
59
57
|
"react-dnd": "16.0.1",
|
|
60
58
|
"react-dnd-html5-backend": "16.0.1",
|
|
@@ -13,10 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=PackageableElementOption.d.ts.map
|
|
16
|
+
export declare const DEFAULT_TAB_SIZE = 2;
|
|
17
|
+
export declare const DEFAULT_MONOSPACED_FONT_FAMILY = "Roboto Mono";
|
|
18
|
+
export declare const DEFAULT_DATE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
|
|
19
|
+
export declare const DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH = 2;
|
|
20
|
+
export declare const DEFAULT_TYPEAHEAD_SEARCH_LIMIT = 10;
|
|
21
|
+
//# sourceMappingURL=ApplicationConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAClC,eAAO,MAAM,8BAA8B,gBAAgB,CAAC;AAC5D,eAAO,MAAM,wBAAwB,0BAA0B,CAAC;AAEhE,eAAO,MAAM,8CAA8C,IAAI,CAAC;AAChE,eAAO,MAAM,8BAA8B,KAAK,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export const DEFAULT_TAB_SIZE = 2;
|
|
17
|
+
export const DEFAULT_MONOSPACED_FONT_FAMILY = 'Roboto Mono';
|
|
18
|
+
export const DEFAULT_DATE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
|
|
19
|
+
export const DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH = 2;
|
|
20
|
+
export const DEFAULT_TYPEAHEAD_SEARCH_LIMIT = 10;
|
|
21
|
+
//# sourceMappingURL=ApplicationConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationConfig.js","sourceRoot":"","sources":["../../src/stores/ApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAClC,MAAM,CAAC,MAAM,8BAA8B,GAAG,aAAa,CAAC;AAC5D,MAAM,CAAC,MAAM,wBAAwB,GAAG,uBAAuB,CAAC;AAEhE,MAAM,CAAC,MAAM,8CAA8C,GAAG,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,8BAA8B,GAAG,EAAE,CAAC"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { IllegalStateError } from '@finos/legend-shared';
|
|
17
17
|
import { action, computed, makeObservable, observable } from 'mobx';
|
|
18
|
-
import { LegendApplicationTelemetryHelper } from '../
|
|
18
|
+
import { LegendApplicationTelemetryHelper } from '../__lib__/LegendApplicationTelemetry.js';
|
|
19
19
|
/**
|
|
20
20
|
* Context data refers to the area of the application that the user is
|
|
21
21
|
* currently navigating.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationNavigationContextService.js","sourceRoot":"","sources":["../../src/stores/ApplicationNavigationContextService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EAAE,gCAAgC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ApplicationNavigationContextService.js","sourceRoot":"","sources":["../../src/stores/ApplicationNavigationContextService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAE5F;;;;;;;;;;GAUG;AACH,MAAM,OAAO,gCAAgC;IAC3C,GAA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ionState } from '@finos/legend-shared';
|
|
17
17
|
import type { LegendApplicationConfig } from '../application/LegendApplicationConfig.js';
|
|
18
|
-
import type { WebApplicationNavigator } from './navigation/WebApplicationNavigator.js';
|
|
19
18
|
import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js';
|
|
20
19
|
import { DocumentationService } from './DocumentationService.js';
|
|
21
20
|
import { AssistantService } from './AssistantService.js';
|
|
@@ -35,12 +34,14 @@ import { LayoutService } from './LayoutService.js';
|
|
|
35
34
|
import { ClipboardService } from './ClipboardService.js';
|
|
36
35
|
import { NavigationService } from './navigation/NavigationService.js';
|
|
37
36
|
import { SettingService } from './SettingService.js';
|
|
37
|
+
import type { ApplicationPlatform } from './platform/ApplicationPlatform.js';
|
|
38
38
|
export type GenericLegendApplicationStore = ApplicationStore<LegendApplicationConfig, LegendApplicationPluginManager<LegendApplicationPlugin>>;
|
|
39
39
|
export declare class ApplicationStore<T extends LegendApplicationConfig, V extends LegendApplicationPluginManager<LegendApplicationPlugin>> {
|
|
40
40
|
readonly uuid: string;
|
|
41
41
|
readonly config: T;
|
|
42
42
|
readonly pluginManager: V;
|
|
43
43
|
readonly initState: ActionState;
|
|
44
|
+
readonly platform?: ApplicationPlatform | undefined;
|
|
44
45
|
readonly timeService: TimeService;
|
|
45
46
|
readonly logService: LogService;
|
|
46
47
|
readonly storageService: StorageService;
|
|
@@ -60,13 +61,8 @@ export declare class ApplicationStore<T extends LegendApplicationConfig, V exten
|
|
|
60
61
|
readonly eventService: EventService;
|
|
61
62
|
readonly telemetryService: TelemetryService;
|
|
62
63
|
readonly tracerService: TracerService;
|
|
63
|
-
constructor(config: T,
|
|
64
|
-
|
|
65
|
-
* NOTE: as of now, we only support web environment, we will not provide a generic `ApplicationNavigator`
|
|
66
|
-
* This is something we need to think about when we potentially move to another platform
|
|
67
|
-
*/
|
|
68
|
-
navigator: WebApplicationNavigator, pluginManager: V);
|
|
69
|
-
initialize(): Promise<void>;
|
|
64
|
+
constructor(config: T, pluginManager: V);
|
|
65
|
+
initialize(platform: ApplicationPlatform): Promise<void>;
|
|
70
66
|
/**
|
|
71
67
|
* When we call store/state functions from the component, we should handle error thrown at these functions instead
|
|
72
68
|
* of throwing them to the UI. This enforces that by throwing `IllegalStateError`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStore.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,aAAa,EACb,UAAU,EAGV,WAAW,
|
|
1
|
+
{"version":3,"file":"ApplicationStore.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,aAAa,EACb,UAAU,EAGV,WAAW,EAIZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AACvG,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB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EAAE,wBAAwB,CAAC;IAC5D,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAC1C,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,wBAAwB,EAAE,mCAAmC,CAAC;IAGvE,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IACpD,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAG5C,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;gBAE1B,MAAM,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC;IAyCjC,UAAU,CAAC,QAAQ,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IA+B9D;;;OAGG;IACH,mBAAmB,UAAW,KAAK,KAAG,IAAI,CAOxC;IAEF;;OAEG;IACH,mBAAmB,aACN,MAAM,QAAQ,IAAI,CAAC,KAAG,CAAC,MAAM,IAAI,CAAC,CAG3C;CACL"}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { TracerService, LogService, LogEvent, uuid, ActionState, assertErrorThrown, } from '@finos/legend-shared';
|
|
17
|
-
import { APPLICATION_EVENT } from '../
|
|
16
|
+
import { TracerService, LogService, LogEvent, uuid, ActionState, assertErrorThrown, IllegalStateError, } from '@finos/legend-shared';
|
|
17
|
+
import { APPLICATION_EVENT } from '../__lib__/LegendApplicationEvent.js';
|
|
18
18
|
import { DocumentationService } from './DocumentationService.js';
|
|
19
19
|
import { AssistantService } from './AssistantService.js';
|
|
20
20
|
import { EventService } from './event/EventService.js';
|
|
@@ -32,11 +32,13 @@ import { LayoutService } from './LayoutService.js';
|
|
|
32
32
|
import { ClipboardService } from './ClipboardService.js';
|
|
33
33
|
import { NavigationService } from './navigation/NavigationService.js';
|
|
34
34
|
import { SettingService } from './SettingService.js';
|
|
35
|
+
import { DefaultNavigator } from './navigation/DefaultNavigator.js';
|
|
35
36
|
export class ApplicationStore {
|
|
36
37
|
uuid = uuid();
|
|
37
38
|
config;
|
|
38
39
|
pluginManager;
|
|
39
40
|
initState = ActionState.create();
|
|
41
|
+
platform;
|
|
40
42
|
// core
|
|
41
43
|
timeService;
|
|
42
44
|
logService;
|
|
@@ -59,12 +61,7 @@ export class ApplicationStore {
|
|
|
59
61
|
eventService;
|
|
60
62
|
telemetryService;
|
|
61
63
|
tracerService;
|
|
62
|
-
constructor(config,
|
|
63
|
-
/**
|
|
64
|
-
* NOTE: as of now, we only support web environment, we will not provide a generic `ApplicationNavigator`
|
|
65
|
-
* This is something we need to think about when we potentially move to another platform
|
|
66
|
-
*/
|
|
67
|
-
navigator, pluginManager) {
|
|
64
|
+
constructor(config, pluginManager) {
|
|
68
65
|
this.config = config;
|
|
69
66
|
this.pluginManager = pluginManager;
|
|
70
67
|
this.timeService = new TimeService();
|
|
@@ -81,7 +78,7 @@ export class ApplicationStore {
|
|
|
81
78
|
this.terminalService = new TerminalService(this);
|
|
82
79
|
this.commandService = new CommandService(this);
|
|
83
80
|
this.keyboardShortcutsService = new KeyboardShortcutsService(this);
|
|
84
|
-
this.navigationService = new NavigationService(
|
|
81
|
+
this.navigationService = new NavigationService(new DefaultNavigator());
|
|
85
82
|
this.navigationContextService = new ApplicationNavigationContextService(this);
|
|
86
83
|
this.documentationService = new DocumentationService(this);
|
|
87
84
|
this.assistantService = new AssistantService(this);
|
|
@@ -93,17 +90,20 @@ export class ApplicationStore {
|
|
|
93
90
|
this.tracerService = new TracerService();
|
|
94
91
|
this.tracerService.registerPlugins(pluginManager.getTracerServicePlugins());
|
|
95
92
|
}
|
|
96
|
-
async initialize() {
|
|
93
|
+
async initialize(platform) {
|
|
97
94
|
if (!this.initState.isInInitialState) {
|
|
98
95
|
this.notificationService.notifyIllegalState('Application store is re-initialized');
|
|
99
96
|
return;
|
|
100
97
|
}
|
|
101
98
|
this.initState.inProgress();
|
|
102
99
|
try {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
if (this.platform) {
|
|
101
|
+
throw new IllegalStateError(`Platform is already configured`);
|
|
102
|
+
}
|
|
103
|
+
this.platform = platform;
|
|
104
|
+
this.navigationService =
|
|
105
|
+
new NavigationService(platform.getNavigator());
|
|
106
|
+
await platform.initialize();
|
|
107
107
|
this.initState.pass();
|
|
108
108
|
}
|
|
109
109
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStore.js","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,aAAa,EACb,UAAU,EACV,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ApplicationStore.js","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,aAAa,EACb,UAAU,EACV,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,iBAAiB,EACjB,iBAAiB,GAElB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAGzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAE/F,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,O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AAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAC5C,IAAI,CAAC,UAAU,CAAC,KAAK,CACnB,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,EAC5D,mCAAmC,CACpC,CAAC;YACF,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;SACvB;IACH,CAAC;IAED;;;OAGG;IACH,mBAAmB,GAAG,CAAC,KAAY,EAAQ,EAAE;QAC3C,IAAI,CAAC,UAAU,CAAC,KAAK,CACnB,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,kCAAkC,CAAC,EACrE,+CAA+C,EAC/C,KAAK,CACN,CAAC;QACF,IAAI,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC7D,CAAC,CAAC;IAEF;;OAEG;IACH,mBAAmB,GACjB,CAAC,QAA6B,EAAgB,EAAE,CAChD,GAAS,EAAE;QACT,QAAQ,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAC7C,CAAC,CAAC;CACL"}
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { DocumentationEntry } from './DocumentationService.js';
|
|
17
17
|
import type { GenericLegendApplicationStore } from './ApplicationStore.js';
|
|
18
|
-
import { type MarkdownText, ActionState } from '@finos/legend-shared';
|
|
19
|
-
import { FuzzySearchAdvancedConfigState } from './shared/FuzzySearchAdvancedConfigState.js';
|
|
18
|
+
import { type MarkdownText, ActionState, FuzzySearchAdvancedConfigState } from '@finos/legend-shared';
|
|
20
19
|
export declare enum VIRTUAL_ASSISTANT_TAB {
|
|
21
20
|
SEARCH = "SEARCH",
|
|
22
21
|
CONTEXTUAL_SUPPORT = "CONTEXTUAL_SUPPORT"
|
|
@@ -71,7 +70,8 @@ export declare class AssistantService {
|
|
|
71
70
|
isOverSearchLimit: boolean;
|
|
72
71
|
constructor(applicationStore: GenericLegendApplicationStore);
|
|
73
72
|
get currentContextualDocumentationEntry(): VirtualAssistantContextualDocumentationEntry | undefined;
|
|
74
|
-
openDocumentationEntry(
|
|
73
|
+
openDocumentationEntry(key: string): void;
|
|
74
|
+
openDocumentationEntryLink(key: string): void;
|
|
75
75
|
setIsHidden(val: boolean): void;
|
|
76
76
|
hideAssistant(): void;
|
|
77
77
|
toggleAssistant(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssistantService.d.ts","sourceRoot":"","sources":["../../src/stores/AssistantService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EACL,KAAK,YAAY,EAIjB,WAAW,
|
|
1
|
+
{"version":3,"file":"AssistantService.d.ts","sourceRoot":"","sources":["../../src/stores/AssistantService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EACL,KAAK,YAAY,EAIjB,WAAW,EAEX,8BAA8B,EAC/B,MAAM,sBAAsB,CAAC;AAE9B,oBAAY,qBAAqB;IAC/B,MAAM,WAAW;IACjB,kBAAkB,uBAAuB;CAC1C;AAED,eAAO,MAAM,kCAAkC,MAAM,CAAC;AAEtD,qBAAa,kCAAkC;IAC7C,IAAI,SAAU;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAAC;IAC5C,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,MAAM,UAAS;gBAEH,QAAQ,EAAE,kBAAkB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,aAAa,IAAI,IAAI;IAKrB,eAAe,IAAI,IAAI;IASvB,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI7B,cAAc,CAAC,GAAG,EAAE,qBAAqB,GAAG,IAAI;IAIhD,qBAAqB,IAAI,IAAI;IAI7B,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIhC,WAAW,IAAI,IAAI;IAMnB,MAAM,IAAI,IAAI;IAiCd,8BAA8B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;CAGnD"}
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { action, makeObservable, observable, computed } from 'mobx';
|
|
17
|
-
import { guaranteeNonEmptyString, uuid, isNonNullable, ActionState, FuzzySearchEngine, } from '@finos/legend-shared';
|
|
18
|
-
import { FuzzySearchAdvancedConfigState } from './shared/FuzzySearchAdvancedConfigState.js';
|
|
17
|
+
import { guaranteeNonEmptyString, uuid, isNonNullable, ActionState, FuzzySearchEngine, FuzzySearchAdvancedConfigState, } from '@finos/legend-shared';
|
|
19
18
|
export var VIRTUAL_ASSISTANT_TAB;
|
|
20
19
|
(function (VIRTUAL_ASSISTANT_TAB) {
|
|
21
20
|
VIRTUAL_ASSISTANT_TAB["SEARCH"] = "SEARCH";
|
|
@@ -34,7 +33,7 @@ export class VirtualAssistantDocumentationEntry {
|
|
|
34
33
|
isOpen: observable,
|
|
35
34
|
setIsOpen: action,
|
|
36
35
|
});
|
|
37
|
-
this.documentationKey = docEntry.
|
|
36
|
+
this.documentationKey = docEntry.key;
|
|
38
37
|
this.title = guaranteeNonEmptyString(docEntry.title);
|
|
39
38
|
this.content = docEntry.markdownText ?? docEntry.text;
|
|
40
39
|
this.url = docEntry.url;
|
|
@@ -76,7 +75,7 @@ export class AssistantService {
|
|
|
76
75
|
* This key is used to allow programmatic re-rendering of the assistant panel
|
|
77
76
|
*/
|
|
78
77
|
panelRenderingKey = uuid();
|
|
79
|
-
isHidden =
|
|
78
|
+
isHidden = true; // hide by default unless specified by the application to show
|
|
80
79
|
isOpen = false;
|
|
81
80
|
selectedTab = VIRTUAL_ASSISTANT_TAB.SEARCH;
|
|
82
81
|
currentDocumentationEntry;
|
|
@@ -160,18 +159,27 @@ export class AssistantService {
|
|
|
160
159
|
.map((entry) => new VirtualAssistantDocumentationEntry(entry)))
|
|
161
160
|
: undefined;
|
|
162
161
|
}
|
|
163
|
-
openDocumentationEntry(
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
.find((entry) => entry._documentationKey === docKey);
|
|
167
|
-
if (matchingDocEntry) {
|
|
162
|
+
openDocumentationEntry(key) {
|
|
163
|
+
const entry = this.applicationStore.documentationService.getDocEntry(key);
|
|
164
|
+
if (entry) {
|
|
168
165
|
this.setIsOpen(true);
|
|
169
166
|
this.setIsHidden(false);
|
|
170
|
-
this.currentDocumentationEntry = new VirtualAssistantDocumentationEntry(
|
|
167
|
+
this.currentDocumentationEntry = new VirtualAssistantDocumentationEntry(entry);
|
|
171
168
|
this.currentDocumentationEntry.setIsOpen(true);
|
|
172
169
|
this.resetSearch();
|
|
173
170
|
}
|
|
174
171
|
}
|
|
172
|
+
openDocumentationEntryLink(key) {
|
|
173
|
+
const entry = this.applicationStore.documentationService.getDocEntry(key);
|
|
174
|
+
if (entry) {
|
|
175
|
+
if (shouldDisplayVirtualAssistantDocumentationEntry(entry)) {
|
|
176
|
+
this.openDocumentationEntry(entry.key);
|
|
177
|
+
}
|
|
178
|
+
else if (entry.url) {
|
|
179
|
+
this.applicationStore.navigationService.navigator.visitAddress(entry.url);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
175
183
|
setIsHidden(val) {
|
|
176
184
|
this.isHidden = val;
|
|
177
185
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssistantService.js","sourceRoot":"","sources":["../../src/stores/AssistantService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GA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E,CAAC;IAC9B,CAAC;IAED,8BAA8B,CAAC,GAAY;QACzC,IAAI,CAAC,2BAA2B,GAAG,GAAG,CAAC;IACzC,CAAC;CACF"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { LogEvent } from '@finos/legend-shared';
|
|
17
17
|
import { action, makeObservable, observable } from 'mobx';
|
|
18
|
-
import { APPLICATION_EVENT } from '../
|
|
18
|
+
import { APPLICATION_EVENT } from '../__lib__/LegendApplicationEvent.js';
|
|
19
19
|
export const collectKeyedCommandConfigEntriesFromConfig = (rawEntries) => Object.entries(rawEntries).map((entry) => ({
|
|
20
20
|
key: entry[0],
|
|
21
21
|
content: entry[1],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandService.js","sourceRoot":"","sources":["../../src/stores/CommandService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CommandService.js","sourceRoot":"","sources":["../../src/stores/CommandService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AA0BzE,MAAM,CAAC,MAAM,0CAA0C,GAAG,CACxD,UAA8C,EACnB,EAAE,CAC7B,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACzC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IACb,OAAO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","sourceRoot":"","sources":["../../src/stores/Core_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AAMvG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,uBAAuB,EACvB,KAAK,sBAAsB,EAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Core_LegendApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/stores/Core_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AAMvG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,uBAAuB,EACvB,KAAK,sBAAsB,EAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,qBAAqB,CAAC;AAI7B,qBAAa,4BAA6B,SAAQ,uBAAuB;IACvE,MAAM,CAAC,IAAI,SAA4C;;IAMvD,OAAO,CACL,aAAa,EAAE,8BAA8B,CAAC,uBAAuB,CAAC,GACrE,IAAI;IAIE,yBAAyB,IAAI,sBAAsB,EAAE;IAkBrD,mBAAmB,IAAI,UAAU,EAAE;IAInC,mCAAmC,IAAI,yBAAyB,EAAE;CAK5E"}
|
|
@@ -14,60 +14,12 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import packageJson from '../../package.json';
|
|
17
|
-
import { LEGEND_APPLICATION_SETTING_CONFIG } from '../
|
|
18
|
-
import { HIGH_CONTRAST_LIGHT_COLOR_THEME, LEGACY_LIGHT_COLOR_THEME, } from '../
|
|
17
|
+
import { LEGEND_APPLICATION_SETTING_CONFIG } from '../__lib__/LegendApplicationSetting.js';
|
|
18
|
+
import { HIGH_CONTRAST_LIGHT_COLOR_THEME, LEGACY_LIGHT_COLOR_THEME, } from '../__lib__/LegendApplicationTheme.js';
|
|
19
19
|
import { LegendApplicationPlugin, } from './LegendApplicationPlugin.js';
|
|
20
20
|
import { collectSettingConfigurationEntriesFromConfig, } from './SettingService.js';
|
|
21
21
|
import { configure as configureMobx } from 'mobx';
|
|
22
|
-
import { KeyCode, KeyMod, editor as monacoEditorAPI } from 'monaco-editor';
|
|
23
|
-
import { MONOSPACED_FONT_FAMILY } from '../const.js';
|
|
24
|
-
import { LogEvent } from '@finos/legend-shared';
|
|
25
|
-
import { APPLICATION_EVENT } from '../application/LegendApplicationEvent.js';
|
|
26
22
|
import { configureComponents } from '@finos/legend-art';
|
|
27
|
-
const configureCodeEditorComponent = async (applicationStore) => {
|
|
28
|
-
/**
|
|
29
|
-
* Since we use a custom fonts for text-editor, we want to make sure the font is loaded before any text-editor is opened
|
|
30
|
-
* this is to ensure
|
|
31
|
-
*/
|
|
32
|
-
const fontLoadFailureErrorMessage = `Monospaced font '${MONOSPACED_FONT_FAMILY}' has not been loaded properly, text editor display problems might occur`;
|
|
33
|
-
await Promise.all([400, 700].map((weight) => document.fonts.load(`${weight} 1em ${MONOSPACED_FONT_FAMILY}`)))
|
|
34
|
-
.then(() => {
|
|
35
|
-
if (document.fonts.check(`1em ${MONOSPACED_FONT_FAMILY}`)) {
|
|
36
|
-
monacoEditorAPI.remeasureFonts();
|
|
37
|
-
applicationStore.logService.info(LogEvent.create(APPLICATION_EVENT.LOAD_TEXT_EDITOR_FONT__SUCCESS), `Monospaced font '${MONOSPACED_FONT_FAMILY}' has been loaded`);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
applicationStore.logService.error(LogEvent.create(APPLICATION_EVENT.APPLICATION_SETUP__FAILURE), fontLoadFailureErrorMessage);
|
|
41
|
-
}
|
|
42
|
-
})
|
|
43
|
-
.catch(() => applicationStore.logService.error(LogEvent.create(APPLICATION_EVENT.APPLICATION_SETUP__FAILURE), fontLoadFailureErrorMessage));
|
|
44
|
-
// override native hotkeys supported by monaco-editor
|
|
45
|
-
// here we map these keys to a dummy command that would just dispatch the key combination
|
|
46
|
-
// to the application keyboard shortcut service, effectively bypassing the command associated
|
|
47
|
-
// with the native keybinding
|
|
48
|
-
const OVERRIDE_DEFAULT_KEYBINDING_COMMAND = 'legend.code-editor.override-default-keybinding';
|
|
49
|
-
monacoEditorAPI.registerCommand(OVERRIDE_DEFAULT_KEYBINDING_COMMAND, (accessor, ...args) => {
|
|
50
|
-
applicationStore.keyboardShortcutsService.dispatch(args[0]);
|
|
51
|
-
});
|
|
52
|
-
const hotkeyMapping = [
|
|
53
|
-
[KeyCode.F1, 'F1'],
|
|
54
|
-
[KeyCode.F8, 'F8'],
|
|
55
|
-
[KeyCode.F9, 'F9'],
|
|
56
|
-
[KeyMod.WinCtrl | KeyCode.KeyG, 'Control+KeyG'],
|
|
57
|
-
[KeyMod.WinCtrl | KeyCode.KeyB, 'Control+KeyB'],
|
|
58
|
-
[KeyMod.WinCtrl | KeyCode.KeyO, 'Control+KeyO'],
|
|
59
|
-
[KeyMod.WinCtrl | KeyCode.KeyD, 'Control+KeyD'],
|
|
60
|
-
[KeyMod.WinCtrl | KeyCode.KeyP, 'Control+KeyP'],
|
|
61
|
-
[KeyMod.Shift | KeyCode.F10, 'Shift+F10'],
|
|
62
|
-
[KeyMod.WinCtrl | KeyCode.F2, 'Control+F2'],
|
|
63
|
-
[KeyMod.WinCtrl | KeyCode.F12, 'Control+F12'], // go-to definition
|
|
64
|
-
];
|
|
65
|
-
monacoEditorAPI.addKeybindingRules(hotkeyMapping.map(([nativeCodeEditorKeyBinding, keyCombination]) => ({
|
|
66
|
-
keybinding: nativeCodeEditorKeyBinding,
|
|
67
|
-
command: OVERRIDE_DEFAULT_KEYBINDING_COMMAND,
|
|
68
|
-
commandArgs: keyCombination,
|
|
69
|
-
})));
|
|
70
|
-
};
|
|
71
23
|
class Core_LegendApplicationPlugin extends LegendApplicationPlugin {
|
|
72
24
|
static NAME = packageJson.extensions.applicationPlugin;
|
|
73
25
|
constructor() {
|
|
@@ -87,8 +39,6 @@ class Core_LegendApplicationPlugin extends LegendApplicationPlugin {
|
|
|
87
39
|
// See https://mobx.js.org/configuration.html#enforceactions
|
|
88
40
|
enforceActions: 'observed',
|
|
89
41
|
});
|
|
90
|
-
// configure code editor
|
|
91
|
-
await configureCodeEditorComponent(applicationStore);
|
|
92
42
|
// configure UI components
|
|
93
43
|
configureComponents();
|
|
94
44
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Core_LegendApplicationPlugin.js","sourceRoot":"","sources":["../../src/stores/Core_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,iCAAiC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Core_LegendApplicationPlugin.js","sourceRoot":"","sources":["../../src/stores/Core_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EACL,+BAA+B,EAC/B,wBAAwB,GACzB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EACL,uBAAuB,GAExB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,4CAA4C,GAE7C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAa,4BAA6B,SAAQ,uBAAuB;IACvE,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC,iBAAiB,CAAC;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