@comet/brevo-admin 2.2.1-canary-20250121101458 → 2.2.1
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.
|
@@ -396,7 +396,8 @@ function EmailCampaignForm(_ref) {
|
|
|
396
396
|
id: id
|
|
397
397
|
}), /*#__PURE__*/_react["default"].createElement(_TestEmailCampaignForm.TestEmailCampaignForm, {
|
|
398
398
|
id: id,
|
|
399
|
-
isSendable: !hasChanges && state.targetGroups != undefined
|
|
399
|
+
isSendable: !hasChanges && state.targetGroups != undefined,
|
|
400
|
+
scope: scope
|
|
400
401
|
}))
|
|
401
402
|
}])));
|
|
402
403
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { ContentScopeInterface } from "@comet/cms-admin";
|
|
1
2
|
import React from "react";
|
|
2
3
|
interface TestEmailCampaignFormProps {
|
|
3
4
|
id?: string;
|
|
4
5
|
isSendable?: boolean;
|
|
6
|
+
scope: ContentScopeInterface;
|
|
5
7
|
}
|
|
6
|
-
export declare const TestEmailCampaignForm: ({ id, isSendable }: TestEmailCampaignFormProps) => React.JSX.Element;
|
|
8
|
+
export declare const TestEmailCampaignForm: ({ id, isSendable, scope }: TestEmailCampaignFormProps) => React.JSX.Element;
|
|
7
9
|
export {};
|
|
8
10
|
//# sourceMappingURL=TestEmailCampaignForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestEmailCampaignForm.d.ts","sourceRoot":"","sources":["../../../src/emailCampaigns/form/TestEmailCampaignForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TestEmailCampaignForm.d.ts","sourceRoot":"","sources":["../../../src/emailCampaigns/form/TestEmailCampaignForm.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,UAAU,0BAA0B;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,qBAAqB,CAAC;CAChC;AAqBD,eAAO,MAAM,qBAAqB,8BAAuC,0BAA0B,sBAqFlG,CAAC"}
|
|
@@ -9,7 +9,6 @@ var _client = require("@apollo/client");
|
|
|
9
9
|
var _admin = require("@comet/admin");
|
|
10
10
|
var _adminIcons = require("@comet/admin-icons");
|
|
11
11
|
var _blocksAdmin = require("@comet/blocks-admin");
|
|
12
|
-
var _cmsAdmin = require("@comet/cms-admin");
|
|
13
12
|
var _material = require("@mui/material");
|
|
14
13
|
var _react = _interopRequireDefault(require("react"));
|
|
15
14
|
var _reactIntl = require("react-intl");
|
|
@@ -26,9 +25,9 @@ var TestEmailCampaignForm = exports.TestEmailCampaignForm = function TestEmailCa
|
|
|
26
25
|
var _data$brevoTestContac;
|
|
27
26
|
var id = _ref.id,
|
|
28
27
|
_ref$isSendable = _ref.isSendable,
|
|
29
|
-
isSendable = _ref$isSendable === void 0 ? false : _ref$isSendable
|
|
28
|
+
isSendable = _ref$isSendable === void 0 ? false : _ref$isSendable,
|
|
29
|
+
scope = _ref.scope;
|
|
30
30
|
var client = (0, _client.useApolloClient)();
|
|
31
|
-
var scope = (0, _cmsAdmin.useContentScope)();
|
|
32
31
|
|
|
33
32
|
// Contact creation is limited to 100 at a time. Therefore, 100 contacts are queried without using pagination.
|
|
34
33
|
var _useQuery = (0, _client.useQuery)(brevoTestContactsSelectQuery, {
|