camunda-bpmn-js 1.5.0 → 2.0.1

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.
@@ -19,11 +19,10 @@ import {
19
19
  import replaceModule from './features/replace';
20
20
  import sharedReplaceModule from '../shared/features/replace';
21
21
  import colorPickerModule from 'bpmn-js-color-picker';
22
- import createAppendAnythingModule from 'bpmn-js/lib/features/create-append-anything';
23
22
  import createAppendElementTemplatesModule from './features/create-append-anything';
23
+ import elementTemplateChooserModule from '@bpmn-io/element-template-chooser';
24
24
 
25
25
  import { commonModdleExtensions, commonModules } from './util/commonModules';
26
- import { without } from 'min-dash';
27
26
 
28
27
 
29
28
  /**
@@ -41,21 +40,21 @@ export default function Modeler(options = {}) {
41
40
  propertiesPanel: {
42
41
  description: ZeebeDescriptionProvider,
43
42
  ...options.propertiesPanel
44
- }
43
+ },
45
44
  };
46
45
 
47
- this._removeCreateAppendAnything(options);
46
+ this._addElementTemplateChooserModule(options);
48
47
 
49
48
  BaseModeler.call(this, options);
50
49
  }
51
50
 
52
51
  inherits(Modeler, BaseModeler);
53
52
 
54
- Modeler.prototype._removeCreateAppendAnything = function(options) {
55
- const { connectorsExtension } = options;
53
+ Modeler.prototype._addElementTemplateChooserModule = function(options) {
54
+ const { elementTemplateChooser } = options;
56
55
 
57
- if (connectorsExtension && connectorsExtension.appendAnything === false) {
58
- this._modules = without(this._modules, createAppendAnythingModule);
56
+ if (elementTemplateChooser !== false) {
57
+ this._modules = [ ...this._modules, elementTemplateChooserModule ];
59
58
  }
60
59
  };
61
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camunda-bpmn-js",
3
- "version": "1.5.0",
3
+ "version": "2.0.1",
4
4
  "description": "Embeddable Camunda modeling distributions based on bpmn-js",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -20,7 +20,6 @@
20
20
  "start:cloud-viewer": "cross-env SINGLE_START=camunda-cloud-viewer npm run dev",
21
21
  "start:platform-navigated-viewer": "cross-env SINGLE_START=camunda-platform-navigated-viewer npm run dev",
22
22
  "start:cloud-navigated-viewer": "cross-env SINGLE_START=camunda-cloud-navigated-viewer npm run dev",
23
- "start:cloud-connectors-extension": "cross-env SINGLE_START=camunda-cloud-connectors-extension npm run dev",
24
23
  "prepublishOnly": "run-s test:distro",
25
24
  "prepare": "run-s clean distro"
26
25
  },
@@ -50,6 +49,7 @@
50
49
  "dependencies": {
51
50
  "@bpmn-io/align-to-origin": "^0.7.0",
52
51
  "@bpmn-io/element-templates-icons-renderer": "^0.3.0",
52
+ "@bpmn-io/element-template-chooser": "^1.0.0",
53
53
  "@bpmn-io/variable-resolver": "^0.1.0",
54
54
  "@camunda/linting": "^0.16.0",
55
55
  "bpmn-js": "^11.5.0",
@@ -66,7 +66,6 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@babel/core": "^7.18.13",
69
- "@bpmn-io/element-template-chooser": "^1.0.0",
70
69
  "@bpmn-io/properties-panel": "^1.4.0",
71
70
  "@rollup/plugin-commonjs": "^23.0.0",
72
71
  "@rollup/plugin-json": "^4.1.0",