@wordpress/editor 14.41.2-next.v.202603161435.0 → 14.43.0

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 (311) hide show
  1. package/CHANGELOG.md +3 -1
  2. package/build/components/collaborators-overlay/compute-selection.cjs +10 -10
  3. package/build/components/collaborators-overlay/compute-selection.cjs.map +2 -2
  4. package/build/components/collaborators-overlay/cursor-registry.cjs +86 -0
  5. package/build/components/collaborators-overlay/cursor-registry.cjs.map +7 -0
  6. package/build/components/collaborators-overlay/index.cjs +7 -2
  7. package/build/components/collaborators-overlay/index.cjs.map +2 -2
  8. package/build/components/collaborators-overlay/overlay-iframe-styles.cjs +1 -1
  9. package/build/components/collaborators-overlay/overlay-iframe-styles.cjs.map +2 -2
  10. package/build/components/collaborators-overlay/overlay.cjs +42 -1
  11. package/build/components/collaborators-overlay/overlay.cjs.map +2 -2
  12. package/build/components/collaborators-overlay/timing-utils.cjs +46 -0
  13. package/build/components/collaborators-overlay/timing-utils.cjs.map +7 -0
  14. package/build/components/collaborators-overlay/use-render-cursors.cjs +1 -1
  15. package/build/components/collaborators-overlay/use-render-cursors.cjs.map +2 -2
  16. package/build/components/collaborators-presence/index.cjs +14 -4
  17. package/build/components/collaborators-presence/index.cjs.map +2 -2
  18. package/build/components/collaborators-presence/list.cjs +20 -4
  19. package/build/components/collaborators-presence/list.cjs.map +2 -2
  20. package/build/components/post-card-panel/index.cjs +4 -15
  21. package/build/components/post-card-panel/index.cjs.map +2 -2
  22. package/build/components/post-content-information/index.cjs +10 -13
  23. package/build/components/post-content-information/index.cjs.map +2 -2
  24. package/build/components/post-locked-modal/index.cjs +16 -3
  25. package/build/components/post-locked-modal/index.cjs.map +2 -2
  26. package/build/components/post-revisions-panel/index.cjs +164 -0
  27. package/build/components/post-revisions-panel/index.cjs.map +7 -0
  28. package/build/components/post-revisions-preview/block-diff.cjs +39 -11
  29. package/build/components/post-revisions-preview/block-diff.cjs.map +2 -2
  30. package/build/components/post-revisions-preview/diff-markers.cjs +2 -2
  31. package/build/components/post-revisions-preview/diff-markers.cjs.map +2 -2
  32. package/build/components/post-revisions-preview/revisions-canvas.cjs +1 -1
  33. package/build/components/post-revisions-preview/revisions-canvas.cjs.map +2 -2
  34. package/build/components/post-revisions-preview/revisions-slider.cjs +24 -5
  35. package/build/components/post-revisions-preview/revisions-slider.cjs.map +2 -2
  36. package/build/components/post-template/block-theme.cjs +7 -4
  37. package/build/components/post-template/block-theme.cjs.map +2 -2
  38. package/build/components/post-template/create-new-template-modal.cjs +39 -46
  39. package/build/components/post-template/create-new-template-modal.cjs.map +2 -2
  40. package/build/components/post-template/hooks.cjs +91 -8
  41. package/build/components/post-template/hooks.cjs.map +2 -2
  42. package/build/components/post-template/panel.cjs +5 -42
  43. package/build/components/post-template/panel.cjs.map +3 -3
  44. package/build/components/post-template/swap-template-button.cjs +31 -20
  45. package/build/components/post-template/swap-template-button.cjs.map +2 -2
  46. package/build/components/preferences-modal/index.cjs +35 -27
  47. package/build/components/preferences-modal/index.cjs.map +2 -2
  48. package/build/components/provider/use-block-editor-settings.cjs +2 -0
  49. package/build/components/provider/use-block-editor-settings.cjs.map +3 -3
  50. package/build/components/revision-block-diff/index.cjs +61 -0
  51. package/build/components/revision-block-diff/index.cjs.map +7 -0
  52. package/build/components/revision-diff-panel/index.cjs +68 -0
  53. package/build/components/revision-diff-panel/index.cjs.map +7 -0
  54. package/build/components/revision-fields-diff/index.cjs +96 -0
  55. package/build/components/revision-fields-diff/index.cjs.map +7 -0
  56. package/build/components/sidebar/dataform-post-summary.cjs +25 -55
  57. package/build/components/sidebar/dataform-post-summary.cjs.map +2 -2
  58. package/build/components/sidebar/index.cjs +30 -23
  59. package/build/components/sidebar/index.cjs.map +3 -3
  60. package/build/components/sidebar/post-revision-summary.cjs +74 -0
  61. package/build/components/sidebar/post-revision-summary.cjs.map +7 -0
  62. package/build/components/sidebar/post-summary.cjs +35 -42
  63. package/build/components/sidebar/post-summary.cjs.map +3 -3
  64. package/build/components/style-book/index.cjs +4 -3
  65. package/build/components/style-book/index.cjs.map +2 -2
  66. package/build/components/{sync-connection-modal → sync-connection-error-modal}/index.cjs +89 -80
  67. package/build/components/sync-connection-error-modal/index.cjs.map +7 -0
  68. package/build/components/{sync-connection-modal → sync-connection-error-modal}/use-retry-countdown.cjs +14 -27
  69. package/build/components/sync-connection-error-modal/use-retry-countdown.cjs.map +7 -0
  70. package/build/components/template-actions-panel/block-theme-content.cjs +188 -0
  71. package/build/components/template-actions-panel/block-theme-content.cjs.map +7 -0
  72. package/build/components/template-actions-panel/classic-theme-content.cjs +159 -0
  73. package/build/components/template-actions-panel/classic-theme-content.cjs.map +7 -0
  74. package/build/components/template-actions-panel/index.cjs +59 -0
  75. package/build/components/template-actions-panel/index.cjs.map +7 -0
  76. package/build/components/visual-editor/index.cjs +2 -2
  77. package/build/components/visual-editor/index.cjs.map +2 -2
  78. package/build/dataviews/store/private-actions.cjs +2 -0
  79. package/build/dataviews/store/private-actions.cjs.map +2 -2
  80. package/build/store/actions.cjs +1 -3
  81. package/build/store/actions.cjs.map +2 -2
  82. package/build/store/private-actions.cjs +21 -2
  83. package/build/store/private-actions.cjs.map +2 -2
  84. package/build/store/private-selectors.cjs +40 -15
  85. package/build/store/private-selectors.cjs.map +2 -2
  86. package/build/utils/media-finalize/index.cjs +43 -0
  87. package/build/utils/media-finalize/index.cjs.map +7 -0
  88. package/build/utils/sync-error-messages.cjs +29 -16
  89. package/build/utils/sync-error-messages.cjs.map +3 -3
  90. package/build-module/components/collaborators-overlay/compute-selection.mjs +10 -10
  91. package/build-module/components/collaborators-overlay/compute-selection.mjs.map +2 -2
  92. package/build-module/components/collaborators-overlay/cursor-registry.mjs +61 -0
  93. package/build-module/components/collaborators-overlay/cursor-registry.mjs.map +7 -0
  94. package/build-module/components/collaborators-overlay/index.mjs +7 -2
  95. package/build-module/components/collaborators-overlay/index.mjs.map +2 -2
  96. package/build-module/components/collaborators-overlay/overlay-iframe-styles.mjs +1 -1
  97. package/build-module/components/collaborators-overlay/overlay-iframe-styles.mjs.map +2 -2
  98. package/build-module/components/collaborators-overlay/overlay.mjs +43 -2
  99. package/build-module/components/collaborators-overlay/overlay.mjs.map +2 -2
  100. package/build-module/components/collaborators-overlay/timing-utils.mjs +21 -0
  101. package/build-module/components/collaborators-overlay/timing-utils.mjs.map +7 -0
  102. package/build-module/components/collaborators-overlay/use-render-cursors.mjs +1 -1
  103. package/build-module/components/collaborators-overlay/use-render-cursors.mjs.map +2 -2
  104. package/build-module/components/collaborators-presence/index.mjs +14 -4
  105. package/build-module/components/collaborators-presence/index.mjs.map +2 -2
  106. package/build-module/components/collaborators-presence/list.mjs +20 -4
  107. package/build-module/components/collaborators-presence/list.mjs.map +2 -2
  108. package/build-module/components/post-card-panel/index.mjs +6 -17
  109. package/build-module/components/post-card-panel/index.mjs.map +2 -2
  110. package/build-module/components/post-content-information/index.mjs +6 -13
  111. package/build-module/components/post-content-information/index.mjs.map +2 -2
  112. package/build-module/components/post-locked-modal/index.mjs +16 -3
  113. package/build-module/components/post-locked-modal/index.mjs.map +2 -2
  114. package/build-module/components/post-revisions-panel/index.mjs +139 -0
  115. package/build-module/components/post-revisions-panel/index.mjs.map +7 -0
  116. package/build-module/components/post-revisions-preview/block-diff.mjs +39 -11
  117. package/build-module/components/post-revisions-preview/block-diff.mjs.map +2 -2
  118. package/build-module/components/post-revisions-preview/diff-markers.mjs +2 -2
  119. package/build-module/components/post-revisions-preview/diff-markers.mjs.map +2 -2
  120. package/build-module/components/post-revisions-preview/revisions-canvas.mjs +1 -1
  121. package/build-module/components/post-revisions-preview/revisions-canvas.mjs.map +2 -2
  122. package/build-module/components/post-revisions-preview/revisions-slider.mjs +24 -5
  123. package/build-module/components/post-revisions-preview/revisions-slider.mjs.map +2 -2
  124. package/build-module/components/post-template/block-theme.mjs +7 -4
  125. package/build-module/components/post-template/block-theme.mjs.map +2 -2
  126. package/build-module/components/post-template/create-new-template-modal.mjs +39 -46
  127. package/build-module/components/post-template/create-new-template-modal.mjs.map +2 -2
  128. package/build-module/components/post-template/hooks.mjs +90 -8
  129. package/build-module/components/post-template/hooks.mjs.map +2 -2
  130. package/build-module/components/post-template/panel.mjs +5 -42
  131. package/build-module/components/post-template/panel.mjs.map +2 -2
  132. package/build-module/components/post-template/swap-template-button.mjs +27 -20
  133. package/build-module/components/post-template/swap-template-button.mjs.map +2 -2
  134. package/build-module/components/preferences-modal/index.mjs +35 -27
  135. package/build-module/components/preferences-modal/index.mjs.map +2 -2
  136. package/build-module/components/provider/use-block-editor-settings.mjs +2 -0
  137. package/build-module/components/provider/use-block-editor-settings.mjs.map +2 -2
  138. package/build-module/components/revision-block-diff/index.mjs +30 -0
  139. package/build-module/components/revision-block-diff/index.mjs.map +7 -0
  140. package/build-module/components/revision-diff-panel/index.mjs +37 -0
  141. package/build-module/components/revision-diff-panel/index.mjs.map +7 -0
  142. package/build-module/components/revision-fields-diff/index.mjs +65 -0
  143. package/build-module/components/revision-fields-diff/index.mjs.map +7 -0
  144. package/build-module/components/sidebar/dataform-post-summary.mjs +25 -55
  145. package/build-module/components/sidebar/dataform-post-summary.mjs.map +2 -2
  146. package/build-module/components/sidebar/index.mjs +30 -23
  147. package/build-module/components/sidebar/index.mjs.map +2 -2
  148. package/build-module/components/sidebar/post-revision-summary.mjs +43 -0
  149. package/build-module/components/sidebar/post-revision-summary.mjs.map +7 -0
  150. package/build-module/components/sidebar/post-summary.mjs +31 -42
  151. package/build-module/components/sidebar/post-summary.mjs.map +2 -2
  152. package/build-module/components/style-book/index.mjs +4 -3
  153. package/build-module/components/style-book/index.mjs.map +2 -2
  154. package/build-module/components/sync-connection-error-modal/index.mjs +177 -0
  155. package/build-module/components/sync-connection-error-modal/index.mjs.map +7 -0
  156. package/build-module/components/sync-connection-error-modal/use-retry-countdown.mjs +36 -0
  157. package/build-module/components/sync-connection-error-modal/use-retry-countdown.mjs.map +7 -0
  158. package/build-module/components/template-actions-panel/block-theme-content.mjs +167 -0
  159. package/build-module/components/template-actions-panel/block-theme-content.mjs.map +7 -0
  160. package/build-module/components/template-actions-panel/classic-theme-content.mjs +138 -0
  161. package/build-module/components/template-actions-panel/classic-theme-content.mjs.map +7 -0
  162. package/build-module/components/template-actions-panel/index.mjs +28 -0
  163. package/build-module/components/template-actions-panel/index.mjs.map +7 -0
  164. package/build-module/components/visual-editor/index.mjs +2 -2
  165. package/build-module/components/visual-editor/index.mjs.map +2 -2
  166. package/build-module/dataviews/store/private-actions.mjs +5 -1
  167. package/build-module/dataviews/store/private-actions.mjs.map +2 -2
  168. package/build-module/store/actions.mjs +1 -3
  169. package/build-module/store/actions.mjs.map +2 -2
  170. package/build-module/store/private-actions.mjs +21 -2
  171. package/build-module/store/private-actions.mjs.map +2 -2
  172. package/build-module/store/private-selectors.mjs +40 -15
  173. package/build-module/store/private-selectors.mjs.map +2 -2
  174. package/build-module/utils/media-finalize/index.mjs +12 -0
  175. package/build-module/utils/media-finalize/index.mjs.map +7 -0
  176. package/build-module/utils/sync-error-messages.mjs +24 -16
  177. package/build-module/utils/sync-error-messages.mjs.map +3 -3
  178. package/build-style/style-rtl.css +135 -50
  179. package/build-style/style.css +135 -50
  180. package/build-types/components/collaborators-overlay/cursor-registry.d.ts +36 -0
  181. package/build-types/components/collaborators-overlay/cursor-registry.d.ts.map +1 -0
  182. package/build-types/components/collaborators-overlay/index.d.ts +7 -4
  183. package/build-types/components/collaborators-overlay/index.d.ts.map +1 -1
  184. package/build-types/components/collaborators-overlay/overlay-iframe-styles.d.ts +1 -1
  185. package/build-types/components/collaborators-overlay/overlay-iframe-styles.d.ts.map +1 -1
  186. package/build-types/components/collaborators-overlay/overlay.d.ts +4 -1
  187. package/build-types/components/collaborators-overlay/overlay.d.ts.map +1 -1
  188. package/build-types/components/collaborators-overlay/timing-utils.d.ts +11 -0
  189. package/build-types/components/collaborators-overlay/timing-utils.d.ts.map +1 -0
  190. package/build-types/components/collaborators-presence/index.d.ts.map +1 -1
  191. package/build-types/components/collaborators-presence/list.d.ts +4 -1
  192. package/build-types/components/collaborators-presence/list.d.ts.map +1 -1
  193. package/build-types/components/post-card-panel/index.d.ts.map +1 -1
  194. package/build-types/components/post-content-information/index.d.ts +4 -1
  195. package/build-types/components/post-content-information/index.d.ts.map +1 -1
  196. package/build-types/components/post-locked-modal/index.d.ts +2 -2
  197. package/build-types/components/post-locked-modal/index.d.ts.map +1 -1
  198. package/build-types/components/post-revisions-panel/index.d.ts +2 -0
  199. package/build-types/components/post-revisions-panel/index.d.ts.map +1 -0
  200. package/build-types/components/post-revisions-preview/block-diff.d.ts.map +1 -1
  201. package/build-types/components/post-revisions-preview/revisions-slider.d.ts.map +1 -1
  202. package/build-types/components/post-template/block-theme.d.ts +1 -3
  203. package/build-types/components/post-template/block-theme.d.ts.map +1 -1
  204. package/build-types/components/post-template/create-new-template-modal.d.ts.map +1 -1
  205. package/build-types/components/post-template/hooks.d.ts +2 -1
  206. package/build-types/components/post-template/hooks.d.ts.map +1 -1
  207. package/build-types/components/post-template/panel.d.ts.map +1 -1
  208. package/build-types/components/post-template/swap-template-button.d.ts +4 -0
  209. package/build-types/components/post-template/swap-template-button.d.ts.map +1 -1
  210. package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -1
  211. package/build-types/components/revision-block-diff/index.d.ts +6 -0
  212. package/build-types/components/revision-block-diff/index.d.ts.map +1 -0
  213. package/build-types/components/revision-diff-panel/index.d.ts +14 -0
  214. package/build-types/components/revision-diff-panel/index.d.ts.map +1 -0
  215. package/build-types/components/revision-fields-diff/index.d.ts +6 -0
  216. package/build-types/components/revision-fields-diff/index.d.ts.map +1 -0
  217. package/build-types/components/sidebar/dataform-post-summary.d.ts.map +1 -1
  218. package/build-types/components/sidebar/index.d.ts.map +1 -1
  219. package/build-types/components/sidebar/post-revision-summary.d.ts +2 -0
  220. package/build-types/components/sidebar/post-revision-summary.d.ts.map +1 -0
  221. package/build-types/components/sidebar/post-summary.d.ts +3 -0
  222. package/build-types/components/sidebar/post-summary.d.ts.map +1 -1
  223. package/build-types/components/style-book/index.d.ts +2 -1
  224. package/build-types/components/style-book/index.d.ts.map +1 -1
  225. package/build-types/components/sync-connection-error-modal/index.d.ts +22 -0
  226. package/build-types/components/sync-connection-error-modal/index.d.ts.map +1 -0
  227. package/build-types/components/sync-connection-error-modal/use-retry-countdown.d.ts +11 -0
  228. package/build-types/components/sync-connection-error-modal/use-retry-countdown.d.ts.map +1 -0
  229. package/build-types/components/template-actions-panel/block-theme-content.d.ts +2 -0
  230. package/build-types/components/template-actions-panel/block-theme-content.d.ts.map +1 -0
  231. package/build-types/components/template-actions-panel/classic-theme-content.d.ts +2 -0
  232. package/build-types/components/template-actions-panel/classic-theme-content.d.ts.map +1 -0
  233. package/build-types/components/template-actions-panel/index.d.ts +2 -0
  234. package/build-types/components/template-actions-panel/index.d.ts.map +1 -0
  235. package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
  236. package/build-types/store/actions.d.ts.map +1 -1
  237. package/build-types/store/private-actions.d.ts.map +1 -1
  238. package/build-types/store/private-selectors.d.ts.map +1 -1
  239. package/build-types/utils/media-finalize/index.d.ts +2 -0
  240. package/build-types/utils/media-finalize/index.d.ts.map +1 -0
  241. package/build-types/utils/sync-error-messages.d.ts +17 -3
  242. package/build-types/utils/sync-error-messages.d.ts.map +1 -1
  243. package/package.json +45 -44
  244. package/src/components/collaborators-overlay/compute-selection.ts +13 -13
  245. package/src/components/collaborators-overlay/cursor-registry.ts +96 -0
  246. package/src/components/collaborators-overlay/index.tsx +12 -4
  247. package/src/components/collaborators-overlay/overlay-iframe-styles.ts +1 -1
  248. package/src/components/collaborators-overlay/overlay.tsx +64 -1
  249. package/src/components/collaborators-overlay/timing-utils.ts +30 -0
  250. package/src/components/collaborators-overlay/use-render-cursors.ts +1 -1
  251. package/src/components/collaborators-presence/index.tsx +9 -1
  252. package/src/components/collaborators-presence/list.tsx +25 -1
  253. package/src/components/post-card-panel/index.js +7 -21
  254. package/src/components/post-content-information/index.js +5 -16
  255. package/src/components/post-locked-modal/index.js +21 -3
  256. package/src/components/post-revisions-panel/index.js +151 -0
  257. package/src/components/post-revisions-panel/style.scss +16 -0
  258. package/src/components/post-revisions-preview/block-diff.js +59 -20
  259. package/src/components/post-revisions-preview/diff-markers.js +2 -2
  260. package/src/components/post-revisions-preview/revisions-canvas.js +1 -1
  261. package/src/components/post-revisions-preview/revisions-slider.js +29 -7
  262. package/src/components/post-revisions-preview/test/block-diff.js +69 -31
  263. package/src/components/post-template/block-theme.js +4 -1
  264. package/src/components/post-template/create-new-template-modal.js +1 -4
  265. package/src/components/post-template/hooks.js +107 -9
  266. package/src/components/post-template/panel.js +5 -59
  267. package/src/components/post-template/style.scss +0 -6
  268. package/src/components/post-template/swap-template-button.js +30 -21
  269. package/src/components/preferences-modal/index.js +37 -25
  270. package/src/components/provider/use-block-editor-settings.js +2 -0
  271. package/src/components/revision-block-diff/index.js +39 -0
  272. package/src/components/revision-diff-panel/index.js +59 -0
  273. package/src/components/revision-diff-panel/style.scss +13 -0
  274. package/src/components/revision-fields-diff/index.js +91 -0
  275. package/src/components/sidebar/dataform-post-summary.js +45 -68
  276. package/src/components/sidebar/index.js +35 -22
  277. package/src/components/sidebar/post-revision-summary.js +50 -0
  278. package/src/components/sidebar/post-summary.js +22 -40
  279. package/src/components/sidebar/style.scss +7 -0
  280. package/src/components/style-book/index.js +4 -2
  281. package/src/components/sync-connection-error-modal/index.tsx +265 -0
  282. package/src/components/sync-connection-error-modal/style.scss +14 -0
  283. package/src/components/sync-connection-error-modal/use-retry-countdown.ts +57 -0
  284. package/src/components/template-actions-panel/block-theme-content.js +196 -0
  285. package/src/components/template-actions-panel/classic-theme-content.js +170 -0
  286. package/src/components/template-actions-panel/index.js +32 -0
  287. package/src/components/template-actions-panel/style.scss +39 -0
  288. package/src/components/visual-editor/index.js +2 -2
  289. package/src/dataviews/store/private-actions.ts +6 -0
  290. package/src/store/actions.js +1 -4
  291. package/src/store/private-actions.js +24 -3
  292. package/src/store/private-selectors.js +46 -16
  293. package/src/style.scss +4 -1
  294. package/src/utils/media-finalize/index.js +11 -0
  295. package/src/utils/media-finalize/test/index.js +34 -0
  296. package/src/utils/sync-error-messages.ts +72 -0
  297. package/src/utils/test/sync-error-messages.js +9 -32
  298. package/build/components/sync-connection-modal/index.cjs.map +0 -7
  299. package/build/components/sync-connection-modal/use-retry-countdown.cjs.map +0 -7
  300. package/build-module/components/sync-connection-modal/index.mjs +0 -170
  301. package/build-module/components/sync-connection-modal/index.mjs.map +0 -7
  302. package/build-module/components/sync-connection-modal/use-retry-countdown.mjs +0 -49
  303. package/build-module/components/sync-connection-modal/use-retry-countdown.mjs.map +0 -7
  304. package/build-types/components/sync-connection-modal/index.d.ts +0 -8
  305. package/build-types/components/sync-connection-modal/index.d.ts.map +0 -1
  306. package/build-types/components/sync-connection-modal/use-retry-countdown.d.ts +0 -9
  307. package/build-types/components/sync-connection-modal/use-retry-countdown.d.ts.map +0 -1
  308. package/src/components/sync-connection-modal/index.js +0 -206
  309. package/src/components/sync-connection-modal/style.scss +0 -14
  310. package/src/components/sync-connection-modal/use-retry-countdown.js +0 -70
  311. package/src/utils/sync-error-messages.js +0 -58
