@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,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__spreadValues
|
|
3
|
+
} from "./chunk-I4E63NIC.mjs";
|
|
4
|
+
|
|
5
|
+
// src/config.ts
|
|
6
|
+
var config = {
|
|
7
|
+
config: void 0
|
|
8
|
+
};
|
|
9
|
+
function setWorkflowsConfig(newConfig) {
|
|
10
|
+
config.config = __spreadValues(__spreadValues({}, config.config), newConfig);
|
|
11
|
+
}
|
|
12
|
+
var getWorkflowsEnv = (key) => {
|
|
13
|
+
return config.config[key];
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
config,
|
|
18
|
+
setWorkflowsConfig,
|
|
19
|
+
getWorkflowsEnv
|
|
20
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
// src/tests/selectors.ts
|
|
4
|
+
var WORKFLOWS_TEST_SELECTORS = {
|
|
5
|
+
views: {
|
|
6
|
+
workflows: {
|
|
7
|
+
creator: {
|
|
8
|
+
navbar: {
|
|
9
|
+
activateSwitch: "activate-switch",
|
|
10
|
+
publishButton: "publish-btn",
|
|
11
|
+
editButton: "edit-btn"
|
|
12
|
+
},
|
|
13
|
+
builder: {
|
|
14
|
+
nodes: {
|
|
15
|
+
add: {
|
|
16
|
+
task: {
|
|
17
|
+
button: "add-task-btn"
|
|
18
|
+
},
|
|
19
|
+
trigger: {
|
|
20
|
+
button: "add-trigger-btn"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
forms: {
|
|
25
|
+
integrations: {
|
|
26
|
+
text: {
|
|
27
|
+
info: "info-container",
|
|
28
|
+
button: "start-trial-btn"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
modals: {
|
|
34
|
+
addTask: {
|
|
35
|
+
wrapper: "add-task-modal",
|
|
36
|
+
taskCard: (key) => `task-option-${key}`,
|
|
37
|
+
taskCategoryButton: (key) => `task-category-${key}`,
|
|
38
|
+
saveButton: "save-task-btn"
|
|
39
|
+
},
|
|
40
|
+
addTrigger: {
|
|
41
|
+
wrapper: "add-trigger-modal",
|
|
42
|
+
saveButton: "save-trigger-btn",
|
|
43
|
+
triggerCard: (key) => `trigger-option-${key}`,
|
|
44
|
+
triggerCategoryButton: (key) => `trigger-category-${key}`
|
|
45
|
+
},
|
|
46
|
+
publish: {
|
|
47
|
+
wrapper: "publish-workflow-modal",
|
|
48
|
+
saveButton: "publish-workflow-btn",
|
|
49
|
+
cancelButton: "cancel-publish-btn"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
panels: {
|
|
53
|
+
element: {
|
|
54
|
+
wrapper: "element-wrapper"
|
|
55
|
+
},
|
|
56
|
+
details: {
|
|
57
|
+
executions: {
|
|
58
|
+
list: {
|
|
59
|
+
row: "execution-row",
|
|
60
|
+
status: "execution-status"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
panel: {
|
|
64
|
+
historyTab: "history-tab"
|
|
65
|
+
},
|
|
66
|
+
info: {
|
|
67
|
+
dateCreated: "date-created",
|
|
68
|
+
dateUpdated: "date-updated",
|
|
69
|
+
completedCycles: "completed-cycles",
|
|
70
|
+
failedCycles: "failed-cycles"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
list: {
|
|
76
|
+
grid: {
|
|
77
|
+
table: {
|
|
78
|
+
wrapper: "workflows-table",
|
|
79
|
+
body: "workflows-table-body",
|
|
80
|
+
menuTrigger: "action-menu-trigger",
|
|
81
|
+
activateSwitch: "activate-switch",
|
|
82
|
+
infoButton: "info-btn",
|
|
83
|
+
workflowItem: (id) => `workflow-item-${id}`
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
view: {
|
|
87
|
+
createButton: "create-workflow-btn",
|
|
88
|
+
emptyInfo: "empty-info"
|
|
89
|
+
},
|
|
90
|
+
modals: {
|
|
91
|
+
create: {
|
|
92
|
+
wrapper: "create-workflow-modal"
|
|
93
|
+
},
|
|
94
|
+
previewTemplate: {
|
|
95
|
+
wrapper: "template-preview-modal",
|
|
96
|
+
useButton: "use-template-btn"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
home: {
|
|
100
|
+
cards: {
|
|
101
|
+
template: {
|
|
102
|
+
wrapper: "template-card"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export {
|
|
112
|
+
WORKFLOWS_TEST_SELECTORS
|
|
113
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -14,21 +16,9 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
17
20
|
|
|
18
|
-
// src/config.ts
|
|
19
|
-
import { setConfig } from "@livechat/developer-studio-ui-react";
|
|
20
|
-
var config = {
|
|
21
|
-
config: void 0
|
|
22
|
-
};
|
|
23
|
-
function setWorkflowsConfig(newConfig) {
|
|
24
|
-
config.config = __spreadValues(__spreadValues({}, config.config), newConfig);
|
|
25
|
-
setConfig(newConfig);
|
|
26
|
-
}
|
|
27
|
-
var getWorkflowsEnv = (key) => {
|
|
28
|
-
return config.config[key];
|
|
29
|
-
};
|
|
30
21
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
setWorkflowsConfig
|
|
22
|
+
__spreadValues,
|
|
23
|
+
__spreadProps
|
|
34
24
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client"
|
|
2
1
|
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __defProps = Object.defineProperties;
|
|
@@ -74,71 +73,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
74
73
|
});
|
|
75
74
|
};
|
|
76
75
|
|
|
77
|
-
// src/tests/selectors.ts
|
|
78
|
-
var WORKFLOWS_TEST_SELECTORS = {
|
|
79
|
-
views: {
|
|
80
|
-
workflows: {
|
|
81
|
-
creator: {
|
|
82
|
-
navbar: {
|
|
83
|
-
activateSwitch: "activate-switch",
|
|
84
|
-
publishButton: "publish-btn",
|
|
85
|
-
editButton: "edit-btn"
|
|
86
|
-
},
|
|
87
|
-
builder: {
|
|
88
|
-
nodes: {
|
|
89
|
-
add: {
|
|
90
|
-
task: {
|
|
91
|
-
button: "add-task-btn"
|
|
92
|
-
},
|
|
93
|
-
trigger: {
|
|
94
|
-
button: "add-trigger-btn"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
forms: {
|
|
99
|
-
integrations: {
|
|
100
|
-
text: {
|
|
101
|
-
info: "info-container",
|
|
102
|
-
button: "start-trial-btn"
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
modals: {
|
|
108
|
-
addTask: {
|
|
109
|
-
wrapper: "add-task-modal",
|
|
110
|
-
taskCard: (key) => `task-option-${key}`,
|
|
111
|
-
taskCategoryButton: (key) => `task-category-${key}`,
|
|
112
|
-
saveButton: "save-task-btn"
|
|
113
|
-
},
|
|
114
|
-
addTrigger: {
|
|
115
|
-
wrapper: "add-trigger-modal",
|
|
116
|
-
saveButton: "save-trigger-btn",
|
|
117
|
-
triggerCard: (key) => `trigger-option-${key}`,
|
|
118
|
-
triggerCategoryButton: (key) => `trigger-category-${key}`
|
|
119
|
-
},
|
|
120
|
-
publish: {
|
|
121
|
-
wrapper: "publish-workflow-modal",
|
|
122
|
-
saveButton: "publish-workflow-btn",
|
|
123
|
-
cancelButton: "cancel-publish-btn"
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
panels: {
|
|
127
|
-
element: {
|
|
128
|
-
wrapper: "element-wrapper"
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
|
|
136
76
|
export {
|
|
137
77
|
__spreadValues,
|
|
138
78
|
__spreadProps,
|
|
139
79
|
__objRest,
|
|
140
80
|
__commonJS,
|
|
141
81
|
__toESM,
|
|
142
|
-
__async
|
|
143
|
-
WORKFLOWS_TEST_SELECTORS
|
|
82
|
+
__async
|
|
144
83
|
};
|
|
@@ -74,63 +74,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
// src/tests/selectors.ts
|
|
78
|
-
var WORKFLOWS_TEST_SELECTORS = {
|
|
79
|
-
views: {
|
|
80
|
-
workflows: {
|
|
81
|
-
creator: {
|
|
82
|
-
navbar: {
|
|
83
|
-
activateSwitch: "activate-switch",
|
|
84
|
-
publishButton: "publish-btn",
|
|
85
|
-
editButton: "edit-btn"
|
|
86
|
-
},
|
|
87
|
-
builder: {
|
|
88
|
-
nodes: {
|
|
89
|
-
add: {
|
|
90
|
-
task: {
|
|
91
|
-
button: "add-task-btn"
|
|
92
|
-
},
|
|
93
|
-
trigger: {
|
|
94
|
-
button: "add-trigger-btn"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
modals: {
|
|
100
|
-
addTask: {
|
|
101
|
-
wrapper: "add-task-modal",
|
|
102
|
-
taskCard: (key) => `task-option-${key}`,
|
|
103
|
-
taskCategoryButton: (key) => `task-category-${key}`,
|
|
104
|
-
saveButton: "save-task-btn"
|
|
105
|
-
},
|
|
106
|
-
addTrigger: {
|
|
107
|
-
wrapper: "add-trigger-modal",
|
|
108
|
-
saveButton: "save-trigger-btn",
|
|
109
|
-
triggerCard: (key) => `trigger-option-${key}`,
|
|
110
|
-
triggerCategoryButton: (key) => `trigger-category-${key}`
|
|
111
|
-
},
|
|
112
|
-
publish: {
|
|
113
|
-
wrapper: "publish-workflow-modal",
|
|
114
|
-
saveButton: "publish-workflow-btn",
|
|
115
|
-
cancelButton: "cancel-publish-btn"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
panels: {
|
|
119
|
-
element: {
|
|
120
|
-
wrapper: "element-wrapper"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
|
|
128
77
|
export {
|
|
129
78
|
__spreadValues,
|
|
130
79
|
__spreadProps,
|
|
131
80
|
__objRest,
|
|
132
81
|
__commonJS,
|
|
133
82
|
__toESM,
|
|
134
|
-
__async
|
|
135
|
-
WORKFLOWS_TEST_SELECTORS
|
|
83
|
+
__async
|
|
136
84
|
};
|