@storybook/nextjs 7.0.0-beta.50 → 7.0.0-beta.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -45,6 +45,7 @@
45
45
  - [Stories for pages/components which fetch data](#stories-for-pagescomponents-which-fetch-data)
46
46
  - [Statically imported images won't load](#statically-imported-images-wont-load)
47
47
  - [Module not found: Error: Can't resolve \[package name\]](#module-not-found-error-cant-resolve-package-name)
48
+ - [What if I'm using the Vite builder?](#what-if-im-using-the-vite-builder)
48
49
  - [Acknowledgements](#acknowledgements)
49
50
 
50
51
  ## Supported Features
@@ -929,6 +930,10 @@ See [local images](https://nextjs.org/docs/basic-features/image-optimization#loc
929
930
 
930
931
  You might get this if you're using Yarn v2 or v3. See [Notes for Yarn v2 and v3 users](#notes-for-yarn-v2-and-v3-users) for more details.
931
932
 
933
+ #### What if I'm using the Vite builder?
934
+
935
+ The `@storybook/nextjs` package abstracts the Webpack 5 builder and provides all the necessary Webpack configuration needed (and used internally) by Next.js. Webpack is currently the official builder in Next.js, and Next.js does not support Vite, therefore it is not possible to use Vite with `@storybook/nextjs`. You can use `@storybook/react-vite` framework instead, but at the cost of having a degraded experience, and we won't be able to provide you official support.
936
+
932
937
  ## Acknowledgements
933
938
 
934
939
  This framework borrows heavily from these Storybook addons:
package/dist/preset.d.ts CHANGED
@@ -931,10 +931,6 @@ type CoreCommon_StorybookRefs = Record<string, {
931
931
  disable: boolean;
932
932
  }>;
933
933
  type DocsOptions = {
934
- /**
935
- * Should we disable generate docs entries at all under any circumstances? (i.e. can they be rendered)
936
- */
937
- disable?: boolean;
938
934
  /**
939
935
  * What should we call the generated docs entries?
940
936
  */
@@ -1008,7 +1004,7 @@ interface StorybookConfig {
1008
1004
  */
1009
1005
  stories: StoriesEntry[];
1010
1006
  /**
1011
- * Framework, e.g. '@storybook/react', required in v7
1007
+ * Framework, e.g. '@storybook/react-vite', required in v7
1012
1008
  */
1013
1009
  framework?: Preset;
1014
1010
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/nextjs",
3
- "version": "7.0.0-beta.50",
3
+ "version": "7.0.0-beta.51",
4
4
  "description": "Storybook for Next.js",
5
5
  "keywords": [
6
6
  "storybook",
@@ -60,13 +60,13 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@next/font": "^13.0.7",
63
- "@storybook/addon-actions": "7.0.0-beta.50",
64
- "@storybook/builder-webpack5": "7.0.0-beta.50",
65
- "@storybook/core-common": "7.0.0-beta.50",
66
- "@storybook/node-logger": "7.0.0-beta.50",
67
- "@storybook/preset-react-webpack": "7.0.0-beta.50",
68
- "@storybook/preview-api": "7.0.0-beta.50",
69
- "@storybook/react": "7.0.0-beta.50",
63
+ "@storybook/addon-actions": "7.0.0-beta.51",
64
+ "@storybook/builder-webpack5": "7.0.0-beta.51",
65
+ "@storybook/core-common": "7.0.0-beta.51",
66
+ "@storybook/node-logger": "7.0.0-beta.51",
67
+ "@storybook/preset-react-webpack": "7.0.0-beta.51",
68
+ "@storybook/preview-api": "7.0.0-beta.51",
69
+ "@storybook/react": "7.0.0-beta.51",
70
70
  "@types/node": "^16.0.0",
71
71
  "find-up": "^5.0.0",
72
72
  "fs-extra": "^11.1.0",
@@ -127,5 +127,5 @@
127
127
  ],
128
128
  "platform": "node"
129
129
  },
130
- "gitHead": "ecbe308bda919d3cc60188dbb17dc4511f6b7a0e"
130
+ "gitHead": "92ae17be35e8e19be160d4d8acb9b56e40064be2"
131
131
  }