File tree Expand file tree Collapse file tree 3 files changed +28
-8
lines changed
src/features/docs/doc-editor/components Expand file tree Collapse file tree 3 files changed +28
-8
lines changed Original file line number Diff line number Diff line change 4242 "@react-pdf/renderer" : " 4.3.1" ,
4343 "@sentry/nextjs" : " 10.22.0" ,
4444 "@tanstack/react-query" : " 5.90.6" ,
45- "@tiptap/core" : " 3.10.5 " ,
46- "@tiptap/extensions" : " 3.10.5 " ,
45+ "@tiptap/core" : " 3.10.1 " ,
46+ "@tiptap/extensions" : " 3.10.1 " ,
4747 "canvg" : " 4.0.3" ,
4848 "clsx" : " 2.1.1" ,
4949 "cmdk" : " 1.1.1" ,
Original file line number Diff line number Diff line change @@ -89,6 +89,21 @@ const patchedAudioBlock = {
8989 } ,
9090} ;
9191
92+ // Patch the AccessibleImageBlock as well
93+ const patchedImageBlock = ( ) => {
94+ const imageSpec = AccessibleImageBlock ( ) ;
95+ return {
96+ ...imageSpec ,
97+ config : {
98+ ...imageSpec . config ,
99+ propSchema : {
100+ ...imageSpec . config . propSchema ,
101+ previewWidth : { default : 512 , type : 'number' as const } ,
102+ } ,
103+ } ,
104+ } ;
105+ } ;
106+
92107const baseBlockNoteSchema = withPageBreak (
93108 BlockNoteSchema . create ( {
94109 blockSpecs : {
@@ -97,7 +112,7 @@ const baseBlockNoteSchema = withPageBreak(
97112 callout : CalloutBlock ( ) ,
98113 codeBlock : createCodeBlockSpec ( codeBlockOptions ) ,
99114 file : patchedFileBlock ,
100- image : AccessibleImageBlock ( ) ,
115+ image : patchedImageBlock ( ) ,
101116 pdf : PdfBlock ( ) ,
102117 uploadLoader : UploadLoaderBlock ( ) ,
103118 video : patchedVideoBlock ,
Original file line number Diff line number Diff line change 52505250 resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.6.1.tgz#13e09a32d7a8b7060fe38304788ebf4197cd2149"
52515251 integrity sha512-vq7fv0rnt+QTXgPxr5Hjc210p6YKq2kmdziLgnsZGgLJ9e6VAShx1pACLuRjd/AS/sr7phAR58OIIpf0LlmQNw==
52525252
5253- "@tiptap/core@3.10.5", "@tiptap/core@^3.10.2":
5253+ "@tiptap/core@3.10.1":
5254+ version "3.10.1"
5255+ resolved "https://registry.yarnpkg.com/@tiptap/core/-/core-3.10.1.tgz#89fec750db261ee569f64926b3b9f9a509b81ea3"
5256+ integrity sha512-YY/u+RsjLVhcUaIn+wv6vjMx8kldO7SzFFnRu0iuC+QW57VrlqUzqz5PR6CenphwJHuqGM5b3SCr4K2ZPjN8jQ==
5257+
5258+ "@tiptap/core@^3.10.2":
52545259 version "3.10.5"
52555260 resolved "https://registry.yarnpkg.com/@tiptap/core/-/core-3.10.5.tgz#5695b357498c9fd510b1d77df5d889955178e049"
52565261 integrity sha512-JvvgWrQMP+yEhw20Q2+N62k+G8tspko7oLQxBktnN3PLlP67nKb1qOBzcrnEGsaiASjSu25myUmxY+ZpOmP+MQ==
53295334 resolved "https://registry.yarnpkg.com/@tiptap/extensions/-/extensions-3.7.2.tgz#fd2d53e59343505487e9fb6ccad8c53945d5c494"
53305335 integrity sha512-FaToSdU9fhQk2swkaXrAQNgdaE0dwLbUHcvilW5F4xTpQfZ3J535u5U2TUYf+f9KKSV5fTmD4QGNY9qxY7ihTg==
53315336
5332- "@tiptap/extensions@3.10.5 ":
5333- version "3.10.5 "
5334- resolved "https://registry.yarnpkg.com/@tiptap/extensions/-/extensions-3.10.5 .tgz#8e95dbaa9e719332469fc37f67c1c543655c9278 "
5335- integrity sha512-odZ9tXRBOj1PdpoMILBZ1DoTgXb+30jR0HMLtML5E8JqE3sDRSh1PgUAVXKmzRX/IytRabiKnhP4L8ZwrJAFaA ==
5337+ "@tiptap/extensions@3.10.1 ":
5338+ version "3.10.1 "
5339+ resolved "https://registry.yarnpkg.com/@tiptap/extensions/-/extensions-3.10.1 .tgz#7faab67917a779a77ec89f588ad5fb7670b4dbff "
5340+ integrity sha512-tZZ1IGIcch4ezuoid3iPSirh0s2GQuSKY6ceWRJCVeZ2gT2LsN3i10tqfidcYrsmyQRMuM7QUfRmH5HOKJZ73Q ==
53365341
53375342"@tiptap/pm@^3.10.2":
53385343 version "3.10.5"
You can’t perform that action at this time.
0 commit comments