Skip to content

Commit 5f32b92

Browse files
committed
Release 7.0.0 with configurable box style
1 parent 3e816e6 commit 5f32b92

15 files changed

Lines changed: 2368 additions & 629 deletions

build/block.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://schemas.wp.org/trunk/block.json",
33
"apiVersion": 3,
44
"name": "simpletoc/toc",
5-
"version": "6.9.2",
5+
"version": "7.0.0",
66
"title": "SimpleTOC",
77
"category": "layout",
88
"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>",
@@ -70,12 +70,20 @@
7070
"type": "boolean",
7171
"default": false
7272
},
73+
"box_style": {
74+
"type": "boolean",
75+
"default": false
76+
},
77+
"box_color": {
78+
"type": "string"
79+
},
7380
"autoupdate": {
7481
"type": "boolean",
7582
"default": true
7683
}
7784
},
7885
"textdomain": "simpletoc",
7986
"editorScript": "file:index.js",
87+
"style": "file:style-index.css",
8088
"editorStyle": "file:index.css"
8189
}

build/index.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => '59b05e9e12810bb43657');
1+
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => 'a4ade5f03c1b37ebe68f');

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/style-index-rtl.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.simpletoc.has-simpletoc-box-style{padding:1em 1em .5em}.simpletoc.has-simpletoc-box-style .simpletoc-title{font-size:1.6rem;margin:0}

build/style-index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.simpletoc.has-simpletoc-box-style{padding:1em 1em .5em}.simpletoc.has-simpletoc-box-style .simpletoc-title{font-size:1.6rem;margin:0}

changelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,4 @@
104104
* Feature: Change the TOC headline in the block options. Thank you Philipp Stracker!
105105

106106
= 5.0.17 =
107-
* Feature: Support for custom Anchor IDs in headings. Thank you Matthias Altmann!
107+
* Feature: Support for custom Anchor IDs in headings. Thank you Matthias Altmann!

0 commit comments

Comments
 (0)