@wordpress/edit-post 6.18.0 → 7.0.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 (117) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/components/block-manager/category.js +3 -11
  3. package/build/components/block-manager/category.js.map +1 -1
  4. package/build/components/block-manager/checklist.js +4 -3
  5. package/build/components/block-manager/checklist.js.map +1 -1
  6. package/build/components/block-manager/index.js +3 -10
  7. package/build/components/block-manager/index.js.map +1 -1
  8. package/build/components/header/header-toolbar/index.js +2 -2
  9. package/build/components/header/header-toolbar/index.js.map +1 -1
  10. package/build/components/header/index.js +2 -2
  11. package/build/components/header/index.js.map +1 -1
  12. package/build/components/keyboard-shortcut-help-modal/config.js +12 -0
  13. package/build/components/keyboard-shortcut-help-modal/config.js.map +1 -1
  14. package/build/components/keyboard-shortcuts/index.js +68 -0
  15. package/build/components/keyboard-shortcuts/index.js.map +1 -1
  16. package/build/components/layout/index.js +3 -2
  17. package/build/components/layout/index.js.map +1 -1
  18. package/build/components/preferences-modal/index.js +1 -1
  19. package/build/components/preferences-modal/index.js.map +1 -1
  20. package/build/components/preferences-modal/meta-boxes-section.js +1 -1
  21. package/build/components/preferences-modal/meta-boxes-section.js.map +1 -1
  22. package/build/components/secondary-sidebar/list-view-sidebar.js +4 -4
  23. package/build/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
  24. package/build/components/sidebar/post-status/index.js +1 -1
  25. package/build/components/sidebar/post-status/index.js.map +1 -1
  26. package/build/components/sidebar/post-template/index.js +2 -4
  27. package/build/components/sidebar/post-template/index.js.map +1 -1
  28. package/build/components/sidebar/settings-sidebar/index.js +7 -7
  29. package/build/components/sidebar/settings-sidebar/index.js.map +1 -1
  30. package/build/editor.native.js +8 -2
  31. package/build/editor.native.js.map +1 -1
  32. package/build/hooks/validate-multiple-use/index.js +1 -7
  33. package/build/hooks/validate-multiple-use/index.js.map +1 -1
  34. package/build/plugins/index.js +3 -1
  35. package/build/plugins/index.js.map +1 -1
  36. package/build/plugins/navigation-list-view-menu-item.js +48 -0
  37. package/build/plugins/navigation-list-view-menu-item.js.map +1 -0
  38. package/build/store/actions.js +1 -7
  39. package/build/store/actions.js.map +1 -1
  40. package/build-module/components/block-manager/category.js +3 -11
  41. package/build-module/components/block-manager/category.js.map +1 -1
  42. package/build-module/components/block-manager/checklist.js +5 -4
  43. package/build-module/components/block-manager/checklist.js.map +1 -1
  44. package/build-module/components/block-manager/index.js +3 -9
  45. package/build-module/components/block-manager/index.js.map +1 -1
  46. package/build-module/components/header/header-toolbar/index.js +2 -2
  47. package/build-module/components/header/header-toolbar/index.js.map +1 -1
  48. package/build-module/components/header/index.js +2 -2
  49. package/build-module/components/header/index.js.map +1 -1
  50. package/build-module/components/keyboard-shortcut-help-modal/config.js +12 -0
  51. package/build-module/components/keyboard-shortcut-help-modal/config.js.map +1 -1
  52. package/build-module/components/keyboard-shortcuts/index.js +67 -0
  53. package/build-module/components/keyboard-shortcuts/index.js.map +1 -1
  54. package/build-module/components/layout/index.js +3 -2
  55. package/build-module/components/layout/index.js.map +1 -1
  56. package/build-module/components/preferences-modal/index.js +1 -1
  57. package/build-module/components/preferences-modal/index.js.map +1 -1
  58. package/build-module/components/preferences-modal/meta-boxes-section.js +2 -2
  59. package/build-module/components/preferences-modal/meta-boxes-section.js.map +1 -1
  60. package/build-module/components/secondary-sidebar/list-view-sidebar.js +4 -4
  61. package/build-module/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
  62. package/build-module/components/sidebar/post-status/index.js +1 -1
  63. package/build-module/components/sidebar/post-status/index.js.map +1 -1
  64. package/build-module/components/sidebar/post-template/index.js +2 -4
  65. package/build-module/components/sidebar/post-template/index.js.map +1 -1
  66. package/build-module/components/sidebar/settings-sidebar/index.js +5 -5
  67. package/build-module/components/sidebar/settings-sidebar/index.js.map +1 -1
  68. package/build-module/editor.native.js +7 -2
  69. package/build-module/editor.native.js.map +1 -1
  70. package/build-module/hooks/validate-multiple-use/index.js +1 -6
  71. package/build-module/hooks/validate-multiple-use/index.js.map +1 -1
  72. package/build-module/plugins/index.js +2 -1
  73. package/build-module/plugins/index.js.map +1 -1
  74. package/build-module/plugins/navigation-list-view-menu-item.js +40 -0
  75. package/build-module/plugins/navigation-list-view-menu-item.js.map +1 -0
  76. package/build-module/store/actions.js +1 -6
  77. package/build-module/store/actions.js.map +1 -1
  78. package/build-style/classic-rtl.css +14 -0
  79. package/build-style/classic.css +14 -0
  80. package/build-style/style-rtl.css +102 -66
  81. package/build-style/style.css +102 -66
  82. package/package.json +29 -29
  83. package/src/components/block-manager/category.js +3 -10
  84. package/src/components/block-manager/checklist.js +3 -6
  85. package/src/components/block-manager/index.js +6 -10
  86. package/src/components/block-manager/style.scss +4 -15
  87. package/src/components/header/header-toolbar/index.js +2 -2
  88. package/src/components/header/index.js +3 -3
  89. package/src/components/header/style.scss +3 -8
  90. package/src/components/keyboard-shortcut-help-modal/config.js +10 -0
  91. package/src/components/keyboard-shortcut-help-modal/test/__snapshots__/index.js.snap +70 -0
  92. package/src/components/keyboard-shortcuts/index.js +71 -0
  93. package/src/components/layout/index.js +4 -2
  94. package/src/components/layout/style.scss +12 -1
  95. package/src/components/preferences-modal/index.js +1 -1
  96. package/src/components/preferences-modal/meta-boxes-section.js +2 -3
  97. package/src/components/preferences-modal/options/test/__snapshots__/enable-custom-fields.js.snap +56 -4
  98. package/src/components/preferences-modal/test/__snapshots__/index.js.snap +43 -18
  99. package/src/components/preferences-modal/test/__snapshots__/meta-boxes-section.js.snap +51 -6
  100. package/src/components/secondary-sidebar/list-view-sidebar.js +4 -4
  101. package/src/components/secondary-sidebar/style.scss +3 -3
  102. package/src/components/sidebar/plugin-pre-publish-panel/test/index.js +8 -6
  103. package/src/components/sidebar/post-schedule/style.scss +2 -1
  104. package/src/components/sidebar/post-status/index.js +1 -1
  105. package/src/components/sidebar/post-template/index.js +8 -3
  106. package/src/components/sidebar/post-template/style.scss +2 -0
  107. package/src/components/sidebar/post-url/style.scss +3 -0
  108. package/src/components/sidebar/post-visibility/style.scss +2 -0
  109. package/src/components/sidebar/settings-header/style.scss +47 -34
  110. package/src/components/sidebar/settings-sidebar/index.js +5 -5
  111. package/src/components/visual-editor/test/index.native.js +24 -13
  112. package/src/editor.native.js +14 -11
  113. package/src/hooks/validate-multiple-use/index.js +1 -7
  114. package/src/plugins/index.js +2 -0
  115. package/src/plugins/navigation-list-view-menu-item.js +56 -0
  116. package/src/store/actions.js +6 -15
  117. package/src/components/sidebar/plugin-pre-publish-panel/test/__snapshots__/index.js.snap +0 -3
