b0VIM 7.4n['&jbeard4Jacobs-MacBook-Pro-3.local~jbeard4/workspace/scion/projects/libraries/react-codemirror/src/Codemirror.jsutf-8 3210#"! Utprsadrg<vhK/  l P 3  h   J F B * V  _  wso<|PYTP!qkfb^1|b^R9p.*i951$ 'ReactCodeMirror', const editorClassName = className( render () { }, } this.props.onChange(doc.getValue(), change); if (this.props.onChange && change.origin !== 'setValue') { codemirrorValueChanged (doc, change) { }, this.props.onScroll && this.props.onScroll(cm.getScrollInfo()); scrollChanged (cm) { }, this.props.onCursorActivity && this.props.onCursorActivity(cm); cursorActivity (cm) { }, this.props.onFocusChange && this.props.onFocusChange(focused); }); isFocused: focused, this.setState({ focusChanged (focused) { }, } this.codeMirror.focus(); if (this.codeMirror) { focus () { }, return this.codeMirror; getCodeMirror () { }, } this.codeMirror.setOption(optionName, newValue); if (!isEqual(oldValue, newValue)) { const oldValue = this.codeMirror.getOption(optionName); setOptionIfChanged (optionName, newValue) { }, } } } this.setOptionIfChanged(optionName, nextProps.options[optionName]); if (nextProps.options.hasOwnProperty(optionName)) { for (let optionName in nextProps.options) { if (typeof nextProps.options === 'object') { } } this.codeMirror.setValue(nextProps.value); } else { this.codeMirror.scrollTo(prevScrollPosition.left, prevScrollPosition.top); this.codeMirror.setValue(nextProps.value); var prevScrollPosition = this.codeMirror.getScrollInfo(); if (this.props.preserveScrollPosition) { if (this.codeMirror && nextProps.value !== undefined && nextProps.value !== this.props.value && normalizeLineEndings(this.codeMirror.getValue()) !== normalizeLineEndings(nextProps.value)) { componentWillReceiveProps: function (nextProps) { }, } this.codeMirror.toTextArea(); if (this.codeMirror) { // is there a lighter-weight way to remove the cm instance? componentWillUnmount () { }, //this.codeMirror.setValue(this.props.defaultValue || this.props.value || ''); this.codeMirror.on('scroll', this.scrollChanged); this.codeMirror.on('blur', this.focusChanged.bind(this, false)); this.codeMirror.on('focus', this.focusChanged.bind(this, true)); this.codeMirror.on('cursorActivity', this.cursorActivity); this.codeMirror.on('change', this.codemirrorValueChanged); this.codeMirror = codeMirrorInstance.fromTextArea(this.textareaNode, this.props.options); const codeMirrorInstance = this.getCodeMirrorInstance(); componentDidMount () { }, } console.error('Warning: react-codemirror: the `path` prop has been changed to `name`'); if (this.props.path) { componentWillMount () { }, }; isFocused: false, return { getInitialState () { }, return this.props.codeMirrorInstance || require('@scion-scxml/codemirror'); getCodeMirrorInstance () { }, }; preserveScrollPosition: false, return { getDefaultProps () { }, preserveScrollPosition: PropTypes.bool, value: PropTypes.string, path: PropTypes.string, options: PropTypes.object, onScroll: PropTypes.func, onFocusChange: PropTypes.func, onCursorActivity: PropTypes.func, onChange: PropTypes.func, name: PropTypes.string, defaultValue: PropTypes.string, codeMirrorInstance: PropTypes.func, className: PropTypes.any, autoFocus: PropTypes.bool, propTypes: {const CodeMirror = createReactClass({} return str.replace(/\r\n|\r/g, '\n'); if (!str) return str;function normalizeLineEndings (str) {const createReactClass = require('create-react-class');const isEqual = require('lodash.isequal');const className = require('classnames');const PropTypes = require('prop-types');const ReactDOM = require('react-dom');const React = require('react');ad pvh>pomodule.exports = CodeMirror;}); }, ); /> autoFocus={this.props.autoFocus} autoComplete="off" defaultValue={this.props.value} name={this.props.name || this.props.path} ref={ref => this.textareaNode = ref} return ( ); this.props.className this.state.isFocused ? 'ReactCodeMirror--focused' : null,