@octanejs/recharts 0.1.59 → 0.1.60

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.59",
3
+ "version": "0.1.60",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -55,7 +55,7 @@
55
55
  "react-dom": "19.2.7",
56
56
  "recharts": "3.9.2",
57
57
  "vitest": "^4.1.10",
58
- "octane": "0.9.0"
58
+ "octane": "0.9.1"
59
59
  },
60
60
  "scripts": {
61
61
  "test": "vitest run"
@@ -1,6 +1,5 @@
1
1
  import type { CSSProperties } from 'octane';
2
2
  import type { OctaneNode } from '../util/OctaneTypes.ts';
3
- import * as React from 'octane';
4
3
  import { useCallback, useEffect, useRef, useState } from 'octane';
5
4
  import { noop } from '../util/DataUtils';
6
5
  import { resolveDefaultProps } from '../util/resolveDefaultProps';
@@ -1,4 +1,4 @@
1
- import type { MutableRefObject, OctaneElement, OctaneNode } from '../util/OctaneTypes.ts';
1
+ import type { MutableRefObject, OctaneNode } from '../util/OctaneTypes.ts';
2
2
  import * as React from 'octane';
3
3
  import { useMemo, useRef } from 'octane';
4
4
  import { clsx } from 'clsx';
@@ -1,5 +1,4 @@
1
1
  import type { OctaneElement } from '../util/OctaneTypes.ts';
2
- import * as React from 'octane';
3
2
  import { isNumber } from '../util/DataUtils';
4
3
  import { Curve, type BaseLineType, type Props as CurveProps } from '../shape/Curve.tsrx';
5
4
  import type { CartesianLayout, LayoutType, ShapeAnimationProps } from '../util/types';
@@ -1,11 +1,6 @@
1
1
  import type { RegisteredCell } from '../context/CellsContext.ts';
2
2
  import type { CellPropsFor } from '../component/Cell.ts';
3
- import type {
4
- MutableRefObject,
5
- NativeMouseEvent,
6
- OctaneElement,
7
- OctaneNode,
8
- } from '../util/OctaneTypes.ts';
3
+ import type { MutableRefObject, NativeMouseEvent, OctaneNode } from '../util/OctaneTypes.ts';
9
4
  import type { Octane } from 'octane/jsx-runtime';
10
5
 
11
6
  type Key = Octane.Key;
@@ -1,4 +1,4 @@
1
- import type { ComponentType, OctaneNode } from '../util/OctaneTypes.ts';
1
+ import type { OctaneNode } from '../util/OctaneTypes.ts';
2
2
  import type { NormalizedStackId, StackId } from '../util/ChartUtils';
3
3
  import type { Props as LayerProps } from '../container/Layer.tsrx';
4
4
  import type { RectRadius } from '../shape/Rectangle.tsrx';
@@ -2,7 +2,6 @@ import type { SVGProps } from '../util/OctaneTypes.ts';
2
2
  /**
3
3
  * @fileOverview Render a group of error bar
4
4
  */
5
- import * as React from 'octane';
6
5
 
7
6
  import { Layer } from '../container/Layer.tsrx';
8
7
  import type { EasingInput, DataKey, RectangleCoordinate } from '../util/types';
@@ -1,9 +1,4 @@
1
- import type {
2
- MutableRefObject,
3
- OctaneElement,
4
- OctaneNode,
5
- RefObject,
6
- } from '../util/OctaneTypes.ts';
1
+ import type { MutableRefObject, OctaneNode, RefObject } from '../util/OctaneTypes.ts';
7
2
  import type { CurveType, Props as CurveProps } from '../shape/Curve.tsrx';
8
3
  import type { LineDrawShapeProps } from './LineDrawShape.tsrx';
9
4
  import type { CartesianLabelListEntry, ImplicitLabelListType } from '../component/LabelList.tsrx';
@@ -1,4 +1,3 @@
1
- import type { OctaneElement } from '../util/OctaneTypes.ts';
2
1
  import type {
3
2
  AxisInterval,
4
3
  AxisTick,
@@ -1,4 +1,4 @@
1
- import type { OctaneElement, SVGProps } from '../util/OctaneTypes.ts';
1
+ import type { SVGProps } from '../util/OctaneTypes.ts';
2
2
  import type {
3
3
  AxisDomainTypeInput,
4
4
  AxisInterval,
@@ -1,4 +1,3 @@
1
- import * as React from 'octane';
2
1
  import { useLayoutEffect, useRef } from 'octane';
3
2
  import type { AxisDomain, BaseAxisProps, ScaleType } from '../util/types';
4
3
  import {
@@ -1,5 +1,4 @@
1
1
  import type { ComponentType, OctaneElement, SVGProps } from '../util/OctaneTypes.ts';
2
- import * as React from 'octane';
3
2
  import { cloneElement, createElement, isValidElement } from 'octane';
4
3
  import { clsx } from 'clsx';
5
4
  import {
@@ -1,6 +1,5 @@
1
1
  import type { FunctionComponent, SVGProps } from '../util/OctaneTypes.ts';
2
2
  import { clsx } from 'clsx';
3
- import * as React from 'octane';
4
3
 
5
4
  import { polarToCartesian } from '../util/PolarUtils';
6
5
  import type { AxisId } from '../state/cartesianAxisSlice';
@@ -6,7 +6,6 @@ import type {
6
6
  MutableRefObject,
7
7
  NativeMouseEvent,
8
8
  NativeTouchEvent,
9
- OctaneElement,
10
9
  OctaneNode,
11
10
  } from '../util/OctaneTypes.ts';
12
11
  import * as React from 'octane';
@@ -7,12 +7,12 @@ import { selectUnfilteredCartesianItems } from './axisSelectors';
7
7
  import type { CartesianGraphicalItemSettings } from '../graphicalItemsSlice';
8
8
  import { selectBarRectangles } from './barSelectors';
9
9
 
10
- const pickStackId = (state: RechartsRootState, stackId: NormalizedStackId): NormalizedStackId =>
10
+ const pickStackId = (_state: RechartsRootState, stackId: NormalizedStackId): NormalizedStackId =>
11
11
  stackId;
12
12
 
13
13
  const pickIsPanorama = (
14
- state: RechartsRootState,
15
- stackId: NormalizedStackId,
14
+ _state: RechartsRootState,
15
+ _stackId: NormalizedStackId,
16
16
  isPanorama: boolean,
17
17
  ): boolean => isPanorama;
18
18
 
@@ -1,4 +1,3 @@
1
- import * as React from 'octane';
2
1
  import type { Props as FunnelProps, FunnelTrapezoidItem } from '../cartesian/Funnel.tsrx';
3
2
  import { Trapezoid } from '../shape/Trapezoid.tsrx';
4
3
  import type { ShapeAnimationProps } from './types';
@@ -12,8 +11,6 @@ export type FunnelTrapezoidProps =
12
11
  isActive: boolean;
13
12
  } & ShapeAnimationProps & FunnelTrapezoidItem;
14
13
 
15
- type FunnelTrapezoidShapeProps = Omit<FunnelTrapezoidProps, 'option'>;
16
-
17
14
  export function FunnelTrapezoid({ option, ...shapeProps }: FunnelTrapezoidProps) {
18
15
  return <Shape option={option} DefaultShape={defaultFunnelShape} shapeProps={shapeProps} />;
19
16
  }
@@ -1,4 +1,3 @@
1
- import * as React from 'octane';
2
1
  import type { RadialBarDataItem, RadialBarProps } from '../polar/RadialBar.tsrx';
3
2
  import { Sector } from '../shape/Sector.tsrx';
4
3
  import type { ShapeAnimationProps } from './types';
@@ -1,4 +1,3 @@
1
- import * as React from 'octane';
2
1
  import type { ActiveShape, ShapeAnimationProps, SymbolType } from './types';
3
2
  import type { ScatterPointItem } from '../cartesian/Scatter.tsrx';
4
3
  import { type InnerSymbolsProp, Symbols } from '../shape/Symbols.tsrx';