@wordpress/editor 14.19.1 → 14.20.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 (79) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/components/commands/index.js +1 -1
  3. package/build/components/commands/index.js.map +1 -1
  4. package/build/components/post-actions/actions.js +10 -8
  5. package/build/components/post-actions/actions.js.map +1 -1
  6. package/build/components/post-publish-panel/maybe-category-panel.js +19 -3
  7. package/build/components/post-publish-panel/maybe-category-panel.js.map +1 -1
  8. package/build/components/post-publish-panel/maybe-tags-panel.js +16 -6
  9. package/build/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
  10. package/build/components/post-status/index.js +1 -1
  11. package/build/components/post-status/index.js.map +1 -1
  12. package/build/components/post-sticky/index.js +1 -1
  13. package/build/components/post-sticky/index.js.map +1 -1
  14. package/build/components/post-template/hooks.js +6 -5
  15. package/build/components/post-template/hooks.js.map +1 -1
  16. package/build/components/post-template/swap-template-button.js +2 -3
  17. package/build/components/post-template/swap-template-button.js.map +1 -1
  18. package/build/components/post-visibility/index.js +39 -109
  19. package/build/components/post-visibility/index.js.map +1 -1
  20. package/build/components/post-visibility/label.js +2 -2
  21. package/build/components/post-visibility/label.js.map +1 -1
  22. package/build/components/post-visibility/utils.js +14 -15
  23. package/build/components/post-visibility/utils.js.map +1 -1
  24. package/build/components/provider/index.js +7 -4
  25. package/build/components/provider/index.js.map +1 -1
  26. package/build-module/components/commands/index.js +1 -1
  27. package/build-module/components/commands/index.js.map +1 -1
  28. package/build-module/components/post-actions/actions.js +10 -8
  29. package/build-module/components/post-actions/actions.js.map +1 -1
  30. package/build-module/components/post-publish-panel/maybe-category-panel.js +19 -3
  31. package/build-module/components/post-publish-panel/maybe-category-panel.js.map +1 -1
  32. package/build-module/components/post-publish-panel/maybe-tags-panel.js +16 -6
  33. package/build-module/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
  34. package/build-module/components/post-status/index.js +1 -1
  35. package/build-module/components/post-status/index.js.map +1 -1
  36. package/build-module/components/post-sticky/index.js +1 -1
  37. package/build-module/components/post-sticky/index.js.map +1 -1
  38. package/build-module/components/post-template/hooks.js +6 -5
  39. package/build-module/components/post-template/hooks.js.map +1 -1
  40. package/build-module/components/post-template/swap-template-button.js +2 -3
  41. package/build-module/components/post-template/swap-template-button.js.map +1 -1
  42. package/build-module/components/post-visibility/index.js +41 -111
  43. package/build-module/components/post-visibility/index.js.map +1 -1
  44. package/build-module/components/post-visibility/label.js +3 -3
  45. package/build-module/components/post-visibility/label.js.map +1 -1
  46. package/build-module/components/post-visibility/utils.js +13 -14
  47. package/build-module/components/post-visibility/utils.js.map +1 -1
  48. package/build-module/components/provider/index.js +7 -4
  49. package/build-module/components/provider/index.js.map +1 -1
  50. package/build-style/style-rtl.css +2 -137
  51. package/build-style/style.css +2 -137
  52. package/build-types/components/post-actions/actions.d.ts.map +1 -1
  53. package/build-types/components/post-publish-panel/maybe-category-panel.d.ts.map +1 -1
  54. package/build-types/components/post-publish-panel/maybe-tags-panel.d.ts.map +1 -1
  55. package/build-types/components/post-template/hooks.d.ts.map +1 -1
  56. package/build-types/components/post-template/swap-template-button.d.ts +1 -1
  57. package/build-types/components/post-template/swap-template-button.d.ts.map +1 -1
  58. package/build-types/components/post-visibility/index.d.ts.map +1 -1
  59. package/build-types/components/post-visibility/label.d.ts.map +1 -1
  60. package/build-types/components/post-visibility/utils.d.ts +5 -20
  61. package/build-types/components/post-visibility/utils.d.ts.map +1 -1
  62. package/build-types/components/provider/index.d.ts.map +1 -1
  63. package/package.json +37 -37
  64. package/src/components/autocompleters/style.scss +2 -3
  65. package/src/components/commands/index.js +1 -1
  66. package/src/components/post-actions/actions.js +13 -8
  67. package/src/components/post-publish-panel/maybe-category-panel.js +20 -5
  68. package/src/components/post-publish-panel/maybe-tags-panel.js +39 -22
  69. package/src/components/post-status/index.js +1 -1
  70. package/src/components/post-sticky/index.js +1 -1
  71. package/src/components/post-template/hooks.js +12 -8
  72. package/src/components/post-template/swap-template-button.js +6 -4
  73. package/src/components/post-visibility/index.js +41 -118
  74. package/src/components/post-visibility/label.js +7 -4
  75. package/src/components/post-visibility/utils.js +11 -8
  76. package/src/components/provider/index.js +9 -4
  77. package/src/style.scss +0 -1
  78. package/tsconfig.tsbuildinfo +1 -1
  79. package/src/components/post-visibility/style.scss +0 -27
