@miragon/event-storming-renderer 0.4.1 → 0.5.1

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.
Files changed (44) hide show
  1. package/README.md +52 -19
  2. package/dist/EventStormingBaseViewer.d.ts +23 -3
  3. package/dist/EventStormingBaseViewer.d.ts.map +1 -1
  4. package/dist/board-bounds/BoardBounds.d.ts +6 -5
  5. package/dist/board-bounds/BoardBounds.d.ts.map +1 -1
  6. package/dist/board-menu/ShortcutsDialog.d.ts +1 -1
  7. package/dist/board-menu/menu.d.ts +5 -5
  8. package/dist/board-menu/shortcuts.d.ts +2 -2
  9. package/dist/collaborative/CollaborativeEventStorming.d.ts +9 -4
  10. package/dist/collaborative/CollaborativeEventStorming.d.ts.map +1 -1
  11. package/dist/color-picker/EventStormingColorPicker.d.ts.map +1 -1
  12. package/dist/context-pad/EventStormingContextPadProvider.d.ts +9 -1
  13. package/dist/context-pad/EventStormingContextPadProvider.d.ts.map +1 -1
  14. package/dist/draw/EventStormingRenderer.d.ts +4 -3
  15. package/dist/draw/EventStormingRenderer.d.ts.map +1 -1
  16. package/dist/draw/contrast.d.ts +8 -0
  17. package/dist/draw/contrast.d.ts.map +1 -0
  18. package/dist/draw/extent.d.ts +47 -0
  19. package/dist/draw/extent.d.ts.map +1 -0
  20. package/dist/draw/index.d.ts +1 -0
  21. package/dist/draw/index.d.ts.map +1 -1
  22. package/dist/draw/lucide.d.ts +8 -8
  23. package/dist/draw/styles.d.ts +27 -6
  24. package/dist/draw/styles.d.ts.map +1 -1
  25. package/dist/draw-tool/EventStormingDrawTool.d.ts +6 -0
  26. package/dist/draw-tool/EventStormingDrawTool.d.ts.map +1 -1
  27. package/dist/index.js +880 -688
  28. package/dist/index.js.map +1 -1
  29. package/dist/keyboard/EventStormingKeyboard.d.ts +4 -3
  30. package/dist/keyboard/EventStormingKeyboard.d.ts.map +1 -1
  31. package/dist/keyboard/canvas-focus.d.ts +11 -0
  32. package/dist/keyboard/canvas-focus.d.ts.map +1 -0
  33. package/dist/keyboard/index.d.ts +2 -0
  34. package/dist/keyboard/index.d.ts.map +1 -1
  35. package/dist/keyboard/key-scope.d.ts +16 -0
  36. package/dist/keyboard/key-scope.d.ts.map +1 -0
  37. package/dist/label-editing/note-editor-dom.d.ts +2 -2
  38. package/dist/model/EventStormingElementFactory.d.ts +1 -1
  39. package/dist/model/di-types.d.ts +2 -2
  40. package/dist/palette/EventStormingPaletteProvider.d.ts +7 -1
  41. package/dist/palette/EventStormingPaletteProvider.d.ts.map +1 -1
  42. package/dist/theme/palette.d.ts +10 -1
  43. package/dist/theme/palette.d.ts.map +1 -1
  44. package/package.json +8 -8
