@storybook/nextjs 7.0.0-beta.13 → 7.0.0-beta.15

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/dist/preset.d.ts CHANGED
@@ -935,18 +935,19 @@ type CoreCommon_StorybookRefs = Record<string, {
935
935
  }>;
936
936
  type DocsOptions = {
937
937
  /**
938
- * Should we generate docs entries at all under any circumstances? (i.e. can they be rendered)
938
+ * Should we disable generate docs entries at all under any circumstances? (i.e. can they be rendered)
939
939
  */
940
- enabled?: boolean;
940
+ disable?: boolean;
941
941
  /**
942
942
  * What should we call the generated docs entries?
943
943
  */
944
944
  defaultName?: string;
945
945
  /**
946
- * Should we generate a docs entry per CSF file with the `docsPage` tag?
947
- * Set to 'automatic' to generate an entry irrespective of tag.
946
+ * Should we generate a docs entry per CSF file?
947
+ * Set to 'tag' (the default) to generate an entry for every CSF file with the
948
+ * 'autodocs' tag.
948
949
  */
949
- docsPage?: boolean | 'automatic';
950
+ autodocs?: boolean | 'tag';
950
951
  /**
951
952
  * Only show doc entries in the side bar (usually set with the `--docs` CLI flag)
952
953
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/nextjs",
3
- "version": "7.0.0-beta.13",
3
+ "version": "7.0.0-beta.15",
4
4
  "description": "Storybook for Next.js",
5
5
  "keywords": [
6
6
  "storybook",
@@ -22,6 +22,7 @@
22
22
  "license": "MIT",
23
23
  "exports": {
24
24
  ".": {
25
+ "node": "./dist/index.js",
25
26
  "require": "./dist/index.js",
26
27
  "import": "./dist/index.mjs",
27
28
  "types": "./dist/index.d.ts"
@@ -49,7 +50,6 @@
49
50
  "files": [
50
51
  "dist/**/*",
51
52
  "template/**/*",
52
- "types/**/*",
53
53
  "README.md",
54
54
  "*.js",
55
55
  "*.d.ts"
@@ -60,13 +60,13 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@next/font": "^13.0.7",
63
- "@storybook/addon-actions": "7.0.0-beta.13",
64
- "@storybook/builder-webpack5": "7.0.0-beta.13",
65
- "@storybook/core-common": "7.0.0-beta.13",
66
- "@storybook/node-logger": "7.0.0-beta.13",
67
- "@storybook/preset-react-webpack": "7.0.0-beta.13",
68
- "@storybook/preview-api": "7.0.0-beta.13",
69
- "@storybook/react": "7.0.0-beta.13",
63
+ "@storybook/addon-actions": "7.0.0-beta.15",
64
+ "@storybook/builder-webpack5": "7.0.0-beta.15",
65
+ "@storybook/core-common": "7.0.0-beta.15",
66
+ "@storybook/node-logger": "7.0.0-beta.15",
67
+ "@storybook/preset-react-webpack": "7.0.0-beta.15",
68
+ "@storybook/preview-api": "7.0.0-beta.15",
69
+ "@storybook/react": "7.0.0-beta.15",
70
70
  "@types/node": "^16.0.0",
71
71
  "find-up": "^5.0.0",
72
72
  "fs-extra": "^9.0.1",
@@ -84,7 +84,7 @@
84
84
  "devDependencies": {
85
85
  "@babel/core": "^7.20.5",
86
86
  "@babel/types": "^7.20.5",
87
- "@storybook/addon-actions": "7.0.0-beta.12",
87
+ "@storybook/addon-actions": "7.0.0-beta.14",
88
88
  "@types/babel__core": "^7",
89
89
  "next": "^13.0.5",
90
90
  "typescript": "^4.9.3",
@@ -124,5 +124,5 @@
124
124
  ],
125
125
  "platform": "node"
126
126
  },
127
- "gitHead": "ddf86bd126ede0c019d7c9494f99f24a5cad9908"
127
+ "gitHead": "ed794f9d13e2bfe696ed2b230a3da04c203519eb"
128
128
  }
@@ -4,7 +4,7 @@ import { Button } from './Button';
4
4
  export default {
5
5
  title: 'Example/Button',
6
6
  component: Button,
7
- tags: ['docsPage'],
7
+ tags: ['autodocs'],
8
8
  argTypes: {
9
9
  backgroundColor: {
10
10
  control: 'color',
@@ -3,8 +3,8 @@ import { Header } from './Header';
3
3
  export default {
4
4
  title: 'Example/Header',
5
5
  component: Header,
6
- // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/7.0/react/writing-docs/docs-page
7
- tags: ['docsPage'],
6
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/7.0/react/writing-docs/docs-page
7
+ tags: ['autodocs'],
8
8
  parameters: {
9
9
  // More on how to position stories at: https://storybook.js.org/docs/7.0/react/configure/story-layout
10
10
  layout: 'fullscreen',
@@ -6,7 +6,7 @@ import { Button } from './Button';
6
6
  const meta: Meta<typeof Button> = {
7
7
  title: 'Example/Button',
8
8
  component: Button,
9
- tags: ['docsPage'],
9
+ tags: ['autodocs'],
10
10
  argTypes: {
11
11
  backgroundColor: {
12
12
  control: 'color',
@@ -4,8 +4,8 @@ import { Header } from './Header';
4
4
  const meta: Meta<typeof Header> = {
5
5
  title: 'Example/Header',
6
6
  component: Header,
7
- // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/7.0/react/writing-docs/docs-page
8
- tags: ['docsPage'],
7
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/7.0/react/writing-docs/docs-page
8
+ tags: ['autodocs'],
9
9
  parameters: {
10
10
  // More on how to position stories at: https://storybook.js.org/docs/7.0/react/configure/story-layout
11
11
  layout: 'fullscreen',