@sparrowengg/integrations-templates-frontend 1.9.84-beta.15 → 1.9.84-beta.16
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/integration-template/components/dashboard.js +19 -35
- package/dist/cjs/integration-template/components/dashboard.js.map +1 -1
- package/dist/es/integration-template/components/dashboard.js +19 -35
- package/dist/es/integration-template/components/dashboard.js.map +1 -1
- package/package.json +1 -1
|
@@ -794,7 +794,7 @@ const SingleMappingDashboardItem = ({
|
|
|
794
794
|
integrationName,
|
|
795
795
|
onMappingEditHandler
|
|
796
796
|
}) => {
|
|
797
|
-
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, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z
|
|
797
|
+
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, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z;
|
|
798
798
|
const [isMappingDisplayed, setIsMappingDisplayed] = React.useState(false);
|
|
799
799
|
const [isDeleteModalOpen, setIsDeleteModalOpen] = React.useState(false);
|
|
800
800
|
const [isSyncing, setIsSyncing] = React.useState(null);
|
|
@@ -831,25 +831,9 @@ const SingleMappingDashboardItem = ({
|
|
|
831
831
|
onClick: () => setIsMappingDisplayed(!isMappingDisplayed)
|
|
832
832
|
},
|
|
833
833
|
isMappingDisplayed ? /* @__PURE__ */ React.createElement(chevronDown.ChevronDownIcon, { size: 40, color: "#848484" }) : /* @__PURE__ */ React.createElement(chevronRight.ChevronRightIcon, { size: 40, color: "#848484" }),
|
|
834
|
-
/* @__PURE__ */ React.createElement(flex.Flex, { alignItems: "center", gap: "$4" }, (() => (field == null ? void 0 : field.isEnabled) !== null && (field == null ? void 0 : field.isEnabled) !== void 0)() ? icon : null, /* @__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"), ((
|
|
835
|
-
text.Text,
|
|
836
|
-
{
|
|
837
|
-
size: "sm",
|
|
838
|
-
weight: "bold",
|
|
839
|
-
css: { color: "$neutral600" }
|
|
840
|
-
},
|
|
841
|
-
(field == null ? void 0 : field.importMethod) === "SEND_ALL_DATA" ? "All" : "Specific"
|
|
842
|
-
), /* @__PURE__ */ React.createElement(text.Text, { size: "sm", css: { color: "$neutral600" } }, "Survey responses to"), /* @__PURE__ */ React.createElement(
|
|
843
|
-
text.Text,
|
|
844
|
-
{
|
|
845
|
-
size: "sm",
|
|
846
|
-
weight: "bold",
|
|
847
|
-
css: { color: "$neutral600" }
|
|
848
|
-
},
|
|
849
|
-
typeof ((_f = field == null ? void 0 : field.configurationFields) == null ? void 0 : _f.spreadsheet) === "object" ? (_i = (_h = (_g = field == null ? void 0 : field.configurationFields) == null ? void 0 : _g.spreadsheet) == null ? void 0 : _h.value) == null ? void 0 : _i.label : (_k = (_j = field == null ? void 0 : field.configurationFields) == null ? void 0 : _j.spreadsheet) == null ? void 0 : _k.value
|
|
850
|
-
)) : null))
|
|
834
|
+
/* @__PURE__ */ React.createElement(flex.Flex, { alignItems: "center", gap: "$4" }, (() => (field == null ? void 0 : field.isEnabled) !== null && (field == null ? void 0 : field.isEnabled) !== void 0)() ? icon : null, /* @__PURE__ */ React.createElement(flex.Flex, { gap: "$1", flexDirection: "column" }, /* @__PURE__ */ React.createElement(text.Text, { size: "md", weight: "bold" }, (field == null ? void 0 : field.mappingName) ? field == null ? void 0 : field.mappingName : (_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"), (field == null ? void 0 : field.mappingDescription) ? /* @__PURE__ */ React.createElement(text.Text, { size: "sm", css: { color: "$neutral600" } }, (field == null ? void 0 : field.mappingDescription) ? field == null ? void 0 : field.mappingDescription : `Sync survey responses to ${integrationName} when ${(_g = (_f = (_e = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _e.events) == null ? void 0 : _f.label) == null ? void 0 : _g.toLowerCase()} is ${trasformToPastTense(`${(_j = (_i = (_h = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _h.action) == null ? void 0 : _i.label) == null ? void 0 : _j.toLowerCase()}`)}`) : null))
|
|
851
835
|
),
|
|
852
|
-
/* @__PURE__ */ React.createElement(flex.Flex, { alignItems: "center", gap: "$12" }, /* @__PURE__ */ React.createElement(tooltip.Tooltip, { content: "Sync", className: "dm-sans" }, /* @__PURE__ */ React.createElement(
|
|
836
|
+
/* @__PURE__ */ React.createElement(flex.Flex, { alignItems: "center", gap: "$12" }, syncMapping ? /* @__PURE__ */ React.createElement(tooltip.Tooltip, { content: "Sync", className: "dm-sans" }, /* @__PURE__ */ React.createElement(
|
|
853
837
|
button.Button,
|
|
854
838
|
{
|
|
855
839
|
variant: "ghost",
|
|
@@ -877,7 +861,7 @@ const SingleMappingDashboardItem = ({
|
|
|
877
861
|
},
|
|
878
862
|
/* @__PURE__ */ React.createElement(sync.default, null)
|
|
879
863
|
)
|
|
880
|
-
)), (() => (field == null ? void 0 : field.isEnabled) !== null && (field == null ? void 0 : field.isEnabled) !== void 0)() ? /* @__PURE__ */ React.createElement(
|
|
864
|
+
)) : null, (() => (field == null ? void 0 : field.isEnabled) !== null && (field == null ? void 0 : field.isEnabled) !== void 0)() ? /* @__PURE__ */ React.createElement(
|
|
881
865
|
box.Box,
|
|
882
866
|
{
|
|
883
867
|
css: {
|
|
@@ -959,58 +943,58 @@ const SingleMappingDashboardItem = ({
|
|
|
959
943
|
}
|
|
960
944
|
},
|
|
961
945
|
/* @__PURE__ */ React.createElement(SingleMappingEventWrapper, { field }),
|
|
962
|
-
!!((
|
|
946
|
+
!!((_n = (_m = (_l = (_k = field == null ? void 0 : field.mappedFields) == null ? void 0 : _k.questions) == null ? void 0 : _l.filter) == null ? void 0 : _m.call(_l, (question) => question.isEnabled)) == null ? void 0 : _n.length) ? /* @__PURE__ */ React.createElement(
|
|
963
947
|
SingleMappingChipWrapper,
|
|
964
948
|
{
|
|
965
949
|
heading: "Questions",
|
|
966
|
-
fields: (
|
|
950
|
+
fields: (_q = (_p = (_o = field == null ? void 0 : field.mappedFields) == null ? void 0 : _o.questions) == null ? void 0 : _p.filter) == null ? void 0 : _q.call(_p, (question) => question.isEnabled),
|
|
967
951
|
backgroundColor: "#E5F2FF"
|
|
968
952
|
}
|
|
969
953
|
) : null,
|
|
970
|
-
!!((
|
|
971
|
-
|
|
954
|
+
!!((_u = (_t = (_s = (_r = field == null ? void 0 : field.mappedFields) == null ? void 0 : _r.derivedQuestions) == null ? void 0 : _s.filter) == null ? void 0 : _t.call(
|
|
955
|
+
_s,
|
|
972
956
|
(derivedQuestion) => derivedQuestion.isEnabled
|
|
973
|
-
)) == null ? void 0 :
|
|
957
|
+
)) == null ? void 0 : _u.length) ? /* @__PURE__ */ React.createElement(
|
|
974
958
|
SingleMappingChipWrapper,
|
|
975
959
|
{
|
|
976
960
|
heading: "Enrich",
|
|
977
|
-
fields: (
|
|
978
|
-
|
|
961
|
+
fields: (_x = (_w = (_v = field == null ? void 0 : field.mappedFields) == null ? void 0 : _v.derivedQuestions) == null ? void 0 : _w.filter) == null ? void 0 : _x.call(
|
|
962
|
+
_w,
|
|
979
963
|
(derivedQuestion) => derivedQuestion.isEnabled
|
|
980
964
|
),
|
|
981
965
|
backgroundColor: "#E5F2FF"
|
|
982
966
|
}
|
|
983
967
|
) : null,
|
|
984
|
-
!!((
|
|
968
|
+
!!((_B = (_A = (_z = (_y = field == null ? void 0 : field.mappedFields) == null ? void 0 : _y.variables) == null ? void 0 : _z.filter) == null ? void 0 : _A.call(_z, (variable) => variable.isEnabled)) == null ? void 0 : _B.length) ? /* @__PURE__ */ React.createElement(
|
|
985
969
|
SingleMappingChipWrapper,
|
|
986
970
|
{
|
|
987
971
|
heading: "Variables",
|
|
988
|
-
fields: (
|
|
972
|
+
fields: (_E = (_D = (_C = field == null ? void 0 : field.mappedFields) == null ? void 0 : _C.variables) == null ? void 0 : _D.filter) == null ? void 0 : _E.call(_D, (variable) => variable.isEnabled),
|
|
989
973
|
backgroundColor: "$positive100"
|
|
990
974
|
}
|
|
991
975
|
) : null,
|
|
992
|
-
!!((
|
|
976
|
+
!!((_I = (_H = (_G = (_F = field == null ? void 0 : field.mappedFields) == null ? void 0 : _F.contactProperties) == null ? void 0 : _G.filter) == null ? void 0 : _H.call(_G, (property) => property.isEnabled)) == null ? void 0 : _I.length) ? /* @__PURE__ */ React.createElement(
|
|
993
977
|
SingleMappingChipWrapper,
|
|
994
978
|
{
|
|
995
979
|
heading: "Contacts",
|
|
996
|
-
fields: (
|
|
980
|
+
fields: (_L = (_K = (_J = field == null ? void 0 : field.mappedFields) == null ? void 0 : _J.contactProperties) == null ? void 0 : _K.filter) == null ? void 0 : _L.call(_K, (property) => property.isEnabled),
|
|
997
981
|
backgroundColor: "$negative100"
|
|
998
982
|
}
|
|
999
983
|
) : null,
|
|
1000
|
-
!!((
|
|
984
|
+
!!((_P = (_O = (_N = (_M = field == null ? void 0 : field.mappedFields) == null ? void 0 : _M.expressions) == null ? void 0 : _N.filter) == null ? void 0 : _O.call(_N, (expression) => expression.isEnabled)) == null ? void 0 : _P.length) ? /* @__PURE__ */ React.createElement(
|
|
1001
985
|
SingleMappingChipWrapper,
|
|
1002
986
|
{
|
|
1003
987
|
heading: "Expression",
|
|
1004
988
|
backgroundColor: "$neutral100",
|
|
1005
|
-
fields: (
|
|
989
|
+
fields: (_S = (_R = (_Q = field == null ? void 0 : field.mappedFields) == null ? void 0 : _Q.expressions) == null ? void 0 : _R.filter) == null ? void 0 : _S.call(_R, (expression) => expression.isEnabled)
|
|
1006
990
|
}
|
|
1007
991
|
) : null,
|
|
1008
|
-
!!((
|
|
992
|
+
!!((_W = (_V = (_U = (_T = field == null ? void 0 : field.mappedFields) == null ? void 0 : _T.property) == null ? void 0 : _U.filter) == null ? void 0 : _V.call(_U, (property) => property.isEnabled)) == null ? void 0 : _W.length) ? /* @__PURE__ */ React.createElement(
|
|
1009
993
|
SingleMappingChipWrapper,
|
|
1010
994
|
{
|
|
1011
995
|
heading: "Property",
|
|
1012
996
|
hideBorder: true,
|
|
1013
|
-
fields: (
|
|
997
|
+
fields: (_Z = (_Y = (_X = field == null ? void 0 : field.mappedFields) == null ? void 0 : _X.property) == null ? void 0 : _Y.filter) == null ? void 0 : _Z.call(_Y, (property) => property.isEnabled),
|
|
1014
998
|
backgroundColor: "rgba(74, 156, 166, 0.15)"
|
|
1015
999
|
}
|
|
1016
1000
|
) : null
|