@camunda/play 1.3.0 → 1.3.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.
Files changed (2) hide show
  1. package/build/index.js +16 -15
  2. package/package.json +112 -112
package/build/index.js CHANGED
@@ -3673,27 +3673,28 @@ class gNe {
3673
3673
  trackBpmnElementCompletion(e, t, i) {
3674
3674
  if (!i)
3675
3675
  return;
3676
- const { bpmnElementType: n } = e.element;
3677
- if (n === "START_EVENT")
3676
+ const { bpmnElementType: n } = e.element, s = n === "UNKNOWN" ? "TASK" : n;
3677
+ if (s === "START_EVENT")
3678
3678
  return;
3679
- const s = JSON.parse(
3679
+ const o = JSON.parse(
3680
3680
  localStorage.getItem("tracking:" + t) || "{}"
3681
- ), o = i.get(e.element.elementId), a = o?.businessObject ?? o;
3682
- let l = null;
3683
- a?.hasOwnProperty("modelerTemplate") ? l = a?.modelerTemplate : (
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
- a?.$attrs?.hasOwnProperty("zeebe:modelerTemplate") && (l = a?.$attrs["zeebe:modelerTemplate"])
3685
+ l?.$attrs?.hasOwnProperty("zeebe:modelerTemplate") && (c = l?.$attrs["zeebe:modelerTemplate"])
3686
3686
  );
3687
- const c = this.convertConnectorId(l), d = !!c, u = c || n;
3688
- n === "PROCESS" && !s[n + ":" + e.key] && (this.mixpanelTrack?.("zeebePlay:bpmnelement:completed", {
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[n + ":" + e.key] = !0, s[n] = !0), s[u] || (this.mixpanelTrack?.("zeebePlay:bpmnelement:completed", {
3692
- [d ? "connector_type" : "element_type"]: u,
3693
- process_id: t
3694
- }), s[u] = !0), localStorage.setItem(
3691
+ }), o[s + ":" + e.key] = !0, o[s] = !0), o[f] || (this.mixpanelTrack?.("zeebePlay:bpmnelement:completed", {
3692
+ element_type: s,
3693
+ process_id: t,
3694
+ ...u ? { connector_type: d } : {}
3695
+ }), o[f] = !0), localStorage.setItem(
3695
3696
  "tracking:" + t,
3696
- JSON.stringify(s)
3697
+ JSON.stringify(o)
3697
3698
  );
3698
3699
  }
3699
3700
  //@ts-expect-error Parameter 'process_id' implicitly has an 'any' type.ts(7006)
@@ -140896,7 +140897,7 @@ function OIt(r) {
140896
140897
  ({ key: o }) => !n.includes(o)
140897
140898
  ).forEach(({ element: o }) => {
140898
140899
  r?.success({
140899
- title: `"${o.elementName || o.elementId}" sub-process started`,
140900
+ title: `"${o.elementName || o.elementId}" event sub-process started`,
140900
140901
  actionButtonLabel: "Go to sub-process",
140901
140902
  onActionButtonClick: () => {
140902
140903
  ds.focusOnElement(o.elementId);
package/package.json CHANGED
@@ -1,114 +1,114 @@
1
1
  {
2
- "name": "@camunda/play",
3
- "version": "1.3.0",
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"
2
+ "name": "@camunda/play",
3
+ "version": "1.3.2",
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
  }