diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0d18cf0..8edca2c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -10,7 +10,6 @@ jobs: integration-deps: - dmn-js@12 - dmn-js@13 - - "@bpmn-io/properties-panel@2" - "" # as defined in package.json runs-on: ${{ matrix.os }} diff --git a/package-lock.json b/package-lock.json index 740678b..ba1ab89 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,14 +9,14 @@ "version": "3.0.0", "license": "MIT", "dependencies": { - "diagram-js": "^12.2.0", + "diagram-js": "^12.3.0", "min-dash": "^4.1.1", "min-dom": "^4.1.0" }, "devDependencies": { "@babel/core": "^7.22.6", "@babel/plugin-transform-react-jsx": "^7.22.5", - "@bpmn-io/properties-panel": "^3.0.0", + "@bpmn-io/properties-panel": "^3.7.0", "@rollup/plugin-alias": "^5.0.0", "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-commonjs": "^25.0.2", @@ -29,9 +29,9 @@ "chai": "^4.3.4", "copy-webpack-plugin": "^11.0.0", "cross-env": "^7.0.3", - "dmn-js": "^14.1.5", - "dmn-js-drd": "^14.1.5", - "dmn-js-shared": "^14.1.5", + "dmn-js": "^14.2.0", + "dmn-js-drd": "^14.2.0", + "dmn-js-shared": "^14.2.0", "eslint": "^8.44.0", "eslint-plugin-bpmn-io": "^1.0.0", "eslint-plugin-import": "^2.26.0", @@ -543,13 +543,12 @@ } }, "node_modules/@bpmn-io/feel-editor": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@bpmn-io/feel-editor/-/feel-editor-0.8.0.tgz", - "integrity": "sha512-4hPHngWKWjEzCvqCdWUX+epO6qWpev30zh3hZo/G/zQnPx45EJTeMUQLXy+eJERApxxNV4/3u1Vvyat5v/SLag==", + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/@bpmn-io/feel-editor/-/feel-editor-0.9.1.tgz", + "integrity": "sha512-6nJJy7kckIzidX9cHGtvTr9180XgFBS5uCYfspaxEeYPjIj08eim2zXdLNPkedLO1obPL2jcMziZJyBFknI9Dw==", "dev": true, "dependencies": { - "@babel/core": "^7.20.2", - "@bpmn-io/feel-lint": "^0.2.0", + "@bpmn-io/feel-lint": "^1.0.0", "@codemirror/autocomplete": "^6.3.2", "@codemirror/commands": "^6.2.4", "@codemirror/language": "^6.3.1", @@ -557,16 +556,17 @@ "@codemirror/state": "^6.1.4", "@codemirror/view": "^6.5.1", "@lezer/highlight": "^1.1.6", - "babel-loader": "^9.1.0", - "babel-plugin-istanbul": "^6.1.1", "lang-feel": "^1.0.0", "min-dom": "^4.1.0" + }, + "engines": { + "node": ">= 16" } }, "node_modules/@bpmn-io/feel-editor/node_modules/@bpmn-io/feel-lint": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@bpmn-io/feel-lint/-/feel-lint-0.2.0.tgz", - "integrity": "sha512-Y1uMTEP87mAPijeBAyVae9oMMP/rymkqNJWZceC49uvVEmH+nCVz/qJarJDdfmqySThiYV6n+Yx/gzXs7FDrGw==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@bpmn-io/feel-lint/-/feel-lint-1.0.0.tgz", + "integrity": "sha512-wCA5tsxOWejOJRi6if66mayyI2pWgohCp9NctOH+3fBnsCv/I4dlqnwGw4f8S8EnrFFyRJY5IrRBmQeUQ8WBmw==", "dev": true, "dependencies": { "@codemirror/language": "^6.8.0", @@ -574,9 +574,9 @@ } }, "node_modules/@bpmn-io/feel-editor/node_modules/lezer-feel": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lezer-feel/-/lezer-feel-1.0.1.tgz", - "integrity": "sha512-kS1ox004gosQmJJKsNU+fRvGRdrq/9A+e7tGYcFWn0bAmnkzxP+YALOE7t/UN9U1aXSvVGmdyUFAhte/p8o60A==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/lezer-feel/-/lezer-feel-1.0.2.tgz", + "integrity": "sha512-WEqRVhYZNOr6+aTWfS2CLVX1ebS1KeQjTeVQVgzXkGNC0AqmFWcRwEgAGm3FHKE66cxj3RPKx7T+ofr6FzmJjQ==", "dev": true, "dependencies": { "@lezer/highlight": "^1.1.6", @@ -594,16 +594,21 @@ } }, "node_modules/@bpmn-io/properties-panel": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@bpmn-io/properties-panel/-/properties-panel-3.0.0.tgz", - "integrity": "sha512-Y9Psu0KTWBCQBWxAgHs1BUJUR0x1BbeRyoaUCDxo9q/S21KkeHu0CsdRLxjN13cACJR/0JA+Gs8ZbmXTFnQdrg==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@bpmn-io/properties-panel/-/properties-panel-3.7.0.tgz", + "integrity": "sha512-379nFK4iWxwsjJOc6ShhNWo8heK76PlZAHutmWpy48mba7SiDb8PLSbPkTa+KFcWb9AiRlvpDcLFIiIJzopkDA==", "dev": true, "dependencies": { - "@bpmn-io/feel-editor": "^0.8.0", + "@bpmn-io/feel-editor": "^0.9.0", + "@codemirror/view": "^6.14.0", "classnames": "^2.3.1", - "feelers": "^0.1.0-alpha.8", + "feelers": "^0.1.0", + "focus-trap": "^7.5.2", "min-dash": "^4.1.1", "min-dom": "^4.0.3" + }, + "engines": { + "node": "*" } }, "node_modules/@codemirror/autocomplete": { @@ -930,9 +935,9 @@ } }, "node_modules/@lezer/markdown": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@lezer/markdown/-/markdown-1.0.2.tgz", - "integrity": "sha512-8CY0OoZ6V5EzPjSPeJ4KLVbtXdLBd8V6sRCooN5kHnO28ytreEGTyrtU/zUwo/XLRzGr/e1g44KlzKi3yWGB5A==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@lezer/markdown/-/markdown-1.1.0.tgz", + "integrity": "sha512-JYOI6Lkqbl83semCANkO3CKbKc0pONwinyagBufWBm+k4yhIcqfCF8B8fpEpvJLmIy7CAfwiq7dQ/PzUZA340g==", "dev": true, "dependencies": { "@lezer/common": "^1.0.0", @@ -2461,9 +2466,9 @@ } }, "node_modules/clsx": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", - "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.0.0.tgz", + "integrity": "sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==", "engines": { "node": ">=6" } @@ -2979,12 +2984,12 @@ "dev": true }, "node_modules/diagram-js": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/diagram-js/-/diagram-js-12.2.0.tgz", - "integrity": "sha512-CXo/qc2KJz663t2b7AlrkeMCo4SdVZMNxq4oNwUN6QzbWesnbjNCwS9aptIDFkpBjXRGtgOzf/T6D6QaVJfTqw==", + "version": "12.3.0", + "resolved": "https://registry.npmjs.org/diagram-js/-/diagram-js-12.3.0.tgz", + "integrity": "sha512-sE9MieoQiifVGPPztVjdDYdU1oJEztN1gG0RksCBNYH0rOTpEnAw4hmRdBqrDsdJen08EmFGfcoTbeZ9W2NCqA==", "dependencies": { "@bpmn-io/diagram-js-ui": "^0.2.2", - "clsx": "^1.2.1", + "clsx": "^2.0.0", "didi": "^9.0.2", "hammerjs": "^2.0.1", "inherits-browser": "^0.1.0", @@ -3035,26 +3040,26 @@ } }, "node_modules/dmn-js": { - "version": "14.1.5", - "resolved": "https://registry.npmjs.org/dmn-js/-/dmn-js-14.1.5.tgz", - "integrity": "sha512-H7sj0fXg1ErC0E+WsxOAnSD+jKeKRm06ClgXfPf61YCncDY5lm5P1jCmwYQ2E3lYNLYFw90ZMLTW/y9sZHqK5A==", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/dmn-js/-/dmn-js-14.2.0.tgz", + "integrity": "sha512-QE/lxplaaxgI5yfk5zB2U4YRL9YyaAgXesChtLjcupvtH8u5esCNgtHWdjtDdat/+Nb0nvS/8QYQW+P1jgOrlw==", "dev": true, "dependencies": { - "dmn-js-decision-table": "^14.1.5", - "dmn-js-drd": "^14.1.5", - "dmn-js-literal-expression": "^14.1.5", - "dmn-js-shared": "^14.1.5" + "dmn-js-decision-table": "^14.2.0", + "dmn-js-drd": "^14.2.0", + "dmn-js-literal-expression": "^14.2.0", + "dmn-js-shared": "^14.2.0" } }, "node_modules/dmn-js-decision-table": { - "version": "14.1.5", - "resolved": "https://registry.npmjs.org/dmn-js-decision-table/-/dmn-js-decision-table-14.1.5.tgz", - "integrity": "sha512-L7KuYTXcW+xCqQzlfCe3U/sE1dRC8HXtHnEoX4Jsvkfjg808k2zG+VlQjO8O1gi63g35oHttDAO3tjvU9biNRQ==", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/dmn-js-decision-table/-/dmn-js-decision-table-14.2.0.tgz", + "integrity": "sha512-vUkWyZig4cGBAISFvpEOdY8COO17EBrWPxhQ08/LUgNzi3hQZqNDsCe+DQfYlDkLFVS5fqDkXGzdcYcTqI0oHg==", "dev": true, "dependencies": { "css.escape": "^1.5.1", "diagram-js": "^12.0.0", - "dmn-js-shared": "^14.1.5", + "dmn-js-shared": "^14.2.0", "escape-html": "^1.0.3", "inferno": "~5.6.2", "min-dash": "^4.0.0", @@ -3064,14 +3069,14 @@ } }, "node_modules/dmn-js-drd": { - "version": "14.1.5", - "resolved": "https://registry.npmjs.org/dmn-js-drd/-/dmn-js-drd-14.1.5.tgz", - "integrity": "sha512-u4wNXab/db2gQRPShAyLaGTxh8cHmcR4H5NTdGpw5DCZHl0p7fUS4Ysj6ZTQwqAF2BVT14jBu5rVTcQmIFtp9g==", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/dmn-js-drd/-/dmn-js-drd-14.2.0.tgz", + "integrity": "sha512-Kqkn6SX9TFjzKUySND8O0b4StJ/itgoI1SDheyH/jCi79BCuhMHS1gukGEJgcJ41ZZUuBPMR/f77JW/KqY6vEA==", "dev": true, "dependencies": { "diagram-js": "^12.0.0", "diagram-js-direct-editing": "^2.0.0", - "dmn-js-shared": "^14.1.5", + "dmn-js-shared": "^14.2.0", "inherits-browser": "^0.1.0", "min-dash": "^4.0.0", "min-dom": "^4.0.3", @@ -3080,13 +3085,13 @@ } }, "node_modules/dmn-js-literal-expression": { - "version": "14.1.5", - "resolved": "https://registry.npmjs.org/dmn-js-literal-expression/-/dmn-js-literal-expression-14.1.5.tgz", - "integrity": "sha512-EHUxvV+2DceOtJNT/jyXcJqXs4AilVcG7TkGz5GuOi06PBNqP/VJtqafnbBXXedszMEZO0FiD8n1o0F3lCM0ww==", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/dmn-js-literal-expression/-/dmn-js-literal-expression-14.2.0.tgz", + "integrity": "sha512-OyigIQ+CNr/Jc7GKk18Y1YDKuk3/iyBEYesSfHQRgjtcO2YENa0J6T0SqZ4zOfUFjvjhlsX8gJKAEhGmq9XYBw==", "dev": true, "dependencies": { "diagram-js": "^12.0.0", - "dmn-js-shared": "^14.1.5", + "dmn-js-shared": "^14.2.0", "escape-html": "^1.0.3", "inferno": "~5.6.2", "min-dash": "^4.0.0", @@ -3095,11 +3100,12 @@ } }, "node_modules/dmn-js-shared": { - "version": "14.1.5", - "resolved": "https://registry.npmjs.org/dmn-js-shared/-/dmn-js-shared-14.1.5.tgz", - "integrity": "sha512-W3nBVga9dS0DMmfqKHLLPKIquOMfQ1UcslcLqJSWePdDpxONuBlL8PgGQl2n2mk26dYadhh99AL13pjcDvhvmA==", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/dmn-js-shared/-/dmn-js-shared-14.2.0.tgz", + "integrity": "sha512-TU7l2ASH542YHObTrHNbiTCFnzJjDeR2CILN20RyqeHscow5Ck/cwpfl2NlzeekmZuNvvk3eQ9vyKCSbwgclxg==", "dev": true, "dependencies": { + "@bpmn-io/feel-editor": "^0.7.1", "diagram-js": "^12.0.0", "didi": "^9.0.0", "dmn-moddle": "^10.0.0", @@ -3112,6 +3118,41 @@ "table-js": "^8.0.2" } }, + "node_modules/dmn-js-shared/node_modules/@bpmn-io/feel-editor": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@bpmn-io/feel-editor/-/feel-editor-0.7.1.tgz", + "integrity": "sha512-qV8o6FiIhsr6sGABeaP0+TLVNvcJTeKapMC5KnChB2AmqmStC44FJe7vxkJ9frwrPoiOH8fzTmlDdhRpPNnTvQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.20.2", + "@bpmn-io/feel-lint": "^0.1.1", + "@codemirror/autocomplete": "^6.3.2", + "@codemirror/commands": "^6.1.2", + "@codemirror/language": "^6.3.1", + "@codemirror/lint": "^6.1.0", + "@codemirror/state": "^6.1.4", + "@codemirror/view": "^6.5.1", + "@lezer/highlight": "^1.1.2", + "babel-loader": "^9.1.0", + "babel-plugin-istanbul": "^6.1.1", + "lang-feel": "^0.1.0", + "min-dom": "^4.0.1" + } + }, + "node_modules/dmn-js-shared/node_modules/lang-feel": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/lang-feel/-/lang-feel-0.1.0.tgz", + "integrity": "sha512-09oq5ey6+7HeZlE4Z1+N/z4VrlO96ypyUfIgKn8tHf5bbLirP3wu6e88uvTv81oEPVGjTNW0ZjU6MRG5xa8b2A==", + "dev": true, + "dependencies": { + "@codemirror/autocomplete": "^6.0.0", + "@codemirror/language": "^6.0.0", + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.0.0", + "@lezer/common": "^1.0.0", + "lezer-feel": "^0.15.0" + } + }, "node_modules/dmn-moddle": { "version": "10.0.0", "resolved": "https://registry.npmjs.org/dmn-moddle/-/dmn-moddle-10.0.0.tgz", @@ -4249,9 +4290,9 @@ } }, "node_modules/feelers": { - "version": "0.1.0-alpha.8", - "resolved": "https://registry.npmjs.org/feelers/-/feelers-0.1.0-alpha.8.tgz", - "integrity": "sha512-fn/y/VvyFbVPi1PhrViVxgH3mbv9Lh4ycYKppfDb0wUY3PcICohr9IqMMtfIQby4GlAFbl4ENmUN8uY5XxeyGQ==", + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/feelers/-/feelers-0.1.0.tgz", + "integrity": "sha512-gvF3VkrCIQIiYehB51JYjvADkT36eMQKfVPWyDYrbG1bfc9+Y7bvjdzhLgxEuk2BvFaYj1amRyqgOTXkP+gYUw==", "dev": true, "dependencies": { "@bpmn-io/cm-theme": "^0.1.0-alpha.2", @@ -4263,7 +4304,7 @@ "@codemirror/state": "^6.1.4", "@codemirror/view": "^6.5.1", "@lezer/markdown": "^1.0.2", - "feelin": "^0.43.0", + "feelin": "^1.0.0", "lezer-feel": "^0.16.2", "min-dom": "^4.1.0" } @@ -4279,24 +4320,24 @@ } }, "node_modules/feelin": { - "version": "0.43.1", - "resolved": "https://registry.npmjs.org/feelin/-/feelin-0.43.1.tgz", - "integrity": "sha512-prTg4CAOWUo7O+4scL5fj5pjDc2yFDU9LPVqjSO9lxqZyD5ix+IH+zLQfR2RjaExzkcKGBxAfZWN1GALLKLCUg==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/feelin/-/feelin-1.0.0.tgz", + "integrity": "sha512-ED1pbRGivpxPHjMBssCivkuAWGm3ma0yK46DqcUlA8KP1Rz5Limjg8YENBRsyc1ZSoSkpboVuscqWmXw2Cl03A==", "dev": true, "dependencies": { - "@lezer/lr": "^1.2.0", - "lezer-feel": "^0.16.1", + "@lezer/lr": "^1.3.9", + "lezer-feel": "^1.0.0", "luxon": "^3.1.0" } }, "node_modules/feelin/node_modules/lezer-feel": { - "version": "0.16.2", - "resolved": "https://registry.npmjs.org/lezer-feel/-/lezer-feel-0.16.2.tgz", - "integrity": "sha512-G9heYUw4ibeNWFmlhs8yR/QEDd6OAFvv2e7F2x1zOhxqYKKEBXhXQEIvQh1psgQMJjQSuUvVZRxPbnjfvGq/Bw==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/lezer-feel/-/lezer-feel-1.0.2.tgz", + "integrity": "sha512-WEqRVhYZNOr6+aTWfS2CLVX1ebS1KeQjTeVQVgzXkGNC0AqmFWcRwEgAGm3FHKE66cxj3RPKx7T+ofr6FzmJjQ==", "dev": true, "dependencies": { - "@lezer/highlight": "^1.1.2", - "@lezer/lr": "^1.2.5" + "@lezer/highlight": "^1.1.6", + "@lezer/lr": "^1.3.9" } }, "node_modules/file-entry-cache": { @@ -4426,6 +4467,15 @@ "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", "dev": true }, + "node_modules/focus-trap": { + "version": "7.5.2", + "resolved": "https://registry.npmjs.org/focus-trap/-/focus-trap-7.5.2.tgz", + "integrity": "sha512-p6vGNNWLDGwJCiEjkSK6oERj/hEyI9ITsSwIUICBoKLlWiTWXJRfQibCwcoi50rTZdbi87qDtUlMCmQwsGSgPw==", + "dev": true, + "dependencies": { + "tabbable": "^6.2.0" + } + }, "node_modules/follow-redirects": { "version": "1.15.2", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", @@ -4928,9 +4978,9 @@ } }, "node_modules/ids": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ids/-/ids-1.0.0.tgz", - "integrity": "sha512-Zvtq1xUto4LttpstyOlFum8lKx+i1OmRfg+6A9drFS9iSZsDPMHG4Sof/qwNR4kCU7jBeWFPrY2ocHxiz7cCRw==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/ids/-/ids-1.0.5.tgz", + "integrity": "sha512-XQ0yom/4KWTL29sLG+tyuycy7UmeaM/79GRtSJq6IG9cJGIPeBz5kwDCguie3TwxaMNIc3WtPi0cTa1XYHicpw==", "dev": true }, "node_modules/ieee754": { @@ -5857,9 +5907,9 @@ } }, "node_modules/lang-feel/node_modules/lezer-feel": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lezer-feel/-/lezer-feel-1.0.1.tgz", - "integrity": "sha512-kS1ox004gosQmJJKsNU+fRvGRdrq/9A+e7tGYcFWn0bAmnkzxP+YALOE7t/UN9U1aXSvVGmdyUFAhte/p8o60A==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/lezer-feel/-/lezer-feel-1.0.2.tgz", + "integrity": "sha512-WEqRVhYZNOr6+aTWfS2CLVX1ebS1KeQjTeVQVgzXkGNC0AqmFWcRwEgAGm3FHKE66cxj3RPKx7T+ofr6FzmJjQ==", "dev": true, "dependencies": { "@lezer/highlight": "^1.1.6", @@ -6121,9 +6171,9 @@ } }, "node_modules/luxon": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.3.0.tgz", - "integrity": "sha512-An0UCfG/rSiqtAIiBPO0Y9/zAnHUZxAMiCpTd5h2smgsj7GGmcenvrvww2cqNA8/4A5ZrD1gJpHN2mIHZQF+Mg==", + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.4.3.tgz", + "integrity": "sha512-tFWBiv3h7z+T/tDaoxA8rqTxy1CHV6gHS//QdaH4pulbq/JuBSGgQspQQqcgnwdAx6pNI7cmvz5Sv/addzHmUg==", "dev": true, "engines": { "node": ">=12" @@ -8509,6 +8559,12 @@ "node": ">=4.0.0" } }, + "node_modules/tabbable": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz", + "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==", + "dev": true + }, "node_modules/table-js": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/table-js/-/table-js-8.0.2.tgz", @@ -9718,13 +9774,12 @@ } }, "@bpmn-io/feel-editor": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@bpmn-io/feel-editor/-/feel-editor-0.8.0.tgz", - "integrity": "sha512-4hPHngWKWjEzCvqCdWUX+epO6qWpev30zh3hZo/G/zQnPx45EJTeMUQLXy+eJERApxxNV4/3u1Vvyat5v/SLag==", + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/@bpmn-io/feel-editor/-/feel-editor-0.9.1.tgz", + "integrity": "sha512-6nJJy7kckIzidX9cHGtvTr9180XgFBS5uCYfspaxEeYPjIj08eim2zXdLNPkedLO1obPL2jcMziZJyBFknI9Dw==", "dev": true, "requires": { - "@babel/core": "^7.20.2", - "@bpmn-io/feel-lint": "^0.2.0", + "@bpmn-io/feel-lint": "^1.0.0", "@codemirror/autocomplete": "^6.3.2", "@codemirror/commands": "^6.2.4", "@codemirror/language": "^6.3.1", @@ -9732,16 +9787,14 @@ "@codemirror/state": "^6.1.4", "@codemirror/view": "^6.5.1", "@lezer/highlight": "^1.1.6", - "babel-loader": "^9.1.0", - "babel-plugin-istanbul": "^6.1.1", "lang-feel": "^1.0.0", "min-dom": "^4.1.0" }, "dependencies": { "@bpmn-io/feel-lint": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@bpmn-io/feel-lint/-/feel-lint-0.2.0.tgz", - "integrity": "sha512-Y1uMTEP87mAPijeBAyVae9oMMP/rymkqNJWZceC49uvVEmH+nCVz/qJarJDdfmqySThiYV6n+Yx/gzXs7FDrGw==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@bpmn-io/feel-lint/-/feel-lint-1.0.0.tgz", + "integrity": "sha512-wCA5tsxOWejOJRi6if66mayyI2pWgohCp9NctOH+3fBnsCv/I4dlqnwGw4f8S8EnrFFyRJY5IrRBmQeUQ8WBmw==", "dev": true, "requires": { "@codemirror/language": "^6.8.0", @@ -9749,9 +9802,9 @@ } }, "lezer-feel": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lezer-feel/-/lezer-feel-1.0.1.tgz", - "integrity": "sha512-kS1ox004gosQmJJKsNU+fRvGRdrq/9A+e7tGYcFWn0bAmnkzxP+YALOE7t/UN9U1aXSvVGmdyUFAhte/p8o60A==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/lezer-feel/-/lezer-feel-1.0.2.tgz", + "integrity": "sha512-WEqRVhYZNOr6+aTWfS2CLVX1ebS1KeQjTeVQVgzXkGNC0AqmFWcRwEgAGm3FHKE66cxj3RPKx7T+ofr6FzmJjQ==", "dev": true, "requires": { "@lezer/highlight": "^1.1.6", @@ -9771,14 +9824,16 @@ } }, "@bpmn-io/properties-panel": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@bpmn-io/properties-panel/-/properties-panel-3.0.0.tgz", - "integrity": "sha512-Y9Psu0KTWBCQBWxAgHs1BUJUR0x1BbeRyoaUCDxo9q/S21KkeHu0CsdRLxjN13cACJR/0JA+Gs8ZbmXTFnQdrg==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@bpmn-io/properties-panel/-/properties-panel-3.7.0.tgz", + "integrity": "sha512-379nFK4iWxwsjJOc6ShhNWo8heK76PlZAHutmWpy48mba7SiDb8PLSbPkTa+KFcWb9AiRlvpDcLFIiIJzopkDA==", "dev": true, "requires": { - "@bpmn-io/feel-editor": "^0.8.0", + "@bpmn-io/feel-editor": "^0.9.0", + "@codemirror/view": "^6.14.0", "classnames": "^2.3.1", - "feelers": "^0.1.0-alpha.8", + "feelers": "^0.1.0", + "focus-trap": "^7.5.2", "min-dash": "^4.1.1", "min-dom": "^4.0.3" } @@ -10047,9 +10102,9 @@ } }, "@lezer/markdown": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@lezer/markdown/-/markdown-1.0.2.tgz", - "integrity": "sha512-8CY0OoZ6V5EzPjSPeJ4KLVbtXdLBd8V6sRCooN5kHnO28ytreEGTyrtU/zUwo/XLRzGr/e1g44KlzKi3yWGB5A==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@lezer/markdown/-/markdown-1.1.0.tgz", + "integrity": "sha512-JYOI6Lkqbl83semCANkO3CKbKc0pONwinyagBufWBm+k4yhIcqfCF8B8fpEpvJLmIy7CAfwiq7dQ/PzUZA340g==", "dev": true, "requires": { "@lezer/common": "^1.0.0", @@ -11208,9 +11263,9 @@ } }, "clsx": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", - "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.0.0.tgz", + "integrity": "sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==" }, "coa": { "version": "2.0.2", @@ -11622,12 +11677,12 @@ "dev": true }, "diagram-js": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/diagram-js/-/diagram-js-12.2.0.tgz", - "integrity": "sha512-CXo/qc2KJz663t2b7AlrkeMCo4SdVZMNxq4oNwUN6QzbWesnbjNCwS9aptIDFkpBjXRGtgOzf/T6D6QaVJfTqw==", + "version": "12.3.0", + "resolved": "https://registry.npmjs.org/diagram-js/-/diagram-js-12.3.0.tgz", + "integrity": "sha512-sE9MieoQiifVGPPztVjdDYdU1oJEztN1gG0RksCBNYH0rOTpEnAw4hmRdBqrDsdJen08EmFGfcoTbeZ9W2NCqA==", "requires": { "@bpmn-io/diagram-js-ui": "^0.2.2", - "clsx": "^1.2.1", + "clsx": "^2.0.0", "didi": "^9.0.2", "hammerjs": "^2.0.1", "inherits-browser": "^0.1.0", @@ -11669,26 +11724,26 @@ } }, "dmn-js": { - "version": "14.1.5", - "resolved": "https://registry.npmjs.org/dmn-js/-/dmn-js-14.1.5.tgz", - "integrity": "sha512-H7sj0fXg1ErC0E+WsxOAnSD+jKeKRm06ClgXfPf61YCncDY5lm5P1jCmwYQ2E3lYNLYFw90ZMLTW/y9sZHqK5A==", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/dmn-js/-/dmn-js-14.2.0.tgz", + "integrity": "sha512-QE/lxplaaxgI5yfk5zB2U4YRL9YyaAgXesChtLjcupvtH8u5esCNgtHWdjtDdat/+Nb0nvS/8QYQW+P1jgOrlw==", "dev": true, "requires": { - "dmn-js-decision-table": "^14.1.5", - "dmn-js-drd": "^14.1.5", - "dmn-js-literal-expression": "^14.1.5", - "dmn-js-shared": "^14.1.5" + "dmn-js-decision-table": "^14.2.0", + "dmn-js-drd": "^14.2.0", + "dmn-js-literal-expression": "^14.2.0", + "dmn-js-shared": "^14.2.0" } }, "dmn-js-decision-table": { - "version": "14.1.5", - "resolved": "https://registry.npmjs.org/dmn-js-decision-table/-/dmn-js-decision-table-14.1.5.tgz", - "integrity": "sha512-L7KuYTXcW+xCqQzlfCe3U/sE1dRC8HXtHnEoX4Jsvkfjg808k2zG+VlQjO8O1gi63g35oHttDAO3tjvU9biNRQ==", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/dmn-js-decision-table/-/dmn-js-decision-table-14.2.0.tgz", + "integrity": "sha512-vUkWyZig4cGBAISFvpEOdY8COO17EBrWPxhQ08/LUgNzi3hQZqNDsCe+DQfYlDkLFVS5fqDkXGzdcYcTqI0oHg==", "dev": true, "requires": { "css.escape": "^1.5.1", "diagram-js": "^12.0.0", - "dmn-js-shared": "^14.1.5", + "dmn-js-shared": "^14.2.0", "escape-html": "^1.0.3", "inferno": "~5.6.2", "min-dash": "^4.0.0", @@ -11698,14 +11753,14 @@ } }, "dmn-js-drd": { - "version": "14.1.5", - "resolved": "https://registry.npmjs.org/dmn-js-drd/-/dmn-js-drd-14.1.5.tgz", - "integrity": "sha512-u4wNXab/db2gQRPShAyLaGTxh8cHmcR4H5NTdGpw5DCZHl0p7fUS4Ysj6ZTQwqAF2BVT14jBu5rVTcQmIFtp9g==", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/dmn-js-drd/-/dmn-js-drd-14.2.0.tgz", + "integrity": "sha512-Kqkn6SX9TFjzKUySND8O0b4StJ/itgoI1SDheyH/jCi79BCuhMHS1gukGEJgcJ41ZZUuBPMR/f77JW/KqY6vEA==", "dev": true, "requires": { "diagram-js": "^12.0.0", "diagram-js-direct-editing": "^2.0.0", - "dmn-js-shared": "^14.1.5", + "dmn-js-shared": "^14.2.0", "inherits-browser": "^0.1.0", "min-dash": "^4.0.0", "min-dom": "^4.0.3", @@ -11714,13 +11769,13 @@ } }, "dmn-js-literal-expression": { - "version": "14.1.5", - "resolved": "https://registry.npmjs.org/dmn-js-literal-expression/-/dmn-js-literal-expression-14.1.5.tgz", - "integrity": "sha512-EHUxvV+2DceOtJNT/jyXcJqXs4AilVcG7TkGz5GuOi06PBNqP/VJtqafnbBXXedszMEZO0FiD8n1o0F3lCM0ww==", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/dmn-js-literal-expression/-/dmn-js-literal-expression-14.2.0.tgz", + "integrity": "sha512-OyigIQ+CNr/Jc7GKk18Y1YDKuk3/iyBEYesSfHQRgjtcO2YENa0J6T0SqZ4zOfUFjvjhlsX8gJKAEhGmq9XYBw==", "dev": true, "requires": { "diagram-js": "^12.0.0", - "dmn-js-shared": "^14.1.5", + "dmn-js-shared": "^14.2.0", "escape-html": "^1.0.3", "inferno": "~5.6.2", "min-dash": "^4.0.0", @@ -11729,11 +11784,12 @@ } }, "dmn-js-shared": { - "version": "14.1.5", - "resolved": "https://registry.npmjs.org/dmn-js-shared/-/dmn-js-shared-14.1.5.tgz", - "integrity": "sha512-W3nBVga9dS0DMmfqKHLLPKIquOMfQ1UcslcLqJSWePdDpxONuBlL8PgGQl2n2mk26dYadhh99AL13pjcDvhvmA==", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/dmn-js-shared/-/dmn-js-shared-14.2.0.tgz", + "integrity": "sha512-TU7l2ASH542YHObTrHNbiTCFnzJjDeR2CILN20RyqeHscow5Ck/cwpfl2NlzeekmZuNvvk3eQ9vyKCSbwgclxg==", "dev": true, "requires": { + "@bpmn-io/feel-editor": "^0.7.1", "diagram-js": "^12.0.0", "didi": "^9.0.0", "dmn-moddle": "^10.0.0", @@ -11744,6 +11800,43 @@ "selection-ranges": "^3.0.2", "selection-update": "^0.1.2", "table-js": "^8.0.2" + }, + "dependencies": { + "@bpmn-io/feel-editor": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@bpmn-io/feel-editor/-/feel-editor-0.7.1.tgz", + "integrity": "sha512-qV8o6FiIhsr6sGABeaP0+TLVNvcJTeKapMC5KnChB2AmqmStC44FJe7vxkJ9frwrPoiOH8fzTmlDdhRpPNnTvQ==", + "dev": true, + "requires": { + "@babel/core": "^7.20.2", + "@bpmn-io/feel-lint": "^0.1.1", + "@codemirror/autocomplete": "^6.3.2", + "@codemirror/commands": "^6.1.2", + "@codemirror/language": "^6.3.1", + "@codemirror/lint": "^6.1.0", + "@codemirror/state": "^6.1.4", + "@codemirror/view": "^6.5.1", + "@lezer/highlight": "^1.1.2", + "babel-loader": "^9.1.0", + "babel-plugin-istanbul": "^6.1.1", + "lang-feel": "^0.1.0", + "min-dom": "^4.0.1" + } + }, + "lang-feel": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/lang-feel/-/lang-feel-0.1.0.tgz", + "integrity": "sha512-09oq5ey6+7HeZlE4Z1+N/z4VrlO96ypyUfIgKn8tHf5bbLirP3wu6e88uvTv81oEPVGjTNW0ZjU6MRG5xa8b2A==", + "dev": true, + "requires": { + "@codemirror/autocomplete": "^6.0.0", + "@codemirror/language": "^6.0.0", + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.0.0", + "@lezer/common": "^1.0.0", + "lezer-feel": "^0.15.0" + } + } } }, "dmn-moddle": { @@ -12637,9 +12730,9 @@ } }, "feelers": { - "version": "0.1.0-alpha.8", - "resolved": "https://registry.npmjs.org/feelers/-/feelers-0.1.0-alpha.8.tgz", - "integrity": "sha512-fn/y/VvyFbVPi1PhrViVxgH3mbv9Lh4ycYKppfDb0wUY3PcICohr9IqMMtfIQby4GlAFbl4ENmUN8uY5XxeyGQ==", + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/feelers/-/feelers-0.1.0.tgz", + "integrity": "sha512-gvF3VkrCIQIiYehB51JYjvADkT36eMQKfVPWyDYrbG1bfc9+Y7bvjdzhLgxEuk2BvFaYj1amRyqgOTXkP+gYUw==", "dev": true, "requires": { "@bpmn-io/cm-theme": "^0.1.0-alpha.2", @@ -12651,7 +12744,7 @@ "@codemirror/state": "^6.1.4", "@codemirror/view": "^6.5.1", "@lezer/markdown": "^1.0.2", - "feelin": "^0.43.0", + "feelin": "^1.0.0", "lezer-feel": "^0.16.2", "min-dom": "^4.1.0" }, @@ -12669,24 +12762,24 @@ } }, "feelin": { - "version": "0.43.1", - "resolved": "https://registry.npmjs.org/feelin/-/feelin-0.43.1.tgz", - "integrity": "sha512-prTg4CAOWUo7O+4scL5fj5pjDc2yFDU9LPVqjSO9lxqZyD5ix+IH+zLQfR2RjaExzkcKGBxAfZWN1GALLKLCUg==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/feelin/-/feelin-1.0.0.tgz", + "integrity": "sha512-ED1pbRGivpxPHjMBssCivkuAWGm3ma0yK46DqcUlA8KP1Rz5Limjg8YENBRsyc1ZSoSkpboVuscqWmXw2Cl03A==", "dev": true, "requires": { - "@lezer/lr": "^1.2.0", - "lezer-feel": "^0.16.1", + "@lezer/lr": "^1.3.9", + "lezer-feel": "^1.0.0", "luxon": "^3.1.0" }, "dependencies": { "lezer-feel": { - "version": "0.16.2", - "resolved": "https://registry.npmjs.org/lezer-feel/-/lezer-feel-0.16.2.tgz", - "integrity": "sha512-G9heYUw4ibeNWFmlhs8yR/QEDd6OAFvv2e7F2x1zOhxqYKKEBXhXQEIvQh1psgQMJjQSuUvVZRxPbnjfvGq/Bw==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/lezer-feel/-/lezer-feel-1.0.2.tgz", + "integrity": "sha512-WEqRVhYZNOr6+aTWfS2CLVX1ebS1KeQjTeVQVgzXkGNC0AqmFWcRwEgAGm3FHKE66cxj3RPKx7T+ofr6FzmJjQ==", "dev": true, "requires": { - "@lezer/highlight": "^1.1.2", - "@lezer/lr": "^1.2.5" + "@lezer/highlight": "^1.1.6", + "@lezer/lr": "^1.3.9" } } } @@ -12793,6 +12886,15 @@ "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", "dev": true }, + "focus-trap": { + "version": "7.5.2", + "resolved": "https://registry.npmjs.org/focus-trap/-/focus-trap-7.5.2.tgz", + "integrity": "sha512-p6vGNNWLDGwJCiEjkSK6oERj/hEyI9ITsSwIUICBoKLlWiTWXJRfQibCwcoi50rTZdbi87qDtUlMCmQwsGSgPw==", + "dev": true, + "requires": { + "tabbable": "^6.2.0" + } + }, "follow-redirects": { "version": "1.15.2", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", @@ -13149,9 +13251,9 @@ } }, "ids": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ids/-/ids-1.0.0.tgz", - "integrity": "sha512-Zvtq1xUto4LttpstyOlFum8lKx+i1OmRfg+6A9drFS9iSZsDPMHG4Sof/qwNR4kCU7jBeWFPrY2ocHxiz7cCRw==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/ids/-/ids-1.0.5.tgz", + "integrity": "sha512-XQ0yom/4KWTL29sLG+tyuycy7UmeaM/79GRtSJq6IG9cJGIPeBz5kwDCguie3TwxaMNIc3WtPi0cTa1XYHicpw==", "dev": true }, "ieee754": { @@ -13836,9 +13938,9 @@ }, "dependencies": { "lezer-feel": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lezer-feel/-/lezer-feel-1.0.1.tgz", - "integrity": "sha512-kS1ox004gosQmJJKsNU+fRvGRdrq/9A+e7tGYcFWn0bAmnkzxP+YALOE7t/UN9U1aXSvVGmdyUFAhte/p8o60A==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/lezer-feel/-/lezer-feel-1.0.2.tgz", + "integrity": "sha512-WEqRVhYZNOr6+aTWfS2CLVX1ebS1KeQjTeVQVgzXkGNC0AqmFWcRwEgAGm3FHKE66cxj3RPKx7T+ofr6FzmJjQ==", "dev": true, "requires": { "@lezer/highlight": "^1.1.6", @@ -14055,9 +14157,9 @@ } }, "luxon": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.3.0.tgz", - "integrity": "sha512-An0UCfG/rSiqtAIiBPO0Y9/zAnHUZxAMiCpTd5h2smgsj7GGmcenvrvww2cqNA8/4A5ZrD1gJpHN2mIHZQF+Mg==", + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.4.3.tgz", + "integrity": "sha512-tFWBiv3h7z+T/tDaoxA8rqTxy1CHV6gHS//QdaH4pulbq/JuBSGgQspQQqcgnwdAx6pNI7cmvz5Sv/addzHmUg==", "dev": true }, "lz-string": { @@ -15856,6 +15958,12 @@ "util.promisify": "~1.0.0" } }, + "tabbable": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz", + "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==", + "dev": true + }, "table-js": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/table-js/-/table-js-8.0.2.tgz", diff --git a/package.json b/package.json index bc51239..8dfcc25 100644 --- a/package.json +++ b/package.json @@ -38,14 +38,14 @@ }, "license": "MIT", "dependencies": { - "diagram-js": "^12.2.0", + "diagram-js": "^12.3.0", "min-dash": "^4.1.1", "min-dom": "^4.1.0" }, "devDependencies": { "@babel/core": "^7.22.6", "@babel/plugin-transform-react-jsx": "^7.22.5", - "@bpmn-io/properties-panel": "^3.0.0", + "@bpmn-io/properties-panel": "^3.7.0", "@rollup/plugin-alias": "^5.0.0", "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-commonjs": "^25.0.2", @@ -58,9 +58,9 @@ "chai": "^4.3.4", "copy-webpack-plugin": "^11.0.0", "cross-env": "^7.0.3", - "dmn-js": "^14.1.5", - "dmn-js-drd": "^14.1.5", - "dmn-js-shared": "^14.1.5", + "dmn-js": "^14.2.0", + "dmn-js-drd": "^14.2.0", + "dmn-js-shared": "^14.2.0", "eslint": "^8.44.0", "eslint-plugin-bpmn-io": "^1.0.0", "eslint-plugin-import": "^2.26.0", @@ -88,7 +88,7 @@ "webpack": "^5.88.1" }, "peerDependencies": { - "@bpmn-io/properties-panel": ">=2.1.0", + "@bpmn-io/properties-panel": ">=3.7", "dmn-js": ">=11" } } diff --git a/src/render/DmnPropertiesPanel.js b/src/render/DmnPropertiesPanel.js index 49b1ab0..493f78a 100644 --- a/src/render/DmnPropertiesPanel.js +++ b/src/render/DmnPropertiesPanel.js @@ -200,7 +200,9 @@ export default function DmnPropertiesPanel(props) { layoutConfig={ layoutConfig } layoutChanged={ onLayoutChanged } descriptionConfig={ descriptionConfig } - descriptionLoaded={ onDescriptionLoaded } /> + descriptionLoaded={ onDescriptionLoaded } + eventBus={ eventBus } + /> ; } diff --git a/src/render/index.js b/src/render/index.js index db25ae5..30473f8 100644 --- a/src/render/index.js +++ b/src/render/index.js @@ -1,10 +1,11 @@ import DmnPropertiesPanelRenderer from './DmnPropertiesPanelRenderer'; -import { DebounceInputModule } from '@bpmn-io/properties-panel'; +import { DebounceInputModule, FeelPopupModule } from '@bpmn-io/properties-panel'; export default { __depends__: [ - DebounceInputModule + DebounceInputModule, + FeelPopupModule ], __init__: [ 'propertiesPanel' diff --git a/test/TestHelper.js b/test/TestHelper.js index 9eef816..722e0c7 100644 --- a/test/TestHelper.js +++ b/test/TestHelper.js @@ -82,7 +82,7 @@ export function clickInput(input) { export function insertCoreStyles() { insertCSS( 'properties-panel.css', - require('@bpmn-io/properties-panel/assets/properties-panel.css').default + require('@bpmn-io/properties-panel/dist/assets/properties-panel.css').default ); insertCSS( diff --git a/test/spec/DmnPropertiesPanelRenderer.spec.js b/test/spec/DmnPropertiesPanelRenderer.spec.js index 3f50132..106673a 100644 --- a/test/spec/DmnPropertiesPanelRenderer.spec.js +++ b/test/spec/DmnPropertiesPanelRenderer.spec.js @@ -42,19 +42,21 @@ describe('', function() { let propertiesContainer; + let container; + const diagramXml = require('test/fixtures/simple.dmn').default; afterEach(() => cleanup()); beforeEach(function() { + container = TestContainer.get(this); + modelerContainer = document.createElement('div'); modelerContainer.classList.add('modeler-container'); propertiesContainer = document.createElement('div'); propertiesContainer.classList.add('properties-container'); - const container = TestContainer.get(this); - container.appendChild(modelerContainer); container.appendChild(propertiesContainer); }); @@ -575,6 +577,51 @@ describe('', function() { }); + + describe(' support', function() { + + let modeler; + + beforeEach(async function() { + + await act(async () => { + + const result = await createModeler(diagramXml, { + propertiesPanel: { + parent: propertiesContainer, + feelPopupContainer: container + } + }); + + modeler = result.modeler; + }); + + await act(() => { + const elementRegistry = get(modeler, 'elementRegistry'); + const selection = get(modeler, 'selection'); + + selection.select(elementRegistry.get('guestCount')); + }); + }); + + + it('should ship ', async function() { + + // when + const feelPopup = get(modeler, 'feelPopup'); + + // then + expect(feelPopup).to.exist; + + expect(feelPopup.isOpen()).to.be.false; + + expect(() => { + feelPopup.close(); + }).not.to.throw; + }); + + }); + }); @@ -586,4 +633,4 @@ function get(modeler, module) { function getHeaderName(container) { return domQuery('.bio-properties-panel-header-label', container).innerText; -} +} \ No newline at end of file