@carlonicora/nextjs-jsonapi 1.72.0 → 1.74.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/{ApiDataInterface-DPP8s46n.d.mts → ApiDataInterface-BcZeXy5X.d.mts} +1 -0
- package/dist/{ApiDataInterface-DPP8s46n.d.ts → ApiDataInterface-BcZeXy5X.d.ts} +1 -0
- package/dist/{ApiResponseInterface-CAIAeP5d.d.ts → ApiResponseInterface-CWLvSCvS.d.ts} +1 -1
- package/dist/{ApiResponseInterface-zeewugD7.d.mts → ApiResponseInterface-rsXRL_Hn.d.mts} +1 -1
- package/dist/{AuthComponent-Di8DsZ2I.d.ts → AuthComponent-Blbs06ud.d.ts} +2 -2
- package/dist/{AuthComponent-DXe3kPzb.d.mts → AuthComponent-huIaK5rm.d.mts} +2 -2
- package/dist/{BlockNoteEditor-LHOIPHHB.js → BlockNoteEditor-A37P3FA7.js} +14 -14
- package/dist/{BlockNoteEditor-LHOIPHHB.js.map → BlockNoteEditor-A37P3FA7.js.map} +1 -1
- package/dist/{BlockNoteEditor-FGZ2MOTZ.mjs → BlockNoteEditor-KJZ7FGBA.mjs} +4 -4
- package/dist/{HowToInterface-NaqSG9sE.d.ts → HowToInterface-BKhnkzBp.d.ts} +1 -1
- package/dist/{HowToInterface-DtVWAE1s.d.mts → HowToInterface-Cj8OuQFf.d.mts} +1 -1
- package/dist/{ModulePathsInterface-49EWvbWy.d.mts → ModulePathsInterface-BrdqgteS.d.mts} +1 -1
- package/dist/{ModulePathsInterface-wVS5Raa4.d.ts → ModulePathsInterface-DJKs7s_s.d.ts} +1 -1
- package/dist/{auth.interface-C4uJzBec.d.mts → auth.interface-Bdq7-8iV.d.mts} +2 -2
- package/dist/{auth.interface-BTco8PWs.d.ts → auth.interface-CQJ6A2Cj.d.ts} +2 -2
- package/dist/billing/index.d.mts +3 -3
- package/dist/billing/index.d.ts +3 -3
- package/dist/billing/index.js +346 -346
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-56VU7A4I.js → chunk-FKLP4NED.js} +147 -129
- package/dist/chunk-FKLP4NED.js.map +1 -0
- package/dist/{chunk-WJYWWOTG.mjs → chunk-JOJZRGZL.mjs} +2 -2
- package/dist/{chunk-6ROMPIIP.js → chunk-OTZEXASK.js} +11 -11
- package/dist/{chunk-6ROMPIIP.js.map → chunk-OTZEXASK.js.map} +1 -1
- package/dist/{chunk-GZNHBAZF.mjs → chunk-XI35ALWY.mjs} +19 -1
- package/dist/chunk-XI35ALWY.mjs.map +1 -0
- package/dist/{chunk-Y7S56ZT3.js → chunk-XUTMY6K5.js} +652 -652
- package/dist/chunk-XUTMY6K5.js.map +1 -0
- package/dist/{chunk-ATOD6MGB.mjs → chunk-ZNODEBMI.mjs} +7 -7
- package/dist/chunk-ZNODEBMI.mjs.map +1 -0
- package/dist/client/index.d.mts +10 -10
- package/dist/client/index.d.ts +10 -10
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +10 -10
- package/dist/components/index.d.ts +10 -10
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +3 -3
- package/dist/{config-n0lfSf27.d.ts → config-B3jKt9P7.d.ts} +1 -1
- package/dist/{config-Bmr_0qTn.d.mts → config-DkHF61xA.d.mts} +1 -1
- package/dist/contexts/index.d.mts +7 -5
- package/dist/contexts/index.d.ts +7 -5
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +21 -17
- package/dist/core/index.d.ts +21 -17
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/{feature.interface-CIWxo8NP.d.ts → feature.interface-BO25VLlx.d.ts} +1 -1
- package/dist/{feature.interface-BxFFOPNq.d.mts → feature.interface-CXb1-vNq.d.mts} +1 -1
- package/dist/index.d.mts +17 -17
- package/dist/index.d.ts +17 -17
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/{notification.interface-DrHu_1MM.d.mts → notification.interface-DG6obXUH.d.mts} +3 -2
- package/dist/{notification.interface-DYDZENx2.d.ts → notification.interface-DcSuc9CL.d.ts} +3 -2
- package/dist/{oauth.interface-vL7za9Bz.d.ts → oauth.interface-B6xmfDzK.d.ts} +1 -1
- package/dist/{oauth.interface-DsZ5ecSX.d.mts → oauth.interface-o5FLpiN7.d.mts} +1 -1
- package/dist/{s3.service-TsN2unZr.d.mts → s3.service-DGilbikH.d.mts} +4 -4
- package/dist/{s3.service-DK2KKXbR.d.ts → s3.service-DjwEQJPe.d.ts} +4 -4
- package/dist/server/index.d.mts +6 -6
- package/dist/server/index.d.ts +6 -6
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/dist/{stripe-promotion-code.interface-BcJty0rv.d.ts → stripe-promotion-code.interface-C3qqh3mi.d.ts} +2 -2
- package/dist/{stripe-promotion-code.interface-Dnm2DJKQ.d.mts → stripe-promotion-code.interface-ClZ7DxS9.d.mts} +2 -2
- package/dist/testing/index.d.mts +2 -2
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +5 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/index.mjs +5 -1
- package/dist/testing/index.mjs.map +1 -1
- package/dist/{useRbacState-BYaSdA78.d.ts → useRbacState-C88O-5L8.d.ts} +3 -3
- package/dist/{useRbacState-CQEJ_ysV.d.mts → useRbacState-mqYiRp3J.d.mts} +3 -3
- package/dist/{useSocket-Cjt_qvkI.d.ts → useSocket-8eUtnL7J.d.ts} +1 -1
- package/dist/{useSocket-VAGetcT3.d.mts → useSocket-CmzVtg32.d.mts} +1 -1
- package/package.json +1 -1
- package/src/client/hooks/__tests__/useRehydration.test.ts +3 -0
- package/src/components/containers/RoundPageContainerTitle.tsx +1 -1
- package/src/components/navigations/RecentPagesNavigator.tsx +16 -13
- package/src/contexts/SharedContext.tsx +2 -0
- package/src/core/abstracts/AbstractApiData.ts +10 -0
- package/src/core/abstracts/__tests__/identifier.spec.ts +117 -0
- package/src/core/factories/__tests__/JsonApiDataFactory.test.ts +3 -0
- package/src/core/factories/__tests__/RehydrationFactory.test.ts +3 -0
- package/src/core/interfaces/ApiDataInterface.ts +1 -0
- package/src/core/registry/ModuleRegistry.ts +17 -0
- package/src/core/registry/__tests__/DataClassRegistry.getByJsonApiType.spec.ts +6 -0
- package/src/core/registry/__tests__/DataClassRegistry.test.ts +3 -0
- package/src/core/registry/__tests__/ModuleRegistrar.test.ts +6 -0
- package/src/features/rbac/hooks/useRbacState.test.ts +2 -0
- package/src/permissions/types.ts +1 -0
- package/src/testing/factories/createMockApiData.ts +7 -0
- package/dist/chunk-56VU7A4I.js.map +0 -1
- package/dist/chunk-ATOD6MGB.mjs.map +0 -1
- package/dist/chunk-GZNHBAZF.mjs.map +0 -1
- package/dist/chunk-Y7S56ZT3.js.map +0 -1
- /package/dist/{BlockNoteEditor-FGZ2MOTZ.mjs.map → BlockNoteEditor-KJZ7FGBA.mjs.map} +0 -0
- /package/dist/{chunk-WJYWWOTG.mjs.map → chunk-JOJZRGZL.mjs.map} +0 -0
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
useI18nLocale,
|
|
22
22
|
useI18nRouter,
|
|
23
23
|
useI18nTranslations
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JOJZRGZL.mjs";
|
|
25
25
|
import {
|
|
26
26
|
AVAILABLE_OAUTH_SCOPES,
|
|
27
27
|
AuthService,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
showToast,
|
|
57
57
|
useComposedRefs,
|
|
58
58
|
useIsMobile
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-XI35ALWY.mjs";
|
|
60
60
|
import {
|
|
61
61
|
JsonApiContext
|
|
62
62
|
} from "./chunk-VOXD3ZLY.mjs";
|
|
@@ -8806,7 +8806,7 @@ __name(FormCheckbox, "FormCheckbox");
|
|
|
8806
8806
|
import dynamic from "next/dynamic";
|
|
8807
8807
|
import React14 from "react";
|
|
8808
8808
|
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
8809
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
8809
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-KJZ7FGBA.mjs"), {
|
|
8810
8810
|
ssr: false
|
|
8811
8811
|
});
|
|
8812
8812
|
var BlockNoteEditorContainer = React14.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -12491,14 +12491,14 @@ function RecentPagesNavigator() {
|
|
|
12491
12491
|
}
|
|
12492
12492
|
return /* @__PURE__ */ jsxs79(DropdownMenu, { children: [
|
|
12493
12493
|
/* @__PURE__ */ jsx138(DropdownMenuTrigger, { render: /* @__PURE__ */ jsx138("span", {}), nativeButton: false, children: /* @__PURE__ */ jsx138("span", { className: "flex w-full cursor-pointer items-center gap-2", children: state === "collapsed" ? /* @__PURE__ */ jsx138(HistoryIcon, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx138("span", { children: t(`common.recent_pages`) }) }) }),
|
|
12494
|
-
/* @__PURE__ */
|
|
12494
|
+
/* @__PURE__ */ jsx138(DropdownMenuContent, { align: "start", className: "w-96", children: /* @__PURE__ */ jsxs79(DropdownMenuGroup, { children: [
|
|
12495
12495
|
/* @__PURE__ */ jsx138(DropdownMenuLabel, { children: t(`common.recent_pages`) }),
|
|
12496
12496
|
/* @__PURE__ */ jsx138(DropdownMenuSeparator, {}),
|
|
12497
12497
|
recentPages.map((page, index) => /* @__PURE__ */ jsx138(DropdownMenuItem, { children: /* @__PURE__ */ jsx138(Link, { href: page.url, className: "flex items-center gap-2", children: /* @__PURE__ */ jsxs79("div", { className: "flex flex-col", children: [
|
|
12498
12498
|
/* @__PURE__ */ jsx138("div", { className: "truncate text-sm", children: page.title }),
|
|
12499
12499
|
/* @__PURE__ */ jsx138("div", { className: "text-muted-foreground text-xs font-normal", children: t(`entities.${page.moduleType}`, { count: 1 }) })
|
|
12500
12500
|
] }) }) }, `${page.url}-${index}`))
|
|
12501
|
-
] })
|
|
12501
|
+
] }) })
|
|
12502
12502
|
] });
|
|
12503
12503
|
}
|
|
12504
12504
|
__name(RecentPagesNavigator, "RecentPagesNavigator");
|
|
@@ -12607,7 +12607,7 @@ function RoundPageContainerTitle({
|
|
|
12607
12607
|
return /* @__PURE__ */ jsxs82("div", { className: "flex w-full flex-row items-center justify-between border-b p-4", children: [
|
|
12608
12608
|
/* @__PURE__ */ jsxs82("div", { className: "flex w-full gap-x-4", children: [
|
|
12609
12609
|
/* @__PURE__ */ jsxs82("div", { className: "text-muted-foreground flex items-center gap-x-2 text-lg font-light whitespace-nowrap", children: [
|
|
12610
|
-
module && module.icon
|
|
12610
|
+
module && module.icon ? /* @__PURE__ */ jsx141(module.icon, { className: "text-primary h-6 w-6" }) : title.icon,
|
|
12611
12611
|
title.type
|
|
12612
12612
|
] }),
|
|
12613
12613
|
/* @__PURE__ */ jsx141("div", { className: cn("text-primary w-full text-xl font-semibold"), children: title.element })
|
|
@@ -20424,4 +20424,4 @@ export {
|
|
|
20424
20424
|
useOAuthClients,
|
|
20425
20425
|
useOAuthClient
|
|
20426
20426
|
};
|
|
20427
|
-
//# sourceMappingURL=chunk-
|
|
20427
|
+
//# sourceMappingURL=chunk-ZNODEBMI.mjs.map
|