bpmn-js 11.4.0 → 11.5.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-modeler v11.4.0
2
+ * bpmn-js - bpmn-modeler v11.5.0
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: 2023-02-16
11
+ * Date: 2023-02-27
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -23526,10 +23526,10 @@
23526
23526
  // default moddle extensions the viewer is composed of
23527
23527
  Viewer.prototype._moddleExtensions = {};
23528
23528
 
23529
- var KEYS_COPY = [ 'c', 'C', 'KeyC' ];
23530
- var KEYS_PASTE = [ 'v', 'V', 'KeyV' ];
23531
- var KEYS_REDO = [ 'y', 'Y', 'KeyY' ];
23532
- var KEYS_UNDO = [ 'z', 'Z', 'KeyZ' ];
23529
+ var KEYS_COPY = [ 'c', 'C' ];
23530
+ var KEYS_PASTE = [ 'v', 'V' ];
23531
+ var KEYS_REDO = [ 'y', 'Y' ];
23532
+ var KEYS_UNDO = [ 'z', 'Z' ];
23533
23533
 
23534
23534
  /**
23535
23535
  * Returns true if event was triggered with any modifier
@@ -48299,8 +48299,12 @@
48299
48299
  }
48300
48300
 
48301
48301
  // create shape
48302
- this.executed('shape.create', function(context) {
48303
- var shape = context.shape;
48302
+ this.executed([
48303
+ 'shape.create',
48304
+ 'element.updateProperties',
48305
+ 'element.updateModdleProperties'
48306
+ ], function(context) {
48307
+ var shape = context.shape || context.element;
48304
48308
 
48305
48309
  if (!canHaveRootElementReference(shape)) {
48306
48310
  return;
@@ -48320,7 +48324,11 @@
48320
48324
  }
48321
48325
  }, true);
48322
48326
 
48323
- this.reverted('shape.create', function(context) {
48327
+ this.reverted([
48328
+ 'shape.create',
48329
+ 'element.updateProperties',
48330
+ 'element.updateModdleProperties'
48331
+ ], function(context) {
48324
48332
  var addedRootElement = context.addedRootElement;
48325
48333
 
48326
48334
  if (!addedRootElement) {