bpmn-js 9.3.0 → 10.0.0-alpha.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 (32) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/assets/bpmn-js.css +4 -5
  3. package/dist/assets/diagram-js.css +18 -8
  4. package/dist/bpmn-modeler.development.js +547 -363
  5. package/dist/bpmn-modeler.production.min.js +6 -6
  6. package/dist/bpmn-navigated-viewer.development.js +85 -77
  7. package/dist/bpmn-navigated-viewer.production.min.js +6 -6
  8. package/dist/bpmn-viewer.development.js +27 -21
  9. package/dist/bpmn-viewer.production.min.js +6 -6
  10. package/lib/features/copy-paste/BpmnCopyPaste.js +75 -69
  11. package/lib/features/copy-paste/ModdleCopy.js +26 -13
  12. package/lib/features/grid-snapping/behavior/{AutoPlaceBehavior.js → GridSnappingAutoPlaceBehavior.js} +2 -2
  13. package/lib/features/grid-snapping/behavior/{LayoutConnectionBehavior.js → GridSnappingLayoutConnectionBehavior.js} +4 -4
  14. package/lib/features/grid-snapping/behavior/{CreateParticipantBehavior.js → GridSnappingParticipantBehavior.js} +2 -2
  15. package/lib/features/grid-snapping/behavior/index.js +7 -7
  16. package/lib/features/label-editing/LabelEditingProvider.js +0 -22
  17. package/lib/features/modeling/ElementFactory.js +18 -8
  18. package/lib/features/modeling/behavior/BoundaryEventBehavior.js +1 -16
  19. package/lib/features/modeling/behavior/GroupBehavior.js +205 -93
  20. package/lib/features/modeling/behavior/ReplaceElementBehaviour.js +8 -4
  21. package/lib/features/modeling/behavior/ResizeBehavior.js +2 -0
  22. package/lib/features/modeling/behavior/RootElementReferenceBehavior.js +7 -8
  23. package/lib/features/modeling/behavior/SpaceToolBehavior.js +5 -0
  24. package/lib/features/modeling/behavior/util/CategoryUtil.js +66 -13
  25. package/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.js +3 -0
  26. package/package.json +2 -2
  27. package/test/helper/index.js +25 -0
  28. package/lib/features/.DS_Store +0 -0
  29. package/lib/features/align-elements/.DS_Store +0 -0
  30. package/lib/features/distribute-elements/.DS_Store +0 -0
  31. package/lib/features/distribute-elements/dist/distribute-horizontally-tool.svg +0 -1
  32. package/lib/features/distribute-elements/dist/distribute-vertically-tool.svg +0 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,27 @@ All notable changes to [bpmn-js](https://github.com/bpmn-io/bpmn-js) are documen
7
7
 
8
8
  ___Note:__ Yet to be released changes appear here._
9
9
 
10
+ ## 10.0.0
11
+
12
+ * `FEAT`: allow clipboard to be serialized ([#1707](https://github.com/bpmn-io/bpmn-js/pull/1707))
13
+ * `FEAT`: allow cloning of elements ([#1707](https://github.com/bpmn-io/bpmn-js/pull/1707))
14
+ * `FEAT`: copy groups in a safe manner ([#1707](https://github.com/bpmn-io/bpmn-js/pull/1707))
15
+ * `FIX`: make clipboard contents immutable ([#1707](https://github.com/bpmn-io/bpmn-js/pull/1707))
16
+ * `FIX`: do not alter inputs passed to `ElementFactory#create` ([#1711](https://github.com/bpmn-io/bpmn-js/pull/1711))
17
+ * `FIX`: prevent bogus meta-data to be attached on paste ([#1707](https://github.com/bpmn-io/bpmn-js/pull/1707))
18
+ * `FIX`: only claim existing IDs ([#1707](https://github.com/bpmn-io/bpmn-js/pull/1707))
19
+ * `FIX`: prevent double paste on label creation ([#1707](https://github.com/bpmn-io/bpmn-js/pull/1707))
20
+
21
+ ## 9.3.2
22
+
23
+ * `FIX`: prevent unnecessary scrollbar ([#1692](https://github.com/bpmn-io/bpmn-js/issues/1692))
24
+ * `FIX`: check for replacement using actual target ([#1699](https://github.com/bpmn-io/bpmn-js/pull/1699))
25
+ * `DEPS`: update to diagram-js@8.7.1
26
+
27
+ ## 9.3.1
28
+
29
+ * `FIX`: properly size icons for distribute/align menu ([#1694](https://github.com/bpmn-io/bpmn-js/pull/1694))
30
+
10
31
  ## 9.3.0
11
32
 
12
33
  * `FEAT`: add aligment and distribution menu ([#1680](https://github.com/bpmn-io/bpmn-js/issues/1680), [#1691](https://github.com/bpmn-io/bpmn-js/issues/1691))
@@ -129,15 +129,14 @@
129
129
  }
130
130
 
131
131
  [data-popup="align-elements"] .djs-popup-body .entry {
132
- height: 20px;
133
- width: 20px;
134
-
135
132
  padding: 6px 8px;
136
133
  }
137
134
 
138
135
  [data-popup="align-elements"] .djs-popup-body .entry img {
139
- height: 100%;
140
- width: 100%;
136
+ display: block;
137
+
138
+ height: 20px;
139
+ width: 20px;
141
140
  }
142
141
 
143
142
  [data-popup="align-elements"] .bjs-align-elements-menu-entry {
@@ -30,6 +30,7 @@
30
30
  --color-black: hsl(0, 0%, 0%);
31
31
  --color-black-opacity-10: hsla(0, 0%, 0%, 10%);
32
32
 
33
+ --canvas-focus-box-shadow-color: var(--color-blue-205-100-50);
33
34
  --canvas-fill-color: var(--color-white);
34
35
 
35
36
  --bendpoint-fill-color: var(--color-blue-205-100-45);
@@ -88,6 +89,23 @@
88
89
  --tooltip-error-color: var(--color-red-360-100-45);
89
90
  }
90
91
 
92
+ /**
93
+ * SVG styles
94
+ */
95
+
96
+ .djs-container svg:focus {
97
+ box-shadow: inset 0px 0px 0px 5px var(--canvas-focus-box-shadow-color);
98
+ outline: none;
99
+ }
100
+
101
+ .djs-container svg.drop-not-ok {
102
+ background: var(--shape-drop-not-allowed-fill-color) !important;
103
+ }
104
+
105
+ .djs-container svg.new-parent {
106
+ background: var(--shape-drop-allowed-fill-color) !important;
107
+ }
108
+
91
109
  /**
92
110
  * outline styles
93
111
  */
@@ -130,14 +148,6 @@
130
148
  fill: var(--shape-drop-allowed-fill-color) !important;
131
149
  }
132
150
 
133
- svg.drop-not-ok {
134
- background: var(--shape-drop-not-allowed-fill-color) !important;
135
- }
136
-
137
- svg.new-parent {
138
- background: var(--shape-drop-allowed-fill-color) !important;
139
- }
140
-
141
151
 
142
152
  /* Override move cursor during drop and connect */
143
153
  .drop-not-ok,