Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@radix-ui/react-dismissable-layer

Package Overview
Dependencies
Maintainers
6
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-dismissable-layer - npm Package Compare versions

Comparing version 0.1.6-rc.12 to 0.1.6-rc.13

10

dist/index.js

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

};
$d715e0554b679f1f$var$dispatchCustomEvent($d715e0554b679f1f$var$POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail);
$d715e0554b679f1f$var$handleAndDispatchDiscreteCustomEvent($d715e0554b679f1f$var$POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail);
}

@@ -232,3 +232,3 @@ isPointerInsideReactTreeRef.current = false;

};
$d715e0554b679f1f$var$dispatchCustomEvent($d715e0554b679f1f$var$FOCUS_OUTSIDE, handleFocusOutside, eventDetail);
$d715e0554b679f1f$var$handleAndDispatchDiscreteCustomEvent($d715e0554b679f1f$var$FOCUS_OUTSIDE, handleFocusOutside, eventDetail);
}

@@ -249,6 +249,6 @@ };

function $d715e0554b679f1f$var$dispatchUpdate() {
const event = new Event($d715e0554b679f1f$var$CONTEXT_UPDATE);
const event = new CustomEvent($d715e0554b679f1f$var$CONTEXT_UPDATE);
document.dispatchEvent(event);
}
function $d715e0554b679f1f$var$dispatchCustomEvent(name, handler, detail) {
function $d715e0554b679f1f$var$handleAndDispatchDiscreteCustomEvent(name, handler, detail) {
const target = detail.originalEvent.target;

@@ -263,3 +263,3 @@ const event = new CustomEvent(name, {

});
return !target.dispatchEvent(event);
$g2vWm$radixuireactprimitive.dispatchDiscreteCustomEvent(target, event);
}

@@ -266,0 +266,0 @@ const $d715e0554b679f1f$export$be92b6f5f03c0fe9 = $d715e0554b679f1f$export$177fb62ff3ec1f22;

import $kqwpH$babelruntimehelpersesmextends from "@babel/runtime/helpers/esm/extends";
import {createContext as $kqwpH$createContext, forwardRef as $kqwpH$forwardRef, useContext as $kqwpH$useContext, useState as $kqwpH$useState, useEffect as $kqwpH$useEffect, createElement as $kqwpH$createElement, useRef as $kqwpH$useRef} from "react";
import {composeEventHandlers as $kqwpH$composeEventHandlers} from "@radix-ui/primitive";
import {Primitive as $kqwpH$Primitive} from "@radix-ui/react-primitive";
import {Primitive as $kqwpH$Primitive, dispatchDiscreteCustomEvent as $kqwpH$dispatchDiscreteCustomEvent} from "@radix-ui/react-primitive";
import {useComposedRefs as $kqwpH$useComposedRefs} from "@radix-ui/react-compose-refs";

@@ -169,3 +169,3 @@ import {useBodyPointerEvents as $kqwpH$useBodyPointerEvents} from "@radix-ui/react-use-body-pointer-events";

};
$5cb92bef7577960e$var$dispatchCustomEvent($5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail);
$5cb92bef7577960e$var$handleAndDispatchDiscreteCustomEvent($5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail);
}

@@ -213,3 +213,3 @@ isPointerInsideReactTreeRef.current = false;

};
$5cb92bef7577960e$var$dispatchCustomEvent($5cb92bef7577960e$var$FOCUS_OUTSIDE, handleFocusOutside, eventDetail);
$5cb92bef7577960e$var$handleAndDispatchDiscreteCustomEvent($5cb92bef7577960e$var$FOCUS_OUTSIDE, handleFocusOutside, eventDetail);
}

@@ -230,6 +230,6 @@ };

function $5cb92bef7577960e$var$dispatchUpdate() {
const event = new Event($5cb92bef7577960e$var$CONTEXT_UPDATE);
const event = new CustomEvent($5cb92bef7577960e$var$CONTEXT_UPDATE);
document.dispatchEvent(event);
}
function $5cb92bef7577960e$var$dispatchCustomEvent(name, handler, detail) {
function $5cb92bef7577960e$var$handleAndDispatchDiscreteCustomEvent(name, handler, detail) {
const target = detail.originalEvent.target;

@@ -244,3 +244,3 @@ const event = new CustomEvent(name, {

});
return !target.dispatchEvent(event);
$kqwpH$dispatchDiscreteCustomEvent(target, event);
}

@@ -247,0 +247,0 @@ const $5cb92bef7577960e$export$be92b6f5f03c0fe9 = $5cb92bef7577960e$export$177fb62ff3ec1f22;

{
"name": "@radix-ui/react-dismissable-layer",
"version": "0.1.6-rc.12",
"version": "0.1.6-rc.13",
"license": "MIT",

@@ -21,7 +21,7 @@ "source": "src/index.ts",

"@radix-ui/primitive": "0.1.0",
"@radix-ui/react-compose-refs": "0.1.1-rc.12",
"@radix-ui/react-primitive": "0.1.5-rc.12",
"@radix-ui/react-use-body-pointer-events": "0.1.2-rc.12",
"@radix-ui/react-use-callback-ref": "0.1.1-rc.12",
"@radix-ui/react-use-escape-keydown": "0.1.1-rc.12"
"@radix-ui/react-compose-refs": "0.1.1-rc.13",
"@radix-ui/react-primitive": "0.1.5-rc.13",
"@radix-ui/react-use-body-pointer-events": "0.1.2-rc.13",
"@radix-ui/react-use-callback-ref": "0.1.1-rc.13",
"@radix-ui/react-use-escape-keydown": "0.1.1-rc.13"
},

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

"peerDependencies": {
"react": "^16.8 || ^17.0 || ^18.0"
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},

@@ -35,0 +36,0 @@ "homepage": "https://radix-ui.com/primitives",

Sorry, the diff of this file is not supported yet

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