@tamagui/focus-scope
Advanced tools
Comparing version 1.109.8 to 1.109.9
@@ -29,3 +29,3 @@ var __create = Object.create; | ||
module.exports = __toCommonJS(FocusScope_exports); | ||
var import_compose_refs = require("@tamagui/compose-refs"), import_use_event = require("@tamagui/use-event"), React = __toESM(require("react")), import_jsx_runtime = require("react/jsx-runtime"); | ||
var import_compose_refs = require("@tamagui/compose-refs"), import_use_event = require("@tamagui/use-event"), import_start_transition = require("@tamagui/start-transition"), React = __toESM(require("react")), import_jsx_runtime = require("react/jsx-runtime"); | ||
const AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount", AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount", EVENT_OPTIONS = { bubbles: !1, cancelable: !0 }, FocusScope = React.forwardRef( | ||
@@ -48,3 +48,3 @@ function(props, forwardedRef) { | ||
} = props, [container, setContainer] = React.useState(null), onMountAutoFocus = (0, import_use_event.useEvent)(onMountAutoFocusProp), onUnmountAutoFocus = (0, import_use_event.useEvent)(onUnmountAutoFocusProp), lastFocusedElementRef = React.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, (node) => { | ||
React.startTransition(() => { | ||
(0, import_start_transition.startTransition)(() => { | ||
setContainer(node); | ||
@@ -51,0 +51,0 @@ }); |
import { useComposedRefs } from "@tamagui/compose-refs"; | ||
import { useEvent } from "@tamagui/use-event"; | ||
import { startTransition } from "@tamagui/start-transition"; | ||
import * as React from "react"; | ||
@@ -22,3 +23,3 @@ import { Fragment, jsx } from "react/jsx-runtime"; | ||
} = props, [container, setContainer] = React.useState(null), onMountAutoFocus = useEvent(onMountAutoFocusProp), onUnmountAutoFocus = useEvent(onUnmountAutoFocusProp), lastFocusedElementRef = React.useRef(null), composedRefs = useComposedRefs(forwardedRef, (node) => { | ||
React.startTransition(() => { | ||
startTransition(() => { | ||
setContainer(node); | ||
@@ -25,0 +26,0 @@ }); |
import { useComposedRefs } from "@tamagui/compose-refs"; | ||
import { useEvent } from "@tamagui/use-event"; | ||
import { startTransition } from "@tamagui/start-transition"; | ||
import * as React from "react"; | ||
@@ -22,3 +23,3 @@ import { Fragment, jsx } from "react/jsx-runtime"; | ||
} = props, [container, setContainer] = React.useState(null), onMountAutoFocus = useEvent(onMountAutoFocusProp), onUnmountAutoFocus = useEvent(onUnmountAutoFocusProp), lastFocusedElementRef = React.useRef(null), composedRefs = useComposedRefs(forwardedRef, (node) => { | ||
React.startTransition(() => { | ||
startTransition(() => { | ||
setContainer(node); | ||
@@ -25,0 +26,0 @@ }); |
{ | ||
"name": "@tamagui/focus-scope", | ||
"version": "1.109.8", | ||
"version": "1.109.9", | ||
"sideEffects": true, | ||
@@ -34,7 +34,8 @@ "source": "src/index.ts", | ||
"dependencies": { | ||
"@tamagui/compose-refs": "1.109.8", | ||
"@tamagui/use-event": "1.109.8" | ||
"@tamagui/compose-refs": "1.109.9", | ||
"@tamagui/start-transition": "1.109.9", | ||
"@tamagui/use-event": "1.109.9" | ||
}, | ||
"devDependencies": { | ||
"@tamagui/build": "1.109.8", | ||
"@tamagui/build": "1.109.9", | ||
"react": "^18.2.0 || ^19.0.0" | ||
@@ -41,0 +42,0 @@ }, |
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
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
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
97960
1373
4
+ Added@tamagui/compose-refs@1.109.9(transitive)
+ Added@tamagui/constants@1.109.9(transitive)
+ Added@tamagui/start-transition@1.109.9(transitive)
+ Added@tamagui/use-event@1.109.9(transitive)
- Removed@tamagui/compose-refs@1.109.8(transitive)
- Removed@tamagui/constants@1.109.8(transitive)
- Removed@tamagui/use-event@1.109.8(transitive)
Updated@tamagui/use-event@1.109.9