@finos/legend-extension-dsl-text 6.0.67 → 6.0.69
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/components/studio/DSL_Text_LegendStudioApplicationPlugin.d.ts +1 -0
- package/lib/components/studio/DSL_Text_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/studio/DSL_Text_LegendStudioApplicationPlugin.js +6 -1
- package/lib/components/studio/DSL_Text_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +6 -6
- package/package.json +14 -14
- package/src/components/studio/DSL_Text_LegendStudioApplicationPlugin.tsx +10 -0
|
@@ -20,6 +20,7 @@ export declare class DSL_Text_LegendStudioApplicationPlugin extends LegendStudio
|
|
|
20
20
|
getExtraAccessEventLoggingApplicationContextKeys(): string[];
|
|
21
21
|
getExtraPureGrammarKeywords(): string[];
|
|
22
22
|
getExtraSupportedElementTypes(): string[];
|
|
23
|
+
getExtraSupportedElementTypesWithCategory?(): Map<string, string[]>;
|
|
23
24
|
getExtraElementClassifiers(): ElementClassifier[];
|
|
24
25
|
getExtraElementIconGetters(): ElementIconGetter[];
|
|
25
26
|
getExtraElementEditorRenderers(): ElementEditorRenderer[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Text_LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSL_Text_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,6BAA6B,EAC7B,KAAK,0BAA0B,EAG/B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,2CAA2C,EAEhD,KAAK,oCAAoC,EACzC,KAAK,wCAAwC,EAC7C,KAAK,gDAAgD,EACrD,KAAK,2CAA2C,
|
|
1
|
+
{"version":3,"file":"DSL_Text_LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSL_Text_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,6BAA6B,EAC7B,KAAK,0BAA0B,EAG/B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,2CAA2C,EAEhD,KAAK,oCAAoC,EACzC,KAAK,wCAAwC,EAC7C,KAAK,gDAAgD,EACrD,KAAK,2CAA2C,EAEjD,MAAM,kCAAkC,CAAC;AAsB1C,qBAAa,sCACX,SAAQ,6BACR,YAAW,2CAA2C;;IAM7C,iCAAiC,IAAI,MAAM,EAAE;IAO7C,gDAAgD,IAAI,MAAM,EAAE;IAMrE,2BAA2B,IAAI,MAAM,EAAE;IAIvC,6BAA6B,IAAI,MAAM,EAAE;IAIzC,yCAAyC,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IASnE,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,0BAA0B,IAAI,iBAAiB,EAAE;IAejD,8BAA8B,IAAI,qBAAqB,EAAE;IAWzD,mCAAmC,IAAI,0BAA0B,EAAE;IAenE,kCAAkC,IAAI,yBAAyB,EAAE;IAcjE,8BAA8B,IAAI,qBAAqB,EAAE;IAWzD,6CAA6C,IAAI,MAAM,EAAE;IAIzD,oDAAoD,IAAI,2CAA2C,EAAE;IAmBrG,6CAA6C,IAAI,oCAAoC,EAAE;IAgBvF,iDAAiD,IAAI,wCAAwC,EAAE;IAgB/F,yDAAyD,IAAI,gDAAgD,EAAE;CAsBhH"}
|
|
@@ -15,7 +15,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import packageJson from '../../../package.json' assert { type: 'json' };
|
|
18
|
-
import { LegendStudioApplicationPlugin, } from '@finos/legend-application-studio';
|
|
18
|
+
import { LegendStudioApplicationPlugin, PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY, } from '@finos/legend-application-studio';
|
|
19
19
|
import { FileIcon } from '@finos/legend-art';
|
|
20
20
|
import { TextEditorState } from '../../stores/studio/TextEditorState.js';
|
|
21
21
|
import { TextElementEditor } from './TextElementEditor.js';
|
|
@@ -49,6 +49,11 @@ export class DSL_Text_LegendStudioApplicationPlugin extends LegendStudioApplicat
|
|
|
49
49
|
getExtraSupportedElementTypes() {
|
|
50
50
|
return [TEXT_ELEMENT_TYPE];
|
|
51
51
|
}
|
|
52
|
+
getExtraSupportedElementTypesWithCategory() {
|
|
53
|
+
const elementTypesWithCategoryMap = new Map();
|
|
54
|
+
elementTypesWithCategoryMap.set(PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY.OTHER, [TEXT_ELEMENT_TYPE]);
|
|
55
|
+
return elementTypesWithCategoryMap;
|
|
56
|
+
}
|
|
52
57
|
getExtraElementClassifiers() {
|
|
53
58
|
return [
|
|
54
59
|
(element) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Text_LegendStudioApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/studio/DSL_Text_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACxE,OAAO,EACL,6BAA6B,
|
|
1
|
+
{"version":3,"file":"DSL_Text_LegendStudioApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/studio/DSL_Text_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACxE,OAAO,EACL,6BAA6B,EAe7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AAI,EAAE,oCAAoC;wBAC1C,WAAW,EAAE,YAAY;wBACzB,UAAU,EAAE,kBAAkB;qBAC/B;oBACD;wBACE,IAAI,EAAE,oCAAoC;wBAC1C,WAAW,EAAE,UAAU;wBACvB,UAAU,EAAE,qBAAqB;qBAClC;iBACF;gBACH,CAAC,CAAC,SAAS;SAChB,CAAC;IACJ,CAAC;CACF"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-extension-dsl-text",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.69",
|
|
4
4
|
"description": "Legend extension for Text DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@finos/legend-lego": "workspace:*",
|
|
52
52
|
"@finos/legend-shared": "workspace:*",
|
|
53
53
|
"@finos/legend-storage": "workspace:*",
|
|
54
|
-
"@types/react": "18.2.
|
|
54
|
+
"@types/react": "18.2.20",
|
|
55
55
|
"mobx": "6.10.0",
|
|
56
56
|
"mobx-react-lite": "3.4.3",
|
|
57
57
|
"react": "18.2.0",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@finos/legend-dev-utils": "workspace:*",
|
|
62
|
-
"@jest/globals": "29.6.
|
|
62
|
+
"@jest/globals": "29.6.3",
|
|
63
63
|
"cross-env": "7.0.3",
|
|
64
|
-
"eslint": "8.
|
|
65
|
-
"jest": "29.6.
|
|
64
|
+
"eslint": "8.47.0",
|
|
65
|
+
"jest": "29.6.3",
|
|
66
66
|
"npm-run-all": "4.1.5",
|
|
67
67
|
"rimraf": "5.0.1",
|
|
68
|
-
"sass": "1.
|
|
68
|
+
"sass": "1.66.1",
|
|
69
69
|
"typescript": "5.1.6"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-extension-dsl-text",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.69",
|
|
4
4
|
"description": "Legend extension for Text DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -44,28 +44,28 @@
|
|
|
44
44
|
"test:watch": "jest --watch"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@finos/legend-application": "15.0.
|
|
48
|
-
"@finos/legend-application-studio": "28.
|
|
49
|
-
"@finos/legend-art": "7.0.
|
|
50
|
-
"@finos/legend-graph": "31.1.
|
|
51
|
-
"@finos/legend-lego": "1.1.
|
|
52
|
-
"@finos/legend-shared": "10.0.
|
|
53
|
-
"@finos/legend-storage": "3.0.
|
|
54
|
-
"@types/react": "18.2.
|
|
47
|
+
"@finos/legend-application": "15.0.37",
|
|
48
|
+
"@finos/legend-application-studio": "28.3.0",
|
|
49
|
+
"@finos/legend-art": "7.0.37",
|
|
50
|
+
"@finos/legend-graph": "31.1.7",
|
|
51
|
+
"@finos/legend-lego": "1.1.23",
|
|
52
|
+
"@finos/legend-shared": "10.0.23",
|
|
53
|
+
"@finos/legend-storage": "3.0.73",
|
|
54
|
+
"@types/react": "18.2.20",
|
|
55
55
|
"mobx": "6.10.0",
|
|
56
56
|
"mobx-react-lite": "3.4.3",
|
|
57
57
|
"react": "18.2.0",
|
|
58
58
|
"serializr": "3.0.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@finos/legend-dev-utils": "2.0.
|
|
62
|
-
"@jest/globals": "29.6.
|
|
61
|
+
"@finos/legend-dev-utils": "2.0.77",
|
|
62
|
+
"@jest/globals": "29.6.3",
|
|
63
63
|
"cross-env": "7.0.3",
|
|
64
|
-
"eslint": "8.
|
|
65
|
-
"jest": "29.6.
|
|
64
|
+
"eslint": "8.47.0",
|
|
65
|
+
"jest": "29.6.3",
|
|
66
66
|
"npm-run-all": "4.1.5",
|
|
67
67
|
"rimraf": "5.0.1",
|
|
68
|
-
"sass": "1.
|
|
68
|
+
"sass": "1.66.1",
|
|
69
69
|
"typescript": "5.1.6"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
type PureGrammarParserKeywordSuggestionGetter,
|
|
32
32
|
type PureGrammarParserElementSnippetSuggestionsGetter,
|
|
33
33
|
type PureGrammarParserElementDocumentationGetter,
|
|
34
|
+
PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY,
|
|
34
35
|
} from '@finos/legend-application-studio';
|
|
35
36
|
import { FileIcon } from '@finos/legend-art';
|
|
36
37
|
import { TextEditorState } from '../../stores/studio/TextEditorState.js';
|
|
@@ -82,6 +83,15 @@ export class DSL_Text_LegendStudioApplicationPlugin
|
|
|
82
83
|
return [TEXT_ELEMENT_TYPE];
|
|
83
84
|
}
|
|
84
85
|
|
|
86
|
+
getExtraSupportedElementTypesWithCategory?(): Map<string, string[]> {
|
|
87
|
+
const elementTypesWithCategoryMap = new Map<string, string[]>();
|
|
88
|
+
elementTypesWithCategoryMap.set(
|
|
89
|
+
PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY.OTHER,
|
|
90
|
+
[TEXT_ELEMENT_TYPE],
|
|
91
|
+
);
|
|
92
|
+
return elementTypesWithCategoryMap;
|
|
93
|
+
}
|
|
94
|
+
|
|
85
95
|
getExtraElementClassifiers(): ElementClassifier[] {
|
|
86
96
|
return [
|
|
87
97
|
(element: PackageableElement): string | undefined => {
|