bpmn-js 17.8.1 → 17.8.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.
@@ -45,7 +45,7 @@ BpmnSearchProvider.$inject = [
45
45
  * @return {SearchResult[]}
46
46
  */
47
47
  BpmnSearchProvider.prototype.find = function(pattern) {
48
- var rootElement = this._canvas.getRootElement();
48
+ var rootElements = this._canvas.getRootElements();
49
49
 
50
50
  var elements = this._elementRegistry.filter(function(element) {
51
51
  if (element.labelTarget) {
@@ -56,7 +56,7 @@ BpmnSearchProvider.prototype.find = function(pattern) {
56
56
 
57
57
  // do not include root element
58
58
  elements = filter(elements, function(element) {
59
- return element !== rootElement;
59
+ return !rootElements.includes(element);
60
60
  });
61
61
 
62
62
  elements = map(elements, function(element) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpmn-js",
3
- "version": "17.8.1",
3
+ "version": "17.8.2",
4
4
  "description": "A bpmn 2.0 toolkit and web modeler",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -64,11 +64,11 @@
64
64
  ],
65
65
  "devDependencies": {
66
66
  "@babel/core": "^7.20.2",
67
- "@rollup/plugin-commonjs": "^25.0.0",
68
- "@rollup/plugin-json": "^6.0.0",
69
- "@rollup/plugin-node-resolve": "^15.0.1",
70
- "@rollup/plugin-replace": "^5.0.2",
71
- "@rollup/plugin-terser": "^0.4.0",
67
+ "@rollup/plugin-commonjs": "^26.0.0",
68
+ "@rollup/plugin-json": "^6.1.0",
69
+ "@rollup/plugin-node-resolve": "^15.2.3",
70
+ "@rollup/plugin-replace": "^5.0.7",
71
+ "@rollup/plugin-terser": "^0.4.4",
72
72
  "axe-core": "^4.9.0",
73
73
  "babel-loader": "^9.1.0",
74
74
  "babel-plugin-istanbul": "^6.1.1",
@@ -102,8 +102,8 @@
102
102
  "puppeteer": "^22.0.0",
103
103
  "remark-cli": "^12.0.0",
104
104
  "remark-preset-bpmn-io": "^0.2.1",
105
- "rollup": "^3.19.1",
106
- "rollup-plugin-license": "^3.0.0",
105
+ "rollup": "^4.0.0",
106
+ "rollup-plugin-license": "^3.4.0",
107
107
  "sinon": "^17.0.0",
108
108
  "sinon-chai": "^3.7.0",
109
109
  "ts-expect": "^1.3.0",