v26.0.0
·
110 commits
to develop
since this release
- NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/26.0.0
- Storybook: https://62150dbccb2d77003a2a5093-ofpcsrcxgj.chromatic.com/
This is a major release, and it might not be compatible with your current usage of our library. Please read about the necessary changes in the migration section below.
Migration from v25 to v26
- remove deprecated components, properties and imports from your project; if the info cannot be found here, it was already mentioned in the Deprecated sections of past changelogs
- apply changes mentioned in the Changed subsection
Added
<NotAvailable />- simple placeholder element that can be used to display info about missing data
<ContentBlobToggler />forceInlineproperty: force inline rendering
<ContextMenu />togglerSize: replaces the deprecatedtogglerLargeproperty
<MultiSelect />searchListPredicateproperty: allows filtering of the complete list of search options at once- the following optional BlueprintJS properties are now forwarded to override default behaviour:
noResults,createNewItemRendereranditemRenderer isValidNewOptionproperty: checks if an input string is or can be turned into a valid new option
ActivityControlWidget- Support
badgeon activity control menu button.
- Support
- new icons:
module-marketplaceartefact-ruleblock
Fixed
<MultiSelect />- borders of the BlueprintJS
Tagelements were fixed
- borders of the BlueprintJS
extendedTooltipof a handle in the ReactFlow (v12) component does not show the tooltip.<CodeEditor />readOnlyappearance uses same borders like read-only text fields and it does not display a blinking cursor
<Button />,<IconButton />- outlines for focus by keyboard navigation are more recognizable on buttons with colored backgrounds (intent states)
<Tooltip />- given
popoverClassNameis added
- given
Changed
- React and its types were updated to v18, so you may hit incompatibilities if you run it with React 16 or 17.
colorlibrary was upgraded from v4 to v5, so the types changed- if you forward properties, they can no longer have
Coloras their type; useColorLikeinstead
- if you forward properties, they can no longer have
@blueprintjs/corelibrary was updated to v6- if you use an explicit BlueprintJS import in your project, you need to set
"@blueprintjs/core": "6.8.1"and"@blueprintjs/select": "6.1.1" - you may need to update class names in your tests (the new prefix is
bp6-) Toaster.createis now an async function
- if you use an explicit BlueprintJS import in your project, you need to set
<MultiSelect />- by default, if no
searchPredicateorsearchListPredicateis defined, the filtering is done via case-insensitive multi-word matching
- by default, if no
<ProgressBar />,<MenuItem />,<FieldSet />,<FieldItem />,<Tooltip />,<MultiSuggestField />- color for
intent="primary"was changed to our brand color - new option
accentforintentuses the accent color
- color for
<TextField />,<TextArea />- switch primary and accent colors
Deprecated
- support for React Flow v9 is retained for now, but will be removed in v27
<ContextMenu />togglerLarge: replaced by the more versatiletogglerSizeproperty
<MultiSelect />searchPredicate: replaced bysearchListPredicate, which is more efficient in some cases
DefinitionsBlueprint: useIntentBlueprint, this is now usable as type and enum var
Removed
- renamed React Flow types and components; use the new names directly:
NodeContentHandleProps: useHandleDefaultPropsReactFlow: useReactFlowExtendedMiniMapV9Props,MiniMapV9,MiniMapV12PropsandMiniMapV12: useMiniMapPropsandMiniMap; useflowVersionif the React Flow version is not recognized automaticallyEdgeDefaultV9andEdgeDefaultV12: useEdgeDefaultEdgeDefs: useReactFlowMarkers
autoCompleteFieldUtils: usesuggestFieldUtilsCodeMirror.outerDivAttributes: use all properties directly onCodeEditorMultiSuggestField.ofType: use<MultiSuggestField<TYPE>>StringPreviewContentBlobToggler.firstNonEmptyLineOnly: useuseOnly="firstNonEmptyLine"- color configuration is no longer possible via the previously used SCSS variables
$eccgui-color-primary,$eccgui-color-primary-contrast,$eccgui-color-accent,$eccgui-color-accent-contrast,
$eccgui-color-success-text,$eccgui-color-success-background,$eccgui-color-info-text,$eccgui-color-info-background,
$eccgui-color-warning-text,$eccgui-color-warning-background,$eccgui-color-danger-text,$eccgui-color-danger-background- use
$eccgui-color-palette-lightinstead