Skip to content

Commit ea0bdf1

Browse files
authored
Merge pull request #324 from eccenca/release/v24.4.1
Release v24.4.1 into main branch
2 parents 56be6df + 9d30bfd commit ea0bdf1

7 files changed

Lines changed: 49 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,33 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- React flow v12:
12+
- add missing styles from react flow library to ensure proper functionality of new connection lines
13+
- `<Tooltip />`
14+
- re-check hover state after swapping the placeholder before triggering the event bubbling
15+
16+
## Changed
17+
18+
- `<IconButton/>`
19+
- increase the default delay before swapping the tooltip placeholder of the icon, reducing unwanted swaps because of mouseovers that were not intended
20+
- `IntentBaseTypes` now available via root export
21+
- 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"]`
22+
23+
### Added
24+
25+
- `application-colors` and `data-color` icons, both represented by the Carbon `ColorPalette` icon
26+
27+
## [24.3.1] - 2025-08-21
28+
29+
### Fixed
30+
31+
- React flow v12:
32+
- add missing styles from react flow library to ensure proper functionality of new connection lines
33+
34+
## [24.4.0] - 2025-08-07
35+
936
### Added
1037

1138
- `<ExtendedCodeEditor />`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@eccenca/gui-elements",
33
"description": "GUI elements based on other libraries, usable in React application, written in Typescript.",
4-
"version": "24.4.0",
4+
"version": "24.4.1",
55
"license": "Apache-2.0",
66
"homepage": "https://github.com/eccenca/gui-elements",
77
"bugs": "https://github.com/eccenca/gui-elements/issues",

src/common/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import getColorConfiguration from "./utils/getColorConfiguration";
44
import { getScrollParent } from "./utils/getScrollParent";
55
import { getGlobalVar, setGlobalVar } from "./utils/globalVars";
66
import { openInNewTab } from "./utils/openInNewTab";
7+
export type { IntentTypes as IntentBaseTypes } from "./Intent";
78

89
export const utils = {
910
openInNewTab,

src/components/Icon/IconButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const IconButton = ({
5050
const defaultIconTooltipProps = {
5151
hoverOpenDelay: 1000,
5252
openOnTargetFocus: restProps.disabled || (restProps.tabIndex ?? 0) < 0 ? false : undefined,
53-
swapPlaceholderDelay: 1,
53+
swapPlaceholderDelay: 10,
5454
};
5555
const iconProps = {
5656
small: restProps.small,

src/components/Icon/canonicalIconNames.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const canonicalIcons = {
88
"application-homepage": icons.Workspace,
99
"application-legacygui": icons.ResetAlt,
1010
"application-mapping": icons.ModelBuilder,
11+
"application-colors": icons.ColorPalette,
1112
"application-queries": icons.DataView,
1213
"application-useraccount": icons.UserAvatar,
1314
"application-vocabularies": icons.Catalog,
@@ -50,6 +51,7 @@ const canonicalIcons = {
5051
"artefact-workflow": icons.ModelBuilder,
5152

5253
"data-boolean": icons.Boolean,
54+
"data-color": icons.ColorPalette,
5355
"data-sourcepath": icons.Data_2,
5456
"data-targetpath": icons.Data_1,
5557
"data-string": icons.StringText,

src/components/Tooltip/Tooltip.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,15 @@ export const Tooltip = ({
134134
(target as HTMLElement).focus();
135135
break;
136136
case "afterhover":
137-
(target as HTMLElement).dispatchEvent(new MouseEvent("mouseover", { bubbles: true }));
137+
// re-check if the cursor is still over the element after swapping the placeholder before triggering the event to bubble up
138+
(target as HTMLElement).addEventListener(
139+
"mouseover",
140+
() => (target as HTMLElement).dispatchEvent(new MouseEvent("mouseover", { bubbles: true })),
141+
{
142+
capture: true,
143+
once: true,
144+
}
145+
);
138146
break;
139147
}
140148
}
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
.react-flow .react-flow__edges svg {
1+
// needed styles from "@xyflow/react/dist/style.css" to ensure proper functionality
2+
svg.react-flow__connectionline {
3+
position: absolute;
4+
z-index: 1001;
25
overflow: visible;
6+
}
7+
8+
.react-flow .react-flow__edges svg {
39
position: absolute;
10+
overflow: visible;
411
pointer-events: none;
512
}

0 commit comments

Comments
 (0)