@wordpress/edit-post 6.19.0 → 7.1.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 +8 -0
- package/build/components/block-manager/index.js +3 -10
- package/build/components/block-manager/index.js.map +1 -1
- package/build/components/header/index.js +2 -2
- package/build/components/header/index.js.map +1 -1
- package/build/components/layout/index.js +2 -1
- package/build/components/layout/index.js.map +1 -1
- package/build/components/preferences-modal/meta-boxes-section.js +1 -1
- package/build/components/preferences-modal/meta-boxes-section.js.map +1 -1
- package/build/components/secondary-sidebar/list-view-outline.js +4 -4
- package/build/components/secondary-sidebar/list-view-outline.js.map +1 -1
- package/build/components/sidebar/post-status/index.js +1 -1
- package/build/components/sidebar/post-status/index.js.map +1 -1
- package/build/components/sidebar/post-template/index.js +2 -4
- package/build/components/sidebar/post-template/index.js.map +1 -1
- package/build/components/sidebar/settings-sidebar/index.js +7 -7
- package/build/components/sidebar/settings-sidebar/index.js.map +1 -1
- package/build/components/visual-editor/index.js +16 -10
- package/build/components/visual-editor/index.js.map +1 -1
- package/build/editor.native.js +8 -2
- package/build/editor.native.js.map +1 -1
- package/build/hooks/validate-multiple-use/index.js +1 -7
- package/build/hooks/validate-multiple-use/index.js.map +1 -1
- package/build/index.js +5 -0
- package/build/index.js.map +1 -1
- package/build/plugins/index.js +3 -1
- package/build/plugins/index.js.map +1 -1
- package/build/plugins/navigation-list-view-menu-item.js +48 -0
- package/build/plugins/navigation-list-view-menu-item.js.map +1 -0
- package/build-module/components/block-manager/index.js +3 -9
- package/build-module/components/block-manager/index.js.map +1 -1
- package/build-module/components/header/index.js +2 -2
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/layout/index.js +2 -1
- package/build-module/components/layout/index.js.map +1 -1
- package/build-module/components/preferences-modal/meta-boxes-section.js +2 -2
- package/build-module/components/preferences-modal/meta-boxes-section.js.map +1 -1
- package/build-module/components/secondary-sidebar/list-view-outline.js +4 -4
- package/build-module/components/secondary-sidebar/list-view-outline.js.map +1 -1
- package/build-module/components/sidebar/post-status/index.js +1 -1
- package/build-module/components/sidebar/post-status/index.js.map +1 -1
- package/build-module/components/sidebar/post-template/index.js +2 -4
- package/build-module/components/sidebar/post-template/index.js.map +1 -1
- package/build-module/components/sidebar/settings-sidebar/index.js +5 -5
- package/build-module/components/sidebar/settings-sidebar/index.js.map +1 -1
- package/build-module/components/visual-editor/index.js +16 -10
- package/build-module/components/visual-editor/index.js.map +1 -1
- package/build-module/editor.native.js +7 -2
- package/build-module/editor.native.js.map +1 -1
- package/build-module/hooks/validate-multiple-use/index.js +1 -6
- package/build-module/hooks/validate-multiple-use/index.js.map +1 -1
- package/build-module/index.js +4 -0
- package/build-module/index.js.map +1 -1
- package/build-module/plugins/index.js +2 -1
- package/build-module/plugins/index.js.map +1 -1
- package/build-module/plugins/navigation-list-view-menu-item.js +40 -0
- package/build-module/plugins/navigation-list-view-menu-item.js.map +1 -0
- package/build-style/classic-rtl.css +17 -3
- package/build-style/classic.css +17 -3
- package/build-style/style-rtl.css +70 -46
- package/build-style/style.css +70 -46
- package/package.json +30 -29
- package/src/components/block-manager/index.js +6 -10
- package/src/components/editor-initialization/test/listener-hooks.js +1 -0
- package/src/components/header/fullscreen-mode-close/style.scss +1 -1
- package/src/components/header/index.js +3 -3
- package/src/components/layout/index.js +3 -1
- package/src/components/preferences-modal/meta-boxes-section.js +2 -3
- package/src/components/preferences-modal/options/test/__snapshots__/enable-custom-fields.js.snap +56 -4
- package/src/components/preferences-modal/options/test/enable-custom-fields.js +2 -0
- package/src/components/preferences-modal/test/__snapshots__/index.js.snap +39 -14
- package/src/components/preferences-modal/test/__snapshots__/meta-boxes-section.js.snap +51 -6
- package/src/components/secondary-sidebar/list-view-outline.js +12 -12
- package/src/components/secondary-sidebar/style.scss +11 -12
- package/src/components/sidebar/post-schedule/style.scss +2 -1
- package/src/components/sidebar/post-status/index.js +1 -1
- package/src/components/sidebar/post-template/index.js +8 -3
- package/src/components/sidebar/post-template/style.scss +2 -0
- package/src/components/sidebar/post-url/style.scss +3 -0
- package/src/components/sidebar/post-visibility/style.scss +2 -0
- package/src/components/sidebar/settings-header/style.scss +47 -34
- package/src/components/sidebar/settings-sidebar/index.js +5 -5
- package/src/components/visual-editor/index.js +26 -3
- package/src/components/visual-editor/test/index.native.js +20 -9
- package/src/editor.native.js +14 -11
- package/src/hooks/validate-multiple-use/index.js +1 -7
- package/src/index.js +2 -0
- package/src/plugins/index.js +2 -0
- package/src/plugins/navigation-list-view-menu-item.js +56 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { map } from 'lodash';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
@@ -23,8 +23,7 @@ export function MetaBoxesSection( {
|
|
|
23
23
|
...sectionProps
|
|
24
24
|
} ) {
|
|
25
25
|
// The 'Custom Fields' meta box is a special case that we handle separately.
|
|
26
|
-
const thirdPartyMetaBoxes = filter(
|
|
27
|
-
metaBoxes,
|
|
26
|
+
const thirdPartyMetaBoxes = metaBoxes.filter(
|
|
28
27
|
( { id } ) => id !== 'postcustom'
|
|
29
28
|
);
|
|
30
29
|
|
package/src/components/preferences-modal/options/test/__snapshots__/enable-custom-fields.js.snap
CHANGED
|
@@ -41,6 +41,17 @@ exports[`EnableCustomFieldsOption renders a checked checkbox and a confirmation
|
|
|
41
41
|
min-width: 0;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
.emotion-6 {
|
|
45
|
+
display: block;
|
|
46
|
+
max-height: 100%;
|
|
47
|
+
max-width: 100%;
|
|
48
|
+
min-height: 0;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
-webkit-flex: 1;
|
|
51
|
+
-ms-flex: 1;
|
|
52
|
+
flex: 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
44
55
|
<div>
|
|
45
56
|
<div
|
|
46
57
|
class="interface-preferences-modal__option"
|
|
@@ -72,7 +83,9 @@ exports[`EnableCustomFieldsOption renders a checked checkbox and a confirmation
|
|
|
72
83
|
/>
|
|
73
84
|
</span>
|
|
74
85
|
<label
|
|
75
|
-
class="components-toggle-control__label"
|
|
86
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
87
|
+
data-wp-c16t="true"
|
|
88
|
+
data-wp-component="FlexBlock"
|
|
76
89
|
for="inspector-toggle-control-3"
|
|
77
90
|
/>
|
|
78
91
|
</div>
|
|
@@ -134,6 +147,17 @@ exports[`EnableCustomFieldsOption renders a checked checkbox when custom fields
|
|
|
134
147
|
min-width: 0;
|
|
135
148
|
}
|
|
136
149
|
|
|
150
|
+
.emotion-6 {
|
|
151
|
+
display: block;
|
|
152
|
+
max-height: 100%;
|
|
153
|
+
max-width: 100%;
|
|
154
|
+
min-height: 0;
|
|
155
|
+
min-width: 0;
|
|
156
|
+
-webkit-flex: 1;
|
|
157
|
+
-ms-flex: 1;
|
|
158
|
+
flex: 1;
|
|
159
|
+
}
|
|
160
|
+
|
|
137
161
|
<div>
|
|
138
162
|
<div
|
|
139
163
|
class="interface-preferences-modal__option"
|
|
@@ -166,7 +190,9 @@ exports[`EnableCustomFieldsOption renders a checked checkbox when custom fields
|
|
|
166
190
|
/>
|
|
167
191
|
</span>
|
|
168
192
|
<label
|
|
169
|
-
class="components-toggle-control__label"
|
|
193
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
194
|
+
data-wp-c16t="true"
|
|
195
|
+
data-wp-component="FlexBlock"
|
|
170
196
|
for="inspector-toggle-control-0"
|
|
171
197
|
/>
|
|
172
198
|
</div>
|
|
@@ -217,6 +243,17 @@ exports[`EnableCustomFieldsOption renders an unchecked checkbox and a confirmati
|
|
|
217
243
|
min-width: 0;
|
|
218
244
|
}
|
|
219
245
|
|
|
246
|
+
.emotion-6 {
|
|
247
|
+
display: block;
|
|
248
|
+
max-height: 100%;
|
|
249
|
+
max-width: 100%;
|
|
250
|
+
min-height: 0;
|
|
251
|
+
min-width: 0;
|
|
252
|
+
-webkit-flex: 1;
|
|
253
|
+
-ms-flex: 1;
|
|
254
|
+
flex: 1;
|
|
255
|
+
}
|
|
256
|
+
|
|
220
257
|
<div>
|
|
221
258
|
<div
|
|
222
259
|
class="interface-preferences-modal__option"
|
|
@@ -249,7 +286,9 @@ exports[`EnableCustomFieldsOption renders an unchecked checkbox and a confirmati
|
|
|
249
286
|
/>
|
|
250
287
|
</span>
|
|
251
288
|
<label
|
|
252
|
-
class="components-toggle-control__label"
|
|
289
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
290
|
+
data-wp-c16t="true"
|
|
291
|
+
data-wp-component="FlexBlock"
|
|
253
292
|
for="inspector-toggle-control-2"
|
|
254
293
|
/>
|
|
255
294
|
</div>
|
|
@@ -311,6 +350,17 @@ exports[`EnableCustomFieldsOption renders an unchecked checkbox when custom fiel
|
|
|
311
350
|
min-width: 0;
|
|
312
351
|
}
|
|
313
352
|
|
|
353
|
+
.emotion-6 {
|
|
354
|
+
display: block;
|
|
355
|
+
max-height: 100%;
|
|
356
|
+
max-width: 100%;
|
|
357
|
+
min-height: 0;
|
|
358
|
+
min-width: 0;
|
|
359
|
+
-webkit-flex: 1;
|
|
360
|
+
-ms-flex: 1;
|
|
361
|
+
flex: 1;
|
|
362
|
+
}
|
|
363
|
+
|
|
314
364
|
<div>
|
|
315
365
|
<div
|
|
316
366
|
class="interface-preferences-modal__option"
|
|
@@ -342,7 +392,9 @@ exports[`EnableCustomFieldsOption renders an unchecked checkbox when custom fiel
|
|
|
342
392
|
/>
|
|
343
393
|
</span>
|
|
344
394
|
<label
|
|
345
|
-
class="components-toggle-control__label"
|
|
395
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
396
|
+
data-wp-c16t="true"
|
|
397
|
+
data-wp-component="FlexBlock"
|
|
346
398
|
for="inspector-toggle-control-1"
|
|
347
399
|
/>
|
|
348
400
|
</div>
|
|
@@ -12,6 +12,8 @@ import {
|
|
|
12
12
|
CustomFieldsConfirmation,
|
|
13
13
|
} from '../enable-custom-fields';
|
|
14
14
|
|
|
15
|
+
jest.useFakeTimers();
|
|
16
|
+
|
|
15
17
|
describe( 'EnableCustomFieldsOption', () => {
|
|
16
18
|
it( 'renders a checked checkbox when custom fields are enabled', () => {
|
|
17
19
|
const { container } = render(
|
|
@@ -42,6 +42,17 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.emotion-6 {
|
|
45
|
+
display: block;
|
|
46
|
+
max-height: 100%;
|
|
47
|
+
max-width: 100%;
|
|
48
|
+
min-height: 0;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
-webkit-flex: 1;
|
|
51
|
+
-ms-flex: 1;
|
|
52
|
+
flex: 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.emotion-8 {
|
|
45
56
|
margin-top: calc(4px * 2);
|
|
46
57
|
margin-bottom: 0;
|
|
47
58
|
font-size: 12px;
|
|
@@ -186,7 +197,9 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
186
197
|
/>
|
|
187
198
|
</span>
|
|
188
199
|
<label
|
|
189
|
-
class="components-toggle-control__label"
|
|
200
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
201
|
+
data-wp-c16t="true"
|
|
202
|
+
data-wp-component="FlexBlock"
|
|
190
203
|
for="inspector-toggle-control-0"
|
|
191
204
|
>
|
|
192
205
|
Include pre-publish checklist
|
|
@@ -194,7 +207,7 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
194
207
|
</div>
|
|
195
208
|
</div>
|
|
196
209
|
<p
|
|
197
|
-
class="components-base-control__help emotion-
|
|
210
|
+
class="components-base-control__help emotion-8 emotion-9"
|
|
198
211
|
id="inspector-toggle-control-0__help"
|
|
199
212
|
>
|
|
200
213
|
Review settings, such as visibility and tags.
|
|
@@ -250,7 +263,9 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
250
263
|
/>
|
|
251
264
|
</span>
|
|
252
265
|
<label
|
|
253
|
-
class="components-toggle-control__label"
|
|
266
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
267
|
+
data-wp-c16t="true"
|
|
268
|
+
data-wp-component="FlexBlock"
|
|
254
269
|
for="inspector-toggle-control-1"
|
|
255
270
|
>
|
|
256
271
|
Distraction free
|
|
@@ -258,7 +273,7 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
258
273
|
</div>
|
|
259
274
|
</div>
|
|
260
275
|
<p
|
|
261
|
-
class="components-base-control__help emotion-
|
|
276
|
+
class="components-base-control__help emotion-8 emotion-9"
|
|
262
277
|
id="inspector-toggle-control-1__help"
|
|
263
278
|
>
|
|
264
279
|
Reduce visual distractions by hiding the toolbar and other elements to focus on writing.
|
|
@@ -296,7 +311,9 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
296
311
|
/>
|
|
297
312
|
</span>
|
|
298
313
|
<label
|
|
299
|
-
class="components-toggle-control__label"
|
|
314
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
315
|
+
data-wp-c16t="true"
|
|
316
|
+
data-wp-component="FlexBlock"
|
|
300
317
|
for="inspector-toggle-control-2"
|
|
301
318
|
>
|
|
302
319
|
Spotlight mode
|
|
@@ -304,7 +321,7 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
304
321
|
</div>
|
|
305
322
|
</div>
|
|
306
323
|
<p
|
|
307
|
-
class="components-base-control__help emotion-
|
|
324
|
+
class="components-base-control__help emotion-8 emotion-9"
|
|
308
325
|
id="inspector-toggle-control-2__help"
|
|
309
326
|
>
|
|
310
327
|
Highlights the current block and fades other content.
|
|
@@ -342,7 +359,9 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
342
359
|
/>
|
|
343
360
|
</span>
|
|
344
361
|
<label
|
|
345
|
-
class="components-toggle-control__label"
|
|
362
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
363
|
+
data-wp-c16t="true"
|
|
364
|
+
data-wp-component="FlexBlock"
|
|
346
365
|
for="inspector-toggle-control-3"
|
|
347
366
|
>
|
|
348
367
|
Show button text labels
|
|
@@ -350,7 +369,7 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
350
369
|
</div>
|
|
351
370
|
</div>
|
|
352
371
|
<p
|
|
353
|
-
class="components-base-control__help emotion-
|
|
372
|
+
class="components-base-control__help emotion-8 emotion-9"
|
|
354
373
|
id="inspector-toggle-control-3__help"
|
|
355
374
|
>
|
|
356
375
|
Show text instead of icons on buttons.
|
|
@@ -388,7 +407,9 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
388
407
|
/>
|
|
389
408
|
</span>
|
|
390
409
|
<label
|
|
391
|
-
class="components-toggle-control__label"
|
|
410
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
411
|
+
data-wp-c16t="true"
|
|
412
|
+
data-wp-component="FlexBlock"
|
|
392
413
|
for="inspector-toggle-control-4"
|
|
393
414
|
>
|
|
394
415
|
Always open list view
|
|
@@ -396,7 +417,7 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
396
417
|
</div>
|
|
397
418
|
</div>
|
|
398
419
|
<p
|
|
399
|
-
class="components-base-control__help emotion-
|
|
420
|
+
class="components-base-control__help emotion-8 emotion-9"
|
|
400
421
|
id="inspector-toggle-control-4__help"
|
|
401
422
|
>
|
|
402
423
|
Opens the block list view sidebar by default.
|
|
@@ -434,7 +455,9 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
434
455
|
/>
|
|
435
456
|
</span>
|
|
436
457
|
<label
|
|
437
|
-
class="components-toggle-control__label"
|
|
458
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
459
|
+
data-wp-c16t="true"
|
|
460
|
+
data-wp-component="FlexBlock"
|
|
438
461
|
for="inspector-toggle-control-5"
|
|
439
462
|
>
|
|
440
463
|
Use theme styles
|
|
@@ -442,7 +465,7 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
442
465
|
</div>
|
|
443
466
|
</div>
|
|
444
467
|
<p
|
|
445
|
-
class="components-base-control__help emotion-
|
|
468
|
+
class="components-base-control__help emotion-8 emotion-9"
|
|
446
469
|
id="inspector-toggle-control-5__help"
|
|
447
470
|
>
|
|
448
471
|
Make the editor look like your theme.
|
|
@@ -480,7 +503,9 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
480
503
|
/>
|
|
481
504
|
</span>
|
|
482
505
|
<label
|
|
483
|
-
class="components-toggle-control__label"
|
|
506
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
507
|
+
data-wp-c16t="true"
|
|
508
|
+
data-wp-component="FlexBlock"
|
|
484
509
|
for="inspector-toggle-control-6"
|
|
485
510
|
>
|
|
486
511
|
Display block breadcrumbs
|
|
@@ -488,7 +513,7 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
488
513
|
</div>
|
|
489
514
|
</div>
|
|
490
515
|
<p
|
|
491
|
-
class="components-base-control__help emotion-
|
|
516
|
+
class="components-base-control__help emotion-8 emotion-9"
|
|
492
517
|
id="inspector-toggle-control-6__help"
|
|
493
518
|
>
|
|
494
519
|
Shows block breadcrumbs at the bottom of the editor.
|
|
@@ -41,6 +41,17 @@ exports[`MetaBoxesSection renders a Custom Fields option 1`] = `
|
|
|
41
41
|
min-width: 0;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
.emotion-6 {
|
|
45
|
+
display: block;
|
|
46
|
+
max-height: 100%;
|
|
47
|
+
max-width: 100%;
|
|
48
|
+
min-height: 0;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
-webkit-flex: 1;
|
|
51
|
+
-ms-flex: 1;
|
|
52
|
+
flex: 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
44
55
|
<fieldset
|
|
45
56
|
class="interface-preferences-modal__section"
|
|
46
57
|
>
|
|
@@ -83,7 +94,9 @@ exports[`MetaBoxesSection renders a Custom Fields option 1`] = `
|
|
|
83
94
|
/>
|
|
84
95
|
</span>
|
|
85
96
|
<label
|
|
86
|
-
class="components-toggle-control__label"
|
|
97
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
98
|
+
data-wp-c16t="true"
|
|
99
|
+
data-wp-component="FlexBlock"
|
|
87
100
|
for="inspector-toggle-control-0"
|
|
88
101
|
>
|
|
89
102
|
Custom fields
|
|
@@ -136,6 +149,17 @@ exports[`MetaBoxesSection renders a Custom Fields option and meta box options 1`
|
|
|
136
149
|
min-width: 0;
|
|
137
150
|
}
|
|
138
151
|
|
|
152
|
+
.emotion-6 {
|
|
153
|
+
display: block;
|
|
154
|
+
max-height: 100%;
|
|
155
|
+
max-width: 100%;
|
|
156
|
+
min-height: 0;
|
|
157
|
+
min-width: 0;
|
|
158
|
+
-webkit-flex: 1;
|
|
159
|
+
-ms-flex: 1;
|
|
160
|
+
flex: 1;
|
|
161
|
+
}
|
|
162
|
+
|
|
139
163
|
<fieldset
|
|
140
164
|
class="interface-preferences-modal__section"
|
|
141
165
|
>
|
|
@@ -178,7 +202,9 @@ exports[`MetaBoxesSection renders a Custom Fields option and meta box options 1`
|
|
|
178
202
|
/>
|
|
179
203
|
</span>
|
|
180
204
|
<label
|
|
181
|
-
class="components-toggle-control__label"
|
|
205
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
206
|
+
data-wp-c16t="true"
|
|
207
|
+
data-wp-component="FlexBlock"
|
|
182
208
|
for="inspector-toggle-control-3"
|
|
183
209
|
>
|
|
184
210
|
Custom fields
|
|
@@ -218,7 +244,9 @@ exports[`MetaBoxesSection renders a Custom Fields option and meta box options 1`
|
|
|
218
244
|
/>
|
|
219
245
|
</span>
|
|
220
246
|
<label
|
|
221
|
-
class="components-toggle-control__label"
|
|
247
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
248
|
+
data-wp-c16t="true"
|
|
249
|
+
data-wp-component="FlexBlock"
|
|
222
250
|
for="inspector-toggle-control-4"
|
|
223
251
|
>
|
|
224
252
|
Meta Box 1
|
|
@@ -258,7 +286,9 @@ exports[`MetaBoxesSection renders a Custom Fields option and meta box options 1`
|
|
|
258
286
|
/>
|
|
259
287
|
</span>
|
|
260
288
|
<label
|
|
261
|
-
class="components-toggle-control__label"
|
|
289
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
290
|
+
data-wp-c16t="true"
|
|
291
|
+
data-wp-component="FlexBlock"
|
|
262
292
|
for="inspector-toggle-control-5"
|
|
263
293
|
>
|
|
264
294
|
Meta Box 2
|
|
@@ -311,6 +341,17 @@ exports[`MetaBoxesSection renders meta box options 1`] = `
|
|
|
311
341
|
min-width: 0;
|
|
312
342
|
}
|
|
313
343
|
|
|
344
|
+
.emotion-6 {
|
|
345
|
+
display: block;
|
|
346
|
+
max-height: 100%;
|
|
347
|
+
max-width: 100%;
|
|
348
|
+
min-height: 0;
|
|
349
|
+
min-width: 0;
|
|
350
|
+
-webkit-flex: 1;
|
|
351
|
+
-ms-flex: 1;
|
|
352
|
+
flex: 1;
|
|
353
|
+
}
|
|
354
|
+
|
|
314
355
|
<fieldset
|
|
315
356
|
class="interface-preferences-modal__section"
|
|
316
357
|
>
|
|
@@ -354,7 +395,9 @@ exports[`MetaBoxesSection renders meta box options 1`] = `
|
|
|
354
395
|
/>
|
|
355
396
|
</span>
|
|
356
397
|
<label
|
|
357
|
-
class="components-toggle-control__label"
|
|
398
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
399
|
+
data-wp-c16t="true"
|
|
400
|
+
data-wp-component="FlexBlock"
|
|
358
401
|
for="inspector-toggle-control-1"
|
|
359
402
|
>
|
|
360
403
|
Meta Box 1
|
|
@@ -394,7 +437,9 @@ exports[`MetaBoxesSection renders meta box options 1`] = `
|
|
|
394
437
|
/>
|
|
395
438
|
</span>
|
|
396
439
|
<label
|
|
397
|
-
class="components-toggle-control__label"
|
|
440
|
+
class="components-flex-item components-flex-block components-toggle-control__label emotion-6 emotion-5"
|
|
441
|
+
data-wp-c16t="true"
|
|
442
|
+
data-wp-component="FlexBlock"
|
|
398
443
|
for="inspector-toggle-control-2"
|
|
399
444
|
>
|
|
400
445
|
Meta Box 2
|
|
@@ -65,18 +65,6 @@ export default function ListViewOutline() {
|
|
|
65
65
|
}, [] );
|
|
66
66
|
return (
|
|
67
67
|
<>
|
|
68
|
-
{ headingCount > 0 ? (
|
|
69
|
-
<DocumentOutline />
|
|
70
|
-
) : (
|
|
71
|
-
<div className="edit-post-editor__list-view-empty-headings">
|
|
72
|
-
<EmptyOutlineIllustration />
|
|
73
|
-
<p>
|
|
74
|
-
{ __(
|
|
75
|
-
'Navigate the structure of your document and address issues like empty or incorrect heading levels.'
|
|
76
|
-
) }
|
|
77
|
-
</p>
|
|
78
|
-
</div>
|
|
79
|
-
) }
|
|
80
68
|
<div className="edit-post-editor__list-view-overview">
|
|
81
69
|
<div>
|
|
82
70
|
<Text>{ __( 'Characters:' ) }</Text>
|
|
@@ -93,6 +81,18 @@ export default function ListViewOutline() {
|
|
|
93
81
|
<TimeToRead />
|
|
94
82
|
</div>
|
|
95
83
|
</div>
|
|
84
|
+
{ headingCount > 0 ? (
|
|
85
|
+
<DocumentOutline />
|
|
86
|
+
) : (
|
|
87
|
+
<div className="edit-post-editor__list-view-empty-headings">
|
|
88
|
+
<EmptyOutlineIllustration />
|
|
89
|
+
<p>
|
|
90
|
+
{ __(
|
|
91
|
+
'Navigate the structure of your document and address issues like empty or incorrect heading levels.'
|
|
92
|
+
) }
|
|
93
|
+
</p>
|
|
94
|
+
</div>
|
|
95
|
+
) }
|
|
96
96
|
</>
|
|
97
97
|
);
|
|
98
98
|
}
|
|
@@ -76,24 +76,23 @@
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
.edit-post-editor__list-view-overview {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
gap: $grid-unit-10;
|
|
82
|
+
border-bottom: $border-width solid $gray-300;
|
|
83
|
+
padding: $grid-unit-20;
|
|
84
|
+
|
|
79
85
|
& > div > span:first-child {
|
|
80
86
|
// Width of the text information fields.
|
|
81
87
|
width: 90px;
|
|
82
88
|
display: inline-block;
|
|
83
89
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
& > span {
|
|
90
|
-
font-size: $helptext-font-size;
|
|
91
|
-
line-height: $default-line-height;
|
|
92
|
-
color: $gray-700;
|
|
93
|
-
}
|
|
90
|
+
|
|
91
|
+
& > div > span {
|
|
92
|
+
font-size: $helptext-font-size;
|
|
93
|
+
line-height: $default-line-height;
|
|
94
|
+
color: $gray-700;
|
|
94
95
|
}
|
|
95
|
-
// Height of the overview container.
|
|
96
|
-
height: 72px;
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
.edit-post-editor__list-view-container {
|
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
display: block;
|
|
8
8
|
width: 45%;
|
|
9
9
|
flex-shrink: 0;
|
|
10
|
+
// Match padding on tertiary buttons for alignment.
|
|
11
|
+
padding: $grid-unit-15 * 0.5 0;
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
.components-button.edit-post-post-schedule__toggle {
|
|
14
16
|
text-align: left;
|
|
15
17
|
white-space: normal;
|
|
16
|
-
height: auto;
|
|
17
18
|
|
|
18
19
|
// This span is added by the Popover in Tooltip when no anchor is
|
|
19
20
|
// provided. We set its width to 0 so that it does not cause the button text
|
|
@@ -85,9 +85,14 @@ function PostTemplateToggle( { isOpen, onClick } ) {
|
|
|
85
85
|
if ( ! supportsTemplateMode && availableTemplates[ templateSlug ] ) {
|
|
86
86
|
return availableTemplates[ templateSlug ];
|
|
87
87
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
const template =
|
|
89
|
+
select( coreStore ).canUser( 'create', 'templates' ) &&
|
|
90
|
+
select( editPostStore ).getEditedPostTemplate();
|
|
91
|
+
return (
|
|
92
|
+
template?.title ||
|
|
93
|
+
template?.slug ||
|
|
94
|
+
availableTemplates?.[ templateSlug ]
|
|
95
|
+
);
|
|
91
96
|
}, [] );
|
|
92
97
|
|
|
93
98
|
return (
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
.edit-post-post-url {
|
|
2
2
|
width: 100%;
|
|
3
3
|
justify-content: flex-start;
|
|
4
|
+
align-items: flex-start;
|
|
4
5
|
|
|
5
6
|
span {
|
|
6
7
|
display: block;
|
|
7
8
|
width: 45%;
|
|
8
9
|
flex-shrink: 0;
|
|
10
|
+
// Match padding on tertiary buttons for alignment.
|
|
11
|
+
padding: $grid-unit-15 * 0.5 0;
|
|
9
12
|
}
|
|
10
13
|
}
|
|
11
14
|
|
|
@@ -1,53 +1,66 @@
|
|
|
1
|
+
// This tab style CSS is duplicated verbatim in
|
|
2
|
+
// /packages/components/src/tab-panel/style.scss
|
|
1
3
|
.components-button.edit-post-sidebar__panel-tab {
|
|
4
|
+
position: relative;
|
|
2
5
|
border-radius: 0;
|
|
3
6
|
height: $grid-unit-60;
|
|
4
7
|
background: transparent;
|
|
5
8
|
border: none;
|
|
6
9
|
box-shadow: none;
|
|
7
10
|
cursor: pointer;
|
|
8
|
-
|
|
9
|
-
padding: 3px 15px; // Use padding to offset the is-active border, this benefits Windows High Contrast mode
|
|
11
|
+
padding: 3px $grid-unit-20; // Use padding to offset the is-active border, this benefits Windows High Contrast mode
|
|
10
12
|
margin-left: 0;
|
|
11
13
|
font-weight: 500;
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
&:focus:not(:disabled) {
|
|
16
|
+
position: relative;
|
|
17
|
+
box-shadow: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Tab indicator
|
|
16
21
|
&::after {
|
|
17
|
-
content:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
content: "";
|
|
23
|
+
position: absolute;
|
|
24
|
+
right: 0;
|
|
25
|
+
bottom: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
|
|
29
|
+
// Draw the indicator.
|
|
30
|
+
background: var(--wp-admin-theme-color);
|
|
31
|
+
height: calc(0 * var(--wp-admin-border-width-focus));
|
|
32
|
+
border-radius: 0;
|
|
33
|
+
|
|
34
|
+
// Animation
|
|
35
|
+
transition: all 0.1s linear;
|
|
36
|
+
@include reduce-motion("transition");
|
|
24
37
|
}
|
|
25
38
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
position: relative;
|
|
30
|
-
z-index: z-index(".edit-post-sidebar__panel-tab.is-active");
|
|
31
|
-
|
|
32
|
-
// This border appears in Windows High Contrast mode instead of the box-shadow.
|
|
33
|
-
&::before {
|
|
34
|
-
content: "";
|
|
35
|
-
position: absolute;
|
|
36
|
-
top: 0;
|
|
37
|
-
bottom: 1px;
|
|
38
|
-
right: 0;
|
|
39
|
-
left: 0;
|
|
40
|
-
border-bottom: $border-width-tab solid transparent;
|
|
41
|
-
}
|
|
39
|
+
// Active.
|
|
40
|
+
&.is-active::after {
|
|
41
|
+
height: calc(1 * var(--wp-admin-border-width-focus));
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
// Focus.
|
|
45
|
+
&::before {
|
|
46
|
+
content: "";
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: $grid-unit-15;
|
|
49
|
+
right: $grid-unit-15;
|
|
50
|
+
bottom: $grid-unit-15;
|
|
51
|
+
left: $grid-unit-15;
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
|
|
54
|
+
// Draw the indicator.
|
|
55
|
+
box-shadow: 0 0 0 0 transparent;
|
|
56
|
+
border-radius: $radius-block-ui;
|
|
57
|
+
|
|
58
|
+
// Animation
|
|
59
|
+
transition: all 0.1s linear;
|
|
60
|
+
@include reduce-motion("transition");
|
|
48
61
|
}
|
|
49
62
|
|
|
50
|
-
|
|
51
|
-
box-shadow:
|
|
63
|
+
&:focus-visible::before {
|
|
64
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
52
65
|
}
|
|
53
66
|
}
|