-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from colorful-tones/single-block-organization
‼️ BREAKING: Major refactor - simplification
- Loading branch information
Showing
35 changed files
with
154 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'fe5e00eb9597bb99cf08'); | ||
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '552a734820b0ed0f0b13'); |
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php return array('dependencies' => array(), 'version' => 'f285e13fee9805515472'); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/** | ||
* These are the block we'll allow to be inserted | ||
* as a slide. | ||
*/ | ||
export const ALLOWED_BLOCKS = [ | ||
'core/button', | ||
'core/buttons', | ||
'core/cover', | ||
'core/group', | ||
'core/heading', | ||
'core/image', | ||
'core/paragraph', | ||
]; | ||
|
||
/** | ||
* This is the default block we'll use for our slide. | ||
*/ | ||
export const DEFAULT_BLOCK = 'core/cover'; | ||
|
||
/** | ||
* These are the attributes we assign for our DEFAULT_BLOCK. | ||
*/ | ||
export const DEFAULT_BLOCK_ATTRIBUTES = { | ||
align: 'center', | ||
className: 'swiper-slide', | ||
contentPosition: 'bottom left', | ||
dimRatio: 0, | ||
layout: { | ||
type: 'constrained', | ||
}, | ||
}; | ||
|
||
/** | ||
* These are the default inner blocks we'll use | ||
* when our DEFAULT_BLOCK is inserted. | ||
*/ | ||
export const DEFAULT_INNERBLOCK = 'core/paragraph'; | ||
|
||
/** | ||
* These are the attributes we assign for our default | ||
* inner blocks. | ||
*/ | ||
export const DEFAULT_INNERBLOCK_ATTRIBUTES = { | ||
backgroundColor: 'contrast', | ||
fontSize: 'large', | ||
style: { | ||
spacing: { | ||
padding: { | ||
top: '0', | ||
bottom: '0', | ||
left: '0.5rem', | ||
right: '0.5rem', | ||
}, | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.