Socket
Socket
Sign inDemoInstall

af-react-grid

Package Overview
Dependencies
87
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.4 to 3.0.5

16

core/Container/index.js

@@ -11,5 +11,3 @@ import _extends from "@babel/runtime/helpers/extends";

var containerBaseCss =
/*#__PURE__*/
_css(process.env.NODE_ENV === "production" ? {
var containerBaseCss = /*#__PURE__*/_css(process.env.NODE_ENV === "production" ? {
name: "1dsbrkv-containerBaseCss",

@@ -24,5 +22,3 @@ styles: "display:flex;flex-wrap:nowrap;;label:containerBaseCss;"

var colCss = _cx(containerBaseCss,
/*#__PURE__*/
_css(process.env.NODE_ENV === "production" ? {
var colCss = _cx(containerBaseCss, /*#__PURE__*/_css(process.env.NODE_ENV === "production" ? {
name: "7rtuif-colCss",

@@ -37,5 +33,3 @@ styles: "flex-direction:column;;label:colCss;"

var rowCss = _cx(containerBaseCss,
/*#__PURE__*/
_css(process.env.NODE_ENV === "production" ? {
var rowCss = _cx(containerBaseCss, /*#__PURE__*/_css(process.env.NODE_ENV === "production" ? {
name: "10yfcpt-rowCss",

@@ -57,5 +51,5 @@ styles: "flex-direction:row;;label:rowCss;"

return React.createElement(TypeContext.Provider, {
return /*#__PURE__*/React.createElement(TypeContext.Provider, {
value: type
}, React.createElement(Component, _extends({
}, /*#__PURE__*/React.createElement(Component, _extends({
className: _cx(type === "col" ? colCss : rowCss, className)

@@ -62,0 +56,0 @@ }, props, {

@@ -121,7 +121,7 @@ import React, { useContext, useRef, memo, useCallback } from "react";

}, [containerType]);
return React.createElement(DraggableCore, {
return /*#__PURE__*/React.createElement(DraggableCore, {
onStart: dragStartHandler,
onDrag: dragHandler,
disabled: disabled
}, React.createElement(Component, {
}, /*#__PURE__*/React.createElement(Component, {
type: containerType,

@@ -128,0 +128,0 @@ disabled: disabled

import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
import React, { useRef, useEffect } from "react";
import React, { useRef, useEffect, useImperativeHandle, forwardRef } from "react";
import EventEmitter from "eventemitter3";

@@ -7,5 +7,3 @@ import { RootContext } from "../contexts";

var CellDimensions =
/*#__PURE__*/
function (_EventEmitter) {
var CellDimensions = /*#__PURE__*/function (_EventEmitter) {
_inheritsLoose(CellDimensions, _EventEmitter);

@@ -21,3 +19,3 @@

_this = _EventEmitter.call.apply(_EventEmitter, [this].concat(args)) || this;
_this.Dimensions = {};
_this.Dimensions = Object.create(null);
_this.Cells = new Map();

@@ -94,3 +92,3 @@ return _this;

var GridRoot = function GridRoot(_ref5) {
var GridRoot = forwardRef(function (_ref5, ref) {
var children = _ref5.children,

@@ -105,2 +103,5 @@ _ref5$fixDimensionsDe = _ref5.fixDimensionsDelay,

useImperativeHandle(ref, function () {
return modelRef.current;
}, []);
useEffect(function () {

@@ -116,7 +117,6 @@ if (fixDimensionsDelay >= 0) {

}, [fixDimensionsDelay]);
return React.createElement(RootContext.Provider, {
return /*#__PURE__*/React.createElement(RootContext.Provider, {
value: modelRef.current
}, children);
};
});
export default GridRoot;
{
"name": "af-react-grid",
"version": "3.0.4",
"version": "3.0.5",
"sideEffects": false,

@@ -30,14 +30,15 @@ "repository": {

"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/plugin-external-helpers": "^7.8.3",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.9.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/preset-react": "^7.8.3",
"@babel/runtime": "^7.8.4",
"babel-plugin-emotion": "^10.0.27",
"react": "^16.13.0",
"react-dom": "^16.13.0"
"@babel/plugin-syntax-jsx": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@babel/preset-react": "^7.9.0",
"@babel/runtime": "^7.9.0",
"babel-plugin-emotion": "^10.0.29",
"react": "^16.13.1",
"react-dom": "^16.13.1"
},

@@ -44,0 +45,0 @@ "peerDependencies": {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc