@livechat/platform-workflows 0.1.4 → 0.1.6
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-BW4GCPXP.mjs +20 -0
- package/dist/chunk-EACC5D4G.mjs +113 -0
- package/dist/{config/index.mjs → chunk-I4E63NIC.mjs} +5 -15
- package/dist/{chunk-I7LVNCZF.mjs → chunk-PWFJOGII.mjs} +1 -62
- package/dist/{chunk-Q53XLSIX.mjs → chunk-UQO6HYDU.mjs} +1 -53
- package/dist/chunk-V3FK4SUN.mjs +1606 -0
- package/dist/chunk-WFVTCU6F.mjs +24 -0
- package/dist/chunk-WNNR3KXF.mjs +1607 -0
- package/dist/chunk-WS4FFM4M.mjs +111 -0
- package/dist/chunk-XIPVJOPR.mjs +1621 -0
- package/dist/chunk-YS3C7NY2.mjs +1623 -0
- package/dist/{config/index.d.ts → config.d.mts} +5 -2
- package/dist/{config/index.d.mts → config.d.ts} +5 -2
- package/dist/{config/index.js → config.js} +0 -2
- package/dist/config.mjs +11 -0
- package/dist/constants.d.mts +1037 -0
- package/dist/constants.d.ts +1037 -0
- package/dist/constants.js +10845 -0
- package/dist/constants.mjs +10779 -0
- package/dist/index-B3GBo8sA.d.mts +98 -0
- package/dist/index-B3GBo8sA.d.ts +98 -0
- package/dist/index.d.mts +108 -2
- package/dist/index.d.ts +108 -2
- package/dist/index.js +203 -205
- package/dist/index.mjs +182 -11
- package/dist/tests.js +0 -1
- package/dist/tests.mjs +109 -4
- package/package.json +21 -8
- package/dist/.DS_Store +0 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// src/tests/selectors.ts
|
|
2
|
+
var WORKFLOWS_TEST_SELECTORS = {
|
|
3
|
+
views: {
|
|
4
|
+
workflows: {
|
|
5
|
+
creator: {
|
|
6
|
+
navbar: {
|
|
7
|
+
activateSwitch: "activate-switch",
|
|
8
|
+
publishButton: "publish-btn",
|
|
9
|
+
editButton: "edit-btn"
|
|
10
|
+
},
|
|
11
|
+
builder: {
|
|
12
|
+
nodes: {
|
|
13
|
+
add: {
|
|
14
|
+
task: {
|
|
15
|
+
button: "add-task-btn"
|
|
16
|
+
},
|
|
17
|
+
trigger: {
|
|
18
|
+
button: "add-trigger-btn"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
forms: {
|
|
23
|
+
integrations: {
|
|
24
|
+
text: {
|
|
25
|
+
info: "info-container",
|
|
26
|
+
button: "start-trial-btn"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
modals: {
|
|
32
|
+
addTask: {
|
|
33
|
+
wrapper: "add-task-modal",
|
|
34
|
+
taskCard: (key) => `task-option-${key}`,
|
|
35
|
+
taskCategoryButton: (key) => `task-category-${key}`,
|
|
36
|
+
saveButton: "save-task-btn"
|
|
37
|
+
},
|
|
38
|
+
addTrigger: {
|
|
39
|
+
wrapper: "add-trigger-modal",
|
|
40
|
+
saveButton: "save-trigger-btn",
|
|
41
|
+
triggerCard: (key) => `trigger-option-${key}`,
|
|
42
|
+
triggerCategoryButton: (key) => `trigger-category-${key}`
|
|
43
|
+
},
|
|
44
|
+
publish: {
|
|
45
|
+
wrapper: "publish-workflow-modal",
|
|
46
|
+
saveButton: "publish-workflow-btn",
|
|
47
|
+
cancelButton: "cancel-publish-btn"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
panels: {
|
|
51
|
+
element: {
|
|
52
|
+
wrapper: "element-wrapper"
|
|
53
|
+
},
|
|
54
|
+
details: {
|
|
55
|
+
executions: {
|
|
56
|
+
list: {
|
|
57
|
+
row: "execution-row",
|
|
58
|
+
status: "execution-status"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
panel: {
|
|
62
|
+
historyTab: "history-tab"
|
|
63
|
+
},
|
|
64
|
+
info: {
|
|
65
|
+
dateCreated: "date-created",
|
|
66
|
+
dateUpdated: "date-updated",
|
|
67
|
+
completedCycles: "completed-cycles",
|
|
68
|
+
failedCycles: "failed-cycles"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
list: {
|
|
74
|
+
grid: {
|
|
75
|
+
table: {
|
|
76
|
+
wrapper: "workflows-table",
|
|
77
|
+
body: "workflows-table-body",
|
|
78
|
+
menuTrigger: "action-menu-trigger",
|
|
79
|
+
activateSwitch: "activate-switch",
|
|
80
|
+
infoButton: "info-btn",
|
|
81
|
+
workflowItem: (id) => `workflow-item-${id}`
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
view: {
|
|
85
|
+
createButton: "create-workflow-btn",
|
|
86
|
+
emptyInfo: "empty-info"
|
|
87
|
+
},
|
|
88
|
+
modals: {
|
|
89
|
+
create: {
|
|
90
|
+
wrapper: "create-workflow-modal"
|
|
91
|
+
},
|
|
92
|
+
previewTemplate: {
|
|
93
|
+
wrapper: "template-preview-modal",
|
|
94
|
+
useButton: "use-template-btn"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
home: {
|
|
98
|
+
cards: {
|
|
99
|
+
template: {
|
|
100
|
+
wrapper: "template-card"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export {
|
|
110
|
+
WORKFLOWS_TEST_SELECTORS
|
|
111
|
+
};
|