@finos/legend-extension-dsl-diagram 1.0.35 → 1.0.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramEditor.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DiagramEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA+xCH,eAAO,MAAM,aAAa;;CAmDxB,CAAC"}
1
+ {"version":3,"file":"DiagramEditor.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DiagramEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAyxCH,eAAO,MAAM,aAAa;;CAmDxB,CAAC"}
@@ -25,7 +25,7 @@ import { Class, DerivedProperty, Property, Multiplicity, ELEMENT_PATH_DELIMITER,
25
25
  import { guaranteeNonNullable, isNonNullable, prettyCONSTName, } from '@finos/legend-shared';
26
26
  import { flowResult } from 'mobx';
27
27
  import { useApplicationStore, } from '@finos/legend-application';
28
- import { ClassFormEditor, CORE_DND_TYPE, ElementDragSource, useEditorStore, property_setName, property_setGenericType, property_setMultiplicity, package_addElement, } from '@finos/legend-studio';
28
+ import { ClassFormEditor, CORE_DND_TYPE, ElementDragSource, useEditorStore, property_setName, property_setGenericType, property_setMultiplicity, } from '@finos/legend-studio';
29
29
  import { cleanUpDeadReferencesInDiagram } from '../../helpers/DiagramHelper';
30
30
  import { Point } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point';
31
31
  import { classView_setHideProperties, classView_setHideStereotypes, classView_setHideTaggedValues, } from '../../stores/studio/DSLDiagram_GraphModifierHelper';
@@ -231,8 +231,7 @@ const DiagramEditorInlineClassCreatorInner = observer((props) => {
231
231
  diagramEditorState.setInlineClassCreatorState(undefined);
232
232
  const [packagePath, name] = resolvePackagePathAndElementName(path);
233
233
  const _class = new Class(name);
234
- package_addElement(editorStore.graphManagerState.graph.getOrCreatePackage(packagePath), _class, editorStore.changeDetectionState.observerContext);
235
- await flowResult(editorStore.addElement(_class, false));
234
+ await flowResult(editorStore.addElement(_class, packagePath, false));
236
235
  diagramEditorState.renderer.addClassView(_class, inlineClassCreatorState.point);
237
236
  }
238
237
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramEditor.js","sourceRoot":"","sources":["../../../src/components/studio/DiagramEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,QAAQ,EACR,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAA0B,OAAO,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,8BAA8B,EAC9B,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAIL,6BAA6B,EAC7B,0CAA0C,EAC1C,kBAAkB,GACnB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEL,WAAW,EACX,gCAAgC,EAChC,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,WAAW,EACX,MAAM,GACP,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,EACL,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,sBAAsB,EACtB,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,qBAAqB,CAAC;AAC7B,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AAE,kBAAkB,GACtC,IACD,CACJ,IACW,IACV,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"DiagramEditor.js","sourceRoot":"","sources":["../../../src/components/studio/DiagramEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,QAAQ,EACR,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAA0B,OAAO,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,8BAA8B,EAC9B,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAIL,6BAA6B,EAC7B,0CAA0C,EAC1C,kBAAkB,GACnB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEL,WAAW,EACX,gCAAgC,EAChC,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,WAAW,EACX,MAAM,GACP,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,EACL,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,sBAAsB,EACtB,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,aAAa,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CAAC,CAAC;IACxD,MAAM,gBAAgB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IACtD,MAAM,kBAAkB,GAAG,GAAS,EAAE,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,CAAC;IAE7E,OAAO,CACL,eAAK,SAAS,EAAC,gBAAgB,aAC7B,cAAK,SAAS,EAAC,wBAAwB,YACpC,kBAAkB,CAAC,4BAA4B,IAAI,CAClD,KAAC,mBAAmB,IAAC,kBAAkB,EAAE,kBAAkB,GAAI,CAChE,GACG,EACN,eAAK,SAAS,EAAC,yBAAyB,aACrC,kBAAkB,CAAC,4BAA4B,IAAI,CAClD,KAAC,oBAAoB,IAAC,kBAAkB,EAAE,kBAAkB,GAAI,CACjE,EACD,MAAC,WAAW,IACV,SAAS,EAAC,uBAAuB,EACjC,OAAO,EACL,KAAC,wBAAwB,IAAC,kBAAkB,EAAE,kBAAkB,GAAI,EAEtE,QAAQ,EAAE,CAAC,kBAAkB,CAAC,eAAe,EAC7C,SAAS,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EAC3B,OAAO,EAAE,kBAAkB,aAE1B,kBAAkB,CAAC,4BAA4B,IAAI,CAClD,KAAC,sBAAsB,IAAC,kBAAkB,EAAE,kBAAkB,GAAI,CACnE,EACD,KAAC,0BAA0B,IACzB,kBAAkB,EAAE,kBAAkB,EACtC,GAAG,EAAE,gBAAgB,GACrB,EACD,kBAAkB,CAAC,4BAA4B,IAAI,CAClD,8BACE,KAAC,iCAAiC,IAChC,kBAAkB,EAAE,kBAAkB,GACtC,EACF,KAAC,+BAA+B,IAC9B,kBAAkB,EAAE,kBAAkB,GACtC,EACF,KAAC,+BAA+B,IAC9B,kBAAkB,EAAE,kBAAkB,GACtC,IACD,CACJ,IACW,IACV,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -13,7 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { PureModel } from '@finos/legend-graph';
16
+ import type { BasicModel, PureModel } from '@finos/legend-graph';
17
17
  import { Diagram } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
18
18
  export declare const getDiagram: (path: string, graph: PureModel) => Diagram;
19
+ export declare const getOwnDiagram: (path: string, graph: BasicModel) => Diagram;
19
20
  //# sourceMappingURL=DSLDiagram_GraphManagerHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_GraphManagerHelper.d.ts","sourceRoot":"","sources":["../../src/graphManager/DSLDiagram_GraphManagerHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,0EAA0E,CAAC;AAEnG,eAAO,MAAM,UAAU,SAAU,MAAM,SAAS,SAAS,KAAG,OACc,CAAC"}
1
+ {"version":3,"file":"DSLDiagram_GraphManagerHelper.d.ts","sourceRoot":"","sources":["../../src/graphManager/DSLDiagram_GraphManagerHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,EAAE,OAAO,EAAE,MAAM,0EAA0E,CAAC;AAEnG,eAAO,MAAM,UAAU,SAAU,MAAM,SAAS,SAAS,KAAG,OACc,CAAC;AAE3E,eAAO,MAAM,aAAa,SAAU,MAAM,SAAS,UAAU,KAAG,OAI7D,CAAC"}
@@ -13,6 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { guaranteeNonNullable } from '@finos/legend-shared';
16
17
  import { Diagram } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
17
18
  export const getDiagram = (path, graph) => graph.getExtensionElement(path, Diagram, `Can't find diagram '${path}'`);
19
+ export const getOwnDiagram = (path, graph) => guaranteeNonNullable(graph.getOwnNullableExtensionElement(path, Diagram), `Can't find diagram '${path}'`);
18
20
  //# sourceMappingURL=DSLDiagram_GraphManagerHelper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_GraphManagerHelper.js","sourceRoot":"","sources":["../../src/graphManager/DSLDiagram_GraphManagerHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,0EAA0E,CAAC;AAEnG,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,KAAgB,EAAW,EAAE,CACpE,KAAK,CAAC,mBAAmB,CAAC,IAAI,EAAE,OAAO,EAAE,uBAAuB,IAAI,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"DSLDiagram_GraphManagerHelper.js","sourceRoot":"","sources":["../../src/graphManager/DSLDiagram_GraphManagerHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,0EAA0E,CAAC;AAEnG,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,KAAgB,EAAW,EAAE,CACpE,KAAK,CAAC,mBAAmB,CAAC,IAAI,EAAE,OAAO,EAAE,uBAAuB,IAAI,GAAG,CAAC,CAAC;AAE3E,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,KAAiB,EAAW,EAAE,CACxE,oBAAoB,CAClB,KAAK,CAAC,8BAA8B,CAAC,IAAI,EAAE,OAAO,CAAC,EACnD,uBAAuB,IAAI,GAAG,CAC/B,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-extension-dsl-diagram v1.0.35
1
+ /** @license @finos/legend-extension-dsl-diagram v1.0.36
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/index.d.ts CHANGED
@@ -29,5 +29,6 @@ export { Point } from './models/metamodels/pure/packageableElements/diagram/geom
29
29
  export { Rectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle';
30
30
  export { PositionedRectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle';
31
31
  export * from './helpers/DiagramHelper';
32
+ export * from './graphManager/DSLDiagram_GraphManagerHelper';
32
33
  export { V1_DSLDiagram_PackageableElementPointerType } from './models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin';
33
34
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,cAAc,6DAA6D,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,yEAAyE,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,2EAA2E,CAAC;AACtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kFAAkF,CAAC;AACpH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,YAAY,EAAE,MAAM,8EAA8E,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,iFAAiF,CAAC;AAClH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,KAAK,EAAE,MAAM,gFAAgF,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,oFAAoF,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,8FAA8F,CAAC;AAEnI,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,2CAA2C,EAAE,MAAM,gEAAgE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,cAAc,6DAA6D,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,yEAAyE,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,2EAA2E,CAAC;AACtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kFAAkF,CAAC;AACpH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,YAAY,EAAE,MAAM,8EAA8E,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,iFAAiF,CAAC;AAClH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,KAAK,EAAE,MAAM,gFAAgF,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,oFAAoF,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,8FAA8F,CAAC;AAEnI,cAAc,yBAAyB,CAAC;AACxC,cAAc,8CAA8C,CAAC;AAC7D,OAAO,EAAE,2CAA2C,EAAE,MAAM,gEAAgE,CAAC"}
package/lib/index.js CHANGED
@@ -29,5 +29,6 @@ export { Point } from './models/metamodels/pure/packageableElements/diagram/geom
29
29
  export { Rectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle';
30
30
  export { PositionedRectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle';
31
31
  export * from './helpers/DiagramHelper';
32
+ export * from './graphManager/DSLDiagram_GraphManagerHelper';
32
33
  export { V1_DSLDiagram_PackageableElementPointerType } from './models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin';
33
34
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,cAAc,6DAA6D,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,yEAAyE,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,2EAA2E,CAAC;AACtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kFAAkF,CAAC;AACpH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,YAAY,EAAE,MAAM,8EAA8E,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,iFAAiF,CAAC;AAClH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,KAAK,EAAE,MAAM,gFAAgF,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,oFAAoF,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,8FAA8F,CAAC;AAEnI,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,2CAA2C,EAAE,MAAM,gEAAgE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,cAAc,6DAA6D,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,yEAAyE,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,2EAA2E,CAAC;AACtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kFAAkF,CAAC;AACpH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,YAAY,EAAE,MAAM,8EAA8E,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,iFAAiF,CAAC;AAClH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,KAAK,EAAE,MAAM,gFAAgF,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,oFAAoF,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,8FAA8F,CAAC;AAEnI,cAAc,yBAAyB,CAAC;AACxC,cAAc,8CAA8C,CAAC;AAC7D,OAAO,EAAE,2CAA2C,EAAE,MAAM,gEAAgE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,EAEL,KAAK,sCAAsC,EAC3C,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAG1B,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAa7B,eAAO,MAAM,2CAA2C,YAAY,CAAC;AAErE,qBAAa,sCAAuC,SAAQ,2BAA2B;;IAQ5E,0BAA0B,IAAI,iBAAiB,CAAC,qBAAqB,CAAC,EAAE;IAgDxE,uCAAuC,IAAI,sCAAsC,EAAE;IAWnF,qCAAqC,IAAI,4BAA4B,EAAE;IAcvE,uCAAuC,IAAI,8BAA8B,EAAE;IAc3E,8BAA8B,IAAI,qBAAqB,EAAE;IAczD,gCAAgC,IAAI,MAAM,EAAE;CAOtD"}
1
+ {"version":3,"file":"DSLDiagram_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,EAEL,KAAK,sCAAsC,EAC3C,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAG1B,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAa7B,eAAO,MAAM,2CAA2C,YAAY,CAAC;AAErE,qBAAa,sCAAuC,SAAQ,2BAA2B;;IAQ5E,0BAA0B,IAAI,iBAAiB,CAAC,qBAAqB,CAAC,EAAE;IAgDxE,uCAAuC,IAAI,sCAAsC,EAAE;IAWnF,qCAAqC,IAAI,4BAA4B,EAAE;IAcvE,uCAAuC,IAAI,8BAA8B,EAAE;IAc3E,8BAA8B,IAAI,qBAAqB,EAAE;IAczD,gCAAgC,IAAI,MAAM,EAAE;CAOtD"}
@@ -18,10 +18,10 @@ import { V1_Diagram } from './v1/model/packageableElements/diagram/V1_DSLDiagram
18
18
  import { assertType } from '@finos/legend-shared';
19
19
  import { deserialize, serialize } from 'serializr';
20
20
  import { V1_diagramModelSchema, V1_DIAGRAM_ELEMENT_PROTOCOL_TYPE, } from './v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper';
21
- import { PureProtocolProcessorPlugin, V1_ElementBuilder, } from '@finos/legend-graph';
21
+ import { PureProtocolProcessorPlugin, V1_ElementBuilder, V1_buildFullPath, } from '@finos/legend-graph';
22
22
  import { V1_transformDiagram } from './v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper';
23
23
  import { Diagram } from '../../metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
24
- import { getDiagram } from '../../../graphManager/DSLDiagram_GraphManagerHelper';
24
+ import { getOwnDiagram } from '../../../graphManager/DSLDiagram_GraphManagerHelper';
25
25
  import { V1_buildClassView, V1_buildGeneralizationView, V1_buildPropertyView, } from './v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper';
26
26
  const DIAGRAM_ELEMENT_CLASSIFIER_PATH = 'meta::pure::metamodel::diagram::Diagram';
27
27
  export const V1_DSLDiagram_PackageableElementPointerType = 'DIAGRAM';
@@ -37,14 +37,14 @@ export class DSLDiagram_PureProtocolProcessorPlugin extends PureProtocolProcesso
37
37
  firstPass: (elementProtocol, context) => {
38
38
  assertType(elementProtocol, V1_Diagram);
39
39
  const element = new Diagram(elementProtocol.name);
40
- const path = context.currentSubGraph.buildPath(elementProtocol.package, elementProtocol.name);
40
+ const path = V1_buildFullPath(elementProtocol.package, elementProtocol.name);
41
41
  context.currentSubGraph.setOwnElementInExtension(path, element, Diagram);
42
42
  return element;
43
43
  },
44
44
  secondPass: (elementProtocol, context) => {
45
45
  assertType(elementProtocol, V1_Diagram);
46
- const path = context.graph.buildPath(elementProtocol.package, elementProtocol.name);
47
- const element = getDiagram(path, context.graph);
46
+ const path = V1_buildFullPath(elementProtocol.package, elementProtocol.name);
47
+ const element = getOwnDiagram(path, context.currentSubGraph);
48
48
  element.classViews = elementProtocol.classViews.map((classView) => V1_buildClassView(classView, context, element));
49
49
  element.propertyViews = elementProtocol.propertyViews.map((propertyView) => V1_buildPropertyView(propertyView, context, element));
50
50
  element.generalizationViews = elementProtocol.generalizationViews.map((generalizationView) => V1_buildGeneralizationView(generalizationView, element));
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_PureProtocolProcess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;IAEQ,qCAAqC;QAC5C,OAAO;YACL,CACE,eAAsC,EACtC,OAAsC,EACU,EAAE;gBAClD,IAAI,eAAe,YAAY,UAAU,EAAE;oBACzC,OAAO,SAAS,CAAC,qBAAqB,EAAE,eAAe,CAAC,CAAC;iBAC1D;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAEQ,uCAAuC;QAC9C,OAAO;YACL,CACE,IAAwC,EACxC,OAAsC,EACH,EAAE;gBACrC,IAAI,IAAI,CAAC,KAAK,KAAK,gCAAgC,EAAE;oBACnD,OAAO,WAAW,CAAC,qBAAqB,EAAE,IAAI,CAAC,CAAC;iBACjD;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAEQ,8BAA8B;QACrC,OAAO;YACL,CACE,SAA6B,EAC7B,OAAmC,EACA,EAAE;gBACrC,IAAI,SAAS,YAAY,OAAO,EAAE;oBAChC,OAAO,mBAAmB,CAAC,SAAS,CAAC,CAAC;iBACvC;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAEQ,gCAAgC;QACvC,OAAO;YACL,wBAAwB;YACxB,6BAA6B;YAC7B,6BAA6B;SAC9B,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"DSLDiagram_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAC;AAC1F,OAAO,EAAoB,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EACL,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,+DAA+D,CAAC;AACvE,OA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gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAEQ,8BAA8B;QACrC,OAAO;YACL,CACE,SAA6B,EAC7B,OAAmC,EACA,EAAE;gBACrC,IAAI,SAAS,YAAY,OAAO,EAAE;oBAChC,OAAO,mBAAmB,CAAC,SAAS,CAAC,CAAC;iBACvC;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAEQ,gCAAgC;QACvC,OAAO;YACL,wBAAwB;YACxB,6BAA6B;YAC7B,6BAA6B;SAC9B,CAAC;IACJ,CAAC;CACF"}
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-diagram",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "Legend extension for Diagram DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -64,7 +64,7 @@
64
64
  "jest-canvas-mock": "2.3.1",
65
65
  "npm-run-all": "4.1.5",
66
66
  "rimraf": "3.0.2",
67
- "sass": "1.50.0",
67
+ "sass": "1.50.1",
68
68
  "typescript": "4.6.3"
69
69
  },
70
70
  "peerDependencies": {
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAuB,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAOvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAChB,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+EAA+E,CAAC;AAC/G,OAAO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EAAE,WAAW,GACvB,kBAAkB;CAItB"}
1
+ {"version":3,"file":"DiagramEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAuB,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAOvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAChB,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+EAA+E,CAAC;AAC/G,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oFAAoF,CAAC;AAChH,OAAO,EAAE,OAAO,EAAE,MAAM,6EAA6E,CAAC;AAyBtG,8BAAsB,2BAA2B;IAC/C,IAAI,SAAU;IACd,WAAW,EAAE,WAAW,CAAC;IACzB,kBAAkB,EAAE,kBAAkB,CAAC;gBAGrC,WAAW,EAAE,WAAW,EACxB,kBAAkB,EAAE,kBAAkB;CAKzC;AAED,oBAAY,6BAA6B;IACvC,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,qBAAa,0CAA2C,SAAQ,2BAA2B;IACzF,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,gCAAyC;gBAGlD,WAAW,EAAE,WAAW,EACxB,kBAAkB,EAAE,kBAAkB,EACtC,SAAS,EAAE,SAAS;IAoBtB,cAAc,CAAC,GAAG,EAAE,6BAA6B,GAAG,IAAI;CAGzD;AAED,qBAAa,oCAAoC;IAC/C,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,KAAK,EAAE,KAAK,CAAC;gBAED,kBAAkB,EAAE,kBAAkB,EAAE,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GAAG,EAAE,2BAA2B,GAAG,SAAS,GAAG,IAAI;IAIrE,4BAA4B,CAC1B,GAAG,EAAE,sCAAsC,GAAG,SAAS,GACtD,IAAI;IAIP,0BAA0B,CACxB,GAAG,EAAE,oCAAoC,GAAG,SAAS,GACpD,IAAI;IAIP,0BAA0B,CACxB,GAAG,EAAE,oCAAoC,GAAG,SAAS,GACpD,IAAI;IAIP,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAItC,uBAAuB,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;IAIzD,gBAAgB,IAAI,IAAI;IAIxB,aAAa,IAAI,IAAI;IAiIrB,OAAO,IAAI,IAAI;IAIf,OAAO,CAAC,yBAAyB,CAuBrB;IAEZ,SAAS,CACP,UAAU,EAAE,kBAAkB,EAC9B,WAAW,EAAE,WAAW,GACvB,kBAAkB;CAItB"}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { computed, action, makeObservable, observable } from 'mobx';
17
- import { guaranteeNonNullable, guaranteeType, uuid, } from '@finos/legend-shared';
17
+ import { guaranteeNonNullable, guaranteeType, isType, uuid, } from '@finos/legend-shared';
18
18
  import { DIAGRAM_INTERACTION_MODE, } from '../../DiagramRenderer';
19
19
  import { HotkeyConfiguration, PanelDisplayState } from '@finos/legend-art';
20
20
  import { GenericTypeExplicitReference, PRIMITIVE_TYPE, TYPICAL_MULTIPLICITY_TYPE, Property, GenericType, PropertyExplicitReference, } from '@finos/legend-graph';
@@ -66,7 +66,7 @@ export class DiagramEditorClassViewEditorSidePanelState extends DiagramEditorSid
66
66
  setSelectedTab: action,
67
67
  });
68
68
  this.classView = classView;
69
- this.classEditorState = guaranteeType(this.editorStore.openedEditorStates.find((elementState) => elementState instanceof ClassEditorState &&
69
+ this.classEditorState = guaranteeType(this.editorStore.openedEditorStates.find((elementState) => isType(elementState, ClassEditorState) &&
70
70
  elementState.element === classView.class.value) ?? this.editorStore.createElementState(classView.class.value), ClassEditorState);
71
71
  }
72
72
  setSelectedTab(val) {
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramEditorState.js","sourceRoot":"","sources":["../../../src/stores/studio/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAIL,4BAA4B,EAC5B,cAAc,EACd,yBAAyB,EACzB,QAAQ,EACR,WAAW,EACX,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,OAAO,EAAE,MAAM,6EAA6E,CAAC;AAGtG,IAAK,qBASJ;AATD,WAAK,qBAAqB;IACxB,8CAAqB,CAAA;IACrB,wDAA+B,CAAA;IAC/B,wDAA+B,CAAA;IAC/B,sDAA6B,CAAA;IAC7B,gEAAuC,CAAA;IACvC,sEAA6C,CAAA;IAC7C,gDAAuB,CAAA;IACvB,0DAAiC,CAAA;AACnC,CAAC,EATI,qBAAqB,KAArB,qBAAqB,QASzB;AAED,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,GAAG;IACrC,CAAC,qBAAqB,CAAC,aAAa,CAAC,EAAE,GAAG;IAC1C,CAAC,qBAAqB,CAAC,aAAa,CAAC,EAAE,GAAG;IAC1C,CAAC,qBAAqB,CAAC,YAAY,CAAC,EAAE,GAAG;IACzC,CAAC,qBA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AO,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,CACvC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,WAAW,EAAE,CAC7C,CAAC,EACJ;YACA,OAAO,CAAC,KAAK,CAAC,CAAC;SAChB;IACH,CAAC,EAAE,KAAK,CAAC,CAAC;IAEZ,SAAS,CACP,UAA8B,EAC9B,WAAwB;QAExB,MAAM,kBAAkB,GAAG,IAAI,kBAAkB,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QAC3E,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-diagram",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "Legend extension for Diagram DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -40,12 +40,12 @@
40
40
  "test:watch": "jest --watch"
41
41
  },
42
42
  "dependencies": {
43
- "@finos/legend-application": "2.0.13",
44
- "@finos/legend-art": "0.3.17",
45
- "@finos/legend-graph": "4.0.3",
46
- "@finos/legend-model-storage": "0.0.29",
47
- "@finos/legend-shared": "1.3.0",
48
- "@finos/legend-studio": "7.0.2",
43
+ "@finos/legend-application": "2.0.14",
44
+ "@finos/legend-art": "0.3.18",
45
+ "@finos/legend-graph": "5.0.0",
46
+ "@finos/legend-model-storage": "0.0.30",
47
+ "@finos/legend-shared": "1.3.1",
48
+ "@finos/legend-studio": "8.0.0",
49
49
  "@types/react": "17.0.43",
50
50
  "mobx": "6.5.0",
51
51
  "mobx-react-lite": "3.3.0",
@@ -56,7 +56,7 @@
56
56
  "serializr": "2.0.5"
57
57
  },
58
58
  "devDependencies": {
59
- "@finos/legend-dev-utils": "0.3.20",
59
+ "@finos/legend-dev-utils": "0.3.21",
60
60
  "@testing-library/react": "12.1.4",
61
61
  "cross-env": "7.0.3",
62
62
  "eslint": "8.13.0",
@@ -64,7 +64,7 @@
64
64
  "jest-canvas-mock": "2.3.1",
65
65
  "npm-run-all": "4.1.5",
66
66
  "rimraf": "3.0.2",
67
- "sass": "1.50.0",
67
+ "sass": "1.50.1",
68
68
  "typescript": "4.6.3"
69
69
  },
70
70
  "peerDependencies": {
@@ -103,7 +103,6 @@ import {
103
103
  property_setName,
104
104
  property_setGenericType,
105
105
  property_setMultiplicity,
106
- package_addElement,
107
106
  } from '@finos/legend-studio';
108
107
  import { cleanUpDeadReferencesInDiagram } from '../../helpers/DiagramHelper';
109
108
  import { Point } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point';
@@ -865,12 +864,7 @@ const DiagramEditorInlineClassCreatorInner = observer(
865
864
  diagramEditorState.setInlineClassCreatorState(undefined);
866
865
  const [packagePath, name] = resolvePackagePathAndElementName(path);
867
866
  const _class = new Class(name);
868
- package_addElement(
869
- editorStore.graphManagerState.graph.getOrCreatePackage(packagePath),
870
- _class,
871
- editorStore.changeDetectionState.observerContext,
872
- );
873
- await flowResult(editorStore.addElement(_class, false));
867
+ await flowResult(editorStore.addElement(_class, packagePath, false));
874
868
  diagramEditorState.renderer.addClassView(
875
869
  _class,
876
870
  inlineClassCreatorState.point,
@@ -14,8 +14,15 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import type { PureModel } from '@finos/legend-graph';
17
+ import type { BasicModel, PureModel } from '@finos/legend-graph';
18
+ import { guaranteeNonNullable } from '@finos/legend-shared';
18
19
  import { Diagram } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
19
20
 
20
21
  export const getDiagram = (path: string, graph: PureModel): Diagram =>
21
22
  graph.getExtensionElement(path, Diagram, `Can't find diagram '${path}'`);
23
+
24
+ export const getOwnDiagram = (path: string, graph: BasicModel): Diagram =>
25
+ guaranteeNonNullable(
26
+ graph.getOwnNullableExtensionElement(path, Diagram),
27
+ `Can't find diagram '${path}'`,
28
+ );
package/src/index.ts CHANGED
@@ -34,4 +34,5 @@ export { Rectangle } from './models/metamodels/pure/packageableElements/diagram/
34
34
  export { PositionedRectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle';
35
35
 
36
36
  export * from './helpers/DiagramHelper';
37
+ export * from './graphManager/DSLDiagram_GraphManagerHelper';
37
38
  export { V1_DSLDiagram_PackageableElementPointerType } from './models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin';
@@ -33,10 +33,11 @@ import {
33
33
  type V1_PackageableElement,
34
34
  PureProtocolProcessorPlugin,
35
35
  V1_ElementBuilder,
36
+ V1_buildFullPath,
36
37
  } from '@finos/legend-graph';
37
38
  import { V1_transformDiagram } from './v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper';
38
39
  import { Diagram } from '../../metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
39
- import { getDiagram } from '../../../graphManager/DSLDiagram_GraphManagerHelper';
40
+ import { getOwnDiagram } from '../../../graphManager/DSLDiagram_GraphManagerHelper';
40
41
  import {
41
42
  V1_buildClassView,
42
43
  V1_buildGeneralizationView,
@@ -67,7 +68,7 @@ export class DSLDiagram_PureProtocolProcessorPlugin extends PureProtocolProcesso
67
68
  ): PackageableElement => {
68
69
  assertType(elementProtocol, V1_Diagram);
69
70
  const element = new Diagram(elementProtocol.name);
70
- const path = context.currentSubGraph.buildPath(
71
+ const path = V1_buildFullPath(
71
72
  elementProtocol.package,
72
73
  elementProtocol.name,
73
74
  );
@@ -83,11 +84,11 @@ export class DSLDiagram_PureProtocolProcessorPlugin extends PureProtocolProcesso
83
84
  context: V1_GraphBuilderContext,
84
85
  ): void => {
85
86
  assertType(elementProtocol, V1_Diagram);
86
- const path = context.graph.buildPath(
87
+ const path = V1_buildFullPath(
87
88
  elementProtocol.package,
88
89
  elementProtocol.name,
89
90
  );
90
- const element = getDiagram(path, context.graph);
91
+ const element = getOwnDiagram(path, context.currentSubGraph);
91
92
  element.classViews = elementProtocol.classViews.map((classView) =>
92
93
  V1_buildClassView(classView, context, element),
93
94
  );
@@ -18,6 +18,7 @@ import { computed, action, makeObservable, observable } from 'mobx';
18
18
  import {
19
19
  guaranteeNonNullable,
20
20
  guaranteeType,
21
+ isType,
21
22
  uuid,
22
23
  } from '@finos/legend-shared';
23
24
  import {
@@ -108,8 +109,8 @@ export class DiagramEditorClassViewEditorSidePanelState extends DiagramEditorSid
108
109
  this.classView = classView;
109
110
  this.classEditorState = guaranteeType(
110
111
  this.editorStore.openedEditorStates.find(
111
- (elementState): elementState is ClassEditorState =>
112
- elementState instanceof ClassEditorState &&
112
+ (elementState) =>
113
+ isType(elementState, ClassEditorState) &&
113
114
  elementState.element === classView.class.value,
114
115
  ) ?? this.editorStore.createElementState(classView.class.value),
115
116
  ClassEditorState,