@wordpress/edit-post 6.12.1-next.d6164808d3.0 → 6.14.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 (44) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/build/components/block-manager/checklist.js +7 -7
  3. package/build/components/block-manager/checklist.js.map +1 -1
  4. package/build/components/sidebar/featured-image/index.js +7 -1
  5. package/build/components/sidebar/featured-image/index.js.map +1 -1
  6. package/build/components/sidebar/page-attributes/index.js +8 -1
  7. package/build/components/sidebar/page-attributes/index.js.map +1 -1
  8. package/build/components/visual-editor/index.js +4 -3
  9. package/build/components/visual-editor/index.js.map +1 -1
  10. package/build/editor.js +3 -1
  11. package/build/editor.js.map +1 -1
  12. package/build/index.js +4 -1
  13. package/build/index.js.map +1 -1
  14. package/build-module/components/block-manager/checklist.js +7 -6
  15. package/build-module/components/block-manager/checklist.js.map +1 -1
  16. package/build-module/components/sidebar/featured-image/index.js +8 -2
  17. package/build-module/components/sidebar/featured-image/index.js.map +1 -1
  18. package/build-module/components/sidebar/page-attributes/index.js +9 -2
  19. package/build-module/components/sidebar/page-attributes/index.js.map +1 -1
  20. package/build-module/components/visual-editor/index.js +4 -3
  21. package/build-module/components/visual-editor/index.js.map +1 -1
  22. package/build-module/editor.js +4 -2
  23. package/build-module/editor.js.map +1 -1
  24. package/build-module/index.js +4 -1
  25. package/build-module/index.js.map +1 -1
  26. package/build-style/style-rtl.css +9 -13
  27. package/build-style/style.css +9 -13
  28. package/package.json +27 -27
  29. package/src/components/block-manager/checklist.js +3 -6
  30. package/src/components/browser-url/test/index.js +23 -32
  31. package/src/components/header/test/index.js +21 -13
  32. package/src/components/preferences-modal/options/test/__snapshots__/enable-custom-fields.js.snap +192 -88
  33. package/src/components/preferences-modal/test/__snapshots__/index.js.snap +878 -255
  34. package/src/components/preferences-modal/test/__snapshots__/meta-boxes-section.js.snap +394 -35
  35. package/src/components/preferences-modal/test/index.js +13 -7
  36. package/src/components/preferences-modal/test/meta-boxes-section.js +15 -9
  37. package/src/components/sidebar/featured-image/index.js +3 -2
  38. package/src/components/sidebar/page-attributes/index.js +3 -2
  39. package/src/components/sidebar/plugin-post-publish-panel/test/__snapshots__/index.js.snap +1 -1
  40. package/src/components/sidebar/plugin-pre-publish-panel/test/__snapshots__/index.js.snap +1 -2
  41. package/src/components/visual-editor/index.js +7 -3
  42. package/src/editor.js +2 -2
  43. package/src/index.js +4 -0
  44. package/src/components/header/test/__snapshots__/index.js.snap +0 -31
