@livechat/platform-workflows 0.0.77 → 0.0.78

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 CHANGED
@@ -13587,31 +13587,33 @@ function AddWorkflowTaskModal({ basePath, onClose }) {
13587
13587
  const [state, setState] = (0, import_react12.useState)();
13588
13588
  const config2 = (0, import_react12.useMemo)(
13589
13589
  () => [
13590
- {
13591
- name: "system",
13592
- displayName: "System tasks",
13593
- icon: /* @__PURE__ */ jsx4(
13594
- ProductIcon_default,
13595
- {
13596
- center: void 0,
13597
- disabled: void 0,
13598
- height: 5,
13599
- product: OTHER_TYPES.SYSTEM,
13600
- width: 5
13601
- }
13602
- ),
13603
- values: Object.values(systemTaskConfigs()).filter(
13604
- (x) => ![
13605
- import_developer_studio_api21.WorkflowDefinitionTaskType.join,
13606
- import_developer_studio_api21.WorkflowDefinitionTaskType.http
13607
- ].includes(x.key)
13608
- ).map((x) => ({
13609
- key: x.key,
13610
- name: x.customization.displayName,
13611
- shortDescription: x.customization.shortDescription,
13612
- secondaryText: x.customization.description
13613
- }))
13614
- },
13590
+ // {
13591
+ // name: "system",
13592
+ // displayName: "System tasks",
13593
+ // icon: (
13594
+ // <ProductIcon
13595
+ // center={undefined}
13596
+ // disabled={undefined}
13597
+ // height={5}
13598
+ // product={OTHER_TYPES.SYSTEM}
13599
+ // width={5}
13600
+ // />
13601
+ // ),
13602
+ // values: Object.values(systemTaskConfigs())
13603
+ // .filter(
13604
+ // (x) =>
13605
+ // ![
13606
+ // WorkflowDefinitionTaskType.join as string,
13607
+ // WorkflowDefinitionTaskType.http as string,
13608
+ // ].includes(x.key)
13609
+ // )
13610
+ // .map((x) => ({
13611
+ // key: x.key,
13612
+ // name: x.customization.displayName,
13613
+ // shortDescription: x.customization.shortDescription,
13614
+ // secondaryText: x.customization.description,
13615
+ // })),
13616
+ // },
13615
13617
  {
13616
13618
  name: "livechat",
13617
13619
  displayName: import_developer_studio_api21.IntegrationDisplayNames.LiveChat,
package/dist/index.mjs CHANGED
@@ -11417,8 +11417,7 @@ import {
11417
11417
  } from "@livechat/design-system-react-components";
11418
11418
  import {
11419
11419
  IntegrationDisplayNames as IntegrationDisplayNames9,
11420
- IntegrationNames as IntegrationNames13,
11421
- WorkflowDefinitionTaskType as WorkflowDefinitionTaskType13
11420
+ IntegrationNames as IntegrationNames13
11422
11421
  } from "@livechat/developer-studio-api";
11423
11422
  import {
11424
11423
  Column as Column3,
@@ -13671,31 +13670,33 @@ function AddWorkflowTaskModal({ basePath, onClose }) {
13671
13670
  const [state, setState] = useState5();
13672
13671
  const config2 = useMemo3(
13673
13672
  () => [
13674
- {
13675
- name: "system",
13676
- displayName: "System tasks",
13677
- icon: /* @__PURE__ */ jsx4(
13678
- ProductIcon_default,
13679
- {
13680
- center: void 0,
13681
- disabled: void 0,
13682
- height: 5,
13683
- product: OTHER_TYPES.SYSTEM,
13684
- width: 5
13685
- }
13686
- ),
13687
- values: Object.values(systemTaskConfigs()).filter(
13688
- (x) => ![
13689
- WorkflowDefinitionTaskType13.join,
13690
- WorkflowDefinitionTaskType13.http
13691
- ].includes(x.key)
13692
- ).map((x) => ({
13693
- key: x.key,
13694
- name: x.customization.displayName,
13695
- shortDescription: x.customization.shortDescription,
13696
- secondaryText: x.customization.description
13697
- }))
13698
- },
13673
+ // {
13674
+ // name: "system",
13675
+ // displayName: "System tasks",
13676
+ // icon: (
13677
+ // <ProductIcon
13678
+ // center={undefined}
13679
+ // disabled={undefined}
13680
+ // height={5}
13681
+ // product={OTHER_TYPES.SYSTEM}
13682
+ // width={5}
13683
+ // />
13684
+ // ),
13685
+ // values: Object.values(systemTaskConfigs())
13686
+ // .filter(
13687
+ // (x) =>
13688
+ // ![
13689
+ // WorkflowDefinitionTaskType.join as string,
13690
+ // WorkflowDefinitionTaskType.http as string,
13691
+ // ].includes(x.key)
13692
+ // )
13693
+ // .map((x) => ({
13694
+ // key: x.key,
13695
+ // name: x.customization.displayName,
13696
+ // shortDescription: x.customization.shortDescription,
13697
+ // secondaryText: x.customization.description,
13698
+ // })),
13699
+ // },
13699
13700
  {
13700
13701
  name: "livechat",
13701
13702
  displayName: IntegrationDisplayNames9.LiveChat,
@@ -20742,7 +20743,7 @@ var Edges_default = CustomEdge_default;
20742
20743
  import { MarkerType } from "reactflow";
20743
20744
  import ElkConstructor from "elkjs";
20744
20745
  import { DesignToken as DesignToken28 } from "@livechat/design-system-react-components";
20745
- import { WorkflowDefinitionTaskType as WorkflowDefinitionTaskType14 } from "@livechat/developer-studio-api";
20746
+ import { WorkflowDefinitionTaskType as WorkflowDefinitionTaskType13 } from "@livechat/developer-studio-api";
20746
20747
  var elk = new ElkConstructor({
20747
20748
  defaultLayoutOptions: {
20748
20749
  "elk.algorithm": "layered",
@@ -20799,9 +20800,9 @@ var convertToNodes = (tasks) => {
20799
20800
  );
20800
20801
  const { parentSource, parentTargets } = sourceAndTargets != null ? sourceAndTargets : {};
20801
20802
  switch (task2.type) {
20802
- case WorkflowDefinitionTaskType14.terminate:
20803
- case WorkflowDefinitionTaskType14.http:
20804
- case WorkflowDefinitionTaskType14.join:
20803
+ case WorkflowDefinitionTaskType13.terminate:
20804
+ case WorkflowDefinitionTaskType13.http:
20805
+ case WorkflowDefinitionTaskType13.join:
20805
20806
  nodes.push(
20806
20807
  buildNode(
20807
20808
  {
@@ -20820,7 +20821,7 @@ var convertToNodes = (tasks) => {
20820
20821
  )
20821
20822
  );
20822
20823
  return nodes;
20823
- case WorkflowDefinitionTaskType14.switch:
20824
+ case WorkflowDefinitionTaskType13.switch:
20824
20825
  nodes.push(
20825
20826
  buildNode(
20826
20827
  {
@@ -20887,7 +20888,7 @@ var convertToNodes = (tasks) => {
20887
20888
  }
20888
20889
  );
20889
20890
  return nodes;
20890
- case WorkflowDefinitionTaskType14.forkJoin:
20891
+ case WorkflowDefinitionTaskType13.forkJoin:
20891
20892
  nodes.push(
20892
20893
  buildNode(
20893
20894
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/platform-workflows",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "description": "Text Platform | Workflows",
5
5
  "author": "Wojciech Dudek",
6
6
  "license": "MIT",
@@ -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/platform-integrations": "0.0.45",
86
- "@livechat/developer-studio-ui-react": "1.0.13"
85
+ "@livechat/developer-studio-ui-react": "1.0.13",
86
+ "@livechat/platform-integrations": "0.0.45"
87
87
  },
88
88
  "peerDependencies": {
89
89
  "@tanstack/react-query": "4.36.1",