@finos/legend-application 11.0.2 → 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 +4 -2
- package/lib/application/LegendApplicationPluginManager.d.ts.map +1 -1
- package/lib/application/LegendApplicationPluginManager.js.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 +29 -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 +11 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +11 -6
- package/lib/index.js.map +1 -1
- package/lib/package.json +97 -0
- 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 +1 -1
- package/lib/stores/ApplicationEvent.d.ts.map +1 -1
- package/lib/stores/ApplicationEvent.js +1 -1
- package/lib/stores/ApplicationEvent.js.map +1 -1
- package/lib/stores/ApplicationStore.d.ts +30 -49
- package/lib/stores/ApplicationStore.d.ts.map +1 -1
- package/lib/stores/ApplicationStore.js +54 -169
- 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/ApplicationTelemetry.d.ts +15 -16
- package/lib/stores/ApplicationTelemetry.d.ts.map +1 -1
- package/lib/stores/ApplicationTelemetry.js +22 -2
- package/lib/stores/ApplicationTelemetry.js.map +1 -1
- package/lib/stores/ClipboardService.d.ts +22 -0
- package/lib/stores/ClipboardService.d.ts.map +1 -0
- package/{src/stores/EventService.ts → lib/stores/ClipboardService.js} +13 -16
- 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 +56 -0
- package/lib/stores/TelemetryService.d.ts.map +1 -0
- package/lib/stores/TelemetryService.js +60 -0
- package/lib/stores/TelemetryService.js.map +1 -0
- package/lib/stores/TimeService.d.ts +33 -0
- package/lib/stores/TimeService.d.ts.map +1 -0
- package/lib/stores/TimeService.js +56 -0
- package/lib/stores/TimeService.js.map +1 -0
- package/lib/stores/event/EventService.d.ts +37 -0
- package/lib/stores/event/EventService.d.ts.map +1 -0
- package/lib/stores/{EventService.js → event/EventService.js} +6 -0
- package/lib/stores/event/EventService.js.map +1 -0
- package/lib/stores/{EventService.d.ts → event/IframeEventNotifierPlugin.d.ts} +4 -5
- package/lib/stores/event/IframeEventNotifierPlugin.d.ts.map +1 -0
- package/lib/stores/event/IframeEventNotifierPlugin.js +34 -0
- 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} +6 -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/Terminal.d.ts +2 -0
- package/lib/stores/terminal/Terminal.d.ts.map +1 -1
- package/lib/stores/terminal/Terminal.js.map +1 -1
- package/lib/stores/terminal/XTerm.d.ts +3 -0
- package/lib/stores/terminal/XTerm.d.ts.map +1 -1
- package/lib/stores/terminal/XTerm.js +36 -3
- package/lib/stores/terminal/XTerm.js.map +1 -1
- package/package.json +13 -10
- package/src/application/LegendApplication.tsx +1 -1
- package/src/application/LegendApplicationPluginManager.tsx +9 -5
- 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 +38 -6
- 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 +11 -6
- package/src/stores/AlertService.ts +47 -3
- package/src/stores/ApplicationEvent.ts +2 -1
- package/src/stores/ApplicationStore.ts +69 -261
- package/src/stores/ApplicationStoreTestUtils.ts +1 -1
- package/src/stores/ApplicationTelemetry.ts +50 -21
- 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 +96 -0
- package/src/stores/TimeService.ts +66 -0
- package/src/stores/event/EventService.ts +57 -0
- package/src/stores/event/IframeEventNotifierPlugin.ts +42 -0
- 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} +6 -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/Terminal.ts +3 -0
- package/src/stores/terminal/XTerm.ts +43 -3
- package/tsconfig.json +19 -6
- package/tsconfig.package.json +38 -0
- 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/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/{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/{WebApplicationRouter.ts → navigation/WebApplicationRouter.ts} +0 -0
|
@@ -13,194 +13,89 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { TracerService,
|
|
17
|
-
import { action, makeObservable, observable } from 'mobx';
|
|
16
|
+
import { TracerService, LogService, LogEvent, uuid, } from '@finos/legend-shared';
|
|
18
17
|
import { APPLICATION_EVENT } from './ApplicationEvent.js';
|
|
19
18
|
import { DocumentationService } from './DocumentationService.js';
|
|
20
19
|
import { AssistantService } from './AssistantService.js';
|
|
21
|
-
import { EventService } from './EventService.js';
|
|
20
|
+
import { EventService } from './event/EventService.js';
|
|
22
21
|
import { ApplicationNavigationContextService } from './ApplicationNavigationContextService.js';
|
|
23
|
-
import {
|
|
22
|
+
import { CommandService } from './CommandService.js';
|
|
24
23
|
import { KeyboardShortcutsService } from './KeyboardShortcutsService.js';
|
|
25
24
|
import { TerminalService } from './TerminalService.js';
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
25
|
+
import { AlertService } from './AlertService.js';
|
|
26
|
+
import { NotificationService } from './NotificationService.js';
|
|
27
|
+
import { IdentityService } from './IdentityService.js';
|
|
28
|
+
import { StorageService } from './storage/StorageService.js';
|
|
29
|
+
import { TelemetryService } from './TelemetryService.js';
|
|
30
|
+
import { TimeService } from './TimeService.js';
|
|
31
|
+
import { LayoutService } from './LayoutService.js';
|
|
32
|
+
import { ClipboardService } from './ClipboardService.js';
|
|
33
|
+
import { NavigationService } from './navigation/NavigationService.js';
|
|
28
34
|
export class ApplicationStore {
|
|
35
|
+
uuid = uuid();
|
|
29
36
|
config;
|
|
30
37
|
pluginManager;
|
|
31
|
-
//
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
actionAlertInfo;
|
|
40
|
-
// TODO: consider renaming this to `LogService`
|
|
41
|
-
log = new Log();
|
|
38
|
+
// core
|
|
39
|
+
identityService;
|
|
40
|
+
storageService;
|
|
41
|
+
timeService = new TimeService();
|
|
42
|
+
commandService;
|
|
43
|
+
keyboardShortcutsService;
|
|
44
|
+
layoutService = new LayoutService();
|
|
45
|
+
clipboardService;
|
|
42
46
|
terminalService;
|
|
43
|
-
|
|
47
|
+
logService = new LogService();
|
|
48
|
+
navigationService;
|
|
49
|
+
navigationContextService;
|
|
50
|
+
// support
|
|
44
51
|
documentationService;
|
|
45
52
|
assistantService;
|
|
46
|
-
//
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
// TODO: config
|
|
54
|
-
// See https://github.com/finos/legend-studio/issues/407
|
|
55
|
-
// backdrop
|
|
56
|
-
backdropContainerElementID;
|
|
57
|
-
showBackdrop = false;
|
|
58
|
-
// theme
|
|
53
|
+
// event
|
|
54
|
+
alertService;
|
|
55
|
+
notificationService;
|
|
56
|
+
eventService;
|
|
57
|
+
telemetryService;
|
|
58
|
+
tracerService;
|
|
59
|
+
constructor(config,
|
|
59
60
|
/**
|
|
60
|
-
* NOTE:
|
|
61
|
-
* we
|
|
62
|
-
* See https://github.com/finos/legend-studio/issues/264
|
|
61
|
+
* NOTE: as of now, we only support web environment, we will not provide a generic `ApplicationNavigator`
|
|
62
|
+
* This is something we need to think about when we potentially move to another platform
|
|
63
63
|
*/
|
|
64
|
-
|
|
65
|
-
constructor(config, navigator, pluginManager) {
|
|
66
|
-
makeObservable(this, {
|
|
67
|
-
currentUser: observable,
|
|
68
|
-
notification: observable,
|
|
69
|
-
blockingAlertInfo: observable,
|
|
70
|
-
actionAlertInfo: observable,
|
|
71
|
-
TEMPORARY__isLightThemeEnabled: observable,
|
|
72
|
-
backdropContainerElementID: observable,
|
|
73
|
-
showBackdrop: observable,
|
|
74
|
-
setBackdropContainerElementID: action,
|
|
75
|
-
setShowBackdrop: action,
|
|
76
|
-
setBlockingAlert: action,
|
|
77
|
-
setActionAlertInfo: action,
|
|
78
|
-
setCurrentUser: action,
|
|
79
|
-
setNotification: action,
|
|
80
|
-
notify: action,
|
|
81
|
-
notifySuccess: action,
|
|
82
|
-
notifyWarning: action,
|
|
83
|
-
notifyIllegalState: action,
|
|
84
|
-
notifyError: action,
|
|
85
|
-
TEMPORARY__setIsLightThemeEnabled: action,
|
|
86
|
-
});
|
|
64
|
+
navigator, pluginManager) {
|
|
87
65
|
this.config = config;
|
|
88
|
-
this.navigator = navigator;
|
|
89
66
|
this.pluginManager = pluginManager;
|
|
67
|
+
this.timeService = new TimeService();
|
|
68
|
+
this.layoutService = new LayoutService();
|
|
90
69
|
// NOTE: set the logger first so other loading could use the configured logger
|
|
91
|
-
this.
|
|
70
|
+
this.logService = new LogService();
|
|
71
|
+
this.logService.registerPlugins(pluginManager.getLoggerPlugins());
|
|
72
|
+
this.identityService = new IdentityService(this);
|
|
73
|
+
this.storageService = new StorageService(this);
|
|
74
|
+
this.clipboardService = new ClipboardService(this);
|
|
92
75
|
this.terminalService = new TerminalService(this);
|
|
76
|
+
this.commandService = new CommandService(this);
|
|
77
|
+
this.keyboardShortcutsService = new KeyboardShortcutsService(this);
|
|
78
|
+
this.navigationService = new NavigationService(navigator);
|
|
93
79
|
this.navigationContextService = new ApplicationNavigationContextService(this);
|
|
94
80
|
this.documentationService = new DocumentationService(this);
|
|
95
81
|
this.assistantService = new AssistantService(this);
|
|
82
|
+
this.alertService = new AlertService(this);
|
|
83
|
+
this.notificationService = new NotificationService();
|
|
84
|
+
this.eventService = new EventService();
|
|
85
|
+
this.eventService.registerEventNotifierPlugins(pluginManager.getEventNotifierPlugins());
|
|
86
|
+
this.telemetryService = new TelemetryService(this);
|
|
96
87
|
this.telemetryService.registerPlugins(pluginManager.getTelemetryServicePlugins());
|
|
97
|
-
this.telemetryService.
|
|
98
|
-
this.
|
|
99
|
-
this.keyboardShortcutsService = new KeyboardShortcutsService(this);
|
|
88
|
+
this.telemetryService.setup();
|
|
89
|
+
this.tracerService = new TracerService();
|
|
100
90
|
this.tracerService.registerPlugins(pluginManager.getTracerServicePlugins());
|
|
101
|
-
this.eventService.registerEventNotifierPlugins(pluginManager.getEventNotifierPlugins());
|
|
102
|
-
}
|
|
103
|
-
TEMPORARY__setIsLightThemeEnabled(val) {
|
|
104
|
-
this.TEMPORARY__isLightThemeEnabled = val;
|
|
105
91
|
}
|
|
106
|
-
/**
|
|
107
|
-
* Change the ID used to find the base element to mount the backdrop on.
|
|
108
|
-
* This is useful when we want to use backdrop with embedded application which
|
|
109
|
-
* requires its own backdrop usage.
|
|
110
|
-
*/
|
|
111
|
-
setBackdropContainerElementID(val) {
|
|
112
|
-
this.backdropContainerElementID = val;
|
|
113
|
-
}
|
|
114
|
-
setShowBackdrop(val) {
|
|
115
|
-
this.showBackdrop = val;
|
|
116
|
-
}
|
|
117
|
-
setBlockingAlert(alertInfo) {
|
|
118
|
-
if (alertInfo) {
|
|
119
|
-
this.keyboardShortcutsService.blockGlobalHotkeys();
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
this.keyboardShortcutsService.unblockGlobalHotkeys();
|
|
123
|
-
}
|
|
124
|
-
this.blockingAlertInfo = alertInfo;
|
|
125
|
-
}
|
|
126
|
-
setActionAlertInfo(alertInfo) {
|
|
127
|
-
if (this.actionAlertInfo && alertInfo) {
|
|
128
|
-
this.notifyIllegalState('Action alert is stacked: new alert is invoked while another one is being displayed');
|
|
129
|
-
}
|
|
130
|
-
if (alertInfo) {
|
|
131
|
-
this.keyboardShortcutsService.blockGlobalHotkeys();
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
this.keyboardShortcutsService.unblockGlobalHotkeys();
|
|
135
|
-
}
|
|
136
|
-
this.actionAlertInfo = alertInfo;
|
|
137
|
-
}
|
|
138
|
-
setCurrentUser(val) {
|
|
139
|
-
this.currentUser = val;
|
|
140
|
-
}
|
|
141
|
-
setNotification(notification) {
|
|
142
|
-
this.notification = notification;
|
|
143
|
-
}
|
|
144
|
-
notify(message, actions, autoHideDuration) {
|
|
145
|
-
this.setNotification(new Notification(NOTIFCATION_SEVERITY.INFO, message, actions ?? [], autoHideDuration === null
|
|
146
|
-
? undefined
|
|
147
|
-
: autoHideDuration ?? DEFAULT_NOTIFICATION_HIDE_TIME));
|
|
148
|
-
}
|
|
149
|
-
notifySuccess(message, actions, autoHideDuration) {
|
|
150
|
-
this.setNotification(new Notification(NOTIFCATION_SEVERITY.SUCCESS, message, actions ?? [], autoHideDuration === null
|
|
151
|
-
? undefined
|
|
152
|
-
: autoHideDuration ?? DEFAULT_NOTIFICATION_HIDE_TIME));
|
|
153
|
-
}
|
|
154
|
-
notifyWarning(content, actions, autoHideDuration) {
|
|
155
|
-
this.setNotification(new Notification(NOTIFCATION_SEVERITY.WARNING, content instanceof Error ? content.message : content, actions ?? [], autoHideDuration === null
|
|
156
|
-
? undefined
|
|
157
|
-
: autoHideDuration ?? DEFAULT_NOTIFICATION_HIDE_TIME));
|
|
158
|
-
}
|
|
159
|
-
notifyIllegalState(message, actions, autoHideDuration) {
|
|
160
|
-
this.setNotification(new Notification(NOTIFCATION_SEVERITY.ILEGAL_STATE, isString(message) ? `[PLEASE NOTIFY DEVELOPER] ${message}` : message, actions ?? [], autoHideDuration === null
|
|
161
|
-
? undefined
|
|
162
|
-
: autoHideDuration ?? DEFAULT_NOTIFICATION_HIDE_TIME));
|
|
163
|
-
}
|
|
164
|
-
notifyError(content, actions) {
|
|
165
|
-
let message;
|
|
166
|
-
if (content instanceof ApplicationError) {
|
|
167
|
-
message = content.detail;
|
|
168
|
-
}
|
|
169
|
-
else if (content instanceof Error) {
|
|
170
|
-
message = content.message;
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
assertTrue(isString(content), `Can't display error`);
|
|
174
|
-
message = content;
|
|
175
|
-
}
|
|
176
|
-
if (message) {
|
|
177
|
-
this.setNotification(new Notification(NOTIFCATION_SEVERITY.ERROR, message, actions ?? [], undefined));
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* This function creates a more user-friendly way to throw error in the UI. Rather than crashing the whole app, we will
|
|
182
|
-
* just notify and replacing the value should get with an alternative (e.g. `undefined`). A good use-case for this
|
|
183
|
-
* is where we would not expect an error to throw (i.e. `IllegalStateError`), but we want to be sure that if the error
|
|
184
|
-
* ever occurs, it still shows very apparently in the UI, as such, printing out in the console is not good enough,
|
|
185
|
-
* but crashing the app is bad too, so this is a good balance.
|
|
186
|
-
*/
|
|
187
|
-
notifyAndReturnAlternativeOnError = (fn, alternative) => {
|
|
188
|
-
try {
|
|
189
|
-
return fn();
|
|
190
|
-
}
|
|
191
|
-
catch (error) {
|
|
192
|
-
assertErrorThrown(error);
|
|
193
|
-
this.notifyIllegalState(error.message);
|
|
194
|
-
return alternative;
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
92
|
/**
|
|
198
93
|
* When we call store/state functions from the component, we should handle error thrown at these functions instead
|
|
199
94
|
* of throwing them to the UI. This enforces that by throwing `IllegalStateError`
|
|
200
95
|
*/
|
|
201
96
|
alertUnhandledError = (error) => {
|
|
202
|
-
this.
|
|
203
|
-
this.notifyIllegalState(error.message);
|
|
97
|
+
this.logService.error(LogEvent.create(APPLICATION_EVENT.ILLEGAL_APPLICATION_STATE_OCCURRED), 'Encountered unhandled error in component tree', error);
|
|
98
|
+
this.notificationService.notifyIllegalState(error.message);
|
|
204
99
|
};
|
|
205
100
|
/**
|
|
206
101
|
* Guarantee that the action being used by the component does not throw unhandled errors
|
|
@@ -208,15 +103,5 @@ export class ApplicationStore {
|
|
|
208
103
|
guardUnhandledError = (actionFn) => () => {
|
|
209
104
|
actionFn().catch(this.alertUnhandledError);
|
|
210
105
|
};
|
|
211
|
-
async copyTextToClipboard(text) {
|
|
212
|
-
// This is a much cleaner way which requires HTTPS
|
|
213
|
-
// See https://developers.google.com/web/updates/2018/03/clipboardapi
|
|
214
|
-
await navigator.clipboard.writeText(text).catch((error) => {
|
|
215
|
-
this.notifyError(error);
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
notifyUnsupportedFeature(featureName) {
|
|
219
|
-
this.notifyWarning(`Unsupported feature: ${featureName}`);
|
|
220
|
-
}
|
|
221
106
|
}
|
|
222
107
|
//# sourceMappingURL=ApplicationStore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStore.js","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
|
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,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAA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
import { createBrowserHistory } from 'history';
|
|
18
|
-
import { WebApplicationNavigator } from './WebApplicationNavigator.js';
|
|
18
|
+
import { WebApplicationNavigator } from './navigation/WebApplicationNavigator.js';
|
|
19
19
|
import { LegendApplicationConfig } from '../application/LegendApplicationConfig.js';
|
|
20
20
|
import { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js';
|
|
21
21
|
export const TEST_DATA__applicationVersion = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStoreTestUtils.js","sourceRoot":"","sources":["../../src/stores/ApplicationStoreTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ApplicationStoreTestUtils.js","sourceRoot":"","sources":["../../src/stores/ApplicationStoreTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AASlG,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,SAAS,EAAE,0BAA0B;IACrC,OAAO,EAAE,cAAc;IACvB,SAAS,EAAE,gBAAgB;CAC5B,CAAC;AAEF,MAAM,6BAA8B,SAAQ,uBAAuB;CAAG;AAEtE,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC/C,eAAe,GAAG,EAAE,EACK,EAAE;IAC3B,MAAM,MAAM,GAAG,IAAI,6B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
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type
|
|
17
|
-
type
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
version: string;
|
|
21
|
-
env: string;
|
|
22
|
-
};
|
|
23
|
-
browser: {
|
|
24
|
-
userAgent: string;
|
|
25
|
-
};
|
|
26
|
-
screen: {
|
|
27
|
-
height: number;
|
|
28
|
-
width: number;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
16
|
+
import { type GraphManagerOperationReport } from '@finos/legend-graph';
|
|
17
|
+
import type { TimingsRecord } from '@finos/legend-shared';
|
|
18
|
+
import type { GenericLegendApplicationStore } from './ApplicationStore.js';
|
|
19
|
+
import type { TelemetryService } from './TelemetryService.js';
|
|
31
20
|
type ApplicationContextAccessed_TelemetryData = {
|
|
32
21
|
key: string;
|
|
33
22
|
};
|
|
34
23
|
type VirtualAssistantDocumentationEntryAccessed_TelemetryData = {
|
|
35
24
|
key: string;
|
|
36
25
|
};
|
|
26
|
+
type GraphInitialized_TelemetryData = {
|
|
27
|
+
timings: TimingsRecord;
|
|
28
|
+
dependencies: GraphManagerOperationReport;
|
|
29
|
+
dependenciesCount: number;
|
|
30
|
+
graph: GraphManagerOperationReport;
|
|
31
|
+
generations?: GraphManagerOperationReport;
|
|
32
|
+
generationCount?: number;
|
|
33
|
+
};
|
|
37
34
|
export declare class ApplicationTelemetry {
|
|
38
|
-
static logEvent_ApplicationInitializationSucceeded(telemetryService: TelemetryService,
|
|
35
|
+
static logEvent_ApplicationInitializationSucceeded(telemetryService: TelemetryService, applicationStore: GenericLegendApplicationStore): void;
|
|
39
36
|
static logEvent_ApplicationContextAccessed(telemetryService: TelemetryService, data: ApplicationContextAccessed_TelemetryData): void;
|
|
40
37
|
static logEvent_VirtualAssistantDocumentationEntryAccessed(telemetryService: TelemetryService, data: VirtualAssistantDocumentationEntryAccessed_TelemetryData): void;
|
|
38
|
+
static logEvent_GraphInitializationSucceeded(telemetryService: TelemetryService, data: GraphInitialized_TelemetryData): void;
|
|
39
|
+
static logEvent_ApplicationUsageInterrupted(telemetryService: TelemetryService): void;
|
|
41
40
|
}
|
|
42
41
|
export {};
|
|
43
42
|
//# sourceMappingURL=ApplicationTelemetry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationTelemetry.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationTelemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ApplicationTelemetry.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationTelemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,KAAK,wCAAwC,GAAG;IAC9C,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,KAAK,wDAAwD,GAAG;IAC9D,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,KAAK,8BAA8B,GAAG;IACpC,OAAO,EAAE,aAAa,CAAC;IACvB,YAAY,EAAE,2BAA2B,CAAC;IAC1C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,2BAA2B,CAAC;IACnC,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,qBAAa,oBAAoB;IAC/B,MAAM,CAAC,2CAA2C,CAChD,gBAAgB,EAAE,gBAAgB,EAClC,gBAAgB,EAAE,6BAA6B,GAC9C,IAAI;IAiBP,MAAM,CAAC,mCAAmC,CACxC,gBAAgB,EAAE,gBAAgB,EAClC,IAAI,EAAE,wCAAwC,GAC7C,IAAI;IAOP,MAAM,CAAC,mDAAmD,CACxD,gBAAgB,EAAE,gBAAgB,EAClC,IAAI,EAAE,wDAAwD,GAC7D,IAAI;IAOP,MAAM,CAAC,qCAAqC,CAC1C,gBAAgB,EAAE,gBAAgB,EAClC,IAAI,EAAE,8BAA8B,GACnC,IAAI;IAOP,MAAM,CAAC,oCAAoC,CACzC,gBAAgB,EAAE,gBAAgB,GACjC,IAAI;CAMR"}
|
|
@@ -13,10 +13,24 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { GRAPH_MANAGER_EVENT, } from '@finos/legend-graph';
|
|
16
17
|
import { APPLICATION_EVENT } from './ApplicationEvent.js';
|
|
17
18
|
export class ApplicationTelemetry {
|
|
18
|
-
static logEvent_ApplicationInitializationSucceeded(telemetryService,
|
|
19
|
-
telemetryService.logEvent(APPLICATION_EVENT.APPLICATION_LOAD__SUCCESS,
|
|
19
|
+
static logEvent_ApplicationInitializationSucceeded(telemetryService, applicationStore) {
|
|
20
|
+
telemetryService.logEvent(APPLICATION_EVENT.APPLICATION_LOAD__SUCCESS, {
|
|
21
|
+
application: {
|
|
22
|
+
name: applicationStore.config.appName,
|
|
23
|
+
version: applicationStore.config.appVersion,
|
|
24
|
+
env: applicationStore.config.env,
|
|
25
|
+
},
|
|
26
|
+
browser: {
|
|
27
|
+
userAgent: navigator.userAgent,
|
|
28
|
+
},
|
|
29
|
+
screen: {
|
|
30
|
+
height: window.screen.height,
|
|
31
|
+
width: window.screen.width,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
20
34
|
}
|
|
21
35
|
static logEvent_ApplicationContextAccessed(telemetryService, data) {
|
|
22
36
|
telemetryService.logEvent(APPLICATION_EVENT.APPLICATION_CONTEXT__ACCESS, data);
|
|
@@ -24,5 +38,11 @@ export class ApplicationTelemetry {
|
|
|
24
38
|
static logEvent_VirtualAssistantDocumentationEntryAccessed(telemetryService, data) {
|
|
25
39
|
telemetryService.logEvent(APPLICATION_EVENT.VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS, data);
|
|
26
40
|
}
|
|
41
|
+
static logEvent_GraphInitializationSucceeded(telemetryService, data) {
|
|
42
|
+
telemetryService.logEvent(GRAPH_MANAGER_EVENT.INITIALIZE_GRAPH__SUCCESS, data);
|
|
43
|
+
}
|
|
44
|
+
static logEvent_ApplicationUsageInterrupted(telemetryService) {
|
|
45
|
+
telemetryService.logEvent(APPLICATION_EVENT.APPLICATION_USAGE__INTERRUPT, {});
|
|
46
|
+
}
|
|
27
47
|
}
|
|
28
48
|
//# sourceMappingURL=ApplicationTelemetry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationTelemetry.js","sourceRoot":"","sources":["../../src/stores/ApplicationTelemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"ApplicationTelemetry.js","sourceRoot":"","sources":["../../src/stores/ApplicationTelemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAqB1D,MAAM,OAAO,oBAAoB;IAC/B,MAAM,CAAC,2CAA2C,CAChD,gBAAkC,EAClC,gBAA+C;QAE/C,gBAAgB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,yBAAyB,EAAE;YACrE,WAAW,EAAE;gBACX,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,OAAO;gBACrC,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,UAAU;gBAC3C,GAAG,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG;aACjC;YACD,OAAO,EAAE;gBACP,SAAS,EAAE,SAAS,CAAC,SAAS;aAC/B;YACD,MAAM,EAAE;gBACN,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM;gBAC5B,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK;aAC3B;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,mCAAmC,CACxC,gBAAkC,EAClC,IAA8C;QAE9C,gBAAgB,CAAC,QAAQ,CACvB,iBAAiB,CAAC,2BAA2B,EAC7C,IAAI,CACL,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,mDAAmD,CACxD,gBAAkC,EAClC,IAA8D;QAE9D,gBAAgB,CAAC,QAAQ,CACvB,iBAAiB,CAAC,6CAA6C,EAC/D,IAAI,CACL,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,qCAAqC,CAC1C,gBAAkC,EAClC,IAAoC;QAEpC,gBAAgB,CAAC,QAAQ,CACvB,mBAAmB,CAAC,yBAAyB,EAC7C,IAAI,CACL,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,oCAAoC,CACzC,gBAAkC;QAElC,gBAAgB,CAAC,QAAQ,CACvB,iBAAiB,CAAC,4BAA4B,EAC9C,EAAE,CACH,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
import type { GenericLegendApplicationStore } from './ApplicationStore.js';
|
|
17
|
+
export declare class ClipboardService {
|
|
18
|
+
readonly applicationStore: GenericLegendApplicationStore;
|
|
19
|
+
constructor(applicationStore: GenericLegendApplicationStore);
|
|
20
|
+
copyTextToClipboard(text: string): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ClipboardService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClipboardService.d.ts","sourceRoot":"","sources":["../../src/stores/ClipboardService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAE3E,qBAAa,gBAAgB;IAC3B,QAAQ,CAAC,gBAAgB,EAAE,6BAA6B,CAAC;gBAE7C,gBAAgB,EAAE,6BAA6B;IAIrD,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAOvD"}
|
|
@@ -13,20 +13,17 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
notify(event: string, data: NotificationEventData): void {
|
|
30
|
-
this.notifierPlugins.forEach((plugin) => plugin.notify(event, data));
|
|
31
|
-
}
|
|
16
|
+
export class ClipboardService {
|
|
17
|
+
applicationStore;
|
|
18
|
+
constructor(applicationStore) {
|
|
19
|
+
this.applicationStore = applicationStore;
|
|
20
|
+
}
|
|
21
|
+
async copyTextToClipboard(text) {
|
|
22
|
+
// This is a much cleaner way which requires HTTPS
|
|
23
|
+
// See https://developers.google.com/web/updates/2018/03/clipboardapi
|
|
24
|
+
await navigator.clipboard.writeText(text).catch((error) => {
|
|
25
|
+
this.applicationStore.notificationService.notifyError(error);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
32
28
|
}
|
|
29
|
+
//# sourceMappingURL=ClipboardService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClipboardService.js","sourceRoot":"","sources":["../../src/stores/ClipboardService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,OAAO,gBAAgB;IAClB,gBAAgB,CAAgC;IAEzD,YAAY,gBAA+C;QACzD,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC3C,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,IAAY;QACpC,kDAAkD;QAClD,qEAAqE;QACrE,MAAM,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;YACxD,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -43,7 +43,7 @@ export type Command = {
|
|
|
43
43
|
trigger?: () => boolean;
|
|
44
44
|
action?: (args?: CommandArguments) => void;
|
|
45
45
|
};
|
|
46
|
-
export declare class
|
|
46
|
+
export declare class CommandService {
|
|
47
47
|
readonly applicationStore: GenericLegendApplicationStore;
|
|
48
48
|
readonly commandRegistry: Map<string, Command>;
|
|
49
49
|
constructor(applicationStore: GenericLegendApplicationStore);
|
|
@@ -51,4 +51,4 @@ export declare class CommandCenter {
|
|
|
51
51
|
deregisterCommand(commandKey: string): void;
|
|
52
52
|
runCommand(commandKey: string, args?: CommandArguments): boolean;
|
|
53
53
|
}
|
|
54
|
-
//# sourceMappingURL=
|
|
54
|
+
//# sourceMappingURL=CommandService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandService.d.ts","sour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AAU,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB,GAAG,OAAO;CAQjE"}
|
|
@@ -20,7 +20,7 @@ export const collectKeyedCommandConfigEntriesFromConfig = (rawEntries) => Object
|
|
|
20
20
|
key: entry[0],
|
|
21
21
|
content: entry[1],
|
|
22
22
|
}));
|
|
23
|
-
export class
|
|
23
|
+
export class CommandService {
|
|
24
24
|
applicationStore;
|
|
25
25
|
commandRegistry = new Map();
|
|
26
26
|
constructor(applicationStore) {
|
|
@@ -34,7 +34,7 @@ export class CommandCenter {
|
|
|
34
34
|
registerCommand(command) {
|
|
35
35
|
const commandKey = command.key;
|
|
36
36
|
if (this.commandRegistry.has(commandKey)) {
|
|
37
|
-
this.applicationStore.
|
|
37
|
+
this.applicationStore.logService.warn(LogEvent.create(APPLICATION_EVENT.APPLICATION_COMMAND_CENTER_REGISTRATION__FAILURE), `Can't register command: command is already registered`);
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
this.commandRegistry.set(commandKey, command);
|
|
@@ -51,4 +51,4 @@ export class CommandCenter {
|
|
|
51
51
|
return false;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
//# sourceMappingURL=
|
|
54
|
+
//# sourceMappingURL=CommandService.js.map
|
|
@@ -0,0 +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,uBAAuB,CAAC;AAuB1D,MAAM,CAAC,MAAM,0CAA0C,GAAG,CACxD,UAA8C,EACnB,EAAE,CAC7B,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAA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CAAC;CACF"}
|
|
@@ -70,7 +70,7 @@ export class DocumentationService {
|
|
|
70
70
|
// NOTE: Entries specified natively will not override each other. This is to prevent entries from extensions
|
|
71
71
|
// accidentally overide entries from core.
|
|
72
72
|
if (this.hasDocEntry(entry.key)) {
|
|
73
|
-
applicationStore.
|
|
73
|
+
applicationStore.logService.warn(LogEvent.create(APPLICATION_EVENT.APPLICATION_DOCUMENTATION_LOAD__SKIP), entry.key);
|
|
74
74
|
}
|
|
75
75
|
else {
|
|
76
76
|
this.docRegistry.set(entry.key, entry.content);
|
|
@@ -92,7 +92,7 @@ export class DocumentationService {
|
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
if (missingDocumentationEntries.length) {
|
|
95
|
-
applicationStore.
|
|
95
|
+
applicationStore.logService.warn(LogEvent.create(APPLICATION_EVENT.APPLICATION_DOCUMENTATION_REQUIREMENT_CHECK__FAILURE), `Can't find corresponding documentation entry for keys:\n${missingDocumentationEntries
|
|
96
96
|
.map((key) => `- ${key}`)
|
|
97
97
|
.join('\n')}`);
|
|
98
98
|
}
|
|
@@ -105,7 +105,7 @@ export class DocumentationService {
|
|
|
105
105
|
// This allows extensions to broaden related doc entries for contextual docs
|
|
106
106
|
// If we need to support this behavior, we could create a dedicated extension method
|
|
107
107
|
if (this.hasContextualDocEntry(entry.context)) {
|
|
108
|
-
applicationStore.
|
|
108
|
+
applicationStore.logService.warn(LogEvent.create(APPLICATION_EVENT.APPLICATION_CONTEXTUAL_DOCUMENTATION_LOAD__SKIP), entry.context);
|
|
109
109
|
}
|
|
110
110
|
else {
|
|
111
111
|
const existingDocEntry = this.getDocEntry(entry.documentationKey);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentationService.js","sourceRoot":"","sources":["../../src/stores/DocumentationService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,oBAAoB,EACpB,QAAQ,EACR,IAAI,GACL,MAAM,sBAAsB,CAAC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,CAAC;IAC1C,CAAC;IAED,gBAAgB;QACd,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,kBAAkB;QAChB,MAAM,MAAM,GAA6C,EAAE,CAAC;QAC5D,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YACtC,MAAM,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,yBAAyB;QACvB,MAAM,MAAM,GAAkC,EAAE,CAAC;QACjD,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YAC7C,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,iBAAiB,CAAC;QACxC,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -13,5 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
import type { GenericLegendApplicationStore } from './ApplicationStore.js';
|
|
17
|
+
export declare class IdentityService {
|
|
18
|
+
readonly applicationStore: GenericLegendApplicationStore;
|
|
19
|
+
currentUser: string;
|
|
20
|
+
constructor(applicationStore: GenericLegendApplicationStore);
|
|
21
|
+
setCurrentUser(val: string): void;
|
|
22
|
+
}
|
|
17
23
|
//# sourceMappingURL=IdentityService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityService.d.ts","sourceRoot":"","sources":["../../src/stores/IdentityService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"IdentityService.d.ts","sourceRoot":"","sources":["../../src/stores/IdentityService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAI3E,qBAAa,eAAe;IAC1B,QAAQ,CAAC,gBAAgB,EAAE,6BAA6B,CAAC;IAEzD,WAAW,SAAmB;gBAElB,gBAAgB,EAAE,6BAA6B;IAS3D,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAGlC"}
|