camunda-bpmn-js 2.3.1 → 2.4.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.
@@ -1000,7 +1000,7 @@
1000
1000
  *
1001
1001
  * @return {Object} the target
1002
1002
  */
1003
- function merge(target, ...sources) {
1003
+ function merge$1(target, ...sources) {
1004
1004
 
1005
1005
  if (!sources.length) {
1006
1006
  return target;
@@ -1029,7 +1029,7 @@
1029
1029
  targetVal = {};
1030
1030
  }
1031
1031
 
1032
- target[key] = merge(targetVal, sourceVal);
1032
+ target[key] = merge$1(targetVal, sourceVal);
1033
1033
  } else {
1034
1034
  target[key] = sourceVal;
1035
1035
  }
@@ -1066,7 +1066,7 @@
1066
1066
  keys: keys,
1067
1067
  map: map$2,
1068
1068
  matchPattern: matchPattern,
1069
- merge: merge,
1069
+ merge: merge$1,
1070
1070
  omit: omit,
1071
1071
  pick: pick,
1072
1072
  reduce: reduce,
@@ -4783,7 +4783,7 @@
4783
4783
 
4784
4784
  var intersect = findPathIntersections;
4785
4785
 
4786
- var intersectPaths = intersect;
4786
+ var intersectPaths = /*@__PURE__*/getDefaultExportFromCjs(intersect);
4787
4787
 
4788
4788
  /**
4789
4789
  * @typedef {import('../core/Types').ElementLike} Element
@@ -6826,11 +6826,7 @@
6826
6826
  }
6827
6827
  };
6828
6828
 
6829
- var objectRefsExports = {};
6830
- var objectRefs = {
6831
- get exports(){ return objectRefsExports; },
6832
- set exports(v){ objectRefsExports = v; },
6833
- };
6829
+ var objectRefs = {exports: {}};
6834
6830
 
6835
6831
  var collection = {};
6836
6832
 
@@ -7144,12 +7140,11 @@
7144
7140
 
7145
7141
  var refs = Refs$1;
7146
7142
 
7147
- (function (module) {
7148
- module.exports = refs;
7143
+ objectRefs.exports = refs;
7149
7144
 
7150
- module.exports.Collection = collection;
7151
- } (objectRefs));
7145
+ objectRefs.exports.Collection = collection;
7152
7146
 
7147
+ var objectRefsExports = objectRefs.exports;
7153
7148
  var Refs = /*@__PURE__*/getDefaultExportFromCjs(objectRefsExports);
7154
7149
 
7155
7150
  var parentRefs = new Refs({ name: 'children', enumerable: true, collection: true }, { name: 'parent' }),
@@ -26189,11 +26184,7 @@
26189
26184
  NavigatedViewer.prototype._navigationModules
26190
26185
  );
26191
26186
 
26192
- var hammerExports = {};
26193
- var hammer = {
26194
- get exports(){ return hammerExports; },
26195
- set exports(v){ hammerExports = v; },
26196
- };
26187
+ var hammer = {exports: {}};
26197
26188
 
26198
26189
  /*! Hammer.JS - v2.0.7 - 2016-04-22
26199
26190
  * http://hammerjs.github.io/
@@ -28838,10 +28829,11 @@
28838
28829
  window[exportName] = Hammer;
28839
28830
  }
28840
28831
 
28841
- })(window, document, 'Hammer');
28832
+ })(window, document, 'Hammer');
28842
28833
  } (hammer));
28843
28834
 
28844
- var Hammer = hammerExports;
28835
+ var hammerExports = hammer.exports;
28836
+ var Hammer = /*@__PURE__*/getDefaultExportFromCjs(hammerExports);
28845
28837
 
