Skip to content
This repository was archived by the owner on May 31, 2020. It is now read-only.

Commit 5be158f

Browse files
committed
update examples, move depdency
1 parent 926ab28 commit 5be158f

File tree

9 files changed

+11119
-8
lines changed

9 files changed

+11119
-8
lines changed
File renamed without changes.

examples/counter/package-lock.json

Lines changed: 11113 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/couter-example/package.json renamed to examples/counter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"dependencies": {
88
"@djsp/utils": "^0.1.5",
9-
"@djsp/editor": "^0.1.5",
9+
"@djsp/core": "^0.1.5",
1010
"react": "^16.2.0",
1111
"react-dom": "^16.2.0",
1212
"react-scripts": "^1.1.1"
File renamed without changes.

examples/couter-example/src/WordCountPlugin.js renamed to examples/counter/src/WordCountPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Fragment } from 'react'
2-
import { Plugin } from '@djsp/editor'
2+
import { Plugin } from '@djsp/core'
33
import { getCharCount, getWordCount, getLineCount } from '@djsp/utils'
44

55
export default function WordCountPlugin() {

examples/couter-example/src/index.js renamed to examples/counter/src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { Component } from 'react'
22
import ReactDOM from 'react-dom'
33

44
import { EditorState, ContentState } from 'draft-js'
5-
import { EditorContainer, Editor } from '@djsp/editor'
5+
import { EditorContainer, Editor } from '@djsp/core'
66
import WordCountPlugin from './WordCountPlugin'
77
import './styles.css'
88

@@ -21,7 +21,6 @@ class App extends Component {
2121
<EditorContainer
2222
editorState={this.state.editorState}
2323
onChange={this.onChange}>
24-
<WordCountPlugin />
2524
<Editor />
2625
</EditorContainer>
2726
</div>
File renamed without changes.

packages/utils/package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/utils/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"cross-env": "^5.1.4",
2626
"flow-bin": "^0.81.0",
2727
"flow-typed": "^2.5.1",
28-
"punycode": "^2.1.1",
2928
"react": "^16.2.0",
3029
"react-dom": "^16.6.0",
3130
"rollup": "^0.66.2",
@@ -37,6 +36,7 @@
3736
"dist"
3837
],
3938
"dependencies": {
40-
"draft-js": "^0.10.5"
39+
"draft-js": "^0.10.5",
40+
"punycode": "^2.1.1"
4141
}
4242
}

0 commit comments

Comments
 (0)