@finos/legend-application 12.0.1 → 13.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.d.ts +2 -2
- package/lib/application/LegendApplication.d.ts.map +1 -1
- package/lib/application/LegendApplication.js +4 -4
- package/lib/application/LegendApplication.js.map +1 -1
- package/lib/application/LegendApplicationConfig.d.ts +2 -2
- package/lib/application/LegendApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendApplicationConfig.js +3 -3
- package/lib/application/LegendApplicationDocumentation.d.ts.map +1 -0
- package/lib/application/LegendApplicationDocumentation.js.map +1 -0
- package/lib/{stores/ApplicationEvent.d.ts → application/LegendApplicationEvent.d.ts} +16 -13
- package/lib/application/LegendApplicationEvent.d.ts.map +1 -0
- package/lib/{stores/ApplicationEvent.js → application/LegendApplicationEvent.js} +15 -12
- package/lib/application/LegendApplicationEvent.js.map +1 -0
- package/lib/application/LegendApplicationPluginManager.d.ts.map +1 -1
- package/lib/application/LegendApplicationPluginManager.js.map +1 -1
- package/lib/application/LegendApplicationSetting.d.ts +25 -0
- package/lib/application/LegendApplicationSetting.d.ts.map +1 -0
- package/lib/application/LegendApplicationSetting.js +26 -0
- package/lib/application/LegendApplicationSetting.js.map +1 -0
- package/lib/{stores/ApplicationTelemetry.d.ts → application/LegendApplicationTelemetry.d.ts} +4 -4
- package/lib/application/LegendApplicationTelemetry.d.ts.map +1 -0
- package/lib/{stores/ApplicationTelemetry.js → application/LegendApplicationTelemetry.js} +3 -3
- package/lib/application/LegendApplicationTelemetry.js.map +1 -0
- package/lib/application/LegendApplicationTheme.d.ts +25 -0
- package/lib/application/LegendApplicationTheme.d.ts.map +1 -0
- package/lib/application/LegendApplicationTheme.js +37 -0
- package/lib/application/LegendApplicationTheme.js.map +1 -0
- package/lib/components/LegendApplicationComponentFrameworkProvider.d.ts +3 -2
- package/lib/components/LegendApplicationComponentFrameworkProvider.d.ts.map +1 -1
- package/lib/components/LegendApplicationComponentFrameworkProvider.js +14 -17
- package/lib/components/LegendApplicationComponentFrameworkProvider.js.map +1 -1
- package/lib/components/NotificationManager.d.ts.map +1 -1
- package/lib/components/NotificationManager.js +1 -1
- package/lib/components/NotificationManager.js.map +1 -1
- package/lib/components/VirtualAssistant.js +3 -3
- package/lib/components/VirtualAssistant.js.map +1 -1
- package/lib/components/shared/TextInputEditor.d.ts.map +1 -1
- package/lib/components/shared/TextInputEditor.js +2 -1
- package/lib/components/shared/TextInputEditor.js.map +1 -1
- package/lib/components/shared/TextSearchAdvancedConfigMenu.js +1 -1
- package/lib/components/shared/TextSearchAdvancedConfigMenu.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +19 -14
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +19 -14
- package/lib/index.js.map +1 -1
- package/lib/package.json +6 -5
- package/lib/stores/ApplicationNavigationContextService.js +2 -2
- package/lib/stores/ApplicationNavigationContextService.js.map +1 -1
- package/lib/stores/ApplicationStore.d.ts +7 -5
- package/lib/stores/ApplicationStore.d.ts.map +1 -1
- package/lib/stores/ApplicationStore.js +12 -9
- package/lib/stores/ApplicationStore.js.map +1 -1
- package/lib/stores/AssistantService.d.ts.map +1 -1
- package/lib/stores/AssistantService.js +2 -2
- package/lib/stores/AssistantService.js.map +1 -1
- package/lib/stores/CommandService.d.ts.map +1 -1
- package/lib/stores/CommandService.js +2 -2
- package/lib/stores/CommandService.js.map +1 -1
- package/lib/stores/Core_LegendApplicationPlugin.d.ts +27 -0
- package/lib/stores/Core_LegendApplicationPlugin.d.ts.map +1 -0
- package/lib/stores/Core_LegendApplicationPlugin.js +37 -0
- package/lib/stores/Core_LegendApplicationPlugin.js.map +1 -0
- package/lib/stores/DocumentationService.d.ts +7 -7
- package/lib/stores/DocumentationService.d.ts.map +1 -1
- package/lib/stores/DocumentationService.js +8 -7
- package/lib/stores/DocumentationService.js.map +1 -1
- package/lib/stores/IdentityService.d.ts +1 -0
- package/lib/stores/IdentityService.d.ts.map +1 -1
- package/lib/stores/IdentityService.js +3 -0
- package/lib/stores/IdentityService.js.map +1 -1
- package/lib/stores/LayoutService.d.ts +26 -7
- package/lib/stores/LayoutService.d.ts.map +1 -1
- package/lib/stores/LayoutService.js +61 -15
- package/lib/stores/LayoutService.js.map +1 -1
- package/lib/stores/LegendApplicationPlugin.d.ts +10 -0
- package/lib/stores/LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendApplicationPlugin.js.map +1 -1
- package/lib/stores/SettingService.d.ts +39 -0
- package/lib/stores/SettingService.d.ts.map +1 -0
- package/lib/stores/SettingService.js +85 -0
- package/lib/stores/SettingService.js.map +1 -0
- package/lib/stores/navigation/NavigationService.d.ts +4 -0
- package/lib/stores/navigation/NavigationService.d.ts.map +1 -1
- package/lib/stores/navigation/NavigationService.js.map +1 -1
- package/lib/stores/navigation/WebApplicationNavigator.d.ts +3 -1
- package/lib/stores/navigation/WebApplicationNavigator.d.ts.map +1 -1
- package/lib/stores/navigation/WebApplicationNavigator.js +12 -1
- package/lib/stores/navigation/WebApplicationNavigator.js.map +1 -1
- package/lib/stores/storage/ApplicationStorage.d.ts +0 -3
- package/lib/stores/storage/ApplicationStorage.d.ts.map +1 -1
- package/lib/stores/storage/ApplicationStorage.js +0 -4
- package/lib/stores/storage/ApplicationStorage.js.map +1 -1
- package/lib/stores/storage/StorageService.d.ts +8 -8
- package/lib/stores/storage/StorageService.d.ts.map +1 -1
- package/lib/stores/storage/StorageService.js +26 -17
- package/lib/stores/storage/StorageService.js.map +1 -1
- package/lib/stores/terminal/XTerm.js +3 -3
- package/lib/stores/terminal/XTerm.js.map +1 -1
- package/package.json +10 -9
- package/src/application/LegendApplication.tsx +7 -9
- package/src/application/LegendApplicationConfig.ts +6 -6
- package/src/{stores/ApplicationEvent.ts → application/LegendApplicationEvent.ts} +17 -12
- package/src/application/LegendApplicationSetting.ts +27 -0
- package/src/{stores/ApplicationTelemetry.ts → application/LegendApplicationTelemetry.ts} +4 -4
- package/src/application/LegendApplicationTheme.ts +41 -0
- package/src/components/LegendApplicationComponentFrameworkProvider.tsx +29 -18
- package/src/components/NotificationManager.tsx +0 -1
- package/src/components/VirtualAssistant.tsx +3 -3
- package/src/components/shared/TextInputEditor.tsx +2 -1
- package/src/components/shared/TextSearchAdvancedConfigMenu.tsx +1 -1
- package/src/index.ts +22 -16
- package/src/stores/ApplicationNavigationContextService.ts +2 -2
- package/src/stores/ApplicationStore.ts +13 -9
- package/src/stores/AssistantService.ts +3 -3
- package/src/stores/CommandService.ts +7 -4
- package/src/stores/Core_LegendApplicationPlugin.ts +53 -0
- package/src/stores/DocumentationService.ts +13 -15
- package/src/stores/IdentityService.ts +4 -0
- package/src/stores/LayoutService.ts +104 -18
- package/src/stores/LegendApplicationPlugin.ts +12 -0
- package/src/stores/SettingService.ts +147 -0
- package/src/stores/navigation/NavigationService.ts +8 -0
- package/src/stores/navigation/WebApplicationNavigator.ts +25 -1
- package/src/stores/storage/ApplicationStorage.ts +0 -4
- package/src/stores/storage/StorageService.ts +26 -20
- package/src/stores/terminal/XTerm.ts +3 -3
- package/tsconfig.json +9 -6
- package/tsconfig.package.json +1 -2
- package/lib/stores/ApplicationEvent.d.ts.map +0 -1
- package/lib/stores/ApplicationEvent.js.map +0 -1
- package/lib/stores/ApplicationTelemetry.d.ts.map +0 -1
- package/lib/stores/ApplicationTelemetry.js.map +0 -1
- package/lib/stores/LegendApplicationDocumentation.d.ts.map +0 -1
- package/lib/stores/LegendApplicationDocumentation.js.map +0 -1
- /package/lib/{stores → application}/LegendApplicationDocumentation.d.ts +0 -0
- /package/lib/{stores → application}/LegendApplicationDocumentation.js +0 -0
- /package/src/{stores → application}/LegendApplicationDocumentation.ts +0 -0
- /package/src/application/{LegendApplicationPluginManager.tsx → LegendApplicationPluginManager.ts} +0 -0
|
@@ -17,7 +17,7 @@ import type { LegendApplicationConfig, LegendApplicationConfigurationData, Legen
|
|
|
17
17
|
import { type AbstractPlugin, type AbstractPreset, LogEvent, type ExtensionsConfigurationData } from '@finos/legend-shared';
|
|
18
18
|
import type { GraphManagerPluginManager } from '@finos/legend-graph';
|
|
19
19
|
import type { LegendApplicationPluginManager } from './LegendApplicationPluginManager.js';
|
|
20
|
-
import { type
|
|
20
|
+
import { type DocumentationEntryData } from '../stores/DocumentationService.js';
|
|
21
21
|
import type { LegendApplicationPlugin } from '../stores/LegendApplicationPlugin.js';
|
|
22
22
|
export declare abstract class LegendApplicationLogger {
|
|
23
23
|
abstract debug(event: LogEvent, ...data: unknown[]): void;
|
|
@@ -36,7 +36,7 @@ export interface LegendApplicationConfigurationInput<T extends LegendApplication
|
|
|
36
36
|
baseUrl: string;
|
|
37
37
|
configData: T;
|
|
38
38
|
versionData: LegendApplicationVersionData;
|
|
39
|
-
docEntries?: Record<string,
|
|
39
|
+
docEntries?: Record<string, DocumentationEntryData>;
|
|
40
40
|
}
|
|
41
41
|
export declare abstract class LegendApplication {
|
|
42
42
|
protected config: LegendApplicationConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplication.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,KAAK,EACV,uBAAuB,EACvB,kCAAkC,EAClC,4BAA4B,EAC7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,EAEnB,QAAQ,EAKR,KAAK,2BAA2B,EAEjC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAE1F,OAAO,EAEL,KAAK,
|
|
1
|
+
{"version":3,"file":"LegendApplication.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,KAAK,EACV,uBA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;IAKvE,WAAW,CAAC,OAAO,EAAE,cAAc,EAAE,GAAG,iBAAiB;IAKzD,WAAW,CAAC,OAAO,EAAE,cAAc,EAAE,GAAG,iBAAiB;IAKnD,6BAA6B,CACjC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,CAAC,uBAAuB,EAAE,2BAA2B,CAAC,CAAC;IA8C5D,6BAA6B,CACjC,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,IAAI,CAAC;IAmEhB,SAAS,CAAC,QAAQ,CAAC,oBAAoB,CACrC,KAAK,EAAE,mCAAmC,CAAC,kCAAkC,CAAC,GAC7E,OAAO,CAAC,uBAAuB,CAAC;IAEnC,SAAS,CAAC,QAAQ,CAAC,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAE7C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CA2C7B"}
|
|
@@ -17,10 +17,10 @@ import { configure as configureMobx } from 'mobx';
|
|
|
17
17
|
import { editor as monacoEditorAPI } from 'monaco-editor';
|
|
18
18
|
import { MONOSPACED_FONT_FAMILY } from '../const.js';
|
|
19
19
|
import { assertErrorThrown, LogEvent, guaranteeNonEmptyString, assertNonNullable, NetworkClient, createRegExpPatternFromWildcardPattern, } from '@finos/legend-shared';
|
|
20
|
-
import { APPLICATION_EVENT } from '
|
|
20
|
+
import { APPLICATION_EVENT } from './LegendApplicationEvent.js';
|
|
21
21
|
import { configureComponents } from '@finos/legend-art';
|
|
22
22
|
import { setupPureLanguageService } from '../stores/pure-language/PureLanguageSupport.js';
|
|
23
|
-
import {
|
|
23
|
+
import { collectKeyedDocumentationEntriesFromConfig, } from '../stores/DocumentationService.js';
|
|
24
24
|
export class LegendApplicationLogger {
|
|
25
25
|
}
|
|
26
26
|
export class LegendApplicationWebConsole extends LegendApplicationLogger {
|
|
@@ -173,12 +173,12 @@ export class LegendApplication {
|
|
|
173
173
|
}
|
|
174
174
|
catch (error) {
|
|
175
175
|
assertErrorThrown(error);
|
|
176
|
-
this.logger.warn(LogEvent.create(APPLICATION_EVENT.
|
|
176
|
+
this.logger.warn(LogEvent.create(APPLICATION_EVENT.DOCUMENTATION_FETCH__FAILURE), error);
|
|
177
177
|
}
|
|
178
178
|
}));
|
|
179
179
|
// NOTE: config entries will override
|
|
180
180
|
config.keyedDocumentationEntries = [
|
|
181
|
-
...
|
|
181
|
+
...collectKeyedDocumentationEntriesFromConfig(entries),
|
|
182
182
|
...config.keyedDocumentationEntries,
|
|
183
183
|
];
|
|
184
184
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplication.js","sourceRoot":"","sources":["../../src/application/LegendApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAMrD,OAAO,EAGL,iBAAiB,EACjB,QAAQ,EACR,uBAAuB,EACvB,iBAAiB,EACjB,aAAa,EAGb,sCAAsC,GACvC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"LegendApplication.js","sourceRoot":"","sources":["../../src/application/LegendApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAMrD,OAAO,EAGL,iBAAiB,EACjB,QAAQ,EACR,uBAAuB,EACvB,iBAAiB,EACjB,aAAa,EAGb,sCAAsC,GACvC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,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CAC5B,CAAC;SACH;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,EAC5D,mCAAmC,CACpC,CAAC;YACF,MAAM,KAAK,CAAC;SACb;IACH,CAAC;CACF"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { type ExtensionsConfigurationData } from '@finos/legend-shared';
|
|
17
17
|
import type { LegendApplicationConfigurationInput } from './LegendApplication.js';
|
|
18
|
-
import { type KeyedDocumentationEntry, type
|
|
18
|
+
import { type KeyedDocumentationEntry, type DocumentationEntryData, type ContextualDocumentationConfig, type ContextualDocumentationEntry, type DocumentationRegistryEntry } from '../stores/DocumentationService.js';
|
|
19
19
|
export interface LegendApplicationVersionData {
|
|
20
20
|
buildTime: string;
|
|
21
21
|
version: string;
|
|
@@ -27,7 +27,7 @@ export interface LegendApplicationConfigurationData {
|
|
|
27
27
|
documentation?: {
|
|
28
28
|
url: string;
|
|
29
29
|
registry?: DocumentationRegistryEntry[];
|
|
30
|
-
entries?: Record<string,
|
|
30
|
+
entries?: Record<string, DocumentationEntryData>;
|
|
31
31
|
contextualEntries?: ContextualDocumentationConfig;
|
|
32
32
|
};
|
|
33
33
|
extensions?: ExtensionsConfigurationData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAGL,KAAK,uBAAuB,EAC5B,KAAK,
|
|
1
|
+
{"version":3,"file":"LegendApplicationConfig.d.ts","s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,CAAC;IAC5B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;gBAGlC,KAAK,EAAE,mCAAmC,CAAC,kCAAkC,CAAC;CAqCjF"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { guaranteeNonEmptyString, guaranteeNonNullable, } from '@finos/legend-shared';
|
|
17
|
-
import {
|
|
17
|
+
import { collectKeyedDocumentationEntriesFromConfig, collectContextualDocumentationEntries, } from '../stores/DocumentationService.js';
|
|
18
18
|
export class LegendApplicationConfig {
|
|
19
19
|
appName;
|
|
20
20
|
baseUrl;
|
|
@@ -36,8 +36,8 @@ export class LegendApplicationConfig {
|
|
|
36
36
|
this.documentationUrl = input.configData.documentation?.url;
|
|
37
37
|
this.documentationRegistryEntries =
|
|
38
38
|
input.configData.documentation?.registry ?? [];
|
|
39
|
-
this.keyedDocumentationEntries =
|
|
40
|
-
this.contextualDocEntries =
|
|
39
|
+
this.keyedDocumentationEntries = collectKeyedDocumentationEntriesFromConfig(input.configData.documentation?.entries ?? {});
|
|
40
|
+
this.contextualDocEntries = collectContextualDocumentationEntries(input.configData.documentation?.contextualEntries ?? {});
|
|
41
41
|
// Version
|
|
42
42
|
this.appVersion = guaranteeNonNullable(input.versionData.version, `Can't collect application version: 'version' field is missing`);
|
|
43
43
|
this.appVersionBuildTime = guaranteeNonNullable(input.versionData.buildTime, `Can't collect application version: 'buildTime' field is missing`);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationDocumentation.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,oCAAoC;IAC9C,sBAAsB,2BAA2B;IACjD,0CAA0C,+CAA+C;IACzF,4CAA4C,sEAAsE;IAClH,oCAAoC,yCAAyC;IAC7E,0DAA0D,+DAA+D;IACzH,uCAAuC,4CAA4C;IACnF,sCAAsC,2CAA2C;IACjF,kDAAkD,uDAAuD;IACzG,qCAAqC,0CAA0C;CAChF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationDocumentation.js","sourceRoot":"","sources":["../../src/application/LegendApplicationDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,oCAUX;AAVD,WAAY,oCAAoC;IAC9C,yFAAiD,CAAA;IACjD,iIAAyF,CAAA;IACzF,0JAAkH,CAAA;IAClH,qHAA6E,CAAA;IAC7E,iKAAyH,CAAA;IACzH,2HAAmF,CAAA;IACnF,yHAAiF,CAAA;IACjF,iJAAyG,CAAA;IACzG,uHAA+E,CAAA;AACjF,CAAC,EAVW,oCAAoC,GAApC,oCAAoC,KAApC,oCAAoC,QAU/C"}
|
|
@@ -14,22 +14,25 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export declare enum APPLICATION_EVENT {
|
|
17
|
-
LOAD_TEXT_EDITOR_FONT__SUCCESS = "application.load.font.success",
|
|
18
17
|
APPLICATION_SETUP__FAILURE = "application.setup.failure",
|
|
19
|
-
ILLEGAL_APPLICATION_STATE_OCCURRED = "application.error.illegal-state",
|
|
20
|
-
APPLICATION_CONFIGURATION__FAILURE = "application.configuration.failure",
|
|
21
|
-
APPLICATION_IDENTITY_AUTO_FETCH__FAILURE = "application.identity.auto-fetch.failure",
|
|
22
|
-
APPLICATION_DOCUMENTATION_FETCH__FAILURE = "application.fetch.documentation.failure",
|
|
23
|
-
APPLICATION_DOCUMENTATION_LOAD__SKIP = "application.load.documentation.skip",
|
|
24
|
-
APPLICATION_DOCUMENTATION_REQUIREMENT_CHECK__FAILURE = "application.load.documentation.requirement-check.failure",
|
|
25
|
-
APPLICATION_TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE = "application.load.terminal-command.configuration-check.failure",
|
|
26
|
-
APPLICATION_CONTEXTUAL_DOCUMENTATION_LOAD__SKIP = "application.load.contextual-documentation.skip",
|
|
27
|
-
APPLICATION_COMMAND_CENTER_REGISTRATION__FAILURE = "application.command-center.registration.failure",
|
|
28
18
|
APPLICATION_LOAD__SUCCESS = "application.load.success",
|
|
29
19
|
APPLICATION_LOAD__FAILURE = "application.load.failure",
|
|
20
|
+
ILLEGAL_APPLICATION_STATE_OCCURRED = "application.error.illegal-state",
|
|
21
|
+
APPLICATION_CONFIGURATION__FAILURE = "application.configuration.failure",
|
|
22
|
+
IDENTITY_AUTO_FETCH__FAILURE = "application.identity.auto-fetch.failure",
|
|
23
|
+
DOCUMENTATION_FETCH__FAILURE = "application.documentation.fetch.failure",
|
|
24
|
+
DOCUMENTATION_LOAD__SKIP = "application.documentation.load.skip",
|
|
25
|
+
DOCUMENTATION_REQUIREMENT_CHECK__FAILURE = "application.documentation.requirement-check.failure",
|
|
26
|
+
CONTEXTUAL_DOCUMENTATION_LOAD__SKIP = "application.virtual-assistant.contextual-documentation-load.skip",
|
|
27
|
+
VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS = "application.virtual-assistant.documentation-entry.access",
|
|
28
|
+
TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE = "application.load.terminal-command.configuration-check.failure",
|
|
29
|
+
COLOR_THEME_CONFIGURATION_CHECK__FAILURE = "application.layout.color-theme.configuration-check.failure",
|
|
30
|
+
LOAD_TEXT_EDITOR_FONT__SUCCESS = "application.load.font.success",
|
|
31
|
+
SETTING_CONFIGURATION_CHECK__FAILURE = "application.setting.configuration-check.failure",
|
|
32
|
+
SETTING_RETRIVE_FAILURE = "application.setting.retrieve.failure",
|
|
33
|
+
COMMAND_CENTER_REGISTRATION__FAILURE = "application.command.registration.failure",
|
|
30
34
|
DEVELOPMENT_ISSUE = "development.issue",
|
|
31
35
|
APPLICATION_CONTEXT__ACCESS = "application.context.access",
|
|
32
|
-
APPLICATION_USAGE__INTERRUPT = "application.usage.interrupt"
|
|
33
|
-
VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS = "application.virtual-assistant.documentation-entry.access"
|
|
36
|
+
APPLICATION_USAGE__INTERRUPT = "application.usage.interrupt"
|
|
34
37
|
}
|
|
35
|
-
//# sourceMappingURL=
|
|
38
|
+
//# sourceMappingURL=LegendApplicationEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationEvent.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,iBAAiB;IAC3B,0BAA0B,8BAA8B;IACxD,yBAAyB,6BAA6B;IACtD,yBAAyB,6BAA6B;IAEtD,kCAAkC,oCAAoC;IACtE,kCAAkC,sCAAsC;IAExE,4BAA4B,4CAA4C;IAExE,4BAA4B,4CAA4C;IACxE,wBAAwB,wCAAwC;IAChE,wCAAwC,wDAAwD;IAEhG,mCAAmC,qEAAqE;IACxG,6CAA6C,6DAA6D;IAE1G,6CAA6C,kEAAkE;IAE/G,wCAAwC,+DAA+D;IACvG,8BAA8B,kCAAkC;IAEhE,oCAAoC,oDAAoD;IACxF,uBAAuB,yCAAyC;IAEhE,oCAAoC,6CAA6C;IAEjF,iBAAiB,sBAAsB;IAEvC,2BAA2B,+BAA+B;IAE1D,4BAA4B,gCAAgC;CAC7D"}
|
|
@@ -15,22 +15,25 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export var APPLICATION_EVENT;
|
|
17
17
|
(function (APPLICATION_EVENT) {
|
|
18
|
-
APPLICATION_EVENT["LOAD_TEXT_EDITOR_FONT__SUCCESS"] = "application.load.font.success";
|
|
19
18
|
APPLICATION_EVENT["APPLICATION_SETUP__FAILURE"] = "application.setup.failure";
|
|
20
|
-
APPLICATION_EVENT["ILLEGAL_APPLICATION_STATE_OCCURRED"] = "application.error.illegal-state";
|
|
21
|
-
APPLICATION_EVENT["APPLICATION_CONFIGURATION__FAILURE"] = "application.configuration.failure";
|
|
22
|
-
APPLICATION_EVENT["APPLICATION_IDENTITY_AUTO_FETCH__FAILURE"] = "application.identity.auto-fetch.failure";
|
|
23
|
-
APPLICATION_EVENT["APPLICATION_DOCUMENTATION_FETCH__FAILURE"] = "application.fetch.documentation.failure";
|
|
24
|
-
APPLICATION_EVENT["APPLICATION_DOCUMENTATION_LOAD__SKIP"] = "application.load.documentation.skip";
|
|
25
|
-
APPLICATION_EVENT["APPLICATION_DOCUMENTATION_REQUIREMENT_CHECK__FAILURE"] = "application.load.documentation.requirement-check.failure";
|
|
26
|
-
APPLICATION_EVENT["APPLICATION_TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE"] = "application.load.terminal-command.configuration-check.failure";
|
|
27
|
-
APPLICATION_EVENT["APPLICATION_CONTEXTUAL_DOCUMENTATION_LOAD__SKIP"] = "application.load.contextual-documentation.skip";
|
|
28
|
-
APPLICATION_EVENT["APPLICATION_COMMAND_CENTER_REGISTRATION__FAILURE"] = "application.command-center.registration.failure";
|
|
29
19
|
APPLICATION_EVENT["APPLICATION_LOAD__SUCCESS"] = "application.load.success";
|
|
30
20
|
APPLICATION_EVENT["APPLICATION_LOAD__FAILURE"] = "application.load.failure";
|
|
21
|
+
APPLICATION_EVENT["ILLEGAL_APPLICATION_STATE_OCCURRED"] = "application.error.illegal-state";
|
|
22
|
+
APPLICATION_EVENT["APPLICATION_CONFIGURATION__FAILURE"] = "application.configuration.failure";
|
|
23
|
+
APPLICATION_EVENT["IDENTITY_AUTO_FETCH__FAILURE"] = "application.identity.auto-fetch.failure";
|
|
24
|
+
APPLICATION_EVENT["DOCUMENTATION_FETCH__FAILURE"] = "application.documentation.fetch.failure";
|
|
25
|
+
APPLICATION_EVENT["DOCUMENTATION_LOAD__SKIP"] = "application.documentation.load.skip";
|
|
26
|
+
APPLICATION_EVENT["DOCUMENTATION_REQUIREMENT_CHECK__FAILURE"] = "application.documentation.requirement-check.failure";
|
|
27
|
+
APPLICATION_EVENT["CONTEXTUAL_DOCUMENTATION_LOAD__SKIP"] = "application.virtual-assistant.contextual-documentation-load.skip";
|
|
28
|
+
APPLICATION_EVENT["VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS"] = "application.virtual-assistant.documentation-entry.access";
|
|
29
|
+
APPLICATION_EVENT["TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE"] = "application.load.terminal-command.configuration-check.failure";
|
|
30
|
+
APPLICATION_EVENT["COLOR_THEME_CONFIGURATION_CHECK__FAILURE"] = "application.layout.color-theme.configuration-check.failure";
|
|
31
|
+
APPLICATION_EVENT["LOAD_TEXT_EDITOR_FONT__SUCCESS"] = "application.load.font.success";
|
|
32
|
+
APPLICATION_EVENT["SETTING_CONFIGURATION_CHECK__FAILURE"] = "application.setting.configuration-check.failure";
|
|
33
|
+
APPLICATION_EVENT["SETTING_RETRIVE_FAILURE"] = "application.setting.retrieve.failure";
|
|
34
|
+
APPLICATION_EVENT["COMMAND_CENTER_REGISTRATION__FAILURE"] = "application.command.registration.failure";
|
|
31
35
|
APPLICATION_EVENT["DEVELOPMENT_ISSUE"] = "development.issue";
|
|
32
36
|
APPLICATION_EVENT["APPLICATION_CONTEXT__ACCESS"] = "application.context.access";
|
|
33
37
|
APPLICATION_EVENT["APPLICATION_USAGE__INTERRUPT"] = "application.usage.interrupt";
|
|
34
|
-
APPLICATION_EVENT["VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS"] = "application.virtual-assistant.documentation-entry.access";
|
|
35
38
|
})(APPLICATION_EVENT = APPLICATION_EVENT || (APPLICATION_EVENT = {}));
|
|
36
|
-
//# sourceMappingURL=
|
|
39
|
+
//# sourceMappingURL=LegendApplicationEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationEvent.js","sourceRoot":"","sources":["../../src/application/LegendApplicationEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,iBAgCX;AAhCD,WAAY,iBAAiB;IAC3B,6EAAwD,CAAA;IACxD,2EAAsD,CAAA;IACtD,2EAAsD,CAAA;IAEtD,2FAAsE,CAAA;IACtE,6FAAwE,CAAA;IAExE,6FAAwE,CAAA;IAExE,6FAAwE,CAAA;IACxE,qFAAgE,CAAA;IAChE,qHAAgG,CAAA;IAEhG,6HAAwG,CAAA;IACxG,+HAA0G,CAAA;IAE1G,oIAA+G,CAAA;IAE/G,4HAAuG,CAAA;IACvG,qFAAgE,CAAA;IAEhE,6GAAwF,CAAA;IACxF,qFAAgE,CAAA;IAEhE,sGAAiF,CAAA;IAEjF,4DAAuC,CAAA;IAEvC,+EAA0D,CAAA;IAE1D,iFAA4D,CAAA;AAC9D,CAAC,EAhCW,iBAAiB,GAAjB,iBAAiB,KAAjB,iBAAiB,QAgC5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationPluginManager.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationPluginManager.
|
|
1
|
+
{"version":3,"file":"LegendApplicationPluginManager.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationPluginManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,KAAK,EACV,sBAAsB,EACtB,6BAA6B,EAC9B,MAAM,+BAA+B,CAAC;AAEvC,qBAAa,8BAA8B,CAAC,CAAC,SAAS,uBAAuB,CAC3E,SAAQ,qBACR,YACE,mBAAmB,EACnB,0BAA0B,EAC1B,6BAA6B,EAC7B,0BAA0B;IAE5B,SAAS,CAAC,aAAa,EAAE,YAAY,EAAE,CAAM;IAC7C,SAAS,CAAC,uBAAuB,EAAE,sBAAsB,EAAE,CAAM;IACjE,SAAS,CAAC,oBAAoB,EAAE,mBAAmB,CAAC,OAAO,CAAC,EAAE,CAAM;IACpE,SAAS,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,CAAM;IAC3D,SAAS,CAAC,kBAAkB,EAAE,CAAC,EAAE,CAAM;IAEvC,oBAAoB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI;IAIhD,8BAA8B,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI;IAIpE,2BAA2B,CAAC,MAAM,EAAE,mBAAmB,CAAC,OAAO,CAAC,GAAG,IAAI;IAIvE,2BAA2B,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI;IAI9D,yBAAyB,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI;IAI1C,gBAAgB,IAAI,YAAY,EAAE;IAIlC,0BAA0B,IAAI,sBAAsB,EAAE;IAItD,uBAAuB,IAAI,mBAAmB,CAAC,OAAO,CAAC,EAAE;IAIzD,uBAAuB,IAAI,mBAAmB,EAAE;IAIhD,qBAAqB,IAAI,CAAC,EAAE;CAG7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationPluginManager.js","sourceRoot":"","sources":["../../src/application/LegendApplicationPluginManager.
|
|
1
|
+
{"version":3,"file":"LegendApplicationPluginManager.js","sourceRoot":"","sources":["../../src/application/LegendApplicationPluginManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAW9B,MAAM,OAAO,8BACX,SAAQ,qBAAqB;IAOnB,aAAa,GAAmB,EAAE,CAAC;IACnC,uBAAuB,GAA6B,EAAE,CAAC;IACvD,oBAAoB,GAAmC,EAAE,CAAC;IAC1D,oBAAoB,GAA0B,EAAE,CAAC;IACjD,kBAAkB,GAAQ,EAAE,CAAC;IAEvC,oBAAoB,CAAC,MAAoB;QACvC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,8BAA8B,CAAC,MAA8B;QAC3D,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IAED,2BAA2B,CAAC,MAAoC;QAC9D,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;IAED,2BAA2B,CAAC,MAA2B;QACrD,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;IAED,yBAAyB,CAAC,MAAS;QACjC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;IAED,gBAAgB;QACd,OAAO,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;IACjC,CAAC;IAED,0BAA0B;QACxB,OAAO,CAAC,GAAG,IAAI,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IAED,uBAAuB;QACrB,OAAO,CAAC,GAAG,IAAI,CAAC,oBAAoB,CAAC,CAAC;IACxC,CAAC;IAED,uBAAuB;QACrB,OAAO,CAAC,GAAG,IAAI,CAAC,oBAAoB,CAAC,CAAC;IACxC,CAAC;IAED,qBAAqB;QACnB,OAAO,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { LEGEND_APPLICATION_COLOR_THEME } from './LegendApplicationTheme.js';
|
|
17
|
+
export declare enum LEGEND_APPLICATION_SETTING_KEY {
|
|
18
|
+
COLOR_THEME = "application.layout.colorTheme"
|
|
19
|
+
}
|
|
20
|
+
export declare const LEGEND_APPLICATION_SETTING_CONFIG: {
|
|
21
|
+
"application.layout.colorTheme": {
|
|
22
|
+
defaultValue: LEGEND_APPLICATION_COLOR_THEME;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=LegendApplicationSetting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationSetting.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAE7E,oBAAY,8BAA8B;IACxC,WAAW,kCAAkC;CAC9C;AAED,eAAO,MAAM,iCAAiC;;;;CAI7C,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { LEGEND_APPLICATION_COLOR_THEME } from './LegendApplicationTheme.js';
|
|
17
|
+
export var LEGEND_APPLICATION_SETTING_KEY;
|
|
18
|
+
(function (LEGEND_APPLICATION_SETTING_KEY) {
|
|
19
|
+
LEGEND_APPLICATION_SETTING_KEY["COLOR_THEME"] = "application.layout.colorTheme";
|
|
20
|
+
})(LEGEND_APPLICATION_SETTING_KEY = LEGEND_APPLICATION_SETTING_KEY || (LEGEND_APPLICATION_SETTING_KEY = {}));
|
|
21
|
+
export const LEGEND_APPLICATION_SETTING_CONFIG = {
|
|
22
|
+
[LEGEND_APPLICATION_SETTING_KEY.COLOR_THEME]: {
|
|
23
|
+
defaultValue: LEGEND_APPLICATION_COLOR_THEME.DEFAULT_DARK,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=LegendApplicationSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationSetting.js","sourceRoot":"","sources":["../../src/application/LegendApplicationSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAE7E,MAAM,CAAN,IAAY,8BAEX;AAFD,WAAY,8BAA8B;IACxC,+EAA6C,CAAA;AAC/C,CAAC,EAFW,8BAA8B,GAA9B,8BAA8B,KAA9B,8BAA8B,QAEzC;AAED,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,CAAC,8BAA8B,CAAC,WAAW,CAAC,EAAE;QAC5C,YAAY,EAAE,8BAA8B,CAAC,YAAY;KAC1D;CACF,CAAC"}
|
package/lib/{stores/ApplicationTelemetry.d.ts → application/LegendApplicationTelemetry.d.ts}
RENAMED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { type GraphManagerOperationReport } from '@finos/legend-graph';
|
|
17
17
|
import type { TimingsRecord } from '@finos/legend-shared';
|
|
18
|
-
import type { GenericLegendApplicationStore } from '
|
|
19
|
-
import type { TelemetryService } from '
|
|
18
|
+
import type { GenericLegendApplicationStore } from '../stores/ApplicationStore.js';
|
|
19
|
+
import type { TelemetryService } from '../stores/TelemetryService.js';
|
|
20
20
|
type ApplicationContextAccessed_TelemetryData = {
|
|
21
21
|
key: string;
|
|
22
22
|
};
|
|
@@ -31,7 +31,7 @@ type GraphInitialized_TelemetryData = {
|
|
|
31
31
|
generations?: GraphManagerOperationReport;
|
|
32
32
|
generationCount?: number;
|
|
33
33
|
};
|
|
34
|
-
export declare class
|
|
34
|
+
export declare class LegendApplicationTelemetryHelper {
|
|
35
35
|
static logEvent_ApplicationInitializationSucceeded(telemetryService: TelemetryService, applicationStore: GenericLegendApplicationStore): void;
|
|
36
36
|
static logEvent_ApplicationContextAccessed(telemetryService: TelemetryService, data: ApplicationContextAccessed_TelemetryData): void;
|
|
37
37
|
static logEvent_VirtualAssistantDocumentationEntryAccessed(telemetryService: TelemetryService, data: VirtualAssistantDocumentationEntryAccessed_TelemetryData): void;
|
|
@@ -39,4 +39,4 @@ export declare class ApplicationTelemetry {
|
|
|
39
39
|
static logEvent_ApplicationUsageInterrupted(telemetryService: TelemetryService): void;
|
|
40
40
|
}
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=
|
|
42
|
+
//# sourceMappingURL=LegendApplicationTelemetry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationTelemetry.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationTelemetry.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,+BAA+B,CAAC;AACnF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,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,gCAAgC;IAC3C,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"}
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { GRAPH_MANAGER_EVENT, } from '@finos/legend-graph';
|
|
17
|
-
import { APPLICATION_EVENT } from './
|
|
18
|
-
export class
|
|
17
|
+
import { APPLICATION_EVENT } from './LegendApplicationEvent.js';
|
|
18
|
+
export class LegendApplicationTelemetryHelper {
|
|
19
19
|
static logEvent_ApplicationInitializationSucceeded(telemetryService, applicationStore) {
|
|
20
20
|
telemetryService.logEvent(APPLICATION_EVENT.APPLICATION_LOAD__SUCCESS, {
|
|
21
21
|
application: {
|
|
@@ -45,4 +45,4 @@ export class ApplicationTelemetry {
|
|
|
45
45
|
telemetryService.logEvent(APPLICATION_EVENT.APPLICATION_USAGE__INTERRUPT, {});
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
//# sourceMappingURL=
|
|
48
|
+
//# sourceMappingURL=LegendApplicationTelemetry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationTelemetry.js","sourceRoot":"","sources":["../../src/application/LegendApplicationTelemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAqBhE,MAAM,OAAO,gCAAgC;IAC3C,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,25 @@
|
|
|
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 { ColorTheme } from '../stores/LayoutService.js';
|
|
17
|
+
export declare enum LEGEND_APPLICATION_COLOR_THEME {
|
|
18
|
+
DEFAULT_DARK = "default-dark",
|
|
19
|
+
LEGACY_LIGHT = "legacy-light",
|
|
20
|
+
HIGH_CONTRAST_LIGHT = "hc-light"
|
|
21
|
+
}
|
|
22
|
+
export declare const DEFAULT_DARK_COLOR_THEME: ColorTheme;
|
|
23
|
+
export declare const LEGACY_LIGHT_COLOR_THEME: ColorTheme;
|
|
24
|
+
export declare const HIGH_CONTRAST_LIGHT_COLOR_THEME: ColorTheme;
|
|
25
|
+
//# sourceMappingURL=LegendApplicationTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationTheme.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationTheme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D,oBAAY,8BAA8B;IACxC,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,mBAAmB,aAAa;CACjC;AAED,eAAO,MAAM,wBAAwB,EAAE,UAItC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,UAItC,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,UAI7C,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 var LEGEND_APPLICATION_COLOR_THEME;
|
|
17
|
+
(function (LEGEND_APPLICATION_COLOR_THEME) {
|
|
18
|
+
LEGEND_APPLICATION_COLOR_THEME["DEFAULT_DARK"] = "default-dark";
|
|
19
|
+
LEGEND_APPLICATION_COLOR_THEME["LEGACY_LIGHT"] = "legacy-light";
|
|
20
|
+
LEGEND_APPLICATION_COLOR_THEME["HIGH_CONTRAST_LIGHT"] = "hc-light";
|
|
21
|
+
})(LEGEND_APPLICATION_COLOR_THEME = LEGEND_APPLICATION_COLOR_THEME || (LEGEND_APPLICATION_COLOR_THEME = {}));
|
|
22
|
+
export const DEFAULT_DARK_COLOR_THEME = {
|
|
23
|
+
name: 'Default Dark (default)',
|
|
24
|
+
key: LEGEND_APPLICATION_COLOR_THEME.DEFAULT_DARK,
|
|
25
|
+
TEMPORARY__globalCSSClassName: 'theme__default-dark',
|
|
26
|
+
};
|
|
27
|
+
export const LEGACY_LIGHT_COLOR_THEME = {
|
|
28
|
+
name: 'Legacy Light',
|
|
29
|
+
key: LEGEND_APPLICATION_COLOR_THEME.LEGACY_LIGHT,
|
|
30
|
+
TEMPORARY__globalCSSClassName: 'theme__legacy-light',
|
|
31
|
+
};
|
|
32
|
+
export const HIGH_CONTRAST_LIGHT_COLOR_THEME = {
|
|
33
|
+
name: 'High-Contrast Light',
|
|
34
|
+
key: LEGEND_APPLICATION_COLOR_THEME.HIGH_CONTRAST_LIGHT,
|
|
35
|
+
TEMPORARY__globalCSSClassName: 'theme__hc-light',
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=LegendApplicationTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationTheme.js","sourceRoot":"","sources":["../../src/application/LegendApplicationTheme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,CAAN,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACxC,+DAA6B,CAAA;IAC7B,+DAA6B,CAAA;IAC7B,kEAAgC,CAAA;AAClC,CAAC,EAJW,8BAA8B,GAA9B,8BAA8B,KAA9B,8BAA8B,QAIzC;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAe;IAClD,IAAI,EAAE,wBAAwB;IAC9B,GAAG,EAAE,8BAA8B,CAAC,YAAY;IAChD,6BAA6B,EAAE,qBAAqB;CACrD,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAe;IAClD,IAAI,EAAE,cAAc;IACpB,GAAG,EAAE,8BAA8B,CAAC,YAAY;IAChD,6BAA6B,EAAE,qBAAqB;CACrD,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAe;IACzD,IAAI,EAAE,qBAAqB;IAC3B,GAAG,EAAE,8BAA8B,CAAC,mBAAmB;IACvD,6BAA6B,EAAE,iBAAiB;CACjD,CAAC"}
|
|
@@ -14,13 +14,14 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
/// <reference types="react" resolution-mode="require"/>
|
|
17
|
+
import type { GenericLegendApplicationStore } from '../stores/ApplicationStore.js';
|
|
17
18
|
/**
|
|
18
19
|
* Some elements (e.g. <canvas>) and components that we do not control the implementation
|
|
19
20
|
* might have special logic to prevent `keydown` event bubbling naturally, this
|
|
20
21
|
* method forces those event to surface to the top of the app and being handled
|
|
21
22
|
* by keybinding service
|
|
22
23
|
*/
|
|
23
|
-
export declare const forceDispatchKeyboardEvent: (event: KeyboardEvent) => void;
|
|
24
|
+
export declare const forceDispatchKeyboardEvent: (event: KeyboardEvent, applicationStore: GenericLegendApplicationStore) => void;
|
|
24
25
|
/**
|
|
25
26
|
* Potential location to mount backdrop on
|
|
26
27
|
*
|
|
@@ -28,7 +29,7 @@ export declare const forceDispatchKeyboardEvent: (event: KeyboardEvent) => void;
|
|
|
28
29
|
* so that it properly lies under the content that we pick to show on top of the backdrop
|
|
29
30
|
*/
|
|
30
31
|
export declare const BackdropContainer: React.FC<{
|
|
31
|
-
|
|
32
|
+
elementId: string;
|
|
32
33
|
}>;
|
|
33
34
|
export declare const LegendApplicationComponentFrameworkProvider: ((props: {
|
|
34
35
|
children: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationComponentFrameworkProvider.d.ts","sourceRoot":"","sources":["../../src/components/LegendApplicationComponentFrameworkProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;
|
|
1
|
+
{"version":3,"file":"LegendApplicationComponentFrameworkProvider.d.ts","sourceRoot":"","sources":["../../src/components/LegendApplicationComponentFrameworkProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAiBH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AA4DnF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,UAC9B,aAAa,sDAEnB,IAIF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAE7D,CAAC;AAEF,eAAO,MAAM,2CAA2C,WAC9C;IAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;CAAE;;CAqGtC,CAAC"}
|
|
@@ -25,9 +25,12 @@ import { NotificationManager } from './NotificationManager.js';
|
|
|
25
25
|
import { useEffect } from 'react';
|
|
26
26
|
import { createKeybindingsHandler, } from '@finos/legend-shared';
|
|
27
27
|
import { VirtualAssistant } from './VirtualAssistant.js';
|
|
28
|
-
import {
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
import { LegendApplicationTelemetryHelper } from '../application/LegendApplicationTelemetry.js';
|
|
29
|
+
var APPLICATION_COMPONENT_ELEMENT_ID;
|
|
30
|
+
(function (APPLICATION_COMPONENT_ELEMENT_ID) {
|
|
31
|
+
APPLICATION_COMPONENT_ELEMENT_ID["TOP_LEVEL_CONTAINER"] = "application.top-level-container";
|
|
32
|
+
APPLICATION_COMPONENT_ELEMENT_ID["BACKDROP_CONTAINER"] = "application.backdrop-container";
|
|
33
|
+
})(APPLICATION_COMPONENT_ELEMENT_ID || (APPLICATION_COMPONENT_ELEMENT_ID = {}));
|
|
31
34
|
const PLATFORM_NATIVE_KEYBOARD_SHORTCUTS = [
|
|
32
35
|
'Meta+KeyP',
|
|
33
36
|
'Control+KeyP',
|
|
@@ -76,9 +79,9 @@ const buildHotkeysConfiguration = (commandKeyMap, handler) => {
|
|
|
76
79
|
* method forces those event to surface to the top of the app and being handled
|
|
77
80
|
* by keybinding service
|
|
78
81
|
*/
|
|
79
|
-
export const forceDispatchKeyboardEvent = (event) => {
|
|
80
|
-
|
|
81
|
-
.
|
|
82
|
+
export const forceDispatchKeyboardEvent = (event, applicationStore) => {
|
|
83
|
+
applicationStore.layoutService
|
|
84
|
+
.getElementByID(APPLICATION_COMPONENT_ELEMENT_ID.TOP_LEVEL_CONTAINER)
|
|
82
85
|
?.dispatchEvent(new KeyboardEvent(event.type, event));
|
|
83
86
|
};
|
|
84
87
|
/**
|
|
@@ -87,7 +90,7 @@ export const forceDispatchKeyboardEvent = (event) => {
|
|
|
87
90
|
* NOTE: we usually want the backdrop container to be the first child of its immediate parent
|
|
88
91
|
* so that it properly lies under the content that we pick to show on top of the backdrop
|
|
89
92
|
*/
|
|
90
|
-
export const BackdropContainer = (props) => (_jsx("div", { className: "backdrop__container",
|
|
93
|
+
export const BackdropContainer = (props) => (_jsx("div", { className: "backdrop__container", "data-elementid": props.elementId }));
|
|
91
94
|
export const LegendApplicationComponentFrameworkProvider = observer((props) => {
|
|
92
95
|
const { children } = props;
|
|
93
96
|
const applicationStore = useApplicationStore();
|
|
@@ -95,10 +98,6 @@ export const LegendApplicationComponentFrameworkProvider = observer((props) => {
|
|
|
95
98
|
event.stopPropagation();
|
|
96
99
|
event.preventDefault();
|
|
97
100
|
};
|
|
98
|
-
const backdropContainer = applicationStore.layoutService
|
|
99
|
-
.backdropContainerElementID
|
|
100
|
-
? document.getElementById(applicationStore.layoutService.backdropContainerElementID) ?? document.getElementById(APP_BACKDROP_CONTAINER_ID)
|
|
101
|
-
: document.getElementById(APP_BACKDROP_CONTAINER_ID);
|
|
102
101
|
const keyBindingMap = buildHotkeysConfiguration(applicationStore.keyboardShortcutsService.commandKeyMap, (keyCombination, event) => {
|
|
103
102
|
// prevent default from potentially clashing key combinations with platform native keyboard shortcuts
|
|
104
103
|
// NOTE: Though tempting since it's a good way to simplify and potentially avoid conflicts,
|
|
@@ -128,7 +127,7 @@ export const LegendApplicationComponentFrameworkProvider = observer((props) => {
|
|
|
128
127
|
useEffect(() => {
|
|
129
128
|
const onVisibilityChange = () => {
|
|
130
129
|
if (document.hidden) {
|
|
131
|
-
|
|
130
|
+
LegendApplicationTelemetryHelper.logEvent_ApplicationUsageInterrupted(applicationStore.telemetryService);
|
|
132
131
|
applicationStore.timeService.recordUsageInterruption();
|
|
133
132
|
}
|
|
134
133
|
};
|
|
@@ -144,11 +143,9 @@ export const LegendApplicationComponentFrameworkProvider = observer((props) => {
|
|
|
144
143
|
// For example, the default location of the backdrop works fine for most cases
|
|
145
144
|
// but if we want to use the backdrop for elements within modal dialogs, we would
|
|
146
145
|
// need to mount the backdrop at a different location
|
|
147
|
-
_jsx(Portal, { container:
|
|
148
|
-
|
|
149
|
-
// dispatch keyboard event here in order to be captured by our global hotkeys matchers
|
|
150
|
-
id: APP_CONTAINER_ID,
|
|
146
|
+
_jsx(Portal, { container: applicationStore.layoutService.getElementByID(applicationStore.layoutService.backdropContainerElementID ??
|
|
147
|
+
APPLICATION_COMPONENT_ELEMENT_ID.BACKDROP_CONTAINER) ?? null, children: _jsx(Backdrop, { className: "backdrop", open: applicationStore.layoutService.showBackdrop }) })), _jsx(DndProvider, { backend: HTML5Backend, children: _jsxs("div", { className: "app__container", "data-elementid": APPLICATION_COMPONENT_ELEMENT_ID.TOP_LEVEL_CONTAINER,
|
|
151
148
|
// Disable global context menu so that only places in the app that supports context-menu will be effective
|
|
152
|
-
onContextMenu: disableContextMenu, children: [_jsx(BackdropContainer, {
|
|
149
|
+
onContextMenu: disableContextMenu, children: [_jsx(BackdropContainer, { elementId: APPLICATION_COMPONENT_ELEMENT_ID.BACKDROP_CONTAINER }), _jsx(VirtualAssistant, {}), children] }) })] }));
|
|
153
150
|
});
|
|
154
151
|
//# sourceMappingURL=LegendApplicationComponentFrameworkProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationComponentFrameworkProvider.js","sourceRoot":"","sources":["../../src/components/LegendApplicationComponentFrameworkProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,wBAAwB,GAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"LegendApplicationComponentFrameworkProvider.js","sourceRoot":"","sources":["../../src/components/LegendApplicationComponentFrameworkProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,y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AgB,CAAC,aAAa,CAAC,cAAc,CAC3C,gBAAgB,CAAC,aAAa,CAAC,0BAA0B;oBACvD,gCAAgC,CAAC,kBAAkB,CACtD,IAAI,IAAI,YAGX,KAAC,QAAQ,IACP,SAAS,EAAC,UAAU,EACpB,IAAI,EAAE,gBAAgB,CAAC,aAAa,CAAC,YAAY,GACjD,GACK,CACV,EACD,KAAC,WAAW,IAAC,OAAO,EAAE,YAAY,YAChC,eACE,SAAS,EAAC,gBAAgB,oBAIxB,gCAAgC,CAAC,mBAAmB;oBAEtD,0GAA0G;oBAC1G,aAAa,EAAE,kBAAkB,aAEjC,KAAC,iBAAiB,IAChB,SAAS,EAAE,gCAAgC,CAAC,kBAAkB,GAC9D,EACF,KAAC,gBAAgB,KAAG,EACnB,QAAQ,IACL,GACM,IACM,CACvB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationManager.d.ts","sourceRoot":"","sources":["../../src/components/NotificationManager.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAwBH,eAAO,MAAM,mBAAmB;;
|
|
1
|
+
{"version":3,"file":"NotificationManager.d.ts","sourceRoot":"","sources":["../../src/components/NotificationManager.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAwBH,eAAO,MAAM,mBAAmB;;CAuI9B,CAAC"}
|
|
@@ -74,7 +74,7 @@ export const NotificationManager = observer(() => {
|
|
|
74
74
|
}, message: _jsxs("div", { className: "notification__message__content", children: [notificationIcon, _jsx("div", { className: clsx('notification__message__content__text', {
|
|
75
75
|
'notification__message__content__text--expanded': isExpanded,
|
|
76
76
|
}), onClick: handleCopy, title: "Click to Copy", children: message })] }), action: [
|
|
77
|
-
_jsx("button", { className: "notification__action",
|
|
77
|
+
_jsx("button", { className: "notification__action", onClick: toggleExpansion, tabIndex: -1, title: isExpanded ? 'Collapse' : 'Expand', children: isExpanded ? _jsx(ChevronDownIcon, {}) : _jsx(ChevronUpIcon, {}) }, "expand"),
|
|
78
78
|
_jsx("button", { className: "notification__action", onClick: handleClose, tabIndex: -1, title: "Dismiss", children: _jsx(TimesIcon, {}) }, "close"),
|
|
79
79
|
] }) }, typeof message === 'string' || typeof message === 'number'
|
|
80
80
|
? message
|