28846
28838
  /**
28847
28839
  * @typedef {import('didi').Injector} Injector
@@ -67820,11 +67812,7 @@
67820
67812
 
67821
67813
  var t$1,u,r,o$2=0,i$2=[],c=n$1.__b,f=n$1.__r,e$2=n$1.diffed,a$1=n$1.__c,v=n$1.unmount;function m(t,r){n$1.__h&&n$1.__h(u,t,o$2||r),o$2=0;var i=u.__H||(u.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function l$1(n){return o$2=1,p$1(w$1,n)}function p$1(n,r,o){var i=m(t$1++,2);return i.t=n,i.__c||(i.__=[o?o(r):w$1(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}));}],i.__c=u),i.__}function y(r,o){var i=m(t$1++,3);!n$1.__s&&k$1(i.__H,o)&&(i.__=r,i.__H=o,u.__H.__h.push(i));}function h(r,o){var i=m(t$1++,4);!n$1.__s&&k$1(i.__H,o)&&(i.__=r,i.__H=o,u.__h.push(i));}function s(n){return o$2=5,d(function(){return {current:n}},[])}function _(n,t,u){o$2=6,h(function(){"function"==typeof n?n(t()):n&&(n.current=t());},null==u?u:u.concat(n));}function d(n,u){var r=m(t$1++,7);return k$1(r.__H,u)&&(r.__=n(),r.__H=u,r.__h=n),r.__}function A$1(n,t){return o$2=8,d(function(){return n},t)}function F$1(n){var r=u.context[n.__c],o=m(t$1++,9);return o.__c=n,r?(null==o.__&&(o.__=!0,r.sub(u)),r.props.value):n.__}function T$1(t,u){n$1.useDebugValue&&n$1.useDebugValue(u?u(t):t);}function x$1(){i$2.forEach(function(t){if(t.__P)try{t.__H.__h.forEach(g$1),t.__H.__h.forEach(j$1),t.__H.__h=[];}catch(u){t.__H.__h=[],n$1.__e(u,t.__v);}}),i$2=[];}n$1.__b=function(n){u=null,c&&c(n);},n$1.__r=function(n){f&&f(n),t$1=0;var r=(u=n.__c).__H;r&&(r.__h.forEach(g$1),r.__h.forEach(j$1),r.__h=[]);},n$1.diffed=function(t){e$2&&e$2(t);var o=t.__c;o&&o.__H&&o.__H.__h.length&&(1!==i$2.push(o)&&r===n$1.requestAnimationFrame||((r=n$1.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),b&&cancelAnimationFrame(t),setTimeout(n);},r=setTimeout(u,100);b&&(t=requestAnimationFrame(u));})(x$1)),u=void 0;},n$1.__c=function(t,u){u.some(function(t){try{t.__h.forEach(g$1),t.__h=t.__h.filter(function(n){return !n.__||j$1(n)});}catch(r){u.some(function(n){n.__h&&(n.__h=[]);}),u=[],n$1.__e(r,t.__v);}}),a$1&&a$1(t,u);},n$1.unmount=function(t){v&&v(t);var u=t.__c;if(u&&u.__H)try{u.__H.__.forEach(g$1);}catch(t){n$1.__e(t,u.__v);}};var b="function"==typeof requestAnimationFrame;function g$1(n){var t=u;"function"==typeof n.__c&&n.__c(),u=t;}function j$1(n){var t=u;n.__c=n.__(),u=t;}function k$1(n,t){return !n||n.length!==t.length||t.some(function(t,u){return t!==n[u]})}function w$1(n,t){return "function"==typeof t?t(n):t}
67822
67814
 
67823
- var classnamesExports = {};
67824
- var classnames$1 = {
67825
- get exports(){ return classnamesExports; },
67826
- set exports(v){ classnamesExports = v; },
67827
- };
67815
+ var classnames$1 = {exports: {}};
67828
67816
 
67829
67817
  /*!
67830
67818
  Copyright (c) 2018 Jed Watson.
@@ -67879,10 +67867,11 @@
67879
67867
  } else {
67880
67868
  window.classNames = classNames;
67881
67869
  }
67882
- }());
67870
+ }());
67883
67871
  } (classnames$1));
67884
67872
 
67885
- var classnames = classnamesExports;
67873
+ var classnamesExports = classnames$1.exports;
67874
+ var classnames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
67886
67875
 
67887
67876
  function C$1(n,t){for(var e in t)n[e]=t[e];return n}function S(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function E(n){this.props=n;}function g(n,t){function e(n){var e=this.props.ref,r=e==n.ref;return !r&&e&&(e.call?e(null):e.current=null),t?!t(this.props,n)||!r:S(this.props,n)}function r(t){return this.shouldComponentUpdate=e,a$2(n,t)}return r.displayName="Memo("+(n.displayName||n.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(E.prototype=new p$2).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(n,t){return S(this.props,n)||S(this.state,t)};var w=n$1.__b;n$1.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),w&&w(n);};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function x(n){function t(t,e){var r=C$1({},t);return delete r.ref,n(r,(e=t.ref||e)&&("object"!=typeof e||"current"in e)?e:null)}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var N=function(n,t){return null==n?null:w$2(w$2(n).map(t))},k={map:N,forEach:N,count:function(n){return n?w$2(n).length:0},only:function(n){var t=w$2(n);if(1!==t.length)throw "Children.only";return t[0]},toArray:w$2},A=n$1.__e;n$1.__e=function(n,t,e){if(n.then)for(var r,u=t;u=u.__;)if((r=u.__c)&&r.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),r.__c(n,t);A(n,t,e);};var O=n$1.unmount;function L(){this.__u=0,this.t=null,this.__b=null;}function U(n){var t=n.__.__c;return t&&t.__e&&t.__e(n)}function D(n){var t,e,r;function u(u){if(t||(t=n()).then(function(n){e=n.default||n;},function(n){r=n;}),r)throw r;if(!e)throw t;return a$2(e,u)}return u.displayName="Lazy",u.__f=!0,u}function F(){this.u=null,this.o=null;}n$1.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),O&&O(n);},(L.prototype=new p$2).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=U(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__e){var n=r.state.__e;r.__v.__k[0]=function n(t,e,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate();}},f=!0===t.__h;r.__u++||f||r.setState({__e:r.__b=r.__v.__k[0]}),n.then(i,i);},L.prototype.componentWillUnmount=function(){this.t=[];},L.prototype.render=function(n,t){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function n(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),t.__c.__H=null),null!=(t=C$1({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)})),t}(this.__b,e,r.__O=r.__P);}this.__b=null;}var u=t.__e&&a$2(y$1,null,n.fallback);return u&&(u.__h=null),[a$2(y$1,null,t.__e?null:n.children),u]};var M=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function T(n){return this.getChildContext=function(){return n.context},n.children}function j(n){var t=this,e=n.i;t.componentWillUnmount=function(){N$1(null,t.l),t.l=null,t.i=null;},t.i&&t.i!==e&&t.componentWillUnmount(),n.__v?(t.l||(t.i=e,t.l={nodeType:1,parentNode:e,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n);},insertBefore:function(n,e){this.childNodes.push(n),t.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n);}}),N$1(a$2(T,{context:t.context},n.__v),t.l)):t.l&&t.componentWillUnmount();}function I(n,t){return a$2(j,{__v:n,i:t})}(F.prototype=new p$2).__e=function(n){var t=this,e=U(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),M(t,n,r)):u();};e?e(o):o();}},F.prototype.render=function(n){this.u=null,this.o=new Map;var t=w$2(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},F.prototype.componentDidUpdate=F.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){M(n,e,t);});};var W="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,P=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,V=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function z(n,t,e){return null==t.__k&&(t.textContent=""),N$1(n,t),"function"==typeof e&&e(),n?n.__c:null}function B(n,t,e){return O$1(n,t),"function"==typeof e&&e(),n?n.__c:null}p$2.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(p$2.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(t){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:t});}});});var H=n$1.event;function Z(){}function Y(){return this.cancelBubble}function $(){return this.defaultPrevented}n$1.event=function(n){return H&&(n=H(n)),n.persist=Z,n.isPropagationStopped=Y,n.isDefaultPrevented=$,n.nativeEvent=n};var q,G={configurable:!0,get:function(){return this.class}},J=n$1.vnode;n$1.vnode=function(n){var t=n.type,e=n.props,r=e;if("string"==typeof t){for(var u in r={},e){var o=e[u];"value"===u&&"defaultValue"in e&&null==o||("defaultValue"===u&&"value"in e&&null==e.value?u="value":"download"===u&&!0===o?o="":/ondoubleclick/i.test(u)?u="ondblclick":/^onchange(textarea|input)/i.test(u+t)&&!V(e.type)?u="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(u)?u=u.toLowerCase():P.test(u)?u=u.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),r[u]=o);}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=w$2(e.children).forEach(function(n){n.props.selected=-1!=r.value.indexOf(n.props.value);})),"select"==t&&null!=r.defaultValue&&(r.value=w$2(e.children).forEach(function(n){n.props.selected=r.multiple?-1!=r.defaultValue.indexOf(n.props.value):r.defaultValue==n.props.value;})),n.props=r;}t&&e.class!=e.className&&(G.enumerable="className"in e,null!=e.className&&(r.class=e.className),Object.defineProperty(r,"className",G)),n.$$typeof=W,J&&J(n);};var K=n$1.__r;n$1.__r=function(n){K&&K(n),q=n.__c;};var Q={ReactCurrentDispatcher:{current:{readContext:function(n){return q.__n[n.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):function(){return Date.now()};function fn(n){return a$2.bind(null,n)}function cn(n){return !!n&&n.$$typeof===W}function an(n){return cn(n)?S$1.apply(null,arguments):n}function sn(n){return !!n.__k&&(N$1(null,n),!0)}function hn(n){return n&&(n.base||1===n.nodeType&&n)||null}var pn=function(n,t){return n(t)};var React = {useState:l$1,useReducer:p$1,useEffect:y,useLayoutEffect:h,useRef:s,useImperativeHandle:_,useMemo:d,useCallback:A$1,useContext:F$1,useDebugValue:T$1,version:"16.8.0",Children:k,render:z,hydrate:B,unmountComponentAtNode:sn,createPortal:I,createElement:a$2,createContext:q$1,createFactory:fn,cloneElement:an,createRef:h$1,Fragment:y$1,isValidElement:cn,findDOMNode:hn,Component:p$2,PureComponent:E,memo:g,forwardRef:x,unstable_batchedUpdates:pn,StrictMode:y$1,Suspense:L,SuspenseList:F,lazy:D,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Q};
67888
67877
 
@@ -98230,11 +98219,7 @@
98230
98219
  zeebe.getVariablesForElement = getVariablesForElement;
98231
98220
  zeebe.getVariablesForScope = getVariablesForScope$1;
98232
98221
 
98233
- var arrayMoveExports = {};
98234
- var arrayMove$1 = {
98235
- get exports(){ return arrayMoveExports; },
98236
- set exports(v){ arrayMoveExports = v; },
98237
- };
98222
+ var arrayMove$1 = {exports: {}};
98238
98223
 
98239
98224
  const arrayMoveMutate = (array, from, to) => {
98240
98225
  const startIndex = from < 0 ? array.length + from : from;
@@ -98254,7 +98239,7 @@
98254
98239
  };
98255
98240
 
98256
98241
  arrayMove$1.exports = arrayMove;
98257
- var mutate = arrayMoveExports.mutate = arrayMoveMutate;
98242
+ var mutate = arrayMove$1.exports.mutate = arrayMoveMutate;
98258
98243
 
98259
98244
  var dist = {};
98260
98245
 
@@ -99049,6 +99034,8 @@
99049
99034
  return 0;
99050
99035
  };
99051
99036
 
99037
+ var semverCompare$1 = /*@__PURE__*/getDefaultExportFromCjs(semverCompare);
99038
+
99052
99039
  var version$1 = "0.12.1";
