@wordpress/edit-post 5.0.1-next.5df0cd52b7.0 → 5.0.4

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 (157) hide show
  1. package/README.md +2 -5
  2. package/build/components/header/fullscreen-mode-close/index.js +19 -3
  3. package/build/components/header/fullscreen-mode-close/index.js.map +1 -1
  4. package/build/components/header/header-toolbar/index.native.js +10 -3
  5. package/build/components/header/header-toolbar/index.native.js.map +1 -1
  6. package/build/components/header/more-menu/index.js +3 -14
  7. package/build/components/header/more-menu/index.js.map +1 -1
  8. package/build/components/header/template-title/index.js +1 -1
  9. package/build/components/header/template-title/index.js.map +1 -1
  10. package/build/components/header/writing-menu/index.js +7 -10
  11. package/build/components/header/writing-menu/index.js.map +1 -1
  12. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +1 -1
  13. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
  14. package/build/components/keyboard-shortcut-help-modal/index.js +1 -3
  15. package/build/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  16. package/build/components/keyboard-shortcuts/index.js +1 -8
  17. package/build/components/keyboard-shortcuts/index.js.map +1 -1
  18. package/build/components/layout/index.js +3 -5
  19. package/build/components/layout/index.js.map +1 -1
  20. package/build/components/layout/index.native.js +5 -1
  21. package/build/components/layout/index.native.js.map +1 -1
  22. package/build/components/meta-boxes/index.js +39 -19
  23. package/build/components/meta-boxes/index.js.map +1 -1
  24. package/build/components/preferences-modal/index.js +56 -18
  25. package/build/components/preferences-modal/index.js.map +1 -1
  26. package/build/components/secondary-sidebar/inserter-sidebar.js +2 -1
  27. package/build/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
  28. package/build/components/secondary-sidebar/list-view-sidebar.js +1 -0
  29. package/build/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
  30. package/build/components/sidebar/plugin-sidebar/index.js +1 -1
  31. package/build/components/sidebar/plugin-sidebar/index.js.map +1 -1
  32. package/build/components/sidebar/post-link/index.js +1 -1
  33. package/build/components/sidebar/post-link/index.js.map +1 -1
  34. package/build/components/sidebar/template/actions.js +6 -1
  35. package/build/components/sidebar/template/actions.js.map +1 -1
  36. package/build/components/sidebar/template-summary/index.js +2 -1
  37. package/build/components/sidebar/template-summary/index.js.map +1 -1
  38. package/build/components/visual-editor/index.js +6 -4
  39. package/build/components/visual-editor/index.js.map +1 -1
  40. package/build/editor.js +9 -5
  41. package/build/editor.js.map +1 -1
  42. package/build/hooks/validate-multiple-use/index.js +1 -1
  43. package/build/hooks/validate-multiple-use/index.js.map +1 -1
  44. package/build/index.js +27 -12
  45. package/build/index.js.map +1 -1
  46. package/build/plugins/welcome-guide-menu-item/index.js +6 -7
  47. package/build/plugins/welcome-guide-menu-item/index.js.map +1 -1
  48. package/build/store/actions.js +68 -59
  49. package/build/store/actions.js.map +1 -1
  50. package/build/store/defaults.js +0 -9
  51. package/build/store/defaults.js.map +1 -1
  52. package/build/store/reducer.js +20 -11
  53. package/build/store/reducer.js.map +1 -1
  54. package/build/store/selectors.js +24 -10
  55. package/build/store/selectors.js.map +1 -1
  56. package/build-module/components/header/fullscreen-mode-close/index.js +19 -4
  57. package/build-module/components/header/fullscreen-mode-close/index.js.map +1 -1
  58. package/build-module/components/header/header-toolbar/index.native.js +11 -4
  59. package/build-module/components/header/header-toolbar/index.native.js.map +1 -1
  60. package/build-module/components/header/more-menu/index.js +5 -15
  61. package/build-module/components/header/more-menu/index.js.map +1 -1
  62. package/build-module/components/header/template-title/index.js +1 -1
  63. package/build-module/components/header/template-title/index.js.map +1 -1
  64. package/build-module/components/header/writing-menu/index.js +7 -8
  65. package/build-module/components/header/writing-menu/index.js.map +1 -1
  66. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +1 -1
  67. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
  68. package/build-module/components/keyboard-shortcut-help-modal/index.js +1 -3
  69. package/build-module/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  70. package/build-module/components/keyboard-shortcuts/index.js +1 -8
  71. package/build-module/components/keyboard-shortcuts/index.js.map +1 -1
  72. package/build-module/components/layout/index.js +4 -6
  73. package/build-module/components/layout/index.js.map +1 -1
  74. package/build-module/components/layout/index.native.js +5 -1
  75. package/build-module/components/layout/index.native.js.map +1 -1
  76. package/build-module/components/meta-boxes/index.js +40 -19
  77. package/build-module/components/meta-boxes/index.js.map +1 -1
  78. package/build-module/components/preferences-modal/index.js +57 -20
  79. package/build-module/components/preferences-modal/index.js.map +1 -1
  80. package/build-module/components/secondary-sidebar/inserter-sidebar.js +2 -1
  81. package/build-module/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
  82. package/build-module/components/secondary-sidebar/list-view-sidebar.js +1 -0
  83. package/build-module/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
  84. package/build-module/components/sidebar/plugin-sidebar/index.js +1 -1
  85. package/build-module/components/sidebar/plugin-sidebar/index.js.map +1 -1
  86. package/build-module/components/sidebar/post-link/index.js +1 -1
  87. package/build-module/components/sidebar/post-link/index.js.map +1 -1
  88. package/build-module/components/sidebar/template/actions.js +6 -1
  89. package/build-module/components/sidebar/template/actions.js.map +1 -1
  90. package/build-module/components/sidebar/template-summary/index.js +2 -1
  91. package/build-module/components/sidebar/template-summary/index.js.map +1 -1
  92. package/build-module/components/visual-editor/index.js +6 -4
  93. package/build-module/components/visual-editor/index.js.map +1 -1
  94. package/build-module/editor.js +9 -6
  95. package/build-module/editor.js.map +1 -1
  96. package/build-module/hooks/validate-multiple-use/index.js +1 -1
  97. package/build-module/hooks/validate-multiple-use/index.js.map +1 -1
  98. package/build-module/index.js +17 -5
  99. package/build-module/index.js.map +1 -1
  100. package/build-module/plugins/welcome-guide-menu-item/index.js +7 -8
  101. package/build-module/plugins/welcome-guide-menu-item/index.js.map +1 -1
  102. package/build-module/store/actions.js +66 -59
  103. package/build-module/store/actions.js.map +1 -1
  104. package/build-module/store/defaults.js +0 -9
  105. package/build-module/store/defaults.js.map +1 -1
  106. package/build-module/store/reducer.js +20 -11
  107. package/build-module/store/reducer.js.map +1 -1
  108. package/build-module/store/selectors.js +20 -7
  109. package/build-module/store/selectors.js.map +1 -1
  110. package/build-style/style-rtl.css +68 -69
  111. package/build-style/style.css +68 -69
  112. package/package.json +27 -27
  113. package/src/components/header/fullscreen-mode-close/index.js +37 -15
  114. package/src/components/header/fullscreen-mode-close/style.scss +2 -2
  115. package/src/components/header/header-toolbar/index.native.js +8 -2
  116. package/src/components/header/more-menu/index.js +8 -13
  117. package/src/components/header/template-title/index.js +3 -1
  118. package/src/components/header/writing-menu/index.js +7 -8
  119. package/src/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +15 -12
  120. package/src/components/keyboard-shortcut-help-modal/index.js +1 -3
  121. package/src/components/keyboard-shortcut-help-modal/test/__snapshots__/index.js.snap +2 -2
  122. package/src/components/keyboard-shortcuts/index.js +19 -32
  123. package/src/components/layout/index.js +4 -10
  124. package/src/components/layout/index.native.js +7 -1
  125. package/src/components/meta-boxes/index.js +41 -13
  126. package/src/components/preferences-modal/index.js +93 -30
  127. package/src/components/preferences-modal/style.scss +6 -56
  128. package/src/components/preferences-modal/test/__snapshots__/index.js.snap +334 -136
  129. package/src/components/secondary-sidebar/inserter-sidebar.js +1 -0
  130. package/src/components/secondary-sidebar/list-view-sidebar.js +1 -0
  131. package/src/components/sidebar/plugin-sidebar/index.js +1 -1
  132. package/src/components/sidebar/post-link/index.js +5 -1
  133. package/src/components/sidebar/template/actions.js +6 -1
  134. package/src/components/sidebar/template-summary/index.js +1 -1
  135. package/src/components/sidebar/template-summary/style.scss +2 -1
  136. package/src/components/text-editor/style.scss +12 -22
  137. package/src/components/visual-editor/index.js +16 -10
  138. package/src/components/visual-editor/style.scss +4 -7
  139. package/src/components/welcome-guide/style.scss +5 -0
  140. package/src/editor.js +88 -79
  141. package/src/hooks/validate-multiple-use/index.js +1 -1
  142. package/src/index.js +17 -5
  143. package/src/plugins/welcome-guide-menu-item/index.js +7 -12
  144. package/src/store/actions.js +99 -80
  145. package/src/store/defaults.js +0 -9
  146. package/src/store/reducer.js +17 -10
  147. package/src/store/selectors.js +27 -7
  148. package/src/store/test/actions.js +0 -11
  149. package/src/store/test/reducer.js +0 -12
  150. package/src/store/test/selectors.js +0 -46
  151. package/build/components/header/feature-toggle/index.js +0 -76
  152. package/build/components/header/feature-toggle/index.js.map +0 -1
  153. package/build-module/components/header/feature-toggle/index.js +0 -60
  154. package/build-module/components/header/feature-toggle/index.js.map +0 -1
  155. package/src/components/header/feature-toggle/index.js +0 -61
  156. package/src/components/header/more-menu/test/__snapshots__/index.js.snap +0 -129
  157. package/src/components/header/more-menu/test/index.js +0 -17
