New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mirohq/design-system-tooltip

Package Overview
Dependencies
Maintainers
0
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mirohq/design-system-tooltip - npm Package Compare versions

Comparing version 3.3.30 to 3.4.0-textarea-unit-test.0

10

dist/main.js

@@ -9,2 +9,3 @@ 'use strict';

var reactTooltip = require('@radix-ui/react-tooltip');
var designSystemBaseTooltip = require('@mirohq/design-system-base-tooltip');
var designSystemStitches = require('@mirohq/design-system-stitches');

@@ -147,3 +148,3 @@ var designSystemUtils = require('@mirohq/design-system-utils');

const DEFAULT_SKIP_DELAY_DURATION = 500;
const DEFAULT_DELAY_DURATION = 200;
const DEFAULT_DELAY_DURATION = 300;
const TooltipTriggerContext = React.createContext({

@@ -168,2 +169,3 @@ triggerRef: { current: null }

const triggerId = designSystemUseId.useId();
const { preventNextOpeningRef } = designSystemBaseTooltip.useBaseTooltipContext();
const [openState, setOpenState] = React.useState(defaultOpen);

@@ -210,2 +212,6 @@ const setDelayedOpen = React.useCallback(

(newState) => {
if (newState && preventNextOpeningRef.current) {
preventNextOpeningRef.current = false;
return;
}
if (open == null) {

@@ -217,3 +223,3 @@ setDelayedOpen(newState);

},
[open, onOpen, onClose, setDelayedOpen]
[open, onOpen, onClose, preventNextOpeningRef, setDelayedOpen]
);

@@ -220,0 +226,0 @@ React.useEffect(

@@ -5,2 +5,3 @@ import { jsxs, jsx } from 'react/jsx-runtime';

import { Arrow, Content as Content$1, Trigger as Trigger$1, Portal as Portal$1, Provider as Provider$1, Root } from '@radix-ui/react-tooltip';
import { useBaseTooltipContext } from '@mirohq/design-system-base-tooltip';
import { styled } from '@mirohq/design-system-stitches';

@@ -139,3 +140,3 @@ import { mergeRefs } from '@mirohq/design-system-utils';

const DEFAULT_SKIP_DELAY_DURATION = 500;
const DEFAULT_DELAY_DURATION = 200;
const DEFAULT_DELAY_DURATION = 300;
const TooltipTriggerContext = createContext({

@@ -160,2 +161,3 @@ triggerRef: { current: null }

const triggerId = useId();
const { preventNextOpeningRef } = useBaseTooltipContext();
const [openState, setOpenState] = useState(defaultOpen);

@@ -202,2 +204,6 @@ const setDelayedOpen = useCallback(

(newState) => {
if (newState && preventNextOpeningRef.current) {
preventNextOpeningRef.current = false;
return;
}
if (open == null) {

@@ -209,3 +215,3 @@ setDelayedOpen(newState);

},
[open, onOpen, onClose, setDelayedOpen]
[open, onOpen, onClose, preventNextOpeningRef, setDelayedOpen]
);

@@ -212,0 +218,0 @@ useEffect(

2

dist/types.d.ts

@@ -203,3 +203,3 @@ import * as react from 'react';

declare const DEFAULT_SKIP_DELAY_DURATION = 500;
declare const DEFAULT_DELAY_DURATION = 200;
declare const DEFAULT_DELAY_DURATION = 300;
declare const Tooltip: react__default.FC<TooltipProps> & Partials;

@@ -206,0 +206,0 @@ interface Partials {

{
"name": "@mirohq/design-system-tooltip",
"version": "3.3.30",
"version": "3.4.0-textarea-unit-test.0",
"description": "",

@@ -31,5 +31,6 @@ "author": "Miro",

"@radix-ui/react-tooltip": "^1.0.3",
"@mirohq/design-system-base-hotkey": "^0.1.23",
"@mirohq/design-system-base-hotkey": "^0.1.22",
"@mirohq/design-system-primitive": "^1.1.2",
"@mirohq/design-system-stitches": "^2.6.22",
"@mirohq/design-system-base-tooltip": "^0.1.0-textarea-unit-test.0",
"@mirohq/design-system-stitches": "^2.6.21",
"@mirohq/design-system-use-id": "^0.1.2",

@@ -36,0 +37,0 @@ "@mirohq/design-system-utils": "^0.15.4"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc