Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
178 changes: 55 additions & 123 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions themes/10up-block-theme/assets/js/block-extensions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// import './block-filters';
// import './block-styles';
import './block-variations';
6 changes: 6 additions & 0 deletions themes/10up-block-theme/assets/js/block-filters/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* Entry point for block filters.
*/

// Each block that needs filters to be applied, should have it's own file.
// import './button'
6 changes: 6 additions & 0 deletions themes/10up-block-theme/assets/js/block-styles/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* Entry point for block styles.
*/

// Each block that needs custom styles should have it's own file.
// import './button'
7 changes: 7 additions & 0 deletions themes/10up-block-theme/assets/js/block-variations/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* Entry point for block variations.
*/

// Each block that needs variations should have it's own file.
// import './button'
import './unregister-variations';
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import domReady from '@wordpress/dom-ready';
import { unregisterBlockVariation } from '@wordpress/blocks';

domReady(() => {
unregisterBlockVariation('core/heading', 'stretchy-heading');
unregisterBlockVariation('core/paragraph', 'stretchy-paragraph');
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
import './block-collection';
// import './block-filters';
// import './block-styles';
// import './block-variations';
import './block-variations';
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

// Each block that needs variations should have it's own file.
// import './button'
import './unregister-variations';
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import domReady from '@wordpress/dom-ready';
import { unregisterBlockVariation } from '@wordpress/blocks';

domReady(() => {
unregisterBlockVariation('core/heading', 'stretchy-heading');
unregisterBlockVariation('core/paragraph', 'stretchy-paragraph');
});
Loading