Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cerebral-module-ui-driver

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cerebral-module-ui-driver - npm Package Compare versions

Comparing version 0.6.5 to 0.6.6

lib/chains/blurred.js

11

lib/bindings/input.js

@@ -22,2 +22,3 @@ 'use strict';

var driverPath = [].concat(_toConsumableArray(driverModule.path), _toConsumableArray(formModule.path), ['fields', fieldName]);
var isFocusedPath = [].concat(_toConsumableArray(driverPath), ['isFocused']);
var formValue = (0, _getMeta2.default)(state, statePath);

@@ -42,2 +43,12 @@ var options = driverModule.meta.options;

});
}), _defineProperty(_Object$assign, propsMap['isFocused'], !!meta.isFocused), _defineProperty(_Object$assign, propsMap['onFocus'], function (e) {
driverModule.meta.signals.focused({
statePath: isFocusedPath,
value: true
});
}), _defineProperty(_Object$assign, propsMap['onBlur'], function (e) {
driverModule.meta.signals.blurred({
statePath: isFocusedPath,
value: false
});
}), _Object$assign), { type: 'text' }, props, fieldProps);

@@ -44,0 +55,0 @@ };

14

lib/module.js

@@ -7,2 +7,10 @@ 'use strict';

var _blurred = require('./chains/blurred');
var _blurred2 = _interopRequireDefault(_blurred);
var _focused = require('./chains/focused');
var _focused2 = _interopRequireDefault(_focused);
var _isOpenChanged = require('./chains/isOpenChanged');

@@ -59,3 +67,7 @@

// register signals
module.signals({ isOpenChanged: _isOpenChanged2.default });
module.signals({
blurred: _blurred2.default,
focused: _focused2.default,
isOpenChanged: _isOpenChanged2.default
});
module.signalsSync({

@@ -62,0 +74,0 @@ valueChanged: (0, _valueChanged2.default)(options.debounceTimeout || 200)

5

lib/propsMaps.js

@@ -16,3 +16,6 @@ 'use strict';

onOpen: 'onOpen',
onClose: 'onClose'
onClose: 'onClose',
isFocused: 'isFocused',
onFocus: 'onFocus',
onBlur: 'onBlur'
},

@@ -19,0 +22,0 @@ form: {

{
"name": "cerebral-module-ui-driver",
"version": "0.6.5",
"version": "0.6.6",
"description": "A driver for connecting ui components to cerebral",

@@ -36,8 +36,8 @@ "main": "lib/driver.js",

"babel": "^6.3.26",
"babel-cli": "^6.4.0",
"babel-core": "^6.4.0",
"babel-cli": "^6.4.5",
"babel-core": "^6.4.5",
"babel-preset-es2015": "^6.3.13",
"baobab": "^2.3.1",
"cerebral": "^0.32.0",
"cerebral-addons": "^0.3.1",
"baobab": "^2.3.3",
"cerebral": "^0.33.5",
"cerebral-addons": "^0.4.2",
"cerebral-model-baobab": "^0.4.6",

@@ -48,3 +48,3 @@ "chai": "^3.4.1",

"parallelshell": "^2.0.0",
"rimraf": "^2.5.0",
"rimraf": "^2.5.1",
"snazzy": "^2.0.1",

@@ -55,6 +55,6 @@ "standard": "^5.4.1",

"peerDependencies": {
"cerebral": "^0.32.0",
"cerebral-addons": "^0.3.1",
"cerebral": "^0.33.0",
"cerebral-addons": "^0.4.1",
"moment": "^2.11.0"
}
}

@@ -232,3 +232,6 @@ # cerebral-module-ui-driver

onOpen: 'onOpen',
onClose: 'onClose'
onClose: 'onClose',
isFocused: 'isFocused',
onFocus: 'onFocus',
onBlur: 'onBlur'
},

@@ -235,0 +238,0 @@ form: { // additional props only used by form

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc