@wordpress/editor 13.25.0 → 13.26.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 (223) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/LICENSE.md +1 -1
  3. package/build/components/document-bar/index.js +19 -7
  4. package/build/components/document-bar/index.js.map +1 -1
  5. package/build/components/document-outline/index.js +82 -1
  6. package/build/components/document-outline/index.js.map +1 -1
  7. package/build/components/document-tools/index.js +160 -0
  8. package/build/components/document-tools/index.js.map +1 -0
  9. package/build/components/editor-canvas/index.js +10 -4
  10. package/build/components/editor-canvas/index.js.map +1 -1
  11. package/build/components/entities-saved-states/index.js +3 -1
  12. package/build/components/entities-saved-states/index.js.map +1 -1
  13. package/build/components/global-keyboard-shortcuts/index.js +12 -2
  14. package/build/components/global-keyboard-shortcuts/index.js.map +1 -1
  15. package/build/components/global-keyboard-shortcuts/register-shortcuts.js +9 -0
  16. package/build/components/global-keyboard-shortcuts/register-shortcuts.js.map +1 -1
  17. package/build/components/index.js +56 -8
  18. package/build/components/index.js.map +1 -1
  19. package/build/components/index.native.js +9 -1
  20. package/build/components/index.native.js.map +1 -1
  21. package/build/components/inserter-sidebar/index.js +77 -0
  22. package/build/components/inserter-sidebar/index.js.map +1 -0
  23. package/build/components/list-view-sidebar/index.js +150 -0
  24. package/build/components/list-view-sidebar/index.js.map +1 -0
  25. package/build/components/list-view-sidebar/list-view-outline.js +28 -0
  26. package/build/components/list-view-sidebar/list-view-outline.js.map +1 -0
  27. package/build/components/offline-status/index.native.js +85 -0
  28. package/build/components/offline-status/index.native.js.map +1 -0
  29. package/build/components/page-attributes/panel.js +63 -0
  30. package/build/components/page-attributes/panel.js.map +1 -0
  31. package/build/components/post-discussion/panel.js +59 -0
  32. package/build/components/post-discussion/panel.js.map +1 -0
  33. package/build/components/post-excerpt/check.js +19 -0
  34. package/build/components/post-excerpt/check.js.map +1 -1
  35. package/build/components/post-excerpt/panel.js +55 -0
  36. package/build/components/post-excerpt/panel.js.map +1 -0
  37. package/build/components/post-excerpt/plugin.js +72 -0
  38. package/build/components/post-excerpt/plugin.js.map +1 -0
  39. package/build/components/post-featured-image/index.js +5 -8
  40. package/build/components/post-featured-image/index.js.map +1 -1
  41. package/build/components/post-featured-image/panel.js +60 -0
  42. package/build/components/post-featured-image/panel.js.map +1 -0
  43. package/build/components/post-last-revision/panel.js +27 -0
  44. package/build/components/post-last-revision/panel.js.map +1 -0
  45. package/build/components/post-saved-state/index.js +12 -8
  46. package/build/components/post-saved-state/index.js.map +1 -1
  47. package/build/components/post-taxonomies/panel.js +68 -0
  48. package/build/components/post-taxonomies/panel.js.map +1 -0
  49. package/build/components/post-template/block-theme.js +2 -1
  50. package/build/components/post-template/block-theme.js.map +1 -1
  51. package/build/components/post-template/hooks.js +6 -6
  52. package/build/components/post-template/hooks.js.map +1 -1
  53. package/build/components/post-template/panel.js +1 -2
  54. package/build/components/post-template/panel.js.map +1 -1
  55. package/build/components/post-template/swap-template-button.js +4 -2
  56. package/build/components/post-template/swap-template-button.js.map +1 -1
  57. package/build/components/post-title/index.native.js +25 -14
  58. package/build/components/post-title/index.native.js.map +1 -1
  59. package/build/components/post-view-link/index.js +58 -0
  60. package/build/components/post-view-link/index.js.map +1 -0
  61. package/build/components/post-visibility/check.js +5 -17
  62. package/build/components/post-visibility/check.js.map +1 -1
  63. package/build/components/preview-dropdown/index.js +8 -3
  64. package/build/components/preview-dropdown/index.js.map +1 -1
  65. package/build/components/provider/index.native.js +19 -0
  66. package/build/components/provider/index.native.js.map +1 -1
  67. package/build/components/provider/use-block-editor-settings.js +29 -5
  68. package/build/components/provider/use-block-editor-settings.js.map +1 -1
  69. package/build/private-apis.js +10 -0
  70. package/build/private-apis.js.map +1 -1
  71. package/build/store/actions.js +102 -2
  72. package/build/store/actions.js.map +1 -1
  73. package/build/store/index.js +2 -0
  74. package/build/store/index.js.map +1 -1
  75. package/build/store/private-selectors.js +52 -0
  76. package/build/store/private-selectors.js.map +1 -0
  77. package/build/store/reducer.js +78 -1
  78. package/build/store/reducer.js.map +1 -1
  79. package/build/store/selectors.js +76 -2
  80. package/build/store/selectors.js.map +1 -1
  81. package/build/utils/media-upload/index.js +8 -2
  82. package/build/utils/media-upload/index.js.map +1 -1
  83. package/build-module/components/document-bar/index.js +19 -7
  84. package/build-module/components/document-bar/index.js.map +1 -1
  85. package/build-module/components/document-outline/index.js +82 -1
  86. package/build-module/components/document-outline/index.js.map +1 -1
  87. package/build-module/components/document-tools/index.js +151 -0
  88. package/build-module/components/document-tools/index.js.map +1 -0
  89. package/build-module/components/editor-canvas/index.js +10 -4
  90. package/build-module/components/editor-canvas/index.js.map +1 -1
  91. package/build-module/components/entities-saved-states/index.js +3 -1
  92. package/build-module/components/entities-saved-states/index.js.map +1 -1
  93. package/build-module/components/global-keyboard-shortcuts/index.js +12 -2
  94. package/build-module/components/global-keyboard-shortcuts/index.js.map +1 -1
  95. package/build-module/components/global-keyboard-shortcuts/register-shortcuts.js +9 -0
  96. package/build-module/components/global-keyboard-shortcuts/register-shortcuts.js.map +1 -1
  97. package/build-module/components/index.js +6 -0
  98. package/build-module/components/index.js.map +1 -1
  99. package/build-module/components/index.native.js +1 -0
  100. package/build-module/components/index.native.js.map +1 -1
  101. package/build-module/components/inserter-sidebar/index.js +70 -0
  102. package/build-module/components/inserter-sidebar/index.js.map +1 -0
  103. package/build-module/components/list-view-sidebar/index.js +142 -0
  104. package/build-module/components/list-view-sidebar/index.js.map +1 -0
  105. package/build-module/components/list-view-sidebar/list-view-outline.js +20 -0
  106. package/build-module/components/list-view-sidebar/list-view-outline.js.map +1 -0
  107. package/build-module/components/offline-status/index.native.js +77 -0
  108. package/build-module/components/offline-status/index.native.js.map +1 -0
  109. package/build-module/components/page-attributes/panel.js +53 -0
  110. package/build-module/components/page-attributes/panel.js.map +1 -0
  111. package/build-module/components/post-discussion/panel.js +50 -0
  112. package/build-module/components/post-discussion/panel.js.map +1 -0
  113. package/build-module/components/post-excerpt/check.js +19 -0
  114. package/build-module/components/post-excerpt/check.js.map +1 -1
  115. package/build-module/components/post-excerpt/panel.js +48 -0
  116. package/build-module/components/post-excerpt/panel.js.map +1 -0
  117. package/build-module/components/post-excerpt/plugin.js +64 -0
  118. package/build-module/components/post-excerpt/plugin.js.map +1 -0
  119. package/build-module/components/post-featured-image/index.js +5 -8
  120. package/build-module/components/post-featured-image/index.js.map +1 -1
  121. package/build-module/components/post-featured-image/panel.js +51 -0
  122. package/build-module/components/post-featured-image/panel.js.map +1 -0
  123. package/build-module/components/post-last-revision/panel.js +18 -0
  124. package/build-module/components/post-last-revision/panel.js.map +1 -0
  125. package/build-module/components/post-saved-state/index.js +12 -8
  126. package/build-module/components/post-saved-state/index.js.map +1 -1
  127. package/build-module/components/post-taxonomies/panel.js +59 -0
  128. package/build-module/components/post-taxonomies/panel.js.map +1 -0
  129. package/build-module/components/post-template/block-theme.js +2 -1
  130. package/build-module/components/post-template/block-theme.js.map +1 -1
  131. package/build-module/components/post-template/hooks.js +6 -6
  132. package/build-module/components/post-template/hooks.js.map +1 -1
  133. package/build-module/components/post-template/panel.js +1 -2
  134. package/build-module/components/post-template/panel.js.map +1 -1
  135. package/build-module/components/post-template/swap-template-button.js +4 -2
  136. package/build-module/components/post-template/swap-template-button.js.map +1 -1
  137. package/build-module/components/post-title/index.native.js +26 -15
  138. package/build-module/components/post-title/index.native.js.map +1 -1
  139. package/build-module/components/post-view-link/index.js +51 -0
  140. package/build-module/components/post-view-link/index.js.map +1 -0
  141. package/build-module/components/post-visibility/check.js +6 -16
  142. package/build-module/components/post-visibility/check.js.map +1 -1
  143. package/build-module/components/preview-dropdown/index.js +8 -3
  144. package/build-module/components/preview-dropdown/index.js.map +1 -1
  145. package/build-module/components/provider/index.native.js +19 -0
  146. package/build-module/components/provider/index.native.js.map +1 -1
  147. package/build-module/components/provider/use-block-editor-settings.js +29 -5
  148. package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
  149. package/build-module/private-apis.js +10 -0
  150. package/build-module/private-apis.js.map +1 -1
  151. package/build-module/store/actions.js +94 -0
  152. package/build-module/store/actions.js.map +1 -1
  153. package/build-module/store/index.js +2 -0
  154. package/build-module/store/index.js.map +1 -1
  155. package/build-module/store/private-selectors.js +43 -0
  156. package/build-module/store/private-selectors.js.map +1 -0
  157. package/build-module/store/reducer.js +74 -1
  158. package/build-module/store/reducer.js.map +1 -1
  159. package/build-module/store/selectors.js +67 -0
  160. package/build-module/store/selectors.js.map +1 -1
  161. package/build-module/utils/media-upload/index.js +8 -2
  162. package/build-module/utils/media-upload/index.js.map +1 -1
  163. package/build-style/style-rtl.css +251 -0
  164. package/build-style/style.css +251 -0
  165. package/package.json +32 -32
  166. package/src/components/document-bar/index.js +39 -28
  167. package/src/components/document-outline/index.js +48 -1
  168. package/src/components/document-outline/style.scss +12 -0
  169. package/src/components/document-tools/index.js +177 -0
  170. package/src/components/document-tools/style.scss +98 -0
  171. package/src/components/editor-canvas/index.js +12 -7
  172. package/src/components/editor-canvas/style.scss +5 -0
  173. package/src/components/entities-saved-states/index.js +3 -1
  174. package/src/components/entities-saved-states/style.scss +4 -0
  175. package/src/components/global-keyboard-shortcuts/index.js +12 -2
  176. package/src/components/global-keyboard-shortcuts/register-shortcuts.js +10 -0
  177. package/src/components/index.js +6 -0
  178. package/src/components/index.native.js +1 -0
  179. package/src/components/inserter-sidebar/index.js +73 -0
  180. package/src/components/inserter-sidebar/style.scss +22 -0
  181. package/src/components/list-view-sidebar/index.js +169 -0
  182. package/src/components/list-view-sidebar/list-view-outline.js +37 -0
  183. package/src/components/list-view-sidebar/style.scss +84 -0
  184. package/src/components/offline-status/index.native.js +101 -0
  185. package/src/components/offline-status/style.native.scss +28 -0
  186. package/src/components/offline-status/test/index.native.js +108 -0
  187. package/src/components/page-attributes/panel.js +62 -0
  188. package/src/components/post-discussion/panel.js +57 -0
  189. package/src/components/post-excerpt/check.js +18 -0
  190. package/src/components/post-excerpt/panel.js +57 -0
  191. package/src/components/post-excerpt/plugin.js +61 -0
  192. package/src/components/post-excerpt/test/plugin.js +36 -0
  193. package/src/components/post-featured-image/index.js +3 -7
  194. package/src/components/post-featured-image/panel.js +55 -0
  195. package/src/components/post-last-revision/panel.js +22 -0
  196. package/src/components/post-last-revision/style.scss +10 -0
  197. package/src/components/post-saved-state/index.js +8 -8
  198. package/src/components/post-taxonomies/panel.js +66 -0
  199. package/src/components/post-template/block-theme.js +2 -1
  200. package/src/components/post-template/hooks.js +6 -6
  201. package/src/components/post-template/panel.js +1 -2
  202. package/src/components/post-template/swap-template-button.js +7 -4
  203. package/src/components/post-title/index.native.js +32 -17
  204. package/src/components/post-title/style.scss +1 -0
  205. package/src/components/post-title/test/__snapshots__/index.native.js.snap +25 -0
  206. package/src/components/post-title/test/index.native.js +78 -0
  207. package/src/components/post-view-link/index.js +47 -0
  208. package/src/components/post-visibility/check.js +10 -15
  209. package/src/components/post-visibility/test/check.js +24 -13
  210. package/src/components/preview-dropdown/index.js +7 -10
  211. package/src/components/provider/index.native.js +29 -2
  212. package/src/components/provider/use-block-editor-settings.js +36 -8
  213. package/src/private-apis.js +10 -0
  214. package/src/store/actions.js +109 -0
  215. package/src/store/index.js +2 -0
  216. package/src/store/private-selectors.js +51 -0
  217. package/src/store/reducer.js +72 -0
  218. package/src/store/selectors.js +80 -0
  219. package/src/store/test/actions.js +56 -0
  220. package/src/store/test/reducer.js +98 -0
  221. package/src/store/test/selectors.js +49 -0
  222. package/src/style.scss +4 -0
  223. package/src/utils/media-upload/index.js +9 -2
