camunda-bpmn-js 4.6.1 → 4.6.3

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 (48) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +88 -88
  3. package/dist/assets/base-modeler.css +5 -5
  4. package/dist/assets/base-navigated-viewer.css +1 -1
  5. package/dist/assets/base-viewer.css +1 -1
  6. package/dist/assets/camunda-cloud-modeler.css +2 -2
  7. package/dist/assets/camunda-platform-modeler.css +1 -1
  8. package/dist/base-modeler.development.js +50 -55
  9. package/dist/base-modeler.production.min.js +33 -33
  10. package/dist/camunda-cloud-modeler.development.js +139 -118
  11. package/dist/camunda-cloud-modeler.production.min.js +35 -35
  12. package/dist/camunda-cloud-navigated-viewer.development.js +40 -40
  13. package/dist/camunda-cloud-viewer.development.js +40 -40
  14. package/dist/camunda-platform-modeler.development.js +122 -101
  15. package/dist/camunda-platform-modeler.production.min.js +33 -33
  16. package/dist/camunda-platform-navigated-viewer.development.js +27 -27
  17. package/dist/camunda-platform-viewer.development.js +27 -27
  18. package/lib/base/Modeler.d.ts +20 -20
  19. package/lib/base/Modeler.js +65 -65
  20. package/lib/base/NavigatedViewer.d.ts +2 -2
  21. package/lib/base/NavigatedViewer.js +2 -2
  22. package/lib/base/Viewer.d.ts +2 -2
  23. package/lib/base/Viewer.js +2 -2
  24. package/lib/camunda-cloud/ElementTemplatesValidator.d.ts +1 -1
  25. package/lib/camunda-cloud/Modeler.d.ts +3 -3
  26. package/lib/camunda-cloud/Modeler.js +84 -84
  27. package/lib/camunda-cloud/NavigatedViewer.d.ts +9 -9
  28. package/lib/camunda-cloud/NavigatedViewer.js +36 -36
  29. package/lib/camunda-cloud/Viewer.d.ts +9 -9
  30. package/lib/camunda-cloud/Viewer.js +36 -36
  31. package/lib/camunda-cloud/util/commonModules.d.ts +9 -9
  32. package/lib/camunda-cloud/util/commonModules.js +15 -15
  33. package/lib/camunda-platform/Modeler.d.ts +3 -3
  34. package/lib/camunda-platform/Modeler.js +68 -68
  35. package/lib/camunda-platform/NavigatedViewer.d.ts +9 -9
  36. package/lib/camunda-platform/NavigatedViewer.js +27 -27
  37. package/lib/camunda-platform/Viewer.d.ts +9 -9
  38. package/lib/camunda-platform/Viewer.js +27 -27
  39. package/lib/camunda-platform/util/commonModules.d.ts +9 -9
  40. package/lib/camunda-platform/util/commonModules.js +11 -11
  41. package/lib/util/ExtensionElementsUtil.d.ts +24 -24
  42. package/lib/util/ExtensionElementsUtil.js +68 -68
  43. package/package.json +140 -140
  44. package/styles/base-modeler.css +5 -5
  45. package/styles/base-navigated-viewer.css +1 -1
  46. package/styles/base-viewer.css +1 -1
  47. package/styles/camunda-cloud-modeler.css +2 -2
  48. package/styles/camunda-platform-modeler.css +1 -1
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2021-present Camunda Services GmbH
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021-present Camunda Services GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  THE SOFTWARE.
package/README.md CHANGED
@@ -1,88 +1,88 @@
1
- # camunda-bpmn-js
2
-
3
- [![CI](https://github.com/camunda/camunda-bpmn-js/workflows/CI/badge.svg)](https://github.com/camunda/camunda-bpmn-js/actions?query=workflow%3ACI)
4
-
5
- Embeddable Camunda modeling distributions based on [bpmn-js](https://github.com/bpmn-io/bpmn-js).
6
-
7
- ## Usage
8
-
9
- This project is designed to deliver different BPMN modeling distributions. Instead of creating custom Modeler implementations based on [bpmn-js](https://github.com/bpmn-io/bpmn-js), choose one of the existing packages to mirror the modeling experience of [Camunda's modeling](https://github.com/camunda/camunda-modeler/) products.
10
-
11
- Use a pre-packaged distribution
12
-
13
- ```html
14
- <link rel="stylesheet" href="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/assets/camunda-platform-modeler.css" />
15
-
16
- <script src="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/camunda-platform-modeler.development.js"></script>
17
- ```
18
-
19
- or install it via npm
20
-
21
- ```js
22
- import BpmnModeler from 'camunda-bpmn-js/lib/camunda-platform/Modeler';
23
-
24
- import 'camunda-bpmn-js/dist/assets/camunda-platform-modeler.css';
25
- ```
26
-
27
- into your web-application.
28
-
29
- ```js
30
- var bpmnModeler = new BpmnModeler({
31
- container: '#canvas',
32
- propertiesPanel: {
33
- parent: '#properties'
34
- }
35
- });
36
-
37
- try {
38
-
39
- await bpmnModeler.importXML(someDiagram);
40
-
41
- console.log('success!');
42
- bpmnModeler.get('canvas').zoom('fit-viewport');
43
- } catch (err) {
44
-
45
- console.error('something went wrong:', err);
46
- }
47
- ```
48
-
49
- Checkout [the docs](./docs/DISTRIBUTIONS.md) to learn more about the available distributions.
50
-
51
- ## Build and Run
52
-
53
- Prepare the project by installing all dependencies:
54
-
55
- ```sh
56
- npm install
57
- ```
58
-
59
- Then, depending on your use-case, you may run any of the following commands:
60
-
61
- ```sh
62
- # build the library and run all tests
63
- npm run all
64
-
65
- # spin up a single local camunda platform modeler instance
66
- npm run start:platform
67
-
68
- # run the full development setup
69
- npm run dev
70
- ```
71
-
72
- ## Related
73
-
74
- camunda-bpmn-js builds on top of a few powerful tools:
75
-
76
- * [bpmn-js](https://github.com/bpmn-io/bpmn-js): View and edit BPMN 2.0 diagrams in the browser
77
- * [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
78
- * [bpmn-js-properties-panel](https://github.com/bpmn-io/bpmn-js-properties-panel): A panel for (technical) properties editing
79
- * [bpmn-js-element-templates](https://github.com/bpmn-io/bpmn-js-element-templates): Domain specific editing for bpmn-js
80
- * [bpmn-js-create-append-anything](bpmn-js-create-append-anything): A create/append anything extension for bpmn-js
81
- * [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle): A BPMN 2.0 diagram reader/writer with extensions for [Camunda 7](https://github.com/camunda/camunda-bpmn-moddle) and [Camunda 8](https://github.com/camunda/zeebe-bpmn-moddle)
82
- * [camunda-bpmn-js-behaviors](https://github.com/camunda/camunda-bpmn-js-behaviors): Camunda specific behaviors for bpmn-js
83
-
84
- ## License
85
-
86
- MIT
87
-
88
- Uses [bpmn-js](https://github.com/bpmn-io/bpmn-js) licensed under the bpmn.io license.
1
+ # camunda-bpmn-js
2
+
3
+ [![CI](https://github.com/camunda/camunda-bpmn-js/workflows/CI/badge.svg)](https://github.com/camunda/camunda-bpmn-js/actions?query=workflow%3ACI)
4
+
5
+ Embeddable Camunda modeling distributions based on [bpmn-js](https://github.com/bpmn-io/bpmn-js).
6
+
7
+ ## Usage
8
+
9
+ This project is designed to deliver different BPMN modeling distributions. Instead of creating custom Modeler implementations based on [bpmn-js](https://github.com/bpmn-io/bpmn-js), choose one of the existing packages to mirror the modeling experience of [Camunda's modeling](https://github.com/camunda/camunda-modeler/) products.
10
+
11
+ Use a pre-packaged distribution
12
+
13
+ ```html
14
+ <link rel="stylesheet" href="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/assets/camunda-platform-modeler.css" />
15
+
16
+ <script src="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/camunda-platform-modeler.development.js"></script>
17
+ ```
18
+
19
+ or install it via npm
20
+
21
+ ```js
22
+ import BpmnModeler from 'camunda-bpmn-js/lib/camunda-platform/Modeler';
23
+
24
+ import 'camunda-bpmn-js/dist/assets/camunda-platform-modeler.css';
25
+ ```
26
+
27
+ into your web-application.
28
+
29
+ ```js
30
+ var bpmnModeler = new BpmnModeler({
31
+ container: '#canvas',
32
+ propertiesPanel: {
33
+ parent: '#properties'
34
+ }
35
+ });
36
+
37
+ try {
38
+
39
+ await bpmnModeler.importXML(someDiagram);
40
+
41
+ console.log('success!');
42
+ bpmnModeler.get('canvas').zoom('fit-viewport');
43
+ } catch (err) {
44
+
45
+ console.error('something went wrong:', err);
46
+ }
47
+ ```
48
+
49
+ Checkout [the docs](./docs/DISTRIBUTIONS.md) to learn more about the available distributions.
50
+
51
+ ## Build and Run
52
+
53
+ Prepare the project by installing all dependencies:
54
+
55
+ ```sh
56
+ npm install
57
+ ```
58
+
59
+ Then, depending on your use-case, you may run any of the following commands:
60
+
61
+ ```sh
62
+ # build the library and run all tests
63
+ npm run all
64
+
65
+ # spin up a single local camunda platform modeler instance
66
+ npm run start:platform
67
+
68
+ # run the full development setup
69
+ npm run dev
70
+ ```
71
+
72
+ ## Related
73
+
74
+ camunda-bpmn-js builds on top of a few powerful tools:
75
+
76
+ * [bpmn-js](https://github.com/bpmn-io/bpmn-js): View and edit BPMN 2.0 diagrams in the browser
77
+ * [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
78
+ * [bpmn-js-properties-panel](https://github.com/bpmn-io/bpmn-js-properties-panel): A panel for (technical) properties editing
79
+ * [bpmn-js-element-templates](https://github.com/bpmn-io/bpmn-js-element-templates): Domain specific editing for bpmn-js
80
+ * [bpmn-js-create-append-anything](bpmn-js-create-append-anything): A create/append anything extension for bpmn-js
81
+ * [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle): A BPMN 2.0 diagram reader/writer with extensions for [Camunda 7](https://github.com/camunda/camunda-bpmn-moddle) and [Camunda 8](https://github.com/camunda/zeebe-bpmn-moddle)
82
+ * [camunda-bpmn-js-behaviors](https://github.com/camunda/camunda-bpmn-js-behaviors): Camunda specific behaviors for bpmn-js
83
+
84
+ ## License
85
+
86
+ MIT
87
+
88
+ Uses [bpmn-js](https://github.com/bpmn-io/bpmn-js) licensed under the bpmn.io license.
@@ -1,6 +1,6 @@
1
- @import './diagram-js.css';
2
- @import './bpmn-js.css';
3
- @import './bpmn-font/css/bpmn-embedded.css';
4
- @import './diagram-js-minimap.css';
5
- @import './properties-panel.css';
1
+ @import './diagram-js.css';
2
+ @import './bpmn-js.css';
3
+ @import './bpmn-font/css/bpmn-embedded.css';
4
+ @import './diagram-js-minimap.css';
5
+ @import './properties-panel.css';
6
6
  @import './color-picker.css';
@@ -1,2 +1,2 @@
1
- @import './diagram-js.css';
1
+ @import './diagram-js.css';
2
2
  @import './bpmn-js.css';
@@ -1,2 +1,2 @@
1
- @import './diagram-js.css';
1
+ @import './diagram-js.css';
2
2
  @import './bpmn-js.css';
@@ -1,3 +1,3 @@
1
- @import './base-modeler.css';
2
- @import './element-templates.css';
1
+ @import './base-modeler.css';
2
+ @import './element-templates.css';
3
3
  @import './element-template-chooser.css';
@@ -1,2 +1,2 @@
1
- @import './base-modeler.css';
1
+ @import './base-modeler.css';
2
2
  @import './element-templates.css';
@@ -27510,10 +27510,7 @@
27510
27510
  alignElements: [ 'type', AlignElements$1 ]
27511
27511
  };
27512
27512
 
27513
- var MARKERS_HIDDEN = [
27514
- 'djs-element-hidden',
27515
- 'djs-label-hidden'
27516
- ];
27513
+ var MARKER_HIDDEN$1 = 'djs-element-hidden';
27517
27514
 
27518
27515
  /**
27519
27516
  * @typedef {import('../../model/Types').Element} Element
@@ -28126,9 +28123,7 @@
28126
28123
  var targets = isArray$5(target) ? target : [ target ];
28127
28124
 
28128
28125
  var isHidden = targets.some(function(target) {
28129
- return MARKERS_HIDDEN.some(function(marker) {
28130
- return self._canvas.hasMarker(target, marker);
28131
- });
28126
+ return self._canvas.hasMarker(target, MARKER_HIDDEN$1);
28132
28127
  });
28133
28128
 
28134
28129
  if (isHidden) {
@@ -110088,54 +110083,54 @@
110088
110083
  bpmnPropertiesProvider: ['type', BpmnPropertiesProvider]
110089
110084
  };
110090
110085
 
110091
- /**
110092
- * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
110093
- *
110094
- * @typedef {import('didi').ModuleDeclaration} ModuleDeclaration
110095
- */
110096
-
110097
- /**
110098
- *
110099
- * @param {BaseViewerOptions} options
110100
- */
110101
- function Modeler(options = {}) {
110102
- Modeler$1.call(this, options);
110103
- }
110104
-
110105
- e$5(Modeler, Modeler$1);
110106
-
110107
- /**
110108
- * @param { {
110109
- * disableAdjustOrigin?: boolean;
110110
- * disableGrid?: boolean;
110111
- * } } [options]
110112
- *
110113
- * @returns {ModuleDeclaration[]}
110114
- */
110115
- Modeler.prototype.getModules = function(options = {}) {
110116
- const modules = Modeler$1.prototype.getModules.call(this, options);
110117
-
110118
- return [
110119
- ...modules,
110120
- options.disableAdjustOrigin
110121
- ? diagramOriginModule
110122
- : alignToOriginModule,
110123
- options.disableGrid
110124
- ? {}
110125
- : index$4
110126
- ];
110127
- };
110128
-
110129
- Modeler.prototype._extensionModules = [
110130
- index$5,
110131
- ExecutableFixModule,
110132
- index$3,
110133
- index$2
110134
- ];
110135
-
110136
- Modeler.prototype._modules = [].concat(
110137
- Modeler$1.prototype._modules,
110138
- Modeler.prototype._extensionModules
110086
+ /**
110087
+ * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
110088
+ *
110089
+ * @typedef {import('didi').ModuleDeclaration} ModuleDeclaration
110090
+ */
110091
+
110092
+ /**
110093
+ *
110094
+ * @param {BaseViewerOptions} options
110095
+ */
110096
+ function Modeler(options = {}) {
110097
+ Modeler$1.call(this, options);
110098
+ }
110099
+
110100
+ e$5(Modeler, Modeler$1);
110101
+
110102
+ /**
110103
+ * @param { {
110104
+ * disableAdjustOrigin?: boolean;
110105
+ * disableGrid?: boolean;
110106
+ * } } [options]
110107
+ *
110108
+ * @returns {ModuleDeclaration[]}
110109
+ */
110110
+ Modeler.prototype.getModules = function(options = {}) {
110111
+ const modules = Modeler$1.prototype.getModules.call(this, options);
110112
+
110113
+ return [
110114
+ ...modules,
110115
+ options.disableAdjustOrigin
110116
+ ? diagramOriginModule
110117
+ : alignToOriginModule,
110118
+ options.disableGrid
110119
+ ? {}
110120
+ : index$4
110121
+ ];
110122
+ };
110123
+
110124
+ Modeler.prototype._extensionModules = [
110125
+ index$5,
110126
+ ExecutableFixModule,
110127
+ index$3,
110128
+ index$2
110129
+ ];
110130
+
110131
+ Modeler.prototype._modules = [].concat(
110132
+ Modeler$1.prototype._modules,
110133
+ Modeler.prototype._extensionModules
110139
110134
  );
110140
110135
 
110141
110136
  return Modeler;