@tpzdsp/next-toolkit 1.11.0 → 1.11.2

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,7 +1,11 @@
1
1
  {
2
2
  "name": "@tpzdsp/next-toolkit",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "description": "A reusable React component library for Next.js applications",
5
+ "engines": {
6
+ "node": ">= 24.12.0",
7
+ "yarn": ">=1.22.22"
8
+ },
5
9
  "type": "module",
6
10
  "private": false,
7
11
  "homepage": "https://github.com/DSP3-apps/next-toolkit#readme",
@@ -114,28 +118,22 @@
114
118
  "release": "semantic-release"
115
119
  },
116
120
  "devDependencies": {
117
- "@better-fetch/fetch": "1.1.19-beta.1",
121
+ "@better-fetch/fetch": "^1.1.21",
118
122
  "@eslint/js": "^9.30.1",
119
123
  "@semantic-release/changelog": "^6.0.3",
120
124
  "@semantic-release/git": "^10.0.1",
121
- "@semantic-release/github": "^11.0.3",
122
- "@storybook/addon-docs": "8.6.14",
123
- "@storybook/addon-essentials": "^8.6.14",
124
- "@storybook/addon-interactions": "^8.6.14",
125
- "@storybook/addon-links": "8.6.14",
126
- "@storybook/addon-onboarding": "8.6.14",
127
- "@storybook/preview-api": "^8.6.14",
128
- "@storybook/react": "8.6.14",
129
- "@storybook/react-vite": "8.6.14",
130
- "@storybook/test": "^8.6.14",
131
- "@storybook/types": "8.6.14",
125
+ "@semantic-release/github": "^12.0.2",
126
+ "@storybook/addon-docs": "10.2.0",
127
+ "@storybook/addon-links": "10.2.0",
128
+ "@storybook/addon-onboarding": "10.2.0",
129
+ "@storybook/react-vite": "10.2.0",
132
130
  "@tailwindcss/typography": "^0.5.16",
133
131
  "@tanstack/react-query": "^5.89.0",
134
132
  "@testing-library/dom": "^10.4.0",
135
133
  "@testing-library/jest-dom": "^6.6.3",
136
134
  "@testing-library/react": "^16.3.0",
137
135
  "@testing-library/user-event": "^14.6.1",
138
- "@tpzdsp/eslint-config-dsp": "^1.9.1",
136
+ "@tpzdsp/eslint-config-dsp": "^1.9.2",
139
137
  "@turf/turf": "^7.2.0",
140
138
  "@types/geojson": "^7946.0.16",
141
139
  "@types/jsonwebtoken": "^9.0.10",
@@ -144,8 +142,8 @@
144
142
  "@types/react-dom": "^19.1.6",
145
143
  "@typescript-eslint/eslint-plugin": "^8.38.0",
146
144
  "@typescript-eslint/parser": "^8.38.0",
147
- "@vitejs/plugin-react": "^4.6.0",
148
- "@vitest/coverage-v8": "^3.2.4",
145
+ "@vitejs/plugin-react": "^5.1.2",
146
+ "@vitest/coverage-v8": "^4.0.17",
149
147
  "@vitest/eslint-plugin": "^1.3.4",
150
148
  "autoprefixer": "^10.4.21",
151
149
  "buffer": "^6.0.3",
@@ -158,27 +156,27 @@
158
156
  "eslint-plugin-import": "^2.32.0",
159
157
  "eslint-plugin-jest-dom": "^5.5.0",
160
158
  "eslint-plugin-jsx-a11y": "^6.10.2",
161
- "eslint-plugin-prettier": "^5.5.3",
159
+ "eslint-plugin-prettier": "^5.5.5",
162
160
  "eslint-plugin-react": "^7.37.5",
163
- "eslint-plugin-react-hooks": "^5.2.0",
161
+ "eslint-plugin-react-hooks": "^7.0.1",
164
162
  "eslint-plugin-react-refresh": "^0.4.20",
165
- "eslint-plugin-sonarjs": "^3.0.4",
166
- "eslint-plugin-storybook": "^9.0.18",
163
+ "eslint-plugin-sonarjs": "^3.0.5",
164
+ "eslint-plugin-storybook": "10.2.0",
167
165
  "focus-trap": "^7.6.5",
168
166
  "focus-trap-react": "^11.0.4",
169
167
  "geojson": "^0.5.0",
170
- "globals": "^16.3.0",
168
+ "globals": "^17.0.0",
171
169
  "husky": "^9.1.7",
172
- "jsdom": "^26.1.0",
170
+ "jsdom": "^27.4.0",
173
171
  "jsonwebtoken": "^9.0.3",
174
- "next": "^15.5.7",
172
+ "next": "^16.1.4",
175
173
  "ol": "^10.6.1",
176
174
  "ol-geocoder": "^4.3.3",
177
175
  "ol-mapbox-style": "^13.0.1",
178
176
  "postcss": "^8.5.6",
179
- "prettier": "^3.6.2",
180
- "prettier-plugin-classnames": "^0.8.1",
181
- "prettier-plugin-tailwindcss": "^0.6.14",
177
+ "prettier": "^3.8.1",
178
+ "prettier-plugin-classnames": "^0.9.0",
179
+ "prettier-plugin-tailwindcss": "^0.7.2",
182
180
  "process": "^0.11.10",
183
181
  "proj4": "^2.19.10",
184
182
  "react": "^19.2.1",
@@ -188,21 +186,21 @@
188
186
  "react-select": "^5.10.2",
189
187
  "react-select-event": "^5.5.1",
190
188
  "rollup-plugin-peer-deps-external": "^2.2.4",
191
- "semantic-release": "^24.2.7",
192
- "storybook": "8.6.14",
189
+ "semantic-release": "^25.0.2",
190
+ "storybook": "10.2.0",
193
191
  "stream-browserify": "^3.0.0",
194
192
  "tailwind-merge": "^3.3.1",
195
193
  "tailwindcss": "^3.4.16",
196
- "typescript": "~5.8.3",
194
+ "typescript": "^5.9.3",
197
195
  "typescript-eslint": "^8.35.1",
198
196
  "util": "^0.12.5",
199
197
  "vite": "^7.0.4",
200
198
  "vite-plugin-dts": "^4.5.4",
201
- "vitest": "^3.2.4",
199
+ "vitest": "^4.0.17",
202
200
  "zod": "^4.1.8"
203
201
  },