@@ -3,6 +3,7 @@ export function useEditedPostContext(): {
3
3
  postType: string;
4
4
  };
5
5
  export function useAllowSwitchingTemplates(): boolean;
6
- export function useAvailableTemplates(postType: any): false | (import("@wordpress/core-data").UnstableBase<any> | import("@wordpress/core-data").Attachment<any> | import("@wordpress/core-data").Comment<any> | import("@wordpress/core-data").FontCollection<any> | import("@wordpress/core-data").GlobalStylesRevision<any> | import("@wordpress/core-data").Icon<any> | import("@wordpress/core-data").MenuLocation<any> | import("@wordpress/core-data").NavMenu<any> | import("@wordpress/core-data").NavMenuItem<any> | import("@wordpress/core-data").Page<any> | import("@wordpress/core-data").Plugin<any> | import("@wordpress/core-data").Post<any> | import("@wordpress/core-data").PostStatusObject<any> | import("@wordpress/core-data").PostRevision<any> | import("@wordpress/core-data").Settings<any> | import("@wordpress/core-data").Sidebar<any> | import("@wordpress/core-data").Taxonomy<any> | import("@wordpress/core-data").Term<any> | import("@wordpress/core-data").Theme<any> | import("@wordpress/core-data").User<any> | import("@wordpress/core-data").Type<any> | import("@wordpress/core-data").Widget<any> | import("@wordpress/core-data").WidgetType<any> | import("@wordpress/core-data").WpFontFamily<any> | import("@wordpress/core-data").WpTemplate<any> | import("@wordpress/core-data").WpTemplatePart<any> | Partial<import("@wordpress/core-data").UnstableBase<any> | import("@wordpress/core-data").Attachment<any> | import("@wordpress/core-data").Comment<any> | import("@wordpress/core-data").FontCollection<any> | import("@wordpress/core-data").GlobalStylesRevision<any> | import("@wordpress/core-data").Icon<any> | import("@wordpress/core-data").MenuLocation<any> | import("@wordpress/core-data").NavMenu<any> | import("@wordpress/core-data").NavMenuItem<any> | import("@wordpress/core-data").Page<any> | import("@wordpress/core-data").Plugin<any> | import("@wordpress/core-data").Post<any> | import("@wordpress/core-data").PostStatusObject<any> | import("@wordpress/core-data").PostRevision<any> | import("@wordpress/core-data").Settings<any> | import("@wordpress/core-data").Sidebar<any> | import("@wordpress/core-data").Taxonomy<any> | import("@wordpress/core-data").Term<any> | import("@wordpress/core-data").Theme<any> | import("@wordpress/core-data").User<any> | import("@wordpress/core-data").Type<any> | import("@wordpress/core-data").Widget<any> | import("@wordpress/core-data").WidgetType<any> | import("@wordpress/core-data").WpFontFamily<any> | import("@wordpress/core-data").WpTemplate<any> | import("@wordpress/core-data").WpTemplatePart<any>>)[] | undefined;
6
+ export function useAvailableTemplates(): false | any[];
7
+ export function usePostTemplatePanelMode(): "classic" | "block-theme" | null;
7
8
  export function useCurrentTemplateSlug(): any;
