@carlonicora/nextjs-jsonapi 1.101.3 → 1.102.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-46P4QQXS.js → BlockNoteEditor-PRJ3RX4E.js} +9 -9
- package/dist/{BlockNoteEditor-46P4QQXS.js.map → BlockNoteEditor-PRJ3RX4E.js.map} +1 -1
- package/dist/{BlockNoteEditor-VR327JUR.mjs → BlockNoteEditor-YTSZZ27G.mjs} +2 -2
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-B3KECN6P.js → chunk-3LWDZZYF.js} +36 -20
- package/dist/chunk-3LWDZZYF.js.map +1 -0
- package/dist/{chunk-EO2UXWC2.mjs → chunk-C2RBYYRW.mjs} +36 -20
- package/dist/chunk-C2RBYYRW.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +4 -2
- package/dist/components/index.d.ts +4 -2
- 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/package.json +1 -1
- package/src/components/forms/CommonEditorButtons.tsx +30 -1
- package/src/components/forms/EditorSheet.tsx +3 -0
- package/src/components/forms/EntityMultiSelector.tsx +1 -1
- package/src/components/forms/MultiFileUploader.tsx +1 -1
- package/src/features/assistant/components/parts/AssistantSidebar.tsx +1 -3
- package/src/features/assistant-message/components/parts/MessageSourcesPanel.tsx +1 -1
- package/src/features/how-to/components/containers/HowToCommand.tsx +3 -3
- package/src/features/rbac/components/RbacContainer.tsx +1 -1
- package/src/shadcnui/ui/badge.tsx +1 -1
- package/src/shadcnui/ui/button.tsx +1 -1
- package/src/shadcnui/ui/calendar.tsx +2 -2
- package/src/shadcnui/ui/command.tsx +1 -1
- package/src/shadcnui/ui/context-menu.tsx +1 -1
- package/src/shadcnui/ui/dropdown-menu.tsx +1 -1
- package/src/shadcnui/ui/input-group.tsx +1 -1
- package/src/shadcnui/ui/toggle.tsx +1 -1
- package/dist/chunk-B3KECN6P.js.map +0 -1
- package/dist/chunk-EO2UXWC2.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-VR327JUR.mjs.map → BlockNoteEditor-YTSZZ27G.mjs.map} +0 -0
|
@@ -222,7 +222,7 @@ var buttonVariants = cva2(
|
|
|
222
222
|
},
|
|
223
223
|
size: {
|
|
224
224
|
default: "h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
|
|
225
|
-
xs: "h-5 gap-1 rounded-sm px-2 text-
|
|
225
|
+
xs: "h-5 gap-1 rounded-sm px-2 text-xs has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5",
|
|
226
226
|
sm: "h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
227
227
|
lg: "h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4",
|
|
228
228
|
icon: "size-7 [&_svg:not([class*='size-'])]:size-3.5",
|
|
@@ -490,7 +490,7 @@ import { mergeProps } from "@base-ui/react/merge-props";
|
|
|
490
490
|
import { useRender } from "@base-ui/react/use-render";
|
|
491
491
|
import { cva as cva3 } from "class-variance-authority";
|
|
492
492
|
var badgeVariants = cva3(
|
|
493
|
-
"h-5 gap-1 rounded-full border border-transparent px-2 py-0.5 text-
|
|
493
|
+
"h-5 gap-1 rounded-full border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-2.5! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-colors overflow-hidden group/badge",
|
|
494
494
|
{
|
|
495
495
|
variants: {
|
|
496
496
|
variant: {
|
|
@@ -683,12 +683,12 @@ function Calendar({
|
|
|
683
683
|
table: "w-full border-collapse",
|
|
684
684
|
weekdays: cn("flex", defaultClassNames.weekdays),
|
|
685
685
|
weekday: cn(
|
|
686
|
-
"text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-
|
|
686
|
+
"text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-xs select-none",
|
|
687
687
|
defaultClassNames.weekday
|
|
688
688
|
),
|
|
689
689
|
week: cn("flex w-full mt-2", defaultClassNames.week),
|
|
690
690
|
week_number_header: cn("select-none w-(--cell-size)", defaultClassNames.week_number_header),
|
|
691
|
-
week_number: cn("text-
|
|
691
|
+
week_number: cn("text-xs select-none text-muted-foreground", defaultClassNames.week_number),
|
|
692
692
|
day: cn(
|
|
693
693
|
"relative w-full rounded-(--cell-radius) h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius) group/day aspect-square select-none",
|
|
694
694
|
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
|
|
@@ -1326,7 +1326,7 @@ function InputGroup({ className, ...props }) {
|
|
|
1326
1326
|
}
|
|
1327
1327
|
__name(InputGroup, "InputGroup");
|
|
1328
1328
|
var inputGroupAddonVariants = cva4(
|
|
1329
|
-
"text-muted-foreground **:data-[slot=kbd]:bg-muted-foreground/10 h-auto gap-1 py-2 text-xs/relaxed font-medium group-data-[disabled=true]/input-group:opacity-50 **:data-[slot=kbd]:rounded-[calc(var(--radius-sm)-2px)] **:data-[slot=kbd]:px-1 **:data-[slot=kbd]:text-
|
|
1329
|
+
"text-muted-foreground **:data-[slot=kbd]:bg-muted-foreground/10 h-auto gap-1 py-2 text-xs/relaxed font-medium group-data-[disabled=true]/input-group:opacity-50 **:data-[slot=kbd]:rounded-[calc(var(--radius-sm)-2px)] **:data-[slot=kbd]:px-1 **:data-[slot=kbd]:text-xs [&>svg:not([class*='size-'])]:size-3.5 flex cursor-text items-center justify-center select-none",
|
|
1330
1330
|
{
|
|
1331
1331
|
variants: {
|
|
1332
1332
|
align: {
|
|
@@ -1920,7 +1920,7 @@ function CommandShortcut({ className, ...props }) {
|
|
|
1920
1920
|
{
|
|
1921
1921
|
"data-slot": "command-shortcut",
|
|
1922
1922
|
className: cn(
|
|
1923
|
-
"text-muted-foreground group-data-[selected=true]/command-item:text-foreground ml-auto text-
|
|
1923
|
+
"text-muted-foreground group-data-[selected=true]/command-item:text-foreground ml-auto text-xs tracking-widest",
|
|
1924
1924
|
className
|
|
1925
1925
|
),
|
|
1926
1926
|
...props
|
|
@@ -2114,7 +2114,7 @@ function ContextMenuShortcut({ className, ...props }) {
|
|
|
2114
2114
|
{
|
|
2115
2115
|
"data-slot": "context-menu-shortcut",
|
|
2116
2116
|
className: cn(
|
|
2117
|
-
"text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-
|
|
2117
|
+
"text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-xs tracking-widest",
|
|
2118
2118
|
className
|
|
2119
2119
|
),
|
|
2120
2120
|
...props
|
|
@@ -2431,7 +2431,7 @@ function DropdownMenuShortcut({ className, ...props }) {
|
|
|
2431
2431
|
{
|
|
2432
2432
|
"data-slot": "dropdown-menu-shortcut",
|
|
2433
2433
|
className: cn(
|
|
2434
|
-
"text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-
|
|
2434
|
+
"text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest",
|
|
2435
2435
|
className
|
|
2436
2436
|
),
|
|
2437
2437
|
...props
|
|
@@ -4387,7 +4387,7 @@ var toggleVariants = cva9(
|
|
|
4387
4387
|
},
|
|
4388
4388
|
size: {
|
|
4389
4389
|
default: "h-7 min-w-7 px-2",
|
|
4390
|
-
sm: "h-6 min-w-6 rounded-[min(var(--radius-md),8px)] px-1.5 text-
|
|
4390
|
+
sm: "h-6 min-w-6 rounded-[min(var(--radius-md),8px)] px-1.5 text-xs [&_svg:not([class*='size-'])]:size-3",
|
|
4391
4391
|
lg: "h-8 min-w-8 px-2"
|
|
4392
4392
|
}
|
|
4393
4393
|
},
|
|
@@ -8225,7 +8225,7 @@ function EntityMultiSelector({
|
|
|
8225
8225
|
/* @__PURE__ */ jsx57(PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ jsxs29("div", { className: "bg-input/20 dark:bg-input/30 border-input flex min-h-7 w-full items-center gap-2 rounded-md border px-2 text-sm md:text-xs/relaxed", children: [
|
|
8226
8226
|
selectedValues.length > 0 ? /* @__PURE__ */ jsxs29(Fragment7, { children: [
|
|
8227
8227
|
/* @__PURE__ */ jsx57("span", { className: "text-foreground min-w-0 flex-1 truncate text-left", children: triggerSummary }),
|
|
8228
|
-
/* @__PURE__ */ jsx57("span", { className: "bg-primary/10 text-primary shrink-0 rounded-full px-1.5 py-0.5 text-
|
|
8228
|
+
/* @__PURE__ */ jsx57("span", { className: "bg-primary/10 text-primary shrink-0 rounded-full px-1.5 py-0.5 text-xs font-medium", children: selectedValues.length })
|
|
8229
8229
|
] }) : /* @__PURE__ */ jsx57("span", { className: "text-muted-foreground flex-1 text-left", children: placeholder }),
|
|
8230
8230
|
/* @__PURE__ */ jsx57(ChevronDownIcon7, { className: "text-muted-foreground size-3.5 shrink-0" })
|
|
8231
8231
|
] }) }),
|
|
@@ -8691,8 +8691,22 @@ __name(CommonDeleter, "CommonDeleter");
|
|
|
8691
8691
|
// src/components/forms/CommonEditorButtons.tsx
|
|
8692
8692
|
import { useTranslations as useTranslations9 } from "next-intl";
|
|
8693
8693
|
import { jsx as jsx64, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
8694
|
-
function CommonEditorButtons({
|
|
8694
|
+
function CommonEditorButtons({
|
|
8695
|
+
isEdit,
|
|
8696
|
+
form,
|
|
8697
|
+
disabled,
|
|
8698
|
+
setOpen,
|
|
8699
|
+
hideSubmit,
|
|
8700
|
+
centerButtons
|
|
8701
|
+
}) {
|
|
8695
8702
|
const t = useTranslations9();
|
|
8703
|
+
if (centerButtons) {
|
|
8704
|
+
return /* @__PURE__ */ jsxs36("div", { className: "flex w-full items-center justify-between gap-x-2", children: [
|
|
8705
|
+
/* @__PURE__ */ jsx64(Button, { variant: "outline", type: `button`, onClick: () => setOpen(false), "data-testid": `modal-button-cancel`, children: t(`ui.buttons.cancel`) }),
|
|
8706
|
+
/* @__PURE__ */ jsx64("div", { className: "flex flex-1 justify-center gap-x-2", children: centerButtons }),
|
|
8707
|
+
!hideSubmit ? /* @__PURE__ */ jsx64(Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`) }) : /* @__PURE__ */ jsx64("div", {})
|
|
8708
|
+
] });
|
|
8709
|
+
}
|
|
8696
8710
|
return /* @__PURE__ */ jsxs36("div", { className: "flex justify-end", children: [
|
|
8697
8711
|
/* @__PURE__ */ jsx64(
|
|
8698
8712
|
Button,
|
|
@@ -8858,6 +8872,7 @@ function EditorSheet({
|
|
|
8858
8872
|
size = "xl",
|
|
8859
8873
|
disabled,
|
|
8860
8874
|
hideSubmit,
|
|
8875
|
+
centerButtons,
|
|
8861
8876
|
trigger,
|
|
8862
8877
|
forceShow,
|
|
8863
8878
|
onClose,
|
|
@@ -8937,7 +8952,8 @@ function EditorSheet({
|
|
|
8937
8952
|
setOpen: handleOpenChange,
|
|
8938
8953
|
isEdit,
|
|
8939
8954
|
disabled,
|
|
8940
|
-
hideSubmit
|
|
8955
|
+
hideSubmit,
|
|
8956
|
+
centerButtons
|
|
8941
8957
|
}
|
|
8942
8958
|
) })
|
|
8943
8959
|
] }) })
|
|
@@ -9493,7 +9509,7 @@ import { useRef as useRef15 } from "react";
|
|
|
9493
9509
|
import dynamic from "next/dynamic";
|
|
9494
9510
|
import React14 from "react";
|
|
9495
9511
|
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
9496
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
9512
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-YTSZZ27G.mjs"), {
|
|
9497
9513
|
ssr: false
|
|
9498
9514
|
});
|
|
9499
9515
|
var BlockNoteEditorContainer = React14.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -17960,15 +17976,15 @@ function HowToCommand({ pathname, extraGroups, onStartChat }) {
|
|
|
17960
17976
|
] }),
|
|
17961
17977
|
/* @__PURE__ */ jsxs118("div", { className: "text-muted-foreground flex items-center justify-center gap-4 border-t px-3 py-2 text-xs", children: [
|
|
17962
17978
|
/* @__PURE__ */ jsxs118("span", { className: "flex items-center gap-1", children: [
|
|
17963
|
-
/* @__PURE__ */ jsx195("kbd", { className: "bg-muted rounded border px-1.5 py-0.5 font-mono text-
|
|
17979
|
+
/* @__PURE__ */ jsx195("kbd", { className: "bg-muted rounded border px-1.5 py-0.5 font-mono text-xs", children: "\u23CE" }),
|
|
17964
17980
|
t(`howto.command.keyboard.select`)
|
|
17965
17981
|
] }),
|
|
17966
17982
|
/* @__PURE__ */ jsxs118("span", { className: "flex items-center gap-1", children: [
|
|
17967
|
-
/* @__PURE__ */ jsx195("kbd", { className: "bg-muted rounded border px-1.5 py-0.5 font-mono text-
|
|
17983
|
+
/* @__PURE__ */ jsx195("kbd", { className: "bg-muted rounded border px-1.5 py-0.5 font-mono text-xs", children: "\u2191\u2193" }),
|
|
17968
17984
|
t(`howto.command.keyboard.navigate`)
|
|
17969
17985
|
] }),
|
|
17970
17986
|
/* @__PURE__ */ jsxs118("span", { className: "flex items-center gap-1", children: [
|
|
17971
|
-
/* @__PURE__ */ jsx195("kbd", { className: "bg-muted rounded border px-1.5 py-0.5 font-mono text-
|
|
17987
|
+
/* @__PURE__ */ jsx195("kbd", { className: "bg-muted rounded border px-1.5 py-0.5 font-mono text-xs", children: t(`howto.keyboard.esc`) }),
|
|
17972
17988
|
t(`howto.command.keyboard.close`)
|
|
17973
17989
|
] })
|
|
17974
17990
|
] })
|
|
@@ -18307,7 +18323,7 @@ function AssistantSidebar({ threads, activeId, onSelect, onNew }) {
|
|
|
18307
18323
|
const renderSection = /* @__PURE__ */ __name((label, items) => {
|
|
18308
18324
|
if (items.length === 0) return null;
|
|
18309
18325
|
return /* @__PURE__ */ jsxs121("div", { className: "mb-2", children: [
|
|
18310
|
-
/* @__PURE__ */ jsx204("div", { className: "text-muted-foreground px-2 py-1 text-
|
|
18326
|
+
/* @__PURE__ */ jsx204("div", { className: "text-muted-foreground px-2 py-1 text-xs font-semibold uppercase tracking-wider", children: label }),
|
|
18311
18327
|
items.map((thread) => /* @__PURE__ */ jsx204(
|
|
18312
18328
|
"button",
|
|
18313
18329
|
{
|
|
@@ -18833,7 +18849,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
|
|
|
18833
18849
|
open && /* @__PURE__ */ jsx214("div", { id: panelId, className: "mt-2 w-full min-w-0", children: /* @__PURE__ */ jsxs130(Tabs, { value: active, onValueChange: (v) => setActive(v), children: [
|
|
18834
18850
|
/* @__PURE__ */ jsx214(TabsList, { children: visibleTabs.map((key) => /* @__PURE__ */ jsxs130(TabsTrigger, { value: key, children: [
|
|
18835
18851
|
t(`features.assistant.message.sources.tabs.${key === "suggested" ? "suggested_questions" : key}`),
|
|
18836
|
-
/* @__PURE__ */ jsxs130("span", { className: "text-muted-foreground ml-1.5 text-
|
|
18852
|
+
/* @__PURE__ */ jsxs130("span", { className: "text-muted-foreground ml-1.5 text-xs", children: [
|
|
18837
18853
|
key === "suggested" && suggestionsCount,
|
|
18838
18854
|
key === "references" && refsCount,
|
|
18839
18855
|
key === "citations" && citationsCount,
|
|
@@ -21560,7 +21576,7 @@ var ModuleEditor = memo2(/* @__PURE__ */ __name(function ModuleEditor2({
|
|
|
21560
21576
|
return /* @__PURE__ */ jsxs165("div", { className: "rounded-lg border border-accent bg-card", children: [
|
|
21561
21577
|
/* @__PURE__ */ jsxs165("div", { className: "flex items-center justify-between border-b px-4 py-2", children: [
|
|
21562
21578
|
/* @__PURE__ */ jsx255("h4", { className: "text-sm font-medium", children: moduleLabel }),
|
|
21563
|
-
/* @__PURE__ */ jsx255("span", { className: "font-mono text-
|
|
21579
|
+
/* @__PURE__ */ jsx255("span", { className: "font-mono text-xs text-muted-foreground", children: moduleId })
|
|
21564
21580
|
] }),
|
|
21565
21581
|
/* @__PURE__ */ jsx255("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs165("table", { className: "w-full text-sm", children: [
|
|
21566
21582
|
/* @__PURE__ */ jsx255("thead", { children: /* @__PURE__ */ jsxs165("tr", { className: "border-b bg-muted/50", children: [
|
|
@@ -22408,4 +22424,4 @@ export {
|
|
|
22408
22424
|
useOAuthClients,
|
|
22409
22425
|
useOAuthClient
|
|
22410
22426
|
};
|
|
22411
|
-
//# sourceMappingURL=chunk-
|
|
22427
|
+
//# sourceMappingURL=chunk-C2RBYYRW.mjs.map
|