@loomhq/lens 10.91.0 → 10.92.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.
@@ -146,7 +146,6 @@ export { default as SvgRemoveRedEye } from "./remove-red-eye.js";
146
146
  export { default as SvgReply } from "./reply.js";
147
147
  export { default as SvgReplyLeft } from "./reply-left.js";
148
148
  export { default as SvgReplyRight } from "./reply-right.js";
149
- export { default as SvgRotateCcw } from "./rotate-ccw.js";
150
149
  export { default as SvgRotateLeft } from "./rotate-left.js";
151
150
  export { default as SvgSafariLogo } from "./safari-logo.js";
152
151
  export { default as SvgScissors } from "./scissors.js";
@@ -146,7 +146,6 @@ export { default as SvgRemoveRedEye } from './remove-red-eye.js';
146
146
  export { default as SvgReply } from './reply.js';
147
147
  export { default as SvgReplyLeft } from './reply-left.js';
148
148
  export { default as SvgReplyRight } from './reply-right.js';
149
- export { default as SvgRotateCcw } from './rotate-ccw.js';
150
149
  export { default as SvgRotateLeft } from './rotate-left.js';
151
150
  export { default as SvgSafariLogo } from './safari-logo.js';
152
151
  export { default as SvgScissors } from './scissors.js';
@@ -90,12 +90,13 @@ const Tooltip = (_a) => {
90
90
  const [isOpen, setIsOpen] = useState(false);
91
91
  const focusRef = useRef();
92
92
  const isTooltipDisabled = !content || isDisabled;
93
- // show the tooltip if a user has focused or hovered on it AND it is not disabled
93
+ // Hide the tooltip as soon as isDisabled becomes true, and show it if a user has focused or hovered on it AND it is not disabled
94
94
  useEffect(() => {
95
- const keepTooltipOpenOnHover = isOverTooltip && keepOpen;
96
95
  if (isTooltipDisabled) {
96
+ setIsOpen(false);
97
97
  return;
98
98
  }
99
+ const keepTooltipOpenOnHover = isOverTooltip && keepOpen;
99
100
  if (show || keepTooltipOpenOnHover) {
100
101
  setIsOpen(true);
101
102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomhq/lens",
3
- "version": "10.91.0",
3
+ "version": "10.92.0",
4
4
  "scripts": {
5
5
  "dev": "next",
6
6
  "build:next": "next build",
@@ -1,2 +0,0 @@
1
- export default SvgRotateCcw;
2
- declare function SvgRotateCcw(props: any): JSX.Element;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- function SvgRotateCcw(props) {
3
- return (React.createElement("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none" }, props),
4
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.657 4.08a8.2 8.2 0 11-6.592 10.846 1 1 0 011.886-.665 6.2 6.2 0 101.446-6.428l-1.872 1.76H8.8a1 1 0 010 2H4a1 1 0 01-1-1v-4.8a1 1 0 112 0V8.28l2.017-1.895a8.2 8.2 0 014.64-2.306z", fill: "currentColor" })));
5
- }
6
- export default SvgRotateCcw;