@radix-ui/react-primitive
Advanced tools
Comparing version 0.1.5-rc.15 to 0.1.5-rc.16
@@ -25,2 +25,4 @@ import * as React from "react"; | ||
* | ||
* https://github.com/facebook/react/blob/a8a4742f1c54493df00da648a3f9d26e3db9c8b5/packages/react-dom/src/events/ReactDOMEventListener.js#L294-L350 | ||
* | ||
* `discrete` is an important distinction as updates within these events are applied immediately. | ||
@@ -44,2 +46,6 @@ * React however, is not able to infer the priority of custom event types due to how they are detected internally. | ||
* onPointerDown={(event) => dispatchDiscreteCustomEvent(event.target, new CustomEvent(‘customType’))} | ||
* | ||
* Note: though React classifies `focus`, `focusin` and `focusout` events as `discrete`, it's not recommended to use | ||
* this utility with them. This is because it's possible for those handlers to be called implicitly during render | ||
* e.g. when focus is within a component as it is unmounted, or when managing focus on mount. | ||
*/ | ||
@@ -46,0 +52,0 @@ export function dispatchDiscreteCustomEvent<E extends CustomEvent>(target: E['target'], event: E): void; |
@@ -84,2 +84,4 @@ var $iMixA$babelruntimehelpersextends = require("@babel/runtime/helpers/extends"); | ||
* | ||
* https://github.com/facebook/react/blob/a8a4742f1c54493df00da648a3f9d26e3db9c8b5/packages/react-dom/src/events/ReactDOMEventListener.js#L294-L350 | ||
* | ||
* `discrete` is an important distinction as updates within these events are applied immediately. | ||
@@ -103,2 +105,6 @@ * React however, is not able to infer the priority of custom event types due to how they are detected internally. | ||
* onPointerDown={(event) => dispatchDiscreteCustomEvent(event.target, new CustomEvent(‘customType’))} | ||
* | ||
* Note: though React classifies `focus`, `focusin` and `focusout` events as `discrete`, it's not recommended to use | ||
* this utility with them. This is because it's possible for those handlers to be called implicitly during render | ||
* e.g. when focus is within a component as it is unmounted, or when managing focus on mount. | ||
*/ function $c3def6332c2749a6$export$6d1a0317bde7de7f(target, event) { | ||
@@ -105,0 +111,0 @@ if (target) $iMixA$reactdom.flushSync(()=>target.dispatchEvent(event) |
@@ -65,2 +65,4 @@ import $4q5Fq$babelruntimehelpersesmextends from "@babel/runtime/helpers/esm/extends"; | ||
* | ||
* https://github.com/facebook/react/blob/a8a4742f1c54493df00da648a3f9d26e3db9c8b5/packages/react-dom/src/events/ReactDOMEventListener.js#L294-L350 | ||
* | ||
* `discrete` is an important distinction as updates within these events are applied immediately. | ||
@@ -84,2 +86,6 @@ * React however, is not able to infer the priority of custom event types due to how they are detected internally. | ||
* onPointerDown={(event) => dispatchDiscreteCustomEvent(event.target, new CustomEvent(‘customType’))} | ||
* | ||
* Note: though React classifies `focus`, `focusin` and `focusout` events as `discrete`, it's not recommended to use | ||
* this utility with them. This is because it's possible for those handlers to be called implicitly during render | ||
* e.g. when focus is within a component as it is unmounted, or when managing focus on mount. | ||
*/ function $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event) { | ||
@@ -86,0 +92,0 @@ if (target) $4q5Fq$flushSync(()=>target.dispatchEvent(event) |
{ | ||
"name": "@radix-ui/react-primitive", | ||
"version": "0.1.5-rc.15", | ||
"version": "0.1.5-rc.16", | ||
"license": "MIT", | ||
@@ -20,3 +20,3 @@ "source": "src/index.ts", | ||
"@babel/runtime": "^7.13.10", | ||
"@radix-ui/react-slot": "0.1.3-rc.15" | ||
"@radix-ui/react-slot": "0.1.3-rc.16" | ||
}, | ||
@@ -23,0 +23,0 @@ "devDependencies": { |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28299
249
+ Added@radix-ui/react-compose-refs@0.1.1-rc.16(transitive)
+ Added@radix-ui/react-slot@0.1.3-rc.16(transitive)
- Removed@radix-ui/react-compose-refs@0.1.1-rc.15(transitive)
- Removed@radix-ui/react-slot@0.1.3-rc.15(transitive)