Skip to content

Commit 317a18e

Browse files
authored
fix(react): add data attribute for correct react rendering (#1954)
1 parent 9210de3 commit 317a18e

File tree

12 files changed

+253
-209
lines changed

12 files changed

+253
-209
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@shikijs/langs-precompiled": "^3.2.1",
5555
"@shikijs/themes": "^3.2.1",
5656
"@shikijs/types": "^3.2.1",
57-
"@tiptap/core": "^2.12.0",
57+
"@tiptap/core": "^2.26.1",
5858
"@uppy/core": "^3.13.1",
5959
"@uppy/dashboard": "^3.9.1",
6060
"@uppy/drag-drop": "^3.1.1",

examples/08-extensions/01-tiptap-arrow-conversion/.bnexample.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"tags": ["Extension"],
66
"pro": true,
77
"dependencies": {
8-
"@tiptap/core": "^2.12.0"
8+
"@tiptap/core": "^2.26.1"
99
}
1010
}

examples/08-extensions/01-tiptap-arrow-conversion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@blocknote/shadcn": "latest",
1818
"react": "^19.1.0",
1919
"react-dom": "^19.1.0",
20-
"@tiptap/core": "^2.12.0"
20+
"@tiptap/core": "^2.26.1"
2121
},
2222
"devDependencies": {
2323
"@types/react": "^19.1.0",

packages/core/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,21 @@
7676
"dependencies": {
7777
"@emoji-mart/data": "^1.2.1",
7878
"@shikijs/types": "3.2.1",
79-
"@tiptap/core": "^2.12.0",
80-
"@tiptap/extension-bold": "^2.11.5",
81-
"@tiptap/extension-code": "^2.11.5",
82-
"@tiptap/extension-gapcursor": "^2.11.5",
83-
"@tiptap/extension-history": "^2.11.5",
84-
"@tiptap/extension-horizontal-rule": "^2.11.5",
85-
"@tiptap/extension-italic": "^2.11.5",
86-
"@tiptap/extension-link": "^2.11.5",
87-
"@tiptap/extension-paragraph": "^2.11.5",
88-
"@tiptap/extension-strike": "^2.11.5",
89-
"@tiptap/extension-table-cell": "^2.11.5",
90-
"@tiptap/extension-table-header": "^2.11.5",
91-
"@tiptap/extension-text": "^2.11.5",
92-
"@tiptap/extension-underline": "^2.11.5",
93-
"@tiptap/pm": "^2.12.0",
79+
"@tiptap/core": "^2.26.1",
80+
"@tiptap/extension-bold": "^2.26.1",
81+
"@tiptap/extension-code": "^2.26.1",
82+
"@tiptap/extension-gapcursor": "^2.26.1",
83+
"@tiptap/extension-history": "^2.26.1",
84+
"@tiptap/extension-horizontal-rule": "^2.26.1",
85+
"@tiptap/extension-italic": "^2.26.1",
86+
"@tiptap/extension-link": "^2.26.1",
87+
"@tiptap/extension-paragraph": "^2.26.1",
88+
"@tiptap/extension-strike": "^2.26.1",
89+
"@tiptap/extension-table-cell": "^2.26.1",
90+
"@tiptap/extension-table-header": "^2.26.1",
91+
"@tiptap/extension-text": "^2.26.1",
92+
"@tiptap/extension-underline": "^2.26.1",
93+
"@tiptap/pm": "^2.26.1",
9494
"emoji-mart": "^5.6.0",
9595
"hast-util-from-dom": "^5.0.1",
9696
"prosemirror-dropcursor": "^1.8.2",

packages/react/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@
6161
"@blocknote/core": "0.35.0",
6262
"@emoji-mart/data": "^1.2.1",
6363
"@floating-ui/react": "^0.26.4",
64-
"@tiptap/core": "^2.12.0",
65-
"@tiptap/pm": "^2.12.0",
66-
"@tiptap/react": "^2.12.0",
64+
"@tiptap/core": "^2.26.1",
65+
"@tiptap/pm": "^2.26.1",
66+
"@tiptap/react": "^2.26.1",
6767
"emoji-mart": "^5.6.0",
6868
"lodash.merge": "^4.6.2",
6969
"react-icons": "^5.2.1"

packages/react/src/schema/ReactBlockSpec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ export function createReactBlockSpec<
194194
"bn-inline-content",
195195
element.className,
196196
);
197+
element.dataset.nodeViewContent = "";
197198
}
198199
}}
199200
/>

