@aria-ui/overlay
Advanced tools
Comparing version 0.0.2 to 0.0.3
# @aria-ui/overlay | ||
## 0.0.3 | ||
### Patch Changes | ||
- Updated dependencies [d4e70a4] | ||
- @aria-ui/core@0.0.6 | ||
## 0.0.2 | ||
@@ -4,0 +11,0 @@ |
@@ -7,3 +7,4 @@ // src/overlay-anchor-state.ts | ||
var referenceContext = createContext( | ||
"overlay/reference" | ||
"overlay/reference", | ||
null | ||
); | ||
@@ -13,3 +14,3 @@ | ||
function useOverlayAnchor(element) { | ||
const reference = referenceContext.consume(element, null); | ||
const reference = referenceContext.consume(element); | ||
useEffect(element, () => { | ||
@@ -196,3 +197,3 @@ reference.value = element; | ||
const state = mapSignals(mergedProps); | ||
const reference = referenceContext.consume(element, null); | ||
const reference = referenceContext.consume(element); | ||
useEffect2(element, () => { | ||
@@ -199,0 +200,0 @@ const stateValues = mapValues(state); |
{ | ||
"name": "@aria-ui/overlay", | ||
"type": "module", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"private": false, | ||
"sideEffects": false, | ||
"main": "dist/index.js", | ||
"main": "src/index.ts", | ||
"scripts": { | ||
"build": "tsup" | ||
}, | ||
"dependencies": { | ||
"@aria-ui/core": "^0.0.5", | ||
"@aria-ui/core": "^0.0.6", | ||
"@floating-ui/dom": "^1.6.3", | ||
@@ -18,9 +21,7 @@ "@zag-js/dom-query": "^0.37.3" | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"build": "tsup" | ||
}, | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts" | ||
} | ||
"access": "public", | ||
"main": "dist/index.js", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts" | ||
} | ||
} |
@@ -6,2 +6,3 @@ import { createContext } from "@aria-ui/core" | ||
"overlay/reference", | ||
null, | ||
) |
@@ -9,3 +9,3 @@ import { useEffect, type ConnectableElement } from "@aria-ui/core" | ||
export function useOverlayAnchor(element: ConnectableElement) { | ||
const reference = referenceContext.consume(element, null) | ||
const reference = referenceContext.consume(element) | ||
@@ -12,0 +12,0 @@ useEffect(element, () => { |
@@ -25,3 +25,3 @@ import { | ||
const state = mapSignals(mergedProps) | ||
const reference = referenceContext.consume(element, null) | ||
const reference = referenceContext.consume(element) | ||
@@ -28,0 +28,0 @@ useEffect(element, () => { |
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
No License Found
License(Experimental) License information could not be found.
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
1019
87037
33
1
+ Added@aria-ui/core@0.0.6(transitive)
- Removed@aria-ui/core@0.0.5(transitive)
Updated@aria-ui/core@^0.0.6