@comet/brevo-admin 4.0.0-canary-20250731092722 → 9.0.0-canary-20260121085838

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.
Files changed (142) hide show
  1. package/lib/blocks/NewsletterImageBlock.d.ts +2 -2
  2. package/lib/blocks/NewsletterImageBlock.d.ts.map +1 -1
  3. package/lib/blocks/NewsletterImageBlock.js +2 -5
  4. package/lib/blocks.generated.d.ts +204 -0
  5. package/lib/blocks.generated.d.ts.map +1 -0
  6. package/lib/blocks.generated.js +5 -0
  7. package/lib/brevoConfiguration/BrevoConfigForm.d.ts +4 -4
  8. package/lib/brevoConfiguration/BrevoConfigForm.d.ts.map +1 -1
  9. package/lib/brevoConfiguration/BrevoConfigForm.gql.generated.d.ts +2 -2
  10. package/lib/brevoConfiguration/BrevoConfigForm.gql.generated.d.ts.map +1 -1
  11. package/lib/brevoConfiguration/BrevoConfigForm.js +48 -54
  12. package/lib/brevoConfiguration/BrevoConfigPage.d.ts +0 -1
  13. package/lib/brevoConfiguration/BrevoConfigPage.d.ts.map +1 -1
  14. package/lib/brevoConfiguration/BrevoConfigPage.js +0 -4
  15. package/lib/brevoContacts/BrevoContactsGrid.d.ts +6 -6
  16. package/lib/brevoContacts/BrevoContactsGrid.d.ts.map +1 -1
  17. package/lib/brevoContacts/BrevoContactsGrid.generated.d.ts +5 -5
  18. package/lib/brevoContacts/BrevoContactsGrid.generated.d.ts.map +1 -1
  19. package/lib/brevoContacts/BrevoContactsGrid.js +39 -51
  20. package/lib/brevoContacts/BrevoContactsPage.d.ts +5 -5
  21. package/lib/brevoContacts/BrevoContactsPage.d.ts.map +1 -1
  22. package/lib/brevoContacts/BrevoContactsPage.js +0 -4
  23. package/lib/brevoContacts/form/BrevoContactForm.d.ts +6 -6
  24. package/lib/brevoContacts/form/BrevoContactForm.d.ts.map +1 -1
  25. package/lib/brevoContacts/form/BrevoContactForm.gql.d.ts +1 -1
  26. package/lib/brevoContacts/form/BrevoContactForm.gql.d.ts.map +1 -1
  27. package/lib/brevoContacts/form/BrevoContactForm.gql.generated.d.ts +3 -3
  28. package/lib/brevoContacts/form/BrevoContactForm.gql.generated.d.ts.map +1 -1
  29. package/lib/brevoContacts/form/BrevoContactForm.js +62 -67
  30. package/lib/brevoTestContacts/BrevoTestContactsGrid.d.ts +6 -6
  31. package/lib/brevoTestContacts/BrevoTestContactsGrid.d.ts.map +1 -1
  32. package/lib/brevoTestContacts/BrevoTestContactsGrid.generated.d.ts +4 -4
  33. package/lib/brevoTestContacts/BrevoTestContactsGrid.generated.d.ts.map +1 -1
  34. package/lib/brevoTestContacts/BrevoTestContactsGrid.js +31 -40
  35. package/lib/brevoTestContacts/BrevoTestContactsPage.d.ts +5 -5
  36. package/lib/brevoTestContacts/BrevoTestContactsPage.d.ts.map +1 -1
  37. package/lib/brevoTestContacts/BrevoTestContactsPage.js +0 -4
  38. package/lib/brevoTestContacts/form/BrevoTestContactForm.d.ts +6 -6
  39. package/lib/brevoTestContacts/form/BrevoTestContactForm.d.ts.map +1 -1
  40. package/lib/brevoTestContacts/form/BrevoTestContactForm.gql.d.ts +1 -1
  41. package/lib/brevoTestContacts/form/BrevoTestContactForm.gql.d.ts.map +1 -1
  42. package/lib/brevoTestContacts/form/BrevoTestContactForm.gql.generated.d.ts +3 -3
  43. package/lib/brevoTestContacts/form/BrevoTestContactForm.gql.generated.d.ts.map +1 -1
  44. package/lib/brevoTestContacts/form/BrevoTestContactForm.js +50 -55
  45. package/lib/common/BrevoConfigProvider.d.ts +4 -4
  46. package/lib/common/BrevoConfigProvider.d.ts.map +1 -1
  47. package/lib/common/BrevoConfigProvider.js +3 -4
  48. package/lib/common/contactImport/useContactImportFromCsv.d.ts +10 -5
  49. package/lib/common/contactImport/useContactImportFromCsv.d.ts.map +1 -1
  50. package/lib/common/contactImport/useContactImportFromCsv.gql.generated.d.ts +3 -3
  51. package/lib/common/contactImport/useContactImportFromCsv.gql.generated.d.ts.map +1 -1
  52. package/lib/common/contactImport/useContactImportFromCsv.js +74 -76
  53. package/lib/configVerification/ConfigVerification.d.ts +4 -4
  54. package/lib/configVerification/ConfigVerification.d.ts.map +1 -1
  55. package/lib/configVerification/ConfigVerification.js +0 -4
  56. package/lib/emailCampaigns/EmailCampaignsGrid.d.ts +4 -5
  57. package/lib/emailCampaigns/EmailCampaignsGrid.d.ts.map +1 -1
  58. package/lib/emailCampaigns/EmailCampaignsGrid.generated.d.ts +4 -4
  59. package/lib/emailCampaigns/EmailCampaignsGrid.generated.d.ts.map +1 -1
  60. package/lib/emailCampaigns/EmailCampaignsGrid.js +35 -43
  61. package/lib/emailCampaigns/EmailCampaignsPage.d.ts +1 -2
  62. package/lib/emailCampaigns/EmailCampaignsPage.d.ts.map +1 -1
  63. package/lib/emailCampaigns/EmailCampaignsPage.js +0 -4
  64. package/lib/emailCampaigns/SendingStateColumn.d.ts +2 -3
  65. package/lib/emailCampaigns/SendingStateColumn.d.ts.map +1 -1
  66. package/lib/emailCampaigns/SendingStateColumn.js +5 -11
  67. package/lib/emailCampaigns/form/ConfigFields.d.ts +1 -2
  68. package/lib/emailCampaigns/form/ConfigFields.d.ts.map +1 -1
  69. package/lib/emailCampaigns/form/ConfigFields.js +0 -4
  70. package/lib/emailCampaigns/form/EmailCampaignForm.d.ts +3 -5
  71. package/lib/emailCampaigns/form/EmailCampaignForm.d.ts.map +1 -1
  72. package/lib/emailCampaigns/form/EmailCampaignForm.gql.generated.d.ts +4 -4
  73. package/lib/emailCampaigns/form/EmailCampaignForm.gql.generated.d.ts.map +1 -1
  74. package/lib/emailCampaigns/form/EmailCampaignForm.js +72 -86
  75. package/lib/emailCampaigns/form/SendEmailCampaignNowDialog.d.ts +1 -2
  76. package/lib/emailCampaigns/form/SendEmailCampaignNowDialog.d.ts.map +1 -1
  77. package/lib/emailCampaigns/form/SendEmailCampaignNowDialog.js +1 -3
  78. package/lib/emailCampaigns/form/SendManagerFields.d.ts +3 -4
  79. package/lib/emailCampaigns/form/SendManagerFields.d.ts.map +1 -1
  80. package/lib/emailCampaigns/form/SendManagerFields.gql.generated.d.ts +1 -1
  81. package/lib/emailCampaigns/form/SendManagerFields.gql.generated.d.ts.map +1 -1
  82. package/lib/emailCampaigns/form/SendManagerFields.js +27 -40
  83. package/lib/emailCampaigns/form/SendManagerWrapper.d.ts +4 -4
  84. package/lib/emailCampaigns/form/SendManagerWrapper.d.ts.map +1 -1
  85. package/lib/emailCampaigns/form/SendManagerWrapper.js +0 -4
  86. package/lib/emailCampaigns/form/TestEmailCampaignForm.d.ts +2 -3
  87. package/lib/emailCampaigns/form/TestEmailCampaignForm.d.ts.map +1 -1
  88. package/lib/emailCampaigns/form/TestEmailCampaignForm.generated.d.ts +3 -3
  89. package/lib/emailCampaigns/form/TestEmailCampaignForm.generated.d.ts.map +1 -1
  90. package/lib/emailCampaigns/form/TestEmailCampaignForm.gql.generated.d.ts +1 -1
  91. package/lib/emailCampaigns/form/TestEmailCampaignForm.gql.generated.d.ts.map +1 -1
  92. package/lib/emailCampaigns/form/TestEmailCampaignForm.js +19 -33
  93. package/lib/emailCampaigns/statistics/EmailCampaignStatistics.d.ts +2 -2
  94. package/lib/emailCampaigns/statistics/EmailCampaignStatistics.d.ts.map +1 -1
  95. package/lib/emailCampaigns/statistics/EmailCampaignStatistics.gql.generated.d.ts +1 -1
  96. package/lib/emailCampaigns/statistics/EmailCampaignStatistics.gql.generated.d.ts.map +1 -1
  97. package/lib/emailCampaigns/statistics/EmailCampaignStatistics.js +34 -31
  98. package/lib/emailCampaigns/statistics/PercentageCard.d.ts +3 -3
  99. package/lib/emailCampaigns/statistics/PercentageCard.d.ts.map +1 -1
  100. package/lib/emailCampaigns/statistics/PercentageCard.js +6 -15
  101. package/lib/emailCampaigns/view/EmailCampaignView.d.ts +2 -3
  102. package/lib/emailCampaigns/view/EmailCampaignView.d.ts.map +1 -1
  103. package/lib/emailCampaigns/view/EmailCampaignView.gql.generated.d.ts +1 -1
  104. package/lib/emailCampaigns/view/EmailCampaignView.gql.generated.d.ts.map +1 -1
  105. package/lib/emailCampaigns/view/EmailCampaignView.js +2 -5
  106. package/lib/graphql.generated.d.ts +280 -211
  107. package/lib/graphql.generated.d.ts.map +1 -1
  108. package/lib/index.d.ts +3 -3
  109. package/lib/index.d.ts.map +1 -1
  110. package/lib/index.js +0 -20
  111. package/lib/targetGroups/TargetGroupDialog.d.ts +4 -4
  112. package/lib/targetGroups/TargetGroupDialog.d.ts.map +1 -1
  113. package/lib/targetGroups/TargetGroupDialog.js +10 -12
  114. package/lib/targetGroups/TargetGroupForm.d.ts +6 -6
  115. package/lib/targetGroups/TargetGroupForm.d.ts.map +1 -1
  116. package/lib/targetGroups/TargetGroupForm.gql.d.ts +1 -1
  117. package/lib/targetGroups/TargetGroupForm.gql.d.ts.map +1 -1
  118. package/lib/targetGroups/TargetGroupForm.gql.generated.d.ts +4 -4
  119. package/lib/targetGroups/TargetGroupForm.gql.generated.d.ts.map +1 -1
  120. package/lib/targetGroups/TargetGroupForm.js +28 -33
  121. package/lib/targetGroups/TargetGroupsGrid.d.ts +5 -5
  122. package/lib/targetGroups/TargetGroupsGrid.d.ts.map +1 -1
  123. package/lib/targetGroups/TargetGroupsGrid.generated.d.ts +7 -7
  124. package/lib/targetGroups/TargetGroupsGrid.generated.d.ts.map +1 -1
  125. package/lib/targetGroups/TargetGroupsGrid.js +45 -55
  126. package/lib/targetGroups/TargetGroupsPage.d.ts +5 -5
  127. package/lib/targetGroups/TargetGroupsPage.d.ts.map +1 -1
  128. package/lib/targetGroups/TargetGroupsPage.js +0 -4
  129. package/lib/targetGroups/addContacts/AddContactsGridSelect.d.ts +4 -4
  130. package/lib/targetGroups/addContacts/AddContactsGridSelect.d.ts.map +1 -1
  131. package/lib/targetGroups/addContacts/AddContactsGridSelect.gql.generated.d.ts +9 -9
  132. package/lib/targetGroups/addContacts/AddContactsGridSelect.gql.generated.d.ts.map +1 -1
  133. package/lib/targetGroups/addContacts/AddContactsGridSelect.js +43 -52
  134. package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.d.ts +4 -4
  135. package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.d.ts.map +1 -1
  136. package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.gql.generated.d.ts +4 -4
  137. package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.gql.generated.d.ts.map +1 -1
  138. package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.js +9 -14
  139. package/package.json +71 -72
  140. package/lib/temp/CrudMoreActionsMenu.d.ts +0 -23
  141. package/lib/temp/CrudMoreActionsMenu.d.ts.map +0 -1
  142. package/lib/temp/CrudMoreActionsMenu.js +0 -208
