From fa9e5ed801fa464d6efe283aaf4026272e71b352 Mon Sep 17 00:00:00 2001 From: Mark McDowell Date: Sun, 19 Jul 2020 21:48:40 +0100 Subject: [PATCH] fix(utils): @types/react-virtualized-auto-sizer is required as a dependency The types are exposed in withSize. --- package-lock.json | 9 +++------ packages/utils/package.json | 1 + packages/utils/src/withSize.tsx | 2 -- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index d606af70f..aa98bab54 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4864,6 +4864,7 @@ "@react-financial-charts/utils": { "version": "file:packages/utils", "requires": { + "@types/react-virtualized-auto-sizer": "^1.0.0", "react-virtualized-auto-sizer": "^1.0.2" } }, @@ -6120,8 +6121,7 @@ "@types/prop-types": { "version": "15.7.3", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz", - "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==", - "dev": true + "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==" }, "@types/q": { "version": "1.5.4", @@ -6143,7 +6143,6 @@ "version": "16.9.43", "resolved": "https://registry.npmjs.org/@types/react/-/react-16.9.43.tgz", "integrity": "sha512-PxshAFcnJqIWYpJbLPriClH53Z2WlJcVZE+NP2etUtWQs2s7yIMj3/LDKZT/5CHJ/F62iyjVCDu2H3jHEXIxSg==", - "dev": true, "requires": { "@types/prop-types": "*", "csstype": "^2.2.0" @@ -6180,7 +6179,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/@types/react-virtualized-auto-sizer/-/react-virtualized-auto-sizer-1.0.0.tgz", "integrity": "sha512-NMErdIdSnm2j/7IqMteRiRvRulpjoELnXWUwdbucYCz84xG9PHcoOrr7QfXwB/ku7wd6egiKFrzt/+QK4Imeeg==", - "dev": true, "requires": { "@types/react": "*" } @@ -10118,8 +10116,7 @@ "csstype": { "version": "2.6.11", "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.11.tgz", - "integrity": "sha512-l8YyEC9NBkSm783PFTvh0FmJy7s5pFKrDp49ZL7zBGX3fWkO+N4EEyan1qqp8cwPLDcD0OSdyY6hAMoxp34JFw==", - "dev": true + "integrity": "sha512-l8YyEC9NBkSm783PFTvh0FmJy7s5pFKrDp49ZL7zBGX3fWkO+N4EEyan1qqp8cwPLDcD0OSdyY6hAMoxp34JFw==" }, "currently-unhandled": { "version": "0.4.1", diff --git a/packages/utils/package.json b/packages/utils/package.json index 504954fd2..0f29315c2 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -38,6 +38,7 @@ "watch": "tsc -p tsconfig.json --watch --preserveWatchOutput" }, "dependencies": { + "@types/react-virtualized-auto-sizer": "^1.0.0", "react-virtualized-auto-sizer": "^1.0.2" }, "peerDependencies": { diff --git a/packages/utils/src/withSize.tsx b/packages/utils/src/withSize.tsx index 413e48e0d..509cca7eb 100644 --- a/packages/utils/src/withSize.tsx +++ b/packages/utils/src/withSize.tsx @@ -6,8 +6,6 @@ interface WithSizeProps { readonly height: number; } -export { AutoSizerProps }; - export const withSize = (props?: Omit) => { return (OriginalComponent: React.ComponentClass) => { return class WithSize extends React.Component> {