Skip to content
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
2 changes: 1 addition & 1 deletion code/addons/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-resize-detector": "^7.1.2",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"vitest-axe": "^0.1.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion code/addons/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"rehype-slug": "^6.0.0",
"telejson": "8.0.0",
"tocbot": "^4.20.1",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"vite": "^7.0.4"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion code/addons/links/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@storybook/global": "^5.0.0"
},
"devDependencies": {
"typescript": "^5.9.3"
"typescript": "^6.0.3"
},
"peerDependencies": {
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
Expand Down
2 changes: 1 addition & 1 deletion code/addons/onboarding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-joyride": "^2.8.2",
"typescript": "^5.9.3"
"typescript": "^6.0.3"
},
"peerDependencies": {
"storybook": "workspace:^"
Expand Down
2 changes: 1 addition & 1 deletion code/addons/pseudo-states/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@storybook/icons": "^2.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.9.3"
"typescript": "^6.0.3"
},
"peerDependencies": {
"storybook": "workspace:^"
Expand Down
2 changes: 1 addition & 1 deletion code/addons/themes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@storybook/icons": "^2.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.9.3"
"typescript": "^6.0.3"
},
"peerDependencies": {
"storybook": "workspace:^"
Expand Down
2 changes: 1 addition & 1 deletion code/addons/vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"tinyglobby": "^0.2.10",
"tree-kill": "^1.2.2",
"ts-dedent": "^2.2.0",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"vitest": "^4.1.5"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion code/builders/builder-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"pretty-hrtime": "^1.0.3",
"sirv": "^2.0.4",
"slash": "^5.0.0",
"typescript": "^5.9.3"
"typescript": "^6.0.3"
},
"peerDependencies": {
"storybook": "workspace:^"
Expand Down
2 changes: 1 addition & 1 deletion code/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
"tsconfig-paths": "^4.2.0",
"type-fest": "^5.6.0",
"type-plus": "^8.0.0-beta.8",
"typescript": "^5.8.3",
"typescript": "^6.0.3",
"unique-string": "^3.0.0",
"use-resize-observer": "^9.1.0",
"valibot": "^1.4.0",
Expand Down
5 changes: 4 additions & 1 deletion code/core/src/common/js-package-manager/BUNProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@ export class BUNProxy extends JsPackageManager {
}
}

