@camunda/task-testing 4.0.0 → 4.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.
@@ -1,12 +1,14 @@
1
1
  /**
2
2
  * Get currently selected BPMN element, if it is a single supported element
3
- * (`bpmn:Task` or `bpmn:SubProcess`). If not, return null and a message
4
- * indicating what to do.
3
+ * (`bpmn:Task` or `bpmn:SubProcess`). If not, return null and a selection
4
+ * info object with an optional title and a message indicating what to do.
5
5
  *
6
6
  * @param {Object} injector
7
7
  *
8
- * @returns {[ Object|null, string|null ]}
8
+ * @returns {[ Object|null, SelectionInfo|null ]}
9
9
  */
10
- export function useSelectedElement(injector: any): [any | null, string | null];
11
- export const SINGLE_TASK_SELECTION_REQUIRED_MESSAGE: "Select a task or subprocess to start testing.";
12
- export const TASK_SELECTION_REQUIRED_MESSAGE: "Task testing is only supported for tasks and subprocesses. Select one to start testing.";
10
+ export function useSelectedElement(injector: any): [any | null, SelectionInfo | null];
11
+ export type SelectionInfo = {
12
+ title?: string | undefined;
13
+ message: string;
14
+ };
package/package.json CHANGED
@@ -1,101 +1,101 @@
1
- {
2
- "name": "@camunda/task-testing",
3
- "version": "4.0.0",
4
- "files": [
5
- "dist"
6
- ],
7
- "main": "dist/index.js",
8
- "types": "dist/types/index.d.ts",
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/camunda/task-testing"
12
- },
13
- "scripts": {
14
- "all": "run-s lint types test build",
15
- "open": "open-cli http://localhost:3000",
16
- "start:server": "node demo/server.mjs",
17
- "start:client": "webpack --watch --config webpack.demo.js",
18
- "start": "run-p start:* open",
19
- "dev": "npm test -- --auto-watch --no-single-run",
20
- "build": "run-s build:webpack build:types",
21
- "build:webpack": "webpack",
22
- "build:watch": "webpack --watch",
23
- "build:demo": "webpack --config webpack.demo.js",
24
- "build:types": "tsc",
25
- "test": "karma start karma.config.js",
26
- "lint": "eslint .",
27
- "types": "tsc --noEmit",
28
- "prepare": "npm run build"
29
- },
30
- "license": "MIT",
31
- "dependencies": {
32
- "@codemirror/autocomplete": "^6.19.1",
33
- "@codemirror/lang-json": "^6.0.2",
34
- "@codemirror/language": "^6.11.3",
35
- "@codemirror/state": "^6.5.2",
36
- "@codemirror/view": "^6.38.8",
37
- "@lezer/highlight": "^1.2.1",
38
- "classnames": "^2.5.1",
39
- "codemirror": "^6.0.2",
40
- "events": "^3.3.0",
41
- "min-dash": "^5.0.0"
42
- },
43
- "devDependencies": {
44
- "@babel/core": "^7.28.0",
45
- "@babel/preset-env": "^7.28.0",
46
- "@babel/preset-react": "^7.27.1",
47
- "@bpmn-io/variable-resolver": "^3.0.0",
48
- "@camunda8/orchestration-cluster-api": "^8.8.4",
49
- "@carbon/icons-react": "^11.62.0",
50
- "@carbon/react": "^1.76.0",
51
- "@eslint/js": "^9.31.0",
52
- "@testing-library/react": "^16.3.0",
53
- "@testing-library/user-event": "^14.6.1",
54
- "@types/codemirror": "^5.60.16",
55
- "@types/react": "^19.1.12",
56
- "babel-loader": "^10.1.1",
57
- "bpmn-js-element-templates": "^2.22.0",
58
- "bpmn-js-headless": "^0.1.0",
59
- "bpmn-js-properties-panel": "^5.53.0",
60
- "camunda-bpmn-js": "^5.25.0",
61
- "chai": "^4.5.0",
62
- "css-loader": "^7.1.4",
63
- "dotenv": "^17.2.1",
64
- "eslint": "^9.31.0",
65
- "eslint-plugin-bpmn-io": "^2.2.0",
66
- "express": "^5.1.0",
67
- "html-webpack-plugin": "^5.6.6",
68
- "karma": "^6.4.4",
69
- "karma-chrome-launcher-2": "^3.3.0",
70
- "karma-env-preprocessor": "^0.1.1",
71
- "karma-mocha": "^2.0.1",
72
- "karma-sinon-chai": "^2.0.2",
73
- "karma-webpack": "^5.0.1",
74
- "mocha": "^11.7.1",
75
- "npm-run-all2": "^8.0.4",
76
- "open": "^10.2.0",
77
- "open-cli": "^8.0.0",
78
- "puppeteer": "^24.38.0",
79
- "raw-loader": "^4.0.2",
80
- "react": "^18.3.1",
81
- "react-dom": "^18.3.1",
82
- "sass": "^1.97.3",
83
- "sass-loader": "^16.0.7",
84
- "sinon": "^17.0.1",
85
- "sinon-chai": "^3.7.0",
86
- "style-loader": "^4.0.0",
87
- "typescript": "^5.9.2",
88
- "webpack": "^5.105.4",
89
- "webpack-cli": "^6.0.1",
90
- "webpack-dev-server": "^5.2.3",
91
- "zeebe-bpmn-moddle": "^1.11.0"
92
- },
93
- "peerDependencies": {
94
- "camunda-bpmn-js": "*",
95
- "react": "*",
96
- "react-dom": "*"
97
- },
98
- "overrides": {
99
- "react-is": "^18.0.0"
100
- }
101
- }
1
+ {
2
+ "name": "@camunda/task-testing",
3
+ "version": "4.0.1",
4
+ "files": [
5
+ "dist"
6
+ ],
7
+ "main": "dist/index.js",
8
+ "types": "dist/types/index.d.ts",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/camunda/task-testing"
12
+ },
13
+ "scripts": {
14
+ "all": "run-s lint types test build",
15
+ "open": "open-cli http://localhost:3000",
16
+ "start:server": "node demo/server.mjs",
17
+ "start:client": "webpack --watch --config webpack.demo.js",
18
+ "start": "run-p start:* open",
19
+ "dev": "npm test -- --auto-watch --no-single-run",
20
+ "build": "run-s build:webpack build:types",
21
+ "build:webpack": "webpack",
22
+ "build:watch": "webpack --watch",
23
+ "build:demo": "webpack --config webpack.demo.js",
24
+ "build:types": "tsc",
25
+ "test": "karma start karma.config.js",
26
+ "lint": "eslint .",
27
+ "types": "tsc --noEmit",
28
+ "prepare": "npm run build"
29
+ },
30
+ "license": "MIT",
31
+ "dependencies": {
32
+ "@codemirror/autocomplete": "^6.19.1",
33
+ "@codemirror/lang-json": "^6.0.2",
34
+ "@codemirror/language": "^6.11.3",
35
+ "@codemirror/state": "^6.5.2",
36
+ "@codemirror/view": "^6.38.8",
37
+ "@lezer/highlight": "^1.2.1",
38
+ "classnames": "^2.5.1",
39
+ "codemirror": "^6.0.2",
40
+ "events": "^3.3.0",
41
+ "min-dash": "^5.0.0"
42
+ },
43
+ "devDependencies": {
44
+ "@babel/core": "^7.28.0",
45
+ "@babel/preset-env": "^7.28.0",
46
+ "@babel/preset-react": "^7.27.1",
47
+ "@bpmn-io/variable-resolver": "^3.0.0",
48
+ "@camunda8/orchestration-cluster-api": "^8.8.4",
49
+ "@carbon/icons-react": "^11.62.0",
50
+ "@carbon/react": "^1.76.0",
51
+ "@eslint/js": "^9.31.0",
52
+ "@testing-library/react": "^16.3.0",
53
+ "@testing-library/user-event": "^14.6.1",
54
+ "@types/codemirror": "^5.60.16",
55
+ "@types/react": "^19.1.12",
56
+ "babel-loader": "^10.1.1",
57
+ "bpmn-js-element-templates": "^2.22.0",
58
+ "bpmn-js-headless": "^0.1.0",
59
+ "bpmn-js-properties-panel": "^5.53.0",
60
+ "camunda-bpmn-js": "^5.25.0",
61
+ "chai": "^4.5.0",
62
+ "css-loader": "^7.1.4",
63
+ "dotenv": "^17.2.1",
64
+ "eslint": "^9.31.0",
65
+ "eslint-plugin-bpmn-io": "^2.2.0",
66
+ "express": "^5.1.0",
67
+ "html-webpack-plugin": "^5.6.6",
68
+ "karma": "^6.4.4",
69
+ "karma-chrome-launcher-2": "^3.3.0",
70
+ "karma-env-preprocessor": "^0.1.1",
71
+ "karma-mocha": "^2.0.1",
72
+ "karma-sinon-chai": "^2.0.2",
73
+ "karma-webpack": "^5.0.1",
74
+ "mocha": "^11.7.1",
75
+ "npm-run-all2": "^8.0.4",
76
+ "open": "^10.2.0",
77
+ "open-cli": "^8.0.0",
78
+ "puppeteer": "^24.38.0",
79
+ "raw-loader": "^4.0.2",
80
+ "react": "^18.3.1",
81
+ "react-dom": "^18.3.1",
82
+ "sass": "^1.97.3",
83
+ "sass-loader": "^16.0.7",
84
+ "sinon": "^17.0.1",
85
+ "sinon-chai": "^3.7.0",
86
+ "style-loader": "^4.0.0",
87
+ "typescript": "^5.9.2",
88
+ "webpack": "^5.105.4",
89
+ "webpack-cli": "^6.0.1",
90
+ "webpack-dev-server": "^5.2.3",
91
+ "zeebe-bpmn-moddle": "^1.11.0"
92
+ },
93
+ "peerDependencies": {
94
+ "camunda-bpmn-js": "*",
95
+ "react": "*",
96
+ "react-dom": "*"
97
+ },
98
+ "overrides": {
99
+ "react-is": "^18.0.0"
100
+ }
101
+ }