@sparrowengg/integrations-templates-frontend 1.9.39 → 1.9.41
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/index9.js +2 -2
- package/dist/cjs/integration-template/components/dashboard.js +12 -9
- package/dist/cjs/integration-template/components/dashboard.js.map +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/cjs/single-mapping/components/mapping.js +1 -1
- package/dist/cjs/single-mapping/components/mapping.js.map +1 -1
- package/dist/es/_virtual/index10.js +2 -2
- package/dist/es/_virtual/index9.js +2 -2
- package/dist/es/integration-template/components/dashboard.js +12 -9
- package/dist/es/integration-template/components/dashboard.js.map +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/dist/es/single-mapping/components/mapping.js +1 -1
- package/dist/es/single-mapping/components/mapping.js.map +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);
|
|
@@ -723,25 +727,25 @@ const SingleMappingDashboardItem = ({
|
|
|
723
727
|
isMappingDisplayed ? /* @__PURE__ */ React.createElement(chevronDown.ChevronDownIcon, { size: 40, color: "#848484" }) : /* @__PURE__ */ React.createElement(chevronRight.ChevronRightIcon, { size: 40, color: "#848484" }),
|
|
724
728
|
/* @__PURE__ */ React.createElement(flex.Flex, { alignItems: "center", gap: "$4" }, icon, /* @__PURE__ */ React.createElement(flex.Flex, { gap: "$1", flexDirection: "column" }, /* @__PURE__ */ React.createElement(text.Text, { size: "md", weight: "bold" }, (_d = (_c = (_b = (_a = field == null ? void 0 : field.configurationFields) == null ? void 0 : _a.account) == null ? void 0 : _b.value) == null ? void 0 : _c.label) != null ? _d : "Mapping"), /* @__PURE__ */ React.createElement(flex.Flex, { gap: "$2", alignItems: "center" }, /* @__PURE__ */ React.createElement(text.Text, { size: "sm", css: { color: "$neutral600" } }, `Sync `), /* @__PURE__ */ React.createElement(text.Text, { size: "sm", weight: "bold", css: { color: "$neutral600" } }, (field == null ? void 0 : field.importMethod) === "SEND_ALL_DATA" ? "All" : "Specific"), /* @__PURE__ */ React.createElement(text.Text, { size: "sm", css: { color: "$neutral600" } }, "Survey responses to"), /* @__PURE__ */ React.createElement(text.Text, { size: "sm", weight: "bold", css: { color: "$neutral600" } }, typeof ((_e = field == null ? void 0 : field.configurationFields) == null ? void 0 : _e.spreadsheet) === "object" ? (_h = (_g = (_f = field == null ? void 0 : field.configurationFields) == null ? void 0 : _f.spreadsheet) == null ? void 0 : _g.value) == null ? void 0 : _h.label : (_j = (_i = field == null ? void 0 : field.configurationFields) == null ? void 0 : _i.spreadsheet) == null ? void 0 : _j.value), /* @__PURE__ */ React.createElement(text.Text, { size: "sm", css: { color: "$neutral600" } }, "Sheet"))))
|
|
725
729
|
),
|
|
726
|
-
/* @__PURE__ */ React.createElement(flex.Flex, { alignItems: "center", gap: "$12" }, /* @__PURE__ */ React.createElement(flex.Flex, { className: `rotating-div ${isSyncing === field.id ? "rotate" : ""}`, justifyContent: "center", alignItems: "center", css: {
|
|
730
|
+
/* @__PURE__ */ React.createElement(flex.Flex, { alignItems: "center", gap: "$12" }, console.log(isSyncing, "234"), console.log(field.id, "234"), /* @__PURE__ */ React.createElement(flex.Flex, { className: `rotating-div ${isSyncing === field.id ? "rotate" : ""}`, justifyContent: "center", alignItems: "center", css: {
|
|
727
731
|
cursor: "pointer",
|
|
728
732
|
marginInlineEnd: "$3"
|
|
729
733
|
}, onClick: async () => {
|
|
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,
|
|
@@ -801,7 +806,6 @@ const SingleMappingDashboardItem = ({
|
|
|
801
806
|
SingleMappingChipWrapper,
|
|
802
807
|
{
|
|
803
808
|
heading: "Variables",
|
|
804
|
-
placeholder: "$",
|
|
805
809
|
fields: (_n = field == null ? void 0 : field.mappedFields) == null ? void 0 : _n.variables,
|
|
806
810
|
backgroundColor: "$positive100"
|
|
807
811
|
}
|
|
@@ -810,7 +814,6 @@ const SingleMappingDashboardItem = ({
|
|
|
810
814
|
SingleMappingChipWrapper,
|
|
811
815
|
{
|
|
812
816
|
heading: "Contacts",
|
|
813
|
-
placeholder: "$",
|
|
814
817
|
fields: (_p = field == null ? void 0 : field.mappedFields) == null ? void 0 : _p.contactProperties,
|
|
815
818
|
backgroundColor: "$negative100"
|
|
816
819
|
}
|