@blocknote/core 0.30.1 → 0.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/blocknote.cjs +9 -9
  2. package/dist/blocknote.cjs.map +1 -1
  3. package/dist/blocknote.js +2793 -2213
  4. package/dist/blocknote.js.map +1 -1
  5. package/dist/{en-D4taoCs4.cjs → en-BXVKCwYt.cjs} +2 -2
  6. package/dist/en-BXVKCwYt.cjs.map +1 -0
  7. package/dist/{en-B7ycW7c8.js → en-qGo6sk9V.js} +2 -3
  8. package/dist/en-qGo6sk9V.js.map +1 -0
  9. package/dist/locales.cjs +1 -1
  10. package/dist/locales.cjs.map +1 -1
  11. package/dist/locales.js +20 -39
  12. package/dist/locales.js.map +1 -1
  13. package/dist/style.css +1 -1
  14. package/dist/tsconfig.tsbuildinfo +1 -1
  15. package/dist/webpack-stats.json +1 -1
  16. package/package.json +5 -6
  17. package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts +2 -3
  18. package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts +1 -1
  19. package/src/api/blockManipulation/commands/updateBlock/__snapshots__/updateBlock.test.ts.snap +2816 -0
  20. package/src/api/blockManipulation/commands/updateBlock/updateBlock.test.ts +158 -0
  21. package/src/api/blockManipulation/commands/updateBlock/updateBlock.ts +87 -17
  22. package/src/api/blockManipulation/selections/selection.ts +48 -1
  23. package/src/api/blockManipulation/selections/{textCursorPosition/textCursorPosition.ts → textCursorPosition.ts} +7 -7
  24. package/src/api/getBlockInfoFromPos.ts +1 -1
  25. package/src/api/nodeConversions/blockToNode.ts +5 -2
  26. package/src/api/nodeConversions/nodeToBlock.ts +203 -8
  27. package/src/api/pmUtil.ts +3 -3
  28. package/src/blocks/CodeBlockContent/CodeBlockContent.ts +6 -6
  29. package/src/blocks/FileBlockContent/helpers/render/createAddFileButton.ts +1 -1
  30. package/src/blocks/TableBlockContent/TableBlockContent.ts +32 -2
  31. package/src/editor/Block.css +27 -1
  32. package/src/editor/BlockNoteEditor.test.ts +7 -0
  33. package/src/editor/BlockNoteEditor.ts +124 -39
  34. package/src/editor/BlockNoteExtension.ts +26 -0
  35. package/src/editor/BlockNoteExtensions.ts +28 -12
  36. package/src/editor/BlockNoteTipTapEditor.ts +23 -2
  37. package/src/extensions/Collaboration/CursorPlugin.ts +13 -7
  38. package/src/extensions/Collaboration/ForkYDocPlugin.test.ts +166 -0
  39. package/src/extensions/Collaboration/ForkYDocPlugin.ts +174 -0
  40. package/src/extensions/Collaboration/SyncPlugin.ts +7 -4
  41. package/src/extensions/Collaboration/UndoPlugin.ts +7 -4
  42. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor-forked.json +30 -0
  43. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor.json +30 -0
  44. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-forked.html +1 -0
  45. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap.html +1 -0
  46. package/src/extensions/Comments/CommentsPlugin.ts +79 -70
  47. package/src/extensions/FilePanel/FilePanelPlugin.ts +54 -49
  48. package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +60 -26
  49. package/src/extensions/LinkToolbar/LinkToolbarPlugin.ts +26 -21
  50. package/src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.ts +49 -42
  51. package/src/extensions/Placeholder/PlaceholderPlugin.ts +115 -108
  52. package/src/extensions/PreviousBlockType/PreviousBlockTypePlugin.ts +183 -170
  53. package/src/extensions/ShowSelection/ShowSelectionPlugin.ts +26 -19
  54. package/src/extensions/SideMenu/SideMenuPlugin.ts +23 -18
  55. package/src/extensions/SuggestionMenu/SuggestionPlugin.ts +172 -168
  56. package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +4 -4
  57. package/src/extensions/Suggestions/SuggestionMarks.ts +175 -0
  58. package/src/extensions/TableHandles/TableHandlesPlugin.ts +157 -150
  59. package/src/i18n/locales/ar.ts +0 -1
  60. package/src/i18n/locales/de.ts +0 -1
  61. package/src/i18n/locales/en.ts +0 -1
  62. package/src/i18n/locales/es.ts +0 -1
  63. package/src/i18n/locales/fr.ts +0 -1
  64. package/src/i18n/locales/hr.ts +0 -1
  65. package/src/i18n/locales/is.ts +0 -1
  66. package/src/i18n/locales/it.ts +0 -1
  67. package/src/i18n/locales/ja.ts +0 -1
  68. package/src/i18n/locales/ko.ts +0 -1
  69. package/src/i18n/locales/nl.ts +0 -1
  70. package/src/i18n/locales/no.ts +0 -1
  71. package/src/i18n/locales/pl.ts +0 -1
  72. package/src/i18n/locales/pt.ts +0 -1
  73. package/src/i18n/locales/ru.ts +0 -1
  74. package/src/i18n/locales/sk.ts +0 -1
  75. package/src/i18n/locales/uk.ts +0 -1
  76. package/src/i18n/locales/vi.ts +0 -1
  77. package/src/i18n/locales/zh-tw.ts +0 -1
  78. package/src/i18n/locales/zh.ts +0 -1
  79. package/src/index.ts +18 -8
  80. package/src/pm-nodes/BlockContainer.ts +1 -1
  81. package/src/pm-nodes/BlockGroup.ts +1 -1
  82. package/src/pm-nodes/Doc.ts +1 -0
  83. package/types/src/api/blockManipulation/commands/insertBlocks/insertBlocks.d.ts +1 -1
  84. package/types/src/api/blockManipulation/commands/updateBlock/updateBlock.d.ts +3 -1
  85. package/types/src/api/blockManipulation/selections/selection.d.ts +10 -0
  86. package/types/src/api/blockManipulation/selections/{textCursorPosition/textCursorPosition.d.ts → textCursorPosition.d.ts} +2 -2
  87. package/types/src/api/nodeConversions/nodeToBlock.d.ts +39 -2
  88. package/types/src/api/pmUtil.d.ts +3 -3
  89. package/types/src/blocks/TableBlockContent/TableBlockContent.d.ts +9 -1
  90. package/types/src/editor/BlockNoteEditor.d.ts +62 -10
  91. package/types/src/editor/BlockNoteExtension.d.ts +9 -0
  92. package/types/src/editor/BlockNoteExtensions.d.ts +2 -2
  93. package/types/src/editor/BlockNoteTipTapEditor.d.ts +2 -2
  94. package/types/src/extensions/Collaboration/CursorPlugin.d.ts +3 -3
  95. package/types/src/extensions/Collaboration/ForkYDocPlugin.d.ts +41 -0
  96. package/types/src/extensions/Collaboration/SyncPlugin.d.ts +3 -3
  97. package/types/src/extensions/Collaboration/UndoPlugin.d.ts +3 -3
  98. package/types/src/extensions/Comments/CommentsPlugin.d.ts +3 -4
  99. package/types/src/extensions/FilePanel/FilePanelPlugin.d.ts +4 -4
  100. package/types/src/extensions/FormattingToolbar/FormattingToolbarPlugin.d.ts +6 -5
  101. package/types/src/extensions/LinkToolbar/LinkToolbarPlugin.d.ts +4 -4
  102. package/types/src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.d.ts +3 -3
  103. package/types/src/extensions/Placeholder/PlaceholderPlugin.d.ts +3 -3
  104. package/types/src/extensions/PreviousBlockType/PreviousBlockTypePlugin.d.ts +3 -3
  105. package/types/src/extensions/ShowSelection/ShowSelectionPlugin.d.ts +3 -3
  106. package/types/src/extensions/SideMenu/SideMenuPlugin.d.ts +4 -4
  107. package/types/src/extensions/SuggestionMenu/SuggestionPlugin.d.ts +3 -4
  108. package/types/src/extensions/Suggestions/SuggestionMarks.d.ts +4 -0
  109. package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +6 -6
  110. package/types/src/i18n/locales/en.d.ts +0 -1
  111. package/types/src/i18n/locales/sk.d.ts +0 -1
  112. package/types/src/index.d.ts +15 -8
  113. package/dist/en-B7ycW7c8.js.map +0 -1
  114. package/dist/en-D4taoCs4.cjs.map +0 -1
  115. package/src/api/blockManipulation/selections/__snapshots__/selection.test.ts.snap +0 -844
  116. package/src/api/blockManipulation/selections/selection.test.ts +0 -72
  117. package/src/api/blockManipulation/selections/textCursorPosition/__snapshots__/textCursorPosition.test.ts.snap +0 -316
  118. package/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.test.ts +0 -74
  119. package/types/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.test.d.ts +0 -1
  120. /package/types/src/{api/blockManipulation/selections/selection.test.d.ts → extensions/Collaboration/ForkYDocPlugin.test.d.ts} +0 -0
@@ -6722,6 +6722,2822 @@ exports[`Test updateBlock > Update no content to table content 2`] = `
6722
6722
  ]
6723
6723
  `;
6724
6724
 
