File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ yarn-debug.log*
2727yarn-error.log *
2828package-lock.json
2929bundle.stats.json
30+ debug-storybook.log
3031
3132# DHIS2 Platform
3233.d2
Original file line number Diff line number Diff line change 11// Direct path required because the package exports field doesn't expose this subpath
2+ import { createRequire } from 'node:module'
3+ const require = createRequire ( import . meta. url )
24const makeBabelConfig = require ( '../node_modules/@dhis2/cli-app-scripts/config/makeBabelConfig.js' )
35
4- module . exports = {
6+ export default {
57 addons : [ '@storybook/preset-create-react-app' ] ,
68 stories : [ '../src/__demo__/**/*.stories.@(js)' ] ,
79
Original file line number Diff line number Diff line change 11import { CssReset } from '@dhis2/ui'
22import React from 'react'
3- const { withJsx } = require ( '@mihkeleidast/storybook-addon-source' )
43
54export const decorators = [
6- withJsx ,
75 ( Story ) => (
86 < div >
97 < CssReset />
Original file line number Diff line number Diff line change 3535 "@dhis2/cli-style" : " ^10.7.9" ,
3636 "@dhis2/d2-i18n" : " ^1.1.0" ,
3737 "@dhis2/ui" : " ^10.12.7" ,
38- "@mihkeleidast/storybook-addon-source" : " ^1.0.1" ,
39- "@storybook/preset-create-react-app" : " ^8.3.6" ,
40- "@storybook/react" : " ^8.3.6" ,
41- "@storybook/react-webpack5" : " ^8.3.6" ,
38+ "@storybook/preset-create-react-app" : " ^10.3.4" ,
39+ "@storybook/react-webpack5" : " ^10.3.4" ,
4240 "@testing-library/dom" : " ^10.4.0" ,
4341 "@testing-library/jest-dom" : " ^6.6.3" ,
4442 "@testing-library/react" : " ^16.3.0" ,
4846 "react" : " ^18.3.1" ,
4947 "react-dom" : " ^18.3.1" ,
5048 "react-scripts" : " ^5.0.1" ,
51- "storybook" : " ^8.3.6" ,
52- "styled-jsx" : " ^4.0.1"
49+ "storybook" : " ^10.3.4" ,
50+ "styled-jsx" : " ^4.0.1" ,
51+ "eslint-plugin-storybook" : " 10.3.4"
5352 },
5453 "peerDependencies" : {
5554 "@dhis2/app-runtime" : " ^3" ,
You can’t perform that action at this time.
0 commit comments