packages/server-util/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
"dependencies": {
5959
"@blocknote/core": "0.35.0",
6060
"@blocknote/react": "0.35.0",
61-
"@tiptap/core": "^2.12.0",
62-
"@tiptap/pm": "^2.12.0",
61+
"@tiptap/core": "^2.26.1",
62+
"@tiptap/pm": "^2.26.1",
6363
"jsdom": "^25.0.1",
6464
"y-prosemirror": "^1.3.4",
6565
"y-protocols": "^1.0.6",

packages/xl-ai/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"@blocknote/prosemirror-suggest-changes": "^0.1.3",
7070
"@blocknote/react": "0.35.0",
7171
"@floating-ui/react": "^0.26.4",
72-
"@tiptap/core": "^2.12.0",
72+
"@tiptap/core": "^2.26.1",
7373
"ai": "^4.3.15",
7474
"lodash.isequal": "^4.5.0",
7575
"prosemirror-changeset": "^2.3.0",
@@ -88,12 +88,12 @@
8888
"zustand": "^5.0.3"
8989
},
9090
"devDependencies": {
91+
"@ai-sdk/anthropic": "^1.2.12",
92+
"@ai-sdk/google": "^1.2.20",
9193
"@ai-sdk/groq": "^1.2.9",
9294
"@ai-sdk/mistral": "^1.2.8",
9395
"@ai-sdk/openai": "^1.3.22",
9496
"@ai-sdk/openai-compatible": "^0.2.14",
95-
"@ai-sdk/anthropic": "^1.2.12",
96-
"@ai-sdk/google": "^1.2.20",
9797
"@mswjs/interceptors": "^0.37.5",
9898
"@types/diff": "^6.0.0",
9999
"@types/json-diff": "^1.0.3",

packages/xl-multi-column/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"dependencies": {
5454
"@blocknote/core": "0.35.0",
5555
"@blocknote/react": "0.35.0",
56-
"@tiptap/core": "^2.12.0",
56+
"@tiptap/core": "^2.26.1",
5757
"prosemirror-model": "^1.25.1",
5858
"prosemirror-state": "^1.4.3",
5959
"prosemirror-tables": "^1.3.7",

playground/src/examples.gen.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@
399399
"pathFromRoot": "examples/03-ui-components",
400400
"slug": "ui-components"
401401
},
402-
"readme": "In this example, we add a blue text/background color and code style button to the Formatting Toolbar.\n\n**Try it out:** Select some text to open the Formatting Toolbar, and click one of the new buttons!\n\n**Relevant Docs:**\n\n- [Changing the Formatting Toolbar](/docs/react/components/formatting-toolbar)\n- [Manipulating Inline Content](/docs/reference/editor/manipulating-content)\n- [Editor Setup](/docs/getting-started/editor-setup)"
402+
"readme": "In this example, we add a blue text/background color and code style button to the Formatting Toolbar. We also make sure it only shows up when some text is selected.\n\n**Try it out:** Select some text to open the Formatting Toolbar, and click one of the new buttons!\n\n**Relevant Docs:**\n\n- [Changing the Formatting Toolbar](/docs/react/components/formatting-toolbar)\n- [Manipulating Inline Content](/docs/reference/editor/manipulating-content)\n- [Editor Setup](/docs/getting-started/editor-setup)"
403403
},
404404
{
405405
"projectSlug": "formatting-toolbar-block-type-items",
@@ -749,7 +749,7 @@
749749
"pathFromRoot": "examples/03-ui-components",
750750
"slug": "ui-components"
751751
},
752-
"readme": "In this example, we add a button to the Link Toolbar which opens a browser alert.\n\n**Try it out:** Hover the link open the Link Toolbar, and click the new \"Open Alert\" button!\n\n**Relevant Docs:**\n\n- [Changing the Link Toolbar](/docs/react/components/link-toolbar)\n- [Editor Setup](/docs/getting-started/editor-setup)"
752+
"readme": "In this example, we add a button to the Link Toolbar which opens a browser alert.\n\n**Try it out:** Hover the link open the Link Toolbar, and click the new \"Open Alert\" button!\n\n**Relevant Docs:**\n\n- [Editor Setup](/docs/getting-started/editor-setup)"
753753
},
754754
{
755755
"projectSlug": "advanced-tables-2",
@@ -1546,7 +1546,7 @@
15461546
],
15471547
"pro": true,
15481548
"dependencies": {
1549-
"@tiptap/core": "^2.12.0"
1549+
"@tiptap/core": "^2.26.1"
15501550
} as any
15511551
},
15521552
"title": "TipTap extension (arrow InputRule)",

0 commit comments

Comments
 (0)