From 54ecd48c22129cb5b6b6eaed3bc8b641bf81bbc6 Mon Sep 17 00:00:00 2001 From: inpsyde-deploybot Date: Sun, 8 Oct 2023 00:02:30 +0000 Subject: [PATCH] Update Gutenberg versions --- versions.txt | 1 + versions/16.7.1/README.md | 64 + versions/16.7.1/build/a11y/index.js | 248 + .../16.7.1/build/a11y/index.min.asset.php | 1 + versions/16.7.1/build/a11y/index.min.js | 2 + versions/16.7.1/build/a11y/index.min.js.map | 1 + versions/16.7.1/build/annotations/index.js | 1012 + .../build/annotations/index.min.asset.php | 1 + .../16.7.1/build/annotations/index.min.js | 2 + .../16.7.1/build/annotations/index.min.js.map | 1 + versions/16.7.1/build/api-fetch/index.js | 755 + .../build/api-fetch/index.min.asset.php | 1 + versions/16.7.1/build/api-fetch/index.min.js | 2 + .../16.7.1/build/api-fetch/index.min.js.map | 1 + versions/16.7.1/build/autop/index.js | 470 + .../16.7.1/build/autop/index.min.asset.php | 1 + versions/16.7.1/build/autop/index.min.js | 2 + versions/16.7.1/build/autop/index.min.js.map | 1 + versions/16.7.1/build/blob/index.js | 117 + .../16.7.1/build/blob/index.min.asset.php | 1 + versions/16.7.1/build/blob/index.min.js | 2 + versions/16.7.1/build/blob/index.min.js.map | 1 + .../16.7.1/build/block-directory/index.js | 2152 + .../build/block-directory/index.min.asset.php | 1 + .../16.7.1/build/block-directory/index.min.js | 14 + .../build/block-directory/index.min.js.map | 1 + .../build/block-directory/style-rtl.css | 1 + .../16.7.1/build/block-directory/style.css | 1 + .../16.7.1/build/block-editor/content-rtl.css | 1 + .../16.7.1/build/block-editor/content.css | 1 + .../default-editor-styles-rtl.css | 1 + .../block-editor/default-editor-styles.css | 1 + versions/16.7.1/build/block-editor/index.js | 65494 ++++++++++++ .../build/block-editor/index.min.asset.php | 1 + .../16.7.1/build/block-editor/index.min.js | 151 + .../build/block-editor/index.min.js.map | 1 + .../16.7.1/build/block-editor/style-rtl.css | 1 + versions/16.7.1/build/block-editor/style.css | 1 + .../build/block-library/blocks/archives.php | 118 + .../block-library/blocks/archives/block.json | 53 + .../blocks/archives/editor-rtl.css | 1 + .../block-library/blocks/archives/editor.css | 1 + .../blocks/archives/style-rtl.css | 1 + .../block-library/blocks/archives/style.css | 1 + .../block-library/blocks/audio/block.json | 61 + .../block-library/blocks/audio/editor-rtl.css | 1 + .../block-library/blocks/audio/editor.css | 1 + .../block-library/blocks/audio/style-rtl.css | 1 + .../block-library/blocks/audio/style.css | 1 + .../block-library/blocks/audio/theme-rtl.css | 1 + .../block-library/blocks/audio/theme.css | 1 + .../build/block-library/blocks/avatar.php | 150 + .../block-library/blocks/avatar/block.json | 56 + .../blocks/avatar/editor-rtl.css | 1 + .../block-library/blocks/avatar/editor.css | 1 + .../block-library/blocks/avatar/style-rtl.css | 1 + .../block-library/blocks/avatar/style.css | 1 + .../build/block-library/blocks/block.php | 65 + .../block-library/blocks/block/block.json | 20 + .../block-library/blocks/block/editor-rtl.css | 1 + .../block-library/blocks/block/editor.css | 1 + .../block-library/blocks/button/block.json | 129 + .../blocks/button/editor-rtl.css | 1 + .../block-library/blocks/button/editor.css | 1 + .../block-library/blocks/button/style-rtl.css | 1 + .../block-library/blocks/button/style.css | 1 + .../block-library/blocks/buttons/block.json | 45 + .../blocks/buttons/editor-rtl.css | 1 + .../block-library/blocks/buttons/editor.css | 1 + .../blocks/buttons/style-rtl.css | 1 + .../block-library/blocks/buttons/style.css | 1 + .../build/block-library/blocks/calendar.php | 176 + .../block-library/blocks/calendar/block.json | 43 + .../blocks/calendar/style-rtl.css | 1 + .../block-library/blocks/calendar/style.css | 1 + .../build/block-library/blocks/categories.php | 101 + .../blocks/categories/block.json | 58 + .../blocks/categories/editor-rtl.css | 1 + .../blocks/categories/editor.css | 1 + .../blocks/categories/style-rtl.css | 1 + .../block-library/blocks/categories/style.css | 1 + .../block-library/blocks/code/block.json | 62 + .../block-library/blocks/code/editor-rtl.css | 1 + .../block-library/blocks/code/editor.css | 1 + .../block-library/blocks/code/style-rtl.css | 1 + .../build/block-library/blocks/code/style.css | 1 + .../block-library/blocks/code/theme-rtl.css | 1 + .../build/block-library/blocks/code/theme.css | 1 + .../block-library/blocks/column/block.json | 73 + .../block-library/blocks/columns/block.json | 85 + .../blocks/columns/editor-rtl.css | 1 + .../block-library/blocks/columns/editor.css | 1 + .../blocks/columns/style-rtl.css | 1 + .../block-library/blocks/columns/style.css | 1 + .../blocks/comment-author-avatar.php | 81 + .../blocks/comment-author-avatar/block.json | 44 + .../comment-author-avatar/editor-rtl.css | 1 + .../blocks/comment-author-avatar/editor.css | 1 + .../blocks/comment-author-name.php | 65 + .../blocks/comment-author-name/block.json | 53 + .../block-library/blocks/comment-content.php | 81 + .../blocks/comment-content/block.json | 46 + .../blocks/comment-content/style-rtl.css | 1 + .../blocks/comment-content/style.css | 1 + .../block-library/blocks/comment-date.php | 58 + .../blocks/comment-date/block.json | 49 + .../blocks/comment-edit-link.php | 61 + .../blocks/comment-edit-link/block.json | 49 + .../blocks/comment-reply-link.php | 83 + .../blocks/comment-reply-link/block.json | 45 + .../block-library/blocks/comment-template.php | 149 + .../blocks/comment-template/block.json | 34 + .../blocks/comment-template/style-rtl.css | 1 + .../blocks/comment-template/style.css | 1 + .../blocks/comments-pagination-next.php | 60 + .../comments-pagination-next/block.json | 40 + .../blocks/comments-pagination-numbers.php | 62 + .../comments-pagination-numbers/block.json | 35 + .../editor-rtl.css | 1 + .../comments-pagination-numbers/editor.css | 1 + .../blocks/comments-pagination-previous.php | 52 + .../comments-pagination-previous/block.json | 40 + .../blocks/comments-pagination.php | 46 + .../blocks/comments-pagination/block.json | 55 + .../blocks/comments-pagination/editor-rtl.css | 1 + .../blocks/comments-pagination/editor.css | 1 + .../blocks/comments-pagination/style-rtl.css | 1 + .../blocks/comments-pagination/style.css | 1 + .../block-library/blocks/comments-title.php | 97 + .../blocks/comments-title/block.json | 66 + .../blocks/comments-title/editor-rtl.css | 1 + .../blocks/comments-title/editor.css | 1 + .../build/block-library/blocks/comments.php | 215 + .../block-library/blocks/comments/block.json | 52 + .../blocks/comments/editor-rtl.css | 1 + .../block-library/blocks/comments/editor.css | 1 + .../blocks/comments/style-rtl.css | 1 + .../block-library/blocks/comments/style.css | 1 + .../build/block-library/blocks/cover.php | 78 + .../block-library/blocks/cover/block.json | 136 + .../block-library/blocks/cover/editor-rtl.css | 1 + .../block-library/blocks/cover/editor.css | 1 + .../block-library/blocks/cover/style-rtl.css | 1 + .../block-library/blocks/cover/style.css | 1 + .../block-library/blocks/details/block.json | 65 + .../blocks/details/editor-rtl.css | 1 + .../block-library/blocks/details/editor.css | 1 + .../blocks/details/style-rtl.css | 1 + .../block-library/blocks/details/style.css | 1 + .../block-library/blocks/embed/block.json | 51 + .../block-library/blocks/embed/editor-rtl.css | 1 + .../block-library/blocks/embed/editor.css | 1 + .../block-library/blocks/embed/style-rtl.css | 1 + .../block-library/blocks/embed/style.css | 1 + .../block-library/blocks/embed/theme-rtl.css | 1 + .../block-library/blocks/embed/theme.css | 1 + .../build/block-library/blocks/file.php | 99 + .../block-library/blocks/file/block.json | 78 + .../block-library/blocks/file/editor-rtl.css | 1 + .../block-library/blocks/file/editor.css | 1 + .../block-library/blocks/file/style-rtl.css | 1 + .../build/block-library/blocks/file/style.css | 1 + .../build/block-library/blocks/file/view.js | 74 + .../blocks/file/view.min.asset.php | 1 + .../block-library/blocks/file/view.min.js | 2 + .../block-library/blocks/file/view.min.js.map | 1 + .../build/block-library/blocks/footnotes.php | 286 + .../block-library/blocks/footnotes/block.json | 60 + .../blocks/footnotes/style-rtl.css | 1 + .../block-library/blocks/footnotes/style.css | 1 + .../block-library/blocks/freeform/block.json | 21 + .../blocks/freeform/editor-rtl.css | 1 + .../block-library/blocks/freeform/editor.css | 1 + .../build/block-library/blocks/gallery.php | 132 + .../block-library/blocks/gallery/block.json | 139 + .../blocks/gallery/editor-rtl.css | 1 + .../block-library/blocks/gallery/editor.css | 1 + .../blocks/gallery/style-rtl.css | 1 + .../block-library/blocks/gallery/style.css | 1 + .../blocks/gallery/theme-rtl.css | 1 + .../block-library/blocks/gallery/theme.css | 1 + .../block-library/blocks/group/block.json | 91 + .../block-library/blocks/group/editor-rtl.css | 1 + .../block-library/blocks/group/editor.css | 1 + .../block-library/blocks/group/style-rtl.css | 1 + .../block-library/blocks/group/style.css | 1 + .../block-library/blocks/group/theme-rtl.css | 1 + .../block-library/blocks/group/theme.css | 1 + .../build/block-library/blocks/heading.php | 52 + .../block-library/blocks/heading/block.json | 70 + .../blocks/heading/style-rtl.css | 1 + .../block-library/blocks/heading/style.css | 1 + .../build/block-library/blocks/home-link.php | 166 + .../block-library/blocks/home-link/block.json | 43 + .../block-library/blocks/html/block.json | 22 + .../block-library/blocks/html/editor-rtl.css | 1 + .../block-library/blocks/html/editor.css | 1 + .../build/block-library/blocks/image.php | 315 + .../block-library/blocks/image/block.json | 135 + .../block-library/blocks/image/editor-rtl.css | 1 + .../block-library/blocks/image/editor.css | 1 + .../block-library/blocks/image/style-rtl.css | 1 + .../block-library/blocks/image/style.css | 1 + .../block-library/blocks/image/theme-rtl.css | 1 + .../block-library/blocks/image/theme.css | 1 + .../build/block-library/blocks/image/view.js | 394 + .../blocks/image/view.min.asset.php | 1 + .../block-library/blocks/image/view.min.js | 2 + .../blocks/image/view.min.js.map | 1 + .../block-library/blocks/latest-comments.php | 158 + .../blocks/latest-comments/block.json | 53 + .../blocks/latest-comments/style-rtl.css | 1 + .../blocks/latest-comments/style.css | 1 + .../block-library/blocks/latest-posts.php | 252 + .../blocks/latest-posts/block.json | 117 + .../blocks/latest-posts/editor-rtl.css | 1 + .../blocks/latest-posts/editor.css | 1 + .../blocks/latest-posts/style-rtl.css | 1 + .../blocks/latest-posts/style.css | 1 + .../block-library/blocks/list-item/block.json | 39 + .../block-library/blocks/list/block.json | 77 + .../block-library/blocks/list/style-rtl.css | 1 + .../build/block-library/blocks/list/style.css | 1 + .../build/block-library/blocks/loginout.php | 51 + .../block-library/blocks/loginout/block.json | 36 + .../blocks/media-text/block.json | 130 + .../blocks/media-text/editor-rtl.css | 1 + .../blocks/media-text/editor.css | 1 + .../blocks/media-text/style-rtl.css | 1 + .../block-library/blocks/media-text/style.css | 1 + .../block-library/blocks/missing/block.json | 28 + .../block-library/blocks/more/block.json | 26 + .../block-library/blocks/more/editor-rtl.css | 1 + .../block-library/blocks/more/editor.css | 1 + .../block-library/blocks/navigation-link.php | 371 + .../blocks/navigation-link/block.json | 78 + .../blocks/navigation-link/editor-rtl.css | 1 + .../blocks/navigation-link/editor.css | 1 + .../blocks/navigation-link/style-rtl.css | 1 + .../blocks/navigation-link/style.css | 1 + .../blocks/navigation-submenu.php | 252 + .../blocks/navigation-submenu/block.json | 65 + .../blocks/navigation-submenu/editor-rtl.css | 1 + .../blocks/navigation-submenu/editor.css | 1 + .../build/block-library/blocks/navigation.php | 1048 + .../blocks/navigation/block.json | 141 + .../blocks/navigation/editor-rtl.css | 1 + .../blocks/navigation/editor.css | 1 + .../blocks/navigation/style-rtl.css | 1 + .../block-library/blocks/navigation/style.css | 1 + .../block-library/blocks/navigation/view.js | 185 + .../blocks/navigation/view.min.asset.php | 1 + .../blocks/navigation/view.min.js | 2 + .../blocks/navigation/view.min.js.map | 1 + .../block-library/blocks/nextpage/block.json | 17 + .../blocks/nextpage/editor-rtl.css | 1 + .../block-library/blocks/nextpage/editor.css | 1 + .../block-library/blocks/page-list-item.php | 14 + .../blocks/page-list-item/block.json | 52 + .../build/block-library/blocks/page-list.php | 357 + .../block-library/blocks/page-list/block.json | 54 + .../blocks/page-list/editor-rtl.css | 1 + .../block-library/blocks/page-list/editor.css | 1 + .../blocks/page-list/style-rtl.css | 1 + .../block-library/blocks/page-list/style.css | 1 + .../block-library/blocks/paragraph/block.json | 73 + .../blocks/paragraph/editor-rtl.css | 1 + .../block-library/blocks/paragraph/editor.css | 1 + .../blocks/paragraph/style-rtl.css | 1 + .../block-library/blocks/paragraph/style.css | 1 + .../build/block-library/blocks/pattern.php | 57 + .../block-library/blocks/pattern/block.json | 18 + .../blocks/post-author-biography.php | 48 + .../blocks/post-author-biography/block.json | 42 + .../block-library/blocks/post-author-name.php | 54 + .../blocks/post-author-name/block.json | 52 + .../block-library/blocks/post-author.php | 73 + .../blocks/post-author/block.json | 67 + .../blocks/post-author/style-rtl.css | 1 + .../blocks/post-author/style.css | 1 + .../block-library/blocks/post-comment.php | 17 + .../blocks/post-comment/block.json | 22 + .../blocks/post-comments-count.php | 45 + .../blocks/post-comments-count/block.json | 43 + .../blocks/post-comments-form.php | 82 + .../blocks/post-comments-form/block.json | 48 + .../blocks/post-comments-form/editor-rtl.css | 1 + .../blocks/post-comments-form/editor.css | 1 + .../blocks/post-comments-form/style-rtl.css | 1 + .../blocks/post-comments-form/style.css | 1 + .../blocks/post-comments-link.php | 71 + .../blocks/post-comments-link/block.json | 44 + .../block-library/blocks/post-content.php | 75 + .../blocks/post-content/block.json | 43 + .../build/block-library/blocks/post-date.php | 72 + .../block-library/blocks/post-date/block.json | 55 + .../blocks/post-date/style-rtl.css | 1 + .../block-library/blocks/post-date/style.css | 1 + .../block-library/blocks/post-excerpt.php | 95 + .../blocks/post-excerpt/block.json | 57 + .../blocks/post-excerpt/editor-rtl.css | 1 + .../blocks/post-excerpt/editor.css | 1 + .../blocks/post-excerpt/style-rtl.css | 1 + .../blocks/post-excerpt/style.css | 1 + .../blocks/post-featured-image.php | 222 + .../blocks/post-featured-image/block.json | 84 + .../blocks/post-featured-image/editor-rtl.css | 1 + .../blocks/post-featured-image/editor.css | 1 + .../blocks/post-featured-image/style-rtl.css | 1 + .../blocks/post-featured-image/style.css | 1 + .../blocks/post-navigation-link.php | 123 + .../blocks/post-navigation-link/block.json | 55 + .../blocks/post-navigation-link/style-rtl.css | 1 + .../blocks/post-navigation-link/style.css | 1 + .../block-library/blocks/post-template.php | 156 + .../blocks/post-template/block.json | 56 + .../blocks/post-template/editor-rtl.css | 1 + .../blocks/post-template/editor.css | 1 + .../blocks/post-template/style-rtl.css | 1 + .../blocks/post-template/style.css | 1 + .../build/block-library/blocks/post-terms.php | 114 + .../blocks/post-terms/block.json | 60 + .../blocks/post-terms/style-rtl.css | 1 + .../block-library/blocks/post-terms/style.css | 1 + .../blocks/post-time-to-read.php | 62 + .../blocks/post-time-to-read/block.json | 47 + .../blocks/post-time-to-read/style-rtl.css | 1 + .../blocks/post-time-to-read/style.css | 1 + .../build/block-library/blocks/post-title.php | 72 + .../blocks/post-title/block.json | 65 + .../blocks/post-title/style-rtl.css | 1 + .../block-library/blocks/post-title/style.css | 1 + .../blocks/preformatted/block.json | 47 + .../blocks/preformatted/style-rtl.css | 1 + .../blocks/preformatted/style.css | 1 + .../block-library/blocks/pullquote/block.json | 74 + .../blocks/pullquote/editor-rtl.css | 1 + .../block-library/blocks/pullquote/editor.css | 1 + .../blocks/pullquote/style-rtl.css | 1 + .../block-library/blocks/pullquote/style.css | 1 + .../blocks/pullquote/theme-rtl.css | 1 + .../block-library/blocks/pullquote/theme.css | 1 + .../block-library/blocks/query-no-results.php | 59 + .../blocks/query-no-results/block.json | 33 + .../blocks/query-pagination-next.php | 96 + .../blocks/query-pagination-next/block.json | 46 + .../blocks/query-pagination-numbers.php | 124 + .../query-pagination-numbers/block.json | 42 + .../query-pagination-numbers/editor-rtl.css | 1 + .../query-pagination-numbers/editor.css | 1 + .../blocks/query-pagination-previous.php | 84 + .../query-pagination-previous/block.json | 46 + .../block-library/blocks/query-pagination.php | 47 + .../blocks/query-pagination/block.json | 61 + .../blocks/query-pagination/editor-rtl.css | 1 + .../blocks/query-pagination/editor.css | 1 + .../blocks/query-pagination/style-rtl.css | 1 + .../blocks/query-pagination/style.css | 1 + .../block-library/blocks/query-title.php | 72 + .../blocks/query-title/block.json | 60 + .../blocks/query-title/style-rtl.css | 1 + .../blocks/query-title/style.css | 1 + .../build/block-library/blocks/query.php | 124 + .../block-library/blocks/query/block.json | 57 + .../block-library/blocks/query/editor-rtl.css | 1 + .../block-library/blocks/query/editor.css | 1 + .../block-library/blocks/query/style-rtl.css | 1 + .../block-library/blocks/query/style.css | 1 + .../build/block-library/blocks/query/view.js | 96 + .../blocks/query/view.min.asset.php | 1 + .../block-library/blocks/query/view.min.js | 2 + .../blocks/query/view.min.js.map | 1 + .../block-library/blocks/quote/block.json | 69 + .../block-library/blocks/quote/style-rtl.css | 1 + .../block-library/blocks/quote/style.css | 1 + .../block-library/blocks/quote/theme-rtl.css | 1 + .../block-library/blocks/quote/theme.css | 1 + .../build/block-library/blocks/read-more.php | 59 + .../block-library/blocks/read-more/block.json | 56 + .../blocks/read-more/style-rtl.css | 1 + .../block-library/blocks/read-more/style.css | 1 + .../16.7.1/build/block-library/blocks/rss.php | 119 + .../build/block-library/blocks/rss/block.json | 50 + .../block-library/blocks/rss/editor-rtl.css | 1 + .../build/block-library/blocks/rss/editor.css | 1 + .../block-library/blocks/rss/style-rtl.css | 1 + .../build/block-library/blocks/rss/style.css | 1 + .../build/block-library/blocks/search.php | 611 + .../block-library/blocks/search/block.json | 97 + .../blocks/search/editor-rtl.css | 1 + .../block-library/blocks/search/editor.css | 1 + .../block-library/blocks/search/style-rtl.css | 1 + .../block-library/blocks/search/style.css | 1 + .../block-library/blocks/search/theme-rtl.css | 1 + .../block-library/blocks/search/theme.css | 1 + .../build/block-library/blocks/search/view.js | 95 + .../blocks/search/view.min.asset.php | 1 + .../block-library/blocks/search/view.min.js | 2 + .../blocks/search/view.min.js.map | 1 + .../block-library/blocks/separator/block.json | 40 + .../blocks/separator/editor-rtl.css | 1 + .../block-library/blocks/separator/editor.css | 1 + .../blocks/separator/style-rtl.css | 1 + .../block-library/blocks/separator/style.css | 1 + .../blocks/separator/theme-rtl.css | 1 + .../block-library/blocks/separator/theme.css | 1 + .../build/block-library/blocks/shortcode.php | 31 + .../block-library/blocks/shortcode/block.json | 21 + .../blocks/shortcode/editor-rtl.css | 1 + .../block-library/blocks/shortcode/editor.css | 1 + .../build/block-library/blocks/site-logo.php | 206 + .../block-library/blocks/site-logo/block.json | 60 + .../blocks/site-logo/editor-rtl.css | 1 + .../block-library/blocks/site-logo/editor.css | 1 + .../blocks/site-logo/style-rtl.css | 1 + .../block-library/blocks/site-logo/style.css | 1 + .../block-library/blocks/site-tagline.php | 41 + .../blocks/site-tagline/block.json | 49 + .../blocks/site-tagline/editor-rtl.css | 1 + .../blocks/site-tagline/editor.css | 1 + .../build/block-library/blocks/site-title.php | 65 + .../blocks/site-title/block.json | 69 + .../blocks/site-title/editor-rtl.css | 1 + .../blocks/site-title/editor.css | 1 + .../blocks/site-title/style-rtl.css | 1 + .../block-library/blocks/site-title/style.css | 1 + .../block-library/blocks/social-link.php | 368 + .../blocks/social-link/block.json | 37 + .../blocks/social-link/editor-rtl.css | 1 + .../blocks/social-link/editor.css | 1 + .../blocks/social-links/block.json | 89 + .../blocks/social-links/editor-rtl.css | 1 + .../blocks/social-links/editor.css | 1 + .../blocks/social-links/style-rtl.css | 1 + .../blocks/social-links/style.css | 1 + .../block-library/blocks/spacer/block.json | 30 + .../blocks/spacer/editor-rtl.css | 1 + .../block-library/blocks/spacer/editor.css | 1 + .../block-library/blocks/spacer/style-rtl.css | 1 + .../block-library/blocks/spacer/style.css | 1 + .../blocks/table-of-contents/block.json | 51 + .../block-library/blocks/table/block.json | 211 + .../block-library/blocks/table/editor-rtl.css | 1 + .../block-library/blocks/table/editor.css | 1 + .../block-library/blocks/table/style-rtl.css | 1 + .../block-library/blocks/table/style.css | 1 + .../block-library/blocks/table/theme-rtl.css | 1 + .../block-library/blocks/table/theme.css | 1 + .../build/block-library/blocks/tag-cloud.php | 54 + .../block-library/blocks/tag-cloud/block.json | 54 + .../blocks/tag-cloud/style-rtl.css | 1 + .../block-library/blocks/tag-cloud/style.css | 1 + .../block-library/blocks/template-part.php | 286 + .../blocks/template-part/block.json | 29 + .../blocks/template-part/editor-rtl.css | 1 + .../blocks/template-part/editor.css | 1 + .../blocks/template-part/theme-rtl.css | 1 + .../blocks/template-part/theme.css | 1 + .../block-library/blocks/term-description.php | 49 + .../blocks/term-description/block.json | 43 + .../blocks/term-description/style-rtl.css | 1 + .../blocks/term-description/style.css | 1 + .../blocks/text-columns/block.json | 36 + .../blocks/text-columns/editor-rtl.css | 1 + .../blocks/text-columns/editor.css | 1 + .../blocks/text-columns/style-rtl.css | 1 + .../blocks/text-columns/style.css | 1 + .../block-library/blocks/verse/block.json | 64 + .../block-library/blocks/verse/style-rtl.css | 1 + .../block-library/blocks/verse/style.css | 1 + .../block-library/blocks/video/block.json | 95 + .../block-library/blocks/video/editor-rtl.css | 1 + .../block-library/blocks/video/editor.css | 1 + .../block-library/blocks/video/style-rtl.css | 1 + .../block-library/blocks/video/style.css | 1 + .../block-library/blocks/video/theme-rtl.css | 1 + .../block-library/blocks/video/theme.css | 1 + .../build/block-library/classic-rtl.css | 1 + .../16.7.1/build/block-library/classic.css | 1 + .../16.7.1/build/block-library/common-rtl.css | 1 + .../16.7.1/build/block-library/common.css | 1 + .../block-library/editor-elements-rtl.css | 1 + .../build/block-library/editor-elements.css | 1 + .../16.7.1/build/block-library/editor-rtl.css | 1 + .../16.7.1/build/block-library/editor.css | 1 + .../build/block-library/elements-rtl.css | 1 + .../16.7.1/build/block-library/elements.css | 1 + versions/16.7.1/build/block-library/index.js | 58060 +++++++++++ .../build/block-library/index.min.asset.php | 1 + .../16.7.1/build/block-library/index.min.js | 143 + .../build/block-library/index.min.js.map | 1 + .../16.7.1/build/block-library/reset-rtl.css | 1 + versions/16.7.1/build/block-library/reset.css | 1 + .../16.7.1/build/block-library/style-rtl.css | 1 + versions/16.7.1/build/block-library/style.css | 1 + .../16.7.1/build/block-library/theme-rtl.css | 1 + versions/16.7.1/build/block-library/theme.css | 1 + .../index.js | 485 + .../index.min.asset.php | 1 + .../index.min.js | 2 + .../index.min.js.map | 1 + .../block-serialization-spec-parser/index.js | 1831 + .../index.min.asset.php | 1 + .../index.min.js | 2 + .../index.min.js.map | 1 + versions/16.7.1/build/blocks/index.js | 15405 +++ .../16.7.1/build/blocks/index.min.asset.php | 1 + versions/16.7.1/build/blocks/index.min.js | 8 + versions/16.7.1/build/blocks/index.min.js.map | 1 + versions/16.7.1/build/commands/index.js | 4382 + .../16.7.1/build/commands/index.min.asset.php | 1 + versions/16.7.1/build/commands/index.min.js | 2 + .../16.7.1/build/commands/index.min.js.map | 1 + versions/16.7.1/build/commands/style-rtl.css | 1 + versions/16.7.1/build/commands/style.css | 1 + versions/16.7.1/build/components/index.js | 82038 ++++++++++++++++ .../build/components/index.min.asset.php | 1 + versions/16.7.1/build/components/index.min.js | 85 + .../16.7.1/build/components/index.min.js.map | 1 + .../16.7.1/build/components/style-rtl.css | 1 + versions/16.7.1/build/components/style.css | 1 + versions/16.7.1/build/compose/index.js | 5861 ++ .../16.7.1/build/compose/index.min.asset.php | 1 + versions/16.7.1/build/compose/index.min.js | 2 + .../16.7.1/build/compose/index.min.js.map | 1 + versions/16.7.1/build/core-commands/index.js | 601 + .../build/core-commands/index.min.asset.php | 1 + .../16.7.1/build/core-commands/index.min.js | 2 + .../build/core-commands/index.min.js.map | 1 + versions/16.7.1/build/core-data/index.js | 24011 +++++ .../build/core-data/index.min.asset.php | 1 + versions/16.7.1/build/core-data/index.min.js | 2 + .../16.7.1/build/core-data/index.min.js.map | 1 + .../16.7.1/build/customize-widgets/index.js | 3225 + .../customize-widgets/index.min.asset.php | 1 + .../build/customize-widgets/index.min.js | 9 + .../build/customize-widgets/index.min.js.map | 1 + .../build/customize-widgets/style-rtl.css | 1 + .../16.7.1/build/customize-widgets/style.css | 1 + versions/16.7.1/build/data-controls/index.js | 217 + .../build/data-controls/index.min.asset.php | 1 + .../16.7.1/build/data-controls/index.min.js | 2 + .../build/data-controls/index.min.js.map | 1 + versions/16.7.1/build/data/index.js | 4769 + .../16.7.1/build/data/index.min.asset.php | 1 + versions/16.7.1/build/data/index.min.js | 2 + versions/16.7.1/build/data/index.min.js.map | 1 + versions/16.7.1/build/date/index.js | 1778 + .../16.7.1/build/date/index.min.asset.php | 1 + versions/16.7.1/build/date/index.min.js | 2 + versions/16.7.1/build/date/index.min.js.map | 1 + versions/16.7.1/build/deprecated/index.js | 123 + .../build/deprecated/index.min.asset.php | 1 + versions/16.7.1/build/deprecated/index.min.js | 2 + .../16.7.1/build/deprecated/index.min.js.map | 1 + versions/16.7.1/build/dom-ready/index.js | 76 + .../build/dom-ready/index.min.asset.php | 1 + versions/16.7.1/build/dom-ready/index.min.js | 2 + .../16.7.1/build/dom-ready/index.min.js.map | 1 + versions/16.7.1/build/dom/index.js | 2014 + versions/16.7.1/build/dom/index.min.asset.php | 1 + versions/16.7.1/build/dom/index.min.js | 2 + versions/16.7.1/build/dom/index.min.js.map | 1 + .../16.7.1/build/edit-post/classic-rtl.css | 1 + versions/16.7.1/build/edit-post/classic.css | 1 + versions/16.7.1/build/edit-post/index.js | 9780 ++ .../build/edit-post/index.min.asset.php | 1 + versions/16.7.1/build/edit-post/index.min.js | 48 + .../16.7.1/build/edit-post/index.min.js.map | 1 + versions/16.7.1/build/edit-post/style-rtl.css | 1 + versions/16.7.1/build/edit-post/style.css | 1 + versions/16.7.1/build/edit-site/index.js | 37456 +++++++ .../build/edit-site/index.min.asset.php | 1 + versions/16.7.1/build/edit-site/index.min.js | 175 + .../16.7.1/build/edit-site/index.min.js.map | 1 + versions/16.7.1/build/edit-site/style-rtl.css | 1 + versions/16.7.1/build/edit-site/style.css | 1 + .../blocks/widget-area/block.json | 23 + versions/16.7.1/build/edit-widgets/index.js | 4674 + .../build/edit-widgets/index.min.asset.php | 1 + .../16.7.1/build/edit-widgets/index.min.js | 38 + .../build/edit-widgets/index.min.js.map | 1 + .../16.7.1/build/edit-widgets/style-rtl.css | 1 + versions/16.7.1/build/edit-widgets/style.css | 1 + versions/16.7.1/build/editor/index.js | 12817 +++ .../16.7.1/build/editor/index.min.asset.php | 1 + versions/16.7.1/build/editor/index.min.js | 57 + versions/16.7.1/build/editor/index.min.js.map | 1 + versions/16.7.1/build/editor/style-rtl.css | 1 + versions/16.7.1/build/editor/style.css | 1 + versions/16.7.1/build/element/index.js | 1886 + .../16.7.1/build/element/index.min.asset.php | 1 + versions/16.7.1/build/element/index.min.js | 2 + .../16.7.1/build/element/index.min.js.map | 1 + versions/16.7.1/build/escape-html/index.js | 193 + .../build/escape-html/index.min.asset.php | 1 + .../16.7.1/build/escape-html/index.min.js | 2 + .../16.7.1/build/escape-html/index.min.js.map | 1 + versions/16.7.1/build/format-library/index.js | 1848 + .../build/format-library/index.min.asset.php | 1 + .../16.7.1/build/format-library/index.min.js | 3 + .../build/format-library/index.min.js.map | 1 + .../16.7.1/build/format-library/style-rtl.css | 1 + .../16.7.1/build/format-library/style.css | 1 + versions/16.7.1/build/hooks/index.js | 594 + .../16.7.1/build/hooks/index.min.asset.php | 1 + versions/16.7.1/build/hooks/index.min.js | 2 + versions/16.7.1/build/hooks/index.min.js.map | 1 + versions/16.7.1/build/html-entities/index.js | 98 + .../build/html-entities/index.min.asset.php | 1 + .../16.7.1/build/html-entities/index.min.js | 2 + .../build/html-entities/index.min.js.map | 1 + versions/16.7.1/build/i18n/index.js | 1597 + .../16.7.1/build/i18n/index.min.asset.php | 1 + versions/16.7.1/build/i18n/index.min.js | 2 + versions/16.7.1/build/i18n/index.min.js.map | 1 + .../16.7.1/build/interactivity/index.min.js | 2 + .../build/interactivity/index.min.js.map | 1 + .../16.7.1/build/is-shallow-equal/index.js | 142 + .../is-shallow-equal/index.min.asset.php | 1 + .../build/is-shallow-equal/index.min.js | 2 + .../build/is-shallow-equal/index.min.js.map | 1 + .../16.7.1/build/keyboard-shortcuts/index.js | 1093 + .../keyboard-shortcuts/index.min.asset.php | 1 + .../build/keyboard-shortcuts/index.min.js | 2 + .../build/keyboard-shortcuts/index.min.js.map | 1 + versions/16.7.1/build/keycodes/index.js | 948 + .../16.7.1/build/keycodes/index.min.asset.php | 1 + versions/16.7.1/build/keycodes/index.min.js | 10 + .../16.7.1/build/keycodes/index.min.js.map | 1 + .../build/list-reusable-blocks/index.js | 839 + .../list-reusable-blocks/index.min.asset.php | 1 + .../build/list-reusable-blocks/index.min.js | 2 + .../list-reusable-blocks/index.min.js.map | 1 + .../build/list-reusable-blocks/style-rtl.css | 1 + .../build/list-reusable-blocks/style.css | 1 + versions/16.7.1/build/media-utils/index.js | 700 + .../build/media-utils/index.min.asset.php | 1 + .../16.7.1/build/media-utils/index.min.js | 12 + .../16.7.1/build/media-utils/index.min.js.map | 1 + versions/16.7.1/build/notices/index.js | 674 + .../16.7.1/build/notices/index.min.asset.php | 1 + versions/16.7.1/build/notices/index.min.js | 2 + .../16.7.1/build/notices/index.min.js.map | 1 + versions/16.7.1/build/nux/index.js | 744 + versions/16.7.1/build/nux/index.min.asset.php | 1 + versions/16.7.1/build/nux/index.min.js | 2 + versions/16.7.1/build/nux/index.min.js.map | 1 + versions/16.7.1/build/nux/style-rtl.css | 1 + versions/16.7.1/build/nux/style.css | 1 + versions/16.7.1/build/patterns/index.js | 737 + .../16.7.1/build/patterns/index.min.asset.php | 1 + versions/16.7.1/build/patterns/index.min.js | 6 + .../16.7.1/build/patterns/index.min.js.map | 1 + versions/16.7.1/build/patterns/style-rtl.css | 1 + versions/16.7.1/build/patterns/style.css | 1 + versions/16.7.1/build/plugins/index.js | 642 + .../16.7.1/build/plugins/index.min.asset.php | 1 + versions/16.7.1/build/plugins/index.min.js | 2 + .../16.7.1/build/plugins/index.min.js.map | 1 + .../build/preferences-persistence/index.js | 862 + .../index.min.asset.php | 1 + .../preferences-persistence/index.min.js | 2 + .../preferences-persistence/index.min.js.map | 1 + versions/16.7.1/build/preferences/index.js | 388 + .../build/preferences/index.min.asset.php | 1 + .../16.7.1/build/preferences/index.min.js | 4 + .../16.7.1/build/preferences/index.min.js.map | 1 + versions/16.7.1/build/primitives/index.js | 298 + .../build/primitives/index.min.asset.php | 1 + versions/16.7.1/build/primitives/index.min.js | 2 + .../16.7.1/build/primitives/index.min.js.map | 1 + versions/16.7.1/build/priority-queue/index.js | 510 + .../build/priority-queue/index.min.asset.php | 1 + .../16.7.1/build/priority-queue/index.min.js | 2 + .../build/priority-queue/index.min.js.map | 1 + versions/16.7.1/build/private-apis/index.js | 234 + .../build/private-apis/index.min.asset.php | 1 + .../16.7.1/build/private-apis/index.min.js | 2 + .../build/private-apis/index.min.js.map | 1 + versions/16.7.1/build/react-i18n/index.js | 165 + .../build/react-i18n/index.min.asset.php | 1 + versions/16.7.1/build/react-i18n/index.min.js | 2 + .../16.7.1/build/react-i18n/index.min.js.map | 1 + .../react-refresh-entry/index.min.asset.php | 1 + .../build/react-refresh-entry/index.min.js | 652 + .../react-refresh-runtime/index.min.asset.php | 1 + .../build/react-refresh-runtime/index.min.js | 68 + versions/16.7.1/build/redux-routine/index.js | 886 + .../build/redux-routine/index.min.asset.php | 1 + .../16.7.1/build/redux-routine/index.min.js | 2 + .../build/redux-routine/index.min.js.map | 1 + .../16.7.1/build/reusable-blocks/index.js | 508 + .../build/reusable-blocks/index.min.asset.php | 1 + .../16.7.1/build/reusable-blocks/index.min.js | 6 + .../build/reusable-blocks/index.min.js.map | 1 + .../build/reusable-blocks/style-rtl.css | 1 + .../16.7.1/build/reusable-blocks/style.css | 1 + versions/16.7.1/build/rich-text/index.js | 4147 + .../build/rich-text/index.min.asset.php | 1 + versions/16.7.1/build/rich-text/index.min.js | 6 + .../16.7.1/build/rich-text/index.min.js.map | 1 + versions/16.7.1/build/router/index.js | 184 + .../16.7.1/build/router/index.min.asset.php | 1 + versions/16.7.1/build/router/index.min.js | 2 + versions/16.7.1/build/router/index.min.js.map | 1 + .../16.7.1/build/server-side-render/index.js | 441 + .../server-side-render/index.min.asset.php | 1 + .../build/server-side-render/index.min.js | 4 + .../build/server-side-render/index.min.js.map | 1 + versions/16.7.1/build/shortcode/index.js | 555 + .../build/shortcode/index.min.asset.php | 1 + versions/16.7.1/build/shortcode/index.min.js | 2 + .../16.7.1/build/shortcode/index.min.js.map | 1 + ...tyle-engine-css-declarations-gutenberg.php | 169 + ...ass-wp-style-engine-css-rule-gutenberg.php | 127 + ...style-engine-css-rules-store-gutenberg.php | 144 + .../class-wp-style-engine-gutenberg.php | 637 + ...ss-wp-style-engine-processor-gutenberg.php | 157 + versions/16.7.1/build/style-engine/index.js | 1095 + .../build/style-engine/index.min.asset.php | 1 + .../16.7.1/build/style-engine/index.min.js | 2 + .../build/style-engine/index.min.js.map | 1 + .../style-engine/style-engine-gutenberg.php | 154 + versions/16.7.1/build/token-list/index.js | 249 + .../build/token-list/index.min.asset.php | 1 + versions/16.7.1/build/token-list/index.min.js | 2 + .../16.7.1/build/token-list/index.min.js.map | 1 + versions/16.7.1/build/url/index.js | 1437 + versions/16.7.1/build/url/index.min.asset.php | 1 + versions/16.7.1/build/url/index.min.js | 2 + versions/16.7.1/build/url/index.min.js.map | 1 + .../16.7.1/build/vendors/inert-polyfill.js | 1 + .../build/vendors/inert-polyfill.min.js | 1 + versions/16.7.1/build/vendors/react-dom.js | 1 + .../16.7.1/build/vendors/react-dom.min.js | 1 + versions/16.7.1/build/vendors/react.js | 1 + versions/16.7.1/build/vendors/react.min.js | 1 + versions/16.7.1/build/viewport/index.js | 350 + .../16.7.1/build/viewport/index.min.asset.php | 1 + versions/16.7.1/build/viewport/index.min.js | 2 + .../16.7.1/build/viewport/index.min.js.map | 1 + versions/16.7.1/build/warning/index.js | 93 + .../16.7.1/build/warning/index.min.asset.php | 1 + versions/16.7.1/build/warning/index.min.js | 2 + .../16.7.1/build/warning/index.min.js.map | 1 + .../build/widgets/blocks/legacy-widget.php | 149 + .../widgets/blocks/legacy-widget/block.json | 28 + .../build/widgets/blocks/widget-group.php | 78 + .../widgets/blocks/widget-group/block.json | 18 + versions/16.7.1/build/widgets/index.js | 1756 + .../16.7.1/build/widgets/index.min.asset.php | 1 + versions/16.7.1/build/widgets/index.min.js | 3 + .../16.7.1/build/widgets/index.min.js.map | 1 + versions/16.7.1/build/widgets/style-rtl.css | 1 + versions/16.7.1/build/widgets/style.css | 1 + versions/16.7.1/build/wordcount/index.js | 382 + .../build/wordcount/index.min.asset.php | 1 + versions/16.7.1/build/wordcount/index.min.js | 2 + .../16.7.1/build/wordcount/index.min.js.map | 1 + versions/16.7.1/changelog.txt | 34741 +++++++ versions/16.7.1/gutenberg.php | 74 + versions/16.7.1/lib/README.md | 181 + versions/16.7.1/lib/block-editor-settings.php | 151 + .../16.7.1/lib/block-supports/background.php | 103 + .../16.7.1/lib/block-supports/behaviors.php | 257 + versions/16.7.1/lib/block-supports/border.php | 164 + versions/16.7.1/lib/block-supports/colors.php | 137 + .../16.7.1/lib/block-supports/dimensions.php | 84 + .../16.7.1/lib/block-supports/duotone.php | 438 + .../16.7.1/lib/block-supports/elements.php | 205 + versions/16.7.1/lib/block-supports/layout.php | 919 + .../16.7.1/lib/block-supports/position.php | 148 + .../16.7.1/lib/block-supports/settings.php | 134 + versions/16.7.1/lib/block-supports/shadow.php | 77 + .../16.7.1/lib/block-supports/spacing.php | 83 + .../16.7.1/lib/block-supports/typography.php | 582 + versions/16.7.1/lib/blocks.php | 463 + .../16.7.1/lib/class-wp-duotone-gutenberg.php | 1067 + ...est-global-styles-controller-gutenberg.php | 719 + .../class-wp-theme-json-data-gutenberg.php | 75 + .../lib/class-wp-theme-json-gutenberg.php | 3745 + ...class-wp-theme-json-resolver-gutenberg.php | 760 + .../class-wp-theme-json-schema-gutenberg.php | 202 + versions/16.7.1/lib/client-assets.php | 596 + .../edit-site-routes-backwards-compat.php | 44 + .../wordpress-6.3/block-editor-settings.php | 89 + .../compat/wordpress-6.3/block-patterns.php | 165 + .../wordpress-6.3/block-template-utils.php | 150 + .../lib/compat/wordpress-6.3/blocks.php | 122 + ...enberg-classic-to-block-menu-converter.php | 123 + .../class-gutenberg-navigation-fallback.php | 237 + ...erg-rest-block-patterns-controller-6-3.php | 198 + ...class-gutenberg-rest-blocks-controller.php | 51 + ...global-styles-revisions-controller-6-3.php | 469 + ...rg-rest-navigation-fallback-controller.php | 178 + ...utenberg-rest-templates-controller-6-3.php | 68 + .../lib/compat/wordpress-6.3/footnotes.php | 32 + .../get-global-styles-and-settings.php | 114 + ...class-gutenberg-html-tag-processor-6-3.php | 2320 + .../16.7.1/lib/compat/wordpress-6.3/kses.php | 29 + .../compat/wordpress-6.3/link-template.php | 60 + .../navigation-block-preloading.php | 48 + .../wordpress-6.3/navigation-fallback.php | 54 + .../lib/compat/wordpress-6.3/rest-api.php | 124 + .../compat/wordpress-6.3/script-loader.php | 112 + .../compat/wordpress-6.3/theme-previews.php | 130 + .../lib/compat/wordpress-6.4/block-hooks.php | 376 + .../compat/wordpress-6.4/block-patterns.php | 36 + .../lib/compat/wordpress-6.4/blocks.php | 23 + ...tenberg-rest-block-patterns-controller.php | 46 + ...global-styles-revisions-controller-6-4.php | 164 + .../font-face/class-wp-font-face-resolver.php | 184 + .../fonts/font-face/class-wp-font-face.php | 436 + .../lib/compat/wordpress-6.4/fonts/fonts.php | 78 + ...ass-wp-html-active-formatting-elements.php | 191 + .../html-api/class-wp-html-open-elements.php | 436 + .../class-wp-html-processor-state.php | 138 + .../html-api/class-wp-html-processor.php | 1355 + .../html-api/class-wp-html-token.php | 101 + .../class-wp-html-unsupported-exception.php | 35 + .../16.7.1/lib/compat/wordpress-6.4/kses.php | 18 + .../lib/compat/wordpress-6.4/rest-api.php | 29 + .../compat/wordpress-6.4/script-loader.php | 200 + .../compat/wordpress-6.4/theme-previews.php | 27 + versions/16.7.1/lib/demo.php | 64 + .../lib/experimental/assets/tinymce-proxy.js | 14 + .../block-editor-settings-mobile.php | 39 + versions/16.7.1/lib/experimental/blocks.php | 206 + .../lib/experimental/class--wp-editors.php | 31 + ...gutenberg-rest-template-revision-count.php | 75 + ...-rest-block-editor-settings-controller.php | 322 + .../class-wp-rest-customizer-nonces.php | 75 + .../experimental/connection-sources/index.php | 15 + .../lib/experimental/disable-tinymce.php | 97 + .../lib/experimental/editor-settings.php | 35 + .../class-gutenberg-fonts-api-bc-layer.php | 96 + .../fonts-api/bc-layer/class-wp-web-fonts.php | 703 + .../class-wp-webfonts-provider-local.php | 284 + .../bc-layer/class-wp-webfonts-provider.php | 66 + .../bc-layer/class-wp-webfonts-utils.php | 85 + .../fonts-api/bc-layer/class-wp-webfonts.php | 238 + .../bc-layer/webfonts-deprecations.php | 260 + .../class-wp-fonts-provider-local.php | 236 + .../fonts-api/class-wp-fonts-provider.php | 129 + .../fonts-api/class-wp-fonts-resolver.php | 398 + .../fonts-api/class-wp-fonts-utils.php | 122 + .../experimental/fonts-api/class-wp-fonts.php | 753 + .../lib/experimental/fonts-api/fonts-api.php | 259 + .../class-gutenberg-fonts-api-bc-layer.php | 49 + .../class-wp-fonts-provider-local.php | 46 + .../bc-layer/class-wp-fonts-provider.php | 98 + .../bc-layer/class-wp-fonts-resolver.php | 64 + .../bc-layer/class-wp-fonts-utils.php | 74 + .../font-face/bc-layer/class-wp-fonts.php | 199 + .../font-face/bc-layer/class-wp-web-fonts.php | 190 + .../class-wp-webfonts-provider-local.php | 65 + .../bc-layer/class-wp-webfonts-provider.php | 53 + .../bc-layer/class-wp-webfonts-utils.php | 82 + .../font-face/bc-layer/class-wp-webfonts.php | 146 + .../bc-layer/webfonts-deprecations.php | 291 + .../font-library/class-wp-font-collection.php | 112 + .../class-wp-font-family-utils.php | 92 + .../font-library/class-wp-font-family.php | 619 + .../font-library/class-wp-font-library.php | 135 + .../class-wp-rest-font-library-controller.php | 398 + .../fonts/font-library/font-library.php | 68 + .../class-wp-directive-context.php | 81 + .../class-wp-directive-processor.php | 228 + .../class-wp-interactivity-store.php | 69 + .../directive-processing.php | 170 + .../interactivity-api/directives/wp-bind.php | 32 + .../interactivity-api/directives/wp-class.php | 36 + .../directives/wp-context.php | 33 + .../interactivity-api/directives/wp-style.php | 72 + .../interactivity-api/directives/wp-text.php | 27 + .../interactivity-api/scripts.php | 40 + .../experimental/interactivity-api/store.php | 28 + versions/16.7.1/lib/experimental/kses.php | 89 + versions/16.7.1/lib/experimental/l10n.php | 139 + .../experimental/navigation-theme-opt-in.php | 386 + versions/16.7.1/lib/experimental/rest-api.php | 125 + .../lib/experimental/synchronization.php | 24 + versions/16.7.1/lib/experiments-page.php | 154 + .../16.7.1/lib/global-styles-and-settings.php | 292 + versions/16.7.1/lib/init.php | 59 + versions/16.7.1/lib/load.php | 245 + versions/16.7.1/lib/rest-api.php | 20 + versions/16.7.1/lib/script-loader.php | 94 + versions/16.7.1/lib/theme-i18n.json | 87 + versions/16.7.1/lib/theme.json | 327 + versions/16.7.1/lib/upgrade.php | 65 + .../class-wp-block-parser-block.php | 90 + .../class-wp-block-parser-frame.php | 78 + .../class-wp-block-parser.php | 413 + .../parser.php | 11 + versions/16.7.1/post-content.php | 190 + versions/16.7.1/readme.txt | 83 + 898 files changed, 452877 insertions(+) create mode 100644 versions/16.7.1/README.md create mode 100644 versions/16.7.1/build/a11y/index.js create mode 100644 versions/16.7.1/build/a11y/index.min.asset.php create mode 100644 versions/16.7.1/build/a11y/index.min.js create mode 100644 versions/16.7.1/build/a11y/index.min.js.map create mode 100644 versions/16.7.1/build/annotations/index.js create mode 100644 versions/16.7.1/build/annotations/index.min.asset.php create mode 100644 versions/16.7.1/build/annotations/index.min.js create mode 100644 versions/16.7.1/build/annotations/index.min.js.map create mode 100644 versions/16.7.1/build/api-fetch/index.js create mode 100644 versions/16.7.1/build/api-fetch/index.min.asset.php create mode 100644 versions/16.7.1/build/api-fetch/index.min.js create mode 100644 versions/16.7.1/build/api-fetch/index.min.js.map create mode 100644 versions/16.7.1/build/autop/index.js create mode 100644 versions/16.7.1/build/autop/index.min.asset.php create mode 100644 versions/16.7.1/build/autop/index.min.js create mode 100644 versions/16.7.1/build/autop/index.min.js.map create mode 100644 versions/16.7.1/build/blob/index.js create mode 100644 versions/16.7.1/build/blob/index.min.asset.php create mode 100644 versions/16.7.1/build/blob/index.min.js create mode 100644 versions/16.7.1/build/blob/index.min.js.map create mode 100644 versions/16.7.1/build/block-directory/index.js create mode 100644 versions/16.7.1/build/block-directory/index.min.asset.php create mode 100644 versions/16.7.1/build/block-directory/index.min.js create mode 100644 versions/16.7.1/build/block-directory/index.min.js.map create mode 100644 versions/16.7.1/build/block-directory/style-rtl.css create mode 100644 versions/16.7.1/build/block-directory/style.css create mode 100644 versions/16.7.1/build/block-editor/content-rtl.css create mode 100644 versions/16.7.1/build/block-editor/content.css create mode 100644 versions/16.7.1/build/block-editor/default-editor-styles-rtl.css create mode 100644 versions/16.7.1/build/block-editor/default-editor-styles.css create mode 100644 versions/16.7.1/build/block-editor/index.js create mode 100644 versions/16.7.1/build/block-editor/index.min.asset.php create mode 100644 versions/16.7.1/build/block-editor/index.min.js create mode 100644 versions/16.7.1/build/block-editor/index.min.js.map create mode 100644 versions/16.7.1/build/block-editor/style-rtl.css create mode 100644 versions/16.7.1/build/block-editor/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/archives.php create mode 100644 versions/16.7.1/build/block-library/blocks/archives/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/archives/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/archives/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/archives/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/archives/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/audio/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/audio/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/audio/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/audio/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/audio/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/audio/theme-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/audio/theme.css create mode 100644 versions/16.7.1/build/block-library/blocks/avatar.php create mode 100644 versions/16.7.1/build/block-library/blocks/avatar/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/avatar/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/avatar/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/avatar/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/avatar/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/block.php create mode 100644 versions/16.7.1/build/block-library/blocks/block/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/block/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/block/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/button/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/button/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/button/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/button/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/button/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/buttons/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/buttons/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/buttons/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/buttons/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/buttons/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/calendar.php create mode 100644 versions/16.7.1/build/block-library/blocks/calendar/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/calendar/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/calendar/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/categories.php create mode 100644 versions/16.7.1/build/block-library/blocks/categories/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/categories/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/categories/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/categories/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/categories/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/code/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/code/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/code/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/code/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/code/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/code/theme-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/code/theme.css create mode 100644 versions/16.7.1/build/block-library/blocks/column/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/columns/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/columns/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/columns/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/columns/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/columns/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/comment-author-avatar.php create mode 100644 versions/16.7.1/build/block-library/blocks/comment-author-avatar/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/comment-author-avatar/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/comment-author-avatar/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/comment-author-name.php create mode 100644 versions/16.7.1/build/block-library/blocks/comment-author-name/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/comment-content.php create mode 100644 versions/16.7.1/build/block-library/blocks/comment-content/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/comment-content/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/comment-content/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/comment-date.php create mode 100644 versions/16.7.1/build/block-library/blocks/comment-date/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/comment-edit-link.php create mode 100644 versions/16.7.1/build/block-library/blocks/comment-edit-link/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/comment-reply-link.php create mode 100644 versions/16.7.1/build/block-library/blocks/comment-reply-link/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/comment-template.php create mode 100644 versions/16.7.1/build/block-library/blocks/comment-template/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/comment-template/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/comment-template/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/comments-pagination-next.php create mode 100644 versions/16.7.1/build/block-library/blocks/comments-pagination-next/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/comments-pagination-numbers.php create mode 100644 versions/16.7.1/build/block-library/blocks/comments-pagination-numbers/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/comments-pagination-numbers/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/comments-pagination-numbers/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/comments-pagination-previous.php create mode 100644 versions/16.7.1/build/block-library/blocks/comments-pagination-previous/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/comments-pagination.php create mode 100644 versions/16.7.1/build/block-library/blocks/comments-pagination/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/comments-pagination/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/comments-pagination/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/comments-pagination/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/comments-pagination/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/comments-title.php create mode 100644 versions/16.7.1/build/block-library/blocks/comments-title/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/comments-title/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/comments-title/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/comments.php create mode 100644 versions/16.7.1/build/block-library/blocks/comments/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/comments/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/comments/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/comments/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/comments/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/cover.php create mode 100644 versions/16.7.1/build/block-library/blocks/cover/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/cover/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/cover/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/cover/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/cover/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/details/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/details/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/details/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/details/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/details/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/embed/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/embed/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/embed/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/embed/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/embed/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/embed/theme-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/embed/theme.css create mode 100644 versions/16.7.1/build/block-library/blocks/file.php create mode 100644 versions/16.7.1/build/block-library/blocks/file/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/file/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/file/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/file/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/file/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/file/view.js create mode 100644 versions/16.7.1/build/block-library/blocks/file/view.min.asset.php create mode 100644 versions/16.7.1/build/block-library/blocks/file/view.min.js create mode 100644 versions/16.7.1/build/block-library/blocks/file/view.min.js.map create mode 100644 versions/16.7.1/build/block-library/blocks/footnotes.php create mode 100644 versions/16.7.1/build/block-library/blocks/footnotes/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/footnotes/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/footnotes/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/freeform/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/freeform/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/freeform/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/gallery.php create mode 100644 versions/16.7.1/build/block-library/blocks/gallery/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/gallery/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/gallery/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/gallery/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/gallery/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/gallery/theme-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/gallery/theme.css create mode 100644 versions/16.7.1/build/block-library/blocks/group/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/group/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/group/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/group/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/group/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/group/theme-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/group/theme.css create mode 100644 versions/16.7.1/build/block-library/blocks/heading.php create mode 100644 versions/16.7.1/build/block-library/blocks/heading/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/heading/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/heading/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/home-link.php create mode 100644 versions/16.7.1/build/block-library/blocks/home-link/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/html/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/html/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/html/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/image.php create mode 100644 versions/16.7.1/build/block-library/blocks/image/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/image/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/image/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/image/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/image/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/image/theme-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/image/theme.css create mode 100644 versions/16.7.1/build/block-library/blocks/image/view.js create mode 100644 versions/16.7.1/build/block-library/blocks/image/view.min.asset.php create mode 100644 versions/16.7.1/build/block-library/blocks/image/view.min.js create mode 100644 versions/16.7.1/build/block-library/blocks/image/view.min.js.map create mode 100644 versions/16.7.1/build/block-library/blocks/latest-comments.php create mode 100644 versions/16.7.1/build/block-library/blocks/latest-comments/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/latest-comments/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/latest-comments/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/latest-posts.php create mode 100644 versions/16.7.1/build/block-library/blocks/latest-posts/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/latest-posts/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/latest-posts/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/latest-posts/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/latest-posts/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/list-item/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/list/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/list/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/list/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/loginout.php create mode 100644 versions/16.7.1/build/block-library/blocks/loginout/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/media-text/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/media-text/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/media-text/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/media-text/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/media-text/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/missing/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/more/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/more/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/more/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/navigation-link.php create mode 100644 versions/16.7.1/build/block-library/blocks/navigation-link/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/navigation-link/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/navigation-link/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/navigation-link/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/navigation-link/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/navigation-submenu.php create mode 100644 versions/16.7.1/build/block-library/blocks/navigation-submenu/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/navigation-submenu/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/navigation-submenu/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/navigation.php create mode 100644 versions/16.7.1/build/block-library/blocks/navigation/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/navigation/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/navigation/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/navigation/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/navigation/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/navigation/view.js create mode 100644 versions/16.7.1/build/block-library/blocks/navigation/view.min.asset.php create mode 100644 versions/16.7.1/build/block-library/blocks/navigation/view.min.js create mode 100644 versions/16.7.1/build/block-library/blocks/navigation/view.min.js.map create mode 100644 versions/16.7.1/build/block-library/blocks/nextpage/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/nextpage/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/nextpage/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/page-list-item.php create mode 100644 versions/16.7.1/build/block-library/blocks/page-list-item/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/page-list.php create mode 100644 versions/16.7.1/build/block-library/blocks/page-list/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/page-list/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/page-list/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/page-list/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/page-list/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/paragraph/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/paragraph/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/paragraph/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/paragraph/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/paragraph/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/pattern.php create mode 100644 versions/16.7.1/build/block-library/blocks/pattern/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-author-biography.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-author-biography/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-author-name.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-author-name/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-author.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-author/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-author/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-author/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-comment.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-comment/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-comments-count.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-comments-count/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-comments-form.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-comments-form/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-comments-form/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-comments-form/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-comments-form/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-comments-form/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-comments-link.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-comments-link/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-content.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-content/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-date.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-date/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-date/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-date/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-excerpt.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-excerpt/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-excerpt/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-excerpt/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-excerpt/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-excerpt/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-featured-image.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-featured-image/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-featured-image/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-featured-image/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-featured-image/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-featured-image/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-navigation-link.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-navigation-link/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-navigation-link/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-navigation-link/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-template.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-template/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-template/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-template/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-template/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-template/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-terms.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-terms/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-terms/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-terms/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-time-to-read.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-time-to-read/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-time-to-read/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-time-to-read/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-title.php create mode 100644 versions/16.7.1/build/block-library/blocks/post-title/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/post-title/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/post-title/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/preformatted/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/preformatted/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/preformatted/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/pullquote/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/pullquote/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/pullquote/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/pullquote/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/pullquote/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/pullquote/theme-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/pullquote/theme.css create mode 100644 versions/16.7.1/build/block-library/blocks/query-no-results.php create mode 100644 versions/16.7.1/build/block-library/blocks/query-no-results/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/query-pagination-next.php create mode 100644 versions/16.7.1/build/block-library/blocks/query-pagination-next/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/query-pagination-numbers.php create mode 100644 versions/16.7.1/build/block-library/blocks/query-pagination-numbers/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/query-pagination-numbers/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/query-pagination-numbers/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/query-pagination-previous.php create mode 100644 versions/16.7.1/build/block-library/blocks/query-pagination-previous/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/query-pagination.php create mode 100644 versions/16.7.1/build/block-library/blocks/query-pagination/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/query-pagination/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/query-pagination/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/query-pagination/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/query-pagination/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/query-title.php create mode 100644 versions/16.7.1/build/block-library/blocks/query-title/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/query-title/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/query-title/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/query.php create mode 100644 versions/16.7.1/build/block-library/blocks/query/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/query/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/query/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/query/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/query/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/query/view.js create mode 100644 versions/16.7.1/build/block-library/blocks/query/view.min.asset.php create mode 100644 versions/16.7.1/build/block-library/blocks/query/view.min.js create mode 100644 versions/16.7.1/build/block-library/blocks/query/view.min.js.map create mode 100644 versions/16.7.1/build/block-library/blocks/quote/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/quote/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/quote/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/quote/theme-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/quote/theme.css create mode 100644 versions/16.7.1/build/block-library/blocks/read-more.php create mode 100644 versions/16.7.1/build/block-library/blocks/read-more/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/read-more/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/read-more/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/rss.php create mode 100644 versions/16.7.1/build/block-library/blocks/rss/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/rss/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/rss/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/rss/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/rss/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/search.php create mode 100644 versions/16.7.1/build/block-library/blocks/search/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/search/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/search/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/search/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/search/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/search/theme-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/search/theme.css create mode 100644 versions/16.7.1/build/block-library/blocks/search/view.js create mode 100644 versions/16.7.1/build/block-library/blocks/search/view.min.asset.php create mode 100644 versions/16.7.1/build/block-library/blocks/search/view.min.js create mode 100644 versions/16.7.1/build/block-library/blocks/search/view.min.js.map create mode 100644 versions/16.7.1/build/block-library/blocks/separator/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/separator/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/separator/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/separator/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/separator/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/separator/theme-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/separator/theme.css create mode 100644 versions/16.7.1/build/block-library/blocks/shortcode.php create mode 100644 versions/16.7.1/build/block-library/blocks/shortcode/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/shortcode/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/shortcode/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/site-logo.php create mode 100644 versions/16.7.1/build/block-library/blocks/site-logo/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/site-logo/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/site-logo/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/site-logo/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/site-logo/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/site-tagline.php create mode 100644 versions/16.7.1/build/block-library/blocks/site-tagline/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/site-tagline/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/site-tagline/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/site-title.php create mode 100644 versions/16.7.1/build/block-library/blocks/site-title/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/site-title/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/site-title/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/site-title/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/site-title/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/social-link.php create mode 100644 versions/16.7.1/build/block-library/blocks/social-link/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/social-link/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/social-link/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/social-links/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/social-links/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/social-links/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/social-links/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/social-links/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/spacer/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/spacer/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/spacer/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/spacer/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/spacer/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/table-of-contents/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/table/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/table/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/table/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/table/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/table/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/table/theme-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/table/theme.css create mode 100644 versions/16.7.1/build/block-library/blocks/tag-cloud.php create mode 100644 versions/16.7.1/build/block-library/blocks/tag-cloud/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/tag-cloud/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/tag-cloud/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/template-part.php create mode 100644 versions/16.7.1/build/block-library/blocks/template-part/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/template-part/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/template-part/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/template-part/theme-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/template-part/theme.css create mode 100644 versions/16.7.1/build/block-library/blocks/term-description.php create mode 100644 versions/16.7.1/build/block-library/blocks/term-description/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/term-description/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/term-description/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/text-columns/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/text-columns/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/text-columns/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/text-columns/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/text-columns/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/verse/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/verse/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/verse/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/video/block.json create mode 100644 versions/16.7.1/build/block-library/blocks/video/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/video/editor.css create mode 100644 versions/16.7.1/build/block-library/blocks/video/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/video/style.css create mode 100644 versions/16.7.1/build/block-library/blocks/video/theme-rtl.css create mode 100644 versions/16.7.1/build/block-library/blocks/video/theme.css create mode 100644 versions/16.7.1/build/block-library/classic-rtl.css create mode 100644 versions/16.7.1/build/block-library/classic.css create mode 100644 versions/16.7.1/build/block-library/common-rtl.css create mode 100644 versions/16.7.1/build/block-library/common.css create mode 100644 versions/16.7.1/build/block-library/editor-elements-rtl.css create mode 100644 versions/16.7.1/build/block-library/editor-elements.css create mode 100644 versions/16.7.1/build/block-library/editor-rtl.css create mode 100644 versions/16.7.1/build/block-library/editor.css create mode 100644 versions/16.7.1/build/block-library/elements-rtl.css create mode 100644 versions/16.7.1/build/block-library/elements.css create mode 100644 versions/16.7.1/build/block-library/index.js create mode 100644 versions/16.7.1/build/block-library/index.min.asset.php create mode 100644 versions/16.7.1/build/block-library/index.min.js create mode 100644 versions/16.7.1/build/block-library/index.min.js.map create mode 100644 versions/16.7.1/build/block-library/reset-rtl.css create mode 100644 versions/16.7.1/build/block-library/reset.css create mode 100644 versions/16.7.1/build/block-library/style-rtl.css create mode 100644 versions/16.7.1/build/block-library/style.css create mode 100644 versions/16.7.1/build/block-library/theme-rtl.css create mode 100644 versions/16.7.1/build/block-library/theme.css create mode 100644 versions/16.7.1/build/block-serialization-default-parser/index.js create mode 100644 versions/16.7.1/build/block-serialization-default-parser/index.min.asset.php create mode 100644 versions/16.7.1/build/block-serialization-default-parser/index.min.js create mode 100644 versions/16.7.1/build/block-serialization-default-parser/index.min.js.map create mode 100644 versions/16.7.1/build/block-serialization-spec-parser/index.js create mode 100644 versions/16.7.1/build/block-serialization-spec-parser/index.min.asset.php create mode 100644 versions/16.7.1/build/block-serialization-spec-parser/index.min.js create mode 100644 versions/16.7.1/build/block-serialization-spec-parser/index.min.js.map create mode 100644 versions/16.7.1/build/blocks/index.js create mode 100644 versions/16.7.1/build/blocks/index.min.asset.php create mode 100644 versions/16.7.1/build/blocks/index.min.js create mode 100644 versions/16.7.1/build/blocks/index.min.js.map create mode 100644 versions/16.7.1/build/commands/index.js create mode 100644 versions/16.7.1/build/commands/index.min.asset.php create mode 100644 versions/16.7.1/build/commands/index.min.js create mode 100644 versions/16.7.1/build/commands/index.min.js.map create mode 100644 versions/16.7.1/build/commands/style-rtl.css create mode 100644 versions/16.7.1/build/commands/style.css create mode 100644 versions/16.7.1/build/components/index.js create mode 100644 versions/16.7.1/build/components/index.min.asset.php create mode 100644 versions/16.7.1/build/components/index.min.js create mode 100644 versions/16.7.1/build/components/index.min.js.map create mode 100644 versions/16.7.1/build/components/style-rtl.css create mode 100644 versions/16.7.1/build/components/style.css create mode 100644 versions/16.7.1/build/compose/index.js create mode 100644 versions/16.7.1/build/compose/index.min.asset.php create mode 100644 versions/16.7.1/build/compose/index.min.js create mode 100644 versions/16.7.1/build/compose/index.min.js.map create mode 100644 versions/16.7.1/build/core-commands/index.js create mode 100644 versions/16.7.1/build/core-commands/index.min.asset.php create mode 100644 versions/16.7.1/build/core-commands/index.min.js create mode 100644 versions/16.7.1/build/core-commands/index.min.js.map create mode 100644 versions/16.7.1/build/core-data/index.js create mode 100644 versions/16.7.1/build/core-data/index.min.asset.php create mode 100644 versions/16.7.1/build/core-data/index.min.js create mode 100644 versions/16.7.1/build/core-data/index.min.js.map create mode 100644 versions/16.7.1/build/customize-widgets/index.js create mode 100644 versions/16.7.1/build/customize-widgets/index.min.asset.php create mode 100644 versions/16.7.1/build/customize-widgets/index.min.js create mode 100644 versions/16.7.1/build/customize-widgets/index.min.js.map create mode 100644 versions/16.7.1/build/customize-widgets/style-rtl.css create mode 100644 versions/16.7.1/build/customize-widgets/style.css create mode 100644 versions/16.7.1/build/data-controls/index.js create mode 100644 versions/16.7.1/build/data-controls/index.min.asset.php create mode 100644 versions/16.7.1/build/data-controls/index.min.js create mode 100644 versions/16.7.1/build/data-controls/index.min.js.map create mode 100644 versions/16.7.1/build/data/index.js create mode 100644 versions/16.7.1/build/data/index.min.asset.php create mode 100644 versions/16.7.1/build/data/index.min.js create mode 100644 versions/16.7.1/build/data/index.min.js.map create mode 100644 versions/16.7.1/build/date/index.js create mode 100644 versions/16.7.1/build/date/index.min.asset.php create mode 100644 versions/16.7.1/build/date/index.min.js create mode 100644 versions/16.7.1/build/date/index.min.js.map create mode 100644 versions/16.7.1/build/deprecated/index.js create mode 100644 versions/16.7.1/build/deprecated/index.min.asset.php create mode 100644 versions/16.7.1/build/deprecated/index.min.js create mode 100644 versions/16.7.1/build/deprecated/index.min.js.map create mode 100644 versions/16.7.1/build/dom-ready/index.js create mode 100644 versions/16.7.1/build/dom-ready/index.min.asset.php create mode 100644 versions/16.7.1/build/dom-ready/index.min.js create mode 100644 versions/16.7.1/build/dom-ready/index.min.js.map create mode 100644 versions/16.7.1/build/dom/index.js create mode 100644 versions/16.7.1/build/dom/index.min.asset.php create mode 100644 versions/16.7.1/build/dom/index.min.js create mode 100644 versions/16.7.1/build/dom/index.min.js.map create mode 100644 versions/16.7.1/build/edit-post/classic-rtl.css create mode 100644 versions/16.7.1/build/edit-post/classic.css create mode 100644 versions/16.7.1/build/edit-post/index.js create mode 100644 versions/16.7.1/build/edit-post/index.min.asset.php create mode 100644 versions/16.7.1/build/edit-post/index.min.js create mode 100644 versions/16.7.1/build/edit-post/index.min.js.map create mode 100644 versions/16.7.1/build/edit-post/style-rtl.css create mode 100644 versions/16.7.1/build/edit-post/style.css create mode 100644 versions/16.7.1/build/edit-site/index.js create mode 100644 versions/16.7.1/build/edit-site/index.min.asset.php create mode 100644 versions/16.7.1/build/edit-site/index.min.js create mode 100644 versions/16.7.1/build/edit-site/index.min.js.map create mode 100644 versions/16.7.1/build/edit-site/style-rtl.css create mode 100644 versions/16.7.1/build/edit-site/style.css create mode 100644 versions/16.7.1/build/edit-widgets/blocks/widget-area/block.json create mode 100644 versions/16.7.1/build/edit-widgets/index.js create mode 100644 versions/16.7.1/build/edit-widgets/index.min.asset.php create mode 100644 versions/16.7.1/build/edit-widgets/index.min.js create mode 100644 versions/16.7.1/build/edit-widgets/index.min.js.map create mode 100644 versions/16.7.1/build/edit-widgets/style-rtl.css create mode 100644 versions/16.7.1/build/edit-widgets/style.css create mode 100644 versions/16.7.1/build/editor/index.js create mode 100644 versions/16.7.1/build/editor/index.min.asset.php create mode 100644 versions/16.7.1/build/editor/index.min.js create mode 100644 versions/16.7.1/build/editor/index.min.js.map create mode 100644 versions/16.7.1/build/editor/style-rtl.css create mode 100644 versions/16.7.1/build/editor/style.css create mode 100644 versions/16.7.1/build/element/index.js create mode 100644 versions/16.7.1/build/element/index.min.asset.php create mode 100644 versions/16.7.1/build/element/index.min.js create mode 100644 versions/16.7.1/build/element/index.min.js.map create mode 100644 versions/16.7.1/build/escape-html/index.js create mode 100644 versions/16.7.1/build/escape-html/index.min.asset.php create mode 100644 versions/16.7.1/build/escape-html/index.min.js create mode 100644 versions/16.7.1/build/escape-html/index.min.js.map create mode 100644 versions/16.7.1/build/format-library/index.js create mode 100644 versions/16.7.1/build/format-library/index.min.asset.php create mode 100644 versions/16.7.1/build/format-library/index.min.js create mode 100644 versions/16.7.1/build/format-library/index.min.js.map create mode 100644 versions/16.7.1/build/format-library/style-rtl.css create mode 100644 versions/16.7.1/build/format-library/style.css create mode 100644 versions/16.7.1/build/hooks/index.js create mode 100644 versions/16.7.1/build/hooks/index.min.asset.php create mode 100644 versions/16.7.1/build/hooks/index.min.js create mode 100644 versions/16.7.1/build/hooks/index.min.js.map create mode 100644 versions/16.7.1/build/html-entities/index.js create mode 100644 versions/16.7.1/build/html-entities/index.min.asset.php create mode 100644 versions/16.7.1/build/html-entities/index.min.js create mode 100644 versions/16.7.1/build/html-entities/index.min.js.map create mode 100644 versions/16.7.1/build/i18n/index.js create mode 100644 versions/16.7.1/build/i18n/index.min.asset.php create mode 100644 versions/16.7.1/build/i18n/index.min.js create mode 100644 versions/16.7.1/build/i18n/index.min.js.map create mode 100644 versions/16.7.1/build/interactivity/index.min.js create mode 100644 versions/16.7.1/build/interactivity/index.min.js.map create mode 100644 versions/16.7.1/build/is-shallow-equal/index.js create mode 100644 versions/16.7.1/build/is-shallow-equal/index.min.asset.php create mode 100644 versions/16.7.1/build/is-shallow-equal/index.min.js create mode 100644 versions/16.7.1/build/is-shallow-equal/index.min.js.map create mode 100644 versions/16.7.1/build/keyboard-shortcuts/index.js create mode 100644 versions/16.7.1/build/keyboard-shortcuts/index.min.asset.php create mode 100644 versions/16.7.1/build/keyboard-shortcuts/index.min.js create mode 100644 versions/16.7.1/build/keyboard-shortcuts/index.min.js.map create mode 100644 versions/16.7.1/build/keycodes/index.js create mode 100644 versions/16.7.1/build/keycodes/index.min.asset.php create mode 100644 versions/16.7.1/build/keycodes/index.min.js create mode 100644 versions/16.7.1/build/keycodes/index.min.js.map create mode 100644 versions/16.7.1/build/list-reusable-blocks/index.js create mode 100644 versions/16.7.1/build/list-reusable-blocks/index.min.asset.php create mode 100644 versions/16.7.1/build/list-reusable-blocks/index.min.js create mode 100644 versions/16.7.1/build/list-reusable-blocks/index.min.js.map create mode 100644 versions/16.7.1/build/list-reusable-blocks/style-rtl.css create mode 100644 versions/16.7.1/build/list-reusable-blocks/style.css create mode 100644 versions/16.7.1/build/media-utils/index.js create mode 100644 versions/16.7.1/build/media-utils/index.min.asset.php create mode 100644 versions/16.7.1/build/media-utils/index.min.js create mode 100644 versions/16.7.1/build/media-utils/index.min.js.map create mode 100644 versions/16.7.1/build/notices/index.js create mode 100644 versions/16.7.1/build/notices/index.min.asset.php create mode 100644 versions/16.7.1/build/notices/index.min.js create mode 100644 versions/16.7.1/build/notices/index.min.js.map create mode 100644 versions/16.7.1/build/nux/index.js create mode 100644 versions/16.7.1/build/nux/index.min.asset.php create mode 100644 versions/16.7.1/build/nux/index.min.js create mode 100644 versions/16.7.1/build/nux/index.min.js.map create mode 100644 versions/16.7.1/build/nux/style-rtl.css create mode 100644 versions/16.7.1/build/nux/style.css create mode 100644 versions/16.7.1/build/patterns/index.js create mode 100644 versions/16.7.1/build/patterns/index.min.asset.php create mode 100644 versions/16.7.1/build/patterns/index.min.js create mode 100644 versions/16.7.1/build/patterns/index.min.js.map create mode 100644 versions/16.7.1/build/patterns/style-rtl.css create mode 100644 versions/16.7.1/build/patterns/style.css create mode 100644 versions/16.7.1/build/plugins/index.js create mode 100644 versions/16.7.1/build/plugins/index.min.asset.php create mode 100644 versions/16.7.1/build/plugins/index.min.js create mode 100644 versions/16.7.1/build/plugins/index.min.js.map create mode 100644 versions/16.7.1/build/preferences-persistence/index.js create mode 100644 versions/16.7.1/build/preferences-persistence/index.min.asset.php create mode 100644 versions/16.7.1/build/preferences-persistence/index.min.js create mode 100644 versions/16.7.1/build/preferences-persistence/index.min.js.map create mode 100644 versions/16.7.1/build/preferences/index.js create mode 100644 versions/16.7.1/build/preferences/index.min.asset.php create mode 100644 versions/16.7.1/build/preferences/index.min.js create mode 100644 versions/16.7.1/build/preferences/index.min.js.map create mode 100644 versions/16.7.1/build/primitives/index.js create mode 100644 versions/16.7.1/build/primitives/index.min.asset.php create mode 100644 versions/16.7.1/build/primitives/index.min.js create mode 100644 versions/16.7.1/build/primitives/index.min.js.map create mode 100644 versions/16.7.1/build/priority-queue/index.js create mode 100644 versions/16.7.1/build/priority-queue/index.min.asset.php create mode 100644 versions/16.7.1/build/priority-queue/index.min.js create mode 100644 versions/16.7.1/build/priority-queue/index.min.js.map create mode 100644 versions/16.7.1/build/private-apis/index.js create mode 100644 versions/16.7.1/build/private-apis/index.min.asset.php create mode 100644 versions/16.7.1/build/private-apis/index.min.js create mode 100644 versions/16.7.1/build/private-apis/index.min.js.map create mode 100644 versions/16.7.1/build/react-i18n/index.js create mode 100644 versions/16.7.1/build/react-i18n/index.min.asset.php create mode 100644 versions/16.7.1/build/react-i18n/index.min.js create mode 100644 versions/16.7.1/build/react-i18n/index.min.js.map create mode 100644 versions/16.7.1/build/react-refresh-entry/index.min.asset.php create mode 100644 versions/16.7.1/build/react-refresh-entry/index.min.js create mode 100644 versions/16.7.1/build/react-refresh-runtime/index.min.asset.php create mode 100644 versions/16.7.1/build/react-refresh-runtime/index.min.js create mode 100644 versions/16.7.1/build/redux-routine/index.js create mode 100644 versions/16.7.1/build/redux-routine/index.min.asset.php create mode 100644 versions/16.7.1/build/redux-routine/index.min.js create mode 100644 versions/16.7.1/build/redux-routine/index.min.js.map create mode 100644 versions/16.7.1/build/reusable-blocks/index.js create mode 100644 versions/16.7.1/build/reusable-blocks/index.min.asset.php create mode 100644 versions/16.7.1/build/reusable-blocks/index.min.js create mode 100644 versions/16.7.1/build/reusable-blocks/index.min.js.map create mode 100644 versions/16.7.1/build/reusable-blocks/style-rtl.css create mode 100644 versions/16.7.1/build/reusable-blocks/style.css create mode 100644 versions/16.7.1/build/rich-text/index.js create mode 100644 versions/16.7.1/build/rich-text/index.min.asset.php create mode 100644 versions/16.7.1/build/rich-text/index.min.js create mode 100644 versions/16.7.1/build/rich-text/index.min.js.map create mode 100644 versions/16.7.1/build/router/index.js create mode 100644 versions/16.7.1/build/router/index.min.asset.php create mode 100644 versions/16.7.1/build/router/index.min.js create mode 100644 versions/16.7.1/build/router/index.min.js.map create mode 100644 versions/16.7.1/build/server-side-render/index.js create mode 100644 versions/16.7.1/build/server-side-render/index.min.asset.php create mode 100644 versions/16.7.1/build/server-side-render/index.min.js create mode 100644 versions/16.7.1/build/server-side-render/index.min.js.map create mode 100644 versions/16.7.1/build/shortcode/index.js create mode 100644 versions/16.7.1/build/shortcode/index.min.asset.php create mode 100644 versions/16.7.1/build/shortcode/index.min.js create mode 100644 versions/16.7.1/build/shortcode/index.min.js.map create mode 100644 versions/16.7.1/build/style-engine/class-wp-style-engine-css-declarations-gutenberg.php create mode 100644 versions/16.7.1/build/style-engine/class-wp-style-engine-css-rule-gutenberg.php create mode 100644 versions/16.7.1/build/style-engine/class-wp-style-engine-css-rules-store-gutenberg.php create mode 100644 versions/16.7.1/build/style-engine/class-wp-style-engine-gutenberg.php create mode 100644 versions/16.7.1/build/style-engine/class-wp-style-engine-processor-gutenberg.php create mode 100644 versions/16.7.1/build/style-engine/index.js create mode 100644 versions/16.7.1/build/style-engine/index.min.asset.php create mode 100644 versions/16.7.1/build/style-engine/index.min.js create mode 100644 versions/16.7.1/build/style-engine/index.min.js.map create mode 100644 versions/16.7.1/build/style-engine/style-engine-gutenberg.php create mode 100644 versions/16.7.1/build/token-list/index.js create mode 100644 versions/16.7.1/build/token-list/index.min.asset.php create mode 100644 versions/16.7.1/build/token-list/index.min.js create mode 100644 versions/16.7.1/build/token-list/index.min.js.map create mode 100644 versions/16.7.1/build/url/index.js create mode 100644 versions/16.7.1/build/url/index.min.asset.php create mode 100644 versions/16.7.1/build/url/index.min.js create mode 100644 versions/16.7.1/build/url/index.min.js.map create mode 100644 versions/16.7.1/build/vendors/inert-polyfill.js create mode 100644 versions/16.7.1/build/vendors/inert-polyfill.min.js create mode 100644 versions/16.7.1/build/vendors/react-dom.js create mode 100644 versions/16.7.1/build/vendors/react-dom.min.js create mode 100644 versions/16.7.1/build/vendors/react.js create mode 100644 versions/16.7.1/build/vendors/react.min.js create mode 100644 versions/16.7.1/build/viewport/index.js create mode 100644 versions/16.7.1/build/viewport/index.min.asset.php create mode 100644 versions/16.7.1/build/viewport/index.min.js create mode 100644 versions/16.7.1/build/viewport/index.min.js.map create mode 100644 versions/16.7.1/build/warning/index.js create mode 100644 versions/16.7.1/build/warning/index.min.asset.php create mode 100644 versions/16.7.1/build/warning/index.min.js create mode 100644 versions/16.7.1/build/warning/index.min.js.map create mode 100644 versions/16.7.1/build/widgets/blocks/legacy-widget.php create mode 100644 versions/16.7.1/build/widgets/blocks/legacy-widget/block.json create mode 100644 versions/16.7.1/build/widgets/blocks/widget-group.php create mode 100644 versions/16.7.1/build/widgets/blocks/widget-group/block.json create mode 100644 versions/16.7.1/build/widgets/index.js create mode 100644 versions/16.7.1/build/widgets/index.min.asset.php create mode 100644 versions/16.7.1/build/widgets/index.min.js create mode 100644 versions/16.7.1/build/widgets/index.min.js.map create mode 100644 versions/16.7.1/build/widgets/style-rtl.css create mode 100644 versions/16.7.1/build/widgets/style.css create mode 100644 versions/16.7.1/build/wordcount/index.js create mode 100644 versions/16.7.1/build/wordcount/index.min.asset.php create mode 100644 versions/16.7.1/build/wordcount/index.min.js create mode 100644 versions/16.7.1/build/wordcount/index.min.js.map create mode 100644 versions/16.7.1/changelog.txt create mode 100644 versions/16.7.1/gutenberg.php create mode 100644 versions/16.7.1/lib/README.md create mode 100644 versions/16.7.1/lib/block-editor-settings.php create mode 100644 versions/16.7.1/lib/block-supports/background.php create mode 100644 versions/16.7.1/lib/block-supports/behaviors.php create mode 100644 versions/16.7.1/lib/block-supports/border.php create mode 100644 versions/16.7.1/lib/block-supports/colors.php create mode 100644 versions/16.7.1/lib/block-supports/dimensions.php create mode 100644 versions/16.7.1/lib/block-supports/duotone.php create mode 100644 versions/16.7.1/lib/block-supports/elements.php create mode 100644 versions/16.7.1/lib/block-supports/layout.php create mode 100644 versions/16.7.1/lib/block-supports/position.php create mode 100644 versions/16.7.1/lib/block-supports/settings.php create mode 100644 versions/16.7.1/lib/block-supports/shadow.php create mode 100644 versions/16.7.1/lib/block-supports/spacing.php create mode 100644 versions/16.7.1/lib/block-supports/typography.php create mode 100644 versions/16.7.1/lib/blocks.php create mode 100644 versions/16.7.1/lib/class-wp-duotone-gutenberg.php create mode 100644 versions/16.7.1/lib/class-wp-rest-global-styles-controller-gutenberg.php create mode 100644 versions/16.7.1/lib/class-wp-theme-json-data-gutenberg.php create mode 100644 versions/16.7.1/lib/class-wp-theme-json-gutenberg.php create mode 100644 versions/16.7.1/lib/class-wp-theme-json-resolver-gutenberg.php create mode 100644 versions/16.7.1/lib/class-wp-theme-json-schema-gutenberg.php create mode 100644 versions/16.7.1/lib/client-assets.php create mode 100644 versions/16.7.1/lib/compat/plugin/edit-site-routes-backwards-compat.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/block-editor-settings.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/block-patterns.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/block-template-utils.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/blocks.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/class-gutenberg-classic-to-block-menu-converter.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/class-gutenberg-navigation-fallback.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/class-gutenberg-rest-block-patterns-controller-6-3.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/class-gutenberg-rest-blocks-controller.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/class-gutenberg-rest-global-styles-revisions-controller-6-3.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/class-gutenberg-rest-navigation-fallback-controller.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/class-gutenberg-rest-templates-controller-6-3.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/footnotes.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/get-global-styles-and-settings.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/html-api/class-gutenberg-html-tag-processor-6-3.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/kses.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/link-template.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/navigation-block-preloading.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/navigation-fallback.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/rest-api.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/script-loader.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.3/theme-previews.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/block-hooks.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/block-patterns.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/blocks.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/class-gutenberg-rest-block-patterns-controller.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/class-gutenberg-rest-global-styles-revisions-controller-6-4.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/fonts/font-face/class-wp-font-face-resolver.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/fonts/font-face/class-wp-font-face.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/fonts/fonts.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/html-api/class-wp-html-active-formatting-elements.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/html-api/class-wp-html-open-elements.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/html-api/class-wp-html-processor-state.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/html-api/class-wp-html-processor.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/html-api/class-wp-html-token.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/html-api/class-wp-html-unsupported-exception.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/kses.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/rest-api.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/script-loader.php create mode 100644 versions/16.7.1/lib/compat/wordpress-6.4/theme-previews.php create mode 100644 versions/16.7.1/lib/demo.php create mode 100644 versions/16.7.1/lib/experimental/assets/tinymce-proxy.js create mode 100644 versions/16.7.1/lib/experimental/block-editor-settings-mobile.php create mode 100644 versions/16.7.1/lib/experimental/blocks.php create mode 100644 versions/16.7.1/lib/experimental/class--wp-editors.php create mode 100644 versions/16.7.1/lib/experimental/class-gutenberg-rest-template-revision-count.php create mode 100644 versions/16.7.1/lib/experimental/class-wp-rest-block-editor-settings-controller.php create mode 100644 versions/16.7.1/lib/experimental/class-wp-rest-customizer-nonces.php create mode 100644 versions/16.7.1/lib/experimental/connection-sources/index.php create mode 100644 versions/16.7.1/lib/experimental/disable-tinymce.php create mode 100644 versions/16.7.1/lib/experimental/editor-settings.php create mode 100644 versions/16.7.1/lib/experimental/fonts-api/bc-layer/class-gutenberg-fonts-api-bc-layer.php create mode 100644 versions/16.7.1/lib/experimental/fonts-api/bc-layer/class-wp-web-fonts.php create mode 100644 versions/16.7.1/lib/experimental/fonts-api/bc-layer/class-wp-webfonts-provider-local.php create mode 100644 versions/16.7.1/lib/experimental/fonts-api/bc-layer/class-wp-webfonts-provider.php create mode 100644 versions/16.7.1/lib/experimental/fonts-api/bc-layer/class-wp-webfonts-utils.php create mode 100644 versions/16.7.1/lib/experimental/fonts-api/bc-layer/class-wp-webfonts.php create mode 100644 versions/16.7.1/lib/experimental/fonts-api/bc-layer/webfonts-deprecations.php create mode 100644 versions/16.7.1/lib/experimental/fonts-api/class-wp-fonts-provider-local.php create mode 100644 versions/16.7.1/lib/experimental/fonts-api/class-wp-fonts-provider.php create mode 100644 versions/16.7.1/lib/experimental/fonts-api/class-wp-fonts-resolver.php create mode 100644 versions/16.7.1/lib/experimental/fonts-api/class-wp-fonts-utils.php create mode 100644 versions/16.7.1/lib/experimental/fonts-api/class-wp-fonts.php create mode 100644 versions/16.7.1/lib/experimental/fonts-api/fonts-api.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-face/bc-layer/class-gutenberg-fonts-api-bc-layer.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-face/bc-layer/class-wp-fonts-provider-local.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-face/bc-layer/class-wp-fonts-provider.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-face/bc-layer/class-wp-fonts-resolver.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-face/bc-layer/class-wp-fonts-utils.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-face/bc-layer/class-wp-fonts.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-face/bc-layer/class-wp-web-fonts.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-face/bc-layer/class-wp-webfonts-provider-local.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-face/bc-layer/class-wp-webfonts-provider.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-face/bc-layer/class-wp-webfonts-utils.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-face/bc-layer/class-wp-webfonts.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-face/bc-layer/webfonts-deprecations.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-library/class-wp-font-collection.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-library/class-wp-font-family-utils.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-library/class-wp-font-family.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-library/class-wp-font-library.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-library/class-wp-rest-font-library-controller.php create mode 100644 versions/16.7.1/lib/experimental/fonts/font-library/font-library.php create mode 100644 versions/16.7.1/lib/experimental/interactivity-api/class-wp-directive-context.php create mode 100644 versions/16.7.1/lib/experimental/interactivity-api/class-wp-directive-processor.php create mode 100644 versions/16.7.1/lib/experimental/interactivity-api/class-wp-interactivity-store.php create mode 100644 versions/16.7.1/lib/experimental/interactivity-api/directive-processing.php create mode 100644 versions/16.7.1/lib/experimental/interactivity-api/directives/wp-bind.php create mode 100644 versions/16.7.1/lib/experimental/interactivity-api/directives/wp-class.php create mode 100644 versions/16.7.1/lib/experimental/interactivity-api/directives/wp-context.php create mode 100644 versions/16.7.1/lib/experimental/interactivity-api/directives/wp-style.php create mode 100644 versions/16.7.1/lib/experimental/interactivity-api/directives/wp-text.php create mode 100644 versions/16.7.1/lib/experimental/interactivity-api/scripts.php create mode 100644 versions/16.7.1/lib/experimental/interactivity-api/store.php create mode 100644 versions/16.7.1/lib/experimental/kses.php create mode 100644 versions/16.7.1/lib/experimental/l10n.php create mode 100644 versions/16.7.1/lib/experimental/navigation-theme-opt-in.php create mode 100644 versions/16.7.1/lib/experimental/rest-api.php create mode 100644 versions/16.7.1/lib/experimental/synchronization.php create mode 100644 versions/16.7.1/lib/experiments-page.php create mode 100644 versions/16.7.1/lib/global-styles-and-settings.php create mode 100644 versions/16.7.1/lib/init.php create mode 100644 versions/16.7.1/lib/load.php create mode 100644 versions/16.7.1/lib/rest-api.php create mode 100644 versions/16.7.1/lib/script-loader.php create mode 100644 versions/16.7.1/lib/theme-i18n.json create mode 100644 versions/16.7.1/lib/theme.json create mode 100644 versions/16.7.1/lib/upgrade.php create mode 100644 versions/16.7.1/packages/block-serialization-default-parser/class-wp-block-parser-block.php create mode 100644 versions/16.7.1/packages/block-serialization-default-parser/class-wp-block-parser-frame.php create mode 100644 versions/16.7.1/packages/block-serialization-default-parser/class-wp-block-parser.php create mode 100644 versions/16.7.1/packages/block-serialization-default-parser/parser.php create mode 100644 versions/16.7.1/post-content.php create mode 100644 versions/16.7.1/readme.txt diff --git a/versions.txt b/versions.txt index 1c095b11..b49917bc 100644 --- a/versions.txt +++ b/versions.txt @@ -62,3 +62,4 @@ 16.5.1 16.6.0 16.7.0 +16.7.1 diff --git a/versions/16.7.1/README.md b/versions/16.7.1/README.md new file mode 100644 index 00000000..5ba11231 --- /dev/null +++ b/versions/16.7.1/README.md @@ -0,0 +1,64 @@ +# Gutenberg + +[![End-to-End Tests](https://github.com/WordPress/gutenberg/workflows/End-to-End%20Tests/badge.svg)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22End-to-End+Tests%22+branch%3Atrunk) +[![Static Analysis (Linting, License, Type checks...)]()](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22Static+Analysis+%28Linting%2C+License%2C+Type+checks...%29%22+branch%3Atrunk) +[![Unit Tests](https://github.com/WordPress/gutenberg/workflows/Unit%20Tests/badge.svg)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22Unit+Tests%22+branch%3Atrunk) +[![Create Block](https://github.com/WordPress/gutenberg/workflows/Create%20Block/badge.svg)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22Create+Block%22+branch%3Atrunk) +[![React Native E2E Tests (iOS)]()](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22React+Native+E2E+Tests+%28iOS%29%22+branch%3Atrunk) +[![React Native E2E Tests (Android)]()](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22React+Native+E2E+Tests+%28Android%29%22+branch%3Atrunk) + +[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org) + +![Screenshot of the Gutenberg Editor, editing a post in WordPress](https://user-images.githubusercontent.com/1204802/100067796-fc3e8700-2e36-11eb-993b-6b80b4310b87.png) + +Welcome to the development hub for the WordPress Gutenberg project! + +"Gutenberg" is a codename for a whole new paradigm in WordPress site building and publishing, that aims to revolutionize the entire publishing experience as much as Gutenberg did the printed word. Right now, the project is in the second phase of a four-phase process that will touch every piece of WordPress -- Editing, **Customization** (which includes Full Site Editing, Block Patterns, Block Directory and Block based themes), Collaboration, and Multilingual -- and is focused on a new editing experience, the block editor. + +The block editor introduces a modular approach to pages and posts: each piece of content in the editor, from a paragraph to an image gallery to a headline, is its own block. And just like physical blocks, WordPress blocks can be added, arranged, and rearranged, allowing WordPress users to create media-rich pages in a visually intuitive way -- and without work-arounds like shortcodes or custom HTML. + +The block editor first became available in December 2018, and we're still hard at work refining the experience, creating more and better blocks, and laying the groundwork for the next three phases of work. The Gutenberg plugin gives you the latest version of the block editor, so you can join us in testing bleeding-edge features, start playing with blocks, and maybe get inspired to build your own. + +Check out the [Ways to keep up with Gutenberg & Full Site Editing (FSE)](https://make.wordpress.org/core/2020/05/20/ways-to-keep-up-with-full-site-editing-fse/) + +## Getting Started + +Get hands on: check out the [block editor live demo](https://wordpress.org/gutenberg/) to play with a test instance of the editor. + +### Using Gutenberg + +- **Download:** To use the latest release of the Gutenberg plugin on your WordPress site: install from the plugins page in wp-admin, or [download from the WordPress.org plugins repository](https://wordpress.org/plugins/gutenberg/). + +- **User Documentation:** See the [WordPress Editor documentation](https://wordpress.org/documentation/article/wordpress-block-editor/) for detailed docs on using the editor as an author creating posts and pages. + +- **User Support:** If you have run into an issue, you should check the [Support Forums first](https://wordpress.org/support/forums/). The forums are a great place to get help. If you have a bug to report, please [submit it to the Gutenberg repository](https://github.com/wordpress/gutenberg/issues). Please search prior to creating a new bug to confirm it's not a duplicate. + +### Developing for Gutenberg + +Extending and customizing is at the heart of the WordPress platform, this is no different for the Gutenberg project. The editor and future products can be extended by third-party developers using plugins. + +Review the [Create a Block tutorial](/docs/getting-started/create-block/README.md) for the fastest way to get started extending the block editor. See the [Developer Documentation](https://developer.wordpress.org/block-editor/#develop-for-the-block-editor) for extensive tutorials, documentation, and API references. + +### Contribute to Gutenberg + +Gutenberg is an open-source project and welcomes all contributors from code to design, and from documentation to triage. The project is built by many contributors and volunteers, and we'd love your help building it. + +See the [Contributors Handbook](https://developer.wordpress.org/block-editor/contributors/) for all the details on how you can contribute. + +To get up and running quickly with **code contribution** see [Getting Started With Code Contribution](/docs/contributors/code/getting-started-with-code-contribution.md). Also check out the other resources available on the [Code Contributions](/docs/contributors/code/README.md) page. + +In whichever way you wish to contribute please be sure to read the [Contributing Guidelines](https://github.com/WordPress/gutenberg/blob/HEAD/CONTRIBUTING.md) first. + +As with all WordPress projects, we want to ensure a welcoming environment for everyone. With that in mind, all contributors are expected to follow our [Code of Conduct](https://github.com/WordPress/gutenberg/blob/HEAD/CODE_OF_CONDUCT.md). + +## Get Involved + +You can join us in the `#core-editor` channel in Slack, see the [WordPress Slack page](https://make.wordpress.org/chat/) for signup information; it is free to join. + +**Weekly meetings** The Editor Team meets weekly on Wednesdays at 14:00 UTC in Slack. If you can not join the meeting, [agenda](https://make.wordpress.org/core/tag/core-editor-agenda/) and [notes](https://make.wordpress.org/core/tag/core-editor-summary/) are posted to the [Make WordPress Blog](https://make.wordpress.org/core/). + +## License + +WordPress is free software, and is released under the terms of the GNU General Public License version 2 or (at your option) any later version. See [LICENSE.md](LICENSE.md) for complete license. + +

