@wordpress/edit-site 7.4.0 → 7.5.1-next.v.202609171837.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 (75) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/components/add-new-post/index.cjs.map +2 -2
  3. package/build/components/add-new-template/utils.cjs.map +2 -2
  4. package/build/components/block-editor/use-site-editor-settings.cjs.map +2 -2
  5. package/build/components/editor/index.cjs +17 -2
  6. package/build/components/editor/index.cjs.map +2 -2
  7. package/build/components/layout/index.cjs.map +2 -2
  8. package/build/components/more-menu/welcome-guide-menu-item.cjs +1 -0
  9. package/build/components/more-menu/welcome-guide-menu-item.cjs.map +2 -2
  10. package/build/components/page-patterns/delete-category-menu-item.cjs.map +2 -2
  11. package/build/components/page-templates/index.cjs.map +2 -2
  12. package/build/components/post-list/index.cjs.map +2 -2
  13. package/build/components/resizable-frame/index.cjs.map +2 -2
  14. package/build/components/sidebar/index.cjs.map +2 -2
  15. package/build/components/sidebar-navigation-screen/index.cjs.map +2 -2
  16. package/build/components/sidebar-navigation-screen-global-styles/index.cjs +1 -1
  17. package/build/components/sidebar-navigation-screen-global-styles/index.cjs.map +2 -2
  18. package/build/components/site-editor-routes/home.cjs +1 -1
  19. package/build/components/site-editor-routes/home.cjs.map +2 -2
  20. package/build/components/site-editor-routes/identity.cjs +1 -1
  21. package/build/components/site-editor-routes/identity.cjs.map +2 -2
  22. package/build/components/site-editor-routes/styles.cjs +1 -1
  23. package/build/components/site-editor-routes/styles.cjs.map +2 -2
  24. package/build/components/site-hub/index.cjs.map +2 -2
  25. package/build/hooks/commands/use-common-commands.cjs +1 -1
  26. package/build/hooks/commands/use-common-commands.cjs.map +2 -2
  27. package/build/utils/get-filtered-template-parts.cjs.map +2 -2
  28. package/build-module/components/add-new-post/index.mjs.map +2 -2
  29. package/build-module/components/add-new-template/utils.mjs.map +2 -2
  30. package/build-module/components/block-editor/use-site-editor-settings.mjs.map +2 -2
  31. package/build-module/components/editor/index.mjs +18 -3
  32. package/build-module/components/editor/index.mjs.map +2 -2
  33. package/build-module/components/layout/index.mjs.map +2 -2
  34. package/build-module/components/more-menu/welcome-guide-menu-item.mjs +1 -0
  35. package/build-module/components/more-menu/welcome-guide-menu-item.mjs.map +2 -2
  36. package/build-module/components/page-patterns/delete-category-menu-item.mjs.map +2 -2
  37. package/build-module/components/page-templates/index.mjs.map +2 -2
  38. package/build-module/components/post-list/index.mjs.map +2 -2
  39. package/build-module/components/resizable-frame/index.mjs.map +2 -2
  40. package/build-module/components/sidebar/index.mjs.map +2 -2
  41. package/build-module/components/sidebar-navigation-screen/index.mjs.map +2 -2
  42. package/build-module/components/sidebar-navigation-screen-global-styles/index.mjs +1 -1
  43. package/build-module/components/sidebar-navigation-screen-global-styles/index.mjs.map +2 -2
  44. package/build-module/components/site-editor-routes/home.mjs +1 -1
  45. package/build-module/components/site-editor-routes/home.mjs.map +2 -2
  46. package/build-module/components/site-editor-routes/identity.mjs +1 -1
  47. package/build-module/components/site-editor-routes/identity.mjs.map +2 -2
  48. package/build-module/components/site-editor-routes/styles.mjs +1 -1
  49. package/build-module/components/site-editor-routes/styles.mjs.map +2 -2
  50. package/build-module/components/site-hub/index.mjs.map +2 -2
  51. package/build-module/hooks/commands/use-common-commands.mjs +1 -1
  52. package/build-module/hooks/commands/use-common-commands.mjs.map +2 -2
  53. package/build-module/utils/get-filtered-template-parts.mjs.map +2 -2
  54. package/build-style/style-rtl.css +49 -17
  55. package/build-style/style.css +49 -17
  56. package/package.json +38 -38
  57. package/src/components/add-new-post/index.jsx +1 -1
  58. package/src/components/add-new-template/utils.js +8 -8
  59. package/src/components/block-editor/use-site-editor-settings.js +1 -1
  60. package/src/components/editor/index.jsx +28 -3
  61. package/src/components/layout/index.jsx +3 -2
  62. package/src/components/more-menu/welcome-guide-menu-item.jsx +1 -0
  63. package/src/components/page-patterns/delete-category-menu-item.jsx +1 -1
  64. package/src/components/page-templates/index.jsx +1 -1
  65. package/src/components/post-list/index.jsx +1 -1
  66. package/src/components/resizable-frame/index.jsx +1 -1
  67. package/src/components/sidebar/index.jsx +1 -1
  68. package/src/components/sidebar-navigation-screen/index.jsx +1 -1
  69. package/src/components/sidebar-navigation-screen-global-styles/index.jsx +3 -3
  70. package/src/components/site-editor-routes/home.jsx +1 -1
  71. package/src/components/site-editor-routes/identity.jsx +1 -1
  72. package/src/components/site-editor-routes/styles.jsx +1 -1
  73. package/src/components/site-hub/index.jsx +1 -1
  74. package/src/hooks/commands/use-common-commands.js +3 -1
  75. package/src/utils/get-filtered-template-parts.js +2 -2
