@wordpress/block-library 8.34.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -4
- package/README.md +1 -1
- package/build/archives/edit.js +59 -51
- package/build/archives/edit.js.map +1 -1
- package/build/audio/deprecated.js +13 -11
- package/build/audio/deprecated.js.map +1 -1
- package/build/audio/edit.js +85 -76
- package/build/audio/edit.js.map +1 -1
- package/build/audio/edit.native.js +97 -83
- package/build/audio/edit.native.js.map +1 -1
- package/build/audio/save.js +15 -14
- package/build/audio/save.js.map +1 -1
- package/build/avatar/edit.js +121 -110
- package/build/avatar/edit.js.map +1 -1
- package/build/avatar/user-control.js +2 -2
- package/build/avatar/user-control.js.map +1 -1
- package/build/block/edit-title.native.js +29 -24
- package/build/block/edit-title.native.js.map +1 -1
- package/build/block/edit.js +69 -197
- package/build/block/edit.js.map +1 -1
- package/build/block/edit.native.js +50 -39
- package/build/block/edit.native.js.map +1 -1
- package/build/button/color-background.native.js +14 -13
- package/build/button/color-background.native.js.map +1 -1
- package/build/button/deprecated.js +134 -121
- package/build/button/deprecated.js.map +1 -1
- package/build/button/edit.js +125 -114
- package/build/button/edit.js.map +1 -1
- package/build/button/edit.native.js +85 -71
- package/build/button/edit.native.js.map +1 -1
- package/build/button/index.js +1 -0
- package/build/button/index.js.map +1 -1
- package/build/button/save.js +17 -16
- package/build/button/save.js.map +1 -1
- package/build/buttons/deprecated.js +11 -9
- package/build/buttons/deprecated.js.map +1 -1
- package/build/buttons/edit.js +4 -4
- package/build/buttons/edit.js.map +1 -1
- package/build/buttons/edit.native.js +38 -34
- package/build/buttons/edit.native.js.map +1 -1
- package/build/buttons/save.js +4 -4
- package/build/buttons/save.js.map +1 -1
- package/build/calendar/edit.js +22 -18
- package/build/calendar/edit.js.map +1 -1
- package/build/categories/edit.js +73 -58
- package/build/categories/edit.js.map +1 -1
- package/build/code/edit.js +19 -18
- package/build/code/edit.js.map +1 -1
- package/build/code/edit.native.js +22 -21
- package/build/code/edit.native.js.map +1 -1
- package/build/code/save.js +14 -13
- package/build/code/save.js.map +1 -1
- package/build/column/column-preview.native.js +14 -15
- package/build/column/column-preview.native.js.map +1 -1
- package/build/column/deprecated.js +7 -6
- package/build/column/deprecated.js.map +1 -1
- package/build/column/edit.js +35 -28
- package/build/column/edit.js.map +1 -1
- package/build/column/edit.native.js +52 -38
- package/build/column/edit.native.js.map +1 -1
- package/build/column/save.js +4 -4
- package/build/column/save.js.map +1 -1
- package/build/columns/deprecated.js +17 -15
- package/build/columns/deprecated.js.map +1 -1
- package/build/columns/edit.js +63 -52
- package/build/columns/edit.js.map +1 -1
- package/build/columns/edit.native.js +68 -56
- package/build/columns/edit.native.js.map +1 -1
- package/build/columns/save.js +4 -4
- package/build/columns/save.js.map +1 -1
- package/build/columns/variations.js +38 -33
- package/build/columns/variations.js.map +1 -1
- package/build/comment-author-avatar/edit.js +33 -26
- package/build/comment-author-avatar/edit.js.map +1 -1
- package/build/comment-author-name/edit.js +42 -35
- package/build/comment-author-name/edit.js.map +1 -1
- package/build/comment-content/edit.js +30 -20
- package/build/comment-content/edit.js.map +1 -1
- package/build/comment-date/edit.js +36 -27
- package/build/comment-date/edit.js.map +1 -1
- package/build/comment-edit-link/edit.js +34 -26
- package/build/comment-edit-link/edit.js.map +1 -1
- package/build/comment-reply-link/edit.js +22 -18
- package/build/comment-reply-link/edit.js.map +1 -1
- package/build/comment-template/edit.js +50 -46
- package/build/comment-template/edit.js.map +1 -1
- package/build/comment-template/save.js +2 -2
- package/build/comment-template/save.js.map +1 -1
- package/build/comments/deprecated.js +5 -4
- package/build/comments/deprecated.js.map +1 -1
- package/build/comments/edit/comments-inspector-controls.js +26 -23
- package/build/comments/edit/comments-inspector-controls.js.map +1 -1
- package/build/comments/edit/comments-legacy.js +29 -24
- package/build/comments/edit/comments-legacy.js.map +1 -1
- package/build/comments/edit/index.js +10 -8
- package/build/comments/edit/index.js.map +1 -1
- package/build/comments/edit/placeholder.js +109 -77
- package/build/comments/edit/placeholder.js.map +1 -1
- package/build/comments/save.js +2 -2
- package/build/comments/save.js.map +1 -1
- package/build/comments-pagination/comments-pagination-arrow-controls.js +14 -13
- package/build/comments-pagination/comments-pagination-arrow-controls.js.map +1 -1
- package/build/comments-pagination/edit.js +21 -14
- package/build/comments-pagination/edit.js.map +1 -1
- package/build/comments-pagination/save.js +2 -2
- package/build/comments-pagination/save.js.map +1 -1
- package/build/comments-pagination-next/edit.js +17 -15
- package/build/comments-pagination-next/edit.js.map +1 -1
- package/build/comments-pagination-numbers/edit.js +30 -27
- package/build/comments-pagination-numbers/edit.js.map +1 -1
- package/build/comments-pagination-previous/edit.js +17 -15
- package/build/comments-pagination-previous/edit.js.map +1 -1
- package/build/comments-title/edit.js +42 -35
- package/build/comments-title/edit.js.map +1 -1
- package/build/cover/controls.native.js +124 -113
- package/build/cover/controls.native.js.map +1 -1
- package/build/cover/deprecated.js +397 -380
- package/build/cover/deprecated.js.map +1 -1
- package/build/cover/edit/block-controls.js +30 -26
- package/build/cover/edit/block-controls.js.map +1 -1
- package/build/cover/edit/cover-placeholder.js +6 -5
- package/build/cover/edit/cover-placeholder.js.map +1 -1
- package/build/cover/edit/index.js +94 -86
- package/build/cover/edit/index.js.map +1 -1
- package/build/cover/edit/inspector-controls.js +167 -147
- package/build/cover/edit/inspector-controls.js.map +1 -1
- package/build/cover/edit/resizable-cover-popover.js +4 -4
- package/build/cover/edit/resizable-cover-popover.js.map +1 -1
- package/build/cover/edit.native.js +238 -199
- package/build/cover/edit.native.js.map +1 -1
- package/build/cover/focal-point-settings-button.native.js +10 -8
- package/build/cover/focal-point-settings-button.native.js.map +1 -1
- package/build/cover/index.js +1 -0
- package/build/cover/index.js.map +1 -1
- package/build/cover/overlay-color-settings.native.js +4 -5
- package/build/cover/overlay-color-settings.native.js.map +1 -1
- package/build/cover/save.js +52 -51
- package/build/cover/save.js.map +1 -1
- package/build/details/edit.js +32 -25
- package/build/details/edit.js.map +1 -1
- package/build/details/save.js +9 -6
- package/build/details/save.js.map +1 -1
- package/build/embed/deprecated.js +21 -18
- package/build/embed/deprecated.js.map +1 -1
- package/build/embed/edit.js +62 -57
- package/build/embed/edit.js.map +1 -1
- package/build/embed/edit.native.js +67 -58
- package/build/embed/edit.native.js.map +1 -1
- package/build/embed/embed-controls.js +25 -16
- package/build/embed/embed-controls.js.map +1 -1
- package/build/embed/embed-controls.native.js +24 -18
- package/build/embed/embed-controls.native.js.map +1 -1
- package/build/embed/embed-link-settings.native.js +3 -3
- package/build/embed/embed-link-settings.native.js.map +1 -1
- package/build/embed/embed-loading.js +5 -4
- package/build/embed/embed-loading.js.map +1 -1
- package/build/embed/embed-loading.native.js +7 -6
- package/build/embed/embed-loading.native.js.map +1 -1
- package/build/embed/embed-no-preview.native.js +87 -70
- package/build/embed/embed-no-preview.native.js.map +1 -1
- package/build/embed/embed-placeholder.js +46 -36
- package/build/embed/embed-placeholder.js.map +1 -1
- package/build/embed/embed-placeholder.native.js +58 -44
- package/build/embed/embed-placeholder.native.js.map +1 -1
- package/build/embed/embed-preview.js +47 -41
- package/build/embed/embed-preview.js.map +1 -1
- package/build/embed/embed-preview.native.js +48 -41
- package/build/embed/embed-preview.native.js.map +1 -1
- package/build/embed/icons.js +165 -130
- package/build/embed/icons.js.map +1 -1
- package/build/embed/save.js +14 -12
- package/build/embed/save.js.map +1 -1
- package/build/embed/util.js +25 -20
- package/build/embed/util.js.map +1 -1
- package/build/embed/variations.js +9 -0
- package/build/embed/variations.js.map +1 -1
- package/build/embed/wp-embed-preview.js +10 -11
- package/build/embed/wp-embed-preview.js.map +1 -1
- package/build/embed/wp-embed-preview.native.js +3 -4
- package/build/embed/wp-embed-preview.native.js.map +1 -1
- package/build/file/deprecated.js +93 -78
- package/build/file/deprecated.js.map +1 -1
- package/build/file/edit.js +112 -103
- package/build/file/edit.js.map +1 -1
- package/build/file/edit.native.js +106 -92
- package/build/file/edit.native.js.map +1 -1
- package/build/file/inspector.js +42 -36
- package/build/file/inspector.js.map +1 -1
- package/build/file/save.js +33 -28
- package/build/file/save.js.map +1 -1
- package/build/footnotes/edit.js +69 -63
- package/build/footnotes/edit.js.map +1 -1
- package/build/footnotes/format.js +2 -2
- package/build/footnotes/format.js.map +1 -1
- package/build/form/edit.js +79 -73
- package/build/form/edit.js.map +1 -1
- package/build/form/save.js +9 -9
- package/build/form/save.js.map +1 -1
- package/build/form-input/deprecated.js +22 -20
- package/build/form-input/deprecated.js.map +1 -1
- package/build/form-input/edit.js +87 -77
- package/build/form-input/edit.js.map +1 -1
- package/build/form-input/save.js +26 -24
- package/build/form-input/save.js.map +1 -1
- package/build/form-submission-notification/edit.js +4 -4
- package/build/form-submission-notification/edit.js.map +1 -1
- package/build/form-submission-notification/save.js +4 -4
- package/build/form-submission-notification/save.js.map +1 -1
- package/build/form-submit-button/edit.js +2 -2
- package/build/form-submit-button/edit.js.map +1 -1
- package/build/form-submit-button/save.js +8 -8
- package/build/form-submit-button/save.js.map +1 -1
- package/build/freeform/convert-to-blocks-button.js +5 -4
- package/build/freeform/convert-to-blocks-button.js.map +1 -1
- package/build/freeform/edit.js +37 -26
- package/build/freeform/edit.js.map +1 -1
- package/build/freeform/edit.native.js +2 -2
- package/build/freeform/edit.native.js.map +1 -1
- package/build/freeform/modal.js +52 -35
- package/build/freeform/modal.js.map +1 -1
- package/build/freeform/save.js +4 -2
- package/build/freeform/save.js.map +1 -1
- package/build/gallery/deprecated.js +228 -202
- package/build/gallery/deprecated.js.map +1 -1
- package/build/gallery/edit-wrapper.js +4 -5
- package/build/gallery/edit-wrapper.js.map +1 -1
- package/build/gallery/edit.js +91 -78
- package/build/gallery/edit.js.map +1 -1
- package/build/gallery/gallery.js +19 -17
- package/build/gallery/gallery.js.map +1 -1
- package/build/gallery/gallery.native.js +21 -19
- package/build/gallery/gallery.native.js.map +1 -1
- package/build/gallery/save.js +11 -10
- package/build/gallery/save.js.map +1 -1
- package/build/gallery/shared-icon.js +2 -2
- package/build/gallery/shared-icon.js.map +1 -1
- package/build/gallery/v1/edit.js +57 -51
- package/build/gallery/v1/edit.js.map +1 -1
- package/build/gallery/v1/gallery-button.native.js +10 -9
- package/build/gallery/v1/gallery-button.native.js.map +1 -1
- package/build/gallery/v1/gallery-image.js +74 -66
- package/build/gallery/v1/gallery-image.js.map +1 -1
- package/build/gallery/v1/gallery-image.native.js +75 -65
- package/build/gallery/v1/gallery-image.native.js.map +1 -1
- package/build/gallery/v1/gallery.js +46 -44
- package/build/gallery/v1/gallery.js.map +1 -1
- package/build/gallery/v1/gallery.native.js +46 -44
- package/build/gallery/v1/gallery.native.js.map +1 -1
- package/build/gallery/v1/save.js +43 -38
- package/build/gallery/v1/save.js.map +1 -1
- package/build/gallery/v1/tiles.native.js +9 -7
- package/build/gallery/v1/tiles.native.js.map +1 -1
- package/build/group/deprecated.js +31 -24
- package/build/group/deprecated.js.map +1 -1
- package/build/group/edit.js +55 -50
- package/build/group/edit.js.map +1 -1
- package/build/group/edit.native.js +14 -12
- package/build/group/edit.native.js.map +1 -1
- package/build/group/placeholder.js +48 -42
- package/build/group/placeholder.js.map +1 -1
- package/build/group/save.js +2 -2
- package/build/group/save.js.map +1 -1
- package/build/heading/deprecated.js +20 -18
- package/build/heading/deprecated.js.map +1 -1
- package/build/heading/edit.js +35 -49
- package/build/heading/edit.js.map +1 -1
- package/build/heading/edit.native.js +51 -48
- package/build/heading/edit.native.js.map +1 -1
- package/build/heading/index.js +1 -0
- package/build/heading/index.js.map +1 -1
- package/build/heading/save.js +8 -7
- package/build/heading/save.js.map +1 -1
- package/build/home-link/edit.js +27 -23
- package/build/home-link/edit.js.map +1 -1
- package/build/home-link/save.js +2 -2
- package/build/home-link/save.js.map +1 -1
- package/build/html/edit.js +32 -24
- package/build/html/edit.js.map +1 -1
- package/build/html/preview.js +11 -9
- package/build/html/preview.js.map +1 -1
- package/build/html/save.js +4 -2
- package/build/html/save.js.map +1 -1
- package/build/image/deprecated.js +140 -113
- package/build/image/deprecated.js.map +1 -1
- package/build/image/edit.js +56 -47
- package/build/image/edit.js.map +1 -1
- package/build/image/edit.native.js +153 -132
- package/build/image/edit.native.js.map +1 -1
- package/build/image/image.js +280 -208
- package/build/image/image.js.map +1 -1
- package/build/image/save.js +22 -18
- package/build/image/save.js.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/latest-comments/edit.js +55 -50
- package/build/latest-comments/edit.js.map +1 -1
- package/build/latest-posts/edit.js +242 -216
- package/build/latest-posts/edit.js.map +1 -1
- package/build/latest-posts/edit.native.js +78 -66
- package/build/latest-posts/edit.native.js.map +1 -1
- package/build/list/deprecated.js +108 -15
- package/build/list/deprecated.js.map +1 -1
- package/build/list/edit.js +49 -44
- package/build/list/edit.js.map +1 -1
- package/build/list/index.js +0 -2
- package/build/list/index.js.map +1 -1
- package/build/list/ordered-list-settings.js +53 -50
- package/build/list/ordered-list-settings.js.map +1 -1
- package/build/list/save.js +5 -4
- package/build/list/save.js.map +1 -1
- package/build/list/tag-name.js +2 -2
- package/build/list/tag-name.js.map +1 -1
- package/build/list/tag-name.native.js +2 -2
- package/build/list/tag-name.native.js.map +1 -1
- package/build/list-item/edit.js +38 -39
- package/build/list-item/edit.js.map +1 -1
- package/build/list-item/edit.native.js +46 -41
- package/build/list-item/edit.native.js.map +1 -1
- package/build/list-item/icons.native.js +29 -26
- package/build/list-item/icons.native.js.map +1 -1
- package/build/list-item/index.js +2 -1
- package/build/list-item/index.js.map +1 -1
- package/build/list-item/list-style-type.native.js +17 -14
- package/build/list-item/list-style-type.native.js.map +1 -1
- package/build/list-item/save.js +7 -6
- package/build/list-item/save.js.map +1 -1
- package/build/loginout/edit.js +31 -24
- package/build/loginout/edit.js.map +1 -1
- package/build/media-text/deprecated.js +131 -108
- package/build/media-text/deprecated.js.map +1 -1
- package/build/media-text/edit.js +185 -109
- package/build/media-text/edit.js.map +1 -1
- package/build/media-text/edit.native.js +55 -31
- package/build/media-text/edit.native.js.map +1 -1
- package/build/media-text/icon-retry.native.js +10 -9
- package/build/media-text/icon-retry.native.js.map +1 -1
- package/build/media-text/media-container.js +38 -37
- package/build/media-text/media-container.js.map +1 -1
- package/build/media-text/media-container.native.js +98 -72
- package/build/media-text/media-container.native.js.map +1 -1
- package/build/media-text/save.js +34 -29
- package/build/media-text/save.js.map +1 -1
- package/build/missing/edit.js +14 -10
- package/build/missing/edit.js.map +1 -1
- package/build/missing/edit.native.js +34 -28
- package/build/missing/edit.native.js.map +1 -1
- package/build/missing/save.js +4 -2
- package/build/missing/save.js.map +1 -1
- package/build/more/edit.js +26 -19
- package/build/more/edit.js.map +1 -1
- package/build/more/edit.native.js +2 -2
- package/build/more/edit.native.js.map +1 -1
- package/build/more/index.js +2 -1
- package/build/more/index.js.map +1 -1
- package/build/more/save.js +4 -2
- package/build/more/save.js.map +1 -1
- package/build/navigation/deprecated.js +7 -7
- package/build/navigation/deprecated.js.map +1 -1
- package/build/navigation/edit/accessible-description.js +8 -5
- package/build/navigation/edit/accessible-description.js.map +1 -1
- package/build/navigation/edit/accessible-menu-description.js +5 -4
- package/build/navigation/edit/accessible-menu-description.js.map +1 -1
- package/build/navigation/edit/deleted-navigation-warning.js +8 -6
- package/build/navigation/edit/deleted-navigation-warning.js.map +1 -1
- package/build/navigation/edit/index.js +280 -232
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/inner-blocks.js +3 -3
- package/build/navigation/edit/inner-blocks.js.map +1 -1
- package/build/navigation/edit/leaf-more-menu.js +44 -33
- package/build/navigation/edit/leaf-more-menu.js.map +1 -1
- package/build/navigation/edit/manage-menus-button.js +5 -4
- package/build/navigation/edit/manage-menus-button.js.map +1 -1
- package/build/navigation/edit/menu-inspector-controls.js +44 -39
- package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
- package/build/navigation/edit/navigation-menu-delete-control.js +25 -21
- package/build/navigation/edit/navigation-menu-delete-control.js.map +1 -1
- package/build/navigation/edit/navigation-menu-name-control.js +2 -2
- package/build/navigation/edit/navigation-menu-name-control.js.map +1 -1
- package/build/navigation/edit/navigation-menu-selector.js +46 -39
- package/build/navigation/edit/navigation-menu-selector.js.map +1 -1
- package/build/navigation/edit/overlay-menu-icon.js +16 -15
- package/build/navigation/edit/overlay-menu-icon.js.map +1 -1
- package/build/navigation/edit/overlay-menu-preview.js +33 -30
- package/build/navigation/edit/overlay-menu-preview.js.map +1 -1
- package/build/navigation/edit/placeholder/index.js +30 -23
- package/build/navigation/edit/placeholder/index.js.map +1 -1
- package/build/navigation/edit/placeholder/placeholder-preview.js +10 -8
- package/build/navigation/edit/placeholder/placeholder-preview.js.map +1 -1
- package/build/navigation/edit/responsive-wrapper.js +38 -30
- package/build/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build/navigation/edit/unsaved-inner-blocks.js +2 -2
- package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
- package/build/navigation/edit/utils.js +2 -2
- package/build/navigation/edit/utils.js.map +1 -1
- package/build/navigation/save.js +2 -2
- package/build/navigation/save.js.map +1 -1
- package/build/navigation-link/edit.js +186 -153
- package/build/navigation-link/edit.js.map +1 -1
- package/build/navigation-link/icons.js +8 -7
- package/build/navigation-link/icons.js.map +1 -1
- package/build/navigation-link/index.js +2 -2
- package/build/navigation-link/index.js.map +1 -1
- package/build/navigation-link/link-ui.js +104 -89
- package/build/navigation-link/link-ui.js.map +1 -1
- package/build/navigation-link/save.js +2 -2
- package/build/navigation-link/save.js.map +1 -1
- package/build/navigation-submenu/edit.js +141 -129
- package/build/navigation-submenu/edit.js.map +1 -1
- package/build/navigation-submenu/icons.js +8 -7
- package/build/navigation-submenu/icons.js.map +1 -1
- package/build/navigation-submenu/save.js +2 -2
- package/build/navigation-submenu/save.js.map +1 -1
- package/build/nextpage/edit.js +7 -4
- package/build/nextpage/edit.js.map +1 -1
- package/build/nextpage/edit.native.js +11 -10
- package/build/nextpage/edit.native.js.map +1 -1
- package/build/nextpage/save.js +4 -2
- package/build/nextpage/save.js.map +1 -1
- package/build/page-list/convert-to-links-modal.js +23 -17
- package/build/page-list/convert-to-links-modal.js.map +1 -1
- package/build/page-list/edit.js +92 -67
- package/build/page-list/edit.js.map +1 -1
- package/build/page-list-item/edit.js +31 -23
- package/build/page-list-item/edit.js.map +1 -1
- package/build/paragraph/deprecated.js +22 -18
- package/build/paragraph/deprecated.js.map +1 -1
- package/build/paragraph/edit.js +58 -69
- package/build/paragraph/edit.js.map +1 -1
- package/build/paragraph/edit.native.js +42 -39
- package/build/paragraph/edit.native.js.map +1 -1
- package/build/paragraph/index.js +1 -0
- package/build/paragraph/index.js.map +1 -1
- package/build/paragraph/save.js +8 -7
- package/build/paragraph/save.js.map +1 -1
- package/build/paragraph/transforms.js +1 -0
- package/build/paragraph/transforms.js.map +1 -1
- package/build/pattern/edit.js +11 -8
- package/build/pattern/edit.js.map +1 -1
- package/build/post-author/edit.js +106 -95
- package/build/post-author/edit.js.map +1 -1
- package/build/post-author-biography/edit.js +21 -18
- package/build/post-author-biography/edit.js.map +1 -1
- package/build/post-author-name/edit.js +42 -34
- package/build/post-author-name/edit.js.map +1 -1
- package/build/post-comment/edit.js +23 -20
- package/build/post-comment/edit.js.map +1 -1
- package/build/post-comment/save.js +2 -2
- package/build/post-comment/save.js.map +1 -1
- package/build/post-comments-count/edit.js +22 -16
- package/build/post-comments-count/edit.js.map +1 -1
- package/build/post-comments-form/edit.js +25 -20
- package/build/post-comments-form/edit.js.map +1 -1
- package/build/post-comments-form/form.js +51 -39
- package/build/post-comments-form/form.js.map +1 -1
- package/build/post-comments-link/edit.js +25 -18
- package/build/post-comments-link/edit.js.map +1 -1
- package/build/post-content/edit.js +36 -22
- package/build/post-content/edit.js.map +1 -1
- package/build/post-date/edit.js +84 -73
- package/build/post-date/edit.js.map +1 -1
- package/build/post-excerpt/edit.js +69 -49
- package/build/post-excerpt/edit.js.map +1 -1
- package/build/post-featured-image/dimension-controls.js +138 -136
- package/build/post-featured-image/dimension-controls.js.map +1 -1
- package/build/post-featured-image/edit.js +112 -89
- package/build/post-featured-image/edit.js.map +1 -1
- package/build/post-featured-image/overlay-controls.js +44 -41
- package/build/post-featured-image/overlay-controls.js.map +1 -1
- package/build/post-featured-image/overlay.js +4 -4
- package/build/post-featured-image/overlay.js.map +1 -1
- package/build/post-navigation-link/edit.js +90 -76
- package/build/post-navigation-link/edit.js.map +1 -1
- package/build/post-template/edit.js +38 -31
- package/build/post-template/edit.js.map +1 -1
- package/build/post-template/save.js +2 -2
- package/build/post-template/save.js.map +1 -1
- package/build/post-terms/edit.js +66 -55
- package/build/post-terms/edit.js.map +1 -1
- package/build/post-time-to-read/edit.js +21 -18
- package/build/post-time-to-read/edit.js.map +1 -1
- package/build/post-time-to-read/icon.js +7 -6
- package/build/post-time-to-read/icon.js.map +1 -1
- package/build/post-title/edit.js +82 -69
- package/build/post-title/edit.js.map +1 -1
- package/build/preformatted/edit.js +2 -2
- package/build/preformatted/edit.js.map +1 -1
- package/build/preformatted/edit.native.js +7 -6
- package/build/preformatted/edit.native.js.map +1 -1
- package/build/preformatted/save.js +7 -6
- package/build/preformatted/save.js.map +1 -1
- package/build/pullquote/blockquote.native.js +4 -2
- package/build/pullquote/blockquote.native.js.map +1 -1
- package/build/pullquote/deprecated.js +79 -67
- package/build/pullquote/deprecated.js.map +1 -1
- package/build/pullquote/edit.js +51 -45
- package/build/pullquote/edit.js.map +1 -1
- package/build/pullquote/edit.native.js +44 -39
- package/build/pullquote/edit.native.js.map +1 -1
- package/build/pullquote/figure.native.js +5 -4
- package/build/pullquote/figure.native.js.map +1 -1
- package/build/pullquote/save.js +14 -11
- package/build/pullquote/save.js.map +1 -1
- package/build/query/deprecated.js +6 -6
- package/build/query/deprecated.js.map +1 -1
- package/build/query/edit/enhanced-pagination-modal.js +16 -12
- package/build/query/edit/enhanced-pagination-modal.js.map +1 -1
- package/build/query/edit/index.js +11 -9
- package/build/query/edit/index.js.map +1 -1
- package/build/query/edit/inspector-controls/author-control.js +2 -2
- package/build/query/edit/inspector-controls/author-control.js.map +1 -1
- package/build/query/edit/inspector-controls/create-new-post-link.js +10 -9
- package/build/query/edit/inspector-controls/create-new-post-link.js.map +1 -1
- package/build/query/edit/inspector-controls/enhanced-pagination-control.js +14 -12
- package/build/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
- package/build/query/edit/inspector-controls/index.js +109 -96
- package/build/query/edit/inspector-controls/index.js.map +1 -1
- package/build/query/edit/inspector-controls/order-control.js +2 -2
- package/build/query/edit/inspector-controls/order-control.js.map +1 -1
- package/build/query/edit/inspector-controls/parent-control.js +2 -2
- package/build/query/edit/inspector-controls/parent-control.js.map +1 -1
- package/build/query/edit/inspector-controls/sticky-control.js +2 -2
- package/build/query/edit/inspector-controls/sticky-control.js.map +1 -1
- package/build/query/edit/inspector-controls/taxonomy-controls.js +29 -27
- package/build/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
- package/build/query/edit/pattern-selection-modal.js +24 -20
- package/build/query/edit/pattern-selection-modal.js.map +1 -1
- package/build/query/edit/query-content.js +51 -44
- package/build/query/edit/query-content.js.map +1 -1
- package/build/query/edit/query-placeholder.js +43 -38
- package/build/query/edit/query-placeholder.js.map +1 -1
- package/build/query/edit/query-toolbar.js +83 -70
- package/build/query/edit/query-toolbar.js.map +1 -1
- package/build/query/icons.js +25 -21
- package/build/query/icons.js.map +1 -1
- package/build/query/save.js +4 -4
- package/build/query/save.js.map +1 -1
- package/build/query/variations.js +1 -6
- package/build/query/variations.js.map +1 -1
- package/build/query-no-results/edit.js +2 -2
- package/build/query-no-results/edit.js.map +1 -1
- package/build/query-no-results/save.js +4 -4
- package/build/query-no-results/save.js.map +1 -1
- package/build/query-pagination/deprecated.js +5 -4
- package/build/query-pagination/deprecated.js.map +1 -1
- package/build/query-pagination/edit.js +25 -20
- package/build/query-pagination/edit.js.map +1 -1
- package/build/query-pagination/query-pagination-arrow-controls.js +14 -13
- package/build/query-pagination/query-pagination-arrow-controls.js.map +1 -1
- package/build/query-pagination/query-pagination-label-control.js +2 -2
- package/build/query-pagination/query-pagination-label-control.js.map +1 -1
- package/build/query-pagination/save.js +2 -2
- package/build/query-pagination/save.js.map +1 -1
- package/build/query-pagination-next/edit.js +18 -16
- package/build/query-pagination-next/edit.js.map +1 -1
- package/build/query-pagination-numbers/edit.js +30 -22
- package/build/query-pagination-numbers/edit.js.map +1 -1
- package/build/query-pagination-previous/edit.js +18 -16
- package/build/query-pagination-previous/edit.js.map +1 -1
- package/build/query-title/edit.js +63 -45
- package/build/query-title/edit.js.map +1 -1
- package/build/quote/deprecated.js +51 -46
- package/build/quote/deprecated.js.map +1 -1
- package/build/quote/edit.js +42 -38
- package/build/quote/edit.js.map +1 -1
- package/build/quote/save.js +10 -9
- package/build/quote/save.js.map +1 -1
- package/build/read-more/edit.js +28 -23
- package/build/read-more/edit.js.map +1 -1
- package/build/rss/edit.js +100 -84
- package/build/rss/edit.js.map +1 -1
- package/build/search/edit.js +151 -127
- package/build/search/edit.js.map +1 -1
- package/build/search/edit.native.js +131 -123
- package/build/search/edit.native.js.map +1 -1
- package/build/search/icons.js +103 -97
- package/build/search/icons.js.map +1 -1
- package/build/separator/deprecated.js +4 -4
- package/build/separator/deprecated.js.map +1 -1
- package/build/separator/edit.js +10 -8
- package/build/separator/edit.js.map +1 -1
- package/build/separator/save.js +4 -4
- package/build/separator/save.js.map +1 -1
- package/build/shortcode/edit.js +18 -19
- package/build/shortcode/edit.js.map +1 -1
- package/build/shortcode/edit.native.js +21 -17
- package/build/shortcode/edit.native.js.map +1 -1
- package/build/shortcode/save.js +4 -2
- package/build/shortcode/save.js.map +1 -1
- package/build/site-logo/edit.js +212 -174
- package/build/site-logo/edit.js.map +1 -1
- package/build/site-tagline/edit.js +25 -21
- package/build/site-tagline/edit.js.map +1 -1
- package/build/site-tagline/icon.js +7 -6
- package/build/site-tagline/icon.js.map +1 -1
- package/build/site-title/edit.js +63 -52
- package/build/site-title/edit.js.map +1 -1
- package/build/social-link/edit.js +85 -71
- package/build/social-link/edit.js.map +1 -1
- package/build/social-link/edit.native.js +48 -39
- package/build/social-link/edit.native.js.map +1 -1
- package/build/social-link/icons/amazon.js +7 -6
- package/build/social-link/icons/amazon.js.map +1 -1
- package/build/social-link/icons/bandcamp.js +7 -6
- package/build/social-link/icons/bandcamp.js.map +1 -1
- package/build/social-link/icons/behance.js +7 -6
- package/build/social-link/icons/behance.js.map +1 -1
- package/build/social-link/icons/bluesky.js +23 -0
- package/build/social-link/icons/bluesky.js.map +1 -0
- package/build/social-link/icons/chain.js +7 -6
- package/build/social-link/icons/chain.js.map +1 -1
- package/build/social-link/icons/codepen.js +7 -6
- package/build/social-link/icons/codepen.js.map +1 -1
- package/build/social-link/icons/deviantart.js +7 -6
- package/build/social-link/icons/deviantart.js.map +1 -1
- package/build/social-link/icons/dribbble.js +7 -6
- package/build/social-link/icons/dribbble.js.map +1 -1
- package/build/social-link/icons/dropbox.js +7 -6
- package/build/social-link/icons/dropbox.js.map +1 -1
- package/build/social-link/icons/etsy.js +7 -6
- package/build/social-link/icons/etsy.js.map +1 -1
- package/build/social-link/icons/facebook.js +7 -6
- package/build/social-link/icons/facebook.js.map +1 -1
- package/build/social-link/icons/feed.js +7 -6
- package/build/social-link/icons/feed.js.map +1 -1
- package/build/social-link/icons/fivehundredpx.js +7 -6
- package/build/social-link/icons/fivehundredpx.js.map +1 -1
- package/build/social-link/icons/flickr.js +7 -6
- package/build/social-link/icons/flickr.js.map +1 -1
- package/build/social-link/icons/foursquare.js +7 -6
- package/build/social-link/icons/foursquare.js.map +1 -1
- package/build/social-link/icons/github.js +7 -6
- package/build/social-link/icons/github.js.map +1 -1
- package/build/social-link/icons/goodreads.js +7 -6
- package/build/social-link/icons/goodreads.js.map +1 -1
- package/build/social-link/icons/google.js +7 -6
- package/build/social-link/icons/google.js.map +1 -1
- package/build/social-link/icons/gravatar.js +7 -6
- package/build/social-link/icons/gravatar.js.map +1 -1
- package/build/social-link/icons/index.js +11 -0
- package/build/social-link/icons/index.js.map +1 -1
- package/build/social-link/icons/instagram.js +7 -6
- package/build/social-link/icons/instagram.js.map +1 -1
- package/build/social-link/icons/lastfm.js +7 -6
- package/build/social-link/icons/lastfm.js.map +1 -1
- package/build/social-link/icons/linkedin.js +7 -6
- package/build/social-link/icons/linkedin.js.map +1 -1
- package/build/social-link/icons/mail.js +7 -6
- package/build/social-link/icons/mail.js.map +1 -1
- package/build/social-link/icons/mastodon.js +7 -6
- package/build/social-link/icons/mastodon.js.map +1 -1
- package/build/social-link/icons/medium.js +7 -6
- package/build/social-link/icons/medium.js.map +1 -1
- package/build/social-link/icons/meetup.js +7 -6
- package/build/social-link/icons/meetup.js.map +1 -1
- package/build/social-link/icons/patreon.js +7 -6
- package/build/social-link/icons/patreon.js.map +1 -1
- package/build/social-link/icons/pinterest.js +7 -6
- package/build/social-link/icons/pinterest.js.map +1 -1
- package/build/social-link/icons/pocket.js +7 -6
- package/build/social-link/icons/pocket.js.map +1 -1
- package/build/social-link/icons/reddit.js +7 -6
- package/build/social-link/icons/reddit.js.map +1 -1
- package/build/social-link/icons/skype.js +7 -6
- package/build/social-link/icons/skype.js.map +1 -1
- package/build/social-link/icons/snapchat.js +7 -6
- package/build/social-link/icons/snapchat.js.map +1 -1
- package/build/social-link/icons/soundcloud.js +7 -6
- package/build/social-link/icons/soundcloud.js.map +1 -1
- package/build/social-link/icons/spotify.js +7 -6
- package/build/social-link/icons/spotify.js.map +1 -1
- package/build/social-link/icons/telegram.js +7 -6
- package/build/social-link/icons/telegram.js.map +1 -1
- package/build/social-link/icons/threads.js +7 -6
- package/build/social-link/icons/threads.js.map +1 -1
- package/build/social-link/icons/tiktok.js +7 -6
- package/build/social-link/icons/tiktok.js.map +1 -1
- package/build/social-link/icons/tumblr.js +7 -6
- package/build/social-link/icons/tumblr.js.map +1 -1
- package/build/social-link/icons/twitch.js +7 -6
- package/build/social-link/icons/twitch.js.map +1 -1
- package/build/social-link/icons/twitter.js +7 -6
- package/build/social-link/icons/twitter.js.map +1 -1
- package/build/social-link/icons/vimeo.js +7 -6
- package/build/social-link/icons/vimeo.js.map +1 -1
- package/build/social-link/icons/vk.js +7 -6
- package/build/social-link/icons/vk.js.map +1 -1
- package/build/social-link/icons/whatsapp.js +7 -6
- package/build/social-link/icons/whatsapp.js.map +1 -1
- package/build/social-link/icons/wordpress.js +7 -6
- package/build/social-link/icons/wordpress.js.map +1 -1
- package/build/social-link/icons/x.js +7 -6
- package/build/social-link/icons/x.js.map +1 -1
- package/build/social-link/icons/yelp.js +7 -6
- package/build/social-link/icons/yelp.js.map +1 -1
- package/build/social-link/icons/youtube.js +7 -6
- package/build/social-link/icons/youtube.js.map +1 -1
- package/build/social-link/variations.js +7 -0
- package/build/social-link/variations.js.map +1 -1
- package/build/social-links/deprecated.js +8 -8
- package/build/social-links/deprecated.js.map +1 -1
- package/build/social-links/edit.js +94 -82
- package/build/social-links/edit.js.map +1 -1
- package/build/social-links/edit.native.js +16 -15
- package/build/social-links/edit.native.js.map +1 -1
- package/build/social-links/save.js +4 -4
- package/build/social-links/save.js.map +1 -1
- package/build/spacer/controls.js +58 -46
- package/build/spacer/controls.js.map +1 -1
- package/build/spacer/controls.native.js +16 -13
- package/build/spacer/controls.native.js.map +1 -1
- package/build/spacer/deprecated.js +2 -2
- package/build/spacer/deprecated.js.map +1 -1
- package/build/spacer/edit.js +49 -40
- package/build/spacer/edit.js.map +1 -1
- package/build/spacer/edit.native.js +12 -9
- package/build/spacer/edit.native.js.map +1 -1
- package/build/spacer/save.js +2 -2
- package/build/spacer/save.js.map +1 -1
- package/build/spacer/save.native.js +2 -2
- package/build/spacer/save.native.js.map +1 -1
- package/build/table/deprecated.js +173 -162
- package/build/table/deprecated.js.map +1 -1
- package/build/table/edit.js +144 -130
- package/build/table/edit.js.map +1 -1
- package/build/table/save.js +54 -51
- package/build/table/save.js.map +1 -1
- package/build/table-of-contents/edit.js +53 -38
- package/build/table-of-contents/edit.js.map +1 -1
- package/build/table-of-contents/list.js +28 -22
- package/build/table-of-contents/list.js.map +1 -1
- package/build/table-of-contents/save.js +9 -6
- package/build/table-of-contents/save.js.map +1 -1
- package/build/tag-cloud/edit.js +71 -60
- package/build/tag-cloud/edit.js.map +1 -1
- package/build/template-part/edit/advanced-controls.js +59 -55
- package/build/template-part/edit/advanced-controls.js.map +1 -1
- package/build/template-part/edit/import-controls.js +33 -27
- package/build/template-part/edit/import-controls.js.map +1 -1
- package/build/template-part/edit/index.js +110 -89
- package/build/template-part/edit/index.js.map +1 -1
- package/build/template-part/edit/inner-blocks.js +4 -4
- package/build/template-part/edit/inner-blocks.js.map +1 -1
- package/build/template-part/edit/placeholder.js +21 -18
- package/build/template-part/edit/placeholder.js.map +1 -1
- package/build/template-part/edit/selection-modal.js +29 -20
- package/build/template-part/edit/selection-modal.js.map +1 -1
- package/build/template-part/edit/title-modal.js +25 -20
- package/build/template-part/edit/title-modal.js.map +1 -1
- package/build/term-description/edit.js +24 -17
- package/build/term-description/edit.js.map +1 -1
- package/build/text-columns/edit.js +53 -44
- package/build/text-columns/edit.js.map +1 -1
- package/build/text-columns/save.js +13 -12
- package/build/text-columns/save.js.map +1 -1
- package/build/utils/caption.js +35 -32
- package/build/utils/caption.js.map +1 -1
- package/build/utils/hooks.js +9 -0
- package/build/utils/hooks.js.map +1 -1
- package/build/verse/deprecated.js +9 -8
- package/build/verse/deprecated.js.map +1 -1
- package/build/verse/edit.js +33 -29
- package/build/verse/edit.js.map +1 -1
- package/build/verse/save.js +8 -7
- package/build/verse/save.js.map +1 -1
- package/build/video/deprecated.js +20 -18
- package/build/video/deprecated.js.map +1 -1
- package/build/video/edit-common-settings.js +39 -35
- package/build/video/edit-common-settings.js.map +1 -1
- package/build/video/edit.js +105 -82
- package/build/video/edit.js.map +1 -1
- package/build/video/edit.native.js +100 -85
- package/build/video/edit.native.js.map +1 -1
- package/build/video/icon-retry.native.js +10 -9
- package/build/video/icon-retry.native.js.map +1 -1
- package/build/video/save.js +21 -19
- package/build/video/save.js.map +1 -1
- package/build/video/tracks-editor.js +188 -158
- package/build/video/tracks-editor.js.map +1 -1
- package/build/video/tracks.js +3 -4
- package/build/video/tracks.js.map +1 -1
- package/build-module/archives/edit.js +61 -51
- package/build-module/archives/edit.js.map +1 -1
- package/build-module/audio/deprecated.js +14 -11
- package/build-module/audio/deprecated.js.map +1 -1
- package/build-module/audio/edit.js +87 -76
- package/build-module/audio/edit.js.map +1 -1
- package/build-module/audio/edit.native.js +101 -85
- package/build-module/audio/edit.native.js.map +1 -1
- package/build-module/audio/save.js +16 -14
- package/build-module/audio/save.js.map +1 -1
- package/build-module/avatar/edit.js +123 -110
- package/build-module/avatar/edit.js.map +1 -1
- package/build-module/avatar/user-control.js +2 -2
- package/build-module/avatar/user-control.js.map +1 -1
- package/build-module/block/edit-title.native.js +30 -24
- package/build-module/block/edit-title.native.js.map +1 -1
- package/build-module/block/edit.js +75 -201
- package/build-module/block/edit.js.map +1 -1
- package/build-module/block/edit.native.js +51 -39
- package/build-module/block/edit.native.js.map +1 -1
- package/build-module/button/color-background.native.js +15 -13
- package/build-module/button/color-background.native.js.map +1 -1
- package/build-module/button/deprecated.js +134 -121
- package/build-module/button/deprecated.js.map +1 -1
- package/build-module/button/edit.js +127 -114
- package/build-module/button/edit.js.map +1 -1
- package/build-module/button/edit.native.js +87 -71
- package/build-module/button/edit.native.js.map +1 -1
- package/build-module/button/index.js +1 -0
- package/build-module/button/index.js.map +1 -1
- package/build-module/button/save.js +17 -16
- package/build-module/button/save.js.map +1 -1
- package/build-module/buttons/deprecated.js +10 -7
- package/build-module/buttons/deprecated.js.map +1 -1
- package/build-module/buttons/edit.js +4 -4
- package/build-module/buttons/edit.js.map +1 -1
- package/build-module/buttons/edit.native.js +40 -34
- package/build-module/buttons/edit.native.js.map +1 -1
- package/build-module/buttons/save.js +4 -4
- package/build-module/buttons/save.js.map +1 -1
- package/build-module/calendar/edit.js +21 -16
- package/build-module/calendar/edit.js.map +1 -1
- package/build-module/categories/edit.js +75 -58
- package/build-module/categories/edit.js.map +1 -1
- package/build-module/code/edit.js +19 -18
- package/build-module/code/edit.js.map +1 -1
- package/build-module/code/edit.native.js +22 -21
- package/build-module/code/edit.native.js.map +1 -1
- package/build-module/code/save.js +14 -13
- package/build-module/code/save.js.map +1 -1
- package/build-module/column/column-preview.native.js +14 -15
- package/build-module/column/column-preview.native.js.map +1 -1
- package/build-module/column/deprecated.js +7 -6
- package/build-module/column/deprecated.js.map +1 -1
- package/build-module/column/edit.js +37 -28
- package/build-module/column/edit.js.map +1 -1
- package/build-module/column/edit.native.js +54 -38
- package/build-module/column/edit.native.js.map +1 -1
- package/build-module/column/save.js +4 -4
- package/build-module/column/save.js.map +1 -1
- package/build-module/columns/deprecated.js +16 -13
- package/build-module/columns/deprecated.js.map +1 -1
- package/build-module/columns/edit.js +65 -52
- package/build-module/columns/edit.js.map +1 -1
- package/build-module/columns/edit.native.js +72 -57
- package/build-module/columns/edit.native.js.map +1 -1
- package/build-module/columns/save.js +4 -4
- package/build-module/columns/save.js.map +1 -1
- package/build-module/columns/variations.js +37 -31
- package/build-module/columns/variations.js.map +1 -1
- package/build-module/comment-author-avatar/edit.js +35 -26
- package/build-module/comment-author-avatar/edit.js.map +1 -1
- package/build-module/comment-author-name/edit.js +43 -33
- package/build-module/comment-author-name/edit.js.map +1 -1
- package/build-module/comment-content/edit.js +31 -18
- package/build-module/comment-content/edit.js.map +1 -1
- package/build-module/comment-date/edit.js +37 -25
- package/build-module/comment-date/edit.js.map +1 -1
- package/build-module/comment-edit-link/edit.js +36 -26
- package/build-module/comment-edit-link/edit.js.map +1 -1
- package/build-module/comment-reply-link/edit.js +23 -16
- package/build-module/comment-reply-link/edit.js.map +1 -1
- package/build-module/comment-template/edit.js +51 -46
- package/build-module/comment-template/edit.js.map +1 -1
- package/build-module/comment-template/save.js +2 -2
- package/build-module/comment-template/save.js.map +1 -1
- package/build-module/comments/deprecated.js +5 -4
- package/build-module/comments/deprecated.js.map +1 -1
- package/build-module/comments/edit/comments-inspector-controls.js +26 -23
- package/build-module/comments/edit/comments-inspector-controls.js.map +1 -1
- package/build-module/comments/edit/comments-legacy.js +31 -24
- package/build-module/comments/edit/comments-legacy.js.map +1 -1
- package/build-module/comments/edit/index.js +12 -8
- package/build-module/comments/edit/index.js.map +1 -1
- package/build-module/comments/edit/placeholder.js +110 -77
- package/build-module/comments/edit/placeholder.js.map +1 -1
- package/build-module/comments/save.js +2 -2
- package/build-module/comments/save.js.map +1 -1
- package/build-module/comments-pagination/comments-pagination-arrow-controls.js +15 -13
- package/build-module/comments-pagination/comments-pagination-arrow-controls.js.map +1 -1
- package/build-module/comments-pagination/edit.js +23 -14
- package/build-module/comments-pagination/edit.js.map +1 -1
- package/build-module/comments-pagination/save.js +2 -2
- package/build-module/comments-pagination/save.js.map +1 -1
- package/build-module/comments-pagination-next/edit.js +18 -15
- package/build-module/comments-pagination-next/edit.js.map +1 -1
- package/build-module/comments-pagination-numbers/edit.js +31 -27
- package/build-module/comments-pagination-numbers/edit.js.map +1 -1
- package/build-module/comments-pagination-previous/edit.js +18 -15
- package/build-module/comments-pagination-previous/edit.js.map +1 -1
- package/build-module/comments-title/edit.js +44 -35
- package/build-module/comments-title/edit.js.map +1 -1
- package/build-module/cover/controls.native.js +126 -113
- package/build-module/cover/controls.native.js.map +1 -1
- package/build-module/cover/deprecated.js +398 -380
- package/build-module/cover/deprecated.js.map +1 -1
- package/build-module/cover/edit/block-controls.js +32 -26
- package/build-module/cover/edit/block-controls.js.map +1 -1
- package/build-module/cover/edit/cover-placeholder.js +6 -5
- package/build-module/cover/edit/cover-placeholder.js.map +1 -1
- package/build-module/cover/edit/index.js +96 -86
- package/build-module/cover/edit/index.js.map +1 -1
- package/build-module/cover/edit/inspector-controls.js +169 -147
- package/build-module/cover/edit/inspector-controls.js.map +1 -1
- package/build-module/cover/edit/resizable-cover-popover.js +4 -4
- package/build-module/cover/edit/resizable-cover-popover.js.map +1 -1
- package/build-module/cover/edit.native.js +239 -197
- package/build-module/cover/edit.native.js.map +1 -1
- package/build-module/cover/focal-point-settings-button.native.js +10 -8
- package/build-module/cover/focal-point-settings-button.native.js.map +1 -1
- package/build-module/cover/index.js +1 -0
- package/build-module/cover/index.js.map +1 -1
- package/build-module/cover/overlay-color-settings.native.js +3 -4
- package/build-module/cover/overlay-color-settings.native.js.map +1 -1
- package/build-module/cover/save.js +53 -51
- package/build-module/cover/save.js.map +1 -1
- package/build-module/details/edit.js +34 -25
- package/build-module/details/edit.js.map +1 -1
- package/build-module/details/save.js +10 -6
- package/build-module/details/save.js.map +1 -1
- package/build-module/embed/deprecated.js +22 -18
- package/build-module/embed/deprecated.js.map +1 -1
- package/build-module/embed/edit.js +64 -57
- package/build-module/embed/edit.js.map +1 -1
- package/build-module/embed/edit.native.js +69 -58
- package/build-module/embed/edit.native.js.map +1 -1
- package/build-module/embed/embed-controls.js +27 -16
- package/build-module/embed/embed-controls.js.map +1 -1
- package/build-module/embed/embed-controls.native.js +26 -18
- package/build-module/embed/embed-controls.native.js.map +1 -1
- package/build-module/embed/embed-link-settings.native.js +3 -3
- package/build-module/embed/embed-link-settings.native.js.map +1 -1
- package/build-module/embed/embed-loading.js +5 -4
- package/build-module/embed/embed-loading.js.map +1 -1
- package/build-module/embed/embed-loading.native.js +7 -6
- package/build-module/embed/embed-loading.native.js.map +1 -1
- package/build-module/embed/embed-no-preview.native.js +89 -70
- package/build-module/embed/embed-no-preview.native.js.map +1 -1
- package/build-module/embed/embed-placeholder.js +47 -36
- package/build-module/embed/embed-placeholder.js.map +1 -1
- package/build-module/embed/embed-placeholder.native.js +60 -44
- package/build-module/embed/embed-placeholder.native.js.map +1 -1
- package/build-module/embed/embed-preview.js +48 -41
- package/build-module/embed/embed-preview.js.map +1 -1
- package/build-module/embed/embed-preview.native.js +50 -41
- package/build-module/embed/embed-preview.native.js.map +1 -1
- package/build-module/embed/icons.js +165 -129
- package/build-module/embed/icons.js.map +1 -1
- package/build-module/embed/save.js +15 -12
- package/build-module/embed/save.js.map +1 -1
- package/build-module/embed/util.js +25 -20
- package/build-module/embed/util.js.map +1 -1
- package/build-module/embed/variations.js +10 -1
- package/build-module/embed/variations.js.map +1 -1
- package/build-module/embed/wp-embed-preview.js +9 -9
- package/build-module/embed/wp-embed-preview.js.map +1 -1
- package/build-module/embed/wp-embed-preview.native.js +2 -2
- package/build-module/embed/wp-embed-preview.native.js.map +1 -1
- package/build-module/file/deprecated.js +95 -78
- package/build-module/file/deprecated.js.map +1 -1
- package/build-module/file/edit.js +114 -103
- package/build-module/file/edit.js.map +1 -1
- package/build-module/file/edit.native.js +107 -92
- package/build-module/file/edit.native.js.map +1 -1
- package/build-module/file/inspector.js +44 -36
- package/build-module/file/inspector.js.map +1 -1
- package/build-module/file/save.js +35 -28
- package/build-module/file/save.js.map +1 -1
- package/build-module/footnotes/edit.js +70 -63
- package/build-module/footnotes/edit.js.map +1 -1
- package/build-module/footnotes/format.js +2 -2
- package/build-module/footnotes/format.js.map +1 -1
- package/build-module/form/edit.js +81 -73
- package/build-module/form/edit.js.map +1 -1
- package/build-module/form/save.js +8 -8
- package/build-module/form/save.js.map +1 -1
- package/build-module/form-input/deprecated.js +23 -20
- package/build-module/form-input/deprecated.js.map +1 -1
- package/build-module/form-input/edit.js +89 -77
- package/build-module/form-input/edit.js.map +1 -1
- package/build-module/form-input/save.js +26 -22
- package/build-module/form-input/save.js.map +1 -1
- package/build-module/form-submission-notification/edit.js +4 -4
- package/build-module/form-submission-notification/edit.js.map +1 -1
- package/build-module/form-submission-notification/save.js +4 -4
- package/build-module/form-submission-notification/save.js.map +1 -1
- package/build-module/form-submit-button/edit.js +2 -2
- package/build-module/form-submit-button/edit.js.map +1 -1
- package/build-module/form-submit-button/save.js +7 -7
- package/build-module/form-submit-button/save.js.map +1 -1
- package/build-module/freeform/convert-to-blocks-button.js +5 -4
- package/build-module/freeform/convert-to-blocks-button.js.map +1 -1
- package/build-module/freeform/edit.js +39 -26
- package/build-module/freeform/edit.js.map +1 -1
- package/build-module/freeform/edit.native.js +2 -2
- package/build-module/freeform/edit.native.js.map +1 -1
- package/build-module/freeform/modal.js +54 -35
- package/build-module/freeform/modal.js.map +1 -1
- package/build-module/freeform/save.js +4 -2
- package/build-module/freeform/save.js.map +1 -1
- package/build-module/gallery/deprecated.js +229 -202
- package/build-module/gallery/deprecated.js.map +1 -1
- package/build-module/gallery/edit-wrapper.js +3 -3
- package/build-module/gallery/edit-wrapper.js.map +1 -1
- package/build-module/gallery/edit.js +93 -78
- package/build-module/gallery/edit.js.map +1 -1
- package/build-module/gallery/gallery.js +20 -17
- package/build-module/gallery/gallery.js.map +1 -1
- package/build-module/gallery/gallery.native.js +22 -19
- package/build-module/gallery/gallery.native.js.map +1 -1
- package/build-module/gallery/save.js +12 -10
- package/build-module/gallery/save.js.map +1 -1
- package/build-module/gallery/shared-icon.js +2 -2
- package/build-module/gallery/shared-icon.js.map +1 -1
- package/build-module/gallery/v1/edit.js +59 -51
- package/build-module/gallery/v1/edit.js.map +1 -1
- package/build-module/gallery/v1/gallery-button.native.js +10 -9
- package/build-module/gallery/v1/gallery-button.native.js.map +1 -1
- package/build-module/gallery/v1/gallery-image.js +76 -66
- package/build-module/gallery/v1/gallery-image.js.map +1 -1
- package/build-module/gallery/v1/gallery-image.native.js +77 -65
- package/build-module/gallery/v1/gallery-image.native.js.map +1 -1
- package/build-module/gallery/v1/gallery.js +47 -44
- package/build-module/gallery/v1/gallery.js.map +1 -1
- package/build-module/gallery/v1/gallery.native.js +47 -44
- package/build-module/gallery/v1/gallery.native.js.map +1 -1
- package/build-module/gallery/v1/save.js +44 -38
- package/build-module/gallery/v1/save.js.map +1 -1
- package/build-module/gallery/v1/tiles.native.js +9 -7
- package/build-module/gallery/v1/tiles.native.js.map +1 -1
- package/build-module/group/deprecated.js +31 -24
- package/build-module/group/deprecated.js.map +1 -1
- package/build-module/group/edit.js +56 -48
- package/build-module/group/edit.js.map +1 -1
- package/build-module/group/edit.native.js +15 -12
- package/build-module/group/edit.native.js.map +1 -1
- package/build-module/group/placeholder.js +47 -40
- package/build-module/group/placeholder.js.map +1 -1
- package/build-module/group/save.js +2 -2
- package/build-module/group/save.js.map +1 -1
- package/build-module/heading/deprecated.js +20 -18
- package/build-module/heading/deprecated.js.map +1 -1
- package/build-module/heading/edit.js +37 -49
- package/build-module/heading/edit.js.map +1 -1
- package/build-module/heading/edit.native.js +53 -48
- package/build-module/heading/edit.native.js.map +1 -1
- package/build-module/heading/index.js +1 -0
- package/build-module/heading/index.js.map +1 -1
- package/build-module/heading/save.js +8 -7
- package/build-module/heading/save.js.map +1 -1
- package/build-module/home-link/edit.js +28 -23
- package/build-module/home-link/edit.js.map +1 -1
- package/build-module/home-link/save.js +2 -2
- package/build-module/home-link/save.js.map +1 -1
- package/build-module/html/edit.js +34 -24
- package/build-module/html/edit.js.map +1 -1
- package/build-module/html/preview.js +13 -9
- package/build-module/html/preview.js.map +1 -1
- package/build-module/html/save.js +4 -2
- package/build-module/html/save.js.map +1 -1
- package/build-module/image/deprecated.js +141 -111
- package/build-module/image/deprecated.js.map +1 -1
- package/build-module/image/edit.js +57 -47
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/edit.native.js +155 -132
- package/build-module/image/edit.native.js.map +1 -1
- package/build-module/image/image.js +282 -208
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/save.js +24 -18
- package/build-module/image/save.js.map +1 -1
- package/build-module/index.js +1 -1
- package/build-module/index.js.map +1 -1
- package/build-module/latest-comments/edit.js +55 -48
- package/build-module/latest-comments/edit.js.map +1 -1
- package/build-module/latest-posts/edit.js +244 -215
- package/build-module/latest-posts/edit.js.map +1 -1
- package/build-module/latest-posts/edit.native.js +80 -66
- package/build-module/latest-posts/edit.native.js.map +1 -1
- package/build-module/list/deprecated.js +108 -15
- package/build-module/list/deprecated.js.map +1 -1
- package/build-module/list/edit.js +51 -44
- package/build-module/list/edit.js.map +1 -1
- package/build-module/list/index.js +0 -2
- package/build-module/list/index.js.map +1 -1
- package/build-module/list/ordered-list-settings.js +54 -50
- package/build-module/list/ordered-list-settings.js.map +1 -1
- package/build-module/list/save.js +5 -4
- package/build-module/list/save.js.map +1 -1
- package/build-module/list/tag-name.js +2 -2
- package/build-module/list/tag-name.js.map +1 -1
- package/build-module/list/tag-name.native.js +2 -2
- package/build-module/list/tag-name.native.js.map +1 -1
- package/build-module/list-item/edit.js +41 -40
- package/build-module/list-item/edit.js.map +1 -1
- package/build-module/list-item/edit.native.js +47 -41
- package/build-module/list-item/edit.native.js.map +1 -1
- package/build-module/list-item/icons.native.js +29 -26
- package/build-module/list-item/icons.native.js.map +1 -1
- package/build-module/list-item/index.js +2 -1
- package/build-module/list-item/index.js.map +1 -1
- package/build-module/list-item/list-style-type.native.js +18 -14
- package/build-module/list-item/list-style-type.native.js.map +1 -1
- package/build-module/list-item/save.js +8 -6
- package/build-module/list-item/save.js.map +1 -1
- package/build-module/loginout/edit.js +33 -24
- package/build-module/loginout/edit.js.map +1 -1
- package/build-module/media-text/deprecated.js +132 -108
- package/build-module/media-text/deprecated.js.map +1 -1
- package/build-module/media-text/edit.js +188 -111
- package/build-module/media-text/edit.js.map +1 -1
- package/build-module/media-text/edit.native.js +57 -31
- package/build-module/media-text/edit.native.js.map +1 -1
- package/build-module/media-text/icon-retry.native.js +11 -9
- package/build-module/media-text/icon-retry.native.js.map +1 -1
- package/build-module/media-text/media-container.js +38 -35
- package/build-module/media-text/media-container.js.map +1 -1
- package/build-module/media-text/media-container.native.js +99 -70
- package/build-module/media-text/media-container.native.js.map +1 -1
- package/build-module/media-text/save.js +35 -29
- package/build-module/media-text/save.js.map +1 -1
- package/build-module/missing/edit.js +15 -10
- package/build-module/missing/edit.js.map +1 -1
- package/build-module/missing/edit.native.js +35 -28
- package/build-module/missing/edit.native.js.map +1 -1
- package/build-module/missing/save.js +4 -2
- package/build-module/missing/save.js.map +1 -1
- package/build-module/more/edit.js +28 -19
- package/build-module/more/edit.js.map +1 -1
- package/build-module/more/edit.native.js +2 -2
- package/build-module/more/edit.native.js.map +1 -1
- package/build-module/more/index.js +2 -1
- package/build-module/more/index.js.map +1 -1
- package/build-module/more/save.js +4 -2
- package/build-module/more/save.js.map +1 -1
- package/build-module/navigation/deprecated.js +7 -7
- package/build-module/navigation/deprecated.js.map +1 -1
- package/build-module/navigation/edit/accessible-description.js +8 -5
- package/build-module/navigation/edit/accessible-description.js.map +1 -1
- package/build-module/navigation/edit/accessible-menu-description.js +5 -4
- package/build-module/navigation/edit/accessible-menu-description.js.map +1 -1
- package/build-module/navigation/edit/deleted-navigation-warning.js +8 -6
- package/build-module/navigation/edit/deleted-navigation-warning.js.map +1 -1
- package/build-module/navigation/edit/index.js +282 -232
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/inner-blocks.js +3 -3
- package/build-module/navigation/edit/inner-blocks.js.map +1 -1
- package/build-module/navigation/edit/leaf-more-menu.js +46 -33
- package/build-module/navigation/edit/leaf-more-menu.js.map +1 -1
- package/build-module/navigation/edit/manage-menus-button.js +5 -4
- package/build-module/navigation/edit/manage-menus-button.js.map +1 -1
- package/build-module/navigation/edit/menu-inspector-controls.js +44 -37
- package/build-module/navigation/edit/menu-inspector-controls.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-delete-control.js +27 -21
- package/build-module/navigation/edit/navigation-menu-delete-control.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-name-control.js +2 -2
- package/build-module/navigation/edit/navigation-menu-name-control.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-selector.js +48 -39
- package/build-module/navigation/edit/navigation-menu-selector.js.map +1 -1
- package/build-module/navigation/edit/overlay-menu-icon.js +17 -15
- package/build-module/navigation/edit/overlay-menu-icon.js.map +1 -1
- package/build-module/navigation/edit/overlay-menu-preview.js +35 -30
- package/build-module/navigation/edit/overlay-menu-preview.js.map +1 -1
- package/build-module/navigation/edit/placeholder/index.js +32 -23
- package/build-module/navigation/edit/placeholder/index.js.map +1 -1
- package/build-module/navigation/edit/placeholder/placeholder-preview.js +11 -8
- package/build-module/navigation/edit/placeholder/placeholder-preview.js.map +1 -1
- package/build-module/navigation/edit/responsive-wrapper.js +40 -30
- package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build-module/navigation/edit/unsaved-inner-blocks.js +2 -2
- package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
- package/build-module/navigation/edit/utils.js +2 -2
- package/build-module/navigation/edit/utils.js.map +1 -1
- package/build-module/navigation/save.js +2 -2
- package/build-module/navigation/save.js.map +1 -1
- package/build-module/navigation-link/edit.js +188 -153
- package/build-module/navigation-link/edit.js.map +1 -1
- package/build-module/navigation-link/icons.js +8 -7
- package/build-module/navigation-link/icons.js.map +1 -1
- package/build-module/navigation-link/index.js +2 -2
- package/build-module/navigation-link/index.js.map +1 -1
- package/build-module/navigation-link/link-ui.js +105 -88
- package/build-module/navigation-link/link-ui.js.map +1 -1
- package/build-module/navigation-link/save.js +2 -2
- package/build-module/navigation-link/save.js.map +1 -1
- package/build-module/navigation-submenu/edit.js +143 -129
- package/build-module/navigation-submenu/edit.js.map +1 -1
- package/build-module/navigation-submenu/icons.js +8 -7
- package/build-module/navigation-submenu/icons.js.map +1 -1
- package/build-module/navigation-submenu/save.js +2 -2
- package/build-module/navigation-submenu/save.js.map +1 -1
- package/build-module/nextpage/edit.js +7 -4
- package/build-module/nextpage/edit.js.map +1 -1
- package/build-module/nextpage/edit.native.js +11 -10
- package/build-module/nextpage/edit.native.js.map +1 -1
- package/build-module/nextpage/save.js +4 -2
- package/build-module/nextpage/save.js.map +1 -1
- package/build-module/page-list/convert-to-links-modal.js +24 -17
- package/build-module/page-list/convert-to-links-modal.js.map +1 -1
- package/build-module/page-list/edit.js +94 -67
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/page-list-item/edit.js +33 -23
- package/build-module/page-list-item/edit.js.map +1 -1
- package/build-module/paragraph/deprecated.js +22 -18
- package/build-module/paragraph/deprecated.js.map +1 -1
- package/build-module/paragraph/edit.js +60 -69
- package/build-module/paragraph/edit.js.map +1 -1
- package/build-module/paragraph/edit.native.js +44 -39
- package/build-module/paragraph/edit.native.js.map +1 -1
- package/build-module/paragraph/index.js +1 -0
- package/build-module/paragraph/index.js.map +1 -1
- package/build-module/paragraph/save.js +8 -7
- package/build-module/paragraph/save.js.map +1 -1
- package/build-module/paragraph/transforms.js +1 -0
- package/build-module/paragraph/transforms.js.map +1 -1
- package/build-module/pattern/edit.js +11 -8
- package/build-module/pattern/edit.js.map +1 -1
- package/build-module/post-author/edit.js +108 -95
- package/build-module/post-author/edit.js.map +1 -1
- package/build-module/post-author-biography/edit.js +23 -18
- package/build-module/post-author-biography/edit.js.map +1 -1
- package/build-module/post-author-name/edit.js +44 -34
- package/build-module/post-author-name/edit.js.map +1 -1
- package/build-module/post-comment/edit.js +24 -20
- package/build-module/post-comment/edit.js.map +1 -1
- package/build-module/post-comment/save.js +2 -2
- package/build-module/post-comment/save.js.map +1 -1
- package/build-module/post-comments-count/edit.js +24 -16
- package/build-module/post-comments-count/edit.js.map +1 -1
- package/build-module/post-comments-form/edit.js +27 -20
- package/build-module/post-comments-form/edit.js.map +1 -1
- package/build-module/post-comments-form/form.js +52 -39
- package/build-module/post-comments-form/form.js.map +1 -1
- package/build-module/post-comments-link/edit.js +27 -18
- package/build-module/post-comments-link/edit.js.map +1 -1
- package/build-module/post-content/edit.js +37 -22
- package/build-module/post-content/edit.js.map +1 -1
- package/build-module/post-date/edit.js +86 -73
- package/build-module/post-date/edit.js.map +1 -1
- package/build-module/post-excerpt/edit.js +71 -49
- package/build-module/post-excerpt/edit.js.map +1 -1
- package/build-module/post-featured-image/dimension-controls.js +140 -136
- package/build-module/post-featured-image/dimension-controls.js.map +1 -1
- package/build-module/post-featured-image/edit.js +114 -89
- package/build-module/post-featured-image/edit.js.map +1 -1
- package/build-module/post-featured-image/overlay-controls.js +46 -41
- package/build-module/post-featured-image/overlay-controls.js.map +1 -1
- package/build-module/post-featured-image/overlay.js +4 -4
- package/build-module/post-featured-image/overlay.js.map +1 -1
- package/build-module/post-navigation-link/edit.js +92 -76
- package/build-module/post-navigation-link/edit.js.map +1 -1
- package/build-module/post-template/edit.js +41 -32
- package/build-module/post-template/edit.js.map +1 -1
- package/build-module/post-template/save.js +2 -2
- package/build-module/post-template/save.js.map +1 -1
- package/build-module/post-terms/edit.js +68 -55
- package/build-module/post-terms/edit.js.map +1 -1
- package/build-module/post-time-to-read/edit.js +22 -16
- package/build-module/post-time-to-read/edit.js.map +1 -1
- package/build-module/post-time-to-read/icon.js +7 -6
- package/build-module/post-time-to-read/icon.js.map +1 -1
- package/build-module/post-title/edit.js +84 -69
- package/build-module/post-title/edit.js.map +1 -1
- package/build-module/preformatted/edit.js +2 -2
- package/build-module/preformatted/edit.js.map +1 -1
- package/build-module/preformatted/edit.native.js +7 -6
- package/build-module/preformatted/edit.native.js.map +1 -1
- package/build-module/preformatted/save.js +7 -6
- package/build-module/preformatted/save.js.map +1 -1
- package/build-module/pullquote/blockquote.native.js +4 -2
- package/build-module/pullquote/blockquote.native.js.map +1 -1
- package/build-module/pullquote/deprecated.js +80 -67
- package/build-module/pullquote/deprecated.js.map +1 -1
- package/build-module/pullquote/edit.js +53 -45
- package/build-module/pullquote/edit.js.map +1 -1
- package/build-module/pullquote/edit.native.js +46 -39
- package/build-module/pullquote/edit.native.js.map +1 -1
- package/build-module/pullquote/figure.native.js +5 -4
- package/build-module/pullquote/figure.native.js.map +1 -1
- package/build-module/pullquote/save.js +15 -11
- package/build-module/pullquote/save.js.map +1 -1
- package/build-module/query/deprecated.js +6 -6
- package/build-module/query/deprecated.js.map +1 -1
- package/build-module/query/edit/enhanced-pagination-modal.js +17 -12
- package/build-module/query/edit/enhanced-pagination-modal.js.map +1 -1
- package/build-module/query/edit/index.js +13 -9
- package/build-module/query/edit/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/author-control.js +2 -2
- package/build-module/query/edit/inspector-controls/author-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/create-new-post-link.js +10 -9
- package/build-module/query/edit/inspector-controls/create-new-post-link.js.map +1 -1
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js +15 -12
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/index.js +111 -96
- package/build-module/query/edit/inspector-controls/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/order-control.js +2 -2
- package/build-module/query/edit/inspector-controls/order-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/parent-control.js +2 -2
- package/build-module/query/edit/inspector-controls/parent-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/sticky-control.js +2 -2
- package/build-module/query/edit/inspector-controls/sticky-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/taxonomy-controls.js +30 -27
- package/build-module/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
- package/build-module/query/edit/pattern-selection-modal.js +25 -20
- package/build-module/query/edit/pattern-selection-modal.js.map +1 -1
- package/build-module/query/edit/query-content.js +53 -44
- package/build-module/query/edit/query-content.js.map +1 -1
- package/build-module/query/edit/query-placeholder.js +44 -38
- package/build-module/query/edit/query-placeholder.js.map +1 -1
- package/build-module/query/edit/query-toolbar.js +85 -70
- package/build-module/query/edit/query-toolbar.js.map +1 -1
- package/build-module/query/icons.js +25 -21
- package/build-module/query/icons.js.map +1 -1
- package/build-module/query/save.js +3 -3
- package/build-module/query/save.js.map +1 -1
- package/build-module/query/variations.js +1 -6
- package/build-module/query/variations.js.map +1 -1
- package/build-module/query-no-results/edit.js +2 -2
- package/build-module/query-no-results/edit.js.map +1 -1
- package/build-module/query-no-results/save.js +3 -3
- package/build-module/query-no-results/save.js.map +1 -1
- package/build-module/query-pagination/deprecated.js +5 -4
- package/build-module/query-pagination/deprecated.js.map +1 -1
- package/build-module/query-pagination/edit.js +27 -20
- package/build-module/query-pagination/edit.js.map +1 -1
- package/build-module/query-pagination/query-pagination-arrow-controls.js +15 -13
- package/build-module/query-pagination/query-pagination-arrow-controls.js.map +1 -1
- package/build-module/query-pagination/query-pagination-label-control.js +2 -2
- package/build-module/query-pagination/query-pagination-label-control.js.map +1 -1
- 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 +19 -16
- package/build-module/query-pagination-next/edit.js.map +1 -1
- package/build-module/query-pagination-numbers/edit.js +32 -22
- package/build-module/query-pagination-numbers/edit.js.map +1 -1
- package/build-module/query-pagination-previous/edit.js +19 -16
- package/build-module/query-pagination-previous/edit.js.map +1 -1
- package/build-module/query-title/edit.js +65 -45
- package/build-module/query-title/edit.js.map +1 -1
- package/build-module/quote/deprecated.js +52 -46
- package/build-module/quote/deprecated.js.map +1 -1
- package/build-module/quote/edit.js +44 -38
- package/build-module/quote/edit.js.map +1 -1
- package/build-module/quote/save.js +11 -9
- package/build-module/quote/save.js.map +1 -1
- package/build-module/read-more/edit.js +30 -23
- package/build-module/read-more/edit.js.map +1 -1
- package/build-module/rss/edit.js +104 -86
- package/build-module/rss/edit.js.map +1 -1
- package/build-module/search/edit.js +153 -127
- package/build-module/search/edit.js.map +1 -1
- package/build-module/search/edit.native.js +131 -121
- package/build-module/search/edit.native.js.map +1 -1
- package/build-module/search/icons.js +104 -97
- package/build-module/search/icons.js.map +1 -1
- package/build-module/separator/deprecated.js +4 -4
- package/build-module/separator/deprecated.js.map +1 -1
- package/build-module/separator/edit.js +11 -8
- package/build-module/separator/edit.js.map +1 -1
- package/build-module/separator/save.js +4 -4
- package/build-module/separator/save.js.map +1 -1
- package/build-module/shortcode/edit.js +19 -20
- package/build-module/shortcode/edit.js.map +1 -1
- package/build-module/shortcode/edit.native.js +22 -17
- package/build-module/shortcode/edit.native.js.map +1 -1
- package/build-module/shortcode/save.js +4 -2
- package/build-module/shortcode/save.js.map +1 -1
- package/build-module/site-logo/edit.js +214 -174
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/site-tagline/edit.js +27 -21
- package/build-module/site-tagline/edit.js.map +1 -1
- package/build-module/site-tagline/icon.js +7 -6
- package/build-module/site-tagline/icon.js.map +1 -1
- package/build-module/site-title/edit.js +65 -52
- package/build-module/site-title/edit.js.map +1 -1
- package/build-module/social-link/edit.js +87 -71
- package/build-module/social-link/edit.js.map +1 -1
- package/build-module/social-link/edit.native.js +50 -39
- package/build-module/social-link/edit.native.js.map +1 -1
- package/build-module/social-link/icons/amazon.js +7 -6
- package/build-module/social-link/icons/amazon.js.map +1 -1
- package/build-module/social-link/icons/bandcamp.js +7 -6
- package/build-module/social-link/icons/bandcamp.js.map +1 -1
- package/build-module/social-link/icons/behance.js +7 -6
- package/build-module/social-link/icons/behance.js.map +1 -1
- package/build-module/social-link/icons/bluesky.js +15 -0
- package/build-module/social-link/icons/bluesky.js.map +1 -0
- package/build-module/social-link/icons/chain.js +7 -6
- package/build-module/social-link/icons/chain.js.map +1 -1
- package/build-module/social-link/icons/codepen.js +7 -6
- package/build-module/social-link/icons/codepen.js.map +1 -1
- package/build-module/social-link/icons/deviantart.js +7 -6
- package/build-module/social-link/icons/deviantart.js.map +1 -1
- package/build-module/social-link/icons/dribbble.js +7 -6
- package/build-module/social-link/icons/dribbble.js.map +1 -1
- package/build-module/social-link/icons/dropbox.js +7 -6
- package/build-module/social-link/icons/dropbox.js.map +1 -1
- package/build-module/social-link/icons/etsy.js +7 -6
- package/build-module/social-link/icons/etsy.js.map +1 -1
- package/build-module/social-link/icons/facebook.js +7 -6
- package/build-module/social-link/icons/facebook.js.map +1 -1
- package/build-module/social-link/icons/feed.js +7 -6
- package/build-module/social-link/icons/feed.js.map +1 -1
- package/build-module/social-link/icons/fivehundredpx.js +7 -6
- package/build-module/social-link/icons/fivehundredpx.js.map +1 -1
- package/build-module/social-link/icons/flickr.js +7 -6
- package/build-module/social-link/icons/flickr.js.map +1 -1
- package/build-module/social-link/icons/foursquare.js +7 -6
- package/build-module/social-link/icons/foursquare.js.map +1 -1
- package/build-module/social-link/icons/github.js +7 -6
- package/build-module/social-link/icons/github.js.map +1 -1
- package/build-module/social-link/icons/goodreads.js +7 -6
- package/build-module/social-link/icons/goodreads.js.map +1 -1
- package/build-module/social-link/icons/google.js +7 -6
- package/build-module/social-link/icons/google.js.map +1 -1
- package/build-module/social-link/icons/gravatar.js +7 -6
- package/build-module/social-link/icons/gravatar.js.map +1 -1
- package/build-module/social-link/icons/index.js +1 -0
- package/build-module/social-link/icons/index.js.map +1 -1
- package/build-module/social-link/icons/instagram.js +7 -6
- package/build-module/social-link/icons/instagram.js.map +1 -1
- package/build-module/social-link/icons/lastfm.js +7 -6
- package/build-module/social-link/icons/lastfm.js.map +1 -1
- package/build-module/social-link/icons/linkedin.js +7 -6
- package/build-module/social-link/icons/linkedin.js.map +1 -1
- package/build-module/social-link/icons/mail.js +7 -6
- package/build-module/social-link/icons/mail.js.map +1 -1
- package/build-module/social-link/icons/mastodon.js +7 -6
- package/build-module/social-link/icons/mastodon.js.map +1 -1
- package/build-module/social-link/icons/medium.js +7 -6
- package/build-module/social-link/icons/medium.js.map +1 -1
- package/build-module/social-link/icons/meetup.js +7 -6
- package/build-module/social-link/icons/meetup.js.map +1 -1
- package/build-module/social-link/icons/patreon.js +7 -6
- package/build-module/social-link/icons/patreon.js.map +1 -1
- package/build-module/social-link/icons/pinterest.js +7 -6
- package/build-module/social-link/icons/pinterest.js.map +1 -1
- package/build-module/social-link/icons/pocket.js +7 -6
- package/build-module/social-link/icons/pocket.js.map +1 -1
- package/build-module/social-link/icons/reddit.js +7 -6
- package/build-module/social-link/icons/reddit.js.map +1 -1
- package/build-module/social-link/icons/skype.js +7 -6
- package/build-module/social-link/icons/skype.js.map +1 -1
- package/build-module/social-link/icons/snapchat.js +7 -6
- package/build-module/social-link/icons/snapchat.js.map +1 -1
- package/build-module/social-link/icons/soundcloud.js +7 -6
- package/build-module/social-link/icons/soundcloud.js.map +1 -1
- package/build-module/social-link/icons/spotify.js +7 -6
- package/build-module/social-link/icons/spotify.js.map +1 -1
- package/build-module/social-link/icons/telegram.js +7 -6
- package/build-module/social-link/icons/telegram.js.map +1 -1
- package/build-module/social-link/icons/threads.js +7 -6
- package/build-module/social-link/icons/threads.js.map +1 -1
- package/build-module/social-link/icons/tiktok.js +7 -6
- package/build-module/social-link/icons/tiktok.js.map +1 -1
- package/build-module/social-link/icons/tumblr.js +7 -6
- package/build-module/social-link/icons/tumblr.js.map +1 -1
- package/build-module/social-link/icons/twitch.js +7 -6
- package/build-module/social-link/icons/twitch.js.map +1 -1
- package/build-module/social-link/icons/twitter.js +7 -6
- package/build-module/social-link/icons/twitter.js.map +1 -1
- package/build-module/social-link/icons/vimeo.js +7 -6
- package/build-module/social-link/icons/vimeo.js.map +1 -1
- package/build-module/social-link/icons/vk.js +7 -6
- package/build-module/social-link/icons/vk.js.map +1 -1
- package/build-module/social-link/icons/whatsapp.js +7 -6
- package/build-module/social-link/icons/whatsapp.js.map +1 -1
- package/build-module/social-link/icons/wordpress.js +7 -6
- package/build-module/social-link/icons/wordpress.js.map +1 -1
- package/build-module/social-link/icons/x.js +7 -6
- package/build-module/social-link/icons/x.js.map +1 -1
- package/build-module/social-link/icons/yelp.js +7 -6
- package/build-module/social-link/icons/yelp.js.map +1 -1
- package/build-module/social-link/icons/youtube.js +7 -6
- package/build-module/social-link/icons/youtube.js.map +1 -1
- package/build-module/social-link/variations.js +8 -1
- package/build-module/social-link/variations.js.map +1 -1
- package/build-module/social-links/deprecated.js +7 -6
- package/build-module/social-links/deprecated.js.map +1 -1
- package/build-module/social-links/edit.js +96 -82
- package/build-module/social-links/edit.js.map +1 -1
- package/build-module/social-links/edit.native.js +16 -15
- package/build-module/social-links/edit.native.js.map +1 -1
- package/build-module/social-links/save.js +4 -4
- package/build-module/social-links/save.js.map +1 -1
- package/build-module/spacer/controls.js +61 -47
- package/build-module/spacer/controls.js.map +1 -1
- package/build-module/spacer/controls.native.js +17 -13
- package/build-module/spacer/controls.native.js.map +1 -1
- package/build-module/spacer/deprecated.js +2 -2
- package/build-module/spacer/deprecated.js.map +1 -1
- package/build-module/spacer/edit.js +52 -41
- package/build-module/spacer/edit.js.map +1 -1
- package/build-module/spacer/edit.native.js +12 -9
- package/build-module/spacer/edit.native.js.map +1 -1
- package/build-module/spacer/save.js +2 -2
- package/build-module/spacer/save.js.map +1 -1
- package/build-module/spacer/save.native.js +2 -2
- package/build-module/spacer/save.native.js.map +1 -1
- package/build-module/table/deprecated.js +174 -162
- package/build-module/table/deprecated.js.map +1 -1
- package/build-module/table/edit.js +146 -130
- package/build-module/table/edit.js.map +1 -1
- package/build-module/table/save.js +55 -51
- package/build-module/table/save.js.map +1 -1
- package/build-module/table-of-contents/edit.js +54 -36
- package/build-module/table-of-contents/edit.js.map +1 -1
- package/build-module/table-of-contents/list.js +30 -22
- package/build-module/table-of-contents/list.js.map +1 -1
- package/build-module/table-of-contents/save.js +9 -6
- package/build-module/table-of-contents/save.js.map +1 -1
- package/build-module/tag-cloud/edit.js +72 -58
- package/build-module/tag-cloud/edit.js.map +1 -1
- package/build-module/template-part/edit/advanced-controls.js +61 -55
- package/build-module/template-part/edit/advanced-controls.js.map +1 -1
- package/build-module/template-part/edit/import-controls.js +34 -27
- package/build-module/template-part/edit/import-controls.js.map +1 -1
- package/build-module/template-part/edit/index.js +112 -89
- package/build-module/template-part/edit/index.js.map +1 -1
- package/build-module/template-part/edit/inner-blocks.js +4 -4
- package/build-module/template-part/edit/inner-blocks.js.map +1 -1
- package/build-module/template-part/edit/placeholder.js +22 -18
- package/build-module/template-part/edit/placeholder.js.map +1 -1
- package/build-module/template-part/edit/selection-modal.js +30 -20
- package/build-module/template-part/edit/selection-modal.js.map +1 -1
- package/build-module/template-part/edit/title-modal.js +26 -20
- package/build-module/template-part/edit/title-modal.js.map +1 -1
- package/build-module/term-description/edit.js +26 -17
- package/build-module/term-description/edit.js.map +1 -1
- package/build-module/text-columns/edit.js +55 -44
- package/build-module/text-columns/edit.js.map +1 -1
- package/build-module/text-columns/save.js +13 -12
- package/build-module/text-columns/save.js.map +1 -1
- package/build-module/utils/caption.js +37 -32
- package/build-module/utils/caption.js.map +1 -1
- package/build-module/utils/hooks.js +9 -0
- package/build-module/utils/hooks.js.map +1 -1
- package/build-module/verse/deprecated.js +9 -8
- package/build-module/verse/deprecated.js.map +1 -1
- package/build-module/verse/edit.js +35 -29
- package/build-module/verse/edit.js.map +1 -1
- package/build-module/verse/save.js +8 -7
- package/build-module/verse/save.js.map +1 -1
- package/build-module/video/deprecated.js +21 -18
- package/build-module/video/deprecated.js.map +1 -1
- package/build-module/video/edit-common-settings.js +41 -35
- package/build-module/video/edit-common-settings.js.map +1 -1
- package/build-module/video/edit.js +107 -82
- package/build-module/video/edit.js.map +1 -1
- package/build-module/video/edit.native.js +101 -85
- package/build-module/video/edit.native.js.map +1 -1
- package/build-module/video/icon-retry.native.js +11 -9
- package/build-module/video/icon-retry.native.js.map +1 -1
- package/build-module/video/save.js +22 -19
- package/build-module/video/save.js.map +1 -1
- package/build-module/video/tracks-editor.js +190 -158
- package/build-module/video/tracks-editor.js.map +1 -1
- package/build-module/video/tracks.js +3 -4
- package/build-module/video/tracks.js.map +1 -1
- package/build-style/audio/theme-rtl.css +1 -1
- package/build-style/audio/theme.css +1 -1
- package/build-style/button/editor-rtl.css +0 -31
- package/build-style/button/editor.css +0 -31
- package/build-style/button/style-rtl.css +6 -39
- package/build-style/button/style.css +6 -39
- package/build-style/buttons/editor-rtl.css +1 -1
- package/build-style/buttons/editor.css +1 -1
- package/build-style/buttons/style-rtl.css +1 -1
- package/build-style/buttons/style.css +1 -1
- package/build-style/common-rtl.css +3 -7
- package/build-style/common.css +3 -7
- package/build-style/cover/editor-rtl.css +0 -4
- package/build-style/cover/editor.css +0 -4
- package/build-style/cover/style-rtl.css +12 -34
- package/build-style/cover/style.css +12 -34
- package/build-style/editor-rtl.css +47 -124
- package/build-style/editor.css +48 -124
- package/build-style/embed/theme-rtl.css +1 -1
- package/build-style/embed/theme.css +1 -1
- package/build-style/gallery/editor-rtl.css +12 -12
- package/build-style/gallery/editor.css +12 -12
- package/build-style/group/editor-rtl.css +2 -1
- package/build-style/group/editor.css +2 -1
- package/build-style/html/editor-rtl.css +1 -0
- package/build-style/html/editor.css +2 -0
- package/build-style/image/editor-rtl.css +3 -0
- package/build-style/image/editor.css +3 -0
- package/build-style/image/style-rtl.css +4 -35
- package/build-style/image/style.css +4 -35
- package/build-style/image/theme-rtl.css +3 -3
- package/build-style/image/theme.css +3 -3
- package/build-style/latest-posts/editor-rtl.css +9 -10
- package/build-style/latest-posts/editor.css +9 -10
- package/build-style/latest-posts/style-rtl.css +8 -2
- package/build-style/latest-posts/style.css +8 -2
- package/build-style/list/style-rtl.css +2 -2
- package/build-style/list/style.css +2 -2
- package/build-style/paragraph/style-rtl.css +1 -1
- package/build-style/paragraph/style.css +1 -1
- package/build-style/post-template/style-rtl.css +0 -3
- package/build-style/post-template/style.css +0 -3
- package/build-style/pullquote/style-rtl.css +2 -5
- package/build-style/pullquote/style.css +2 -5
- package/build-style/pullquote/theme-rtl.css +1 -2
- package/build-style/pullquote/theme.css +1 -2
- package/build-style/quote/theme-rtl.css +6 -6
- package/build-style/quote/theme.css +6 -6
- package/build-style/rss/editor-rtl.css +1 -10
- package/build-style/rss/editor.css +1 -10
- package/build-style/separator/editor-rtl.css +0 -4
- package/build-style/separator/editor.css +0 -4
- package/build-style/separator/style-rtl.css +12 -9
- package/build-style/separator/style.css +12 -9
- package/build-style/shortcode/editor-rtl.css +0 -4
- package/build-style/shortcode/editor.css +0 -4
- package/build-style/site-logo/style-rtl.css +2 -1
- package/build-style/site-logo/style.css +2 -1
- package/build-style/site-title/editor-rtl.css +1 -1
- package/build-style/site-title/editor.css +1 -1
- package/build-style/site-title/style-rtl.css +1 -1
- package/build-style/site-title/style.css +1 -1
- package/build-style/social-link/editor-rtl.css +2 -2
- package/build-style/social-link/editor.css +2 -2
- package/build-style/social-links/editor-rtl.css +11 -11
- package/build-style/social-links/editor.css +11 -11
- package/build-style/social-links/style-rtl.css +17 -7
- package/build-style/social-links/style.css +17 -7
- package/build-style/style-rtl.css +75 -149
- package/build-style/style.css +75 -149
- package/build-style/table/theme-rtl.css +3 -4
- package/build-style/table/theme.css +3 -4
- package/build-style/tag-cloud/style-rtl.css +4 -2
- package/build-style/tag-cloud/style.css +4 -2
- package/build-style/template-part/editor-rtl.css +3 -7
- package/build-style/template-part/editor.css +3 -7
- package/build-style/template-part/theme-rtl.css +1 -1
- package/build-style/template-part/theme.css +1 -1
- package/build-style/theme-rtl.css +17 -19
- package/build-style/theme.css +17 -19
- package/build-style/video/theme-rtl.css +1 -1
- package/build-style/video/theme.css +1 -1
- package/package.json +38 -37
- package/src/audio/edit.js +2 -2
- package/src/audio/edit.native.js +1 -1
- package/src/audio/theme.scss +1 -1
- package/src/avatar/edit.js +2 -2
- package/src/block/edit-title.native.js +2 -1
- package/src/block/edit.js +32 -255
- package/src/block/edit.native.js +1 -1
- package/src/block/index.php +1 -1
- package/src/button/block.json +1 -0
- package/src/button/deprecated.js +16 -16
- package/src/button/edit.js +11 -13
- package/src/button/edit.native.js +1 -1
- package/src/button/editor.scss +0 -35
- package/src/button/save.js +3 -3
- package/src/button/style.scss +20 -52
- package/src/buttons/deprecated.js +2 -2
- package/src/buttons/edit.js +2 -2
- package/src/buttons/editor.scss +1 -3
- package/src/buttons/save.js +2 -2
- package/src/buttons/style.scss +1 -3
- package/src/categories/edit.js +2 -2
- package/src/code/theme.native.scss +1 -1
- package/src/column/deprecated.js +2 -2
- package/src/column/edit.js +2 -2
- package/src/column/save.js +2 -2
- package/src/columns/deprecated.js +3 -3
- package/src/columns/edit.js +2 -2
- package/src/columns/edit.native.js +2 -3
- package/src/columns/save.js +2 -2
- package/src/comment-author-name/edit.js +2 -2
- package/src/comment-content/edit.js +2 -2
- package/src/comment-edit-link/edit.js +2 -2
- package/src/comment-reply-link/edit.js +2 -2
- package/src/comments/edit/comments-legacy.js +2 -2
- package/src/comments/index.php +1 -1
- package/src/comments-title/edit.js +2 -2
- package/src/common.scss +4 -4
- package/src/cover/block.json +1 -0
- package/src/cover/controls.native.js +2 -2
- package/src/cover/deprecated.js +38 -38
- package/src/cover/edit/index.js +6 -9
- package/src/cover/edit/inspector-controls.js +9 -2
- package/src/cover/edit/resizable-cover-popover.js +2 -2
- package/src/cover/edit.native.js +24 -8
- package/src/cover/editor.scss +0 -7
- package/src/cover/overlay-color-settings.native.js +1 -1
- package/src/cover/save.js +5 -5
- package/src/cover/style.scss +14 -32
- package/src/editor.scss +0 -1
- package/src/embed/deprecated.js +3 -3
- package/src/embed/edit.js +2 -2
- package/src/embed/edit.native.js +2 -2
- package/src/embed/embed-no-preview.native.js +2 -2
- package/src/embed/embed-placeholder.native.js +2 -2
- package/src/embed/embed-preview.js +3 -3
- package/src/embed/embed-preview.native.js +2 -2
- package/src/embed/icons.js +9 -0
- package/src/embed/save.js +2 -2
- package/src/embed/theme.scss +1 -1
- package/src/embed/util.js +11 -7
- package/src/embed/variations.js +9 -0
- package/src/file/deprecated.js +2 -2
- package/src/file/edit.js +5 -9
- package/src/file/save.js +2 -2
- package/src/form/save.js +2 -3
- package/src/form-input/deprecated.js +3 -3
- package/src/form-input/edit.js +4 -4
- package/src/form-input/save.js +3 -3
- package/src/form-submission-notification/edit.js +2 -2
- package/src/form-submission-notification/save.js +4 -7
- package/src/form-submit-button/save.js +2 -3
- package/src/freeform/edit.js +6 -2
- package/src/gallery/deprecated.js +3 -3
- package/src/gallery/edit.js +4 -4
- package/src/gallery/editor.scss +4 -1
- package/src/gallery/gallery.js +2 -2
- package/src/gallery/save.js +3 -3
- package/src/gallery/test/helpers.native.js +3 -3
- package/src/gallery/v1/gallery-button.native.js +1 -1
- package/src/gallery/v1/gallery-image.js +2 -2
- package/src/gallery/v1/gallery-image.native.js +1 -1
- package/src/gallery/v1/gallery.js +3 -3
- package/src/gallery/v1/save.js +3 -3
- package/src/group/deprecated.js +4 -4
- package/src/group/editor.scss +2 -1
- package/src/heading/block.json +1 -0
- package/src/heading/deprecated.js +6 -6
- package/src/heading/edit.js +2 -23
- package/src/heading/edit.native.js +2 -2
- package/src/heading/save.js +2 -2
- package/src/heading/test/__snapshots__/index.native.js.snap +12 -0
- package/src/heading/test/__snapshots__/transforms.native.js.snap +1 -1
- package/src/heading/test/index.native.js +65 -0
- package/src/home-link/edit.js +2 -2
- package/src/html/edit.js +0 -2
- package/src/html/editor.scss +3 -0
- package/src/image/deprecated.js +10 -10
- package/src/image/edit.js +14 -11
- package/src/image/edit.native.js +6 -3
- package/src/image/editor.scss +13 -7
- package/src/image/image.js +65 -30
- package/src/image/index.php +9 -9
- package/src/image/save.js +3 -3
- package/src/image/style.scss +9 -46
- package/src/image/theme.scss +2 -2
- package/src/index.js +16 -16
- package/src/latest-posts/edit.js +6 -6
- package/src/latest-posts/edit.native.js +1 -1
- package/src/latest-posts/editor.scss +10 -9
- package/src/latest-posts/index.php +1 -0
- package/src/latest-posts/style.scss +12 -4
- package/src/list/block.json +0 -2
- package/src/list/deprecated.js +88 -1
- package/src/list/index.php +54 -0
- package/src/list/style.scss +3 -3
- package/src/list/test/__snapshots__/edit.native.js.snap +11 -11
- package/src/list/test/__snapshots__/transforms.native.js.snap +3 -3
- package/src/list/test/edit.native.js +24 -24
- package/src/list/test/transforms.native.js +1 -1
- package/src/list-item/block.json +2 -1
- package/src/list-item/edit.js +0 -15
- package/src/media-text/deprecated.js +10 -10
- package/src/media-text/edit.js +133 -68
- package/src/media-text/edit.native.js +10 -0
- package/src/media-text/icon-retry.native.js +1 -1
- package/src/media-text/media-container.js +2 -2
- package/src/media-text/media-container.native.js +16 -3
- package/src/media-text/save.js +3 -3
- package/src/missing/edit.native.js +2 -2
- package/src/more/block.json +2 -1
- package/src/more/edit.js +1 -2
- package/src/navigation/edit/index.js +3 -3
- package/src/navigation/edit/responsive-wrapper.js +3 -3
- package/src/navigation/edit/utils.js +2 -2
- package/src/navigation/index.php +70 -7
- package/src/navigation-link/edit.js +19 -5
- package/src/navigation-link/link-ui.js +5 -1
- package/src/navigation-submenu/edit.js +27 -29
- package/src/page-list/convert-to-links-modal.js +12 -3
- package/src/page-list/edit.js +5 -5
- package/src/page-list-item/edit.js +3 -3
- package/src/paragraph/block.json +1 -0
- package/src/paragraph/deprecated.js +6 -6
- package/src/paragraph/edit.js +2 -23
- package/src/paragraph/save.js +2 -2
- package/src/paragraph/style.scss +2 -1
- package/src/paragraph/test/__snapshots__/edit.native.js.snap +6 -0
- package/src/paragraph/test/__snapshots__/transforms.native.js.snap +1 -1
- package/src/paragraph/test/edit.native.js +26 -0
- package/src/pattern/edit.js +1 -1
- package/src/post-author/edit.js +2 -2
- package/src/post-author-biography/edit.js +2 -2
- package/src/post-author-name/edit.js +2 -2
- package/src/post-comments-count/edit.js +2 -2
- package/src/post-comments-form/edit.js +2 -2
- package/src/post-comments-form/form.js +2 -2
- package/src/post-comments-link/edit.js +2 -2
- package/src/post-date/edit.js +2 -2
- package/src/post-excerpt/edit.js +3 -3
- package/src/post-featured-image/dimension-controls.js +30 -36
- package/src/post-featured-image/edit.js +3 -3
- package/src/post-featured-image/overlay.js +2 -2
- package/src/post-navigation-link/edit.js +2 -2
- package/src/post-template/edit.js +7 -7
- package/src/post-template/style.scss +0 -4
- package/src/post-terms/edit.js +2 -2
- package/src/post-time-to-read/edit.js +3 -3
- package/src/post-title/edit.js +2 -2
- package/src/pullquote/deprecated.js +7 -7
- package/src/pullquote/edit.js +2 -2
- package/src/pullquote/editor.scss +2 -0
- package/src/pullquote/save.js +2 -2
- package/src/pullquote/style.scss +4 -6
- package/src/pullquote/theme.scss +1 -3
- package/src/query/save.js +1 -1
- package/src/query/variations.js +1 -3
- package/src/query-no-results/save.js +1 -1
- package/src/query-title/edit.js +2 -2
- package/src/quote/deprecated.js +3 -3
- package/src/quote/edit.js +2 -2
- package/src/quote/save.js +2 -2
- package/src/quote/theme.scss +1 -1
- package/src/rss/edit.js +30 -23
- package/src/rss/editor.scss +2 -16
- package/src/search/edit.js +15 -9
- package/src/search/edit.native.js +2 -2
- package/src/separator/deprecated.js +2 -2
- package/src/separator/edit.js +2 -2
- package/src/separator/editor.scss +0 -7
- package/src/separator/save.js +2 -2
- package/src/separator/style.scss +28 -24
- package/src/shortcode/edit.js +13 -17
- package/src/shortcode/editor.scss +0 -6
- package/src/site-logo/edit.js +4 -5
- package/src/site-logo/index.php +2 -0
- package/src/site-logo/style.scss +6 -6
- package/src/site-tagline/edit.js +2 -2
- package/src/site-title/edit.js +2 -2
- package/src/site-title/editor.scss +2 -4
- package/src/site-title/style.scss +2 -4
- package/src/social-link/edit.js +3 -3
- package/src/social-link/edit.native.js +1 -1
- package/src/social-link/editor.scss +2 -2
- package/src/social-link/icons/bluesky.js +10 -0
- package/src/social-link/icons/index.js +1 -0
- package/src/social-link/index.php +4 -0
- package/src/social-link/socials-with-bg.scss +5 -0
- package/src/social-link/socials-without-bg.scss +4 -0
- package/src/social-link/variations.js +7 -0
- package/src/social-links/deprecated.js +2 -2
- package/src/social-links/edit.js +2 -2
- package/src/social-links/edit.native.js +1 -1
- package/src/social-links/editor.scss +11 -14
- package/src/social-links/save.js +2 -2
- package/src/social-links/style.scss +15 -14
- package/src/spacer/controls.js +6 -4
- package/src/spacer/edit.js +8 -5
- package/src/table/deprecated.js +12 -20
- package/src/table/edit.js +3 -3
- package/src/table/save.js +3 -3
- package/src/table/style.scss +3 -0
- package/src/table/theme.scss +2 -4
- package/src/tag-cloud/style.scss +15 -13
- package/src/template-part/editor.scss +5 -8
- package/src/template-part/theme.scss +5 -7
- package/src/term-description/edit.js +2 -2
- package/src/utils/caption.js +2 -2
- package/src/utils/hooks.js +11 -0
- package/src/verse/deprecated.js +2 -2
- package/src/verse/edit.js +2 -2
- package/src/verse/save.js +2 -2
- package/src/video/edit-common-settings.js +4 -0
- package/src/video/edit.js +2 -2
- package/src/video/theme.scss +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/build-style/block/editor-rtl.css +0 -108
- package/build-style/block/editor.css +0 -108
- package/src/block/editor.scss +0 -33
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = Edit;
|
|
7
|
-
var _react = require("react");
|
|
8
7
|
var _coreData = require("@wordpress/core-data");
|
|
9
8
|
var _date = require("@wordpress/date");
|
|
10
9
|
var _blockEditor = require("@wordpress/block-editor");
|
|
11
10
|
var _components = require("@wordpress/components");
|
|
12
11
|
var _i18n = require("@wordpress/i18n");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
/**
|
|
14
14
|
* WordPress dependencies
|
|
15
15
|
*/
|
|
@@ -26,8 +26,7 @@ var _i18n = require("@wordpress/i18n");
|
|
|
26
26
|
* @param {string} props.context.commentId The comment ID.
|
|
27
27
|
*
|
|
28
28
|
* @return {JSX.Element} React element.
|
|
29
|
-
*/
|
|
30
|
-
function Edit({
|
|
29
|
+
*/function Edit({
|
|
31
30
|
attributes: {
|
|
32
31
|
format,
|
|
33
32
|
isLink
|
|
@@ -40,36 +39,46 @@ function Edit({
|
|
|
40
39
|
const blockProps = (0, _blockEditor.useBlockProps)();
|
|
41
40
|
let [date] = (0, _coreData.useEntityProp)('root', 'comment', 'date', commentId);
|
|
42
41
|
const [siteFormat = (0, _date.getSettings)().formats.date] = (0, _coreData.useEntityProp)('root', 'site', 'date_format');
|
|
43
|
-
const inspectorControls = (0,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
const inspectorControls = /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.InspectorControls, {
|
|
43
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.PanelBody, {
|
|
44
|
+
title: (0, _i18n.__)('Settings'),
|
|
45
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.__experimentalDateFormatPicker, {
|
|
46
|
+
format: format,
|
|
47
|
+
defaultFormat: siteFormat,
|
|
48
|
+
onChange: nextFormat => setAttributes({
|
|
49
|
+
format: nextFormat
|
|
50
|
+
})
|
|
51
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.ToggleControl, {
|
|
52
|
+
__nextHasNoMarginBottom: true,
|
|
53
|
+
label: (0, _i18n.__)('Link to comment'),
|
|
54
|
+
onChange: () => setAttributes({
|
|
55
|
+
isLink: !isLink
|
|
56
|
+
}),
|
|
57
|
+
checked: isLink
|
|
58
|
+
})]
|
|
50
59
|
})
|
|
51
|
-
})
|
|
52
|
-
__nextHasNoMarginBottom: true,
|
|
53
|
-
label: (0, _i18n.__)('Link to comment'),
|
|
54
|
-
onChange: () => setAttributes({
|
|
55
|
-
isLink: !isLink
|
|
56
|
-
}),
|
|
57
|
-
checked: isLink
|
|
58
|
-
})));
|
|
60
|
+
});
|
|
59
61
|
if (!commentId || !date) {
|
|
60
62
|
date = (0, _i18n._x)('Comment Date', 'block title');
|
|
61
63
|
}
|
|
62
|
-
let commentDate = date instanceof Date ? (0,
|
|
63
|
-
dateTime: (0, _date.dateI18n)('c', date)
|
|
64
|
-
|
|
64
|
+
let commentDate = date instanceof Date ? /*#__PURE__*/(0, _jsxRuntime.jsx)("time", {
|
|
65
|
+
dateTime: (0, _date.dateI18n)('c', date),
|
|
66
|
+
children: (0, _date.dateI18n)(format || siteFormat, date)
|
|
67
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("time", {
|
|
68
|
+
children: date
|
|
69
|
+
});
|
|
65
70
|
if (isLink) {
|
|
66
|
-
commentDate = (0,
|
|
71
|
+
commentDate = /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
67
72
|
href: "#comment-date-pseudo-link",
|
|
68
|
-
onClick: event => event.preventDefault()
|
|
69
|
-
|
|
73
|
+
onClick: event => event.preventDefault(),
|
|
74
|
+
children: commentDate
|
|
75
|
+
});
|
|
70
76
|
}
|
|
71
|
-
return (0,
|
|
72
|
-
|
|
73
|
-
|
|
77
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
78
|
+
children: [inspectorControls, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
79
|
+
...blockProps,
|
|
80
|
+
children: commentDate
|
|
81
|
+
})]
|
|
82
|
+
});
|
|
74
83
|
}
|
|
75
84
|
//# sourceMappingURL=edit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_coreData","require","_date","_blockEditor","_components","_i18n","Edit","attributes","format","isLink","context","commentId","setAttributes","blockProps","useBlockProps","date","useEntityProp","siteFormat","getDateSettings","formats","inspectorControls","
|
|
1
|
+
{"version":3,"names":["_coreData","require","_date","_blockEditor","_components","_i18n","_jsxRuntime","Edit","attributes","format","isLink","context","commentId","setAttributes","blockProps","useBlockProps","date","useEntityProp","siteFormat","getDateSettings","formats","inspectorControls","jsx","InspectorControls","children","jsxs","PanelBody","title","__","__experimentalDateFormatPicker","defaultFormat","onChange","nextFormat","ToggleControl","__nextHasNoMarginBottom","label","checked","_x","commentDate","Date","dateTime","dateI18n","href","onClick","event","preventDefault","Fragment"],"sources":["@wordpress/block-library/src/comment-date/edit.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useEntityProp } from '@wordpress/core-data';\nimport { dateI18n, getSettings as getDateSettings } from '@wordpress/date';\nimport {\n\tInspectorControls,\n\tuseBlockProps,\n\t__experimentalDateFormatPicker as DateFormatPicker,\n} from '@wordpress/block-editor';\nimport { PanelBody, ToggleControl } from '@wordpress/components';\nimport { __, _x } from '@wordpress/i18n';\n\n/**\n * Renders the `core/comment-date` block on the editor.\n *\n * @param {Object} props React props.\n * @param {Object} props.setAttributes Callback for updating block attributes.\n * @param {Object} props.attributes Block attributes.\n * @param {string} props.attributes.format Format of the date.\n * @param {string} props.attributes.isLink Whether the author name should be linked.\n * @param {Object} props.context Inherited context.\n * @param {string} props.context.commentId The comment ID.\n *\n * @return {JSX.Element} React element.\n */\nexport default function Edit( {\n\tattributes: { format, isLink },\n\tcontext: { commentId },\n\tsetAttributes,\n} ) {\n\tconst blockProps = useBlockProps();\n\tlet [ date ] = useEntityProp( 'root', 'comment', 'date', commentId );\n\tconst [ siteFormat = getDateSettings().formats.date ] = useEntityProp(\n\t\t'root',\n\t\t'site',\n\t\t'date_format'\n\t);\n\n\tconst inspectorControls = (\n\t\t<InspectorControls>\n\t\t\t<PanelBody title={ __( 'Settings' ) }>\n\t\t\t\t<DateFormatPicker\n\t\t\t\t\tformat={ format }\n\t\t\t\t\tdefaultFormat={ siteFormat }\n\t\t\t\t\tonChange={ ( nextFormat ) =>\n\t\t\t\t\t\tsetAttributes( { format: nextFormat } )\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t\t<ToggleControl\n\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\tlabel={ __( 'Link to comment' ) }\n\t\t\t\t\tonChange={ () => setAttributes( { isLink: ! isLink } ) }\n\t\t\t\t\tchecked={ isLink }\n\t\t\t\t/>\n\t\t\t</PanelBody>\n\t\t</InspectorControls>\n\t);\n\n\tif ( ! commentId || ! date ) {\n\t\tdate = _x( 'Comment Date', 'block title' );\n\t}\n\n\tlet commentDate =\n\t\tdate instanceof Date ? (\n\t\t\t<time dateTime={ dateI18n( 'c', date ) }>\n\t\t\t\t{ dateI18n( format || siteFormat, date ) }\n\t\t\t</time>\n\t\t) : (\n\t\t\t<time>{ date }</time>\n\t\t);\n\n\tif ( isLink ) {\n\t\tcommentDate = (\n\t\t\t<a\n\t\t\t\thref=\"#comment-date-pseudo-link\"\n\t\t\t\tonClick={ ( event ) => event.preventDefault() }\n\t\t\t>\n\t\t\t\t{ commentDate }\n\t\t\t</a>\n\t\t);\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{ inspectorControls }\n\t\t\t<div { ...blockProps }>{ commentDate }</div>\n\t\t</>\n\t);\n}\n"],"mappings":";;;;;;AAGA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAKA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAAyC,IAA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OAAO,EAAG1B;MAAQ,CAClB,CAAC;IAAA,CACQ;EAAC,CACM,CACnB;EAED,IAAK,CAAEE,SAAS,IAAI,CAAEI,IAAI,EAAG;IAC5BA,IAAI,GAAG,IAAAqB,QAAE,EAAE,cAAc,EAAE,aAAc,CAAC;EAC3C;EAEA,IAAIC,WAAW,GACdtB,IAAI,YAAYuB,IAAI,gBACnB,IAAAjC,WAAA,CAAAgB,GAAA;IAAMkB,QAAQ,EAAG,IAAAC,cAAQ,EAAE,GAAG,EAAEzB,IAAK,CAAG;IAAAQ,QAAA,EACrC,IAAAiB,cAAQ,EAAEhC,MAAM,IAAIS,UAAU,EAAEF,IAAK;EAAC,CACnC,CAAC,gBAEP,IAAAV,WAAA,CAAAgB,GAAA;IAAAE,QAAA,EAAQR;EAAI,CAAQ,CACpB;EAEF,IAAKN,MAAM,EAAG;IACb4B,WAAW,gBACV,IAAAhC,WAAA,CAAAgB,GAAA;MACCoB,IAAI,EAAC,2BAA2B;MAChCC,OAAO,EAAKC,KAAK,IAAMA,KAAK,CAACC,cAAc,CAAC,CAAG;MAAArB,QAAA,EAE7Cc;IAAW,CACX,CACH;EACF;EAEA,oBACC,IAAAhC,WAAA,CAAAmB,IAAA,EAAAnB,WAAA,CAAAwC,QAAA;IAAAtB,QAAA,GACGH,iBAAiB,eACnB,IAAAf,WAAA,CAAAgB,GAAA;MAAA,GAAUR,UAAU;MAAAU,QAAA,EAAKc;IAAW,CAAO,CAAC;EAAA,CAC3C,CAAC;AAEL","ignoreList":[]}
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = Edit;
|
|
8
|
-
var
|
|
9
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
10
9
|
var _blockEditor = require("@wordpress/block-editor");
|
|
11
10
|
var _components = require("@wordpress/components");
|
|
12
11
|
var _i18n = require("@wordpress/i18n");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
/**
|
|
14
14
|
* External dependencies
|
|
15
15
|
*/
|
|
@@ -26,33 +26,41 @@ function Edit({
|
|
|
26
26
|
setAttributes
|
|
27
27
|
}) {
|
|
28
28
|
const blockProps = (0, _blockEditor.useBlockProps)({
|
|
29
|
-
className: (0,
|
|
29
|
+
className: (0, _clsx.default)({
|
|
30
30
|
[`has-text-align-${textAlign}`]: textAlign
|
|
31
31
|
})
|
|
32
32
|
});
|
|
33
|
-
const blockControls = (0,
|
|
34
|
-
group: "block"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
const blockControls = /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.BlockControls, {
|
|
34
|
+
group: "block",
|
|
35
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.AlignmentControl, {
|
|
36
|
+
value: textAlign,
|
|
37
|
+
onChange: newAlign => setAttributes({
|
|
38
|
+
textAlign: newAlign
|
|
39
|
+
})
|
|
39
40
|
})
|
|
40
|
-
})
|
|
41
|
-
const inspectorControls = (0,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
41
|
+
});
|
|
42
|
+
const inspectorControls = /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.InspectorControls, {
|
|
43
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.PanelBody, {
|
|
44
|
+
title: (0, _i18n.__)('Settings'),
|
|
45
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.ToggleControl, {
|
|
46
|
+
__nextHasNoMarginBottom: true,
|
|
47
|
+
label: (0, _i18n.__)('Open in new tab'),
|
|
48
|
+
onChange: value => setAttributes({
|
|
49
|
+
linkTarget: value ? '_blank' : '_self'
|
|
50
|
+
}),
|
|
51
|
+
checked: linkTarget === '_blank'
|
|
52
|
+
})
|
|
53
|
+
})
|
|
54
|
+
});
|
|
55
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
56
|
+
children: [blockControls, inspectorControls, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
57
|
+
...blockProps,
|
|
58
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
59
|
+
href: "#edit-comment-pseudo-link",
|
|
60
|
+
onClick: event => event.preventDefault(),
|
|
61
|
+
children: (0, _i18n.__)('Edit')
|
|
62
|
+
})
|
|
63
|
+
})]
|
|
64
|
+
});
|
|
57
65
|
}
|
|
58
66
|
//# sourceMappingURL=edit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_clsx","_interopRequireDefault","require","_blockEditor","_components","_i18n","_jsxRuntime","Edit","attributes","linkTarget","textAlign","setAttributes","blockProps","useBlockProps","className","clsx","blockControls","jsx","BlockControls","group","children","AlignmentControl","value","onChange","newAlign","inspectorControls","InspectorControls","PanelBody","title","__","ToggleControl","__nextHasNoMarginBottom","label","checked","jsxs","Fragment","href","onClick","event","preventDefault"],"sources":["@wordpress/block-library/src/comment-edit-link/edit.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tAlignmentControl,\n\tBlockControls,\n\tInspectorControls,\n\tuseBlockProps,\n} from '@wordpress/block-editor';\nimport { PanelBody, ToggleControl } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\nexport default function Edit( {\n\tattributes: { linkTarget, textAlign },\n\tsetAttributes,\n} ) {\n\tconst blockProps = useBlockProps( {\n\t\tclassName: clsx( {\n\t\t\t[ `has-text-align-${ textAlign }` ]: textAlign,\n\t\t} ),\n\t} );\n\n\tconst blockControls = (\n\t\t<BlockControls group=\"block\">\n\t\t\t<AlignmentControl\n\t\t\t\tvalue={ textAlign }\n\t\t\t\tonChange={ ( newAlign ) =>\n\t\t\t\t\tsetAttributes( { textAlign: newAlign } )\n\t\t\t\t}\n\t\t\t/>\n\t\t</BlockControls>\n\t);\n\tconst inspectorControls = (\n\t\t<InspectorControls>\n\t\t\t<PanelBody title={ __( 'Settings' ) }>\n\t\t\t\t<ToggleControl\n\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\tlabel={ __( 'Open in new tab' ) }\n\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\tlinkTarget: value ? '_blank' : '_self',\n\t\t\t\t\t\t} )\n\t\t\t\t\t}\n\t\t\t\t\tchecked={ linkTarget === '_blank' }\n\t\t\t\t/>\n\t\t\t</PanelBody>\n\t\t</InspectorControls>\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t{ blockControls }\n\t\t\t{ inspectorControls }\n\t\t\t<div { ...blockProps }>\n\t\t\t\t<a\n\t\t\t\t\thref=\"#edit-comment-pseudo-link\"\n\t\t\t\t\tonClick={ ( event ) => event.preventDefault() }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Edit' ) }\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</>\n\t);\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AAAqC,IAAAI,WAAA,GAAAJ,OAAA;AAfrC;AACA;AACA;;AAGA;AACA;AACA;;AAUe,SAASK,IAAIA,CAAE;EAC7BC,UAAU,EAAE;IAAEC,UAAU;IAAEC;EAAU,CAAC;EACrCC;AACD,CAAC,EAAG;EACH,MAAMC,UAAU,GAAG,IAAAC,0BAA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AACC,cAAc,CAAC,CAAG;QAAAnB,QAAA,EAE7C,IAAAS,QAAE,EAAE,MAAO;MAAC,CACZ;IAAC,CACA,CAAC;EAAA,CACL,CAAC;AAEL","ignoreList":[]}
|
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var
|
|
9
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
10
9
|
var _i18n = require("@wordpress/i18n");
|
|
11
10
|
var _blockEditor = require("@wordpress/block-editor");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
/**
|
|
13
13
|
* External dependencies
|
|
14
14
|
*/
|
|
@@ -26,32 +26,36 @@ var _blockEditor = require("@wordpress/block-editor");
|
|
|
26
26
|
* @param {string} props.attributes.textAlign The `textAlign` attribute.
|
|
27
27
|
*
|
|
28
28
|
* @return {JSX.Element} React element.
|
|
29
|
-
*/
|
|
30
|
-
function Edit({
|
|
29
|
+
*/function Edit({
|
|
31
30
|
setAttributes,
|
|
32
31
|
attributes: {
|
|
33
32
|
textAlign
|
|
34
33
|
}
|
|
35
34
|
}) {
|
|
36
35
|
const blockProps = (0, _blockEditor.useBlockProps)({
|
|
37
|
-
className: (0,
|
|
36
|
+
className: (0, _clsx.default)({
|
|
38
37
|
[`has-text-align-${textAlign}`]: textAlign
|
|
39
38
|
})
|
|
40
39
|
});
|
|
41
|
-
const blockControls = (0,
|
|
42
|
-
group: "block"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
const blockControls = /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.BlockControls, {
|
|
41
|
+
group: "block",
|
|
42
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.AlignmentControl, {
|
|
43
|
+
value: textAlign,
|
|
44
|
+
onChange: newAlign => setAttributes({
|
|
45
|
+
textAlign: newAlign
|
|
46
|
+
})
|
|
47
47
|
})
|
|
48
|
-
})
|
|
49
|
-
return (0,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
});
|
|
49
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
50
|
+
children: [blockControls, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
51
|
+
...blockProps,
|
|
52
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
53
|
+
href: "#comment-reply-pseudo-link",
|
|
54
|
+
onClick: event => event.preventDefault(),
|
|
55
|
+
children: (0, _i18n.__)('Reply')
|
|
56
|
+
})
|
|
57
|
+
})]
|
|
58
|
+
});
|
|
55
59
|
}
|
|
56
60
|
var _default = exports.default = Edit;
|
|
57
61
|
//# sourceMappingURL=edit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_clsx","_interopRequireDefault","require","_i18n","_blockEditor","_jsxRuntime","Edit","setAttributes","attributes","textAlign","blockProps","useBlockProps","className","clsx","blockControls","jsx","BlockControls","group","children","AlignmentControl","value","onChange","newAlign","jsxs","Fragment","href","onClick","event","preventDefault","__","_default","exports","default"],"sources":["@wordpress/block-library/src/comment-reply-link/edit.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport {\n\tAlignmentControl,\n\tBlockControls,\n\tuseBlockProps,\n} from '@wordpress/block-editor';\n\n/**\n * Renders the `core/comment-reply-link` block on the editor.\n *\n * @param {Object} props React props.\n * @param {Object} props.setAttributes Callback for updating block attributes.\n * @param {Object} props.attributes Block attributes.\n * @param {string} props.attributes.textAlign The `textAlign` attribute.\n *\n * @return {JSX.Element} React element.\n */\nfunction Edit( { setAttributes, attributes: { textAlign } } ) {\n\tconst blockProps = useBlockProps( {\n\t\tclassName: clsx( {\n\t\t\t[ `has-text-align-${ textAlign }` ]: textAlign,\n\t\t} ),\n\t} );\n\n\tconst blockControls = (\n\t\t<BlockControls group=\"block\">\n\t\t\t<AlignmentControl\n\t\t\t\tvalue={ textAlign }\n\t\t\t\tonChange={ ( newAlign ) =>\n\t\t\t\t\tsetAttributes( { textAlign: newAlign } )\n\t\t\t\t}\n\t\t\t/>\n\t\t</BlockControls>\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t{ blockControls }\n\t\t\t<div { ...blockProps }>\n\t\t\t\t<a\n\t\t\t\t\thref=\"#comment-reply-pseudo-link\"\n\t\t\t\t\tonClick={ ( event ) => event.preventDefault() }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Reply' ) }\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</>\n\t);\n}\n\nexport default Edit;\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAIiC,IAAAG,WAAA,GAAAH,OAAA;AAbjC;AACA;AACA;;AAGA;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACA,SAASI,IAAIA,CAAE;EAAEC,aAAa;EAAEC,UAAU,EAAE;IAAEC;EAAU;AAAE,CAAC,EAAG;EAC7D,MAAMC,UAAU,GAAG,IAAAC,0BAAa,EAAE;IACjCC,SAAS,EAAE,IAAAC,aAAI,EAAE;MAChB,CAAG,kBAAkBJ,SAAW,EAAC,GAAIA;IACtC,CAAE;EACH,CAAE,CAAC;EAEH,MAAMK,aAAa,gBAClB,IAAAT,WAAA,CAAAU,GAAA,EAACX,YAAA,CAAAY,aAAa;IAACC,KAAK,EAAC,OAAO;IAAAC,QAAA,eAC3B,IAAAb,WAAA,CAAAU,GAAA,EAACX,YAAA,CAAAe,gBAAgB;MAChBC,KAAK,EAAGX,SAAW;MACnBY,QAAQ,EAAKC,QAAQ,IACpBf,aAAa,CAAE;QAAEE,SAAS,EAAEa;MAAS,CAAE;IACvC,CACD;EAAC,CACY,CACf;EAED,oBACC,IAAAjB,WAAA,CAAAkB,IAAA,EAAAlB,WAAA,CAAAmB,QAAA;IAAAN,QAAA,GACGJ,aAAa,eACf,IAAAT,WAAA,CAAAU,GAAA;MAAA,GAAUL,UAAU;MAAAQ,QAAA,eACnB,IAAAb,WAAA,CAAAU,GAAA;QACCU,IAAI,EAAC,4BAA4B;QACjCC,OAAO,EAAKC,KAAK,IAAMA,KAAK,CAACC,cAAc,CAAC,CAAG;QAAAV,QAAA,EAE7C,IAAAW,QAAE,EAAE,OAAQ;MAAC,CACb;IAAC,CACA,CAAC;EAAA,CACL,CAAC;AAEL;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEc1B,IAAI","ignoreList":[]}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = CommentTemplateEdit;
|
|
7
|
-
var _react = require("react");
|
|
8
7
|
var _element = require("@wordpress/element");
|
|
9
8
|
var _data = require("@wordpress/data");
|
|
10
9
|
var _i18n = require("@wordpress/i18n");
|
|
@@ -12,6 +11,7 @@ var _blockEditor = require("@wordpress/block-editor");
|
|
|
12
11
|
var _components = require("@wordpress/components");
|
|
13
12
|
var _coreData = require("@wordpress/core-data");
|
|
14
13
|
var _hooks = require("./hooks");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
/**
|
|
16
16
|
* WordPress dependencies
|
|
17
17
|
*/
|
|
@@ -109,20 +109,21 @@ function CommentTemplateInnerBlocks({
|
|
|
109
109
|
} = (0, _blockEditor.useInnerBlocksProps)({}, {
|
|
110
110
|
template: TEMPLATE
|
|
111
111
|
});
|
|
112
|
-
return (0,
|
|
113
|
-
...innerBlocksProps
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
112
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
113
|
+
...innerBlocksProps,
|
|
114
|
+
children: [comment.commentId === (activeCommentId || firstCommentId) ? children : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(MemoizedCommentTemplatePreview, {
|
|
115
|
+
blocks: blocks,
|
|
116
|
+
commentId: comment.commentId,
|
|
117
|
+
setActiveCommentId: setActiveCommentId,
|
|
118
|
+
isHidden: comment.commentId === (activeCommentId || firstCommentId)
|
|
119
|
+
}), comment?.children?.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(CommentsList, {
|
|
120
|
+
comments: comment.children,
|
|
121
|
+
activeCommentId: activeCommentId,
|
|
122
|
+
setActiveCommentId: setActiveCommentId,
|
|
123
|
+
blocks: blocks,
|
|
124
|
+
firstCommentId: firstCommentId
|
|
125
|
+
}) : null]
|
|
126
|
+
});
|
|
126
127
|
}
|
|
127
128
|
const CommentTemplatePreview = ({
|
|
128
129
|
blocks,
|
|
@@ -145,7 +146,7 @@ const CommentTemplatePreview = ({
|
|
|
145
146
|
const style = {
|
|
146
147
|
display: isHidden ? 'none' : undefined
|
|
147
148
|
};
|
|
148
|
-
return (0,
|
|
149
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
149
150
|
...blockPreviewProps,
|
|
150
151
|
tabIndex: 0,
|
|
151
152
|
role: "button",
|
|
@@ -178,31 +179,32 @@ const CommentsList = ({
|
|
|
178
179
|
setActiveCommentId,
|
|
179
180
|
blocks,
|
|
180
181
|
firstCommentId
|
|
181
|
-
}) => (0,
|
|
182
|
-
...blockProps
|
|
183
|
-
|
|
184
|
-
commentId,
|
|
185
|
-
...comment
|
|
186
|
-
}, index) => (0, _react.createElement)(_blockEditor.BlockContextProvider, {
|
|
187
|
-
key: comment.commentId || index,
|
|
188
|
-
value: {
|
|
189
|
-
// If the commentId is negative it means that this comment is a
|
|
190
|
-
// "placeholder" and that the block is most likely being used in the
|
|
191
|
-
// site editor. In this case, we have to set the commentId to `null`
|
|
192
|
-
// because otherwise the (non-existent) comment with a negative ID
|
|
193
|
-
// would be reqested from the REST API.
|
|
194
|
-
commentId: commentId < 0 ? null : commentId
|
|
195
|
-
}
|
|
196
|
-
}, (0, _react.createElement)(CommentTemplateInnerBlocks, {
|
|
197
|
-
comment: {
|
|
182
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)("ol", {
|
|
183
|
+
...blockProps,
|
|
184
|
+
children: comments && comments.map(({
|
|
198
185
|
commentId,
|
|
199
186
|
...comment
|
|
200
|
-
},
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
187
|
+
}, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.BlockContextProvider, {
|
|
188
|
+
value: {
|
|
189
|
+
// If the commentId is negative it means that this comment is a
|
|
190
|
+
// "placeholder" and that the block is most likely being used in the
|
|
191
|
+
// site editor. In this case, we have to set the commentId to `null`
|
|
192
|
+
// because otherwise the (non-existent) comment with a negative ID
|
|
193
|
+
// would be reqested from the REST API.
|
|
194
|
+
commentId: commentId < 0 ? null : commentId
|
|
195
|
+
},
|
|
196
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(CommentTemplateInnerBlocks, {
|
|
197
|
+
comment: {
|
|
198
|
+
commentId,
|
|
199
|
+
...comment
|
|
200
|
+
},
|
|
201
|
+
activeCommentId: activeCommentId,
|
|
202
|
+
setActiveCommentId: setActiveCommentId,
|
|
203
|
+
blocks: blocks,
|
|
204
|
+
firstCommentId: firstCommentId
|
|
205
|
+
})
|
|
206
|
+
}, comment.commentId || index))
|
|
207
|
+
});
|
|
206
208
|
function CommentTemplateEdit({
|
|
207
209
|
clientId,
|
|
208
210
|
context: {
|
|
@@ -248,9 +250,10 @@ function CommentTemplateEdit({
|
|
|
248
250
|
// Reverse the order of top comments if needed.
|
|
249
251
|
commentOrder === 'desc' && topLevelComments ? [...topLevelComments].reverse() : topLevelComments);
|
|
250
252
|
if (!topLevelComments) {
|
|
251
|
-
return (0,
|
|
252
|
-
...blockProps
|
|
253
|
-
|
|
253
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
254
|
+
...blockProps,
|
|
255
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Spinner, {})
|
|
256
|
+
});
|
|
254
257
|
}
|
|
255
258
|
if (!postId) {
|
|
256
259
|
commentTree = getCommentsPlaceholder({
|
|
@@ -261,11 +264,12 @@ function CommentTemplateEdit({
|
|
|
261
264
|
});
|
|
262
265
|
}
|
|
263
266
|
if (!commentTree.length) {
|
|
264
|
-
return (0,
|
|
265
|
-
...blockProps
|
|
266
|
-
|
|
267
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
268
|
+
...blockProps,
|
|
269
|
+
children: (0, _i18n.__)('No results found.')
|
|
270
|
+
});
|
|
267
271
|
}
|
|
268
|
-
return (0,
|
|
272
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(CommentsList, {
|
|
269
273
|
comments: commentTree,
|
|
270
274
|
blockProps: blockProps,
|
|
271
275
|
blocks: blocks,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_element","require","_data","_i18n","_blockEditor","_components","_coreData","_hooks","TEMPLATE","getCommentsPlaceholder","perPage","pageComments","threadComments","threadCommentsDepth","commentsDepth","Math","min","buildChildrenComment","commentsLevel","nextLevel","commentId","children","placeholderComments","push","CommentTemplateInnerBlocks","comment","activeCommentId","setActiveCommentId","firstCommentId","blocks","innerBlocksProps","useInnerBlocksProps","template","_react","createElement","MemoizedCommentTemplatePreview","isHidden","length","CommentsList","comments","CommentTemplatePreview","blockPreviewProps","useBlockPreview","handleOnClick","style","display","undefined","tabIndex","role","onClick","onKeyPress","memo","blockProps","map","index","BlockContextProvider","key","value","CommentTemplateEdit","clientId","context","postId","useBlockProps","useState","commentOrder","commentsPerPage","useSelect","select","getSettings","blockEditorStore","__experimentalDiscussionSettings","commentQuery","useCommentQueryArgs","topLevelComments","getEntityRecords","coreStore","getBlocks","commentTree","useCommentTree","reverse","Spinner","__"],"sources":["@wordpress/block-library/src/comment-template/edit.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useState, memo } from '@wordpress/element';\nimport { useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport {\n\tBlockContextProvider,\n\tuseBlockProps,\n\tuseInnerBlocksProps,\n\tstore as blockEditorStore,\n\t__experimentalUseBlockPreview as useBlockPreview,\n} from '@wordpress/block-editor';\nimport { Spinner } from '@wordpress/components';\nimport { store as coreStore } from '@wordpress/core-data';\n\n/**\n * Internal dependencies\n */\nimport { useCommentQueryArgs, useCommentTree } from './hooks';\n\nconst TEMPLATE = [\n\t[ 'core/avatar' ],\n\t[ 'core/comment-author-name' ],\n\t[ 'core/comment-date' ],\n\t[ 'core/comment-content' ],\n\t[ 'core/comment-reply-link' ],\n\t[ 'core/comment-edit-link' ],\n];\n\n/**\n * Function that returns a comment structure that will be rendered with default placehoders.\n *\n * Each comment has a `commentId` property that is always a negative number in\n * case of the placeholders. This is to ensure that the comment does not\n * conflict with the actual (real) comments.\n *\n * @param {Object} settings Discussion Settings.\n * @param {number} [settings.perPage] - Comments per page setting or block attribute.\n * @param {boolean} [settings.pageComments] - Enable break comments into pages setting.\n * @param {boolean} [settings.threadComments] - Enable threaded (nested) comments setting.\n * @param {number} [settings.threadCommentsDepth] - Level deep of threaded comments.\n *\n * @typedef {{id: null, children: EmptyComment[]}} EmptyComment\n * @return {EmptyComment[]} \t\tInner blocks of the Comment Template\n */\nconst getCommentsPlaceholder = ( {\n\tperPage,\n\tpageComments,\n\tthreadComments,\n\tthreadCommentsDepth,\n} ) => {\n\t// Limit commentsDepth to 3\n\tconst commentsDepth = ! threadComments\n\t\t? 1\n\t\t: Math.min( threadCommentsDepth, 3 );\n\n\tconst buildChildrenComment = ( commentsLevel ) => {\n\t\t// Render children comments until commentsDepth is reached\n\t\tif ( commentsLevel < commentsDepth ) {\n\t\t\tconst nextLevel = commentsLevel + 1;\n\n\t\t\treturn [\n\t\t\t\t{\n\t\t\t\t\tcommentId: -( commentsLevel + 3 ),\n\t\t\t\t\tchildren: buildChildrenComment( nextLevel ),\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\t\treturn [];\n\t};\n\n\t// Add the first comment and its children\n\tconst placeholderComments = [\n\t\t{ commentId: -1, children: buildChildrenComment( 1 ) },\n\t];\n\n\t// Add a second comment unless the break comments setting is active and set to less than 2, and there is one nested comment max\n\tif ( ( ! pageComments || perPage >= 2 ) && commentsDepth < 3 ) {\n\t\tplaceholderComments.push( {\n\t\t\tcommentId: -2,\n\t\t\tchildren: [],\n\t\t} );\n\t}\n\n\t// Add a third comment unless the break comments setting is active and set to less than 3, and there aren't nested comments\n\tif ( ( ! pageComments || perPage >= 3 ) && commentsDepth < 2 ) {\n\t\tplaceholderComments.push( {\n\t\t\tcommentId: -3,\n\t\t\tchildren: [],\n\t\t} );\n\t}\n\n\t// In case that the value is set but larger than 3 we truncate it to 3.\n\treturn placeholderComments;\n};\n\n/**\n * Component which renders the inner blocks of the Comment Template.\n *\n * @param {Object} props Component props.\n * @param {Array} [props.comment] - A comment object.\n * @param {Array} [props.activeCommentId] - The ID of the comment that is currently active.\n * @param {Array} [props.setActiveCommentId] - The setter for activeCommentId.\n * @param {Array} [props.firstCommentId] - ID of the first comment in the array.\n * @param {Array} [props.blocks] - Array of blocks returned from\n * getBlocks() in parent .\n * @return {Element} \t\tInner blocks of the Comment Template\n */\nfunction CommentTemplateInnerBlocks( {\n\tcomment,\n\tactiveCommentId,\n\tsetActiveCommentId,\n\tfirstCommentId,\n\tblocks,\n} ) {\n\tconst { children, ...innerBlocksProps } = useInnerBlocksProps(\n\t\t{},\n\t\t{ template: TEMPLATE }\n\t);\n\n\treturn (\n\t\t<li { ...innerBlocksProps }>\n\t\t\t{ comment.commentId === ( activeCommentId || firstCommentId )\n\t\t\t\t? children\n\t\t\t\t: null }\n\n\t\t\t{ /* To avoid flicker when switching active block contexts, a preview\n\t\t\t is ALWAYS rendered and the preview for the active block is hidden.\n\t\t\t This ensures that when switching the active block, the component is not\n\t\t\t mounted again but rather it only toggles the `isHidden` prop.\n\t\t\t The same strategy is used for preventing the flicker in the Post Template\n\t\t\t block. */ }\n\t\t\t<MemoizedCommentTemplatePreview\n\t\t\t\tblocks={ blocks }\n\t\t\t\tcommentId={ comment.commentId }\n\t\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\t\tisHidden={\n\t\t\t\t\tcomment.commentId === ( activeCommentId || firstCommentId )\n\t\t\t\t}\n\t\t\t/>\n\n\t\t\t{ comment?.children?.length > 0 ? (\n\t\t\t\t<CommentsList\n\t\t\t\t\tcomments={ comment.children }\n\t\t\t\t\tactiveCommentId={ activeCommentId }\n\t\t\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\t\t\tblocks={ blocks }\n\t\t\t\t\tfirstCommentId={ firstCommentId }\n\t\t\t\t/>\n\t\t\t) : null }\n\t\t</li>\n\t);\n}\n\nconst CommentTemplatePreview = ( {\n\tblocks,\n\tcommentId,\n\tsetActiveCommentId,\n\tisHidden,\n} ) => {\n\tconst blockPreviewProps = useBlockPreview( {\n\t\tblocks,\n\t} );\n\n\tconst handleOnClick = () => {\n\t\tsetActiveCommentId( commentId );\n\t};\n\n\t// We have to hide the preview block if the `comment` props points to\n\t// the curently active block!\n\n\t// Or, to put it differently, every preview block is visible unless it is the\n\t// currently active block - in this case we render its inner blocks.\n\tconst style = {\n\t\tdisplay: isHidden ? 'none' : undefined,\n\t};\n\n\treturn (\n\t\t<div\n\t\t\t{ ...blockPreviewProps }\n\t\t\ttabIndex={ 0 }\n\t\t\trole=\"button\"\n\t\t\tstyle={ style }\n\t\t\t// eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role\n\t\t\tonClick={ handleOnClick }\n\t\t\tonKeyPress={ handleOnClick }\n\t\t/>\n\t);\n};\n\nconst MemoizedCommentTemplatePreview = memo( CommentTemplatePreview );\n\n/**\n * Component that renders a list of (nested) comments. It is called recursively.\n *\n * @param {Object} props Component props.\n * @param {Array} [props.comments] - Array of comment objects.\n * @param {Array} [props.blockProps] - Props from parent's `useBlockProps()`.\n * @param {Array} [props.activeCommentId] - The ID of the comment that is currently active.\n * @param {Array} [props.setActiveCommentId] - The setter for activeCommentId.\n * @param {Array} [props.blocks] - Array of blocks returned from getBlocks() in parent.\n * @param {Object} [props.firstCommentId] - The ID of the first comment in the array of\n * comment objects.\n * @return {Element} \t\tList of comments.\n */\nconst CommentsList = ( {\n\tcomments,\n\tblockProps,\n\tactiveCommentId,\n\tsetActiveCommentId,\n\tblocks,\n\tfirstCommentId,\n} ) => (\n\t<ol { ...blockProps }>\n\t\t{ comments &&\n\t\t\tcomments.map( ( { commentId, ...comment }, index ) => (\n\t\t\t\t<BlockContextProvider\n\t\t\t\t\tkey={ comment.commentId || index }\n\t\t\t\t\tvalue={ {\n\t\t\t\t\t\t// If the commentId is negative it means that this comment is a\n\t\t\t\t\t\t// \"placeholder\" and that the block is most likely being used in the\n\t\t\t\t\t\t// site editor. In this case, we have to set the commentId to `null`\n\t\t\t\t\t\t// because otherwise the (non-existent) comment with a negative ID\n\t\t\t\t\t\t// would be reqested from the REST API.\n\t\t\t\t\t\tcommentId: commentId < 0 ? null : commentId,\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t<CommentTemplateInnerBlocks\n\t\t\t\t\t\tcomment={ { commentId, ...comment } }\n\t\t\t\t\t\tactiveCommentId={ activeCommentId }\n\t\t\t\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\t\t\t\tblocks={ blocks }\n\t\t\t\t\t\tfirstCommentId={ firstCommentId }\n\t\t\t\t\t/>\n\t\t\t\t</BlockContextProvider>\n\t\t\t) ) }\n\t</ol>\n);\n\nexport default function CommentTemplateEdit( {\n\tclientId,\n\tcontext: { postId },\n} ) {\n\tconst blockProps = useBlockProps();\n\n\tconst [ activeCommentId, setActiveCommentId ] = useState();\n\tconst {\n\t\tcommentOrder,\n\t\tthreadCommentsDepth,\n\t\tthreadComments,\n\t\tcommentsPerPage,\n\t\tpageComments,\n\t} = useSelect( ( select ) => {\n\t\tconst { getSettings } = select( blockEditorStore );\n\t\treturn getSettings().__experimentalDiscussionSettings;\n\t} );\n\n\tconst commentQuery = useCommentQueryArgs( {\n\t\tpostId,\n\t} );\n\n\tconst { topLevelComments, blocks } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEntityRecords } = select( coreStore );\n\t\t\tconst { getBlocks } = select( blockEditorStore );\n\t\t\treturn {\n\t\t\t\t// Request only top-level comments. Replies are embedded.\n\t\t\t\ttopLevelComments: commentQuery\n\t\t\t\t\t? getEntityRecords( 'root', 'comment', commentQuery )\n\t\t\t\t\t: null,\n\t\t\t\tblocks: getBlocks( clientId ),\n\t\t\t};\n\t\t},\n\t\t[ clientId, commentQuery ]\n\t);\n\n\t// Generate a tree structure of comment IDs.\n\tlet commentTree = useCommentTree(\n\t\t// Reverse the order of top comments if needed.\n\t\tcommentOrder === 'desc' && topLevelComments\n\t\t\t? [ ...topLevelComments ].reverse()\n\t\t\t: topLevelComments\n\t);\n\n\tif ( ! topLevelComments ) {\n\t\treturn (\n\t\t\t<p { ...blockProps }>\n\t\t\t\t<Spinner />\n\t\t\t</p>\n\t\t);\n\t}\n\n\tif ( ! postId ) {\n\t\tcommentTree = getCommentsPlaceholder( {\n\t\t\tperPage: commentsPerPage,\n\t\t\tpageComments,\n\t\t\tthreadComments,\n\t\t\tthreadCommentsDepth,\n\t\t} );\n\t}\n\n\tif ( ! commentTree.length ) {\n\t\treturn <p { ...blockProps }>{ __( 'No results found.' ) }</p>;\n\t}\n\n\treturn (\n\t\t<CommentsList\n\t\t\tcomments={ commentTree }\n\t\t\tblockProps={ blockProps }\n\t\t\tblocks={ blocks }\n\t\t\tactiveCommentId={ activeCommentId }\n\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\tfirstCommentId={ commentTree[ 0 ]?.commentId }\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAOA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAKA,IAAAM,MAAA,GAAAN,OAAA;AAnBA;AACA;AACA;;AAcA;AACA;AACA;;AAGA,MAAMO,QAAQ,GAAG,CAChB,CAAE,aAAa,CAAE,EACjB,CAAE,0BAA0B,CAAE,EAC9B,CAAE,mBAAmB,CAAE,EACvB,CAAE,sBAAsB,CAAE,EAC1B,CAAE,yBAAyB,CAAE,EAC7B,CAAE,wBAAwB,CAAE,CAC5B;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,sBAAsB,GAAGA,CAAE;EAChCC,OAAO;EACPC,YAAY;EACZC,cAAc;EACdC;AACD,CAAC,KAAM;EACN;EACA,MAAMC,aAAa,GAAG,CAAEF,cAAc,GACnC,CAAC,GACDG,IAAI,CAACC,GAAG,CAAEH,mBAAmB,EAAE,CAAE,CAAC;EAErC,MAAMI,oBAAoB,GAAKC,aAAa,IAAM;IACjD;IACA,IAAKA,aAAa,GAAGJ,aAAa,EAAG;MACpC,MAAMK,SAAS,GAAGD,aAAa,GAAG,CAAC;MAEnC,OAAO,CACN;QACCE,SAAS,EAAE,EAAGF,aAAa,GAAG,CAAC,CAAE;QACjCG,QAAQ,EAAEJ,oBAAoB,CAAEE,SAAU;MAC3C,CAAC,CACD;IACF;IACA,OAAO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AAW,CAC9C,CAAC;AAEJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_element","require","_data","_i18n","_blockEditor","_components","_coreData","_hooks","_jsxRuntime","TEMPLATE","getCommentsPlaceholder","perPage","pageComments","threadComments","threadCommentsDepth","commentsDepth","Math","min","buildChildrenComment","commentsLevel","nextLevel","commentId","children","placeholderComments","push","CommentTemplateInnerBlocks","comment","activeCommentId","setActiveCommentId","firstCommentId","blocks","innerBlocksProps","useInnerBlocksProps","template","jsxs","jsx","MemoizedCommentTemplatePreview","isHidden","length","CommentsList","comments","CommentTemplatePreview","blockPreviewProps","useBlockPreview","handleOnClick","style","display","undefined","tabIndex","role","onClick","onKeyPress","memo","blockProps","map","index","BlockContextProvider","value","CommentTemplateEdit","clientId","context","postId","useBlockProps","useState","commentOrder","commentsPerPage","useSelect","select","getSettings","blockEditorStore","__experimentalDiscussionSettings","commentQuery","useCommentQueryArgs","topLevelComments","getEntityRecords","coreStore","getBlocks","commentTree","useCommentTree","reverse","Spinner","__"],"sources":["@wordpress/block-library/src/comment-template/edit.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useState, memo } from '@wordpress/element';\nimport { useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport {\n\tBlockContextProvider,\n\tuseBlockProps,\n\tuseInnerBlocksProps,\n\tstore as blockEditorStore,\n\t__experimentalUseBlockPreview as useBlockPreview,\n} from '@wordpress/block-editor';\nimport { Spinner } from '@wordpress/components';\nimport { store as coreStore } from '@wordpress/core-data';\n\n/**\n * Internal dependencies\n */\nimport { useCommentQueryArgs, useCommentTree } from './hooks';\n\nconst TEMPLATE = [\n\t[ 'core/avatar' ],\n\t[ 'core/comment-author-name' ],\n\t[ 'core/comment-date' ],\n\t[ 'core/comment-content' ],\n\t[ 'core/comment-reply-link' ],\n\t[ 'core/comment-edit-link' ],\n];\n\n/**\n * Function that returns a comment structure that will be rendered with default placehoders.\n *\n * Each comment has a `commentId` property that is always a negative number in\n * case of the placeholders. This is to ensure that the comment does not\n * conflict with the actual (real) comments.\n *\n * @param {Object} settings Discussion Settings.\n * @param {number} [settings.perPage] - Comments per page setting or block attribute.\n * @param {boolean} [settings.pageComments] - Enable break comments into pages setting.\n * @param {boolean} [settings.threadComments] - Enable threaded (nested) comments setting.\n * @param {number} [settings.threadCommentsDepth] - Level deep of threaded comments.\n *\n * @typedef {{id: null, children: EmptyComment[]}} EmptyComment\n * @return {EmptyComment[]} \t\tInner blocks of the Comment Template\n */\nconst getCommentsPlaceholder = ( {\n\tperPage,\n\tpageComments,\n\tthreadComments,\n\tthreadCommentsDepth,\n} ) => {\n\t// Limit commentsDepth to 3\n\tconst commentsDepth = ! threadComments\n\t\t? 1\n\t\t: Math.min( threadCommentsDepth, 3 );\n\n\tconst buildChildrenComment = ( commentsLevel ) => {\n\t\t// Render children comments until commentsDepth is reached\n\t\tif ( commentsLevel < commentsDepth ) {\n\t\t\tconst nextLevel = commentsLevel + 1;\n\n\t\t\treturn [\n\t\t\t\t{\n\t\t\t\t\tcommentId: -( commentsLevel + 3 ),\n\t\t\t\t\tchildren: buildChildrenComment( nextLevel ),\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\t\treturn [];\n\t};\n\n\t// Add the first comment and its children\n\tconst placeholderComments = [\n\t\t{ commentId: -1, children: buildChildrenComment( 1 ) },\n\t];\n\n\t// Add a second comment unless the break comments setting is active and set to less than 2, and there is one nested comment max\n\tif ( ( ! pageComments || perPage >= 2 ) && commentsDepth < 3 ) {\n\t\tplaceholderComments.push( {\n\t\t\tcommentId: -2,\n\t\t\tchildren: [],\n\t\t} );\n\t}\n\n\t// Add a third comment unless the break comments setting is active and set to less than 3, and there aren't nested comments\n\tif ( ( ! pageComments || perPage >= 3 ) && commentsDepth < 2 ) {\n\t\tplaceholderComments.push( {\n\t\t\tcommentId: -3,\n\t\t\tchildren: [],\n\t\t} );\n\t}\n\n\t// In case that the value is set but larger than 3 we truncate it to 3.\n\treturn placeholderComments;\n};\n\n/**\n * Component which renders the inner blocks of the Comment Template.\n *\n * @param {Object} props Component props.\n * @param {Array} [props.comment] - A comment object.\n * @param {Array} [props.activeCommentId] - The ID of the comment that is currently active.\n * @param {Array} [props.setActiveCommentId] - The setter for activeCommentId.\n * @param {Array} [props.firstCommentId] - ID of the first comment in the array.\n * @param {Array} [props.blocks] - Array of blocks returned from\n * getBlocks() in parent .\n * @return {Element} \t\tInner blocks of the Comment Template\n */\nfunction CommentTemplateInnerBlocks( {\n\tcomment,\n\tactiveCommentId,\n\tsetActiveCommentId,\n\tfirstCommentId,\n\tblocks,\n} ) {\n\tconst { children, ...innerBlocksProps } = useInnerBlocksProps(\n\t\t{},\n\t\t{ template: TEMPLATE }\n\t);\n\n\treturn (\n\t\t<li { ...innerBlocksProps }>\n\t\t\t{ comment.commentId === ( activeCommentId || firstCommentId )\n\t\t\t\t? children\n\t\t\t\t: null }\n\n\t\t\t{ /* To avoid flicker when switching active block contexts, a preview\n\t\t\t is ALWAYS rendered and the preview for the active block is hidden.\n\t\t\t This ensures that when switching the active block, the component is not\n\t\t\t mounted again but rather it only toggles the `isHidden` prop.\n\t\t\t The same strategy is used for preventing the flicker in the Post Template\n\t\t\t block. */ }\n\t\t\t<MemoizedCommentTemplatePreview\n\t\t\t\tblocks={ blocks }\n\t\t\t\tcommentId={ comment.commentId }\n\t\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\t\tisHidden={\n\t\t\t\t\tcomment.commentId === ( activeCommentId || firstCommentId )\n\t\t\t\t}\n\t\t\t/>\n\n\t\t\t{ comment?.children?.length > 0 ? (\n\t\t\t\t<CommentsList\n\t\t\t\t\tcomments={ comment.children }\n\t\t\t\t\tactiveCommentId={ activeCommentId }\n\t\t\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\t\t\tblocks={ blocks }\n\t\t\t\t\tfirstCommentId={ firstCommentId }\n\t\t\t\t/>\n\t\t\t) : null }\n\t\t</li>\n\t);\n}\n\nconst CommentTemplatePreview = ( {\n\tblocks,\n\tcommentId,\n\tsetActiveCommentId,\n\tisHidden,\n} ) => {\n\tconst blockPreviewProps = useBlockPreview( {\n\t\tblocks,\n\t} );\n\n\tconst handleOnClick = () => {\n\t\tsetActiveCommentId( commentId );\n\t};\n\n\t// We have to hide the preview block if the `comment` props points to\n\t// the curently active block!\n\n\t// Or, to put it differently, every preview block is visible unless it is the\n\t// currently active block - in this case we render its inner blocks.\n\tconst style = {\n\t\tdisplay: isHidden ? 'none' : undefined,\n\t};\n\n\treturn (\n\t\t<div\n\t\t\t{ ...blockPreviewProps }\n\t\t\ttabIndex={ 0 }\n\t\t\trole=\"button\"\n\t\t\tstyle={ style }\n\t\t\t// eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role\n\t\t\tonClick={ handleOnClick }\n\t\t\tonKeyPress={ handleOnClick }\n\t\t/>\n\t);\n};\n\nconst MemoizedCommentTemplatePreview = memo( CommentTemplatePreview );\n\n/**\n * Component that renders a list of (nested) comments. It is called recursively.\n *\n * @param {Object} props Component props.\n * @param {Array} [props.comments] - Array of comment objects.\n * @param {Array} [props.blockProps] - Props from parent's `useBlockProps()`.\n * @param {Array} [props.activeCommentId] - The ID of the comment that is currently active.\n * @param {Array} [props.setActiveCommentId] - The setter for activeCommentId.\n * @param {Array} [props.blocks] - Array of blocks returned from getBlocks() in parent.\n * @param {Object} [props.firstCommentId] - The ID of the first comment in the array of\n * comment objects.\n * @return {Element} \t\tList of comments.\n */\nconst CommentsList = ( {\n\tcomments,\n\tblockProps,\n\tactiveCommentId,\n\tsetActiveCommentId,\n\tblocks,\n\tfirstCommentId,\n} ) => (\n\t<ol { ...blockProps }>\n\t\t{ comments &&\n\t\t\tcomments.map( ( { commentId, ...comment }, index ) => (\n\t\t\t\t<BlockContextProvider\n\t\t\t\t\tkey={ comment.commentId || index }\n\t\t\t\t\tvalue={ {\n\t\t\t\t\t\t// If the commentId is negative it means that this comment is a\n\t\t\t\t\t\t// \"placeholder\" and that the block is most likely being used in the\n\t\t\t\t\t\t// site editor. In this case, we have to set the commentId to `null`\n\t\t\t\t\t\t// because otherwise the (non-existent) comment with a negative ID\n\t\t\t\t\t\t// would be reqested from the REST API.\n\t\t\t\t\t\tcommentId: commentId < 0 ? null : commentId,\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t<CommentTemplateInnerBlocks\n\t\t\t\t\t\tcomment={ { commentId, ...comment } }\n\t\t\t\t\t\tactiveCommentId={ activeCommentId }\n\t\t\t\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\t\t\t\tblocks={ blocks }\n\t\t\t\t\t\tfirstCommentId={ firstCommentId }\n\t\t\t\t\t/>\n\t\t\t\t</BlockContextProvider>\n\t\t\t) ) }\n\t</ol>\n);\n\nexport default function CommentTemplateEdit( {\n\tclientId,\n\tcontext: { postId },\n} ) {\n\tconst blockProps = useBlockProps();\n\n\tconst [ activeCommentId, setActiveCommentId ] = useState();\n\tconst {\n\t\tcommentOrder,\n\t\tthreadCommentsDepth,\n\t\tthreadComments,\n\t\tcommentsPerPage,\n\t\tpageComments,\n\t} = useSelect( ( select ) => {\n\t\tconst { getSettings } = select( blockEditorStore );\n\t\treturn getSettings().__experimentalDiscussionSettings;\n\t} );\n\n\tconst commentQuery = useCommentQueryArgs( {\n\t\tpostId,\n\t} );\n\n\tconst { topLevelComments, blocks } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEntityRecords } = select( coreStore );\n\t\t\tconst { getBlocks } = select( blockEditorStore );\n\t\t\treturn {\n\t\t\t\t// Request only top-level comments. Replies are embedded.\n\t\t\t\ttopLevelComments: commentQuery\n\t\t\t\t\t? getEntityRecords( 'root', 'comment', commentQuery )\n\t\t\t\t\t: null,\n\t\t\t\tblocks: getBlocks( clientId ),\n\t\t\t};\n\t\t},\n\t\t[ clientId, commentQuery ]\n\t);\n\n\t// Generate a tree structure of comment IDs.\n\tlet commentTree = useCommentTree(\n\t\t// Reverse the order of top comments if needed.\n\t\tcommentOrder === 'desc' && topLevelComments\n\t\t\t? [ ...topLevelComments ].reverse()\n\t\t\t: topLevelComments\n\t);\n\n\tif ( ! topLevelComments ) {\n\t\treturn (\n\t\t\t<p { ...blockProps }>\n\t\t\t\t<Spinner />\n\t\t\t</p>\n\t\t);\n\t}\n\n\tif ( ! postId ) {\n\t\tcommentTree = getCommentsPlaceholder( {\n\t\t\tperPage: commentsPerPage,\n\t\t\tpageComments,\n\t\t\tthreadComments,\n\t\t\tthreadCommentsDepth,\n\t\t} );\n\t}\n\n\tif ( ! commentTree.length ) {\n\t\treturn <p { ...blockProps }>{ __( 'No results found.' ) }</p>;\n\t}\n\n\treturn (\n\t\t<CommentsList\n\t\t\tcomments={ commentTree }\n\t\t\tblockProps={ blockProps }\n\t\t\tblocks={ blocks }\n\t\t\tactiveCommentId={ activeCommentId }\n\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\tfirstCommentId={ commentTree[ 0 ]?.commentId }\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAOA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAKA,IAAAM,MAAA,GAAAN,OAAA;AAA8D,IAAAO,WAAA,GAAAP,OAAA;AAnB9D;AACA;AACA;;AAcA;AACA;AACA;;AAGA,MAAMQ,QAAQ,GAAG,CAChB,CAAE,aAAa,CAAE,EACjB,CAAE,0BAA0B,CAAE,EAC9B,CAAE,mBAAmB,CAAE,EACvB,CAAE,sBAAsB,CAAE,EAC1B,CAAE,yBAAyB,CAAE,EAC7B,CAAE,wBAAwB,CAAE,CAC5B;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,sBAAsB,GAAGA,CAAE;EAChCC,OAAO;EACPC,YAAY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,sBAAsB,CAAE;MACrCC,OAAO,EAAEsD,eAAe;MACxBrD,YAAY;MACZC,cAAc;MACdC;IACD,CAAE,CAAC;EACJ;EAEA,IAAK,CAAE+D,WAAW,CAACvC,MAAM,EAAG;IAC3B,oBAAO,IAAA9B,WAAA,CAAA2B,GAAA;MAAA,GAAQkB,UAAU;MAAA/B,QAAA,EAAK,IAAA2D,QAAE,EAAE,mBAAoB;IAAC,CAAK,CAAC;EAC9D;EAEA,oBACC,IAAAzE,WAAA,CAAA2B,GAAA,EAACI,YAAY;IACZC,QAAQ,EAAGqC,WAAa;IACxBxB,UAAU,EAAGA,UAAY;IACzBvB,MAAM,EAAGA,MAAQ;IACjBH,eAAe,EAAGA,eAAiB;IACnCC,kBAAkB,EAAGA,kBAAoB;IACzCC,cAAc,EAAGgD,WAAW,CAAE,CAAC,CAAE,EAAExD;EAAW,CAC9C,CAAC;AAEJ","ignoreList":[]}
|
|
@@ -4,13 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = CommentTemplateSave;
|
|
7
|
-
var _react = require("react");
|
|
8
7
|
var _blockEditor = require("@wordpress/block-editor");
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
9
|
/**
|
|
10
10
|
* WordPress dependencies
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
function CommentTemplateSave() {
|
|
14
|
-
return (0,
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.InnerBlocks.Content, {});
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=save.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_blockEditor","require","
|
|
1
|
+
{"version":3,"names":["_blockEditor","require","_jsxRuntime","CommentTemplateSave","jsx","InnerBlocks","Content"],"sources":["@wordpress/block-library/src/comment-template/save.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { InnerBlocks } from '@wordpress/block-editor';\n\nexport default function CommentTemplateSave() {\n\treturn <InnerBlocks.Content />;\n}\n"],"mappings":";;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAAsD,IAAAC,WAAA,GAAAD,OAAA;AAHtD;AACA;AACA;;AAGe,SAASE,mBAAmBA,CAAA,EAAG;EAC7C,oBAAO,IAAAD,WAAA,CAAAE,GAAA,EAACJ,YAAA,CAAAK,WAAW,CAACC,OAAO,IAAE,CAAC;AAC/B","ignoreList":[]}
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
7
|
var _blockEditor = require("@wordpress/block-editor");
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
9
|
/**
|
|
10
10
|
* WordPress dependencies
|
|
11
11
|
*/
|
|
@@ -52,9 +52,10 @@ const v1 = {
|
|
|
52
52
|
...blockProps,
|
|
53
53
|
className: newClasses.join(' ')
|
|
54
54
|
};
|
|
55
|
-
return (0,
|
|
56
|
-
...newBlockProps
|
|
57
|
-
|
|
55
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
56
|
+
...newBlockProps,
|
|
57
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.InnerBlocks.Content, {})
|
|
58
|
+
});
|
|
58
59
|
}
|
|
59
60
|
};
|
|
60
61
|
var _default = exports.default = [v1];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_blockEditor","require","v1","attributes","tagName","type","default","apiVersion","supports","align","html","color","gradients","link","__experimentalDefaultControls","background","text","save","Tag","blockProps","useBlockProps","className","classes","split","newClasses","filter","cls","newBlockProps","join","
|
|
1
|
+
{"version":3,"names":["_blockEditor","require","_jsxRuntime","v1","attributes","tagName","type","default","apiVersion","supports","align","html","color","gradients","link","__experimentalDefaultControls","background","text","save","Tag","blockProps","useBlockProps","className","classes","split","newClasses","filter","cls","newBlockProps","join","jsx","children","InnerBlocks","Content","_default","exports"],"sources":["@wordpress/block-library/src/comments/deprecated.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { InnerBlocks, useBlockProps } from '@wordpress/block-editor';\n\n// v1: Deprecate the initial version of the block which was called \"Comments\n// Query Loop\" instead of \"Comments\".\nconst v1 = {\n\tattributes: {\n\t\ttagName: {\n\t\t\ttype: 'string',\n\t\t\tdefault: 'div',\n\t\t},\n\t},\n\tapiVersion: 3,\n\tsupports: {\n\t\talign: [ 'wide', 'full' ],\n\t\thtml: false,\n\t\tcolor: {\n\t\t\tgradients: true,\n\t\t\tlink: true,\n\t\t\t__experimentalDefaultControls: {\n\t\t\t\tbackground: true,\n\t\t\t\ttext: true,\n\t\t\t\tlink: true,\n\t\t\t},\n\t\t},\n\t},\n\tsave( { attributes: { tagName: Tag } } ) {\n\t\tconst blockProps = useBlockProps.save();\n\t\tconst { className } = blockProps;\n\t\tconst classes = className?.split( ' ' ) || [];\n\n\t\t// The ID of the previous version of the block\n\t\t// didn't have the `wp-block-comments` class,\n\t\t// so we need to remove it here in order to mimic it.\n\t\tconst newClasses = classes?.filter(\n\t\t\t( cls ) => cls !== 'wp-block-comments'\n\t\t);\n\t\tconst newBlockProps = {\n\t\t\t...blockProps,\n\t\t\tclassName: newClasses.join( ' ' ),\n\t\t};\n\n\t\treturn (\n\t\t\t<Tag { ...newBlockProps }>\n\t\t\t\t<InnerBlocks.Content />\n\t\t\t</Tag>\n\t\t);\n\t},\n};\n\nexport default [ v1 ];\n"],"mappings":";;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAAqE,IAAAC,WAAA,GAAAD,OAAA;AAHrE;AACA;AACA;;AAGA;AACA;AACA,MAAME,EAAE,GAAG;EACVC,UAAU,EAAE;IACXC,OAAO,EAAE;MACRC,IAAI,EAAE,QAAQ;MACdC,OAAO,EAAE;IACV;EACD,CAAC;EACDC,UAAU,EAAE,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