author | ymh <ymh.work@gmail.com> |
Fri, 05 Sep 2025 18:40:08 +0200 | |
changeset 21 | 48c4eec2b7e6 |
parent 19 | 3d72ae0968f4 |
child 22 | 8c2e4d02f4ef |
permissions | -rw-r--r-- |
19 | 1 |
{ |
2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
3 |
"apiVersion": 3, |
19 | 4 |
"name": "core/post-author", |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
5 |
"title": "Author", |
19 | 6 |
"category": "theme", |
7 |
"description": "Display post author details such as name, avatar, and bio.", |
|
8 |
"textdomain": "default", |
|
9 |
"attributes": { |
|
10 |
"textAlign": { |
|
11 |
"type": "string" |
|
12 |
}, |
|
13 |
"avatarSize": { |
|
14 |
"type": "number", |
|
15 |
"default": 48 |
|
16 |
}, |
|
17 |
"showAvatar": { |
|
18 |
"type": "boolean", |
|
19 |
"default": true |
|
20 |
}, |
|
21 |
"showBio": { |
|
22 |
"type": "boolean" |
|
23 |
}, |
|
24 |
"byline": { |
|
25 |
"type": "string" |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
26 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
27 |
"isLink": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
28 |
"type": "boolean", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
29 |
"default": false |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
30 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
31 |
"linkTarget": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
32 |
"type": "string", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
33 |
"default": "_self" |
19 | 34 |
} |
35 |
}, |
|
36 |
"usesContext": [ "postType", "postId", "queryId" ], |
|
37 |
"supports": { |
|
38 |
"html": false, |
|
39 |
"spacing": { |
|
40 |
"margin": true, |
|
41 |
"padding": true |
|
42 |
}, |
|
43 |
"typography": { |
|
44 |
"fontSize": true, |
|
45 |
"lineHeight": true, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
46 |
"__experimentalFontFamily": true, |
19 | 47 |
"__experimentalFontWeight": true, |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
48 |
"__experimentalFontStyle": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
49 |
"__experimentalTextTransform": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
50 |
"__experimentalTextDecoration": true, |
19 | 51 |
"__experimentalLetterSpacing": true, |
52 |
"__experimentalDefaultControls": { |
|
53 |
"fontSize": true |
|
54 |
} |
|
55 |
}, |
|
56 |
"color": { |
|
57 |
"gradients": true, |
|
58 |
"link": true, |
|
59 |
"__experimentalDuotone": ".wp-block-post-author__avatar img", |
|
60 |
"__experimentalDefaultControls": { |
|
61 |
"background": true, |
|
62 |
"text": true |
|
63 |
} |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
64 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
65 |
"interactivity": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
66 |
"clientNavigation": true |
19 | 67 |
} |
68 |
}, |
|
69 |
"style": "wp-block-post-author" |
|
70 |
} |