@radix-ui/react-dismissable-layer
Advanced tools
Comparing version 0.1.6-rc.12 to 0.1.6-rc.13
@@ -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
73252
9
+ Added@radix-ui/react-compose-refs@0.1.1-rc.13(transitive)
+ Added@radix-ui/react-primitive@0.1.5-rc.13(transitive)
+ Added@radix-ui/react-slot@0.1.3-rc.13(transitive)
+ Added@radix-ui/react-use-body-pointer-events@0.1.2-rc.13(transitive)
+ Added@radix-ui/react-use-callback-ref@0.1.1-rc.13(transitive)
+ Added@radix-ui/react-use-escape-keydown@0.1.1-rc.13(transitive)
+ Added@radix-ui/react-use-layout-effect@0.1.1-rc.13(transitive)
+ Addedreact-dom@18.3.1(transitive)
+ Addedscheduler@0.23.2(transitive)
- Removed@radix-ui/react-compose-refs@0.1.1-rc.12(transitive)
- Removed@radix-ui/react-primitive@0.1.5-rc.12(transitive)
- Removed@radix-ui/react-slot@0.1.3-rc.12(transitive)
- Removed@radix-ui/react-use-body-pointer-events@0.1.2-rc.12(transitive)
- Removed@radix-ui/react-use-callback-ref@0.1.1-rc.12(transitive)
- Removed@radix-ui/react-use-escape-keydown@0.1.1-rc.12(transitive)
- Removed@radix-ui/react-use-layout-effect@0.1.1-rc.12(transitive)