Skip to content

Commit be20d8b

Browse files
authored
fix: update DOCX snapshots for fresh dependency installs (#3170)
* fix: update DOCX snapshots for fresh dependency installs * fix: align workspace DOCX versions to avoid incompatible document types
1 parent 4120e9d commit be20d8b

8 files changed

Lines changed: 49 additions & 40 deletions

File tree

‎docs/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"better-auth": "~1.4.15",
8282
"better-sqlite3": "^12.6.2",
8383
"class-variance-authority": "^0.7.1",
84-
"docx": "^9.6.1",
84+
"docx": "^9.9.0",
8585
"framer-motion": "^12.26.2",
8686
"fumadocs-core": "16.5.0",
8787
"fumadocs-mdx": "^14.2.6",

‎packages/diagram-block/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"@types/react": "^19.2.3",
8989
"@zip.js/zip.js": "^2.8.8",
9090
"@types/react-dom": "^19.2.3",
91-
"docx": "^9.8.0",
91+
"docx": "^9.9.0",
9292
"react": "^19.2.5",
9393
"react-dom": "^19.2.5",
9494
"rimraf": "^5.0.10",

‎packages/math-block/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"@types/react": "^19.2.3",
9494
"@types/react-dom": "^19.2.3",
9595
"@zip.js/zip.js": "^2.8.8",
96-
"docx": "^9.8.0",
96+
"docx": "^9.9.0",
9797
"mathjax-full": "^3.2.2",
9898
"react": "^19.2.5",
9999
"react-dom": "^19.2.5",

‎packages/xl-docx-exporter/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@blocknote/core": "workspace:^",
6161
"@blocknote/xl-multi-column": "workspace:^",
6262
"buffer": "^6.0.3",
63-
"docx": "^9.8.0",
63+
"docx": "^9.9.0",
6464
"image-meta": "^0.2.2"
6565
},
6666
"devDependencies": {

‎packages/xl-docx-exporter/src/docx/__snapshots__/basic/document.xml‎

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@
414414
</w:tc>
415415
<w:tc>
416416
<w:tcPr>
417+
<w:tcW w:type="dxa" w:w="1800"/>
417418
<w:gridSpan w:val="1"/>
418419
</w:tcPr>
419420
<w:p>
@@ -424,6 +425,7 @@
424425
</w:tc>
425426
<w:tc>
426427
<w:tcPr>
428+
<w:tcW w:type="dxa" w:w="1800"/>
427429
<w:gridSpan w:val="1"/>
428430
</w:tcPr>
429431
<w:p>
@@ -447,6 +449,7 @@
447449
</w:tc>
448450
<w:tc>
449451
<w:tcPr>
452+
<w:tcW w:type="dxa" w:w="1800"/>
450453
<w:gridSpan w:val="1"/>
451454
</w:tcPr>
452455
<w:p>
@@ -457,6 +460,7 @@
457460
</w:tc>
458461
<w:tc>
459462
<w:tcPr>
463+
<w:tcW w:type="dxa" w:w="1800"/>
460464
<w:gridSpan w:val="1"/>
461465
</w:tcPr>
462466
<w:p>
@@ -480,6 +484,7 @@
480484
</w:tc>
481485
<w:tc>
482486
<w:tcPr>
487+
<w:tcW w:type="dxa" w:w="1800"/>
483488
<w:gridSpan w:val="1"/>
484489
</w:tcPr>
485490
<w:p>
@@ -490,6 +495,7 @@
490495
</w:tc>
491496
<w:tc>
492497
<w:tcPr>
498+
<w:tcW w:type="dxa" w:w="1800"/>
493499
<w:gridSpan w:val="1"/>
494500
</w:tcPr>
495501
<w:p>
@@ -520,7 +526,7 @@
520526
</pic:cNvPicPr>
521527
</pic:nvPicPr>
522528
<pic:blipFill>
523-
<a:blip r:embed="rId7" cstate="none"/>
529+
<a:blip r:embed="FAKE-ID" cstate="none"/>
524530
<a:srcRect/>
525531
<a:stretch>
526532
<a:fillRect/>
@@ -573,7 +579,7 @@
573579
</pic:cNvPicPr>
574580
</pic:nvPicPr>
575581
<pic:blipFill>
576-
<a:blip r:embed="rId7" cstate="none"/>
582+
<a:blip r:embed="FAKE-ID" cstate="none"/>
577583
<a:srcRect/>
578584
<a:stretch>
579585
<a:fillRect/>
@@ -725,6 +731,7 @@
725731
</w:trPr>
726732
<w:tc>
727733
<w:tcPr>
734+
<w:tcW w:type="dxa" w:w="1800"/>
728735
<w:gridSpan w:val="1"/>
729736
</w:tcPr>
730737
<w:p>
@@ -741,6 +748,7 @@
741748
</w:tc>
742749
<w:tc>
743750
<w:tcPr>
751+
<w:tcW w:type="dxa" w:w="1800"/>
744752
<w:gridSpan w:val="1"/>
745753
</w:tcPr>
746754
<w:p>
@@ -757,6 +765,7 @@
757765
</w:tc>
758766
<w:tc>
759767
<w:tcPr>
768+
<w:tcW w:type="dxa" w:w="1800"/>
760769
<w:gridSpan w:val="1"/>
761770
</w:tcPr>
762771
<w:p>
@@ -775,6 +784,7 @@
775784
<w:tr>
776785
<w:tc>
777786
<w:tcPr>
787+
<w:tcW w:type="dxa" w:w="1800"/>
778788
<w:gridSpan w:val="1"/>
779789
</w:tcPr>
780790
<w:p>
@@ -785,6 +795,7 @@
785795
</w:tc>
786796
<w:tc>
787797
<w:tcPr>
798+
<w:tcW w:type="dxa" w:w="1800"/>
788799
<w:gridSpan w:val="1"/>
789800
</w:tcPr>
790801
<w:p>
@@ -801,6 +812,7 @@
801812
</w:tc>
802813
<w:tc>
803814
<w:tcPr>
815+
<w:tcW w:type="dxa" w:w="1800"/>
804816
<w:gridSpan w:val="1"/>
805817
</w:tcPr>
806818
<w:p>
@@ -813,6 +825,7 @@
813825
<w:tr>
814826
<w:tc>
815827
<w:tcPr>
828+
<w:tcW w:type="dxa" w:w="1800"/>
816829
<w:gridSpan w:val="1"/>
817830
</w:tcPr>
818831
<w:p>
@@ -823,6 +836,7 @@
823836
</w:tc>
824837
<w:tc>
825838
<w:tcPr>
839+
<w:tcW w:type="dxa" w:w="1800"/>
826840
<w:gridSpan w:val="1"/>
827841
</w:tcPr>
828842
<w:p>
@@ -833,6 +847,7 @@
833847
</w:tc>
834848
<w:tc>
835849
<w:tcPr>
850+
<w:tcW w:type="dxa" w:w="1800"/>
836851
<w:gridSpan w:val="1"/>
837852
</w:tcPr>
838853
<w:p>
@@ -867,6 +882,7 @@
867882
</w:trPr>
868883
<w:tc>
869884
<w:tcPr>
885+
<w:tcW w:type="dxa" w:w="3600"/>
870886
<w:gridSpan w:val="2"/>
871887
</w:tcPr>
872888
<w:p>
@@ -883,6 +899,7 @@
883899
</w:tc>
884900
<w:tc>
885901
<w:tcPr>
902+
<w:tcW w:type="dxa" w:w="1800"/>
886903
<w:gridSpan w:val="1"/>
887904
</w:tcPr>
888905
<w:p>
@@ -904,6 +921,7 @@
904921
</w:trPr>
905922
<w:tc>
906923
<w:tcPr>
924+
<w:tcW w:type="dxa" w:w="1800"/>
907925
<w:gridSpan w:val="1"/>
908926
</w:tcPr>
909927
<w:p>
@@ -920,6 +938,7 @@
920938
</w:tc>
921939
<w:tc>
922940
<w:tcPr>
941+
<w:tcW w:type="dxa" w:w="1800"/>
923942
<w:gridSpan w:val="1"/>
924943
</w:tcPr>
925944
<w:p>
@@ -936,6 +955,7 @@
936955
</w:tc>
937956
<w:tc>
938957
<w:tcPr>
958+
<w:tcW w:type="dxa" w:w="1800"/>
939959
<w:gridSpan w:val="1"/>
940960
</w:tcPr>
941961
<w:p>
@@ -954,6 +974,7 @@
954974
<w:tr>
955975
<w:tc>
956976
<w:tcPr>
977+
<w:tcW w:type="dxa" w:w="1800"/>
957978
<w:gridSpan w:val="1"/>
958979
<w:vMerge w:val="restart"/>
959980
</w:tcPr>
@@ -965,6 +986,7 @@
965986
</w:tc>
966987
<w:tc>
967988
<w:tcPr>
989+
<w:tcW w:type="dxa" w:w="1800"/>
968990
<w:gridSpan w:val="1"/>
969991
</w:tcPr>
970992
<w:p>
@@ -975,6 +997,7 @@
975997
</w:tc>
976998
<w:tc>
977999
<w:tcPr>
1000+
<w:tcW w:type="dxa" w:w="1800"/>
9781001
<w:gridSpan w:val="1"/>
9791002
</w:tcPr>
9801003
<w:p>
@@ -987,13 +1010,15 @@
9871010
<w:tr>
9881011
<w:tc>
9891012
<w:tcPr>
1013+
<w:tcW w:type="dxa" w:w="1800"/>
9901014
<w:gridSpan w:val="1"/>
9911015
<w:vMerge w:val="continue"/>
9921016
</w:tcPr>
9931017
<w:p/>
9941018
</w:tc>
9951019
<w:tc>
9961020
<w:tcPr>
1021+
<w:tcW w:type="dxa" w:w="1800"/>
9971022
<w:gridSpan w:val="1"/>
9981023
</w:tcPr>
9991024
<w:p>
@@ -1004,6 +1029,7 @@
10041029
</w:tc>
10051030
<w:tc>
10061031
<w:tcPr>
1032+
<w:tcW w:type="dxa" w:w="1800"/>
10071033
<w:gridSpan w:val="1"/>
10081034
</w:tcPr>
10091035
<w:p>

‎packages/xl-docx-exporter/src/docx/docxExporter.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,9 @@ function prettify(sourceXml: string) {
422422
// replace random ids like r:id="rIdll8_ocxarmodcwrnsavfb"
423423
ret = ret.replace(/r:id="[a-zA-Z0-9_-]*"/g, 'r:id="FAKE-ID"');
424424

425+
// Image relationship IDs are internal to docx and can change between releases.
426+
ret = ret.replace(/r:embed="[a-zA-Z0-9_-]*"/g, 'r:embed="FAKE-ID"');
427+
425428
// replace random ids like Id="rIdll8_ocxarmodcwrnsavfb"
426429
ret = ret.replace(/ Id="[a-zA-Z0-9_-]*"/g, ' Id="FAKE-ID"');
427430

‎playground/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@y-sweet/react": "^0.6.4",
5656
"ai": "^6.0.5",
5757
"autoprefixer": "10.4.21",
58-
"docx": "^9.5.1",
58+
"docx": "^9.9.0",
5959
"react": "^19.2.5",
6060
"react-dom": "^19.2.5",
6161
"react-icons": "^5.5.0",

‎pnpm-lock.yaml‎

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

0 commit comments

Comments
 (0)