Skip to content

Commit

Permalink
Merge pull request #191 from RRZE-Webteam/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
lukasniebler authored Dec 20, 2024
2 parents 3dbc7b7 + 6136748 commit f0b298d
Show file tree
Hide file tree
Showing 48 changed files with 1,671 additions and 856 deletions.
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_style = space
indent_size = 2

[*.php]

[*.{yml,yaml}]
indent_style = space
Expand Down
119 changes: 119 additions & 0 deletions .tours/fixing-existing-blocks.tour
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
{
"$schema": "https://aka.ms/codetour-schema",
"title": "Fixing existing Blocks",
"steps": [
{
"file": "package.json",
"description": "Step 1: Install all required dependencies by changing into the working directory in your terminal and running ```npm install```.",
"line": 38
},
{
"file": "package.json",
"description": "Step 2: Start the development process via ```npm run start``` - If you are finished with your changes, run ```npm run build-all``` (or ```npm run build``` )",
"line": 16
},
{
"file": "package.json",
"description": "Step 3: Make sure to bump up the version number and update it throughout the plugin via ```npm run update-version```. Readme.txt and readme.md need to be updated manually.",
"line": 3
},
{
"file": "src/blocks/alert/edit.tsx",
"description": "Blocks can be always found in the src/blocks-directory.\n\nThis is the Edit.tsx-File. This file controls the Editor behavior of the block.\nWe are using TypeScript to reduce errors during the development process.",
"line": 1
},
{
"file": "src/blocks/alert/editor.scss",
"description": "Styling for the backend. It imports the Frontent Styling partially from src/_shared/scss/alert.",
"line": 1
},
{
"file": "src/blocks/alert/index.tsx",
"description": "The index.tsx brings all together. We can see that we reference the edit.tsx and save.tsx in here",
"line": 35
},
{
"file": "src/blocks/alert/index.tsx",
"description": "We can also see, that there is a Transformation set via transforms.ts",
"line": 44
},
{
"file": "src/blocks/alert/block.json",
"description": "The attributes of the plugin. Whenever you change one of those, make sure that you remember to add a Deprecation via WordPress Deprecation API! This is mandatory (even if it is no fun)",
"line": 9
},
{
"file": "src/blocks/alert/block.json",
"description": "The textdomain of our plugin",
"line": 56
},
{
"file": "src/blocks/alert/save.tsx",
"description": "Our save-Function. It runs every time the Editor autosaves, or whenever a user opens the editor to retrieve the content.\nWhenever you change the save.tsx, remember to add a deprecation Array via WordPress Deprecation API. This is mandatory.\n\nDon't do complex computation inside the save.tsx. Instead rely on the attributes available.",
"line": 14
},
{
"file": "src/blocks/alert/transforms.ts",
"description": "transforms allow conversion from one block to another.",
"line": 22
},
{
"file": "src/blocks/alert/transforms.ts",
"description": "From shortcode [alert] to this block.",
"line": 25
},
{
"file": "src/blocks/alert/transforms.ts",
"description": "Or from paragraph-blocks to this block. Multi-Select allows selection of several paragraphs for example...\n\nThis is not mandatory. But it is nice to have to increase UX",
"line": 87
},
{
"file": "src/blocks/alert/edit.tsx",
"description": "Inside Edit.tsx return-statement we can see what components are used and output inside our block for the Editor-view.",
"line": 92
},
{
"file": "src/blocks/alert/edit.tsx",
"description": "InspectorControls as the Editor Sidebar panel",
"line": 94
},
{
"file": "src/blocks/alert/edit.tsx",
"description": "Containing a StandardColorSwitcher (a custom component)",
"line": 95
},
{
"file": "src/blocks/alert/edit.tsx",
"description": "WordPress' ContrastChecker Component",
"line": 104
},
{
"file": "src/blocks/alert/edit.tsx",
"description": "BlockControls, die Block-Werkzeugleiste über dem Block",
"line": 131
},
{
"file": "src/blocks/alert/edit.tsx",
"description": "Output of inner blocks via InnerBlocks. This allows interacting and adding other blocks inside the block's content.",
"line": 155
},
{
"file": "src/blocks/alert/edit.tsx",
"description": "This is used, to tell the BlockEditor to NOT create a Undo-Layer after updating the attribute.\n\nElse blocks might create a almost endless Undo-Layer-cycle which prevents users from going back via Ctrl+Z ",
"line": 84
},
{
"directory": "src/components",
"description": "All custom written components are stored inside src/components for global use inside the project."
},
{
"directory": "src/stores",
"description": "All custom stores are placed inside src/stores. Redux."
},
{
"file": "package.json",
"description": "Do not forget to ```npm run build-all``` or ```npm run build``` after adding your changes.",
"line": 17
}
]
}
6 changes: 3 additions & 3 deletions assets/css/rrze-elements-blocks.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/blocks/accordion/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'ffd6c375c8d3e6ce2a93');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '39039fc8d7eec7b11b69');
2 changes: 1 addition & 1 deletion build/blocks/accordion/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/blocks/alert/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n', 'wp-primitives'), 'version' => '2a02814b15d442e14fec');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n', 'wp-primitives'), 'version' => '668576fe9525bf90eaa1');
2 changes: 1 addition & 1 deletion build/blocks/alert/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/blocks/collapse/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'd8270c4e63fb7306e6c1');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '07e67d97e3a76ace756e');
4 changes: 2 additions & 2 deletions build/blocks/collapse/index.js

Large diffs are not rendered by default.

18 changes: 3 additions & 15 deletions build/blocks/collapsibles/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,9 @@
"type": "integer",
"default": 2
},
"register": {
"type": "boolean",
"default": false
},
"sameBlockCount": {
"type": "integer",
"default": 0
},
"childrenCount": {
"type": "integer",
"default": 0
},
"previousBlockIds": {
"type": "array",
"default": []
"expandLabel": {
"type": "string",
"default": "Expand All"
}
},
"providesContext": {
Expand Down
2 changes: 1 addition & 1 deletion build/blocks/collapsibles/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-primitives'), 'version' => '5190e7b0c2d7d44f0795');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '4d9b708326a7e9c6516d');
2 changes: 1 addition & 1 deletion build/blocks/collapsibles/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/blocks/columns/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '3cbb0ee79eb360e77d6a');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'd4688bc986f1ea71554e');
2 changes: 1 addition & 1 deletion build/blocks/columns/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/blocks/insertion/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-primitives'), 'version' => '9625425a6563fcebb276');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-primitives'), 'version' => 'aa7cf1097b2206832ed4');
2 changes: 1 addition & 1 deletion build/blocks/insertion/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/blocks/notice/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '1d18a701c8aa15a970ea');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '6a425a3ebf1d9768a4a5');
2 changes: 1 addition & 1 deletion build/blocks/notice/index.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.14] - 2024-12-19

Improved transformation behavior from and to blocks to ease the working process inside the editor.
Fixed an issue, where users with different language settings might get a Block Deprecation inside the editor.

### Added
- [#175 Transformation of Blocks](https://github.com/RRZE-Webteam/rrze-elements-blocks/issues/175)

### Fixed
- [#86 Expand-All-Link Deprecation](https://github.com/RRZE-Webteam/rrze-elements-blocks/issues/176)


## [1.0.13] - 2024-12-13

A new store for managing the jumpNames throughout the Element Block suite minimizes duplicate id's and errors.
Expand Down
Loading

0 comments on commit f0b298d

Please sign in to comment.