@@ -344,6 +344,107 @@
344
344
  padding: 1px 0;
345
345
  }
346
346
 
347
+ .editor-document-outline.has-no-headings {
348
+ text-align: center;
349
+ color: #757575;
350
+ }
351
+ .editor-document-outline.has-no-headings > svg {
352
+ margin-top: 28px;
353
+ }
354
+ .editor-document-outline.has-no-headings > p {
355
+ padding-right: 32px;
356
+ padding-left: 32px;
357
+ }
358
+
359
+ .editor-document-tools {
360
+ display: inline-flex;
361
+ align-items: center;
362
+ }
363
+ .editor-document-tools .editor-document-tools__left > .components-button {
364
+ display: none;
365
+ }
366
+ @media (min-width: 600px) {
367
+ .editor-document-tools .editor-document-tools__left > .components-button {
368
+ display: inline-flex;
369
+ }
370
+ }
371
+ .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle {
372
+ display: inline-flex;
373
+ }
374
+ .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle svg {
375
+ transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
376
+ }
377
+ @media (prefers-reduced-motion: reduce) {
378
+ .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle svg {
379
+ transition-duration: 0s;
380
+ transition-delay: 0s;
381
+ }
382
+ }
383
+ .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle.is-pressed svg {
384
+ transform: rotate(-45deg);
385
+ }
386
+ .editor-document-tools .block-editor-list-view {
387
+ display: none;
388
+ }
389
+ @media (min-width: 600px) {
390
+ .editor-document-tools .block-editor-list-view {
391
+ display: flex;
392
+ }
393
+ }
394
+ .editor-document-tools .editor-document-tools__left > .components-button.has-icon,
395
+ .editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon {
396
+ height: 32px;
397
+ min-width: 32px;
398
+ padding: 4px;
399
+ }
400
+ .editor-document-tools .editor-document-tools__left > .components-button.has-icon.is-pressed,
401
+ .editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon.is-pressed {
402
+ background: #1e1e1e;
403
+ }
404
+ .editor-document-tools .editor-document-tools__left > .components-button.has-icon:focus:not(:disabled),
405
+ .editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon:focus:not(:disabled) {
406
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 1px #fff;
407
+ outline: 1px solid transparent;
408
+ }
409
+ .editor-document-tools .editor-document-tools__left > .components-button.has-icon::before,
410
+ .editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon::before {
411
+ display: none;
412
+ }
413
+
414
+ .editor-document-tools__left {
415
+ display: inline-flex;
416
+ align-items: center;
417
+ padding-right: 16px;
418
+ gap: 8px;
419
+ margin-left: 8px;
420
+ }
421
+ @media (min-width: 782px) {
422
+ .editor-document-tools__left {
423
+ padding-right: 20px;
424
+ }
425
+ }
426
+ @media (min-width: 1280px) {
427
+ .editor-document-tools__left {
428
+ padding-left: 8px;
429
+ }
430
+ }
431
+
432
+ .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle.has-icon {
433
+ min-width: 32px;
434
+ width: 32px;
435
+ height: 32px;
436
+ padding: 0;
437
+ }
438
+ .show-icon-labels .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle.has-icon {
439
+ width: auto;
440
+ height: 32px;
441
+ padding: 0 8px;
442
+ }
443
+
444
+ .show-icon-labels .editor-document-tools__left > * + * {
445
+ margin-right: 8px;
446
+ }
447
+
347
448
  .components-editor-notices__dismissible,
