Socket
Socket
Sign inDemoInstall

@radix-ui/react-dismissable-layer

Package Overview
Dependencies
6
Maintainers
6
Versions
188
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2-rc.1

6

dist/index.js

@@ -44,3 +44,3 @@ var $g2vWm$babelruntimehelpersextends = require("@babel/runtime/helpers/extends");

const [node1, setNode] = $g2vWm$react.useState(null);
const ownerDocument = (_node$ownerDocument = node1 === null || node1 === void 0 ? void 0 : node1.ownerDocument) !== null && _node$ownerDocument !== void 0 ? _node$ownerDocument : document;
const ownerDocument = (_node$ownerDocument = node1 === null || node1 === void 0 ? void 0 : node1.ownerDocument) !== null && _node$ownerDocument !== void 0 ? _node$ownerDocument : globalThis === null || globalThis === void 0 ? void 0 : globalThis.document;
const [, force] = $g2vWm$react.useState({});

@@ -174,3 +174,3 @@ const composedRefs = $g2vWm$radixuireactcomposerefs.useComposedRefs(forwardedRef, (node)=>setNode(node)

* Returns props to pass to the node we want to check for outside events.
*/ function $d715e0554b679f1f$var$usePointerDownOutside(onPointerDownOutside, ownerDocument = document) {
*/ function $d715e0554b679f1f$var$usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
const handlePointerDownOutside = $g2vWm$radixuireactusecallbackref.useCallbackRef(onPointerDownOutside);

@@ -243,3 +243,3 @@ const isPointerInsideReactTreeRef = $g2vWm$react.useRef(false);

* Returns props to pass to the root (node) of the subtree we want to check.
*/ function $d715e0554b679f1f$var$useFocusOutside(onFocusOutside, ownerDocument = document) {
*/ function $d715e0554b679f1f$var$useFocusOutside(onFocusOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
const handleFocusOutside = $g2vWm$radixuireactusecallbackref.useCallbackRef(onFocusOutside);

@@ -246,0 +246,0 @@ const isFocusInsideReactTreeRef = $g2vWm$react.useRef(false);

@@ -33,3 +33,3 @@ import $kqwpH$babelruntimehelpersesmextends from "@babel/runtime/helpers/esm/extends";

const [node1, setNode] = $kqwpH$useState(null);
const ownerDocument = (_node$ownerDocument = node1 === null || node1 === void 0 ? void 0 : node1.ownerDocument) !== null && _node$ownerDocument !== void 0 ? _node$ownerDocument : document;
const ownerDocument = (_node$ownerDocument = node1 === null || node1 === void 0 ? void 0 : node1.ownerDocument) !== null && _node$ownerDocument !== void 0 ? _node$ownerDocument : globalThis === null || globalThis === void 0 ? void 0 : globalThis.document;
const [, force] = $kqwpH$useState({});

@@ -163,3 +163,3 @@ const composedRefs = $kqwpH$useComposedRefs(forwardedRef, (node)=>setNode(node)

* Returns props to pass to the node we want to check for outside events.
*/ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, ownerDocument = document) {
*/ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
const handlePointerDownOutside = $kqwpH$useCallbackRef(onPointerDownOutside);

@@ -232,3 +232,3 @@ const isPointerInsideReactTreeRef = $kqwpH$useRef(false);

* Returns props to pass to the root (node) of the subtree we want to check.
*/ function $5cb92bef7577960e$var$useFocusOutside(onFocusOutside, ownerDocument = document) {
*/ function $5cb92bef7577960e$var$useFocusOutside(onFocusOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
const handleFocusOutside = $kqwpH$useCallbackRef(onFocusOutside);

@@ -235,0 +235,0 @@ const isFocusInsideReactTreeRef = $kqwpH$useRef(false);

{
"name": "@radix-ui/react-dismissable-layer",
"version": "1.0.1",
"version": "1.0.2-rc.1",
"license": "MIT",

@@ -24,3 +24,3 @@ "source": "src/index.ts",

"@radix-ui/react-use-callback-ref": "1.0.0",
"@radix-ui/react-use-escape-keydown": "1.0.1"
"@radix-ui/react-use-escape-keydown": "1.0.2-rc.1"
},

@@ -41,3 +41,4 @@ "devDependencies": {

"url": "https://github.com/radix-ui/primitives/issues"
}
},
"stableVersion": "1.0.1"
}

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc