@wordpress/block-library 9.4.0 → 9.6.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/archives/edit.js +1 -0
- package/build/archives/edit.js.map +1 -1
- package/build/audio/edit.js +1 -0
- package/build/audio/edit.js.map +1 -1
- package/build/avatar/edit.js +1 -0
- package/build/avatar/edit.js.map +1 -1
- package/build/avatar/user-control.js +1 -0
- package/build/avatar/user-control.js.map +1 -1
- package/build/button/edit.js +1 -0
- package/build/button/edit.js.map +1 -1
- package/build/categories/index.js +12 -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/comment-author-name/index.js +14 -1
- package/build/comment-author-name/index.js.map +1 -1
- package/build/comment-content/index.js +14 -1
- package/build/comment-content/index.js.map +1 -1
- package/build/comment-date/index.js +14 -1
- package/build/comment-date/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-pagination/comments-pagination-arrow-controls.js +1 -0
- package/build/comments-pagination/comments-pagination-arrow-controls.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 +0 -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/edit.js +12 -4
- package/build/embed/edit.js.map +1 -1
- package/build/embed/embed-placeholder.js +6 -3
- package/build/embed/embed-placeholder.js.map +1 -1
- package/build/embed/embed-preview.js +4 -18
- package/build/embed/embed-preview.js.map +1 -1
- package/build/file/index.js +12 -0
- package/build/file/index.js.map +1 -1
- package/build/file/inspector.js +1 -0
- package/build/file/inspector.js.map +1 -1
- package/build/form/edit.js +6 -4
- package/build/form/edit.js.map +1 -1
- package/build/form-input/edit.js +2 -0
- package/build/form-input/edit.js.map +1 -1
- package/build/gallery/edit.js +44 -14
- package/build/gallery/edit.js.map +1 -1
- package/build/gallery/gallery.native.js +4 -1
- package/build/gallery/gallery.native.js.map +1 -1
- package/build/gallery/gap-styles.js +1 -9
- package/build/gallery/gap-styles.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/edit.js +1 -1
- package/build/group/edit.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 +3 -0
- package/build/heading/index.js.map +1 -1
- package/build/image/image.js +6 -1
- package/build/image/image.js.map +1 -1
- package/build/image/transforms.js +4 -0
- package/build/image/transforms.js.map +1 -1
- package/build/image/view.js +1 -1
- package/build/image/view.js.map +1 -1
- package/build/latest-posts/edit.js +38 -11
- package/build/latest-posts/edit.js.map +1 -1
- package/build/list/index.js +10 -1
- package/build/list/index.js.map +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/index.js +11 -3
- 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/edit.js +0 -1
- package/build/media-text/edit.js.map +1 -1
- package/build/missing/edit.js +10 -19
- package/build/missing/edit.js.map +1 -1
- package/build/navigation/edit/index.js +8 -8
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/navigation-menu-name-control.js +1 -0
- package/build/navigation/edit/navigation-menu-name-control.js.map +1 -1
- package/build/navigation/edit/overlay-menu-preview.js +2 -0
- package/build/navigation/edit/overlay-menu-preview.js.map +1 -1
- package/build/post-author/edit.js +60 -53
- package/build/post-author/edit.js.map +1 -1
- package/build/post-author/index.js +13 -0
- package/build/post-author/index.js.map +1 -1
- package/build/post-author-biography/index.js +14 -1
- package/build/post-author-biography/index.js.map +1 -1
- package/build/post-author-name/index.js +14 -1
- package/build/post-author-name/index.js.map +1 -1
- package/build/post-comment/edit.js +2 -0
- package/build/post-comment/edit.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 +12 -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/dimension-controls.js +9 -2
- package/build/post-featured-image/dimension-controls.js.map +1 -1
- package/build/post-featured-image/edit.js +1 -0
- package/build/post-featured-image/edit.js.map +1 -1
- package/build/post-navigation-link/edit.js +7 -2
- package/build/post-navigation-link/edit.js.map +1 -1
- package/build/post-terms/edit.js +1 -0
- package/build/post-terms/edit.js.map +1 -1
- package/build/post-terms/index.js +12 -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 +5 -2
- 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/preformatted/index.js +12 -0
- package/build/preformatted/index.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 +69 -9
- 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/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 +1 -0
- 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 +1 -1
- package/build/query/edit/inspector-controls/sticky-control.js.map +1 -1
- package/build/query/edit/query-content.js +1 -1
- package/build/query/edit/query-content.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 +10 -5
- package/build/query/utils.js.map +1 -1
- package/build/query-pagination/query-pagination-arrow-controls.js +1 -0
- package/build/query-pagination/query-pagination-arrow-controls.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 +2 -0
- package/build/query-title/edit.js.map +1 -1
- package/build/query-title/index.js +15 -0
- package/build/query-title/index.js.map +1 -1
- package/build/quote/index.js +1 -0
- package/build/quote/index.js.map +1 -1
- package/build/quote/transforms.js +4 -0
- package/build/quote/transforms.js.map +1 -1
- package/build/search/edit.js +9 -5
- package/build/search/edit.js.map +1 -1
- package/build/site-logo/edit.js +15 -8
- package/build/site-logo/edit.js.map +1 -1
- package/build/site-tagline/edit.js +3 -3
- package/build/site-tagline/edit.js.map +1 -1
- package/build/site-tagline/index.js +12 -1
- package/build/site-tagline/index.js.map +1 -1
- package/build/site-title/edit.js +2 -2
- package/build/site-title/edit.js.map +1 -1
- package/build/site-title/index.js +10 -0
- package/build/site-title/index.js.map +1 -1
- package/build/social-link/edit.js +2 -1
- package/build/social-link/edit.js.map +1 -1
- package/build/spacer/controls.js +8 -13
- package/build/spacer/controls.js.map +1 -1
- package/build/table/edit.js +6 -5
- package/build/table/edit.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 +69 -52
- package/build/tag-cloud/edit.js.map +1 -1
- package/build/tag-cloud/index.js +13 -1
- package/build/tag-cloud/index.js.map +1 -1
- package/build/template-part/edit/advanced-controls.js +2 -0
- package/build/template-part/edit/advanced-controls.js.map +1 -1
- package/build/template-part/edit/index.js +7 -6
- package/build/template-part/edit/index.js.map +1 -1
- package/build/template-part/edit/inner-blocks.js +6 -4
- package/build/template-part/edit/inner-blocks.js.map +1 -1
- package/build/video/edit-common-settings.js +1 -0
- package/build/video/edit-common-settings.js.map +1 -1
- package/build/video/edit.js +1 -1
- package/build/video/edit.js.map +1 -1
- package/build/video/tracks-editor.js +3 -0
- package/build/video/tracks-editor.js.map +1 -1
- package/build/video/transforms.js +4 -0
- package/build/video/transforms.js.map +1 -1
- package/build-module/archives/edit.js +1 -0
- package/build-module/archives/edit.js.map +1 -1
- package/build-module/audio/edit.js +1 -0
- package/build-module/audio/edit.js.map +1 -1
- package/build-module/avatar/edit.js +1 -0
- package/build-module/avatar/edit.js.map +1 -1
- package/build-module/avatar/user-control.js +1 -0
- package/build-module/avatar/user-control.js.map +1 -1
- package/build-module/button/edit.js +1 -0
- package/build-module/button/edit.js.map +1 -1
- package/build-module/categories/index.js +12 -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/comment-author-name/index.js +14 -1
- package/build-module/comment-author-name/index.js.map +1 -1
- package/build-module/comment-content/index.js +14 -1
- package/build-module/comment-content/index.js.map +1 -1
- package/build-module/comment-date/index.js +14 -1
- package/build-module/comment-date/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-pagination/comments-pagination-arrow-controls.js +1 -0
- package/build-module/comments-pagination/comments-pagination-arrow-controls.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 +0 -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/edit.js +13 -5
- package/build-module/embed/edit.js.map +1 -1
- package/build-module/embed/embed-placeholder.js +7 -4
- package/build-module/embed/embed-placeholder.js.map +1 -1
- package/build-module/embed/embed-preview.js +5 -19
- package/build-module/embed/embed-preview.js.map +1 -1
- package/build-module/file/index.js +12 -0
- package/build-module/file/index.js.map +1 -1
- package/build-module/file/inspector.js +1 -0
- package/build-module/file/inspector.js.map +1 -1
- package/build-module/form/edit.js +6 -4
- package/build-module/form/edit.js.map +1 -1
- package/build-module/form-input/edit.js +2 -0
- package/build-module/form-input/edit.js.map +1 -1
- package/build-module/gallery/edit.js +45 -15
- package/build-module/gallery/edit.js.map +1 -1
- package/build-module/gallery/gallery.native.js +4 -1
- package/build-module/gallery/gallery.native.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/use-image-sizes.js +2 -2
- package/build-module/gallery/use-image-sizes.js.map +1 -1
- package/build-module/group/edit.js +1 -1
- package/build-module/group/edit.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 +3 -0
- package/build-module/heading/index.js.map +1 -1
- package/build-module/image/image.js +7 -2
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/transforms.js +5 -1
- package/build-module/image/transforms.js.map +1 -1
- package/build-module/image/view.js +1 -1
- package/build-module/image/view.js.map +1 -1
- package/build-module/latest-posts/edit.js +41 -14
- package/build-module/latest-posts/edit.js.map +1 -1
- package/build-module/list/index.js +10 -1
- package/build-module/list/index.js.map +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/index.js +11 -3
- 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/edit.js +0 -1
- package/build-module/media-text/edit.js.map +1 -1
- package/build-module/missing/edit.js +10 -19
- package/build-module/missing/edit.js.map +1 -1
- package/build-module/navigation/edit/index.js +8 -8
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-name-control.js +1 -0
- package/build-module/navigation/edit/navigation-menu-name-control.js.map +1 -1
- package/build-module/navigation/edit/overlay-menu-preview.js +2 -0
- package/build-module/navigation/edit/overlay-menu-preview.js.map +1 -1
- package/build-module/post-author/edit.js +61 -54
- package/build-module/post-author/edit.js.map +1 -1
- package/build-module/post-author/index.js +13 -0
- package/build-module/post-author/index.js.map +1 -1
- package/build-module/post-author-biography/index.js +14 -1
- package/build-module/post-author-biography/index.js.map +1 -1
- package/build-module/post-author-name/index.js +14 -1
- package/build-module/post-author-name/index.js.map +1 -1
- package/build-module/post-comment/edit.js +2 -0
- package/build-module/post-comment/edit.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 +12 -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/dimension-controls.js +9 -2
- package/build-module/post-featured-image/dimension-controls.js.map +1 -1
- package/build-module/post-featured-image/edit.js +1 -0
- package/build-module/post-featured-image/edit.js.map +1 -1
- package/build-module/post-navigation-link/edit.js +7 -2
- package/build-module/post-navigation-link/edit.js.map +1 -1
- package/build-module/post-terms/edit.js +1 -0
- package/build-module/post-terms/edit.js.map +1 -1
- package/build-module/post-terms/index.js +12 -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 +5 -2
- 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/preformatted/index.js +12 -0
- package/build-module/preformatted/index.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 +71 -11
- 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/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 +1 -0
- 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 +1 -1
- package/build-module/query/edit/inspector-controls/sticky-control.js.map +1 -1
- package/build-module/query/edit/query-content.js +1 -1
- package/build-module/query/edit/query-content.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 +10 -5
- package/build-module/query/utils.js.map +1 -1
- package/build-module/query-pagination/query-pagination-arrow-controls.js +1 -0
- package/build-module/query-pagination/query-pagination-arrow-controls.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 +2 -0
- package/build-module/query-title/edit.js.map +1 -1
- package/build-module/query-title/index.js +15 -0
- package/build-module/query-title/index.js.map +1 -1
- package/build-module/quote/index.js +1 -0
- package/build-module/quote/index.js.map +1 -1
- package/build-module/quote/transforms.js +4 -0
- package/build-module/quote/transforms.js.map +1 -1
- package/build-module/search/edit.js +10 -6
- package/build-module/search/edit.js.map +1 -1
- package/build-module/site-logo/edit.js +15 -8
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/site-tagline/edit.js +3 -3
- package/build-module/site-tagline/edit.js.map +1 -1
- package/build-module/site-tagline/index.js +12 -1
- package/build-module/site-tagline/index.js.map +1 -1
- package/build-module/site-title/edit.js +2 -2
- package/build-module/site-title/edit.js.map +1 -1
- package/build-module/site-title/index.js +10 -0
- package/build-module/site-title/index.js.map +1 -1
- package/build-module/social-link/edit.js +2 -1
- package/build-module/social-link/edit.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/edit.js +6 -5
- package/build-module/table/edit.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 +70 -53
- package/build-module/tag-cloud/edit.js.map +1 -1
- package/build-module/tag-cloud/index.js +13 -1
- package/build-module/tag-cloud/index.js.map +1 -1
- package/build-module/template-part/edit/advanced-controls.js +2 -0
- package/build-module/template-part/edit/advanced-controls.js.map +1 -1
- package/build-module/template-part/edit/index.js +7 -6
- package/build-module/template-part/edit/index.js.map +1 -1
- package/build-module/template-part/edit/inner-blocks.js +6 -4
- package/build-module/template-part/edit/inner-blocks.js.map +1 -1
- package/build-module/video/edit-common-settings.js +1 -0
- package/build-module/video/edit-common-settings.js.map +1 -1
- package/build-module/video/edit.js +1 -1
- package/build-module/video/edit.js.map +1 -1
- package/build-module/video/tracks-editor.js +3 -0
- package/build-module/video/tracks-editor.js.map +1 -1
- package/build-module/video/transforms.js +5 -1
- package/build-module/video/transforms.js.map +1 -1
- package/build-style/archives/editor-rtl.css +5 -2
- package/build-style/archives/editor.css +5 -2
- package/build-style/archives/style-rtl.css +5 -2
- package/build-style/archives/style.css +5 -2
- package/build-style/audio/editor-rtl.css +5 -2
- package/build-style/audio/editor.css +5 -2
- package/build-style/audio/style-rtl.css +5 -2
- package/build-style/audio/style.css +5 -2
- package/build-style/audio/theme-rtl.css +5 -2
- package/build-style/audio/theme.css +5 -2
- package/build-style/avatar/editor-rtl.css +5 -2
- package/build-style/avatar/editor.css +5 -2
- package/build-style/avatar/style-rtl.css +5 -2
- package/build-style/avatar/style.css +5 -2
- package/build-style/button/editor-rtl.css +5 -2
- package/build-style/button/editor.css +5 -2
- package/build-style/button/style-rtl.css +5 -2
- package/build-style/button/style.css +5 -2
- package/build-style/buttons/editor-rtl.css +5 -2
- package/build-style/buttons/editor.css +5 -2
- package/build-style/buttons/style-rtl.css +5 -2
- package/build-style/buttons/style.css +5 -2
- package/build-style/calendar/style-rtl.css +5 -2
- package/build-style/calendar/style.css +5 -2
- package/build-style/categories/editor-rtl.css +5 -2
- package/build-style/categories/editor.css +5 -2
- package/build-style/categories/style-rtl.css +5 -2
- package/build-style/categories/style.css +5 -2
- package/build-style/classic-rtl.css +5 -2
- package/build-style/classic.css +5 -2
- package/build-style/code/editor-rtl.css +5 -2
- package/build-style/code/editor.css +5 -2
- package/build-style/code/style-rtl.css +5 -2
- package/build-style/code/style.css +5 -2
- package/build-style/code/theme-rtl.css +5 -2
- package/build-style/code/theme.css +5 -2
- package/build-style/columns/editor-rtl.css +5 -2
- package/build-style/columns/editor.css +5 -2
- package/build-style/columns/style-rtl.css +5 -2
- package/build-style/columns/style.css +5 -2
- package/build-style/comment-author-avatar/editor-rtl.css +5 -2
- package/build-style/comment-author-avatar/editor.css +5 -2
- package/build-style/comment-author-name/style-rtl.css +94 -0
- package/build-style/comment-author-name/style.css +94 -0
- package/build-style/comment-content/style-rtl.css +9 -2
- package/build-style/comment-content/style.css +9 -2
- package/build-style/comment-date/style-rtl.css +94 -0
- package/build-style/comment-date/style.css +94 -0
- package/build-style/comment-template/style-rtl.css +5 -2
- package/build-style/comment-template/style.css +5 -2
- package/build-style/comments/editor-rtl.css +5 -2
- package/build-style/comments/editor.css +5 -2
- package/build-style/comments/style-rtl.css +5 -2
- package/build-style/comments/style.css +5 -2
- package/build-style/comments-pagination/editor-rtl.css +5 -2
- package/build-style/comments-pagination/editor.css +5 -2
- package/build-style/comments-pagination/style-rtl.css +5 -2
- package/build-style/comments-pagination/style.css +5 -2
- package/build-style/comments-pagination-numbers/editor-rtl.css +5 -2
- package/build-style/comments-pagination-numbers/editor.css +5 -2
- package/build-style/comments-title/editor-rtl.css +5 -2
- package/build-style/comments-title/editor.css +5 -2
- package/build-style/common-rtl.css +5 -2
- package/build-style/common.css +5 -2
- package/build-style/cover/editor-rtl.css +5 -2
- package/build-style/cover/editor.css +5 -2
- package/build-style/cover/style-rtl.css +5 -2
- package/build-style/cover/style.css +5 -2
- package/build-style/details/editor-rtl.css +5 -2
- package/build-style/details/editor.css +5 -2
- package/build-style/details/style-rtl.css +5 -2
- package/build-style/details/style.css +5 -2
- package/build-style/editor-elements-rtl.css +5 -2
- package/build-style/editor-elements.css +5 -2
- package/build-style/editor-rtl.css +47 -45
- package/build-style/editor.css +47 -45
- package/build-style/elements-rtl.css +5 -2
- package/build-style/elements.css +5 -2
- package/build-style/embed/editor-rtl.css +8 -2
- package/build-style/embed/editor.css +8 -2
- package/build-style/embed/style-rtl.css +5 -2
- package/build-style/embed/style.css +5 -2
- package/build-style/embed/theme-rtl.css +5 -2
- package/build-style/embed/theme.css +5 -2
- package/build-style/file/editor-rtl.css +5 -2
- package/build-style/file/editor.css +5 -2
- package/build-style/file/style-rtl.css +5 -2
- package/build-style/file/style.css +5 -2
- package/build-style/footnotes/style-rtl.css +5 -2
- package/build-style/footnotes/style.css +5 -2
- package/build-style/form-input/editor-rtl.css +5 -2
- package/build-style/form-input/editor.css +5 -2
- package/build-style/form-input/style-rtl.css +6 -2
- package/build-style/form-input/style.css +6 -2
- package/build-style/form-submission-notification/editor-rtl.css +5 -2
- package/build-style/form-submission-notification/editor.css +5 -2
- package/build-style/form-submit-button/style-rtl.css +5 -2
- package/build-style/form-submit-button/style.css +5 -2
- package/build-style/freeform/editor-rtl.css +5 -2
- package/build-style/freeform/editor.css +5 -2
- package/build-style/gallery/editor-rtl.css +5 -3
- package/build-style/gallery/editor.css +5 -3
- package/build-style/gallery/style-rtl.css +29 -9
- package/build-style/gallery/style.css +29 -9
- package/build-style/gallery/theme-rtl.css +5 -2
- package/build-style/gallery/theme.css +5 -2
- package/build-style/group/editor-rtl.css +5 -13
- package/build-style/group/editor.css +5 -13
- package/build-style/group/style-rtl.css +5 -2
- package/build-style/group/style.css +5 -2
- package/build-style/group/theme-rtl.css +5 -2
- package/build-style/group/theme.css +5 -2
- package/build-style/heading/style-rtl.css +5 -2
- package/build-style/heading/style.css +5 -2
- package/build-style/html/editor-rtl.css +5 -2
- package/build-style/html/editor.css +5 -2
- package/build-style/image/editor-rtl.css +13 -2
- package/build-style/image/editor.css +13 -2
- package/build-style/image/style-rtl.css +5 -2
- package/build-style/image/style.css +5 -2
- package/build-style/image/theme-rtl.css +5 -2
- package/build-style/image/theme.css +5 -2
- package/build-style/latest-comments/style-rtl.css +5 -2
- package/build-style/latest-comments/style.css +5 -2
- package/build-style/latest-posts/editor-rtl.css +12 -9
- package/build-style/latest-posts/editor.css +12 -9
- package/build-style/latest-posts/style-rtl.css +5 -2
- package/build-style/latest-posts/style.css +5 -2
- package/build-style/list/style-rtl.css +5 -2
- package/build-style/list/style.css +5 -2
- 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 +5 -2
- package/build-style/media-text/editor.css +5 -2
- package/build-style/media-text/style-rtl.css +5 -2
- package/build-style/media-text/style.css +5 -2
- package/build-style/more/editor-rtl.css +5 -2
- package/build-style/more/editor.css +5 -2
- package/build-style/navigation/editor-rtl.css +9 -14
- package/build-style/navigation/editor.css +9 -14
- package/build-style/navigation/style-rtl.css +5 -2
- package/build-style/navigation/style.css +5 -2
- package/build-style/navigation-link/editor-rtl.css +5 -5
- package/build-style/navigation-link/editor.css +5 -5
- package/build-style/navigation-link/style-rtl.css +5 -2
- package/build-style/navigation-link/style.css +5 -2
- package/build-style/navigation-submenu/editor-rtl.css +5 -2
- package/build-style/navigation-submenu/editor.css +5 -2
- package/build-style/nextpage/editor-rtl.css +5 -2
- package/build-style/nextpage/editor.css +5 -2
- package/build-style/page-list/editor-rtl.css +5 -2
- package/build-style/page-list/editor.css +5 -2
- package/build-style/page-list/style-rtl.css +5 -2
- package/build-style/page-list/style.css +5 -2
- package/build-style/paragraph/editor-rtl.css +5 -2
- package/build-style/paragraph/editor.css +5 -2
- package/build-style/paragraph/style-rtl.css +5 -2
- package/build-style/paragraph/style.css +5 -2
- package/build-style/post-author/editor-rtl.css +95 -0
- package/build-style/post-author/editor.css +95 -0
- package/build-style/post-author/style-rtl.css +6 -2
- package/build-style/post-author/style.css +6 -2
- package/build-style/post-author-biography/style-rtl.css +94 -0
- package/build-style/post-author-biography/style.css +94 -0
- package/build-style/post-author-name/style-rtl.css +94 -0
- package/build-style/post-author-name/style.css +94 -0
- package/build-style/post-comments-form/editor-rtl.css +5 -2
- package/build-style/post-comments-form/editor.css +5 -2
- package/build-style/post-comments-form/style-rtl.css +5 -2
- package/build-style/post-comments-form/style.css +5 -2
- package/build-style/post-content/editor-rtl.css +5 -2
- package/build-style/post-content/editor.css +5 -2
- 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 +5 -2
- package/build-style/post-date/style.css +5 -2
- package/build-style/post-excerpt/editor-rtl.css +5 -2
- package/build-style/post-excerpt/editor.css +5 -2
- package/build-style/post-excerpt/style-rtl.css +6 -2
- package/build-style/post-excerpt/style.css +6 -2
- package/build-style/post-featured-image/editor-rtl.css +5 -2
- package/build-style/post-featured-image/editor.css +5 -2
- package/build-style/post-featured-image/style-rtl.css +5 -2
- package/build-style/post-featured-image/style.css +5 -2
- package/build-style/post-navigation-link/style-rtl.css +5 -2
- package/build-style/post-navigation-link/style.css +5 -2
- package/build-style/post-template/editor-rtl.css +5 -2
- package/build-style/post-template/editor.css +5 -2
- package/build-style/post-template/style-rtl.css +5 -2
- package/build-style/post-template/style.css +5 -2
- package/build-style/post-terms/style-rtl.css +5 -2
- package/build-style/post-terms/style.css +5 -2
- package/build-style/post-time-to-read/style-rtl.css +5 -2
- package/build-style/post-time-to-read/style.css +5 -2
- package/build-style/post-title/style-rtl.css +5 -2
- package/build-style/post-title/style.css +5 -2
- package/build-style/preformatted/style-rtl.css +5 -2
- package/build-style/preformatted/style.css +5 -2
- package/build-style/pullquote/editor-rtl.css +5 -2
- package/build-style/pullquote/editor.css +5 -2
- package/build-style/pullquote/style-rtl.css +5 -2
- package/build-style/pullquote/style.css +5 -2
- package/build-style/pullquote/theme-rtl.css +5 -2
- package/build-style/pullquote/theme.css +5 -2
- package/build-style/query/editor-rtl.css +5 -2
- package/build-style/query/editor.css +5 -2
- package/build-style/query-pagination/editor-rtl.css +5 -2
- package/build-style/query-pagination/editor.css +5 -2
- package/build-style/query-pagination/style-rtl.css +5 -2
- package/build-style/query-pagination/style.css +5 -2
- package/build-style/query-pagination-numbers/editor-rtl.css +5 -2
- package/build-style/query-pagination-numbers/editor.css +5 -2
- package/build-style/query-title/style-rtl.css +5 -2
- package/build-style/query-title/style.css +5 -2
- package/build-style/quote/style-rtl.css +5 -2
- package/build-style/quote/style.css +5 -2
- package/build-style/quote/theme-rtl.css +8 -5
- package/build-style/quote/theme.css +8 -5
- package/build-style/read-more/style-rtl.css +5 -2
- package/build-style/read-more/style.css +5 -2
- package/build-style/reset-rtl.css +5 -2
- package/build-style/reset.css +5 -2
- package/build-style/rss/editor-rtl.css +5 -2
- package/build-style/rss/editor.css +5 -2
- package/build-style/rss/style-rtl.css +5 -2
- package/build-style/rss/style.css +5 -2
- package/build-style/search/editor-rtl.css +8 -4
- package/build-style/search/editor.css +8 -4
- package/build-style/search/style-rtl.css +5 -2
- package/build-style/search/style.css +5 -2
- package/build-style/search/theme-rtl.css +5 -2
- package/build-style/search/theme.css +5 -2
- package/build-style/separator/editor-rtl.css +5 -2
- package/build-style/separator/editor.css +5 -2
- package/build-style/separator/style-rtl.css +5 -2
- package/build-style/separator/style.css +5 -2
- package/build-style/separator/theme-rtl.css +5 -2
- package/build-style/separator/theme.css +5 -2
- package/build-style/shortcode/editor-rtl.css +5 -2
- package/build-style/shortcode/editor.css +5 -2
- package/build-style/site-logo/editor-rtl.css +5 -2
- package/build-style/site-logo/editor.css +5 -2
- package/build-style/site-logo/style-rtl.css +5 -2
- package/build-style/site-logo/style.css +5 -2
- package/build-style/site-tagline/editor-rtl.css +5 -2
- package/build-style/site-tagline/editor.css +5 -2
- 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 +5 -2
- package/build-style/site-title/editor.css +5 -2
- package/build-style/site-title/style-rtl.css +9 -3
- package/build-style/site-title/style.css +9 -3
- package/build-style/social-link/editor-rtl.css +5 -2
- package/build-style/social-link/editor.css +5 -2
- package/build-style/social-links/editor-rtl.css +5 -2
- package/build-style/social-links/editor.css +5 -2
- 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 +5 -2
- package/build-style/spacer/editor.css +5 -2
- package/build-style/spacer/style-rtl.css +5 -2
- package/build-style/spacer/style.css +5 -2
- package/build-style/style-rtl.css +80 -10
- package/build-style/style.css +80 -10
- package/build-style/table/editor-rtl.css +5 -2
- package/build-style/table/editor.css +5 -2
- package/build-style/table/style-rtl.css +5 -2
- package/build-style/table/style.css +5 -2
- package/build-style/table/theme-rtl.css +5 -2
- package/build-style/table/theme.css +5 -2
- 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 +102 -0
- package/build-style/tag-cloud/editor.css +102 -0
- package/build-style/tag-cloud/style-rtl.css +5 -2
- package/build-style/tag-cloud/style.css +5 -2
- package/build-style/template-part/editor-rtl.css +5 -6
- package/build-style/template-part/editor.css +5 -6
- package/build-style/template-part/theme-rtl.css +5 -2
- package/build-style/template-part/theme.css +5 -2
- package/build-style/term-description/style-rtl.css +5 -2
- package/build-style/term-description/style.css +5 -2
- package/build-style/text-columns/editor-rtl.css +5 -2
- package/build-style/text-columns/editor.css +5 -2
- package/build-style/text-columns/style-rtl.css +5 -2
- package/build-style/text-columns/style.css +5 -2
- package/build-style/theme-rtl.css +8 -5
- package/build-style/theme.css +8 -5
- package/build-style/verse/style-rtl.css +5 -2
- package/build-style/verse/style.css +5 -2
- package/build-style/video/editor-rtl.css +5 -5
- package/build-style/video/editor.css +5 -5
- package/build-style/video/style-rtl.css +5 -2
- package/build-style/video/style.css +5 -2
- package/build-style/video/theme-rtl.css +5 -2
- package/build-style/video/theme.css +5 -2
- package/package.json +35 -35
- package/src/archives/edit.js +1 -0
- package/src/audio/edit.js +4 -3
- package/src/avatar/edit.js +1 -0
- package/src/avatar/user-control.js +1 -0
- package/src/button/edit.js +1 -0
- package/src/button/index.php +1 -14
- package/src/categories/block.json +12 -0
- package/src/column/block.json +2 -0
- package/src/column/edit.js +2 -2
- package/src/comment-author-name/block.json +14 -1
- package/src/comment-author-name/style.scss +4 -0
- package/src/comment-content/block.json +14 -1
- package/src/comment-content/style.scss +5 -0
- package/src/comment-date/block.json +14 -1
- package/src/comment-date/style.scss +4 -0
- package/src/comment-template/block.json +12 -0
- package/src/comments-pagination/comments-pagination-arrow-controls.js +1 -0
- package/src/comments-title/block.json +3 -0
- package/src/comments-title/edit.js +8 -1
- package/src/cover/edit/inspector-controls.js +0 -1
- package/src/details/edit.js +1 -0
- package/src/editor.scss +2 -0
- package/src/embed/edit.js +10 -1
- package/src/embed/editor.scss +4 -0
- package/src/embed/embed-placeholder.js +7 -4
- package/src/embed/embed-preview.js +3 -37
- package/src/file/block.json +12 -0
- package/src/file/inspector.js +1 -0
- package/src/form/edit.js +5 -2
- package/src/form-input/edit.js +2 -0
- package/src/form-input/style.scss +1 -0
- package/src/gallery/edit.js +80 -22
- package/src/gallery/editor.scss +1 -2
- package/src/gallery/gallery.native.js +2 -1
- package/src/gallery/gap-styles.js +1 -8
- package/src/gallery/style.scss +33 -7
- 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/edit.js +1 -1
- 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 +3 -0
- package/src/heading/edit.js +3 -1
- package/src/image/editor.scss +12 -0
- package/src/image/image.js +7 -1
- package/src/image/transforms.js +7 -1
- package/src/image/view.js +1 -1
- package/src/latest-posts/edit.js +61 -17
- package/src/latest-posts/editor.scss +11 -10
- package/src/list/block.json +10 -1
- package/src/list/ordered-list-settings.js +20 -18
- package/src/list/test/edit.native.js +1 -3
- package/src/list-item/block.json +11 -3
- package/src/loginout/block.json +14 -1
- package/src/loginout/style.scss +4 -0
- package/src/media-text/edit.js +0 -1
- package/src/media-text/style.native.scss +2 -0
- package/src/missing/edit.js +12 -18
- package/src/navigation/edit/index.js +8 -8
- package/src/navigation/edit/navigation-menu-name-control.js +1 -0
- package/src/navigation/edit/overlay-menu-preview.js +2 -0
- package/src/navigation/editor.scss +5 -1
- package/src/navigation/index.php +10 -27
- package/src/navigation-link/editor.scss +0 -3
- package/src/post-author/block.json +13 -0
- package/src/post-author/edit.js +68 -57
- package/src/post-author/editor.scss +7 -0
- package/src/post-author/style.scss +1 -0
- package/src/post-author-biography/block.json +14 -1
- package/src/post-author-biography/style.scss +4 -0
- package/src/post-author-name/block.json +14 -1
- package/src/post-author-name/style.scss +4 -0
- package/src/post-comment/edit.js +2 -0
- package/src/post-comments-form/block.json +12 -0
- package/src/post-content/block.json +1 -0
- package/src/post-content/style.scss +5 -0
- package/src/post-date/block.json +12 -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/dimension-controls.js +5 -0
- package/src/post-featured-image/edit.js +1 -0
- package/src/post-navigation-link/edit.js +8 -2
- package/src/post-terms/block.json +12 -0
- package/src/post-terms/edit.js +1 -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 +5 -3
- package/src/preformatted/block.json +12 -0
- package/src/query/edit/inspector-controls/enhanced-pagination-control.js +1 -0
- package/src/query/edit/inspector-controls/index.js +85 -12
- package/src/query/edit/inspector-controls/offset-controls.js +31 -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 +1 -1
- package/src/query/edit/query-content.js +1 -1
- package/src/query/edit/query-toolbar.js +1 -90
- package/src/query/utils.js +9 -5
- package/src/query-pagination/query-pagination-arrow-controls.js +1 -0
- package/src/query-pagination-numbers/edit.js +1 -0
- package/src/query-title/block.json +15 -0
- package/src/query-title/edit.js +9 -1
- package/src/quote/block.json +1 -0
- package/src/quote/test/transforms.native.js +1 -1
- package/src/quote/theme.scss +5 -3
- package/src/quote/transforms.js +11 -2
- package/src/search/edit.js +9 -9
- package/src/search/editor.scss +5 -2
- package/src/site-logo/edit.js +23 -9
- package/src/site-tagline/block.json +12 -1
- package/src/site-tagline/edit.js +2 -4
- package/src/site-tagline/style.scss +4 -0
- package/src/site-title/block.json +10 -0
- package/src/site-title/edit.js +2 -4
- package/src/site-title/style.scss +7 -2
- package/src/social-link/edit.js +2 -1
- package/src/spacer/controls.js +10 -13
- package/src/style.scss +9 -0
- package/src/table/edit.js +5 -4
- package/src/table-of-contents/block.json +14 -1
- package/src/table-of-contents/style.scss +4 -0
- package/src/tag-cloud/block.json +13 -1
- package/src/tag-cloud/edit.js +80 -56
- package/src/tag-cloud/editor.scss +19 -0
- package/src/template-part/edit/advanced-controls.js +2 -0
- package/src/template-part/edit/index.js +10 -7
- package/src/template-part/edit/inner-blocks.js +6 -4
- package/src/template-part/editor.scss +0 -5
- package/src/video/edit-common-settings.js +1 -0
- package/src/video/edit.js +2 -2
- package/src/video/editor.scss +0 -4
- package/src/video/tracks-editor.js +3 -0
- package/src/video/transforms.js +5 -1
|
@@ -13,13 +13,8 @@ import clsx from 'clsx';
|
|
|
13
13
|
*/
|
|
14
14
|
import { __, sprintf } from '@wordpress/i18n';
|
|
15
15
|
import { Placeholder, SandBox } from '@wordpress/components';
|
|
16
|
-
import {
|
|
17
|
-
RichText,
|
|
18
|
-
BlockIcon,
|
|
19
|
-
__experimentalGetElementClassName,
|
|
20
|
-
} from '@wordpress/block-editor';
|
|
16
|
+
import { BlockIcon } from '@wordpress/block-editor';
|
|
21
17
|
import { Component } from '@wordpress/element';
|
|
22
|
-
import { createBlock, getDefaultBlockName } from '@wordpress/blocks';
|
|
23
18
|
import { getAuthority } from '@wordpress/url';
|
|
24
19
|
|
|
25
20
|
/**
|
|
@@ -57,19 +52,8 @@ class EmbedPreview extends Component {
|
|
|
57
52
|
}
|
|
58
53
|
|
|
59
54
|
render() {
|
|
60
|
-
const {
|
|
61
|
-
|
|
62
|
-
previewable,
|
|
63
|
-
url,
|
|
64
|
-
type,
|
|
65
|
-
caption,
|
|
66
|
-
onCaptionChange,
|
|
67
|
-
isSelected,
|
|
68
|
-
className,
|
|
69
|
-
icon,
|
|
70
|
-
label,
|
|
71
|
-
insertBlocksAfter,
|
|
72
|
-
} = this.props;
|
|
55
|
+
const { preview, previewable, url, type, className, icon, label } =
|
|
56
|
+
this.props;
|
|
73
57
|
const { scripts } = preview;
|
|
74
58
|
const { interactive } = this.state;
|
|
75
59
|
|
|
@@ -139,24 +123,6 @@ class EmbedPreview extends Component {
|
|
|
139
123
|
</p>
|
|
140
124
|
</Placeholder>
|
|
141
125
|
) }
|
|
142
|
-
{ ( ! RichText.isEmpty( caption ) || isSelected ) && (
|
|
143
|
-
<RichText
|
|
144
|
-
identifier="caption"
|
|
145
|
-
tagName="figcaption"
|
|
146
|
-
className={ __experimentalGetElementClassName(
|
|
147
|
-
'caption'
|
|
148
|
-
) }
|
|
149
|
-
placeholder={ __( 'Add caption' ) }
|
|
150
|
-
value={ caption }
|
|
151
|
-
onChange={ onCaptionChange }
|
|
152
|
-
inlineToolbar
|
|
153
|
-
__unstableOnSplitAtEnd={ () =>
|
|
154
|
-
insertBlocksAfter(
|
|
155
|
-
createBlock( getDefaultBlockName() )
|
|
156
|
-
)
|
|
157
|
-
}
|
|
158
|
-
/>
|
|
159
|
-
) }
|
|
160
126
|
</figure>
|
|
161
127
|
);
|
|
162
128
|
}
|
package/src/file/block.json
CHANGED
|
@@ -74,6 +74,18 @@
|
|
|
74
74
|
"link": true
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
+
"__experimentalBorder": {
|
|
78
|
+
"radius": true,
|
|
79
|
+
"color": true,
|
|
80
|
+
"width": true,
|
|
81
|
+
"style": true,
|
|
82
|
+
"__experimentalDefaultControls": {
|
|
83
|
+
"radius": true,
|
|
84
|
+
"color": true,
|
|
85
|
+
"width": true,
|
|
86
|
+
"style": true
|
|
87
|
+
}
|
|
88
|
+
},
|
|
77
89
|
"interactivity": true
|
|
78
90
|
},
|
|
79
91
|
"editorStyle": "wp-block-file-editor",
|
package/src/file/inspector.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 }
|
|
@@ -129,6 +130,7 @@ const Edit = ( { attributes, setAttributes, clientId } ) => {
|
|
|
129
130
|
{ submissionMethod !== 'email' && (
|
|
130
131
|
<InspectorControls group="advanced">
|
|
131
132
|
<SelectControl
|
|
133
|
+
__next40pxDefaultSize
|
|
132
134
|
__nextHasNoMarginBottom
|
|
133
135
|
label={ __( 'Method' ) }
|
|
134
136
|
options={ [
|
|
@@ -144,6 +146,7 @@ const Edit = ( { attributes, setAttributes, clientId } ) => {
|
|
|
144
146
|
) }
|
|
145
147
|
/>
|
|
146
148
|
<TextControl
|
|
149
|
+
__next40pxDefaultSize
|
|
147
150
|
__nextHasNoMarginBottom
|
|
148
151
|
autoComplete="off"
|
|
149
152
|
label={ __( 'Form action' ) }
|
package/src/form-input/edit.js
CHANGED
package/src/gallery/edit.js
CHANGED
|
@@ -6,7 +6,6 @@ import clsx from 'clsx';
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
8
8
|
*/
|
|
9
|
-
import { compose } from '@wordpress/compose';
|
|
10
9
|
import {
|
|
11
10
|
BaseControl,
|
|
12
11
|
PanelBody,
|
|
@@ -14,7 +13,9 @@ import {
|
|
|
14
13
|
ToggleControl,
|
|
15
14
|
RangeControl,
|
|
16
15
|
Spinner,
|
|
17
|
-
|
|
16
|
+
MenuGroup,
|
|
17
|
+
MenuItem,
|
|
18
|
+
ToolbarDropdownMenu,
|
|
18
19
|
} from '@wordpress/components';
|
|
19
20
|
import {
|
|
20
21
|
store as blockEditorStore,
|
|
@@ -28,11 +29,16 @@ import {
|
|
|
28
29
|
import { Platform, useEffect, useMemo } from '@wordpress/element';
|
|
29
30
|
import { __, _x, sprintf } from '@wordpress/i18n';
|
|
30
31
|
import { useSelect, useDispatch } from '@wordpress/data';
|
|
31
|
-
import { withViewportMatch } from '@wordpress/viewport';
|
|
32
32
|
import { View } from '@wordpress/primitives';
|
|
33
33
|
import { createBlock } from '@wordpress/blocks';
|
|
34
34
|
import { createBlobURL } from '@wordpress/blob';
|
|
35
35
|
import { store as noticesStore } from '@wordpress/notices';
|
|
36
|
+
import {
|
|
37
|
+
link as linkIcon,
|
|
38
|
+
customLink,
|
|
39
|
+
image as imageIcon,
|
|
40
|
+
linkOff,
|
|
41
|
+
} from '@wordpress/icons';
|
|
36
42
|
|
|
37
43
|
/**
|
|
38
44
|
* Internal dependencies
|
|
@@ -57,11 +63,23 @@ import GapStyles from './gap-styles';
|
|
|
57
63
|
|
|
58
64
|
const MAX_COLUMNS = 8;
|
|
59
65
|
const linkOptions = [
|
|
60
|
-
{ value: LINK_DESTINATION_ATTACHMENT, label: __( 'Attachment Page' ) },
|
|
61
|
-
{ value: LINK_DESTINATION_MEDIA, label: __( 'Media File' ) },
|
|
62
66
|
{
|
|
63
|
-
|
|
67
|
+
icon: customLink,
|
|
68
|
+
label: __( 'Link images to attachment pages' ),
|
|
69
|
+
value: LINK_DESTINATION_ATTACHMENT,
|
|
70
|
+
noticeText: __( 'Attachment Pages' ),
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
icon: imageIcon,
|
|
74
|
+
label: __( 'Link images to media files' ),
|
|
75
|
+
value: LINK_DESTINATION_MEDIA,
|
|
76
|
+
noticeText: __( 'Media Files' ),
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
icon: linkOff,
|
|
64
80
|
label: _x( 'None', 'Media item link option' ),
|
|
81
|
+
value: LINK_DESTINATION_NONE,
|
|
82
|
+
noticeText: __( 'None' ),
|
|
65
83
|
},
|
|
66
84
|
];
|
|
67
85
|
const ALLOWED_MEDIA_TYPES = [ 'image' ];
|
|
@@ -77,7 +95,7 @@ const MOBILE_CONTROL_PROPS_RANGE_CONTROL = Platform.isNative
|
|
|
77
95
|
const DEFAULT_BLOCK = { name: 'core/image' };
|
|
78
96
|
const EMPTY_ARRAY = [];
|
|
79
97
|
|
|
80
|
-
function GalleryEdit( props ) {
|
|
98
|
+
export default function GalleryEdit( props ) {
|
|
81
99
|
const {
|
|
82
100
|
setAttributes,
|
|
83
101
|
attributes,
|
|
@@ -359,7 +377,7 @@ function GalleryEdit( props ) {
|
|
|
359
377
|
sprintf(
|
|
360
378
|
/* translators: %s: image size settings */
|
|
361
379
|
__( 'All gallery image links updated to: %s' ),
|
|
362
|
-
linkToText.
|
|
380
|
+
linkToText.noticeText
|
|
363
381
|
),
|
|
364
382
|
{
|
|
365
383
|
id: 'gallery-attributes-linkTo',
|
|
@@ -552,15 +570,17 @@ function GalleryEdit( props ) {
|
|
|
552
570
|
size="__unstable-large"
|
|
553
571
|
/>
|
|
554
572
|
) }
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
573
|
+
{ Platform.isNative ? (
|
|
574
|
+
<SelectControl
|
|
575
|
+
__nextHasNoMarginBottom
|
|
576
|
+
label={ __( 'Link' ) }
|
|
577
|
+
value={ linkTo }
|
|
578
|
+
onChange={ setLinkTo }
|
|
579
|
+
options={ linkOptions }
|
|
580
|
+
hideCancelButton
|
|
581
|
+
size="__unstable-large"
|
|
582
|
+
/>
|
|
583
|
+
) : null }
|
|
564
584
|
<ToggleControl
|
|
565
585
|
__nextHasNoMarginBottom
|
|
566
586
|
label={ __( 'Crop images to fit' ) }
|
|
@@ -582,7 +602,10 @@ function GalleryEdit( props ) {
|
|
|
582
602
|
/>
|
|
583
603
|
) }
|
|
584
604
|
{ Platform.isWeb && ! imageSizeOptions && hasImageIds && (
|
|
585
|
-
<BaseControl
|
|
605
|
+
<BaseControl
|
|
606
|
+
className="gallery-image-sizes"
|
|
607
|
+
__nextHasNoMarginBottom
|
|
608
|
+
>
|
|
586
609
|
<BaseControl.VisualLabel>
|
|
587
610
|
{ __( 'Resolution' ) }
|
|
588
611
|
</BaseControl.VisualLabel>
|
|
@@ -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 && (
|
|
@@ -634,7 +696,3 @@ function GalleryEdit( props ) {
|
|
|
634
696
|
</>
|
|
635
697
|
);
|
|
636
698
|
}
|
|
637
|
-
export default compose( [
|
|
638
|
-
withNotices,
|
|
639
|
-
withViewportMatch( { isNarrow: '< small' } ),
|
|
640
|
-
] )( GalleryEdit );
|
package/src/gallery/editor.scss
CHANGED
|
@@ -70,7 +70,6 @@
|
|
|
70
70
|
|
|
71
71
|
.gallery-image-sizes {
|
|
72
72
|
.components-base-control__label {
|
|
73
|
-
display: block;
|
|
74
73
|
margin-bottom: 4px;
|
|
75
74
|
}
|
|
76
75
|
|
|
@@ -145,7 +144,7 @@
|
|
|
145
144
|
border: $border-width solid $gray-900;
|
|
146
145
|
|
|
147
146
|
&:hover {
|
|
148
|
-
box-shadow: $
|
|
147
|
+
box-shadow: $elevation-x-small;
|
|
149
148
|
}
|
|
150
149
|
|
|
151
150
|
@include break-small() {
|
|
@@ -22,6 +22,7 @@ import { useState, useEffect } from '@wordpress/element';
|
|
|
22
22
|
import { mediaUploadSync } from '@wordpress/react-native-bridge';
|
|
23
23
|
import { WIDE_ALIGNMENTS } from '@wordpress/components';
|
|
24
24
|
import { useResizeObserver } from '@wordpress/compose';
|
|
25
|
+
import { withViewportMatch } from '@wordpress/viewport';
|
|
25
26
|
|
|
26
27
|
const TILE_SPACING = 8;
|
|
27
28
|
|
|
@@ -120,4 +121,4 @@ export const Gallery = ( props ) => {
|
|
|
120
121
|
);
|
|
121
122
|
};
|
|
122
123
|
|
|
123
|
-
export default Gallery;
|
|
124
|
+
export default withViewportMatch( { isNarrow: '< small' } )( Gallery );
|
|
@@ -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.
|
package/src/gallery/style.scss
CHANGED
|
@@ -43,22 +43,44 @@ figure.wp-block-gallery.has-nested-images {
|
|
|
43
43
|
width: auto;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
// Position caption and scrim at the bottom.
|
|
47
|
+
&:has(figcaption)::before,
|
|
46
48
|
figcaption {
|
|
47
|
-
|
|
49
|
+
position: absolute;
|
|
48
50
|
bottom: 0;
|
|
51
|
+
right: 0;
|
|
52
|
+
left: 0;
|
|
53
|
+
max-height: 100%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Create a background blur layer.
|
|
57
|
+
&:has(figcaption)::before {
|
|
58
|
+
content: "";
|
|
59
|
+
height: 100%;
|
|
60
|
+
max-height: 40%;
|
|
61
|
+
|
|
62
|
+
// Blur the background under the gradient scrim.
|
|
63
|
+
backdrop-filter: blur(3px);
|
|
64
|
+
|
|
65
|
+
// Crop the caption so the blur is only on the edge.
|
|
66
|
+
mask-image: linear-gradient(0deg, $black 20%, transparent 100%);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Place the caption at the bottom.
|
|
70
|
+
figcaption {
|
|
49
71
|
color: $white;
|
|
72
|
+
text-shadow: 0 0 1.5px $black;
|
|
50
73
|
font-size: $default-font-size;
|
|
51
|
-
|
|
52
|
-
margin-bottom: 0;
|
|
53
|
-
max-height: 60%;
|
|
74
|
+
margin: 0;
|
|
54
75
|
overflow: auto;
|
|
55
|
-
padding:
|
|
56
|
-
position: absolute;
|
|
76
|
+
padding: 1em;
|
|
57
77
|
text-align: center;
|
|
58
|
-
width: 100%;
|
|
59
78
|
box-sizing: border-box;
|
|
60
79
|
@include custom-scrollbars-on-hover(transparent, rgba($white, 0.8));
|
|
61
80
|
|
|
81
|
+
// Dark gradient scrim.
|
|
82
|
+
background: linear-gradient(0deg, rgba($color: $black, $alpha: 0.4) 0%, transparent 100%);
|
|
83
|
+
|
|
62
84
|
img {
|
|
63
85
|
display: inline;
|
|
64
86
|
}
|
|
@@ -85,6 +107,10 @@ figure.wp-block-gallery.has-nested-images {
|
|
|
85
107
|
margin: 0;
|
|
86
108
|
padding: 10px 10px 9px;
|
|
87
109
|
position: relative;
|
|
110
|
+
text-shadow: none;
|
|
111
|
+
}
|
|
112
|
+
&::before {
|
|
113
|
+
content: none;
|
|
88
114
|
}
|
|
89
115
|
}
|
|
90
116
|
}
|
|
@@ -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/edit.js
CHANGED
|
@@ -34,7 +34,7 @@ function GroupEditControls( { tagName, onSelectTagName } ) {
|
|
|
34
34
|
'The <header> element should represent introductory content, typically a group of introductory or navigational aids.'
|
|
35
35
|
),
|
|
36
36
|
main: __(
|
|
37
|
-
'The <main> element should be used for the primary content of your document only.
|
|
37
|
+
'The <main> element should be used for the primary content of your document only.'
|
|
38
38
|
),
|
|
39
39
|
section: __(
|
|
40
40
|
"The <section> element should represent a standalone portion of the document that can't be better represented by another element."
|
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.
|
package/src/group/index.js
CHANGED
|
@@ -22,56 +22,53 @@ export { metadata, name };
|
|
|
22
22
|
export const settings = {
|
|
23
23
|
icon,
|
|
24
24
|
example: {
|
|
25
|
-
|
|
26
|
-
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
customTextColor: '#cf2e2e',
|
|
30
|
-
fontSize: 'large',
|
|
31
|
-
content: __( 'One.' ),
|
|
32
|
-
},
|
|
25
|
+
attributes: {
|
|
26
|
+
layout: {
|
|
27
|
+
type: 'constrained',
|
|
28
|
+
justifyContent: 'center',
|
|
33
29
|
},
|
|
34
|
-
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
style: {
|
|
31
|
+
spacing: {
|
|
32
|
+
padding: {
|
|
33
|
+
top: '4em',
|
|
34
|
+
right: '3em',
|
|
35
|
+
bottom: '4em',
|
|
36
|
+
left: '3em',
|
|
37
|
+
},
|
|
40
38
|
},
|
|
41
39
|
},
|
|
40
|
+
},
|
|
41
|
+
innerBlocks: [
|
|
42
42
|
{
|
|
43
|
-
name: 'core/
|
|
43
|
+
name: 'core/heading',
|
|
44
44
|
attributes: {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
content: __( 'Three.' ),
|
|
45
|
+
content: __( 'La Mancha' ),
|
|
46
|
+
textAlign: 'center',
|
|
48
47
|
},
|
|
49
48
|
},
|
|
50
49
|
{
|
|
51
50
|
name: 'core/paragraph',
|
|
52
51
|
attributes: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
align: 'center',
|
|
53
|
+
content: __(
|
|
54
|
+
'In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.'
|
|
55
|
+
),
|
|
56
56
|
},
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
name: 'core/
|
|
59
|
+
name: 'core/spacer',
|
|
60
60
|
attributes: {
|
|
61
|
-
|
|
62
|
-
fontSize: 'large',
|
|
63
|
-
content: __( 'Five.' ),
|
|
61
|
+
height: '10px',
|
|
64
62
|
},
|
|
65
63
|
},
|
|
66
64
|
{
|
|
67
|
-
name: 'core/
|
|
65
|
+
name: 'core/button',
|
|
68
66
|
attributes: {
|
|
69
|
-
|
|
70
|
-
fontSize: 'large',
|
|
71
|
-
content: __( 'Six.' ),
|
|
67
|
+
text: __( 'Read more' ),
|
|
72
68
|
},
|
|
73
69
|
},
|
|
74
70
|
],
|
|
71
|
+
viewportWidth: 600,
|
|
75
72
|
},
|
|
76
73
|
transforms,
|
|
77
74
|
edit,
|
package/src/group/variations.js
CHANGED
|
@@ -4,6 +4,59 @@
|
|
|
4
4
|
import { __, _x } from '@wordpress/i18n';
|
|
5
5
|
import { group, row, stack, grid } from '@wordpress/icons';
|
|
6
6
|
|
|
7
|
+
const example = {
|
|
8
|
+
innerBlocks: [
|
|
9
|
+
{
|
|
10
|
+
name: 'core/paragraph',
|
|
11
|
+
attributes: {
|
|
12
|
+
customTextColor: '#cf2e2e',
|
|
13
|
+
fontSize: 'large',
|
|
14
|
+
content: __( 'One.' ),
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'core/paragraph',
|
|
19
|
+
attributes: {
|
|
20
|
+
customTextColor: '#ff6900',
|
|
21
|
+
fontSize: 'large',
|
|
22
|
+
content: __( 'Two.' ),
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'core/paragraph',
|
|
27
|
+
attributes: {
|
|
28
|
+
customTextColor: '#fcb900',
|
|
29
|
+
fontSize: 'large',
|
|
30
|
+
content: __( 'Three.' ),
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'core/paragraph',
|
|
35
|
+
attributes: {
|
|
36
|
+
customTextColor: '#00d084',
|
|
37
|
+
fontSize: 'large',
|
|
38
|
+
content: __( 'Four.' ),
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'core/paragraph',
|
|
43
|
+
attributes: {
|
|
44
|
+
customTextColor: '#0693e3',
|
|
45
|
+
fontSize: 'large',
|
|
46
|
+
content: __( 'Five.' ),
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'core/paragraph',
|
|
51
|
+
attributes: {
|
|
52
|
+
customTextColor: '#9b51e0',
|
|
53
|
+
fontSize: 'large',
|
|
54
|
+
content: __( 'Six.' ),
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
};
|
|
59
|
+
|
|
7
60
|
const variations = [
|
|
8
61
|
{
|
|
9
62
|
name: 'group',
|
|
@@ -30,6 +83,7 @@ const variations = [
|
|
|
30
83
|
( ! blockAttributes.layout?.orientation ||
|
|
31
84
|
blockAttributes.layout?.orientation === 'horizontal' ),
|
|
32
85
|
icon: row,
|
|
86
|
+
example,
|
|
33
87
|
},
|
|
34
88
|
{
|
|
35
89
|
name: 'group-stack',
|
|
@@ -41,6 +95,7 @@ const variations = [
|
|
|
41
95
|
blockAttributes.layout?.type === 'flex' &&
|
|
42
96
|
blockAttributes.layout?.orientation === 'vertical',
|
|
43
97
|
icon: stack,
|
|
98
|
+
example,
|
|
44
99
|
},
|
|
45
100
|
{
|
|
46
101
|
name: 'group-grid',
|
|
@@ -51,6 +106,7 @@ const variations = [
|
|
|
51
106
|
isActive: ( blockAttributes ) =>
|
|
52
107
|
blockAttributes.layout?.type === 'grid',
|
|
53
108
|
icon: grid,
|
|
109
|
+
example,
|
|
54
110
|
},
|
|
55
111
|
];
|
|
56
112
|
|