bpmn-js 18.4.0 → 18.6.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.
Files changed (30) hide show
  1. package/dist/bpmn-modeler.development.js +119 -75
  2. package/dist/bpmn-modeler.production.min.js +6 -6
  3. package/dist/bpmn-navigated-viewer.development.js +9 -10
  4. package/dist/bpmn-navigated-viewer.production.min.js +2 -2
  5. package/dist/bpmn-viewer.development.js +9 -10
  6. package/dist/bpmn-viewer.production.min.js +2 -2
  7. package/lib/features/align-elements/index.d.ts +7 -1
  8. package/lib/features/append-preview/index.d.ts +3 -1
  9. package/lib/features/auto-place/index.d.ts +4 -1
  10. package/lib/features/context-pad/ContextPadProvider.js +10 -0
  11. package/lib/features/copy-paste/index.d.ts +3 -1
  12. package/lib/features/distribute-elements/index.d.ts +5 -1
  13. package/lib/features/drilldown/index.d.ts +7 -1
  14. package/lib/features/editor-actions/index.d.ts +3 -1
  15. package/lib/features/grid-snapping/index.d.ts +3 -1
  16. package/lib/features/keyboard/index.d.ts +4 -1
  17. package/lib/features/modeling/index.d.ts +12 -0
  18. package/lib/features/modeling-feedback/index.d.ts +3 -1
  19. package/lib/features/outline/index.d.ts +4 -1
  20. package/lib/features/palette/index.d.ts +14 -1
  21. package/lib/features/popup-menu/index.d.ts +3 -1
  22. package/lib/features/replace/index.d.ts +8 -1
  23. package/lib/features/replace-preview/index.d.ts +3 -1
  24. package/lib/features/rules/index.d.ts +3 -1
  25. package/lib/features/search/index.d.ts +5 -1
  26. package/lib/features/snapping/index.d.ts +5 -1
  27. package/lib/features/space-tool/index.d.ts +4 -1
  28. package/lib/import/BpmnTreeWalker.js +2 -3
  29. package/lib/import/index.d.ts +3 -1
  30. package/package.json +11 -11
