@sparrowengg/integrations-templates-frontend 1.9.39 → 1.9.40
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/cjs/_virtual/index10.js +2 -2
- package/dist/cjs/_virtual/index8.js +2 -2
- package/dist/cjs/_virtual/index9.js +2 -2
- package/dist/cjs/integration-template/components/dashboard.js +11 -6
- package/dist/cjs/integration-template/components/dashboard.js.map +1 -1
- package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/html-dom-parser/node_modules/domutils/lib/index.js +1 -1
- package/dist/cjs/node_modules/html-dom-parser/node_modules/htmlparser2/lib/index.js +1 -1
- package/dist/cjs/node_modules/style-to-js/cjs/index.js +1 -1
- package/dist/cjs/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/es/_virtual/index10.js +2 -2
- package/dist/es/_virtual/index8.js +2 -2
- package/dist/es/_virtual/index9.js +2 -2
- package/dist/es/integration-template/components/dashboard.js +11 -6
- package/dist/es/integration-template/components/dashboard.js.map +1 -1
- package/dist/es/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/es/node_modules/html-dom-parser/node_modules/domutils/lib/index.js +1 -1
- package/dist/es/node_modules/html-dom-parser/node_modules/htmlparser2/lib/index.js +1 -1
- package/dist/es/node_modules/style-to-js/cjs/index.js +1 -1
- package/dist/es/node_modules/style-to-object/cjs/index.js +1 -1
- package/package.json +1 -1
|
@@ -235,7 +235,8 @@ const MultiAccountDashboard = ({
|
|
|
235
235
|
handleEditField,
|
|
236
236
|
handleDashboardPage,
|
|
237
237
|
toggleDashboardField,
|
|
238
|
-
deleteFieldHandler
|
|
238
|
+
deleteFieldHandler,
|
|
239
|
+
onMappingEditHandler
|
|
239
240
|
}
|
|
240
241
|
));
|
|
241
242
|
})) : null)
|
|
@@ -312,7 +313,8 @@ const MultiAccountDashboard = ({
|
|
|
312
313
|
handleEditField,
|
|
313
314
|
handleDashboardPage,
|
|
314
315
|
toggleDashboardField,
|
|
315
|
-
deleteFieldHandler
|
|
316
|
+
deleteFieldHandler,
|
|
317
|
+
onMappingEditHandler
|
|
316
318
|
}
|
|
317
319
|
));
|
|
318
320
|
}))) : /* @__PURE__ */ React.createElement(
|
|
@@ -420,6 +422,7 @@ const SingleAccountDashboard = ({
|
|
|
420
422
|
return /* @__PURE__ */ React.createElement(
|
|
421
423
|
SingleMappingDashboardItem,
|
|
422
424
|
{
|
|
425
|
+
onMappingEditHandler,
|
|
423
426
|
syncMapping,
|
|
424
427
|
field,
|
|
425
428
|
key: field == null ? void 0 : field.id,
|
|
@@ -687,7 +690,8 @@ const SingleMappingDashboardItem = ({
|
|
|
687
690
|
toggleDashboardField,
|
|
688
691
|
deleteFieldHandler,
|
|
689
692
|
syncMapping,
|
|
690
|
-
integrationName
|
|
693
|
+
integrationName,
|
|
694
|
+
onMappingEditHandler
|
|
691
695
|
}) => {
|
|
692
696
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
693
697
|
const [isMappingDisplayed, setIsMappingDisplayed] = React.useState(false);
|
|
@@ -730,18 +734,18 @@ const SingleMappingDashboardItem = ({
|
|
|
730
734
|
setIsSyncing(field.id);
|
|
731
735
|
await (syncMapping == null ? void 0 : syncMapping(field.id));
|
|
732
736
|
setIsSyncing(null);
|
|
733
|
-
} }, /* @__PURE__ */ React.createElement(sync.default, null)), /* @__PURE__ */ React.createElement(box.Box, { css: {
|
|
737
|
+
} }, /* @__PURE__ */ React.createElement(sync.default, null)), (() => (field == null ? void 0 : field.isEnabled) !== null && (field == null ? void 0 : field.isEnabled) !== void 0)() ? /* @__PURE__ */ React.createElement(box.Box, { css: {
|
|
734
738
|
width: "1px",
|
|
735
739
|
height: "20px",
|
|
736
740
|
background: "#64748B33"
|
|
737
|
-
} }), /* @__PURE__ */ React.createElement(
|
|
741
|
+
} }) : null, (() => (field == null ? void 0 : field.isEnabled) !== null && (field == null ? void 0 : field.isEnabled) !== void 0)() ? /* @__PURE__ */ React.createElement(
|
|
738
742
|
_switch.Switch,
|
|
739
743
|
{
|
|
740
744
|
size: "md",
|
|
741
745
|
checked: field.isEnabled,
|
|
742
746
|
onChange: (value) => toggleDashboardField == null ? void 0 : toggleDashboardField(field.id, value)
|
|
743
747
|
}
|
|
744
|
-
), /* @__PURE__ */ React.createElement(dropdown.DropdownMenu, null, /* @__PURE__ */ React.createElement(dropdown.DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(
|
|
748
|
+
) : null, /* @__PURE__ */ React.createElement(dropdown.DropdownMenu, null, /* @__PURE__ */ React.createElement(dropdown.DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(
|
|
745
749
|
iconButton.IconButton,
|
|
746
750
|
{
|
|
747
751
|
variant: "ghost",
|
|
@@ -760,6 +764,7 @@ const SingleMappingDashboardItem = ({
|
|
|
760
764
|
dropdown.DropdownMenuItem,
|
|
761
765
|
{
|
|
762
766
|
onClick: () => {
|
|
767
|
+
onMappingEditHandler(field.id);
|
|
763
768
|
handleEditField({
|
|
764
769
|
type: "MAPPING",
|
|
765
770
|
values: field,
|