@comet/brevo-admin 3.0.0-canary-20250128090300 → 3.0.0
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 +41 -45
- package/lib/brevoTestContacts/BrevoTestContactsPage.d.ts.map +1 -1
- package/lib/brevoTestContacts/BrevoTestContactsPage.js +41 -45
- package/lib/emailCampaigns/EmailCampaignsPage.d.ts.map +1 -1
- package/lib/emailCampaigns/EmailCampaignsPage.js +52 -56
- package/lib/targetGroups/TargetGroupsPage.d.ts.map +1 -1
- package/lib/targetGroups/TargetGroupsPage.js +31 -35
- package/package.json +1 -1
- package/lib/configVerification/ConfigVerification.d.ts +0 -8
- package/lib/configVerification/ConfigVerification.d.ts.map +0 -1
- package/lib/configVerification/ConfigVerification.gql.d.ts +0 -2
- package/lib/configVerification/ConfigVerification.gql.d.ts.map +0 -1
- package/lib/configVerification/ConfigVerification.gql.generated.d.ts +0 -17
- package/lib/configVerification/ConfigVerification.gql.generated.d.ts.map +0 -1
- package/lib/configVerification/ConfigVerification.gql.generated.js +0 -11
- package/lib/configVerification/ConfigVerification.gql.js +0 -10
- package/lib/configVerification/ConfigVerification.js +0 -49
|
@@ -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;AAK/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,CAoD5C;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -10,7 +10,6 @@ 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");
|
|
14
13
|
var _BrevoContactsGrid = require("./BrevoContactsGrid");
|
|
15
14
|
var _BrevoContactForm = require("./form/BrevoContactForm");
|
|
16
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -31,54 +30,51 @@ function createBrevoContactsPage(_ref) {
|
|
|
31
30
|
acc[scopePart] = completeScope[scopePart];
|
|
32
31
|
return acc;
|
|
33
32
|
}, {});
|
|
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
|
-
|
|
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, {
|
|
33
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Stack, {
|
|
34
|
+
topLevelTitle: intl.formatMessage({
|
|
35
|
+
id: "cometBrevoModule.brevoContacts.brevoContacts",
|
|
36
|
+
defaultMessage: "Contacts"
|
|
37
|
+
}),
|
|
38
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackSwitch, {
|
|
39
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackPage, {
|
|
40
|
+
name: "grid",
|
|
41
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackToolbar, {
|
|
42
|
+
scopeIndicator: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cmsAdmin.ContentScopeIndicator, {
|
|
43
|
+
scope: scope
|
|
44
|
+
})
|
|
45
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_BrevoContactsGrid.BrevoContactsGrid, {
|
|
46
|
+
scope: scope,
|
|
47
|
+
additionalAttributesFragment: additionalAttributesFragment,
|
|
48
|
+
additionalGridFields: additionalGridFields
|
|
49
|
+
})]
|
|
50
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
51
|
+
name: "edit",
|
|
52
|
+
title: intl.formatMessage({
|
|
53
|
+
id: "cometBrevoModule.brevoContacts.editBrevoContact",
|
|
54
|
+
defaultMessage: "Edit contact"
|
|
55
|
+
}),
|
|
56
|
+
children: function children(selectedId) {
|
|
57
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_BrevoContactForm.BrevoContactForm, {
|
|
75
58
|
additionalFormFields: additionalFormFields,
|
|
76
59
|
additionalAttributesFragment: additionalAttributesFragment,
|
|
77
60
|
input2State: input2State,
|
|
61
|
+
id: Number(selectedId),
|
|
78
62
|
scope: scope
|
|
79
|
-
})
|
|
80
|
-
}
|
|
81
|
-
})
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
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
|
+
})]
|
|
82
78
|
})
|
|
83
79
|
});
|
|
84
80
|
}
|
|
@@ -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;AAI/B,OAAO,EAAwB,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAE/F,UAAU,yBAAyB;IAC/B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,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,EACV,4BAA4B,EAC5B,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,GACd,EAAE,yBAAyB,SACU,WAAW,CAmDhD;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -9,7 +9,6 @@ var _admin = require("@comet/admin");
|
|
|
9
9
|
var _cmsAdmin = require("@comet/cms-admin");
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _reactIntl = require("react-intl");
|
|
12
|
-
var _ConfigVerification = require("../configVerification/ConfigVerification");
|
|
13
12
|
var _BrevoTestContactsGrid = require("./BrevoTestContactsGrid");
|
|
14
13
|
var _BrevoTestContactForm = require("./form/BrevoTestContactForm");
|
|
15
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -29,54 +28,51 @@ function createBrevoTestContactsPage(_ref) {
|
|
|
29
28
|
acc[scopePart] = completeScope[scopePart];
|
|
30
29
|
return acc;
|
|
31
30
|
}, {});
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
children: function children(selectedId) {
|
|
58
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_BrevoTestContactForm.BrevoTestContactForm, {
|
|
59
|
-
additionalFormFields: additionalFormFields,
|
|
60
|
-
additionalAttributesFragment: additionalAttributesFragment,
|
|
61
|
-
input2State: input2State,
|
|
62
|
-
id: Number(selectedId),
|
|
63
|
-
scope: scope
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
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, {
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Stack, {
|
|
32
|
+
topLevelTitle: intl.formatMessage({
|
|
33
|
+
id: "cometBrevoModule.brevoContacts.brevoTestContacts",
|
|
34
|
+
defaultMessage: "Test Contacts"
|
|
35
|
+
}),
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackSwitch, {
|
|
37
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackPage, {
|
|
38
|
+
name: "grid",
|
|
39
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackToolbar, {
|
|
40
|
+
scopeIndicator: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cmsAdmin.ContentScopeIndicator, {
|
|
41
|
+
scope: scope
|
|
42
|
+
})
|
|
43
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_BrevoTestContactsGrid.BrevoTestContactsGrid, {
|
|
44
|
+
scope: scope,
|
|
45
|
+
additionalAttributesFragment: additionalAttributesFragment,
|
|
46
|
+
additionalGridFields: additionalGridFields
|
|
47
|
+
})]
|
|
48
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
49
|
+
name: "edit",
|
|
50
|
+
title: intl.formatMessage({
|
|
51
|
+
id: "cometBrevoModule.brevoContacts.editBrevoContact",
|
|
52
|
+
defaultMessage: "Edit contact"
|
|
53
|
+
}),
|
|
54
|
+
children: function children(selectedId) {
|
|
55
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_BrevoTestContactForm.BrevoTestContactForm, {
|
|
73
56
|
additionalFormFields: additionalFormFields,
|
|
74
57
|
additionalAttributesFragment: additionalAttributesFragment,
|
|
75
58
|
input2State: input2State,
|
|
59
|
+
id: Number(selectedId),
|
|
76
60
|
scope: scope
|
|
77
|
-
})
|
|
78
|
-
}
|
|
79
|
-
})
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
64
|
+
name: "add",
|
|
65
|
+
title: intl.formatMessage({
|
|
66
|
+
id: "cometBrevoModule.brevoContacts.addBrevoContact",
|
|
67
|
+
defaultMessage: "Add contact"
|
|
68
|
+
}),
|
|
69
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_BrevoTestContactForm.BrevoTestContactForm, {
|
|
70
|
+
additionalFormFields: additionalFormFields,
|
|
71
|
+
additionalAttributesFragment: additionalAttributesFragment,
|
|
72
|
+
input2State: input2State,
|
|
73
|
+
scope: scope
|
|
74
|
+
})
|
|
75
|
+
})]
|
|
80
76
|
})
|
|
81
77
|
});
|
|
82
78
|
}
|
|
@@ -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;AAWrD,UAAU,+BAA+B;IACrC,yBAAyB,EAAE,cAAc,CAAC;CAC7C;AAED,wBAAgB,wBAAwB,CAAC,EAAE,yBAAyB,EAAE,EAAE,+BAA+B,SACpE,WAAW,CAuC7C"}
|
|
@@ -10,7 +10,6 @@ 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");
|
|
14
13
|
var _EmailCampaignsGrid = require("./EmailCampaignsGrid");
|
|
15
14
|
var _EmailCampaignForm = require("./form/EmailCampaignForm");
|
|
16
15
|
var _EmailCampaignStatistics = require("./statistics/EmailCampaignStatistics");
|
|
@@ -30,64 +29,61 @@ function createEmailCampaignsPage(_ref) {
|
|
|
30
29
|
acc[scopePart] = completeScope[scopePart];
|
|
31
30
|
return acc;
|
|
32
31
|
}, {});
|
|
33
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
42
|
-
|
|
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,
|
|
49
|
-
EmailCampaignContentBlock: EmailCampaignContentBlock
|
|
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, {
|
|
86
|
-
EmailCampaignContentBlock: EmailCampaignContentBlock,
|
|
32
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Stack, {
|
|
33
|
+
topLevelTitle: intl.formatMessage({
|
|
34
|
+
id: "cometBrevoModule.emailCampaigns.emailCampaigns",
|
|
35
|
+
defaultMessage: "Email campaigns"
|
|
36
|
+
}),
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackSwitch, {
|
|
38
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackPage, {
|
|
39
|
+
name: "grid",
|
|
40
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackToolbar, {
|
|
41
|
+
scopeIndicator: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cmsAdmin.ContentScopeIndicator, {
|
|
87
42
|
scope: scope
|
|
88
43
|
})
|
|
44
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmailCampaignsGrid.EmailCampaignsGrid, {
|
|
45
|
+
scope: scope,
|
|
46
|
+
EmailCampaignContentBlock: EmailCampaignContentBlock
|
|
89
47
|
})]
|
|
90
|
-
})
|
|
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,
|
|
60
|
+
EmailCampaignContentBlock: EmailCampaignContentBlock
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
64
|
+
name: "edit",
|
|
65
|
+
title: intl.formatMessage({
|
|
66
|
+
id: "cometBrevoModule.emailCampaigns.editEmailCampaign",
|
|
67
|
+
defaultMessage: "Edit email campaign"
|
|
68
|
+
}),
|
|
69
|
+
children: function children(selectedId) {
|
|
70
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmailCampaignForm.EmailCampaignForm, {
|
|
71
|
+
id: selectedId,
|
|
72
|
+
EmailCampaignContentBlock: EmailCampaignContentBlock,
|
|
73
|
+
scope: scope
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.StackPage, {
|
|
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
|
+
})]
|
|
91
87
|
})
|
|
92
88
|
});
|
|
93
89
|
}
|
|
@@ -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;AAI/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,CAqC3C"}
|
|
@@ -10,7 +10,6 @@ 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");
|
|
14
13
|
var _TargetGroupForm = require("./TargetGroupForm");
|
|
15
14
|
var _TargetGroupsGrid = require("./TargetGroupsGrid");
|
|
16
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -31,41 +30,38 @@ function createTargetGroupsPage(_ref) {
|
|
|
31
30
|
acc[scopePart] = completeScope[scopePart];
|
|
32
31
|
return acc;
|
|
33
32
|
}, {});
|
|
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
|
-
scope: scope,
|
|
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
|
-
}
|
|
33
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Stack, {
|
|
34
|
+
topLevelTitle: intl.formatMessage({
|
|
35
|
+
id: "cometBrevoModule.targetGroups.targetGroups",
|
|
36
|
+
defaultMessage: "Target groups"
|
|
37
|
+
}),
|
|
38
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackSwitch, {
|
|
39
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.StackPage, {
|
|
40
|
+
name: "grid",
|
|
41
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Toolbar, {
|
|
42
|
+
scopeIndicator: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cmsAdmin.ContentScopeIndicator, {
|
|
43
|
+
scope: scope
|
|
44
|
+
})
|
|
45
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TargetGroupsGrid.TargetGroupsGrid, {
|
|
46
|
+
scope: scope,
|
|
47
|
+
exportTargetGroupOptions: exportTargetGroupOptions
|
|
67
48
|
})]
|
|
68
|
-
})
|
|
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,
|
|
58
|
+
scope: scope,
|
|
59
|
+
additionalFormFields: additionalFormFields,
|
|
60
|
+
nodeFragment: nodeFragment,
|
|
61
|
+
input2State: input2State
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
})]
|
|
69
65
|
})
|
|
70
66
|
});
|
|
71
67
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigVerification.gql.d.ts","sourceRoot":"","sources":["../../src/configVerification/ConfigVerification.gql.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,uCAMjC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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"])));
|
|
@@ -1,49 +0,0 @@
|
|
|
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
|
-
}
|