@wordpress/block-editor 14.2.1-next.1f6eadc42.0 → 14.3.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 +2 -0
- package/build/components/background-image-control/index.js +566 -0
- package/build/components/background-image-control/index.js.map +1 -0
- package/build/components/block-card/index.js +5 -2
- package/build/components/block-card/index.js.map +1 -1
- package/build/components/block-list/use-block-props/use-zoom-out-mode-exit.js +4 -2
- package/build/components/block-list/use-block-props/use-zoom-out-mode-exit.js.map +1 -1
- package/build/components/global-styles/background-panel.js +20 -545
- package/build/components/global-styles/background-panel.js.map +1 -1
- package/build/components/global-styles/dimensions-panel.js +3 -0
- package/build/components/global-styles/dimensions-panel.js.map +1 -1
- package/build/components/iframe/index.js +1 -0
- package/build/components/iframe/index.js.map +1 -1
- package/build/components/image-editor/use-save-image.js +6 -0
- package/build/components/image-editor/use-save-image.js.map +1 -1
- package/build/components/image-editor/use-transform-image.js +1 -0
- package/build/components/image-editor/use-transform-image.js.map +1 -1
- package/build/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js +2 -4
- package/build/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js.map +1 -1
- package/build/components/inserter/block-patterns-tab/index.js +2 -4
- package/build/components/inserter/block-patterns-tab/index.js.map +1 -1
- package/build/components/inserter/media-tab/media-preview.js +4 -8
- package/build/components/inserter/media-tab/media-preview.js.map +1 -1
- package/build/components/inserter/media-tab/media-tab.js +2 -4
- package/build/components/inserter/media-tab/media-tab.js.map +1 -1
- package/build/components/inserter/quick-inserter.js +2 -4
- package/build/components/inserter/quick-inserter.js.map +1 -1
- package/build/components/inserter-listbox/item.js +2 -4
- package/build/components/inserter-listbox/item.js.map +1 -1
- package/build/components/link-control/index.js +14 -14
- package/build/components/link-control/index.js.map +1 -1
- package/build/components/link-control/search-input.js +4 -2
- package/build/components/link-control/search-input.js.map +1 -1
- package/build/components/rich-text/index.js +10 -4
- package/build/components/rich-text/index.js.map +1 -1
- package/build/components/spacing-sizes-control/utils.js +16 -4
- package/build/components/spacing-sizes-control/utils.js.map +1 -1
- package/build/components/url-input/index.js +7 -6
- package/build/components/url-input/index.js.map +1 -1
- package/build/hooks/block-bindings.js +64 -53
- package/build/hooks/block-bindings.js.map +1 -1
- package/build/hooks/block-hooks.js +1 -8
- package/build/hooks/block-hooks.js.map +1 -1
- package/build/store/private-selectors.js +10 -0
- package/build/store/private-selectors.js.map +1 -1
- package/build-module/components/background-image-control/index.js +556 -0
- package/build-module/components/background-image-control/index.js.map +1 -0
- package/build-module/components/block-card/index.js +6 -3
- package/build-module/components/block-card/index.js.map +1 -1
- package/build-module/components/block-list/use-block-props/use-zoom-out-mode-exit.js +4 -2
- package/build-module/components/block-list/use-block-props/use-zoom-out-mode-exit.js.map +1 -1
- package/build-module/components/global-styles/background-panel.js +22 -546
- package/build-module/components/global-styles/background-panel.js.map +1 -1
- package/build-module/components/global-styles/dimensions-panel.js +3 -0
- package/build-module/components/global-styles/dimensions-panel.js.map +1 -1
- package/build-module/components/iframe/index.js +1 -0
- package/build-module/components/iframe/index.js.map +1 -1
- package/build-module/components/image-editor/use-save-image.js +6 -0
- package/build-module/components/image-editor/use-save-image.js.map +1 -1
- package/build-module/components/image-editor/use-transform-image.js +1 -0
- package/build-module/components/image-editor/use-transform-image.js.map +1 -1
- package/build-module/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js +2 -4
- package/build-module/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/index.js +2 -4
- package/build-module/components/inserter/block-patterns-tab/index.js.map +1 -1
- package/build-module/components/inserter/media-tab/media-preview.js +4 -8
- package/build-module/components/inserter/media-tab/media-preview.js.map +1 -1
- package/build-module/components/inserter/media-tab/media-tab.js +2 -4
- package/build-module/components/inserter/media-tab/media-tab.js.map +1 -1
- package/build-module/components/inserter/quick-inserter.js +2 -4
- package/build-module/components/inserter/quick-inserter.js.map +1 -1
- package/build-module/components/inserter-listbox/item.js +2 -4
- package/build-module/components/inserter-listbox/item.js.map +1 -1
- package/build-module/components/link-control/index.js +15 -15
- package/build-module/components/link-control/index.js.map +1 -1
- package/build-module/components/link-control/search-input.js +4 -2
- package/build-module/components/link-control/search-input.js.map +1 -1
- package/build-module/components/rich-text/index.js +10 -4
- package/build-module/components/rich-text/index.js.map +1 -1
- package/build-module/components/spacing-sizes-control/utils.js +16 -4
- package/build-module/components/spacing-sizes-control/utils.js.map +1 -1
- package/build-module/components/url-input/index.js +8 -7
- package/build-module/components/url-input/index.js.map +1 -1
- package/build-module/hooks/block-bindings.js +64 -53
- package/build-module/hooks/block-bindings.js.map +1 -1
- package/build-module/hooks/block-hooks.js +3 -10
- package/build-module/hooks/block-hooks.js.map +1 -1
- package/build-module/store/private-selectors.js +10 -0
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-style/style-rtl.css +152 -276
- package/build-style/style.css +152 -276
- package/package.json +32 -32
- package/src/components/background-image-control/index.js +741 -0
- package/src/components/background-image-control/style.scss +170 -0
- package/src/components/background-image-control/test/index.js +47 -0
- package/src/components/block-card/index.js +12 -3
- package/src/components/block-list/use-block-props/use-zoom-out-mode-exit.js +2 -5
- package/src/components/global-styles/background-panel.js +19 -730
- package/src/components/global-styles/dimensions-panel.js +3 -0
- package/src/components/global-styles/style.scss +0 -168
- package/src/components/global-styles/test/background-panel.js +1 -47
- package/src/components/image-editor/use-save-image.js +7 -0
- package/src/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js +1 -2
- package/src/components/inserter/block-patterns-tab/index.js +1 -2
- package/src/components/inserter/media-tab/media-preview.js +2 -4
- package/src/components/inserter/media-tab/media-tab.js +1 -2
- package/src/components/inserter/quick-inserter.js +1 -2
- package/src/components/inserter/style.scss +0 -1
- package/src/components/inserter-listbox/item.js +1 -5
- package/src/components/link-control/index.js +19 -14
- package/src/components/link-control/search-input.js +2 -0
- package/src/components/link-control/style.scss +0 -22
- package/src/components/list-view/style.scss +1 -1
- package/src/components/rich-text/index.js +20 -5
- package/src/components/spacing-sizes-control/test/utils.js +18 -25
- package/src/components/spacing-sizes-control/utils.js +22 -5
- package/src/components/url-input/index.js +5 -4
- package/src/components/url-input/style.scss +3 -26
- package/src/hooks/block-bindings.js +63 -49
- package/src/hooks/block-hooks.js +3 -14
- package/src/hooks/block-hooks.scss +0 -9
- package/src/store/private-selectors.js +9 -0
- package/src/style.scss +1 -0
- package/src/utils/test/transform-styles.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createSelector","createRegistrySelector","getBlockOrder","getBlockParents","getBlockEditingMode","getSettings","canInsertBlockType","getBlockName","getTemplateLock","getClientIdsWithDescendants","checkAllowListRecursive","getAllPatternsDependants","getInsertBlockTypeDependants","getGrammar","INSERTER_PATTERN_TYPES","STORE_NAME","unlock","selectBlockPatternsKey","reusableBlocksSelectKey","sectionRootClientIdKey","getBlockSettings","isBlockInterfaceHidden","state","getLastInsertedBlocksClientIds","lastBlockInserted","clientIds","getBlockWithoutAttributes","clientId","blocks","byClientId","get","isBlockSubtreeDisabled","isChildSubtreeDisabled","childClientId","every","getEnabledClientIdsTreeUnmemoized","rootClientId","blockOrder","result","innerBlocks","push","getEnabledClientIdsTree","order","blockEditingModes","settings","templateLock","blockListSettings","editorMode","getEnabledBlockParents","ascending","filter","parent","parents","getRemovalPromptData","removalPromptData","getBlockRemovalRules","blockRemovalRules","getOpenedBlockSettingsMenu","openedBlockSettingsMenu","getStyleOverrides","clientIdMap","reduce","acc","index","styleOverrides","sort","overrideA","overrideB","_clientIdMap$clientId","_clientIdMap$clientId2","clientIdA","clientIdB","aIndex","bIndex","getRegisteredInserterMediaCategories","registeredInserterMediaCategories","getInserterMediaCategories","inserterMediaCategories","allowedMimeTypes","enableOpenverseMediaCategory","length","coreInserterMediaCategoriesNames","map","name","mergedCategories","includes","category","Object","values","some","mimeType","startsWith","mediaType","hasAllowedPatterns","select","getAllPatterns","patterns","allowedBlockTypes","pattern","inserter","grammar","blockName","mapUserPattern","userPattern","__experimentalUserPatternCategories","id","type","user","title","raw","categories","wp_pattern_category","catId","find","slug","content","syncStatus","wp_pattern_sync_status","getPatternBySlug","patternName","_state$settings$__exp","_state$settings$selec","_id","parseInt","slice","block","getReusableBlocks","__experimentalBlockPatterns","__experimentalReusableBlocks","_state$settings$__exp2","_state$settings$selec2","x","arr","findIndex","y","isResolvingPatterns","blockPatternsSelect","reusableBlocksSelect","undefined","EMPTY_ARRAY","_ref","getLastFocus","lastFocus","isDragging","getExpandedBlock","expandedBlock","getContentLockingParent","current","getTemporarilyEditingAsBlocks","temporarilyEditingAsBlocks","getTemporarilyEditingFocusModeToRevert","temporarilyEditingFocusModeRevert","getBlockStyles","styles","attributes","style","isZoomOutMode","getSectionRootClientId"],"sources":["@wordpress/block-editor/src/store/private-selectors.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createSelector, createRegistrySelector } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport {\n\tgetBlockOrder,\n\tgetBlockParents,\n\tgetBlockEditingMode,\n\tgetSettings,\n\tcanInsertBlockType,\n\tgetBlockName,\n\tgetTemplateLock,\n\tgetClientIdsWithDescendants,\n} from './selectors';\nimport {\n\tcheckAllowListRecursive,\n\tgetAllPatternsDependants,\n\tgetInsertBlockTypeDependants,\n\tgetGrammar,\n} from './utils';\nimport { INSERTER_PATTERN_TYPES } from '../components/inserter/block-patterns-tab/utils';\nimport { STORE_NAME } from './constants';\nimport { unlock } from '../lock-unlock';\nimport {\n\tselectBlockPatternsKey,\n\treusableBlocksSelectKey,\n\tsectionRootClientIdKey,\n} from './private-keys';\n\nexport { getBlockSettings } from './get-block-settings';\n\n/**\n * Returns true if the block interface is hidden, or false otherwise.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the block toolbar is hidden.\n */\nexport function isBlockInterfaceHidden( state ) {\n\treturn state.isBlockInterfaceHidden;\n}\n\n/**\n * Gets the client ids of the last inserted blocks.\n *\n * @param {Object} state Global application state.\n * @return {Array|undefined} Client Ids of the last inserted block(s).\n */\nexport function getLastInsertedBlocksClientIds( state ) {\n\treturn state?.lastBlockInserted?.clientIds;\n}\n\nexport function getBlockWithoutAttributes( state, clientId ) {\n\treturn state.blocks.byClientId.get( clientId );\n}\n\n/**\n * Returns true if all of the descendants of a block with the given client ID\n * have an editing mode of 'disabled', or false otherwise.\n *\n * @param {Object} state Global application state.\n * @param {string} clientId The block client ID.\n *\n * @return {boolean} Whether the block descendants are disabled.\n */\nexport const isBlockSubtreeDisabled = ( state, clientId ) => {\n\tconst isChildSubtreeDisabled = ( childClientId ) => {\n\t\treturn (\n\t\t\tgetBlockEditingMode( state, childClientId ) === 'disabled' &&\n\t\t\tgetBlockOrder( state, childClientId ).every(\n\t\t\t\tisChildSubtreeDisabled\n\t\t\t)\n\t\t);\n\t};\n\treturn getBlockOrder( state, clientId ).every( isChildSubtreeDisabled );\n};\n\nfunction getEnabledClientIdsTreeUnmemoized( state, rootClientId ) {\n\tconst blockOrder = getBlockOrder( state, rootClientId );\n\tconst result = [];\n\n\tfor ( const clientId of blockOrder ) {\n\t\tconst innerBlocks = getEnabledClientIdsTreeUnmemoized(\n\t\t\tstate,\n\t\t\tclientId\n\t\t);\n\t\tif ( getBlockEditingMode( state, clientId ) !== 'disabled' ) {\n\t\t\tresult.push( { clientId, innerBlocks } );\n\t\t} else {\n\t\t\tresult.push( ...innerBlocks );\n\t\t}\n\t}\n\n\treturn result;\n}\n\n/**\n * Returns a tree of block objects with only clientID and innerBlocks set.\n * Blocks with a 'disabled' editing mode are not included.\n *\n * @param {Object} state Global application state.\n * @param {?string} rootClientId Optional root client ID of block list.\n *\n * @return {Object[]} Tree of block objects with only clientID and innerBlocks set.\n */\nexport const getEnabledClientIdsTree = createSelector(\n\tgetEnabledClientIdsTreeUnmemoized,\n\t( state ) => [\n\t\tstate.blocks.order,\n\t\tstate.blockEditingModes,\n\t\tstate.settings.templateLock,\n\t\tstate.blockListSettings,\n\t\tstate.editorMode,\n\t]\n);\n\n/**\n * Returns a list of a given block's ancestors, from top to bottom. Blocks with\n * a 'disabled' editing mode are excluded.\n *\n * @see getBlockParents\n *\n * @param {Object} state Global application state.\n * @param {string} clientId The block client ID.\n * @param {boolean} ascending Order results from bottom to top (true) or top\n * to bottom (false).\n */\nexport const getEnabledBlockParents = createSelector(\n\t( state, clientId, ascending = false ) => {\n\t\treturn getBlockParents( state, clientId, ascending ).filter(\n\t\t\t( parent ) => getBlockEditingMode( state, parent ) !== 'disabled'\n\t\t);\n\t},\n\t( state ) => [\n\t\tstate.blocks.parents,\n\t\tstate.blockEditingModes,\n\t\tstate.settings.templateLock,\n\t\tstate.blockListSettings,\n\t]\n);\n\n/**\n * Selector that returns the data needed to display a prompt when certain\n * blocks are removed, or `false` if no such prompt is requested.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object|false} Data for removal prompt display, if any.\n */\nexport function getRemovalPromptData( state ) {\n\treturn state.removalPromptData;\n}\n\n/**\n * Returns true if removal prompt exists, or false otherwise.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether removal prompt exists.\n */\nexport function getBlockRemovalRules( state ) {\n\treturn state.blockRemovalRules;\n}\n\n/**\n * Returns the client ID of the block settings menu that is currently open.\n *\n * @param {Object} state Global application state.\n * @return {string|null} The client ID of the block menu that is currently open.\n */\nexport function getOpenedBlockSettingsMenu( state ) {\n\treturn state.openedBlockSettingsMenu;\n}\n\n/**\n * Returns all style overrides, intended to be merged with global editor styles.\n *\n * Overrides are sorted to match the order of the blocks they relate to. This\n * is useful to maintain correct CSS cascade order.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} An array of style ID to style override pairs.\n */\nexport const getStyleOverrides = createSelector(\n\t( state ) => {\n\t\tconst clientIds = getClientIdsWithDescendants( state );\n\t\tconst clientIdMap = clientIds.reduce( ( acc, clientId, index ) => {\n\t\t\tacc[ clientId ] = index;\n\t\t\treturn acc;\n\t\t}, {} );\n\n\t\treturn [ ...state.styleOverrides ].sort( ( overrideA, overrideB ) => {\n\t\t\t// Once the overrides Map is spread to an array, the first element\n\t\t\t// is the key, while the second is the override itself including\n\t\t\t// the clientId to sort by.\n\t\t\tconst [ , { clientId: clientIdA } ] = overrideA;\n\t\t\tconst [ , { clientId: clientIdB } ] = overrideB;\n\n\t\t\tconst aIndex = clientIdMap[ clientIdA ] ?? -1;\n\t\t\tconst bIndex = clientIdMap[ clientIdB ] ?? -1;\n\n\t\t\treturn aIndex - bIndex;\n\t\t} );\n\t},\n\t( state ) => [ state.blocks.order, state.styleOverrides ]\n);\n\n/** @typedef {import('./actions').InserterMediaCategory} InserterMediaCategory */\n/**\n * Returns the registered inserter media categories through the public API.\n *\n * @param {Object} state Editor state.\n *\n * @return {InserterMediaCategory[]} Inserter media categories.\n */\nexport function getRegisteredInserterMediaCategories( state ) {\n\treturn state.registeredInserterMediaCategories;\n}\n\n/**\n * Returns an array containing the allowed inserter media categories.\n * It merges the registered media categories from extenders with the\n * core ones. It also takes into account the allowed `mime_types`, which\n * can be altered by `upload_mimes` filter and restrict some of them.\n *\n * @param {Object} state Global application state.\n *\n * @return {InserterMediaCategory[]} Client IDs of descendants.\n */\nexport const getInserterMediaCategories = createSelector(\n\t( state ) => {\n\t\tconst {\n\t\t\tsettings: {\n\t\t\t\tinserterMediaCategories,\n\t\t\t\tallowedMimeTypes,\n\t\t\t\tenableOpenverseMediaCategory,\n\t\t\t},\n\t\t\tregisteredInserterMediaCategories,\n\t\t} = state;\n\t\t// The allowed `mime_types` can be altered by `upload_mimes` filter and restrict\n\t\t// some of them. In this case we shouldn't add the category to the available media\n\t\t// categories list in the inserter.\n\t\tif (\n\t\t\t( ! inserterMediaCategories &&\n\t\t\t\t! registeredInserterMediaCategories.length ) ||\n\t\t\t! allowedMimeTypes\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tconst coreInserterMediaCategoriesNames =\n\t\t\tinserterMediaCategories?.map( ( { name } ) => name ) || [];\n\t\tconst mergedCategories = [\n\t\t\t...( inserterMediaCategories || [] ),\n\t\t\t...( registeredInserterMediaCategories || [] ).filter(\n\t\t\t\t( { name } ) =>\n\t\t\t\t\t! coreInserterMediaCategoriesNames.includes( name )\n\t\t\t),\n\t\t];\n\t\treturn mergedCategories.filter( ( category ) => {\n\t\t\t// Check if Openverse category is enabled.\n\t\t\tif (\n\t\t\t\t! enableOpenverseMediaCategory &&\n\t\t\t\tcategory.name === 'openverse'\n\t\t\t) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn Object.values( allowedMimeTypes ).some( ( mimeType ) =>\n\t\t\t\tmimeType.startsWith( `${ category.mediaType }/` )\n\t\t\t);\n\t\t} );\n\t},\n\t( state ) => [\n\t\tstate.settings.inserterMediaCategories,\n\t\tstate.settings.allowedMimeTypes,\n\t\tstate.settings.enableOpenverseMediaCategory,\n\t\tstate.registeredInserterMediaCategories,\n\t]\n);\n\n/**\n * Returns whether there is at least one allowed pattern for inner blocks children.\n * This is useful for deferring the parsing of all patterns until needed.\n *\n * @param {Object} state Editor state.\n * @param {string} [rootClientId=null] Target root client ID.\n *\n * @return {boolean} If there is at least one allowed pattern.\n */\nexport const hasAllowedPatterns = createRegistrySelector( ( select ) =>\n\tcreateSelector(\n\t\t( state, rootClientId = null ) => {\n\t\t\tconst { getAllPatterns } = unlock( select( STORE_NAME ) );\n\t\t\tconst patterns = getAllPatterns();\n\t\t\tconst { allowedBlockTypes } = getSettings( state );\n\t\t\treturn patterns.some( ( pattern ) => {\n\t\t\t\tconst { inserter = true } = pattern;\n\t\t\t\tif ( ! inserter ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tconst grammar = getGrammar( pattern );\n\t\t\t\treturn (\n\t\t\t\t\tcheckAllowListRecursive( grammar, allowedBlockTypes ) &&\n\t\t\t\t\tgrammar.every( ( { name: blockName } ) =>\n\t\t\t\t\t\tcanInsertBlockType( state, blockName, rootClientId )\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t} );\n\t\t},\n\t\t( state, rootClientId ) => [\n\t\t\t...getAllPatternsDependants( select )( state ),\n\t\t\t...getInsertBlockTypeDependants( state, rootClientId ),\n\t\t]\n\t)\n);\n\nfunction mapUserPattern(\n\tuserPattern,\n\t__experimentalUserPatternCategories = []\n) {\n\treturn {\n\t\tname: `core/block/${ userPattern.id }`,\n\t\tid: userPattern.id,\n\t\ttype: INSERTER_PATTERN_TYPES.user,\n\t\ttitle: userPattern.title.raw,\n\t\tcategories: userPattern.wp_pattern_category.map( ( catId ) => {\n\t\t\tconst category = __experimentalUserPatternCategories.find(\n\t\t\t\t( { id } ) => id === catId\n\t\t\t);\n\t\t\treturn category ? category.slug : catId;\n\t\t} ),\n\t\tcontent: userPattern.content.raw,\n\t\tsyncStatus: userPattern.wp_pattern_sync_status,\n\t};\n}\n\nexport const getPatternBySlug = createRegistrySelector( ( select ) =>\n\tcreateSelector(\n\t\t( state, patternName ) => {\n\t\t\t// Only fetch reusable blocks if we know we need them. To do: maybe\n\t\t\t// use the entity record API to retrieve the block by slug.\n\t\t\tif ( patternName?.startsWith( 'core/block/' ) ) {\n\t\t\t\tconst _id = parseInt(\n\t\t\t\t\tpatternName.slice( 'core/block/'.length ),\n\t\t\t\t\t10\n\t\t\t\t);\n\t\t\t\tconst block = unlock( select( STORE_NAME ) )\n\t\t\t\t\t.getReusableBlocks()\n\t\t\t\t\t.find( ( { id } ) => id === _id );\n\n\t\t\t\tif ( ! block ) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\treturn mapUserPattern(\n\t\t\t\t\tblock,\n\t\t\t\t\tstate.settings.__experimentalUserPatternCategories\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn [\n\t\t\t\t// This setting is left for back compat.\n\t\t\t\t...( state.settings.__experimentalBlockPatterns ?? [] ),\n\t\t\t\t...( state.settings[ selectBlockPatternsKey ]?.( select ) ??\n\t\t\t\t\t[] ),\n\t\t\t].find( ( { name } ) => name === patternName );\n\t\t},\n\t\t( state, patternName ) =>\n\t\t\tpatternName?.startsWith( 'core/block/' )\n\t\t\t\t? [\n\t\t\t\t\t\tunlock( select( STORE_NAME ) ).getReusableBlocks(),\n\t\t\t\t\t\tstate.settings.__experimentalReusableBlocks,\n\t\t\t\t ]\n\t\t\t\t: [\n\t\t\t\t\t\tstate.settings.__experimentalBlockPatterns,\n\t\t\t\t\t\tstate.settings[ selectBlockPatternsKey ]?.( select ),\n\t\t\t\t ]\n\t)\n);\n\nexport const getAllPatterns = createRegistrySelector( ( select ) =>\n\tcreateSelector( ( state ) => {\n\t\treturn [\n\t\t\t...unlock( select( STORE_NAME ) )\n\t\t\t\t.getReusableBlocks()\n\t\t\t\t.map( ( userPattern ) =>\n\t\t\t\t\tmapUserPattern(\n\t\t\t\t\t\tuserPattern,\n\t\t\t\t\t\tstate.settings.__experimentalUserPatternCategories\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t// This setting is left for back compat.\n\t\t\t...( state.settings.__experimentalBlockPatterns ?? [] ),\n\t\t\t...( state.settings[ selectBlockPatternsKey ]?.( select ) ?? [] ),\n\t\t].filter(\n\t\t\t( x, index, arr ) =>\n\t\t\t\tindex === arr.findIndex( ( y ) => x.name === y.name )\n\t\t);\n\t}, getAllPatternsDependants( select ) )\n);\n\nexport const isResolvingPatterns = createRegistrySelector( ( select ) =>\n\tcreateSelector( ( state ) => {\n\t\tconst blockPatternsSelect = state.settings[ selectBlockPatternsKey ];\n\t\tconst reusableBlocksSelect = state.settings[ reusableBlocksSelectKey ];\n\t\treturn (\n\t\t\t( blockPatternsSelect\n\t\t\t\t? blockPatternsSelect( select ) === undefined\n\t\t\t\t: false ) ||\n\t\t\t( reusableBlocksSelect\n\t\t\t\t? reusableBlocksSelect( select ) === undefined\n\t\t\t\t: false )\n\t\t);\n\t}, getAllPatternsDependants( select ) )\n);\n\nconst EMPTY_ARRAY = [];\n\nexport const getReusableBlocks = createRegistrySelector(\n\t( select ) => ( state ) => {\n\t\tconst reusableBlocksSelect = state.settings[ reusableBlocksSelectKey ];\n\t\treturn (\n\t\t\t( reusableBlocksSelect\n\t\t\t\t? reusableBlocksSelect( select )\n\t\t\t\t: state.settings.__experimentalReusableBlocks ) ?? EMPTY_ARRAY\n\t\t);\n\t}\n);\n\n/**\n * Returns the element of the last element that had focus when focus left the editor canvas.\n *\n * @param {Object} state Block editor state.\n *\n * @return {Object} Element.\n */\nexport function getLastFocus( state ) {\n\treturn state.lastFocus;\n}\n\n/**\n * Returns true if the user is dragging anything, or false otherwise. It is possible for a\n * user to be dragging data from outside of the editor, so this selector is separate from\n * the `isDraggingBlocks` selector which only returns true if the user is dragging blocks.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether user is dragging.\n */\nexport function isDragging( state ) {\n\treturn state.isDragging;\n}\n\n/**\n * Retrieves the expanded block from the state.\n *\n * @param {Object} state Block editor state.\n *\n * @return {string|null} The client ID of the expanded block, if set.\n */\nexport function getExpandedBlock( state ) {\n\treturn state.expandedBlock;\n}\n\n/**\n * Retrieves the client ID of the ancestor block that is content locking the block\n * with the provided client ID.\n *\n * @param {Object} state Global application state.\n * @param {Object} clientId Client Id of the block.\n *\n * @return {?string} Client ID of the ancestor block that is content locking the block.\n */\nexport const getContentLockingParent = createSelector(\n\t( state, clientId ) => {\n\t\tlet current = clientId;\n\t\tlet result;\n\t\twhile ( ( current = state.blocks.parents.get( current ) ) ) {\n\t\t\tif (\n\t\t\t\tgetBlockName( state, current ) === 'core/block' ||\n\t\t\t\tgetTemplateLock( state, current ) === 'contentOnly'\n\t\t\t) {\n\t\t\t\tresult = current;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t},\n\t( state ) => [ state.blocks.parents, state.blockListSettings ]\n);\n\n/**\n * Retrieves the client ID of the block that is content locked but is\n * currently being temporarily edited as a non-locked block.\n *\n * @param {Object} state Global application state.\n *\n * @return {?string} The client ID of the block being temporarily edited as a non-locked block.\n */\nexport function getTemporarilyEditingAsBlocks( state ) {\n\treturn state.temporarilyEditingAsBlocks;\n}\n\n/**\n * Returns the focus mode that should be reapplied when the user stops editing\n * a content locked blocks as a block without locking.\n *\n * @param {Object} state Global application state.\n *\n * @return {?string} The focus mode that should be re-set when temporarily editing as blocks stops.\n */\nexport function getTemporarilyEditingFocusModeToRevert( state ) {\n\treturn state.temporarilyEditingFocusModeRevert;\n}\n\n/**\n * Returns the style attributes of multiple blocks.\n *\n * @param {Object} state Global application state.\n * @param {string[]} clientIds An array of block client IDs.\n *\n * @return {Object} An object where keys are client IDs and values are the corresponding block styles or undefined.\n */\nexport const getBlockStyles = createSelector(\n\t( state, clientIds ) =>\n\t\tclientIds.reduce( ( styles, clientId ) => {\n\t\t\tstyles[ clientId ] = state.blocks.attributes.get( clientId )?.style;\n\t\t\treturn styles;\n\t\t}, {} ),\n\t( state, clientIds ) => [\n\t\t...clientIds.map(\n\t\t\t( clientId ) => state.blocks.attributes.get( clientId )?.style\n\t\t),\n\t]\n);\n\n/**\n * Returns whether zoom out mode is enabled.\n *\n * @param {Object} state Editor state.\n *\n * @return {boolean} Is zoom out mode enabled.\n */\nexport function isZoomOutMode( state ) {\n\treturn state.editorMode === 'zoom-out';\n}\n\nexport function getSectionRootClientId( state ) {\n\treturn state.settings?.[ sectionRootClientIdKey ];\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,cAAc,EAAEC,sBAAsB,QAAQ,iBAAiB;;AAExE;AACA;AACA;AACA,SACCC,aAAa,EACbC,eAAe,EACfC,mBAAmB,EACnBC,WAAW,EACXC,kBAAkB,EAClBC,YAAY,EACZC,eAAe,EACfC,2BAA2B,QACrB,aAAa;AACpB,SACCC,uBAAuB,EACvBC,wBAAwB,EACxBC,4BAA4B,EAC5BC,UAAU,QACJ,SAAS;AAChB,SAASC,sBAAsB,QAAQ,iDAAiD;AACxF,SAASC,UAAU,QAAQ,aAAa;AACxC,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SACCC,sBAAsB,EACtBC,uBAAuB,EACvBC,sBAAsB,QAChB,gBAAgB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MAAM,CAAE9H,QAAQ,CAAE,GAAGL,KAAK,CAACM,MAAM,CAAC8H,UAAU,CAAC5H,GAAG,CAAEH,QAAS,CAAC,EAAEgI,KAAK;EACnE,OAAOF,MAAM;AACd,CAAC,EAAE,CAAC,CAAE,CAAC,EACR,CAAEnI,KAAK,EAAEG,SAAS,KAAM,CACvB,GAAGA,SAAS,CAACyD,GAAG,CACbvD,QAAQ,IAAML,KAAK,CAACM,MAAM,CAAC8H,UAAU,CAAC5H,GAAG,CAAEH,QAAS,CAAC,EAAEgI,KAC1D,CAAC,CAEH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAAEtI,KAAK,EAAG;EACtC,OAAOA,KAAK,CAACyB,UAAU,KAAK,UAAU;AACvC;AAEA,OAAO,SAAS8G,sBAAsBA,CAAEvI,KAAK,EAAG;EAC/C,OAAOA,KAAK,CAACsB,QAAQ,GAAIzB,sBAAsB,CAAE;AAClD","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["createSelector","createRegistrySelector","getBlockOrder","getBlockParents","getBlockEditingMode","getSettings","canInsertBlockType","getBlockName","getTemplateLock","getClientIdsWithDescendants","checkAllowListRecursive","getAllPatternsDependants","getInsertBlockTypeDependants","getGrammar","INSERTER_PATTERN_TYPES","STORE_NAME","unlock","selectBlockPatternsKey","reusableBlocksSelectKey","sectionRootClientIdKey","getBlockSettings","isBlockInterfaceHidden","state","getLastInsertedBlocksClientIds","lastBlockInserted","clientIds","getBlockWithoutAttributes","clientId","blocks","byClientId","get","isBlockSubtreeDisabled","isChildSubtreeDisabled","childClientId","every","getEnabledClientIdsTreeUnmemoized","rootClientId","blockOrder","result","innerBlocks","push","getEnabledClientIdsTree","order","blockEditingModes","settings","templateLock","blockListSettings","editorMode","getEnabledBlockParents","ascending","filter","parent","parents","getRemovalPromptData","removalPromptData","getBlockRemovalRules","blockRemovalRules","getOpenedBlockSettingsMenu","openedBlockSettingsMenu","getStyleOverrides","clientIdMap","reduce","acc","index","styleOverrides","sort","overrideA","overrideB","_clientIdMap$clientId","_clientIdMap$clientId2","clientIdA","clientIdB","aIndex","bIndex","getRegisteredInserterMediaCategories","registeredInserterMediaCategories","getInserterMediaCategories","inserterMediaCategories","allowedMimeTypes","enableOpenverseMediaCategory","length","coreInserterMediaCategoriesNames","map","name","mergedCategories","includes","category","Object","values","some","mimeType","startsWith","mediaType","hasAllowedPatterns","select","getAllPatterns","patterns","allowedBlockTypes","pattern","inserter","grammar","blockName","mapUserPattern","userPattern","__experimentalUserPatternCategories","id","type","user","title","raw","categories","wp_pattern_category","catId","find","slug","content","syncStatus","wp_pattern_sync_status","getPatternBySlug","patternName","_state$settings$__exp","_state$settings$selec","_id","parseInt","slice","block","getReusableBlocks","__experimentalBlockPatterns","__experimentalReusableBlocks","_state$settings$__exp2","_state$settings$selec2","x","arr","findIndex","y","isResolvingPatterns","blockPatternsSelect","reusableBlocksSelect","undefined","EMPTY_ARRAY","_ref","getLastFocus","lastFocus","isDragging","getExpandedBlock","expandedBlock","getContentLockingParent","current","getTemporarilyEditingAsBlocks","temporarilyEditingAsBlocks","getTemporarilyEditingFocusModeToRevert","temporarilyEditingFocusModeRevert","getBlockStyles","styles","attributes","style","isZoomOutMode","getSectionRootClientId"],"sources":["@wordpress/block-editor/src/store/private-selectors.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createSelector, createRegistrySelector } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport {\n\tgetBlockOrder,\n\tgetBlockParents,\n\tgetBlockEditingMode,\n\tgetSettings,\n\tcanInsertBlockType,\n\tgetBlockName,\n\tgetTemplateLock,\n\tgetClientIdsWithDescendants,\n} from './selectors';\nimport {\n\tcheckAllowListRecursive,\n\tgetAllPatternsDependants,\n\tgetInsertBlockTypeDependants,\n\tgetGrammar,\n} from './utils';\nimport { INSERTER_PATTERN_TYPES } from '../components/inserter/block-patterns-tab/utils';\nimport { STORE_NAME } from './constants';\nimport { unlock } from '../lock-unlock';\nimport {\n\tselectBlockPatternsKey,\n\treusableBlocksSelectKey,\n\tsectionRootClientIdKey,\n} from './private-keys';\n\nexport { getBlockSettings } from './get-block-settings';\n\n/**\n * Returns true if the block interface is hidden, or false otherwise.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the block toolbar is hidden.\n */\nexport function isBlockInterfaceHidden( state ) {\n\treturn state.isBlockInterfaceHidden;\n}\n\n/**\n * Gets the client ids of the last inserted blocks.\n *\n * @param {Object} state Global application state.\n * @return {Array|undefined} Client Ids of the last inserted block(s).\n */\nexport function getLastInsertedBlocksClientIds( state ) {\n\treturn state?.lastBlockInserted?.clientIds;\n}\n\nexport function getBlockWithoutAttributes( state, clientId ) {\n\treturn state.blocks.byClientId.get( clientId );\n}\n\n/**\n * Returns true if all of the descendants of a block with the given client ID\n * have an editing mode of 'disabled', or false otherwise.\n *\n * @param {Object} state Global application state.\n * @param {string} clientId The block client ID.\n *\n * @return {boolean} Whether the block descendants are disabled.\n */\nexport const isBlockSubtreeDisabled = ( state, clientId ) => {\n\tconst isChildSubtreeDisabled = ( childClientId ) => {\n\t\treturn (\n\t\t\tgetBlockEditingMode( state, childClientId ) === 'disabled' &&\n\t\t\tgetBlockOrder( state, childClientId ).every(\n\t\t\t\tisChildSubtreeDisabled\n\t\t\t)\n\t\t);\n\t};\n\treturn getBlockOrder( state, clientId ).every( isChildSubtreeDisabled );\n};\n\nfunction getEnabledClientIdsTreeUnmemoized( state, rootClientId ) {\n\tconst blockOrder = getBlockOrder( state, rootClientId );\n\tconst result = [];\n\n\tfor ( const clientId of blockOrder ) {\n\t\tconst innerBlocks = getEnabledClientIdsTreeUnmemoized(\n\t\t\tstate,\n\t\t\tclientId\n\t\t);\n\t\tif ( getBlockEditingMode( state, clientId ) !== 'disabled' ) {\n\t\t\tresult.push( { clientId, innerBlocks } );\n\t\t} else {\n\t\t\tresult.push( ...innerBlocks );\n\t\t}\n\t}\n\n\treturn result;\n}\n\n/**\n * Returns a tree of block objects with only clientID and innerBlocks set.\n * Blocks with a 'disabled' editing mode are not included.\n *\n * @param {Object} state Global application state.\n * @param {?string} rootClientId Optional root client ID of block list.\n *\n * @return {Object[]} Tree of block objects with only clientID and innerBlocks set.\n */\nexport const getEnabledClientIdsTree = createSelector(\n\tgetEnabledClientIdsTreeUnmemoized,\n\t( state ) => [\n\t\tstate.blocks.order,\n\t\tstate.blockEditingModes,\n\t\tstate.settings.templateLock,\n\t\tstate.blockListSettings,\n\t\tstate.editorMode,\n\t]\n);\n\n/**\n * Returns a list of a given block's ancestors, from top to bottom. Blocks with\n * a 'disabled' editing mode are excluded.\n *\n * @see getBlockParents\n *\n * @param {Object} state Global application state.\n * @param {string} clientId The block client ID.\n * @param {boolean} ascending Order results from bottom to top (true) or top\n * to bottom (false).\n */\nexport const getEnabledBlockParents = createSelector(\n\t( state, clientId, ascending = false ) => {\n\t\treturn getBlockParents( state, clientId, ascending ).filter(\n\t\t\t( parent ) => getBlockEditingMode( state, parent ) !== 'disabled'\n\t\t);\n\t},\n\t( state ) => [\n\t\tstate.blocks.parents,\n\t\tstate.blockEditingModes,\n\t\tstate.settings.templateLock,\n\t\tstate.blockListSettings,\n\t]\n);\n\n/**\n * Selector that returns the data needed to display a prompt when certain\n * blocks are removed, or `false` if no such prompt is requested.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object|false} Data for removal prompt display, if any.\n */\nexport function getRemovalPromptData( state ) {\n\treturn state.removalPromptData;\n}\n\n/**\n * Returns true if removal prompt exists, or false otherwise.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether removal prompt exists.\n */\nexport function getBlockRemovalRules( state ) {\n\treturn state.blockRemovalRules;\n}\n\n/**\n * Returns the client ID of the block settings menu that is currently open.\n *\n * @param {Object} state Global application state.\n * @return {string|null} The client ID of the block menu that is currently open.\n */\nexport function getOpenedBlockSettingsMenu( state ) {\n\treturn state.openedBlockSettingsMenu;\n}\n\n/**\n * Returns all style overrides, intended to be merged with global editor styles.\n *\n * Overrides are sorted to match the order of the blocks they relate to. This\n * is useful to maintain correct CSS cascade order.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} An array of style ID to style override pairs.\n */\nexport const getStyleOverrides = createSelector(\n\t( state ) => {\n\t\tconst clientIds = getClientIdsWithDescendants( state );\n\t\tconst clientIdMap = clientIds.reduce( ( acc, clientId, index ) => {\n\t\t\tacc[ clientId ] = index;\n\t\t\treturn acc;\n\t\t}, {} );\n\n\t\treturn [ ...state.styleOverrides ].sort( ( overrideA, overrideB ) => {\n\t\t\t// Once the overrides Map is spread to an array, the first element\n\t\t\t// is the key, while the second is the override itself including\n\t\t\t// the clientId to sort by.\n\t\t\tconst [ , { clientId: clientIdA } ] = overrideA;\n\t\t\tconst [ , { clientId: clientIdB } ] = overrideB;\n\n\t\t\tconst aIndex = clientIdMap[ clientIdA ] ?? -1;\n\t\t\tconst bIndex = clientIdMap[ clientIdB ] ?? -1;\n\n\t\t\treturn aIndex - bIndex;\n\t\t} );\n\t},\n\t( state ) => [ state.blocks.order, state.styleOverrides ]\n);\n\n/** @typedef {import('./actions').InserterMediaCategory} InserterMediaCategory */\n/**\n * Returns the registered inserter media categories through the public API.\n *\n * @param {Object} state Editor state.\n *\n * @return {InserterMediaCategory[]} Inserter media categories.\n */\nexport function getRegisteredInserterMediaCategories( state ) {\n\treturn state.registeredInserterMediaCategories;\n}\n\n/**\n * Returns an array containing the allowed inserter media categories.\n * It merges the registered media categories from extenders with the\n * core ones. It also takes into account the allowed `mime_types`, which\n * can be altered by `upload_mimes` filter and restrict some of them.\n *\n * @param {Object} state Global application state.\n *\n * @return {InserterMediaCategory[]} Client IDs of descendants.\n */\nexport const getInserterMediaCategories = createSelector(\n\t( state ) => {\n\t\tconst {\n\t\t\tsettings: {\n\t\t\t\tinserterMediaCategories,\n\t\t\t\tallowedMimeTypes,\n\t\t\t\tenableOpenverseMediaCategory,\n\t\t\t},\n\t\t\tregisteredInserterMediaCategories,\n\t\t} = state;\n\t\t// The allowed `mime_types` can be altered by `upload_mimes` filter and restrict\n\t\t// some of them. In this case we shouldn't add the category to the available media\n\t\t// categories list in the inserter.\n\t\tif (\n\t\t\t( ! inserterMediaCategories &&\n\t\t\t\t! registeredInserterMediaCategories.length ) ||\n\t\t\t! allowedMimeTypes\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tconst coreInserterMediaCategoriesNames =\n\t\t\tinserterMediaCategories?.map( ( { name } ) => name ) || [];\n\t\tconst mergedCategories = [\n\t\t\t...( inserterMediaCategories || [] ),\n\t\t\t...( registeredInserterMediaCategories || [] ).filter(\n\t\t\t\t( { name } ) =>\n\t\t\t\t\t! coreInserterMediaCategoriesNames.includes( name )\n\t\t\t),\n\t\t];\n\t\treturn mergedCategories.filter( ( category ) => {\n\t\t\t// Check if Openverse category is enabled.\n\t\t\tif (\n\t\t\t\t! enableOpenverseMediaCategory &&\n\t\t\t\tcategory.name === 'openverse'\n\t\t\t) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn Object.values( allowedMimeTypes ).some( ( mimeType ) =>\n\t\t\t\tmimeType.startsWith( `${ category.mediaType }/` )\n\t\t\t);\n\t\t} );\n\t},\n\t( state ) => [\n\t\tstate.settings.inserterMediaCategories,\n\t\tstate.settings.allowedMimeTypes,\n\t\tstate.settings.enableOpenverseMediaCategory,\n\t\tstate.registeredInserterMediaCategories,\n\t]\n);\n\n/**\n * Returns whether there is at least one allowed pattern for inner blocks children.\n * This is useful for deferring the parsing of all patterns until needed.\n *\n * @param {Object} state Editor state.\n * @param {string} [rootClientId=null] Target root client ID.\n *\n * @return {boolean} If there is at least one allowed pattern.\n */\nexport const hasAllowedPatterns = createRegistrySelector( ( select ) =>\n\tcreateSelector(\n\t\t( state, rootClientId = null ) => {\n\t\t\tconst { getAllPatterns } = unlock( select( STORE_NAME ) );\n\t\t\tconst patterns = getAllPatterns();\n\t\t\tconst { allowedBlockTypes } = getSettings( state );\n\t\t\treturn patterns.some( ( pattern ) => {\n\t\t\t\tconst { inserter = true } = pattern;\n\t\t\t\tif ( ! inserter ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tconst grammar = getGrammar( pattern );\n\t\t\t\treturn (\n\t\t\t\t\tcheckAllowListRecursive( grammar, allowedBlockTypes ) &&\n\t\t\t\t\tgrammar.every( ( { name: blockName } ) =>\n\t\t\t\t\t\tcanInsertBlockType( state, blockName, rootClientId )\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t} );\n\t\t},\n\t\t( state, rootClientId ) => [\n\t\t\t...getAllPatternsDependants( select )( state ),\n\t\t\t...getInsertBlockTypeDependants( state, rootClientId ),\n\t\t]\n\t)\n);\n\nfunction mapUserPattern(\n\tuserPattern,\n\t__experimentalUserPatternCategories = []\n) {\n\treturn {\n\t\tname: `core/block/${ userPattern.id }`,\n\t\tid: userPattern.id,\n\t\ttype: INSERTER_PATTERN_TYPES.user,\n\t\ttitle: userPattern.title.raw,\n\t\tcategories: userPattern.wp_pattern_category.map( ( catId ) => {\n\t\t\tconst category = __experimentalUserPatternCategories.find(\n\t\t\t\t( { id } ) => id === catId\n\t\t\t);\n\t\t\treturn category ? category.slug : catId;\n\t\t} ),\n\t\tcontent: userPattern.content.raw,\n\t\tsyncStatus: userPattern.wp_pattern_sync_status,\n\t};\n}\n\nexport const getPatternBySlug = createRegistrySelector( ( select ) =>\n\tcreateSelector(\n\t\t( state, patternName ) => {\n\t\t\t// Only fetch reusable blocks if we know we need them. To do: maybe\n\t\t\t// use the entity record API to retrieve the block by slug.\n\t\t\tif ( patternName?.startsWith( 'core/block/' ) ) {\n\t\t\t\tconst _id = parseInt(\n\t\t\t\t\tpatternName.slice( 'core/block/'.length ),\n\t\t\t\t\t10\n\t\t\t\t);\n\t\t\t\tconst block = unlock( select( STORE_NAME ) )\n\t\t\t\t\t.getReusableBlocks()\n\t\t\t\t\t.find( ( { id } ) => id === _id );\n\n\t\t\t\tif ( ! block ) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\treturn mapUserPattern(\n\t\t\t\t\tblock,\n\t\t\t\t\tstate.settings.__experimentalUserPatternCategories\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn [\n\t\t\t\t// This setting is left for back compat.\n\t\t\t\t...( state.settings.__experimentalBlockPatterns ?? [] ),\n\t\t\t\t...( state.settings[ selectBlockPatternsKey ]?.( select ) ??\n\t\t\t\t\t[] ),\n\t\t\t].find( ( { name } ) => name === patternName );\n\t\t},\n\t\t( state, patternName ) =>\n\t\t\tpatternName?.startsWith( 'core/block/' )\n\t\t\t\t? [\n\t\t\t\t\t\tunlock( select( STORE_NAME ) ).getReusableBlocks(),\n\t\t\t\t\t\tstate.settings.__experimentalReusableBlocks,\n\t\t\t\t ]\n\t\t\t\t: [\n\t\t\t\t\t\tstate.settings.__experimentalBlockPatterns,\n\t\t\t\t\t\tstate.settings[ selectBlockPatternsKey ]?.( select ),\n\t\t\t\t ]\n\t)\n);\n\nexport const getAllPatterns = createRegistrySelector( ( select ) =>\n\tcreateSelector( ( state ) => {\n\t\treturn [\n\t\t\t...unlock( select( STORE_NAME ) )\n\t\t\t\t.getReusableBlocks()\n\t\t\t\t.map( ( userPattern ) =>\n\t\t\t\t\tmapUserPattern(\n\t\t\t\t\t\tuserPattern,\n\t\t\t\t\t\tstate.settings.__experimentalUserPatternCategories\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t// This setting is left for back compat.\n\t\t\t...( state.settings.__experimentalBlockPatterns ?? [] ),\n\t\t\t...( state.settings[ selectBlockPatternsKey ]?.( select ) ?? [] ),\n\t\t].filter(\n\t\t\t( x, index, arr ) =>\n\t\t\t\tindex === arr.findIndex( ( y ) => x.name === y.name )\n\t\t);\n\t}, getAllPatternsDependants( select ) )\n);\n\nexport const isResolvingPatterns = createRegistrySelector( ( select ) =>\n\tcreateSelector( ( state ) => {\n\t\tconst blockPatternsSelect = state.settings[ selectBlockPatternsKey ];\n\t\tconst reusableBlocksSelect = state.settings[ reusableBlocksSelectKey ];\n\t\treturn (\n\t\t\t( blockPatternsSelect\n\t\t\t\t? blockPatternsSelect( select ) === undefined\n\t\t\t\t: false ) ||\n\t\t\t( reusableBlocksSelect\n\t\t\t\t? reusableBlocksSelect( select ) === undefined\n\t\t\t\t: false )\n\t\t);\n\t}, getAllPatternsDependants( select ) )\n);\n\nconst EMPTY_ARRAY = [];\n\nexport const getReusableBlocks = createRegistrySelector(\n\t( select ) => ( state ) => {\n\t\tconst reusableBlocksSelect = state.settings[ reusableBlocksSelectKey ];\n\t\treturn (\n\t\t\t( reusableBlocksSelect\n\t\t\t\t? reusableBlocksSelect( select )\n\t\t\t\t: state.settings.__experimentalReusableBlocks ) ?? EMPTY_ARRAY\n\t\t);\n\t}\n);\n\n/**\n * Returns the element of the last element that had focus when focus left the editor canvas.\n *\n * @param {Object} state Block editor state.\n *\n * @return {Object} Element.\n */\nexport function getLastFocus( state ) {\n\treturn state.lastFocus;\n}\n\n/**\n * Returns true if the user is dragging anything, or false otherwise. It is possible for a\n * user to be dragging data from outside of the editor, so this selector is separate from\n * the `isDraggingBlocks` selector which only returns true if the user is dragging blocks.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether user is dragging.\n */\nexport function isDragging( state ) {\n\treturn state.isDragging;\n}\n\n/**\n * Retrieves the expanded block from the state.\n *\n * @param {Object} state Block editor state.\n *\n * @return {string|null} The client ID of the expanded block, if set.\n */\nexport function getExpandedBlock( state ) {\n\treturn state.expandedBlock;\n}\n\n/**\n * Retrieves the client ID of the ancestor block that is content locking the block\n * with the provided client ID.\n *\n * @param {Object} state Global application state.\n * @param {Object} clientId Client Id of the block.\n *\n * @return {?string} Client ID of the ancestor block that is content locking the block.\n */\nexport const getContentLockingParent = createSelector(\n\t( state, clientId ) => {\n\t\tlet current = clientId;\n\t\tlet result;\n\t\twhile ( ( current = state.blocks.parents.get( current ) ) ) {\n\t\t\tif (\n\t\t\t\tgetBlockName( state, current ) === 'core/block' ||\n\t\t\t\tgetTemplateLock( state, current ) === 'contentOnly'\n\t\t\t) {\n\t\t\t\tresult = current;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t},\n\t( state ) => [ state.blocks.parents, state.blockListSettings ]\n);\n\n/**\n * Retrieves the client ID of the block that is content locked but is\n * currently being temporarily edited as a non-locked block.\n *\n * @param {Object} state Global application state.\n *\n * @return {?string} The client ID of the block being temporarily edited as a non-locked block.\n */\nexport function getTemporarilyEditingAsBlocks( state ) {\n\treturn state.temporarilyEditingAsBlocks;\n}\n\n/**\n * Returns the focus mode that should be reapplied when the user stops editing\n * a content locked blocks as a block without locking.\n *\n * @param {Object} state Global application state.\n *\n * @return {?string} The focus mode that should be re-set when temporarily editing as blocks stops.\n */\nexport function getTemporarilyEditingFocusModeToRevert( state ) {\n\treturn state.temporarilyEditingFocusModeRevert;\n}\n\n/**\n * Returns the style attributes of multiple blocks.\n *\n * @param {Object} state Global application state.\n * @param {string[]} clientIds An array of block client IDs.\n *\n * @return {Object} An object where keys are client IDs and values are the corresponding block styles or undefined.\n */\nexport const getBlockStyles = createSelector(\n\t( state, clientIds ) =>\n\t\tclientIds.reduce( ( styles, clientId ) => {\n\t\t\tstyles[ clientId ] = state.blocks.attributes.get( clientId )?.style;\n\t\t\treturn styles;\n\t\t}, {} ),\n\t( state, clientIds ) => [\n\t\t...clientIds.map(\n\t\t\t( clientId ) => state.blocks.attributes.get( clientId )?.style\n\t\t),\n\t]\n);\n\n/**\n * Returns whether zoom out mode is enabled.\n *\n * @param {Object} state Editor state.\n *\n * @return {boolean} Is zoom out mode enabled.\n */\nexport function isZoomOutMode( state ) {\n\treturn state.editorMode === 'zoom-out';\n}\n\n/**\n * Retrieves the client ID of the block which contains the blocks\n * acting as \"sections\" in the editor. This is typically the \"main content\"\n * of the template/post.\n *\n * @param {Object} state Editor state.\n *\n * @return {string|undefined} The section root client ID or undefined if not set.\n */\nexport function getSectionRootClientId( state ) {\n\treturn state.settings?.[ sectionRootClientIdKey ];\n}\n"],"mappings":"AAAA;AACA;AACA;AACA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AACA;AACA;AACA;AACA,OAAO,SAASsG,6BAA6BA,CAAE9H,KAAK,EAAG;EACtD,OAAOA,KAAK,CAAC+H,0BAA0B;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,sCAAsCA,CAAEhI,KAAK,EAAG;EAC/D,OAAOA,KAAK,CAACiI,iCAAiC;AAC/C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAGxJ,cAAc,CAC3C,CAAEsB,KAAK,EAAEG,SAAS,KACjBA,SAAS,CAACoC,MAAM,CAAE,CAAE4F,MAAM,EAAE9H,QAAQ,KAAM;EACzC8H,MAAM,CAAE9H,QAAQ,CAAE,GAAGL,KAAK,CAACM,MAAM,CAAC8H,UAAU,CAAC5H,GAAG,CAAEH,QAAS,CAAC,EAAEgI,KAAK;EACnE,OAAOF,MAAM;AACd,CAAC,EAAE,CAAC,CAAE,CAAC,EACR,CAAEnI,KAAK,EAAEG,SAAS,KAAM,CACvB,GAAGA,SAAS,CAACyD,GAAG,CACbvD,QAAQ,IAAML,KAAK,CAACM,MAAM,CAAC8H,UAAU,CAAC5H,GAAG,CAAEH,QAAS,CAAC,EAAEgI,KAC1D,CAAC,CAEH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAAEtI,KAAK,EAAG;EACtC,OAAOA,KAAK,CAACyB,UAAU,KAAK,UAAU;AACvC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAAS8G,sBAAsBA,CAAEvI,KAAK,EAAG;EAC/C,OAAOA,KAAK,CAACsB,QAAQ,GAAIzB,sBAAsB,CAAE;AAClD","ignoreList":[]}
|
|
@@ -124,6 +124,142 @@
|
|
|
124
124
|
margin-left: 8px;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
.block-editor-global-styles-background-panel__inspector-media-replace-container {
|
|
128
|
+
border: 1px solid #ddd;
|
|
129
|
+
border-radius: 2px;
|
|
130
|
+
grid-column: 1/-1;
|
|
131
|
+
}
|
|
132
|
+
.block-editor-global-styles-background-panel__inspector-media-replace-container.is-open {
|
|
133
|
+
background-color: #f0f0f0;
|
|
134
|
+
}
|
|
135
|
+
.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item {
|
|
136
|
+
flex-grow: 1;
|
|
137
|
+
border: 0;
|
|
138
|
+
}
|
|
139
|
+
.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown {
|
|
140
|
+
display: block;
|
|
141
|
+
}
|
|
142
|
+
.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__inspector-preview-inner {
|
|
143
|
+
height: 100%;
|
|
144
|
+
}
|
|
145
|
+
.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown {
|
|
146
|
+
display: block;
|
|
147
|
+
height: 36px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item {
|
|
151
|
+
border: 1px solid #ddd;
|
|
152
|
+
grid-column: 1/-1;
|
|
153
|
+
position: relative;
|
|
154
|
+
}
|
|
155
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item .components-drop-zone__content-icon {
|
|
156
|
+
display: none;
|
|
157
|
+
}
|
|
158
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown {
|
|
159
|
+
display: block;
|
|
160
|
+
height: 36px;
|
|
161
|
+
}
|
|
162
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button {
|
|
163
|
+
color: #1e1e1e;
|
|
164
|
+
width: 100%;
|
|
165
|
+
display: block;
|
|
166
|
+
}
|
|
167
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:hover {
|
|
168
|
+
color: var(--wp-admin-theme-color);
|
|
169
|
+
}
|
|
170
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:focus {
|
|
171
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
172
|
+
}
|
|
173
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading {
|
|
174
|
+
height: 100%;
|
|
175
|
+
position: absolute;
|
|
176
|
+
z-index: 1;
|
|
177
|
+
width: 100%;
|
|
178
|
+
padding: 10px 0 0 0;
|
|
179
|
+
}
|
|
180
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading svg {
|
|
181
|
+
margin: 0;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.block-editor-global-styles-background-panel__image-preview-content,
|
|
185
|
+
.block-editor-global-styles-background-panel__dropdown-toggle {
|
|
186
|
+
height: 100%;
|
|
187
|
+
width: 100%;
|
|
188
|
+
padding-right: 12px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.block-editor-global-styles-background-panel__dropdown-toggle {
|
|
192
|
+
cursor: pointer;
|
|
193
|
+
background: transparent;
|
|
194
|
+
border: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.block-editor-global-styles-background-panel__inspector-media-replace-title {
|
|
198
|
+
word-break: break-all;
|
|
199
|
+
white-space: normal;
|
|
200
|
+
text-align: start;
|
|
201
|
+
text-align-last: center;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.block-editor-global-styles-background-panel__inspector-preview-inner .block-editor-global-styles-background-panel__inspector-image-indicator-wrapper {
|
|
205
|
+
width: 20px;
|
|
206
|
+
height: 20px;
|
|
207
|
+
min-width: auto;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.block-editor-global-styles-background-panel__inspector-image-indicator {
|
|
211
|
+
background-size: cover;
|
|
212
|
+
border-radius: 50%;
|
|
213
|
+
width: 20px;
|
|
214
|
+
height: 20px;
|
|
215
|
+
display: block;
|
|
216
|
+
position: relative;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.block-editor-global-styles-background-panel__inspector-image-indicator::after {
|
|
220
|
+
content: "";
|
|
221
|
+
position: absolute;
|
|
222
|
+
top: -1px;
|
|
223
|
+
right: -1px;
|
|
224
|
+
bottom: -1px;
|
|
225
|
+
left: -1px;
|
|
226
|
+
border-radius: 50%;
|
|
227
|
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
|
|
228
|
+
border: 1px solid transparent;
|
|
229
|
+
box-sizing: inherit;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.block-editor-global-styles-background-panel__dropdown-content-wrapper {
|
|
233
|
+
min-width: 260px;
|
|
234
|
+
overflow-x: hidden;
|
|
235
|
+
}
|
|
236
|
+
.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker-wrapper {
|
|
237
|
+
background-color: #f0f0f0;
|
|
238
|
+
width: 100%;
|
|
239
|
+
border-radius: 2px;
|
|
240
|
+
border: 1px solid #ddd;
|
|
241
|
+
}
|
|
242
|
+
.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker__media--image {
|
|
243
|
+
max-height: 180px;
|
|
244
|
+
}
|
|
245
|
+
.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker::after {
|
|
246
|
+
content: none;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.modal-open .block-editor-global-styles-background-panel__popover {
|
|
250
|
+
z-index: 159890;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.block-editor-global-styles-background-panel__media-replace-popover .components-popover__content {
|
|
254
|
+
width: 226px;
|
|
255
|
+
}
|
|
256
|
+
.block-editor-global-styles-background-panel__media-replace-popover .components-button {
|
|
257
|
+
padding: 0 8px;
|
|
258
|
+
}
|
|
259
|
+
.block-editor-global-styles-background-panel__media-replace-popover .components-button .components-menu-items__item-icon.has-icon-right {
|
|
260
|
+
margin-right: 16px;
|
|
261
|
+
}
|
|
262
|
+
|
|
127
263
|
.block-editor-block-alignment-control__menu-group .components-menu-item__info {
|
|
128
264
|
margin-top: 0;
|
|
129
265
|
}
|
|
@@ -1559,142 +1695,6 @@ iframe[name=editor-canvas] {
|
|
|
1559
1695
|
direction: ltr;
|
|
1560
1696
|
}
|
|
1561
1697
|
|
|
1562
|
-
.block-editor-global-styles-background-panel__inspector-media-replace-container {
|
|
1563
|
-
border: 1px solid #ddd;
|
|
1564
|
-
border-radius: 2px;
|
|
1565
|
-
grid-column: 1/-1;
|
|
1566
|
-
}
|
|
1567
|
-
.block-editor-global-styles-background-panel__inspector-media-replace-container.is-open {
|
|
1568
|
-
background-color: #f0f0f0;
|
|
1569
|
-
}
|
|
1570
|
-
.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item {
|
|
1571
|
-
flex-grow: 1;
|
|
1572
|
-
border: 0;
|
|
1573
|
-
}
|
|
1574
|
-
.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown {
|
|
1575
|
-
display: block;
|
|
1576
|
-
}
|
|
1577
|
-
.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__inspector-preview-inner {
|
|
1578
|
-
height: 100%;
|
|
1579
|
-
}
|
|
1580
|
-
.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown {
|
|
1581
|
-
display: block;
|
|
1582
|
-
height: 36px;
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
|
-
.block-editor-global-styles-background-panel__image-tools-panel-item {
|
|
1586
|
-
border: 1px solid #ddd;
|
|
1587
|
-
grid-column: 1/-1;
|
|
1588
|
-
position: relative;
|
|
1589
|
-
}
|
|
1590
|
-
.block-editor-global-styles-background-panel__image-tools-panel-item .components-drop-zone__content-icon {
|
|
1591
|
-
display: none;
|
|
1592
|
-
}
|
|
1593
|
-
.block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown {
|
|
1594
|
-
display: block;
|
|
1595
|
-
height: 36px;
|
|
1596
|
-
}
|
|
1597
|
-
.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button {
|
|
1598
|
-
color: #1e1e1e;
|
|
1599
|
-
width: 100%;
|
|
1600
|
-
display: block;
|
|
1601
|
-
}
|
|
1602
|
-
.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:hover {
|
|
1603
|
-
color: var(--wp-admin-theme-color);
|
|
1604
|
-
}
|
|
1605
|
-
.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:focus {
|
|
1606
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1607
|
-
}
|
|
1608
|
-
.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading {
|
|
1609
|
-
height: 100%;
|
|
1610
|
-
position: absolute;
|
|
1611
|
-
z-index: 1;
|
|
1612
|
-
width: 100%;
|
|
1613
|
-
padding: 10px 0 0 0;
|
|
1614
|
-
}
|
|
1615
|
-
.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading svg {
|
|
1616
|
-
margin: 0;
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
.block-editor-global-styles-background-panel__image-preview-content,
|
|
1620
|
-
.block-editor-global-styles-background-panel__dropdown-toggle {
|
|
1621
|
-
height: 100%;
|
|
1622
|
-
width: 100%;
|
|
1623
|
-
padding-right: 12px;
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
.block-editor-global-styles-background-panel__dropdown-toggle {
|
|
1627
|
-
cursor: pointer;
|
|
1628
|
-
background: transparent;
|
|
1629
|
-
border: none;
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
.block-editor-global-styles-background-panel__inspector-media-replace-title {
|
|
1633
|
-
word-break: break-all;
|
|
1634
|
-
white-space: normal;
|
|
1635
|
-
text-align: start;
|
|
1636
|
-
text-align-last: center;
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
.block-editor-global-styles-background-panel__inspector-preview-inner .block-editor-global-styles-background-panel__inspector-image-indicator-wrapper {
|
|
1640
|
-
width: 20px;
|
|
1641
|
-
height: 20px;
|
|
1642
|
-
min-width: auto;
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
|
-
.block-editor-global-styles-background-panel__inspector-image-indicator {
|
|
1646
|
-
background-size: cover;
|
|
1647
|
-
border-radius: 50%;
|
|
1648
|
-
width: 20px;
|
|
1649
|
-
height: 20px;
|
|
1650
|
-
display: block;
|
|
1651
|
-
position: relative;
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
.block-editor-global-styles-background-panel__inspector-image-indicator::after {
|
|
1655
|
-
content: "";
|
|
1656
|
-
position: absolute;
|
|
1657
|
-
top: -1px;
|
|
1658
|
-
right: -1px;
|
|
1659
|
-
bottom: -1px;
|
|
1660
|
-
left: -1px;
|
|
1661
|
-
border-radius: 50%;
|
|
1662
|
-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
|
|
1663
|
-
border: 1px solid transparent;
|
|
1664
|
-
box-sizing: inherit;
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
.block-editor-global-styles-background-panel__dropdown-content-wrapper {
|
|
1668
|
-
min-width: 260px;
|
|
1669
|
-
overflow-x: hidden;
|
|
1670
|
-
}
|
|
1671
|
-
.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker-wrapper {
|
|
1672
|
-
background-color: #f0f0f0;
|
|
1673
|
-
width: 100%;
|
|
1674
|
-
border-radius: 2px;
|
|
1675
|
-
border: 1px solid #ddd;
|
|
1676
|
-
}
|
|
1677
|
-
.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker__media--image {
|
|
1678
|
-
max-height: 180px;
|
|
1679
|
-
}
|
|
1680
|
-
.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker::after {
|
|
1681
|
-
content: none;
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
.modal-open .block-editor-global-styles-background-panel__popover {
|
|
1685
|
-
z-index: 159890;
|
|
1686
|
-
}
|
|
1687
|
-
|
|
1688
|
-
.block-editor-global-styles-background-panel__media-replace-popover .components-popover__content {
|
|
1689
|
-
width: 226px;
|
|
1690
|
-
}
|
|
1691
|
-
.block-editor-global-styles-background-panel__media-replace-popover .components-button {
|
|
1692
|
-
padding: 0 8px;
|
|
1693
|
-
}
|
|
1694
|
-
.block-editor-global-styles-background-panel__media-replace-popover .components-button .components-menu-items__item-icon.has-icon-right {
|
|
1695
|
-
margin-right: 16px;
|
|
1696
|
-
}
|
|
1697
|
-
|
|
1698
1698
|
.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer {
|
|
1699
1699
|
z-index: 30;
|
|
1700
1700
|
}
|
|
@@ -2118,67 +2118,11 @@ iframe[name=editor-canvas] {
|
|
|
2118
2118
|
.block-editor-link-control__field .components-base-control__label {
|
|
2119
2119
|
color: #1e1e1e;
|
|
2120
2120
|
}
|
|
2121
|
-
.block-editor-link-control__field input[type=text], .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input {
|
|
2122
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
2123
|
-
padding: 6px 8px;
|
|
2124
|
-
box-shadow: 0 0 0 transparent;
|
|
2125
|
-
transition: box-shadow 0.1s linear;
|
|
2126
|
-
border-radius: 2px;
|
|
2127
|
-
border: 1px solid #949494;
|
|
2128
|
-
/* Fonts smaller than 16px causes mobile safari to zoom. */
|
|
2129
|
-
font-size: 16px;
|
|
2130
|
-
/* Override core line-height. To be reviewed. */
|
|
2131
|
-
line-height: normal;
|
|
2132
|
-
display: block;
|
|
2133
|
-
border: 1px solid #949494;
|
|
2134
|
-
height: 40px;
|
|
2135
|
-
margin: 0;
|
|
2136
|
-
padding: 8px 16px 8px 40px;
|
|
2137
|
-
position: relative;
|
|
2138
|
-
width: 100%;
|
|
2139
|
-
}
|
|
2140
|
-
@media (prefers-reduced-motion: reduce) {
|
|
2141
|
-
.block-editor-link-control__field input[type=text], .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input {
|
|
2142
|
-
transition-duration: 0s;
|
|
2143
|
-
transition-delay: 0s;
|
|
2144
|
-
}
|
|
2145
|
-
}
|
|
2146
|
-
@media (min-width: 600px) {
|
|
2147
|
-
.block-editor-link-control__field input[type=text], .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input {
|
|
2148
|
-
font-size: 13px;
|
|
2149
|
-
/* Override core line-height. To be reviewed. */
|
|
2150
|
-
line-height: normal;
|
|
2151
|
-
}
|
|
2152
|
-
}
|
|
2153
|
-
.block-editor-link-control__field input[type=text]:focus, .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:focus {
|
|
2154
|
-
border-color: var(--wp-admin-theme-color);
|
|
2155
|
-
box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
|
|
2156
|
-
outline: 2px solid transparent;
|
|
2157
|
-
}
|
|
2158
|
-
.block-editor-link-control__field input[type=text]::-webkit-input-placeholder, .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-webkit-input-placeholder {
|
|
2159
|
-
color: rgba(30, 30, 30, 0.62);
|
|
2160
|
-
}
|
|
2161
|
-
.block-editor-link-control__field input[type=text]::-moz-placeholder, .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-moz-placeholder {
|
|
2162
|
-
opacity: 1;
|
|
2163
|
-
color: rgba(30, 30, 30, 0.62);
|
|
2164
|
-
}
|
|
2165
|
-
.block-editor-link-control__field input[type=text]:-ms-input-placeholder, .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:-ms-input-placeholder {
|
|
2166
|
-
color: rgba(30, 30, 30, 0.62);
|
|
2167
|
-
}
|
|
2168
|
-
.has-actions .block-editor-link-control__field input[type=text], .has-actions .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input {
|
|
2169
|
-
padding-left: 16px;
|
|
2170
|
-
}
|
|
2171
2121
|
|
|
2172
2122
|
.block-editor-link-control__search-error {
|
|
2173
2123
|
margin: -8px 16px 16px;
|
|
2174
2124
|
}
|
|
2175
2125
|
|
|
2176
|
-
.block-editor-link-control__search-enter {
|
|
2177
|
-
position: absolute;
|
|
2178
|
-
left: 19px;
|
|
2179
|
-
top: 3px;
|
|
2180
|
-
}
|
|
2181
|
-
|
|
2182
2126
|
.block-editor-link-control__search-actions {
|
|
2183
2127
|
padding: 8px 16px 16px;
|
|
2184
2128
|
}
|
|
@@ -2672,9 +2616,17 @@ iframe[name=editor-canvas] {
|
|
|
2672
2616
|
}
|
|
2673
2617
|
.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents {
|
|
2674
2618
|
opacity: 1;
|
|
2675
|
-
animation:
|
|
2619
|
+
animation: __wp-base-styles-fade-in 0.08s linear 0s;
|
|
2676
2620
|
animation-fill-mode: forwards;
|
|
2677
2621
|
}
|
|
2622
|
+
@keyframes __wp-base-styles-fade-in {
|
|
2623
|
+
from {
|
|
2624
|
+
opacity: 0;
|
|
2625
|
+
}
|
|
2626
|
+
to {
|
|
2627
|
+
opacity: 1;
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2678
2630
|
@media (prefers-reduced-motion: reduce) {
|
|
2679
2631
|
.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents {
|
|
2680
2632
|
animation-duration: 1ms;
|
|
@@ -3193,45 +3145,19 @@ iframe[name=editor-canvas] {
|
|
|
3193
3145
|
position: relative;
|
|
3194
3146
|
padding: 1px;
|
|
3195
3147
|
}
|
|
3196
|
-
.block-editor-block-list__block .block-editor-url-input input[type=text],
|
|
3197
|
-
.components-popover .block-editor-url-input input[type=text],
|
|
3198
|
-
.block-editor-url-input input[type=text] {
|
|
3199
|
-
width: 100%;
|
|
3200
|
-
padding: 8px 12px 8px 8px;
|
|
3201
|
-
margin-right: 0;
|
|
3202
|
-
margin-left: 0;
|
|
3203
|
-
/* Fonts smaller than 16px causes mobile safari to zoom. */
|
|
3204
|
-
font-size: 16px;
|
|
3205
|
-
}
|
|
3206
|
-
@media (min-width: 600px) {
|
|
3207
|
-
.block-editor-block-list__block .block-editor-url-input input[type=text],
|
|
3208
|
-
.components-popover .block-editor-url-input input[type=text],
|
|
3209
|
-
.block-editor-url-input input[type=text] {
|
|
3210
|
-
width: 300px;
|
|
3211
|
-
}
|
|
3212
|
-
}
|
|
3213
3148
|
@media (min-width: 600px) {
|
|
3214
|
-
.block-editor-block-list__block .block-editor-url-input
|
|
3215
|
-
.components-popover .block-editor-url-input
|
|
3216
|
-
.block-editor-url-input
|
|
3217
|
-
|
|
3149
|
+
.block-editor-block-list__block .block-editor-url-input,
|
|
3150
|
+
.components-popover .block-editor-url-input,
|
|
3151
|
+
.block-editor-url-input {
|
|
3152
|
+
min-width: 300px;
|
|
3153
|
+
width: auto;
|
|
3218
3154
|
}
|
|
3219
3155
|
}
|
|
3220
|
-
.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,
|
|
3221
|
-
.components-popover .block-editor-url-input input[type=text]::-ms-clear,
|
|
3222
|
-
.block-editor-url-input input[type=text]::-ms-clear {
|
|
3223
|
-
display: none;
|
|
3224
|
-
}
|
|
3225
3156
|
.block-editor-block-list__block .block-editor-url-input.is-full-width,
|
|
3226
3157
|
.components-popover .block-editor-url-input.is-full-width,
|
|
3227
3158
|
.block-editor-url-input.is-full-width {
|
|
3228
3159
|
width: 100%;
|
|
3229
3160
|
}
|
|
3230
|
-
.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],
|
|
3231
|
-
.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],
|
|
3232
|
-
.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text] {
|
|
3233
|
-
width: 100%;
|
|
3234
|
-
}
|
|
3235
3161
|
.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,
|
|
3236
3162
|
.components-popover .block-editor-url-input.is-full-width__suggestions,
|
|
3237
3163
|
.block-editor-url-input.is-full-width__suggestions {
|
|
@@ -3246,47 +3172,6 @@ iframe[name=editor-canvas] {
|
|
|
3246
3172
|
left: 8px;
|
|
3247
3173
|
}
|
|
3248
3174
|
|
|
3249
|
-
.block-editor-url-input__input[type=text] {
|
|
3250
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
3251
|
-
padding: 6px 8px;
|
|
3252
|
-
box-shadow: 0 0 0 transparent;
|
|
3253
|
-
transition: box-shadow 0.1s linear;
|
|
3254
|
-
border-radius: 2px;
|
|
3255
|
-
border: 1px solid #949494;
|
|
3256
|
-
/* Fonts smaller than 16px causes mobile safari to zoom. */
|
|
3257
|
-
font-size: 16px;
|
|
3258
|
-
/* Override core line-height. To be reviewed. */
|
|
3259
|
-
line-height: normal;
|
|
3260
|
-
}
|
|
3261
|
-
@media (prefers-reduced-motion: reduce) {
|
|
3262
|
-
.block-editor-url-input__input[type=text] {
|
|
3263
|
-
transition-duration: 0s;
|
|
3264
|
-
transition-delay: 0s;
|
|
3265
|
-
}
|
|
3266
|
-
}
|
|
3267
|
-
@media (min-width: 600px) {
|
|
3268
|
-
.block-editor-url-input__input[type=text] {
|
|
3269
|
-
font-size: 13px;
|
|
3270
|
-
/* Override core line-height. To be reviewed. */
|
|
3271
|
-
line-height: normal;
|
|
3272
|
-
}
|
|
3273
|
-
}
|
|
3274
|
-
.block-editor-url-input__input[type=text]:focus {
|
|
3275
|
-
border-color: var(--wp-admin-theme-color);
|
|
3276
|
-
box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
|
|
3277
|
-
outline: 2px solid transparent;
|
|
3278
|
-
}
|
|
3279
|
-
.block-editor-url-input__input[type=text]::-webkit-input-placeholder {
|
|
3280
|
-
color: rgba(30, 30, 30, 0.62);
|
|
3281
|
-
}
|
|
3282
|
-
.block-editor-url-input__input[type=text]::-moz-placeholder {
|
|
3283
|
-
opacity: 1;
|
|
3284
|
-
color: rgba(30, 30, 30, 0.62);
|
|
3285
|
-
}
|
|
3286
|
-
.block-editor-url-input__input[type=text]:-ms-input-placeholder {
|
|
3287
|
-
color: rgba(30, 30, 30, 0.62);
|
|
3288
|
-
}
|
|
3289
|
-
|
|
3290
3175
|
.block-editor-url-input__suggestions {
|
|
3291
3176
|
max-height: 200px;
|
|
3292
3177
|
transition: all 0.15s ease-in-out;
|
|
@@ -3354,7 +3239,7 @@ iframe[name=editor-canvas] {
|
|
|
3354
3239
|
}
|
|
3355
3240
|
|
|
3356
3241
|
.block-editor-url-input__button-modal {
|
|
3357
|
-
box-shadow: 0
|
|
3242
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01);
|
|
3358
3243
|
border: 1px solid #ddd;
|
|
3359
3244
|
background: #fff;
|
|
3360
3245
|
}
|
|
@@ -3456,18 +3341,10 @@ iframe[name=editor-canvas] {
|
|
|
3456
3341
|
}
|
|
3457
3342
|
|
|
3458
3343
|
.block-editor-hooks__block-hooks {
|
|
3459
|
-
/**
|
|
3460
|
-
* Since we're displaying the block icon alongside the block name,
|
|
3461
|
-
* we need to right-align the toggle.
|
|
3462
|
-
*/
|
|
3463
3344
|
/**
|
|
3464
3345
|
* Un-reverse the flex direction for the toggle's label.
|
|
3465
3346
|
*/
|
|
3466
3347
|
}
|
|
3467
|
-
.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack {
|
|
3468
|
-
/* stylelint-disable-next-line declaration-property-value-allowed-list -- This should be refactored to not use the row-reverse value. */
|
|
3469
|
-
flex-direction: row-reverse;
|
|
3470
|
-
}
|
|
3471
3348
|
.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack .components-h-stack {
|
|
3472
3349
|
flex-direction: row;
|
|
3473
3350
|
}
|
|
@@ -3811,7 +3688,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
3811
3688
|
.block-editor-inserter__popover.is-quick .components-popover__content {
|
|
3812
3689
|
border: none;
|
|
3813
3690
|
outline: none;
|
|
3814
|
-
box-shadow: 0
|
|
3691
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01);
|
|
3815
3692
|
}
|
|
3816
3693
|
.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter > * {
|
|
3817
3694
|
border-right: 1px solid #ccc;
|
|
@@ -4159,7 +4036,6 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
4159
4036
|
background: #1e1e1e;
|
|
4160
4037
|
color: #fff;
|
|
4161
4038
|
width: 100%;
|
|
4162
|
-
height: 44px;
|
|
4163
4039
|
border-radius: 0;
|
|
4164
4040
|
}
|
|
4165
4041
|
.block-editor-inserter__quick-inserter-expand.components-button:hover {
|