Skip to content

Commit 258520f

Browse files
committed
Merge branch 'main' into default-blocks
2 parents cd90895 + b14f1b0 commit 258520f

30 files changed

+1551
-68
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## 0.37.0 (2025-08-29)
2+
3+
### 🚀 Features
4+
5+
- export `ShadCNComponentsContext` ([#1965](https://github.com/TypeCellOS/BlockNote/pull/1965))
6+
7+
### 🩹 Fixes
8+
9+
- Typing in empty table cells ([#1973](https://github.com/TypeCellOS/BlockNote/pull/1973))
10+
11+
### ❤️ Thank You
12+
13+
- Héctor Zhuang @Hector-Zhuang
14+
- Matthew Lipski @matthewlipski
15+
116
## 0.36.1 (2025-08-27)
217

318
### 🩹 Fixes

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.36.1",
14+
"version": "0.37.0",
1515
"files": [
1616
"dist",
1717
"types",
@@ -57,8 +57,8 @@
5757
},
5858
"dependencies": {
5959
"@ariakit/react": "^0.4.3",
60-
"@blocknote/core": "0.36.1",
61-
"@blocknote/react": "0.36.1"
60+
"@blocknote/core": "0.37.0",
61+
"@blocknote/react": "0.37.0"
6262
},
6363
"devDependencies": {
6464
"@types/react": "^19.1.0",

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.36.1",
12+
"version": "0.37.0",
1313
"files": [
1414
"dist",
1515
"types",
@@ -49,7 +49,7 @@
4949
"test-watch": "vitest watch"
5050
},
5151
"dependencies": {
52-
"@blocknote/core": "0.36.1",
52+
"@blocknote/core": "0.37.0",
5353
"@shikijs/core": "^3.2.1",
5454
"@shikijs/engine-javascript": "^3.2.1",
5555
"@shikijs/langs": "^3.2.1",

packages/core/package.json

Lines changed: 1 addition & 1 deletion
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.36.1",
14+
"version": "0.37.0",
1515
"files": [
1616
"dist",
1717
"types",

packages/core/src/blocks/Table/block.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,8 @@ const TableParagraphNode = createStronglyTypedTiptapNode({
172172
];
173173
},
174174

175-
renderHTML({ node, HTMLAttributes }) {
176-
// Insert a line break if there is no content, in order to preserve the
177-
// correct cell height. Otherwise, the cell will have a height of zero +
178-
// padding.
179-
return ["p", HTMLAttributes, node.childCount ? 0 : ["br"]];
175+
renderHTML({ HTMLAttributes }) {
176+
return ["p", HTMLAttributes, 0];
180177
},
181178
});
182179

packages/core/src/editor/editor.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ Tippy popups that are appended to document.body directly
176176
text-align: left;
177177
}
178178

179+
.bn-editor [data-content-type="table"] th > p,
180+
.bn-editor [data-content-type="table"] td > p {
181+
min-height: 1.5rem;
182+
}
183+
179184
/* tiptap uses colwidth instead of data-colwidth, se we need to adjust this style from prosemirror-tables */
180185
.ProseMirror td,
181186
.ProseMirror th {

packages/dev-scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"directory": "packages/dev-scripts"
99
},
1010
"license": "MPL-2.0",
11-
"version": "0.36.1",
11+
"version": "0.37.0",
1212
"description": "",
1313
"type": "module",
1414
"scripts": {

packages/mantine/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"directory": "packages/mantine"
1212
},
1313
"license": "MPL-2.0",
14-
"version": "0.36.1",
14+
"version": "0.37.0",
1515
"files": [
1616
"dist",
1717
"types",
@@ -56,8 +56,8 @@
5656
"clean": "rimraf dist && rimraf types"
5757
},
5858
"dependencies": {
59-
"@blocknote/core": "0.36.1",
60-
"@blocknote/react": "0.36.1",
59+
"@blocknote/core": "0.37.0",
60+
"@blocknote/react": "0.37.0",
6161
"@mantine/core": "^7.17.3",
6262
"@mantine/hooks": "^7.17.3",
6363
"@mantine/utils": "^6.0.21",

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"directory": "packages/react"
1212
},
1313
"license": "MPL-2.0",
14-
"version": "0.36.1",
14+
"version": "0.37.0",
1515
"files": [
1616
"dist",
1717
"types",
@@ -58,7 +58,7 @@
5858
"clean": "rimraf dist && rimraf types"
5959
},
6060
"dependencies": {
61-
"@blocknote/core": "0.36.1",
61+
"@blocknote/core": "0.37.0",
6262
"@emoji-mart/data": "^1.2.1",
6363
"@floating-ui/react": "^0.26.4",
6464
"@tiptap/core": "^2.26.1",

packages/server-util/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"directory": "packages/server-util"
1212
},
1313
"license": "MPL-2.0",
14-
"version": "0.36.1",
14+
"version": "0.37.0",
1515
"files": [
1616
"dist",
1717
"types",
@@ -56,8 +56,8 @@
5656
"test-watch": "vitest watch"
5757
},
5858
"dependencies": {
59-
"@blocknote/core": "0.36.1",
60-
"@blocknote/react": "0.36.1",
59+
"@blocknote/core": "0.37.0",
60+
"@blocknote/react": "0.37.0",
6161
"@tiptap/core": "^2.26.1",
6262
"@tiptap/pm": "^2.26.1",
6363
"jsdom": "^25.0.1",

0 commit comments

Comments
 (0)