99053
99040
 
99054
99041
  var standaloneValidator = {exports: {}};
@@ -114220,7 +114207,7 @@
114220
114207
  schemaVersion = template.$schema && getSchemaVersion(template.$schema);
114221
114208
 
114222
114209
  // (1) compatibility
114223
- if (schemaVersion && semverCompare(SUPPORTED_SCHEMA_VERSION$1, schemaVersion) < 0) {
114210
+ if (schemaVersion && semverCompare$1(SUPPORTED_SCHEMA_VERSION$1, schemaVersion) < 0) {
114224
114211
  return this._logError(`unsupported element template schema version <${schemaVersion}>. Your installation only supports up to version <${SUPPORTED_SCHEMA_VERSION$1}>. Please update your installation`, template);
114225
114212
  }
114226
114213
 
@@ -114426,7 +114413,7 @@
114426
114413
  }
114427
114414
 
114428
114415
  // (2) compatibility
114429
- if (schemaVersion && semverCompare(SUPPORTED_SCHEMA_VERSION, schemaVersion) < 0) {
114416
+ if (schemaVersion && semverCompare$1(SUPPORTED_SCHEMA_VERSION, schemaVersion) < 0) {
114430
114417
  return this._logError(`unsupported element template schema version <${schemaVersion}>. Your installation only supports up to version <${SUPPORTED_SCHEMA_VERSION}>. Please update your installation`, template);
114431
114418
  }
114432
114419
 
@@ -119888,7 +119875,17 @@
119888
119875
  const variables = {};
119889
119876
 
119890
119877
  const workerTasks = bpmnjs.getDefinitions().get('rootElements').map(async element => {
119891
- variables[element.id] = await this._baseExtractor(element, [ this._extractor.bind(this) ]);
119878
+
119879
+ const elementVariables = await this._baseExtractor(element, [ this._extractor.bind(this) ]);
119880
+
119881
+ // Annotate variables with extractor information
119882
+ variables[element.id] = elementVariables.map(variable => {
119883
+ if (!variable.provider) {
119884
+ variable.provider = [ this._baseExtractor ];
119885
+ }
119886
+
119887
+ return variable;
119888
+ });
119892
119889
  });
119893
119890
 
119894
119891
  await Promise.all(workerTasks);
@@ -119923,7 +119920,8 @@
119923
119920
  );
119924
119921
 
119925
119922
  if (existingVariable) {
119926
- mergeOrigin(existingVariable, variable);
119923
+ merge('origin', existingVariable, variable);
119924
+ merge('provider', existingVariable, variable);
119927
119925
  mergeEntries(existingVariable, variable);
119928
119926
  } else {
119929
119927
  mergedVariables.push(variable);
@@ -119972,7 +119970,8 @@
119972
119970
  processVariables.push({
119973
119971
  ...cloneVariable(variable),
119974
119972
  origin: [ element ],
119975
- scope: variable.scope || getScope(element, containerElement, variable.name)
119973
+ scope: variable.scope || getScope(element, containerElement, variable.name),
119974
+ provider: [ provider ]
119976
119975
  });
119977
119976
  });
119978
119977
  });
@@ -120061,10 +120060,18 @@
120061
120060
  return parent;
120062
120061
  }
120063
120062
 
120064
- function mergeOrigin(target, source) {
120065
- const originToAdd = source.origin.filter(o => !target.origin.includes(o));
120063
+ function merge(property, target, source) {
120064
+ if (!source[property]) {
120065
+ source[property] = [];
120066
+ }
120067
+
120068
+ if (!target[property]) {
120069
+ target[property] = [];
120070
+ }
120071
+
120072
+ const originToAdd = source[property].filter(o => !target.origin.includes(o));
120066
120073
 
120067
- target.origin.push(...originToAdd);
120074
+ target[property].push(...originToAdd);
120068
120075
  }
120069
120076
 
120070
120077
  function mergeEntries(target, source) {