File tree 6 files changed +22
-18
lines changed
6 files changed +22
-18
lines changed Original file line number Diff line number Diff line change
1
+ ## 8.3.1
2
+
3
+ - Angular: Fix sourceDecorator to apply excludeDecorators flag - [ #29069 ] ( https://github.com/storybookjs/storybook/pull/29069 ) , thanks @JSMike !
4
+ - Core: Do not prebundle better-opn - [ #29137 ] ( https://github.com/storybookjs/storybook/pull/29137 ) , thanks @valentinpalkovic !
5
+ - Core: Do not prebundle jsdoc-type-pratt-parser - [ #29134 ] ( https://github.com/storybookjs/storybook/pull/29134 ) , thanks @valentinpalkovic !
6
+ - Next.js: Upgrade sass-loader from ^12 to ^13 - [ #29040 ] ( https://github.com/storybookjs/storybook/pull/29040 ) , thanks @HoncharenkoZhenya !
7
+
1
8
## 8.3.0
2
9
3
10
Fresh out of the oven! Storybook 8.3 brings you:
Original file line number Diff line number Diff line change 279
279
"dependencies" : {
280
280
"@storybook/csf" : " ^0.1.11" ,
281
281
"@types/express" : " ^4.17.21" ,
282
+ "better-opn" : " ^3.0.2" ,
282
283
"browser-assert" : " ^1.2.1" ,
283
284
"esbuild" : " ^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0" ,
284
285
"esbuild-register" : " ^3.5.0" ,
285
286
"express" : " ^4.19.2" ,
287
+ "jsdoc-type-pratt-parser" : " ^4.0.0" ,
286
288
"process" : " ^0.11.10" ,
287
289
"recast" : " ^0.23.5" ,
288
290
"semver" : " ^7.6.2" ,
340
342
"ansi-to-html" : " ^0.7.2" ,
341
343
"assert" : " ^2.1.0" ,
342
344
"babel-plugin-react-docgen" : " 4.2.1" ,
343
- "better-opn" : " ^3.0.2" ,
344
345
"boxen" : " ^7.1.1" ,
345
346
"browser-dtector" : " ^3.4.0" ,
346
347
"camelcase" : " ^8.0.0" ,
378
379
"globby" : " ^14.0.1" ,
379
380
"handlebars" : " ^4.7.7" ,
380
381
"js-yaml" : " ^4.1.0" ,
381
- "jsdoc-type-pratt-parser" : " ^4.0.0" ,
382
382
"lazy-universal-dotenv" : " ^4.0.0" ,
383
383
"leven" : " ^4.0.0" ,
384
384
"lodash" : " ^4.17.21" ,
Original file line number Diff line number Diff line change @@ -196,11 +196,7 @@ test.describe('addon-docs', () => {
196
196
197
197
// Arrange - Setup expectations
198
198
let expectedReactVersionRange = / ^ 1 8 / ;
199
- if (
200
- templateName . includes ( 'preact' ) ||
201
- templateName . includes ( 'react-webpack/17' ) ||
202
- templateName . includes ( 'react-vite/17' )
203
- ) {
199
+ if ( templateName . includes ( 'react-webpack/17' ) || templateName . includes ( 'react-vite/17' ) ) {
204
200
expectedReactVersionRange = / ^ 1 7 / ;
205
201
} else if ( templateName . includes ( 'react16' ) ) {
206
202
expectedReactVersionRange = / ^ 1 6 / ;
Original file line number Diff line number Diff line change 1
1
import { SNIPPET_RENDERED , SourceType } from 'storybook/internal/docs-tools' ;
2
2
import { addons , useEffect } from 'storybook/internal/preview-api' ;
3
- import { PartialStoryFn } from 'storybook/internal/types' ;
3
+ import { ArgsStoryFn , PartialStoryFn } from 'storybook/internal/types' ;
4
4
5
5
import { computesTemplateSourceFromComponent } from '../../renderer' ;
6
6
import { AngularRenderer , StoryContext } from '../types' ;
@@ -32,9 +32,11 @@ export const sourceDecorator = (
32
32
return story ;
33
33
}
34
34
const channel = addons . getChannel ( ) ;
35
- const { props, template, userDefinedTemplate } = story ;
36
-
35
+ const { props, userDefinedTemplate } = story ;
37
36
const { component, argTypes, parameters } = context ;
37
+ const template : string = parameters . docs ?. source ?. excludeDecorators
38
+ ? ( context . originalStoryFn as ArgsStoryFn < AngularRenderer > ) ( context . args , context ) . template
39
+ : story . template ;
38
40
39
41
let toEmit : string ;
40
42
Original file line number Diff line number Diff line change 157
157
"postcss-loader" : " ^8.1.1" ,
158
158
"react-refresh" : " ^0.14.0" ,
159
159
"resolve-url-loader" : " ^5.0.0" ,
160
- "sass-loader" : " ^12.4 .0" ,
160
+ "sass-loader" : " ^13.2 .0" ,
161
161
"semver" : " ^7.3.5" ,
162
162
"style-loader" : " ^3.3.1" ,
163
163
"styled-jsx" : " ^5.1.6" ,
Original file line number Diff line number Diff line change @@ -6445,7 +6445,7 @@ __metadata:
6445
6445
postcss-loader: "npm:^8.1.1"
6446
6446
react-refresh: "npm:^0.14.0"
6447
6447
resolve-url-loader: "npm:^5.0.0"
6448
- sass-loader: "npm:^12.4 .0"
6448
+ sass-loader: "npm:^13.2 .0"
6449
6449
semver: "npm:^7.3.5"
6450
6450
sharp: "npm:^0.33.3"
6451
6451
style-loader: "npm:^3.3.1"
@@ -25305,15 +25305,14 @@ __metadata:
25305
25305
languageName: node
25306
25306
linkType: hard
25307
25307
25308
- "sass-loader@npm:^12.4 .0":
25309
- version: 12.6.0
25310
- resolution: "sass-loader@npm:12.6.0 "
25308
+ "sass-loader@npm:^13.2 .0":
25309
+ version: 13.3.3
25310
+ resolution: "sass-loader@npm:13.3.3 "
25311
25311
dependencies:
25312
- klona: "npm:^2.0.4"
25313
25312
neo-async: "npm:^2.6.2"
25314
25313
peerDependencies:
25315
25314
fibers: ">= 3.1.0"
25316
- node-sass: ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0
25315
+ node-sass: ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0
25317
25316
sass: ^1.3.0
25318
25317
sass-embedded: "*"
25319
25318
webpack: ^5.0.0
@@ -25326,7 +25325,7 @@ __metadata:
25326
25325
optional: true
25327
25326
sass-embedded:
25328
25327
optional: true
25329
- checksum: 10c0/e1ef655f3898cc4c45f02b3c627f8baf998139993a9a79c524153a80814282bfe20d8d8d703b8cf1d05457c1930940b65e2156d11285ed0861f9a1016f993e53
25328
+ checksum: 10c0/5e955a4ffce35ee0a46fce677ce51eaa69587fb5371978588c83af00f49e7edc36dcf3bb559cbae27681c5e24a71284463ebe03a1fb65e6ecafa1db0620e3fc8
25330
25329
languageName: node
25331
25330
linkType: hard
25332
25331
You can’t perform that action at this time.
0 commit comments