Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/content/docs/features/ai/backend-integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export async function POST(req: Request) {
const result = streamText({
model: openai("gpt-4.1"), // see https://ai-sdk.dev/docs/foundations/providers-and-models
system: aiDocumentFormats.html.systemPrompt,
messages: convertToModelMessages(injectDocumentStateMessages(messages)),
messages: await convertToModelMessages(
injectDocumentStateMessages(messages),
),
tools: toolDefinitionsToToolSet(toolDefinitions),
toolChoice: "required",
});
Expand Down
4 changes: 3 additions & 1 deletion docs/content/docs/features/ai/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ export async function POST(req: Request) {
const result = streamText({
model: openai("gpt-4.1"), // see https://ai-sdk.dev/docs/foundations/providers-and-models
system: aiDocumentFormats.html.systemPrompt,
messages: convertToModelMessages(injectDocumentStateMessages(messages)),
messages: await convertToModelMessages(
injectDocumentStateMessages(messages),
),
tools: toolDefinitionsToToolSet(toolDefinitions),
toolChoice: "required",
});
Expand Down
14 changes: 7 additions & 7 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"test": "node validate-links.js"
},
"dependencies": {
"@ai-sdk/anthropic": "^2.0.31",
"@ai-sdk/google": "^2.0.23",
"@ai-sdk/groq": "^2.0.16",
"@ai-sdk/mistral": "^2.0.19",
"@ai-sdk/openai": "^2.0.52",
"@ai-sdk/openai-compatible": "^1.0.22",
"@ai-sdk/anthropic": "^3.0.2",
"@ai-sdk/google": "^3.0.2",
"@ai-sdk/groq": "^3.0.2",
"@ai-sdk/mistral": "^3.0.2",
"@ai-sdk/openai": "^3.0.2",
"@ai-sdk/openai-compatible": "^2.0.4",
"@aws-sdk/client-s3": "^3.609.0",
"@aws-sdk/s3-request-presigner": "^3.609.0",
"@blocknote/code-block": "workspace:*",
Expand Down Expand Up @@ -71,7 +71,7 @@
"@vercel/analytics": "^1.5.0",
"@vercel/og": "^0.6.8",
"@y-sweet/react": "^0.6.3",
"ai": "^5.0.102",
"ai": "^6.0.5",
"babel-plugin-react-compiler": "19.1.0-rc.2",
"better-auth": "^1.3.27",
"better-sqlite3": "^11.10.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/01-basic/03-multi-column/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"@blocknote/mantine": "latest",
"@blocknote/react": "latest",
"@blocknote/shadcn": "latest",
"@blocknote/xl-multi-column": "latest",
"@mantine/core": "^8.3.11",
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"react": "^19.2.1",
"react-dom": "^19.2.1"
"react-dom": "^19.2.1",
"@blocknote/xl-multi-column": "latest"
},
"devDependencies": {
"@types/react": "^19.2.2",
Expand Down
6 changes: 3 additions & 3 deletions examples/02-backend/03-s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"preview": "vite preview"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.609.0",
"@aws-sdk/s3-request-presigner": "^3.609.0",
"@blocknote/ariakit": "latest",
"@blocknote/core": "latest",
"@blocknote/mantine": "latest",
Expand All @@ -22,7 +20,9 @@
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"react": "^19.2.1",
"react-dom": "^19.2.1"
"react-dom": "^19.2.1",
"@aws-sdk/client-s3": "^3.609.0",
"@aws-sdk/s3-request-presigner": "^3.609.0"
},
"devDependencies": {
"@types/react": "^19.2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"@blocknote/core": "latest",
"@blocknote/mantine": "latest",
"@blocknote/react": "latest",
"@blocknote/server-util": "latest",
"@blocknote/shadcn": "latest",
"@mantine/core": "^8.3.11",
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"react": "^19.2.1",
"react-dom": "^19.2.1"
"react-dom": "^19.2.1",
"@blocknote/server-util": "latest"
},
"devDependencies": {
"@types/react": "^19.2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"Custom Schemas"
],
"dependencies": {
"@mantine/core": "^8.3.4",
"@mantine/core": "^8.3.11",
"react-icons": "^5.2.1"
}
}
4 changes: 2 additions & 2 deletions examples/03-ui-components/11-uppy-file-panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"@mantine/core": "^8.3.11",
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"@uppy/core": "^3.13.1",
"@uppy/dashboard": "^3.9.1",
"@uppy/drag-drop": "^3.1.1",
Expand All @@ -30,8 +32,6 @@
"@uppy/status-bar": "^3.1.1",
"@uppy/webcam": "^3.4.2",
"@uppy/xhr-upload": "^3.4.0",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"react-icons": "^5.2.1"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions examples/03-ui-components/13-custom-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"@blocknote/mantine": "latest",
"@blocknote/react": "latest",
"@blocknote/shadcn": "latest",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mantine/core": "^8.3.11",
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"@mui/icons-material": "^5.16.1",
"@mui/material": "^5.16.1",
"react": "^19.2.1",
"react-dom": "^19.2.1"
"react-dom": "^19.2.1",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mui/icons-material": "^5.16.1",
"@mui/material": "^5.16.1"
},
"devDependencies": {
"@types/react": "^19.2.2",
Expand Down
4 changes: 2 additions & 2 deletions examples/04-theming/06-code-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
},
"dependencies": {
"@blocknote/ariakit": "latest",
"@blocknote/code-block": "latest",
"@blocknote/core": "latest",
"@blocknote/mantine": "latest",
"@blocknote/react": "latest",
Expand All @@ -21,7 +20,8 @@
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"react": "^19.2.1",
"react-dom": "^19.2.1"
"react-dom": "^19.2.1",
"@blocknote/code-block": "latest"
},
"devDependencies": {
"@types/react": "^19.2.2",
Expand Down
8 changes: 4 additions & 4 deletions examples/04-theming/07-custom-code-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
},
"dependencies": {
"@blocknote/ariakit": "latest",
"@blocknote/code-block": "latest",
"@blocknote/core": "latest",
"@blocknote/mantine": "latest",
"@blocknote/react": "latest",
"@blocknote/shadcn": "latest",
"@mantine/core": "^8.3.11",
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"@blocknote/code-block": "latest",
"@shikijs/core": "^3.19.0",
"@shikijs/engine-javascript": "^3.19.0",
"@shikijs/langs-precompiled": "^3.19.0",
"@shikijs/themes": "^3.19.0",
"@shikijs/types": "^3.19.0",
"react": "^19.2.1",
"react-dom": "^19.2.1"
"@shikijs/types": "^3.19.0"
},
"devDependencies": {
"@types/react": "^19.2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"@blocknote/mantine": "latest",
"@blocknote/react": "latest",
"@blocknote/shadcn": "latest",
"@blocknote/xl-multi-column": "latest",
"@blocknote/xl-pdf-exporter": "latest",
"@mantine/core": "^8.3.11",
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"@react-pdf/renderer": "^4.3.0",
"react": "^19.2.1",
"react-dom": "^19.2.1"
"react-dom": "^19.2.1",
"@blocknote/xl-pdf-exporter": "latest",
"@blocknote/xl-multi-column": "latest",
"@react-pdf/renderer": "^4.3.0"
},
"devDependencies": {
"@types/react": "^19.2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"@blocknote/mantine": "latest",
"@blocknote/react": "latest",
"@blocknote/shadcn": "latest",
"@blocknote/xl-docx-exporter": "latest",
"@blocknote/xl-multi-column": "latest",
"@mantine/core": "^8.3.11",
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"docx": "^9.5.1",
"react": "^19.2.1",
"react-dom": "^19.2.1"
"react-dom": "^19.2.1",
"@blocknote/xl-docx-exporter": "latest",
"@blocknote/xl-multi-column": "latest",
"docx": "^9.5.1"
},
"devDependencies": {
"@types/react": "^19.2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
"@blocknote/mantine": "latest",
"@blocknote/react": "latest",
"@blocknote/shadcn": "latest",
"@blocknote/xl-multi-column": "latest",
"@blocknote/xl-odt-exporter": "latest",
"@mantine/core": "^8.3.11",
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"react": "^19.2.1",
"react-dom": "^19.2.1"
"react-dom": "^19.2.1",
"@blocknote/xl-odt-exporter": "latest",
"@blocknote/xl-multi-column": "latest"
},
"devDependencies": {
"@types/react": "^19.2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
"@blocknote/mantine": "latest",
"@blocknote/react": "latest",
"@blocknote/shadcn": "latest",
"@blocknote/xl-email-exporter": "latest",
"@mantine/core": "^8.3.11",
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"@react-email/render": "^1.1.2",
"react": "^19.2.1",
"react-dom": "^19.2.1"
"react-dom": "^19.2.1",
"@blocknote/xl-email-exporter": "latest",
"@react-email/render": "^1.1.2"
},
"devDependencies": {
"@types/react": "^19.2.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/06-custom-schema/01-alert-block/.bnexample.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"Slash Menu"
],
"dependencies": {
"@mantine/core": "^8.3.4",
"@mantine/core": "^8.3.11",
"react-icons": "^5.2.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"Slash Menu"
],
"dependencies": {
"@mantine/core": "^8.3.4",
"@mantine/core": "^8.3.11",
"react-icons": "^5.2.1"
},
"pro": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Slash Menu"
],
"dependencies": {
"@mantine/core": "^8.3.4",
"@mantine/core": "^8.3.11",
"react-icons": "^5.2.1"
}
}
10 changes: 5 additions & 5 deletions examples/07-collaboration/02-liveblocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
"@blocknote/mantine": "latest",
"@blocknote/react": "latest",
"@blocknote/shadcn": "latest",
"@liveblocks/client": "3.7.1-tiptap3",
"@liveblocks/react": "3.7.1-tiptap3",
"@liveblocks/react-blocknote": "3.7.1-tiptap3",
"@liveblocks/react-tiptap": "3.7.1-tiptap3",
"@liveblocks/react-ui": "3.7.1-tiptap3",
"@mantine/core": "^8.3.11",
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"@liveblocks/client": "3.7.1-tiptap3",
"@liveblocks/react": "3.7.1-tiptap3",
"@liveblocks/react-blocknote": "3.7.1-tiptap3",
"@liveblocks/react-tiptap": "3.7.1-tiptap3",
"@liveblocks/react-ui": "3.7.1-tiptap3",
"yjs": "^13.6.27"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions examples/07-collaboration/03-y-sweet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"@mantine/core": "^8.3.11",
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"@y-sweet/react": "^0.6.3",
"react": "^19.2.1",
"react-dom": "^19.2.1"
"react-dom": "^19.2.1",
"@y-sweet/react": "^0.6.3"
},
"devDependencies": {
"@types/react": "^19.2.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/07-collaboration/05-comments/.bnexample.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"tags": ["Advanced", "Comments", "Collaboration"],
"dependencies": {
"@y-sweet/react": "^0.6.3",
"@mantine/core": "^8.3.4"
"@mantine/core": "^8.3.11"
}
}
4 changes: 2 additions & 2 deletions examples/07-collaboration/05-comments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"@mantine/core": "^8.3.11",
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"@y-sweet/react": "^0.6.3",
"react": "^19.2.1",
"react-dom": "^19.2.1"
"react-dom": "^19.2.1",
"@y-sweet/react": "^0.6.3"
},
"devDependencies": {
"@types/react": "^19.2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"dependencies": {
"y-partykit": "^0.0.25",
"yjs": "^13.6.27",
"@mantine/core": "^8.3.4"
"@mantine/core": "^8.3.11"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"@mantine/core": "^8.3.11",
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"@tiptap/core": "^3.13.0",
"react": "^19.2.1",
"react-dom": "^19.2.1"
"react-dom": "^19.2.1",
"@tiptap/core": "^3.13.0"
},
"devDependencies": {
"@types/react": "^19.2.2",
Expand Down
4 changes: 2 additions & 2 deletions examples/09-ai/01-minimal/.bnexample.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"tags": ["AI", "llm"],
"dependencies": {
"@blocknote/xl-ai": "latest",
"@mantine/core": "^8.3.4",
"ai": "^5.0.102"
"@mantine/core": "^8.3.11",
"ai": "^6.0.5"
}
}
6 changes: 3 additions & 3 deletions examples/09-ai/01-minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
"@blocknote/mantine": "latest",
"@blocknote/react": "latest",
"@blocknote/shadcn": "latest",
"@blocknote/xl-ai": "latest",
"@mantine/core": "^8.3.11",
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
"ai": "^5.0.102",
"react": "^19.2.1",
"react-dom": "^19.2.1"
"react-dom": "^19.2.1",
"@blocknote/xl-ai": "latest",
"ai": "^6.0.5"
},
"devDependencies": {
"@types/react": "^19.2.2",
Expand Down
Loading
Loading