@livechat/platform-workflows 0.0.78 → 0.0.80
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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +6 -13
- package/dist/index.mjs +7 -15
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -19,8 +19,9 @@ declare const getWorkflowsEnv: <T extends keyof WorkflowsConfig>(key: T) => Work
|
|
|
19
19
|
interface LoginErrorPageProps {
|
|
20
20
|
errorImage: React.ReactNode;
|
|
21
21
|
welcomeImage: React.ReactNode;
|
|
22
|
+
onAuthorize: () => void;
|
|
22
23
|
}
|
|
23
|
-
declare function LoginErrorPage({ errorImage, welcomeImage, }: LoginErrorPageProps): JSX.Element;
|
|
24
|
+
declare function LoginErrorPage({ errorImage, welcomeImage, onAuthorize, }: LoginErrorPageProps): JSX.Element;
|
|
24
25
|
|
|
25
26
|
interface WorkflowsModuleProps {
|
|
26
27
|
waitlistImage: React$1.ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -19,8 +19,9 @@ declare const getWorkflowsEnv: <T extends keyof WorkflowsConfig>(key: T) => Work
|
|
|
19
19
|
interface LoginErrorPageProps {
|
|
20
20
|
errorImage: React.ReactNode;
|
|
21
21
|
welcomeImage: React.ReactNode;
|
|
22
|
+
onAuthorize: () => void;
|
|
22
23
|
}
|
|
23
|
-
declare function LoginErrorPage({ errorImage, welcomeImage, }: LoginErrorPageProps): JSX.Element;
|
|
24
|
+
declare function LoginErrorPage({ errorImage, welcomeImage, onAuthorize, }: LoginErrorPageProps): JSX.Element;
|
|
24
25
|
|
|
25
26
|
interface WorkflowsModuleProps {
|
|
26
27
|
waitlistImage: React$1.ReactNode;
|
package/dist/index.js
CHANGED
|
@@ -17365,7 +17365,9 @@ function GlobalAccounts(props) {
|
|
|
17365
17365
|
}
|
|
17366
17366
|
);
|
|
17367
17367
|
} catch (e) {
|
|
17368
|
-
notifications.
|
|
17368
|
+
notifications.addErrorToast(
|
|
17369
|
+
`Couldn't activate ${props.product}`
|
|
17370
|
+
);
|
|
17369
17371
|
}
|
|
17370
17372
|
}),
|
|
17371
17373
|
type: "submit",
|
|
@@ -23271,25 +23273,16 @@ var wrapperCss = css`
|
|
|
23271
23273
|
`;
|
|
23272
23274
|
function LoginErrorPage({
|
|
23273
23275
|
errorImage,
|
|
23274
|
-
welcomeImage
|
|
23276
|
+
welcomeImage,
|
|
23277
|
+
onAuthorize
|
|
23275
23278
|
}) {
|
|
23276
|
-
const { authorize } = (0, import_developer_studio_ui_react47.useRootContext)();
|
|
23277
23279
|
if (getWorkflowsEnv("isHeadless")) {
|
|
23278
23280
|
return /* @__PURE__ */ jsxs2("div", { css: wrapperCss, children: [
|
|
23279
23281
|
/* @__PURE__ */ jsx4(import_developer_studio_ui_react47.Row, { center: true, noMaxWidth: true, verticalCenter: true, children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react47.Column, { center: true, width: 10, children: /* @__PURE__ */ jsx4("div", { css: imgContainerCss2, children: welcomeImage }) }) }),
|
|
23280
23282
|
/* @__PURE__ */ jsx4(import_developer_studio_ui_react47.Row, { center: true, noMaxWidth: true, verticalCenter: true, children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react47.Column, { center: true, width: 10, children: [
|
|
23281
23283
|
/* @__PURE__ */ jsx4(import_developer_studio_ui_react47.Intro, { center: true, header: "Welcome to Workflows!", headerSize: "m" }),
|
|
23282
23284
|
/* @__PURE__ */ jsx4("p", { css: paragraphCss(false), children: "You're using a browser that required additional login to access Workflows" }),
|
|
23283
|
-
/* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(
|
|
23284
|
-
import_design_system_react_components82.Button,
|
|
23285
|
-
{
|
|
23286
|
-
kind: "primary",
|
|
23287
|
-
onClick: () => {
|
|
23288
|
-
authorize(true);
|
|
23289
|
-
},
|
|
23290
|
-
children: "Login with Text"
|
|
23291
|
-
}
|
|
23292
|
-
) })
|
|
23285
|
+
/* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(import_design_system_react_components82.Button, { kind: "primary", onClick: onAuthorize, children: "Login with Text" }) })
|
|
23293
23286
|
] }) })
|
|
23294
23287
|
] });
|
|
23295
23288
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -17591,7 +17591,9 @@ function GlobalAccounts(props) {
|
|
|
17591
17591
|
}
|
|
17592
17592
|
);
|
|
17593
17593
|
} catch (e) {
|
|
17594
|
-
notifications.
|
|
17594
|
+
notifications.addErrorToast(
|
|
17595
|
+
`Couldn't activate ${props.product}`
|
|
17596
|
+
);
|
|
17595
17597
|
}
|
|
17596
17598
|
}),
|
|
17597
17599
|
type: "submit",
|
|
@@ -23728,8 +23730,7 @@ import {
|
|
|
23728
23730
|
Intro as Intro5,
|
|
23729
23731
|
LoginErrorPage as DefaultLoginErrorPage,
|
|
23730
23732
|
Row as Row27,
|
|
23731
|
-
theme
|
|
23732
|
-
useRootContext
|
|
23733
|
+
theme
|
|
23733
23734
|
} from "@livechat/developer-studio-ui-react";
|
|
23734
23735
|
var imgContainerCss2 = css`
|
|
23735
23736
|
img {
|
|
@@ -23752,25 +23753,16 @@ var wrapperCss = css`
|
|
|
23752
23753
|
`;
|
|
23753
23754
|
function LoginErrorPage({
|
|
23754
23755
|
errorImage,
|
|
23755
|
-
welcomeImage
|
|
23756
|
+
welcomeImage,
|
|
23757
|
+
onAuthorize
|
|
23756
23758
|
}) {
|
|
23757
|
-
const { authorize } = useRootContext();
|
|
23758
23759
|
if (getWorkflowsEnv("isHeadless")) {
|
|
23759
23760
|
return /* @__PURE__ */ jsxs2("div", { css: wrapperCss, children: [
|
|
23760
23761
|
/* @__PURE__ */ jsx4(Row27, { center: true, noMaxWidth: true, verticalCenter: true, children: /* @__PURE__ */ jsx4(Column19, { center: true, width: 10, children: /* @__PURE__ */ jsx4("div", { css: imgContainerCss2, children: welcomeImage }) }) }),
|
|
23761
23762
|
/* @__PURE__ */ jsx4(Row27, { center: true, noMaxWidth: true, verticalCenter: true, children: /* @__PURE__ */ jsxs2(Column19, { center: true, width: 10, children: [
|
|
23762
23763
|
/* @__PURE__ */ jsx4(Intro5, { center: true, header: "Welcome to Workflows!", headerSize: "m" }),
|
|
23763
23764
|
/* @__PURE__ */ jsx4("p", { css: paragraphCss(false), children: "You're using a browser that required additional login to access Workflows" }),
|
|
23764
|
-
/* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(
|
|
23765
|
-
Button35,
|
|
23766
|
-
{
|
|
23767
|
-
kind: "primary",
|
|
23768
|
-
onClick: () => {
|
|
23769
|
-
authorize(true);
|
|
23770
|
-
},
|
|
23771
|
-
children: "Login with Text"
|
|
23772
|
-
}
|
|
23773
|
-
) })
|
|
23765
|
+
/* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(Button35, { kind: "primary", onClick: onAuthorize, children: "Login with Text" }) })
|
|
23774
23766
|
] }) })
|
|
23775
23767
|
] });
|
|
23776
23768
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/platform-workflows",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.80",
|
|
4
4
|
"description": "Text Platform | Workflows",
|
|
5
5
|
"author": "Wojciech Dudek",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"esbuild-sass-plugin": "^3.2.0",
|
|
49
49
|
"tsup": "^8.0.0",
|
|
50
50
|
"typescript": "^5.1.6",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
51
|
+
"tsconfig": "0.0.1",
|
|
52
|
+
"eslint-config-custom": "0.0.10"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@amplitude/analytics-browser": "^2.11.9",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"validator": "^13.12.0",
|
|
83
83
|
"web-worker": "^1.3.0",
|
|
84
84
|
"@livechat/developer-studio-api": "3.4.9",
|
|
85
|
-
"@livechat/
|
|
86
|
-
"@livechat/
|
|
85
|
+
"@livechat/platform-integrations": "0.0.46",
|
|
86
|
+
"@livechat/developer-studio-ui-react": "1.1.0"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@tanstack/react-query": "4.36.1",
|