8
9
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/hooks.js"],"names":[],"mappings":"AAYA;;;EAQC;AACD,sDA8BC;AAeD,+gFAeC;AAED,8CAuBC"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/hooks.js"],"names":[],"mappings":"AAaA;;;EAQC;AACD,sDA8BC;AAeD,uDAsEC;AAED,6EAwCC;AAED,8CAuBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/panel.js"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,6CAFY,KAAK,CAAC,SAAS,CA2D1B"}
1
+ {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/panel.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,6CAFY,KAAK,CAAC,SAAS,CAW1B"}
@@ -1,3 +1,7 @@
1
+ export function SwapTemplateModal({ onRequestClose, onSelect }: {
2
+ onRequestClose: any;
3
+ onSelect: any;
4
+ }): import("react").JSX.Element;
1
5
  export default function SwapTemplateButton({ onClick }: {
2
6
  onClick: any;
3
7
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"swap-template-button.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/swap-template-button.js"],"names":[],"mappings":"AAkBA;;gCA2CC"}
1
+ {"version":3,"file":"swap-template-button.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/swap-template-button.js"],"names":[],"mappings":"AAkBA;;;gCA4BC;AAED;;gCAqBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-block-editor-settings.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-block-editor-settings.js"],"names":[],"mappings":";AA8GA;;;;;;;;;GASG;AACH,kDAPW,MAAM,YACN,MAAM,UACN,MAAM,iBACN,MAAM,GAEL,MAAM,CAmUjB"}
1
+ {"version":3,"file":"use-block-editor-settings.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-block-editor-settings.js"],"names":[],"mappings":";AA+GA;;;;;;;;;GASG;AACH,kDAPW,MAAM,YACN,MAAM,UACN,MAAM,iBACN,MAAM,GAEL,MAAM,CAoUjB"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Panel that shows changed block attributes for the selected block
3
+ * when viewing revisions.
4
+ */
5
+ export default function RevisionBlockDiffPanel(): import("react").JSX.Element | null;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/revision-block-diff/index.js"],"names":[],"mappings":"AAYA;;;GAGG;AACH,qFAsBC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Renders a panel of word-level diffs.
3
+ *
4
+ * @param {Object} props
5
+ * @param {string} props.title Panel title.
6
+ * @param {Object} props.entries Map of key → diffWords parts arrays.
7
+ * @param {boolean} props.initialOpen Whether the panel starts open.
8
+ */
9
+ export default function RevisionDiffPanel({ title, entries, initialOpen }: {
10
+ title: string;
11
+ entries: Object;
12
+ initialOpen: boolean;
13
+ }): import("react").JSX.Element | null;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/revision-diff-panel/index.js"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,2EAJG;IAAuB,KAAK,EAApB,MAAM;IACS,OAAO,EAAtB,MAAM;IACS,WAAW,EAA1B,OAAO;CACjB,sCAyCA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Panel that shows meta field diffs between the current revision and
3
+ * the previous revision in the document sidebar during revision mode.
4
+ */
5
+ export default function RevisionFieldsDiffPanel(): import("react").JSX.Element;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/revision-fields-diff/index.js"],"names":[],"mappings":"AAmCA;;;GAGG;AACH,+EAmDC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dataform-post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/dataform-post-summary.js"],"names":[],"mappings":"AAsEA;;gCAmGC"}
1
+ {"version":3,"file":"dataform-post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/dataform-post-summary.js"],"names":[],"mappings":"AAuBA;;gCA2HC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.js"],"names":[],"mappings":";AAyJA;;;gCAkEC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.js"],"names":[],"mappings":";AAsKA;;;gCAkEC"}
@@ -0,0 +1,2 @@
1
+ export default function PostRevisionSummary(): import("react").JSX.Element | null;
2
+ //# sourceMappingURL=post-revision-summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post-revision-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/post-revision-summary.js"],"names":[],"mappings":"AAmBA,kFA8BC"}
@@ -1,3 +1,6 @@
1
+ export function OpenRevisionsClassicScreen({ revisionId }: {
2
+ revisionId: any;
3
+ }): import("react").JSX.Element;
1
4
  export default function PostSummary({ onActionPerformed }: {
2
5
  onActionPerformed: any;
3
6
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/post-summary.js"],"names":[],"mappings":"AA8CA;;gCAYC"}
1
+ {"version":3,"file":"post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/post-summary.js"],"names":[],"mappings":"AA2CA;;gCAUC;AAED;;gCAYC"}
@@ -4,11 +4,12 @@
4
4
  * @return {Array} Deduped examples.
5
5
  */
6
6
  export function getExamplesForSinglePageUse(examples: any[]): any[];
7
- export function StyleBookPreview({ userConfig, isStatic, path, onPathChange, }: {
7
+ export function StyleBookPreview({ userConfig, isStatic, path, onPathChange, settings: settingsProp, }: {
8
8
  path: string;
9
9
  onPathChange: Function;
10
10
  userConfig: Object;
11
11
  isStatic: boolean;
12
+ settings: Object;
12
13
  }): Object;
13
14
  export function StyleBookBody({ examples, isSelected, onClick, onSelect, settings, title, goTo, }: {
14
15
  examples: any;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/style-book/index.js"],"names":[],"mappings":"AAyLA;;;;GAIG;AACH,oEAkBC;AA2KM,gFANJ;IAAwB,IAAI,EAApB,MAAM;IACU,YAAY;IACZ,UAAU,EAA1B,MAAM;IACU,QAAQ,EAAxB,OAAO;CACf,GAAS,MAAM,CAkLjB;AAEM;;;;;;;;gCAmFN"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/style-book/index.js"],"names":[],"mappings":"AAyLA;;;;GAIG;AACH,oEAkBC;AA4KM,wGAPJ;IAAwB,IAAI,EAApB,MAAM;IACU,YAAY;IACZ,UAAU,EAA1B,MAAM;IACU,QAAQ,EAAxB,OAAO;IACS,QAAQ,EAAxB,MAAM;CACd,GAAS,MAAM,CAmLjB;AAEM;;;;;;;;gCAmFN"}
@@ -0,0 +1,22 @@
1
+ import { type ConnectionError } from '@wordpress/core-data';
2
+ export interface SyncConnectionErrorModalProps {
3
+ description: string;
4
+ error?: ConnectionError;
5
+ manualRetry?: () => void;
6
+ postType?: {
7
+ slug?: string;
8
+ labels?: {
9
+ name?: string;
10
+ };
11
+ } | null;
12
+ secondsRemainingUntilAutoRetry?: number;
13
+ title: string;
14
+ }
15
+ /**
16
+ * Sync connection modal that displays when any entity reports a disconnection.
17
+ * Uses BlockCanvasCover.Fill to render in the block canvas.
18
+ *
19
+ * @return The modal component or null if not disconnected.
20
+ */
21
+ export declare function SyncConnectionErrorModal(): import("react").JSX.Element | null;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sync-connection-error-modal/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAGN,KAAK,eAAe,EACpB,MAAM,sBAAsB,CAAC;AAgC9B,MAAM,WAAW,6BAA6B;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,IAAI,CAAC;IAChE,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;CACd;AA+HD;;;;;GAKG;AACH,wBAAgB,wBAAwB,uCAiFvC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import type { ConnectionStatus } from '@wordpress/core-data';
5
+ interface UseRetryCountdownResult {
6
+ onManualRetry: () => void;
7
+ secondsRemaining?: number;
8
+ }
9
+ export declare function useRetryCountdown(connectionStatus?: ConnectionStatus | null): UseRetryCountdownResult;
10
+ export {};
11
+ //# sourceMappingURL=use-retry-countdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-retry-countdown.d.ts","sourceRoot":"","sources":["../../../src/components/sync-connection-error-modal/use-retry-countdown.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG7D,UAAU,uBAAuB;IAChC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,iBAAiB,CAChC,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,GACxC,uBAAuB,CA2CzB"}
@@ -0,0 +1,2 @@
1
+ export default function TemplateActionsPanelContent(): import("react").JSX.Element | null;
2
+ //# sourceMappingURL=block-theme-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-theme-content.d.ts","sourceRoot":"","sources":["../../../src/components/template-actions-panel/block-theme-content.js"],"names":[],"mappings":"AA+BA,0FAoKC"}
@@ -0,0 +1,2 @@
1
+ export default function ClassicThemeContent(): import("react").JSX.Element | null;
2
+ //# sourceMappingURL=classic-theme-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classic-theme-content.d.ts","sourceRoot":"","sources":["../../../src/components/template-actions-panel/classic-theme-content.js"],"names":[],"mappings":"AA6BA,kFA4IC"}
@@ -0,0 +1,2 @@
1
+ export default function TemplateActionsPanel(): import("react").JSX.Element | null;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/template-actions-panel/index.js"],"names":[],"mappings":"AAaA,mFAkBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AA0D1D,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,8BAA8B,CAAC,EAAE,OAAO,CAAC;QACzC,yBAAyB,CAAC,EAAE,OAAO,CAAC;KACpC;CACD;AAgBD,wBAAgB,oBAAoB,CAAE,IAAI,EACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAE,IAAI,CAAE;;;;;EAQtB;AAED,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;;;;;EAQhB;AAED,wBAAgB,mBAAmB,CAAE,IAAI,EACxC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,CAAE,IAAI,CAAE;;;;;EAQrB;AAED,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM;;;;;EAQf;AAED,wBAAgB,UAAU,CAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;EAMrD;AA2BD,eAAO,MAAM,sBAAsB,GAChC,UAAU,MAAM,MACV,cAAc;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,kBAuJtC,CAAC"}
1
+ {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AA4D1D,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,8BAA8B,CAAC,EAAE,OAAO,CAAC;QACzC,yBAAyB,CAAC,EAAE,OAAO,CAAC;KACpC;CACD;AAgBD,wBAAgB,oBAAoB,CAAE,IAAI,EACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAE,IAAI,CAAE;;;;;EAQtB;AAED,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;;;;;EAQhB;AAED,wBAAgB,mBAAmB,CAAE,IAAI,EACxC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,CAAE,IAAI,CAAE;;;;;EAQrB;AAED,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM;;;;;EAQf;AAED,wBAAgB,UAAU,CAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;EAMrD;AA2BD,eAAO,MAAM,sBAAsB,GAChC,UAAU,MAAM,MACV,cAAc;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,kBA2JtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,MAAM,CAOjB;AA4fD;;;;;GAKG;AACH,oCAHW,MAAM,GACL,MAAM,CAOjB;AAED;;;;;GAKG;AACH,uCAHW,OAAO,GACN,MAAM,CAOjB;AAED;;;;GAIG;AACH,yCAFY,MAAM,CAMjB;AAED;;;;;GAKG;AACH,8CAHW,MAAM,GACL,MAAM,CAOjB;AAED;;;;;;GAMG;AACH,iDAHW,MAAM,GAAC,IAAI,GACV,MAAM,CAOjB;AAED;;;;;GAKG;AACH,8CAHW,OAAO,GACN,MAAM,CAOjB;AAoED;;;;;;;GAOG;AACH,mCALW,SAAS,GAAC,MAAM,GAAC,KAAK,YAE9B;IAAyC,KAAK;CAC9C,GAAS,MAAM,CAQjB;;AAlpBM,yCAFK,MAAM,OAAA,IAIT;;;;CAA8B,kBAiCrC;AAOK,2CAFI,MAAM,EAAE,IAIhB;;CAAY,UAgBb;AAOK,2CAFI,MAAM,EAAE,IAIhB;;CAAY,UAcb;AAYK,iHANJ;IAA2B,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,KAAK;IACL,oBAAoB;CACjD,IASE;;CAAY,UAoGb;AAUK,yCALI,MAAM,kBAEd;IAA0B,SAAS;CAErC,IAGQ;;CAAY,mBA0HnB;AAOK,gDAEE;;CAAY,mBAwHnB;AAOK,8CAFI,MAAM,IAId;;;CAAoB,UAwBrB;AAqFK,4CAFI,MAAM,IAIR;;;;CAA8B,mBAwDrC"}
1
+ {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,MAAM,CAOjB;AA4fD;;;;;GAKG;AACH,oCAHW,MAAM,GACL,MAAM,CAOjB;AAED;;;;;GAKG;AACH,uCAHW,OAAO,GACN,MAAM,CAOjB;AAED;;;;GAIG;AACH,yCAFY,MAAM,CAMjB;AAED;;;;;GAKG;AACH,8CAHW,MAAM,GACL,MAAM,CAOjB;AAED;;;;;;GAMG;AACH,iDAHW,MAAM,GAAC,IAAI,GACV,MAAM,CAOjB;AAED;;;;;GAKG;AACH,8CAHW,OAAO,GACN,MAAM,CAOjB;AAyFD;;;;;;;GAOG;AACH,mCALW,SAAS,GAAC,MAAM,GAAC,KAAK,YAE9B;IAAyC,KAAK;CAC9C,GAAS,MAAM,CAQjB;;AAvqBM,yCAFK,MAAM,OAAA,IAIT;;;;CAA8B,kBAiCrC;AAOK,2CAFI,MAAM,EAAE,IAIhB;;CAAY,UAgBb;AAOK,2CAFI,MAAM,EAAE,IAIhB;;CAAY,UAcb;AAYK,iHANJ;IAA2B,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,KAAK;IACL,oBAAoB;CACjD,IASE;;CAAY,UAoGb;AAUK,yCALI,MAAM,kBAEd;IAA0B,SAAS;CAErC,IAGQ;;CAAY,mBA0HnB;AAOK,gDAEE;;CAAY,mBAwHnB;AAOK,8CAFI,MAAM,IAId;;;CAAoB,UAwBrB;AAqFK,4CAFI,MAAM,IAIR;;;;CAA8B,mBA6ErC"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAwHA,sDAEC;AACD,6DAEC;AAsFD,2GAEC;AAED,mEAEC;AAED,yGAEC;AAiGD;;;;;GAKG;AACH,qCAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;GAKG;AACH,wCAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;GAKG;AACH,uCAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,6CAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,4CAHW,MAAM,GACL,MAAM,GAAC,IAAI,CAItB;AA8CD;;;;;;GAMG;AACH,uCAJW,MAAM,GAEL,SAAS,GAAC,MAAM,GAAC,KAAK,CAIjC;AAED;;;;;;GAMG;AACH,qCAJW,MAAM,GAEL,OAAO,CAIlB;AAhZD;;;;;;GAMG;AACH;;;;EAqEE;AAeF;;;;EAqCE;AAEF;;;;;;;;;GASG;AACH;;;;EA2BE;AAcF;;;;;;;;GAQG;AACH;;;;EAiCE;AAEF;;;;;;;GAOG;AACH;;;;EAyCE;AA8DF;;;;;GAKG;AACH;;;;EAoCE;AAwBF;;;;;;GAMG;AACH;;;;EA6CE"}
1
+ {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAwHA,sDAEC;AACD,6DAEC;AAsFD,2GAEC;AAED,mEAEC;AAED,yGAEC;AAiGD;;;;;GAKG;AACH,qCAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;GAKG;AACH,wCAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;GAKG;AACH,uCAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,6CAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,4CAHW,MAAM,GACL,MAAM,GAAC,IAAI,CAItB;AA2DD;;;;;;GAMG;AACH,uCAJW,MAAM,GAEL,SAAS,GAAC,MAAM,GAAC,KAAK,CAIjC;AAED;;;;;;GAMG;AACH,qCAJW,MAAM,GAEL,OAAO,CAIlB;AA7ZD;;;;;;GAMG;AACH;;;;EAqEE;AAeF;;;;EAqCE;AAEF;;;;;;;;;GASG;AACH;;;;EA2BE;AAcF;;;;;;;;GAQG;AACH;;;;EAiCE;AAEF;;;;;;;GAOG;AACH;;;;EAyCE;AA8DF;;;;;GAKG;AACH;;;;EAiDE;AAwBF;;;;;;GAMG;AACH;;;;EA8DE"}
@@ -0,0 +1,2 @@
1
+ export default function mediaFinalize(id: any): Promise<void>;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/media-finalize/index.js"],"names":[],"mappings":"AAKA,8DAKC"}
@@ -1,10 +1,24 @@
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import { type ConnectionError } from '@wordpress/core-data';
5
+ export declare const AUTHENTICATION_FAILED = "authentication-failed";
6
+ export declare const CONNECTION_EXPIRED = "connection-expired";
7
+ export declare const CONNECTION_LIMIT_EXCEEDED = "connection-limit-exceeded";
8
+ export declare const DOCUMENT_SIZE_LIMIT_EXCEEDED = "document-size-limit-exceeded";
9
+ export declare const UNKNOWN_ERROR = "unknown-error";
10
+ interface ConnectionErrorMessages {
11
+ description: string;
12
+ title: string;
13
+ }
1
14
  /**
2
15
  * Get user-facing title and description from a sync connection error.
3
16
  *
4
17
  * Provides default messages based on error.code.
5
18
  *
6
- * @param {Object} error - Connection error object.
7
- * @return {Object} Object with title, description, and canRetry flag.
19
+ * @param error - Connection error.
20
+ * @return Object with title, description, and canRetry flag.
8
21
  */
9
- export function getSyncErrorMessages(error: Object): Object;
22
+ export declare function getSyncErrorMessages(error?: ConnectionError): ConnectionErrorMessages;
23
+ export {};
10
24
  //# sourceMappingURL=sync-error-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sync-error-messages.d.ts","sourceRoot":"","sources":["../../src/utils/sync-error-messages.js"],"names":[],"mappings":"AA2CA;;;;;;;GAOG;AACH,4CAHW,MAAM,GACL,MAAM,CAQjB"}
1
+ {"version":3,"file":"sync-error-messages.d.ts","sourceRoot":"","sources":["../../src/utils/sync-error-messages.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAK5D,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,UAAU,uBAAuB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACd;AAsCD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,CAAC,EAAE,eAAe,GACrB,uBAAuB,CAMzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/editor",
3
- "version": "14.41.2-next.v.202603161435.0+ab4981c4f",
3
+ "version": "14.43.0",
4
4
  "description": "Enhanced block editor for WordPress posts.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -61,48 +61,49 @@
61
61
  ],
62
62
  "dependencies": {
63
63
  "@floating-ui/react-dom": "2.0.8",
64
- "@wordpress/a11y": "^4.41.1-next.v.202603161435.0+ab4981c4f",
65
- "@wordpress/api-fetch": "^7.41.1-next.v.202603161435.0+ab4981c4f",
66
- "@wordpress/base-styles": "^6.17.1-next.v.202603161435.0+ab4981c4f",
67
- "@wordpress/blob": "^4.41.1-next.v.202603161435.0+ab4981c4f",
68
- "@wordpress/block-editor": "^15.14.1-next.v.202603161435.0+ab4981c4f",
69
- "@wordpress/block-serialization-default-parser": "^5.41.1-next.v.202603161435.0+ab4981c4f",
70
- "@wordpress/blocks": "^15.14.1-next.v.202603161435.0+ab4981c4f",
71
- "@wordpress/commands": "^1.41.1-next.v.202603161435.0+ab4981c4f",
72
- "@wordpress/components": "^32.4.1-next.v.202603161435.0+ab4981c4f",
73
- "@wordpress/compose": "^7.41.1-next.v.202603161435.0+ab4981c4f",
74
- "@wordpress/core-data": "^7.41.2-next.v.202603161435.0+ab4981c4f",
75
- "@wordpress/data": "^10.41.1-next.v.202603161435.0+ab4981c4f",
76
- "@wordpress/dataviews": "^13.1.1-next.v.202603161435.0+ab4981c4f",
77
- "@wordpress/date": "^5.41.1-next.v.202603161435.0+ab4981c4f",
78
- "@wordpress/deprecated": "^4.41.1-next.v.202603161435.0+ab4981c4f",
79
- "@wordpress/dom": "^4.41.1-next.v.202603161435.0+ab4981c4f",
80
- "@wordpress/element": "^6.41.1-next.v.202603161435.0+ab4981c4f",
81
- "@wordpress/fields": "^0.33.1-next.v.202603161435.0+ab4981c4f",
82
- "@wordpress/global-styles-engine": "^1.8.1-next.v.202603161435.0+ab4981c4f",
83
- "@wordpress/global-styles-ui": "^1.8.1-next.v.202603161435.0+ab4981c4f",
84
- "@wordpress/hooks": "^4.41.1-next.v.202603161435.0+ab4981c4f",
85
- "@wordpress/html-entities": "^4.41.1-next.v.202603161435.0+ab4981c4f",
86
- "@wordpress/i18n": "^6.14.1-next.v.202603161435.0+ab4981c4f",
87
- "@wordpress/icons": "^12.0.1-next.v.202603161435.0+ab4981c4f",
88
- "@wordpress/interface": "^9.26.1-next.v.202603161435.0+ab4981c4f",
89
- "@wordpress/keyboard-shortcuts": "^5.41.1-next.v.202603161435.0+ab4981c4f",
90
- "@wordpress/keycodes": "^4.41.1-next.v.202603161435.0+ab4981c4f",
91
- "@wordpress/media-editor": "^0.4.1-next.v.202603161435.0+ab4981c4f",
92
- "@wordpress/media-fields": "^0.6.1-next.v.202603161435.0+ab4981c4f",
93
- "@wordpress/media-utils": "^5.41.1-next.v.202603161435.0+ab4981c4f",
94
- "@wordpress/notices": "^5.41.1-next.v.202603161435.0+ab4981c4f",
95
- "@wordpress/patterns": "^2.41.1-next.v.202603161435.0+ab4981c4f",
96
- "@wordpress/plugins": "^7.41.1-next.v.202603161435.0+ab4981c4f",
97
- "@wordpress/preferences": "^4.41.1-next.v.202603161435.0+ab4981c4f",
98
- "@wordpress/private-apis": "^1.41.1-next.v.202603161435.0+ab4981c4f",
99
- "@wordpress/reusable-blocks": "^5.41.1-next.v.202603161435.0+ab4981c4f",
100
- "@wordpress/rich-text": "^7.41.1-next.v.202603161435.0+ab4981c4f",
101
- "@wordpress/server-side-render": "^6.17.1-next.v.202603161435.0+ab4981c4f",
102
- "@wordpress/upload-media": "^0.26.1-next.v.202603161435.0+ab4981c4f",
103
- "@wordpress/url": "^4.41.1-next.v.202603161435.0+ab4981c4f",
104
- "@wordpress/warning": "^3.41.1-next.v.202603161435.0+ab4981c4f",
105
- "@wordpress/wordcount": "^4.41.1-next.v.202603161435.0+ab4981c4f",
64
+ "@wordpress/a11y": "^4.43.0",
65
+ "@wordpress/api-fetch": "^7.43.0",
66
+ "@wordpress/base-styles": "^6.19.0",
67
+ "@wordpress/blob": "^4.43.0",
68
+ "@wordpress/block-editor": "^15.16.0",
69
+ "@wordpress/block-serialization-default-parser": "^5.43.0",
70
+ "@wordpress/blocks": "^15.16.0",
71
+ "@wordpress/commands": "^1.43.0",
72
+ "@wordpress/components": "^32.5.0",
73
+ "@wordpress/compose": "^7.43.0",
74
+ "@wordpress/core-data": "^7.43.0",
75
+ "@wordpress/data": "^10.43.0",
76
+ "@wordpress/dataviews": "^14.0.0",
77
+ "@wordpress/date": "^5.43.0",
78
+ "@wordpress/deprecated": "^4.43.0",
79
+ "@wordpress/dom": "^4.43.0",
80
+ "@wordpress/element": "^6.43.0",
81
+ "@wordpress/fields": "^0.35.0",
82
+ "@wordpress/global-styles-engine": "^1.10.0",
83
+ "@wordpress/global-styles-ui": "^1.10.0",
84
+ "@wordpress/hooks": "^4.43.0",
85
+ "@wordpress/html-entities": "^4.43.0",
86
+ "@wordpress/i18n": "^6.16.0",
87
+ "@wordpress/icons": "^12.1.0",
88
+ "@wordpress/interface": "^9.28.0",
89
+ "@wordpress/keyboard-shortcuts": "^5.43.0",
90
+ "@wordpress/keycodes": "^4.43.0",
91
+ "@wordpress/media-editor": "^0.6.0",
92
+ "@wordpress/media-fields": "^0.8.0",
93
+ "@wordpress/media-utils": "^5.43.0",
94
+ "@wordpress/notices": "^5.43.0",
95
+ "@wordpress/patterns": "^2.43.0",
96
+ "@wordpress/plugins": "^7.43.0",
97
+ "@wordpress/preferences": "^4.43.0",
98
+ "@wordpress/private-apis": "^1.43.0",
99
+ "@wordpress/reusable-blocks": "^5.43.0",
100
+ "@wordpress/rich-text": "^7.43.0",
101
+ "@wordpress/server-side-render": "^6.19.0",
102
+ "@wordpress/upload-media": "^0.28.0",
103
+ "@wordpress/url": "^4.43.0",
104
+ "@wordpress/views": "^1.10.0",
105
+ "@wordpress/warning": "^3.43.0",
106
+ "@wordpress/wordcount": "^4.43.0",
106
107
  "change-case": "^4.1.2",
107
108
  "client-zip": "^2.4.5",
108
109
  "clsx": "^2.1.1",
@@ -125,5 +126,5 @@
125
126
  "publishConfig": {
126
127
  "access": "public"
127
128
  },
128
- "gitHead": "748f4e4564fcc0e6ae90200d90bb993a3cef5828"
129
+ "gitHead": "2cea90674d11aa521ec3f71652fb3a6a4c383969"
129
130
  }
@@ -89,7 +89,7 @@ function computeCursorOnly(
89
89
  );
90
90
  return {
91
91
  coords: getCursorPosition(
92
- start.textIndex,
92
+ start.richTextOffset,
93
93
  blockElement,
94
94
  overlayContext.editorDocument,
95
95
  overlayContext.overlayRect
@@ -116,8 +116,8 @@ function computeTextSelection(
116
116
  if (
117
117
  ! start.localClientId ||
118
118
  ! end.localClientId ||
119
- start.textIndex === null ||
120
- end.textIndex === null
119
+ start.richTextOffset === null ||
120
+ end.richTextOffset === null
121
121
  ) {
122
122
  return {};
123
123
  }
@@ -147,7 +147,7 @@ function computeTextSelection(
147
147
  if ( allRects.length > 0 ) {
148
148
  return {
149
149
  coords: getCursorPosition(
150
- activeEnd.textIndex,
150
+ activeEnd.richTextOffset,
151
151
  activeEndBlock,
152
152
  overlayContext.editorDocument,
153
153
  overlayContext.overlayRect
@@ -164,7 +164,7 @@ function computeTextSelection(
164
164
 
165
165
  return {
166
166
  coords: getCursorPosition(
167
- start.textIndex,
167
+ start.richTextOffset,
168
168
  startBlock,
169
169
  overlayContext.editorDocument,
170
170
  overlayContext.overlayRect
@@ -191,8 +191,8 @@ function computeSingleBlockRects(
191
191
  );
192
192
  if (
193
193
  ! blockElement ||
194
- start.textIndex === null ||
195
- end.textIndex === null
194
+ start.richTextOffset === null ||
195
+ end.richTextOffset === null
196
196
  ) {
197
197
  return { rects: [], blockElement: null };
198
198
  }
@@ -200,8 +200,8 @@ function computeSingleBlockRects(
200
200
  rects:
201
201
  getSelectionRects(
202
202
  blockElement,
203
- start.textIndex,
204
- end.textIndex,
203
+ start.richTextOffset,
204
+ end.richTextOffset,
205
205
  overlayContext.editorDocument,
206
206
  overlayContext.overlayRect
207
207
  ) ?? [],
@@ -244,8 +244,8 @@ function computeMultiBlockRects(
244
244
  if (
245
245
  ! firstBlock ||
246
246
  ! lastBlock ||
247
- docFirst.textIndex === null ||
248
- docLast.textIndex === null ||
247
+ docFirst.richTextOffset === null ||
248
+ docLast.richTextOffset === null ||
249
249
  ! docFirst.localClientId ||
250
250
  ! docLast.localClientId
251
251
  ) {
@@ -262,7 +262,7 @@ function computeMultiBlockRects(
262
262
  // First block: from start offset to end of block.
263
263
  const startRects = getSelectionRects(
264
264
  firstBlock,
265
- docFirst.textIndex,
265
+ docFirst.richTextOffset,
266
266
  Number.MAX_SAFE_INTEGER,
267
267
  overlayContext.editorDocument,
268
268
  overlayContext.overlayRect
@@ -290,7 +290,7 @@ function computeMultiBlockRects(
290
290
  const endRects = getSelectionRects(
291
291
  lastBlock,
292
292
  0,
293
- docLast.textIndex,
293
+ docLast.richTextOffset,
294
294
  overlayContext.editorDocument,
295
295
  overlayContext.overlayRect
296
296
  );
@@ -0,0 +1,96 @@
1
+ interface ScrollToCursorOptions {
2
+ behavior?: ScrollBehavior;
3
+ block?: ScrollLogicalPosition;
4
+ inline?: ScrollLogicalPosition;
5
+ highlightDuration?: number;
6
+ }
7
+
8
+ /**
9
+ * Cursor Registry
10
+ * ===
11
+ * This registry stores references to cursor elements so that we can access them
12
+ * in different parts of the component tree. This would more ideally be solved
13
+ * with React context or state in the awareness store, but:
14
+ *
15
+ * 1. EditorPresence and BlockCanvasCover slot/fill break context propagation. We
16
+ * don't currently have a way to provide context to both the slot and fill.
17
+ * 2. Storing pointers to the cursor elements in the awareness store might be a
18
+ * better solution, but would require broader refactoring.
19
+ *
20
+ * For now, we create a single instance of this registry and pass it down to the
21
+ * components that need it. It's important that we create a single instance and
22
+ * not a new instance per component or render; use useState with a lazy
23
+ * initializer to accomplish this.
24
+ */
25
+
26
+ function highlightCursor( element: HTMLElement, duration: number ): void {
27
+ element.classList.add( 'collaborators-overlay-cursor-highlighted' );
28
+
29
+ setTimeout( () => {
30
+ element.classList.remove( 'collaborators-overlay-cursor-highlighted' );
31
+ }, duration );
32
+ }
33
+
34
+ export function createCursorRegistry() {
35
+ const cursorMap = new Map< number, HTMLElement >();
36
+
37
+ return {
38
+ /**
39
+ * Register a cursor element when it's created.
40
+ *
41
+ * @param clientId - The clientId of the cursor to register.
42
+ * @param element - The cursor element to register.
43
+ */
44
+ registerCursor( clientId: number, element: HTMLElement ): void {
45
+ cursorMap.set( clientId, element );
46
+ },
47
+
48
+ /**
49
+ * Unregister a cursor element when it's removed.
50
+ *
51
+ * @param clientId - The clientId of the cursor to unregister.
52
+ */
53
+ unregisterCursor( clientId: number ): void {
54
+ cursorMap.delete( clientId );
55
+ },
56
+
57
+ /**
58
+ * Scroll to a cursor by clientId.
59
+ *
60
+ * @param clientId - The clientId of the cursor to scroll to.
61
+ * @param options - The options for the scroll.
62
+ * @return true if cursor was found and scrolled to, false otherwise.
63
+ */
64
+ scrollToCursor(
65
+ clientId: number,
66
+ options?: ScrollToCursorOptions
67
+ ): boolean {
68
+ const cursorElement = cursorMap.get( clientId );
69
+
70
+ if ( ! cursorElement ) {
71
+ return false;
72
+ }
73
+
74
+ cursorElement.scrollIntoView( {
75
+ behavior: options?.behavior ?? 'smooth',
76
+ block: options?.block ?? 'center',
77
+ inline: options?.inline ?? 'nearest',
78
+ } );
79
+
80
+ if ( options?.highlightDuration ) {
81
+ highlightCursor( cursorElement, options.highlightDuration );
82
+ }
83
+
84
+ return true;
85
+ },
86
+
87
+ /**
88
+ * Clear the registry.
89
+ */
90
+ removeAll(): void {
91
+ cursorMap.clear();
92
+ },
93
+ };
94
+ }
95
+
96
+ export type CursorRegistry = ReturnType< typeof createCursorRegistry >;
@@ -9,22 +9,29 @@ import { privateApis } from '@wordpress/block-editor';
9
9
  */
10
10
  import { unlock } from '../../lock-unlock';
11
11
  import { Overlay } from './overlay';
12
+ import { type CursorRegistry } from './cursor-registry';
12
13
 
13
14
  const { BlockCanvasCover } = unlock( privateApis );
14
15
 
15
16
  interface Props {
16
17
  postId: number | null;
17
18
  postType: string | null;
19
+ cursorRegistry?: CursorRegistry;
18
20
  }
19
21
 
20
22
  /**
21
23
  * Collaborators Overlay component
22
- * @param props - The props for the CollaboratorsOverlay component
23
- * @param props.postId - The ID of the post
24
- * @param props.postType - The type of the post
24
+ * @param props - The props for the CollaboratorsOverlay component
25
+ * @param props.postId - The ID of the post
26
+ * @param props.postType - The type of the post
27
+ * @param props.cursorRegistry - The shared cursor registry
25
28
  * @return The CollaboratorsOverlay component
26
29
  */
27
- export function CollaboratorsOverlay( { postId, postType }: Props ) {
30
+ export function CollaboratorsOverlay( {
31
+ postId,
32
+ postType,
33
+ cursorRegistry,
34
+ }: Props ) {
28
35
  return (
29
36
  <BlockCanvasCover.Fill>
30
37
  { ( {
@@ -36,6 +43,7 @@ export function CollaboratorsOverlay( { postId, postType }: Props ) {
36
43
  blockEditorDocument={ containerRef.current?.ownerDocument }
37
44
  postId={ postId }
38
45
  postType={ postType }
46
+ cursorRegistry={ cursorRegistry }
39
47
  />
40
48
  ) }
41
49
  </BlockCanvasCover.Fill>