@@ -1,272 +1,895 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`EditPostPreferencesModal should match snapshot when the modal is active large viewports 1`] = `
4
- <PreferencesModal
5
- closeModal={[Function]}
4
+ .emotion-0 {
5
+ font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;
6
+ font-size: 13px;
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ .emotion-0 *,
11
+ .emotion-0 *::before,
12
+ .emotion-0 *::after {
13
+ box-sizing: inherit;
14
+ }
15
+
16
+ .components-panel__row .emotion-2 {
17
+ margin-bottom: inherit;
18
+ }
19
+
20
+ .emotion-4 {
21
+ display: -webkit-box;
22
+ display: -webkit-flex;
23
+ display: -ms-flexbox;
24
+ display: flex;
25
+ -webkit-align-items: center;
26
+ -webkit-box-align: center;
27
+ -ms-flex-align: center;
28
+ align-items: center;
29
+ -webkit-flex-direction: row;
30
+ -ms-flex-direction: row;
31
+ flex-direction: row;
32
+ gap: calc(4px * 3);
33
+ -webkit-box-pack: start;
34
+ -ms-flex-pack: start;
35
+ -webkit-justify-content: flex-start;
36
+ justify-content: flex-start;
37
+ width: 100%;
38
+ }
39
+
40
+ .emotion-4>* {
41
+ min-width: 0;
42
+ }
43
+
44
+ .emotion-6 {
45
+ margin-top: calc(4px * 2);
46
+ margin-bottom: 0;
47
+ font-size: 12px;
48
+ font-style: normal;
49
+ color: #757575;
50
+ }
51
+
52
+ <div
53
+ aria-labelledby="components-modal-header-0"
54
+ class="components-modal__frame interface-preferences-modal"
55
+ role="dialog"
56
+ tabindex="-1"
6
57
  >
7
- <PreferencesModalTabs
8
- sections={
9
- Array [
10
- Object {
11
- "content": <React.Fragment>
12
- <Section
13
- description="Change options related to publishing."
14
- title="Publishing"
58
+ <div
59
+ class="components-modal__content"
60
+ role="document"
61
+ >
62
+ <div
63
+ class="components-modal__header"
64
+ >
65
+ <div
66
+ class="components-modal__header-heading-container"
67
+ >
68
+ <h1
69
+ class="components-modal__header-heading"
70
+ id="components-modal-header-0"
71
+ >
72
+ Preferences
73
+ </h1>
74
+ </div>
75
+ <button
76
+ aria-label="Close dialog"
77
+ class="components-button has-icon"
78
+ type="button"
79
+ >
80
+ <svg
81
+ aria-hidden="true"
82
+ focusable="false"
83
+ height="24"
84
+ viewBox="0 0 24 24"
85
+ width="24"
86
+ xmlns="http://www.w3.org/2000/svg"
87
+ >
88
+ <path
89
+ d="M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"
90
+ />
91
+ </svg>
92
+ </button>
93
+ </div>
94
+ <div
95
+ class="interface-preferences__tabs"
96
+ >
97
+ <div
98
+ aria-orientation="vertical"
99
+ class="components-tab-panel__tabs"
100
+ role="tablist"
101
+ >
102
+ <button
103
+ aria-controls="tab-panel-0-general-view"
104
+ aria-selected="true"
105
+ class="components-button components-tab-panel__tabs-item is-active"
106
+ id="tab-panel-0-general"
107
+ role="tab"
108
+ type="button"
109
+ >
110
+ General
111
+ </button>
112
+ <button
113
+ aria-controls="tab-panel-0-blocks-view"
114
+ aria-selected="false"
115
+ class="components-button components-tab-panel__tabs-item"
116
+ id="tab-panel-0-blocks"
117
+ role="tab"
118
+ tabindex="-1"
119
+ type="button"
120
+ >
121
+ Blocks
122
+ </button>
123
+ <button
124
+ aria-controls="tab-panel-0-panels-view"
125
+ aria-selected="false"
126
+ class="components-button components-tab-panel__tabs-item"
127
+ id="tab-panel-0-panels"
128
+ role="tab"
129
+ tabindex="-1"
130
+ type="button"
131
+ >
132
+ Panels
133
+ </button>
134
+ </div>
135
+ <div
136
+ aria-labelledby="tab-panel-0-general"
137
+ class="components-tab-panel__tab-content"
138
+ id="tab-panel-0-general-view"
139
+ role="tabpanel"
140
+ >
141
+ <fieldset
142
+ class="interface-preferences-modal__section"
143
+ >
144
+ <legend
145
+ class="interface-preferences-modal__section-legend"
146
+ >
147
+ <h2
148
+ class="interface-preferences-modal__section-title"
149
+ >
150
+ Publishing
151
+ </h2>
152
+ <p
153
+ class="interface-preferences-modal__section-description"
154
+ >
155
+ Change options related to publishing.
156
+ </p>
157
+ </legend>
158
+ <div
159
+ class="interface-preferences-modal__option"
160
+ >
161
+ <div
162
+ class="components-base-control components-toggle-control emotion-0 emotion-1"
163
+ >
164
+ <div
165
+ class="components-base-control__field emotion-2 emotion-3"
166
+ >
167
+ <div
168
+ class="components-flex components-h-stack emotion-4 emotion-5"
169
+ data-wp-c16t="true"
170
+ data-wp-component="HStack"
171
+ >
172
+ <span
173
+ class="components-form-toggle"
174
+ >
175
+ <input
176
+ aria-describedby="inspector-toggle-control-0__help"
177
+ class="components-form-toggle__input"
178
+ id="inspector-toggle-control-0"
179
+ type="checkbox"
180
+ />
181
+ <span
182
+ class="components-form-toggle__track"
183
+ />
184
+ <span
185
+ class="components-form-toggle__thumb"
186
+ />
187
+ </span>
188
+ <label
189
+ class="components-toggle-control__label"
190
+ for="inspector-toggle-control-0"
191
+ >
192
+ Include pre-publish checklist
193
+ </label>
194
+ </div>
195
+ </div>
196
+ <p
197
+ class="components-base-control__help emotion-6 emotion-7"
198
+ id="inspector-toggle-control-0__help"
199
+ >
200
+ Review settings, such as visibility and tags.
201
+ </p>
202
+ </div>
203
+ </div>
204
+ </fieldset>
205
+ <fieldset
206
+ class="interface-preferences-modal__section"
207
+ >
208
+ <legend
209
+ class="interface-preferences-modal__section-legend"
210
+ >
211
+ <h2
212
+ class="interface-preferences-modal__section-title"
213
+ >
214
+ Appearance
215
+ </h2>
216
+ <p
217
+ class="interface-preferences-modal__section-description"
15
218
  >
16
- <WithSelect(WithDispatch(IfViewportMatches(BaseOption)))
17
- help="Review settings, such as visibility and tags."
18
- label="Include pre-publish checklist"
19
- />
20
- </Section>
21
- <Section
22
- description="Customize options related to the block editor interface and editing flow."
23
- title="Appearance"
219
+ Customize options related to the block editor interface and editing flow.
220
+ </p>
221
+ </legend>
222
+ <div
223
+ class="interface-preferences-modal__option"
224
+ >
225
+ <div
226
+ class="components-base-control components-toggle-control emotion-0 emotion-1"
24
227
  >
25
- <WithSelect(WithDispatch(BaseOption))
26
- featureName="focusMode"
27
- help="Highlights the current block and fades other content."
28
- label="Spotlight mode"
29
- />
30
- <WithSelect(WithDispatch(BaseOption))
31
- featureName="showIconLabels"
32
- help="Show text instead of icons on buttons."
33
- label="Show button text labels"
34
- />
35
- <WithSelect(WithDispatch(BaseOption))
36
- featureName="showListViewByDefault"
37
- help="Opens the block list view sidebar by default."
38
- label="Always open list view"
39
- />
40
- <WithSelect(WithDispatch(BaseOption))
41
- featureName="reducedUI"
42
- help="Compacts options and outlines in the toolbar."
43
- label="Reduce the interface"
44
- />
45
- <WithSelect(WithDispatch(BaseOption))
46
- featureName="themeStyles"
47
- help="Make the editor look like your theme."
48
- label="Use theme styles"
49
- />
50
- <WithSelect(WithDispatch(BaseOption))
51
- featureName="showBlockBreadcrumbs"
52
- help="Shows block breadcrumbs at the bottom of the editor."
53
- label="Display block breadcrumbs"
54
- />
55
- </Section>
56
- </React.Fragment>,
57
- "name": "general",
58
- "tabLabel": "General",
59
- },
60
- Object {
61
- "content": <React.Fragment>
62
- <Section
63
- description="Customize how you interact with blocks in the block library and editing canvas."
64
- title="Block interactions"
228
+ <div
229
+ class="components-base-control__field emotion-2 emotion-3"
230
+ >
231
+ <div
232
+ class="components-flex components-h-stack emotion-4 emotion-5"
233
+ data-wp-c16t="true"
234
+ data-wp-component="HStack"
235
+ >
236
+ <span
237
+ class="components-form-toggle"
238
+ >
239
+ <input
240
+ aria-describedby="inspector-toggle-control-1__help"
241
+ class="components-form-toggle__input"
242
+ id="inspector-toggle-control-1"
243
+ type="checkbox"
244
+ />
245
+ <span
246
+ class="components-form-toggle__track"
247
+ />
248
+ <span
249
+ class="components-form-toggle__thumb"
250
+ />
251
+ </span>
252
+ <label
253
+ class="components-toggle-control__label"
254
+ for="inspector-toggle-control-1"
255
+ >
256
+ Spotlight mode
257
+ </label>
258
+ </div>
259
+ </div>
260
+ <p
261
+ class="components-base-control__help emotion-6 emotion-7"
262
+ id="inspector-toggle-control-1__help"
263
+ >
264
+ Highlights the current block and fades other content.
265
+ </p>
266
+ </div>
267
+ </div>
268
+ <div
269
+ class="interface-preferences-modal__option"
270
+ >
271
+ <div
272
+ class="components-base-control components-toggle-control emotion-0 emotion-1"
273
+ >
274
+ <div
275
+ class="components-base-control__field emotion-2 emotion-3"
276
+ >
277
+ <div
278
+ class="components-flex components-h-stack emotion-4 emotion-5"
279
+ data-wp-c16t="true"
280
+ data-wp-component="HStack"
281
+ >
282
+ <span
283
+ class="components-form-toggle"
284
+ >
285
+ <input
286
+ aria-describedby="inspector-toggle-control-2__help"
287
+ class="components-form-toggle__input"
288
+ id="inspector-toggle-control-2"
289
+ type="checkbox"
290
+ />
291
+ <span
292
+ class="components-form-toggle__track"
293
+ />
294
+ <span
295
+ class="components-form-toggle__thumb"
296
+ />
297
+ </span>
298
+ <label
299
+ class="components-toggle-control__label"
300
+ for="inspector-toggle-control-2"
301
+ >
302
+ Show button text labels
303
+ </label>
304
+ </div>
305
+ </div>
306
+ <p
307
+ class="components-base-control__help emotion-6 emotion-7"
308
+ id="inspector-toggle-control-2__help"
309
+ >
310
+ Show text instead of icons on buttons.
311
+ </p>
312
+ </div>
313
+ </div>
314
+ <div
315
+ class="interface-preferences-modal__option"
316
+ >
317
+ <div
318
+ class="components-base-control components-toggle-control emotion-0 emotion-1"
319
+ >
320
+ <div
321
+ class="components-base-control__field emotion-2 emotion-3"
322
+ >
323
+ <div
324
+ class="components-flex components-h-stack emotion-4 emotion-5"
325
+ data-wp-c16t="true"
326
+ data-wp-component="HStack"
327
+ >
328
+ <span
329
+ class="components-form-toggle"
330
+ >
331
+ <input
332
+ aria-describedby="inspector-toggle-control-3__help"
333
+ class="components-form-toggle__input"
334
+ id="inspector-toggle-control-3"
335
+ type="checkbox"
336
+ />
337
+ <span
338
+ class="components-form-toggle__track"
339
+ />
340
+ <span
341
+ class="components-form-toggle__thumb"
342
+ />
343
+ </span>
344
+ <label
345
+ class="components-toggle-control__label"
346
+ for="inspector-toggle-control-3"
347
+ >
348
+ Always open list view
349
+ </label>
350
+ </div>
351
+ </div>
352
+ <p
353
+ class="components-base-control__help emotion-6 emotion-7"
354
+ id="inspector-toggle-control-3__help"
355
+ >
356
+ Opens the block list view sidebar by default.
357
+ </p>
358
+ </div>
359
+ </div>
360
+ <div
361
+ class="interface-preferences-modal__option"
362
+ >
363
+ <div
364
+ class="components-base-control components-toggle-control emotion-0 emotion-1"
65
365
  >
66
- <WithSelect(WithDispatch(BaseOption))
67
- featureName="mostUsedBlocks"
68
- help="Places the most frequent blocks in the block library."
69
- label="Show most used blocks"
70
- />
71
- <WithSelect(WithDispatch(BaseOption))
72
- featureName="keepCaretInsideBlock"
73
- help="Aids screen readers by stopping text caret from leaving blocks."
74
- label="Contain text cursor inside block"
75
- />
76
- </Section>
77
- <Section
78
- description="Disable blocks that you don't want to appear in the inserter. They can always be toggled back on later."
79
- title="Visible blocks"
366
+ <div
367
+ class="components-base-control__field emotion-2 emotion-3"
368
+ >
369
+ <div
370
+ class="components-flex components-h-stack emotion-4 emotion-5"
371
+ data-wp-c16t="true"
372
+ data-wp-component="HStack"
373
+ >
374
+ <span
375
+ class="components-form-toggle"
376
+ >
377
+ <input
378
+ aria-describedby="inspector-toggle-control-4__help"
379
+ class="components-form-toggle__input"
380
+ id="inspector-toggle-control-4"
381
+ type="checkbox"
382
+ />
383
+ <span
384
+ class="components-form-toggle__track"
385
+ />
386
+ <span
387
+ class="components-form-toggle__thumb"
388
+ />
389
+ </span>
390
+ <label
391
+ class="components-toggle-control__label"
392
+ for="inspector-toggle-control-4"
393
+ >
394
+ Reduce the interface
395
+ </label>
396
+ </div>
397
+ </div>
398
+ <p
399
+ class="components-base-control__help emotion-6 emotion-7"
400
+ id="inspector-toggle-control-4__help"
401
+ >
402
+ Compacts options and outlines in the toolbar.
403
+ </p>
404
+ </div>
405
+ </div>
406
+ <div
407
+ class="interface-preferences-modal__option"
408
+ >
409
+ <div
410
+ class="components-base-control components-toggle-control emotion-0 emotion-1"
80
411
  >
81
- <WithSelect(BlockManager) />
82
- </Section>
83
- </React.Fragment>,
84
- "name": "blocks",
85
- "tabLabel": "Blocks",
86
- },
87
- Object {
88
- "content": <React.Fragment>
89
- <Section
90
- description="Choose what displays in the panel."
91
- title="Document settings"
412
+ <div
413
+ class="components-base-control__field emotion-2 emotion-3"
414
+ >
415
+ <div
416
+ class="components-flex components-h-stack emotion-4 emotion-5"
417
+ data-wp-c16t="true"
418
+ data-wp-component="HStack"
419
+ >
420
+ <span
421
+ class="components-form-toggle"
422
+ >
423
+ <input
424
+ aria-describedby="inspector-toggle-control-5__help"
425
+ class="components-form-toggle__input"
426
+ id="inspector-toggle-control-5"
427
+ type="checkbox"
428
+ />
429
+ <span
430
+ class="components-form-toggle__track"
431
+ />
432
+ <span
433
+ class="components-form-toggle__thumb"
434
+ />
435
+ </span>
436
+ <label
437
+ class="components-toggle-control__label"
438
+ for="inspector-toggle-control-5"
439
+ >
440
+ Use theme styles
441
+ </label>
442
+ </div>
443
+ </div>
444
+ <p
445
+ class="components-base-control__help emotion-6 emotion-7"
446
+ id="inspector-toggle-control-5__help"
447
+ >
448
+ Make the editor look like your theme.
449
+ </p>
450
+ </div>
451
+ </div>
452
+ <div
453
+ class="interface-preferences-modal__option"
454
+ >
455
+ <div
456
+ class="components-base-control components-toggle-control emotion-0 emotion-1"
92
457
  >
93
- <EnablePluginDocumentSettingPanelOptionSlot />
94
- <WithSelect(PostTaxonomies)
95
- taxonomyWrapper={[Function]}
96
- />
97
- <PostFeaturedImageCheck>
98
- <WithSelect(IfCondition(WithDispatch(BaseOption)))
99
- label="Featured image"
100
- panelName="featured-image"
101
- />
102
- </PostFeaturedImageCheck>
103
- <PostExcerptCheck>
104
- <WithSelect(IfCondition(WithDispatch(BaseOption)))
105
- label="Excerpt"
106
- panelName="post-excerpt"
107
- />
108
- </PostExcerptCheck>
109
- <WithSelect(PostTypeSupportCheck)
110
- supportKeys={
111
- Array [
112
- "comments",
113
- "trackbacks",
114
- ]
115
- }
458
+ <div
459
+ class="components-base-control__field emotion-2 emotion-3"
116
460
  >
117
- <WithSelect(IfCondition(WithDispatch(BaseOption)))
118
- label="Discussion"
119
- panelName="discussion-panel"
120
- />
121
- </WithSelect(PostTypeSupportCheck)>
122
- <PageAttributesCheck>
123
- <WithSelect(IfCondition(WithDispatch(BaseOption)))
124
- label="Page attributes"
125
- panelName="page-attributes"
126
- />
127
- </PageAttributesCheck>
128
- </Section>
129
- <WithSelect(MetaBoxesSection)
130
- description="Add extra areas to the editor."
131
- title="Additional"
132
- />
133
- </React.Fragment>,
134
- "name": "panels",
135
- "tabLabel": "Panels",
136
- },
137
- ]
138
- }
139
- />
140
- </PreferencesModal>
461
+ <div
462
+ class="components-flex components-h-stack emotion-4 emotion-5"
463
+ data-wp-c16t="true"
464
+ data-wp-component="HStack"
465
+ >
466
+ <span
467
+ class="components-form-toggle"
468
+ >
469
+ <input
470
+ aria-describedby="inspector-toggle-control-6__help"
471
+ class="components-form-toggle__input"
472
+ id="inspector-toggle-control-6"
473
+ type="checkbox"
474
+ />
475
+ <span
476
+ class="components-form-toggle__track"
477
+ />
478
+ <span
479
+ class="components-form-toggle__thumb"
480
+ />
481
+ </span>
482
+ <label
483
+ class="components-toggle-control__label"
484
+ for="inspector-toggle-control-6"
485
+ >
486
+ Display block breadcrumbs
487
+ </label>
488
+ </div>
489
+ </div>
490
+ <p
491
+ class="components-base-control__help emotion-6 emotion-7"
492
+ id="inspector-toggle-control-6__help"
493
+ >
494
+ Shows block breadcrumbs at the bottom of the editor.
495
+ </p>
496
+ </div>
497
+ </div>
498
+ </fieldset>
499
+ </div>
500
+ </div>
501
+ </div>
502
+ </div>
141
503
  `;