@@ -162,9 +162,9 @@ export function isModalActive(state, modalName) {
162
162
  * @return {boolean} Is active.
163
163
  */
164
164
 
165
- export function isFeatureActive(state, feature) {
166
- return get(state.preferences.features, [feature], false);
167
- }
165
+ export const isFeatureActive = createRegistrySelector(select => (state, feature) => {
166
+ return select(interfaceStore).isFeatureActive('core/edit-post', feature);
167
+ });
168
168
  /**
169
169
  * Returns true if the plugin item is pinned to the header.
170
170
  * When the value is not set it defaults to true.
@@ -175,7 +175,7 @@ export function isFeatureActive(state, feature) {
175
175
  * @return {boolean} Whether the plugin item is pinned.
176
176
  */
177
177
 
178
- export const isPluginItemPinned = createRegistrySelector(select => pluginName => {
178
+ export const isPluginItemPinned = createRegistrySelector(select => (state, pluginName) => {
179
179
  return select(interfaceStore).isItemPinned('core/edit-post', pluginName);
180
180
  });
181
181
  /**
@@ -291,17 +291,19 @@ export function isInserterOpened(state) {
291
291
  *
292
292
  * @param {Object} state Global application state.
293
293
  *
294
- * @return {Object} The root client ID and index to insert at.
294
+ * @return {Object} The root client ID, index to insert at and starting filter value.
295
295
  */
296
296
 
297
297
  export function __experimentalGetInsertionPoint(state) {
298
298
  const {
299
299
  rootClientId,
300
- insertionIndex
300
+ insertionIndex,
301
+ filterValue
301
302
  } = state.blockInserterPanel;
302
303
  return {
303
304
  rootClientId,
304
- insertionIndex
305
+ insertionIndex,
306
+ filterValue
305
307
  };
306
308
  }
307
309
  /**
@@ -326,6 +328,17 @@ export function isListViewOpened(state) {
326
328
  export function isEditingTemplate(state) {
327
329
  return state.isEditingTemplate;
328
330
  }
331
+ /**
332
+ * Returns true if meta boxes are initialized.
333
+ *
334
+ * @param {Object} state Global application state.
335
+ *
336
+ * @return {boolean} Whether meta boxes are initialized.
337
+ */
338
+
339
+ export function areMetaBoxesInitialized(state) {
340
+ return state.metaBoxes.initialized;
341
+ }
329
342
  /**
330
343
  * Retrieves the template of the currently edited post.
331
344
  *
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-post/src/store/selectors.js"],"names":["createSelector","get","includes","some","flatten","values","createRegistrySelector","store","interfaceStore","coreStore","editorStore","getEditorMode","state","getPreference","isEditorSidebarOpened","select","activeGeneralSidebar","getActiveComplementaryArea","isPluginSidebarOpened","getActiveGeneralSidebarName","getPreferences","preferences","preferenceKey","defaultValue","value","undefined","isPublishSidebarOpened","publishSidebarActive","isEditorPanelRemoved","panelName","removedPanels","isEditorPanelEnabled","panels","isEditorPanelOpened","isModalActive","modalName","activeModal","isFeatureActive","feature","features","isPluginItemPinned","pluginName","isItemPinned","getActiveMetaBoxLocations","Object","keys","metaBoxes","locations","filter","location","isMetaBoxLocationActive","isMetaBoxLocationVisible","getMetaBoxesPerLocation","id","length","getAllMetaBoxes","hasMetaBoxes","isSavingMetaBoxes","isSaving","__experimentalGetPreviewDeviceType","deviceType","isInserterOpened","blockInserterPanel","__experimentalGetInsertionPoint","rootClientId","insertionIndex","isListViewOpened","listViewPanel","isEditingTemplate","getEditedPostTemplate","currentTemplate","getEditedPostAttribute","templateWithSameSlug","getEntityRecords","find","template","slug","getEditedEntityRecord","post","getCurrentPost","link","__experimentalGetTemplateForLink"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,cAAP,MAA2B,QAA3B;AACA,SAASC,GAAT,EAAcC,QAAd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D,MAAM,CAAEN,SAAF,CAAN,CAAoBoE,qBAApB,CACN,UADM,EAEN,aAFM,EAGNL,oBAAoB,CAACnB,EAHf,CAAP;AAKA;;AAED,QAAMyB,IAAI,GAAG/D,MAAM,CAAEL,WAAF,CAAN,CAAsBqE,cAAtB,EAAb;;AACA,MAAKD,IAAI,CAACE,IAAV,EAAiB;AAChB,WAAOjE,MAAM,CAAEN,SAAF,CAAN,CAAoBwE,gCAApB,CACNH,IAAI,CAACE,IADC,CAAP;AAGA;;AAED,SAAO,IAAP;AACA,CA3ByD,CAApD","sourcesContent":["/**\n * External dependencies\n */\nimport createSelector from 'rememo';\nimport { get, includes, some, flatten, values } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { createRegistrySelector } from '@wordpress/data';\nimport { store as interfaceStore } from '@wordpress/interface';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { store as editorStore } from '@wordpress/editor';\n/**\n * Returns the current editing mode.\n *\n * @param {Object} state Global application state.\n *\n * @return {string} Editing mode.\n */\nexport function getEditorMode( state ) {\n\treturn getPreference( state, 'editorMode', 'visual' );\n}\n\n/**\n * Returns true if the editor sidebar is opened.\n *\n * @param {Object} state Global application state\n *\n * @return {boolean} Whether the editor sidebar is opened.\n */\nexport const isEditorSidebarOpened = createRegistrySelector(\n\t( select ) => () => {\n\t\tconst activeGeneralSidebar = select(\n\t\t\tinterfaceStore\n\t\t).getActiveComplementaryArea( 'core/edit-post' );\n\t\treturn includes(\n\t\t\t[ 'edit-post/document', 'edit-post/block' ],\n\t\t\tactiveGeneralSidebar\n\t\t);\n\t}\n);\n\n/**\n * Returns true if the plugin sidebar is opened.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the plugin sidebar is opened.\n */\nexport const isPluginSidebarOpened = createRegistrySelector(\n\t( select ) => () => {\n\t\tconst activeGeneralSidebar = select(\n\t\t\tinterfaceStore\n\t\t).getActiveComplementaryArea( 'core/edit-post' );\n\t\treturn (\n\t\t\t!! activeGeneralSidebar &&\n\t\t\t! includes(\n\t\t\t\t[ 'edit-post/document', 'edit-post/block' ],\n\t\t\t\tactiveGeneralSidebar\n\t\t\t)\n\t\t);\n\t}\n);\n\n/**\n * Returns the current active general sidebar name, or null if there is no\n * general sidebar active. The active general sidebar is a unique name to\n * identify either an editor or plugin sidebar.\n *\n * Examples:\n *\n * - `edit-post/document`\n * - `my-plugin/insert-image-sidebar`\n *\n * @param {Object} state Global application state.\n *\n * @return {?string} Active general sidebar name.\n */\nexport const getActiveGeneralSidebarName = createRegistrySelector(\n\t( select ) => () => {\n\t\treturn select( interfaceStore ).getActiveComplementaryArea(\n\t\t\t'core/edit-post'\n\t\t);\n\t}\n);\n\n/**\n * Returns the preferences (these preferences are persisted locally).\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Preferences Object.\n */\nexport function getPreferences( state ) {\n\treturn state.preferences;\n}\n\n/**\n *\n * @param {Object} state Global application state.\n * @param {string} preferenceKey Preference Key.\n * @param {*} defaultValue Default Value.\n *\n * @return {*} Preference Value.\n */\nexport function getPreference( state, preferenceKey, defaultValue ) {\n\tconst preferences = getPreferences( state );\n\tconst value = preferences[ preferenceKey ];\n\treturn value === undefined ? defaultValue : value;\n}\n\n/**\n * Returns true if the publish sidebar is opened.\n *\n * @param {Object} state Global application state\n *\n * @return {boolean} Whether the publish sidebar is open.\n */\nexport function isPublishSidebarOpened( state ) {\n\treturn state.publishSidebarActive;\n}\n\n/**\n * Returns true if the given panel was programmatically removed, or false otherwise.\n * All panels are not removed by default.\n *\n * @param {Object} state Global application state.\n * @param {string} panelName A string that identifies the panel.\n *\n * @return {boolean} Whether or not the panel is removed.\n */\nexport function isEditorPanelRemoved( state, panelName ) {\n\treturn includes( state.removedPanels, panelName );\n}\n\n/**\n * Returns true if the given panel is enabled, or false otherwise. Panels are\n * enabled by default.\n *\n * @param {Object} state Global application state.\n * @param {string} panelName A string that identifies the panel.\n *\n * @return {boolean} Whether or not the panel is enabled.\n */\nexport function isEditorPanelEnabled( state, panelName ) {\n\tconst panels = getPreference( state, 'panels' );\n\n\treturn (\n\t\t! isEditorPanelRemoved( state, panelName ) &&\n\t\tget( panels, [ panelName, 'enabled' ], true )\n\t);\n}\n\n/**\n * Returns true if the given panel is open, or false otherwise. Panels are\n * closed by default.\n *\n * @param {Object} state Global application state.\n * @param {string} panelName A string that identifies the panel.\n *\n * @return {boolean} Whether or not the panel is open.\n */\nexport function isEditorPanelOpened( state, panelName ) {\n\tconst panels = getPreference( state, 'panels' );\n\treturn (\n\t\tget( panels, [ panelName ] ) === true ||\n\t\tget( panels, [ panelName, 'opened' ] ) === true\n\t);\n}\n\n/**\n * Returns true if a modal is active, or false otherwise.\n *\n * @param {Object} state Global application state.\n * @param {string} modalName A string that uniquely identifies the modal.\n *\n * @return {boolean} Whether the modal is active.\n */\nexport function isModalActive( state, modalName ) {\n\treturn state.activeModal === modalName;\n}\n\n/**\n * Returns whether the given feature is enabled or not.\n *\n * @param {Object} state Global application state.\n * @param {string} feature Feature slug.\n *\n * @return {boolean} Is active.\n */\nexport function isFeatureActive( state, feature ) {\n\treturn get( state.preferences.features, [ feature ], false );\n}\n\n/**\n * Returns true if the plugin item is pinned to the header.\n * When the value is not set it defaults to true.\n *\n * @param {Object} state Global application state.\n * @param {string} pluginName Plugin item name.\n *\n * @return {boolean} Whether the plugin item is pinned.\n */\nexport const isPluginItemPinned = createRegistrySelector(\n\t( select ) => ( pluginName ) => {\n\t\treturn select( interfaceStore ).isItemPinned(\n\t\t\t'core/edit-post',\n\t\t\tpluginName\n\t\t);\n\t}\n);\n\n/**\n * Returns an array of active meta box locations.\n *\n * @param {Object} state Post editor state.\n *\n * @return {string[]} Active meta box locations.\n */\nexport const getActiveMetaBoxLocations = createSelector(\n\t( state ) => {\n\t\treturn Object.keys( state.metaBoxes.locations ).filter( ( location ) =>\n\t\t\tisMetaBoxLocationActive( state, location )\n\t\t);\n\t},\n\t( state ) => [ state.metaBoxes.locations ]\n);\n\n/**\n * Returns true if a metabox location is active and visible\n *\n * @param {Object} state Post editor state.\n * @param {string} location Meta box location to test.\n *\n * @return {boolean} Whether the meta box location is active and visible.\n */\nexport function isMetaBoxLocationVisible( state, location ) {\n\treturn (\n\t\tisMetaBoxLocationActive( state, location ) &&\n\t\tsome( getMetaBoxesPerLocation( state, location ), ( { id } ) => {\n\t\t\treturn isEditorPanelEnabled( state, `meta-box-${ id }` );\n\t\t} )\n\t);\n}\n\n/**\n * Returns true if there is an active meta box in the given location, or false\n * otherwise.\n *\n * @param {Object} state Post editor state.\n * @param {string} location Meta box location to test.\n *\n * @return {boolean} Whether the meta box location is active.\n */\nexport function isMetaBoxLocationActive( state, location ) {\n\tconst metaBoxes = getMetaBoxesPerLocation( state, location );\n\treturn !! metaBoxes && metaBoxes.length !== 0;\n}\n\n/**\n * Returns the list of all the available meta boxes for a given location.\n *\n * @param {Object} state Global application state.\n * @param {string} location Meta box location to test.\n *\n * @return {?Array} List of meta boxes.\n */\nexport function getMetaBoxesPerLocation( state, location ) {\n\treturn state.metaBoxes.locations[ location ];\n}\n\n/**\n * Returns the list of all the available meta boxes.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} List of meta boxes.\n */\nexport const getAllMetaBoxes = createSelector(\n\t( state ) => {\n\t\treturn flatten( values( state.metaBoxes.locations ) );\n\t},\n\t( state ) => [ state.metaBoxes.locations ]\n);\n\n/**\n * Returns true if the post is using Meta Boxes\n *\n * @param {Object} state Global application state\n *\n * @return {boolean} Whether there are metaboxes or not.\n */\nexport function hasMetaBoxes( state ) {\n\treturn getActiveMetaBoxLocations( state ).length > 0;\n}\n\n/**\n * Returns true if the Meta Boxes are being saved.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the metaboxes are being saved.\n */\nexport function isSavingMetaBoxes( state ) {\n\treturn state.metaBoxes.isSaving;\n}\n\n/**\n * Returns the current editing canvas device type.\n *\n * @param {Object} state Global application state.\n *\n * @return {string} Device type.\n */\nexport function __experimentalGetPreviewDeviceType( state ) {\n\treturn state.deviceType;\n}\n\n/**\n * Returns true if the inserter is opened.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the inserter is opened.\n */\nexport function isInserterOpened( state ) {\n\treturn !! state.blockInserterPanel;\n}\n\n/**\n * Get the insertion point for the inserter.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} The root client ID and index to insert at.\n */\nexport function __experimentalGetInsertionPoint( state ) {\n\tconst { rootClientId, insertionIndex } = state.blockInserterPanel;\n\treturn { rootClientId, insertionIndex };\n}\n\n/**\n * Returns true if the list view is opened.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the list view is opened.\n */\nexport function isListViewOpened( state ) {\n\treturn state.listViewPanel;\n}\n\n/**\n * Returns true if the template editing mode is enabled.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether we're editing the template.\n */\nexport function isEditingTemplate( state ) {\n\treturn state.isEditingTemplate;\n}\n\n/**\n * Retrieves the template of the currently edited post.\n *\n * @return {Object?} Post Template.\n */\nexport const getEditedPostTemplate = createRegistrySelector(\n\t( select ) => () => {\n\t\tconst currentTemplate = select( editorStore ).getEditedPostAttribute(\n\t\t\t'template'\n\t\t);\n\t\tif ( currentTemplate ) {\n\t\t\tconst templateWithSameSlug = select( coreStore )\n\t\t\t\t.getEntityRecords( 'postType', 'wp_template' )\n\t\t\t\t?.find( ( template ) => template.slug === currentTemplate );\n\t\t\tif ( ! templateWithSameSlug ) {\n\t\t\t\treturn templateWithSameSlug;\n\t\t\t}\n\t\t\treturn select( coreStore ).getEditedEntityRecord(\n\t\t\t\t'postType',\n\t\t\t\t'wp_template',\n\t\t\t\ttemplateWithSameSlug.id\n\t\t\t);\n\t\t}\n\n\t\tconst post = select( editorStore ).getCurrentPost();\n\t\tif ( post.link ) {\n\t\t\treturn select( coreStore ).__experimentalGetTemplateForLink(\n\t\t\t\tpost.link\n\t\t\t);\n\t\t}\n\n\t\treturn null;\n\t}\n);\n"]}
1
+ {"version":3,"sources":["@wordpress/edit-post/src/store/selectors.js"],"names":["createSelector","get","includes","some","flatten","values","createRegistrySelector","store","interfaceStore","coreStore","editorStore","getEditorMode","state","getPreference","isEditorSidebarOpened","select","activeGeneralSidebar","getActiveComplementaryArea","isPluginSidebarOpened","getActiveGeneralSidebarName","getPreferences","preferences","preferenceKey","defaultValue","value","undefined","isPublishSidebarOpened","publishSidebarActive","isEditorPanelRemoved","panelName","removedPanels","isEditorPanelEnabled","panels","isEditorPanelOpened","isModalActive","modalName","activeModal","isFeatureActive","feature","isPluginItemPinned","pluginName","isItemPinned","getActiveMetaBoxLocations","Object","keys","metaBoxes","locations","filter","location","isMetaBoxLocationActive","isMetaBoxLocationVisible","getMetaBoxesPerLocation","id","length","getAllMetaBoxes","hasMetaBoxes","isSavingMetaBoxes","isSaving","__experimentalGetPreviewDeviceType","deviceType","isInserterOpened","blockInserterPanel","__experimentalGetInsertionPoint","rootClientId","insertionIndex","filterValue","isListViewOpened","listViewPanel","isEditingTemplate","areMetaBoxesInitialized","initialized","getEditedPostTemplate","currentTemplate","getEditedPostAttribute","templateWithSameSlug","getEntityRecords","find","template","slug","getEditedEntityRecord","post","getCurrentPost","link","__experimentalGetTemplateForLink"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,cAAP,MAA2B,QAA3B;AACA,SAASC,GAAT,EAAcC,QAAd,EAAwBC,IAAxB,EAA8BC,OAA9B,EAAuCC,MAAvC,QAAqD,QAArD;AAEA;AACA;AACA;;AACA,SAASC,sBAAT,QAAuC,iBAAvC;AACA,SAASC,KAAK,IAAIC,cAAlB,QAAwC,sBAAxC;AACA,SAASD,KAAK,IAAIE,SAAlB,QAAmC,sBAAnC;AACA,SAASF,KAAK,IAAIG,WAAlB,QAAqC,mBAArC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASC,aAAT,CAAwBC,KAAxB,EAAgC;AACtC,SAAOC,aAAa,CAAED,KAAF,EAAS,YAAT,EAAuB,QAAvB,CAApB;AACA;AAED;AACA;AACA;AACA;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E,IAAV,EAAiB;AAChB,WAAOnE,MAAM,CAAEN,SAAF,CAAN,CAAoB0E,gCAApB,CACNH,IAAI,CAACE,IADC,CAAP;AAGA;;AAED,SAAO,IAAP;AACA,CA3ByD,CAApD","sourcesContent":["/**\n * External dependencies\n */\nimport createSelector from 'rememo';\nimport { get, includes, some, flatten, values } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { createRegistrySelector } from '@wordpress/data';\nimport { store as interfaceStore } from '@wordpress/interface';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { store as editorStore } from '@wordpress/editor';\n/**\n * Returns the current editing mode.\n *\n * @param {Object} state Global application state.\n *\n * @return {string} Editing mode.\n */\nexport function getEditorMode( state ) {\n\treturn getPreference( state, 'editorMode', 'visual' );\n}\n\n/**\n * Returns true if the editor sidebar is opened.\n *\n * @param {Object} state Global application state\n *\n * @return {boolean} Whether the editor sidebar is opened.\n */\nexport const isEditorSidebarOpened = createRegistrySelector(\n\t( select ) => () => {\n\t\tconst activeGeneralSidebar = select(\n\t\t\tinterfaceStore\n\t\t).getActiveComplementaryArea( 'core/edit-post' );\n\t\treturn includes(\n\t\t\t[ 'edit-post/document', 'edit-post/block' ],\n\t\t\tactiveGeneralSidebar\n\t\t);\n\t}\n);\n\n/**\n * Returns true if the plugin sidebar is opened.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the plugin sidebar is opened.\n */\nexport const isPluginSidebarOpened = createRegistrySelector(\n\t( select ) => () => {\n\t\tconst activeGeneralSidebar = select(\n\t\t\tinterfaceStore\n\t\t).getActiveComplementaryArea( 'core/edit-post' );\n\t\treturn (\n\t\t\t!! activeGeneralSidebar &&\n\t\t\t! includes(\n\t\t\t\t[ 'edit-post/document', 'edit-post/block' ],\n\t\t\t\tactiveGeneralSidebar\n\t\t\t)\n\t\t);\n\t}\n);\n\n/**\n * Returns the current active general sidebar name, or null if there is no\n * general sidebar active. The active general sidebar is a unique name to\n * identify either an editor or plugin sidebar.\n *\n * Examples:\n *\n * - `edit-post/document`\n * - `my-plugin/insert-image-sidebar`\n *\n * @param {Object} state Global application state.\n *\n * @return {?string} Active general sidebar name.\n */\nexport const getActiveGeneralSidebarName = createRegistrySelector(\n\t( select ) => () => {\n\t\treturn select( interfaceStore ).getActiveComplementaryArea(\n\t\t\t'core/edit-post'\n\t\t);\n\t}\n);\n\n/**\n * Returns the preferences (these preferences are persisted locally).\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Preferences Object.\n */\nexport function getPreferences( state ) {\n\treturn state.preferences;\n}\n\n/**\n *\n * @param {Object} state Global application state.\n * @param {string} preferenceKey Preference Key.\n * @param {*} defaultValue Default Value.\n *\n * @return {*} Preference Value.\n */\nexport function getPreference( state, preferenceKey, defaultValue ) {\n\tconst preferences = getPreferences( state );\n\tconst value = preferences[ preferenceKey ];\n\treturn value === undefined ? defaultValue : value;\n}\n\n/**\n * Returns true if the publish sidebar is opened.\n *\n * @param {Object} state Global application state\n *\n * @return {boolean} Whether the publish sidebar is open.\n */\nexport function isPublishSidebarOpened( state ) {\n\treturn state.publishSidebarActive;\n}\n\n/**\n * Returns true if the given panel was programmatically removed, or false otherwise.\n * All panels are not removed by default.\n *\n * @param {Object} state Global application state.\n * @param {string} panelName A string that identifies the panel.\n *\n * @return {boolean} Whether or not the panel is removed.\n */\nexport function isEditorPanelRemoved( state, panelName ) {\n\treturn includes( state.removedPanels, panelName );\n}\n\n/**\n * Returns true if the given panel is enabled, or false otherwise. Panels are\n * enabled by default.\n *\n * @param {Object} state Global application state.\n * @param {string} panelName A string that identifies the panel.\n *\n * @return {boolean} Whether or not the panel is enabled.\n */\nexport function isEditorPanelEnabled( state, panelName ) {\n\tconst panels = getPreference( state, 'panels' );\n\n\treturn (\n\t\t! isEditorPanelRemoved( state, panelName ) &&\n\t\tget( panels, [ panelName, 'enabled' ], true )\n\t);\n}\n\n/**\n * Returns true if the given panel is open, or false otherwise. Panels are\n * closed by default.\n *\n * @param {Object} state Global application state.\n * @param {string} panelName A string that identifies the panel.\n *\n * @return {boolean} Whether or not the panel is open.\n */\nexport function isEditorPanelOpened( state, panelName ) {\n\tconst panels = getPreference( state, 'panels' );\n\treturn (\n\t\tget( panels, [ panelName ] ) === true ||\n\t\tget( panels, [ panelName, 'opened' ] ) === true\n\t);\n}\n\n/**\n * Returns true if a modal is active, or false otherwise.\n *\n * @param {Object} state Global application state.\n * @param {string} modalName A string that uniquely identifies the modal.\n *\n * @return {boolean} Whether the modal is active.\n */\nexport function isModalActive( state, modalName ) {\n\treturn state.activeModal === modalName;\n}\n\n/**\n * Returns whether the given feature is enabled or not.\n *\n * @param {Object} state Global application state.\n * @param {string} feature Feature slug.\n *\n * @return {boolean} Is active.\n */\nexport const isFeatureActive = createRegistrySelector(\n\t( select ) => ( state, feature ) => {\n\t\treturn select( interfaceStore ).isFeatureActive(\n\t\t\t'core/edit-post',\n\t\t\tfeature\n\t\t);\n\t}\n);\n\n/**\n * Returns true if the plugin item is pinned to the header.\n * When the value is not set it defaults to true.\n *\n * @param {Object} state Global application state.\n * @param {string} pluginName Plugin item name.\n *\n * @return {boolean} Whether the plugin item is pinned.\n */\nexport const isPluginItemPinned = createRegistrySelector(\n\t( select ) => ( state, pluginName ) => {\n\t\treturn select( interfaceStore ).isItemPinned(\n\t\t\t'core/edit-post',\n\t\t\tpluginName\n\t\t);\n\t}\n);\n\n/**\n * Returns an array of active meta box locations.\n *\n * @param {Object} state Post editor state.\n *\n * @return {string[]} Active meta box locations.\n */\nexport const getActiveMetaBoxLocations = createSelector(\n\t( state ) => {\n\t\treturn Object.keys( state.metaBoxes.locations ).filter( ( location ) =>\n\t\t\tisMetaBoxLocationActive( state, location )\n\t\t);\n\t},\n\t( state ) => [ state.metaBoxes.locations ]\n);\n\n/**\n * Returns true if a metabox location is active and visible\n *\n * @param {Object} state Post editor state.\n * @param {string} location Meta box location to test.\n *\n * @return {boolean} Whether the meta box location is active and visible.\n */\nexport function isMetaBoxLocationVisible( state, location ) {\n\treturn (\n\t\tisMetaBoxLocationActive( state, location ) &&\n\t\tsome( getMetaBoxesPerLocation( state, location ), ( { id } ) => {\n\t\t\treturn isEditorPanelEnabled( state, `meta-box-${ id }` );\n\t\t} )\n\t);\n}\n\n/**\n * Returns true if there is an active meta box in the given location, or false\n * otherwise.\n *\n * @param {Object} state Post editor state.\n * @param {string} location Meta box location to test.\n *\n * @return {boolean} Whether the meta box location is active.\n */\nexport function isMetaBoxLocationActive( state, location ) {\n\tconst metaBoxes = getMetaBoxesPerLocation( state, location );\n\treturn !! metaBoxes && metaBoxes.length !== 0;\n}\n\n/**\n * Returns the list of all the available meta boxes for a given location.\n *\n * @param {Object} state Global application state.\n * @param {string} location Meta box location to test.\n *\n * @return {?Array} List of meta boxes.\n */\nexport function getMetaBoxesPerLocation( state, location ) {\n\treturn state.metaBoxes.locations[ location ];\n}\n\n/**\n * Returns the list of all the available meta boxes.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} List of meta boxes.\n */\nexport const getAllMetaBoxes = createSelector(\n\t( state ) => {\n\t\treturn flatten( values( state.metaBoxes.locations ) );\n\t},\n\t( state ) => [ state.metaBoxes.locations ]\n);\n\n/**\n * Returns true if the post is using Meta Boxes\n *\n * @param {Object} state Global application state\n *\n * @return {boolean} Whether there are metaboxes or not.\n */\nexport function hasMetaBoxes( state ) {\n\treturn getActiveMetaBoxLocations( state ).length > 0;\n}\n\n/**\n * Returns true if the Meta Boxes are being saved.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the metaboxes are being saved.\n */\nexport function isSavingMetaBoxes( state ) {\n\treturn state.metaBoxes.isSaving;\n}\n\n/**\n * Returns the current editing canvas device type.\n *\n * @param {Object} state Global application state.\n *\n * @return {string} Device type.\n */\nexport function __experimentalGetPreviewDeviceType( state ) {\n\treturn state.deviceType;\n}\n\n/**\n * Returns true if the inserter is opened.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the inserter is opened.\n */\nexport function isInserterOpened( state ) {\n\treturn !! state.blockInserterPanel;\n}\n\n/**\n * Get the insertion point for the inserter.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} The root client ID, index to insert at and starting filter value.\n */\nexport function __experimentalGetInsertionPoint( state ) {\n\tconst {\n\t\trootClientId,\n\t\tinsertionIndex,\n\t\tfilterValue,\n\t} = state.blockInserterPanel;\n\treturn { rootClientId, insertionIndex, filterValue };\n}\n\n/**\n * Returns true if the list view is opened.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the list view is opened.\n */\nexport function isListViewOpened( state ) {\n\treturn state.listViewPanel;\n}\n\n/**\n * Returns true if the template editing mode is enabled.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether we're editing the template.\n */\nexport function isEditingTemplate( state ) {\n\treturn state.isEditingTemplate;\n}\n\n/**\n * Returns true if meta boxes are initialized.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether meta boxes are initialized.\n */\nexport function areMetaBoxesInitialized( state ) {\n\treturn state.metaBoxes.initialized;\n}\n\n/**\n * Retrieves the template of the currently edited post.\n *\n * @return {Object?} Post Template.\n */\nexport const getEditedPostTemplate = createRegistrySelector(\n\t( select ) => () => {\n\t\tconst currentTemplate = select( editorStore ).getEditedPostAttribute(\n\t\t\t'template'\n\t\t);\n\t\tif ( currentTemplate ) {\n\t\t\tconst templateWithSameSlug = select( coreStore )\n\t\t\t\t.getEntityRecords( 'postType', 'wp_template' )\n\t\t\t\t?.find( ( template ) => template.slug === currentTemplate );\n\t\t\tif ( ! templateWithSameSlug ) {\n\t\t\t\treturn templateWithSameSlug;\n\t\t\t}\n\t\t\treturn select( coreStore ).getEditedEntityRecord(\n\t\t\t\t'postType',\n\t\t\t\t'wp_template',\n\t\t\t\ttemplateWithSameSlug.id\n\t\t\t);\n\t\t}\n\n\t\tconst post = select( editorStore ).getCurrentPost();\n\t\tif ( post.link ) {\n\t\t\treturn select( coreStore ).__experimentalGetTemplateForLink(\n\t\t\t\tpost.link\n\t\t\t);\n\t\t}\n\n\t\treturn null;\n\t}\n);\n"]}
@@ -122,6 +122,12 @@
122
122
  }
123
123
  }
124
124
 
125
+ @media (min-width: 782px) {
126
+ .components-panel__header + .interface-complementary-area-header {
127
+ margin-top: 0;
128
+ }
129
+ }
130
+
125
131
  .interface-complementary-area {
126
132
  background: #fff;
127
133
  color: #1e1e1e;
@@ -157,12 +163,18 @@
157
163
  .interface-complementary-area p {
158
164
  margin-top: 0;
159
165
  }
160
- .interface-complementary-area h2,
161
- .interface-complementary-area h3 {
166
+ .interface-complementary-area h2 {
162
167
  font-size: 13px;
163
168
  color: #1e1e1e;
164
169
  margin-bottom: 1.5em;
165
170
  }
171
+ .interface-complementary-area h3 {
172
+ font-size: 11px;
173
+ text-transform: uppercase;
174
+ font-weight: 500;
175
+ color: #1e1e1e;
176
+ margin-bottom: 1.5em;
177
+ }
166
178
  .interface-complementary-area hr {
167
179
  border-top: none;
168
180
  border-bottom: 1px solid #f0f0f0;
@@ -383,6 +395,39 @@ body.is-fullscreen-mode .interface-interface-skeleton {
383
395
  bottom: 0;
384
396
  }
385
397
 
398
+ .interface-more-menu-dropdown {
399
+ margin-right: -4px;
400
+ }
401
+ .interface-more-menu-dropdown .components-button {
402
+ width: auto;
403
+ padding: 0 2px;
404
+ }
405
+ @media (min-width: 600px) {
406
+ .interface-more-menu-dropdown {
407
+ margin-right: 0;
408
+ }
409
+ .interface-more-menu-dropdown .components-button {
410
+ padding: 0 4px;
411
+ }
412
+ }
413
+
414
+ .interface-more-menu-dropdown__content .components-popover__content {
415
+ min-width: 280px;
416
+ }
417
+ @media (min-width: 480px) {
418
+ .interface-more-menu-dropdown__content .components-popover__content {
419
+ width: auto;
420
+ max-width: 480px;
421
+ }
422
+ }
423
+ .interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu {
424
+ padding: 0;
425
+ }
426
+
427
+ .components-popover.interface-more-menu-dropdown__content {
428
+ z-index: 99998;
429
+ }
430
+
386
431
  .interface-pinned-items {
387
432
  display: flex;
388
433
  }
@@ -644,7 +689,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
644
689
  align-items: center;
645
690
  align-self: stretch;
646
691
  border: none;
647
- background: #23282e;
692
+ background: #1e1e1e;
648
693
  color: #fff;
649
694
  border-radius: 0;
650
695
  height: 61px;
@@ -668,7 +713,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
668
713
  bottom: 9px;
669
714
  right: 9px;
670
715
  border-radius: 4px;
671
- box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) #23282e;
716
+ box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;
672
717
  }
673
718
  }
674
719
  @media (min-width: 782px) and (prefers-reduced-motion: reduce) {
@@ -1278,55 +1323,9 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1278
1323
  .edit-post-preferences-modal .components-modal__content::before {
1279
1324
  content: none;
1280
1325
  }
1281
- }
1282
- .edit-post-preferences-modal .components-navigation {
1283
- background-color: #fff;
1284
- padding: 0;
1285
- max-height: 100%;
1286
- overflow-y: auto;
1287
- }
1288
- .edit-post-preferences-modal .components-navigation > * {
1289
- padding: 24px 32px;
1290
- }
1291
- .edit-post-preferences-modal .components-navigation .components-navigation__menu {
1292
- margin: 0;
1293
- color: #1e1e1e;
1294
- }
1295
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item {
1296
- color: #1e1e1e;
1297
- }
1298
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item > button {
1299
- color: inherit;
1300
- padding: 3px 16px;
1301
- height: 48px;
1302
- margin: 0 -16px;
1303
- width: calc(32px + 100%);
1304
- }
1305
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item > button:focus {
1306
- background: #f0f0f0;
1307
- font-weight: 500;
1308
- }
1309
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item > button:hover {
1310
- color: var(--wp-admin-theme-color);
1311
- }
1312
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item .components-toggle-control__label {
1313
- color: inherit;
1314
- }
1315
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__menu-title-heading {
1316
- color: inherit;
1317
- border-bottom: 1px solid #ddd;
1318
- padding-right: 0;
1319
- padding-left: 0;
1320
- }
1321
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__back-button {
1322
- color: inherit;
1323
- padding-right: 0;
1324
- }
1325
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__back-button:hover {
1326
- color: var(--wp-admin-theme-color);
1327
- }
1328
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .edit-post-preferences-modal__custom-fields-confirmation-button {
1329
- width: auto;
1326
+ .edit-post-preferences-modal .components-navigator-provider {
1327
+ height: 100%;
1328
+ }
1330
1329
  }
1331
1330
  .edit-post-preferences-modal .edit-post-preferences__tabs .components-tab-panel__tabs {
1332
1331
  position: absolute;
@@ -1359,6 +1358,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1359
1358
  .edit-post-preferences-modal__section-title {
1360
1359
  font-size: 0.9rem;
1361
1360
  font-weight: 600;
1361
+ margin-top: 0;
1362
1362
  }
1363
1363
  .edit-post-preferences-modal__option .components-base-control .components-base-control__field {
1364
1364
  align-items: center;
@@ -1652,8 +1652,9 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1652
1652
  }
1653
1653
 
1654
1654
  h2.edit-post-template-summary__title {
1655
- margin: 0;
1656
1655
  line-height: 24px;
1656
+ margin: 0 0 4px;
1657
+ font-weight: 500;
1657
1658
  }
1658
1659
 
1659
1660
  .edit-post-text-editor {
@@ -1662,34 +1663,24 @@ h2.edit-post-template-summary__title {
1662
1663
  background-color: #fff;
1663
1664
  flex-grow: 1;
1664
1665
  }
1665
- .edit-post-text-editor .editor-post-title.editor-post-title__block {
1666
+ .edit-post-text-editor .editor-post-title {
1666
1667
  max-width: none;
1667
1668
  line-height: 1.4;
1668
- }
1669
- .edit-post-text-editor .editor-post-title.editor-post-title__block .editor-post-title__input.editor-post-title__input.editor-post-title__input {
1670
1669
  font-family: Menlo, Consolas, monaco, monospace;
1671
1670
  font-size: 2.5em;
1672
1671
  font-weight: normal;
1673
- }
1674
- .edit-post-text-editor .editor-post-title.editor-post-title__block .editor-post-title__input {
1675
1672
  border: 1px solid #949494;
1676
- margin-bottom: -1px;
1677
1673
  padding: 16px;
1678
1674
  }
1679
1675
  @media (min-width: 600px) {
1680
- .edit-post-text-editor .editor-post-title.editor-post-title__block .editor-post-title__input {
1676
+ .edit-post-text-editor .editor-post-title {
1681
1677
  padding: 24px;
1682
1678
  }
1683
1679
  }
1684
- .edit-post-text-editor .editor-post-title.editor-post-title__block .editor-post-title__input:focus {
1680
+ .edit-post-text-editor .editor-post-title:focus {
1685
1681
  border-color: var(--wp-admin-theme-color);
1686
1682
  box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
1687
1683
  }
1688
- @media (min-width: 600px) {
1689
- .edit-post-text-editor .editor-post-title.editor-post-title__block {
1690
- padding: 0;
1691
- }
1692
- }
1693
1684
 
1694
1685
  .edit-post-text-editor__body {
1695
1686
  width: 100%;
@@ -1751,11 +1742,13 @@ h2.edit-post-template-summary__title {
1751
1742
  padding: 6px;
1752
1743
  }
1753
1744
 
1745
+ .edit-post-visual-editor__post-title-wrapper {
1746
+ margin-top: 4rem;
1747
+ margin-bottom: var(--wp--style--block-gap);
1748
+ }
1754
1749
  .edit-post-visual-editor__post-title-wrapper .editor-post-title {
1755
- margin-top: 2em;
1756
1750
  margin-right: auto;
1757
1751
  margin-left: auto;
1758
- margin-bottom: 0;
1759
1752
  }
1760
1753
 
1761
1754
  .edit-post-visual-editor__exit-template-mode {
@@ -1783,6 +1776,12 @@ h2.edit-post-template-summary__title {
1783
1776
  background: #00a0d2;
1784
1777
  margin: 0 0 16px;
1785
1778
  }
1779
+ .edit-post-welcome-guide__image > img {
1780
+ display: block;
1781
+ max-width: 100%;
1782
+ -o-object-fit: cover;
1783
+ object-fit: cover;
1784
+ }
1786
1785
  .edit-post-welcome-guide__heading {
1787
1786
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
1788
1787
  font-size: 24px;
@@ -122,6 +122,12 @@
122
122
  }
123
123
  }
124
124
 
125
+ @media (min-width: 782px) {
126
+ .components-panel__header + .interface-complementary-area-header {
127
+ margin-top: 0;
128
+ }
129
+ }
130
+
125
131
  .interface-complementary-area {
126
132
  background: #fff;
127
133
  color: #1e1e1e;
@@ -157,12 +163,18 @@
157
163
  .interface-complementary-area p {
158
164
  margin-top: 0;
159
165
  }
160
- .interface-complementary-area h2,
161
- .interface-complementary-area h3 {
166
+ .interface-complementary-area h2 {
162
167
  font-size: 13px;
163
168
  color: #1e1e1e;
164
169
  margin-bottom: 1.5em;
165
170
  }
171
+ .interface-complementary-area h3 {
172
+ font-size: 11px;
173
+ text-transform: uppercase;
174
+ font-weight: 500;
175
+ color: #1e1e1e;
176
+ margin-bottom: 1.5em;
177
+ }
166
178
  .interface-complementary-area hr {
167
179
  border-top: none;
168
180
  border-bottom: 1px solid #f0f0f0;
@@ -383,6 +395,39 @@ body.is-fullscreen-mode .interface-interface-skeleton {
383
395
  bottom: 0;
384
396
  }
385
397
 
398
+ .interface-more-menu-dropdown {
399
+ margin-left: -4px;
400
+ }
401
+ .interface-more-menu-dropdown .components-button {
402
+ width: auto;
403
+ padding: 0 2px;
404
+ }
405
+ @media (min-width: 600px) {
406
+ .interface-more-menu-dropdown {
407
+ margin-left: 0;
408
+ }
409
+ .interface-more-menu-dropdown .components-button {
410
+ padding: 0 4px;
411
+ }
412
+ }
413
+
414
+ .interface-more-menu-dropdown__content .components-popover__content {
415
+ min-width: 280px;
416
+ }
417
+ @media (min-width: 480px) {
418
+ .interface-more-menu-dropdown__content .components-popover__content {
419
+ width: auto;
420
+ max-width: 480px;
421
+ }
422
+ }
423
+ .interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu {
424
+ padding: 0;
425
+ }
426
+
427
+ .components-popover.interface-more-menu-dropdown__content {
428
+ z-index: 99998;
429
+ }
430
+
386
431
  .interface-pinned-items {
387
432
  display: flex;
388
433
  }
@@ -644,7 +689,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
644
689
  align-items: center;
645
690
  align-self: stretch;
646
691
  border: none;
647
- background: #23282e;
692
+ background: #1e1e1e;
648
693
  color: #fff;
649
694
  border-radius: 0;
650
695
  height: 61px;
@@ -668,7 +713,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
668
713
  bottom: 9px;
669
714
  left: 9px;
670
715
  border-radius: 4px;
671
- box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) #23282e;
716
+ box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;
672
717
  }
673
718
  }
674
719
  @media (min-width: 782px) and (prefers-reduced-motion: reduce) {
@@ -1278,55 +1323,9 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1278
1323
  .edit-post-preferences-modal .components-modal__content::before {
1279
1324
  content: none;
1280
1325
  }
1281
- }
1282
- .edit-post-preferences-modal .components-navigation {
1283
- background-color: #fff;
1284
- padding: 0;
1285
- max-height: 100%;
1286
- overflow-y: auto;
1287
- }
1288
- .edit-post-preferences-modal .components-navigation > * {
1289
- padding: 24px 32px;
1290
- }
1291
- .edit-post-preferences-modal .components-navigation .components-navigation__menu {
1292
- margin: 0;
1293
- color: #1e1e1e;
1294
- }
1295
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item {
1296
- color: #1e1e1e;
1297
- }
1298
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item > button {
1299
- color: inherit;
1300
- padding: 3px 16px;
1301
- height: 48px;
1302
- margin: 0 -16px;
1303
- width: calc(32px + 100%);
1304
- }
1305
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item > button:focus {
1306
- background: #f0f0f0;
1307
- font-weight: 500;
1308
- }
1309
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item > button:hover {
1310
- color: var(--wp-admin-theme-color);
1311
- }
1312
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item .components-toggle-control__label {
1313
- color: inherit;
1314
- }
1315
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__menu-title-heading {
1316
- color: inherit;
1317
- border-bottom: 1px solid #ddd;
1318
- padding-left: 0;
1319
- padding-right: 0;
1320
- }
1321
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__back-button {
1322
- color: inherit;
1323
- padding-left: 0;
1324
- }
1325
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__back-button:hover {
1326
- color: var(--wp-admin-theme-color);
1327
- }
1328
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .edit-post-preferences-modal__custom-fields-confirmation-button {
1329
- width: auto;
1326
+ .edit-post-preferences-modal .components-navigator-provider {
1327
+ height: 100%;
1328
+ }
1330
1329
  }
1331
1330
  .edit-post-preferences-modal .edit-post-preferences__tabs .components-tab-panel__tabs {
1332
1331
  position: absolute;
@@ -1359,6 +1358,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1359
1358
  .edit-post-preferences-modal__section-title {
1360
1359
  font-size: 0.9rem;
1361
1360
  font-weight: 600;
1361
+ margin-top: 0;
1362
1362
  }
1363
1363
  .edit-post-preferences-modal__option .components-base-control .components-base-control__field {
1364
1364
  align-items: center;
@@ -1656,8 +1656,9 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1656
1656
  }
1657
1657
 
1658
1658
  h2.edit-post-template-summary__title {
1659
- margin: 0;
1660
1659
  line-height: 24px;
1660
+ margin: 0 0 4px;
1661
+ font-weight: 500;
1661
1662
  }
1662
1663
 
1663
1664
  .edit-post-text-editor {
@@ -1666,34 +1667,24 @@ h2.edit-post-template-summary__title {
1666
1667
  background-color: #fff;
1667
1668
  flex-grow: 1;
1668
1669
  }
1669
- .edit-post-text-editor .editor-post-title.editor-post-title__block {
1670
+ .edit-post-text-editor .editor-post-title {
1670
1671
  max-width: none;
1671
1672
  line-height: 1.4;
1672
- }
1673
- .edit-post-text-editor .editor-post-title.editor-post-title__block .editor-post-title__input.editor-post-title__input.editor-post-title__input {
1674
1673
  font-family: Menlo, Consolas, monaco, monospace;
1675
1674
  font-size: 2.5em;
1676
1675
  font-weight: normal;
1677
- }
1678
- .edit-post-text-editor .editor-post-title.editor-post-title__block .editor-post-title__input {
1679
1676
  border: 1px solid #949494;
1680
- margin-bottom: -1px;
1681
1677
  padding: 16px;
1682
1678
  }
1683
1679
  @media (min-width: 600px) {
1684
- .edit-post-text-editor .editor-post-title.editor-post-title__block .editor-post-title__input {
1680
+ .edit-post-text-editor .editor-post-title {
1685
1681
  padding: 24px;
1686
1682
  }
1687
1683
  }
1688
- .edit-post-text-editor .editor-post-title.editor-post-title__block .editor-post-title__input:focus {
1684
+ .edit-post-text-editor .editor-post-title:focus {
1689
1685
  border-color: var(--wp-admin-theme-color);
1690
1686
  box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
1691
1687
  }
1692
- @media (min-width: 600px) {
1693
- .edit-post-text-editor .editor-post-title.editor-post-title__block {
1694
- padding: 0;
1695
- }
1696
- }
1697
1688
 
1698
1689
  .edit-post-text-editor__body {
1699
1690
  width: 100%;
@@ -1755,11 +1746,13 @@ h2.edit-post-template-summary__title {
1755
1746
  padding: 6px;
1756
1747
  }
1757
1748
 
1749
+ .edit-post-visual-editor__post-title-wrapper {
1750
+ margin-top: 4rem;
1751
+ margin-bottom: var(--wp--style--block-gap);
1752
+ }
1758
1753
  .edit-post-visual-editor__post-title-wrapper .editor-post-title {
1759
- margin-top: 2em;
1760
1754
  margin-left: auto;
1761
1755
  margin-right: auto;
1762
- margin-bottom: 0;
1763
1756
  }
1764
1757
 
1765
1758
  .edit-post-visual-editor__exit-template-mode {
@@ -1787,6 +1780,12 @@ h2.edit-post-template-summary__title {
1787
1780
  background: #00a0d2;
1788
1781
  margin: 0 0 16px;
1789
1782
  }
1783
+ .edit-post-welcome-guide__image > img {
1784
+ display: block;
1785
+ max-width: 100%;
1786
+ -o-object-fit: cover;
1787
+ object-fit: cover;
1788
+ }
1790
1789
  .edit-post-welcome-guide__heading {
1791
1790
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
1792
1791
  font-size: 24px;