mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-20 09:36:15 +01:00
00401e16b3
Updates the wordpress npm packages and their dependencies to the latest versions, as well as auto-updates to relevant core PHP files. Props youknowriad, joemcgill, spacedmonkey, ramonopoly, peterwilsoncc, bernhard-reiter, tyxla, dmsnell. Fixes #58623. Built from https://develop.svn.wordpress.org/trunk@56065 git-svn-id: http://core.svn.wordpress.org/trunk@55577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
74 lines
1.4 KiB
JSON
74 lines
1.4 KiB
JSON
{
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
"apiVersion": 3,
|
|
"name": "core/file",
|
|
"title": "File",
|
|
"category": "media",
|
|
"description": "Add a link to a downloadable file.",
|
|
"keywords": [ "document", "pdf", "download" ],
|
|
"textdomain": "default",
|
|
"attributes": {
|
|
"id": {
|
|
"type": "number"
|
|
},
|
|
"href": {
|
|
"type": "string"
|
|
},
|
|
"fileId": {
|
|
"type": "string",
|
|
"source": "attribute",
|
|
"selector": "a:not([download])",
|
|
"attribute": "id"
|
|
},
|
|
"fileName": {
|
|
"type": "string",
|
|
"source": "html",
|
|
"selector": "a:not([download])"
|
|
},
|
|
"textLinkHref": {
|
|
"type": "string",
|
|
"source": "attribute",
|
|
"selector": "a:not([download])",
|
|
"attribute": "href"
|
|
},
|
|
"textLinkTarget": {
|
|
"type": "string",
|
|
"source": "attribute",
|
|
"selector": "a:not([download])",
|
|
"attribute": "target"
|
|
},
|
|
"showDownloadButton": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"downloadButtonText": {
|
|
"type": "string",
|
|
"source": "html",
|
|
"selector": "a[download]"
|
|
},
|
|
"displayPreview": {
|
|
"type": "boolean"
|
|
},
|
|
"previewHeight": {
|
|
"type": "number",
|
|
"default": 600
|
|
}
|
|
},
|
|
"supports": {
|
|
"anchor": true,
|
|
"align": true,
|
|
"color": {
|
|
"gradients": true,
|
|
"link": true,
|
|
"text": false,
|
|
"__experimentalDefaultControls": {
|
|
"background": true,
|
|
"link": true
|
|
}
|
|
}
|
|
},
|
|
"viewScript": "file:./view.min.js",
|
|
"editorStyle": "wp-block-file-editor",
|
|
"style": "wp-block-file"
|
|
}
|