@wordpress/block-library 9.3.0 → 9.5.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 +8 -0
- package/build/avatar/edit.js +1 -0
- package/build/avatar/edit.js.map +1 -1
- package/build/block/edit.js +38 -23
- package/build/block/edit.js.map +1 -1
- package/build/button/edit.js +1 -1
- package/build/button/edit.js.map +1 -1
- package/build/buttons/index.js +26 -0
- package/build/buttons/index.js.map +1 -1
- package/build/categories/edit.js +20 -3
- package/build/categories/edit.js.map +1 -1
- package/build/categories/index.js +20 -0
- package/build/categories/index.js.map +1 -1
- package/build/column/edit.js +2 -2
- package/build/column/edit.js.map +1 -1
- package/build/column/index.js +2 -0
- package/build/column/index.js.map +1 -1
- package/build/columns/index.js +2 -2
- package/build/columns/index.js.map +1 -1
- package/build/comment-template/index.js +12 -0
- package/build/comment-template/index.js.map +1 -1
- package/build/comments-title/deprecated.js +3 -0
- package/build/comments-title/deprecated.js.map +1 -1
- package/build/comments-title/edit.js +3 -1
- package/build/comments-title/edit.js.map +1 -1
- package/build/comments-title/index.js +3 -0
- package/build/comments-title/index.js.map +1 -1
- package/build/cover/edit/inspector-controls.js +2 -1
- package/build/cover/edit/inspector-controls.js.map +1 -1
- package/build/details/edit.js +1 -0
- package/build/details/edit.js.map +1 -1
- package/build/embed/variations.js +39 -34
- package/build/embed/variations.js.map +1 -1
- package/build/footnotes/index.js +1 -1
- package/build/footnotes/index.js.map +1 -1
- package/build/form/edit.js +4 -4
- package/build/form/edit.js.map +1 -1
- package/build/form-input/edit.js +3 -0
- package/build/form-input/edit.js.map +1 -1
- package/build/gallery/edit.js +42 -8
- package/build/gallery/edit.js.map +1 -1
- package/build/gallery/gap-styles.js +1 -9
- package/build/gallery/gap-styles.js.map +1 -1
- package/build/gallery/index.js +10 -0
- package/build/gallery/index.js.map +1 -1
- package/build/gallery/use-image-sizes.js +2 -2
- package/build/gallery/use-image-sizes.js.map +1 -1
- package/build/group/deprecated.js +2 -5
- package/build/group/deprecated.js.map +1 -1
- package/build/group/index.js +27 -30
- package/build/group/index.js.map +1 -1
- package/build/group/variations.js +51 -3
- package/build/group/variations.js.map +1 -1
- package/build/heading/edit.js +2 -0
- package/build/heading/edit.js.map +1 -1
- package/build/heading/index.js +17 -1
- package/build/heading/index.js.map +1 -1
- package/build/image/edit.js +1 -1
- package/build/image/edit.js.map +1 -1
- package/build/image/image.js +24 -11
- package/build/image/image.js.map +1 -1
- package/build/image/index.js +3 -0
- package/build/image/index.js.map +1 -1
- package/build/image/view.js +65 -49
- package/build/image/view.js.map +1 -1
- package/build/latest-comments/index.js +9 -0
- package/build/latest-comments/index.js.map +1 -1
- package/build/latest-posts/edit.js +1 -0
- package/build/latest-posts/edit.js.map +1 -1
- package/build/list/edit.js +3 -3
- package/build/list/edit.js.map +1 -1
- package/build/list/index.js +1 -1
- package/build/list/ordered-list-settings.js +19 -17
- package/build/list/ordered-list-settings.js.map +1 -1
- package/build/list-item/edit.js +2 -2
- package/build/list-item/edit.js.map +1 -1
- package/build/list-item/hooks/index.js +0 -7
- package/build/list-item/hooks/index.js.map +1 -1
- package/build/list-item/index.js +3 -2
- package/build/list-item/index.js.map +1 -1
- package/build/loginout/index.js +14 -1
- package/build/loginout/index.js.map +1 -1
- package/build/media-text/index.js +12 -0
- package/build/media-text/index.js.map +1 -1
- package/build/navigation/edit/index.js +5 -4
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/navigation-menu-delete-control.js +1 -0
- package/build/navigation/edit/navigation-menu-delete-control.js.map +1 -1
- package/build/navigation/use-navigation-menu.js +5 -1
- package/build/navigation/use-navigation-menu.js.map +1 -1
- package/build/navigation-link/link-ui.js +13 -17
- package/build/navigation-link/link-ui.js.map +1 -1
- package/build/navigation-submenu/edit.js +0 -11
- package/build/navigation-submenu/edit.js.map +1 -1
- package/build/page-list/edit.js +1 -0
- package/build/page-list/edit.js.map +1 -1
- package/build/page-list-item/edit.js +4 -1
- package/build/page-list-item/edit.js.map +1 -1
- package/build/paragraph/index.js +6 -0
- package/build/paragraph/index.js.map +1 -1
- package/build/paragraph/transforms.js +6 -0
- package/build/paragraph/transforms.js.map +1 -1
- package/build/post-author/index.js +8 -0
- package/build/post-author/index.js.map +1 -1
- package/build/post-author-biography/index.js +3 -0
- package/build/post-author-biography/index.js.map +1 -1
- package/build/post-author-name/index.js +3 -0
- package/build/post-author-name/index.js.map +1 -1
- package/build/post-comments-form/index.js +12 -0
- package/build/post-comments-form/index.js.map +1 -1
- package/build/post-content/index.js +1 -0
- package/build/post-content/index.js.map +1 -1
- package/build/post-date/index.js +15 -0
- package/build/post-date/index.js.map +1 -1
- package/build/post-excerpt/edit.js +1 -0
- package/build/post-excerpt/edit.js.map +1 -1
- package/build/post-excerpt/index.js +12 -0
- package/build/post-excerpt/index.js.map +1 -1
- package/build/post-featured-image/index.js +3 -0
- package/build/post-featured-image/index.js.map +1 -1
- package/build/post-navigation-link/edit.js +2 -0
- package/build/post-navigation-link/edit.js.map +1 -1
- package/build/post-terms/index.js +15 -0
- package/build/post-terms/index.js.map +1 -1
- package/build/post-time-to-read/index.js +6 -0
- package/build/post-time-to-read/index.js.map +1 -1
- package/build/post-title/edit.js +9 -3
- package/build/post-title/edit.js.map +1 -1
- package/build/post-title/index.js +15 -0
- package/build/post-title/index.js.map +1 -1
- package/build/query/edit/inspector-controls/author-control.js +3 -1
- package/build/query/edit/inspector-controls/author-control.js.map +1 -1
- package/build/query/edit/inspector-controls/enhanced-pagination-control.js +1 -0
- package/build/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
- package/build/query/edit/inspector-controls/index.js +90 -12
- package/build/query/edit/inspector-controls/index.js.map +1 -1
- package/build/query/edit/inspector-controls/offset-controls.js +37 -0
- package/build/query/edit/inspector-controls/offset-controls.js.map +1 -0
- package/build/query/edit/inspector-controls/order-control.js +1 -0
- package/build/query/edit/inspector-controls/order-control.js.map +1 -1
- package/build/query/edit/inspector-controls/pages-control.js +36 -0
- package/build/query/edit/inspector-controls/pages-control.js.map +1 -0
- package/build/query/edit/inspector-controls/parent-control.js +2 -1
- package/build/query/edit/inspector-controls/parent-control.js.map +1 -1
- package/build/query/edit/inspector-controls/per-page-control.js +40 -0
- package/build/query/edit/inspector-controls/per-page-control.js.map +1 -0
- package/build/query/edit/inspector-controls/sticky-control.js +2 -1
- package/build/query/edit/inspector-controls/sticky-control.js.map +1 -1
- package/build/query/edit/inspector-controls/taxonomy-controls.js +5 -2
- package/build/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
- package/build/query/edit/query-content.js +11 -2
- package/build/query/edit/query-content.js.map +1 -1
- package/build/query/edit/query-placeholder.js +1 -14
- package/build/query/edit/query-placeholder.js.map +1 -1
- package/build/query/edit/query-toolbar.js +3 -76
- package/build/query/edit/query-toolbar.js.map +1 -1
- package/build/query/utils.js +15 -6
- package/build/query/utils.js.map +1 -1
- package/build/query/variations.js +9 -55
- package/build/query/variations.js.map +1 -1
- package/build/query-pagination-numbers/edit.js +1 -0
- package/build/query-pagination-numbers/edit.js.map +1 -1
- package/build/query-title/edit.js +13 -19
- package/build/query-title/edit.js.map +1 -1
- package/build/query-title/index.js +3 -0
- package/build/query-title/index.js.map +1 -1
- package/build/query-title/use-archive-label.js +95 -0
- package/build/query-title/use-archive-label.js.map +1 -0
- package/build/quote/index.js +15 -1
- package/build/quote/index.js.map +1 -1
- package/build/search/index.js +3 -0
- package/build/search/index.js.map +1 -1
- package/build/site-logo/edit.js +19 -9
- package/build/site-logo/edit.js.map +1 -1
- package/build/site-tagline/edit.js +8 -5
- package/build/site-tagline/edit.js.map +1 -1
- package/build/site-tagline/index.js +18 -2
- package/build/site-tagline/index.js.map +1 -1
- package/build/site-title/edit.js +6 -3
- package/build/site-title/edit.js.map +1 -1
- package/build/site-title/index.js +16 -1
- package/build/site-title/index.js.map +1 -1
- package/build/social-link/edit.js +0 -1
- package/build/social-link/edit.js.map +1 -1
- package/build/social-link/icons/soundcloud.js +1 -1
- package/build/social-link/icons/soundcloud.js.map +1 -1
- package/build/social-links/index.js +12 -0
- package/build/social-links/index.js.map +1 -1
- package/build/spacer/controls.js +8 -13
- package/build/spacer/controls.js.map +1 -1
- package/build/table-of-contents/index.js +14 -1
- package/build/table-of-contents/index.js.map +1 -1
- package/build/tag-cloud/edit.js +42 -33
- package/build/tag-cloud/edit.js.map +1 -1
- package/build/tag-cloud/index.js +1 -1
- package/build/template-part/edit/index.js +8 -5
- package/build/template-part/edit/index.js.map +1 -1
- package/build/template-part/edit/inner-blocks.js +11 -4
- package/build/template-part/edit/inner-blocks.js.map +1 -1
- package/build/template-part/edit/placeholder.js +23 -3
- package/build/template-part/edit/placeholder.js.map +1 -1
- package/build/template-part/edit/title-modal.js +20 -8
- package/build/template-part/edit/title-modal.js.map +1 -1
- package/build/term-description/index.js +12 -0
- package/build/term-description/index.js.map +1 -1
- package/build/utils/hooks.js +5 -1
- package/build/utils/hooks.js.map +1 -1
- package/build-module/avatar/edit.js +1 -0
- package/build-module/avatar/edit.js.map +1 -1
- package/build-module/block/edit.js +38 -23
- package/build-module/block/edit.js.map +1 -1
- package/build-module/button/edit.js +1 -1
- package/build-module/button/edit.js.map +1 -1
- package/build-module/buttons/index.js +26 -0
- package/build-module/buttons/index.js.map +1 -1
- package/build-module/categories/edit.js +21 -4
- package/build-module/categories/edit.js.map +1 -1
- package/build-module/categories/index.js +20 -0
- package/build-module/categories/index.js.map +1 -1
- package/build-module/column/edit.js +2 -2
- package/build-module/column/edit.js.map +1 -1
- package/build-module/column/index.js +2 -0
- package/build-module/column/index.js.map +1 -1
- package/build-module/columns/index.js +2 -2
- package/build-module/columns/index.js.map +1 -1
- package/build-module/comment-template/index.js +12 -0
- package/build-module/comment-template/index.js.map +1 -1
- package/build-module/comments-title/deprecated.js +3 -0
- package/build-module/comments-title/deprecated.js.map +1 -1
- package/build-module/comments-title/edit.js +3 -1
- package/build-module/comments-title/edit.js.map +1 -1
- package/build-module/comments-title/index.js +3 -0
- package/build-module/comments-title/index.js.map +1 -1
- package/build-module/cover/edit/inspector-controls.js +2 -1
- package/build-module/cover/edit/inspector-controls.js.map +1 -1
- package/build-module/details/edit.js +1 -0
- package/build-module/details/edit.js.map +1 -1
- package/build-module/embed/variations.js +40 -35
- package/build-module/embed/variations.js.map +1 -1
- package/build-module/footnotes/index.js +1 -1
- package/build-module/footnotes/index.js.map +1 -1
- package/build-module/form/edit.js +4 -4
- package/build-module/form/edit.js.map +1 -1
- package/build-module/form-input/edit.js +3 -0
- package/build-module/form-input/edit.js.map +1 -1
- package/build-module/gallery/edit.js +43 -9
- package/build-module/gallery/edit.js.map +1 -1
- package/build-module/gallery/gap-styles.js +1 -9
- package/build-module/gallery/gap-styles.js.map +1 -1
- package/build-module/gallery/index.js +10 -0
- package/build-module/gallery/index.js.map +1 -1
- package/build-module/gallery/use-image-sizes.js +2 -2
- package/build-module/gallery/use-image-sizes.js.map +1 -1
- package/build-module/group/deprecated.js +2 -5
- package/build-module/group/deprecated.js.map +1 -1
- package/build-module/group/index.js +27 -30
- package/build-module/group/index.js.map +1 -1
- package/build-module/group/variations.js +51 -3
- package/build-module/group/variations.js.map +1 -1
- package/build-module/heading/edit.js +2 -0
- package/build-module/heading/edit.js.map +1 -1
- package/build-module/heading/index.js +17 -1
- package/build-module/heading/index.js.map +1 -1
- package/build-module/image/edit.js +1 -1
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/image.js +25 -12
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/index.js +3 -0
- package/build-module/image/index.js.map +1 -1
- package/build-module/image/view.js +65 -49
- package/build-module/image/view.js.map +1 -1
- package/build-module/latest-comments/index.js +9 -0
- package/build-module/latest-comments/index.js.map +1 -1
- package/build-module/latest-posts/edit.js +1 -0
- package/build-module/latest-posts/edit.js.map +1 -1
- package/build-module/list/edit.js +3 -3
- package/build-module/list/edit.js.map +1 -1
- package/build-module/list/index.js +1 -1
- package/build-module/list/ordered-list-settings.js +19 -17
- package/build-module/list/ordered-list-settings.js.map +1 -1
- package/build-module/list-item/edit.js +2 -2
- package/build-module/list-item/edit.js.map +1 -1
- package/build-module/list-item/hooks/index.js +0 -1
- package/build-module/list-item/hooks/index.js.map +1 -1
- package/build-module/list-item/index.js +3 -2
- package/build-module/list-item/index.js.map +1 -1
- package/build-module/loginout/index.js +14 -1
- package/build-module/loginout/index.js.map +1 -1
- package/build-module/media-text/index.js +12 -0
- package/build-module/media-text/index.js.map +1 -1
- package/build-module/navigation/edit/index.js +5 -4
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-delete-control.js +1 -0
- package/build-module/navigation/edit/navigation-menu-delete-control.js.map +1 -1
- package/build-module/navigation/use-navigation-menu.js +5 -1
- package/build-module/navigation/use-navigation-menu.js.map +1 -1
- package/build-module/navigation-link/link-ui.js +13 -17
- package/build-module/navigation-link/link-ui.js.map +1 -1
- package/build-module/navigation-submenu/edit.js +0 -11
- package/build-module/navigation-submenu/edit.js.map +1 -1
- package/build-module/page-list/edit.js +1 -0
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/page-list-item/edit.js +4 -1
- package/build-module/page-list-item/edit.js.map +1 -1
- package/build-module/paragraph/index.js +6 -0
- package/build-module/paragraph/index.js.map +1 -1
- package/build-module/paragraph/transforms.js +6 -0
- package/build-module/paragraph/transforms.js.map +1 -1
- package/build-module/post-author/index.js +8 -0
- package/build-module/post-author/index.js.map +1 -1
- package/build-module/post-author-biography/index.js +3 -0
- package/build-module/post-author-biography/index.js.map +1 -1
- package/build-module/post-author-name/index.js +3 -0
- package/build-module/post-author-name/index.js.map +1 -1
- package/build-module/post-comments-form/index.js +12 -0
- package/build-module/post-comments-form/index.js.map +1 -1
- package/build-module/post-content/index.js +1 -0
- package/build-module/post-content/index.js.map +1 -1
- package/build-module/post-date/index.js +15 -0
- package/build-module/post-date/index.js.map +1 -1
- package/build-module/post-excerpt/edit.js +1 -0
- package/build-module/post-excerpt/edit.js.map +1 -1
- package/build-module/post-excerpt/index.js +12 -0
- package/build-module/post-excerpt/index.js.map +1 -1
- package/build-module/post-featured-image/index.js +3 -0
- package/build-module/post-featured-image/index.js.map +1 -1
- package/build-module/post-navigation-link/edit.js +2 -0
- package/build-module/post-navigation-link/edit.js.map +1 -1
- package/build-module/post-terms/index.js +15 -0
- package/build-module/post-terms/index.js.map +1 -1
- package/build-module/post-time-to-read/index.js +6 -0
- package/build-module/post-time-to-read/index.js.map +1 -1
- package/build-module/post-title/edit.js +9 -3
- package/build-module/post-title/edit.js.map +1 -1
- package/build-module/post-title/index.js +15 -0
- package/build-module/post-title/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/author-control.js +3 -1
- package/build-module/query/edit/inspector-controls/author-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js +1 -0
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/index.js +92 -14
- package/build-module/query/edit/inspector-controls/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/offset-controls.js +29 -0
- package/build-module/query/edit/inspector-controls/offset-controls.js.map +1 -0
- package/build-module/query/edit/inspector-controls/order-control.js +1 -0
- package/build-module/query/edit/inspector-controls/order-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/pages-control.js +28 -0
- package/build-module/query/edit/inspector-controls/pages-control.js.map +1 -0
- package/build-module/query/edit/inspector-controls/parent-control.js +2 -1
- package/build-module/query/edit/inspector-controls/parent-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/per-page-control.js +33 -0
- package/build-module/query/edit/inspector-controls/per-page-control.js.map +1 -0
- package/build-module/query/edit/inspector-controls/sticky-control.js +2 -1
- package/build-module/query/edit/inspector-controls/sticky-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/taxonomy-controls.js +6 -4
- package/build-module/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
- package/build-module/query/edit/query-content.js +11 -2
- package/build-module/query/edit/query-content.js.map +1 -1
- package/build-module/query/edit/query-placeholder.js +1 -14
- package/build-module/query/edit/query-placeholder.js.map +1 -1
- package/build-module/query/edit/query-toolbar.js +4 -78
- package/build-module/query/edit/query-toolbar.js.map +1 -1
- package/build-module/query/utils.js +15 -6
- package/build-module/query/utils.js.map +1 -1
- package/build-module/query/variations.js +4 -50
- package/build-module/query/variations.js.map +1 -1
- package/build-module/query-pagination-numbers/edit.js +1 -0
- package/build-module/query-pagination-numbers/edit.js.map +1 -1
- package/build-module/query-title/edit.js +14 -20
- package/build-module/query-title/edit.js.map +1 -1
- package/build-module/query-title/index.js +3 -0
- package/build-module/query-title/index.js.map +1 -1
- package/build-module/query-title/use-archive-label.js +88 -0
- package/build-module/query-title/use-archive-label.js.map +1 -0
- package/build-module/quote/index.js +15 -1
- package/build-module/quote/index.js.map +1 -1
- package/build-module/search/index.js +3 -0
- package/build-module/search/index.js.map +1 -1
- package/build-module/site-logo/edit.js +19 -9
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/site-tagline/edit.js +8 -5
- package/build-module/site-tagline/edit.js.map +1 -1
- package/build-module/site-tagline/index.js +18 -2
- package/build-module/site-tagline/index.js.map +1 -1
- package/build-module/site-title/edit.js +6 -3
- package/build-module/site-title/edit.js.map +1 -1
- package/build-module/site-title/index.js +16 -1
- package/build-module/site-title/index.js.map +1 -1
- package/build-module/social-link/edit.js +0 -1
- package/build-module/social-link/edit.js.map +1 -1
- package/build-module/social-link/icons/soundcloud.js +1 -1
- package/build-module/social-link/icons/soundcloud.js.map +1 -1
- package/build-module/social-links/index.js +12 -0
- package/build-module/social-links/index.js.map +1 -1
- package/build-module/spacer/controls.js +9 -14
- package/build-module/spacer/controls.js.map +1 -1
- package/build-module/table-of-contents/index.js +14 -1
- package/build-module/table-of-contents/index.js.map +1 -1
- package/build-module/tag-cloud/edit.js +43 -34
- package/build-module/tag-cloud/edit.js.map +1 -1
- package/build-module/tag-cloud/index.js +1 -1
- package/build-module/template-part/edit/index.js +8 -5
- package/build-module/template-part/edit/index.js.map +1 -1
- package/build-module/template-part/edit/inner-blocks.js +11 -4
- package/build-module/template-part/edit/inner-blocks.js.map +1 -1
- package/build-module/template-part/edit/placeholder.js +23 -3
- package/build-module/template-part/edit/placeholder.js.map +1 -1
- package/build-module/template-part/edit/title-modal.js +20 -8
- package/build-module/template-part/edit/title-modal.js.map +1 -1
- package/build-module/term-description/index.js +12 -0
- package/build-module/term-description/index.js.map +1 -1
- package/build-module/utils/hooks.js +5 -1
- package/build-module/utils/hooks.js.map +1 -1
- package/build-style/archives/editor-rtl.css +3 -0
- package/build-style/archives/editor.css +3 -0
- package/build-style/archives/style-rtl.css +3 -0
- package/build-style/archives/style.css +3 -0
- package/build-style/audio/editor-rtl.css +3 -0
- package/build-style/audio/editor.css +3 -0
- package/build-style/audio/style-rtl.css +3 -0
- package/build-style/audio/style.css +3 -0
- package/build-style/audio/theme-rtl.css +3 -0
- package/build-style/audio/theme.css +3 -0
- package/build-style/avatar/editor-rtl.css +3 -0
- package/build-style/avatar/editor.css +3 -0
- package/build-style/avatar/style-rtl.css +3 -0
- package/build-style/avatar/style.css +3 -0
- package/build-style/button/editor-rtl.css +3 -0
- package/build-style/button/editor.css +3 -0
- package/build-style/button/style-rtl.css +3 -0
- package/build-style/button/style.css +3 -0
- package/build-style/buttons/editor-rtl.css +3 -0
- package/build-style/buttons/editor.css +3 -0
- package/build-style/buttons/style-rtl.css +3 -0
- package/build-style/buttons/style.css +3 -0
- package/build-style/calendar/style-rtl.css +3 -0
- package/build-style/calendar/style.css +3 -0
- package/build-style/categories/editor-rtl.css +7 -0
- package/build-style/categories/editor.css +7 -0
- package/build-style/categories/style-rtl.css +7 -0
- package/build-style/categories/style.css +7 -0
- package/build-style/classic-rtl.css +3 -0
- package/build-style/classic.css +3 -0
- package/build-style/code/editor-rtl.css +3 -0
- package/build-style/code/editor.css +3 -0
- package/build-style/code/style-rtl.css +3 -0
- package/build-style/code/style.css +3 -0
- package/build-style/code/theme-rtl.css +3 -0
- package/build-style/code/theme.css +3 -0
- package/build-style/columns/editor-rtl.css +3 -0
- package/build-style/columns/editor.css +3 -0
- package/build-style/columns/style-rtl.css +3 -0
- package/build-style/columns/style.css +3 -0
- package/build-style/comment-author-avatar/editor-rtl.css +3 -0
- package/build-style/comment-author-avatar/editor.css +3 -0
- package/build-style/comment-content/style-rtl.css +3 -0
- package/build-style/comment-content/style.css +3 -0
- package/build-style/comment-template/style-rtl.css +3 -0
- package/build-style/comment-template/style.css +3 -0
- package/build-style/comments/editor-rtl.css +3 -0
- package/build-style/comments/editor.css +3 -0
- package/build-style/comments/style-rtl.css +3 -0
- package/build-style/comments/style.css +3 -0
- package/build-style/comments-pagination/editor-rtl.css +3 -0
- package/build-style/comments-pagination/editor.css +3 -0
- package/build-style/comments-pagination/style-rtl.css +3 -0
- package/build-style/comments-pagination/style.css +3 -0
- package/build-style/comments-pagination-numbers/editor-rtl.css +3 -0
- package/build-style/comments-pagination-numbers/editor.css +3 -0
- package/build-style/comments-title/editor-rtl.css +3 -0
- package/build-style/comments-title/editor.css +3 -0
- package/build-style/common-rtl.css +3 -0
- package/build-style/common.css +3 -0
- package/build-style/cover/editor-rtl.css +3 -0
- package/build-style/cover/editor.css +3 -0
- package/build-style/cover/style-rtl.css +3 -0
- package/build-style/cover/style.css +3 -0
- package/build-style/details/editor-rtl.css +3 -0
- package/build-style/details/editor.css +3 -0
- package/build-style/details/style-rtl.css +3 -0
- package/build-style/details/style.css +3 -0
- package/build-style/editor-elements-rtl.css +3 -0
- package/build-style/editor-elements.css +3 -0
- package/build-style/editor-rtl.css +29 -42
- package/build-style/editor.css +29 -42
- package/build-style/elements-rtl.css +3 -0
- package/build-style/elements.css +3 -0
- package/build-style/embed/editor-rtl.css +3 -0
- package/build-style/embed/editor.css +3 -0
- package/build-style/embed/style-rtl.css +3 -0
- package/build-style/embed/style.css +3 -0
- package/build-style/embed/theme-rtl.css +3 -0
- package/build-style/embed/theme.css +3 -0
- package/build-style/file/editor-rtl.css +3 -0
- package/build-style/file/editor.css +3 -0
- package/build-style/file/style-rtl.css +3 -0
- package/build-style/file/style.css +3 -0
- package/build-style/footnotes/style-rtl.css +3 -0
- package/build-style/footnotes/style.css +3 -0
- package/build-style/form-input/editor-rtl.css +3 -0
- package/build-style/form-input/editor.css +3 -0
- package/build-style/form-input/style-rtl.css +4 -0
- package/build-style/form-input/style.css +4 -0
- package/build-style/form-submission-notification/editor-rtl.css +3 -0
- package/build-style/form-submission-notification/editor.css +3 -0
- package/build-style/form-submit-button/style-rtl.css +3 -0
- package/build-style/form-submit-button/style.css +3 -0
- package/build-style/freeform/editor-rtl.css +3 -0
- package/build-style/freeform/editor.css +3 -0
- package/build-style/gallery/editor-rtl.css +3 -1
- package/build-style/gallery/editor.css +3 -1
- package/build-style/gallery/style-rtl.css +3 -0
- package/build-style/gallery/style.css +3 -0
- package/build-style/gallery/theme-rtl.css +3 -0
- package/build-style/gallery/theme.css +3 -0
- package/build-style/group/editor-rtl.css +3 -11
- package/build-style/group/editor.css +3 -11
- package/build-style/group/style-rtl.css +3 -0
- package/build-style/group/style.css +3 -0
- package/build-style/group/theme-rtl.css +3 -0
- package/build-style/group/theme.css +3 -0
- package/build-style/heading/style-rtl.css +3 -0
- package/build-style/heading/style.css +3 -0
- package/build-style/html/editor-rtl.css +3 -0
- package/build-style/html/editor.css +3 -0
- package/build-style/image/editor-rtl.css +19 -4
- package/build-style/image/editor.css +19 -4
- package/build-style/image/style-rtl.css +22 -0
- package/build-style/image/style.css +22 -0
- package/build-style/image/theme-rtl.css +3 -0
- package/build-style/image/theme.css +3 -0
- package/build-style/latest-comments/style-rtl.css +3 -0
- package/build-style/latest-comments/style.css +3 -0
- package/build-style/latest-posts/editor-rtl.css +3 -3
- package/build-style/latest-posts/editor.css +3 -3
- package/build-style/latest-posts/style-rtl.css +3 -0
- package/build-style/latest-posts/style.css +3 -0
- package/build-style/list/style-rtl.css +4 -1
- package/build-style/list/style.css +4 -1
- package/build-style/loginout/style-rtl.css +94 -0
- package/build-style/loginout/style.css +94 -0
- package/build-style/media-text/editor-rtl.css +3 -0
- package/build-style/media-text/editor.css +3 -0
- package/build-style/media-text/style-rtl.css +3 -0
- package/build-style/media-text/style.css +3 -0
- package/build-style/more/editor-rtl.css +3 -0
- package/build-style/more/editor.css +3 -0
- package/build-style/navigation/editor-rtl.css +3 -12
- package/build-style/navigation/editor.css +3 -12
- package/build-style/navigation/style-rtl.css +4 -4
- package/build-style/navigation/style.css +4 -4
- package/build-style/navigation-link/editor-rtl.css +3 -0
- package/build-style/navigation-link/editor.css +3 -0
- package/build-style/navigation-link/style-rtl.css +3 -0
- package/build-style/navigation-link/style.css +3 -0
- package/build-style/navigation-submenu/editor-rtl.css +3 -0
- package/build-style/navigation-submenu/editor.css +3 -0
- package/build-style/nextpage/editor-rtl.css +3 -0
- package/build-style/nextpage/editor.css +3 -0
- package/build-style/page-list/editor-rtl.css +3 -0
- package/build-style/page-list/editor.css +3 -0
- package/build-style/page-list/style-rtl.css +3 -0
- package/build-style/page-list/style.css +3 -0
- package/build-style/paragraph/editor-rtl.css +3 -0
- package/build-style/paragraph/editor.css +3 -0
- package/build-style/paragraph/style-rtl.css +3 -0
- package/build-style/paragraph/style.css +3 -0
- package/build-style/post-author/style-rtl.css +3 -0
- package/build-style/post-author/style.css +3 -0
- package/build-style/post-comments-form/editor-rtl.css +3 -0
- package/build-style/post-comments-form/editor.css +3 -0
- package/build-style/post-comments-form/style-rtl.css +4 -1
- package/build-style/post-comments-form/style.css +4 -1
- package/build-style/post-content/editor-rtl.css +3 -0
- package/build-style/post-content/editor.css +3 -0
- package/build-style/post-content/style-rtl.css +96 -0
- package/build-style/post-content/style.css +96 -0
- package/build-style/post-date/style-rtl.css +3 -0
- package/build-style/post-date/style.css +3 -0
- package/build-style/post-excerpt/editor-rtl.css +3 -0
- package/build-style/post-excerpt/editor.css +3 -0
- package/build-style/post-excerpt/style-rtl.css +4 -0
- package/build-style/post-excerpt/style.css +4 -0
- package/build-style/post-featured-image/editor-rtl.css +3 -0
- package/build-style/post-featured-image/editor.css +3 -0
- package/build-style/post-featured-image/style-rtl.css +3 -0
- package/build-style/post-featured-image/style.css +3 -0
- package/build-style/post-navigation-link/style-rtl.css +3 -0
- package/build-style/post-navigation-link/style.css +3 -0
- package/build-style/post-template/editor-rtl.css +3 -0
- package/build-style/post-template/editor.css +3 -0
- package/build-style/post-template/style-rtl.css +3 -0
- package/build-style/post-template/style.css +3 -0
- package/build-style/post-terms/style-rtl.css +3 -0
- package/build-style/post-terms/style.css +3 -0
- package/build-style/post-time-to-read/style-rtl.css +3 -0
- package/build-style/post-time-to-read/style.css +3 -0
- package/build-style/post-title/style-rtl.css +3 -0
- package/build-style/post-title/style.css +3 -0
- package/build-style/preformatted/style-rtl.css +3 -0
- package/build-style/preformatted/style.css +3 -0
- package/build-style/pullquote/editor-rtl.css +3 -0
- package/build-style/pullquote/editor.css +3 -0
- package/build-style/pullquote/style-rtl.css +3 -0
- package/build-style/pullquote/style.css +3 -0
- package/build-style/pullquote/theme-rtl.css +3 -0
- package/build-style/pullquote/theme.css +3 -0
- package/build-style/query/editor-rtl.css +3 -7
- package/build-style/query/editor.css +3 -7
- package/build-style/query-pagination/editor-rtl.css +3 -0
- package/build-style/query-pagination/editor.css +3 -0
- package/build-style/query-pagination/style-rtl.css +3 -0
- package/build-style/query-pagination/style.css +3 -0
- package/build-style/query-pagination-numbers/editor-rtl.css +3 -0
- package/build-style/query-pagination-numbers/editor.css +3 -0
- package/build-style/query-title/style-rtl.css +3 -0
- package/build-style/query-title/style.css +3 -0
- package/build-style/quote/style-rtl.css +3 -0
- package/build-style/quote/style.css +3 -0
- package/build-style/quote/theme-rtl.css +6 -3
- package/build-style/quote/theme.css +6 -3
- package/build-style/read-more/style-rtl.css +3 -0
- package/build-style/read-more/style.css +3 -0
- package/build-style/reset-rtl.css +3 -0
- package/build-style/reset.css +3 -0
- package/build-style/rss/editor-rtl.css +3 -0
- package/build-style/rss/editor.css +3 -0
- package/build-style/rss/style-rtl.css +3 -0
- package/build-style/rss/style.css +3 -0
- package/build-style/search/editor-rtl.css +4 -1
- package/build-style/search/editor.css +4 -1
- package/build-style/search/style-rtl.css +3 -0
- package/build-style/search/style.css +3 -0
- package/build-style/search/theme-rtl.css +3 -0
- package/build-style/search/theme.css +3 -0
- package/build-style/separator/editor-rtl.css +3 -0
- package/build-style/separator/editor.css +3 -0
- package/build-style/separator/style-rtl.css +3 -0
- package/build-style/separator/style.css +3 -0
- package/build-style/separator/theme-rtl.css +3 -0
- package/build-style/separator/theme.css +3 -0
- package/build-style/shortcode/editor-rtl.css +3 -0
- package/build-style/shortcode/editor.css +3 -0
- package/build-style/site-logo/editor-rtl.css +3 -0
- package/build-style/site-logo/editor.css +3 -0
- package/build-style/site-logo/style-rtl.css +3 -0
- package/build-style/site-logo/style.css +3 -0
- package/build-style/site-tagline/editor-rtl.css +3 -0
- package/build-style/site-tagline/editor.css +3 -0
- package/build-style/site-tagline/style-rtl.css +94 -0
- package/build-style/site-tagline/style.css +94 -0
- package/build-style/site-title/editor-rtl.css +3 -0
- package/build-style/site-title/editor.css +3 -0
- package/build-style/site-title/style-rtl.css +7 -1
- package/build-style/site-title/style.css +7 -1
- package/build-style/social-link/editor-rtl.css +3 -0
- package/build-style/social-link/editor.css +3 -0
- package/build-style/social-links/editor-rtl.css +3 -0
- package/build-style/social-links/editor.css +3 -0
- package/build-style/social-links/style-rtl.css +5 -2
- package/build-style/social-links/style.css +5 -2
- package/build-style/spacer/editor-rtl.css +3 -0
- package/build-style/spacer/editor.css +3 -0
- package/build-style/spacer/style-rtl.css +3 -0
- package/build-style/spacer/style.css +3 -0
- package/build-style/style-rtl.css +56 -9
- package/build-style/style.css +56 -9
- package/build-style/table/editor-rtl.css +3 -0
- package/build-style/table/editor.css +3 -0
- package/build-style/table/style-rtl.css +3 -0
- package/build-style/table/style.css +3 -0
- package/build-style/table/theme-rtl.css +3 -0
- package/build-style/table/theme.css +3 -0
- package/build-style/table-of-contents/style-rtl.css +94 -0
- package/build-style/table-of-contents/style.css +94 -0
- package/build-style/tag-cloud/editor-rtl.css +95 -0
- package/build-style/tag-cloud/editor.css +95 -0
- package/build-style/tag-cloud/style-rtl.css +3 -0
- package/build-style/tag-cloud/style.css +3 -0
- package/build-style/template-part/editor-rtl.css +3 -0
- package/build-style/template-part/editor.css +3 -0
- package/build-style/template-part/theme-rtl.css +3 -0
- package/build-style/template-part/theme.css +3 -0
- package/build-style/term-description/style-rtl.css +4 -0
- package/build-style/term-description/style.css +4 -0
- package/build-style/text-columns/editor-rtl.css +3 -0
- package/build-style/text-columns/editor.css +3 -0
- package/build-style/text-columns/style-rtl.css +3 -0
- package/build-style/text-columns/style.css +3 -0
- package/build-style/theme-rtl.css +6 -3
- package/build-style/theme.css +6 -3
- package/build-style/verse/style-rtl.css +3 -0
- package/build-style/verse/style.css +3 -0
- package/build-style/video/editor-rtl.css +3 -3
- package/build-style/video/editor.css +3 -3
- package/build-style/video/style-rtl.css +3 -0
- package/build-style/video/style.css +3 -0
- package/build-style/video/theme-rtl.css +3 -0
- package/build-style/video/theme.css +3 -0
- package/package.json +35 -35
- package/src/avatar/edit.js +1 -0
- package/src/block/edit.js +58 -27
- package/src/block/test/edit.native.js +6 -2
- package/src/button/edit.js +1 -1
- package/src/button/index.php +1 -14
- package/src/buttons/block.json +20 -0
- package/src/buttons/index.js +6 -0
- package/src/categories/block.json +20 -0
- package/src/categories/edit.js +32 -4
- package/src/categories/editor.scss +4 -0
- package/src/categories/index.php +4 -1
- package/src/categories/style.scss +4 -0
- package/src/column/block.json +2 -0
- package/src/column/edit.js +2 -2
- package/src/columns/index.js +1 -1
- package/src/comment-template/block.json +12 -0
- package/src/comments-title/block.json +3 -0
- package/src/comments-title/edit.js +8 -1
- package/src/cover/edit/inspector-controls.js +1 -0
- package/src/details/edit.js +1 -0
- package/src/editor.scss +1 -0
- package/src/embed/test/__snapshots__/index.native.js.snap +8 -8
- package/src/embed/test/index.js +1 -1
- package/src/embed/test/index.native.js +24 -23
- package/src/embed/variations.js +43 -35
- package/src/footnotes/index.js +1 -2
- package/src/form/edit.js +3 -2
- package/src/form-input/edit.js +3 -0
- package/src/form-input/style.scss +1 -0
- package/src/gallery/block.json +10 -0
- package/src/gallery/edit.js +75 -13
- package/src/gallery/editor.scss +0 -1
- package/src/gallery/gap-styles.js +1 -8
- package/src/gallery/test/__snapshots__/index.native.js.snap +1 -1
- package/src/gallery/test/index.native.js +5 -5
- package/src/gallery/use-image-sizes.js +2 -2
- package/src/group/deprecated.js +3 -7
- package/src/group/editor.scss +1 -1
- package/src/group/index.js +26 -29
- package/src/group/variations.js +56 -0
- package/src/heading/block.json +15 -0
- package/src/heading/edit.js +3 -1
- package/src/heading/index.js +1 -0
- package/src/image/block.json +3 -0
- package/src/image/edit.js +1 -1
- package/src/image/editor.scss +18 -1
- package/src/image/image.js +55 -35
- package/src/image/index.php +32 -15
- package/src/image/style.scss +22 -0
- package/src/image/test/edit.native.js +1 -0
- package/src/image/view.js +69 -49
- package/src/latest-comments/block.json +9 -0
- package/src/latest-posts/edit.js +1 -0
- package/src/latest-posts/editor.scss +0 -4
- package/src/list/block.json +1 -1
- package/src/list/edit.js +3 -3
- package/src/list/ordered-list-settings.js +20 -18
- package/src/list/style.scss +1 -1
- package/src/list/test/edit.native.js +1 -3
- package/src/list-item/block.json +3 -2
- package/src/list-item/edit.js +2 -2
- package/src/list-item/hooks/index.js +0 -1
- package/src/loginout/block.json +14 -1
- package/src/loginout/style.scss +4 -0
- package/src/media-text/block.json +12 -0
- package/src/media-text/style.native.scss +2 -0
- package/src/navigation/edit/index.js +5 -5
- package/src/navigation/edit/navigation-menu-delete-control.js +1 -0
- package/src/navigation/editor.scss +0 -1
- package/src/navigation/index.php +1 -1
- package/src/navigation/style.scss +4 -9
- package/src/navigation/test/use-navigation-menu.js +54 -15
- package/src/navigation/use-navigation-menu.js +5 -1
- package/src/navigation-link/link-ui.js +8 -14
- package/src/navigation-submenu/edit.js +1 -13
- package/src/page-list/edit.js +1 -0
- package/src/page-list-item/edit.js +4 -4
- package/src/paragraph/block.json +6 -0
- package/src/post-author/index.js +8 -0
- package/src/post-author-biography/block.json +3 -0
- package/src/post-author-name/block.json +3 -0
- package/src/post-comments-form/block.json +12 -0
- package/src/post-comments-form/style.scss +1 -1
- package/src/post-content/block.json +1 -0
- package/src/post-content/style.scss +5 -0
- package/src/post-date/block.json +15 -0
- package/src/post-excerpt/block.json +12 -0
- package/src/post-excerpt/edit.js +1 -0
- package/src/post-excerpt/style.scss +3 -0
- package/src/post-featured-image/block.json +3 -0
- package/src/post-navigation-link/edit.js +2 -0
- package/src/post-terms/block.json +15 -0
- package/src/post-time-to-read/block.json +6 -0
- package/src/post-title/block.json +15 -0
- package/src/post-title/edit.js +9 -8
- package/src/query/edit/inspector-controls/author-control.js +2 -0
- package/src/query/edit/inspector-controls/enhanced-pagination-control.js +1 -0
- package/src/query/edit/inspector-controls/index.js +123 -23
- package/src/query/edit/inspector-controls/offset-controls.js +31 -0
- package/src/query/edit/inspector-controls/order-control.js +1 -0
- package/src/query/edit/inspector-controls/pages-control.js +27 -0
- package/src/query/edit/inspector-controls/parent-control.js +1 -0
- package/src/query/edit/inspector-controls/per-page-control.js +33 -0
- package/src/query/edit/inspector-controls/sticky-control.js +2 -1
- package/src/query/edit/inspector-controls/taxonomy-controls.js +8 -3
- package/src/query/edit/query-content.js +17 -3
- package/src/query/edit/query-placeholder.js +1 -21
- package/src/query/edit/query-toolbar.js +1 -90
- package/src/query/editor.scss +0 -9
- package/src/query/utils.js +13 -5
- package/src/query/variations.js +4 -46
- package/src/query-pagination-numbers/edit.js +1 -0
- package/src/query-title/block.json +3 -0
- package/src/query-title/edit.js +19 -18
- package/src/query-title/use-archive-label.js +99 -0
- package/src/quote/block.json +15 -1
- package/src/quote/theme.scss +5 -3
- package/src/search/block.json +3 -0
- package/src/search/editor.scss +1 -1
- package/src/site-logo/edit.js +27 -10
- package/src/site-tagline/block.json +18 -2
- package/src/site-tagline/edit.js +7 -6
- package/src/site-tagline/style.scss +4 -0
- package/src/site-title/block.json +10 -0
- package/src/site-title/edit.js +6 -5
- package/src/site-title/index.js +6 -1
- package/src/site-title/style.scss +7 -2
- package/src/social-link/edit.js +0 -1
- package/src/social-link/icons/soundcloud.js +1 -1
- package/src/social-link/socials-with-bg.scss +1 -1
- package/src/social-link/socials-without-bg.scss +1 -1
- package/src/social-links/block.json +12 -0
- package/src/spacer/controls.js +10 -13
- package/src/style.scss +4 -0
- package/src/table-of-contents/block.json +14 -1
- package/src/table-of-contents/style.scss +4 -0
- package/src/tag-cloud/block.json +1 -1
- package/src/tag-cloud/edit.js +53 -35
- package/src/tag-cloud/editor.scss +9 -0
- package/src/template-part/edit/index.js +10 -5
- package/src/template-part/edit/inner-blocks.js +11 -6
- package/src/template-part/edit/placeholder.js +31 -6
- package/src/template-part/edit/title-modal.js +18 -4
- package/src/term-description/block.json +12 -0
- package/src/term-description/style.scss +2 -0
- package/src/utils/hooks.js +5 -1
- package/src/video/editor.scss +0 -4
- package/tsconfig.tsbuildinfo +1 -1
- package/build/list-item/hooks/use-split.js +0 -39
- package/build/list-item/hooks/use-split.js.map +0 -1
- package/build-module/list-item/hooks/use-split.js +0 -32
- package/build-module/list-item/hooks/use-split.js.map +0 -1
- package/src/list-item/hooks/use-split.js +0 -33
package/src/embed/variations.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { __ } from '@wordpress/i18n';
|
|
4
|
+
import { __, sprintf } from '@wordpress/i18n';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
@@ -32,6 +32,14 @@ import {
|
|
|
32
32
|
|
|
33
33
|
/** @typedef {import('@wordpress/blocks').WPBlockVariation} WPBlockVariation */
|
|
34
34
|
|
|
35
|
+
function getTitle( providerName ) {
|
|
36
|
+
return sprintf(
|
|
37
|
+
/* translators: %s: provider name */
|
|
38
|
+
__( '%s Embed' ),
|
|
39
|
+
providerName
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
35
43
|
/**
|
|
36
44
|
* The embed provider services.
|
|
37
45
|
*
|
|
@@ -40,7 +48,7 @@ import {
|
|
|
40
48
|
const variations = [
|
|
41
49
|
{
|
|
42
50
|
name: 'twitter',
|
|
43
|
-
title: 'Twitter',
|
|
51
|
+
title: getTitle( 'Twitter' ),
|
|
44
52
|
icon: embedTwitterIcon,
|
|
45
53
|
keywords: [ 'tweet', __( 'social' ) ],
|
|
46
54
|
description: __( 'Embed a tweet.' ),
|
|
@@ -49,7 +57,7 @@ const variations = [
|
|
|
49
57
|
},
|
|
50
58
|
{
|
|
51
59
|
name: 'youtube',
|
|
52
|
-
title: 'YouTube',
|
|
60
|
+
title: getTitle( 'YouTube' ),
|
|
53
61
|
icon: embedYouTubeIcon,
|
|
54
62
|
keywords: [ __( 'music' ), __( 'video' ) ],
|
|
55
63
|
description: __( 'Embed a YouTube video.' ),
|
|
@@ -63,7 +71,7 @@ const variations = [
|
|
|
63
71
|
// Deprecate Facebook Embed per FB policy
|
|
64
72
|
// See: https://developers.facebook.com/docs/plugins/oembed-legacy
|
|
65
73
|
name: 'facebook',
|
|
66
|
-
title: 'Facebook',
|
|
74
|
+
title: getTitle( 'Facebook' ),
|
|
67
75
|
icon: embedFacebookIcon,
|
|
68
76
|
keywords: [ __( 'social' ) ],
|
|
69
77
|
description: __( 'Embed a Facebook post.' ),
|
|
@@ -79,7 +87,7 @@ const variations = [
|
|
|
79
87
|
// Deprecate Instagram per FB policy
|
|
80
88
|
// See: https://developers.facebook.com/docs/instagram/oembed-legacy
|
|
81
89
|
name: 'instagram',
|
|
82
|
-
title: 'Instagram',
|
|
90
|
+
title: getTitle( 'Instagram' ),
|
|
83
91
|
icon: embedInstagramIcon,
|
|
84
92
|
keywords: [ __( 'image' ), __( 'social' ) ],
|
|
85
93
|
description: __( 'Embed an Instagram post.' ),
|
|
@@ -89,7 +97,7 @@ const variations = [
|
|
|
89
97
|
},
|
|
90
98
|
{
|
|
91
99
|
name: 'wordpress',
|
|
92
|
-
title: 'WordPress',
|
|
100
|
+
title: getTitle( 'WordPress' ),
|
|
93
101
|
icon: embedWordPressIcon,
|
|
94
102
|
keywords: [ __( 'post' ), __( 'blog' ) ],
|
|
95
103
|
description: __( 'Embed a WordPress post.' ),
|
|
@@ -99,7 +107,7 @@ const variations = [
|
|
|
99
107
|
},
|
|
100
108
|
{
|
|
101
109
|
name: 'soundcloud',
|
|
102
|
-
title: 'SoundCloud',
|
|
110
|
+
title: getTitle( 'SoundCloud' ),
|
|
103
111
|
icon: embedAudioIcon,
|
|
104
112
|
keywords: [ __( 'music' ), __( 'audio' ) ],
|
|
105
113
|
description: __( 'Embed SoundCloud content.' ),
|
|
@@ -108,7 +116,7 @@ const variations = [
|
|
|
108
116
|
},
|
|
109
117
|
{
|
|
110
118
|
name: 'spotify',
|
|
111
|
-
title: 'Spotify',
|
|
119
|
+
title: getTitle( 'Spotify' ),
|
|
112
120
|
icon: embedSpotifyIcon,
|
|
113
121
|
keywords: [ __( 'music' ), __( 'audio' ) ],
|
|
114
122
|
description: __( 'Embed Spotify content.' ),
|
|
@@ -117,7 +125,7 @@ const variations = [
|
|
|
117
125
|
},
|
|
118
126
|
{
|
|
119
127
|
name: 'flickr',
|
|
120
|
-
title: 'Flickr',
|
|
128
|
+
title: getTitle( 'Flickr' ),
|
|
121
129
|
icon: embedFlickrIcon,
|
|
122
130
|
keywords: [ __( 'image' ) ],
|
|
123
131
|
description: __( 'Embed Flickr content.' ),
|
|
@@ -129,7 +137,7 @@ const variations = [
|
|
|
129
137
|
},
|
|
130
138
|
{
|
|
131
139
|
name: 'vimeo',
|
|
132
|
-
title: 'Vimeo',
|
|
140
|
+
title: getTitle( 'Vimeo' ),
|
|
133
141
|
icon: embedVimeoIcon,
|
|
134
142
|
keywords: [ __( 'video' ) ],
|
|
135
143
|
description: __( 'Embed a Vimeo video.' ),
|
|
@@ -138,7 +146,7 @@ const variations = [
|
|
|
138
146
|
},
|
|
139
147
|
{
|
|
140
148
|
name: 'animoto',
|
|
141
|
-
title: 'Animoto',
|
|
149
|
+
title: getTitle( 'Animoto' ),
|
|
142
150
|
icon: embedAnimotoIcon,
|
|
143
151
|
description: __( 'Embed an Animoto video.' ),
|
|
144
152
|
patterns: [ /^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i ],
|
|
@@ -146,7 +154,7 @@ const variations = [
|
|
|
146
154
|
},
|
|
147
155
|
{
|
|
148
156
|
name: 'cloudup',
|
|
149
|
-
title: 'Cloudup',
|
|
157
|
+
title: getTitle( 'Cloudup' ),
|
|
150
158
|
icon: embedContentIcon,
|
|
151
159
|
description: __( 'Embed Cloudup content.' ),
|
|
152
160
|
patterns: [ /^https?:\/\/cloudup\.com\/.+/i ],
|
|
@@ -155,7 +163,7 @@ const variations = [
|
|
|
155
163
|
{
|
|
156
164
|
// Deprecated since CollegeHumor content is now powered by YouTube.
|
|
157
165
|
name: 'collegehumor',
|
|
158
|
-
title: 'CollegeHumor',
|
|
166
|
+
title: getTitle( 'CollegeHumor' ),
|
|
159
167
|
icon: embedVideoIcon,
|
|
160
168
|
description: __( 'Embed CollegeHumor content.' ),
|
|
161
169
|
scope: [ 'block' ],
|
|
@@ -164,7 +172,7 @@ const variations = [
|
|
|
164
172
|
},
|
|
165
173
|
{
|
|
166
174
|
name: 'crowdsignal',
|
|
167
|
-
title: 'Crowdsignal',
|
|
175
|
+
title: getTitle( 'Crowdsignal' ),
|
|
168
176
|
icon: embedContentIcon,
|
|
169
177
|
keywords: [ 'polldaddy', __( 'survey' ) ],
|
|
170
178
|
description: __( 'Embed Crowdsignal (formerly Polldaddy) content.' ),
|
|
@@ -175,7 +183,7 @@ const variations = [
|
|
|
175
183
|
},
|
|
176
184
|
{
|
|
177
185
|
name: 'dailymotion',
|
|
178
|
-
title: 'Dailymotion',
|
|
186
|
+
title: getTitle( 'Dailymotion' ),
|
|
179
187
|
icon: embedDailymotionIcon,
|
|
180
188
|
keywords: [ __( 'video' ) ],
|
|
181
189
|
description: __( 'Embed a Dailymotion video.' ),
|
|
@@ -184,7 +192,7 @@ const variations = [
|
|
|
184
192
|
},
|
|
185
193
|
{
|
|
186
194
|
name: 'imgur',
|
|
187
|
-
title: 'Imgur',
|
|
195
|
+
title: getTitle( 'Imgur' ),
|
|
188
196
|
icon: embedPhotoIcon,
|
|
189
197
|
description: __( 'Embed Imgur content.' ),
|
|
190
198
|
patterns: [ /^https?:\/\/(.+\.)?imgur\.com\/.+/i ],
|
|
@@ -192,7 +200,7 @@ const variations = [
|
|
|
192
200
|
},
|
|
193
201
|
{
|
|
194
202
|
name: 'issuu',
|
|
195
|
-
title: 'Issuu',
|
|
203
|
+
title: getTitle( 'Issuu' ),
|
|
196
204
|
icon: embedContentIcon,
|
|
197
205
|
description: __( 'Embed Issuu content.' ),
|
|
198
206
|
patterns: [ /^https?:\/\/(www\.)?issuu\.com\/.+/i ],
|
|
@@ -200,7 +208,7 @@ const variations = [
|
|
|
200
208
|
},
|
|
201
209
|
{
|
|
202
210
|
name: 'kickstarter',
|
|
203
|
-
title: 'Kickstarter',
|
|
211
|
+
title: getTitle( 'Kickstarter' ),
|
|
204
212
|
icon: embedContentIcon,
|
|
205
213
|
description: __( 'Embed Kickstarter content.' ),
|
|
206
214
|
patterns: [
|
|
@@ -211,7 +219,7 @@ const variations = [
|
|
|
211
219
|
},
|
|
212
220
|
{
|
|
213
221
|
name: 'mixcloud',
|
|
214
|
-
title: 'Mixcloud',
|
|
222
|
+
title: getTitle( 'Mixcloud' ),
|
|
215
223
|
icon: embedAudioIcon,
|
|
216
224
|
keywords: [ __( 'music' ), __( 'audio' ) ],
|
|
217
225
|
description: __( 'Embed Mixcloud content.' ),
|
|
@@ -220,7 +228,7 @@ const variations = [
|
|
|
220
228
|
},
|
|
221
229
|
{
|
|
222
230
|
name: 'pocket-casts',
|
|
223
|
-
title: 'Pocket Casts',
|
|
231
|
+
title: getTitle( 'Pocket Casts' ),
|
|
224
232
|
icon: embedPocketCastsIcon,
|
|
225
233
|
keywords: [ __( 'podcast' ), __( 'audio' ) ],
|
|
226
234
|
description: __( 'Embed a podcast player from Pocket Casts.' ),
|
|
@@ -229,7 +237,7 @@ const variations = [
|
|
|
229
237
|
},
|
|
230
238
|
{
|
|
231
239
|
name: 'reddit',
|
|
232
|
-
title: 'Reddit',
|
|
240
|
+
title: getTitle( 'Reddit' ),
|
|
233
241
|
icon: embedRedditIcon,
|
|
234
242
|
description: __( 'Embed a Reddit thread.' ),
|
|
235
243
|
patterns: [ /^https?:\/\/(www\.)?reddit\.com\/.+/i ],
|
|
@@ -237,7 +245,7 @@ const variations = [
|
|
|
237
245
|
},
|
|
238
246
|
{
|
|
239
247
|
name: 'reverbnation',
|
|
240
|
-
title: 'ReverbNation',
|
|
248
|
+
title: getTitle( 'ReverbNation' ),
|
|
241
249
|
icon: embedAudioIcon,
|
|
242
250
|
description: __( 'Embed ReverbNation content.' ),
|
|
243
251
|
patterns: [ /^https?:\/\/(www\.)?reverbnation\.com\/.+/i ],
|
|
@@ -245,7 +253,7 @@ const variations = [
|
|
|
245
253
|
},
|
|
246
254
|
{
|
|
247
255
|
name: 'screencast',
|
|
248
|
-
title: 'Screencast',
|
|
256
|
+
title: getTitle( 'Screencast' ),
|
|
249
257
|
icon: embedVideoIcon,
|
|
250
258
|
description: __( 'Embed Screencast content.' ),
|
|
251
259
|
patterns: [ /^https?:\/\/(www\.)?screencast\.com\/.+/i ],
|
|
@@ -253,7 +261,7 @@ const variations = [
|
|
|
253
261
|
},
|
|
254
262
|
{
|
|
255
263
|
name: 'scribd',
|
|
256
|
-
title: 'Scribd',
|
|
264
|
+
title: getTitle( 'Scribd' ),
|
|
257
265
|
icon: embedContentIcon,
|
|
258
266
|
description: __( 'Embed Scribd content.' ),
|
|
259
267
|
patterns: [ /^https?:\/\/(www\.)?scribd\.com\/.+/i ],
|
|
@@ -261,7 +269,7 @@ const variations = [
|
|
|
261
269
|
},
|
|
262
270
|
{
|
|
263
271
|
name: 'smugmug',
|
|
264
|
-
title: 'SmugMug',
|
|
272
|
+
title: getTitle( 'SmugMug' ),
|
|
265
273
|
icon: embedPhotoIcon,
|
|
266
274
|
description: __( 'Embed SmugMug content.' ),
|
|
267
275
|
patterns: [ /^https?:\/\/(.+\.)?smugmug\.com\/.*/i ],
|
|
@@ -273,7 +281,7 @@ const variations = [
|
|
|
273
281
|
},
|
|
274
282
|
{
|
|
275
283
|
name: 'speaker-deck',
|
|
276
|
-
title: 'Speaker Deck',
|
|
284
|
+
title: getTitle( 'Speaker Deck' ),
|
|
277
285
|
icon: embedContentIcon,
|
|
278
286
|
description: __( 'Embed Speaker Deck content.' ),
|
|
279
287
|
patterns: [ /^https?:\/\/(www\.)?speakerdeck\.com\/.+/i ],
|
|
@@ -281,7 +289,7 @@ const variations = [
|
|
|
281
289
|
},
|
|
282
290
|
{
|
|
283
291
|
name: 'tiktok',
|
|
284
|
-
title: 'TikTok',
|
|
292
|
+
title: getTitle( 'TikTok' ),
|
|
285
293
|
icon: embedVideoIcon,
|
|
286
294
|
keywords: [ __( 'video' ) ],
|
|
287
295
|
description: __( 'Embed a TikTok video.' ),
|
|
@@ -290,7 +298,7 @@ const variations = [
|
|
|
290
298
|
},
|
|
291
299
|
{
|
|
292
300
|
name: 'ted',
|
|
293
|
-
title: 'TED',
|
|
301
|
+
title: getTitle( 'TED' ),
|
|
294
302
|
icon: embedVideoIcon,
|
|
295
303
|
description: __( 'Embed a TED video.' ),
|
|
296
304
|
patterns: [ /^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i ],
|
|
@@ -298,7 +306,7 @@ const variations = [
|
|
|
298
306
|
},
|
|
299
307
|
{
|
|
300
308
|
name: 'tumblr',
|
|
301
|
-
title: 'Tumblr',
|
|
309
|
+
title: getTitle( 'Tumblr' ),
|
|
302
310
|
icon: embedTumblrIcon,
|
|
303
311
|
keywords: [ __( 'social' ) ],
|
|
304
312
|
description: __( 'Embed a Tumblr post.' ),
|
|
@@ -307,7 +315,7 @@ const variations = [
|
|
|
307
315
|
},
|
|
308
316
|
{
|
|
309
317
|
name: 'videopress',
|
|
310
|
-
title: 'VideoPress',
|
|
318
|
+
title: getTitle( 'VideoPress' ),
|
|
311
319
|
icon: embedVideoIcon,
|
|
312
320
|
keywords: [ __( 'video' ) ],
|
|
313
321
|
description: __( 'Embed a VideoPress video.' ),
|
|
@@ -316,7 +324,7 @@ const variations = [
|
|
|
316
324
|
},
|
|
317
325
|
{
|
|
318
326
|
name: 'wordpress-tv',
|
|
319
|
-
title: 'WordPress.tv',
|
|
327
|
+
title: getTitle( 'WordPress.tv' ),
|
|
320
328
|
icon: embedVideoIcon,
|
|
321
329
|
description: __( 'Embed a WordPress.tv video.' ),
|
|
322
330
|
patterns: [ /^https?:\/\/wordpress\.tv\/.+/i ],
|
|
@@ -324,7 +332,7 @@ const variations = [
|
|
|
324
332
|
},
|
|
325
333
|
{
|
|
326
334
|
name: 'amazon-kindle',
|
|
327
|
-
title: 'Amazon Kindle',
|
|
335
|
+
title: getTitle( 'Amazon Kindle' ),
|
|
328
336
|
icon: embedAmazonIcon,
|
|
329
337
|
keywords: [ __( 'ebook' ) ],
|
|
330
338
|
description: __( 'Embed Amazon Kindle content.' ),
|
|
@@ -336,7 +344,7 @@ const variations = [
|
|
|
336
344
|
},
|
|
337
345
|
{
|
|
338
346
|
name: 'pinterest',
|
|
339
|
-
title: 'Pinterest',
|
|
347
|
+
title: getTitle( 'Pinterest' ),
|
|
340
348
|
icon: embedPinterestIcon,
|
|
341
349
|
keywords: [ __( 'social' ), __( 'bookmark' ) ],
|
|
342
350
|
description: __( 'Embed Pinterest pins, boards, and profiles.' ),
|
|
@@ -347,7 +355,7 @@ const variations = [
|
|
|
347
355
|
},
|
|
348
356
|
{
|
|
349
357
|
name: 'wolfram-cloud',
|
|
350
|
-
title: 'Wolfram',
|
|
358
|
+
title: getTitle( 'Wolfram' ),
|
|
351
359
|
icon: embedWolframIcon,
|
|
352
360
|
description: __( 'Embed Wolfram notebook content.' ),
|
|
353
361
|
patterns: [ /^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i ],
|
|
@@ -355,7 +363,7 @@ const variations = [
|
|
|
355
363
|
},
|
|
356
364
|
{
|
|
357
365
|
name: 'bluesky',
|
|
358
|
-
title: 'Bluesky',
|
|
366
|
+
title: getTitle( 'Bluesky' ),
|
|
359
367
|
icon: embedBlueskyIcon,
|
|
360
368
|
description: __( 'Embed a Bluesky post.' ),
|
|
361
369
|
patterns: [ /^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i ],
|
package/src/footnotes/index.js
CHANGED
package/src/form/edit.js
CHANGED
|
@@ -77,8 +77,8 @@ const Edit = ( { attributes, setAttributes, clientId } ) => {
|
|
|
77
77
|
<InspectorControls>
|
|
78
78
|
<PanelBody title={ __( 'Settings' ) }>
|
|
79
79
|
<SelectControl
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
__nextHasNoMarginBottom
|
|
81
|
+
__next40pxDefaultSize
|
|
82
82
|
label={ __( 'Submissions method' ) }
|
|
83
83
|
options={ [
|
|
84
84
|
// TODO: Allow plugins to add their own submission methods.
|
|
@@ -108,6 +108,7 @@ const Edit = ( { attributes, setAttributes, clientId } ) => {
|
|
|
108
108
|
{ submissionMethod === 'email' && (
|
|
109
109
|
<TextControl
|
|
110
110
|
__nextHasNoMarginBottom
|
|
111
|
+
__next40pxDefaultSize
|
|
111
112
|
autoComplete="off"
|
|
112
113
|
label={ __( 'Email for form submissions' ) }
|
|
113
114
|
value={ email }
|
package/src/form-input/edit.js
CHANGED
|
@@ -38,6 +38,7 @@ function InputFieldBlock( { attributes, setAttributes, className } ) {
|
|
|
38
38
|
<PanelBody title={ __( 'Settings' ) }>
|
|
39
39
|
{ 'checkbox' !== type && (
|
|
40
40
|
<CheckboxControl
|
|
41
|
+
__nextHasNoMarginBottom
|
|
41
42
|
label={ __( 'Inline label' ) }
|
|
42
43
|
checked={ inlineLabel }
|
|
43
44
|
onChange={ ( newVal ) => {
|
|
@@ -48,6 +49,7 @@ function InputFieldBlock( { attributes, setAttributes, className } ) {
|
|
|
48
49
|
/>
|
|
49
50
|
) }
|
|
50
51
|
<CheckboxControl
|
|
52
|
+
__nextHasNoMarginBottom
|
|
51
53
|
label={ __( 'Required' ) }
|
|
52
54
|
checked={ required }
|
|
53
55
|
onChange={ ( newVal ) => {
|
|
@@ -61,6 +63,7 @@ function InputFieldBlock( { attributes, setAttributes, className } ) {
|
|
|
61
63
|
) }
|
|
62
64
|
<InspectorControls group="advanced">
|
|
63
65
|
<TextControl
|
|
66
|
+
__nextHasNoMarginBottom
|
|
64
67
|
autoComplete="off"
|
|
65
68
|
label={ __( 'Name' ) }
|
|
66
69
|
value={ name }
|
package/src/gallery/block.json
CHANGED
|
@@ -112,6 +112,16 @@
|
|
|
112
112
|
"supports": {
|
|
113
113
|
"anchor": true,
|
|
114
114
|
"align": true,
|
|
115
|
+
"__experimentalBorder": {
|
|
116
|
+
"radius": true,
|
|
117
|
+
"color": true,
|
|
118
|
+
"width": true,
|
|
119
|
+
"style": true,
|
|
120
|
+
"__experimentalDefaultControls": {
|
|
121
|
+
"color": true,
|
|
122
|
+
"radius": true
|
|
123
|
+
}
|
|
124
|
+
},
|
|
115
125
|
"html": false,
|
|
116
126
|
"units": [ "px", "em", "rem", "vh", "vw" ],
|
|
117
127
|
"spacing": {
|
package/src/gallery/edit.js
CHANGED
|
@@ -14,6 +14,9 @@ import {
|
|
|
14
14
|
ToggleControl,
|
|
15
15
|
RangeControl,
|
|
16
16
|
Spinner,
|
|
17
|
+
MenuGroup,
|
|
18
|
+
MenuItem,
|
|
19
|
+
ToolbarDropdownMenu,
|
|
17
20
|
withNotices,
|
|
18
21
|
} from '@wordpress/components';
|
|
19
22
|
import {
|
|
@@ -33,6 +36,12 @@ import { View } from '@wordpress/primitives';
|
|
|
33
36
|
import { createBlock } from '@wordpress/blocks';
|
|
34
37
|
import { createBlobURL } from '@wordpress/blob';
|
|
35
38
|
import { store as noticesStore } from '@wordpress/notices';
|
|
39
|
+
import {
|
|
40
|
+
link as linkIcon,
|
|
41
|
+
customLink,
|
|
42
|
+
image as imageIcon,
|
|
43
|
+
linkOff,
|
|
44
|
+
} from '@wordpress/icons';
|
|
36
45
|
|
|
37
46
|
/**
|
|
38
47
|
* Internal dependencies
|
|
@@ -57,11 +66,23 @@ import GapStyles from './gap-styles';
|
|
|
57
66
|
|
|
58
67
|
const MAX_COLUMNS = 8;
|
|
59
68
|
const linkOptions = [
|
|
60
|
-
{ value: LINK_DESTINATION_ATTACHMENT, label: __( 'Attachment Page' ) },
|
|
61
|
-
{ value: LINK_DESTINATION_MEDIA, label: __( 'Media File' ) },
|
|
62
69
|
{
|
|
63
|
-
|
|
70
|
+
icon: customLink,
|
|
71
|
+
label: __( 'Link images to attachment pages' ),
|
|
72
|
+
value: LINK_DESTINATION_ATTACHMENT,
|
|
73
|
+
noticeText: __( 'Attachment Pages' ),
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
icon: imageIcon,
|
|
77
|
+
label: __( 'Link images to media files' ),
|
|
78
|
+
value: LINK_DESTINATION_MEDIA,
|
|
79
|
+
noticeText: __( 'Media Files' ),
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
icon: linkOff,
|
|
64
83
|
label: _x( 'None', 'Media item link option' ),
|
|
84
|
+
value: LINK_DESTINATION_NONE,
|
|
85
|
+
noticeText: __( 'None' ),
|
|
65
86
|
},
|
|
66
87
|
];
|
|
67
88
|
const ALLOWED_MEDIA_TYPES = [ 'image' ];
|
|
@@ -359,7 +380,7 @@ function GalleryEdit( props ) {
|
|
|
359
380
|
sprintf(
|
|
360
381
|
/* translators: %s: image size settings */
|
|
361
382
|
__( 'All gallery image links updated to: %s' ),
|
|
362
|
-
linkToText.
|
|
383
|
+
linkToText.noticeText
|
|
363
384
|
),
|
|
364
385
|
{
|
|
365
386
|
id: 'gallery-attributes-linkTo',
|
|
@@ -552,15 +573,17 @@ function GalleryEdit( props ) {
|
|
|
552
573
|
size="__unstable-large"
|
|
553
574
|
/>
|
|
554
575
|
) }
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
576
|
+
{ Platform.isNative ? (
|
|
577
|
+
<SelectControl
|
|
578
|
+
__nextHasNoMarginBottom
|
|
579
|
+
label={ __( 'Link' ) }
|
|
580
|
+
value={ linkTo }
|
|
581
|
+
onChange={ setLinkTo }
|
|
582
|
+
options={ linkOptions }
|
|
583
|
+
hideCancelButton
|
|
584
|
+
size="__unstable-large"
|
|
585
|
+
/>
|
|
586
|
+
) : null }
|
|
564
587
|
<ToggleControl
|
|
565
588
|
__nextHasNoMarginBottom
|
|
566
589
|
label={ __( 'Crop images to fit' ) }
|
|
@@ -594,6 +617,45 @@ function GalleryEdit( props ) {
|
|
|
594
617
|
) }
|
|
595
618
|
</PanelBody>
|
|
596
619
|
</InspectorControls>
|
|
620
|
+
{ Platform.isWeb ? (
|
|
621
|
+
<BlockControls group="block">
|
|
622
|
+
<ToolbarDropdownMenu
|
|
623
|
+
icon={ linkIcon }
|
|
624
|
+
label={ __( 'Link' ) }
|
|
625
|
+
>
|
|
626
|
+
{ ( { onClose } ) => (
|
|
627
|
+
<MenuGroup>
|
|
628
|
+
{ linkOptions.map( ( linkItem ) => {
|
|
629
|
+
const isOptionSelected =
|
|
630
|
+
linkTo === linkItem.value;
|
|
631
|
+
return (
|
|
632
|
+
<MenuItem
|
|
633
|
+
key={ linkItem.value }
|
|
634
|
+
isSelected={ isOptionSelected }
|
|
635
|
+
className={ clsx(
|
|
636
|
+
'components-dropdown-menu__menu-item',
|
|
637
|
+
{
|
|
638
|
+
'is-active':
|
|
639
|
+
isOptionSelected,
|
|
640
|
+
}
|
|
641
|
+
) }
|
|
642
|
+
iconPosition="left"
|
|
643
|
+
icon={ linkItem.icon }
|
|
644
|
+
onClick={ () => {
|
|
645
|
+
setLinkTo( linkItem.value );
|
|
646
|
+
onClose();
|
|
647
|
+
} }
|
|
648
|
+
role="menuitemradio"
|
|
649
|
+
>
|
|
650
|
+
{ linkItem.label }
|
|
651
|
+
</MenuItem>
|
|
652
|
+
);
|
|
653
|
+
} ) }
|
|
654
|
+
</MenuGroup>
|
|
655
|
+
) }
|
|
656
|
+
</ToolbarDropdownMenu>
|
|
657
|
+
</BlockControls>
|
|
658
|
+
) : null }
|
|
597
659
|
{ Platform.isWeb && (
|
|
598
660
|
<>
|
|
599
661
|
{ ! multiGallerySelection && (
|
package/src/gallery/editor.scss
CHANGED
|
@@ -3,16 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import {
|
|
5
5
|
__experimentalGetGapCSSValue as getGapCSSValue,
|
|
6
|
-
|
|
6
|
+
useStyleOverride,
|
|
7
7
|
} from '@wordpress/block-editor';
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* Internal dependencies
|
|
11
|
-
*/
|
|
12
|
-
import { unlock } from '../lock-unlock';
|
|
13
|
-
|
|
14
|
-
const { useStyleOverride } = unlock( blockEditorPrivateApis );
|
|
15
|
-
|
|
16
9
|
export default function GapStyles( { blockGap, clientId } ) {
|
|
17
10
|
// --gallery-block--gutter-size is deprecated. --wp--style--gallery-gap-default should be used by themes that want to set a default
|
|
18
11
|
// gap on the gallery.
|
|
@@ -82,7 +82,7 @@ exports[`Gallery block inserts block 1`] = `
|
|
|
82
82
|
<!-- /wp:gallery -->"
|
|
83
83
|
`;
|
|
84
84
|
|
|
85
|
-
exports[`Gallery block overrides "Link
|
|
85
|
+
exports[`Gallery block overrides "Link" setting of gallery items 1`] = `
|
|
86
86
|
"<!-- wp:gallery {"linkTo":"media"} -->
|
|
87
87
|
<figure class="wp-block-gallery has-nested-images columns-default is-cropped"><!-- wp:image {"id":1,"linkDestination":"media"} -->
|
|
88
88
|
<figure class="wp-block-image"><img src="file:///local-image-1.jpeg" alt="" class="wp-image-1"/></figure>
|
|
@@ -594,9 +594,9 @@ describe( 'Gallery block', () => {
|
|
|
594
594
|
expect( getEditorHtml() ).toMatchSnapshot();
|
|
595
595
|
} );
|
|
596
596
|
|
|
597
|
-
// Test case related to TC012 - Settings - Link
|
|
597
|
+
// Test case related to TC012 - Settings - Link
|
|
598
598
|
// Reference: https://github.com/wordpress-mobile/test-cases/blob/trunk/test-cases/gutenberg/gallery.md#tc012
|
|
599
|
-
it( 'overrides "Link
|
|
599
|
+
it( 'overrides "Link" setting of gallery items', async () => {
|
|
600
600
|
// Initialize with a gallery that contains two items, the latter includes "linkDestination" attribute
|
|
601
601
|
const screen = await initializeWithGalleryBlock( {
|
|
602
602
|
html: `<!-- wp:gallery {"linkTo":"none"} -->
|
|
@@ -612,10 +612,10 @@ describe( 'Gallery block', () => {
|
|
|
612
612
|
} );
|
|
613
613
|
const { getByText } = screen;
|
|
614
614
|
|
|
615
|
-
// Set "Link
|
|
615
|
+
// Set "Link" setting via Gallery block settings
|
|
616
616
|
await openBlockSettings( screen );
|
|
617
|
-
fireEvent.press( getByText( 'Link
|
|
618
|
-
fireEvent.press( getByText( '
|
|
617
|
+
fireEvent.press( getByText( 'Link' ) );
|
|
618
|
+
fireEvent.press( getByText( 'Link images to media files' ) );
|
|
619
619
|
|
|
620
620
|
expect( getEditorHtml() ).toMatchSnapshot();
|
|
621
621
|
} );
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import { useMemo } from '@wordpress/element';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Calculates the image sizes that are
|
|
7
|
+
* Calculates the image sizes that are available for the current gallery images in order to
|
|
8
8
|
* populate the 'Resolution' selector.
|
|
9
9
|
*
|
|
10
|
-
* @param {Array} images Basic image block data taken from current gallery innerBlock
|
|
10
|
+
* @param {Array} images Basic image block data taken from current gallery innerBlock.
|
|
11
11
|
* @param {boolean} isSelected Is the block currently selected in the editor.
|
|
12
12
|
* @param {Function} getSettings Block editor store selector.
|
|
13
13
|
*
|
package/src/group/deprecated.js
CHANGED
|
@@ -109,15 +109,11 @@ const deprecated = [
|
|
|
109
109
|
);
|
|
110
110
|
},
|
|
111
111
|
isEligible: ( { layout } ) =>
|
|
112
|
-
|
|
113
|
-
layout
|
|
114
|
-
( layout.contentSize && layout.type !== 'constrained' ),
|
|
112
|
+
layout?.inherit ||
|
|
113
|
+
( layout?.contentSize && layout?.type !== 'constrained' ),
|
|
115
114
|
migrate: ( attributes ) => {
|
|
116
115
|
const { layout = null } = attributes;
|
|
117
|
-
if (
|
|
118
|
-
return attributes;
|
|
119
|
-
}
|
|
120
|
-
if ( layout.inherit || layout.contentSize ) {
|
|
116
|
+
if ( layout?.inherit || layout?.contentSize ) {
|
|
121
117
|
return {
|
|
122
118
|
...attributes,
|
|
123
119
|
layout: {
|
package/src/group/editor.scss
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
pointer-events: none;
|
|
44
44
|
min-height: $grid-unit-60 - $border-width - $border-width;
|
|
45
45
|
border: $border-width dashed currentColor;
|
|
46
|
-
|
|
46
|
+
border-radius: $radius-block-ui;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
// Let the parent be selectable in the placeholder area.
|