Skip to content

Commit

Permalink
Merge pull request #22450 from storybookjs/valentin/nextjs-fix-yarn-p…
Browse files Browse the repository at this point in the history
…np-issue

Next.js: Add `@babel/core` as a dependency
  • Loading branch information
ndelangen committed Jul 26, 2023
2 parents 5dcc66f + 1e90354 commit 7f56548
Show file tree
Hide file tree
Showing 10 changed files with 487 additions and 555 deletions.
1 change: 1 addition & 0 deletions code/addons/interactions/src/components/MatcherResult.tsx
@@ -1,3 +1,4 @@
/* eslint-disable react/no-array-index-key */
import React from 'react';
import { styled, typography } from '@storybook/theming';
import { Node } from './MethodCall';
Expand Down
1 change: 1 addition & 0 deletions code/addons/interactions/src/components/MethodCall.tsx
@@ -1,3 +1,4 @@
/* eslint-disable react/no-array-index-key */
import { ObjectInspector } from '@devtools-ds/object-inspector';
import type { Call, CallRef, ElementRef } from '@storybook/instrumenter';
import { useTheme } from '@storybook/theming';
Expand Down
6 changes: 1 addition & 5 deletions code/frameworks/nextjs/package.json
Expand Up @@ -58,6 +58,7 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@babel/core": "^7.22.9",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@babel/plugin-proposal-numeric-separator": "^7.18.6",
Expand Down Expand Up @@ -97,7 +98,6 @@
"tsconfig-paths-webpack-plugin": "^4.0.1"
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/types": "^7.22.5",
"@types/babel__core": "^7",
"@types/babel__plugin-transform-runtime": "^7",
Expand All @@ -107,17 +107,13 @@
"webpack": "^5.65.0"
},
"peerDependencies": {
"@babel/core": "^7.22.0",
"@next/font": "^13.0.0",
"next": "^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
"webpack": "^5.0.0"
},
"peerDependenciesMeta": {
"@babel/core": {
"optional": true
},
"@next/font": {
"optional": true
},
Expand Down
2 changes: 1 addition & 1 deletion code/ui/blocks/src/controls/Range.tsx
Expand Up @@ -220,7 +220,7 @@ export const RangeControl: FC<RangeProps> = ({
{...{ name, value, min, max, step, onFocus, onBlur }}
/>
<RangeCurrentAndMaxLabel numberOFDecimalsPlaces={numberOFDecimalsPlaces} max={max}>
{`${hasValue ? value.toFixed(numberOFDecimalsPlaces) : '--'}`} / {max}
{hasValue ? value.toFixed(numberOFDecimalsPlaces) : '--'} / {max}
</RangeCurrentAndMaxLabel>
</RangeWrapper>
);
Expand Down
Expand Up @@ -391,7 +391,7 @@ export class JsonArray extends Component<JsonArrayProps, JsonArrayState> {
{data.map((item, index) => (
<JsonNode
key={index}
name={`${index}`}
name={index.toString()}
data={item}
keyPath={keyPath}
deep={nextDeep}
Expand Down

0 comments on commit 7f56548

Please sign in to comment.