@shopify/polaris-viz
Advanced tools
Comparing version 0.15.1 to 0.16.0
@@ -5,2 +5,8 @@ # Changelog | ||
## [0.16.0] - 2021-05-26 | ||
### Changed | ||
- Upgrades `react-spring` to version `9.1.2`, which offers improved types, new features, and fixes memory leaks. We don't expect this upgrade to change the functionality of any of our components. | ||
## [0.15.1] - 2021-05-25 | ||
@@ -7,0 +13,0 @@ |
{ | ||
"name": "@shopify/polaris-viz", | ||
"description": "Shopify’s viz component library", | ||
"version": "0.15.1", | ||
"version": "0.16.0", | ||
"private": false, | ||
@@ -139,2 +139,3 @@ "license": "SEE LICENSE IN LICENSE.md", | ||
"dependencies": { | ||
"@react-spring/web": "^9.1.2", | ||
"@shopify/css-utilities": "^1.0.0", | ||
@@ -149,3 +150,2 @@ "@shopify/polaris-tokens": "^3.0.0", | ||
"lodash.throttle": "^4.1.1", | ||
"react-spring": "^8.0.27", | ||
"use-debounce": "^3.3.0" | ||
@@ -152,0 +152,0 @@ }, |
/// <reference types="react" /> | ||
import { OpaqueInterpolation } from 'react-spring'; | ||
import { SpringValue } from '@react-spring/web'; | ||
import { ScaleLinear } from 'd3-scale'; | ||
@@ -20,3 +20,3 @@ interface Props { | ||
hasRoundedCorners?: boolean; | ||
height?: OpaqueInterpolation<any> | number; | ||
height?: SpringValue | number; | ||
rotateZeroBars: boolean; | ||
@@ -23,0 +23,0 @@ } |
/// <reference types="react" /> | ||
import { Interpolation } from '@react-spring/web'; | ||
interface Props { | ||
x: number; | ||
x: number | Interpolation; | ||
height: number; | ||
@@ -5,0 +6,0 @@ opacity?: number; |
@@ -11,3 +11,6 @@ import { Line } from 'd3-shape'; | ||
}): { | ||
animatedCoordinates: any[] | null; | ||
animatedCoordinates: import("@react-spring/core").Interpolation<number, { | ||
x: number; | ||
y: number; | ||
}>[] | null; | ||
}; |
import React from 'react'; | ||
import { ActiveTooltip } from 'types'; | ||
import { OpaqueInterpolation } from 'react-spring'; | ||
import { Interpolation } from '@react-spring/web'; | ||
interface Props { | ||
active: boolean; | ||
cx: number | OpaqueInterpolation<number>; | ||
cy: number; | ||
cx: number | Interpolation; | ||
cy: number | Interpolation; | ||
color: string; | ||
@@ -9,0 +9,0 @@ index: number; |
/// <reference types="react" /> | ||
import { ScaleLinear } from 'd3-scale'; | ||
import { OpaqueInterpolation } from 'react-spring'; | ||
import { SpringValue } from '@react-spring/web'; | ||
import { SparkChartData } from '../../../../types'; | ||
@@ -10,5 +10,5 @@ interface Props { | ||
width: number; | ||
height?: OpaqueInterpolation<any> | number; | ||
height?: SpringValue<number> | number; | ||
} | ||
export declare function Bar({ x, rawValue, yScale, width, height }: Props): JSX.Element | null; | ||
export {}; |
@@ -0,1 +1,2 @@ | ||
import { InterpolatorFn } from '@react-spring/web'; | ||
export interface Data { | ||
@@ -45,1 +46,3 @@ label: string; | ||
export declare type SparkChartData = number | null; | ||
export declare type PathInterpolator = InterpolatorFn<ReadonlyArray<number>, string>; | ||
export declare type NumberInterpolator = InterpolatorFn<ReadonlyArray<number>, number>; |
@@ -1,1 +0,4 @@ | ||
export declare function getPointAtLength(element: SVGPathElement | null, length: number | null): 0 | DOMPoint; | ||
export declare function getPointAtLength(element: SVGPathElement | null, length: number | null): DOMPoint | { | ||
x: number; | ||
y: number; | ||
}; |
@@ -26,1 +26,2 @@ export { eventPoint } from './event-point'; | ||
export { shouldRotateZeroBars } from './should-rotate-zero-bars'; | ||
export { isNumber } from './is-number'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
806883
383
11381
+ Added@react-spring/web@^9.1.2
+ Added@react-spring/animated@9.7.5(transitive)
+ Added@react-spring/core@9.7.5(transitive)
+ Added@react-spring/rafz@9.7.5(transitive)
+ Added@react-spring/shared@9.7.5(transitive)
+ Added@react-spring/types@9.7.5(transitive)
+ Added@react-spring/web@9.7.5(transitive)
- Removedreact-spring@^8.0.27
- Removed@babel/runtime@7.26.7(transitive)
- Removedreact-spring@8.0.27(transitive)
- Removedregenerator-runtime@0.14.1(transitive)