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.31.0 to 3.32.0

2

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

@@ -6,0 +6,0 @@ "workspaces": [

@@ -7,3 +7,3 @@ import { useHost, useLayoutEffect } from "atomico";

* Create a style collector to apply once the render is finished
* @param {import("atomico").Sheet} sheet
* @param {import("atomico").Sheets} sheet
*/

@@ -24,6 +24,12 @@ export function useCssLightDom(sheet) {

getRules(
sheet,
current.localName + `[data-sheet="${current.dataset.sheet}"]`
).forEach((rule, index) => style.sheet.insertRule(rule, index));
(Array.isArray(sheet) ? sheet.flat(100) : [sheet]).forEach(
(sheet) =>
sheet &&
getRules(
sheet,
current.localName + `[data-sheet="${current.dataset.sheet}"]`
).forEach((rule) =>
style.sheet.insertRule(rule, style.sheet.cssRules.length)
)
);

@@ -30,0 +36,0 @@ return () => style.remove();

/**
* Create a style collector to apply once the render is finished
* @param {import("atomico").Sheet} sheet
* @param {import("atomico").Sheets} sheet
*/
export function useCssLightDom(sheet: import("atomico").Sheet): void;
export function useCssLightDom(sheet: import("atomico").Sheets): void;
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