Skip to content

Commit fd4e22c

Browse files
authored
Merge pull request #328 from eccenca/feature/includeDevelopToNext-CMEM-6873
Include develop to next (CMEM-6873)
2 parents ada0b2a + 0d37bec commit fd4e22c

6 files changed

Lines changed: 45 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,33 @@ This is a major release, and it might be not compatible with your current usage
4242
- `<EdgeDefs />`
4343
- use `<ReactFlowMarkers />` or build it on single `<ReactFlowMarker />`
4444

45+
## [24.4.1] - 2025-08-25
46+
47+
### Fixed
48+
49+
- React flow v12:
50+
- add missing styles from react flow library to ensure proper functionality of new connection lines
51+
- `<Tooltip />`
52+
- re-check hover state after swapping the placeholder before triggering the event bubbling
53+
54+
### Changed
55+
56+
- `<IconButton/>`
57+
- increase the default delay before swapping the tooltip placeholder of the icon, reducing unwanted swaps because of mouseovers that were not intended
58+
- `IntentBaseTypes` now available via root export
59+
- 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"]`
60+
61+
### Added
62+
63+
- `application-colors` and `data-color` icons, both represented by the Carbon `ColorPalette` icon
64+
65+
## [24.3.1] - 2025-08-21
66+
67+
### Fixed
68+
69+
- React flow v12:
70+
- add missing styles from react flow library to ensure proper functionality of new connection lines
71+
4572
## [24.4.0] - 2025-08-07
4673

4774
### Added

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: 13 additions & 2 deletions
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
}
@@ -191,7 +199,10 @@ export const Tooltip = ({
191199
targetProps={
192200
{
193201
...otherTooltipProps.targetProps,
194-
"data-postplaceholder": (eventMemory.current && searchId.current) ? `id${eventMemory.current}${searchId.current}` : undefined,
202+
"data-postplaceholder":
203+
eventMemory.current && searchId.current
204+
? `id${eventMemory.current}${searchId.current}`
205+
: undefined,
195206
} as React.HTMLProps<HTMLElement>
196207
}
197208
>

0 commit comments

Comments
 (0)