equal
deleted
inserted
replaced
1 { |
1 { |
2 "$schema": "https://schemas.wp.org/trunk/block.json", |
2 "$schema": "https://schemas.wp.org/trunk/block.json", |
3 "apiVersion": 2, |
3 "apiVersion": 3, |
4 "name": "core/query-pagination", |
4 "name": "core/query-pagination", |
5 "title": "Pagination", |
5 "title": "Pagination", |
6 "category": "theme", |
6 "category": "theme", |
7 "parent": [ "core/query" ], |
7 "ancestor": [ "core/query" ], |
|
8 "allowedBlocks": [ |
|
9 "core/query-pagination-previous", |
|
10 "core/query-pagination-numbers", |
|
11 "core/query-pagination-next" |
|
12 ], |
8 "description": "Displays a paginated navigation to next/previous set of posts, when applicable.", |
13 "description": "Displays a paginated navigation to next/previous set of posts, when applicable.", |
9 "textdomain": "default", |
14 "textdomain": "default", |
10 "attributes": { |
15 "attributes": { |
11 "paginationArrow": { |
16 "paginationArrow": { |
12 "type": "string", |
17 "type": "string", |
13 "default": "none" |
18 "default": "none" |
|
19 }, |
|
20 "showLabel": { |
|
21 "type": "boolean", |
|
22 "default": true |
14 } |
23 } |
15 }, |
24 }, |
16 "usesContext": [ "queryId", "query" ], |
25 "usesContext": [ "queryId", "query" ], |
17 "providesContext": { |
26 "providesContext": { |
18 "paginationArrow": "paginationArrow" |
27 "paginationArrow": "paginationArrow", |
|
28 "showLabel": "showLabel" |
19 }, |
29 }, |
20 "supports": { |
30 "supports": { |
21 "align": true, |
31 "align": true, |
22 "reusable": false, |
32 "reusable": false, |
23 "html": false, |
33 "html": false, |
28 "background": true, |
38 "background": true, |
29 "text": true, |
39 "text": true, |
30 "link": true |
40 "link": true |
31 } |
41 } |
32 }, |
42 }, |
33 "__experimentalLayout": { |
43 "layout": { |
34 "allowSwitching": false, |
44 "allowSwitching": false, |
35 "allowInheriting": false, |
45 "allowInheriting": false, |
36 "default": { |
46 "default": { |
37 "type": "flex" |
47 "type": "flex" |
38 } |
48 } |
|
49 }, |
|
50 "typography": { |
|
51 "fontSize": true, |
|
52 "lineHeight": true, |
|
53 "__experimentalFontFamily": true, |
|
54 "__experimentalFontWeight": true, |
|
55 "__experimentalFontStyle": true, |
|
56 "__experimentalTextTransform": true, |
|
57 "__experimentalTextDecoration": true, |
|
58 "__experimentalLetterSpacing": true, |
|
59 "__experimentalDefaultControls": { |
|
60 "fontSize": true |
|
61 } |
|
62 }, |
|
63 "interactivity": { |
|
64 "clientNavigation": true |
39 } |
65 } |
40 }, |
66 }, |
41 "editorStyle": "wp-block-query-pagination-editor", |
67 "editorStyle": "wp-block-query-pagination-editor", |
42 "style": "wp-block-query-pagination" |
68 "style": "wp-block-query-pagination" |
43 } |
69 } |