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

@filerobot/common

Package Overview
Dependencies
Maintainers
1
Versions
1532
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@filerobot/common - npm Package Compare versions

Comparing version 0.0.0-beta.61 to 0.0.0-beta.62

5

lib/Checkbox.js

@@ -15,6 +15,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

classes = _ref.classes,
checkboxClasses = _ref.checkboxClasses,
_ref$label = _ref.label,
label = _ref$label === void 0 ? '' : _ref$label,
name = _ref.name,
others = _objectWithoutPropertiesLoose(_ref, ["checked", "onChange", "children", "classes", "label", "name"]);
others = _objectWithoutPropertiesLoose(_ref, ["checked", "onChange", "children", "classes", "checkboxClasses", "label", "name"]);

@@ -38,3 +39,3 @@ var delegateEvent = function delegateEvent(e) {

type: "div",
className: "filerobot-u-reset filerobot-common-Checkbox",
className: "filerobot-u-reset filerobot-common-Checkbox" + (checkboxClasses ? " " + checkboxClasses : ''),
role: "checkbox",

@@ -41,0 +42,0 @@ checked: checked // to be simulated as real checkbox in case we needed it

2

lib/ColorPicker.js

@@ -31,3 +31,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

return value === color ? [color] : [value, color];
return value ? value === color ? [color] : [value, color] : [color];
};

@@ -34,0 +34,0 @@

@@ -16,3 +16,4 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

onChange = _ref.onChange,
rest = _objectWithoutPropertiesLoose(_ref, ["classes", "checked", "children", "label", "onChange"]);
labelStyle = _ref.labelStyle,
rest = _objectWithoutPropertiesLoose(_ref, ["classes", "checked", "children", "label", "onChange", "labelStyle"]);

@@ -33,2 +34,3 @@ return /*#__PURE__*/_jsxs("label", {

className: "filerobot-common-secondaryTxt",
style: labelStyle,
children: label

@@ -35,0 +37,0 @@ })]

@@ -58,4 +58,10 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

var slider2Ref = useRef(null);
var firstRender = useRef(true);
var sliderBG = null;
useEffect(function () {
if (firstRender.current) {
firstRender.current = false;
return;
}
var slidersVals = {

@@ -178,3 +184,5 @@ from: slider1Value,

var changeSliderValueByClick = function changeSliderValueByClick(_ref3) {
var offsetX = _ref3.offsetX;
var _ref3$nativeEvent = _ref3.nativeEvent;
_ref3$nativeEvent = _ref3$nativeEvent === void 0 ? {} : _ref3$nativeEvent;
var offsetX = _ref3$nativeEvent.offsetX;
offsetX = parseNumber(mapValueBySlidersWidth(offsetX, false));

@@ -181,0 +189,0 @@ var slider1Reminder = Math.abs(offsetX - slider1Value);

{
"name": "@filerobot/common",
"version": "0.0.0-beta.61",
"version": "0.0.0-beta.62",
"description": "The common components shared between Filerobot Media Asset Widget modules",

@@ -17,4 +17,4 @@ "homepage": "",

"dependencies": {
"@filerobot/icons": "0.0.0-beta.61",
"@filerobot/utils": "0.0.0-beta.61",
"@filerobot/icons": "0.0.0-beta.62",
"@filerobot/utils": "0.0.0-beta.62",
"react": "^17.0.1",

@@ -21,0 +21,0 @@ "react-dom": "^17.0.1"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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