Code is Poetry.

diff --git a/versions/16.7.1/build/a11y/index.js b/versions/16.7.1/build/a11y/index.js new file mode 100644 index 00000000..b0044328 --- /dev/null +++ b/versions/16.7.1/build/a11y/index.js @@ -0,0 +1,248 @@ +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ // The require scope +/******/ var __webpack_require__ = {}; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + "setup": () => (/* binding */ setup), + "speak": () => (/* binding */ speak) +}); + +;// CONCATENATED MODULE: external ["wp","domReady"] +const external_wp_domReady_namespaceObject = window["wp"]["domReady"]; +var external_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_wp_domReady_namespaceObject); +;// CONCATENATED MODULE: external ["wp","i18n"] +const external_wp_i18n_namespaceObject = window["wp"]["i18n"]; +;// CONCATENATED MODULE: ./packages/a11y/build-module/add-intro-text.js +/** + * WordPress dependencies + */ + + +/** + * Build the explanatory text to be placed before the aria live regions. + * + * This text is initially hidden from assistive technologies by using a `hidden` + * HTML attribute which is then removed once a message fills the aria-live regions. + * + * @return {HTMLParagraphElement} The explanatory text HTML element. + */ +function addIntroText() { + const introText = document.createElement('p'); + introText.id = 'a11y-speak-intro-text'; + introText.className = 'a11y-speak-intro-text'; + introText.textContent = (0,external_wp_i18n_namespaceObject.__)('Notifications'); + introText.setAttribute('style', 'position: absolute;' + 'margin: -1px;' + 'padding: 0;' + 'height: 1px;' + 'width: 1px;' + 'overflow: hidden;' + 'clip: rect(1px, 1px, 1px, 1px);' + '-webkit-clip-path: inset(50%);' + 'clip-path: inset(50%);' + 'border: 0;' + 'word-wrap: normal !important;'); + introText.setAttribute('hidden', 'hidden'); + const { + body + } = document; + if (body) { + body.appendChild(introText); + } + return introText; +} + +;// CONCATENATED MODULE: ./packages/a11y/build-module/add-container.js +/** + * Build the live regions markup. + * + * @param {string} [ariaLive] Value for the 'aria-live' attribute; default: 'polite'. + * + * @return {HTMLDivElement} The ARIA live region HTML element. + */ +function addContainer(ariaLive = 'polite') { + const container = document.createElement('div'); + container.id = `a11y-speak-${ariaLive}`; + container.className = 'a11y-speak-region'; + container.setAttribute('style', 'position: absolute;' + 'margin: -1px;' + 'padding: 0;' + 'height: 1px;' + 'width: 1px;' + 'overflow: hidden;' + 'clip: rect(1px, 1px, 1px, 1px);' + '-webkit-clip-path: inset(50%);' + 'clip-path: inset(50%);' + 'border: 0;' + 'word-wrap: normal !important;'); + container.setAttribute('aria-live', ariaLive); + container.setAttribute('aria-relevant', 'additions text'); + container.setAttribute('aria-atomic', 'true'); + const { + body + } = document; + if (body) { + body.appendChild(container); + } + return container; +} + +;// CONCATENATED MODULE: ./packages/a11y/build-module/clear.js +/** + * Clears the a11y-speak-region elements and hides the explanatory text. + */ +function clear() { + const regions = document.getElementsByClassName('a11y-speak-region'); + const introText = document.getElementById('a11y-speak-intro-text'); + for (let i = 0; i < regions.length; i++) { + regions[i].textContent = ''; + } + + // Make sure the explanatory text is hidden from assistive technologies. + if (introText) { + introText.setAttribute('hidden', 'hidden'); + } +} + +;// CONCATENATED MODULE: ./packages/a11y/build-module/filter-message.js +let previousMessage = ''; + +/** + * Filter the message to be announced to the screenreader. + * + * @param {string} message The message to be announced. + * + * @return {string} The filtered message. + */ +function filterMessage(message) { + /* + * Strip HTML tags (if any) from the message string. Ideally, messages should + * be simple strings, carefully crafted for specific use with A11ySpeak. + * When re-using already existing strings this will ensure simple HTML to be + * stripped out and replaced with a space. Browsers will collapse multiple + * spaces natively. + */ + message = message.replace(/<[^<>]+>/g, ' '); + + /* + * Safari + VoiceOver don't announce repeated, identical strings. We use + * a `no-break space` to force them to think identical strings are different. + */ + if (previousMessage === message) { + message += '\u00A0'; + } + previousMessage = message; + return message; +} + +;// CONCATENATED MODULE: ./packages/a11y/build-module/index.js +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + +/** + * Create the live regions. + */ +function setup() { + const introText = document.getElementById('a11y-speak-intro-text'); + const containerAssertive = document.getElementById('a11y-speak-assertive'); + const containerPolite = document.getElementById('a11y-speak-polite'); + if (introText === null) { + addIntroText(); + } + if (containerAssertive === null) { + addContainer('assertive'); + } + if (containerPolite === null) { + addContainer('polite'); + } +} + +/** + * Run setup on domReady. + */ +external_wp_domReady_default()(setup); + +/** + * Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions. + * This module is inspired by the `speak` function in `wp-a11y.js`. + * + * @param {string} message The message to be announced by assistive technologies. + * @param {string} [ariaLive] The politeness level for aria-live; default: 'polite'. + * + * @example + * ```js + * import { speak } from '@wordpress/a11y'; + * + * // For polite messages that shouldn't interrupt what screen readers are currently announcing. + * speak( 'The message you want to send to the ARIA live region' ); + * + * // For assertive messages that should interrupt what screen readers are currently announcing. + * speak( 'The message you want to send to the ARIA live region', 'assertive' ); + * ``` + */ +function speak(message, ariaLive) { + /* + * Clear previous messages to allow repeated strings being read out and hide + * the explanatory text from assistive technologies. + */ + clear(); + message = filterMessage(message); + const introText = document.getElementById('a11y-speak-intro-text'); + const containerAssertive = document.getElementById('a11y-speak-assertive'); + const containerPolite = document.getElementById('a11y-speak-polite'); + if (containerAssertive && ariaLive === 'assertive') { + containerAssertive.textContent = message; + } else if (containerPolite) { + containerPolite.textContent = message; + } + + /* + * Make the explanatory text available to assistive technologies by removing + * the 'hidden' HTML attribute. + */ + if (introText) { + introText.removeAttribute('hidden'); + } +} + +(window.wp = window.wp || {}).a11y = __webpack_exports__; +/******/ })() +; \ No newline at end of file diff --git a/versions/16.7.1/build/a11y/index.min.asset.php b/versions/16.7.1/build/a11y/index.min.asset.php new file mode 100644 index 00000000..62b24b77 --- /dev/null +++ b/versions/16.7.1/build/a11y/index.min.asset.php @@ -0,0 +1 @@ + array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '9061ce25a6ee8a006b52'); diff --git a/versions/16.7.1/build/a11y/index.min.js b/versions/16.7.1/build/a11y/index.min.js new file mode 100644 index 00000000..062f10e4 --- /dev/null +++ b/versions/16.7.1/build/a11y/index.min.js @@ -0,0 +1,2 @@ +(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{setup:()=>d,speak:()=>p});const n=window.wp.domReady;var o=e.n(n);const i=window.wp.i18n;function a(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}let r="";function d(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=(0,i.__)("Notifications"),e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("hidden","hidden");const{body:t}=document;t&&t.appendChild(e)}(),null===t&&a("assertive"),null===n&&a("polite")}function p(e,t){!function(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let t=0;t]+>/g," "),r===e&&(e+=" "),r=e,e}(e);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");o&&"assertive"===t?o.textContent=e:i&&(i.textContent=e),n&&n.removeAttribute("hidden")}o()(d),(window.wp=window.wp||{}).a11y=t})(); +//# sourceMappingURL=index.min.js.map \ No newline at end of file diff --git a/versions/16.7.1/build/a11y/index.min.js.map b/versions/16.7.1/build/a11y/index.min.js.map new file mode 100644 index 00000000..1aa6f6bb --- /dev/null +++ b/versions/16.7.1/build/a11y/index.min.js.map @@ -0,0 +1 @@ +{"version":3,"file":"./build/a11y/index.min.js","mappings":"mBACA,IAAIA,EAAsB,CCA1BA,EAAyBC,IACxB,IAAIC,EAASD,GAAUA,EAAOE,WAC7B,IAAOF,EAAiB,QACxB,IAAM,EAEP,OADAD,EAAoBI,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,ECLdF,EAAwB,CAACM,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXP,EAAoBS,EAAEF,EAAYC,KAASR,EAAoBS,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDR,EAAwB,CAACc,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFf,EAAyBM,IACH,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,GAAO,G,6CCL9D,MAAM,EAA+BC,OAAW,GAAY,S,aCA5D,MAAM,EAA+BA,OAAW,GAAQ,KCOzC,SAASC,EAAcC,EAAW,UAChD,MAAMC,EAAYC,SAASC,cAAe,OAC1CF,EAAUG,GAAM,cAAcJ,IAC9BC,EAAUI,UAAY,oBAEtBJ,EAAUK,aACT,QACA,iNAYDL,EAAUK,aAAc,YAAaN,GACrCC,EAAUK,aAAc,gBAAiB,kBACzCL,EAAUK,aAAc,cAAe,QAEvC,MAAM,KAAEC,GAASL,SAKjB,OAJKK,GACJA,EAAKC,YAAaP,GAGZA,CACR,CCpCA,IAAIQ,EAAkB,GCgBf,SAASC,IACf,MAAMC,EAAYT,SAASU,eAAgB,yBACrCC,EAAqBX,SAASU,eACnC,wBAEKE,EAAkBZ,SAASU,eAAgB,qBAE9B,OAAdD,GCVS,WACd,MAAMA,EAAYT,SAASC,cAAe,KAE1CQ,EAAUP,GAAK,wBACfO,EAAUN,UAAY,wBACtBM,EAAUI,aAAcC,EAAAA,EAAAA,IAAI,iBAE5BL,EAAUL,aACT,QACA,iNAYDK,EAAUL,aAAc,SAAU,UAElC,MAAM,KAAEC,GAASL,SACZK,GACJA,EAAKC,YAAaG,EAIpB,CDlBEM,GAG2B,OAAvBJ,GACJd,EAAc,aAGU,OAApBe,GACJf,EAAc,SAEhB,CAyBO,SAASmB,EAAOC,EAASnB,IExDjB,WACd,MAAMoB,EAAUlB,SAASmB,uBAAwB,qBAC3CV,EAAYT,SAASU,eAAgB,yBAE3C,IAAM,IAAIU,EAAI,EAAGA,EAAIF,EAAQG,OAAQD,IACpCF,EAASE,GAAIP,YAAc,GAIvBJ,GACJA,EAAUL,aAAc,SAAU,SAEpC,CFiDCkB,GAEAL,EDzDc,SAAwBA,GAoBtC,OAZAA,EAAUA,EAAQM,QAAS,YAAa,KAMnChB,IAAoBU,IACxBA,GAAW,KAGZV,EAAkBU,EAEXA,CACR,CCoCWO,CAAeP,GAEzB,MAAMR,EAAYT,SAASU,eAAgB,yBACrCC,EAAqBX,SAASU,eACnC,wBAEKE,EAAkBZ,SAASU,eAAgB,qBAE5CC,GAAmC,cAAbb,EAC1Ba,EAAmBE,YAAcI,EACtBL,IACXA,EAAgBC,YAAcI,GAO1BR,GACJA,EAAUgB,gBAAiB,SAE7B,CAhDAC,IAAUlB,I","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/compat get default export","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/external window [\"wp\",\"domReady\"]","webpack://wp/external window [\"wp\",\"i18n\"]","../../packages/a11y/src/add-container.js","../../packages/a11y/src/filter-message.js","../../packages/a11y/src/index.js","../../packages/a11y/src/add-intro-text.js","../../packages/a11y/src/clear.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"domReady\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","/**\n * Build the live regions markup.\n *\n * @param {string} [ariaLive] Value for the 'aria-live' attribute; default: 'polite'.\n *\n * @return {HTMLDivElement} The ARIA live region HTML element.\n */\nexport default function addContainer( ariaLive = 'polite' ) {\n\tconst container = document.createElement( 'div' );\n\tcontainer.id = `a11y-speak-${ ariaLive }`;\n\tcontainer.className = 'a11y-speak-region';\n\n\tcontainer.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tcontainer.setAttribute( 'aria-live', ariaLive );\n\tcontainer.setAttribute( 'aria-relevant', 'additions text' );\n\tcontainer.setAttribute( 'aria-atomic', 'true' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( container );\n\t}\n\n\treturn container;\n}\n","let previousMessage = '';\n\n/**\n * Filter the message to be announced to the screenreader.\n *\n * @param {string} message The message to be announced.\n *\n * @return {string} The filtered message.\n */\nexport default function filterMessage( message ) {\n\t/*\n\t * Strip HTML tags (if any) from the message string. Ideally, messages should\n\t * be simple strings, carefully crafted for specific use with A11ySpeak.\n\t * When re-using already existing strings this will ensure simple HTML to be\n\t * stripped out and replaced with a space. Browsers will collapse multiple\n\t * spaces natively.\n\t */\n\tmessage = message.replace( /<[^<>]+>/g, ' ' );\n\n\t/*\n\t * Safari + VoiceOver don't announce repeated, identical strings. We use\n\t * a `no-break space` to force them to think identical strings are different.\n\t */\n\tif ( previousMessage === message ) {\n\t\tmessage += '\\u00A0';\n\t}\n\n\tpreviousMessage = message;\n\n\treturn message;\n}\n","/**\n * WordPress dependencies\n */\nimport domReady from '@wordpress/dom-ready';\n\n/**\n * Internal dependencies\n */\nimport addIntroText from './add-intro-text';\nimport addContainer from './add-container';\nimport clear from './clear';\nimport filterMessage from './filter-message';\n\n/**\n * Create the live regions.\n */\nexport function setup() {\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\tconst containerAssertive = document.getElementById(\n\t\t'a11y-speak-assertive'\n\t);\n\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\tif ( introText === null ) {\n\t\taddIntroText();\n\t}\n\n\tif ( containerAssertive === null ) {\n\t\taddContainer( 'assertive' );\n\t}\n\n\tif ( containerPolite === null ) {\n\t\taddContainer( 'polite' );\n\t}\n}\n\n/**\n * Run setup on domReady.\n */\ndomReady( setup );\n\n/**\n * Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.\n * This module is inspired by the `speak` function in `wp-a11y.js`.\n *\n * @param {string} message The message to be announced by assistive technologies.\n * @param {string} [ariaLive] The politeness level for aria-live; default: 'polite'.\n *\n * @example\n * ```js\n * import { speak } from '@wordpress/a11y';\n *\n * // For polite messages that shouldn't interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region' );\n *\n * // For assertive messages that should interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region', 'assertive' );\n * ```\n */\nexport function speak( message, ariaLive ) {\n\t/*\n\t * Clear previous messages to allow repeated strings being read out and hide\n\t * the explanatory text from assistive technologies.\n\t */\n\tclear();\n\n\tmessage = filterMessage( message );\n\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\tconst containerAssertive = document.getElementById(\n\t\t'a11y-speak-assertive'\n\t);\n\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\tif ( containerAssertive && ariaLive === 'assertive' ) {\n\t\tcontainerAssertive.textContent = message;\n\t} else if ( containerPolite ) {\n\t\tcontainerPolite.textContent = message;\n\t}\n\n\t/*\n\t * Make the explanatory text available to assistive technologies by removing\n\t * the 'hidden' HTML attribute.\n\t */\n\tif ( introText ) {\n\t\tintroText.removeAttribute( 'hidden' );\n\t}\n}\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Build the explanatory text to be placed before the aria live regions.\n *\n * This text is initially hidden from assistive technologies by using a `hidden`\n * HTML attribute which is then removed once a message fills the aria-live regions.\n *\n * @return {HTMLParagraphElement} The explanatory text HTML element.\n */\nexport default function addIntroText() {\n\tconst introText = document.createElement( 'p' );\n\n\tintroText.id = 'a11y-speak-intro-text';\n\tintroText.className = 'a11y-speak-intro-text';\n\tintroText.textContent = __( 'Notifications' );\n\n\tintroText.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tintroText.setAttribute( 'hidden', 'hidden' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( introText );\n\t}\n\n\treturn introText;\n}\n","/**\n * Clears the a11y-speak-region elements and hides the explanatory text.\n */\nexport default function clear() {\n\tconst regions = document.getElementsByClassName( 'a11y-speak-region' );\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\n\tfor ( let i = 0; i < regions.length; i++ ) {\n\t\tregions[ i ].textContent = '';\n\t}\n\n\t// Make sure the explanatory text is hidden from assistive technologies.\n\tif ( introText ) {\n\t\tintroText.setAttribute( 'hidden', 'hidden' );\n\t}\n}\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","window","addContainer","ariaLive","container","document","createElement","id","className","setAttribute","body","appendChild","previousMessage","setup","introText","getElementById","containerAssertive","containerPolite","textContent","__","addIntroText","speak","message","regions","getElementsByClassName","i","length","clear","replace","filterMessage","removeAttribute","domReady"],"sourceRoot":""} \ No newline at end of file diff --git a/versions/16.7.1/build/annotations/index.js b/versions/16.7.1/build/annotations/index.js new file mode 100644 index 00000000..1b787259 --- /dev/null +++ b/versions/16.7.1/build/annotations/index.js @@ -0,0 +1,1012 @@ +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ // The require scope +/******/ var __webpack_require__ = {}; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + "store": () => (/* reexport */ store) +}); + +// NAMESPACE OBJECT: ./packages/annotations/build-module/store/selectors.js +var selectors_namespaceObject = {}; +__webpack_require__.r(selectors_namespaceObject); +__webpack_require__.d(selectors_namespaceObject, { + "__experimentalGetAllAnnotationsForBlock": () => (__experimentalGetAllAnnotationsForBlock), + "__experimentalGetAnnotations": () => (__experimentalGetAnnotations), + "__experimentalGetAnnotationsForBlock": () => (__experimentalGetAnnotationsForBlock), + "__experimentalGetAnnotationsForRichText": () => (__experimentalGetAnnotationsForRichText) +}); + +// NAMESPACE OBJECT: ./packages/annotations/build-module/store/actions.js +var actions_namespaceObject = {}; +__webpack_require__.r(actions_namespaceObject); +__webpack_require__.d(actions_namespaceObject, { + "__experimentalAddAnnotation": () => (__experimentalAddAnnotation), + "__experimentalRemoveAnnotation": () => (__experimentalRemoveAnnotation), + "__experimentalRemoveAnnotationsBySource": () => (__experimentalRemoveAnnotationsBySource), + "__experimentalUpdateAnnotationRange": () => (__experimentalUpdateAnnotationRange) +}); + +;// CONCATENATED MODULE: external ["wp","richText"] +const external_wp_richText_namespaceObject = window["wp"]["richText"]; +;// CONCATENATED MODULE: external ["wp","i18n"] +const external_wp_i18n_namespaceObject = window["wp"]["i18n"]; +;// CONCATENATED MODULE: ./packages/annotations/build-module/store/constants.js +/** + * The identifier for the data store. + * + * @type {string} + */ +const STORE_NAME = 'core/annotations'; + +;// CONCATENATED MODULE: ./packages/annotations/build-module/format/annotation.js +/** + * WordPress dependencies + */ + + +const FORMAT_NAME = 'core/annotation'; +const ANNOTATION_ATTRIBUTE_PREFIX = 'annotation-text-'; +/** + * Internal dependencies + */ + + +/** + * Applies given annotations to the given record. + * + * @param {Object} record The record to apply annotations to. + * @param {Array} annotations The annotation to apply. + * @return {Object} A record with the annotations applied. + */ +function applyAnnotations(record, annotations = []) { + annotations.forEach(annotation => { + let { + start, + end + } = annotation; + if (start > record.text.length) { + start = record.text.length; + } + if (end > record.text.length) { + end = record.text.length; + } + const className = ANNOTATION_ATTRIBUTE_PREFIX + annotation.source; + const id = ANNOTATION_ATTRIBUTE_PREFIX + annotation.id; + record = (0,external_wp_richText_namespaceObject.applyFormat)(record, { + type: FORMAT_NAME, + attributes: { + className, + id + } + }, start, end); + }); + return record; +} + +/** + * Removes annotations from the given record. + * + * @param {Object} record Record to remove annotations from. + * @return {Object} The cleaned record. + */ +function removeAnnotations(record) { + return removeFormat(record, 'core/annotation', 0, record.text.length); +} + +/** + * Retrieves the positions of annotations inside an array of formats. + * + * @param {Array} formats Formats with annotations in there. + * @return {Object} ID keyed positions of annotations. + */ +function retrieveAnnotationPositions(formats) { + const positions = {}; + formats.forEach((characterFormats, i) => { + characterFormats = characterFormats || []; + characterFormats = characterFormats.filter(format => format.type === FORMAT_NAME); + characterFormats.forEach(format => { + let { + id + } = format.attributes; + id = id.replace(ANNOTATION_ATTRIBUTE_PREFIX, ''); + if (!positions.hasOwnProperty(id)) { + positions[id] = { + start: i + }; + } + + // Annotations refer to positions between characters. + // Formats refer to the character themselves. + // So we need to adjust for that here. + positions[id].end = i + 1; + }); + }); + return positions; +} + +/** + * Updates annotations in the state based on positions retrieved from RichText. + * + * @param {Array} annotations The annotations that are currently applied. + * @param {Array} positions The current positions of the given annotations. + * @param {Object} actions + * @param {Function} actions.removeAnnotation Function to remove an annotation from the state. + * @param {Function} actions.updateAnnotationRange Function to update an annotation range in the state. + */ +function updateAnnotationsWithPositions(annotations, positions, { + removeAnnotation, + updateAnnotationRange +}) { + annotations.forEach(currentAnnotation => { + const position = positions[currentAnnotation.id]; + // If we cannot find an annotation, delete it. + if (!position) { + // Apparently the annotation has been removed, so remove it from the state: + // Remove... + removeAnnotation(currentAnnotation.id); + return; + } + const { + start, + end + } = currentAnnotation; + if (start !== position.start || end !== position.end) { + updateAnnotationRange(currentAnnotation.id, position.start, position.end); + } + }); +} +const annotation = { + name: FORMAT_NAME, + title: (0,external_wp_i18n_namespaceObject.__)('Annotation'), + tagName: 'mark', + className: 'annotation-text', + attributes: { + className: 'class', + id: 'id' + }, + edit() { + return null; + }, + __experimentalGetPropsForEditableTreePreparation(select, { + richTextIdentifier, + blockClientId + }) { + return { + annotations: select(STORE_NAME).__experimentalGetAnnotationsForRichText(blockClientId, richTextIdentifier) + }; + }, + __experimentalCreatePrepareEditableTree({ + annotations + }) { + return (formats, text) => { + if (annotations.length === 0) { + return formats; + } + let record = { + formats, + text + }; + record = applyAnnotations(record, annotations); + return record.formats; + }; + }, + __experimentalGetPropsForEditableTreeChangeHandler(dispatch) { + return { + removeAnnotation: dispatch(STORE_NAME).__experimentalRemoveAnnotation, + updateAnnotationRange: dispatch(STORE_NAME).__experimentalUpdateAnnotationRange + }; + }, + __experimentalCreateOnChangeEditableValue(props) { + return formats => { + const positions = retrieveAnnotationPositions(formats); + const { + removeAnnotation, + updateAnnotationRange, + annotations + } = props; + updateAnnotationsWithPositions(annotations, positions, { + removeAnnotation, + updateAnnotationRange + }); + }; + } +}; + +;// CONCATENATED MODULE: ./packages/annotations/build-module/format/index.js +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + +const { + name: format_name, + ...settings +} = annotation; +(0,external_wp_richText_namespaceObject.registerFormatType)(format_name, settings); + +;// CONCATENATED MODULE: external ["wp","hooks"] +const external_wp_hooks_namespaceObject = window["wp"]["hooks"]; +;// CONCATENATED MODULE: external ["wp","data"] +const external_wp_data_namespaceObject = window["wp"]["data"]; +;// CONCATENATED MODULE: ./packages/annotations/build-module/block/index.js +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + +/** + * Adds annotation className to the block-list-block component. + * + * @param {Object} OriginalComponent The original BlockListBlock component. + * @return {Object} The enhanced component. + */ +const addAnnotationClassName = OriginalComponent => { + return (0,external_wp_data_namespaceObject.withSelect)((select, { + clientId, + className + }) => { + const annotations = select(STORE_NAME).__experimentalGetAnnotationsForBlock(clientId); + return { + className: annotations.map(annotation => { + return 'is-annotated-by-' + annotation.source; + }).concat(className).filter(Boolean).join(' ') + }; + })(OriginalComponent); +}; +(0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/annotations', addAnnotationClassName); + +;// CONCATENATED MODULE: ./packages/annotations/build-module/store/reducer.js +/** + * Filters an array based on the predicate, but keeps the reference the same if + * the array hasn't changed. + * + * @param {Array} collection The collection to filter. + * @param {Function} predicate Function that determines if the item should stay + * in the array. + * @return {Array} Filtered array. + */ +function filterWithReference(collection, predicate) { + const filteredCollection = collection.filter(predicate); + return collection.length === filteredCollection.length ? collection : filteredCollection; +} + +/** + * Creates a new object with the same keys, but with `callback()` called as + * a transformer function on each of the values. + * + * @param {Object} obj The object to transform. + * @param {Function} callback The function to transform each object value. + * @return {Array} Transformed object. + */ +const mapValues = (obj, callback) => Object.entries(obj).reduce((acc, [key, value]) => ({ + ...acc, + [key]: callback(value) +}), {}); + +/** + * Verifies whether the given annotations is a valid annotation. + * + * @param {Object} annotation The annotation to verify. + * @return {boolean} Whether the given annotation is valid. + */ +function isValidAnnotationRange(annotation) { + return typeof annotation.start === 'number' && typeof annotation.end === 'number' && annotation.start <= annotation.end; +} + +/** + * Reducer managing annotations. + * + * @param {Object} state The annotations currently shown in the editor. + * @param {Object} action Dispatched action. + * + * @return {Array} Updated state. + */ +function annotations(state = {}, action) { + var _state$blockClientId; + switch (action.type) { + case 'ANNOTATION_ADD': + const blockClientId = action.blockClientId; + const newAnnotation = { + id: action.id, + blockClientId, + richTextIdentifier: action.richTextIdentifier, + source: action.source, + selector: action.selector, + range: action.range + }; + if (newAnnotation.selector === 'range' && !isValidAnnotationRange(newAnnotation.range)) { + return state; + } + const previousAnnotationsForBlock = (_state$blockClientId = state?.[blockClientId]) !== null && _state$blockClientId !== void 0 ? _state$blockClientId : []; + return { + ...state, + [blockClientId]: [...previousAnnotationsForBlock, newAnnotation] + }; + case 'ANNOTATION_REMOVE': + return mapValues(state, annotationsForBlock => { + return filterWithReference(annotationsForBlock, annotation => { + return annotation.id !== action.annotationId; + }); + }); + case 'ANNOTATION_UPDATE_RANGE': + return mapValues(state, annotationsForBlock => { + let hasChangedRange = false; + const newAnnotations = annotationsForBlock.map(annotation => { + if (annotation.id === action.annotationId) { + hasChangedRange = true; + return { + ...annotation, + range: { + start: action.start, + end: action.end + } + }; + } + return annotation; + }); + return hasChangedRange ? newAnnotations : annotationsForBlock; + }); + case 'ANNOTATION_REMOVE_SOURCE': + return mapValues(state, annotationsForBlock => { + return filterWithReference(annotationsForBlock, annotation => { + return annotation.source !== action.source; + }); + }); + } + return state; +} +/* harmony default export */ const reducer = (annotations); + +;// CONCATENATED MODULE: ./node_modules/rememo/rememo.js + + +/** @typedef {(...args: any[]) => *[]} GetDependants */ + +/** @typedef {() => void} Clear */ + +/** + * @typedef {{ + * getDependants: GetDependants, + * clear: Clear + * }} EnhancedSelector + */ + +/** + * Internal cache entry. + * + * @typedef CacheNode + * + * @property {?CacheNode|undefined} [prev] Previous node. + * @property {?CacheNode|undefined} [next] Next node. + * @property {*[]} args Function arguments for cache entry. + * @property {*} val Function result. + */ + +/** + * @typedef Cache + * + * @property {Clear} clear Function to clear cache. + * @property {boolean} [isUniqueByDependants] Whether dependants are valid in + * considering cache uniqueness. A cache is unique if dependents are all arrays + * or objects. + * @property {CacheNode?} [head] Cache head. + * @property {*[]} [lastDependants] Dependants from previous invocation. + */ + +/** + * Arbitrary value used as key for referencing cache object in WeakMap tree. + * + * @type {{}} + */ +var LEAF_KEY = {}; + +/** + * Returns the first argument as the sole entry in an array. + * + * @template T + * + * @param {T} value Value to return. + * + * @return {[T]} Value returned as entry in array. + */ +function arrayOf(value) { + return [value]; +} + +/** + * Returns true if the value passed is object-like, or false otherwise. A value + * is object-like if it can support property assignment, e.g. object or array. + * + * @param {*} value Value to test. + * + * @return {boolean} Whether value is object-like. + */ +function isObjectLike(value) { + return !!value && 'object' === typeof value; +} + +/** + * Creates and returns a new cache object. + * + * @return {Cache} Cache object. + */ +function createCache() { + /** @type {Cache} */ + var cache = { + clear: function () { + cache.head = null; + }, + }; + + return cache; +} + +/** + * Returns true if entries within the two arrays are strictly equal by + * reference from a starting index. + * + * @param {*[]} a First array. + * @param {*[]} b Second array. + * @param {number} fromIndex Index from which to start comparison. + * + * @return {boolean} Whether arrays are shallowly equal. + */ +function isShallowEqual(a, b, fromIndex) { + var i; + + if (a.length !== b.length) { + return false; + } + + for (i = fromIndex; i < a.length; i++) { + if (a[i] !== b[i]) { + return false; + } + } + + return true; +} + +/** + * Returns a memoized selector function. The getDependants function argument is + * called before the memoized selector and is expected to return an immutable + * reference or array of references on which the selector depends for computing + * its own return value. The memoize cache is preserved only as long as those + * dependant references remain the same. If getDependants returns a different + * reference(s), the cache is cleared and the selector value regenerated. + * + * @template {(...args: *[]) => *} S + * + * @param {S} selector Selector function. + * @param {GetDependants=} getDependants Dependant getter returning an array of + * references used in cache bust consideration. + */ +/* harmony default export */ function rememo(selector, getDependants) { + /** @type {WeakMap<*,*>} */ + var rootCache; + + /** @type {GetDependants} */ + var normalizedGetDependants = getDependants ? getDependants : arrayOf; + + /** + * Returns the cache for a given dependants array. When possible, a WeakMap + * will be used to create a unique cache for each set of dependants. This + * is feasible due to the nature of WeakMap in allowing garbage collection + * to occur on entries where the key object is no longer referenced. Since + * WeakMap requires the key to be an object, this is only possible when the + * dependant is object-like. The root cache is created as a hierarchy where + * each top-level key is the first entry in a dependants set, the value a + * WeakMap where each key is the next dependant, and so on. This continues + * so long as the dependants are object-like. If no dependants are object- + * like, then the cache is shared across all invocations. + * + * @see isObjectLike + * + * @param {*[]} dependants Selector dependants. + * + * @return {Cache} Cache object. + */ + function getCache(dependants) { + var caches = rootCache, + isUniqueByDependants = true, + i, + dependant, + map, + cache; + + for (i = 0; i < dependants.length; i++) { + dependant = dependants[i]; + + // Can only compose WeakMap from object-like key. + if (!isObjectLike(dependant)) { + isUniqueByDependants = false; + break; + } + + // Does current segment of cache already have a WeakMap? + if (caches.has(dependant)) { + // Traverse into nested WeakMap. + caches = caches.get(dependant); + } else { + // Create, set, and traverse into a new one. + map = new WeakMap(); + caches.set(dependant, map); + caches = map; + } + } + + // We use an arbitrary (but consistent) object as key for the last item + // in the WeakMap to serve as our running cache. + if (!caches.has(LEAF_KEY)) { + cache = createCache(); + cache.isUniqueByDependants = isUniqueByDependants; + caches.set(LEAF_KEY, cache); + } + + return caches.get(LEAF_KEY); + } + + /** + * Resets root memoization cache. + */ + function clear() { + rootCache = new WeakMap(); + } + + /* eslint-disable jsdoc/check-param-names */ + /** + * The augmented selector call, considering first whether dependants have + * changed before passing it to underlying memoize function. + * + * @param {*} source Source object for derivation. + * @param {...*} extraArgs Additional arguments to pass to selector. + * + * @return {*} Selector result. + */ + /* eslint-enable jsdoc/check-param-names */ + function callSelector(/* source, ...extraArgs */) { + var len = arguments.length, + cache, + node, + i, + args, + dependants; + + // Create copy of arguments (avoid leaking deoptimization). + args = new Array(len); + for (i = 0; i < len; i++) { + args[i] = arguments[i]; + } + + dependants = normalizedGetDependants.apply(null, args); + cache = getCache(dependants); + + // If not guaranteed uniqueness by dependants (primitive type), shallow + // compare against last dependants and, if references have changed, + // destroy cache to recalculate result. + if (!cache.isUniqueByDependants) { + if ( + cache.lastDependants && + !isShallowEqual(dependants, cache.lastDependants, 0) + ) { + cache.clear(); + } + + cache.lastDependants = dependants; + } + + node = cache.head; + while (node) { + // Check whether node arguments match arguments + if (!isShallowEqual(node.args, args, 1)) { + node = node.next; + continue; + } + + // At this point we can assume we've found a match + + // Surface matched node to head if not already + if (node !== cache.head) { + // Adjust siblings to point to each other. + /** @type {CacheNode} */ (node.prev).next = node.next; + if (node.next) { + node.next.prev = node.prev; + } + + node.next = cache.head; + node.prev = null; + /** @type {CacheNode} */ (cache.head).prev = node; + cache.head = node; + } + + // Return immediately + return node.val; + } + + // No cached value found. Continue to insertion phase: + + node = /** @type {CacheNode} */ ({ + // Generate the result from original function + val: selector.apply(null, args), + }); + + // Avoid including the source object in the cache. + args[0] = null; + node.args = args; + + // Don't need to check whether node is already head, since it would + // have been returned above already if it was + + // Shift existing head down list + if (cache.head) { + cache.head.prev = node; + node.next = cache.head; + } + + cache.head = node; + + return node.val; + } + + callSelector.getDependants = normalizedGetDependants; + callSelector.clear = clear; + clear(); + + return /** @type {S & EnhancedSelector} */ (callSelector); +} + +;// CONCATENATED MODULE: ./packages/annotations/build-module/store/selectors.js +/** + * External dependencies + */ + + +/** + * Shared reference to an empty array for cases where it is important to avoid + * returning a new array reference on every invocation, as in a connected or + * other pure component which performs `shouldComponentUpdate` check on props. + * This should be used as a last resort, since the normalized data should be + * maintained by the reducer result in state. + * + * @type {Array} + */ +const EMPTY_ARRAY = []; + +/** + * Returns the annotations for a specific client ID. + * + * @param {Object} state Editor state. + * @param {string} clientId The ID of the block to get the annotations for. + * + * @return {Array} The annotations applicable to this block. + */ +const __experimentalGetAnnotationsForBlock = rememo((state, blockClientId) => { + var _state$blockClientId; + return ((_state$blockClientId = state?.[blockClientId]) !== null && _state$blockClientId !== void 0 ? _state$blockClientId : []).filter(annotation => { + return annotation.selector === 'block'; + }); +}, (state, blockClientId) => { + var _state$blockClientId2; + return [(_state$blockClientId2 = state?.[blockClientId]) !== null && _state$blockClientId2 !== void 0 ? _state$blockClientId2 : EMPTY_ARRAY]; +}); +function __experimentalGetAllAnnotationsForBlock(state, blockClientId) { + var _state$blockClientId3; + return (_state$blockClientId3 = state?.[blockClientId]) !== null && _state$blockClientId3 !== void 0 ? _state$blockClientId3 : EMPTY_ARRAY; +} + +/** + * Returns the annotations that apply to the given RichText instance. + * + * Both a blockClientId and a richTextIdentifier are required. This is because + * a block might have multiple `RichText` components. This does mean that every + * block needs to implement annotations itself. + * + * @param {Object} state Editor state. + * @param {string} blockClientId The client ID for the block. + * @param {string} richTextIdentifier Unique identifier that identifies the given RichText. + * @return {Array} All the annotations relevant for the `RichText`. + */ +const __experimentalGetAnnotationsForRichText = rememo((state, blockClientId, richTextIdentifier) => { + var _state$blockClientId4; + return ((_state$blockClientId4 = state?.[blockClientId]) !== null && _state$blockClientId4 !== void 0 ? _state$blockClientId4 : []).filter(annotation => { + return annotation.selector === 'range' && richTextIdentifier === annotation.richTextIdentifier; + }).map(annotation => { + const { + range, + ...other + } = annotation; + return { + ...range, + ...other + }; + }); +}, (state, blockClientId) => { + var _state$blockClientId5; + return [(_state$blockClientId5 = state?.[blockClientId]) !== null && _state$blockClientId5 !== void 0 ? _state$blockClientId5 : EMPTY_ARRAY]; +}); + +/** + * Returns all annotations in the editor state. + * + * @param {Object} state Editor state. + * @return {Array} All annotations currently applied. + */ +function __experimentalGetAnnotations(state) { + return Object.values(state).flat(); +} + +;// CONCATENATED MODULE: ./packages/annotations/node_modules/uuid/dist/esm-browser/rng.js +// Unique ID creation requires a high quality random # generator. In the browser we therefore +// require the crypto API and do not support built-in fallback to lower quality random number +// generators (like Math.random()). +var getRandomValues; +var rnds8 = new Uint8Array(16); +function rng() { + // lazy load so that environments that need to polyfill have a chance to do so + if (!getRandomValues) { + // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also, + // find the complete implementation of crypto (msCrypto) on IE11. + getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto); + + if (!getRandomValues) { + throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); + } + } + + return getRandomValues(rnds8); +} +;// CONCATENATED MODULE: ./packages/annotations/node_modules/uuid/dist/esm-browser/regex.js +/* harmony default export */ const regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i); +;// CONCATENATED MODULE: ./packages/annotations/node_modules/uuid/dist/esm-browser/validate.js + + +function validate(uuid) { + return typeof uuid === 'string' && regex.test(uuid); +} + +/* harmony default export */ const esm_browser_validate = (validate); +;// CONCATENATED MODULE: ./packages/annotations/node_modules/uuid/dist/esm-browser/stringify.js + +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ + +var byteToHex = []; + +for (var i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).substr(1)); +} + +function stringify(arr) { + var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + // Note: Be careful editing this code! It's been tuned for performance + // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 + var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one + // of the following: + // - One or more input array values don't map to a hex octet (leading to + // "undefined" in the uuid) + // - Invalid input values for the RFC `version` or `variant` fields + + if (!esm_browser_validate(uuid)) { + throw TypeError('Stringified UUID is invalid'); + } + + return uuid; +} + +/* harmony default export */ const esm_browser_stringify = (stringify); +;// CONCATENATED MODULE: ./packages/annotations/node_modules/uuid/dist/esm-browser/v4.js + + + +function v4(options, buf, offset) { + options = options || {}; + var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided + + if (buf) { + offset = offset || 0; + + for (var i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + + return buf; + } + + return esm_browser_stringify(rnds); +} + +/* harmony default export */ const esm_browser_v4 = (v4); +;// CONCATENATED MODULE: ./packages/annotations/build-module/store/actions.js +/** + * External dependencies + */ + + +/** + * @typedef WPAnnotationRange + * + * @property {number} start The offset where the annotation should start. + * @property {number} end The offset where the annotation should end. + */ + +/** + * Adds an annotation to a block. + * + * The `block` attribute refers to a block ID that needs to be annotated. + * `isBlockAnnotation` controls whether or not the annotation is a block + * annotation. The `source` is the source of the annotation, this will be used + * to identity groups of annotations. + * + * The `range` property is only relevant if the selector is 'range'. + * + * @param {Object} annotation The annotation to add. + * @param {string} annotation.blockClientId The blockClientId to add the annotation to. + * @param {string} annotation.richTextIdentifier Identifier for the RichText instance the annotation applies to. + * @param {WPAnnotationRange} annotation.range The range at which to apply this annotation. + * @param {string} [annotation.selector="range"] The way to apply this annotation. + * @param {string} [annotation.source="default"] The source that added the annotation. + * @param {string} [annotation.id] The ID the annotation should have. Generates a UUID by default. + * + * @return {Object} Action object. + */ +function __experimentalAddAnnotation({ + blockClientId, + richTextIdentifier = null, + range = null, + selector = 'range', + source = 'default', + id = esm_browser_v4() +}) { + const action = { + type: 'ANNOTATION_ADD', + id, + blockClientId, + richTextIdentifier, + source, + selector + }; + if (selector === 'range') { + action.range = range; + } + return action; +} + +/** + * Removes an annotation with a specific ID. + * + * @param {string} annotationId The annotation to remove. + * + * @return {Object} Action object. + */ +function __experimentalRemoveAnnotation(annotationId) { + return { + type: 'ANNOTATION_REMOVE', + annotationId + }; +} + +/** + * Updates the range of an annotation. + * + * @param {string} annotationId ID of the annotation to update. + * @param {number} start The start of the new range. + * @param {number} end The end of the new range. + * + * @return {Object} Action object. + */ +function __experimentalUpdateAnnotationRange(annotationId, start, end) { + return { + type: 'ANNOTATION_UPDATE_RANGE', + annotationId, + start, + end + }; +} + +/** + * Removes all annotations of a specific source. + * + * @param {string} source The source to remove. + * + * @return {Object} Action object. + */ +function __experimentalRemoveAnnotationsBySource(source) { + return { + type: 'ANNOTATION_REMOVE_SOURCE', + source + }; +} + +;// CONCATENATED MODULE: ./packages/annotations/build-module/store/index.js +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + +/** + * Module Constants + */ + + +/** + * Store definition for the annotations namespace. + * + * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore + * + * @type {Object} + */ +const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME, { + reducer: reducer, + selectors: selectors_namespaceObject, + actions: actions_namespaceObject +}); +(0,external_wp_data_namespaceObject.register)(store); + +;// CONCATENATED MODULE: ./packages/annotations/build-module/index.js +/** + * Internal dependencies + */ + + + + +(window.wp = window.wp || {}).annotations = __webpack_exports__; +/******/ })() +; \ No newline at end of file diff --git a/versions/16.7.1/build/annotations/index.min.asset.php b/versions/16.7.1/build/annotations/index.min.asset.php new file mode 100644 index 00000000..b854e3e0 --- /dev/null +++ b/versions/16.7.1/build/annotations/index.min.asset.php @@ -0,0 +1 @@ + array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'aafdd6a3647c597e258a'); diff --git a/versions/16.7.1/build/annotations/index.min.js b/versions/16.7.1/build/annotations/index.min.js new file mode 100644 index 00000000..b628a8a8 --- /dev/null +++ b/versions/16.7.1/build/annotations/index.min.js @@ -0,0 +1,2 @@ +(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{store:()=>G});var n={};e.r(n),e.d(n,{__experimentalGetAllAnnotationsForBlock:()=>T,__experimentalGetAnnotations:()=>N,__experimentalGetAnnotationsForBlock:()=>x,__experimentalGetAnnotationsForRichText:()=>b});var r={};e.r(r),e.d(r,{__experimentalAddAnnotation:()=>S,__experimentalRemoveAnnotation:()=>P,__experimentalRemoveAnnotationsBySource:()=>F,__experimentalUpdateAnnotationRange:()=>U});const o=window.wp.richText,a=window.wp.i18n,i="core/annotations",l="core/annotation",s="annotation-text-",u={name:l,title:(0,a.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:()=>null,__experimentalGetPropsForEditableTreePreparation:(e,{richTextIdentifier:t,blockClientId:n})=>({annotations:e(i).__experimentalGetAnnotationsForRichText(n,t)}),__experimentalCreatePrepareEditableTree:({annotations:e})=>(t,n)=>{if(0===e.length)return t;let r={formats:t,text:n};return r=function(e,t=[]){return t.forEach((t=>{let{start:n,end:r}=t;n>e.text.length&&(n=e.text.length),r>e.text.length&&(r=e.text.length);const a=s+t.source,i=s+t.id;e=(0,o.applyFormat)(e,{type:l,attributes:{className:a,id:i}},n,r)})),e}(r,e),r.formats},__experimentalGetPropsForEditableTreeChangeHandler:e=>({removeAnnotation:e(i).__experimentalRemoveAnnotation,updateAnnotationRange:e(i).__experimentalUpdateAnnotationRange}),__experimentalCreateOnChangeEditableValue:e=>t=>{const n=function(e){const t={};return e.forEach(((e,n)=>{(e=(e=e||[]).filter((e=>e.type===l))).forEach((e=>{let{id:r}=e.attributes;r=r.replace(s,""),t.hasOwnProperty(r)||(t[r]={start:n}),t[r].end=n+1}))})),t}(t),{removeAnnotation:r,updateAnnotationRange:o,annotations:a}=e;!function(e,t,{removeAnnotation:n,updateAnnotationRange:r}){e.forEach((e=>{const o=t[e.id];if(!o)return void n(e.id);const{start:a,end:i}=e;a===o.start&&i===o.end||r(e.id,o.start,o.end)}))}(a,n,{removeAnnotation:r,updateAnnotationRange:o})}},{name:c,...d}=u;(0,o.registerFormatType)(c,d);const p=window.wp.hooks,f=window.wp.data;function m(e,t){const n=e.filter(t);return e.length===n.length?e:n}(0,p.addFilter)("editor.BlockListBlock","core/annotations",(e=>(0,f.withSelect)(((e,{clientId:t,className:n})=>({className:e(i).__experimentalGetAnnotationsForBlock(t).map((e=>"is-annotated-by-"+e.source)).concat(n).filter(Boolean).join(" ")})))(e)));const g=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>({...e,[n]:t(r)})),{});var h={};function v(e){return[e]}function _(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r{var n;return(null!==(n=e?.[t])&&void 0!==n?n:[]).filter((e=>"block"===e.selector))}),((e,t)=>{var n;return[null!==(n=e?.[t])&&void 0!==n?n:y]}));function T(e,t){var n;return null!==(n=e?.[t])&&void 0!==n?n:y}const b=A(((e,t,n)=>{var r;return(null!==(r=e?.[t])&&void 0!==r?r:[]).filter((e=>"range"===e.selector&&n===e.richTextIdentifier)).map((e=>{const{range:t,...n}=e;return{...t,...n}}))}),((e,t)=>{var n;return[null!==(n=e?.[t])&&void 0!==n?n:y]}));function N(e){return Object.values(e).flat()}var O,w=new Uint8Array(16);function I(){if(!O&&!(O="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return O(w)}const R=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var E=[],k=0;k<256;++k)E.push((k+256).toString(16).substr(1));const C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(E[e[t+0]]+E[e[t+1]]+E[e[t+2]]+E[e[t+3]]+"-"+E[e[t+4]]+E[e[t+5]]+"-"+E[e[t+6]]+E[e[t+7]]+"-"+E[e[t+8]]+E[e[t+9]]+"-"+E[e[t+10]]+E[e[t+11]]+E[e[t+12]]+E[e[t+13]]+E[e[t+14]]+E[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&R.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},D=function(e,t,n){var r=(e=e||{}).random||(e.rng||I)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return C(r)};function S({blockClientId:e,richTextIdentifier:t=null,range:n=null,selector:r="range",source:o="default",id:a=D()}){const i={type:"ANNOTATION_ADD",id:a,blockClientId:e,richTextIdentifier:t,source:o,selector:r};return"range"===r&&(i.range=n),i}function P(e){return{type:"ANNOTATION_REMOVE",annotationId:e}}function U(e,t,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:e,start:t,end:n}}function F(e){return{type:"ANNOTATION_REMOVE_SOURCE",source:e}}const G=(0,f.createReduxStore)(i,{reducer:function(e={},t){var n;switch(t.type){case"ANNOTATION_ADD":const r=t.blockClientId,o={id:t.id,blockClientId:r,richTextIdentifier:t.richTextIdentifier,source:t.source,selector:t.selector,range:t.range};if("range"===o.selector&&!function(e){return"number"==typeof e.start&&"number"==typeof e.end&&e.start<=e.end}(o.range))return e;const a=null!==(n=e?.[r])&&void 0!==n?n:[];return{...e,[r]:[...a,o]};case"ANNOTATION_REMOVE":return g(e,(e=>m(e,(e=>e.id!==t.annotationId))));case"ANNOTATION_UPDATE_RANGE":return g(e,(e=>{let n=!1;const r=e.map((e=>e.id===t.annotationId?(n=!0,{...e,range:{start:t.start,end:t.end}}):e));return n?r:e}));case"ANNOTATION_REMOVE_SOURCE":return g(e,(e=>m(e,(e=>e.source!==t.source))))}return e},selectors:n,actions:r});(0,f.register)(G),(window.wp=window.wp||{}).annotations=t})(); +//# sourceMappingURL=index.min.js.map \ No newline at end of file diff --git a/versions/16.7.1/build/annotations/index.min.js.map b/versions/16.7.1/build/annotations/index.min.js.map new file mode 100644 index 00000000..c4280d5e --- /dev/null +++ b/versions/16.7.1/build/annotations/index.min.js.map @@ -0,0 +1 @@ +{"version":3,"file":"./build/annotations/index.min.js","mappings":"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","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/external window [\"wp\",\"richText\"]","webpack://wp/external window [\"wp\",\"i18n\"]","../../packages/annotations/src/store/constants.js","../../packages/annotations/src/format/annotation.js","../../packages/annotations/src/format/index.js","webpack://wp/external window [\"wp\",\"hooks\"]","webpack://wp/external window [\"wp\",\"data\"]","../../packages/annotations/src/store/reducer.js","../../packages/annotations/src/block/index.js","webpack://wp/./node_modules/rememo/rememo.js","../../packages/annotations/src/store/selectors.js","webpack://wp/./packages/annotations/node_modules/uuid/dist/esm-browser/rng.js","webpack://wp/./packages/annotations/node_modules/uuid/dist/esm-browser/regex.js","webpack://wp/./packages/annotations/node_modules/uuid/dist/esm-browser/stringify.js","webpack://wp/./packages/annotations/node_modules/uuid/dist/esm-browser/validate.js","webpack://wp/./packages/annotations/node_modules/uuid/dist/esm-browser/v4.js","../../packages/annotations/src/store/actions.js","../../packages/annotations/src/store/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"richText\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","/**\n * The identifier for the data store.\n *\n * @type {string}\n */\nexport const STORE_NAME = 'core/annotations';\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { applyFormat, removeFormat } from '@wordpress/rich-text';\n\nconst FORMAT_NAME = 'core/annotation';\n\nconst ANNOTATION_ATTRIBUTE_PREFIX = 'annotation-text-';\n/**\n * Internal dependencies\n */\nimport { STORE_NAME } from '../store/constants';\n\n/**\n * Applies given annotations to the given record.\n *\n * @param {Object} record The record to apply annotations to.\n * @param {Array} annotations The annotation to apply.\n * @return {Object} A record with the annotations applied.\n */\nexport function applyAnnotations( record, annotations = [] ) {\n\tannotations.forEach( ( annotation ) => {\n\t\tlet { start, end } = annotation;\n\n\t\tif ( start > record.text.length ) {\n\t\t\tstart = record.text.length;\n\t\t}\n\n\t\tif ( end > record.text.length ) {\n\t\t\tend = record.text.length;\n\t\t}\n\n\t\tconst className = ANNOTATION_ATTRIBUTE_PREFIX + annotation.source;\n\t\tconst id = ANNOTATION_ATTRIBUTE_PREFIX + annotation.id;\n\n\t\trecord = applyFormat(\n\t\t\trecord,\n\t\t\t{\n\t\t\t\ttype: FORMAT_NAME,\n\t\t\t\tattributes: {\n\t\t\t\t\tclassName,\n\t\t\t\t\tid,\n\t\t\t\t},\n\t\t\t},\n\t\t\tstart,\n\t\t\tend\n\t\t);\n\t} );\n\n\treturn record;\n}\n\n/**\n * Removes annotations from the given record.\n *\n * @param {Object} record Record to remove annotations from.\n * @return {Object} The cleaned record.\n */\nexport function removeAnnotations( record ) {\n\treturn removeFormat( record, 'core/annotation', 0, record.text.length );\n}\n\n/**\n * Retrieves the positions of annotations inside an array of formats.\n *\n * @param {Array} formats Formats with annotations in there.\n * @return {Object} ID keyed positions of annotations.\n */\nfunction retrieveAnnotationPositions( formats ) {\n\tconst positions = {};\n\n\tformats.forEach( ( characterFormats, i ) => {\n\t\tcharacterFormats = characterFormats || [];\n\t\tcharacterFormats = characterFormats.filter(\n\t\t\t( format ) => format.type === FORMAT_NAME\n\t\t);\n\t\tcharacterFormats.forEach( ( format ) => {\n\t\t\tlet { id } = format.attributes;\n\t\t\tid = id.replace( ANNOTATION_ATTRIBUTE_PREFIX, '' );\n\n\t\t\tif ( ! positions.hasOwnProperty( id ) ) {\n\t\t\t\tpositions[ id ] = {\n\t\t\t\t\tstart: i,\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// Annotations refer to positions between characters.\n\t\t\t// Formats refer to the character themselves.\n\t\t\t// So we need to adjust for that here.\n\t\t\tpositions[ id ].end = i + 1;\n\t\t} );\n\t} );\n\n\treturn positions;\n}\n\n/**\n * Updates annotations in the state based on positions retrieved from RichText.\n *\n * @param {Array} annotations The annotations that are currently applied.\n * @param {Array} positions The current positions of the given annotations.\n * @param {Object} actions\n * @param {Function} actions.removeAnnotation Function to remove an annotation from the state.\n * @param {Function} actions.updateAnnotationRange Function to update an annotation range in the state.\n */\nfunction updateAnnotationsWithPositions(\n\tannotations,\n\tpositions,\n\t{ removeAnnotation, updateAnnotationRange }\n) {\n\tannotations.forEach( ( currentAnnotation ) => {\n\t\tconst position = positions[ currentAnnotation.id ];\n\t\t// If we cannot find an annotation, delete it.\n\t\tif ( ! position ) {\n\t\t\t// Apparently the annotation has been removed, so remove it from the state:\n\t\t\t// Remove...\n\t\t\tremoveAnnotation( currentAnnotation.id );\n\t\t\treturn;\n\t\t}\n\n\t\tconst { start, end } = currentAnnotation;\n\t\tif ( start !== position.start || end !== position.end ) {\n\t\t\tupdateAnnotationRange(\n\t\t\t\tcurrentAnnotation.id,\n\t\t\t\tposition.start,\n\t\t\t\tposition.end\n\t\t\t);\n\t\t}\n\t} );\n}\n\nexport const annotation = {\n\tname: FORMAT_NAME,\n\ttitle: __( 'Annotation' ),\n\ttagName: 'mark',\n\tclassName: 'annotation-text',\n\tattributes: {\n\t\tclassName: 'class',\n\t\tid: 'id',\n\t},\n\tedit() {\n\t\treturn null;\n\t},\n\t__experimentalGetPropsForEditableTreePreparation(\n\t\tselect,\n\t\t{ richTextIdentifier, blockClientId }\n\t) {\n\t\treturn {\n\t\t\tannotations: select(\n\t\t\t\tSTORE_NAME\n\t\t\t).__experimentalGetAnnotationsForRichText(\n\t\t\t\tblockClientId,\n\t\t\t\trichTextIdentifier\n\t\t\t),\n\t\t};\n\t},\n\t__experimentalCreatePrepareEditableTree( { annotations } ) {\n\t\treturn ( formats, text ) => {\n\t\t\tif ( annotations.length === 0 ) {\n\t\t\t\treturn formats;\n\t\t\t}\n\n\t\t\tlet record = { formats, text };\n\t\t\trecord = applyAnnotations( record, annotations );\n\t\t\treturn record.formats;\n\t\t};\n\t},\n\t__experimentalGetPropsForEditableTreeChangeHandler( dispatch ) {\n\t\treturn {\n\t\t\tremoveAnnotation:\n\t\t\t\tdispatch( STORE_NAME ).__experimentalRemoveAnnotation,\n\t\t\tupdateAnnotationRange:\n\t\t\t\tdispatch( STORE_NAME ).__experimentalUpdateAnnotationRange,\n\t\t};\n\t},\n\t__experimentalCreateOnChangeEditableValue( props ) {\n\t\treturn ( formats ) => {\n\t\t\tconst positions = retrieveAnnotationPositions( formats );\n\t\t\tconst { removeAnnotation, updateAnnotationRange, annotations } =\n\t\t\t\tprops;\n\n\t\t\tupdateAnnotationsWithPositions( annotations, positions, {\n\t\t\t\tremoveAnnotation,\n\t\t\t\tupdateAnnotationRange,\n\t\t\t} );\n\t\t};\n\t},\n};\n","/**\n * WordPress dependencies\n */\nimport { registerFormatType } from '@wordpress/rich-text';\n\n/**\n * Internal dependencies\n */\nimport { annotation } from './annotation';\n\nconst { name, ...settings } = annotation;\n\nregisterFormatType( name, settings );\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"hooks\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","/**\n * Filters an array based on the predicate, but keeps the reference the same if\n * the array hasn't changed.\n *\n * @param {Array} collection The collection to filter.\n * @param {Function} predicate Function that determines if the item should stay\n * in the array.\n * @return {Array} Filtered array.\n */\nfunction filterWithReference( collection, predicate ) {\n\tconst filteredCollection = collection.filter( predicate );\n\n\treturn collection.length === filteredCollection.length\n\t\t? collection\n\t\t: filteredCollection;\n}\n\n/**\n * Creates a new object with the same keys, but with `callback()` called as\n * a transformer function on each of the values.\n *\n * @param {Object} obj The object to transform.\n * @param {Function} callback The function to transform each object value.\n * @return {Array} Transformed object.\n */\nconst mapValues = ( obj, callback ) =>\n\tObject.entries( obj ).reduce(\n\t\t( acc, [ key, value ] ) => ( {\n\t\t\t...acc,\n\t\t\t[ key ]: callback( value ),\n\t\t} ),\n\t\t{}\n\t);\n\n/**\n * Verifies whether the given annotations is a valid annotation.\n *\n * @param {Object} annotation The annotation to verify.\n * @return {boolean} Whether the given annotation is valid.\n */\nfunction isValidAnnotationRange( annotation ) {\n\treturn (\n\t\ttypeof annotation.start === 'number' &&\n\t\ttypeof annotation.end === 'number' &&\n\t\tannotation.start <= annotation.end\n\t);\n}\n\n/**\n * Reducer managing annotations.\n *\n * @param {Object} state The annotations currently shown in the editor.\n * @param {Object} action Dispatched action.\n *\n * @return {Array} Updated state.\n */\nexport function annotations( state = {}, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'ANNOTATION_ADD':\n\t\t\tconst blockClientId = action.blockClientId;\n\t\t\tconst newAnnotation = {\n\t\t\t\tid: action.id,\n\t\t\t\tblockClientId,\n\t\t\t\trichTextIdentifier: action.richTextIdentifier,\n\t\t\t\tsource: action.source,\n\t\t\t\tselector: action.selector,\n\t\t\t\trange: action.range,\n\t\t\t};\n\n\t\t\tif (\n\t\t\t\tnewAnnotation.selector === 'range' &&\n\t\t\t\t! isValidAnnotationRange( newAnnotation.range )\n\t\t\t) {\n\t\t\t\treturn state;\n\t\t\t}\n\n\t\t\tconst previousAnnotationsForBlock = state?.[ blockClientId ] ?? [];\n\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ blockClientId ]: [\n\t\t\t\t\t...previousAnnotationsForBlock,\n\t\t\t\t\tnewAnnotation,\n\t\t\t\t],\n\t\t\t};\n\n\t\tcase 'ANNOTATION_REMOVE':\n\t\t\treturn mapValues( state, ( annotationsForBlock ) => {\n\t\t\t\treturn filterWithReference(\n\t\t\t\t\tannotationsForBlock,\n\t\t\t\t\t( annotation ) => {\n\t\t\t\t\t\treturn annotation.id !== action.annotationId;\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t} );\n\n\t\tcase 'ANNOTATION_UPDATE_RANGE':\n\t\t\treturn mapValues( state, ( annotationsForBlock ) => {\n\t\t\t\tlet hasChangedRange = false;\n\n\t\t\t\tconst newAnnotations = annotationsForBlock.map(\n\t\t\t\t\t( annotation ) => {\n\t\t\t\t\t\tif ( annotation.id === action.annotationId ) {\n\t\t\t\t\t\t\thasChangedRange = true;\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t...annotation,\n\t\t\t\t\t\t\t\trange: {\n\t\t\t\t\t\t\t\t\tstart: action.start,\n\t\t\t\t\t\t\t\t\tend: action.end,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn annotation;\n\t\t\t\t\t}\n\t\t\t\t);\n\n\t\t\t\treturn hasChangedRange ? newAnnotations : annotationsForBlock;\n\t\t\t} );\n\n\t\tcase 'ANNOTATION_REMOVE_SOURCE':\n\t\t\treturn mapValues( state, ( annotationsForBlock ) => {\n\t\t\t\treturn filterWithReference(\n\t\t\t\t\tannotationsForBlock,\n\t\t\t\t\t( annotation ) => {\n\t\t\t\t\t\treturn annotation.source !== action.source;\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t} );\n\t}\n\n\treturn state;\n}\n\nexport default annotations;\n","/**\n * WordPress dependencies\n */\nimport { addFilter } from '@wordpress/hooks';\nimport { withSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { STORE_NAME } from '../store/constants';\n/**\n * Adds annotation className to the block-list-block component.\n *\n * @param {Object} OriginalComponent The original BlockListBlock component.\n * @return {Object} The enhanced component.\n */\nconst addAnnotationClassName = ( OriginalComponent ) => {\n\treturn withSelect( ( select, { clientId, className } ) => {\n\t\tconst annotations =\n\t\t\tselect( STORE_NAME ).__experimentalGetAnnotationsForBlock(\n\t\t\t\tclientId\n\t\t\t);\n\n\t\treturn {\n\t\t\tclassName: annotations\n\t\t\t\t.map( ( annotation ) => {\n\t\t\t\t\treturn 'is-annotated-by-' + annotation.source;\n\t\t\t\t} )\n\t\t\t\t.concat( className )\n\t\t\t\t.filter( Boolean )\n\t\t\t\t.join( ' ' ),\n\t\t};\n\t} )( OriginalComponent );\n};\n\naddFilter(\n\t'editor.BlockListBlock',\n\t'core/annotations',\n\taddAnnotationClassName\n);\n","'use strict';\n\n/** @typedef {(...args: any[]) => *[]} GetDependants */\n\n/** @typedef {() => void} Clear */\n\n/**\n * @typedef {{\n * getDependants: GetDependants,\n * clear: Clear\n * }} EnhancedSelector\n */\n\n/**\n * Internal cache entry.\n *\n * @typedef CacheNode\n *\n * @property {?CacheNode|undefined} [prev] Previous node.\n * @property {?CacheNode|undefined} [next] Next node.\n * @property {*[]} args Function arguments for cache entry.\n * @property {*} val Function result.\n */\n\n/**\n * @typedef Cache\n *\n * @property {Clear} clear Function to clear cache.\n * @property {boolean} [isUniqueByDependants] Whether dependants are valid in\n * considering cache uniqueness. A cache is unique if dependents are all arrays\n * or objects.\n * @property {CacheNode?} [head] Cache head.\n * @property {*[]} [lastDependants] Dependants from previous invocation.\n */\n\n/**\n * Arbitrary value used as key for referencing cache object in WeakMap tree.\n *\n * @type {{}}\n */\nvar LEAF_KEY = {};\n\n/**\n * Returns the first argument as the sole entry in an array.\n *\n * @template T\n *\n * @param {T} value Value to return.\n *\n * @return {[T]} Value returned as entry in array.\n */\nfunction arrayOf(value) {\n\treturn [value];\n}\n\n/**\n * Returns true if the value passed is object-like, or false otherwise. A value\n * is object-like if it can support property assignment, e.g. object or array.\n *\n * @param {*} value Value to test.\n *\n * @return {boolean} Whether value is object-like.\n */\nfunction isObjectLike(value) {\n\treturn !!value && 'object' === typeof value;\n}\n\n/**\n * Creates and returns a new cache object.\n *\n * @return {Cache} Cache object.\n */\nfunction createCache() {\n\t/** @type {Cache} */\n\tvar cache = {\n\t\tclear: function () {\n\t\t\tcache.head = null;\n\t\t},\n\t};\n\n\treturn cache;\n}\n\n/**\n * Returns true if entries within the two arrays are strictly equal by\n * reference from a starting index.\n *\n * @param {*[]} a First array.\n * @param {*[]} b Second array.\n * @param {number} fromIndex Index from which to start comparison.\n *\n * @return {boolean} Whether arrays are shallowly equal.\n */\nfunction isShallowEqual(a, b, fromIndex) {\n\tvar i;\n\n\tif (a.length !== b.length) {\n\t\treturn false;\n\t}\n\n\tfor (i = fromIndex; i < a.length; i++) {\n\t\tif (a[i] !== b[i]) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}\n\n/**\n * Returns a memoized selector function. The getDependants function argument is\n * called before the memoized selector and is expected to return an immutable\n * reference or array of references on which the selector depends for computing\n * its own return value. The memoize cache is preserved only as long as those\n * dependant references remain the same. If getDependants returns a different\n * reference(s), the cache is cleared and the selector value regenerated.\n *\n * @template {(...args: *[]) => *} S\n *\n * @param {S} selector Selector function.\n * @param {GetDependants=} getDependants Dependant getter returning an array of\n * references used in cache bust consideration.\n */\nexport default function (selector, getDependants) {\n\t/** @type {WeakMap<*,*>} */\n\tvar rootCache;\n\n\t/** @type {GetDependants} */\n\tvar normalizedGetDependants = getDependants ? getDependants : arrayOf;\n\n\t/**\n\t * Returns the cache for a given dependants array. When possible, a WeakMap\n\t * will be used to create a unique cache for each set of dependants. This\n\t * is feasible due to the nature of WeakMap in allowing garbage collection\n\t * to occur on entries where the key object is no longer referenced. Since\n\t * WeakMap requires the key to be an object, this is only possible when the\n\t * dependant is object-like. The root cache is created as a hierarchy where\n\t * each top-level key is the first entry in a dependants set, the value a\n\t * WeakMap where each key is the next dependant, and so on. This continues\n\t * so long as the dependants are object-like. If no dependants are object-\n\t * like, then the cache is shared across all invocations.\n\t *\n\t * @see isObjectLike\n\t *\n\t * @param {*[]} dependants Selector dependants.\n\t *\n\t * @return {Cache} Cache object.\n\t */\n\tfunction getCache(dependants) {\n\t\tvar caches = rootCache,\n\t\t\tisUniqueByDependants = true,\n\t\t\ti,\n\t\t\tdependant,\n\t\t\tmap,\n\t\t\tcache;\n\n\t\tfor (i = 0; i < dependants.length; i++) {\n\t\t\tdependant = dependants[i];\n\n\t\t\t// Can only compose WeakMap from object-like key.\n\t\t\tif (!isObjectLike(dependant)) {\n\t\t\t\tisUniqueByDependants = false;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// Does current segment of cache already have a WeakMap?\n\t\t\tif (caches.has(dependant)) {\n\t\t\t\t// Traverse into nested WeakMap.\n\t\t\t\tcaches = caches.get(dependant);\n\t\t\t} else {\n\t\t\t\t// Create, set, and traverse into a new one.\n\t\t\t\tmap = new WeakMap();\n\t\t\t\tcaches.set(dependant, map);\n\t\t\t\tcaches = map;\n\t\t\t}\n\t\t}\n\n\t\t// We use an arbitrary (but consistent) object as key for the last item\n\t\t// in the WeakMap to serve as our running cache.\n\t\tif (!caches.has(LEAF_KEY)) {\n\t\t\tcache = createCache();\n\t\t\tcache.isUniqueByDependants = isUniqueByDependants;\n\t\t\tcaches.set(LEAF_KEY, cache);\n\t\t}\n\n\t\treturn caches.get(LEAF_KEY);\n\t}\n\n\t/**\n\t * Resets root memoization cache.\n\t */\n\tfunction clear() {\n\t\trootCache = new WeakMap();\n\t}\n\n\t/* eslint-disable jsdoc/check-param-names */\n\t/**\n\t * The augmented selector call, considering first whether dependants have\n\t * changed before passing it to underlying memoize function.\n\t *\n\t * @param {*} source Source object for derivation.\n\t * @param {...*} extraArgs Additional arguments to pass to selector.\n\t *\n\t * @return {*} Selector result.\n\t */\n\t/* eslint-enable jsdoc/check-param-names */\n\tfunction callSelector(/* source, ...extraArgs */) {\n\t\tvar len = arguments.length,\n\t\t\tcache,\n\t\t\tnode,\n\t\t\ti,\n\t\t\targs,\n\t\t\tdependants;\n\n\t\t// Create copy of arguments (avoid leaking deoptimization).\n\t\targs = new Array(len);\n\t\tfor (i = 0; i < len; i++) {\n\t\t\targs[i] = arguments[i];\n\t\t}\n\n\t\tdependants = normalizedGetDependants.apply(null, args);\n\t\tcache = getCache(dependants);\n\n\t\t// If not guaranteed uniqueness by dependants (primitive type), shallow\n\t\t// compare against last dependants and, if references have changed,\n\t\t// destroy cache to recalculate result.\n\t\tif (!cache.isUniqueByDependants) {\n\t\t\tif (\n\t\t\t\tcache.lastDependants &&\n\t\t\t\t!isShallowEqual(dependants, cache.lastDependants, 0)\n\t\t\t) {\n\t\t\t\tcache.clear();\n\t\t\t}\n\n\t\t\tcache.lastDependants = dependants;\n\t\t}\n\n\t\tnode = cache.head;\n\t\twhile (node) {\n\t\t\t// Check whether node arguments match arguments\n\t\t\tif (!isShallowEqual(node.args, args, 1)) {\n\t\t\t\tnode = node.next;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// At this point we can assume we've found a match\n\n\t\t\t// Surface matched node to head if not already\n\t\t\tif (node !== cache.head) {\n\t\t\t\t// Adjust siblings to point to each other.\n\t\t\t\t/** @type {CacheNode} */ (node.prev).next = node.next;\n\t\t\t\tif (node.next) {\n\t\t\t\t\tnode.next.prev = node.prev;\n\t\t\t\t}\n\n\t\t\t\tnode.next = cache.head;\n\t\t\t\tnode.prev = null;\n\t\t\t\t/** @type {CacheNode} */ (cache.head).prev = node;\n\t\t\t\tcache.head = node;\n\t\t\t}\n\n\t\t\t// Return immediately\n\t\t\treturn node.val;\n\t\t}\n\n\t\t// No cached value found. Continue to insertion phase:\n\n\t\tnode = /** @type {CacheNode} */ ({\n\t\t\t// Generate the result from original function\n\t\t\tval: selector.apply(null, args),\n\t\t});\n\n\t\t// Avoid including the source object in the cache.\n\t\targs[0] = null;\n\t\tnode.args = args;\n\n\t\t// Don't need to check whether node is already head, since it would\n\t\t// have been returned above already if it was\n\n\t\t// Shift existing head down list\n\t\tif (cache.head) {\n\t\t\tcache.head.prev = node;\n\t\t\tnode.next = cache.head;\n\t\t}\n\n\t\tcache.head = node;\n\n\t\treturn node.val;\n\t}\n\n\tcallSelector.getDependants = normalizedGetDependants;\n\tcallSelector.clear = clear;\n\tclear();\n\n\treturn /** @type {S & EnhancedSelector} */ (callSelector);\n}\n","/**\n * External dependencies\n */\nimport createSelector from 'rememo';\n\n/**\n * Shared reference to an empty array for cases where it is important to avoid\n * returning a new array reference on every invocation, as in a connected or\n * other pure component which performs `shouldComponentUpdate` check on props.\n * This should be used as a last resort, since the normalized data should be\n * maintained by the reducer result in state.\n *\n * @type {Array}\n */\nconst EMPTY_ARRAY = [];\n\n/**\n * Returns the annotations for a specific client ID.\n *\n * @param {Object} state Editor state.\n * @param {string} clientId The ID of the block to get the annotations for.\n *\n * @return {Array} The annotations applicable to this block.\n */\nexport const __experimentalGetAnnotationsForBlock = createSelector(\n\t( state, blockClientId ) => {\n\t\treturn ( state?.[ blockClientId ] ?? [] ).filter( ( annotation ) => {\n\t\t\treturn annotation.selector === 'block';\n\t\t} );\n\t},\n\t( state, blockClientId ) => [ state?.[ blockClientId ] ?? EMPTY_ARRAY ]\n);\n\nexport function __experimentalGetAllAnnotationsForBlock(\n\tstate,\n\tblockClientId\n) {\n\treturn state?.[ blockClientId ] ?? EMPTY_ARRAY;\n}\n\n/**\n * Returns the annotations that apply to the given RichText instance.\n *\n * Both a blockClientId and a richTextIdentifier are required. This is because\n * a block might have multiple `RichText` components. This does mean that every\n * block needs to implement annotations itself.\n *\n * @param {Object} state Editor state.\n * @param {string} blockClientId The client ID for the block.\n * @param {string} richTextIdentifier Unique identifier that identifies the given RichText.\n * @return {Array} All the annotations relevant for the `RichText`.\n */\nexport const __experimentalGetAnnotationsForRichText = createSelector(\n\t( state, blockClientId, richTextIdentifier ) => {\n\t\treturn ( state?.[ blockClientId ] ?? [] )\n\t\t\t.filter( ( annotation ) => {\n\t\t\t\treturn (\n\t\t\t\t\tannotation.selector === 'range' &&\n\t\t\t\t\trichTextIdentifier === annotation.richTextIdentifier\n\t\t\t\t);\n\t\t\t} )\n\t\t\t.map( ( annotation ) => {\n\t\t\t\tconst { range, ...other } = annotation;\n\n\t\t\t\treturn {\n\t\t\t\t\t...range,\n\t\t\t\t\t...other,\n\t\t\t\t};\n\t\t\t} );\n\t},\n\t( state, blockClientId ) => [ state?.[ blockClientId ] ?? EMPTY_ARRAY ]\n);\n\n/**\n * Returns all annotations in the editor state.\n *\n * @param {Object} state Editor state.\n * @return {Array} All annotations currently applied.\n */\nexport function __experimentalGetAnnotations( state ) {\n\treturn Object.values( state ).flat();\n}\n","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","/**\n * External dependencies\n */\nimport { v4 as uuid } from 'uuid';\n\n/**\n * @typedef WPAnnotationRange\n *\n * @property {number} start The offset where the annotation should start.\n * @property {number} end The offset where the annotation should end.\n */\n\n/**\n * Adds an annotation to a block.\n *\n * The `block` attribute refers to a block ID that needs to be annotated.\n * `isBlockAnnotation` controls whether or not the annotation is a block\n * annotation. The `source` is the source of the annotation, this will be used\n * to identity groups of annotations.\n *\n * The `range` property is only relevant if the selector is 'range'.\n *\n * @param {Object} annotation The annotation to add.\n * @param {string} annotation.blockClientId The blockClientId to add the annotation to.\n * @param {string} annotation.richTextIdentifier Identifier for the RichText instance the annotation applies to.\n * @param {WPAnnotationRange} annotation.range The range at which to apply this annotation.\n * @param {string} [annotation.selector=\"range\"] The way to apply this annotation.\n * @param {string} [annotation.source=\"default\"] The source that added the annotation.\n * @param {string} [annotation.id] The ID the annotation should have. Generates a UUID by default.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalAddAnnotation( {\n\tblockClientId,\n\trichTextIdentifier = null,\n\trange = null,\n\tselector = 'range',\n\tsource = 'default',\n\tid = uuid(),\n} ) {\n\tconst action = {\n\t\ttype: 'ANNOTATION_ADD',\n\t\tid,\n\t\tblockClientId,\n\t\trichTextIdentifier,\n\t\tsource,\n\t\tselector,\n\t};\n\n\tif ( selector === 'range' ) {\n\t\taction.range = range;\n\t}\n\n\treturn action;\n}\n\n/**\n * Removes an annotation with a specific ID.\n *\n * @param {string} annotationId The annotation to remove.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalRemoveAnnotation( annotationId ) {\n\treturn {\n\t\ttype: 'ANNOTATION_REMOVE',\n\t\tannotationId,\n\t};\n}\n\n/**\n * Updates the range of an annotation.\n *\n * @param {string} annotationId ID of the annotation to update.\n * @param {number} start The start of the new range.\n * @param {number} end The end of the new range.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalUpdateAnnotationRange(\n\tannotationId,\n\tstart,\n\tend\n) {\n\treturn {\n\t\ttype: 'ANNOTATION_UPDATE_RANGE',\n\t\tannotationId,\n\t\tstart,\n\t\tend,\n\t};\n}\n\n/**\n * Removes all annotations of a specific source.\n *\n * @param {string} source The source to remove.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalRemoveAnnotationsBySource( source ) {\n\treturn {\n\t\ttype: 'ANNOTATION_REMOVE_SOURCE',\n\t\tsource,\n\t};\n}\n","/**\n * WordPress dependencies\n */\nimport { register, createReduxStore } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport reducer from './reducer';\nimport * as selectors from './selectors';\nimport * as actions from './actions';\n\n/**\n * Module Constants\n */\nimport { STORE_NAME } from './constants';\n\n/**\n * Store definition for the annotations namespace.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore\n *\n * @type {Object}\n */\nexport const store = createReduxStore( STORE_NAME, {\n\treducer,\n\tselectors,\n\tactions,\n} );\n\nregister( store );\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","window","STORE_NAME","FORMAT_NAME","ANNOTATION_ATTRIBUTE_PREFIX","annotation","name","title","__","tagName","className","attributes","id","edit","__experimentalGetPropsForEditableTreePreparation","select","richTextIdentifier","blockClientId","annotations","__experimentalGetAnnotationsForRichText","__experimentalCreatePrepareEditableTree","formats","text","length","record","forEach","start","end","source","applyFormat","type","applyAnnotations","__experimentalGetPropsForEditableTreeChangeHandler","dispatch","removeAnnotation","__experimentalRemoveAnnotation","updateAnnotationRange","__experimentalUpdateAnnotationRange","__experimentalCreateOnChangeEditableValue","props","positions","characterFormats","i","filter","format","replace","retrieveAnnotationPositions","currentAnnotation","position","updateAnnotationsWithPositions","settings","registerFormatType","filterWithReference","collection","predicate","filteredCollection","addFilter","OriginalComponent","withSelect","clientId","__experimentalGetAnnotationsForBlock","map","concat","Boolean","join","mapValues","callback","entries","reduce","acc","LEAF_KEY","arrayOf","isShallowEqual","a","b","fromIndex","selector","getDependants","rootCache","normalizedGetDependants","clear","WeakMap","callSelector","cache","node","args","dependants","len","arguments","Array","dependant","caches","isUniqueByDependants","has","set","head","createCache","getCache","apply","lastDependants","next","prev","val","EMPTY_ARRAY","createSelector","state","_state$blockClientId","_state$blockClientId2","__experimentalGetAllAnnotationsForBlock","_state$blockClientId3","_state$blockClientId4","range","other","_state$blockClientId5","__experimentalGetAnnotations","values","flat","getRandomValues","rnds8","Uint8Array","rng","crypto","bind","msCrypto","Error","byteToHex","push","toString","substr","arr","offset","undefined","uuid","toLowerCase","TypeError","options","buf","rnds","random","__experimentalAddAnnotation","action","annotationId","__experimentalRemoveAnnotationsBySource","store","createReduxStore","reducer","newAnnotation","isValidAnnotationRange","previousAnnotationsForBlock","annotationsForBlock","hasChangedRange","newAnnotations","selectors","actions","register"],"sourceRoot":""} \ No newline at end of file diff --git a/versions/16.7.1/build/api-fetch/index.js b/versions/16.7.1/build/api-fetch/index.js new file mode 100644 index 00000000..5d0c82a6 --- /dev/null +++ b/versions/16.7.1/build/api-fetch/index.js @@ -0,0 +1,755 @@ +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ // The require scope +/******/ var __webpack_require__ = {}; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + "default": () => (/* binding */ build_module) +}); + +;// CONCATENATED MODULE: external ["wp","i18n"] +const external_wp_i18n_namespaceObject = window["wp"]["i18n"]; +;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/nonce.js +/** + * @param {string} nonce + * @return {import('../types').APIFetchMiddleware & { nonce: string }} A middleware to enhance a request with a nonce. + */ +function createNonceMiddleware(nonce) { + /** + * @type {import('../types').APIFetchMiddleware & { nonce: string }} + */ + const middleware = (options, next) => { + const { + headers = {} + } = options; + + // If an 'X-WP-Nonce' header (or any case-insensitive variation + // thereof) was specified, no need to add a nonce header. + for (const headerName in headers) { + if (headerName.toLowerCase() === 'x-wp-nonce' && headers[headerName] === middleware.nonce) { + return next(options); + } + } + return next({ + ...options, + headers: { + ...headers, + 'X-WP-Nonce': middleware.nonce + } + }); + }; + middleware.nonce = nonce; + return middleware; +} +/* harmony default export */ const nonce = (createNonceMiddleware); + +;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/namespace-endpoint.js +/** + * @type {import('../types').APIFetchMiddleware} + */ +const namespaceAndEndpointMiddleware = (options, next) => { + let path = options.path; + let namespaceTrimmed, endpointTrimmed; + if (typeof options.namespace === 'string' && typeof options.endpoint === 'string') { + namespaceTrimmed = options.namespace.replace(/^\/|\/$/g, ''); + endpointTrimmed = options.endpoint.replace(/^\//, ''); + if (endpointTrimmed) { + path = namespaceTrimmed + '/' + endpointTrimmed; + } else { + path = namespaceTrimmed; + } + } + delete options.namespace; + delete options.endpoint; + return next({ + ...options, + path + }); +}; +/* harmony default export */ const namespace_endpoint = (namespaceAndEndpointMiddleware); + +;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/root-url.js +/** + * Internal dependencies + */ + + +/** + * @param {string} rootURL + * @return {import('../types').APIFetchMiddleware} Root URL middleware. + */ +const createRootURLMiddleware = rootURL => (options, next) => { + return namespace_endpoint(options, optionsWithPath => { + let url = optionsWithPath.url; + let path = optionsWithPath.path; + let apiRoot; + if (typeof path === 'string') { + apiRoot = rootURL; + if (-1 !== rootURL.indexOf('?')) { + path = path.replace('?', '&'); + } + path = path.replace(/^\//, ''); + + // API root may already include query parameter prefix if site is + // configured to use plain permalinks. + if ('string' === typeof apiRoot && -1 !== apiRoot.indexOf('?')) { + path = path.replace('?', '&'); + } + url = apiRoot + path; + } + return next({ + ...optionsWithPath, + url + }); + }); +}; +/* harmony default export */ const root_url = (createRootURLMiddleware); + +;// CONCATENATED MODULE: external ["wp","url"] +const external_wp_url_namespaceObject = window["wp"]["url"]; +;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/preloading.js +/** + * WordPress dependencies + */ + + +/** + * @param {Record} preloadedData + * @return {import('../types').APIFetchMiddleware} Preloading middleware. + */ +function createPreloadingMiddleware(preloadedData) { + const cache = Object.fromEntries(Object.entries(preloadedData).map(([path, data]) => [(0,external_wp_url_namespaceObject.normalizePath)(path), data])); + return (options, next) => { + const { + parse = true + } = options; + /** @type {string | void} */ + let rawPath = options.path; + if (!rawPath && options.url) { + const { + rest_route: pathFromQuery, + ...queryArgs + } = (0,external_wp_url_namespaceObject.getQueryArgs)(options.url); + if (typeof pathFromQuery === 'string') { + rawPath = (0,external_wp_url_namespaceObject.addQueryArgs)(pathFromQuery, queryArgs); + } + } + if (typeof rawPath !== 'string') { + return next(options); + } + const method = options.method || 'GET'; + const path = (0,external_wp_url_namespaceObject.normalizePath)(rawPath); + if ('GET' === method && cache[path]) { + const cacheData = cache[path]; + + // Unsetting the cache key ensures that the data is only used a single time. + delete cache[path]; + return prepareResponse(cacheData, !!parse); + } else if ('OPTIONS' === method && cache[method] && cache[method][path]) { + const cacheData = cache[method][path]; + + // Unsetting the cache key ensures that the data is only used a single time. + delete cache[method][path]; + return prepareResponse(cacheData, !!parse); + } + return next(options); + }; +} + +/** + * This is a helper function that sends a success response. + * + * @param {Record} responseData + * @param {boolean} parse + * @return {Promise} Promise with the response. + */ +function prepareResponse(responseData, parse) { + return Promise.resolve(parse ? responseData.body : new window.Response(JSON.stringify(responseData.body), { + status: 200, + statusText: 'OK', + headers: responseData.headers + })); +} +/* harmony default export */ const preloading = (createPreloadingMiddleware); + +;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/fetch-all-middleware.js +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +/** + * Apply query arguments to both URL and Path, whichever is present. + * + * @param {import('../types').APIFetchOptions} props + * @param {Record} queryArgs + * @return {import('../types').APIFetchOptions} The request with the modified query args + */ +const modifyQuery = ({ + path, + url, + ...options +}, queryArgs) => ({ + ...options, + url: url && (0,external_wp_url_namespaceObject.addQueryArgs)(url, queryArgs), + path: path && (0,external_wp_url_namespaceObject.addQueryArgs)(path, queryArgs) +}); + +/** + * Duplicates parsing functionality from apiFetch. + * + * @param {Response} response + * @return {Promise} Parsed response json. + */ +const parseResponse = response => response.json ? response.json() : Promise.reject(response); + +/** + * @param {string | null} linkHeader + * @return {{ next?: string }} The parsed link header. + */ +const parseLinkHeader = linkHeader => { + if (!linkHeader) { + return {}; + } + const match = linkHeader.match(/<([^>]+)>; rel="next"/); + return match ? { + next: match[1] + } : {}; +}; + +/** + * @param {Response} response + * @return {string | undefined} The next page URL. + */ +const getNextPageUrl = response => { + const { + next + } = parseLinkHeader(response.headers.get('link')); + return next; +}; + +/** + * @param {import('../types').APIFetchOptions} options + * @return {boolean} True if the request contains an unbounded query. + */ +const requestContainsUnboundedQuery = options => { + const pathIsUnbounded = !!options.path && options.path.indexOf('per_page=-1') !== -1; + const urlIsUnbounded = !!options.url && options.url.indexOf('per_page=-1') !== -1; + return pathIsUnbounded || urlIsUnbounded; +}; + +/** + * The REST API enforces an upper limit on the per_page option. To handle large + * collections, apiFetch consumers can pass `per_page=-1`; this middleware will + * then recursively assemble a full response array from all available pages. + * + * @type {import('../types').APIFetchMiddleware} + */ +const fetchAllMiddleware = async (options, next) => { + if (options.parse === false) { + // If a consumer has opted out of parsing, do not apply middleware. + return next(options); + } + if (!requestContainsUnboundedQuery(options)) { + // If neither url nor path is requesting all items, do not apply middleware. + return next(options); + } + + // Retrieve requested page of results. + const response = await build_module({ + ...modifyQuery(options, { + per_page: 100 + }), + // Ensure headers are returned for page 1. + parse: false + }); + const results = await parseResponse(response); + if (!Array.isArray(results)) { + // We have no reliable way of merging non-array results. + return results; + } + let nextPage = getNextPageUrl(response); + if (!nextPage) { + // There are no further pages to request. + return results; + } + + // Iteratively fetch all remaining pages until no "next" header is found. + let mergedResults = /** @type {any[]} */[].concat(results); + while (nextPage) { + const nextResponse = await build_module({ + ...options, + // Ensure the URL for the next page is used instead of any provided path. + path: undefined, + url: nextPage, + // Ensure we still get headers so we can identify the next page. + parse: false + }); + const nextResults = await parseResponse(nextResponse); + mergedResults = mergedResults.concat(nextResults); + nextPage = getNextPageUrl(nextResponse); + } + return mergedResults; +}; +/* harmony default export */ const fetch_all_middleware = (fetchAllMiddleware); + +;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/http-v1.js +/** + * Set of HTTP methods which are eligible to be overridden. + * + * @type {Set} + */ +const OVERRIDE_METHODS = new Set(['PATCH', 'PUT', 'DELETE']); + +/** + * Default request method. + * + * "A request has an associated method (a method). Unless stated otherwise it + * is `GET`." + * + * @see https://fetch.spec.whatwg.org/#requests + * + * @type {string} + */ +const DEFAULT_METHOD = 'GET'; + +/** + * API Fetch middleware which overrides the request method for HTTP v1 + * compatibility leveraging the REST API X-HTTP-Method-Override header. + * + * @type {import('../types').APIFetchMiddleware} + */ +const httpV1Middleware = (options, next) => { + const { + method = DEFAULT_METHOD + } = options; + if (OVERRIDE_METHODS.has(method.toUpperCase())) { + options = { + ...options, + headers: { + ...options.headers, + 'X-HTTP-Method-Override': method, + 'Content-Type': 'application/json' + }, + method: 'POST' + }; + } + return next(options); +}; +/* harmony default export */ const http_v1 = (httpV1Middleware); + +;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/user-locale.js +/** + * WordPress dependencies + */ + + +/** + * @type {import('../types').APIFetchMiddleware} + */ +const userLocaleMiddleware = (options, next) => { + if (typeof options.url === 'string' && !(0,external_wp_url_namespaceObject.hasQueryArg)(options.url, '_locale')) { + options.url = (0,external_wp_url_namespaceObject.addQueryArgs)(options.url, { + _locale: 'user' + }); + } + if (typeof options.path === 'string' && !(0,external_wp_url_namespaceObject.hasQueryArg)(options.path, '_locale')) { + options.path = (0,external_wp_url_namespaceObject.addQueryArgs)(options.path, { + _locale: 'user' + }); + } + return next(options); +}; +/* harmony default export */ const user_locale = (userLocaleMiddleware); + +;// CONCATENATED MODULE: ./packages/api-fetch/build-module/utils/response.js +/** + * WordPress dependencies + */ + + +/** + * Parses the apiFetch response. + * + * @param {Response} response + * @param {boolean} shouldParseResponse + * + * @return {Promise | null | Response} Parsed response. + */ +const response_parseResponse = (response, shouldParseResponse = true) => { + if (shouldParseResponse) { + if (response.status === 204) { + return null; + } + return response.json ? response.json() : Promise.reject(response); + } + return response; +}; + +/** + * Calls the `json` function on the Response, throwing an error if the response + * doesn't have a json function or if parsing the json itself fails. + * + * @param {Response} response + * @return {Promise} Parsed response. + */ +const parseJsonAndNormalizeError = response => { + const invalidJsonError = { + code: 'invalid_json', + message: (0,external_wp_i18n_namespaceObject.__)('The response is not a valid JSON response.') + }; + if (!response || !response.json) { + throw invalidJsonError; + } + return response.json().catch(() => { + throw invalidJsonError; + }); +}; + +/** + * Parses the apiFetch response properly and normalize response errors. + * + * @param {Response} response + * @param {boolean} shouldParseResponse + * + * @return {Promise} Parsed response. + */ +const parseResponseAndNormalizeError = (response, shouldParseResponse = true) => { + return Promise.resolve(response_parseResponse(response, shouldParseResponse)).catch(res => parseAndThrowError(res, shouldParseResponse)); +}; + +/** + * Parses a response, throwing an error if parsing the response fails. + * + * @param {Response} response + * @param {boolean} shouldParseResponse + * @return {Promise} Parsed response. + */ +function parseAndThrowError(response, shouldParseResponse = true) { + if (!shouldParseResponse) { + throw response; + } + return parseJsonAndNormalizeError(response).then(error => { + const unknownError = { + code: 'unknown_error', + message: (0,external_wp_i18n_namespaceObject.__)('An unknown error occurred.') + }; + throw error || unknownError; + }); +} + +;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/media-upload.js +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +/** + * @param {import('../types').APIFetchOptions} options + * @return {boolean} True if the request is for media upload. + */ +function isMediaUploadRequest(options) { + const isCreateMethod = !!options.method && options.method === 'POST'; + const isMediaEndpoint = !!options.path && options.path.indexOf('/wp/v2/media') !== -1 || !!options.url && options.url.indexOf('/wp/v2/media') !== -1; + return isMediaEndpoint && isCreateMethod; +} + +/** + * Middleware handling media upload failures and retries. + * + * @type {import('../types').APIFetchMiddleware} + */ +const mediaUploadMiddleware = (options, next) => { + if (!isMediaUploadRequest(options)) { + return next(options); + } + let retries = 0; + const maxRetries = 5; + + /** + * @param {string} attachmentId + * @return {Promise} Processed post response. + */ + const postProcess = attachmentId => { + retries++; + return next({ + path: `/wp/v2/media/${attachmentId}/post-process`, + method: 'POST', + data: { + action: 'create-image-subsizes' + }, + parse: false + }).catch(() => { + if (retries < maxRetries) { + return postProcess(attachmentId); + } + next({ + path: `/wp/v2/media/${attachmentId}?force=true`, + method: 'DELETE' + }); + return Promise.reject(); + }); + }; + return next({ + ...options, + parse: false + }).catch(response => { + const attachmentId = response.headers.get('x-wp-upload-attachment-id'); + if (response.status >= 500 && response.status < 600 && attachmentId) { + return postProcess(attachmentId).catch(() => { + if (options.parse !== false) { + return Promise.reject({ + code: 'post_process', + message: (0,external_wp_i18n_namespaceObject.__)('Media upload failed. If this is a photo or a large image, please scale it down and try again.') + }); + } + return Promise.reject(response); + }); + } + return parseAndThrowError(response, options.parse); + }).then(response => parseResponseAndNormalizeError(response, options.parse)); +}; +/* harmony default export */ const media_upload = (mediaUploadMiddleware); + +;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/theme-preview.js +/** + * WordPress dependencies + */ + + +/** + * This appends a `wp_theme_preview` parameter to the REST API request URL if + * the admin URL contains a `theme` GET parameter. + * + * @param {Record} themePath + * @return {import('../types').APIFetchMiddleware} Preloading middleware. + */ +const createThemePreviewMiddleware = themePath => (options, next) => { + if (typeof options.url === 'string' && !(0,external_wp_url_namespaceObject.hasQueryArg)(options.url, 'wp_theme_preview')) { + options.url = (0,external_wp_url_namespaceObject.addQueryArgs)(options.url, { + wp_theme_preview: themePath + }); + } + if (typeof options.path === 'string' && !(0,external_wp_url_namespaceObject.hasQueryArg)(options.path, 'wp_theme_preview')) { + options.path = (0,external_wp_url_namespaceObject.addQueryArgs)(options.path, { + wp_theme_preview: themePath + }); + } + return next(options); +}; +/* harmony default export */ const theme_preview = (createThemePreviewMiddleware); + +;// CONCATENATED MODULE: ./packages/api-fetch/build-module/index.js +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + + + + + + + +/** + * Default set of header values which should be sent with every request unless + * explicitly provided through apiFetch options. + * + * @type {Record} + */ +const DEFAULT_HEADERS = { + // The backend uses the Accept header as a condition for considering an + // incoming request as a REST request. + // + // See: https://core.trac.wordpress.org/ticket/44534 + Accept: 'application/json, */*;q=0.1' +}; + +/** + * Default set of fetch option values which should be sent with every request + * unless explicitly provided through apiFetch options. + * + * @type {Object} + */ +const DEFAULT_OPTIONS = { + credentials: 'include' +}; + +/** @typedef {import('./types').APIFetchMiddleware} APIFetchMiddleware */ +/** @typedef {import('./types').APIFetchOptions} APIFetchOptions */ + +/** + * @type {import('./types').APIFetchMiddleware[]} + */ +const middlewares = [user_locale, namespace_endpoint, http_v1, fetch_all_middleware]; + +/** + * Register a middleware + * + * @param {import('./types').APIFetchMiddleware} middleware + */ +function registerMiddleware(middleware) { + middlewares.unshift(middleware); +} + +/** + * Checks the status of a response, throwing the Response as an error if + * it is outside the 200 range. + * + * @param {Response} response + * @return {Response} The response if the status is in the 200 range. + */ +const checkStatus = response => { + if (response.status >= 200 && response.status < 300) { + return response; + } + throw response; +}; + +/** @typedef {(options: import('./types').APIFetchOptions) => Promise} FetchHandler*/ + +/** + * @type {FetchHandler} + */ +const defaultFetchHandler = nextOptions => { + const { + url, + path, + data, + parse = true, + ...remainingOptions + } = nextOptions; + let { + body, + headers + } = nextOptions; + + // Merge explicitly-provided headers with default values. + headers = { + ...DEFAULT_HEADERS, + ...headers + }; + + // The `data` property is a shorthand for sending a JSON body. + if (data) { + body = JSON.stringify(data); + headers['Content-Type'] = 'application/json'; + } + const responsePromise = window.fetch( + // Fall back to explicitly passing `window.location` which is the behavior if `undefined` is passed. + url || path || window.location.href, { + ...DEFAULT_OPTIONS, + ...remainingOptions, + body, + headers + }); + return responsePromise.then(value => Promise.resolve(value).then(checkStatus).catch(response => parseAndThrowError(response, parse)).then(response => parseResponseAndNormalizeError(response, parse)), err => { + // Re-throw AbortError for the users to handle it themselves. + if (err && err.name === 'AbortError') { + throw err; + } + + // Otherwise, there is most likely no network connection. + // Unfortunately the message might depend on the browser. + throw { + code: 'fetch_error', + message: (0,external_wp_i18n_namespaceObject.__)('You are probably offline.') + }; + }); +}; + +/** @type {FetchHandler} */ +let fetchHandler = defaultFetchHandler; + +/** + * Defines a custom fetch handler for making the requests that will override + * the default one using window.fetch + * + * @param {FetchHandler} newFetchHandler The new fetch handler + */ +function setFetchHandler(newFetchHandler) { + fetchHandler = newFetchHandler; +} + +/** + * @template T + * @param {import('./types').APIFetchOptions} options + * @return {Promise} A promise representing the request processed via the registered middlewares. + */ +function apiFetch(options) { + // creates a nested function chain that calls all middlewares and finally the `fetchHandler`, + // converting `middlewares = [ m1, m2, m3 ]` into: + // ``` + // opts1 => m1( opts1, opts2 => m2( opts2, opts3 => m3( opts3, fetchHandler ) ) ); + // ``` + const enhancedHandler = middlewares.reduceRight(( /** @type {FetchHandler} */next, middleware) => { + return workingOptions => middleware(workingOptions, next); + }, fetchHandler); + return enhancedHandler(options).catch(error => { + if (error.code !== 'rest_cookie_invalid_nonce') { + return Promise.reject(error); + } + + // If the nonce is invalid, refresh it and try again. + return window + // @ts-ignore + .fetch(apiFetch.nonceEndpoint).then(checkStatus).then(data => data.text()).then(text => { + // @ts-ignore + apiFetch.nonceMiddleware.nonce = text; + return apiFetch(options); + }); + }); +} +apiFetch.use = registerMiddleware; +apiFetch.setFetchHandler = setFetchHandler; +apiFetch.createNonceMiddleware = nonce; +apiFetch.createPreloadingMiddleware = preloading; +apiFetch.createRootURLMiddleware = root_url; +apiFetch.fetchAllMiddleware = fetch_all_middleware; +apiFetch.mediaUploadMiddleware = media_upload; +apiFetch.createThemePreviewMiddleware = theme_preview; +/* harmony default export */ const build_module = (apiFetch); + +(window.wp = window.wp || {}).apiFetch = __webpack_exports__["default"]; +/******/ })() +; \ No newline at end of file diff --git a/versions/16.7.1/build/api-fetch/index.min.asset.php b/versions/16.7.1/build/api-fetch/index.min.asset.php new file mode 100644 index 00000000..f2f600c3 --- /dev/null +++ b/versions/16.7.1/build/api-fetch/index.min.asset.php @@ -0,0 +1 @@ + array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'e9a37777cab7097062ff'); diff --git a/versions/16.7.1/build/api-fetch/index.min.js b/versions/16.7.1/build/api-fetch/index.min.js new file mode 100644 index 00000000..96c5ba73 --- /dev/null +++ b/versions/16.7.1/build/api-fetch/index.min.js @@ -0,0 +1,2 @@ +(()=>{"use strict";var e={d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>P});const r=window.wp.i18n,n=(e,t)=>{let r,n,a=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),a=n?r+"/"+n:r),delete e.namespace,delete e.endpoint,t({...e,path:a})},a=window.wp.url;function o(e,t){return Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}const s=({path:e,url:t,...r},n)=>({...r,url:t&&(0,a.addQueryArgs)(t,n),path:e&&(0,a.addQueryArgs)(e,n)}),i=e=>e.json?e.json():Promise.reject(e),c=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t},d=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r})(e))return t(e);const r=await P({...s(e,{per_page:100}),parse:!1}),n=await i(r);if(!Array.isArray(n))return n;let a=c(r);if(!a)return n;let o=[].concat(n);for(;a;){const t=await P({...e,path:void 0,url:a,parse:!1}),r=await i(t);o=o.concat(r),a=c(t)}return o},p=new Set(["PATCH","PUT","DELETE"]),u="GET",h=(e,t=!0)=>Promise.resolve(((e,t=!0)=>t?204===e.status?null:e.json?e.json():Promise.reject(e):e)(e,t)).catch((e=>l(e,t)));function l(e,t=!0){if(!t)throw e;return(e=>{const t={code:"invalid_json",message:(0,r.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((()=>{throw t}))})(e).then((e=>{const t={code:"unknown_error",message:(0,r.__)("An unknown error occurred.")};throw e||t}))}const w={Accept:"application/json, */*;q=0.1"},f={credentials:"include"},m=[(e,t)=>("string"!=typeof e.url||(0,a.hasQueryArg)(e.url,"_locale")||(e.url=(0,a.addQueryArgs)(e.url,{_locale:"user"})),"string"!=typeof e.path||(0,a.hasQueryArg)(e.path,"_locale")||(e.path=(0,a.addQueryArgs)(e.path,{_locale:"user"})),t(e)),n,(e,t)=>{const{method:r=u}=e;return p.has(r.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":r,"Content-Type":"application/json"},method:"POST"}),t(e)},d],g=e=>{if(e.status>=200&&e.status<300)return e;throw e};let y=e=>{const{url:t,path:n,data:a,parse:o=!0,...s}=e;let{body:i,headers:c}=e;return c={...w,...c},a&&(i=JSON.stringify(a),c["Content-Type"]="application/json"),window.fetch(t||n||window.location.href,{...f,...s,body:i,headers:c}).then((e=>Promise.resolve(e).then(g).catch((e=>l(e,o))).then((e=>h(e,o)))),(e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:(0,r.__)("You are probably offline.")}}))};function _(e){return m.reduceRight(((e,t)=>r=>t(r,e)),y)(e).catch((t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(_.nonceEndpoint).then(g).then((e=>e.text())).then((t=>(_.nonceMiddleware.nonce=t,_(e))))))}_.use=function(e){m.unshift(e)},_.setFetchHandler=function(e){y=e},_.createNonceMiddleware=function(e){const t=(e,r)=>{const{headers:n={}}=e;for(const a in n)if("x-wp-nonce"===a.toLowerCase()&&n[a]===t.nonce)return r(e);return r({...e,headers:{...n,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},_.createPreloadingMiddleware=function(e){const t=Object.fromEntries(Object.entries(e).map((([e,t])=>[(0,a.normalizePath)(e),t])));return(e,r)=>{const{parse:n=!0}=e;let s=e.path;if(!s&&e.url){const{rest_route:t,...r}=(0,a.getQueryArgs)(e.url);"string"==typeof t&&(s=(0,a.addQueryArgs)(t,r))}if("string"!=typeof s)return r(e);const i=e.method||"GET",c=(0,a.normalizePath)(s);if("GET"===i&&t[c]){const e=t[c];return delete t[c],o(e,!!n)}if("OPTIONS"===i&&t[i]&&t[i][c]){const e=t[i][c];return delete t[i][c],o(e,!!n)}return r(e)}},_.createRootURLMiddleware=e=>(t,r)=>n(t,(t=>{let n,a=t.url,o=t.path;return"string"==typeof o&&(n=e,-1!==e.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(o=o.replace("?","&")),a=n+o),r({...t,url:a})})),_.fetchAllMiddleware=d,_.mediaUploadMiddleware=(e,t)=>{if(!function(e){const t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);let n=0;const a=e=>(n++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>n<5?a(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject()))));return t({...e,parse:!1}).catch((t=>{const n=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&n?a(n).catch((()=>!1!==e.parse?Promise.reject({code:"post_process",message:(0,r.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):l(t,e.parse)})).then((t=>h(t,e.parse)))},_.createThemePreviewMiddleware=e=>(t,r)=>("string"!=typeof t.url||(0,a.hasQueryArg)(t.url,"wp_theme_preview")||(t.url=(0,a.addQueryArgs)(t.url,{wp_theme_preview:e})),"string"!=typeof t.path||(0,a.hasQueryArg)(t.path,"wp_theme_preview")||(t.path=(0,a.addQueryArgs)(t.path,{wp_theme_preview:e})),r(t));const P=_;(window.wp=window.wp||{}).apiFetch=t.default})(); +//# sourceMappingURL=index.min.js.map \ No newline at end of file diff --git a/versions/16.7.1/build/api-fetch/index.min.js.map b/versions/16.7.1/build/api-fetch/index.min.js.map new file mode 100644 index 00000000..5bb6104b --- /dev/null +++ b/versions/16.7.1/build/api-fetch/index.min.js.map @@ -0,0 +1 @@ +{"version":3,"file":"./build/api-fetch/index.min.js","mappings":"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","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/external window [\"wp\",\"i18n\"]","../../packages/api-fetch/src/middlewares/namespace-endpoint.js","webpack://wp/external window [\"wp\",\"url\"]","../../packages/api-fetch/src/middlewares/preloading.js","../../packages/api-fetch/src/middlewares/fetch-all-middleware.js","../../packages/api-fetch/src/middlewares/http-v1.js","../../packages/api-fetch/src/utils/response.js","../../packages/api-fetch/src/middlewares/media-upload.js","../../packages/api-fetch/src/index.js","../../packages/api-fetch/src/middlewares/user-locale.js","../../packages/api-fetch/src/middlewares/nonce.js","../../packages/api-fetch/src/middlewares/root-url.js","../../packages/api-fetch/src/middlewares/theme-preview.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","/**\n * @type {import('../types').APIFetchMiddleware}\n */\nconst namespaceAndEndpointMiddleware = ( options, next ) => {\n\tlet path = options.path;\n\tlet namespaceTrimmed, endpointTrimmed;\n\n\tif (\n\t\ttypeof options.namespace === 'string' &&\n\t\ttypeof options.endpoint === 'string'\n\t) {\n\t\tnamespaceTrimmed = options.namespace.replace( /^\\/|\\/$/g, '' );\n\t\tendpointTrimmed = options.endpoint.replace( /^\\//, '' );\n\t\tif ( endpointTrimmed ) {\n\t\t\tpath = namespaceTrimmed + '/' + endpointTrimmed;\n\t\t} else {\n\t\t\tpath = namespaceTrimmed;\n\t\t}\n\t}\n\n\tdelete options.namespace;\n\tdelete options.endpoint;\n\n\treturn next( {\n\t\t...options,\n\t\tpath,\n\t} );\n};\n\nexport default namespaceAndEndpointMiddleware;\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"url\"];","/**\n * WordPress dependencies\n */\nimport { addQueryArgs, getQueryArgs, normalizePath } from '@wordpress/url';\n\n/**\n * @param {Record} preloadedData\n * @return {import('../types').APIFetchMiddleware} Preloading middleware.\n */\nfunction createPreloadingMiddleware( preloadedData ) {\n\tconst cache = Object.fromEntries(\n\t\tObject.entries( preloadedData ).map( ( [ path, data ] ) => [\n\t\t\tnormalizePath( path ),\n\t\t\tdata,\n\t\t] )\n\t);\n\n\treturn ( options, next ) => {\n\t\tconst { parse = true } = options;\n\t\t/** @type {string | void} */\n\t\tlet rawPath = options.path;\n\t\tif ( ! rawPath && options.url ) {\n\t\t\tconst { rest_route: pathFromQuery, ...queryArgs } = getQueryArgs(\n\t\t\t\toptions.url\n\t\t\t);\n\n\t\t\tif ( typeof pathFromQuery === 'string' ) {\n\t\t\t\trawPath = addQueryArgs( pathFromQuery, queryArgs );\n\t\t\t}\n\t\t}\n\n\t\tif ( typeof rawPath !== 'string' ) {\n\t\t\treturn next( options );\n\t\t}\n\n\t\tconst method = options.method || 'GET';\n\t\tconst path = normalizePath( rawPath );\n\n\t\tif ( 'GET' === method && cache[ path ] ) {\n\t\t\tconst cacheData = cache[ path ];\n\n\t\t\t// Unsetting the cache key ensures that the data is only used a single time.\n\t\t\tdelete cache[ path ];\n\n\t\t\treturn prepareResponse( cacheData, !! parse );\n\t\t} else if (\n\t\t\t'OPTIONS' === method &&\n\t\t\tcache[ method ] &&\n\t\t\tcache[ method ][ path ]\n\t\t) {\n\t\t\tconst cacheData = cache[ method ][ path ];\n\n\t\t\t// Unsetting the cache key ensures that the data is only used a single time.\n\t\t\tdelete cache[ method ][ path ];\n\n\t\t\treturn prepareResponse( cacheData, !! parse );\n\t\t}\n\n\t\treturn next( options );\n\t};\n}\n\n/**\n * This is a helper function that sends a success response.\n *\n * @param {Record} responseData\n * @param {boolean} parse\n * @return {Promise} Promise with the response.\n */\nfunction prepareResponse( responseData, parse ) {\n\treturn Promise.resolve(\n\t\tparse\n\t\t\t? responseData.body\n\t\t\t: new window.Response( JSON.stringify( responseData.body ), {\n\t\t\t\t\tstatus: 200,\n\t\t\t\t\tstatusText: 'OK',\n\t\t\t\t\theaders: responseData.headers,\n\t\t\t } )\n\t);\n}\n\nexport default createPreloadingMiddleware;\n","/**\n * WordPress dependencies\n */\nimport { addQueryArgs } from '@wordpress/url';\n\n/**\n * Internal dependencies\n */\nimport apiFetch from '..';\n\n/**\n * Apply query arguments to both URL and Path, whichever is present.\n *\n * @param {import('../types').APIFetchOptions} props\n * @param {Record} queryArgs\n * @return {import('../types').APIFetchOptions} The request with the modified query args\n */\nconst modifyQuery = ( { path, url, ...options }, queryArgs ) => ( {\n\t...options,\n\turl: url && addQueryArgs( url, queryArgs ),\n\tpath: path && addQueryArgs( path, queryArgs ),\n} );\n\n/**\n * Duplicates parsing functionality from apiFetch.\n *\n * @param {Response} response\n * @return {Promise} Parsed response json.\n */\nconst parseResponse = ( response ) =>\n\tresponse.json ? response.json() : Promise.reject( response );\n\n/**\n * @param {string | null} linkHeader\n * @return {{ next?: string }} The parsed link header.\n */\nconst parseLinkHeader = ( linkHeader ) => {\n\tif ( ! linkHeader ) {\n\t\treturn {};\n\t}\n\tconst match = linkHeader.match( /<([^>]+)>; rel=\"next\"/ );\n\treturn match\n\t\t? {\n\t\t\t\tnext: match[ 1 ],\n\t\t }\n\t\t: {};\n};\n\n/**\n * @param {Response} response\n * @return {string | undefined} The next page URL.\n */\nconst getNextPageUrl = ( response ) => {\n\tconst { next } = parseLinkHeader( response.headers.get( 'link' ) );\n\treturn next;\n};\n\n/**\n * @param {import('../types').APIFetchOptions} options\n * @return {boolean} True if the request contains an unbounded query.\n */\nconst requestContainsUnboundedQuery = ( options ) => {\n\tconst pathIsUnbounded =\n\t\t!! options.path && options.path.indexOf( 'per_page=-1' ) !== -1;\n\tconst urlIsUnbounded =\n\t\t!! options.url && options.url.indexOf( 'per_page=-1' ) !== -1;\n\treturn pathIsUnbounded || urlIsUnbounded;\n};\n\n/**\n * The REST API enforces an upper limit on the per_page option. To handle large\n * collections, apiFetch consumers can pass `per_page=-1`; this middleware will\n * then recursively assemble a full response array from all available pages.\n *\n * @type {import('../types').APIFetchMiddleware}\n */\nconst fetchAllMiddleware = async ( options, next ) => {\n\tif ( options.parse === false ) {\n\t\t// If a consumer has opted out of parsing, do not apply middleware.\n\t\treturn next( options );\n\t}\n\tif ( ! requestContainsUnboundedQuery( options ) ) {\n\t\t// If neither url nor path is requesting all items, do not apply middleware.\n\t\treturn next( options );\n\t}\n\n\t// Retrieve requested page of results.\n\tconst response = await apiFetch( {\n\t\t...modifyQuery( options, {\n\t\t\tper_page: 100,\n\t\t} ),\n\t\t// Ensure headers are returned for page 1.\n\t\tparse: false,\n\t} );\n\n\tconst results = await parseResponse( response );\n\n\tif ( ! Array.isArray( results ) ) {\n\t\t// We have no reliable way of merging non-array results.\n\t\treturn results;\n\t}\n\n\tlet nextPage = getNextPageUrl( response );\n\n\tif ( ! nextPage ) {\n\t\t// There are no further pages to request.\n\t\treturn results;\n\t}\n\n\t// Iteratively fetch all remaining pages until no \"next\" header is found.\n\tlet mergedResults = /** @type {any[]} */ ( [] ).concat( results );\n\twhile ( nextPage ) {\n\t\tconst nextResponse = await apiFetch( {\n\t\t\t...options,\n\t\t\t// Ensure the URL for the next page is used instead of any provided path.\n\t\t\tpath: undefined,\n\t\t\turl: nextPage,\n\t\t\t// Ensure we still get headers so we can identify the next page.\n\t\t\tparse: false,\n\t\t} );\n\t\tconst nextResults = await parseResponse( nextResponse );\n\t\tmergedResults = mergedResults.concat( nextResults );\n\t\tnextPage = getNextPageUrl( nextResponse );\n\t}\n\treturn mergedResults;\n};\n\nexport default fetchAllMiddleware;\n","/**\n * Set of HTTP methods which are eligible to be overridden.\n *\n * @type {Set}\n */\nconst OVERRIDE_METHODS = new Set( [ 'PATCH', 'PUT', 'DELETE' ] );\n\n/**\n * Default request method.\n *\n * \"A request has an associated method (a method). Unless stated otherwise it\n * is `GET`.\"\n *\n * @see https://fetch.spec.whatwg.org/#requests\n *\n * @type {string}\n */\nconst DEFAULT_METHOD = 'GET';\n\n/**\n * API Fetch middleware which overrides the request method for HTTP v1\n * compatibility leveraging the REST API X-HTTP-Method-Override header.\n *\n * @type {import('../types').APIFetchMiddleware}\n */\nconst httpV1Middleware = ( options, next ) => {\n\tconst { method = DEFAULT_METHOD } = options;\n\tif ( OVERRIDE_METHODS.has( method.toUpperCase() ) ) {\n\t\toptions = {\n\t\t\t...options,\n\t\t\theaders: {\n\t\t\t\t...options.headers,\n\t\t\t\t'X-HTTP-Method-Override': method,\n\t\t\t\t'Content-Type': 'application/json',\n\t\t\t},\n\t\t\tmethod: 'POST',\n\t\t};\n\t}\n\n\treturn next( options );\n};\n\nexport default httpV1Middleware;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Parses the apiFetch response.\n *\n * @param {Response} response\n * @param {boolean} shouldParseResponse\n *\n * @return {Promise | null | Response} Parsed response.\n */\nconst parseResponse = ( response, shouldParseResponse = true ) => {\n\tif ( shouldParseResponse ) {\n\t\tif ( response.status === 204 ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn response.json ? response.json() : Promise.reject( response );\n\t}\n\n\treturn response;\n};\n\n/**\n * Calls the `json` function on the Response, throwing an error if the response\n * doesn't have a json function or if parsing the json itself fails.\n *\n * @param {Response} response\n * @return {Promise} Parsed response.\n */\nconst parseJsonAndNormalizeError = ( response ) => {\n\tconst invalidJsonError = {\n\t\tcode: 'invalid_json',\n\t\tmessage: __( 'The response is not a valid JSON response.' ),\n\t};\n\n\tif ( ! response || ! response.json ) {\n\t\tthrow invalidJsonError;\n\t}\n\n\treturn response.json().catch( () => {\n\t\tthrow invalidJsonError;\n\t} );\n};\n\n/**\n * Parses the apiFetch response properly and normalize response errors.\n *\n * @param {Response} response\n * @param {boolean} shouldParseResponse\n *\n * @return {Promise} Parsed response.\n */\nexport const parseResponseAndNormalizeError = (\n\tresponse,\n\tshouldParseResponse = true\n) => {\n\treturn Promise.resolve(\n\t\tparseResponse( response, shouldParseResponse )\n\t).catch( ( res ) => parseAndThrowError( res, shouldParseResponse ) );\n};\n\n/**\n * Parses a response, throwing an error if parsing the response fails.\n *\n * @param {Response} response\n * @param {boolean} shouldParseResponse\n * @return {Promise} Parsed response.\n */\nexport function parseAndThrowError( response, shouldParseResponse = true ) {\n\tif ( ! shouldParseResponse ) {\n\t\tthrow response;\n\t}\n\n\treturn parseJsonAndNormalizeError( response ).then( ( error ) => {\n\t\tconst unknownError = {\n\t\t\tcode: 'unknown_error',\n\t\t\tmessage: __( 'An unknown error occurred.' ),\n\t\t};\n\n\t\tthrow error || unknownError;\n\t} );\n}\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport {\n\tparseAndThrowError,\n\tparseResponseAndNormalizeError,\n} from '../utils/response';\n\n/**\n * @param {import('../types').APIFetchOptions} options\n * @return {boolean} True if the request is for media upload.\n */\nfunction isMediaUploadRequest( options ) {\n\tconst isCreateMethod = !! options.method && options.method === 'POST';\n\tconst isMediaEndpoint =\n\t\t( !! options.path && options.path.indexOf( '/wp/v2/media' ) !== -1 ) ||\n\t\t( !! options.url && options.url.indexOf( '/wp/v2/media' ) !== -1 );\n\n\treturn isMediaEndpoint && isCreateMethod;\n}\n\n/**\n * Middleware handling media upload failures and retries.\n *\n * @type {import('../types').APIFetchMiddleware}\n */\nconst mediaUploadMiddleware = ( options, next ) => {\n\tif ( ! isMediaUploadRequest( options ) ) {\n\t\treturn next( options );\n\t}\n\n\tlet retries = 0;\n\tconst maxRetries = 5;\n\n\t/**\n\t * @param {string} attachmentId\n\t * @return {Promise} Processed post response.\n\t */\n\tconst postProcess = ( attachmentId ) => {\n\t\tretries++;\n\t\treturn next( {\n\t\t\tpath: `/wp/v2/media/${ attachmentId }/post-process`,\n\t\t\tmethod: 'POST',\n\t\t\tdata: { action: 'create-image-subsizes' },\n\t\t\tparse: false,\n\t\t} ).catch( () => {\n\t\t\tif ( retries < maxRetries ) {\n\t\t\t\treturn postProcess( attachmentId );\n\t\t\t}\n\t\t\tnext( {\n\t\t\t\tpath: `/wp/v2/media/${ attachmentId }?force=true`,\n\t\t\t\tmethod: 'DELETE',\n\t\t\t} );\n\n\t\t\treturn Promise.reject();\n\t\t} );\n\t};\n\n\treturn next( { ...options, parse: false } )\n\t\t.catch( ( response ) => {\n\t\t\tconst attachmentId = response.headers.get(\n\t\t\t\t'x-wp-upload-attachment-id'\n\t\t\t);\n\t\t\tif (\n\t\t\t\tresponse.status >= 500 &&\n\t\t\t\tresponse.status < 600 &&\n\t\t\t\tattachmentId\n\t\t\t) {\n\t\t\t\treturn postProcess( attachmentId ).catch( () => {\n\t\t\t\t\tif ( options.parse !== false ) {\n\t\t\t\t\t\treturn Promise.reject( {\n\t\t\t\t\t\t\tcode: 'post_process',\n\t\t\t\t\t\t\tmessage: __(\n\t\t\t\t\t\t\t\t'Media upload failed. If this is a photo or a large image, please scale it down and try again.'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t} );\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Promise.reject( response );\n\t\t\t\t} );\n\t\t\t}\n\t\t\treturn parseAndThrowError( response, options.parse );\n\t\t} )\n\t\t.then( ( response ) =>\n\t\t\tparseResponseAndNormalizeError( response, options.parse )\n\t\t);\n};\n\nexport default mediaUploadMiddleware;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport createNonceMiddleware from './middlewares/nonce';\nimport createRootURLMiddleware from './middlewares/root-url';\nimport createPreloadingMiddleware from './middlewares/preloading';\nimport fetchAllMiddleware from './middlewares/fetch-all-middleware';\nimport namespaceEndpointMiddleware from './middlewares/namespace-endpoint';\nimport httpV1Middleware from './middlewares/http-v1';\nimport userLocaleMiddleware from './middlewares/user-locale';\nimport mediaUploadMiddleware from './middlewares/media-upload';\nimport createThemePreviewMiddleware from './middlewares/theme-preview';\nimport {\n\tparseResponseAndNormalizeError,\n\tparseAndThrowError,\n} from './utils/response';\n\n/**\n * Default set of header values which should be sent with every request unless\n * explicitly provided through apiFetch options.\n *\n * @type {Record}\n */\nconst DEFAULT_HEADERS = {\n\t// The backend uses the Accept header as a condition for considering an\n\t// incoming request as a REST request.\n\t//\n\t// See: https://core.trac.wordpress.org/ticket/44534\n\tAccept: 'application/json, */*;q=0.1',\n};\n\n/**\n * Default set of fetch option values which should be sent with every request\n * unless explicitly provided through apiFetch options.\n *\n * @type {Object}\n */\nconst DEFAULT_OPTIONS = {\n\tcredentials: 'include',\n};\n\n/** @typedef {import('./types').APIFetchMiddleware} APIFetchMiddleware */\n/** @typedef {import('./types').APIFetchOptions} APIFetchOptions */\n\n/**\n * @type {import('./types').APIFetchMiddleware[]}\n */\nconst middlewares = [\n\tuserLocaleMiddleware,\n\tnamespaceEndpointMiddleware,\n\thttpV1Middleware,\n\tfetchAllMiddleware,\n];\n\n/**\n * Register a middleware\n *\n * @param {import('./types').APIFetchMiddleware} middleware\n */\nfunction registerMiddleware( middleware ) {\n\tmiddlewares.unshift( middleware );\n}\n\n/**\n * Checks the status of a response, throwing the Response as an error if\n * it is outside the 200 range.\n *\n * @param {Response} response\n * @return {Response} The response if the status is in the 200 range.\n */\nconst checkStatus = ( response ) => {\n\tif ( response.status >= 200 && response.status < 300 ) {\n\t\treturn response;\n\t}\n\n\tthrow response;\n};\n\n/** @typedef {(options: import('./types').APIFetchOptions) => Promise} FetchHandler*/\n\n/**\n * @type {FetchHandler}\n */\nconst defaultFetchHandler = ( nextOptions ) => {\n\tconst { url, path, data, parse = true, ...remainingOptions } = nextOptions;\n\tlet { body, headers } = nextOptions;\n\n\t// Merge explicitly-provided headers with default values.\n\theaders = { ...DEFAULT_HEADERS, ...headers };\n\n\t// The `data` property is a shorthand for sending a JSON body.\n\tif ( data ) {\n\t\tbody = JSON.stringify( data );\n\t\theaders[ 'Content-Type' ] = 'application/json';\n\t}\n\n\tconst responsePromise = window.fetch(\n\t\t// Fall back to explicitly passing `window.location` which is the behavior if `undefined` is passed.\n\t\turl || path || window.location.href,\n\t\t{\n\t\t\t...DEFAULT_OPTIONS,\n\t\t\t...remainingOptions,\n\t\t\tbody,\n\t\t\theaders,\n\t\t}\n\t);\n\n\treturn responsePromise.then(\n\t\t( value ) =>\n\t\t\tPromise.resolve( value )\n\t\t\t\t.then( checkStatus )\n\t\t\t\t.catch( ( response ) => parseAndThrowError( response, parse ) )\n\t\t\t\t.then( ( response ) =>\n\t\t\t\t\tparseResponseAndNormalizeError( response, parse )\n\t\t\t\t),\n\t\t( err ) => {\n\t\t\t// Re-throw AbortError for the users to handle it themselves.\n\t\t\tif ( err && err.name === 'AbortError' ) {\n\t\t\t\tthrow err;\n\t\t\t}\n\n\t\t\t// Otherwise, there is most likely no network connection.\n\t\t\t// Unfortunately the message might depend on the browser.\n\t\t\tthrow {\n\t\t\t\tcode: 'fetch_error',\n\t\t\t\tmessage: __( 'You are probably offline.' ),\n\t\t\t};\n\t\t}\n\t);\n};\n\n/** @type {FetchHandler} */\nlet fetchHandler = defaultFetchHandler;\n\n/**\n * Defines a custom fetch handler for making the requests that will override\n * the default one using window.fetch\n *\n * @param {FetchHandler} newFetchHandler The new fetch handler\n */\nfunction setFetchHandler( newFetchHandler ) {\n\tfetchHandler = newFetchHandler;\n}\n\n/**\n * @template T\n * @param {import('./types').APIFetchOptions} options\n * @return {Promise} A promise representing the request processed via the registered middlewares.\n */\nfunction apiFetch( options ) {\n\t// creates a nested function chain that calls all middlewares and finally the `fetchHandler`,\n\t// converting `middlewares = [ m1, m2, m3 ]` into:\n\t// ```\n\t// opts1 => m1( opts1, opts2 => m2( opts2, opts3 => m3( opts3, fetchHandler ) ) );\n\t// ```\n\tconst enhancedHandler = middlewares.reduceRight(\n\t\t( /** @type {FetchHandler} */ next, middleware ) => {\n\t\t\treturn ( workingOptions ) => middleware( workingOptions, next );\n\t\t},\n\t\tfetchHandler\n\t);\n\n\treturn enhancedHandler( options ).catch( ( error ) => {\n\t\tif ( error.code !== 'rest_cookie_invalid_nonce' ) {\n\t\t\treturn Promise.reject( error );\n\t\t}\n\n\t\t// If the nonce is invalid, refresh it and try again.\n\t\treturn (\n\t\t\twindow\n\t\t\t\t// @ts-ignore\n\t\t\t\t.fetch( apiFetch.nonceEndpoint )\n\t\t\t\t.then( checkStatus )\n\t\t\t\t.then( ( data ) => data.text() )\n\t\t\t\t.then( ( text ) => {\n\t\t\t\t\t// @ts-ignore\n\t\t\t\t\tapiFetch.nonceMiddleware.nonce = text;\n\t\t\t\t\treturn apiFetch( options );\n\t\t\t\t} )\n\t\t);\n\t} );\n}\n\napiFetch.use = registerMiddleware;\napiFetch.setFetchHandler = setFetchHandler;\n\napiFetch.createNonceMiddleware = createNonceMiddleware;\napiFetch.createPreloadingMiddleware = createPreloadingMiddleware;\napiFetch.createRootURLMiddleware = createRootURLMiddleware;\napiFetch.fetchAllMiddleware = fetchAllMiddleware;\napiFetch.mediaUploadMiddleware = mediaUploadMiddleware;\napiFetch.createThemePreviewMiddleware = createThemePreviewMiddleware;\n\nexport default apiFetch;\n","/**\n * WordPress dependencies\n */\nimport { addQueryArgs, hasQueryArg } from '@wordpress/url';\n\n/**\n * @type {import('../types').APIFetchMiddleware}\n */\nconst userLocaleMiddleware = ( options, next ) => {\n\tif (\n\t\ttypeof options.url === 'string' &&\n\t\t! hasQueryArg( options.url, '_locale' )\n\t) {\n\t\toptions.url = addQueryArgs( options.url, { _locale: 'user' } );\n\t}\n\n\tif (\n\t\ttypeof options.path === 'string' &&\n\t\t! hasQueryArg( options.path, '_locale' )\n\t) {\n\t\toptions.path = addQueryArgs( options.path, { _locale: 'user' } );\n\t}\n\n\treturn next( options );\n};\n\nexport default userLocaleMiddleware;\n","/**\n * @param {string} nonce\n * @return {import('../types').APIFetchMiddleware & { nonce: string }} A middleware to enhance a request with a nonce.\n */\nfunction createNonceMiddleware( nonce ) {\n\t/**\n\t * @type {import('../types').APIFetchMiddleware & { nonce: string }}\n\t */\n\tconst middleware = ( options, next ) => {\n\t\tconst { headers = {} } = options;\n\n\t\t// If an 'X-WP-Nonce' header (or any case-insensitive variation\n\t\t// thereof) was specified, no need to add a nonce header.\n\t\tfor ( const headerName in headers ) {\n\t\t\tif (\n\t\t\t\theaderName.toLowerCase() === 'x-wp-nonce' &&\n\t\t\t\theaders[ headerName ] === middleware.nonce\n\t\t\t) {\n\t\t\t\treturn next( options );\n\t\t\t}\n\t\t}\n\n\t\treturn next( {\n\t\t\t...options,\n\t\t\theaders: {\n\t\t\t\t...headers,\n\t\t\t\t'X-WP-Nonce': middleware.nonce,\n\t\t\t},\n\t\t} );\n\t};\n\n\tmiddleware.nonce = nonce;\n\n\treturn middleware;\n}\n\nexport default createNonceMiddleware;\n","/**\n * Internal dependencies\n */\nimport namespaceAndEndpointMiddleware from './namespace-endpoint';\n\n/**\n * @param {string} rootURL\n * @return {import('../types').APIFetchMiddleware} Root URL middleware.\n */\nconst createRootURLMiddleware = ( rootURL ) => ( options, next ) => {\n\treturn namespaceAndEndpointMiddleware( options, ( optionsWithPath ) => {\n\t\tlet url = optionsWithPath.url;\n\t\tlet path = optionsWithPath.path;\n\t\tlet apiRoot;\n\n\t\tif ( typeof path === 'string' ) {\n\t\t\tapiRoot = rootURL;\n\n\t\t\tif ( -1 !== rootURL.indexOf( '?' ) ) {\n\t\t\t\tpath = path.replace( '?', '&' );\n\t\t\t}\n\n\t\t\tpath = path.replace( /^\\//, '' );\n\n\t\t\t// API root may already include query parameter prefix if site is\n\t\t\t// configured to use plain permalinks.\n\t\t\tif (\n\t\t\t\t'string' === typeof apiRoot &&\n\t\t\t\t-1 !== apiRoot.indexOf( '?' )\n\t\t\t) {\n\t\t\t\tpath = path.replace( '?', '&' );\n\t\t\t}\n\n\t\t\turl = apiRoot + path;\n\t\t}\n\n\t\treturn next( {\n\t\t\t...optionsWithPath,\n\t\t\turl,\n\t\t} );\n\t} );\n};\n\nexport default createRootURLMiddleware;\n","/**\n * WordPress dependencies\n */\nimport { addQueryArgs, hasQueryArg } from '@wordpress/url';\n\n/**\n * This appends a `wp_theme_preview` parameter to the REST API request URL if\n * the admin URL contains a `theme` GET parameter.\n *\n * @param {Record} themePath\n * @return {import('../types').APIFetchMiddleware} Preloading middleware.\n */\nconst createThemePreviewMiddleware = ( themePath ) => ( options, next ) => {\n\tif (\n\t\ttypeof options.url === 'string' &&\n\t\t! hasQueryArg( options.url, 'wp_theme_preview' )\n\t) {\n\t\toptions.url = addQueryArgs( options.url, {\n\t\t\twp_theme_preview: themePath,\n\t\t} );\n\t}\n\n\tif (\n\t\ttypeof options.path === 'string' &&\n\t\t! hasQueryArg( options.path, 'wp_theme_preview' )\n\t) {\n\t\toptions.path = addQueryArgs( options.path, {\n\t\t\twp_theme_preview: themePath,\n\t\t} );\n\t}\n\n\treturn next( options );\n};\n\nexport default createThemePreviewMiddleware;\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","window","namespaceAndEndpointMiddleware","options","next","namespaceTrimmed","endpointTrimmed","path","namespace","endpoint","replace","prepareResponse","responseData","parse","Promise","resolve","body","Response","JSON","stringify","status","statusText","headers","modifyQuery","url","queryArgs","addQueryArgs","parseResponse","response","json","reject","getNextPageUrl","linkHeader","match","parseLinkHeader","async","pathIsUnbounded","indexOf","urlIsUnbounded","requestContainsUnboundedQuery","apiFetch","per_page","results","Array","isArray","nextPage","mergedResults","concat","nextResponse","undefined","nextResults","OVERRIDE_METHODS","Set","DEFAULT_METHOD","parseResponseAndNormalizeError","shouldParseResponse","catch","res","parseAndThrowError","invalidJsonError","code","message","__","parseJsonAndNormalizeError","then","error","unknownError","DEFAULT_HEADERS","Accept","DEFAULT_OPTIONS","credentials","middlewares","userLocaleMiddleware","hasQueryArg","_locale","namespaceEndpointMiddleware","httpV1Middleware","method","has","toUpperCase","fetchAllMiddleware","checkStatus","fetchHandler","nextOptions","data","remainingOptions","fetch","location","href","value","err","name","reduceRight","middleware","workingOptions","enhancedHandler","nonceEndpoint","text","nonceMiddleware","nonce","use","unshift","setFetchHandler","newFetchHandler","createNonceMiddleware","headerName","toLowerCase","createPreloadingMiddleware","preloadedData","cache","fromEntries","entries","map","normalizePath","rawPath","rest_route","pathFromQuery","getQueryArgs","cacheData","createRootURLMiddleware","rootURL","optionsWithPath","apiRoot","mediaUploadMiddleware","isCreateMethod","isMediaUploadRequest","retries","postProcess","attachmentId","action","createThemePreviewMiddleware","themePath","wp_theme_preview"],"sourceRoot":""} \ No newline at end of file diff --git a/versions/16.7.1/build/autop/index.js b/versions/16.7.1/build/autop/index.js new file mode 100644 index 00000000..3ef08da5 --- /dev/null +++ b/versions/16.7.1/build/autop/index.js @@ -0,0 +1,470 @@ +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ // The require scope +/******/ var __webpack_require__ = {}; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "autop": () => (/* binding */ autop), +/* harmony export */ "removep": () => (/* binding */ removep) +/* harmony export */ }); +/** + * The regular expression for an HTML element. + * + * @type {RegExp} + */ +const htmlSplitRegex = (() => { + /* eslint-disable no-multi-spaces */ + const comments = '!' + + // Start of comment, after the <. + '(?:' + + // Unroll the loop: Consume everything until --> is found. + '-(?!->)' + + // Dash not followed by end of comment. + '[^\\-]*' + + // Consume non-dashes. + ')*' + + // Loop possessively. + '(?:-->)?'; // End of comment. If not found, match all input. + + const cdata = '!\\[CDATA\\[' + + // Start of comment, after the <. + '[^\\]]*' + + // Consume non-]. + '(?:' + + // Unroll the loop: Consume everything until ]]> is found. + '](?!]>)' + + // One ] not followed by end of comment. + '[^\\]]*' + + // Consume non-]. + ')*?' + + // Loop possessively. + '(?:]]>)?'; // End of comment. If not found, match all input. + + const escaped = '(?=' + + // Is the element escaped? + '!--' + '|' + '!\\[CDATA\\[' + ')' + '((?=!-)' + + // If yes, which type? + comments + '|' + cdata + ')'; + const regex = '(' + + // Capture the entire match. + '<' + + // Find start of element. + '(' + + // Conditional expression follows. + escaped + + // Find end of escaped element. + '|' + + // ... else ... + '[^>]*>?' + + // Find end of normal element. + ')' + ')'; + return new RegExp(regex); + /* eslint-enable no-multi-spaces */ +})(); + +/** + * Separate HTML elements and comments from the text. + * + * @param {string} input The text which has to be formatted. + * + * @return {string[]} The formatted text. + */ +function htmlSplit(input) { + const parts = []; + let workingInput = input; + let match; + while (match = workingInput.match(htmlSplitRegex)) { + // The `match` result, when invoked on a RegExp with the `g` flag (`/foo/g`) will not include `index`. + // If the `g` flag is omitted, `index` is included. + // `htmlSplitRegex` does not have the `g` flag so we can assert it will have an index number. + // Assert `match.index` is a number. + const index = /** @type {number} */match.index; + parts.push(workingInput.slice(0, index)); + parts.push(match[0]); + workingInput = workingInput.slice(index + match[0].length); + } + if (workingInput.length) { + parts.push(workingInput); + } + return parts; +} + +/** + * Replace characters or phrases within HTML elements only. + * + * @param {string} haystack The text which has to be formatted. + * @param {Record} replacePairs In the form {from: 'to', …}. + * + * @return {string} The formatted text. + */ +function replaceInHtmlTags(haystack, replacePairs) { + // Find all elements. + const textArr = htmlSplit(haystack); + let changed = false; + + // Extract all needles. + const needles = Object.keys(replacePairs); + + // Loop through delimiters (elements) only. + for (let i = 1; i < textArr.length; i += 2) { + for (let j = 0; j < needles.length; j++) { + const needle = needles[j]; + if (-1 !== textArr[i].indexOf(needle)) { + textArr[i] = textArr[i].replace(new RegExp(needle, 'g'), replacePairs[needle]); + changed = true; + // After one strtr() break out of the foreach loop and look at next element. + break; + } + } + } + if (changed) { + haystack = textArr.join(''); + } + return haystack; +} + +/** + * Replaces double line-breaks with paragraph elements. + * + * A group of regex replaces used to identify text formatted with newlines and + * replace double line-breaks with HTML paragraph tags. The remaining line- + * breaks after conversion become `
` tags, unless br is set to 'false'. + * + * @param {string} text The text which has to be formatted. + * @param {boolean} br Optional. If set, will convert all remaining line- + * breaks after paragraphing. Default true. + * + * @example + *```js + * import { autop } from '@wordpress/autop'; + * autop( 'my text' ); // "