@@ -467,7 +467,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
467
467
  }
468
468
  .editor-autocompleters__user .editor-autocompleters__user-slug {
469
469
  margin-right: 8px;
470
- color: #757575;
471
470
  white-space: nowrap;
472
471
  text-overflow: ellipsis;
473
472
  overflow: none;
@@ -475,8 +474,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
475
474
  flex-grow: 0;
476
475
  flex-shrink: 0;
477
476
  }
478
- .editor-autocompleters__user:hover .editor-autocompleters__user-slug {
479
- color: var(--wp-admin-theme-color);
477
+ .editor-autocompleters__user:not(.is-primary) .editor-autocompleters__user-slug {
478
+ color: #757575;
480
479
  }
481
480
 
482
481
  .interface-interface-skeleton__sidebar:has(.editor-collab-sidebar) {
@@ -2174,140 +2173,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2174
2173
  display: block;
2175
2174
  }
2176
2175
 
2177
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio] {
2178
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2179
- padding: 6px 8px;
2180
- box-shadow: 0 0 0 transparent;
2181
- border-radius: 2px;
2182
- border: 1px solid #949494;
2183
- /* Fonts smaller than 16px causes mobile safari to zoom. */
2184
- font-size: 16px;
2185
- /* Override core line-height. To be reviewed. */
2186
- line-height: normal;
2187
- border: 1px solid #1e1e1e;
2188
- margin-left: 12px;
2189
- transition: none;
2190
- border-radius: 50%;
2191
- width: 24px;
2192
- height: 24px;
2193
- min-width: 24px;
2194
- max-width: 24px;
2195
- position: relative;
2196
- margin-top: 2px;
2197
- }
2198
- @media not (prefers-reduced-motion) {
2199
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio] {
2200
- transition: box-shadow 0.1s linear;
2201
- }
2202
- }
2203
- @media (min-width: 600px) {
2204
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio] {
2205
- font-size: 13px;
2206
- /* Override core line-height. To be reviewed. */
2207
- line-height: normal;
2208
- }
2209
- }
2210
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus {
2211
- border-color: var(--wp-admin-theme-color);
2212
- box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
2213
- outline: 2px solid transparent;
2214
- }
2215
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-webkit-input-placeholder {
2216
- color: rgba(30, 30, 30, 0.62);
2217
- }
2218
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-moz-placeholder {
2219
- color: rgba(30, 30, 30, 0.62);
2220
- }
2221
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:-ms-input-placeholder {
2222
- color: rgba(30, 30, 30, 0.62);
2223
- }
2224
- @media (min-width: 600px) {
2225
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio] {
2226
- height: 16px;
2227
- width: 16px;
2228
- min-width: 16px;
2229
- max-width: 16px;
2230
- }
2231
- }
2232
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked::before {
2233
- box-sizing: inherit;
2234
- width: 12px;
2235
- height: 12px;
2236
- position: absolute;
2237
- top: 50%;
2238
- right: 50%;
2239
- transform: translate(50%, -50%);
2240
- margin: 0;
2241
- background-color: #fff;
2242
- border: 4px solid #fff;
2243
- }
2244
- @media (min-width: 600px) {
2245
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked::before {
2246
- width: 8px;
2247
- height: 8px;
2248
- }
2249
- }
2250
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus {
2251
- box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color);
2252
- outline: 2px solid transparent;
2253
- }
2254
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked {
2255
- background: var(--wp-admin-theme-color);
2256
- border: none;
2257
- }
2258
- .editor-post-visibility__fieldset .editor-post-visibility__info {
2259
- color: #757575;
2260
- margin-right: 36px;
2261
- margin-top: 0.5em;
2262
- }
2263
- @media (min-width: 600px) {
2264
- .editor-post-visibility__fieldset .editor-post-visibility__info {
2265
- margin-right: 28px;
2266
- }
2267
- }
2268
- .editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info {
2269
- margin-bottom: 0;
2270
- }
2271
- .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text] {
2272
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2273
- padding: 6px 8px;
2274
- box-shadow: 0 0 0 transparent;
2275
- border-radius: 2px;
2276
- border: 1px solid #949494;
2277
- /* Fonts smaller than 16px causes mobile safari to zoom. */
2278
- font-size: 16px;
2279
- /* Override core line-height. To be reviewed. */
2280
- line-height: normal;
2281
- margin-right: 32px;
2282
- width: calc(100% - 32px);
2283
- }
2284
- @media not (prefers-reduced-motion) {
2285
- .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text] {
2286
- transition: box-shadow 0.1s linear;
2287
- }
2288
- }
2289
- @media (min-width: 600px) {
2290
- .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text] {
2291
- font-size: 13px;
2292
- /* Override core line-height. To be reviewed. */
2293
- line-height: normal;
2294
- }
2295
- }
2296
- .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:focus {
2297
- border-color: var(--wp-admin-theme-color);
2298
- box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
2299
- outline: 2px solid transparent;
2300
- }
2301
- .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-webkit-input-placeholder {
2302
- color: rgba(30, 30, 30, 0.62);
2303
- }
2304
- .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-moz-placeholder {
2305
- color: rgba(30, 30, 30, 0.62);
2306
- }
2307
- .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:-ms-input-placeholder {
2308
- color: rgba(30, 30, 30, 0.62);
2309
- }
2310
-
2311
2176
  .editor-posts-per-page-dropdown__content .components-popover__content {
2312
2177
  min-width: 320px;
2313
2178
  padding: 16px;
@@ -467,7 +467,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
467
467
  }