@@ -1,5 +1,11 @@
1
1
  declare namespace _default {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: ({
3
+ alignElements: (string | typeof import("diagram-js/lib/features/align-elements/AlignElements").default)[];
4
+ } | {
5
+ contextPad: (string | typeof import("diagram-js/lib/features/context-pad/ContextPad").default)[];
6
+ } | {
7
+ popupMenu: (string | typeof import("diagram-js/lib/features/popup-menu/PopupMenu").default)[];
8
+ })[];
3
9
  let __init__: string[];
4
10
  let alignElementsContextPadProvider: (string | typeof AlignElementsContextPadProvider)[];
5
11
  let alignElementsMenuProvider: (string | typeof AlignElementsMenuProvider)[];
@@ -1,5 +1,7 @@
1
1
  declare namespace _default {
2
- let __depends__: (import("didi").ModuleDeclaration | {
2
+ let __depends__: ({
3
+ complexPreview: (string | typeof import("diagram-js/lib/features/complex-preview/ComplexPreview").default)[];
4
+ } | {
3
5
  bpmnAutoPlace: (string | typeof import("../auto-place/BpmnAutoPlace").default)[];
4
6
  } | {
5
7
  bpmnFactory: (string | typeof import("../modeling/BpmnFactory").default)[];
@@ -1,5 +1,8 @@
1
1
  declare namespace _default {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: {
3
+ autoPlace: (string | typeof import("diagram-js/lib/features/auto-place/AutoPlace").default)[];
4
+ autoPlaceSelectionBehavior: (string | typeof import("diagram-js/lib/features/auto-place/AutoPlaceSelectionBehavior").default)[];
5
+ }[];
3
6
  let __init__: string[];
4
7
  let bpmnAutoPlace: (string | typeof BpmnAutoPlace)[];
5
8
  }
@@ -485,6 +485,16 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
485
485
  });
486
486
  }
487
487
 
488
+ if (is(businessObject, 'bpmn:MessageFlow')) {
489
+ assign(actions, {
490
+ 'append.text-annotation': appendAction(
491
+ 'bpmn:TextAnnotation',
492
+ 'bpmn-icon-text-annotation',
493
+ translate('Add text annotation')
494
+ )
495
+ });
496
+ }
497
+
488
498
  if (
489
499
  isAny(businessObject, [
490
500
  'bpmn:FlowNode',
@@ -1,5 +1,7 @@
1
1
  declare namespace _default {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: {
3
+ copyPaste: (string | typeof import("diagram-js/lib/features/copy-paste/CopyPaste").default)[];
4
+ }[];
3
5
  let __init__: string[];
4
6
  let bpmnCopyPaste: (string | typeof BpmnCopyPaste)[];
5
7
  let moddleCopy: (string | typeof ModdleCopy)[];
@@ -1,5 +1,9 @@
1
1
  declare namespace _default {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: ({
3
+ popupMenu: (string | typeof import("diagram-js/lib/features/popup-menu/PopupMenu").default)[];
4
+ } | {
5
+ distributeElements: (string | typeof import("diagram-js/lib/features/distribute-elements/DistributeElements").default)[];
6
+ })[];
3
7
  let __init__: string[];
4
8
  let bpmnDistributeElements: (string | typeof BpmnDistributeElements)[];
5
9
  let distributeElementsMenuProvider: (string | typeof DistributeElementsMenuProvider)[];
@@ -1,5 +1,11 @@
1
1
  declare namespace _default {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: ({
3
+ overlays: (string | typeof import("diagram-js/lib/features/overlays/Overlays").default)[];
4
+ } | {
5
+ changeSupport: (string | typeof import("diagram-js/lib/features/change-support/ChangeSupport").default)[];
6
+ } | {
7
+ rootElementsBehavior: (string | typeof import("diagram-js/lib/features/root-elements/RootElementsBehavior").default)[];
8
+ })[];
3
9
  let __init__: string[];
4
10
  let drilldownBreadcrumbs: (string | typeof DrilldownBreadcrumbs)[];
5
11
  let drilldownCentering: (string | typeof DrilldownCentering)[];
@@ -1,5 +1,7 @@
1
1
  declare namespace _default {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: {
3
+ editorActions: (string | typeof import("diagram-js/lib/features/editor-actions/EditorActions").default)[];
4
+ }[];
3
5
  let editorActions: (string | typeof BpmnEditorActions)[];
4
6
  }
5
7
  export default _default;
@@ -1,5 +1,7 @@
1
1
  declare namespace _default {
2
- let __depends__: (import("didi").ModuleDeclaration | {
2
+ let __depends__: ({
3
+ gridSnapping: (string | typeof import("diagram-js/lib/features/grid-snapping/GridSnapping").default)[];
4
+ } | {
3
5
  gridSnappingAutoPlaceBehavior: (string | typeof import("./behavior/GridSnappingAutoPlaceBehavior").default)[];
4
6
  gridSnappingParticipantBehavior: (string | typeof import("./behavior/GridSnappingParticipantBehavior").default)[];
5
7
  gridSnappingLayoutConnectionBehavior: (string | typeof import("./behavior/GridSnappingLayoutConnectionBehavior").default)[];
@@ -1,5 +1,8 @@
1
1
  declare namespace _default {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: {
3
+ keyboard: (string | typeof import("diagram-js/lib/features/keyboard/Keyboard").default)[];
4
+ keyboardBindings: (string | typeof import("diagram-js/lib/features/keyboard/KeyboardBindings").default)[];
5
+ }[];
3
6
  let __init__: string[];
4
7
  let keyboardBindings: (string | typeof BpmnKeyboardBindings)[];
5
8
  }
@@ -1,6 +1,18 @@
1
1
  declare namespace _default {
2
2
  let __init__: string[];
3
3
  let __depends__: (import("didi").ModuleDeclaration | {
4
+ changeSupport: (string | typeof import("diagram-js/lib/features/change-support/ChangeSupport").default)[];
5
+ } | {
6
+ selection: (string | typeof import("diagram-js/lib/features/selection/Selection").default)[];
7
+ selectionVisuals: (string | typeof import("diagram-js/lib/features/selection/SelectionVisuals").default)[];
8
+ selectionBehavior: (string | typeof import("diagram-js/lib/features/selection/SelectionBehavior").default)[];
9
+ } | {
10
+ commandStack: (string | typeof import("diagram-js/lib/command/CommandStack").default)[];
11
+ } | {
12
+ labelSupport: (string | typeof import("diagram-js/lib/features/label-support/LabelSupport").default)[];
13
+ } | {
14
+ attachSupport: (string | typeof import("diagram-js/lib/features/attach-support/AttachSupport").default)[];
15
+ } | {
4
16
  bpmnRules: (string | typeof import("../rules/BpmnRules").default)[];
5
17
  } | {
6
18
  bpmnDiOrdering: (string | typeof import("../di-ordering/BpmnDiOrdering").default)[];
@@ -1,5 +1,7 @@
1
1
  declare namespace _default {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: {
3
+ tooltips: (string | typeof import("diagram-js/lib/features/tooltips/Tooltips").default)[];
4
+ }[];
3
5
  let __init__: string[];
4
6
  let modelingFeedback: (string | typeof ModelingFeedback)[];
5
7
  }
@@ -1,5 +1,8 @@
1
1
  declare namespace _default {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: {
3
+ outline: (string | typeof import("diagram-js/lib/features/outline/Outline").default)[];
4
+ multiSelectionOutline: (string | typeof import("diagram-js/lib/features/outline/MultiSelectionOutline").default)[];
5
+ }[];
3
6
  let __init__: string[];
4
7
  let outlineProvider: (string | typeof OulineProvider)[];
5
8
  }
@@ -1,6 +1,19 @@
1
1
  declare namespace _default {
2
- let __depends__: (import("didi").ModuleDeclaration | {
2
+ let __depends__: ({
3
+ translate: (string | typeof import("diagram-js/lib/i18n/translate/translate").default)[];
4
+ } | {
3
5
  spaceTool: (string | typeof import("../space-tool/BpmnSpaceTool").default)[];
6
+ } | {
7
+ create: (string | typeof import("diagram-js/lib/features/create/Create").default)[];
8
+ createPreview: (string | typeof import("diagram-js/lib/features/create/CreatePreview").default)[];
9
+ } | {
10
+ palette: (string | typeof import("diagram-js/lib/features/palette/Palette").default)[];
11
+ } | {
12
+ lassoTool: (string | typeof import("diagram-js/lib/features/lasso-tool/LassoTool").default)[];
13
+ } | {
14
+ handTool: (string | typeof import("diagram-js/lib/features/hand-tool/HandTool").default)[];
15
+ } | {
16
+ globalConnect: (string | typeof import("diagram-js/lib/features/global-connect/GlobalConnect").default)[];
4
17
  })[];
5
18
  let __init__: string[];
6
19
  let paletteProvider: (string | typeof PaletteProvider)[];
@@ -1,5 +1,7 @@
1
1
  declare namespace _default {
2
- let __depends__: (import("didi").ModuleDeclaration | {
2
+ let __depends__: ({
3
+ popupMenu: (string | typeof import("diagram-js/lib/features/popup-menu/PopupMenu").default)[];
4
+ } | {
3
5
  bpmnReplace: (string | typeof import("../replace/BpmnReplace").default)[];
4
6
  } | {
5
7
  bpmnAutoPlace: (string | typeof import("../auto-place/BpmnAutoPlace").default)[];
@@ -1,5 +1,12 @@
1
1
  declare namespace _default {
2
- let __depends__: (import("didi").ModuleDeclaration | {
2
+ let __depends__: ({
3
+ selection: (string | typeof import("diagram-js/lib/features/selection/Selection").default)[];
4
+ selectionVisuals: (string | typeof import("diagram-js/lib/features/selection/SelectionVisuals").default)[];
5
+ selectionBehavior: (string | typeof import("diagram-js/lib/features/selection/SelectionBehavior").default)[];
6
+ } | {
7
+ replaceSelectionBehavior: (string | typeof import("diagram-js/lib/features/replace/ReplaceSelectionBehavior").default)[];
8
+ replace: (string | typeof import("diagram-js/lib/features/replace/Replace").default)[];
9
+ } | {
3
10
  bpmnCopyPaste: (string | typeof import("../copy-paste/BpmnCopyPaste").default)[];
4
11
  moddleCopy: (string | typeof import("../copy-paste/ModdleCopy").default)[];
5
12
  })[];
@@ -1,5 +1,7 @@
1
1
  declare namespace _default {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: {
3
+ previewSupport: (string | typeof import("diagram-js/lib/features/preview-support/PreviewSupport").default)[];
4
+ }[];
3
5
  let __init__: string[];
4
6
  let bpmnReplacePreview: (string | typeof BpmnReplacePreview)[];
5
7
  }
@@ -1,5 +1,7 @@
1
1
  declare namespace _default {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: {
3
+ rules: (string | typeof import("diagram-js/lib/features/rules/Rules").default)[];
4
+ }[];
3
5
  let __init__: string[];
4
6
  let bpmnRules: (string | typeof BpmnRules)[];
5
7
  }
@@ -1,5 +1,9 @@
1
1
  declare namespace _default {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: ({
3
+ searchPad: (string | typeof import("diagram-js/lib/features/search-pad/SearchPad").default)[];
4
+ } | {
5
+ search: (string | typeof import("diagram-js/lib/features/search/search").default)[];
6
+ })[];
3
7
  let __init__: string[];
4
8
  let bpmnSearch: (string | typeof BpmnSearchProvider)[];
5
9
  }
@@ -1,5 +1,9 @@
1
1
  declare namespace _default {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: {
3
+ createMoveSnapping: (string | typeof import("diagram-js/lib/features/snapping/CreateMoveSnapping").default)[];
4
+ resizeSnapping: (string | typeof import("diagram-js/lib/features/snapping/ResizeSnapping").default)[];
5
+ snapping: (string | typeof import("diagram-js/lib/features/snapping/Snapping").default)[];
6
+ }[];
3
7
  let __init__: string[];
4
8
  let connectSnapping: (string | typeof BpmnConnectSnapping)[];
5
9
  let createMoveSnapping: (string | typeof BpmnCreateMoveSnapping)[];
@@ -1,5 +1,8 @@
1
1
  declare namespace _default {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: {
3
+ spaceTool: (string | typeof import("diagram-js/lib/features/space-tool/SpaceTool").default)[];
4
+ spaceToolPreview: (string | typeof import("diagram-js/lib/features/space-tool/SpaceToolPreview").default)[];
5
+ }[];
3
6
  let spaceTool: (string | typeof BpmnSpaceTool)[];
4
7
  }
5
8
  export default _default;
@@ -430,12 +430,11 @@ export default function BpmnTreeWalker(handler) {
430
430
 
431
431
  forEach(collaboration.participants, contextual(handleParticipant, context));
432
432
 
433
- handleArtifacts(collaboration.artifacts, context);
434
-
435
- // handle message flows latest in the process
436
433
  deferred.push(function() {
437
434
  handleMessageFlows(collaboration.messageFlows, context);
438
435
  });
436
+
437
+ handleArtifacts(collaboration.artifacts, context);
439
438
  }
440
439
 
441
440
 
@@ -1,5 +1,7 @@
1
1
  declare namespace _default {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: {
3
+ translate: (string | typeof import("diagram-js/lib/i18n/translate/translate").default)[];
4
+ }[];
3
5
  let bpmnImporter: (string | typeof BpmnImporter)[];
4
6
  }
5
7
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpmn-js",
3
- "version": "18.4.0",
3
+ "version": "18.6.0",
4
4
  "description": "A bpmn 2.0 toolkit and web modeler",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -65,10 +65,10 @@
65
65
  "devDependencies": {
66
66
  "@babel/core": "^7.25.8",
67
67
  "@bpmn-io/a11y": "^0.1.0",
68
- "@rollup/plugin-commonjs": "^28.0.0",
68
+ "@rollup/plugin-commonjs": "^28.0.3",
69
69
  "@rollup/plugin-json": "^6.1.0",
70
- "@rollup/plugin-node-resolve": "^16.0.0",
71
- "@rollup/plugin-replace": "^6.0.0",
70
+ "@rollup/plugin-node-resolve": "^16.0.1",
71
+ "@rollup/plugin-replace": "^6.0.2",
72
72
  "@rollup/plugin-terser": "^0.4.4",
73
73
  "babel-loader": "^10.0.0",
74
74
  "babel-plugin-istanbul": "^7.0.0",
@@ -81,7 +81,7 @@
81
81
  "cross-env": "^7.0.3",
82
82
  "del": "^8.0.0",
83
83
  "del-cli": "^6.0.0",
84
- "eslint": "^9.21.0",
84
+ "eslint": "^9.24.0",
85
85
  "eslint-plugin-bpmn-io": "^2.2.0",
86
86
  "execa": "^9.0.0",
87
87
  "file-drops": "^0.5.0",
@@ -95,14 +95,14 @@
95
95
  "karma-safari-launcher": "^1.0.0",
96
96
  "karma-sinon-chai": "^2.0.2",
97
97
  "karma-webpack": "^5.0.1",
98
- "mocha": "^10.7.3",
98
+ "mocha": "^10.8.2",
99
99
  "mocha-test-container-support": "0.2.0",
100
- "npm-run-all2": "^7.0.0",
101
- "puppeteer": "^24.0.0",
100
+ "npm-run-all2": "^7.0.2",
101
+ "puppeteer": "~24.5.0",
102
102
  "remark-cli": "^12.0.0",
103
103
  "remark-preset-bpmn-io": "^0.2.1",
104
- "rollup": "^4.0.0",
105
- "rollup-plugin-license": "^3.4.0",
104
+ "rollup": "^4.39.0",
105
+ "rollup-plugin-license": "^3.6.0",
106
106
  "sinon": "^17.0.1",
107
107
  "sinon-chai": "^3.7.0",
108
108
  "ts-expect": "^1.3.0",
@@ -111,7 +111,7 @@
111
111
  },
112
112
  "dependencies": {
113
113
  "bpmn-moddle": "^9.0.1",
114
- "diagram-js": "^15.2.4",
114
+ "diagram-js": "^15.3.0",
115
115
  "diagram-js-direct-editing": "^3.2.0",
116
116
  "ids": "^1.0.5",
117
117
  "inherits-browser": "^0.1.0",