@carlonicora/nextjs-jsonapi 3.5.8 → 3.5.10
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-5LH6CCQF.mjs → BlockNoteEditor-5MOYLQXK.mjs} +5 -5
- package/dist/{BlockNoteEditor-J27BAKEF.js → BlockNoteEditor-5UUTCRSX.js} +20 -20
- package/dist/{BlockNoteEditor-J27BAKEF.js.map → BlockNoteEditor-5UUTCRSX.js.map} +1 -1
- package/dist/{JsonApiRequest-ADNIGXTP.mjs → JsonApiRequest-7AEQWMLJ.mjs} +2 -2
- package/dist/JsonApiRequest-E4PZPH3N.js +26 -0
- package/dist/{JsonApiRequest-WWGSGV2I.js.map → JsonApiRequest-E4PZPH3N.js.map} +1 -1
- package/dist/billing/index.js +399 -399
- package/dist/billing/index.mjs +4 -4
- package/dist/{chunk-DK5ZOPVF.mjs → chunk-2D4MFVDV.mjs} +3 -3
- package/dist/{chunk-RVASYIQG.mjs → chunk-BMVA2IM5.mjs} +2 -5
- package/dist/chunk-BMVA2IM5.mjs.map +1 -0
- package/dist/{chunk-H37WRSBU.mjs → chunk-HDZ2BL6D.mjs} +5 -5
- package/dist/{chunk-W42MYR3Y.js → chunk-LU7DJ4QF.js} +2 -5
- package/dist/chunk-LU7DJ4QF.js.map +1 -0
- package/dist/{chunk-G2PQN6HK.js → chunk-P7XPRUQI.js} +800 -784
- package/dist/chunk-P7XPRUQI.js.map +1 -0
- package/dist/{chunk-Q2QO5XYN.mjs → chunk-T4PD3Z6G.mjs} +34 -18
- package/dist/chunk-T4PD3Z6G.mjs.map +1 -0
- package/dist/{chunk-B2OB3HQO.js → chunk-TULJCLZA.js} +13 -13
- package/dist/{chunk-B2OB3HQO.js.map → chunk-TULJCLZA.js.map} +1 -1
- package/dist/{chunk-PGA2VC3S.js → chunk-UYLS3LJW.js} +32 -32
- package/dist/{chunk-PGA2VC3S.js.map → chunk-UYLS3LJW.js.map} +1 -1
- package/dist/client/index.js +5 -5
- package/dist/client/index.mjs +4 -4
- package/dist/components/index.js +5 -5
- package/dist/components/index.mjs +4 -4
- package/dist/contexts/index.js +5 -5
- package/dist/contexts/index.mjs +4 -4
- package/dist/core/index.js +3 -3
- package/dist/core/index.mjs +2 -2
- package/dist/features/help/index.js +38 -38
- package/dist/features/help/index.mjs +4 -4
- package/dist/features/tokenusage/index.js +102 -102
- package/dist/features/tokenusage/index.mjs +4 -4
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/server/index.js +14 -14
- package/dist/server/index.mjs +2 -2
- package/package.json +1 -1
- package/src/components/forms/EditorSheet.tsx +28 -17
- package/src/core/registry/DataClassRegistry.ts +7 -4
- package/src/core/registry/__tests__/DataClassRegistry.test.ts +14 -0
- package/dist/JsonApiRequest-WWGSGV2I.js +0 -26
- package/dist/chunk-G2PQN6HK.js.map +0 -1
- package/dist/chunk-Q2QO5XYN.mjs.map +0 -1
- package/dist/chunk-RVASYIQG.mjs.map +0 -1
- package/dist/chunk-W42MYR3Y.js.map +0 -1
- /package/dist/{BlockNoteEditor-5LH6CCQF.mjs.map → BlockNoteEditor-5MOYLQXK.mjs.map} +0 -0
- /package/dist/{JsonApiRequest-ADNIGXTP.mjs.map → JsonApiRequest-7AEQWMLJ.mjs.map} +0 -0
- /package/dist/{chunk-DK5ZOPVF.mjs.map → chunk-2D4MFVDV.mjs.map} +0 -0
- /package/dist/{chunk-H37WRSBU.mjs.map → chunk-HDZ2BL6D.mjs.map} +0 -0
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
useI18nLocale,
|
|
21
21
|
useI18nRouter,
|
|
22
22
|
useI18nTranslations
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2D4MFVDV.mjs";
|
|
24
24
|
import {
|
|
25
25
|
AVAILABLE_OAUTH_SCOPES,
|
|
26
26
|
AiConnectionService,
|
|
@@ -71,10 +71,10 @@ import {
|
|
|
71
71
|
useIsMobile,
|
|
72
72
|
validateItalianTaxCode,
|
|
73
73
|
validatePartitaIva
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-HDZ2BL6D.mjs";
|
|
75
75
|
import {
|
|
76
76
|
ENV
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-BMVA2IM5.mjs";
|
|
78
78
|
import {
|
|
79
79
|
JsonApiContext
|
|
80
80
|
} from "./chunk-VOXD3ZLY.mjs";
|
|
@@ -9746,17 +9746,33 @@ function EditorSheet({
|
|
|
9746
9746
|
// is resolved per trigger rather than hardcoded (a constant `false`
|
|
9747
9747
|
// warned on every native-button trigger).
|
|
9748
9748
|
/* @__PURE__ */ jsx86(SheetTrigger, { nativeButton: resolveTriggerIsNativeButton(trigger), render: trigger })
|
|
9749
|
-
) :
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9749
|
+
) : (
|
|
9750
|
+
// The default trigger goes through `render` for the SAME reason the
|
|
9751
|
+
// caller-supplied one above does. As CHILDREN, the Button rendered a
|
|
9752
|
+
// second `role="button"` inside SheetTrigger's own button: two nodes
|
|
9753
|
+
// with one accessible name, which a screen reader announces as a
|
|
9754
|
+
// button inside a button and which makes
|
|
9755
|
+
// `getByRole("button", { name })` ambiguous (e2e DRQ-01 failed strict
|
|
9756
|
+
// mode on exactly this). `nativeButton={false}` because both variants
|
|
9757
|
+
// render a <div>, matching the element the trigger actually emits.
|
|
9758
|
+
/* @__PURE__ */ jsx86(
|
|
9759
|
+
SheetTrigger,
|
|
9760
|
+
{
|
|
9761
|
+
nativeButton: false,
|
|
9762
|
+
render: isEdit ? /* @__PURE__ */ jsx86(
|
|
9763
|
+
Button,
|
|
9764
|
+
{
|
|
9765
|
+
render: /* @__PURE__ */ jsx86("div", {}),
|
|
9766
|
+
nativeButton: false,
|
|
9767
|
+
size: "sm",
|
|
9768
|
+
variant: "ghost",
|
|
9769
|
+
className: "text-muted-foreground",
|
|
9770
|
+
children: /* @__PURE__ */ jsx86(PencilIcon3, {})
|
|
9771
|
+
}
|
|
9772
|
+
) : /* @__PURE__ */ jsx86(Button, { render: /* @__PURE__ */ jsx86("div", {}), nativeButton: false, size: "sm", variant: "outline", children: t("ui.buttons.create") })
|
|
9773
|
+
}
|
|
9774
|
+
)
|
|
9775
|
+
)),
|
|
9760
9776
|
/* @__PURE__ */ jsxs48(SheetContent, { side: "end", className: sizeClasses[size], children: [
|
|
9761
9777
|
/* @__PURE__ */ jsx86(SheetHeader, { className: "border-b px-6 py-4", children: actions ? (
|
|
9762
9778
|
// pe-10 clears the SheetContent close button, which sits at the
|
|
@@ -10327,7 +10343,7 @@ import { useRef as useRef17 } from "react";
|
|
|
10327
10343
|
import dynamic from "next/dynamic";
|
|
10328
10344
|
import React18 from "react";
|
|
10329
10345
|
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
10330
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10346
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-5MOYLQXK.mjs"), {
|
|
10331
10347
|
ssr: false
|
|
10332
10348
|
});
|
|
10333
10349
|
var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -16230,7 +16246,7 @@ function useJsonApiGet(params) {
|
|
|
16230
16246
|
setLoading(true);
|
|
16231
16247
|
setError(null);
|
|
16232
16248
|
try {
|
|
16233
|
-
const { JsonApiGet } = await import("./JsonApiRequest-
|
|
16249
|
+
const { JsonApiGet } = await import("./JsonApiRequest-7AEQWMLJ.mjs");
|
|
16234
16250
|
const language = navigator.language.split("-")[0] || "en";
|
|
16235
16251
|
const apiResponse = await JsonApiGet({
|
|
16236
16252
|
classKey: params.classKey,
|
|
@@ -16335,7 +16351,7 @@ function useJsonApiMutation(config) {
|
|
|
16335
16351
|
setLoading(true);
|
|
16336
16352
|
setError(null);
|
|
16337
16353
|
try {
|
|
16338
|
-
const { JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } = await import("./JsonApiRequest-
|
|
16354
|
+
const { JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } = await import("./JsonApiRequest-7AEQWMLJ.mjs");
|
|
16339
16355
|
const language = navigator.language.split("-")[0] || "en";
|
|
16340
16356
|
let apiResponse;
|
|
16341
16357
|
switch (config.method) {
|
|
@@ -25631,4 +25647,4 @@ export {
|
|
|
25631
25647
|
useOAuthClients,
|
|
25632
25648
|
useOAuthClient
|
|
25633
25649
|
};
|
|
25634
|
-
//# sourceMappingURL=chunk-
|
|
25650
|
+
//# sourceMappingURL=chunk-T4PD3Z6G.mjs.map
|