@@ -821,6 +821,76 @@ exports[`KeyboardShortcutHelpModal should match snapshot when the modal is activ
821
821
  </kbd>
822
822
  </div>
823
823
  </li>
824
+ <li
825
+ class="edit-post-keyboard-shortcut-help-modal__shortcut"
826
+ >
827
+ <div
828
+ class="edit-post-keyboard-shortcut-help-modal__shortcut-description"
829
+ >
830
+ Convert the current heading to a paragraph.
831
+ </div>
832
+ <div
833
+ class="edit-post-keyboard-shortcut-help-modal__shortcut-term"
834
+ >
835
+ <kbd
836
+ aria-label="Shift + Alt + 0"
837
+ class="edit-post-keyboard-shortcut-help-modal__shortcut-key-combination"
838
+ >
839
+ <kbd
840
+ class="edit-post-keyboard-shortcut-help-modal__shortcut-key"
841
+ >
842
+ Shift
843
+ </kbd>
844
+ +
845
+ <kbd
846
+ class="edit-post-keyboard-shortcut-help-modal__shortcut-key"
847
+ >
848
+ Alt
849
+ </kbd>
850
+ +
851
+ <kbd
852
+ class="edit-post-keyboard-shortcut-help-modal__shortcut-key"
853
+ >
854
+ 0
855
+ </kbd>
856
+ </kbd>
857
+ </div>
858
+ </li>
859
+ <li
860
+ class="edit-post-keyboard-shortcut-help-modal__shortcut"
861
+ >
862
+ <div
863
+ class="edit-post-keyboard-shortcut-help-modal__shortcut-description"
864
+ >
865
+ Convert the current paragraph or heading to a heading of level 1 to 6.
866
+ </div>
867
+ <div
868
+ class="edit-post-keyboard-shortcut-help-modal__shortcut-term"
869
+ >
870
+ <kbd
871
+ aria-label="Shift + Alt + 1 6"
872
+ class="edit-post-keyboard-shortcut-help-modal__shortcut-key-combination"
873
+ >
874
+ <kbd
875
+ class="edit-post-keyboard-shortcut-help-modal__shortcut-key"
876
+ >
877
+ Shift
878
+ </kbd>
879
+ +
880
+ <kbd
881
+ class="edit-post-keyboard-shortcut-help-modal__shortcut-key"
882
+ >
883
+ Alt
884
+ </kbd>
885
+ +
886
+ <kbd
887
+ class="edit-post-keyboard-shortcut-help-modal__shortcut-key"
888
+ >
889
+ 1-6
890
+ </kbd>
891
+ </kbd>
892
+ </div>
893
+ </li>
824
894
  </ul>
825
895
  </section>
826
896
  </div>
@@ -12,6 +12,7 @@ import { store as editorStore } from '@wordpress/editor';
12
12
  import { store as blockEditorStore } from '@wordpress/block-editor';
13
13
  import { store as noticesStore } from '@wordpress/notices';
14
14
  import { store as preferencesStore } from '@wordpress/preferences';
15
+ import { createBlock } from '@wordpress/blocks';
15
16
 
16
17
  /**
17
18
  * Internal dependencies
@@ -53,6 +54,35 @@ function KeyboardShortcuts() {
53
54
  closeGeneralSidebar();
54
55
  };
55
56
 
57
+ const { replaceBlocks } = useDispatch( blockEditorStore );
58
+ const { getBlockName, getSelectedBlockClientId, getBlockAttributes } =
59
+ useSelect( blockEditorStore );
60
+
61
+ const handleTextLevelShortcut = ( event, level ) => {
62
+ event.preventDefault();
63
+ const destinationBlockName =
64
+ level === 0 ? 'core/paragraph' : 'core/heading';
65
+ const currentClientId = getSelectedBlockClientId();
66
+ if ( currentClientId === null ) {
67
+ return;
68
+ }
69
+ const blockName = getBlockName( currentClientId );
70
+ if ( blockName !== 'core/paragraph' && blockName !== 'core/heading' ) {
71
+ return;
72
+ }
73
+ const currentAttributes = getBlockAttributes( currentClientId );
74
+ const { content: currentContent, align: currentAlign } =
75
+ currentAttributes;
76
+ replaceBlocks(
77
+ currentClientId,
78
+ createBlock( destinationBlockName, {
79
+ level,
80
+ content: currentContent,
81
+ align: currentAlign,
82
+ } )
83
+ );
84
+ };
85
+
56
86
  useEffect( () => {
57
87
  registerShortcut( {
58
88
  name: 'core/edit-post/toggle-mode',
@@ -133,6 +163,10 @@ function KeyboardShortcuts() {
133
163
  modifier: 'access',
134
164
  character: 'p',
135
165
  },
166
+ {
167
+ modifier: 'ctrlShift',
168
+ character: '~',
169
+ },
136
170
  ],
137
171
  } );
138
172
 
@@ -145,6 +179,28 @@ function KeyboardShortcuts() {
145
179
  character: 'h',
146
180
  },
147
181
  } );
182
+
183
+ registerShortcut( {
184
+ name: `core/block-editor/transform-heading-to-paragraph`,
185
+ category: 'block-library',
186
+ description: __( 'Transform heading to paragraph.' ),
187
+ keyCombination: {
188
+ modifier: 'access',
189
+ character: `0`,
190
+ },
191
+ } );
192
+
193
+ [ 1, 2, 3, 4, 5, 6 ].forEach( ( level ) => {
194
+ registerShortcut( {
195
+ name: `core/block-editor/transform-paragraph-to-heading-${ level }`,
196
+ category: 'block-library',
197
+ description: __( 'Transform paragraph to heading.' ),
198
+ keyCombination: {
199
+ modifier: 'access',
200
+ character: `${ level }`,
201
+ },
202
+ } );
203
+ } );
148
204
  }, [] );
149
205
 
150
206
  useShortcut(
@@ -198,6 +254,21 @@ function KeyboardShortcuts() {
198
254
  setIsListViewOpened( ! isListViewOpened() )
199
255
  );
200
256
 
257
+ useShortcut(
258
+ 'core/block-editor/transform-heading-to-paragraph',
259
+ ( event ) => handleTextLevelShortcut( event, 0 )
260
+ );
261
+
262
+ [ 1, 2, 3, 4, 5, 6 ].forEach( ( level ) => {
263
+ //the loop is based off on a constant therefore
264
+ //the hook will execute the same way every time
265
+ //eslint-disable-next-line react-hooks/rules-of-hooks
266
+ useShortcut(
267
+ `core/block-editor/transform-paragraph-to-heading-${ level }`,
268
+ ( event ) => handleTextLevelShortcut( event, level )
269
+ );
270
+ } );
271
+
201
272
  return null;
202
273
  }
203
274
 
@@ -66,6 +66,7 @@ const interfaceLabels = {
66
66
  function Layout( { styles } ) {
67
67
  const isMobileViewport = useViewportMatch( 'medium', '<' );
68
68
  const isHugeViewport = useViewportMatch( 'huge', '>=' );
69
+ const isLargeViewport = useViewportMatch( 'large' );
69
70
  const { openGeneralSidebar, closeGeneralSidebar, setIsInserterOpened } =
70
71
  useDispatch( editPostStore );
71
72
  const { createErrorNotice } = useDispatch( noticesStore );
@@ -116,7 +117,8 @@ function Layout( { styles } ) {
116
117
  showIconLabels:
117
118
  select( editPostStore ).isFeatureActive( 'showIconLabels' ),
118
119
  isDistractionFree:
119
- select( editPostStore ).isFeatureActive( 'distractionFree' ),
120
+ select( editPostStore ).isFeatureActive( 'distractionFree' ) &&
121
+ isLargeViewport,
120
122
  showBlockBreadcrumbs: select( editPostStore ).isFeatureActive(
121
123
  'showBlockBreadcrumbs'
122
124
  ),
@@ -164,7 +166,7 @@ function Layout( { styles } ) {
164
166
  );
165
167
 
166
168
  const secondarySidebarLabel = isListViewOpened
167
- ? __( 'List View' )
169
+ ? __( 'Document Overview' )
168
170
  : __( 'Block Library' );
169
171
 
170
172
  const secondarySidebar = () => {
@@ -60,7 +60,6 @@
60
60
  justify-content: center;
61
61
  }
62
62
 
63
-
64
63
  .edit-post-layout__toggle-publish-panel,
65
64
  .edit-post-layout__toggle-sidebar-panel,
66
65
  .edit-post-layout__toggle-entities-saved-states-panel {
@@ -70,6 +69,7 @@
70
69
  bottom: auto;
71
70
  left: auto;
72
71
  right: 0;
72
+ box-sizing: border-box;
73
73
  width: $sidebar-width;
74
74
  background-color: $white;
75
75
  border: 1px dotted $gray-300;
@@ -77,7 +77,18 @@
77
77
  padding: $grid-unit-30;
78
78
  display: flex;
79
79
  justify-content: center;
80
+ }
81
+
82
+ .edit-post-layout__toggle-sidebar-panel {
83
+ .interface-interface-skeleton__sidebar:focus &,
84
+ .interface-interface-skeleton__sidebar:focus-within & {
85
+ top: auto;
86
+ bottom: 0;
87
+ }
88
+ }
80
89
 
90
+ .edit-post-layout__toggle-entities-saved-states-panel,
91
+ .edit-post-layout__toggle-publish-panel {
81
92
  .interface-interface-skeleton__actions:focus &,
82
93
  .interface-interface-skeleton__actions:focus-within & {
83
94
  top: auto;
@@ -116,7 +116,7 @@ export default function EditPostPreferencesModal() {
116
116
  help={ __(
117
117
  'Reduce visual distractions by hiding the toolbar and other elements to focus on writing.'
118
118
  ) }
119
- label={ __( 'Distraction Free' ) }
119
+ label={ __( 'Distraction free' ) }
120
120
  />
121
121
  <EnableFeature
122
122
  featureName="focusMode"
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import { filter, map } from 'lodash';
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
 
@@ -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>
@@ -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-6 emotion-7"
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,15 +263,17 @@ 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
- Distraction Free
271
+ Distraction free
257
272
  </label>
258
273
  </div>
259
274
  </div>
260
275
  <p
261
- class="components-base-control__help emotion-6 emotion-7"
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-6 emotion-7"
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-6 emotion-7"
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-6 emotion-7"
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-6 emotion-7"
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-6 emotion-7"
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.
@@ -580,13 +605,13 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
580
605
  }
581
606
 
582
607
  .emotion-13:hover {
583
- color: var( --wp-admin-theme-color, #007cba);
608
+ color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
584
609
  }
585
610
 
586
611
  .emotion-13:focus {
587
612
  background-color: transparent;
588
- color: var( --wp-admin-theme-color, #007cba);
589
- border-color: var( --wp-admin-theme-color, #007cba);
613
+ color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
614
+ border-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
590
615
  outline: 3px solid transparent;
591
616
  }
592
617
 
@@ -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