@livechat/platform-workflows 0.0.41 → 0.0.43

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
@@ -15328,7 +15328,7 @@ function TriggerNodeForm({
15328
15328
  onChange,
15329
15329
  readonly
15330
15330
  }) {
15331
- var _b, _c, _d, _e, _f;
15331
+ var _b, _c, _d, _e, _f, _g;
15332
15332
  if (data.type === "webhook") {
15333
15333
  const _a = data.webhook.event, { name } = _a, formData = __objRest(_a, ["name"]);
15334
15334
  const specConfig = (_c = (_b = metadata.frame) == null ? void 0 : _b.__meta) == null ? void 0 : _c.config;
@@ -15350,7 +15350,7 @@ function TriggerNodeForm({
15350
15350
  {
15351
15351
  formContext: { frame: metadata.frame, data },
15352
15352
  formData,
15353
- formErrors: (_f = metadata.errors.webhook) == null ? void 0 : _f.event,
15353
+ formErrors: (_g = (_f = metadata.errors) == null ? void 0 : _f.webhook) == null ? void 0 : _g.event,
15354
15354
  onChange: (formData2) => {
15355
15355
  onChange(__spreadProps(__spreadValues({}, data), {
15356
15356
  webhook: __spreadProps(__spreadValues({}, data.webhook), {
@@ -22202,19 +22202,20 @@ function WorkflowsTable({ workflowsQuery, state }) {
22202
22202
  navigate(`/workflow/${workflow.id}`);
22203
22203
  },
22204
22204
  children: [
22205
- /* @__PURE__ */ jsx2("td", { width: "45%", children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react41.Row, { gap: `var(${import_design_system_react_components79.SpacingToken.Spacing2})`, notPadded: true, children: [
22206
- /* @__PURE__ */ jsx2("span", { children: workflow.name }),
22207
- workflow.related_workflow_id ? /* @__PURE__ */ jsx2(
22205
+ /* @__PURE__ */ jsx2("td", { children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react41.Row, { notPadded: true, noWrap: true, gap: `var(${import_design_system_react_components79.SpacingToken.Spacing2})`, children: [
22206
+ /* @__PURE__ */ jsx2(import_design_system_react_components79.Text, { noMargin: true, size: "sm", children: workflow.name }),
22207
+ workflow.related_workflow_id && /* @__PURE__ */ jsx2(
22208
22208
  import_design_system_react_components79.Tag,
22209
22209
  {
22210
22210
  css: css`
22211
22211
  color: #68afff;
22212
+ flex-shrink: 0;
22212
22213
  `,
22213
22214
  kind: "info",
22214
22215
  size: "small",
22215
22216
  children: "Has Draft"
22216
22217
  }
22217
- ) : null
22218
+ )
22218
22219
  ] }) }),
22219
22220
  /* @__PURE__ */ jsx2("td", { width: "40%", children: /* @__PURE__ */ jsx2(import_developer_studio_ui_react41.Row, { gap: 12, notPadded: true, children: (_d = workflow.tags) == null ? void 0 : _d.map((tag) => {
22220
22221
  const revertIconColor = getWorkflowsEnv("isHeadless") && (tag.toLowerCase() === "openai" || tag.toLowerCase() === import_developer_studio_api28.IntegrationNames.BigCommerce.toLowerCase());
package/dist/index.mjs CHANGED
@@ -15541,7 +15541,7 @@ function TriggerNodeForm({
15541
15541
  onChange,
15542
15542
  readonly
15543
15543
  }) {
15544
- var _b, _c, _d, _e, _f;
15544
+ var _b, _c, _d, _e, _f, _g;
15545
15545
  if (data.type === "webhook") {
15546
15546
  const _a = data.webhook.event, { name } = _a, formData = __objRest(_a, ["name"]);
15547
15547
  const specConfig = (_c = (_b = metadata.frame) == null ? void 0 : _b.__meta) == null ? void 0 : _c.config;
@@ -15563,7 +15563,7 @@ function TriggerNodeForm({
15563
15563
  {
15564
15564
  formContext: { frame: metadata.frame, data },
15565
15565
  formData,
15566
- formErrors: (_f = metadata.errors.webhook) == null ? void 0 : _f.event,
15566
+ formErrors: (_g = (_f = metadata.errors) == null ? void 0 : _f.webhook) == null ? void 0 : _g.event,
15567
15567
  onChange: (formData2) => {
15568
15568
  onChange(__spreadProps(__spreadValues({}, data), {
15569
15569
  webhook: __spreadProps(__spreadValues({}, data.webhook), {
@@ -22704,19 +22704,20 @@ function WorkflowsTable({ workflowsQuery, state }) {
22704
22704
  navigate(`/workflow/${workflow.id}`);
22705
22705
  },
22706
22706
  children: [
22707
- /* @__PURE__ */ jsx2("td", { width: "45%", children: /* @__PURE__ */ jsxs2(Row22, { gap: `var(${SpacingToken45.Spacing2})`, notPadded: true, children: [
22708
- /* @__PURE__ */ jsx2("span", { children: workflow.name }),
22709
- workflow.related_workflow_id ? /* @__PURE__ */ jsx2(
22707
+ /* @__PURE__ */ jsx2("td", { children: /* @__PURE__ */ jsxs2(Row22, { notPadded: true, noWrap: true, gap: `var(${SpacingToken45.Spacing2})`, children: [
22708
+ /* @__PURE__ */ jsx2(Text22, { noMargin: true, size: "sm", children: workflow.name }),
22709
+ workflow.related_workflow_id && /* @__PURE__ */ jsx2(
22710
22710
  Tag3,
22711
22711
  {
22712
22712
  css: css`
22713
22713
  color: #68afff;
22714
+ flex-shrink: 0;
22714
22715
  `,
22715
22716
  kind: "info",
22716
22717
  size: "small",
22717
22718
  children: "Has Draft"
22718
22719
  }
22719
- ) : null
22720
+ )
22720
22721
  ] }) }),
22721
22722
  /* @__PURE__ */ jsx2("td", { width: "40%", children: /* @__PURE__ */ jsx2(Row22, { gap: 12, notPadded: true, children: (_d = workflow.tags) == null ? void 0 : _d.map((tag) => {
22722
22723
  const revertIconColor = getWorkflowsEnv("isHeadless") && (tag.toLowerCase() === "openai" || tag.toLowerCase() === IntegrationNames18.BigCommerce.toLowerCase());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/platform-workflows",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
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.3.9",
85
- "@livechat/developer-studio-ui-react": "0.0.67",
86
- "@livechat/platform-integrations": "0.0.17"
85
+ "@livechat/platform-integrations": "0.0.18",
86
+ "@livechat/developer-studio-ui-react": "0.0.68"
87
87
  },
88
88
  "peerDependencies": {
89
89
  "@tanstack/react-query": "4.36.1",