@wordpress/edit-post 6.8.0 → 6.11.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 (142) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/build/components/header/header-toolbar/index.js +7 -6
  4. package/build/components/header/header-toolbar/index.js.map +1 -1
  5. package/build/components/header/template-title/edit-template-title.js +11 -2
  6. package/build/components/header/template-title/edit-template-title.js.map +1 -1
  7. package/build/components/keyboard-shortcut-help-modal/config.js +12 -0
  8. package/build/components/keyboard-shortcut-help-modal/config.js.map +1 -1
  9. package/build/components/keyboard-shortcut-help-modal/index.js +1 -3
  10. package/build/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  11. package/build/components/preferences-modal/index.js +3 -26
  12. package/build/components/preferences-modal/index.js.map +1 -1
  13. package/build/components/sidebar/plugin-post-status-info/index.js +2 -2
  14. package/build/components/sidebar/plugin-post-status-info/index.js.map +1 -1
  15. package/build/components/sidebar/post-format/index.js +3 -1
  16. package/build/components/sidebar/post-format/index.js.map +1 -1
  17. package/build/components/sidebar/post-schedule/index.js +28 -12
  18. package/build/components/sidebar/post-schedule/index.js.map +1 -1
  19. package/build/components/sidebar/post-slug/index.js +3 -1
  20. package/build/components/sidebar/post-slug/index.js.map +1 -1
  21. package/build/components/sidebar/post-status/index.js +6 -2
  22. package/build/components/sidebar/post-status/index.js.map +1 -1
  23. package/build/components/sidebar/post-template/create-modal.js +116 -0
  24. package/build/components/sidebar/post-template/create-modal.js.map +1 -0
  25. package/build/components/sidebar/post-template/form.js +123 -0
  26. package/build/components/sidebar/post-template/form.js.map +1 -0
  27. package/build/components/sidebar/post-template/index.js +128 -0
  28. package/build/components/sidebar/post-template/index.js.map +1 -0
  29. package/build/components/sidebar/post-url/index.js +68 -0
  30. package/build/components/sidebar/post-url/index.js.map +1 -0
  31. package/build/components/sidebar/post-visibility/index.js +21 -6
  32. package/build/components/sidebar/post-visibility/index.js.map +1 -1
  33. package/build/components/sidebar/settings-sidebar/index.js +2 -6
  34. package/build/components/sidebar/settings-sidebar/index.js.map +1 -1
  35. package/build/components/start-page-options/index.js +31 -13
  36. package/build/components/start-page-options/index.js.map +1 -1
  37. package/build/components/visual-editor/index.js +4 -2
  38. package/build/components/visual-editor/index.js.map +1 -1
  39. package/build/editor.js +8 -3
  40. package/build/editor.js.map +1 -1
  41. package/build/editor.native.js +1 -1
  42. package/build/editor.native.js.map +1 -1
  43. package/build/store/selectors.js +8 -8
  44. package/build/store/selectors.js.map +1 -1
  45. package/build-module/components/header/header-toolbar/index.js +8 -6
  46. package/build-module/components/header/header-toolbar/index.js.map +1 -1
  47. package/build-module/components/header/template-title/edit-template-title.js +12 -2
  48. package/build-module/components/header/template-title/edit-template-title.js.map +1 -1
  49. package/build-module/components/keyboard-shortcut-help-modal/config.js +12 -0
  50. package/build-module/components/keyboard-shortcut-help-modal/config.js.map +1 -1
  51. package/build-module/components/keyboard-shortcut-help-modal/index.js +1 -2
  52. package/build-module/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  53. package/build-module/components/preferences-modal/index.js +3 -25
  54. package/build-module/components/preferences-modal/index.js.map +1 -1
  55. package/build-module/components/sidebar/plugin-post-status-info/index.js +2 -2
  56. package/build-module/components/sidebar/plugin-post-status-info/index.js.map +1 -1
  57. package/build-module/components/sidebar/post-format/index.js +3 -1
  58. package/build-module/components/sidebar/post-format/index.js.map +1 -1
  59. package/build-module/components/sidebar/post-schedule/index.js +32 -13
  60. package/build-module/components/sidebar/post-schedule/index.js.map +1 -1
  61. package/build-module/components/sidebar/post-slug/index.js +3 -1
  62. package/build-module/components/sidebar/post-slug/index.js.map +1 -1
  63. package/build-module/components/sidebar/post-status/index.js +4 -2
  64. package/build-module/components/sidebar/post-status/index.js.map +1 -1
  65. package/build-module/components/sidebar/post-template/create-modal.js +104 -0
  66. package/build-module/components/sidebar/post-template/create-modal.js.map +1 -0
  67. package/build-module/components/sidebar/post-template/form.js +106 -0
  68. package/build-module/components/sidebar/post-template/form.js.map +1 -0
  69. package/build-module/components/sidebar/post-template/index.js +114 -0
  70. package/build-module/components/sidebar/post-template/index.js.map +1 -0
  71. package/build-module/components/sidebar/post-url/index.js +59 -0
  72. package/build-module/components/sidebar/post-url/index.js.map +1 -0
  73. package/build-module/components/sidebar/post-visibility/index.js +24 -8
  74. package/build-module/components/sidebar/post-visibility/index.js.map +1 -1
  75. package/build-module/components/sidebar/settings-sidebar/index.js +2 -4
  76. package/build-module/components/sidebar/settings-sidebar/index.js.map +1 -1
  77. package/build-module/components/start-page-options/index.js +32 -14
  78. package/build-module/components/start-page-options/index.js.map +1 -1
  79. package/build-module/components/visual-editor/index.js +4 -2
  80. package/build-module/components/visual-editor/index.js.map +1 -1
  81. package/build-module/editor.js +9 -4
  82. package/build-module/editor.js.map +1 -1
  83. package/build-module/editor.native.js +2 -2
  84. package/build-module/editor.native.js.map +1 -1
  85. package/build-module/store/selectors.js +8 -7
  86. package/build-module/store/selectors.js.map +1 -1
  87. package/build-style/style-rtl.css +82 -91
  88. package/build-style/style.css +81 -94
  89. package/package.json +27 -27
  90. package/src/components/header/header-toolbar/index.js +10 -10
  91. package/src/components/header/header-toolbar/style.scss +2 -5
  92. package/src/components/header/style.scss +0 -6
  93. package/src/components/header/template-title/edit-template-title.js +11 -1
  94. package/src/components/keyboard-shortcut-help-modal/config.js +8 -0
  95. package/src/components/keyboard-shortcut-help-modal/index.js +1 -2
  96. package/src/components/keyboard-shortcut-help-modal/style.scss +0 -5
  97. package/src/components/keyboard-shortcut-help-modal/test/__snapshots__/index.js.snap +14 -0
  98. package/src/components/preferences-modal/index.js +5 -23
  99. package/src/components/preferences-modal/test/index.js +3 -3
  100. package/src/components/sidebar/plugin-post-status-info/index.js +2 -2
  101. package/src/components/sidebar/post-author/style.scss +4 -10
  102. package/src/components/sidebar/post-format/index.js +1 -1
  103. package/src/components/sidebar/post-format/style.scss +5 -0
  104. package/src/components/sidebar/post-schedule/index.js +27 -16
  105. package/src/components/sidebar/post-schedule/style.scss +16 -3
  106. package/src/components/sidebar/post-slug/index.js +1 -1
  107. package/src/components/sidebar/post-slug/style.scss +4 -3
  108. package/src/components/sidebar/post-status/index.js +6 -2
  109. package/src/components/sidebar/post-template/create-modal.js +146 -0
  110. package/src/components/sidebar/post-template/form.js +143 -0
  111. package/src/components/sidebar/post-template/index.js +106 -0
  112. package/src/components/sidebar/post-template/style.scss +36 -0
  113. package/src/components/sidebar/post-url/index.js +51 -0
  114. package/src/components/sidebar/post-url/style.scss +23 -0
  115. package/src/components/sidebar/post-visibility/index.js +22 -8
  116. package/src/components/sidebar/post-visibility/style.scss +4 -4
  117. package/src/components/sidebar/settings-sidebar/index.js +1 -5
  118. package/src/components/sidebar/template/style.scss +0 -8
  119. package/src/components/start-page-options/index.js +46 -22
  120. package/src/components/start-page-options/style.scss +0 -9
  121. package/src/components/visual-editor/index.js +2 -1
  122. package/src/editor.js +8 -4
  123. package/src/editor.native.js +2 -2
  124. package/src/store/selectors.js +5 -8
  125. package/src/style.scss +3 -2
  126. package/src/test/editor.native.js +1 -3
  127. package/build/components/sidebar/post-link/index.js +0 -182
  128. package/build/components/sidebar/post-link/index.js.map +0 -1
  129. package/build/components/sidebar/template/actions.js +0 -172
  130. package/build/components/sidebar/template/actions.js.map +0 -1
  131. package/build/components/sidebar/template/index.js +0 -164
  132. package/build/components/sidebar/template/index.js.map +0 -1
  133. package/build-module/components/sidebar/post-link/index.js +0 -165
  134. package/build-module/components/sidebar/post-link/index.js.map +0 -1
  135. package/build-module/components/sidebar/template/actions.js +0 -158
  136. package/build-module/components/sidebar/template/actions.js.map +0 -1
  137. package/build-module/components/sidebar/template/index.js +0 -145
  138. package/build-module/components/sidebar/template/index.js.map +0 -1
  139. package/src/components/sidebar/post-link/index.js +0 -179
  140. package/src/components/sidebar/post-link/style.scss +0 -20
  141. package/src/components/sidebar/template/actions.js +0 -206
  142. package/src/components/sidebar/template/index.js +0 -160
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-post/src/store/selectors.js"],"names":["createSelector","includes","some","flatten","values","createRegistrySelector","store","interfaceStore","preferencesStore","coreStore","editorStore","deprecated","EMPTY_ARRAY","EMPTY_OBJECT","getEditorMode","select","get","isEditorSidebarOpened","activeGeneralSidebar","getActiveComplementaryArea","isPluginSidebarOpened","getActiveGeneralSidebarName","convertPanelsToOldFormat","inactivePanels","openPanels","panelsWithEnabledState","reduce","accumulatedPanels","panelName","enabled","panels","currentPanelState","opened","getPreferences","since","alternative","preferences","accumulatedPrefs","preferenceKey","value","getPreference","state","defaultValue","undefined","getHiddenBlockTypes","isPublishSidebarOpened","publishSidebarActive","isEditorPanelRemoved","removedPanels","isEditorPanelEnabled","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","per_page","find","template","slug","getEditedEntityRecord","post","getCurrentPost","link","__experimentalGetTemplateForLink"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,cAAP,MAA2B,QAA3B;AACA,SAASC,QAAT,EAAmBC,IAAnB,EAAyBC,OAAzB,EAAkCC,MAAlC,QAAgD,QAAhD;AAEA;AACA;AACA;;AACA,SAASC,sBAAT,QAAuC,iBAAvC;AACA,SAASC,KAAK,IAAIC,cAAlB,QAAwC,sBAAxC;AACA,SAASD,KAAK,IAAIE,gBAAlB,QAA0C,wBAA1C;AACA,SAASF,KAAK,IAAIG,SAAlB,QAAmC,sB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AGA,QAAK,CAAEE,oBAAP,EAA8B;AAC7B,aAAOA,oBAAP;AACA;;AACD,WAAO5E,MAAM,CAAEN,SAAF,CAAN,CAAoBwF,qBAApB,CACN,UADM,EAEN,aAFM,EAGNN,oBAAoB,CAACtB,EAHf,CAAP;AAKA;;AAED,QAAM6B,IAAI,GAAGnF,MAAM,CAAEL,WAAF,CAAN,CAAsByF,cAAtB,EAAb;;AACA,MAAKD,IAAI,CAACE,IAAV,EAAiB;AAChB,WAAOrF,MAAM,CAAEN,SAAF,CAAN,CAAoB4F,gCAApB,CACNH,IAAI,CAACE,IADC,CAAP;AAGA;;AAED,SAAO,IAAP;AACA,CA1ByD,CAApD","sourcesContent":["/**\n * External dependencies\n */\nimport createSelector from 'rememo';\nimport { 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 preferencesStore } from '@wordpress/preferences';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { store as editorStore } from '@wordpress/editor';\nimport deprecated from '@wordpress/deprecated';\n\nconst EMPTY_ARRAY = [];\nconst EMPTY_OBJECT = {};\n\n/**\n * Returns the current editing mode.\n *\n * @param {Object} state Global application state.\n *\n * @return {string} Editing mode.\n */\nexport const getEditorMode = createRegistrySelector(\n\t( select ) => () =>\n\t\tselect( preferencesStore ).get( 'core/edit-post', 'editorMode' ) ??\n\t\t'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 =\n\t\t\tselect( interfaceStore ).getActiveComplementaryArea(\n\t\t\t\t'core/edit-post'\n\t\t\t);\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 =\n\t\t\tselect( interfaceStore ).getActiveComplementaryArea(\n\t\t\t\t'core/edit-post'\n\t\t\t);\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 * Converts panels from the new preferences store format to the old format\n * that the post editor previously used.\n *\n * The resultant converted data should look like this:\n * {\n * panelName: {\n * enabled: false,\n * opened: true,\n * },\n * anotherPanelName: {\n * opened: true\n * },\n * }\n *\n * @param {string[] | undefined} inactivePanels An array of inactive panel names.\n * @param {string[] | undefined} openPanels An array of open panel names.\n *\n * @return {Object} The converted panel data.\n */\nfunction convertPanelsToOldFormat( inactivePanels, openPanels ) {\n\t// First reduce the inactive panels.\n\tconst panelsWithEnabledState = inactivePanels?.reduce(\n\t\t( accumulatedPanels, panelName ) => ( {\n\t\t\t...accumulatedPanels,\n\t\t\t[ panelName ]: {\n\t\t\t\tenabled: false,\n\t\t\t},\n\t\t} ),\n\t\t{}\n\t);\n\n\t// Then reduce the open panels, passing in the result of the previous\n\t// reduction as the initial value so that both open and inactive\n\t// panel state is combined.\n\tconst panels = openPanels?.reduce( ( accumulatedPanels, panelName ) => {\n\t\tconst currentPanelState = accumulatedPanels?.[ panelName ];\n\t\treturn {\n\t\t\t...accumulatedPanels,\n\t\t\t[ panelName ]: {\n\t\t\t\t...currentPanelState,\n\t\t\t\topened: true,\n\t\t\t},\n\t\t};\n\t}, panelsWithEnabledState ?? {} );\n\n\t// The panels variable will only be set if openPanels wasn't `undefined`.\n\t// If it isn't set just return `panelsWithEnabledState`, and if that isn't\n\t// set return an empty object.\n\treturn panels ?? panelsWithEnabledState ?? EMPTY_OBJECT;\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 const getPreferences = createRegistrySelector( ( select ) => () => {\n\tdeprecated( `select( 'core/edit-post' ).getPreferences`, {\n\t\tsince: '6.0',\n\t\talternative: `select( 'core/preferences' ).get`,\n\t} );\n\n\t// These preferences now exist in the preferences store.\n\t// Fetch them so that they can be merged into the post\n\t// editor preferences.\n\tconst preferences = [\n\t\t'hiddenBlockTypes',\n\t\t'editorMode',\n\t\t'preferredStyleVariations',\n\t].reduce( ( accumulatedPrefs, preferenceKey ) => {\n\t\tconst value = select( preferencesStore ).get(\n\t\t\t'core/edit-post',\n\t\t\tpreferenceKey\n\t\t);\n\n\t\treturn {\n\t\t\t...accumulatedPrefs,\n\t\t\t[ preferenceKey ]: value,\n\t\t};\n\t}, {} );\n\n\t// Panels were a preference, but the data structure changed when the state\n\t// was migrated to the preferences store. They need to be converted from\n\t// the new preferences store format to old format to ensure no breaking\n\t// changes for plugins.\n\tconst inactivePanels = select( preferencesStore ).get(\n\t\t'core/edit-post',\n\t\t'inactivePanels'\n\t);\n\tconst openPanels = select( preferencesStore ).get(\n\t\t'core/edit-post',\n\t\t'openPanels'\n\t);\n\tconst panels = convertPanelsToOldFormat( inactivePanels, openPanels );\n\n\treturn {\n\t\t...preferences,\n\t\tpanels,\n\t};\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\tdeprecated( `select( 'core/edit-post' ).getPreference`, {\n\t\tsince: '6.0',\n\t\talternative: `select( 'core/preferences' ).get`,\n\t} );\n\n\t// Avoid using the `getPreferences` registry selector where possible.\n\tconst preferences = getPreferences( state );\n\tconst value = preferences[ preferenceKey ];\n\treturn value === undefined ? defaultValue : value;\n}\n\n/**\n * Returns an array of blocks that are hidden.\n *\n * @return {Array} A list of the hidden block types\n */\nexport const getHiddenBlockTypes = createRegistrySelector( ( select ) => () => {\n\treturn (\n\t\tselect( preferencesStore ).get(\n\t\t\t'core/edit-post',\n\t\t\t'hiddenBlockTypes'\n\t\t) ?? EMPTY_ARRAY\n\t);\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 const isEditorPanelEnabled = createRegistrySelector(\n\t( select ) => ( state, panelName ) => {\n\t\tconst inactivePanels = select( preferencesStore ).get(\n\t\t\t'core/edit-post',\n\t\t\t'inactivePanels'\n\t\t);\n\t\treturn (\n\t\t\t! isEditorPanelRemoved( state, panelName ) &&\n\t\t\t! inactivePanels?.includes( panelName )\n\t\t);\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 const isEditorPanelOpened = createRegistrySelector(\n\t( select ) => ( state, panelName ) => {\n\t\tconst openPanels = select( preferencesStore ).get(\n\t\t\t'core/edit-post',\n\t\t\t'openPanels'\n\t\t);\n\t\treturn !! openPanels?.includes( panelName );\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( preferencesStore ).get( 'core/edit-post', feature );\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 { rootClientId, insertionIndex, filterValue } =\n\t\tstate.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 =\n\t\t\tselect( editorStore ).getEditedPostAttribute( 'template' );\n\t\tif ( currentTemplate ) {\n\t\t\tconst templateWithSameSlug = select( coreStore )\n\t\t\t\t.getEntityRecords( 'postType', 'wp_template', { per_page: -1 } )\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","createRegistrySelector","store","interfaceStore","preferencesStore","coreStore","editorStore","deprecated","EMPTY_ARRAY","EMPTY_OBJECT","getEditorMode","select","get","isEditorSidebarOpened","activeGeneralSidebar","getActiveComplementaryArea","includes","isPluginSidebarOpened","getActiveGeneralSidebarName","convertPanelsToOldFormat","inactivePanels","openPanels","panelsWithEnabledState","reduce","accumulatedPanels","panelName","enabled","panels","currentPanelState","opened","getPreferences","since","alternative","preferences","accumulatedPrefs","preferenceKey","value","getPreference","state","defaultValue","undefined","getHiddenBlockTypes","isPublishSidebarOpened","publishSidebarActive","isEditorPanelRemoved","removedPanels","isEditorPanelEnabled","isEditorPanelOpened","isModalActive","modalName","activeModal","isFeatureActive","feature","isPluginItemPinned","pluginName","isItemPinned","getActiveMetaBoxLocations","Object","keys","metaBoxes","locations","filter","location","isMetaBoxLocationActive","isMetaBoxLocationVisible","getMetaBoxesPerLocation","some","id","length","getAllMetaBoxes","values","flat","hasMetaBoxes","isSavingMetaBoxes","isSaving","__experimentalGetPreviewDeviceType","deviceType","isInserterOpened","blockInserterPanel","__experimentalGetInsertionPoint","rootClientId","insertionIndex","filterValue","isListViewOpened","listViewPanel","isEditingTemplate","areMetaBoxesInitialized","initialized","getEditedPostTemplate","currentTemplate","getEditedPostAttribute","templateWithSameSlug","getEntityRecords","per_page","find","template","slug","getEditedEntityRecord","post","getCurrentPost","link","__experimentalGetTemplateForLink"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,cAAP,MAA2B,QAA3B;AAEA;AACA;AACA;;AACA,SAASC,sBAAT,QAAuC,iBAAvC;AACA,SAASC,KAAK,IAAIC,cAAlB,QAAwC,sBAAxC;AACA,SAASD,KAAK,IAAIE,gBAAlB,QAA0C,wBAA1C;AACA,SAASF,KAAK,IAAIG,SAAlB,QAAmC,sBAAnC;AACA,SAASH,KAAK,IAAII,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EAA8B;AAC7B,aAAOA,oBAAP;AACA;;AACD,WAAOhF,MAAM,CAAEN,SAAF,CAAN,CAAoB4F,qBAApB,CACN,UADM,EAEN,aAFM,EAGNN,oBAAoB,CAACxB,EAHf,CAAP;AAKA;;AAED,QAAM+B,IAAI,GAAGvF,MAAM,CAAEL,WAAF,CAAN,CAAsB6F,cAAtB,EAAb;;AACA,MAAKD,IAAI,CAACE,IAAV,EAAiB;AAChB,WAAOzF,MAAM,CAAEN,SAAF,CAAN,CAAoBgG,gCAApB,CACNH,IAAI,CAACE,IADC,CAAP;AAGA;;AAED,SAAO,IAAP;AACA,CA1ByD,CAApD","sourcesContent":["/**\n * External dependencies\n */\nimport createSelector from 'rememo';\n\n/**\n * WordPress dependencies\n */\nimport { createRegistrySelector } from '@wordpress/data';\nimport { store as interfaceStore } from '@wordpress/interface';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { store as editorStore } from '@wordpress/editor';\nimport deprecated from '@wordpress/deprecated';\n\nconst EMPTY_ARRAY = [];\nconst EMPTY_OBJECT = {};\n\n/**\n * Returns the current editing mode.\n *\n * @param {Object} state Global application state.\n *\n * @return {string} Editing mode.\n */\nexport const getEditorMode = createRegistrySelector(\n\t( select ) => () =>\n\t\tselect( preferencesStore ).get( 'core/edit-post', 'editorMode' ) ??\n\t\t'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 =\n\t\t\tselect( interfaceStore ).getActiveComplementaryArea(\n\t\t\t\t'core/edit-post'\n\t\t\t);\n\t\treturn [ 'edit-post/document', 'edit-post/block' ].includes(\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 =\n\t\t\tselect( interfaceStore ).getActiveComplementaryArea(\n\t\t\t\t'core/edit-post'\n\t\t\t);\n\t\treturn (\n\t\t\t!! activeGeneralSidebar &&\n\t\t\t! [ 'edit-post/document', 'edit-post/block' ].includes(\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 * Converts panels from the new preferences store format to the old format\n * that the post editor previously used.\n *\n * The resultant converted data should look like this:\n * {\n * panelName: {\n * enabled: false,\n * opened: true,\n * },\n * anotherPanelName: {\n * opened: true\n * },\n * }\n *\n * @param {string[] | undefined} inactivePanels An array of inactive panel names.\n * @param {string[] | undefined} openPanels An array of open panel names.\n *\n * @return {Object} The converted panel data.\n */\nfunction convertPanelsToOldFormat( inactivePanels, openPanels ) {\n\t// First reduce the inactive panels.\n\tconst panelsWithEnabledState = inactivePanels?.reduce(\n\t\t( accumulatedPanels, panelName ) => ( {\n\t\t\t...accumulatedPanels,\n\t\t\t[ panelName ]: {\n\t\t\t\tenabled: false,\n\t\t\t},\n\t\t} ),\n\t\t{}\n\t);\n\n\t// Then reduce the open panels, passing in the result of the previous\n\t// reduction as the initial value so that both open and inactive\n\t// panel state is combined.\n\tconst panels = openPanels?.reduce( ( accumulatedPanels, panelName ) => {\n\t\tconst currentPanelState = accumulatedPanels?.[ panelName ];\n\t\treturn {\n\t\t\t...accumulatedPanels,\n\t\t\t[ panelName ]: {\n\t\t\t\t...currentPanelState,\n\t\t\t\topened: true,\n\t\t\t},\n\t\t};\n\t}, panelsWithEnabledState ?? {} );\n\n\t// The panels variable will only be set if openPanels wasn't `undefined`.\n\t// If it isn't set just return `panelsWithEnabledState`, and if that isn't\n\t// set return an empty object.\n\treturn panels ?? panelsWithEnabledState ?? EMPTY_OBJECT;\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 const getPreferences = createRegistrySelector( ( select ) => () => {\n\tdeprecated( `select( 'core/edit-post' ).getPreferences`, {\n\t\tsince: '6.0',\n\t\talternative: `select( 'core/preferences' ).get`,\n\t} );\n\n\t// These preferences now exist in the preferences store.\n\t// Fetch them so that they can be merged into the post\n\t// editor preferences.\n\tconst preferences = [\n\t\t'hiddenBlockTypes',\n\t\t'editorMode',\n\t\t'preferredStyleVariations',\n\t].reduce( ( accumulatedPrefs, preferenceKey ) => {\n\t\tconst value = select( preferencesStore ).get(\n\t\t\t'core/edit-post',\n\t\t\tpreferenceKey\n\t\t);\n\n\t\treturn {\n\t\t\t...accumulatedPrefs,\n\t\t\t[ preferenceKey ]: value,\n\t\t};\n\t}, {} );\n\n\t// Panels were a preference, but the data structure changed when the state\n\t// was migrated to the preferences store. They need to be converted from\n\t// the new preferences store format to old format to ensure no breaking\n\t// changes for plugins.\n\tconst inactivePanels = select( preferencesStore ).get(\n\t\t'core/edit-post',\n\t\t'inactivePanels'\n\t);\n\tconst openPanels = select( preferencesStore ).get(\n\t\t'core/edit-post',\n\t\t'openPanels'\n\t);\n\tconst panels = convertPanelsToOldFormat( inactivePanels, openPanels );\n\n\treturn {\n\t\t...preferences,\n\t\tpanels,\n\t};\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\tdeprecated( `select( 'core/edit-post' ).getPreference`, {\n\t\tsince: '6.0',\n\t\talternative: `select( 'core/preferences' ).get`,\n\t} );\n\n\t// Avoid using the `getPreferences` registry selector where possible.\n\tconst preferences = getPreferences( state );\n\tconst value = preferences[ preferenceKey ];\n\treturn value === undefined ? defaultValue : value;\n}\n\n/**\n * Returns an array of blocks that are hidden.\n *\n * @return {Array} A list of the hidden block types\n */\nexport const getHiddenBlockTypes = createRegistrySelector( ( select ) => () => {\n\treturn (\n\t\tselect( preferencesStore ).get(\n\t\t\t'core/edit-post',\n\t\t\t'hiddenBlockTypes'\n\t\t) ?? EMPTY_ARRAY\n\t);\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 state.removedPanels.includes( 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 const isEditorPanelEnabled = createRegistrySelector(\n\t( select ) => ( state, panelName ) => {\n\t\tconst inactivePanels = select( preferencesStore ).get(\n\t\t\t'core/edit-post',\n\t\t\t'inactivePanels'\n\t\t);\n\t\treturn (\n\t\t\t! isEditorPanelRemoved( state, panelName ) &&\n\t\t\t! inactivePanels?.includes( panelName )\n\t\t);\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 const isEditorPanelOpened = createRegistrySelector(\n\t( select ) => ( state, panelName ) => {\n\t\tconst openPanels = select( preferencesStore ).get(\n\t\t\t'core/edit-post',\n\t\t\t'openPanels'\n\t\t);\n\t\treturn !! openPanels?.includes( panelName );\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( preferencesStore ).get( 'core/edit-post', feature );\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\tgetMetaBoxesPerLocation( state, location )?.some( ( { 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 Object.values( state.metaBoxes.locations ).flat();\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 { rootClientId, insertionIndex, filterValue } =\n\t\tstate.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 =\n\t\t\tselect( editorStore ).getEditedPostAttribute( 'template' );\n\t\tif ( currentTemplate ) {\n\t\t\tconst templateWithSameSlug = select( coreStore )\n\t\t\t\t.getEntityRecords( 'postType', 'wp_template', { per_page: -1 } )\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"]}
@@ -468,9 +468,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
468
468
  .interface-preferences-modal .components-modal__content {
469
469
  padding: 0;
470
470
  }
471
- .interface-preferences-modal .components-modal__content::before {
472
- content: none;
473
- }
474
471
  }
475
472
 
476
473
  .interface-preferences__tabs .components-tab-panel__tabs {
@@ -689,11 +686,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
689
686
  padding-left: 12px;
690
687
  }
691
688
  }
