react-easy-heatmap
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,2 +0,1 @@ | ||
import type { InternalMarkObj } from '../Marks'; | ||
/** Format value align with step & marks */ | ||
@@ -9,3 +8,3 @@ declare type FormatValue = (value: number) => number; | ||
}; | ||
export default function useOffset(min: number, max: number, step: number, markList: InternalMarkObj[], allowCross: boolean, pushable: false | number): [FormatValue, OffsetValues]; | ||
export default function useOffset(min: number, max: number, step: number, allowCross: boolean, pushable: false | number): [FormatValue, OffsetValues]; | ||
export {}; |
import * as React from 'react'; | ||
import type { HandlesProps } from './Handles'; | ||
import type { AriaValueFormat } from './interface'; | ||
import type { MarkObj } from './Marks'; | ||
import './index.less'; | ||
/** | ||
* New: | ||
* - click mark to update range value | ||
* - handleRender | ||
@@ -53,3 +51,2 @@ * - Fix handle with count not correct | ||
activeDotStyle?: React.CSSProperties | ((dotValue: number) => React.CSSProperties); | ||
marks?: Record<string | number, React.ReactNode | MarkObj>; | ||
dots?: boolean; | ||
@@ -56,0 +53,0 @@ handleRender?: HandlesProps['handleRender']; |
import * as React from 'react'; | ||
import type { InternalMarkObj } from '../Marks'; | ||
export interface StepsProps { | ||
prefixCls: string; | ||
marks: InternalMarkObj[]; | ||
dots?: boolean; | ||
@@ -7,0 +5,0 @@ style?: React.CSSProperties | ((dotValue: number) => React.CSSProperties); |
{ | ||
"name": "react-easy-heatmap", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "An easy heatmap component with React", | ||
@@ -15,10 +15,5 @@ "author": "young.liu", | ||
"scripts": { | ||
"build": "microbundle-crl --no-compress --format modern,cjs --css-modules false && cp -r src/assets dist/", | ||
"build": "microbundle-crl --no-sourcemap --compress --format modern,cjs --css-modules false && cp -r src/assets dist/", | ||
"start": "microbundle-crl watch --no-compress --format modern,cjs --css-modules false", | ||
"prepare": "run-s build", | ||
"test": "run-s test:unit test:lint test:build", | ||
"test:build": "run-s build", | ||
"test:lint": "eslint .", | ||
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom", | ||
"test:watch": "react-scripts test --env=jsdom", | ||
"predeploy": "cd example && npm install && npm run build", | ||
@@ -31,6 +26,2 @@ "deploy": "gh-pages -d example/build" | ||
"devDependencies": { | ||
"@testing-library/jest-dom": "^4.2.4", | ||
"@testing-library/react": "^9.5.0", | ||
"@testing-library/user-event": "^7.2.1", | ||
"@types/jest": "^25.1.4", | ||
"@types/node": "^12.12.38", | ||
@@ -78,5 +69,5 @@ "@types/rc-slider": "^9.3.1", | ||
"react", | ||
"reactjs", | ||
"reacts", | ||
"react-component" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
26
1
159083
36
814
2