camunda-bpmn-js 0.15.2 → 0.15.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 (56) hide show
  1. package/CHANGELOG.md +312 -280
  2. package/LICENSE +20 -20
  3. package/README.md +84 -84
  4. package/dist/assets/base-modeler.css +4 -4
  5. package/dist/assets/base-navigated-viewer.css +1 -1
  6. package/dist/assets/base-viewer.css +1 -1
  7. package/dist/assets/camunda-cloud-modeler.css +1 -1
  8. package/dist/assets/camunda-platform-modeler.css +1 -1
  9. package/dist/base-modeler.development.js +37 -34
  10. package/dist/base-modeler.production.min.js +1 -1
  11. package/dist/base-navigated-viewer.development.js +7 -4
  12. package/dist/base-navigated-viewer.production.min.js +1 -1
  13. package/dist/base-viewer.development.js +7 -4
  14. package/dist/base-viewer.production.min.js +1 -1
  15. package/dist/camunda-cloud-modeler.development.js +367 -364
  16. package/dist/camunda-cloud-modeler.production.min.js +1 -1
  17. package/dist/camunda-cloud-navigated-viewer.development.js +42 -39
  18. package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
  19. package/dist/camunda-cloud-viewer.development.js +42 -39
  20. package/dist/camunda-cloud-viewer.production.min.js +1 -1
  21. package/dist/camunda-platform-modeler.development.js +68 -65
  22. package/dist/camunda-platform-modeler.production.min.js +1 -1
  23. package/dist/camunda-platform-navigated-viewer.development.js +26 -23
  24. package/dist/camunda-platform-navigated-viewer.production.min.js +1 -1
  25. package/dist/camunda-platform-viewer.development.js +26 -23
  26. package/dist/camunda-platform-viewer.production.min.js +1 -1
  27. package/lib/base/Modeler.js +46 -46
  28. package/lib/base/NavigatedViewer.js +2 -2
  29. package/lib/base/Viewer.js +2 -2
  30. package/lib/camunda-cloud/Modeler.js +68 -68
  31. package/lib/camunda-cloud/NavigatedViewer.js +34 -34
  32. package/lib/camunda-cloud/Viewer.js +34 -34
  33. package/lib/camunda-cloud/features/context-pad/ContextPadOptions.js +15 -15
  34. package/lib/camunda-cloud/features/context-pad/index.js +6 -6
  35. package/lib/camunda-cloud/features/drilldown/index.js +3 -3
  36. package/lib/camunda-cloud/features/palette/PaletteOptions.js +14 -14
  37. package/lib/camunda-cloud/features/palette/PaletteProvider.js +31 -31
  38. package/lib/camunda-cloud/features/palette/index.js +6 -6
  39. package/lib/camunda-cloud/features/popup-menu/ReplaceMenuProvider.js +71 -71
  40. package/lib/camunda-cloud/features/popup-menu/ReplaceOptions.js +46 -46
  41. package/lib/camunda-cloud/features/popup-menu/index.js +6 -6
  42. package/lib/camunda-cloud/features/rules/BpmnRules.js +137 -137
  43. package/lib/camunda-cloud/features/rules/index.js +5 -5
  44. package/lib/camunda-cloud/util/commonModules.js +13 -13
  45. package/lib/camunda-platform/Modeler.js +46 -46
  46. package/lib/camunda-platform/NavigatedViewer.js +25 -25
  47. package/lib/camunda-platform/Viewer.js +24 -24
  48. package/lib/camunda-platform/util/commonModules.js +6 -6
  49. package/lib/util/ExtensionElementsUtil.js +59 -59
  50. package/package.json +109 -110
  51. package/styles/base-modeler.css +4 -4
  52. package/styles/base-navigated-viewer.css +1 -1
  53. package/styles/base-viewer.css +1 -1
  54. package/styles/camunda-cloud-modeler.css +1 -1
  55. package/styles/camunda-platform-modeler.css +1 -1
  56. package/util/index.js +39 -39
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,85 +1,85 @@
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
-
6
- Embeddable Camunda modeling distributions based on [bpmn-js](https://github.com/bpmn-io/bpmn-js).
7
-
8
- ## Usage
9
-
10
- 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.
11
-
12
- Use a pre-packaged distribution
13
-
14
- ```html
15
- <link rel="stylesheet" href="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/assets/camunda-platform-modeler.css" />
16
-
17
- <script src="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/camunda-platform-modeler.development.js"></script>
18
- ```
19
-
20
- or install it via npm
21
-
22
- ```js
23
- import BpmnModeler from 'camunda-bpmn-js/lib/camunda-platform/Modeler';
24
-
25
- import 'camunda-bpmn-js/dist/assets/camunda-platform-modeler.css';
26
- ```
27
-
28
- into your web-application.
29
-
30
- ```js
31
- var bpmnModeler = new BpmnModeler({
32
- container: '#canvas',
33
- propertiesPanel: {
34
- parent: '#properties'
35
- }
36
- });
37
-
38
- try {
39
-
40
- await bpmnModeler.importXML(someDiagram);
41
-
42
- console.log('success!');
43
- viewer.get('canvas').zoom('fit-viewport');
44
- } catch (err) {
45
-
46
- console.error('something went wrong:', err);
47
- }
48
- ```
49
-
50
-
51
- Checkout [the docs](./docs/DISTRIBUTIONS.md) to learn more about the available distributions.
52
- ## Build and Run
53
-
54
-
55
- Prepare the project by installing all dependencies:
56
-
57
- ```sh
58
- npm install
59
- ```
60
-
61
- Then, depending on your use-case, you may run any of the following commands:
62
-
63
- ```sh
64
- # build the library and run all tests
65
- npm run all
66
-
67
- # spin up a single local camunda platform modeler instance
68
- npm run start:platform
69
-
70
- # run the full development setup
71
- npm run dev
72
- ```
73
-
74
- ## Related
75
-
76
- camunda-bpmn-js builds on top of a few powerful tools:
77
-
78
- * [bpmn-js](https://github.com/bpmn-io/bpmn-js): View and edit BPMN 2.0 diagrams in the browser
79
- * [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
80
-
81
- ## License
82
-
83
- MIT
84
-
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
+
6
+ Embeddable Camunda modeling distributions based on [bpmn-js](https://github.com/bpmn-io/bpmn-js).
7
+
8
+ ## Usage
9
+
10
+ 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.
11
+
12
+ Use a pre-packaged distribution
13
+
14
+ ```html
15
+ <link rel="stylesheet" href="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/assets/camunda-platform-modeler.css" />
16
+
17
+ <script src="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/camunda-platform-modeler.development.js"></script>
18
+ ```
19
+
20
+ or install it via npm
21
+
22
+ ```js
23
+ import BpmnModeler from 'camunda-bpmn-js/lib/camunda-platform/Modeler';
24
+
25
+ import 'camunda-bpmn-js/dist/assets/camunda-platform-modeler.css';
26
+ ```
27
+
28
+ into your web-application.
29
+
30
+ ```js
31
+ var bpmnModeler = new BpmnModeler({
32
+ container: '#canvas',
33
+ propertiesPanel: {
34
+ parent: '#properties'
35
+ }
36
+ });
37
+
38
+ try {
39
+
40
+ await bpmnModeler.importXML(someDiagram);
41
+
42
+ console.log('success!');
43
+ viewer.get('canvas').zoom('fit-viewport');
44
+ } catch (err) {
45
+
46
+ console.error('something went wrong:', err);
47
+ }
48
+ ```
49
+
50
+
51
+ Checkout [the docs](./docs/DISTRIBUTIONS.md) to learn more about the available distributions.
52
+ ## Build and Run
53
+
54
+
55
+ Prepare the project by installing all dependencies:
56
+
57
+ ```sh
58
+ npm install
59
+ ```
60
+
61
+ Then, depending on your use-case, you may run any of the following commands:
62
+
63
+ ```sh
64
+ # build the library and run all tests
65
+ npm run all
66
+
67
+ # spin up a single local camunda platform modeler instance
68
+ npm run start:platform
69
+
70
+ # run the full development setup
71
+ npm run dev
72
+ ```
73
+
74
+ ## Related
75
+
76
+ camunda-bpmn-js builds on top of a few powerful tools:
77
+
78
+ * [bpmn-js](https://github.com/bpmn-io/bpmn-js): View and edit BPMN 2.0 diagrams in the browser
79
+ * [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
80
+
81
+ ## License
82
+
83
+ MIT
84
+
85
85
  Uses [bpmn-js](https://github.com/bpmn-io/bpmn-js) licensed under the bpmn.io license.
@@ -1,5 +1,5 @@
1
- @import './diagram-js.css';
2
- @import './bpmn-js.css';
3
- @import './bpmn-font/css/bpmn-embedded.css';
4
- @import './diagram-js-minimap.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
5
  @import './properties-panel.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,2 +1,2 @@
1
- @import './base-modeler.css';
1
+ @import './base-modeler.css';
2
2
  @import './element-templates.css';
@@ -1,2 +1,2 @@
1
- @import './base-modeler.css';
1
+ @import './base-modeler.css';
2
2
  @import './element-templates.css';
@@ -19597,11 +19597,14 @@
19597
19597
  helperSvg = create('svg');
19598
19598
 
19599
19599
  attr$1(helperSvg, {
19600
- id: 'helper-svg',
19601
- width: 0,
19602
- height: 0,
19600
+ id: 'helper-svg'
19601
+ });
19602
+
19603
+ assign$1(helperSvg, {
19603
19604
  visibility: 'hidden',
19604
- position: 'fixed'
19605
+ position: 'fixed',
19606
+ width: 0,
19607
+ height: 0
19605
19608
  });
19606
19609
 
19607
19610
  document.body.appendChild(helperSvg);
@@ -68001,36 +68004,36 @@
68001
68004
 
68002
68005
  document.createElement('form');
68003
68006
 
68004
- /**
68005
- *
68006
- * @param {Object} options
68007
- */
68008
- function Modeler$1(options = {}) {
68009
-
68010
- this._injectOriginModule(options);
68011
-
68012
- Modeler.call(this, options);
68013
- }
68014
-
68015
- inherits_browser(Modeler$1, Modeler);
68016
-
68017
- Modeler$1.prototype._injectOriginModule = function(options) {
68018
- this._modules = [].concat(
68019
- this._modules,
68020
- (options && options.disableAdjustOrigin ? diagramOriginModule : alignToOriginModule)
68021
- );
68022
- };
68023
-
68024
- Modeler$1.prototype._extensionModules = [
68025
- index$1,
68026
- ExecutableFixModule,
68027
- index$3,
68028
- index$2$1
68029
- ];
68030
-
68031
- Modeler$1.prototype._modules = [].concat(
68032
- Modeler.prototype._modules,
68033
- Modeler$1.prototype._extensionModules
68007
+ /**
68008
+ *
68009
+ * @param {Object} options
68010
+ */
68011
+ function Modeler$1(options = {}) {
68012
+
68013
+ this._injectOriginModule(options);
68014
+
68015
+ Modeler.call(this, options);
68016
+ }
68017
+
68018
+ inherits_browser(Modeler$1, Modeler);
68019
+
68020
+ Modeler$1.prototype._injectOriginModule = function(options) {
68021
+ this._modules = [].concat(
68022
+ this._modules,
68023
+ (options && options.disableAdjustOrigin ? diagramOriginModule : alignToOriginModule)
68024
+ );
68025
+ };
68026
+
68027
+ Modeler$1.prototype._extensionModules = [
68028
+ index$1,
68029
+ ExecutableFixModule,
68030
+ index$3,
68031
+ index$2$1
68032
+ ];
68033
+
68034
+ Modeler$1.prototype._modules = [].concat(
68035
+ Modeler.prototype._modules,
68036
+ Modeler$1.prototype._extensionModules
68034
68037
  );
68035
68038
 
68036
68039
  return Modeler$1;