react-ace
Advanced tools
Comparing version 6.1.1 to 6.1.2
@@ -8,2 +8,9 @@ # Changelog | ||
## 6.1.2 | ||
* Additional Diff documentation | ||
* Add className to diff | ||
* Add Logo to docs | ||
* upgrade dev dependencies | ||
## 6.1.1 | ||
@@ -10,0 +17,0 @@ |
@@ -11,12 +11,12 @@ # Diff Editor | ||
import { render } from 'react-dom'; | ||
import DiffEditor from '../src/diff.js'; | ||
import { diff as DiffEditor } from 'react-ace'; | ||
import 'brace/mode/jsx'; | ||
import 'brace/theme/github'; // this is needed as the default theme | ||
render( | ||
<DiffEditor | ||
value=['Test code differences', 'Test code difference'] | ||
value={['Test code differences', 'Test code difference']} | ||
height="1000px" | ||
width="1000px" | ||
mode="javascript" | ||
mode="text" | ||
/> | ||
@@ -26,2 +26,4 @@ ); | ||
Also see the [diff](../example/diff.js) [example](../example/diff.html) in the example folder for more robust sample code (seen in the [demo](http://securingsincity.github.io/react-ace/diff.html)). | ||
## Available Props | ||
@@ -28,0 +30,0 @@ |
@@ -17,3 +17,3 @@ # Frequently Asked Questions | ||
```javascript | ||
const reactAceComponent = parent.refs.reactAceComponent; | ||
const reactAceComponent = this.refs.reactAceComponent; | ||
const editor = reactAceComponent.editor | ||
@@ -20,0 +20,0 @@ editor.find(searchRegex, { |
@@ -229,2 +229,3 @@ 'use strict'; | ||
name: this.props.name, | ||
className: this.props.className, | ||
focus: this.props.focus, | ||
@@ -282,2 +283,3 @@ orientation: this.props.orientation, | ||
name: _propTypes2.default.string, | ||
className: _propTypes2.default.string, | ||
onLoad: _propTypes2.default.func, | ||
@@ -284,0 +286,0 @@ onPaste: _propTypes2.default.func, |
{ | ||
"name": "react-ace", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "A react component for Ace Editor", | ||
@@ -39,16 +39,16 @@ "main": "lib/index.js", | ||
"enzyme-adapter-react-16": "^1.0.1", | ||
"eslint": "4.19.1", | ||
"eslint": "5.0.1", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.0", | ||
"eslint-plugin-react": "7.7.0", | ||
"eslint-plugin-react": "7.10.0", | ||
"jsdom": "^11.0.0", | ||
"mocha": "5.1.1", | ||
"nyc": "11.7.1", | ||
"react": "^16.3.2", | ||
"react-dom": "^16.3.2", | ||
"mocha": "5.2.0", | ||
"nyc": "12.0.2", | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0", | ||
"react-test-renderer": "^16.0.0", | ||
"rimraf": "2.6.2", | ||
"sinon": "5.0.6", | ||
"webpack": "4.8.1", | ||
"webpack-cli": "^2.0.9", | ||
"sinon": "6.0.1", | ||
"webpack": "4.12.2", | ||
"webpack-cli": "^3.0.2", | ||
"webpack-dev-server": "^3.1.3" | ||
@@ -55,0 +55,0 @@ }, |
@@ -1,2 +0,3 @@ | ||
# React-Ace | ||
# React-Ace | ||
![logo](https://github.com/securingsincity/react-ace/raw/master/logo.png) | ||
@@ -18,2 +19,4 @@ [![Backers on Open Collective](https://opencollective.com/react-ace/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/react-ace/sponsors/badge.svg)](#sponsors) [![Greenkeeper badge](https://badges.greenkeeper.io/securingsincity/react-ace.svg)](https://greenkeeper.io/) | ||
[DEMO of React Ace Diff Editor](http://securingsincity.github.io/react-ace/diff.html) | ||
## Install | ||
@@ -20,0 +23,0 @@ |
@@ -187,2 +187,3 @@ import SplitEditor from './split.js'; | ||
name={this.props.name} | ||
className={this.props.className} | ||
focus={this.props.focus} | ||
@@ -235,2 +236,3 @@ orientation={this.props.orientation} | ||
name: PropTypes.string, | ||
className: PropTypes.string, | ||
onLoad: PropTypes.func, | ||
@@ -237,0 +239,0 @@ onPaste: PropTypes.func, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2072154
61
9250
121