-
Notifications
You must be signed in to change notification settings - Fork 796
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor beta blocks registration (#32815)
* [not verified] Enable block registration by specifying block.json path * [not verified] Add test for registering block by its metadata file * [not verified] Fix failing test * [not verified] Refactor: register business hours block with block.json path * [not verified] Move logic to render a block icon on the client * [not verified] Remove deprecated file * [not verified] Pass package build dir to get_path_to_block_metadata * [not verified] Move block icon helpers to shared-extension-utils package * [not verified] Add missing color-studio dependency to shared-extension-utils * [not verified] Add missing jetpack-constants dep to blocks package * [not verified] Fix monorepo package version refs * [not verified] Remove color studio dep in shared-extensions-util * [not verified] Bump yoast/phpunit-polyfills version in blocks package * [not verified] Remove unhelpful changelogs * [not verified] Add missing color-studio dependency to shared-extension-utils * [not verified] Add tests for blocks helpers functions * [not verified] Refactor Amazon block registration * [not verified] Refactor AI Chat block registration * [not verified] Refactor Blogroll block registration * [not verified] Refactor Recipe block registration * [not verified] Refactor Create with Voice block registration * [not verified] Fix missing imports in Recipe child blocks * [not verified] Refactor Docs blocks registration * [not verified] Fix Amazon icon * [not verified] Use CSS logical properties for i18n * [not verified] Fix Recipe block not correctly displayed in inserter * [not verified] Fix Amazon icon alignment * [not verified] Fix rebasing error * [not verified] Update path passed to jetpack_register_block * [not verified] Import icon helpers from shared-extension-utils package * [not verified] Update path passed to jetpack_register_block * [not verified] Add changelog * [not verified] Fix failing JS test * [not verified] Add helper to get block's feature name * [not verified] Add changelog * [not verified] Remove color studio dep * [not verified] Add helper to get a block's name * [not verified] Remove deprecated CSS * [not verified] Add missing Blocks::get_block_feature call * [not verified] Remove unnecessary export * [not verified] Fix Google embeds previews * Revert composer.lock
- Loading branch information
1 parent
747fc8d
commit 273fb4c
Showing
54 changed files
with
371 additions
and
728 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
projects/packages/blocks/changelog/refactor-beta-blocks-registration
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,4 @@ | ||
Significance: minor | ||
Type: added | ||
|
||
Helper to get a block's feature name |
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
4 changes: 4 additions & 0 deletions
4
projects/plugins/jetpack/changelog/refactor-beta-blocks-registration
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,4 @@ | ||
Significance: patch | ||
Type: enhancement | ||
|
||
Register beta blocks by specifying path to block.json |
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
6 changes: 0 additions & 6 deletions
6
projects/plugins/jetpack/extensions/blocks/ai-chat/attributes.js
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
14 changes: 11 additions & 3 deletions
14
projects/plugins/jetpack/extensions/blocks/ai-chat/editor.js
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,4 +1,12 @@ | ||
import registerJetpackBlock from '../../shared/register-jetpack-block'; | ||
import { name, settings } from '.'; | ||
import { registerJetpackBlockFromMetadata } from '../../shared/register-jetpack-block'; | ||
import metadata from './block.json'; | ||
import edit from './edit'; | ||
import save from './save'; | ||
|
||
registerJetpackBlock( name, settings ); | ||
import './editor.scss'; | ||
import './components/feedback/style.scss'; | ||
|
||
registerJetpackBlockFromMetadata( metadata, { | ||
edit, | ||
save, | ||
} ); |
57 changes: 0 additions & 57 deletions
57
projects/plugins/jetpack/extensions/blocks/ai-chat/index.js
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
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
44 changes: 0 additions & 44 deletions
44
projects/plugins/jetpack/extensions/blocks/amazon/attributes.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.