348
449
  .components-editor-notices__pinned {
349
450
  position: relative;
@@ -378,6 +479,10 @@
378
479
  padding: 16px;
379
480
  padding-bottom: 4px;
380
481
  }
482
+ .entities-saved-states__text-prompt .entities-saved-states__text-prompt--header {
483
+ display: block;
484
+ margin-bottom: 12px;
485
+ }
381
486
 
382
487
  .editor-error-boundary {
383
488
  margin: auto;
@@ -387,6 +492,139 @@
387
492
  box-shadow: 0 0.7px 1px rgba(0, 0, 0, 0.15), 0 2.7px 3.8px -0.2px rgba(0, 0, 0, 0.15), 0 5.5px 7.8px -0.3px rgba(0, 0, 0, 0.15), -0.1px 11.5px 16.4px -0.5px rgba(0, 0, 0, 0.15);
388
493
  }
389
494
 
495
+ .editor-inserter-sidebar {
496
+ box-sizing: border-box;
497
+ height: 100%;
498
+ display: flex;
499
+ flex-direction: column;
500
+ }
501
+ .editor-inserter-sidebar *,
502
+ .editor-inserter-sidebar *::before,
503
+ .editor-inserter-sidebar *::after {
504
+ box-sizing: inherit;
505
+ }
506
+
507
+ .editor-inserter-sidebar__header {
508
+ padding-top: 8px;
509
+ padding-left: 8px;
510
+ display: flex;
511
+ justify-content: flex-end;
512
+ }
513
+
514
+ .editor-inserter-sidebar__content {
515
+ height: calc(100% - 36px - 8px);
516
+ }
517
+ @media (min-width: 782px) {
518
+ .editor-inserter-sidebar__content {
519
+ height: 100%;
520
+ }
521
+ }
522
+
523
+ .editor-list-view-sidebar {
524
+ height: 100%;
525
+ display: flex;
526
+ flex-direction: column;
527
+ }
528
+ @media (min-width: 782px) {
529
+ .editor-list-view-sidebar {
530
+ width: 350px;
531
+ }
532
+ }
533
+ .editor-list-view-sidebar .editor-list-view-sidebar__close-button {
534
+ position: absolute;
535
+ left: 8px;
536
+ top: 6px;
537
+ z-index: 1;
538
+ background: #fff;
539
+ }
540
+ .editor-list-view-sidebar .components-tab-panel__tabs {
541
+ border-bottom: 1px solid #ddd;
542
+ box-sizing: border-box;
543
+ display: flex;
544
+ width: 100%;
545
+ padding-left: 56px;
546
+ }
547
+ .editor-list-view-sidebar .components-tab-panel__tabs .editor-list-view-sidebar__panel-tab {
548
+ width: 50%;
549
+ margin-bottom: -1px;
550
+ }
551
+ .editor-list-view-sidebar .components-tab-panel__tab-content {
552
+ height: calc(100% - 47px);
553
+ }
554
+
555
+ .editor-list-view-sidebar__list-view-panel-content,
556
+ .editor-list-view-sidebar__list-view-container > .document-outline {
557
+ height: 100%;
558
+ scrollbar-width: thin;
559
+ scrollbar-gutter: stable both-edges;
560
+ scrollbar-color: transparent transparent;
561
+ will-change: transform;
562
+ overflow: auto;
563
+ scrollbar-gutter: auto;
564
+ padding: 8px 6px;
565
+ }
566
+ .editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar,
567
+ .editor-list-view-sidebar__list-view-container > .document-outline::-webkit-scrollbar {
568
+ width: 12px;
569
+ height: 12px;
570
+ }
571
+ .editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-track,
572
+ .editor-list-view-sidebar__list-view-container > .document-outline::-webkit-scrollbar-track {
573
+ background-color: transparent;
574
+ }
575
+ .editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-thumb,
576
+ .editor-list-view-sidebar__list-view-container > .document-outline::-webkit-scrollbar-thumb {
577
+ background-color: transparent;
578
+ border-radius: 8px;
579
+ border: 3px solid transparent;
580
+ background-clip: padding-box;
581
+ }
582
+ .editor-list-view-sidebar__list-view-panel-content:hover::-webkit-scrollbar-thumb, .editor-list-view-sidebar__list-view-panel-content:focus::-webkit-scrollbar-thumb, .editor-list-view-sidebar__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,
583
+ .editor-list-view-sidebar__list-view-container > .document-outline:hover::-webkit-scrollbar-thumb,
584
+ .editor-list-view-sidebar__list-view-container > .document-outline:focus::-webkit-scrollbar-thumb,
585
+ .editor-list-view-sidebar__list-view-container > .document-outline:focus-within::-webkit-scrollbar-thumb {
586
+ background-color: #949494;
587
+ }
588
+ .editor-list-view-sidebar__list-view-panel-content:hover, .editor-list-view-sidebar__list-view-panel-content:focus, .editor-list-view-sidebar__list-view-panel-content:focus-within,
589
+ .editor-list-view-sidebar__list-view-container > .document-outline:hover,
590
+ .editor-list-view-sidebar__list-view-container > .document-outline:focus,
591
+ .editor-list-view-sidebar__list-view-container > .document-outline:focus-within {
592
+ scrollbar-color: #949494 transparent;
593
+ }
594
+ @media (hover: none) {
595
+ .editor-list-view-sidebar__list-view-panel-content,
596
+ .editor-list-view-sidebar__list-view-container > .document-outline {
597
+ scrollbar-color: #949494 transparent;
598
+ }
599
+ }
600
+
601
+ .editor-list-view-sidebar__list-view-container {
602
+ display: flex;
603
+ flex-direction: column;
604
+ height: 100%;
605
+ }
606
+
607
+ .editor-list-view-sidebar__tab-panel {
608
+ height: 100%;
609
+ }
610
+
611
+ .editor-list-view-sidebar__outline {
612
+ display: flex;
613
+ flex-direction: column;
614
+ gap: 8px;
615
+ border-bottom: 1px solid #ddd;
616
+ padding: 16px;
617
+ }
618
+ .editor-list-view-sidebar__outline > div > span:first-child {
619
+ width: 90px;
620
+ display: inline-block;
621
+ }
622
+ .editor-list-view-sidebar__outline > div > span {
623
+ font-size: 12px;
624
+ line-height: 1.4;
625
+ color: #757575;
626
+ }
627
+
390
628
  .editor-post-author__panel {
391
629
  padding-top: 8px;
392
630
  }