468
468
  .editor-autocompleters__user .editor-autocompleters__user-slug {
469
469
  margin-left: 8px;
470
- color: #757575;
471
470
  white-space: nowrap;
472
471
  text-overflow: ellipsis;
473
472
  overflow: none;
@@ -475,8 +474,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
475
474
  flex-grow: 0;
476
475
  flex-shrink: 0;
477
476
  }
478
- .editor-autocompleters__user:hover .editor-autocompleters__user-slug {
479
- color: var(--wp-admin-theme-color);
477
+ .editor-autocompleters__user:not(.is-primary) .editor-autocompleters__user-slug {
478
+ color: #757575;
480
479
  }
481
480
 
482
481
  .interface-interface-skeleton__sidebar:has(.editor-collab-sidebar) {
@@ -2178,140 +2177,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2178
2177
  display: block;
2179
2178
  }
2180
2179
 
2181
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio] {
2182
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2183
- padding: 6px 8px;
2184
- box-shadow: 0 0 0 transparent;
2185
- border-radius: 2px;
2186
- border: 1px solid #949494;
2187
- /* Fonts smaller than 16px causes mobile safari to zoom. */
2188
- font-size: 16px;
2189
- /* Override core line-height. To be reviewed. */
2190
- line-height: normal;
2191
- border: 1px solid #1e1e1e;
2192
- margin-right: 12px;
2193
- transition: none;
2194
- border-radius: 50%;
2195
- width: 24px;
2196
- height: 24px;
2197
- min-width: 24px;
2198
- max-width: 24px;
2199
- position: relative;
2200
- margin-top: 2px;
2201
- }
2202
- @media not (prefers-reduced-motion) {
2203
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio] {
2204
- transition: box-shadow 0.1s linear;
2205
- }
2206
- }
2207
- @media (min-width: 600px) {
2208
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio] {
2209
- font-size: 13px;
2210
- /* Override core line-height. To be reviewed. */
2211
- line-height: normal;
2212
- }
2213
- }
2214
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus {
2215
- border-color: var(--wp-admin-theme-color);
2216
- box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
2217
- outline: 2px solid transparent;
2218
- }
2219
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-webkit-input-placeholder {
2220
- color: rgba(30, 30, 30, 0.62);
2221
- }
2222
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-moz-placeholder {
2223
- color: rgba(30, 30, 30, 0.62);
2224
- }
2225
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:-ms-input-placeholder {
2226
- color: rgba(30, 30, 30, 0.62);
2227
- }
2228
- @media (min-width: 600px) {
2229
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio] {
2230
- height: 16px;
2231
- width: 16px;
2232
- min-width: 16px;
2233
- max-width: 16px;
2234
- }
2235
- }
2236
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked::before {
2237
- box-sizing: inherit;
2238
- width: 12px;
2239
- height: 12px;
2240
- position: absolute;
2241
- top: 50%;
2242
- left: 50%;
2243
- transform: translate(-50%, -50%);
2244
- margin: 0;
2245
- background-color: #fff;
2246
- border: 4px solid #fff;
2247
- }
2248
- @media (min-width: 600px) {
2249
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked::before {
2250
- width: 8px;
2251
- height: 8px;
2252
- }
2253
- }
2254
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus {
2255
- box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color);
2256
- outline: 2px solid transparent;
2257
- }
2258
- .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked {
2259
- background: var(--wp-admin-theme-color);
2260
- border: none;
2261
- }
2262
- .editor-post-visibility__fieldset .editor-post-visibility__info {
2263
- color: #757575;
2264
- margin-left: 36px;
2265
- margin-top: 0.5em;
2266
- }
2267
- @media (min-width: 600px) {
2268
- .editor-post-visibility__fieldset .editor-post-visibility__info {
2269
- margin-left: 28px;
2270
- }
2271
- }
2272
- .editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info {
2273
- margin-bottom: 0;
2274
- }
2275
- .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text] {
2276
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2277
- padding: 6px 8px;
2278
- box-shadow: 0 0 0 transparent;
2279
- border-radius: 2px;
2280
- border: 1px solid #949494;
2281
- /* Fonts smaller than 16px causes mobile safari to zoom. */
2282
- font-size: 16px;
2283
- /* Override core line-height. To be reviewed. */
2284
- line-height: normal;
2285
- margin-left: 32px;
2286
- width: calc(100% - 32px);
2287
- }
2288
- @media not (prefers-reduced-motion) {
2289
- .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text] {
2290
- transition: box-shadow 0.1s linear;
2291
- }
2292
- }
2293
- @media (min-width: 600px) {
2294
- .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text] {
2295
- font-size: 13px;
2296
- /* Override core line-height. To be reviewed. */
2297
- line-height: normal;
2298
- }
2299
- }
2300
- .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:focus {
2301
- border-color: var(--wp-admin-theme-color);
2302
- box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
2303
- outline: 2px solid transparent;
2304
- }
2305
- .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-webkit-input-placeholder {
2306
- color: rgba(30, 30, 30, 0.62);
2307
- }
2308
- .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-moz-placeholder {
2309
- color: rgba(30, 30, 30, 0.62);
2310
- }
2311
- .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:-ms-input-placeholder {
2312
- color: rgba(30, 30, 30, 0.62);
2313
- }
2314
-
2315
2180
  .editor-posts-per-page-dropdown__content .components-popover__content {
2316
2181
  min-width: 320px;
2317
2182
  padding: 16px;
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/components/post-actions/actions.js"],"names":[],"mappings":"AAeA;;;;UAwHC"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/components/post-actions/actions.js"],"names":[],"mappings":"AAeA;;;;UA6HC"}
@@ -1 +1 @@
1
- {"version":3,"file":"maybe-category-panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-panel/maybe-category-panel.js"],"names":[],"mappings":";AAeA,0EAqEC"}
1
+ {"version":3,"file":"maybe-category-panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-panel/maybe-category-panel.js"],"names":[],"mappings":";AAeA,0EAoFC"}
@@ -1 +1 @@
1
- {"version":3,"file":"maybe-tags-panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-panel/maybe-tags-panel.js"],"names":[],"mappings":";AAmCA,sEAyCC"}
1
+ {"version":3,"file":"maybe-tags-panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-panel/maybe-tags-panel.js"],"names":[],"mappings":";AAmCA,sEA0DC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/hooks.js"],"names":[],"mappings":"AAYA;;;EAQC;AACD,sDA0BC;AAaD,yuEAeC;AAED,8CAuBC"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/hooks.js"],"names":[],"mappings":"AAYA;;;EAQC;AACD,sDA8BC;AAaD,yuEAeC;AAED,8CAuBC"}
@@ -1,4 +1,4 @@
1
1
  export default function SwapTemplateButton({ onClick }: {
2
2
  onClick: any;
3
- }): import("react").JSX.Element | null;
3
+ }): import("react").JSX.Element;
4
4
  //# sourceMappingURL=swap-template-button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"swap-template-button.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/swap-template-button.js"],"names":[],"mappings":"AAiBA;;uCAyCC"}
