| @@ -1,16 +1,16 @@ | ||
| 1 | 1 | { |
| 2 | - "$schema": "https://json.schemastore.org/block.json", | |
| 3 | - "apiVersion": 2, | |
| 2 | + "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | + "apiVersion": 3, | |
| 4 | 4 | "name": "simpletoc/toc", |
| 5 | - "version": "5.0.32", | |
| 5 | + "version": "7.3.1", | |
| 6 | 6 | "title": "SimpleTOC", |
| 7 | 7 | "category": "layout", |
| 8 | + "icon": "<svg clip-rule='evenodd' fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2' viewBox='0 0 500 500' xmlns='http://www.w3.org/2000/svg'><path d='m365.983 78.248c2.72-32.415 29.921-57.908 63.029-57.908 34.91 0 63.253 28.342 63.253 63.252s-28.343 63.252-63.253 63.252v269.582c0 25.232-20.485 45.718-45.718 45.718h-313.62c-25.233 0-45.719-20.486-45.719-45.718v-292.46c0-25.233 20.486-45.718 45.719-45.718z' fill='#070D0D'/><g fill='#fff'><path d='m423.898 112.744v-24.188h-24.008v-10.108h24.008v-24.008h10.229v24.008h24.008v10.108h-24.008v24.188z'/><path d='m120.04 403.105c-16.883 0-30.511-13.719-30.511-30.714 0-16.79 13.628-30.714 30.511-30.714 16.679 0 30.511 13.924 30.511 30.714 0 16.995-13.832 30.714-30.511 30.714z'/><path d='m170.891 362.153h183.063v20.476h-183.063z'/><path d='m120.04 300.725c-16.883 0-30.511-13.719-30.511-30.714 0-16.79 13.628-30.714 30.511-30.714 16.679 0 30.511 13.924 30.511 30.714 0 16.995-13.832 30.714-30.511 30.714z'/><path d='m170.891 259.773h183.063v20.476h-183.063z'/><path d='m120.04 198.345c-16.883 0-30.511-13.719-30.511-30.714 0-16.791 13.628-30.714 30.511-30.714 16.679 0 30.511 13.923 30.511 30.714 0 16.995-13.832 30.714-30.511 30.714z'/><path d='m170.891 157.393h183.063v20.476h-183.063z'/></g></svg>", | |
| 8 | 9 | "keywords": [ |
| 9 | 10 | "TOC", |
| 10 | 11 | "Table of Contents", |
| 11 | 12 | "SimpleTOC", |
| 12 | - "Inhaltsverzeichnis", | |
| 13 | 13 | "Index" |
| 14 | 14 | ], |
| 15 | 15 | "supports": { |
| 16 | 16 | "align": [ |
| @@ -15,11 +15,38 @@ | ||
| 15 | 15 | "supports": { |
| 16 | 16 | "align": [ |
| 17 | 17 | "wide", |
| 18 | 18 | "full" |
| 19 | - ] | |
| 19 | + ], | |
| 20 | + "color": { | |
| 21 | + "text": true, | |
| 22 | + "background": true, | |
| 23 | + "link": true, | |
| 24 | + "gradients": false | |
| 25 | + }, | |
| 26 | + "spacing": { | |
| 27 | + "margin": [ | |
| 28 | + "top", | |
| 29 | + "bottom" | |
| 30 | + ], | |
| 31 | + "padding": true | |
| 32 | + }, | |
| 33 | + "typography": { | |
| 34 | + "fontSize": true, | |
| 35 | + "lineHeight": true | |
| 36 | + } | |
| 20 | 37 | }, |
| 21 | - "icon": "simpletocicon", | |
| 38 | + "styles": [ | |
| 39 | + { | |
| 40 | + "name": "default", | |
| 41 | + "label": "Default", | |
| 42 | + "isDefault": true | |
| 43 | + }, | |
| 44 | + { | |
| 45 | + "name": "boxed", | |
| 46 | + "label": "Box" | |
| 47 | + } | |
| 48 | + ], | |
| 22 | 49 | "description": "Adds a Table of Contents.", |
| 23 | 50 | "attributes": { |
| 24 | 51 | "no_title": { |
| 25 | 52 | "type": "boolean", |
| @@ -24,8 +51,12 @@ | ||
| 24 | 51 | "no_title": { |
| 25 | 52 | "type": "boolean", |
| 26 | 53 | "default": false |
| 27 | 54 | }, |
| 55 | + "title_level": { | |
| 56 | + "type": "integer", | |
| 57 | + "default": 2 | |
| 58 | + }, | |
| 28 | 59 | "title_text": { |
| 29 | 60 | "type": "string" |
| 30 | 61 | }, |
| 31 | 62 | "use_ol": { |
| @@ -51,16 +82,46 @@ | ||
| 51 | 82 | "min_level": { |
| 52 | 83 | "type": "integer", |
| 53 | 84 | "default": 1 |
| 54 | 85 | }, |
| 55 | - "autorefresh": { | |
| 86 | + "updated": { | |
| 87 | + "type": "integer" | |
| 88 | + }, | |
| 89 | + "accordion": { | |
| 56 | 90 | "type": "boolean", |
| 91 | + "default": false | |
| 92 | + }, | |
| 93 | + "hidden": { | |
| 94 | + "type": "boolean", | |
| 95 | + "default": false | |
| 96 | + }, | |
| 97 | + "wrapper": { | |
| 98 | + "type": "boolean", | |
| 99 | + "default": false | |
| 100 | + }, | |
| 101 | + "box_style": { | |
| 102 | + "type": "boolean", | |
| 103 | + "default": false | |
| 104 | + }, | |
| 105 | + "box_color": { | |
| 106 | + "type": "string" | |
| 107 | + }, | |
| 108 | + "autoupdate": { | |
| 109 | + "type": "boolean", | |
| 57 | 110 | "default": true |
| 58 | 111 | }, |
| 59 | - "updated": { | |
| 60 | - "type": "integer" | |
| 112 | + "hideTOC": { | |
| 113 | + "type": "boolean", | |
| 114 | + "default": false, | |
| 115 | + "role": "local" | |
| 116 | + }, | |
| 117 | + "sidebar_style": { | |
| 118 | + "type": "boolean", | |
| 119 | + "default": false, | |
| 120 | + "role": "local" | |
| 61 | 121 | } |
| 62 | 122 | }, |
| 63 | 123 | "textdomain": "simpletoc", |
| 64 | - "editorScript": "file:index.js", | |
| 65 | - "editorStyle": "file:editor.css" | |
| 124 | + "editorScript": "file:./index.js", | |
| 125 | + "style": "file:./style-index.css", | |
| 126 | + "editorStyle": "file:./index.css" | |
| 66 | 127 | } |