@@ -507,6 +745,14 @@
507
745
  border-radius: 0;
508
746
  }
509
747
 
748
+ .components-panel__body.is-opened.editor-post-last-revision__panel {
749
+ padding: 0;
750
+ height: 48px;
751
+ }
752
+ .components-panel__body.is-opened.editor-post-last-revision__panel .editor-post-last-revision__title.components-button.components-button {
753
+ padding: 16px;
754
+ }
755
+
510
756
  @media (min-width: 600px) {
511
757
  .editor-post-locked-modal {
512
758
  max-width: 480px;
@@ -917,6 +1163,7 @@
917
1163
  .edit-post-text-editor__body .editor-post-title.is-raw-text {
918
1164
  margin-bottom: 24px;
919
1165
  margin-top: 2px;
1166
+ max-width: none;
920
1167
  }
921
1168
 
922
1169
  .editor-post-url__panel-dropdown {
@@ -1168,4 +1415,8 @@
1168
1415
  }
1169
1416
  .editor-template-validation-notice .components-button {
1170
1417
  margin-right: 5px;
1418
+ }
1419
+
1420
+ .editor-canvas__iframe.has-history {
1421
+ padding: 48px 48px 0;
1171
1422
  }
@@ -344,6 +344,107 @@
344
344
  padding: 1px 0;
345
345
  }
346
346
 
347
+ .editor-document-outline.has-no-headings {
348
+ text-align: center;
349
+ color: #757575;
350
+ }
351
+ .editor-document-outline.has-no-headings > svg {
352
+ margin-top: 28px;
353
+ }
354
+ .editor-document-outline.has-no-headings > p {
355
+ padding-left: 32px;
356
+ padding-right: 32px;
357
+ }
358
+
359
+ .editor-document-tools {
360
+ display: inline-flex;
361
+ align-items: center;
362
+ }
363
+ .editor-document-tools .editor-document-tools__left > .components-button {
364
+ display: none;
365
+ }
366
+ @media (min-width: 600px) {
367
+ .editor-document-tools .editor-document-tools__left > .components-button {
368
+ display: inline-flex;
369
+ }
370
+ }
371
+ .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle {
372
+ display: inline-flex;
373
+ }
374
+ .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle svg {
375
+ transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
376
+ }
377
+ @media (prefers-reduced-motion: reduce) {
378
+ .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle svg {
379
+ transition-duration: 0s;
380
+ transition-delay: 0s;
381
+ }
382
+ }
383
+ .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle.is-pressed svg {
384
+ transform: rotate(45deg);
385
+ }
386
+ .editor-document-tools .block-editor-list-view {
387
+ display: none;
388
+ }
389
+ @media (min-width: 600px) {
390
+ .editor-document-tools .block-editor-list-view {
391
+ display: flex;
392
+ }
393
+ }
394
+ .editor-document-tools .editor-document-tools__left > .components-button.has-icon,
395
+ .editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon {
396
+ height: 32px;
397
+ min-width: 32px;
398
+ padding: 4px;
399
+ }
400
+ .editor-document-tools .editor-document-tools__left > .components-button.has-icon.is-pressed,
401
+ .editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon.is-pressed {
402
+ background: #1e1e1e;
403
+ }
404
+ .editor-document-tools .editor-document-tools__left > .components-button.has-icon:focus:not(:disabled),
405
+ .editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon:focus:not(:disabled) {
406
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 1px #fff;
407
+ outline: 1px solid transparent;
408
+ }
409
+ .editor-document-tools .editor-document-tools__left > .components-button.has-icon::before,
410
+ .editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon::before {
411
+ display: none;
412
+ }
413
+
414
+ .editor-document-tools__left {
415
+ display: inline-flex;
416
+ align-items: center;
417
+ padding-left: 16px;
418
+ gap: 8px;
419
+ margin-right: 8px;
420
+ }
421
+ @media (min-width: 782px) {
422
+ .editor-document-tools__left {
423
+ padding-left: 20px;
424
+ }
425
+ }
426
+ @media (min-width: 1280px) {
427
+ .editor-document-tools__left {
428
+ padding-right: 8px;
429
+ }
430
+ }
431
+
432
+ .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle.has-icon {
433
+ min-width: 32px;
434
+ width: 32px;
435
+ height: 32px;
436
+ padding: 0;
437
+ }
438
+ .show-icon-labels .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle.has-icon {
439
+ width: auto;
440
+ height: 32px;
441
+ padding: 0 8px;
442
+ }
443
+
444
+ .show-icon-labels .editor-document-tools__left > * + * {
445
+ margin-left: 8px;
446
+ }
447
+
347
448
  .components-editor-notices__dismissible,
348
449
  .components-editor-notices__pinned {
349
450
  position: relative;
@@ -378,6 +479,10 @@
378
479
  padding: 16px;
379
480
  padding-bottom: 4px;
380
481
  }
482
+ .entities-saved-states__text-prompt .entities-saved-states__text-prompt--header {
483
+ display: block;
484
+ margin-bottom: 12px;
485
+ }
381
486
 
382
487
  .editor-error-boundary {
383
488
  margin: auto;
@@ -387,6 +492,139 @@
387
492
  box-shadow: 0 0.7px 1px rgba(0, 0, 0, 0.15), 0 2.7px 3.8px -0.2px rgba(0, 0, 0, 0.15), 0 5.5px 7.8px -0.3px rgba(0, 0, 0, 0.15), 0.1px 11.5px 16.4px -0.5px rgba(0, 0, 0, 0.15);
388
493
  }
389
494
 
495
+ .editor-inserter-sidebar {
496
+ box-sizing: border-box;
497
+ height: 100%;
498
+ display: flex;
499
+ flex-direction: column;
500
+ }
501
+ .editor-inserter-sidebar *,
502
+ .editor-inserter-sidebar *::before,
503
+ .editor-inserter-sidebar *::after {
504
+ box-sizing: inherit;
505
+ }
506
+
507
+ .editor-inserter-sidebar__header {
508
+ padding-top: 8px;
509
+ padding-right: 8px;
510
+ display: flex;
511
+ justify-content: flex-end;
512
+ }
513
+
514
+ .editor-inserter-sidebar__content {
515
+ height: calc(100% - 36px - 8px);
516
+ }
517
+ @media (min-width: 782px) {
518
+ .editor-inserter-sidebar__content {
519
+ height: 100%;
520
+ }
521
+ }
522
+
523
+ .editor-list-view-sidebar {
524
+ height: 100%;
525
+ display: flex;
526
+ flex-direction: column;
527
+ }
528
+ @media (min-width: 782px) {
529
+ .editor-list-view-sidebar {
530
+ width: 350px;
531
+ }
532
+ }
533
+ .editor-list-view-sidebar .editor-list-view-sidebar__close-button {
534
+ position: absolute;
535
+ right: 8px;
536
+ top: 6px;
537
+ z-index: 1;
538
+ background: #fff;
539
+ }
540
+ .editor-list-view-sidebar .components-tab-panel__tabs {
541
+ border-bottom: 1px solid #ddd;
542
+ box-sizing: border-box;
543
+ display: flex;
544
+ width: 100%;
545
+ padding-right: 56px;
546
+ }
547
+ .editor-list-view-sidebar .components-tab-panel__tabs .editor-list-view-sidebar__panel-tab {
548
+ width: 50%;
549
+ margin-bottom: -1px;
550
+ }
551
+ .editor-list-view-sidebar .components-tab-panel__tab-content {
552
+ height: calc(100% - 47px);
553
+ }
554
+
555
+ .editor-list-view-sidebar__list-view-panel-content,
556
+ .editor-list-view-sidebar__list-view-container > .document-outline {
557
+ height: 100%;
558
+ scrollbar-width: thin;
559
+ scrollbar-gutter: stable both-edges;
560
+ scrollbar-color: transparent transparent;
561
+ will-change: transform;
562
+ overflow: auto;
563
+ scrollbar-gutter: auto;
564
+ padding: 8px 6px;
565
+ }
566
+ .editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar,
567
+ .editor-list-view-sidebar__list-view-container > .document-outline::-webkit-scrollbar {
568
+ width: 12px;
569
+ height: 12px;
570
+ }
571
+ .editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-track,
572
+ .editor-list-view-sidebar__list-view-container > .document-outline::-webkit-scrollbar-track {
573
+ background-color: transparent;
574
+ }
575
+ .editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-thumb,
576
+ .editor-list-view-sidebar__list-view-container > .document-outline::-webkit-scrollbar-thumb {
577
+ background-color: transparent;
578
+ border-radius: 8px;
579
+ border: 3px solid transparent;
580
+ background-clip: padding-box;
581
+ }
582
+ .editor-list-view-sidebar__list-view-panel-content:hover::-webkit-scrollbar-thumb, .editor-list-view-sidebar__list-view-panel-content:focus::-webkit-scrollbar-thumb, .editor-list-view-sidebar__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,
583
+ .editor-list-view-sidebar__list-view-container > .document-outline:hover::-webkit-scrollbar-thumb,
584
+ .editor-list-view-sidebar__list-view-container > .document-outline:focus::-webkit-scrollbar-thumb,
585
+ .editor-list-view-sidebar__list-view-container > .document-outline:focus-within::-webkit-scrollbar-thumb {
586
+ background-color: #949494;
587
+ }
588
+ .editor-list-view-sidebar__list-view-panel-content:hover, .editor-list-view-sidebar__list-view-panel-content:focus, .editor-list-view-sidebar__list-view-panel-content:focus-within,
589
+ .editor-list-view-sidebar__list-view-container > .document-outline:hover,
590
+ .editor-list-view-sidebar__list-view-container > .document-outline:focus,
591
+ .editor-list-view-sidebar__list-view-container > .document-outline:focus-within {
592
+ scrollbar-color: #949494 transparent;
593
+ }
594
+ @media (hover: none) {
595
+ .editor-list-view-sidebar__list-view-panel-content,
596
+ .editor-list-view-sidebar__list-view-container > .document-outline {
597
+ scrollbar-color: #949494 transparent;
598
+ }
599
+ }
600
+
601
+ .editor-list-view-sidebar__list-view-container {
602
+ display: flex;
603
+ flex-direction: column;
604
+ height: 100%;
605
+ }
606
+
607
+ .editor-list-view-sidebar__tab-panel {
608
+ height: 100%;
609
+ }
610
+
611
+ .editor-list-view-sidebar__outline {
612
+ display: flex;
613
+ flex-direction: column;
614
+ gap: 8px;
615
+ border-bottom: 1px solid #ddd;
616
+ padding: 16px;
617
+ }
618
+ .editor-list-view-sidebar__outline > div > span:first-child {
619
+ width: 90px;
620
+ display: inline-block;
621
+ }
622
+ .editor-list-view-sidebar__outline > div > span {
623
+ font-size: 12px;
624
+ line-height: 1.4;
625
+ color: #757575;
626
+ }
627
+
390
628
  .editor-post-author__panel {
391
629
  padding-top: 8px;
392
630
  }
@@ -507,6 +745,14 @@
507
745
  border-radius: 0;
508
746
  }
