bpmn-js 16.3.1 → 16.3.2

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 v16.3.1
2
+ * bpmn-js - bpmn-modeler v16.3.2
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: 2024-01-05
11
+ * Date: 2024-01-09
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -37401,13 +37401,15 @@
37401
37401
  * and remove the potential candidates for connection replacement to have a single compensation activity.
37402
37402
  */
37403
37403
  function handleReplacement(context) {
37404
- const { targetElement } = context.hints || {},
37405
- { oldShape } = context;
37404
+ const {
37405
+ newData,
37406
+ oldShape
37407
+ } = context;
37406
37408
 
37407
37409
  // from compensate boundary event
37408
37410
  if (isCompensationBoundaryEvent(context.oldShape) &&
37409
- targetElement.eventDefinitionType !== 'bpmn:CompensateEventDefinition' ||
37410
- targetElement.type !== 'bpmn:BoundaryEvent'
37411
+ newData.eventDefinitionType !== 'bpmn:CompensateEventDefinition' ||
37412
+ newData.type !== 'bpmn:BoundaryEvent'
37411
37413
  ) {
37412
37414
  const targetConnection = oldShape.outgoing.find(
37413
37415
  ({ target }) => isForCompensation$1(target)
@@ -37421,8 +37423,8 @@
37421
37423
  // to compensate boundary event
37422
37424
  else if (
37423
37425
  !isCompensationBoundaryEvent(context.oldShape) &&
37424
- targetElement.eventDefinitionType === 'bpmn:CompensateEventDefinition' &&
37425
- targetElement.type === 'bpmn:BoundaryEvent'
37426
+ newData.eventDefinitionType === 'bpmn:CompensateEventDefinition' &&
37427
+ newData.type === 'bpmn:BoundaryEvent'
37426
37428
  ) {
37427
37429
  const targetConnection = oldShape.outgoing.find(
37428
37430
  ({ target }) => isForCompensationAllowed(target)