-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(react-utils): pass
blockType
to block, context
always as obj…
…ect & export new types - `blockType` is now passed to block component. - Adapter argument `additionalData` has been renamed to `context` - Adapter argument `context` is now always an object containing `index` & additinal keys one provides to the renderer. - Export new `BlockTypeMap` & `BlockAdapter` types.
- Loading branch information
Showing
4 changed files
with
49 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@noaignite/react-utils': minor | ||
--- | ||
|
||
createRenderBlock - `blockType` is now passed to block component |
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,5 @@ | ||
--- | ||
'@noaignite/react-utils': minor | ||
--- | ||
|
||
createRenderBlock - adapter `context` argument (prev `additionalData`) is now always an object |
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,5 @@ | ||
--- | ||
'@noaignite/react-utils': minor | ||
--- | ||
|
||
createRenderBlock - export new `BlockTypeMap` & `BlockAdapter` types |
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