509
747
 
748
+ .components-panel__body.is-opened.editor-post-last-revision__panel {
749
+ padding: 0;
750
+ height: 48px;
751
+ }
752
+ .components-panel__body.is-opened.editor-post-last-revision__panel .editor-post-last-revision__title.components-button.components-button {
753
+ padding: 16px;
754
+ }
755
+
510
756
  @media (min-width: 600px) {
511
757
  .editor-post-locked-modal {
512
758
  max-width: 480px;
@@ -917,6 +1163,7 @@
917
1163
  .edit-post-text-editor__body .editor-post-title.is-raw-text {
918
1164
  margin-bottom: 24px;
919
1165
  margin-top: 2px;
1166
+ max-width: none;
920
1167
  }
921
1168
 
922
1169
  .editor-post-url__panel-dropdown {
@@ -1172,4 +1419,8 @@
1172
1419
  }
1173
1420
  .editor-template-validation-notice .components-button {
1174
1421
  margin-left: 5px;
1422
+ }
1423
+
1424
+ .editor-canvas__iframe.has-history {
1425
+ padding: 48px 48px 0;
1175
1426
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/editor",
3
- "version": "13.25.0",
3
+ "version": "13.26.0",
4
4
  "description": "Enhanced block editor for WordPress posts.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -31,36 +31,36 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.16.0",
34
- "@wordpress/a11y": "^3.48.0",
35
- "@wordpress/api-fetch": "^6.45.0",
36
- "@wordpress/blob": "^3.48.0",
37
- "@wordpress/block-editor": "^12.16.0",
38
- "@wordpress/blocks": "^12.25.0",
39
- "@wordpress/commands": "^0.19.0",
40
- "@wordpress/components": "^25.14.0",
41
- "@wordpress/compose": "^6.25.0",
42
- "@wordpress/core-data": "^6.25.0",
43
- "@wordpress/data": "^9.18.0",
44
- "@wordpress/date": "^4.48.0",
45
- "@wordpress/deprecated": "^3.48.0",
46
- "@wordpress/dom": "^3.48.0",
47
- "@wordpress/element": "^5.25.0",
48
- "@wordpress/hooks": "^3.48.0",
49
- "@wordpress/html-entities": "^3.48.0",
50
- "@wordpress/i18n": "^4.48.0",
51
- "@wordpress/icons": "^9.39.0",
52
- "@wordpress/keyboard-shortcuts": "^4.25.0",
53
- "@wordpress/keycodes": "^3.48.0",
54
- "@wordpress/media-utils": "^4.39.0",
55
- "@wordpress/notices": "^4.16.0",
56
- "@wordpress/patterns": "^1.9.0",
57
- "@wordpress/preferences": "^3.25.0",
58
- "@wordpress/private-apis": "^0.30.0",
59
- "@wordpress/reusable-blocks": "^4.25.0",
60
- "@wordpress/rich-text": "^6.25.0",
61
- "@wordpress/server-side-render": "^4.25.0",
62
- "@wordpress/url": "^3.49.0",
63
- "@wordpress/wordcount": "^3.48.0",
34
+ "@wordpress/a11y": "^3.49.0",
35
+ "@wordpress/api-fetch": "^6.46.0",
36
+ "@wordpress/blob": "^3.49.0",
37
+ "@wordpress/block-editor": "^12.17.0",
38
+ "@wordpress/blocks": "^12.26.0",
39
+ "@wordpress/commands": "^0.20.0",
40
+ "@wordpress/components": "^25.15.0",
41
+ "@wordpress/compose": "^6.26.0",
42
+ "@wordpress/core-data": "^6.26.0",
43
+ "@wordpress/data": "^9.19.0",
44
+ "@wordpress/date": "^4.49.0",
45
+ "@wordpress/deprecated": "^3.49.0",
46
+ "@wordpress/dom": "^3.49.0",
47
+ "@wordpress/element": "^5.26.0",
48
+ "@wordpress/hooks": "^3.49.0",
49
+ "@wordpress/html-entities": "^3.49.0",
50
+ "@wordpress/i18n": "^4.49.0",
51
+ "@wordpress/icons": "^9.40.0",
52
+ "@wordpress/keyboard-shortcuts": "^4.26.0",
53
+ "@wordpress/keycodes": "^3.49.0",
54
+ "@wordpress/media-utils": "^4.40.0",
55
+ "@wordpress/notices": "^4.17.0",
56
+ "@wordpress/patterns": "^1.10.0",
57
+ "@wordpress/preferences": "^3.26.0",
58
+ "@wordpress/private-apis": "^0.31.0",
59
+ "@wordpress/reusable-blocks": "^4.26.0",
60
+ "@wordpress/rich-text": "^6.26.0",
61
+ "@wordpress/server-side-render": "^4.26.0",
62
+ "@wordpress/url": "^3.50.0",
63
+ "@wordpress/wordcount": "^3.49.0",
64
64
  "classnames": "^2.3.1",
65
65
  "date-fns": "^2.28.0",
66
66
  "memize": "^2.1.0",
@@ -75,5 +75,5 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "fcf61b4beff747222c2c81d09d757ca1a0abd925"
78
+ "gitHead": "5e6f9caa205d3bfdbac131952b7bf9c6ec60569b"
79
79
  }