bpmn-js 9.2.0 → 9.2.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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,10 @@ 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
+ ## 9.2.1
11
+
12
+ * `FIX`: cancel direct editing before shape deletion ([#1677](https://github.com/bpmn-io/bpmn-js/issues/1677))
13
+
10
14
  ## 9.2.0
11
15
 
12
16
  * `FEAT`: rework select and hover interaction on the diagram ([#1616](https://github.com/bpmn-io/bpmn-js/issues/1616), [#640](https://github.com/bpmn-io/diagram-js/pull/640), [#643](https://github.com/bpmn-io/diagram-js/pull/643))
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-modeler v9.2.0
2
+ * bpmn-js - bpmn-modeler v9.2.1
3
3
  *
4
4
  * Copyright (c) 2014-present, camunda Services GmbH
5
5
  *
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * Source Code: https://github.com/bpmn-io/bpmn-js
10
10
  *
11
- * Date: 2022-06-07
11
+ * Date: 2022-06-08
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -28717,7 +28717,7 @@
28717
28717
  bpmnAutoResizeProvider: [ 'type', BpmnAutoResizeProvider ]
28718
28718
  };
28719
28719
 
28720
- var HIGH_PRIORITY$k = 1500;
28720
+ var HIGH_PRIORITY$l = 1500;
28721
28721
 
28722
28722
 
28723
28723
  /**
@@ -28785,7 +28785,7 @@
28785
28785
  */
28786
28786
  eventBus.on('drag.start', function(event) {
28787
28787
 
28788
- eventBus.once('drag.move', HIGH_PRIORITY$k, function(event) {
28788
+ eventBus.once('drag.move', HIGH_PRIORITY$l, function(event) {
28789
28789
 
28790
28790
  ensureHover(event);
28791
28791
 
@@ -28816,7 +28816,7 @@
28816
28816
  hover = event.element;
28817
28817
  });
28818
28818
 
28819
- eventBus.on('element.hover', HIGH_PRIORITY$k, function(event) {
28819
+ eventBus.on('element.hover', HIGH_PRIORITY$l, function(event) {
28820
28820
 
28821
28821
  // (3) am I on an element still?
28822
28822
  if (hover) {
@@ -30646,7 +30646,7 @@
30646
30646
  MARKER_CONNECT_UPDATING$1 = 'djs-updating',
30647
30647
  MARKER_ELEMENT_HIDDEN = 'djs-element-hidden';
30648
30648
 
30649
- var HIGH_PRIORITY$j = 1100;
30649
+ var HIGH_PRIORITY$k = 1100;
30650
30650
 
30651
30651
  /**
30652
30652
  * Preview connection while moving bendpoints.
@@ -30709,7 +30709,7 @@
30709
30709
  eventBus.on([
30710
30710
  'bendpoint.move.out',
30711
30711
  'bendpoint.move.cleanup'
30712
- ], HIGH_PRIORITY$j, function(event) {
30712
+ ], HIGH_PRIORITY$k, function(event) {
30713
30713
  var context = event.context,
30714
30714
  hover = context.hover,
30715
30715
  target = context.target;
@@ -30795,7 +30795,7 @@
30795
30795
  eventBus.on([
30796
30796
  'bendpoint.move.end',
30797
30797
  'bendpoint.move.cancel'
30798
- ], HIGH_PRIORITY$j, function(event) {
30798
+ ], HIGH_PRIORITY$k, function(event) {
30799
30799
  var context = event.context,
30800
30800
  connection = context.connection,
30801
30801
  draggerGfx = context.draggerGfx,
@@ -31756,7 +31756,7 @@
31756
31756
  return hover && source && hover === source && source !== target;
31757
31757
  }
31758
31758
 
31759
- var HIGH_PRIORITY$i = 1100,
31759
+ var HIGH_PRIORITY$j = 1100,
31760
31760
  LOW_PRIORITY$i = 900;
31761
31761
 
31762
31762
  var MARKER_OK$3 = 'connect-ok',
@@ -31817,7 +31817,7 @@
31817
31817
  eventBus.on([
31818
31818
  'connect.out',
31819
31819
  'connect.cleanup'
31820
- ], HIGH_PRIORITY$i, function(event) {
31820
+ ], HIGH_PRIORITY$j, function(event) {
31821
31821
  var hover = event.hover;
31822
31822
 
31823
31823
  if (hover) {
@@ -33466,7 +33466,7 @@
33466
33466
 
33467
33467
  var PREFIX = 'create';
33468
33468
 
33469
- var HIGH_PRIORITY$h = 2000;
33469
+ var HIGH_PRIORITY$i = 2000;
33470
33470
 
33471
33471
 
33472
33472
  /**
@@ -33694,7 +33694,7 @@
33694
33694
  eventBus.on('create.init', function() {
33695
33695
  eventBus.on('elements.changed', cancel);
33696
33696
 
33697
- eventBus.once([ 'create.cancel', 'create.end' ], HIGH_PRIORITY$h, function() {
33697
+ eventBus.once([ 'create.cancel', 'create.end' ], HIGH_PRIORITY$i, function() {
33698
33698
  eventBus.off('elements.changed', cancel);
33699
33699
  });
33700
33700
  });
@@ -39590,7 +39590,7 @@
39590
39590
  return newBounds;
39591
39591
  };
39592
39592
 
39593
- var HIGH_PRIORITY$g = 2000;
39593
+ var HIGH_PRIORITY$h = 2000;
39594
39594
 
39595
39595
  /**
39596
39596
  * Integrates space tool with grid snapping.
@@ -39599,7 +39599,7 @@
39599
39599
  eventBus.on([
39600
39600
  'spaceTool.move',
39601
39601
  'spaceTool.end'
39602
- ], HIGH_PRIORITY$g, function(event) {
39602
+ ], HIGH_PRIORITY$h, function(event) {
39603
39603
  var context = event.context;
39604
39604
 
39605
39605
  if (!context.initialized) {
@@ -39648,11 +39648,11 @@
39648
39648
  gridSnapping: [ 'type', GridSnapping ]
39649
39649
  };
39650
39650
 
39651
- var HIGH_PRIORITY$f = 2000;
39651
+ var HIGH_PRIORITY$g = 2000;
39652
39652
 
39653
39653
 
39654
39654
  function AutoPlaceBehavior(eventBus, gridSnapping) {
39655
- eventBus.on('autoPlace', HIGH_PRIORITY$f, function(context) {
39655
+ eventBus.on('autoPlace', HIGH_PRIORITY$g, function(context) {
39656
39656
  var source = context.source,
39657
39657
  sourceMid = getMid(source),
39658
39658
  shape = context.shape;
@@ -39738,7 +39738,7 @@
39738
39738
  'gridSnapping'
39739
39739
  ];
39740
39740
 
39741
- var HIGH_PRIORITY$e = 3000;
39741
+ var HIGH_PRIORITY$f = 3000;
39742
39742
 
39743
39743
 
39744
39744
  /**
@@ -39754,7 +39754,7 @@
39754
39754
  this.postExecuted([
39755
39755
  'connection.create',
39756
39756
  'connection.layout'
39757
- ], HIGH_PRIORITY$e, function(event) {
39757
+ ], HIGH_PRIORITY$f, function(event) {
39758
39758
  var context = event.context,
39759
39759
  connection = context.connection,
39760
39760
  hints = context.hints || {},
@@ -40893,6 +40893,9 @@
40893
40893
 
40894
40894
  }
40895
40895
 
40896
+ var HIGH_PRIORITY$e = 2000;
40897
+
40898
+
40896
40899
  function LabelEditingProvider(
40897
40900
  eventBus, bpmnFactory, canvas, directEditing,
40898
40901
  modeling, resizeHandles, textRenderer) {
@@ -40928,7 +40931,7 @@
40928
40931
  eventBus.on([
40929
40932
  'shape.remove',
40930
40933
  'connection.remove'
40931
- ], function(event) {
40934
+ ], HIGH_PRIORITY$e, function(event) {
40932
40935
 
40933
40936
  if (directEditing.isActive(event.element)) {
40934
40937
  directEditing.cancel();