Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
a3c5346
Update changelog section to 24.4.0
haschek Aug 7, 2025
d2b885b
Merge pull request #315 from eccenca/maintain/mergeReleaseTag-v24.4.0
haschek Aug 11, 2025
2e8ca43
Added missed styles from the original package
fiorsaoirse Aug 19, 2025
69904a2
Added a changelog entry
fiorsaoirse Aug 19, 2025
faf7840
Prepare release v24.3.1
haschek Aug 20, 2025
7414441
Added missed styles from the original package
fiorsaoirse Aug 19, 2025
2ffb3cc
Added a changelog entry
fiorsaoirse Aug 19, 2025
d30f208
update changelog
haschek Aug 20, 2025
b50a9fb
Merge pull request #321 from eccenca/release/v24.3.1
haschek Aug 21, 2025
7efc329
Update changelog section to 24.3.1
haschek Aug 21, 2025
c7bf0b9
Merge branch 'bugfix/reactflow-missed-styles' into maintain/mergeRele…
haschek Aug 21, 2025
19f269d
Merge pull request #322 from eccenca/maintain/mergeReleaseTag-v24.3.1
haschek Aug 21, 2025
48f369a
Update changelog, remove fix info from wrong section
haschek Aug 21, 2025
26cb90f
Merge pull request #318 from eccenca/bugfix/reactflow-missed-styles
haschek Aug 21, 2025
377ac05
increase delay to prevent swaps for quick and not intended mouse hovers
haschek Aug 21, 2025
512adfd
add check if the hover state is still given before triggering the event
haschek Aug 21, 2025
62ed3bb
update changelog
haschek Aug 21, 2025
44aa3c1
prevent infinite event triggers
haschek Aug 21, 2025
9f106d9
Merge pull request #323 from eccenca/fix/preventWronglyDisplayedToolt…
fiorsaoirse Aug 22, 2025
9acbe0b
Prepare release v24.4.1
haschek Aug 25, 2025
dd0bec9
export base intent types via library root
haschek Aug 25, 2025
9d30bfd
add color palette icons
haschek Aug 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,33 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## [Unreleased]

### 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
- `IntentBaseTypes` now available via root export
- some `intent` properties 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"]`

### Added

- `application-colors` and `data-color` icons, both represented by the Carbon `ColorPalette` icon

## [24.3.1] - 2025-08-21

### Fixed

- React flow v12:
- add missing styles from react flow library to ensure proper functionality of new connection lines

## [24.4.0] - 2025-08-07

### Added

- `<ExtendedCodeEditor />`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@eccenca/gui-elements",
"description": "GUI elements based on other libraries, usable in React application, written in Typescript.",
"version": "24.4.0",
"version": "24.4.1",
"license": "Apache-2.0",
"homepage": "https://github.com/eccenca/gui-elements",
"bugs": "https://github.com/eccenca/gui-elements/issues",
Expand Down
1 change: 1 addition & 0 deletions src/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import getColorConfiguration from "./utils/getColorConfiguration";
import { getScrollParent } from "./utils/getScrollParent";
import { getGlobalVar, setGlobalVar } from "./utils/globalVars";
import { openInNewTab } from "./utils/openInNewTab";
export type { IntentTypes as IntentBaseTypes } from "./Intent";

export const utils = {
openInNewTab,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icon/IconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const IconButton = ({
const defaultIconTooltipProps = {
hoverOpenDelay: 1000,
openOnTargetFocus: restProps.disabled || (restProps.tabIndex ?? 0) < 0 ? false : undefined,
swapPlaceholderDelay: 1,
swapPlaceholderDelay: 10,
};
const iconProps = {
small: restProps.small,
Expand Down
2 changes: 2 additions & 0 deletions src/components/Icon/canonicalIconNames.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const canonicalIcons = {
"application-homepage": icons.Workspace,
"application-legacygui": icons.ResetAlt,
"application-mapping": icons.ModelBuilder,
"application-colors": icons.ColorPalette,
"application-queries": icons.DataView,
"application-useraccount": icons.UserAvatar,
"application-vocabularies": icons.Catalog,
Expand Down Expand Up @@ -50,6 +51,7 @@ const canonicalIcons = {
"artefact-workflow": icons.ModelBuilder,

"data-boolean": icons.Boolean,
"data-color": icons.ColorPalette,
"data-sourcepath": icons.Data_2,
"data-targetpath": icons.Data_1,
"data-string": icons.StringText,
Expand Down
10 changes: 9 additions & 1 deletion src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,15 @@ export const Tooltip = ({
(target as HTMLElement).focus();
break;
case "afterhover":
(target as HTMLElement).dispatchEvent(new MouseEvent("mouseover", { bubbles: true }));
// re-check if the cursor is still over the element after swapping the placeholder before triggering the event to bubble up
(target as HTMLElement).addEventListener(
"mouseover",
() => (target as HTMLElement).dispatchEvent(new MouseEvent("mouseover", { bubbles: true })),
{
capture: true,
once: true,
}
);
break;
}
}
Expand Down
9 changes: 8 additions & 1 deletion src/extensions/react-flow/_react-flow_v12.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
.react-flow .react-flow__edges svg {
// needed styles from "@xyflow/react/dist/style.css" to ensure proper functionality
svg.react-flow__connectionline {
position: absolute;
z-index: 1001;
overflow: visible;
}

.react-flow .react-flow__edges svg {
position: absolute;
overflow: visible;
pointer-events: none;
}