1
+ {"version":3,"file":"swap-template-button.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/swap-template-button.js"],"names":[],"mappings":"AAiBA;;gCA2CC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-visibility/index.js"],"names":[],"mappings":"AAmBA;;;;;;GAMG;AACH,oDAHG;IAAwB,OAAO;CAC/B,GAAS,KAAK,CAAC,SAAS,CAqH1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-visibility/index.js"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH,oDAHG;IAAwB,OAAO;CAC/B,GAAS,KAAK,CAAC,SAAS,CAmE1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/post-visibility/label.js"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,+CAFY,MAAM,CAIjB;AAED;;;;GAIG;AACH,0CAFY,MAAM,CAOjB"}
1
+ {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/post-visibility/label.js"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,+CAFY,MAAM,CAIjB;AAED;;;;GAIG;AACH,0CAFY,MAAM,CAUjB"}
@@ -1,21 +1,6 @@
1
- export namespace visibilityOptions {
2
- export namespace _public {
3
- let label: string;
4
- let info: string;
5
- }
6
- export { _public as public };
7
- export namespace _private {
8
- let label_1: string;
9
- export { label_1 as label };
10
- let info_1: string;
11
- export { info_1 as info };
12
- }
13
- export { _private as private };
14
- export namespace password {
15
- let label_2: string;
16
- export { label_2 as label };
17
- let info_2: string;
18
- export { info_2 as info };
19
- }
20
- }
1
+ export const VISIBILITY_OPTIONS: {
2
+ label: string;
3
+ value: string;
4
+ description: string;
5
+ }[];
21
6
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/post-visibility/utils.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/post-visibility/utils.js"],"names":[],"mappings":"AAKA;;;;IAgBE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AAoYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAgC,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ,GAAhC,KAAK,CAAC,SAAS;CAGvB,GAWS,KAAK,CAAC,SAAS,CAW1B;AA1SD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GAuOE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AAyYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAgC,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ,GAAhC,KAAK,CAAC,SAAS;CAGvB,GAWS,KAAK,CAAC,SAAS,CAW1B;AA/SD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GA4OE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/editor",
3
- "version": "14.19.1",
3
+ "version": "14.20.0",
4
4
  "description": "Enhanced block editor for WordPress posts.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -34,41 +34,41 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@babel/runtime": "7.25.7",
