@wordpress/block-library 8.27.2 → 8.28.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 +2 -0
- package/build/archives/index.js +5 -4
- package/build/archives/index.js.map +1 -1
- package/build/archives/init.js +1 -2
- package/build/archives/init.js.map +1 -1
- package/build/audio/deprecated.js +1 -2
- package/build/audio/deprecated.js.map +1 -1
- package/build/audio/edit.js +1 -2
- package/build/audio/edit.js.map +1 -1
- package/build/audio/edit.native.js +1 -2
- package/build/audio/edit.native.js.map +1 -1
- package/build/audio/index.js +5 -4
- package/build/audio/index.js.map +1 -1
- package/build/audio/init.js +1 -2
- package/build/audio/init.js.map +1 -1
- package/build/audio/transforms.js +1 -2
- package/build/audio/transforms.js.map +1 -1
- package/build/audio/transforms.native.js +1 -2
- package/build/audio/transforms.native.js.map +1 -1
- package/build/avatar/index.js +5 -4
- package/build/avatar/index.js.map +1 -1
- package/build/avatar/init.js +1 -2
- package/build/avatar/init.js.map +1 -1
- package/build/avatar/user-control.js +1 -2
- package/build/avatar/user-control.js.map +1 -1
- package/build/block/deprecated.js +65 -0
- package/build/block/deprecated.js.map +1 -0
- package/build/block/edit-title.native.js +1 -2
- package/build/block/edit-title.native.js.map +1 -1
- package/build/block/edit.js +92 -101
- package/build/block/edit.js.map +1 -1
- package/build/block/index.js +26 -8
- package/build/block/index.js.map +1 -1
- package/build/block/init.js +1 -2
- package/build/block/init.js.map +1 -1
- package/build/button/color-background.native.js +1 -2
- package/build/button/color-background.native.js.map +1 -1
- package/build/button/constants.js +3 -6
- package/build/button/constants.js.map +1 -1
- package/build/button/deprecated.js +1 -2
- package/build/button/deprecated.js.map +1 -1
- package/build/button/edit.js +1 -2
- package/build/button/edit.js.map +1 -1
- package/build/button/edit.native.js +1 -3
- package/build/button/edit.native.js.map +1 -1
- package/build/button/index.js +9 -6
- package/build/button/index.js.map +1 -1
- package/build/button/init.js +1 -2
- package/build/button/init.js.map +1 -1
- package/build/buttons/deprecated.js +1 -2
- package/build/buttons/deprecated.js.map +1 -1
- package/build/buttons/edit.js +5 -13
- package/build/buttons/edit.js.map +1 -1
- package/build/buttons/edit.native.js +2 -5
- package/build/buttons/edit.native.js.map +1 -1
- package/build/buttons/index.js +6 -4
- package/build/buttons/index.js.map +1 -1
- package/build/buttons/init.js +1 -2
- package/build/buttons/init.js.map +1 -1
- package/build/buttons/transforms.js +1 -2
- package/build/buttons/transforms.js.map +1 -1
- package/build/buttons/transforms.native.js +1 -2
- package/build/buttons/transforms.native.js.map +1 -1
- package/build/calendar/index.js +5 -4
- package/build/calendar/index.js.map +1 -1
- package/build/calendar/init.js +1 -2
- package/build/calendar/init.js.map +1 -1
- package/build/calendar/transforms.js +1 -2
- package/build/calendar/transforms.js.map +1 -1
- package/build/categories/index.js +5 -4
- package/build/categories/index.js.map +1 -1
- package/build/categories/init.js +1 -2
- package/build/categories/init.js.map +1 -1
- package/build/code/edit.native.js +1 -2
- package/build/code/edit.native.js.map +1 -1
- package/build/code/index.js +5 -5
- package/build/code/index.js.map +1 -1
- package/build/code/init.js +1 -2
- package/build/code/init.js.map +1 -1
- package/build/code/transforms.js +1 -2
- package/build/code/transforms.js.map +1 -1
- package/build/code/transforms.native.js +1 -2
- package/build/code/transforms.native.js.map +1 -1
- package/build/column/column-preview.native.js +1 -2
- package/build/column/column-preview.native.js.map +1 -1
- package/build/column/deprecated.js +1 -2
- package/build/column/deprecated.js.map +1 -1
- package/build/column/edit.js +1 -2
- package/build/column/edit.js.map +1 -1
- package/build/column/edit.native.js +1 -2
- package/build/column/edit.native.js.map +1 -1
- package/build/column/index.js +7 -5
- package/build/column/index.js.map +1 -1
- package/build/column/init.js +1 -2
- package/build/column/init.js.map +1 -1
- package/build/columns/deprecated.js +1 -2
- package/build/columns/deprecated.js.map +1 -1
- package/build/columns/edit.js +53 -76
- package/build/columns/edit.js.map +1 -1
- package/build/columns/edit.native.js +1 -14
- package/build/columns/edit.native.js.map +1 -1
- package/build/columns/index.js +8 -5
- package/build/columns/index.js.map +1 -1
- package/build/columns/init.js +1 -2
- package/build/columns/init.js.map +1 -1
- package/build/columns/transforms.js +1 -2
- package/build/columns/transforms.js.map +1 -1
- package/build/columns/transforms.native.js +1 -2
- package/build/columns/transforms.native.js.map +1 -1
- package/build/columns/variations.js +1 -2
- package/build/columns/variations.js.map +1 -1
- package/build/comment-author-avatar/index.js +5 -4
- package/build/comment-author-avatar/index.js.map +1 -1
- package/build/comment-author-avatar/init.js +1 -2
- package/build/comment-author-avatar/init.js.map +1 -1
- package/build/comment-author-name/deprecated.js +1 -2
- package/build/comment-author-name/deprecated.js.map +1 -1
- package/build/comment-author-name/index.js +5 -4
- package/build/comment-author-name/index.js.map +1 -1
- package/build/comment-author-name/init.js +1 -2
- package/build/comment-author-name/init.js.map +1 -1
- package/build/comment-content/index.js +2 -4
- package/build/comment-content/index.js.map +1 -1
- package/build/comment-content/init.js +1 -2
- package/build/comment-content/init.js.map +1 -1
- package/build/comment-date/deprecated.js +1 -2
- package/build/comment-date/deprecated.js.map +1 -1
- package/build/comment-date/index.js +5 -4
- package/build/comment-date/index.js.map +1 -1
- package/build/comment-date/init.js +1 -2
- package/build/comment-date/init.js.map +1 -1
- package/build/comment-edit-link/index.js +5 -4
- package/build/comment-edit-link/index.js.map +1 -1
- package/build/comment-edit-link/init.js +1 -2
- package/build/comment-edit-link/init.js.map +1 -1
- package/build/comment-reply-link/edit.js +1 -2
- package/build/comment-reply-link/edit.js.map +1 -1
- package/build/comment-reply-link/index.js +2 -4
- package/build/comment-reply-link/index.js.map +1 -1
- package/build/comment-reply-link/init.js +1 -2
- package/build/comment-reply-link/init.js.map +1 -1
- package/build/comment-template/index.js +5 -4
- package/build/comment-template/index.js.map +1 -1
- package/build/comment-template/init.js +1 -2
- package/build/comment-template/init.js.map +1 -1
- package/build/comments/deprecated.js +1 -2
- package/build/comments/deprecated.js.map +1 -1
- package/build/comments/edit/template.js +1 -2
- package/build/comments/edit/template.js.map +1 -1
- package/build/comments/index.js +2 -4
- package/build/comments/index.js.map +1 -1
- package/build/comments/init.js +1 -2
- package/build/comments/init.js.map +1 -1
- package/build/comments-pagination/edit.js +1 -3
- package/build/comments-pagination/edit.js.map +1 -1
- package/build/comments-pagination/index.js +6 -4
- package/build/comments-pagination/index.js.map +1 -1
- package/build/comments-pagination/init.js +1 -2
- package/build/comments-pagination/init.js.map +1 -1
- package/build/comments-pagination-next/index.js +5 -4
- package/build/comments-pagination-next/index.js.map +1 -1
- package/build/comments-pagination-next/init.js +1 -2
- package/build/comments-pagination-next/init.js.map +1 -1
- package/build/comments-pagination-numbers/index.js +5 -4
- package/build/comments-pagination-numbers/index.js.map +1 -1
- package/build/comments-pagination-numbers/init.js +1 -2
- package/build/comments-pagination-numbers/init.js.map +1 -1
- package/build/comments-pagination-previous/index.js +5 -4
- package/build/comments-pagination-previous/index.js.map +1 -1
- package/build/comments-pagination-previous/init.js +1 -2
- package/build/comments-pagination-previous/init.js.map +1 -1
- package/build/comments-title/deprecated.js +4 -2
- package/build/comments-title/deprecated.js.map +1 -1
- package/build/comments-title/index.js +5 -4
- package/build/comments-title/index.js.map +1 -1
- package/build/comments-title/init.js +1 -2
- package/build/comments-title/init.js.map +1 -1
- package/build/cover/controls.native.js +1 -2
- package/build/cover/controls.native.js.map +1 -1
- package/build/cover/deprecated.js +1 -2
- package/build/cover/deprecated.js.map +1 -1
- package/build/cover/edit/color-utils.js +3 -6
- package/build/cover/edit/color-utils.js.map +1 -1
- package/build/cover/edit/index.js +1 -2
- package/build/cover/edit/index.js.map +1 -1
- package/build/cover/edit/inspector-controls.js +3 -3
- package/build/cover/edit/inspector-controls.js.map +1 -1
- package/build/cover/edit.native.js +1 -2
- package/build/cover/edit.native.js.map +1 -1
- package/build/cover/focal-point-settings-button.native.js +1 -2
- package/build/cover/focal-point-settings-button.native.js.map +1 -1
- package/build/cover/index.js +5 -4
- package/build/cover/index.js.map +1 -1
- package/build/cover/init.js +1 -2
- package/build/cover/init.js.map +1 -1
- package/build/cover/overlay-color-settings.native.js +1 -2
- package/build/cover/overlay-color-settings.native.js.map +1 -1
- package/build/cover/shared.js +7 -14
- package/build/cover/shared.js.map +1 -1
- package/build/cover/transforms.js +1 -2
- package/build/cover/transforms.js.map +1 -1
- package/build/cover/transforms.native.js +1 -2
- package/build/cover/transforms.native.js.map +1 -1
- package/build/cover/variations.js +1 -2
- package/build/cover/variations.js.map +1 -1
- package/build/details/edit.js +1 -2
- package/build/details/edit.js.map +1 -1
- package/build/details/index.js +5 -4
- package/build/details/index.js.map +1 -1
- package/build/details/init.js +1 -2
- package/build/details/init.js.map +1 -1
- package/build/embed/constants.js +2 -4
- package/build/embed/constants.js.map +1 -1
- package/build/embed/deprecated.js +4 -2
- package/build/embed/deprecated.js.map +1 -1
- package/build/embed/edit.js +1 -2
- package/build/embed/edit.js.map +1 -1
- package/build/embed/edit.native.js +1 -2
- package/build/embed/edit.native.js.map +1 -1
- package/build/embed/embed-controls.js +1 -2
- package/build/embed/embed-controls.js.map +1 -1
- package/build/embed/embed-controls.native.js +1 -2
- package/build/embed/embed-controls.native.js.map +1 -1
- package/build/embed/embed-link-settings.native.js +1 -2
- package/build/embed/embed-link-settings.native.js.map +1 -1
- package/build/embed/embed-loading.js +1 -2
- package/build/embed/embed-loading.js.map +1 -1
- package/build/embed/embed-loading.native.js +1 -2
- package/build/embed/embed-loading.native.js.map +1 -1
- package/build/embed/embed-no-preview.native.js +1 -2
- package/build/embed/embed-no-preview.native.js.map +1 -1
- package/build/embed/embed-placeholder.js +2 -3
- package/build/embed/embed-placeholder.js.map +1 -1
- package/build/embed/embed-placeholder.native.js +1 -2
- package/build/embed/embed-placeholder.native.js.map +1 -1
- package/build/embed/embed-preview.js +1 -2
- package/build/embed/embed-preview.js.map +1 -1
- package/build/embed/embed-preview.native.js +1 -2
- package/build/embed/embed-preview.native.js.map +1 -1
- package/build/embed/icons.js +20 -40
- package/build/embed/icons.js.map +1 -1
- package/build/embed/index.js +5 -4
- package/build/embed/index.js.map +1 -1
- package/build/embed/init.js +1 -2
- package/build/embed/init.js.map +1 -1
- package/build/embed/transforms.js +4 -2
- package/build/embed/transforms.js.map +1 -1
- package/build/embed/transforms.native.js +1 -2
- package/build/embed/transforms.native.js.map +1 -1
- package/build/embed/util.js +4 -2
- package/build/embed/util.js.map +1 -1
- package/build/embed/variations.js +1 -2
- package/build/embed/variations.js.map +1 -1
- package/build/embed/wp-embed-preview.native.js +1 -2
- package/build/embed/wp-embed-preview.native.js.map +1 -1
- package/build/file/deprecated.js +1 -2
- package/build/file/deprecated.js.map +1 -1
- package/build/file/edit.js +3 -6
- package/build/file/edit.js.map +1 -1
- package/build/file/edit.native.js +1 -2
- package/build/file/edit.native.js.map +1 -1
- package/build/file/index.js +2 -4
- package/build/file/index.js.map +1 -1
- package/build/file/init.js +1 -2
- package/build/file/init.js.map +1 -1
- package/build/file/transforms.js +1 -2
- package/build/file/transforms.js.map +1 -1
- package/build/file/transforms.native.js +1 -2
- package/build/file/transforms.native.js.map +1 -1
- package/build/file/view.js +2 -0
- package/build/file/view.js.map +1 -1
- package/build/footnotes/format.js +6 -4
- package/build/footnotes/format.js.map +1 -1
- package/build/footnotes/index.js +5 -4
- package/build/footnotes/index.js.map +1 -1
- package/build/footnotes/init.js +1 -2
- package/build/footnotes/init.js.map +1 -1
- package/build/form/edit.js +1 -4
- package/build/form/edit.js.map +1 -1
- package/build/form/index.js +3 -4
- package/build/form/index.js.map +1 -1
- package/build/form/init.js +1 -2
- package/build/form/init.js.map +1 -1
- package/build/form/save.js +1 -2
- package/build/form/save.js.map +1 -1
- package/build/form/utils.js +2 -4
- package/build/form/utils.js.map +1 -1
- package/build/form/variations.js +1 -2
- package/build/form/variations.js.map +1 -1
- package/build/form/view.js +2 -0
- package/build/form/view.js.map +1 -1
- package/build/form-input/deprecated.js +1 -3
- package/build/form-input/deprecated.js.map +1 -1
- package/build/form-input/edit.js +1 -2
- package/build/form-input/edit.js.map +1 -1
- package/build/form-input/index.js +2 -4
- package/build/form-input/index.js.map +1 -1
- package/build/form-input/init.js +1 -2
- package/build/form-input/init.js.map +1 -1
- package/build/form-input/variations.js +1 -2
- package/build/form-input/variations.js.map +1 -1
- package/build/form-submission-notification/edit.js +1 -2
- package/build/form-submission-notification/edit.js.map +1 -1
- package/build/form-submission-notification/index.js +2 -4
- package/build/form-submission-notification/index.js.map +1 -1
- package/build/form-submission-notification/init.js +1 -2
- package/build/form-submission-notification/init.js.map +1 -1
- package/build/form-submission-notification/variations.js +1 -2
- package/build/form-submission-notification/variations.js.map +1 -1
- package/build/form-submit-button/edit.js +1 -3
- package/build/form-submit-button/edit.js.map +1 -1
- package/build/form-submit-button/index.js +3 -4
- package/build/form-submit-button/index.js.map +1 -1
- package/build/form-submit-button/init.js +1 -2
- package/build/form-submit-button/init.js.map +1 -1
- package/build/form-submit-button/save.js +1 -2
- package/build/form-submit-button/save.js.map +1 -1
- package/build/freeform/convert-to-blocks-button.js +1 -2
- package/build/freeform/convert-to-blocks-button.js.map +1 -1
- package/build/freeform/edit.native.js +1 -2
- package/build/freeform/edit.native.js.map +1 -1
- package/build/freeform/index.js +2 -4
- package/build/freeform/index.js.map +1 -1
- package/build/freeform/init.js +1 -2
- package/build/freeform/init.js.map +1 -1
- package/build/gallery/constants.js +5 -10
- package/build/gallery/constants.js.map +1 -1
- package/build/gallery/deprecated.js +1 -2
- package/build/gallery/deprecated.js.map +1 -1
- package/build/gallery/edit-wrapper.js +1 -2
- package/build/gallery/edit-wrapper.js.map +1 -1
- package/build/gallery/edit.js +20 -27
- package/build/gallery/edit.js.map +1 -1
- package/build/gallery/gallery.native.js +1 -3
- package/build/gallery/gallery.native.js.map +1 -1
- package/build/gallery/index.js +6 -4
- package/build/gallery/index.js.map +1 -1
- package/build/gallery/init.js +1 -2
- package/build/gallery/init.js.map +1 -1
- package/build/gallery/shared-icon.js +1 -2
- package/build/gallery/shared-icon.js.map +1 -1
- package/build/gallery/transforms.js +1 -2
- package/build/gallery/transforms.js.map +1 -1
- package/build/gallery/transforms.native.js +1 -2
- package/build/gallery/transforms.native.js.map +1 -1
- package/build/gallery/v1/constants.js +3 -6
- package/build/gallery/v1/constants.js.map +1 -1
- package/build/gallery/v1/edit.js +1 -2
- package/build/gallery/v1/edit.js.map +1 -1
- package/build/gallery/v1/gallery-button.native.js +1 -2
- package/build/gallery/v1/gallery-button.native.js.map +1 -1
- package/build/gallery/v1/gallery-image.js +1 -3
- package/build/gallery/v1/gallery-image.js.map +1 -1
- package/build/gallery/v1/gallery-image.native.js +1 -2
- package/build/gallery/v1/gallery-image.native.js.map +1 -1
- package/build/gallery/v1/gallery.js +1 -2
- package/build/gallery/v1/gallery.js.map +1 -1
- package/build/gallery/v1/gallery.native.js +1 -2
- package/build/gallery/v1/gallery.native.js.map +1 -1
- package/build/gallery/v1/tiles.native.js +1 -2
- package/build/gallery/v1/tiles.native.js.map +1 -1
- package/build/group/deprecated.js +1 -2
- package/build/group/deprecated.js.map +1 -1
- package/build/group/edit.js +3 -4
- package/build/group/edit.js.map +1 -1
- package/build/group/edit.native.js +1 -2
- package/build/group/edit.native.js.map +1 -1
- package/build/group/index.js +5 -4
- package/build/group/index.js.map +1 -1
- package/build/group/init.js +1 -2
- package/build/group/init.js.map +1 -1
- package/build/group/placeholder.js +1 -2
- package/build/group/placeholder.js.map +1 -1
- package/build/group/transforms.js +1 -2
- package/build/group/transforms.js.map +1 -1
- package/build/group/variations.js +1 -2
- package/build/group/variations.js.map +1 -1
- package/build/heading/deprecated.js +1 -2
- package/build/heading/deprecated.js.map +1 -1
- package/build/heading/edit.js +1 -2
- package/build/heading/edit.js.map +1 -1
- package/build/heading/edit.native.js +1 -2
- package/build/heading/edit.native.js.map +1 -1
- package/build/heading/index.js +6 -5
- package/build/heading/index.js.map +1 -1
- package/build/heading/init.js +1 -2
- package/build/heading/init.js.map +1 -1
- package/build/heading/transforms.js +1 -2
- package/build/heading/transforms.js.map +1 -1
- package/build/heading/transforms.native.js +1 -2
- package/build/heading/transforms.native.js.map +1 -1
- package/build/home-link/index.js +5 -4
- package/build/home-link/index.js.map +1 -1
- package/build/home-link/init.js +1 -2
- package/build/home-link/init.js.map +1 -1
- package/build/html/index.js +6 -5
- package/build/html/index.js.map +1 -1
- package/build/html/init.js +1 -2
- package/build/html/init.js.map +1 -1
- package/build/html/transforms.js +1 -2
- package/build/html/transforms.js.map +1 -1
- package/build/html/transforms.native.js +1 -2
- package/build/html/transforms.native.js.map +1 -1
- package/build/image/constants.js +8 -16
- package/build/image/constants.js.map +1 -1
- package/build/image/deprecated.js +1 -2
- package/build/image/deprecated.js.map +1 -1
- package/build/image/edit.js +21 -21
- package/build/image/edit.js.map +1 -1
- package/build/image/edit.native.js +1 -2
- package/build/image/edit.native.js.map +1 -1
- package/build/image/image.js +41 -43
- package/build/image/image.js.map +1 -1
- package/build/image/index.js +6 -4
- package/build/image/index.js.map +1 -1
- package/build/image/init.js +1 -2
- package/build/image/init.js.map +1 -1
- package/build/image/save.js +2 -0
- package/build/image/save.js.map +1 -1
- package/build/image/transforms.js +1 -2
- package/build/image/transforms.js.map +1 -1
- package/build/image/transforms.native.js +1 -2
- package/build/image/transforms.native.js.map +1 -1
- package/build/image/view.js +266 -369
- package/build/image/view.js.map +1 -1
- package/build/index.js +3 -4
- package/build/index.js.map +1 -1
- package/build/index.native.js +4 -6
- package/build/index.native.js.map +1 -1
- package/build/latest-comments/index.js +5 -4
- package/build/latest-comments/index.js.map +1 -1
- package/build/latest-comments/init.js +1 -2
- package/build/latest-comments/init.js.map +1 -1
- package/build/latest-posts/constants.js +3 -6
- package/build/latest-posts/constants.js.map +1 -1
- package/build/latest-posts/deprecated.js +4 -2
- package/build/latest-posts/deprecated.js.map +1 -1
- package/build/latest-posts/edit.native.js +1 -2
- package/build/latest-posts/edit.native.js.map +1 -1
- package/build/latest-posts/index.js +5 -4
- package/build/latest-posts/index.js.map +1 -1
- package/build/latest-posts/init.js +1 -2
- package/build/latest-posts/init.js.map +1 -1
- package/build/list/deprecated.js +1 -2
- package/build/list/deprecated.js.map +1 -1
- package/build/list/edit.js +0 -1
- package/build/list/edit.js.map +1 -1
- package/build/list/index.js +7 -5
- package/build/list/index.js.map +1 -1
- package/build/list/init.js +1 -2
- package/build/list/init.js.map +1 -1
- package/build/list/ordered-list-settings.js +1 -2
- package/build/list/ordered-list-settings.js.map +1 -1
- package/build/list/tag-name.js +1 -2
- package/build/list/tag-name.js.map +1 -1
- package/build/list/tag-name.native.js +1 -2
- package/build/list/tag-name.native.js.map +1 -1
- package/build/list/transforms.js +1 -2
- package/build/list/transforms.js.map +1 -1
- package/build/list/transforms.native.js +1 -2
- package/build/list/transforms.native.js.map +1 -1
- package/build/list-item/edit.js +0 -1
- package/build/list-item/edit.js.map +1 -1
- package/build/list-item/edit.native.js +0 -1
- package/build/list-item/edit.native.js.map +1 -1
- package/build/list-item/index.js +6 -4
- package/build/list-item/index.js.map +1 -1
- package/build/list-item/init.js +1 -2
- package/build/list-item/init.js.map +1 -1
- package/build/list-item/transforms.js +1 -2
- package/build/list-item/transforms.js.map +1 -1
- package/build/loginout/index.js +5 -4
- package/build/loginout/index.js.map +1 -1
- package/build/loginout/init.js +1 -2
- package/build/loginout/init.js.map +1 -1
- package/build/media-text/constants.js +5 -10
- package/build/media-text/constants.js.map +1 -1
- package/build/media-text/deprecated.js +1 -2
- package/build/media-text/deprecated.js.map +1 -1
- package/build/media-text/edit.js +13 -12
- package/build/media-text/edit.js.map +1 -1
- package/build/media-text/edit.native.js +2 -3
- package/build/media-text/edit.native.js.map +1 -1
- package/build/media-text/icon-retry.native.js +1 -2
- package/build/media-text/icon-retry.native.js.map +1 -1
- package/build/media-text/index.js +5 -4
- package/build/media-text/index.js.map +1 -1
- package/build/media-text/init.js +1 -2
- package/build/media-text/init.js.map +1 -1
- package/build/media-text/media-container.js +1 -2
- package/build/media-text/media-container.js.map +1 -1
- package/build/media-text/media-container.native.js +1 -2
- package/build/media-text/media-container.native.js.map +1 -1
- package/build/media-text/transforms.js +1 -2
- package/build/media-text/transforms.js.map +1 -1
- package/build/media-text/transforms.native.js +1 -2
- package/build/media-text/transforms.native.js.map +1 -1
- package/build/missing/edit.js +1 -2
- package/build/missing/edit.js.map +1 -1
- package/build/missing/edit.native.js +1 -2
- package/build/missing/edit.native.js.map +1 -1
- package/build/missing/index.js +6 -5
- package/build/missing/index.js.map +1 -1
- package/build/missing/init.js +1 -2
- package/build/missing/init.js.map +1 -1
- package/build/more/edit.native.js +1 -2
- package/build/more/edit.native.js.map +1 -1
- package/build/more/index.js +6 -5
- package/build/more/index.js.map +1 -1
- package/build/more/init.js +1 -2
- package/build/more/init.js.map +1 -1
- package/build/more/transforms.js +1 -2
- package/build/more/transforms.js.map +1 -1
- package/build/more/transforms.native.js +1 -2
- package/build/more/transforms.native.js.map +1 -1
- package/build/navigation/constants.js +6 -13
- package/build/navigation/constants.js.map +1 -1
- package/build/navigation/deprecated.js +1 -2
- package/build/navigation/deprecated.js.map +1 -1
- package/build/navigation/edit/deleted-navigation-warning.js +1 -2
- package/build/navigation/edit/deleted-navigation-warning.js.map +1 -1
- package/build/navigation/edit/index.js +3 -5
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/inner-blocks.js +1 -5
- package/build/navigation/edit/inner-blocks.js.map +1 -1
- package/build/navigation/edit/manage-menus-button.js +1 -2
- package/build/navigation/edit/manage-menus-button.js.map +1 -1
- package/build/navigation/edit/menu-inspector-controls.js +1 -2
- package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
- package/build/navigation/edit/navigation-menu-selector.js +1 -2
- package/build/navigation/edit/navigation-menu-selector.js.map +1 -1
- package/build/navigation/edit/placeholder/placeholder-preview.js +1 -2
- package/build/navigation/edit/placeholder/placeholder-preview.js.map +1 -1
- package/build/navigation/edit/unsaved-inner-blocks.js +1 -5
- package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
- package/build/navigation/edit/use-convert-classic-menu-to-block-menu.js +5 -10
- package/build/navigation/edit/use-convert-classic-menu-to-block-menu.js.map +1 -1
- package/build/navigation/edit/use-create-navigation-menu.js +4 -8
- package/build/navigation/edit/use-create-navigation-menu.js.map +1 -1
- package/build/navigation/edit/use-navigation-notice.js +1 -2
- package/build/navigation/edit/use-navigation-notice.js.map +1 -1
- package/build/navigation/index.js +3 -4
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/init.js +1 -2
- package/build/navigation/init.js.map +1 -1
- package/build/navigation/view.js +2 -0
- package/build/navigation/view.js.map +1 -1
- package/build/navigation-link/edit.js +12 -6
- package/build/navigation-link/edit.js.map +1 -1
- package/build/navigation-link/index.js +7 -5
- package/build/navigation-link/index.js.map +1 -1
- package/build/navigation-link/init.js +1 -2
- package/build/navigation-link/init.js.map +1 -1
- package/build/navigation-link/link-ui.js +114 -47
- package/build/navigation-link/link-ui.js.map +1 -1
- package/build/navigation-link/transforms.js +1 -2
- package/build/navigation-link/transforms.js.map +1 -1
- package/build/navigation-submenu/index.js +21 -8
- package/build/navigation-submenu/index.js.map +1 -1
- package/build/navigation-submenu/init.js +1 -2
- package/build/navigation-submenu/init.js.map +1 -1
- package/build/navigation-submenu/transforms.js +1 -2
- package/build/navigation-submenu/transforms.js.map +1 -1
- package/build/nextpage/edit.native.js +1 -2
- package/build/nextpage/edit.native.js.map +1 -1
- package/build/nextpage/index.js +6 -5
- package/build/nextpage/index.js.map +1 -1
- package/build/nextpage/init.js +1 -2
- package/build/nextpage/init.js.map +1 -1
- package/build/nextpage/transforms.js +1 -2
- package/build/nextpage/transforms.js.map +1 -1
- package/build/nextpage/transforms.native.js +1 -2
- package/build/nextpage/transforms.native.js.map +1 -1
- package/build/page-list/convert-to-links-modal.js +1 -2
- package/build/page-list/convert-to-links-modal.js.map +1 -1
- package/build/page-list/edit.js +0 -1
- package/build/page-list/edit.js.map +1 -1
- package/build/page-list/index.js +6 -4
- package/build/page-list/index.js.map +1 -1
- package/build/page-list/init.js +1 -2
- package/build/page-list/init.js.map +1 -1
- package/build/page-list-item/index.js +6 -5
- package/build/page-list-item/index.js.map +1 -1
- package/build/page-list-item/init.js +1 -2
- package/build/page-list-item/init.js.map +1 -1
- package/build/paragraph/deprecated.js +1 -2
- package/build/paragraph/deprecated.js.map +1 -1
- package/build/paragraph/edit.js +4 -5
- package/build/paragraph/edit.js.map +1 -1
- package/build/paragraph/edit.native.js +1 -2
- package/build/paragraph/edit.native.js.map +1 -1
- package/build/paragraph/index.js +6 -5
- package/build/paragraph/index.js.map +1 -1
- package/build/paragraph/init.js +1 -2
- package/build/paragraph/init.js.map +1 -1
- package/build/paragraph/transforms.js +5 -3
- package/build/paragraph/transforms.js.map +1 -1
- package/build/paragraph/transforms.native.js +1 -2
- package/build/paragraph/transforms.native.js.map +1 -1
- package/build/pattern/edit.js +1 -2
- package/build/pattern/edit.js.map +1 -1
- package/build/pattern/index.js +6 -5
- package/build/pattern/index.js.map +1 -1
- package/build/pattern/init.js +1 -2
- package/build/pattern/init.js.map +1 -1
- package/build/post-author/edit.js +1 -2
- package/build/post-author/edit.js.map +1 -1
- package/build/post-author/index.js +5 -4
- package/build/post-author/index.js.map +1 -1
- package/build/post-author/init.js +1 -2
- package/build/post-author/init.js.map +1 -1
- package/build/post-author-biography/edit.js +1 -2
- package/build/post-author-biography/edit.js.map +1 -1
- package/build/post-author-biography/index.js +5 -4
- package/build/post-author-biography/index.js.map +1 -1
- package/build/post-author-biography/init.js +1 -2
- package/build/post-author-biography/init.js.map +1 -1
- package/build/post-author-name/edit.js +1 -2
- package/build/post-author-name/edit.js.map +1 -1
- package/build/post-author-name/index.js +5 -4
- package/build/post-author-name/index.js.map +1 -1
- package/build/post-author-name/init.js +1 -2
- package/build/post-author-name/init.js.map +1 -1
- package/build/post-author-name/transforms.js +1 -2
- package/build/post-author-name/transforms.js.map +1 -1
- package/build/post-comment/edit.js +1 -3
- package/build/post-comment/edit.js.map +1 -1
- package/build/post-comment/index.js +7 -5
- package/build/post-comment/index.js.map +1 -1
- package/build/post-comment/init.js +1 -2
- package/build/post-comment/init.js.map +1 -1
- package/build/post-comments-count/index.js +5 -4
- package/build/post-comments-count/index.js.map +1 -1
- package/build/post-comments-count/init.js +1 -2
- package/build/post-comments-count/init.js.map +1 -1
- package/build/post-comments-form/form.js +1 -2
- package/build/post-comments-form/form.js.map +1 -1
- package/build/post-comments-form/index.js +2 -4
- package/build/post-comments-form/index.js.map +1 -1
- package/build/post-comments-form/init.js +1 -2
- package/build/post-comments-form/init.js.map +1 -1
- package/build/post-comments-link/edit.js +1 -2
- package/build/post-comments-link/edit.js.map +1 -1
- package/build/post-comments-link/index.js +5 -4
- package/build/post-comments-link/index.js.map +1 -1
- package/build/post-comments-link/init.js +1 -2
- package/build/post-comments-link/init.js.map +1 -1
- package/build/post-content/index.js +2 -4
- package/build/post-content/index.js.map +1 -1
- package/build/post-content/init.js +1 -2
- package/build/post-content/init.js.map +1 -1
- package/build/post-date/deprecated.js +1 -2
- package/build/post-date/deprecated.js.map +1 -1
- package/build/post-date/index.js +5 -4
- package/build/post-date/index.js.map +1 -1
- package/build/post-date/init.js +1 -2
- package/build/post-date/init.js.map +1 -1
- package/build/post-date/variations.js +1 -2
- package/build/post-date/variations.js.map +1 -1
- package/build/post-excerpt/index.js +5 -4
- package/build/post-excerpt/index.js.map +1 -1
- package/build/post-excerpt/init.js +1 -2
- package/build/post-excerpt/init.js.map +1 -1
- package/build/post-excerpt/transforms.js +1 -2
- package/build/post-excerpt/transforms.js.map +1 -1
- package/build/post-featured-image/dimension-controls.js +1 -2
- package/build/post-featured-image/dimension-controls.js.map +1 -1
- package/build/post-featured-image/index.js +5 -4
- package/build/post-featured-image/index.js.map +1 -1
- package/build/post-featured-image/init.js +1 -2
- package/build/post-featured-image/init.js.map +1 -1
- package/build/post-featured-image/overlay.js +1 -2
- package/build/post-featured-image/overlay.js.map +1 -1
- package/build/post-navigation-link/edit.js +5 -5
- package/build/post-navigation-link/edit.js.map +1 -1
- package/build/post-navigation-link/index.js +5 -7
- package/build/post-navigation-link/index.js.map +1 -1
- package/build/post-navigation-link/init.js +1 -2
- package/build/post-navigation-link/init.js.map +1 -1
- package/build/post-navigation-link/variations.js +1 -2
- package/build/post-navigation-link/variations.js.map +1 -1
- package/build/post-template/edit.js +5 -6
- package/build/post-template/edit.js.map +1 -1
- package/build/post-template/index.js +5 -4
- package/build/post-template/index.js.map +1 -1
- package/build/post-template/init.js +1 -2
- package/build/post-template/init.js.map +1 -1
- package/build/post-terms/index.js +5 -4
- package/build/post-terms/index.js.map +1 -1
- package/build/post-terms/init.js +1 -2
- package/build/post-terms/init.js.map +1 -1
- package/build/post-time-to-read/edit.js +1 -2
- package/build/post-time-to-read/edit.js.map +1 -1
- package/build/post-time-to-read/icon.js +1 -2
- package/build/post-time-to-read/icon.js.map +1 -1
- package/build/post-time-to-read/index.js +5 -4
- package/build/post-time-to-read/index.js.map +1 -1
- package/build/post-time-to-read/init.js +1 -2
- package/build/post-time-to-read/init.js.map +1 -1
- package/build/post-title/deprecated.js +1 -2
- package/build/post-title/deprecated.js.map +1 -1
- package/build/post-title/index.js +5 -4
- package/build/post-title/index.js.map +1 -1
- package/build/post-title/init.js +1 -2
- package/build/post-title/init.js.map +1 -1
- package/build/preformatted/index.js +5 -5
- package/build/preformatted/index.js.map +1 -1
- package/build/preformatted/init.js +1 -2
- package/build/preformatted/init.js.map +1 -1
- package/build/preformatted/transforms.js +1 -2
- package/build/preformatted/transforms.js.map +1 -1
- package/build/preformatted/transforms.native.js +1 -2
- package/build/preformatted/transforms.native.js.map +1 -1
- package/build/pullquote/blockquote.js +1 -2
- package/build/pullquote/blockquote.js.map +1 -1
- package/build/pullquote/deprecated.js +1 -2
- package/build/pullquote/deprecated.js.map +1 -1
- package/build/pullquote/edit.js +1 -2
- package/build/pullquote/edit.js.map +1 -1
- package/build/pullquote/edit.native.js +1 -2
- package/build/pullquote/edit.native.js.map +1 -1
- package/build/pullquote/figure.js +1 -2
- package/build/pullquote/figure.js.map +1 -1
- package/build/pullquote/index.js +5 -4
- package/build/pullquote/index.js.map +1 -1
- package/build/pullquote/init.js +1 -2
- package/build/pullquote/init.js.map +1 -1
- package/build/pullquote/shared.js +1 -2
- package/build/pullquote/shared.js.map +1 -1
- package/build/pullquote/transforms.js +1 -2
- package/build/pullquote/transforms.js.map +1 -1
- package/build/pullquote/transforms.native.js +1 -2
- package/build/pullquote/transforms.native.js.map +1 -1
- package/build/query/deprecated.js +1 -2
- package/build/query/deprecated.js.map +1 -1
- package/build/query/edit/index.js +1 -2
- package/build/query/edit/index.js.map +1 -1
- package/build/query/edit/inspector-controls/author-control.js +1 -2
- package/build/query/edit/inspector-controls/author-control.js.map +1 -1
- package/build/query/edit/inspector-controls/create-new-post-link.js +1 -2
- package/build/query/edit/inspector-controls/create-new-post-link.js.map +1 -1
- package/build/query/edit/inspector-controls/order-control.js +1 -2
- package/build/query/edit/inspector-controls/order-control.js.map +1 -1
- package/build/query/edit/inspector-controls/parent-control.js +1 -2
- package/build/query/edit/inspector-controls/parent-control.js.map +1 -1
- package/build/query/icons.js +4 -8
- package/build/query/icons.js.map +1 -1
- package/build/query/index.js +5 -7
- package/build/query/index.js.map +1 -1
- package/build/query/init.js +1 -2
- package/build/query/init.js.map +1 -1
- package/build/query/variations.js +1 -2
- package/build/query/variations.js.map +1 -1
- package/build/query/view.js +7 -42
- package/build/query/view.js.map +1 -1
- package/build/query-no-results/index.js +5 -4
- package/build/query-no-results/index.js.map +1 -1
- package/build/query-no-results/init.js +1 -2
- package/build/query-no-results/init.js.map +1 -1
- package/build/query-pagination/deprecated.js +1 -2
- package/build/query-pagination/deprecated.js.map +1 -1
- package/build/query-pagination/edit.js +1 -3
- package/build/query-pagination/edit.js.map +1 -1
- package/build/query-pagination/index.js +7 -5
- package/build/query-pagination/index.js.map +1 -1
- package/build/query-pagination/init.js +1 -2
- package/build/query-pagination/init.js.map +1 -1
- package/build/query-pagination-next/index.js +5 -4
- package/build/query-pagination-next/index.js.map +1 -1
- package/build/query-pagination-next/init.js +1 -2
- package/build/query-pagination-next/init.js.map +1 -1
- package/build/query-pagination-numbers/index.js +5 -4
- package/build/query-pagination-numbers/index.js.map +1 -1
- package/build/query-pagination-numbers/init.js +1 -2
- package/build/query-pagination-numbers/init.js.map +1 -1
- package/build/query-pagination-previous/index.js +5 -4
- package/build/query-pagination-previous/index.js.map +1 -1
- package/build/query-pagination-previous/init.js +1 -2
- package/build/query-pagination-previous/init.js.map +1 -1
- package/build/query-title/deprecated.js +1 -2
- package/build/query-title/deprecated.js.map +1 -1
- package/build/query-title/index.js +5 -4
- package/build/query-title/index.js.map +1 -1
- package/build/query-title/init.js +1 -2
- package/build/query-title/init.js.map +1 -1
- package/build/query-title/variations.js +1 -2
- package/build/query-title/variations.js.map +1 -1
- package/build/quote/deprecated.js +1 -2
- package/build/quote/deprecated.js.map +1 -1
- package/build/quote/index.js +5 -4
- package/build/quote/index.js.map +1 -1
- package/build/quote/init.js +1 -2
- package/build/quote/init.js.map +1 -1
- package/build/quote/transforms.js +1 -2
- package/build/quote/transforms.js.map +1 -1
- package/build/quote/transforms.native.js +1 -2
- package/build/quote/transforms.native.js.map +1 -1
- package/build/read-more/index.js +5 -4
- package/build/read-more/index.js.map +1 -1
- package/build/read-more/init.js +1 -2
- package/build/read-more/init.js.map +1 -1
- package/build/rss/index.js +6 -5
- package/build/rss/index.js.map +1 -1
- package/build/rss/init.js +1 -2
- package/build/rss/init.js.map +1 -1
- package/build/search/icons.js +6 -12
- package/build/search/icons.js.map +1 -1
- package/build/search/index.js +2 -4
- package/build/search/index.js.map +1 -1
- package/build/search/init.js +1 -2
- package/build/search/init.js.map +1 -1
- package/build/search/utils.js +3 -6
- package/build/search/utils.js.map +1 -1
- package/build/search/variations.js +1 -2
- package/build/search/variations.js.map +1 -1
- package/build/search/view.js +2 -0
- package/build/search/view.js.map +1 -1
- package/build/separator/deprecated.js +1 -2
- package/build/separator/deprecated.js.map +1 -1
- package/build/separator/index.js +5 -4
- package/build/separator/index.js.map +1 -1
- package/build/separator/init.js +1 -2
- package/build/separator/init.js.map +1 -1
- package/build/separator/separator-settings.native.js +1 -2
- package/build/separator/separator-settings.native.js.map +1 -1
- package/build/separator/transforms.js +1 -2
- package/build/separator/transforms.js.map +1 -1
- package/build/separator/transforms.native.js +1 -2
- package/build/separator/transforms.native.js.map +1 -1
- package/build/shortcode/edit.native.js +1 -2
- package/build/shortcode/edit.native.js.map +1 -1
- package/build/shortcode/index.js +2 -4
- package/build/shortcode/index.js.map +1 -1
- package/build/shortcode/init.js +1 -2
- package/build/shortcode/init.js.map +1 -1
- package/build/shortcode/transforms.js +1 -2
- package/build/shortcode/transforms.js.map +1 -1
- package/build/shortcode/transforms.native.js +1 -2
- package/build/shortcode/transforms.native.js.map +1 -1
- package/build/site-logo/edit.js +0 -1
- package/build/site-logo/edit.js.map +1 -1
- package/build/site-logo/index.js +5 -4
- package/build/site-logo/index.js.map +1 -1
- package/build/site-logo/init.js +1 -2
- package/build/site-logo/init.js.map +1 -1
- package/build/site-logo/transforms.js +1 -2
- package/build/site-logo/transforms.js.map +1 -1
- package/build/site-tagline/deprecated.js +1 -2
- package/build/site-tagline/deprecated.js.map +1 -1
- package/build/site-tagline/icon.js +1 -2
- package/build/site-tagline/icon.js.map +1 -1
- package/build/site-tagline/index.js +5 -4
- package/build/site-tagline/index.js.map +1 -1
- package/build/site-tagline/init.js +1 -2
- package/build/site-tagline/init.js.map +1 -1
- package/build/site-title/deprecated.js +1 -2
- package/build/site-title/deprecated.js.map +1 -1
- package/build/site-title/index.js +5 -4
- package/build/site-title/index.js.map +1 -1
- package/build/site-title/init.js +1 -2
- package/build/site-title/init.js.map +1 -1
- package/build/site-title/transforms.js +1 -2
- package/build/site-title/transforms.js.map +1 -1
- package/build/social-link/edit.js +1 -2
- package/build/social-link/edit.js.map +1 -1
- package/build/social-link/edit.native.js +1 -2
- package/build/social-link/edit.native.js.map +1 -1
- package/build/social-link/icons/patreon.js +3 -10
- package/build/social-link/icons/patreon.js.map +1 -1
- package/build/social-link/index.js +6 -5
- package/build/social-link/index.js.map +1 -1
- package/build/social-link/init.js +1 -2
- package/build/social-link/init.js.map +1 -1
- package/build/social-link/variations.js +1 -2
- package/build/social-link/variations.js.map +1 -1
- package/build/social-links/deprecated.js +1 -2
- package/build/social-links/deprecated.js.map +1 -1
- package/build/social-links/edit.js +1 -4
- package/build/social-links/edit.js.map +1 -1
- package/build/social-links/edit.native.js +1 -6
- package/build/social-links/edit.native.js.map +1 -1
- package/build/social-links/index.js +6 -4
- package/build/social-links/index.js.map +1 -1
- package/build/social-links/init.js +1 -2
- package/build/social-links/init.js.map +1 -1
- package/build/spacer/constants.js +1 -2
- package/build/spacer/constants.js.map +1 -1
- package/build/spacer/controls.native.js +2 -4
- package/build/spacer/controls.native.js.map +1 -1
- package/build/spacer/deprecated.js +1 -2
- package/build/spacer/deprecated.js.map +1 -1
- package/build/spacer/edit.js +1 -2
- package/build/spacer/edit.js.map +1 -1
- package/build/spacer/edit.native.js +3 -4
- package/build/spacer/edit.native.js.map +1 -1
- package/build/spacer/index.js +5 -4
- package/build/spacer/index.js.map +1 -1
- package/build/spacer/init.js +1 -2
- package/build/spacer/init.js.map +1 -1
- package/build/table/deprecated.js +1 -2
- package/build/table/deprecated.js.map +1 -1
- package/build/table/edit.js +1 -2
- package/build/table/edit.js.map +1 -1
- package/build/table/index.js +6 -5
- package/build/table/index.js.map +1 -1
- package/build/table/init.js +1 -2
- package/build/table/init.js.map +1 -1
- package/build/table/transforms.js +1 -2
- package/build/table/transforms.js.map +1 -1
- package/build/table/transforms.native.js +1 -2
- package/build/table/transforms.native.js.map +1 -1
- package/build/table-of-contents/index.js +5 -4
- package/build/table-of-contents/index.js.map +1 -1
- package/build/table-of-contents/init.js +1 -2
- package/build/table-of-contents/init.js.map +1 -1
- package/build/tag-cloud/edit.js +1 -2
- package/build/tag-cloud/edit.js.map +1 -1
- package/build/tag-cloud/index.js +5 -4
- package/build/tag-cloud/index.js.map +1 -1
- package/build/tag-cloud/init.js +1 -2
- package/build/tag-cloud/init.js.map +1 -1
- package/build/tag-cloud/transforms.js +1 -2
- package/build/tag-cloud/transforms.js.map +1 -1
- package/build/template-part/edit/index.js +6 -10
- package/build/template-part/edit/index.js.map +1 -1
- package/build/template-part/index.js +9 -8
- package/build/template-part/index.js.map +1 -1
- package/build/template-part/init.js +1 -2
- package/build/template-part/init.js.map +1 -1
- package/build/term-description/index.js +5 -4
- package/build/term-description/index.js.map +1 -1
- package/build/term-description/init.js +1 -2
- package/build/term-description/init.js.map +1 -1
- package/build/text-columns/index.js +6 -5
- package/build/text-columns/index.js.map +1 -1
- package/build/text-columns/init.js +1 -2
- package/build/text-columns/init.js.map +1 -1
- package/build/text-columns/transforms.js +1 -2
- package/build/text-columns/transforms.js.map +1 -1
- package/build/text-columns/transforms.native.js +1 -2
- package/build/text-columns/transforms.native.js.map +1 -1
- package/build/utils/constants.js +1 -2
- package/build/utils/constants.js.map +1 -1
- package/build/utils/hooks.js +1 -2
- package/build/utils/hooks.js.map +1 -1
- package/build/utils/transformation-categories.native.js +1 -2
- package/build/utils/transformation-categories.native.js.map +1 -1
- package/build/verse/deprecated.js +1 -2
- package/build/verse/deprecated.js.map +1 -1
- package/build/verse/index.js +5 -5
- package/build/verse/index.js.map +1 -1
- package/build/verse/init.js +1 -2
- package/build/verse/init.js.map +1 -1
- package/build/verse/transforms.js +1 -2
- package/build/verse/transforms.js.map +1 -1
- package/build/verse/transforms.native.js +1 -2
- package/build/verse/transforms.native.js.map +1 -1
- package/build/video/deprecated.js +4 -2
- package/build/video/deprecated.js.map +1 -1
- package/build/video/edit-common-settings.js +1 -2
- package/build/video/edit-common-settings.js.map +1 -1
- package/build/video/edit.js +1 -2
- package/build/video/edit.js.map +1 -1
- package/build/video/edit.native.js +1 -2
- package/build/video/edit.native.js.map +1 -1
- package/build/video/icon-retry.native.js +1 -2
- package/build/video/icon-retry.native.js.map +1 -1
- package/build/video/index.js +5 -4
- package/build/video/index.js.map +1 -1
- package/build/video/init.js +1 -2
- package/build/video/init.js.map +1 -1
- package/build/video/transforms.js +1 -2
- package/build/video/transforms.js.map +1 -1
- package/build/video/transforms.native.js +1 -2
- package/build/video/transforms.native.js.map +1 -1
- package/build-module/archives/index.js +3 -0
- package/build-module/archives/index.js.map +1 -1
- package/build-module/audio/index.js +3 -0
- package/build-module/audio/index.js.map +1 -1
- package/build-module/avatar/index.js +3 -0
- package/build-module/avatar/index.js.map +1 -1
- package/build-module/block/deprecated.js +59 -0
- package/build-module/block/deprecated.js.map +1 -0
- package/build-module/block/edit.js +92 -101
- package/build-module/block/edit.js.map +1 -1
- package/build-module/block/index.js +24 -4
- package/build-module/block/index.js.map +1 -1
- package/build-module/button/edit.native.js +0 -1
- package/build-module/button/edit.native.js.map +1 -1
- package/build-module/button/index.js +7 -2
- package/build-module/button/index.js.map +1 -1
- package/build-module/buttons/edit.js +4 -11
- package/build-module/buttons/edit.js.map +1 -1
- package/build-module/buttons/edit.native.js +2 -5
- package/build-module/buttons/edit.native.js.map +1 -1
- package/build-module/buttons/index.js +4 -0
- package/build-module/buttons/index.js.map +1 -1
- package/build-module/calendar/index.js +3 -0
- package/build-module/calendar/index.js.map +1 -1
- package/build-module/categories/index.js +3 -0
- package/build-module/categories/index.js.map +1 -1
- package/build-module/code/index.js +3 -1
- package/build-module/code/index.js.map +1 -1
- package/build-module/column/index.js +5 -1
- package/build-module/column/index.js.map +1 -1
- package/build-module/columns/edit.js +53 -76
- package/build-module/columns/edit.js.map +1 -1
- package/build-module/columns/edit.native.js +0 -12
- package/build-module/columns/edit.native.js.map +1 -1
- package/build-module/columns/index.js +6 -1
- package/build-module/columns/index.js.map +1 -1
- package/build-module/comment-author-avatar/index.js +3 -0
- package/build-module/comment-author-avatar/index.js.map +1 -1
- package/build-module/comment-author-name/index.js +3 -0
- package/build-module/comment-author-name/index.js.map +1 -1
- package/build-module/comment-date/index.js +3 -0
- package/build-module/comment-date/index.js.map +1 -1
- package/build-module/comment-edit-link/index.js +3 -0
- package/build-module/comment-edit-link/index.js.map +1 -1
- package/build-module/comment-template/index.js +3 -0
- package/build-module/comment-template/index.js.map +1 -1
- package/build-module/comments-pagination/edit.js +1 -3
- package/build-module/comments-pagination/edit.js.map +1 -1
- package/build-module/comments-pagination/index.js +4 -0
- package/build-module/comments-pagination/index.js.map +1 -1
- package/build-module/comments-pagination-next/index.js +3 -0
- package/build-module/comments-pagination-next/index.js.map +1 -1
- package/build-module/comments-pagination-numbers/index.js +3 -0
- package/build-module/comments-pagination-numbers/index.js.map +1 -1
- package/build-module/comments-pagination-previous/index.js +3 -0
- package/build-module/comments-pagination-previous/index.js.map +1 -1
- package/build-module/comments-title/deprecated.js +3 -0
- package/build-module/comments-title/deprecated.js.map +1 -1
- package/build-module/comments-title/index.js +3 -0
- package/build-module/comments-title/index.js.map +1 -1
- package/build-module/cover/edit/inspector-controls.js +3 -3
- package/build-module/cover/edit/inspector-controls.js.map +1 -1
- package/build-module/cover/index.js +3 -0
- package/build-module/cover/index.js.map +1 -1
- package/build-module/details/index.js +3 -0
- package/build-module/details/index.js.map +1 -1
- package/build-module/embed/deprecated.js +3 -0
- package/build-module/embed/deprecated.js.map +1 -1
- package/build-module/embed/embed-placeholder.js +1 -1
- package/build-module/embed/embed-placeholder.js.map +1 -1
- package/build-module/embed/index.js +3 -0
- package/build-module/embed/index.js.map +1 -1
- package/build-module/embed/transforms.js +3 -0
- package/build-module/embed/transforms.js.map +1 -1
- package/build-module/embed/util.js +3 -0
- package/build-module/embed/util.js.map +1 -1
- package/build-module/file/view.js +2 -0
- package/build-module/file/view.js.map +1 -1
- package/build-module/footnotes/format.js +4 -0
- package/build-module/footnotes/format.js.map +1 -1
- package/build-module/footnotes/index.js +3 -0
- package/build-module/footnotes/index.js.map +1 -1
- package/build-module/form/edit.js +0 -2
- package/build-module/form/edit.js.map +1 -1
- package/build-module/form/index.js +1 -0
- package/build-module/form/index.js.map +1 -1
- package/build-module/form/view.js +2 -0
- package/build-module/form/view.js.map +1 -1
- package/build-module/form-input/deprecated.js +0 -1
- package/build-module/form-input/deprecated.js.map +1 -1
- package/build-module/form-submit-button/edit.js +0 -1
- package/build-module/form-submit-button/edit.js.map +1 -1
- package/build-module/form-submit-button/index.js +1 -0
- package/build-module/form-submit-button/index.js.map +1 -1
- package/build-module/gallery/edit.js +19 -25
- package/build-module/gallery/edit.js.map +1 -1
- package/build-module/gallery/gallery.native.js +0 -1
- package/build-module/gallery/gallery.native.js.map +1 -1
- package/build-module/gallery/index.js +4 -0
- package/build-module/gallery/index.js.map +1 -1
- package/build-module/gallery/v1/gallery-image.js +0 -1
- package/build-module/gallery/v1/gallery-image.js.map +1 -1
- package/build-module/group/index.js +3 -0
- package/build-module/group/index.js.map +1 -1
- package/build-module/heading/index.js +4 -1
- package/build-module/heading/index.js.map +1 -1
- package/build-module/home-link/index.js +3 -0
- package/build-module/home-link/index.js.map +1 -1
- package/build-module/html/index.js +4 -1
- package/build-module/html/index.js.map +1 -1
- package/build-module/image/edit.js +21 -20
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/image.js +42 -44
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/index.js +4 -0
- package/build-module/image/index.js.map +1 -1
- package/build-module/image/save.js +3 -1
- package/build-module/image/save.js.map +1 -1
- package/build-module/image/view.js +266 -368
- package/build-module/image/view.js.map +1 -1
- package/build-module/latest-comments/index.js +3 -0
- package/build-module/latest-comments/index.js.map +1 -1
- package/build-module/latest-posts/deprecated.js +3 -0
- package/build-module/latest-posts/deprecated.js.map +1 -1
- package/build-module/latest-posts/index.js +3 -0
- package/build-module/latest-posts/index.js.map +1 -1
- package/build-module/list/edit.js +0 -1
- package/build-module/list/edit.js.map +1 -1
- package/build-module/list/index.js +5 -1
- package/build-module/list/index.js.map +1 -1
- package/build-module/list-item/edit.js +0 -1
- package/build-module/list-item/edit.js.map +1 -1
- package/build-module/list-item/edit.native.js +0 -1
- package/build-module/list-item/edit.native.js.map +1 -1
- package/build-module/list-item/index.js +4 -0
- package/build-module/list-item/index.js.map +1 -1
- package/build-module/loginout/index.js +3 -0
- package/build-module/loginout/index.js.map +1 -1
- package/build-module/media-text/edit.js +12 -10
- package/build-module/media-text/edit.js.map +1 -1
- package/build-module/media-text/edit.native.js +1 -1
- package/build-module/media-text/edit.native.js.map +1 -1
- package/build-module/media-text/index.js +3 -0
- package/build-module/media-text/index.js.map +1 -1
- package/build-module/missing/index.js +4 -1
- package/build-module/missing/index.js.map +1 -1
- package/build-module/more/index.js +4 -1
- package/build-module/more/index.js.map +1 -1
- package/build-module/navigation/constants.js +0 -1
- package/build-module/navigation/constants.js.map +1 -1
- package/build-module/navigation/edit/index.js +0 -1
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/inner-blocks.js +2 -6
- package/build-module/navigation/edit/inner-blocks.js.map +1 -1
- package/build-module/navigation/edit/unsaved-inner-blocks.js +3 -7
- package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
- package/build-module/navigation/index.js +1 -0
- package/build-module/navigation/index.js.map +1 -1
- package/build-module/navigation/view.js +2 -0
- package/build-module/navigation/view.js.map +1 -1
- package/build-module/navigation-link/edit.js +11 -6
- package/build-module/navigation-link/edit.js.map +1 -1
- package/build-module/navigation-link/index.js +5 -1
- package/build-module/navigation-link/index.js.map +1 -1
- package/build-module/navigation-link/link-ui.js +116 -51
- package/build-module/navigation-link/link-ui.js.map +1 -1
- package/build-module/navigation-submenu/index.js +19 -4
- package/build-module/navigation-submenu/index.js.map +1 -1
- package/build-module/nextpage/index.js +4 -1
- package/build-module/nextpage/index.js.map +1 -1
- package/build-module/page-list/edit.js +0 -1
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/page-list/index.js +4 -0
- package/build-module/page-list/index.js.map +1 -1
- package/build-module/page-list-item/index.js +4 -1
- package/build-module/page-list-item/index.js.map +1 -1
- package/build-module/paragraph/edit.js +3 -3
- package/build-module/paragraph/edit.js.map +1 -1
- package/build-module/paragraph/index.js +4 -1
- package/build-module/paragraph/index.js.map +1 -1
- package/build-module/paragraph/transforms.js +4 -1
- package/build-module/paragraph/transforms.js.map +1 -1
- package/build-module/pattern/index.js +4 -1
- package/build-module/pattern/index.js.map +1 -1
- package/build-module/post-author/index.js +3 -0
- package/build-module/post-author/index.js.map +1 -1
- package/build-module/post-author-biography/index.js +3 -0
- package/build-module/post-author-biography/index.js.map +1 -1
- package/build-module/post-author-name/index.js +3 -0
- package/build-module/post-author-name/index.js.map +1 -1
- package/build-module/post-comment/edit.js +1 -3
- package/build-module/post-comment/edit.js.map +1 -1
- package/build-module/post-comment/index.js +5 -1
- package/build-module/post-comment/index.js.map +1 -1
- package/build-module/post-comments-count/index.js +3 -0
- package/build-module/post-comments-count/index.js.map +1 -1
- package/build-module/post-comments-link/index.js +3 -0
- package/build-module/post-comments-link/index.js.map +1 -1
- package/build-module/post-date/index.js +3 -0
- package/build-module/post-date/index.js.map +1 -1
- package/build-module/post-excerpt/index.js +3 -0
- package/build-module/post-excerpt/index.js.map +1 -1
- package/build-module/post-featured-image/index.js +3 -0
- package/build-module/post-featured-image/index.js.map +1 -1
- package/build-module/post-navigation-link/edit.js +5 -5
- package/build-module/post-navigation-link/edit.js.map +1 -1
- package/build-module/post-navigation-link/index.js +3 -3
- package/build-module/post-navigation-link/index.js.map +1 -1
- package/build-module/post-template/edit.js +5 -6
- package/build-module/post-template/edit.js.map +1 -1
- package/build-module/post-template/index.js +3 -0
- package/build-module/post-template/index.js.map +1 -1
- package/build-module/post-terms/index.js +3 -0
- package/build-module/post-terms/index.js.map +1 -1
- package/build-module/post-time-to-read/index.js +3 -0
- package/build-module/post-time-to-read/index.js.map +1 -1
- package/build-module/post-title/index.js +3 -0
- package/build-module/post-title/index.js.map +1 -1
- package/build-module/preformatted/index.js +3 -1
- package/build-module/preformatted/index.js.map +1 -1
- package/build-module/pullquote/index.js +3 -0
- package/build-module/pullquote/index.js.map +1 -1
- package/build-module/query/index.js +3 -3
- package/build-module/query/index.js.map +1 -1
- package/build-module/query/view.js +5 -40
- package/build-module/query/view.js.map +1 -1
- package/build-module/query-no-results/index.js +3 -0
- package/build-module/query-no-results/index.js.map +1 -1
- package/build-module/query-pagination/edit.js +1 -3
- package/build-module/query-pagination/edit.js.map +1 -1
- package/build-module/query-pagination/index.js +5 -1
- package/build-module/query-pagination/index.js.map +1 -1
- package/build-module/query-pagination-next/index.js +3 -0
- package/build-module/query-pagination-next/index.js.map +1 -1
- package/build-module/query-pagination-numbers/index.js +3 -0
- package/build-module/query-pagination-numbers/index.js.map +1 -1
- package/build-module/query-pagination-previous/index.js +3 -0
- package/build-module/query-pagination-previous/index.js.map +1 -1
- package/build-module/query-title/index.js +3 -0
- package/build-module/query-title/index.js.map +1 -1
- package/build-module/quote/index.js +3 -0
- package/build-module/quote/index.js.map +1 -1
- package/build-module/read-more/index.js +3 -0
- package/build-module/read-more/index.js.map +1 -1
- package/build-module/rss/index.js +4 -1
- package/build-module/rss/index.js.map +1 -1
- package/build-module/search/view.js +2 -0
- package/build-module/search/view.js.map +1 -1
- package/build-module/separator/index.js +3 -0
- package/build-module/separator/index.js.map +1 -1
- package/build-module/site-logo/edit.js +0 -1
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/site-logo/index.js +3 -0
- package/build-module/site-logo/index.js.map +1 -1
- package/build-module/site-tagline/index.js +3 -0
- package/build-module/site-tagline/index.js.map +1 -1
- package/build-module/site-title/index.js +3 -0
- package/build-module/site-title/index.js.map +1 -1
- package/build-module/social-link/icons/patreon.js +4 -11
- package/build-module/social-link/icons/patreon.js.map +1 -1
- package/build-module/social-link/index.js +4 -1
- package/build-module/social-link/index.js.map +1 -1
- package/build-module/social-links/edit.js +0 -2
- package/build-module/social-links/edit.js.map +1 -1
- package/build-module/social-links/edit.native.js +0 -3
- package/build-module/social-links/edit.native.js.map +1 -1
- package/build-module/social-links/index.js +4 -0
- package/build-module/social-links/index.js.map +1 -1
- package/build-module/spacer/index.js +3 -0
- package/build-module/spacer/index.js.map +1 -1
- package/build-module/table/index.js +4 -1
- package/build-module/table/index.js.map +1 -1
- package/build-module/table-of-contents/index.js +3 -0
- package/build-module/table-of-contents/index.js.map +1 -1
- package/build-module/tag-cloud/index.js +3 -0
- package/build-module/tag-cloud/index.js.map +1 -1
- package/build-module/template-part/edit/index.js +6 -10
- package/build-module/template-part/edit/index.js.map +1 -1
- package/build-module/template-part/index.js +7 -4
- package/build-module/template-part/index.js.map +1 -1
- package/build-module/term-description/index.js +3 -0
- package/build-module/term-description/index.js.map +1 -1
- package/build-module/text-columns/index.js +4 -1
- package/build-module/text-columns/index.js.map +1 -1
- package/build-module/verse/index.js +3 -1
- package/build-module/verse/index.js.map +1 -1
- package/build-module/video/deprecated.js +3 -0
- package/build-module/video/deprecated.js.map +1 -1
- package/build-module/video/index.js +3 -0
- package/build-module/video/index.js.map +1 -1
- package/build-style/editor-rtl.css +10 -1
- package/build-style/editor.css +10 -1
- package/build-style/embed/editor-rtl.css +5 -1
- package/build-style/embed/editor.css +5 -1
- package/build-style/image/style-rtl.css +6 -6
- package/build-style/image/style.css +6 -6
- package/build-style/navigation-link/style-rtl.css +22 -0
- package/build-style/navigation-link/style.css +22 -0
- package/build-style/{query/style.css → post-content/editor-rtl.css} +3 -41
- package/build-style/{query/style-rtl.css → post-content/editor.css} +3 -41
- package/build-style/separator/style-rtl.css +2 -2
- package/build-style/separator/style.css +2 -2
- package/build-style/social-links/style-rtl.css +2 -2
- package/build-style/social-links/style.css +2 -2
- package/build-style/style-rtl.css +32 -10
- package/build-style/style.css +32 -10
- package/package.json +34 -34
- package/src/archives/block.json +3 -0
- package/src/audio/block.json +3 -0
- package/src/avatar/block.json +3 -0
- package/src/block/block.json +6 -3
- package/src/block/deprecated.js +57 -0
- package/src/block/edit.js +150 -148
- package/src/block/index.js +21 -0
- package/src/block/index.php +15 -2
- package/src/button/block.json +7 -2
- package/src/buttons/block.json +4 -0
- package/src/buttons/edit.js +4 -13
- package/src/buttons/edit.native.js +2 -6
- package/src/calendar/block.json +3 -0
- package/src/categories/block.json +3 -0
- package/src/code/block.json +3 -0
- package/src/column/block.json +5 -1
- package/src/columns/block.json +6 -1
- package/src/columns/edit.js +91 -123
- package/src/columns/edit.native.js +0 -12
- package/src/comment-author-avatar/block.json +3 -0
- package/src/comment-author-name/block.json +3 -0
- package/src/comment-date/block.json +3 -0
- package/src/comment-edit-link/block.json +3 -0
- package/src/comment-template/block.json +3 -0
- package/src/comments-pagination/block.json +8 -0
- package/src/comments-pagination/edit.js +0 -6
- package/src/comments-pagination-next/block.json +3 -0
- package/src/comments-pagination-numbers/block.json +3 -0
- package/src/comments-pagination-previous/block.json +3 -0
- package/src/comments-title/block.json +3 -0
- package/src/cover/block.json +3 -0
- package/src/cover/edit/inspector-controls.js +3 -2
- package/src/cover/test/edit.js +2 -2
- package/src/details/block.json +3 -0
- package/src/editor.scss +1 -0
- package/src/embed/block.json +3 -0
- package/src/embed/editor.scss +8 -2
- package/src/embed/embed-placeholder.js +1 -1
- package/src/file/index.php +11 -7
- package/src/file/view.js +9 -5
- package/src/footnotes/block.json +3 -0
- package/src/footnotes/format.js +10 -0
- package/src/form/block.json +9 -0
- package/src/form/edit.js +0 -11
- package/src/form/index.php +2 -2
- package/src/form/view.js +2 -0
- package/src/form-submit-button/block.json +1 -0
- package/src/form-submit-button/edit.js +0 -1
- package/src/gallery/block.json +4 -0
- package/src/gallery/edit.js +26 -35
- package/src/gallery/gallery.native.js +0 -1
- package/src/gallery/index.php +51 -21
- package/src/gallery/test/index.native.js +1 -1
- package/src/group/block.json +3 -0
- package/src/heading/block.json +4 -1
- package/src/heading/test/__snapshots__/index.native.js.snap +6 -0
- package/src/heading/test/index.native.js +24 -9
- package/src/home-link/block.json +3 -0
- package/src/home-link/index.php +4 -1
- package/src/html/block.json +4 -1
- package/src/image/block.json +4 -0
- package/src/image/edit.js +16 -14
- package/src/image/image.js +58 -74
- package/src/image/index.php +123 -166
- package/src/image/save.js +3 -0
- package/src/image/style.scss +2 -2
- package/src/image/view.js +392 -499
- package/src/latest-comments/block.json +3 -0
- package/src/latest-posts/block.json +3 -0
- package/src/list/block.json +5 -1
- package/src/list/edit.js +0 -1
- package/src/list-item/block.json +4 -0
- package/src/list-item/edit.js +0 -1
- package/src/list-item/edit.native.js +0 -1
- package/src/loginout/block.json +3 -0
- package/src/media-text/block.json +3 -0
- package/src/media-text/edit.js +12 -12
- package/src/media-text/edit.native.js +1 -1
- package/src/missing/block.json +4 -1
- package/src/more/block.json +4 -1
- package/src/navigation/block.json +13 -0
- package/src/navigation/constants.js +0 -14
- package/src/navigation/edit/inner-blocks.js +2 -18
- package/src/navigation/edit/unsaved-inner-blocks.js +3 -19
- package/src/navigation/index.php +77 -40
- package/src/navigation/view.js +184 -171
- package/src/navigation-link/block.json +9 -1
- package/src/navigation-link/edit.js +10 -11
- package/src/navigation-link/index.php +31 -110
- package/src/navigation-link/link-ui.js +216 -111
- package/src/navigation-link/style.scss +26 -0
- package/src/navigation-submenu/block.json +4 -1
- package/src/navigation-submenu/index.js +11 -4
- package/src/nextpage/block.json +4 -1
- package/src/page-list/block.json +4 -0
- package/src/page-list/edit.js +0 -1
- package/src/page-list-item/block.json +4 -1
- package/src/paragraph/block.json +4 -1
- package/src/paragraph/edit.js +3 -3
- package/src/pattern/block.json +4 -1
- package/src/post-author/block.json +3 -0
- package/src/post-author-biography/block.json +3 -0
- package/src/post-author-name/block.json +3 -0
- package/src/post-comment/block.json +12 -1
- package/src/post-comment/edit.js +0 -9
- package/src/post-comments-count/block.json +3 -0
- package/src/post-comments-link/block.json +3 -0
- package/src/post-content/editor.scss +4 -0
- package/src/post-date/block.json +3 -0
- package/src/post-excerpt/block.json +3 -0
- package/src/post-featured-image/block.json +3 -0
- package/src/post-navigation-link/block.json +3 -3
- package/src/post-navigation-link/edit.js +1 -7
- package/src/post-navigation-link/index.php +2 -5
- package/src/post-template/block.json +3 -0
- package/src/post-template/edit.js +5 -5
- package/src/post-terms/block.json +3 -0
- package/src/post-terms/index.php +2 -2
- package/src/post-time-to-read/block.json +3 -0
- package/src/post-title/block.json +3 -0
- package/src/preformatted/block.json +3 -0
- package/src/pullquote/block.json +3 -0
- package/src/query/block.json +3 -3
- package/src/query/index.php +41 -65
- package/src/query/view.js +43 -71
- package/src/query-no-results/block.json +3 -0
- package/src/query-pagination/block.json +9 -1
- package/src/query-pagination/edit.js +0 -6
- package/src/query-pagination-next/block.json +3 -0
- package/src/query-pagination-numbers/block.json +3 -0
- package/src/query-pagination-previous/block.json +3 -0
- package/src/query-title/block.json +3 -0
- package/src/quote/block.json +3 -0
- package/src/read-more/block.json +3 -0
- package/src/rss/block.json +4 -1
- package/src/search/index.php +11 -7
- package/src/search/view.js +64 -60
- package/src/separator/block.json +3 -0
- package/src/separator/style.scss +3 -3
- package/src/site-logo/block.json +3 -0
- package/src/site-tagline/block.json +3 -0
- package/src/site-title/block.json +3 -0
- package/src/social-link/block.json +4 -1
- package/src/social-link/icons/patreon.js +3 -4
- package/src/social-link/index.php +1 -1
- package/src/social-link/socials-with-bg.scss +1 -1
- package/src/social-link/socials-without-bg.scss +1 -1
- package/src/social-links/block.json +4 -0
- package/src/social-links/edit.js +0 -3
- package/src/social-links/edit.native.js +0 -6
- package/src/spacer/block.json +3 -0
- package/src/table/block.json +4 -1
- package/src/table-of-contents/block.json +3 -0
- package/src/tag-cloud/block.json +3 -0
- package/src/template-part/block.json +4 -1
- package/src/template-part/edit/index.js +6 -9
- package/src/template-part/index.js +4 -4
- package/src/template-part/index.php +9 -9
- package/src/term-description/block.json +3 -0
- package/src/text-columns/block.json +4 -1
- package/src/verse/block.json +3 -0
- package/src/video/block.json +3 -0
- package/src/query/style.scss +0 -52
package/build/image/view.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_interactivity","require","focusableSelectors","scrollCallback","isTouching","lastTouchTime","handleScroll","ctx","Date","now","window","scrollTo","scrollLeftReset","scrollTopReset","state","actions","callbacks","store","windowWidth","innerWidth","windowHeight","innerHeight","roleAttribute","getContext","lightboxEnabled","ariaModal","dialogLabel","lightboxObjectFit","initialized","enlargedImgSrc","imageUploadedSrc","showLightbox","event","imageLoaded","lastFocusedElement","document","activeElement","scrollDelta","pointerType","setStyles","imageRef","pageYOffset","documentElement","scrollTop","pageXOffset","scrollLeft","bind","addEventListener","hideLightbox","hideAnimationEnabled","setTimeout","removeEventListener","lightboxTriggerRef","focus","preventScroll","handleKeydown","key","keyCode","shiftKey","firstFocusableElement","preventDefault","lastFocusableElement","handleLoad","ref","getElement","imageCurrentSrc","currentSrc","setButtonStyles","handleTouchStart","handleTouchMove","handleTouchEnd","initOriginImage","complete","initTriggerButton","initLightbox","focusableElements","querySelectorAll","length","naturalWidth","naturalHeight","offsetWidth","offsetHeight","figure","parentElement","figureWidth","clientWidth","figureHeight","clientHeight","caption","querySelector","captionComputedStyle","getComputedStyle","includes","position","parseFloat","marginTop","marginBottom","buttonOffsetTop","buttonOffsetRight","scaleAttr","naturalRatio","offsetRatio","referenceHeight","imageButtonTop","imageButtonRight","referenceWidth","setStylesOnResize","debounce","originalWidth","originalHeight","x","screenPosX","y","screenPosY","getBoundingClientRect","originalRatio","heightWithoutSpace","widthWithoutSpace","imgMaxWidth","targetWidth","imgMaxHeight","targetHeight","imgRatio","containerMaxWidth","containerMaxHeight","containerWidth","containerHeight","toFixed","reducedHeight","reducedWidth","horizontalPadding","verticalPadding","targetMaxWidth","Math","min","targetMaxHeight","targetContainerRatio","containerScale","lightboxImgWidth","lightboxImgHeight","styleTag","getElementById","createElement","id","head","appendChild","innerHTML","func","wait","timeout","later","clearTimeout"],"sources":["@wordpress/block-library/src/image/view.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { store, getContext, getElement } from '@wordpress/interactivity';\n\nconst focusableSelectors = [\n\t'a[href]',\n\t'area[href]',\n\t'input:not([disabled]):not([type=\"hidden\"]):not([aria-hidden])',\n\t'select:not([disabled]):not([aria-hidden])',\n\t'textarea:not([disabled]):not([aria-hidden])',\n\t'button:not([disabled]):not([aria-hidden])',\n\t'iframe',\n\t'object',\n\t'embed',\n\t'[contenteditable]',\n\t'[tabindex]:not([tabindex^=\"-\"])',\n];\n\n/**\n * Stores a context-bound scroll handler.\n *\n * This callback could be defined inline inside of the store\n * object but it's created externally to avoid confusion about\n * how its logic is called. This logic is not referenced directly\n * by the directives in the markup because the scroll event we\n * need to listen to is triggered on the window; so by defining it\n * outside of the store, we signal that the behavior here is different.\n * If we find a compelling reason to move it to the store, feel free.\n *\n * @type {Function}\n */\nlet scrollCallback;\n\n/**\n * Tracks whether user is touching screen; used to\n * differentiate behavior for touch and mouse input.\n *\n * @type {boolean}\n */\nlet isTouching = false;\n\n/**\n * Tracks the last time the screen was touched; used to\n * differentiate behavior for touch and mouse input.\n *\n * @type {number}\n */\nlet lastTouchTime = 0;\n\n/**\n * Lightbox page-scroll handler: prevents scrolling.\n *\n * This handler is added to prevent scrolling behaviors that\n * trigger content shift while the lightbox is open.\n *\n * It would be better to accomplish this through CSS alone, but\n * using overflow: hidden is currently the only way to do so, and\n * that causes the layout to shift and prevents the zoom animation\n * from working in some cases because we're unable to account for\n * the layout shift when doing the animation calculations. Instead,\n * here we use JavaScript to prevent and reset the scrolling\n * behavior. In the future, we may be able to use CSS or overflow: hidden\n * instead to not rely on JavaScript, but this seems to be the best approach\n * for now that provides the best visual experience.\n *\n * @param {Object} ctx Context object with the `core/image` namespace.\n */\nfunction handleScroll( ctx ) {\n\t// We can't override the scroll behavior on mobile devices\n\t// because doing so breaks the pinch to zoom functionality, and we\n\t// want to allow users to zoom in further on the high-res image.\n\tif ( ! isTouching && Date.now() - lastTouchTime > 450 ) {\n\t\t// We are unable to use event.preventDefault() to prevent scrolling\n\t\t// because the scroll event can't be canceled, so we reset the position instead.\n\t\twindow.scrollTo( ctx.scrollLeftReset, ctx.scrollTopReset );\n\t}\n}\n\nconst { state, actions, callbacks } = store( 'core/image', {\n\tstate: {\n\t\twindowWidth: window.innerWidth,\n\t\twindowHeight: window.innerHeight,\n\t\tget roleAttribute() {\n\t\t\tconst ctx = getContext();\n\t\t\treturn ctx.lightboxEnabled ? 'dialog' : null;\n\t\t},\n\t\tget ariaModal() {\n\t\t\tconst ctx = getContext();\n\t\t\treturn ctx.lightboxEnabled ? 'true' : null;\n\t\t},\n\t\tget dialogLabel() {\n\t\t\tconst ctx = getContext();\n\t\t\treturn ctx.lightboxEnabled ? ctx.dialogLabel : null;\n\t\t},\n\t\tget lightboxObjectFit() {\n\t\t\tconst ctx = getContext();\n\t\t\tif ( ctx.initialized ) {\n\t\t\t\treturn 'cover';\n\t\t\t}\n\t\t},\n\t\tget enlargedImgSrc() {\n\t\t\tconst ctx = getContext();\n\t\t\treturn ctx.initialized\n\t\t\t\t? ctx.imageUploadedSrc\n\t\t\t\t: 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=';\n\t\t},\n\t},\n\tactions: {\n\t\tshowLightbox( event ) {\n\t\t\tconst ctx = getContext();\n\t\t\t// We can't initialize the lightbox until the reference\n\t\t\t// image is loaded, otherwise the UX is broken.\n\t\t\tif ( ! ctx.imageLoaded ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tctx.initialized = true;\n\t\t\tctx.lastFocusedElement = window.document.activeElement;\n\t\t\tctx.scrollDelta = 0;\n\t\t\tctx.pointerType = event.pointerType;\n\n\t\t\tctx.lightboxEnabled = true;\n\t\t\tsetStyles( ctx, ctx.imageRef );\n\n\t\t\tctx.scrollTopReset =\n\t\t\t\twindow.pageYOffset || document.documentElement.scrollTop;\n\n\t\t\t// In most cases, this value will be 0, but this is included\n\t\t\t// in case a user has created a page with horizontal scrolling.\n\t\t\tctx.scrollLeftReset =\n\t\t\t\twindow.pageXOffset || document.documentElement.scrollLeft;\n\n\t\t\t// We define and bind the scroll callback here so\n\t\t\t// that we can pass the context and as an argument.\n\t\t\t// We may be able to change this in the future if we\n\t\t\t// define the scroll callback in the store instead, but\n\t\t\t// this approach seems to tbe clearest for now.\n\t\t\tscrollCallback = handleScroll.bind( null, ctx );\n\n\t\t\t// We need to add a scroll event listener to the window\n\t\t\t// here because we are unable to otherwise access it via\n\t\t\t// the Interactivity API directives. If we add a native way\n\t\t\t// to access the window, we can remove this.\n\t\t\twindow.addEventListener( 'scroll', scrollCallback, false );\n\t\t},\n\t\thideLightbox() {\n\t\t\tconst ctx = getContext();\n\t\t\tctx.hideAnimationEnabled = true;\n\t\t\tif ( ctx.lightboxEnabled ) {\n\t\t\t\t// We want to wait until the close animation is completed\n\t\t\t\t// before allowing a user to scroll again. The duration of this\n\t\t\t\t// animation is defined in the styles.scss and depends on if the\n\t\t\t\t// animation is 'zoom' or 'fade', but in any case we should wait\n\t\t\t\t// a few milliseconds longer than the duration, otherwise a user\n\t\t\t\t// may scroll too soon and cause the animation to look sloppy.\n\t\t\t\tsetTimeout( function () {\n\t\t\t\t\twindow.removeEventListener( 'scroll', scrollCallback );\n\t\t\t\t\t// If we don't delay before changing the focus,\n\t\t\t\t\t// the focus ring will appear on Firefox before\n\t\t\t\t\t// the image has finished animating, which looks broken.\n\t\t\t\t\tctx.lightboxTriggerRef.focus( {\n\t\t\t\t\t\tpreventScroll: true,\n\t\t\t\t\t} );\n\t\t\t\t}, 450 );\n\n\t\t\t\tctx.lightboxEnabled = false;\n\t\t\t}\n\t\t},\n\t\thandleKeydown( event ) {\n\t\t\tconst ctx = getContext();\n\t\t\tif ( ctx.lightboxEnabled ) {\n\t\t\t\tif ( event.key === 'Tab' || event.keyCode === 9 ) {\n\t\t\t\t\t// If shift + tab it change the direction\n\t\t\t\t\tif (\n\t\t\t\t\t\tevent.shiftKey &&\n\t\t\t\t\t\twindow.document.activeElement ===\n\t\t\t\t\t\t\tctx.firstFocusableElement\n\t\t\t\t\t) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\tctx.lastFocusableElement.focus();\n\t\t\t\t\t} else if (\n\t\t\t\t\t\t! event.shiftKey &&\n\t\t\t\t\t\twindow.document.activeElement ===\n\t\t\t\t\t\t\tctx.lastFocusableElement\n\t\t\t\t\t) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\tctx.firstFocusableElement.focus();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ( event.key === 'Escape' || event.keyCode === 27 ) {\n\t\t\t\t\tactions.hideLightbox( event );\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t// This is fired just by lazily loaded\n\t\t// images on the page, not all images.\n\t\thandleLoad() {\n\t\t\tconst ctx = getContext();\n\t\t\tconst { ref } = getElement();\n\t\t\tctx.imageLoaded = true;\n\t\t\tctx.imageCurrentSrc = ref.currentSrc;\n\t\t\tcallbacks.setButtonStyles();\n\t\t},\n\t\thandleTouchStart() {\n\t\t\tisTouching = true;\n\t\t},\n\t\thandleTouchMove( event ) {\n\t\t\tconst ctx = getContext();\n\t\t\t// On mobile devices, we want to prevent triggering the\n\t\t\t// scroll event because otherwise the page jumps around as\n\t\t\t// we reset the scroll position. This also means that closing\n\t\t\t// the lightbox requires that a user perform a simple tap. This\n\t\t\t// may be changed in the future if we find a better alternative\n\t\t\t// to override or reset the scroll position during swipe actions.\n\t\t\tif ( ctx.lightboxEnabled ) {\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t},\n\t\thandleTouchEnd() {\n\t\t\t// We need to wait a few milliseconds before resetting\n\t\t\t// to ensure that pinch to zoom works consistently\n\t\t\t// on mobile devices when the lightbox is open.\n\t\t\tlastTouchTime = Date.now();\n\t\t\tisTouching = false;\n\t\t},\n\t},\n\tcallbacks: {\n\t\tinitOriginImage() {\n\t\t\tconst ctx = getContext();\n\t\t\tconst { ref } = getElement();\n\t\t\tctx.imageRef = ref;\n\t\t\tif ( ref.complete ) {\n\t\t\t\tctx.imageLoaded = true;\n\t\t\t\tctx.imageCurrentSrc = ref.currentSrc;\n\t\t\t}\n\t\t},\n\t\tinitTriggerButton() {\n\t\t\tconst ctx = getContext();\n\t\t\tconst { ref } = getElement();\n\t\t\tctx.lightboxTriggerRef = ref;\n\t\t},\n\t\tinitLightbox() {\n\t\t\tconst ctx = getContext();\n\t\t\tconst { ref } = getElement();\n\t\t\tif ( ctx.lightboxEnabled ) {\n\t\t\t\tconst focusableElements =\n\t\t\t\t\tref.querySelectorAll( focusableSelectors );\n\t\t\t\tctx.firstFocusableElement = focusableElements[ 0 ];\n\t\t\t\tctx.lastFocusableElement =\n\t\t\t\t\tfocusableElements[ focusableElements.length - 1 ];\n\n\t\t\t\t// Move focus to the dialog when opening it.\n\t\t\t\tref.focus();\n\t\t\t}\n\t\t},\n\t\tsetButtonStyles() {\n\t\t\tconst { ref } = getElement();\n\t\t\tconst { naturalWidth, naturalHeight, offsetWidth, offsetHeight } =\n\t\t\t\tref;\n\n\t\t\t// If the image isn't loaded yet, we can't\n\t\t\t// calculate where the button should be.\n\t\t\tif ( naturalWidth === 0 || naturalHeight === 0 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst figure = ref.parentElement;\n\t\t\tconst figureWidth = ref.parentElement.clientWidth;\n\n\t\t\t// We need special handling for the height because\n\t\t\t// a caption will cause the figure to be taller than\n\t\t\t// the image, which means we need to account for that\n\t\t\t// when calculating the placement of the button in the\n\t\t\t// top right corner of the image.\n\t\t\tlet figureHeight = ref.parentElement.clientHeight;\n\t\t\tconst caption = figure.querySelector( 'figcaption' );\n\t\t\tif ( caption ) {\n\t\t\t\tconst captionComputedStyle = window.getComputedStyle( caption );\n\t\t\t\tif (\n\t\t\t\t\t! [ 'absolute', 'fixed' ].includes(\n\t\t\t\t\t\tcaptionComputedStyle.position\n\t\t\t\t\t)\n\t\t\t\t) {\n\t\t\t\t\tfigureHeight =\n\t\t\t\t\t\tfigureHeight -\n\t\t\t\t\t\tcaption.offsetHeight -\n\t\t\t\t\t\tparseFloat( captionComputedStyle.marginTop ) -\n\t\t\t\t\t\tparseFloat( captionComputedStyle.marginBottom );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst buttonOffsetTop = figureHeight - offsetHeight;\n\t\t\tconst buttonOffsetRight = figureWidth - offsetWidth;\n\n\t\t\tconst ctx = getContext();\n\n\t\t\t// In the case of an image with object-fit: contain, the\n\t\t\t// size of the <img> element can be larger than the image itself,\n\t\t\t// so we need to calculate where to place the button.\n\t\t\tif ( ctx.scaleAttr === 'contain' ) {\n\t\t\t\t// Natural ratio of the image.\n\t\t\t\tconst naturalRatio = naturalWidth / naturalHeight;\n\t\t\t\t// Offset ratio of the image.\n\t\t\t\tconst offsetRatio = offsetWidth / offsetHeight;\n\n\t\t\t\tif ( naturalRatio >= offsetRatio ) {\n\t\t\t\t\t// If it reaches the width first, keep\n\t\t\t\t\t// the width and compute the height.\n\t\t\t\t\tconst referenceHeight = offsetWidth / naturalRatio;\n\t\t\t\t\tctx.imageButtonTop =\n\t\t\t\t\t\t( offsetHeight - referenceHeight ) / 2 +\n\t\t\t\t\t\tbuttonOffsetTop +\n\t\t\t\t\t\t16;\n\t\t\t\t\tctx.imageButtonRight = buttonOffsetRight + 16;\n\t\t\t\t} else {\n\t\t\t\t\t// If it reaches the height first, keep\n\t\t\t\t\t// the height and compute the width.\n\t\t\t\t\tconst referenceWidth = offsetHeight * naturalRatio;\n\t\t\t\t\tctx.imageButtonTop = buttonOffsetTop + 16;\n\t\t\t\t\tctx.imageButtonRight =\n\t\t\t\t\t\t( offsetWidth - referenceWidth ) / 2 +\n\t\t\t\t\t\tbuttonOffsetRight +\n\t\t\t\t\t\t16;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tctx.imageButtonTop = buttonOffsetTop + 16;\n\t\t\t\tctx.imageButtonRight = buttonOffsetRight + 16;\n\t\t\t}\n\t\t},\n\t\tsetStylesOnResize() {\n\t\t\tconst ctx = getContext();\n\t\t\tconst { ref } = getElement();\n\t\t\tif (\n\t\t\t\tctx.lightboxEnabled &&\n\t\t\t\t( state.windowWidth || state.windowHeight )\n\t\t\t) {\n\t\t\t\tsetStyles( ctx, ref );\n\t\t\t}\n\t\t},\n\t},\n} );\n\nwindow.addEventListener(\n\t'resize',\n\tdebounce( () => {\n\t\tstate.windowWidth = window.innerWidth;\n\t\tstate.windowHeight = window.innerHeight;\n\t} )\n);\n\n/**\n * Computes styles for the lightbox and adds them to the document.\n *\n * @function\n * @param {Object} ctx - Context for the `core/image` namespace.\n * @param {Object} ref - The element reference.\n */\nfunction setStyles( ctx, ref ) {\n\t// The reference img element lies adjacent\n\t// to the event target button in the DOM.\n\tlet {\n\t\tnaturalWidth,\n\t\tnaturalHeight,\n\t\toffsetWidth: originalWidth,\n\t\toffsetHeight: originalHeight,\n\t} = ref;\n\tlet { x: screenPosX, y: screenPosY } = ref.getBoundingClientRect();\n\n\t// Natural ratio of the image clicked to open the lightbox.\n\tconst naturalRatio = naturalWidth / naturalHeight;\n\t// Original ratio of the image clicked to open the lightbox.\n\tlet originalRatio = originalWidth / originalHeight;\n\n\t// If it has object-fit: contain, recalculate the original sizes\n\t// and the screen position without the blank spaces.\n\tif ( ctx.scaleAttr === 'contain' ) {\n\t\tif ( naturalRatio > originalRatio ) {\n\t\t\tconst heightWithoutSpace = originalWidth / naturalRatio;\n\t\t\t// Recalculate screen position without the top space.\n\t\t\tscreenPosY += ( originalHeight - heightWithoutSpace ) / 2;\n\t\t\toriginalHeight = heightWithoutSpace;\n\t\t} else {\n\t\t\tconst widthWithoutSpace = originalHeight * naturalRatio;\n\t\t\t// Recalculate screen position without the left space.\n\t\t\tscreenPosX += ( originalWidth - widthWithoutSpace ) / 2;\n\t\t\toriginalWidth = widthWithoutSpace;\n\t\t}\n\t}\n\toriginalRatio = originalWidth / originalHeight;\n\n\t// Typically, we use the image's full-sized dimensions. If those\n\t// dimensions have not been set (i.e. an external image with only one size),\n\t// the image's dimensions in the lightbox are the same\n\t// as those of the image in the content.\n\tlet imgMaxWidth = parseFloat(\n\t\tctx.targetWidth !== 'none' ? ctx.targetWidth : naturalWidth\n\t);\n\tlet imgMaxHeight = parseFloat(\n\t\tctx.targetHeight !== 'none' ? ctx.targetHeight : naturalHeight\n\t);\n\n\t// Ratio of the biggest image stored in the database.\n\tlet imgRatio = imgMaxWidth / imgMaxHeight;\n\tlet containerMaxWidth = imgMaxWidth;\n\tlet containerMaxHeight = imgMaxHeight;\n\tlet containerWidth = imgMaxWidth;\n\tlet containerHeight = imgMaxHeight;\n\t// Check if the target image has a different ratio than the original one (thumbnail).\n\t// Recalculate the width and height.\n\tif ( naturalRatio.toFixed( 2 ) !== imgRatio.toFixed( 2 ) ) {\n\t\tif ( naturalRatio > imgRatio ) {\n\t\t\t// If the width is reached before the height, we keep the maxWidth\n\t\t\t// and recalculate the height.\n\t\t\t// Unless the difference between the maxHeight and the reducedHeight\n\t\t\t// is higher than the maxWidth, where we keep the reducedHeight and\n\t\t\t// recalculate the width.\n\t\t\tconst reducedHeight = imgMaxWidth / naturalRatio;\n\t\t\tif ( imgMaxHeight - reducedHeight > imgMaxWidth ) {\n\t\t\t\timgMaxHeight = reducedHeight;\n\t\t\t\timgMaxWidth = reducedHeight * naturalRatio;\n\t\t\t} else {\n\t\t\t\timgMaxHeight = imgMaxWidth / naturalRatio;\n\t\t\t}\n\t\t} else {\n\t\t\t// If the height is reached before the width, we keep the maxHeight\n\t\t\t// and recalculate the width.\n\t\t\t// Unless the difference between the maxWidth and the reducedWidth\n\t\t\t// is higher than the maxHeight, where we keep the reducedWidth and\n\t\t\t// recalculate the height.\n\t\t\tconst reducedWidth = imgMaxHeight * naturalRatio;\n\t\t\tif ( imgMaxWidth - reducedWidth > imgMaxHeight ) {\n\t\t\t\timgMaxWidth = reducedWidth;\n\t\t\t\timgMaxHeight = reducedWidth / naturalRatio;\n\t\t\t} else {\n\t\t\t\timgMaxWidth = imgMaxHeight * naturalRatio;\n\t\t\t}\n\t\t}\n\t\tcontainerWidth = imgMaxWidth;\n\t\tcontainerHeight = imgMaxHeight;\n\t\timgRatio = imgMaxWidth / imgMaxHeight;\n\n\t\t// Calculate the max size of the container.\n\t\tif ( originalRatio > imgRatio ) {\n\t\t\tcontainerMaxWidth = imgMaxWidth;\n\t\t\tcontainerMaxHeight = containerMaxWidth / originalRatio;\n\t\t} else {\n\t\t\tcontainerMaxHeight = imgMaxHeight;\n\t\t\tcontainerMaxWidth = containerMaxHeight * originalRatio;\n\t\t}\n\t}\n\n\t// If the image has been pixelated on purpose, keep that size.\n\tif ( originalWidth > containerWidth || originalHeight > containerHeight ) {\n\t\tcontainerWidth = originalWidth;\n\t\tcontainerHeight = originalHeight;\n\t}\n\n\t// Calculate the final lightbox image size and the\n\t// scale factor. MaxWidth is either the window container\n\t// (accounting for padding) or the image resolution.\n\tlet horizontalPadding = 0;\n\tif ( window.innerWidth > 480 ) {\n\t\thorizontalPadding = 80;\n\t} else if ( window.innerWidth > 1920 ) {\n\t\thorizontalPadding = 160;\n\t}\n\tconst verticalPadding = 80;\n\n\tconst targetMaxWidth = Math.min(\n\t\twindow.innerWidth - horizontalPadding,\n\t\tcontainerWidth\n\t);\n\tconst targetMaxHeight = Math.min(\n\t\twindow.innerHeight - verticalPadding,\n\t\tcontainerHeight\n\t);\n\tconst targetContainerRatio = targetMaxWidth / targetMaxHeight;\n\n\tif ( originalRatio > targetContainerRatio ) {\n\t\t// If targetMaxWidth is reached before targetMaxHeight\n\t\tcontainerWidth = targetMaxWidth;\n\t\tcontainerHeight = containerWidth / originalRatio;\n\t} else {\n\t\t// If targetMaxHeight is reached before targetMaxWidth\n\t\tcontainerHeight = targetMaxHeight;\n\t\tcontainerWidth = containerHeight * originalRatio;\n\t}\n\n\tconst containerScale = originalWidth / containerWidth;\n\tconst lightboxImgWidth =\n\t\timgMaxWidth * ( containerWidth / containerMaxWidth );\n\tconst lightboxImgHeight =\n\t\timgMaxHeight * ( containerHeight / containerMaxHeight );\n\n\t// Add the CSS variables needed.\n\tlet styleTag = document.getElementById( 'wp-lightbox-styles' );\n\tif ( ! styleTag ) {\n\t\tstyleTag = document.createElement( 'style' );\n\t\tstyleTag.id = 'wp-lightbox-styles';\n\t\tdocument.head.appendChild( styleTag );\n\t}\n\n\t// As of this writing, using the calculations above will render the lightbox\n\t// with a small, erroneous whitespace on the left side of the image in iOS Safari,\n\t// perhaps due to an inconsistency in how browsers handle absolute positioning and CSS\n\t// transformation. In any case, adding 1 pixel to the container width and height solves\n\t// the problem, though this can be removed if the issue is fixed in the future.\n\tstyleTag.innerHTML = `\n\t\t:root {\n\t\t\t--wp--lightbox-initial-top-position: ${ screenPosY }px;\n\t\t\t--wp--lightbox-initial-left-position: ${ screenPosX }px;\n\t\t\t--wp--lightbox-container-width: ${ containerWidth + 1 }px;\n\t\t\t--wp--lightbox-container-height: ${ containerHeight + 1 }px;\n\t\t\t--wp--lightbox-image-width: ${ lightboxImgWidth }px;\n\t\t\t--wp--lightbox-image-height: ${ lightboxImgHeight }px;\n\t\t\t--wp--lightbox-scale: ${ containerScale };\n\t\t\t--wp--lightbox-scrollbar-width: ${\n\t\t\t\twindow.innerWidth - document.documentElement.clientWidth\n\t\t\t}px;\n\t\t}\n\t`;\n}\n\n/**\n * Debounces a function call.\n *\n * @function\n * @param {Function} func - A function to be called\n * @param {number} wait - The time to wait before calling the function\n */\nfunction debounce( func, wait = 50 ) {\n\tlet timeout;\n\treturn () => {\n\t\tconst later = () => {\n\t\t\ttimeout = null;\n\t\t\tfunc();\n\t\t};\n\t\tclearTimeout( timeout );\n\t\ttimeout = setTimeout( later, wait );\n\t};\n}\n"],"mappings":";;AAGA,IAAAA,cAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGA,MAAMC,kBAAkB,GAAG,CAC1B,SAAS,EACT,YAAY,EACZ,+DAA+D,EAC/D,2CAA2C,EAC3C,6CAA6C,EAC7C,2CAA2C,EAC3C,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,mBAAmB,EACnB,iCAAiC,CACjC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIC,cAAc;;AAElB;AACA;AACA;AACA;AACA;AACA;AACA,IAAIC,UAAU,GAAG,KAAK;;AAEtB;AACA;AACA;AACA;AACA;AACA;AACA,IAAIC,aAAa,GAAG,CAAC;;AAErB;AACA;AACA;AACA;AACA;AACA;A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AQ,CAAC0G,cAAc,CAAE,oBAAqB,CAAC;EAC9D,IAAK,CAAED,QAAQ,EAAG;IACjBA,QAAQ,GAAGzG,QAAQ,CAAC2G,aAAa,CAAE,OAAQ,CAAC;IAC5CF,QAAQ,CAACG,EAAE,GAAG,oBAAoB;IAClC5G,QAAQ,CAAC6G,IAAI,CAACC,WAAW,CAAEL,QAAS,CAAC;EACtC;;EAEA;EACA;EACA;EACA;EACA;EACAA,QAAQ,CAACM,SAAS,GAAI;AACvB;AACA,0CAA2CjC,UAAY;AACvD,2CAA4CF,UAAY;AACxD,qCAAsCc,cAAc,GAAG,CAAG;AAC1D,sCAAuCC,eAAe,GAAG,CAAG;AAC5D,iCAAkCY,gBAAkB;AACpD,kCAAmCC,iBAAmB;AACtD,2BAA4BF,cAAgB;AAC5C,qCACI/H,MAAM,CAACS,UAAU,GAAGgB,QAAQ,CAACO,eAAe,CAAC2C,WAC7C;AACJ;AACA,EAAE;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASsB,QAAQA,CAAEwC,IAAI,EAAEC,IAAI,GAAG,EAAE,EAAG;EACpC,IAAIC,OAAO;EACX,OAAO,MAAM;IACZ,MAAMC,KAAK,GAAGA,CAAA,KAAM;MACnBD,OAAO,GAAG,IAAI;MACdF,IAAI,CAAC,CAAC;IACP,CAAC;IACDI,YAAY,CAAEF,OAAQ,CAAC;IACvBA,OAAO,GAAGnG,UAAU,CAAEoG,KAAK,EAAEF,IAAK,CAAC;EACpC,CAAC;AACF"}
|
|
1
|
+
{"version":3,"names":["_interactivity","require","isTouching","lastTouchTime","imageRef","buttonRef","state","actions","callbacks","store","currentImage","overlayOpened","currentSrc","roleAttribute","ariaModal","enlargedSrc","uploadedSrc","imgStyles","replace","showLightbox","ctx","getContext","complete","scrollTopReset","document","documentElement","scrollTop","scrollLeftReset","scrollLeft","overlayEnabled","setOverlayStyles","hideLightbox","setTimeout","focus","preventScroll","showClosingAnimation","handleKeydown","event","key","preventDefault","ref","getElement","querySelector","handleTouchMove","handleTouchStart","handleTouchEnd","Date","now","handleScroll","window","scrollTo","naturalWidth","naturalHeight","offsetWidth","originalWidth","offsetHeight","originalHeight","x","screenPosX","y","screenPosY","getBoundingClientRect","naturalRatio","originalRatio","scaleAttr","heightWithoutSpace","widthWithoutSpace","imgMaxWidth","parseFloat","targetWidth","imgMaxHeight","targetHeight","imgRatio","containerMaxWidth","containerMaxHeight","containerWidth","containerHeight","toFixed","reducedHeight","reducedWidth","horizontalPadding","innerWidth","verticalPadding","targetMaxWidth","Math","min","targetMaxHeight","innerHeight","targetContainerRatio","containerScale","lightboxImgWidth","lightboxImgHeight","overlayStyles","clientWidth","setButtonStyles","figure","parentElement","figureWidth","figureHeight","clientHeight","caption","captionComputedStyle","getComputedStyle","includes","position","marginTop","marginBottom","buttonOffsetTop","buttonOffsetRight","offsetRatio","referenceHeight","imageButtonTop","imageButtonRight","referenceWidth","setOverlayFocus","initTriggerButton","lock"],"sources":["@wordpress/block-library/src/image/view.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { store, getContext, getElement } from '@wordpress/interactivity';\n\n/**\n * Tracks whether user is touching screen; used to differentiate behavior for\n * touch and mouse input.\n *\n * @type {boolean}\n */\nlet isTouching = false;\n\n/**\n * Tracks the last time the screen was touched; used to differentiate behavior\n * for touch and mouse input.\n *\n * @type {number}\n */\nlet lastTouchTime = 0;\n\n/**\n * Stores the image reference of the currently opened lightbox.\n *\n * @type {HTMLElement}\n */\nlet imageRef;\n\n/**\n * Stores the button reference of the currently opened lightbox.\n *\n * @type {HTMLElement}\n */\nlet buttonRef;\n\nconst { state, actions, callbacks } = store(\n\t'core/image',\n\t{\n\t\tstate: {\n\t\t\tcurrentImage: {},\n\t\t\tget overlayOpened() {\n\t\t\t\treturn state.currentImage.currentSrc;\n\t\t\t},\n\t\t\tget roleAttribute() {\n\t\t\t\treturn state.overlayOpened ? 'dialog' : null;\n\t\t\t},\n\t\t\tget ariaModal() {\n\t\t\t\treturn state.overlayOpened ? 'true' : null;\n\t\t\t},\n\t\t\tget enlargedSrc() {\n\t\t\t\treturn (\n\t\t\t\t\tstate.currentImage.uploadedSrc ||\n\t\t\t\t\t'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs='\n\t\t\t\t);\n\t\t\t},\n\t\t\tget imgStyles() {\n\t\t\t\treturn (\n\t\t\t\t\tstate.overlayOpened &&\n\t\t\t\t\t`${ state.currentImage.imgStyles?.replace(\n\t\t\t\t\t\t/;$/,\n\t\t\t\t\t\t''\n\t\t\t\t\t) }; object-fit:cover;`\n\t\t\t\t);\n\t\t\t},\n\t\t},\n\t\tactions: {\n\t\t\tshowLightbox() {\n\t\t\t\tconst ctx = getContext();\n\n\t\t\t\t// Bails out if the image has not loaded yet.\n\t\t\t\tif ( ! ctx.imageRef?.complete ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Stores the positons of the scroll to fix it until the overlay is\n\t\t\t\t// closed.\n\t\t\t\tstate.scrollTopReset = document.documentElement.scrollTop;\n\t\t\t\tstate.scrollLeftReset = document.documentElement.scrollLeft;\n\n\t\t\t\t// Moves the information of the expaned image to the state.\n\t\t\t\tctx.currentSrc = ctx.imageRef.currentSrc;\n\t\t\t\timageRef = ctx.imageRef;\n\t\t\t\tbuttonRef = ctx.buttonRef;\n\t\t\t\tstate.currentImage = ctx;\n\t\t\t\tstate.overlayEnabled = true;\n\n\t\t\t\t// Computes the styles of the overlay for the animation.\n\t\t\t\tcallbacks.setOverlayStyles();\n\t\t\t},\n\t\t\thideLightbox() {\n\t\t\t\tif ( state.overlayEnabled ) {\n\t\t\t\t\t// Waits until the close animation has completed before allowing a\n\t\t\t\t\t// user to scroll again. The duration of this animation is defined in\n\t\t\t\t\t// the `styles.scss` file, but in any case we should wait a few\n\t\t\t\t\t// milliseconds longer than the duration, otherwise a user may scroll\n\t\t\t\t\t// too soon and cause the animation to look sloppy.\n\t\t\t\t\tsetTimeout( function () {\n\t\t\t\t\t\t// Delays before changing the focus. Otherwise the focus ring will\n\t\t\t\t\t\t// appear on Firefox before the image has finished animating, which\n\t\t\t\t\t\t// looks broken.\n\t\t\t\t\t\tbuttonRef.focus( {\n\t\t\t\t\t\t\tpreventScroll: true,\n\t\t\t\t\t\t} );\n\n\t\t\t\t\t\t// Resets the current image to mark the overlay as closed.\n\t\t\t\t\t\tstate.currentImage = {};\n\t\t\t\t\t\timageRef = null;\n\t\t\t\t\t\tbuttonRef = null;\n\t\t\t\t\t}, 450 );\n\n\t\t\t\t\t// Starts the overlay closing animation. The showClosingAnimation\n\t\t\t\t\t// class is used to avoid showing it on page load.\n\t\t\t\t\tstate.showClosingAnimation = true;\n\t\t\t\t\tstate.overlayEnabled = false;\n\t\t\t\t}\n\t\t\t},\n\t\t\thandleKeydown( event ) {\n\t\t\t\tif ( state.overlayEnabled ) {\n\t\t\t\t\t// Focuses the close button when the user presses the tab key.\n\t\t\t\t\tif ( event.key === 'Tab' ) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\tconst { ref } = getElement();\n\t\t\t\t\t\tref.querySelector( 'button' ).focus();\n\t\t\t\t\t}\n\t\t\t\t\t// Closes the lightbox when the user presses the escape key.\n\t\t\t\t\tif ( event.key === 'Escape' ) {\n\t\t\t\t\t\tactions.hideLightbox();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\thandleTouchMove( event ) {\n\t\t\t\t// On mobile devices, prevents triggering the scroll event because\n\t\t\t\t// otherwise the page jumps around when it resets the scroll position.\n\t\t\t\t// This also means that closing the lightbox requires that a user\n\t\t\t\t// perform a simple tap. This may be changed in the future if there is a\n\t\t\t\t// better alternative to override or reset the scroll position during\n\t\t\t\t// swipe actions.\n\t\t\t\tif ( state.overlayEnabled ) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\t\t\t},\n\t\t\thandleTouchStart() {\n\t\t\t\tisTouching = true;\n\t\t\t},\n\t\t\thandleTouchEnd() {\n\t\t\t\t// Waits a few milliseconds before resetting to ensure that pinch to\n\t\t\t\t// zoom works consistently on mobile devices when the lightbox is open.\n\t\t\t\tlastTouchTime = Date.now();\n\t\t\t\tisTouching = false;\n\t\t\t},\n\t\t\thandleScroll() {\n\t\t\t\t// Prevents scrolling behaviors that trigger content shift while the\n\t\t\t\t// lightbox is open. It would be better to accomplish through CSS alone,\n\t\t\t\t// but using overflow: hidden is currently the only way to do so and\n\t\t\t\t// that causes a layout to shift and prevents the zoom animation from\n\t\t\t\t// working in some cases because it's not possible to account for the\n\t\t\t\t// layout shift when doing the animation calculations. Instead, it uses\n\t\t\t\t// JavaScript to prevent and reset the scrolling behavior.\n\t\t\t\tif ( state.overlayOpened ) {\n\t\t\t\t\t// Avoids overriding the scroll behavior on mobile devices because\n\t\t\t\t\t// doing so breaks the pinch to zoom functionality, and users should\n\t\t\t\t\t// be able to zoom in further on the high-res image.\n\t\t\t\t\tif ( ! isTouching && Date.now() - lastTouchTime > 450 ) {\n\t\t\t\t\t\t// It doesn't rely on `event.preventDefault()` to prevent scrolling\n\t\t\t\t\t\t// because the scroll event can't be canceled, so it resets the\n\t\t\t\t\t\t// position instead.\n\t\t\t\t\t\twindow.scrollTo(\n\t\t\t\t\t\t\tstate.scrollLeftReset,\n\t\t\t\t\t\t\tstate.scrollTopReset\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t\tcallbacks: {\n\t\t\tsetOverlayStyles() {\n\t\t\t\tif ( ! imageRef ) return;\n\n\t\t\t\tlet {\n\t\t\t\t\tnaturalWidth,\n\t\t\t\t\tnaturalHeight,\n\t\t\t\t\toffsetWidth: originalWidth,\n\t\t\t\t\toffsetHeight: originalHeight,\n\t\t\t\t} = imageRef;\n\t\t\t\tlet { x: screenPosX, y: screenPosY } =\n\t\t\t\t\timageRef.getBoundingClientRect();\n\n\t\t\t\t// Natural ratio of the image clicked to open the lightbox.\n\t\t\t\tconst naturalRatio = naturalWidth / naturalHeight;\n\t\t\t\t// Original ratio of the image clicked to open the lightbox.\n\t\t\t\tlet originalRatio = originalWidth / originalHeight;\n\n\t\t\t\t// If it has object-fit: contain, recalculates the original sizes\n\t\t\t\t// and the screen position without the blank spaces.\n\t\t\t\tif ( state.currentImage.scaleAttr === 'contain' ) {\n\t\t\t\t\tif ( naturalRatio > originalRatio ) {\n\t\t\t\t\t\tconst heightWithoutSpace = originalWidth / naturalRatio;\n\t\t\t\t\t\t// Recalculates screen position without the top space.\n\t\t\t\t\t\tscreenPosY +=\n\t\t\t\t\t\t\t( originalHeight - heightWithoutSpace ) / 2;\n\t\t\t\t\t\toriginalHeight = heightWithoutSpace;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst widthWithoutSpace = originalHeight * naturalRatio;\n\t\t\t\t\t\t// Recalculates screen position without the left space.\n\t\t\t\t\t\tscreenPosX += ( originalWidth - widthWithoutSpace ) / 2;\n\t\t\t\t\t\toriginalWidth = widthWithoutSpace;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\toriginalRatio = originalWidth / originalHeight;\n\n\t\t\t\t// Typically, it uses the image's full-sized dimensions. If those\n\t\t\t\t// dimensions have not been set (i.e. an external image with only one\n\t\t\t\t// size), the image's dimensions in the lightbox are the same\n\t\t\t\t// as those of the image in the content.\n\t\t\t\tlet imgMaxWidth = parseFloat(\n\t\t\t\t\tstate.currentImage.targetWidth !== 'none'\n\t\t\t\t\t\t? state.currentImage.targetWidth\n\t\t\t\t\t\t: naturalWidth\n\t\t\t\t);\n\t\t\t\tlet imgMaxHeight = parseFloat(\n\t\t\t\t\tstate.currentImage.targetHeight !== 'none'\n\t\t\t\t\t\t? state.currentImage.targetHeight\n\t\t\t\t\t\t: naturalHeight\n\t\t\t\t);\n\n\t\t\t\t// Ratio of the biggest image stored in the database.\n\t\t\t\tlet imgRatio = imgMaxWidth / imgMaxHeight;\n\t\t\t\tlet containerMaxWidth = imgMaxWidth;\n\t\t\t\tlet containerMaxHeight = imgMaxHeight;\n\t\t\t\tlet containerWidth = imgMaxWidth;\n\t\t\t\tlet containerHeight = imgMaxHeight;\n\t\t\t\t// Checks if the target image has a different ratio than the original\n\t\t\t\t// one (thumbnail). Recalculates the width and height.\n\t\t\t\tif ( naturalRatio.toFixed( 2 ) !== imgRatio.toFixed( 2 ) ) {\n\t\t\t\t\tif ( naturalRatio > imgRatio ) {\n\t\t\t\t\t\t// If the width is reached before the height, it keeps the maxWidth\n\t\t\t\t\t\t// and recalculates the height unless the difference between the\n\t\t\t\t\t\t// maxHeight and the reducedHeight is higher than the maxWidth,\n\t\t\t\t\t\t// where it keeps the reducedHeight and recalculate the width.\n\t\t\t\t\t\tconst reducedHeight = imgMaxWidth / naturalRatio;\n\t\t\t\t\t\tif ( imgMaxHeight - reducedHeight > imgMaxWidth ) {\n\t\t\t\t\t\t\timgMaxHeight = reducedHeight;\n\t\t\t\t\t\t\timgMaxWidth = reducedHeight * naturalRatio;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\timgMaxHeight = imgMaxWidth / naturalRatio;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// If the height is reached before the width, it keeps the maxHeight\n\t\t\t\t\t\t// and recalculate the width unlesss the difference between the\n\t\t\t\t\t\t// maxWidth and the reducedWidth is higher than the maxHeight, where\n\t\t\t\t\t\t// it keeps the reducedWidth and recalculate the height.\n\t\t\t\t\t\tconst reducedWidth = imgMaxHeight * naturalRatio;\n\t\t\t\t\t\tif ( imgMaxWidth - reducedWidth > imgMaxHeight ) {\n\t\t\t\t\t\t\timgMaxWidth = reducedWidth;\n\t\t\t\t\t\t\timgMaxHeight = reducedWidth / naturalRatio;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\timgMaxWidth = imgMaxHeight * naturalRatio;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcontainerWidth = imgMaxWidth;\n\t\t\t\t\tcontainerHeight = imgMaxHeight;\n\t\t\t\t\timgRatio = imgMaxWidth / imgMaxHeight;\n\n\t\t\t\t\t// Calculates the max size of the container.\n\t\t\t\t\tif ( originalRatio > imgRatio ) {\n\t\t\t\t\t\tcontainerMaxWidth = imgMaxWidth;\n\t\t\t\t\t\tcontainerMaxHeight = containerMaxWidth / originalRatio;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcontainerMaxHeight = imgMaxHeight;\n\t\t\t\t\t\tcontainerMaxWidth = containerMaxHeight * originalRatio;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// If the image has been pixelated on purpose, it keeps that size.\n\t\t\t\tif (\n\t\t\t\t\toriginalWidth > containerWidth ||\n\t\t\t\t\toriginalHeight > containerHeight\n\t\t\t\t) {\n\t\t\t\t\tcontainerWidth = originalWidth;\n\t\t\t\t\tcontainerHeight = originalHeight;\n\t\t\t\t}\n\n\t\t\t\t// Calculates the final lightbox image size and the scale factor.\n\t\t\t\t// MaxWidth is either the window container (accounting for padding) or\n\t\t\t\t// the image resolution.\n\t\t\t\tlet horizontalPadding = 0;\n\t\t\t\tif ( window.innerWidth > 480 ) {\n\t\t\t\t\thorizontalPadding = 80;\n\t\t\t\t} else if ( window.innerWidth > 1920 ) {\n\t\t\t\t\thorizontalPadding = 160;\n\t\t\t\t}\n\t\t\t\tconst verticalPadding = 80;\n\n\t\t\t\tconst targetMaxWidth = Math.min(\n\t\t\t\t\twindow.innerWidth - horizontalPadding,\n\t\t\t\t\tcontainerWidth\n\t\t\t\t);\n\t\t\t\tconst targetMaxHeight = Math.min(\n\t\t\t\t\twindow.innerHeight - verticalPadding,\n\t\t\t\t\tcontainerHeight\n\t\t\t\t);\n\t\t\t\tconst targetContainerRatio = targetMaxWidth / targetMaxHeight;\n\n\t\t\t\tif ( originalRatio > targetContainerRatio ) {\n\t\t\t\t\t// If targetMaxWidth is reached before targetMaxHeight.\n\t\t\t\t\tcontainerWidth = targetMaxWidth;\n\t\t\t\t\tcontainerHeight = containerWidth / originalRatio;\n\t\t\t\t} else {\n\t\t\t\t\t// If targetMaxHeight is reached before targetMaxWidth.\n\t\t\t\t\tcontainerHeight = targetMaxHeight;\n\t\t\t\t\tcontainerWidth = containerHeight * originalRatio;\n\t\t\t\t}\n\n\t\t\t\tconst containerScale = originalWidth / containerWidth;\n\t\t\t\tconst lightboxImgWidth =\n\t\t\t\t\timgMaxWidth * ( containerWidth / containerMaxWidth );\n\t\t\t\tconst lightboxImgHeight =\n\t\t\t\t\timgMaxHeight * ( containerHeight / containerMaxHeight );\n\n\t\t\t\t// As of this writing, using the calculations above will render the\n\t\t\t\t// lightbox with a small, erroneous whitespace on the left side of the\n\t\t\t\t// image in iOS Safari, perhaps due to an inconsistency in how browsers\n\t\t\t\t// handle absolute positioning and CSS transformation. In any case,\n\t\t\t\t// adding 1 pixel to the container width and height solves the problem,\n\t\t\t\t// though this can be removed if the issue is fixed in the future.\n\t\t\t\tstate.overlayStyles = `\n\t\t\t\t:root {\n\t\t\t\t\t--wp--lightbox-initial-top-position: ${ screenPosY }px;\n\t\t\t\t\t--wp--lightbox-initial-left-position: ${ screenPosX }px;\n\t\t\t\t\t--wp--lightbox-container-width: ${ containerWidth + 1 }px;\n\t\t\t\t\t--wp--lightbox-container-height: ${ containerHeight + 1 }px;\n\t\t\t\t\t--wp--lightbox-image-width: ${ lightboxImgWidth }px;\n\t\t\t\t\t--wp--lightbox-image-height: ${ lightboxImgHeight }px;\n\t\t\t\t\t--wp--lightbox-scale: ${ containerScale };\n\t\t\t\t\t--wp--lightbox-scrollbar-width: ${\n\t\t\t\t\t\twindow.innerWidth - document.documentElement.clientWidth\n\t\t\t\t\t}px;\n\t\t\t\t}\n\t\t\t`;\n\t\t\t},\n\t\t\tsetButtonStyles() {\n\t\t\t\tconst ctx = getContext();\n\t\t\t\tconst { ref } = getElement();\n\t\t\t\tctx.imageRef = ref;\n\n\t\t\t\tconst {\n\t\t\t\t\tnaturalWidth,\n\t\t\t\t\tnaturalHeight,\n\t\t\t\t\toffsetWidth,\n\t\t\t\t\toffsetHeight,\n\t\t\t\t} = ref;\n\n\t\t\t\t// If the image isn't loaded yet, it can't calculate where the button\n\t\t\t\t// should be.\n\t\t\t\tif ( naturalWidth === 0 || naturalHeight === 0 ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst figure = ref.parentElement;\n\t\t\t\tconst figureWidth = ref.parentElement.clientWidth;\n\n\t\t\t\t// It needs special handling for the height because a caption will cause\n\t\t\t\t// the figure to be taller than the image, which means it needs to\n\t\t\t\t// account for that when calculating the placement of the button in the\n\t\t\t\t// top right corner of the image.\n\t\t\t\tlet figureHeight = ref.parentElement.clientHeight;\n\t\t\t\tconst caption = figure.querySelector( 'figcaption' );\n\t\t\t\tif ( caption ) {\n\t\t\t\t\tconst captionComputedStyle =\n\t\t\t\t\t\twindow.getComputedStyle( caption );\n\t\t\t\t\tif (\n\t\t\t\t\t\t! [ 'absolute', 'fixed' ].includes(\n\t\t\t\t\t\t\tcaptionComputedStyle.position\n\t\t\t\t\t\t)\n\t\t\t\t\t) {\n\t\t\t\t\t\tfigureHeight =\n\t\t\t\t\t\t\tfigureHeight -\n\t\t\t\t\t\t\tcaption.offsetHeight -\n\t\t\t\t\t\t\tparseFloat( captionComputedStyle.marginTop ) -\n\t\t\t\t\t\t\tparseFloat( captionComputedStyle.marginBottom );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tconst buttonOffsetTop = figureHeight - offsetHeight;\n\t\t\t\tconst buttonOffsetRight = figureWidth - offsetWidth;\n\n\t\t\t\t// In the case of an image with object-fit: contain, the size of the\n\t\t\t\t// <img> element can be larger than the image itself, so it needs to\n\t\t\t\t// calculate where to place the button.\n\t\t\t\tif ( ctx.scaleAttr === 'contain' ) {\n\t\t\t\t\t// Natural ratio of the image.\n\t\t\t\t\tconst naturalRatio = naturalWidth / naturalHeight;\n\t\t\t\t\t// Offset ratio of the image.\n\t\t\t\t\tconst offsetRatio = offsetWidth / offsetHeight;\n\n\t\t\t\t\tif ( naturalRatio >= offsetRatio ) {\n\t\t\t\t\t\t// If it reaches the width first, it keeps the width and compute the\n\t\t\t\t\t\t// height.\n\t\t\t\t\t\tconst referenceHeight = offsetWidth / naturalRatio;\n\t\t\t\t\t\tctx.imageButtonTop =\n\t\t\t\t\t\t\t( offsetHeight - referenceHeight ) / 2 +\n\t\t\t\t\t\t\tbuttonOffsetTop +\n\t\t\t\t\t\t\t16;\n\t\t\t\t\t\tctx.imageButtonRight = buttonOffsetRight + 16;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// If it reaches the height first, it keeps the height and compute\n\t\t\t\t\t\t// the width.\n\t\t\t\t\t\tconst referenceWidth = offsetHeight * naturalRatio;\n\t\t\t\t\t\tctx.imageButtonTop = buttonOffsetTop + 16;\n\t\t\t\t\t\tctx.imageButtonRight =\n\t\t\t\t\t\t\t( offsetWidth - referenceWidth ) / 2 +\n\t\t\t\t\t\t\tbuttonOffsetRight +\n\t\t\t\t\t\t\t16;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tctx.imageButtonTop = buttonOffsetTop + 16;\n\t\t\t\t\tctx.imageButtonRight = buttonOffsetRight + 16;\n\t\t\t\t}\n\t\t\t},\n\t\t\tsetOverlayFocus() {\n\t\t\t\tif ( state.overlayEnabled ) {\n\t\t\t\t\t// Moves the focus to the dialog when it opens.\n\t\t\t\t\tconst { ref } = getElement();\n\t\t\t\t\tref.focus();\n\t\t\t\t}\n\t\t\t},\n\t\t\tinitTriggerButton() {\n\t\t\t\tconst ctx = getContext();\n\t\t\t\tconst { ref } = getElement();\n\t\t\t\tctx.buttonRef = ref;\n\t\t\t},\n\t\t},\n\t},\n\t{ lock: true }\n);\n"],"mappings":";;AAGA,IAAAA,cAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIC,UAAU,GAAG,KAAK;;AAEtB;AACA;AACA;AACA;AACA;AACA;AACA,IAAIC,aAAa,GAAG,CAAC;;AAErB;AACA;AACA;AAC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AAeA,CAAA,EAAG;MACjB,IAAK5G,KAAK,CAACuB,cAAc,EAAG;QAC3B;QACA,MAAM;UAAEW;QAAI,CAAC,GAAG,IAAAC,yBAAU,EAAC,CAAC;QAC5BD,GAAG,CAACP,KAAK,CAAC,CAAC;MACZ;IACD,CAAC;IACDkF,iBAAiBA,CAAA,EAAG;MACnB,MAAM/F,GAAG,GAAG,IAAAC,yBAAU,EAAC,CAAC;MACxB,MAAM;QAAEmB;MAAI,CAAC,GAAG,IAAAC,yBAAU,EAAC,CAAC;MAC5BrB,GAAG,CAACf,SAAS,GAAGmC,GAAG;IACpB;EACD;AACD,CAAC,EACD;EAAE4E,IAAI,EAAE;AAAK,CACd,CAAC"}
|
package/build/index.js
CHANGED
|
@@ -108,8 +108,8 @@ var verse = _interopRequireWildcard(require("./verse"));
|
|
|
108
108
|
var video = _interopRequireWildcard(require("./video"));
|
|
109
109
|
var footnotes = _interopRequireWildcard(require("./footnotes"));
|
|
110
110
|
var _isBlockMetadataExperimental = _interopRequireDefault(require("./utils/is-block-metadata-experimental"));
|
|
111
|
-
function _getRequireWildcardCache(
|
|
112
|
-
function _interopRequireWildcard(
|
|
111
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
112
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
113
113
|
/**
|
|
114
114
|
* WordPress dependencies
|
|
115
115
|
*/
|
|
@@ -211,7 +211,7 @@ const registerCoreBlocks = (blocks = __experimentalGetCoreBlocks()) => {
|
|
|
211
211
|
* ```
|
|
212
212
|
*/
|
|
213
213
|
exports.registerCoreBlocks = registerCoreBlocks;
|
|
214
|
-
const __experimentalRegisterExperimentalCoreBlocks = process.env.IS_GUTENBERG_PLUGIN ? ({
|
|
214
|
+
const __experimentalRegisterExperimentalCoreBlocks = exports.__experimentalRegisterExperimentalCoreBlocks = process.env.IS_GUTENBERG_PLUGIN ? ({
|
|
215
215
|
enableFSEBlocks
|
|
216
216
|
} = {}) => {
|
|
217
217
|
const enabledExperiments = [enableFSEBlocks ? 'fse' : null];
|
|
@@ -225,5 +225,4 @@ const __experimentalRegisterExperimentalCoreBlocks = process.env.IS_GUTENBERG_PL
|
|
|
225
225
|
init
|
|
226
226
|
}) => init());
|
|
227
227
|
} : undefined;
|
|
228
|
-
exports.__experimentalRegisterExperimentalCoreBlocks = __experimentalRegisterExperimentalCoreBlocks;
|
|
229
228
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_blocks","require","archives","_interopRequireWildcard","avatar","audio","button","buttons","calendar","categories","classic","code","column","columns","comments","commentAuthorAvatar","commentAuthorName","commentContent","commentDate","commentEditLink","commentReplyLink","commentTemplate","commentsPaginationPrevious","commentsPagination","commentsPaginationNext","commentsPaginationNumbers","commentsTitle","cover","details","embed","file","form","formInput","formSubmitButton","formSubmissionNotification","gallery","group","heading","homeLink","html","image","latestComments","latestPosts","list","listItem","logInOut","mediaText","missing","more","navigation","navigationLink","navigationSubmenu","nextpage","pattern","pageList","pageListItem","paragraph","postAuthor","postAuthorName","postAuthorBiography","postComment","postCommentsCount","postCommentsForm","postCommentsLink","postContent","postDate","postExcerpt","postFeaturedImage","postNavigationLink","postTemplate","postTerms","postTimeToRead","postTitle","preformatted","pullquote","query","queryNoResults","queryPagination","queryPaginationNext","queryPaginationNumbers","queryPaginationPrevious","queryTitle","quote","reusableBlock","readMore","rss","search","separator","shortcode","siteLogo","siteTagline","siteTitle","socialLink","socialLinks","spacer","table","tableOfContents","tagCloud","templatePart","termDescription","textColumns","verse","video","footnotes","_isBlockMetadataExperimental","_interopRequireDefault","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","getAllBlocks","blocks","window","__experimentalEnableFormBlocks","push","wp","oldEditor","needsClassicBlock","__experimentalDisableTinymce","URLSearchParams","location","filter","Boolean","__experimentalGetCoreBlocks","metadata","isBlockMetadataExperimental","exports","registerCoreBlocks","forEach","init","setDefaultBlockName","name","some","setFreeformContentHandlerName","setUnregisteredTypeHandlerName","setGroupingBlockName","__experimentalRegisterExperimentalCoreBlocks","process","env","IS_GUTENBERG_PLUGIN","enableFSEBlocks","enabledExperiments","__experimental","includes","undefined"],"sources":["@wordpress/block-library/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tsetDefaultBlockName,\n\tsetFreeformContentHandlerName,\n\tsetUnregisteredTypeHandlerName,\n\tsetGroupingBlockName,\n} from '@wordpress/blocks';\n\n/**\n * Internal dependencies\n */\n// When IS_GUTENBERG_PLUGIN is set to false, imports of experimental blocks\n// are transformed by packages/block-library/src/index.js as follows:\n// import * as experimentalBlock from './experimental-block'\n// becomes\n// const experimentalBlock = null;\n// This enables webpack to eliminate the experimental blocks code from the\n// production build to make the final bundle smaller.\n//\n// See https://github.com/WordPress/gutenberg/pull/40655 for more context.\nimport * as archives from './archives';\nimport * as avatar from './avatar';\nimport * as audio from './audio';\nimport * as button from './button';\nimport * as buttons from './buttons';\nimport * as calendar from './calendar';\nimport * as categories from './categories';\nimport * as classic from './freeform';\nimport * as code from './code';\nimport * as column from './column';\nimport * as columns from './columns';\nimport * as comments from './comments';\nimport * as commentAuthorAvatar from './comment-author-avatar';\nimport * as commentAuthorName from './comment-author-name';\nimport * as commentContent from './comment-content';\nimport * as commentDate from './comment-date';\nimport * as commentEditLink from './comment-edit-link';\nimport * as commentReplyLink from './comment-reply-link';\nimport * as commentTemplate from './comment-template';\nimport * as commentsPaginationPrevious from './comments-pagination-previous';\nimport * as commentsPagination from './comments-pagination';\nimport * as commentsPaginationNext from './comments-pagination-next';\nimport * as commentsPaginationNumbers from './comments-pagination-numbers';\nimport * as commentsTitle from './comments-title';\nimport * as cover from './cover';\nimport * as details from './details';\nimport * as embed from './embed';\nimport * as file from './file';\nimport * as form from './form';\nimport * as formInput from './form-input';\nimport * as formSubmitButton from './form-submit-button';\nimport * as formSubmissionNotification from './form-submission-notification';\nimport * as gallery from './gallery';\nimport * as group from './group';\nimport * as heading from './heading';\nimport * as homeLink from './home-link';\nimport * as html from './html';\nimport * as image from './image';\nimport * as latestComments from './latest-comments';\nimport * as latestPosts from './latest-posts';\nimport * as list from './list';\nimport * as listItem from './list-item';\nimport * as logInOut from './loginout';\nimport * as mediaText from './media-text';\nimport * as missing from './missing';\nimport * as more from './more';\nimport * as navigation from './navigation';\nimport * as navigationLink from './navigation-link';\nimport * as navigationSubmenu from './navigation-submenu';\nimport * as nextpage from './nextpage';\nimport * as pattern from './pattern';\nimport * as pageList from './page-list';\nimport * as pageListItem from './page-list-item';\nimport * as paragraph from './paragraph';\nimport * as postAuthor from './post-author';\nimport * as postAuthorName from './post-author-name';\nimport * as postAuthorBiography from './post-author-biography';\nimport * as postComment from './post-comment';\nimport * as postCommentsCount from './post-comments-count';\nimport * as postCommentsForm from './post-comments-form';\nimport * as postCommentsLink from './post-comments-link';\nimport * as postContent from './post-content';\nimport * as postDate from './post-date';\nimport * as postExcerpt from './post-excerpt';\nimport * as postFeaturedImage from './post-featured-image';\nimport * as postNavigationLink from './post-navigation-link';\nimport * as postTemplate from './post-template';\nimport * as postTerms from './post-terms';\nimport * as postTimeToRead from './post-time-to-read';\nimport * as postTitle from './post-title';\nimport * as preformatted from './preformatted';\nimport * as pullquote from './pullquote';\nimport * as query from './query';\nimport * as queryNoResults from './query-no-results';\nimport * as queryPagination from './query-pagination';\nimport * as queryPaginationNext from './query-pagination-next';\nimport * as queryPaginationNumbers from './query-pagination-numbers';\nimport * as queryPaginationPrevious from './query-pagination-previous';\nimport * as queryTitle from './query-title';\nimport * as quote from './quote';\nimport * as reusableBlock from './block';\nimport * as readMore from './read-more';\nimport * as rss from './rss';\nimport * as search from './search';\nimport * as separator from './separator';\nimport * as shortcode from './shortcode';\nimport * as siteLogo from './site-logo';\nimport * as siteTagline from './site-tagline';\nimport * as siteTitle from './site-title';\nimport * as socialLink from './social-link';\nimport * as socialLinks from './social-links';\nimport * as spacer from './spacer';\nimport * as table from './table';\nimport * as tableOfContents from './table-of-contents';\nimport * as tagCloud from './tag-cloud';\nimport * as templatePart from './template-part';\nimport * as termDescription from './term-description';\nimport * as textColumns from './text-columns';\nimport * as verse from './verse';\nimport * as video from './video';\nimport * as footnotes from './footnotes';\n\nimport isBlockMetadataExperimental from './utils/is-block-metadata-experimental';\n\n/**\n * Function to get all the block-library blocks in an array\n */\nconst getAllBlocks = () => {\n\tconst blocks = [\n\t\t// Common blocks are grouped at the top to prioritize their display\n\t\t// in various contexts — like the inserter and auto-complete components.\n\t\tparagraph,\n\t\timage,\n\t\theading,\n\t\tgallery,\n\t\tlist,\n\t\tlistItem,\n\t\tquote,\n\n\t\t// Register all remaining core blocks.\n\t\tarchives,\n\t\taudio,\n\t\tbutton,\n\t\tbuttons,\n\t\tcalendar,\n\t\tcategories,\n\t\tcode,\n\t\tcolumn,\n\t\tcolumns,\n\t\tcommentAuthorAvatar,\n\t\tcover,\n\t\tdetails,\n\t\tembed,\n\t\tfile,\n\t\tgroup,\n\t\thtml,\n\t\tlatestComments,\n\t\tlatestPosts,\n\t\tmediaText,\n\t\tmissing,\n\t\tmore,\n\t\tnextpage,\n\t\tpageList,\n\t\tpageListItem,\n\t\tpattern,\n\t\tpreformatted,\n\t\tpullquote,\n\t\treusableBlock,\n\t\trss,\n\t\tsearch,\n\t\tseparator,\n\t\tshortcode,\n\t\tsocialLink,\n\t\tsocialLinks,\n\t\tspacer,\n\t\ttable,\n\t\ttagCloud,\n\t\ttextColumns,\n\t\tverse,\n\t\tvideo,\n\t\tfootnotes,\n\n\t\t// theme blocks\n\t\tnavigation,\n\t\tnavigationLink,\n\t\tnavigationSubmenu,\n\t\tsiteLogo,\n\t\tsiteTitle,\n\t\tsiteTagline,\n\t\tquery,\n\t\ttemplatePart,\n\t\tavatar,\n\t\tpostTitle,\n\t\tpostExcerpt,\n\t\tpostFeaturedImage,\n\t\tpostContent,\n\t\tpostAuthor,\n\t\tpostAuthorName,\n\t\tpostComment,\n\t\tpostCommentsCount,\n\t\tpostCommentsLink,\n\t\tpostDate,\n\t\tpostTerms,\n\t\tpostNavigationLink,\n\t\tpostTemplate,\n\t\tpostTimeToRead,\n\t\tqueryPagination,\n\t\tqueryPaginationNext,\n\t\tqueryPaginationNumbers,\n\t\tqueryPaginationPrevious,\n\t\tqueryNoResults,\n\t\treadMore,\n\t\tcomments,\n\t\tcommentAuthorName,\n\t\tcommentContent,\n\t\tcommentDate,\n\t\tcommentEditLink,\n\t\tcommentReplyLink,\n\t\tcommentTemplate,\n\t\tcommentsTitle,\n\t\tcommentsPagination,\n\t\tcommentsPaginationNext,\n\t\tcommentsPaginationNumbers,\n\t\tcommentsPaginationPrevious,\n\t\tpostCommentsForm,\n\t\ttableOfContents,\n\t\thomeLink,\n\t\tlogInOut,\n\t\ttermDescription,\n\t\tqueryTitle,\n\t\tpostAuthorBiography,\n\t];\n\tif ( window?.__experimentalEnableFormBlocks ) {\n\t\tblocks.push( form );\n\t\tblocks.push( formInput );\n\t\tblocks.push( formSubmitButton );\n\t\tblocks.push( formSubmissionNotification );\n\t}\n\n\t// When in a WordPress context, conditionally\n\t// add the classic block and TinyMCE editor\n\t// under any of the following conditions:\n\t// - the current post contains a classic block\n\t// - the experiment to disable TinyMCE isn't active.\n\t// - a query argument specifies that TinyMCE should be loaded\n\tif (\n\t\twindow?.wp?.oldEditor &&\n\t\t( window?.wp?.needsClassicBlock ||\n\t\t\t! window?.__experimentalDisableTinymce ||\n\t\t\t!! new URLSearchParams( window?.location?.search ).get(\n\t\t\t\t'requiresTinymce'\n\t\t\t) )\n\t) {\n\t\tblocks.push( classic );\n\t}\n\n\treturn blocks.filter( Boolean );\n};\n\n/**\n * Function to get all the core blocks in an array.\n *\n * @example\n * ```js\n * import { __experimentalGetCoreBlocks } from '@wordpress/block-library';\n *\n * const coreBlocks = __experimentalGetCoreBlocks();\n * ```\n */\nexport const __experimentalGetCoreBlocks = () =>\n\tgetAllBlocks().filter(\n\t\t( { metadata } ) => ! isBlockMetadataExperimental( metadata )\n\t);\n\n/**\n * Function to register core blocks provided by the block editor.\n *\n * @param {Array} blocks An optional array of the core blocks being registered.\n *\n * @example\n * ```js\n * import { registerCoreBlocks } from '@wordpress/block-library';\n *\n * registerCoreBlocks();\n * ```\n */\nexport const registerCoreBlocks = (\n\tblocks = __experimentalGetCoreBlocks()\n) => {\n\tblocks.forEach( ( { init } ) => init() );\n\n\tsetDefaultBlockName( paragraph.name );\n\tif (\n\t\twindow.wp &&\n\t\twindow.wp.oldEditor &&\n\t\tblocks.some( ( { name } ) => name === classic.name )\n\t) {\n\t\tsetFreeformContentHandlerName( classic.name );\n\t}\n\tsetUnregisteredTypeHandlerName( missing.name );\n\tsetGroupingBlockName( group.name );\n};\n\n/**\n * Function to register experimental core blocks depending on editor settings.\n *\n * @param {boolean} enableFSEBlocks Whether to enable the full site editing blocks.\n * @example\n * ```js\n * import { __experimentalRegisterExperimentalCoreBlocks } from '@wordpress/block-library';\n *\n * __experimentalRegisterExperimentalCoreBlocks( settings );\n * ```\n */\nexport const __experimentalRegisterExperimentalCoreBlocks = process.env\n\t.IS_GUTENBERG_PLUGIN\n\t? ( { enableFSEBlocks } = {} ) => {\n\t\t\tconst enabledExperiments = [ enableFSEBlocks ? 'fse' : null ];\n\t\t\tgetAllBlocks()\n\t\t\t\t.filter( ( { metadata } ) =>\n\t\t\t\t\tisBlockMetadataExperimental( metadata )\n\t\t\t\t)\n\t\t\t\t.filter(\n\t\t\t\t\t( { metadata: { __experimental } } ) =>\n\t\t\t\t\t\t__experimental === true ||\n\t\t\t\t\t\tenabledExperiments.includes( __experimental )\n\t\t\t\t)\n\t\t\t\t.forEach( ( { init } ) => init() );\n\t }\n\t: undefined;\n"],"mappings":";;;;;;;AAGA,IAAAA,OAAA,GAAAC,OAAA;AAmBA,IAAAC,QAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,uBAAA,CAAAF,OAAA;AACA,IAAAI,KAAA,GAAAF,uBAAA,CAAAF,OAAA;AACA,IAAAK,MAAA,GAAAH,uBAAA,CAAAF,OAAA;AACA,IAAAM,OAAA,GAAAJ,uBAAA,CAAAF,OAAA;AACA,IAAAO,QAAA,GAAAL,uBAAA,CAAAF,OAAA;AACA,IAAAQ,UAAA,GAAAN,uBAAA,CAAAF,OAAA;AACA,IAAAS,OAAA,GAAAP,uBAAA,CAAAF,OAAA;AACA,IAAAU,IAAA,GAAAR,uBAAA,CAAAF,OAAA;AACA,IAAAW,MAAA,GAAAT,uBAAA,CAAAF,OAAA;AACA,IAAAY,OAAA,GAAAV,uBAAA,CAAAF,OAAA;AACA,IAAAa,QAAA,GAAAX,uBAAA,CAAAF,OAAA;AACA,IAAAc,mBAAA,GAAAZ,uBAAA,CAAAF,OAAA;AACA,IAAAe,iBAAA,GAAAb,uBAAA,CAAAF,OAAA;AACA,IAAAgB,cAAA,GAAAd,uBAAA,CAAAF,OAAA;AACA,IAAAiB,WAAA,GAAAf,uBAAA,CAAAF,OAAA;AACA,IAAAkB,eAAA,GAAAhB,uBAAA,CAAAF,OAAA;AACA,IAAAmB,gBAAA,GAAAjB,uBAAA,CAAAF,OAAA;AACA,IAAAoB,eAAA,GAAAlB,uBAAA,CAAAF,OAAA;AACA,IAAAqB,0BAAA,GA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C;EAAK,CAAC,KAAMA,IAAI,CAAC,CAAE,CAAC;AACnC,CAAC,GACDe,SAAS;AAAClB,OAAA,CAAAU,4CAAA,GAAAA,4CAAA"}
|
|
1
|
+
{"version":3,"names":["_blocks","require","archives","_interopRequireWildcard","avatar","audio","button","buttons","calendar","categories","classic","code","column","columns","comments","commentAuthorAvatar","commentAuthorName","commentContent","commentDate","commentEditLink","commentReplyLink","commentTemplate","commentsPaginationPrevious","commentsPagination","commentsPaginationNext","commentsPaginationNumbers","commentsTitle","cover","details","embed","file","form","formInput","formSubmitButton","formSubmissionNotification","gallery","group","heading","homeLink","html","image","latestComments","latestPosts","list","listItem","logInOut","mediaText","missing","more","navigation","navigationLink","navigationSubmenu","nextpage","pattern","pageList","pageListItem","paragraph","postAuthor","postAuthorName","postAuthorBiography","postComment","postCommentsCount","postCommentsForm","postCommentsLink","postContent","postDate","postExcerpt","postFeaturedImage","postNavigationLink","postTemplate","postTerms","postTimeToRead","postTitle","preformatted","pullquote","query","queryNoResults","queryPagination","queryPaginationNext","queryPaginationNumbers","queryPaginationPrevious","queryTitle","quote","reusableBlock","readMore","rss","search","separator","shortcode","siteLogo","siteTagline","siteTitle","socialLink","socialLinks","spacer","table","tableOfContents","tagCloud","templatePart","termDescription","textColumns","verse","video","footnotes","_isBlockMetadataExperimental","_interopRequireDefault","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","getAllBlocks","blocks","window","__experimentalEnableFormBlocks","push","wp","oldEditor","needsClassicBlock","__experimentalDisableTinymce","URLSearchParams","location","filter","Boolean","__experimentalGetCoreBlocks","metadata","isBlockMetadataExperimental","exports","registerCoreBlocks","forEach","init","setDefaultBlockName","name","some","setFreeformContentHandlerName","setUnregisteredTypeHandlerName","setGroupingBlockName","__experimentalRegisterExperimentalCoreBlocks","process","env","IS_GUTENBERG_PLUGIN","enableFSEBlocks","enabledExperiments","__experimental","includes","undefined"],"sources":["@wordpress/block-library/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tsetDefaultBlockName,\n\tsetFreeformContentHandlerName,\n\tsetUnregisteredTypeHandlerName,\n\tsetGroupingBlockName,\n} from '@wordpress/blocks';\n\n/**\n * Internal dependencies\n */\n// When IS_GUTENBERG_PLUGIN is set to false, imports of experimental blocks\n// are transformed by packages/block-library/src/index.js as follows:\n// import * as experimentalBlock from './experimental-block'\n// becomes\n// const experimentalBlock = null;\n// This enables webpack to eliminate the experimental blocks code from the\n// production build to make the final bundle smaller.\n//\n// See https://github.com/WordPress/gutenberg/pull/40655 for more context.\nimport * as archives from './archives';\nimport * as avatar from './avatar';\nimport * as audio from './audio';\nimport * as button from './button';\nimport * as buttons from './buttons';\nimport * as calendar from './calendar';\nimport * as categories from './categories';\nimport * as classic from './freeform';\nimport * as code from './code';\nimport * as column from './column';\nimport * as columns from './columns';\nimport * as comments from './comments';\nimport * as commentAuthorAvatar from './comment-author-avatar';\nimport * as commentAuthorName from './comment-author-name';\nimport * as commentContent from './comment-content';\nimport * as commentDate from './comment-date';\nimport * as commentEditLink from './comment-edit-link';\nimport * as commentReplyLink from './comment-reply-link';\nimport * as commentTemplate from './comment-template';\nimport * as commentsPaginationPrevious from './comments-pagination-previous';\nimport * as commentsPagination from './comments-pagination';\nimport * as commentsPaginationNext from './comments-pagination-next';\nimport * as commentsPaginationNumbers from './comments-pagination-numbers';\nimport * as commentsTitle from './comments-title';\nimport * as cover from './cover';\nimport * as details from './details';\nimport * as embed from './embed';\nimport * as file from './file';\nimport * as form from './form';\nimport * as formInput from './form-input';\nimport * as formSubmitButton from './form-submit-button';\nimport * as formSubmissionNotification from './form-submission-notification';\nimport * as gallery from './gallery';\nimport * as group from './group';\nimport * as heading from './heading';\nimport * as homeLink from './home-link';\nimport * as html from './html';\nimport * as image from './image';\nimport * as latestComments from './latest-comments';\nimport * as latestPosts from './latest-posts';\nimport * as list from './list';\nimport * as listItem from './list-item';\nimport * as logInOut from './loginout';\nimport * as mediaText from './media-text';\nimport * as missing from './missing';\nimport * as more from './more';\nimport * as navigation from './navigation';\nimport * as navigationLink from './navigation-link';\nimport * as navigationSubmenu from './navigation-submenu';\nimport * as nextpage from './nextpage';\nimport * as pattern from './pattern';\nimport * as pageList from './page-list';\nimport * as pageListItem from './page-list-item';\nimport * as paragraph from './paragraph';\nimport * as postAuthor from './post-author';\nimport * as postAuthorName from './post-author-name';\nimport * as postAuthorBiography from './post-author-biography';\nimport * as postComment from './post-comment';\nimport * as postCommentsCount from './post-comments-count';\nimport * as postCommentsForm from './post-comments-form';\nimport * as postCommentsLink from './post-comments-link';\nimport * as postContent from './post-content';\nimport * as postDate from './post-date';\nimport * as postExcerpt from './post-excerpt';\nimport * as postFeaturedImage from './post-featured-image';\nimport * as postNavigationLink from './post-navigation-link';\nimport * as postTemplate from './post-template';\nimport * as postTerms from './post-terms';\nimport * as postTimeToRead from './post-time-to-read';\nimport * as postTitle from './post-title';\nimport * as preformatted from './preformatted';\nimport * as pullquote from './pullquote';\nimport * as query from './query';\nimport * as queryNoResults from './query-no-results';\nimport * as queryPagination from './query-pagination';\nimport * as queryPaginationNext from './query-pagination-next';\nimport * as queryPaginationNumbers from './query-pagination-numbers';\nimport * as queryPaginationPrevious from './query-pagination-previous';\nimport * as queryTitle from './query-title';\nimport * as quote from './quote';\nimport * as reusableBlock from './block';\nimport * as readMore from './read-more';\nimport * as rss from './rss';\nimport * as search from './search';\nimport * as separator from './separator';\nimport * as shortcode from './shortcode';\nimport * as siteLogo from './site-logo';\nimport * as siteTagline from './site-tagline';\nimport * as siteTitle from './site-title';\nimport * as socialLink from './social-link';\nimport * as socialLinks from './social-links';\nimport * as spacer from './spacer';\nimport * as table from './table';\nimport * as tableOfContents from './table-of-contents';\nimport * as tagCloud from './tag-cloud';\nimport * as templatePart from './template-part';\nimport * as termDescription from './term-description';\nimport * as textColumns from './text-columns';\nimport * as verse from './verse';\nimport * as video from './video';\nimport * as footnotes from './footnotes';\n\nimport isBlockMetadataExperimental from './utils/is-block-metadata-experimental';\n\n/**\n * Function to get all the block-library blocks in an array\n */\nconst getAllBlocks = () => {\n\tconst blocks = [\n\t\t// Common blocks are grouped at the top to prioritize their display\n\t\t// in various contexts — like the inserter and auto-complete components.\n\t\tparagraph,\n\t\timage,\n\t\theading,\n\t\tgallery,\n\t\tlist,\n\t\tlistItem,\n\t\tquote,\n\n\t\t// Register all remaining core blocks.\n\t\tarchives,\n\t\taudio,\n\t\tbutton,\n\t\tbuttons,\n\t\tcalendar,\n\t\tcategories,\n\t\tcode,\n\t\tcolumn,\n\t\tcolumns,\n\t\tcommentAuthorAvatar,\n\t\tcover,\n\t\tdetails,\n\t\tembed,\n\t\tfile,\n\t\tgroup,\n\t\thtml,\n\t\tlatestComments,\n\t\tlatestPosts,\n\t\tmediaText,\n\t\tmissing,\n\t\tmore,\n\t\tnextpage,\n\t\tpageList,\n\t\tpageListItem,\n\t\tpattern,\n\t\tpreformatted,\n\t\tpullquote,\n\t\treusableBlock,\n\t\trss,\n\t\tsearch,\n\t\tseparator,\n\t\tshortcode,\n\t\tsocialLink,\n\t\tsocialLinks,\n\t\tspacer,\n\t\ttable,\n\t\ttagCloud,\n\t\ttextColumns,\n\t\tverse,\n\t\tvideo,\n\t\tfootnotes,\n\n\t\t// theme blocks\n\t\tnavigation,\n\t\tnavigationLink,\n\t\tnavigationSubmenu,\n\t\tsiteLogo,\n\t\tsiteTitle,\n\t\tsiteTagline,\n\t\tquery,\n\t\ttemplatePart,\n\t\tavatar,\n\t\tpostTitle,\n\t\tpostExcerpt,\n\t\tpostFeaturedImage,\n\t\tpostContent,\n\t\tpostAuthor,\n\t\tpostAuthorName,\n\t\tpostComment,\n\t\tpostCommentsCount,\n\t\tpostCommentsLink,\n\t\tpostDate,\n\t\tpostTerms,\n\t\tpostNavigationLink,\n\t\tpostTemplate,\n\t\tpostTimeToRead,\n\t\tqueryPagination,\n\t\tqueryPaginationNext,\n\t\tqueryPaginationNumbers,\n\t\tqueryPaginationPrevious,\n\t\tqueryNoResults,\n\t\treadMore,\n\t\tcomments,\n\t\tcommentAuthorName,\n\t\tcommentContent,\n\t\tcommentDate,\n\t\tcommentEditLink,\n\t\tcommentReplyLink,\n\t\tcommentTemplate,\n\t\tcommentsTitle,\n\t\tcommentsPagination,\n\t\tcommentsPaginationNext,\n\t\tcommentsPaginationNumbers,\n\t\tcommentsPaginationPrevious,\n\t\tpostCommentsForm,\n\t\ttableOfContents,\n\t\thomeLink,\n\t\tlogInOut,\n\t\ttermDescription,\n\t\tqueryTitle,\n\t\tpostAuthorBiography,\n\t];\n\tif ( window?.__experimentalEnableFormBlocks ) {\n\t\tblocks.push( form );\n\t\tblocks.push( formInput );\n\t\tblocks.push( formSubmitButton );\n\t\tblocks.push( formSubmissionNotification );\n\t}\n\n\t// When in a WordPress context, conditionally\n\t// add the classic block and TinyMCE editor\n\t// under any of the following conditions:\n\t// - the current post contains a classic block\n\t// - the experiment to disable TinyMCE isn't active.\n\t// - a query argument specifies that TinyMCE should be loaded\n\tif (\n\t\twindow?.wp?.oldEditor &&\n\t\t( window?.wp?.needsClassicBlock ||\n\t\t\t! window?.__experimentalDisableTinymce ||\n\t\t\t!! new URLSearchParams( window?.location?.search ).get(\n\t\t\t\t'requiresTinymce'\n\t\t\t) )\n\t) {\n\t\tblocks.push( classic );\n\t}\n\n\treturn blocks.filter( Boolean );\n};\n\n/**\n * Function to get all the core blocks in an array.\n *\n * @example\n * ```js\n * import { __experimentalGetCoreBlocks } from '@wordpress/block-library';\n *\n * const coreBlocks = __experimentalGetCoreBlocks();\n * ```\n */\nexport const __experimentalGetCoreBlocks = () =>\n\tgetAllBlocks().filter(\n\t\t( { metadata } ) => ! isBlockMetadataExperimental( metadata )\n\t);\n\n/**\n * Function to register core blocks provided by the block editor.\n *\n * @param {Array} blocks An optional array of the core blocks being registered.\n *\n * @example\n * ```js\n * import { registerCoreBlocks } from '@wordpress/block-library';\n *\n * registerCoreBlocks();\n * ```\n */\nexport const registerCoreBlocks = (\n\tblocks = __experimentalGetCoreBlocks()\n) => {\n\tblocks.forEach( ( { init } ) => init() );\n\n\tsetDefaultBlockName( paragraph.name );\n\tif (\n\t\twindow.wp &&\n\t\twindow.wp.oldEditor &&\n\t\tblocks.some( ( { name } ) => name === classic.name )\n\t) {\n\t\tsetFreeformContentHandlerName( classic.name );\n\t}\n\tsetUnregisteredTypeHandlerName( missing.name );\n\tsetGroupingBlockName( group.name );\n};\n\n/**\n * Function to register experimental core blocks depending on editor settings.\n *\n * @param {boolean} enableFSEBlocks Whether to enable the full site editing blocks.\n * @example\n * ```js\n * import { __experimentalRegisterExperimentalCoreBlocks } from '@wordpress/block-library';\n *\n * __experimentalRegisterExperimentalCoreBlocks( settings );\n * ```\n */\nexport const __experimentalRegisterExperimentalCoreBlocks = process.env\n\t.IS_GUTENBERG_PLUGIN\n\t? ( { enableFSEBlocks } = {} ) => {\n\t\t\tconst enabledExperiments = [ enableFSEBlocks ? 'fse' : null ];\n\t\t\tgetAllBlocks()\n\t\t\t\t.filter( ( { metadata } ) =>\n\t\t\t\t\tisBlockMetadataExperimental( metadata )\n\t\t\t\t)\n\t\t\t\t.filter(\n\t\t\t\t\t( { metadata: { __experimental } } ) =>\n\t\t\t\t\t\t__experimental === true ||\n\t\t\t\t\t\tenabledExperiments.includes( __experimental )\n\t\t\t\t)\n\t\t\t\t.forEach( ( { init } ) => init() );\n\t }\n\t: undefined;\n"],"mappings":";;;;;;;AAGA,IAAAA,OAAA,GAAAC,OAAA;AAmBA,IAAAC,QAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,uBAAA,CAAAF,OAAA;AACA,IAAAI,KAAA,GAAAF,uBAAA,CAAAF,OAAA;AACA,IAAAK,MAAA,GAAAH,uBAAA,CAAAF,OAAA;AACA,IAAAM,OAAA,GAAAJ,uBAAA,CAAAF,OAAA;AACA,IAAAO,QAAA,GAAAL,uBAAA,CAAAF,OAAA;AAC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,IAAAI,4BAAoB,EAAEpH,KAAK,CAACgH,IAAK,CAAC;AACnC,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVAL,OAAA,CAAAC,kBAAA,GAAAA,kBAAA;AAWO,MAAMS,4CAA4C,GAAAV,OAAA,CAAAU,4CAAA,GAAGC,OAAO,CAACC,GAAG,CACrEC,mBAAmB,GAClB,CAAE;EAAEC;AAAgB,CAAC,GAAG,CAAC,CAAC,KAAM;EAChC,MAAMC,kBAAkB,GAAG,CAAED,eAAe,GAAG,KAAK,GAAG,IAAI,CAAE;EAC7D9B,YAAY,CAAC,CAAC,CACZW,MAAM,CAAE,CAAE;IAAEG;EAAS,CAAC,KACtB,IAAAC,oCAA2B,EAAED,QAAS,CACvC,CAAC,CACAH,MAAM,CACN,CAAE;IAAEG,QAAQ,EAAE;MAAEkB;IAAe;EAAE,CAAC,KACjCA,cAAc,KAAK,IAAI,IACvBD,kBAAkB,CAACE,QAAQ,CAAED,cAAe,CAC9C,CAAC,CACAd,OAAO,CAAE,CAAE;IAAEC;EAAK,CAAC,KAAMA,IAAI,CAAC,CAAE,CAAC;AACnC,CAAC,GACDe,SAAS"}
|
package/build/index.native.js
CHANGED
|
@@ -51,8 +51,8 @@ var buttons = _interopRequireWildcard(require("./buttons"));
|
|
|
51
51
|
var socialLink = _interopRequireWildcard(require("./social-link"));
|
|
52
52
|
var socialLinks = _interopRequireWildcard(require("./social-links"));
|
|
53
53
|
var _transformationCategories = require("./utils/transformation-categories");
|
|
54
|
-
function _getRequireWildcardCache(
|
|
55
|
-
function _interopRequireWildcard(
|
|
54
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
55
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
56
56
|
/**
|
|
57
57
|
* External dependencies
|
|
58
58
|
*/
|
|
@@ -65,7 +65,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
65
65
|
* Internal dependencies
|
|
66
66
|
*/
|
|
67
67
|
|
|
68
|
-
const coreBlocks = [
|
|
68
|
+
const coreBlocks = exports.coreBlocks = [
|
|
69
69
|
// Common blocks are grouped at the top to prioritize their display
|
|
70
70
|
// in various contexts — like the inserter and auto-complete components.
|
|
71
71
|
paragraph, image, heading, gallery, list, listItem, quote,
|
|
@@ -80,7 +80,6 @@ shortcode, archives, audio, button, calendar, categories, code, columns, column,
|
|
|
80
80
|
*
|
|
81
81
|
* @param {Object} block The block which variations will be registered.
|
|
82
82
|
*/
|
|
83
|
-
exports.coreBlocks = coreBlocks;
|
|
84
83
|
const registerBlockVariations = block => {
|
|
85
84
|
const {
|
|
86
85
|
metadata,
|
|
@@ -178,6 +177,5 @@ const registerCoreBlocks = () => {
|
|
|
178
177
|
* @constant {{ string, number }}
|
|
179
178
|
*/
|
|
180
179
|
exports.registerCoreBlocks = registerCoreBlocks;
|
|
181
|
-
const NEW_BLOCK_TYPES = {};
|
|
182
|
-
exports.NEW_BLOCK_TYPES = NEW_BLOCK_TYPES;
|
|
180
|
+
const NEW_BLOCK_TYPES = exports.NEW_BLOCK_TYPES = {};
|
|
183
181
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_blocks","_hooks","paragraph","_interopRequireWildcard","image","heading","quote","gallery","archives","audio","button","calendar","categories","code","columns","column","cover","embed","file","html","mediaText","latestComments","latestPosts","list","listItem","missing","more","nextpage","preformatted","pullquote","reusableBlock","rss","search","separator","shortcode","spacer","table","textColumns","verse","video","tagCloud","classic","group","buttons","socialLink","socialLinks","_transformationCategories","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","coreBlocks","reduce","accumulator","block","name","exports","registerBlockVariations","metadata","settings","variations","sort","a","b","title","localeCompare","forEach","v","registerBlockType","icon","devOnly","__DEV__","iOSOnly","Platform","OS","addFilter","hiddenBlocks","includes","hasBlockSupport","supports","inserter","transforms","supportedMobileTransforms","transformationCategory","registerCoreBlocks","filter","Boolean","init","setDefaultBlockName","setFreeformContentHandlerName","setUnregisteredTypeHandlerName","setGroupingBlockName","NEW_BLOCK_TYPES"],"sources":["@wordpress/block-library/src/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Platform } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport {\n\thasBlockSupport,\n\tregisterBlockType,\n\tsetDefaultBlockName,\n\tsetFreeformContentHandlerName,\n\tsetUnregisteredTypeHandlerName,\n\tsetGroupingBlockName,\n} from '@wordpress/blocks';\nimport { addFilter } from '@wordpress/hooks';\n\n/**\n * Internal dependencies\n */\nimport * as paragraph from './paragraph';\nimport * as image from './image';\nimport * as heading from './heading';\nimport * as quote from './quote';\nimport * as gallery from './gallery';\nimport * as archives from './archives';\nimport * as audio from './audio';\nimport * as button from './button';\nimport * as calendar from './calendar';\nimport * as categories from './categories';\nimport * as code from './code';\nimport * as columns from './columns';\nimport * as column from './column';\nimport * as cover from './cover';\nimport * as embed from './embed';\nimport * as file from './file';\nimport * as html from './html';\nimport * as mediaText from './media-text';\nimport * as latestComments from './latest-comments';\nimport * as latestPosts from './latest-posts';\nimport * as list from './list';\nimport * as listItem from './list-item';\nimport * as missing from './missing';\nimport * as more from './more';\nimport * as nextpage from './nextpage';\nimport * as preformatted from './preformatted';\nimport * as pullquote from './pullquote';\nimport * as reusableBlock from './block';\nimport * as rss from './rss';\nimport * as search from './search';\nimport * as separator from './separator';\nimport * as shortcode from './shortcode';\nimport * as spacer from './spacer';\nimport * as table from './table';\nimport * as textColumns from './text-columns';\nimport * as verse from './verse';\nimport * as video from './video';\nimport * as tagCloud from './tag-cloud';\nimport * as classic from './freeform';\nimport * as group from './group';\nimport * as buttons from './buttons';\nimport * as socialLink from './social-link';\nimport * as socialLinks from './social-links';\n\nimport { transformationCategory } from './utils/transformation-categories';\n\nexport const coreBlocks = [\n\t// Common blocks are grouped at the top to prioritize their display\n\t// in various contexts — like the inserter and auto-complete components.\n\tparagraph,\n\timage,\n\theading,\n\tgallery,\n\tlist,\n\tlistItem,\n\tquote,\n\n\t// Register all remaining core blocks.\n\tshortcode,\n\tarchives,\n\taudio,\n\tbutton,\n\tcalendar,\n\tcategories,\n\tcode,\n\tcolumns,\n\tcolumn,\n\tcover,\n\tembed,\n\tgroup,\n\tfile,\n\thtml,\n\tmediaText,\n\tlatestComments,\n\tlatestPosts,\n\tmissing,\n\tmore,\n\tnextpage,\n\tpreformatted,\n\tpullquote,\n\trss,\n\tsearch,\n\tseparator,\n\treusableBlock,\n\tspacer,\n\ttable,\n\ttagCloud,\n\ttextColumns,\n\tverse,\n\tvideo,\n\tclassic,\n\tbuttons,\n\tsocialLink,\n\tsocialLinks,\n].reduce( ( accumulator, block ) => {\n\taccumulator[ block.name ] = block;\n\treturn accumulator;\n}, {} );\n\n/**\n * Function to register a block variations e.g. social icons different types.\n *\n * @param {Object} block The block which variations will be registered.\n */\nconst registerBlockVariations = ( block ) => {\n\tconst { metadata, settings, name } = block;\n\n\tif ( ! settings.variations ) {\n\t\treturn;\n\t}\n\n\t[ ...settings.variations ]\n\t\t.sort( ( a, b ) => a.title.localeCompare( b.title ) )\n\t\t.forEach( ( v ) => {\n\t\t\tregisterBlockType( `${ name }-${ v.name }`, {\n\t\t\t\t...metadata,\n\t\t\t\tname: `${ name }-${ v.name }`,\n\t\t\t\t...settings,\n\t\t\t\ticon: v.icon(),\n\t\t\t\ttitle: v.title,\n\t\t\t\tvariations: [],\n\t\t\t} );\n\t\t} );\n};\n\n// Only enable code block for development\n// eslint-disable-next-line no-undef\nconst devOnly = ( block ) => ( !! __DEV__ ? block : null );\n\n// eslint-disable-next-line no-unused-vars\nconst iOSOnly = ( block ) =>\n\tPlatform.OS === 'ios' ? block : devOnly( block );\n\n// Hide the Classic block and SocialLink block\naddFilter(\n\t'blocks.registerBlockType',\n\t'core/react-native-editor',\n\t( settings, name ) => {\n\t\tconst hiddenBlocks = [ 'core/freeform', 'core/social-link' ];\n\t\tif (\n\t\t\thiddenBlocks.includes( name ) &&\n\t\t\thasBlockSupport( settings, 'inserter', true )\n\t\t) {\n\t\t\tsettings.supports = {\n\t\t\t\t...settings.supports,\n\t\t\t\tinserter: false,\n\t\t\t};\n\t\t}\n\n\t\treturn settings;\n\t}\n);\n\naddFilter(\n\t'blocks.registerBlockType',\n\t'core/react-native-editor',\n\t( settings, name ) => {\n\t\tif ( ! settings.transforms ) {\n\t\t\treturn settings;\n\t\t}\n\n\t\tif ( ! settings.transforms.supportedMobileTransforms ) {\n\t\t\treturn {\n\t\t\t\t...settings,\n\t\t\t\ttransforms: {\n\t\t\t\t\t...settings.transforms,\n\t\t\t\t\tsupportedMobileTransforms: transformationCategory( name ),\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\n\t\treturn settings;\n\t}\n);\n\n/**\n * Function to register core blocks provided by the block editor.\n *\n * @example\n * ```js\n * import { registerCoreBlocks } from '@wordpress/block-library';\n *\n * registerCoreBlocks();\n * ```\n */\nexport const registerCoreBlocks = () => {\n\t// When adding new blocks to this list please also consider updating /src/block-support/supported-blocks.json in the Gutenberg-Mobile repo\n\t[\n\t\tparagraph,\n\t\theading,\n\t\tdevOnly( code ),\n\t\tmissing,\n\t\tmore,\n\t\timage,\n\t\tvideo,\n\t\tnextpage,\n\t\tseparator,\n\t\tlist,\n\t\tlistItem,\n\t\tquote,\n\t\tmediaText,\n\t\tpreformatted,\n\t\tgallery,\n\t\tcolumns,\n\t\tcolumn,\n\t\tgroup,\n\t\tclassic,\n\t\tbutton,\n\t\tspacer,\n\t\tshortcode,\n\t\tbuttons,\n\t\tlatestPosts,\n\t\tverse,\n\t\tcover,\n\t\tsocialLink,\n\t\tsocialLinks,\n\t\tpullquote,\n\t\tfile,\n\t\taudio,\n\t\treusableBlock,\n\t\tsearch,\n\t\tembed,\n\t]\n\t\t.filter( Boolean )\n\t\t.forEach( ( { init } ) => init() );\n\n\tregisterBlockVariations( socialLink );\n\tsetDefaultBlockName( paragraph.name );\n\tsetFreeformContentHandlerName( classic.name );\n\tsetUnregisteredTypeHandlerName( missing.name );\n\tif ( group ) {\n\t\tsetGroupingBlockName( group.name );\n\t}\n};\n\n/**\n * Dictates which block types are considered \"new.\" For each of the block types\n * below, if the native host app does not already have an impression count set,\n * an initial count will be set. When a block type's impression count is greater\n * than 0, a \"new\" badge is displayed on the block type within the block\n * inserter.\n *\n * With the below example, the Audio block will be displayed as \"new\" until its\n * impression count reaches 0, which occurs by various actions decrementing\n * the impression count.\n *\n * {\n * \t[ audio.name ]: 40\n * }\n *\n * @constant {{ string, number }}\n */\nexport const NEW_BLOCK_TYPES = {};\n"],"mappings":";;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,OAAA,GAAAD,OAAA;AAQA,IAAAE,MAAA,GAAAF,OAAA;AAKA,IAAAG,SAAA,GAAAC,uBAAA,CAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAD,uBAAA,CAAAJ,OAAA;AACA,IAAAM,OAAA,GAAAF,uBAAA,CAAAJ,OAAA;AACA,IAAAO,KAAA,GAAAH,uBAAA,CAAAJ,OAAA;AACA,IAAAQ,OAAA,GAAAJ,uBAAA,CAAAJ,OAAA;AACA,IAAAS,QAAA,GAAAL,uBAA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AK,CACL,CACCsF,MAAM,CAAEC,OAAQ,CAAC,CACjBpB,OAAO,CAAE,CAAE;IAAEqB;EAAK,CAAC,KAAMA,IAAI,CAAC,CAAE,CAAC;EAEnC9B,uBAAuB,CAAE/B,UAAW,CAAC;EACrC,IAAA8D,2BAAmB,EAAExG,SAAS,CAACuE,IAAK,CAAC;EACrC,IAAAkC,qCAA6B,EAAElE,OAAO,CAACgC,IAAK,CAAC;EAC7C,IAAAmC,sCAA8B,EAAEnF,OAAO,CAACgD,IAAK,CAAC;EAC9C,IAAK/B,KAAK,EAAG;IACZ,IAAAmE,4BAAoB,EAAEnE,KAAK,CAAC+B,IAAK,CAAC;EACnC;AACD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhBAC,OAAA,CAAA4B,kBAAA,GAAAA,kBAAA;AAiBO,MAAMQ,eAAe,GAAG,CAAC,CAAC;AAACpC,OAAA,CAAAoC,eAAA,GAAAA,eAAA"}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_blocks","_hooks","paragraph","_interopRequireWildcard","image","heading","quote","gallery","archives","audio","button","calendar","categories","code","columns","column","cover","embed","file","html","mediaText","latestComments","latestPosts","list","listItem","missing","more","nextpage","preformatted","pullquote","reusableBlock","rss","search","separator","shortcode","spacer","table","textColumns","verse","video","tagCloud","classic","group","buttons","socialLink","socialLinks","_transformationCategories","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","coreBlocks","exports","reduce","accumulator","block","name","registerBlockVariations","metadata","settings","variations","sort","b","title","localeCompare","forEach","v","registerBlockType","icon","devOnly","__DEV__","iOSOnly","Platform","OS","addFilter","hiddenBlocks","includes","hasBlockSupport","supports","inserter","transforms","supportedMobileTransforms","transformationCategory","registerCoreBlocks","filter","Boolean","init","setDefaultBlockName","setFreeformContentHandlerName","setUnregisteredTypeHandlerName","setGroupingBlockName","NEW_BLOCK_TYPES"],"sources":["@wordpress/block-library/src/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Platform } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport {\n\thasBlockSupport,\n\tregisterBlockType,\n\tsetDefaultBlockName,\n\tsetFreeformContentHandlerName,\n\tsetUnregisteredTypeHandlerName,\n\tsetGroupingBlockName,\n} from '@wordpress/blocks';\nimport { addFilter } from '@wordpress/hooks';\n\n/**\n * Internal dependencies\n */\nimport * as paragraph from './paragraph';\nimport * as image from './image';\nimport * as heading from './heading';\nimport * as quote from './quote';\nimport * as gallery from './gallery';\nimport * as archives from './archives';\nimport * as audio from './audio';\nimport * as button from './button';\nimport * as calendar from './calendar';\nimport * as categories from './categories';\nimport * as code from './code';\nimport * as columns from './columns';\nimport * as column from './column';\nimport * as cover from './cover';\nimport * as embed from './embed';\nimport * as file from './file';\nimport * as html from './html';\nimport * as mediaText from './media-text';\nimport * as latestComments from './latest-comments';\nimport * as latestPosts from './latest-posts';\nimport * as list from './list';\nimport * as listItem from './list-item';\nimport * as missing from './missing';\nimport * as more from './more';\nimport * as nextpage from './nextpage';\nimport * as preformatted from './preformatted';\nimport * as pullquote from './pullquote';\nimport * as reusableBlock from './block';\nimport * as rss from './rss';\nimport * as search from './search';\nimport * as separator from './separator';\nimport * as shortcode from './shortcode';\nimport * as spacer from './spacer';\nimport * as table from './table';\nimport * as textColumns from './text-columns';\nimport * as verse from './verse';\nimport * as video from './video';\nimport * as tagCloud from './tag-cloud';\nimport * as classic from './freeform';\nimport * as group from './group';\nimport * as buttons from './buttons';\nimport * as socialLink from './social-link';\nimport * as socialLinks from './social-links';\n\nimport { transformationCategory } from './utils/transformation-categories';\n\nexport const coreBlocks = [\n\t// Common blocks are grouped at the top to prioritize their display\n\t// in various contexts — like the inserter and auto-complete components.\n\tparagraph,\n\timage,\n\theading,\n\tgallery,\n\tlist,\n\tlistItem,\n\tquote,\n\n\t// Register all remaining core blocks.\n\tshortcode,\n\tarchives,\n\taudio,\n\tbutton,\n\tcalendar,\n\tcategories,\n\tcode,\n\tcolumns,\n\tcolumn,\n\tcover,\n\tembed,\n\tgroup,\n\tfile,\n\thtml,\n\tmediaText,\n\tlatestComments,\n\tlatestPosts,\n\tmissing,\n\tmore,\n\tnextpage,\n\tpreformatted,\n\tpullquote,\n\trss,\n\tsearch,\n\tseparator,\n\treusableBlock,\n\tspacer,\n\ttable,\n\ttagCloud,\n\ttextColumns,\n\tverse,\n\tvideo,\n\tclassic,\n\tbuttons,\n\tsocialLink,\n\tsocialLinks,\n].reduce( ( accumulator, block ) => {\n\taccumulator[ block.name ] = block;\n\treturn accumulator;\n}, {} );\n\n/**\n * Function to register a block variations e.g. social icons different types.\n *\n * @param {Object} block The block which variations will be registered.\n */\nconst registerBlockVariations = ( block ) => {\n\tconst { metadata, settings, name } = block;\n\n\tif ( ! settings.variations ) {\n\t\treturn;\n\t}\n\n\t[ ...settings.variations ]\n\t\t.sort( ( a, b ) => a.title.localeCompare( b.title ) )\n\t\t.forEach( ( v ) => {\n\t\t\tregisterBlockType( `${ name }-${ v.name }`, {\n\t\t\t\t...metadata,\n\t\t\t\tname: `${ name }-${ v.name }`,\n\t\t\t\t...settings,\n\t\t\t\ticon: v.icon(),\n\t\t\t\ttitle: v.title,\n\t\t\t\tvariations: [],\n\t\t\t} );\n\t\t} );\n};\n\n// Only enable code block for development\n// eslint-disable-next-line no-undef\nconst devOnly = ( block ) => ( !! __DEV__ ? block : null );\n\n// eslint-disable-next-line no-unused-vars\nconst iOSOnly = ( block ) =>\n\tPlatform.OS === 'ios' ? block : devOnly( block );\n\n// Hide the Classic block and SocialLink block\naddFilter(\n\t'blocks.registerBlockType',\n\t'core/react-native-editor',\n\t( settings, name ) => {\n\t\tconst hiddenBlocks = [ 'core/freeform', 'core/social-link' ];\n\t\tif (\n\t\t\thiddenBlocks.includes( name ) &&\n\t\t\thasBlockSupport( settings, 'inserter', true )\n\t\t) {\n\t\t\tsettings.supports = {\n\t\t\t\t...settings.supports,\n\t\t\t\tinserter: false,\n\t\t\t};\n\t\t}\n\n\t\treturn settings;\n\t}\n);\n\naddFilter(\n\t'blocks.registerBlockType',\n\t'core/react-native-editor',\n\t( settings, name ) => {\n\t\tif ( ! settings.transforms ) {\n\t\t\treturn settings;\n\t\t}\n\n\t\tif ( ! settings.transforms.supportedMobileTransforms ) {\n\t\t\treturn {\n\t\t\t\t...settings,\n\t\t\t\ttransforms: {\n\t\t\t\t\t...settings.transforms,\n\t\t\t\t\tsupportedMobileTransforms: transformationCategory( name ),\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\n\t\treturn settings;\n\t}\n);\n\n/**\n * Function to register core blocks provided by the block editor.\n *\n * @example\n * ```js\n * import { registerCoreBlocks } from '@wordpress/block-library';\n *\n * registerCoreBlocks();\n * ```\n */\nexport const registerCoreBlocks = () => {\n\t// When adding new blocks to this list please also consider updating /src/block-support/supported-blocks.json in the Gutenberg-Mobile repo\n\t[\n\t\tparagraph,\n\t\theading,\n\t\tdevOnly( code ),\n\t\tmissing,\n\t\tmore,\n\t\timage,\n\t\tvideo,\n\t\tnextpage,\n\t\tseparator,\n\t\tlist,\n\t\tlistItem,\n\t\tquote,\n\t\tmediaText,\n\t\tpreformatted,\n\t\tgallery,\n\t\tcolumns,\n\t\tcolumn,\n\t\tgroup,\n\t\tclassic,\n\t\tbutton,\n\t\tspacer,\n\t\tshortcode,\n\t\tbuttons,\n\t\tlatestPosts,\n\t\tverse,\n\t\tcover,\n\t\tsocialLink,\n\t\tsocialLinks,\n\t\tpullquote,\n\t\tfile,\n\t\taudio,\n\t\treusableBlock,\n\t\tsearch,\n\t\tembed,\n\t]\n\t\t.filter( Boolean )\n\t\t.forEach( ( { init } ) => init() );\n\n\tregisterBlockVariations( socialLink );\n\tsetDefaultBlockName( paragraph.name );\n\tsetFreeformContentHandlerName( classic.name );\n\tsetUnregisteredTypeHandlerName( missing.name );\n\tif ( group ) {\n\t\tsetGroupingBlockName( group.name );\n\t}\n};\n\n/**\n * Dictates which block types are considered \"new.\" For each of the block types\n * below, if the native host app does not already have an impression count set,\n * an initial count will be set. When a block type's impression count is greater\n * than 0, a \"new\" badge is displayed on the block type within the block\n * inserter.\n *\n * With the below example, the Audio block will be displayed as \"new\" until its\n * impression count reaches 0, which occurs by various actions decrementing\n * the impression count.\n *\n * {\n * \t[ audio.name ]: 40\n * }\n *\n * @constant {{ string, number }}\n */\nexport const NEW_BLOCK_TYPES = {};\n"],"mappings":";;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,OAAA,GAAAD,OAAA;AAQA,IAAAE,MAAA,GAAAF,OAAA;AAKA,IAAAG,SAAA,GAAAC,uBAAA,CAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAD,uBAAA,CAAAJ,OAAA;AACA,IAAAM,OAAA,GAAAF,uBAAA,CAAAJ,OAAA;AACA,IAAAO,KAAA,GAAAH,uBAAA,CAAAJ,OAAA;AACA,IAAAQ,OAAA,GAAAJ,uBAAA,CAAAJ,OAAA;AACA,IAAAS,QAAA,GAAAL,uBAAA,CAAAJ,OAAA;AACA,IAAAU,KAAA,GAAAN,uBAAA,CAAAJ,OAAA;AACA,IAAAW,MAAA,GAAAP,uBAAA,CAAAJ,OAAA;AACA,IAAAY,QAAA,GAAAR,uBAAA,CAAAJ,OAAA;AACA,IAAAa,UAAA,GAAAT,uBAAA,CAAAJ,OAAA;AACA,IAAAc,IAAA,GAAAV,uBAAA,CAAAJ,OAAA;AACA,IAAAe,OAAA,GAAAX,uBAAA,CAAAJ,OAAA;AACA,IAAAgB,MAAA,GAAAZ,uBAAA,CAAAJ,OAAA;AACA,IAAAiB,KAAA,GAAAb,uBAAA,CAAAJ,OAAA;AACA,IAAAkB,KAAA,GAAAd,uBAAA,CAAAJ,OAAA;AACA,IAAAmB,IAAA,GAAAf,uBAAA,CAAAJ,OAAA;AACA,IAAAoB,IAAA,GAAAhB,uBAAA,CAAA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AA,kBAAA;AAiBO,MAAMQ,eAAe,GAAAvC,OAAA,CAAAuC,eAAA,GAAG,CAAC,CAAC"}
|
|
@@ -14,7 +14,7 @@ var _edit = _interopRequireDefault(require("./edit"));
|
|
|
14
14
|
/**
|
|
15
15
|
* Internal dependencies
|
|
16
16
|
*/
|
|
17
|
-
const metadata = {
|
|
17
|
+
const metadata = exports.metadata = {
|
|
18
18
|
$schema: "https://schemas.wp.org/trunk/block.json",
|
|
19
19
|
apiVersion: 3,
|
|
20
20
|
name: "core/latest-comments",
|
|
@@ -62,22 +62,23 @@ const metadata = {
|
|
|
62
62
|
__experimentalDefaultControls: {
|
|
63
63
|
fontSize: true
|
|
64
64
|
}
|
|
65
|
+
},
|
|
66
|
+
interactivity: {
|
|
67
|
+
clientNavigation: true
|
|
65
68
|
}
|
|
66
69
|
},
|
|
67
70
|
editorStyle: "wp-block-latest-comments-editor",
|
|
68
71
|
style: "wp-block-latest-comments"
|
|
69
72
|
};
|
|
70
|
-
exports.metadata = metadata;
|
|
71
73
|
const {
|
|
72
74
|
name
|
|
73
75
|
} = metadata;
|
|
74
76
|
exports.name = name;
|
|
75
|
-
const settings = {
|
|
77
|
+
const settings = exports.settings = {
|
|
76
78
|
icon: _icons.comment,
|
|
77
79
|
example: {},
|
|
78
80
|
edit: _edit.default
|
|
79
81
|
};
|
|
80
|
-
exports.settings = settings;
|
|
81
82
|
const init = () => (0, _initBlock.default)({
|
|
82
83
|
name,
|
|
83
84
|
metadata,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_icons","require","_initBlock","_interopRequireDefault","_edit","metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","commentsToShow","type","minimum","maximum","displayAvatar","displayDate","displayExcerpt","supports","align","html","spacing","margin","padding","typography","fontSize","lineHeight","__experimentalFontFamily","__experimentalFontWeight","__experimentalFontStyle","__experimentalTextTransform","__experimentalTextDecoration","__experimentalLetterSpacing","__experimentalDefaultControls","
|
|
1
|
+
{"version":3,"names":["_icons","require","_initBlock","_interopRequireDefault","_edit","metadata","exports","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","commentsToShow","type","minimum","maximum","displayAvatar","displayDate","displayExcerpt","supports","align","html","spacing","margin","padding","typography","fontSize","lineHeight","__experimentalFontFamily","__experimentalFontWeight","__experimentalFontStyle","__experimentalTextTransform","__experimentalTextDecoration","__experimentalLetterSpacing","__experimentalDefaultControls","interactivity","clientNavigation","editorStyle","style","settings","icon","example","edit","init","initBlock"],"sources":["@wordpress/block-library/src/latest-comments/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { comment as icon } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport metadata from './block.json';\nimport edit from './edit';\n\nconst { name } = metadata;\n\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\texample: {},\n\tedit,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],"mappings":";;;;;;;AAGA,IAAAA,MAAA,GAAAC,OAAA;AAKA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,KAAA,GAAAD,sBAAA,CAAAF,OAAA;AAVA;AACA;AACA;AAGA;AACA;AACA;AAFA,MAAAI,QAAA,GAAAC,OAAA,CAAAD,QAAA;EAAAE,OAAA;EAAAC,UAAA;EAAAC,IAAA;EAAAC,KAAA;EAAAC,QAAA;EAAAC,WAAA;EAAAC,QAAA;EAAAC,UAAA;EAAAC,UAAA;IAAAC,cAAA;MAAAC,IAAA;MAAA;MAAAC,OAAA;MAAAC,OAAA;IAAA;IAAAC,aAAA;MAAAH,IAAA;MAAA;IAAA;IAAAI,WAAA;MAAAJ,IAAA;MAAA;IAAA;IAAAK,cAAA;MAAAL,IAAA;MAAA;IAAA;EAAA;EAAAM,QAAA;IAAAC,KAAA;IAAAC,IAAA;IAAAC,OAAA;MAAAC,MAAA;MAAAC,OAAA;IAAA;IAAAC,UAAA;MAAAC,QAAA;MAAAC,UAAA;MAAAC,wBAAA;MAAAC,wBAAA;MAAAC,uBAAA;MAAAC,2BAAA;MAAAC,4BAAA;MAAAC,2BAAA;MAAAC,6BAAA;QAAAR,QAAA;MAAA;IAAA;IAAAS,aAAA;MAAAC,gBAAA;IAAA;EAAA;EAAAC,WAAA;EAAAC,KAAA;AAAA;AAOA,MAAM;EAAEjC;AAAK,CAAC,GAAGJ,QAAQ;AAACC,OAAA,CAAAG,IAAA,GAAAA,IAAA;AAInB,MAAMkC,QAAQ,GAAArC,OAAA,CAAAqC,QAAA,GAAG;EACvBC,IAAI,EAAJA,cAAI;EACJC,OAAO,EAAE,CAAC,CAAC;EACXC,IAAI,EAAJA;AACD,CAAC;AAEM,MAAMC,IAAI,GAAGA,CAAA,KAAM,IAAAC,kBAAS,EAAE;EAAEvC,IAAI;EAAEJ,QAAQ;EAAEsC;AAAS,CAAE,CAAC;AAACrC,OAAA,CAAAyC,IAAA,GAAAA,IAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_","require","_default","
|
|
1
|
+
{"version":3,"names":["_","require","_default","exports","default","init"],"sources":["@wordpress/block-library/src/latest-comments/init.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport { init } from './';\n\nexport default init();\n"],"mappings":";;;;;;AAGA,IAAAA,CAAA,GAAAC,OAAA;AAHA;AACA;AACA;AAFA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAKe,IAAAC,MAAI,EAAC,CAAC"}
|
|
@@ -4,10 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.MIN_EXCERPT_LENGTH = exports.MAX_POSTS_COLUMNS = exports.MAX_EXCERPT_LENGTH = void 0;
|
|
7
|
-
const MIN_EXCERPT_LENGTH = 10;
|
|
8
|
-
exports.
|
|
9
|
-
const
|
|
10
|
-
exports.MAX_EXCERPT_LENGTH = MAX_EXCERPT_LENGTH;
|
|
11
|
-
const MAX_POSTS_COLUMNS = 6;
|
|
12
|
-
exports.MAX_POSTS_COLUMNS = MAX_POSTS_COLUMNS;
|
|
7
|
+
const MIN_EXCERPT_LENGTH = exports.MIN_EXCERPT_LENGTH = 10;
|
|
8
|
+
const MAX_EXCERPT_LENGTH = exports.MAX_EXCERPT_LENGTH = 100;
|
|
9
|
+
const MAX_POSTS_COLUMNS = exports.MAX_POSTS_COLUMNS = 6;
|
|
13
10
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MIN_EXCERPT_LENGTH","exports","MAX_EXCERPT_LENGTH","MAX_POSTS_COLUMNS"],"sources":["@wordpress/block-library/src/latest-posts/constants.js"],"sourcesContent":["export const MIN_EXCERPT_LENGTH = 10;\nexport const MAX_EXCERPT_LENGTH = 100;\nexport const MAX_POSTS_COLUMNS = 6;\n"],"mappings":";;;;;;AAAO,MAAMA,kBAAkB,
|
|
1
|
+
{"version":3,"names":["MIN_EXCERPT_LENGTH","exports","MAX_EXCERPT_LENGTH","MAX_POSTS_COLUMNS"],"sources":["@wordpress/block-library/src/latest-posts/constants.js"],"sourcesContent":["export const MIN_EXCERPT_LENGTH = 10;\nexport const MAX_EXCERPT_LENGTH = 100;\nexport const MAX_POSTS_COLUMNS = 6;\n"],"mappings":";;;;;;AAAO,MAAMA,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,EAAE;AAC7B,MAAME,kBAAkB,GAAAD,OAAA,CAAAC,kBAAA,GAAG,GAAG;AAC9B,MAAMC,iBAAiB,GAAAF,OAAA,CAAAE,iBAAA,GAAG,CAAC"}
|
|
@@ -119,6 +119,9 @@ const metadata = {
|
|
|
119
119
|
__experimentalDefaultControls: {
|
|
120
120
|
fontSize: true
|
|
121
121
|
}
|
|
122
|
+
},
|
|
123
|
+
interactivity: {
|
|
124
|
+
clientNavigation: true
|
|
122
125
|
}
|
|
123
126
|
},
|
|
124
127
|
editorStyle: "wp-block-latest-posts-editor",
|
|
@@ -127,7 +130,7 @@ const metadata = {
|
|
|
127
130
|
const {
|
|
128
131
|
attributes
|
|
129
132
|
} = metadata;
|
|
130
|
-
var _default = [{
|
|
133
|
+
var _default = exports.default = [{
|
|
131
134
|
attributes: {
|
|
132
135
|
...attributes,
|
|
133
136
|
categories: {
|
|
@@ -152,5 +155,4 @@ var _default = [{
|
|
|
152
155
|
}) => categories && 'string' === typeof categories,
|
|
153
156
|
save: () => null
|
|
154
157
|
}];
|
|
155
|
-
exports.default = _default;
|
|
156
158
|
//# sourceMappingURL=deprecated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","categories","type","items","selectedAuthor","postsToShow","displayPostContent","displayPostContentRadio","excerptLength","displayAuthor","displayPostDate","postLayout","columns","order","orderBy","displayFeaturedImage","featuredImageAlign","featuredImageSizeSlug","featuredImageSizeWidth","featuredImageSizeHeight","addLinkToFeaturedImage","supports","align","html","color","gradients","link","__experimentalDefaultControls","background","text","spacing","margin","padding","typography","fontSize","lineHeight","__experimentalFontFamily","__experimentalFontWeight","__experimentalFontStyle","__experimentalTextTransform","__experimentalTextDecoration","__experimentalLetterSpacing","editorStyle","style","_default","migrate","oldAttributes","id","Number","isEligible","save"
|
|
1
|
+
{"version":3,"names":["metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","categories","type","items","selectedAuthor","postsToShow","displayPostContent","displayPostContentRadio","excerptLength","displayAuthor","displayPostDate","postLayout","columns","order","orderBy","displayFeaturedImage","featuredImageAlign","featuredImageSizeSlug","featuredImageSizeWidth","featuredImageSizeHeight","addLinkToFeaturedImage","supports","align","html","color","gradients","link","__experimentalDefaultControls","background","text","spacing","margin","padding","typography","fontSize","lineHeight","__experimentalFontFamily","__experimentalFontWeight","__experimentalFontStyle","__experimentalTextTransform","__experimentalTextDecoration","__experimentalLetterSpacing","interactivity","clientNavigation","editorStyle","style","_default","exports","default","migrate","oldAttributes","id","Number","isEligible","save"],"sources":["@wordpress/block-library/src/latest-posts/deprecated.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport metadata from './block.json';\n\nconst { attributes } = metadata;\n\nexport default [\n\t{\n\t\tattributes: {\n\t\t\t...attributes,\n\t\t\tcategories: {\n\t\t\t\ttype: 'string',\n\t\t\t},\n\t\t},\n\t\tsupports: {\n\t\t\talign: true,\n\t\t\thtml: false,\n\t\t},\n\t\tmigrate: ( oldAttributes ) => {\n\t\t\t// This needs the full category object, not just the ID.\n\t\t\treturn {\n\t\t\t\t...oldAttributes,\n\t\t\t\tcategories: [ { id: Number( oldAttributes.categories ) } ],\n\t\t\t};\n\t\t},\n\t\tisEligible: ( { categories } ) =>\n\t\t\tcategories && 'string' === typeof categories,\n\t\tsave: () => null,\n\t},\n];\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAFA,MAAAA,QAAA;EAAAC,OAAA;EAAAC,UAAA;EAAAC,IAAA;EAAAC,KAAA;EAAAC,QAAA;EAAAC,WAAA;EAAAC,QAAA;EAAAC,UAAA;EAAAC,UAAA;IAAAC,UAAA;MAAAC,IAAA;MAAAC,KAAA;QAAAD,IAAA;MAAA;IAAA;IAAAE,cAAA;MAAAF,IAAA;IAAA;IAAAG,WAAA;MAAAH,IAAA;MAAA;IAAA;IAAAI,kBAAA;MAAAJ,IAAA;MAAA;IAAA;IAAAK,uBAAA;MAAAL,IAAA;MAAA;IAAA;IAAAM,aAAA;MAAAN,IAAA;MAAA;IAAA;IAAAO,aAAA;MAAAP,IAAA;MAAA;IAAA;IAAAQ,eAAA;MAAAR,IAAA;MAAA;IAAA;IAAAS,UAAA;MAAAT,IAAA;MAAA;IAAA;IAAAU,OAAA;MAAAV,IAAA;MAAA;IAAA;IAAAW,KAAA;MAAAX,IAAA;MAAA;IAAA;IAAAY,OAAA;MAAAZ,IAAA;MAAA;IAAA;IAAAa,oBAAA;MAAAb,IAAA;MAAA;IAAA;IAAAc,kBAAA;MAAAd,IAAA;MAA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@ class LatestPostsEdit extends _element.Component {
|
|
|
259
259
|
}, (0, _i18n.__)('CUSTOMIZE'))));
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
var _default = (0, _compose.compose)([(0, _data.withSelect)((select, {
|
|
262
|
+
var _default = exports.default = (0, _compose.compose)([(0, _data.withSelect)((select, {
|
|
263
263
|
name
|
|
264
264
|
}) => {
|
|
265
265
|
const blockType = select(_blocks.store).getBlockType(name);
|
|
@@ -274,5 +274,4 @@ var _default = (0, _compose.compose)([(0, _data.withSelect)((select, {
|
|
|
274
274
|
openGeneralSidebar: () => openGeneralSidebar('edit-post/block')
|
|
275
275
|
};
|
|
276
276
|
}), _compose.withPreferredColorScheme])(LatestPostsEdit);
|
|
277
|
-
exports.default = _default;
|
|
278
277
|
//# sourceMappingURL=edit.native.js.map
|