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

@equinor/eds-utils

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/eds-utils - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0-dev07072023

dist/eds-utils.cjs

1

dist/types/hooks/index.d.ts
export { useOutsideClick } from './useOutsideClick';
export * from './usePopper';
export { useGlobalKeyPress } from './useGlobalKeyPress';

@@ -4,0 +3,0 @@ export { useId } from './useId';

@@ -8,4 +8,4 @@ declare enum KEY {

}
declare type KEYTYPES = keyof typeof KEY;
type KEYTYPES = keyof typeof KEY;
export declare const useGlobalKeyPress: (targetKey: KEYTYPES, callback: (e: KeyboardEvent) => void) => void;
export {};
import type { ComponentToken } from '@equinor/eds-tokens';
export declare type Density = 'compact' | 'comfortable';
declare type UseToken = (options: {
export type Density = 'compact' | 'comfortable';
type UseToken = (options: {
density: Density;

@@ -5,0 +5,0 @@ }, token: ComponentToken) => () => ComponentToken;

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

declare type Callback<T> = (e: T) => void;
type Callback<T> = (e: T) => void;
export declare const joinHandlers: <T>(handler1?: Callback<T>, handler2?: Callback<T>) => Callback<T>;
export {};
import { RefAttributes, FC, ElementType, ComponentPropsWithRef } from 'react';
export declare type OverridableComponent<Component, Element extends HTMLElement> = {
export type OverridableComponent<Component, Element extends HTMLElement> = {
(props: Component & RefAttributes<Element>): ReturnType<FC>;

@@ -4,0 +4,0 @@ <As extends ElementType>(props: {

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

declare type ReactInternalHack = {
type ReactInternalHack = {
_valueTracker?: {

@@ -3,0 +3,0 @@ setValue: (a: string) => void;

import type { css } from 'styled-components';
export declare type StyledCSS = ReturnType<typeof css>;
declare type Shorthand = (token: {
export type StyledCSS = ReturnType<typeof css>;
type Shorthand = (token: {
width?: string | number;

@@ -5,0 +5,0 @@ style?: string;

{
"name": "@equinor/eds-utils",
"version": "0.7.0",
"version": "0.8.0-dev07072023",
"description": "Utility functions and hooks for the Equinor Design System",
"sideEffects": false,
"main": "dist/eds-utils.cjs.js",
"type": "module",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/eds-utils.cjs",
"default": "./dist/eds-utils.cjs"
}
},
"types": "dist/types/index.d.ts",
"main": "dist/eds-utils.cjs",
"license": "MIT",

@@ -34,31 +43,31 @@ "author": {

"devDependencies": {
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-node-resolve": "^14.1.0",
"@testing-library/dom": "^8.18.1",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^25.0.2",
"@rollup/plugin-node-resolve": "^15.1.0",
"@testing-library/dom": "^9.3.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^29.0.3",
"@types/ramda": "^0.28.15",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"@types/jest": "^29.5.2",
"@types/ramda": "^0.29.2",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@types/styled-components": "^5.1.26",
"@types/testing-library__jest-dom": "^5.14.5",
"babel-loader": "^8.2.5",
"babel-plugin-styled-components": "^2.0.7",
"jest": "^29.0.3",
"jest-environment-jsdom": "^29.0.3",
"@types/testing-library__jest-dom": "^5.14.6",
"babel-loader": "^9.1.2",
"babel-plugin-styled-components": "^2.1.4",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest-styled-components": "^7.1.1",
"js-file-download": "^0.4.12",
"ramda": "^0.28.0",
"ramda": "^0.29.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"rollup": "^2.79.1",
"rollup": "^3.25.3",
"rollup-plugin-delete": "^2.0.0",
"styled-components": "5.3.5",
"tsc-watch": "^5.0.3",
"typescript": "^4.8.3",
"webpack": "^5.74.0"
"styled-components": "5.3.9",
"tsc-watch": "^6.0.4",
"typescript": "^4.9.4",
"webpack": "^5.88.0"
},

@@ -71,7 +80,5 @@ "peerDependencies": {

"dependencies": {
"@babel/runtime": "^7.19.0",
"@equinor/eds-tokens": "0.9.0",
"@popperjs/core": "2.11.6",
"babel-jest": "^29.1.2",
"react-popper": "2.3.0"
"@babel/runtime": "^7.22.5",
"babel-jest": "^29.5.0",
"@equinor/eds-tokens": "0.9.2"
},

@@ -84,8 +91,7 @@ "engines": {

"scripts": {
"build": "rollup -c && tsc -p tsconfig.build.json",
"build": "rollup -c --bundleConfigAsCjs && tsc -p tsconfig.build.json",
"test": "tsc -p tsconfig.test.json && jest",
"test:watch": "tsc-watch -p tsconfig.test.json --onFirstSuccess \"jest --watch\"",
"types": "tsc -p tsconfig.build.json"
},
"module": "dist/esm/index.js"
}
}
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