37
- "@wordpress/a11y": "^4.19.1",
38
- "@wordpress/api-fetch": "^7.19.1",
39
- "@wordpress/blob": "^4.19.1",
40
- "@wordpress/block-editor": "^14.14.1",
41
- "@wordpress/blocks": "^14.8.1",
42
- "@wordpress/commands": "^1.19.1",
43
- "@wordpress/components": "^29.5.1",
44
- "@wordpress/compose": "^7.19.1",
45
- "@wordpress/core-data": "^7.19.1",
46
- "@wordpress/data": "^10.19.1",
47
- "@wordpress/dataviews": "^4.15.1",
48
- "@wordpress/date": "^5.19.1",
49
- "@wordpress/deprecated": "^4.19.1",
50
- "@wordpress/dom": "^4.19.1",
51
- "@wordpress/element": "^6.19.1",
52
- "@wordpress/fields": "^0.11.1",
53
- "@wordpress/hooks": "^4.19.1",
54
- "@wordpress/html-entities": "^4.19.1",
55
- "@wordpress/i18n": "^5.19.1",
56
- "@wordpress/icons": "^10.19.1",
57
- "@wordpress/interface": "^9.4.1",
58
- "@wordpress/keyboard-shortcuts": "^5.19.1",
59
- "@wordpress/keycodes": "^4.19.1",
60
- "@wordpress/media-utils": "^5.19.1",
61
- "@wordpress/notices": "^5.19.1",
62
- "@wordpress/patterns": "^2.19.1",
63
- "@wordpress/plugins": "^7.19.1",
64
- "@wordpress/preferences": "^4.19.1",
65
- "@wordpress/private-apis": "^1.19.1",
66
- "@wordpress/reusable-blocks": "^5.19.1",
67
- "@wordpress/rich-text": "^7.19.1",
68
- "@wordpress/server-side-render": "^5.19.1",
69
- "@wordpress/url": "^4.19.1",
70
- "@wordpress/warning": "^3.19.1",
71
- "@wordpress/wordcount": "^4.19.1",
37
+ "@wordpress/a11y": "^4.20.0",
38
+ "@wordpress/api-fetch": "^7.20.0",
39
+ "@wordpress/blob": "^4.20.0",
40
+ "@wordpress/block-editor": "^14.15.0",
41
+ "@wordpress/blocks": "^14.9.0",
42
+ "@wordpress/commands": "^1.20.0",
43
+ "@wordpress/components": "^29.6.0",
44
+ "@wordpress/compose": "^7.20.0",
45
+ "@wordpress/core-data": "^7.20.0",
46
+ "@wordpress/data": "^10.20.0",
47
+ "@wordpress/dataviews": "^4.16.0",
48
+ "@wordpress/date": "^5.20.0",
49
+ "@wordpress/deprecated": "^4.20.0",
50
+ "@wordpress/dom": "^4.20.0",
51
+ "@wordpress/element": "^6.20.0",
52
+ "@wordpress/fields": "^0.12.0",
53
+ "@wordpress/hooks": "^4.20.0",
54
+ "@wordpress/html-entities": "^4.20.0",
55
+ "@wordpress/i18n": "^5.20.0",
56
+ "@wordpress/icons": "^10.20.0",
57
+ "@wordpress/interface": "^9.5.0",
58
+ "@wordpress/keyboard-shortcuts": "^5.20.0",
59
+ "@wordpress/keycodes": "^4.20.0",
60
+ "@wordpress/media-utils": "^5.20.0",
61
+ "@wordpress/notices": "^5.20.0",
62
+ "@wordpress/patterns": "^2.20.0",
63
+ "@wordpress/plugins": "^7.20.0",
64
+ "@wordpress/preferences": "^4.20.0",
65
+ "@wordpress/private-apis": "^1.20.0",
66
+ "@wordpress/reusable-blocks": "^5.20.0",
67
+ "@wordpress/rich-text": "^7.20.0",
68
+ "@wordpress/server-side-render": "^5.20.0",
69
+ "@wordpress/url": "^4.20.0",
70
+ "@wordpress/warning": "^3.20.0",
71
+ "@wordpress/wordcount": "^4.20.0",
72
72
  "change-case": "^4.1.2",
