@carlonicora/nextjs-jsonapi 6.9.0 → 6.10.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-WN73IHXR.mjs → BlockNoteEditor-GK3DRTOP.mjs} +49 -15
- package/dist/BlockNoteEditor-GK3DRTOP.mjs.map +1 -0
- package/dist/{BlockNoteEditor-XXH3VBZ7.js → BlockNoteEditor-YOKJOVV3.js} +64 -30
- package/dist/BlockNoteEditor-YOKJOVV3.js.map +1 -0
- package/dist/billing/index.js +379 -379
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-ZCM4JLM7.js → chunk-4UFMLTL2.js} +73 -71
- package/dist/chunk-4UFMLTL2.js.map +1 -0
- package/dist/{chunk-Q4XLE3QO.mjs → chunk-THZAK7S3.mjs} +9 -7
- package/dist/{chunk-Q4XLE3QO.mjs.map → chunk-THZAK7S3.mjs.map} +1 -1
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +12 -5
- package/dist/components/index.d.ts +12 -5
- 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/email-automations/index.js +58 -58
- package/dist/email-automations/index.mjs +1 -1
- package/dist/features/analytics/index.js +87 -87
- package/dist/features/analytics/index.mjs +1 -1
- package/dist/features/blog/index.js +93 -93
- package/dist/features/blog/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 +77 -77
- package/dist/features/tokenusage/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/editors/BlockNoteEditor.tsx +69 -14
- package/src/components/editors/__tests__/BlockNoteEditor.ai.spec.tsx +295 -0
- package/src/features/assistant/components/containers/AssistantPageContainer.tsx +20 -9
- package/src/features/assistant/components/containers/__tests__/AssistantPageContainer.spec.tsx +116 -0
- package/src/features/assistant/components/parts/AssistantThread.tsx +2 -1
- package/src/features/assistant-message/components/MessageItem.tsx +1 -1
- package/src/features/assistant-message/components/MessageList.tsx +1 -1
- package/src/features/assistant-message/components/parts/MessageSourcesContainer.tsx +1 -1
- package/src/features/assistant-message/components/parts/MessageSourcesPanel.tsx +1 -1
- package/src/features/assistant-message/components/parts/__tests__/MessageSourcesPanel.spec.tsx +17 -1
- package/src/features/assistant-message/components/parts/__tests__/SuggestedQuestionsTab.spec.tsx +22 -0
- package/src/features/assistant-message/components/parts/tabs/SuggestedQuestionsTab.tsx +5 -3
- package/dist/BlockNoteEditor-WN73IHXR.mjs.map +0 -1
- package/dist/BlockNoteEditor-XXH3VBZ7.js.map +0 -1
- package/dist/chunk-ZCM4JLM7.js.map +0 -1
|
@@ -10838,7 +10838,7 @@ import { useRef as useRef18 } from "react";
|
|
|
10838
10838
|
import dynamic from "next/dynamic";
|
|
10839
10839
|
import React18 from "react";
|
|
10840
10840
|
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
10841
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10841
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-GK3DRTOP.mjs"), {
|
|
10842
10842
|
ssr: false
|
|
10843
10843
|
});
|
|
10844
10844
|
var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -24503,8 +24503,9 @@ function SuggestedQuestionsTab({ questions, onSelect }) {
|
|
|
24503
24503
|
"button",
|
|
24504
24504
|
{
|
|
24505
24505
|
type: "button",
|
|
24506
|
-
|
|
24507
|
-
|
|
24506
|
+
disabled: !onSelect,
|
|
24507
|
+
onClick: () => onSelect?.(q),
|
|
24508
|
+
className: "border-border bg-muted/30 hover:bg-muted disabled:hover:bg-muted/30 rounded-md border px-3 py-1.5 text-start text-sm disabled:cursor-not-allowed disabled:opacity-50",
|
|
24508
24509
|
children: q
|
|
24509
24510
|
},
|
|
24510
24511
|
q
|
|
@@ -26037,7 +26038,8 @@ function AssistantPageContainer({
|
|
|
26037
26038
|
suggestionMenuComponent,
|
|
26038
26039
|
detailsTitle,
|
|
26039
26040
|
detailsIcon,
|
|
26040
|
-
disabled
|
|
26041
|
+
disabled,
|
|
26042
|
+
composerNotice
|
|
26041
26043
|
}) {
|
|
26042
26044
|
const t = useTranslations156();
|
|
26043
26045
|
const ctx = useAssistantContext();
|
|
@@ -26080,7 +26082,7 @@ function AssistantPageContainer({
|
|
|
26080
26082
|
messages: ctx.messages,
|
|
26081
26083
|
sending: ctx.sending,
|
|
26082
26084
|
status: ctx.status,
|
|
26083
|
-
onSelectFollowUp: ctx.sendMessage,
|
|
26085
|
+
onSelectFollowUp: composerNotice ? void 0 : ctx.sendMessage,
|
|
26084
26086
|
failedMessageIds: ctx.failedMessageIds,
|
|
26085
26087
|
onRetry: ctx.retrySend,
|
|
26086
26088
|
renderApprovalAction,
|
|
@@ -26092,7 +26094,7 @@ function AssistantPageContainer({
|
|
|
26092
26094
|
/* @__PURE__ */ jsx293(SectionHeader, { children: t("features.assistant.empty_state.title") }),
|
|
26093
26095
|
/* @__PURE__ */ jsx293("p", { className: "text-muted-foreground mt-1 text-sm", children: t("features.assistant.empty_state.subtitle") })
|
|
26094
26096
|
] }) }),
|
|
26095
|
-
/* @__PURE__ */ jsx293(
|
|
26097
|
+
composerNotice ? /* @__PURE__ */ jsx293("div", { className: "border-t p-4", children: composerNotice }) : /* @__PURE__ */ jsx293(
|
|
26096
26098
|
AssistantBlockNoteComposer,
|
|
26097
26099
|
{
|
|
26098
26100
|
onSend: (content, opts) => ctx.sendMessage(content, { contentBlocks: opts.contentBlocks }),
|
|
@@ -30071,4 +30073,4 @@ export {
|
|
|
30071
30073
|
useOAuthClients,
|
|
30072
30074
|
useOAuthClient
|
|
30073
30075
|
};
|
|
30074
|
-
//# sourceMappingURL=chunk-
|
|
30076
|
+
//# sourceMappingURL=chunk-THZAK7S3.mjs.map
|