@comet/[email protected]
Minor Changes
-
bd562d3: Add
disableForcePromptRoute
option toStackSwitch
This can be useful when a navigation in a switch shouldn't trigger a prompt, e.g., when navigating inside a block.
-
5c06e4b: Reduce
MainContent
padding on mobile -
b918c81: Add support for custom components to
CrudMoreActionsMenu
Example
const CustomAction = () => ( <CrudMoreActionsMenuItem onClick={() => { // Perform action }} > <ListItemIcon> <Favorite /> </ListItemIcon> Custom Action </CrudMoreActionsMenuItem> ); <CrudMoreActionsMenu overallActions={[<CustomAction key="custom-action" />]} />;
Note: Use the
CrudMoreActionsMenuItem
component orCrudMoreActionsMenuContext
to close the menu after clicking an item.
@comet/[email protected]
Patch Changes
- 86c1d59: Set correct editor height when using the
minHeight
option
@comet/[email protected]
Patch Changes
- bd562d3: Prevent router prompt when using a block with subroutes in a form
@comet/[email protected]
Patch Changes
-
f49370a: Improve SVG validation
Following tags are banned in SVGs:
- script
- [new] foreignObject
- [new] use
- [new] image
- [new] animate
- [new] animateMotion
- [new] animateTransform
- [new] set
Following attributes are banned:
- Event handlers (
onload
,onclick
, ...) - [new]
href
andxlink:href
(if the value starts withhttp://
,https://
orjavascript:
)
@comet/[email protected]
Patch Changes
-
f49370a: Improve SVG validation
Following tags are banned in SVGs:
- script
- [new] foreignObject
- [new] use
- [new] image
- [new] animate
- [new] animateMotion
- [new] animateTransform
- [new] set
Following attributes are banned:
- Event handlers (
onload
,onclick
, ...) - [new]
href
andxlink:href
(if the value starts withhttp://
,https://
orjavascript:
)
@comet/[email protected]
Minor Changes
-
f60b636: Extend the
usePreview
-helpersisSelected
andisHovered
with optional partial match support- When
exactMatch
is set totrue
(default), the function checks for exact URL matches. - When
exactMatch
is set tofalse
, the function checks if the selected route starts with the given URL.
- When