Comparing version 0.3.64 to 0.3.66
@@ -9,3 +9,3 @@ // # object component | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -12,0 +12,0 @@ var React = require('react'); |
@@ -35,6 +35,6 @@ // # pretty-textarea component | ||
var noBreak = function noBreak(value) { | ||
return value.replace(/ /g, ' '); | ||
return value.replace(/ /g, '\xA0'); | ||
}; | ||
var LEFT_PAD = ' '; | ||
var LEFT_PAD = '\xA0\xA0'; | ||
// Why this works, I'm not sure. | ||
@@ -312,3 +312,3 @@ var RIGHT_PAD = ' '; //'\u00a0\u00a0'; | ||
if (part.value[part.value.length - 1] === '\n') { | ||
return part.value + ' '; | ||
return part.value + '\xA0'; | ||
} | ||
@@ -315,0 +315,0 @@ } |
@@ -19,8 +19,6 @@ // # Choices component | ||
var _require = require('../../utils'); | ||
var _require = require('../../utils'), | ||
keyCodes = _require.keyCodes, | ||
scrollIntoContainerView = _require.scrollIntoContainerView; | ||
var keyCodes = _require.keyCodes; | ||
var scrollIntoContainerView = _require.scrollIntoContainerView; | ||
var magicChoiceRe = /^\/\/\/[^\/]+\/\/\/$/; | ||
@@ -31,3 +29,3 @@ | ||
var requestAnimationFrameThrottled = function requestAnimationFrameThrottled() { | ||
var frameCount = arguments.length <= 0 || arguments[0] === undefined ? 1 : arguments[0]; | ||
var frameCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; | ||
var cb = arguments[1]; | ||
@@ -236,3 +234,3 @@ | ||
var props = arguments.length <= 0 || arguments[0] === undefined ? this.props : arguments[0]; | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props; | ||
@@ -294,5 +292,8 @@ | ||
hasSearch: function hasSearch() { | ||
var visibleChoices = arguments.length <= 0 || arguments[0] === undefined ? this.visibleChoices() : arguments[0]; | ||
var props = arguments.length <= 1 || arguments[1] === undefined ? this.props : arguments[1]; | ||
var visibleChoices = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.visibleChoices(); | ||
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.props; | ||
if (!props.config.fieldHasSearch(props.field)) { | ||
return false; | ||
} | ||
@@ -446,8 +447,6 @@ var hasSearch = !!this.state.searchString; | ||
var _visibleChoicesInfo = this.visibleChoicesInfo(); | ||
var _visibleChoicesInfo = this.visibleChoicesInfo(), | ||
choices = _visibleChoicesInfo.choices, | ||
hasDisabledSections = _visibleChoicesInfo.hasDisabledSections; | ||
var choices = _visibleChoicesInfo.choices; | ||
var hasDisabledSections = _visibleChoicesInfo.hasDisabledSections; | ||
var search = null; | ||
@@ -454,0 +453,0 @@ |
@@ -15,8 +15,6 @@ // # pretty-select-value component | ||
var _require = require('../../utils'); | ||
var _require = require('../../utils'), | ||
keyCodes = _require.keyCodes, | ||
focusRefNode = _require.focusRefNode; | ||
var keyCodes = _require.keyCodes; | ||
var focusRefNode = _require.focusRefNode; | ||
module.exports = React.createClass({ | ||
@@ -116,5 +114,5 @@ | ||
renderDefault: function renderDefault() { | ||
var _props = this.props; | ||
var config = _props.config; | ||
var field = _props.field; | ||
var _props = this.props, | ||
config = _props.config, | ||
field = _props.field; | ||
@@ -248,6 +246,6 @@ var choices = config.normalizePrettyChoices(this.props.choices); | ||
props = props || this.props; | ||
var _props2 = props; | ||
var config = _props2.config; | ||
var field = _props2.field; | ||
var choices = _props2.choices; | ||
var _props2 = props, | ||
config = _props2.config, | ||
field = _props2.field, | ||
choices = _props2.choices; | ||
@@ -254,0 +252,0 @@ var currentValue = this.value(props); |
@@ -11,7 +11,5 @@ 'use strict'; | ||
var _require = require('../../utils'); | ||
var _require = require('../../utils'), | ||
keyCodes = _require.keyCodes; | ||
var keyCodes = _require.keyCodes; | ||
var toString = function toString(value) { | ||
@@ -18,0 +16,0 @@ if (_.isUndefined(value) || _.isNull(value)) { |
@@ -876,2 +876,6 @@ // # default-config | ||
fieldHasSearch: function fieldHasSearch(field) { | ||
return _.isUndefined(field.hasSearch) ? true : field.hasSearch; | ||
}, | ||
// Determine if value for this field is not a leaf value. | ||
@@ -878,0 +882,0 @@ fieldHasValueChildren: function fieldHasValueChildren(field) { |
'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -5,0 +5,0 @@ var _ = {}; |
{ | ||
"name": "formatic", | ||
"version": "0.3.64", | ||
"version": "0.3.66", | ||
"description": "Automatic, pluggable form generation", | ||
@@ -5,0 +5,0 @@ "main": "./build/lib/formatic", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
208576
5886
1