New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atomico/hooks

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atomico/hooks - npm Package Compare versions

Comparing version 3.13.0 to 3.13.1

12

package.json
{
"name": "@atomico/hooks",
"description": "Series of utilities in hooks format to extend the operation of Atomico",
"version": "3.13.0",
"version": "3.13.1",
"type": "module",

@@ -39,4 +39,4 @@ "workspaces": [

"./use-controller": "./src/use-controller/use-controller.js",
"./use-css-light-dom": "./src/use-css-light-dom/use-css-light-dom.js",
"./use-copy": "./src/use-copy/use-copy.js",
"./use-css-light-dom": "./src/use-css-light-dom/use-css-light-dom.js",
"./use-debounce-state": "./src/use-debounce-state/use-debounce-state.js",

@@ -48,4 +48,4 @@ "./use-drag": "./src/use-drag/use-drag.js",

"./use-listener": "./src/use-listener/use-listener.js",
"./use-parent": "./src/use-parent/use-parent.js",
"./use-mutation-observer": "./src/use-mutation-observer/use-mutation-observer.js",
"./use-parent": "./src/use-parent/use-parent.js",
"./use-promise": "./src/use-promise/use-promise.js",

@@ -73,8 +73,8 @@ "./use-render": "./src/use-render/use-render.js",

],
"use-css-light-dom": [
"./types/use-css-light-dom/use-css-light-dom.d.ts"
],
"use-copy": [
"./types/use-copy/use-copy.d.ts"
],
"use-css-light-dom": [
"./types/use-css-light-dom/use-css-light-dom.d.ts"
],
"use-debounce-state": [

@@ -81,0 +81,0 @@ "./types/use-debounce-state/use-debounce-state.d.ts"

@@ -21,3 +21,4 @@ /**

const { current } = ref;
if (!current) return;
copy("value" in current ? current.value : current.textContent);
};

@@ -31,2 +31,4 @@ import { useEffect, useRef } from "atomico";

if (!current) return;
const onCapture = (event) => {

@@ -33,0 +35,0 @@ target.event = event;

@@ -16,2 +16,3 @@ import { useEffect, useState } from "atomico";

useEffect(() => {
if (!ref.current) return;
const observer = new MutationObserver(observe);

@@ -18,0 +19,0 @@ observer.observe(ref.current, config);

@@ -29,2 +29,3 @@ import { useEffect, useRef, useState } from "atomico";

const { current } = ref;
if (!current) return;
/**

@@ -31,0 +32,0 @@ * @param {Rect} rect

@@ -15,2 +15,3 @@ import { useState } from "atomico";

function getState() {
if (!ref.current) return;
const { clientWidth, clientHeight } = ref.current;

@@ -17,0 +18,0 @@ const match = matches.find(

@@ -5,2 +5,3 @@ import { useState, useEffect, Mark } from "atomico";

* @param {import("atomico").Ref<HTMLSlotElement>} ref
* @returns {ChildNode[]}
*/

@@ -12,2 +13,3 @@ export function useSlot(ref) {

const { current } = ref;
if (!current) return;
const type = "slotchange";

@@ -14,0 +16,0 @@

/**
*
* @param {import("atomico").Ref<HTMLSlotElement>} ref
* @returns {ChildNode[]}
*/
export function useSlot(ref: import("atomico").Ref<HTMLSlotElement>): never[];
export function useSlot(ref: import("atomico").Ref<HTMLSlotElement>): ChildNode[];
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc