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
12 changes: 6 additions & 6 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
"@blocknote/xl-odt-exporter": "workspace:*",
"@blocknote/xl-pdf-exporter": "workspace:*",
"@fumadocs/base-ui": "16.5.0",
"@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",
"@liveblocks/client": "^3.17.0",
"@liveblocks/react": "^3.17.0",
"@liveblocks/react-blocknote": "^3.17.0",
"@liveblocks/react-tiptap": "^3.17.0",
"@liveblocks/react-ui": "^3.17.0",
"@mantine/core": "^8.3.11",
"@mantine/hooks": "^8.3.11",
"@mantine/utils": "^6.0.22",
Expand Down Expand Up @@ -126,7 +126,7 @@
"eslint-config-next": "^16.1.6",
"next-validate-link": "^1.6.4",
"postcss": "^8.5.6",
"serve": "^14.2.5",
"serve": "^14.2.6",
"tailwindcss": "^4.1.18",
"tw-animate-css": "^1.4.0",
"typescript": "^5.9.3"
Expand Down
10 changes: 5 additions & 5 deletions examples/07-collaboration/02-liveblocks/.bnexample.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"author": "yousefed",
"tags": ["Advanced", "Saving/Loading", "Collaboration"],
"dependencies": {
"@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",
"@liveblocks/client": "^3.17.0",
"@liveblocks/react": "^3.17.0",
"@liveblocks/react-blocknote": "^3.17.0",
"@liveblocks/react-tiptap": "^3.17.0",
"@liveblocks/react-ui": "^3.17.0",
"yjs": "^13.6.27"
}
}
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 @@ -21,11 +21,11 @@
"@mantine/utils": "^6.0.22",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"@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",
"@liveblocks/client": "^3.17.0",
"@liveblocks/react": "^3.17.0",
"@liveblocks/react-blocknote": "^3.17.0",
"@liveblocks/react-tiptap": "^3.17.0",
"@liveblocks/react-ui": "^3.17.0",
"yjs": "^13.6.27"
},
"devDependencies": {
Expand Down
18 changes: 13 additions & 5 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,34 @@
"build:site": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["{workspaceRoot}/examples/**/*", "{projectRoot}/**/*"],
"inputs": [
"{workspaceRoot}/examples/**/*",
"{projectRoot}/**/*",
"!{projectRoot}/sqlite.db",
"!{projectRoot}/.env*",
"!{projectRoot}/validate-links.mjs",
"!{projectRoot}/coverage/**/*"
],
"outputs": [
"{projectRoot}/dist",
"{projectRoot}/.next",
"!{projectRoot}/.next/cache",
"{projectRoot}/.source",
"{projectRoot}/content/examples",
"{projectRoot}/components/example/generated"
]
},
"test": {
"cache": true,
"dependsOn": ["^test"]
"dependsOn": ["build", "^build"]
},
"lint": {
"cache": true,
"dependsOn": []
},
"e2e": {
"cache": true,
"dependsOn": ["^e2e"]
"dependsOn": ["build", "^build"]
}
}
},
"analytics": false
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
"name": "root",
"type": "module",
"devDependencies": {
"@nx/js": "22.5.4",
"@nx/js": "22.6.4",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"concurrently": "9.1.2",
"eslint": "^8.57.1",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-import": "^2.32.0",
"glob": "^10.5.0",
"nx": "22.5.4",
"nx": "22.6.4",
"prettier": "3.6.2",
"prettier-plugin-tailwindcss": "^0.6.14",
"serve": "14.2.4",
"serve": "14.2.6",
"typescript": "^5.9.3",
"vitest": "^2.1.9",
"vitest": "^4.1.2",
"wait-on": "8.0.3"
},
"pnpm": {
Expand Down
6 changes: 3 additions & 3 deletions packages/ariakit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@
"devDependencies": {
"@types/react": "^19.2.3",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^4.7.0",
"@vitejs/plugin-react": "^6.0.1",
"eslint": "^8.57.1",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"rimraf": "^5.0.10",
"rollup-plugin-webpack-stats": "^0.2.6",
"typescript": "^5.9.3",
"vite": "^5.4.20",
"vite": "^8.0.3",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-externalize-deps": "^0.8.0"
"vite-plugin-externalize-deps": "^0.10.0"
},
"peerDependencies": {
"react": "^18.0 || ^19.0 || >= 19.0.0-rc",
Expand Down
12 changes: 9 additions & 3 deletions packages/ariakit/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ export default defineConfig((conf) => ({
resolve: {
alias:
conf.command === "build"
? ({} as Record<string, string>)
? ({
// Vite 8's postcss-import can't resolve bare package specifiers in CSS @import
"@blocknote/react/style.css": path.resolve(
__dirname,
"../react/dist/style.css"
),
} as Record<string, string>)
: ({
// load live from sources with live reload working
"@blocknote/core": path.resolve(__dirname, "../core/src/"),
Expand All @@ -30,6 +36,7 @@ export default defineConfig((conf) => ({
"blocknote-ariakit": path.resolve(__dirname, "src/index.tsx"),
},
name: "blocknote-ariakit",
cssFileName: "style",
formats: ["es", "cjs"],
fileName: (format, entryName) =>
format === "es" ? `${entryName}.js` : `${entryName}.cjs`,
Expand All @@ -43,7 +50,7 @@ export default defineConfig((conf) => ({
...pkg.dependencies,
...((pkg as any).peerDependencies || {}),
...pkg.devDependencies,
}).includes(source)
}).some((dep) => source === dep || source.startsWith(dep + "/"))
) {
return true;
}
Expand All @@ -64,7 +71,6 @@ export default defineConfig((conf) => ({
react: "React",
"react-dom": "ReactDOM",
},
interop: "compat", // https://rollupjs.org/migration/#changed-defaults
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions packages/code-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"eslint": "^8.57.1",
"rollup-plugin-webpack-stats": "^0.2.6",
"typescript": "^5.9.3",
"vite": "^5.4.20",
"vite": "^8.0.3",
"vite-plugin-eslint": "^1.8.1",
"vitest": "^2.1.9"
"vitest": "^4.1.2"
},
"peerDependencies": {
"@blocknote/core": "0.47.3"
Expand Down
3 changes: 1 addition & 2 deletions packages/code-block/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineConfig((conf) => ({
...pkg.dependencies,
...((pkg as any).peerDependencies || {}),
...pkg.devDependencies,
}).includes(source)
}).some((dep) => source === dep || source.startsWith(dep + "/"))
) {
return true;
}
Expand All @@ -59,7 +59,6 @@ export default defineConfig((conf) => ({
// Provide global variables to use in the UMD build
// for externalized deps
globals: {},
interop: "compat", // https://rollupjs.org/migration/#changed-defaults
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@
"rimraf": "^5.0.10",
"rollup-plugin-webpack-stats": "^0.2.6",
"typescript": "^5.9.3",
"vite": "^5.4.20",
"vite": "^8.0.3",
"vite-plugin-eslint": "^1.8.1",
"vitest": "^2.1.9"
"vitest": "^4.1.2"
},
"eslintConfig": {
"extends": [
Expand Down
10 changes: 5 additions & 5 deletions packages/core/src/editor/performance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ describe("Performance: transaction processing scales sub-linearly (#2595)", () =
// which is inherently O(n). The thresholds verify BlockNote plugins don't
// add significant overhead on top of that.
const SMALL = 100;
const LARGE = 10000;
const ITERATIONS = 10;
const LARGE = 5000;
const ITERATIONS = 5;

function measureAvgInsertTime(
editor: BlockNoteEditor<any, any, any>,
Expand All @@ -61,7 +61,7 @@ describe("Performance: transaction processing scales sub-linearly (#2595)", () =
return (performance.now() - start) / ITERATIONS;
}

it("heading blocks: typing at end", () => {
it("heading blocks: typing at end", { timeout: 30_000 }, () => {
const smallEditor = createEditorWithBlocks(SMALL, "heading");
const largeEditor = createEditorWithBlocks(LARGE, "heading");

Expand All @@ -85,7 +85,7 @@ describe("Performance: transaction processing scales sub-linearly (#2595)", () =
expect(ratio).toBeLessThan(50);
});

it("numbered list items: typing at beginning", () => {
it("numbered list items: typing at beginning", { timeout: 30_000 }, () => {
const smallEditor = createEditorWithBlocks(SMALL, "numberedListItem");
const largeEditor = createEditorWithBlocks(LARGE, "numberedListItem");

Expand All @@ -108,7 +108,7 @@ describe("Performance: transaction processing scales sub-linearly (#2595)", () =
expect(ratio).toBeLessThan(250);
});

it("numbered list items: typing at end", () => {
it("numbered list items: typing at end", { timeout: 30_000 }, () => {
const smallEditor = createEditorWithBlocks(SMALL, "numberedListItem");
const largeEditor = createEditorWithBlocks(LARGE, "numberedListItem");

Expand Down
Loading
Loading