@wordpress/edit-site 4.9.0 → 4.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/build/components/add-new-template/add-custom-generic-template-modal.js +84 -0
- package/build/components/add-new-template/add-custom-generic-template-modal.js.map +1 -0
- package/build/components/add-new-template/add-custom-template-modal.js +82 -61
- package/build/components/add-new-template/add-custom-template-modal.js.map +1 -1
- package/build/components/add-new-template/new-template.js +94 -81
- package/build/components/add-new-template/new-template.js.map +1 -1
- package/build/components/add-new-template/utils.js +574 -57
- package/build/components/add-new-template/utils.js.map +1 -1
- package/build/components/block-editor/index.js +1 -3
- package/build/components/block-editor/index.js.map +1 -1
- package/build/components/code-editor/index.js +17 -4
- package/build/components/code-editor/index.js.map +1 -1
- package/build/components/editor/index.js +16 -0
- package/build/components/editor/index.js.map +1 -1
- package/build/components/error-boundary/index.js +6 -0
- package/build/components/error-boundary/index.js.map +1 -1
- package/build/components/global-styles/dimensions-panel.js +191 -21
- package/build/components/global-styles/dimensions-panel.js.map +1 -1
- package/build/components/global-styles/global-styles-provider.js +4 -2
- package/build/components/global-styles/global-styles-provider.js.map +1 -1
- package/build/components/global-styles/hooks.js +11 -2
- package/build/components/global-styles/hooks.js.map +1 -1
- package/build/components/global-styles/screen-color-palette.js +13 -17
- package/build/components/global-styles/screen-color-palette.js.map +1 -1
- package/build/components/global-styles/screen-colors.js +59 -7
- package/build/components/global-styles/screen-colors.js.map +1 -1
- package/build/components/global-styles/screen-heading-color.js +157 -0
- package/build/components/global-styles/screen-heading-color.js.map +1 -0
- package/build/components/global-styles/screen-link-color.js +48 -14
- package/build/components/global-styles/screen-link-color.js.map +1 -1
- package/build/components/global-styles/screen-typography-element.js +4 -0
- package/build/components/global-styles/screen-typography-element.js.map +1 -1
- package/build/components/global-styles/screen-typography.js +5 -0
- package/build/components/global-styles/screen-typography.js.map +1 -1
- package/build/components/global-styles/typography-panel.js +73 -12
- package/build/components/global-styles/typography-panel.js.map +1 -1
- package/build/components/global-styles/typography-utils.js +217 -0
- package/build/components/global-styles/typography-utils.js.map +1 -0
- package/build/components/global-styles/ui.js +11 -0
- package/build/components/global-styles/ui.js.map +1 -1
- package/build/components/global-styles/use-global-styles-output.js +298 -61
- package/build/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build/components/global-styles/utils.js +49 -3
- package/build/components/global-styles/utils.js.map +1 -1
- package/build/components/header/index.js +22 -10
- package/build/components/header/index.js.map +1 -1
- package/build/components/header/undo-redo/redo.js +2 -1
- package/build/components/header/undo-redo/redo.js.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/index.js +1 -3
- package/build/components/keyboard-shortcut-help-modal/index.js.map +1 -1
- package/build/components/list/actions/index.js +1 -1
- package/build/components/list/actions/index.js.map +1 -1
- package/build/components/save-button/index.js +2 -3
- package/build/components/save-button/index.js.map +1 -1
- package/build/components/sidebar/navigation-menu-sidebar/navigation-menu.js +2 -2
- package/build/components/sidebar/navigation-menu-sidebar/navigation-menu.js.map +1 -1
- package/build/components/sidebar/template-card/template-actions.js +1 -1
- package/build/components/sidebar/template-card/template-actions.js.map +1 -1
- package/build/components/template-details/edit-template-title.js +11 -3
- package/build/components/template-details/edit-template-title.js.map +1 -1
- package/build/components/template-details/index.js +2 -21
- package/build/components/template-details/index.js.map +1 -1
- package/build/components/template-details/template-areas.js +1 -1
- package/build/components/template-details/template-areas.js.map +1 -1
- package/build/components/template-part-converter/convert-to-template-part.js +4 -1
- package/build/components/template-part-converter/convert-to-template-part.js.map +1 -1
- package/build/hooks/index.js +2 -0
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/template-part-edit.js +86 -0
- package/build/hooks/template-part-edit.js.map +1 -0
- package/build/store/selectors.js +4 -1
- package/build/store/selectors.js.map +1 -1
- package/build-module/components/add-new-template/add-custom-generic-template-modal.js +77 -0
- package/build-module/components/add-new-template/add-custom-generic-template-modal.js.map +1 -0
- package/build-module/components/add-new-template/add-custom-template-modal.js +82 -61
- package/build-module/components/add-new-template/add-custom-template-modal.js.map +1 -1
- package/build-module/components/add-new-template/new-template.js +96 -84
- package/build-module/components/add-new-template/new-template.js.map +1 -1
- package/build-module/components/add-new-template/utils.js +555 -50
- package/build-module/components/add-new-template/utils.js.map +1 -1
- package/build-module/components/block-editor/index.js +1 -2
- package/build-module/components/block-editor/index.js.map +1 -1
- package/build-module/components/code-editor/index.js +18 -5
- package/build-module/components/code-editor/index.js.map +1 -1
- package/build-module/components/editor/index.js +16 -0
- package/build-module/components/editor/index.js.map +1 -1
- package/build-module/components/error-boundary/index.js +5 -0
- package/build-module/components/error-boundary/index.js.map +1 -1
- package/build-module/components/global-styles/dimensions-panel.js +191 -22
- package/build-module/components/global-styles/dimensions-panel.js.map +1 -1
- package/build-module/components/global-styles/global-styles-provider.js +4 -2
- package/build-module/components/global-styles/global-styles-provider.js.map +1 -1
- package/build-module/components/global-styles/hooks.js +11 -2
- package/build-module/components/global-styles/hooks.js.map +1 -1
- package/build-module/components/global-styles/screen-color-palette.js +14 -19
- package/build-module/components/global-styles/screen-color-palette.js.map +1 -1
- package/build-module/components/global-styles/screen-colors.js +59 -7
- package/build-module/components/global-styles/screen-colors.js.map +1 -1
- package/build-module/components/global-styles/screen-heading-color.js +143 -0
- package/build-module/components/global-styles/screen-heading-color.js.map +1 -0
- package/build-module/components/global-styles/screen-link-color.js +47 -14
- package/build-module/components/global-styles/screen-link-color.js.map +1 -1
- package/build-module/components/global-styles/screen-typography-element.js +4 -0
- package/build-module/components/global-styles/screen-typography-element.js.map +1 -1
- package/build-module/components/global-styles/screen-typography.js +5 -0
- package/build-module/components/global-styles/screen-typography.js.map +1 -1
- package/build-module/components/global-styles/typography-panel.js +74 -13
- package/build-module/components/global-styles/typography-panel.js.map +1 -1
- package/build-module/components/global-styles/typography-utils.js +204 -0
- package/build-module/components/global-styles/typography-utils.js.map +1 -0
- package/build-module/components/global-styles/ui.js +10 -0
- package/build-module/components/global-styles/ui.js.map +1 -1
- package/build-module/components/global-styles/use-global-styles-output.js +294 -69
- package/build-module/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build-module/components/global-styles/utils.js +47 -4
- package/build-module/components/global-styles/utils.js.map +1 -1
- package/build-module/components/header/index.js +25 -12
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/header/undo-redo/redo.js +3 -2
- package/build-module/components/header/undo-redo/redo.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/index.js +1 -2
- package/build-module/components/keyboard-shortcut-help-modal/index.js.map +1 -1
- package/build-module/components/list/actions/index.js +1 -1
- package/build-module/components/list/actions/index.js.map +1 -1
- package/build-module/components/save-button/index.js +3 -4
- package/build-module/components/save-button/index.js.map +1 -1
- package/build-module/components/sidebar/navigation-menu-sidebar/navigation-menu.js +3 -3
- package/build-module/components/sidebar/navigation-menu-sidebar/navigation-menu.js.map +1 -1
- package/build-module/components/sidebar/template-card/template-actions.js +1 -1
- package/build-module/components/sidebar/template-card/template-actions.js.map +1 -1
- package/build-module/components/template-details/edit-template-title.js +12 -3
- package/build-module/components/template-details/edit-template-title.js.map +1 -1
- package/build-module/components/template-details/index.js +3 -22
- package/build-module/components/template-details/index.js.map +1 -1
- package/build-module/components/template-details/template-areas.js +1 -1
- package/build-module/components/template-details/template-areas.js.map +1 -1
- package/build-module/components/template-part-converter/convert-to-template-part.js +3 -1
- package/build-module/components/template-part-converter/convert-to-template-part.js.map +1 -1
- package/build-module/hooks/index.js +1 -0
- package/build-module/hooks/index.js.map +1 -1
- package/build-module/hooks/template-part-edit.js +67 -0
- package/build-module/hooks/template-part-edit.js.map +1 -0
- package/build-module/store/selectors.js +5 -2
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/style-rtl.css +55 -48
- package/build-style/style.css +55 -48
- package/package.json +29 -29
- package/src/components/add-new-template/add-custom-generic-template-modal.js +97 -0
- package/src/components/add-new-template/add-custom-template-modal.js +93 -68
- package/src/components/add-new-template/new-template.js +126 -95
- package/src/components/add-new-template/style.scss +41 -8
- package/src/components/add-new-template/utils.js +622 -80
- package/src/components/block-editor/index.js +0 -2
- package/src/components/code-editor/index.js +15 -5
- package/src/components/editor/index.js +11 -0
- package/src/components/error-boundary/index.js +5 -0
- package/src/components/global-styles/dimensions-panel.js +214 -24
- package/src/components/global-styles/global-styles-provider.js +8 -9
- package/src/components/global-styles/hooks.js +18 -0
- package/src/components/global-styles/screen-color-palette.js +25 -27
- package/src/components/global-styles/screen-colors.js +55 -7
- package/src/components/global-styles/screen-heading-color.js +201 -0
- package/src/components/global-styles/screen-link-color.js +65 -23
- package/src/components/global-styles/screen-typography-element.js +4 -0
- package/src/components/global-styles/screen-typography.js +6 -0
- package/src/components/global-styles/style.scss +14 -11
- package/src/components/global-styles/test/typography-utils.js +130 -0
- package/src/components/global-styles/test/use-global-styles-output.js +296 -2
- package/src/components/global-styles/typography-panel.js +85 -16
- package/src/components/global-styles/typography-utils.js +228 -0
- package/src/components/global-styles/ui.js +13 -0
- package/src/components/global-styles/use-global-styles-output.js +387 -89
- package/src/components/global-styles/utils.js +43 -2
- package/src/components/header/index.js +37 -13
- package/src/components/header/style.scss +5 -3
- package/src/components/header/undo-redo/redo.js +6 -2
- package/src/components/keyboard-shortcut-help-modal/index.js +1 -2
- package/src/components/keyboard-shortcut-help-modal/style.scss +0 -5
- package/src/components/list/actions/index.js +3 -1
- package/src/components/list/style.scss +0 -8
- package/src/components/save-button/index.js +10 -13
- package/src/components/sidebar/navigation-menu-sidebar/navigation-menu.js +1 -5
- package/src/components/sidebar/style.scss +4 -0
- package/src/components/sidebar/template-card/template-actions.js +3 -1
- package/src/components/template-details/edit-template-title.js +10 -2
- package/src/components/template-details/index.js +7 -22
- package/src/components/template-details/template-areas.js +3 -1
- package/src/components/template-part-converter/convert-to-template-part.js +3 -1
- package/src/components/test/error-boundary.js +38 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/template-part-edit.js +82 -0
- package/src/store/selectors.js +11 -5
- package/src/style.scss +0 -1
- package/build/components/edit-template-part-menu-button/index.js +0 -90
- package/build/components/edit-template-part-menu-button/index.js.map +0 -1
- package/build-module/components/edit-template-part-menu-button/index.js +0 -72
- package/build-module/components/edit-template-part-menu-button/index.js.map +0 -1
- package/src/components/edit-template-part-menu-button/index.js +0 -82
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/edit-site/src/store/selectors.js"],"names":["map","keyBy","createSelector","store","coreDataStore","createRegistrySelector","deprecated","uploadMedia","isTemplatePart","Platform","preferencesStore","MENU_ROOT","MENU_TEMPLATE_PARTS","MENU_TEMPLATES_UNUSED","TEMPLATE_PARTS_SUB_MENUS","getTemplateLocation","isTemplateSuperseded","__unstableGetPreference","select","state","name","get","isFeatureActive","featureName","since","alternative","__experimentalGetPreviewDeviceType","deviceType","getCanUserCreateMedia","canUser","getReusableBlocks","isWeb","OS","getEntityRecords","per_page","getSettings","setIsInserterOpen","settings","outlineMode","focusMode","hasFixedToolbar","keepCaretInsideBlock","showIconLabels","__experimentalSetIsInserterOpened","__experimentalReusableBlocks","__experimentalPreferPatternsOnRoot","getEditedPostType","canUserCreateMedia","mediaUpload","onError","rest","wpAllowedMimeTypes","allowedMimeTypes","message","getHomeTemplateId","homeTemplateId","getCurrentEditedPost","editedPost","type","getEditedPostId","id","getPage","page","getNavigationPanelActiveMenu","navigationPanel","menu","getCurrentTemplateNavigationPanelSubMenu","templateType","templateId","template","getEntityRecord","find","submenu","area","templates","showOnFront","getEditedEntityRecord","show_on_front","slug","isNavigationOpened","isOpen","isInserterOpened","blockInserterPanel","__experimentalGetInsertionPoint","rootClientId","insertionIndex","filterValue","isListViewOpened","listViewPanel","getCurrentTemplateTemplateParts","templateParts","templatePartsById","templatePart","blocks","filter","block","attributes","theme","templatePartId","getEditorMode"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,GAAT,EAAcC,KAAd,QAA2B,QAA3B;AACA,OAAOC,cAAP,MAA2B,QAA3B;AAEA;AACA;AACA;;AACA,SAASC,KAAK,I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aAAF,CAAN,CAAwB6B,gBAAxB,CACrB,UADqB,EAErB,kBAFqB,EAGrB;AAAEC,IAAAA,QAAQ,EAAE,CAAC;AAAb,GAHqB,CAAtB;AAKA,QAAMyD,iBAAiB,GAAG1F,KAAK,CAC9ByF,aAD8B,EAE5BE,YAAF,IAAoBA,YAAY,CAAChC,EAFH,CAA/B;AAKA,SAAO,qBAAES,QAAQ,CAACwB,MAAX,+DAAqB,EAArB,EACLC,MADK,CACKC,KAAF,IAAavF,cAAc,CAAEuF,KAAF,CAD9B,EAEL/F,GAFK,CAEE+F,KAAF,IAAa;AAClB,UAAM;AACLC,MAAAA,UAAU,EAAE;AAAEC,QAAAA,KAAF;AAASnB,QAAAA;AAAT;AADP,QAEFiB,KAFJ;AAGA,UAAMG,cAAc,GAAI,GAAGD,KAAO,KAAKnB,IAAM,EAA7C;AACA,UAAMc,YAAY,GAAGD,iBAAiB,CAAEO,cAAF,CAAtC;AAEA,WAAO;AACNN,MAAAA,YADM;AAENG,MAAAA;AAFM,KAAP;AAIA,GAbK,EAcLD,MAdK,CAcG;AAAA,QAAE;AAAEF,MAAAA;AAAF,KAAF;AAAA,WAAwB,CAAC,CAAEA,YAA3B;AAAA,GAdH,CAAP;AAeA,CAnCmE,CAA9D;AAsCP;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASO,aAAT,CAAwBhF,KAAxB,EAAgC;AACtC,SAAOF,uBAAuB,CAAEE,KAAF,EAAS,YAAT,CAA9B;AACA","sourcesContent":["/**\n * External dependencies\n */\nimport { map, keyBy } from 'lodash';\nimport createSelector from 'rememo';\n\n/**\n * WordPress dependencies\n */\nimport { store as coreDataStore } from '@wordpress/core-data';\nimport { createRegistrySelector } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { uploadMedia } from '@wordpress/media-utils';\nimport { isTemplatePart } from '@wordpress/blocks';\nimport { Platform } from '@wordpress/element';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport {\n\tMENU_ROOT,\n\tMENU_TEMPLATE_PARTS,\n\tMENU_TEMPLATES_UNUSED,\n\tTEMPLATE_PARTS_SUB_MENUS,\n} from '../components/navigation-sidebar/navigation-panel/constants';\nimport {\n\tgetTemplateLocation,\n\tisTemplateSuperseded,\n} from '../components/navigation-sidebar/navigation-panel/template-hierarchy';\n\n/**\n * @typedef {'template'|'template_type'} TemplateType Template type.\n */\n\n/**\n * Helper for getting a preference from the preferences store.\n *\n * This is only present so that `getSettings` doesn't need to be made a\n * registry selector.\n *\n * It's unstable because the selector needs to be exported and so part of the\n * public API to work.\n */\nexport const __unstableGetPreference = createRegistrySelector(\n\t( select ) => ( state, name ) =>\n\t\tselect( preferencesStore ).get( 'core/edit-site', name )\n);\n\n/**\n * Returns whether the given feature is enabled or not.\n *\n * @param {Object} state Global application state.\n * @param {string} featureName Feature slug.\n *\n * @return {boolean} Is active.\n */\nexport function isFeatureActive( state, featureName ) {\n\tdeprecated( `select( 'core/interface' ).isFeatureActive`, {\n\t\tsince: '6.0',\n\t\talternative: `select( 'core/preferences' ).get`,\n\t} );\n\n\treturn !! __unstableGetPreference( state, featureName );\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 whether the current user can create media or not.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Whether the current user can create media or not.\n */\nexport const getCanUserCreateMedia = createRegistrySelector(\n\t( select ) => () => select( coreDataStore ).canUser( 'create', 'media' )\n);\n\n/**\n * Returns any available Reusable blocks.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} The available reusable blocks.\n */\nexport const getReusableBlocks = createRegistrySelector( ( select ) => () => {\n\tconst isWeb = Platform.OS === 'web';\n\treturn isWeb\n\t\t? select( coreDataStore ).getEntityRecords( 'postType', 'wp_block', {\n\t\t\t\tper_page: -1,\n\t\t } )\n\t\t: [];\n} );\n\n/**\n * Returns the settings, taking into account active features and permissions.\n *\n * @param {Object} state Global application state.\n * @param {Function} setIsInserterOpen Setter for the open state of the global inserter.\n *\n * @return {Object} Settings.\n */\nexport const getSettings = createSelector(\n\t( state, setIsInserterOpen ) => {\n\t\tconst settings = {\n\t\t\t...state.settings,\n\t\t\toutlineMode: true,\n\t\t\tfocusMode: !! __unstableGetPreference( state, 'focusMode' ),\n\t\t\thasFixedToolbar: !! __unstableGetPreference(\n\t\t\t\tstate,\n\t\t\t\t'fixedToolbar'\n\t\t\t),\n\t\t\tkeepCaretInsideBlock: !! __unstableGetPreference(\n\t\t\t\tstate,\n\t\t\t\t'keepCaretInsideBlock'\n\t\t\t),\n\t\t\tshowIconLabels: !! __unstableGetPreference(\n\t\t\t\tstate,\n\t\t\t\t'showIconLabels'\n\t\t\t),\n\t\t\t__experimentalSetIsInserterOpened: setIsInserterOpen,\n\t\t\t__experimentalReusableBlocks: getReusableBlocks( state ),\n\t\t\t__experimentalPreferPatternsOnRoot:\n\t\t\t\t'wp_template' === getEditedPostType( state ),\n\t\t};\n\n\t\tconst canUserCreateMedia = getCanUserCreateMedia( state );\n\t\tif ( ! canUserCreateMedia ) {\n\t\t\treturn settings;\n\t\t}\n\n\t\tsettings.mediaUpload = ( { onError, ...rest } ) => {\n\t\t\tuploadMedia( {\n\t\t\t\twpAllowedMimeTypes: state.settings.allowedMimeTypes,\n\t\t\t\tonError: ( { message } ) => onError( message ),\n\t\t\t\t...rest,\n\t\t\t} );\n\t\t};\n\t\treturn settings;\n\t},\n\t( state ) => [\n\t\tgetCanUserCreateMedia( state ),\n\t\tstate.settings,\n\t\t__unstableGetPreference( state, 'focusMode' ),\n\t\t__unstableGetPreference( state, 'fixedToolbar' ),\n\t\t__unstableGetPreference( state, 'keepCaretInsideBlock' ),\n\t\t__unstableGetPreference( state, 'showIconLabels' ),\n\t\tgetReusableBlocks( state ),\n\t\tgetEditedPostType( state ),\n\t]\n);\n\n/**\n * Returns the current home template ID.\n *\n * @param {Object} state Global application state.\n *\n * @return {number?} Home template ID.\n */\nexport function getHomeTemplateId( state ) {\n\treturn state.homeTemplateId;\n}\n\nfunction getCurrentEditedPost( state ) {\n\treturn state.editedPost;\n}\n\n/**\n * Returns the current edited post type (wp_template or wp_template_part).\n *\n * @param {Object} state Global application state.\n *\n * @return {TemplateType?} Template type.\n */\nexport function getEditedPostType( state ) {\n\treturn getCurrentEditedPost( state ).type;\n}\n\n/**\n * Returns the ID of the currently edited template or template part.\n *\n * @param {Object} state Global application state.\n *\n * @return {string?} Post ID.\n */\nexport function getEditedPostId( state ) {\n\treturn getCurrentEditedPost( state ).id;\n}\n\n/**\n * Returns the current page object.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Page.\n */\nexport function getPage( state ) {\n\treturn getCurrentEditedPost( state ).page;\n}\n\n/**\n * Returns the active menu in the navigation panel.\n *\n * @param {Object} state Global application state.\n *\n * @return {string} Active menu.\n */\nexport function getNavigationPanelActiveMenu( state ) {\n\treturn state.navigationPanel.menu;\n}\n\n/**\n * Returns the current template or template part's corresponding\n * navigation panel's sub menu, to be used with `openNavigationPanelToMenu`.\n *\n * @param {Object} state Global application state.\n *\n * @return {string} The current template or template part's sub menu.\n */\nexport const getCurrentTemplateNavigationPanelSubMenu = createRegistrySelector(\n\t( select ) => ( state ) => {\n\t\tconst templateType = getEditedPostType( state );\n\t\tconst templateId = getEditedPostId( state );\n\t\tconst template = templateId\n\t\t\t? select( coreDataStore ).getEntityRecord(\n\t\t\t\t\t'postType',\n\t\t\t\t\ttemplateType,\n\t\t\t\t\ttemplateId\n\t\t\t )\n\t\t\t: null;\n\n\t\tif ( ! template ) {\n\t\t\treturn MENU_ROOT;\n\t\t}\n\n\t\tif ( 'wp_template_part' === templateType ) {\n\t\t\treturn (\n\t\t\t\tTEMPLATE_PARTS_SUB_MENUS.find(\n\t\t\t\t\t( submenu ) => submenu.area === template?.area\n\t\t\t\t)?.menu || MENU_TEMPLATE_PARTS\n\t\t\t);\n\t\t}\n\n\t\tconst templates = select( coreDataStore ).getEntityRecords(\n\t\t\t'postType',\n\t\t\t'wp_template'\n\t\t);\n\t\tconst showOnFront = select( coreDataStore ).getEditedEntityRecord(\n\t\t\t'root',\n\t\t\t'site'\n\t\t).show_on_front;\n\n\t\tif (\n\t\t\tisTemplateSuperseded(\n\t\t\t\ttemplate.slug,\n\t\t\t\tmap( templates, 'slug' ),\n\t\t\t\tshowOnFront\n\t\t\t)\n\t\t) {\n\t\t\treturn MENU_TEMPLATES_UNUSED;\n\t\t}\n\n\t\treturn getTemplateLocation( template.slug );\n\t}\n);\n\n/**\n * Returns the current opened/closed state of the navigation panel.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} True if the navigation panel should be open; false if closed.\n */\nexport function isNavigationOpened( state ) {\n\treturn state.navigationPanel.isOpen;\n}\n\n/**\n * Returns the current opened/closed state of the inserter panel.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} True if the inserter panel should be open; false if closed.\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 the current opened/closed state of the list view panel.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} True if the list view panel should be open; false if closed.\n */\nexport function isListViewOpened( state ) {\n\treturn state.listViewPanel;\n}\n\n/**\n * Returns the template parts and their blocks for the current edited template.\n *\n * @param {Object} state Global application state.\n * @return {Array} Template parts and their blocks in an array.\n */\nexport const getCurrentTemplateTemplateParts = createRegistrySelector(\n\t( select ) => ( state ) => {\n\t\tconst templateType = getEditedPostType( state );\n\t\tconst templateId = getEditedPostId( state );\n\t\tconst template = select( coreDataStore ).getEditedEntityRecord(\n\t\t\t'postType',\n\t\t\ttemplateType,\n\t\t\ttemplateId\n\t\t);\n\n\t\tconst templateParts = select( coreDataStore ).getEntityRecords(\n\t\t\t'postType',\n\t\t\t'wp_template_part',\n\t\t\t{ per_page: -1 }\n\t\t);\n\t\tconst templatePartsById = keyBy(\n\t\t\ttemplateParts,\n\t\t\t( templatePart ) => templatePart.id\n\t\t);\n\n\t\treturn ( template.blocks ?? [] )\n\t\t\t.filter( ( block ) => isTemplatePart( block ) )\n\t\t\t.map( ( block ) => {\n\t\t\t\tconst {\n\t\t\t\t\tattributes: { theme, slug },\n\t\t\t\t} = block;\n\t\t\t\tconst templatePartId = `${ theme }//${ slug }`;\n\t\t\t\tconst templatePart = templatePartsById[ templatePartId ];\n\n\t\t\t\treturn {\n\t\t\t\t\ttemplatePart,\n\t\t\t\t\tblock,\n\t\t\t\t};\n\t\t\t} )\n\t\t\t.filter( ( { templatePart } ) => !! templatePart );\n\t}\n);\n\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 __unstableGetPreference( state, 'editorMode' );\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["@wordpress/edit-site/src/store/selectors.js"],"names":["map","createSelector","store","coreDataStore","createRegistrySelector","deprecated","uploadMedia","isTemplatePart","Platform","preferencesStore","MENU_ROOT","MENU_TEMPLATE_PARTS","MENU_TEMPLATES_UNUSED","TEMPLATE_PARTS_SUB_MENUS","getTemplateLocation","isTemplateSuperseded","__unstableGetPreference","select","state","name","get","isFeatureActive","featureName","since","alternative","__experimentalGetPreviewDeviceType","deviceType","getCanUserCreateMedia","canUser","getReusableBlocks","isWeb","OS","getEntityRecords","per_page","getSettings","setIsInserterOpen","settings","outlineMode","focusMode","hasFixedToolbar","keepCaretInsideBlock","showIconLabels","__experimentalSetIsInserterOpened","__experimentalReusableBlocks","__experimentalPreferPatternsOnRoot","getEditedPostType","canUserCreateMedia","mediaUpload","onError","rest","wpAllowedMimeTypes","allowedMimeTypes","message","getHomeTemplateId","homeTemplateId","getCurrentEditedPost","editedPost","type","getEditedPostId","id","getPage","page","getNavigationPanelActiveMenu","navigationPanel","menu","getCurrentTemplateNavigationPanelSubMenu","templateType","templateId","template","getEntityRecord","find","submenu","area","templates","showOnFront","getEditedEntityRecord","show_on_front","slug","isNavigationOpened","isOpen","isInserterOpened","blockInserterPanel","__experimentalGetInsertionPoint","rootClientId","insertionIndex","filterValue","isListViewOpened","listViewPanel","getCurrentTemplateTemplateParts","templateParts","templatePartsById","reduce","newTemplateParts","part","blocks","filter","block","attributes","theme","templatePartId","templatePart","getEditorMode"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,GAAT,QAAoB,QAApB;AACA,OAAOC,cAAP,MAA2B,QAA3B;AAEA;AACA;AACA;;AACA,SAASC,KAAK,IAAIC,aAAlB,QAAuC,sBAAvC;AACA,SAASC,sBAAT,QAAuC,iBAAvC;AACA,OAAOC,UAAP,MAAuB,uBAAvB;AACA,SAASC,WAAT,QAA4B,wBAA5B;AACA,SAASC,cAAT,QAA+B,mBAA/B;AACA,SAASC,QAAT,QAAyB,oBAAzB;AACA,SAASN,KAAK,IAAIO,gBAAlB,QAA0C,wBAA1C;AAEA;AACA;AACA;;AACA,SACCC,SADD,EAECC,mBAFD,EAGCC,qBAHD,EAICC,wBAJD,QAKO,6DALP;AAMA,SACCC,mBADD,EAECC,oBAFD,QAGO,sEAHP;AAKA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,uBAAuB,GAAGZ,sBAAsB,CAC1Da,MAAF,IAAc,CAAEC,KAAF,EAASC,IAAT,KACbF,MAAM,CAAER,gBAAF,CAAN,CAA2BW,GAA3B,CAAgC,gBAAhC,EAAkDD,IAAlD,CAF2D,CAAtD;AAKP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASE,eAAT,CAA0BH,KAA1B,EAAiCI,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C;AAEA,WAAO;AACNC,MAAAA,YADM;AAENJ,MAAAA;AAFM,KAAP;AAIA,GAbK,EAcLD,MAdK,CAcG;AAAA,QAAE;AAAEK,MAAAA;AAAF,KAAF;AAAA,WAAwB,CAAC,CAAEA,YAA3B;AAAA,GAdH,CAAP;AAeA,CAzCmE,CAA9D;AA4CP;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASC,aAAT,CAAwBnF,KAAxB,EAAgC;AACtC,SAAOF,uBAAuB,CAAEE,KAAF,EAAS,YAAT,CAA9B;AACA","sourcesContent":["/**\n * External dependencies\n */\nimport { map } from 'lodash';\nimport createSelector from 'rememo';\n\n/**\n * WordPress dependencies\n */\nimport { store as coreDataStore } from '@wordpress/core-data';\nimport { createRegistrySelector } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { uploadMedia } from '@wordpress/media-utils';\nimport { isTemplatePart } from '@wordpress/blocks';\nimport { Platform } from '@wordpress/element';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport {\n\tMENU_ROOT,\n\tMENU_TEMPLATE_PARTS,\n\tMENU_TEMPLATES_UNUSED,\n\tTEMPLATE_PARTS_SUB_MENUS,\n} from '../components/navigation-sidebar/navigation-panel/constants';\nimport {\n\tgetTemplateLocation,\n\tisTemplateSuperseded,\n} from '../components/navigation-sidebar/navigation-panel/template-hierarchy';\n\n/**\n * @typedef {'template'|'template_type'} TemplateType Template type.\n */\n\n/**\n * Helper for getting a preference from the preferences store.\n *\n * This is only present so that `getSettings` doesn't need to be made a\n * registry selector.\n *\n * It's unstable because the selector needs to be exported and so part of the\n * public API to work.\n */\nexport const __unstableGetPreference = createRegistrySelector(\n\t( select ) => ( state, name ) =>\n\t\tselect( preferencesStore ).get( 'core/edit-site', name )\n);\n\n/**\n * Returns whether the given feature is enabled or not.\n *\n * @param {Object} state Global application state.\n * @param {string} featureName Feature slug.\n *\n * @return {boolean} Is active.\n */\nexport function isFeatureActive( state, featureName ) {\n\tdeprecated( `select( 'core/interface' ).isFeatureActive`, {\n\t\tsince: '6.0',\n\t\talternative: `select( 'core/preferences' ).get`,\n\t} );\n\n\treturn !! __unstableGetPreference( state, featureName );\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 whether the current user can create media or not.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Whether the current user can create media or not.\n */\nexport const getCanUserCreateMedia = createRegistrySelector(\n\t( select ) => () => select( coreDataStore ).canUser( 'create', 'media' )\n);\n\n/**\n * Returns any available Reusable blocks.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} The available reusable blocks.\n */\nexport const getReusableBlocks = createRegistrySelector( ( select ) => () => {\n\tconst isWeb = Platform.OS === 'web';\n\treturn isWeb\n\t\t? select( coreDataStore ).getEntityRecords( 'postType', 'wp_block', {\n\t\t\t\tper_page: -1,\n\t\t } )\n\t\t: [];\n} );\n\n/**\n * Returns the settings, taking into account active features and permissions.\n *\n * @param {Object} state Global application state.\n * @param {Function} setIsInserterOpen Setter for the open state of the global inserter.\n *\n * @return {Object} Settings.\n */\nexport const getSettings = createSelector(\n\t( state, setIsInserterOpen ) => {\n\t\tconst settings = {\n\t\t\t...state.settings,\n\t\t\toutlineMode: true,\n\t\t\tfocusMode: !! __unstableGetPreference( state, 'focusMode' ),\n\t\t\thasFixedToolbar: !! __unstableGetPreference(\n\t\t\t\tstate,\n\t\t\t\t'fixedToolbar'\n\t\t\t),\n\t\t\tkeepCaretInsideBlock: !! __unstableGetPreference(\n\t\t\t\tstate,\n\t\t\t\t'keepCaretInsideBlock'\n\t\t\t),\n\t\t\tshowIconLabels: !! __unstableGetPreference(\n\t\t\t\tstate,\n\t\t\t\t'showIconLabels'\n\t\t\t),\n\t\t\t__experimentalSetIsInserterOpened: setIsInserterOpen,\n\t\t\t__experimentalReusableBlocks: getReusableBlocks( state ),\n\t\t\t__experimentalPreferPatternsOnRoot:\n\t\t\t\t'wp_template' === getEditedPostType( state ),\n\t\t};\n\n\t\tconst canUserCreateMedia = getCanUserCreateMedia( state );\n\t\tif ( ! canUserCreateMedia ) {\n\t\t\treturn settings;\n\t\t}\n\n\t\tsettings.mediaUpload = ( { onError, ...rest } ) => {\n\t\t\tuploadMedia( {\n\t\t\t\twpAllowedMimeTypes: state.settings.allowedMimeTypes,\n\t\t\t\tonError: ( { message } ) => onError( message ),\n\t\t\t\t...rest,\n\t\t\t} );\n\t\t};\n\t\treturn settings;\n\t},\n\t( state ) => [\n\t\tgetCanUserCreateMedia( state ),\n\t\tstate.settings,\n\t\t__unstableGetPreference( state, 'focusMode' ),\n\t\t__unstableGetPreference( state, 'fixedToolbar' ),\n\t\t__unstableGetPreference( state, 'keepCaretInsideBlock' ),\n\t\t__unstableGetPreference( state, 'showIconLabels' ),\n\t\tgetReusableBlocks( state ),\n\t\tgetEditedPostType( state ),\n\t]\n);\n\n/**\n * Returns the current home template ID.\n *\n * @param {Object} state Global application state.\n *\n * @return {number?} Home template ID.\n */\nexport function getHomeTemplateId( state ) {\n\treturn state.homeTemplateId;\n}\n\nfunction getCurrentEditedPost( state ) {\n\treturn state.editedPost;\n}\n\n/**\n * Returns the current edited post type (wp_template or wp_template_part).\n *\n * @param {Object} state Global application state.\n *\n * @return {TemplateType?} Template type.\n */\nexport function getEditedPostType( state ) {\n\treturn getCurrentEditedPost( state ).type;\n}\n\n/**\n * Returns the ID of the currently edited template or template part.\n *\n * @param {Object} state Global application state.\n *\n * @return {string?} Post ID.\n */\nexport function getEditedPostId( state ) {\n\treturn getCurrentEditedPost( state ).id;\n}\n\n/**\n * Returns the current page object.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Page.\n */\nexport function getPage( state ) {\n\treturn getCurrentEditedPost( state ).page;\n}\n\n/**\n * Returns the active menu in the navigation panel.\n *\n * @param {Object} state Global application state.\n *\n * @return {string} Active menu.\n */\nexport function getNavigationPanelActiveMenu( state ) {\n\treturn state.navigationPanel.menu;\n}\n\n/**\n * Returns the current template or template part's corresponding\n * navigation panel's sub menu, to be used with `openNavigationPanelToMenu`.\n *\n * @param {Object} state Global application state.\n *\n * @return {string} The current template or template part's sub menu.\n */\nexport const getCurrentTemplateNavigationPanelSubMenu = createRegistrySelector(\n\t( select ) => ( state ) => {\n\t\tconst templateType = getEditedPostType( state );\n\t\tconst templateId = getEditedPostId( state );\n\t\tconst template = templateId\n\t\t\t? select( coreDataStore ).getEntityRecord(\n\t\t\t\t\t'postType',\n\t\t\t\t\ttemplateType,\n\t\t\t\t\ttemplateId\n\t\t\t )\n\t\t\t: null;\n\n\t\tif ( ! template ) {\n\t\t\treturn MENU_ROOT;\n\t\t}\n\n\t\tif ( 'wp_template_part' === templateType ) {\n\t\t\treturn (\n\t\t\t\tTEMPLATE_PARTS_SUB_MENUS.find(\n\t\t\t\t\t( submenu ) => submenu.area === template?.area\n\t\t\t\t)?.menu || MENU_TEMPLATE_PARTS\n\t\t\t);\n\t\t}\n\n\t\tconst templates = select( coreDataStore ).getEntityRecords(\n\t\t\t'postType',\n\t\t\t'wp_template'\n\t\t);\n\t\tconst showOnFront = select( coreDataStore ).getEditedEntityRecord(\n\t\t\t'root',\n\t\t\t'site'\n\t\t).show_on_front;\n\n\t\tif (\n\t\t\tisTemplateSuperseded(\n\t\t\t\ttemplate.slug,\n\t\t\t\tmap( templates, 'slug' ),\n\t\t\t\tshowOnFront\n\t\t\t)\n\t\t) {\n\t\t\treturn MENU_TEMPLATES_UNUSED;\n\t\t}\n\n\t\treturn getTemplateLocation( template.slug );\n\t}\n);\n\n/**\n * Returns the current opened/closed state of the navigation panel.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} True if the navigation panel should be open; false if closed.\n */\nexport function isNavigationOpened( state ) {\n\treturn state.navigationPanel.isOpen;\n}\n\n/**\n * Returns the current opened/closed state of the inserter panel.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} True if the inserter panel should be open; false if closed.\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 the current opened/closed state of the list view panel.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} True if the list view panel should be open; false if closed.\n */\nexport function isListViewOpened( state ) {\n\treturn state.listViewPanel;\n}\n\n/**\n * Returns the template parts and their blocks for the current edited template.\n *\n * @param {Object} state Global application state.\n * @return {Array} Template parts and their blocks in an array.\n */\nexport const getCurrentTemplateTemplateParts = createRegistrySelector(\n\t( select ) => ( state ) => {\n\t\tconst templateType = getEditedPostType( state );\n\t\tconst templateId = getEditedPostId( state );\n\t\tconst template = select( coreDataStore ).getEditedEntityRecord(\n\t\t\t'postType',\n\t\t\ttemplateType,\n\t\t\ttemplateId\n\t\t);\n\n\t\tconst templateParts = select( coreDataStore ).getEntityRecords(\n\t\t\t'postType',\n\t\t\t'wp_template_part',\n\t\t\t{ per_page: -1 }\n\t\t);\n\t\tconst templatePartsById = templateParts\n\t\t\t? // Key template parts by their ID.\n\t\t\t templateParts.reduce(\n\t\t\t\t\t( newTemplateParts, part ) => ( {\n\t\t\t\t\t\t...newTemplateParts,\n\t\t\t\t\t\t[ part.id ]: part,\n\t\t\t\t\t} ),\n\t\t\t\t\t{}\n\t\t\t )\n\t\t\t: {};\n\n\t\treturn ( template.blocks ?? [] )\n\t\t\t.filter( ( block ) => isTemplatePart( block ) )\n\t\t\t.map( ( block ) => {\n\t\t\t\tconst {\n\t\t\t\t\tattributes: { theme, slug },\n\t\t\t\t} = block;\n\t\t\t\tconst templatePartId = `${ theme }//${ slug }`;\n\t\t\t\tconst templatePart = templatePartsById[ templatePartId ];\n\n\t\t\t\treturn {\n\t\t\t\t\ttemplatePart,\n\t\t\t\t\tblock,\n\t\t\t\t};\n\t\t\t} )\n\t\t\t.filter( ( { templatePart } ) => !! templatePart );\n\t}\n);\n\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 __unstableGetPreference( state, 'editorMode' );\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 {
|
|
@@ -725,6 +722,11 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
725
722
|
border-radius: 2px;
|
|
726
723
|
}
|
|
727
724
|
|
|
725
|
+
.edit-site-typography-panel__half-width-control {
|
|
726
|
+
width: calc((100% - 24px) / 2);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.edit-site-global-styles-screen-heading-color,
|
|
728
730
|
.edit-site-global-styles-screen-typography {
|
|
729
731
|
margin: 16px;
|
|
730
732
|
}
|
|
@@ -744,6 +746,7 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
744
746
|
}
|
|
745
747
|
.edit-site-global-styles-screen-colors .component-color-indicator {
|
|
746
748
|
background: linear-gradient(45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
|
|
749
|
+
flex-shrink: 0;
|
|
747
750
|
}
|
|
748
751
|
|
|
749
752
|
.edit-site-global-styles-header__description,
|
|
@@ -767,19 +770,9 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
767
770
|
margin: 0;
|
|
768
771
|
}
|
|
769
772
|
|
|
770
|
-
.edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle {
|
|
771
|
-
margin-left: 16px;
|
|
772
|
-
margin-right: 16px;
|
|
773
|
-
width: unset;
|
|
774
|
-
}
|
|
775
|
-
.edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle .components-toggle-group-control {
|
|
776
|
-
min-height: 32px;
|
|
777
|
-
}
|
|
778
|
-
|
|
779
773
|
.edit-site-screen-text-color__control,
|
|
780
774
|
.edit-site-screen-link-color__control,
|
|
781
|
-
.edit-site-screen-button-color__control
|
|
782
|
-
.edit-site-screen-background-color__control {
|
|
775
|
+
.edit-site-screen-button-color__control {
|
|
783
776
|
padding: 16px;
|
|
784
777
|
}
|
|
785
778
|
|
|
@@ -807,6 +800,13 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
807
800
|
|
|
808
801
|
.edit-site-global-styles__color-indicator-wrapper {
|
|
809
802
|
height: 24px;
|
|
803
|
+
flex-shrink: 0;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.edit-site-global-styles__color-label {
|
|
807
|
+
white-space: nowrap;
|
|
808
|
+
overflow: hidden;
|
|
809
|
+
text-overflow: ellipsis;
|
|
810
810
|
}
|
|
811
811
|
|
|
812
812
|
.edit-site-header {
|
|
@@ -1010,14 +1010,13 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
1010
1010
|
padding-right: 6px;
|
|
1011
1011
|
padding-left: 6px;
|
|
1012
1012
|
}
|
|
1013
|
+
.show-icon-labels .edit-site-header .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info::after {
|
|
1014
|
+
content: none;
|
|
1015
|
+
}
|
|
1013
1016
|
.show-icon-labels .edit-site-header .edit-site-header-toolbar__inserter-toggle.edit-site-header-toolbar__inserter-toggle,
|
|
1014
1017
|
.show-icon-labels .edit-site-header .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info {
|
|
1015
1018
|
height: 36px;
|
|
1016
|
-
padding: 0
|
|
1017
|
-
}
|
|
1018
|
-
.show-icon-labels .edit-site-header .edit-site-header-toolbar__inserter-toggle.edit-site-header-toolbar__inserter-toggle::after,
|
|
1019
|
-
.show-icon-labels .edit-site-header .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info::after {
|
|
1020
|
-
content: none;
|
|
1019
|
+
padding: 0 8px;
|
|
1021
1020
|
}
|
|
1022
1021
|
.show-icon-labels .edit-site-header .edit-site-header_start .edit-site-header__toolbar > * + * {
|
|
1023
1022
|
margin-right: 8px;
|
|
@@ -1430,12 +1429,6 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1430
1429
|
width: 320px;
|
|
1431
1430
|
}
|
|
1432
1431
|
}
|
|
1433
|
-
.edit-site-list__rename-modal .components-modal__header {
|
|
1434
|
-
border-bottom: none;
|
|
1435
|
-
}
|
|
1436
|
-
.edit-site-list__rename-modal .components-modal__content::before {
|
|
1437
|
-
margin-bottom: 4px;
|
|
1438
|
-
}
|
|
1439
1432
|
|
|
1440
1433
|
.edit-site-list__rename-modal-actions {
|
|
1441
1434
|
margin-top: 12px;
|
|
@@ -1505,30 +1498,36 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1505
1498
|
}
|
|
1506
1499
|
}
|
|
1507
1500
|
|
|
1508
|
-
.edit-site-custom-template-modal__contents >
|
|
1509
|
-
text-align: center;
|
|
1510
|
-
cursor: pointer;
|
|
1501
|
+
.edit-site-custom-template-modal__contents > .components-button {
|
|
1511
1502
|
padding: 24px;
|
|
1512
|
-
|
|
1503
|
+
box-shadow: inset 0 0 0 1px #949494;
|
|
1513
1504
|
border-radius: 2px;
|
|
1514
1505
|
width: 256px;
|
|
1506
|
+
height: auto;
|
|
1515
1507
|
display: flex;
|
|
1516
1508
|
flex-direction: column;
|
|
1517
1509
|
gap: 8px;
|
|
1518
|
-
|
|
1519
|
-
|
|
1510
|
+
outline: 1px solid transparent;
|
|
1511
|
+
}
|
|
1512
|
+
.edit-site-custom-template-modal__contents > .components-button span:first-child {
|
|
1513
|
+
color: #1e1e1e;
|
|
1520
1514
|
}
|
|
1521
|
-
.edit-site-custom-template-modal__contents >
|
|
1515
|
+
.edit-site-custom-template-modal__contents > .components-button span {
|
|
1522
1516
|
color: #757575;
|
|
1523
1517
|
}
|
|
1524
|
-
.edit-site-custom-template-modal__contents >
|
|
1525
|
-
|
|
1518
|
+
.edit-site-custom-template-modal__contents > .components-button:hover {
|
|
1519
|
+
color: var(--wp-admin-theme-color-darker-10);
|
|
1520
|
+
box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color-darker-10);
|
|
1526
1521
|
}
|
|
1527
|
-
.edit-site-custom-template-modal__contents >
|
|
1522
|
+
.edit-site-custom-template-modal__contents > .components-button:hover span:first-child {
|
|
1528
1523
|
color: var(--wp-admin-theme-color);
|
|
1529
1524
|
}
|
|
1530
|
-
.edit-site-custom-template-modal__contents >
|
|
1525
|
+
.edit-site-custom-template-modal__contents > .components-button:focus {
|
|
1531
1526
|
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1527
|
+
outline: 3px solid transparent;
|
|
1528
|
+
}
|
|
1529
|
+
.edit-site-custom-template-modal__contents > .components-button:focus span:first-child {
|
|
1530
|
+
color: var(--wp-admin-theme-color);
|
|
1532
1531
|
}
|
|
1533
1532
|
.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input {
|
|
1534
1533
|
background: #fff;
|
|
@@ -1601,6 +1600,22 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1601
1600
|
margin-top: 16px;
|
|
1602
1601
|
}
|
|
1603
1602
|
|
|
1603
|
+
@media (min-width: 782px) {
|
|
1604
|
+
.edit-site-custom-generic-template__modal .components-base-control {
|
|
1605
|
+
width: 320px;
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
.edit-site-custom-generic-template__modal .components-modal__header {
|
|
1609
|
+
border-bottom: none;
|
|
1610
|
+
}
|
|
1611
|
+
.edit-site-custom-generic-template__modal .components-modal__content::before {
|
|
1612
|
+
margin-bottom: 4px;
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
.edit-site-custom-generic-template__modal-actions {
|
|
1616
|
+
margin-top: 12px;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1604
1619
|
.edit-site-sidebar {
|
|
1605
1620
|
width: 280px;
|
|
1606
1621
|
}
|
|
@@ -1657,6 +1672,10 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1657
1672
|
grid-column: span 1;
|
|
1658
1673
|
}
|
|
1659
1674
|
|
|
1675
|
+
.edit-site-global-styles-sidebar .components-tools-panel .span-columns {
|
|
1676
|
+
grid-column: 1/-1;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1660
1679
|
.edit-site-global-styles-sidebar__blocks-group {
|
|
1661
1680
|
padding-top: 24px;
|
|
1662
1681
|
border-top: 1px solid #e0e0e0;
|
|
@@ -2138,9 +2157,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2138
2157
|
.edit-site-keyboard-shortcut-help-modal__section {
|
|
2139
2158
|
margin: 0 0 2rem 0;
|
|
2140
2159
|
}
|
|
2141
|
-
.edit-site-keyboard-shortcut-help-modal__main-shortcuts .edit-site-keyboard-shortcut-help-modal__shortcut-list {
|
|
2142
|
-
margin-top: -25px;
|
|
2143
|
-
}
|
|
2144
2160
|
.edit-site-keyboard-shortcut-help-modal__section-title {
|
|
2145
2161
|
font-size: 0.9rem;
|
|
2146
2162
|
font-weight: 600;
|
|
@@ -2190,40 +2206,31 @@ html.wp-toolbar {
|
|
|
2190
2206
|
background: #fff;
|
|
2191
2207
|
}
|
|
2192
2208
|
|
|
2193
|
-
body.appearance_page_gutenberg-edit-site,
|
|
2194
2209
|
body.site-editor-php {
|
|
2195
2210
|
background: #fff;
|
|
2196
2211
|
/* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
|
|
2197
2212
|
Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
|
|
2198
2213
|
}
|
|
2199
|
-
body.appearance_page_gutenberg-edit-site #wpcontent,
|
|
2200
2214
|
body.site-editor-php #wpcontent {
|
|
2201
2215
|
padding-right: 0;
|
|
2202
2216
|
}
|
|
2203
|
-
body.appearance_page_gutenberg-edit-site #wpbody-content,
|
|
2204
2217
|
body.site-editor-php #wpbody-content {
|
|
2205
2218
|
padding-bottom: 0;
|
|
2206
2219
|
}
|
|
2207
|
-
body.appearance_page_gutenberg-edit-site #wpbody-content > div:not(.edit-site):not(#screen-meta),
|
|
2208
2220
|
body.site-editor-php #wpbody-content > div:not(.edit-site):not(#screen-meta) {
|
|
2209
2221
|
display: none;
|
|
2210
2222
|
}
|
|
2211
|
-
body.appearance_page_gutenberg-edit-site #wpfooter,
|
|
2212
2223
|
body.site-editor-php #wpfooter {
|
|
2213
2224
|
display: none;
|
|
2214
2225
|
}
|
|
2215
|
-
body.appearance_page_gutenberg-edit-site .a11y-speak-region,
|
|
2216
2226
|
body.site-editor-php .a11y-speak-region {
|
|
2217
2227
|
right: -1px;
|
|
2218
2228
|
top: -1px;
|
|
2219
2229
|
}
|
|
2220
|
-
body.appearance_page_gutenberg-edit-site ul#adminmenu a.wp-has-current-submenu::after,
|
|
2221
|
-
body.appearance_page_gutenberg-edit-site ul#adminmenu > li.current > a.current::after,
|
|
2222
2230
|
body.site-editor-php ul#adminmenu a.wp-has-current-submenu::after,
|
|
2223
2231
|
body.site-editor-php ul#adminmenu > li.current > a.current::after {
|
|
2224
2232
|
border-left-color: #fff;
|
|
2225
2233
|
}
|
|
2226
|
-
body.appearance_page_gutenberg-edit-site .media-frame select.attachment-filters:last-of-type,
|
|
2227
2234
|
body.site-editor-php .media-frame select.attachment-filters:last-of-type {
|
|
2228
2235
|
width: auto;
|
|
2229
2236
|
max-width: 100%;
|
package/build-style/style.css
CHANGED
|
@@ -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 {
|
|
@@ -725,6 +722,11 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
725
722
|
border-radius: 2px;
|
|
726
723
|
}
|
|
727
724
|
|
|
725
|
+
.edit-site-typography-panel__half-width-control {
|
|
726
|
+
width: calc((100% - 24px) / 2);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.edit-site-global-styles-screen-heading-color,
|
|
728
730
|
.edit-site-global-styles-screen-typography {
|
|
729
731
|
margin: 16px;
|
|
730
732
|
}
|
|
@@ -744,6 +746,7 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
744
746
|
}
|
|
745
747
|
.edit-site-global-styles-screen-colors .component-color-indicator {
|
|
746
748
|
background: linear-gradient(-45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
|
|
749
|
+
flex-shrink: 0;
|
|
747
750
|
}
|
|
748
751
|
|
|
749
752
|
.edit-site-global-styles-header__description,
|
|
@@ -767,19 +770,9 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
767
770
|
margin: 0;
|
|
768
771
|
}
|
|
769
772
|
|
|
770
|
-
.edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle {
|
|
771
|
-
margin-right: 16px;
|
|
772
|
-
margin-left: 16px;
|
|
773
|
-
width: unset;
|
|
774
|
-
}
|
|
775
|
-
.edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle .components-toggle-group-control {
|
|
776
|
-
min-height: 32px;
|
|
777
|
-
}
|
|
778
|
-
|
|
779
773
|
.edit-site-screen-text-color__control,
|
|
780
774
|
.edit-site-screen-link-color__control,
|
|
781
|
-
.edit-site-screen-button-color__control
|
|
782
|
-
.edit-site-screen-background-color__control {
|
|
775
|
+
.edit-site-screen-button-color__control {
|
|
783
776
|
padding: 16px;
|
|
784
777
|
}
|
|
785
778
|
|
|
@@ -807,6 +800,13 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
807
800
|
|
|
808
801
|
.edit-site-global-styles__color-indicator-wrapper {
|
|
809
802
|
height: 24px;
|
|
803
|
+
flex-shrink: 0;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.edit-site-global-styles__color-label {
|
|
807
|
+
white-space: nowrap;
|
|
808
|
+
overflow: hidden;
|
|
809
|
+
text-overflow: ellipsis;
|
|
810
810
|
}
|
|
811
811
|
|
|
812
812
|
.edit-site-header {
|
|
@@ -1010,14 +1010,13 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
1010
1010
|
padding-left: 6px;
|
|
1011
1011
|
padding-right: 6px;
|
|
1012
1012
|
}
|
|
1013
|
+
.show-icon-labels .edit-site-header .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info::after {
|
|
1014
|
+
content: none;
|
|
1015
|
+
}
|
|
1013
1016
|
.show-icon-labels .edit-site-header .edit-site-header-toolbar__inserter-toggle.edit-site-header-toolbar__inserter-toggle,
|
|
1014
1017
|
.show-icon-labels .edit-site-header .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info {
|
|
1015
1018
|
height: 36px;
|
|
1016
|
-
padding: 0
|
|
1017
|
-
}
|
|
1018
|
-
.show-icon-labels .edit-site-header .edit-site-header-toolbar__inserter-toggle.edit-site-header-toolbar__inserter-toggle::after,
|
|
1019
|
-
.show-icon-labels .edit-site-header .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info::after {
|
|
1020
|
-
content: none;
|
|
1019
|
+
padding: 0 8px;
|
|
1021
1020
|
}
|
|
1022
1021
|
.show-icon-labels .edit-site-header .edit-site-header_start .edit-site-header__toolbar > * + * {
|
|
1023
1022
|
margin-left: 8px;
|
|
@@ -1430,12 +1429,6 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1430
1429
|
width: 320px;
|
|
1431
1430
|
}
|
|
1432
1431
|
}
|
|
1433
|
-
.edit-site-list__rename-modal .components-modal__header {
|
|
1434
|
-
border-bottom: none;
|
|
1435
|
-
}
|
|
1436
|
-
.edit-site-list__rename-modal .components-modal__content::before {
|
|
1437
|
-
margin-bottom: 4px;
|
|
1438
|
-
}
|
|
1439
1432
|
|
|
1440
1433
|
.edit-site-list__rename-modal-actions {
|
|
1441
1434
|
margin-top: 12px;
|
|
@@ -1505,30 +1498,36 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1505
1498
|
}
|
|
1506
1499
|
}
|
|
1507
1500
|
|
|
1508
|
-
.edit-site-custom-template-modal__contents >
|
|
1509
|
-
text-align: center;
|
|
1510
|
-
cursor: pointer;
|
|
1501
|
+
.edit-site-custom-template-modal__contents > .components-button {
|
|
1511
1502
|
padding: 24px;
|
|
1512
|
-
|
|
1503
|
+
box-shadow: inset 0 0 0 1px #949494;
|
|
1513
1504
|
border-radius: 2px;
|
|
1514
1505
|
width: 256px;
|
|
1506
|
+
height: auto;
|
|
1515
1507
|
display: flex;
|
|
1516
1508
|
flex-direction: column;
|
|
1517
1509
|
gap: 8px;
|
|
1518
|
-
|
|
1519
|
-
|
|
1510
|
+
outline: 1px solid transparent;
|
|
1511
|
+
}
|
|
1512
|
+
.edit-site-custom-template-modal__contents > .components-button span:first-child {
|
|
1513
|
+
color: #1e1e1e;
|
|
1520
1514
|
}
|
|
1521
|
-
.edit-site-custom-template-modal__contents >
|
|
1515
|
+
.edit-site-custom-template-modal__contents > .components-button span {
|
|
1522
1516
|
color: #757575;
|
|
1523
1517
|
}
|
|
1524
|
-
.edit-site-custom-template-modal__contents >
|
|
1525
|
-
|
|
1518
|
+
.edit-site-custom-template-modal__contents > .components-button:hover {
|
|
1519
|
+
color: var(--wp-admin-theme-color-darker-10);
|
|
1520
|
+
box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color-darker-10);
|
|
1526
1521
|
}
|
|
1527
|
-
.edit-site-custom-template-modal__contents >
|
|
1522
|
+
.edit-site-custom-template-modal__contents > .components-button:hover span:first-child {
|
|
1528
1523
|
color: var(--wp-admin-theme-color);
|
|
1529
1524
|
}
|
|
1530
|
-
.edit-site-custom-template-modal__contents >
|
|
1525
|
+
.edit-site-custom-template-modal__contents > .components-button:focus {
|
|
1531
1526
|
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1527
|
+
outline: 3px solid transparent;
|
|
1528
|
+
}
|
|
1529
|
+
.edit-site-custom-template-modal__contents > .components-button:focus span:first-child {
|
|
1530
|
+
color: var(--wp-admin-theme-color);
|
|
1532
1531
|
}
|
|
1533
1532
|
.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input {
|
|
1534
1533
|
background: #fff;
|
|
@@ -1601,6 +1600,22 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1601
1600
|
margin-top: 16px;
|
|
1602
1601
|
}
|
|
1603
1602
|
|
|
1603
|
+
@media (min-width: 782px) {
|
|
1604
|
+
.edit-site-custom-generic-template__modal .components-base-control {
|
|
1605
|
+
width: 320px;
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
.edit-site-custom-generic-template__modal .components-modal__header {
|
|
1609
|
+
border-bottom: none;
|
|
1610
|
+
}
|
|
1611
|
+
.edit-site-custom-generic-template__modal .components-modal__content::before {
|
|
1612
|
+
margin-bottom: 4px;
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
.edit-site-custom-generic-template__modal-actions {
|
|
1616
|
+
margin-top: 12px;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1604
1619
|
.edit-site-sidebar {
|
|
1605
1620
|
width: 280px;
|
|
1606
1621
|
}
|
|
@@ -1657,6 +1672,10 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1657
1672
|
grid-column: span 1;
|
|
1658
1673
|
}
|
|
1659
1674
|
|
|
1675
|
+
.edit-site-global-styles-sidebar .components-tools-panel .span-columns {
|
|
1676
|
+
grid-column: 1/-1;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1660
1679
|
.edit-site-global-styles-sidebar__blocks-group {
|
|
1661
1680
|
padding-top: 24px;
|
|
1662
1681
|
border-top: 1px solid #e0e0e0;
|
|
@@ -2138,9 +2157,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2138
2157
|
.edit-site-keyboard-shortcut-help-modal__section {
|
|
2139
2158
|
margin: 0 0 2rem 0;
|
|
2140
2159
|
}
|
|
2141
|
-
.edit-site-keyboard-shortcut-help-modal__main-shortcuts .edit-site-keyboard-shortcut-help-modal__shortcut-list {
|
|
2142
|
-
margin-top: -25px;
|
|
2143
|
-
}
|
|
2144
2160
|
.edit-site-keyboard-shortcut-help-modal__section-title {
|
|
2145
2161
|
font-size: 0.9rem;
|
|
2146
2162
|
font-weight: 600;
|
|
@@ -2190,40 +2206,31 @@ html.wp-toolbar {
|
|
|
2190
2206
|
background: #fff;
|
|
2191
2207
|
}
|
|
2192
2208
|
|
|
2193
|
-
body.appearance_page_gutenberg-edit-site,
|
|
2194
2209
|
body.site-editor-php {
|
|
2195
2210
|
background: #fff;
|
|
2196
2211
|
/* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
|
|
2197
2212
|
Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
|
|
2198
2213
|
}
|
|
2199
|
-
body.appearance_page_gutenberg-edit-site #wpcontent,
|
|
2200
2214
|
body.site-editor-php #wpcontent {
|
|
2201
2215
|
padding-left: 0;
|
|
2202
2216
|
}
|
|
2203
|
-
body.appearance_page_gutenberg-edit-site #wpbody-content,
|
|
2204
2217
|
body.site-editor-php #wpbody-content {
|
|
2205
2218
|
padding-bottom: 0;
|
|
2206
2219
|
}
|
|
2207
|
-
body.appearance_page_gutenberg-edit-site #wpbody-content > div:not(.edit-site):not(#screen-meta),
|
|
2208
2220
|
body.site-editor-php #wpbody-content > div:not(.edit-site):not(#screen-meta) {
|
|
2209
2221
|
display: none;
|
|
2210
2222
|
}
|
|
2211
|
-
body.appearance_page_gutenberg-edit-site #wpfooter,
|
|
2212
2223
|
body.site-editor-php #wpfooter {
|
|
2213
2224
|
display: none;
|
|
2214
2225
|
}
|
|
2215
|
-
body.appearance_page_gutenberg-edit-site .a11y-speak-region,
|
|
2216
2226
|
body.site-editor-php .a11y-speak-region {
|
|
2217
2227
|
left: -1px;
|
|
2218
2228
|
top: -1px;
|
|
2219
2229
|
}
|
|
2220
|
-
body.appearance_page_gutenberg-edit-site ul#adminmenu a.wp-has-current-submenu::after,
|
|
2221
|
-
body.appearance_page_gutenberg-edit-site ul#adminmenu > li.current > a.current::after,
|
|
2222
2230
|
body.site-editor-php ul#adminmenu a.wp-has-current-submenu::after,
|
|
2223
2231
|
body.site-editor-php ul#adminmenu > li.current > a.current::after {
|
|
2224
2232
|
border-right-color: #fff;
|
|
2225
2233
|
}
|
|
2226
|
-
body.appearance_page_gutenberg-edit-site .media-frame select.attachment-filters:last-of-type,
|
|
2227
2234
|
body.site-editor-php .media-frame select.attachment-filters:last-of-type {
|
|
2228
2235
|
width: auto;
|
|
2229
2236
|
max-width: 100%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.0",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -27,33 +27,33 @@
|
|
|
27
27
|
"react-native": "src/index",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/runtime": "^7.16.0",
|
|
30
|
-
"@wordpress/a11y": "^3.
|
|
31
|
-
"@wordpress/api-fetch": "^6.
|
|
32
|
-
"@wordpress/block-editor": "^9.
|
|
33
|
-
"@wordpress/block-library": "^7.
|
|
34
|
-
"@wordpress/blocks": "^11.
|
|
35
|
-
"@wordpress/components": "^19.
|
|
36
|
-
"@wordpress/compose": "^5.
|
|
37
|
-
"@wordpress/core-data": "^4.
|
|
38
|
-
"@wordpress/data": "^6.
|
|
39
|
-
"@wordpress/deprecated": "^3.
|
|
40
|
-
"@wordpress/editor": "^12.
|
|
41
|
-
"@wordpress/element": "^4.
|
|
42
|
-
"@wordpress/hooks": "^3.
|
|
43
|
-
"@wordpress/html-entities": "^3.
|
|
44
|
-
"@wordpress/i18n": "^4.
|
|
45
|
-
"@wordpress/icons": "^9.
|
|
46
|
-
"@wordpress/interface": "^4.
|
|
47
|
-
"@wordpress/keyboard-shortcuts": "^3.
|
|
48
|
-
"@wordpress/keycodes": "^3.
|
|
49
|
-
"@wordpress/media-utils": "^4.
|
|
50
|
-
"@wordpress/notices": "^3.
|
|
51
|
-
"@wordpress/plugins": "^4.
|
|
52
|
-
"@wordpress/preferences": "^2.
|
|
53
|
-
"@wordpress/reusable-blocks": "^3.
|
|
54
|
-
"@wordpress/style-engine": "^0.
|
|
55
|
-
"@wordpress/url": "^3.
|
|
56
|
-
"@wordpress/viewport": "^4.
|
|
30
|
+
"@wordpress/a11y": "^3.15.0",
|
|
31
|
+
"@wordpress/api-fetch": "^6.12.0",
|
|
32
|
+
"@wordpress/block-editor": "^9.7.0",
|
|
33
|
+
"@wordpress/block-library": "^7.12.0",
|
|
34
|
+
"@wordpress/blocks": "^11.14.0",
|
|
35
|
+
"@wordpress/components": "^19.17.0",
|
|
36
|
+
"@wordpress/compose": "^5.13.0",
|
|
37
|
+
"@wordpress/core-data": "^4.13.0",
|
|
38
|
+
"@wordpress/data": "^6.15.0",
|
|
39
|
+
"@wordpress/deprecated": "^3.15.0",
|
|
40
|
+
"@wordpress/editor": "^12.14.0",
|
|
41
|
+
"@wordpress/element": "^4.13.0",
|
|
42
|
+
"@wordpress/hooks": "^3.15.0",
|
|
43
|
+
"@wordpress/html-entities": "^3.15.0",
|
|
44
|
+
"@wordpress/i18n": "^4.15.0",
|
|
45
|
+
"@wordpress/icons": "^9.6.0",
|
|
46
|
+
"@wordpress/interface": "^4.14.0",
|
|
47
|
+
"@wordpress/keyboard-shortcuts": "^3.13.0",
|
|
48
|
+
"@wordpress/keycodes": "^3.15.0",
|
|
49
|
+
"@wordpress/media-utils": "^4.6.0",
|
|
50
|
+
"@wordpress/notices": "^3.15.0",
|
|
51
|
+
"@wordpress/plugins": "^4.13.0",
|
|
52
|
+
"@wordpress/preferences": "^2.7.0",
|
|
53
|
+
"@wordpress/reusable-blocks": "^3.13.0",
|
|
54
|
+
"@wordpress/style-engine": "^0.14.0",
|
|
55
|
+
"@wordpress/url": "^3.16.0",
|
|
56
|
+
"@wordpress/viewport": "^4.13.0",
|
|
57
57
|
"classnames": "^2.3.1",
|
|
58
58
|
"downloadjs": "^1.4.7",
|
|
59
59
|
"history": "^5.1.0",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "08358f53b627a15148c3a3e433cdf58cf8714aa4"
|
|
72
72
|
}
|