@livechat/platform-workflows 0.1.6 → 0.1.8
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/config.d.mts +1 -0
- package/dist/config.d.ts +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -8
- package/dist/index.mjs +7 -10
- package/package.json +6 -5
package/dist/config.d.mts
CHANGED
package/dist/config.d.ts
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14838,7 +14838,7 @@ function WorkflowCreatorProviderBase({
|
|
|
14838
14838
|
[autosaveWorkflowRef, setWorkflow]
|
|
14839
14839
|
);
|
|
14840
14840
|
(0, import_react12.useEffect)(() => {
|
|
14841
|
-
if (getWorkflowsEnv("
|
|
14841
|
+
if (getWorkflowsEnv("isHeadless")) {
|
|
14842
14842
|
sendMessage("closeSideNav" /* CloseSideNav */);
|
|
14843
14843
|
const timeoutId = setTimeout(() => {
|
|
14844
14844
|
focus();
|
|
@@ -19367,7 +19367,6 @@ var import_platform_integrations4 = require("@livechat/platform-integrations");
|
|
|
19367
19367
|
function GlobalAccounts(props) {
|
|
19368
19368
|
const { pathname } = (0, import_react_router_dom4.useLocation)();
|
|
19369
19369
|
const notifications = (0, import_developer_studio_ui_react21.useNotificationContext)();
|
|
19370
|
-
const { user } = (0, import_developer_studio_ui_react21.useUserContext)();
|
|
19371
19370
|
const organizationProductsQuery = useFetchOrganizationProducts();
|
|
19372
19371
|
const {
|
|
19373
19372
|
updateOrganizationProducts,
|
|
@@ -19410,7 +19409,7 @@ function GlobalAccounts(props) {
|
|
|
19410
19409
|
yield updateOrganizationProducts({
|
|
19411
19410
|
productName: props.product
|
|
19412
19411
|
});
|
|
19413
|
-
|
|
19412
|
+
void (0, import_platform_integrations4.triggerAccountsAction)(
|
|
19414
19413
|
{
|
|
19415
19414
|
action: "activate",
|
|
19416
19415
|
data: {
|
|
@@ -19422,8 +19421,7 @@ function GlobalAccounts(props) {
|
|
|
19422
19421
|
onSuccess: refetch
|
|
19423
19422
|
},
|
|
19424
19423
|
{
|
|
19425
|
-
notifications
|
|
19426
|
-
user
|
|
19424
|
+
notifications
|
|
19427
19425
|
}
|
|
19428
19426
|
);
|
|
19429
19427
|
} catch (e) {
|
|
@@ -23906,7 +23904,7 @@ function WorkflowCreatorNavbar() {
|
|
|
23906
23904
|
notPadded: true,
|
|
23907
23905
|
spaceBetween: true,
|
|
23908
23906
|
children: [
|
|
23909
|
-
getWorkflowsEnv("
|
|
23907
|
+
getWorkflowsEnv("isHeadless") && /* @__PURE__ */ jsx4(
|
|
23910
23908
|
import_design_system_react_components70.Button,
|
|
23911
23909
|
{
|
|
23912
23910
|
icon: /* @__PURE__ */ jsx4(import_design_system_react_components70.Icon, { source: import_design_system_icons32.Close }),
|
|
@@ -24948,7 +24946,7 @@ var wrapperCss = (hasData) => css`
|
|
|
24948
24946
|
`;
|
|
24949
24947
|
function LiveChatNavbar() {
|
|
24950
24948
|
const navigate = useWorkflowsRelativeNavigate();
|
|
24951
|
-
const workflows = useFetchWorkflows(
|
|
24949
|
+
const workflows = useFetchWorkflows();
|
|
24952
24950
|
const isLoading = workflows.isLoading;
|
|
24953
24951
|
const hasNoData = workflows.isSuccess && workflows.data.length === 0;
|
|
24954
24952
|
const hasData = !isLoading && !hasNoData;
|
|
@@ -25360,7 +25358,7 @@ function WorkflowListView() {
|
|
|
25360
25358
|
return /* @__PURE__ */ jsx4(import_developer_studio_ui_react46.Loader, { stretch: true });
|
|
25361
25359
|
}
|
|
25362
25360
|
return /* @__PURE__ */ jsxs2(import_developer_studio_ui_react46.View, { center: hasNoData, noWrap: true, stretch: isLoading, children: [
|
|
25363
|
-
getWorkflowsEnv("
|
|
25361
|
+
getWorkflowsEnv("isHeadless") ? /* @__PURE__ */ jsx4(import_developer_studio_ui_react46.Row, { noMaxWidth: true, notPadded: true, children: /* @__PURE__ */ jsx4(LiveChatNavbar_default, {}) }) : null,
|
|
25364
25362
|
/* @__PURE__ */ jsxs2(import_developer_studio_ui_react46.Row, { topMargin: true, verticalCenter: hasNoData, children: [
|
|
25365
25363
|
/* @__PURE__ */ jsx4(import_developer_studio_ui_react46.Column, { width: hasNoData ? 10 : 8, children: hasNoData ? /* @__PURE__ */ jsx4(
|
|
25366
25364
|
import_developer_studio_ui_react46.Row,
|
package/dist/index.mjs
CHANGED
|
@@ -14916,7 +14916,7 @@ function WorkflowCreatorProviderBase({
|
|
|
14916
14916
|
[autosaveWorkflowRef, setWorkflow]
|
|
14917
14917
|
);
|
|
14918
14918
|
useEffect4(() => {
|
|
14919
|
-
if (getWorkflowsEnv("
|
|
14919
|
+
if (getWorkflowsEnv("isHeadless")) {
|
|
14920
14920
|
sendMessage("closeSideNav" /* CloseSideNav */);
|
|
14921
14921
|
const timeoutId = setTimeout(() => {
|
|
14922
14922
|
focus();
|
|
@@ -19584,8 +19584,7 @@ import {
|
|
|
19584
19584
|
Card,
|
|
19585
19585
|
Column as Column8,
|
|
19586
19586
|
Row as Row10,
|
|
19587
|
-
useNotificationContext as useNotificationContext3
|
|
19588
|
-
useUserContext as useUserContext8
|
|
19587
|
+
useNotificationContext as useNotificationContext3
|
|
19589
19588
|
} from "@livechat/developer-studio-ui-react";
|
|
19590
19589
|
import {
|
|
19591
19590
|
TextStatus,
|
|
@@ -19594,7 +19593,6 @@ import {
|
|
|
19594
19593
|
function GlobalAccounts(props) {
|
|
19595
19594
|
const { pathname } = useLocation4();
|
|
19596
19595
|
const notifications = useNotificationContext3();
|
|
19597
|
-
const { user } = useUserContext8();
|
|
19598
19596
|
const organizationProductsQuery = useFetchOrganizationProducts();
|
|
19599
19597
|
const {
|
|
19600
19598
|
updateOrganizationProducts,
|
|
@@ -19637,7 +19635,7 @@ function GlobalAccounts(props) {
|
|
|
19637
19635
|
yield updateOrganizationProducts({
|
|
19638
19636
|
productName: props.product
|
|
19639
19637
|
});
|
|
19640
|
-
|
|
19638
|
+
void triggerAccountsAction(
|
|
19641
19639
|
{
|
|
19642
19640
|
action: "activate",
|
|
19643
19641
|
data: {
|
|
@@ -19649,8 +19647,7 @@ function GlobalAccounts(props) {
|
|
|
19649
19647
|
onSuccess: refetch
|
|
19650
19648
|
},
|
|
19651
19649
|
{
|
|
19652
|
-
notifications
|
|
19653
|
-
user
|
|
19650
|
+
notifications
|
|
19654
19651
|
}
|
|
19655
19652
|
);
|
|
19656
19653
|
} catch (e) {
|
|
@@ -24278,7 +24275,7 @@ function WorkflowCreatorNavbar() {
|
|
|
24278
24275
|
notPadded: true,
|
|
24279
24276
|
spaceBetween: true,
|
|
24280
24277
|
children: [
|
|
24281
|
-
getWorkflowsEnv("
|
|
24278
|
+
getWorkflowsEnv("isHeadless") && /* @__PURE__ */ jsx4(
|
|
24282
24279
|
Button28,
|
|
24283
24280
|
{
|
|
24284
24281
|
icon: /* @__PURE__ */ jsx4(Icon31, { source: Close5 }),
|
|
@@ -25394,7 +25391,7 @@ var wrapperCss = (hasData) => css`
|
|
|
25394
25391
|
`;
|
|
25395
25392
|
function LiveChatNavbar() {
|
|
25396
25393
|
const navigate = useWorkflowsRelativeNavigate();
|
|
25397
|
-
const workflows = useFetchWorkflows(
|
|
25394
|
+
const workflows = useFetchWorkflows();
|
|
25398
25395
|
const isLoading = workflows.isLoading;
|
|
25399
25396
|
const hasNoData = workflows.isSuccess && workflows.data.length === 0;
|
|
25400
25397
|
const hasData = !isLoading && !hasNoData;
|
|
@@ -25832,7 +25829,7 @@ function WorkflowListView() {
|
|
|
25832
25829
|
return /* @__PURE__ */ jsx4(Loader5, { stretch: true });
|
|
25833
25830
|
}
|
|
25834
25831
|
return /* @__PURE__ */ jsxs2(View3, { center: hasNoData, noWrap: true, stretch: isLoading, children: [
|
|
25835
|
-
getWorkflowsEnv("
|
|
25832
|
+
getWorkflowsEnv("isHeadless") ? /* @__PURE__ */ jsx4(Row26, { noMaxWidth: true, notPadded: true, children: /* @__PURE__ */ jsx4(LiveChatNavbar_default, {}) }) : null,
|
|
25836
25833
|
/* @__PURE__ */ jsxs2(Row26, { topMargin: true, verticalCenter: hasNoData, children: [
|
|
25837
25834
|
/* @__PURE__ */ jsx4(Column18, { width: hasNoData ? 10 : 8, children: hasNoData ? /* @__PURE__ */ jsx4(
|
|
25838
25835
|
Row26,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/platform-workflows",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Text Platform | Workflows",
|
|
5
5
|
"author": "Wojciech Dudek",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"require": "./dist/config.js",
|
|
44
44
|
"default": "./dist/config.js"
|
|
45
45
|
},
|
|
46
|
-
"./style.css": "./dist/index.css"
|
|
46
|
+
"./style.css": "./dist/index.css",
|
|
47
|
+
"./dist/index.css": "./dist/index.css"
|
|
47
48
|
},
|
|
48
49
|
"files": [
|
|
49
50
|
"dist/**"
|
|
@@ -100,9 +101,9 @@
|
|
|
100
101
|
"uuid": "^9.0.1",
|
|
101
102
|
"validator": "^13.12.0",
|
|
102
103
|
"web-worker": "^1.3.0",
|
|
103
|
-
"@livechat/
|
|
104
|
-
"@livechat/developer-studio-
|
|
105
|
-
"@livechat/
|
|
104
|
+
"@livechat/platform-integrations": "0.1.7",
|
|
105
|
+
"@livechat/developer-studio-api": "3.5.2",
|
|
106
|
+
"@livechat/developer-studio-ui-react": "2.0.2"
|
|
106
107
|
},
|
|
107
108
|
"peerDependencies": {
|
|
108
109
|
"@tanstack/react-query": "4.36.1",
|