@comet/brevo-admin 3.0.0 → 3.0.1-canary-20250213152725
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestEmailCampaignForm.d.ts","sourceRoot":"","sources":["../../../src/emailCampaigns/form/TestEmailCampaignForm.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TestEmailCampaignForm.d.ts","sourceRoot":"","sources":["../../../src/emailCampaigns/form/TestEmailCampaignForm.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,UAAU,0BAA0B;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAqBD,eAAO,MAAM,qBAAqB,uBAAgC,0BAA0B,sBA6F3F,CAAC"}
|
|
@@ -13,6 +13,7 @@ var _cmsAdmin = require("@comet/cms-admin");
|
|
|
13
13
|
var _material = require("@mui/material");
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _reactIntl = require("react-intl");
|
|
16
|
+
var _BrevoConfigProvider = require("../../common/BrevoConfigProvider");
|
|
16
17
|
var _TestEmailCampaignForm = require("./TestEmailCampaignForm.gql");
|
|
17
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
var _templateObject, _templateObject2;
|
|
@@ -29,7 +30,14 @@ var TestEmailCampaignForm = exports.TestEmailCampaignForm = function TestEmailCa
|
|
|
29
30
|
_ref$isSendable = _ref.isSendable,
|
|
30
31
|
isSendable = _ref$isSendable === void 0 ? false : _ref$isSendable;
|
|
31
32
|
var client = (0, _client.useApolloClient)();
|
|
32
|
-
var
|
|
33
|
+
var _useBrevoConfig = (0, _BrevoConfigProvider.useBrevoConfig)(),
|
|
34
|
+
scopeParts = _useBrevoConfig.scopeParts;
|
|
35
|
+
var _useContentScope = (0, _cmsAdmin.useContentScope)(),
|
|
36
|
+
completeScope = _useContentScope.scope;
|
|
37
|
+
var scope = scopeParts.reduce(function (acc, scopePart) {
|
|
38
|
+
acc[scopePart] = completeScope[scopePart];
|
|
39
|
+
return acc;
|
|
40
|
+
}, {});
|
|
33
41
|
|
|
34
42
|
// Contact creation is limited to 100 at a time. Therefore, 100 contacts are queried without using pagination.
|
|
35
43
|
var _useQuery = (0, _client.useQuery)(brevoTestContactsSelectQuery, {
|