= (...arg: any[]) => T;
export declare type FCNoChildren = FunctionComponent<{ children?: never } & P>;
-export declare type Omit = Pick>;
export declare type GenericProp = null | {
readonly [key: string]: unknown;
};
diff --git a/addons/cssresources/package.json b/addons/cssresources/package.json
index 092ecbf1e080..603f5cd76764 100644
--- a/addons/cssresources/package.json
+++ b/addons/cssresources/package.json
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-cssresources",
- "version": "5.3.0-alpha.3",
+ "version": "5.3.0-alpha.22",
"description": "A storybook addon to switch between css resources at runtime for your story",
"keywords": [
"addon",
@@ -23,7 +23,8 @@
"dist/**/*",
"docs/**/*",
"README.md",
- "register.js"
+ "*.js",
+ "*.d.ts"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -31,10 +32,10 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
- "@storybook/addons": "5.3.0-alpha.3",
- "@storybook/api": "5.3.0-alpha.3",
- "@storybook/components": "5.3.0-alpha.3",
- "@storybook/core-events": "5.3.0-alpha.3",
+ "@storybook/addons": "5.3.0-alpha.22",
+ "@storybook/api": "5.3.0-alpha.22",
+ "@storybook/components": "5.3.0-alpha.22",
+ "@storybook/core-events": "5.3.0-alpha.22",
"core-js": "^3.0.1",
"global": "^4.3.2",
"react": "^16.8.3"
diff --git a/addons/cssresources/src/register.tsx b/addons/cssresources/src/register.tsx
index 4366ea61801a..8637d1ca5664 100644
--- a/addons/cssresources/src/register.tsx
+++ b/addons/cssresources/src/register.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import * as React from 'react';
import { addons, types } from '@storybook/addons';
import { ADDON_ID, PANEL_ID, PARAM_KEY } from './constants';
diff --git a/addons/design-assets/package.json b/addons/design-assets/package.json
index 4c66672569fd..147c9236f427 100644
--- a/addons/design-assets/package.json
+++ b/addons/design-assets/package.json
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-design-assets",
- "version": "5.3.0-alpha.3",
+ "version": "5.3.0-alpha.22",
"description": "Design asset preview for storybook",
"keywords": [
"addon",
@@ -25,7 +25,8 @@
"dist/**/*",
"docs/**/*",
"README.md",
- "register.js"
+ "*.js",
+ "*.d.ts"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -33,21 +34,18 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
- "@storybook/addons": "5.3.0-alpha.3",
- "@storybook/api": "5.3.0-alpha.3",
- "@storybook/client-logger": "5.3.0-alpha.3",
- "@storybook/components": "5.3.0-alpha.3",
- "@storybook/core-events": "5.3.0-alpha.3",
- "@storybook/theming": "5.3.0-alpha.3",
- "common-tags": "^1.8.0",
+ "@storybook/addons": "5.3.0-alpha.22",
+ "@storybook/api": "5.3.0-alpha.22",
+ "@storybook/client-logger": "5.3.0-alpha.22",
+ "@storybook/components": "5.3.0-alpha.22",
+ "@storybook/core-events": "5.3.0-alpha.22",
+ "@storybook/theming": "5.3.0-alpha.22",
"core-js": "^3.0.1",
"global": "^4.3.2",
"react": "^16.8.3",
+ "ts-dedent": "^1.1.0",
"use-image": "^1.0.3"
},
- "devDependencies": {
- "@types/common-tags": "^1.8.0"
- },
"publishConfig": {
"access": "public"
}
diff --git a/addons/design-assets/src/register.tsx b/addons/design-assets/src/register.tsx
index fb903ec514e5..61ae6a9c77ff 100644
--- a/addons/design-assets/src/register.tsx
+++ b/addons/design-assets/src/register.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import * as React from 'react';
import { addons, types } from '@storybook/addons';
import { AddonPanel } from '@storybook/components';
diff --git a/addons/docs/README.md b/addons/docs/README.md
index 3cd64bc3b9fb..d46737f42cd3 100644
--- a/addons/docs/README.md
+++ b/addons/docs/README.md
@@ -6,7 +6,7 @@
Storybook Docs transforms your Storybook stories into world-class component documentation.
-**DocsPage.** Out of the box, all your stories get a `DocsPage`. `DocsPage` is a zero-config aggregation of your component stories, text descriptions, docgen comments, props tables, and code examples into simple, easy-to-read pages.
+**DocsPage.** Out of the box, all your stories get a `DocsPage`. `DocsPage` is a zero-config aggregation of your component stories, text descriptions, docgen comments, props tables, and code examples into clean, readable pages.
**MDX.** If you want more control, `MDX` allows you to write long-form markdown documentation and stories in one file. You can also use it to write pure documentation pages and embed them inside your Storybook alongside your stories.
@@ -94,7 +94,7 @@ features as well. This chart captures the current state of support
First add the package. Make sure that the versions for your `@storybook/*` packages match:
```sh
-yarn add -D @storybook/addon-docs@next
+yarn add -D @storybook/addon-docs
```
Docs has peer dependencies on `react` and `babel-loader`. If you want to write stories in MDX, you may need to add these dependencies as well:
diff --git a/addons/docs/docs/docspage.md b/addons/docs/docs/docspage.md
index f014c4362b49..40119a951a34 100644
--- a/addons/docs/docs/docspage.md
+++ b/addons/docs/docs/docspage.md
@@ -114,7 +114,7 @@ For example, here's the source for `Badge`:
```js
/**
- * Use `Badge` to highlight key info with a predefined status. Easy peasy!
+ * Use `Badge` to highlight key info with a predefined status.
*/
export const Badge = ({ status, children }) => { ... }
```
@@ -199,7 +199,7 @@ What if you don't want a `DocsPage` for your storybook, for a specific component
You can replace DocsPage at any level by overriding the `docs.page` parameter:
- With `null` to remove docs
-- [With MDX](#csf-stories-with-mdx-docs) docs
+- [With MDX](./recipes.md#csf-stories-with-mdx-docs) docs
- With a custom React component
**Globally (config.js)**
@@ -237,6 +237,31 @@ Unless you use a custom webpack configuration, all of your story files should ha
The docs preset assumes this naming convention for its `source-loader` setup. If you want to use a different naming convention, you'll need a [manual configuration](../README.md#manual-configuration).
+## Inline stories vs. Iframe stories
+
+Due to the complex nature of writing a cross-framework utility like Storybook, the story blocks for most frameworks exist within an `