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

@spark-web/utils

Package Overview
Dependencies
Maintainers
0
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spark-web/utils - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

10

dist/declarations/src/index.d.ts

@@ -1,5 +0,5 @@

export { mergeRefs } from './merge-refs';
export { assignRef, useComposedRefs } from './use-composed-refs';
export { useDisclosure } from './use-disclosure';
export { useIsomorphicLayoutEffect } from './use-isomorphic-layout-effect';
export { useSynchronizedAnimation } from './use-synchronized-animation';
export { mergeRefs } from "./merge-refs.js";
export { assignRef, useComposedRefs } from "./use-composed-refs.js";
export { useDisclosure } from "./use-disclosure.js";
export { useIsomorphicLayoutEffect } from "./use-isomorphic-layout-effect.js";
export { useSynchronizedAnimation } from "./use-synchronized-animation.js";

@@ -1,3 +0,3 @@

export { buildDataAttributes } from './build-data-attributes';
export { resetElementStyles } from './reset-element-styles';
export type { DataAttributeMap } from './build-data-attributes';
export { buildDataAttributes } from "./build-data-attributes.js";
export { resetElementStyles } from "./reset-element-styles.js";
export type { DataAttributeMap } from "./build-data-attributes.js";

@@ -19,2 +19,5 @@ import type { ElementType } from 'react';

};
readonly sup: {
verticalAlign: string;
};
readonly details: {

@@ -123,2 +126,11 @@ display: string;

readonly WebkitTapHighlightColor: "transparent";
} | {
verticalAlign: string;
margin: 0;
padding: 0;
border: 0;
boxSizing: "border-box";
fontSize: "100%";
font: "inherit";
WebkitTapHighlightColor: "transparent";
};

@@ -17,5 +17,5 @@ import type { ComponentPropsWithoutRef, ElementType, ReactElement, ReactNode, Ref } from 'react';

