PluginProbe
Gutenberg / 24.1.0
Gutenberg v24.1.0
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
gutenberg / build / scripts / block-library / file / block.json

block.json in Gutenberg 24.1.0, at build/scripts/block-library/file/block.json

107 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "core/file",
5 "title": "File",
6 "category": "media",
7 "description": "Add a link to a downloadable file.",
8 "keywords": [ "document", "pdf", "download" ],
9 "textdomain": "default",
10 "attributes": {
11 "id": {
12 "type": "number"
13 },
14 "blob": {
15 "type": "string",
16 "role": "local"
17 },
18 "href": {
19 "type": "string",
20 "role": "content"
21 },
22 "fileId": {
23 "type": "string",
24 "source": "attribute",
25 "selector": "a:not([download])",
26 "attribute": "id"
27 },
28 "fileName": {
29 "type": "rich-text",
30 "source": "rich-text",
31 "selector": "a:not([download])",
32 "role": "content"
33 },
34 "textLinkHref": {
35 "type": "string",
36 "source": "attribute",
37 "selector": "a:not([download])",
38 "attribute": "href",
39 "role": "content"
40 },
41 "textLinkTarget": {
42 "type": "string",
43 "source": "attribute",
44 "selector": "a:not([download])",
45 "attribute": "target"
46 },
47 "showDownloadButton": {
48 "type": "boolean",
49 "default": true
50 },
51 "downloadButtonText": {
52 "type": "rich-text",
53 "source": "rich-text",
54 "selector": "a[download]",
55 "role": "content"
56 },
57 "displayPreview": {
58 "type": "boolean"
59 },
60 "previewHeight": {
61 "type": "number",
62 "default": 600
63 }
64 },
65 "supports": {
66 "anchor": true,
67 "align": true,
68 "background": {
69 "backgroundImage": true,
70 "backgroundSize": true,
71 "gradient": true,
72 "__experimentalDefaultControls": {
73 "backgroundImage": true,
74 "gradient": true
75 }
76 },
77 "spacing": {
78 "margin": true,
79 "padding": true
80 },
81 "color": {
82 "gradients": true,
83 "link": true,
84 "text": false,
85 "__experimentalDefaultControls": {
86 "background": true,
87 "link": true
88 }
89 },
90 "__experimentalBorder": {
91 "radius": true,
92 "color": true,
93 "width": true,
94 "style": true,
95 "__experimentalDefaultControls": {
96 "radius": true,
97 "color": true,
98 "width": true,
99 "style": true
100 }
101 },
102 "interactivity": true
103 },
104 "editorStyle": "wp-block-file-editor",
105 "style": "wp-block-file"
106 }
107