protected getResolutions(packageJson: PackageJson, versions: Record<string, string>) {
protected getResolutions(
packageJson: PackageJson,
versions: Record<string, string>
): Record<string, any> {
return {
overrides: {
...packageJson.overrides,
Expand Down
5 changes: 4 additions & 1 deletion code/core/src/common/js-package-manager/NPMProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ export class NPMProxy extends JsPackageManager {
}
}

protected getResolutions(packageJson: PackageJson, versions: Record<string, string>) {
protected getResolutions(
packageJson: PackageJson,
versions: Record<string, string>
): Record<string, any> {
return {
overrides: {
...packageJson.overrides,
Expand Down
5 changes: 4 additions & 1 deletion code/core/src/common/js-package-manager/PNPMProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ export class PNPMProxy extends JsPackageManager {
return JSON.parse(readFileSync(packageJsonPath, 'utf-8'));
}

protected getResolutions(packageJson: PackageJson, versions: Record<string, string>) {
protected getResolutions(
packageJson: PackageJson,
versions: Record<string, string>
): Record<string, any> {
return {
overrides: {
...packageJson.overrides,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ div.parent {
},
loaders: [
async () => {
// @ts-expect-error untyped deep ESM entrypoint
const scss = (await import('react-syntax-highlighter/dist/esm/languages/prism/scss')).default;
SyntaxHighlighter.registerLanguage('scss', scss);
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,33 @@
import React, { useEffect, useState } from 'react';

import memoize from 'memoizerific';
// @ts-expect-error (Converted from ts-ignore)
// react-syntax-highlighter ships no types for these deep ESM entrypoints, and TS 6.0 no
// longer falls back to @types/react-syntax-highlighter for them, so each import is suppressed.
// @ts-expect-error untyped deep ESM entrypoint
import createElement from 'react-syntax-highlighter/dist/esm/create-element';
// @ts-expect-error untyped deep ESM entrypoint
import bash from 'react-syntax-highlighter/dist/esm/languages/prism/bash';
// @ts-expect-error untyped deep ESM entrypoint
import css from 'react-syntax-highlighter/dist/esm/languages/prism/css';
// @ts-expect-error untyped deep ESM entrypoint
import graphql from 'react-syntax-highlighter/dist/esm/languages/prism/graphql';
// @ts-expect-error (Converted from ts-ignore)
// @ts-expect-error untyped deep ESM entrypoint
import jsExtras from 'react-syntax-highlighter/dist/esm/languages/prism/js-extras';
// @ts-expect-error untyped deep ESM entrypoint
import json from 'react-syntax-highlighter/dist/esm/languages/prism/json';
// @ts-expect-error untyped deep ESM entrypoint
import jsx from 'react-syntax-highlighter/dist/esm/languages/prism/jsx';
// @ts-expect-error untyped deep ESM entrypoint
import md from 'react-syntax-highlighter/dist/esm/languages/prism/markdown';
// @ts-expect-error untyped deep ESM entrypoint
import html from 'react-syntax-highlighter/dist/esm/languages/prism/markup';
// @ts-expect-error untyped deep ESM entrypoint
import tsx from 'react-syntax-highlighter/dist/esm/languages/prism/tsx';
// @ts-expect-error untyped deep ESM entrypoint
import typescript from 'react-syntax-highlighter/dist/esm/languages/prism/typescript';
// @ts-expect-error untyped deep ESM entrypoint
import yml from 'react-syntax-highlighter/dist/esm/languages/prism/yaml';
// @ts-expect-error untyped deep ESM entrypoint
import ReactSyntaxHighlighter from 'react-syntax-highlighter/dist/esm/prism-light';
import { styled } from 'storybook/theming';

Expand Down
4 changes: 2 additions & 2 deletions code/frameworks/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"@types/node": "^22.19.1",
"empathic": "^2.0.0",
"rimraf": "^6.0.1",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
Comment thread
valentinpalkovic marked this conversation as resolved.
"webpack": "5",
"zone.js": "^0.15.0"
},
Expand All @@ -101,7 +101,7 @@
"@angular/platform-browser-dynamic": ">=18.0.0 < 22.0.0",
"rxjs": "^6.5.3 || ^7.4.0",
"storybook": "workspace:^",
"typescript": "^4.9.0 || ^5.0.0",
"typescript": "^4.9.0 || ^5.0.0 || ^6.0.0",
"zone.js": ">=0.14.0"
},
"peerDependenciesMeta": {
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/ember/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
},
"devDependencies": {
"ember-source": "~3.28.1",
"typescript": "^5.9.3"
"typescript": "^6.0.3"
},
"peerDependencies": {
"@babel/core": "*",
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/html-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
"devDependencies": {
"@types/node": "^22.19.1",
"typescript": "^5.9.3"
"typescript": "^6.0.3"
},
"peerDependencies": {
"storybook": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/nextjs-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"next": "^15.2.3",
"postcss-load-config": "^6.0.1",
"semver": "^7.7.3",
"typescript": "^5.9.3"
"typescript": "^6.0.3"
},
"peerDependencies": {
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
Expand Down
8 changes: 0 additions & 8 deletions code/frameworks/nextjs-vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import type { ReactPreview } from '@storybook/react';
import { __definePreview } from '@storybook/react';
import type { ReactTypes } from '@storybook/react';

import type vitePluginStorybookNextJs from 'vite-plugin-storybook-nextjs';

import * as nextPreview from './preview.tsx';
import type { NextJsTypes } from './types.ts';

Expand All @@ -15,12 +13,6 @@ export * from '@storybook/react';
export * from './portable-stories.ts';
export * from './types.ts';

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
declare module '@storybook/nextjs-vite/vite-plugin' {
export const storybookNextJsPlugin: typeof vitePluginStorybookNextJs;
}

export function definePreview<Addons extends PreviewAddon<never>[]>(
preview: { addons?: Addons } & ProjectAnnotations<ReactTypes & NextJsTypes & InferTypes<Addons>>
): NextPreview<InferTypes<Addons>> {
Expand Down
4 changes: 3 additions & 1 deletion code/frameworks/nextjs-vite/src/vite-plugin/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { createRequire } from 'node:module';

import type vitePluginStorybookNextJs from 'vite-plugin-storybook-nextjs';

const require = createRequire(import.meta.url);

const vitePluginStorybookNextjs = require('vite-plugin-storybook-nextjs');

export const storybookNextJsPlugin = vitePluginStorybookNextjs;
export const storybookNextJsPlugin: typeof vitePluginStorybookNextJs = vitePluginStorybookNextjs;
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"@types/node": "^22.19.1",
"@types/react-refresh": "^0",
"next": "^15.2.3",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"webpack": "^5.65.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/preact-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
},
"devDependencies": {
"@types/node": "^22.19.1",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"vite": "^7.0.4"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/react-native-web-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
},
"devDependencies": {
"@types/node": "^22.19.1",
"typescript": "^5.9.3"
"typescript": "^6.0.3"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/react-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
"devDependencies": {
"@types/node": "^22.19.1",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"vite": "^7.0.4"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/server-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
},
"devDependencies": {
"@types/node": "^22.19.1",
"typescript": "^5.9.3"
"typescript": "^6.0.3"
},
"peerDependencies": {
"storybook": "workspace:^"
Expand Down
4 changes: 2 additions & 2 deletions code/frameworks/svelte-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@
"@storybook/builder-vite": "workspace:*",
"@storybook/svelte": "workspace:*",
"magic-string": "^0.30.0",
"svelte2tsx": "^0.7.44",
"svelte2tsx": "^0.7.55",
"typescript": "^4.9.4 || ^5.0.0"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^6.2.0",
"@types/node": "^22.19.1",
"svelte": "^5.39.5",
"sveltedoc-parser": "^4.2.1",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"vite": "^7.0.4"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
},
"devDependencies": {
"@types/node": "^22.19.1",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"vite": "^7.0.4"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/tanstack-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"@tanstack/router-core": "^1.168.9",
"@tanstack/start-client-core": "^1.167.9",
"@types/node": "^22.19.1",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"vite": "^7.0.4"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/vue3-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
"devDependencies": {
"@types/node": "^22.19.1",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"vite": "^7.0.4"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/web-components-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
},
"devDependencies": {
"@types/node": "^22.19.1",
"typescript": "^5.9.3"
"typescript": "^6.0.3"
},
"peerDependencies": {
"storybook": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion code/lib/cli-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"slash": "^5.0.0",
"tiny-invariant": "^1.3.3",
"tinyclip": "^0.1.12",
"typescript": "^5.8.3"
"typescript": "^6.0.3"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion code/lib/codemod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@types/jscodeshift": "^0.11.10",
"ansi-regex": "^6.0.1",
"ts-dedent": "^2.2.0",
"typescript": "^5.9.3"
"typescript": "^6.0.3"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion code/lib/core-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"devDependencies": {
"@types/node": "^22.19.1",
"typescript": "^5.8.3",
"typescript": "^6.0.3",
"webpack": "5"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion code/lib/create-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"react": "^18.2.0",
"tiny-invariant": "^1.3.1",
"ts-dedent": "^2.0.0",
"typescript": "^5.8.3"
"typescript": "^6.0.3"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion code/lib/csf-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"unplugin": "^2.3.5"
},
"devDependencies": {
"typescript": "^5.9.3"
"typescript": "^6.0.3"
},
"peerDependencies": {
"esbuild": "*",
Expand Down
Loading
Loading