my text

" + * ``` + * + * @return {string} Text which has been converted into paragraph tags. + */ +function autop(text, br = true) { + const preTags = []; + if (text.trim() === '') { + return ''; + } + + // Just to make things a little easier, pad the end. + text = text + '\n'; + + /* + * Pre tags shouldn't be touched by autop. + * Replace pre tags with placeholders and bring them back after autop. + */ + if (text.indexOf(''); + const lastText = textParts.pop(); + text = ''; + for (let i = 0; i < textParts.length; i++) { + const textPart = textParts[i]; + const start = textPart.indexOf(''; + preTags.push([name, textPart.substr(start) + '']); + text += textPart.substr(0, start) + name; + } + text += lastText; + } + // Change multiple
s into two line breaks, which will turn into paragraphs. + text = text.replace(/\s*/g, '\n\n'); + const allBlocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)'; + + // Add a double line break above block-level opening tags. + text = text.replace(new RegExp('(<' + allBlocks + '[\\s/>])', 'g'), '\n\n$1'); + + // Add a double line break below block-level closing tags. + text = text.replace(new RegExp('()', 'g'), '$1\n\n'); + + // Standardize newline characters to "\n". + text = text.replace(/\r\n|\r/g, '\n'); + + // Find newlines in all elements and add placeholders. + text = replaceInHtmlTags(text, { + '\n': ' ' + }); + + // Collapse line breaks before and after '); + } + + /* + * Collapse line breaks inside elements, before and elements + * so they don't get autop'd. + */ + if (text.indexOf('') !== -1) { + text = text.replace(/(]*>)\s*/g, '$1'); + text = text.replace(/\s*<\/object>/g, ''); + text = text.replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g, '$1'); + } + + /* + * Collapse line breaks inside