@carlonicora/nextjs-jsonapi 3.15.2 → 3.16.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-FLXSBVXM.js → BlockNoteEditor-S43PQJEC.js} +83 -43
- package/dist/BlockNoteEditor-S43PQJEC.js.map +1 -0
- package/dist/{BlockNoteEditor-XQTV2I2E.mjs → BlockNoteEditor-SGISBQD5.mjs} +101 -61
- package/dist/BlockNoteEditor-SGISBQD5.mjs.map +1 -0
- package/dist/billing/index.js +335 -335
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-G2C6UT2Q.mjs → chunk-47CLHN2G.mjs} +16 -5
- package/dist/chunk-47CLHN2G.mjs.map +1 -0
- package/dist/{chunk-2GENOK3L.js → chunk-AOWHVECO.js} +16 -5
- package/dist/chunk-AOWHVECO.js.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +34 -3
- package/dist/components/index.d.ts +34 -3
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/dist/features/help/index.js +31 -31
- package/dist/features/help/index.mjs +1 -1
- package/dist/features/tokenusage/index.js +75 -75
- package/dist/features/tokenusage/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/editors/BlockNoteEditor.tsx +70 -33
- package/src/components/editors/BlockNoteEditorAiActions.tsx +49 -0
- package/src/components/editors/__tests__/BlockNoteEditorAiActions.test.ts +25 -0
- package/src/components/editors/index.ts +2 -1
- package/src/components/forms/FormBlockNote.tsx +8 -0
- package/src/components/forms/FormFieldWrapper.tsx +22 -6
- package/dist/BlockNoteEditor-FLXSBVXM.js.map +0 -1
- package/dist/BlockNoteEditor-XQTV2I2E.mjs.map +0 -1
- package/dist/chunk-2GENOK3L.js.map +0 -1
- package/dist/chunk-G2C6UT2Q.mjs.map +0 -1
package/dist/billing/index.mjs
CHANGED
|
@@ -8367,6 +8367,7 @@ function FormFieldWrapper({
|
|
|
8367
8367
|
form,
|
|
8368
8368
|
name,
|
|
8369
8369
|
label,
|
|
8370
|
+
labelAction,
|
|
8370
8371
|
description,
|
|
8371
8372
|
isRequired,
|
|
8372
8373
|
orientation = "vertical",
|
|
@@ -8380,10 +8381,16 @@ function FormFieldWrapper({
|
|
|
8380
8381
|
control: form.control,
|
|
8381
8382
|
name,
|
|
8382
8383
|
render: ({ field, fieldState }) => /* @__PURE__ */ jsxs32(Field, { orientation, className, "data-invalid": !!fieldState.error, "data-testid": testId, children: [
|
|
8383
|
-
label && /* @__PURE__ */ jsxs32(
|
|
8384
|
+
label && (labelAction ? /* @__PURE__ */ jsxs32("div", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
8385
|
+
/* @__PURE__ */ jsxs32(FieldLabel, { children: [
|
|
8386
|
+
label,
|
|
8387
|
+
isRequired && /* @__PURE__ */ jsx67("span", { className: "ms-1 text-destructive", children: "*" })
|
|
8388
|
+
] }),
|
|
8389
|
+
labelAction
|
|
8390
|
+
] }) : /* @__PURE__ */ jsxs32(FieldLabel, { children: [
|
|
8384
8391
|
label,
|
|
8385
8392
|
isRequired && /* @__PURE__ */ jsx67("span", { className: "ms-1 text-destructive", children: "*" })
|
|
8386
|
-
] }),
|
|
8393
|
+
] })),
|
|
8387
8394
|
children(field, fieldState),
|
|
8388
8395
|
description && /* @__PURE__ */ jsx67(FieldDescription, { children: description }),
|
|
8389
8396
|
fieldState.error && /* @__PURE__ */ jsx67(FieldError, { children: fieldState.error.message })
|
|
@@ -10385,7 +10392,7 @@ import { useRef as useRef17 } from "react";
|
|
|
10385
10392
|
import dynamic from "next/dynamic";
|
|
10386
10393
|
import React18 from "react";
|
|
10387
10394
|
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
10388
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10395
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-SGISBQD5.mjs"), {
|
|
10389
10396
|
ssr: false
|
|
10390
10397
|
});
|
|
10391
10398
|
var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -10415,7 +10422,9 @@ function FormBlockNote({
|
|
|
10415
10422
|
suggestionMenuComponent,
|
|
10416
10423
|
mentionNameResolver,
|
|
10417
10424
|
onWarmMentions,
|
|
10418
|
-
aiConfig
|
|
10425
|
+
aiConfig,
|
|
10426
|
+
aiHandleRef,
|
|
10427
|
+
headerAction
|
|
10419
10428
|
}) {
|
|
10420
10429
|
const initialContentRef = useRef17(null);
|
|
10421
10430
|
const lastEditorContentRef = useRef17(void 0);
|
|
@@ -10433,6 +10442,7 @@ function FormBlockNote({
|
|
|
10433
10442
|
form,
|
|
10434
10443
|
name: id,
|
|
10435
10444
|
label: name,
|
|
10445
|
+
labelAction: headerAction,
|
|
10436
10446
|
isRequired,
|
|
10437
10447
|
description,
|
|
10438
10448
|
testId,
|
|
@@ -10464,6 +10474,7 @@ function FormBlockNote({
|
|
|
10464
10474
|
mentionNameResolver,
|
|
10465
10475
|
onWarmMentions,
|
|
10466
10476
|
aiConfig,
|
|
10477
|
+
aiHandleRef,
|
|
10467
10478
|
stretch,
|
|
10468
10479
|
className: cn(stretch && "min-h-0 flex-1")
|
|
10469
10480
|
}
|
|
@@ -27015,4 +27026,4 @@ export {
|
|
|
27015
27026
|
useOAuthClients,
|
|
27016
27027
|
useOAuthClient
|
|
27017
27028
|
};
|
|
27018
|
-
//# sourceMappingURL=chunk-
|
|
27029
|
+
//# sourceMappingURL=chunk-47CLHN2G.mjs.map
|