204
202
  "peerDependencies": {
205
- "@better-fetch/fetch": "1.1.19-beta.1",
203
+ "@better-fetch/fetch": "^1.1.21",
206
204
  "@tanstack/react-query": "^5.89.0",
207
205
  "@testing-library/react": "^16.0.0",
208
206
  "@testing-library/user-event": "^14.6.1",
@@ -213,7 +211,7 @@
213
211
  "focus-trap": "^7.6.5",
214
212
  "focus-trap-react": "^11.0.4",
215
213
  "geojson": "^0.5.0",
216
- "next": "^15.5.7",
214
+ "next": "^16.1.4",
217
215
  "ol": "^10.6.1",
218
216
  "ol-geocoder": "^4.3.3",
219
217
  "ol-mapbox-style": "^13.0.1",
@@ -1,7 +1,6 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
- // eslint-disable-next-line sonarjs/no-implicit-dependencies
3
- import { action } from '@storybook/addon-actions';
4
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import { action } from 'storybook/actions';
2
+
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
5
4
 
6
5
  import { Button } from './Button';
7
6
 
@@ -1,7 +1,6 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
1
  import { FaChevronRight } from 'react-icons/fa6';
3
2
 
4
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
5
4
 
6
5
  import { Card } from './Card';
7
6
  import { ExternalLink } from '../link/ExternalLink';
@@ -1,7 +1,6 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
1
  import type { FallbackProps } from 'react-error-boundary';
3
2
 
4
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
5
4
 
6
5
  import { ErrorBoundary } from './ErrorBoundary';
7
6
 
@@ -12,7 +12,7 @@ type ErrorBoundaryProps = {
12
12
 
13
13
  export const ErrorBoundary = ({ children, fallback, onReset }: ErrorBoundaryProps) => {
14
14
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
15
- const logError = (error: Error, info: ErrorInfo) => {
15
+ const logError = (error: unknown, info: ErrorInfo) => {
16
16
  // send error to third party api, etc
17
17
  };
18
18
 
@@ -1,5 +1,4 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
3
2
 
4
3
  import { ErrorFallback } from './ErrorFallback';
5
4
  import { ApiError } from '../../errors/ApiError';
@@ -1,5 +1,4 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
3
2
 
4
3
  import { ErrorText } from './ErrorText';
5
4
  import { ExternalLink } from '../link/ExternalLink';
@@ -1,5 +1,4 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
3
2
 
4
3
  import { Heading, type HeadingProps } from './Heading';
5
4
 
@@ -1,6 +1,6 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
- import type { Meta, StoryObj } from '@storybook/react';
3
- import { fn } from '@storybook/test';
1
+ import { fn } from 'storybook/test';
2
+
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
 
5
5
  import { Hint } from './Hint';
6
6
  import { Button } from '../Button/Button';
@@ -1,8 +1,8 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
1
  import { useState } from 'react';
3
2
 
4
- import { useArgs } from '@storybook/preview-api';
5
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import { useArgs } from 'storybook/preview-api';
4
+
5
+ import type { Meta, StoryObj } from '@storybook/react-vite';
6
6
 
7
7
  import { Modal } from './Modal';
8
8
 
@@ -12,7 +12,7 @@ vi.mock('../../hooks/useClickOutside', () => ({
12
12
  useClickOutside: vi.fn(),
13
13
  }));
14
14
 
15
- describe.skip('Modal', () => {
15
+ describe.todo('Modal', () => {
16
16
  // Setup modal root element for each test
17
17
  beforeEach(() => {
18
18
  const modalRoot = document.createElement('div');
@@ -1,5 +1,4 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
3
2
 
4
3
  import { Paragraph } from './Paragraph';
5
4
  import { ExternalLink } from '../link/ExternalLink';
@@ -1,5 +1,4 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
3
2
 
4
3
  import { SlidingPanel } from './SlidingPanel';
5
4
 
@@ -1,5 +1,4 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
3
2
 
4
3
  import { Accordion } from './Accordion';
5
4
 
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/naming-convention */
2
- /* eslint-disable storybook/no-renderer-packages */
3
- import type { Meta, StoryObj } from '@storybook/react';
2
+
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
 
5
5
  import { BackToTop } from './BackToTop';
6
6
 
@@ -1,7 +1,6 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
1
  import { AiFillChrome } from 'react-icons/ai';
3
2
 
4
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
5
4
 
6
5
  import { Chip } from './Chip';
7
6
  import { Paragraph } from '../Paragraph/Paragraph';
@@ -1,5 +1,4 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
3
2
 
4
3
  import { CookieBanner } from './CookieBanner';
5
4
 
@@ -1,5 +1,4 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
3
2
 
4
3
  import { RuleDivider } from './RuleDivider';
5
4
 
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable custom/padding-between-jsx-elements */
2
- /* eslint-disable storybook/no-renderer-packages */
3
- import type { Meta, StoryObj } from '@storybook/react';
2
+
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
 
5
5
  import { Input } from './Input';
6
6
 
@@ -1,5 +1,4 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
3
2
 
4
3
  import { TextArea } from './TextArea';
5
4
 
@@ -1,8 +1,8 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
1
  import { useEffect, useState } from 'react';
3
2
 
4
- import type { Meta, StoryObj } from '@storybook/react';
5
- import { fn } from '@storybook/test';
3
+ import { fn } from 'storybook/test';
4
+
5
+ import type { Meta, StoryObj } from '@storybook/react-vite';
6
6
 
7
7
  import { Select } from './Select';
8
8
 
@@ -1,3 +1,4 @@
1
+ /* eslint-disable vitest/no-conditional-expect -- react-select internals require conditional checks */
1
2
  import selectEvent from 'react-select-event';
2
3
 
3
4
  import { Select } from './Select';
@@ -1,7 +1,6 @@
1
- /* eslint-disable storybook/no-renderer-packages */
2
1
  import { useEffect, useState } from 'react';
3
2
 
4
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
5
4
 
6
5
  import { SelectSkeleton } from './SelectSkeleton';
7
6
 
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable jsx-a11y/anchor-is-valid */
2
- /* eslint-disable storybook/no-renderer-packages */
3
- import type { Meta, StoryObj } from '@storybook/react';
2
+
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
 
5
5
  import { SkipLink } from './SkipLink';
6
6