@octanejs/recharts 0.1.49 → 0.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/recharts",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.51",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -43,19 +43,19 @@
|
|
|
43
43
|
"reselect": "5.2.0",
|
|
44
44
|
"tiny-invariant": "^1.3.3",
|
|
45
45
|
"victory-vendor": "^37.3.6",
|
|
46
|
-
"@octanejs/redux": "0.1.
|
|
46
|
+
"@octanejs/redux": "0.1.50"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"octane": "^0.1.51 || ^0.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@tsrx/react": "^0.
|
|
52
|
+
"@tsrx/react": "^0.3.0",
|
|
53
53
|
"esbuild": "^0.28.1",
|
|
54
|
-
"react": "
|
|
55
|
-
"react-dom": "
|
|
54
|
+
"react": "19.2.7",
|
|
55
|
+
"react-dom": "19.2.7",
|
|
56
56
|
"recharts": "3.9.2",
|
|
57
57
|
"vitest": "^4.1.10",
|
|
58
|
-
"octane": "0.2.
|
|
58
|
+
"octane": "0.2.12"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"test": "vitest run"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { CSSProperties } from 'octane';
|
|
1
2
|
import type { OctaneNode } from '../util/OctaneTypes.ts';
|
|
2
3
|
import * as React from 'octane';
|
|
3
4
|
import { useCallback, useEffect, useRef, useState } from 'octane';
|
|
4
|
-
import type { Octane } from 'octane/jsx-runtime';
|
|
5
5
|
import { noop } from '../util/DataUtils';
|
|
6
6
|
import { resolveDefaultProps } from '../util/resolveDefaultProps';
|
|
7
7
|
import { useAnimationController } from './useAnimationController';
|
|
@@ -13,12 +13,6 @@ import { RequestAnimationFrameTimeoutController } from './timeoutController';
|
|
|
13
13
|
import { EasingInput, NamedBezier } from './easing';
|
|
14
14
|
import type { AnimationController } from './AnimationController';
|
|
15
15
|
|
|
16
|
-
// `octane` does not export `CSSProperties`. The object form of octane's JSX
|
|
17
|
-
// `style` prop is the type this render prop hands out, so take it from there
|
|
18
|
-
// (`octane/jsx-runtime` types it as `string | CSSProperties`) rather than
|
|
19
|
-
// importing @types/react, which this package does not depend on.
|
|
20
|
-
type CSSProperties = Exclude<NonNullable<Octane.HTMLAttributes<Element>['style']>, string>;
|
|
21
|
-
|
|
22
16
|
type CSSTransitionAnimateProps = {
|
|
23
17
|
animationId: string;
|
|
24
18
|
animationController?: AnimationController;
|
package/src/util/OctaneTypes.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
// DOM contracts shared by the authored Recharts port. Events are native,
|
|
2
2
|
// while element props and refs follow Octane's public JSX type surface.
|
|
3
|
-
import type { OctaneNode } from 'octane';
|
|
3
|
+
import type { CSSProperties, OctaneNode } from 'octane';
|
|
4
4
|
import type { Octane } from 'octane/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
export type { OctaneNode } from 'octane';
|
|
6
|
+
export type { CSSProperties, OctaneNode } from 'octane';
|
|
7
7
|
export type { OctaneElement } from 'octane/jsx-runtime';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export type
|
|
11
|
-
export type
|
|
8
|
+
// Chart layout and text measurement consume CSS values before rendering them.
|
|
9
|
+
type PlainStyleProps<P> = Omit<P, 'style'> & { style?: CSSProperties };
|
|
10
|
+
export type SVGProps<T> = PlainStyleProps<Octane.SVGProps<T>>;
|
|
11
|
+
export type SVGAttributes<T> = PlainStyleProps<Octane.SVGAttributes<T>>;
|
|
12
|
+
export type HTMLAttributes<T> = PlainStyleProps<Octane.HTMLAttributes<T>>;
|
|
12
13
|
export type AriaAttributes = Pick<
|
|
13
14
|
Octane.SVGAttributes<Element>,
|
|
14
15
|
Extract<keyof Octane.SVGAttributes<Element>, `aria-${string}`>
|