@livechat/platform-workflows 0.0.79 → 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 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
@@ -23273,25 +23273,16 @@ var wrapperCss = css`
23273
23273
  `;
23274
23274
  function LoginErrorPage({
23275
23275
  errorImage,
23276
- welcomeImage
23276
+ welcomeImage,
23277
+ onAuthorize
23277
23278
  }) {
23278
- const { authorize } = (0, import_developer_studio_ui_react47.useRootContext)();
23279
23279
  if (getWorkflowsEnv("isHeadless")) {
23280
23280
  return /* @__PURE__ */ jsxs2("div", { css: wrapperCss, children: [
23281
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 }) }) }),
23282
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: [
23283
23283
  /* @__PURE__ */ jsx4(import_developer_studio_ui_react47.Intro, { center: true, header: "Welcome to Workflows!", headerSize: "m" }),
23284
23284
  /* @__PURE__ */ jsx4("p", { css: paragraphCss(false), children: "You're using a browser that required additional login to access Workflows" }),
23285
- /* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(
23286
- import_design_system_react_components82.Button,
23287
- {
23288
- kind: "primary",
23289
- onClick: () => {
23290
- authorize(true);
23291
- },
23292
- children: "Login with Text"
23293
- }
23294
- ) })
23285
+ /* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(import_design_system_react_components82.Button, { kind: "primary", onClick: onAuthorize, children: "Login with Text" }) })
23295
23286
  ] }) })
23296
23287
  ] });
23297
23288
  }
package/dist/index.mjs CHANGED
@@ -23730,8 +23730,7 @@ import {
23730
23730
  Intro as Intro5,
23731
23731
  LoginErrorPage as DefaultLoginErrorPage,
23732
23732
  Row as Row27,
23733
- theme,
23734
- useRootContext
23733
+ theme
23735
23734
  } from "@livechat/developer-studio-ui-react";
23736
23735
  var imgContainerCss2 = css`
23737
23736
  img {
@@ -23754,25 +23753,16 @@ var wrapperCss = css`
23754
23753
  `;
23755
23754
  function LoginErrorPage({
23756
23755
  errorImage,
23757
- welcomeImage
23756
+ welcomeImage,
23757
+ onAuthorize
23758
23758
  }) {
23759
- const { authorize } = useRootContext();
23760
23759
  if (getWorkflowsEnv("isHeadless")) {
23761
23760
  return /* @__PURE__ */ jsxs2("div", { css: wrapperCss, children: [
23762
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 }) }) }),
23763
23762
  /* @__PURE__ */ jsx4(Row27, { center: true, noMaxWidth: true, verticalCenter: true, children: /* @__PURE__ */ jsxs2(Column19, { center: true, width: 10, children: [
23764
23763
  /* @__PURE__ */ jsx4(Intro5, { center: true, header: "Welcome to Workflows!", headerSize: "m" }),
23765
23764
  /* @__PURE__ */ jsx4("p", { css: paragraphCss(false), children: "You're using a browser that required additional login to access Workflows" }),
23766
- /* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(
23767
- Button35,
23768
- {
23769
- kind: "primary",
23770
- onClick: () => {
23771
- authorize(true);
23772
- },
23773
- children: "Login with Text"
23774
- }
23775
- ) })
23765
+ /* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(Button35, { kind: "primary", onClick: onAuthorize, children: "Login with Text" }) })
23776
23766
  ] }) })
23777
23767
  ] });
23778
23768
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/platform-workflows",
3
- "version": "0.0.79",
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
- "eslint-config-custom": "0.0.10",
52
- "tsconfig": "0.0.1"
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/developer-studio-ui-react": "1.0.13",
86
- "@livechat/platform-integrations": "0.0.45"
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",