*/
export declare const forwardRefWithAs: <DefaultElementType extends ElementType<any>, BaseProps>(render: (props: BaseProps & {
as?: ElementType<any> | undefined;
export declare const forwardRefWithAs: <DefaultElementType extends ElementType<any, keyof import("react").JSX.IntrinsicElements>, BaseProps>(render: (props: BaseProps & {
as?: ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
}, ref: Ref<any>) => Exclude<ReactNode, undefined>) => CompWithAsProp<BaseProps, DefaultElementType>;
export {};

@@ -1,4 +0,4 @@

export { forwardRefWithAs } from './forward-ref-with-as';
export { isBoolean, isFunction, isNumber, isString } from './type-check';
export { typedKeys } from './utility-functions';
export type { AssignableRef, ElementTagNameMap, SingleOrArray, } from './utility-types';
export { forwardRefWithAs } from "./forward-ref-with-as.js";
export { isBoolean, isFunction, isNumber, isString } from "./type-check.js";
export { typedKeys } from "./utility-functions.js";
export type { AssignableRef, ElementTagNameMap, SingleOrArray, } from "./utility-types.js";

@@ -10,2 +10,2 @@ /**

*/
export declare function typedKeys<T>(value: T): (keyof T)[];
export declare function typedKeys<T extends object>(value: T): (keyof T)[];

@@ -1,2 +0,2 @@

import type { AssignableRef } from './ts';
import type { AssignableRef } from "./ts/index.js";
/**

@@ -3,0 +3,0 @@ * Passes or assigns an arbitrary value to a ref function or object.

export * from "./declarations/src/index";
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bhcmstd2ViLXV0aWxzLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==

@@ -5,3 +5,2 @@ 'use strict';

var _createForOfIteratorHelper = require('@babel/runtime/helpers/createForOfIteratorHelper');
var react = require('react');

@@ -64,18 +63,10 @@ var typeCheck = require('./type-check-042a577c.cjs.dev.js');

return react.useCallback(function (node) {
var _iterator = _createForOfIteratorHelper(refs),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var ref = _step.value;
assignRef(ref, node);
}
// `refs` is already an array. If we do what ESLint wants us to do
// and wrap `refs` in square brackets, then the useCallback will fire
// on every render (not just when the dependencies change).
// eslint-disable-next-line react-hooks/exhaustive-deps
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
for (var _i = 0, _refs = refs; _i < _refs.length; _i++) {
var ref = _refs[_i];
assignRef(ref, node);
}
// `refs` is already an array. If we do what ESLint wants us to do
// and wrap `refs` in square brackets, then the useCallback will fire
// on every render (not just when the dependencies change).
// eslint-disable-next-line react-hooks/exhaustive-deps
}, refs);

@@ -82,0 +73,0 @@ }

@@ -5,3 +5,2 @@ 'use strict';

var _createForOfIteratorHelper = require('@babel/runtime/helpers/createForOfIteratorHelper');
var react = require('react');

@@ -64,18 +63,10 @@ var typeCheck = require('./type-check-bd3afe6c.cjs.prod.js');

return react.useCallback(function (node) {
var _iterator = _createForOfIteratorHelper(refs),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var ref = _step.value;
assignRef(ref, node);
}
// `refs` is already an array. If we do what ESLint wants us to do
// and wrap `refs` in square brackets, then the useCallback will fire
// on every render (not just when the dependencies change).
// eslint-disable-next-line react-hooks/exhaustive-deps
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
for (var _i = 0, _refs = refs; _i < _refs.length; _i++) {
var ref = _refs[_i];
assignRef(ref, node);
}
// `refs` is already an array. If we do what ESLint wants us to do
// and wrap `refs` in square brackets, then the useCallback will fire
// on every render (not just when the dependencies change).
// eslint-disable-next-line react-hooks/exhaustive-deps
}, refs);

@@ -82,0 +73,0 @@ }

@@ -1,2 +0,1 @@

import _createForOfIteratorHelper from '@babel/runtime/helpers/esm/createForOfIteratorHelper';
import { useCallback, useState, useLayoutEffect, useRef } from 'react';

@@ -59,18 +58,10 @@ import { i as isFunction } from './type-check-d8c35507.esm.js';

return useCallback(function (node) {
var _iterator = _createForOfIteratorHelper(refs),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var ref = _step.value;
assignRef(ref, node);
}
// `refs` is already an array. If we do what ESLint wants us to do
// and wrap `refs` in square brackets, then the useCallback will fire
// on every render (not just when the dependencies change).
// eslint-disable-next-line react-hooks/exhaustive-deps
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
for (var _i = 0, _refs = refs; _i < _refs.length; _i++) {
var ref = _refs[_i];
assignRef(ref, node);
}
// `refs` is already an array. If we do what ESLint wants us to do
// and wrap `refs` in square brackets, then the useCallback will fire
// on every render (not just when the dependencies change).
// eslint-disable-next-line react-hooks/exhaustive-deps
}, refs);

@@ -77,0 +68,0 @@ }

export * from "../../dist/declarations/src/internal/index";
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bhcmstd2ViLXV0aWxzLWludGVybmFsLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vZGlzdC9kZWNsYXJhdGlvbnMvc3JjL2ludGVybmFsL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==

@@ -52,2 +52,5 @@ 'use strict';

};
var sup = {
verticalAlign: 'super'
};
var table = {

@@ -92,2 +95,3 @@ borderCollapse: 'collapse',

aside: block,
sup: sup,
details: block,

@@ -94,0 +98,0 @@ figcaption: block,

@@ -52,2 +52,5 @@ 'use strict';

};
var sup = {
verticalAlign: 'super'
};
var table = {

@@ -92,2 +95,3 @@ borderCollapse: 'collapse',

aside: block,
sup: sup,
details: block,

@@ -94,0 +98,0 @@ figcaption: block,

@@ -48,2 +48,5 @@ import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';

};
var sup = {
verticalAlign: 'super'
};
var table = {

@@ -88,2 +91,3 @@ borderCollapse: 'collapse',

aside: block,
sup: sup,
details: block,

@@ -90,0 +94,0 @@ figcaption: block,

{
"name": "@spark-web/utils",
"version": "1.3.0",
"version": "1.3.1",
"homepage": "https://github.com/brighte-labs/spark-web#readme",

@@ -18,3 +18,3 @@ "repository": {

"dependencies": {
"@babel/runtime": "^7.19.0"
"@babel/runtime": "^7.25.0"
},

@@ -21,0 +21,0 @@ "devDependencies": {

export * from "../../dist/declarations/src/ts/index";
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bhcmstd2ViLXV0aWxzLXRzLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vZGlzdC9kZWNsYXJhdGlvbnMvc3JjL3RzL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
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