Releases: eccenca/gui-elements
Releases · eccenca/gui-elements
Release list
v26.0.0
- 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
v26.0.0-rc.1
v26.0.0-rc.0
v25.2.0
- NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/25.2.0
- Storybook: https://62150dbccb2d77003a2a5093-vinldlbinr.chromatic.com/
Added
<CodeAutocompleteField />- Add
intentproperty.
- Add
- new icons:
state-confirmed-all
Fixed
<Pagination />- improve breakpoints to display widgets for page size and page number inside smaller containers
- male the breakpoints configurable via SCSS
v25.2.0-rc.0
v25.1.0
- NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/25.1.0
- Storybook: https://62150dbccb2d77003a2a5093-yllzyjdntj.chromatic.com/
Added
<ActivityControlWidget />- Add parameter
activeto activity control action to set theactivestate of its button. - action now can have a
activeandnotificationproperty
- Add parameter
<ApplicationViewability />- component for hiding elements in specific media
<InlineText />- force children to get displayed as inline content
<DecoupledOverlay />- similar to
ContextOverlaycomponent but not directly linked to a React element, it specifies the target in the DOM to get connected lazy
- similar to
<StringPreviewContentBlobToggler />useOnlyproperty: specify if only parts of the content should be used for the shortened preview, this property replacesfirstNonEmptyLineOnly
<ContextOverlay />paddingSizeproperty to add easily some white space
<CodeEditor />- toolbar in
markdownmode provides a user config menu for the editor appearance
- toolbar in
<RadioButton />hideIndicatorproperty: hide the radio inout indicator but click on children can be processed viaonChangeevent
<ColorField />- input component for colors
- uses a subset from the configured color palette by default, but it also allows to enter custom colors
<MultiSuggestField />MultiSuggestFieldSelectionPropsprovidesnewlyRemovedfor callbacks set when removing a selected item
<HtmlContentClock />- inline
codeuses same gray background highlighting like code blocks
- inline
- CSS custom properties
- beside the color palette we now mirror the most important layout configuration variables as CSS custom properties
- new icons:
state-confirmed-allstate-declined-alldata-sourceschemadata-targetschemaoperation-ai-generateoperation-filterresettoggler-pin-emptytoggler-pin-filled
Fixed
<Tag />- create more whitespace inside
smalltag - reduce visual impact of border
- create more whitespace inside
<StringPreviewContentBlobToggler />- take Markdown rendering into account before testing the maximum preview length
<CodeEditor />- fix
disabledproperty update
- fix
<VisualTour />- fix color of buttons to move to previous/next step
- take Markdown rendering into account before testing the maximum preview length
<NodeContent />- header-menu items are vertically centered now
<Link />- stabilize font size for on hover state
- use correct font sizes when
sizeproperty is set
Typography- adjust displaying fallback symbols in different browsers
<CodeMirror />- use the latest provided
onChangefunction
- use the latest provided
<TextField />,<TextArea />- fix emoji false-positives in invisible character detection
<MultiSuggestField />onSelectionnow setsnewlySelectedonly for add actions and no longer sets it to the last element- border of the BlueprintJS
Tagelements were fixed
<Modal />- fix specificity for pointer-events rules on SVG
<Button />- badge is correctly displayed when
badge={0}
- badge is correctly displayed when
- Focus outlines
- we use again bold focus outlines for input elements
- they are also used for clickable elements that are focused via keyboard (tab navigation)
Changed
<MultiSelect />:- Change default filter predicate to match multi-word queries.
<EdgeDefault />- reduce stroke width to only 1px
<CodeMirror />wrapLinesandpreventLineNumberdo not usefalsedefault value but if not set then it will be interpreted asfalse- in this way it can be overwritten by new user config for the markdown mode
- automatically hide user interaction elements in print view
- all application header components except
<WorkspaceHeader /> <CardActions />and<CardOptions />actionOptionsof<ContentGroup />actionsof<Notification /><OverviewItemActions />
- all application header components except
- automatically serialize display of layout elements in print view
<FlexibleLayoutItem /><GridColumn /><PropertyName />and<PropertyValue />
Deprecated
<StringPreviewContentBlobToggler />firstNonEmptyLineOnlywill be removed, is replaced byuseOnly="firstNonEmptyLine"