| @@ -1,43 +1,127 @@ | ||
| 1 | 1 | { |
| 2 | - "$schema": "https://json.schemastore.org/block.json", | |
| 3 | - "apiVersion": 2, | |
| 4 | - "name": "simpletoc/toc", | |
| 5 | - "version": "5.0.2", | |
| 6 | - "title": "SimpleTOC", | |
| 7 | - "category": "layout", | |
| 8 | - "keywords": [ "TOC", "Table of Contents", "SimpleTOC", "Inhaltsverzeichnis" ], | |
| 9 | - "icon": "simpletocicon", | |
| 10 | - "description": "Adds a Table of Contents.", | |
| 11 | - "attributes": { | |
| 12 | - "no_title": { | |
| 13 | - "type": "boolean", | |
| 14 | - "default": false | |
| 15 | - }, | |
| 16 | - "use_ol": { | |
| 17 | - "type": "boolean", | |
| 18 | - "default": false | |
| 19 | - }, | |
| 20 | - "remove_indent": { | |
| 21 | - "type": "boolean", | |
| 22 | - "default": false | |
| 23 | - }, | |
| 24 | - "add_smooth": { | |
| 25 | - "type": "boolean", | |
| 26 | - "default": false | |
| 27 | - }, | |
| 28 | - "use_absolute_urls": { | |
| 29 | - "type": "boolean", | |
| 30 | - "default": false | |
| 31 | - }, | |
| 32 | - "max_level": { | |
| 33 | - "type": "integer", | |
| 34 | - "default": 6 | |
| 35 | - } | |
| 36 | - }, | |
| 37 | - "supports": { | |
| 38 | - "align": [ "wide" , "full"] | |
| 39 | - }, | |
| 40 | - "textdomain": "simpletoc", | |
| 41 | - "editorScript": "file:index.js", | |
| 42 | - "editorStyle": "file:editor.css" | |
| 2 | + "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | + "apiVersion": 3, | |
| 4 | + "name": "simpletoc/toc", | |
| 5 | + "version": "7.3.1", | |
| 6 | + "title": "SimpleTOC", | |
| 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>", | |
| 9 | + "keywords": [ | |
| 10 | + "TOC", | |
| 11 | + "Table of Contents", | |
| 12 | + "SimpleTOC", | |
| 13 | + "Index" | |
| 14 | + ], | |
| 15 | + "supports": { | |
| 16 | + "align": [ | |
| 17 | + "wide", | |
| 18 | + "full" | |
| 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 | + } | |
| 37 | + }, | |
| 38 | + "styles": [ | |
| 39 | + { | |
| 40 | + "name": "default", | |
| 41 | + "label": "Default", | |
| 42 | + "isDefault": true | |
| 43 | + }, | |
| 44 | + { | |
| 45 | + "name": "boxed", | |
| 46 | + "label": "Box" | |
| 47 | + } | |
| 48 | + ], | |
| 49 | + "description": "Adds a Table of Contents.", | |
| 50 | + "attributes": { | |
| 51 | + "no_title": { | |
| 52 | + "type": "boolean", | |
| 53 | + "default": false | |
| 54 | + }, | |
| 55 | + "title_level": { | |
| 56 | + "type": "integer", | |
| 57 | + "default": 2 | |
| 58 | + }, | |
| 59 | + "title_text": { | |
| 60 | + "type": "string" | |
| 61 | + }, | |
| 62 | + "use_ol": { | |
| 63 | + "type": "boolean", | |
| 64 | + "default": false | |
| 65 | + }, | |
| 66 | + "remove_indent": { | |
| 67 | + "type": "boolean", | |
| 68 | + "default": false | |
| 69 | + }, | |
| 70 | + "add_smooth": { | |
| 71 | + "type": "boolean", | |
| 72 | + "default": false | |
| 73 | + }, | |
| 74 | + "use_absolute_urls": { | |
| 75 | + "type": "boolean", | |
| 76 | + "default": false | |
| 77 | + }, | |
| 78 | + "max_level": { | |
| 79 | + "type": "integer", | |
| 80 | + "default": 6 | |
| 81 | + }, | |
| 82 | + "min_level": { | |
| 83 | + "type": "integer", | |
| 84 | + "default": 1 | |
| 85 | + }, | |
| 86 | + "updated": { | |
| 87 | + "type": "integer" | |
| 88 | + }, | |
| 89 | + "accordion": { | |
| 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", | |
| 110 | + "default": true | |
| 111 | + }, | |
| 112 | + "hideTOC": { | |
| 113 | + "type": "boolean", | |
| 114 | + "default": false, | |
| 115 | + "role": "local" | |
| 116 | + }, | |
| 117 | + "sidebar_style": { | |
| 118 | + "type": "boolean", | |
| 119 | + "default": false, | |
| 120 | + "role": "local" | |
| 121 | + } | |
| 122 | + }, | |
| 123 | + "textdomain": "simpletoc", | |
| 124 | + "editorScript": "file:./index.js", | |
| 125 | + "style": "file:./style-index.css", | |
| 126 | + "editorStyle": "file:./index.css" | |
| 43 | 127 | } |