@@ -11,17 +11,17 @@ var _adminIcons = require("@comet/admin-icons");
11
11
  var _cmsAdmin = require("@comet/cms-admin");
12
12
  var _material = require("@mui/material");
13
13
  var _system = require("@mui/system");
14
- var _react = _interopRequireDefault(require("react"));
14
+ var _react = require("react");
15
15
  var _reactIntl = require("react-intl");
16
16
  var _BrevoConfigProvider = require("../../common/BrevoConfigProvider");
17
17
  var _BrevoContactForm = require("./BrevoContactForm.gql");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
19
  var _excluded = ["email", "redirectionUrl"];
20
20
  var _templateObject;
21
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
22
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
23
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
24
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
21
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
22
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
23
+ function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
24
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
25
25
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
26
26
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
27
27
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -56,7 +56,7 @@ function BrevoContactForm(_ref) {
56
56
  data = _useQuery.data,
57
57
  loading = _useQuery.loading,
58
58
  refetch = _useQuery.refetch;
59
- var initialValues = _react["default"].useMemo(function () {
59
+ var initialValues = (0, _react.useMemo)(function () {
60
60
  var _data$brevoContact;
61
61
  var baseInitialValues = {
62
62
  email: "",
@@ -72,19 +72,19 @@ function BrevoContactForm(_ref) {
72
72
  }, [data === null || data === void 0 ? void 0 : data.brevoContact, input2State]);
73
73
  var saveConflict = (0, _cmsAdmin.useFormSaveConflict)({
74
74
  checkConflict: function () {
75
- var _checkConflict = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
75
+ var _checkConflict = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
76
76
  var _data$brevoContact2;
77
77
  var _yield$client$query, updatedData;
78
- return _regeneratorRuntime().wrap(function _callee$(_context) {
79
- while (1) switch (_context.prev = _context.next) {
78
+ return _regenerator().w(function (_context) {
79
+ while (1) switch (_context.n) {
80
80
  case 0:
81
81
  if (id) {
82
- _context.next = 2;
82
+ _context.n = 1;
83
83
  break;
84
84
  }
85
- return _context.abrupt("return", false);
86
- case 2:
87
- _context.next = 4;
85
+ return _context.a(2, false);
86
+ case 1:
87
+ _context.n = 2;
88
88
  return client.query({
89
89
  query: _BrevoContactForm.brevoContactFormCheckForChangesQuery,
90
90
  variables: {
@@ -93,13 +93,10 @@ function BrevoContactForm(_ref) {
93
93
  },
94
94
  fetchPolicy: "no-cache"
95
95
  });
96
- case 4:
97
- _yield$client$query = _context.sent;
96
+ case 2:
97
+ _yield$client$query = _context.v;
98
98
  updatedData = _yield$client$query.data;
99
- return _context.abrupt("return", (0, _cmsAdmin.resolveHasSaveConflict)(data === null || data === void 0 || (_data$brevoContact2 = data.brevoContact) === null || _data$brevoContact2 === void 0 ? void 0 : _data$brevoContact2.modifiedAt, updatedData.brevoContact.modifiedAt));
100
- case 7:
101
- case "end":
102
- return _context.stop();
99
+ return _context.a(2, (0, _cmsAdmin.resolveHasSaveConflict)(data === null || data === void 0 || (_data$brevoContact2 = data.brevoContact) === null || _data$brevoContact2 === void 0 ? void 0 : _data$brevoContact2.modifiedAt, updatedData.brevoContact.modifiedAt));
103
100
  }
104
101
  }, _callee);
105
102
  }));
@@ -110,15 +107,14 @@ function BrevoContactForm(_ref) {
110
107
  }(),
111
108
  formApiRef: formApiRef,
112
109
  loadLatestVersion: function () {
113
- var _loadLatestVersion = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
114
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
115
- while (1) switch (_context2.prev = _context2.next) {
110
+ var _loadLatestVersion = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
111
+ return _regenerator().w(function (_context2) {
112
+ while (1) switch (_context2.n) {
116
113
  case 0:
117
- _context2.next = 2;
114
+ _context2.n = 1;
118
115
  return refetch();
119
- case 2:
120
- case "end":
121
- return _context2.stop();
116
+ case 1:
117
+ return _context2.a(2);
122
118
  }
123
119
  }, _callee2);
124
120
  }));
@@ -129,36 +125,36 @@ function BrevoContactForm(_ref) {
129
125
  }()
130
126
  });
131
127
  var handleSubmit = /*#__PURE__*/function () {
132
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(state, form, event) {
133
- var output, email, redirectionUrl, rest, _yield$client$mutate, mutationResponse, response;
134
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
135
- while (1) switch (_context3.prev = _context3.next) {
128
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(state, form, event) {
129
+ var output, email, redirectionUrl, rest, _yield$client$mutate, mutationResponse, response, _t;
130
+ return _regenerator().w(function (_context3) {
131
+ while (1) switch (_context3.p = _context3.n) {
136
132
  case 0:
137
- _context3.prev = 0;
138
- _context3.next = 3;
133
+ _context3.p = 0;
134
+ _context3.n = 1;
139
135
  return saveConflict.checkForConflicts();
140
- case 3:
141
- if (!_context3.sent) {
142
- _context3.next = 5;
136
+ case 1:
137
+ if (!_context3.v) {
138
+ _context3.n = 2;
143
139
  break;
144
140
  }
145
141
  throw new Error("Conflicts detected");
146
- case 5:
142
+ case 2:
147
143
  output = _objectSpread(_objectSpread({}, state), {}, {
148
144
  blocked: false
149
145
  });
150
146
  if (!(mode === "edit")) {
151
- _context3.next = 14;
147
+ _context3.n = 5;
152
148
  break;
153
149
  }
154
150
  if (id) {
155
- _context3.next = 9;
151
+ _context3.n = 3;
156
152
  break;
157
153
  }
158
154
  throw new Error("Missing id in edit mode");
159
- case 9:
155
+ case 3:
160
156
  email = output.email, redirectionUrl = output.redirectionUrl, rest = _objectWithoutProperties(output, _excluded);
161
- _context3.next = 12;
157
+ _context3.n = 4;
162
158
  return client.mutate({
163
159
  mutation: (0, _BrevoContactForm.updateBrevoContactMutation)(brevoContactFormFragment),
164
160
  variables: {
@@ -167,11 +163,11 @@ function BrevoContactForm(_ref) {
167
163
  scope: scope
168
164
  }
169
165
  });
170
- case 12:
171
- _context3.next = 37;
166
+ case 4:
167
+ _context3.n = 11;
172
168
  break;
173
- case 14:
174
- _context3.next = 16;
169
+ case 5:
170
+ _context3.n = 6;
175
171
  return client.mutate({
176
172
  mutation: _BrevoContactForm.createBrevoContactMutation,
177
173
  variables: {
@@ -179,62 +175,61 @@ function BrevoContactForm(_ref) {
179
175
  input: output
180
176
  }
181
177
  });
182
- case 16:
183
- _yield$client$mutate = _context3.sent;
178
+ case 6:
179
+ _yield$client$mutate = _context3.v;
184
180
  mutationResponse = _yield$client$mutate.data;
185
181
  if (event.navigatingBack) {
186
- _context3.next = 37;
182
+ _context3.n = 11;
187
183
  break;
188
184
  }
189
185
  response = mutationResponse === null || mutationResponse === void 0 ? void 0 : mutationResponse.createBrevoContact;
190
186
  if (!(response === "SUCCESSFUL")) {
191
- _context3.next = 24;
187
+ _context3.n = 7;
192
188
  break;
193
189
  }
194
190
  setTimeout(function () {
195
191
  stackApi === null || stackApi === void 0 || stackApi.goBack();
196
192
  });
197
- _context3.next = 37;
193
+ _context3.n = 11;
198
194
  break;
199
- case 24:
195
+ case 7:
200
196
  if (!(response === "ERROR_CONTAINED_IN_ECG_RTR_LIST")) {
201
- _context3.next = 28;
197
+ _context3.n = 8;
202
198
  break;
203
199
  }
204
200
  throw new Error("Contact contained in ECG RTR list, cannot create contact");
205
- case 28:
201
+ case 8:
206
202
  if (!(response === "ERROR_CONTACT_IS_BLACKLISTED")) {
207
- _context3.next = 32;
203
+ _context3.n = 9;
208
204
  break;
209
205
  }
210
206
  throw new Error("Contact could not be created as it is blacklisted.");
211
- case 32:
207
+ case 9:
212
208
  if (!(response === "ERROR_CONTACT_ALREADY_EXISTS")) {
213
- _context3.next = 36;
209
+ _context3.n = 10;
214
210
  break;
215
211
  }
216
212
  throw new Error("A contact with this email already exists.");
217
- case 36:
213
+ case 10:
218
214
  throw new Error("Error creating contact");
219
- case 37:
220
- _context3.next = 42;
215
+ case 11:
216
+ _context3.n = 13;
221
217
  break;
222
- case 39:
223
- _context3.prev = 39;
224
- _context3.t0 = _context3["catch"](0);
218
+ case 12:
219
+ _context3.p = 12;
220
+ _t = _context3.v;
225
221
  errorDialog === null || errorDialog === void 0 || errorDialog.showError({
226
222
  title: "Error",
227
223
  userMessage: /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Alert, {
228
224
  severity: "error",
229
- children: _context3.t0.message
225
+ children: _t.message
230
226
  }),
231
- error: _context3.t0
227
+ error: String(_t)
232
228
  });
233
- case 42:
234
- case "end":
235
- return _context3.stop();
229
+ case 13:
230
+ return _context3.a(2);
236
231
  }
237
- }, _callee3, null, [[0, 39]]);
232
+ }, _callee3, null, [[0, 12]]);
238
233
  }));
239
234
  return function handleSubmit(_x, _x2, _x3) {
240
235
  return _ref2.apply(this, arguments);
@@ -1,13 +1,13 @@
1
- import { DocumentNode } from "@apollo/client";
2
- import { GridColDef } from "@comet/admin";
3
- import { ContentScopeInterface } from "@comet/cms-admin";
4
- import * as React from "react";
1
+ import { type DocumentNode } from "@apollo/client";
2
+ import { type GridColDef } from "@comet/admin";
3
+ import { type ContentScope } from "@comet/cms-admin";
4
+ import { type ReactElement } from "react";
5
5
  export declare function BrevoTestContactsGrid({ scope, additionalAttributesFragment, additionalGridFields, }: {
6
- scope: ContentScopeInterface;
6
+ scope: ContentScope;
7
7
  additionalAttributesFragment?: {
8
8
  name: string;
9
9
  fragment: DocumentNode;
10
10
  };
11
11
  additionalGridFields?: GridColDef[];
12
- }): React.ReactElement;
12
+ }): ReactElement;
13
13
  //# sourceMappingURL=BrevoTestContactsGrid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BrevoTestContactsGrid.d.ts","sourceRoot":"","sources":["../../src/brevoTestContacts/BrevoTestContactsGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAkC,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAGH,UAAU,EAcb,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA8E/B,wBAAgB,qBAAqB,CAAC,EAClC,KAAK,EACL,4BAA4B,EAC5B,oBAAyB,GAC5B,EAAE;IACC,KAAK,EAAE,qBAAqB,CAAC;IAC7B,4BAA4B,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;IACxE,oBAAoB,CAAC,EAAE,UAAU,EAAE,CAAC;CACvC,GAAG,KAAK,CAAC,YAAY,CA0HrB"}
1
+ {"version":3,"file":"BrevoTestContactsGrid.d.ts","sourceRoot":"","sources":["../../src/brevoTestContacts/BrevoTestContactsGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,gBAAgB,CAAC;AACnF,OAAO,EAIH,KAAK,UAAU,EAYlB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAIrD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AA8D1C,wBAAgB,qBAAqB,CAAC,EAClC,KAAK,EACL,4BAA4B,EAC5B,oBAAyB,GAC5B,EAAE;IACC,KAAK,EAAE,YAAY,CAAC;IACpB,4BAA4B,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;IACxE,oBAAoB,CAAC,EAAE,UAAU,EAAE,CAAC;CACvC,GAAG,YAAY,CA0Hf"}
@@ -20,7 +20,7 @@ export type GQLBrevoContactsListFragment = {
20
20
  smsBlacklisted: boolean;
21
21
  };
22
22
  export type GQLDeleteBrevoTestContactMutationVariables = Types.Exact<{
23
- id: Types.Scalars['Int'];
23
+ id: Types.Scalars['Int']['input'];
24
24
  scope: Types.GQLEmailCampaignContentScopeInput;
25
25
  }>;
26
26
  export type GQLDeleteBrevoTestContactMutation = {
@@ -28,9 +28,9 @@ export type GQLDeleteBrevoTestContactMutation = {
28
28
  deleteBrevoTestContact: boolean;
29
29
  };
30
30
  export type GQLBrevoTestContactsGridQueryVariables = Types.Exact<{
31
- offset?: Types.InputMaybe<Types.Scalars['Int']>;
32
- limit?: Types.InputMaybe<Types.Scalars['Int']>;
33
- email?: Types.InputMaybe<Types.Scalars['String']>;
31
+ offset?: Types.InputMaybe<Types.Scalars['Int']['input']>;
32
+ limit?: Types.InputMaybe<Types.Scalars['Int']['input']>;
33
+ email?: Types.InputMaybe<Types.Scalars['String']['input']>;
34
34
  scope: Types.GQLEmailCampaignContentScopeInput;
35
35
  }>;
36
36
  export type GQLBrevoTestContactsGridQuery = {
@@ -1 +1 @@
1
- {"version":3,"file":"BrevoTestContactsGrid.generated.d.ts","sourceRoot":"","sources":["../../src/brevoTestContacts/BrevoTestContactsGrid.generated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAE9C,eAAO,MAAM,eAAe;;;;;;;;;;CAU3B,CAAA;AACD,MAAM,MAAM,4BAA4B,GAAG;IAAE,UAAU,CAAC,EAAE,cAAc,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,gBAAgB,EAAE,OAAO,CAAC;IAAC,cAAc,EAAE,OAAO,CAAA;CAAE,CAAC;AAEjM,MAAM,MAAM,0CAA0C,GAAG,KAAK,CAAC,KAAK,CAAC;IACnE,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC,iCAAiC,CAAC;CAChD,CAAC,CAAC;AAGH,MAAM,MAAM,iCAAiC,GAAG;IAAE,UAAU,CAAC,EAAE,UAAU,CAAC;IAAC,sBAAsB,EAAE,OAAO,CAAA;CAAE,CAAC;AAE7G,MAAM,MAAM,sCAAsC,GAAG,KAAK,CAAC,KAAK,CAAC;IAC/D,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAChD,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/C,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClD,KAAK,EAAE,KAAK,CAAC,iCAAiC,CAAC;CAChD,CAAC,CAAC;AAGH,MAAM,MAAM,6BAA6B,GAAG;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,iBAAiB,EAAE;QAAE,UAAU,CAAC,EAAE,wBAAwB,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,CAAC;YAAE,UAAU,CAAC,EAAE,cAAc,CAAC;YAAC,EAAE,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,gBAAgB,EAAE,OAAO,CAAC;YAAC,cAAc,EAAE,OAAO,CAAA;SAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"BrevoTestContactsGrid.generated.d.ts","sourceRoot":"","sources":["../../src/brevoTestContacts/BrevoTestContactsGrid.generated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAE9C,eAAO,MAAM,eAAe;;;;;;;;;;CAU3B,CAAA;AACD,MAAM,MAAM,4BAA4B,GAAG;IAAE,UAAU,CAAC,EAAE,cAAc,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,gBAAgB,EAAE,OAAO,CAAC;IAAC,cAAc,EAAE,OAAO,CAAA;CAAE,CAAC;AAEjM,MAAM,MAAM,0CAA0C,GAAG,KAAK,CAAC,KAAK,CAAC;IACnE,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;IAClC,KAAK,EAAE,KAAK,CAAC,iCAAiC,CAAC;CAChD,CAAC,CAAC;AAGH,MAAM,MAAM,iCAAiC,GAAG;IAAE,UAAU,CAAC,EAAE,UAAU,CAAC;IAAC,sBAAsB,EAAE,OAAO,CAAA;CAAE,CAAC;AAE7G,MAAM,MAAM,sCAAsC,GAAG,KAAK,CAAC,KAAK,CAAC;IAC/D,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACzD,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACxD,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3D,KAAK,EAAE,KAAK,CAAC,iCAAiC,CAAC;CAChD,CAAC,CAAC;AAGH,MAAM,MAAM,6BAA6B,GAAG;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,iBAAiB,EAAE;QAAE,UAAU,CAAC,EAAE,wBAAwB,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,CAAC;YAAE,UAAU,CAAC,EAAE,cAAc,CAAC;YAAC,EAAE,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,gBAAgB,EAAE,OAAO,CAAC;YAAC,cAAc,EAAE,OAAO,CAAA;SAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
@@ -10,13 +10,11 @@ var _admin = require("@comet/admin");
10
10
  var _adminIcons = require("@comet/admin-icons");
11
11
  var _material = require("@mui/material");
12
12
  var _xDataGrid = require("@mui/x-data-grid");
13
- var React = _interopRequireWildcard(require("react"));
14
13
  var _reactIntl = require("react-intl");
15
14
  var _jsxRuntime = require("react/jsx-runtime");
16
15
  var _templateObject, _templateObject2, _templateObject3;
17
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
19
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
16
+ function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
17
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
20
18
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
21
19
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
22
20
  function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
@@ -35,7 +33,6 @@ var brevoContactsFragment = (0, _client.gql)(_templateObject || (_templateObject
35
33
  var deleteBrevoTestContactMutation = (0, _client.gql)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n mutation DeleteBrevoTestContact($id: Int!, $scope: EmailCampaignContentScopeInput!) {\n deleteBrevoTestContact(id: $id, scope: $scope)\n }\n"])));
36
34
  function BrevoTestContactsGridToolbar(_ref) {
37
35
  var intl = _ref.intl,
38
- scope = _ref.scope,
39
36
  totalCount = _ref.totalCount;
40
37
  var disableButton = totalCount >= 100;
41
38
  var tooltipMessage = intl.formatMessage({
@@ -48,29 +45,24 @@ function BrevoTestContactsGridToolbar(_ref) {
48
45
  id: "cometBrevoModule.brevoTestContact.title",
49
46
  defaultMessage: "Test contacts"
50
47
  })
51
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.ToolbarItem, {
52
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGrid.GridToolbarQuickFilter, {
53
- placeholder: intl.formatMessage({
54
- id: "cometBrevoModule.brevoTestContact.searchEmail",
55
- defaultMessage: "Search email address"
56
- })
48
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGrid.GridToolbarQuickFilter, {
49
+ placeholder: intl.formatMessage({
50
+ id: "cometBrevoModule.brevoTestContact.searchEmail",
51
+ defaultMessage: "Search email address"
57
52
  })
58
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.ToolbarFillSpace, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.ToolbarActions, {
59
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Tooltip, {
60
- title: disableButton ? tooltipMessage : "",
61
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
62
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
63
- startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_adminIcons.Add, {}),
64
- component: _admin.StackLink,
65
- pageName: "add",
66
- payload: "add",
67
- variant: "contained",
68
- color: "primary",
69
- disabled: disableButton,
70
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
71
- id: "cometBrevoModule.brevoTestContact.newContact",
72
- defaultMessage: "New test contact"
73
- })
53
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.ToolbarFillSpace, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Tooltip, {
54
+ title: disableButton ? tooltipMessage : "",
55
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
56
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Button, {
57
+ startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_adminIcons.Add, {}),
58
+ component: _admin.StackLink,
59
+ pageName: "add",
60
+ payload: "add",
61
+ variant: "primary",
62
+ disabled: disableButton,
63
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
64
+ id: "cometBrevoModule.brevoTestContact.newContact",
65
+ defaultMessage: "New test contact"
74
66
  })
75
67
  })
76
68
  })
@@ -141,11 +133,11 @@ function BrevoTestContactsGrid(_ref2) {
141
133
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.RowActionsMenu, {
142
134
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.RowActionsMenu, {
143
135
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.RowActionsItem, {
144
- onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
145
- return _regeneratorRuntime().wrap(function _callee$(_context) {
146
- while (1) switch (_context.prev = _context.next) {
136
+ onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
137
+ return _regenerator().w(function (_context) {
138
+ while (1) switch (_context.n) {
147
139
  case 0:
148
- _context.next = 2;
140
+ _context.n = 1;
149
141
  return client.mutate({
150
142
  mutation: deleteBrevoTestContactMutation,
151
143
  variables: {
@@ -154,9 +146,8 @@ function BrevoTestContactsGrid(_ref2) {
154
146
  },
155
147
  refetchQueries: [brevoTestContactsQuery]
156
148
  });
157
- case 2:
158
- case "end":
159
- return _context.stop();
149
+ case 1:
150
+ return _context.a(2);
160
151
  }
161
152
  }, _callee);
162
153
  })),
@@ -170,8 +161,8 @@ function BrevoTestContactsGrid(_ref2) {
170
161
  }]);
171
162
  var _useQuery = (0, _client.useQuery)(brevoTestContactsQuery, {
172
163
  variables: {
173
- offset: dataGridProps.page * dataGridProps.pageSize,
174
- limit: dataGridProps.pageSize,
164
+ offset: dataGridProps.paginationModel.page * dataGridProps.paginationModel.pageSize,
165
+ limit: dataGridProps.paginationModel.pageSize,
175
166
  email: (_dataGridProps$filter = dataGridProps.filterModel) !== null && _dataGridProps$filter !== void 0 && _dataGridProps$filter.quickFilterValues ? (_dataGridProps$filter2 = dataGridProps.filterModel) === null || _dataGridProps$filter2 === void 0 ? void 0 : _dataGridProps$filter2.quickFilterValues[0] : undefined,
176
167
  scope: scope
177
168
  }
@@ -197,15 +188,15 @@ function BrevoTestContactsGrid(_ref2) {
197
188
  })
198
189
  })
199
190
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGrid.DataGrid, _objectSpread(_objectSpread({}, dataGridProps), {}, {
200
- disableSelectionOnClick: true,
191
+ disableRowSelectionOnClick: true,
201
192
  rows: rows,
202
193
  rowCount: rowCount,
203
194
  columns: columns,
204
195
  loading: loading,
205
- components: {
206
- Toolbar: BrevoTestContactsGridToolbar
196
+ slots: {
197
+ toolbar: BrevoTestContactsGridToolbar
207
198
  },
208
- componentsProps: {
199
+ slotProps: {
209
200
  toolbar: {
210
201
  intl: intl,
211
202
  scope: scope,
@@ -1,7 +1,7 @@
1
- import { GridColDef } from "@comet/admin";
2
- import { DocumentNode } from "graphql";
3
- import * as React from "react";
4
- import { EditBrevoContactFormValues } from "./form/BrevoTestContactForm";
1
+ import { type GridColDef } from "@comet/admin";
2
+ import { type DocumentNode } from "graphql";
3
+ import { type ReactNode } from "react";
4
+ import { type EditBrevoContactFormValues } from "./form/BrevoTestContactForm";
5
5
  interface CreateContactsPageOptions {
6
6
  /** @deprecated Pass via BrevoConfigProvider instead */
7
7
  scopeParts?: string[];
@@ -10,7 +10,7 @@ interface CreateContactsPageOptions {
10
10
  fragment: DocumentNode;
11
11
  };
12
12
  additionalGridFields?: GridColDef[];
13
- additionalFormFields?: React.ReactNode;
13
+ additionalFormFields?: ReactNode;
14
14
  input2State?: (values?: EditBrevoContactFormValues) => EditBrevoContactFormValues;
15
15
  }
16
16
  declare function createBrevoTestContactsPage({ scopeParts: passedScopeParts, additionalAttributesFragment, additionalFormFields, additionalGridFields, input2State, }: CreateContactsPageOptions): () => JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"BrevoTestContactsPage.d.ts","sourceRoot":"","sources":["../../src/brevoTestContacts/BrevoTestContactsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA+C,MAAM,cAAc,CAAC;AAEvF,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAwB,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAE/F,UAAU,yBAAyB;IAC/B,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,4BAA4B,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;IACxE,oBAAoB,CAAC,EAAE,UAAU,EAAE,CAAC;IACpC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,0BAA0B,KAAK,0BAA0B,CAAC;CACrF;AAED,iBAAS,2BAA2B,CAAC,EACjC,UAAU,EAAE,gBAAgB,EAC5B,4BAA4B,EAC5B,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,GACd,EAAE,yBAAyB,SACU,WAAW,CAyDhD;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
1
+ {"version":3,"file":"BrevoTestContactsPage.d.ts","sourceRoot":"","sources":["../../src/brevoTestContacts/BrevoTestContactsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAA+C,MAAM,cAAc,CAAC;AAE5F,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,EAAwB,KAAK,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEpG,UAAU,yBAAyB;IAC/B,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,4BAA4B,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;IACxE,oBAAoB,CAAC,EAAE,UAAU,EAAE,CAAC;IACpC,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,0BAA0B,KAAK,0BAA0B,CAAC;CACrF;AAED,iBAAS,2BAA2B,CAAC,EACjC,UAAU,EAAE,gBAAgB,EAC5B,4BAA4B,EAC5B,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,GACd,EAAE,yBAAyB,SACU,GAAG,CAAC,OAAO,CA4DhD;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
@@ -1,21 +1,17 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.createBrevoTestContactsPage = createBrevoTestContactsPage;
8
7
  var _admin = require("@comet/admin");
9
8
  var _cmsAdmin = require("@comet/cms-admin");
10
- var React = _interopRequireWildcard(require("react"));
11
9
  var _reactIntl = require("react-intl");
12
10
  var _BrevoConfigProvider = require("../common/BrevoConfigProvider");
13
11
  var _ConfigVerification = require("../configVerification/ConfigVerification");
14
12
  var _BrevoTestContactsGrid = require("./BrevoTestContactsGrid");
15
13
  var _BrevoTestContactForm = require("./form/BrevoTestContactForm");
16
14
  var _jsxRuntime = require("react/jsx-runtime");
17
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
19
15
  function createBrevoTestContactsPage(_ref) {
20
16
  var passedScopeParts = _ref.scopeParts,
21
17
  additionalAttributesFragment = _ref.additionalAttributesFragment,
@@ -1,19 +1,19 @@
1
- import { DocumentNode } from "@apollo/client";
2
- import { ContentScopeInterface } from "@comet/cms-admin";
3
- import React from "react";
1
+ import { type DocumentNode } from "@apollo/client";
2
+ import { type ContentScope } from "@comet/cms-admin";
3
+ import { type ReactElement, type ReactNode } from "react";
4
4
  export type EditBrevoContactFormValues = {
5
5
  [key: string]: unknown;
6
6
  };
7
7
  interface FormProps {
8
8
  id?: number;
9
- scope: ContentScopeInterface;
10
- additionalFormFields?: React.ReactNode;
9
+ scope: ContentScope;
10
+ additionalFormFields?: ReactNode;
11
11
  additionalAttributesFragment?: {
12
12
  name: string;
13
13
  fragment: DocumentNode;
14
14
  };
15
15
  input2State?: (values?: EditBrevoContactFormValues) => EditBrevoContactFormValues;
16
16
  }
17
- export declare function BrevoTestContactForm({ id, scope, input2State, additionalFormFields, additionalAttributesFragment }: FormProps): React.ReactElement;
17
+ export declare function BrevoTestContactForm({ id, scope, input2State, additionalFormFields, additionalAttributesFragment }: FormProps): ReactElement;
18
18
  export {};
19
19
  //# sourceMappingURL=BrevoTestContactForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BrevoTestContactForm.d.ts","sourceRoot":"","sources":["../../../src/brevoTestContacts/form/BrevoTestContactForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAkC,MAAM,gBAAgB,CAAC;AAmB9E,OAAO,EAAE,qBAAqB,EAA+C,MAAM,kBAAkB,CAAC;AAItG,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B,MAAM,MAAM,0BAA0B,GAAG;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,CAAC;AAMF,UAAU,SAAS;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,qBAAqB,CAAC;IAC7B,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,4BAA4B,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;IACxE,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,0BAA0B,KAAK,0BAA0B,CAAC;CACrF;AAED,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,YAAY,CA4JlJ"}
1
+ {"version":3,"file":"BrevoTestContactForm.d.ts","sourceRoot":"","sources":["../../../src/brevoTestContacts/form/BrevoTestContactForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,gBAAgB,CAAC;AAmBnF,OAAO,EAAE,KAAK,YAAY,EAA+C,MAAM,kBAAkB,CAAC;AAIlG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAoBnE,MAAM,MAAM,0BAA0B,GAAG;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,CAAC;AAMF,UAAU,SAAS;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,YAAY,CAAC;IACpB,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC,4BAA4B,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;IACxE,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,0BAA0B,KAAK,0BAA0B,CAAC;CACrF;AAED,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,EAAE,SAAS,GAAG,YAAY,CA4J5I"}
@@ -1,4 +1,4 @@
1
- import { DocumentNode } from "@apollo/client";
1
+ import { type DocumentNode } from "@apollo/client";
2
2
  export declare const brevoContactFormQuery: (brevoTestContactFormFragment: DocumentNode) => DocumentNode;
3
3
  export declare const brevoContactFormCheckForChangesQuery: DocumentNode;
4
4
  export declare const createBrevoTestContactMutation: DocumentNode;
@@ -1 +1 @@
1
- {"version":3,"file":"BrevoTestContactForm.gql.d.ts","sourceRoot":"","sources":["../../../src/brevoTestContacts/form/BrevoTestContactForm.gql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAO,MAAM,gBAAgB,CAAC;AAEnD,eAAO,MAAM,qBAAqB,iCAAkC,YAAY,iBAS/E,CAAC;AAEF,eAAO,MAAM,oCAAoC,cAMhD,CAAC;AAEF,eAAO,MAAM,8BAA8B,cAI1C,CAAC;AAEF,eAAO,MAAM,0BAA0B,iCAAkC,YAAY,iBASpF,CAAC"}
1
+ {"version":3,"file":"BrevoTestContactForm.gql.d.ts","sourceRoot":"","sources":["../../../src/brevoTestContacts/form/BrevoTestContactForm.gql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,gBAAgB,CAAC;AAExD,eAAO,MAAM,qBAAqB,GAAI,8BAA8B,YAAY,iBAS/E,CAAC;AAEF,eAAO,MAAM,oCAAoC,cAMhD,CAAC;AAEF,eAAO,MAAM,8BAA8B,cAI1C,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,8BAA8B,YAAY,iBASpF,CAAC"}