@@ -779,7 +779,7 @@
779
779
  vertical-align: middle;
780
780
  width: 16px;
781
781
  /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- dashicons don't need a generic family keyword. */
782
- font: normal 30px/1 dashicons;
782
+ font: 400 30px/1 dashicons;
783
783
  speak: none;
784
784
  -webkit-font-smoothing: antialiased;
785
785
  -moz-osx-font-smoothing: grayscale;
@@ -792,8 +792,8 @@
792
792
  }
793
793
  }
794
794
  .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true], .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled {
795
- background: #f0f0f0;
796
- border-color: #ddd;
795
+ background: var(--wpds-color-background-interactive-neutral-disabled, #fff);
796
+ border-color: var(--wpds-color-stroke-interactive-neutral-disabled, #dbdbdb);
797
797
  cursor: default;
798
798
  opacity: 1;
799
799
  }
@@ -1735,7 +1735,7 @@ div.dataviews-view-list {
1735
1735
  .dataviews-view-table th {
1736
1736
  text-align: right;
1737
1737
  color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
1738
- font-weight: normal;
1738
+ font-weight: 400;
1739
1739
  font-size: var(--wpds-typography-font-size-md, 13px);
1740
1740
  }
1741
1741
 
@@ -2837,7 +2837,8 @@ div.dataviews-view-list {
2837
2837
  overflow: clip;
2838
2838
  padding-inline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
2839
2839
  margin-inline: calc(-1 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)));
2840
- word-break: break-word;
2840
+ word-break: normal;
2841
+ overflow-wrap: anywhere;
2841
2842
  font-weight: var(--wpds-typography-font-weight-emphasis, 600);
2842
2843
  }
2843
2844
 
@@ -3487,7 +3488,8 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
3487
3488
  }
3488
3489
 
3489
3490
  .fields-controls__slug .fields-controls__slug-help-link {
3490
- word-break: break-word;
3491
+ word-break: normal;
3492
+ overflow-wrap: anywhere;
3491
3493
  }
3492
3494
 
3493
3495
  .fields-controls__slug .fields-controls__slug-help {
@@ -3764,7 +3766,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
3764
3766
  }
3765
3767
 
3766
3768
  .font-library__font-card .font-library__font-card__name {
3767
- font-weight: bold;
3769
+ font-weight: 700;
3768
3770
  }
3769
3771
 
