@camunda/play 1.3.0 → 1.3.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.
- package/build/index.js +14 -14
- package/package.json +112 -112
package/build/index.js
CHANGED
|
@@ -3673,27 +3673,27 @@ class gNe {
|
|
|
3673
3673
|
trackBpmnElementCompletion(e, t, i) {
|
|
3674
3674
|
if (!i)
|
|
3675
3675
|
return;
|
|
3676
|
-
const { bpmnElementType: n } = e.element;
|
|
3677
|
-
if (
|
|
3676
|
+
const { bpmnElementType: n } = e.element, s = n === "UNKNOWN" ? "TASK" : n;
|
|
3677
|
+
if (s === "START_EVENT")
|
|
3678
3678
|
return;
|
|
3679
|
-
const
|
|
3679
|
+
const o = JSON.parse(
|
|
3680
3680
|
localStorage.getItem("tracking:" + t) || "{}"
|
|
3681
|
-
),
|
|
3682
|
-
let
|
|
3683
|
-
|
|
3681
|
+
), a = i.get(e.element.elementId), l = a?.businessObject ?? a;
|
|
3682
|
+
let c = null;
|
|
3683
|
+
l?.hasOwnProperty("modelerTemplate") ? c = l?.modelerTemplate : (
|
|
3684
3684
|
// eslint-disable-next-line no-prototype-builtins
|
|
3685
|
-
|
|
3685
|
+
l?.$attrs?.hasOwnProperty("zeebe:modelerTemplate") && (c = l?.$attrs["zeebe:modelerTemplate"])
|
|
3686
3686
|
);
|
|
3687
|
-
const
|
|
3688
|
-
|
|
3687
|
+
const d = this.convertConnectorId(c), u = !!d, f = d || s;
|
|
3688
|
+
s === "PROCESS" && !o[s + ":" + e.key] && (this.mixpanelTrack?.("zeebePlay:bpmnelement:completed", {
|
|
3689
3689
|
element_type: "PROCESS",
|
|
3690
3690
|
process_id: t
|
|
3691
|
-
}), s
|
|
3692
|
-
[
|
|
3691
|
+
}), o[s + ":" + e.key] = !0, o[s] = !0), o[f] || (this.mixpanelTrack?.("zeebePlay:bpmnelement:completed", {
|
|
3692
|
+
[u ? "connector_type" : "element_type"]: f,
|
|
3693
3693
|
process_id: t
|
|
3694
|
-
}),
|
|
3694
|
+
}), o[f] = !0), localStorage.setItem(
|
|
3695
3695
|
"tracking:" + t,
|
|
3696
|
-
JSON.stringify(
|
|
3696
|
+
JSON.stringify(o)
|
|
3697
3697
|
);
|
|
3698
3698
|
}
|
|
3699
3699
|
//@ts-expect-error Parameter 'process_id' implicitly has an 'any' type.ts(7006)
|
|
@@ -140896,7 +140896,7 @@ function OIt(r) {
|
|
|
140896
140896
|
({ key: o }) => !n.includes(o)
|
|
140897
140897
|
).forEach(({ element: o }) => {
|
|
140898
140898
|
r?.success({
|
|
140899
|
-
title: `"${o.elementName || o.elementId}" sub-process started`,
|
|
140899
|
+
title: `"${o.elementName || o.elementId}" event sub-process started`,
|
|
140900
140900
|
actionButtonLabel: "Go to sub-process",
|
|
140901
140901
|
onActionButtonClick: () => {
|
|
140902
140902
|
ds.focusOnElement(o.elementId);
|
package/package.json
CHANGED
|
@@ -1,114 +1,114 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
2
|
+
"name": "@camunda/play",
|
|
3
|
+
"version": "1.3.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"start": "vite",
|
|
7
|
+
"build": "tsc && vite build",
|
|
8
|
+
"build:dev": "tsc && vite build --mode development",
|
|
9
|
+
"build:watch": "tsc-watch --onSuccess \"yarn publish-local\"",
|
|
10
|
+
"eslint": "eslint .",
|
|
11
|
+
"lint": "yarn tsc && yarn eslint",
|
|
12
|
+
"analyze-bundle": "yarn build && source-map-explorer build/* --no-border-checks",
|
|
13
|
+
"test": "vitest",
|
|
14
|
+
"coverage": "yarn test run --coverage --changed",
|
|
15
|
+
"fix:prettier": "prettier --write \"**/*.{ts,tsx}\"",
|
|
16
|
+
"publish-local": "yarn build:dev && npx yalc push --sig"
|
|
17
|
+
},
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"@bpmn-io/element-template-icon-renderer": "0.x",
|
|
20
|
+
"@bpmn-io/form-js": "1.x",
|
|
21
|
+
"@camunda/improved-canvas": "1.x",
|
|
22
|
+
"@carbon/react": "1.x",
|
|
23
|
+
"@monaco-editor/react": "4.x",
|
|
24
|
+
"bpmn-moddle": "8.x || 9.x",
|
|
25
|
+
"camunda-bpmn-js": "3.x || 4.x",
|
|
26
|
+
"diagram-js-grid": "1.x",
|
|
27
|
+
"diagram-js-minimap": "4.x",
|
|
28
|
+
"lodash": "4.x",
|
|
29
|
+
"mobx": "6.x",
|
|
30
|
+
"mobx-react": "7.x",
|
|
31
|
+
"monaco-editor": "0.x",
|
|
32
|
+
"react": "18.x",
|
|
33
|
+
"react-dom": "18.x",
|
|
34
|
+
"react-router-dom": "5.x || 6.x",
|
|
35
|
+
"styled-components": "6.x"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@bpmn-io/element-template-icon-renderer": "0.5.2",
|
|
39
|
+
"@bpmn-io/form-js": "1.7.3",
|
|
40
|
+
"@camunda/form-js-assistant-module": "0.5.0",
|
|
41
|
+
"@camunda/form-playground": "0.13.0",
|
|
42
|
+
"@camunda/improved-canvas": "1.3.1",
|
|
43
|
+
"@carbon/react": "1.53.0",
|
|
44
|
+
"@monaco-editor/react": "4.6.0",
|
|
45
|
+
"@testing-library/jest-dom": "6.4.2",
|
|
46
|
+
"@testing-library/react": "14.2.2",
|
|
47
|
+
"@testing-library/react-hooks": "8.0.1",
|
|
48
|
+
"@testing-library/user-event": "14.5.2",
|
|
49
|
+
"@types/bpmn-moddle": "5.1.11",
|
|
50
|
+
"@types/carbon-components-react": "7.55.10",
|
|
51
|
+
"@types/jest": "29.5.12",
|
|
52
|
+
"@types/lodash": "4.17.0",
|
|
53
|
+
"@types/mixpanel-browser": "2.49.0",
|
|
54
|
+
"@types/node": "20.11.30",
|
|
55
|
+
"@types/prop-types": "15.7.11",
|
|
56
|
+
"@types/react": "18.2.67",
|
|
57
|
+
"@types/react-dom": "18.2.22",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "7.3.1",
|
|
59
|
+
"@typescript-eslint/parser": "7.3.1",
|
|
60
|
+
"@vitejs/plugin-react": "4.2.1",
|
|
61
|
+
"@vitest/coverage-istanbul": "1.4.0",
|
|
62
|
+
"@vitest/ui": "1.4.0",
|
|
63
|
+
"bpmn-js-headless": "0.1.0",
|
|
64
|
+
"bpmn-moddle": "9.0.1",
|
|
65
|
+
"camunda-bpmn-js": "4.3.2",
|
|
66
|
+
"diagram-js-grid": "1.0.0",
|
|
67
|
+
"diagram-js-minimap": "4.1.0",
|
|
68
|
+
"eslint": "8.57.0",
|
|
69
|
+
"eslint-config-prettier": "9.1.0",
|
|
70
|
+
"eslint-plugin-camunda-licensed": "0.4.6",
|
|
71
|
+
"eslint-plugin-prettier": "5.1.3",
|
|
72
|
+
"eslint-plugin-react-hooks": "4.6.0",
|
|
73
|
+
"eslint-plugin-react-refresh": "0.4.6",
|
|
74
|
+
"eslint-plugin-testing-library": "6.2.0",
|
|
75
|
+
"jsdom": "24.0.0",
|
|
76
|
+
"lodash": "4.17.21",
|
|
77
|
+
"mixpanel-browser": "2.49.0",
|
|
78
|
+
"mobx": "6.12.0",
|
|
79
|
+
"mobx-react": "7.6.0",
|
|
80
|
+
"monaco-editor": "0.47.0",
|
|
81
|
+
"prettier": "3.2.5",
|
|
82
|
+
"prop-types": "15.8.1",
|
|
83
|
+
"react": "18.2.0",
|
|
84
|
+
"react-dom": "18.2.0",
|
|
85
|
+
"react-router-dom": "6.20.1",
|
|
86
|
+
"sass": "1.72.0",
|
|
87
|
+
"source-map-explorer": "2.5.3",
|
|
88
|
+
"styled-components": "6.1.1",
|
|
89
|
+
"ts-toolbelt": "9.6.0",
|
|
90
|
+
"tsc-watch": "6.0.4",
|
|
91
|
+
"typescript": "5.4.3",
|
|
92
|
+
"vite": "5.2.2",
|
|
93
|
+
"vite-plugin-svgr": "4.2.0",
|
|
94
|
+
"vite-svg-loader": "5.1.0",
|
|
95
|
+
"vite-tsconfig-paths": "4.3.2",
|
|
96
|
+
"vitest": "1.4.0"
|
|
97
|
+
},
|
|
98
|
+
"lint-staged": {
|
|
99
|
+
"*": [
|
|
100
|
+
"prettier --write"
|
|
101
|
+
],
|
|
102
|
+
"*.{js,jsx,ts,tsx}": [
|
|
103
|
+
"yarn lint"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"description": "Camunda Play",
|
|
107
|
+
"main": "./build/play.js",
|
|
108
|
+
"files": [
|
|
109
|
+
"/build"
|
|
110
|
+
],
|
|
111
|
+
"author": "Camunda",
|
|
112
|
+
"license": "Apache-2.0",
|
|
113
|
+
"packageManager": "yarn@1.22.22"
|
|
114
114
|
}
|