@os-design/use-font-size
Advanced tools
Comparing version 1.0.24 to 1.0.25
{ | ||
"name": "@os-design/use-font-size", | ||
"version": "1.0.24", | ||
"version": "1.0.25", | ||
"license": "UNLICENSED", | ||
"repository": "git@gitlab.com:os-team/libs/os-design.git", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"type": "module", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
@@ -23,5 +23,4 @@ "dist", | ||
"clean": "rimraf dist", | ||
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx --out-dir dist/esm --source-maps", | ||
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx --out-dir dist/cjs --source-maps", | ||
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types", | ||
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx --out-dir dist", | ||
"build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly --declaration --declarationDir dist", | ||
"build": "yarn clean && npm-run-all 'build:*'", | ||
@@ -34,4 +33,4 @@ "ncu": "ncu -u" | ||
"dependencies": { | ||
"@os-design/use-browser-layout-effect": "^1.0.20", | ||
"@os-design/use-event": "^1.0.22" | ||
"@os-design/use-browser-layout-effect": "^1.0.21", | ||
"@os-design/use-event": "^1.0.23" | ||
}, | ||
@@ -41,3 +40,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "d0565d7592fff84723233b42ec230acbaa2103bb" | ||
"gitHead": "86a83e87297a07afe132782ca2c95023b7139276" | ||
} |
import useBrowserLayoutEffect from '@os-design/use-browser-layout-effect'; | ||
import useEvent from '@os-design/use-event'; | ||
import { RefObject, useCallback, useState } from 'react'; | ||
import { type RefObject, useCallback, useState } from 'react'; | ||
@@ -5,0 +5,0 @@ const computeFontSize = (target: Element | RefObject<Element>) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Yes
4614
8
50