6725
+ exports[`Test updateBlock > Update partial (offset start + end) 1`] = `
6726
+ [
6727
+ {
6728
+ "children": [],
6729
+ "content": [
6730
+ {
6731
+ "styles": {},
6732
+ "text": "Paragraph 0",
6733
+ "type": "text",
6734
+ },
6735
+ ],
6736
+ "id": "paragraph-0",
6737
+ "props": {
6738
+ "backgroundColor": "default",
6739
+ "textAlignment": "left",
6740
+ "textColor": "default",
6741
+ },
6742
+ "type": "paragraph",
6743
+ },
6744
+ {
6745
+ "children": [],
6746
+ "content": [
6747
+ {
6748
+ "styles": {},
6749
+ "text": "Paragraph 1",
6750
+ "type": "text",
6751
+ },
6752
+ ],
6753
+ "id": "paragraph-1",
6754
+ "props": {
6755
+ "backgroundColor": "default",
6756
+ "textAlignment": "left",
6757
+ "textColor": "default",
6758
+ },
6759
+ "type": "paragraph",
6760
+ },
6761
+ {
6762
+ "children": [
6763
+ {
6764
+ "children": [
6765
+ {
6766
+ "children": [],
6767
+ "content": [
6768
+ {
6769
+ "styles": {},
6770
+ "text": "Double Nested Paragraph 0",
6771
+ "type": "text",
6772
+ },
6773
+ ],
6774
+ "id": "double-nested-paragraph-0",
6775
+ "props": {
6776
+ "backgroundColor": "default",
6777
+ "textAlignment": "left",
6778
+ "textColor": "default",
6779
+ },
6780
+ "type": "paragraph",
6781
+ },
6782
+ ],
6783
+ "content": [
6784
+ {
6785
+ "styles": {},
6786
+ "text": "Nested Paragraph 0",
6787
+ "type": "text",
6788
+ },
6789
+ ],
6790
+ "id": "nested-paragraph-0",
6791
+ "props": {
6792
+ "backgroundColor": "default",
6793
+ "textAlignment": "left",
6794
+ "textColor": "default",
6795
+ },
6796
+ "type": "paragraph",
6797
+ },
6798
+ ],
6799
+ "content": [
6800
+ {
6801
+ "styles": {},
6802
+ "text": "Paragraph with children",
6803
+ "type": "text",
6804
+ },
6805
+ ],
6806
+ "id": "paragraph-with-children",
6807
+ "props": {
6808
+ "backgroundColor": "default",
6809
+ "textAlignment": "left",
6810
+ "textColor": "default",
6811
+ },
6812
+ "type": "paragraph",
6813
+ },
6814
+ {
6815
+ "children": [],
6816
+ "content": [
6817
+ {
6818
+ "styles": {},
6819
+ "text": "Paragraph 2",
6820
+ "type": "text",
6821
+ },
6822
+ ],
6823
+ "id": "paragraph-2",
6824
+ "props": {
6825
+ "backgroundColor": "default",
6826
+ "textAlignment": "left",
6827
+ "textColor": "default",
6828
+ },
6829
+ "type": "paragraph",
6830
+ },
6831
+ {
6832
+ "children": [],
6833
+ "content": [
6834
+ {
6835
+ "styles": {},
6836
+ "text": "Paragraph with props",
6837
+ "type": "text",
6838
+ },
6839
+ ],
6840
+ "id": "paragraph-with-props",
6841
+ "props": {
6842
+ "backgroundColor": "default",
6843
+ "textAlignment": "center",
6844
+ "textColor": "red",
6845
+ },
6846
+ "type": "paragraph",
6847
+ },
6848
+ {
6849
+ "children": [],
6850
+ "content": [
6851
+ {
6852
+ "styles": {},
6853
+ "text": "Paragraph 3",
6854
+ "type": "text",
6855
+ },
6856
+ ],
6857
+ "id": "paragraph-3",
6858
+ "props": {
6859
+ "backgroundColor": "default",
6860
+ "textAlignment": "left",
6861
+ "textColor": "default",
6862
+ },
6863
+ "type": "paragraph",
6864
+ },
6865
+ {
6866
+ "children": [],
6867
+ "content": [
6868
+ {
6869
+ "styles": {
6870
+ "bold": true,
6871
+ },
6872
+ "text": "Paragraph",
6873
+ "type": "text",
6874
+ },
6875
+ {
6876
+ "styles": {},
6877
+ "text": " with styled ",
6878
+ "type": "text",
6879
+ },
6880
+ {
6881
+ "styles": {
6882
+ "italic": true,
6883
+ },
6884
+ "text": "content",
6885
+ "type": "text",
6886
+ },
6887
+ ],
6888
+ "id": "paragraph-with-styled-content",
6889
+ "props": {
6890
+ "backgroundColor": "default",
6891
+ "textAlignment": "left",
6892
+ "textColor": "default",
6893
+ },
6894
+ "type": "paragraph",
6895
+ },
6896
+ {
6897
+ "children": [],
6898
+ "content": [
6899
+ {
6900
+ "styles": {},
6901
+ "text": "Paragraph 4",
6902
+ "type": "text",
6903
+ },
6904
+ ],
6905
+ "id": "paragraph-4",
6906
+ "props": {
6907
+ "backgroundColor": "default",
6908
+ "textAlignment": "left",
6909
+ "textColor": "default",
6910
+ },
6911
+ "type": "paragraph",
6912
+ },
6913
+ {
6914
+ "children": [],
6915
+ "content": [
6916
+ {
6917
+ "styles": {},
6918
+ "text": "Heading 1",
6919
+ "type": "text",
6920
+ },
6921
+ ],
6922
+ "id": "heading-0",
6923
+ "props": {
6924
+ "backgroundColor": "default",
6925
+ "level": 1,
6926
+ "textAlignment": "left",
6927
+ "textColor": "default",
6928
+ },
6929
+ "type": "heading",
6930
+ },
6931
+ {
6932
+ "children": [],
6933
+ "content": [
6934
+ {
6935
+ "styles": {},
6936
+ "text": "Paragraph 5",
6937
+ "type": "text",
6938
+ },
6939
+ ],
6940
+ "id": "paragraph-5",
6941
+ "props": {
6942
+ "backgroundColor": "default",
6943
+ "textAlignment": "left",
6944
+ "textColor": "default",
6945
+ },
6946
+ "type": "paragraph",
6947
+ },
6948
+ {
6949
+ "children": [],
6950
+ "content": undefined,
6951
+ "id": "image-0",
6952
+ "props": {
6953
+ "backgroundColor": "default",
6954
+ "caption": "",
6955
+ "name": "",
6956
+ "showPreview": true,
6957
+ "textAlignment": "left",
6958
+ "url": "https://via.placeholder.com/150",
6959
+ },
6960
+ "type": "image",
6961
+ },
6962
+ {
6963
+ "children": [],
6964
+ "content": [
6965
+ {
6966
+ "styles": {},
6967
+ "text": "Paragraph 6",
6968
+ "type": "text",
6969
+ },
6970
+ ],
6971
+ "id": "paragraph-6",
6972
+ "props": {
6973
+ "backgroundColor": "default",
6974
+ "textAlignment": "left",
6975
+ "textColor": "default",
6976
+ },
6977
+ "type": "paragraph",
6978
+ },
6979
+ {
6980
+ "children": [],
6981
+ "content": {
6982
+ "columnWidths": [
6983
+ undefined,
6984
+ undefined,
6985
+ undefined,
6986
+ ],
6987
+ "headerCols": undefined,
6988
+ "headerRows": undefined,
6989
+ "rows": [
6990
+ {
6991
+ "cells": [
6992
+ {
6993
+ "content": [
6994
+ {
6995
+ "styles": {},
6996
+ "text": "Cell 1",
6997
+ "type": "text",
6998
+ },
6999
+ ],
7000
+ "props": {
7001
+ "backgroundColor": "default",
7002
+ "colspan": 1,
7003
+ "rowspan": 1,
7004
+ "textAlignment": "left",
7005
+ "textColor": "default",
7006
+ },
7007
+ "type": "tableCell",
7008
+ },
7009
+ {
7010
+ "content": [
7011
+ {
7012
+ "styles": {},
7013
+ "text": "Cell 2",
7014
+ "type": "text",
7015
+ },
7016
+ ],
7017
+ "props": {
7018
+ "backgroundColor": "default",
7019
+ "colspan": 1,
7020
+ "rowspan": 1,
7021
+ "textAlignment": "left",
7022
+ "textColor": "default",
7023
+ },
7024
+ "type": "tableCell",
7025
+ },
7026
+ {
7027
+ "content": [
7028
+ {
7029
+ "styles": {},
7030
+ "text": "Cell 3",
7031
+ "type": "text",
7032
+ },
7033
+ ],
7034
+ "props": {
7035
+ "backgroundColor": "default",
7036
+ "colspan": 1,
7037
+ "rowspan": 1,
7038
+ "textAlignment": "left",
7039
+ "textColor": "default",
7040
+ },
7041
+ "type": "tableCell",
7042
+ },
7043
+ ],
7044
+ },
7045
+ {
7046
+ "cells": [
7047
+ {
7048
+ "content": [
7049
+ {
7050
+ "styles": {},
7051
+ "text": "Cell 4",
7052
+ "type": "text",
7053
+ },
7054
+ ],
7055
+ "props": {
7056
+ "backgroundColor": "default",
7057
+ "colspan": 1,
7058
+ "rowspan": 1,
7059
+ "textAlignment": "left",
7060
+ "textColor": "default",
7061
+ },
7062
+ "type": "tableCell",
7063
+ },
7064
+ {
7065
+ "content": [
7066
+ {
7067
+ "styles": {},
7068
+ "text": "Cell 5",
7069
+ "type": "text",
7070
+ },
7071
+ ],
7072
+ "props": {
7073
+ "backgroundColor": "default",
7074
+ "colspan": 1,
7075
+ "rowspan": 1,
7076
+ "textAlignment": "left",
7077
+ "textColor": "default",
7078
+ },
7079
+ "type": "tableCell",
7080
+ },
7081
+ {
7082
+ "content": [
7083
+ {
7084
+ "styles": {},
7085
+ "text": "Cell 6",
7086
+ "type": "text",
7087
+ },
7088
+ ],
7089
+ "props": {
7090
+ "backgroundColor": "default",
7091
+ "colspan": 1,
7092
+ "rowspan": 1,
7093
+ "textAlignment": "left",
7094
+ "textColor": "default",
7095
+ },
7096
+ "type": "tableCell",
7097
+ },
7098
+ ],
7099
+ },
7100
+ {
7101
+ "cells": [
7102
+ {
7103
+ "content": [
7104
+ {
7105
+ "styles": {},
7106
+ "text": "Cell 7",
7107
+ "type": "text",
7108
+ },
7109
+ ],
7110
+ "props": {
7111
+ "backgroundColor": "default",
7112
+ "colspan": 1,
7113
+ "rowspan": 1,
7114
+ "textAlignment": "left",
7115
+ "textColor": "default",
7116
+ },
7117
+ "type": "tableCell",
7118
+ },
7119
+ {
7120
+ "content": [
7121
+ {
7122
+ "styles": {},
7123
+ "text": "Cell 8",
7124
+ "type": "text",
7125
+ },
7126
+ ],
7127
+ "props": {
7128
+ "backgroundColor": "default",
7129
+ "colspan": 1,
7130
+ "rowspan": 1,
7131
+ "textAlignment": "left",
7132
+ "textColor": "default",
7133
+ },
7134
+ "type": "tableCell",
7135
+ },
7136
+ {
7137
+ "content": [
7138
+ {
7139
+ "styles": {},
7140
+ "text": "Cell 9",
7141
+ "type": "text",
7142
+ },
7143
+ ],
7144
+ "props": {
7145
+ "backgroundColor": "default",
7146
+ "colspan": 1,
7147
+ "rowspan": 1,
7148
+ "textAlignment": "left",
7149
+ "textColor": "default",
7150
+ },
7151
+ "type": "tableCell",
7152
+ },
7153
+ ],
7154
+ },
7155
+ ],
7156
+ "type": "tableContent",
7157
+ },
7158
+ "id": "table-0",
7159
+ "props": {
7160
+ "textColor": "default",
7161
+ },
7162
+ "type": "table",
7163
+ },
7164
+ {
7165
+ "children": [],
7166
+ "content": [
7167
+ {
7168
+ "styles": {},
7169
+ "text": "Paragraph 7",
7170
+ "type": "text",
7171
+ },
7172
+ ],
7173
+ "id": "paragraph-7",
7174
+ "props": {
7175
+ "backgroundColor": "default",
7176
+ "textAlignment": "left",
7177
+ "textColor": "default",
7178
+ },
7179
+ "type": "paragraph",
7180
+ },
7181
+ {
7182
+ "children": [],
7183
+ "content": [],
7184
+ "id": "empty-paragraph",
7185
+ "props": {
7186
+ "backgroundColor": "default",
7187
+ "textAlignment": "left",
7188
+ "textColor": "default",
7189
+ },
7190
+ "type": "paragraph",
7191
+ },
7192
+ {
7193
+ "children": [],
7194
+ "content": [
7195
+ {
7196
+ "styles": {},
7197
+ "text": "Paragraph 8",
7198
+ "type": "text",
7199
+ },
7200
+ ],
7201
+ "id": "paragraph-8",
7202
+ "props": {
7203
+ "backgroundColor": "default",
7204
+ "textAlignment": "left",
7205
+ "textColor": "default",
7206
+ },
7207
+ "type": "paragraph",
7208
+ },
7209
+ {
7210
+ "children": [
7211
+ {
7212
+ "children": [
7213
+ {
7214
+ "children": [],
7215
+ "content": [
7216
+ {
7217
+ "styles": {},
7218
+ "text": "Double Nested Paragraph 1",
7219
+ "type": "text",
7220
+ },
7221
+ ],
7222
+ "id": "double-nested-paragraph-1",
7223
+ "props": {
7224
+ "backgroundColor": "default",
7225
+ "textAlignment": "left",
7226
+ "textColor": "default",
7227
+ },
7228
+ "type": "paragraph",
7229
+ },
7230
+ ],
7231
+ "content": [
7232
+ {
7233
+ "styles": {},
7234
+ "text": "Nested Paragraph 1",
7235
+ "type": "text",
7236
+ },
7237
+ ],
7238
+ "id": "nested-paragraph-1",
7239
+ "props": {
7240
+ "backgroundColor": "default",
7241
+ "textAlignment": "left",
7242
+ "textColor": "default",
7243
+ },
7244
+ "type": "paragraph",
7245
+ },
7246
+ ],
7247
+ "content": [
7248
+ {
7249
+ "styles": {
7250
+ "bold": true,
7251
+ },
7252
+ "text": "Heading",
7253
+ "type": "text",
7254
+ },
7255
+ {
7256
+ "styles": {},
7257
+ "text": " without styles and with styled ",
7258
+ "type": "text",
7259
+ },
7260
+ {
7261
+ "styles": {
7262
+ "italic": true,
7263
+ },
7264
+ "text": "content",
7265
+ "type": "text",
7266
+ },
7267
+ ],
7268
+ "id": "heading-with-everything",
7269
+ "props": {
7270
+ "backgroundColor": "red",
7271
+ "level": 2,
7272
+ "textAlignment": "center",
7273
+ "textColor": "red",
7274
+ },
7275
+ "type": "heading",
7276
+ },
7277
+ {
7278
+ "children": [],
7279
+ "content": [],
7280
+ "id": "trailing-paragraph",
7281
+ "props": {
7282
+ "backgroundColor": "default",
7283
+ "textAlignment": "left",
7284
+ "textColor": "default",
7285
+ },
7286
+ "type": "paragraph",
7287
+ },
7288
+ ]
7289
+ `;
7290
+
7291
+ exports[`Test updateBlock > Update partial (offset start) 1`] = `
7292
+ [
7293
+ {
7294
+ "children": [],
7295
+ "content": [
7296
+ {
7297
+ "styles": {},
7298
+ "text": "Paragraph 0",
7299
+ "type": "text",
7300
+ },
7301
+ ],
7302
+ "id": "paragraph-0",
7303
+ "props": {
7304
+ "backgroundColor": "default",
7305
+ "textAlignment": "left",
7306
+ "textColor": "default",
7307
+ },
7308
+ "type": "paragraph",
7309
+ },
7310
+ {
7311
+ "children": [],
7312
+ "content": [
7313
+ {
7314
+ "styles": {},
7315
+ "text": "Paragraph 1",
7316
+ "type": "text",
7317
+ },
7318
+ ],
7319
+ "id": "paragraph-1",
7320
+ "props": {
7321
+ "backgroundColor": "default",
7322
+ "textAlignment": "left",
7323
+ "textColor": "default",
7324
+ },
7325
+ "type": "paragraph",
7326
+ },
7327
+ {
7328
+ "children": [
7329
+ {
7330
+ "children": [
7331
+ {
7332
+ "children": [],
7333
+ "content": [
7334
+ {
7335
+ "styles": {},
7336
+ "text": "Double Nested Paragraph 0",
7337
+ "type": "text",
7338
+ },
7339
+ ],
7340
+ "id": "double-nested-paragraph-0",
7341
+ "props": {
7342
+ "backgroundColor": "default",
7343
+ "textAlignment": "left",
7344
+ "textColor": "default",
7345
+ },
7346
+ "type": "paragraph",
7347
+ },
7348
+ ],
7349
+ "content": [
7350
+ {
7351
+ "styles": {},
7352
+ "text": "Nested Paragraph 0",
7353
+ "type": "text",
7354
+ },
7355
+ ],
7356
+ "id": "nested-paragraph-0",
7357
+ "props": {
7358
+ "backgroundColor": "default",
7359
+ "textAlignment": "left",
7360
+ "textColor": "default",
7361
+ },
7362
+ "type": "paragraph",
7363
+ },
7364
+ ],
7365
+ "content": [
7366
+ {
7367
+ "styles": {},
7368
+ "text": "Paragraph with children",
7369
+ "type": "text",
7370
+ },
7371
+ ],
7372
+ "id": "paragraph-with-children",
7373
+ "props": {
7374
+ "backgroundColor": "default",
7375
+ "textAlignment": "left",
7376
+ "textColor": "default",
7377
+ },
7378
+ "type": "paragraph",
7379
+ },
7380
+ {
7381
+ "children": [],
7382
+ "content": [
7383
+ {
7384
+ "styles": {},
7385
+ "text": "Paragraph 2",
7386
+ "type": "text",
7387
+ },
7388
+ ],
7389
+ "id": "paragraph-2",
7390
+ "props": {
7391
+ "backgroundColor": "default",
7392
+ "textAlignment": "left",
7393
+ "textColor": "default",
7394
+ },
7395
+ "type": "paragraph",
7396
+ },
7397
+ {
7398
+ "children": [],
7399
+ "content": [
7400
+ {
7401
+ "styles": {},
7402
+ "text": "Paragraph with props",
7403
+ "type": "text",
7404
+ },
7405
+ ],
7406
+ "id": "paragraph-with-props",
7407
+ "props": {
7408
+ "backgroundColor": "default",
7409
+ "textAlignment": "center",
7410
+ "textColor": "red",
7411
+ },
7412
+ "type": "paragraph",
7413
+ },
7414
+ {
7415
+ "children": [],
7416
+ "content": [
7417
+ {
7418
+ "styles": {},
7419
+ "text": "Paragraph 3",
7420
+ "type": "text",
7421
+ },
7422
+ ],
7423
+ "id": "paragraph-3",
7424
+ "props": {
7425
+ "backgroundColor": "default",
7426
+ "textAlignment": "left",
7427
+ "textColor": "default",
7428
+ },
7429
+ "type": "paragraph",
7430
+ },
7431
+ {
7432
+ "children": [],
7433
+ "content": [
7434
+ {
7435
+ "styles": {
7436
+ "bold": true,
7437
+ },
7438
+ "text": "Paragraph",
7439
+ "type": "text",
7440
+ },
7441
+ {
7442
+ "styles": {},
7443
+ "text": " with styled ",
7444
+ "type": "text",
7445
+ },
7446
+ {
7447
+ "styles": {
7448
+ "italic": true,
7449
+ },
7450
+ "text": "content",
7451
+ "type": "text",
7452
+ },
7453
+ ],
7454
+ "id": "paragraph-with-styled-content",
7455
+ "props": {
7456
+ "backgroundColor": "default",
7457
+ "textAlignment": "left",
7458
+ "textColor": "default",
7459
+ },
7460
+ "type": "paragraph",
7461
+ },
7462
+ {
7463
+ "children": [],
7464
+ "content": [
7465
+ {
7466
+ "styles": {},
7467
+ "text": "Paragraph 4",
7468
+ "type": "text",
7469
+ },
7470
+ ],
7471
+ "id": "paragraph-4",
7472
+ "props": {
7473
+ "backgroundColor": "default",
7474
+ "textAlignment": "left",
7475
+ "textColor": "default",
7476
+ },
7477
+ "type": "paragraph",
7478
+ },
7479
+ {
7480
+ "children": [],
7481
+ "content": [
7482
+ {
7483
+ "styles": {},
7484
+ "text": "Heading 1",
7485
+ "type": "text",
7486
+ },
7487
+ ],
7488
+ "id": "heading-0",
7489
+ "props": {
7490
+ "backgroundColor": "default",
7491
+ "level": 1,
7492
+ "textAlignment": "left",
7493
+ "textColor": "default",
7494
+ },
7495
+ "type": "heading",
7496
+ },
7497
+ {
7498
+ "children": [],
7499
+ "content": [
7500
+ {
7501
+ "styles": {},
7502
+ "text": "Paragraph 5",
7503
+ "type": "text",
7504
+ },
7505
+ ],
7506
+ "id": "paragraph-5",
7507
+ "props": {
7508
+ "backgroundColor": "default",
7509
+ "textAlignment": "left",
7510
+ "textColor": "default",
7511
+ },
7512
+ "type": "paragraph",
7513
+ },
7514
+ {
7515
+ "children": [],
7516
+ "content": undefined,
7517
+ "id": "image-0",
7518
+ "props": {
7519
+ "backgroundColor": "default",
7520
+ "caption": "",
7521
+ "name": "",
7522
+ "showPreview": true,
7523
+ "textAlignment": "left",
7524
+ "url": "https://via.placeholder.com/150",
7525
+ },
7526
+ "type": "image",
7527
+ },
7528
+ {
7529
+ "children": [],
7530
+ "content": [
7531
+ {
7532
+ "styles": {},
7533
+ "text": "Paragraph 6",
7534
+ "type": "text",
7535
+ },
7536
+ ],
7537
+ "id": "paragraph-6",
7538
+ "props": {
7539
+ "backgroundColor": "default",
7540
+ "textAlignment": "left",
7541
+ "textColor": "default",
7542
+ },
7543
+ "type": "paragraph",
7544
+ },
7545
+ {
7546
+ "children": [],
7547
+ "content": {
7548
+ "columnWidths": [
7549
+ undefined,
7550
+ undefined,
7551
+ undefined,
7552
+ ],
7553
+ "headerCols": undefined,
7554
+ "headerRows": undefined,
7555
+ "rows": [
7556
+ {
7557
+ "cells": [
7558
+ {
7559
+ "content": [
7560
+ {
7561
+ "styles": {},
7562
+ "text": "Cell 1",
7563
+ "type": "text",
7564
+ },
7565
+ ],
7566
+ "props": {
7567
+ "backgroundColor": "default",
7568
+ "colspan": 1,
7569
+ "rowspan": 1,
7570
+ "textAlignment": "left",
7571
+ "textColor": "default",
7572
+ },
7573
+ "type": "tableCell",
7574
+ },
7575
+ {
7576
+ "content": [
7577
+ {
7578
+ "styles": {},
7579
+ "text": "Cell 2",
7580
+ "type": "text",
7581
+ },
7582
+ ],
7583
+ "props": {
7584
+ "backgroundColor": "default",
7585
+ "colspan": 1,
7586
+ "rowspan": 1,
7587
+ "textAlignment": "left",
7588
+ "textColor": "default",
7589
+ },
7590
+ "type": "tableCell",
7591
+ },
7592
+ {
7593
+ "content": [
7594
+ {
7595
+ "styles": {},
7596
+ "text": "Cell 3",
7597
+ "type": "text",
7598
+ },
7599
+ ],
7600
+ "props": {
7601
+ "backgroundColor": "default",
7602
+ "colspan": 1,
7603
+ "rowspan": 1,
7604
+ "textAlignment": "left",
7605
+ "textColor": "default",
7606
+ },
7607
+ "type": "tableCell",
7608
+ },
7609
+ ],
7610
+ },
7611
+ {
7612
+ "cells": [
7613
+ {
7614
+ "content": [
7615
+ {
7616
+ "styles": {},
7617
+ "text": "Cell 4",
7618
+ "type": "text",
7619
+ },
7620
+ ],
7621
+ "props": {
7622
+ "backgroundColor": "default",
7623
+ "colspan": 1,
7624
+ "rowspan": 1,
7625
+ "textAlignment": "left",
7626
+ "textColor": "default",
7627
+ },
7628
+ "type": "tableCell",
7629
+ },
7630
+ {
7631
+ "content": [
7632
+ {
7633
+ "styles": {},
7634
+ "text": "Cell 5",
7635
+ "type": "text",
7636
+ },
7637
+ ],
7638
+ "props": {
7639
+ "backgroundColor": "default",
7640
+ "colspan": 1,
7641
+ "rowspan": 1,
7642
+ "textAlignment": "left",
7643
+ "textColor": "default",
7644
+ },
7645
+ "type": "tableCell",
7646
+ },
7647
+ {
7648
+ "content": [
7649
+ {
7650
+ "styles": {},
7651
+ "text": "Cell 6",
7652
+ "type": "text",
7653
+ },
7654
+ ],
7655
+ "props": {
7656
+ "backgroundColor": "default",
7657
+ "colspan": 1,
7658
+ "rowspan": 1,
7659
+ "textAlignment": "left",
7660
+ "textColor": "default",
7661
+ },
7662
+ "type": "tableCell",
7663
+ },
7664
+ ],
7665
+ },
7666
+ {
7667
+ "cells": [
7668
+ {
7669
+ "content": [
7670
+ {
7671
+ "styles": {},
7672
+ "text": "Cell 7",
7673
+ "type": "text",
7674
+ },
7675
+ ],
7676
+ "props": {
7677
+ "backgroundColor": "default",
7678
+ "colspan": 1,
7679
+ "rowspan": 1,
7680
+ "textAlignment": "left",
7681
+ "textColor": "default",
7682
+ },
7683
+ "type": "tableCell",
7684
+ },
7685
+ {
7686
+ "content": [
7687
+ {
7688
+ "styles": {},
7689
+ "text": "Cell 8",
7690
+ "type": "text",
7691
+ },
7692
+ ],
7693
+ "props": {
7694
+ "backgroundColor": "default",
7695
+ "colspan": 1,
7696
+ "rowspan": 1,
7697
+ "textAlignment": "left",
7698
+ "textColor": "default",
7699
+ },
7700
+ "type": "tableCell",
7701
+ },
7702
+ {
7703
+ "content": [
7704
+ {
7705
+ "styles": {},
7706
+ "text": "Cell 9",
7707
+ "type": "text",
7708
+ },
7709
+ ],
7710
+ "props": {
7711
+ "backgroundColor": "default",
7712
+ "colspan": 1,
7713
+ "rowspan": 1,
7714
+ "textAlignment": "left",
7715
+ "textColor": "default",
7716
+ },
7717
+ "type": "tableCell",
7718
+ },
7719
+ ],
7720
+ },
7721
+ ],
7722
+ "type": "tableContent",
7723
+ },
7724
+ "id": "table-0",
7725
+ "props": {
7726
+ "textColor": "default",
7727
+ },
7728
+ "type": "table",
7729
+ },
7730
+ {
7731
+ "children": [],
7732
+ "content": [
7733
+ {
7734
+ "styles": {},
7735
+ "text": "Paragraph 7",
7736
+ "type": "text",
7737
+ },
7738
+ ],
7739
+ "id": "paragraph-7",
7740
+ "props": {
7741
+ "backgroundColor": "default",
7742
+ "textAlignment": "left",
7743
+ "textColor": "default",
7744
+ },
7745
+ "type": "paragraph",
7746
+ },
7747
+ {
7748
+ "children": [],
7749
+ "content": [],
7750
+ "id": "empty-paragraph",
7751
+ "props": {
7752
+ "backgroundColor": "default",
7753
+ "textAlignment": "left",
7754
+ "textColor": "default",
7755
+ },
7756
+ "type": "paragraph",
7757
+ },
7758
+ {
7759
+ "children": [],
7760
+ "content": [
7761
+ {
7762
+ "styles": {},
7763
+ "text": "Paragraph 8",
7764
+ "type": "text",
7765
+ },
7766
+ ],
7767
+ "id": "paragraph-8",
7768
+ "props": {
7769
+ "backgroundColor": "default",
7770
+ "textAlignment": "left",
7771
+ "textColor": "default",
7772
+ },
7773
+ "type": "paragraph",
7774
+ },
7775
+ {
7776
+ "children": [
7777
+ {
7778
+ "children": [
7779
+ {
7780
+ "children": [],
7781
+ "content": [
7782
+ {
7783
+ "styles": {},
7784
+ "text": "Double Nested Paragraph 1",
7785
+ "type": "text",
7786
+ },
7787
+ ],
7788
+ "id": "double-nested-paragraph-1",
7789
+ "props": {
7790
+ "backgroundColor": "default",
7791
+ "textAlignment": "left",
7792
+ "textColor": "default",
7793
+ },
7794
+ "type": "paragraph",
7795
+ },
7796
+ ],
7797
+ "content": [
7798
+ {
7799
+ "styles": {},
7800
+ "text": "Nested Paragraph 1",
7801
+ "type": "text",
7802
+ },
7803
+ ],
7804
+ "id": "nested-paragraph-1",
7805
+ "props": {
7806
+ "backgroundColor": "default",
7807
+ "textAlignment": "left",
7808
+ "textColor": "default",
7809
+ },
7810
+ "type": "paragraph",
7811
+ },
7812
+ ],
7813
+ "content": [
7814
+ {
7815
+ "styles": {
7816
+ "bold": true,
7817
+ },
7818
+ "text": "Heading",
7819
+ "type": "text",
7820
+ },
7821
+ {
7822
+ "styles": {},
7823
+ "text": " without styles",
7824
+ "type": "text",
7825
+ },
7826
+ ],
7827
+ "id": "heading-with-everything",
7828
+ "props": {
7829
+ "backgroundColor": "red",
7830
+ "level": 2,
7831
+ "textAlignment": "center",
7832
+ "textColor": "red",
7833
+ },
7834
+ "type": "heading",
7835
+ },
7836
+ {
7837
+ "children": [],
7838
+ "content": [],
7839
+ "id": "trailing-paragraph",
7840
+ "props": {
7841
+ "backgroundColor": "default",
7842
+ "textAlignment": "left",
7843
+ "textColor": "default",
7844
+ },
7845
+ "type": "paragraph",
7846
+ },
7847
+ ]
7848
+ `;
7849
+
7850
+ exports[`Test updateBlock > Update partial (props + offset end) 1`] = `
7851
+ [
7852
+ {
7853
+ "children": [],
7854
+ "content": [
7855
+ {
7856
+ "styles": {},
7857
+ "text": "Paragraph 0",
7858
+ "type": "text",
7859
+ },
7860
+ ],
7861
+ "id": "paragraph-0",
7862
+ "props": {
7863
+ "backgroundColor": "default",
7864
+ "textAlignment": "left",
7865
+ "textColor": "default",
7866
+ },
7867
+ "type": "paragraph",
7868
+ },
7869
+ {
7870
+ "children": [],
7871
+ "content": [
7872
+ {
7873
+ "styles": {},
7874
+ "text": "Paragraph 1",
7875
+ "type": "text",
7876
+ },
7877
+ ],
7878
+ "id": "paragraph-1",
7879
+ "props": {
7880
+ "backgroundColor": "default",
7881
+ "textAlignment": "left",
7882
+ "textColor": "default",
7883
+ },
7884
+ "type": "paragraph",
7885
+ },
7886
+ {
7887
+ "children": [
7888
+ {
7889
+ "children": [
7890
+ {
7891
+ "children": [],
7892
+ "content": [
7893
+ {
7894
+ "styles": {},
7895
+ "text": "Double Nested Paragraph 0",
7896
+ "type": "text",
7897
+ },
7898
+ ],
7899
+ "id": "double-nested-paragraph-0",
7900
+ "props": {
7901
+ "backgroundColor": "default",
7902
+ "textAlignment": "left",
7903
+ "textColor": "default",
7904
+ },
7905
+ "type": "paragraph",
7906
+ },
7907
+ ],
7908
+ "content": [
7909
+ {
7910
+ "styles": {},
7911
+ "text": "Nested Paragraph 0",
7912
+ "type": "text",
7913
+ },
7914
+ ],
7915
+ "id": "nested-paragraph-0",
7916
+ "props": {
7917
+ "backgroundColor": "default",
7918
+ "textAlignment": "left",
7919
+ "textColor": "default",
7920
+ },
7921
+ "type": "paragraph",
7922
+ },
7923
+ ],
7924
+ "content": [
7925
+ {
7926
+ "styles": {},
7927
+ "text": "Paragraph with children",
7928
+ "type": "text",
7929
+ },
7930
+ ],
7931
+ "id": "paragraph-with-children",
7932
+ "props": {
7933
+ "backgroundColor": "default",
7934
+ "textAlignment": "left",
7935
+ "textColor": "default",
7936
+ },
7937
+ "type": "paragraph",
7938
+ },
7939
+ {
7940
+ "children": [],
7941
+ "content": [
7942
+ {
7943
+ "styles": {},
7944
+ "text": "Paragraph 2",
7945
+ "type": "text",
7946
+ },
7947
+ ],
7948
+ "id": "paragraph-2",
7949
+ "props": {
7950
+ "backgroundColor": "default",
7951
+ "textAlignment": "left",
7952
+ "textColor": "default",
7953
+ },
7954
+ "type": "paragraph",
7955
+ },
7956
+ {
7957
+ "children": [],
7958
+ "content": [
7959
+ {
7960
+ "styles": {},
7961
+ "text": "Paragraph with props",
7962
+ "type": "text",
7963
+ },
7964
+ ],
7965
+ "id": "paragraph-with-props",
7966
+ "props": {
7967
+ "backgroundColor": "default",
7968
+ "textAlignment": "center",
7969
+ "textColor": "red",
7970
+ },
7971
+ "type": "paragraph",
7972
+ },
7973
+ {
7974
+ "children": [],
7975
+ "content": [
7976
+ {
7977
+ "styles": {},
7978
+ "text": "Paragraph 3",
7979
+ "type": "text",
7980
+ },
7981
+ ],
7982
+ "id": "paragraph-3",
7983
+ "props": {
7984
+ "backgroundColor": "default",
7985
+ "textAlignment": "left",
7986
+ "textColor": "default",
7987
+ },
7988
+ "type": "paragraph",
7989
+ },
7990
+ {
7991
+ "children": [],
7992
+ "content": [
7993
+ {
7994
+ "styles": {
7995
+ "bold": true,
7996
+ },
7997
+ "text": "Paragraph",
7998
+ "type": "text",
7999
+ },
8000
+ {
8001
+ "styles": {},
8002
+ "text": " with styled ",
8003
+ "type": "text",
8004
+ },
8005
+ {
8006
+ "styles": {
8007
+ "italic": true,
8008
+ },
8009
+ "text": "content",
8010
+ "type": "text",
8011
+ },
8012
+ ],
8013
+ "id": "paragraph-with-styled-content",
8014
+ "props": {
8015
+ "backgroundColor": "default",
8016
+ "textAlignment": "left",
8017
+ "textColor": "default",
8018
+ },
8019
+ "type": "paragraph",
8020
+ },
8021
+ {
8022
+ "children": [],
8023
+ "content": [
8024
+ {
8025
+ "styles": {},
8026
+ "text": "Paragraph 4",
8027
+ "type": "text",
8028
+ },
8029
+ ],
8030
+ "id": "paragraph-4",
8031
+ "props": {
8032
+ "backgroundColor": "default",
8033
+ "textAlignment": "left",
8034
+ "textColor": "default",
8035
+ },
8036
+ "type": "paragraph",
8037
+ },
8038
+ {
8039
+ "children": [],
8040
+ "content": [
8041
+ {
8042
+ "styles": {},
8043
+ "text": "Heading 1",
8044
+ "type": "text",
8045
+ },
8046
+ ],
8047
+ "id": "heading-0",
8048
+ "props": {
8049
+ "backgroundColor": "default",
8050
+ "level": 1,
8051
+ "textAlignment": "left",
8052
+ "textColor": "default",
8053
+ },
8054
+ "type": "heading",
8055
+ },
8056
+ {
8057
+ "children": [],
8058
+ "content": [
8059
+ {
8060
+ "styles": {},
8061
+ "text": "Paragraph 5",
8062
+ "type": "text",
8063
+ },
8064
+ ],
8065
+ "id": "paragraph-5",
8066
+ "props": {
8067
+ "backgroundColor": "default",
8068
+ "textAlignment": "left",
8069
+ "textColor": "default",
8070
+ },
8071
+ "type": "paragraph",
8072
+ },
8073
+ {
8074
+ "children": [],
8075
+ "content": undefined,
8076
+ "id": "image-0",
8077
+ "props": {
8078
+ "backgroundColor": "default",
8079
+ "caption": "",
8080
+ "name": "",
8081
+ "showPreview": true,
8082
+ "textAlignment": "left",
8083
+ "url": "https://via.placeholder.com/150",
8084
+ },
8085
+ "type": "image",
8086
+ },
8087
+ {
8088
+ "children": [],
8089
+ "content": [
8090
+ {
8091
+ "styles": {},
8092
+ "text": "Paragraph 6",
8093
+ "type": "text",
8094
+ },
8095
+ ],
8096
+ "id": "paragraph-6",
8097
+ "props": {
8098
+ "backgroundColor": "default",
8099
+ "textAlignment": "left",
8100
+ "textColor": "default",
8101
+ },
8102
+ "type": "paragraph",
8103
+ },
8104
+ {
8105
+ "children": [],
8106
+ "content": {
8107
+ "columnWidths": [
8108
+ undefined,
8109
+ undefined,
8110
+ undefined,
8111
+ ],
8112
+ "headerCols": undefined,
8113
+ "headerRows": undefined,
8114
+ "rows": [
8115
+ {
8116
+ "cells": [
8117
+ {
8118
+ "content": [
8119
+ {
8120
+ "styles": {},
8121
+ "text": "Cell 1",
8122
+ "type": "text",
8123
+ },
8124
+ ],
8125
+ "props": {
8126
+ "backgroundColor": "default",
8127
+ "colspan": 1,
8128
+ "rowspan": 1,
8129
+ "textAlignment": "left",
8130
+ "textColor": "default",
8131
+ },
8132
+ "type": "tableCell",
8133
+ },
8134
+ {
8135
+ "content": [
8136
+ {
8137
+ "styles": {},
8138
+ "text": "Cell 2",
8139
+ "type": "text",
8140
+ },
8141
+ ],
8142
+ "props": {
8143
+ "backgroundColor": "default",
8144
+ "colspan": 1,
8145
+ "rowspan": 1,
8146
+ "textAlignment": "left",
8147
+ "textColor": "default",
8148
+ },
8149
+ "type": "tableCell",
8150
+ },
8151
+ {
8152
+ "content": [
8153
+ {
8154
+ "styles": {},
8155
+ "text": "Cell 3",
8156
+ "type": "text",
8157
+ },
8158
+ ],
8159
+ "props": {
8160
+ "backgroundColor": "default",
8161
+ "colspan": 1,
8162
+ "rowspan": 1,
8163
+ "textAlignment": "left",
8164
+ "textColor": "default",
8165
+ },
8166
+ "type": "tableCell",
8167
+ },
8168
+ ],
8169
+ },
8170
+ {
8171
+ "cells": [
8172
+ {
8173
+ "content": [
8174
+ {
8175
+ "styles": {},
8176
+ "text": "Cell 4",
8177
+ "type": "text",
8178
+ },
8179
+ ],
8180
+ "props": {
8181
+ "backgroundColor": "default",
8182
+ "colspan": 1,
8183
+ "rowspan": 1,
8184
+ "textAlignment": "left",
8185
+ "textColor": "default",
8186
+ },
8187
+ "type": "tableCell",
8188
+ },
8189
+ {
8190
+ "content": [
8191
+ {
8192
+ "styles": {},
8193
+ "text": "Cell 5",
8194
+ "type": "text",
8195
+ },
8196
+ ],
8197
+ "props": {
8198
+ "backgroundColor": "default",
8199
+ "colspan": 1,
8200
+ "rowspan": 1,
8201
+ "textAlignment": "left",
8202
+ "textColor": "default",
8203
+ },
8204
+ "type": "tableCell",
8205
+ },
8206
+ {
8207
+ "content": [
8208
+ {
8209
+ "styles": {},
8210
+ "text": "Cell 6",
8211
+ "type": "text",
8212
+ },
8213
+ ],
8214
+ "props": {
8215
+ "backgroundColor": "default",
8216
+ "colspan": 1,
8217
+ "rowspan": 1,
8218
+ "textAlignment": "left",
8219
+ "textColor": "default",
8220
+ },
8221
+ "type": "tableCell",
8222
+ },
8223
+ ],
8224
+ },
8225
+ {
8226
+ "cells": [
8227
+ {
8228
+ "content": [
8229
+ {
8230
+ "styles": {},
8231
+ "text": "Cell 7",
8232
+ "type": "text",
8233
+ },
8234
+ ],
8235
+ "props": {
8236
+ "backgroundColor": "default",
8237
+ "colspan": 1,
8238
+ "rowspan": 1,
8239
+ "textAlignment": "left",
8240
+ "textColor": "default",
8241
+ },
8242
+ "type": "tableCell",
8243
+ },
8244
+ {
8245
+ "content": [
8246
+ {
8247
+ "styles": {},
8248
+ "text": "Cell 8",
8249
+ "type": "text",
8250
+ },
8251
+ ],
8252
+ "props": {
8253
+ "backgroundColor": "default",
8254
+ "colspan": 1,
8255
+ "rowspan": 1,
8256
+ "textAlignment": "left",
8257
+ "textColor": "default",
8258
+ },
8259
+ "type": "tableCell",
8260
+ },
8261
+ {
8262
+ "content": [
8263
+ {
8264
+ "styles": {},
8265
+ "text": "Cell 9",
8266
+ "type": "text",
8267
+ },
8268
+ ],
8269
+ "props": {
8270
+ "backgroundColor": "default",
8271
+ "colspan": 1,
8272
+ "rowspan": 1,
8273
+ "textAlignment": "left",
8274
+ "textColor": "default",
8275
+ },
8276
+ "type": "tableCell",
8277
+ },
8278
+ ],
8279
+ },
8280
+ ],
8281
+ "type": "tableContent",
8282
+ },
8283
+ "id": "table-0",
8284
+ "props": {
8285
+ "textColor": "default",
8286
+ },
8287
+ "type": "table",
8288
+ },
8289
+ {
8290
+ "children": [],
8291
+ "content": [
8292
+ {
8293
+ "styles": {},
8294
+ "text": "Paragraph 7",
8295
+ "type": "text",
8296
+ },
8297
+ ],
8298
+ "id": "paragraph-7",
8299
+ "props": {
8300
+ "backgroundColor": "default",
8301
+ "textAlignment": "left",
8302
+ "textColor": "default",
8303
+ },
8304
+ "type": "paragraph",
8305
+ },
8306
+ {
8307
+ "children": [],
8308
+ "content": [],
8309
+ "id": "empty-paragraph",
8310
+ "props": {
8311
+ "backgroundColor": "default",
8312
+ "textAlignment": "left",
8313
+ "textColor": "default",
8314
+ },
8315
+ "type": "paragraph",
8316
+ },
8317
+ {
8318
+ "children": [],
8319
+ "content": [
8320
+ {
8321
+ "styles": {},
8322
+ "text": "Paragraph 8",
8323
+ "type": "text",
8324
+ },
8325
+ ],
8326
+ "id": "paragraph-8",
8327
+ "props": {
8328
+ "backgroundColor": "default",
8329
+ "textAlignment": "left",
8330
+ "textColor": "default",
8331
+ },
8332
+ "type": "paragraph",
8333
+ },
8334
+ {
8335
+ "children": [
8336
+ {
8337
+ "children": [
8338
+ {
8339
+ "children": [],
8340
+ "content": [
8341
+ {
8342
+ "styles": {},
8343
+ "text": "Double Nested Paragraph 1",
8344
+ "type": "text",
8345
+ },
8346
+ ],
8347
+ "id": "double-nested-paragraph-1",
8348
+ "props": {
8349
+ "backgroundColor": "default",
8350
+ "textAlignment": "left",
8351
+ "textColor": "default",
8352
+ },
8353
+ "type": "paragraph",
8354
+ },
8355
+ ],
8356
+ "content": [
8357
+ {
8358
+ "styles": {},
8359
+ "text": "Nested Paragraph 1",
8360
+ "type": "text",
8361
+ },
8362
+ ],
8363
+ "id": "nested-paragraph-1",
8364
+ "props": {
8365
+ "backgroundColor": "default",
8366
+ "textAlignment": "left",
8367
+ "textColor": "default",
8368
+ },
8369
+ "type": "paragraph",
8370
+ },
8371
+ ],
8372
+ "content": [
8373
+ {
8374
+ "styles": {},
8375
+ "text": "Title with styled ",
8376
+ "type": "text",
8377
+ },
8378
+ {
8379
+ "styles": {
8380
+ "italic": true,
8381
+ },
8382
+ "text": "content",
8383
+ "type": "text",
8384
+ },
8385
+ ],
8386
+ "id": "heading-with-everything",
8387
+ "props": {
8388
+ "backgroundColor": "red",
8389
+ "level": 1,
8390
+ "textAlignment": "center",
8391
+ "textColor": "red",
8392
+ },
8393
+ "type": "heading",
8394
+ },
8395
+ {
8396
+ "children": [],
8397
+ "content": [],
8398
+ "id": "trailing-paragraph",
8399
+ "props": {
8400
+ "backgroundColor": "default",
8401
+ "textAlignment": "left",
8402
+ "textColor": "default",
8403
+ },
8404
+ "type": "paragraph",
8405
+ },
8406
+ ]
8407
+ `;
8408
+
8409
+ exports[`Test updateBlock > Update partial (table cell) 1`] = `
8410
+ [
8411
+ {
8412
+ "children": [],
8413
+ "content": [
8414
+ {
8415
+ "styles": {},
8416
+ "text": "Paragraph 0",
8417
+ "type": "text",
8418
+ },
8419
+ ],
8420
+ "id": "paragraph-0",
8421
+ "props": {
8422
+ "backgroundColor": "default",
8423
+ "textAlignment": "left",
8424
+ "textColor": "default",
8425
+ },
8426
+ "type": "paragraph",
8427
+ },
8428
+ {
8429
+ "children": [],
8430
+ "content": [
8431
+ {
8432
+ "styles": {},
8433
+ "text": "Paragraph 1",
8434
+ "type": "text",
8435
+ },
8436
+ ],
8437
+ "id": "paragraph-1",
8438
+ "props": {
8439
+ "backgroundColor": "default",
8440
+ "textAlignment": "left",
8441
+ "textColor": "default",
8442
+ },
8443
+ "type": "paragraph",
8444
+ },
8445
+ {
8446
+ "children": [
8447
+ {
8448
+ "children": [
8449
+ {
8450
+ "children": [],
8451
+ "content": [
8452
+ {
8453
+ "styles": {},
8454
+ "text": "Double Nested Paragraph 0",
8455
+ "type": "text",
8456
+ },
8457
+ ],
8458
+ "id": "double-nested-paragraph-0",
8459
+ "props": {
8460
+ "backgroundColor": "default",
8461
+ "textAlignment": "left",
8462
+ "textColor": "default",
8463
+ },
8464
+ "type": "paragraph",
8465
+ },
8466
+ ],
8467
+ "content": [
8468
+ {
8469
+ "styles": {},
8470
+ "text": "Nested Paragraph 0",
8471
+ "type": "text",
8472
+ },
8473
+ ],
8474
+ "id": "nested-paragraph-0",
8475
+ "props": {
8476
+ "backgroundColor": "default",
8477
+ "textAlignment": "left",
8478
+ "textColor": "default",
8479
+ },
8480
+ "type": "paragraph",
8481
+ },
8482
+ ],
8483
+ "content": [
8484
+ {
8485
+ "styles": {},
8486
+ "text": "Paragraph with children",
8487
+ "type": "text",
8488
+ },
8489
+ ],
8490
+ "id": "paragraph-with-children",
8491
+ "props": {
8492
+ "backgroundColor": "default",
8493
+ "textAlignment": "left",
8494
+ "textColor": "default",
8495
+ },
8496
+ "type": "paragraph",
8497
+ },
8498
+ {
8499
+ "children": [],
8500
+ "content": [
8501
+ {
8502
+ "styles": {},
8503
+ "text": "Paragraph 2",
8504
+ "type": "text",
8505
+ },
8506
+ ],
8507
+ "id": "paragraph-2",
8508
+ "props": {
8509
+ "backgroundColor": "default",
8510
+ "textAlignment": "left",
8511
+ "textColor": "default",
8512
+ },
8513
+ "type": "paragraph",
8514
+ },
8515
+ {
8516
+ "children": [],
8517
+ "content": [
8518
+ {
8519
+ "styles": {},
8520
+ "text": "Paragraph with props",
8521
+ "type": "text",
8522
+ },
8523
+ ],
8524
+ "id": "paragraph-with-props",
8525
+ "props": {
8526
+ "backgroundColor": "default",
8527
+ "textAlignment": "center",
8528
+ "textColor": "red",
8529
+ },
8530
+ "type": "paragraph",
8531
+ },
8532
+ {
8533
+ "children": [],
8534
+ "content": [
8535
+ {
8536
+ "styles": {},
8537
+ "text": "Paragraph 3",
8538
+ "type": "text",
8539
+ },
8540
+ ],
8541
+ "id": "paragraph-3",
8542
+ "props": {
8543
+ "backgroundColor": "default",
8544
+ "textAlignment": "left",
8545
+ "textColor": "default",
8546
+ },
8547
+ "type": "paragraph",
8548
+ },
8549
+ {
8550
+ "children": [],
8551
+ "content": [
8552
+ {
8553
+ "styles": {
8554
+ "bold": true,
8555
+ },
8556
+ "text": "Paragraph",
8557
+ "type": "text",
8558
+ },
8559
+ {
8560
+ "styles": {},
8561
+ "text": " with styled ",
8562
+ "type": "text",
8563
+ },
8564
+ {
8565
+ "styles": {
8566
+ "italic": true,
8567
+ },
8568
+ "text": "content",
8569
+ "type": "text",
8570
+ },
8571
+ ],
8572
+ "id": "paragraph-with-styled-content",
8573
+ "props": {
8574
+ "backgroundColor": "default",
8575
+ "textAlignment": "left",
8576
+ "textColor": "default",
8577
+ },
8578
+ "type": "paragraph",
8579
+ },
8580
+ {
8581
+ "children": [],
8582
+ "content": [
8583
+ {
8584
+ "styles": {},
8585
+ "text": "Paragraph 4",
8586
+ "type": "text",
8587
+ },
8588
+ ],
8589
+ "id": "paragraph-4",
8590
+ "props": {
8591
+ "backgroundColor": "default",
8592
+ "textAlignment": "left",
8593
+ "textColor": "default",
8594
+ },
8595
+ "type": "paragraph",
8596
+ },
8597
+ {
8598
+ "children": [],
8599
+ "content": [
8600
+ {
8601
+ "styles": {},
8602
+ "text": "Heading 1",
8603
+ "type": "text",
8604
+ },
8605
+ ],
8606
+ "id": "heading-0",
8607
+ "props": {
8608
+ "backgroundColor": "default",
8609
+ "level": 1,
8610
+ "textAlignment": "left",
8611
+ "textColor": "default",
8612
+ },
8613
+ "type": "heading",
8614
+ },
8615
+ {
8616
+ "children": [],
8617
+ "content": [
8618
+ {
8619
+ "styles": {},
8620
+ "text": "Paragraph 5",
8621
+ "type": "text",
8622
+ },
8623
+ ],
8624
+ "id": "paragraph-5",
8625
+ "props": {
8626
+ "backgroundColor": "default",
8627
+ "textAlignment": "left",
8628
+ "textColor": "default",
8629
+ },
8630
+ "type": "paragraph",
8631
+ },
8632
+ {
8633
+ "children": [],
8634
+ "content": undefined,
8635
+ "id": "image-0",
8636
+ "props": {
8637
+ "backgroundColor": "default",
8638
+ "caption": "",
8639
+ "name": "",
8640
+ "showPreview": true,
8641
+ "textAlignment": "left",
8642
+ "url": "https://via.placeholder.com/150",
8643
+ },
8644
+ "type": "image",
8645
+ },
8646
+ {
8647
+ "children": [],
8648
+ "content": [
8649
+ {
8650
+ "styles": {},
8651
+ "text": "Paragraph 6",
8652
+ "type": "text",
8653
+ },
8654
+ ],
8655
+ "id": "paragraph-6",
8656
+ "props": {
8657
+ "backgroundColor": "default",
8658
+ "textAlignment": "left",
8659
+ "textColor": "default",
8660
+ },
8661
+ "type": "paragraph",
8662
+ },
8663
+ {
8664
+ "children": [],
8665
+ "content": {
8666
+ "columnWidths": [
8667
+ undefined,
8668
+ undefined,
8669
+ undefined,
8670
+ ],
8671
+ "headerCols": undefined,
8672
+ "headerRows": undefined,
8673
+ "rows": [
8674
+ {
8675
+ "cells": [
8676
+ {
8677
+ "content": [
8678
+ {
8679
+ "styles": {},
8680
+ "text": "updated cell 1",
8681
+ "type": "text",
8682
+ },
8683
+ ],
8684
+ "props": {
8685
+ "backgroundColor": "default",
8686
+ "colspan": 1,
8687
+ "rowspan": 1,
8688
+ "textAlignment": "left",
8689
+ "textColor": "default",
8690
+ },
8691
+ "type": "tableCell",
8692
+ },
8693
+ {
8694
+ "content": [
8695
+ {
8696
+ "styles": {},
8697
+ "text": "Cell 2",
8698
+ "type": "text",
8699
+ },
8700
+ ],
8701
+ "props": {
8702
+ "backgroundColor": "default",
8703
+ "colspan": 1,
8704
+ "rowspan": 1,
8705
+ "textAlignment": "left",
8706
+ "textColor": "default",
8707
+ },
8708
+ "type": "tableCell",
8709
+ },
8710
+ {
8711
+ "content": [
8712
+ {
8713
+ "styles": {},
8714
+ "text": "Cell 3",
8715
+ "type": "text",
8716
+ },
8717
+ ],
8718
+ "props": {
8719
+ "backgroundColor": "default",
8720
+ "colspan": 1,
8721
+ "rowspan": 1,
8722
+ "textAlignment": "left",
8723
+ "textColor": "default",
8724
+ },
8725
+ "type": "tableCell",
8726
+ },
8727
+ ],
8728
+ },
8729
+ {
8730
+ "cells": [
8731
+ {
8732
+ "content": [
8733
+ {
8734
+ "styles": {},
8735
+ "text": "Cell 4",
8736
+ "type": "text",
8737
+ },
8738
+ ],
8739
+ "props": {
8740
+ "backgroundColor": "default",
8741
+ "colspan": 1,
8742
+ "rowspan": 1,
8743
+ "textAlignment": "left",
8744
+ "textColor": "default",
8745
+ },
8746
+ "type": "tableCell",
8747
+ },
8748
+ {
8749
+ "content": [
8750
+ {
8751
+ "styles": {},
8752
+ "text": "Cell 5",
8753
+ "type": "text",
8754
+ },
8755
+ ],
8756
+ "props": {
8757
+ "backgroundColor": "default",
8758
+ "colspan": 1,
8759
+ "rowspan": 1,
8760
+ "textAlignment": "left",
8761
+ "textColor": "default",
8762
+ },
8763
+ "type": "tableCell",
8764
+ },
8765
+ {
8766
+ "content": [
8767
+ {
8768
+ "styles": {},
8769
+ "text": "Cell 6",
8770
+ "type": "text",
8771
+ },
8772
+ ],
8773
+ "props": {
8774
+ "backgroundColor": "default",
8775
+ "colspan": 1,
8776
+ "rowspan": 1,
8777
+ "textAlignment": "left",
8778
+ "textColor": "default",
8779
+ },
8780
+ "type": "tableCell",
8781
+ },
8782
+ ],
8783
+ },
8784
+ {
8785
+ "cells": [
8786
+ {
8787
+ "content": [
8788
+ {
8789
+ "styles": {},
8790
+ "text": "Cell 7",
8791
+ "type": "text",
8792
+ },
8793
+ ],
8794
+ "props": {
8795
+ "backgroundColor": "default",
8796
+ "colspan": 1,
8797
+ "rowspan": 1,
8798
+ "textAlignment": "left",
8799
+ "textColor": "default",
8800
+ },
8801
+ "type": "tableCell",
8802
+ },
8803
+ {
8804
+ "content": [
8805
+ {
8806
+ "styles": {},
8807
+ "text": "Cell 8",
8808
+ "type": "text",
8809
+ },
8810
+ ],
8811
+ "props": {
8812
+ "backgroundColor": "default",
8813
+ "colspan": 1,
8814
+ "rowspan": 1,
8815
+ "textAlignment": "left",
8816
+ "textColor": "default",
8817
+ },
8818
+ "type": "tableCell",
8819
+ },
8820
+ {
8821
+ "content": [
8822
+ {
8823
+ "styles": {},
8824
+ "text": "Cell 9",
8825
+ "type": "text",
8826
+ },
8827
+ ],
8828
+ "props": {
8829
+ "backgroundColor": "default",
8830
+ "colspan": 1,
8831
+ "rowspan": 1,
8832
+ "textAlignment": "left",
8833
+ "textColor": "default",
8834
+ },
8835
+ "type": "tableCell",
8836
+ },
8837
+ ],
8838
+ },
8839
+ ],
8840
+ "type": "tableContent",
8841
+ },
8842
+ "id": "table-0",
8843
+ "props": {
8844
+ "textColor": "default",
8845
+ },
8846
+ "type": "table",
8847
+ },
8848
+ {
8849
+ "children": [],
8850
+ "content": [
8851
+ {
8852
+ "styles": {},
8853
+ "text": "Paragraph 7",
8854
+ "type": "text",
8855
+ },
8856
+ ],
8857
+ "id": "paragraph-7",
8858
+ "props": {
8859
+ "backgroundColor": "default",
8860
+ "textAlignment": "left",
8861
+ "textColor": "default",
8862
+ },
8863
+ "type": "paragraph",
8864
+ },
8865
+ {
8866
+ "children": [],
8867
+ "content": [],
8868
+ "id": "empty-paragraph",
8869
+ "props": {
8870
+ "backgroundColor": "default",
8871
+ "textAlignment": "left",
8872
+ "textColor": "default",
8873
+ },
8874
+ "type": "paragraph",
8875
+ },
8876
+ {
8877
+ "children": [],
8878
+ "content": [
8879
+ {
8880
+ "styles": {},
8881
+ "text": "Paragraph 8",
8882
+ "type": "text",
8883
+ },
8884
+ ],
8885
+ "id": "paragraph-8",
8886
+ "props": {
8887
+ "backgroundColor": "default",
8888
+ "textAlignment": "left",
8889
+ "textColor": "default",
8890
+ },
8891
+ "type": "paragraph",
8892
+ },
8893
+ {
8894
+ "children": [
8895
+ {
8896
+ "children": [
8897
+ {
8898
+ "children": [],
8899
+ "content": [
8900
+ {
8901
+ "styles": {},
8902
+ "text": "Double Nested Paragraph 1",
8903
+ "type": "text",
8904
+ },
8905
+ ],
8906
+ "id": "double-nested-paragraph-1",
8907
+ "props": {
8908
+ "backgroundColor": "default",
8909
+ "textAlignment": "left",
8910
+ "textColor": "default",
8911
+ },
8912
+ "type": "paragraph",
8913
+ },
8914
+ ],
8915
+ "content": [
8916
+ {
8917
+ "styles": {},
8918
+ "text": "Nested Paragraph 1",
8919
+ "type": "text",
8920
+ },
8921
+ ],
8922
+ "id": "nested-paragraph-1",
8923
+ "props": {
8924
+ "backgroundColor": "default",
8925
+ "textAlignment": "left",
8926
+ "textColor": "default",
8927
+ },
8928
+ "type": "paragraph",
8929
+ },
8930
+ ],
8931
+ "content": [
8932
+ {
8933
+ "styles": {
8934
+ "bold": true,
8935
+ },
8936
+ "text": "Heading",
8937
+ "type": "text",
8938
+ },
8939
+ {
8940
+ "styles": {},
8941
+ "text": " with styled ",
8942
+ "type": "text",
8943
+ },
8944
+ {
8945
+ "styles": {
8946
+ "italic": true,
8947
+ },
8948
+ "text": "content",
8949
+ "type": "text",
8950
+ },
8951
+ ],
8952
+ "id": "heading-with-everything",
8953
+ "props": {
8954
+ "backgroundColor": "red",
8955
+ "level": 2,
8956
+ "textAlignment": "center",
8957
+ "textColor": "red",
8958
+ },
8959
+ "type": "heading",
8960
+ },
8961
+ {
8962
+ "children": [],
8963
+ "content": [],
8964
+ "id": "trailing-paragraph",
8965
+ "props": {
8966
+ "backgroundColor": "default",
8967
+ "textAlignment": "left",
8968
+ "textColor": "default",
8969
+ },
8970
+ "type": "paragraph",
8971
+ },
8972
+ ]
8973
+ `;
8974
+
8975
+ exports[`Test updateBlock > Update partial (table row) 1`] = `
8976
+ [
8977
+ {
8978
+ "children": [],
8979
+ "content": [
8980
+ {
8981
+ "styles": {},
8982
+ "text": "Paragraph 0",
8983
+ "type": "text",
8984
+ },
8985
+ ],
8986
+ "id": "paragraph-0",
8987
+ "props": {
8988
+ "backgroundColor": "default",
8989
+ "textAlignment": "left",
8990
+ "textColor": "default",
8991
+ },
8992
+ "type": "paragraph",
8993
+ },
8994
+ {
8995
+ "children": [],
8996
+ "content": [
8997
+ {
8998
+ "styles": {},
8999
+ "text": "Paragraph 1",
9000
+ "type": "text",
9001
+ },
9002
+ ],
9003
+ "id": "paragraph-1",
9004
+ "props": {
9005
+ "backgroundColor": "default",
9006
+ "textAlignment": "left",
9007
+ "textColor": "default",
9008
+ },
9009
+ "type": "paragraph",
9010
+ },
9011
+ {
9012
+ "children": [
9013
+ {
9014
+ "children": [
9015
+ {
9016
+ "children": [],
9017
+ "content": [
9018
+ {
9019
+ "styles": {},
9020
+ "text": "Double Nested Paragraph 0",
9021
+ "type": "text",
9022
+ },
9023
+ ],
9024
+ "id": "double-nested-paragraph-0",
9025
+ "props": {
9026
+ "backgroundColor": "default",
9027
+ "textAlignment": "left",
9028
+ "textColor": "default",
9029
+ },
9030
+ "type": "paragraph",
9031
+ },
9032
+ ],
9033
+ "content": [
9034
+ {
9035
+ "styles": {},
9036
+ "text": "Nested Paragraph 0",
9037
+ "type": "text",
9038
+ },
9039
+ ],
9040
+ "id": "nested-paragraph-0",
9041
+ "props": {
9042
+ "backgroundColor": "default",
9043
+ "textAlignment": "left",
9044
+ "textColor": "default",
9045
+ },
9046
+ "type": "paragraph",
9047
+ },
9048
+ ],
9049
+ "content": [
9050
+ {
9051
+ "styles": {},
9052
+ "text": "Paragraph with children",
9053
+ "type": "text",
9054
+ },
9055
+ ],
9056
+ "id": "paragraph-with-children",
9057
+ "props": {
9058
+ "backgroundColor": "default",
9059
+ "textAlignment": "left",
9060
+ "textColor": "default",
9061
+ },
9062
+ "type": "paragraph",
9063
+ },
9064
+ {
9065
+ "children": [],
9066
+ "content": [
9067
+ {
9068
+ "styles": {},
9069
+ "text": "Paragraph 2",
9070
+ "type": "text",
9071
+ },
9072
+ ],
9073
+ "id": "paragraph-2",
9074
+ "props": {
9075
+ "backgroundColor": "default",
9076
+ "textAlignment": "left",
9077
+ "textColor": "default",
9078
+ },
9079
+ "type": "paragraph",
9080
+ },
9081
+ {
9082
+ "children": [],
9083
+ "content": [
9084
+ {
9085
+ "styles": {},
9086
+ "text": "Paragraph with props",
9087
+ "type": "text",
9088
+ },
9089
+ ],
9090
+ "id": "paragraph-with-props",
9091
+ "props": {
9092
+ "backgroundColor": "default",
9093
+ "textAlignment": "center",
9094
+ "textColor": "red",
9095
+ },
9096
+ "type": "paragraph",
9097
+ },
9098
+ {
9099
+ "children": [],
9100
+ "content": [
9101
+ {
9102
+ "styles": {},
9103
+ "text": "Paragraph 3",
9104
+ "type": "text",
9105
+ },
9106
+ ],
9107
+ "id": "paragraph-3",
9108
+ "props": {
9109
+ "backgroundColor": "default",
9110
+ "textAlignment": "left",
9111
+ "textColor": "default",
9112
+ },
9113
+ "type": "paragraph",
9114
+ },
9115
+ {
9116
+ "children": [],
9117
+ "content": [
9118
+ {
9119
+ "styles": {
9120
+ "bold": true,
9121
+ },
9122
+ "text": "Paragraph",
9123
+ "type": "text",
9124
+ },
9125
+ {
9126
+ "styles": {},
9127
+ "text": " with styled ",
9128
+ "type": "text",
9129
+ },
9130
+ {
9131
+ "styles": {
9132
+ "italic": true,
9133
+ },
9134
+ "text": "content",
9135
+ "type": "text",
9136
+ },
9137
+ ],
9138
+ "id": "paragraph-with-styled-content",
9139
+ "props": {
9140
+ "backgroundColor": "default",
9141
+ "textAlignment": "left",
9142
+ "textColor": "default",
9143
+ },
9144
+ "type": "paragraph",
9145
+ },
9146
+ {
9147
+ "children": [],
9148
+ "content": [
9149
+ {
9150
+ "styles": {},
9151
+ "text": "Paragraph 4",
9152
+ "type": "text",
9153
+ },
9154
+ ],
9155
+ "id": "paragraph-4",
9156
+ "props": {
9157
+ "backgroundColor": "default",
9158
+ "textAlignment": "left",
9159
+ "textColor": "default",
9160
+ },
9161
+ "type": "paragraph",
9162
+ },
9163
+ {
9164
+ "children": [],
9165
+ "content": [
9166
+ {
9167
+ "styles": {},
9168
+ "text": "Heading 1",
9169
+ "type": "text",
9170
+ },
9171
+ ],
9172
+ "id": "heading-0",
9173
+ "props": {
9174
+ "backgroundColor": "default",
9175
+ "level": 1,
9176
+ "textAlignment": "left",
9177
+ "textColor": "default",
9178
+ },
9179
+ "type": "heading",
9180
+ },
9181
+ {
9182
+ "children": [],
9183
+ "content": [
9184
+ {
9185
+ "styles": {},
9186
+ "text": "Paragraph 5",
9187
+ "type": "text",
9188
+ },
9189
+ ],
9190
+ "id": "paragraph-5",
9191
+ "props": {
9192
+ "backgroundColor": "default",
9193
+ "textAlignment": "left",
9194
+ "textColor": "default",
9195
+ },
9196
+ "type": "paragraph",
9197
+ },
9198
+ {
9199
+ "children": [],
9200
+ "content": undefined,
9201
+ "id": "image-0",
9202
+ "props": {
9203
+ "backgroundColor": "default",
9204
+ "caption": "",
9205
+ "name": "",
9206
+ "showPreview": true,
9207
+ "textAlignment": "left",
9208
+ "url": "https://via.placeholder.com/150",
9209
+ },
9210
+ "type": "image",
9211
+ },
9212
+ {
9213
+ "children": [],
9214
+ "content": [
9215
+ {
9216
+ "styles": {},
9217
+ "text": "Paragraph 6",
9218
+ "type": "text",
9219
+ },
9220
+ ],
9221
+ "id": "paragraph-6",
9222
+ "props": {
9223
+ "backgroundColor": "default",
9224
+ "textAlignment": "left",
9225
+ "textColor": "default",
9226
+ },
9227
+ "type": "paragraph",
9228
+ },
9229
+ {
9230
+ "children": [],
9231
+ "content": {
9232
+ "columnWidths": [
9233
+ undefined,
9234
+ undefined,
9235
+ undefined,
9236
+ ],
9237
+ "headerCols": undefined,
9238
+ "headerRows": undefined,
9239
+ "rows": [
9240
+ {
9241
+ "cells": [
9242
+ {
9243
+ "content": [
9244
+ {
9245
+ "styles": {},
9246
+ "text": "updated cell 1",
9247
+ "type": "text",
9248
+ },
9249
+ ],
9250
+ "props": {
9251
+ "backgroundColor": "default",
9252
+ "colspan": 1,
9253
+ "rowspan": 1,
9254
+ "textAlignment": "left",
9255
+ "textColor": "default",
9256
+ },
9257
+ "type": "tableCell",
9258
+ },
9259
+ {
9260
+ "content": [
9261
+ {
9262
+ "styles": {},
9263
+ "text": "updated cell 2",
9264
+ "type": "text",
9265
+ },
9266
+ ],
9267
+ "props": {
9268
+ "backgroundColor": "default",
9269
+ "colspan": 1,
9270
+ "rowspan": 1,
9271
+ "textAlignment": "left",
9272
+ "textColor": "default",
9273
+ },
9274
+ "type": "tableCell",
9275
+ },
9276
+ {
9277
+ "content": [
9278
+ {
9279
+ "styles": {},
9280
+ "text": "updated cell 3",
9281
+ "type": "text",
9282
+ },
9283
+ ],
9284
+ "props": {
9285
+ "backgroundColor": "default",
9286
+ "colspan": 1,
9287
+ "rowspan": 1,
9288
+ "textAlignment": "left",
9289
+ "textColor": "default",
9290
+ },
9291
+ "type": "tableCell",
9292
+ },
9293
+ ],
9294
+ },
9295
+ {
9296
+ "cells": [
9297
+ {
9298
+ "content": [
9299
+ {
9300
+ "styles": {},
9301
+ "text": "Cell 4",
9302
+ "type": "text",
9303
+ },
9304
+ ],
9305
+ "props": {
9306
+ "backgroundColor": "default",
9307
+ "colspan": 1,
9308
+ "rowspan": 1,
9309
+ "textAlignment": "left",
9310
+ "textColor": "default",
9311
+ },
9312
+ "type": "tableCell",
9313
+ },
9314
+ {
9315
+ "content": [
9316
+ {
9317
+ "styles": {},
9318
+ "text": "Cell 5",
9319
+ "type": "text",
9320
+ },
9321
+ ],
9322
+ "props": {
9323
+ "backgroundColor": "default",
9324
+ "colspan": 1,
9325
+ "rowspan": 1,
9326
+ "textAlignment": "left",
9327
+ "textColor": "default",
9328
+ },
9329
+ "type": "tableCell",
9330
+ },
9331
+ {
9332
+ "content": [
9333
+ {
9334
+ "styles": {},
9335
+ "text": "Cell 6",
9336
+ "type": "text",
9337
+ },
9338
+ ],
9339
+ "props": {
9340
+ "backgroundColor": "default",
9341
+ "colspan": 1,
9342
+ "rowspan": 1,
9343
+ "textAlignment": "left",
9344
+ "textColor": "default",
9345
+ },
9346
+ "type": "tableCell",
9347
+ },
9348
+ ],
9349
+ },
9350
+ {
9351
+ "cells": [
9352
+ {
9353
+ "content": [
9354
+ {
9355
+ "styles": {},
9356
+ "text": "Cell 7",
9357
+ "type": "text",
9358
+ },
9359
+ ],
9360
+ "props": {
9361
+ "backgroundColor": "default",
9362
+ "colspan": 1,
9363
+ "rowspan": 1,
9364
+ "textAlignment": "left",
9365
+ "textColor": "default",
9366
+ },
9367
+ "type": "tableCell",
9368
+ },
9369
+ {
9370
+ "content": [
9371
+ {
9372
+ "styles": {},
9373
+ "text": "Cell 8",
9374
+ "type": "text",
9375
+ },
9376
+ ],
9377
+ "props": {
9378
+ "backgroundColor": "default",
9379
+ "colspan": 1,
9380
+ "rowspan": 1,
9381
+ "textAlignment": "left",
9382
+ "textColor": "default",
9383
+ },
9384
+ "type": "tableCell",
9385
+ },
9386
+ {
9387
+ "content": [
9388
+ {
9389
+ "styles": {},
9390
+ "text": "Cell 9",
9391
+ "type": "text",
9392
+ },
9393
+ ],
9394
+ "props": {
9395
+ "backgroundColor": "default",
9396
+ "colspan": 1,
9397
+ "rowspan": 1,
9398
+ "textAlignment": "left",
9399
+ "textColor": "default",
9400
+ },
9401
+ "type": "tableCell",
9402
+ },
9403
+ ],
9404
+ },
9405
+ ],
9406
+ "type": "tableContent",
9407
+ },
9408
+ "id": "table-0",
9409
+ "props": {
9410
+ "textColor": "default",
9411
+ },
9412
+ "type": "table",
9413
+ },
9414
+ {
9415
+ "children": [],
9416
+ "content": [
9417
+ {
9418
+ "styles": {},
9419
+ "text": "Paragraph 7",
9420
+ "type": "text",
9421
+ },
9422
+ ],
9423
+ "id": "paragraph-7",
9424
+ "props": {
9425
+ "backgroundColor": "default",
9426
+ "textAlignment": "left",
9427
+ "textColor": "default",
9428
+ },
9429
+ "type": "paragraph",
9430
+ },
9431
+ {
9432
+ "children": [],
9433
+ "content": [],
9434
+ "id": "empty-paragraph",
9435
+ "props": {
9436
+ "backgroundColor": "default",
9437
+ "textAlignment": "left",
9438
+ "textColor": "default",
9439
+ },
9440
+ "type": "paragraph",
9441
+ },
9442
+ {
9443
+ "children": [],
9444
+ "content": [
9445
+ {
9446
+ "styles": {},
9447
+ "text": "Paragraph 8",
9448
+ "type": "text",
9449
+ },
9450
+ ],
9451
+ "id": "paragraph-8",
9452
+ "props": {
9453
+ "backgroundColor": "default",
9454
+ "textAlignment": "left",
9455
+ "textColor": "default",
9456
+ },
9457
+ "type": "paragraph",
9458
+ },
9459
+ {
9460
+ "children": [
9461
+ {
9462
+ "children": [
9463
+ {
9464
+ "children": [],
9465
+ "content": [
9466
+ {
9467
+ "styles": {},
9468
+ "text": "Double Nested Paragraph 1",
9469
+ "type": "text",
9470
+ },
9471
+ ],
9472
+ "id": "double-nested-paragraph-1",
9473
+ "props": {
9474
+ "backgroundColor": "default",
9475
+ "textAlignment": "left",
9476
+ "textColor": "default",
9477
+ },
9478
+ "type": "paragraph",
9479
+ },
9480
+ ],
9481
+ "content": [
9482
+ {
9483
+ "styles": {},
9484
+ "text": "Nested Paragraph 1",
9485
+ "type": "text",
9486
+ },
9487
+ ],
9488
+ "id": "nested-paragraph-1",
9489
+ "props": {
9490
+ "backgroundColor": "default",
9491
+ "textAlignment": "left",
9492
+ "textColor": "default",
9493
+ },
9494
+ "type": "paragraph",
9495
+ },
9496
+ ],
9497
+ "content": [
9498
+ {
9499
+ "styles": {
9500
+ "bold": true,
9501
+ },
9502
+ "text": "Heading",
9503
+ "type": "text",
9504
+ },
9505
+ {
9506
+ "styles": {},
9507
+ "text": " with styled ",
9508
+ "type": "text",
9509
+ },
9510
+ {
9511
+ "styles": {
9512
+ "italic": true,
9513
+ },
9514
+ "text": "content",
9515
+ "type": "text",
9516
+ },
9517
+ ],
9518
+ "id": "heading-with-everything",
9519
+ "props": {
9520
+ "backgroundColor": "red",
9521
+ "level": 2,
9522
+ "textAlignment": "center",
9523
+ "textColor": "red",
9524
+ },
9525
+ "type": "heading",
9526
+ },
9527
+ {
9528
+ "children": [],
9529
+ "content": [],
9530
+ "id": "trailing-paragraph",
9531
+ "props": {
9532
+ "backgroundColor": "default",
9533
+ "textAlignment": "left",
9534
+ "textColor": "default",
9535
+ },
9536
+ "type": "paragraph",
9537
+ },
9538
+ ]
9539
+ `;
9540
+
6725
9541
  exports[`Test updateBlock > Update single prop 1`] = `
6726
9542
  {
6727
9543
  "children": [