Skip to content

Commit 526bd6f

Browse files
committed
Upgrade storybook to latest version.
1 parent 5477e46 commit 526bd6f

6 files changed

Lines changed: 476 additions & 747 deletions

File tree

.storybook/main.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
import path from "path"
2-
import { fileURLToPath } from "url"
3-
4-
const __filename = fileURLToPath(import.meta.url)
5-
const __dirname = path.dirname(__filename)
1+
const path = require("path")
62

73
const config = {
84
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
95
addons: [
106
"@storybook/addon-links",
11-
"@storybook/addon-essentials",
12-
"@storybook/addon-interactions",
137
"@storybook/addon-webpack5-compiler-babel",
8+
"@storybook/addon-docs"
149
],
1510
framework: {
1611
name: "@storybook/react-webpack5",
@@ -69,4 +64,4 @@ const config = {
6964
return config
7065
},
7166
}
72-
export default config
67+
module.exports = config

.storybook/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const preview = {
1515
},
1616
},
1717
layout: "centered",
18-
backgrounds: { disable: true },
18+
backgrounds: { disabled: true },
1919
},
2020

2121
decorators: [

jest/config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ module.exports = {
2727
},
2828
},
2929
testPathIgnorePatterns: ["/node_modules/"],
30+
transformIgnorePatterns: [
31+
"/node_modules/(?!(strip-indent|redent|@testing-library/jest-dom)/)",
32+
],
3033
reporters: ["default"],
3134
cacheDirectory: "<rootDir>/.jest-tmp",
3235
}

package.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"@elastic/react-search-ui": "^1.24.2",
4545
"@elastic/search-ui-site-search-connector": "^1.24.2",
4646
"@prismicio/client": "^7.21.6",
47-
"@storybook/test": "^8.6.17",
4847
"@styled-system/css": "^5.1.5",
4948
"@tanstack/react-table": "^8.21.3",
5049
"@tanstack/react-virtual": "^3.13.18",
@@ -70,13 +69,11 @@
7069
"@babel/plugin-transform-runtime": "^7.29.0",
7170
"@babel/preset-env": "^7.29.0",
7271
"@babel/preset-react": "^7.28.5",
73-
"@storybook/addon-essentials": "^8.6.17",
74-
"@storybook/addon-interactions": "^8.6.17",
75-
"@storybook/addon-links": "^8.6.17",
76-
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
77-
"@storybook/blocks": "^8.6.17",
78-
"@storybook/react": "^8.6.17",
79-
"@storybook/react-webpack5": "^8.6.17",
72+
"@storybook/addon-docs": "10.2.10",
73+
"@storybook/addon-links": "10.2.10",
74+
"@storybook/addon-webpack5-compiler-babel": "^4.0.0",
75+
"@storybook/react-webpack5": "10.2.10",
76+
"@testing-library/dom": "^10.4.1",
8077
"@testing-library/jest-dom": "^6.9.1",
8178
"@testing-library/react": "^16.3.2",
8279
"@testing-library/user-event": "^14.6.1",
@@ -88,7 +85,7 @@
8885
"eslint": "^10.0.0",
8986
"eslint-plugin-react": "^7.37.5",
9087
"eslint-plugin-react-hooks": "^7.0.0",
91-
"eslint-plugin-storybook": "^0.12.0",
88+
"eslint-plugin-storybook": "10.2.10",
9289
"globals": "^17.3.0",
9390
"html-loader": "^5.1.0",
9491
"identity-obj-proxy": "^3.0.0",
@@ -106,7 +103,7 @@
106103
"react-dom": "^19.2.4",
107104
"rimraf": "^6.1.3",
108105
"sass-loader": "^16.0.7",
109-
"storybook": "^8.6.17",
106+
"storybook": "10.2.10",
110107
"styled-components": "^6.3.10",
111108
"svg-sprite-loader": "^6.0.11",
112109
"svgo-loader": "^4.0.0",

src/components/drops/drop/index.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useEffect, useRef } from "react"
2-
import { action } from "@storybook/addon-actions"
2+
import { action } from "storybook/actions"
33
import Flex from "@/components/templates/flex"
44
import Drop from "."
55

0 commit comments

Comments
 (0)