mirror of
git://develop.git.wordpress.org/
synced 2025-04-13 08:32:10 +02:00
Editor: Update @wordpress npm packages
Update @wordpress npm packages to the latest published versions. This means that the block editor includes functionality that exists in Gutenberg 9.8. See #52334. Props isabel_brison. git-svn-id: https://develop.svn.wordpress.org/trunk@50048 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8bfe823278
commit
bc405697b0
4451
package-lock.json
generated
4451
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
105
package.json
105
package.json
@ -25,11 +25,11 @@
|
||||
"last 2 Opera versions"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@wordpress/custom-templated-path-webpack-plugin": "1.7.0",
|
||||
"@wordpress/dependency-extraction-webpack-plugin": "2.8.0",
|
||||
"@wordpress/e2e-test-utils": "4.15.0",
|
||||
"@wordpress/library-export-default-webpack-plugin": "1.9.0",
|
||||
"@wordpress/scripts": "12.4.0",
|
||||
"@wordpress/custom-templated-path-webpack-plugin": "2.0.0",
|
||||
"@wordpress/dependency-extraction-webpack-plugin": "3.0.0",
|
||||
"@wordpress/e2e-test-utils": "5.0.0",
|
||||
"@wordpress/library-export-default-webpack-plugin": "2.0.0",
|
||||
"@wordpress/scripts": "13.0.0",
|
||||
"autoprefixer": "^9.8.6",
|
||||
"chalk": "4.1.0",
|
||||
"check-node-version": "4.0.3",
|
||||
@ -79,54 +79,54 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/polyfill": "7.10.1",
|
||||
"@wordpress/a11y": "2.13.0",
|
||||
"@wordpress/annotations": "1.23.0",
|
||||
"@wordpress/api-fetch": "3.20.0",
|
||||
"@wordpress/autop": "2.10.0",
|
||||
"@wordpress/blob": "2.11.0",
|
||||
"@wordpress/block-directory": "1.17.5",
|
||||
"@wordpress/block-editor": "5.1.4",
|
||||
"@wordpress/block-library": "2.26.5",
|
||||
"@wordpress/block-serialization-default-parser": "3.8.0",
|
||||
"@wordpress/blocks": "6.24.2",
|
||||
"@wordpress/components": "11.1.3",
|
||||
"@wordpress/compose": "3.22.0",
|
||||
"@wordpress/core-data": "2.24.2",
|
||||
"@wordpress/data": "4.25.0",
|
||||
"@wordpress/data-controls": "1.19.0",
|
||||
"@wordpress/date": "3.12.0",
|
||||
"@wordpress/deprecated": "2.10.0",
|
||||
"@wordpress/dom": "2.15.0",
|
||||
"@wordpress/dom-ready": "2.11.0",
|
||||
"@wordpress/edit-post": "3.25.5",
|
||||
"@wordpress/editor": "9.24.4",
|
||||
"@wordpress/element": "2.18.0",
|
||||
"@wordpress/escape-html": "1.10.0",
|
||||
"@wordpress/format-library": "1.25.4",
|
||||
"@wordpress/hooks": "2.10.0",
|
||||
"@wordpress/html-entities": "2.9.0",
|
||||
"@wordpress/i18n": "3.16.0",
|
||||
"@wordpress/icons": "2.8.0",
|
||||
"@wordpress/is-shallow-equal": "2.3.0",
|
||||
"@wordpress/keyboard-shortcuts": "1.12.0",
|
||||
"@wordpress/keycodes": "2.16.0",
|
||||
"@wordpress/list-reusable-blocks": "1.24.2",
|
||||
"@wordpress/media-utils": "1.18.0",
|
||||
"@wordpress/notices": "2.11.0",
|
||||
"@wordpress/nux": "3.23.2",
|
||||
"@wordpress/plugins": "2.23.0",
|
||||
"@wordpress/primitives": "1.10.0",
|
||||
"@wordpress/priority-queue": "1.9.0",
|
||||
"@wordpress/redux-routine": "3.12.0",
|
||||
"@wordpress/reusable-blocks": "1.0.4",
|
||||
"@wordpress/rich-text": "3.23.0",
|
||||
"@wordpress/server-side-render": "1.19.2",
|
||||
"@wordpress/shortcode": "2.11.0",
|
||||
"@wordpress/token-list": "1.13.0",
|
||||
"@wordpress/url": "2.19.0",
|
||||
"@wordpress/viewport": "2.24.0",
|
||||
"@wordpress/a11y": "2.14.0",
|
||||
"@wordpress/annotations": "1.24.2",
|
||||
"@wordpress/api-fetch": "3.21.2",
|
||||
"@wordpress/autop": "2.11.0",
|
||||
"@wordpress/blob": "2.12.0",
|
||||
"@wordpress/block-directory": "1.18.2",
|
||||
"@wordpress/block-editor": "5.2.2",
|
||||
"@wordpress/block-library": "2.27.2",
|
||||
"@wordpress/block-serialization-default-parser": "3.9.0",
|
||||
"@wordpress/blocks": "6.25.2",
|
||||
"@wordpress/components": "12.0.2",
|
||||
"@wordpress/compose": "3.24.0",
|
||||
"@wordpress/core-data": "2.25.2",
|
||||
"@wordpress/data": "4.26.2",
|
||||
"@wordpress/data-controls": "1.20.2",
|
||||
"@wordpress/date": "3.13.0",
|
||||
"@wordpress/deprecated": "2.11.0",
|
||||
"@wordpress/dom": "2.16.1",
|
||||
"@wordpress/dom-ready": "2.12.0",
|
||||
"@wordpress/edit-post": "3.26.2",
|
||||
"@wordpress/editor": "9.25.2",
|
||||
"@wordpress/element": "2.19.0",
|
||||
"@wordpress/escape-html": "1.11.0",
|
||||
"@wordpress/format-library": "1.26.2",
|
||||
"@wordpress/hooks": "2.11.0",
|
||||
"@wordpress/html-entities": "2.10.0",
|
||||
"@wordpress/i18n": "3.17.0",
|
||||
"@wordpress/icons": "2.9.0",
|
||||
"@wordpress/is-shallow-equal": "3.0.0",
|
||||
"@wordpress/keyboard-shortcuts": "1.13.2",
|
||||
"@wordpress/keycodes": "2.18.0",
|
||||
"@wordpress/list-reusable-blocks": "1.25.2",
|
||||
"@wordpress/media-utils": "1.19.2",
|
||||
"@wordpress/notices": "2.12.2",
|
||||
"@wordpress/nux": "3.24.2",
|
||||
"@wordpress/plugins": "2.24.2",
|
||||
"@wordpress/primitives": "1.11.0",
|
||||
"@wordpress/priority-queue": "1.10.0",
|
||||
"@wordpress/redux-routine": "3.13.0",
|
||||
"@wordpress/reusable-blocks": "1.1.2",
|
||||
"@wordpress/rich-text": "3.24.2",
|
||||
"@wordpress/server-side-render": "1.20.2",
|
||||
"@wordpress/shortcode": "2.12.0",
|
||||
"@wordpress/token-list": "1.14.0",
|
||||
"@wordpress/url": "2.21.1",
|
||||
"@wordpress/viewport": "2.25.2",
|
||||
"@wordpress/warning": "1.3.0",
|
||||
"@wordpress/wordcount": "2.13.0",
|
||||
"@wordpress/wordcount": "2.14.0",
|
||||
"backbone": "1.4.0",
|
||||
"clipboard": "2.0.6",
|
||||
"core-js-url-browser": "3.6.4",
|
||||
@ -140,6 +140,7 @@
|
||||
"lodash": "4.17.19",
|
||||
"masonry-layout": "4.2.2",
|
||||
"moment": "2.27.0",
|
||||
"objectFitPolyfill": "2.3.4",
|
||||
"polyfill-library": "3.42.0",
|
||||
"react": "16.13.1",
|
||||
"react-dom": "16.13.1",
|
||||
|
File diff suppressed because one or more lines are too long
@ -15,5 +15,6 @@
|
||||
"supports": {
|
||||
"align": true,
|
||||
"html": false
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-archives-editor"
|
||||
}
|
||||
|
@ -39,5 +39,7 @@
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-audio-editor",
|
||||
"style": "wp-block-audio"
|
||||
}
|
||||
|
@ -11,5 +11,6 @@
|
||||
"customClassName": false,
|
||||
"html": false,
|
||||
"inserter": false
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-editor"
|
||||
}
|
||||
|
@ -52,6 +52,9 @@
|
||||
},
|
||||
"gradient": {
|
||||
"type": "string"
|
||||
},
|
||||
"width": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
@ -60,5 +63,7 @@
|
||||
"alignWide": false,
|
||||
"reusable": false,
|
||||
"__experimentalSelector": ".wp-block-button > a"
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-button-editor",
|
||||
"style": "wp-block-button"
|
||||
}
|
||||
|
@ -2,9 +2,19 @@
|
||||
"apiVersion": 2,
|
||||
"name": "core/buttons",
|
||||
"category": "design",
|
||||
"attributes": {
|
||||
"contentJustification": {
|
||||
"type": "string"
|
||||
},
|
||||
"orientation": {
|
||||
"type": "string",
|
||||
"default": "horizontal"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true,
|
||||
"alignWide": false
|
||||
}
|
||||
"align": [ "wide", "full" ]
|
||||
},
|
||||
"editorStyle": "wp-block-buttons-editor",
|
||||
"style": "wp-block-buttons"
|
||||
}
|
||||
|
@ -12,5 +12,6 @@
|
||||
},
|
||||
"supports": {
|
||||
"align": true
|
||||
}
|
||||
},
|
||||
"style": "wp-block-calendar"
|
||||
}
|
||||
|
@ -19,5 +19,7 @@
|
||||
"supports": {
|
||||
"align": true,
|
||||
"html": false
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-categories-editor",
|
||||
"style": "wp-block-categories"
|
||||
}
|
||||
|
@ -12,5 +12,6 @@
|
||||
"className": false,
|
||||
"customClassName": false,
|
||||
"reusable": false
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-freeform-editor"
|
||||
}
|
||||
|
@ -10,6 +10,8 @@
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true
|
||||
}
|
||||
"anchor": true,
|
||||
"fontSize": true
|
||||
},
|
||||
"style": "wp-block-code"
|
||||
}
|
||||
|
@ -18,5 +18,7 @@
|
||||
"gradients": true,
|
||||
"link": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-columns-editor",
|
||||
"style": "wp-block-columns"
|
||||
}
|
||||
|
@ -31,8 +31,8 @@
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": true,
|
||||
"reusable": false,
|
||||
"html": false
|
||||
}
|
||||
"align": true
|
||||
},
|
||||
"editorStyle": "wp-block-embed-editor",
|
||||
"style": "wp-block-embed"
|
||||
}
|
||||
|
@ -39,5 +39,7 @@
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-file-editor",
|
||||
"style": "wp-block-file"
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"apiVersion": 2,
|
||||
"name": "core/gallery",
|
||||
"category": "media",
|
||||
"attributes": {
|
||||
@ -78,5 +79,7 @@
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-gallery-editor",
|
||||
"style": "wp-block-gallery"
|
||||
}
|
||||
|
@ -24,6 +24,11 @@
|
||||
},
|
||||
"spacing": {
|
||||
"padding": true
|
||||
},
|
||||
"__experimentalBorder": {
|
||||
"radius": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-group-editor",
|
||||
"style": "wp-block-group"
|
||||
}
|
||||
|
@ -30,13 +30,51 @@
|
||||
"fontSize": true,
|
||||
"lineHeight": true,
|
||||
"__experimentalSelector": {
|
||||
"core/heading/h1": "h1",
|
||||
"core/heading/h2": "h2",
|
||||
"core/heading/h3": "h3",
|
||||
"core/heading/h4": "h4",
|
||||
"core/heading/h5": "h5",
|
||||
"core/heading/h6": "h6"
|
||||
"core/heading/h1": {
|
||||
"selector": "h1",
|
||||
"title": "h1",
|
||||
"attributes": {
|
||||
"level": 1
|
||||
}
|
||||
},
|
||||
"core/heading/h2": {
|
||||
"selector": "h2",
|
||||
"title": "h2",
|
||||
"attributes": {
|
||||
"level": 2
|
||||
}
|
||||
},
|
||||
"core/heading/h3": {
|
||||
"selector": "h3",
|
||||
"title": "h3",
|
||||
"attributes": {
|
||||
"level": 3
|
||||
}
|
||||
},
|
||||
"core/heading/h4": {
|
||||
"selector": "h4",
|
||||
"title": "h4",
|
||||
"attributes": {
|
||||
"level": 4
|
||||
}
|
||||
},
|
||||
"core/heading/h5": {
|
||||
"selector": "h5",
|
||||
"title": "h5",
|
||||
"attributes": {
|
||||
"level": 5
|
||||
}
|
||||
},
|
||||
"core/heading/h6": {
|
||||
"selector": "h6",
|
||||
"title": "h6",
|
||||
"attributes": {
|
||||
"level": 6
|
||||
}
|
||||
}
|
||||
},
|
||||
"__unstablePasteTextInline": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-heading-editor",
|
||||
"style": "wp-block-heading"
|
||||
}
|
||||
|
@ -12,5 +12,6 @@
|
||||
"customClassName": false,
|
||||
"className": false,
|
||||
"html": false
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-html-editor"
|
||||
}
|
||||
|
@ -72,5 +72,7 @@
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-image-editor",
|
||||
"style": "wp-block-image"
|
||||
}
|
||||
|
@ -29,12 +29,12 @@ function register_core_block_types_from_metadata() {
|
||||
'audio',
|
||||
'button',
|
||||
'buttons',
|
||||
'classic',
|
||||
'code',
|
||||
'column',
|
||||
'columns',
|
||||
'embed',
|
||||
'file',
|
||||
'freeform',
|
||||
'gallery',
|
||||
'group',
|
||||
'heading',
|
||||
|
@ -41,8 +41,8 @@ function wp_latest_comments_draft_or_post_title( $post = 0 ) {
|
||||
* @return string Returns the post content with latest comments added.
|
||||
*/
|
||||
function render_block_core_latest_comments( $attributes = array() ) {
|
||||
// This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php.
|
||||
$comments = get_comments(
|
||||
// This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php.
|
||||
apply_filters(
|
||||
'widget_comments_args',
|
||||
array(
|
||||
|
@ -25,5 +25,7 @@
|
||||
"supports": {
|
||||
"align": true,
|
||||
"html": false
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-latest-comments-editor",
|
||||
"style": "wp-block-latest-comments"
|
||||
}
|
||||
|
@ -84,5 +84,7 @@
|
||||
"supports": {
|
||||
"align": true,
|
||||
"html": false
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-latest-posts-editor",
|
||||
"style": "wp-block-latest-posts"
|
||||
}
|
||||
|
@ -28,9 +28,12 @@
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"className": false,
|
||||
"fontSize": true,
|
||||
"color": {
|
||||
"gradients": true
|
||||
},
|
||||
"__unstablePasteTextInline": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-list-editor",
|
||||
"style": "wp-block-list"
|
||||
}
|
||||
|
@ -89,5 +89,7 @@
|
||||
"gradients": true,
|
||||
"link": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-media-text-editor",
|
||||
"style": "wp-block-media-text"
|
||||
}
|
||||
|
@ -16,5 +16,6 @@
|
||||
"className": false,
|
||||
"html": false,
|
||||
"multiple": false
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-more-editor"
|
||||
}
|
||||
|
@ -7,5 +7,6 @@
|
||||
"customClassName": false,
|
||||
"className": false,
|
||||
"html": false
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-nextpage-editor"
|
||||
}
|
||||
|
@ -37,5 +37,7 @@
|
||||
"lineHeight": true,
|
||||
"__experimentalSelector": "p",
|
||||
"__unstablePasteTextInline": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-paragraph-editor",
|
||||
"style": "wp-block-paragraph"
|
||||
}
|
||||
|
@ -12,6 +12,8 @@
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true
|
||||
}
|
||||
"anchor": true,
|
||||
"fontSize": true
|
||||
},
|
||||
"style": "wp-block-preformatted"
|
||||
}
|
||||
|
@ -36,5 +36,7 @@
|
||||
"wide",
|
||||
"full"
|
||||
]
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-pullquote-editor",
|
||||
"style": "wp-block-pullquote"
|
||||
}
|
||||
|
@ -22,5 +22,7 @@
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-quote-editor",
|
||||
"style": "wp-block-quote"
|
||||
}
|
||||
|
@ -39,5 +39,7 @@
|
||||
"supports": {
|
||||
"align": true,
|
||||
"html": false
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-rss-editor",
|
||||
"style": "wp-block-rss"
|
||||
}
|
||||
|
@ -35,5 +35,7 @@
|
||||
"supports": {
|
||||
"align": [ "left", "center", "right" ],
|
||||
"html": false
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-search-editor",
|
||||
"style": "wp-block-search"
|
||||
}
|
||||
|
@ -13,5 +13,7 @@
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": ["center","wide","full"]
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-separator-editor",
|
||||
"style": "wp-block-separator"
|
||||
}
|
||||
|
@ -12,5 +12,6 @@
|
||||
"className": false,
|
||||
"customClassName": false,
|
||||
"html": false
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-shortcode-editor"
|
||||
}
|
||||
|
@ -190,6 +190,10 @@ function block_core_social_link_services( $service = '', $field = '' ) {
|
||||
'name' => 'Medium',
|
||||
'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false"><path d="M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"></path></svg>',
|
||||
),
|
||||
'patreon' => array(
|
||||
'name' => 'Patreon',
|
||||
'icon' => '<svg width="24" height="24" viewBox="0 0 569 546" version="1.1" xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false"><circle cx="363" cy="205" r="205" /><rect width="100" height="546" x="0" y="0" /></svg>',
|
||||
),
|
||||
'pinterest' => array(
|
||||
'name' => 'Pinterest',
|
||||
'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false"><path d="M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"></path></svg>',
|
||||
@ -218,6 +222,14 @@ function block_core_social_link_services( $service = '', $field = '' ) {
|
||||
'name' => 'Spotify',
|
||||
'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false"><path d="M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"></path></svg>',
|
||||
),
|
||||
'telegram' => array(
|
||||
'name' => 'Telegram',
|
||||
'icon' => '<svg width="24" height="24" viewBox="0 0 128 128" version="1.1" xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false"><path d="M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z" /></svg>',
|
||||
),
|
||||
'tiktok' => array(
|
||||
'name' => 'TikTok',
|
||||
'icon' => '<svg width="24" height="24" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false"><path d="M16.708 0.027c1.745-0.027 3.48-0.011 5.213-0.027 0.105 2.041 0.839 4.12 2.333 5.563 1.491 1.479 3.6 2.156 5.652 2.385v5.369c-1.923-0.063-3.855-0.463-5.6-1.291-0.76-0.344-1.468-0.787-2.161-1.24-0.009 3.896 0.016 7.787-0.025 11.667-0.104 1.864-0.719 3.719-1.803 5.255-1.744 2.557-4.771 4.224-7.88 4.276-1.907 0.109-3.812-0.411-5.437-1.369-2.693-1.588-4.588-4.495-4.864-7.615-0.032-0.667-0.043-1.333-0.016-1.984 0.24-2.537 1.495-4.964 3.443-6.615 2.208-1.923 5.301-2.839 8.197-2.297 0.027 1.975-0.052 3.948-0.052 5.923-1.323-0.428-2.869-0.308-4.025 0.495-0.844 0.547-1.485 1.385-1.819 2.333-0.276 0.676-0.197 1.427-0.181 2.145 0.317 2.188 2.421 4.027 4.667 3.828 1.489-0.016 2.916-0.88 3.692-2.145 0.251-0.443 0.532-0.896 0.547-1.417 0.131-2.385 0.079-4.76 0.095-7.145 0.011-5.375-0.016-10.735 0.025-16.093z" /></svg>',
|
||||
),
|
||||
'tumblr' => array(
|
||||
'name' => 'Tumblr',
|
||||
'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false"><path d="M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z" /></path></svg>',
|
||||
|
@ -22,5 +22,6 @@
|
||||
"supports": {
|
||||
"reusable": false,
|
||||
"html": false
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-social-link-editor"
|
||||
}
|
||||
|
@ -6,6 +6,9 @@
|
||||
"openInNewTab": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"size": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"providesContext": {
|
||||
@ -18,5 +21,7 @@
|
||||
"right"
|
||||
],
|
||||
"anchor": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-social-links-editor",
|
||||
"style": "wp-block-social-links"
|
||||
}
|
||||
|
@ -10,5 +10,7 @@
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-spacer-editor",
|
||||
"style": "wp-block-spacer"
|
||||
}
|
||||
|
@ -15,5 +15,7 @@
|
||||
"supports": {
|
||||
"inserter": false,
|
||||
"multiple": false
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-subhead-editor",
|
||||
"style": "wp-block-subhead"
|
||||
}
|
||||
|
@ -125,6 +125,8 @@
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true,
|
||||
"__experimentalSelector": ".wp-block-button > table"
|
||||
}
|
||||
"__experimentalSelector": ".wp-block-table > table"
|
||||
},
|
||||
"editorStyle": "wp-block-table-editor",
|
||||
"style": "wp-block-table"
|
||||
}
|
||||
|
@ -15,5 +15,6 @@
|
||||
"supports": {
|
||||
"html": false,
|
||||
"align": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-tag-cloud-editor"
|
||||
}
|
||||
|
@ -29,5 +29,7 @@
|
||||
},
|
||||
"supports": {
|
||||
"inserter": false
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-text-columns-editor",
|
||||
"style": "wp-block-text-columns"
|
||||
}
|
||||
|
@ -15,6 +15,10 @@
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true
|
||||
}
|
||||
"anchor": true,
|
||||
"__experimentalFontFamily": true,
|
||||
"fontSize": true
|
||||
},
|
||||
"style": "wp-block-verse",
|
||||
"editorStyle": "wp-block-verse-editor"
|
||||
}
|
||||
|
@ -72,5 +72,7 @@
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-video-editor",
|
||||
"style": "wp-block-video"
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ class WP_Block_Supports {
|
||||
}
|
||||
|
||||
$output = array();
|
||||
foreach ( $this->block_supports as $name => $block_support_config ) {
|
||||
foreach ( $this->block_supports as $block_support_config ) {
|
||||
if ( ! isset( $block_support_config['apply'] ) ) {
|
||||
continue;
|
||||
}
|
||||
@ -143,7 +143,7 @@ class WP_Block_Supports {
|
||||
$block_type->attributes = array();
|
||||
}
|
||||
|
||||
foreach ( $this->block_supports as $name => $block_support_config ) {
|
||||
foreach ( $this->block_supports as $block_support_config ) {
|
||||
if ( ! isset( $block_support_config['register_attribute'] ) ) {
|
||||
continue;
|
||||
}
|
||||
|
@ -90,6 +90,7 @@ function wp_default_packages_vendor( $scripts ) {
|
||||
'wp-polyfill-url',
|
||||
'wp-polyfill-dom-rect',
|
||||
'wp-polyfill-element-closest',
|
||||
'wp-polyfill-object-fit',
|
||||
'wp-polyfill',
|
||||
);
|
||||
|
||||
@ -104,6 +105,7 @@ function wp_default_packages_vendor( $scripts ) {
|
||||
'wp-polyfill-url' => '3.6.4',
|
||||
'wp-polyfill-dom-rect' => '3.42.0',
|
||||
'wp-polyfill-element-closest' => '2.0.2',
|
||||
'wp-polyfill-object-fit' => '2.3.4',
|
||||
'wp-polyfill' => '7.4.4',
|
||||
);
|
||||
|
||||
@ -131,6 +133,7 @@ function wp_default_packages_vendor( $scripts ) {
|
||||
'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url',
|
||||
'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata',
|
||||
'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest',
|
||||
'\'objectFit\' in document.documentElement.style' => 'wp-polyfill-object-fit',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -718,7 +718,7 @@ JS;
|
||||
$expected .= "<script type='text/javascript' src='http://example.com' id='test-example-js'></script>\n";
|
||||
$expected .= "<script type='text/javascript' src='/wp-includes/js/dist/vendor/wp-polyfill{$suffix}.js' id='wp-polyfill-js'></script>\n";
|
||||
$expected .= "<script type='text/javascript' id='wp-polyfill-js-after'>\n";
|
||||
$expected .= "( 'fetch' in window ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-fetch{$suffix}.js\"></scr' + 'ipt>' );( document.contains ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-node-contains{$suffix}.js\"></scr' + 'ipt>' );( window.DOMRect ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-dom-rect{$suffix}.js\"></scr' + 'ipt>' );( window.URL && window.URL.prototype && window.URLSearchParams ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-url{$suffix}.js\"></scr' + 'ipt>' );( window.FormData && window.FormData.prototype.keys ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-formdata{$suffix}.js\"></scr' + 'ipt>' );( Element.prototype.matches && Element.prototype.closest ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-element-closest{$suffix}.js\"></scr' + 'ipt>' );\n";
|
||||
$expected .= "( 'fetch' in window ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-fetch{$suffix}.js\"></scr' + 'ipt>' );( document.contains ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-node-contains{$suffix}.js\"></scr' + 'ipt>' );( window.DOMRect ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-dom-rect{$suffix}.js\"></scr' + 'ipt>' );( window.URL && window.URL.prototype && window.URLSearchParams ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-url{$suffix}.js\"></scr' + 'ipt>' );( window.FormData && window.FormData.prototype.keys ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-formdata{$suffix}.js\"></scr' + 'ipt>' );( Element.prototype.matches && Element.prototype.closest ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-element-closest{$suffix}.js\"></scr' + 'ipt>' );( 'objectFit' in document.documentElement.style ) || document.write( '<script src=\"http://example.org/wp-includes/js/dist/vendor/wp-polyfill-object-fit.min.js\"></scr' + 'ipt>' );\n";
|
||||
$expected .= "</script>\n";
|
||||
$expected .= "<script type='text/javascript' src='/wp-includes/js/dist/dom-ready{$suffix}.js' id='wp-dom-ready-js'></script>\n";
|
||||
$expected .= "<script type='text/javascript' src='/wp-includes/js/dist/i18n{$suffix}.js' id='wp-i18n-js'></script>\n";
|
||||
|
@ -80,6 +80,7 @@ module.exports = function( env = { environment: 'production', watch: false, buil
|
||||
'wp-polyfill-url.js': 'core-js-url-browser/url.js',
|
||||
'wp-polyfill-dom-rect.js': 'polyfill-library/polyfills/DOMRect/polyfill.js',
|
||||
'wp-polyfill-formdata.js': 'formdata-polyfill/FormData.js',
|
||||
'wp-polyfill-object-fit.js': 'objectFitPolyfill/src/objectFitPolyfill.js',
|
||||
'moment.js': 'moment/moment.js',
|
||||
'react.js': 'react/umd/react.development.js',
|
||||
'react-dom.js': 'react-dom/umd/react-dom.development.js',
|
||||
@ -90,6 +91,7 @@ module.exports = function( env = { environment: 'production', watch: false, buil
|
||||
'wp-polyfill.min.js': '@babel/polyfill/dist/polyfill.min.js',
|
||||
'wp-polyfill-formdata.min.js': 'formdata-polyfill/formdata.min.js',
|
||||
'wp-polyfill-url.min.js': 'core-js-url-browser/url.min.js',
|
||||
'wp-polyfill-object-fit.min.js': 'objectFitPolyfill/dist/objectFitPolyfill.min.js',
|
||||
'moment.min.js': 'moment/min/moment.min.js',
|
||||
'react.min.js': 'react/umd/react.production.min.js',
|
||||
'react-dom.min.js': 'react-dom/umd/react-dom.production.min.js',
|
||||
@ -119,12 +121,12 @@ module.exports = function( env = { environment: 'production', watch: false, buil
|
||||
'audio',
|
||||
'button',
|
||||
'buttons',
|
||||
'classic',
|
||||
'code',
|
||||
'column',
|
||||
'columns',
|
||||
'embed',
|
||||
'file',
|
||||
'freeform',
|
||||
'gallery',
|
||||
'group',
|
||||
'heading',
|
||||
|
Loading…
x
Reference in New Issue
Block a user