@synerise/ds-tooltip 1.4.2 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.4.4](https://github.com/synerise/synerise-design/compare/@synerise/ds-tooltip@1.4.3...@synerise/ds-tooltip@1.4.4) (2026-02-11)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **tooltip:** hide tooltip if content becomes null ([72830ca](https://github.com/synerise/synerise-design/commit/72830ca9962dff6bdd7f5ce7d029b4a4a6987080))
11
+
12
+ ## [1.4.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-tooltip@1.4.2...@synerise/ds-tooltip@1.4.3) (2026-02-10)
13
+
14
+ **Note:** Version bump only for package @synerise/ds-tooltip
15
+
6
16
  ## [1.4.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-tooltip@1.4.1...@synerise/ds-tooltip@1.4.2) (2026-02-10)
7
17
 
8
18
  **Note:** Version bump only for package @synerise/ds-tooltip
package/dist/Tooltip.js CHANGED
@@ -49,6 +49,11 @@ var Tooltip = /*#__PURE__*/forwardRef(function (_ref, ref) {
49
49
  useEffect(function () {
50
50
  setIsOpen(!!open);
51
51
  }, [open]);
52
+ useEffect(function () {
53
+ if (!tooltipContentExists) {
54
+ setIsOpen(false);
55
+ }
56
+ }, [tooltipContentExists]);
52
57
  var handleOnClickHideDelay = function handleOnClickHideDelay(visible) {
53
58
  if (!visible) {
54
59
  timeoutClickRef.current && clearTimeout(timeoutClickRef.current);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-tooltip",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "Tooltip UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -36,9 +36,9 @@
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
38
  "@floating-ui/react": "^0.27.16",
39
- "@synerise/ds-icon": "^1.12.0",
39
+ "@synerise/ds-icon": "^1.13.1",
40
40
  "@synerise/ds-popover": "^1.4.0",
41
- "@synerise/ds-scrollbar": "^1.2.10",
41
+ "@synerise/ds-scrollbar": "^1.2.12",
42
42
  "@synerise/ds-utils": "^1.6.0"
43
43
  },
44
44
  "peerDependencies": {
@@ -49,5 +49,5 @@
49
49
  "devDependencies": {
50
50
  "@testing-library/user-event": "^14.6.1"
51
51
  },
52
- "gitHead": "4a93898aa311430f21ea9604d03438eaac780027"
52
+ "gitHead": "fea91b104a41b35715d9317ff16ed288630320db"
53
53
  }