73
73
  "client-zip": "^2.4.5",
74
74
  "clsx": "^2.1.1",
@@ -88,5 +88,5 @@
88
88
  "publishConfig": {
89
89
  "access": "public"
90
90
  },
91
- "gitHead": "6f49fee89f840761f7fedf662713cbd4a71723e9"
91
+ "gitHead": "72476970386146d450c375e5c71a96dda7c9aaa8"
92
92
  }
@@ -24,7 +24,6 @@
24
24
  }
25
25
  .editor-autocompleters__user-slug {
26
26
  margin-left: 8px;
27
- color: $gray-700;
28
27
  white-space: nowrap;
29
28
  text-overflow: ellipsis;
30
29
  overflow: none;
@@ -32,7 +31,7 @@
32
31
  flex-grow: 0;
33
32
  flex-shrink: 0;
34
33
  }
35
- &:hover .editor-autocompleters__user-slug {
36
- color: var(--wp-admin-theme-color);
34
+ &:not(.is-primary) .editor-autocompleters__user-slug {
35
+ color: $gray-700;
37
36
  }
38
37
  }
@@ -223,7 +223,7 @@ const getEditorCommandLoader = () =>
223
223
 
224
224
  commands.push( {
225
225
  name: 'core/open-settings-sidebar',
226
- label: __( 'Show or hide the Settings panel.' ),
226
+ label: __( 'Show or hide the Settings panel' ),
227
227
  icon: isRTL() ? drawerLeft : drawerRight,
228
228
  callback: ( { close } ) => {
229
229
  const activeSidebar = getActiveComplementaryArea( 'core' );
@@ -26,21 +26,26 @@ export function usePostActions( { postType, onActionPerformed, context } ) {
26
26
 
27
27
  const { canManageOptions, hasFrontPageTemplate } = useSelect(
28
28
  ( select ) => {
29
- const { getEntityRecords } = select( coreStore );
30
- const templates = getEntityRecords( 'postType', 'wp_template', {
31
- per_page: -1,
29
+ const { getEntityRecords, canUser } = select( coreStore );
30
+ const canUpdateSettings = canUser( 'update', {
31
+ kind: 'root',
32
+ name: 'site',
32
33
  } );
34
+ const templates =
35
+ 'page' === postType && canUpdateSettings
36
+ ? getEntityRecords( 'postType', 'wp_template', {
37
+ per_page: -1,
38
+ } )
39
+ : [];
33
40
 
34
41
  return {
35
- canManageOptions: select( coreStore ).canUser( 'update', {
36
- kind: 'root',
37
- name: 'site',
38
- } ),
42
+ canManageOptions: canUpdateSettings,
39
43
  hasFrontPageTemplate: !! templates?.find(
40
44
  ( template ) => template?.slug === 'front-page'
41
45
  ),
42
46
  };
43
- }
47
+ },
48
+ [ postType ]
44
49
  );
45
50
 
46
51
  const setAsHomepageAction = useSetAsHomepageAction();
@@ -14,7 +14,7 @@ import HierarchicalTermSelector from '../post-taxonomies/hierarchical-term-selec
14
14
  import { store as editorStore } from '../../store';
15
15
 
16
16
  function MaybeCategoryPanel() {
17
- const hasNoCategory = useSelect( ( select ) => {
17
+ const { hasNoCategory, hasSiteCategories } = useSelect( ( select ) => {
18
18
  const postType = select( editorStore ).getCurrentPostType();
19
19
  const { canUser, getEntityRecord } = select( coreStore );
20
20
  const categoriesTaxonomy = getEntityRecord(
@@ -39,19 +39,30 @@ function MaybeCategoryPanel() {
39
39
  select( editorStore ).getEditedPostAttribute(
40
40
  categoriesTaxonomy.rest_base
41
41
  );
42
+ const siteCategories = postTypeSupportsCategories
43
+ ? !! select( coreStore ).getEntityRecords( 'taxonomy', 'category', {
44
+ exclude: [ defaultCategoryId ],
45
+ per_page: 1,
46
+ } )?.length
47
+ : false;
42
48
 
43
49
  // This boolean should return true if everything is loaded
44
50
  // ( categoriesTaxonomy, defaultCategory )
45
51
  // and the post has not been assigned a category different than "uncategorized".
46
- return (
52
+ const noCategory =
47
53
  !! categoriesTaxonomy &&
48
54
  !! defaultCategory &&
49
55
  postTypeSupportsCategories &&
50
56
  ( categories?.length === 0 ||
51
57
  ( categories?.length === 1 &&
52
- defaultCategory?.id === categories[ 0 ] ) )
53
- );
58
+ defaultCategory?.id === categories[ 0 ] ) );
59
+
60
+ return {
61
+ hasNoCategory: noCategory,
62
+ hasSiteCategories: siteCategories,
63
+ };
54
64
  }, [] );
65
+
55
66
  const [ shouldShowPanel, setShouldShowPanel ] = useState( false );
56
67
  useEffect( () => {
57
68
  // We use state to avoid hiding the panel if the user edits the categories
@@ -61,7 +72,11 @@ function MaybeCategoryPanel() {
61
72
  }
62
73
  }, [ hasNoCategory ] );
63
74
 
64
- if ( ! shouldShowPanel ) {
75
+ // We only want to show the category panel:
76
+ // if the post type supports categories,
77
+ // if the site has categories other than the default category,
78
+ // and if the post has no other categories than the default category.
79
+ if ( ! shouldShowPanel || ! hasSiteCategories ) {
65
80
  return null;
66
81
  }
67
82