author | ymh <ymh.work@gmail.com> |
Fri, 05 Sep 2025 18:40:08 +0200 | |
changeset 21 | 48c4eec2b7e6 |
parent 19 | 3d72ae0968f4 |
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/avatar", |
5 |
"title": "Avatar", |
|
6 |
"category": "theme", |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
7 |
"description": "Add a user’s avatar.", |
19 | 8 |
"textdomain": "default", |
9 |
"attributes": { |
|
10 |
"userId": { |
|
11 |
"type": "number" |
|
12 |
}, |
|
13 |
"size": { |
|
14 |
"type": "number", |
|
15 |
"default": 96 |
|
16 |
}, |
|
17 |
"isLink": { |
|
18 |
"type": "boolean", |
|
19 |
"default": false |
|
20 |
}, |
|
21 |
"linkTarget": { |
|
22 |
"type": "string", |
|
23 |
"default": "_self" |
|
24 |
} |
|
25 |
}, |
|
26 |
"usesContext": [ "postType", "postId", "commentId" ], |
|
27 |
"supports": { |
|
28 |
"html": false, |
|
29 |
"align": true, |
|
30 |
"alignWide": false, |
|
31 |
"spacing": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
32 |
"margin": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
33 |
"padding": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
34 |
"__experimentalDefaultControls": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
35 |
"margin": false, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
36 |
"padding": false |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
37 |
} |
19 | 38 |
}, |
39 |
"__experimentalBorder": { |
|
40 |
"__experimentalSkipSerialization": true, |
|
41 |
"radius": true, |
|
42 |
"width": true, |
|
43 |
"color": true, |
|
44 |
"style": true, |
|
45 |
"__experimentalDefaultControls": { |
|
46 |
"radius": true |
|
47 |
} |
|
48 |
}, |
|
49 |
"color": { |
|
50 |
"text": false, |
|
51 |
"background": false, |
|
52 |
"__experimentalDuotone": "img" |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
53 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
54 |
"interactivity": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
55 |
"clientNavigation": true |
19 | 56 |
} |
57 |
}, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
58 |
"selectors": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
59 |
"border": ".wp-block-avatar img" |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
60 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
61 |
"editorStyle": "wp-block-avatar-editor", |
19 | 62 |
"style": "wp-block-avatar" |
63 |
} |