author | ymh <ymh.work@gmail.com> |
Mon, 08 Sep 2025 19:44:41 +0200 | |
changeset 23 | 417f20492bf7 |
parent 21 | 48c4eec2b7e6 |
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/navigation", |
5 |
"title": "Navigation", |
|
6 |
"category": "theme", |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
7 |
"allowedBlocks": [ |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
8 |
"core/navigation-link", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
9 |
"core/search", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
10 |
"core/social-links", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
11 |
"core/page-list", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
12 |
"core/spacer", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
13 |
"core/home-link", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
14 |
"core/site-title", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
15 |
"core/site-logo", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
16 |
"core/navigation-submenu", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
17 |
"core/loginout", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
18 |
"core/buttons" |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
19 |
], |
19 | 20 |
"description": "A collection of blocks that allow visitors to get around your site.", |
21 |
"keywords": [ "menu", "navigation", "links" ], |
|
22 |
"textdomain": "default", |
|
23 |
"attributes": { |
|
24 |
"ref": { |
|
25 |
"type": "number" |
|
26 |
}, |
|
27 |
"textColor": { |
|
28 |
"type": "string" |
|
29 |
}, |
|
30 |
"customTextColor": { |
|
31 |
"type": "string" |
|
32 |
}, |
|
33 |
"rgbTextColor": { |
|
34 |
"type": "string" |
|
35 |
}, |
|
36 |
"backgroundColor": { |
|
37 |
"type": "string" |
|
38 |
}, |
|
39 |
"customBackgroundColor": { |
|
40 |
"type": "string" |
|
41 |
}, |
|
42 |
"rgbBackgroundColor": { |
|
43 |
"type": "string" |
|
44 |
}, |
|
45 |
"showSubmenuIcon": { |
|
46 |
"type": "boolean", |
|
47 |
"default": true |
|
48 |
}, |
|
49 |
"openSubmenusOnClick": { |
|
50 |
"type": "boolean", |
|
51 |
"default": false |
|
52 |
}, |
|
53 |
"overlayMenu": { |
|
54 |
"type": "string", |
|
55 |
"default": "mobile" |
|
56 |
}, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
57 |
"icon": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
58 |
"type": "string", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
59 |
"default": "handle" |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
60 |
}, |
19 | 61 |
"hasIcon": { |
62 |
"type": "boolean", |
|
63 |
"default": true |
|
64 |
}, |
|
65 |
"__unstableLocation": { |
|
66 |
"type": "string" |
|
67 |
}, |
|
68 |
"overlayBackgroundColor": { |
|
69 |
"type": "string" |
|
70 |
}, |
|
71 |
"customOverlayBackgroundColor": { |
|
72 |
"type": "string" |
|
73 |
}, |
|
74 |
"overlayTextColor": { |
|
75 |
"type": "string" |
|
76 |
}, |
|
77 |
"customOverlayTextColor": { |
|
78 |
"type": "string" |
|
79 |
}, |
|
80 |
"maxNestingLevel": { |
|
81 |
"type": "number", |
|
82 |
"default": 5 |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
83 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
84 |
"templateLock": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
85 |
"type": [ "string", "boolean" ], |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
86 |
"enum": [ "all", "insert", "contentOnly", false ] |
19 | 87 |
} |
88 |
}, |
|
89 |
"providesContext": { |
|
90 |
"textColor": "textColor", |
|
91 |
"customTextColor": "customTextColor", |
|
92 |
"backgroundColor": "backgroundColor", |
|
93 |
"customBackgroundColor": "customBackgroundColor", |
|
94 |
"overlayTextColor": "overlayTextColor", |
|
95 |
"customOverlayTextColor": "customOverlayTextColor", |
|
96 |
"overlayBackgroundColor": "overlayBackgroundColor", |
|
97 |
"customOverlayBackgroundColor": "customOverlayBackgroundColor", |
|
98 |
"fontSize": "fontSize", |
|
99 |
"customFontSize": "customFontSize", |
|
100 |
"showSubmenuIcon": "showSubmenuIcon", |
|
101 |
"openSubmenusOnClick": "openSubmenusOnClick", |
|
102 |
"style": "style", |
|
103 |
"maxNestingLevel": "maxNestingLevel" |
|
104 |
}, |
|
105 |
"supports": { |
|
106 |
"align": [ "wide", "full" ], |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
107 |
"ariaLabel": true, |
19 | 108 |
"html": false, |
109 |
"inserter": true, |
|
110 |
"typography": { |
|
111 |
"fontSize": true, |
|
112 |
"lineHeight": true, |
|
113 |
"__experimentalFontStyle": true, |
|
114 |
"__experimentalFontWeight": true, |
|
115 |
"__experimentalTextTransform": true, |
|
116 |
"__experimentalFontFamily": true, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
117 |
"__experimentalLetterSpacing": true, |
19 | 118 |
"__experimentalTextDecoration": true, |
119 |
"__experimentalSkipSerialization": [ "textDecoration" ], |
|
120 |
"__experimentalDefaultControls": { |
|
121 |
"fontSize": true |
|
122 |
} |
|
123 |
}, |
|
124 |
"spacing": { |
|
125 |
"blockGap": true, |
|
126 |
"units": [ "px", "em", "rem", "vh", "vw" ], |
|
127 |
"__experimentalDefaultControls": { |
|
128 |
"blockGap": true |
|
129 |
} |
|
130 |
}, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
131 |
"layout": { |
19 | 132 |
"allowSwitching": false, |
133 |
"allowInheriting": false, |
|
134 |
"allowVerticalAlignment": false, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
135 |
"allowSizingOnChildren": true, |
19 | 136 |
"default": { |
137 |
"type": "flex" |
|
138 |
} |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
139 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
140 |
"interactivity": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
141 |
"renaming": false |
19 | 142 |
}, |
143 |
"editorStyle": "wp-block-navigation-editor", |
|
144 |
"style": "wp-block-navigation" |
|
145 |
} |