@livechat/platform-workflows 0.0.77 → 0.0.79
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/index.js +30 -26
- package/dist/index.mjs +37 -34
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -13587,31 +13587,33 @@ function AddWorkflowTaskModal({ basePath, onClose }) {
|
|
|
13587
13587
|
const [state, setState] = (0, import_react12.useState)();
|
|
13588
13588
|
const config2 = (0, import_react12.useMemo)(
|
|
13589
13589
|
() => [
|
|
13590
|
-
{
|
|
13591
|
-
|
|
13592
|
-
|
|
13593
|
-
|
|
13594
|
-
|
|
13595
|
-
|
|
13596
|
-
|
|
13597
|
-
|
|
13598
|
-
|
|
13599
|
-
|
|
13600
|
-
|
|
13601
|
-
|
|
13602
|
-
|
|
13603
|
-
|
|
13604
|
-
|
|
13605
|
-
|
|
13606
|
-
|
|
13607
|
-
|
|
13608
|
-
|
|
13609
|
-
|
|
13610
|
-
|
|
13611
|
-
|
|
13612
|
-
|
|
13613
|
-
|
|
13614
|
-
|
|
13590
|
+
// {
|
|
13591
|
+
// name: "system",
|
|
13592
|
+
// displayName: "System tasks",
|
|
13593
|
+
// icon: (
|
|
13594
|
+
// <ProductIcon
|
|
13595
|
+
// center={undefined}
|
|
13596
|
+
// disabled={undefined}
|
|
13597
|
+
// height={5}
|
|
13598
|
+
// product={OTHER_TYPES.SYSTEM}
|
|
13599
|
+
// width={5}
|
|
13600
|
+
// />
|
|
13601
|
+
// ),
|
|
13602
|
+
// values: Object.values(systemTaskConfigs())
|
|
13603
|
+
// .filter(
|
|
13604
|
+
// (x) =>
|
|
13605
|
+
// ![
|
|
13606
|
+
// WorkflowDefinitionTaskType.join as string,
|
|
13607
|
+
// WorkflowDefinitionTaskType.http as string,
|
|
13608
|
+
// ].includes(x.key)
|
|
13609
|
+
// )
|
|
13610
|
+
// .map((x) => ({
|
|
13611
|
+
// key: x.key,
|
|
13612
|
+
// name: x.customization.displayName,
|
|
13613
|
+
// shortDescription: x.customization.shortDescription,
|
|
13614
|
+
// secondaryText: x.customization.description,
|
|
13615
|
+
// })),
|
|
13616
|
+
// },
|
|
13615
13617
|
{
|
|
13616
13618
|
name: "livechat",
|
|
13617
13619
|
displayName: import_developer_studio_api21.IntegrationDisplayNames.LiveChat,
|
|
@@ -17363,7 +17365,9 @@ function GlobalAccounts(props) {
|
|
|
17363
17365
|
}
|
|
17364
17366
|
);
|
|
17365
17367
|
} catch (e) {
|
|
17366
|
-
notifications.
|
|
17368
|
+
notifications.addErrorToast(
|
|
17369
|
+
`Couldn't activate ${props.product}`
|
|
17370
|
+
);
|
|
17367
17371
|
}
|
|
17368
17372
|
}),
|
|
17369
17373
|
type: "submit",
|
package/dist/index.mjs
CHANGED
|
@@ -11417,8 +11417,7 @@ import {
|
|
|
11417
11417
|
} from "@livechat/design-system-react-components";
|
|
11418
11418
|
import {
|
|
11419
11419
|
IntegrationDisplayNames as IntegrationDisplayNames9,
|
|
11420
|
-
IntegrationNames as IntegrationNames13
|
|
11421
|
-
WorkflowDefinitionTaskType as WorkflowDefinitionTaskType13
|
|
11420
|
+
IntegrationNames as IntegrationNames13
|
|
11422
11421
|
} from "@livechat/developer-studio-api";
|
|
11423
11422
|
import {
|
|
11424
11423
|
Column as Column3,
|
|
@@ -13671,31 +13670,33 @@ function AddWorkflowTaskModal({ basePath, onClose }) {
|
|
|
13671
13670
|
const [state, setState] = useState5();
|
|
13672
13671
|
const config2 = useMemo3(
|
|
13673
13672
|
() => [
|
|
13674
|
-
{
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
|
|
13685
|
-
|
|
13686
|
-
|
|
13687
|
-
|
|
13688
|
-
|
|
13689
|
-
|
|
13690
|
-
|
|
13691
|
-
|
|
13692
|
-
|
|
13693
|
-
|
|
13694
|
-
|
|
13695
|
-
|
|
13696
|
-
|
|
13697
|
-
|
|
13698
|
-
|
|
13673
|
+
// {
|
|
13674
|
+
// name: "system",
|
|
13675
|
+
// displayName: "System tasks",
|
|
13676
|
+
// icon: (
|
|
13677
|
+
// <ProductIcon
|
|
13678
|
+
// center={undefined}
|
|
13679
|
+
// disabled={undefined}
|
|
13680
|
+
// height={5}
|
|
13681
|
+
// product={OTHER_TYPES.SYSTEM}
|
|
13682
|
+
// width={5}
|
|
13683
|
+
// />
|
|
13684
|
+
// ),
|
|
13685
|
+
// values: Object.values(systemTaskConfigs())
|
|
13686
|
+
// .filter(
|
|
13687
|
+
// (x) =>
|
|
13688
|
+
// ![
|
|
13689
|
+
// WorkflowDefinitionTaskType.join as string,
|
|
13690
|
+
// WorkflowDefinitionTaskType.http as string,
|
|
13691
|
+
// ].includes(x.key)
|
|
13692
|
+
// )
|
|
13693
|
+
// .map((x) => ({
|
|
13694
|
+
// key: x.key,
|
|
13695
|
+
// name: x.customization.displayName,
|
|
13696
|
+
// shortDescription: x.customization.shortDescription,
|
|
13697
|
+
// secondaryText: x.customization.description,
|
|
13698
|
+
// })),
|
|
13699
|
+
// },
|
|
13699
13700
|
{
|
|
13700
13701
|
name: "livechat",
|
|
13701
13702
|
displayName: IntegrationDisplayNames9.LiveChat,
|
|
@@ -17590,7 +17591,9 @@ function GlobalAccounts(props) {
|
|
|
17590
17591
|
}
|
|
17591
17592
|
);
|
|
17592
17593
|
} catch (e) {
|
|
17593
|
-
notifications.
|
|
17594
|
+
notifications.addErrorToast(
|
|
17595
|
+
`Couldn't activate ${props.product}`
|
|
17596
|
+
);
|
|
17594
17597
|
}
|
|
17595
17598
|
}),
|
|
17596
17599
|
type: "submit",
|
|
@@ -20742,7 +20745,7 @@ var Edges_default = CustomEdge_default;
|
|
|
20742
20745
|
import { MarkerType } from "reactflow";
|
|
20743
20746
|
import ElkConstructor from "elkjs";
|
|
20744
20747
|
import { DesignToken as DesignToken28 } from "@livechat/design-system-react-components";
|
|
20745
|
-
import { WorkflowDefinitionTaskType as
|
|
20748
|
+
import { WorkflowDefinitionTaskType as WorkflowDefinitionTaskType13 } from "@livechat/developer-studio-api";
|
|
20746
20749
|
var elk = new ElkConstructor({
|
|
20747
20750
|
defaultLayoutOptions: {
|
|
20748
20751
|
"elk.algorithm": "layered",
|
|
@@ -20799,9 +20802,9 @@ var convertToNodes = (tasks) => {
|
|
|
20799
20802
|
);
|
|
20800
20803
|
const { parentSource, parentTargets } = sourceAndTargets != null ? sourceAndTargets : {};
|
|
20801
20804
|
switch (task2.type) {
|
|
20802
|
-
case
|
|
20803
|
-
case
|
|
20804
|
-
case
|
|
20805
|
+
case WorkflowDefinitionTaskType13.terminate:
|
|
20806
|
+
case WorkflowDefinitionTaskType13.http:
|
|
20807
|
+
case WorkflowDefinitionTaskType13.join:
|
|
20805
20808
|
nodes.push(
|
|
20806
20809
|
buildNode(
|
|
20807
20810
|
{
|
|
@@ -20820,7 +20823,7 @@ var convertToNodes = (tasks) => {
|
|
|
20820
20823
|
)
|
|
20821
20824
|
);
|
|
20822
20825
|
return nodes;
|
|
20823
|
-
case
|
|
20826
|
+
case WorkflowDefinitionTaskType13.switch:
|
|
20824
20827
|
nodes.push(
|
|
20825
20828
|
buildNode(
|
|
20826
20829
|
{
|
|
@@ -20887,7 +20890,7 @@ var convertToNodes = (tasks) => {
|
|
|
20887
20890
|
}
|
|
20888
20891
|
);
|
|
20889
20892
|
return nodes;
|
|
20890
|
-
case
|
|
20893
|
+
case WorkflowDefinitionTaskType13.forkJoin:
|
|
20891
20894
|
nodes.push(
|
|
20892
20895
|
buildNode(
|
|
20893
20896
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/platform-workflows",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.79",
|
|
4
4
|
"description": "Text Platform | Workflows",
|
|
5
5
|
"author": "Wojciech Dudek",
|
|
6
6
|
"license": "MIT",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"validator": "^13.12.0",
|
|
83
83
|
"web-worker": "^1.3.0",
|
|
84
84
|
"@livechat/developer-studio-api": "3.4.9",
|
|
85
|
-
"@livechat/
|
|
86
|
-
"@livechat/
|
|
85
|
+
"@livechat/developer-studio-ui-react": "1.0.13",
|
|
86
|
+
"@livechat/platform-integrations": "0.0.45"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@tanstack/react-query": "4.36.1",
|