@carlonicora/nextjs-jsonapi 6.8.0 → 6.9.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/dist/{BlockNoteEditor-D3LDTJCP.mjs → BlockNoteEditor-WN73IHXR.mjs} +4 -4
- package/dist/{BlockNoteEditor-FB6FQFRF.js → BlockNoteEditor-XXH3VBZ7.js} +19 -19
- package/dist/{BlockNoteEditor-FB6FQFRF.js.map → BlockNoteEditor-XXH3VBZ7.js.map} +1 -1
- package/dist/{BlockNoteViewer-LGFMGTYX.js → BlockNoteViewer-EKAWVLIR.js} +3 -3
- package/dist/{BlockNoteViewer-LGFMGTYX.js.map → BlockNoteViewer-EKAWVLIR.js.map} +1 -1
- package/dist/{BlockNoteViewer-YSPYUDZE.mjs → BlockNoteViewer-RWRI3QO2.mjs} +2 -2
- package/dist/{HandbookSectionInterface-BYsmnPEz.d.mts → HandbookSectionInterface-BPgqqwgw.d.mts} +20 -1
- package/dist/{HandbookSectionInterface-OePKPbqN.d.ts → HandbookSectionInterface-_51oA3om.d.ts} +20 -1
- package/dist/billing/index.js +492 -492
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-D44UDP4G.mjs → chunk-3TNGKMJU.mjs} +2 -2
- package/dist/{chunk-VT5HRZH7.mjs → chunk-6HFRXEF5.mjs} +326 -3
- package/dist/chunk-6HFRXEF5.mjs.map +1 -0
- package/dist/{chunk-5HBFQEYU.mjs → chunk-AWLTSKMM.mjs} +2 -2
- package/dist/{chunk-TL5O7EGW.mjs → chunk-DPAM7BCE.mjs} +2 -2
- package/dist/{chunk-PSLT5JLE.js → chunk-G3YKDIAL.js} +3 -3
- package/dist/{chunk-PSLT5JLE.js.map → chunk-G3YKDIAL.js.map} +1 -1
- package/dist/{chunk-ZXK2OMCC.js → chunk-KRQRJA4J.js} +8 -8
- package/dist/{chunk-ZXK2OMCC.js.map → chunk-KRQRJA4J.js.map} +1 -1
- package/dist/{chunk-5HTX4RDA.mjs → chunk-Q4XLE3QO.mjs} +1737 -1307
- package/dist/chunk-Q4XLE3QO.mjs.map +1 -0
- package/dist/{chunk-JHT32ODN.js → chunk-RNZ3IK5J.js} +4 -4
- package/dist/{chunk-JHT32ODN.js.map → chunk-RNZ3IK5J.js.map} +1 -1
- package/dist/{chunk-UZP7KRAV.js → chunk-SQTXJPRE.js} +500 -177
- package/dist/chunk-SQTXJPRE.js.map +1 -0
- package/dist/{chunk-UT4GVYJE.js → chunk-ZCM4JLM7.js} +1380 -950
- package/dist/chunk-ZCM4JLM7.js.map +1 -0
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +57 -3
- package/dist/components/index.d.ts +57 -3
- package/dist/components/index.js +14 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +13 -3
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +134 -3
- package/dist/core/index.d.ts +134 -3
- package/dist/core/index.js +24 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +23 -1
- package/dist/email-automations/index.d.mts +6 -1
- package/dist/email-automations/index.d.ts +6 -1
- package/dist/email-automations/index.js +101 -94
- package/dist/email-automations/index.js.map +1 -1
- package/dist/email-automations/index.mjs +12 -5
- package/dist/email-automations/index.mjs.map +1 -1
- package/dist/features/analytics/index.js +121 -121
- package/dist/features/analytics/index.mjs +4 -4
- package/dist/features/analytics/server.js +4 -4
- package/dist/features/analytics/server.mjs +2 -2
- package/dist/features/blog/index.js +150 -150
- package/dist/features/blog/index.mjs +3 -3
- package/dist/features/blog/server.js +16 -16
- package/dist/features/blog/server.mjs +1 -1
- package/dist/features/help/index.js +37 -37
- package/dist/features/help/index.mjs +3 -3
- package/dist/features/tokenusage/index.js +127 -127
- package/dist/features/tokenusage/index.mjs +4 -4
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +25 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +2 -2
- package/messages/en.json +62 -0
- package/messages/it.json +62 -0
- package/package.json +1 -1
- package/src/components/index.ts +1 -0
- package/src/core/index.ts +3 -0
- package/src/core/registry/ModuleRegistry.ts +4 -0
- package/src/features/email-automation/components/unsubscribe/EmailUnsubscribe.tsx +14 -2
- package/src/features/email-blast/EmailBlastAudienceModule.ts +12 -0
- package/src/features/email-blast/EmailBlastDeliveryModule.ts +12 -0
- package/src/features/email-blast/EmailBlastModule.ts +28 -0
- package/src/features/email-blast/components/containers/EmailBlastContainer.tsx +145 -0
- package/src/features/email-blast/components/containers/EmailBlastsListContainer.tsx +36 -0
- package/src/features/email-blast/components/forms/EmailBlastEditor.tsx +132 -0
- package/src/features/email-blast/components/forms/EmailBlastSendDialog.tsx +104 -0
- package/src/features/email-blast/components/index.ts +5 -0
- package/src/features/email-blast/components/lists/EmailBlastsList.tsx +57 -0
- package/src/features/email-blast/data/EmailBlast.ts +89 -0
- package/src/features/email-blast/data/EmailBlastAudience.ts +22 -0
- package/src/features/email-blast/data/EmailBlastAudienceInterface.ts +5 -0
- package/src/features/email-blast/data/EmailBlastDelivery.ts +36 -0
- package/src/features/email-blast/data/EmailBlastDeliveryInterface.ts +7 -0
- package/src/features/email-blast/data/EmailBlastDeliveryService.ts +25 -0
- package/src/features/email-blast/data/EmailBlastInterface.ts +22 -0
- package/src/features/email-blast/data/EmailBlastService.ts +101 -0
- package/src/features/email-blast/data/__tests__/EmailBlast.spec.ts +73 -0
- package/src/features/email-blast/data/email-blast.fields.ts +8 -0
- package/src/features/email-blast/data/email-blast.segments.ts +10 -0
- package/src/features/email-blast/data/index.ts +10 -0
- package/src/features/email-blast/hooks/useEmailBlastTableStructure.tsx +104 -0
- package/src/features/email-blast/index.ts +4 -0
- package/src/features/index.ts +1 -0
- package/dist/chunk-5HTX4RDA.mjs.map +0 -1
- package/dist/chunk-UT4GVYJE.js.map +0 -1
- package/dist/chunk-UZP7KRAV.js.map +0 -1
- package/dist/chunk-VT5HRZH7.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-D3LDTJCP.mjs.map → BlockNoteEditor-WN73IHXR.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-YSPYUDZE.mjs.map → BlockNoteViewer-RWRI3QO2.mjs.map} +0 -0
- /package/dist/{chunk-D44UDP4G.mjs.map → chunk-3TNGKMJU.mjs.map} +0 -0
- /package/dist/{chunk-5HBFQEYU.mjs.map → chunk-AWLTSKMM.mjs.map} +0 -0
- /package/dist/{chunk-TL5O7EGW.mjs.map → chunk-DPAM7BCE.mjs.map} +0 -0
|
@@ -31,20 +31,21 @@ import {
|
|
|
31
31
|
useDataListRetriever,
|
|
32
32
|
usePageUrlGenerator,
|
|
33
33
|
useSidebar
|
|
34
|
-
} from "../chunk-
|
|
35
|
-
import "../chunk-
|
|
34
|
+
} from "../chunk-Q4XLE3QO.mjs";
|
|
35
|
+
import "../chunk-AWLTSKMM.mjs";
|
|
36
36
|
import "../chunk-PW42LRSL.mjs";
|
|
37
37
|
import {
|
|
38
38
|
EmailAutomationEnrollmentService,
|
|
39
39
|
EmailAutomationService,
|
|
40
40
|
EmailAutomationStepService,
|
|
41
|
+
EmailBlastDeliveryService,
|
|
41
42
|
Modules,
|
|
42
43
|
dateFormatLocale,
|
|
43
44
|
formatDate,
|
|
44
45
|
showError,
|
|
45
46
|
useI18nRouter,
|
|
46
47
|
useIsMobile
|
|
47
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-6HFRXEF5.mjs";
|
|
48
49
|
import "../chunk-V5MI7RNB.mjs";
|
|
49
50
|
import "../chunk-AUXK7QSA.mjs";
|
|
50
51
|
import "../chunk-PI56A4DG.mjs";
|
|
@@ -1421,7 +1422,7 @@ import { CheckCircle, Loader2, XCircle } from "lucide-react";
|
|
|
1421
1422
|
import { useTranslations as useTranslations11 } from "next-intl";
|
|
1422
1423
|
import { useEffect as useEffect6, useState as useState7 } from "react";
|
|
1423
1424
|
import { Fragment as Fragment4, jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1424
|
-
function EmailUnsubscribe({ token, scope }) {
|
|
1425
|
+
function EmailUnsubscribe({ token, scope, source = "automation" }) {
|
|
1425
1426
|
const t = useTranslations11();
|
|
1426
1427
|
const [state, setState] = useState7("loading");
|
|
1427
1428
|
const [stoppedScope, setStoppedScope] = useState7(scope);
|
|
@@ -1430,6 +1431,12 @@ function EmailUnsubscribe({ token, scope }) {
|
|
|
1430
1431
|
useEffect6(() => {
|
|
1431
1432
|
async function unsubscribe() {
|
|
1432
1433
|
try {
|
|
1434
|
+
if (source === "blast") {
|
|
1435
|
+
await EmailBlastDeliveryService.unsubscribe({ token });
|
|
1436
|
+
setStoppedScope("all");
|
|
1437
|
+
setState("success");
|
|
1438
|
+
return;
|
|
1439
|
+
}
|
|
1433
1440
|
const enrollment = await EmailAutomationEnrollmentService.unsubscribe({ token, scope });
|
|
1434
1441
|
setAutomationName(enrollment?.automation?.name ?? "");
|
|
1435
1442
|
setStoppedScope(scope);
|
|
@@ -1440,7 +1447,7 @@ function EmailUnsubscribe({ token, scope }) {
|
|
|
1440
1447
|
}
|
|
1441
1448
|
__name(unsubscribe, "unsubscribe");
|
|
1442
1449
|
unsubscribe();
|
|
1443
|
-
}, [token, scope]);
|
|
1450
|
+
}, [token, scope, source]);
|
|
1444
1451
|
const stopAll = /* @__PURE__ */ __name(async () => {
|
|
1445
1452
|
setIsStoppingAll(true);
|
|
1446
1453
|
try {
|