3770
3772
  .font-library__font-card .font-library__font-card__count {
@@ -4224,7 +4226,8 @@ button.font-library__upload-area {
4224
4226
  overflow: hidden;
4225
4227
  }
4226
4228
 
4227
- .global-styles-ui__shadow-preview-panel {
4229
+ .global-styles-ui__shadow-preview-panel,
4230
+ .global-styles-ui__text-shadow-preview-panel {
4228
4231
  height: 144px;
4229
4232
  border: #ddd 1px solid;
4230
4233
  border-radius: 2px;
@@ -4234,7 +4237,7 @@ button.font-library__upload-area {
4234
4237
  background-size: 16px 16px;
4235
4238
  }
4236
4239
 
4237
- .global-styles-ui__shadow-preview-panel .global-styles-ui__shadow-preview-block {
4240
+ .global-styles-ui__shadow-preview-block {
4238
4241
  border: #ddd 1px solid;
4239
4242
  border-radius: 2px;
4240
4243
  background-color: #fff;
@@ -4242,20 +4245,42 @@ button.font-library__upload-area {
4242
4245
  height: 60px;
4243
4246
  }
4244
4247
 
4245
- .global-styles-ui__shadow-editor__dropdown-content {
4248
+ .global-styles-ui__text-shadow-preview-panel {
4249
+ margin-block: -8px 16px;
4250
+ }
4251
+
4252
+ .global-styles-ui__text-shadow-preview-text {
4253
+ font-size: 24px;
4254
+ }
4255
+
4256
+ .global-styles-ui__text-shadow-editor__header {
4257
+ margin-block-end: 8px;
4258
+ }
4259
+
4260
+ .global-styles-ui__text-shadow-editor__inputs {
4261
+ display: grid;
4262
+ grid-template-columns: repeat(2, 1fr);
4263
+ gap: 16px;
4264
+ }
4265
+
4266
+ .global-styles-ui__shadow-editor__dropdown-content,
4267
+ .global-styles-ui__text-shadow-editor__dropdown-content {
4246
4268
  width: 280px;
4247
4269
  }
4248
4270
 
4249
- .global-styles-ui__shadow-editor-panel {
4271
+ .global-styles-ui__shadow-editor-panel,
4272
+ .global-styles-ui__text-shadow-editor-panel {
4250
4273
  margin-bottom: 4px;
4251
4274
  }
4252
4275
 
4253
- .global-styles-ui__shadow-editor__dropdown {
4276
+ .global-styles-ui__shadow-editor__dropdown,
4277
+ .global-styles-ui__text-shadow-editor__dropdown {
4254
4278
  width: 100%;
4255
4279
  position: relative;
4256
4280
  }
4257
4281
 
4258
- .global-styles-ui__shadow-editor__dropdown-toggle {
4282
+ .global-styles-ui__shadow-editor__dropdown-toggle,
4283
+ .global-styles-ui__text-shadow-editor__dropdown-toggle {
4259
4284
  width: 100%;
4260
4285
  height: auto;
4261
4286
  padding-top: 8px;
@@ -4264,24 +4289,31 @@ button.font-library__upload-area {
4264
4289
  border-radius: inherit;
4265
4290
  }
4266
4291
 
4267
- .global-styles-ui__shadow-editor__dropdown-toggle.is-open {
4292
+ .global-styles-ui__shadow-editor__dropdown-toggle.is-open,
4293
+ .global-styles-ui__text-shadow-editor__dropdown-toggle.is-open {
4268
4294
  background: #f0f0f0;
4269
4295
  color: var(--wp-admin-theme-color);
4270
4296
  }
4271
4297
 
4272
- .global-styles-ui__shadow-editor__remove-button {
4298
+ .global-styles-ui__shadow-editor__remove-button,
4299
+ .global-styles-ui__text-shadow-editor__remove-button {
4273
4300
  position: absolute;
4274
4301
  left: 8px;
4275
4302
  top: 8px;
4276
4303
  opacity: 0;
4277
4304
  }
4278
4305
 
4279
- .global-styles-ui__shadow-editor__dropdown-toggle:hover + .global-styles-ui__shadow-editor__remove-button, .global-styles-ui__shadow-editor__remove-button:focus, .global-styles-ui__shadow-editor__remove-button:hover {
4306
+ .global-styles-ui__shadow-editor__dropdown-toggle:hover + .global-styles-ui__shadow-editor__remove-button, .global-styles-ui__text-shadow-editor__dropdown-toggle:hover + .global-styles-ui__shadow-editor__remove-button, .global-styles-ui__shadow-editor__remove-button:focus, .global-styles-ui__shadow-editor__remove-button:hover,
4307
+ .global-styles-ui__shadow-editor__dropdown-toggle:hover + .global-styles-ui__text-shadow-editor__remove-button,
4308
+ .global-styles-ui__text-shadow-editor__dropdown-toggle:hover + .global-styles-ui__text-shadow-editor__remove-button,
4309
+ .global-styles-ui__text-shadow-editor__remove-button:focus,
4310
+ .global-styles-ui__text-shadow-editor__remove-button:hover {
4280
4311
  opacity: 1;
4281
4312
  }
4282
4313
 
4283
4314
  @media (hover: none) {
4284
- .global-styles-ui__shadow-editor__remove-button {
4315
+ .global-styles-ui__shadow-editor__remove-button,
4316
+ .global-styles-ui__text-shadow-editor__remove-button {
4285
4317
  opacity: 1;
4286
4318
  }
4287
4319
  }
@@ -779,7 +779,7 @@
779
779
  vertical-align: middle;
780
780
  width: 16px;
781
781
  /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- dashicons don't need a generic family keyword. */
782
- font: normal 30px/1 dashicons;
782
+ font: 400 30px/1 dashicons;
783
783
  speak: none;
784
784
  -webkit-font-smoothing: antialiased;
785
785
  -moz-osx-font-smoothing: grayscale;
@@ -792,8 +792,8 @@
792
792
  }
793
793
  }
794
794
  .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true], .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled {
795
- background: #f0f0f0;
796
- border-color: #ddd;
795
+ background: var(--wpds-color-background-interactive-neutral-disabled, #fff);
796
+ border-color: var(--wpds-color-stroke-interactive-neutral-disabled, #dbdbdb);
797
797
  cursor: default;
798
798
  opacity: 1;
799
799
  }
@@ -1735,7 +1735,7 @@ div.dataviews-view-list {
1735
1735
  .dataviews-view-table th {
1736
1736
  text-align: left;
1737
1737
  color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
1738
- font-weight: normal;
1738
+ font-weight: 400;
1739
1739
  font-size: var(--wpds-typography-font-size-md, 13px);
1740
1740
  }
1741
1741
 
@@ -2837,7 +2837,8 @@ div.dataviews-view-list {
2837
2837
  overflow: clip;
2838
2838
  padding-inline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
2839
2839
  margin-inline: calc(-1 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)));
2840
- word-break: break-word;
2840
+ word-break: normal;
2841
+ overflow-wrap: anywhere;
2841
2842
  font-weight: var(--wpds-typography-font-weight-emphasis, 600);
2842
2843
  }
2843
2844
 
@@ -3487,7 +3488,8 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
3487
3488
  }
3488
3489
 
3489
3490
  .fields-controls__slug .fields-controls__slug-help-link {
3490
- word-break: break-word;
3491
+ word-break: normal;
3492
+ overflow-wrap: anywhere;
3491
3493
  }
3492
3494
 
3493
3495
  .fields-controls__slug .fields-controls__slug-help {
@@ -3764,7 +3766,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
3764
3766
  }
3765
3767
 
3766
3768
  .font-library__font-card .font-library__font-card__name {
3767
- font-weight: bold;
3769
+ font-weight: 700;
3768
3770
  }
3769
3771
 
3770
3772
  .font-library__font-card .font-library__font-card__count {
@@ -4224,7 +4226,8 @@ button.font-library__upload-area {
4224
4226
  overflow: hidden;
4225
4227
  }
4226
4228
 
4227
- .global-styles-ui__shadow-preview-panel {
4229
+ .global-styles-ui__shadow-preview-panel,
4230
+ .global-styles-ui__text-shadow-preview-panel {
4228
4231
  height: 144px;
4229
4232
  border: #ddd 1px solid;
4230
4233
  border-radius: 2px;
@@ -4236,7 +4239,7 @@ button.font-library__upload-area {
4236
4239
  background-size: 16px 16px;
4237
4240
  }
4238
4241
 
4239
- .global-styles-ui__shadow-preview-panel .global-styles-ui__shadow-preview-block {
4242
+ .global-styles-ui__shadow-preview-block {
4240
4243
  border: #ddd 1px solid;
4241
4244
  border-radius: 2px;
4242
4245
  background-color: #fff;
@@ -4244,20 +4247,42 @@ button.font-library__upload-area {
4244
4247
  height: 60px;
4245
4248
  }
4246
4249
 
4247
- .global-styles-ui__shadow-editor__dropdown-content {
4250
+ .global-styles-ui__text-shadow-preview-panel {
4251
+ margin-block: -8px 16px;
4252
+ }
4253
+
4254
+ .global-styles-ui__text-shadow-preview-text {
4255
+ font-size: 24px;
4256
+ }
4257
+
4258
+ .global-styles-ui__text-shadow-editor__header {
4259
+ margin-block-end: 8px;
4260
+ }
4261
+
4262
+ .global-styles-ui__text-shadow-editor__inputs {
4263
+ display: grid;
4264
+ grid-template-columns: repeat(2, 1fr);
4265
+ gap: 16px;
4266
+ }
4267
+
4268
+ .global-styles-ui__shadow-editor__dropdown-content,
4269
+ .global-styles-ui__text-shadow-editor__dropdown-content {
4248
4270
  width: 280px;
4249
4271
  }
4250
4272
 
4251
- .global-styles-ui__shadow-editor-panel {
4273
+ .global-styles-ui__shadow-editor-panel,
4274
+ .global-styles-ui__text-shadow-editor-panel {
4252
4275
  margin-bottom: 4px;
4253
4276
  }
4254
4277
 
4255
- .global-styles-ui__shadow-editor__dropdown {
4278
+ .global-styles-ui__shadow-editor__dropdown,
4279
+ .global-styles-ui__text-shadow-editor__dropdown {
4256
4280
  width: 100%;
4257
4281
  position: relative;
4258
4282
  }
4259
4283
 
4260
- .global-styles-ui__shadow-editor__dropdown-toggle {
4284
+ .global-styles-ui__shadow-editor__dropdown-toggle,
4285
+ .global-styles-ui__text-shadow-editor__dropdown-toggle {
4261
4286
  width: 100%;
4262
4287
  height: auto;
4263
4288
  padding-top: 8px;
@@ -4266,24 +4291,31 @@ button.font-library__upload-area {
4266
4291
  border-radius: inherit;
4267
4292
  }
4268
4293
 
4269
- .global-styles-ui__shadow-editor__dropdown-toggle.is-open {
4294
+ .global-styles-ui__shadow-editor__dropdown-toggle.is-open,
4295
+ .global-styles-ui__text-shadow-editor__dropdown-toggle.is-open {
4270
4296
  background: #f0f0f0;
4271
4297
  color: var(--wp-admin-theme-color);
4272
4298
  }
4273
4299
 
4274
- .global-styles-ui__shadow-editor__remove-button {
4300
+ .global-styles-ui__shadow-editor__remove-button,
4301
+ .global-styles-ui__text-shadow-editor__remove-button {
4275
4302
  position: absolute;
4276
4303
  right: 8px;
4277
4304
  top: 8px;
4278
4305
  opacity: 0;
4279
4306
  }
4280
4307
 
4281
- .global-styles-ui__shadow-editor__dropdown-toggle:hover + .global-styles-ui__shadow-editor__remove-button, .global-styles-ui__shadow-editor__remove-button:focus, .global-styles-ui__shadow-editor__remove-button:hover {
4308
+ .global-styles-ui__shadow-editor__dropdown-toggle:hover + .global-styles-ui__shadow-editor__remove-button, .global-styles-ui__text-shadow-editor__dropdown-toggle:hover + .global-styles-ui__shadow-editor__remove-button, .global-styles-ui__shadow-editor__remove-button:focus, .global-styles-ui__shadow-editor__remove-button:hover,
4309
+ .global-styles-ui__shadow-editor__dropdown-toggle:hover + .global-styles-ui__text-shadow-editor__remove-button,
4310
+ .global-styles-ui__text-shadow-editor__dropdown-toggle:hover + .global-styles-ui__text-shadow-editor__remove-button,
4311
+ .global-styles-ui__text-shadow-editor__remove-button:focus,
4312
+ .global-styles-ui__text-shadow-editor__remove-button:hover {
4282
4313
  opacity: 1;
4283
4314
  }
4284
4315
 
4285
4316
  @media (hover: none) {
4286
- .global-styles-ui__shadow-editor__remove-button {
4317
+ .global-styles-ui__shadow-editor__remove-button,
4318
+ .global-styles-ui__text-shadow-editor__remove-button {
4287
4319
  opacity: 1;
4288
4320
  }
4289
4321
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "7.4.0",
3
+ "version": "7.5.1-next.v.202609171837.0",
4
4
  "description": "Edit Site Page module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -47,42 +47,42 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@react-spring/web": "^9.4.5",
50
- "@wordpress/a11y": "^4.55.0",
51
- "@wordpress/admin-ui": "^2.10.0",
52
- "@wordpress/api-fetch": "^7.55.0",
53
- "@wordpress/base-styles": "^13.1.0",
54
- "@wordpress/block-editor": "^17.1.0",
55
- "@wordpress/block-library": "^11.0.0",
56
- "@wordpress/blocks": "^16.0.0",
57
- "@wordpress/commands": "^1.55.0",
58
- "@wordpress/components": "^40.1.0",
59
- "@wordpress/compose": "^8.8.0",
60
- "@wordpress/core-data": "^8.0.0",
61
- "@wordpress/data": "^10.55.0",
62
- "@wordpress/dataviews": "^19.0.0",
63
- "@wordpress/deprecated": "^4.55.0",
64
- "@wordpress/dom": "^4.55.0",
65
- "@wordpress/editor": "^15.0.0",
66
- "@wordpress/element": "^8.7.0",
67
- "@wordpress/fields": "^0.47.0",
68
- "@wordpress/global-styles-engine": "^1.22.0",
69
- "@wordpress/global-styles-ui": "^1.22.0",
70
- "@wordpress/html-entities": "^4.55.0",
71
- "@wordpress/i18n": "^6.28.0",
72
- "@wordpress/icons": "^16.0.0",
73
- "@wordpress/keyboard-shortcuts": "^5.55.0",
74
- "@wordpress/keycodes": "^4.55.0",
75
- "@wordpress/notices": "^5.55.0",
76
- "@wordpress/patterns": "^2.55.0",
77
- "@wordpress/plugins": "^7.55.0",
78
- "@wordpress/preferences": "^4.55.0",
79
- "@wordpress/private-apis": "^1.55.0",
80
- "@wordpress/router": "^1.55.0",
81
- "@wordpress/theme": "^2.1.0",
82
- "@wordpress/ui": "^0.22.0",
83
- "@wordpress/url": "^4.55.0",
84
- "@wordpress/views": "^1.22.0",
85
- "@wordpress/widgets": "^4.55.0",
50
+ "@wordpress/a11y": "^4.55.1-next.v.202609171837.0",
51
+ "@wordpress/admin-ui": "^2.10.1-next.v.202609171837.0",
52
+ "@wordpress/api-fetch": "^7.55.1-next.v.202609171837.0",
53
+ "@wordpress/base-styles": "^13.2.1-next.v.202609171837.0",
54
+ "@wordpress/block-editor": "^17.2.1-next.v.202609171837.0",
55
+ "@wordpress/block-library": "^11.0.2-next.v.202609171837.0",
56
+ "@wordpress/blocks": "^16.1.1-next.v.202609171837.0",
57
+ "@wordpress/commands": "^1.55.2-next.v.202609171837.0",
58
+ "@wordpress/components": "^41.0.1-next.v.202609171837.0",
59
+ "@wordpress/compose": "^8.8.2-next.v.202609171837.0",
60
+ "@wordpress/core-data": "^8.0.2-next.v.202609171837.0",
61
+ "@wordpress/data": "^10.56.1-next.v.202609171837.0",
62
+ "@wordpress/dataviews": "^19.0.2-next.v.202609171837.0",
63
+ "@wordpress/deprecated": "^4.55.1-next.v.202609171837.0",
64
+ "@wordpress/dom": "^4.55.2-next.v.202609171837.0",
65
+ "@wordpress/editor": "^15.1.1-next.v.202609171837.0",
66
+ "@wordpress/element": "^8.7.1-next.v.202609171837.0",
67
+ "@wordpress/fields": "^0.47.2-next.v.202609171837.0",
68
+ "@wordpress/global-styles-engine": "^1.23.1-next.v.202609171837.0",
69
+ "@wordpress/global-styles-ui": "^1.23.1-next.v.202609171837.0",
70
+ "@wordpress/html-entities": "^4.55.1-next.v.202609171837.0",
71
+ "@wordpress/i18n": "^6.28.1-next.v.202609171837.0",
72
+ "@wordpress/icons": "^17.0.1-next.v.202609171837.0",
73
+ "@wordpress/keyboard-shortcuts": "^5.56.1-next.v.202609171837.0",
74
+ "@wordpress/keycodes": "^4.56.1-next.v.202609171837.0",
75
+ "@wordpress/notices": "^5.55.1-next.v.202609171837.0",
76
+ "@wordpress/patterns": "^2.55.1-next.v.202609171837.0",
77
+ "@wordpress/plugins": "^7.55.1-next.v.202609171837.0",
78
+ "@wordpress/preferences": "^4.55.1-next.v.202609171837.0",
79
+ "@wordpress/private-apis": "^1.55.1-next.v.202609171837.0",
80
+ "@wordpress/router": "^1.55.1-next.v.202609171837.0",
81
+ "@wordpress/theme": "^2.1.2-next.v.202609171837.0",
82
+ "@wordpress/ui": "^0.23.1-next.v.202609171837.0",
83
+ "@wordpress/url": "^4.55.1-next.v.202609171837.0",
84
+ "@wordpress/views": "^1.22.1-next.v.202609171837.0",
85
+ "@wordpress/widgets": "^4.55.1-next.v.202609171837.0",
86
86
  "change-case": "^4.1.2",
87
87
  "clsx": "^2.1.1"
88
88
  },
@@ -96,5 +96,5 @@
96
96
  "publishConfig": {
97
97
  "access": "public"
98
98
  },
99
- "gitHead": "485f42ae8a1c58ceea18371a507fd4acfa86fbd8"
99
+ "gitHead": "7fc9f6676debc888d2f071d17cb71837040d4b48"
100
100
  }
@@ -51,7 +51,7 @@ export default function AddNewPostModal( { postType, onSave, onClose } ) {
51
51
  [],
52
52
  postTypeObject.template
53
53
  )
54
- )
54
+ )
55
55
  : undefined,
56
56
  },
57
57
  { throwOnError: true }
@@ -267,7 +267,7 @@ export const usePostTypeMenuItems = ( onClickMenuItem ) => {
267
267
  _x( '%1$s (%2$s)', 'post type menu label' ),
268
268
  labels.template_name,
269
269
  slug
270
- )
270
+ )
271
271
  : sprintf(
272
272
  // translators: 1: Name of the post type e.g: "Post". 2: Slug of the post type e.g: "book".
273
273
  _x(
@@ -276,13 +276,13 @@ export const usePostTypeMenuItems = ( onClickMenuItem ) => {
276
276
  ),
277
277
  labels.singular_name,
278
278
  slug
279
- );
279
+ );
280
280
  }
281
281
  const menuItem = defaultTemplateType
282
282
  ? {
283
283
  ...defaultTemplateType,
284
284
  templatePrefix: templatePrefixes[ slug ],
285
- }
285
+ }
286
286
  : {
287
287
  slug: generalTemplateSlug,
288
288
  title: menuItemTitle,
@@ -300,7 +300,7 @@ export const usePostTypeMenuItems = ( onClickMenuItem ) => {
300
300
  ? icon.slice( 10 )
301
301
  : post,
302
302
  templatePrefix: templatePrefixes[ slug ],
303
- };
303
+ };
304
304
  const hasEntities = postTypesInfo?.[ slug ]?.hasEntities;
305
305
  // We have a different template creation flow only if they have entities.
306
306
  if ( hasEntities ) {
@@ -437,19 +437,19 @@ export const useTaxonomiesMenuItems = ( onClickMenuItem ) => {
437
437
  _x( '%1$s (%2$s)', 'taxonomy template menu label' ),
438
438
  labels.template_name,
439
439
  slug
440
- )
440
+ )
441
441
  : sprintf(
442
442
  // translators: 1: Name of the taxonomy e.g: "Category". 2: Slug of the taxonomy e.g: "product_cat".
443
443
  _x( '%1$s (%2$s)', 'taxonomy menu label' ),
444
444
  labels.singular_name,
445
445
  slug
446
- );
446
+ );
447
447
  }
448
448
  const menuItem = defaultTemplateType
449
449
  ? {
450
450
  ...defaultTemplateType,
451
451
  templatePrefix: templatePrefixes[ slug ],
452
- }
452
+ }
453
453
  : {
454
454
  slug: generalTemplateSlug,
455
455
  title: menuItemTitle,
@@ -460,7 +460,7 @@ export const useTaxonomiesMenuItems = ( onClickMenuItem ) => {
460
460
  ),
461
461
  icon: blockMeta,
462
462
  templatePrefix: templatePrefixes[ slug ],
463
- };
463
+ };
464
464
  const hasEntities = taxonomiesInfo?.[ slug ]?.hasEntities;
465
465
  // We have a different template creation flow only if they have entities.
466
466
  if ( hasEntities ) {
@@ -84,7 +84,7 @@ export function useSpecificEditorSettings() {
84
84
  currentPostIsTrashed
85
85
  ? ''
86
86
  : 'cursor: pointer;'
87
- }}`
87
+ }}`
88
88
  : undefined,
89
89
  },
90
90
  ],
@@ -7,7 +7,7 @@ import {
7
7
  } from '@wordpress/editor';
8
8
  import { __, isRTL, sprintf } from '@wordpress/i18n';
9
9
  import { store as coreDataStore } from '@wordpress/core-data';
10
- import { useCallback } from '@wordpress/element';
10
+ import { useCallback, useEffect } from '@wordpress/element';
11
11
  import { store as noticesStore } from '@wordpress/notices';
12
12
  import { privateApis as routerPrivateApis } from '@wordpress/router';
13
13
  import { decodeEntities } from '@wordpress/html-entities';
@@ -74,7 +74,13 @@ function getNavigationPath( location, postType ) {
74
74
  return addQueryArgs( path, { canvas: undefined, revision: undefined } );
75
75
  }
76
76
 
77
- export default function EditSiteEditor( { isHomeRoute = false } ) {
77
+ export default function EditSiteEditor( {
78
+ isHomeRoute = false,
79
+ // Routes that stand for the whole site pass 'template-locked', so the
80
+ // canvas shows the template around whatever it is rendering, and the
81
+ // controls for switching it are not offered.
82
+ renderingMode,
83
+ } ) {
78
84
  const location = useLocation();
79
85
  const history = useHistory();
80
86
  const { canvas = 'view' } = location.query;
@@ -108,7 +114,25 @@ export default function EditSiteEditor( { isHomeRoute = false } ) {
108
114
 
109
115
  const editorSettings = useSpecificEditorSettings();
110
116
  const { resetZoomLevel } = unlock( useDispatch( blockEditorStore ) );
111
- const { setCurrentRevisionId } = unlock( useDispatch( editorStore ) );
117
+ const { setCurrentRevisionId, resetStylesNavigation } = unlock(
118
+ useDispatch( editorStore )
119
+ );
120
+
121
+ // Revisions and the style book render in place of the block editor, and
122
+ // belong to the styles route in edit mode. Anywhere else they would show
123
+ // the styles canvas where the block editor is expected: a site preview
124
+ // that cannot be clicked into, or the next route's content missing.
125
+ //
126
+ // Routes render their own element for this area, so navigating between
127
+ // them remounts this component. The check therefore runs on every render
128
+ // rather than on a transition, which a remount would never observe.
129
+ const isStylesEditing = isEditMode && location.name === 'styles';
130
+ useEffect( () => {
131
+ if ( ! isStylesEditing ) {
132
+ resetStylesNavigation();
133
+ }
134
+ }, [ isStylesEditing, resetStylesNavigation ] );
135
+
112
136
  const { createSuccessNotice } = useDispatch( noticesStore );
113
137
  const onActionPerformed = useCallback(
114
138
  ( actionId, items ) => {
@@ -182,6 +206,7 @@ export default function EditSiteEditor( { isHomeRoute = false } ) {
182
206
  postId={ postWithTemplate ? context.postId : postId }
183
207
  templateId={ postWithTemplate ? postId : undefined }
184
208
  settings={ editorSettings }
209
+ renderingMode={ renderingMode }
185
210
  className="edit-site-editor__editor-interface"
186
211
  customSaveButton={
187
212
  _isPreviewingTheme && <SaveButton size="compact" />
@@ -47,7 +47,8 @@ const CONTENT_COLOR = { background: '#fcfcfc' };
47
47
  function Layout() {
48
48
  const { query, name: routeKey, areas, widths } = useLocation();
49
49
  // Force canvas to 'view' on notfound route to show the error message and allow navigation.
50
- const canvas = routeKey === 'notfound' ? 'view' : query?.canvas ?? 'view';
50
+ const canvas =
51
+ routeKey === 'notfound' ? 'view' : ( query?.canvas ?? 'view' );
51
52
  const showMobileSiteHub = !! areas.mobileContent;
52
53
  const hasMobileAreas =
53
54
  areas.mobileSidebar || areas.mobileContent || areas.preview;
@@ -80,7 +81,7 @@ function Layout() {
80
81
  if ( previousCanvaMode === 'edit' ) {
81
82
  const desktopToggle = sidebarRegionRef.current
82
83
  ? // We're typically expecting the `<DashboardBackButton />` component as the first tabbable element.
83
- focus.tabbable.find( sidebarRegionRef.current )[ 0 ]
84
+ focus.tabbable.find( sidebarRegionRef.current )[ 0 ]
84
85
  : undefined;
85
86
  ( desktopToggle ?? mobileToggleRef.current )?.focus();
86
87
  }
@@ -12,6 +12,7 @@ export default function WelcomeGuideMenuItem() {
12
12
  return (
13
13
  <MoreMenuItem
14
14
  onClick={ () => toggle( 'core/edit-site', 'welcomeGuide' ) }
15
+ aria-haspopup="dialog"
15
16
  >
16
17
  { __( 'Welcome Guide' ) }
17
18
  </MoreMenuItem>
@@ -61,7 +61,7 @@ export default function DeleteCategoryMenuItem( { category, onClose } ) {
61
61
  ? error.message
62
62
  : __(
63
63
  'An error occurred while deleting the pattern category.'
64
- );
64
+ );
65
65
 
66
66
  createErrorNotice( errorMessage, {
67
67
  type: 'snackbar',
@@ -134,7 +134,7 @@ export default function PageTemplates() {
134
134
  ? () => {
135
135
  resetToDefault();
136
136
  history.invalidate();
137
- }
137
+ }
138
138
  : false
139
139
  }
140
140
  />
@@ -307,7 +307,7 @@ export default function PostList( { postType } ) {
307
307
  ? () => {
308
308
  resetToDefault();
309
309
  history.invalidate();
310
- }
310
+ }
311
311
  : false
312
312
  }
313
313
  />
@@ -250,7 +250,7 @@ function ResizableFrame( {
250
250
  duration: disableMotion ? 0 : 0.5,
251
251
  ease: 'easeOut',
252
252
  },
253
- }
253
+ }
254
254
  : {}
255
255
  }
256
256
  transition={ FRAME_TRANSITION }
@@ -71,7 +71,7 @@ function SidebarContentWrapper( { children, shouldAnimate } ) {
71
71
  ? {
72
72
  'slide-from-left': navAnimation === 'back',
73
73
  'slide-from-right': navAnimation === 'forward',
74
- }
74
+ }
75
75
  : {}
76
76
  );
77
77
 
@@ -100,7 +100,7 @@ export default function SidebarNavigationScreen( {
100
100
  __( 'Previewing %1$s: %2$s' ),
101
101
  previewingThemeName,
102
102
  title
103
- ) }
103
+ ) }
104
104
  </Heading>
105
105
  { actions && (
106
106
  <div className="edit-site-sidebar-navigation-screen__actions">
@@ -37,10 +37,10 @@ export default function SidebarNavigationScreenGlobalStyles() {
37
37
  }, [ path, history, openGeneralSidebar, setPreference ] );
38
38
 
39
39
  const openRevisions = useCallback( async () => {
40
- await openGlobalStyles();
41
- // Open the global styles revisions once the canvas mode is set to edit,
42
- // and the global styles sidebar is open. Set the path to revisions.
40
+ // Select revisions before opening the sidebar. The sidebar resets its
41
+ // navigation as it opens, so a path set afterwards would be discarded.
43
42
  setStylesPath( '/revisions' );
43
+ await openGlobalStyles();
44
44
  }, [ openGlobalStyles, setStylesPath ] );
45
45
 
46
46
  // If there are no revisions, do not render a footer.
@@ -22,7 +22,7 @@ export const homeRoute = {
22
22
  const isBlockTheme = siteData.currentTheme?.is_block_theme;
23
23
  return isBlockTheme ||
24
24
  isClassicThemeWithStyleBookSupport( siteData ) ? (
25
- <Editor isHomeRoute />
25
+ <Editor isHomeRoute renderingMode="template-locked" />
26
26
  ) : undefined;
27
27
  },
28
28
  mobileSidebar( { siteData } ) {