@wordpress/block-library 9.23.0 → 9.25.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 +4 -0
- package/build/button/edit.js +29 -17
- package/build/button/edit.js.map +1 -1
- package/build/code/index.js +2 -1
- package/build/code/index.js.map +1 -1
- package/build/columns/edit.js +18 -22
- package/build/columns/edit.js.map +1 -1
- package/build/comment-author-name/edit.js +41 -12
- package/build/comment-author-name/edit.js.map +1 -1
- package/build/comment-date/edit.js +41 -12
- package/build/comment-date/edit.js.map +1 -1
- package/build/comment-edit-link/edit.js +27 -7
- package/build/comment-edit-link/edit.js.map +1 -1
- package/build/comments/edit/comments-inspector-controls.js +1 -3
- package/build/comments/edit/comments-inspector-controls.js.map +1 -1
- package/build/comments-pagination/edit.js +23 -9
- package/build/comments-pagination/edit.js.map +1 -1
- package/build/comments-title/edit.js +41 -12
- package/build/comments-title/edit.js.map +1 -1
- package/build/details/edit.js +27 -3
- package/build/details/edit.js.map +1 -1
- package/build/details/index.js +2 -1
- package/build/details/index.js.map +1 -1
- package/build/embed/edit.js +2 -4
- package/build/embed/edit.js.map +1 -1
- package/build/embed/embed-controls.js +41 -22
- package/build/embed/embed-controls.js.map +1 -1
- package/build/file/inspector.js +73 -30
- package/build/file/inspector.js.map +1 -1
- package/build/form/edit.js +67 -37
- package/build/form/edit.js.map +1 -1
- package/build/form-input/edit.js +47 -18
- package/build/form-input/edit.js.map +1 -1
- package/build/html/index.js +2 -1
- package/build/html/index.js.map +1 -1
- package/build/image/constants.js +2 -1
- package/build/image/constants.js.map +1 -1
- package/build/image/edit.js +1 -1
- package/build/image/edit.js.map +1 -1
- package/build/image/image.js +1 -4
- package/build/image/image.js.map +1 -1
- package/build/latest-posts/edit.js +154 -82
- package/build/latest-posts/edit.js.map +1 -1
- package/build/list/ordered-list-settings.js +131 -52
- package/build/list/ordered-list-settings.js.map +1 -1
- package/build/more/index.js +2 -1
- package/build/more/index.js.map +1 -1
- package/build/navigation/edit/index.js +93 -51
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/overlay-menu-preview.js +43 -27
- package/build/navigation/edit/overlay-menu-preview.js.map +1 -1
- package/build/navigation-link/index.js +3 -0
- package/build/navigation-link/index.js.map +1 -1
- package/build/navigation-link/transforms.js +2 -0
- package/build/navigation-link/transforms.js.map +1 -1
- package/build/navigation-link/update-attributes.js +1 -0
- package/build/navigation-link/update-attributes.js.map +1 -1
- package/build/navigation-submenu/index.js +3 -0
- package/build/navigation-submenu/index.js.map +1 -1
- package/build/post-comments-count/index.js +3 -1
- package/build/post-comments-count/index.js.map +1 -1
- package/build/post-comments-count/transforms.js +26 -0
- package/build/post-comments-count/transforms.js.map +1 -0
- package/build/post-comments-link/index.js +3 -1
- package/build/post-comments-link/index.js.map +1 -1
- package/build/post-comments-link/transforms.js +26 -0
- package/build/post-comments-link/transforms.js.map +1 -0
- package/build/post-excerpt/edit.js +3 -1
- package/build/post-excerpt/edit.js.map +1 -1
- package/build/post-excerpt/index.js +2 -1
- package/build/post-excerpt/index.js.map +1 -1
- package/build/post-navigation-link/edit.js +3 -1
- package/build/post-navigation-link/edit.js.map +1 -1
- package/build/post-navigation-link/index.js +2 -1
- package/build/post-navigation-link/index.js.map +1 -1
- package/build/post-navigation-link/variations.js +13 -13
- package/build/post-navigation-link/variations.js.map +1 -1
- package/build/post-template/edit.js +5 -3
- package/build/post-template/edit.js.map +1 -1
- package/build/post-terms/edit.js +3 -1
- package/build/post-terms/edit.js.map +1 -1
- package/build/post-terms/index.js +4 -2
- package/build/post-terms/index.js.map +1 -1
- package/build/post-title/edit.js +56 -18
- package/build/post-title/edit.js.map +1 -1
- package/build/preformatted/transforms.js +5 -1
- package/build/preformatted/transforms.js.map +1 -1
- package/build/query/edit/enhanced-pagination-modal.js +1 -1
- package/build/query/edit/enhanced-pagination-modal.js.map +1 -1
- package/build/query/edit/inspector-controls/enhanced-pagination-control.js +3 -6
- package/build/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
- package/build/read-more/index.js +2 -1
- package/build/read-more/index.js.map +1 -1
- package/build/rss/edit.js +120 -46
- package/build/rss/edit.js.map +1 -1
- package/build/rss/index.js +2 -1
- package/build/rss/index.js.map +1 -1
- package/build/search/edit.js +76 -86
- package/build/search/edit.js.map +1 -1
- package/build/separator/edit.js +52 -20
- package/build/separator/edit.js.map +1 -1
- package/build/shortcode/index.js +2 -1
- package/build/shortcode/index.js.map +1 -1
- package/build/social-link/variations.js +53 -48
- package/build/social-link/variations.js.map +1 -1
- package/build/social-links/edit.js +35 -45
- package/build/social-links/edit.js.map +1 -1
- package/build/table/edit.js +3 -2
- package/build/table/edit.js.map +1 -1
- package/build/table/index.js +8 -4
- package/build/table/index.js.map +1 -1
- package/build/video/tracks-editor.js +40 -12
- package/build/video/tracks-editor.js.map +1 -1
- package/build-module/button/edit.js +30 -18
- package/build-module/button/edit.js.map +1 -1
- package/build-module/code/index.js +2 -1
- package/build-module/code/index.js.map +1 -1
- package/build-module/columns/edit.js +18 -22
- package/build-module/columns/edit.js.map +1 -1
- package/build-module/comment-author-name/edit.js +42 -13
- package/build-module/comment-author-name/edit.js.map +1 -1
- package/build-module/comment-date/edit.js +42 -13
- package/build-module/comment-date/edit.js.map +1 -1
- package/build-module/comment-edit-link/edit.js +28 -8
- package/build-module/comment-edit-link/edit.js.map +1 -1
- package/build-module/comments/edit/comments-inspector-controls.js +1 -3
- package/build-module/comments/edit/comments-inspector-controls.js.map +1 -1
- package/build-module/comments-pagination/edit.js +24 -10
- package/build-module/comments-pagination/edit.js.map +1 -1
- package/build-module/comments-title/edit.js +42 -13
- package/build-module/comments-title/edit.js.map +1 -1
- package/build-module/details/edit.js +29 -5
- package/build-module/details/edit.js.map +1 -1
- package/build-module/details/index.js +2 -1
- package/build-module/details/index.js.map +1 -1
- package/build-module/embed/edit.js +2 -4
- package/build-module/embed/edit.js.map +1 -1
- package/build-module/embed/embed-controls.js +42 -23
- package/build-module/embed/embed-controls.js.map +1 -1
- package/build-module/file/inspector.js +74 -31
- package/build-module/file/inspector.js.map +1 -1
- package/build-module/form/edit.js +68 -38
- package/build-module/form/edit.js.map +1 -1
- package/build-module/form-input/edit.js +48 -19
- package/build-module/form-input/edit.js.map +1 -1
- package/build-module/html/index.js +2 -1
- package/build-module/html/index.js.map +1 -1
- package/build-module/image/constants.js +1 -0
- package/build-module/image/constants.js.map +1 -1
- package/build-module/image/edit.js +2 -2
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/image.js +2 -5
- package/build-module/image/image.js.map +1 -1
- package/build-module/latest-posts/edit.js +155 -83
- package/build-module/latest-posts/edit.js.map +1 -1
- package/build-module/list/ordered-list-settings.js +132 -53
- package/build-module/list/ordered-list-settings.js.map +1 -1
- package/build-module/more/index.js +2 -1
- package/build-module/more/index.js.map +1 -1
- package/build-module/navigation/edit/index.js +94 -52
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/overlay-menu-preview.js +44 -28
- package/build-module/navigation/edit/overlay-menu-preview.js.map +1 -1
- package/build-module/navigation-link/index.js +3 -0
- package/build-module/navigation-link/index.js.map +1 -1
- package/build-module/navigation-link/transforms.js +2 -0
- package/build-module/navigation-link/transforms.js.map +1 -1
- package/build-module/navigation-link/update-attributes.js +1 -0
- package/build-module/navigation-link/update-attributes.js.map +1 -1
- package/build-module/navigation-submenu/index.js +3 -0
- package/build-module/navigation-submenu/index.js.map +1 -1
- package/build-module/post-comments-count/index.js +3 -1
- package/build-module/post-comments-count/index.js.map +1 -1
- package/build-module/post-comments-count/transforms.js +19 -0
- package/build-module/post-comments-count/transforms.js.map +1 -0
- package/build-module/post-comments-link/index.js +3 -1
- package/build-module/post-comments-link/index.js.map +1 -1
- package/build-module/post-comments-link/transforms.js +19 -0
- package/build-module/post-comments-link/transforms.js.map +1 -0
- package/build-module/post-excerpt/edit.js +4 -2
- package/build-module/post-excerpt/edit.js.map +1 -1
- package/build-module/post-excerpt/index.js +2 -1
- package/build-module/post-excerpt/index.js.map +1 -1
- package/build-module/post-navigation-link/edit.js +4 -2
- package/build-module/post-navigation-link/edit.js.map +1 -1
- package/build-module/post-navigation-link/index.js +2 -1
- package/build-module/post-navigation-link/index.js.map +1 -1
- package/build-module/post-navigation-link/variations.js +13 -13
- package/build-module/post-navigation-link/variations.js.map +1 -1
- package/build-module/post-template/edit.js +5 -3
- package/build-module/post-template/edit.js.map +1 -1
- package/build-module/post-terms/edit.js +4 -2
- package/build-module/post-terms/edit.js.map +1 -1
- package/build-module/post-terms/index.js +4 -2
- package/build-module/post-terms/index.js.map +1 -1
- package/build-module/post-title/edit.js +57 -19
- package/build-module/post-title/edit.js.map +1 -1
- package/build-module/preformatted/transforms.js +5 -1
- package/build-module/preformatted/transforms.js.map +1 -1
- package/build-module/query/edit/enhanced-pagination-modal.js +1 -1
- package/build-module/query/edit/enhanced-pagination-modal.js.map +1 -1
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js +3 -6
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
- package/build-module/read-more/index.js +2 -1
- package/build-module/read-more/index.js.map +1 -1
- package/build-module/rss/edit.js +121 -47
- package/build-module/rss/edit.js.map +1 -1
- package/build-module/rss/index.js +2 -1
- package/build-module/rss/index.js.map +1 -1
- package/build-module/search/edit.js +78 -88
- package/build-module/search/edit.js.map +1 -1
- package/build-module/separator/edit.js +54 -22
- package/build-module/separator/edit.js.map +1 -1
- package/build-module/shortcode/index.js +2 -1
- package/build-module/shortcode/index.js.map +1 -1
- package/build-module/social-link/variations.js +53 -48
- package/build-module/social-link/variations.js.map +1 -1
- package/build-module/social-links/edit.js +37 -47
- package/build-module/social-links/edit.js.map +1 -1
- package/build-module/table/edit.js +4 -3
- package/build-module/table/edit.js.map +1 -1
- package/build-module/table/index.js +8 -4
- package/build-module/table/index.js.map +1 -1
- package/build-module/video/tracks-editor.js +41 -13
- package/build-module/video/tracks-editor.js.map +1 -1
- package/build-style/archives/editor-rtl.css +47 -11
- package/build-style/archives/editor.css +47 -11
- package/build-style/archives/style-rtl.css +47 -11
- package/build-style/archives/style.css +47 -11
- package/build-style/audio/editor-rtl.css +47 -11
- package/build-style/audio/editor.css +47 -11
- package/build-style/audio/style-rtl.css +47 -11
- package/build-style/audio/style.css +47 -11
- package/build-style/audio/theme-rtl.css +47 -11
- package/build-style/audio/theme.css +47 -11
- package/build-style/avatar/editor-rtl.css +47 -11
- package/build-style/avatar/editor.css +47 -11
- package/build-style/avatar/style-rtl.css +47 -11
- package/build-style/avatar/style.css +47 -11
- package/build-style/button/editor-rtl.css +47 -11
- package/build-style/button/editor.css +47 -11
- package/build-style/button/style-rtl.css +47 -12
- package/build-style/button/style.css +47 -12
- package/build-style/buttons/editor-rtl.css +47 -11
- package/build-style/buttons/editor.css +47 -11
- package/build-style/buttons/style-rtl.css +50 -11
- package/build-style/buttons/style.css +50 -11
- package/build-style/calendar/style-rtl.css +47 -11
- package/build-style/calendar/style.css +47 -11
- package/build-style/categories/editor-rtl.css +47 -11
- package/build-style/categories/editor.css +47 -11
- package/build-style/categories/style-rtl.css +47 -11
- package/build-style/categories/style.css +47 -11
- package/build-style/classic-rtl.css +47 -11
- package/build-style/classic.css +47 -11
- package/build-style/code/editor-rtl.css +47 -11
- package/build-style/code/editor.css +47 -11
- package/build-style/code/style-rtl.css +47 -11
- package/build-style/code/style.css +47 -11
- package/build-style/code/theme-rtl.css +47 -11
- package/build-style/code/theme.css +47 -11
- package/build-style/columns/editor-rtl.css +47 -11
- package/build-style/columns/editor.css +47 -11
- package/build-style/columns/style-rtl.css +47 -11
- package/build-style/columns/style.css +47 -11
- package/build-style/comment-author-avatar/editor-rtl.css +47 -11
- package/build-style/comment-author-avatar/editor.css +47 -11
- package/build-style/comment-author-name/style-rtl.css +47 -11
- package/build-style/comment-author-name/style.css +47 -11
- package/build-style/comment-content/style-rtl.css +47 -11
- package/build-style/comment-content/style.css +47 -11
- package/build-style/comment-date/style-rtl.css +47 -11
- package/build-style/comment-date/style.css +47 -11
- package/build-style/comment-edit-link/style-rtl.css +47 -11
- package/build-style/comment-edit-link/style.css +47 -11
- package/build-style/comment-reply-link/style-rtl.css +47 -11
- package/build-style/comment-reply-link/style.css +47 -11
- package/build-style/comment-template/style-rtl.css +47 -11
- package/build-style/comment-template/style.css +47 -11
- package/build-style/comments/editor-rtl.css +47 -11
- package/build-style/comments/editor.css +47 -11
- package/build-style/comments/style-rtl.css +47 -11
- package/build-style/comments/style.css +47 -11
- package/build-style/comments-pagination/editor-rtl.css +47 -11
- package/build-style/comments-pagination/editor.css +47 -11
- package/build-style/comments-pagination/style-rtl.css +47 -11
- package/build-style/comments-pagination/style.css +47 -11
- package/build-style/comments-pagination-numbers/editor-rtl.css +47 -11
- package/build-style/comments-pagination-numbers/editor.css +47 -11
- package/build-style/comments-title/editor-rtl.css +47 -11
- package/build-style/comments-title/editor.css +47 -11
- package/build-style/common-rtl.css +130 -9
- package/build-style/common.css +130 -9
- package/build-style/cover/editor-rtl.css +47 -11
- package/build-style/cover/editor.css +47 -11
- package/build-style/cover/style-rtl.css +47 -11
- package/build-style/cover/style.css +47 -11
- package/build-style/details/editor-rtl.css +47 -11
- package/build-style/details/editor.css +47 -11
- package/build-style/details/style-rtl.css +47 -11
- package/build-style/details/style.css +47 -11
- package/build-style/editor-elements-rtl.css +47 -11
- package/build-style/editor-elements.css +47 -11
- package/build-style/editor-rtl.css +57 -15
- package/build-style/editor.css +57 -15
- package/build-style/elements-rtl.css +47 -11
- package/build-style/elements.css +47 -11
- package/build-style/embed/editor-rtl.css +47 -11
- package/build-style/embed/editor.css +47 -11
- package/build-style/embed/style-rtl.css +47 -11
- package/build-style/embed/style.css +47 -11
- package/build-style/embed/theme-rtl.css +47 -11
- package/build-style/embed/theme.css +47 -11
- package/build-style/file/editor-rtl.css +47 -11
- package/build-style/file/editor.css +47 -11
- package/build-style/file/style-rtl.css +47 -11
- package/build-style/file/style.css +47 -11
- package/build-style/footnotes/style-rtl.css +47 -11
- package/build-style/footnotes/style.css +47 -11
- package/build-style/form-input/editor-rtl.css +47 -11
- package/build-style/form-input/editor.css +47 -11
- package/build-style/form-input/style-rtl.css +47 -11
- package/build-style/form-input/style.css +47 -11
- package/build-style/form-submission-notification/editor-rtl.css +47 -11
- package/build-style/form-submission-notification/editor.css +47 -11
- package/build-style/form-submit-button/style-rtl.css +47 -11
- package/build-style/form-submit-button/style.css +47 -11
- package/build-style/freeform/editor-rtl.css +47 -11
- package/build-style/freeform/editor.css +47 -11
- package/build-style/gallery/editor-rtl.css +47 -11
- package/build-style/gallery/editor.css +47 -11
- package/build-style/gallery/style-rtl.css +48 -11
- package/build-style/gallery/style.css +48 -11
- package/build-style/gallery/theme-rtl.css +47 -11
- package/build-style/gallery/theme.css +47 -11
- package/build-style/group/editor-rtl.css +47 -11
- package/build-style/group/editor.css +47 -11
- package/build-style/group/style-rtl.css +47 -11
- package/build-style/group/style.css +47 -11
- package/build-style/group/theme-rtl.css +47 -11
- package/build-style/group/theme.css +47 -11
- package/build-style/heading/style-rtl.css +47 -11
- package/build-style/heading/style.css +47 -11
- package/build-style/html/editor-rtl.css +48 -11
- package/build-style/html/editor.css +48 -11
- package/build-style/image/editor-rtl.css +47 -11
- package/build-style/image/editor.css +47 -11
- package/build-style/image/style-rtl.css +47 -11
- package/build-style/image/style.css +47 -11
- package/build-style/image/theme-rtl.css +47 -11
- package/build-style/image/theme.css +47 -11
- package/build-style/latest-comments/style-rtl.css +47 -11
- package/build-style/latest-comments/style.css +47 -11
- package/build-style/latest-posts/editor-rtl.css +47 -11
- package/build-style/latest-posts/editor.css +47 -11
- package/build-style/latest-posts/style-rtl.css +47 -11
- package/build-style/latest-posts/style.css +47 -11
- package/build-style/list/style-rtl.css +47 -11
- package/build-style/list/style.css +47 -11
- package/build-style/loginout/style-rtl.css +47 -11
- package/build-style/loginout/style.css +47 -11
- package/build-style/media-text/editor-rtl.css +47 -11
- package/build-style/media-text/editor.css +47 -11
- package/build-style/media-text/style-rtl.css +47 -11
- package/build-style/media-text/style.css +47 -11
- package/build-style/more/editor-rtl.css +47 -11
- package/build-style/more/editor.css +47 -11
- package/build-style/navigation/editor-rtl.css +55 -14
- package/build-style/navigation/editor.css +55 -14
- package/build-style/navigation/style-rtl.css +47 -11
- package/build-style/navigation/style.css +47 -11
- package/build-style/navigation-link/editor-rtl.css +47 -11
- package/build-style/navigation-link/editor.css +47 -11
- package/build-style/navigation-link/style-rtl.css +47 -11
- package/build-style/navigation-link/style.css +47 -11
- package/build-style/navigation-submenu/editor-rtl.css +47 -11
- package/build-style/navigation-submenu/editor.css +47 -11
- package/build-style/nextpage/editor-rtl.css +47 -11
- package/build-style/nextpage/editor.css +47 -11
- package/build-style/page-list/editor-rtl.css +47 -11
- package/build-style/page-list/editor.css +47 -11
- package/build-style/page-list/style-rtl.css +47 -11
- package/build-style/page-list/style.css +47 -11
- package/build-style/paragraph/editor-rtl.css +47 -11
- package/build-style/paragraph/editor.css +47 -11
- package/build-style/paragraph/style-rtl.css +47 -11
- package/build-style/paragraph/style.css +47 -11
- package/build-style/post-author/editor-rtl.css +47 -11
- package/build-style/post-author/editor.css +47 -11
- package/build-style/post-author/style-rtl.css +47 -11
- package/build-style/post-author/style.css +47 -11
- package/build-style/post-author-biography/style-rtl.css +47 -11
- package/build-style/post-author-biography/style.css +47 -11
- package/build-style/post-author-name/style-rtl.css +47 -11
- package/build-style/post-author-name/style.css +47 -11
- package/build-style/post-comments-count/style-rtl.css +47 -11
- package/build-style/post-comments-count/style.css +47 -11
- package/build-style/post-comments-form/editor-rtl.css +47 -11
- package/build-style/post-comments-form/editor.css +47 -11
- package/build-style/post-comments-form/style-rtl.css +47 -14
- package/build-style/post-comments-form/style.css +47 -14
- package/build-style/post-comments-link/style-rtl.css +47 -11
- package/build-style/post-comments-link/style.css +47 -11
- package/build-style/post-content/style-rtl.css +47 -11
- package/build-style/post-content/style.css +47 -11
- package/build-style/post-date/style-rtl.css +47 -11
- package/build-style/post-date/style.css +47 -11
- package/build-style/post-excerpt/editor-rtl.css +47 -11
- package/build-style/post-excerpt/editor.css +47 -11
- package/build-style/post-excerpt/style-rtl.css +47 -11
- package/build-style/post-excerpt/style.css +47 -11
- package/build-style/post-featured-image/editor-rtl.css +47 -11
- package/build-style/post-featured-image/editor.css +47 -11
- package/build-style/post-featured-image/style-rtl.css +47 -11
- package/build-style/post-featured-image/style.css +47 -11
- package/build-style/post-navigation-link/style-rtl.css +47 -11
- package/build-style/post-navigation-link/style.css +47 -11
- package/build-style/post-template/style-rtl.css +47 -11
- package/build-style/post-template/style.css +47 -11
- package/build-style/post-terms/style-rtl.css +47 -11
- package/build-style/post-terms/style.css +47 -11
- package/build-style/post-time-to-read/style-rtl.css +47 -11
- package/build-style/post-time-to-read/style.css +47 -11
- package/build-style/post-title/style-rtl.css +47 -11
- package/build-style/post-title/style.css +47 -11
- package/build-style/preformatted/style-rtl.css +47 -11
- package/build-style/preformatted/style.css +47 -11
- package/build-style/pullquote/editor-rtl.css +48 -12
- package/build-style/pullquote/editor.css +48 -12
- package/build-style/pullquote/style-rtl.css +49 -14
- package/build-style/pullquote/style.css +49 -14
- package/build-style/pullquote/theme-rtl.css +49 -13
- package/build-style/pullquote/theme.css +49 -13
- package/build-style/query/editor-rtl.css +47 -11
- package/build-style/query/editor.css +47 -11
- package/build-style/query-pagination/editor-rtl.css +47 -11
- package/build-style/query-pagination/editor.css +47 -11
- package/build-style/query-pagination/style-rtl.css +47 -11
- package/build-style/query-pagination/style.css +47 -11
- package/build-style/query-pagination-numbers/editor-rtl.css +47 -11
- package/build-style/query-pagination-numbers/editor.css +47 -11
- package/build-style/query-title/style-rtl.css +47 -11
- package/build-style/query-title/style.css +47 -11
- package/build-style/query-total/style-rtl.css +47 -11
- package/build-style/query-total/style.css +47 -11
- package/build-style/quote/style-rtl.css +47 -11
- package/build-style/quote/style.css +47 -11
- package/build-style/quote/theme-rtl.css +47 -11
- package/build-style/quote/theme.css +47 -11
- package/build-style/read-more/style-rtl.css +47 -11
- package/build-style/read-more/style.css +47 -11
- package/build-style/reset-rtl.css +47 -11
- package/build-style/reset.css +47 -11
- package/build-style/rss/editor-rtl.css +47 -11
- package/build-style/rss/editor.css +47 -11
- package/build-style/rss/style-rtl.css +47 -11
- package/build-style/rss/style.css +47 -11
- package/build-style/search/editor-rtl.css +47 -11
- package/build-style/search/editor.css +47 -11
- package/build-style/search/style-rtl.css +47 -11
- package/build-style/search/style.css +47 -11
- package/build-style/search/theme-rtl.css +47 -11
- package/build-style/search/theme.css +47 -11
- package/build-style/separator/editor-rtl.css +47 -11
- package/build-style/separator/editor.css +47 -11
- package/build-style/separator/style-rtl.css +47 -11
- package/build-style/separator/style.css +47 -11
- package/build-style/separator/theme-rtl.css +47 -11
- package/build-style/separator/theme.css +47 -11
- package/build-style/shortcode/editor-rtl.css +47 -11
- package/build-style/shortcode/editor.css +47 -11
- package/build-style/site-logo/editor-rtl.css +47 -11
- package/build-style/site-logo/editor.css +47 -11
- package/build-style/site-logo/style-rtl.css +47 -11
- package/build-style/site-logo/style.css +47 -11
- package/build-style/site-tagline/editor-rtl.css +47 -11
- package/build-style/site-tagline/editor.css +47 -11
- package/build-style/site-tagline/style-rtl.css +47 -11
- package/build-style/site-tagline/style.css +47 -11
- package/build-style/site-title/editor-rtl.css +47 -11
- package/build-style/site-title/editor.css +47 -11
- package/build-style/site-title/style-rtl.css +47 -11
- package/build-style/site-title/style.css +47 -11
- package/build-style/social-link/editor-rtl.css +47 -11
- package/build-style/social-link/editor.css +47 -11
- package/build-style/social-links/editor-rtl.css +47 -11
- package/build-style/social-links/editor.css +47 -11
- package/build-style/social-links/style-rtl.css +47 -11
- package/build-style/social-links/style.css +47 -11
- package/build-style/spacer/editor-rtl.css +47 -11
- package/build-style/spacer/editor.css +47 -11
- package/build-style/spacer/style-rtl.css +47 -11
- package/build-style/spacer/style.css +47 -11
- package/build-style/style-rtl.css +53 -18
- package/build-style/style.css +53 -18
- package/build-style/table/editor-rtl.css +47 -11
- package/build-style/table/editor.css +47 -11
- package/build-style/table/style-rtl.css +47 -11
- package/build-style/table/style.css +47 -11
- package/build-style/table/theme-rtl.css +47 -11
- package/build-style/table/theme.css +47 -11
- package/build-style/table-of-contents/style-rtl.css +47 -11
- package/build-style/table-of-contents/style.css +47 -11
- package/build-style/tag-cloud/editor-rtl.css +47 -11
- package/build-style/tag-cloud/editor.css +47 -11
- package/build-style/tag-cloud/style-rtl.css +47 -11
- package/build-style/tag-cloud/style.css +47 -11
- package/build-style/template-part/editor-rtl.css +47 -11
- package/build-style/template-part/editor.css +47 -11
- package/build-style/template-part/theme-rtl.css +47 -11
- package/build-style/template-part/theme.css +47 -11
- package/build-style/term-description/style-rtl.css +47 -11
- package/build-style/term-description/style.css +47 -11
- package/build-style/text-columns/editor-rtl.css +47 -11
- package/build-style/text-columns/editor.css +47 -11
- package/build-style/text-columns/style-rtl.css +47 -11
- package/build-style/text-columns/style.css +47 -11
- package/build-style/theme-rtl.css +49 -13
- package/build-style/theme.css +49 -13
- package/build-style/verse/style-rtl.css +47 -11
- package/build-style/verse/style.css +47 -11
- package/build-style/video/editor-rtl.css +47 -11
- package/build-style/video/editor.css +47 -11
- package/build-style/video/style-rtl.css +47 -11
- package/build-style/video/style.css +47 -11
- package/build-style/video/theme-rtl.css +47 -11
- package/build-style/video/theme.css +47 -11
- package/package.json +35 -35
- package/src/button/edit.js +44 -29
- package/src/button/style.scss +0 -1
- package/src/buttons/style.scss +5 -0
- package/src/code/block.json +2 -1
- package/src/columns/edit.js +20 -31
- package/src/comment-author-name/edit.js +54 -13
- package/src/comment-date/edit.js +50 -15
- package/src/comment-edit-link/edit.js +39 -11
- package/src/comments/edit/comments-inspector-controls.js +0 -2
- package/src/comments-pagination/edit.js +29 -9
- package/src/comments-title/edit.js +53 -15
- package/src/details/block.json +2 -1
- package/src/details/edit.js +36 -4
- package/src/embed/edit.js +3 -5
- package/src/embed/embed-controls.js +55 -33
- package/src/file/inspector.js +99 -45
- package/src/form/edit.js +91 -46
- package/src/form-input/edit.js +56 -18
- package/src/gallery/style.scss +1 -0
- package/src/html/block.json +2 -1
- package/src/html/editor.scss +1 -0
- package/src/image/constants.js +1 -0
- package/src/image/edit.js +2 -1
- package/src/image/image.js +7 -5
- package/src/latest-posts/edit.js +206 -98
- package/src/list/ordered-list-settings.js +172 -62
- package/src/more/block.json +2 -1
- package/src/navigation/edit/index.js +127 -64
- package/src/navigation/edit/overlay-menu-preview.js +43 -26
- package/src/navigation/editor.scss +8 -4
- package/src/navigation-link/block.json +3 -0
- package/src/navigation-link/index.php +4 -0
- package/src/navigation-link/transforms.js +2 -1
- package/src/navigation-link/update-attributes.js +1 -0
- package/src/navigation-submenu/block.json +3 -0
- package/src/navigation-submenu/index.php +4 -0
- package/src/post-comments-count/index.js +2 -0
- package/src/post-comments-count/transforms.js +20 -0
- package/src/post-comments-form/style.scss +0 -5
- package/src/post-comments-link/index.js +2 -0
- package/src/post-comments-link/transforms.js +20 -0
- package/src/post-excerpt/block.json +2 -1
- package/src/post-excerpt/edit.js +13 -8
- package/src/post-navigation-link/block.json +2 -1
- package/src/post-navigation-link/edit.js +13 -8
- package/src/post-navigation-link/variations.js +13 -13
- package/src/post-template/edit.js +4 -3
- package/src/post-terms/block.json +4 -2
- package/src/post-terms/edit.js +13 -8
- package/src/post-title/edit.js +76 -24
- package/src/preformatted/test/__snapshots__/transforms.native.js.snap +6 -0
- package/src/preformatted/test/transforms.native.js +6 -1
- package/src/preformatted/transforms.js +7 -1
- package/src/pullquote/editor.scss +1 -1
- package/src/pullquote/style.scss +2 -3
- package/src/pullquote/theme.scss +2 -2
- package/src/query/edit/enhanced-pagination-modal.js +1 -5
- package/src/query/edit/inspector-controls/enhanced-pagination-control.js +3 -13
- package/src/read-more/block.json +2 -1
- package/src/rss/block.json +2 -1
- package/src/rss/edit.js +141 -55
- package/src/search/edit.js +84 -99
- package/src/separator/edit.js +66 -21
- package/src/shortcode/block.json +2 -1
- package/src/site-title/index.php +1 -1
- package/src/social-link/index.php +49 -49
- package/src/social-link/variations.js +53 -48
- package/src/social-links/edit.js +39 -60
- package/src/table/block.json +8 -4
- package/src/table/edit.js +6 -2
- package/src/verse/test/__snapshots__/transforms.native.js.snap +6 -0
- package/src/verse/test/transforms.native.js +5 -1
- package/src/video/tracks-editor.js +57 -16
- package/build/search/icons.js +0 -121
- package/build/search/icons.js.map +0 -1
- package/build-module/search/icons.js +0 -114
- package/build-module/search/icons.js.map +0 -1
- package/src/search/icons.js +0 -89
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { __ } from '@wordpress/i18n';
|
|
5
|
+
|
|
1
6
|
/**
|
|
2
7
|
* Internal dependencies
|
|
3
8
|
*/
|
|
@@ -57,292 +62,292 @@ const variations = [
|
|
|
57
62
|
isDefault: true,
|
|
58
63
|
name: 'wordpress',
|
|
59
64
|
attributes: { service: 'wordpress' },
|
|
60
|
-
title: 'WordPress',
|
|
65
|
+
title: __( 'WordPress' ),
|
|
61
66
|
icon: WordPressIcon,
|
|
62
67
|
},
|
|
63
68
|
|
|
64
69
|
{
|
|
65
70
|
name: 'fivehundredpx',
|
|
66
71
|
attributes: { service: 'fivehundredpx' },
|
|
67
|
-
title: '500px',
|
|
72
|
+
title: __( '500px' ),
|
|
68
73
|
icon: FivehundredpxIcon,
|
|
69
74
|
},
|
|
70
75
|
{
|
|
71
76
|
name: 'amazon',
|
|
72
77
|
attributes: { service: 'amazon' },
|
|
73
|
-
title: 'Amazon',
|
|
78
|
+
title: __( 'Amazon' ),
|
|
74
79
|
icon: AmazonIcon,
|
|
75
80
|
},
|
|
76
81
|
{
|
|
77
82
|
name: 'bandcamp',
|
|
78
83
|
attributes: { service: 'bandcamp' },
|
|
79
|
-
title: 'Bandcamp',
|
|
84
|
+
title: __( 'Bandcamp' ),
|
|
80
85
|
icon: BandcampIcon,
|
|
81
86
|
},
|
|
82
87
|
{
|
|
83
88
|
name: 'behance',
|
|
84
89
|
attributes: { service: 'behance' },
|
|
85
|
-
title: 'Behance',
|
|
90
|
+
title: __( 'Behance' ),
|
|
86
91
|
icon: BehanceIcon,
|
|
87
92
|
},
|
|
88
93
|
{
|
|
89
94
|
name: 'bluesky',
|
|
90
95
|
attributes: { service: 'bluesky' },
|
|
91
|
-
title: 'Bluesky',
|
|
96
|
+
title: __( 'Bluesky' ),
|
|
92
97
|
icon: BlueskyIcon,
|
|
93
98
|
},
|
|
94
99
|
{
|
|
95
100
|
name: 'chain',
|
|
96
101
|
attributes: { service: 'chain' },
|
|
97
|
-
title: 'Link',
|
|
102
|
+
title: __( 'Link' ),
|
|
98
103
|
icon: ChainIcon,
|
|
99
104
|
},
|
|
100
105
|
{
|
|
101
106
|
name: 'codepen',
|
|
102
107
|
attributes: { service: 'codepen' },
|
|
103
|
-
title: 'CodePen',
|
|
108
|
+
title: __( 'CodePen' ),
|
|
104
109
|
icon: CodepenIcon,
|
|
105
110
|
},
|
|
106
111
|
{
|
|
107
112
|
name: 'deviantart',
|
|
108
113
|
attributes: { service: 'deviantart' },
|
|
109
|
-
title: 'DeviantArt',
|
|
114
|
+
title: __( 'DeviantArt' ),
|
|
110
115
|
icon: DeviantArtIcon,
|
|
111
116
|
},
|
|
112
117
|
{
|
|
113
118
|
name: 'discord',
|
|
114
119
|
attributes: { service: 'discord' },
|
|
115
|
-
title: 'Discord',
|
|
120
|
+
title: __( 'Discord' ),
|
|
116
121
|
icon: DiscordIcon,
|
|
117
122
|
},
|
|
118
123
|
{
|
|
119
124
|
name: 'dribbble',
|
|
120
125
|
attributes: { service: 'dribbble' },
|
|
121
|
-
title: 'Dribbble',
|
|
126
|
+
title: __( 'Dribbble' ),
|
|
122
127
|
icon: DribbbleIcon,
|
|
123
128
|
},
|
|
124
129
|
{
|
|
125
130
|
name: 'dropbox',
|
|
126
131
|
attributes: { service: 'dropbox' },
|
|
127
|
-
title: 'Dropbox',
|
|
132
|
+
title: __( 'Dropbox' ),
|
|
128
133
|
icon: DropboxIcon,
|
|
129
134
|
},
|
|
130
135
|
{
|
|
131
136
|
name: 'etsy',
|
|
132
137
|
attributes: { service: 'etsy' },
|
|
133
|
-
title: 'Etsy',
|
|
138
|
+
title: __( 'Etsy' ),
|
|
134
139
|
icon: EtsyIcon,
|
|
135
140
|
},
|
|
136
141
|
{
|
|
137
142
|
name: 'facebook',
|
|
138
143
|
attributes: { service: 'facebook' },
|
|
139
|
-
title: 'Facebook',
|
|
144
|
+
title: __( 'Facebook' ),
|
|
140
145
|
icon: FacebookIcon,
|
|
141
146
|
},
|
|
142
147
|
{
|
|
143
148
|
name: 'feed',
|
|
144
149
|
attributes: { service: 'feed' },
|
|
145
|
-
title: 'RSS Feed',
|
|
150
|
+
title: __( 'RSS Feed' ),
|
|
146
151
|
icon: FeedIcon,
|
|
147
152
|
},
|
|
148
153
|
{
|
|
149
154
|
name: 'flickr',
|
|
150
155
|
attributes: { service: 'flickr' },
|
|
151
|
-
title: 'Flickr',
|
|
156
|
+
title: __( 'Flickr' ),
|
|
152
157
|
icon: FlickrIcon,
|
|
153
158
|
},
|
|
154
159
|
{
|
|
155
160
|
name: 'foursquare',
|
|
156
161
|
attributes: { service: 'foursquare' },
|
|
157
|
-
title: 'Foursquare',
|
|
162
|
+
title: __( 'Foursquare' ),
|
|
158
163
|
icon: FoursquareIcon,
|
|
159
164
|
},
|
|
160
165
|
{
|
|
161
166
|
name: 'goodreads',
|
|
162
167
|
attributes: { service: 'goodreads' },
|
|
163
|
-
title: 'Goodreads',
|
|
168
|
+
title: __( 'Goodreads' ),
|
|
164
169
|
icon: GoodreadsIcon,
|
|
165
170
|
},
|
|
166
171
|
{
|
|
167
172
|
name: 'google',
|
|
168
173
|
attributes: { service: 'google' },
|
|
169
|
-
title: 'Google',
|
|
174
|
+
title: __( 'Google' ),
|
|
170
175
|
icon: GoogleIcon,
|
|
171
176
|
},
|
|
172
177
|
{
|
|
173
178
|
name: 'github',
|
|
174
179
|
attributes: { service: 'github' },
|
|
175
|
-
title: 'GitHub',
|
|
180
|
+
title: __( 'GitHub' ),
|
|
176
181
|
icon: GitHubIcon,
|
|
177
182
|
},
|
|
178
183
|
{
|
|
179
184
|
name: 'gravatar',
|
|
180
185
|
attributes: { service: 'gravatar' },
|
|
181
|
-
title: 'Gravatar',
|
|
186
|
+
title: __( 'Gravatar' ),
|
|
182
187
|
icon: GravatarIcon,
|
|
183
188
|
},
|
|
184
189
|
{
|
|
185
190
|
name: 'instagram',
|
|
186
191
|
attributes: { service: 'instagram' },
|
|
187
|
-
title: 'Instagram',
|
|
192
|
+
title: __( 'Instagram' ),
|
|
188
193
|
icon: InstagramIcon,
|
|
189
194
|
},
|
|
190
195
|
{
|
|
191
196
|
name: 'lastfm',
|
|
192
197
|
attributes: { service: 'lastfm' },
|
|
193
|
-
title: 'Last.fm',
|
|
198
|
+
title: __( 'Last.fm' ),
|
|
194
199
|
icon: LastfmIcon,
|
|
195
200
|
},
|
|
196
201
|
{
|
|
197
202
|
name: 'linkedin',
|
|
198
203
|
attributes: { service: 'linkedin' },
|
|
199
|
-
title: 'LinkedIn',
|
|
204
|
+
title: __( 'LinkedIn' ),
|
|
200
205
|
icon: LinkedInIcon,
|
|
201
206
|
},
|
|
202
207
|
{
|
|
203
208
|
name: 'mail',
|
|
204
209
|
attributes: { service: 'mail' },
|
|
205
|
-
title: 'Mail',
|
|
210
|
+
title: __( 'Mail' ),
|
|
206
211
|
keywords: [ 'email', 'e-mail' ],
|
|
207
212
|
icon: MailIcon,
|
|
208
213
|
},
|
|
209
214
|
{
|
|
210
215
|
name: 'mastodon',
|
|
211
216
|
attributes: { service: 'mastodon' },
|
|
212
|
-
title: 'Mastodon',
|
|
217
|
+
title: __( 'Mastodon' ),
|
|
213
218
|
icon: MastodonIcon,
|
|
214
219
|
},
|
|
215
220
|
{
|
|
216
221
|
name: 'meetup',
|
|
217
222
|
attributes: { service: 'meetup' },
|
|
218
|
-
title: 'Meetup',
|
|
223
|
+
title: __( 'Meetup' ),
|
|
219
224
|
icon: MeetupIcon,
|
|
220
225
|
},
|
|
221
226
|
{
|
|
222
227
|
name: 'medium',
|
|
223
228
|
attributes: { service: 'medium' },
|
|
224
|
-
title: 'Medium',
|
|
229
|
+
title: __( 'Medium' ),
|
|
225
230
|
icon: MediumIcon,
|
|
226
231
|
},
|
|
227
232
|
{
|
|
228
233
|
name: 'patreon',
|
|
229
234
|
attributes: { service: 'patreon' },
|
|
230
|
-
title: 'Patreon',
|
|
235
|
+
title: __( 'Patreon' ),
|
|
231
236
|
icon: PatreonIcon,
|
|
232
237
|
},
|
|
233
238
|
{
|
|
234
239
|
name: 'pinterest',
|
|
235
240
|
attributes: { service: 'pinterest' },
|
|
236
|
-
title: 'Pinterest',
|
|
241
|
+
title: __( 'Pinterest' ),
|
|
237
242
|
icon: PinterestIcon,
|
|
238
243
|
},
|
|
239
244
|
{
|
|
240
245
|
name: 'pocket',
|
|
241
246
|
attributes: { service: 'pocket' },
|
|
242
|
-
title: 'Pocket',
|
|
247
|
+
title: __( 'Pocket' ),
|
|
243
248
|
icon: PocketIcon,
|
|
244
249
|
},
|
|
245
250
|
{
|
|
246
251
|
name: 'reddit',
|
|
247
252
|
attributes: { service: 'reddit' },
|
|
248
|
-
title: 'Reddit',
|
|
253
|
+
title: __( 'Reddit' ),
|
|
249
254
|
icon: RedditIcon,
|
|
250
255
|
},
|
|
251
256
|
{
|
|
252
257
|
name: 'skype',
|
|
253
258
|
attributes: { service: 'skype' },
|
|
254
|
-
title: 'Skype',
|
|
259
|
+
title: __( 'Skype' ),
|
|
255
260
|
icon: SkypeIcon,
|
|
256
261
|
},
|
|
257
262
|
{
|
|
258
263
|
name: 'snapchat',
|
|
259
264
|
attributes: { service: 'snapchat' },
|
|
260
|
-
title: 'Snapchat',
|
|
265
|
+
title: __( 'Snapchat' ),
|
|
261
266
|
icon: SnapchatIcon,
|
|
262
267
|
},
|
|
263
268
|
{
|
|
264
269
|
name: 'soundcloud',
|
|
265
270
|
attributes: { service: 'soundcloud' },
|
|
266
|
-
title: 'SoundCloud',
|
|
271
|
+
title: __( 'SoundCloud' ),
|
|
267
272
|
icon: SoundCloudIcon,
|
|
268
273
|
},
|
|
269
274
|
{
|
|
270
275
|
name: 'spotify',
|
|
271
276
|
attributes: { service: 'spotify' },
|
|
272
|
-
title: 'Spotify',
|
|
277
|
+
title: __( 'Spotify' ),
|
|
273
278
|
icon: SpotifyIcon,
|
|
274
279
|
},
|
|
275
280
|
{
|
|
276
281
|
name: 'telegram',
|
|
277
282
|
attributes: { service: 'telegram' },
|
|
278
|
-
title: 'Telegram',
|
|
283
|
+
title: __( 'Telegram' ),
|
|
279
284
|
icon: TelegramIcon,
|
|
280
285
|
},
|
|
281
286
|
{
|
|
282
287
|
name: 'threads',
|
|
283
288
|
attributes: { service: 'threads' },
|
|
284
|
-
title: 'Threads',
|
|
289
|
+
title: __( 'Threads' ),
|
|
285
290
|
icon: ThreadsIcon,
|
|
286
291
|
},
|
|
287
292
|
{
|
|
288
293
|
name: 'tiktok',
|
|
289
294
|
attributes: { service: 'tiktok' },
|
|
290
|
-
title: 'TikTok',
|
|
295
|
+
title: __( 'TikTok' ),
|
|
291
296
|
icon: TiktokIcon,
|
|
292
297
|
},
|
|
293
298
|
{
|
|
294
299
|
name: 'tumblr',
|
|
295
300
|
attributes: { service: 'tumblr' },
|
|
296
|
-
title: 'Tumblr',
|
|
301
|
+
title: __( 'Tumblr' ),
|
|
297
302
|
icon: TumblrIcon,
|
|
298
303
|
},
|
|
299
304
|
{
|
|
300
305
|
name: 'twitch',
|
|
301
306
|
attributes: { service: 'twitch' },
|
|
302
|
-
title: 'Twitch',
|
|
307
|
+
title: __( 'Twitch' ),
|
|
303
308
|
icon: TwitchIcon,
|
|
304
309
|
},
|
|
305
310
|
{
|
|
306
311
|
name: 'twitter',
|
|
307
312
|
attributes: { service: 'twitter' },
|
|
308
|
-
title: 'Twitter',
|
|
313
|
+
title: __( 'Twitter' ),
|
|
309
314
|
icon: TwitterIcon,
|
|
310
315
|
},
|
|
311
316
|
{
|
|
312
317
|
name: 'vimeo',
|
|
313
318
|
attributes: { service: 'vimeo' },
|
|
314
|
-
title: 'Vimeo',
|
|
319
|
+
title: __( 'Vimeo' ),
|
|
315
320
|
icon: VimeoIcon,
|
|
316
321
|
},
|
|
317
322
|
{
|
|
318
323
|
name: 'vk',
|
|
319
324
|
attributes: { service: 'vk' },
|
|
320
|
-
title: 'VK',
|
|
325
|
+
title: __( 'VK' ),
|
|
321
326
|
icon: VkIcon,
|
|
322
327
|
},
|
|
323
328
|
{
|
|
324
329
|
name: 'whatsapp',
|
|
325
330
|
attributes: { service: 'whatsapp' },
|
|
326
|
-
title: 'WhatsApp',
|
|
331
|
+
title: __( 'WhatsApp' ),
|
|
327
332
|
icon: WhatsAppIcon,
|
|
328
333
|
},
|
|
329
334
|
{
|
|
330
335
|
name: 'x',
|
|
331
336
|
attributes: { service: 'x' },
|
|
332
337
|
keywords: [ 'twitter' ],
|
|
333
|
-
title: 'X',
|
|
338
|
+
title: __( 'X' ),
|
|
334
339
|
icon: XIcon,
|
|
335
340
|
},
|
|
336
341
|
{
|
|
337
342
|
name: 'yelp',
|
|
338
343
|
attributes: { service: 'yelp' },
|
|
339
|
-
title: 'Yelp',
|
|
344
|
+
title: __( 'Yelp' ),
|
|
340
345
|
icon: YelpIcon,
|
|
341
346
|
},
|
|
342
347
|
{
|
|
343
348
|
name: 'youtube',
|
|
344
349
|
attributes: { service: 'youtube' },
|
|
345
|
-
title: 'YouTube',
|
|
350
|
+
title: __( 'YouTube' ),
|
|
346
351
|
icon: YouTubeIcon,
|
|
347
352
|
},
|
|
348
353
|
];
|
package/src/social-links/edit.js
CHANGED
|
@@ -8,7 +8,6 @@ import clsx from 'clsx';
|
|
|
8
8
|
*/
|
|
9
9
|
import { useEffect } from '@wordpress/element';
|
|
10
10
|
import {
|
|
11
|
-
BlockControls,
|
|
12
11
|
useInnerBlocksProps,
|
|
13
12
|
useBlockProps,
|
|
14
13
|
InspectorControls,
|
|
@@ -20,15 +19,12 @@ import {
|
|
|
20
19
|
store as blockEditorStore,
|
|
21
20
|
} from '@wordpress/block-editor';
|
|
22
21
|
import {
|
|
23
|
-
MenuGroup,
|
|
24
|
-
MenuItem,
|
|
25
22
|
ToggleControl,
|
|
26
|
-
|
|
23
|
+
SelectControl,
|
|
27
24
|
__experimentalToolsPanel as ToolsPanel,
|
|
28
25
|
__experimentalToolsPanelItem as ToolsPanelItem,
|
|
29
26
|
} from '@wordpress/components';
|
|
30
27
|
import { __ } from '@wordpress/i18n';
|
|
31
|
-
import { check } from '@wordpress/icons';
|
|
32
28
|
import { useSelect } from '@wordpress/data';
|
|
33
29
|
|
|
34
30
|
/**
|
|
@@ -37,10 +33,10 @@ import { useSelect } from '@wordpress/data';
|
|
|
37
33
|
import { useToolsPanelDropdownMenuProps } from '../utils/hooks';
|
|
38
34
|
|
|
39
35
|
const sizeOptions = [
|
|
40
|
-
{
|
|
41
|
-
{
|
|
42
|
-
{
|
|
43
|
-
{
|
|
36
|
+
{ label: __( 'Small' ), value: 'has-small-icon-size' },
|
|
37
|
+
{ label: __( 'Normal' ), value: 'has-normal-icon-size' },
|
|
38
|
+
{ label: __( 'Large' ), value: 'has-large-icon-size' },
|
|
39
|
+
{ label: __( 'Huge' ), value: 'has-huge-icon-size' },
|
|
44
40
|
];
|
|
45
41
|
|
|
46
42
|
export function SocialLinksEdit( props ) {
|
|
@@ -123,10 +119,6 @@ export function SocialLinksEdit( props ) {
|
|
|
123
119
|
: undefined,
|
|
124
120
|
} );
|
|
125
121
|
|
|
126
|
-
const POPOVER_PROPS = {
|
|
127
|
-
position: 'bottom right',
|
|
128
|
-
};
|
|
129
|
-
|
|
130
122
|
const colorSettings = [
|
|
131
123
|
{
|
|
132
124
|
// Use custom attribute as fallback to prevent loss of named color selection when
|
|
@@ -167,43 +159,6 @@ export function SocialLinksEdit( props ) {
|
|
|
167
159
|
|
|
168
160
|
return (
|
|
169
161
|
<>
|
|
170
|
-
<BlockControls group="other">
|
|
171
|
-
<ToolbarDropdownMenu
|
|
172
|
-
label={ __( 'Size' ) }
|
|
173
|
-
text={ __( 'Size' ) }
|
|
174
|
-
icon={ null }
|
|
175
|
-
popoverProps={ POPOVER_PROPS }
|
|
176
|
-
>
|
|
177
|
-
{ ( { onClose } ) => (
|
|
178
|
-
<MenuGroup>
|
|
179
|
-
{ sizeOptions.map( ( entry ) => {
|
|
180
|
-
return (
|
|
181
|
-
<MenuItem
|
|
182
|
-
icon={
|
|
183
|
-
( size === entry.value ||
|
|
184
|
-
( ! size &&
|
|
185
|
-
entry.value ===
|
|
186
|
-
'has-normal-icon-size' ) ) &&
|
|
187
|
-
check
|
|
188
|
-
}
|
|
189
|
-
isSelected={ size === entry.value }
|
|
190
|
-
key={ entry.value }
|
|
191
|
-
onClick={ () => {
|
|
192
|
-
setAttributes( {
|
|
193
|
-
size: entry.value,
|
|
194
|
-
} );
|
|
195
|
-
} }
|
|
196
|
-
onClose={ onClose }
|
|
197
|
-
role="menuitemradio"
|
|
198
|
-
>
|
|
199
|
-
{ entry.name }
|
|
200
|
-
</MenuItem>
|
|
201
|
-
);
|
|
202
|
-
} ) }
|
|
203
|
-
</MenuGroup>
|
|
204
|
-
) }
|
|
205
|
-
</ToolbarDropdownMenu>
|
|
206
|
-
</BlockControls>
|
|
207
162
|
<InspectorControls>
|
|
208
163
|
<ToolsPanel
|
|
209
164
|
label={ __( 'Settings' ) }
|
|
@@ -211,27 +166,32 @@ export function SocialLinksEdit( props ) {
|
|
|
211
166
|
setAttributes( {
|
|
212
167
|
openInNewTab: false,
|
|
213
168
|
showLabels: false,
|
|
169
|
+
size: 'has-normal-icon-size',
|
|
214
170
|
} );
|
|
215
171
|
} }
|
|
216
172
|
dropdownMenuProps={ dropdownMenuProps }
|
|
217
173
|
>
|
|
218
174
|
<ToolsPanelItem
|
|
219
175
|
isShownByDefault
|
|
220
|
-
|
|
221
|
-
|
|
176
|
+
hasValue={ () =>
|
|
177
|
+
!! size && size !== 'has-normal-icon-size'
|
|
178
|
+
}
|
|
179
|
+
label={ __( 'Icon size' ) }
|
|
222
180
|
onDeselect={ () =>
|
|
223
|
-
setAttributes( {
|
|
181
|
+
setAttributes( { size: 'has-normal-icon-size' } )
|
|
224
182
|
}
|
|
225
183
|
>
|
|
226
|
-
<
|
|
184
|
+
<SelectControl
|
|
185
|
+
__next40pxDefaultSize
|
|
227
186
|
__nextHasNoMarginBottom
|
|
228
|
-
label={ __( '
|
|
229
|
-
|
|
230
|
-
onChange={ () =>
|
|
187
|
+
label={ __( 'Icon Size' ) }
|
|
188
|
+
onChange={ ( newSize ) => {
|
|
231
189
|
setAttributes( {
|
|
232
|
-
|
|
233
|
-
} )
|
|
234
|
-
}
|
|
190
|
+
size: newSize,
|
|
191
|
+
} );
|
|
192
|
+
} }
|
|
193
|
+
value={ size ?? 'has-normal-icon-size' }
|
|
194
|
+
options={ sizeOptions }
|
|
235
195
|
/>
|
|
236
196
|
</ToolsPanelItem>
|
|
237
197
|
<ToolsPanelItem
|
|
@@ -251,6 +211,25 @@ export function SocialLinksEdit( props ) {
|
|
|
251
211
|
}
|
|
252
212
|
/>
|
|
253
213
|
</ToolsPanelItem>
|
|
214
|
+
<ToolsPanelItem
|
|
215
|
+
isShownByDefault
|
|
216
|
+
label={ __( 'Open links in new tab' ) }
|
|
217
|
+
hasValue={ () => !! openInNewTab }
|
|
218
|
+
onDeselect={ () =>
|
|
219
|
+
setAttributes( { openInNewTab: false } )
|
|
220
|
+
}
|
|
221
|
+
>
|
|
222
|
+
<ToggleControl
|
|
223
|
+
__nextHasNoMarginBottom
|
|
224
|
+
label={ __( 'Open links in new tab' ) }
|
|
225
|
+
checked={ openInNewTab }
|
|
226
|
+
onChange={ () =>
|
|
227
|
+
setAttributes( {
|
|
228
|
+
openInNewTab: ! openInNewTab,
|
|
229
|
+
} )
|
|
230
|
+
}
|
|
231
|
+
/>
|
|
232
|
+
</ToolsPanelItem>
|
|
254
233
|
</ToolsPanel>
|
|
255
234
|
</InspectorControls>
|
|
256
235
|
{ colorGradientSettings.hasColorsOrGradients && (
|
package/src/table/block.json
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"caption": {
|
|
15
15
|
"type": "rich-text",
|
|
16
16
|
"source": "rich-text",
|
|
17
|
-
"selector": "figcaption"
|
|
17
|
+
"selector": "figcaption",
|
|
18
|
+
"role": "content"
|
|
18
19
|
},
|
|
19
20
|
"head": {
|
|
20
21
|
"type": "array",
|
|
@@ -30,7 +31,8 @@
|
|
|
30
31
|
"query": {
|
|
31
32
|
"content": {
|
|
32
33
|
"type": "rich-text",
|
|
33
|
-
"source": "rich-text"
|
|
34
|
+
"source": "rich-text",
|
|
35
|
+
"role": "content"
|
|
34
36
|
},
|
|
35
37
|
"tag": {
|
|
36
38
|
"type": "string",
|
|
@@ -75,7 +77,8 @@
|
|
|
75
77
|
"query": {
|
|
76
78
|
"content": {
|
|
77
79
|
"type": "rich-text",
|
|
78
|
-
"source": "rich-text"
|
|
80
|
+
"source": "rich-text",
|
|
81
|
+
"role": "content"
|
|
79
82
|
},
|
|
80
83
|
"tag": {
|
|
81
84
|
"type": "string",
|
|
@@ -120,7 +123,8 @@
|
|
|
120
123
|
"query": {
|
|
121
124
|
"content": {
|
|
122
125
|
"type": "rich-text",
|
|
123
|
-
"source": "rich-text"
|
|
126
|
+
"source": "rich-text",
|
|
127
|
+
"role": "content"
|
|
124
128
|
},
|
|
125
129
|
"tag": {
|
|
126
130
|
"type": "string",
|
package/src/table/edit.js
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
useBlockProps,
|
|
17
17
|
__experimentalUseColorProps as useColorProps,
|
|
18
18
|
__experimentalUseBorderProps as useBorderProps,
|
|
19
|
+
useBlockEditingMode,
|
|
19
20
|
} from '@wordpress/block-editor';
|
|
20
21
|
import { __ } from '@wordpress/i18n';
|
|
21
22
|
import {
|
|
@@ -106,6 +107,7 @@ function TableEdit( {
|
|
|
106
107
|
|
|
107
108
|
const colorProps = useColorProps( attributes );
|
|
108
109
|
const borderProps = useBorderProps( attributes );
|
|
110
|
+
const blockEditingMode = useBlockEditingMode();
|
|
109
111
|
|
|
110
112
|
const tableRef = useRef();
|
|
111
113
|
const [ hasTableCreated, setHasTableCreated ] = useState( false );
|
|
@@ -455,7 +457,7 @@ function TableEdit( {
|
|
|
455
457
|
|
|
456
458
|
return (
|
|
457
459
|
<figure { ...useBlockProps( { ref: tableRef } ) }>
|
|
458
|
-
{ ! isEmpty && (
|
|
460
|
+
{ ! isEmpty && blockEditingMode === 'default' && (
|
|
459
461
|
<>
|
|
460
462
|
<BlockControls group="block">
|
|
461
463
|
<AlignmentControl
|
|
@@ -605,7 +607,9 @@ function TableEdit( {
|
|
|
605
607
|
isSelected={ isSingleSelected }
|
|
606
608
|
insertBlocksAfter={ insertBlocksAfter }
|
|
607
609
|
label={ __( 'Table caption text' ) }
|
|
608
|
-
showToolbarButton={
|
|
610
|
+
showToolbarButton={
|
|
611
|
+
isSingleSelected && blockEditingMode === 'default'
|
|
612
|
+
}
|
|
609
613
|
/>
|
|
610
614
|
) }
|
|
611
615
|
</figure>
|
|
@@ -23,3 +23,9 @@ exports[`Verse block transforms to Paragraph block 1`] = `
|
|
|
23
23
|
<p>Come<br />Home.</p>
|
|
24
24
|
<!-- /wp:paragraph -->"
|
|
25
25
|
`;
|
|
26
|
+
|
|
27
|
+
exports[`Verse block transforms to Preformatted block 1`] = `
|
|
28
|
+
"<!-- wp:preformatted -->
|
|
29
|
+
<pre class="wp-block-preformatted">Come<br />Home.</pre>
|
|
30
|
+
<!-- /wp:preformatted -->"
|
|
31
|
+
`;
|
|
@@ -16,7 +16,11 @@ const initialHtml = `
|
|
|
16
16
|
<!-- /wp:verse -->`;
|
|
17
17
|
|
|
18
18
|
const transformsWithInnerBlocks = [ 'Columns', 'Group' ];
|
|
19
|
-
const blockTransforms = [
|
|
19
|
+
const blockTransforms = [
|
|
20
|
+
'Paragraph',
|
|
21
|
+
'Preformatted',
|
|
22
|
+
...transformsWithInnerBlocks,
|
|
23
|
+
];
|
|
20
24
|
|
|
21
25
|
setupCoreBlocks();
|
|
22
26
|
|