@livechat/platform-workflows 0.0.88 → 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/index.js +20 -7
- package/dist/index.mjs +156 -143
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -4090,9 +4090,9 @@ var helpdeskTaskConfigs = () => ({
|
|
|
4090
4090
|
input: WORKFLOW_HTTP_TASK_INPUT_SCHEMA(
|
|
4091
4091
|
{
|
|
4092
4092
|
type: "object",
|
|
4093
|
-
required: ["
|
|
4093
|
+
required: ["tagIDs"],
|
|
4094
4094
|
properties: {
|
|
4095
|
-
|
|
4095
|
+
tagIDs: {
|
|
4096
4096
|
type: "array",
|
|
4097
4097
|
title: "Tag IDs",
|
|
4098
4098
|
items: {
|
|
@@ -4353,7 +4353,7 @@ var helpdeskTaskTemplates = () => ({
|
|
|
4353
4353
|
)}/functions/add-tags-to-helpdesk-ticket?id=#{ticket_id}`,
|
|
4354
4354
|
method: "POST",
|
|
4355
4355
|
body: {
|
|
4356
|
-
|
|
4356
|
+
tagIDs: ["#{tag_id}"]
|
|
4357
4357
|
},
|
|
4358
4358
|
headers: {
|
|
4359
4359
|
Accept: "application/json",
|
|
@@ -17541,10 +17541,12 @@ function DynamicCustomStringField(props) {
|
|
|
17541
17541
|
// src/views/Workflows/Creator/Builder/Forms/Schema/overrides/Fields/CustomString/Modes/Predefined.tsx
|
|
17542
17542
|
var import_react35 = require("react");
|
|
17543
17543
|
var import_design_system_react_components19 = require("@livechat/design-system-react-components");
|
|
17544
|
-
var pickerCustomStyles = css`
|
|
17544
|
+
var pickerCustomStyles = (readonly) => css`
|
|
17545
17545
|
flex: 1;
|
|
17546
17546
|
button {
|
|
17547
|
-
color: var(
|
|
17547
|
+
color: var(
|
|
17548
|
+
${readonly ? import_design_system_react_components19.DesignToken.ContentBasicDisabled : import_design_system_react_components19.DesignToken.ContentBasicPrimary}
|
|
17549
|
+
);
|
|
17548
17550
|
}
|
|
17549
17551
|
`;
|
|
17550
17552
|
function PredefinedCustomStringField(props) {
|
|
@@ -17565,7 +17567,7 @@ function PredefinedCustomStringField(props) {
|
|
|
17565
17567
|
return /* @__PURE__ */ jsx4(
|
|
17566
17568
|
import_design_system_react_components19.Picker,
|
|
17567
17569
|
{
|
|
17568
|
-
css: pickerCustomStyles,
|
|
17570
|
+
css: pickerCustomStyles(props.readonly),
|
|
17569
17571
|
disabled: props.readonly,
|
|
17570
17572
|
error: Boolean((_a = props.rawErrors) == null ? void 0 : _a.length),
|
|
17571
17573
|
hideClearButton: true,
|
|
@@ -17659,7 +17661,14 @@ function CustomStringField(props) {
|
|
|
17659
17661
|
{
|
|
17660
17662
|
options: modeSelectorOptions,
|
|
17661
17663
|
selectedOptions: [isPredefinedMode ? "predefined" : "custom"],
|
|
17662
|
-
triggerRenderer: /* @__PURE__ */ jsx4(
|
|
17664
|
+
triggerRenderer: /* @__PURE__ */ jsx4(
|
|
17665
|
+
import_design_system_react_components20.Button,
|
|
17666
|
+
{
|
|
17667
|
+
icon: /* @__PURE__ */ jsx4(import_design_system_react_components20.Icon, { source: import_design_system_icons10.MoreHoriz }),
|
|
17668
|
+
kind: "secondary",
|
|
17669
|
+
disabled: props.readonly
|
|
17670
|
+
}
|
|
17671
|
+
)
|
|
17663
17672
|
}
|
|
17664
17673
|
)
|
|
17665
17674
|
] });
|
|
@@ -17678,6 +17687,7 @@ function CustomAddButton(props) {
|
|
|
17678
17687
|
onClick: (e) => {
|
|
17679
17688
|
onClick && onClick(e);
|
|
17680
17689
|
},
|
|
17690
|
+
disabled: props.disabled,
|
|
17681
17691
|
size: "medium",
|
|
17682
17692
|
children: "Add property"
|
|
17683
17693
|
}
|
|
@@ -17696,6 +17706,7 @@ function CustomRemoveButton(props) {
|
|
|
17696
17706
|
`,
|
|
17697
17707
|
icon: /* @__PURE__ */ jsx4(import_design_system_react_components21.Icon, { source: import_design_system_icons11.Delete }),
|
|
17698
17708
|
kind: "text",
|
|
17709
|
+
disabled: props.disabled,
|
|
17699
17710
|
onClick: (e) => {
|
|
17700
17711
|
onClick && onClick(e);
|
|
17701
17712
|
}
|
|
@@ -17715,6 +17726,7 @@ function CustomMoveUpButton(props) {
|
|
|
17715
17726
|
`,
|
|
17716
17727
|
icon: /* @__PURE__ */ jsx4(import_design_system_react_components21.Icon, { source: import_design_system_icons11.ArrowUpward }),
|
|
17717
17728
|
kind: "text",
|
|
17729
|
+
disabled: props.disabled,
|
|
17718
17730
|
onClick: (e) => {
|
|
17719
17731
|
onClick && onClick(e);
|
|
17720
17732
|
}
|
|
@@ -17734,6 +17746,7 @@ function CustomMoveDownButton(props) {
|
|
|
17734
17746
|
`,
|
|
17735
17747
|
icon: /* @__PURE__ */ jsx4(import_design_system_react_components21.Icon, { source: import_design_system_icons11.ArrowDownward }),
|
|
17736
17748
|
kind: "text",
|
|
17749
|
+
disabled: props.disabled,
|
|
17737
17750
|
onClick: (e) => {
|
|
17738
17751
|
onClick && onClick(e);
|
|
17739
17752
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -4107,9 +4107,9 @@ var helpdeskTaskConfigs = () => ({
|
|
|
4107
4107
|
input: WORKFLOW_HTTP_TASK_INPUT_SCHEMA(
|
|
4108
4108
|
{
|
|
4109
4109
|
type: "object",
|
|
4110
|
-
required: ["
|
|
4110
|
+
required: ["tagIDs"],
|
|
4111
4111
|
properties: {
|
|
4112
|
-
|
|
4112
|
+
tagIDs: {
|
|
4113
4113
|
type: "array",
|
|
4114
4114
|
title: "Tag IDs",
|
|
4115
4115
|
items: {
|
|
@@ -4370,7 +4370,7 @@ var helpdeskTaskTemplates = () => ({
|
|
|
4370
4370
|
)}/functions/add-tags-to-helpdesk-ticket?id=#{ticket_id}`,
|
|
4371
4371
|
method: "POST",
|
|
4372
4372
|
body: {
|
|
4373
|
-
|
|
4373
|
+
tagIDs: ["#{tag_id}"]
|
|
4374
4374
|
},
|
|
4375
4375
|
headers: {
|
|
4376
4376
|
Accept: "application/json",
|
|
@@ -16313,7 +16313,7 @@ tags.forEach(function(tagName) {
|
|
|
16313
16313
|
// src/views/Workflows/Creator/Modals/Preview/Modal.tsx
|
|
16314
16314
|
import {
|
|
16315
16315
|
Button as Button23,
|
|
16316
|
-
DesignToken as
|
|
16316
|
+
DesignToken as DesignToken32,
|
|
16317
16317
|
Modal as Modal6,
|
|
16318
16318
|
ModalHeader as ModalHeader4,
|
|
16319
16319
|
RadiusToken as RadiusToken15,
|
|
@@ -16330,7 +16330,7 @@ import ReactFlow, {
|
|
|
16330
16330
|
useEdgesState,
|
|
16331
16331
|
useNodesState
|
|
16332
16332
|
} from "reactflow";
|
|
16333
|
-
import { DesignToken as
|
|
16333
|
+
import { DesignToken as DesignToken31 } from "@livechat/design-system-react-components";
|
|
16334
16334
|
|
|
16335
16335
|
// src/views/Workflows/Creator/Builder/Nodes/CustomNodes/Add/Task/Task.tsx
|
|
16336
16336
|
import { memo } from "react";
|
|
@@ -17715,11 +17715,13 @@ function DynamicCustomStringField(props) {
|
|
|
17715
17715
|
|
|
17716
17716
|
// src/views/Workflows/Creator/Builder/Forms/Schema/overrides/Fields/CustomString/Modes/Predefined.tsx
|
|
17717
17717
|
import { useEffect as useEffect8, useState as useState11 } from "react";
|
|
17718
|
-
import { Picker } from "@livechat/design-system-react-components";
|
|
17719
|
-
var pickerCustomStyles = css`
|
|
17718
|
+
import { DesignToken as DesignToken11, Picker } from "@livechat/design-system-react-components";
|
|
17719
|
+
var pickerCustomStyles = (readonly) => css`
|
|
17720
17720
|
flex: 1;
|
|
17721
17721
|
button {
|
|
17722
|
-
color: var(
|
|
17722
|
+
color: var(
|
|
17723
|
+
${readonly ? DesignToken11.ContentBasicDisabled : DesignToken11.ContentBasicPrimary}
|
|
17724
|
+
);
|
|
17723
17725
|
}
|
|
17724
17726
|
`;
|
|
17725
17727
|
function PredefinedCustomStringField(props) {
|
|
@@ -17740,7 +17742,7 @@ function PredefinedCustomStringField(props) {
|
|
|
17740
17742
|
return /* @__PURE__ */ jsx4(
|
|
17741
17743
|
Picker,
|
|
17742
17744
|
{
|
|
17743
|
-
css: pickerCustomStyles,
|
|
17745
|
+
css: pickerCustomStyles(props.readonly),
|
|
17744
17746
|
disabled: props.readonly,
|
|
17745
17747
|
error: Boolean((_a = props.rawErrors) == null ? void 0 : _a.length),
|
|
17746
17748
|
hideClearButton: true,
|
|
@@ -17834,7 +17836,14 @@ function CustomStringField(props) {
|
|
|
17834
17836
|
{
|
|
17835
17837
|
options: modeSelectorOptions,
|
|
17836
17838
|
selectedOptions: [isPredefinedMode ? "predefined" : "custom"],
|
|
17837
|
-
triggerRenderer: /* @__PURE__ */ jsx4(
|
|
17839
|
+
triggerRenderer: /* @__PURE__ */ jsx4(
|
|
17840
|
+
Button11,
|
|
17841
|
+
{
|
|
17842
|
+
icon: /* @__PURE__ */ jsx4(Icon9, { source: MoreHoriz }),
|
|
17843
|
+
kind: "secondary",
|
|
17844
|
+
disabled: props.readonly
|
|
17845
|
+
}
|
|
17846
|
+
)
|
|
17838
17847
|
}
|
|
17839
17848
|
)
|
|
17840
17849
|
] });
|
|
@@ -17862,6 +17871,7 @@ function CustomAddButton(props) {
|
|
|
17862
17871
|
onClick: (e) => {
|
|
17863
17872
|
onClick && onClick(e);
|
|
17864
17873
|
},
|
|
17874
|
+
disabled: props.disabled,
|
|
17865
17875
|
size: "medium",
|
|
17866
17876
|
children: "Add property"
|
|
17867
17877
|
}
|
|
@@ -17880,6 +17890,7 @@ function CustomRemoveButton(props) {
|
|
|
17880
17890
|
`,
|
|
17881
17891
|
icon: /* @__PURE__ */ jsx4(Icon10, { source: Delete }),
|
|
17882
17892
|
kind: "text",
|
|
17893
|
+
disabled: props.disabled,
|
|
17883
17894
|
onClick: (e) => {
|
|
17884
17895
|
onClick && onClick(e);
|
|
17885
17896
|
}
|
|
@@ -17899,6 +17910,7 @@ function CustomMoveUpButton(props) {
|
|
|
17899
17910
|
`,
|
|
17900
17911
|
icon: /* @__PURE__ */ jsx4(Icon10, { source: ArrowUpward }),
|
|
17901
17912
|
kind: "text",
|
|
17913
|
+
disabled: props.disabled,
|
|
17902
17914
|
onClick: (e) => {
|
|
17903
17915
|
onClick && onClick(e);
|
|
17904
17916
|
}
|
|
@@ -17918,6 +17930,7 @@ function CustomMoveDownButton(props) {
|
|
|
17918
17930
|
`,
|
|
17919
17931
|
icon: /* @__PURE__ */ jsx4(Icon10, { source: ArrowDownward }),
|
|
17920
17932
|
kind: "text",
|
|
17933
|
+
disabled: props.disabled,
|
|
17921
17934
|
onClick: (e) => {
|
|
17922
17935
|
onClick && onClick(e);
|
|
17923
17936
|
}
|
|
@@ -17931,7 +17944,7 @@ import { getTemplate as getTemplate2, getUiOptions as getUiOptions2 } from "@rjs
|
|
|
17931
17944
|
// src/views/Workflows/Creator/Builder/Forms/Schema/overrides/Templates/Other/CustomArrayFieldHeader.tsx
|
|
17932
17945
|
import { getTemplate, getUiOptions } from "@rjsf/utils";
|
|
17933
17946
|
import {
|
|
17934
|
-
DesignToken as
|
|
17947
|
+
DesignToken as DesignToken12,
|
|
17935
17948
|
SpacingToken as SpacingToken13
|
|
17936
17949
|
} from "@livechat/design-system-react-components";
|
|
17937
17950
|
import { Row as Row8 } from "@livechat/developer-studio-ui-react";
|
|
@@ -17984,7 +17997,7 @@ function CustomArrayFieldHeader(props) {
|
|
|
17984
17997
|
font-size: 13px;
|
|
17985
17998
|
font-weight: 400;
|
|
17986
17999
|
line-height: 16px;
|
|
17987
|
-
color: var(${
|
|
18000
|
+
color: var(${DesignToken12.ContentBasicSecondary});
|
|
17988
18001
|
`,
|
|
17989
18002
|
children: "optional"
|
|
17990
18003
|
}
|
|
@@ -18102,7 +18115,7 @@ import {
|
|
|
18102
18115
|
// src/views/Workflows/Creator/Builder/Forms/Schema/overrides/Templates/Other/CustomFieldHeader.tsx
|
|
18103
18116
|
import { descriptionId as descriptionId2, getTemplate as getTemplate3, getUiOptions as getUiOptions3, titleId as titleId2 } from "@rjsf/utils";
|
|
18104
18117
|
import {
|
|
18105
|
-
DesignToken as
|
|
18118
|
+
DesignToken as DesignToken13,
|
|
18106
18119
|
SpacingToken as SpacingToken14
|
|
18107
18120
|
} from "@livechat/design-system-react-components";
|
|
18108
18121
|
import { Row as Row9 } from "@livechat/developer-studio-ui-react";
|
|
@@ -18110,7 +18123,7 @@ var OptionalWrapper = newStyled.div`
|
|
|
18110
18123
|
font-size: 13px;
|
|
18111
18124
|
font-weight: 400;
|
|
18112
18125
|
line-height: 16px;
|
|
18113
|
-
color: var(${
|
|
18126
|
+
color: var(${DesignToken13.ContentBasicSecondary});
|
|
18114
18127
|
`;
|
|
18115
18128
|
function CustomFieldHeader(props) {
|
|
18116
18129
|
const {
|
|
@@ -18306,7 +18319,7 @@ function CustomWrapIfAdditionalTemplate(props) {
|
|
|
18306
18319
|
// src/views/Workflows/Creator/Builder/Forms/Schema/overrides/Templates/CustomObjectField.tsx
|
|
18307
18320
|
import { useState as useState13 } from "react";
|
|
18308
18321
|
import { ADDITIONAL_PROPERTY_FLAG as ADDITIONAL_PROPERTY_FLAG3, canExpand } from "@rjsf/utils";
|
|
18309
|
-
import { Button as Button13, DesignToken as
|
|
18322
|
+
import { Button as Button13, DesignToken as DesignToken14 } from "@livechat/design-system-react-components";
|
|
18310
18323
|
function CustomObjectFieldTemplate(props) {
|
|
18311
18324
|
const {
|
|
18312
18325
|
description,
|
|
@@ -18371,7 +18384,7 @@ function CustomObjectFieldTemplate(props) {
|
|
|
18371
18384
|
Button13,
|
|
18372
18385
|
{
|
|
18373
18386
|
css: css`
|
|
18374
|
-
color: var(${
|
|
18387
|
+
color: var(${DesignToken14.ContentBasicPrimary});
|
|
18375
18388
|
`,
|
|
18376
18389
|
kind: "link-light",
|
|
18377
18390
|
onClick: () => {
|
|
@@ -18692,7 +18705,7 @@ var CustomToolbar_default = Toolbar_default;
|
|
|
18692
18705
|
|
|
18693
18706
|
// src/views/Workflows/Creator/Builder/Nodes/CustomNodes/Custom.tsx
|
|
18694
18707
|
import {
|
|
18695
|
-
DesignToken as
|
|
18708
|
+
DesignToken as DesignToken15,
|
|
18696
18709
|
RadiusToken as RadiusToken6
|
|
18697
18710
|
} from "@livechat/design-system-react-components";
|
|
18698
18711
|
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
@@ -18702,8 +18715,8 @@ var Wrapper2 = newStyled.div`
|
|
|
18702
18715
|
|
|
18703
18716
|
.react-flow__handle {
|
|
18704
18717
|
transition: background-color 0.15s ease-in-out 0s;
|
|
18705
|
-
background: var(${
|
|
18706
|
-
border: 1px solid var(${
|
|
18718
|
+
background: var(${DesignToken15.SurfacePrimaryDefault}) !important;
|
|
18719
|
+
border: 1px solid var(${DesignToken15.BorderBasicPrimary}) !important;
|
|
18707
18720
|
pointer-events: all;
|
|
18708
18721
|
cursor: pointer;
|
|
18709
18722
|
border-radius: var(${RadiusToken6[1]}) !important;
|
|
@@ -18796,7 +18809,7 @@ var Node_default = memo4(ForkJoinNode);
|
|
|
18796
18809
|
// src/views/Workflows/Creator/Builder/Nodes/CustomNodes/HttpNode/Base.tsx
|
|
18797
18810
|
import { Automation } from "@livechat/design-system-icons";
|
|
18798
18811
|
import {
|
|
18799
|
-
DesignToken as
|
|
18812
|
+
DesignToken as DesignToken16,
|
|
18800
18813
|
Icon as Icon14,
|
|
18801
18814
|
RadiusToken as RadiusToken7,
|
|
18802
18815
|
ShadowToken as ShadowToken2,
|
|
@@ -18805,10 +18818,10 @@ import {
|
|
|
18805
18818
|
import { IntegrationNames as IntegrationNames15 } from "@livechat/developer-studio-api";
|
|
18806
18819
|
import { Column as Column7 } from "@livechat/developer-studio-ui-react";
|
|
18807
18820
|
var Node2 = newStyled.div`
|
|
18808
|
-
color: var(${
|
|
18809
|
-
background-color: ${({ editing }) => editing ? `var(${
|
|
18821
|
+
color: var(${DesignToken16.ContentBasicPrimary});
|
|
18822
|
+
background-color: ${({ editing }) => editing ? `var(${DesignToken16.SurfacePrimaryActive})` : `var(${DesignToken16.SurfacePrimaryDefault})`};
|
|
18810
18823
|
border: 1px solid
|
|
18811
|
-
${({ editing, hasErrors }) => hasErrors ? `var(${
|
|
18824
|
+
${({ editing, hasErrors }) => hasErrors ? `var(${DesignToken16.BorderBasicNegative})` : editing ? `var(${DesignToken16.ActionPrimaryDefault})` : `var(${DesignToken16.BorderBasicSecondary})`};
|
|
18812
18825
|
border-radius: var(${RadiusToken7[3]});
|
|
18813
18826
|
width: ${DEFAULT_NODE_WIDTH.HTTP}px;
|
|
18814
18827
|
|
|
@@ -18820,7 +18833,7 @@ var Node2 = newStyled.div`
|
|
|
18820
18833
|
transition: 0.15s ease-in-out 0s;
|
|
18821
18834
|
|
|
18822
18835
|
&:hover {
|
|
18823
|
-
background: var(${
|
|
18836
|
+
background: var(${DesignToken16.SurfacePrimaryHover});
|
|
18824
18837
|
box-shadow: var(${ShadowToken2.Float});
|
|
18825
18838
|
}
|
|
18826
18839
|
`;
|
|
@@ -19298,17 +19311,17 @@ var Node_default2 = memo5(HttpNode);
|
|
|
19298
19311
|
// src/views/Workflows/Creator/Builder/Nodes/CustomNodes/JoinNode/Base.tsx
|
|
19299
19312
|
import { DirectionsSignOff } from "@livechat/design-system-icons";
|
|
19300
19313
|
import {
|
|
19301
|
-
DesignToken as
|
|
19314
|
+
DesignToken as DesignToken17,
|
|
19302
19315
|
Icon as Icon16,
|
|
19303
19316
|
RadiusToken as RadiusToken8,
|
|
19304
19317
|
ShadowToken as ShadowToken3,
|
|
19305
19318
|
SpacingToken as SpacingToken19
|
|
19306
19319
|
} from "@livechat/design-system-react-components";
|
|
19307
19320
|
var Node3 = newStyled.div`
|
|
19308
|
-
color: var(${
|
|
19309
|
-
background-color: ${({ editing }) => editing ? `var(${
|
|
19321
|
+
color: var(${DesignToken17.ContentBasicPrimary});
|
|
19322
|
+
background-color: ${({ editing }) => editing ? `var(${DesignToken17.SurfacePrimaryActive})` : `var(${DesignToken17.Background01})`};
|
|
19310
19323
|
border: 1px solid
|
|
19311
|
-
${({ editing, hasErrors }) => hasErrors ? `var(${
|
|
19324
|
+
${({ editing, hasErrors }) => hasErrors ? `var(${DesignToken17.BorderBasicNegative})` : editing ? `var(${DesignToken17.ActionPrimaryDefault})` : `var(${DesignToken17.BorderBasicSecondary})`};
|
|
19312
19325
|
border-radius: var(${RadiusToken8[3]});
|
|
19313
19326
|
width: ${DEFAULT_NODE_WIDTH.JOIN}px;
|
|
19314
19327
|
|
|
@@ -19320,7 +19333,7 @@ var Node3 = newStyled.div`
|
|
|
19320
19333
|
transition: 0.15s ease-in-out 0s;
|
|
19321
19334
|
|
|
19322
19335
|
&:hover {
|
|
19323
|
-
background: var(${
|
|
19336
|
+
background: var(${DesignToken17.SurfacePrimaryHover});
|
|
19324
19337
|
box-shadow: var(${ShadowToken3.Float});
|
|
19325
19338
|
}
|
|
19326
19339
|
`;
|
|
@@ -19458,17 +19471,17 @@ var Node_default3 = memo6(JoinNode);
|
|
|
19458
19471
|
// src/views/Workflows/Creator/Builder/Nodes/CustomNodes/SwitchNode/Base.tsx
|
|
19459
19472
|
import { Channels } from "@livechat/design-system-icons";
|
|
19460
19473
|
import {
|
|
19461
|
-
DesignToken as
|
|
19474
|
+
DesignToken as DesignToken18,
|
|
19462
19475
|
Icon as Icon17,
|
|
19463
19476
|
RadiusToken as RadiusToken9,
|
|
19464
19477
|
ShadowToken as ShadowToken4,
|
|
19465
19478
|
SpacingToken as SpacingToken20
|
|
19466
19479
|
} from "@livechat/design-system-react-components";
|
|
19467
19480
|
var Node4 = newStyled.div`
|
|
19468
|
-
color: var(${
|
|
19469
|
-
background-color: ${({ editing }) => editing ? `var(${
|
|
19481
|
+
color: var(${DesignToken18.ContentBasicPrimary});
|
|
19482
|
+
background-color: ${({ editing }) => editing ? `var(${DesignToken18.SurfacePrimaryActive})` : `var(${DesignToken18.SurfacePrimaryDefault})`};
|
|
19470
19483
|
border: 1px solid
|
|
19471
|
-
${({ editing, hasErrors }) => hasErrors ? `var(${
|
|
19484
|
+
${({ editing, hasErrors }) => hasErrors ? `var(${DesignToken18.BorderBasicNegative})` : editing ? `var(${DesignToken18.ActionPrimaryDefault})` : `var(${DesignToken18.BorderBasicSecondary})`};
|
|
19472
19485
|
border-radius: var(${RadiusToken9[3]});
|
|
19473
19486
|
width: ${({ source }) => source ? `${DEFAULT_NODE_WIDTH.default}px` : `${DEFAULT_NODE_WIDTH.SWITCH}px`};
|
|
19474
19487
|
height: ${DEFAULT_NODE_HEIGHT.SWITCH}px;
|
|
@@ -19480,7 +19493,7 @@ var Node4 = newStyled.div`
|
|
|
19480
19493
|
transition: 0.15s ease-in-out 0s;
|
|
19481
19494
|
|
|
19482
19495
|
&:hover {
|
|
19483
|
-
background: var(${
|
|
19496
|
+
background: var(${DesignToken18.SurfacePrimaryHover});
|
|
19484
19497
|
box-shadow: var(${ShadowToken4.Float});
|
|
19485
19498
|
}
|
|
19486
19499
|
`;
|
|
@@ -19599,7 +19612,7 @@ var Form_default5 = SwitchNodeForm;
|
|
|
19599
19612
|
import { memo as memo7, useState as useState17 } from "react";
|
|
19600
19613
|
import { Handle as Handle5, Position as Position7 } from "reactflow";
|
|
19601
19614
|
import {
|
|
19602
|
-
DesignToken as
|
|
19615
|
+
DesignToken as DesignToken19,
|
|
19603
19616
|
ShadowToken as ShadowToken5
|
|
19604
19617
|
} from "@livechat/design-system-react-components";
|
|
19605
19618
|
var handlerWrapperCss = css`
|
|
@@ -19609,7 +19622,7 @@ var handlerWrapperCss = css`
|
|
|
19609
19622
|
|
|
19610
19623
|
&:hover {
|
|
19611
19624
|
> div:nth-of-type(3) {
|
|
19612
|
-
background: var(${
|
|
19625
|
+
background: var(${DesignToken19.SurfacePrimaryHover});
|
|
19613
19626
|
box-shadow: var(${ShadowToken5.Float});
|
|
19614
19627
|
}
|
|
19615
19628
|
}
|
|
@@ -19711,7 +19724,7 @@ var Node_default4 = memo7(SwitchNode);
|
|
|
19711
19724
|
// src/views/Workflows/Creator/Builder/Nodes/CustomNodes/TerminateNode/Base.tsx
|
|
19712
19725
|
import { ArrowBarToRight } from "@livechat/design-system-icons";
|
|
19713
19726
|
import {
|
|
19714
|
-
DesignToken as
|
|
19727
|
+
DesignToken as DesignToken20,
|
|
19715
19728
|
Icon as Icon18,
|
|
19716
19729
|
ShadowToken as ShadowToken6,
|
|
19717
19730
|
SpacingToken as SpacingToken21
|
|
@@ -19719,10 +19732,10 @@ import {
|
|
|
19719
19732
|
import { Column as Column10 } from "@livechat/developer-studio-ui-react";
|
|
19720
19733
|
import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
19721
19734
|
var Node5 = newStyled.div`
|
|
19722
|
-
color: var(${
|
|
19723
|
-
background-color: ${({ editing }) => editing ? `var(${
|
|
19735
|
+
color: var(${DesignToken20.ContentBasicPrimary});
|
|
19736
|
+
background-color: ${({ editing }) => editing ? `var(${DesignToken20.SurfacePrimaryActive})` : `var(${DesignToken20.SurfacePrimaryDefault})`};
|
|
19724
19737
|
border: 1px solid
|
|
19725
|
-
${({ hasErrors }) => !hasErrors ? `var(${
|
|
19738
|
+
${({ hasErrors }) => !hasErrors ? `var(${DesignToken20.BorderBasicSecondary})` : `var(${DesignToken20.BorderBasicNegative})`};
|
|
19726
19739
|
border-radius: 50%;
|
|
19727
19740
|
width: ${DEFAULT_NODE_WIDTH.TERMINATE}px;
|
|
19728
19741
|
height: ${DEFAULT_NODE_HEIGHT.TERMINATE}px;
|
|
@@ -19733,7 +19746,7 @@ var Node5 = newStyled.div`
|
|
|
19733
19746
|
position: relative;
|
|
19734
19747
|
transition: 0.15s ease-in-out 0s;
|
|
19735
19748
|
&:hover {
|
|
19736
|
-
background: var(${
|
|
19749
|
+
background: var(${DesignToken20.SurfacePrimaryHover});
|
|
19737
19750
|
box-shadow: var(${ShadowToken6.Float});
|
|
19738
19751
|
}
|
|
19739
19752
|
`;
|
|
@@ -19872,17 +19885,17 @@ var Node_default5 = memo8(TerminateNode);
|
|
|
19872
19885
|
|
|
19873
19886
|
// src/views/Workflows/Creator/Builder/Nodes/CustomNodes/TriggerNode/Base.tsx
|
|
19874
19887
|
import {
|
|
19875
|
-
DesignToken as
|
|
19888
|
+
DesignToken as DesignToken21,
|
|
19876
19889
|
ShadowToken as ShadowToken7,
|
|
19877
19890
|
SpacingToken as SpacingToken22
|
|
19878
19891
|
} from "@livechat/design-system-react-components";
|
|
19879
19892
|
import { IntegrationNames as IntegrationNames17 } from "@livechat/developer-studio-api";
|
|
19880
19893
|
import { Column as Column11 } from "@livechat/developer-studio-ui-react";
|
|
19881
19894
|
var Node6 = newStyled.div`
|
|
19882
|
-
color: var(${
|
|
19883
|
-
background-color: ${({ editing }) => editing ? `var(${
|
|
19895
|
+
color: var(${DesignToken21.ContentBasicPrimary});
|
|
19896
|
+
background-color: ${({ editing }) => editing ? `var(${DesignToken21.SurfacePrimaryActive})` : `var(${DesignToken21.SurfacePrimaryDefault})`};
|
|
19884
19897
|
border: 1px solid
|
|
19885
|
-
${({ editing, hasErrors }) => hasErrors ? `var(${
|
|
19898
|
+
${({ editing, hasErrors }) => hasErrors ? `var(${DesignToken21.BorderBasicNegative})` : editing ? `var(${DesignToken21.ActionPrimaryDefault})` : `var(${DesignToken21.BorderBasicSecondary})`};
|
|
19886
19899
|
border-radius: 50px;
|
|
19887
19900
|
width: ${DEFAULT_NODE_WIDTH.HTTP}px;
|
|
19888
19901
|
|
|
@@ -19895,7 +19908,7 @@ var Node6 = newStyled.div`
|
|
|
19895
19908
|
padding: 0 var(${SpacingToken22.Spacing3});
|
|
19896
19909
|
|
|
19897
19910
|
&:hover {
|
|
19898
|
-
background: var(${
|
|
19911
|
+
background: var(${DesignToken21.SurfacePrimaryHover});
|
|
19899
19912
|
box-shadow: var(${ShadowToken7.Float});
|
|
19900
19913
|
}
|
|
19901
19914
|
`;
|
|
@@ -19988,34 +20001,34 @@ var Base_default6 = TriggerNodeBase;
|
|
|
19988
20001
|
// src/views/Workflows/Creator/Builder/Nodes/CustomNodes/TriggerNode/Form.tsx
|
|
19989
20002
|
import { useState as useState19 } from "react";
|
|
19990
20003
|
import { Cron } from "react-js-cron";
|
|
19991
|
-
import { DesignToken as
|
|
20004
|
+
import { DesignToken as DesignToken22 } from "@livechat/design-system-react-components";
|
|
19992
20005
|
var cronCss = css`
|
|
19993
20006
|
width: 100%;
|
|
19994
20007
|
|
|
19995
20008
|
.ant-select {
|
|
19996
|
-
color: var(${
|
|
20009
|
+
color: var(${DesignToken22.ContentBasicPrimary}) !important;
|
|
19997
20010
|
}
|
|
19998
20011
|
|
|
19999
20012
|
.ant-select-open .ant-select-selection-item {
|
|
20000
|
-
color: var(${
|
|
20013
|
+
color: var(${DesignToken22.ContentBasicPrimary}) !important;
|
|
20001
20014
|
}
|
|
20002
20015
|
|
|
20003
20016
|
.ant-select-selector {
|
|
20004
|
-
color: var(${
|
|
20005
|
-
border: 1px solid var(${
|
|
20006
|
-
background: var(${
|
|
20017
|
+
color: var(${DesignToken22.ContentBasicPrimary}) !important;
|
|
20018
|
+
border: 1px solid var(${DesignToken22.BorderBasicPrimary}) !important;
|
|
20019
|
+
background: var(${DesignToken22.SurfacePrimaryDefault}) !important;
|
|
20007
20020
|
|
|
20008
20021
|
&:hover {
|
|
20009
|
-
border-color: var(${
|
|
20022
|
+
border-color: var(${DesignToken22.BorderBasicHover}) !important;
|
|
20010
20023
|
}
|
|
20011
20024
|
}
|
|
20012
20025
|
|
|
20013
20026
|
svg {
|
|
20014
|
-
fill: var(${
|
|
20027
|
+
fill: var(${DesignToken22.ContentBasicPrimary}) !important;
|
|
20015
20028
|
}
|
|
20016
20029
|
|
|
20017
20030
|
.ant-select-item {
|
|
20018
|
-
color: var(${
|
|
20031
|
+
color: var(${DesignToken22.ContentBasicPrimary}) !important;
|
|
20019
20032
|
}
|
|
20020
20033
|
|
|
20021
20034
|
.react-js-cron-clear-button {
|
|
@@ -20167,7 +20180,7 @@ import {
|
|
|
20167
20180
|
ZoomOut
|
|
20168
20181
|
} from "@livechat/design-system-icons";
|
|
20169
20182
|
import {
|
|
20170
|
-
DesignToken as
|
|
20183
|
+
DesignToken as DesignToken28,
|
|
20171
20184
|
Icon as Icon25,
|
|
20172
20185
|
Popover,
|
|
20173
20186
|
RadiusToken as RadiusToken13
|
|
@@ -20180,12 +20193,12 @@ import { Button as Button16, Icon as Icon19 } from "@livechat/design-system-reac
|
|
|
20180
20193
|
|
|
20181
20194
|
// src/views/Workflows/Common/One/widget/message-box/styles.ts
|
|
20182
20195
|
import {
|
|
20183
|
-
DesignToken as
|
|
20196
|
+
DesignToken as DesignToken23,
|
|
20184
20197
|
RadiusToken as RadiusToken10,
|
|
20185
20198
|
SpacingToken as SpacingToken23
|
|
20186
20199
|
} from "@livechat/design-system-react-components";
|
|
20187
20200
|
var popoverMessageBox = css`
|
|
20188
|
-
border-top: 1px solid var(${
|
|
20201
|
+
border-top: 1px solid var(${DesignToken23.BorderBasicSecondary});
|
|
20189
20202
|
`;
|
|
20190
20203
|
var contentEditable = css`
|
|
20191
20204
|
max-height: calc(100% - 32px);
|
|
@@ -20195,7 +20208,7 @@ var contentEditable = css`
|
|
|
20195
20208
|
line-height: 21px;
|
|
20196
20209
|
font-size: 16px;
|
|
20197
20210
|
outline: none;
|
|
20198
|
-
color: var(${
|
|
20211
|
+
color: var(${DesignToken23.ContentBasicPrimary});
|
|
20199
20212
|
margin-right: var(${SpacingToken23.Spacing1});
|
|
20200
20213
|
white-space: pre !important;
|
|
20201
20214
|
-ms-overflow-style: none;
|
|
@@ -20203,7 +20216,7 @@ var contentEditable = css`
|
|
|
20203
20216
|
-webkit-scrollbar: none;
|
|
20204
20217
|
|
|
20205
20218
|
&:focus-visible {
|
|
20206
|
-
border-color: var(${
|
|
20219
|
+
border-color: var(${DesignToken23.BorderDefault});
|
|
20207
20220
|
}
|
|
20208
20221
|
|
|
20209
20222
|
p {
|
|
@@ -20224,7 +20237,7 @@ var messageBoxWrapper = css`
|
|
|
20224
20237
|
}
|
|
20225
20238
|
`;
|
|
20226
20239
|
var placeholder = css`
|
|
20227
|
-
color: var(${
|
|
20240
|
+
color: var(${DesignToken23.ContentBasicDisabled});
|
|
20228
20241
|
overflow: hidden;
|
|
20229
20242
|
position: absolute;
|
|
20230
20243
|
text-overflow: ellipsis;
|
|
@@ -20269,16 +20282,16 @@ var messageBoxTip = css`
|
|
|
20269
20282
|
font-size: 14px;
|
|
20270
20283
|
line-height: 24px;
|
|
20271
20284
|
gap: var(${SpacingToken23.Spacing2});
|
|
20272
|
-
color: var(${
|
|
20285
|
+
color: var(${DesignToken23.ContentBasicDisabled});
|
|
20273
20286
|
|
|
20274
20287
|
strong {
|
|
20275
20288
|
width: 24px;
|
|
20276
20289
|
display: flex;
|
|
20277
20290
|
justify-content: center;
|
|
20278
20291
|
align-items: center;
|
|
20279
|
-
color: var(${
|
|
20292
|
+
color: var(${DesignToken23.ContentBasicPrimary});
|
|
20280
20293
|
border-radius: var(${RadiusToken10[3]});
|
|
20281
|
-
background-color: var(${
|
|
20294
|
+
background-color: var(${DesignToken23.SurfaceSecondaryDefault});
|
|
20282
20295
|
}
|
|
20283
20296
|
`;
|
|
20284
20297
|
|
|
@@ -20602,14 +20615,14 @@ import { Button as Button18, Icon as Icon20, Text as Text10 } from "@livechat/de
|
|
|
20602
20615
|
|
|
20603
20616
|
// src/views/Workflows/Common/One/widget/events/styles.ts
|
|
20604
20617
|
import {
|
|
20605
|
-
DesignToken as
|
|
20618
|
+
DesignToken as DesignToken25,
|
|
20606
20619
|
RadiusToken as RadiusToken12,
|
|
20607
20620
|
SpacingToken as SpacingToken25
|
|
20608
20621
|
} from "@livechat/design-system-react-components";
|
|
20609
20622
|
|
|
20610
20623
|
// src/views/Workflows/Common/One/widget/styles.ts
|
|
20611
20624
|
import {
|
|
20612
|
-
DesignToken as
|
|
20625
|
+
DesignToken as DesignToken24,
|
|
20613
20626
|
RadiusToken as RadiusToken11,
|
|
20614
20627
|
ShadowToken as ShadowToken8,
|
|
20615
20628
|
SpacingToken as SpacingToken24
|
|
@@ -20633,7 +20646,7 @@ var loaderText = css`
|
|
|
20633
20646
|
font-size: 14px;
|
|
20634
20647
|
font-weight: 400;
|
|
20635
20648
|
line-height: 20px;
|
|
20636
|
-
color: var(${
|
|
20649
|
+
color: var(${DesignToken24.ContentBasicDisabled});
|
|
20637
20650
|
`;
|
|
20638
20651
|
var relativeContainer = css`
|
|
20639
20652
|
position: relative;
|
|
@@ -20650,11 +20663,11 @@ var typingIndicator = css`
|
|
|
20650
20663
|
span {
|
|
20651
20664
|
width: 4px;
|
|
20652
20665
|
height: 4px;
|
|
20653
|
-
background-color: var(${
|
|
20666
|
+
background-color: var(${DesignToken24.ContentBasicDisabled});
|
|
20654
20667
|
}
|
|
20655
20668
|
`;
|
|
20656
20669
|
var selected = css`
|
|
20657
|
-
background-color: var(${
|
|
20670
|
+
background-color: var(${DesignToken24.SurfacePrimaryActive});
|
|
20658
20671
|
`;
|
|
20659
20672
|
var wrapper = css`
|
|
20660
20673
|
${resetLegacyLcBorderBox};
|
|
@@ -20675,13 +20688,13 @@ var wrapper = css`
|
|
|
20675
20688
|
}
|
|
20676
20689
|
|
|
20677
20690
|
&:hover {
|
|
20678
|
-
background-color: var(${
|
|
20691
|
+
background-color: var(${DesignToken24.SurfacePrimaryHover});
|
|
20679
20692
|
cursor: pointer;
|
|
20680
20693
|
}
|
|
20681
20694
|
`;
|
|
20682
20695
|
var textWrapper = css`
|
|
20683
20696
|
width: calc(100% - 2 * ${SIDE_PADDING}px - 2 * ${SIDE_MARGIN}px);
|
|
20684
|
-
color: var(${
|
|
20697
|
+
color: var(${DesignToken24.ContentBasicPrimary});
|
|
20685
20698
|
`;
|
|
20686
20699
|
var lastEventWrapper = css`
|
|
20687
20700
|
display: flex;
|
|
@@ -20695,7 +20708,7 @@ var text = css`
|
|
|
20695
20708
|
text-overflow: ellipsis;
|
|
20696
20709
|
white-space: nowrap;
|
|
20697
20710
|
word-wrap: normal;
|
|
20698
|
-
color: var(${
|
|
20711
|
+
color: var(${DesignToken24.ContentBasicSecondary});
|
|
20699
20712
|
`;
|
|
20700
20713
|
var chatFeed = css`
|
|
20701
20714
|
display: flex;
|
|
@@ -20710,14 +20723,14 @@ var undreadMessageCount = css`
|
|
|
20710
20723
|
min-width: 18px;
|
|
20711
20724
|
font-size: 12px;
|
|
20712
20725
|
border-radius: 50%;
|
|
20713
|
-
color: var(${
|
|
20714
|
-
background-color: var(${
|
|
20726
|
+
color: var(${DesignToken24.ContentLockedWhite});
|
|
20727
|
+
background-color: var(${DesignToken24.SurfaceAccentEmphasisHighNegative});
|
|
20715
20728
|
margin: 0 6px;
|
|
20716
20729
|
text-align: center;
|
|
20717
20730
|
font-weight: bold;
|
|
20718
20731
|
`;
|
|
20719
20732
|
var unreadMessageText = css`
|
|
20720
|
-
color: var(${
|
|
20733
|
+
color: var(${DesignToken24.ContentBasicSecondary});
|
|
20721
20734
|
flex-grow: 1;
|
|
20722
20735
|
font-size: 13px;
|
|
20723
20736
|
`;
|
|
@@ -20725,7 +20738,7 @@ var loaderContainer = css`
|
|
|
20725
20738
|
height: 100%;
|
|
20726
20739
|
`;
|
|
20727
20740
|
var loaderChatItem = css`
|
|
20728
|
-
background-color: var(${
|
|
20741
|
+
background-color: var(${DesignToken24.SurfaceSecondaryDisabled});
|
|
20729
20742
|
width: 325px;
|
|
20730
20743
|
padding: 15px;
|
|
20731
20744
|
display: flex;
|
|
@@ -20744,7 +20757,7 @@ var container = () => css`
|
|
|
20744
20757
|
width: 360px;
|
|
20745
20758
|
height: auto;
|
|
20746
20759
|
max-height: 75%;
|
|
20747
|
-
color: var(${
|
|
20760
|
+
color: var(${DesignToken24.ContentBasicPrimary});
|
|
20748
20761
|
`;
|
|
20749
20762
|
var headerWrapper = css`
|
|
20750
20763
|
display: flex;
|
|
@@ -20774,7 +20787,7 @@ var headerWrapperExpanded = css`
|
|
|
20774
20787
|
${headerWrapper};
|
|
20775
20788
|
box-sizing: border-box;
|
|
20776
20789
|
height: 64px;
|
|
20777
|
-
border-bottom: 1px solid var(${
|
|
20790
|
+
border-bottom: 1px solid var(${DesignToken24.BorderBasicTertiary});
|
|
20778
20791
|
|
|
20779
20792
|
> div:first-of-type {
|
|
20780
20793
|
padding: 0 4px;
|
|
@@ -20785,7 +20798,7 @@ var oneLogo = css`
|
|
|
20785
20798
|
display: inline-flex;
|
|
20786
20799
|
`;
|
|
20787
20800
|
var activeDetailsButton = css`
|
|
20788
|
-
background-color: var(${
|
|
20801
|
+
background-color: var(${DesignToken24.SurfaceOpacityBasicActive});
|
|
20789
20802
|
`;
|
|
20790
20803
|
var icon = css`
|
|
20791
20804
|
color: white;
|
|
@@ -20801,13 +20814,13 @@ var scrollbar = `
|
|
|
20801
20814
|
}
|
|
20802
20815
|
|
|
20803
20816
|
::-webkit-scrollbar-track {
|
|
20804
|
-
background: var(${
|
|
20817
|
+
background: var(${DesignToken24.SurfacePrimaryDefault});
|
|
20805
20818
|
}
|
|
20806
20819
|
|
|
20807
20820
|
::-webkit-scrollbar-thumb {
|
|
20808
|
-
background: var(${
|
|
20821
|
+
background: var(${DesignToken24.SurfaceModerateDefault});
|
|
20809
20822
|
border-radius: 8px;
|
|
20810
|
-
box-shadow: inset 0 0 0 3px var(${
|
|
20823
|
+
box-shadow: inset 0 0 0 3px var(${DesignToken24.SurfacePrimaryDefault});
|
|
20811
20824
|
}
|
|
20812
20825
|
`;
|
|
20813
20826
|
var scroller = css`
|
|
@@ -20903,7 +20916,7 @@ var loaderBubble = css`
|
|
|
20903
20916
|
width: 41px;
|
|
20904
20917
|
height: 46px;
|
|
20905
20918
|
padding: var(${SpacingToken25.Spacing3});
|
|
20906
|
-
color: var(${
|
|
20919
|
+
color: var(${DesignToken25.ContentBasicPrimary});
|
|
20907
20920
|
border-radius: var(${RadiusToken12[4]});
|
|
20908
20921
|
background: linear-gradient(
|
|
20909
20922
|
254.49deg,
|
|
@@ -20918,7 +20931,7 @@ var bubble = css`
|
|
|
20918
20931
|
font-size: 14px;
|
|
20919
20932
|
line-height: 1.5em;
|
|
20920
20933
|
word-break: break-word;
|
|
20921
|
-
color: var(${
|
|
20934
|
+
color: var(${DesignToken25.ContentBasicPrimary});
|
|
20922
20935
|
background: linear-gradient(
|
|
20923
20936
|
254.49deg,
|
|
20924
20937
|
rgb(187 154 255 / 18%) -0.38%,
|
|
@@ -20932,7 +20945,7 @@ var eventWrapper = (isAgentMessage) => css`
|
|
|
20932
20945
|
align-items: ${isAgentMessage ? "center" : "flex-start"};
|
|
20933
20946
|
justify-content: ${isAgentMessage ? "flex-end" : "flex-start"};
|
|
20934
20947
|
margin: 2px;
|
|
20935
|
-
color: ${isAgentMessage ? `var(${
|
|
20948
|
+
color: ${isAgentMessage ? `var(${DesignToken25.ContentLockedWhite})` : `var(${DesignToken25.ContentBasicPrimary})`};
|
|
20936
20949
|
`;
|
|
20937
20950
|
var eventText = css`
|
|
20938
20951
|
padding: var(${SpacingToken25.Spacing3}) var(${SpacingToken25.Spacing5});
|
|
@@ -21016,7 +21029,7 @@ var agentMessage = css`
|
|
|
21016
21029
|
font-style: normal;
|
|
21017
21030
|
font-weight: 600;
|
|
21018
21031
|
line-height: 24px;
|
|
21019
|
-
color: var(${
|
|
21032
|
+
color: var(${DesignToken25.ContentBasicPrimary});
|
|
21020
21033
|
width: 100%;
|
|
21021
21034
|
`;
|
|
21022
21035
|
var taskList = css`
|
|
@@ -21041,8 +21054,8 @@ var linkContainer = (type = "api_call") => css`
|
|
|
21041
21054
|
margin-bottom: var(${SpacingToken25.Spacing2});
|
|
21042
21055
|
|
|
21043
21056
|
span {
|
|
21044
|
-
color: var(${
|
|
21045
|
-
background-color: ${type === "url" ? `var(${
|
|
21057
|
+
color: var(${DesignToken25.ContentBasicPrimary});
|
|
21058
|
+
background-color: ${type === "url" ? `var(${DesignToken25.SurfacePrimaryActiveColored})` : `var(${DesignToken25.SurfaceTertiaryDefault})`};
|
|
21046
21059
|
width: 24px;
|
|
21047
21060
|
height: 24px;
|
|
21048
21061
|
padding: var(${SpacingToken25.Spacing1});
|
|
@@ -21058,10 +21071,10 @@ var sourcesContainer = css`
|
|
|
21058
21071
|
align-items: center;
|
|
21059
21072
|
`;
|
|
21060
21073
|
var sourcesBadgeActive = css`
|
|
21061
|
-
color: var(${
|
|
21074
|
+
color: var(${DesignToken25.ContentBasicPrimary});
|
|
21062
21075
|
`;
|
|
21063
21076
|
var sourcesButtonActive = css`
|
|
21064
|
-
color: var(${
|
|
21077
|
+
color: var(${DesignToken25.ContentBasicPrimary});
|
|
21065
21078
|
`;
|
|
21066
21079
|
var sourcesList = css`
|
|
21067
21080
|
margin: var(${SpacingToken25.Spacing3}) 0 0 var(${SpacingToken25.Spacing7});
|
|
@@ -21076,7 +21089,7 @@ var sourcesButton = css`
|
|
|
21076
21089
|
border-radius: var(${RadiusToken12[3]});
|
|
21077
21090
|
padding: var(${SpacingToken25.Spacing05}) var(${SpacingToken25.Spacing2})
|
|
21078
21091
|
var(${SpacingToken25.Spacing05}) 6px;
|
|
21079
|
-
color: var(${
|
|
21092
|
+
color: var(${DesignToken25.ContentBasicSecondary});
|
|
21080
21093
|
margin-top: var(${SpacingToken25.Spacing05});
|
|
21081
21094
|
|
|
21082
21095
|
&:hover {
|
|
@@ -21090,13 +21103,13 @@ var button = css`
|
|
|
21090
21103
|
margin: 0;
|
|
21091
21104
|
|
|
21092
21105
|
svg {
|
|
21093
|
-
color: var(${
|
|
21106
|
+
color: var(${DesignToken25.ContentBasicSecondary});
|
|
21094
21107
|
}
|
|
21095
21108
|
|
|
21096
21109
|
&:hover {
|
|
21097
21110
|
cursor: pointer;
|
|
21098
21111
|
svg {
|
|
21099
|
-
color: var(${
|
|
21112
|
+
color: var(${DesignToken25.ContentBasicPrimary});
|
|
21100
21113
|
}
|
|
21101
21114
|
}
|
|
21102
21115
|
`;
|
|
@@ -21145,7 +21158,7 @@ function OneErrorEvent({ eventId }) {
|
|
|
21145
21158
|
import { useEffect as useEffect15, useState as useState23 } from "react";
|
|
21146
21159
|
|
|
21147
21160
|
// src/views/Workflows/Common/One/components/SkeletonLine.tsx
|
|
21148
|
-
import { DesignToken as
|
|
21161
|
+
import { DesignToken as DesignToken26 } from "@livechat/design-system-react-components";
|
|
21149
21162
|
var shine = keyframes`
|
|
21150
21163
|
0% {
|
|
21151
21164
|
background-position: 100% 50%;
|
|
@@ -21156,7 +21169,7 @@ var shine = keyframes`
|
|
|
21156
21169
|
}
|
|
21157
21170
|
`;
|
|
21158
21171
|
var skeletonLine = css`
|
|
21159
|
-
background: var(${
|
|
21172
|
+
background: var(${DesignToken26.SurfaceSecondaryDisabled});
|
|
21160
21173
|
width: 35%;
|
|
21161
21174
|
height: 12px;
|
|
21162
21175
|
border-radius: 6px;
|
|
@@ -21229,7 +21242,7 @@ function OneImageEvent({ imageUrl }) {
|
|
|
21229
21242
|
|
|
21230
21243
|
// src/views/Workflows/Common/One/components/TypingIndicator.tsx
|
|
21231
21244
|
import { memo as memo10 } from "react";
|
|
21232
|
-
import { DesignToken as
|
|
21245
|
+
import { DesignToken as DesignToken27 } from "@livechat/design-system-react-components";
|
|
21233
21246
|
var typingAnimation = keyframes`
|
|
21234
21247
|
0% {
|
|
21235
21248
|
opacity: 0.2;
|
|
@@ -21253,7 +21266,7 @@ var typingIndicator2 = css`
|
|
|
21253
21266
|
animation-duration: 1.4s;
|
|
21254
21267
|
animation-iteration-count: infinite;
|
|
21255
21268
|
animation-fill-mode: both;
|
|
21256
|
-
background-color: var(${
|
|
21269
|
+
background-color: var(${DesignToken27.ContentBasicPrimary});
|
|
21257
21270
|
border-radius: 50%;
|
|
21258
21271
|
display: block;
|
|
21259
21272
|
height: 3px;
|
|
@@ -21930,7 +21943,7 @@ function CustomControls({
|
|
|
21930
21943
|
css: css`
|
|
21931
21944
|
max-width: 360px;
|
|
21932
21945
|
border-radius: var(${RadiusToken13[4]});
|
|
21933
|
-
background-color: var(${
|
|
21946
|
+
background-color: var(${DesignToken28.SurfacePrimaryDefault});
|
|
21934
21947
|
`,
|
|
21935
21948
|
floatingStrategy: "fixed",
|
|
21936
21949
|
isVisible: isOpen,
|
|
@@ -22116,7 +22129,7 @@ import {
|
|
|
22116
22129
|
getSmoothStepPath
|
|
22117
22130
|
} from "reactflow";
|
|
22118
22131
|
import {
|
|
22119
|
-
DesignToken as
|
|
22132
|
+
DesignToken as DesignToken29,
|
|
22120
22133
|
RadiusToken as RadiusToken14
|
|
22121
22134
|
} from "@livechat/design-system-react-components";
|
|
22122
22135
|
var CustomEdge = ({
|
|
@@ -22151,7 +22164,7 @@ var CustomEdge = ({
|
|
|
22151
22164
|
position: absolute;
|
|
22152
22165
|
transform: translate(-50%, -100%)
|
|
22153
22166
|
translate(${targetX}px, ${targetY - 10}px);
|
|
22154
|
-
background: ${typeof data.label === "object" ? "transparent" : `var(${
|
|
22167
|
+
background: ${typeof data.label === "object" ? "transparent" : `var(${DesignToken29.SurfaceTertiaryDefault})`};
|
|
22155
22168
|
padding: 0 8px;
|
|
22156
22169
|
border-radius: var(${RadiusToken14[3]});
|
|
22157
22170
|
font-size: 13px;
|
|
@@ -22170,7 +22183,7 @@ var Edges_default = CustomEdge_default;
|
|
|
22170
22183
|
// src/views/Workflows/Creator/Builder/utils.ts
|
|
22171
22184
|
import { MarkerType } from "reactflow";
|
|
22172
22185
|
import ElkConstructor from "elkjs";
|
|
22173
|
-
import { DesignToken as
|
|
22186
|
+
import { DesignToken as DesignToken30 } from "@livechat/design-system-react-components";
|
|
22174
22187
|
import { WorkflowDefinitionTaskType as WorkflowDefinitionTaskType13 } from "@livechat/developer-studio-api";
|
|
22175
22188
|
var elk = new ElkConstructor({
|
|
22176
22189
|
defaultLayoutOptions: {
|
|
@@ -22203,11 +22216,11 @@ var buildEdge = ({
|
|
|
22203
22216
|
type: MarkerType.ArrowClosed,
|
|
22204
22217
|
width: 10,
|
|
22205
22218
|
height: 10,
|
|
22206
|
-
color: `var(${
|
|
22219
|
+
color: `var(${DesignToken30.ContentBasicDisabled})`
|
|
22207
22220
|
},
|
|
22208
22221
|
style: {
|
|
22209
22222
|
strokeWidth: 2,
|
|
22210
|
-
stroke: `var(${
|
|
22223
|
+
stroke: `var(${DesignToken30.ContentBasicDisabled})`,
|
|
22211
22224
|
zIndex: 9999
|
|
22212
22225
|
}
|
|
22213
22226
|
};
|
|
@@ -22636,7 +22649,7 @@ function WorkflowBuilder() {
|
|
|
22636
22649
|
/* @__PURE__ */ jsx14(
|
|
22637
22650
|
Background,
|
|
22638
22651
|
{
|
|
22639
|
-
color: `var(${
|
|
22652
|
+
color: `var(${DesignToken31.SurfaceSecondaryActive})`,
|
|
22640
22653
|
size: 2,
|
|
22641
22654
|
variant: BackgroundVariant.Dots
|
|
22642
22655
|
}
|
|
@@ -22671,7 +22684,7 @@ var WorkflowBuilderWrapper = newStyled.div`
|
|
|
22671
22684
|
min-height: 400px;
|
|
22672
22685
|
max-height: 100%;
|
|
22673
22686
|
border-radius: var(${RadiusToken15.Radius3});
|
|
22674
|
-
background-color: var(${
|
|
22687
|
+
background-color: var(${DesignToken32.SurfaceSecondaryDefault});
|
|
22675
22688
|
|
|
22676
22689
|
> div {
|
|
22677
22690
|
height: 400px !important;
|
|
@@ -22790,7 +22803,7 @@ var Modal_default4 = PreviewWorkflowModalWrapper;
|
|
|
22790
22803
|
import { Error as Error5 } from "@livechat/design-system-icons";
|
|
22791
22804
|
import {
|
|
22792
22805
|
Button as Button24,
|
|
22793
|
-
DesignToken as
|
|
22806
|
+
DesignToken as DesignToken33,
|
|
22794
22807
|
Icon as Icon26,
|
|
22795
22808
|
Modal as Modal7
|
|
22796
22809
|
} from "@livechat/design-system-react-components";
|
|
@@ -22826,7 +22839,7 @@ function PublishWorkflowModal({
|
|
|
22826
22839
|
icon: /* @__PURE__ */ jsx15(
|
|
22827
22840
|
Icon26,
|
|
22828
22841
|
{
|
|
22829
|
-
customColor: `var(${
|
|
22842
|
+
customColor: `var(${DesignToken33.ContentBasicDisabled})`,
|
|
22830
22843
|
size: "xxlarge",
|
|
22831
22844
|
source: Error5
|
|
22832
22845
|
}
|
|
@@ -22841,7 +22854,7 @@ import { useEffect as useEffect19 } from "react";
|
|
|
22841
22854
|
import { Route as Route2, Routes as Routes2 } from "react-router-dom";
|
|
22842
22855
|
import { useReactFlow as useReactFlow3 } from "reactflow";
|
|
22843
22856
|
import {
|
|
22844
|
-
DesignToken as
|
|
22857
|
+
DesignToken as DesignToken39,
|
|
22845
22858
|
RadiusToken as RadiusToken18,
|
|
22846
22859
|
SpacingToken as SpacingToken35
|
|
22847
22860
|
} from "@livechat/design-system-react-components";
|
|
@@ -22859,7 +22872,7 @@ import { useNavigate as useNavigate10, useParams as useParams3 } from "react-rou
|
|
|
22859
22872
|
import { Close as Close3 } from "@livechat/design-system-icons";
|
|
22860
22873
|
import {
|
|
22861
22874
|
Button as Button25,
|
|
22862
|
-
DesignToken as
|
|
22875
|
+
DesignToken as DesignToken36,
|
|
22863
22876
|
Heading as Heading3,
|
|
22864
22877
|
Icon as Icon28,
|
|
22865
22878
|
Loader as Loader2,
|
|
@@ -22877,7 +22890,7 @@ import { Row as Row14 } from "@livechat/developer-studio-ui-react";
|
|
|
22877
22890
|
import { CheckCircle as CheckCircle2, CloseCircle as CloseCircle2 } from "@livechat/design-system-icons";
|
|
22878
22891
|
import {
|
|
22879
22892
|
Badge as Badge2,
|
|
22880
|
-
DesignToken as
|
|
22893
|
+
DesignToken as DesignToken34,
|
|
22881
22894
|
Icon as Icon27,
|
|
22882
22895
|
SpacingToken as SpacingToken29
|
|
22883
22896
|
} from "@livechat/design-system-react-components";
|
|
@@ -22889,7 +22902,7 @@ var tableCss = css`
|
|
|
22889
22902
|
|
|
22890
22903
|
width: 100%;
|
|
22891
22904
|
border-spacing: 0;
|
|
22892
|
-
color: var(${
|
|
22905
|
+
color: var(${DesignToken34.ContentBasicSecondary});
|
|
22893
22906
|
|
|
22894
22907
|
th {
|
|
22895
22908
|
text-transform: uppercase;
|
|
@@ -22918,8 +22931,8 @@ function WorkflowExecutionList({
|
|
|
22918
22931
|
{
|
|
22919
22932
|
css: css`
|
|
22920
22933
|
display: flex;
|
|
22921
|
-
background-color: ${execution.status === "COMPLETED" ? `var(${
|
|
22922
|
-
color: ${execution.status === "COMPLETED" ? `var(${
|
|
22934
|
+
background-color: ${execution.status === "COMPLETED" ? `var(${DesignToken34.SurfaceAccentEmphasisLowPositive})` : `var(${DesignToken34.SurfaceAccentEmphasisLowNegative})`};
|
|
22935
|
+
color: ${execution.status === "COMPLETED" ? `var(${DesignToken34.ContentBasicPositive})` : `var(${DesignToken34.ContentBasicNegative})`};
|
|
22923
22936
|
`,
|
|
22924
22937
|
children: /* @__PURE__ */ jsxs2(Row12, { gap: 4, notPadded: true, children: [
|
|
22925
22938
|
/* @__PURE__ */ jsx4(
|
|
@@ -22939,7 +22952,7 @@ var List_default = WorkflowExecutionList;
|
|
|
22939
22952
|
|
|
22940
22953
|
// src/views/Workflows/Creator/Panels/Details/Info/Info.tsx
|
|
22941
22954
|
import {
|
|
22942
|
-
DesignToken as
|
|
22955
|
+
DesignToken as DesignToken35,
|
|
22943
22956
|
SpacingToken as SpacingToken30,
|
|
22944
22957
|
Text as Text15
|
|
22945
22958
|
} from "@livechat/design-system-react-components";
|
|
@@ -22949,13 +22962,13 @@ import {
|
|
|
22949
22962
|
Row as Row13
|
|
22950
22963
|
} from "@livechat/developer-studio-ui-react";
|
|
22951
22964
|
var Label = newStyled.div`
|
|
22952
|
-
color: var(${
|
|
22965
|
+
color: var(${DesignToken35.ContentBasicSecondary});
|
|
22953
22966
|
`;
|
|
22954
22967
|
var IconWrapper = newStyled.div`
|
|
22955
22968
|
display: flex;
|
|
22956
22969
|
align-items: center;
|
|
22957
22970
|
justify-content: center;
|
|
22958
|
-
background-color: var(${
|
|
22971
|
+
background-color: var(${DesignToken35.SurfaceSecondaryDefault});
|
|
22959
22972
|
border-radius: 50%;
|
|
22960
22973
|
width: var(${SpacingToken30.Spacing6});
|
|
22961
22974
|
height: var(${SpacingToken30.Spacing6});
|
|
@@ -23017,7 +23030,7 @@ var WorkflowSidebar = newStyled.div`
|
|
|
23017
23030
|
top: 0;
|
|
23018
23031
|
display: flex;
|
|
23019
23032
|
flex-direction: column;
|
|
23020
|
-
background-color: var(${
|
|
23033
|
+
background-color: var(${DesignToken36.SurfacePrimaryDefault});
|
|
23021
23034
|
width: ${({ width }) => width != null ? width : "524px"};
|
|
23022
23035
|
flex-shrink: 0;
|
|
23023
23036
|
height: 100%;
|
|
@@ -23259,7 +23272,7 @@ var Panel_default2 = WorkflowEditorPanel;
|
|
|
23259
23272
|
import { Automation as Automation2, Close as Close5 } from "@livechat/design-system-icons";
|
|
23260
23273
|
import {
|
|
23261
23274
|
Button as Button27,
|
|
23262
|
-
DesignToken as
|
|
23275
|
+
DesignToken as DesignToken37,
|
|
23263
23276
|
Icon as Icon30,
|
|
23264
23277
|
RadiusToken as RadiusToken17,
|
|
23265
23278
|
ShadowToken as ShadowToken10,
|
|
@@ -23276,7 +23289,7 @@ var formCss = () => css`
|
|
|
23276
23289
|
var Wrapper4 = newStyled.div`
|
|
23277
23290
|
height: 100%;
|
|
23278
23291
|
overflow: auto;
|
|
23279
|
-
background-color: var(${
|
|
23292
|
+
background-color: var(${DesignToken37.SurfacePrimaryDefault});
|
|
23280
23293
|
border-radius: 0 var(${RadiusToken17[4]}) var(${RadiusToken17[4]}) 0;
|
|
23281
23294
|
width: 524px;
|
|
23282
23295
|
flex-shrink: 0;
|
|
@@ -23486,7 +23499,7 @@ import { ChevronDown as ChevronDown3, Close as Close6 } from "@livechat/design-s
|
|
|
23486
23499
|
import {
|
|
23487
23500
|
ActionMenu as ActionMenu2,
|
|
23488
23501
|
Button as Button28,
|
|
23489
|
-
DesignToken as
|
|
23502
|
+
DesignToken as DesignToken38,
|
|
23490
23503
|
FormField as FormField3,
|
|
23491
23504
|
Icon as Icon31,
|
|
23492
23505
|
Input as Input5,
|
|
@@ -23615,7 +23628,7 @@ function WorkflowCreatorNavbar() {
|
|
|
23615
23628
|
css: css`
|
|
23616
23629
|
background: transparent;
|
|
23617
23630
|
border: none;
|
|
23618
|
-
color: var(${
|
|
23631
|
+
color: var(${DesignToken38.ContentBasicPrimary});
|
|
23619
23632
|
border-radius: 0;
|
|
23620
23633
|
padding: 0;
|
|
23621
23634
|
|
|
@@ -23624,18 +23637,18 @@ function WorkflowCreatorNavbar() {
|
|
|
23624
23637
|
font-size: 18px;
|
|
23625
23638
|
font-weight: 600;
|
|
23626
23639
|
line-height: 24px;
|
|
23627
|
-
color: var(${
|
|
23640
|
+
color: var(${DesignToken38.ContentBasicPrimary});
|
|
23628
23641
|
margin-bottom: 1px;
|
|
23629
23642
|
width: ${((_c = inputRef.current) == null ? void 0 : _c.value.length) || 5}ch;
|
|
23630
23643
|
max-width: 30ch;
|
|
23631
23644
|
|
|
23632
23645
|
&:disabled {
|
|
23633
|
-
color: var(${
|
|
23646
|
+
color: var(${DesignToken38.ContentBasicPrimary});
|
|
23634
23647
|
}
|
|
23635
23648
|
|
|
23636
23649
|
${isNameChanging && css`
|
|
23637
23650
|
border-bottom: 1px solid
|
|
23638
|
-
var(${
|
|
23651
|
+
var(${DesignToken38.ContentBasicPrimary});
|
|
23639
23652
|
margin-bottom: 0;
|
|
23640
23653
|
`}
|
|
23641
23654
|
}
|
|
@@ -23708,7 +23721,7 @@ function WorkflowCreatorNavbar() {
|
|
|
23708
23721
|
{
|
|
23709
23722
|
css: css`
|
|
23710
23723
|
width: 1px;
|
|
23711
|
-
background-color: var(${
|
|
23724
|
+
background-color: var(${DesignToken38.BorderBasicSecondary});
|
|
23712
23725
|
height: 36px;
|
|
23713
23726
|
`
|
|
23714
23727
|
}
|
|
@@ -23771,7 +23784,7 @@ var WorkflowCreatorContent = newStyled.div`
|
|
|
23771
23784
|
display: flex;
|
|
23772
23785
|
flex-flow: row nowrap;
|
|
23773
23786
|
border-radius: var(${RadiusToken18.Radius4});
|
|
23774
|
-
${({ grayBackground }) => grayBackground ? `background-color: var(${
|
|
23787
|
+
${({ grayBackground }) => grayBackground ? `background-color: var(${DesignToken39.SurfaceSecondaryDefault})` : `background-color: var(${DesignToken39.SurfacePrimaryDefault})`};
|
|
23775
23788
|
margin: var(${SpacingToken35.Spacing4});
|
|
23776
23789
|
width: calc(100% - var(${SpacingToken35.Spacing8}));
|
|
23777
23790
|
height: calc(100% - var(${SpacingToken35.Spacing8}) - 70px);
|
|
@@ -23976,7 +23989,7 @@ import { useNavigate as useNavigate14 } from "react-router-dom";
|
|
|
23976
23989
|
import { ArrowBackFilled } from "@livechat/design-system-icons";
|
|
23977
23990
|
import {
|
|
23978
23991
|
Button as Button29,
|
|
23979
|
-
DesignToken as
|
|
23992
|
+
DesignToken as DesignToken41,
|
|
23980
23993
|
Heading as Heading5,
|
|
23981
23994
|
Icon as Icon33,
|
|
23982
23995
|
Modal as Modal8,
|
|
@@ -24001,7 +24014,7 @@ import {
|
|
|
24001
24014
|
TargetArrow
|
|
24002
24015
|
} from "@livechat/design-system-icons";
|
|
24003
24016
|
import {
|
|
24004
|
-
DesignToken as
|
|
24017
|
+
DesignToken as DesignToken40,
|
|
24005
24018
|
Icon as Icon32,
|
|
24006
24019
|
SpacingToken as SpacingToken36,
|
|
24007
24020
|
Text as Text18
|
|
@@ -24020,7 +24033,7 @@ function WorkflowTemplateCategoryIcon(props) {
|
|
|
24020
24033
|
/* @__PURE__ */ jsx4(
|
|
24021
24034
|
Icon32,
|
|
24022
24035
|
{
|
|
24023
|
-
customColor: `var(${
|
|
24036
|
+
customColor: `var(${DesignToken40.ContentBasicSecondary})`,
|
|
24024
24037
|
size: "small",
|
|
24025
24038
|
source: icons[props.category]
|
|
24026
24039
|
}
|
|
@@ -24028,7 +24041,7 @@ function WorkflowTemplateCategoryIcon(props) {
|
|
|
24028
24041
|
/* @__PURE__ */ jsx4(
|
|
24029
24042
|
Text18,
|
|
24030
24043
|
{
|
|
24031
|
-
customColor: `var(${
|
|
24044
|
+
customColor: `var(${DesignToken40.ContentBasicSecondary})`,
|
|
24032
24045
|
noMargin: true,
|
|
24033
24046
|
size: "xs",
|
|
24034
24047
|
children: props.category
|
|
@@ -24047,7 +24060,7 @@ var WorkflowBuilderWrapper2 = newStyled.div`
|
|
|
24047
24060
|
min-height: 400px;
|
|
24048
24061
|
max-height: 100%;
|
|
24049
24062
|
border-radius: var(${RadiusToken19.Radius3});
|
|
24050
|
-
background-color: var(${
|
|
24063
|
+
background-color: var(${DesignToken41.SurfaceSecondaryDefault});
|
|
24051
24064
|
|
|
24052
24065
|
> div {
|
|
24053
24066
|
height: 400px !important;
|
|
@@ -24213,7 +24226,7 @@ function WorkflowTemplatePreviewModal({
|
|
|
24213
24226
|
css: css`
|
|
24214
24227
|
margin-block-end: var(${SpacingToken37.Spacing1});
|
|
24215
24228
|
`,
|
|
24216
|
-
customColor: `var(${
|
|
24229
|
+
customColor: `var(${DesignToken41.ContentBasicSecondary})`,
|
|
24217
24230
|
noMargin: true,
|
|
24218
24231
|
size: "xs",
|
|
24219
24232
|
children: "Products used:"
|
|
@@ -24276,7 +24289,7 @@ import { Modal as Modal9, ModalHeader as ModalHeader6 } from "@livechat/design-s
|
|
|
24276
24289
|
import { useMemo as useMemo9, useState as useState31 } from "react";
|
|
24277
24290
|
import { FiletypeOther, OneColored } from "@livechat/design-system-icons";
|
|
24278
24291
|
import {
|
|
24279
|
-
DesignToken as
|
|
24292
|
+
DesignToken as DesignToken43,
|
|
24280
24293
|
SpacingToken as SpacingToken42,
|
|
24281
24294
|
Text as Text20
|
|
24282
24295
|
} from "@livechat/design-system-react-components";
|
|
@@ -24492,7 +24505,7 @@ var Scratch_default = WorkflowScratchCard;
|
|
|
24492
24505
|
// src/views/Workflows/List/Home/Cards/Template.tsx
|
|
24493
24506
|
import { useNavigate as useNavigate16 } from "react-router-dom";
|
|
24494
24507
|
import {
|
|
24495
|
-
DesignToken as
|
|
24508
|
+
DesignToken as DesignToken42,
|
|
24496
24509
|
Heading as Heading7,
|
|
24497
24510
|
SpacingToken as SpacingToken41
|
|
24498
24511
|
} from "@livechat/design-system-react-components";
|
|
@@ -24501,7 +24514,7 @@ var IconWrapper2 = newStyled.div`
|
|
|
24501
24514
|
display: flex;
|
|
24502
24515
|
align-items: center;
|
|
24503
24516
|
justify-content: center;
|
|
24504
|
-
background-color: var(${
|
|
24517
|
+
background-color: var(${DesignToken42.SurfaceSecondaryDefault});
|
|
24505
24518
|
border-radius: 50%;
|
|
24506
24519
|
width: var(${SpacingToken41.Spacing7});
|
|
24507
24520
|
height: var(${SpacingToken41.Spacing7});
|
|
@@ -24638,7 +24651,7 @@ function WorkflowsHome({ isOnModal }) {
|
|
|
24638
24651
|
/* @__PURE__ */ jsx4(Grid, { children: filteredTemplates.length === 0 ? /* @__PURE__ */ jsx4(
|
|
24639
24652
|
Text20,
|
|
24640
24653
|
{
|
|
24641
|
-
customColor: `var(${
|
|
24654
|
+
customColor: `var(${DesignToken43.ContentBasicSecondary})`,
|
|
24642
24655
|
size: "md",
|
|
24643
24656
|
children: "No templates found"
|
|
24644
24657
|
}
|
|
@@ -24698,7 +24711,7 @@ import { useState as useState33 } from "react";
|
|
|
24698
24711
|
import { useNavigate as useNavigate20 } from "react-router-dom";
|
|
24699
24712
|
import {
|
|
24700
24713
|
Button as Button35,
|
|
24701
|
-
DesignToken as
|
|
24714
|
+
DesignToken as DesignToken46,
|
|
24702
24715
|
SpacingToken as SpacingToken45
|
|
24703
24716
|
} from "@livechat/design-system-react-components";
|
|
24704
24717
|
import { mergeDeep as mergeDeep2 } from "@livechat/developer-studio-api";
|
|
@@ -24716,7 +24729,7 @@ import { useNavigate as useNavigate18 } from "react-router-dom";
|
|
|
24716
24729
|
import { LayoutSidebarLeft } from "@livechat/design-system-icons";
|
|
24717
24730
|
import {
|
|
24718
24731
|
Button as Button32,
|
|
24719
|
-
DesignToken as
|
|
24732
|
+
DesignToken as DesignToken44,
|
|
24720
24733
|
Heading as Heading8,
|
|
24721
24734
|
Icon as Icon37,
|
|
24722
24735
|
SpacingToken as SpacingToken43
|
|
@@ -24729,7 +24742,7 @@ var wrapperCss = (hasData) => css`
|
|
|
24729
24742
|
padding: 0 var(${SpacingToken43.Spacing6}) 0 var(${SpacingToken43.Spacing4});
|
|
24730
24743
|
align-items: center;
|
|
24731
24744
|
gap: var(${SpacingToken43.Spacing2});
|
|
24732
|
-
border-bottom: 1px solid var(${
|
|
24745
|
+
border-bottom: 1px solid var(${DesignToken44.BorderBasicSecondary});
|
|
24733
24746
|
|
|
24734
24747
|
${hasData && `> button:last-of-type {
|
|
24735
24748
|
margin-left: auto;
|
|
@@ -24854,7 +24867,7 @@ import {
|
|
|
24854
24867
|
ActionMenu as ActionMenu6,
|
|
24855
24868
|
ActionMenuItem as ActionMenuItem2,
|
|
24856
24869
|
Button as Button34,
|
|
24857
|
-
DesignToken as
|
|
24870
|
+
DesignToken as DesignToken45,
|
|
24858
24871
|
Icon as Icon39,
|
|
24859
24872
|
SpacingToken as SpacingToken44,
|
|
24860
24873
|
Switch as Switch2,
|
|
@@ -24910,7 +24923,7 @@ function WorkflowsTable({ workflowsQuery, state }) {
|
|
|
24910
24923
|
cursor: pointer;
|
|
24911
24924
|
|
|
24912
24925
|
&:hover {
|
|
24913
|
-
background: var(${
|
|
24926
|
+
background: var(${DesignToken45.SurfacePrimaryHover});
|
|
24914
24927
|
}
|
|
24915
24928
|
`,
|
|
24916
24929
|
onClick: () => {
|
|
@@ -25042,7 +25055,7 @@ function WorkflowsTable({ workflowsQuery, state }) {
|
|
|
25042
25055
|
{
|
|
25043
25056
|
css: css`
|
|
25044
25057
|
background: transparent !important;
|
|
25045
|
-
color: var(${
|
|
25058
|
+
color: var(${DesignToken45.ContentBasicSecondary});
|
|
25046
25059
|
`,
|
|
25047
25060
|
children: /* @__PURE__ */ jsx4("td", { align: "left", colSpan: 6, children: /* @__PURE__ */ jsxs2(Text21, { as: "div", size: "md", children: [
|
|
25048
25061
|
"There are no",
|
|
@@ -25113,7 +25126,7 @@ var Grid_default = WorkflowsGrid;
|
|
|
25113
25126
|
|
|
25114
25127
|
// src/views/Workflows/List/View.tsx
|
|
25115
25128
|
var markedStyles = css`
|
|
25116
|
-
color: var(${
|
|
25129
|
+
color: var(${DesignToken46.ActionPrimaryDefault});
|
|
25117
25130
|
`;
|
|
25118
25131
|
function WorkflowListView() {
|
|
25119
25132
|
var _a;
|
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",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"validator": "^13.12.0",
|
|
83
83
|
"web-worker": "^1.3.0",
|
|
84
84
|
"@livechat/developer-studio-ui-react": "1.1.5",
|
|
85
|
-
"@livechat/
|
|
86
|
-
"@livechat/
|
|
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",
|