@carlonicora/nextjs-jsonapi 3.26.0 → 3.27.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-AXYVDDXM.mjs → BlockNoteEditor-5MF2AH2U.mjs} +2 -2
- package/dist/{BlockNoteEditor-4EIKMNY3.js → BlockNoteEditor-LP65KUXI.js} +9 -9
- package/dist/{BlockNoteEditor-4EIKMNY3.js.map → BlockNoteEditor-LP65KUXI.js.map} +1 -1
- package/dist/billing/index.js +335 -335
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-QWZAGQWJ.mjs → chunk-SVJ6UZPA.mjs} +59 -54
- package/dist/chunk-SVJ6UZPA.mjs.map +1 -0
- package/dist/{chunk-ABVTYQIJ.js → chunk-ZEEOY45J.js} +20 -15
- package/dist/chunk-ZEEOY45J.js.map +1 -0
- package/dist/client/index.d.mts +2 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- 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/analytics/index.js +88 -88
- package/dist/features/analytics/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 +2 -2
- package/scripts/dev-watch.mjs +125 -0
- package/src/components/containers/PageContainer.tsx +3 -1
- package/src/components/containers/RoundPageContainer.tsx +14 -3
- package/src/components/forms/FormBlockNote.tsx +8 -2
- package/src/components/forms/FormCheckbox.tsx +1 -4
- package/src/components/navigations/Header.tsx +3 -1
- package/src/features/assistant/components/parts/AssistantBlockNoteComposer.tsx +3 -1
- package/src/features/assistant/components/parts/AssistantComposer.tsx +3 -1
- package/src/features/assistant-message/components/parts/tabs/CitationsTab.tsx +3 -1
- package/src/hooks/url.rewriter.ts +5 -1
- package/src/shadcnui/ui/command.tsx +4 -1
- package/src/shadcnui/ui/table.tsx +1 -1
- package/dist/chunk-ABVTYQIJ.js.map +0 -1
- package/dist/chunk-QWZAGQWJ.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-AXYVDDXM.mjs.map → BlockNoteEditor-5MF2AH2U.mjs.map} +0 -0
|
@@ -16,10 +16,7 @@ export function FormCheckbox({ form, id, name, labelBefore, description, isRequi
|
|
|
16
16
|
const simpleLabel = () => {
|
|
17
17
|
return (
|
|
18
18
|
// Phone: the label fills the row and is 40px tall, so the whole row toggles the box.
|
|
19
|
-
<FieldLabel
|
|
20
|
-
htmlFor={id}
|
|
21
|
-
className={`font-normal ${labelBefore ? "" : "ms-3"} max-md:min-h-10 max-md:flex-1`}
|
|
22
|
-
>
|
|
19
|
+
<FieldLabel htmlFor={id} className={`font-normal ${labelBefore ? "" : "ms-3"} max-md:min-h-10 max-md:flex-1`}>
|
|
23
20
|
{name}
|
|
24
21
|
</FieldLabel>
|
|
25
22
|
);
|
|
@@ -55,7 +55,9 @@ export function Header({
|
|
|
55
55
|
>
|
|
56
56
|
<div className="bg-sidebar flex h-12 w-full flex-row items-center justify-between ps-2 pe-4">
|
|
57
57
|
{isMobile && logo && <div className="flex shrink-0 flex-row items-center pe-1">{logo}</div>}
|
|
58
|
-
{sidebar && !(isMobile && hideSidebarTriggerOnMobile) &&
|
|
58
|
+
{sidebar && !(isMobile && hideSidebarTriggerOnMobile) && (
|
|
59
|
+
<SidebarTrigger aria-label="Toggle sidebar" id="sidebar-trigger" />
|
|
60
|
+
)}
|
|
59
61
|
{leftContent}
|
|
60
62
|
<div className="flex w-full flex-row items-center justify-start max-md:min-w-0">
|
|
61
63
|
<BreadcrumbNavigation items={breadcrumbs} rootLabel={rootLabel ?? undefined} showRoot={!isRootHidden} />
|
|
@@ -129,7 +129,9 @@ export function AssistantBlockNoteComposer({
|
|
|
129
129
|
<ArrowUp className="me-1 h-4 w-4" /> {t("features.assistant.send")}
|
|
130
130
|
</Button>
|
|
131
131
|
</div>
|
|
132
|
-
<div className="text-muted-foreground text-end text-xs max-md:hidden">
|
|
132
|
+
<div className="text-muted-foreground text-end text-xs max-md:hidden">
|
|
133
|
+
{t("features.assistant.keyboard_hint")}
|
|
134
|
+
</div>
|
|
133
135
|
</div>
|
|
134
136
|
);
|
|
135
137
|
}
|
|
@@ -92,7 +92,9 @@ export function AssistantComposer({
|
|
|
92
92
|
{sendButton}
|
|
93
93
|
</div>
|
|
94
94
|
)}
|
|
95
|
-
<div className="text-muted-foreground text-end text-xs max-md:hidden">
|
|
95
|
+
<div className="text-muted-foreground text-end text-xs max-md:hidden">
|
|
96
|
+
{t("features.assistant.keyboard_hint")}
|
|
97
|
+
</div>
|
|
96
98
|
</div>
|
|
97
99
|
);
|
|
98
100
|
}
|
|
@@ -49,7 +49,9 @@ export function CitationsTab({ citations, sources }: Props) {
|
|
|
49
49
|
<TableHeader>
|
|
50
50
|
<TableRow>
|
|
51
51
|
<TableHead>{t("features.assistant.message.sources.source")}</TableHead>
|
|
52
|
-
<TableHead className="w-28 text-center max-md:w-20">
|
|
52
|
+
<TableHead className="w-28 text-center max-md:w-20">
|
|
53
|
+
{t("features.assistant.message.sources.relevance")}
|
|
54
|
+
</TableHead>
|
|
53
55
|
</TableRow>
|
|
54
56
|
</TableHeader>
|
|
55
57
|
<TableBody>
|
|
@@ -14,8 +14,12 @@ export function useUrlRewriter() {
|
|
|
14
14
|
childPage?: ModuleWithPermissions | string;
|
|
15
15
|
childId?: string;
|
|
16
16
|
additionalParameters?: { [key: string]: string | string[] | undefined };
|
|
17
|
+
/** "push" adds a browser history step (Back returns to the previous URL); default "replace". */
|
|
18
|
+
mode?: "replace" | "push";
|
|
17
19
|
}): void => {
|
|
18
|
-
window.history.replaceState
|
|
20
|
+
const write = params.mode === "push" ? window.history.pushState : window.history.replaceState;
|
|
21
|
+
write.call(
|
|
22
|
+
window.history,
|
|
19
23
|
null,
|
|
20
24
|
"",
|
|
21
25
|
generateUrl({
|
|
@@ -96,7 +96,10 @@ function CommandList({ className, ...props }: React.ComponentProps<typeof Comman
|
|
|
96
96
|
return (
|
|
97
97
|
<CommandPrimitive.List
|
|
98
98
|
data-slot="command-list"
|
|
99
|
-
className={cn(
|
|
99
|
+
className={cn(
|
|
100
|
+
"no-scrollbar max-h-72 max-md:min-h-0 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto",
|
|
101
|
+
className,
|
|
102
|
+
)}
|
|
100
103
|
{...props}
|
|
101
104
|
/>
|
|
102
105
|
);
|
|
@@ -57,7 +57,7 @@ function TableCell({ className, ...props }: React.ComponentProps<"td">) {
|
|
|
57
57
|
return (
|
|
58
58
|
<td
|
|
59
59
|
data-slot="table-cell"
|
|
60
|
-
className={cn("p-2 align-middle whitespace-nowrap
|
|
60
|
+
className={cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0", className)}
|
|
61
61
|
{...props}
|
|
62
62
|
/>
|
|
63
63
|
);
|