@livechat/platform-workflows 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +14 -9
- package/dist/index.mjs +16 -11
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -24590,26 +24590,31 @@ var List_default2 = WorkflowList;
|
|
|
24590
24590
|
|
|
24591
24591
|
// src/views/Flows/Definitions/index.tsx
|
|
24592
24592
|
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
24593
|
-
|
|
24593
|
+
function Workflows() {
|
|
24594
24594
|
const navigate = (0, import_react_router_dom31.useNavigate)();
|
|
24595
24595
|
const {
|
|
24596
|
-
userData: { user, isLoading }
|
|
24596
|
+
userData: { user, isLoading: isUserLoading }
|
|
24597
24597
|
} = (0, import_developer_studio_ui_react57.useRootContext)();
|
|
24598
|
-
const { data: userHasInstalledWorkflows } = useFetchUserInstalledWorkflows(user);
|
|
24598
|
+
const { data: userHasInstalledWorkflows, isLoading: isWorkflowAppLoading } = useFetchUserInstalledWorkflows(user);
|
|
24599
24599
|
(0, import_react145.useEffect)(() => {
|
|
24600
|
-
if (
|
|
24600
|
+
if (isUserLoading || isWorkflowAppLoading) {
|
|
24601
24601
|
return;
|
|
24602
24602
|
}
|
|
24603
24603
|
if (!userHasInstalledWorkflows) {
|
|
24604
24604
|
navigate("/");
|
|
24605
24605
|
}
|
|
24606
|
-
}, [
|
|
24606
|
+
}, [
|
|
24607
|
+
navigate,
|
|
24608
|
+
isUserLoading,
|
|
24609
|
+
isWorkflowAppLoading,
|
|
24610
|
+
userHasInstalledWorkflows
|
|
24611
|
+
]);
|
|
24607
24612
|
return /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(import_react_router_dom31.Routes, { children: [
|
|
24608
|
-
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_react_router_dom31.Route, {
|
|
24609
|
-
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_react_router_dom31.Route, {
|
|
24610
|
-
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_react_router_dom31.Route, {
|
|
24613
|
+
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_react_router_dom31.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_react_router_dom31.Navigate, { replace: true, to: "list" }), path: "" }),
|
|
24614
|
+
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_react_router_dom31.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(List_default2, {}), path: "list/*" }),
|
|
24615
|
+
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_react_router_dom31.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Edit_default2, {}), path: ":id/*" })
|
|
24611
24616
|
] });
|
|
24612
|
-
}
|
|
24617
|
+
}
|
|
24613
24618
|
var Definitions_default = Workflows;
|
|
24614
24619
|
|
|
24615
24620
|
// src/views/Flows/Waitlist/index.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -25188,26 +25188,31 @@ var List_default2 = WorkflowList;
|
|
|
25188
25188
|
|
|
25189
25189
|
// src/views/Flows/Definitions/index.tsx
|
|
25190
25190
|
import { jsx as jsx22, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
25191
|
-
|
|
25191
|
+
function Workflows() {
|
|
25192
25192
|
const navigate = useNavigate20();
|
|
25193
25193
|
const {
|
|
25194
|
-
userData: { user, isLoading }
|
|
25194
|
+
userData: { user, isLoading: isUserLoading }
|
|
25195
25195
|
} = useRootContext14();
|
|
25196
|
-
const { data: userHasInstalledWorkflows } = useFetchUserInstalledWorkflows(user);
|
|
25196
|
+
const { data: userHasInstalledWorkflows, isLoading: isWorkflowAppLoading } = useFetchUserInstalledWorkflows(user);
|
|
25197
25197
|
useEffect21(() => {
|
|
25198
|
-
if (
|
|
25198
|
+
if (isUserLoading || isWorkflowAppLoading) {
|
|
25199
25199
|
return;
|
|
25200
25200
|
}
|
|
25201
25201
|
if (!userHasInstalledWorkflows) {
|
|
25202
25202
|
navigate("/");
|
|
25203
25203
|
}
|
|
25204
|
-
}, [
|
|
25204
|
+
}, [
|
|
25205
|
+
navigate,
|
|
25206
|
+
isUserLoading,
|
|
25207
|
+
isWorkflowAppLoading,
|
|
25208
|
+
userHasInstalledWorkflows
|
|
25209
|
+
]);
|
|
25205
25210
|
return /* @__PURE__ */ jsxs11(Routes5, { children: [
|
|
25206
|
-
/* @__PURE__ */ jsx22(Route5, {
|
|
25207
|
-
/* @__PURE__ */ jsx22(Route5, {
|
|
25208
|
-
/* @__PURE__ */ jsx22(Route5, {
|
|
25211
|
+
/* @__PURE__ */ jsx22(Route5, { element: /* @__PURE__ */ jsx22(Navigate2, { replace: true, to: "list" }), path: "" }),
|
|
25212
|
+
/* @__PURE__ */ jsx22(Route5, { element: /* @__PURE__ */ jsx22(List_default2, {}), path: "list/*" }),
|
|
25213
|
+
/* @__PURE__ */ jsx22(Route5, { element: /* @__PURE__ */ jsx22(Edit_default2, {}), path: ":id/*" })
|
|
25209
25214
|
] });
|
|
25210
|
-
}
|
|
25215
|
+
}
|
|
25211
25216
|
var Definitions_default = Workflows;
|
|
25212
25217
|
|
|
25213
25218
|
// src/views/Flows/Waitlist/index.tsx
|
|
@@ -25548,7 +25553,7 @@ function IntegrationStatusCredentials({
|
|
|
25548
25553
|
}
|
|
25549
25554
|
|
|
25550
25555
|
// src/views/Settings/Integrations/Common/IntegrationStatus.tsx
|
|
25551
|
-
import
|
|
25556
|
+
import React25 from "react";
|
|
25552
25557
|
import {
|
|
25553
25558
|
DesignToken as DesignToken51,
|
|
25554
25559
|
SpacingToken as SpacingToken51
|
|
@@ -25590,7 +25595,7 @@ var IntegrationStatusView = (props) => {
|
|
|
25590
25595
|
width: 100%;
|
|
25591
25596
|
`,
|
|
25592
25597
|
dataCy: props.dataCy,
|
|
25593
|
-
children: /* @__PURE__ */ jsxs2(
|
|
25598
|
+
children: /* @__PURE__ */ jsxs2(React25.Fragment, { children: [
|
|
25594
25599
|
/* @__PURE__ */ jsxs2(Row25, { notPadded: true, css: infoContainerCss, children: [
|
|
25595
25600
|
/* @__PURE__ */ jsx4(Column19, { center: true, width: 2, setColumnPadding: 28, children: props.imgSrc ? /* @__PURE__ */ jsx4(
|
|
25596
25601
|
"img",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/platform-workflows",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Text Platform | Workflows",
|
|
5
5
|
"author": "Wojciech Dudek",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"postcss-modules": "^6.0.0",
|
|
41
41
|
"tsup": "^8.0.0",
|
|
42
42
|
"typescript": "^5.1.6",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
43
|
+
"tsconfig": "0.0.1",
|
|
44
|
+
"eslint-config-custom": "0.0.10"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@lexical/react": "^0.19.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"validator": "^13.12.0",
|
|
79
79
|
"web-worker": "^1.3.0",
|
|
80
80
|
"@livechat/developer-studio-api": "3.3.6",
|
|
81
|
-
"@livechat/developer-studio-ui-react": "0.0.
|
|
81
|
+
"@livechat/developer-studio-ui-react": "0.0.54"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"@tanstack/react-query": "4.36.1",
|