@livechat/platform-workflows 0.0.87 → 0.0.89
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/dist/chunk-Q53XLSIX.mjs +136 -0
- package/dist/index.css +5 -2
- package/dist/index.js +2485 -1113
- package/dist/index.mjs +2175 -801
- package/dist/tests.d.mts +51 -0
- package/dist/tests.d.ts +51 -0
- package/dist/tests.js +81 -0
- package/dist/tests.mjs +7 -0
- package/package.json +7 -7
package/dist/tests.d.mts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const WORKFLOWS_TEST_SELECTORS: {
|
|
2
|
+
views: {
|
|
3
|
+
workflows: {
|
|
4
|
+
creator: {
|
|
5
|
+
navbar: {
|
|
6
|
+
activateSwitch: string;
|
|
7
|
+
publishButton: string;
|
|
8
|
+
editButton: string;
|
|
9
|
+
};
|
|
10
|
+
builder: {
|
|
11
|
+
nodes: {
|
|
12
|
+
add: {
|
|
13
|
+
task: {
|
|
14
|
+
button: string;
|
|
15
|
+
};
|
|
16
|
+
trigger: {
|
|
17
|
+
button: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
modals: {
|
|
23
|
+
addTask: {
|
|
24
|
+
wrapper: string;
|
|
25
|
+
taskCard: (key: string) => string;
|
|
26
|
+
taskCategoryButton: (key: string) => string;
|
|
27
|
+
saveButton: string;
|
|
28
|
+
};
|
|
29
|
+
addTrigger: {
|
|
30
|
+
wrapper: string;
|
|
31
|
+
saveButton: string;
|
|
32
|
+
triggerCard: (key: string) => string;
|
|
33
|
+
triggerCategoryButton: (key: string) => string;
|
|
34
|
+
};
|
|
35
|
+
publish: {
|
|
36
|
+
wrapper: string;
|
|
37
|
+
saveButton: string;
|
|
38
|
+
cancelButton: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
panels: {
|
|
42
|
+
element: {
|
|
43
|
+
wrapper: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export { WORKFLOWS_TEST_SELECTORS };
|
package/dist/tests.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const WORKFLOWS_TEST_SELECTORS: {
|
|
2
|
+
views: {
|
|
3
|
+
workflows: {
|
|
4
|
+
creator: {
|
|
5
|
+
navbar: {
|
|
6
|
+
activateSwitch: string;
|
|
7
|
+
publishButton: string;
|
|
8
|
+
editButton: string;
|
|
9
|
+
};
|
|
10
|
+
builder: {
|
|
11
|
+
nodes: {
|
|
12
|
+
add: {
|
|
13
|
+
task: {
|
|
14
|
+
button: string;
|
|
15
|
+
};
|
|
16
|
+
trigger: {
|
|
17
|
+
button: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
modals: {
|
|
23
|
+
addTask: {
|
|
24
|
+
wrapper: string;
|
|
25
|
+
taskCard: (key: string) => string;
|
|
26
|
+
taskCategoryButton: (key: string) => string;
|
|
27
|
+
saveButton: string;
|
|
28
|
+
};
|
|
29
|
+
addTrigger: {
|
|
30
|
+
wrapper: string;
|
|
31
|
+
saveButton: string;
|
|
32
|
+
triggerCard: (key: string) => string;
|
|
33
|
+
triggerCategoryButton: (key: string) => string;
|
|
34
|
+
};
|
|
35
|
+
publish: {
|
|
36
|
+
wrapper: string;
|
|
37
|
+
saveButton: string;
|
|
38
|
+
cancelButton: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
panels: {
|
|
42
|
+
element: {
|
|
43
|
+
wrapper: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export { WORKFLOWS_TEST_SELECTORS };
|
package/dist/tests.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/tests/index.ts
|
|
22
|
+
var tests_exports = {};
|
|
23
|
+
__export(tests_exports, {
|
|
24
|
+
WORKFLOWS_TEST_SELECTORS: () => WORKFLOWS_TEST_SELECTORS
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(tests_exports);
|
|
27
|
+
|
|
28
|
+
// src/tests/selectors.ts
|
|
29
|
+
var WORKFLOWS_TEST_SELECTORS = {
|
|
30
|
+
views: {
|
|
31
|
+
workflows: {
|
|
32
|
+
creator: {
|
|
33
|
+
navbar: {
|
|
34
|
+
activateSwitch: "activate-switch",
|
|
35
|
+
publishButton: "publish-btn",
|
|
36
|
+
editButton: "edit-btn"
|
|
37
|
+
},
|
|
38
|
+
builder: {
|
|
39
|
+
nodes: {
|
|
40
|
+
add: {
|
|
41
|
+
task: {
|
|
42
|
+
button: "add-task-btn"
|
|
43
|
+
},
|
|
44
|
+
trigger: {
|
|
45
|
+
button: "add-trigger-btn"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
modals: {
|
|
51
|
+
addTask: {
|
|
52
|
+
wrapper: "add-task-modal",
|
|
53
|
+
taskCard: (key) => `task-option-${key}`,
|
|
54
|
+
taskCategoryButton: (key) => `task-category-${key}`,
|
|
55
|
+
saveButton: "save-task-btn"
|
|
56
|
+
},
|
|
57
|
+
addTrigger: {
|
|
58
|
+
wrapper: "add-trigger-modal",
|
|
59
|
+
saveButton: "save-trigger-btn",
|
|
60
|
+
triggerCard: (key) => `trigger-option-${key}`,
|
|
61
|
+
triggerCategoryButton: (key) => `trigger-category-${key}`
|
|
62
|
+
},
|
|
63
|
+
publish: {
|
|
64
|
+
wrapper: "publish-workflow-modal",
|
|
65
|
+
saveButton: "publish-workflow-btn",
|
|
66
|
+
cancelButton: "cancel-publish-btn"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
panels: {
|
|
70
|
+
element: {
|
|
71
|
+
wrapper: "element-wrapper"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
79
|
+
0 && (module.exports = {
|
|
80
|
+
WORKFLOWS_TEST_SELECTORS
|
|
81
|
+
});
|
package/dist/tests.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/platform-workflows",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.89",
|
|
4
4
|
"description": "Text Platform | Workflows",
|
|
5
5
|
"author": "Wojciech Dudek",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"esbuild-sass-plugin": "^3.2.0",
|
|
49
49
|
"tsup": "^8.0.0",
|
|
50
50
|
"typescript": "^5.1.6",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
51
|
+
"tsconfig": "0.0.1",
|
|
52
|
+
"eslint-config-custom": "0.0.10"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@amplitude/analytics-browser": "^2.11.9",
|
|
@@ -81,13 +81,13 @@
|
|
|
81
81
|
"uuid": "^9.0.1",
|
|
82
82
|
"validator": "^13.12.0",
|
|
83
83
|
"web-worker": "^1.3.0",
|
|
84
|
-
"@livechat/developer-studio-
|
|
85
|
-
"@livechat/
|
|
86
|
-
"@livechat/
|
|
84
|
+
"@livechat/developer-studio-ui-react": "1.1.5",
|
|
85
|
+
"@livechat/platform-integrations": "0.0.52",
|
|
86
|
+
"@livechat/developer-studio-api": "3.4.14"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@tanstack/react-query": "4.36.1",
|
|
90
|
-
"@livechat/design-system-icons": "^2.
|
|
90
|
+
"@livechat/design-system-icons": "^2.21.0",
|
|
91
91
|
"@livechat/design-system-react-components": "1.38.5",
|
|
92
92
|
"react": "^18.3.1",
|
|
93
93
|
"react-dom": "^18.3.1",
|