@wordpress/block-library 11.1.0 → 11.2.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 +32 -0
- package/build/accordion-heading/block.json +1 -0
- package/build/archives/block.json +3 -0
- package/build/audio/edit.cjs +2 -1
- package/build/audio/edit.cjs.map +2 -2
- package/build/avatar/block.json +4 -0
- package/build/avatar/edit.cjs +31 -1
- package/build/avatar/edit.cjs.map +3 -3
- package/build/button/block.json +6 -0
- package/build/button/edit.cjs +9 -6
- package/build/button/edit.cjs.map +2 -2
- package/build/buttons/block.json +6 -1
- package/build/code/block.json +4 -0
- package/build/column/edit.cjs +5 -0
- package/build/column/edit.cjs.map +2 -2
- package/build/columns/block.json +4 -0
- package/build/columns/edit.cjs +21 -112
- package/build/columns/edit.cjs.map +3 -3
- package/build/comments/edit/placeholder.cjs +95 -87
- package/build/comments/edit/placeholder.cjs.map +2 -2
- package/build/comments-pagination/block.json +11 -0
- package/build/cover/block.json +2 -1
- package/build/cover/edit/index.cjs +26 -5
- package/build/cover/edit/index.cjs.map +2 -2
- package/build/cover/edit/inspector-controls.cjs +4 -1
- package/build/cover/edit/inspector-controls.cjs.map +2 -2
- package/build/cover/embed-video-utils.cjs +9 -8
- package/build/cover/embed-video-utils.cjs.map +2 -2
- package/build/cover/view.cjs +21 -0
- package/build/cover/view.cjs.map +7 -0
- package/build/details/block.json +3 -0
- package/build/embed/block.json +6 -1
- package/build/file/block.json +5 -0
- package/build/footnotes/block.json +4 -0
- package/build/gallery/block.json +13 -0
- package/build/gallery/dynamic-gallery.cjs +32 -93
- package/build/gallery/dynamic-gallery.cjs.map +3 -3
- package/build/gallery/edit.cjs +103 -40
- package/build/gallery/edit.cjs.map +2 -2
- package/build/gallery/order-controls.cjs +107 -0
- package/build/gallery/order-controls.cjs.map +7 -0
- package/build/gallery/order-images.cjs +92 -0
- package/build/gallery/order-images.cjs.map +7 -0
- package/build/gallery/order-options.cjs +62 -0
- package/build/gallery/order-options.cjs.map +7 -0
- package/build/gallery/use-dynamic-gallery.cjs +1 -7
- package/build/gallery/use-dynamic-gallery.cjs.map +2 -2
- package/build/gallery/use-get-media.cjs +2 -3
- package/build/gallery/use-get-media.cjs.map +2 -2
- package/build/group/edit.cjs +3 -3
- package/build/group/edit.cjs.map +2 -2
- package/build/heading/block.json +5 -0
- package/build/home-link/block.json +12 -0
- package/build/icon/components/custom-inserter/index.cjs +3 -1
- package/build/icon/components/custom-inserter/index.cjs.map +2 -2
- package/build/icon/edit.cjs +49 -5
- package/build/icon/edit.cjs.map +2 -2
- package/build/image/use-open-image-media-editor-modal.cjs +32 -28
- package/build/image/use-open-image-media-editor-modal.cjs.map +2 -2
- package/build/image/view.cjs +44 -50
- package/build/image/view.cjs.map +2 -2
- package/build/latest-comments/block.json +10 -0
- package/build/latest-posts/block.json +4 -0
- package/build/list/block.json +12 -1
- package/build/list-item/block.json +8 -1
- package/build/list-item/index.cjs +4 -0
- package/build/list-item/index.cjs.map +3 -3
- package/build/loginout/block.json +4 -0
- package/build/math/block.json +4 -0
- package/build/media-text/block.json +18 -0
- package/build/navigation-link/link-ui/index.cjs +33 -19
- package/build/navigation-link/link-ui/index.cjs.map +2 -2
- package/build/navigation-link/shared/index.cjs +5 -0
- package/build/navigation-link/shared/index.cjs.map +2 -2
- package/build/navigation-link/shared/use-block-suggestions.cjs +141 -0
- package/build/navigation-link/shared/use-block-suggestions.cjs.map +7 -0
- package/build/page-list/block.json +4 -0
- package/build/paragraph/block.json +1 -0
- package/build/post-author-biography/block.json +1 -0
- package/build/post-comments-form/block.json +5 -0
- package/build/post-content/block.json +2 -1
- package/build/post-excerpt/block.json +4 -0
- package/build/post-featured-image/block.json +1 -0
- package/build/post-featured-image/edit.cjs +1 -1
- package/build/post-featured-image/edit.cjs.map +2 -2
- package/build/post-terms/block.json +4 -0
- package/build/post-time-to-read/block.json +4 -0
- package/build/post-title/block.json +4 -0
- package/build/preformatted/block.json +4 -0
- package/build/pullquote/block.json +2 -1
- package/build/query-no-results/block.json +4 -0
- package/build/query-pagination/block.json +17 -0
- package/build/query-total/block.json +4 -0
- package/build/quote/block.json +2 -0
- package/build/read-more/block.json +5 -0
- package/build/rss/block.json +4 -0
- package/build/search/block.json +2 -1
- package/build/site-tagline/block.json +4 -0
- package/build/site-title/block.json +4 -0
- package/build/social-links/block.json +1 -0
- package/build/tab-list/block.json +4 -0
- package/build/tab-list/edit.cjs +3 -1
- package/build/tab-list/edit.cjs.map +3 -3
- package/build/tab-list/save.cjs +3 -1
- package/build/tab-list/save.cjs.map +3 -3
- package/build/tab-panels/block.json +3 -0
- package/build/tabs/block.json +3 -0
- package/build/term-count/block.json +5 -0
- package/build/term-description/block.json +4 -0
- package/build/term-name/block.json +6 -1
- package/build/term-template/block.json +4 -0
- package/build/utils/waveform-utils.cjs +2 -2
- package/build/utils/waveform-utils.cjs.map +2 -2
- package/build/verse/block.json +4 -0
- package/build/video/block.json +7 -1
- package/build/video/edit.cjs +10 -2
- package/build/video/edit.cjs.map +2 -2
- package/build-module/accordion-heading/block.json +1 -0
- package/build-module/archives/block.json +3 -0
- package/build-module/audio/edit.mjs +2 -1
- package/build-module/audio/edit.mjs.map +2 -2
- package/build-module/avatar/block.json +4 -0
- package/build-module/avatar/edit.mjs +33 -2
- package/build-module/avatar/edit.mjs.map +2 -2
- package/build-module/button/block.json +6 -0
- package/build-module/button/edit.mjs +11 -7
- package/build-module/button/edit.mjs.map +2 -2
- package/build-module/buttons/block.json +6 -1
- package/build-module/code/block.json +4 -0
- package/build-module/column/edit.mjs +5 -0
- package/build-module/column/edit.mjs.map +2 -2
- package/build-module/columns/block.json +4 -0
- package/build-module/columns/edit.mjs +22 -122
- package/build-module/columns/edit.mjs.map +2 -2
- package/build-module/comments/edit/placeholder.mjs +95 -87
- package/build-module/comments/edit/placeholder.mjs.map +2 -2
- package/build-module/comments-pagination/block.json +11 -0
- package/build-module/cover/block.json +2 -1
- package/build-module/cover/edit/index.mjs +32 -6
- package/build-module/cover/edit/index.mjs.map +2 -2
- package/build-module/cover/edit/inspector-controls.mjs +5 -2
- package/build-module/cover/edit/inspector-controls.mjs.map +2 -2
- package/build-module/cover/embed-video-utils.mjs +9 -8
- package/build-module/cover/embed-video-utils.mjs.map +2 -2
- package/build-module/cover/view.mjs +19 -0
- package/build-module/cover/view.mjs.map +7 -0
- package/build-module/details/block.json +3 -0
- package/build-module/embed/block.json +6 -1
- package/build-module/file/block.json +5 -0
- package/build-module/footnotes/block.json +4 -0
- package/build-module/gallery/block.json +13 -0
- package/build-module/gallery/dynamic-gallery.mjs +33 -97
- package/build-module/gallery/dynamic-gallery.mjs.map +2 -2
- package/build-module/gallery/edit.mjs +110 -42
- package/build-module/gallery/edit.mjs.map +2 -2
- package/build-module/gallery/order-controls.mjs +87 -0
- package/build-module/gallery/order-controls.mjs.map +7 -0
- package/build-module/gallery/order-images.mjs +66 -0
- package/build-module/gallery/order-images.mjs.map +7 -0
- package/build-module/gallery/order-options.mjs +33 -0
- package/build-module/gallery/order-options.mjs.map +7 -0
- package/build-module/gallery/use-dynamic-gallery.mjs +1 -7
- package/build-module/gallery/use-dynamic-gallery.mjs.map +2 -2
- package/build-module/gallery/use-get-media.mjs +2 -3
- package/build-module/gallery/use-get-media.mjs.map +2 -2
- package/build-module/group/edit.mjs +4 -4
- package/build-module/group/edit.mjs.map +2 -2
- package/build-module/heading/block.json +5 -0
- package/build-module/home-link/block.json +12 -0
- package/build-module/icon/components/custom-inserter/index.mjs +3 -1
- package/build-module/icon/components/custom-inserter/index.mjs.map +2 -2
- package/build-module/icon/edit.mjs +50 -6
- package/build-module/icon/edit.mjs.map +2 -2
- package/build-module/image/use-open-image-media-editor-modal.mjs +32 -28
- package/build-module/image/use-open-image-media-editor-modal.mjs.map +2 -2
- package/build-module/image/view.mjs +44 -50
- package/build-module/image/view.mjs.map +2 -2
- package/build-module/latest-comments/block.json +10 -0
- package/build-module/latest-posts/block.json +4 -0
- package/build-module/list/block.json +12 -1
- package/build-module/list-item/block.json +8 -1
- package/build-module/list-item/index.mjs +4 -0
- package/build-module/list-item/index.mjs.map +2 -2
- package/build-module/loginout/block.json +4 -0
- package/build-module/math/block.json +4 -0
- package/build-module/media-text/block.json +18 -0
- package/build-module/navigation-link/link-ui/index.mjs +39 -20
- package/build-module/navigation-link/link-ui/index.mjs.map +2 -2
- package/build-module/navigation-link/shared/index.mjs +6 -0
- package/build-module/navigation-link/shared/index.mjs.map +2 -2
- package/build-module/navigation-link/shared/use-block-suggestions.mjs +120 -0
- package/build-module/navigation-link/shared/use-block-suggestions.mjs.map +7 -0
- package/build-module/page-list/block.json +4 -0
- package/build-module/paragraph/block.json +1 -0
- package/build-module/post-author-biography/block.json +1 -0
- package/build-module/post-comments-form/block.json +5 -0
- package/build-module/post-content/block.json +2 -1
- package/build-module/post-excerpt/block.json +4 -0
- package/build-module/post-featured-image/block.json +1 -0
- package/build-module/post-featured-image/edit.mjs +1 -1
- package/build-module/post-featured-image/edit.mjs.map +2 -2
- package/build-module/post-terms/block.json +4 -0
- package/build-module/post-time-to-read/block.json +4 -0
- package/build-module/post-title/block.json +4 -0
- package/build-module/preformatted/block.json +4 -0
- package/build-module/pullquote/block.json +2 -1
- package/build-module/query-no-results/block.json +4 -0
- package/build-module/query-pagination/block.json +17 -0
- package/build-module/query-total/block.json +4 -0
- package/build-module/quote/block.json +2 -0
- package/build-module/read-more/block.json +5 -0
- package/build-module/rss/block.json +4 -0
- package/build-module/search/block.json +2 -1
- package/build-module/site-tagline/block.json +4 -0
- package/build-module/site-title/block.json +4 -0
- package/build-module/social-links/block.json +1 -0
- package/build-module/tab-list/block.json +4 -0
- package/build-module/tab-list/edit.mjs +4 -1
- package/build-module/tab-list/edit.mjs.map +2 -2
- package/build-module/tab-list/save.mjs +4 -1
- package/build-module/tab-list/save.mjs.map +2 -2
- package/build-module/tab-panels/block.json +3 -0
- package/build-module/tabs/block.json +3 -0
- package/build-module/term-count/block.json +5 -0
- package/build-module/term-description/block.json +4 -0
- package/build-module/term-name/block.json +6 -1
- package/build-module/term-template/block.json +4 -0
- package/build-module/utils/waveform-utils.mjs +1 -1
- package/build-module/utils/waveform-utils.mjs.map +1 -1
- package/build-module/verse/block.json +4 -0
- package/build-module/video/block.json +7 -1
- package/build-module/video/edit.mjs +10 -2
- package/build-module/video/edit.mjs.map +2 -2
- package/build-style/avatar/editor-rtl.css +4 -0
- package/build-style/avatar/editor.css +4 -0
- package/build-style/comments-pagination/style-rtl.css +3 -0
- package/build-style/comments-pagination/style.css +3 -0
- package/build-style/common-rtl.css +32 -1
- package/build-style/common.css +35 -2
- package/build-style/editor-rtl.css +11 -4
- package/build-style/editor.css +11 -4
- package/build-style/embed/style-rtl.css +4 -1
- package/build-style/embed/style.css +4 -1
- package/build-style/gallery/editor-rtl.css +1 -3
- package/build-style/gallery/editor.css +1 -3
- package/build-style/image/style-rtl.css +11 -2
- package/build-style/image/style.css +11 -2
- package/build-style/media-text/style-rtl.css +4 -1
- package/build-style/media-text/style.css +4 -1
- package/build-style/query-pagination/style-rtl.css +3 -0
- package/build-style/query-pagination/style.css +3 -0
- package/build-style/style-rtl.css +70 -9
- package/build-style/style.css +73 -10
- package/build-style/table/editor-rtl.css +6 -1
- package/build-style/table/editor.css +6 -1
- package/build-style/table/style-rtl.css +4 -2
- package/build-style/table/style.css +4 -2
- package/build-style/tag-cloud/style-rtl.css +1 -1
- package/build-style/tag-cloud/style.css +1 -1
- package/build-style/verse/style-rtl.css +8 -1
- package/build-style/verse/style.css +8 -1
- package/build-types/gallery/order-controls.d.ts +58 -0
- package/build-types/gallery/order-controls.d.ts.map +1 -0
- package/build-types/gallery/order-options.d.ts +67 -0
- package/build-types/gallery/order-options.d.ts.map +1 -0
- package/package.json +44 -41
- package/src/accordion-heading/README.md +1 -0
- package/src/accordion-heading/block.json +1 -0
- package/src/archives/README.md +2 -0
- package/src/archives/block.json +3 -0
- package/src/audio/edit.jsx +2 -1
- package/src/avatar/README.md +2 -0
- package/src/avatar/block.json +4 -0
- package/src/avatar/edit.jsx +48 -2
- package/src/avatar/editor.scss +4 -0
- package/src/avatar/index.php +5 -3
- package/src/breadcrumbs/index.php +1 -1
- package/src/button/README.md +4 -0
- package/src/button/block.json +6 -0
- package/src/button/edit.jsx +47 -52
- package/src/button/index.php +47 -0
- package/src/buttons/README.md +4 -0
- package/src/buttons/block.json +6 -1
- package/src/code/README.md +3 -0
- package/src/code/block.json +4 -0
- package/src/column/edit.jsx +6 -0
- package/src/columns/README.md +3 -0
- package/src/columns/block.json +4 -0
- package/src/columns/edit.jsx +1 -131
- package/src/comments/edit/placeholder.jsx +5 -1
- package/src/comments-pagination/README.md +4 -0
- package/src/comments-pagination/block.json +11 -0
- package/src/comments-pagination/style.scss +3 -0
- package/src/common.scss +38 -0
- package/src/cover/README.md +1 -0
- package/src/cover/block.json +2 -1
- package/src/cover/edit/index.jsx +38 -6
- package/src/cover/edit/inspector-controls.jsx +10 -1
- package/src/cover/embed-video-utils.js +18 -10
- package/src/cover/index.php +44 -15
- package/src/cover/test/edit.browser.test.js +182 -2
- package/src/cover/test/embed-video-utils.test.js +48 -0
- package/src/cover/view.js +22 -0
- package/src/details/README.md +2 -0
- package/src/details/block.json +3 -0
- package/src/embed/README.md +4 -0
- package/src/embed/block.json +6 -1
- package/src/embed/style.scss +7 -1
- package/src/file/README.md +4 -0
- package/src/file/block.json +5 -0
- package/src/footnotes/README.md +3 -0
- package/src/footnotes/block.json +4 -0
- package/src/gallery/README.md +13 -0
- package/src/gallery/block.json +13 -0
- package/src/gallery/dynamic-gallery.jsx +11 -91
- package/src/gallery/edit.jsx +146 -47
- package/src/gallery/editor.scss +5 -9
- package/src/gallery/order-controls.tsx +143 -0
- package/src/gallery/order-images.js +111 -0
- package/src/gallery/order-options.ts +75 -0
- package/src/gallery/test/edit.jsdom.test.js +87 -10
- package/src/gallery/test/order-images.js +162 -0
- package/src/gallery/use-dynamic-gallery.js +1 -9
- package/src/gallery/use-get-media.js +7 -2
- package/src/group/edit.jsx +5 -5
- package/src/heading/README.md +4 -0
- package/src/heading/block.json +5 -0
- package/src/home-link/README.md +6 -0
- package/src/home-link/block.json +12 -0
- package/src/icon/components/custom-inserter/index.jsx +5 -1
- package/src/icon/edit.jsx +68 -7
- package/src/icon/index.php +1 -1
- package/src/image/index.php +3 -4
- package/src/image/style.scss +14 -2
- package/src/image/test/use-open-image-media-editor-modal.jsdom.test.js +122 -60
- package/src/image/use-open-image-media-editor-modal.js +37 -41
- package/src/image/view.js +64 -68
- package/src/latest-comments/README.md +3 -0
- package/src/latest-comments/block.json +10 -0
- package/src/latest-posts/README.md +3 -0
- package/src/latest-posts/block.json +4 -0
- package/src/list/README.md +6 -0
- package/src/list/block.json +12 -1
- package/src/list-item/README.md +6 -0
- package/src/list-item/block.json +8 -1
- package/src/list-item/index.js +5 -0
- package/src/loginout/README.md +3 -0
- package/src/loginout/block.json +4 -0
- package/src/math/README.md +3 -0
- package/src/math/block.json +4 -0
- package/src/media-text/README.md +17 -0
- package/src/media-text/block.json +18 -0
- package/src/media-text/style.scss +5 -1
- package/src/navigation/test/use-navigation-menu.jsdom.test.js +1 -1
- package/src/navigation-link/README.md +1 -1
- package/src/navigation-link/link-ui/index.jsx +60 -27
- package/src/navigation-link/link-ui/test/get-suggestions-query.jsdom.test.js +67 -0
- package/src/navigation-link/shared/index.js +4 -0
- package/src/navigation-link/shared/test/use-block-suggestions.jsdom.test.js +158 -0
- package/src/navigation-link/shared/test/use-entity-binding.jsdom.test.js +1 -7
- package/src/navigation-link/shared/use-block-suggestions.js +192 -0
- package/src/page-list/README.md +3 -0
- package/src/page-list/block.json +4 -0
- package/src/paragraph/README.md +1 -0
- package/src/paragraph/block.json +1 -0
- package/src/playlist/test/edit-component.jsdom.test.jsx +11 -11
- package/src/playlist-track/test/edit.jsdom.test.jsx +3 -3
- package/src/post-author-biography/README.md +1 -0
- package/src/post-author-biography/block.json +1 -0
- package/src/post-comments-form/README.md +3 -0
- package/src/post-comments-form/block.json +5 -0
- package/src/post-content/README.md +1 -0
- package/src/post-content/block.json +2 -1
- package/src/post-excerpt/README.md +3 -0
- package/src/post-excerpt/block.json +4 -0
- package/src/post-featured-image/block.json +1 -0
- package/src/post-featured-image/edit.jsx +2 -2
- package/src/post-terms/README.md +3 -0
- package/src/post-terms/block.json +4 -0
- package/src/post-time-to-read/README.md +3 -0
- package/src/post-time-to-read/block.json +4 -0
- package/src/post-title/README.md +3 -0
- package/src/post-title/block.json +4 -0
- package/src/preformatted/README.md +3 -0
- package/src/preformatted/block.json +4 -0
- package/src/pullquote/README.md +1 -0
- package/src/pullquote/block.json +2 -1
- package/src/query-no-results/README.md +3 -0
- package/src/query-no-results/block.json +4 -0
- package/src/query-pagination/README.md +4 -0
- package/src/query-pagination/block.json +17 -0
- package/src/query-pagination/style.scss +3 -0
- package/src/query-total/README.md +3 -0
- package/src/query-total/block.json +4 -0
- package/src/quote/README.md +2 -0
- package/src/quote/block.json +2 -0
- package/src/read-more/README.md +3 -0
- package/src/read-more/block.json +5 -0
- package/src/rss/README.md +3 -0
- package/src/rss/block.json +4 -0
- package/src/search/README.md +1 -0
- package/src/search/block.json +2 -1
- package/src/site-tagline/README.md +3 -0
- package/src/site-tagline/block.json +4 -0
- package/src/site-title/README.md +3 -0
- package/src/site-title/block.json +4 -0
- package/src/social-links/README.md +1 -0
- package/src/social-links/block.json +1 -0
- package/src/tab-list/README.md +2 -0
- package/src/tab-list/block.json +4 -0
- package/src/tab-list/edit.jsx +3 -0
- package/src/tab-list/save.jsx +3 -0
- package/src/tab-panels/README.md +2 -0
- package/src/tab-panels/block.json +3 -0
- package/src/table/editor.scss +8 -2
- package/src/table/style.scss +4 -4
- package/src/tabs/README.md +2 -0
- package/src/tabs/block.json +3 -0
- package/src/tag-cloud/style.scss +1 -1
- package/src/template-part/index.php +16 -3
- package/src/term-count/README.md +4 -0
- package/src/term-count/block.json +5 -0
- package/src/term-description/README.md +3 -0
- package/src/term-description/block.json +4 -0
- package/src/term-name/README.md +4 -0
- package/src/term-name/block.json +6 -1
- package/src/term-template/README.md +3 -0
- package/src/term-template/block.json +4 -0
- package/src/utils/test/waveform-player-auto-init.jsdom.test.js +25 -0
- package/src/utils/test/waveform-player-dependency.jsdom.test.js +7 -60
- package/src/utils/test/waveform-utils.browser.test.js +3 -15
- package/src/utils/waveform-utils.js +1 -1
- package/src/verse/README.md +4 -0
- package/src/verse/block.json +4 -0
- package/src/verse/style.scss +11 -2
- package/src/video/README.md +4 -0
- package/src/video/block.json +7 -1
- package/src/video/edit.jsx +13 -2
- package/build/columns/utils.cjs +0 -112
- package/build/columns/utils.cjs.map +0 -7
- package/build-module/columns/utils.mjs +0 -78
- package/build-module/columns/utils.mjs.map +0 -7
- package/src/columns/test/utils.js +0 -331
- package/src/columns/utils.js +0 -176
package/build-style/style.css
CHANGED
|
@@ -650,6 +650,9 @@
|
|
|
650
650
|
box-sizing: border-box;
|
|
651
651
|
}
|
|
652
652
|
|
|
653
|
+
.wp-block-comments-pagination {
|
|
654
|
+
box-sizing: border-box;
|
|
655
|
+
}
|
|
653
656
|
.wp-block-comments-pagination > .wp-block-comments-pagination-next,
|
|
654
657
|
.wp-block-comments-pagination > .wp-block-comments-pagination-previous,
|
|
655
658
|
.wp-block-comments-pagination > .wp-block-comments-pagination-numbers {
|
|
@@ -1222,13 +1225,16 @@ body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-blo
|
|
|
1222
1225
|
min-width: 280px;
|
|
1223
1226
|
}
|
|
1224
1227
|
|
|
1225
|
-
.wp-block-cover .wp-block-embed {
|
|
1228
|
+
:root :where(.wp-block-cover .wp-block-embed) {
|
|
1226
1229
|
min-width: 320px;
|
|
1227
1230
|
min-height: 240px;
|
|
1228
1231
|
}
|
|
1229
1232
|
|
|
1230
1233
|
.wp-block-group.is-layout-flex .wp-block-embed {
|
|
1231
1234
|
flex: 1 1 0%;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
:root :where(.wp-block-group.is-layout-flex .wp-block-embed) {
|
|
1232
1238
|
min-width: 0;
|
|
1233
1239
|
}
|
|
1234
1240
|
|
|
@@ -1845,7 +1851,7 @@ h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]) {
|
|
|
1845
1851
|
}
|
|
1846
1852
|
@supports (mask-image: none) or (-webkit-mask-image: none) {
|
|
1847
1853
|
.wp-block-image.is-style-circle-mask img {
|
|
1848
|
-
mask-image: url(
|
|
1854
|
+
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='50'/%3E%3C/svg%3E");
|
|
1849
1855
|
mask-mode: alpha;
|
|
1850
1856
|
mask-repeat: no-repeat;
|
|
1851
1857
|
mask-size: contain;
|
|
@@ -1870,7 +1876,7 @@ h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]) {
|
|
|
1870
1876
|
.wp-lightbox-container img {
|
|
1871
1877
|
cursor: zoom-in;
|
|
1872
1878
|
}
|
|
1873
|
-
.wp-lightbox-container
|
|
1879
|
+
.wp-lightbox-container:has(img:hover) button {
|
|
1874
1880
|
opacity: 1;
|
|
1875
1881
|
}
|
|
1876
1882
|
.wp-lightbox-container button {
|
|
@@ -2013,6 +2019,7 @@ h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]) {
|
|
|
2013
2019
|
width: var(--wp--lightbox-container-width);
|
|
2014
2020
|
height: var(--wp--lightbox-container-height);
|
|
2015
2021
|
z-index: 2000001;
|
|
2022
|
+
cursor: default;
|
|
2016
2023
|
}
|
|
2017
2024
|
.wp-lightbox-overlay .wp-block-image {
|
|
2018
2025
|
position: relative;
|
|
@@ -2035,6 +2042,10 @@ h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]) {
|
|
|
2035
2042
|
.wp-lightbox-overlay .wp-block-image figcaption {
|
|
2036
2043
|
display: none;
|
|
2037
2044
|
}
|
|
2045
|
+
.wp-lightbox-overlay .lightbox-thumbnail-container {
|
|
2046
|
+
--wp--lightbox-image-width: var(--wp--lightbox-thumbnail-width);
|
|
2047
|
+
--wp--lightbox-image-height: var(--wp--lightbox-thumbnail-height);
|
|
2048
|
+
}
|
|
2038
2049
|
.wp-lightbox-overlay button {
|
|
2039
2050
|
border: none;
|
|
2040
2051
|
background: none;
|
|
@@ -2134,15 +2145,18 @@ h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]) {
|
|
|
2134
2145
|
}
|
|
2135
2146
|
@keyframes lightbox-zoom-in {
|
|
2136
2147
|
0% {
|
|
2148
|
+
clip-path: var(--wp--lightbox-initial-clip);
|
|
2137
2149
|
transform: translate(calc((-100vw + var(--wp--lightbox-scrollbar-width)) / 2 + var(--wp--lightbox-initial-left-position)), calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));
|
|
2138
2150
|
}
|
|
2139
2151
|
100% {
|
|
2152
|
+
clip-path: inset(0);
|
|
2140
2153
|
transform: translate(-50%, -50%) scale(1, 1);
|
|
2141
2154
|
}
|
|
2142
2155
|
}
|
|
2143
2156
|
@keyframes lightbox-zoom-out {
|
|
2144
2157
|
0% {
|
|
2145
2158
|
visibility: visible;
|
|
2159
|
+
clip-path: inset(0);
|
|
2146
2160
|
transform: translate(-50%, -50%) scale(1, 1);
|
|
2147
2161
|
}
|
|
2148
2162
|
99% {
|
|
@@ -2150,6 +2164,7 @@ h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]) {
|
|
|
2150
2164
|
}
|
|
2151
2165
|
100% {
|
|
2152
2166
|
visibility: hidden;
|
|
2167
|
+
clip-path: var(--wp--lightbox-initial-clip);
|
|
2153
2168
|
transform: translate(calc((-100vw + var(--wp--lightbox-scrollbar-width)) / 2 + var(--wp--lightbox-initial-left-position)), calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));
|
|
2154
2169
|
}
|
|
2155
2170
|
}
|
|
@@ -2383,10 +2398,13 @@ ul {
|
|
|
2383
2398
|
grid-column: 2;
|
|
2384
2399
|
grid-row: 1;
|
|
2385
2400
|
/*rtl:end:ignore*/
|
|
2386
|
-
padding: 0 8% 0 8%;
|
|
2387
2401
|
word-break: break-word;
|
|
2388
2402
|
}
|
|
2389
2403
|
|
|
2404
|
+
:where(.wp-block-media-text > .wp-block-media-text__content) {
|
|
2405
|
+
padding: 0 8%;
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2390
2408
|
.wp-block-media-text.has-media-on-the-right > .wp-block-media-text__media {
|
|
2391
2409
|
/*rtl:begin:ignore*/
|
|
2392
2410
|
grid-column: 2;
|
|
@@ -4236,6 +4254,9 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
|
|
|
4236
4254
|
box-sizing: border-box;
|
|
4237
4255
|
}
|
|
4238
4256
|
|
|
4257
|
+
.wp-block-query-pagination {
|
|
4258
|
+
box-sizing: border-box;
|
|
4259
|
+
}
|
|
4239
4260
|
.wp-block-query-pagination.is-content-justification-space-between > .wp-block-query-pagination-next:last-of-type {
|
|
4240
4261
|
margin-inline-start: auto;
|
|
4241
4262
|
}
|
|
@@ -4992,7 +5013,7 @@ ul.wp-block-rss.is-grid li {
|
|
|
4992
5013
|
:root :where(.wp-block-tag-cloud.is-style-outline a) {
|
|
4993
5014
|
border: 1px solid currentColor;
|
|
4994
5015
|
font-size: unset !important;
|
|
4995
|
-
margin-right: 0;
|
|
5016
|
+
margin-right: 0 !important;
|
|
4996
5017
|
padding: 1ch 2ch;
|
|
4997
5018
|
text-decoration: none !important;
|
|
4998
5019
|
}
|
|
@@ -5065,7 +5086,8 @@ ul.wp-block-rss.is-grid li {
|
|
|
5065
5086
|
}
|
|
5066
5087
|
.wp-block-table .has-fixed-layout td,
|
|
5067
5088
|
.wp-block-table .has-fixed-layout th {
|
|
5068
|
-
word-break:
|
|
5089
|
+
word-break: normal;
|
|
5090
|
+
overflow-wrap: anywhere;
|
|
5069
5091
|
}
|
|
5070
5092
|
.wp-block-table.alignleft, .wp-block-table.aligncenter, .wp-block-table.alignright {
|
|
5071
5093
|
display: table;
|
|
@@ -5075,7 +5097,8 @@ ul.wp-block-rss.is-grid li {
|
|
|
5075
5097
|
.wp-block-table.alignleft th, .wp-block-table.aligncenter td,
|
|
5076
5098
|
.wp-block-table.aligncenter th, .wp-block-table.alignright td,
|
|
5077
5099
|
.wp-block-table.alignright th {
|
|
5078
|
-
word-break:
|
|
5100
|
+
word-break: normal;
|
|
5101
|
+
overflow-wrap: anywhere;
|
|
5079
5102
|
}
|
|
5080
5103
|
.wp-block-table .has-subtle-light-gray-background-color {
|
|
5081
5104
|
background-color: #f3f4f5;
|
|
@@ -5240,15 +5263,22 @@ pre.wp-block-verse {
|
|
|
5240
5263
|
box-sizing: border-box;
|
|
5241
5264
|
overflow: auto;
|
|
5242
5265
|
white-space: pre-wrap;
|
|
5243
|
-
min-width: 1em;
|
|
5244
5266
|
word-break: normal;
|
|
5245
5267
|
overflow-wrap: break-word;
|
|
5246
5268
|
}
|
|
5247
5269
|
|
|
5270
|
+
:root :where(pre.wp-block-verse) {
|
|
5271
|
+
min-width: 1em;
|
|
5272
|
+
}
|
|
5273
|
+
|
|
5248
5274
|
:where(pre.wp-block-verse) {
|
|
5249
5275
|
font-family: inherit;
|
|
5250
5276
|
}
|
|
5251
5277
|
|
|
5278
|
+
pre.wp-block-verse.has-fit-text {
|
|
5279
|
+
white-space: pre !important;
|
|
5280
|
+
}
|
|
5281
|
+
|
|
5252
5282
|
.wp-block-video {
|
|
5253
5283
|
box-sizing: border-box;
|
|
5254
5284
|
}
|
|
@@ -5295,6 +5325,21 @@ a[data-fn].fn::after {
|
|
|
5295
5325
|
--wp-block-synced-color--rgb: 122, 0, 223;
|
|
5296
5326
|
--wp-bound-block-color: var(--wp-block-synced-color);
|
|
5297
5327
|
--wp-editor-canvas-background: #ddd;
|
|
5328
|
+
--wp-admin-theme-color: #3858e9;
|
|
5329
|
+
--wp-admin-theme-color--rgb: 56, 88, 233;
|
|
5330
|
+
--wp-admin-theme-color-darker-10: rgb(33.0384615385, 68.7307692308, 230.4615384615);
|
|
5331
|
+
--wp-admin-theme-color-darker-10--rgb: 33.0384615385, 68.7307692308, 230.4615384615;
|
|
5332
|
+
--wp-admin-theme-color-darker-20: rgb(23.6923076923, 58.1538461538, 214.3076923077);
|
|
5333
|
+
--wp-admin-theme-color-darker-20--rgb: 23.6923076923, 58.1538461538, 214.3076923077;
|
|
5334
|
+
--wp-admin-border-width-focus: 2px;
|
|
5335
|
+
}
|
|
5336
|
+
@media (min-resolution: 192dpi) {
|
|
5337
|
+
:root {
|
|
5338
|
+
--wp-admin-border-width-focus: 1.5px;
|
|
5339
|
+
}
|
|
5340
|
+
}
|
|
5341
|
+
|
|
5342
|
+
body.admin-color-fresh {
|
|
5298
5343
|
--wp-admin-theme-color: #007cba;
|
|
5299
5344
|
--wp-admin-theme-color--rgb: 0, 124, 186;
|
|
5300
5345
|
--wp-admin-theme-color-darker-10: rgb(0, 107, 160.5);
|
|
@@ -5304,7 +5349,7 @@ a[data-fn].fn::after {
|
|
|
5304
5349
|
--wp-admin-border-width-focus: 2px;
|
|
5305
5350
|
}
|
|
5306
5351
|
@media (min-resolution: 192dpi) {
|
|
5307
|
-
|
|
5352
|
+
body.admin-color-fresh {
|
|
5308
5353
|
--wp-admin-border-width-focus: 1.5px;
|
|
5309
5354
|
}
|
|
5310
5355
|
}
|
|
@@ -5547,4 +5592,22 @@ html :where(.is-position-sticky) {
|
|
|
5547
5592
|
html :where(.is-position-sticky) {
|
|
5548
5593
|
--wp-admin--admin-bar--position-offset: 0px;
|
|
5549
5594
|
}
|
|
5550
|
-
}
|
|
5595
|
+
}
|
|
5596
|
+
/*!rtl:begin:ignore*/
|
|
5597
|
+
@supports (not (-webkit-backdrop-filter: blur(1px))) and (not (-moz-appearance: none)) {
|
|
5598
|
+
mtd[columnalign=right] {
|
|
5599
|
+
text-align: -webkit-right;
|
|
5600
|
+
}
|
|
5601
|
+
mtd[columnalign=left] {
|
|
5602
|
+
text-align: -webkit-left;
|
|
5603
|
+
}
|
|
5604
|
+
menclose[notation~=top] {
|
|
5605
|
+
padding-top: 0.1em;
|
|
5606
|
+
border-top: 0.065em solid;
|
|
5607
|
+
}
|
|
5608
|
+
menclose[notation~=bottom] {
|
|
5609
|
+
padding-bottom: 0.1em;
|
|
5610
|
+
border-bottom: 0.065em solid;
|
|
5611
|
+
}
|
|
5612
|
+
}
|
|
5613
|
+
/*!rtl:end:ignore*/
|
|
@@ -103,7 +103,8 @@
|
|
|
103
103
|
.wp-block[data-align=left] > .wp-block-table th, .wp-block[data-align=right] > .wp-block-table td,
|
|
104
104
|
.wp-block[data-align=right] > .wp-block-table th, .wp-block[data-align=center] > .wp-block-table td,
|
|
105
105
|
.wp-block[data-align=center] > .wp-block-table th {
|
|
106
|
-
word-break:
|
|
106
|
+
word-break: normal;
|
|
107
|
+
overflow-wrap: anywhere;
|
|
107
108
|
}
|
|
108
109
|
.wp-block[data-align=center] > .wp-block-table {
|
|
109
110
|
text-align: initial;
|
|
@@ -116,6 +117,10 @@
|
|
|
116
117
|
border: 1px solid;
|
|
117
118
|
padding: 0.5em;
|
|
118
119
|
}
|
|
120
|
+
.wp-block-table td [contenteditable=true],
|
|
121
|
+
.wp-block-table th [contenteditable=true] {
|
|
122
|
+
overflow-wrap: inherit;
|
|
123
|
+
}
|
|
119
124
|
.wp-block-table td.is-selected,
|
|
120
125
|
.wp-block-table th.is-selected {
|
|
121
126
|
border-color: var(--wp-admin-theme-color);
|
|
@@ -103,7 +103,8 @@
|
|
|
103
103
|
.wp-block[data-align=left] > .wp-block-table th, .wp-block[data-align=right] > .wp-block-table td,
|
|
104
104
|
.wp-block[data-align=right] > .wp-block-table th, .wp-block[data-align=center] > .wp-block-table td,
|
|
105
105
|
.wp-block[data-align=center] > .wp-block-table th {
|
|
106
|
-
word-break:
|
|
106
|
+
word-break: normal;
|
|
107
|
+
overflow-wrap: anywhere;
|
|
107
108
|
}
|
|
108
109
|
.wp-block[data-align=center] > .wp-block-table {
|
|
109
110
|
text-align: initial;
|
|
@@ -116,6 +117,10 @@
|
|
|
116
117
|
border: 1px solid;
|
|
117
118
|
padding: 0.5em;
|
|
118
119
|
}
|
|
120
|
+
.wp-block-table td [contenteditable=true],
|
|
121
|
+
.wp-block-table th [contenteditable=true] {
|
|
122
|
+
overflow-wrap: inherit;
|
|
123
|
+
}
|
|
119
124
|
.wp-block-table td.is-selected,
|
|
120
125
|
.wp-block-table th.is-selected {
|
|
121
126
|
border-color: var(--wp-admin-theme-color);
|
|
@@ -67,7 +67,8 @@
|
|
|
67
67
|
}
|
|
68
68
|
.wp-block-table .has-fixed-layout td,
|
|
69
69
|
.wp-block-table .has-fixed-layout th {
|
|
70
|
-
word-break:
|
|
70
|
+
word-break: normal;
|
|
71
|
+
overflow-wrap: anywhere;
|
|
71
72
|
}
|
|
72
73
|
.wp-block-table.alignleft, .wp-block-table.aligncenter, .wp-block-table.alignright {
|
|
73
74
|
display: table;
|
|
@@ -77,7 +78,8 @@
|
|
|
77
78
|
.wp-block-table.alignleft th, .wp-block-table.aligncenter td,
|
|
78
79
|
.wp-block-table.aligncenter th, .wp-block-table.alignright td,
|
|
79
80
|
.wp-block-table.alignright th {
|
|
80
|
-
word-break:
|
|
81
|
+
word-break: normal;
|
|
82
|
+
overflow-wrap: anywhere;
|
|
81
83
|
}
|
|
82
84
|
.wp-block-table .has-subtle-light-gray-background-color {
|
|
83
85
|
background-color: #f3f4f5;
|
|
@@ -67,7 +67,8 @@
|
|
|
67
67
|
}
|
|
68
68
|
.wp-block-table .has-fixed-layout td,
|
|
69
69
|
.wp-block-table .has-fixed-layout th {
|
|
70
|
-
word-break:
|
|
70
|
+
word-break: normal;
|
|
71
|
+
overflow-wrap: anywhere;
|
|
71
72
|
}
|
|
72
73
|
.wp-block-table.alignleft, .wp-block-table.aligncenter, .wp-block-table.alignright {
|
|
73
74
|
display: table;
|
|
@@ -77,7 +78,8 @@
|
|
|
77
78
|
.wp-block-table.alignleft th, .wp-block-table.aligncenter td,
|
|
78
79
|
.wp-block-table.aligncenter th, .wp-block-table.alignright td,
|
|
79
80
|
.wp-block-table.alignright th {
|
|
80
|
-
word-break:
|
|
81
|
+
word-break: normal;
|
|
82
|
+
overflow-wrap: anywhere;
|
|
81
83
|
}
|
|
82
84
|
.wp-block-table .has-subtle-light-gray-background-color {
|
|
83
85
|
background-color: #f3f4f5;
|
|
@@ -2,11 +2,18 @@ pre.wp-block-verse {
|
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
overflow: auto;
|
|
4
4
|
white-space: pre-wrap;
|
|
5
|
-
min-width: 1em;
|
|
6
5
|
word-break: normal;
|
|
7
6
|
overflow-wrap: break-word;
|
|
8
7
|
}
|
|
9
8
|
|
|
9
|
+
:root :where(pre.wp-block-verse) {
|
|
10
|
+
min-width: 1em;
|
|
11
|
+
}
|
|
12
|
+
|
|
10
13
|
:where(pre.wp-block-verse) {
|
|
11
14
|
font-family: inherit;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
pre.wp-block-verse.has-fit-text {
|
|
18
|
+
white-space: pre !important;
|
|
12
19
|
}
|
|
@@ -2,11 +2,18 @@ pre.wp-block-verse {
|
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
overflow: auto;
|
|
4
4
|
white-space: pre-wrap;
|
|
5
|
-
min-width: 1em;
|
|
6
5
|
word-break: normal;
|
|
7
6
|
overflow-wrap: break-word;
|
|
8
7
|
}
|
|
9
8
|
|
|
9
|
+
:root :where(pre.wp-block-verse) {
|
|
10
|
+
min-width: 1em;
|
|
11
|
+
}
|
|
12
|
+
|
|
10
13
|
:where(pre.wp-block-verse) {
|
|
11
14
|
font-family: inherit;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
pre.wp-block-verse.has-fit-text {
|
|
18
|
+
white-space: pre !important;
|
|
12
19
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Order } from './order-options';
|
|
2
|
+
type SourceOrderControlProps = {
|
|
3
|
+
/** The stored query order. */
|
|
4
|
+
order: Order;
|
|
5
|
+
/** Whether the gallery's `randomOrder` attribute is set. */
|
|
6
|
+
isRandom: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Called with `{ orderby, order }` to update the query. Choosing an order
|
|
9
|
+
* also turns "Random" off; the handler owns that so both writes land in one
|
|
10
|
+
* undo level.
|
|
11
|
+
*/
|
|
12
|
+
onChange: (order: Order) => void;
|
|
13
|
+
/** Called when "Random" is chosen. */
|
|
14
|
+
onSelectRandom: () => void;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Ordering control for a dynamic gallery, shown in the Settings panel. The
|
|
18
|
+
* chosen order is a *setting*: it's stored in the source's query and re-applied
|
|
19
|
+
* every time the source resolves. "Random" is stored separately (the
|
|
20
|
+
* `randomOrder` attribute) and overrides the query order on the front end, so
|
|
21
|
+
* while it's set the control shows it instead of the query order.
|
|
22
|
+
*/
|
|
23
|
+
export declare function SourceOrderControl({ order, isRandom, onChange, onSelectRandom, }: SourceOrderControlProps): import("react").JSX.Element;
|
|
24
|
+
type SortImagesControlProps = {
|
|
25
|
+
/** The last sort applied, while it still holds, or `null` for a custom order. */
|
|
26
|
+
currentOrder: Order | null;
|
|
27
|
+
/** Whether the gallery's `randomOrder` attribute is set. */
|
|
28
|
+
isRandom: boolean;
|
|
29
|
+
/** Whether the sort orders can be applied (false while media resolves). */
|
|
30
|
+
canSort: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Called with `{ orderby, order }` to sort the images. Sorting also turns
|
|
33
|
+
* "Random" off; the handler owns that so both writes land in one undo level.
|
|
34
|
+
*/
|
|
35
|
+
onSort: (order: Order) => void;
|
|
36
|
+
/** Called when "Custom" is chosen, which turns "Random" off. */
|
|
37
|
+
onSelectCustom: () => void;
|
|
38
|
+
/** Called when "Random" is chosen. */
|
|
39
|
+
onSelectRandom: () => void;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Ordering control for a static gallery, shown in the Settings panel.
|
|
43
|
+
*
|
|
44
|
+
* The date and title orders are one-off *actions*: choosing one reorders the
|
|
45
|
+
* inner image blocks once, and the user can drag them into any other order
|
|
46
|
+
* afterwards. Nothing is stored for them, so the caller passes back the last
|
|
47
|
+
* sort it applied for as long as the images remain in that sequence, and
|
|
48
|
+
* `null` ("Custom") otherwise. "Custom" means the order arranged in the
|
|
49
|
+
* editor, and is choosable only while "Random" is on: picking it turns
|
|
50
|
+
* "Random" off without reordering anything.
|
|
51
|
+
*
|
|
52
|
+
* "Random" is the one stored value (the `randomOrder` attribute). It applies
|
|
53
|
+
* on the front end only, leaving the editor order as it is, and choosing any
|
|
54
|
+
* other option clears it.
|
|
55
|
+
*/
|
|
56
|
+
export declare function SortImagesControl({ currentOrder, isRandom, canSort, onSort, onSelectCustom, onSelectRandom, }: SortImagesControlProps): import("react").JSX.Element;
|
|
57
|
+
export {};
|
|
58
|
+
//# sourceMappingURL=order-controls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-controls.d.ts","sourceRoot":"","sources":["../../src/gallery/order-controls.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAU7C,KAAK,uBAAuB,GAAG;IAC9B,8BAA8B;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,4DAA4D;IAC5D,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,CAAE,KAAK,EAAE,KAAK,KAAM,IAAI,CAAC;IACnC,sCAAsC;IACtC,cAAc,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAE,EACnC,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,cAAc,GACd,EAAE,uBAAuB,+BAgBzB;AAID,KAAK,sBAAsB,GAAG;IAC7B,iFAAiF;IACjF,YAAY,EAAE,KAAK,GAAG,IAAI,CAAC;IAC3B,4DAA4D;IAC5D,QAAQ,EAAE,OAAO,CAAC;IAClB,2EAA2E;IAC3E,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,MAAM,EAAE,CAAE,KAAK,EAAE,KAAK,KAAM,IAAI,CAAC;IACjC,gEAAgE;IAChE,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,sCAAsC;IACtC,cAAc,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAE,EAClC,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,MAAM,EACN,cAAc,EACd,cAAc,GACd,EAAE,sBAAsB,+BAoCxB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An ordering of gallery images: the field to order by and the direction.
|
|
3
|
+
*/
|
|
4
|
+
export type Order = {
|
|
5
|
+
orderby: string;
|
|
6
|
+
order: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* The composite `"orderby/order"` select value for an order. A select needs one
|
|
10
|
+
* string per option, so this format exists only at the select boundary; the
|
|
11
|
+
* rest of the feature passes `Order` objects.
|
|
12
|
+
*
|
|
13
|
+
* @param order The order.
|
|
14
|
+
* @return The select value.
|
|
15
|
+
*/
|
|
16
|
+
export declare function toOrderValue(order: Order): string;
|
|
17
|
+
/**
|
|
18
|
+
* Parses a composite `"orderby/order"` select value back into an order.
|
|
19
|
+
*
|
|
20
|
+
* @param value The select value.
|
|
21
|
+
* @return The order.
|
|
22
|
+
*/
|
|
23
|
+
export declare function parseOrderValue(value: string): Order;
|
|
24
|
+
/**
|
|
25
|
+
* Ordering options offered for gallery images. Each value is a composite
|
|
26
|
+
* `orderby/order` string. The two modes share values and labels but differ
|
|
27
|
+
* in their comparison logic:
|
|
28
|
+
*
|
|
29
|
+
* - A dynamic gallery passes `orderby/order` to the REST API in the editor (the
|
|
30
|
+
* `/wp/v2/media` collection params; see `dynamic-source.js`) and to a
|
|
31
|
+
* `WP_Query` on the front end (see `index.php`). Either way the database
|
|
32
|
+
* orders by post date or post title.
|
|
33
|
+
* - A static gallery orders its inner image blocks client-side from the same
|
|
34
|
+
* attachment fields (see `order-images.js`). Dates compare the same way.
|
|
35
|
+
* Titles use a natural, case-insensitive compare, so `IMG_2` sorts before
|
|
36
|
+
* `IMG_10` where the database would put it after. The two title orders can
|
|
37
|
+
* therefore differ for numbered titles.
|
|
38
|
+
*
|
|
39
|
+
* `menu_order` is deliberately omitted — it isn't a valid REST `orderby`
|
|
40
|
+
* value, so the editor preview couldn't reproduce it (see `dynamic-source.js`).
|
|
41
|
+
*/
|
|
42
|
+
export declare const ORDER_OPTIONS: ({
|
|
43
|
+
label: import("@wordpress/i18n").TransformedText<"Newest to oldest">;
|
|
44
|
+
value: string;
|
|
45
|
+
} | {
|
|
46
|
+
label: import("@wordpress/i18n").TransformedText<"Oldest to newest">;
|
|
47
|
+
value: string;
|
|
48
|
+
} | {
|
|
49
|
+
label: import("@wordpress/i18n").TransformedText<"A → Z">;
|
|
50
|
+
value: string;
|
|
51
|
+
} | {
|
|
52
|
+
label: import("@wordpress/i18n").TransformedText<"Z → A">;
|
|
53
|
+
value: string;
|
|
54
|
+
})[];
|
|
55
|
+
/**
|
|
56
|
+
* The "Random" order. Unlike the orders above it isn't an `orderby`: it is the
|
|
57
|
+
* gallery's `randomOrder` attribute, applied only on the front end by shuffling
|
|
58
|
+
* the rendered images (see `index.php`), so the editor keeps showing the
|
|
59
|
+
* underlying order. Offered as the last option of both modes' "Order by"
|
|
60
|
+
* control, since it overrides whatever other order is in place.
|
|
61
|
+
*/
|
|
62
|
+
export declare const RANDOM_ORDER = "random";
|
|
63
|
+
export declare const RANDOM_OPTION: {
|
|
64
|
+
label: import("@wordpress/i18n").TransformedText<"Random">;
|
|
65
|
+
value: string;
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=order-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-options.d.ts","sourceRoot":"","sources":["../../src/gallery/order-options.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAE,KAAK,EAAE,KAAK,GAAI,MAAM,CAEnD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAE,KAAK,EAAE,MAAM,GAAI,KAAK,CAGtD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;IAazB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,WAAW,CAAC;AACrC,eAAO,MAAM,aAAa;;;CAAiD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"wpScript": true,
|
|
44
44
|
"wpScriptModuleExports": {
|
|
45
45
|
"./accordion/view": "./build-module/accordion/view.mjs",
|
|
46
|
+
"./cover/view": "./build-module/cover/view.mjs",
|
|
46
47
|
"./file/view": "./build-module/file/view.mjs",
|
|
47
48
|
"./image/view": "./build-module/image/view.mjs",
|
|
48
49
|
"./navigation/view": "./build-module/navigation/view.mjs",
|
|
@@ -90,44 +91,45 @@
|
|
|
90
91
|
"build-module/*/init.mjs"
|
|
91
92
|
],
|
|
92
93
|
"dependencies": {
|
|
93
|
-
"@arraypress/waveform-player": "^1.
|
|
94
|
-
"@wordpress/a11y": "^4.
|
|
95
|
-
"@wordpress/api-fetch": "^7.
|
|
96
|
-
"@wordpress/autop": "^4.
|
|
97
|
-
"@wordpress/base-styles": "^13.
|
|
98
|
-
"@wordpress/blob": "^4.
|
|
99
|
-
"@wordpress/block-editor": "^18.
|
|
100
|
-
"@wordpress/blocks": "^16.
|
|
101
|
-
"@wordpress/components": "^
|
|
102
|
-
"@wordpress/compose": "^8.
|
|
103
|
-
"@wordpress/core-data": "^8.
|
|
104
|
-
"@wordpress/data": "^10.
|
|
105
|
-
"@wordpress/date": "^5.
|
|
106
|
-
"@wordpress/deprecated": "^4.
|
|
107
|
-
"@wordpress/dom": "^4.
|
|
108
|
-
"@wordpress/element": "^
|
|
109
|
-
"@wordpress/escape-html": "^3.
|
|
110
|
-
"@wordpress/global-styles-engine": "^1.
|
|
111
|
-
"@wordpress/hooks": "^4.
|
|
112
|
-
"@wordpress/html-entities": "^4.
|
|
113
|
-
"@wordpress/i18n": "^6.
|
|
114
|
-
"@wordpress/icons": "^
|
|
115
|
-
"@wordpress/interactivity": "^
|
|
116
|
-
"@wordpress/interactivity-router": "^2.
|
|
117
|
-
"@wordpress/kebab-case": "^1.
|
|
118
|
-
"@wordpress/keycodes": "^4.
|
|
119
|
-
"@wordpress/latex-to-mathml": "^1.
|
|
120
|
-
"@wordpress/notices": "^5.
|
|
121
|
-
"@wordpress/patterns": "^2.
|
|
122
|
-
"@wordpress/primitives": "^4.
|
|
123
|
-
"@wordpress/private-apis": "^
|
|
124
|
-
"@wordpress/
|
|
125
|
-
"@wordpress/
|
|
126
|
-
"@wordpress/
|
|
127
|
-
"@wordpress/
|
|
128
|
-
"@wordpress/
|
|
129
|
-
"@wordpress/
|
|
130
|
-
"@wordpress/
|
|
94
|
+
"@arraypress/waveform-player": "^1.27.0",
|
|
95
|
+
"@wordpress/a11y": "^4.57.0",
|
|
96
|
+
"@wordpress/api-fetch": "^7.57.0",
|
|
97
|
+
"@wordpress/autop": "^4.57.0",
|
|
98
|
+
"@wordpress/base-styles": "^13.3.0",
|
|
99
|
+
"@wordpress/blob": "^4.57.0",
|
|
100
|
+
"@wordpress/block-editor": "^18.1.0",
|
|
101
|
+
"@wordpress/blocks": "^16.2.0",
|
|
102
|
+
"@wordpress/components": "^42.0.0",
|
|
103
|
+
"@wordpress/compose": "^8.10.0",
|
|
104
|
+
"@wordpress/core-data": "^8.2.0",
|
|
105
|
+
"@wordpress/data": "^10.57.0",
|
|
106
|
+
"@wordpress/date": "^5.57.0",
|
|
107
|
+
"@wordpress/deprecated": "^4.57.0",
|
|
108
|
+
"@wordpress/dom": "^4.57.0",
|
|
109
|
+
"@wordpress/element": "^9.0.0",
|
|
110
|
+
"@wordpress/escape-html": "^3.57.0",
|
|
111
|
+
"@wordpress/global-styles-engine": "^1.24.0",
|
|
112
|
+
"@wordpress/hooks": "^4.57.0",
|
|
113
|
+
"@wordpress/html-entities": "^4.57.0",
|
|
114
|
+
"@wordpress/i18n": "^6.30.0",
|
|
115
|
+
"@wordpress/icons": "^18.0.0",
|
|
116
|
+
"@wordpress/interactivity": "^7.0.0",
|
|
117
|
+
"@wordpress/interactivity-router": "^2.57.0",
|
|
118
|
+
"@wordpress/kebab-case": "^1.4.0",
|
|
119
|
+
"@wordpress/keycodes": "^4.57.0",
|
|
120
|
+
"@wordpress/latex-to-mathml": "^1.25.0",
|
|
121
|
+
"@wordpress/notices": "^5.57.0",
|
|
122
|
+
"@wordpress/patterns": "^2.57.0",
|
|
123
|
+
"@wordpress/primitives": "^4.57.0",
|
|
124
|
+
"@wordpress/private-apis": "^2.0.0",
|
|
125
|
+
"@wordpress/react-inert-value": "^1.0.0",
|
|
126
|
+
"@wordpress/rich-text": "^7.57.0",
|
|
127
|
+
"@wordpress/server-side-render": "^6.33.0",
|
|
128
|
+
"@wordpress/shortcode": "^4.57.0",
|
|
129
|
+
"@wordpress/ui": "^0.24.0",
|
|
130
|
+
"@wordpress/upload-media": "^0.42.0",
|
|
131
|
+
"@wordpress/url": "^4.57.0",
|
|
132
|
+
"@wordpress/wordcount": "^4.57.0",
|
|
131
133
|
"change-case": "^4.1.2",
|
|
132
134
|
"clsx": "^2.1.1",
|
|
133
135
|
"colord": "^2.9.4",
|
|
@@ -146,7 +148,8 @@
|
|
|
146
148
|
"@wordpress/integration-tests": "file:../../test/integration",
|
|
147
149
|
"@wordpress/stylelint-tools": "file:../../tools/stylelint",
|
|
148
150
|
"deep-freeze": "^0.0.1",
|
|
149
|
-
"vitest": "^5.0.
|
|
151
|
+
"vitest": "^5.0.3",
|
|
152
|
+
"vitest-browser-react": "^2.3.0"
|
|
150
153
|
},
|
|
151
154
|
"peerDependencies": {
|
|
152
155
|
"@types/react": "^18 || ^19",
|
|
@@ -161,5 +164,5 @@
|
|
|
161
164
|
"publishConfig": {
|
|
162
165
|
"access": "public"
|
|
163
166
|
},
|
|
164
|
-
"gitHead": "
|
|
167
|
+
"gitHead": "12441e2520c78b2254a792a8cba40c34110be060"
|
|
165
168
|
}
|
|
@@ -39,6 +39,7 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
39
39
|
- `padding`: `true`
|
|
40
40
|
- [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography):
|
|
41
41
|
- [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true`
|
|
42
|
+
- [`lineHeight`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-lineheight): `true`
|
|
42
43
|
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
|
|
43
44
|
- [`visibility`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#visibility): `false`
|
|
44
45
|
- [`lock`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#lock): `false`
|
package/src/archives/README.md
CHANGED
|
@@ -29,6 +29,8 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
29
29
|
- `backgroundImage`: `true`
|
|
30
30
|
- `backgroundSize`: `true`
|
|
31
31
|
- `gradient`: `true`
|
|
32
|
+
- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
|
|
33
|
+
- `minHeight`: `true`
|
|
32
34
|
- [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false`
|
|
33
35
|
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
|
|
34
36
|
- `margin`: `true`
|