@@ -20,11 +20,12 @@ export interface EventStormingKeyboardConfig {
20
20
  /**
21
21
  * Minimal keyboard binding: undo/redo, select all, delete, copy/paste/duplicate, arrow-key nudge
22
22
  * of the selection, plus the single-key tools E (domain event), C (command) and L (lasso).
23
- * Deliberately a DOM listener (no diagram-js keyboard-service binding needed). Under the
24
- * read-only lock only select all, copy and the lasso stay.
23
+ * Deliberately a DOM listener (no diagram-js keyboard-service binding needed) that acts only while
24
+ * the canvas has the focus, as diagram-js 15's own keyboard does. Under the read-only lock only
25
+ * select all, copy and the lasso stay.
25
26
  */
26
27
  export default class EventStormingKeyboard {
27
28
  static $inject: string[];
28
- constructor(config: EventStormingKeyboardConfig | undefined, canvas: Canvas, commandStack: CommandStack, selection: Selection, modeling: Modeling, copyPaste: EventStormingCopyPaste, factory: EventStormingElementFactory, create: Create, mouse: Mouse, lassoTool: LassoTool, eventBus: EventBus, elementRegistry?: ElementRegistry, readOnly?: Pick<EventStormingReadOnly, 'isReadOnly'>);
29
+ constructor(config: EventStormingKeyboardConfig | undefined, canvas: Canvas, commandStack: CommandStack, selection: Selection, modeling: Modeling, copyPaste: EventStormingCopyPaste, factory: EventStormingElementFactory, create: Create, mouse: Mouse, lassoTool: LassoTool, eventBus: EventBus, elementRegistry?: ElementRegistry, readOnly?: Pick<EventStormingReadOnly, "isReadOnly">);
29
30
  }
30
31
  //# sourceMappingURL=EventStormingKeyboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventStormingKeyboard.d.ts","sourceRoot":"","sources":["../../src/keyboard/EventStormingKeyboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,eAAe,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,YAAY,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,uCAAuC,CAAC;AAChE,OAAO,KAAK,SAAS,MAAM,8CAA8C,CAAC;AAC1E,OAAO,KAAK,KAAK,MAAM,qCAAqC,CAAC;AAC7D,OAAO,KAAK,SAAS,MAAM,6CAA6C,CAAC;AACzE,OAAO,KAAK,QAAQ,MAAM,2CAA2C,CAAC;AAEtE,OAAO,KAAK,sBAAsB,MAAM,uCAAuC,CAAC;AAChF,OAAO,KAAK,2BAA2B,MAAM,yCAAyC,CAAC;AACvF,OAAO,KAAK,qBAAqB,MAAM,uCAAuC,CAAC;AAe/E,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACpC;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,qBAAqB;IACxC,MAAM,CAAC,OAAO,WAcZ;gBAGA,MAAM,EAAE,2BAA2B,GAAG,SAAS,EAC/C,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,sBAAsB,EACjC,OAAO,EAAE,2BAA2B,EACpC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,eAAe,CAAC,EAAE,eAAe,EACjC,Q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AAE,IAAI,CAAC,qBAAqB,EAAE,YAAY,CAAC;CAoFvD"}
@@ -0,0 +1,11 @@
1
+ import { default as Canvas } from 'diagram-js/lib/core/Canvas';
2
+ /** The focusable `<svg>` diagram-js renders into the canvas container. */
3
+ export declare function canvasSvg(canvas: Pick<Canvas, "getContainer">): SVGSVGElement | null;
4
+ /**
5
+ * Hands the focus to the canvas after a pointer action on the modeler's own controls. Without a
6
+ * shell the palette and pad entries take no focus, so the browser may have seen no pointer focus
7
+ * before this script focus (on the first click on the page, or after the keyboard moved the focus)
8
+ * and would draw its ring around the whole canvas although the pointer moved the focus.
9
+ */
10
+ export declare function focusCanvasWithoutRing(canvas: Pick<Canvas, "getContainer" | "focus">): void;
11
+ //# sourceMappingURL=canvas-focus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canvas-focus.d.ts","sourceRoot":"","sources":["../../src/keyboard/canvas-focus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AAErD,0EAA0E;AAC1E,wBAAgB,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,aAAa,GAAG,IAAI,CAEpF;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,IAAI,CAI3F"}
@@ -3,4 +3,6 @@ import { ModuleDeclaration } from 'didi';
3
3
  export declare const eventStormingKeyboardModule: ModuleDeclaration;
4
4
  export { default as EventStormingKeyboard } from './EventStormingKeyboard.js';
5
5
  export type { EventStormingKeyboardConfig } from './EventStormingKeyboard.js';
6
+ export { focusCanvasWithoutRing } from './canvas-focus.js';
7
+ export { isTextField, isUnhandledKey } from './key-scope.js';
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/keyboard/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAG9C,kGAAkG;AAClG,eAAO,MAAM,2BAA2B,EAAE,iBAGzC,CAAC;AAEF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAC9E,YAAY,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/keyboard/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAG9C,kGAAkG;AAClG,eAAO,MAAM,2BAA2B,EAAE,iBAGzC,CAAC;AAEF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAC9E,YAAY,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { default as Canvas } from 'diagram-js/lib/core/Canvas';
2
+ /**
3
+ * Whether the board may look at this keydown at all: a synthetic `keydown` can come without a key,
4
+ * a listener closer to the target (a menu, a dialog, a host's chrome) may have handled it already,
5
+ * and a key typed while an input method composes belongs to the composition.
6
+ */
7
+ export declare function isUnhandledKey(event: KeyboardEvent): boolean;
8
+ /**
9
+ * Whether the key is aimed at the canvas: its target is the canvas `<svg>` or lies inside it, the
10
+ * element diagram-js 15 binds its own keyboard to. `<body>` does not count: right after a load,
11
+ * after a click on page text or while a host hides the canvas, a key there is the page's.
12
+ */
13
+ export declare function targetsCanvas(event: Event, canvas: Pick<Canvas, "getContainer">): boolean;
14
+ /** Text fields and editors keep Enter, Escape and the other keys they need for typing. */
15
+ export declare function isTextField(target: EventTarget | null): boolean;
16
+ //# sourceMappingURL=key-scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"key-scope.d.ts","sourceRoot":"","sources":["../../src/keyboard/key-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AAMrD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAE5D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,OAAO,CAGzF;AAED,0FAA0F;AAC1F,wBAAgB,WAAW,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,CAK/D"}
@@ -7,7 +7,7 @@ import { NoteAlignHorizontal, NoteAlignVertical } from '@miragon/event-storming-
7
7
  */
8
8
  /** Class on line `<div>`s carrying the `- ` bullet marker (the '•' itself renders via CSS). */
9
9
  export declare const NOTE_BULLET_CLASS = "bullet";
10
- export type NoteToolbarAction = 'note-bold' | 'note-italic' | 'note-bullet' | 'note-align-horizontal' | 'note-align-vertical';
10
+ export type NoteToolbarAction = "note-bold" | "note-italic" | "note-bullet" | "note-align-horizontal" | "note-align-vertical";
11
11
  export interface NoteAlignState {
12
12
  horizontal: NoteAlignHorizontal;
13
13
  vertical: NoteAlignVertical;
@@ -51,7 +51,7 @@ export declare function ensureLineDivs(root: HTMLElement): void;
51
51
  */
52
52
  export declare function createNoteToolbar(doc: Document, onAction: (action: NoteToolbarAction) => void): HTMLElement;
53
53
  /** Stamps a cycle button with the icon/tooltip of the CURRENT alignment value. */
54
- export declare function updateAlignButton(button: HTMLElement, axis: 'horizontal' | 'vertical', value: NoteAlignHorizontal | NoteAlignVertical): void;
54
+ export declare function updateAlignButton(button: HTMLElement, axis: "horizontal" | "vertical", value: NoteAlignHorizontal | NoteAlignVertical): void;
55
55
  /** Live preview of the note alignment on the contenteditable (flex column mirrors the canvas). */
56
56
  export declare function applyAlignPreview(editor: HTMLElement, align: NoteAlignState): void;
57
57
  //# sourceMappingURL=note-editor-dom.d.ts.map
@@ -36,7 +36,7 @@ export default class EventStormingElementFactory {
36
36
  }>, extra?: {
37
37
  id?: string;
38
38
  closed?: boolean;
39
- strokeStyle?: DrawingElement['strokeStyle'];
39
+ strokeStyle?: DrawingElement["strokeStyle"];
40
40
  color?: string;
41
41
  businessObject?: DrawingElement;
42
42
  }): EventStormingShape;
@@ -9,8 +9,8 @@ import { BoardEdge, BoardElement, DrawingStrokeStyle, NoteAlignHorizontal, NoteA
9
9
  */
10
10
  /** ID of the diagram-js root element of the Event Storming board. */
11
11
  export declare const ROOT_ID = "event-storming-root";
12
- export type EventStormingShapeType = 'event' | 'command' | 'actor' | 'aggregate' | 'policy' | 'readmodel' | 'external' | 'hotspot' | 'note' | 'drawing';
13
- export type EventStormingConnectionType = 'arrow';
12
+ export type EventStormingShapeType = "event" | "command" | "actor" | "aggregate" | "policy" | "readmodel" | "external" | "hotspot" | "note" | "drawing";
13
+ export type EventStormingConnectionType = "arrow";
14
14
  export interface EventStormingShape extends Shape {
15
15
  eventStormingType: EventStormingShapeType;
16
16
  /** Display text (separate from diagram-js `label`, which references a label element). */
@@ -22,7 +22,7 @@ export interface FreeRectInsets {
22
22
  export type { FreeArea };
23
23
  export interface EventStormingPaletteConfig {
24
24
  freeArea?: FreeArea | undefined;
25
- /** @deprecated Pass `freeArea: { insets }` instead; accepted until the next minor release. */
25
+ /** @deprecated Pass `freeArea: { insets }` instead; accepted through 0.5.x, removed in 0.6.0. */
26
26
  freeRectInsets?: (() => FreeRectInsets) | undefined;
27
27
  }
28
28
  /** The free area of the options: the modeler-api name first, then the deprecated one. */
@@ -45,6 +45,12 @@ export default class EventStormingPaletteProvider implements PaletteProvider {
45
45
  static $inject: string[];
46
46
  constructor(palette: Palette, create: Create, factory: EventStormingElementFactory, lassoTool: LassoTool, drawTool: EventStormingDrawTool, eventStormingModeling: EventStormingModeling, eventBus: EventBus, canvas?: Canvas | undefined, modeling?: Modeling | undefined, selection?: Selection | undefined, elementRegistry?: ElementRegistry | undefined, labelEditing?: EventStormingLabelEditing | undefined, config?: EventStormingPaletteConfig | undefined);
47
47
  getPaletteEntries(): PaletteEntries;
48
+ /**
49
+ * After a pointer click or drag the focus is on the entry or on `<body>`, where the board's keys
50
+ * do not act, and no host chrome may be there to move it (guide §5.8). Enter and Space keep it on
51
+ * the entry (guide §5.5).
52
+ */
53
+ private focusingCanvas;
48
54
  /**
49
55
  * Enter or Space on a creating entry (guide §5.5): a create that follows the pointer never ends
50
56
  * without one, so the element goes straight to the centre of the free rectangle, selected and
@@ -1 +1 @@
1
- {"version":3,"file":"EventStormingPaletteProvider.d.ts","sourceRoot":"","sources":["../../src/palette/EventStormingPaletteProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,yCAAyC,CAAC;AACnE,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,MAAM,MAAM,uCAAuC,CAAC;AAChE,OAAO,KAAK,eAAe,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,QAAQ,MAAM,2CAA2C,CAAC;AACtE,OAAO,KAAK,SAAS,MAAM,6CAA6C,CAAC;AAEzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,SAAS,MAAM,8CAA8C,CAAC;AAC1E,OAAO,KAAK,qBAAqB,MAAM,uCAAuC,CAAC;AAC/E,OAAO,KAAK,EACV,cAAc,EAEd,OAAO,IAAI,eAAe,EAC3B,MAAM,iDAAiD,CAAC;AAEzD,OAAO,KAAK,2BAA2B,MAAM,yCAAyC,CAAC;AACvF,OAAO,KAAK,qBAAqB,MAAM,sCAAsC,CAAC;AAC9E,OAAO,KAAK,yBAAyB,MAAM,+CAA+C,CAAC;AAU3F,oEAAoE;AACpE,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC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,QAAQ,CAAC,EAAE,QAAQ,YAAA,EACnB,SAAS,CAAC,EAAE,SAAS,YAAA,EACrB,eAAe,CAAC,EAAE,eAAe,YAAA,EACjC,YAAY,CAAC,EAAE,yBAAyB,YAAA,EACxC,MAAM,CAAC,EAAE,0BAA0B,YAAA;IAqBtD,iBAAiB,IAAI,cAAc;IA8CnC;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAOtB;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAuBvB,yEAAyE;IACzE,OAAO,CAAC,cAAc;CAavB"}
@@ -36,6 +36,10 @@ export declare const MIRAGON: {
36
36
  readonly weiss: "#FFFFFF";
37
37
  /** Fixed light neutral for lines and borders on a light stage. */
38
38
  readonly linie: "#E6E2E2";
39
+ /** Structural strokes on the canvas: edges and dependencies (guide §10.1), 3.19:1 on `grau`. */
40
+ readonly kontur: "#8F8A8A";
41
+ /** Secondary text, e.g. axis and edge annotations (guide §10.1), 5.29:1 on `grau`. */
42
+ readonly textLeise: "#6B6666";
39
43
  /**
40
44
  * Status layer (guide §3.3): the brand colours plus amber and red. Fills, borders, icons and
41
45
  * dots; as text on white only `danger` and `info` reach AA.
@@ -44,7 +48,12 @@ export declare const MIRAGON: {
44
48
  readonly warning: "#FFB000";
45
49
  readonly danger: "#CD1839";
46
50
  readonly info: "#335DE5";
47
- /** Dark base — the CI hero / nav-glass colour (rgb 8,10,32). The canvas never draws it. */
51
+ /**
52
+ * Dark base of the CI hero (rgb 8,10,32). No token of the design system, and nothing in the
53
+ * modeler draws it (guide §10.7 drops the navy board).
54
+ *
55
+ * @deprecated Kept only for consumers that read it; this key goes in a later minor.
56
+ */
48
57
  readonly navy: "#080A20";
49
58
  /** Signature brand gradient — hero, large surfaces, brand moments. Use verbatim. */
50
59
  readonly gradientBrand: "linear-gradient(120deg, #335DE5 30%, #00E676)";
@@ -1 +1 @@
1
- {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/theme/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,iFAAiF;AACjF,eAAO,MAAM,OAAO;IAClB,sDAAsD;;IAEtD,sEAAsE;;IAEtE,2DAA2D;;IAE3D,iGAAiG;;IAEjG,6CAA6C;;IAE7C,sDAAsD;;;IAGtD,kEAAkE;;IAElE;;;OAGG;;;;;IAKH,2FAA2F;;IAE3F,oFAAoF;;CAE5E,CAAC"}
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/theme/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,iFAAiF;AACjF,eAAO,MAAM,OAAO;IAClB,sDAAsD;;IAEtD,sEAAsE;;IAEtE,2DAA2D;;IAE3D,iGAAiG;;IAEjG,6CAA6C;;IAE7C,sDAAsD;;;IAGtD,kEAAkE;;IAElE,gGAAgG;;IAEhG,sFAAsF;;IAEtF;;;OAGG;;;;;IAKH;;;;;OAKG;;IAGH,oFAAoF;;CAE5E,CAAC"}
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@miragon/event-storming-renderer",
3
- "version": "0.4.1",
3
+ "version": "0.5.1",
4
4
  "description": "Render and edit Event Storming boards in the browser, with a viewer and modeler built on diagram-js.",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/Miragon/event-storming-modeler.git",
9
- "directory": "packages/renderer"
8
+ "url": "git+https://github.com/Miragon/modeler-suite.git",
9
+ "directory": "modelers/event-storming/packages/renderer"
10
10
  },
11
- "homepage": "https://github.com/Miragon/event-storming-modeler/tree/main/packages/renderer#readme",
12
- "bugs": "https://github.com/Miragon/event-storming-modeler/issues",
11
+ "homepage": "https://github.com/Miragon/modeler-suite/tree/main/modelers/event-storming/packages/renderer#readme",
12
+ "bugs": "https://github.com/Miragon/modeler-suite/issues",
13
13
  "type": "module",
14
14
  "sideEffects": [
15
15
  "**/*.css"
@@ -36,9 +36,9 @@
36
36
  "test:browser": "npm --prefix ../.. run test:browser"
37
37
  },
38
38
  "dependencies": {
39
- "@miragon/event-storming-dsl": "0.3.1",
40
- "@miragon/event-storming-schema-model": "0.2.2",
41
- "@miragon/modeler-api": "1.2.0",
39
+ "@miragon/event-storming-dsl": "0.3.2",
40
+ "@miragon/event-storming-schema-model": "0.2.3",
41
+ "@miragon/modeler-api": "1.4.0",
42
42
  "clsx": "2.1.1"
43
43
  },
44
44
  "peerDependencies": {