692
- .show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle::after,
693
- .show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle::after,
694
- .edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle::after {
695
- content: none;
696
- }
697
689
  .show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft::after,
698
690
  .show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft::after,
699
691
  .edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft::after {
@@ -910,11 +902,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
910
902
  padding: 0;
911
903
  }
912
904
  .show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-icon {
913
- height: 36px;
914
- }
915
-
916
- .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-text.has-icon {
917
905
  width: auto;
906
+ height: 36px;
918
907
  padding: 0 8px;
919
908
  }
920
909
 
@@ -1008,9 +997,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1008
997
  .edit-post-keyboard-shortcut-help-modal__section {
1009
998
  margin: 0 0 2rem 0;
1010
999
  }
1011
- .edit-post-keyboard-shortcut-help-modal__main-shortcuts .edit-post-keyboard-shortcut-help-modal__shortcut-list {
1012
- margin-top: -25px;
1013
- }
1014
1000
  .edit-post-keyboard-shortcut-help-modal__section-title {
1015
1001
  font-size: 0.9rem;
1016
1002
  font-weight: 600;
@@ -1430,33 +1416,18 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1430
1416
  padding: 16px;
1431
1417
  }
1432
1418
 
1433
- .editor-post-author__select {
1434
- margin: -5px 0;
1435
- width: 100%;
1436
- }
1437
- @supports (position: sticky) {
1438
- .editor-post-author__select {
1439
- width: auto;
1440
- }
1441
- }
1442
-
1443
- .edit-post-post-link__link-post-name {
1444
- font-weight: 600;
1419
+ .edit-post-post-author {
1420
+ display: flex;
1421
+ flex-direction: column;
1422
+ align-items: stretch;
1445
1423
  }
1446
1424
 
1447
- .edit-post-post-link__preview-label {
1448
- font-weight: 400;
1449
- margin: 0;
1425
+ .edit-post-post-format {
1426
+ display: flex;
1427
+ flex-direction: column;
1428
+ align-items: stretch;
1450
1429
  }
1451
1430
 
1452
- .edit-post-post-link__link {
1453
- text-align: right;
1454
- word-wrap: break-word;
1455
- display: block;
1456
- }
1457
- .edit-post-post-link__preview-link-container {
1458
- direction: ltr;
1459
- }
1460
1431
  .edit-post-post-schedule {
1461
1432
  width: 100%;
1462
1433
  position: relative;
@@ -1465,19 +1436,26 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1465
1436
  .edit-post-post-schedule span {
1466
1437
  display: block;
1467
1438
  width: 45%;
1439
+ flex-shrink: 0;
1468
1440
  }
1469
1441
 
1470
1442
  .components-button.edit-post-post-schedule__toggle {
1471
- text-align: left;
1443
+ text-align: right;
1444
+ white-space: normal;
1445
+ height: auto;
1446
+ }
1447
+ .components-button.edit-post-post-schedule__toggle span {
1448
+ width: 0;
1472
1449
  }
1473
1450
 
1474
- .edit-post-post-schedule__dialog .components-popover__content {
1475
- padding: 16px;
1451
+ .edit-post-post-schedule__dialog .block-editor-publish-date-time-picker {
1452
+ margin: 8px;
1476
1453
  }
1477
1454
 
1478
- .editor-post-slug__input {
1479
- margin: -5px 0;
1480
- padding: 2px;
1455
+ .edit-post-post-slug {
1456
+ display: flex;
1457
+ flex-direction: column;
1458
+ align-items: stretch;
1481
1459
  }
1482
1460
 
1483
1461
  .edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft {
@@ -1486,6 +1464,63 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1486
1464
  text-align: center;
1487
1465
  }
1488
1466
 
1467
+ .edit-post-post-template {
1468
+ width: 100%;
1469
+ justify-content: flex-start;
1470
+ }
1471
+ .edit-post-post-template span {
1472
+ display: block;
1473
+ width: 45%;
1474
+ }
1475
+
1476
+ .edit-post-post-template__dropdown {
1477
+ max-width: 55%;
1478
+ }
1479
+
1480
+ .components-button.edit-post-post-template__toggle {
1481
+ display: inline-block;
1482
+ width: 100%;
1483
+ overflow: hidden;
1484
+ text-overflow: ellipsis;
1485
+ }
1486
+
1487
+ .edit-post-post-template__dialog {
1488
+ z-index: 99999;
1489
+ }
1490
+
1491
+ .edit-post-post-template__form {
1492
+ min-width: 248px;
1493
+ margin: 8px;
1494
+ }
1495
+
1496
+ @media (min-width: 782px) {
1497
+ .edit-post-post-template__create-form {
1498
+ width: 320px;
1499
+ }
1500
+ }
1501
+
1502
+ .edit-post-post-url {
1503
+ width: 100%;
1504
+ justify-content: flex-start;
1505
+ }
1506
+ .edit-post-post-url span {
1507
+ display: block;
1508
+ width: 45%;
1509
+ flex-shrink: 0;
1510
+ }
1511
+
1512
+ .components-button.edit-post-post-url__toggle {
1513
+ text-align: right;
1514
+ white-space: normal;
1515
+ height: auto;
1516
+ word-break: break-word;
1517
+ }
1518
+
1519
+ .edit-post-post-url__dialog .editor-post-url {
1520
+ min-width: 248px;
1521
+ margin: 8px;
1522
+ }
1523
+
1489
1524
  .edit-post-post-visibility {
1490
1525
  width: 100%;
1491
1526
  justify-content: flex-start;
@@ -1495,9 +1530,9 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1495
1530
  width: 45%;
1496
1531
  }
1497
1532
 
1498
- .edit-post-post-visibility__dialog .components-popover__content {
1499
- width: 262px;
1500
- padding: 16px;
1533
+ .edit-post-post-visibility__dialog .editor-post-visibility {
1534
+ min-width: 248px;
1535
+ margin: 8px;
1501
1536
  }
1502
1537
 
1503
1538
  .components-button.edit-post-sidebar__panel-tab {
@@ -1544,44 +1579,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1544
1579
  box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 -3px 0 0 var(--wp-admin-theme-color);
1545
1580
  }
1546
1581
 
1547
- @media (min-width: 782px) {
1548
- .edit-post-template__modal .components-base-control {
1549
- width: 320px;
1550
- }
1551
- }
1552
- .edit-post-template__modal .components-modal__header {
1553
- border-bottom: none;
1554
- }
1555
- .edit-post-template__modal .components-modal__content::before {
1556
- margin-bottom: 4px;
1557
- }
1558
-
1559
- .edit-post-template__modal-actions {
1560
- margin-top: 12px;
1561
- }
1562
-
1563
- .edit-post-template-modal__tip {
1564
- padding: 16px 24px;
1565
- background: #f0f0f0;
1566
- border-radius: 2px;
1567
- }
1568
- @media (min-width: 782px) {
1569
- .edit-post-template-modal__tip {
1570
- width: 240px;
1571
- }
1572
- }
1573
-
1574
- .edit-post-template__notice {
1575
- margin: 0 0 8px 0;
1576
- }
1577
- .edit-post-template__notice .components-notice__content {
1578
- margin: 0;
1579
- }
1580
-
1581
- .edit-post-template__actions button:not(:last-child) {
1582
- margin-left: 8px;
1583
- }
1584
-
1585
1582
  h2.edit-post-template-summary__title {
1586
1583
  line-height: 24px;
1587
1584
  margin: 0 0 4px;
@@ -1757,12 +1754,6 @@ h2.edit-post-template-summary__title {
1757
1754
  height: 70%;
1758
1755
  }
1759
1756
  }
1760
- .edit-post-start-page-options__modal .components-modal__header {
1761
- border-bottom: none;
1762
- }
1763
- .edit-post-start-page-options__modal .components-modal__content::before {
1764
- content: none;
1765
- }
1766
1757
 
1767
1758
  .edit-post-start-page-options__modal-content .block-editor-block-patterns-list {
1768
1759
  column-count: 2;
@@ -468,9 +468,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
468
468
  .interface-preferences-modal .components-modal__content {
469
469
  padding: 0;
470
470
  }
471
- .interface-preferences-modal .components-modal__content::before {
472
- content: none;
473
- }
474
471
  }
475
472
 
476
473
  .interface-preferences__tabs .components-tab-panel__tabs {
@@ -689,11 +686,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
689
686
  padding-right: 12px;
690
687
  }
691
688
  }
692
- .show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle::after,
693
- .show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle::after,
694
- .edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle::after {
695
- content: none;
696
- }
697
689
  .show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft::after,
698
690
  .show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft::after,
699
691
  .edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft::after {
@@ -910,11 +902,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
910
902
  padding: 0;
911
903
  }
912
904
  .show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-icon {
913
- height: 36px;
914
- }
915
-
916
- .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-text.has-icon {
917
905
  width: auto;
906
+ height: 36px;
918
907
  padding: 0 8px;
919
908
  }
920
909
 
@@ -1008,9 +997,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1008
997
  .edit-post-keyboard-shortcut-help-modal__section {
1009
998
  margin: 0 0 2rem 0;
1010
999
  }
1011
- .edit-post-keyboard-shortcut-help-modal__main-shortcuts .edit-post-keyboard-shortcut-help-modal__shortcut-list {
1012
- margin-top: -25px;
1013
- }
1014
1000
  .edit-post-keyboard-shortcut-help-modal__section-title {
1015
1001
  font-size: 0.9rem;
1016
1002
  font-weight: 600;
@@ -1430,64 +1416,109 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1430
1416
  padding: 16px;
1431
1417
  }
1432
1418
 
1433
- .editor-post-author__select {
1434
- margin: -5px 0;
1419
+ .edit-post-post-author {
1420
+ display: flex;
1421
+ flex-direction: column;
1422
+ align-items: stretch;
1423
+ }
1424
+
1425
+ .edit-post-post-format {
1426
+ display: flex;
1427
+ flex-direction: column;
1428
+ align-items: stretch;
1429
+ }
1430
+
1431
+ .edit-post-post-schedule {
1435
1432
  width: 100%;
1433
+ position: relative;
1434
+ justify-content: flex-start;
1436
1435
  }
1437
- @supports (position: sticky) {
1438
- .editor-post-author__select {
1439
- width: auto;
1440
- }
1436
+ .edit-post-post-schedule span {
1437
+ display: block;
1438
+ width: 45%;
1439
+ flex-shrink: 0;
1441
1440
  }
1442
1441
 
1443
- .edit-post-post-link__link-post-name {
1444
- font-weight: 600;
1442
+ .components-button.edit-post-post-schedule__toggle {
1443
+ text-align: left;
1444
+ white-space: normal;
1445
+ height: auto;
1446
+ }
1447
+ .components-button.edit-post-post-schedule__toggle span {
1448
+ width: 0;
1445
1449
  }
1446
1450
 
1447
- .edit-post-post-link__preview-label {
1448
- font-weight: 400;
1449
- margin: 0;
1451
+ .edit-post-post-schedule__dialog .block-editor-publish-date-time-picker {
1452
+ margin: 8px;
1450
1453
  }
1451
1454
 
1452
- .edit-post-post-link__link {
1453
- text-align: left;
1454
- word-wrap: break-word;
1455
- display: block;
1455
+ .edit-post-post-slug {
1456
+ display: flex;
1457
+ flex-direction: column;
1458
+ align-items: stretch;
1456
1459
  }
1457
1460
 
1458
- /* rtl:begin:ignore */
1459
- .edit-post-post-link__preview-link-container {
1460
- direction: ltr;
1461
+ .edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft {
1462
+ margin-top: 15px;
1463
+ width: 100%;
1464
+ text-align: center;
1461
1465
  }
1462
1466
 
1463
- /* rtl:end:ignore */
1464
- .edit-post-post-schedule {
1467
+ .edit-post-post-template {
1465
1468
  width: 100%;
1466
- position: relative;
1467
1469
  justify-content: flex-start;
1468
1470
  }
1469
- .edit-post-post-schedule span {
1471
+ .edit-post-post-template span {
1470
1472
  display: block;
1471
1473
  width: 45%;
1472
1474
  }
1473
1475
 
1474
- .components-button.edit-post-post-schedule__toggle {
1475
- text-align: right;
1476
+ .edit-post-post-template__dropdown {
1477
+ max-width: 55%;
1476
1478
  }
1477
1479
 
1478
- .edit-post-post-schedule__dialog .components-popover__content {
1479
- padding: 16px;
1480
+ .components-button.edit-post-post-template__toggle {
1481
+ display: inline-block;
1482
+ width: 100%;
1483
+ overflow: hidden;
1484
+ text-overflow: ellipsis;
1480
1485
  }
1481
1486
 
1482
- .editor-post-slug__input {
1483
- margin: -5px 0;
1484
- padding: 2px;
1487
+ .edit-post-post-template__dialog {
1488
+ z-index: 99999;
1485
1489
  }
1486
1490
 
1487
- .edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft {
1488
- margin-top: 15px;
1491
+ .edit-post-post-template__form {
1492
+ min-width: 248px;
1493
+ margin: 8px;
1494
+ }
1495
+
1496
+ @media (min-width: 782px) {
1497
+ .edit-post-post-template__create-form {
1498
+ width: 320px;
1499
+ }
1500
+ }
1501
+
1502
+ .edit-post-post-url {
1489
1503
  width: 100%;
1490
- text-align: center;
1504
+ justify-content: flex-start;
1505
+ }
1506
+ .edit-post-post-url span {
1507
+ display: block;
1508
+ width: 45%;
1509
+ flex-shrink: 0;
1510
+ }
1511
+
1512
+ .components-button.edit-post-post-url__toggle {
1513
+ text-align: left;
1514
+ white-space: normal;
1515
+ height: auto;
1516
+ word-break: break-word;
1517
+ }
1518
+
1519
+ .edit-post-post-url__dialog .editor-post-url {
1520
+ min-width: 248px;
1521
+ margin: 8px;
1491
1522
  }
1492
1523
 
1493
1524
  .edit-post-post-visibility {
@@ -1499,9 +1530,9 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1499
1530
  width: 45%;
1500
1531
  }
1501
1532
 
1502
- .edit-post-post-visibility__dialog .components-popover__content {
1503
- width: 262px;
1504
- padding: 16px;
1533
+ .edit-post-post-visibility__dialog .editor-post-visibility {
1534
+ min-width: 248px;
1535
+ margin: 8px;
1505
1536
  }
1506
1537
 
1507
1538
  .components-button.edit-post-sidebar__panel-tab {
@@ -1548,44 +1579,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1548
1579
  box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 -3px 0 0 var(--wp-admin-theme-color);
1549
1580
  }
1550
1581
 
1551
- @media (min-width: 782px) {
1552
- .edit-post-template__modal .components-base-control {
1553
- width: 320px;
1554
- }
1555
- }
1556
- .edit-post-template__modal .components-modal__header {
1557
- border-bottom: none;
1558
- }
1559
- .edit-post-template__modal .components-modal__content::before {
1560
- margin-bottom: 4px;
1561
- }
1562
-
1563
- .edit-post-template__modal-actions {
1564
- margin-top: 12px;
1565
- }
1566
-
1567
- .edit-post-template-modal__tip {
1568
- padding: 16px 24px;
1569
- background: #f0f0f0;
1570
- border-radius: 2px;
1571
- }
1572
- @media (min-width: 782px) {
1573
- .edit-post-template-modal__tip {
1574
- width: 240px;
1575
- }
1576
- }
1577
-
1578
- .edit-post-template__notice {
1579
- margin: 0 0 8px 0;
1580
- }
1581
- .edit-post-template__notice .components-notice__content {
1582
- margin: 0;
1583
- }
1584
-
1585
- .edit-post-template__actions button:not(:last-child) {
1586
- margin-right: 8px;
1587
- }
1588
-
1589
1582
  h2.edit-post-template-summary__title {
1590
1583
  line-height: 24px;
1591
1584
  margin: 0 0 4px;
@@ -1761,12 +1754,6 @@ h2.edit-post-template-summary__title {
1761
1754
  height: 70%;
1762
1755
  }
1763
1756
  }
1764
- .edit-post-start-page-options__modal .components-modal__header {
1765
- border-bottom: none;
1766
- }
1767
- .edit-post-start-page-options__modal .components-modal__content::before {
1768
- content: none;
1769
- }
1770
1757
 
1771
1758
  .edit-post-start-page-options__modal-content .block-editor-block-patterns-list {
1772
1759
  column-count: 2;