Releases: eccenca/gui-elements
Releases · eccenca/gui-elements
v25.0.0-rc.1
v25.0.0-rc.0
v24.4.1
- NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/24.4.1
- Storybook: https://62150dbccb2d77003a2a5093-nrruohraue.chromatic.com/
Fixed
- React flow v12:
- add missing styles from react flow library to ensure proper functionality of new connection lines
<Tooltip />- re-check hover state after swapping the placeholder before triggering the event bubbling
Changed
<IconButton/>- increase the default delay before swapping the tooltip placeholder of the icon, reducing unwanted swaps because of mouseovers that were not intended
IntentBaseTypesnow available via root export- some
intentproperties support less or more intent types, in case you need to test supported types before, then you can use it directly from the component interface, e.g.TextFieldProps["intent"]
- some
Added
application-colorsanddata-coloricons, both represented by the CarbonColorPaletteicon
v24.3.1
- NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/24.3.1
- Storybook: https://62150dbccb2d77003a2a5093-yyfhokviec.chromatic.com/
Fixed
- React flow v12:
- add missing styles from react flow library to ensure proper functionality of new connection lines
v24.3.1-rc.0
v24.4.0
- NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/24.4.0
- Storybook: https://62150dbccb2d77003a2a5093-kepujteqiu.chromatic.com/
Added
<ExtendedCodeEditor />heightandreadOnlyproperties to forward them to<CodeEditor/>
<CodeAutocompleteField />:outerDivAttributesproperty: allows to set parameter of the container elementheightandreadOnlyproperties to forward them to<ExtendedCodeEditor/>
<ActivityControlWidget />additionalActionsproperty to include other more complex components between the action buttons and the context menu of the widget
<Tooltip />swapPlaceholderDelayproperty to allow configuration of the delay time before the placeholder element is replaced by the actual tooltip component
Fixed
<CodeEditor />- Editor is re-created after certain property changes and is reset, i.e. loses it current state.
- Enter key handling (adding new line) was broken when
onKeyDownis defined.
<CodeAutocompleteField />- First auto-completion item not marked as active when drop down first shown.
- Read-only mode does not work correctly. It is still possible to change the value via pressing Enter (in multiline mode) or clicking the clear button.
Changed
<NodeContent />- prevent start of a react flow drag action of a node when user clicks in the node menu section
Deprecated
<CodeEditor />onChangeproperty: support for(v: any) => voidtype will be exchanged to more specific(v: string) => void
v24.3.0
- NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/24.3.0
- Storybook: https://62150dbccb2d77003a2a5093-tgrptcueay.chromatic.com/
Added
- added support for React Flow v12
<NodeContent />can used withflowVersion="v12"- more v12-only components:
EdgeDefaultV12,NodeDefaultV12,EdgeDefs- they may be removed in future version when v12 elements are available direcly via
<EdgeDefault />and<NodeDefault />
- they may be removed in future version when v12 elements are available direcly via
Deprecated
<EdgeDefaultV12 />and<NodeDefaultV12 />will be removed when React Flow v12 is supported directly by<EdgeDefault />and<NodeDefault />flowVersion:legacyandnextwill be removed/replaced byv##values
v24.2.0
- NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/24.2.0
- Storybook: https://62150dbccb2d77003a2a5093-bgjgsuvrsq.chromatic.com/
Added
<ContextOverlay />usePlaceholderproperty: can be used to display the target but include the component later when the first interaction happens, this can improve performance
<ContextMenu />preventPlaceholderproperty to prevent the default usage of placeholders waiting for the first user interaction before inserting the full context menu
<Tooltip />usePlaceholderproperty: can be used to display the target but include the full component later when the first interaction happens, this can improve performance. It is turned on for text tooltips by default.
<OverviewItemActions />delayDisplayChildrenproperty: set a time (in ms) to delay the actual rendering of elements inside the actions container. When enabled the containingOverviewItemcan be displayed faster. Can be used e.g. to boost performance when renderingOverviewItemActionswithhiddenInteractionsset totrue.delaySkeletonproperty to set the placeholder/skeleton as long as the delayed display is waiting to get processed
<Button />,<FieldItem />,<FieldSet />,<Notification />,<Spinner />intentproperty: align intent state usage with other components
Deprecated
<Markdown />reHypePluginsproperty now usePluggableListfrom the unified package. This may require changes if you previously used plugins not conforming to the stricter unified typings. Backward compatibility with the old plugin list type will be removed in the next major version.
<FieldSet />,<FieldItem />,<MultiSelect />,<Button />hasStatePrimary,hasStateSuccess,hasStateWarningandhasStateDangerproperties will be removed, useintentproperty instead
<Notification />neutral,success,warninganddangerproperties will be removed, useintentproperty instead
<MultiSelect />data-test-idfor clearance button won't be set automatically, only if a test id forMultiSelectis given
Fixed
<CodeAutocompleteField />and<AutoSuggestion />:- Error highlighting is always visible by underlining the respective text
Changed
- some more interfaces are exposed:
IntentBlueprint: BlueprintJS intent types, also available byDefinitionsBlueprintTableDataContainerProps,TableSimpleContainerProps,TableHeadProps,TableBodyProps,TableExpandedRowProps,TableHeaderPropsandDataTableRenderPropsas interfaces for diverse table components
<CodeAutocompleteField />- memorize
handleChangehandler to prevent unwanted re-renders
- memorize
Usage with old application bundlers
Old bundlers like webpack4 do not support the exports field from package.json, so it cannot resolve the correct files that need to be imported from the packages if they do not come with alternate configs like modules or main. Our latest markdown update introduced a few of those packages. So you need to extend your aliases (in webpack4 it is managed in config.resolve.alias) like:
{
"devlop": "devlop/lib/default.js",
"unist-util-visit-parents/do-not-use-color": "unist-util-visit-parents/lib/color.js",
"vfile/do-not-use-conditional-minpath": "vfile/lib/minpath.browser.js",
"vfile/do-not-use-conditional-minproc": "vfile/lib/minproc.browser.js",
"vfile/do-not-use-conditional-minurl": "vfile/lib/minurl.browser.js",
}
If you use Jest then you can use the same aliases for the moduleNameMapper config, if necessary.
v24.2.0-rc.2
v24.1.0
NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/24.1.0
Storybook: https://62150dbccb2d77003a2a5093-xpcrwlmcpf.chromatic.com/
Added
<CardActions />noWrapproperty to display them without wrapping its children on multiple lines
<ContentGroup />component- Manage display of a grouped content section.
- Add info, actions and context annotations by using its properties.
- Can be nested into each other.
<CodeEditor />- implemented support for linting which is enabled via
useLintingpropturtleandjavascriptare currently supported languages for linting
useToolbarproperty to display toolbar if themodeis supported- currently
markdownmode is integrated, including support for headlines<h1-6>,<blockquote>,<code>block and inline,<b>bold,<i>, italic,<del>strike through,<ul>,<ol>and checkbox lists,<a>links and<img>images
- currently
- editor is focused on load if
autoFocusprop is set totrue - implemented support for
disabledstate in code editor - implemented support for
intentstates in code editor
- implemented support for linting which is enabled via
<Label />additionalElementsproperty to display elements at the end of the labelinlineproperty to display the label component as inline block
<MenutItem />tooltipproperty to dislay tooltip on menu item label
<NodeContent />resizeDirectionsto specifiy the axis that can be used to resize the noderesizeMaxDimensionsto add maximum values for resizing height/width
<OverviewItem />hasCardWrapperproperty to use aCardcomponent as wrapper around it, simplifies the process to put it in a box, usecardPropsto forward basic properties to thatCardwrapper
<SimpleDialog />actionsPropsproperty to forwardCardActionsproperties, e.g.noWrap
- New icons:
artefact-task-concatenatetofileartefact-task-pivotartefact-task-unpivotitem-magic-editoperation-format-text-codeoperation-format-text-boldoperation-format-text-italicoperation-format-text-strikethroughoperation-format-list-bulletoperation-format-list-checkedoperation-format-list-numbered
Fixed
<CodeAutocompleteField />:- Code editor resets to initial value on every code editor instance re-init
<CodeEditor />- re-render the component if the
wrapLinesproperty is changed after the component's render - only fire
onChangeevent when the document has actually changed
- re-render the component if the
<OverviewItem />- whitespace after
Depictionelement when theOverviewItemist used withdensityHighandhasSpacing
- whitespace after
<OverviewItemActions />hiddenInteractionsstay visible if they contain focused elements or opened overlays (e.g. context menus)
<TagList />- do not create empty list items
<SearchField />- allow to use
onClearanceHandlerandrightElementtogether - fix display of
IconwithtooltipTextas direct child inrightElement
- allow to use
Changed
<ActivityControlWidget />- display running time after label if there is an status info to prevent a third line
<ReactFlow />- property color for
graphconfiguration was adjusted
- property color for
<SearchField />- internally forced to be managed controlled to keep
onClearanceHandlerindependent from outervalueproperty
- internally forced to be managed controlled to keep
<Switch />- use always
<Label/>component forlabelvalue
- use always
<StickyNoteNode />- Refactored data structure position and dimension (breaking change)
Deprecated
<CodeEditor />- fallback of static test id is removed, need then always to be set if necessary
<OverflowText />- component won't accept properties of any name in future, only data attributes for test IDs and basic HTML element properties
<OverviewItemList />densityHighproperty will be removed, use it directly onOverviewItemchildren