@carlonicora/nextjs-jsonapi 5.4.0 → 5.5.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-YQL2SGFR.mjs → BlockNoteEditor-GVQCKRMU.mjs} +5 -5
- package/dist/{BlockNoteEditor-4YCAIEPT.js → BlockNoteEditor-THBJH2UR.js} +20 -20
- package/dist/{BlockNoteEditor-4YCAIEPT.js.map → BlockNoteEditor-THBJH2UR.js.map} +1 -1
- package/dist/{BlockNoteViewer-AEJKJ27Q.mjs → BlockNoteViewer-U6E3DS4F.mjs} +3 -3
- package/dist/{BlockNoteViewer-YL3J7J2Y.js → BlockNoteViewer-VZOVKTFO.js} +4 -4
- package/dist/{BlockNoteViewer-YL3J7J2Y.js.map → BlockNoteViewer-VZOVKTFO.js.map} +1 -1
- package/dist/billing/index.js +442 -442
- package/dist/billing/index.mjs +4 -4
- package/dist/{chunk-XCHSX3VC.mjs → chunk-3CGROPF3.mjs} +2 -2
- package/dist/{chunk-QMYQRPQC.mjs → chunk-6SQYXUVP.mjs} +2 -2
- package/dist/{chunk-NFBOSPNJ.js → chunk-G6UE6MEP.js} +59 -19
- package/dist/chunk-G6UE6MEP.js.map +1 -0
- package/dist/{chunk-YNCQSWQW.js → chunk-S4YJ5WCW.js} +8 -8
- package/dist/{chunk-YNCQSWQW.js.map → chunk-S4YJ5WCW.js.map} +1 -1
- package/dist/{chunk-3NLAXVIN.js → chunk-TY5FYP3G.js} +917 -881
- package/dist/chunk-TY5FYP3G.js.map +1 -0
- package/dist/{chunk-WC63PJSC.mjs → chunk-VC5A3AUZ.mjs} +61 -21
- package/dist/chunk-VC5A3AUZ.mjs.map +1 -0
- package/dist/{chunk-6DC2WVVB.mjs → chunk-W7F5BDSV.mjs} +2 -2
- package/dist/{chunk-5PPG6PL7.js → chunk-WPYT4UKJ.js} +3 -3
- package/dist/{chunk-5PPG6PL7.js.map → chunk-WPYT4UKJ.js.map} +1 -1
- package/dist/{chunk-EUKTBOI2.mjs → chunk-X5WIUUNG.mjs} +1471 -1435
- package/dist/chunk-X5WIUUNG.mjs.map +1 -0
- package/dist/{chunk-YW4ZCEWB.js → chunk-YDYVJM4I.js} +4 -4
- package/dist/{chunk-YW4ZCEWB.js.map → chunk-YDYVJM4I.js.map} +1 -1
- package/dist/client/index.js +5 -5
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +4 -4
- package/dist/components/editors/server.d.mts +15 -0
- package/dist/components/editors/server.d.ts +15 -0
- package/dist/components/editors/server.js +38 -0
- package/dist/components/editors/server.js.map +1 -0
- package/dist/components/editors/server.mjs +38 -0
- package/dist/components/editors/server.mjs.map +1 -0
- package/dist/components/index.d.mts +33 -10
- package/dist/components/index.d.ts +33 -10
- package/dist/components/index.js +7 -5
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +8 -6
- package/dist/contexts/index.d.mts +9 -1
- package/dist/contexts/index.d.ts +9 -1
- package/dist/contexts/index.js +5 -5
- package/dist/contexts/index.mjs +4 -4
- package/dist/core/index.js +4 -4
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +3 -3
- package/dist/email-automations/index.d.mts +3 -0
- package/dist/email-automations/index.d.ts +3 -0
- package/dist/email-automations/index.js +99 -95
- package/dist/email-automations/index.js.map +1 -1
- package/dist/email-automations/index.mjs +30 -26
- package/dist/email-automations/index.mjs.map +1 -1
- package/dist/features/analytics/index.d.mts +11 -4
- package/dist/features/analytics/index.d.ts +11 -4
- package/dist/features/analytics/index.js +127 -135
- package/dist/features/analytics/index.js.map +1 -1
- package/dist/features/analytics/index.mjs +16 -24
- package/dist/features/analytics/index.mjs.map +1 -1
- package/dist/features/analytics/server.d.mts +5 -2
- package/dist/features/analytics/server.d.ts +5 -2
- package/dist/features/analytics/server.js +7 -7
- package/dist/features/analytics/server.js.map +1 -1
- package/dist/features/analytics/server.mjs +5 -5
- package/dist/features/analytics/server.mjs.map +1 -1
- package/dist/features/blog/index.d.mts +12 -2
- package/dist/features/blog/index.d.ts +12 -2
- package/dist/features/blog/index.js +206 -195
- package/dist/features/blog/index.js.map +1 -1
- package/dist/features/blog/index.mjs +71 -60
- package/dist/features/blog/index.mjs.map +1 -1
- package/dist/features/blog/server.d.mts +4 -1
- package/dist/features/blog/server.d.ts +4 -1
- package/dist/features/blog/server.js +49 -21
- package/dist/features/blog/server.js.map +1 -1
- package/dist/features/blog/server.mjs +36 -8
- package/dist/features/blog/server.mjs.map +1 -1
- package/dist/features/help/index.js +38 -38
- package/dist/features/help/index.mjs +4 -4
- package/dist/features/tokenusage/index.d.mts +1 -3
- package/dist/features/tokenusage/index.d.ts +1 -3
- package/dist/features/tokenusage/index.js +127 -135
- package/dist/features/tokenusage/index.js.map +1 -1
- package/dist/features/tokenusage/index.mjs +10 -18
- package/dist/features/tokenusage/index.mjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/server/index.js +4 -4
- package/dist/server/index.mjs +3 -3
- package/package.json +9 -1
- package/src/components/editors/server/BlockNoteServerContent.tsx +28 -0
- package/src/components/editors/server/__tests__/renderBlockNoteHTML.spec.ts +44 -0
- package/src/components/editors/server/renderBlockNoteHTML.ts +26 -0
- package/src/components/editors/server-entry.ts +7 -0
- package/src/components/index.ts +1 -0
- package/src/components/viewers/BlockNoteStaticViewer.tsx +44 -0
- package/src/features/administration/components/AdminIndexContainer.tsx +61 -33
- package/src/features/administration/components/__tests__/AdminIndexContainer.spec.tsx +61 -1
- package/src/features/administration/components/index.ts +2 -1
- package/src/features/administration/contexts/AdministrationContext.tsx +11 -3
- package/src/features/administration/contexts/__tests__/AdministrationContext.spec.tsx +40 -0
- package/src/features/ai-connection/ai-connection.module.ts +2 -0
- package/src/features/ai-connection/contexts/AiConnectionsContext.tsx +3 -16
- package/src/features/ai-connection/contexts/__tests__/AiConnectionsContext.spec.tsx +33 -0
- package/src/features/analytics/__tests__/server-entry.spec.tsx +2 -1
- package/src/features/analytics/analytics.modules.ts +22 -5
- package/src/features/analytics/components/AnalyticsAdminContainer.tsx +4 -3
- package/src/features/analytics/components/AnalyticsAdminPageContainer.tsx +6 -3
- package/src/features/analytics/components/AnalyticsJourneyContainer.tsx +4 -3
- package/src/features/analytics/components/__tests__/AnalyticsJourneyContainer.spec.tsx +11 -0
- package/src/features/analytics/components/__tests__/AnalyticsPageContainers.spec.tsx +12 -1
- package/src/features/analytics/components/server/AnalyticsAdminPage.tsx +6 -3
- package/src/features/analytics/contexts/AnalyticsAdminContext.tsx +8 -17
- package/src/features/analytics/contexts/__tests__/AnalyticsAdminContext.spec.tsx +17 -0
- package/src/features/billing/stripe-price/stripe-price.module.ts +2 -0
- package/src/features/billing/stripe-product/stripe-product.module.ts +2 -0
- package/src/features/blog/components/admin/BlogAdminContainer.tsx +13 -6
- package/src/features/blog/components/admin/BlogCategoriesList.tsx +1 -1
- package/src/features/blog/components/admin/BlogCoverImageField.tsx +1 -1
- package/src/features/blog/components/admin/BlogPostContainer.tsx +0 -1
- package/src/features/blog/components/admin/BlogPostEditor.tsx +42 -33
- package/src/features/blog/components/admin/BlogPostTranslationEditor.tsx +12 -4
- package/src/features/blog/components/admin/BlogPostsList.tsx +1 -1
- package/src/features/blog/components/public/BlogPostCard.tsx +2 -9
- package/src/features/blog/components/public/BlogPostMeta.tsx +2 -2
- package/src/features/blog/components/public/BlogPostView.tsx +9 -3
- package/src/features/blog/components/public/__tests__/BlogList.spec.tsx +2 -0
- package/src/features/blog/components/public/__tests__/BlogPostView.spec.tsx +17 -11
- package/src/features/blog/server/fetchers.ts +57 -8
- package/src/features/email-automation/components/containers/EmailAutomationsListContainer.tsx +12 -3
- package/src/features/rbac/contexts/RbacContext.tsx +4 -7
- package/src/features/rbac/contexts/__tests__/RbacContext.spec.tsx +42 -0
- package/src/features/tokenusage/components/TokenUsageAdminContainer.tsx +4 -3
- package/src/features/tokenusage/contexts/TokenUsageAdminContext.tsx +3 -18
- package/src/features/tokenusage/contexts/__tests__/TokenUsageAdminContext.spec.tsx +17 -0
- package/src/features/tokenusage/tokenusage-admin.module.ts +4 -3
- package/src/features/tokenusage/tokenusage.modules.ts +12 -2
- package/src/features/user/contexts/UserContext.tsx +18 -3
- package/src/features/user/contexts/__tests__/UserContext.spec.tsx +95 -0
- package/dist/chunk-3NLAXVIN.js.map +0 -1
- package/dist/chunk-EUKTBOI2.mjs.map +0 -1
- package/dist/chunk-NFBOSPNJ.js.map +0 -1
- package/dist/chunk-WC63PJSC.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-YQL2SGFR.mjs.map → BlockNoteEditor-GVQCKRMU.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-AEJKJ27Q.mjs.map → BlockNoteViewer-U6E3DS4F.mjs.map} +0 -0
- /package/dist/{chunk-XCHSX3VC.mjs.map → chunk-3CGROPF3.mjs.map} +0 -0
- /package/dist/{chunk-QMYQRPQC.mjs.map → chunk-6SQYXUVP.mjs.map} +0 -0
- /package/dist/{chunk-6DC2WVVB.mjs.map → chunk-W7F5BDSV.mjs.map} +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
AdministrationProvider,
|
|
4
3
|
Badge,
|
|
5
4
|
Button,
|
|
6
5
|
ConfirmDialog,
|
|
@@ -32,8 +31,8 @@ import {
|
|
|
32
31
|
useDataListRetriever,
|
|
33
32
|
usePageUrlGenerator,
|
|
34
33
|
useSidebar
|
|
35
|
-
} from "../chunk-
|
|
36
|
-
import "../chunk-
|
|
34
|
+
} from "../chunk-X5WIUUNG.mjs";
|
|
35
|
+
import "../chunk-6SQYXUVP.mjs";
|
|
37
36
|
import "../chunk-PW42LRSL.mjs";
|
|
38
37
|
import {
|
|
39
38
|
EmailAutomationEnrollmentService,
|
|
@@ -45,15 +44,18 @@ import {
|
|
|
45
44
|
showError,
|
|
46
45
|
useI18nRouter,
|
|
47
46
|
useIsMobile
|
|
48
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-VC5A3AUZ.mjs";
|
|
48
|
+
import "../chunk-V5MI7RNB.mjs";
|
|
49
49
|
import "../chunk-AUXK7QSA.mjs";
|
|
50
50
|
import "../chunk-PI56A4DG.mjs";
|
|
51
|
-
import "../chunk-V5MI7RNB.mjs";
|
|
52
51
|
import "../chunk-VOXD3ZLY.mjs";
|
|
53
52
|
import {
|
|
54
53
|
__name
|
|
55
54
|
} from "../chunk-PAWJFY3S.mjs";
|
|
56
55
|
|
|
56
|
+
// src/features/email-automation/components/containers/EmailAutomationsListContainer.tsx
|
|
57
|
+
import { useTranslations as useTranslations3 } from "next-intl";
|
|
58
|
+
|
|
57
59
|
// src/features/email-automation/components/lists/EmailAutomationsList.tsx
|
|
58
60
|
import { MailIcon } from "lucide-react";
|
|
59
61
|
import { useTranslations as useTranslations2 } from "next-intl";
|
|
@@ -247,12 +249,14 @@ __name(EmailAutomationsList, "EmailAutomationsList");
|
|
|
247
249
|
// src/features/email-automation/components/containers/EmailAutomationsListContainer.tsx
|
|
248
250
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
249
251
|
function EmailAutomationsListContainer() {
|
|
250
|
-
|
|
252
|
+
const t = useTranslations3();
|
|
253
|
+
const breadcrumbs = [{ name: t("emailAutomations.admin.title") }];
|
|
254
|
+
return /* @__PURE__ */ jsx3(SharedProvider, { value: { breadcrumbs, title: { type: t("emailAutomations.admin.title") } }, children: /* @__PURE__ */ jsx3(RoundPageContainer, { module: Modules.EmailAutomation, fullWidth: true, children: /* @__PURE__ */ jsx3(EmailAutomationsList, { fullWidth: true }) }) });
|
|
251
255
|
}
|
|
252
256
|
__name(EmailAutomationsListContainer, "EmailAutomationsListContainer");
|
|
253
257
|
|
|
254
258
|
// src/features/email-automation/components/containers/EmailAutomationContainer.tsx
|
|
255
|
-
import { useTranslations as
|
|
259
|
+
import { useTranslations as useTranslations10 } from "next-intl";
|
|
256
260
|
|
|
257
261
|
// src/features/email-automation/contexts/EmailAutomationContext.tsx
|
|
258
262
|
import { createContext, useCallback as useCallback2, useContext, useEffect as useEffect3, useMemo as useMemo3, useState as useState3 } from "react";
|
|
@@ -380,11 +384,11 @@ var useEmailAutomation = /* @__PURE__ */ __name(() => {
|
|
|
380
384
|
}, "useEmailAutomation");
|
|
381
385
|
|
|
382
386
|
// src/features/email-automation/components/canvas/EmailAutomationActiveSwitch.tsx
|
|
383
|
-
import { useTranslations as
|
|
387
|
+
import { useTranslations as useTranslations4 } from "next-intl";
|
|
384
388
|
import { useState as useState4 } from "react";
|
|
385
389
|
import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
386
390
|
function EmailAutomationActiveSwitch() {
|
|
387
|
-
const t =
|
|
391
|
+
const t = useTranslations4();
|
|
388
392
|
const { automation, reload } = useEmailAutomation();
|
|
389
393
|
const [saving, setSaving] = useState4(false);
|
|
390
394
|
if (!automation) return null;
|
|
@@ -430,17 +434,17 @@ import {
|
|
|
430
434
|
} from "@xyflow/react";
|
|
431
435
|
import "@xyflow/react/dist/style.css";
|
|
432
436
|
import { PlusIcon as PlusIcon2, Trash2Icon } from "lucide-react";
|
|
433
|
-
import { useTranslations as
|
|
437
|
+
import { useTranslations as useTranslations8 } from "next-intl";
|
|
434
438
|
import { useCallback as useCallback5, useEffect as useEffect4, useMemo as useMemo6, useRef as useRef2, useState as useState5 } from "react";
|
|
435
439
|
import { v4 as uuidv4 } from "uuid";
|
|
436
440
|
|
|
437
441
|
// src/features/email-automation/components/canvas/shared/CanvasToolbar.tsx
|
|
438
442
|
import { useReactFlow } from "@xyflow/react";
|
|
439
443
|
import { ListRestartIcon, MaximizeIcon, MinusIcon, PlusIcon } from "lucide-react";
|
|
440
|
-
import { useTranslations as
|
|
444
|
+
import { useTranslations as useTranslations5 } from "next-intl";
|
|
441
445
|
import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
442
446
|
function CanvasToolbar({ onTidy }) {
|
|
443
|
-
const t =
|
|
447
|
+
const t = useTranslations5();
|
|
444
448
|
const { zoomIn, zoomOut, fitView } = useReactFlow();
|
|
445
449
|
return /* @__PURE__ */ jsxs3("div", { "data-help": "canvas.toolbar", className: "absolute end-2 top-2 z-10 flex flex-col gap-1 max-md:top-14", children: [
|
|
446
450
|
/* @__PURE__ */ jsx6(
|
|
@@ -723,7 +727,7 @@ import { useCallback as useCallback4, useMemo as useMemo5, useRef } from "react"
|
|
|
723
727
|
|
|
724
728
|
// src/features/email-automation/components/forms/EmailStepEditor.tsx
|
|
725
729
|
import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
|
|
726
|
-
import { useTranslations as
|
|
730
|
+
import { useTranslations as useTranslations6 } from "next-intl";
|
|
727
731
|
import { useCallback as useCallback3, useMemo as useMemo4 } from "react";
|
|
728
732
|
import { useForm as useForm2 } from "react-hook-form";
|
|
729
733
|
import { v4 as v43 } from "uuid";
|
|
@@ -742,7 +746,7 @@ function EmailStepEditorInternal({
|
|
|
742
746
|
onDialogOpenChange,
|
|
743
747
|
onSuccess
|
|
744
748
|
}) {
|
|
745
|
-
const t =
|
|
749
|
+
const t = useTranslations6();
|
|
746
750
|
const { reload } = useEmailAutomation();
|
|
747
751
|
const isEdit = !!step;
|
|
748
752
|
const formSchema = useMemo4(
|
|
@@ -900,11 +904,11 @@ __name(StepEditor, "StepEditor");
|
|
|
900
904
|
// src/features/email-automation/components/canvas/nodes/EmailStepNode.tsx
|
|
901
905
|
import { Handle, Position } from "@xyflow/react";
|
|
902
906
|
import { MailIcon as MailIcon2 } from "lucide-react";
|
|
903
|
-
import { useTranslations as
|
|
907
|
+
import { useTranslations as useTranslations7 } from "next-intl";
|
|
904
908
|
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
905
909
|
function EmailStepNode({ data }) {
|
|
906
910
|
const d = data.data;
|
|
907
|
-
const t =
|
|
911
|
+
const t = useTranslations7();
|
|
908
912
|
const shellClass = d.orphan ? "border border-dashed border-foreground/30 bg-muted/40 opacity-60" : "border bg-background border-foreground/25 text-foreground";
|
|
909
913
|
return /* @__PURE__ */ jsxs6("div", { className: `w-[200px] cursor-pointer rounded-md p-2 shadow-sm ${shellClass}`, children: [
|
|
910
914
|
/* @__PURE__ */ jsx11(Handle, { type: "target", position: Position.Left, id: `${STEP_TARGET_HANDLE_PREFIX}${d.stepId}` }),
|
|
@@ -951,7 +955,7 @@ var pointAnchor = /* @__PURE__ */ __name((screenX, screenY) => ({
|
|
|
951
955
|
var stepIdOf = /* @__PURE__ */ __name((nodeId) => nodeId?.startsWith(STEP_NODE_PREFIX) ? nodeId.slice(STEP_NODE_PREFIX.length) : null, "stepIdOf");
|
|
952
956
|
function EmailAutomationCanvas() {
|
|
953
957
|
const { automation, steps, triggers, select, reload, createStep, deleteStep, setNext, updatePosition, tidy } = useEmailAutomation();
|
|
954
|
-
const t =
|
|
958
|
+
const t = useTranslations8();
|
|
955
959
|
const isMobile = useIsMobile();
|
|
956
960
|
const [nodes, setNodes] = useState5([]);
|
|
957
961
|
const [edges, setEdges] = useState5([]);
|
|
@@ -1292,11 +1296,11 @@ __name(EmailAutomationCanvasTab, "EmailAutomationCanvasTab");
|
|
|
1292
1296
|
|
|
1293
1297
|
// src/features/email-automation/components/lists/EmailAutomationRecipientsList.tsx
|
|
1294
1298
|
import { RefreshCw } from "lucide-react";
|
|
1295
|
-
import { useTranslations as
|
|
1299
|
+
import { useTranslations as useTranslations9 } from "next-intl";
|
|
1296
1300
|
import { useMemo as useMemo7, useState as useState6 } from "react";
|
|
1297
1301
|
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1298
1302
|
function EmailAutomationRecipientsList() {
|
|
1299
|
-
const t =
|
|
1303
|
+
const t = useTranslations9();
|
|
1300
1304
|
const { automation } = useEmailAutomation();
|
|
1301
1305
|
const [statusFilter, setStatusFilter] = useState6("all");
|
|
1302
1306
|
const data = useDataListRetriever({
|
|
@@ -1362,7 +1366,7 @@ function EmailAutomationContainer({ automationId }) {
|
|
|
1362
1366
|
}
|
|
1363
1367
|
__name(EmailAutomationContainer, "EmailAutomationContainer");
|
|
1364
1368
|
function EmailAutomationShell() {
|
|
1365
|
-
const t =
|
|
1369
|
+
const t = useTranslations10();
|
|
1366
1370
|
const generateUrl = usePageUrlGenerator();
|
|
1367
1371
|
const { automation, reload } = useEmailAutomation();
|
|
1368
1372
|
if (!automation) return null;
|
|
@@ -1414,11 +1418,11 @@ __name(EmailAutomationShell, "EmailAutomationShell");
|
|
|
1414
1418
|
|
|
1415
1419
|
// src/features/email-automation/components/unsubscribe/EmailUnsubscribe.tsx
|
|
1416
1420
|
import { CheckCircle, Loader2, XCircle } from "lucide-react";
|
|
1417
|
-
import { useTranslations as
|
|
1421
|
+
import { useTranslations as useTranslations11 } from "next-intl";
|
|
1418
1422
|
import { useEffect as useEffect6, useState as useState7 } from "react";
|
|
1419
1423
|
import { Fragment as Fragment4, jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1420
1424
|
function EmailUnsubscribe({ token, scope }) {
|
|
1421
|
-
const t =
|
|
1425
|
+
const t = useTranslations11();
|
|
1422
1426
|
const [state, setState] = useState7("loading");
|
|
1423
1427
|
const [stoppedScope, setStoppedScope] = useState7(scope);
|
|
1424
1428
|
const [automationName, setAutomationName] = useState7("");
|
|
@@ -1476,11 +1480,11 @@ function EmailUnsubscribe({ token, scope }) {
|
|
|
1476
1480
|
__name(EmailUnsubscribe, "EmailUnsubscribe");
|
|
1477
1481
|
|
|
1478
1482
|
// src/features/email-automation/hooks/useEmailAutomationTableStructure.tsx
|
|
1479
|
-
import { useTranslations as
|
|
1483
|
+
import { useTranslations as useTranslations12 } from "next-intl";
|
|
1480
1484
|
import { useMemo as useMemo8 } from "react";
|
|
1481
1485
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1482
1486
|
var useEmailAutomationTableStructure = /* @__PURE__ */ __name((params) => {
|
|
1483
|
-
const t =
|
|
1487
|
+
const t = useTranslations12();
|
|
1484
1488
|
const generateUrl = usePageUrlGenerator();
|
|
1485
1489
|
const triggerLabels = params.context?.triggerLabels ?? {};
|
|
1486
1490
|
const tableData = useMemo8(() => {
|
|
@@ -1559,7 +1563,7 @@ var useEmailAutomationTableStructure = /* @__PURE__ */ __name((params) => {
|
|
|
1559
1563
|
registerTableGenerator("email-automations", useEmailAutomationTableStructure);
|
|
1560
1564
|
|
|
1561
1565
|
// src/features/email-automation/hooks/useEmailAutomationEnrollmentTableStructure.tsx
|
|
1562
|
-
import { useLocale, useTranslations as
|
|
1566
|
+
import { useLocale, useTranslations as useTranslations13 } from "next-intl";
|
|
1563
1567
|
import { useMemo as useMemo9 } from "react";
|
|
1564
1568
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1565
1569
|
var STATUS_VARIANTS = {
|
|
@@ -1570,7 +1574,7 @@ var STATUS_VARIANTS = {
|
|
|
1570
1574
|
failed: "softRed"
|
|
1571
1575
|
};
|
|
1572
1576
|
var useEmailAutomationEnrollmentTableStructure = /* @__PURE__ */ __name((params) => {
|
|
1573
|
-
const t =
|
|
1577
|
+
const t = useTranslations13();
|
|
1574
1578
|
const locale = dateFormatLocale(useLocale());
|
|
1575
1579
|
const tableData = useMemo9(() => {
|
|
1576
1580
|
return params.data.map((enrollment) => {
|