@wordpress/block-library 8.35.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 +8 -1
- 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 +83 -74
- 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 +120 -109
- 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 +46 -32
- 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 +118 -105
- package/build/button/deprecated.js.map +1 -1
- package/build/button/edit.js +124 -109
- 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/save.js +14 -13
- package/build/button/save.js.map +1 -1
- package/build/buttons/deprecated.js +9 -7
- package/build/buttons/deprecated.js.map +1 -1
- package/build/buttons/edit.js +2 -2
- 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 +2 -2
- 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 +71 -56
- 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 +5 -4
- package/build/column/deprecated.js.map +1 -1
- package/build/column/edit.js +33 -26
- 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 +2 -2
- package/build/column/save.js.map +1 -1
- package/build/columns/deprecated.js +14 -12
- package/build/columns/deprecated.js.map +1 -1
- package/build/columns/edit.js +61 -50
- 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 +2 -2
- 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 +40 -33
- package/build/comment-author-name/edit.js.map +1 -1
- package/build/comment-content/edit.js +28 -18
- 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 +32 -24
- package/build/comment-edit-link/edit.js.map +1 -1
- package/build/comment-reply-link/edit.js +20 -16
- 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 +27 -22
- 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 +40 -33
- 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 +380 -363
- 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 +92 -84
- 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 +2 -2
- package/build/cover/edit/resizable-cover-popover.js.map +1 -1
- package/build/cover/edit.native.js +236 -197
- 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 +49 -48
- 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 +18 -15
- package/build/embed/deprecated.js.map +1 -1
- package/build/embed/edit.js +60 -55
- package/build/embed/edit.js.map +1 -1
- package/build/embed/edit.native.js +65 -56
- 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 +44 -38
- package/build/embed/embed-preview.js.map +1 -1
- package/build/embed/embed-preview.native.js +46 -39
- package/build/embed/embed-preview.native.js.map +1 -1
- package/build/embed/icons.js +164 -135
- package/build/embed/icons.js.map +1 -1
- package/build/embed/save.js +12 -10
- package/build/embed/save.js.map +1 -1
- package/build/embed/util.js +15 -12
- package/build/embed/util.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 +92 -77
- package/build/file/deprecated.js.map +1 -1
- package/build/file/edit.js +110 -101
- 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 +32 -27
- 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 +19 -17
- package/build/form-input/deprecated.js.map +1 -1
- package/build/form-input/edit.js +86 -76
- package/build/form-input/edit.js.map +1 -1
- package/build/form-input/save.js +24 -22
- package/build/form-input/save.js.map +1 -1
- package/build/form-submission-notification/edit.js +2 -2
- package/build/form-submission-notification/edit.js.map +1 -1
- package/build/form-submission-notification/save.js +2 -2
- 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 +225 -199
- 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 +89 -76
- package/build/gallery/edit.js.map +1 -1
- package/build/gallery/gallery.js +17 -15
- 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 +9 -8
- 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 +72 -64
- 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 +44 -42
- 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 +42 -37
- 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 +27 -20
- 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 +14 -12
- package/build/heading/deprecated.js.map +1 -1
- package/build/heading/edit.js +33 -30
- package/build/heading/edit.js.map +1 -1
- package/build/heading/edit.native.js +49 -46
- package/build/heading/edit.native.js.map +1 -1
- package/build/heading/save.js +6 -5
- package/build/heading/save.js.map +1 -1
- package/build/home-link/edit.js +25 -21
- 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 -22
- 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 +130 -103
- package/build/image/deprecated.js.map +1 -1
- package/build/image/edit.js +51 -44
- 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 +275 -205
- package/build/image/image.js.map +1 -1
- package/build/image/save.js +19 -15
- 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 +238 -212
- 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 +21 -17
- 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/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 -32
- 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/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 +121 -98
- package/build/media-text/deprecated.js.map +1 -1
- package/build/media-text/edit.js +183 -107
- 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 +36 -35
- 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 +31 -26
- 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 +277 -229
- 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 +35 -27
- 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/save.js +2 -2
- package/build/navigation/save.js.map +1 -1
- package/build/navigation-link/edit.js +183 -150
- 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 +139 -127
- 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 +90 -65
- package/build/page-list/edit.js.map +1 -1
- package/build/page-list-item/edit.js +29 -21
- package/build/page-list-item/edit.js.map +1 -1
- package/build/paragraph/deprecated.js +16 -12
- package/build/paragraph/deprecated.js.map +1 -1
- package/build/paragraph/edit.js +56 -51
- 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/save.js +6 -5
- package/build/paragraph/save.js.map +1 -1
- package/build/pattern/edit.js +10 -7
- package/build/pattern/edit.js.map +1 -1
- package/build/post-author/edit.js +104 -93
- package/build/post-author/edit.js.map +1 -1
- package/build/post-author-biography/edit.js +19 -16
- package/build/post-author-biography/edit.js.map +1 -1
- package/build/post-author-name/edit.js +40 -32
- 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 +20 -14
- package/build/post-comments-count/edit.js.map +1 -1
- package/build/post-comments-form/edit.js +23 -18
- package/build/post-comments-form/edit.js.map +1 -1
- package/build/post-comments-form/form.js +50 -38
- package/build/post-comments-form/form.js.map +1 -1
- package/build/post-comments-link/edit.js +23 -16
- 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 +82 -71
- package/build/post-date/edit.js.map +1 -1
- package/build/post-excerpt/edit.js +66 -46
- package/build/post-excerpt/edit.js.map +1 -1
- package/build/post-featured-image/dimension-controls.js +119 -109
- package/build/post-featured-image/dimension-controls.js.map +1 -1
- package/build/post-featured-image/edit.js +109 -86
- 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 +2 -2
- package/build/post-featured-image/overlay.js.map +1 -1
- package/build/post-navigation-link/edit.js +88 -74
- package/build/post-navigation-link/edit.js.map +1 -1
- package/build/post-template/edit.js +32 -25
- 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 +64 -53
- package/build/post-terms/edit.js.map +1 -1
- package/build/post-time-to-read/edit.js +18 -15
- 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 +80 -67
- 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 +72 -60
- package/build/pullquote/deprecated.js.map +1 -1
- package/build/pullquote/edit.js +49 -43
- 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 +12 -9
- 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 +61 -43
- package/build/query-title/edit.js.map +1 -1
- package/build/quote/deprecated.js +48 -43
- package/build/quote/deprecated.js.map +1 -1
- package/build/quote/edit.js +40 -36
- package/build/quote/edit.js.map +1 -1
- package/build/quote/save.js +8 -7
- 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 +97 -83
- package/build/rss/edit.js.map +1 -1
- package/build/search/edit.js +146 -122
- package/build/search/edit.js.map +1 -1
- package/build/search/edit.native.js +129 -121
- 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 +2 -2
- package/build/separator/deprecated.js.map +1 -1
- package/build/separator/edit.js +8 -6
- package/build/separator/edit.js.map +1 -1
- package/build/separator/save.js +2 -2
- package/build/separator/save.js.map +1 -1
- package/build/shortcode/edit.js +17 -15
- 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 +209 -171
- package/build/site-logo/edit.js.map +1 -1
- package/build/site-tagline/edit.js +23 -19
- 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 +61 -50
- package/build/site-title/edit.js.map +1 -1
- package/build/social-link/edit.js +83 -69
- 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 +6 -6
- package/build/social-links/deprecated.js.map +1 -1
- package/build/social-links/edit.js +92 -80
- 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 +2 -2
- 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 +47 -38
- 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 +168 -157
- package/build/table/deprecated.js.map +1 -1
- package/build/table/edit.js +143 -129
- package/build/table/edit.js.map +1 -1
- package/build/table/save.js +52 -49
- 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 +22 -15
- 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 +34 -31
- 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 +7 -6
- package/build/verse/deprecated.js.map +1 -1
- package/build/verse/edit.js +31 -27
- package/build/verse/edit.js.map +1 -1
- package/build/verse/save.js +6 -5
- 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 +103 -80
- 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 +85 -74
- 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 +122 -109
- 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 +48 -32
- 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 +118 -105
- package/build-module/button/deprecated.js.map +1 -1
- package/build-module/button/edit.js +126 -109
- 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/save.js +14 -13
- package/build-module/button/save.js.map +1 -1
- package/build-module/buttons/deprecated.js +8 -5
- package/build-module/buttons/deprecated.js.map +1 -1
- package/build-module/buttons/edit.js +2 -2
- 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 +2 -2
- 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 +73 -56
- 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 +5 -4
- package/build-module/column/deprecated.js.map +1 -1
- package/build-module/column/edit.js +35 -26
- 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 +2 -2
- package/build-module/column/save.js.map +1 -1
- package/build-module/columns/deprecated.js +13 -10
- package/build-module/columns/deprecated.js.map +1 -1
- package/build-module/columns/edit.js +63 -50
- 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 +2 -2
- 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 +41 -31
- package/build-module/comment-author-name/edit.js.map +1 -1
- package/build-module/comment-content/edit.js +29 -16
- 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 +34 -24
- package/build-module/comment-edit-link/edit.js.map +1 -1
- package/build-module/comment-reply-link/edit.js +21 -14
- 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 +29 -22
- 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 +42 -33
- 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 +381 -363
- 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 +94 -84
- 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 +2 -2
- package/build-module/cover/edit/resizable-cover-popover.js.map +1 -1
- package/build-module/cover/edit.native.js +237 -195
- 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 +50 -48
- 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 +19 -15
- package/build-module/embed/deprecated.js.map +1 -1
- package/build-module/embed/edit.js +62 -55
- package/build-module/embed/edit.js.map +1 -1
- package/build-module/embed/edit.native.js +67 -56
- 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 +45 -38
- package/build-module/embed/embed-preview.js.map +1 -1
- package/build-module/embed/embed-preview.native.js +48 -39
- package/build-module/embed/embed-preview.native.js.map +1 -1
- package/build-module/embed/icons.js +165 -135
- package/build-module/embed/icons.js.map +1 -1
- package/build-module/embed/save.js +13 -10
- package/build-module/embed/save.js.map +1 -1
- package/build-module/embed/util.js +15 -12
- package/build-module/embed/util.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 +94 -77
- package/build-module/file/deprecated.js.map +1 -1
- package/build-module/file/edit.js +112 -101
- 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 +34 -27
- 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 +20 -17
- package/build-module/form-input/deprecated.js.map +1 -1
- package/build-module/form-input/edit.js +88 -76
- package/build-module/form-input/edit.js.map +1 -1
- package/build-module/form-input/save.js +24 -20
- package/build-module/form-input/save.js.map +1 -1
- package/build-module/form-submission-notification/edit.js +2 -2
- package/build-module/form-submission-notification/edit.js.map +1 -1
- package/build-module/form-submission-notification/save.js +2 -2
- 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 +226 -199
- 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 +91 -76
- package/build-module/gallery/edit.js.map +1 -1
- package/build-module/gallery/gallery.js +18 -15
- 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 +10 -8
- 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 +74 -64
- 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 +45 -42
- 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 +43 -37
- 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 +27 -20
- 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 +14 -12
- package/build-module/heading/deprecated.js.map +1 -1
- package/build-module/heading/edit.js +35 -30
- package/build-module/heading/edit.js.map +1 -1
- package/build-module/heading/edit.native.js +51 -46
- package/build-module/heading/edit.native.js.map +1 -1
- package/build-module/heading/save.js +6 -5
- package/build-module/heading/save.js.map +1 -1
- package/build-module/home-link/edit.js +26 -21
- 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 -22
- 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 +131 -101
- package/build-module/image/deprecated.js.map +1 -1
- package/build-module/image/edit.js +52 -44
- 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 +277 -205
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/save.js +21 -15
- 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 +239 -210
- 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 +21 -17
- 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/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 +40 -32
- 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/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 +122 -98
- package/build-module/media-text/deprecated.js.map +1 -1
- package/build-module/media-text/edit.js +186 -109
- 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 +36 -33
- 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 +32 -26
- 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 +279 -229
- 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 +37 -27
- 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/save.js +2 -2
- package/build-module/navigation/save.js.map +1 -1
- package/build-module/navigation-link/edit.js +185 -150
- 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 +141 -127
- 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 +92 -65
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/page-list-item/edit.js +31 -21
- package/build-module/page-list-item/edit.js.map +1 -1
- package/build-module/paragraph/deprecated.js +16 -12
- package/build-module/paragraph/deprecated.js.map +1 -1
- package/build-module/paragraph/edit.js +58 -51
- 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/save.js +6 -5
- package/build-module/paragraph/save.js.map +1 -1
- package/build-module/pattern/edit.js +10 -7
- package/build-module/pattern/edit.js.map +1 -1
- package/build-module/post-author/edit.js +106 -93
- package/build-module/post-author/edit.js.map +1 -1
- package/build-module/post-author-biography/edit.js +21 -16
- package/build-module/post-author-biography/edit.js.map +1 -1
- package/build-module/post-author-name/edit.js +42 -32
- 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 +22 -14
- package/build-module/post-comments-count/edit.js.map +1 -1
- package/build-module/post-comments-form/edit.js +25 -18
- package/build-module/post-comments-form/edit.js.map +1 -1
- package/build-module/post-comments-form/form.js +51 -38
- package/build-module/post-comments-form/form.js.map +1 -1
- package/build-module/post-comments-link/edit.js +25 -16
- 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 +84 -71
- package/build-module/post-date/edit.js.map +1 -1
- package/build-module/post-excerpt/edit.js +68 -46
- package/build-module/post-excerpt/edit.js.map +1 -1
- package/build-module/post-featured-image/dimension-controls.js +121 -109
- package/build-module/post-featured-image/dimension-controls.js.map +1 -1
- package/build-module/post-featured-image/edit.js +111 -86
- 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 +2 -2
- package/build-module/post-featured-image/overlay.js.map +1 -1
- package/build-module/post-navigation-link/edit.js +90 -74
- package/build-module/post-navigation-link/edit.js.map +1 -1
- package/build-module/post-template/edit.js +34 -25
- 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 +66 -53
- package/build-module/post-terms/edit.js.map +1 -1
- package/build-module/post-time-to-read/edit.js +19 -13
- 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 +82 -67
- 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 +73 -60
- package/build-module/pullquote/deprecated.js.map +1 -1
- package/build-module/pullquote/edit.js +51 -43
- 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 +13 -9
- 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 +63 -43
- package/build-module/query-title/edit.js.map +1 -1
- package/build-module/quote/deprecated.js +49 -43
- package/build-module/quote/deprecated.js.map +1 -1
- package/build-module/quote/edit.js +42 -36
- package/build-module/quote/edit.js.map +1 -1
- package/build-module/quote/save.js +9 -7
- 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 +99 -83
- package/build-module/rss/edit.js.map +1 -1
- package/build-module/search/edit.js +148 -122
- package/build-module/search/edit.js.map +1 -1
- package/build-module/search/edit.native.js +129 -119
- 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 +2 -2
- package/build-module/separator/deprecated.js.map +1 -1
- package/build-module/separator/edit.js +9 -6
- package/build-module/separator/edit.js.map +1 -1
- package/build-module/separator/save.js +2 -2
- package/build-module/separator/save.js.map +1 -1
- package/build-module/shortcode/edit.js +17 -15
- 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 +211 -171
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/site-tagline/edit.js +25 -19
- 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 +63 -50
- package/build-module/site-title/edit.js.map +1 -1
- package/build-module/social-link/edit.js +85 -69
- 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 +5 -4
- package/build-module/social-links/deprecated.js.map +1 -1
- package/build-module/social-links/edit.js +94 -80
- 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 +2 -2
- 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 +50 -39
- 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 +169 -157
- package/build-module/table/deprecated.js.map +1 -1
- package/build-module/table/edit.js +145 -129
- package/build-module/table/edit.js.map +1 -1
- package/build-module/table/save.js +53 -49
- 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 +24 -15
- 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 +36 -31
- 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 +7 -6
- package/build-module/verse/deprecated.js.map +1 -1
- package/build-module/verse/edit.js +33 -27
- package/build-module/verse/edit.js.map +1 -1
- package/build-module/verse/save.js +6 -5
- 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 +105 -80
- 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/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 +36 -96
- package/build-style/editor.css +37 -96
- 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/html/editor-rtl.css +1 -0
- package/build-style/html/editor.css +2 -0
- package/build-style/image/style-rtl.css +3 -33
- package/build-style/image/style.css +3 -33
- 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/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/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/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 +70 -136
- package/build-style/style.css +70 -136
- 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/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 +37 -36
- package/src/audio/edit.native.js +1 -1
- package/src/audio/theme.scss +1 -1
- package/src/block/edit-title.native.js +2 -1
- package/src/block/edit.js +2 -10
- package/src/block/edit.native.js +1 -1
- package/src/block/index.php +1 -1
- package/src/button/edit.js +8 -4
- package/src/button/edit.native.js +1 -1
- package/src/button/editor.scss +0 -35
- package/src/button/style.scss +20 -52
- package/src/columns/edit.native.js +2 -3
- package/src/comments/index.php +1 -1
- package/src/cover/block.json +1 -0
- package/src/cover/controls.native.js +2 -2
- package/src/cover/edit/inspector-controls.js +9 -2
- package/src/cover/edit.native.js +22 -6
- package/src/cover/editor.scss +0 -7
- package/src/cover/overlay-color-settings.native.js +1 -1
- package/src/cover/style.scss +14 -32
- package/src/editor.scss +0 -1
- package/src/embed/embed-no-preview.native.js +2 -2
- package/src/embed/embed-placeholder.native.js +2 -2
- package/src/embed/theme.scss +1 -1
- package/src/embed/util.js +1 -1
- package/src/file/edit.js +2 -6
- package/src/form/save.js +2 -3
- package/src/form-submit-button/save.js +2 -3
- package/src/freeform/edit.js +6 -2
- package/src/gallery/edit.js +2 -2
- package/src/gallery/editor.scss +4 -1
- package/src/gallery/v1/gallery-button.native.js +1 -1
- package/src/gallery/v1/gallery-image.native.js +1 -1
- package/src/heading/test/__snapshots__/index.native.js.snap +12 -0
- package/src/heading/test/index.native.js +65 -0
- package/src/html/editor.scss +3 -0
- package/src/image/edit.js +9 -8
- package/src/image/edit.native.js +6 -3
- package/src/image/image.js +60 -28
- package/src/image/index.php +9 -9
- package/src/image/style.scss +8 -43
- package/src/image/theme.scss +2 -2
- package/src/index.js +16 -16
- package/src/latest-posts/edit.native.js +1 -1
- package/src/latest-posts/editor.scss +10 -9
- package/src/latest-posts/style.scss +12 -4
- package/src/list/style.scss +3 -3
- package/src/media-text/edit.js +131 -66
- 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.native.js +16 -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/index.php +18 -6
- package/src/navigation-link/edit.js +16 -2
- package/src/navigation-link/link-ui.js +5 -1
- package/src/navigation-submenu/edit.js +25 -27
- package/src/page-list/convert-to-links-modal.js +12 -3
- package/src/page-list/edit.js +3 -3
- package/src/paragraph/style.scss +2 -1
- package/src/paragraph/test/__snapshots__/edit.native.js.snap +6 -0
- package/src/paragraph/test/edit.native.js +26 -0
- package/src/pullquote/editor.scss +2 -0
- 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/quote/theme.scss +1 -1
- package/src/search/edit.js +9 -3
- package/src/separator/editor.scss +0 -7
- package/src/separator/style.scss +28 -24
- package/src/site-logo/edit.js +1 -2
- package/src/site-logo/style.scss +6 -6
- package/src/site-title/editor.scss +2 -4
- package/src/site-title/style.scss +2 -4
- 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/edit.native.js +1 -1
- package/src/social-links/editor.scss +11 -14
- package/src/social-links/style.scss +15 -14
- package/src/spacer/controls.js +6 -4
- package/src/spacer/edit.js +5 -2
- 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/theme.scss +5 -7
- package/src/utils/hooks.js +11 -0
- package/src/video/edit-common-settings.js +4 -0
- 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 -35
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEntityProp","dateI18n","getSettings","getDateSettings","InspectorControls","useBlockProps","__experimentalDateFormatPicker","DateFormatPicker","PanelBody","ToggleControl","__","_x","Edit","attributes","format","isLink","context","commentId","setAttributes","blockProps","date","siteFormat","formats","inspectorControls","
|
|
1
|
+
{"version":3,"names":["useEntityProp","dateI18n","getSettings","getDateSettings","InspectorControls","useBlockProps","__experimentalDateFormatPicker","DateFormatPicker","PanelBody","ToggleControl","__","_x","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","format","isLink","context","commentId","setAttributes","blockProps","date","siteFormat","formats","inspectorControls","children","title","defaultFormat","onChange","nextFormat","__nextHasNoMarginBottom","label","checked","commentDate","Date","dateTime","href","onClick","event","preventDefault"],"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":"AAAA;AACA;AACA;AACA,SAASA,aAA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KAAK,EAAG1B,EAAE,CAAE,iBAAkB,CAAG;QACjCuB,QAAQ,EAAGA,CAAA,KAAMT,aAAa,CAAE;UAAEH,MAAM,EAAE,CAAEA;QAAO,CAAE,CAAG;QACxDgB,OAAO,EAAGhB;MAAQ,CAClB,CAAC;IAAA,CACQ;EAAC,CACM,CACnB;EAED,IAAK,CAAEE,SAAS,IAAI,CAAEG,IAAI,EAAG;IAC5BA,IAAI,GAAGf,EAAE,CAAE,cAAc,EAAE,aAAc,CAAC;EAC3C;EAEA,IAAI2B,WAAW,GACdZ,IAAI,YAAYa,IAAI,gBACnB1B,IAAA;IAAM2B,QAAQ,EAAGvC,QAAQ,CAAE,GAAG,EAAEyB,IAAK,CAAG;IAAAI,QAAA,EACrC7B,QAAQ,CAAEmB,MAAM,IAAIO,UAAU,EAAED,IAAK;EAAC,CACnC,CAAC,gBAEPb,IAAA;IAAAiB,QAAA,EAAQJ;EAAI,CAAQ,CACpB;EAEF,IAAKL,MAAM,EAAG;IACbiB,WAAW,gBACVzB,IAAA;MACC4B,IAAI,EAAC,2BAA2B;MAChCC,OAAO,EAAKC,KAAK,IAAMA,KAAK,CAACC,cAAc,CAAC,CAAG;MAAAd,QAAA,EAE7CQ;IAAW,CACX,CACH;EACF;EAEA,oBACCvB,KAAA,CAAAE,SAAA;IAAAa,QAAA,GACGD,iBAAiB,eACnBhB,IAAA;MAAA,GAAUY,UAAU;MAAAK,QAAA,EAAKQ;IAAW,CAAO,CAAC;EAAA,CAC3C,CAAC;AAEL","ignoreList":[]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createElement, Fragment } from "react";
|
|
2
1
|
/**
|
|
3
2
|
* External dependencies
|
|
4
3
|
*/
|
|
@@ -10,6 +9,9 @@ import clsx from 'clsx';
|
|
|
10
9
|
import { AlignmentControl, BlockControls, InspectorControls, useBlockProps } from '@wordpress/block-editor';
|
|
11
10
|
import { PanelBody, ToggleControl } from '@wordpress/components';
|
|
12
11
|
import { __ } from '@wordpress/i18n';
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
15
|
export default function Edit({
|
|
14
16
|
attributes: {
|
|
15
17
|
linkTarget,
|
|
@@ -22,29 +24,37 @@ export default function Edit({
|
|
|
22
24
|
[`has-text-align-${textAlign}`]: textAlign
|
|
23
25
|
})
|
|
24
26
|
});
|
|
25
|
-
const blockControls =
|
|
26
|
-
group: "block"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
const blockControls = /*#__PURE__*/_jsx(BlockControls, {
|
|
28
|
+
group: "block",
|
|
29
|
+
children: /*#__PURE__*/_jsx(AlignmentControl, {
|
|
30
|
+
value: textAlign,
|
|
31
|
+
onChange: newAlign => setAttributes({
|
|
32
|
+
textAlign: newAlign
|
|
33
|
+
})
|
|
31
34
|
})
|
|
32
|
-
})
|
|
33
|
-
const inspectorControls =
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
});
|
|
36
|
+
const inspectorControls = /*#__PURE__*/_jsx(InspectorControls, {
|
|
37
|
+
children: /*#__PURE__*/_jsx(PanelBody, {
|
|
38
|
+
title: __('Settings'),
|
|
39
|
+
children: /*#__PURE__*/_jsx(ToggleControl, {
|
|
40
|
+
__nextHasNoMarginBottom: true,
|
|
41
|
+
label: __('Open in new tab'),
|
|
42
|
+
onChange: value => setAttributes({
|
|
43
|
+
linkTarget: value ? '_blank' : '_self'
|
|
44
|
+
}),
|
|
45
|
+
checked: linkTarget === '_blank'
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
50
|
+
children: [blockControls, inspectorControls, /*#__PURE__*/_jsx("div", {
|
|
51
|
+
...blockProps,
|
|
52
|
+
children: /*#__PURE__*/_jsx("a", {
|
|
53
|
+
href: "#edit-comment-pseudo-link",
|
|
54
|
+
onClick: event => event.preventDefault(),
|
|
55
|
+
children: __('Edit')
|
|
56
|
+
})
|
|
57
|
+
})]
|
|
58
|
+
});
|
|
49
59
|
}
|
|
50
60
|
//# sourceMappingURL=edit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["clsx","AlignmentControl","BlockControls","InspectorControls","useBlockProps","PanelBody","ToggleControl","__","Edit","attributes","linkTarget","textAlign","setAttributes","blockProps","className","blockControls","
|
|
1
|
+
{"version":3,"names":["clsx","AlignmentControl","BlockControls","InspectorControls","useBlockProps","PanelBody","ToggleControl","__","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","Edit","attributes","linkTarget","textAlign","setAttributes","blockProps","className","blockControls","group","children","value","onChange","newAlign","inspectorControls","title","__nextHasNoMarginBottom","label","checked","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":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SACCC,gBAAgB,EAChBC,aAAa,EACbC,iBAAiB,EACjBC,aAAa,QACP,yBAAyB;AAChC,SAASC,SAAS,EAAEC,aAAa,QAAQ,uBAAuB;AAChE,SAASC,EAAE,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAErC,eAAe,SAASC,IAAIA,CAAE;EAC7BC,UAAU,EAAE;IAAEC,UAAU;IAAEC;EAAU,CAAC;EACrCC;AACD,CAAC,EAAG;EACH,MAAMC,UAAU,GAAGf,aAAa,CAAE;IACjCgB,SAAS,EAAEpB,IAAI,CAAE;MAChB,CAAG,kBAAkBiB,SAAW,EAAC,GAAIA;IACtC,CAAE;EACH,CAAE,CAAC;EAEH,MAAMI,aAAa,gBAClBZ,IAAA,CAACP,aAAa;IAACoB,KAAK,EAAC,OAAO;IAAAC,QAAA,eAC3Bd,IAAA,CAACR,gBAAgB;MAChBuB,KAAK,EAAGP,SAAW;MACnBQ,QAAQ,EAAKC,QAAQ,IACpBR,aAAa,CAAE;QAAED,SAAS,EAAES;MAAS,CAAE;IACvC,CACD;EAAC,CACY,CACf;EACD,MAAMC,iBAAiB,gBACtBlB,IAAA,CAACN,iBAAiB;IAAAoB,QAAA,eACjBd,IAAA,CAACJ,SAAS;MAACuB,KAAK,EAAGrB,EAAE,CAAE,UAAW,CAAG;MAAAgB,QAAA,eACpCd,IAAA,CAACH,aAAa;QACbuB,uBAAuB;QACvBC,KAAK,EAAGvB,EAAE,CAAE,iBAAkB,CAAG;QACjCkB,QAAQ,EAAKD,KAAK,IACjBN,aAAa,CAAE;UACdF,UAAU,EAAEQ,KAAK,GAAG,QAAQ,GAAG;QAChC,CAAE,CACF;QACDO,OAAO,EAAGf,UAAU,KAAK;MAAU,CACnC;IAAC,CACQ;EAAC,CACM,CACnB;EAED,oBACCH,KAAA,CAAAF,SAAA;IAAAY,QAAA,GACGF,aAAa,EACbM,iBAAiB,eACnBlB,IAAA;MAAA,GAAUU,UAAU;MAAAI,QAAA,eACnBd,IAAA;QACCuB,IAAI,EAAC,2BAA2B;QAChCC,OAAO,EAAKC,KAAK,IAAMA,KAAK,CAACC,cAAc,CAAC,CAAG;QAAAZ,QAAA,EAE7ChB,EAAE,CAAE,MAAO;MAAC,CACZ;IAAC,CACA,CAAC;EAAA,CACL,CAAC;AAEL","ignoreList":[]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createElement, Fragment } from "react";
|
|
2
1
|
/**
|
|
3
2
|
* External dependencies
|
|
4
3
|
*/
|
|
@@ -20,6 +19,9 @@ import { AlignmentControl, BlockControls, useBlockProps } from '@wordpress/block
|
|
|
20
19
|
*
|
|
21
20
|
* @return {JSX.Element} React element.
|
|
22
21
|
*/
|
|
22
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
25
|
function Edit({
|
|
24
26
|
setAttributes,
|
|
25
27
|
attributes: {
|
|
@@ -31,20 +33,25 @@ function Edit({
|
|
|
31
33
|
[`has-text-align-${textAlign}`]: textAlign
|
|
32
34
|
})
|
|
33
35
|
});
|
|
34
|
-
const blockControls =
|
|
35
|
-
group: "block"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
const blockControls = /*#__PURE__*/_jsx(BlockControls, {
|
|
37
|
+
group: "block",
|
|
38
|
+
children: /*#__PURE__*/_jsx(AlignmentControl, {
|
|
39
|
+
value: textAlign,
|
|
40
|
+
onChange: newAlign => setAttributes({
|
|
41
|
+
textAlign: newAlign
|
|
42
|
+
})
|
|
40
43
|
})
|
|
41
|
-
})
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
});
|
|
45
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
46
|
+
children: [blockControls, /*#__PURE__*/_jsx("div", {
|
|
47
|
+
...blockProps,
|
|
48
|
+
children: /*#__PURE__*/_jsx("a", {
|
|
49
|
+
href: "#comment-reply-pseudo-link",
|
|
50
|
+
onClick: event => event.preventDefault(),
|
|
51
|
+
children: __('Reply')
|
|
52
|
+
})
|
|
53
|
+
})]
|
|
54
|
+
});
|
|
48
55
|
}
|
|
49
56
|
export default Edit;
|
|
50
57
|
//# sourceMappingURL=edit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["clsx","__","AlignmentControl","BlockControls","useBlockProps","Edit","setAttributes","attributes","textAlign","blockProps","className","blockControls","
|
|
1
|
+
{"version":3,"names":["clsx","__","AlignmentControl","BlockControls","useBlockProps","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","Edit","setAttributes","attributes","textAlign","blockProps","className","blockControls","group","children","value","onChange","newAlign","href","onClick","event","preventDefault"],"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":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SACCC,gBAAgB,EAChBC,aAAa,EACbC,aAAa,QACP,yBAAyB;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAUA,SAASC,IAAIA,CAAE;EAAEC,aAAa;EAAEC,UAAU,EAAE;IAAEC;EAAU;AAAE,CAAC,EAAG;EAC7D,MAAMC,UAAU,GAAGX,aAAa,CAAE;IACjCY,SAAS,EAAEhB,IAAI,CAAE;MAChB,CAAG,kBAAkBc,SAAW,EAAC,GAAIA;IACtC,CAAE;EACH,CAAE,CAAC;EAEH,MAAMG,aAAa,gBAClBX,IAAA,CAACH,aAAa;IAACe,KAAK,EAAC,OAAO;IAAAC,QAAA,eAC3Bb,IAAA,CAACJ,gBAAgB;MAChBkB,KAAK,EAAGN,SAAW;MACnBO,QAAQ,EAAKC,QAAQ,IACpBV,aAAa,CAAE;QAAEE,SAAS,EAAEQ;MAAS,CAAE;IACvC,CACD;EAAC,CACY,CACf;EAED,oBACCZ,KAAA,CAAAF,SAAA;IAAAW,QAAA,GACGF,aAAa,eACfX,IAAA;MAAA,GAAUS,UAAU;MAAAI,QAAA,eACnBb,IAAA;QACCiB,IAAI,EAAC,4BAA4B;QACjCC,OAAO,EAAKC,KAAK,IAAMA,KAAK,CAACC,cAAc,CAAC,CAAG;QAAAP,QAAA,EAE7ClB,EAAE,CAAE,OAAQ;MAAC,CACb;IAAC,CACA,CAAC;EAAA,CACL,CAAC;AAEL;AAEA,eAAeU,IAAI","ignoreList":[]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createElement } from "react";
|
|
2
1
|
/**
|
|
3
2
|
* WordPress dependencies
|
|
4
3
|
*/
|
|
@@ -13,6 +12,8 @@ import { store as coreStore } from '@wordpress/core-data';
|
|
|
13
12
|
* Internal dependencies
|
|
14
13
|
*/
|
|
15
14
|
import { useCommentQueryArgs, useCommentTree } from './hooks';
|
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
17
|
const TEMPLATE = [['core/avatar'], ['core/comment-author-name'], ['core/comment-date'], ['core/comment-content'], ['core/comment-reply-link'], ['core/comment-edit-link']];
|
|
17
18
|
|
|
18
19
|
/**
|
|
@@ -102,20 +103,21 @@ function CommentTemplateInnerBlocks({
|
|
|
102
103
|
} = useInnerBlocksProps({}, {
|
|
103
104
|
template: TEMPLATE
|
|
104
105
|
});
|
|
105
|
-
return
|
|
106
|
-
...innerBlocksProps
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
106
|
+
return /*#__PURE__*/_jsxs("li", {
|
|
107
|
+
...innerBlocksProps,
|
|
108
|
+
children: [comment.commentId === (activeCommentId || firstCommentId) ? children : null, /*#__PURE__*/_jsx(MemoizedCommentTemplatePreview, {
|
|
109
|
+
blocks: blocks,
|
|
110
|
+
commentId: comment.commentId,
|
|
111
|
+
setActiveCommentId: setActiveCommentId,
|
|
112
|
+
isHidden: comment.commentId === (activeCommentId || firstCommentId)
|
|
113
|
+
}), comment?.children?.length > 0 ? /*#__PURE__*/_jsx(CommentsList, {
|
|
114
|
+
comments: comment.children,
|
|
115
|
+
activeCommentId: activeCommentId,
|
|
116
|
+
setActiveCommentId: setActiveCommentId,
|
|
117
|
+
blocks: blocks,
|
|
118
|
+
firstCommentId: firstCommentId
|
|
119
|
+
}) : null]
|
|
120
|
+
});
|
|
119
121
|
}
|
|
120
122
|
const CommentTemplatePreview = ({
|
|
121
123
|
blocks,
|
|
@@ -138,7 +140,7 @@ const CommentTemplatePreview = ({
|
|
|
138
140
|
const style = {
|
|
139
141
|
display: isHidden ? 'none' : undefined
|
|
140
142
|
};
|
|
141
|
-
return
|
|
143
|
+
return /*#__PURE__*/_jsx("div", {
|
|
142
144
|
...blockPreviewProps,
|
|
143
145
|
tabIndex: 0,
|
|
144
146
|
role: "button",
|
|
@@ -171,31 +173,32 @@ const CommentsList = ({
|
|
|
171
173
|
setActiveCommentId,
|
|
172
174
|
blocks,
|
|
173
175
|
firstCommentId
|
|
174
|
-
}) =>
|
|
175
|
-
...blockProps
|
|
176
|
-
|
|
177
|
-
commentId,
|
|
178
|
-
...comment
|
|
179
|
-
}, index) => createElement(BlockContextProvider, {
|
|
180
|
-
key: comment.commentId || index,
|
|
181
|
-
value: {
|
|
182
|
-
// If the commentId is negative it means that this comment is a
|
|
183
|
-
// "placeholder" and that the block is most likely being used in the
|
|
184
|
-
// site editor. In this case, we have to set the commentId to `null`
|
|
185
|
-
// because otherwise the (non-existent) comment with a negative ID
|
|
186
|
-
// would be reqested from the REST API.
|
|
187
|
-
commentId: commentId < 0 ? null : commentId
|
|
188
|
-
}
|
|
189
|
-
}, createElement(CommentTemplateInnerBlocks, {
|
|
190
|
-
comment: {
|
|
176
|
+
}) => /*#__PURE__*/_jsx("ol", {
|
|
177
|
+
...blockProps,
|
|
178
|
+
children: comments && comments.map(({
|
|
191
179
|
commentId,
|
|
192
180
|
...comment
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
181
|
+
}, index) => /*#__PURE__*/_jsx(BlockContextProvider, {
|
|
182
|
+
value: {
|
|
183
|
+
// If the commentId is negative it means that this comment is a
|
|
184
|
+
// "placeholder" and that the block is most likely being used in the
|
|
185
|
+
// site editor. In this case, we have to set the commentId to `null`
|
|
186
|
+
// because otherwise the (non-existent) comment with a negative ID
|
|
187
|
+
// would be reqested from the REST API.
|
|
188
|
+
commentId: commentId < 0 ? null : commentId
|
|
189
|
+
},
|
|
190
|
+
children: /*#__PURE__*/_jsx(CommentTemplateInnerBlocks, {
|
|
191
|
+
comment: {
|
|
192
|
+
commentId,
|
|
193
|
+
...comment
|
|
194
|
+
},
|
|
195
|
+
activeCommentId: activeCommentId,
|
|
196
|
+
setActiveCommentId: setActiveCommentId,
|
|
197
|
+
blocks: blocks,
|
|
198
|
+
firstCommentId: firstCommentId
|
|
199
|
+
})
|
|
200
|
+
}, comment.commentId || index))
|
|
201
|
+
});
|
|
199
202
|
export default function CommentTemplateEdit({
|
|
200
203
|
clientId,
|
|
201
204
|
context: {
|
|
@@ -241,9 +244,10 @@ export default function CommentTemplateEdit({
|
|
|
241
244
|
// Reverse the order of top comments if needed.
|
|
242
245
|
commentOrder === 'desc' && topLevelComments ? [...topLevelComments].reverse() : topLevelComments);
|
|
243
246
|
if (!topLevelComments) {
|
|
244
|
-
return
|
|
245
|
-
...blockProps
|
|
246
|
-
|
|
247
|
+
return /*#__PURE__*/_jsx("p", {
|
|
248
|
+
...blockProps,
|
|
249
|
+
children: /*#__PURE__*/_jsx(Spinner, {})
|
|
250
|
+
});
|
|
247
251
|
}
|
|
248
252
|
if (!postId) {
|
|
249
253
|
commentTree = getCommentsPlaceholder({
|
|
@@ -254,11 +258,12 @@ export default function CommentTemplateEdit({
|
|
|
254
258
|
});
|
|
255
259
|
}
|
|
256
260
|
if (!commentTree.length) {
|
|
257
|
-
return
|
|
258
|
-
...blockProps
|
|
259
|
-
|
|
261
|
+
return /*#__PURE__*/_jsx("p", {
|
|
262
|
+
...blockProps,
|
|
263
|
+
children: __('No results found.')
|
|
264
|
+
});
|
|
260
265
|
}
|
|
261
|
-
return
|
|
266
|
+
return /*#__PURE__*/_jsx(CommentsList, {
|
|
262
267
|
comments: commentTree,
|
|
263
268
|
blockProps: blockProps,
|
|
264
269
|
blocks: blocks,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useState","memo","useSelect","__","BlockContextProvider","useBlockProps","useInnerBlocksProps","store","blockEditorStore","__experimentalUseBlockPreview","useBlockPreview","Spinner","coreStore","useCommentQueryArgs","useCommentTree","TEMPLATE","getCommentsPlaceholder","perPage","pageComments","threadComments","threadCommentsDepth","commentsDepth","Math","min","buildChildrenComment","commentsLevel","nextLevel","commentId","children","placeholderComments","push","CommentTemplateInnerBlocks","comment","activeCommentId","setActiveCommentId","firstCommentId","blocks","innerBlocksProps","template","createElement","MemoizedCommentTemplatePreview","isHidden","length","CommentsList","comments","CommentTemplatePreview","blockPreviewProps","handleOnClick","style","display","undefined","tabIndex","role","onClick","onKeyPress","blockProps","map","index","key","value","CommentTemplateEdit","clientId","context","postId","commentOrder","commentsPerPage","select","getSettings","__experimentalDiscussionSettings","commentQuery","topLevelComments","getEntityRecords","getBlocks","commentTree","reverse"],"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":";AAAA;AACA;AACA;AACA,SAASA,QAAQ,EAAEC,IAAI,QAAQ,oBAAoB;AACnD,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SACCC,oBAAoB,EACpBC,aAAa,EACbC,mBAAmB,EACnBC,KAAK,IAAIC,gBAAgB,EACzBC,6BAA6B,IAAIC,eAAe,QAC1C,yBAAyB;AAChC,SAASC,OAAO,QAAQ,uBAAuB;AAC/C,SAASJ,KAAK,IAAIK,SAAS,QAAQ,sBAAsB;;AAEzD;AACA;AACA;AACA,SAASC,mBAAmB,EAAEC,cAAc,QAAQ,SAAS;AAE7D,MAAMC,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;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AC9C,CAAC;AAEJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["useState","memo","useSelect","__","BlockContextProvider","useBlockProps","useInnerBlocksProps","store","blockEditorStore","__experimentalUseBlockPreview","useBlockPreview","Spinner","coreStore","useCommentQueryArgs","useCommentTree","jsx","_jsx","jsxs","_jsxs","TEMPLATE","getCommentsPlaceholder","perPage","pageComments","threadComments","threadCommentsDepth","commentsDepth","Math","min","buildChildrenComment","commentsLevel","nextLevel","commentId","children","placeholderComments","push","CommentTemplateInnerBlocks","comment","activeCommentId","setActiveCommentId","firstCommentId","blocks","innerBlocksProps","template","MemoizedCommentTemplatePreview","isHidden","length","CommentsList","comments","CommentTemplatePreview","blockPreviewProps","handleOnClick","style","display","undefined","tabIndex","role","onClick","onKeyPress","blockProps","map","index","value","CommentTemplateEdit","clientId","context","postId","commentOrder","commentsPerPage","select","getSettings","__experimentalDiscussionSettings","commentQuery","topLevelComments","getEntityRecords","getBlocks","commentTree","reverse"],"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":"AAAA;AACA;AACA;AACA,SAASA,QAAQ,EAAEC,IAAI,QAAQ,oBAAoB;AACnD,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SACCC,oBAAoB,EACpBC,aAAa,EACbC,mBAAmB,EACnBC,KAAK,IAAIC,gBAAgB,EACzBC,6BAA6B,IAAIC,eAAe,QAC1C,yBAAyB;AAChC,SAASC,OAAO,QAAQ,uBAAuB;AAC/C,SAASJ,KAAK,IAAIK,SAAS,QAAQ,sBAAsB;;AAEzD;AACA;AACA;AACA,SAASC,mBAAmB,EAAEC,cAAc,QAAQ,SAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAE9D,MAAMC,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,CA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;EAEA,IAAK,CAAEmD,WAAW,CAAC9B,MAAM,EAAG;IAC3B,oBAAO7B,IAAA;MAAA,GAAQ0C,UAAU;MAAA1B,QAAA,EAAK7B,EAAE,CAAE,mBAAoB;IAAC,CAAK,CAAC;EAC9D;EAEA,oBACCa,IAAA,CAAC8B,YAAY;IACZC,QAAQ,EAAG4B,WAAa;IACxBjB,UAAU,EAAGA,UAAY;IACzBlB,MAAM,EAAGA,MAAQ;IACjBH,eAAe,EAAGA,eAAiB;IACnCC,kBAAkB,EAAGA,kBAAoB;IACzCC,cAAc,EAAGoC,WAAW,CAAE,CAAC,CAAE,EAAE5C;EAAW,CAC9C,CAAC;AAEJ","ignoreList":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createElement } from "react";
|
|
2
1
|
/**
|
|
3
2
|
* WordPress dependencies
|
|
4
3
|
*/
|
|
5
4
|
import { InnerBlocks } from '@wordpress/block-editor';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
export default function CommentTemplateSave() {
|
|
7
|
-
return
|
|
7
|
+
return /*#__PURE__*/_jsx(InnerBlocks.Content, {});
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=save.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["InnerBlocks","
|
|
1
|
+
{"version":3,"names":["InnerBlocks","jsx","_jsx","CommentTemplateSave","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":"AAAA;AACA;AACA;AACA,SAASA,WAAW,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtD,eAAe,SAASC,mBAAmBA,CAAA,EAAG;EAC7C,oBAAOD,IAAA,CAACF,WAAW,CAACI,OAAO,IAAE,CAAC;AAC/B","ignoreList":[]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createElement } from "react";
|
|
2
1
|
/**
|
|
3
2
|
* WordPress dependencies
|
|
4
3
|
*/
|
|
@@ -6,6 +5,7 @@ import { InnerBlocks, useBlockProps } from '@wordpress/block-editor';
|
|
|
6
5
|
|
|
7
6
|
// v1: Deprecate the initial version of the block which was called "Comments
|
|
8
7
|
// Query Loop" instead of "Comments".
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const v1 = {
|
|
10
10
|
attributes: {
|
|
11
11
|
tagName: {
|
|
@@ -46,9 +46,10 @@ const v1 = {
|
|
|
46
46
|
...blockProps,
|
|
47
47
|
className: newClasses.join(' ')
|
|
48
48
|
};
|
|
49
|
-
return
|
|
50
|
-
...newBlockProps
|
|
51
|
-
|
|
49
|
+
return /*#__PURE__*/_jsx(Tag, {
|
|
50
|
+
...newBlockProps,
|
|
51
|
+
children: /*#__PURE__*/_jsx(InnerBlocks.Content, {})
|
|
52
|
+
});
|
|
52
53
|
}
|
|
53
54
|
};
|
|
54
55
|
export default [v1];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["InnerBlocks","useBlockProps","v1","attributes","tagName","type","default","apiVersion","supports","align","html","color","gradients","link","__experimentalDefaultControls","background","text","save","Tag","blockProps","className","classes","split","newClasses","filter","cls","newBlockProps","join","
|
|
1
|
+
{"version":3,"names":["InnerBlocks","useBlockProps","jsx","_jsx","v1","attributes","tagName","type","default","apiVersion","supports","align","html","color","gradients","link","__experimentalDefaultControls","background","text","save","Tag","blockProps","className","classes","split","newClasses","filter","cls","newBlockProps","join","children","Content"],"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":"AAAA;AACA;AACA;AACA,SAASA,WAAW,EAAEC,aAAa,QAAQ,yBAAyB;;AAEpE;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,MAAMC,EAAE,GAAG;EACVC,UAAU,EAAE;IACXC,OAAO,EAAE;MACRC,IAAI,EAAE,QAAQ;MACdC,OAAO,EAAE;IACV;EACD,CAAC;EACDC,UAAU,EAAE,CAAC;EACbC,QAAQ,EAAE;IACTC,KAAK,EAAE,CAAE,MAAM,EAAE,MAAM,CAAE;IACzBC,IAAI,EAAE,KAAK;IACXC,KAAK,EAAE;MACNC,SAAS,EAAE,IAAI;MACfC,IAAI,EAAE,IAAI;MACVC,6BAA6B,EAAE;QAC9BC,UAAU,EAAE,IAAI;QAChBC,IAAI,EAAE,IAAI;QACVH,IAAI,EAAE;MACP;IACD;EACD,CAAC;EACDI,IAAIA,CAAE;IAAEd,UAAU,EAAE;MAAEC,OAAO,EAAEc;IAAI;EAAE,CAAC,EAAG;IACxC,MAAMC,UAAU,GAAGpB,aAAa,CAACkB,IAAI,CAAC,CAAC;IACvC,MAAM;MAAEG;IAAU,CAAC,GAAGD,UAAU;IAChC,MAAME,OAAO,GAAGD,SAAS,EAAEE,KAAK,CAAE,GAAI,CAAC,IAAI,EAAE;;IAE7C;IACA;IACA;IACA,MAAMC,UAAU,GAAGF,OAAO,EAAEG,MAAM,CAC/BC,GAAG,IAAMA,GAAG,KAAK,mBACpB,CAAC;IACD,MAAMC,aAAa,GAAG;MACrB,GAAGP,UAAU;MACbC,SAAS,EAAEG,UAAU,CAACI,IAAI,CAAE,GAAI;IACjC,CAAC;IAED,oBACC1B,IAAA,CAACiB,GAAG;MAAA,GAAMQ,aAAa;MAAAE,QAAA,eACtB3B,IAAA,CAACH,WAAW,CAAC+B,OAAO,IAAE;IAAC,CACnB,CAAC;EAER;AACD,CAAC;AAED,eAAe,CAAE3B,EAAE,CAAE","ignoreList":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { createElement } from "react";
|
|
2
1
|
/**
|
|
3
2
|
* WordPress dependencies
|
|
4
3
|
*/
|
|
5
4
|
import { SelectControl } from '@wordpress/components';
|
|
6
5
|
import { __ } from '@wordpress/i18n';
|
|
7
6
|
import { InspectorControls } from '@wordpress/block-editor';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
export default function CommentsInspectorControls({
|
|
9
9
|
attributes: {
|
|
10
10
|
tagName
|
|
@@ -15,27 +15,30 @@ export default function CommentsInspectorControls({
|
|
|
15
15
|
section: __("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),
|
|
16
16
|
aside: __("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")
|
|
17
17
|
};
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
18
|
+
return /*#__PURE__*/_jsx(InspectorControls, {
|
|
19
|
+
children: /*#__PURE__*/_jsx(InspectorControls, {
|
|
20
|
+
group: "advanced",
|
|
21
|
+
children: /*#__PURE__*/_jsx(SelectControl, {
|
|
22
|
+
__nextHasNoMarginBottom: true,
|
|
23
|
+
__next40pxDefaultSize: true,
|
|
24
|
+
label: __('HTML element'),
|
|
25
|
+
options: [{
|
|
26
|
+
label: __('Default (<div>)'),
|
|
27
|
+
value: 'div'
|
|
28
|
+
}, {
|
|
29
|
+
label: '<section>',
|
|
30
|
+
value: 'section'
|
|
31
|
+
}, {
|
|
32
|
+
label: '<aside>',
|
|
33
|
+
value: 'aside'
|
|
34
|
+
}],
|
|
35
|
+
value: tagName,
|
|
36
|
+
onChange: value => setAttributes({
|
|
37
|
+
tagName: value
|
|
38
|
+
}),
|
|
39
|
+
help: htmlElementMessages[tagName]
|
|
40
|
+
})
|
|
41
|
+
})
|
|
42
|
+
});
|
|
40
43
|
}
|
|
41
44
|
//# sourceMappingURL=comments-inspector-controls.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SelectControl","__","InspectorControls","CommentsInspectorControls","attributes","tagName","setAttributes","htmlElementMessages","section","aside","
|
|
1
|
+
{"version":3,"names":["SelectControl","__","InspectorControls","jsx","_jsx","CommentsInspectorControls","attributes","tagName","setAttributes","htmlElementMessages","section","aside","children","group","__nextHasNoMarginBottom","__next40pxDefaultSize","label","options","value","onChange","help"],"sources":["@wordpress/block-library/src/comments/edit/comments-inspector-controls.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { SelectControl } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { InspectorControls } from '@wordpress/block-editor';\n\nexport default function CommentsInspectorControls( {\n\tattributes: { tagName },\n\tsetAttributes,\n} ) {\n\tconst htmlElementMessages = {\n\t\tsection: __(\n\t\t\t\"The <section> element should represent a standalone portion of the document that can't be better represented by another element.\"\n\t\t),\n\t\taside: __(\n\t\t\t\"The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.\"\n\t\t),\n\t};\n\treturn (\n\t\t<InspectorControls>\n\t\t\t<InspectorControls group=\"advanced\">\n\t\t\t\t<SelectControl\n\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\t__next40pxDefaultSize\n\t\t\t\t\tlabel={ __( 'HTML element' ) }\n\t\t\t\t\toptions={ [\n\t\t\t\t\t\t{ label: __( 'Default (<div>)' ), value: 'div' },\n\t\t\t\t\t\t{ label: '<section>', value: 'section' },\n\t\t\t\t\t\t{ label: '<aside>', value: 'aside' },\n\t\t\t\t\t] }\n\t\t\t\t\tvalue={ tagName }\n\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\tsetAttributes( { tagName: value } )\n\t\t\t\t\t}\n\t\t\t\t\thelp={ htmlElementMessages[ tagName ] }\n\t\t\t\t/>\n\t\t\t</InspectorControls>\n\t\t</InspectorControls>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,aAAa,QAAQ,uBAAuB;AACrD,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,iBAAiB,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5D,eAAe,SAASC,yBAAyBA,CAAE;EAClDC,UAAU,EAAE;IAAEC;EAAQ,CAAC;EACvBC;AACD,CAAC,EAAG;EACH,MAAMC,mBAAmB,GAAG;IAC3BC,OAAO,EAAET,EAAE,CACV,kIACD,CAAC;IACDU,KAAK,EAAEV,EAAE,CACR,uIACD;EACD,CAAC;EACD,oBACCG,IAAA,CAACF,iBAAiB;IAAAU,QAAA,eACjBR,IAAA,CAACF,iBAAiB;MAACW,KAAK,EAAC,UAAU;MAAAD,QAAA,eAClCR,IAAA,CAACJ,aAAa;QACbc,uBAAuB;QACvBC,qBAAqB;QACrBC,KAAK,EAAGf,EAAE,CAAE,cAAe,CAAG;QAC9BgB,OAAO,EAAG,CACT;UAAED,KAAK,EAAEf,EAAE,CAAE,iBAAkB,CAAC;UAAEiB,KAAK,EAAE;QAAM,CAAC,EAChD;UAAEF,KAAK,EAAE,WAAW;UAAEE,KAAK,EAAE;QAAU,CAAC,EACxC;UAAEF,KAAK,EAAE,SAAS;UAAEE,KAAK,EAAE;QAAQ,CAAC,CAClC;QACHA,KAAK,EAAGX,OAAS;QACjBY,QAAQ,EAAKD,KAAK,IACjBV,aAAa,CAAE;UAAED,OAAO,EAAEW;QAAM,CAAE,CAClC;QACDE,IAAI,EAAGX,mBAAmB,CAAEF,OAAO;MAAI,CACvC;IAAC,CACgB;EAAC,CACF,CAAC;AAEtB","ignoreList":[]}
|