@sparrowengg/integrations-templates-frontend 1.9.46 → 1.9.48
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 +16 -14
- 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/cjs/single-mapping/components/mapping.js +1 -1
- package/dist/cjs/single-mapping/components/mapping.js.map +1 -1
- package/dist/cjs/single-mapping/index.js +208 -142
- package/dist/cjs/single-mapping/index.js.map +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 +16 -14
- package/dist/es/integration-template/components/dashboard.js.map +1 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/tooltip/tooltip.js +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/dist/es/single-mapping/components/mapping.js +1 -1
- package/dist/es/single-mapping/components/mapping.js.map +1 -1
- package/dist/es/single-mapping/index.js +208 -142
- package/dist/es/single-mapping/index.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -611,7 +611,7 @@ const TriggerDasboardItem = ({
|
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
)) : null,
|
|
614
|
-
((_e = (_d = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _d.variables) == null ? void 0 : _e.length) ? /* @__PURE__ */ React.createElement(
|
|
614
|
+
((_e = (_d = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _d.variables) == null ? void 0 : _e.filter((variable) => variable.isEnabled).length) ? /* @__PURE__ */ React.createElement(
|
|
615
615
|
SingleMappingChipWrapper,
|
|
616
616
|
{
|
|
617
617
|
heading: ((_g = (_f = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _f.variables) == null ? void 0 : _g.length) > 1 ? "PASSING VARIABLES TO SURVEY" : "PASSING VARIABLE TO SURVEY",
|
|
@@ -693,7 +693,7 @@ const SingleMappingDashboardItem = ({
|
|
|
693
693
|
integrationName,
|
|
694
694
|
onMappingEditHandler
|
|
695
695
|
}) => {
|
|
696
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
696
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D;
|
|
697
697
|
const [isMappingDisplayed, setIsMappingDisplayed] = React.useState(false);
|
|
698
698
|
const [isDeleteModalOpen, setIsDeleteModalOpen] = React.useState(false);
|
|
699
699
|
const [isSyncing, setIsSyncing] = React.useState(null);
|
|
@@ -732,8 +732,10 @@ const SingleMappingDashboardItem = ({
|
|
|
732
732
|
marginInlineEnd: "$3"
|
|
733
733
|
}, onClick: async () => {
|
|
734
734
|
setIsSyncing(field.id);
|
|
735
|
-
|
|
736
|
-
|
|
735
|
+
setTimeout(async () => {
|
|
736
|
+
await (syncMapping == null ? void 0 : syncMapping(field.id));
|
|
737
|
+
setIsSyncing(null);
|
|
738
|
+
}, 2e3);
|
|
737
739
|
} }, /* @__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: {
|
|
738
740
|
width: "1px",
|
|
739
741
|
height: "20px",
|
|
@@ -794,44 +796,44 @@ const SingleMappingDashboardItem = ({
|
|
|
794
796
|
}
|
|
795
797
|
},
|
|
796
798
|
/* @__PURE__ */ React.createElement(SingleMappingEventWrapper, { field }),
|
|
797
|
-
!!((_k = field == null ? void 0 : field.mappedFields) == null ? void 0 : _k.questions) ? /* @__PURE__ */ React.createElement(
|
|
799
|
+
!!((_l = (_k = field == null ? void 0 : field.mappedFields) == null ? void 0 : _k.questions) == null ? void 0 : _l.filter((question) => question.isEnabled).length) ? /* @__PURE__ */ React.createElement(
|
|
798
800
|
SingleMappingChipWrapper,
|
|
799
801
|
{
|
|
800
802
|
heading: "Questions",
|
|
801
|
-
fields: (
|
|
803
|
+
fields: (_n = (_m = field == null ? void 0 : field.mappedFields) == null ? void 0 : _m.questions) == null ? void 0 : _n.filter((question) => question.isEnabled),
|
|
802
804
|
backgroundColor: "#E5F2FF"
|
|
803
805
|
}
|
|
804
806
|
) : null,
|
|
805
|
-
!!((
|
|
807
|
+
!!((_p = (_o = field == null ? void 0 : field.mappedFields) == null ? void 0 : _o.variables) == null ? void 0 : _p.filter((variable) => variable.isEnabled).length) ? /* @__PURE__ */ React.createElement(
|
|
806
808
|
SingleMappingChipWrapper,
|
|
807
809
|
{
|
|
808
810
|
heading: "Variables",
|
|
809
|
-
fields: (
|
|
811
|
+
fields: (_r = (_q = field == null ? void 0 : field.mappedFields) == null ? void 0 : _q.variables) == null ? void 0 : _r.filter((variable) => variable.isEnabled),
|
|
810
812
|
backgroundColor: "$positive100"
|
|
811
813
|
}
|
|
812
814
|
) : null,
|
|
813
|
-
!!((
|
|
815
|
+
!!((_t = (_s = field == null ? void 0 : field.mappedFields) == null ? void 0 : _s.contactProperties) == null ? void 0 : _t.filter((property) => property.isEnabled).length) ? /* @__PURE__ */ React.createElement(
|
|
814
816
|
SingleMappingChipWrapper,
|
|
815
817
|
{
|
|
816
818
|
heading: "Contacts",
|
|
817
|
-
fields: (
|
|
819
|
+
fields: (_v = (_u = field == null ? void 0 : field.mappedFields) == null ? void 0 : _u.contactProperties) == null ? void 0 : _v.filter((property) => property.isEnabled),
|
|
818
820
|
backgroundColor: "$negative100"
|
|
819
821
|
}
|
|
820
822
|
) : null,
|
|
821
|
-
!!((
|
|
823
|
+
!!((_x = (_w = field == null ? void 0 : field.mappedFields) == null ? void 0 : _w.expressions) == null ? void 0 : _x.filter((expression) => expression.isEnabled).length) ? /* @__PURE__ */ React.createElement(
|
|
822
824
|
SingleMappingChipWrapper,
|
|
823
825
|
{
|
|
824
826
|
heading: "Expression",
|
|
825
827
|
backgroundColor: "$neutral100",
|
|
826
|
-
fields: (
|
|
828
|
+
fields: (_z = (_y = field == null ? void 0 : field.mappedFields) == null ? void 0 : _y.expressions) == null ? void 0 : _z.filter((expression) => expression.isEnabled)
|
|
827
829
|
}
|
|
828
830
|
) : null,
|
|
829
|
-
!!((
|
|
831
|
+
!!((_B = (_A = field == null ? void 0 : field.mappedFields) == null ? void 0 : _A.property) == null ? void 0 : _B.filter((property) => property.isEnabled).length) ? /* @__PURE__ */ React.createElement(
|
|
830
832
|
SingleMappingChipWrapper,
|
|
831
833
|
{
|
|
832
834
|
heading: "Property",
|
|
833
835
|
hideBorder: true,
|
|
834
|
-
fields: (
|
|
836
|
+
fields: (_D = (_C = field == null ? void 0 : field.mappedFields) == null ? void 0 : _C.property) == null ? void 0 : _D.filter((property) => property.isEnabled),
|
|
835
837
|
backgroundColor: "rgba(74, 156, 166, 0.15)"
|
|
836
838
|
}
|
|
837
839
|
) : null
|