formatic
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -49,3 +49,3 @@ // # Choices component | ||
var magicChoiceRe = /^\/\/\/[^\/]+\/\/\/$/; | ||
var magicChoiceRe = /^\/\/\/[^/]+\/\/\/$/; | ||
@@ -52,0 +52,0 @@ var keyCodeToDirection = (_keyCodeToDirection = {}, _defineProperty(_keyCodeToDirection, _utils.keyCodes.UP, -1), _defineProperty(_keyCodeToDirection, _utils.keyCodes.DOWN, 1), _keyCodeToDirection); |
@@ -222,3 +222,2 @@ 'use strict'; | ||
} | ||
var onInsertClick = function onInsertClick() { | ||
@@ -379,2 +378,9 @@ this.setState({ selectedTagPos: null }); | ||
maybeSetCursorPosition: function maybeSetCursorPosition(position) { | ||
if (position && this.codeMirror) { | ||
this.codeMirror.setCursor(position); | ||
} | ||
}, | ||
createCodeMirrorEditor: function createCodeMirrorEditor() { | ||
@@ -396,3 +402,3 @@ var options = { | ||
textBox.innerHTML = ''; // release any previous read-only content so it can be GC'ed | ||
var pos = this.codeMirror ? this.codeMirror.getCursor() : null; | ||
this.codeMirror = CodeMirror(textBox, options); | ||
@@ -402,6 +408,6 @@ this.codeMirror.on('change', this.onCodeMirrorChange); | ||
this.tagCodeMirror(); | ||
this.tagCodeMirror(pos); | ||
}, | ||
tagCodeMirror: function tagCodeMirror() { | ||
tagCodeMirror: function tagCodeMirror(cursorPosition) { | ||
var _this4 = this; | ||
@@ -427,5 +433,7 @@ | ||
this.codeMirror.operation(tagOps); | ||
this.maybeSetCursorPosition(cursorPosition); | ||
} else { | ||
requestAnimationFrame(function () { | ||
_this4.codeMirror.operation(tagOps); | ||
_this4.maybeSetCursorPosition(cursorPosition); | ||
}); | ||
@@ -432,0 +440,0 @@ } |
{ | ||
"name": "formatic", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "Automatic, pluggable form generation", | ||
@@ -23,51 +23,52 @@ "main": "./build/lib/index.js", | ||
"devDependencies": { | ||
"babel-cli": "6.11.4", | ||
"babel-core": "6.14.0", | ||
"babel-eslint": "4.0.5", | ||
"babel-jest": "14.1.0", | ||
"babel-loader": "6.2.5", | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-eslint": "^8.0.2", | ||
"babel-jest": "^21.2.0", | ||
"babel-loader": "^7.1.2", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-preset-es2015": "6.13.2", | ||
"babel-preset-react": "6.11.1", | ||
"bootstrap": "3.3.5", | ||
"codemirror": "5.9.0", | ||
"css-loader": "0.23.0", | ||
"envify": "1.2.1", | ||
"es6-promise": "3.0.2", | ||
"eslint": "3.13.1", | ||
"eslint-loader": "1.1.1", | ||
"eslint-plugin-react": "6.10.3", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-react": "^6.24.1", | ||
"bootstrap": "^3.3.7", | ||
"codemirror": "^5.32.0", | ||
"css-loader": "^0.28.7", | ||
"envify": "^4.1.0", | ||
"es6-promise": "^4.1.1", | ||
"eslint": "^4.12.1", | ||
"eslint-loader": "^1.9.0", | ||
"eslint-plugin-react": "^7.5.1", | ||
"groc": "https://registry.npmjs.org/groc/-/groc-0.7.0.tgz", | ||
"gulp": "3.8.11", | ||
"gulp-gh-pages": "0.4.0", | ||
"gulp-load-plugins": "0.5.3", | ||
"gulp-run": "1.6.6", | ||
"gulp-shell": "0.2.8", | ||
"jest-cli": "14.0.1", | ||
"jquery": "2.1.4", | ||
"lodash": "3.10.1", | ||
"marked": "0.3.6", | ||
"node-libs-browser": "2.0.0", | ||
"open": "0.0.5", | ||
"portscanner": "2.1.1", | ||
"react": "16.0.0", | ||
"react-bootstrap": "0.30.2", | ||
"react-dom": "16.0.0", | ||
"react-hot-loader": "^3.0.0", | ||
"react-tools": "0.12.2", | ||
"require-dir": "0.1.0", | ||
"rollup": "0.41.6", | ||
"rollup-plugin-babel": "2.7.1", | ||
"run-sequence": "1.0.2", | ||
"shelljs": "0.3.0", | ||
"style-loader": "0.13.0", | ||
"webpack": "1.9.6", | ||
"webpack-dev-server": "1.8.2" | ||
"gulp": "^3.9.1", | ||
"gulp-gh-pages": "^0.5.4", | ||
"gulp-load-plugins": "^1.5.0", | ||
"gulp-run": "^1.7.1", | ||
"gulp-shell": "^0.6.3", | ||
"jest-cli": "^21.2.1", | ||
"jquery": "^3.2.1", | ||
"lodash": "^4.17.4", | ||
"marked": "^0.3.6", | ||
"node-libs-browser": "^2.1.0", | ||
"open": "^0.0.5", | ||
"portscanner": "^2.1.1", | ||
"react": "^16.2.0", | ||
"react-bootstrap": "^0.31.5", | ||
"react-dom": "^16.2.0", | ||
"react-hot-loader": "^3.1.3", | ||
"react-tools": "^0.13.3", | ||
"require-dir": "^0.3.2", | ||
"rollup": "^0.52.0", | ||
"rollup-plugin-babel": "^3.0.2", | ||
"run-sequence": "^2.2.0", | ||
"shelljs": "^0.7.8", | ||
"style-loader": "^0.19.0", | ||
"webpack": "^3.9.1", | ||
"webpack-dev-server": "^2.9.5", | ||
"uglify-js": "^3.2.0" | ||
}, | ||
"dependencies": { | ||
"classnames": "^2.1.1", | ||
"classnames": "^2.2.5", | ||
"create-react-class": "^15.6.2", | ||
"deep-equal": "^1.0.0", | ||
"immutability-helper": "^2.4.0", | ||
"object-assign": "^2.0.0", | ||
"deep-equal": "^1.0.1", | ||
"immutability-helper": "^2.5.1", | ||
"object-assign": "^2.1.1", | ||
"prop-types": "^15.6.0", | ||
@@ -74,0 +75,0 @@ "react-scroll-lock": "git+https://github.com/Laiff/react-scroll-lock.git#267bf5bcf84d334aecc20908657088007b698dc2", |
import babel from 'rollup-plugin-babel'; | ||
export default { | ||
entry: './lib/formatic.js', | ||
format: 'cjs', | ||
input: './lib/formatic.js', | ||
external: [ | ||
@@ -28,3 +27,6 @@ 'classnames', | ||
], | ||
dest: './build/lib/index.js' | ||
output: { | ||
format: 'cjs', | ||
file: './build/lib/index.js' | ||
} | ||
}; |
@@ -11,3 +11,3 @@ require('es6-promise').polyfill(); | ||
'webpack/hot/only-dev-server', | ||
'./demo/index.js' | ||
'./demo/index.js', | ||
], | ||
@@ -17,25 +17,24 @@ output: { | ||
filename: 'bundle.js', | ||
publicPath: '/static/' | ||
publicPath: '/static/', | ||
}, | ||
plugins: [ | ||
new webpack.HotModuleReplacementPlugin() | ||
], | ||
plugins: [new webpack.HotModuleReplacementPlugin()], | ||
module: { | ||
loaders: [{ | ||
test: /\.js$/, | ||
loaders: ['react-hot-loader/webpack', 'babel-loader'], | ||
include: [path.join(__dirname, 'lib'), path.join(__dirname, 'demo')] | ||
}, { | ||
test: /\.css$/, | ||
loader: 'style-loader!css-loader?importLoaders=1' | ||
}], | ||
preLoaders: [ | ||
rules: [ | ||
{ | ||
test: /\.js$/, | ||
enforce: 'pre', | ||
loader: 'eslint-loader', | ||
include: [path.join(__dirname, 'lib'), path.join(__dirname, 'demo')] | ||
} | ||
] | ||
} | ||
include: [path.join(__dirname, 'lib'), path.join(__dirname, 'demo')], | ||
}, | ||
{ | ||
test: /\.js$/, | ||
loaders: ['react-hot-loader/webpack', 'babel-loader'], | ||
include: [path.join(__dirname, 'lib'), path.join(__dirname, 'demo')], | ||
}, | ||
{ | ||
test: /\.css$/, | ||
loader: 'style-loader!css-loader?importLoaders=1', | ||
}, | ||
], | ||
}, | ||
}; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
425998
43
79
12040
Updatedclassnames@^2.2.5
Updateddeep-equal@^1.0.1
Updatedimmutability-helper@^2.5.1
Updatedobject-assign@^2.1.1