Skip to content

Commit 21fe25b

Browse files
authored
Fix: node html parsing (#129)
* set self node type in parseHTML * v0.4.6-alpha.2 * v0.4.6-alpha.3
1 parent 9431d90 commit 21fe25b

File tree

11 files changed

+34
-34
lines changed

11 files changed

+34
-34
lines changed

examples/editor/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "@blocknote/example-editor",
33
"private": true,
4-
"version": "0.4.6-alpha.1",
4+
"version": "0.4.6-alpha.3",
55
"scripts": {
66
"dev": "vite",
77
"build": "tsc && vite build",
88
"preview": "vite preview",
99
"lint": "eslint src --max-warnings 0"
1010
},
1111
"dependencies": {
12-
"@blocknote/core": "^0.4.6-alpha.1",
13-
"@blocknote/react": "^0.4.6-alpha.1",
12+
"@blocknote/core": "^0.4.6-alpha.3",
13+
"@blocknote/react": "^0.4.6-alpha.3",
1414
"react": "^18.2.0",
1515
"react-dom": "^18.2.0"
1616
},

examples/vanilla/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "@blocknote/example-vanilla",
33
"private": true,
4-
"version": "0.4.6-alpha.1",
4+
"version": "0.4.6-alpha.3",
55
"scripts": {
66
"dev": "vite",
77
"build": "tsc && vite build",
88
"preview": "vite preview",
99
"lint": "eslint src --max-warnings 0"
1010
},
1111
"dependencies": {
12-
"@blocknote/core": "^0.4.6-alpha.1"
12+
"@blocknote/core": "^0.4.6-alpha.3"
1313
},
1414
"devDependencies": {
1515
"eslint": "^8.10.0",

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
33
"useNx": false,
44
"useWorkspaces": true,
5-
"version": "0.4.6-alpha.1"
5+
"version": "0.4.6-alpha.3"
66
}

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"homepage": "https://github.com/yousefed/blocknote",
44
"private": false,
55
"license": "MPL-2.0",
6-
"version": "0.4.6-alpha.1",
6+
"version": "0.4.6-alpha.3",
77
"files": [
88
"dist",
99
"types",

packages/core/src/extensions/Blocks/nodes/BlockContent/HeadingBlockContent/HeadingBlockContent.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@ export const HeadingBlockContent = Node.create({
4848
{
4949
tag: "h1",
5050
attrs: { level: "1" },
51-
node: "blockContainer",
51+
node: "heading",
5252
},
5353
{
5454
tag: "h2",
5555
attrs: { level: "2" },
56-
node: "blockContainer",
56+
node: "heading",
5757
},
5858
{
5959
tag: "h3",
6060
attrs: { level: "3" },
61-
node: "blockContainer",
61+
node: "heading",
6262
},
6363
];
6464
},

packages/core/src/extensions/Blocks/nodes/BlockContent/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const BulletListItemBlockContent = Node.create({
5353

5454
return false;
5555
},
56-
node: "blockContainer",
56+
node: "bulletListItem",
5757
},
5858
// Case for BlockNote list structure.
5959
{
@@ -76,7 +76,7 @@ export const BulletListItemBlockContent = Node.create({
7676
return false;
7777
},
7878
priority: 300,
79-
node: "blockContainer",
79+
node: "bulletListItem",
8080
},
8181
];
8282
},

packages/core/src/extensions/Blocks/nodes/BlockContent/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const NumberedListItemBlockContent = Node.create({
7373

7474
return false;
7575
},
76-
node: "blockContainer",
76+
node: "numberedListItem",
7777
},
7878
// Case for BlockNote list structure.
7979
// (e.g.: when pasting from blocknote)
@@ -97,7 +97,7 @@ export const NumberedListItemBlockContent = Node.create({
9797
return false;
9898
},
9999
priority: 300,
100-
node: "blockContainer",
100+
node: "numberedListItem",
101101
},
102102
];
103103
},

packages/core/src/extensions/Blocks/nodes/BlockContent/ParagraphBlockContent/ParagraphBlockContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const ParagraphBlockContent = Node.create({
1111
{
1212
tag: "p",
1313
priority: 200,
14-
node: "blockContainer",
14+
node: "paragraph",
1515
},
1616
];
1717
},

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"homepage": "https://github.com/yousefed/blocknote",
44
"private": false,
55
"license": "MPL-2.0",
6-
"version": "0.4.6-alpha.1",
6+
"version": "0.4.6-alpha.3",
77
"files": [
88
"dist",
99
"types",
@@ -46,7 +46,7 @@
4646
"lint": "eslint src --max-warnings 0"
4747
},
4848
"dependencies": {
49-
"@blocknote/core": "^0.4.6-alpha.1",
49+
"@blocknote/core": "^0.4.6-alpha.3",
5050
"@emotion/react": "^11.10.5",
5151
"@mantine/core": "^5.6.1",
5252
"@mantine/hooks": "^5.6.1",

0 commit comments

Comments
 (0)