Skip to content

Commit 2fbf2a9

Browse files
committed
updated dep
1 parent 674ec6b commit 2fbf2a9

File tree

8 files changed

+900
-796
lines changed

8 files changed

+900
-796
lines changed

build/block.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://json.schemastore.org/block.json",
33
"apiVersion": 2,
44
"name": "simpletoc/toc",
5-
"version": "6.4.4",
5+
"version": "6.5.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>",

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', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => '6b33a5d6da4168bdbcb6');
1+
<?php return array('dependencies' => array('react', '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' => '8e3d66c0457c4a3ae69b');

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.

package-lock.json

Lines changed: 884 additions & 783 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simpletoc",
3-
"version": "6.4.4",
3+
"version": "6.5.0",
44
"author": "Marc Tönsing",
55
"description": "SEO-friendly Table of Contents Gutenberg block. No JavaScript and no CSS means faster loading.",
66
"main": "build/index.js",
@@ -29,12 +29,12 @@
2929
"wp-int": "npm install @wordpress/scripts --save-dev --save-exact @wordpress/scripts"
3030
},
3131
"devDependencies": {
32-
"@wordpress/env": "^9.10.0",
33-
"@wordpress/scripts": "^27.9.0"
32+
"@wordpress/env": "^10.4.0",
33+
"@wordpress/scripts": "^28.4.0"
3434
},
3535
"dependencies": {
36-
"@wordpress/i18n": "^4.58.0",
37-
"@wordpress/icons": "^9.49.0",
38-
"@wordpress/server-side-render": "^4.35.0"
36+
"@wordpress/i18n": "^5.4.0",
37+
"@wordpress/icons": "^10.4.0",
38+
"@wordpress/server-side-render": "^5.4.0"
3939
}
4040
}

plugin.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: SimpleTOC - Table of Contents Block
55
* Plugin URI: https://marc.tv/simpletoc-wordpress-inhaltsverzeichnis-plugin-gutenberg/
66
* Description: SEO-friendly Table of Contents Gutenberg block. No JavaScript and no CSS means faster loading.
7-
* Version: 6.4.4
7+
* Version: 6.5.0
88
* Author: Marc Tönsing
99
* Author URI: https://toensing.com
1010
* Text Domain: simpletoc
@@ -677,11 +677,14 @@ function add_accordion_start($html, $attributes, $itemcount, $alignclass)
677677
// Check if accordion is enabled either through the function arguments or the options
678678
$isAccordionEnabled = $attributes['accordion'] || get_option('simpletoc_accordion_enabled') == 1;
679679
$isHiddenEnabled = $attributes['hidden'];
680+
$is_backend = defined('REST_REQUEST') && REST_REQUEST && 'edit' === filter_input(INPUT_GET, 'context');
680681

681682
// Start and end HTML for accordion, if enabled
682683
$accordionStart = '';
683684
if ($isAccordionEnabled) {
684-
enqueue_accordion_frontend();
685+
if(!$is_backend) {
686+
//enqueue_accordion_frontend();
687+
}
685688
$titleText = esc_html(trim($attributes['title_text'])) ?: __('Table of Contents', 'simpletoc');
686689
$accordionStart = '<h2 style="margin: 0;"><button type="button" aria-expanded="false" aria-controls="simpletoc-content-container" class="simpletoc-collapsible">' . $titleText . '<span class="simpletoc-icon" aria-hidden="true"></span></button></h2><div id="simpletoc-content-container" class="simpletoc-content">';
687690
}

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: TOC, Table of Contents, Gutenberg, block, FAQ
44
Requires at least: 5.9
55
Donate link: https://marc.tv/out/donate
66
Tested up to: 6.5
7-
Stable tag: 6.4.4
7+
Stable tag: 6.5.0
88
Requires PHP: 7.0
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html

src/block.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://json.schemastore.org/block.json",
33
"apiVersion": 2,
44
"name": "simpletoc/toc",
5-
"version": "6.4.4",
5+
"version": "6.5.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>",

0 commit comments

Comments
 (0)