@wordpress/block-library 10.1.0 → 10.1.1-next.v.202607070741.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 +9 -0
- package/build/accordion/edit.cjs +0 -1
- package/build/accordion/edit.cjs.map +2 -2
- package/build/accordion/view.cjs +23 -0
- package/build/accordion/view.cjs.map +2 -2
- package/build/accordion-heading/deprecated.cjs +121 -1
- package/build/accordion-heading/deprecated.cjs.map +2 -2
- package/build/accordion-heading/edit.cjs +18 -1
- package/build/accordion-heading/edit.cjs.map +3 -3
- package/build/accordion-heading/save.cjs +18 -1
- package/build/accordion-heading/save.cjs.map +3 -3
- package/build/accordion-panel/edit.cjs +1 -1
- package/build/accordion-panel/edit.cjs.map +2 -2
- package/build/archives/edit.cjs +0 -1
- package/build/archives/edit.cjs.map +2 -2
- package/build/audio/edit.cjs +0 -1
- package/build/audio/edit.cjs.map +2 -2
- package/build/avatar/edit.cjs +0 -1
- package/build/avatar/edit.cjs.map +2 -2
- package/build/avatar/user-control.cjs +0 -1
- package/build/avatar/user-control.cjs.map +2 -2
- package/build/categories/edit.cjs +0 -1
- package/build/categories/edit.cjs.map +2 -2
- package/build/code/transforms.cjs +5 -3
- package/build/code/transforms.cjs.map +2 -2
- package/build/column/edit.cjs +0 -1
- package/build/column/edit.cjs.map +2 -2
- package/build/columns/edit.cjs +0 -1
- package/build/columns/edit.cjs.map +2 -2
- package/build/columns/transforms.cjs +9 -2
- package/build/columns/transforms.cjs.map +2 -2
- package/build/comment-author-avatar/edit.cjs +0 -1
- package/build/comment-author-avatar/edit.cjs.map +2 -2
- package/build/comments-pagination/comments-pagination-arrow-controls.cjs +0 -1
- package/build/comments-pagination/comments-pagination-arrow-controls.cjs.map +2 -2
- package/build/cover/edit/inspector-controls.cjs +1 -3
- package/build/cover/edit/inspector-controls.cjs.map +2 -2
- package/build/details/transforms.cjs +3 -1
- package/build/details/transforms.cjs.map +2 -2
- package/build/embed/edit.cjs +2 -3
- package/build/embed/edit.cjs.map +2 -2
- package/build/embed/embed-placeholder.cjs +20 -20
- package/build/embed/embed-placeholder.cjs.map +3 -3
- package/build/file/inspector.cjs +0 -2
- package/build/file/inspector.cjs.map +2 -2
- package/build/form/edit.cjs +0 -2
- package/build/form/edit.cjs.map +2 -2
- package/build/freeform/convert-to-blocks-button.cjs +52 -0
- package/build/freeform/convert-to-blocks-button.cjs.map +7 -0
- package/build/freeform/edit.cjs +14 -33
- package/build/freeform/edit.cjs.map +3 -3
- package/build/freeform/index.cjs +1 -7
- package/build/freeform/index.cjs.map +3 -3
- package/build/gallery/block.json +4 -1
- package/build/gallery/dynamic-gallery.cjs +263 -0
- package/build/gallery/dynamic-gallery.cjs.map +7 -0
- package/build/gallery/dynamic-source.cjs +85 -0
- package/build/gallery/dynamic-source.cjs.map +7 -0
- package/build/gallery/edit.cjs +285 -205
- package/build/gallery/edit.cjs.map +3 -3
- package/build/gallery/gallery.cjs +0 -3
- package/build/gallery/gallery.cjs.map +2 -2
- package/build/gallery/index.cjs +2 -0
- package/build/gallery/index.cjs.map +3 -3
- package/build/gallery/save.cjs +16 -12
- package/build/gallery/save.cjs.map +2 -2
- package/build/gallery/use-dynamic-gallery.cjs +181 -0
- package/build/gallery/use-dynamic-gallery.cjs.map +7 -0
- package/build/gallery/variations.cjs +54 -0
- package/build/gallery/variations.cjs.map +7 -0
- package/build/group/edit.cjs +1 -2
- package/build/group/edit.cjs.map +2 -2
- package/build/group/transforms.cjs +3 -7
- package/build/group/transforms.cjs.map +2 -2
- package/build/heading/edit.cjs +10 -3
- package/build/heading/edit.cjs.map +2 -2
- package/build/html/block.json +2 -2
- package/build/html/edit.cjs +65 -23
- package/build/html/edit.cjs.map +3 -3
- package/build/html/index.cjs +3 -3
- package/build/html/index.cjs.map +2 -2
- package/build/html/modal.cjs +4 -8
- package/build/html/modal.cjs.map +2 -2
- package/build/html/save.cjs +2 -4
- package/build/html/save.cjs.map +2 -2
- package/build/html/transforms.cjs +7 -5
- package/build/html/transforms.cjs.map +2 -2
- package/build/image/animated-gif-convert-control.cjs +105 -0
- package/build/image/animated-gif-convert-control.cjs.map +7 -0
- package/build/image/edit.cjs +34 -0
- package/build/image/edit.cjs.map +2 -2
- package/build/image/image.cjs +38 -66
- package/build/image/image.cjs.map +3 -3
- package/build/index.cjs.map +2 -2
- package/build/latest-comments/edit.cjs +0 -2
- package/build/latest-comments/edit.cjs.map +2 -2
- package/build/latest-posts/block.json +8 -9
- package/build/latest-posts/constants.cjs +0 -3
- package/build/latest-posts/constants.cjs.map +2 -2
- package/build/latest-posts/deprecated.cjs +100 -8
- package/build/latest-posts/deprecated.cjs.map +2 -2
- package/build/latest-posts/edit.cjs +62 -76
- package/build/latest-posts/edit.cjs.map +2 -2
- package/build/list/ordered-list-settings.cjs +0 -1
- package/build/list/ordered-list-settings.cjs.map +2 -2
- package/build/media-text/edit.cjs +0 -1
- package/build/media-text/edit.cjs.map +2 -2
- package/build/missing/edit.cjs +1 -3
- package/build/missing/edit.cjs.map +2 -2
- package/build/navigation/edit/index.cjs +0 -1
- package/build/navigation/edit/index.cjs.map +2 -2
- package/build/navigation/edit/overlay-menu-preview-controls.cjs +0 -1
- package/build/navigation/edit/overlay-menu-preview-controls.cjs.map +2 -2
- package/build/navigation/edit/overlay-menu-preview.cjs +0 -1
- package/build/navigation/edit/overlay-menu-preview.cjs.map +2 -2
- package/build/navigation/edit/overlay-template-part-selector.cjs +0 -1
- package/build/navigation/edit/overlay-template-part-selector.cjs.map +2 -2
- package/build/navigation/edit/overlay-visibility-control.cjs +0 -1
- package/build/navigation/edit/overlay-visibility-control.cjs.map +2 -2
- package/build/navigation-link/shared/use-link-preview.cjs +11 -1
- package/build/navigation-link/shared/use-link-preview.cjs.map +2 -2
- package/build/navigation-overlay-close/edit.cjs +0 -1
- package/build/navigation-overlay-close/edit.cjs.map +2 -2
- package/build/page-list/edit.cjs +0 -1
- package/build/page-list/edit.cjs.map +2 -2
- package/build/playlist/block.json +1 -7
- package/build/playlist/context.cjs +36 -0
- package/build/playlist/context.cjs.map +7 -0
- package/build/playlist/edit.cjs +43 -69
- package/build/playlist/edit.cjs.map +3 -3
- package/build/playlist/utils.cjs +0 -3
- package/build/playlist/utils.cjs.map +3 -3
- package/build/playlist/view.cjs +4 -4
- package/build/playlist/view.cjs.map +2 -2
- package/build/playlist-track/block.json +1 -4
- package/build/playlist-track/edit.cjs +22 -8
- package/build/playlist-track/edit.cjs.map +3 -3
- package/build/post-author/edit.cjs +0 -2
- package/build/post-author/edit.cjs.map +2 -2
- package/build/post-excerpt/edit.cjs +0 -1
- package/build/post-excerpt/edit.cjs.map +2 -2
- package/build/post-featured-image/overlay-controls.cjs +1 -2
- package/build/post-featured-image/overlay-controls.cjs.map +2 -2
- package/build/post-navigation-link/edit.cjs +0 -2
- package/build/post-navigation-link/edit.cjs.map +2 -2
- package/build/query/edit/inspector-controls/author-control.cjs +1 -2
- package/build/query/edit/inspector-controls/author-control.cjs.map +2 -2
- package/build/query/edit/inspector-controls/format-controls.cjs +1 -2
- package/build/query/edit/inspector-controls/format-controls.cjs.map +2 -2
- package/build/query/edit/inspector-controls/index.cjs +0 -3
- package/build/query/edit/inspector-controls/index.cjs.map +2 -2
- package/build/query/edit/inspector-controls/order-control.cjs +0 -1
- package/build/query/edit/inspector-controls/order-control.cjs.map +2 -2
- package/build/query/edit/inspector-controls/parent-control.cjs +0 -1
- package/build/query/edit/inspector-controls/parent-control.cjs.map +2 -2
- package/build/query/edit/inspector-controls/per-page-control.cjs +0 -1
- package/build/query/edit/inspector-controls/per-page-control.cjs.map +2 -2
- package/build/query/edit/inspector-controls/sticky-control.cjs +0 -1
- package/build/query/edit/inspector-controls/sticky-control.cjs.map +2 -2
- package/build/query/edit/inspector-controls/taxonomy-controls.cjs +1 -2
- package/build/query/edit/inspector-controls/taxonomy-controls.cjs.map +2 -2
- package/build/query-pagination/query-pagination-arrow-controls.cjs +0 -1
- package/build/query-pagination/query-pagination-arrow-controls.cjs.map +2 -2
- package/build/query-pagination-numbers/edit.cjs +0 -1
- package/build/query-pagination-numbers/edit.cjs.map +2 -2
- package/build/quote/transforms.cjs +1 -5
- package/build/quote/transforms.cjs.map +2 -2
- package/build/rss/edit.cjs +0 -3
- package/build/rss/edit.cjs.map +2 -2
- package/build/search/edit.cjs +0 -4
- package/build/search/edit.cjs.map +2 -2
- package/build/separator/edit.cjs +1 -2
- package/build/separator/edit.cjs.map +2 -2
- package/build/site-logo/edit.cjs +34 -63
- package/build/site-logo/edit.cjs.map +3 -3
- package/build/social-links/edit.cjs +0 -1
- package/build/social-links/edit.cjs.map +2 -2
- package/build/spacer/controls.cjs +2 -4
- package/build/spacer/controls.cjs.map +2 -2
- package/build/spacer/edit.cjs +1 -2
- package/build/spacer/edit.cjs.map +2 -2
- package/build/tab-list/block.json +3 -2
- package/build/tab-list/edit.cjs +38 -51
- package/build/tab-list/edit.cjs.map +3 -3
- package/build/tab-list/save.cjs +4 -3
- package/build/tab-list/save.cjs.map +2 -2
- package/build/tab-panel/controls.cjs +2 -4
- package/build/tab-panel/controls.cjs.map +3 -3
- package/build/tab-panels/edit.cjs +2 -4
- package/build/tab-panels/edit.cjs.map +3 -3
- package/build/table-of-contents/edit.cjs +0 -1
- package/build/table-of-contents/edit.cjs.map +2 -2
- package/build/tabs/edit.cjs +2 -2
- package/build/tabs/edit.cjs.map +3 -3
- package/build/tabs/tab-toolbar-controls.cjs +74 -0
- package/build/tabs/tab-toolbar-controls.cjs.map +7 -0
- package/build/tabs/use-tab-actions.cjs +87 -0
- package/build/tabs/use-tab-actions.cjs.map +7 -0
- package/build/tabs/use-tab-list-items-sync.cjs +4 -4
- package/build/tabs/use-tab-list-items-sync.cjs.map +2 -2
- package/build/tag-cloud/edit.cjs +2 -6
- package/build/tag-cloud/edit.cjs.map +2 -2
- package/build/template-part/edit/advanced-controls.cjs +0 -1
- package/build/template-part/edit/advanced-controls.cjs.map +2 -2
- package/build/template-part/edit/import-controls.cjs +1 -2
- package/build/template-part/edit/import-controls.cjs.map +2 -2
- package/build/terms-query/edit/inspector-controls/include-control.cjs +0 -1
- package/build/terms-query/edit/inspector-controls/include-control.cjs.map +2 -2
- package/build/terms-query/edit/inspector-controls/inherit-control.cjs +0 -1
- package/build/terms-query/edit/inspector-controls/inherit-control.cjs.map +2 -2
- package/build/terms-query/edit/inspector-controls/max-terms-control.cjs +0 -1
- package/build/terms-query/edit/inspector-controls/max-terms-control.cjs.map +2 -2
- package/build/terms-query/edit/inspector-controls/order-control.cjs +0 -1
- package/build/terms-query/edit/inspector-controls/order-control.cjs.map +2 -2
- package/build/terms-query/edit/inspector-controls/taxonomy-control.cjs +0 -1
- package/build/terms-query/edit/inspector-controls/taxonomy-control.cjs.map +2 -2
- package/build/text-columns/edit.cjs +0 -1
- package/build/text-columns/edit.cjs.map +2 -2
- package/build/utils/gif-conversion-attributes.cjs +40 -0
- package/build/utils/gif-conversion-attributes.cjs.map +7 -0
- package/build/verse/block.json +3 -1
- package/build/video/block.json +6 -0
- package/build/video/edit-common-settings.cjs +0 -1
- package/build/video/edit-common-settings.cjs.map +2 -2
- package/build/video/edit.cjs +28 -3
- package/build/video/edit.cjs.map +3 -3
- package/build/video/gif-restore-control.cjs +73 -0
- package/build/video/gif-restore-control.cjs.map +7 -0
- package/build/video/index.cjs +2 -0
- package/build/video/index.cjs.map +3 -3
- package/build/video/save.cjs +7 -1
- package/build/video/save.cjs.map +2 -2
- package/build/video/tracks-editor.cjs +0 -1
- package/build/video/tracks-editor.cjs.map +2 -2
- package/build/video/variations.cjs +75 -0
- package/build/video/variations.cjs.map +7 -0
- package/build-module/accordion/edit.mjs +0 -1
- package/build-module/accordion/edit.mjs.map +2 -2
- package/build-module/accordion/view.mjs +23 -0
- package/build-module/accordion/view.mjs.map +2 -2
- package/build-module/accordion-heading/deprecated.mjs +121 -1
- package/build-module/accordion-heading/deprecated.mjs.map +2 -2
- package/build-module/accordion-heading/edit.mjs +8 -1
- package/build-module/accordion-heading/edit.mjs.map +2 -2
- package/build-module/accordion-heading/save.mjs +8 -1
- package/build-module/accordion-heading/save.mjs.map +2 -2
- package/build-module/accordion-panel/edit.mjs +1 -1
- package/build-module/accordion-panel/edit.mjs.map +2 -2
- package/build-module/archives/edit.mjs +0 -1
- package/build-module/archives/edit.mjs.map +2 -2
- package/build-module/audio/edit.mjs +0 -1
- package/build-module/audio/edit.mjs.map +2 -2
- package/build-module/avatar/edit.mjs +0 -1
- package/build-module/avatar/edit.mjs.map +2 -2
- package/build-module/avatar/user-control.mjs +0 -1
- package/build-module/avatar/user-control.mjs.map +2 -2
- package/build-module/categories/edit.mjs +0 -1
- package/build-module/categories/edit.mjs.map +2 -2
- package/build-module/code/transforms.mjs +6 -4
- package/build-module/code/transforms.mjs.map +2 -2
- package/build-module/column/edit.mjs +0 -1
- package/build-module/column/edit.mjs.map +2 -2
- package/build-module/columns/edit.mjs +0 -1
- package/build-module/columns/edit.mjs.map +2 -2
- package/build-module/columns/transforms.mjs +9 -2
- package/build-module/columns/transforms.mjs.map +2 -2
- package/build-module/comment-author-avatar/edit.mjs +0 -1
- package/build-module/comment-author-avatar/edit.mjs.map +2 -2
- package/build-module/comments-pagination/comments-pagination-arrow-controls.mjs +0 -1
- package/build-module/comments-pagination/comments-pagination-arrow-controls.mjs.map +2 -2
- package/build-module/cover/edit/inspector-controls.mjs +1 -3
- package/build-module/cover/edit/inspector-controls.mjs.map +2 -2
- package/build-module/details/transforms.mjs +7 -2
- package/build-module/details/transforms.mjs.map +2 -2
- package/build-module/embed/edit.mjs +2 -3
- package/build-module/embed/edit.mjs.map +2 -2
- package/build-module/embed/embed-placeholder.mjs +20 -23
- package/build-module/embed/embed-placeholder.mjs.map +2 -2
- package/build-module/file/inspector.mjs +0 -2
- package/build-module/file/inspector.mjs.map +2 -2
- package/build-module/form/edit.mjs +0 -2
- package/build-module/form/edit.mjs.map +2 -2
- package/build-module/freeform/convert-to-blocks-button.mjs +31 -0
- package/build-module/freeform/convert-to-blocks-button.mjs.map +7 -0
- package/build-module/freeform/edit.mjs +15 -34
- package/build-module/freeform/edit.mjs.map +2 -2
- package/build-module/freeform/index.mjs +1 -7
- package/build-module/freeform/index.mjs.map +2 -2
- package/build-module/gallery/block.json +4 -1
- package/build-module/gallery/dynamic-gallery.mjs +253 -0
- package/build-module/gallery/dynamic-gallery.mjs.map +7 -0
- package/build-module/gallery/dynamic-source.mjs +55 -0
- package/build-module/gallery/dynamic-source.mjs.map +7 -0
- package/build-module/gallery/edit.mjs +288 -206
- package/build-module/gallery/edit.mjs.map +2 -2
- package/build-module/gallery/gallery.mjs +0 -3
- package/build-module/gallery/gallery.mjs.map +2 -2
- package/build-module/gallery/index.mjs +2 -0
- package/build-module/gallery/index.mjs.map +2 -2
- package/build-module/gallery/save.mjs +16 -12
- package/build-module/gallery/save.mjs.map +2 -2
- package/build-module/gallery/use-dynamic-gallery.mjs +167 -0
- package/build-module/gallery/use-dynamic-gallery.mjs.map +7 -0
- package/build-module/gallery/variations.mjs +33 -0
- package/build-module/gallery/variations.mjs.map +7 -0
- package/build-module/group/edit.mjs +1 -2
- package/build-module/group/edit.mjs.map +2 -2
- package/build-module/group/transforms.mjs +7 -8
- package/build-module/group/transforms.mjs.map +2 -2
- package/build-module/heading/edit.mjs +11 -4
- package/build-module/heading/edit.mjs.map +2 -2
- package/build-module/html/block.json +2 -2
- package/build-module/html/edit.mjs +69 -25
- package/build-module/html/edit.mjs.map +2 -2
- package/build-module/html/index.mjs +3 -3
- package/build-module/html/index.mjs.map +2 -2
- package/build-module/html/modal.mjs +4 -8
- package/build-module/html/modal.mjs.map +2 -2
- package/build-module/html/save.mjs +2 -4
- package/build-module/html/save.mjs.map +2 -2
- package/build-module/html/transforms.mjs +8 -6
- package/build-module/html/transforms.mjs.map +2 -2
- package/build-module/image/animated-gif-convert-control.mjs +87 -0
- package/build-module/image/animated-gif-convert-control.mjs.map +7 -0
- package/build-module/image/edit.mjs +34 -0
- package/build-module/image/edit.mjs.map +2 -2
- package/build-module/image/image.mjs +28 -67
- package/build-module/image/image.mjs.map +2 -2
- package/build-module/index.mjs.map +2 -2
- package/build-module/latest-comments/edit.mjs +0 -2
- package/build-module/latest-comments/edit.mjs.map +2 -2
- package/build-module/latest-posts/block.json +8 -9
- package/build-module/latest-posts/constants.mjs +0 -2
- package/build-module/latest-posts/constants.mjs.map +2 -2
- package/build-module/latest-posts/deprecated.mjs +100 -8
- package/build-module/latest-posts/deprecated.mjs.map +2 -2
- package/build-module/latest-posts/edit.mjs +62 -77
- package/build-module/latest-posts/edit.mjs.map +2 -2
- package/build-module/list/ordered-list-settings.mjs +0 -1
- package/build-module/list/ordered-list-settings.mjs.map +2 -2
- package/build-module/media-text/edit.mjs +0 -1
- package/build-module/media-text/edit.mjs.map +2 -2
- package/build-module/missing/edit.mjs +1 -3
- package/build-module/missing/edit.mjs.map +2 -2
- package/build-module/navigation/edit/index.mjs +0 -1
- package/build-module/navigation/edit/index.mjs.map +2 -2
- package/build-module/navigation/edit/overlay-menu-preview-controls.mjs +0 -1
- package/build-module/navigation/edit/overlay-menu-preview-controls.mjs.map +2 -2
- package/build-module/navigation/edit/overlay-menu-preview.mjs +0 -1
- package/build-module/navigation/edit/overlay-menu-preview.mjs.map +2 -2
- package/build-module/navigation/edit/overlay-template-part-selector.mjs +0 -1
- package/build-module/navigation/edit/overlay-template-part-selector.mjs.map +2 -2
- package/build-module/navigation/edit/overlay-visibility-control.mjs +0 -1
- package/build-module/navigation/edit/overlay-visibility-control.mjs.map +2 -2
- package/build-module/navigation-link/shared/use-link-preview.mjs +11 -1
- package/build-module/navigation-link/shared/use-link-preview.mjs.map +2 -2
- package/build-module/navigation-overlay-close/edit.mjs +0 -1
- package/build-module/navigation-overlay-close/edit.mjs.map +2 -2
- package/build-module/page-list/edit.mjs +0 -1
- package/build-module/page-list/edit.mjs.map +2 -2
- package/build-module/playlist/block.json +1 -7
- package/build-module/playlist/context.mjs +11 -0
- package/build-module/playlist/context.mjs.map +7 -0
- package/build-module/playlist/edit.mjs +44 -70
- package/build-module/playlist/edit.mjs.map +2 -2
- package/build-module/playlist/utils.mjs +0 -3
- package/build-module/playlist/utils.mjs.map +2 -2
- package/build-module/playlist/view.mjs +4 -4
- package/build-module/playlist/view.mjs.map +2 -2
- package/build-module/playlist-track/block.json +1 -4
- package/build-module/playlist-track/edit.mjs +23 -9
- package/build-module/playlist-track/edit.mjs.map +2 -2
- package/build-module/post-author/edit.mjs +0 -2
- package/build-module/post-author/edit.mjs.map +2 -2
- package/build-module/post-excerpt/edit.mjs +0 -1
- package/build-module/post-excerpt/edit.mjs.map +2 -2
- package/build-module/post-featured-image/overlay-controls.mjs +1 -2
- package/build-module/post-featured-image/overlay-controls.mjs.map +2 -2
- package/build-module/post-navigation-link/edit.mjs +0 -2
- package/build-module/post-navigation-link/edit.mjs.map +2 -2
- package/build-module/query/edit/inspector-controls/author-control.mjs +1 -2
- package/build-module/query/edit/inspector-controls/author-control.mjs.map +2 -2
- package/build-module/query/edit/inspector-controls/format-controls.mjs +1 -2
- package/build-module/query/edit/inspector-controls/format-controls.mjs.map +2 -2
- package/build-module/query/edit/inspector-controls/index.mjs +0 -3
- package/build-module/query/edit/inspector-controls/index.mjs.map +2 -2
- package/build-module/query/edit/inspector-controls/order-control.mjs +0 -1
- package/build-module/query/edit/inspector-controls/order-control.mjs.map +2 -2
- package/build-module/query/edit/inspector-controls/parent-control.mjs +0 -1
- package/build-module/query/edit/inspector-controls/parent-control.mjs.map +2 -2
- package/build-module/query/edit/inspector-controls/per-page-control.mjs +0 -1
- package/build-module/query/edit/inspector-controls/per-page-control.mjs.map +2 -2
- package/build-module/query/edit/inspector-controls/sticky-control.mjs +0 -1
- package/build-module/query/edit/inspector-controls/sticky-control.mjs.map +2 -2
- package/build-module/query/edit/inspector-controls/taxonomy-controls.mjs +1 -2
- package/build-module/query/edit/inspector-controls/taxonomy-controls.mjs.map +2 -2
- package/build-module/query-pagination/query-pagination-arrow-controls.mjs +0 -1
- package/build-module/query-pagination/query-pagination-arrow-controls.mjs.map +2 -2
- package/build-module/query-pagination-numbers/edit.mjs +0 -1
- package/build-module/query-pagination-numbers/edit.mjs.map +2 -2
- package/build-module/quote/transforms.mjs +6 -6
- package/build-module/quote/transforms.mjs.map +2 -2
- package/build-module/rss/edit.mjs +0 -3
- package/build-module/rss/edit.mjs.map +2 -2
- package/build-module/search/edit.mjs +0 -4
- package/build-module/search/edit.mjs.map +2 -2
- package/build-module/separator/edit.mjs +1 -2
- package/build-module/separator/edit.mjs.map +2 -2
- package/build-module/site-logo/edit.mjs +34 -64
- package/build-module/site-logo/edit.mjs.map +2 -2
- package/build-module/social-links/edit.mjs +0 -1
- package/build-module/social-links/edit.mjs.map +2 -2
- package/build-module/spacer/controls.mjs +2 -4
- package/build-module/spacer/controls.mjs.map +2 -2
- package/build-module/spacer/edit.mjs +1 -2
- package/build-module/spacer/edit.mjs.map +2 -2
- package/build-module/tab-list/block.json +3 -2
- package/build-module/tab-list/edit.mjs +39 -52
- package/build-module/tab-list/edit.mjs.map +2 -2
- package/build-module/tab-list/save.mjs +5 -3
- package/build-module/tab-list/save.mjs.map +2 -2
- package/build-module/tab-panel/controls.mjs +2 -4
- package/build-module/tab-panel/controls.mjs.map +2 -2
- package/build-module/tab-panels/edit.mjs +2 -4
- package/build-module/tab-panels/edit.mjs.map +2 -2
- package/build-module/table-of-contents/edit.mjs +0 -1
- package/build-module/table-of-contents/edit.mjs.map +2 -2
- package/build-module/tabs/edit.mjs +2 -2
- package/build-module/tabs/edit.mjs.map +2 -2
- package/build-module/tabs/tab-toolbar-controls.mjs +46 -0
- package/build-module/tabs/tab-toolbar-controls.mjs.map +7 -0
- package/build-module/tabs/use-tab-actions.mjs +66 -0
- package/build-module/tabs/use-tab-actions.mjs.map +7 -0
- package/build-module/tabs/use-tab-list-items-sync.mjs +6 -6
- package/build-module/tabs/use-tab-list-items-sync.mjs.map +2 -2
- package/build-module/tag-cloud/edit.mjs +2 -6
- package/build-module/tag-cloud/edit.mjs.map +2 -2
- package/build-module/template-part/edit/advanced-controls.mjs +0 -1
- package/build-module/template-part/edit/advanced-controls.mjs.map +2 -2
- package/build-module/template-part/edit/import-controls.mjs +1 -2
- package/build-module/template-part/edit/import-controls.mjs.map +2 -2
- package/build-module/terms-query/edit/inspector-controls/include-control.mjs +0 -1
- package/build-module/terms-query/edit/inspector-controls/include-control.mjs.map +2 -2
- package/build-module/terms-query/edit/inspector-controls/inherit-control.mjs +0 -1
- package/build-module/terms-query/edit/inspector-controls/inherit-control.mjs.map +2 -2
- package/build-module/terms-query/edit/inspector-controls/max-terms-control.mjs +0 -1
- package/build-module/terms-query/edit/inspector-controls/max-terms-control.mjs.map +2 -2
- package/build-module/terms-query/edit/inspector-controls/order-control.mjs +0 -1
- package/build-module/terms-query/edit/inspector-controls/order-control.mjs.map +2 -2
- package/build-module/terms-query/edit/inspector-controls/taxonomy-control.mjs +0 -1
- package/build-module/terms-query/edit/inspector-controls/taxonomy-control.mjs.map +2 -2
- package/build-module/text-columns/edit.mjs +0 -1
- package/build-module/text-columns/edit.mjs.map +2 -2
- package/build-module/utils/gif-conversion-attributes.mjs +15 -0
- package/build-module/utils/gif-conversion-attributes.mjs.map +7 -0
- package/build-module/verse/block.json +3 -1
- package/build-module/video/block.json +6 -0
- package/build-module/video/edit-common-settings.mjs +0 -1
- package/build-module/video/edit-common-settings.mjs.map +2 -2
- package/build-module/video/edit.mjs +28 -3
- package/build-module/video/edit.mjs.map +2 -2
- package/build-module/video/gif-restore-control.mjs +55 -0
- package/build-module/video/gif-restore-control.mjs.map +7 -0
- package/build-module/video/index.mjs +2 -0
- package/build-module/video/index.mjs.map +2 -2
- package/build-module/video/save.mjs +7 -1
- package/build-module/video/save.mjs.map +2 -2
- package/build-module/video/tracks-editor.mjs +0 -1
- package/build-module/video/tracks-editor.mjs.map +2 -2
- package/build-module/video/variations.mjs +50 -0
- package/build-module/video/variations.mjs.map +7 -0
- package/build-style/accordion-panel/style-rtl.css +1 -2
- package/build-style/accordion-panel/style.css +1 -2
- package/build-style/audio/style-rtl.css +6 -0
- package/build-style/audio/style.css +6 -0
- package/build-style/audio/theme-rtl.css +6 -0
- package/build-style/audio/theme.css +6 -0
- package/build-style/columns/style-rtl.css +6 -0
- package/build-style/columns/style.css +6 -0
- package/build-style/common-rtl.css +6 -4
- package/build-style/common.css +6 -4
- package/build-style/editor-rtl.css +38 -3
- package/build-style/editor.css +38 -3
- package/build-style/embed/style-rtl.css +6 -0
- package/build-style/embed/style.css +6 -0
- package/build-style/embed/theme-rtl.css +6 -0
- package/build-style/embed/theme.css +6 -0
- package/build-style/freeform/editor-rtl.css +6 -0
- package/build-style/freeform/editor.css +6 -0
- package/build-style/gallery/editor-rtl.css +27 -3
- package/build-style/gallery/editor.css +27 -3
- package/build-style/gallery/style-rtl.css +6 -0
- package/build-style/gallery/style.css +6 -0
- package/build-style/gallery/theme-rtl.css +6 -0
- package/build-style/gallery/theme.css +6 -0
- package/build-style/html/editor-rtl.css +13 -0
- package/build-style/html/editor.css +13 -0
- package/build-style/image/editor-rtl.css +10 -0
- package/build-style/image/editor.css +10 -0
- package/build-style/image/style-rtl.css +6 -1
- package/build-style/image/style.css +6 -1
- package/build-style/image/theme-rtl.css +6 -0
- package/build-style/image/theme.css +6 -0
- package/build-style/latest-posts/style-rtl.css +26 -15
- package/build-style/latest-posts/style.css +26 -15
- package/build-style/navigation/editor-rtl.css +6 -0
- package/build-style/navigation/editor.css +6 -0
- package/build-style/navigation/style-rtl.css +6 -0
- package/build-style/navigation/style.css +6 -0
- package/build-style/navigation-submenu/editor-rtl.css +6 -0
- package/build-style/navigation-submenu/editor.css +6 -0
- package/build-style/page-list/editor-rtl.css +6 -0
- package/build-style/page-list/editor.css +6 -0
- package/build-style/playlist/style-rtl.css +121 -19
- package/build-style/playlist/style.css +121 -19
- package/build-style/post-template/style-rtl.css +6 -0
- package/build-style/post-template/style.css +6 -0
- package/build-style/query/editor-rtl.css +6 -0
- package/build-style/query/editor.css +6 -0
- package/build-style/rss/style-rtl.css +6 -0
- package/build-style/rss/style.css +6 -0
- package/build-style/shortcode/editor-rtl.css +6 -0
- package/build-style/shortcode/editor.css +6 -0
- package/build-style/style-rtl.css +145 -38
- package/build-style/style.css +145 -38
- package/build-style/table/editor-rtl.css +6 -0
- package/build-style/table/editor.css +6 -0
- package/build-style/table/theme-rtl.css +6 -0
- package/build-style/table/theme.css +6 -0
- package/build-style/template-part/editor-rtl.css +6 -0
- package/build-style/template-part/editor.css +6 -0
- package/build-style/theme-rtl.css +6 -0
- package/build-style/theme.css +6 -0
- package/build-style/video/style-rtl.css +6 -0
- package/build-style/video/style.css +6 -0
- package/build-style/video/theme-rtl.css +6 -0
- package/build-style/video/theme.css +6 -0
- package/package.json +43 -41
- package/src/accordion/README.md +1 -1
- package/src/accordion/edit.js +0 -1
- package/src/accordion/view.js +24 -0
- package/src/accordion-heading/README.md +1 -1
- package/src/accordion-heading/deprecated.js +122 -1
- package/src/accordion-heading/edit.js +12 -1
- package/src/accordion-heading/save.js +12 -1
- package/src/accordion-item/README.md +1 -1
- package/src/accordion-item/index.php +2 -1
- package/src/accordion-panel/edit.js +1 -1
- package/src/accordion-panel/style.scss +1 -4
- package/src/archives/edit.js +0 -1
- package/src/audio/edit.js +0 -1
- package/src/avatar/edit.js +0 -1
- package/src/avatar/user-control.js +0 -1
- package/src/categories/edit.js +0 -1
- package/src/code/transforms.js +6 -4
- package/src/column/edit.js +0 -1
- package/src/columns/edit.js +0 -1
- package/src/columns/transforms.js +9 -2
- package/src/comment-author-avatar/edit.js +0 -1
- package/src/comments-pagination/comments-pagination-arrow-controls.js +0 -1
- package/src/common.scss +0 -4
- package/src/cover/edit/inspector-controls.js +0 -2
- package/src/cover/test/edit.js +4 -4
- package/src/details/transforms.js +7 -2
- package/src/embed/edit.js +4 -5
- package/src/embed/embed-placeholder.js +16 -19
- package/src/file/inspector.js +0 -2
- package/src/form/edit.js +0 -2
- package/src/freeform/convert-to-blocks-button.js +33 -0
- package/src/freeform/edit.js +11 -21
- package/src/freeform/index.js +1 -9
- package/src/gallery/README.md +3 -0
- package/src/gallery/block.json +4 -1
- package/src/gallery/dynamic-gallery.js +384 -0
- package/src/gallery/dynamic-source.js +117 -0
- package/src/gallery/edit.js +152 -46
- package/src/gallery/editor.scss +32 -4
- package/src/gallery/gallery.js +0 -7
- package/src/gallery/index.js +2 -0
- package/src/gallery/index.php +277 -0
- package/src/gallery/save.js +22 -11
- package/src/gallery/test/dynamic-source.js +90 -0
- package/src/gallery/use-dynamic-gallery.js +275 -0
- package/src/gallery/variations.js +37 -0
- package/src/group/edit.js +2 -3
- package/src/group/transforms.js +7 -8
- package/src/heading/edit.js +19 -14
- package/src/home-link/index.php +1 -1
- package/src/html/README.md +2 -1
- package/src/html/block.json +2 -2
- package/src/html/edit.js +86 -14
- package/src/html/editor.scss +10 -0
- package/src/html/index.js +3 -4
- package/src/html/modal.js +5 -9
- package/src/html/save.js +4 -7
- package/src/html/test/index.js +143 -0
- package/src/html/transforms.js +11 -6
- package/src/icon/index.php +38 -45
- package/src/image/animated-gif-convert-control.js +135 -0
- package/src/image/edit.js +52 -0
- package/src/image/editor.scss +9 -0
- package/src/image/image.js +121 -180
- package/src/image/style.scss +0 -1
- package/src/image/test/animated-gif-convert-control.js +276 -0
- package/src/image/test/use-open-image-media-editor-modal.js +19 -4
- package/src/index.js +0 -2
- package/src/latest-comments/edit.js +0 -2
- package/src/latest-posts/README.md +2 -2
- package/src/latest-posts/block.json +8 -9
- package/src/latest-posts/constants.js +0 -1
- package/src/latest-posts/deprecated.js +112 -9
- package/src/latest-posts/edit.js +33 -45
- package/src/latest-posts/index.php +14 -3
- package/src/latest-posts/style.scss +12 -2
- package/src/latest-posts/test/deprecated.js +153 -0
- package/src/list/ordered-list-settings.js +0 -1
- package/src/media-text/edit.js +0 -1
- package/src/missing/edit.js +1 -3
- package/src/navigation/edit/index.js +0 -1
- package/src/navigation/edit/overlay-menu-preview-controls.js +0 -1
- package/src/navigation/edit/overlay-menu-preview.js +0 -1
- package/src/navigation/edit/overlay-template-part-selector.js +0 -1
- package/src/navigation/edit/overlay-visibility-control.js +0 -1
- package/src/navigation-link/shared/test/controls.js +0 -4
- package/src/navigation-link/shared/test/use-entity-binding.js +8 -12
- package/src/navigation-link/shared/test/use-handle-link-change.test.js +0 -4
- package/src/navigation-link/shared/test/use-link-preview.test.js +17 -4
- package/src/navigation-link/shared/use-link-preview.js +24 -4
- package/src/navigation-overlay-close/edit.js +0 -1
- package/src/page-list/edit.js +0 -1
- package/src/page-list/index.php +1 -1
- package/src/playlist/README.md +0 -2
- package/src/playlist/block.json +1 -7
- package/src/playlist/context.js +9 -0
- package/src/playlist/edit.js +51 -82
- package/src/playlist/index.php +37 -26
- package/src/playlist/style.scss +0 -5
- package/src/playlist/test/edit.js +0 -10
- package/src/playlist/utils.js +0 -6
- package/src/playlist/view.js +4 -4
- package/src/playlist-track/README.md +0 -2
- package/src/playlist-track/block.json +1 -4
- package/src/playlist-track/edit.js +25 -16
- package/src/playlist-track/index.php +4 -11
- package/src/post-author/edit.js +0 -2
- package/src/post-excerpt/edit.js +0 -1
- package/src/post-featured-image/overlay-controls.js +0 -1
- package/src/post-navigation-link/edit.js +0 -2
- package/src/query/edit/inspector-controls/author-control.js +0 -1
- package/src/query/edit/inspector-controls/format-controls.js +0 -1
- package/src/query/edit/inspector-controls/index.js +0 -3
- package/src/query/edit/inspector-controls/order-control.js +0 -1
- package/src/query/edit/inspector-controls/parent-control.js +0 -1
- package/src/query/edit/inspector-controls/per-page-control.js +0 -1
- package/src/query/edit/inspector-controls/sticky-control.js +0 -1
- package/src/query/edit/inspector-controls/taxonomy-controls.js +0 -1
- package/src/query-pagination/query-pagination-arrow-controls.js +0 -1
- package/src/query-pagination-numbers/edit.js +0 -1
- package/src/quote/transforms.js +6 -6
- package/src/rss/edit.js +0 -3
- package/src/search/edit.js +0 -4
- package/src/separator/edit.js +0 -1
- package/src/site-logo/edit.js +38 -78
- package/src/social-links/edit.js +0 -1
- package/src/spacer/controls.js +2 -4
- package/src/spacer/edit.js +2 -3
- package/src/tab-list/block.json +3 -2
- package/src/tab-list/edit.js +53 -55
- package/src/tab-list/save.js +5 -4
- package/src/tab-panel/controls.js +2 -4
- package/src/tab-panels/edit.js +2 -4
- package/src/table-of-contents/edit.js +0 -1
- package/src/tabs/edit.js +2 -2
- package/src/tabs/tab-toolbar-controls.js +58 -0
- package/src/tabs/use-tab-actions.js +102 -0
- package/src/tabs/use-tab-list-items-sync.js +7 -8
- package/src/tag-cloud/edit.js +0 -4
- package/src/tag-cloud/index.php +1 -1
- package/src/template-part/edit/advanced-controls.js +0 -1
- package/src/template-part/edit/import-controls.js +0 -1
- package/src/terms-query/edit/inspector-controls/include-control.js +0 -1
- package/src/terms-query/edit/inspector-controls/inherit-control.js +0 -1
- package/src/terms-query/edit/inspector-controls/max-terms-control.js +0 -1
- package/src/terms-query/edit/inspector-controls/order-control.js +0 -1
- package/src/terms-query/edit/inspector-controls/taxonomy-control.js +0 -1
- package/src/text-columns/edit.js +0 -1
- package/src/utils/gif-conversion-attributes.js +30 -0
- package/src/utils/test/gif-conversion-attributes.js +60 -0
- package/src/utils/test/waveform-player.js +0 -4
- package/src/utils/test/waveform-utils.js +0 -4
- package/src/verse/README.md +1 -0
- package/src/verse/block.json +3 -1
- package/src/video/README.md +2 -0
- package/src/video/block.json +6 -0
- package/src/video/edit-common-settings.js +0 -1
- package/src/video/edit.js +38 -1
- package/src/video/gif-restore-control.js +92 -0
- package/src/video/index.js +2 -0
- package/src/video/save.js +12 -0
- package/src/video/test/variations.js +65 -0
- package/src/video/tracks-editor.js +0 -1
- package/src/video/variations.js +65 -0
- package/build/freeform/migration-notice.cjs +0 -58
- package/build/freeform/migration-notice.cjs.map +0 -7
- package/build/tab-panel/add-tab-toolbar-control.cjs +0 -90
- package/build/tab-panel/add-tab-toolbar-control.cjs.map +0 -7
- package/build/tab-panel/remove-tab-toolbar-control.cjs +0 -99
- package/build/tab-panel/remove-tab-toolbar-control.cjs.map +0 -7
- package/build/tabs/controls.cjs +0 -45
- package/build/tabs/controls.cjs.map +0 -7
- package/build-module/freeform/migration-notice.mjs +0 -37
- package/build-module/freeform/migration-notice.mjs.map +0 -7
- package/build-module/tab-panel/add-tab-toolbar-control.mjs +0 -72
- package/build-module/tab-panel/add-tab-toolbar-control.mjs.map +0 -7
- package/build-module/tab-panel/remove-tab-toolbar-control.mjs +0 -81
- package/build-module/tab-panel/remove-tab-toolbar-control.mjs.map +0 -7
- package/build-module/tabs/controls.mjs +0 -14
- package/build-module/tabs/controls.mjs.map +0 -7
- package/src/freeform/migration-notice.js +0 -49
- package/src/tab-panel/add-tab-toolbar-control.js +0 -90
- package/src/tab-panel/remove-tab-toolbar-control.js +0 -110
- package/src/tabs/controls.js +0 -14
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { __ } from '@wordpress/i18n';
|
|
5
|
+
import {
|
|
6
|
+
BlockControls,
|
|
7
|
+
store as blockEditorStore,
|
|
8
|
+
} from '@wordpress/block-editor';
|
|
9
|
+
import { ToolbarGroup, ToolbarButton } from '@wordpress/components';
|
|
10
|
+
import { useSelect } from '@wordpress/data';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Internal dependencies
|
|
14
|
+
*/
|
|
15
|
+
import useTabActions from './use-tab-actions';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* "Add tab" and "Remove tab" buttons in the block toolbar for the tabs block.
|
|
19
|
+
* Inserts or removes a core/tab-panel. The tab-list items attribute is kept
|
|
20
|
+
* in sync automatically via useTabListItemsSync.
|
|
21
|
+
*
|
|
22
|
+
* @param {Object} props
|
|
23
|
+
* @param {string} props.tabsClientId The client ID of the parent tabs block.
|
|
24
|
+
* @return {React.JSX.Element} The toolbar control element.
|
|
25
|
+
*/
|
|
26
|
+
export default function TabToolbarControls( { tabsClientId } ) {
|
|
27
|
+
const { insertTab, removeTab } = useTabActions( tabsClientId );
|
|
28
|
+
const isRemoveDisabled = useSelect(
|
|
29
|
+
( select ) => {
|
|
30
|
+
if ( ! tabsClientId ) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
const tabPanels = select( blockEditorStore )
|
|
34
|
+
.getBlocks( tabsClientId )
|
|
35
|
+
.find( ( block ) => block.name === 'core/tab-panels' );
|
|
36
|
+
return ( tabPanels?.innerBlocks.length ?? 0 ) <= 1;
|
|
37
|
+
},
|
|
38
|
+
[ tabsClientId ]
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<BlockControls group="other">
|
|
43
|
+
<ToolbarGroup>
|
|
44
|
+
<ToolbarButton
|
|
45
|
+
className="components-toolbar__control"
|
|
46
|
+
onClick={ () => insertTab() }
|
|
47
|
+
text={ __( 'Add tab' ) }
|
|
48
|
+
/>
|
|
49
|
+
<ToolbarButton
|
|
50
|
+
className="components-toolbar__control"
|
|
51
|
+
onClick={ () => removeTab() }
|
|
52
|
+
text={ __( 'Remove tab' ) }
|
|
53
|
+
disabled={ isRemoveDisabled }
|
|
54
|
+
/>
|
|
55
|
+
</ToolbarGroup>
|
|
56
|
+
</BlockControls>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { __ } from '@wordpress/i18n';
|
|
5
|
+
import { createBlock } from '@wordpress/blocks';
|
|
6
|
+
import { store as blockEditorStore } from '@wordpress/block-editor';
|
|
7
|
+
import { useDispatch, useRegistry } from '@wordpress/data';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Provides callbacks to insert and remove tabs for a tabs block.
|
|
11
|
+
*
|
|
12
|
+
* The hook intentionally avoids subscribing to the store: all data is derived
|
|
13
|
+
* lazily inside the callbacks via `registry.select`, so consumers don't
|
|
14
|
+
* re-render when the tab structure changes.
|
|
15
|
+
*
|
|
16
|
+
* @param {string|null} tabsClientId The client ID of the parent tabs block.
|
|
17
|
+
* @return {{ insertTab: Function, removeTab: Function }} Tab action callbacks.
|
|
18
|
+
*/
|
|
19
|
+
export default function useTabActions( tabsClientId ) {
|
|
20
|
+
const registry = useRegistry();
|
|
21
|
+
const {
|
|
22
|
+
insertBlock,
|
|
23
|
+
removeBlock,
|
|
24
|
+
updateBlockAttributes,
|
|
25
|
+
__unstableMarkNextChangeAsNotPersistent,
|
|
26
|
+
} = useDispatch( blockEditorStore );
|
|
27
|
+
|
|
28
|
+
// Derive the current tabs state at call time without subscribing.
|
|
29
|
+
const getTabsState = () => {
|
|
30
|
+
const { getBlocks, getBlockAttributes } =
|
|
31
|
+
registry.select( blockEditorStore );
|
|
32
|
+
|
|
33
|
+
const tabsAttributes = tabsClientId
|
|
34
|
+
? getBlockAttributes( tabsClientId )
|
|
35
|
+
: undefined;
|
|
36
|
+
const tabPanels = tabsClientId
|
|
37
|
+
? getBlocks( tabsClientId ).find(
|
|
38
|
+
( block ) => block.name === 'core/tab-panels'
|
|
39
|
+
)
|
|
40
|
+
: undefined;
|
|
41
|
+
|
|
42
|
+
return {
|
|
43
|
+
tabPanelsClientId: tabPanels?.clientId ?? null,
|
|
44
|
+
tabPanelBlocks: tabPanels?.innerBlocks ?? [],
|
|
45
|
+
activeIndex:
|
|
46
|
+
tabsAttributes?.editorActiveTabIndex ??
|
|
47
|
+
tabsAttributes?.activeTabIndex ??
|
|
48
|
+
0,
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// Insert a new tab and make it active. Defaults to appending at the end.
|
|
53
|
+
const insertTab = ( atIndex ) => {
|
|
54
|
+
const { tabPanelsClientId, tabPanelBlocks } = getTabsState();
|
|
55
|
+
if ( ! tabPanelsClientId ) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const newIndex = atIndex ?? tabPanelBlocks.length;
|
|
60
|
+
insertBlock(
|
|
61
|
+
createBlock( 'core/tab-panel', { label: __( 'Tab' ) } ),
|
|
62
|
+
newIndex,
|
|
63
|
+
tabPanelsClientId,
|
|
64
|
+
false
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
// Switch editor active tab to the new tab.
|
|
68
|
+
__unstableMarkNextChangeAsNotPersistent();
|
|
69
|
+
updateBlockAttributes( tabsClientId, {
|
|
70
|
+
editorActiveTabIndex: newIndex,
|
|
71
|
+
} );
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// Remove a tab and move the active tab to an adjacent one. Defaults to the
|
|
75
|
+
// currently active tab.
|
|
76
|
+
const removeTab = ( atIndex ) => {
|
|
77
|
+
const { tabPanelBlocks, activeIndex } = getTabsState();
|
|
78
|
+
const tabCount = tabPanelBlocks.length;
|
|
79
|
+
if ( tabCount <= 1 ) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const removeIndex = atIndex ?? activeIndex;
|
|
84
|
+
const target = tabPanelBlocks[ removeIndex ];
|
|
85
|
+
if ( ! target ) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Calculate new active index after removal.
|
|
90
|
+
const newActiveIndex =
|
|
91
|
+
removeIndex >= tabCount - 1 ? tabCount - 2 : removeIndex;
|
|
92
|
+
|
|
93
|
+
// Switch editor to the adjacent tab and remove the current one.
|
|
94
|
+
__unstableMarkNextChangeAsNotPersistent();
|
|
95
|
+
updateBlockAttributes( tabsClientId, {
|
|
96
|
+
editorActiveTabIndex: newActiveIndex,
|
|
97
|
+
} );
|
|
98
|
+
removeBlock( target.clientId, false );
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
return { insertTab, removeTab };
|
|
102
|
+
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
4
|
import { store as blockEditorStore } from '@wordpress/block-editor';
|
|
5
|
-
import { useDispatch } from '@wordpress/data';
|
|
6
|
-
import { useEffect
|
|
5
|
+
import { useDispatch, useSelect } from '@wordpress/data';
|
|
6
|
+
import { useEffect } from '@wordpress/element';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Keep the tab-list block's `tabs` attribute in sync with the tab-panel blocks.
|
|
@@ -19,8 +19,7 @@ import { useEffect, useRef } from '@wordpress/element';
|
|
|
19
19
|
export default function useTabListItemsSync( { tabPanels, tabListClientId } ) {
|
|
20
20
|
const { updateBlockAttributes, __unstableMarkNextChangeAsNotPersistent } =
|
|
21
21
|
useDispatch( blockEditorStore );
|
|
22
|
-
|
|
23
|
-
const prevTabsRef = useRef( null );
|
|
22
|
+
const { getBlockAttributes } = useSelect( blockEditorStore );
|
|
24
23
|
|
|
25
24
|
useEffect( () => {
|
|
26
25
|
if ( ! tabListClientId ) {
|
|
@@ -31,18 +30,18 @@ export default function useTabListItemsSync( { tabPanels, tabListClientId } ) {
|
|
|
31
30
|
label: tab.attributes.label || '',
|
|
32
31
|
} ) );
|
|
33
32
|
|
|
34
|
-
//
|
|
35
|
-
const
|
|
36
|
-
if (
|
|
33
|
+
// Skip the update when the stored tabs already match the derived ones.
|
|
34
|
+
const currentTabs = getBlockAttributes( tabListClientId )?.tabs ?? [];
|
|
35
|
+
if ( JSON.stringify( newTabs ) === JSON.stringify( currentTabs ) ) {
|
|
37
36
|
return;
|
|
38
37
|
}
|
|
39
|
-
prevTabsRef.current = serialized;
|
|
40
38
|
|
|
41
39
|
__unstableMarkNextChangeAsNotPersistent();
|
|
42
40
|
updateBlockAttributes( tabListClientId, { tabs: newTabs } );
|
|
43
41
|
}, [
|
|
44
42
|
tabPanels,
|
|
45
43
|
tabListClientId,
|
|
44
|
+
getBlockAttributes,
|
|
46
45
|
updateBlockAttributes,
|
|
47
46
|
__unstableMarkNextChangeAsNotPersistent,
|
|
48
47
|
] );
|
package/src/tag-cloud/edit.js
CHANGED
|
@@ -139,7 +139,6 @@ function TagCloudEdit( { attributes, setAttributes, name } ) {
|
|
|
139
139
|
isShownByDefault
|
|
140
140
|
>
|
|
141
141
|
<SelectControl
|
|
142
|
-
__next40pxDefaultSize
|
|
143
142
|
label={ __( 'Taxonomy' ) }
|
|
144
143
|
options={ getTaxonomyOptions() }
|
|
145
144
|
value={ taxonomy }
|
|
@@ -175,7 +174,6 @@ function TagCloudEdit( { attributes, setAttributes, name } ) {
|
|
|
175
174
|
units={ units }
|
|
176
175
|
min={ MIN_FONT_SIZE }
|
|
177
176
|
max={ MAX_FONT_SIZE }
|
|
178
|
-
size="__unstable-large"
|
|
179
177
|
/>
|
|
180
178
|
</FlexItem>
|
|
181
179
|
<FlexItem isBlock>
|
|
@@ -191,7 +189,6 @@ function TagCloudEdit( { attributes, setAttributes, name } ) {
|
|
|
191
189
|
units={ units }
|
|
192
190
|
min={ MIN_FONT_SIZE }
|
|
193
191
|
max={ MAX_FONT_SIZE }
|
|
194
|
-
size="__unstable-large"
|
|
195
192
|
/>
|
|
196
193
|
</FlexItem>
|
|
197
194
|
</Flex>
|
|
@@ -203,7 +200,6 @@ function TagCloudEdit( { attributes, setAttributes, name } ) {
|
|
|
203
200
|
isShownByDefault
|
|
204
201
|
>
|
|
205
202
|
<RangeControl
|
|
206
|
-
__next40pxDefaultSize
|
|
207
203
|
label={ __( 'Number of tags' ) }
|
|
208
204
|
value={ numberOfTags }
|
|
209
205
|
onChange={ ( value ) =>
|
package/src/tag-cloud/index.php
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
function render_block_core_tag_cloud( $attributes ) {
|
|
18
18
|
$smallest_font_size = $attributes['smallestFontSize'];
|
|
19
|
-
$unit =
|
|
19
|
+
$unit = preg_match( '/^[0-9.]+(?P<unit>[a-z%]+)$/i', $smallest_font_size, $m ) ? $m['unit'] : 'pt';
|
|
20
20
|
|
|
21
21
|
$args = array(
|
|
22
22
|
'echo' => false,
|
package/src/text-columns/edit.js
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the subset of block attributes that should be carried over when
|
|
3
|
+
* converting between the animated-GIF Image block and its converted Video
|
|
4
|
+
* block (in either direction).
|
|
5
|
+
*
|
|
6
|
+
* The conversion swaps one block for another via `createBlock`, which would
|
|
7
|
+
* otherwise drop everything the author set on the original block. This carries
|
|
8
|
+
* the attributes both blocks support, so the conversion (and its reverse) keeps
|
|
9
|
+
* them: block alignment, the HTML anchor, custom class names, and margin
|
|
10
|
+
* spacing.
|
|
11
|
+
*
|
|
12
|
+
* Image-only attributes such as links (`href`/`linkDestination`), sizing
|
|
13
|
+
* (`sizeSlug`/`scale`), and `border`/`shadow` styles are intentionally not
|
|
14
|
+
* carried: the Video block has no equivalent, so copying them would leave
|
|
15
|
+
* attributes the target block cannot represent.
|
|
16
|
+
*
|
|
17
|
+
* @param {Object} attributes Source block attributes.
|
|
18
|
+
* @return {Object} Attributes to spread into the converted block.
|
|
19
|
+
*/
|
|
20
|
+
export function getCarriedGifConversionAttributes( attributes ) {
|
|
21
|
+
const { align, anchor, className, style } = attributes;
|
|
22
|
+
const margin = style?.spacing?.margin;
|
|
23
|
+
|
|
24
|
+
return {
|
|
25
|
+
...( align && { align } ),
|
|
26
|
+
...( anchor && { anchor } ),
|
|
27
|
+
...( className && { className } ),
|
|
28
|
+
...( margin && { style: { spacing: { margin } } } ),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { getCarriedGifConversionAttributes } from '../gif-conversion-attributes';
|
|
5
|
+
|
|
6
|
+
describe( 'getCarriedGifConversionAttributes', () => {
|
|
7
|
+
it( 'carries align, anchor, className and margin spacing', () => {
|
|
8
|
+
const result = getCarriedGifConversionAttributes( {
|
|
9
|
+
align: 'wide',
|
|
10
|
+
anchor: 'my-gif',
|
|
11
|
+
className: 'is-style-rounded',
|
|
12
|
+
style: { spacing: { margin: { top: '10px', bottom: '10px' } } },
|
|
13
|
+
} );
|
|
14
|
+
|
|
15
|
+
expect( result ).toEqual( {
|
|
16
|
+
align: 'wide',
|
|
17
|
+
anchor: 'my-gif',
|
|
18
|
+
className: 'is-style-rounded',
|
|
19
|
+
style: { spacing: { margin: { top: '10px', bottom: '10px' } } },
|
|
20
|
+
} );
|
|
21
|
+
} );
|
|
22
|
+
|
|
23
|
+
it( 'omits attributes that are not set', () => {
|
|
24
|
+
expect( getCarriedGifConversionAttributes( {} ) ).toEqual( {} );
|
|
25
|
+
expect(
|
|
26
|
+
getCarriedGifConversionAttributes( { align: 'full' } )
|
|
27
|
+
).toEqual( { align: 'full' } );
|
|
28
|
+
} );
|
|
29
|
+
|
|
30
|
+
it( 'carries only margin from style, dropping unsupported styles', () => {
|
|
31
|
+
const result = getCarriedGifConversionAttributes( {
|
|
32
|
+
style: {
|
|
33
|
+
spacing: {
|
|
34
|
+
margin: { top: '5px' },
|
|
35
|
+
padding: { top: '5px' },
|
|
36
|
+
},
|
|
37
|
+
border: { radius: '8px' },
|
|
38
|
+
shadow: 'var:preset|shadow|natural',
|
|
39
|
+
},
|
|
40
|
+
} );
|
|
41
|
+
|
|
42
|
+
// Only spacing.margin survives; padding/border/shadow are not carried
|
|
43
|
+
// because the converted block may not support them.
|
|
44
|
+
expect( result ).toEqual( {
|
|
45
|
+
style: { spacing: { margin: { top: '5px' } } },
|
|
46
|
+
} );
|
|
47
|
+
} );
|
|
48
|
+
|
|
49
|
+
it( 'does not carry image-only attributes such as links or sizing', () => {
|
|
50
|
+
const result = getCarriedGifConversionAttributes( {
|
|
51
|
+
align: 'center',
|
|
52
|
+
href: 'https://example.com',
|
|
53
|
+
linkDestination: 'custom',
|
|
54
|
+
sizeSlug: 'large',
|
|
55
|
+
scale: 'cover',
|
|
56
|
+
} );
|
|
57
|
+
|
|
58
|
+
expect( result ).toEqual( { align: 'center' } );
|
|
59
|
+
} );
|
|
60
|
+
} );
|
package/src/verse/README.md
CHANGED
|
@@ -25,6 +25,7 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
|
|
|
25
25
|
- [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#background):
|
|
26
26
|
- `backgroundImage`: `true`
|
|
27
27
|
- `backgroundSize`: `true`
|
|
28
|
+
- `gradient`: `true`
|
|
28
29
|
- [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color):
|
|
29
30
|
- [`gradients`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-gradients): `true`
|
|
30
31
|
- [`link`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-link): `true`
|
package/src/verse/block.json
CHANGED
package/src/video/README.md
CHANGED
|
@@ -25,6 +25,8 @@ _Defined via the [`attributes`](https://developer.wordpress.org/block-editor/ref
|
|
|
25
25
|
| `preload` | `string` | `"metadata"` | [Source](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#value-source): `attribute`. [Selector](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#value-source): `video`. [HTML attr](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#attribute-source): `preload` |
|
|
26
26
|
| `blob` | `string` | — | [Role](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#role): `local` |
|
|
27
27
|
| `src` | `string` | — | [Source](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#value-source): `attribute`. [Selector](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#value-source): `video`. [HTML attr](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#attribute-source): `src`. [Role](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#role): `content` |
|
|
28
|
+
| `width` | `number` | — | — |
|
|
29
|
+
| `height` | `number` | — | — |
|
|
28
30
|
| `playsInline` | `boolean` | — | [Source](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#value-source): `attribute`. [Selector](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#value-source): `video`. [HTML attr](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#attribute-source): `playsinline` |
|
|
29
31
|
| `tracks` | `array` | `[]` | [Role](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#role): `content` |
|
|
30
32
|
|
package/src/video/block.json
CHANGED
package/src/video/edit.js
CHANGED
|
@@ -41,6 +41,8 @@ import TracksEditor from './tracks-editor';
|
|
|
41
41
|
import Tracks from './tracks';
|
|
42
42
|
import { Caption } from '../utils/caption';
|
|
43
43
|
import PosterImage from '../utils/poster-image';
|
|
44
|
+
import { isGifVariation } from './variations';
|
|
45
|
+
import GifRestoreControl from './gif-restore-control';
|
|
44
46
|
|
|
45
47
|
const ALLOWED_MEDIA_TYPES = [ 'video' ];
|
|
46
48
|
|
|
@@ -51,9 +53,20 @@ function VideoEdit( {
|
|
|
51
53
|
setAttributes,
|
|
52
54
|
insertBlocksAfter,
|
|
53
55
|
onReplace,
|
|
56
|
+
clientId,
|
|
54
57
|
} ) {
|
|
55
58
|
const videoPlayer = useRef();
|
|
56
|
-
const { id, controls, poster, src, tracks } = attributes;
|
|
59
|
+
const { id, controls, poster, src, tracks, width, height } = attributes;
|
|
60
|
+
const isGif = isGifVariation( attributes );
|
|
61
|
+
// Give the <video> an explicit (non-`auto`) aspect ratio derived from the
|
|
62
|
+
// stored dimensions. The width/height attributes alone only yield
|
|
63
|
+
// `aspect-ratio: auto W/H`, whose `auto` keyword defers to the element's
|
|
64
|
+
// natural ratio while the poster/metadata load - during which Chrome briefly
|
|
65
|
+
// computes a runaway height (tens of thousands of pixels) before settling.
|
|
66
|
+
// That spike is what reads as a duplicated image during the GIF-to-video
|
|
67
|
+
// swap. A non-`auto` ratio governs the box height throughout the load.
|
|
68
|
+
const aspectRatio =
|
|
69
|
+
width && height ? `${ width } / ${ height }` : undefined;
|
|
57
70
|
const [ temporaryURL, setTemporaryURL ] = useState( attributes.blob );
|
|
58
71
|
const dropdownMenuProps = useToolsPanelDropdownMenuProps();
|
|
59
72
|
const blockEditingMode = useBlockEditingMode();
|
|
@@ -73,6 +86,17 @@ function VideoEdit( {
|
|
|
73
86
|
}
|
|
74
87
|
}, [ poster ] );
|
|
75
88
|
|
|
89
|
+
// The GIF variation plays like an animated GIF in the editor (the playback
|
|
90
|
+
// attributes are applied to the preview <video> below). Regular videos do
|
|
91
|
+
// not autoplay in the editor, so only nudge GIFs into playing after a
|
|
92
|
+
// source change in case the muted autoplay did not start on its own.
|
|
93
|
+
useEffect( () => {
|
|
94
|
+
if ( isGif ) {
|
|
95
|
+
// Browsers allow muted videos to be played programmatically.
|
|
96
|
+
videoPlayer.current?.play().catch( () => {} );
|
|
97
|
+
}
|
|
98
|
+
}, [ isGif, src, poster ] );
|
|
99
|
+
|
|
76
100
|
// TODO: Whether the video was obtained from the media library or was provided by URL, obtain the `videoWidth` and `videoHeight` of the video once its metadata has loaded and persist in the block attributes.
|
|
77
101
|
function onSelectVideo( media ) {
|
|
78
102
|
if ( ! media || ! media.url ) {
|
|
@@ -201,6 +225,12 @@ function VideoEdit( {
|
|
|
201
225
|
variant="toolbar"
|
|
202
226
|
/>
|
|
203
227
|
</BlockControls>
|
|
228
|
+
{ isGif && (
|
|
229
|
+
<GifRestoreControl
|
|
230
|
+
attributes={ attributes }
|
|
231
|
+
clientId={ clientId }
|
|
232
|
+
/>
|
|
233
|
+
) }
|
|
204
234
|
</>
|
|
205
235
|
) }
|
|
206
236
|
<InspectorControls>
|
|
@@ -240,6 +270,13 @@ function VideoEdit( {
|
|
|
240
270
|
poster={ poster }
|
|
241
271
|
src={ src || temporaryURL }
|
|
242
272
|
ref={ videoPlayer }
|
|
273
|
+
autoPlay={ isGif }
|
|
274
|
+
loop={ isGif }
|
|
275
|
+
muted={ isGif }
|
|
276
|
+
playsInline={ isGif }
|
|
277
|
+
width={ width }
|
|
278
|
+
height={ height }
|
|
279
|
+
style={ aspectRatio ? { aspectRatio } : undefined }
|
|
243
280
|
>
|
|
244
281
|
<Tracks tracks={ tracks } />
|
|
245
282
|
</video>
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { ToolbarButton, ToolbarGroup } from '@wordpress/components';
|
|
5
|
+
import {
|
|
6
|
+
BlockControls,
|
|
7
|
+
store as blockEditorStore,
|
|
8
|
+
} from '@wordpress/block-editor';
|
|
9
|
+
import { store as coreStore } from '@wordpress/core-data';
|
|
10
|
+
import { createBlock } from '@wordpress/blocks';
|
|
11
|
+
import { useDispatch, useSelect } from '@wordpress/data';
|
|
12
|
+
import { image as imageIcon } from '@wordpress/icons';
|
|
13
|
+
import { __ } from '@wordpress/i18n';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Internal dependencies
|
|
17
|
+
*/
|
|
18
|
+
import { getCarriedGifConversionAttributes } from '../utils/gif-conversion-attributes';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Toolbar control that turns a converted GIF video block back into the original
|
|
22
|
+
* animated GIF Image block.
|
|
23
|
+
*
|
|
24
|
+
* An animated GIF uploaded through the editor is converted to a muted, looping
|
|
25
|
+
* video and presented as the Video block's "GIF" variation, while the original
|
|
26
|
+
* GIF stays the underlying image attachment. This control switches the block
|
|
27
|
+
* back to a `core/image` pointing at that GIF and opts the image out of being
|
|
28
|
+
* re-converted.
|
|
29
|
+
*
|
|
30
|
+
* It only renders when the block's media is an image attachment (i.e. an
|
|
31
|
+
* editor-converted GIF), so it never appears on regular videos that happen to
|
|
32
|
+
* be muted and looping.
|
|
33
|
+
*
|
|
34
|
+
* @param {Object} props Component props.
|
|
35
|
+
* @param {Object} props.attributes Video block attributes.
|
|
36
|
+
* @param {string} props.clientId Block client ID.
|
|
37
|
+
*
|
|
38
|
+
* @return {Component|null} The control, or null when restoring does not apply.
|
|
39
|
+
*/
|
|
40
|
+
export default function GifRestoreControl( { attributes, clientId } ) {
|
|
41
|
+
const { id, caption } = attributes;
|
|
42
|
+
const { replaceBlocks } = useDispatch( blockEditorStore );
|
|
43
|
+
|
|
44
|
+
// The original GIF is the underlying image attachment. Only offer the
|
|
45
|
+
// restore when the media resolves to an image (an editor-converted GIF),
|
|
46
|
+
// not when a regular video has simply been set to loop/autoplay/mute.
|
|
47
|
+
const gif = useSelect(
|
|
48
|
+
( select ) => {
|
|
49
|
+
if ( ! id ) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
const record = select( coreStore ).getEntityRecord(
|
|
53
|
+
'postType',
|
|
54
|
+
'attachment',
|
|
55
|
+
id,
|
|
56
|
+
{ context: 'view' }
|
|
57
|
+
);
|
|
58
|
+
if ( ! record?.mime_type?.startsWith( 'image/' ) ) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return record;
|
|
62
|
+
},
|
|
63
|
+
[ id ]
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
if ( ! gif?.source_url ) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function restoreToImage() {
|
|
71
|
+
replaceBlocks(
|
|
72
|
+
clientId,
|
|
73
|
+
createBlock( 'core/image', {
|
|
74
|
+
...getCarriedGifConversionAttributes( attributes ),
|
|
75
|
+
id,
|
|
76
|
+
url: gif.source_url,
|
|
77
|
+
alt: gif.alt_text || '',
|
|
78
|
+
caption,
|
|
79
|
+
} )
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return (
|
|
84
|
+
<BlockControls group="other">
|
|
85
|
+
<ToolbarGroup>
|
|
86
|
+
<ToolbarButton icon={ imageIcon } onClick={ restoreToImage }>
|
|
87
|
+
{ __( 'Display as GIF' ) }
|
|
88
|
+
</ToolbarButton>
|
|
89
|
+
</ToolbarGroup>
|
|
90
|
+
</BlockControls>
|
|
91
|
+
);
|
|
92
|
+
}
|
package/src/video/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import edit from './edit';
|
|
|
14
14
|
import metadata from './block.json';
|
|
15
15
|
import save from './save';
|
|
16
16
|
import transforms from './transforms';
|
|
17
|
+
import variations from './variations';
|
|
17
18
|
import { unlock } from '../lock-unlock';
|
|
18
19
|
|
|
19
20
|
const { fieldsKey, formKey } = unlock( blocksPrivateApis );
|
|
@@ -32,6 +33,7 @@ export const settings = {
|
|
|
32
33
|
},
|
|
33
34
|
},
|
|
34
35
|
transforms,
|
|
36
|
+
variations,
|
|
35
37
|
deprecated,
|
|
36
38
|
edit,
|
|
37
39
|
save,
|