@finos/legend-extension-dsl-diagram 8.0.18 → 8.0.20
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.d.ts +1 -3
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.js +0 -13
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/package.json +9 -9
- package/src/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.tsx +0 -16
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { LegendStudioApplicationPlugin, type NewElementFromStateCreator, type ElementEditorStateCreator, type ElementClassifier, type DragElementClassifier, type ElementIconGetter, type ElementEditorRenderer, type DSL_LegendStudioApplicationPlugin_Extension, type ElementEditorPostDeleteAction, type ElementEditorPostRenameAction, type ClassPreviewRenderer, type PureGrammarParserDocumentationGetter, type PureGrammarParserElementDocumentationGetter, type PureGrammarParserKeywordSuggestionGetter, type PureGrammarParserElementSnippetSuggestionsGetter
|
16
|
+
import { LegendStudioApplicationPlugin, type NewElementFromStateCreator, type ElementEditorStateCreator, type ElementClassifier, type DragElementClassifier, type ElementIconGetter, type ElementEditorRenderer, type DSL_LegendStudioApplicationPlugin_Extension, type ElementEditorPostDeleteAction, type ElementEditorPostRenameAction, type ClassPreviewRenderer, type PureGrammarParserDocumentationGetter, type PureGrammarParserElementDocumentationGetter, type PureGrammarParserKeywordSuggestionGetter, type PureGrammarParserElementSnippetSuggestionsGetter } from '@finos/legend-application-studio';
|
17
17
|
import { type KeyedCommandConfigEntry } from '@finos/legend-application';
|
18
18
|
export declare class DSL_Diagram_LegendStudioApplicationPlugin extends LegendStudioApplicationPlugin implements DSL_LegendStudioApplicationPlugin_Extension {
|
19
19
|
constructor();
|
@@ -21,9 +21,7 @@ export declare class DSL_Diagram_LegendStudioApplicationPlugin extends LegendStu
|
|
21
21
|
getExtraRequiredDocumentationKeys(): string[];
|
22
22
|
getExtraClassPreviewRenderers(): ClassPreviewRenderer[];
|
23
23
|
getExtraAccessEventLoggingApplicationContextKeys(): string[];
|
24
|
-
getExtraPureGrammarParserNames(): string[];
|
25
24
|
getExtraPureGrammarKeywords(): string[];
|
26
|
-
getExtraPureGrammarElementLabelers(): PureGrammarElementLabeler[];
|
27
25
|
getExtraSupportedElementTypes(): string[];
|
28
26
|
getExtraElementClassifiers(): ElementClassifier[];
|
29
27
|
getExtraElementIconGetters(): ElementIconGetter[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSL_Diagram_LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSL_Diagram_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,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,oCAAoC,EACzC,KAAK,2CAA2C,EAChD,KAAK,wCAAwC,EAC7C,KAAK,gDAAgD,
|
1
|
+
{"version":3,"file":"DSL_Diagram_LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSL_Diagram_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,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,oCAAoC,EACzC,KAAK,2CAA2C,EAChD,KAAK,wCAAwC,EAC7C,KAAK,gDAAgD,EACtD,MAAM,kCAAkC,CAAC;AAc1C,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,2BAA2B,CAAC;AAWnC,qBAAa,yCACX,SAAQ,6BACR,YAAW,2CAA2C;;IAM7C,iCAAiC,IAAI,uBAAuB,EAAE;IAM9D,iCAAiC,IAAI,MAAM,EAAE;IAO7C,6BAA6B,IAAI,oBAAoB,EAAE;IAQvD,gDAAgD,IAAI,MAAM,EAAE;IAMrE,2BAA2B,IAAI,MAAM,EAAE;IAIvC,6BAA6B,IAAI,MAAM,EAAE;IAIzC,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,sCAAsC,IAAI,6BAA6B,EAAE;IAazE,sCAAsC,IAAI,6BAA6B,EAAE;IAazE,oDAAoD,IAAI,2CAA2C,EAAE;IAmBrG,6CAA6C,IAAI,oCAAoC,EAAE;IAgBvF,iDAAiD,IAAI,wCAAwC,EAAE;IAgB/F,yDAAyD,IAAI,gDAAgD,EAAE;CAgChH"}
|
@@ -53,22 +53,9 @@ export class DSL_Diagram_LegendStudioApplicationPlugin extends LegendStudioAppli
|
|
53
53
|
DSL_DIAGRAM_LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.DIAGRAM_EDITOR,
|
54
54
|
];
|
55
55
|
}
|
56
|
-
getExtraPureGrammarParserNames() {
|
57
|
-
return [PURE_GRAMMAR_DIAGRAM_PARSER_NAME];
|
58
|
-
}
|
59
56
|
getExtraPureGrammarKeywords() {
|
60
57
|
return [PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL];
|
61
58
|
}
|
62
|
-
getExtraPureGrammarElementLabelers() {
|
63
|
-
return [
|
64
|
-
(element) => {
|
65
|
-
if (element instanceof Diagram) {
|
66
|
-
return PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL;
|
67
|
-
}
|
68
|
-
return undefined;
|
69
|
-
},
|
70
|
-
];
|
71
|
-
}
|
72
59
|
getExtraSupportedElementTypes() {
|
73
60
|
return [DIAGRAM_ELEMENT_TYPE];
|
74
61
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSL_Diagram_LegendStudioApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EACL,6BAA6B,
|
1
|
+
{"version":3,"file":"DSL_Diagram_LegendStudioApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EACL,6BAA6B,GAkB9B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,+EAA+E,CAAC;AACxG,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,2CAA2C,EAAE,MAAM,+DAA+D,CAAC;AAC5H,OAAO,EACL,qB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BACtC,WAAW,EAAE,OAAO;oBACpB,aAAa,EACX,WAAW,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,WAAW,CAC3D,2CAA2C,CAAC,cAAc,CAC3D;oBACH,UAAU,EAAE,gCAAgC;iBAC7C;aACF;SACF,CAAC;IACJ,CAAC;IAED,yDAAyD;QACvD,OAAO;YACL,CACE,WAAwB,EACxB,aAAqB,EACoB,EAAE,CAC3C,aAAa,KAAK,gCAAgC;gBAChD,CAAC,CAAC;oBACE;wBACE,IAAI,EAAE,uCAAuC;wBAC7C,WAAW,EAAE,SAAS;wBACtB,UAAU,EAAE,qBAAqB;qBAClC;oBACD;wBACE,IAAI,EAAE,uCAAuC;wBAC7C,WAAW,EAAE,YAAY;wBACzB,UAAU,EAAE,iCAAiC,EAAE;qBAChD;oBACD;wBACE,IAAI,EAAE,uCAAuC;wBAC7C,WAAW,EAAE,kBAAkB;wBAC/B,UAAU,EAAE,uCAAuC,EAAE;qBACtD;oBACD;wBACE,IAAI,EAAE,uCAAuC;wBAC7C,WAAW,EAAE,kBAAkB;wBAC/B,UAAU,EAAE,iCAAiC,EAAE;qBAChD;iBACF;gBACH,CAAC,CAAC,SAAS;SAChB,CAAC;IACJ,CAAC;CACF"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-extension-dsl-diagram",
|
3
|
-
"version": "8.0.
|
3
|
+
"version": "8.0.20",
|
4
4
|
"description": "Legend extension for Diagram DSL",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -45,13 +45,13 @@
|
|
45
45
|
"test:watch": "jest --watch"
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
|
-
"@finos/legend-application": "15.0.
|
49
|
-
"@finos/legend-application-studio": "
|
50
|
-
"@finos/legend-art": "7.0.
|
51
|
-
"@finos/legend-graph": "
|
52
|
-
"@finos/legend-lego": "1.0.
|
53
|
-
"@finos/legend-shared": "10.0.
|
54
|
-
"@finos/legend-storage": "3.0.
|
48
|
+
"@finos/legend-application": "15.0.14",
|
49
|
+
"@finos/legend-application-studio": "26.0.0",
|
50
|
+
"@finos/legend-art": "7.0.15",
|
51
|
+
"@finos/legend-graph": "29.0.0",
|
52
|
+
"@finos/legend-lego": "1.0.7",
|
53
|
+
"@finos/legend-shared": "10.0.6",
|
54
|
+
"@finos/legend-storage": "3.0.56",
|
55
55
|
"@types/react": "18.2.6",
|
56
56
|
"mobx": "6.9.0",
|
57
57
|
"mobx-react-lite": "3.4.3",
|
@@ -61,7 +61,7 @@
|
|
61
61
|
"serializr": "3.0.2"
|
62
62
|
},
|
63
63
|
"devDependencies": {
|
64
|
-
"@finos/legend-dev-utils": "2.0.
|
64
|
+
"@finos/legend-dev-utils": "2.0.61",
|
65
65
|
"@jest/globals": "29.5.0",
|
66
66
|
"@testing-library/react": "14.0.0",
|
67
67
|
"cross-env": "7.0.3",
|
@@ -34,7 +34,6 @@ import {
|
|
34
34
|
type PureGrammarParserElementDocumentationGetter,
|
35
35
|
type PureGrammarParserKeywordSuggestionGetter,
|
36
36
|
type PureGrammarParserElementSnippetSuggestionsGetter,
|
37
|
-
type PureGrammarElementLabeler,
|
38
37
|
} from '@finos/legend-application-studio';
|
39
38
|
import { ShapesIcon } from '@finos/legend-art';
|
40
39
|
import type { Class, PackageableElement } from '@finos/legend-graph';
|
@@ -99,25 +98,10 @@ export class DSL_Diagram_LegendStudioApplicationPlugin
|
|
99
98
|
];
|
100
99
|
}
|
101
100
|
|
102
|
-
getExtraPureGrammarParserNames(): string[] {
|
103
|
-
return [PURE_GRAMMAR_DIAGRAM_PARSER_NAME];
|
104
|
-
}
|
105
|
-
|
106
101
|
getExtraPureGrammarKeywords(): string[] {
|
107
102
|
return [PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL];
|
108
103
|
}
|
109
104
|
|
110
|
-
getExtraPureGrammarElementLabelers(): PureGrammarElementLabeler[] {
|
111
|
-
return [
|
112
|
-
(element: PackageableElement): string | undefined => {
|
113
|
-
if (element instanceof Diagram) {
|
114
|
-
return PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL;
|
115
|
-
}
|
116
|
-
return undefined;
|
117
|
-
},
|
118
|
-
];
|
119
|
-
}
|
120
|
-
|
121
105
|
getExtraSupportedElementTypes(): string[] {
|
122
106
|
return [DIAGRAM_ELEMENT_TYPE];
|
123
107
|
}
|