name | -type | -default | -description | -
---|
- undefined -
- - test - -
- storiesOf
-
- - undefined -
- - test - -
- storiesOf
-
- - undefined -
- - test - -
- storiesOf
-
- - undefined -
- - test - -
- storiesOf
-
- -
- - bold - - - - cursive - -
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ,
- "ctr": 82,
- "isSpeedy": false,
- "key": "css",
- "nonce": undefined,
- "tags": Array [
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ],
- },
- }
- }
- serialized={
- Object {
- "map": undefined,
- "name": "nh5djz",
- "next": undefined,
- "styles": "[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start;}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit;}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto !important;height:auto !important;z-index:0;}.simplebar-offset{direction:inherit !important;resize:none !important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch;}.simplebar-content-wrapper{direction:inherit;position:relative;display:block;visibility:visible;}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none;}.simplebar-height-auto-observer-wrapper{height:100%;width:inherit;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0;}.simplebar-height-auto-observer{display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1;}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden;}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all;}.simplebar-scrollbar{position:absolute;right:2px;width:7px;min-height:10px;}.simplebar-scrollbar:before{position:absolute;content:\\"\\";border-radius:7px;left:0;right:0;opacity:0;transition:opacity 0.2s linear;background:#333333;}.simplebar-track .simplebar-scrollbar.simplebar-visible:before{opacity:0.5;transition:opacity 0s linear;}.simplebar-track.simplebar-vertical{top:0;width:11px;}.simplebar-track.simplebar-vertical .simplebar-scrollbar:before{top:2px;bottom:2px;}.simplebar-track.simplebar-horizontal{left:0;height:11px;}.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before{height:100%;left:2px;right:2px;}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:2px;height:7px;min-height:0;min-width:10px;width:auto;}[data-simplebar-direction=\\"rtl\\"] .simplebar-track.simplebar-vertical{right:auto;left:0;}",
- "toString": [Function],
- }
- }
- />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- a
-
- ;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
---- -- - - - < - - div - - - > - - - - - It's a Basic test story: - - - - - - < - - - TestComponent - - - - - - array - - - - = - - - { - - - [ - - - - - 1 - - - , - - - - - 2 - - - , - - - - - 3 - - - - - ] - - - } - - - - - - bool - - - - - func - - - - = - - - { - - - function - - - - noRefCheck - - - ( - - - ) - - - - { - - - } - - - } - - - - - - number - - - - = - - - { - - - 7 - - - } - - - - - - obj - - - - = - - - { - - - { - - - a - - : - - - - 'a' - - - , - - - b - - : - - - - 'b' - - - - - } - - - } - - - - - - string - - - - = - - - " - - seven - - " - - - - - - /> - - - - - - - - - - </ - - div - - - > - - -
-
- undefined -
- - test - -
- storiesOf
-
- -
- - bold - - - - cursive - -
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ,
- "ctr": 82,
- "isSpeedy": false,
- "key": "css",
- "nonce": undefined,
- "tags": Array [
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ,
- ],
- },
- }
- }
- serialized={
- Object {
- "map": undefined,
- "name": "nh5djz",
- "next": undefined,
- "styles": "[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start;}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit;}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto !important;height:auto !important;z-index:0;}.simplebar-offset{direction:inherit !important;resize:none !important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch;}.simplebar-content-wrapper{direction:inherit;position:relative;display:block;visibility:visible;}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none;}.simplebar-height-auto-observer-wrapper{height:100%;width:inherit;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0;}.simplebar-height-auto-observer{display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1;}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden;}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all;}.simplebar-scrollbar{position:absolute;right:2px;width:7px;min-height:10px;}.simplebar-scrollbar:before{position:absolute;content:\\"\\";border-radius:7px;left:0;right:0;opacity:0;transition:opacity 0.2s linear;background:#333333;}.simplebar-track .simplebar-scrollbar.simplebar-visible:before{opacity:0.5;transition:opacity 0s linear;}.simplebar-track.simplebar-vertical{top:0;width:11px;}.simplebar-track.simplebar-vertical .simplebar-scrollbar:before{top:2px;bottom:2px;}.simplebar-track.simplebar-horizontal{left:0;height:11px;}.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before{height:100%;left:2px;right:2px;}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:2px;height:7px;min-height:0;min-width:10px;width:auto;}[data-simplebar-direction=\\"rtl\\"] .simplebar-track.simplebar-vertical{right:auto;left:0;}",
- "toString": [Function],
- }
- }
- />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- a
-
- ;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
---- -- - - - < - - div - - - > - - - - - It's a TestComponent story: - - - - - - < - - - TestComponent - - - - - - array - - - - = - - - { - - - [ - - - - - 1 - - - , - - - - - 2 - - - , - - - - - 3 - - - - - ] - - - } - - - - - - bool - - - - - func - - - - = - - - { - - - function - - - - noRefCheck - - - ( - - - ) - - - - { - - - } - - - } - - - - - - number - - - - = - - - { - - - 7 - - - } - - - - - - obj - - - - = - - - { - - - { - - - a - - : - - - - 'a' - - - , - - - b - - : - - - - 'b' - - - - - } - - - } - - - - - - string - - - - = - - - " - - seven - - " - - - - - - /> - - - - - - - - - - </ - - div - - - > - - -
-
property | -propType | -required | -default | -description | -
---|---|---|---|---|
{row.property} | -
- |
- {row.required ? 'yes' : '-'} | -
- {row.defaultValue === undefined ? (
- '-'
- ) : (
- |
- {multiLineText(row.description)} | -
- property - | -- propType - | -- required - | -- default - | -- description - | -
---|---|---|---|---|
- foo - | -
- |
- - - - | -- - - | -- |
property | -propType | -required | -default | -description | -
---|---|---|---|---|
{row.property} | -
- |
- {row.required ? 'yes' : '-'} | -
- {row.defaultValue === undefined ? (
- '-'
- ) : (
- |
- {multiLineText(row.description)} | -
- - property - | -- propType - | -- required - | -- default - | -- description - | -
---|---|---|---|---|
- foo - | -
- |
- - - - | -- - - | -- |
{children}; -} - -Blockquote.propTypes = { children: PropTypes.node }; -Blockquote.defaultProps = { children: null }; - -export { default as Pre } from './pre/pre'; diff --git a/addons/info/src/components/markdown/htags.js b/addons/info/src/components/markdown/htags.js deleted file mode 100644 index 57da398d6422..000000000000 --- a/addons/info/src/components/markdown/htags.js +++ /dev/null @@ -1,115 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; - -const defaultProps = { - children: null, - id: null, -}; -const propTypes = { - children: PropTypes.node, - id: PropTypes.string, -}; - -export function H1({ id, children }) { - const styles = { - borderBottom: '1px solid #eee', - fontWeight: 600, - margin: 0, - padding: 0, - fontSize: '40px', - }; - return ( -
-- ); - } -} - -Pre.propTypes = { - children: PropTypes.node, - theme: PropTypes.shape({ - pre: PropTypes.object, - }), -}; - -Pre.defaultProps = { - children: null, - theme: {}, -}; - -export default Pre; diff --git a/addons/info/src/components/markdown/text.js b/addons/info/src/components/markdown/text.js deleted file mode 100644 index 356a4575cd5e..000000000000 --- a/addons/info/src/components/markdown/text.js +++ /dev/null @@ -1,40 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; - -const defaultProps = { children: null }; -const propTypes = { children: PropTypes.node }; - -export function P({ children }) { - return{children}--
{children}
; -} - -P.defaultProps = defaultProps; -P.propTypes = propTypes; - -export function LI({ children }) { - return{String(empty)}
- test -storiesOf
- {children}
;
- }
- // className: "lang-jsx"
- const language = className.split('-');
- return (
- element when
-// converting markdown to react elements
-const defaultOptions = {
- overrides: {
- code: SyntaxHighlighter,
- a: NotesLink,
- Giphy: {
- component: Giphy,
- },
- },
-};
-
-interface Overrides {
- overrides: {
- [type: string]: ReactNode;
- };
-}
-type Options = typeof defaultOptions & Overrides;
-
-const mapper = ({
- state,
- api,
-}: Combo): { value?: string | Record; options: Options } => {
- const extraElements = Object.entries(api.getElements(types.NOTES_ELEMENT)).reduce(
- (acc, [k, v]) => ({ ...acc, [k]: v.render }),
- {}
- );
- const options = {
- ...defaultOptions,
- overrides: { ...defaultOptions.overrides, ...extraElements },
- };
-
- const story = state.storiesHash[state.storyId];
- const value = read(story ? api.getParameters(story.id, PARAM_KEY) : undefined);
-
- return { options, value };
-};
-
-const NotesPanel = ({ active }: Props) => {
- if (!active) {
- return null;
- }
-
- return (
-
- {({ options, value }: { options: Options; value?: string | Record }) => {
- if (!value) {
- return (
-
- No notes yet
-
- Learn how to
-
- document components in Markdown
-
-
-
- );
- }
-
- if (typeof value === 'string' || Object.keys(value).length === 1) {
- const md = typeof value === 'object' ? Object.values(value)[0] : value;
-
- return (
-
-
- {formatter(md)}
-
-
- );
- }
-
- const groups: { title: string; render: (props: { active: boolean }) => void }[] = [];
-
- Object.entries(value).forEach(([title, docs]) => {
- groups.push({
- title,
- render: ({ active: isActive }) => (
-
-
-
- {formatter(docs)}
-
-
-
- ),
- });
- });
-
- return (
-
-
- {groups.map(group => (
-
- {group.render}
-
- ))}
-
-
- );
- }}
-
- );
-};
-
-export default NotesPanel;
diff --git a/addons/notes/src/formatter.ts b/addons/notes/src/formatter.ts
deleted file mode 100644
index cb2f406fb710..000000000000
--- a/addons/notes/src/formatter.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-import memoize from 'memoizerific';
-
-export const formatter = memoize(2)((code: string) => {
- // code provided to the component is often coming from template literals, which preserve whitespace.
- // sometimes the first line doesn't have padding, but the second does.
- // we split the code-string into lines, then if we find padding on line 0 or 1,
- // we assume that padding is bad, and remove that much padding on all following lines
- return code
- .split(/\n/)
- .reduce(
- (acc, i, index) => {
- const match = i.match(/^((:?\s|\t)+)/);
- const padding = match ? match[1] : '';
-
- if (acc.firstIndent === '' && padding && index < 3) {
- return { result: `${acc.result}\n${i.replace(padding, '')}`, firstIndent: padding };
- }
- return {
- result: `${acc.result}\n${i.replace(acc.firstIndent, '').replace(/\s*$/, '')}`,
- firstIndent: acc.firstIndent,
- };
- },
- { firstIndent: '', result: '' }
- )
- .result.trim();
-});
diff --git a/addons/notes/src/giphy.tsx b/addons/notes/src/giphy.tsx
deleted file mode 100644
index 1111ce453564..000000000000
--- a/addons/notes/src/giphy.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import { fetch } from 'global';
-import React, { Component } from 'react';
-
-import { logger } from '@storybook/client-logger';
-
-interface Props {
- query: string;
-}
-interface State {
- src: string | null;
-}
-export default class Giphy extends Component {
- state: State = {
- src: null,
- };
-
- componentDidMount() {
- const { query } = this.props;
- // TODO: replace this api_key, and make it configurable
- // note: I have requested a production api_key:
- // it's pending: bluXZc8ZAre19mvTtVi900CdsJhbVTEK
- fetch(`http://api.giphy.com/v1/gifs/search?limit=1&api_key=dc6zaTOxFJmzC&q=${query}`)
- .then((response: { ok: any; json: () => void }) => response.ok && response.json())
- .then((data: { data: { images: { original: { url: string } } }[] }) => {
- this.setState({
- src: data.data[0].images.original.url,
- });
- })
- .catch((e: any) => logger.error(e));
- }
-
- render() {
- const { src } = this.state;
- // TODO: we should have a nice looking component
- return src ? : null;
- }
-}
diff --git a/addons/notes/src/index.ts b/addons/notes/src/index.ts
deleted file mode 100644
index f1ed9aea6602..000000000000
--- a/addons/notes/src/index.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-import { makeDecorator, StoryContext, StoryGetter, WrapperSettings } from '@storybook/addons';
-import deprecate from 'util-deprecate';
-
-// todo resolve any after @storybook/addons and @storybook/channels are migrated to TypeScript
-export const withNotes = makeDecorator({
- name: 'withNotes',
- parameterName: 'notes',
- skipIfNoParametersOrOptions: true,
- allowDeprecatedUsage: true,
-
- wrapper: deprecate(
- (getStory: StoryGetter, context: StoryContext, { options, parameters }: WrapperSettings) => {
- const storyOptions = parameters || options;
-
- const { text, markdown } =
- typeof storyOptions === 'string'
- ? {
- text: storyOptions,
- markdown: undefined,
- }
- : storyOptions;
-
- if (!text && !markdown) {
- throw new Error(
- `Parameter 'notes' must must be a string or an object with 'text' or 'markdown' properties`
- );
- }
-
- return getStory(context);
- },
- 'withNotes is deprecated'
- ),
-});
-
-export const withMarkdownNotes = deprecate((text: string, options: any) => {},
-'withMarkdownNotes is deprecated');
-
-if (module && module.hot && module.hot.decline) {
- module.hot.decline();
-}
diff --git a/addons/notes/src/public_api.ts b/addons/notes/src/public_api.ts
deleted file mode 100644
index dc0dc8965a31..000000000000
--- a/addons/notes/src/public_api.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from '.';
diff --git a/addons/notes/src/register.tsx b/addons/notes/src/register.tsx
deleted file mode 100644
index a5c6c0bf896a..000000000000
--- a/addons/notes/src/register.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import * as React from 'react';
-import addons, { types } from '@storybook/addons';
-
-import { ADDON_ID, PANEL_ID, PARAM_KEY } from './shared';
-
-// TODO: fix eslint in tslint (igor said he fixed it, should ask him)
-import Panel from './Panel';
-
-export default function register(type: types) {
- addons.register(ADDON_ID, api => {
- addons.add(PANEL_ID, {
- type,
- title: 'Notes',
- route: ({ storyId }) => `/info/${storyId}`, // todo add type
- match: ({ viewMode }) => viewMode === 'info', // todo add type
- render: ({ active, key }) => ,
- paramKey: PARAM_KEY,
- });
- });
-}
diff --git a/addons/notes/src/shared.ts b/addons/notes/src/shared.ts
deleted file mode 100644
index 708819358328..000000000000
--- a/addons/notes/src/shared.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-export const ADDON_ID = 'storybookjs/notes';
-export const PANEL_ID = `${ADDON_ID}/panel`;
-export const PARAM_KEY = `notes`;
-
-interface TextParameter {
- text: string;
-}
-interface MarkdownParameter {
- markdown: string;
-}
-interface DisabledParameter {
- disable: boolean;
-}
-type TabsParameter = Record;
-
-export type Parameters =
- | string
- | TextParameter
- | MarkdownParameter
- | DisabledParameter
- | TabsParameter;
diff --git a/addons/notes/src/typings.d.ts b/addons/notes/src/typings.d.ts
deleted file mode 100644
index 7d209326fbef..000000000000
--- a/addons/notes/src/typings.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-// There are no types for markdown-to-jsx
-declare module 'markdown-to-jsx' {
- const Markdown: any;
- export default Markdown;
-}
-
-declare module 'global';
diff --git a/addons/notes/tsconfig.json b/addons/notes/tsconfig.json
deleted file mode 100644
index 8876bb6737a1..000000000000
--- a/addons/notes/tsconfig.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "extends": "../../tsconfig.json",
- "compilerOptions": {
- "rootDir": "./src",
- "types": ["webpack-env"]
- },
- "include": [
- "src/**/*"
- ],
- "exclude": [
- "src/__tests__/**/*"
- ]
-}
diff --git a/examples/angular-cli/.storybook/main.js b/examples/angular-cli/.storybook/main.js
index e0a151381438..87199e4c9eb8 100644
--- a/examples/angular-cli/.storybook/main.js
+++ b/examples/angular-cli/.storybook/main.js
@@ -5,7 +5,6 @@ module.exports = {
'@storybook/addon-storysource',
'@storybook/addon-actions',
'@storybook/addon-links',
- '@storybook/addon-notes',
'@storybook/addon-knobs',
'@storybook/addon-options',
'@storybook/addon-jest',
diff --git a/examples/angular-cli/package.json b/examples/angular-cli/package.json
index c0dd5701099d..2e5d40d18460 100644
--- a/examples/angular-cli/package.json
+++ b/examples/angular-cli/package.json
@@ -45,7 +45,6 @@
"@storybook/addon-jest": "6.0.0-alpha.2",
"@storybook/addon-knobs": "6.0.0-alpha.2",
"@storybook/addon-links": "6.0.0-alpha.2",
- "@storybook/addon-notes": "6.0.0-alpha.2",
"@storybook/addon-options": "6.0.0-alpha.2",
"@storybook/addon-storyshots": "6.0.0-alpha.2",
"@storybook/addon-storysource": "6.0.0-alpha.2",
diff --git a/examples/angular-cli/src/stories/__snapshots__/addon-notes.stories.storyshot b/examples/angular-cli/src/stories/__snapshots__/addon-notes.stories.storyshot
deleted file mode 100644
index 35fb1e998f62..000000000000
--- a/examples/angular-cli/src/stories/__snapshots__/addon-notes.stories.storyshot
+++ /dev/null
@@ -1,37 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Storyshots Addon/Notes Note with HTML 1`] = `
-
-
-
-
-
-`;
-
-exports[`Storyshots Addon/Notes Simple note 1`] = `
-
-
-
-
-
-`;
diff --git a/examples/angular-cli/src/stories/__snapshots__/core.stories.storyshot b/examples/angular-cli/src/stories/__snapshots__/core.stories.storyshot
index ebb28412d380..baa509cf0f47 100644
--- a/examples/angular-cli/src/stories/__snapshots__/core.stories.storyshot
+++ b/examples/angular-cli/src/stories/__snapshots__/core.stories.storyshot
@@ -7,10 +7,10 @@ exports[`Storyshots Core/Parameters passed to story 1`] = `
target={[Function ViewContainerRef_]}
>
diff --git a/examples/angular-cli/src/stories/__snapshots__/custom-styles.stories.storyshot b/examples/angular-cli/src/stories/__snapshots__/custom-styles.stories.storyshot
index f9628db33bf5..7aaa2e151141 100644
--- a/examples/angular-cli/src/stories/__snapshots__/custom-styles.stories.storyshot
+++ b/examples/angular-cli/src/stories/__snapshots__/custom-styles.stories.storyshot
@@ -8,11 +8,11 @@ exports[`Storyshots Custom/Style Default 1`] = `
>
@@ -29,11 +29,11 @@ exports[`Storyshots Custom/Style With Knobs 1`] = `
>
diff --git a/examples/angular-cli/src/stories/addon-notes.stories.ts b/examples/angular-cli/src/stories/addon-notes.stories.ts
deleted file mode 100644
index 87f7bb7d69c9..000000000000
--- a/examples/angular-cli/src/stories/addon-notes.stories.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-import { Button } from '@storybook/angular/demo';
-
-export default {
- title: 'Addon/Notes',
-};
-
-export const SimpleNote = () => ({
- component: Button,
- props: {
- text: 'Notes on some Button',
- onClick: () => {},
- },
-});
-
-SimpleNote.story = {
- name: 'Simple note',
- parameters: { notes: 'My notes on some button' },
-};
-
-export const NoteWithHtml = () => ({
- component: Button,
- props: {
- text: 'Notes with HTML',
- onClick: () => {},
- },
-});
-
-NoteWithHtml.story = {
- name: 'Note with HTML',
- parameters: {
- notes: `
- My notes on emojis
-
- It's not all that important to be honest, but..
-
- Emojis are great, I love emojis, in fact I like using them in my Component notes too! 😇
- `,
- },
-};
diff --git a/examples/angular-cli/src/stories/customControlValueAccessor/custom-cva-component.stories.ts b/examples/angular-cli/src/stories/customControlValueAccessor/custom-cva-component.stories.ts
index bb93d416ef2f..e4a7ae06b432 100644
--- a/examples/angular-cli/src/stories/customControlValueAccessor/custom-cva-component.stories.ts
+++ b/examples/angular-cli/src/stories/customControlValueAccessor/custom-cva-component.stories.ts
@@ -1,10 +1,6 @@
import { action } from '@storybook/addon-actions';
import { CustomCvaComponent } from './custom-cva.component';
-const description = `
- This is an example of component that implements ControlValueAccessor interface
-`;
-
export default {
title: 'Custom/ngModel',
};
@@ -19,5 +15,4 @@ export const CustomControlValueAccessor = () => ({
CustomControlValueAccessor.story = {
name: 'custom ControlValueAccessor',
- parameters: { notes: description },
};
diff --git a/examples/angular-cli/src/stories/module-context/module-context-forRoot.stories.ts b/examples/angular-cli/src/stories/module-context/module-context-forRoot.stories.ts
index 91039deff0f6..10438400c401 100644
--- a/examples/angular-cli/src/stories/module-context/module-context-forRoot.stories.ts
+++ b/examples/angular-cli/src/stories/module-context/module-context-forRoot.stories.ts
@@ -13,33 +13,26 @@ storiesOf('Custom/Feature Module as Context with forRoot', module)
imports: [ChipsModule.forRoot()],
})
)
- .add(
- 'Component with self and dependencies declared in its feature module',
- () => {
- const props: { [K in keyof ChipsGroupComponent]?: any } = {
- chips: object('Chips', [
- {
- id: 1,
- text: 'Chip 1',
- },
- {
- id: 2,
- text: 'Chip 2',
- },
- ]),
- removeChipClick: action('Remove chip'),
- removeAllChipsClick: action('Remove all chips clicked'),
- };
- return {
- component: ChipsGroupComponent,
- props,
- };
- },
- {
- notes: `This component includes a child component, a pipe, and a default provider, all which come from
- the specified feature module.`,
- }
- )
+ .add('Component with self and dependencies declared in its feature module', () => {
+ const props: { [K in keyof ChipsGroupComponent]?: any } = {
+ chips: object('Chips', [
+ {
+ id: 1,
+ text: 'Chip 1',
+ },
+ {
+ id: 2,
+ text: 'Chip 2',
+ },
+ ]),
+ removeChipClick: action('Remove chip'),
+ removeAllChipsClick: action('Remove all chips clicked'),
+ };
+ return {
+ component: ChipsGroupComponent,
+ props,
+ };
+ })
.add('Component with default providers', () => {
const props: { [K in keyof ChipComponent]?: any } = {
displayText: text('Display Text', 'My Chip'),
diff --git a/examples/angular-cli/src/stories/on-push/__snapshots__/on-push.stories.storyshot b/examples/angular-cli/src/stories/on-push/__snapshots__/on-push.stories.storyshot
index bc7d043ffef1..ab226b47795a 100644
--- a/examples/angular-cli/src/stories/on-push/__snapshots__/on-push.stories.storyshot
+++ b/examples/angular-cli/src/stories/on-push/__snapshots__/on-push.stories.storyshot
@@ -7,7 +7,7 @@ exports[`Storyshots Core/OnPush Class-specified component with OnPush and Knobs
target={[Function ViewContainerRef_]}
>
Word of the day: OnPush
diff --git a/examples/angular-cli/src/stories/on-push/on-push.stories.ts b/examples/angular-cli/src/stories/on-push/on-push.stories.ts
index 0246c5e87a36..543a6187e630 100644
--- a/examples/angular-cli/src/stories/on-push/on-push.stories.ts
+++ b/examples/angular-cli/src/stories/on-push/on-push.stories.ts
@@ -16,9 +16,4 @@ export const ClassSpecifiedComponentWithOnPushAndKnobs = () => ({
ClassSpecifiedComponentWithOnPushAndKnobs.story = {
name: 'Class-specified component with OnPush and Knobs',
- parameters: {
- notes: `
- This component is specified by class and uses OnPush change detection. It has two properties, one being a HostBinding. Both should be updatable using knobs.
- `.trim(),
- },
};
diff --git a/examples/cra-kitchen-sink/.storybook/main.js b/examples/cra-kitchen-sink/.storybook/main.js
index 3cb41fc807f7..cded0ccb8265 100644
--- a/examples/cra-kitchen-sink/.storybook/main.js
+++ b/examples/cra-kitchen-sink/.storybook/main.js
@@ -10,7 +10,6 @@ module.exports = {
'@storybook/addon-actions',
'@storybook/addon-links',
'@storybook/addon-events',
- '@storybook/addon-notes',
'@storybook/addon-options',
'@storybook/addon-knobs',
'@storybook/addon-backgrounds',
diff --git a/examples/cra-kitchen-sink/package.json b/examples/cra-kitchen-sink/package.json
index 34045f78ea37..96b5cd1dcba1 100644
--- a/examples/cra-kitchen-sink/package.json
+++ b/examples/cra-kitchen-sink/package.json
@@ -24,11 +24,9 @@
"@storybook/addon-centered": "6.0.0-alpha.2",
"@storybook/addon-docs": "6.0.0-alpha.2",
"@storybook/addon-events": "6.0.0-alpha.2",
- "@storybook/addon-info": "6.0.0-alpha.2",
"@storybook/addon-jest": "6.0.0-alpha.2",
"@storybook/addon-knobs": "6.0.0-alpha.2",
"@storybook/addon-links": "6.0.0-alpha.2",
- "@storybook/addon-notes": "6.0.0-alpha.2",
"@storybook/addon-options": "6.0.0-alpha.2",
"@storybook/addon-storyshots": "6.0.0-alpha.2",
"@storybook/addons": "6.0.0-alpha.2",
diff --git a/examples/cra-kitchen-sink/src/stories/button.stories.js b/examples/cra-kitchen-sink/src/stories/button.stories.js
index 4a6563d040f4..d4045dc185b2 100644
--- a/examples/cra-kitchen-sink/src/stories/button.stories.js
+++ b/examples/cra-kitchen-sink/src/stories/button.stories.js
@@ -1,28 +1,7 @@
-/* eslint-disable react/destructuring-assignment */
import React from 'react';
import { action } from '@storybook/addon-actions';
-import { withInfo } from '@storybook/addon-info';
import { Button } from '@storybook/react/demo';
-import Container from '../components/Container';
-
-const InfoButton = () => (
-
- Show Info
-
-);
-
export default {
title: 'Button',
component: Button,
@@ -49,32 +28,3 @@ Story2.story = {
options: { selectedPanel: 'storybook/actions/panel' },
},
};
-
-export const Story3 = () => ;
-Story3.story = {
- name: 'with notes',
- parameters: {
- notes: 'A very simple button',
- options: { selectedPanel: 'storybook/notes/panel' },
- },
-};
-
-export const Story4 = context => (
-
-
- click the label in top right for info about "{context.name}"
-
-
-);
-Story4.story = {
- name: 'with new info',
- parameters: {
- notes: 'Composition: Info(Notes())',
- options: { selectedPanel: 'storybook/info/panel' },
- },
- decorators: [
- withInfo(
- 'Use the [info addon](https://github.com/storybookjs/storybook/tree/master/addons/info) with its new painless API.'
- ),
- ],
-};
diff --git a/examples/cra-ts-kitchen-sink/package.json b/examples/cra-ts-kitchen-sink/package.json
index 754ec97f4790..94e55238304f 100644
--- a/examples/cra-ts-kitchen-sink/package.json
+++ b/examples/cra-ts-kitchen-sink/package.json
@@ -36,7 +36,6 @@
"devDependencies": {
"@storybook/addon-a11y": "6.0.0-alpha.2",
"@storybook/addon-actions": "6.0.0-alpha.2",
- "@storybook/addon-info": "6.0.0-alpha.2",
"@storybook/addon-knobs": "6.0.0-alpha.2",
"@storybook/addon-links": "6.0.0-alpha.2",
"@storybook/addon-options": "6.0.0-alpha.2",
diff --git a/examples/ember-cli/.storybook/main.js b/examples/ember-cli/.storybook/main.js
index f57119476336..989dc9ee719b 100644
--- a/examples/ember-cli/.storybook/main.js
+++ b/examples/ember-cli/.storybook/main.js
@@ -7,7 +7,6 @@ module.exports = {
'@storybook/addon-actions',
'@storybook/addon-docs',
'@storybook/addon-links',
- '@storybook/addon-notes',
'@storybook/addon-knobs',
'@storybook/addon-viewport',
'@storybook/addon-options',
diff --git a/examples/ember-cli/package.json b/examples/ember-cli/package.json
index 19db23a55661..8cd7a57a410d 100644
--- a/examples/ember-cli/package.json
+++ b/examples/ember-cli/package.json
@@ -23,7 +23,6 @@
"@storybook/addon-docs": "6.0.0-alpha.2",
"@storybook/addon-knobs": "6.0.0-alpha.2",
"@storybook/addon-links": "6.0.0-alpha.2",
- "@storybook/addon-notes": "6.0.0-alpha.2",
"@storybook/addon-options": "6.0.0-alpha.2",
"@storybook/addon-storysource": "6.0.0-alpha.2",
"@storybook/addon-viewport": "6.0.0-alpha.2",
diff --git a/examples/ember-cli/stories/addon-notes.stories.js b/examples/ember-cli/stories/addon-notes.stories.js
deleted file mode 100644
index c413870dad1d..000000000000
--- a/examples/ember-cli/stories/addon-notes.stories.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import { hbs } from 'ember-cli-htmlbars';
-
-export default {
- title: 'Addon/Notes',
-};
-
-export const SimpleNote = () => ({
- template: hbs`Etiam vulputate elit eu venenatis eleifend. Duis nec lectus augue. Morbi egestas diam sed vulputate mollis. Fusce egestas pretium vehicula. Integer sed neque diam. Donec consectetur velit vitae enim varius, ut placerat arcu imperdiet. Praesent sed faucibus arcu. Nullam sit amet nibh a enim eleifend rhoncus. Donec pretium elementum leo at fermentum. Nulla sollicitudin, mauris quis semper tempus, sem metus tristique diam, efficitur pulvinar mi urna id urna.
`,
-});
-
-SimpleNote.story = {
- name: 'Simple note',
- parameters: { notes: 'My notes on some bold text' },
-};
-
-export const NoteWithHtml = () => ({
- template: hbs`🤔😳😯😮
😄😩😓😱
🤓😑😶😊
`,
-});
-
-NoteWithHtml.story = {
- name: 'Note with HTML',
-
- parameters: {
- notes: `
- My notes on emojies
-
- It's not all that important to be honest, but..
-
- Emojis are great, I love emojis, in fact I like using them in my Component notes too! 😇
- `,
- },
-};
diff --git a/examples/html-kitchen-sink/.storybook/main.js b/examples/html-kitchen-sink/.storybook/main.js
index 66ab602a73cd..042b87f86daf 100644
--- a/examples/html-kitchen-sink/.storybook/main.js
+++ b/examples/html-kitchen-sink/.storybook/main.js
@@ -10,7 +10,6 @@ module.exports = {
'@storybook/addon-jest',
'@storybook/addon-knobs',
'@storybook/addon-links',
- '@storybook/addon-notes',
'@storybook/addon-options',
'@storybook/addon-storysource',
'@storybook/addon-viewport',
diff --git a/examples/html-kitchen-sink/package.json b/examples/html-kitchen-sink/package.json
index cd316a0248a1..0c8391b6c76c 100644
--- a/examples/html-kitchen-sink/package.json
+++ b/examples/html-kitchen-sink/package.json
@@ -22,7 +22,6 @@
"@storybook/addon-jest": "6.0.0-alpha.2",
"@storybook/addon-knobs": "6.0.0-alpha.2",
"@storybook/addon-links": "6.0.0-alpha.2",
- "@storybook/addon-notes": "6.0.0-alpha.2",
"@storybook/addon-options": "6.0.0-alpha.2",
"@storybook/addon-storyshots": "6.0.0-alpha.2",
"@storybook/addon-storysource": "6.0.0-alpha.2",
diff --git a/examples/html-kitchen-sink/stories/__snapshots__/addon-notes.stories.storyshot b/examples/html-kitchen-sink/stories/__snapshots__/addon-notes.stories.storyshot
deleted file mode 100644
index 229ca7197d45..000000000000
--- a/examples/html-kitchen-sink/stories/__snapshots__/addon-notes.stories.storyshot
+++ /dev/null
@@ -1,15 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Storyshots Addons/Notes Simple note 1`] = `
-
-
-
-
-
- This is a fragment of HTML
-
-
-
-
-
-`;
diff --git a/examples/html-kitchen-sink/stories/addon-notes.stories.js b/examples/html-kitchen-sink/stories/addon-notes.stories.js
deleted file mode 100644
index 9129457c82d5..000000000000
--- a/examples/html-kitchen-sink/stories/addon-notes.stories.js
+++ /dev/null
@@ -1,16 +0,0 @@
-export default {
- title: 'Addons/Notes',
-};
-
-export const Story1 = () =>
- `
-
- This is a fragment of HTML
-
-
`;
-Story1.story = {
- name: 'Simple note',
- parameters: {
- notes: 'My notes on some bold text',
- },
-};
diff --git a/examples/mithril-kitchen-sink/.storybook/main.js b/examples/mithril-kitchen-sink/.storybook/main.js
index 3a53130947d7..0a070fa00ad2 100644
--- a/examples/mithril-kitchen-sink/.storybook/main.js
+++ b/examples/mithril-kitchen-sink/.storybook/main.js
@@ -6,7 +6,6 @@ module.exports = {
'@storybook/addon-storysource',
'@storybook/addon-actions',
'@storybook/addon-links',
- '@storybook/addon-notes',
'@storybook/addon-knobs',
'@storybook/addon-viewport',
'@storybook/addon-options',
diff --git a/examples/mithril-kitchen-sink/package.json b/examples/mithril-kitchen-sink/package.json
index 4a875364c661..841dae795db9 100644
--- a/examples/mithril-kitchen-sink/package.json
+++ b/examples/mithril-kitchen-sink/package.json
@@ -16,7 +16,6 @@
"@storybook/addon-centered": "6.0.0-alpha.2",
"@storybook/addon-knobs": "6.0.0-alpha.2",
"@storybook/addon-links": "6.0.0-alpha.2",
- "@storybook/addon-notes": "6.0.0-alpha.2",
"@storybook/addon-options": "6.0.0-alpha.2",
"@storybook/addon-storyshots": "6.0.0-alpha.2",
"@storybook/addon-storysource": "6.0.0-alpha.2",
diff --git a/examples/mithril-kitchen-sink/src/stories/addon-notes.stories.js b/examples/mithril-kitchen-sink/src/stories/addon-notes.stories.js
deleted file mode 100644
index 26a9b8a401db..000000000000
--- a/examples/mithril-kitchen-sink/src/stories/addon-notes.stories.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/** @jsx m */
-
-import m from 'mithril';
-
-export default {
- title: 'Addons/Notes',
-};
-
-export const Story1 = () => ({
- view: () => (
-
-
- Etiam vulputate elit eu venenatis eleifend. Duis nec lectus augue. Morbi egestas diam sed
- vulputate mollis. Fusce egestas pretium vehicula. Integer sed neque diam. Donec consectetur
- velit vitae enim varius, ut placerat arcu imperdiet. Praesent sed faucibus arcu. Nullam sit
- amet nibh a enim eleifend rhoncus. Donec pretium elementum leo at fermentum. Nulla
- sollicitudin, mauris quis semper tempus, sem metus tristique diam, efficitur pulvinar mi
- urna id urna.
-
-
- ),
-});
-
-Story1.story = {
- name: 'Simple note',
- parameters: { notes: 'My notes on some bold text' },
-};
-
-export const Story2 = () => ({
- view: () => (
-
- 🤔😳😯😮
-
- 😄😩😓😱
-
- 🤓😑😶😊
-
- ),
-});
-
-Story2.story = {
- name: 'Note with HTML',
- parameters: {
- notes: `
- My notes on emojies
-
- It's not all that important to be honest, but..
-
- Emojis are great, I love emojis, in fact I like using them in my Component notes too! 😇
- `,
- },
-};
diff --git a/examples/official-storybook/main.js b/examples/official-storybook/main.js
index cd5ac9d75050..0e2cf6ee5151 100644
--- a/examples/official-storybook/main.js
+++ b/examples/official-storybook/main.js
@@ -12,7 +12,6 @@ module.exports = {
'@storybook/addon-actions',
'@storybook/addon-links',
'@storybook/addon-events',
- '@storybook/addon-notes',
'@storybook/addon-options',
'@storybook/addon-knobs',
'@storybook/addon-cssresources',
diff --git a/examples/official-storybook/package.json b/examples/official-storybook/package.json
index e5b94f3be5f6..334c149947f1 100644
--- a/examples/official-storybook/package.json
+++ b/examples/official-storybook/package.json
@@ -24,11 +24,9 @@
"@storybook/addon-docs": "6.0.0-alpha.2",
"@storybook/addon-events": "6.0.0-alpha.2",
"@storybook/addon-graphql": "6.0.0-alpha.2",
- "@storybook/addon-info": "6.0.0-alpha.2",
"@storybook/addon-jest": "6.0.0-alpha.2",
"@storybook/addon-knobs": "6.0.0-alpha.2",
"@storybook/addon-links": "6.0.0-alpha.2",
- "@storybook/addon-notes": "6.0.0-alpha.2",
"@storybook/addon-options": "6.0.0-alpha.2",
"@storybook/addon-queryparams": "6.0.0-alpha.2",
"@storybook/addon-storyshots": "6.0.0-alpha.2",
diff --git a/examples/official-storybook/preview.js b/examples/official-storybook/preview.js
index c8ef59f5683d..074c294f18c0 100644
--- a/examples/official-storybook/preview.js
+++ b/examples/official-storybook/preview.js
@@ -3,7 +3,6 @@ import { addDecorator, addParameters } from '@storybook/react';
import { Global, ThemeProvider, themes, createReset, convert } from '@storybook/theming';
import { withCssResources } from '@storybook/addon-cssresources';
import { withA11y } from '@storybook/addon-a11y';
-import { withNotes } from '@storybook/addon-notes';
import { DocsPage } from '@storybook/addon-docs/blocks';
import addHeadWarning from './head-warning';
@@ -27,7 +26,6 @@ addHeadWarning('dotenv-file-not-loaded', 'Dotenv file not loaded');
addDecorator(withCssResources);
addDecorator(withA11y);
-addDecorator(withNotes);
addDecorator(storyFn => (
diff --git a/examples/official-storybook/stories/addon-info/EXAMPLE.md b/examples/official-storybook/stories/addon-info/EXAMPLE.md
deleted file mode 100644
index fc965844dda0..000000000000
--- a/examples/official-storybook/stories/addon-info/EXAMPLE.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# external
-## markdown
-file
diff --git a/examples/official-storybook/stories/addon-info/decorators.stories.js b/examples/official-storybook/stories/addon-info/decorators.stories.js
deleted file mode 100644
index 780fb3a0b6db..000000000000
--- a/examples/official-storybook/stories/addon-info/decorators.stories.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import React from 'react';
-import { withInfo } from '@storybook/addon-info';
-import BaseButton from '../../components/BaseButton';
-
-export default {
- title: 'Addons/Info/Decorator',
- decorators: [withInfo('Info can take options via the global or local decorator as well.')],
-};
-
-export const UseInfo = () => ;
-UseInfo.story = { name: 'Use Info as story decorator' };
diff --git a/examples/official-storybook/stories/addon-info/forward-ref.stories.js b/examples/official-storybook/stories/addon-info/forward-ref.stories.js
deleted file mode 100644
index 1aa8da24c022..000000000000
--- a/examples/official-storybook/stories/addon-info/forward-ref.stories.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import React from 'react';
-import { withInfo } from '@storybook/addon-info';
-import ForwardedRefButton from '../../components/ForwardedRefButton';
-import ForwardedRefButtonWDisplayName from '../../components/ForwardedRefButtonWDisplayName';
-
-export default {
- title: 'Addons/Info/ForwardRef',
- decorators: [withInfo],
-};
-
-export const DisplaysCorrectly = () => ;
-DisplaysCorrectly.story = { name: 'Displays forwarded ref components correctly' };
-
-export const DisplayName = () => (
-
-);
-DisplayName.story = { name: 'Uses forwardRef displayName if available' };
diff --git a/examples/official-storybook/stories/addon-info/github-issues.js b/examples/official-storybook/stories/addon-info/github-issues.js
deleted file mode 100644
index 3b96ca11eded..000000000000
--- a/examples/official-storybook/stories/addon-info/github-issues.js
+++ /dev/null
@@ -1,27 +0,0 @@
-import React from 'react';
-import { withInfo } from '@storybook/addon-info';
-
-const hoc = WrapComponent => ({ ...props }) => ;
-
-const Input = hoc(() => );
-
-const TextArea = hoc(({ children }) => );
-
-export default {
- title: 'Addons/Info/GitHub issues',
- decorators: [withInfo],
-};
-
-export const issue1814 = () => (
-
-
-
-
-);
-
-issue1814.story = {
- name: '#1814',
- parameters: {
- info: 'Allow Duplicate DisplayNames for HOC #1814',
- },
-};
diff --git a/examples/official-storybook/stories/addon-info/jsx.stories.js b/examples/official-storybook/stories/addon-info/jsx.stories.js
deleted file mode 100644
index 7db0a4ee09b5..000000000000
--- a/examples/official-storybook/stories/addon-info/jsx.stories.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import React from 'react';
-import { withInfo } from '@storybook/addon-info';
-import { action } from '@storybook/addon-actions';
-import BaseButton from '../../components/BaseButton';
-
-const JSXDescription = (
-
- This is a JSX info section
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ornare massa rutrum metus
- commodo, a mattis velit dignissim. Fusce vestibulum turpis sed massa egestas pharetra. Sed at
- libero nulla.
-
-
- This is a link
-
-
-
-
-
-);
-
-export default {
- title: 'Addons/Info/JSX',
- decorators: [withInfo],
-};
-
-export const DisplaysJsxInDescription = () => (
-
-);
-
-DisplaysJsxInDescription.story = {
- name: 'Displays JSX in description',
-
- parameters: {
- info: { text: JSXDescription },
- },
-};
diff --git a/examples/official-storybook/stories/addon-info/markdown.stories.js b/examples/official-storybook/stories/addon-info/markdown.stories.js
deleted file mode 100644
index 38038e50703f..000000000000
--- a/examples/official-storybook/stories/addon-info/markdown.stories.js
+++ /dev/null
@@ -1,82 +0,0 @@
-import React from 'react';
-import { withInfo } from '@storybook/addon-info';
-import { action } from '@storybook/addon-actions';
-
-import BaseButton from '../../components/BaseButton';
-import externalMdDocs from './EXAMPLE.md';
-
-export default {
- title: 'Addons/Info/Markdown',
- decorators: [withInfo],
- excludeStories: ['markdownDescription'],
-};
-
-export const markdownDescription = `
-#### You can use markdown in your withInfo description.
-
-Sometimes you might want to manually include some \`code\` examples:
-
-~~~js
-const Button = () => ;
-~~~
-
-classes in javascript
-
-~~~javascript
-export class FromComponent {
- form = new FormControl({
- searchTerm: new FromControl(''),
- searchDate: new FromControl(''),
- endDate: new FromControl(''),
- })
-}
-~~~
-
-html with special formatting
-
-~~~html
-
-
-
-~~~
-
-
-Maybe include a [link](http://storybook.js.org) to your project as well.
-`;
-
-export const DisplaysMarkdownInDescription = () => (
-
-);
-
-DisplaysMarkdownInDescription.story = {
- name: 'Displays Markdown in description',
- parameters: { info: markdownDescription },
-};
-
-export const FromInternalMarkdownFile = () => (
-
-);
-
-FromInternalMarkdownFile.story = {
- name: 'From internal Markdown file',
-
- parameters: {
- info: `
- # internal
- ## markdown
- file
- `,
- },
-};
-
-export const FromExternalMarkdownFile = () => (
-
-);
-
-FromExternalMarkdownFile.story = {
- name: 'From external Markdown file',
- parameters: { info: externalMdDocs },
-};
diff --git a/examples/official-storybook/stories/addon-info/options.stories.js b/examples/official-storybook/stories/addon-info/options.stories.js
deleted file mode 100644
index f75e3b825607..000000000000
--- a/examples/official-storybook/stories/addon-info/options.stories.js
+++ /dev/null
@@ -1,198 +0,0 @@
-import React from 'react';
-import { withInfo } from '@storybook/addon-info';
-import { action } from '@storybook/addon-actions';
-
-import FlowTypeButton from '../../components/FlowTypeButton';
-import BaseButton from '../../components/BaseButton';
-import TableComponent from '../../components/TableComponent';
-import { markdownDescription } from './markdown.stories';
-
-export default {
- title: 'Addons/Info/Options',
- decorators: [withInfo],
-};
-
-export const InlinesComponentInsideStory = () => ;
-InlinesComponentInsideStory.story = {
- name: 'Inlines component inside story',
- parameters: {
- info: {
- text: 'Component should be inlined between description and PropType table',
- inline: true, // Displays info inline vs click button to view
- },
- },
-};
-
-export const ExcludesPropTypesThatAreInTheExcludedPropTypesArray = () => (
-
-);
-ExcludesPropTypesThatAreInTheExcludedPropTypesArray.story = {
- name: 'Excludes propTypes that are in the excludedPropTypes array',
- parameters: {
- info: {
- text: 'Label propType should be excluded',
- excludedPropTypes: ['label'],
- },
- },
-};
-
-export const ShowsOrHidesInfoAddonHeader = () => ;
-ShowsOrHidesInfoAddonHeader.story = {
- name: 'Shows or hides Info Addon header',
- parameters: {
- info: {
- text: 'The Info Addon header should be hidden',
- header: false, // Toggles display of header with component name and description
- },
- },
-};
-
-export const ShowsOrHidesInfoAddonSource = () => ;
-ShowsOrHidesInfoAddonSource.story = {
- name: 'Shows or hides Info Addon source',
- parameters: {
- info: {
- text: 'The Info Addon source section should be hidden',
- source: false, // Displays the source of story Component
- },
- },
-};
-
-export const ShowsAdditionalComponentPropTables = () => ;
-ShowsAdditionalComponentPropTables.story = {
- name: 'Shows additional component prop tables',
- parameters: {
- info: {
- text: 'There should be a prop table added for a component not included in the story',
- propTables: [FlowTypeButton],
- },
- },
-};
-
-export const ExcludeComponentFromPropTables = () => (
-
-
-
-
-);
-ExcludeComponentFromPropTables.story = {
- name: 'Exclude component from prop tables',
- parameters: {
- info: {
- text: 'This can exclude extraneous components from being displayed in prop tables.',
- propTablesExclude: [FlowTypeButton],
- },
- },
-};
-
-export const ExtendInfoStylesWithAnObject = () => ;
-ExtendInfoStylesWithAnObject.story = {
- name: 'Extend info styles with an object',
- parameters: {
- info: {
- styles: {
- button: {
- base: {
- background: 'purple',
- },
- },
- header: {
- h1: {
- color: 'green',
- },
- },
- },
- },
- },
-};
-
-export const FullControlOverStylesUsingAFunction = () => ;
-FullControlOverStylesUsingAFunction.story = {
- name: 'Full control over styles using a function',
- parameters: {
- info: {
- styles: stylesheet => ({
- ...stylesheet,
- header: {
- ...stylesheet.header,
- h1: {
- ...stylesheet.header.h1,
- color: 'red',
- },
- },
- }),
- },
- },
-};
-
-export const UseACustomComponentForTheTable = () => ;
-UseACustomComponentForTheTable.story = {
- name: 'Use a custom component for the table',
- component: TableComponent,
- parameters: {
- info: {
- TableComponent,
- },
- },
-};
-
-export const UseInfoAsStoryDecorator = () => ;
-
-UseInfoAsStoryDecorator.story = {
- name: 'Use Info as story decorator',
- decorators: [withInfo('Info can take options via the global or local decorator as well.')],
-};
-
-export const UsingParametersAcrossAllStories = () => ;
-UsingParametersAcrossAllStories.story = {
- name: 'Using parameters across all stories',
-};
-
-export const OverwritingAndExtendingTheParametersAndOptionsSetStoriesWise = () => (
-
-);
-OverwritingAndExtendingTheParametersAndOptionsSetStoriesWise.story = {
- name: 'Overwriting and extending the parameters and options set stories-wise',
- parameters: {
- info: {
- text: 'Label propType should be excluded',
- excludedPropTypes: ['label'],
- },
- },
-};
-
-export const OverwriteTheParametersWithMarkdownVariable = () => (
-
-);
-
-OverwriteTheParametersWithMarkdownVariable.story = {
- name: 'Overwrite the parameters with markdown variable',
- parameters: { info: markdownDescription },
-};
-
-export const OverwriteTheTextParameterWithMarkdownInline = () => (
-
-);
-
-OverwriteTheTextParameterWithMarkdownInline.story = {
- name: 'Overwrite the text parameter with markdown inline',
- parameters: {
- info: {
- text: `
- description or documentation about my component, supports markdown
-
- ~~~js
-
- ~~~
- `,
- },
- },
-};
-
-export const DisableTheAddonEntirely = () => (
-
-);
-DisableTheAddonEntirely.story = {
- name: 'Disable the addon entirely',
- parameters: { info: { disable: true } },
-};
diff --git a/examples/official-storybook/stories/addon-info/parameters.stories.js b/examples/official-storybook/stories/addon-info/parameters.stories.js
deleted file mode 100644
index 9e36b966b5f7..000000000000
--- a/examples/official-storybook/stories/addon-info/parameters.stories.js
+++ /dev/null
@@ -1,80 +0,0 @@
-import React from 'react';
-import { withInfo } from '@storybook/addon-info';
-import { action } from '@storybook/addon-actions';
-
-import BaseButton from '../../components/BaseButton';
-import { markdownDescription } from './markdown.stories';
-
-export default {
- title: 'Addons/Info/Parameters',
- decorators: [
- withInfo({
- styles: {
- header: {
- h1: {
- color: 'green',
- },
- },
- },
- }),
- ],
- parameters: {
- info: {
- text:
- 'This text should be displayed on every story and the component should be inlined between description and PropType table',
- inline: true, // Displays info inline vs click button to view
- },
- },
-};
-
-export const UsingParametersAcrossAllStories = () => ;
-UsingParametersAcrossAllStories.story = {
- name: 'Using parameters across all stories',
-};
-
-export const OverwritingAndExtendingTheParametersAndOptionsSetStoriesWise = () => (
-
-);
-OverwritingAndExtendingTheParametersAndOptionsSetStoriesWise.story = {
- name: 'Overwriting and extending the parameters and options set stories-wise',
- parameters: {
- info: {
- text: 'Label propType should be excluded',
- excludedPropTypes: ['label'],
- },
- },
-};
-
-export const OverwriteTheParametersWithMarkdownVariable = () => (
-
-);
-OverwriteTheParametersWithMarkdownVariable.story = {
- name: 'Overwrite the parameters with markdown variable',
- parameters: { info: markdownDescription },
-};
-
-export const OverwriteTheTextParameterWithMarkdownInline = () => (
-
-);
-OverwriteTheTextParameterWithMarkdownInline.story = {
- name: 'Overwrite the text parameter with markdown inline',
- parameters: {
- info: {
- text: `
- description or documentation about my component, supports markdown
-
- ~~~js
-
- ~~~
- `,
- },
- },
-};
-
-export const DisableTheAddonEntirely = () => (
-
-);
-DisableTheAddonEntirely.story = {
- name: 'Disable the addon entirely',
- parameters: { info: { disable: true } },
-};
diff --git a/examples/official-storybook/stories/addon-info/react-docgen.stories.js b/examples/official-storybook/stories/addon-info/react-docgen.stories.js
deleted file mode 100644
index deef915f0478..000000000000
--- a/examples/official-storybook/stories/addon-info/react-docgen.stories.js
+++ /dev/null
@@ -1,118 +0,0 @@
-import React from 'react';
-import { withInfo } from '@storybook/addon-info';
-import { action } from '@storybook/addon-actions';
-
-import { DocgenButton } from '../../components/DocgenButton';
-import FlowTypeButton from '../../components/FlowTypeButton';
-import BaseButton from '../../components/BaseButton';
-import { NamedExportButton } from '../../components/NamedExportButton';
-
-export default {
- title: 'Addons/Info/React Docgen',
- component: DocgenButton,
- decorators: [withInfo],
-};
-
-export const CommentsFromPropTypeDeclarations = () => (
- {},
- }}
- arrayOf={[1, 2, 3]}
- />
-);
-
-CommentsFromPropTypeDeclarations.story = {
- name: 'Comments from PropType declarations',
-
- parameters: {
- info:
- 'Comments above the PropType declarations should be extracted from the React component file itself and rendered in the Info Addon prop table',
- },
-};
-
-export const CommentsFromFlowDeclarations = () => (
-
-);
-
-CommentsFromFlowDeclarations.story = {
- name: 'Comments from Flow declarations',
-
- parameters: {
- info:
- 'Comments above the Flow declarations should be extracted from the React component file itself and rendered in the Info Addon prop table',
- },
-};
-
-export const CommentsFromComponentDeclaration = () => (
-
-);
-
-CommentsFromComponentDeclaration.story = {
- name: 'Comments from component declaration',
-
- parameters: {
- info:
- 'Comments above the component declaration should be extracted from the React component file itself and rendered below the Info Addon heading',
- },
-};
-
-export const CommentsFromNamedExportComponentDeclaration = () => (
-
-);
-
-CommentsFromNamedExportComponentDeclaration.story = {
- name: 'Comments from named export component declaration',
-
- parameters: {
- info:
- 'Comments above the component declaration should be extracted from the React component file itself and rendered below the Info Addon heading',
- },
-};
-
-const markdownDescription = `
-#### You can use markdown in your withInfo description.
-
-Sometimes you might want to manually include some \`code\` examples:
-
-~~~js
-const Button = () => ;
-~~~
-
-classes in javascript
-
-~~~javascript
-export class FromComponent {
- form = new FormControl({
- searchTerm: new FromControl(''),
- searchDate: new FromControl(''),
- endDate: new FromControl(''),
- })
-}
-~~~
-
-html with special formatting
-
-~~~html
-
-
-
-~~~
-
-
-Maybe include a [link](http://storybook.js.org) to your project as well.
-`;
diff --git a/examples/official-storybook/stories/addon-info/story-source.stories.js b/examples/official-storybook/stories/addon-info/story-source.stories.js
deleted file mode 100644
index b3ab034e9ecb..000000000000
--- a/examples/official-storybook/stories/addon-info/story-source.stories.js
+++ /dev/null
@@ -1,73 +0,0 @@
-import React from 'react';
-import { withInfo } from '@storybook/addon-info';
-import { action } from '@storybook/addon-actions';
-
-import BaseButton from '../../components/BaseButton';
-import TableComponent from '../../components/TableComponent';
-
-export default {
- title: 'Addons/Info/Story Source',
- decorators: [withInfo],
-};
-
-export const OneProp = () => ;
-OneProp.story = { name: 'One prop' };
-
-export const ManyProps = () => ;
-ManyProps.story = { name: 'Many props' };
-
-export const Children = () => (
-
- Here is my nice button:
-
-
-);
-Children.story = { name: 'Children' };
-
-export const ArrayProp = () => {
- const propDefs = [
- {
- property: 'label',
- propType: { name: 'string' },
- required: true,
- description: 'Text to display inside button',
- },
- {
- property: 'disabled',
- propType: { name: 'boolean' },
- required: false,
- defaultValue: false,
- },
- {
- property: 'onClick',
- propType: { name: 'function' },
- description: 'Callback for when button is clicked',
- required: true,
- defaultValue: () => {},
- },
- {
- property: 'style',
- propType: { name: 'object' },
- description: 'Styles to apply to button',
- required: false,
- defaultValue: {},
- },
- ];
- return ;
-};
-ArrayProp.story = { name: 'Array prop' };
-
-export const ObjectProp = () => (
-
-);
-ObjectProp.story = { name: 'Object prop' };
diff --git a/examples/official-storybook/stories/core/errors.stories.js b/examples/official-storybook/stories/core/errors.stories.js
index 00c6c19bf082..df76d23bc9ab 100644
--- a/examples/official-storybook/stories/core/errors.stories.js
+++ b/examples/official-storybook/stories/core/errors.stories.js
@@ -27,7 +27,6 @@ export const badComponent = () => (
badComponent.story = {
name: 'story errors - invariant error',
parameters: {
- notes: 'Story does not return something react can render',
storyshots: { disable: true },
chromatic: { disable: true },
},
@@ -37,7 +36,6 @@ export const BadStory = () => badOutput;
BadStory.story = {
name: 'story errors - story un-renderable type',
parameters: {
- notes: 'Story does not return something react can render',
storyshots: { disable: true },
chromatic: { disable: true },
},
diff --git a/examples/official-storybook/stories/deprecated/addon-info.stories.js b/examples/official-storybook/stories/deprecated/addon-info.stories.js
deleted file mode 100644
index f63fadce4b12..000000000000
--- a/examples/official-storybook/stories/deprecated/addon-info.stories.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import React from 'react';
-import { withInfo } from '@storybook/addon-info';
-import { action } from '@storybook/addon-actions';
-import BaseButton from '../../components/BaseButton';
-
-import { markdownDescription } from '../addon-info/markdown.stories';
-
-export default {
- title: 'Addons/Info/deprecated',
-};
-
-export const DisplaysMarkdown = withInfo(markdownDescription)(() => (
-
-));
-
-DisplaysMarkdown.story = { name: 'Displays Markdown in description' };
diff --git a/examples/preact-kitchen-sink/.storybook/main.js b/examples/preact-kitchen-sink/.storybook/main.js
index 6f83f3c3e6ce..d0974d637901 100644
--- a/examples/preact-kitchen-sink/.storybook/main.js
+++ b/examples/preact-kitchen-sink/.storybook/main.js
@@ -6,7 +6,6 @@ module.exports = {
'@storybook/addon-storysource',
'@storybook/addon-actions',
'@storybook/addon-links',
- '@storybook/addon-notes',
'@storybook/addon-knobs',
'@storybook/addon-viewport',
'@storybook/addon-options',
diff --git a/examples/preact-kitchen-sink/package.json b/examples/preact-kitchen-sink/package.json
index 6885705668ea..b66a3037a7af 100644
--- a/examples/preact-kitchen-sink/package.json
+++ b/examples/preact-kitchen-sink/package.json
@@ -22,7 +22,6 @@
"@storybook/addon-contexts": "6.0.0-alpha.2",
"@storybook/addon-knobs": "6.0.0-alpha.2",
"@storybook/addon-links": "6.0.0-alpha.2",
- "@storybook/addon-notes": "6.0.0-alpha.2",
"@storybook/addon-options": "6.0.0-alpha.2",
"@storybook/addon-storyshots": "6.0.0-alpha.2",
"@storybook/addon-storysource": "6.0.0-alpha.2",
diff --git a/examples/preact-kitchen-sink/src/stories/__snapshots__/addon-notes.stories.storyshot b/examples/preact-kitchen-sink/src/stories/__snapshots__/addon-notes.stories.storyshot
deleted file mode 100644
index c2244acf527d..000000000000
--- a/examples/preact-kitchen-sink/src/stories/__snapshots__/addon-notes.stories.storyshot
+++ /dev/null
@@ -1,25 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Storyshots Addons/Notes Note with HTML 1`] = `
-
-
- 🤔😳😯😮
-
-
-
- 😄😩😓😱
-
-
-
- 🤓😑😶😊
-
-
-`;
-
-exports[`Storyshots Addons/Notes Simple note 1`] = `
-
-
- Etiam vulputate elit eu venenatis eleifend. Duis nec lectus augue. Morbi egestas diam sed vulputate mollis. Fusce egestas pretium vehicula. Integer sed neque diam. Donec consectetur velit vitae enim varius, ut placerat arcu imperdiet. Praesent sed faucibus arcu. Nullam sit amet nibh a enim eleifend rhoncus. Donec pretium elementum leo at fermentum. Nulla sollicitudin, mauris quis semper tempus, sem metus tristique diam, efficitur pulvinar mi urna id urna.
-
-
-`;
diff --git a/examples/preact-kitchen-sink/src/stories/addon-notes.stories.js b/examples/preact-kitchen-sink/src/stories/addon-notes.stories.js
deleted file mode 100644
index 9f5b05b996b6..000000000000
--- a/examples/preact-kitchen-sink/src/stories/addon-notes.stories.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/** @jsx h */
-
-import { h } from 'preact';
-
-import { withNotes } from '@storybook/addon-notes';
-
-export default {
- title: 'Addons/Notes',
- decorators: [withNotes],
-};
-
-export const SimpleNote = () => (
-
-
- Etiam vulputate elit eu venenatis eleifend. Duis nec lectus augue. Morbi egestas diam sed
- vulputate mollis. Fusce egestas pretium vehicula. Integer sed neque diam. Donec consectetur
- velit vitae enim varius, ut placerat arcu imperdiet. Praesent sed faucibus arcu. Nullam sit
- amet nibh a enim eleifend rhoncus. Donec pretium elementum leo at fermentum. Nulla
- sollicitudin, mauris quis semper tempus, sem metus tristique diam, efficitur pulvinar mi urna
- id urna.
-
-
-);
-
-SimpleNote.story = {
- name: 'Simple note',
- parameters: { notes: 'My notes on some bold text' },
-};
-
-export const NoteWithHtml = () => (
-
- 🤔😳😯😮
-
- 😄😩😓😱
-
- 🤓😑😶😊
-
-);
-
-NoteWithHtml.story = {
- name: 'Note with HTML',
-
- parameters: {
- notes: `
- My notes on emojies
-
- It's not all that important to be honest, but..
-
- Emojis are great, I love emojis, in fact I like using them in my Component notes too! 😇
- `,
- },
-};
diff --git a/examples/rax-kitchen-sink/.storybook/main.js b/examples/rax-kitchen-sink/.storybook/main.js
index 08801da7c620..95b6c60c5a0c 100644
--- a/examples/rax-kitchen-sink/.storybook/main.js
+++ b/examples/rax-kitchen-sink/.storybook/main.js
@@ -7,7 +7,6 @@ module.exports = {
'@storybook/addon-actions',
'@storybook/addon-links',
'@storybook/addon-events',
- '@storybook/addon-notes',
'@storybook/addon-options',
'@storybook/addon-knobs',
'@storybook/addon-backgrounds',
diff --git a/examples/rax-kitchen-sink/package.json b/examples/rax-kitchen-sink/package.json
index 62ffc8e895f3..04aa4c3ab06a 100644
--- a/examples/rax-kitchen-sink/package.json
+++ b/examples/rax-kitchen-sink/package.json
@@ -25,11 +25,9 @@
"@storybook/addon-backgrounds": "6.0.0-alpha.2",
"@storybook/addon-centered": "6.0.0-alpha.2",
"@storybook/addon-events": "6.0.0-alpha.2",
- "@storybook/addon-info": "6.0.0-alpha.2",
"@storybook/addon-jest": "6.0.0-alpha.2",
"@storybook/addon-knobs": "6.0.0-alpha.2",
"@storybook/addon-links": "6.0.0-alpha.2",
- "@storybook/addon-notes": "6.0.0-alpha.2",
"@storybook/addon-options": "6.0.0-alpha.2",
"@storybook/addon-storyshots": "6.0.0-alpha.2",
"@storybook/addon-storysource": "6.0.0-alpha.2",
diff --git a/examples/rax-kitchen-sink/src/stories/addon-a11y.stories.js b/examples/rax-kitchen-sink/src/stories/addon-a11y.stories.js
index 49b953eff4f1..30f8003dd711 100644
--- a/examples/rax-kitchen-sink/src/stories/addon-a11y.stories.js
+++ b/examples/rax-kitchen-sink/src/stories/addon-a11y.stories.js
@@ -2,7 +2,6 @@ import { createElement } from 'rax';
import { withA11Y } from '@storybook/addon-a11y';
import Text from 'rax-text';
import View from 'rax-view';
-import markdown from './note.md';
export default {
title: 'Addon/addon-a11y',
@@ -11,17 +10,10 @@ export default {
export const Basic = () => RAX TEXT NODE ;
-Basic.story = {
- parameters: { notes: 'super awesome note' },
-};
-
export const WithStyle = () => Styled text ;
WithStyle.story = {
name: 'with style',
- parameters: {
- notes: ' this is a note with emojis 🚀🚀🚀🚀🚀',
- },
};
export const WithMarkdown = () => (
@@ -37,9 +29,4 @@ export const WithMarkdown = () => (
WithMarkdown.story = {
name: 'with markdown',
- parameters: {
- notes: {
- markdown,
- },
- },
};
diff --git a/examples/rax-kitchen-sink/src/stories/addon-notes.stories.js b/examples/rax-kitchen-sink/src/stories/addon-notes.stories.js
deleted file mode 100644
index dfdbf8b90f62..000000000000
--- a/examples/rax-kitchen-sink/src/stories/addon-notes.stories.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import { createElement } from 'rax';
-import { withNotes } from '@storybook/addon-notes';
-import Text from 'rax-text';
-import markdown from './note.md';
-
-export default {
- title: 'Addon/addon-notes',
- decorators: [withNotes],
-};
-
-export const Basic = () => RAX TEXT NODE ;
-
-Basic.story = {
- parameters: { notes: 'super awesome note' },
-};
-
-export const WithEmojies = () => Styled text ;
-
-WithEmojies.story = {
- name: 'with emojies',
- parameters: {
- notes: ' this is a note with emojies 🚀🚀🚀🚀🚀',
- },
-};
-
-export const WithMarkdown = () => 😀 😎 👍 💯 ;
-
-WithMarkdown.story = {
- name: 'with markdown',
- parameters: {
- notes: {
- markdown,
- },
- },
-};
diff --git a/examples/rax-kitchen-sink/src/stories/note.md b/examples/rax-kitchen-sink/src/stories/note.md
deleted file mode 100644
index 3b17035bc753..000000000000
--- a/examples/rax-kitchen-sink/src/stories/note.md
+++ /dev/null
@@ -1,11 +0,0 @@
- #markdown note
-
-Hello **Rax**
-
-- works with notes
-- works with knobs
-- ...
-
-```js
-const hi = require('greeting');
-```
diff --git a/examples/riot-kitchen-sink/.storybook/main.js b/examples/riot-kitchen-sink/.storybook/main.js
index 20617194dd99..77685d79e14d 100644
--- a/examples/riot-kitchen-sink/.storybook/main.js
+++ b/examples/riot-kitchen-sink/.storybook/main.js
@@ -6,7 +6,6 @@ module.exports = {
'@storybook/addon-storysource',
'@storybook/addon-actions',
'@storybook/addon-links',
- '@storybook/addon-notes',
'@storybook/addon-knobs',
'@storybook/addon-viewport',
'@storybook/addon-options',
diff --git a/examples/riot-kitchen-sink/package.json b/examples/riot-kitchen-sink/package.json
index 4c459dc64a09..652617da7725 100644
--- a/examples/riot-kitchen-sink/package.json
+++ b/examples/riot-kitchen-sink/package.json
@@ -21,7 +21,6 @@
"@storybook/addon-centered": "6.0.0-alpha.2",
"@storybook/addon-knobs": "6.0.0-alpha.2",
"@storybook/addon-links": "6.0.0-alpha.2",
- "@storybook/addon-notes": "6.0.0-alpha.2",
"@storybook/addon-options": "6.0.0-alpha.2",
"@storybook/addon-storyshots": "6.0.0-alpha.2",
"@storybook/addon-storysource": "6.0.0-alpha.2",
diff --git a/examples/riot-kitchen-sink/src/stories/__snapshots__/addon-notes.stories.storyshot b/examples/riot-kitchen-sink/src/stories/__snapshots__/addon-notes.stories.storyshot
deleted file mode 100644
index 399887ec1487..000000000000
--- a/examples/riot-kitchen-sink/src/stories/__snapshots__/addon-notes.stories.storyshot
+++ /dev/null
@@ -1,31 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Storyshots Addon/Notes Note with HTML 1`] = `
-
-
-
- 🤔😳😯😮
-
- 😄😩😓😱
-
- 🤓😑😶😊
-
-
-
-`;
-
-exports[`Storyshots Addon/Notes Simple note 1`] = `
-
-
-
- Etiam vulputate elit eu venenatis eleifend. Duis nec lectus augue. Morbi egestas diam sed vulputate mollis. Fusce egestas pretium vehicula. Integer sed neque diam. Donec consectetur velit vitae enim varius, ut placerat arcu imperdiet. Praesent sed faucibus arcu. Nullam sit amet nibh a enim eleifend rhoncus. Donec pretium elementum leo at fermentum. Nulla sollicitudin, mauris quis semper tempus, sem metus tristique diam, efficitur pulvinar mi urna id urna.
-
-
-
-`;
diff --git a/examples/riot-kitchen-sink/src/stories/addon-notes.stories.js b/examples/riot-kitchen-sink/src/stories/addon-notes.stories.js
deleted file mode 100644
index cd8f2ad23633..000000000000
--- a/examples/riot-kitchen-sink/src/stories/addon-notes.stories.js
+++ /dev/null
@@ -1,31 +0,0 @@
-export default {
- title: 'Addon/Notes',
-};
-
-export const SimpleNote = () => ({
- tags: [
- 'Etiam vulputate elit eu venenatis eleifend. Duis nec lectus augue. Morbi egestas diam sed vulputate mollis. Fusce egestas pretium vehicula. Integer sed neque diam. Donec consectetur velit vitae enim varius, ut placerat arcu imperdiet. Praesent sed faucibus arcu. Nullam sit amet nibh a enim eleifend rhoncus. Donec pretium elementum leo at fermentum. Nulla sollicitudin, mauris quis semper tempus, sem metus tristique diam, efficitur pulvinar mi urna id urna.
',
- ],
-});
-
-SimpleNote.story = {
- name: 'Simple note',
- parameters: { notes: 'My notes on some bold text' },
-};
-
-export const NoteWithHtml = () => ({
- tags: ['🤔😳😯😮
😄😩😓😱
🤓😑😶😊
'],
-});
-
-NoteWithHtml.story = {
- name: 'Note with HTML',
- parameters: {
- notes: `
- My notes on emojies
-
- It's not all that important to be honest, but..
-
- Emojis are great, I love emojis, in fact I like using them in my Component notes too! 😇
- `,
- },
-};
diff --git a/examples/riot-kitchen-sink/src/stories/story-code.stories.js b/examples/riot-kitchen-sink/src/stories/story-code.stories.js
index 7a06796e7cd9..20ef03a408ce 100644
--- a/examples/riot-kitchen-sink/src/stories/story-code.stories.js
+++ b/examples/riot-kitchen-sink/src/stories/story-code.stories.js
@@ -36,10 +36,6 @@ export const BuiltFromTagsAndTemplate = () => ({
BuiltFromTagsAndTemplate.story = {
name: 'built from tags and template',
- parameters: {
- notes:
- 'WARN : the tag file root element must have exactly the same name (or else you will see nothing)',
- },
};
export const TagsTemplateAndTagConstructorAtOnce = () => ({
@@ -65,9 +61,6 @@ export const BuiltFromThePrecompilation = () => mount('anothertest', {});
BuiltFromThePrecompilation.story = {
name: 'built from the precompilation',
- parameters: {
- notes: 'WARN, only works in lower case, never upper case with precompiled templates',
- },
};
export const TheMountInstructionIsNotNecessary = () => ({ tagName: 'anothertest', opts: {} });
diff --git a/examples/svelte-kitchen-sink/.storybook/main.js b/examples/svelte-kitchen-sink/.storybook/main.js
index 05e4ce3f0c53..2f3f49da9ad8 100644
--- a/examples/svelte-kitchen-sink/.storybook/main.js
+++ b/examples/svelte-kitchen-sink/.storybook/main.js
@@ -6,7 +6,6 @@ module.exports = {
'@storybook/addon-storysource',
'@storybook/addon-actions',
'@storybook/addon-links',
- '@storybook/addon-notes',
'@storybook/addon-knobs',
'@storybook/addon-backgrounds',
'@storybook/addon-viewport',
diff --git a/examples/svelte-kitchen-sink/package.json b/examples/svelte-kitchen-sink/package.json
index ecba85cb0649..ebc063e15dc1 100644
--- a/examples/svelte-kitchen-sink/package.json
+++ b/examples/svelte-kitchen-sink/package.json
@@ -16,7 +16,6 @@
"@storybook/addon-centered": "6.0.0-alpha.2",
"@storybook/addon-knobs": "6.0.0-alpha.2",
"@storybook/addon-links": "6.0.0-alpha.2",
- "@storybook/addon-notes": "6.0.0-alpha.2",
"@storybook/addon-options": "6.0.0-alpha.2",
"@storybook/addon-storyshots": "6.0.0-alpha.2",
"@storybook/addon-storysource": "6.0.0-alpha.2",
diff --git a/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-notes.stories.storyshot b/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-notes.stories.storyshot
deleted file mode 100644
index c0e7c6be1f23..000000000000
--- a/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-notes.stories.storyshot
+++ /dev/null
@@ -1,85 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Storyshots Addon/Notes Note with HTML 1`] = `
-
-
- Button view
-
-
-
-
-
- A little text to show this is a view.
-
-
-
- If we need to test components in a Svelte environment, for instance to test slot behaviour,
-
-
-
- then wrapping the component up in a view
-
-
-
- made just for the story is the simplest way to achieve this.
-
-
-`;
-
-exports[`Storyshots Addon/Notes Simple note 1`] = `
-
-
- Button view
-
-
-
-
-
- A little text to show this is a view.
-
-
-
- If we need to test components in a Svelte environment, for instance to test slot behaviour,
-
-
-
- then wrapping the component up in a view
-
-
-
- made just for the story is the simplest way to achieve this.
-
-
-`;
diff --git a/examples/svelte-kitchen-sink/src/stories/addon-notes.stories.js b/examples/svelte-kitchen-sink/src/stories/addon-notes.stories.js
deleted file mode 100644
index 220ac04ad61e..000000000000
--- a/examples/svelte-kitchen-sink/src/stories/addon-notes.stories.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import ButtonView from './views/ButtonView.svelte';
-
-export default {
- title: 'Addon/Notes',
-};
-
-export const SimpleNote = () => ({
- Component: ButtonView,
-});
-
-SimpleNote.story = {
- name: 'Simple note',
- parameters: { notes: 'My notes on the [ButtonView](/story/addon-notes--simple-note) component' },
-};
-
-export const NoteWithHtml = () => ({
- Component: ButtonView,
- props: {
- text: '🤔😳😯😮😄😩😓😱🤓😑😶😊',
- },
-});
-
-NoteWithHtml.story = {
- name: 'Note with HTML',
- parameters: {
- notes: `
- My notes on emojies
-
- It's not all that important to be honest, but..
-
- Emojis are great, I love emojis, in fact I like using them in my Component notes too! 😇
- `,
- },
-};
diff --git a/examples/vue-kitchen-sink/.storybook/main.js b/examples/vue-kitchen-sink/.storybook/main.js
index 1b0c3c5a231c..b4ef787c935b 100644
--- a/examples/vue-kitchen-sink/.storybook/main.js
+++ b/examples/vue-kitchen-sink/.storybook/main.js
@@ -5,7 +5,6 @@ module.exports = {
'@storybook/addon-storysource',
'@storybook/addon-actions',
'@storybook/addon-links',
- '@storybook/addon-notes',
'@storybook/addon-knobs',
'@storybook/addon-viewport',
'@storybook/addon-options',
diff --git a/examples/vue-kitchen-sink/package.json b/examples/vue-kitchen-sink/package.json
index 25510c1e0966..9dde17dc0c9f 100644
--- a/examples/vue-kitchen-sink/package.json
+++ b/examples/vue-kitchen-sink/package.json
@@ -22,7 +22,6 @@
"@storybook/addon-docs": "6.0.0-alpha.2",
"@storybook/addon-knobs": "6.0.0-alpha.2",
"@storybook/addon-links": "6.0.0-alpha.2",
- "@storybook/addon-notes": "6.0.0-alpha.2",
"@storybook/addon-options": "6.0.0-alpha.2",
"@storybook/addon-storyshots": "6.0.0-alpha.2",
"@storybook/addon-storysource": "6.0.0-alpha.2",
diff --git a/examples/vue-kitchen-sink/src/stories/__snapshots__/addon-notes.stories.storyshot b/examples/vue-kitchen-sink/src/stories/__snapshots__/addon-notes.stories.storyshot
deleted file mode 100644
index b32786b702de..000000000000
--- a/examples/vue-kitchen-sink/src/stories/__snapshots__/addon-notes.stories.storyshot
+++ /dev/null
@@ -1,19 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Storyshots Addon/Notes Note with HTML 1`] = `
-
- 🤔😳😯😮
-
- 😄😩😓😱
-
- 🤓😑😶😊
-
-`;
-
-exports[`Storyshots Addon/Notes Simple note 1`] = `
-
-
- Etiam vulputate elit eu venenatis eleifend. Duis nec lectus augue. Morbi egestas diam sed vulputate mollis. Fusce egestas pretium vehicula. Integer sed neque diam. Donec consectetur velit vitae enim varius, ut placerat arcu imperdiet. Praesent sed faucibus arcu. Nullam sit amet nibh a enim eleifend rhoncus. Donec pretium elementum leo at fermentum. Nulla sollicitudin, mauris quis semper tempus, sem metus tristique diam, efficitur pulvinar mi urna id urna.
-
-
-`;
diff --git a/examples/vue-kitchen-sink/src/stories/addon-notes.stories.js b/examples/vue-kitchen-sink/src/stories/addon-notes.stories.js
deleted file mode 100644
index 809d459a88ca..000000000000
--- a/examples/vue-kitchen-sink/src/stories/addon-notes.stories.js
+++ /dev/null
@@ -1,31 +0,0 @@
-export default {
- title: 'Addon/Notes',
-};
-
-export const SimpleNote = () => ({
- template:
- 'Etiam vulputate elit eu venenatis eleifend. Duis nec lectus augue. Morbi egestas diam sed vulputate mollis. Fusce egestas pretium vehicula. Integer sed neque diam. Donec consectetur velit vitae enim varius, ut placerat arcu imperdiet. Praesent sed faucibus arcu. Nullam sit amet nibh a enim eleifend rhoncus. Donec pretium elementum leo at fermentum. Nulla sollicitudin, mauris quis semper tempus, sem metus tristique diam, efficitur pulvinar mi urna id urna.
',
-});
-
-SimpleNote.story = {
- name: 'Simple note',
- parameters: { notes: 'My notes on some bold text' },
-};
-
-export const NoteWithHtml = () => ({
- template: '🤔😳😯😮
😄😩😓😱
🤓😑😶😊
',
-});
-
-NoteWithHtml.story = {
- name: 'Note with HTML',
-
- parameters: {
- notes: `
- My notes on emojies
-
- It's not all that important to be honest, but..
-
- Emojis are great, I love emojis, in fact I like using them in my Component notes too! 😇
- `,
- },
-};
diff --git a/examples/web-components-kitchen-sink/package.json b/examples/web-components-kitchen-sink/package.json
index a7f4a7016cfa..a048b0f08b8f 100644
--- a/examples/web-components-kitchen-sink/package.json
+++ b/examples/web-components-kitchen-sink/package.json
@@ -21,7 +21,6 @@
"@storybook/addon-jest": "6.0.0-alpha.2",
"@storybook/addon-knobs": "6.0.0-alpha.2",
"@storybook/addon-links": "6.0.0-alpha.2",
- "@storybook/addon-notes": "6.0.0-alpha.2",
"@storybook/addon-options": "6.0.0-alpha.2",
"@storybook/addon-storyshots": "6.0.0-alpha.2",
"@storybook/addon-storysource": "6.0.0-alpha.2",
diff --git a/yarn.lock b/yarn.lock
index c0e7ea0a07a1..835eaa986551 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3308,6 +3308,46 @@
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.7.0.tgz#9a06f4f137ee84d7df0460c1fdb1135ffa6c50fd"
integrity sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==
+"@storybook/addon-info@6.0.0-alpha.2":
+ version "6.0.0-alpha.2"
+ resolved "https://registry.yarnpkg.com/@storybook/addon-info/-/addon-info-6.0.0-alpha.2.tgz#2ee4e45f0692996afeeaa199ded5d6f3c3176383"
+ integrity sha512-isr+LdrXVnJ2GODvrgyHN1pZF1lwDbSgCkLn9o04qe5SK9mP+3yyXjLinnF4KEfpc3WmQIffz3soZcqJ2osugw==
+ dependencies:
+ "@storybook/addons" "6.0.0-alpha.2"
+ "@storybook/client-logger" "6.0.0-alpha.2"
+ "@storybook/components" "6.0.0-alpha.2"
+ "@storybook/theming" "6.0.0-alpha.2"
+ core-js "^3.0.1"
+ global "^4.3.2"
+ marksy "^8.0.0"
+ nested-object-assign "^1.0.3"
+ prop-types "^15.7.2"
+ react "^16.8.3"
+ react-addons-create-fragment "^15.6.2"
+ react-element-to-jsx-string "^14.0.2"
+ react-is "^16.8.3"
+ react-lifecycles-compat "^3.0.4"
+ util-deprecate "^1.0.2"
+
+"@storybook/addon-notes@6.0.0-alpha.2":
+ version "6.0.0-alpha.2"
+ resolved "https://registry.yarnpkg.com/@storybook/addon-notes/-/addon-notes-6.0.0-alpha.2.tgz#c836b1b9a7374f2c830a12030ba69250924c51a2"
+ integrity sha512-hg98JqgavnARbp8WA77zb5p5YNmMB+Xi+qsc3QxqEiWHdqqtnOJpU9eqs/eJPOHL2Tny49jipDmo7nVFNmOETA==
+ dependencies:
+ "@storybook/addons" "6.0.0-alpha.2"
+ "@storybook/api" "6.0.0-alpha.2"
+ "@storybook/client-logger" "6.0.0-alpha.2"
+ "@storybook/components" "6.0.0-alpha.2"
+ "@storybook/core-events" "6.0.0-alpha.2"
+ "@storybook/router" "6.0.0-alpha.2"
+ "@storybook/theming" "6.0.0-alpha.2"
+ core-js "^3.0.1"
+ global "^4.3.2"
+ markdown-to-jsx "^6.10.3"
+ memoizerific "^1.11.3"
+ prop-types "^15.7.2"
+ util-deprecate "^1.0.2"
+
"@storybook/addons@6.0.0-alpha.0":
version "6.0.0-alpha.0"
resolved "https://registry.yarnpkg.com/@storybook/addons/-/addons-6.0.0-alpha.0.tgz#f4416a8c9c081961e5950a7962d7a5102138717e"