Skip to content

Commit 752d215

Browse files
committed
Merge branch 'main' into switch-ydocs
2 parents b00c513 + f5b1a57 commit 752d215

File tree

132 files changed

+2629
-394
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+2629
-394
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262

6363
- name: Soft release
6464
id: soft-release
65-
run: pnpx pkg-pr-new publish './packages/*' # --compact enable compact after release
65+
run: pnpx pkg-pr-new publish './packages/*' --compact
6666

6767
playwright:
6868
name: "Playwright Tests - ${{ matrix.browser }}"

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
## 0.30.0 (2025-05-09)
2+
3+
### 🚀 Features
4+
5+
- expose `editor.prosemirrorState` again ([#1615](https://github.com/TypeCellOS/BlockNote/pull/1615))
6+
- add `undo` and `redo` methods to editor API ([#1592](https://github.com/TypeCellOS/BlockNote/pull/1592))
7+
- new auth & payment system ([#1617](https://github.com/TypeCellOS/BlockNote/pull/1617))
8+
- re-implement Y.js collaboration as BlockNote plugins ([#1638](https://github.com/TypeCellOS/BlockNote/pull/1638))
9+
- **file:** `previewWidth` prop now defaults to `undefined` ([#1664](https://github.com/TypeCellOS/BlockNote/pull/1664))
10+
- **locales:** add zh-TW i18n ([#1668](https://github.com/TypeCellOS/BlockNote/pull/1668))
11+
12+
### 🩹 Fixes
13+
14+
- Formatting toolbar regression ([#1630](https://github.com/TypeCellOS/BlockNote/pull/1630))
15+
- provide `blockId` to `uploadFile` in UploadTab ([#1641](https://github.com/TypeCellOS/BlockNote/pull/1641))
16+
- do not close the menu on content/selection change ([#1644](https://github.com/TypeCellOS/BlockNote/pull/1644))
17+
- keep file panel open during collaboration ([#1646](https://github.com/TypeCellOS/BlockNote/pull/1646))
18+
- force pasting plain text into code block ([#1663](https://github.com/TypeCellOS/BlockNote/pull/1663))
19+
- updating HTML parsing rules to account for `[email protected]` ([#1661](https://github.com/TypeCellOS/BlockNote/pull/1661))
20+
- **code-block:** handle unknown languages better ([#1626](https://github.com/TypeCellOS/BlockNote/pull/1626))
21+
- **locales:** add slovak i18n ([#1649](https://github.com/TypeCellOS/BlockNote/pull/1649))
22+
23+
### ❤️ Thank You
24+
25+
- l0st0 @l0st0
26+
- Lawrence Lin @linyiru
27+
- Matthew Lipski @matthewlipski
28+
- Nick Perez
29+
- Quentin Nativel
30+
131
## 0.29.1 (2025-04-17)
232

333
### 🩹 Fixes

examples/01-basic/03-multi-column/.bnexample.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"tags": ["Basic", "Blocks"],
66
"dependencies": {
77
"@blocknote/xl-multi-column": "latest"
8-
}
8+
},
9+
"pro": true
910
}

examples/05-interoperability/05-converting-blocks-to-pdf/.bnexample.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"playground": true,
33
"docs": true,
44
"author": "yousefed",
5-
"tags": [""],
5+
"tags": ["Interoperability"],
66
"dependencies": {
77
"@blocknote/xl-pdf-exporter": "latest",
88
"@react-pdf/renderer": "^4.3.0"

examples/06-custom-schema/04-pdf-file-block/PDF.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ export const PDF = createReactBlockSpec(
4343
default: true,
4444
},
4545
previewWidth: {
46-
default: 512,
46+
default: undefined,
47+
type: "number",
4748
},
4849
},
4950
content: "none",

packages/ariakit/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"directory": "packages/ariakit"
1212
},
1313
"license": "MPL-2.0",
14-
"version": "0.29.1",
14+
"version": "0.30.0",
1515
"files": [
1616
"dist",
1717
"types",
@@ -56,8 +56,8 @@
5656
},
5757
"dependencies": {
5858
"@ariakit/react": "^0.4.3",
59-
"@blocknote/core": "0.29.1",
60-
"@blocknote/react": "0.29.1"
59+
"@blocknote/core": "0.30.0",
60+
"@blocknote/react": "0.30.0"
6161
},
6262
"devDependencies": {
6363
"@types/react": "^18.0.25",

packages/code-block/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"directory": "packages/code-block"
1010
},
1111
"license": "MPL-2.0",
12-
"version": "0.29.1",
12+
"version": "0.30.0",
1313
"files": [
1414
"dist",
1515
"types",
@@ -49,7 +49,7 @@
4949
"test-watch": "vitest watch"
5050
},
5151
"dependencies": {
52-
"@blocknote/core": "0.29.1",
52+
"@blocknote/core": "0.30.0",
5353
"@shikijs/core": "^3.2.1",
5454
"@shikijs/engine-javascript": "^3.2.1",
5555
"@shikijs/langs-precompiled": "^3.2.1",

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"directory": "packages/core"
1212
},
1313
"license": "MPL-2.0",
14-
"version": "0.29.1",
14+
"version": "0.30.0",
1515
"files": [
1616
"dist",
1717
"types",
@@ -94,7 +94,7 @@
9494
"hast-util-from-dom": "^5.0.1",
9595
"prosemirror-dropcursor": "^1.8.1",
9696
"prosemirror-highlight": "^0.13.0",
97-
"prosemirror-model": "^1.24.1",
97+
"prosemirror-model": "^1.25.1",
9898
"prosemirror-state": "^1.4.3",
9999
"prosemirror-tables": "^1.6.4",
100100
"prosemirror-transform": "^1.10.2",

packages/core/src/api/blockManipulation/commands/insertBlocks/__snapshots__/insertBlocks.test.ts.snap

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ exports[`Test insertBlocks > Insert multiple blocks after 2`] = `
338338
"backgroundColor": "default",
339339
"caption": "",
340340
"name": "",
341-
"previewWidth": 512,
342341
"showPreview": true,
343342
"textAlignment": "left",
344343
"url": "https://via.placeholder.com/150",
@@ -1012,7 +1011,6 @@ exports[`Test insertBlocks > Insert multiple blocks before 2`] = `
10121011
"backgroundColor": "default",
10131012
"caption": "",
10141013
"name": "",
1015-
"previewWidth": 512,
10161014
"showPreview": true,
10171015
"textAlignment": "left",
10181016
"url": "https://via.placeholder.com/150",
@@ -1606,7 +1604,6 @@ exports[`Test insertBlocks > Insert single basic block after 2`] = `
16061604
"backgroundColor": "default",
16071605
"caption": "",
16081606
"name": "",
1609-
"previewWidth": 512,
16101607
"showPreview": true,
16111608
"textAlignment": "left",
16121609
"url": "https://via.placeholder.com/150",
@@ -2212,7 +2209,6 @@ exports[`Test insertBlocks > Insert single basic block before (without type) 2`]
22122209
"backgroundColor": "default",
22132210
"caption": "",
22142211
"name": "",
2215-
"previewWidth": 512,
22162212
"showPreview": true,
22172213
"textAlignment": "left",
22182214
"url": "https://via.placeholder.com/150",
@@ -2806,7 +2802,6 @@ exports[`Test insertBlocks > Insert single basic block before 2`] = `
28062802
"backgroundColor": "default",
28072803
"caption": "",
28082804
"name": "",
2809-
"previewWidth": 512,
28102805
"showPreview": true,
28112806
"textAlignment": "left",
28122807
"url": "https://via.placeholder.com/150",
@@ -3514,7 +3509,6 @@ exports[`Test insertBlocks > Insert single complex block after 2`] = `
35143509
"backgroundColor": "default",
35153510
"caption": "",
35163511
"name": "",
3517-
"previewWidth": 512,
35183512
"showPreview": true,
35193513
"textAlignment": "left",
35203514
"url": "https://via.placeholder.com/150",
@@ -4222,7 +4216,6 @@ exports[`Test insertBlocks > Insert single complex block before 2`] = `
42224216
"backgroundColor": "default",
42234217
"caption": "",
42244218
"name": "",
4225-
"previewWidth": 512,
42264219
"showPreview": true,
42274220
"textAlignment": "left",
42284221
"url": "https://via.placeholder.com/150",

packages/core/src/api/blockManipulation/commands/mergeBlocks/__snapshots__/mergeBlocks.test.ts.snap

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ exports[`Test mergeBlocks > Basic 1`] = `
214214
"backgroundColor": "default",
215215
"caption": "",
216216
"name": "",
217-
"previewWidth": 512,
218217
"showPreview": true,
219218
"textAlignment": "left",
220219
"url": "https://via.placeholder.com/150",
@@ -764,7 +763,6 @@ exports[`Test mergeBlocks > Blocks have different types 1`] = `
764763
"backgroundColor": "default",
765764
"caption": "",
766765
"name": "",
767-
"previewWidth": 512,
768766
"showPreview": true,
769767
"textAlignment": "left",
770768
"url": "https://via.placeholder.com/150",
@@ -1314,7 +1312,6 @@ exports[`Test mergeBlocks > First block has children 1`] = `
13141312
"backgroundColor": "default",
13151313
"caption": "",
13161314
"name": "",
1317-
"previewWidth": 512,
13181315
"showPreview": true,
13191316
"textAlignment": "left",
13201317
"url": "https://via.placeholder.com/150",
@@ -1863,7 +1860,6 @@ exports[`Test mergeBlocks > Second block has children 1`] = `
18631860
"backgroundColor": "default",
18641861
"caption": "",
18651862
"name": "",
1866-
"previewWidth": 512,
18671863
"showPreview": true,
18681864
"textAlignment": "left",
18691865
"url": "https://via.placeholder.com/150",
@@ -2430,7 +2426,6 @@ exports[`Test mergeBlocks > Second block is empty 1`] = `
24302426
"backgroundColor": "default",
24312427
"caption": "",
24322428
"name": "",
2433-
"previewWidth": 512,
24342429
"showPreview": true,
24352430
"textAlignment": "left",
24362431
"url": "https://via.placeholder.com/150",

0 commit comments

Comments
 (0)