Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dev dependencies #42

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@
},
"homepage": "https://github.com/zakodium-oss/react-d3-utils#readme",
"devDependencies": {
"@storybook/addon-essentials": "^8.3.5",
"@storybook/addon-links": "^8.3.5",
"@storybook/addon-storysource": "^8.3.5",
"@storybook/react": "^8.3.5",
"@storybook/react-vite": "^8.3.5",
"@storybook/addon-essentials": "^8.4.7",
"@storybook/addon-links": "^8.4.7",
"@storybook/addon-storysource": "^8.4.7",
"@storybook/react": "^8.4.7",
"@storybook/react-vite": "^8.4.7",
"@types/react": "^18.3.11",
"eslint": "^9.12.0",
"eslint-config-zakodium": "^13.0.0",
"prettier": "^3.3.3",
"eslint": "^9.17.0",
"eslint-config-zakodium": "^14.0.0",
"prettier": "^3.4.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rimraf": "^6.0.1",
"typescript": "^5.6.3"
"typescript": "^5.7.2"
},
"dependencies": {
"@types/d3-scale": "^4.0.8",
"d3-scale": "^4.0.2",
"use-resize-observer": "^9.1.0"
},
"volta": {
"node": "22.9.0"
"node": "22.12.0"
}
}
3 changes: 2 additions & 1 deletion src/components/AlignGroup.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { type CSSProperties, type ReactNode, useMemo } from 'react';
import { useMemo } from 'react';
import type { CSSProperties, ReactNode } from 'react';

import { useBBoxObserver } from '../hooks/useBBoxObserver.js';

Expand Down
3 changes: 2 additions & 1 deletion src/hooks/useBBoxObserver.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { type RefCallback, useCallback, useRef, useState } from 'react';
import { useCallback, useRef, useState } from 'react';
import type { RefCallback } from 'react';

const initialSize = { x: 0, y: 0, width: 0, height: 0 };

Expand Down
6 changes: 4 additions & 2 deletions src/hooks/useLinearPrimaryTicks.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import type { ScaleContinuousNumeric } from 'd3-scale';
import { type MutableRefObject, useState } from 'react';
import { useState } from 'react';
import type { MutableRefObject } from 'react';

import { type Tick, useTicks } from './useTicks.js';
import { useTicks } from './useTicks.js';
import type { Tick } from './useTicks.js';

type Directions = 'horizontal' | 'vertical';

Expand Down
9 changes: 2 additions & 7 deletions src/hooks/useLogTicks.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import type { ScaleContinuousNumeric } from 'd3-scale';
import {
type MutableRefObject,
useCallback,
useEffect,
useMemo,
useState,
} from 'react';
import { useCallback, useEffect, useMemo, useState } from 'react';
import type { MutableRefObject } from 'react';

import { textDimensions } from '../utils.js';

Expand Down
8 changes: 2 additions & 6 deletions src/hooks/useTicks.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import type { ScaleContinuousNumeric, ScaleTime } from 'd3-scale';
import {
type Dispatch,
type MutableRefObject,
type SetStateAction,
useEffect,
} from 'react';
import { useEffect } from 'react';
import type { Dispatch, MutableRefObject, SetStateAction } from 'react';

import { textDimensions } from '../utils.js';

Expand Down
6 changes: 4 additions & 2 deletions src/hooks/useTimeTicks.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import type { ScaleTime } from 'd3-scale';
import { type MutableRefObject, useState } from 'react';
import { useState } from 'react';
import type { MutableRefObject } from 'react';

import { type Tick, useTicks } from './useTicks.js';
import { useTicks } from './useTicks.js';
import type { Tick } from './useTicks.js';

type Directions = 'horizontal' | 'vertical';

Expand Down
7 changes: 2 additions & 5 deletions stories/components/AlignGroup.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import type { Meta } from '@storybook/react';
import { useEffect, useState } from 'react';

import {
AlignGroup,
type AlignGroupProps,
useBBoxObserver,
} from '../../src/index.js';
import { AlignGroup, useBBoxObserver } from '../../src/index.js';
import type { AlignGroupProps } from '../../src/index.js';

const DEBUG_COLOR = 'yellow';

Expand Down
6 changes: 4 additions & 2 deletions stories/components/ResponsiveChart.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import type { Meta } from '@storybook/react';
import { type ReactNode, useEffect, useState } from 'react';
import { useEffect, useState } from 'react';
import type { ReactNode } from 'react';

import { ResponsiveChart, type ResponsiveChartProps } from '../../src/index.js';
import { ResponsiveChart } from '../../src/index.js';
import type { ResponsiveChartProps } from '../../src/index.js';

export default {
title: 'components/ResponsiveChart',
Expand Down
10 changes: 2 additions & 8 deletions stories/hooks/TestAxis.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import {
type ScaleLinear,
scaleLinear,
scaleLog,
type ScaleLogarithmic,
type ScaleTime,
scaleTime,
} from 'd3-scale';
import { scaleLinear, scaleLog, scaleTime } from 'd3-scale';
import type { ScaleLinear, ScaleLogarithmic, ScaleTime } from 'd3-scale';
import React, { forwardRef, useEffect, useMemo, useRef, useState } from 'react';

import {
Expand Down
3 changes: 2 additions & 1 deletion stories/hooks/advanced_ticks.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Meta } from '@storybook/react';
import { type ScaleContinuousNumeric, scaleLinear } from 'd3-scale';
import { scaleLinear } from 'd3-scale';
import type { ScaleContinuousNumeric } from 'd3-scale';
import React, { forwardRef, useRef, useState } from 'react';

import type { Tick } from '../../src/index.js';
Expand Down
Loading