@wordpress/block-library 6.0.1-next.253d9b6e21.0 → 6.0.3
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 +1 -1
- package/README.md +1 -1
- package/build/audio/edit.js +2 -2
- package/build/audio/edit.js.map +1 -1
- package/build/audio/edit.native.js +2 -2
- package/build/audio/edit.native.js.map +1 -1
- package/build/block/edit.js +1 -1
- package/build/block/edit.js.map +1 -1
- package/build/button/deprecated.js +155 -10
- package/build/button/deprecated.js.map +1 -1
- package/build/button/edit.js +97 -87
- package/build/button/edit.js.map +1 -1
- package/build/button/edit.native.js +257 -330
- package/build/button/edit.native.js.map +1 -1
- package/build/button/index.js +8 -2
- package/build/button/index.js.map +1 -1
- package/build/buttons/deprecated.js +80 -2
- package/build/buttons/deprecated.js.map +1 -1
- package/build/buttons/edit.js +8 -40
- package/build/buttons/edit.js.map +1 -1
- package/build/buttons/index.js +17 -14
- package/build/buttons/index.js.map +1 -1
- package/build/buttons/save.js +4 -20
- package/build/buttons/save.js.map +1 -1
- package/build/buttons/transforms.js +16 -10
- package/build/buttons/transforms.js.map +1 -1
- package/build/categories/edit.js +16 -6
- package/build/categories/edit.js.map +1 -1
- package/build/categories/index.js +4 -0
- package/build/categories/index.js.map +1 -1
- package/build/code/edit.native.js +8 -5
- package/build/code/edit.native.js.map +1 -1
- package/build/code/index.js +24 -1
- package/build/code/index.js.map +1 -1
- package/build/column/edit.js +4 -2
- package/build/column/edit.js.map +1 -1
- package/build/column/index.js +8 -1
- package/build/column/index.js.map +1 -1
- package/build/column/save.js +16 -4
- package/build/column/save.js.map +1 -1
- package/build/columns/edit.js +1 -1
- package/build/columns/edit.js.map +1 -1
- package/build/columns/edit.native.js +5 -2
- package/build/columns/edit.native.js.map +1 -1
- package/build/columns/index.js +11 -1
- package/build/columns/index.js.map +1 -1
- package/build/columns/save.js +7 -2
- package/build/columns/save.js.map +1 -1
- package/build/comment-author-avatar/edit.js +83 -0
- package/build/comment-author-avatar/edit.js.map +1 -0
- package/build/{post-comment-date → comment-author-avatar}/index.js +25 -9
- package/build/comment-author-avatar/index.js.map +1 -0
- package/build/comment-author-name/deprecated.js +69 -0
- package/build/comment-author-name/deprecated.js.map +1 -0
- package/build/comment-author-name/edit.js +112 -0
- package/build/comment-author-name/edit.js.map +1 -0
- package/build/comment-author-name/index.js +77 -0
- package/build/comment-author-name/index.js.map +1 -0
- package/build/comment-content/edit.js +74 -0
- package/build/comment-content/edit.js.map +1 -0
- package/build/comment-content/index.js +68 -0
- package/build/comment-content/index.js.map +1 -0
- package/build/comment-date/deprecated.js +68 -0
- package/build/comment-date/deprecated.js.map +1 -0
- package/build/comment-date/edit.js +95 -0
- package/build/comment-date/edit.js.map +1 -0
- package/build/comment-date/index.js +72 -0
- package/build/comment-date/index.js.map +1 -0
- package/build/comment-edit-link/edit.js +61 -0
- package/build/comment-edit-link/edit.js.map +1 -0
- package/build/comment-edit-link/index.js +67 -0
- package/build/comment-edit-link/index.js.map +1 -0
- package/build/comment-reply-link/edit.js +63 -0
- package/build/comment-reply-link/edit.js.map +1 -0
- package/build/comment-reply-link/index.js +63 -0
- package/build/comment-reply-link/index.js.map +1 -0
- package/build/comment-template/edit.js +82 -0
- package/build/comment-template/edit.js.map +1 -0
- package/build/{post-comment-content → comment-template}/index.js +13 -8
- package/build/comment-template/index.js.map +1 -0
- package/build/comment-template/save.js +18 -0
- package/build/comment-template/save.js.map +1 -0
- package/build/comments-query-loop/edit.js +64 -0
- package/build/comments-query-loop/edit.js.map +1 -0
- package/build/comments-query-loop/index.js +67 -0
- package/build/comments-query-loop/index.js.map +1 -0
- package/build/comments-query-loop/save.js +22 -0
- package/build/comments-query-loop/save.js.map +1 -0
- package/build/comments-query-loop/toolbar.js +54 -0
- package/build/comments-query-loop/toolbar.js.map +1 -0
- package/build/cover/deprecated.js +177 -44
- package/build/cover/deprecated.js.map +1 -1
- package/build/cover/edit.js +118 -54
- package/build/cover/edit.js.map +1 -1
- package/build/cover/edit.native.js +6 -2
- package/build/cover/edit.native.js.map +1 -1
- package/build/cover/index.js +23 -2
- package/build/cover/index.js.map +1 -1
- package/build/cover/save.js +19 -15
- package/build/cover/save.js.map +1 -1
- package/build/cover/shared.js +4 -2
- package/build/cover/shared.js.map +1 -1
- package/build/cover/transforms.js +4 -0
- package/build/cover/transforms.js.map +1 -1
- package/build/embed/edit.js +1 -5
- package/build/embed/edit.js.map +1 -1
- package/build/embed/edit.native.js +88 -29
- package/build/embed/edit.native.js.map +1 -1
- package/build/embed/embed-bottom-sheet.native.js +21 -21
- package/build/embed/embed-bottom-sheet.native.js.map +1 -1
- package/build/embed/embed-controls.js +4 -1
- package/build/embed/embed-controls.js.map +1 -1
- package/build/embed/embed-no-preview.native.js +24 -10
- package/build/embed/embed-no-preview.native.js.map +1 -1
- package/build/embed/embed-placeholder.native.js +51 -7
- package/build/embed/embed-placeholder.native.js.map +1 -1
- package/build/embed/embed-preview.native.js +28 -10
- package/build/embed/embed-preview.native.js.map +1 -1
- package/build/embed/icons.js +16 -1
- package/build/embed/icons.js.map +1 -1
- package/build/embed/transforms.native.js +3 -1
- package/build/embed/transforms.native.js.map +1 -1
- package/build/embed/variations.js +20 -10
- package/build/embed/variations.js.map +1 -1
- package/build/embed/wp-embed-preview.js +44 -56
- package/build/embed/wp-embed-preview.js.map +1 -1
- package/build/embed/wp-embed-preview.native.js +95 -0
- package/build/embed/wp-embed-preview.native.js.map +1 -0
- package/build/file/deprecated.js +108 -0
- package/build/file/deprecated.js.map +1 -0
- package/build/file/edit.js +8 -1
- package/build/file/edit.js.map +1 -1
- package/build/file/index.js +9 -0
- package/build/file/index.js.map +1 -1
- package/build/file/inspector.js +1 -1
- package/build/file/inspector.js.map +1 -1
- package/build/file/save.js +4 -1
- package/build/file/save.js.map +1 -1
- package/build/file/transforms.js +3 -1
- package/build/file/transforms.js.map +1 -1
- package/build/freeform/edit.js +16 -4
- package/build/freeform/edit.js.map +1 -1
- package/build/gallery/constants.js +2 -2
- package/build/gallery/constants.js.map +1 -1
- package/build/gallery/deprecated.js +17 -8
- package/build/gallery/deprecated.js.map +1 -1
- package/build/gallery/edit-wrapper.js +63 -0
- package/build/gallery/edit-wrapper.js.map +1 -0
- package/build/gallery/edit.js +232 -231
- package/build/gallery/edit.js.map +1 -1
- package/build/gallery/gallery.js +67 -49
- package/build/gallery/gallery.js.map +1 -1
- package/build/gallery/gallery.native.js +42 -79
- package/build/gallery/gallery.native.js.map +1 -1
- package/build/gallery/index.js +36 -7
- package/build/gallery/index.js.map +1 -1
- package/build/gallery/save.js +30 -42
- package/build/gallery/save.js.map +1 -1
- package/build/gallery/shared.js +2 -2
- package/build/gallery/shared.js.map +1 -1
- package/build/gallery/transforms.js +211 -12
- package/build/gallery/transforms.js.map +1 -1
- package/build/gallery/use-get-media.js +52 -0
- package/build/gallery/use-get-media.js.map +1 -0
- package/build/gallery/use-get-new-images.js +58 -0
- package/build/gallery/use-get-new-images.js.map +1 -0
- package/build/gallery/use-image-sizes.js +73 -0
- package/build/gallery/use-image-sizes.js.map +1 -0
- package/build/gallery/use-mobile-warning.js +43 -0
- package/build/gallery/use-mobile-warning.js.map +1 -0
- package/build/gallery/use-short-code-transform.js +63 -0
- package/build/gallery/use-short-code-transform.js.map +1 -0
- package/build/gallery/utils.js +51 -0
- package/build/gallery/utils.js.map +1 -0
- package/build/gallery/v1/constants.js +13 -0
- package/build/gallery/v1/constants.js.map +1 -0
- package/build/gallery/v1/edit.js +459 -0
- package/build/gallery/v1/edit.js.map +1 -0
- package/build/gallery/{gallery-button.native.js → v1/gallery-button.native.js} +0 -0
- package/build/gallery/v1/gallery-button.native.js.map +1 -0
- package/build/gallery/{gallery-image.js → v1/gallery-image.js} +0 -0
- package/build/gallery/v1/gallery-image.js.map +1 -0
- package/build/gallery/{gallery-image.native.js → v1/gallery-image.native.js} +0 -0
- package/build/gallery/v1/gallery-image.native.js.map +1 -0
- package/build/gallery/v1/gallery.js +122 -0
- package/build/gallery/v1/gallery.js.map +1 -0
- package/build/gallery/v1/gallery.native.js +159 -0
- package/build/gallery/v1/gallery.native.js.map +1 -0
- package/build/gallery/v1/save.js +75 -0
- package/build/gallery/v1/save.js.map +1 -0
- package/build/gallery/v1/shared.js +26 -0
- package/build/gallery/v1/shared.js.map +1 -0
- package/build/gallery/{tiles.native.js → v1/tiles.native.js} +2 -1
- package/build/gallery/v1/tiles.native.js.map +1 -0
- package/build/gallery/v1/update-gallery-modal.js +110 -0
- package/build/gallery/v1/update-gallery-modal.js.map +1 -0
- package/build/group/edit.js +21 -5
- package/build/group/edit.js.map +1 -1
- package/build/group/index.js +9 -2
- package/build/group/index.js.map +1 -1
- package/build/group/save.js +4 -5
- package/build/group/save.js.map +1 -1
- package/build/group/variations.js +32 -0
- package/build/group/variations.js.map +1 -0
- package/build/heading/autogenerate-anchors.js +90 -0
- package/build/heading/autogenerate-anchors.js.map +1 -0
- package/build/heading/edit.js +42 -5
- package/build/heading/edit.js.map +1 -1
- package/build/heading/heading-level-dropdown.js +11 -37
- package/build/heading/heading-level-dropdown.js.map +1 -1
- package/build/heading/index.js +14 -2
- package/build/heading/index.js.map +1 -1
- package/build/heading/transforms.js +14 -2
- package/build/heading/transforms.js.map +1 -1
- package/build/home-link/edit.js +2 -2
- package/build/home-link/edit.js.map +1 -1
- package/build/image/edit.js +8 -6
- package/build/image/edit.js.map +1 -1
- package/build/image/edit.native.js +165 -70
- package/build/image/edit.native.js.map +1 -1
- package/build/image/image.js +11 -17
- package/build/image/image.js.map +1 -1
- package/build/image/index.js +1 -0
- package/build/image/index.js.map +1 -1
- package/build/image/transforms.js +31 -7
- package/build/image/transforms.js.map +1 -1
- package/build/image/utils.js +23 -0
- package/build/image/utils.js.map +1 -1
- package/build/index.js +84 -69
- package/build/index.js.map +1 -1
- package/build/index.native.js +3 -1
- package/build/index.native.js.map +1 -1
- package/build/latest-comments/edit.js +7 -1
- package/build/latest-comments/edit.js.map +1 -1
- package/build/latest-posts/edit.native.js +12 -6
- package/build/latest-posts/edit.native.js.map +1 -1
- package/build/list/deprecated.js +111 -0
- package/build/list/deprecated.js.map +1 -0
- package/build/list/index.js +15 -3
- package/build/list/index.js.map +1 -1
- package/build/media-text/edit.js +2 -2
- package/build/media-text/edit.js.map +1 -1
- package/build/media-text/index.js +2 -0
- package/build/media-text/index.js.map +1 -1
- package/build/media-text/save.js +3 -3
- package/build/media-text/save.js.map +1 -1
- package/build/navigation/deprecated.js +340 -23
- package/build/navigation/deprecated.js.map +1 -1
- package/build/navigation/edit/index.js +372 -0
- package/build/navigation/edit/index.js.map +1 -0
- package/build/navigation/edit/inner-blocks.js +100 -0
- package/build/navigation/edit/inner-blocks.js.map +1 -0
- package/build/navigation/edit/navigation-menu-delete-control.js +60 -0
- package/build/navigation/edit/navigation-menu-delete-control.js.map +1 -0
- package/build/navigation/edit/navigation-menu-name-control.js +27 -0
- package/build/navigation/edit/navigation-menu-name-control.js.map +1 -0
- package/build/navigation/edit/navigation-menu-name-modal.js +54 -0
- package/build/navigation/edit/navigation-menu-name-modal.js.map +1 -0
- package/build/navigation/edit/navigation-menu-publish-button.js +53 -0
- package/build/navigation/edit/navigation-menu-publish-button.js.map +1 -0
- package/build/navigation/edit/navigation-menu-selector.js +49 -0
- package/build/navigation/edit/navigation-menu-selector.js.map +1 -0
- package/build/navigation/edit/placeholder/index.js +207 -0
- package/build/navigation/edit/placeholder/index.js.map +1 -0
- package/build/navigation/{placeholder-preview.js → edit/placeholder/placeholder-preview.js} +17 -5
- package/build/navigation/edit/placeholder/placeholder-preview.js.map +1 -0
- package/build/navigation/{responsive-wrapper.js → edit/responsive-wrapper.js} +8 -3
- package/build/navigation/edit/responsive-wrapper.js.map +1 -0
- package/build/navigation/edit/unsaved-inner-blocks.js +153 -0
- package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -0
- package/build/navigation/edit/use-list-view-modal.js +72 -0
- package/build/navigation/edit/use-list-view-modal.js.map +1 -0
- package/build/navigation/index.js +27 -10
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/menu-items-to-blocks.js +6 -5
- package/build/navigation/menu-items-to-blocks.js.map +1 -1
- package/build/navigation/save.js +10 -1
- package/build/navigation/save.js.map +1 -1
- package/build/navigation/use-navigation-menu.js +40 -0
- package/build/navigation/use-navigation-menu.js.map +1 -0
- package/build/navigation/use-template-part-area-label.js +74 -0
- package/build/navigation/use-template-part-area-label.js.map +1 -0
- package/build/navigation/view.js +53 -1
- package/build/navigation/view.js.map +1 -1
- package/build/navigation-area/edit.js +97 -0
- package/build/navigation-area/edit.js.map +1 -0
- package/build/navigation-area/index.js +61 -0
- package/build/navigation-area/index.js.map +1 -0
- package/build/navigation-area/inner-blocks.js +33 -0
- package/build/navigation-area/inner-blocks.js.map +1 -0
- package/build/navigation-area/save.js +18 -0
- package/build/navigation-area/save.js.map +1 -0
- package/build/navigation-link/edit.js +124 -78
- package/build/navigation-link/edit.js.map +1 -1
- package/build/navigation-link/index.js +6 -2
- package/build/navigation-link/index.js.map +1 -1
- package/build/navigation-link/transforms.js +87 -0
- package/build/navigation-link/transforms.js.map +1 -0
- package/build/navigation-submenu/edit.js +651 -0
- package/build/navigation-submenu/edit.js.map +1 -0
- package/build/navigation-submenu/icons.js +27 -0
- package/build/navigation-submenu/icons.js.map +1 -0
- package/build/navigation-submenu/index.js +89 -0
- package/build/navigation-submenu/index.js.map +1 -0
- package/build/navigation-submenu/save.js +18 -0
- package/build/navigation-submenu/save.js.map +1 -0
- package/build/navigation-submenu/transforms.js +82 -0
- package/build/navigation-submenu/transforms.js.map +1 -0
- package/build/navigation-submenu/view.js +51 -0
- package/build/navigation-submenu/view.js.map +1 -0
- package/build/page-list/convert-to-links-modal.js +19 -1
- package/build/page-list/convert-to-links-modal.js.map +1 -1
- package/build/page-list/edit.js +124 -72
- package/build/page-list/edit.js.map +1 -1
- package/build/page-list/index.js +2 -27
- package/build/page-list/index.js.map +1 -1
- package/build/paragraph/edit.native.js +2 -1
- package/build/paragraph/edit.native.js.map +1 -1
- package/build/paragraph/index.js +8 -1
- package/build/paragraph/index.js.map +1 -1
- package/build/paragraph/transforms.js +8 -1
- package/build/paragraph/transforms.js.map +1 -1
- package/build/pattern/edit.js +43 -0
- package/build/pattern/edit.js.map +1 -0
- package/build/{post-comment-author → pattern}/index.js +11 -10
- package/build/pattern/index.js.map +1 -0
- package/build/post-author/index.js +14 -2
- package/build/post-author/index.js.map +1 -1
- package/build/post-comment/edit.js +11 -9
- package/build/post-comment/edit.js.map +1 -1
- package/build/post-comment/index.js +4 -3
- package/build/post-comment/index.js.map +1 -1
- package/build/post-comment/save.js +5 -1
- package/build/post-comment/save.js.map +1 -1
- package/build/post-comments/index.js +8 -1
- package/build/post-comments/index.js.map +1 -1
- package/build/post-comments-count/index.js +7 -1
- package/build/post-comments-count/index.js.map +1 -1
- package/build/post-comments-form/index.js +9 -2
- package/build/post-comments-form/index.js.map +1 -1
- package/build/post-comments-link/index.js +8 -1
- package/build/post-comments-link/index.js.map +1 -1
- package/build/post-content/edit.js +2 -4
- package/build/post-content/edit.js.map +1 -1
- package/build/post-date/deprecated.js +71 -0
- package/build/post-date/deprecated.js.map +1 -0
- package/build/post-date/edit.js +35 -14
- package/build/post-date/edit.js.map +1 -1
- package/build/post-date/index.js +13 -2
- package/build/post-date/index.js.map +1 -1
- package/build/post-excerpt/edit.js +3 -2
- package/build/post-excerpt/edit.js.map +1 -1
- package/build/post-excerpt/index.js +12 -1
- package/build/post-excerpt/index.js.map +1 -1
- package/build/post-featured-image/dimension-controls.js +24 -10
- package/build/post-featured-image/dimension-controls.js.map +1 -1
- package/build/post-featured-image/index.js +10 -1
- package/build/post-featured-image/index.js.map +1 -1
- package/build/post-navigation-link/edit.js +19 -3
- package/build/post-navigation-link/edit.js.map +1 -1
- package/build/post-navigation-link/index.js +16 -1
- package/build/post-navigation-link/index.js.map +1 -1
- package/build/post-template/edit.js +8 -4
- package/build/post-template/edit.js.map +1 -1
- package/build/post-template/index.js +5 -2
- package/build/post-template/index.js.map +1 -1
- package/build/post-terms/edit.js +5 -7
- package/build/post-terms/edit.js.map +1 -1
- package/build/post-terms/index.js +8 -1
- package/build/post-terms/index.js.map +1 -1
- package/build/post-terms/use-post-terms.js +3 -1
- package/build/post-terms/use-post-terms.js.map +1 -1
- package/build/post-title/deprecated.js +84 -0
- package/build/post-title/deprecated.js.map +1 -0
- package/build/post-title/edit.js +3 -3
- package/build/post-title/edit.js.map +1 -1
- package/build/post-title/index.js +17 -2
- package/build/post-title/index.js.map +1 -1
- package/build/preformatted/edit.js +5 -2
- package/build/preformatted/edit.js.map +1 -1
- package/build/preformatted/edit.native.js +16 -6
- package/build/preformatted/edit.native.js.map +1 -1
- package/build/preformatted/index.js +9 -1
- package/build/preformatted/index.js.map +1 -1
- package/build/pullquote/blockquote.native.js +14 -2
- package/build/pullquote/blockquote.native.js.map +1 -1
- package/build/pullquote/edit.native.js +124 -0
- package/build/pullquote/edit.native.js.map +1 -0
- package/build/pullquote/figure.native.js +20 -8
- package/build/pullquote/figure.native.js.map +1 -1
- package/build/pullquote/index.js +12 -0
- package/build/pullquote/index.js.map +1 -1
- package/build/query/edit/index.js +4 -2
- package/build/query/edit/index.js.map +1 -1
- package/build/query/save.js +5 -1
- package/build/query/save.js.map +1 -1
- package/build/query/variations.js +4 -4
- package/build/query/variations.js.map +1 -1
- package/build/query-pagination/deprecated.js +24 -0
- package/build/query-pagination/deprecated.js.map +1 -0
- package/build/query-pagination/edit.js +55 -4
- package/build/query-pagination/edit.js.map +1 -1
- package/build/query-pagination/index.js +20 -1
- package/build/query-pagination/index.js.map +1 -1
- package/build/query-pagination/query-pagination-arrow-controls.js +38 -0
- package/build/query-pagination/query-pagination-arrow-controls.js.map +1 -0
- package/build/query-pagination/save.js +1 -1
- package/build/query-pagination/save.js.map +1 -1
- package/build/query-pagination-next/edit.js +19 -4
- package/build/query-pagination-next/edit.js.map +1 -1
- package/build/query-pagination-next/index.js +9 -2
- package/build/query-pagination-next/index.js.map +1 -1
- package/build/query-pagination-previous/edit.js +19 -4
- package/build/query-pagination-previous/edit.js.map +1 -1
- package/build/query-pagination-previous/index.js +9 -2
- package/build/query-pagination-previous/index.js.map +1 -1
- package/build/query-title/deprecated.js +70 -0
- package/build/query-title/deprecated.js.map +1 -0
- package/build/query-title/index.js +17 -2
- package/build/query-title/index.js.map +1 -1
- package/build/quote/deprecated.js +9 -0
- package/build/quote/deprecated.js.map +1 -1
- package/build/quote/index.js +17 -1
- package/build/quote/index.js.map +1 -1
- package/build/search/edit.js +27 -1
- package/build/search/edit.js.map +1 -1
- package/build/search/edit.native.js +38 -7
- package/build/search/edit.native.js.map +1 -1
- package/build/separator/separator-settings.js +1 -0
- package/build/separator/separator-settings.js.map +1 -1
- package/build/site-logo/edit.js +120 -50
- package/build/site-logo/edit.js.map +1 -1
- package/build/site-logo/index.js +13 -2
- package/build/site-logo/index.js.map +1 -1
- package/build/site-tagline/deprecated.js +68 -0
- package/build/site-tagline/deprecated.js.map +1 -0
- package/build/site-tagline/index.js +11 -2
- package/build/site-tagline/index.js.map +1 -1
- package/build/site-title/deprecated.js +81 -0
- package/build/site-title/deprecated.js.map +1 -0
- package/build/site-title/edit/index.js +25 -6
- package/build/site-title/edit/index.js.map +1 -1
- package/build/site-title/index.js +24 -4
- package/build/site-title/index.js.map +1 -1
- package/build/social-links/deprecated.js +106 -2
- package/build/social-links/deprecated.js.map +1 -1
- package/build/social-links/edit.js +17 -20
- package/build/social-links/edit.js.map +1 -1
- package/build/social-links/index.js +17 -1
- package/build/social-links/index.js.map +1 -1
- package/build/social-links/save.js +8 -5
- package/build/social-links/save.js.map +1 -1
- package/build/table/index.js +12 -1
- package/build/table/index.js.map +1 -1
- package/build/template-part/edit/advanced-controls.js +3 -1
- package/build/template-part/edit/advanced-controls.js.map +1 -1
- package/build/template-part/edit/index.js +1 -4
- package/build/template-part/edit/index.js.map +1 -1
- package/build/template-part/edit/inner-blocks.js +1 -1
- package/build/template-part/edit/inner-blocks.js.map +1 -1
- package/build/template-part/edit/placeholder/index.js +3 -3
- package/build/template-part/edit/placeholder/index.js.map +1 -1
- package/build/template-part/edit/placeholder/patterns-setup.js +3 -2
- package/build/template-part/edit/placeholder/patterns-setup.js.map +1 -1
- package/build/template-part/edit/selection/template-part-previews.js +1 -1
- package/build/template-part/edit/selection/template-part-previews.js.map +1 -1
- package/build/template-part/variations.js +1 -1
- package/build/template-part/variations.js.map +1 -1
- package/build/term-description/edit.js +1 -1
- package/build/term-description/edit.js.map +1 -1
- package/build/term-description/index.js +4 -1
- package/build/term-description/index.js.map +1 -1
- package/build/utils/clean-empty-object.js +31 -0
- package/build/utils/clean-empty-object.js.map +1 -0
- package/build/utils/migrate-font-family.js +49 -0
- package/build/utils/migrate-font-family.js.map +1 -0
- package/build/verse/deprecated.js +93 -14
- package/build/verse/deprecated.js.map +1 -1
- package/build/verse/index.js +10 -1
- package/build/verse/index.js.map +1 -1
- package/build/video/edit-common-settings.js +1 -1
- package/build/video/edit-common-settings.js.map +1 -1
- package/build/video/edit.js +10 -5
- package/build/video/edit.js.map +1 -1
- package/build/video/tracks-editor.js +3 -1
- package/build/video/tracks-editor.js.map +1 -1
- package/build-module/audio/edit.js +3 -3
- package/build-module/audio/edit.js.map +1 -1
- package/build-module/audio/edit.native.js +3 -3
- package/build-module/audio/edit.native.js.map +1 -1
- package/build-module/block/edit.js +1 -1
- package/build-module/block/edit.js.map +1 -1
- package/build-module/button/deprecated.js +155 -11
- package/build-module/button/deprecated.js.map +1 -1
- package/build-module/button/edit.js +101 -91
- package/build-module/button/edit.js.map +1 -1
- package/build-module/button/edit.native.js +260 -332
- package/build-module/button/edit.native.js.map +1 -1
- package/build-module/button/index.js +8 -2
- package/build-module/button/index.js.map +1 -1
- package/build-module/buttons/deprecated.js +78 -3
- package/build-module/buttons/deprecated.js.map +1 -1
- package/build-module/buttons/edit.js +8 -37
- package/build-module/buttons/edit.js.map +1 -1
- package/build-module/buttons/index.js +17 -13
- package/build-module/buttons/index.js.map +1 -1
- package/build-module/buttons/save.js +4 -18
- package/build-module/buttons/save.js.map +1 -1
- package/build-module/buttons/transforms.js +16 -10
- package/build-module/buttons/transforms.js.map +1 -1
- package/build-module/categories/edit.js +16 -6
- package/build-module/categories/edit.js.map +1 -1
- package/build-module/categories/index.js +4 -0
- package/build-module/categories/index.js.map +1 -1
- package/build-module/code/edit.native.js +9 -5
- package/build-module/code/edit.native.js.map +1 -1
- package/build-module/code/index.js +24 -1
- package/build-module/code/index.js.map +1 -1
- package/build-module/column/edit.js +4 -2
- package/build-module/column/edit.js.map +1 -1
- package/build-module/column/index.js +8 -1
- package/build-module/column/index.js.map +1 -1
- package/build-module/column/save.js +15 -5
- package/build-module/column/save.js.map +1 -1
- package/build-module/columns/edit.js +1 -1
- package/build-module/columns/edit.js.map +1 -1
- package/build-module/columns/edit.native.js +6 -3
- package/build-module/columns/edit.native.js.map +1 -1
- package/build-module/columns/index.js +11 -1
- package/build-module/columns/index.js.map +1 -1
- package/build-module/columns/save.js +5 -3
- package/build-module/columns/save.js.map +1 -1
- package/build-module/comment-author-avatar/edit.js +69 -0
- package/build-module/comment-author-avatar/edit.js.map +1 -0
- package/build-module/comment-author-avatar/index.js +52 -0
- package/build-module/comment-author-avatar/index.js.map +1 -0
- package/build-module/comment-author-name/deprecated.js +58 -0
- package/build-module/comment-author-name/deprecated.js.map +1 -0
- package/build-module/comment-author-name/edit.js +97 -0
- package/build-module/comment-author-name/edit.js.map +1 -0
- package/build-module/comment-author-name/index.js +63 -0
- package/build-module/comment-author-name/index.js.map +1 -0
- package/build-module/comment-content/edit.js +61 -0
- package/build-module/comment-content/edit.js.map +1 -0
- package/build-module/comment-content/index.js +55 -0
- package/build-module/comment-content/index.js.map +1 -0
- package/build-module/comment-date/deprecated.js +57 -0
- package/build-module/comment-date/deprecated.js.map +1 -0
- package/build-module/comment-date/edit.js +85 -0
- package/build-module/comment-date/edit.js.map +1 -0
- package/build-module/comment-date/index.js +58 -0
- package/build-module/comment-date/index.js.map +1 -0
- package/build-module/comment-edit-link/edit.js +48 -0
- package/build-module/comment-edit-link/edit.js.map +1 -0
- package/build-module/comment-edit-link/index.js +54 -0
- package/build-module/comment-edit-link/index.js.map +1 -0
- package/build-module/comment-reply-link/edit.js +50 -0
- package/build-module/comment-reply-link/edit.js.map +1 -0
- package/build-module/comment-reply-link/index.js +50 -0
- package/build-module/comment-reply-link/index.js.map +1 -0
- package/build-module/comment-template/edit.js +71 -0
- package/build-module/comment-template/edit.js.map +1 -0
- package/build-module/comment-template/index.js +35 -0
- package/build-module/comment-template/index.js.map +1 -0
- package/build-module/comment-template/save.js +10 -0
- package/build-module/comment-template/save.js.map +1 -0
- package/build-module/comments-query-loop/edit.js +50 -0
- package/build-module/comments-query-loop/edit.js.map +1 -0
- package/build-module/comments-query-loop/index.js +53 -0
- package/build-module/comments-query-loop/index.js.map +1 -0
- package/build-module/comments-query-loop/save.js +14 -0
- package/build-module/comments-query-loop/save.js.map +1 -0
- package/build-module/comments-query-loop/toolbar.js +44 -0
- package/build-module/comments-query-loop/toolbar.js.map +1 -0
- package/build-module/cover/deprecated.js +180 -45
- package/build-module/cover/deprecated.js.map +1 -1
- package/build-module/cover/edit.js +118 -55
- package/build-module/cover/edit.js.map +1 -1
- package/build-module/cover/edit.native.js +6 -2
- package/build-module/cover/edit.native.js.map +1 -1
- package/build-module/cover/index.js +23 -2
- package/build-module/cover/index.js.map +1 -1
- package/build-module/cover/save.js +20 -16
- package/build-module/cover/save.js.map +1 -1
- package/build-module/cover/shared.js +4 -2
- package/build-module/cover/shared.js.map +1 -1
- package/build-module/cover/transforms.js +4 -0
- package/build-module/cover/transforms.js.map +1 -1
- package/build-module/embed/edit.js +1 -5
- package/build-module/embed/edit.js.map +1 -1
- package/build-module/embed/edit.native.js +90 -32
- package/build-module/embed/edit.native.js.map +1 -1
- package/build-module/embed/embed-bottom-sheet.native.js +22 -21
- package/build-module/embed/embed-bottom-sheet.native.js.map +1 -1
- package/build-module/embed/embed-controls.js +4 -1
- package/build-module/embed/embed-controls.js.map +1 -1
- package/build-module/embed/embed-no-preview.native.js +24 -11
- package/build-module/embed/embed-no-preview.native.js.map +1 -1
- package/build-module/embed/embed-placeholder.native.js +51 -8
- package/build-module/embed/embed-placeholder.native.js.map +1 -1
- package/build-module/embed/embed-preview.native.js +26 -11
- package/build-module/embed/embed-preview.native.js.map +1 -1
- package/build-module/embed/icons.js +13 -0
- package/build-module/embed/icons.js.map +1 -1
- package/build-module/embed/transforms.native.js +2 -1
- package/build-module/embed/transforms.native.js.map +1 -1
- package/build-module/embed/variations.js +21 -11
- package/build-module/embed/variations.js.map +1 -1
- package/build-module/embed/wp-embed-preview.js +39 -56
- package/build-module/embed/wp-embed-preview.js.map +1 -1
- package/build-module/embed/wp-embed-preview.native.js +83 -0
- package/build-module/embed/wp-embed-preview.native.js.map +1 -0
- package/build-module/file/deprecated.js +98 -0
- package/build-module/file/deprecated.js.map +1 -0
- package/build-module/file/edit.js +8 -1
- package/build-module/file/edit.js.map +1 -1
- package/build-module/file/index.js +8 -0
- package/build-module/file/index.js.map +1 -1
- package/build-module/file/inspector.js +1 -1
- package/build-module/file/inspector.js.map +1 -1
- package/build-module/file/save.js +4 -1
- package/build-module/file/save.js.map +1 -1
- package/build-module/file/transforms.js +2 -1
- package/build-module/file/transforms.js.map +1 -1
- package/build-module/freeform/edit.js +16 -5
- package/build-module/freeform/edit.js.map +1 -1
- package/build-module/gallery/constants.js +2 -2
- package/build-module/gallery/constants.js.map +1 -1
- package/build-module/gallery/deprecated.js +15 -7
- package/build-module/gallery/deprecated.js.map +1 -1
- package/build-module/gallery/edit-wrapper.js +50 -0
- package/build-module/gallery/edit-wrapper.js.map +1 -0
- package/build-module/gallery/edit.js +228 -234
- package/build-module/gallery/edit.js.map +1 -1
- package/build-module/gallery/gallery.js +70 -51
- package/build-module/gallery/gallery.js.map +1 -1
- package/build-module/gallery/gallery.native.js +43 -78
- package/build-module/gallery/gallery.native.js.map +1 -1
- package/build-module/gallery/index.js +35 -6
- package/build-module/gallery/index.js.map +1 -1
- package/build-module/gallery/save.js +27 -44
- package/build-module/gallery/save.js.map +1 -1
- package/build-module/gallery/shared.js +2 -2
- package/build-module/gallery/shared.js.map +1 -1
- package/build-module/gallery/transforms.js +207 -12
- package/build-module/gallery/transforms.js.map +1 -1
- package/build-module/gallery/use-get-media.js +42 -0
- package/build-module/gallery/use-get-media.js.map +1 -0
- package/build-module/gallery/use-get-new-images.js +50 -0
- package/build-module/gallery/use-get-new-images.js.map +1 -0
- package/build-module/gallery/use-image-sizes.js +64 -0
- package/build-module/gallery/use-image-sizes.js.map +1 -0
- package/build-module/gallery/use-mobile-warning.js +32 -0
- package/build-module/gallery/use-mobile-warning.js.map +1 -0
- package/build-module/gallery/use-short-code-transform.js +53 -0
- package/build-module/gallery/use-short-code-transform.js.map +1 -0
- package/build-module/gallery/utils.js +42 -0
- package/build-module/gallery/utils.js.map +1 -0
- package/build-module/gallery/v1/constants.js +4 -0
- package/build-module/gallery/v1/constants.js.map +1 -0
- package/build-module/gallery/v1/edit.js +430 -0
- package/build-module/gallery/v1/edit.js.map +1 -0
- package/build-module/gallery/{gallery-button.native.js → v1/gallery-button.native.js} +0 -0
- package/build-module/gallery/v1/gallery-button.native.js.map +1 -0
- package/build-module/gallery/{gallery-image.js → v1/gallery-image.js} +0 -0
- package/build-module/gallery/v1/gallery-image.js.map +1 -0
- package/build-module/gallery/{gallery-image.native.js → v1/gallery-image.native.js} +0 -0
- package/build-module/gallery/v1/gallery-image.native.js.map +1 -0
- package/build-module/gallery/v1/gallery.js +102 -0
- package/build-module/gallery/v1/gallery.js.map +1 -0
- package/build-module/gallery/v1/gallery.native.js +136 -0
- package/build-module/gallery/v1/gallery.native.js.map +1 -0
- package/build-module/gallery/v1/save.js +65 -0
- package/build-module/gallery/v1/save.js.map +1 -0
- package/build-module/gallery/v1/shared.js +16 -0
- package/build-module/gallery/v1/shared.js.map +1 -0
- package/build-module/gallery/{tiles.native.js → v1/tiles.native.js} +2 -1
- package/build-module/gallery/v1/tiles.native.js.map +1 -0
- package/build-module/gallery/v1/update-gallery-modal.js +93 -0
- package/build-module/gallery/v1/update-gallery-modal.js.map +1 -0
- package/build-module/group/edit.js +21 -6
- package/build-module/group/edit.js.map +1 -1
- package/build-module/group/index.js +8 -2
- package/build-module/group/index.js.map +1 -1
- package/build-module/group/save.js +5 -6
- package/build-module/group/save.js.map +1 -1
- package/build-module/group/variations.js +23 -0
- package/build-module/group/variations.js.map +1 -0
- package/build-module/heading/autogenerate-anchors.js +77 -0
- package/build-module/heading/autogenerate-anchors.js.map +1 -0
- package/build-module/heading/edit.js +43 -7
- package/build-module/heading/edit.js.map +1 -1
- package/build-module/heading/heading-level-dropdown.js +12 -37
- package/build-module/heading/heading-level-dropdown.js.map +1 -1
- package/build-module/heading/index.js +14 -2
- package/build-module/heading/index.js.map +1 -1
- package/build-module/heading/transforms.js +14 -2
- package/build-module/heading/transforms.js.map +1 -1
- package/build-module/home-link/edit.js +2 -2
- package/build-module/home-link/edit.js.map +1 -1
- package/build-module/image/edit.js +8 -6
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/edit.native.js +168 -74
- package/build-module/image/edit.native.js.map +1 -1
- package/build-module/image/image.js +11 -15
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/index.js +1 -0
- package/build-module/image/index.js.map +1 -1
- package/build-module/image/transforms.js +27 -7
- package/build-module/image/transforms.js.map +1 -1
- package/build-module/image/utils.js +22 -1
- package/build-module/image/utils.js.map +1 -1
- package/build-module/index.js +59 -52
- package/build-module/index.js.map +1 -1
- package/build-module/index.native.js +1 -2
- package/build-module/index.native.js.map +1 -1
- package/build-module/latest-comments/edit.js +7 -1
- package/build-module/latest-comments/edit.js.map +1 -1
- package/build-module/latest-posts/edit.native.js +12 -6
- package/build-module/latest-posts/edit.native.js.map +1 -1
- package/build-module/list/deprecated.js +99 -0
- package/build-module/list/deprecated.js.map +1 -0
- package/build-module/list/index.js +14 -3
- package/build-module/list/index.js.map +1 -1
- package/build-module/media-text/edit.js +2 -2
- package/build-module/media-text/edit.js.map +1 -1
- package/build-module/media-text/index.js +2 -0
- package/build-module/media-text/index.js.map +1 -1
- package/build-module/media-text/save.js +4 -4
- package/build-module/media-text/save.js.map +1 -1
- package/build-module/navigation/deprecated.js +336 -23
- package/build-module/navigation/deprecated.js.map +1 -1
- package/build-module/navigation/edit/index.js +346 -0
- package/build-module/navigation/edit/index.js.map +1 -0
- package/build-module/navigation/edit/inner-blocks.js +87 -0
- package/build-module/navigation/edit/inner-blocks.js.map +1 -0
- package/build-module/navigation/edit/navigation-menu-delete-control.js +50 -0
- package/build-module/navigation/edit/navigation-menu-delete-control.js.map +1 -0
- package/build-module/navigation/edit/navigation-menu-name-control.js +17 -0
- package/build-module/navigation/edit/navigation-menu-name-control.js.map +1 -0
- package/build-module/navigation/edit/navigation-menu-name-modal.js +46 -0
- package/build-module/navigation/edit/navigation-menu-name-modal.js.map +1 -0
- package/build-module/navigation/edit/navigation-menu-publish-button.js +40 -0
- package/build-module/navigation/edit/navigation-menu-publish-button.js.map +1 -0
- package/build-module/navigation/edit/navigation-menu-selector.js +36 -0
- package/build-module/navigation/edit/navigation-menu-selector.js.map +1 -0
- package/build-module/navigation/edit/placeholder/index.js +189 -0
- package/build-module/navigation/edit/placeholder/index.js.map +1 -0
- package/build-module/navigation/{placeholder-preview.js → edit/placeholder/placeholder-preview.js} +14 -5
- package/build-module/navigation/edit/placeholder/placeholder-preview.js.map +1 -0
- package/build-module/navigation/{responsive-wrapper.js → edit/responsive-wrapper.js} +8 -3
- package/build-module/navigation/edit/responsive-wrapper.js.map +1 -0
- package/build-module/navigation/edit/unsaved-inner-blocks.js +136 -0
- package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -0
- package/build-module/navigation/edit/use-list-view-modal.js +62 -0
- package/build-module/navigation/edit/use-list-view-modal.js.map +1 -0
- package/build-module/navigation/index.js +27 -9
- package/build-module/navigation/index.js.map +1 -1
- package/build-module/navigation/menu-items-to-blocks.js +6 -5
- package/build-module/navigation/menu-items-to-blocks.js.map +1 -1
- package/build-module/navigation/save.js +10 -1
- package/build-module/navigation/save.js.map +1 -1
- package/build-module/navigation/use-navigation-menu.js +31 -0
- package/build-module/navigation/use-navigation-menu.js.map +1 -0
- package/build-module/navigation/use-template-part-area-label.js +63 -0
- package/build-module/navigation/use-template-part-area-label.js.map +1 -0
- package/build-module/navigation/view.js +53 -2
- package/build-module/navigation/view.js.map +1 -1
- package/build-module/navigation-area/edit.js +82 -0
- package/build-module/navigation-area/edit.js.map +1 -0
- package/build-module/navigation-area/index.js +47 -0
- package/build-module/navigation-area/index.js.map +1 -0
- package/build-module/navigation-area/inner-blocks.js +25 -0
- package/build-module/navigation-area/inner-blocks.js.map +1 -0
- package/build-module/navigation-area/save.js +10 -0
- package/build-module/navigation-area/save.js.map +1 -0
- package/build-module/navigation-link/edit.js +128 -81
- package/build-module/navigation-link/edit.js.map +1 -1
- package/build-module/navigation-link/index.js +5 -2
- package/build-module/navigation-link/index.js.map +1 -1
- package/build-module/navigation-link/transforms.js +78 -0
- package/build-module/navigation-link/transforms.js.map +1 -0
- package/build-module/navigation-submenu/edit.js +628 -0
- package/build-module/navigation-submenu/edit.js.map +1 -0
- package/build-module/navigation-submenu/icons.js +17 -0
- package/build-module/navigation-submenu/icons.js.map +1 -0
- package/build-module/navigation-submenu/index.js +74 -0
- package/build-module/navigation-submenu/index.js.map +1 -0
- package/build-module/navigation-submenu/save.js +10 -0
- package/build-module/navigation-submenu/save.js.map +1 -0
- package/build-module/navigation-submenu/transforms.js +73 -0
- package/build-module/navigation-submenu/transforms.js.map +1 -0
- package/build-module/navigation-submenu/view.js +49 -0
- package/build-module/navigation-submenu/view.js.map +1 -0
- package/build-module/page-list/convert-to-links-modal.js +19 -1
- package/build-module/page-list/convert-to-links-modal.js.map +1 -1
- package/build-module/page-list/edit.js +126 -74
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/page-list/index.js +2 -27
- package/build-module/page-list/index.js.map +1 -1
- package/build-module/paragraph/edit.native.js +2 -1
- package/build-module/paragraph/edit.native.js.map +1 -1
- package/build-module/paragraph/index.js +8 -1
- package/build-module/paragraph/index.js.map +1 -1
- package/build-module/paragraph/transforms.js +8 -1
- package/build-module/paragraph/transforms.js.map +1 -1
- package/build-module/pattern/edit.js +35 -0
- package/build-module/pattern/edit.js.map +1 -0
- package/build-module/pattern/index.js +29 -0
- package/build-module/pattern/index.js.map +1 -0
- package/build-module/post-author/index.js +14 -2
- package/build-module/post-author/index.js.map +1 -1
- package/build-module/post-comment/edit.js +13 -12
- package/build-module/post-comment/edit.js.map +1 -1
- package/build-module/post-comment/index.js +4 -3
- package/build-module/post-comment/index.js.map +1 -1
- package/build-module/post-comment/save.js +4 -2
- package/build-module/post-comment/save.js.map +1 -1
- package/build-module/post-comments/index.js +8 -1
- package/build-module/post-comments/index.js.map +1 -1
- package/build-module/post-comments-count/index.js +7 -1
- package/build-module/post-comments-count/index.js.map +1 -1
- package/build-module/post-comments-form/index.js +9 -2
- package/build-module/post-comments-form/index.js.map +1 -1
- package/build-module/post-comments-link/index.js +8 -1
- package/build-module/post-comments-link/index.js.map +1 -1
- package/build-module/post-content/edit.js +2 -4
- package/build-module/post-content/edit.js.map +1 -1
- package/build-module/post-date/deprecated.js +60 -0
- package/build-module/post-date/deprecated.js.map +1 -0
- package/build-module/post-date/edit.js +36 -16
- package/build-module/post-date/edit.js.map +1 -1
- package/build-module/post-date/index.js +12 -2
- package/build-module/post-date/index.js.map +1 -1
- package/build-module/post-excerpt/edit.js +3 -2
- package/build-module/post-excerpt/edit.js.map +1 -1
- package/build-module/post-excerpt/index.js +12 -1
- package/build-module/post-excerpt/index.js.map +1 -1
- package/build-module/post-featured-image/dimension-controls.js +22 -11
- package/build-module/post-featured-image/dimension-controls.js.map +1 -1
- package/build-module/post-featured-image/index.js +10 -1
- package/build-module/post-featured-image/index.js.map +1 -1
- package/build-module/post-navigation-link/edit.js +19 -3
- package/build-module/post-navigation-link/edit.js.map +1 -1
- package/build-module/post-navigation-link/index.js +16 -1
- package/build-module/post-navigation-link/index.js.map +1 -1
- package/build-module/post-template/edit.js +10 -5
- package/build-module/post-template/edit.js.map +1 -1
- package/build-module/post-template/index.js +6 -3
- package/build-module/post-template/index.js.map +1 -1
- package/build-module/post-terms/edit.js +6 -8
- package/build-module/post-terms/edit.js.map +1 -1
- package/build-module/post-terms/index.js +8 -1
- package/build-module/post-terms/index.js.map +1 -1
- package/build-module/post-terms/use-post-terms.js +3 -1
- package/build-module/post-terms/use-post-terms.js.map +1 -1
- package/build-module/post-title/deprecated.js +73 -0
- package/build-module/post-title/deprecated.js.map +1 -0
- package/build-module/post-title/edit.js +3 -3
- package/build-module/post-title/edit.js.map +1 -1
- package/build-module/post-title/index.js +16 -2
- package/build-module/post-title/index.js.map +1 -1
- package/build-module/preformatted/edit.js +5 -2
- package/build-module/preformatted/edit.js.map +1 -1
- package/build-module/preformatted/edit.native.js +17 -6
- package/build-module/preformatted/edit.native.js.map +1 -1
- package/build-module/preformatted/index.js +9 -1
- package/build-module/preformatted/index.js.map +1 -1
- package/build-module/pullquote/blockquote.native.js +14 -2
- package/build-module/pullquote/blockquote.native.js.map +1 -1
- package/build-module/pullquote/edit.native.js +112 -0
- package/build-module/pullquote/edit.native.js.map +1 -0
- package/build-module/pullquote/figure.native.js +20 -9
- package/build-module/pullquote/figure.native.js.map +1 -1
- package/build-module/pullquote/index.js +12 -0
- package/build-module/pullquote/index.js.map +1 -1
- package/build-module/query/edit/index.js +4 -2
- package/build-module/query/edit/index.js.map +1 -1
- package/build-module/query/save.js +4 -2
- package/build-module/query/save.js.map +1 -1
- package/build-module/query/variations.js +4 -4
- package/build-module/query/variations.js.map +1 -1
- package/build-module/query-pagination/deprecated.js +15 -0
- package/build-module/query-pagination/deprecated.js.map +1 -0
- package/build-module/query-pagination/edit.js +52 -5
- package/build-module/query-pagination/edit.js.map +1 -1
- package/build-module/query-pagination/index.js +19 -1
- package/build-module/query-pagination/index.js.map +1 -1
- package/build-module/query-pagination/query-pagination-arrow-controls.js +29 -0
- package/build-module/query-pagination/query-pagination-arrow-controls.js.map +1 -0
- package/build-module/query-pagination/save.js +2 -2
- package/build-module/query-pagination/save.js.map +1 -1
- package/build-module/query-pagination-next/edit.js +18 -4
- package/build-module/query-pagination-next/edit.js.map +1 -1
- package/build-module/query-pagination-next/index.js +9 -2
- package/build-module/query-pagination-next/index.js.map +1 -1
- package/build-module/query-pagination-previous/edit.js +18 -4
- package/build-module/query-pagination-previous/edit.js.map +1 -1
- package/build-module/query-pagination-previous/index.js +9 -2
- package/build-module/query-pagination-previous/index.js.map +1 -1
- package/build-module/query-title/deprecated.js +59 -0
- package/build-module/query-title/deprecated.js.map +1 -0
- package/build-module/query-title/index.js +16 -2
- package/build-module/query-title/index.js.map +1 -1
- package/build-module/quote/deprecated.js +9 -0
- package/build-module/quote/deprecated.js.map +1 -1
- package/build-module/quote/index.js +17 -1
- package/build-module/quote/index.js.map +1 -1
- package/build-module/search/edit.js +28 -2
- package/build-module/search/edit.js.map +1 -1
- package/build-module/search/edit.native.js +38 -7
- package/build-module/search/edit.native.js.map +1 -1
- package/build-module/separator/separator-settings.js +1 -0
- package/build-module/separator/separator-settings.js.map +1 -1
- package/build-module/site-logo/edit.js +124 -56
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/site-logo/index.js +13 -2
- package/build-module/site-logo/index.js.map +1 -1
- package/build-module/site-tagline/deprecated.js +57 -0
- package/build-module/site-tagline/deprecated.js.map +1 -0
- package/build-module/site-tagline/index.js +10 -2
- package/build-module/site-tagline/index.js.map +1 -1
- package/build-module/site-title/deprecated.js +70 -0
- package/build-module/site-title/deprecated.js.map +1 -0
- package/build-module/site-title/edit/index.js +25 -7
- package/build-module/site-title/edit/index.js.map +1 -1
- package/build-module/site-title/index.js +23 -4
- package/build-module/site-title/index.js.map +1 -1
- package/build-module/social-links/deprecated.js +106 -2
- package/build-module/social-links/deprecated.js.map +1 -1
- package/build-module/social-links/edit.js +17 -20
- package/build-module/social-links/edit.js.map +1 -1
- package/build-module/social-links/index.js +17 -1
- package/build-module/social-links/index.js.map +1 -1
- package/build-module/social-links/save.js +6 -6
- package/build-module/social-links/save.js.map +1 -1
- package/build-module/table/index.js +12 -1
- package/build-module/table/index.js.map +1 -1
- package/build-module/template-part/edit/advanced-controls.js +4 -2
- package/build-module/template-part/edit/advanced-controls.js.map +1 -1
- package/build-module/template-part/edit/index.js +1 -4
- package/build-module/template-part/edit/index.js.map +1 -1
- package/build-module/template-part/edit/inner-blocks.js +1 -1
- package/build-module/template-part/edit/inner-blocks.js.map +1 -1
- package/build-module/template-part/edit/placeholder/index.js +3 -3
- package/build-module/template-part/edit/placeholder/index.js.map +1 -1
- package/build-module/template-part/edit/placeholder/patterns-setup.js +3 -2
- package/build-module/template-part/edit/placeholder/patterns-setup.js.map +1 -1
- package/build-module/template-part/edit/selection/template-part-previews.js +1 -1
- package/build-module/template-part/edit/selection/template-part-previews.js.map +1 -1
- package/build-module/template-part/variations.js +2 -2
- package/build-module/template-part/variations.js.map +1 -1
- package/build-module/term-description/edit.js +1 -1
- package/build-module/term-description/edit.js.map +1 -1
- package/build-module/term-description/index.js +4 -1
- package/build-module/term-description/index.js.map +1 -1
- package/build-module/utils/clean-empty-object.js +22 -0
- package/build-module/utils/clean-empty-object.js.map +1 -0
- package/build-module/utils/migrate-font-family.js +38 -0
- package/build-module/utils/migrate-font-family.js.map +1 -0
- package/build-module/verse/deprecated.js +90 -15
- package/build-module/verse/deprecated.js.map +1 -1
- package/build-module/verse/index.js +10 -1
- package/build-module/verse/index.js.map +1 -1
- package/build-module/video/edit-common-settings.js +2 -2
- package/build-module/video/edit-common-settings.js.map +1 -1
- package/build-module/video/edit.js +10 -5
- package/build-module/video/edit.js.map +1 -1
- package/build-module/video/tracks-editor.js +2 -1
- package/build-module/video/tracks-editor.js.map +1 -1
- package/build-style/button/editor-rtl.css +0 -1
- package/build-style/button/editor.css +0 -1
- package/build-style/button/style-rtl.css +16 -28
- package/build-style/button/style.css +16 -28
- package/build-style/buttons/editor-rtl.css +4 -8
- package/build-style/buttons/editor.css +4 -8
- package/build-style/buttons/style-rtl.css +1 -35
- package/build-style/buttons/style.css +1 -48
- package/build-style/columns/editor-rtl.css +2 -2
- package/build-style/columns/editor.css +2 -2
- package/build-style/columns/style-rtl.css +5 -5
- package/build-style/columns/style.css +5 -5
- package/build-style/common-rtl.css +8 -15
- package/build-style/common.css +8 -15
- package/build-style/cover/editor-rtl.css +14 -32
- package/build-style/cover/editor.css +14 -32
- package/build-style/cover/style-rtl.css +28 -40
- package/build-style/cover/style.css +28 -40
- package/build-style/editor-rtl.css +383 -241
- package/build-style/editor.css +383 -241
- package/build-style/embed/style-rtl.css +1 -0
- package/build-style/embed/style.css +1 -0
- package/build-style/gallery/editor-rtl.css +89 -21
- package/build-style/gallery/editor.css +89 -21
- package/build-style/gallery/style-rtl.css +202 -39
- package/build-style/gallery/style.css +202 -39
- package/build-style/group/theme-rtl.css +1 -3
- package/build-style/group/theme.css +1 -3
- package/build-style/heading/style-rtl.css +8 -0
- package/build-style/heading/style.css +8 -0
- package/build-style/html/editor-rtl.css +12 -11
- package/build-style/html/editor.css +12 -11
- package/build-style/image/editor-rtl.css +1 -0
- package/build-style/image/editor.css +1 -0
- package/build-style/image/style-rtl.css +3 -0
- package/build-style/image/style.css +3 -0
- package/build-style/list/style-rtl.css +4 -0
- package/build-style/list/style.css +4 -0
- package/build-style/media-text/style-rtl.css +1 -0
- package/build-style/media-text/style.css +1 -0
- package/build-style/navigation/editor-rtl.css +69 -23
- package/build-style/navigation/editor.css +69 -23
- package/build-style/navigation/style-rtl.css +138 -194
- package/build-style/navigation/style.css +138 -194
- package/build-style/navigation-link/editor-rtl.css +50 -25
- package/build-style/navigation-link/editor.css +50 -25
- package/build-style/navigation-link/style-rtl.css +1 -1
- package/build-style/navigation-link/style.css +1 -1
- package/build-style/{post-author → navigation-submenu}/editor-rtl.css +27 -24
- package/build-style/{post-author → navigation-submenu}/editor.css +27 -24
- package/build-style/{heading/editor.css → navigation-submenu/style-rtl.css} +13 -7
- package/build-style/{heading/editor-rtl.css → navigation-submenu/style.css} +13 -7
- package/build-style/page-list/editor-rtl.css +8 -0
- package/build-style/page-list/editor.css +8 -0
- package/build-style/page-list/style-rtl.css +2 -23
- package/build-style/page-list/style.css +2 -23
- package/build-style/paragraph/style-rtl.css +5 -1
- package/build-style/paragraph/style.css +5 -1
- package/build-style/post-author/style-rtl.css +0 -1
- package/build-style/post-author/style.css +0 -1
- package/build-style/post-comments/style-rtl.css +21 -1
- package/build-style/post-comments/style.css +21 -1
- package/build-style/post-comments-form/style-rtl.css +29 -0
- package/build-style/post-comments-form/style.css +29 -0
- package/build-style/{query-title/editor-rtl.css → post-content/style-rtl.css} +2 -3
- package/build-style/{query-title/editor.css → post-content/style.css} +2 -3
- package/build-style/post-featured-image/editor-rtl.css +5 -9
- package/build-style/post-featured-image/editor.css +5 -9
- package/build-style/post-featured-image/style-rtl.css +1 -0
- package/build-style/post-featured-image/style.css +1 -0
- package/build-style/post-template/style-rtl.css +2 -0
- package/build-style/post-template/style.css +2 -0
- package/build-style/pullquote/style-rtl.css +1 -0
- package/build-style/pullquote/style.css +1 -0
- package/build-style/query-pagination/editor-rtl.css +2 -5
- package/build-style/query-pagination/editor.css +2 -5
- package/build-style/query-pagination/style-rtl.css +17 -6
- package/build-style/query-pagination/style.css +17 -6
- package/build-style/quote/style-rtl.css +3 -0
- package/build-style/quote/style.css +3 -0
- package/build-style/quote/theme-rtl.css +1 -1
- package/build-style/quote/theme.css +1 -1
- package/build-style/reset-rtl.css +2 -6
- package/build-style/reset.css +2 -6
- package/build-style/search/style-rtl.css +18 -6
- package/build-style/search/style.css +18 -6
- package/build-style/separator/style-rtl.css +0 -1
- package/build-style/separator/style.css +0 -1
- package/build-style/site-logo/editor-rtl.css +82 -14
- package/build-style/site-logo/editor.css +82 -14
- package/build-style/site-logo/style-rtl.css +6 -2
- package/build-style/site-logo/style.css +6 -2
- package/build-style/social-link/editor-rtl.css +4 -0
- package/build-style/social-link/editor.css +4 -0
- package/build-style/social-links/editor-rtl.css +4 -0
- package/build-style/social-links/editor.css +4 -0
- package/build-style/social-links/style-rtl.css +7 -6
- package/build-style/social-links/style.css +7 -6
- package/build-style/style-rtl.css +551 -407
- package/build-style/style.css +551 -420
- package/build-style/template-part/editor-rtl.css +0 -7
- package/build-style/template-part/editor.css +0 -7
- package/build-style/theme-rtl.css +2 -12
- package/build-style/theme.css +2 -12
- package/package.json +33 -33
- package/src/audio/edit.js +6 -3
- package/src/audio/edit.native.js +9 -3
- package/src/audio/test/edit.native.js +4 -0
- package/src/block/edit.js +1 -1
- package/src/button/block.json +8 -2
- package/src/button/deprecated.js +149 -4
- package/src/button/edit.js +107 -115
- package/src/button/edit.native.js +320 -364
- package/src/button/editor.scss +0 -1
- package/src/button/style.scss +19 -42
- package/src/buttons/block.json +16 -10
- package/src/buttons/deprecated.js +73 -3
- package/src/buttons/edit.js +8 -48
- package/src/buttons/editor.scss +8 -9
- package/src/buttons/index.js +0 -2
- package/src/buttons/save.js +4 -21
- package/src/buttons/style.scss +1 -51
- package/src/categories/block.json +4 -0
- package/src/categories/edit.js +36 -18
- package/src/categories/index.php +3 -0
- package/src/code/block.json +24 -1
- package/src/code/edit.native.js +12 -14
- package/src/column/block.json +8 -1
- package/src/column/edit.js +8 -2
- package/src/column/save.js +20 -13
- package/src/columns/block.json +9 -1
- package/src/columns/edit.js +1 -1
- package/src/columns/edit.native.js +8 -3
- package/src/columns/editor.scss +2 -2
- package/src/columns/index.js +1 -0
- package/src/columns/save.js +5 -6
- package/src/columns/style.scss +5 -5
- package/src/comment-author-avatar/block.json +34 -0
- package/src/comment-author-avatar/edit.js +96 -0
- package/src/comment-author-avatar/index.js +18 -0
- package/src/comment-author-avatar/index.php +62 -0
- package/src/comment-author-name/block.json +43 -0
- package/src/comment-author-name/deprecated.js +50 -0
- package/src/comment-author-name/edit.js +124 -0
- package/src/comment-author-name/index.js +20 -0
- package/src/comment-author-name/index.php +57 -0
- package/src/comment-content/block.json +37 -0
- package/src/comment-content/edit.js +80 -0
- package/src/{post-comment-content → comment-content}/index.js +1 -1
- package/src/comment-content/index.php +56 -0
- package/src/comment-date/block.json +38 -0
- package/src/comment-date/deprecated.js +49 -0
- package/src/comment-date/edit.js +106 -0
- package/src/{post-comment-date → comment-date}/index.js +2 -0
- package/src/comment-date/index.php +56 -0
- package/src/comment-edit-link/block.json +36 -0
- package/src/comment-edit-link/edit.js +68 -0
- package/src/{post-comment-author → comment-edit-link}/index.js +5 -5
- package/src/comment-edit-link/index.php +58 -0
- package/src/comment-reply-link/block.json +32 -0
- package/src/comment-reply-link/edit.js +59 -0
- package/src/comment-reply-link/index.js +18 -0
- package/src/comment-reply-link/index.php +80 -0
- package/src/comment-template/block.json +15 -0
- package/src/comment-template/edit.js +100 -0
- package/src/comment-template/index.js +20 -0
- package/src/comment-template/index.php +65 -0
- package/src/comment-template/save.js +8 -0
- package/src/comments-query-loop/block.json +33 -0
- package/src/comments-query-loop/edit.js +53 -0
- package/src/comments-query-loop/index.js +20 -0
- package/src/comments-query-loop/save.js +14 -0
- package/src/comments-query-loop/toolbar.js +57 -0
- package/src/common.scss +3 -23
- package/src/cover/block.json +23 -2
- package/src/cover/deprecated.js +707 -537
- package/src/cover/edit.js +152 -74
- package/src/cover/edit.native.js +5 -1
- package/src/cover/editor.scss +20 -38
- package/src/cover/save.js +32 -27
- package/src/cover/shared.js +4 -2
- package/src/cover/style.scss +9 -7
- package/src/cover/transforms.js +4 -2
- package/src/editor.scss +5 -37
- package/src/embed/edit.js +1 -11
- package/src/embed/edit.native.js +126 -41
- package/src/embed/embed-bottom-sheet.native.js +30 -25
- package/src/embed/embed-controls.js +10 -1
- package/src/embed/embed-no-preview.native.js +54 -14
- package/src/embed/embed-placeholder.native.js +58 -9
- package/src/embed/embed-preview.native.js +58 -41
- package/src/embed/icons.js +11 -0
- package/src/embed/style.scss +1 -0
- package/src/embed/styles.native.scss +18 -8
- package/src/embed/test/__snapshots__/index.native.js.snap +181 -0
- package/src/embed/test/index.native.js +991 -0
- package/src/embed/transforms.native.js +2 -0
- package/src/embed/variations.js +21 -8
- package/src/embed/wp-embed-preview.js +41 -62
- package/src/embed/wp-embed-preview.native.js +80 -0
- package/src/file/block.json +6 -0
- package/src/file/deprecated.js +123 -0
- package/src/file/edit.js +6 -0
- package/src/file/index.js +2 -0
- package/src/file/inspector.js +12 -10
- package/src/file/save.js +3 -0
- package/src/file/test/__snapshots__/edit.native.js.snap +10 -3
- package/src/file/test/edit.native.js +4 -0
- package/src/file/transforms.js +3 -1
- package/src/freeform/edit.js +14 -4
- package/src/gallery/block.json +23 -0
- package/src/gallery/constants.js +2 -2
- package/src/gallery/deprecated.js +15 -7
- package/src/gallery/deprecated.scss +132 -0
- package/src/gallery/edit-wrapper.js +47 -0
- package/src/gallery/edit.js +323 -277
- package/src/gallery/editor.scss +105 -22
- package/src/gallery/gallery-styles.native.scss +4 -2
- package/src/gallery/gallery.js +79 -71
- package/src/gallery/gallery.native.js +49 -88
- package/src/gallery/index.js +12 -6
- package/src/gallery/index.php +52 -0
- package/src/gallery/save.js +26 -60
- package/src/gallery/shared.js +2 -2
- package/src/gallery/style.scss +113 -75
- package/src/gallery/transforms.js +212 -11
- package/src/gallery/use-get-media.js +54 -0
- package/src/gallery/use-get-new-images.js +68 -0
- package/src/gallery/use-image-sizes.js +66 -0
- package/src/gallery/use-mobile-warning.js +28 -0
- package/src/gallery/use-short-code-transform.js +52 -0
- package/src/gallery/utils.js +46 -0
- package/src/gallery/v1/constants.js +3 -0
- package/src/gallery/v1/edit.js +509 -0
- package/src/gallery/{gallery-button.native.js → v1/gallery-button.native.js} +0 -0
- package/src/gallery/{gallery-image-style.native.scss → v1/gallery-image-style.native.scss} +0 -0
- package/src/gallery/{gallery-image.js → v1/gallery-image.js} +0 -0
- package/src/gallery/{gallery-image.native.js → v1/gallery-image.native.js} +0 -0
- package/src/gallery/v1/gallery-styles.native.scss +8 -0
- package/src/gallery/v1/gallery.js +119 -0
- package/src/gallery/v1/gallery.native.js +162 -0
- package/src/gallery/v1/save.js +81 -0
- package/src/gallery/v1/shared.js +19 -0
- package/src/gallery/{tiles-styles.native.scss → v1/tiles-styles.native.scss} +0 -0
- package/src/gallery/{tiles.native.js → v1/tiles.native.js} +2 -1
- package/src/gallery/v1/update-gallery-modal.js +97 -0
- package/src/group/block.json +5 -1
- package/src/group/edit.js +32 -8
- package/src/group/index.js +2 -0
- package/src/group/save.js +3 -8
- package/src/group/theme.scss +1 -3
- package/src/group/variations.js +18 -0
- package/src/heading/autogenerate-anchors.js +81 -0
- package/src/heading/block.json +14 -2
- package/src/heading/edit.js +42 -4
- package/src/heading/heading-level-dropdown.js +26 -58
- package/src/heading/style.scss +3 -0
- package/src/home-link/edit.js +2 -2
- package/src/home-link/index.php +4 -2
- package/src/html/editor.scss +16 -10
- package/src/image/block.json +1 -0
- package/src/image/edit.js +9 -7
- package/src/image/edit.native.js +183 -87
- package/src/image/editor.scss +1 -0
- package/src/image/image.js +10 -14
- package/src/image/index.php +42 -0
- package/src/image/style.scss +3 -0
- package/src/image/styles.native.scss +5 -0
- package/src/image/test/edit.native.js +225 -40
- package/src/image/transforms.js +36 -9
- package/src/image/utils.js +17 -1
- package/src/index.js +96 -86
- package/src/index.native.js +1 -1
- package/src/latest-comments/edit.js +4 -0
- package/src/latest-comments/index.php +2 -1
- package/src/latest-posts/edit.native.js +10 -8
- package/src/list/block.json +11 -2
- package/src/list/deprecated.js +79 -0
- package/src/list/index.js +2 -0
- package/src/list/style.scss +8 -3
- package/src/media-text/edit.js +2 -2
- package/src/media-text/index.js +1 -0
- package/src/media-text/save.js +6 -4
- package/src/media-text/style.scss +1 -0
- package/src/navigation/block.json +42 -9
- package/src/navigation/deprecated.js +336 -27
- package/src/navigation/edit/index.js +510 -0
- package/src/navigation/edit/inner-blocks.js +134 -0
- package/src/navigation/edit/navigation-menu-delete-control.js +81 -0
- package/src/navigation/edit/navigation-menu-name-control.js +22 -0
- package/src/navigation/edit/navigation-menu-name-modal.js +69 -0
- package/src/navigation/edit/navigation-menu-publish-button.js +57 -0
- package/src/navigation/edit/navigation-menu-selector.js +42 -0
- package/src/navigation/edit/placeholder/index.js +257 -0
- package/src/navigation/edit/placeholder/placeholder-preview.js +30 -0
- package/src/navigation/{responsive-wrapper.js → edit/responsive-wrapper.js} +7 -1
- package/src/navigation/edit/unsaved-inner-blocks.js +197 -0
- package/src/navigation/edit/use-list-view-modal.js +72 -0
- package/src/navigation/editor.scss +121 -48
- package/src/navigation/index.js +0 -2
- package/src/navigation/index.php +81 -15
- package/src/navigation/menu-items-to-blocks.js +8 -7
- package/src/navigation/save.js +7 -1
- package/src/navigation/style.scss +195 -223
- package/src/navigation/test/menu-items-to-blocks.js +6 -6
- package/src/navigation/use-navigation-menu.js +60 -0
- package/src/navigation/use-template-part-area-label.js +78 -0
- package/src/navigation/view.js +74 -4
- package/src/navigation-area/block.json +27 -0
- package/src/navigation-area/edit.js +105 -0
- package/src/navigation-area/index.js +26 -0
- package/src/navigation-area/index.php +21 -0
- package/src/navigation-area/inner-blocks.js +24 -0
- package/src/navigation-area/save.js +8 -0
- package/src/navigation-link/block.json +2 -1
- package/src/navigation-link/edit.js +154 -96
- package/src/navigation-link/editor.scss +57 -32
- package/src/navigation-link/index.js +2 -0
- package/src/navigation-link/index.php +13 -15
- package/src/navigation-link/style.scss +1 -1
- package/src/navigation-link/transforms.js +97 -0
- package/src/navigation-submenu/block.json +65 -0
- package/src/navigation-submenu/edit.js +662 -0
- package/src/navigation-submenu/editor.scss +42 -0
- package/src/navigation-submenu/icons.js +16 -0
- package/src/navigation-submenu/index.js +29 -0
- package/src/navigation-submenu/index.php +300 -0
- package/src/navigation-submenu/save.js +8 -0
- package/src/navigation-submenu/style.scss +20 -0
- package/src/navigation-submenu/transforms.js +58 -0
- package/src/navigation-submenu/view.js +62 -0
- package/src/page-list/block.json +2 -25
- package/src/page-list/convert-to-links-modal.js +20 -0
- package/src/page-list/edit.js +168 -96
- package/src/page-list/editor.scss +14 -0
- package/src/page-list/index.php +71 -34
- package/src/page-list/style.scss +2 -36
- package/src/page-list/test/convert-to-links-modal.js +6 -6
- package/src/paragraph/block.json +8 -1
- package/src/paragraph/edit.native.js +1 -0
- package/src/paragraph/style.scss +10 -1
- package/src/pattern/block.json +17 -0
- package/src/pattern/edit.js +41 -0
- package/src/pattern/index.js +12 -0
- package/src/pattern/index.php +44 -0
- package/src/post-author/block.json +14 -2
- package/src/post-author/style.scss +0 -1
- package/src/post-comment/block.json +4 -3
- package/src/post-comment/edit.js +23 -13
- package/src/post-comment/save.js +4 -6
- package/src/post-comments/block.json +8 -1
- package/src/post-comments/index.php +12 -3
- package/src/post-comments/style.scss +27 -1
- package/src/post-comments-count/block.json +7 -1
- package/src/post-comments-form/block.json +9 -2
- package/src/post-comments-form/index.php +0 -14
- package/src/post-comments-form/style.scss +47 -7
- package/src/post-comments-link/block.json +8 -1
- package/src/post-content/edit.js +2 -4
- package/src/post-content/style.scss +4 -0
- package/src/post-date/block.json +9 -1
- package/src/post-date/deprecated.js +52 -0
- package/src/post-date/edit.js +37 -23
- package/src/post-date/index.js +2 -0
- package/src/post-excerpt/block.json +12 -1
- package/src/post-excerpt/edit.js +2 -7
- package/src/post-excerpt/index.php +7 -1
- package/src/post-featured-image/block.json +10 -1
- package/src/post-featured-image/dimension-controls.js +43 -35
- package/src/post-featured-image/editor.scss +5 -10
- package/src/post-featured-image/style.scss +1 -0
- package/src/post-navigation-link/block.json +16 -1
- package/src/post-navigation-link/edit.js +29 -2
- package/src/post-navigation-link/index.php +27 -3
- package/src/post-template/block.json +4 -1
- package/src/post-template/edit.js +8 -3
- package/src/post-template/index.js +2 -2
- package/src/post-template/style.scss +2 -0
- package/src/post-terms/block.json +8 -1
- package/src/post-terms/edit.js +5 -18
- package/src/post-terms/use-post-terms.js +1 -1
- package/src/post-title/block.json +13 -1
- package/src/post-title/deprecated.js +65 -0
- package/src/post-title/edit.js +4 -6
- package/src/post-title/index.js +2 -0
- package/src/post-title/index.php +8 -3
- package/src/preformatted/block.json +9 -1
- package/src/preformatted/edit.js +2 -1
- package/src/preformatted/edit.native.js +20 -6
- package/src/preformatted/styles.native.scss +5 -0
- package/src/preformatted/test/__snapshots__/edit.native.js.snap +20 -2
- package/src/pullquote/block.json +12 -0
- package/src/pullquote/blockquote.native.js +12 -2
- package/src/pullquote/edit.native.js +129 -0
- package/src/pullquote/figure.native.js +17 -7
- package/src/pullquote/style.scss +1 -0
- package/src/query/edit/index.js +4 -4
- package/src/query/save.js +4 -6
- package/src/query/variations.js +4 -0
- package/src/query-pagination/block.json +16 -0
- package/src/query-pagination/deprecated.js +19 -0
- package/src/query-pagination/edit.js +59 -4
- package/src/query-pagination/editor.scss +3 -6
- package/src/query-pagination/index.js +2 -0
- package/src/query-pagination/index.php +24 -1
- package/src/query-pagination/query-pagination-arrow-controls.js +44 -0
- package/src/query-pagination/save.js +2 -6
- package/src/query-pagination/style.scss +22 -5
- package/src/query-pagination-next/block.json +9 -2
- package/src/query-pagination-next/edit.js +30 -8
- package/src/query-pagination-next/index.php +5 -1
- package/src/query-pagination-previous/block.json +9 -2
- package/src/query-pagination-previous/edit.js +30 -8
- package/src/query-pagination-previous/index.php +5 -1
- package/src/query-title/block.json +13 -1
- package/src/query-title/deprecated.js +51 -0
- package/src/query-title/index.js +2 -0
- package/src/quote/block.json +15 -1
- package/src/quote/deprecated.js +10 -0
- package/src/quote/style.scss +2 -0
- package/src/quote/theme.scss +1 -0
- package/src/reset.scss +2 -10
- package/src/search/edit.js +29 -0
- package/src/search/edit.native.js +46 -12
- package/src/search/index.php +12 -15
- package/src/search/style.scss +54 -52
- package/src/search/test/__snapshots__/edit.native.js.snap +40 -5
- package/src/search/test/edit.native.js +4 -0
- package/src/separator/separator-settings.js +1 -0
- package/src/separator/style.scss +0 -1
- package/src/site-logo/block.json +13 -2
- package/src/site-logo/edit.js +150 -57
- package/src/site-logo/editor.scss +101 -16
- package/src/site-logo/index.php +30 -0
- package/src/site-logo/style.scss +8 -2
- package/src/site-tagline/block.json +7 -1
- package/src/site-tagline/deprecated.js +49 -0
- package/src/site-tagline/index.js +2 -0
- package/src/site-title/block.json +20 -3
- package/src/site-title/deprecated.js +62 -0
- package/src/site-title/edit/index.js +36 -9
- package/src/site-title/index.js +2 -0
- package/src/site-title/index.php +15 -2
- package/src/social-link/editor.scss +4 -0
- package/src/social-links/block.json +23 -1
- package/src/social-links/deprecated.js +99 -0
- package/src/social-links/edit.js +15 -25
- package/src/social-links/editor.scss +4 -0
- package/src/social-links/save.js +5 -13
- package/src/social-links/style.scss +8 -9
- package/src/style.scss +2 -5
- package/src/table/block.json +12 -1
- package/src/template-part/edit/advanced-controls.js +3 -3
- package/src/template-part/edit/index.js +0 -3
- package/src/template-part/edit/inner-blocks.js +1 -1
- package/src/template-part/edit/placeholder/index.js +5 -3
- package/src/template-part/edit/placeholder/patterns-setup.js +3 -2
- package/src/template-part/edit/selection/template-part-previews.js +3 -1
- package/src/template-part/editor.scss +0 -16
- package/src/template-part/index.php +4 -4
- package/src/template-part/variations.js +2 -2
- package/src/term-description/block.json +4 -1
- package/src/term-description/edit.js +1 -1
- package/src/theme.scss +0 -10
- package/src/utils/clean-empty-object.js +23 -0
- package/src/utils/migrate-font-family.js +37 -0
- package/src/verse/block.json +10 -1
- package/src/verse/deprecated.js +86 -25
- package/src/video/edit-common-settings.js +2 -2
- package/src/video/edit.js +15 -5
- package/src/video/tracks-editor.js +2 -3
- package/build/buttons/variations.js +0 -33
- package/build/buttons/variations.js.map +0 -1
- package/build/embed/embed-controls.native.js +0 -32
- package/build/embed/embed-controls.native.js.map +0 -1
- package/build/embed/variations.native.js +0 -10
- package/build/embed/variations.native.js.map +0 -1
- package/build/gallery/gallery-button.native.js.map +0 -1
- package/build/gallery/gallery-image.js.map +0 -1
- package/build/gallery/gallery-image.native.js.map +0 -1
- package/build/gallery/tiles.native.js.map +0 -1
- package/build/image/image-editing/aspect-ratio-dropdown.js +0 -126
- package/build/image/image-editing/aspect-ratio-dropdown.js.map +0 -1
- package/build/image/image-editing/constants.js +0 -16
- package/build/image/image-editing/constants.js.map +0 -1
- package/build/image/image-editing/context.js +0 -59
- package/build/image/image-editing/context.js.map +0 -1
- package/build/image/image-editing/cropper.js +0 -83
- package/build/image/image-editing/cropper.js.map +0 -1
- package/build/image/image-editing/form-controls.js +0 -36
- package/build/image/image-editing/form-controls.js.map +0 -1
- package/build/image/image-editing/index.js +0 -60
- package/build/image/image-editing/index.js.map +0 -1
- package/build/image/image-editing/rotation-button.js +0 -37
- package/build/image/image-editing/rotation-button.js.map +0 -1
- package/build/image/image-editing/use-save-image.js +0 -84
- package/build/image/image-editing/use-save-image.js.map +0 -1
- package/build/image/image-editing/use-transform-image.js +0 -135
- package/build/image/image-editing/use-transform-image.js.map +0 -1
- package/build/image/image-editing/zoom-dropdown.js +0 -55
- package/build/image/image-editing/zoom-dropdown.js.map +0 -1
- package/build/navigation/block-navigation-list.js +0 -30
- package/build/navigation/block-navigation-list.js.map +0 -1
- package/build/navigation/edit.js +0 -274
- package/build/navigation/edit.js.map +0 -1
- package/build/navigation/placeholder-preview.js.map +0 -1
- package/build/navigation/placeholder.js +0 -129
- package/build/navigation/placeholder.js.map +0 -1
- package/build/navigation/responsive-wrapper.js.map +0 -1
- package/build/navigation/use-block-navigator.js +0 -50
- package/build/navigation/use-block-navigator.js.map +0 -1
- package/build/navigation/variations.js +0 -33
- package/build/navigation/variations.js.map +0 -1
- package/build/post-comment-author/edit.js +0 -51
- package/build/post-comment-author/edit.js.map +0 -1
- package/build/post-comment-author/index.js.map +0 -1
- package/build/post-comment-content/edit.js +0 -33
- package/build/post-comment-content/edit.js.map +0 -1
- package/build/post-comment-content/index.js.map +0 -1
- package/build/post-comment-date/edit.js +0 -62
- package/build/post-comment-date/edit.js.map +0 -1
- package/build/post-comment-date/index.js.map +0 -1
- package/build-module/buttons/variations.js +0 -24
- package/build-module/buttons/variations.js.map +0 -1
- package/build-module/embed/embed-controls.native.js +0 -21
- package/build-module/embed/embed-controls.native.js.map +0 -1
- package/build-module/embed/variations.native.js +0 -3
- package/build-module/embed/variations.native.js.map +0 -1
- package/build-module/gallery/gallery-button.native.js.map +0 -1
- package/build-module/gallery/gallery-image.js.map +0 -1
- package/build-module/gallery/gallery-image.native.js.map +0 -1
- package/build-module/gallery/tiles.native.js.map +0 -1
- package/build-module/image/image-editing/aspect-ratio-dropdown.js +0 -115
- package/build-module/image/image-editing/aspect-ratio-dropdown.js.map +0 -1
- package/build-module/image/image-editing/constants.js +0 -7
- package/build-module/image/image-editing/constants.js.map +0 -1
- package/build-module/image/image-editing/context.js +0 -44
- package/build-module/image/image-editing/context.js.map +0 -1
- package/build-module/image/image-editing/cropper.js +0 -69
- package/build-module/image/image-editing/cropper.js.map +0 -1
- package/build-module/image/image-editing/form-controls.js +0 -26
- package/build-module/image/image-editing/form-controls.js.map +0 -1
- package/build-module/image/image-editing/index.js +0 -37
- package/build-module/image/image-editing/index.js.map +0 -1
- package/build-module/image/image-editing/rotation-button.js +0 -26
- package/build-module/image/image-editing/rotation-button.js.map +0 -1
- package/build-module/image/image-editing/use-save-image.js +0 -70
- package/build-module/image/image-editing/use-save-image.js.map +0 -1
- package/build-module/image/image-editing/use-transform-image.js +0 -127
- package/build-module/image/image-editing/use-transform-image.js.map +0 -1
- package/build-module/image/image-editing/zoom-dropdown.js +0 -43
- package/build-module/image/image-editing/zoom-dropdown.js.map +0 -1
- package/build-module/navigation/block-navigation-list.js +0 -21
- package/build-module/navigation/block-navigation-list.js.map +0 -1
- package/build-module/navigation/edit.js +0 -254
- package/build-module/navigation/edit.js.map +0 -1
- package/build-module/navigation/placeholder-preview.js.map +0 -1
- package/build-module/navigation/placeholder.js +0 -113
- package/build-module/navigation/placeholder.js.map +0 -1
- package/build-module/navigation/responsive-wrapper.js.map +0 -1
- package/build-module/navigation/use-block-navigator.js +0 -38
- package/build-module/navigation/use-block-navigator.js.map +0 -1
- package/build-module/navigation/variations.js +0 -24
- package/build-module/navigation/variations.js.map +0 -1
- package/build-module/post-comment-author/edit.js +0 -40
- package/build-module/post-comment-author/edit.js.map +0 -1
- package/build-module/post-comment-author/index.js +0 -31
- package/build-module/post-comment-author/index.js.map +0 -1
- package/build-module/post-comment-content/edit.js +0 -24
- package/build-module/post-comment-content/edit.js.map +0 -1
- package/build-module/post-comment-content/index.js +0 -31
- package/build-module/post-comment-content/index.js.map +0 -1
- package/build-module/post-comment-date/edit.js +0 -52
- package/build-module/post-comment-date/edit.js.map +0 -1
- package/build-module/post-comment-date/index.js +0 -36
- package/build-module/post-comment-date/index.js.map +0 -1
- package/build-style/post-content/editor-rtl.css +0 -86
- package/build-style/post-content/editor.css +0 -86
- package/build-style/term-description/editor-rtl.css +0 -80
- package/build-style/term-description/editor.css +0 -80
- package/src/buttons/variations.js +0 -24
- package/src/embed/embed-controls.native.js +0 -23
- package/src/embed/variations.native.js +0 -3
- package/src/heading/editor.scss +0 -20
- package/src/image/image-editing/aspect-ratio-dropdown.js +0 -129
- package/src/image/image-editing/constants.js +0 -6
- package/src/image/image-editing/context.js +0 -56
- package/src/image/image-editing/cropper.js +0 -74
- package/src/image/image-editing/form-controls.js +0 -22
- package/src/image/image-editing/index.js +0 -52
- package/src/image/image-editing/rotation-button.js +0 -24
- package/src/image/image-editing/use-save-image.js +0 -97
- package/src/image/image-editing/use-transform-image.js +0 -162
- package/src/image/image-editing/zoom-dropdown.js +0 -40
- package/src/navigation/block-navigation-list.js +0 -29
- package/src/navigation/edit.js +0 -368
- package/src/navigation/placeholder-preview.js +0 -19
- package/src/navigation/placeholder.js +0 -154
- package/src/navigation/use-block-navigator.js +0 -45
- package/src/navigation/variations.js +0 -24
- package/src/post-author/editor.scss +0 -35
- package/src/post-comment-author/block.json +0 -13
- package/src/post-comment-author/edit.js +0 -32
- package/src/post-comment-author/index.php +0 -41
- package/src/post-comment-content/block.json +0 -13
- package/src/post-comment-content/edit.js +0 -24
- package/src/post-comment-content/index.php +0 -39
- package/src/post-comment-date/block.json +0 -18
- package/src/post-comment-date/edit.js +0 -54
- package/src/post-comment-date/index.php +0 -44
- package/src/post-content/editor.scss +0 -11
- package/src/query-title/editor.scss +0 -4
- package/src/term-description/editor.scss +0 -4
package/src/cover/transforms.js
CHANGED
|
@@ -13,11 +13,12 @@ const transforms = {
|
|
|
13
13
|
{
|
|
14
14
|
type: 'block',
|
|
15
15
|
blocks: [ 'core/image' ],
|
|
16
|
-
transform: ( { caption, url, align, id, anchor, style } ) =>
|
|
16
|
+
transform: ( { caption, url, alt, align, id, anchor, style } ) =>
|
|
17
17
|
createBlock(
|
|
18
18
|
'core/cover',
|
|
19
19
|
{
|
|
20
20
|
url,
|
|
21
|
+
alt,
|
|
21
22
|
align,
|
|
22
23
|
id,
|
|
23
24
|
anchor,
|
|
@@ -117,10 +118,11 @@ const transforms = {
|
|
|
117
118
|
! customGradient
|
|
118
119
|
);
|
|
119
120
|
},
|
|
120
|
-
transform: ( { title, url, align, id, anchor, style } ) =>
|
|
121
|
+
transform: ( { title, url, alt, align, id, anchor, style } ) =>
|
|
121
122
|
createBlock( 'core/image', {
|
|
122
123
|
caption: title,
|
|
123
124
|
url,
|
|
125
|
+
alt,
|
|
124
126
|
align,
|
|
125
127
|
id,
|
|
126
128
|
anchor,
|
package/src/editor.scss
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
// This tag marks the start of the styles that apply to editing canvas contents and need to be manipulated when we resize the editor.
|
|
2
|
-
#start-resizable-editor-section {
|
|
3
|
-
display: none;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
@import "./archives/editor.scss";
|
|
7
2
|
@import "./audio/editor.scss";
|
|
8
3
|
@import "./block/editor.scss";
|
|
@@ -16,7 +11,6 @@
|
|
|
16
11
|
@import "./freeform/editor.scss";
|
|
17
12
|
@import "./gallery/editor.scss";
|
|
18
13
|
@import "./group/editor.scss";
|
|
19
|
-
@import "./heading/editor.scss";
|
|
20
14
|
@import "./html/editor.scss";
|
|
21
15
|
@import "./image/editor.scss";
|
|
22
16
|
@import "./latest-posts/editor.scss";
|
|
@@ -24,12 +18,11 @@
|
|
|
24
18
|
@import "./more/editor.scss";
|
|
25
19
|
@import "./navigation/editor.scss";
|
|
26
20
|
@import "./navigation-link/editor.scss";
|
|
21
|
+
@import "./navigation-submenu/editor.scss";
|
|
27
22
|
@import "./nextpage/editor.scss";
|
|
28
23
|
@import "./page-list/editor.scss";
|
|
29
24
|
@import "./paragraph/editor.scss";
|
|
30
|
-
@import "./post-content/editor.scss";
|
|
31
25
|
@import "./post-excerpt/editor.scss";
|
|
32
|
-
@import "./post-author/editor.scss";
|
|
33
26
|
@import "./pullquote/editor.scss";
|
|
34
27
|
@import "./rss/editor.scss";
|
|
35
28
|
@import "./search/editor.scss";
|
|
@@ -45,47 +38,27 @@
|
|
|
45
38
|
@import "./template-part/editor.scss";
|
|
46
39
|
@import "./text-columns/editor.scss";
|
|
47
40
|
@import "./video/editor.scss";
|
|
48
|
-
@import "./query-title/editor.scss";
|
|
49
41
|
@import "./post-template/editor.scss";
|
|
50
42
|
@import "./query/editor.scss";
|
|
51
43
|
@import "./query-pagination/editor.scss";
|
|
52
44
|
@import "./query-pagination-numbers/editor.scss";
|
|
53
45
|
@import "./post-featured-image/editor.scss";
|
|
54
|
-
@import "./term-description/editor.scss";
|
|
55
46
|
|
|
56
47
|
:root .editor-styles-wrapper {
|
|
57
|
-
// Background colors.
|
|
58
48
|
@include background-colors-deprecated();
|
|
59
|
-
|
|
60
|
-
// Foreground colors.
|
|
61
49
|
@include foreground-colors-deprecated();
|
|
62
|
-
|
|
63
|
-
// Gradients
|
|
64
50
|
@include gradient-colors-deprecated();
|
|
65
51
|
}
|
|
66
52
|
|
|
67
|
-
// Font sizes.
|
|
53
|
+
// Font sizes (not used now, kept because of backward compatibility).
|
|
54
|
+
//
|
|
68
55
|
// The reason we add the editor class wrapper here is
|
|
69
56
|
// to avoid enqueing the classes twice: here and in ./editor.scss
|
|
70
|
-
.editor-styles-wrapper .has-
|
|
71
|
-
font-size: 13px;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.editor-styles-wrapper .has-regular-font-size, // Not used now, kept because of backward compatibility.
|
|
75
|
-
.editor-styles-wrapper .has-normal-font-size {
|
|
57
|
+
.editor-styles-wrapper .has-regular-font-size {
|
|
76
58
|
font-size: 16px;
|
|
77
59
|
}
|
|
78
60
|
|
|
79
|
-
.editor-styles-wrapper .has-
|
|
80
|
-
font-size: 20px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.editor-styles-wrapper .has-large-font-size {
|
|
84
|
-
font-size: 36px;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.editor-styles-wrapper .has-larger-font-size, // Not used now, kept because of backward compatibility.
|
|
88
|
-
.editor-styles-wrapper .has-huge-font-size {
|
|
61
|
+
.editor-styles-wrapper .has-larger-font-size {
|
|
89
62
|
font-size: 42px;
|
|
90
63
|
}
|
|
91
64
|
|
|
@@ -95,8 +68,3 @@
|
|
|
95
68
|
* These are only output in the editor, but styles here are NOT prefixed .editor-styles-wrapper.
|
|
96
69
|
* This allows us to create normalization styles that are easily overridden by editor styles.
|
|
97
70
|
*/
|
|
98
|
-
|
|
99
|
-
// This tag marks the end of the styles that apply to editing canvas contents and need to be manipulated when we resize the editor.
|
|
100
|
-
#end-resizable-editor-section {
|
|
101
|
-
display: none;
|
|
102
|
-
}
|
package/src/embed/edit.js
CHANGED
|
@@ -29,16 +29,6 @@ import { useBlockProps } from '@wordpress/block-editor';
|
|
|
29
29
|
import { store as coreStore } from '@wordpress/core-data';
|
|
30
30
|
import { View } from '@wordpress/primitives';
|
|
31
31
|
|
|
32
|
-
function getResponsiveHelp( checked ) {
|
|
33
|
-
return checked
|
|
34
|
-
? __(
|
|
35
|
-
'This embed will preserve its aspect ratio when the browser is resized.'
|
|
36
|
-
)
|
|
37
|
-
: __(
|
|
38
|
-
'This embed may not preserve its aspect ratio when the browser is resized.'
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
32
|
const EmbedEdit = ( props ) => {
|
|
43
33
|
const {
|
|
44
34
|
attributes: {
|
|
@@ -227,6 +217,7 @@ const EmbedEdit = ( props ) => {
|
|
|
227
217
|
// after the preview has been rendered can result in unwanted
|
|
228
218
|
// clipping or scrollbars. The `getAttributesFromPreview` function
|
|
229
219
|
// that `getMergedAttributes` uses is memoized so that we're not
|
|
220
|
+
// calculating them on every render.
|
|
230
221
|
const {
|
|
231
222
|
caption,
|
|
232
223
|
type,
|
|
@@ -242,7 +233,6 @@ const EmbedEdit = ( props ) => {
|
|
|
242
233
|
themeSupportsResponsive={ themeSupportsResponsive }
|
|
243
234
|
blockSupportsResponsive={ responsive }
|
|
244
235
|
allowResponsive={ allowResponsive }
|
|
245
|
-
getResponsiveHelp={ getResponsiveHelp }
|
|
246
236
|
toggleResponsive={ toggleResponsive }
|
|
247
237
|
switchBackToURLInput={ () => setIsEditingURL( true ) }
|
|
248
238
|
/>
|
package/src/embed/edit.native.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import {
|
|
5
5
|
createUpgradedEmbedBlock,
|
|
6
|
+
getClassNames,
|
|
7
|
+
fallback,
|
|
6
8
|
getAttributesFromPreview,
|
|
7
9
|
getEmbedInfoByProvider,
|
|
8
10
|
} from './util';
|
|
@@ -23,7 +25,7 @@ import classnames from 'classnames';
|
|
|
23
25
|
*/
|
|
24
26
|
import { _x } from '@wordpress/i18n';
|
|
25
27
|
import { useState, useEffect } from '@wordpress/element';
|
|
26
|
-
import { useSelect } from '@wordpress/data';
|
|
28
|
+
import { useDispatch, useSelect } from '@wordpress/data';
|
|
27
29
|
import {
|
|
28
30
|
useBlockProps,
|
|
29
31
|
store as blockEditorStore,
|
|
@@ -31,9 +33,18 @@ import {
|
|
|
31
33
|
import { store as coreStore } from '@wordpress/core-data';
|
|
32
34
|
import { View } from '@wordpress/primitives';
|
|
33
35
|
|
|
36
|
+
// The inline preview feature will be released progressible, for this reason
|
|
37
|
+
// the embed will only be considered previewable for the following providers list.
|
|
38
|
+
const PREVIEWABLE_PROVIDERS = [ 'youtube', 'twitter', 'instagram', 'vimeo' ];
|
|
39
|
+
// Some providers are rendering the inline preview as a WordPress embed and
|
|
40
|
+
// are not supported yet, so we need to disallow them with a fixed providers list.
|
|
41
|
+
const NOT_PREVIEWABLE_WP_EMBED_PROVIDERS = [ 'pinterest' ];
|
|
42
|
+
|
|
43
|
+
const WP_EMBED_TYPE = 'wp-embed';
|
|
44
|
+
|
|
34
45
|
const EmbedEdit = ( props ) => {
|
|
35
46
|
const {
|
|
36
|
-
attributes: { providerNameSlug, previewable, responsive, url },
|
|
47
|
+
attributes: { align, providerNameSlug, previewable, responsive, url },
|
|
37
48
|
attributes,
|
|
38
49
|
isSelected,
|
|
39
50
|
onReplace,
|
|
@@ -47,8 +58,8 @@ const EmbedEdit = ( props ) => {
|
|
|
47
58
|
title: _x( 'Embed', 'block title' ),
|
|
48
59
|
icon: embedContentIcon,
|
|
49
60
|
};
|
|
50
|
-
const
|
|
51
|
-
|
|
61
|
+
const embedInfoByProvider = getEmbedInfoByProvider( providerNameSlug );
|
|
62
|
+
const { icon, title } = embedInfoByProvider || defaultEmbedInfo;
|
|
52
63
|
|
|
53
64
|
const { wasBlockJustInserted } = useSelect(
|
|
54
65
|
( select ) => ( {
|
|
@@ -61,19 +72,33 @@ const EmbedEdit = ( props ) => {
|
|
|
61
72
|
const [ isEditingURL, setIsEditingURL ] = useState(
|
|
62
73
|
isSelected && wasBlockJustInserted && ! url
|
|
63
74
|
);
|
|
75
|
+
const [ showEmbedBottomSheet, setShowEmbedBottomSheet ] = useState(
|
|
76
|
+
isEditingURL
|
|
77
|
+
);
|
|
78
|
+
const { invalidateResolution } = useDispatch( coreStore );
|
|
64
79
|
|
|
65
|
-
const {
|
|
80
|
+
const {
|
|
81
|
+
preview,
|
|
82
|
+
fetching,
|
|
83
|
+
themeSupportsResponsive,
|
|
84
|
+
cannotEmbed,
|
|
85
|
+
} = useSelect(
|
|
66
86
|
( select ) => {
|
|
67
87
|
const {
|
|
68
88
|
getEmbedPreview,
|
|
89
|
+
hasFinishedResolution,
|
|
69
90
|
isPreviewEmbedFallback,
|
|
70
|
-
|
|
91
|
+
getThemeSupports,
|
|
71
92
|
} = select( coreStore );
|
|
72
93
|
if ( ! url ) {
|
|
73
94
|
return { fetching: false, cannotEmbed: false };
|
|
74
95
|
}
|
|
75
96
|
|
|
76
97
|
const embedPreview = getEmbedPreview( url );
|
|
98
|
+
const hasResolvedEmbedPreview = hasFinishedResolution(
|
|
99
|
+
'getEmbedPreview',
|
|
100
|
+
[ url ]
|
|
101
|
+
);
|
|
77
102
|
const previewIsFallback = isPreviewEmbedFallback( url );
|
|
78
103
|
|
|
79
104
|
// The external oEmbed provider does not exist. We got no type info and no html.
|
|
@@ -87,16 +112,12 @@ const EmbedEdit = ( props ) => {
|
|
|
87
112
|
const validPreview =
|
|
88
113
|
!! embedPreview && ! badEmbedProvider && ! wordpressCantEmbed;
|
|
89
114
|
|
|
90
|
-
// `isRequestingEmbedPreview` is returning false just before an
|
|
91
|
-
// `apiFetch` is triggered. We're assuming that a fetch is happening
|
|
92
|
-
// if there is an `attributesUrl` set but there is no data in
|
|
93
|
-
// `embedPreview` which represents the response returned from the API.
|
|
94
|
-
const isFetching =
|
|
95
|
-
isRequestingEmbedPreview( url ) || ( url && ! embedPreview );
|
|
96
|
-
|
|
97
115
|
return {
|
|
98
116
|
preview: validPreview ? embedPreview : undefined,
|
|
99
|
-
fetching:
|
|
117
|
+
fetching: ! hasResolvedEmbedPreview,
|
|
118
|
+
themeSupportsResponsive: getThemeSupports()[
|
|
119
|
+
'responsive-embeds'
|
|
120
|
+
],
|
|
100
121
|
cannotEmbed: ! validPreview || previewIsFallback,
|
|
101
122
|
};
|
|
102
123
|
},
|
|
@@ -104,22 +125,40 @@ const EmbedEdit = ( props ) => {
|
|
|
104
125
|
);
|
|
105
126
|
|
|
106
127
|
/**
|
|
107
|
-
*
|
|
128
|
+
* Returns the attributes derived from the preview, merged with the current attributes.
|
|
129
|
+
*
|
|
130
|
+
* @param {boolean} ignorePreviousClassName Determines if the previous className attribute should be ignored when merging.
|
|
131
|
+
* @return {Object} Merged attributes.
|
|
108
132
|
*/
|
|
109
|
-
const getMergedAttributes = () => {
|
|
133
|
+
const getMergedAttributes = ( ignorePreviousClassName = false ) => {
|
|
110
134
|
const { allowResponsive, className } = attributes;
|
|
111
135
|
return {
|
|
112
136
|
...attributes,
|
|
113
137
|
...getAttributesFromPreview(
|
|
114
138
|
preview,
|
|
115
139
|
title,
|
|
116
|
-
className,
|
|
140
|
+
ignorePreviousClassName ? undefined : className,
|
|
117
141
|
responsive,
|
|
118
142
|
allowResponsive
|
|
119
143
|
),
|
|
120
144
|
};
|
|
121
145
|
};
|
|
122
146
|
|
|
147
|
+
const toggleResponsive = () => {
|
|
148
|
+
const { allowResponsive, className } = attributes;
|
|
149
|
+
const { html } = preview;
|
|
150
|
+
const newAllowResponsive = ! allowResponsive;
|
|
151
|
+
|
|
152
|
+
setAttributes( {
|
|
153
|
+
allowResponsive: newAllowResponsive,
|
|
154
|
+
className: getClassNames(
|
|
155
|
+
html,
|
|
156
|
+
className,
|
|
157
|
+
responsive && newAllowResponsive
|
|
158
|
+
),
|
|
159
|
+
} );
|
|
160
|
+
};
|
|
161
|
+
|
|
123
162
|
useEffect( () => {
|
|
124
163
|
if ( ! preview?.html || ! cannotEmbed || fetching ) {
|
|
125
164
|
return;
|
|
@@ -134,15 +173,12 @@ const EmbedEdit = ( props ) => {
|
|
|
134
173
|
// Handle incoming preview
|
|
135
174
|
useEffect( () => {
|
|
136
175
|
if ( preview && ! isEditingURL ) {
|
|
137
|
-
//
|
|
138
|
-
//
|
|
139
|
-
// the
|
|
140
|
-
//
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
// that `getMergedAttributes` uses is memoized so that we're not
|
|
144
|
-
// calculating them on every render.
|
|
145
|
-
setAttributes( getMergedAttributes() );
|
|
176
|
+
// When obtaining an incoming preview, we set the attributes derived from
|
|
177
|
+
// the preview data. In this case when getting the merged attributes,
|
|
178
|
+
// we ignore the previous classname because it might not match the expected
|
|
179
|
+
// classes by the new preview.
|
|
180
|
+
setAttributes( getMergedAttributes( true ) );
|
|
181
|
+
|
|
146
182
|
if ( onReplace ) {
|
|
147
183
|
const upgradedBlock = createUpgradedEmbedBlock(
|
|
148
184
|
props,
|
|
@@ -156,6 +192,10 @@ const EmbedEdit = ( props ) => {
|
|
|
156
192
|
}
|
|
157
193
|
}, [ preview, isEditingURL ] );
|
|
158
194
|
|
|
195
|
+
useEffect( () => setShowEmbedBottomSheet( isEditingURL ), [
|
|
196
|
+
isEditingURL,
|
|
197
|
+
] );
|
|
198
|
+
|
|
159
199
|
const blockProps = useBlockProps();
|
|
160
200
|
|
|
161
201
|
if ( fetching ) {
|
|
@@ -167,32 +207,71 @@ const EmbedEdit = ( props ) => {
|
|
|
167
207
|
}
|
|
168
208
|
|
|
169
209
|
const showEmbedPlaceholder = ! preview || cannotEmbed;
|
|
170
|
-
|
|
210
|
+
|
|
211
|
+
// Even though we set attributes that get derived from the preview,
|
|
212
|
+
// we don't access them directly because for the initial render,
|
|
213
|
+
// the `setAttributes` call will not have taken effect. If we're
|
|
214
|
+
// rendering responsive content, setting the responsive classes
|
|
215
|
+
// after the preview has been rendered can result in unwanted
|
|
216
|
+
// clipping or scrollbars. The `getAttributesFromPreview` function
|
|
217
|
+
// that `getMergedAttributes` uses is memoized so that we're not
|
|
218
|
+
// calculating them on every render.
|
|
219
|
+
const {
|
|
220
|
+
type,
|
|
221
|
+
allowResponsive,
|
|
222
|
+
className: classFromPreview,
|
|
223
|
+
} = getMergedAttributes();
|
|
171
224
|
const className = classnames( classFromPreview, props.className );
|
|
172
225
|
|
|
226
|
+
const isProviderPreviewable =
|
|
227
|
+
PREVIEWABLE_PROVIDERS.includes( providerNameSlug ) ||
|
|
228
|
+
// For WordPress embeds, we enable the inline preview for all its providers
|
|
229
|
+
// except the ones that are not supported yet.
|
|
230
|
+
( WP_EMBED_TYPE === type &&
|
|
231
|
+
! NOT_PREVIEWABLE_WP_EMBED_PROVIDERS.includes( providerNameSlug ) );
|
|
232
|
+
|
|
233
|
+
const bottomSheetLabel = WP_EMBED_TYPE === type ? 'WordPress' : title;
|
|
234
|
+
|
|
173
235
|
return (
|
|
174
236
|
<>
|
|
175
237
|
{ showEmbedPlaceholder ? (
|
|
176
|
-
|
|
177
|
-
<
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
label={ title }
|
|
181
|
-
onPress={ ( event ) => {
|
|
182
|
-
onFocus( event );
|
|
183
|
-
setIsEditingURL( true );
|
|
184
|
-
} }
|
|
185
|
-
cannotEmbed={ cannotEmbed }
|
|
238
|
+
<>
|
|
239
|
+
<EmbedControls
|
|
240
|
+
showEditButton={ cannotEmbed }
|
|
241
|
+
switchBackToURLInput={ () => setIsEditingURL( true ) }
|
|
186
242
|
/>
|
|
187
|
-
|
|
243
|
+
<View { ...blockProps }>
|
|
244
|
+
<EmbedPlaceholder
|
|
245
|
+
icon={ icon }
|
|
246
|
+
isSelected={ isSelected }
|
|
247
|
+
label={ title }
|
|
248
|
+
onPress={ ( event ) => {
|
|
249
|
+
onFocus( event );
|
|
250
|
+
setIsEditingURL( true );
|
|
251
|
+
} }
|
|
252
|
+
cannotEmbed={ cannotEmbed }
|
|
253
|
+
fallback={ () => fallback( url, onReplace ) }
|
|
254
|
+
tryAgain={ () => {
|
|
255
|
+
invalidateResolution( 'getEmbedPreview', [
|
|
256
|
+
url,
|
|
257
|
+
] );
|
|
258
|
+
} }
|
|
259
|
+
/>
|
|
260
|
+
</View>
|
|
261
|
+
</>
|
|
188
262
|
) : (
|
|
189
263
|
<>
|
|
190
264
|
<EmbedControls
|
|
191
265
|
showEditButton={ preview && ! cannotEmbed }
|
|
266
|
+
themeSupportsResponsive={ themeSupportsResponsive }
|
|
267
|
+
blockSupportsResponsive={ responsive }
|
|
268
|
+
allowResponsive={ allowResponsive }
|
|
269
|
+
toggleResponsive={ toggleResponsive }
|
|
192
270
|
switchBackToURLInput={ () => setIsEditingURL( true ) }
|
|
193
271
|
/>
|
|
194
272
|
<View { ...blockProps }>
|
|
195
273
|
<EmbedPreview
|
|
274
|
+
align={ align }
|
|
196
275
|
className={ className }
|
|
197
276
|
clientId={ clientId }
|
|
198
277
|
icon={ icon }
|
|
@@ -201,20 +280,26 @@ const EmbedEdit = ( props ) => {
|
|
|
201
280
|
label={ title }
|
|
202
281
|
onFocus={ onFocus }
|
|
203
282
|
preview={ preview }
|
|
283
|
+
isProviderPreviewable={ isProviderPreviewable }
|
|
204
284
|
previewable={ previewable }
|
|
205
285
|
type={ type }
|
|
206
286
|
url={ url }
|
|
287
|
+
isDefaultEmbedInfo={ ! embedInfoByProvider }
|
|
207
288
|
/>
|
|
208
289
|
</View>
|
|
209
290
|
</>
|
|
210
291
|
) }
|
|
211
292
|
<EmbedBottomSheet
|
|
212
293
|
value={ url }
|
|
213
|
-
|
|
214
|
-
|
|
294
|
+
label={ bottomSheetLabel }
|
|
295
|
+
isVisible={ showEmbedBottomSheet }
|
|
296
|
+
onClose={ () => setShowEmbedBottomSheet( false ) }
|
|
215
297
|
onSubmit={ ( value ) => {
|
|
216
|
-
|
|
298
|
+
// The order of the following calls is important, we need to update the URL attribute before changing `isEditingURL`,
|
|
299
|
+
// otherwise the side-effect that potentially replaces the block when updating the local state won't use the new URL
|
|
300
|
+
// for creating the new block.
|
|
217
301
|
setAttributes( { url: value } );
|
|
302
|
+
setIsEditingURL( false );
|
|
218
303
|
} }
|
|
219
304
|
/>
|
|
220
305
|
</>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { __ } from '@wordpress/i18n';
|
|
4
|
+
import { __, sprintf } from '@wordpress/i18n';
|
|
5
5
|
import {
|
|
6
6
|
LinkSettingsNavigation,
|
|
7
7
|
FooterMessageLink,
|
|
@@ -11,28 +11,34 @@ import { useDispatch } from '@wordpress/data';
|
|
|
11
11
|
import { store as noticesStore } from '@wordpress/notices';
|
|
12
12
|
import { useCallback, useState } from '@wordpress/element';
|
|
13
13
|
|
|
14
|
-
const
|
|
15
|
-
url: {
|
|
16
|
-
label: __( 'Embed link' ),
|
|
17
|
-
placeholder: __( 'Add link' ),
|
|
18
|
-
autoFocus: true,
|
|
19
|
-
autoFill: true,
|
|
20
|
-
},
|
|
21
|
-
footer: {
|
|
22
|
-
label: (
|
|
23
|
-
<FooterMessageLink
|
|
24
|
-
href={ __( 'https://wordpress.org/support/article/embeds/' ) }
|
|
25
|
-
value={ __( 'Learn more about embeds' ) }
|
|
26
|
-
/>
|
|
27
|
-
),
|
|
28
|
-
separatorType: 'topFullWidth',
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const EmbedBottomSheet = ( { value, isVisible, onClose, onSubmit } ) => {
|
|
14
|
+
const EmbedBottomSheet = ( { value, label, isVisible, onClose, onSubmit } ) => {
|
|
33
15
|
const [ url, setURL ] = useState( value );
|
|
34
16
|
const { createErrorNotice } = useDispatch( noticesStore );
|
|
35
17
|
|
|
18
|
+
const linkSettingsOptions = {
|
|
19
|
+
url: {
|
|
20
|
+
label: sprintf(
|
|
21
|
+
// translators: %s: embed block variant's label e.g: "Twitter".
|
|
22
|
+
__( '%s link' ),
|
|
23
|
+
label
|
|
24
|
+
),
|
|
25
|
+
placeholder: __( 'Add link' ),
|
|
26
|
+
autoFocus: true,
|
|
27
|
+
autoFill: true,
|
|
28
|
+
},
|
|
29
|
+
footer: {
|
|
30
|
+
label: (
|
|
31
|
+
<FooterMessageLink
|
|
32
|
+
href={ __(
|
|
33
|
+
'https://wordpress.org/support/article/embeds/'
|
|
34
|
+
) }
|
|
35
|
+
value={ __( 'Learn more about embeds' ) }
|
|
36
|
+
/>
|
|
37
|
+
),
|
|
38
|
+
separatorType: 'topFullWidth',
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
|
|
36
42
|
const onDismiss = useCallback( () => {
|
|
37
43
|
if ( url !== '' ) {
|
|
38
44
|
if ( isURL( url ) ) {
|
|
@@ -42,12 +48,10 @@ const EmbedBottomSheet = ( { value, isVisible, onClose, onSubmit } ) => {
|
|
|
42
48
|
__( 'Invalid URL. Please enter a valid URL.' )
|
|
43
49
|
);
|
|
44
50
|
// If the URL was already defined, we submit it to stop showing the embed placeholder.
|
|
45
|
-
|
|
46
|
-
onSubmit( value );
|
|
47
|
-
}
|
|
51
|
+
onSubmit( value );
|
|
48
52
|
}
|
|
49
|
-
} else
|
|
50
|
-
// Resets the URL when new value is empty
|
|
53
|
+
} else {
|
|
54
|
+
// Resets the URL when new value is empty
|
|
51
55
|
onSubmit( '' );
|
|
52
56
|
}
|
|
53
57
|
}, [ url, onSubmit, value ] );
|
|
@@ -64,6 +68,7 @@ const EmbedBottomSheet = ( { value, isVisible, onClose, onSubmit } ) => {
|
|
|
64
68
|
onDismiss={ onDismiss }
|
|
65
69
|
setAttributes={ setAttributes }
|
|
66
70
|
options={ linkSettingsOptions }
|
|
71
|
+
testID="embed-edit-url-modal"
|
|
67
72
|
withBottomSheet
|
|
68
73
|
showIcon
|
|
69
74
|
/>
|
|
@@ -11,12 +11,21 @@ import {
|
|
|
11
11
|
import { BlockControls, InspectorControls } from '@wordpress/block-editor';
|
|
12
12
|
import { edit } from '@wordpress/icons';
|
|
13
13
|
|
|
14
|
+
function getResponsiveHelp( checked ) {
|
|
15
|
+
return checked
|
|
16
|
+
? __(
|
|
17
|
+
'This embed will preserve its aspect ratio when the browser is resized.'
|
|
18
|
+
)
|
|
19
|
+
: __(
|
|
20
|
+
'This embed may not preserve its aspect ratio when the browser is resized.'
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
14
24
|
const EmbedControls = ( {
|
|
15
25
|
blockSupportsResponsive,
|
|
16
26
|
showEditButton,
|
|
17
27
|
themeSupportsResponsive,
|
|
18
28
|
allowResponsive,
|
|
19
|
-
getResponsiveHelp,
|
|
20
29
|
toggleResponsive,
|
|
21
30
|
switchBackToURLInput,
|
|
22
31
|
} ) => (
|
|
@@ -8,7 +8,7 @@ import { TouchableOpacity, TouchableWithoutFeedback, Text } from 'react-native';
|
|
|
8
8
|
*/
|
|
9
9
|
import { View } from '@wordpress/primitives';
|
|
10
10
|
|
|
11
|
-
import { __ } from '@wordpress/i18n';
|
|
11
|
+
import { __, sprintf } from '@wordpress/i18n';
|
|
12
12
|
import { useRef, useState } from '@wordpress/element';
|
|
13
13
|
import { usePreferredColorSchemeStyle } from '@wordpress/compose';
|
|
14
14
|
import { requestPreview } from '@wordpress/react-native-bridge';
|
|
@@ -16,13 +16,21 @@ import { useSelect } from '@wordpress/data';
|
|
|
16
16
|
import { store as editorStore } from '@wordpress/editor';
|
|
17
17
|
import { BottomSheet, Icon, TextControl } from '@wordpress/components';
|
|
18
18
|
import { help } from '@wordpress/icons';
|
|
19
|
+
import { BlockIcon } from '@wordpress/block-editor';
|
|
19
20
|
|
|
20
21
|
/**
|
|
21
22
|
* Internal dependencies
|
|
22
23
|
*/
|
|
23
24
|
import styles from './styles.scss';
|
|
24
25
|
|
|
25
|
-
const EmbedNoPreview = ( {
|
|
26
|
+
const EmbedNoPreview = ( {
|
|
27
|
+
label,
|
|
28
|
+
icon,
|
|
29
|
+
isSelected,
|
|
30
|
+
onPress,
|
|
31
|
+
previewable,
|
|
32
|
+
isDefaultEmbedInfo,
|
|
33
|
+
} ) => {
|
|
26
34
|
const shouldRequestReview = useRef( false );
|
|
27
35
|
const [ isSheetVisible, setIsSheetVisible ] = useState( false );
|
|
28
36
|
|
|
@@ -38,10 +46,6 @@ const EmbedNoPreview = ( { label, icon, isSelected, onPress } ) => {
|
|
|
38
46
|
styles.embed__label,
|
|
39
47
|
styles[ 'embed__label--dark' ]
|
|
40
48
|
);
|
|
41
|
-
const embedIconStyle = usePreferredColorSchemeStyle(
|
|
42
|
-
styles.embed__icon,
|
|
43
|
-
styles[ 'embed__icon--dark' ]
|
|
44
|
-
);
|
|
45
49
|
const descriptionStyle = usePreferredColorSchemeStyle(
|
|
46
50
|
styles.embed__description,
|
|
47
51
|
styles[ 'embed__description--dark' ]
|
|
@@ -76,11 +80,19 @@ const EmbedNoPreview = ( { label, icon, isSelected, onPress } ) => {
|
|
|
76
80
|
postType === 'page' ? __( 'Preview page' ) : __( 'Preview post' );
|
|
77
81
|
const comingSoonDescription =
|
|
78
82
|
postType === 'page'
|
|
79
|
-
?
|
|
80
|
-
|
|
83
|
+
? sprintf(
|
|
84
|
+
// translators: %s: embed block variant's label e.g: "Twitter".
|
|
85
|
+
__(
|
|
86
|
+
'We’re working hard on adding support for %s previews. In the meantime, you can preview the embedded content on the page.'
|
|
87
|
+
),
|
|
88
|
+
label
|
|
81
89
|
)
|
|
82
|
-
:
|
|
83
|
-
|
|
90
|
+
: sprintf(
|
|
91
|
+
// translators: %s: embed block variant's label e.g: "Twitter".
|
|
92
|
+
__(
|
|
93
|
+
'We’re working hard on adding support for %s previews. In the meantime, you can preview the embedded content on the post.'
|
|
94
|
+
),
|
|
95
|
+
label
|
|
84
96
|
);
|
|
85
97
|
|
|
86
98
|
function onOpenSheet() {
|
|
@@ -109,7 +121,7 @@ const EmbedNoPreview = ( { label, icon, isSelected, onPress } ) => {
|
|
|
109
121
|
onPressContainer();
|
|
110
122
|
}
|
|
111
123
|
|
|
112
|
-
|
|
124
|
+
const embedNoProviderPreview = (
|
|
113
125
|
<>
|
|
114
126
|
<TouchableWithoutFeedback
|
|
115
127
|
accessibilityRole={ 'button' }
|
|
@@ -118,10 +130,14 @@ const EmbedNoPreview = ( { label, icon, isSelected, onPress } ) => {
|
|
|
118
130
|
onPress={ onPressContainer }
|
|
119
131
|
>
|
|
120
132
|
<View style={ containerStyle }>
|
|
121
|
-
<
|
|
133
|
+
<BlockIcon icon={ icon } />
|
|
122
134
|
<Text style={ labelStyle }>{ label }</Text>
|
|
123
135
|
<Text style={ descriptionStyle }>
|
|
124
|
-
{
|
|
136
|
+
{ sprintf(
|
|
137
|
+
// translators: %s: embed block variant's label e.g: "Twitter".
|
|
138
|
+
__( '%s previews not yet available' ),
|
|
139
|
+
label
|
|
140
|
+
) }
|
|
125
141
|
</Text>
|
|
126
142
|
<Text style={ styles.embed__action }>
|
|
127
143
|
{ previewButtonText.toUpperCase() }
|
|
@@ -147,6 +163,7 @@ const EmbedNoPreview = ( { label, icon, isSelected, onPress } ) => {
|
|
|
147
163
|
hideHeader
|
|
148
164
|
onDismiss={ onDismissSheet }
|
|
149
165
|
onClose={ onCloseSheet }
|
|
166
|
+
testID="embed-no-preview-modal"
|
|
150
167
|
>
|
|
151
168
|
<View style={ styles[ 'embed-no-preview__container' ] }>
|
|
152
169
|
<View style={ sheetIconStyle }>
|
|
@@ -157,7 +174,15 @@ const EmbedNoPreview = ( { label, icon, isSelected, onPress } ) => {
|
|
|
157
174
|
/>
|
|
158
175
|
</View>
|
|
159
176
|
<Text style={ sheetTitleStyle }>
|
|
160
|
-
{
|
|
177
|
+
{ isDefaultEmbedInfo
|
|
178
|
+
? __( 'Embed block previews are coming soon' )
|
|
179
|
+
: sprintf(
|
|
180
|
+
// translators: %s: embed block variant's label e.g: "Twitter".
|
|
181
|
+
__(
|
|
182
|
+
'%s embed block previews are coming soon'
|
|
183
|
+
),
|
|
184
|
+
label
|
|
185
|
+
) }
|
|
161
186
|
</Text>
|
|
162
187
|
<Text style={ sheetDescriptionStyle }>
|
|
163
188
|
{ comingSoonDescription }
|
|
@@ -181,6 +206,21 @@ const EmbedNoPreview = ( { label, icon, isSelected, onPress } ) => {
|
|
|
181
206
|
</BottomSheet>
|
|
182
207
|
</>
|
|
183
208
|
);
|
|
209
|
+
|
|
210
|
+
return (
|
|
211
|
+
<>
|
|
212
|
+
{ previewable ? (
|
|
213
|
+
embedNoProviderPreview
|
|
214
|
+
) : (
|
|
215
|
+
<View style={ containerStyle }>
|
|
216
|
+
<BlockIcon icon={ icon } />
|
|
217
|
+
<Text style={ labelStyle }>
|
|
218
|
+
{ __( 'No preview available' ) }
|
|
219
|
+
</Text>
|
|
220
|
+
</View>
|
|
221
|
+
) }
|
|
222
|
+
</>
|
|
223
|
+
);
|
|
184
224
|
};
|
|
185
225
|
|
|
186
226
|
export default EmbedNoPreview;
|