react-tooltip 5.30.0-beta.1263.rc.4 → 5.30.0-beta.1266.rc.0

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.
@@ -85,22 +85,14 @@ interface TooltipRefProps {
85
85
  isOpen: boolean
86
86
  }
87
87
 
88
- type AnchorOpenEvents = {
89
- mouseenter?: boolean
90
- focus?: boolean
91
- mouseover?: boolean
92
- click?: boolean
93
- dblclick?: boolean
94
- mousedown?: boolean
95
- }
96
- type AnchorCloseEvents = {
97
- mouseleave?: boolean
98
- blur?: boolean
99
- mouseout?: boolean
100
- click?: boolean
101
- dblclick?: boolean
102
- mouseup?: boolean
103
- }
88
+ type AnchorClickEvents = 'click' | 'dblclick' | 'mousedown' | 'mouseup'
89
+
90
+ type AnchorOpenEvents = Partial<
91
+ Record<'mouseenter' | 'focus' | 'mouseover' | AnchorClickEvents, boolean>
92
+ >
93
+ type AnchorCloseEvents = Partial<
94
+ Record<'mouseleave' | 'blur' | 'mouseout' | AnchorClickEvents, boolean>
95
+ >
104
96
  type GlobalCloseEvents = {
105
97
  escape?: boolean
106
98
  scroll?: boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-tooltip",
3
- "version": "5.30.0-beta.1263.rc.4",
3
+ "version": "5.30.0-beta.1266.rc.0",
4
4
  "description": "react tooltip component",
5
5
  "scripts": {
6
6
  "dev-rollup": "node ./prebuild.js --env=development && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.dev.js --watch",