@comet/brevo-admin 3.1.4-canary-20250627073848 → 4.0.0-canary-20250710070439
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/lib/brevoContacts/BrevoContactsPage.d.ts.map +1 -1
- package/lib/brevoContacts/BrevoContactsPage.js +45 -41
- package/lib/brevoTestContacts/BrevoTestContactsPage.d.ts.map +1 -1
- package/lib/brevoTestContacts/BrevoTestContactsPage.js +45 -41
- package/lib/configVerification/ConfigVerification.d.ts +8 -0
- package/lib/configVerification/ConfigVerification.d.ts.map +1 -0
- package/lib/configVerification/ConfigVerification.gql.d.ts +2 -0
- package/lib/configVerification/ConfigVerification.gql.d.ts.map +1 -0
- package/lib/configVerification/ConfigVerification.gql.generated.d.ts +17 -0
- package/lib/configVerification/ConfigVerification.gql.generated.d.ts.map +1 -0
- package/lib/configVerification/ConfigVerification.gql.generated.js +11 -0
- package/lib/configVerification/ConfigVerification.gql.js +10 -0
- package/lib/configVerification/ConfigVerification.js +49 -0
- package/lib/emailCampaigns/EmailCampaignsPage.d.ts.map +1 -1
- package/lib/emailCampaigns/EmailCampaignsPage.js +56 -52
- package/lib/targetGroups/TargetGroupsPage.d.ts.map +1 -1
- package/lib/targetGroups/TargetGroupsPage.js +35 -31
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrevoContactsPage.d.ts","sourceRoot":"","sources":["../../src/brevoContacts/BrevoContactsPage.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;
|
|
1
|
+
{"version":3,"file":"BrevoContactsPage.d.ts","sourceRoot":"","sources":["../../src/brevoContacts/BrevoContactsPage.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,EAAoB,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAEvF,UAAU,yBAAyB;IAC/B,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,uBAAuB,CAAC,EAC7B,4BAA4B,EAC5B,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,GACd,EAAE,yBAAyB,SACM,WAAW,CAsD5C;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -10,6 +10,7 @@ var _cmsAdmin = require("@comet/cms-admin");
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _reactIntl = require("react-intl");
|
|
12
12
|
var _BrevoConfigProvider = require("../common/BrevoConfigProvider");
|
|
13
|
+
var _ConfigVerification = require("../configVerification/ConfigVerification");
|
|
13
14
|
var _BrevoContactsGrid = require("./BrevoContactsGrid");
|
|
14
15
|
var _BrevoContactForm = require("./form/BrevoContactForm");
|
|
15
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -30,51 +31,54 @@ function createBrevoContactsPage(_ref) {
|
|
|
30
31
|
acc[scopePart] = completeScope[scopePart];
|
|
31
32
|
return acc;
|
|
32
33
|
}, {});
|
|
33
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
34
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConfigVerification.ConfigVerification, {
|
|
35
|
+
scope: scope,
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Stack, {
|
|
37
|
+
topLevelTitle: intl.formatMessage({
|
|
38
|
+
id: "cometBrevoModule.brevoContacts.brevoContacts",
|
|
39
|
+
defaultMessage: "Contacts"
|
|
40
|
+
}),
|
|
41
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackSwitch, {
|
|
42
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackPage, {
|
|
43
|
+
name: "grid",
|
|
44
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackToolbar, {
|
|
45
|
+
scopeIndicator: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cmsAdmin.ContentScopeIndicator, {
|
|
46
|
+
scope: scope
|
|
47
|
+
})
|
|
48
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_BrevoContactsGrid.BrevoContactsGrid, {
|
|
49
|
+
scope: scope,
|
|
50
|
+
additionalAttributesFragment: additionalAttributesFragment,
|
|
51
|
+
additionalGridFields: additionalGridFields
|
|
52
|
+
})]
|
|
53
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
54
|
+
name: "edit",
|
|
55
|
+
title: intl.formatMessage({
|
|
56
|
+
id: "cometBrevoModule.brevoContacts.editBrevoContact",
|
|
57
|
+
defaultMessage: "Edit contact"
|
|
58
|
+
}),
|
|
59
|
+
children: function children(selectedId) {
|
|
60
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_BrevoContactForm.BrevoContactForm, {
|
|
61
|
+
additionalFormFields: additionalFormFields,
|
|
62
|
+
additionalAttributesFragment: additionalAttributesFragment,
|
|
63
|
+
input2State: input2State,
|
|
64
|
+
id: Number(selectedId),
|
|
65
|
+
scope: scope
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
69
|
+
name: "add",
|
|
70
|
+
title: intl.formatMessage({
|
|
71
|
+
id: "cometBrevoModule.brevoContacts.addBrevoContact",
|
|
72
|
+
defaultMessage: "Add contact"
|
|
73
|
+
}),
|
|
74
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_BrevoContactForm.BrevoContactForm, {
|
|
58
75
|
additionalFormFields: additionalFormFields,
|
|
59
76
|
additionalAttributesFragment: additionalAttributesFragment,
|
|
60
77
|
input2State: input2State,
|
|
61
|
-
id: Number(selectedId),
|
|
62
78
|
scope: scope
|
|
63
|
-
})
|
|
64
|
-
}
|
|
65
|
-
})
|
|
66
|
-
name: "add",
|
|
67
|
-
title: intl.formatMessage({
|
|
68
|
-
id: "cometBrevoModule.brevoContacts.addBrevoContact",
|
|
69
|
-
defaultMessage: "Add contact"
|
|
70
|
-
}),
|
|
71
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_BrevoContactForm.BrevoContactForm, {
|
|
72
|
-
additionalFormFields: additionalFormFields,
|
|
73
|
-
additionalAttributesFragment: additionalAttributesFragment,
|
|
74
|
-
input2State: input2State,
|
|
75
|
-
scope: scope
|
|
76
|
-
})
|
|
77
|
-
})]
|
|
79
|
+
})
|
|
80
|
+
})]
|
|
81
|
+
})
|
|
78
82
|
})
|
|
79
83
|
});
|
|
80
84
|
}
|
|
@@ -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;
|
|
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"}
|
|
@@ -10,6 +10,7 @@ var _cmsAdmin = require("@comet/cms-admin");
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _reactIntl = require("react-intl");
|
|
12
12
|
var _BrevoConfigProvider = require("../common/BrevoConfigProvider");
|
|
13
|
+
var _ConfigVerification = require("../configVerification/ConfigVerification");
|
|
13
14
|
var _BrevoTestContactsGrid = require("./BrevoTestContactsGrid");
|
|
14
15
|
var _BrevoTestContactForm = require("./form/BrevoTestContactForm");
|
|
15
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -31,51 +32,54 @@ function createBrevoTestContactsPage(_ref) {
|
|
|
31
32
|
acc[scopePart] = completeScope[scopePart];
|
|
32
33
|
return acc;
|
|
33
34
|
}, {});
|
|
34
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConfigVerification.ConfigVerification, {
|
|
36
|
+
scope: scope,
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Stack, {
|
|
38
|
+
topLevelTitle: intl.formatMessage({
|
|
39
|
+
id: "cometBrevoModule.brevoContacts.brevoTestContacts",
|
|
40
|
+
defaultMessage: "Test Contacts"
|
|
41
|
+
}),
|
|
42
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackSwitch, {
|
|
43
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackPage, {
|
|
44
|
+
name: "grid",
|
|
45
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackToolbar, {
|
|
46
|
+
scopeIndicator: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cmsAdmin.ContentScopeIndicator, {
|
|
47
|
+
scope: scope
|
|
48
|
+
})
|
|
49
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_BrevoTestContactsGrid.BrevoTestContactsGrid, {
|
|
50
|
+
scope: scope,
|
|
51
|
+
additionalAttributesFragment: additionalAttributesFragment,
|
|
52
|
+
additionalGridFields: additionalGridFields
|
|
53
|
+
})]
|
|
54
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
55
|
+
name: "edit",
|
|
56
|
+
title: intl.formatMessage({
|
|
57
|
+
id: "cometBrevoModule.brevoContacts.editBrevoContact",
|
|
58
|
+
defaultMessage: "Edit contact"
|
|
59
|
+
}),
|
|
60
|
+
children: function children(selectedId) {
|
|
61
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_BrevoTestContactForm.BrevoTestContactForm, {
|
|
62
|
+
additionalFormFields: additionalFormFields,
|
|
63
|
+
additionalAttributesFragment: additionalAttributesFragment,
|
|
64
|
+
input2State: input2State,
|
|
65
|
+
id: Number(selectedId),
|
|
66
|
+
scope: scope
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
70
|
+
name: "add",
|
|
71
|
+
title: intl.formatMessage({
|
|
72
|
+
id: "cometBrevoModule.brevoContacts.addBrevoContact",
|
|
73
|
+
defaultMessage: "Add contact"
|
|
74
|
+
}),
|
|
75
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_BrevoTestContactForm.BrevoTestContactForm, {
|
|
59
76
|
additionalFormFields: additionalFormFields,
|
|
60
77
|
additionalAttributesFragment: additionalAttributesFragment,
|
|
61
78
|
input2State: input2State,
|
|
62
|
-
id: Number(selectedId),
|
|
63
79
|
scope: scope
|
|
64
|
-
})
|
|
65
|
-
}
|
|
66
|
-
})
|
|
67
|
-
name: "add",
|
|
68
|
-
title: intl.formatMessage({
|
|
69
|
-
id: "cometBrevoModule.brevoContacts.addBrevoContact",
|
|
70
|
-
defaultMessage: "Add contact"
|
|
71
|
-
}),
|
|
72
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_BrevoTestContactForm.BrevoTestContactForm, {
|
|
73
|
-
additionalFormFields: additionalFormFields,
|
|
74
|
-
additionalAttributesFragment: additionalAttributesFragment,
|
|
75
|
-
input2State: input2State,
|
|
76
|
-
scope: scope
|
|
77
|
-
})
|
|
78
|
-
})]
|
|
80
|
+
})
|
|
81
|
+
})]
|
|
82
|
+
})
|
|
79
83
|
})
|
|
80
84
|
});
|
|
81
85
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ContentScopeInterface } from "@comet/cms-admin";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface ConfigCheckProps {
|
|
4
|
+
scope: ContentScopeInterface;
|
|
5
|
+
}
|
|
6
|
+
export declare function ConfigVerification({ scope, children }: React.PropsWithChildren<ConfigCheckProps>): JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=ConfigVerification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigVerification.d.ts","sourceRoot":"","sources":["../../src/configVerification/ConfigVerification.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,UAAU,gBAAgB;IACtB,KAAK,EAAE,qBAAqB,CAAC;CAChC;AAED,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,GAAG,CAAC,OAAO,CA0B9G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigVerification.gql.d.ts","sourceRoot":"","sources":["../../src/configVerification/ConfigVerification.gql.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,uCAMjC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as Types from '../graphql.generated';
|
|
2
|
+
export declare const namedOperations: {
|
|
3
|
+
Query: {
|
|
4
|
+
BrevoConfigCheck: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export type GQLBrevoConfigCheckQueryVariables = Types.Exact<{
|
|
8
|
+
scope: Types.GQLEmailCampaignContentScopeInput;
|
|
9
|
+
}>;
|
|
10
|
+
export type GQLBrevoConfigCheckQuery = {
|
|
11
|
+
__typename?: 'Query';
|
|
12
|
+
brevoConfig: {
|
|
13
|
+
__typename?: 'BrevoConfig';
|
|
14
|
+
id: string;
|
|
15
|
+
} | null;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=ConfigVerification.gql.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigVerification.gql.generated.d.ts","sourceRoot":"","sources":["../../src/configVerification/ConfigVerification.gql.generated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAE9C,eAAO,MAAM,eAAe;;;;CAI3B,CAAA;AACD,MAAM,MAAM,iCAAiC,GAAG,KAAK,CAAC,KAAK,CAAC;IAC1D,KAAK,EAAE,KAAK,CAAC,iCAAiC,CAAC;CAChD,CAAC,CAAC;AAGH,MAAM,MAAM,wBAAwB,GAAG;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE;QAAE,UAAU,CAAC,EAAE,aAAa,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.brevoConfigCheckQuery = void 0;
|
|
7
|
+
var _client = require("@apollo/client");
|
|
8
|
+
var _templateObject;
|
|
9
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
10
|
+
var brevoConfigCheckQuery = exports.brevoConfigCheckQuery = (0, _client.gql)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n query BrevoConfigCheck($scope: EmailCampaignContentScopeInput!) {\n brevoConfig(scope: $scope) {\n id\n }\n }\n"])));
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.ConfigVerification = ConfigVerification;
|
|
8
|
+
var _client = require("@apollo/client");
|
|
9
|
+
var _admin = require("@comet/admin");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _reactIntl = require("react-intl");
|
|
12
|
+
var _ConfigVerification = require("./ConfigVerification.gql");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
16
|
+
function ConfigVerification(_ref) {
|
|
17
|
+
var _data$brevoConfig;
|
|
18
|
+
var scope = _ref.scope,
|
|
19
|
+
children = _ref.children;
|
|
20
|
+
var _useQuery = (0, _client.useQuery)(_ConfigVerification.brevoConfigCheckQuery, {
|
|
21
|
+
variables: {
|
|
22
|
+
scope: scope
|
|
23
|
+
},
|
|
24
|
+
fetchPolicy: "cache-and-network"
|
|
25
|
+
}),
|
|
26
|
+
data = _useQuery.data,
|
|
27
|
+
error = _useQuery.error,
|
|
28
|
+
loading = _useQuery.loading;
|
|
29
|
+
if (error) throw error;
|
|
30
|
+
if (loading) {
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Loading, {
|
|
32
|
+
behavior: "fillPageHeight"
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
if (!(data !== null && data !== void 0 && (_data$brevoConfig = data.brevoConfig) !== null && _data$brevoConfig !== void 0 && _data$brevoConfig.id)) {
|
|
36
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.MainContent, {
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Alert, {
|
|
38
|
+
severity: "error",
|
|
39
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
40
|
+
id: "cometBrevoModule.missingConfig",
|
|
41
|
+
defaultMessage: "Missing brevo config! Configure brevo via the config page."
|
|
42
|
+
})
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
47
|
+
children: children
|
|
48
|
+
});
|
|
49
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailCampaignsPage.d.ts","sourceRoot":"","sources":["../../src/emailCampaigns/EmailCampaignsPage.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"EmailCampaignsPage.d.ts","sourceRoot":"","sources":["../../src/emailCampaigns/EmailCampaignsPage.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAYrD,UAAU,+BAA+B;IACrC,yBAAyB,EAAE,cAAc,CAAC;CAC7C;AAED,wBAAgB,wBAAwB,CAAC,EAAE,yBAAyB,EAAE,EAAE,+BAA+B,SACpE,WAAW,CAmD7C"}
|
|
@@ -10,6 +10,7 @@ var _cmsAdmin = require("@comet/cms-admin");
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _reactIntl = require("react-intl");
|
|
12
12
|
var _BrevoConfigProvider = require("../common/BrevoConfigProvider");
|
|
13
|
+
var _ConfigVerification = require("../configVerification/ConfigVerification");
|
|
13
14
|
var _EmailCampaignsGrid = require("./EmailCampaignsGrid");
|
|
14
15
|
var _EmailCampaignForm = require("./form/EmailCampaignForm");
|
|
15
16
|
var _EmailCampaignStatistics = require("./statistics/EmailCampaignStatistics");
|
|
@@ -29,61 +30,64 @@ function createEmailCampaignsPage(_ref) {
|
|
|
29
30
|
acc[scopePart] = completeScope[scopePart];
|
|
30
31
|
return acc;
|
|
31
32
|
}, {});
|
|
32
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
49
|
-
name: "statistics",
|
|
50
|
-
children: function children(selectedId) {
|
|
51
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmailCampaignStatistics.EmailCampaignStatistics, {
|
|
52
|
-
id: selectedId
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
56
|
-
name: "view",
|
|
57
|
-
children: function children(selectedId) {
|
|
58
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmailCampaignView.EmailCampaignView, {
|
|
59
|
-
id: selectedId,
|
|
33
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConfigVerification.ConfigVerification, {
|
|
34
|
+
scope: scope,
|
|
35
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Stack, {
|
|
36
|
+
topLevelTitle: intl.formatMessage({
|
|
37
|
+
id: "cometBrevoModule.emailCampaigns.emailCampaigns",
|
|
38
|
+
defaultMessage: "Email campaigns"
|
|
39
|
+
}),
|
|
40
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackSwitch, {
|
|
41
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackPage, {
|
|
42
|
+
name: "grid",
|
|
43
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackToolbar, {
|
|
44
|
+
scopeIndicator: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cmsAdmin.ContentScopeIndicator, {
|
|
45
|
+
scope: scope
|
|
46
|
+
})
|
|
47
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmailCampaignsGrid.EmailCampaignsGrid, {
|
|
48
|
+
scope: scope,
|
|
60
49
|
EmailCampaignContentBlock: EmailCampaignContentBlock
|
|
61
|
-
})
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
50
|
+
})]
|
|
51
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
52
|
+
name: "statistics",
|
|
53
|
+
children: function children(selectedId) {
|
|
54
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmailCampaignStatistics.EmailCampaignStatistics, {
|
|
55
|
+
id: selectedId
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
59
|
+
name: "view",
|
|
60
|
+
children: function children(selectedId) {
|
|
61
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmailCampaignView.EmailCampaignView, {
|
|
62
|
+
id: selectedId,
|
|
63
|
+
EmailCampaignContentBlock: EmailCampaignContentBlock
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
67
|
+
name: "edit",
|
|
68
|
+
title: intl.formatMessage({
|
|
69
|
+
id: "cometBrevoModule.emailCampaigns.editEmailCampaign",
|
|
70
|
+
defaultMessage: "Edit email campaign"
|
|
71
|
+
}),
|
|
72
|
+
children: function children(selectedId) {
|
|
73
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmailCampaignForm.EmailCampaignForm, {
|
|
74
|
+
id: selectedId,
|
|
75
|
+
EmailCampaignContentBlock: EmailCampaignContentBlock,
|
|
76
|
+
scope: scope
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
80
|
+
name: "add",
|
|
81
|
+
title: intl.formatMessage({
|
|
82
|
+
id: "cometBrevoModule.emailCampaigns.addEmailCampaign",
|
|
83
|
+
defaultMessage: "Add email campaign"
|
|
84
|
+
}),
|
|
85
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmailCampaignForm.EmailCampaignForm, {
|
|
72
86
|
EmailCampaignContentBlock: EmailCampaignContentBlock,
|
|
73
87
|
scope: scope
|
|
74
|
-
})
|
|
75
|
-
}
|
|
76
|
-
})
|
|
77
|
-
name: "add",
|
|
78
|
-
title: intl.formatMessage({
|
|
79
|
-
id: "cometBrevoModule.emailCampaigns.addEmailCampaign",
|
|
80
|
-
defaultMessage: "Add email campaign"
|
|
81
|
-
}),
|
|
82
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmailCampaignForm.EmailCampaignForm, {
|
|
83
|
-
EmailCampaignContentBlock: EmailCampaignContentBlock,
|
|
84
|
-
scope: scope
|
|
85
|
-
})
|
|
86
|
-
})]
|
|
88
|
+
})
|
|
89
|
+
})]
|
|
90
|
+
})
|
|
87
91
|
})
|
|
88
92
|
});
|
|
89
93
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TargetGroupsPage.d.ts","sourceRoot":"","sources":["../../src/targetGroups/TargetGroupsPage.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TargetGroupsPage.d.ts","sourceRoot":"","sources":["../../src/targetGroups/TargetGroupsPage.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,8BAA8B,EAAmB,MAAM,mBAAmB,CAAC;AACpF,OAAO,EAAE,+BAA+B,EAAoB,MAAM,oBAAoB,CAAC;AAEvF,UAAU,yBAAyB;IAC/B,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,wBAAwB,CAAC,EAAE;QACvB,4BAA4B,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,YAAY,CAAA;SAAE,CAAC;QACvE,YAAY,EAAE;YAAE,WAAW,EAAE,CAAC,GAAG,EAAE,+BAA+B,KAAK,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KACzG,CAAC;IACF,YAAY,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;IACxD,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,8BAA8B,KAAK,8BAA8B,CAAC;IAC1F,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,8BAA8B,KAAK,8BAA8B,CAAC;CAC/F;AAED,wBAAgB,sBAAsB,CAAC,EAAE,oBAAoB,EAAE,YAAY,EAAE,WAAW,EAAE,wBAAwB,EAAE,EAAE,yBAAyB,SAC9G,WAAW,CAuC3C"}
|
|
@@ -10,6 +10,7 @@ var _cmsAdmin = require("@comet/cms-admin");
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _reactIntl = require("react-intl");
|
|
12
12
|
var _BrevoConfigProvider = require("../common/BrevoConfigProvider");
|
|
13
|
+
var _ConfigVerification = require("../configVerification/ConfigVerification");
|
|
13
14
|
var _TargetGroupForm = require("./TargetGroupForm");
|
|
14
15
|
var _TargetGroupsGrid = require("./TargetGroupsGrid");
|
|
15
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -30,38 +31,41 @@ function createTargetGroupsPage(_ref) {
|
|
|
30
31
|
acc[scopePart] = completeScope[scopePart];
|
|
31
32
|
return acc;
|
|
32
33
|
}, {});
|
|
33
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
})]
|
|
49
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
50
|
-
name: "edit",
|
|
51
|
-
title: intl.formatMessage({
|
|
52
|
-
id: "cometBrevoModule.targetGroups.editTargetGroup",
|
|
53
|
-
defaultMessage: "Edit target group"
|
|
54
|
-
}),
|
|
55
|
-
children: function children(selectedId) {
|
|
56
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TargetGroupForm.TargetGroupForm, {
|
|
57
|
-
id: selectedId,
|
|
34
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConfigVerification.ConfigVerification, {
|
|
35
|
+
scope: scope,
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Stack, {
|
|
37
|
+
topLevelTitle: intl.formatMessage({
|
|
38
|
+
id: "cometBrevoModule.targetGroups.targetGroups",
|
|
39
|
+
defaultMessage: "Target groups"
|
|
40
|
+
}),
|
|
41
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackSwitch, {
|
|
42
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackPage, {
|
|
43
|
+
name: "grid",
|
|
44
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Toolbar, {
|
|
45
|
+
scopeIndicator: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cmsAdmin.ContentScopeIndicator, {
|
|
46
|
+
scope: scope
|
|
47
|
+
})
|
|
48
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TargetGroupsGrid.TargetGroupsGrid, {
|
|
58
49
|
scope: scope,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
50
|
+
exportTargetGroupOptions: exportTargetGroupOptions
|
|
51
|
+
})]
|
|
52
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
53
|
+
name: "edit",
|
|
54
|
+
title: intl.formatMessage({
|
|
55
|
+
id: "cometBrevoModule.targetGroups.editTargetGroup",
|
|
56
|
+
defaultMessage: "Edit target group"
|
|
57
|
+
}),
|
|
58
|
+
children: function children(selectedId) {
|
|
59
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TargetGroupForm.TargetGroupForm, {
|
|
60
|
+
id: selectedId,
|
|
61
|
+
scope: scope,
|
|
62
|
+
additionalFormFields: additionalFormFields,
|
|
63
|
+
nodeFragment: nodeFragment,
|
|
64
|
+
input2State: input2State
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
})]
|
|
68
|
+
})
|
|
65
69
|
})
|
|
66
70
|
});
|
|
67
71
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/brevo-admin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-canary-20250710070439",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/vivid-planet/comet-brevo-module/",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"@emotion/styled": "^11.9.3",
|
|
34
34
|
"@graphql-codegen/cli": "^3.3.1",
|
|
35
35
|
"@mui/icons-material": "^5.16.14",
|
|
36
|
-
"@mui/material": "^5.
|
|
37
|
-
"@mui/system": "^5.
|
|
36
|
+
"@mui/material": "^5.17.1",
|
|
37
|
+
"@mui/system": "^5.17.1",
|
|
38
38
|
"@mui/x-data-grid": "^5.17.26",
|
|
39
39
|
"@types/file-saver": "^2.0.7",
|
|
40
40
|
"@types/lodash.isequal": "^4.5.8",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"@emotion/react": "^11.9.3",
|
|
69
69
|
"@emotion/styled": "^11.9.3",
|
|
70
70
|
"@mui/icons-material": "^5.16.14",
|
|
71
|
-
"@mui/material": "^5.
|
|
72
|
-
"@mui/system": "^5.
|
|
71
|
+
"@mui/material": "^5.17.1",
|
|
72
|
+
"@mui/system": "^5.17.1",
|
|
73
73
|
"@mui/x-data-grid": "^5.17.26",
|
|
74
74
|
"draft-js": "^0.11.7",
|
|
75
75
|
"final-form": "^4.20.10",
|