@wordpress/edit-site 6.27.0 → 6.28.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/media/index.js +1 -1
- package/build/components/media/index.js.map +1 -1
- package/build/components/page-templates/fields.js +1 -4
- package/build/components/page-templates/fields.js.map +1 -1
- package/build/components/page-templates/hooks.js +1 -2
- package/build/components/page-templates/hooks.js.map +1 -1
- package/build/components/page-templates/index.js +1 -8
- package/build/components/page-templates/index.js.map +1 -1
- package/build/components/post-list/index.js +1 -30
- package/build/components/post-list/index.js.map +1 -1
- package/build/components/sidebar-dataviews/default-views.js +53 -37
- package/build/components/sidebar-dataviews/default-views.js.map +1 -1
- package/build/components/style-book/index.js +2 -2
- package/build/components/style-book/index.js.map +1 -1
- package/build/store/selectors.js +1 -1
- package/build/store/selectors.js.map +1 -1
- package/build-module/components/media/index.js +1 -1
- package/build-module/components/media/index.js.map +1 -1
- package/build-module/components/page-templates/fields.js +1 -4
- package/build-module/components/page-templates/fields.js.map +1 -1
- package/build-module/components/page-templates/hooks.js +1 -2
- package/build-module/components/page-templates/hooks.js.map +1 -1
- package/build-module/components/page-templates/index.js +1 -8
- package/build-module/components/page-templates/index.js.map +1 -1
- package/build-module/components/post-list/index.js +1 -30
- package/build-module/components/post-list/index.js.map +1 -1
- package/build-module/components/sidebar-dataviews/default-views.js +53 -37
- package/build-module/components/sidebar-dataviews/default-views.js.map +1 -1
- package/build-module/components/style-book/index.js +2 -2
- package/build-module/components/style-book/index.js.map +1 -1
- package/build-module/store/selectors.js +1 -1
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/posts-rtl.css +89 -54
- package/build-style/posts.css +89 -54
- package/build-style/style-rtl.css +114 -102
- package/build-style/style.css +114 -102
- package/package.json +42 -42
- package/src/components/editor/style.scss +2 -2
- package/src/components/global-styles-sidebar/style.scss +0 -19
- package/src/components/media/index.js +1 -1
- package/src/components/page-templates/fields.js +1 -7
- package/src/components/page-templates/hooks.js +7 -7
- package/src/components/page-templates/index.js +0 -7
- package/src/components/page-templates/style.scss +0 -23
- package/src/components/post-list/index.js +1 -42
- package/src/components/sidebar-dataviews/default-views.js +63 -47
- package/src/components/sidebar-navigation-screen-navigation-menus/style.scss +0 -4
- package/src/components/style-book/index.js +2 -2
- package/src/store/selectors.js +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["store","coreDataStore","createRegistrySelector","createSelector","deprecated","Platform","preferencesStore","editorStore","blockEditorStore","unlock","TEMPLATE_PART_POST_TYPE","getFilteredTemplatePartBlocks","isFeatureActive","select","_","featureName","since","alternative","get","__experimentalGetPreviewDeviceType","version","getDeviceType","getCanUserCreateMedia","canUser","getReusableBlocks","isWeb","OS","getEntityRecords","per_page","getSettings","state","settings","getHomeTemplateId","getEditedPostType","editedPost","postType","getEditedPostId","id","getEditedPostContext","context","getPage","isInserterOpened","__experimentalGetInsertionPoint","getInserter","isListViewOpened","isSaveViewOpened","saveViewPanel","getBlocksAndTemplateParts","templateParts","getBlocksByName","getBlocksByClientId","clientIds","blocks","getCurrentTemplateTemplateParts","getEditorMode","getCurrentTemplateNavigationPanelSubMenu","getNavigationPanelActiveMenu","isNavigationOpened","isPage","postId","hasPageContentFocus"],"sources":["@wordpress/edit-site/src/store/selectors.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { store as coreDataStore } from '@wordpress/core-data';\nimport { createRegistrySelector, createSelector } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { Platform } from '@wordpress/element';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { store as editorStore } from '@wordpress/editor';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../lock-unlock';\nimport { TEMPLATE_PART_POST_TYPE } from '../utils/constants';\nimport getFilteredTemplatePartBlocks from '../utils/get-filtered-template-parts';\n\n/**\n * @typedef {'template'|'template_type'} TemplateType Template type.\n */\n\n/**\n * Returns whether the given feature is enabled or not.\n *\n * @deprecated\n * @param {Object} state Global application state.\n * @param {string} featureName Feature slug.\n *\n * @return {boolean} Is active.\n */\nexport const isFeatureActive = createRegistrySelector(\n\t( select ) => ( _, featureName ) => {\n\t\tdeprecated( `select( 'core/edit-site' ).isFeatureActive`, {\n\t\t\tsince: '6.0',\n\t\t\talternative: `select( 'core/preferences' ).get`,\n\t\t} );\n\n\t\treturn !! select( preferencesStore ).get(\n\t\t\t'core/edit-site',\n\t\t\tfeatureName\n\t\t);\n\t}\n);\n\n/**\n * Returns the current editing canvas device type.\n *\n * @deprecated\n *\n * @param {Object} state Global application state.\n *\n * @return {string} Device type.\n */\nexport const __experimentalGetPreviewDeviceType = createRegistrySelector(\n\t( select ) => () => {\n\t\tdeprecated(\n\t\t\t`select( 'core/edit-site' ).__experimentalGetPreviewDeviceType`,\n\t\t\t{\n\t\t\t\tsince: '6.5',\n\t\t\t\tversion: '6.7',\n\t\t\t\talternative: `select( 'core/editor' ).getDeviceType`,\n\t\t\t}\n\t\t);\n\t\treturn select( editorStore ).getDeviceType();\n\t}\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 ) => () => {\n\t\tdeprecated(\n\t\t\t`wp.data.select( 'core/edit-site' ).getCanUserCreateMedia()`,\n\t\t\t{\n\t\t\t\tsince: '6.7',\n\t\t\t\talternative: `wp.data.select( 'core' ).canUser( 'create', { kind: 'root', type: 'media' } )`,\n\t\t\t}\n\t\t);\n\n\t\treturn select( coreDataStore ).canUser( 'create', 'media' );\n\t}\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\tdeprecated( `select( 'core/edit-site' ).getReusableBlocks()`, {\n\t\tsince: '6.5',\n\t\tversion: '6.8',\n\t\talternative: `select( 'core/core' ).getEntityRecords( 'postType', 'wp_block' )`,\n\t} );\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 site editor settings.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Settings.\n */\nexport function getSettings( state ) {\n\t// It is important that we don't inject anything into these settings locally.\n\t// The reason for this is that we have an effect in place that calls setSettings based on the previous value of getSettings.\n\t// If we add computed settings here, we'll be adding these computed settings to the state which is very unexpected.\n\treturn state.settings;\n}\n\n/**\n * @deprecated\n */\nexport function getHomeTemplateId() {\n\tdeprecated( \"select( 'core/edit-site' ).getHomeTemplateId\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n}\n\n/**\n * Returns the current edited post type (wp_template or wp_template_part).\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {?TemplateType} Template type.\n */\nexport function getEditedPostType( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getEditedPostType\", {\n\t\tsince: '6.8',\n\t\talternative: \"select( 'core/editor' ).getCurrentPostType\",\n\t} );\n\treturn state.editedPost.postType;\n}\n\n/**\n * Returns the ID of the currently edited template or template part.\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {?string} Post ID.\n */\nexport function getEditedPostId( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getEditedPostId\", {\n\t\tsince: '6.8',\n\t\talternative: \"select( 'core/editor' ).getCurrentPostId\",\n\t} );\n\treturn state.editedPost.id;\n}\n\n/**\n * Returns the edited post's context object.\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {Object} Page.\n */\nexport function getEditedPostContext( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getEditedPostContext\", {\n\t\tsince: '6.8',\n\t} );\n\n\treturn state.editedPost.context;\n}\n\n/**\n * Returns the current page object.\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {Object} Page.\n */\nexport function getPage( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getPage\", {\n\t\tsince: '6.8',\n\t} );\n\n\treturn { context: state.editedPost.context };\n}\n\n/**\n * Returns true if the inserter is opened.\n *\n * @deprecated\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the inserter is opened.\n */\nexport const isInserterOpened = createRegistrySelector( ( select ) => () => {\n\tdeprecated( `select( 'core/edit-site' ).isInserterOpened`, {\n\t\tsince: '6.5',\n\t\talternative: `select( 'core/editor' ).isInserterOpened`,\n\t} );\n\treturn select( editorStore ).isInserterOpened();\n} );\n\n/**\n * Get the insertion point for the inserter.\n *\n * @deprecated\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 const __experimentalGetInsertionPoint = createRegistrySelector(\n\t( select ) => () => {\n\t\tdeprecated(\n\t\t\t`select( 'core/edit-site' ).__experimentalGetInsertionPoint`,\n\t\t\t{\n\t\t\t\tsince: '6.5',\n\t\t\t\tversion: '6.7',\n\t\t\t}\n\t\t);\n\t\treturn unlock( select( editorStore ) ).getInserter();\n\t}\n);\n\n/**\n * Returns true if the list view is opened.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the list view is opened.\n */\nexport const isListViewOpened = createRegistrySelector( ( select ) => () => {\n\tdeprecated( `select( 'core/edit-site' ).isListViewOpened`, {\n\t\tsince: '6.5',\n\t\talternative: `select( 'core/editor' ).isListViewOpened`,\n\t} );\n\treturn select( editorStore ).isListViewOpened();\n} );\n\n/**\n * Returns the current opened/closed state of the save panel.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} True if the save panel should be open; false if closed.\n */\nexport function isSaveViewOpened( state ) {\n\treturn state.saveViewPanel;\n}\n\nfunction getBlocksAndTemplateParts( select ) {\n\tconst templateParts = select( coreDataStore ).getEntityRecords(\n\t\t'postType',\n\t\tTEMPLATE_PART_POST_TYPE,\n\t\t{ per_page: -1 }\n\t);\n\n\tconst { getBlocksByName, getBlocksByClientId } = select( blockEditorStore );\n\n\tconst clientIds = getBlocksByName( 'core/template-part' );\n\tconst blocks = getBlocksByClientId( clientIds );\n\treturn [ blocks, templateParts ];\n}\n\n/**\n * Returns the template parts and their blocks for the current edited template.\n *\n * @deprecated\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 ) =>\n\t\tcreateSelector(\n\t\t\t() => {\n\t\t\t\tdeprecated(\n\t\t\t\t\t`select( 'core/edit-site' ).getCurrentTemplateTemplateParts()`,\n\t\t\t\t\t{\n\t\t\t\t\t\tsince: '6.7',\n\t\t\t\t\t\tversion: '6.9',\n\t\t\t\t\t\talternative: `select( 'core/block-editor' ).getBlocksByName( 'core/template-part' )`,\n\t\t\t\t\t}\n\t\t\t\t);\n\n\t\t\t\treturn getFilteredTemplatePartBlocks(\n\t\t\t\t\t...getBlocksAndTemplateParts( select )\n\t\t\t\t);\n\t\t\t},\n\t\t\t() => getBlocksAndTemplateParts( select )\n\t\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 const getEditorMode = createRegistrySelector( ( select ) => () => {\n\treturn select( preferencesStore ).get( 'core', 'editorMode' );\n} );\n\n/**\n * @deprecated\n */\nexport function getCurrentTemplateNavigationPanelSubMenu() {\n\tdeprecated(\n\t\t\"dispatch( 'core/edit-site' ).getCurrentTemplateNavigationPanelSubMenu\",\n\t\t{\n\t\t\tsince: '6.2',\n\t\t\tversion: '6.4',\n\t\t}\n\t);\n}\n\n/**\n * @deprecated\n */\nexport function getNavigationPanelActiveMenu() {\n\tdeprecated( \"dispatch( 'core/edit-site' ).getNavigationPanelActiveMenu\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n}\n\n/**\n * @deprecated\n */\nexport function isNavigationOpened() {\n\tdeprecated( \"dispatch( 'core/edit-site' ).isNavigationOpened\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n}\n\n/**\n * Whether or not the editor has a page loaded into it.\n *\n * @see setPage\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether or not the editor has a page loaded into it.\n */\nexport function isPage( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).isPage\", {\n\t\tsince: '6.8',\n\t\talternative: \"select( 'core/editor' ).getCurrentPostType\",\n\t} );\n\n\treturn !! state.editedPost.context?.postId;\n}\n\n/**\n * Whether or not the editor allows only page content to be edited.\n *\n * @deprecated\n *\n * @return {boolean} Whether or not focus is on editing page content.\n */\nexport function hasPageContentFocus() {\n\tdeprecated( `select( 'core/edit-site' ).hasPageContentFocus`, {\n\t\tsince: '6.5',\n\t} );\n\n\treturn false;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,KAAK,IAAIC,aAAa,QAAQ,sBAAsB;AAC7D,SAASC,sBAAsB,EAAEC,cAAc,QAAQ,iBAAiB;AACxE,OAAOC,UAAU,MAAM,uBAAuB;AAC9C,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASL,KAAK,IAAIM,gBAAgB,QAAQ,wBAAwB;AAClE,SAASN,KAAK,IAAIO,WAAW,QAAQ,mBAAmB;AACxD,SAASP,KAAK,IAAIQ,gBAAgB,QAAQ,yBAAyB;;AAEnE;AACA;AACA;AACA,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,uBAAuB,QAAQ,oBAAoB;AAC5D,OAAOC,6BAA6B,MAAM,sCAAsC;;AAEhF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAGV,sBAAsB,CAClDW,MAAM,IAAM,CAAEC,CAAC,EAAEC,WAAW,KAAM;EACnCX,UAAU,CAAE,4CAA4C,EAAE;IACzDY,KAAK,EAA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ACA;AACA;AACA,OAAO,SAASsC,MAAMA,CAAE5B,KAAK,EAAG;EAC/B1B,UAAU,CAAE,mCAAmC,EAAE;IAChDY,KAAK,EAAE,KAAK;IACZC,WAAW,EAAE;EACd,CAAE,CAAC;EAEH,OAAO,CAAC,CAAEa,KAAK,CAACI,UAAU,CAACK,OAAO,EAAEoB,MAAM;AAC3C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAAA,EAAG;EACrCxD,UAAU,CAAE,gDAAgD,EAAE;IAC7DY,KAAK,EAAE;EACR,CAAE,CAAC;EAEH,OAAO,KAAK;AACb","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["store","coreDataStore","createRegistrySelector","createSelector","deprecated","Platform","preferencesStore","editorStore","blockEditorStore","unlock","TEMPLATE_PART_POST_TYPE","getFilteredTemplatePartBlocks","isFeatureActive","select","_","featureName","since","alternative","get","__experimentalGetPreviewDeviceType","version","getDeviceType","getCanUserCreateMedia","canUser","getReusableBlocks","isWeb","OS","getEntityRecords","per_page","getSettings","state","settings","getHomeTemplateId","getEditedPostType","editedPost","postType","getEditedPostId","id","getEditedPostContext","context","getPage","isInserterOpened","__experimentalGetInsertionPoint","getInserter","isListViewOpened","isSaveViewOpened","saveViewPanel","getBlocksAndTemplateParts","templateParts","getBlocksByName","getBlocksByClientId","clientIds","blocks","getCurrentTemplateTemplateParts","getEditorMode","getCurrentTemplateNavigationPanelSubMenu","getNavigationPanelActiveMenu","isNavigationOpened","isPage","postId","hasPageContentFocus"],"sources":["@wordpress/edit-site/src/store/selectors.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { store as coreDataStore } from '@wordpress/core-data';\nimport { createRegistrySelector, createSelector } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { Platform } from '@wordpress/element';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { store as editorStore } from '@wordpress/editor';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../lock-unlock';\nimport { TEMPLATE_PART_POST_TYPE } from '../utils/constants';\nimport getFilteredTemplatePartBlocks from '../utils/get-filtered-template-parts';\n\n/**\n * @typedef {'template'|'template_type'} TemplateType Template type.\n */\n\n/**\n * Returns whether the given feature is enabled or not.\n *\n * @deprecated\n * @param {Object} state Global application state.\n * @param {string} featureName Feature slug.\n *\n * @return {boolean} Is active.\n */\nexport const isFeatureActive = createRegistrySelector(\n\t( select ) => ( _, featureName ) => {\n\t\tdeprecated( `select( 'core/edit-site' ).isFeatureActive`, {\n\t\t\tsince: '6.0',\n\t\t\talternative: `select( 'core/preferences' ).get`,\n\t\t} );\n\n\t\treturn !! select( preferencesStore ).get(\n\t\t\t'core/edit-site',\n\t\t\tfeatureName\n\t\t);\n\t}\n);\n\n/**\n * Returns the current editing canvas device type.\n *\n * @deprecated\n *\n * @param {Object} state Global application state.\n *\n * @return {string} Device type.\n */\nexport const __experimentalGetPreviewDeviceType = createRegistrySelector(\n\t( select ) => () => {\n\t\tdeprecated(\n\t\t\t`select( 'core/edit-site' ).__experimentalGetPreviewDeviceType`,\n\t\t\t{\n\t\t\t\tsince: '6.5',\n\t\t\t\tversion: '6.7',\n\t\t\t\talternative: `select( 'core/editor' ).getDeviceType`,\n\t\t\t}\n\t\t);\n\t\treturn select( editorStore ).getDeviceType();\n\t}\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 ) => () => {\n\t\tdeprecated(\n\t\t\t`wp.data.select( 'core/edit-site' ).getCanUserCreateMedia()`,\n\t\t\t{\n\t\t\t\tsince: '6.7',\n\t\t\t\talternative: `wp.data.select( 'core' ).canUser( 'create', { kind: 'postType', type: 'attachment' } )`,\n\t\t\t}\n\t\t);\n\n\t\treturn select( coreDataStore ).canUser( 'create', 'media' );\n\t}\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\tdeprecated( `select( 'core/edit-site' ).getReusableBlocks()`, {\n\t\tsince: '6.5',\n\t\tversion: '6.8',\n\t\talternative: `select( 'core/core' ).getEntityRecords( 'postType', 'wp_block' )`,\n\t} );\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 site editor settings.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Settings.\n */\nexport function getSettings( state ) {\n\t// It is important that we don't inject anything into these settings locally.\n\t// The reason for this is that we have an effect in place that calls setSettings based on the previous value of getSettings.\n\t// If we add computed settings here, we'll be adding these computed settings to the state which is very unexpected.\n\treturn state.settings;\n}\n\n/**\n * @deprecated\n */\nexport function getHomeTemplateId() {\n\tdeprecated( \"select( 'core/edit-site' ).getHomeTemplateId\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n}\n\n/**\n * Returns the current edited post type (wp_template or wp_template_part).\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {?TemplateType} Template type.\n */\nexport function getEditedPostType( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getEditedPostType\", {\n\t\tsince: '6.8',\n\t\talternative: \"select( 'core/editor' ).getCurrentPostType\",\n\t} );\n\treturn state.editedPost.postType;\n}\n\n/**\n * Returns the ID of the currently edited template or template part.\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {?string} Post ID.\n */\nexport function getEditedPostId( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getEditedPostId\", {\n\t\tsince: '6.8',\n\t\talternative: \"select( 'core/editor' ).getCurrentPostId\",\n\t} );\n\treturn state.editedPost.id;\n}\n\n/**\n * Returns the edited post's context object.\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {Object} Page.\n */\nexport function getEditedPostContext( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getEditedPostContext\", {\n\t\tsince: '6.8',\n\t} );\n\n\treturn state.editedPost.context;\n}\n\n/**\n * Returns the current page object.\n *\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {Object} Page.\n */\nexport function getPage( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).getPage\", {\n\t\tsince: '6.8',\n\t} );\n\n\treturn { context: state.editedPost.context };\n}\n\n/**\n * Returns true if the inserter is opened.\n *\n * @deprecated\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the inserter is opened.\n */\nexport const isInserterOpened = createRegistrySelector( ( select ) => () => {\n\tdeprecated( `select( 'core/edit-site' ).isInserterOpened`, {\n\t\tsince: '6.5',\n\t\talternative: `select( 'core/editor' ).isInserterOpened`,\n\t} );\n\treturn select( editorStore ).isInserterOpened();\n} );\n\n/**\n * Get the insertion point for the inserter.\n *\n * @deprecated\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 const __experimentalGetInsertionPoint = createRegistrySelector(\n\t( select ) => () => {\n\t\tdeprecated(\n\t\t\t`select( 'core/edit-site' ).__experimentalGetInsertionPoint`,\n\t\t\t{\n\t\t\t\tsince: '6.5',\n\t\t\t\tversion: '6.7',\n\t\t\t}\n\t\t);\n\t\treturn unlock( select( editorStore ) ).getInserter();\n\t}\n);\n\n/**\n * Returns true if the list view is opened.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the list view is opened.\n */\nexport const isListViewOpened = createRegistrySelector( ( select ) => () => {\n\tdeprecated( `select( 'core/edit-site' ).isListViewOpened`, {\n\t\tsince: '6.5',\n\t\talternative: `select( 'core/editor' ).isListViewOpened`,\n\t} );\n\treturn select( editorStore ).isListViewOpened();\n} );\n\n/**\n * Returns the current opened/closed state of the save panel.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} True if the save panel should be open; false if closed.\n */\nexport function isSaveViewOpened( state ) {\n\treturn state.saveViewPanel;\n}\n\nfunction getBlocksAndTemplateParts( select ) {\n\tconst templateParts = select( coreDataStore ).getEntityRecords(\n\t\t'postType',\n\t\tTEMPLATE_PART_POST_TYPE,\n\t\t{ per_page: -1 }\n\t);\n\n\tconst { getBlocksByName, getBlocksByClientId } = select( blockEditorStore );\n\n\tconst clientIds = getBlocksByName( 'core/template-part' );\n\tconst blocks = getBlocksByClientId( clientIds );\n\treturn [ blocks, templateParts ];\n}\n\n/**\n * Returns the template parts and their blocks for the current edited template.\n *\n * @deprecated\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 ) =>\n\t\tcreateSelector(\n\t\t\t() => {\n\t\t\t\tdeprecated(\n\t\t\t\t\t`select( 'core/edit-site' ).getCurrentTemplateTemplateParts()`,\n\t\t\t\t\t{\n\t\t\t\t\t\tsince: '6.7',\n\t\t\t\t\t\tversion: '6.9',\n\t\t\t\t\t\talternative: `select( 'core/block-editor' ).getBlocksByName( 'core/template-part' )`,\n\t\t\t\t\t}\n\t\t\t\t);\n\n\t\t\t\treturn getFilteredTemplatePartBlocks(\n\t\t\t\t\t...getBlocksAndTemplateParts( select )\n\t\t\t\t);\n\t\t\t},\n\t\t\t() => getBlocksAndTemplateParts( select )\n\t\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 const getEditorMode = createRegistrySelector( ( select ) => () => {\n\treturn select( preferencesStore ).get( 'core', 'editorMode' );\n} );\n\n/**\n * @deprecated\n */\nexport function getCurrentTemplateNavigationPanelSubMenu() {\n\tdeprecated(\n\t\t\"dispatch( 'core/edit-site' ).getCurrentTemplateNavigationPanelSubMenu\",\n\t\t{\n\t\t\tsince: '6.2',\n\t\t\tversion: '6.4',\n\t\t}\n\t);\n}\n\n/**\n * @deprecated\n */\nexport function getNavigationPanelActiveMenu() {\n\tdeprecated( \"dispatch( 'core/edit-site' ).getNavigationPanelActiveMenu\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n}\n\n/**\n * @deprecated\n */\nexport function isNavigationOpened() {\n\tdeprecated( \"dispatch( 'core/edit-site' ).isNavigationOpened\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n}\n\n/**\n * Whether or not the editor has a page loaded into it.\n *\n * @see setPage\n * @deprecated\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether or not the editor has a page loaded into it.\n */\nexport function isPage( state ) {\n\tdeprecated( \"select( 'core/edit-site' ).isPage\", {\n\t\tsince: '6.8',\n\t\talternative: \"select( 'core/editor' ).getCurrentPostType\",\n\t} );\n\n\treturn !! state.editedPost.context?.postId;\n}\n\n/**\n * Whether or not the editor allows only page content to be edited.\n *\n * @deprecated\n *\n * @return {boolean} Whether or not focus is on editing page content.\n */\nexport function hasPageContentFocus() {\n\tdeprecated( `select( 'core/edit-site' ).hasPageContentFocus`, {\n\t\tsince: '6.5',\n\t} );\n\n\treturn false;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,KAAK,IAAIC,aAAa,QAAQ,sBAAsB;AAC7D,SAASC,sBAAsB,EAAEC,cAAc,QAAQ,iBAAiB;AACxE,OAAOC,UAAU,MAAM,uBAAuB;AAC9C,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASL,KAAK,IAAIM,gBAAgB,QAAQ,wBAAwB;AAClE,SAASN,KAAK,IAAIO,WAAW,QAAQ,mBAAmB;AACxD,SAASP,KAAK,IAAIQ,gBAAgB,QAAQ,yBAAyB;;AAEnE;AACA;AACA;AACA,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,uBAAuB,QAAQ,oBAAoB;AAC5D,OAAOC,6BAA6B,MAAM,sCAAsC;;AAEhF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAA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D,UAAU,CAAE,iDAAiD,EAAE;IAC9DY,KAAK,EAAE,KAAK;IACZI,OAAO,EAAE;EACV,CAAE,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASsC,MAAMA,CAAE5B,KAAK,EAAG;EAC/B1B,UAAU,CAAE,mCAAmC,EAAE;IAChDY,KAAK,EAAE,KAAK;IACZC,WAAW,EAAE;EACd,CAAE,CAAC;EAEH,OAAO,CAAC,CAAEa,KAAK,CAACI,UAAU,CAACK,OAAO,EAAEoB,MAAM;AAC3C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAAA,EAAG;EACrCxD,UAAU,CAAE,gDAAgD,EAAE;IAC7DY,KAAK,EAAE;EACR,CAAE,CAAC;EAEH,OAAO,KAAK;AACb","ignoreList":[]}
|
|
@@ -400,7 +400,9 @@
|
|
|
400
400
|
line-height: 1.4;
|
|
401
401
|
}
|
|
402
402
|
.dataviews-filters__summary-popover .components-popover__content {
|
|
403
|
-
width:
|
|
403
|
+
width: 100%;
|
|
404
|
+
min-width: 230px;
|
|
405
|
+
max-width: 250px;
|
|
404
406
|
border-radius: 4px;
|
|
405
407
|
}
|
|
406
408
|
.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content {
|
|
@@ -447,10 +449,13 @@
|
|
|
447
449
|
align-items: center;
|
|
448
450
|
box-sizing: border-box;
|
|
449
451
|
}
|
|
452
|
+
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable {
|
|
453
|
+
cursor: default;
|
|
454
|
+
}
|
|
450
455
|
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset {
|
|
451
456
|
padding-inline-end: 28px;
|
|
452
457
|
}
|
|
453
|
-
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true] {
|
|
458
|
+
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable), .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true] {
|
|
454
459
|
background: #e0e0e0;
|
|
455
460
|
color: #1e1e1e;
|
|
456
461
|
}
|
|
@@ -1045,9 +1050,22 @@
|
|
|
1045
1050
|
|
|
1046
1051
|
.dataviews-view-grid {
|
|
1047
1052
|
margin-bottom: auto;
|
|
1053
|
+
display: grid;
|
|
1054
|
+
gap: 32px;
|
|
1048
1055
|
grid-template-rows: max-content;
|
|
1056
|
+
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
|
1049
1057
|
padding: 0 48px 24px;
|
|
1050
1058
|
container-type: inline-size;
|
|
1059
|
+
/**
|
|
1060
|
+
* Breakpoints were adjusted from media queries breakpoints to account for
|
|
1061
|
+
* the sidebar width. This was done to match the existing styles we had.
|
|
1062
|
+
*/
|
|
1063
|
+
}
|
|
1064
|
+
@container (max-width: 480px) {
|
|
1065
|
+
.dataviews-view-grid {
|
|
1066
|
+
padding-right: 24px;
|
|
1067
|
+
padding-left: 24px;
|
|
1068
|
+
}
|
|
1051
1069
|
}
|
|
1052
1070
|
@media not (prefers-reduced-motion) {
|
|
1053
1071
|
.dataviews-view-grid {
|
|
@@ -1087,7 +1105,7 @@
|
|
|
1087
1105
|
width: 100%;
|
|
1088
1106
|
min-height: 200px;
|
|
1089
1107
|
aspect-ratio: 1/1;
|
|
1090
|
-
background-color: #
|
|
1108
|
+
background-color: #fff;
|
|
1091
1109
|
border-radius: 4px;
|
|
1092
1110
|
position: relative;
|
|
1093
1111
|
}
|
|
@@ -1141,40 +1159,6 @@
|
|
|
1141
1159
|
padding-bottom: 12px;
|
|
1142
1160
|
}
|
|
1143
1161
|
|
|
1144
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1145
|
-
/**
|
|
1146
|
-
* Breakpoints were adjusted from media queries breakpoints to account for
|
|
1147
|
-
* the sidebar width. This was done to match the existing styles we had.
|
|
1148
|
-
*/
|
|
1149
|
-
}
|
|
1150
|
-
@container (max-width: 480px) {
|
|
1151
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1152
|
-
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
1153
|
-
padding-right: 24px;
|
|
1154
|
-
padding-left: 24px;
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
@container (min-width: 480px) {
|
|
1158
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1159
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
@container (min-width: 780px) {
|
|
1163
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1164
|
-
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
@container (min-width: 1140px) {
|
|
1168
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1169
|
-
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
@container (min-width: 1520px) {
|
|
1173
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1174
|
-
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
1162
|
.dataviews-view-grid__field-value:empty,
|
|
1179
1163
|
.dataviews-view-grid__field:empty {
|
|
1180
1164
|
display: none;
|
|
@@ -1203,8 +1187,8 @@
|
|
|
1203
1187
|
}
|
|
1204
1188
|
|
|
1205
1189
|
.dataviews-view-grid__group-header {
|
|
1206
|
-
font-size:
|
|
1207
|
-
font-weight:
|
|
1190
|
+
font-size: 15px;
|
|
1191
|
+
font-weight: 500;
|
|
1208
1192
|
color: #1e1e1e;
|
|
1209
1193
|
margin: 0 0 8px 0;
|
|
1210
1194
|
padding: 0 48px;
|
|
@@ -1323,7 +1307,7 @@ div.dataviews-view-list {
|
|
|
1323
1307
|
overflow: hidden;
|
|
1324
1308
|
position: relative;
|
|
1325
1309
|
flex-shrink: 0;
|
|
1326
|
-
background-color: #
|
|
1310
|
+
background-color: #fff;
|
|
1327
1311
|
border-radius: 4px;
|
|
1328
1312
|
}
|
|
1329
1313
|
.dataviews-view-list .dataviews-view-list__media-wrapper img {
|
|
@@ -1387,7 +1371,6 @@ div.dataviews-view-list {
|
|
|
1387
1371
|
.dataviews-view-table td,
|
|
1388
1372
|
.dataviews-view-table th {
|
|
1389
1373
|
padding: 12px;
|
|
1390
|
-
white-space: nowrap;
|
|
1391
1374
|
}
|
|
1392
1375
|
.dataviews-view-table td.dataviews-view-table__actions-column,
|
|
1393
1376
|
.dataviews-view-table th.dataviews-view-table__actions-column {
|
|
@@ -1415,6 +1398,11 @@ div.dataviews-view-list {
|
|
|
1415
1398
|
padding-left: 0;
|
|
1416
1399
|
width: 1%;
|
|
1417
1400
|
}
|
|
1401
|
+
.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,
|
|
1402
|
+
.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper {
|
|
1403
|
+
max-width: auto;
|
|
1404
|
+
min-width: auto;
|
|
1405
|
+
}
|
|
1418
1406
|
.dataviews-view-table tr {
|
|
1419
1407
|
border-top: 1px solid #f0f0f0;
|
|
1420
1408
|
}
|
|
@@ -1533,6 +1521,8 @@ div.dataviews-view-list {
|
|
|
1533
1521
|
}
|
|
1534
1522
|
.dataviews-view-table .dataviews-view-table__actions-column {
|
|
1535
1523
|
width: 1%;
|
|
1524
|
+
max-width: inherit;
|
|
1525
|
+
min-width: inherit;
|
|
1536
1526
|
}
|
|
1537
1527
|
.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input {
|
|
1538
1528
|
opacity: 1;
|
|
@@ -1575,6 +1565,38 @@ div.dataviews-view-list {
|
|
|
1575
1565
|
|
|
1576
1566
|
.dataviews-column-primary__media {
|
|
1577
1567
|
max-width: 60px;
|
|
1568
|
+
overflow: hidden;
|
|
1569
|
+
position: relative;
|
|
1570
|
+
flex-shrink: 0;
|
|
1571
|
+
background-color: #fff;
|
|
1572
|
+
border-radius: 4px;
|
|
1573
|
+
}
|
|
1574
|
+
.dataviews-column-primary__media img {
|
|
1575
|
+
width: 100%;
|
|
1576
|
+
height: 100%;
|
|
1577
|
+
object-fit: cover;
|
|
1578
|
+
}
|
|
1579
|
+
.dataviews-column-primary__media::after {
|
|
1580
|
+
content: "";
|
|
1581
|
+
position: absolute;
|
|
1582
|
+
top: 0;
|
|
1583
|
+
right: 0;
|
|
1584
|
+
width: 100%;
|
|
1585
|
+
height: 100%;
|
|
1586
|
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
1587
|
+
border-radius: 4px;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),
|
|
1591
|
+
.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) {
|
|
1592
|
+
min-width: 15ch;
|
|
1593
|
+
max-width: 80ch;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell {
|
|
1597
|
+
font-weight: 500;
|
|
1598
|
+
padding: 12px 48px;
|
|
1599
|
+
color: #1e1e1e;
|
|
1578
1600
|
}
|
|
1579
1601
|
|
|
1580
1602
|
.dataviews-controls__datetime {
|
|
@@ -1582,11 +1604,24 @@ div.dataviews-view-list {
|
|
|
1582
1604
|
padding: 0;
|
|
1583
1605
|
}
|
|
1584
1606
|
|
|
1585
|
-
.dataviews-
|
|
1586
|
-
.dataviews-
|
|
1607
|
+
.dataviews-controls__relative-date-number,
|
|
1608
|
+
.dataviews-controls__relative-date-unit {
|
|
1587
1609
|
flex: 1 1 50%;
|
|
1588
1610
|
}
|
|
1589
1611
|
|
|
1612
|
+
.dataviews-controls__date input[type=date]::-webkit-inner-spin-button,
|
|
1613
|
+
.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator {
|
|
1614
|
+
display: none;
|
|
1615
|
+
-webkit-appearance: none;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
.dataviews-controls__date-preset {
|
|
1619
|
+
border: 1px solid #ddd;
|
|
1620
|
+
}
|
|
1621
|
+
.dataviews-controls__date-preset:active {
|
|
1622
|
+
background-color: #000;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1590
1625
|
.dataforms-layouts-panel__field {
|
|
1591
1626
|
width: 100%;
|
|
1592
1627
|
min-height: 32px;
|
|
@@ -1843,8 +1878,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1843
1878
|
/* stylelint-enable */
|
|
1844
1879
|
position: relative;
|
|
1845
1880
|
color: #fff;
|
|
1846
|
-
height:
|
|
1847
|
-
width:
|
|
1881
|
+
height: 64px;
|
|
1882
|
+
width: 64px;
|
|
1848
1883
|
overflow: hidden;
|
|
1849
1884
|
padding: 0;
|
|
1850
1885
|
display: flex;
|
|
@@ -1879,8 +1914,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1879
1914
|
}
|
|
1880
1915
|
.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon {
|
|
1881
1916
|
display: flex;
|
|
1882
|
-
height:
|
|
1883
|
-
width:
|
|
1917
|
+
height: 64px;
|
|
1918
|
+
width: 64px;
|
|
1884
1919
|
justify-content: center;
|
|
1885
1920
|
align-items: center;
|
|
1886
1921
|
}
|
|
@@ -2020,7 +2055,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2020
2055
|
contain: content;
|
|
2021
2056
|
}
|
|
2022
2057
|
|
|
2023
|
-
@keyframes
|
|
2058
|
+
@keyframes _i9oo5_slide-from-right {
|
|
2024
2059
|
from {
|
|
2025
2060
|
transform: translateX(-50px);
|
|
2026
2061
|
opacity: 0;
|
|
@@ -2030,7 +2065,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2030
2065
|
opacity: 1;
|
|
2031
2066
|
}
|
|
2032
2067
|
}
|
|
2033
|
-
@keyframes
|
|
2068
|
+
@keyframes _i9oo5_slide-from-left {
|
|
2034
2069
|
from {
|
|
2035
2070
|
transform: translateX(50px);
|
|
2036
2071
|
opacity: 0;
|
|
@@ -2086,10 +2121,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2086
2121
|
}
|
|
2087
2122
|
}
|
|
2088
2123
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
2089
|
-
animation-name:
|
|
2124
|
+
animation-name: _i9oo5_slide-from-left;
|
|
2090
2125
|
}
|
|
2091
2126
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
2092
|
-
animation-name:
|
|
2127
|
+
animation-name: _i9oo5_slide-from-right;
|
|
2093
2128
|
}
|
|
2094
2129
|
|
|
2095
2130
|
.edit-site-site-hub {
|
|
@@ -2098,7 +2133,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2098
2133
|
justify-content: space-between;
|
|
2099
2134
|
gap: 8px;
|
|
2100
2135
|
margin-left: 12px;
|
|
2101
|
-
height:
|
|
2136
|
+
height: 64px;
|
|
2102
2137
|
}
|
|
2103
2138
|
|
|
2104
2139
|
.edit-site-site-hub__actions {
|
|
@@ -2106,8 +2141,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2106
2141
|
}
|
|
2107
2142
|
|
|
2108
2143
|
.edit-site-site-hub__view-mode-toggle-container {
|
|
2109
|
-
height:
|
|
2110
|
-
width:
|
|
2144
|
+
height: 64px;
|
|
2145
|
+
width: 64px;
|
|
2111
2146
|
flex-shrink: 0;
|
|
2112
2147
|
}
|
|
2113
2148
|
.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon {
|
package/build-style/posts.css
CHANGED
|
@@ -400,7 +400,9 @@
|
|
|
400
400
|
line-height: 1.4;
|
|
401
401
|
}
|
|
402
402
|
.dataviews-filters__summary-popover .components-popover__content {
|
|
403
|
-
width:
|
|
403
|
+
width: 100%;
|
|
404
|
+
min-width: 230px;
|
|
405
|
+
max-width: 250px;
|
|
404
406
|
border-radius: 4px;
|
|
405
407
|
}
|
|
406
408
|
.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content {
|
|
@@ -447,10 +449,13 @@
|
|
|
447
449
|
align-items: center;
|
|
448
450
|
box-sizing: border-box;
|
|
449
451
|
}
|
|
452
|
+
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable {
|
|
453
|
+
cursor: default;
|
|
454
|
+
}
|
|
450
455
|
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset {
|
|
451
456
|
padding-inline-end: 28px;
|
|
452
457
|
}
|
|
453
|
-
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true] {
|
|
458
|
+
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable), .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true] {
|
|
454
459
|
background: #e0e0e0;
|
|
455
460
|
color: #1e1e1e;
|
|
456
461
|
}
|
|
@@ -1045,9 +1050,22 @@
|
|
|
1045
1050
|
|
|
1046
1051
|
.dataviews-view-grid {
|
|
1047
1052
|
margin-bottom: auto;
|
|
1053
|
+
display: grid;
|
|
1054
|
+
gap: 32px;
|
|
1048
1055
|
grid-template-rows: max-content;
|
|
1056
|
+
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
|
1049
1057
|
padding: 0 48px 24px;
|
|
1050
1058
|
container-type: inline-size;
|
|
1059
|
+
/**
|
|
1060
|
+
* Breakpoints were adjusted from media queries breakpoints to account for
|
|
1061
|
+
* the sidebar width. This was done to match the existing styles we had.
|
|
1062
|
+
*/
|
|
1063
|
+
}
|
|
1064
|
+
@container (max-width: 480px) {
|
|
1065
|
+
.dataviews-view-grid {
|
|
1066
|
+
padding-left: 24px;
|
|
1067
|
+
padding-right: 24px;
|
|
1068
|
+
}
|
|
1051
1069
|
}
|
|
1052
1070
|
@media not (prefers-reduced-motion) {
|
|
1053
1071
|
.dataviews-view-grid {
|
|
@@ -1087,7 +1105,7 @@
|
|
|
1087
1105
|
width: 100%;
|
|
1088
1106
|
min-height: 200px;
|
|
1089
1107
|
aspect-ratio: 1/1;
|
|
1090
|
-
background-color: #
|
|
1108
|
+
background-color: #fff;
|
|
1091
1109
|
border-radius: 4px;
|
|
1092
1110
|
position: relative;
|
|
1093
1111
|
}
|
|
@@ -1141,40 +1159,6 @@
|
|
|
1141
1159
|
padding-bottom: 12px;
|
|
1142
1160
|
}
|
|
1143
1161
|
|
|
1144
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1145
|
-
/**
|
|
1146
|
-
* Breakpoints were adjusted from media queries breakpoints to account for
|
|
1147
|
-
* the sidebar width. This was done to match the existing styles we had.
|
|
1148
|
-
*/
|
|
1149
|
-
}
|
|
1150
|
-
@container (max-width: 480px) {
|
|
1151
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1152
|
-
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
1153
|
-
padding-left: 24px;
|
|
1154
|
-
padding-right: 24px;
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
@container (min-width: 480px) {
|
|
1158
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1159
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
@container (min-width: 780px) {
|
|
1163
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1164
|
-
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
@container (min-width: 1140px) {
|
|
1168
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1169
|
-
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
@container (min-width: 1520px) {
|
|
1173
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1174
|
-
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
1162
|
.dataviews-view-grid__field-value:empty,
|
|
1179
1163
|
.dataviews-view-grid__field:empty {
|
|
1180
1164
|
display: none;
|
|
@@ -1203,8 +1187,8 @@
|
|
|
1203
1187
|
}
|
|
1204
1188
|
|
|
1205
1189
|
.dataviews-view-grid__group-header {
|
|
1206
|
-
font-size:
|
|
1207
|
-
font-weight:
|
|
1190
|
+
font-size: 15px;
|
|
1191
|
+
font-weight: 500;
|
|
1208
1192
|
color: #1e1e1e;
|
|
1209
1193
|
margin: 0 0 8px 0;
|
|
1210
1194
|
padding: 0 48px;
|
|
@@ -1323,7 +1307,7 @@ div.dataviews-view-list {
|
|
|
1323
1307
|
overflow: hidden;
|
|
1324
1308
|
position: relative;
|
|
1325
1309
|
flex-shrink: 0;
|
|
1326
|
-
background-color: #
|
|
1310
|
+
background-color: #fff;
|
|
1327
1311
|
border-radius: 4px;
|
|
1328
1312
|
}
|
|
1329
1313
|
.dataviews-view-list .dataviews-view-list__media-wrapper img {
|
|
@@ -1387,7 +1371,6 @@ div.dataviews-view-list {
|
|
|
1387
1371
|
.dataviews-view-table td,
|
|
1388
1372
|
.dataviews-view-table th {
|
|
1389
1373
|
padding: 12px;
|
|
1390
|
-
white-space: nowrap;
|
|
1391
1374
|
}
|
|
1392
1375
|
.dataviews-view-table td.dataviews-view-table__actions-column,
|
|
1393
1376
|
.dataviews-view-table th.dataviews-view-table__actions-column {
|
|
@@ -1415,6 +1398,11 @@ div.dataviews-view-list {
|
|
|
1415
1398
|
padding-right: 0;
|
|
1416
1399
|
width: 1%;
|
|
1417
1400
|
}
|
|
1401
|
+
.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,
|
|
1402
|
+
.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper {
|
|
1403
|
+
max-width: auto;
|
|
1404
|
+
min-width: auto;
|
|
1405
|
+
}
|
|
1418
1406
|
.dataviews-view-table tr {
|
|
1419
1407
|
border-top: 1px solid #f0f0f0;
|
|
1420
1408
|
}
|
|
@@ -1533,6 +1521,8 @@ div.dataviews-view-list {
|
|
|
1533
1521
|
}
|
|
1534
1522
|
.dataviews-view-table .dataviews-view-table__actions-column {
|
|
1535
1523
|
width: 1%;
|
|
1524
|
+
max-width: inherit;
|
|
1525
|
+
min-width: inherit;
|
|
1536
1526
|
}
|
|
1537
1527
|
.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input {
|
|
1538
1528
|
opacity: 1;
|
|
@@ -1575,6 +1565,38 @@ div.dataviews-view-list {
|
|
|
1575
1565
|
|
|
1576
1566
|
.dataviews-column-primary__media {
|
|
1577
1567
|
max-width: 60px;
|
|
1568
|
+
overflow: hidden;
|
|
1569
|
+
position: relative;
|
|
1570
|
+
flex-shrink: 0;
|
|
1571
|
+
background-color: #fff;
|
|
1572
|
+
border-radius: 4px;
|
|
1573
|
+
}
|
|
1574
|
+
.dataviews-column-primary__media img {
|
|
1575
|
+
width: 100%;
|
|
1576
|
+
height: 100%;
|
|
1577
|
+
object-fit: cover;
|
|
1578
|
+
}
|
|
1579
|
+
.dataviews-column-primary__media::after {
|
|
1580
|
+
content: "";
|
|
1581
|
+
position: absolute;
|
|
1582
|
+
top: 0;
|
|
1583
|
+
left: 0;
|
|
1584
|
+
width: 100%;
|
|
1585
|
+
height: 100%;
|
|
1586
|
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
1587
|
+
border-radius: 4px;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),
|
|
1591
|
+
.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) {
|
|
1592
|
+
min-width: 15ch;
|
|
1593
|
+
max-width: 80ch;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell {
|
|
1597
|
+
font-weight: 500;
|
|
1598
|
+
padding: 12px 48px;
|
|
1599
|
+
color: #1e1e1e;
|
|
1578
1600
|
}
|
|
1579
1601
|
|
|
1580
1602
|
.dataviews-controls__datetime {
|
|
@@ -1582,11 +1604,24 @@ div.dataviews-view-list {
|
|
|
1582
1604
|
padding: 0;
|
|
1583
1605
|
}
|
|
1584
1606
|
|
|
1585
|
-
.dataviews-
|
|
1586
|
-
.dataviews-
|
|
1607
|
+
.dataviews-controls__relative-date-number,
|
|
1608
|
+
.dataviews-controls__relative-date-unit {
|
|
1587
1609
|
flex: 1 1 50%;
|
|
1588
1610
|
}
|
|
1589
1611
|
|
|
1612
|
+
.dataviews-controls__date input[type=date]::-webkit-inner-spin-button,
|
|
1613
|
+
.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator {
|
|
1614
|
+
display: none;
|
|
1615
|
+
-webkit-appearance: none;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
.dataviews-controls__date-preset {
|
|
1619
|
+
border: 1px solid #ddd;
|
|
1620
|
+
}
|
|
1621
|
+
.dataviews-controls__date-preset:active {
|
|
1622
|
+
background-color: #000;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1590
1625
|
.dataforms-layouts-panel__field {
|
|
1591
1626
|
width: 100%;
|
|
1592
1627
|
min-height: 32px;
|
|
@@ -1843,8 +1878,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1843
1878
|
/* stylelint-enable */
|
|
1844
1879
|
position: relative;
|
|
1845
1880
|
color: #fff;
|
|
1846
|
-
height:
|
|
1847
|
-
width:
|
|
1881
|
+
height: 64px;
|
|
1882
|
+
width: 64px;
|
|
1848
1883
|
overflow: hidden;
|
|
1849
1884
|
padding: 0;
|
|
1850
1885
|
display: flex;
|
|
@@ -1879,8 +1914,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1879
1914
|
}
|
|
1880
1915
|
.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon {
|
|
1881
1916
|
display: flex;
|
|
1882
|
-
height:
|
|
1883
|
-
width:
|
|
1917
|
+
height: 64px;
|
|
1918
|
+
width: 64px;
|
|
1884
1919
|
justify-content: center;
|
|
1885
1920
|
align-items: center;
|
|
1886
1921
|
}
|
|
@@ -2020,7 +2055,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2020
2055
|
contain: content;
|
|
2021
2056
|
}
|
|
2022
2057
|
|
|
2023
|
-
@keyframes
|
|
2058
|
+
@keyframes _i9oo5_slide-from-right {
|
|
2024
2059
|
from {
|
|
2025
2060
|
transform: translateX(50px);
|
|
2026
2061
|
opacity: 0;
|
|
@@ -2030,7 +2065,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2030
2065
|
opacity: 1;
|
|
2031
2066
|
}
|
|
2032
2067
|
}
|
|
2033
|
-
@keyframes
|
|
2068
|
+
@keyframes _i9oo5_slide-from-left {
|
|
2034
2069
|
from {
|
|
2035
2070
|
transform: translateX(-50px);
|
|
2036
2071
|
opacity: 0;
|
|
@@ -2086,10 +2121,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2086
2121
|
}
|
|
2087
2122
|
}
|
|
2088
2123
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
2089
|
-
animation-name:
|
|
2124
|
+
animation-name: _i9oo5_slide-from-left;
|
|
2090
2125
|
}
|
|
2091
2126
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
2092
|
-
animation-name:
|
|
2127
|
+
animation-name: _i9oo5_slide-from-right;
|
|
2093
2128
|
}
|
|
2094
2129
|
|
|
2095
2130
|
.edit-site-site-hub {
|
|
@@ -2098,7 +2133,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2098
2133
|
justify-content: space-between;
|
|
2099
2134
|
gap: 8px;
|
|
2100
2135
|
margin-right: 12px;
|
|
2101
|
-
height:
|
|
2136
|
+
height: 64px;
|
|
2102
2137
|
}
|
|
2103
2138
|
|
|
2104
2139
|
.edit-site-site-hub__actions {
|
|
@@ -2106,8 +2141,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2106
2141
|
}
|
|
2107
2142
|
|
|
2108
2143
|
.edit-site-site-hub__view-mode-toggle-container {
|
|
2109
|
-
height:
|
|
2110
|
-
width:
|
|
2144
|
+
height: 64px;
|
|
2145
|
+
width: 64px;
|
|
2111
2146
|
flex-shrink: 0;
|
|
2112
2147
|
}
|
|
2113
2148
|
.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon {
|