@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
package/dist/index.js
CHANGED
|
@@ -478,13 +478,11 @@ __export(src_exports, {
|
|
|
478
478
|
module.exports = __toCommonJS(src_exports);
|
|
479
479
|
|
|
480
480
|
// src/config.ts
|
|
481
|
-
var import_developer_studio_ui_react = require("@livechat/developer-studio-ui-react");
|
|
482
481
|
var config = {
|
|
483
482
|
config: void 0
|
|
484
483
|
};
|
|
485
484
|
function setWorkflowsConfig(newConfig) {
|
|
486
485
|
config.config = __spreadValues(__spreadValues({}, config.config), newConfig);
|
|
487
|
-
(0, import_developer_studio_ui_react.setConfig)(newConfig);
|
|
488
486
|
}
|
|
489
487
|
var getWorkflowsEnv = (key) => {
|
|
490
488
|
return config.config[key];
|
|
@@ -1938,7 +1936,7 @@ function keyframes() {
|
|
|
1938
1936
|
// src/views/Waitlist/index.tsx
|
|
1939
1937
|
var import_design_system_icons = require("@livechat/design-system-icons");
|
|
1940
1938
|
var import_design_system_react_components = require("@livechat/design-system-react-components");
|
|
1941
|
-
var
|
|
1939
|
+
var import_developer_studio_ui_react3 = require("@livechat/developer-studio-ui-react");
|
|
1942
1940
|
|
|
1943
1941
|
// src/hooks/apps.ts
|
|
1944
1942
|
var import_react_query = require("@tanstack/react-query");
|
|
@@ -1963,9 +1961,9 @@ var useFetchInstalledApp = (appId, license) => {
|
|
|
1963
1961
|
};
|
|
1964
1962
|
|
|
1965
1963
|
// src/hooks/navigate.ts
|
|
1966
|
-
var
|
|
1964
|
+
var import_developer_studio_ui_react = require("@livechat/developer-studio-ui-react");
|
|
1967
1965
|
function useWorkflowsRelativeNavigate() {
|
|
1968
|
-
const relativeNavigate = (0,
|
|
1966
|
+
const relativeNavigate = (0, import_developer_studio_ui_react.useModuleRelativeNavigate)(
|
|
1969
1967
|
getWorkflowsEnv("subPath")
|
|
1970
1968
|
);
|
|
1971
1969
|
return relativeNavigate;
|
|
@@ -2016,7 +2014,7 @@ var useUpdateOrganizationProducts = () => {
|
|
|
2016
2014
|
// src/hooks/workflows.ts
|
|
2017
2015
|
var import_react_query3 = require("@tanstack/react-query");
|
|
2018
2016
|
var import_developer_studio_api3 = require("@livechat/developer-studio-api");
|
|
2019
|
-
var
|
|
2017
|
+
var import_developer_studio_ui_react2 = require("@livechat/developer-studio-ui-react");
|
|
2020
2018
|
var import_platform_integrations = require("@livechat/platform-integrations");
|
|
2021
2019
|
var queryKeys = {
|
|
2022
2020
|
workflow: {
|
|
@@ -2033,7 +2031,7 @@ var queryKeys = {
|
|
|
2033
2031
|
}
|
|
2034
2032
|
};
|
|
2035
2033
|
var useFetchUserInstalledWorkflows = () => {
|
|
2036
|
-
const { user, isUserFetching } = (0,
|
|
2034
|
+
const { user, isUserFetching } = (0, import_developer_studio_ui_react2.useUserContext)();
|
|
2037
2035
|
const { data, isSuccess } = useFetchInstalledApp(
|
|
2038
2036
|
getWorkflowsEnv("workflowsAppId"),
|
|
2039
2037
|
(user == null ? void 0 : user.meta.license) ? `${user.meta.license}` : void 0
|
|
@@ -2050,7 +2048,7 @@ var useFetchUserInstalledWorkflows = () => {
|
|
|
2050
2048
|
};
|
|
2051
2049
|
};
|
|
2052
2050
|
var useFetchWorkflows = () => {
|
|
2053
|
-
const notifications = (0,
|
|
2051
|
+
const notifications = (0, import_developer_studio_ui_react2.useNotificationContext)();
|
|
2054
2052
|
return (0, import_react_query3.useQuery)(
|
|
2055
2053
|
queryKeys.workflows.get(),
|
|
2056
2054
|
() => __async(void 0, null, function* () {
|
|
@@ -2065,7 +2063,7 @@ var useFetchWorkflows = () => {
|
|
|
2065
2063
|
);
|
|
2066
2064
|
};
|
|
2067
2065
|
var useFetchWorkflow = (workflowId) => {
|
|
2068
|
-
const notifications = (0,
|
|
2066
|
+
const notifications = (0, import_developer_studio_ui_react2.useNotificationContext)();
|
|
2069
2067
|
return (0, import_react_query3.useQuery)(
|
|
2070
2068
|
queryKeys.workflow.get(workflowId),
|
|
2071
2069
|
() => __async(void 0, null, function* () {
|
|
@@ -2083,7 +2081,7 @@ var useFetchWorkflow = (workflowId) => {
|
|
|
2083
2081
|
);
|
|
2084
2082
|
};
|
|
2085
2083
|
var useFetchWorkflowExecutionList = (workflowId) => {
|
|
2086
|
-
const notifications = (0,
|
|
2084
|
+
const notifications = (0, import_developer_studio_ui_react2.useNotificationContext)();
|
|
2087
2085
|
return (0, import_react_query3.useQuery)(
|
|
2088
2086
|
queryKeys.workflowExecutions.get(workflowId),
|
|
2089
2087
|
() => __async(void 0, null, function* () {
|
|
@@ -2102,8 +2100,8 @@ var useFetchWorkflowExecutionList = (workflowId) => {
|
|
|
2102
2100
|
};
|
|
2103
2101
|
var useCreateWorkflow = () => {
|
|
2104
2102
|
const queryClient = (0, import_react_query3.useQueryClient)();
|
|
2105
|
-
const notifications = (0,
|
|
2106
|
-
const { user } = (0,
|
|
2103
|
+
const notifications = (0, import_developer_studio_ui_react2.useNotificationContext)();
|
|
2104
|
+
const { user } = (0, import_developer_studio_ui_react2.useUserContext)();
|
|
2107
2105
|
return (0, import_react_query3.useMutation)(
|
|
2108
2106
|
(payload) => __async(void 0, null, function* () {
|
|
2109
2107
|
const workflow = __spreadProps(__spreadValues({}, payload), {
|
|
@@ -2144,8 +2142,8 @@ var useCreateWorkflow = () => {
|
|
|
2144
2142
|
};
|
|
2145
2143
|
var useCreateWorkflowDraft = () => {
|
|
2146
2144
|
const queryClient = (0, import_react_query3.useQueryClient)();
|
|
2147
|
-
const notifications = (0,
|
|
2148
|
-
const { user } = (0,
|
|
2145
|
+
const notifications = (0, import_developer_studio_ui_react2.useNotificationContext)();
|
|
2146
|
+
const { user } = (0, import_developer_studio_ui_react2.useUserContext)();
|
|
2149
2147
|
return (0, import_react_query3.useMutation)(
|
|
2150
2148
|
(payload) => __async(void 0, null, function* () {
|
|
2151
2149
|
const workflow = __spreadProps(__spreadValues({}, payload), {
|
|
@@ -2180,7 +2178,7 @@ var useCreateWorkflowDraft = () => {
|
|
|
2180
2178
|
};
|
|
2181
2179
|
var useUpdateWorkflow = () => {
|
|
2182
2180
|
const queryClient = (0, import_react_query3.useQueryClient)();
|
|
2183
|
-
const notifications = (0,
|
|
2181
|
+
const notifications = (0, import_developer_studio_ui_react2.useNotificationContext)();
|
|
2184
2182
|
return (0, import_react_query3.useMutation)(
|
|
2185
2183
|
(workflow) => __async(void 0, null, function* () {
|
|
2186
2184
|
const { data } = yield import_developer_studio_api3.api.integrations.text.platform.workflow.workflows.updateWorkflow(
|
|
@@ -2201,7 +2199,7 @@ var useUpdateWorkflow = () => {
|
|
|
2201
2199
|
};
|
|
2202
2200
|
var useDeleteWorkflow = () => {
|
|
2203
2201
|
const queryClient = (0, import_react_query3.useQueryClient)();
|
|
2204
|
-
const notifications = (0,
|
|
2202
|
+
const notifications = (0, import_developer_studio_ui_react2.useNotificationContext)();
|
|
2205
2203
|
return (0, import_react_query3.useMutation)(
|
|
2206
2204
|
(workflow) => __async(void 0, null, function* () {
|
|
2207
2205
|
yield import_developer_studio_api3.api.integrations.text.platform.workflow.workflows.deleteWorkflow(
|
|
@@ -2229,7 +2227,7 @@ var useDeleteWorkflow = () => {
|
|
|
2229
2227
|
};
|
|
2230
2228
|
var usePublishWorkflowDraft = () => {
|
|
2231
2229
|
const queryClient = (0, import_react_query3.useQueryClient)();
|
|
2232
|
-
const notifications = (0,
|
|
2230
|
+
const notifications = (0, import_developer_studio_ui_react2.useNotificationContext)();
|
|
2233
2231
|
return (0, import_react_query3.useMutation)(
|
|
2234
2232
|
(workflow) => __async(void 0, null, function* () {
|
|
2235
2233
|
const { data } = yield import_developer_studio_api3.api.integrations.text.platform.workflow.workflows.publishWorkflowDraft(
|
|
@@ -2266,7 +2264,7 @@ var usePublishWorkflowDraft = () => {
|
|
|
2266
2264
|
};
|
|
2267
2265
|
var useActivateWorkflow = () => {
|
|
2268
2266
|
const queryClient = (0, import_react_query3.useQueryClient)();
|
|
2269
|
-
const notifications = (0,
|
|
2267
|
+
const notifications = (0, import_developer_studio_ui_react2.useNotificationContext)();
|
|
2270
2268
|
return (0, import_react_query3.useMutation)(
|
|
2271
2269
|
(_0) => __async(void 0, [_0], function* ({ id, active }) {
|
|
2272
2270
|
yield import_developer_studio_api3.api.integrations.text.platform.workflow.workflows.toggleWorkflowActivation(
|
|
@@ -2290,7 +2288,7 @@ var useActivateWorkflow = () => {
|
|
|
2290
2288
|
);
|
|
2291
2289
|
};
|
|
2292
2290
|
var useExecuteWorkflow = () => {
|
|
2293
|
-
const notifications = (0,
|
|
2291
|
+
const notifications = (0, import_developer_studio_ui_react2.useNotificationContext)();
|
|
2294
2292
|
return (0, import_react_query3.useMutation)(
|
|
2295
2293
|
(_0) => __async(void 0, [_0], function* ({
|
|
2296
2294
|
workflow,
|
|
@@ -2309,7 +2307,7 @@ var useExecuteWorkflow = () => {
|
|
|
2309
2307
|
);
|
|
2310
2308
|
};
|
|
2311
2309
|
var useGenerateAIResponse = () => {
|
|
2312
|
-
const notifications = (0,
|
|
2310
|
+
const notifications = (0, import_developer_studio_ui_react2.useNotificationContext)();
|
|
2313
2311
|
return (0, import_react_query3.useMutation)(
|
|
2314
2312
|
(payload) => __async(void 0, null, function* () {
|
|
2315
2313
|
const response = yield import_developer_studio_api3.api.integrations.text.ai.generateResponses(payload);
|
|
@@ -2376,16 +2374,16 @@ function Waitlist({ image }) {
|
|
|
2376
2374
|
}
|
|
2377
2375
|
}, [userHasInstalledWorkflows, navigate]);
|
|
2378
2376
|
if (isWorkflowAppLoading) {
|
|
2379
|
-
return /* @__PURE__ */ jsx4(
|
|
2377
|
+
return /* @__PURE__ */ jsx4(import_developer_studio_ui_react3.Loader, { stretch: true });
|
|
2380
2378
|
}
|
|
2381
|
-
return /* @__PURE__ */ jsxs2(
|
|
2382
|
-
/* @__PURE__ */ jsx4(
|
|
2383
|
-
|
|
2379
|
+
return /* @__PURE__ */ jsxs2(import_developer_studio_ui_react3.View, { children: [
|
|
2380
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react3.Row, { noMaxWidth: true, topMargin: true, verticalCenter: true, children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react3.Column, { center: true, children: /* @__PURE__ */ jsx4(
|
|
2381
|
+
import_developer_studio_ui_react3.Intro,
|
|
2384
2382
|
{
|
|
2385
2383
|
body: "No-code setup to streamline tasks you would otherwise do manually",
|
|
2386
2384
|
center: true,
|
|
2387
|
-
header: /* @__PURE__ */ jsx4(
|
|
2388
|
-
|
|
2385
|
+
header: /* @__PURE__ */ jsx4(import_developer_studio_ui_react3.Column, { notPadded: true, stretch: true, width: 4, children: /* @__PURE__ */ jsx4(
|
|
2386
|
+
import_developer_studio_ui_react3.Row,
|
|
2389
2387
|
{
|
|
2390
2388
|
center: true,
|
|
2391
2389
|
gap: `var(${import_design_system_react_components.SpacingToken.Spacing2})`,
|
|
@@ -2397,7 +2395,7 @@ function Waitlist({ image }) {
|
|
|
2397
2395
|
noMaxWidth: true
|
|
2398
2396
|
}
|
|
2399
2397
|
) }) }),
|
|
2400
|
-
/* @__PURE__ */ jsxs2(
|
|
2398
|
+
/* @__PURE__ */ jsxs2(import_developer_studio_ui_react3.Row, { gap: 8, noMaxWidth: true, topMargin: true, verticalCenter: true, children: [
|
|
2401
2399
|
/* @__PURE__ */ jsx4(
|
|
2402
2400
|
import_design_system_react_components.Button,
|
|
2403
2401
|
{
|
|
@@ -2424,7 +2422,7 @@ function Waitlist({ image }) {
|
|
|
2424
2422
|
}
|
|
2425
2423
|
)
|
|
2426
2424
|
] }),
|
|
2427
|
-
/* @__PURE__ */ jsxs2(
|
|
2425
|
+
/* @__PURE__ */ jsxs2(import_developer_studio_ui_react3.Row, { gap: 8, lowMargin: true, noMaxWidth: true, topMargin: true, verticalCenter: true, children: [
|
|
2428
2426
|
/* @__PURE__ */ jsxs2(import_design_system_react_components.Text, { css: infoCss, size: "lg", children: [
|
|
2429
2427
|
/* @__PURE__ */ jsx4(import_design_system_react_components.Icon, { source: import_design_system_icons.CheckCircle }),
|
|
2430
2428
|
"integrated with popular platforms"
|
|
@@ -2438,7 +2436,7 @@ function Waitlist({ image }) {
|
|
|
2438
2436
|
"build with ready-made blocks"
|
|
2439
2437
|
] })
|
|
2440
2438
|
] }),
|
|
2441
|
-
/* @__PURE__ */ jsx4(
|
|
2439
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react3.Row, { center: true, noMaxWidth: true, verticalCenter: true, children: /* @__PURE__ */ jsx4("div", { css: imgContainerCss, children: image }) })
|
|
2442
2440
|
] });
|
|
2443
2441
|
}
|
|
2444
2442
|
var Waitlist_default = Waitlist;
|
|
@@ -2446,11 +2444,11 @@ var Waitlist_default = Waitlist;
|
|
|
2446
2444
|
// src/views/Workflows/index.tsx
|
|
2447
2445
|
var import_react113 = require("react");
|
|
2448
2446
|
var import_react_router_dom15 = require("react-router-dom");
|
|
2449
|
-
var
|
|
2447
|
+
var import_developer_studio_ui_react48 = require("@livechat/developer-studio-ui-react");
|
|
2450
2448
|
|
|
2451
2449
|
// src/views/Workflows/Creator/index.tsx
|
|
2452
2450
|
var import_react_router_dom10 = require("react-router-dom");
|
|
2453
|
-
var
|
|
2451
|
+
var import_developer_studio_ui_react36 = require("@livechat/developer-studio-ui-react");
|
|
2454
2452
|
var import_platform_integrations6 = require("@livechat/platform-integrations");
|
|
2455
2453
|
|
|
2456
2454
|
// src/constants/products.ts
|
|
@@ -13021,10 +13019,10 @@ var import_react14 = require("react");
|
|
|
13021
13019
|
var import_react_router_dom2 = require("react-router-dom");
|
|
13022
13020
|
var import_design_system_react_components4 = require("@livechat/design-system-react-components");
|
|
13023
13021
|
var import_developer_studio_api21 = require("@livechat/developer-studio-api");
|
|
13024
|
-
var
|
|
13022
|
+
var import_developer_studio_ui_react8 = require("@livechat/developer-studio-ui-react");
|
|
13025
13023
|
|
|
13026
13024
|
// src/hooks/analytics.ts
|
|
13027
|
-
var
|
|
13025
|
+
var import_developer_studio_ui_react4 = require("@livechat/developer-studio-ui-react");
|
|
13028
13026
|
|
|
13029
13027
|
// src/utils/tracking.ts
|
|
13030
13028
|
var amplitude = __toESM(require("@amplitude/analytics-browser"));
|
|
@@ -13184,7 +13182,7 @@ var workflowsJourneyFactory = (email) => ({
|
|
|
13184
13182
|
|
|
13185
13183
|
// src/hooks/analytics.ts
|
|
13186
13184
|
function useWorkflowsJourney() {
|
|
13187
|
-
const { user } = (0,
|
|
13185
|
+
const { user } = (0, import_developer_studio_ui_react4.useUserContext)();
|
|
13188
13186
|
return workflowsJourneyFactory(user == null ? void 0 : user.meta.email);
|
|
13189
13187
|
}
|
|
13190
13188
|
|
|
@@ -13516,7 +13514,7 @@ var import_react12 = require("react");
|
|
|
13516
13514
|
var import_reactflow = require("reactflow");
|
|
13517
13515
|
var import_lodash = __toESM(require("lodash.debounce"));
|
|
13518
13516
|
var import_developer_studio_api20 = require("@livechat/developer-studio-api");
|
|
13519
|
-
var
|
|
13517
|
+
var import_developer_studio_ui_react6 = require("@livechat/developer-studio-ui-react");
|
|
13520
13518
|
|
|
13521
13519
|
// src/utils/sendMessage.ts
|
|
13522
13520
|
var sendMessage = (type) => {
|
|
@@ -13526,7 +13524,7 @@ var sendMessage = (type) => {
|
|
|
13526
13524
|
// src/views/Workflows/Common/One/contexts/OneMessagesContext.tsx
|
|
13527
13525
|
var import_react6 = require("react");
|
|
13528
13526
|
var import_uuid2 = require("uuid");
|
|
13529
|
-
var
|
|
13527
|
+
var import_developer_studio_ui_react5 = require("@livechat/developer-studio-ui-react");
|
|
13530
13528
|
|
|
13531
13529
|
// src/views/Workflows/Common/One/helpers.ts
|
|
13532
13530
|
var import_uuid = require("uuid");
|
|
@@ -13624,7 +13622,7 @@ function OneMessagesProvider({ children }) {
|
|
|
13624
13622
|
const [isError, setIsError] = (0, import_react6.useState)(null);
|
|
13625
13623
|
const [events, setEvents] = (0, import_react6.useState)([getInitialMessage()]);
|
|
13626
13624
|
const generateAiResponseMutation = useGenerateAIResponse();
|
|
13627
|
-
const { user } = (0,
|
|
13625
|
+
const { user } = (0, import_developer_studio_ui_react5.useUserContext)();
|
|
13628
13626
|
const isLoading = generateAiResponseMutation.isLoading;
|
|
13629
13627
|
const sendMessage2 = (message) => __async(this, null, function* () {
|
|
13630
13628
|
setIsError(null);
|
|
@@ -14722,7 +14720,7 @@ function WorkflowCreatorProviderBase({
|
|
|
14722
14720
|
var _a, _b;
|
|
14723
14721
|
const { fitView } = (0, import_reactflow.useReactFlow)();
|
|
14724
14722
|
const navigate = useWorkflowsRelativeNavigate();
|
|
14725
|
-
const notifications = (0,
|
|
14723
|
+
const notifications = (0, import_developer_studio_ui_react6.useNotificationContext)();
|
|
14726
14724
|
const replaceWorkflowId = useReplaceWorkflowIdInUrl();
|
|
14727
14725
|
const createWorkflowAction = useCreateWorkflow();
|
|
14728
14726
|
const createWorkflowDraftAction = useCreateWorkflowDraft();
|
|
@@ -15309,7 +15307,7 @@ function useWorkflowCreator() {
|
|
|
15309
15307
|
|
|
15310
15308
|
// src/views/Workflows/Creator/Modals/AddTask/Options.tsx
|
|
15311
15309
|
var import_design_system_react_components3 = require("@livechat/design-system-react-components");
|
|
15312
|
-
var
|
|
15310
|
+
var import_developer_studio_ui_react7 = require("@livechat/developer-studio-ui-react");
|
|
15313
15311
|
var itemOptionCss = (active) => css`
|
|
15314
15312
|
display: flex;
|
|
15315
15313
|
align-items: center;
|
|
@@ -15330,7 +15328,7 @@ var itemOptionCss = (active) => css`
|
|
|
15330
15328
|
}
|
|
15331
15329
|
`;
|
|
15332
15330
|
function ItemOption({ option, onClick, active }) {
|
|
15333
|
-
return /* @__PURE__ */ jsx4("div", { css: itemOptionCss(active), onClick, children: /* @__PURE__ */ jsxs2(
|
|
15331
|
+
return /* @__PURE__ */ jsx4("div", { css: itemOptionCss(active), onClick, children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react7.Column, { setColumnPadding: "0", width: 6, children: [
|
|
15334
15332
|
/* @__PURE__ */ jsx4(
|
|
15335
15333
|
import_design_system_react_components3.Text,
|
|
15336
15334
|
{
|
|
@@ -15642,7 +15640,7 @@ function AddWorkflowTaskModal({ basePath, onClose }) {
|
|
|
15642
15640
|
width: 650px;
|
|
15643
15641
|
`,
|
|
15644
15642
|
"data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.modals.addTask.wrapper,
|
|
15645
|
-
footer: /* @__PURE__ */ jsxs2(
|
|
15643
|
+
footer: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react8.Row, { flexEnd: true, gap: `var(${import_design_system_react_components4.SpacingToken.Spacing2})`, notPadded: true, children: [
|
|
15646
15644
|
/* @__PURE__ */ jsx4(import_design_system_react_components4.Button, { kind: "secondary", onClick: onClose, size: "medium", children: "Cancel" }),
|
|
15647
15645
|
/* @__PURE__ */ jsx4(
|
|
15648
15646
|
import_design_system_react_components4.Button,
|
|
@@ -15660,9 +15658,9 @@ function AddWorkflowTaskModal({ basePath, onClose }) {
|
|
|
15660
15658
|
] }),
|
|
15661
15659
|
heading: /* @__PURE__ */ jsx4(import_design_system_react_components4.ModalHeader, { title: "Add task" }),
|
|
15662
15660
|
onClose,
|
|
15663
|
-
children: /* @__PURE__ */ jsxs2(
|
|
15661
|
+
children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react8.Row, { notPadded: true, children: [
|
|
15664
15662
|
/* @__PURE__ */ jsxs2(
|
|
15665
|
-
|
|
15663
|
+
import_developer_studio_ui_react8.Column,
|
|
15666
15664
|
{
|
|
15667
15665
|
borderRight: true,
|
|
15668
15666
|
css: css`
|
|
@@ -15701,7 +15699,7 @@ function AddWorkflowTaskModal({ basePath, onClose }) {
|
|
|
15701
15699
|
}
|
|
15702
15700
|
}
|
|
15703
15701
|
return /* @__PURE__ */ jsxs2(
|
|
15704
|
-
|
|
15702
|
+
import_developer_studio_ui_react8.Row,
|
|
15705
15703
|
{
|
|
15706
15704
|
center: true,
|
|
15707
15705
|
css: css`
|
|
@@ -15752,7 +15750,7 @@ function AddWorkflowTaskModal({ basePath, onClose }) {
|
|
|
15752
15750
|
state: location.state,
|
|
15753
15751
|
to: `${basePath}/${name}`,
|
|
15754
15752
|
children: /* @__PURE__ */ jsx4(
|
|
15755
|
-
|
|
15753
|
+
import_developer_studio_ui_react8.Text,
|
|
15756
15754
|
{
|
|
15757
15755
|
"data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.modals.addTask.taskCategoryButton(
|
|
15758
15756
|
name
|
|
@@ -15771,7 +15769,7 @@ function AddWorkflowTaskModal({ basePath, onClose }) {
|
|
|
15771
15769
|
}
|
|
15772
15770
|
),
|
|
15773
15771
|
/* @__PURE__ */ jsx4(
|
|
15774
|
-
|
|
15772
|
+
import_developer_studio_ui_react8.Column,
|
|
15775
15773
|
{
|
|
15776
15774
|
css: css`
|
|
15777
15775
|
height: 350px;
|
|
@@ -15788,7 +15786,7 @@ function AddWorkflowTaskModal({ basePath, onClose }) {
|
|
|
15788
15786
|
})).sort((a, b) => a.name.localeCompare(b.name)).filter(
|
|
15789
15787
|
(el) => el.name.toLowerCase().includes(search.toLowerCase())
|
|
15790
15788
|
);
|
|
15791
|
-
return /* @__PURE__ */ jsx4(
|
|
15789
|
+
return /* @__PURE__ */ jsx4(import_developer_studio_ui_react8.Row, { gap: "4px", notPadded: true, children: /* @__PURE__ */ jsx4(
|
|
15792
15790
|
Options_default,
|
|
15793
15791
|
{
|
|
15794
15792
|
basePath,
|
|
@@ -15817,11 +15815,11 @@ var import_react17 = require("react");
|
|
|
15817
15815
|
var import_react_router_dom3 = require("react-router-dom");
|
|
15818
15816
|
var import_design_system_react_components6 = require("@livechat/design-system-react-components");
|
|
15819
15817
|
var import_developer_studio_api22 = require("@livechat/developer-studio-api");
|
|
15820
|
-
var
|
|
15818
|
+
var import_developer_studio_ui_react10 = require("@livechat/developer-studio-ui-react");
|
|
15821
15819
|
|
|
15822
15820
|
// src/views/Workflows/Creator/Modals/AddTrigger/Options.tsx
|
|
15823
15821
|
var import_design_system_react_components5 = require("@livechat/design-system-react-components");
|
|
15824
|
-
var
|
|
15822
|
+
var import_developer_studio_ui_react9 = require("@livechat/developer-studio-ui-react");
|
|
15825
15823
|
var itemOptionCss2 = (active) => css`
|
|
15826
15824
|
display: flex;
|
|
15827
15825
|
align-items: center;
|
|
@@ -15842,7 +15840,7 @@ var itemOptionCss2 = (active) => css`
|
|
|
15842
15840
|
}
|
|
15843
15841
|
`;
|
|
15844
15842
|
function ItemOption2({ option, onClick, active }) {
|
|
15845
|
-
return /* @__PURE__ */ jsx4("div", { css: itemOptionCss2(active), onClick, children: /* @__PURE__ */ jsxs2(
|
|
15843
|
+
return /* @__PURE__ */ jsx4("div", { css: itemOptionCss2(active), onClick, children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react9.Column, { setColumnPadding: "0", width: 6, children: [
|
|
15846
15844
|
/* @__PURE__ */ jsx4(
|
|
15847
15845
|
import_design_system_react_components5.Text,
|
|
15848
15846
|
{
|
|
@@ -16089,7 +16087,7 @@ function AddWorkflowTriggerModal({
|
|
|
16089
16087
|
width: 650px;
|
|
16090
16088
|
`,
|
|
16091
16089
|
"data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.modals.addTrigger.wrapper,
|
|
16092
|
-
footer: /* @__PURE__ */ jsxs2(
|
|
16090
|
+
footer: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react10.Row, { flexEnd: true, gap: `var(${import_design_system_react_components6.SpacingToken.Spacing2})`, notPadded: true, children: [
|
|
16093
16091
|
/* @__PURE__ */ jsx4(import_design_system_react_components6.Button, { kind: "secondary", onClick: onClose, size: "medium", children: "Cancel" }),
|
|
16094
16092
|
/* @__PURE__ */ jsx4(
|
|
16095
16093
|
import_design_system_react_components6.Button,
|
|
@@ -16107,9 +16105,9 @@ function AddWorkflowTriggerModal({
|
|
|
16107
16105
|
] }),
|
|
16108
16106
|
heading: /* @__PURE__ */ jsx4(import_design_system_react_components6.ModalHeader, { title: "Add trigger" }),
|
|
16109
16107
|
onClose,
|
|
16110
|
-
children: /* @__PURE__ */ jsxs2(
|
|
16108
|
+
children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react10.Row, { notPadded: true, children: [
|
|
16111
16109
|
/* @__PURE__ */ jsxs2(
|
|
16112
|
-
|
|
16110
|
+
import_developer_studio_ui_react10.Column,
|
|
16113
16111
|
{
|
|
16114
16112
|
borderRight: true,
|
|
16115
16113
|
css: css`
|
|
@@ -16148,7 +16146,7 @@ function AddWorkflowTriggerModal({
|
|
|
16148
16146
|
}
|
|
16149
16147
|
}
|
|
16150
16148
|
return /* @__PURE__ */ jsxs2(
|
|
16151
|
-
|
|
16149
|
+
import_developer_studio_ui_react10.Row,
|
|
16152
16150
|
{
|
|
16153
16151
|
center: true,
|
|
16154
16152
|
css: css`
|
|
@@ -16196,7 +16194,7 @@ function AddWorkflowTriggerModal({
|
|
|
16196
16194
|
state: location.state,
|
|
16197
16195
|
to: `${basePath}/${name}`,
|
|
16198
16196
|
children: /* @__PURE__ */ jsx4(
|
|
16199
|
-
|
|
16197
|
+
import_developer_studio_ui_react10.Text,
|
|
16200
16198
|
{
|
|
16201
16199
|
"data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.modals.addTrigger.triggerCategoryButton(
|
|
16202
16200
|
name
|
|
@@ -16216,7 +16214,7 @@ function AddWorkflowTriggerModal({
|
|
|
16216
16214
|
}
|
|
16217
16215
|
),
|
|
16218
16216
|
/* @__PURE__ */ jsx4(
|
|
16219
|
-
|
|
16217
|
+
import_developer_studio_ui_react10.Column,
|
|
16220
16218
|
{
|
|
16221
16219
|
css: css`
|
|
16222
16220
|
height: 350px;
|
|
@@ -16234,7 +16232,7 @@ function AddWorkflowTriggerModal({
|
|
|
16234
16232
|
})).sort((a, b) => a.name.localeCompare(b.name)).filter(
|
|
16235
16233
|
(el) => el.name.toLowerCase().includes(search.toLowerCase())
|
|
16236
16234
|
);
|
|
16237
|
-
return /* @__PURE__ */ jsx4(
|
|
16235
|
+
return /* @__PURE__ */ jsx4(import_developer_studio_ui_react10.Row, { gap: "4px", notPadded: true, children: /* @__PURE__ */ jsx4(
|
|
16238
16236
|
Options_default2,
|
|
16239
16237
|
{
|
|
16240
16238
|
basePath,
|
|
@@ -16261,7 +16259,7 @@ var Modal_default2 = AddWorkflowTriggerModal;
|
|
|
16261
16259
|
// src/views/Workflows/Creator/Modals/Delete/Modal.tsx
|
|
16262
16260
|
var import_design_system_icons3 = require("@livechat/design-system-icons");
|
|
16263
16261
|
var import_design_system_react_components7 = require("@livechat/design-system-react-components");
|
|
16264
|
-
var
|
|
16262
|
+
var import_developer_studio_ui_react11 = require("@livechat/developer-studio-ui-react");
|
|
16265
16263
|
function DeleteWorkflowModal({
|
|
16266
16264
|
version,
|
|
16267
16265
|
onClose
|
|
@@ -16276,7 +16274,7 @@ function DeleteWorkflowModal({
|
|
|
16276
16274
|
} = useWorkflowCreator();
|
|
16277
16275
|
const journey = useWorkflowsJourney();
|
|
16278
16276
|
return /* @__PURE__ */ jsx4(import_design_system_react_components7.Modal, { heading: true, onClose, children: /* @__PURE__ */ jsxs2(
|
|
16279
|
-
|
|
16277
|
+
import_developer_studio_ui_react11.ActionModalContent,
|
|
16280
16278
|
{
|
|
16281
16279
|
actions: /* @__PURE__ */ jsxs2(Fragment4, { children: [
|
|
16282
16280
|
/* @__PURE__ */ jsx4(import_design_system_react_components7.Button, { kind: "secondary", onClick: onClose, children: "Cancel" }),
|
|
@@ -16323,7 +16321,7 @@ function DeleteWorkflowModal({
|
|
|
16323
16321
|
// src/views/Workflows/Creator/Modals/Edit/Modal.tsx
|
|
16324
16322
|
var import_design_system_icons4 = require("@livechat/design-system-icons");
|
|
16325
16323
|
var import_design_system_react_components8 = require("@livechat/design-system-react-components");
|
|
16326
|
-
var
|
|
16324
|
+
var import_developer_studio_ui_react12 = require("@livechat/developer-studio-ui-react");
|
|
16327
16325
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
16328
16326
|
function EditWorkflowModal({ onClose }) {
|
|
16329
16327
|
const navigate = useWorkflowsRelativeNavigate();
|
|
@@ -16336,7 +16334,7 @@ function EditWorkflowModal({ onClose }) {
|
|
|
16336
16334
|
} = useWorkflowCreator();
|
|
16337
16335
|
const journey = useWorkflowsJourney();
|
|
16338
16336
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_design_system_react_components8.Modal, { heading: true, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
16339
|
-
|
|
16337
|
+
import_developer_studio_ui_react12.ActionModalContent,
|
|
16340
16338
|
{
|
|
16341
16339
|
actions: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
16342
16340
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
@@ -16771,7 +16769,7 @@ tags.forEach(function(tagName) {
|
|
|
16771
16769
|
|
|
16772
16770
|
// src/views/Workflows/Creator/Modals/Preview/Modal.tsx
|
|
16773
16771
|
var import_design_system_react_components63 = require("@livechat/design-system-react-components");
|
|
16774
|
-
var
|
|
16772
|
+
var import_developer_studio_ui_react28 = require("@livechat/developer-studio-ui-react");
|
|
16775
16773
|
|
|
16776
16774
|
// src/views/Workflows/Creator/Builder/Diagram.tsx
|
|
16777
16775
|
var import_react86 = require("react");
|
|
@@ -16941,12 +16939,12 @@ var import_react39 = require("react");
|
|
|
16941
16939
|
var import_core = require("@rjsf/core");
|
|
16942
16940
|
var import_design_system_icons10 = require("@livechat/design-system-icons");
|
|
16943
16941
|
var import_design_system_react_components20 = require("@livechat/design-system-react-components");
|
|
16944
|
-
var
|
|
16942
|
+
var import_developer_studio_ui_react17 = require("@livechat/developer-studio-ui-react");
|
|
16945
16943
|
var import_platform_integrations3 = require("@livechat/platform-integrations");
|
|
16946
16944
|
|
|
16947
16945
|
// src/views/Workflows/Creator/Builder/Forms/Schema/overrides/Fields/CustomTags/Field.tsx
|
|
16948
16946
|
var import_react35 = require("react");
|
|
16949
|
-
var
|
|
16947
|
+
var import_developer_studio_ui_react16 = require("@livechat/developer-studio-ui-react");
|
|
16950
16948
|
|
|
16951
16949
|
// src/views/Workflows/Creator/Builder/Forms/Schema/overrides/Fields/CustomTags/TagsPicker/Picker.tsx
|
|
16952
16950
|
var import_react28 = require("react");
|
|
@@ -16956,7 +16954,7 @@ var import_design_system_react_components15 = require("@livechat/design-system-r
|
|
|
16956
16954
|
var import_react26 = require("react");
|
|
16957
16955
|
var import_design_system_icons8 = require("@livechat/design-system-icons");
|
|
16958
16956
|
var import_design_system_react_components14 = require("@livechat/design-system-react-components");
|
|
16959
|
-
var
|
|
16957
|
+
var import_developer_studio_ui_react13 = require("@livechat/developer-studio-ui-react");
|
|
16960
16958
|
|
|
16961
16959
|
// src/views/Workflows/Creator/Builder/Forms/Schema/overrides/Fields/CustomTags/TagsPicker/Tag/Tag.tsx
|
|
16962
16960
|
var import_design_system_react_components13 = require("@livechat/design-system-react-components");
|
|
@@ -17024,7 +17022,7 @@ function CustomTagsPickerTreeNode({
|
|
|
17024
17022
|
},
|
|
17025
17023
|
children: [
|
|
17026
17024
|
/* @__PURE__ */ jsxs2(
|
|
17027
|
-
|
|
17025
|
+
import_developer_studio_ui_react13.Row,
|
|
17028
17026
|
{
|
|
17029
17027
|
center: true,
|
|
17030
17028
|
gap: `var(${import_design_system_react_components14.SpacingToken.Spacing1})`,
|
|
@@ -17065,7 +17063,7 @@ function CustomTagsPickerTreeNode({
|
|
|
17065
17063
|
),
|
|
17066
17064
|
collapsed ? /* @__PURE__ */ jsxs2(Fragment4, { children: [
|
|
17067
17065
|
data.canAddChildren || !data.children.length ? /* @__PURE__ */ jsx4(
|
|
17068
|
-
|
|
17066
|
+
import_developer_studio_ui_react13.Text,
|
|
17069
17067
|
{
|
|
17070
17068
|
css: css`
|
|
17071
17069
|
margin-left: var(${import_design_system_react_components14.SpacingToken.Spacing6});
|
|
@@ -17094,7 +17092,7 @@ function CustomTagsPickerTreeNode({
|
|
|
17094
17092
|
margin-left: var(${import_design_system_react_components14.SpacingToken.Spacing6});
|
|
17095
17093
|
`,
|
|
17096
17094
|
children: /* @__PURE__ */ jsxs2(
|
|
17097
|
-
|
|
17095
|
+
import_developer_studio_ui_react13.Row,
|
|
17098
17096
|
{
|
|
17099
17097
|
center: true,
|
|
17100
17098
|
gap: `var(${import_design_system_react_components14.SpacingToken.Spacing1})`,
|
|
@@ -17103,7 +17101,7 @@ function CustomTagsPickerTreeNode({
|
|
|
17103
17101
|
e.stopPropagation();
|
|
17104
17102
|
},
|
|
17105
17103
|
children: [
|
|
17106
|
-
/* @__PURE__ */ jsx4(
|
|
17104
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react13.Text, { kind: "secondary", children: "New:" }),
|
|
17107
17105
|
/* @__PURE__ */ jsx4(
|
|
17108
17106
|
import_design_system_react_components14.Input,
|
|
17109
17107
|
{
|
|
@@ -17153,7 +17151,7 @@ function CustomTagsPickerTreeNode({
|
|
|
17153
17151
|
}
|
|
17154
17152
|
|
|
17155
17153
|
// src/views/Workflows/Creator/Builder/Forms/Schema/overrides/Fields/CustomTags/TagsPicker/Tree/Tree.tsx
|
|
17156
|
-
var
|
|
17154
|
+
var import_developer_studio_ui_react14 = require("@livechat/developer-studio-ui-react");
|
|
17157
17155
|
|
|
17158
17156
|
// src/views/Workflows/Creator/Builder/Forms/Schema/overrides/Fields/CustomTags/TagsPicker/Tree/utils.ts
|
|
17159
17157
|
function convertToTreeNode(obj, meta, nodeName, path) {
|
|
@@ -17321,10 +17319,10 @@ function CustomTagsPickerTree({
|
|
|
17321
17319
|
advanced
|
|
17322
17320
|
});
|
|
17323
17321
|
if (!tree.length) {
|
|
17324
|
-
return /* @__PURE__ */ jsx4(
|
|
17322
|
+
return /* @__PURE__ */ jsx4(import_developer_studio_ui_react14.Row, { lowMargin: true, lowPadding: true, topMargin: true, verticalCenter: true, children: "No dynamic values to select." });
|
|
17325
17323
|
}
|
|
17326
17324
|
if (search && !tree.some((x) => x.isMatch || x.hasMatch)) {
|
|
17327
|
-
return /* @__PURE__ */ jsx4(
|
|
17325
|
+
return /* @__PURE__ */ jsx4(import_developer_studio_ui_react14.Row, { lowMargin: true, lowPadding: true, topMargin: true, children: "No results match your search criteria" });
|
|
17328
17326
|
}
|
|
17329
17327
|
return /* @__PURE__ */ jsx4(
|
|
17330
17328
|
CustomTagsPickerTreeNode,
|
|
@@ -17434,7 +17432,7 @@ function CustomTagTemplate(tagData, { settings: _s }) {
|
|
|
17434
17432
|
var import_react30 = require("react");
|
|
17435
17433
|
var import_lodash2 = __toESM(require("lodash.debounce"));
|
|
17436
17434
|
var import_design_system_react_components16 = require("@livechat/design-system-react-components");
|
|
17437
|
-
var
|
|
17435
|
+
var import_developer_studio_ui_react15 = require("@livechat/developer-studio-ui-react");
|
|
17438
17436
|
var useCustomTagsInputTagTooltipData = () => {
|
|
17439
17437
|
const [tooltipData, setTooltipData] = (0, import_react30.useState)(
|
|
17440
17438
|
{
|
|
@@ -17483,8 +17481,8 @@ function CustomTagsInputTagTooltip({
|
|
|
17483
17481
|
isVisible: true,
|
|
17484
17482
|
placement: "bottom-start",
|
|
17485
17483
|
triggerRenderer: /* @__PURE__ */ jsx4("span", {}),
|
|
17486
|
-
children: /* @__PURE__ */ jsxs2(
|
|
17487
|
-
/* @__PURE__ */ jsxs2(
|
|
17484
|
+
children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react15.Column, { gap: `var(${import_design_system_react_components16.SpacingToken.Spacing1})`, notPadded: true, children: [
|
|
17485
|
+
/* @__PURE__ */ jsxs2(import_developer_studio_ui_react15.Row, { center: true, gap: `var(${import_design_system_react_components16.SpacingToken.Spacing1})`, notPadded: true, children: [
|
|
17488
17486
|
((_b = (_a = data.tag.__meta.source) == null ? void 0 : _a.customization) == null ? void 0 : _b.provider) ? /* @__PURE__ */ jsx4(
|
|
17489
17487
|
ProductIcon_default,
|
|
17490
17488
|
{
|
|
@@ -17497,12 +17495,12 @@ function CustomTagsInputTagTooltip({
|
|
|
17497
17495
|
((_c = data.tag.__meta.source) == null ? void 0 : _c.index) ? /* @__PURE__ */ jsx4("span", { children: `${data.tag.__meta.source.index}. ` }) : null,
|
|
17498
17496
|
((_e = (_d = data.tag.__meta.source) == null ? void 0 : _d.customization) == null ? void 0 : _e.displayName) ? /* @__PURE__ */ jsx4("span", { children: data.tag.__meta.source.customization.displayName }) : null
|
|
17499
17497
|
] }),
|
|
17500
|
-
/* @__PURE__ */ jsx4(
|
|
17501
|
-
/* @__PURE__ */ jsx4(
|
|
17502
|
-
data.tag.relativePath ? /* @__PURE__ */ jsx4(
|
|
17503
|
-
data.tag.type !== "string" && /* @__PURE__ */ jsx4(
|
|
17498
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react15.Row, { notPadded: true, children: /* @__PURE__ */ jsxs2("div", { children: [
|
|
17499
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react15.TextGroup, { inline: true, label: "Name:", value: data.tag.name }),
|
|
17500
|
+
data.tag.relativePath ? /* @__PURE__ */ jsx4(import_developer_studio_ui_react15.TextGroup, { inline: true, label: "Path:", value: data.tag.relativePath }) : null,
|
|
17501
|
+
data.tag.type !== "string" && /* @__PURE__ */ jsx4(import_developer_studio_ui_react15.TextGroup, { inline: true, label: "type:", value: data.tag.type }),
|
|
17504
17502
|
data.tag.description ? /* @__PURE__ */ jsx4(
|
|
17505
|
-
|
|
17503
|
+
import_developer_studio_ui_react15.TextGroup,
|
|
17506
17504
|
{
|
|
17507
17505
|
label: "Description:",
|
|
17508
17506
|
value: data.tag.description,
|
|
@@ -17510,8 +17508,8 @@ function CustomTagsInputTagTooltip({
|
|
|
17510
17508
|
}
|
|
17511
17509
|
) : null
|
|
17512
17510
|
] }) }),
|
|
17513
|
-
Boolean(data.tag.invalid) && /* @__PURE__ */ jsx4(
|
|
17514
|
-
|
|
17511
|
+
Boolean(data.tag.invalid) && /* @__PURE__ */ jsx4(import_developer_studio_ui_react15.Row, { notPadded: true, children: /* @__PURE__ */ jsx4(
|
|
17512
|
+
import_developer_studio_ui_react15.Text,
|
|
17515
17513
|
{
|
|
17516
17514
|
css: css`
|
|
17517
17515
|
color: var(${import_design_system_react_components16.DesignToken.ContentBasicNegative});
|
|
@@ -18064,7 +18062,7 @@ function CustomTagsField({
|
|
|
18064
18062
|
}) {
|
|
18065
18063
|
const wrapperRef = (0, import_react35.useRef)(null);
|
|
18066
18064
|
const [isPickerVisible, setIsPickerVisible] = (0, import_react35.useState)(false);
|
|
18067
|
-
(0,
|
|
18065
|
+
(0, import_developer_studio_ui_react16.useOnClickOutside)(wrapperRef, () => {
|
|
18068
18066
|
setIsPickerVisible(false);
|
|
18069
18067
|
});
|
|
18070
18068
|
return /* @__PURE__ */ jsx4("div", { css: wrapperCss3, ref: wrapperRef, children: /* @__PURE__ */ jsx4(
|
|
@@ -18208,7 +18206,7 @@ function CustomStringField(props) {
|
|
|
18208
18206
|
resourceConfig ? {
|
|
18209
18207
|
key: "predefined",
|
|
18210
18208
|
element: /* @__PURE__ */ jsx4(import_design_system_react_components20.ActionMenuItem, { children: /* @__PURE__ */ jsx4(
|
|
18211
|
-
|
|
18209
|
+
import_developer_studio_ui_react17.Intro,
|
|
18212
18210
|
{
|
|
18213
18211
|
body: "Data from the provider",
|
|
18214
18212
|
bodyKind: "secondary",
|
|
@@ -18228,7 +18226,7 @@ function CustomStringField(props) {
|
|
|
18228
18226
|
{
|
|
18229
18227
|
key: "custom",
|
|
18230
18228
|
element: /* @__PURE__ */ jsx4(import_design_system_react_components20.ActionMenuItem, { children: /* @__PURE__ */ jsx4(
|
|
18231
|
-
|
|
18229
|
+
import_developer_studio_ui_react17.Intro,
|
|
18232
18230
|
{
|
|
18233
18231
|
body: "Dynamic values from trigger and other tasks",
|
|
18234
18232
|
bodyKind: "secondary",
|
|
@@ -18265,7 +18263,7 @@ function CustomStringField(props) {
|
|
|
18265
18263
|
if (props.schema.enum || props.schema.oneOf) {
|
|
18266
18264
|
return /* @__PURE__ */ jsx4(StringField, __spreadValues({}, props));
|
|
18267
18265
|
}
|
|
18268
|
-
return /* @__PURE__ */ jsxs2(
|
|
18266
|
+
return /* @__PURE__ */ jsxs2(import_developer_studio_ui_react17.Row, { gap: `var(${import_design_system_react_components20.SpacingToken.Spacing1})`, notPadded: true, children: [
|
|
18269
18267
|
/* @__PURE__ */ jsx4("br", {}),
|
|
18270
18268
|
isPredefinedMode ? /* @__PURE__ */ jsx4(
|
|
18271
18269
|
PredefinedCustomStringField,
|
|
@@ -18384,7 +18382,7 @@ var import_utils17 = require("@rjsf/utils");
|
|
|
18384
18382
|
// src/views/Workflows/Creator/Builder/Forms/Schema/overrides/Templates/Other/CustomArrayFieldHeader.tsx
|
|
18385
18383
|
var import_utils16 = require("@rjsf/utils");
|
|
18386
18384
|
var import_design_system_react_components22 = require("@livechat/design-system-react-components");
|
|
18387
|
-
var
|
|
18385
|
+
var import_developer_studio_ui_react18 = require("@livechat/developer-studio-ui-react");
|
|
18388
18386
|
function CustomArrayFieldHeader(props) {
|
|
18389
18387
|
const {
|
|
18390
18388
|
idSchema,
|
|
@@ -18399,8 +18397,8 @@ function CustomArrayFieldHeader(props) {
|
|
|
18399
18397
|
const options = (0, import_utils16.getUiOptions)(uiSchema);
|
|
18400
18398
|
const ArrayFieldTitleTemplate = (0, import_utils16.getTemplate)("ArrayFieldTitleTemplate", registry, options);
|
|
18401
18399
|
const ArrayFieldDescriptionTemplate = (0, import_utils16.getTemplate)("ArrayFieldDescriptionTemplate", registry, options);
|
|
18402
|
-
return /* @__PURE__ */ jsx4(
|
|
18403
|
-
|
|
18400
|
+
return /* @__PURE__ */ jsx4(import_developer_studio_ui_react18.Row, { noWrap: true, notPadded: true, spaceBetween: true, children: /* @__PURE__ */ jsxs2(
|
|
18401
|
+
import_developer_studio_ui_react18.Row,
|
|
18404
18402
|
{
|
|
18405
18403
|
center: true,
|
|
18406
18404
|
gap: `var(${import_design_system_react_components22.SpacingToken.Spacing1})`,
|
|
@@ -18545,7 +18543,7 @@ var import_design_system_react_components25 = require("@livechat/design-system-r
|
|
|
18545
18543
|
// src/views/Workflows/Creator/Builder/Forms/Schema/overrides/Templates/Other/CustomFieldHeader.tsx
|
|
18546
18544
|
var import_utils18 = require("@rjsf/utils");
|
|
18547
18545
|
var import_design_system_react_components24 = require("@livechat/design-system-react-components");
|
|
18548
|
-
var
|
|
18546
|
+
var import_developer_studio_ui_react19 = require("@livechat/developer-studio-ui-react");
|
|
18549
18547
|
var OptionalWrapper = newStyled.div`
|
|
18550
18548
|
font-size: 13px;
|
|
18551
18549
|
font-weight: 400;
|
|
@@ -18570,9 +18568,9 @@ function CustomFieldHeader(props) {
|
|
|
18570
18568
|
options
|
|
18571
18569
|
);
|
|
18572
18570
|
const DescriptionFieldTemplate = (0, import_utils18.getTemplate)("DescriptionFieldTemplate", registry, options);
|
|
18573
|
-
return /* @__PURE__ */ jsxs2(
|
|
18571
|
+
return /* @__PURE__ */ jsxs2(import_developer_studio_ui_react19.Row, { noWrap: true, notPadded: true, spaceBetween: true, children: [
|
|
18574
18572
|
/* @__PURE__ */ jsxs2(
|
|
18575
|
-
|
|
18573
|
+
import_developer_studio_ui_react19.Row,
|
|
18576
18574
|
{
|
|
18577
18575
|
center: true,
|
|
18578
18576
|
gap: `var(${import_design_system_react_components24.SpacingToken.Spacing1})`,
|
|
@@ -19230,7 +19228,7 @@ var Node_default = (0, import_react47.memo)(ForkJoinNode);
|
|
|
19230
19228
|
var import_design_system_icons15 = require("@livechat/design-system-icons");
|
|
19231
19229
|
var import_design_system_react_components34 = require("@livechat/design-system-react-components");
|
|
19232
19230
|
var import_developer_studio_api23 = require("@livechat/developer-studio-api");
|
|
19233
|
-
var
|
|
19231
|
+
var import_developer_studio_ui_react20 = require("@livechat/developer-studio-ui-react");
|
|
19234
19232
|
var Node2 = newStyled.div`
|
|
19235
19233
|
color: var(${import_design_system_react_components34.DesignToken.ContentBasicPrimary});
|
|
19236
19234
|
background-color: ${({ editing }) => editing ? `var(${import_design_system_react_components34.DesignToken.SurfacePrimaryActive})` : `var(${import_design_system_react_components34.DesignToken.SurfacePrimaryDefault})`};
|
|
@@ -19313,7 +19311,7 @@ function HttpNodeBase({
|
|
|
19313
19311
|
}
|
|
19314
19312
|
),
|
|
19315
19313
|
/* @__PURE__ */ jsxs2(
|
|
19316
|
-
|
|
19314
|
+
import_developer_studio_ui_react20.Column,
|
|
19317
19315
|
{
|
|
19318
19316
|
css: css`
|
|
19319
19317
|
width: 100px;
|
|
@@ -19364,12 +19362,12 @@ var import_platform_integrations5 = require("@livechat/platform-integrations");
|
|
|
19364
19362
|
var import_react49 = require("react");
|
|
19365
19363
|
var import_react_router_dom4 = require("react-router-dom");
|
|
19366
19364
|
var import_design_system_react_components35 = require("@livechat/design-system-react-components");
|
|
19367
|
-
var
|
|
19365
|
+
var import_developer_studio_ui_react21 = require("@livechat/developer-studio-ui-react");
|
|
19368
19366
|
var import_platform_integrations4 = require("@livechat/platform-integrations");
|
|
19369
19367
|
function GlobalAccounts(props) {
|
|
19370
19368
|
const { pathname } = (0, import_react_router_dom4.useLocation)();
|
|
19371
|
-
const notifications = (0,
|
|
19372
|
-
const { user } = (0,
|
|
19369
|
+
const notifications = (0, import_developer_studio_ui_react21.useNotificationContext)();
|
|
19370
|
+
const { user } = (0, import_developer_studio_ui_react21.useUserContext)();
|
|
19373
19371
|
const organizationProductsQuery = useFetchOrganizationProducts();
|
|
19374
19372
|
const {
|
|
19375
19373
|
updateOrganizationProducts,
|
|
@@ -19381,9 +19379,9 @@ function GlobalAccounts(props) {
|
|
|
19381
19379
|
const refetch = (0, import_react49.useCallback)(() => {
|
|
19382
19380
|
void organizationProductsQuery.refetch();
|
|
19383
19381
|
}, [organizationProductsQuery]);
|
|
19384
|
-
return /* @__PURE__ */ jsxs2(
|
|
19382
|
+
return /* @__PURE__ */ jsxs2(import_developer_studio_ui_react21.Column, { gap: `var(${import_design_system_react_components35.SpacingToken.Spacing3})`, notPadded: true, children: [
|
|
19385
19383
|
props.product && needToBeActivated ? /* @__PURE__ */ jsxs2(
|
|
19386
|
-
|
|
19384
|
+
import_developer_studio_ui_react21.Card,
|
|
19387
19385
|
{
|
|
19388
19386
|
"data-testId": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.builder.forms.integrations.text.info,
|
|
19389
19387
|
light: true,
|
|
@@ -19398,7 +19396,7 @@ function GlobalAccounts(props) {
|
|
|
19398
19396
|
] }),
|
|
19399
19397
|
props.product === "HelpDesk" && /* @__PURE__ */ jsx4("p", { children: "We can activate your HelpDesk license on your behalf using your registered email. You`'ll automatically start a 14-day trial." }),
|
|
19400
19398
|
/* @__PURE__ */ jsx4("p", { children: "Do you want to proceed?" }),
|
|
19401
|
-
/* @__PURE__ */ jsx4(
|
|
19399
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react21.Row, { flexEnd: true, notPadded: true, children: /* @__PURE__ */ jsx4(
|
|
19402
19400
|
import_design_system_react_components35.Button,
|
|
19403
19401
|
{
|
|
19404
19402
|
"data-testId": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.builder.forms.integrations.text.button,
|
|
@@ -20103,7 +20101,7 @@ var Node_default4 = (0, import_react56.memo)(SwitchNode);
|
|
|
20103
20101
|
// src/views/Workflows/Creator/Builder/Nodes/CustomNodes/TerminateNode/Base.tsx
|
|
20104
20102
|
var import_design_system_icons19 = require("@livechat/design-system-icons");
|
|
20105
20103
|
var import_design_system_react_components40 = require("@livechat/design-system-react-components");
|
|
20106
|
-
var
|
|
20104
|
+
var import_developer_studio_ui_react22 = require("@livechat/developer-studio-ui-react");
|
|
20107
20105
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
20108
20106
|
var Node5 = newStyled.div`
|
|
20109
20107
|
color: var(${import_design_system_react_components40.DesignToken.ContentBasicPrimary});
|
|
@@ -20164,7 +20162,7 @@ function TerminateNodeBase({
|
|
|
20164
20162
|
toolbar,
|
|
20165
20163
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Header5, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Title5, { children: [
|
|
20166
20164
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_design_system_react_components40.Icon, { size: "large", source: import_design_system_icons19.ArrowBarToRight }),
|
|
20167
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
20165
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_developer_studio_ui_react22.Column, { notPadded: true, children: [
|
|
20168
20166
|
((_a = frame == null ? void 0 : frame.__meta) == null ? void 0 : _a.index) !== void 0 ? `${frame.__meta.index}. ` : "",
|
|
20169
20167
|
"END"
|
|
20170
20168
|
] })
|
|
@@ -20260,7 +20258,7 @@ var Node_default5 = (0, import_react58.memo)(TerminateNode);
|
|
|
20260
20258
|
// src/views/Workflows/Creator/Builder/Nodes/CustomNodes/TriggerNode/Base.tsx
|
|
20261
20259
|
var import_design_system_react_components41 = require("@livechat/design-system-react-components");
|
|
20262
20260
|
var import_developer_studio_api25 = require("@livechat/developer-studio-api");
|
|
20263
|
-
var
|
|
20261
|
+
var import_developer_studio_ui_react23 = require("@livechat/developer-studio-ui-react");
|
|
20264
20262
|
var Node6 = newStyled.div`
|
|
20265
20263
|
color: var(${import_design_system_react_components41.DesignToken.ContentBasicPrimary});
|
|
20266
20264
|
background-color: ${({ editing }) => editing ? `var(${import_design_system_react_components41.DesignToken.SurfacePrimaryActive})` : `var(${import_design_system_react_components41.DesignToken.SurfacePrimaryDefault})`};
|
|
@@ -20331,7 +20329,7 @@ function TriggerNodeBase({
|
|
|
20331
20329
|
}
|
|
20332
20330
|
) : null,
|
|
20333
20331
|
/* @__PURE__ */ jsxs2(
|
|
20334
|
-
|
|
20332
|
+
import_developer_studio_ui_react23.Column,
|
|
20335
20333
|
{
|
|
20336
20334
|
css: css`
|
|
20337
20335
|
width: 100px;
|
|
@@ -20545,7 +20543,7 @@ var import_react_router_dom6 = require("react-router-dom");
|
|
|
20545
20543
|
var import_reactflow12 = require("reactflow");
|
|
20546
20544
|
var import_design_system_icons26 = require("@livechat/design-system-icons");
|
|
20547
20545
|
var import_design_system_react_components58 = require("@livechat/design-system-react-components");
|
|
20548
|
-
var
|
|
20546
|
+
var import_developer_studio_ui_react27 = require("@livechat/developer-studio-ui-react");
|
|
20549
20547
|
|
|
20550
20548
|
// src/views/Workflows/Common/One/components/StopGenerateButton.tsx
|
|
20551
20549
|
var import_design_system_icons20 = require("@livechat/design-system-icons");
|
|
@@ -21756,7 +21754,7 @@ function NavigateButton({
|
|
|
21756
21754
|
var import_react80 = require("react");
|
|
21757
21755
|
var import_design_system_icons24 = require("@livechat/design-system-icons");
|
|
21758
21756
|
var import_design_system_react_components54 = require("@livechat/design-system-react-components");
|
|
21759
|
-
var
|
|
21757
|
+
var import_developer_studio_ui_react25 = require("@livechat/developer-studio-ui-react");
|
|
21760
21758
|
|
|
21761
21759
|
// src/views/Workflows/Common/One/components/ApplyWorkflowButton.tsx
|
|
21762
21760
|
var import_react78 = require("react");
|
|
@@ -21812,12 +21810,12 @@ function ApplyWorkflowButton({
|
|
|
21812
21810
|
}
|
|
21813
21811
|
|
|
21814
21812
|
// src/views/Workflows/Common/One/hooks/useMessageBottomBar.ts
|
|
21815
|
-
var
|
|
21813
|
+
var import_developer_studio_ui_react24 = require("@livechat/developer-studio-ui-react");
|
|
21816
21814
|
var useMessageBottomBar = (event) => {
|
|
21817
21815
|
const { text: text2, sessionId } = event;
|
|
21818
|
-
const notifications = (0,
|
|
21816
|
+
const notifications = (0, import_developer_studio_ui_react24.useNotificationContext)();
|
|
21819
21817
|
const handleCopyClick = () => __async(void 0, null, function* () {
|
|
21820
|
-
const isCopied = yield (0,
|
|
21818
|
+
const isCopied = yield (0, import_developer_studio_ui_react24.copyTextToClipboard)(text2);
|
|
21821
21819
|
if (isCopied) {
|
|
21822
21820
|
notifications.addSuccessToast("Message copied successfully");
|
|
21823
21821
|
} else {
|
|
@@ -21852,7 +21850,7 @@ function OneAssistantMessageBottomBar({
|
|
|
21852
21850
|
const numberOfSources = (eventSources == null ? void 0 : eventSources.length) || 0;
|
|
21853
21851
|
const { topSources } = getSources(eventSources);
|
|
21854
21852
|
const { handleCopyClick, handleRateMessageClick } = useMessageBottomBar(event);
|
|
21855
|
-
const sourcesText = (0,
|
|
21853
|
+
const sourcesText = (0, import_developer_studio_ui_react25.plural)(numberOfSources, "Source", "Sources");
|
|
21856
21854
|
return /* @__PURE__ */ jsxs2("div", { css: bottomBarContainer, children: [
|
|
21857
21855
|
/* @__PURE__ */ jsxs2("div", { css: bottomBar2, children: [
|
|
21858
21856
|
/* @__PURE__ */ jsxs2("div", { children: [
|
|
@@ -22165,12 +22163,12 @@ function OneChatFeedContent({
|
|
|
22165
22163
|
// src/views/Workflows/Common/One/widget/OneWidgetHeader.tsx
|
|
22166
22164
|
var import_design_system_icons25 = require("@livechat/design-system-icons");
|
|
22167
22165
|
var import_design_system_react_components57 = require("@livechat/design-system-react-components");
|
|
22168
|
-
var
|
|
22166
|
+
var import_developer_studio_ui_react26 = require("@livechat/developer-studio-ui-react");
|
|
22169
22167
|
function OneWidgetHeader() {
|
|
22170
22168
|
const { toggleOneWidget } = useOneWidgetContext();
|
|
22171
22169
|
return /* @__PURE__ */ jsxs2("div", { css: headerWrapper, children: [
|
|
22172
22170
|
/* @__PURE__ */ jsxs2("div", { children: [
|
|
22173
|
-
/* @__PURE__ */ jsx4(import_design_system_react_components57.Icon, { size: "xlarge", source:
|
|
22171
|
+
/* @__PURE__ */ jsx4(import_design_system_react_components57.Icon, { size: "xlarge", source: import_developer_studio_ui_react26.OneIcon }),
|
|
22174
22172
|
/* @__PURE__ */ jsx4(import_design_system_react_components57.Text, { as: "h2", children: "Copilot" })
|
|
22175
22173
|
] }),
|
|
22176
22174
|
/* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(
|
|
@@ -22287,7 +22285,7 @@ function CustomControls({
|
|
|
22287
22285
|
}
|
|
22288
22286
|
`,
|
|
22289
22287
|
size: "large",
|
|
22290
|
-
source:
|
|
22288
|
+
source: import_developer_studio_ui_react27.OneIcon
|
|
22291
22289
|
}
|
|
22292
22290
|
)
|
|
22293
22291
|
}
|
|
@@ -23047,7 +23045,7 @@ function PreviewWorkflowModal({
|
|
|
23047
23045
|
return /* @__PURE__ */ jsx4(
|
|
23048
23046
|
import_design_system_react_components63.Modal,
|
|
23049
23047
|
{
|
|
23050
|
-
footer: /* @__PURE__ */ jsxs2(
|
|
23048
|
+
footer: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react28.Row, { flexEnd: true, gap: `var(${import_design_system_react_components63.SpacingToken.Spacing2})`, notPadded: true, children: [
|
|
23051
23049
|
/* @__PURE__ */ jsx4(
|
|
23052
23050
|
import_design_system_react_components63.Button,
|
|
23053
23051
|
{
|
|
@@ -23113,7 +23111,7 @@ var Modal_default4 = PreviewWorkflowModalWrapper;
|
|
|
23113
23111
|
// src/views/Workflows/Creator/Modals/Publish/Modal.tsx
|
|
23114
23112
|
var import_design_system_icons27 = require("@livechat/design-system-icons");
|
|
23115
23113
|
var import_design_system_react_components64 = require("@livechat/design-system-react-components");
|
|
23116
|
-
var
|
|
23114
|
+
var import_developer_studio_ui_react29 = require("@livechat/developer-studio-ui-react");
|
|
23117
23115
|
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
23118
23116
|
function PublishWorkflowModal({
|
|
23119
23117
|
onClose
|
|
@@ -23136,7 +23134,7 @@ function PublishWorkflowModal({
|
|
|
23136
23134
|
heading: true,
|
|
23137
23135
|
onClose,
|
|
23138
23136
|
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
23139
|
-
|
|
23137
|
+
import_developer_studio_ui_react29.ActionModalContent,
|
|
23140
23138
|
{
|
|
23141
23139
|
actions: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
|
|
23142
23140
|
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -23186,13 +23184,13 @@ var import_react_router_dom8 = require("react-router-dom");
|
|
|
23186
23184
|
var import_react_router_dom7 = require("react-router-dom");
|
|
23187
23185
|
var import_design_system_icons29 = require("@livechat/design-system-icons");
|
|
23188
23186
|
var import_design_system_react_components67 = require("@livechat/design-system-react-components");
|
|
23189
|
-
var
|
|
23187
|
+
var import_developer_studio_ui_react32 = require("@livechat/developer-studio-ui-react");
|
|
23190
23188
|
|
|
23191
23189
|
// src/views/Workflows/Creator/Panels/Details/Executions/List.tsx
|
|
23192
23190
|
var import_design_system_icons28 = require("@livechat/design-system-icons");
|
|
23193
23191
|
var import_design_system_react_components65 = require("@livechat/design-system-react-components");
|
|
23194
23192
|
var import_developer_studio_api27 = require("@livechat/developer-studio-api");
|
|
23195
|
-
var
|
|
23193
|
+
var import_developer_studio_ui_react30 = require("@livechat/developer-studio-ui-react");
|
|
23196
23194
|
var tableCss = css`
|
|
23197
23195
|
font-size: 13px;
|
|
23198
23196
|
font-weight: 400;
|
|
@@ -23215,7 +23213,7 @@ function WorkflowExecutionList({
|
|
|
23215
23213
|
workflowExecutions
|
|
23216
23214
|
}) {
|
|
23217
23215
|
var _a;
|
|
23218
|
-
return /* @__PURE__ */ jsx4(
|
|
23216
|
+
return /* @__PURE__ */ jsx4(import_developer_studio_ui_react30.Row, { children: /* @__PURE__ */ jsxs2("table", { css: tableCss, children: [
|
|
23219
23217
|
/* @__PURE__ */ jsx4("thead", { children: /* @__PURE__ */ jsxs2("tr", { children: [
|
|
23220
23218
|
/* @__PURE__ */ jsx4("th", { children: "Start date" }),
|
|
23221
23219
|
/* @__PURE__ */ jsx4("th", { children: "End date" }),
|
|
@@ -23226,8 +23224,8 @@ function WorkflowExecutionList({
|
|
|
23226
23224
|
{
|
|
23227
23225
|
"data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.executions.list.row,
|
|
23228
23226
|
children: [
|
|
23229
|
-
/* @__PURE__ */ jsx4("td", { children: (0,
|
|
23230
|
-
/* @__PURE__ */ jsx4("td", { children: (0,
|
|
23227
|
+
/* @__PURE__ */ jsx4("td", { children: (0, import_developer_studio_ui_react30.formatUSADate)(execution.started_at) }),
|
|
23228
|
+
/* @__PURE__ */ jsx4("td", { children: (0, import_developer_studio_ui_react30.formatUSADate)(execution.ended_at) }),
|
|
23231
23229
|
/* @__PURE__ */ jsx4(
|
|
23232
23230
|
"td",
|
|
23233
23231
|
{
|
|
@@ -23259,7 +23257,7 @@ var List_default = WorkflowExecutionList;
|
|
|
23259
23257
|
|
|
23260
23258
|
// src/views/Workflows/Creator/Panels/Details/Info/Info.tsx
|
|
23261
23259
|
var import_design_system_react_components66 = require("@livechat/design-system-react-components");
|
|
23262
|
-
var
|
|
23260
|
+
var import_developer_studio_ui_react31 = require("@livechat/developer-studio-ui-react");
|
|
23263
23261
|
var Label = newStyled.div`
|
|
23264
23262
|
color: var(${import_design_system_react_components66.DesignToken.ContentBasicSecondary});
|
|
23265
23263
|
`;
|
|
@@ -23286,7 +23284,7 @@ function WorkflowDetailsInfo({
|
|
|
23286
23284
|
if (!workflow.isSuccess) {
|
|
23287
23285
|
return;
|
|
23288
23286
|
}
|
|
23289
|
-
return /* @__PURE__ */ jsxs2(
|
|
23287
|
+
return /* @__PURE__ */ jsxs2(import_developer_studio_ui_react31.Column, { gap: 8, setColumnPadding: "0 2rem 0", children: [
|
|
23290
23288
|
/* @__PURE__ */ jsxs2("div", { children: [
|
|
23291
23289
|
/* @__PURE__ */ jsx4(Label, { children: "Date created" }),
|
|
23292
23290
|
/* @__PURE__ */ jsx4(
|
|
@@ -23295,7 +23293,7 @@ function WorkflowDetailsInfo({
|
|
|
23295
23293
|
as: "div",
|
|
23296
23294
|
bold: true,
|
|
23297
23295
|
"data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.info.dateCreated,
|
|
23298
|
-
children: (0,
|
|
23296
|
+
children: (0, import_developer_studio_ui_react31.formatUSADate)(workflow.data.created_at)
|
|
23299
23297
|
}
|
|
23300
23298
|
)
|
|
23301
23299
|
] }),
|
|
@@ -23307,7 +23305,7 @@ function WorkflowDetailsInfo({
|
|
|
23307
23305
|
as: "div",
|
|
23308
23306
|
bold: true,
|
|
23309
23307
|
"data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.info.dateUpdated,
|
|
23310
|
-
children: (0,
|
|
23308
|
+
children: (0, import_developer_studio_ui_react31.formatUSADate)(workflow.data.updated_at || workflow.data.created_at)
|
|
23311
23309
|
}
|
|
23312
23310
|
)
|
|
23313
23311
|
] }),
|
|
@@ -23341,7 +23339,7 @@ function WorkflowDetailsInfo({
|
|
|
23341
23339
|
] }),
|
|
23342
23340
|
/* @__PURE__ */ jsxs2("div", { children: [
|
|
23343
23341
|
/* @__PURE__ */ jsx4(Label, { children: "Tasks" }),
|
|
23344
|
-
/* @__PURE__ */ jsx4(
|
|
23342
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react31.Row, { gap: 4, notPadded: true, children: (_c = workflow.data.tags) == null ? void 0 : _c.map((tag) => /* @__PURE__ */ jsx4(IconWrapper, { children: /* @__PURE__ */ jsx4(
|
|
23345
23343
|
ProductIcon_default,
|
|
23346
23344
|
{
|
|
23347
23345
|
center: true,
|
|
@@ -23396,7 +23394,7 @@ function WorkflowDetailsPanel({
|
|
|
23396
23394
|
const workflowExecutions = ((_d = workflow.data) == null ? void 0 : _d.draft) ? relatedWorkflowExecutionsQuery : workflowExecutionsQuery;
|
|
23397
23395
|
const isLoading = workflow.isLoading || workflowExecutions.isLoading;
|
|
23398
23396
|
return /* @__PURE__ */ jsxs2(WorkflowSidebar, { children: [
|
|
23399
|
-
/* @__PURE__ */ jsxs2(
|
|
23397
|
+
/* @__PURE__ */ jsxs2(import_developer_studio_ui_react32.Row, { center: true, lowMargin: true, spaceBetween: true, topMargin: true, children: [
|
|
23400
23398
|
/* @__PURE__ */ jsxs2("div", { children: [
|
|
23401
23399
|
headerType === "name" ? /* @__PURE__ */ jsx4(
|
|
23402
23400
|
import_design_system_react_components67.Text,
|
|
@@ -23422,7 +23420,7 @@ function WorkflowDetailsPanel({
|
|
|
23422
23420
|
}
|
|
23423
23421
|
)
|
|
23424
23422
|
] }),
|
|
23425
|
-
/* @__PURE__ */ jsx4(
|
|
23423
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react32.Row, { center: true, spaceBetween: true, children: /* @__PURE__ */ jsx4(
|
|
23426
23424
|
import_design_system_react_components67.TabsWrapper,
|
|
23427
23425
|
{
|
|
23428
23426
|
css: css`
|
|
@@ -23454,7 +23452,7 @@ function WorkflowDetailsPanel({
|
|
|
23454
23452
|
}
|
|
23455
23453
|
) }),
|
|
23456
23454
|
/* @__PURE__ */ jsx4(WorkflowSidebarContent, { children: isLoading ? /* @__PURE__ */ jsx4(
|
|
23457
|
-
|
|
23455
|
+
import_developer_studio_ui_react32.Row,
|
|
23458
23456
|
{
|
|
23459
23457
|
center: true,
|
|
23460
23458
|
css: css`
|
|
@@ -23499,7 +23497,7 @@ var import_react90 = require("react");
|
|
|
23499
23497
|
var import_react91 = require("@monaco-editor/react");
|
|
23500
23498
|
var import_design_system_icons30 = require("@livechat/design-system-icons");
|
|
23501
23499
|
var import_design_system_react_components68 = require("@livechat/design-system-react-components");
|
|
23502
|
-
var
|
|
23500
|
+
var import_developer_studio_ui_react33 = require("@livechat/developer-studio-ui-react");
|
|
23503
23501
|
var JSON_FILE_NAME = "file:///workflow.json";
|
|
23504
23502
|
function configureMonaco(monaco) {
|
|
23505
23503
|
monaco.languages.typescript.javascriptDefaults.setEagerModelSync(true);
|
|
@@ -23536,7 +23534,7 @@ function WorkflowEditorPanel({ onClose }) {
|
|
|
23536
23534
|
trigger: workflow.trigger
|
|
23537
23535
|
};
|
|
23538
23536
|
return /* @__PURE__ */ jsxs2(WorkflowSidebar, { width: "700px", children: [
|
|
23539
|
-
/* @__PURE__ */ jsxs2(
|
|
23537
|
+
/* @__PURE__ */ jsxs2(import_developer_studio_ui_react33.Row, { center: true, lowMargin: true, spaceBetween: true, topMargin: true, children: [
|
|
23540
23538
|
/* @__PURE__ */ jsx4(import_design_system_react_components68.Heading, { as: "span", size: "sm", children: "JSON Editor" }),
|
|
23541
23539
|
/* @__PURE__ */ jsx4(
|
|
23542
23540
|
import_design_system_react_components68.Button,
|
|
@@ -23599,7 +23597,7 @@ var Panel_default2 = WorkflowEditorPanel;
|
|
|
23599
23597
|
var import_design_system_icons31 = require("@livechat/design-system-icons");
|
|
23600
23598
|
var import_design_system_react_components69 = require("@livechat/design-system-react-components");
|
|
23601
23599
|
var import_developer_studio_api28 = require("@livechat/developer-studio-api");
|
|
23602
|
-
var
|
|
23600
|
+
var import_developer_studio_ui_react34 = require("@livechat/developer-studio-ui-react");
|
|
23603
23601
|
var import_styles4 = require("react-js-cron/dist/styles.css");
|
|
23604
23602
|
var formCss = () => css`
|
|
23605
23603
|
> form {
|
|
@@ -23763,7 +23761,7 @@ function WorkflowElementPanel() {
|
|
|
23763
23761
|
"data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.element.wrapper,
|
|
23764
23762
|
children: [
|
|
23765
23763
|
" ",
|
|
23766
|
-
/* @__PURE__ */ jsxs2(
|
|
23764
|
+
/* @__PURE__ */ jsxs2(import_developer_studio_ui_react34.Row, { center: true, setRowPadding: "12px 24px", spaceBetween: true, children: [
|
|
23767
23765
|
/* @__PURE__ */ jsx4(
|
|
23768
23766
|
Header7,
|
|
23769
23767
|
{
|
|
@@ -23791,7 +23789,7 @@ function WorkflowElementPanel() {
|
|
|
23791
23789
|
source: import_design_system_icons31.Automation
|
|
23792
23790
|
}
|
|
23793
23791
|
) }),
|
|
23794
|
-
/* @__PURE__ */ jsxs2(
|
|
23792
|
+
/* @__PURE__ */ jsxs2(import_developer_studio_ui_react34.Column, { noFlexBasis: true, notPadded: true, children: [
|
|
23795
23793
|
/* @__PURE__ */ jsxs2("strong", { children: [
|
|
23796
23794
|
((_b = frame == null ? void 0 : frame.__meta) == null ? void 0 : _b.index) !== void 0 ? `${frame.__meta.index}. ` : "",
|
|
23797
23795
|
(_c = config2.customization.displayName) != null ? _c : data.type === NodeNames.switch ? "Condition" : data.type === NodeNames.http ? "Custom HTTP" : data.type === NodeNames.terminate ? "End workflow" : ""
|
|
@@ -23812,7 +23810,7 @@ function WorkflowElementPanel() {
|
|
|
23812
23810
|
}
|
|
23813
23811
|
)
|
|
23814
23812
|
] }),
|
|
23815
|
-
/* @__PURE__ */ jsx4(
|
|
23813
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react34.Row, { css: formCss, children: contentHandler() })
|
|
23816
23814
|
]
|
|
23817
23815
|
}
|
|
23818
23816
|
);
|
|
@@ -23823,7 +23821,7 @@ var Panel_default3 = WorkflowElementPanel;
|
|
|
23823
23821
|
var import_react93 = require("react");
|
|
23824
23822
|
var import_design_system_icons32 = require("@livechat/design-system-icons");
|
|
23825
23823
|
var import_design_system_react_components70 = require("@livechat/design-system-react-components");
|
|
23826
|
-
var
|
|
23824
|
+
var import_developer_studio_ui_react35 = require("@livechat/developer-studio-ui-react");
|
|
23827
23825
|
function WorkflowCreatorNavbar() {
|
|
23828
23826
|
var _a, _b, _c, _d, _e;
|
|
23829
23827
|
const navigate = useWorkflowsRelativeNavigate();
|
|
@@ -23846,7 +23844,7 @@ function WorkflowCreatorNavbar() {
|
|
|
23846
23844
|
(0, import_react93.useEffect)(() => {
|
|
23847
23845
|
setWorkflowName(workflow.name);
|
|
23848
23846
|
}, [workflow.name]);
|
|
23849
|
-
(0,
|
|
23847
|
+
(0, import_developer_studio_ui_react35.useOnClickOutside)(inputRef, () => {
|
|
23850
23848
|
setIsNameChanging(false);
|
|
23851
23849
|
});
|
|
23852
23850
|
const menuOptions = [
|
|
@@ -23893,7 +23891,7 @@ function WorkflowCreatorNavbar() {
|
|
|
23893
23891
|
}));
|
|
23894
23892
|
};
|
|
23895
23893
|
return /* @__PURE__ */ jsxs2(
|
|
23896
|
-
|
|
23894
|
+
import_developer_studio_ui_react35.Row,
|
|
23897
23895
|
{
|
|
23898
23896
|
borderBottom: true,
|
|
23899
23897
|
center: true,
|
|
@@ -23919,9 +23917,9 @@ function WorkflowCreatorNavbar() {
|
|
|
23919
23917
|
}
|
|
23920
23918
|
}
|
|
23921
23919
|
),
|
|
23922
|
-
/* @__PURE__ */ jsxs2(
|
|
23923
|
-
/* @__PURE__ */ jsx4(
|
|
23924
|
-
/* @__PURE__ */ jsx4(
|
|
23920
|
+
/* @__PURE__ */ jsxs2(import_developer_studio_ui_react35.Row, { center: true, noMaxWidth: true, setRowPadding: "4px 16px", spaceBetween: true, children: [
|
|
23921
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react35.Column, {}),
|
|
23922
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react35.Column, { center: true, children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react35.Row, { center: true, noWrap: true, verticalCenter: true, children: [
|
|
23925
23923
|
/* @__PURE__ */ jsx4(
|
|
23926
23924
|
import_design_system_react_components70.FormField,
|
|
23927
23925
|
{
|
|
@@ -23993,8 +23991,8 @@ function WorkflowCreatorNavbar() {
|
|
|
23993
23991
|
}
|
|
23994
23992
|
)
|
|
23995
23993
|
] }) }),
|
|
23996
|
-
/* @__PURE__ */ jsx4(
|
|
23997
|
-
|
|
23994
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react35.Column, { setColumnPadding: "0", children: /* @__PURE__ */ jsxs2(
|
|
23995
|
+
import_developer_studio_ui_react35.Row,
|
|
23998
23996
|
{
|
|
23999
23997
|
center: true,
|
|
24000
23998
|
css: css`
|
|
@@ -24145,14 +24143,14 @@ function WorkflowCreator() {
|
|
|
24145
24143
|
const navigate = useWorkflowsRelativeNavigate();
|
|
24146
24144
|
const workflowQuery = useFetchWorkflow(id === "new" ? void 0 : id);
|
|
24147
24145
|
const credentialsQuery = (0, import_platform_integrations6.useFetchIntegrationCredentialsQuery)();
|
|
24148
|
-
const organizationProducts = (0,
|
|
24146
|
+
const organizationProducts = (0, import_developer_studio_ui_react36.useFetchOrganizationProducts)();
|
|
24149
24147
|
useFetchWorkflow((_a = workflowQuery.data) == null ? void 0 : _a.related_workflow_id);
|
|
24150
24148
|
if (!id) {
|
|
24151
24149
|
return;
|
|
24152
24150
|
}
|
|
24153
24151
|
const isLoading = workflowQuery.isLoading || credentialsQuery.isInitialLoading || organizationProducts.isInitialLoading;
|
|
24154
24152
|
if (id !== "new" && isLoading) {
|
|
24155
|
-
return /* @__PURE__ */ jsx4(
|
|
24153
|
+
return /* @__PURE__ */ jsx4(import_developer_studio_ui_react36.Loader, { stretch: true });
|
|
24156
24154
|
}
|
|
24157
24155
|
if (id !== "new" && !workflowQuery.isSuccess) {
|
|
24158
24156
|
throw new Error("Couldn't load workflow");
|
|
@@ -24275,7 +24273,7 @@ var Creator_default = WorkflowCreator;
|
|
|
24275
24273
|
|
|
24276
24274
|
// src/views/Workflows/List/index.tsx
|
|
24277
24275
|
var import_react_router_dom14 = require("react-router-dom");
|
|
24278
|
-
var
|
|
24276
|
+
var import_developer_studio_ui_react47 = require("@livechat/developer-studio-ui-react");
|
|
24279
24277
|
|
|
24280
24278
|
// src/views/Workflows/List/Modals/Create/index.tsx
|
|
24281
24279
|
var import_react_router_dom12 = require("react-router-dom");
|
|
@@ -24288,13 +24286,13 @@ var import_react_router_dom11 = require("react-router-dom");
|
|
|
24288
24286
|
var import_react95 = require("react");
|
|
24289
24287
|
var import_design_system_icons34 = require("@livechat/design-system-icons");
|
|
24290
24288
|
var import_design_system_react_components73 = require("@livechat/design-system-react-components");
|
|
24291
|
-
var
|
|
24289
|
+
var import_developer_studio_ui_react38 = require("@livechat/developer-studio-ui-react");
|
|
24292
24290
|
|
|
24293
24291
|
// src/views/Workflows/Common/Icons/TemplateCategoryIcon.tsx
|
|
24294
24292
|
var import_design_system_icons33 = require("@livechat/design-system-icons");
|
|
24295
24293
|
var import_design_system_react_components72 = require("@livechat/design-system-react-components");
|
|
24296
24294
|
var import_developer_studio_api29 = require("@livechat/developer-studio-api");
|
|
24297
|
-
var
|
|
24295
|
+
var import_developer_studio_ui_react37 = require("@livechat/developer-studio-ui-react");
|
|
24298
24296
|
function WorkflowTemplateCategoryIcon(props) {
|
|
24299
24297
|
const icons = {
|
|
24300
24298
|
[import_developer_studio_api29.WorkflowTemplateCategory.NotificationAndAlerts]: import_design_system_icons33.Notifications,
|
|
@@ -24303,7 +24301,7 @@ function WorkflowTemplateCategoryIcon(props) {
|
|
|
24303
24301
|
[import_developer_studio_api29.WorkflowTemplateCategory.ChatManagement]: import_design_system_icons33.ChatDots,
|
|
24304
24302
|
[import_developer_studio_api29.WorkflowTemplateCategory.CustomerExperience]: import_design_system_icons33.Smiles
|
|
24305
24303
|
};
|
|
24306
|
-
return /* @__PURE__ */ jsxs2(
|
|
24304
|
+
return /* @__PURE__ */ jsxs2(import_developer_studio_ui_react37.Row, { gap: `var(${import_design_system_react_components72.SpacingToken.Spacing1})`, noWrap: true, notPadded: true, children: [
|
|
24307
24305
|
/* @__PURE__ */ jsx4(
|
|
24308
24306
|
import_design_system_react_components72.Icon,
|
|
24309
24307
|
{
|
|
@@ -24411,7 +24409,7 @@ function WorkflowTemplatePreviewModal({
|
|
|
24411
24409
|
import_design_system_react_components73.Modal,
|
|
24412
24410
|
{
|
|
24413
24411
|
"data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.modals.previewTemplate.wrapper,
|
|
24414
|
-
footer: /* @__PURE__ */ jsxs2(
|
|
24412
|
+
footer: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react38.Row, { flexEnd: true, gap: `var(${import_design_system_react_components73.SpacingToken.Spacing3})`, notPadded: true, children: [
|
|
24415
24413
|
/* @__PURE__ */ jsx4(
|
|
24416
24414
|
import_design_system_react_components73.Button,
|
|
24417
24415
|
{
|
|
@@ -24440,7 +24438,7 @@ function WorkflowTemplatePreviewModal({
|
|
|
24440
24438
|
heading: /* @__PURE__ */ jsx4(
|
|
24441
24439
|
import_design_system_react_components73.ModalHeader,
|
|
24442
24440
|
{
|
|
24443
|
-
title: /* @__PURE__ */ jsxs2(
|
|
24441
|
+
title: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react38.Row, { gap: `var(${import_design_system_react_components73.SpacingToken.Spacing3})`, notPadded: true, children: [
|
|
24444
24442
|
/* @__PURE__ */ jsx4(
|
|
24445
24443
|
import_design_system_react_components73.Button,
|
|
24446
24444
|
{
|
|
@@ -24456,9 +24454,9 @@ function WorkflowTemplatePreviewModal({
|
|
|
24456
24454
|
}
|
|
24457
24455
|
),
|
|
24458
24456
|
onClose: handleClose,
|
|
24459
|
-
children: /* @__PURE__ */ jsxs2(
|
|
24457
|
+
children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react38.Row, { noWrap: true, notPadded: true, children: [
|
|
24460
24458
|
/* @__PURE__ */ jsxs2(
|
|
24461
|
-
|
|
24459
|
+
import_developer_studio_ui_react38.Column,
|
|
24462
24460
|
{
|
|
24463
24461
|
css: css`
|
|
24464
24462
|
padding-inline: var(${import_design_system_react_components73.SpacingToken.Spacing5});
|
|
@@ -24502,7 +24500,7 @@ function WorkflowTemplatePreviewModal({
|
|
|
24502
24500
|
children: "Products used:"
|
|
24503
24501
|
}
|
|
24504
24502
|
),
|
|
24505
|
-
/* @__PURE__ */ jsx4(
|
|
24503
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react38.Row, { gap: `var(${import_design_system_react_components73.SpacingToken.Spacing1})`, notPadded: true, children: renderProductTags(template.products) })
|
|
24506
24504
|
] })
|
|
24507
24505
|
]
|
|
24508
24506
|
}
|
|
@@ -24558,14 +24556,14 @@ var import_design_system_react_components79 = require("@livechat/design-system-r
|
|
|
24558
24556
|
var import_react101 = require("react");
|
|
24559
24557
|
var import_design_system_icons37 = require("@livechat/design-system-icons");
|
|
24560
24558
|
var import_design_system_react_components78 = require("@livechat/design-system-react-components");
|
|
24561
|
-
var
|
|
24559
|
+
var import_developer_studio_ui_react43 = require("@livechat/developer-studio-ui-react");
|
|
24562
24560
|
|
|
24563
24561
|
// src/views/Workflows/List/Modals/TemplateList/Filters/Category.tsx
|
|
24564
24562
|
var import_react98 = require("react");
|
|
24565
24563
|
var import_design_system_icons35 = require("@livechat/design-system-icons");
|
|
24566
24564
|
var import_design_system_react_components74 = require("@livechat/design-system-react-components");
|
|
24567
24565
|
var import_developer_studio_api30 = require("@livechat/developer-studio-api");
|
|
24568
|
-
var
|
|
24566
|
+
var import_developer_studio_ui_react39 = require("@livechat/developer-studio-ui-react");
|
|
24569
24567
|
function WorkflowTemplatesCategoryFilter({
|
|
24570
24568
|
handleCategory,
|
|
24571
24569
|
category
|
|
@@ -24574,7 +24572,7 @@ function WorkflowTemplatesCategoryFilter({
|
|
|
24574
24572
|
const getItem = (0, import_react98.useCallback)(
|
|
24575
24573
|
(category2, icon2) => ({
|
|
24576
24574
|
key: category2,
|
|
24577
|
-
element: /* @__PURE__ */ jsxs2(
|
|
24575
|
+
element: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react39.Row, { gap: `var(${import_design_system_react_components74.SpacingToken.Spacing1});`, notPadded: true, children: [
|
|
24578
24576
|
icon2 ? /* @__PURE__ */ jsx4(import_design_system_react_components74.Icon, { source: icon2 }) : void 0,
|
|
24579
24577
|
category2
|
|
24580
24578
|
] }),
|
|
@@ -24627,7 +24625,7 @@ var import_react99 = require("react");
|
|
|
24627
24625
|
var import_design_system_icons36 = require("@livechat/design-system-icons");
|
|
24628
24626
|
var import_design_system_react_components75 = require("@livechat/design-system-react-components");
|
|
24629
24627
|
var import_developer_studio_api31 = require("@livechat/developer-studio-api");
|
|
24630
|
-
var
|
|
24628
|
+
var import_developer_studio_ui_react40 = require("@livechat/developer-studio-ui-react");
|
|
24631
24629
|
function WorkflowTemplatesProductFilter({
|
|
24632
24630
|
handleProduct,
|
|
24633
24631
|
product
|
|
@@ -24636,7 +24634,7 @@ function WorkflowTemplatesProductFilter({
|
|
|
24636
24634
|
const getItem = (0, import_react99.useCallback)(
|
|
24637
24635
|
(product2, icon2) => ({
|
|
24638
24636
|
key: product2,
|
|
24639
|
-
element: /* @__PURE__ */ jsxs2(
|
|
24637
|
+
element: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react40.Row, { gap: `var(${import_design_system_react_components75.SpacingToken.Spacing1});`, notPadded: true, children: [
|
|
24640
24638
|
icon2 ? /* @__PURE__ */ jsx4(import_design_system_react_components75.Icon, { source: icon2 }) : void 0,
|
|
24641
24639
|
product2
|
|
24642
24640
|
] }),
|
|
@@ -24688,7 +24686,7 @@ var Product_default = WorkflowTemplatesProductFilter;
|
|
|
24688
24686
|
|
|
24689
24687
|
// src/views/Workflows/List/Home/Cards/Scratch.tsx
|
|
24690
24688
|
var import_design_system_react_components76 = require("@livechat/design-system-react-components");
|
|
24691
|
-
var
|
|
24689
|
+
var import_developer_studio_ui_react41 = require("@livechat/developer-studio-ui-react");
|
|
24692
24690
|
function WorkflowScratchCard({
|
|
24693
24691
|
title,
|
|
24694
24692
|
icon: icon2,
|
|
@@ -24700,10 +24698,10 @@ function WorkflowScratchCard({
|
|
|
24700
24698
|
journey.draft.create.actions.click(openOne ? "withAI" : "empty");
|
|
24701
24699
|
navigate("/new", { state: { openOne } });
|
|
24702
24700
|
};
|
|
24703
|
-
return /* @__PURE__ */ jsxs2(
|
|
24704
|
-
/* @__PURE__ */ jsxs2(
|
|
24701
|
+
return /* @__PURE__ */ jsxs2(import_developer_studio_ui_react41.Card, { hover: true, light: true, onClick: handleClick, rounded: true, width: "100%", children: [
|
|
24702
|
+
/* @__PURE__ */ jsxs2(import_developer_studio_ui_react41.Row, { noWrap: true, notPadded: true, spaceBetween: true, children: [
|
|
24705
24703
|
/* @__PURE__ */ jsx4(import_design_system_react_components76.Icon, { kind: "primary", size: "xlarge", source: icon2 }),
|
|
24706
|
-
openOne ? /* @__PURE__ */ jsx4(
|
|
24704
|
+
openOne ? /* @__PURE__ */ jsx4(import_developer_studio_ui_react41.BetaTag, { darkTag: getWorkflowsEnv("isHeadless"), children: "Beta" }) : null
|
|
24707
24705
|
] }),
|
|
24708
24706
|
/* @__PURE__ */ jsx4(
|
|
24709
24707
|
import_design_system_react_components76.Heading,
|
|
@@ -24722,7 +24720,7 @@ var Scratch_default = WorkflowScratchCard;
|
|
|
24722
24720
|
|
|
24723
24721
|
// src/views/Workflows/List/Home/Cards/Template.tsx
|
|
24724
24722
|
var import_design_system_react_components77 = require("@livechat/design-system-react-components");
|
|
24725
|
-
var
|
|
24723
|
+
var import_developer_studio_ui_react42 = require("@livechat/developer-studio-ui-react");
|
|
24726
24724
|
var IconWrapper2 = newStyled.div`
|
|
24727
24725
|
display: flex;
|
|
24728
24726
|
align-items: center;
|
|
@@ -24740,7 +24738,7 @@ function WorkflowTemplateCard({
|
|
|
24740
24738
|
}) {
|
|
24741
24739
|
const navigate = useWorkflowsRelativeNavigate();
|
|
24742
24740
|
return /* @__PURE__ */ jsx4(
|
|
24743
|
-
|
|
24741
|
+
import_developer_studio_ui_react42.Card,
|
|
24744
24742
|
{
|
|
24745
24743
|
border: true,
|
|
24746
24744
|
"data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.home.cards.template.wrapper,
|
|
@@ -24753,7 +24751,7 @@ function WorkflowTemplateCard({
|
|
|
24753
24751
|
rounded: true,
|
|
24754
24752
|
width: "100%",
|
|
24755
24753
|
children: /* @__PURE__ */ jsxs2(
|
|
24756
|
-
|
|
24754
|
+
import_developer_studio_ui_react42.Column,
|
|
24757
24755
|
{
|
|
24758
24756
|
gap: `var(${import_design_system_react_components77.SpacingToken.Spacing4})`,
|
|
24759
24757
|
inheritHeight: true,
|
|
@@ -24762,11 +24760,11 @@ function WorkflowTemplateCard({
|
|
|
24762
24760
|
notPadded: true,
|
|
24763
24761
|
spaceBetween: true,
|
|
24764
24762
|
children: [
|
|
24765
|
-
/* @__PURE__ */ jsxs2(
|
|
24763
|
+
/* @__PURE__ */ jsxs2(import_developer_studio_ui_react42.Column, { gap: `var(${import_design_system_react_components77.SpacingToken.Spacing4})`, noFlexBasis: true, notPadded: true, children: [
|
|
24766
24764
|
/* @__PURE__ */ jsx4(TemplateCategoryIcon_default, { category }),
|
|
24767
24765
|
/* @__PURE__ */ jsx4(import_design_system_react_components77.Heading, { as: "div", size: "xs", children: name })
|
|
24768
24766
|
] }),
|
|
24769
|
-
/* @__PURE__ */ jsx4(
|
|
24767
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react42.Row, { gap: `var(${import_design_system_react_components77.SpacingToken.Spacing1})`, noWrap: true, notPadded: true, children: icons.map((icon2, i) => /* @__PURE__ */ jsx4(IconWrapper2, { children: /* @__PURE__ */ jsx4(ProductIcon_default, { height: 5, product: icon2, width: 5 }) }, i.toString())) })
|
|
24770
24768
|
]
|
|
24771
24769
|
}
|
|
24772
24770
|
)
|
|
@@ -24802,8 +24800,8 @@ function WorkflowsHome({ isOnModal }) {
|
|
|
24802
24800
|
(0, import_react101.useEffect)(() => {
|
|
24803
24801
|
journey.template.list.loaded();
|
|
24804
24802
|
}, []);
|
|
24805
|
-
return /* @__PURE__ */ jsx4(
|
|
24806
|
-
|
|
24803
|
+
return /* @__PURE__ */ jsx4(import_developer_studio_ui_react43.Column, { notPadded: true, width: 12, children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react43.Row, { notPadded: true, verticalCenter: true, children: /* @__PURE__ */ jsxs2(
|
|
24804
|
+
import_developer_studio_ui_react43.Column,
|
|
24807
24805
|
{
|
|
24808
24806
|
gap: `var(${import_design_system_react_components78.SpacingToken.Spacing3})`,
|
|
24809
24807
|
noFlexBasis: true,
|
|
@@ -24811,14 +24809,14 @@ function WorkflowsHome({ isOnModal }) {
|
|
|
24811
24809
|
width: 9,
|
|
24812
24810
|
children: [
|
|
24813
24811
|
/* @__PURE__ */ jsx4(
|
|
24814
|
-
|
|
24812
|
+
import_developer_studio_ui_react43.Intro,
|
|
24815
24813
|
{
|
|
24816
24814
|
header: "Start from scratch",
|
|
24817
24815
|
headerSize: isOnModal ? "xs" : "s"
|
|
24818
24816
|
}
|
|
24819
24817
|
),
|
|
24820
24818
|
/* @__PURE__ */ jsxs2(
|
|
24821
|
-
|
|
24819
|
+
import_developer_studio_ui_react43.Row,
|
|
24822
24820
|
{
|
|
24823
24821
|
bottomMargin: true,
|
|
24824
24822
|
gap: `var(${import_design_system_react_components78.SpacingToken.Spacing3})`,
|
|
@@ -24840,13 +24838,13 @@ function WorkflowsHome({ isOnModal }) {
|
|
|
24840
24838
|
}
|
|
24841
24839
|
),
|
|
24842
24840
|
/* @__PURE__ */ jsx4(
|
|
24843
|
-
|
|
24841
|
+
import_developer_studio_ui_react43.Intro,
|
|
24844
24842
|
{
|
|
24845
24843
|
header: "Start with a template",
|
|
24846
24844
|
headerSize: isOnModal ? "xs" : "s"
|
|
24847
24845
|
}
|
|
24848
24846
|
),
|
|
24849
|
-
/* @__PURE__ */ jsxs2(
|
|
24847
|
+
/* @__PURE__ */ jsxs2(import_developer_studio_ui_react43.Row, { gap: `var(${import_design_system_react_components78.SpacingToken.Spacing2})`, notPadded: true, children: [
|
|
24850
24848
|
/* @__PURE__ */ jsx4(
|
|
24851
24849
|
Product_default,
|
|
24852
24850
|
{
|
|
@@ -24928,7 +24926,7 @@ var Create_default = WorkflowCreate;
|
|
|
24928
24926
|
// src/views/Workflows/List/View.tsx
|
|
24929
24927
|
var import_react110 = require("react");
|
|
24930
24928
|
var import_design_system_react_components84 = require("@livechat/design-system-react-components");
|
|
24931
|
-
var
|
|
24929
|
+
var import_developer_studio_ui_react46 = require("@livechat/developer-studio-ui-react");
|
|
24932
24930
|
|
|
24933
24931
|
// src/views/Workflows/Creator/LiveChatNavbar.tsx
|
|
24934
24932
|
var import_react104 = require("react");
|
|
@@ -24983,7 +24981,7 @@ var LiveChatNavbar_default = LiveChatNavbar;
|
|
|
24983
24981
|
|
|
24984
24982
|
// src/views/Workflows/List/Grid/Grid.tsx
|
|
24985
24983
|
var import_design_system_react_components83 = require("@livechat/design-system-react-components");
|
|
24986
|
-
var
|
|
24984
|
+
var import_developer_studio_ui_react45 = require("@livechat/developer-studio-ui-react");
|
|
24987
24985
|
|
|
24988
24986
|
// src/views/Workflows/List/Grid/Filters/StatusFilter.tsx
|
|
24989
24987
|
var import_react106 = require("react");
|
|
@@ -25057,12 +25055,12 @@ var import_react_router_dom13 = require("react-router-dom");
|
|
|
25057
25055
|
var import_design_system_icons40 = require("@livechat/design-system-icons");
|
|
25058
25056
|
var import_design_system_react_components82 = require("@livechat/design-system-react-components");
|
|
25059
25057
|
var import_developer_studio_api32 = require("@livechat/developer-studio-api");
|
|
25060
|
-
var
|
|
25058
|
+
var import_developer_studio_ui_react44 = require("@livechat/developer-studio-ui-react");
|
|
25061
25059
|
function WorkflowsTable({ workflowsQuery, state }) {
|
|
25062
25060
|
var _a, _b, _c;
|
|
25063
25061
|
const location = (0, import_react_router_dom13.useLocation)();
|
|
25064
25062
|
const navigate = useWorkflowsRelativeNavigate();
|
|
25065
|
-
const notifications = (0,
|
|
25063
|
+
const notifications = (0, import_developer_studio_ui_react44.useNotificationContext)();
|
|
25066
25064
|
const deleteAction = useDeleteWorkflow();
|
|
25067
25065
|
const activateWorkflowAction = useActivateWorkflow();
|
|
25068
25066
|
const journey = useWorkflowsJourney();
|
|
@@ -25116,7 +25114,7 @@ function WorkflowsTable({ workflowsQuery, state }) {
|
|
|
25116
25114
|
[navigate]
|
|
25117
25115
|
);
|
|
25118
25116
|
return /* @__PURE__ */ jsxs2(
|
|
25119
|
-
|
|
25117
|
+
import_developer_studio_ui_react44.Table,
|
|
25120
25118
|
{
|
|
25121
25119
|
"data-testId": WORKFLOWS_TEST_SELECTORS.views.workflows.list.grid.table.wrapper,
|
|
25122
25120
|
flowTable: true,
|
|
@@ -25153,7 +25151,7 @@ function WorkflowsTable({ workflowsQuery, state }) {
|
|
|
25153
25151
|
handleSelect(workflow);
|
|
25154
25152
|
},
|
|
25155
25153
|
children: [
|
|
25156
|
-
/* @__PURE__ */ jsx4("td", { width: "45%", children: /* @__PURE__ */ jsxs2(
|
|
25154
|
+
/* @__PURE__ */ jsx4("td", { width: "45%", children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react44.Row, { gap: `var(${import_design_system_react_components82.SpacingToken.Spacing2})`, noWrap: true, notPadded: true, children: [
|
|
25157
25155
|
/* @__PURE__ */ jsx4(import_design_system_react_components82.Text, { noMargin: true, size: "sm", children: workflow.name }),
|
|
25158
25156
|
workflow.related_workflow_id ? /* @__PURE__ */ jsx4(
|
|
25159
25157
|
import_design_system_react_components82.Tag,
|
|
@@ -25168,7 +25166,7 @@ function WorkflowsTable({ workflowsQuery, state }) {
|
|
|
25168
25166
|
}
|
|
25169
25167
|
) : null
|
|
25170
25168
|
] }) }),
|
|
25171
|
-
/* @__PURE__ */ jsx4("td", { width: "40%", children: /* @__PURE__ */ jsx4(
|
|
25169
|
+
/* @__PURE__ */ jsx4("td", { width: "40%", children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react44.Row, { gap: 12, notPadded: true, children: (_a2 = workflow.tags) == null ? void 0 : _a2.map((tag) => {
|
|
25172
25170
|
const revertIconColor = getWorkflowsEnv("isHeadless") && (tag.toLowerCase() === "openai" || tag.toLowerCase() === import_developer_studio_api32.IntegrationNames.BigCommerce.toLowerCase());
|
|
25173
25171
|
return /* @__PURE__ */ jsx4(
|
|
25174
25172
|
ProductIcon_default,
|
|
@@ -25187,7 +25185,7 @@ function WorkflowsTable({ workflowsQuery, state }) {
|
|
|
25187
25185
|
{
|
|
25188
25186
|
triggerClassName: "tooltip-trigger",
|
|
25189
25187
|
triggerOnHover: true,
|
|
25190
|
-
triggerRenderer: /* @__PURE__ */ jsx4(
|
|
25188
|
+
triggerRenderer: /* @__PURE__ */ jsx4(import_developer_studio_ui_react44.StopPropagation, { children: /* @__PURE__ */ jsx4(
|
|
25191
25189
|
import_design_system_react_components82.Switch,
|
|
25192
25190
|
{
|
|
25193
25191
|
css: css`
|
|
@@ -25217,7 +25215,7 @@ function WorkflowsTable({ workflowsQuery, state }) {
|
|
|
25217
25215
|
}
|
|
25218
25216
|
}
|
|
25219
25217
|
) }),
|
|
25220
|
-
/* @__PURE__ */ jsx4("td", { align: "right", children: /* @__PURE__ */ jsx4(
|
|
25218
|
+
/* @__PURE__ */ jsx4("td", { align: "right", children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react44.StopPropagation, { children: /* @__PURE__ */ jsx4(
|
|
25221
25219
|
import_design_system_react_components82.ActionMenu,
|
|
25222
25220
|
{
|
|
25223
25221
|
options: [
|
|
@@ -25258,7 +25256,7 @@ function WorkflowsTable({ workflowsQuery, state }) {
|
|
|
25258
25256
|
},
|
|
25259
25257
|
workflow.id
|
|
25260
25258
|
);
|
|
25261
|
-
}) : workflowsQuery.isLoading ? /* @__PURE__ */ jsx4("tr", { children: /* @__PURE__ */ jsx4("td", { align: "center", colSpan: 6, children: /* @__PURE__ */ jsx4(
|
|
25259
|
+
}) : workflowsQuery.isLoading ? /* @__PURE__ */ jsx4("tr", { children: /* @__PURE__ */ jsx4("td", { align: "center", colSpan: 6, children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react44.Loader, { size: "medium" }) }) }) : /* @__PURE__ */ jsx4(
|
|
25262
25260
|
"tr",
|
|
25263
25261
|
{
|
|
25264
25262
|
css: css`
|
|
@@ -25292,7 +25290,7 @@ function WorkflowsGrid({
|
|
|
25292
25290
|
}) {
|
|
25293
25291
|
var _a, _b, _c;
|
|
25294
25292
|
return /* @__PURE__ */ jsx4(
|
|
25295
|
-
|
|
25293
|
+
import_developer_studio_ui_react45.Grid,
|
|
25296
25294
|
{
|
|
25297
25295
|
filters: {
|
|
25298
25296
|
left: /* @__PURE__ */ jsx4(
|
|
@@ -25359,23 +25357,23 @@ function WorkflowListView() {
|
|
|
25359
25357
|
}
|
|
25360
25358
|
}, [hasData]);
|
|
25361
25359
|
if (isLoading) {
|
|
25362
|
-
return /* @__PURE__ */ jsx4(
|
|
25360
|
+
return /* @__PURE__ */ jsx4(import_developer_studio_ui_react46.Loader, { stretch: true });
|
|
25363
25361
|
}
|
|
25364
|
-
return /* @__PURE__ */ jsxs2(
|
|
25365
|
-
getWorkflowsEnv("isLiveChatMode") ? /* @__PURE__ */ jsx4(
|
|
25366
|
-
/* @__PURE__ */ jsxs2(
|
|
25367
|
-
/* @__PURE__ */ jsx4(
|
|
25368
|
-
|
|
25362
|
+
return /* @__PURE__ */ jsxs2(import_developer_studio_ui_react46.View, { center: hasNoData, noWrap: true, stretch: isLoading, children: [
|
|
25363
|
+
getWorkflowsEnv("isLiveChatMode") ? /* @__PURE__ */ jsx4(import_developer_studio_ui_react46.Row, { noMaxWidth: true, notPadded: true, children: /* @__PURE__ */ jsx4(LiveChatNavbar_default, {}) }) : null,
|
|
25364
|
+
/* @__PURE__ */ jsxs2(import_developer_studio_ui_react46.Row, { topMargin: true, verticalCenter: hasNoData, children: [
|
|
25365
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react46.Column, { width: hasNoData ? 10 : 8, children: hasNoData ? /* @__PURE__ */ jsx4(
|
|
25366
|
+
import_developer_studio_ui_react46.Row,
|
|
25369
25367
|
{
|
|
25370
25368
|
"data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.view.emptyInfo,
|
|
25371
25369
|
notPadded: true,
|
|
25372
25370
|
children: /* @__PURE__ */ jsx4(
|
|
25373
|
-
|
|
25371
|
+
import_developer_studio_ui_react46.Intro,
|
|
25374
25372
|
{
|
|
25375
25373
|
body: "Automate your work with an app integration platform. Use AI to quicken the process. Enjoy a simple, no-code setup to streamline tasks you would otherwise do manually.",
|
|
25376
25374
|
center: true,
|
|
25377
|
-
header: /* @__PURE__ */ jsx4(
|
|
25378
|
-
|
|
25375
|
+
header: /* @__PURE__ */ jsx4(import_developer_studio_ui_react46.Column, { notPadded: true, stretch: true, children: /* @__PURE__ */ jsxs2(
|
|
25376
|
+
import_developer_studio_ui_react46.Row,
|
|
25379
25377
|
{
|
|
25380
25378
|
center: true,
|
|
25381
25379
|
gap: `var(${import_design_system_react_components84.SpacingToken.Spacing2})`,
|
|
@@ -25393,14 +25391,14 @@ function WorkflowListView() {
|
|
|
25393
25391
|
)
|
|
25394
25392
|
}
|
|
25395
25393
|
) : /* @__PURE__ */ jsx4(
|
|
25396
|
-
|
|
25394
|
+
import_developer_studio_ui_react46.Intro,
|
|
25397
25395
|
{
|
|
25398
25396
|
body: "Create custom workflows to automate your work.",
|
|
25399
25397
|
bodySize: "s",
|
|
25400
25398
|
header: "Your workflows"
|
|
25401
25399
|
}
|
|
25402
25400
|
) }),
|
|
25403
|
-
hasData && !getWorkflowsEnv("isHeadless") ? /* @__PURE__ */ jsx4(
|
|
25401
|
+
hasData && !getWorkflowsEnv("isHeadless") ? /* @__PURE__ */ jsx4(import_developer_studio_ui_react46.Column, { pullRight: true, children: /* @__PURE__ */ jsx4(
|
|
25404
25402
|
import_design_system_react_components84.Button,
|
|
25405
25403
|
{
|
|
25406
25404
|
"data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.view.createButton,
|
|
@@ -25412,7 +25410,7 @@ function WorkflowListView() {
|
|
|
25412
25410
|
}
|
|
25413
25411
|
) }) : null
|
|
25414
25412
|
] }),
|
|
25415
|
-
/* @__PURE__ */ jsx4(
|
|
25413
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react46.Row, { children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react46.Column, { gap: `var(${import_design_system_react_components84.SpacingToken.Spacing10})`, noMaxWidth: true, width: 12, children: [
|
|
25416
25414
|
hasData ? /* @__PURE__ */ jsx4(
|
|
25417
25415
|
Grid_default,
|
|
25418
25416
|
{
|
|
@@ -25435,7 +25433,7 @@ var wrapperRowStyles = css`
|
|
|
25435
25433
|
scrollbar-width: none;
|
|
25436
25434
|
`;
|
|
25437
25435
|
function WorkflowList() {
|
|
25438
|
-
return /* @__PURE__ */ jsxs2(
|
|
25436
|
+
return /* @__PURE__ */ jsxs2(import_developer_studio_ui_react47.Row, { css: wrapperRowStyles, noMaxWidth: true, noWrap: true, notPadded: true, stretch: true, children: [
|
|
25439
25437
|
/* @__PURE__ */ jsx4(View_default2, {}),
|
|
25440
25438
|
/* @__PURE__ */ jsxs2(import_react_router_dom14.Routes, { children: [
|
|
25441
25439
|
/* @__PURE__ */ jsx4(import_react_router_dom14.Route, { element: /* @__PURE__ */ jsx4(PreviewTemplate_default, {}), path: "preview/:template" }),
|
|
@@ -25460,7 +25458,7 @@ function Workflows() {
|
|
|
25460
25458
|
}
|
|
25461
25459
|
}, [navigate, isWorkflowAppLoading, userHasInstalledWorkflows]);
|
|
25462
25460
|
if (isWorkflowAppLoading) {
|
|
25463
|
-
return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
25461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_developer_studio_ui_react48.Loader, { stretch: true });
|
|
25464
25462
|
}
|
|
25465
25463
|
return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_react_router_dom15.Routes, { children: [
|
|
25466
25464
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_react_router_dom15.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_react_router_dom15.Navigate, { replace: true, to: "list" }), path: "" }),
|
|
@@ -25472,7 +25470,7 @@ var Workflows_default = Workflows;
|
|
|
25472
25470
|
|
|
25473
25471
|
// src/views/Common/LoginError.tsx
|
|
25474
25472
|
var import_design_system_react_components85 = require("@livechat/design-system-react-components");
|
|
25475
|
-
var
|
|
25473
|
+
var import_developer_studio_ui_react49 = require("@livechat/developer-studio-ui-react");
|
|
25476
25474
|
var imgContainerCss2 = css`
|
|
25477
25475
|
img {
|
|
25478
25476
|
height: auto;
|
|
@@ -25481,7 +25479,7 @@ var imgContainerCss2 = css`
|
|
|
25481
25479
|
}
|
|
25482
25480
|
`;
|
|
25483
25481
|
var paragraphCss = (heading) => css`
|
|
25484
|
-
${heading ?
|
|
25482
|
+
${heading ? import_developer_studio_ui_react49.theme.typography.heading.xs : import_developer_studio_ui_react49.theme.typography.paragraph.s}
|
|
25485
25483
|
margin-top: var(${heading ? import_design_system_react_components85.SpacingToken.Spacing10 : import_design_system_react_components85.SpacingToken.Spacing2});
|
|
25486
25484
|
`;
|
|
25487
25485
|
var wrapperCss2 = css`
|
|
@@ -25499,15 +25497,15 @@ function LoginErrorPage({
|
|
|
25499
25497
|
}) {
|
|
25500
25498
|
if (getWorkflowsEnv("isHeadless")) {
|
|
25501
25499
|
return /* @__PURE__ */ jsxs2("div", { css: wrapperCss2, children: [
|
|
25502
|
-
/* @__PURE__ */ jsx4(
|
|
25503
|
-
/* @__PURE__ */ jsx4(
|
|
25504
|
-
/* @__PURE__ */ jsx4(
|
|
25500
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react49.Row, { center: true, noMaxWidth: true, verticalCenter: true, children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react49.Column, { center: true, width: 10, children: /* @__PURE__ */ jsx4("div", { css: imgContainerCss2, children: welcomeImage }) }) }),
|
|
25501
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react49.Row, { center: true, noMaxWidth: true, verticalCenter: true, children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react49.Column, { center: true, width: 10, children: [
|
|
25502
|
+
/* @__PURE__ */ jsx4(import_developer_studio_ui_react49.Intro, { center: true, header: "Welcome to Workflows!", headerSize: "m" }),
|
|
25505
25503
|
/* @__PURE__ */ jsx4("p", { css: paragraphCss(false), children: "You're using a browser that required additional login to access Workflows" }),
|
|
25506
25504
|
/* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(import_design_system_react_components85.Button, { kind: "primary", onClick: onAuthorize, children: "Login with Text" }) })
|
|
25507
25505
|
] }) })
|
|
25508
25506
|
] });
|
|
25509
25507
|
}
|
|
25510
|
-
return /* @__PURE__ */ jsx4(
|
|
25508
|
+
return /* @__PURE__ */ jsx4(import_developer_studio_ui_react49.LoginErrorPage, { image: errorImage });
|
|
25511
25509
|
}
|
|
25512
25510
|
var LoginError_default = LoginErrorPage;
|
|
25513
25511
|
|