Skip to content

Commit

Permalink
update to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
juliankrispel committed Nov 9, 2017
1 parent 8c06628 commit 1a0eae6
Show file tree
Hide file tree
Showing 45 changed files with 1,691 additions and 1,395 deletions.
4 changes: 0 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,3 @@ Then use it as a preset when loading your JS:
Run `./scripts/publishGithubPages.sh`

The `build` script renames the .babelrc files of all plugins to avoid issues with the build. In the future we might be able to remove this again.

## Publishing NPM Package as Beta

Go into the package and run `npm publish --tag beta`
2 changes: 0 additions & 2 deletions HOW_TO_CREATE_A_PLUGIN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Note: this guide already focuses on version 2 (currently in beta) of the DraftJS Plugins architecture.

-----

# Basics
Expand Down
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ High quality plugins with great UX on top of [DraftJS](https://github.com/facebo

[![Build Status](https://travis-ci.org/draft-js-plugins/draft-js-plugins.svg?branch=master)](https://travis-ci.org/draft-js-plugins/draft-js-plugins)

## Important Note

We are currently preparing for a 2.0 release. The `master` branch contains these features. All the packages are already published with a beta tag. Install it via `$ npm install <plugin>@2.0.0-rc8 --save`.

## Roadmap

In case you are interested in helping [Issue #329](https://github.com/draft-js-plugins/draft-js-plugins/issues/329) contains a roadmap of what's coming in 2.0 and beyond.

## Available Plugins (incl. Docs)

- [Alignment](https://www.draft-js-plugins.com/plugin/alignment)
Expand Down Expand Up @@ -65,12 +57,6 @@ First, install the editor with `npm`:
$ npm install draft-js-plugins-editor --save
```

To try out the beta version of 2.0.0 run

```
$ npm install [email protected] --save
```

Then import the editor somewhere in your code and you're ready to go!

```js
Expand Down
6 changes: 3 additions & 3 deletions docs/client/components/pages/Alignment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-focus-plugin@beta --save" />
<Code code="npm install draft-js-alignment-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-focus-plugin" />
<Code code="npm install draft-js-alignment-plugin" />
<Heading level={3}>Importing the default styles</Heading>
<p>
The plugin ships with a default styling available at this location in the installed package:
Expand Down
6 changes: 3 additions & 3 deletions docs/client/components/pages/Anchor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export default class App extends Component {
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<p>This plugin allows you to add link entities via the <Link to="/plugin/inline-toolbar">inline toolbar</Link>. It also provides a decorator that formats the created entities.</p>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-anchor-plugin@beta --save" />
<Code code="npm install draft-js-inline-toolbar-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-anchor-plugin" />
<Code code="npm install draft-js-inline-toolbar-plugin" />
<Code code={gettingStarted} name="gettingStarted.js" />
<p>
The plugin ships with a default styling available at this location:
Expand Down
4 changes: 2 additions & 2 deletions docs/client/components/pages/Counter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-counter-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-counter-plugin" />
<Code code={gettingStarted} name="gettingStarted.js" />
<Heading level={3}>Importing the default styles</Heading>
<p>
Expand Down
6 changes: 3 additions & 3 deletions docs/client/components/pages/DragNDrop/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-focus-plugin@beta --save" />
<Code code="npm install draft-js-drag-n-drop-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-focus-plugin" />
<Code code="npm install draft-js-drag-n-drop-plugin" />
<Code code={gettingStarted} name="gettingStarted.js" />
<Heading level={3}>Importing the default styles</Heading>
<p>
Expand Down
4 changes: 2 additions & 2 deletions docs/client/components/pages/Emoji/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-emoji-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-emoji-plugin" />
<Code code={gettingStarted} name="gettingStarted.js" />
<Heading level={3}>Importing the default styles</Heading>
<p>
Expand Down
4 changes: 2 additions & 2 deletions docs/client/components/pages/Focus/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-focus-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-focus-plugin" />
<Heading level={3}>Importing the default styles</Heading>
<p>
The plugin ships with a default styling available at this location in the installed package:
Expand Down
4 changes: 2 additions & 2 deletions docs/client/components/pages/Hashtag/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-hashtag-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-hashtag-plugin" />
<Code code={gettingStarted} name="gettingStarted.js" />
<Heading level={3}>Importing the default styles</Heading>
<p>
Expand Down
4 changes: 2 additions & 2 deletions docs/client/components/pages/Image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-image-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-image-plugin" />
<Code code={gettingStarted} name="gettingStarted.js" />
<Heading level={3}>Importing the default styles</Heading>
<p>
Expand Down
4 changes: 2 additions & 2 deletions docs/client/components/pages/InlineToolbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-inline-toolbar-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-inline-toolbar-plugin" />
<Code code={gettingStarted} name="gettingStarted.js" />
<Heading level={3}>Importing the default styles</Heading>
<p>
Expand Down
4 changes: 2 additions & 2 deletions docs/client/components/pages/Linkify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-linkify-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-linkify-plugin" />
<Code code={gettingStarted} name="gettingStarted.js" />
<Heading level={3}>Importing the default styles</Heading>
<p>
Expand Down
4 changes: 2 additions & 2 deletions docs/client/components/pages/Mention/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-mention-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-mention-plugin" />
<Code code="Please checkout the 'Simple Example' further down the page." />
<Heading level={3}>Importing the default styles</Heading>
<p>
Expand Down
6 changes: 3 additions & 3 deletions docs/client/components/pages/Resizeable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-focus-plugin@beta --save" />
<Code code="npm install draft-js-resizeable-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-focus-plugin" />
<Code code="npm install draft-js-resizeable-plugin" />
<Heading level={3}>Importing the default styles</Heading>
<p>
The plugin ships with a default styling available at this location in the installed package:
Expand Down
4 changes: 2 additions & 2 deletions docs/client/components/pages/SideToolbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-side-toolbar-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-side-toolbar-plugin" />
<Code code={gettingStarted} name="gettingStarted.js" />
<Heading level={3}>Importing the default styles</Heading>
<p>
Expand Down
4 changes: 2 additions & 2 deletions docs/client/components/pages/StaticToolbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-static-toolbar-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-static-toolbar-plugin" />
<Code code={gettingStarted} name="gettingStarted.js" />
<Heading level={3}>Importing the default styles</Heading>
<p>
Expand Down
4 changes: 2 additions & 2 deletions docs/client/components/pages/Sticker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-sticker-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-sticker-plugin" />
<Code code={gettingStarted} name="gettingStarted.js" />
<Heading level={3}>Importing the default styles</Heading>
<p>
Expand Down
4 changes: 2 additions & 2 deletions docs/client/components/pages/Undo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2}>Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-undo-plugin@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-undo-plugin" />
<Code code={gettingStarted} name="gettingStarted.js" />
<Heading level={3}>Importing the default styles</Heading>
<p>
Expand Down
2 changes: 1 addition & 1 deletion docs/client/components/pages/Video/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class App extends Component {
</Container>
<AlternateContainer>
<Heading level={2} >Getting Started</Heading>
<Code code="npm install draft-js-plugins-editor@beta --save" />
<Code code="npm install draft-js-plugins-editor" />
<Code code="npm install draft-js-video-plugin --save" />
<Code code={gettingStarted} name="gettingStarted.js" />
</AlternateContainer>
Expand Down
2 changes: 1 addition & 1 deletion docs/client/components/shared/NavBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class NavBar extends Component {
</ul>
</div>
<div style={{ textAlign: 'center', marginTop: '3rem', fontSize: 13, color: '#aaa' }}>
The documentation currently represents the 2.0.0-rc8 release.<br />For troubleshooting please checkout the
The documentation currently represents the 2.0.1 release.<br />For troubleshooting please checkout the
<a href="https://github.com/draft-js-plugins/draft-js-plugins/blob/master/FAQ.md" className={styles.link}>
FAQ
</a>
Expand Down
Loading

0 comments on commit 1a0eae6

Please sign in to comment.