@atomico/hooks
Advanced tools
Comparing version 3.46.1 to 3.47.0
import { | ||
useSlot | ||
} from "../chunk-V5WD4VE6.js"; | ||
} from "../chunk-JMPYQXTO.js"; | ||
import "../chunk-24T2IUIR.js"; | ||
@@ -5,0 +5,0 @@ import "../chunk-SCIANYTV.js"; |
import { | ||
useProxySlot, | ||
useSlot | ||
} from "../chunk-V5WD4VE6.js"; | ||
} from "../chunk-JMPYQXTO.js"; | ||
import "../chunk-24T2IUIR.js"; | ||
@@ -6,0 +6,0 @@ import "../chunk-SCIANYTV.js"; |
{ | ||
"name": "@atomico/hooks", | ||
"description": "Series of utilities in hooks format to extend the operation of Atomico", | ||
"version": "3.46.1", | ||
"version": "3.47.0", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "workspaces": [ |
@@ -5,5 +5,6 @@ /** | ||
* @param {import("atomico").Ref<HTMLSlotElement>} ref | ||
* @param {(node:ChildNode)=>boolean} [filter] - allows you to filter the nodes to be associated only when they change | ||
* @returns {T[]} | ||
*/ | ||
export function useSlot<T extends ChildNode>(ref: import("atomico").Ref<HTMLSlotElement>): T[]; | ||
export function useSlot<T extends ChildNode>(ref: import("atomico").Ref<HTMLSlotElement>, filter?: (node: ChildNode) => boolean): T[]; | ||
/** | ||
@@ -14,4 +15,5 @@ * creates a persistent list of nodes from a source with the intention of | ||
* @param {import("atomico").Ref<HTMLSlotElement>} ref | ||
* @param {(node:ChildNode)=>boolean} [filter] - allows you to filter the nodes to be associated only when they change | ||
* @returns {T[]} | ||
*/ | ||
export function useProxySlot<T extends ChildNode>(ref: import("atomico").Ref<HTMLSlotElement>): T[]; | ||
export function useProxySlot<T extends ChildNode>(ref: import("atomico").Ref<HTMLSlotElement>, filter?: (node: ChildNode) => boolean): T[]; |
71895
2137