@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.
- package/CHANGELOG.md +2 -0
- package/build/components/commands/index.js +1 -1
- package/build/components/commands/index.js.map +1 -1
- package/build/components/post-actions/actions.js +10 -8
- package/build/components/post-actions/actions.js.map +1 -1
- package/build/components/post-publish-panel/maybe-category-panel.js +19 -3
- package/build/components/post-publish-panel/maybe-category-panel.js.map +1 -1
- package/build/components/post-publish-panel/maybe-tags-panel.js +16 -6
- package/build/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
- package/build/components/post-status/index.js +1 -1
- package/build/components/post-status/index.js.map +1 -1
- package/build/components/post-sticky/index.js +1 -1
- package/build/components/post-sticky/index.js.map +1 -1
- package/build/components/post-template/hooks.js +6 -5
- package/build/components/post-template/hooks.js.map +1 -1
- package/build/components/post-template/swap-template-button.js +2 -3
- package/build/components/post-template/swap-template-button.js.map +1 -1
- package/build/components/post-visibility/index.js +39 -109
- package/build/components/post-visibility/index.js.map +1 -1
- package/build/components/post-visibility/label.js +2 -2
- package/build/components/post-visibility/label.js.map +1 -1
- package/build/components/post-visibility/utils.js +14 -15
- package/build/components/post-visibility/utils.js.map +1 -1
- package/build/components/provider/index.js +7 -4
- package/build/components/provider/index.js.map +1 -1
- package/build-module/components/commands/index.js +1 -1
- package/build-module/components/commands/index.js.map +1 -1
- package/build-module/components/post-actions/actions.js +10 -8
- package/build-module/components/post-actions/actions.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-category-panel.js +19 -3
- package/build-module/components/post-publish-panel/maybe-category-panel.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-tags-panel.js +16 -6
- package/build-module/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
- package/build-module/components/post-status/index.js +1 -1
- package/build-module/components/post-status/index.js.map +1 -1
- package/build-module/components/post-sticky/index.js +1 -1
- package/build-module/components/post-sticky/index.js.map +1 -1
- package/build-module/components/post-template/hooks.js +6 -5
- package/build-module/components/post-template/hooks.js.map +1 -1
- package/build-module/components/post-template/swap-template-button.js +2 -3
- package/build-module/components/post-template/swap-template-button.js.map +1 -1
- package/build-module/components/post-visibility/index.js +41 -111
- package/build-module/components/post-visibility/index.js.map +1 -1
- package/build-module/components/post-visibility/label.js +3 -3
- package/build-module/components/post-visibility/label.js.map +1 -1
- package/build-module/components/post-visibility/utils.js +13 -14
- package/build-module/components/post-visibility/utils.js.map +1 -1
- package/build-module/components/provider/index.js +7 -4
- package/build-module/components/provider/index.js.map +1 -1
- package/build-style/style-rtl.css +2 -137
- package/build-style/style.css +2 -137
- package/build-types/components/post-actions/actions.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/maybe-category-panel.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/maybe-tags-panel.d.ts.map +1 -1
- package/build-types/components/post-template/hooks.d.ts.map +1 -1
- package/build-types/components/post-template/swap-template-button.d.ts +1 -1
- package/build-types/components/post-template/swap-template-button.d.ts.map +1 -1
- package/build-types/components/post-visibility/index.d.ts.map +1 -1
- package/build-types/components/post-visibility/label.d.ts.map +1 -1
- package/build-types/components/post-visibility/utils.d.ts +5 -20
- package/build-types/components/post-visibility/utils.d.ts.map +1 -1
- package/build-types/components/provider/index.d.ts.map +1 -1
- package/package.json +37 -37
- package/src/components/autocompleters/style.scss +2 -3
- package/src/components/commands/index.js +1 -1
- package/src/components/post-actions/actions.js +13 -8
- package/src/components/post-publish-panel/maybe-category-panel.js +20 -5
- package/src/components/post-publish-panel/maybe-tags-panel.js +39 -22
- package/src/components/post-status/index.js +1 -1
- package/src/components/post-sticky/index.js +1 -1
- package/src/components/post-template/hooks.js +12 -8
- package/src/components/post-template/swap-template-button.js +6 -4
- package/src/components/post-visibility/index.js +41 -118
- package/src/components/post-visibility/label.js +7 -4
- package/src/components/post-visibility/utils.js +11 -8
- package/src/components/provider/index.js +9 -4
- package/src/style.scss +0 -1
- package/tsconfig.tsbuildinfo +1 -1
- 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:
|
|
479
|
-
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;
|
package/build-style/style.css
CHANGED
|
@@ -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:
|
|
479
|
-
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;;;;
|
|
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,
|
|
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,
|
|
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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap-template-button.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/swap-template-button.js"],"names":[],"mappings":"AAiBA;;
|
|
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":"
|
|
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,
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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":"
|
|
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.
|
|
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.
|
|
38
|
-
"@wordpress/api-fetch": "^7.
|
|
39
|
-
"@wordpress/blob": "^4.
|
|
40
|
-
"@wordpress/block-editor": "^14.
|
|
41
|
-
"@wordpress/blocks": "^14.
|
|
42
|
-
"@wordpress/commands": "^1.
|
|
43
|
-
"@wordpress/components": "^29.
|
|
44
|
-
"@wordpress/compose": "^7.
|
|
45
|
-
"@wordpress/core-data": "^7.
|
|
46
|
-
"@wordpress/data": "^10.
|
|
47
|
-
"@wordpress/dataviews": "^4.
|
|
48
|
-
"@wordpress/date": "^5.
|
|
49
|
-
"@wordpress/deprecated": "^4.
|
|
50
|
-
"@wordpress/dom": "^4.
|
|
51
|
-
"@wordpress/element": "^6.
|
|
52
|
-
"@wordpress/fields": "^0.
|
|
53
|
-
"@wordpress/hooks": "^4.
|
|
54
|
-
"@wordpress/html-entities": "^4.
|
|
55
|
-
"@wordpress/i18n": "^5.
|
|
56
|
-
"@wordpress/icons": "^10.
|
|
57
|
-
"@wordpress/interface": "^9.
|
|
58
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
59
|
-
"@wordpress/keycodes": "^4.
|
|
60
|
-
"@wordpress/media-utils": "^5.
|
|
61
|
-
"@wordpress/notices": "^5.
|
|
62
|
-
"@wordpress/patterns": "^2.
|
|
63
|
-
"@wordpress/plugins": "^7.
|
|
64
|
-
"@wordpress/preferences": "^4.
|
|
65
|
-
"@wordpress/private-apis": "^1.
|
|
66
|
-
"@wordpress/reusable-blocks": "^5.
|
|
67
|
-
"@wordpress/rich-text": "^7.
|
|
68
|
-
"@wordpress/server-side-render": "^5.
|
|
69
|
-
"@wordpress/url": "^4.
|
|
70
|
-
"@wordpress/warning": "^3.
|
|
71
|
-
"@wordpress/wordcount": "^4.
|
|
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": "
|
|
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
|
-
&:
|
|
36
|
-
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
|
|
31
|
-
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|