Skip to content

Commit 860efa0

Browse files
authored
Merge pull request #71 from liip/fix/update-dependencies
fix(): Update dependencies
2 parents 3aaa95c + 2993f9b commit 860efa0

19 files changed

+5450
-4994
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ trim_trailing_whitespace = true
1414
indent_style = tab
1515
indent_size = 4
1616

17-
[*.{yml,json}]
17+
[*.yml]
1818
indent_style = space
1919
indent_size = 2
2020

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules
22
vendor
33
build
4-
wordpress
4+
!.*.js

.github/workflows/lint-test-deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
run: npm run lint
2626

2727
- name: Run PHP linter
28-
run: npm run lint:php
28+
run: |
29+
npm run wp-env start
30+
npm run lint:php
2931
3032
tests:
3133
name: Tests

.markdownlintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
build
22
node_modules
33
vendor
4-
wordpress

.stylelintrc.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
{
2-
"extends": "stylelint-config-wordpress",
2+
"extends": "@wordpress/stylelint-config",
33
"rules": {
44
"at-rule-empty-line-before": null,
55
"at-rule-no-unknown": null,
66
"comment-empty-line-before": null,
7-
"declaration-property-unit-whitelist": null,
87
"font-weight-notation": null,
98
"max-line-length": null,
109
"no-descending-specificity": null,
11-
"no-duplicate-selectors": null,
1210
"rule-empty-line-before": null,
1311
"selector-class-pattern": null,
1412
"value-keyword-case": null

.wp-env.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
2-
"core": "https://wordpress.org/wordpress-5.6-RC1.zip",
3-
"plugins": [ "." ],
4-
"mappings": {
5-
"wp-content/plugins/wp-bootstrap-blocks-test-plugins": "./e2e-tests/plugins"
6-
}
2+
"core": "https://wordpress.org/wordpress-5.7-RC1.zip",
3+
"plugins": [ "." ],
4+
"env": {
5+
"tests": {
6+
"mappings": {
7+
"wp-content/plugins/wp-bootstrap-blocks-test-plugins": "./e2e-tests/plugins"
8+
}
9+
}
10+
}
711
}

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ You can copy the original template from `wp-bootstrap-blocks/src/templates/<bloc
9595

9696
## PHP Filters
9797

98+
The plugin provides the following PHP filters.
99+
Please visit the following page to get more information about PHP filters: <https://developer.wordpress.org/reference/functions/add_filter/>.
100+
98101
### wp_bootstrap_blocks_template_path
99102

100103
Changes the default theme directory name (`wp-bootstrap-blocks/`).
@@ -436,6 +439,22 @@ function my_after_plugin_update( $new_version, $old_version ) {
436439

437440
## JavaScript Filters
438441

442+
The plugin provides the following JavaScript filters.
443+
They can be used by enqueuing a custom JavaScript file which implements those filters.
444+
445+
Example:
446+
447+
If you have a script called `block-filters.js` inside your theme root you can enqueue it by adding the following code to your `functions.php` file.
448+
449+
```php
450+
function mytheme_enqueue_block_editor_assets() {
451+
wp_enqueue_script( 'block-filters', get_stylesheet_directory_uri() . '/block-filters.js', array( 'wp-hooks' ), '1.0.0', true );
452+
}
453+
add_action( 'enqueue_block_editor_assets', 'mytheme_enqueue_block_editor_assets' );
454+
```
455+
456+
Please visit the following page to get further instructions on how to use JavaScript filters: <https://developer.wordpress.org/block-editor/developers/filters/block-filters/>.
457+
439458
### wpBootstrapBlocks.button.styleOptions
440459

441460
Modify available button styles.

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('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '5080490999c31af29f092309d5e5ba51');
1+
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '3a27ed384c3dcb99453d681ff5156a5b');

build/index.css

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

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.

0 commit comments

Comments
 (0)