FEATURE Adding a stroked after block style
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2025-11-26 11:58:35 +01:00
parent ae873507e2
commit 33ff9faa0d
5 changed files with 28 additions and 2 deletions

View File

@ -283,6 +283,14 @@ return array(
'blockVariant' => array(
'type' => 'string',
'default' => 'framed'
),
'blockWidth' => array(
'type' => 'string',
'default' => 'full',
'enum' => array(
'full',
'contained'
)
)
)
),
@ -503,6 +511,12 @@ return array(
'editorStyle' => 'file:./index.css',
'style' => 'file:./style-index.css',
'viewScript' => 'file:./view.js',
'styles' => array(
array(
'name' => 'stroked-after',
'label' => 'Titre + trait '
)
),
'attributes' => array(
'hierarchy' => array(
'type' => 'string',

View File

@ -16,6 +16,12 @@
"editorStyle": "file:./index.css",
"style": "file:./style-index.css",
"viewScript": "file:./view.js",
"styles": [
{
"name": "stroked-after",
"label": "Titre + trait "
}
],
"attributes": {
"hierarchy": {
"type": "string",

View File

@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '63c97536bc9b836b7ef7');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'd4e1ebabc5dcdc5cce1d');

View File

@ -8,7 +8,7 @@
\********************************/
/***/ ((module) => {
module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/heading","version":"0.1.0","title":"Titrage","category":"carhop-blocks","icon":"smiley","description":"Boite de titrage pour la mise en forme d\'éléments de contenu","example":{},"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","attributes":{"hierarchy":{"type":"string","enum":["classic","inverted"],"default":"classic"}}}');
module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/heading","version":"0.1.0","title":"Titrage","category":"carhop-blocks","icon":"smiley","description":"Boite de titrage pour la mise en forme d\'éléments de contenu","example":{},"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","styles":[{"name":"stroked-after","label":"Titre + trait "}],"attributes":{"hierarchy":{"type":"string","enum":["classic","inverted"],"default":"classic"}}}');
/***/ }),

View File

@ -16,6 +16,12 @@
"editorStyle": "file:./index.css",
"style": "file:./style-index.css",
"viewScript": "file:./view.js",
"styles": [
{
"name": "stroked-after",
"label": "Titre + trait "
}
],
"attributes": {
"hierarchy": {
"type": "string",