@doist/reactist 33.2.1 → 33.2.2
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 +6 -0
- package/dist/reactist.cjs.development.js +1 -12
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/tooltip/tooltip.js +1 -12
- package/es/tooltip/tooltip.js.map +1 -1
- package/lib/tooltip/tooltip.js +1 -12
- package/lib/tooltip/tooltip.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [33.2.2](https://github.com/Doist/reactist/compare/v33.2.1...v33.2.2) (2026-06-19)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **tooltip:** Let ariakit merge the child ref to avoid React ref warning ([#1079](https://github.com/Doist/reactist/issues/1079)) ([bd2db2d](https://github.com/Doist/reactist/commit/bd2db2d828f2c2700964b3d44e6e33a0e9b66819))
|
|
6
|
+
|
|
1
7
|
## [33.2.1](https://github.com/Doist/reactist/compare/v33.2.0...v33.2.1) (2026-06-19)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
|
@@ -666,19 +666,9 @@ const Tooltip = /*#__PURE__*/React__namespace.forwardRef(({
|
|
|
666
666
|
if (!child) {
|
|
667
667
|
return child;
|
|
668
668
|
}
|
|
669
|
-
|
|
670
|
-
/* eslint-disable react-hooks/refs */
|
|
671
|
-
const rawRef = 'ref' in child.props ? child.props.ref :
|
|
672
|
-
// child.ref access kept for React 18 compatibility
|
|
673
|
-
child.ref;
|
|
674
|
-
if (typeof rawRef === 'string') {
|
|
675
|
-
throw new Error('Tooltip: String refs cannot be used as they cannot be forwarded');
|
|
676
|
-
}
|
|
677
|
-
const childRef = rawRef;
|
|
678
669
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(react.TooltipAnchor, {
|
|
679
670
|
render: child,
|
|
680
|
-
store: tooltip
|
|
681
|
-
ref: childRef
|
|
671
|
+
store: tooltip
|
|
682
672
|
}), isOpen && content ? /*#__PURE__*/React__namespace.createElement(react.Tooltip, {
|
|
683
673
|
store: tooltip,
|
|
684
674
|
gutter: gapSize,
|
|
@@ -694,7 +684,6 @@ const Tooltip = /*#__PURE__*/React__namespace.forwardRef(({
|
|
|
694
684
|
textAlign: "center"
|
|
695
685
|
})
|
|
696
686
|
}, withArrow ? /*#__PURE__*/React__namespace.createElement(react.TooltipArrow, null) : null, typeof content === 'function' ? content() : content) : null);
|
|
697
|
-
/* eslint-enable react-hooks/refs */
|
|
698
687
|
});
|
|
699
688
|
Tooltip.displayName = 'Tooltip';
|
|
700
689
|
|