142
504
 
143
505
  exports[`EditPostPreferencesModal should match snapshot when the modal is active small viewports 1`] = `
144
- <PreferencesModal
145
- closeModal={[Function]}
506
+ .emotion-0 {
507
+ overflow-x: hidden;
508
+ }
509
+
510
+ .emotion-2 {
511
+ overflow-x: auto;
512
+ max-height: 100%;
513
+ }
514
+
515
+ .emotion-3 {
516
+ background-color: #fff;
517
+ color: #1e1e1e;
518
+ position: relative;
519
+ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
520
+ outline: none;
521
+ box-shadow: none;
522
+ border-radius: calc(2px - 1px);
523
+ }
524
+
525
+ .emotion-5 {
526
+ height: 100%;
527
+ }
528
+
529
+ .emotion-7 {
530
+ box-sizing: border-box;
531
+ height: auto;
532
+ max-height: 100%;
533
+ padding: calc(4px * 4);
534
+ }
535
+
536
+ .emotion-7:first-of-type {
537
+ border-top-left-radius: calc(2px - 1px);
538
+ border-top-right-radius: calc(2px - 1px);
539
+ }
540
+
541
+ .emotion-7:last-of-type {
542
+ border-bottom-left-radius: calc(2px - 1px);
543
+ border-bottom-right-radius: calc(2px - 1px);
544
+ }
545
+
546
+ .emotion-9 {
547
+ border-radius: 2px;
548
+ }
549
+
550
+ .emotion-9>*:first-of-type>* {
551
+ border-top-left-radius: 2px;
552
+ border-top-right-radius: 2px;
553
+ }
554
+
555
+ .emotion-9>*:last-of-type>* {
556
+ border-bottom-left-radius: 2px;
557
+ border-bottom-right-radius: 2px;
558
+ }
559
+
560
+ .emotion-11 {
561
+ width: 100%;
562
+ display: block;
563
+ }
564
+
565
+ .emotion-13 {
566
+ -webkit-appearance: none;
567
+ -moz-appearance: none;
568
+ -ms-appearance: none;
569
+ appearance: none;
570
+ border: 1px solid transparent;
571
+ cursor: pointer;
572
+ background: none;
573
+ text-align: left;
574
+ padding: calc((36px - calc(13px * 1.2) - 2px) / 2) 12px;
575
+ width: 100%;
576
+ display: block;
577
+ margin: 0;
578
+ color: inherit;
579
+ border-radius: 2px;
580
+ }
581
+
582
+ .emotion-13:hover {
583
+ color: var( --wp-admin-theme-color, #007cba);
584
+ }
585
+
586
+ .emotion-13:focus {
587
+ background-color: transparent;
588
+ color: var( --wp-admin-theme-color, #007cba);
589
+ border-color: var( --wp-admin-theme-color, #007cba);
590
+ outline: 3px solid transparent;
591
+ }
592
+
593
+ .emotion-15 {
594
+ display: -webkit-box;
595
+ display: -webkit-flex;
596
+ display: -ms-flexbox;
597
+ display: flex;
598
+ -webkit-align-items: center;
599
+ -webkit-box-align: center;
600
+ -ms-flex-align: center;
601
+ align-items: center;
602
+ -webkit-flex-direction: row;
603
+ -ms-flex-direction: row;
604
+ flex-direction: row;
605
+ gap: calc(4px * 2);
606
+ -webkit-box-pack: justify;
607
+ -webkit-justify-content: space-between;
608
+ justify-content: space-between;
609
+ width: 100%;
610
+ }
611
+
612
+ .emotion-15>* {
613
+ min-width: 0;
614
+ }
615
+
616
+ .emotion-17 {
617
+ display: block;
618
+ max-height: 100%;
619
+ max-width: 100%;
620
+ min-height: 0;
621
+ min-width: 0;
622
+ }
623
+
624
+ .emotion-19 {
625
+ display: block;
626
+ overflow: hidden;
627
+ text-overflow: ellipsis;
628
+ white-space: nowrap;
629
+ }
630
+
631
+ .emotion-47 {
632
+ background: transparent;
633
+ display: block;
634
+ margin: 0!important;
635
+ pointer-events: none;
636
+ position: absolute;
637
+ will-change: box-shadow;
638
+ border-radius: inherit;
639
+ bottom: 0;
640
+ box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0);
641
+ opacity: 1;
642
+ left: 0;
643
+ right: 0;
644
+ top: 0;
645
+ -webkit-transition: box-shadow 200ms cubic-bezier(0.08, 0.52, 0.52, 1);
646
+ transition: box-shadow 200ms cubic-bezier(0.08, 0.52, 0.52, 1);
647
+ border-radius: 2px;
648
+ }
649
+
650
+ @media ( prefers-reduced-motion: reduce ) {
651
+ .emotion-47 {
652
+ transition-duration: 0ms;
653
+ }
654
+ }
655
+
656
+ <div
657
+ aria-labelledby="components-modal-header-1"
658
+ class="components-modal__frame interface-preferences-modal"
659
+ role="dialog"
660
+ tabindex="-1"
146
661
  >
147
- <PreferencesModalTabs
148
- sections={
149
- Array [
150
- Object {
151
- "content": <React.Fragment>
152
- <Section
153
- description="Customize options related to the block editor interface and editing flow."
154
- title="Appearance"
155
- >
156
- <WithSelect(WithDispatch(BaseOption))
157
- featureName="focusMode"
158
- help="Highlights the current block and fades other content."
159
- label="Spotlight mode"
160
- />
161
- <WithSelect(WithDispatch(BaseOption))
162
- featureName="showIconLabels"
163
- help="Show text instead of icons on buttons."
164
- label="Show button text labels"
165
- />
166
- <WithSelect(WithDispatch(BaseOption))
167
- featureName="showListViewByDefault"
168
- help="Opens the block list view sidebar by default."
169
- label="Always open list view"
170
- />
171
- <WithSelect(WithDispatch(BaseOption))
172
- featureName="reducedUI"
173
- help="Compacts options and outlines in the toolbar."
174
- label="Reduce the interface"
175
- />
176
- <WithSelect(WithDispatch(BaseOption))
177
- featureName="themeStyles"
178
- help="Make the editor look like your theme."
179
- label="Use theme styles"
180
- />
181
- <WithSelect(WithDispatch(BaseOption))
182
- featureName="showBlockBreadcrumbs"
183
- help="Shows block breadcrumbs at the bottom of the editor."
184
- label="Display block breadcrumbs"
185
- />
186
- </Section>
187
- </React.Fragment>,
188
- "name": "general",
189
- "tabLabel": "General",
190
- },
191
- Object {
192
- "content": <React.Fragment>
193
- <Section
194
- description="Customize how you interact with blocks in the block library and editing canvas."
195
- title="Block interactions"
196
- >
197
- <WithSelect(WithDispatch(BaseOption))
198
- featureName="mostUsedBlocks"
199
- help="Places the most frequent blocks in the block library."
200
- label="Show most used blocks"
201
- />
202
- <WithSelect(WithDispatch(BaseOption))
203
- featureName="keepCaretInsideBlock"
204
- help="Aids screen readers by stopping text caret from leaving blocks."
205
- label="Contain text cursor inside block"
206
- />
207
- </Section>
208
- <Section
209
- description="Disable blocks that you don't want to appear in the inserter. They can always be toggled back on later."
210
- title="Visible blocks"
211
- >
212
- <WithSelect(BlockManager) />
213
- </Section>
214
- </React.Fragment>,
215
- "name": "blocks",
216
- "tabLabel": "Blocks",
217
- },
218
- Object {
219
- "content": <React.Fragment>
220
- <Section
221
- description="Choose what displays in the panel."
222
- title="Document settings"
662
+ <div
663
+ class="components-modal__content"
664
+ role="document"
665
+ >
666
+ <div
667
+ class="components-modal__header"
668
+ >
669
+ <div
670
+ class="components-modal__header-heading-container"
671
+ >
672
+ <h1
673
+ class="components-modal__header-heading"
674
+ id="components-modal-header-1"
675
+ >
676
+ Preferences
677
+ </h1>
678
+ </div>
679
+ <button
680
+ aria-label="Close dialog"
681
+ class="components-button has-icon"
682
+ type="button"
683
+ >
684
+ <svg
685
+ aria-hidden="true"
686
+ focusable="false"
687
+ height="24"
688
+ viewBox="0 0 24 24"
689
+ width="24"
690
+ xmlns="http://www.w3.org/2000/svg"
691
+ >
692
+ <path
693
+ d="M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"
694
+ />
695
+ </svg>
696
+ </button>
697
+ </div>
698
+ <div
699
+ class="components-navigator-provider interface-preferences__provider emotion-0 emotion-1"
700
+ data-wp-c16t="true"
701
+ data-wp-component="NavigatorProvider"
702
+ >
703
+ <div
704
+ class="emotion-2 components-navigator-screen"
705
+ data-wp-c16t="true"
706
+ data-wp-component="NavigatorScreen"
707
+ style="opacity: 0; transform: translateX(50px) translateZ(0);"
708
+ >
709
+ <div
710
+ class="components-surface components-card emotion-3 emotion-1"
711
+ data-wp-c16t="true"
712
+ data-wp-component="Card"
713
+ >
714
+ <div
715
+ class="emotion-5 emotion-1"
716
+ >
717
+ <div
718
+ class="components-card__body components-card-body emotion-7 emotion-1"
719
+ data-wp-c16t="true"
720
+ data-wp-component="CardBody"
223
721
  >
224
- <EnablePluginDocumentSettingPanelOptionSlot />
225
- <WithSelect(PostTaxonomies)
226
- taxonomyWrapper={[Function]}
227
- />
228
- <PostFeaturedImageCheck>
229
- <WithSelect(IfCondition(WithDispatch(BaseOption)))
230
- label="Featured image"
231
- panelName="featured-image"
232
- />
233
- </PostFeaturedImageCheck>
234
- <PostExcerptCheck>
235
- <WithSelect(IfCondition(WithDispatch(BaseOption)))
236
- label="Excerpt"
237
- panelName="post-excerpt"
238
- />
239
- </PostExcerptCheck>
240
- <WithSelect(PostTypeSupportCheck)
241
- supportKeys={
242
- Array [
243
- "comments",
244
- "trackbacks",
245
- ]
246
- }
722
+ <div
723
+ class="components-item-group emotion-9 emotion-1"
724
+ data-wp-c16t="true"
725
+ data-wp-component="ItemGroup"
726
+ role="list"
247
727
  >
248
- <WithSelect(IfCondition(WithDispatch(BaseOption)))
249
- label="Discussion"
250
- panelName="discussion-panel"
251
- />
252
- </WithSelect(PostTypeSupportCheck)>
253
- <PageAttributesCheck>
254
- <WithSelect(IfCondition(WithDispatch(BaseOption)))
255
- label="Page attributes"
256
- panelName="page-attributes"
257
- />
258
- </PageAttributesCheck>
259
- </Section>
260
- <WithSelect(MetaBoxesSection)
261
- description="Add extra areas to the editor."
262
- title="Additional"
263
- />
264
- </React.Fragment>,
265
- "name": "panels",
266
- "tabLabel": "Panels",
267
- },
268
- ]
269
- }
270
- />
271
- </PreferencesModal>
728
+ <div
729
+ class="emotion-11"
730
+ role="listitem"
731
+ >
732
+ <button
733
+ class="components-item components-navigator-button emotion-1 emotion-13 emotion-1"
734
+ data-wp-c16t="true"
735
+ data-wp-component="NavigatorButton"
736
+ id="general"
737
+ >
738
+ <div
739
+ class="components-flex components-h-stack emotion-15 emotion-1"
740
+ data-wp-c16t="true"
741
+ data-wp-component="HStack"
742
+ >
743
+ <div
744
+ class="components-flex-item emotion-17 emotion-1"
745
+ data-wp-c16t="true"
746
+ data-wp-component="FlexItem"
747
+ >
748
+ <span
749
+ class="components-truncate emotion-19 emotion-1"
750
+ data-wp-c16t="true"
751
+ data-wp-component="Truncate"
752
+ >
753
+ General
754
+ </span>
755
+ </div>
756
+ <div
757
+ class="components-flex-item emotion-17 emotion-1"
758
+ data-wp-c16t="true"
759
+ data-wp-component="FlexItem"
760
+ >
761
+ <svg
762
+ aria-hidden="true"
763
+ focusable="false"
764
+ height="24"
765
+ viewBox="0 0 24 24"
766
+ width="24"
767
+ xmlns="http://www.w3.org/2000/svg"
768
+ >
769
+ <path
770
+ d="M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
771
+ />
772
+ </svg>
773
+ </div>
774
+ </div>
775
+ </button>
776
+ </div>
777
+ <div
778
+ class="emotion-11"
779
+ role="listitem"
780
+ >
781
+ <button
782
+ class="components-item components-navigator-button emotion-1 emotion-13 emotion-1"
783
+ data-wp-c16t="true"
784
+ data-wp-component="NavigatorButton"
785
+ id="blocks"
786
+ >
787
+ <div
788
+ class="components-flex components-h-stack emotion-15 emotion-1"
789
+ data-wp-c16t="true"
790
+ data-wp-component="HStack"
791
+ >
792
+ <div
793
+ class="components-flex-item emotion-17 emotion-1"
794
+ data-wp-c16t="true"
795
+ data-wp-component="FlexItem"
796
+ >
797
+ <span
798
+ class="components-truncate emotion-19 emotion-1"
799
+ data-wp-c16t="true"
800
+ data-wp-component="Truncate"
801
+ >
802
+ Blocks
803
+ </span>
804
+ </div>
805
+ <div
806
+ class="components-flex-item emotion-17 emotion-1"
807
+ data-wp-c16t="true"
808
+ data-wp-component="FlexItem"
809
+ >
810
+ <svg
811
+ aria-hidden="true"
812
+ focusable="false"
813
+ height="24"
814
+ viewBox="0 0 24 24"
815
+ width="24"
816
+ xmlns="http://www.w3.org/2000/svg"
817
+ >
818
+ <path
819
+ d="M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
820
+ />
821
+ </svg>
822
+ </div>
823
+ </div>
824
+ </button>
825
+ </div>
826
+ <div
827
+ class="emotion-11"
828
+ role="listitem"
829
+ >
830
+ <button
831
+ class="components-item components-navigator-button emotion-1 emotion-13 emotion-1"
832
+ data-wp-c16t="true"
833
+ data-wp-component="NavigatorButton"
834
+ id="panels"
835
+ >
836
+ <div
837
+ class="components-flex components-h-stack emotion-15 emotion-1"
838
+ data-wp-c16t="true"
839
+ data-wp-component="HStack"
840
+ >
841
+ <div
842
+ class="components-flex-item emotion-17 emotion-1"
843
+ data-wp-c16t="true"
844
+ data-wp-component="FlexItem"
845
+ >
846
+ <span
847
+ class="components-truncate emotion-19 emotion-1"
848
+ data-wp-c16t="true"
849
+ data-wp-component="Truncate"
850
+ >
851
+ Panels
852
+ </span>
853
+ </div>
854
+ <div
855
+ class="components-flex-item emotion-17 emotion-1"
856
+ data-wp-c16t="true"
857
+ data-wp-component="FlexItem"
858
+ >
859
+ <svg
860
+ aria-hidden="true"
861
+ focusable="false"
862
+ height="24"
863
+ viewBox="0 0 24 24"
864
+ width="24"
865
+ xmlns="http://www.w3.org/2000/svg"
866
+ >
867
+ <path
868
+ d="M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
869
+ />
870
+ </svg>
871
+ </div>
872
+ </div>
873
+ </button>
874
+ </div>
875
+ </div>
876
+ </div>
877
+ </div>
878
+ <div
879
+ aria-hidden="true"
880
+ class="components-elevation emotion-47 emotion-1"
881
+ data-wp-c16t="true"
882
+ data-wp-component="Elevation"
883
+ />
884
+ <div
885
+ aria-hidden="true"
886
+ class="components-elevation emotion-47 emotion-1"
887
+ data-wp-c16t="true"
888
+ data-wp-component="Elevation"
889
+ />
890
+ </div>
891
+ </div>
892
+ </div>
893
+ </div>
894
+ </div>
272
895
  `;