forked from draft-js-plugins/draft-js-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
4,848 additions
and
5,124 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
stories: ['../stories/index.js', '../stories/**/*.stories.*'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
// @ts-ignore remove it when the file is migrated to ts | ||
import AddImageEditor from './AddImageEditor'; | ||
|
||
export default { | ||
title: 'Image/Editor with Image Plugin and Add mechanism', | ||
component: AddImageEditor, | ||
} as Meta; | ||
|
||
export const Default: Story = () => <AddImageEditor />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
import CustomAddVideoEditor from './CustomAddVideoEditor'; | ||
|
||
export default { | ||
title: 'Video/Editor with Video Plugin and Add Video Button', | ||
component: CustomAddVideoEditor | ||
} as Meta; | ||
|
||
export const Default: Story = () => <CustomAddVideoEditor />; |
11 changes: 11 additions & 0 deletions
11
stories/align-drag-focus-and-resize-images/src/CustomImageEditor.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
import CustomImageEditor from './CustomImageEditor'; | ||
|
||
export default { | ||
title: | ||
'Image/Editor With Image Plugin And A Few Others DragAndDrop Alignment Resizable Focus', | ||
component: CustomImageEditor, | ||
} as Meta; | ||
|
||
export const Default: Story = () => <CustomImageEditor />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
import SimpleAlignmentEditor from './SimpleAlignmentEditor'; | ||
|
||
export default { | ||
title: 'EditorWithAlignmentPlugin', | ||
title: 'Alignment/Editor With Alignment Plugin', | ||
component: SimpleAlignmentEditor, | ||
}; | ||
|
||
export const EditorWithAlignmentPlugin = () => <SimpleAlignmentEditor />; | ||
} as Meta; | ||
|
||
EditorWithAlignmentPlugin.storyName = 'Editor with Alignment Plugin'; | ||
export const Default: Story = () => <SimpleAlignmentEditor />; |
11 changes: 11 additions & 0 deletions
11
stories/counter-plugin-simple/src/SimpleCounterEditor.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
import SimpleCounterEditor from './SimpleCounterEditor'; | ||
|
||
export default { | ||
title: 'Counter/Editor With Counter Plugin', | ||
component: SimpleCounterEditor, | ||
} as Meta; | ||
|
||
export const Default: Story = () => <SimpleCounterEditor />; |
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
stories/displaying-images/src/SimpleImageEditor.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
import SimpleImageEditor from './SimpleImageEditor'; | ||
|
||
export default { | ||
title: 'Image/Editor with Image Plugin', | ||
component: SimpleImageEditor, | ||
} as Meta; | ||
|
||
export const Default: Story = () => <SimpleImageEditor />; |
12 changes: 12 additions & 0 deletions
12
stories/divider-with-side-toolbar/src/DividerWithSideToolbar.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
// @ts-ignore remove it when the file is migrated to ts | ||
import DividerWithSideToolbarEditor from './App'; | ||
|
||
export default { | ||
title: 'Divider/Divider with side toolbar', | ||
component: DividerWithSideToolbarEditor, | ||
} as Meta; | ||
|
||
export const Default: Story = () => <DividerWithSideToolbarEditor />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
import DragNDropImageEditor from './DragNDropImageEditor'; | ||
|
||
export default { | ||
title: 'Image/Editor With DragNDrop Plugin And Image Plugin', | ||
component: DragNDropImageEditor, | ||
} as Meta; | ||
|
||
export const Default: Story = () => <DragNDropImageEditor />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
import CustomEmojiEditor from './CustomEmojiEditor'; | ||
|
||
export default { | ||
title: 'Emoji/Editor with Emoji Plugin using native emojis', | ||
component: CustomEmojiEditor | ||
} as Meta; | ||
|
||
export const Default: Story = () => <CustomEmojiEditor />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
import SimpleEmojiEditor from './SimpleEmojiEditor'; | ||
|
||
export default { | ||
title: 'Emoji/Editor with Emoji Plugin using emoji-one plugins', | ||
component: SimpleEmojiEditor, | ||
} as Meta; | ||
|
||
export const Default: Story = () => <SimpleEmojiEditor />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
import SimpleFocusEditor from './SimpleFocusEditor'; | ||
|
||
export default { | ||
title: 'Focus/Editor with Focus Plugin', | ||
component: SimpleFocusEditor, | ||
} as Meta; | ||
|
||
export const Default: Story = () => <SimpleFocusEditor />; |
11 changes: 11 additions & 0 deletions
11
stories/hashtag-styled/src/CustomHashtagEditor.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
import CustomHashtagEditor from './CustomHashtagEditor'; | ||
|
||
export default { | ||
title: 'Hashtag/Editor with custom themed Hashtag Plugin', | ||
component: CustomHashtagEditor, | ||
} as Meta; | ||
|
||
export const Default: Story = () => <CustomHashtagEditor />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
import SimpleHashtagEditor from './SimpleHashtagEditor'; | ||
|
||
export default { | ||
title: 'Hashtag/Editor with Hashtag Plugin', | ||
component: SimpleHashtagEditor, | ||
} as Meta; | ||
|
||
export const Default: Story = () => <SimpleHashtagEditor />; |
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
stories/inline-toolbar-custom-buttons/src/CustomInlineToolbarEditor.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
import CustomInlineToolbarEditor from './CustomInlineToolbarEditor'; | ||
|
||
export default { | ||
title: 'Inline Toolbar/Editor with inline toolbar plugin containing all buttons', | ||
component: CustomInlineToolbarEditor, | ||
} as Meta; | ||
|
||
export const Default: Story = () => <CustomInlineToolbarEditor />; |
11 changes: 11 additions & 0 deletions
11
stories/inline-toolbar-custom-styled/src/ThemedInlineToolbarEditor.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
import ThemedInlineToolbarEditor from './ThemedInlineToolbarEditor'; | ||
|
||
export default { | ||
title: 'Inline Toolbar/Editor with custom themed toolbar plugin', | ||
component: ThemedInlineToolbarEditor, | ||
} as Meta; | ||
|
||
export const Default: Story = () => <ThemedInlineToolbarEditor />; |
11 changes: 11 additions & 0 deletions
11
stories/inline-toolbar-relative-parent/src/RelativeParentInlineToolbarEditor.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
import RelativeParentInlineToolbarEditor from './RelativeParentInlineToolbarEditor'; | ||
|
||
export default { | ||
title: 'Inline Toolbar/Inline Toolbar with relatively positioned parent', | ||
component: RelativeParentInlineToolbarEditor, | ||
} as Meta; | ||
|
||
export const Default: Story = () => <RelativeParentInlineToolbarEditor />; |
11 changes: 11 additions & 0 deletions
11
stories/inline-toolbar-with-anchor-plugin/src/AnchorSimpleLinkPluginEditor.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
import AnchorSimpleLinkPluginEditor from './AnchorSimpleLinkPluginEditor'; | ||
|
||
export default { | ||
title: 'Anchor/Editor with Anchor Plugin', | ||
component: AnchorSimpleLinkPluginEditor, | ||
} as Meta; | ||
|
||
export const Default: Story = () => <AnchorSimpleLinkPluginEditor />; |
Oops, something went wrong.