gridjs-react
Advanced tools
Comparing version 1.15.1 to 1.16.0
@@ -24,3 +24,3 @@ import { createElement, createRef, Component } from 'react'; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -27,0 +27,0 @@ }; |
@@ -7,4 +7,6 @@ (function (global, factory) { | ||
ReactDOM = ReactDOM && Object.prototype.hasOwnProperty.call(ReactDOM, 'default') ? ReactDOM['default'] : ReactDOM; | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM); | ||
/*! ***************************************************************************** | ||
@@ -29,3 +31,3 @@ Copyright (c) Microsoft Corporation. | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -73,3 +75,3 @@ }; | ||
ReactWrapper.prototype.componentDidMount = function () { | ||
ReactDOM.render(this.props.element, this.ref.current); | ||
ReactDOM__default['default'].render(this.props.element, this.ref.current); | ||
}; | ||
@@ -76,0 +78,0 @@ ReactWrapper.prototype.render = function () { |
@@ -15,3 +15,3 @@ import{createElement as t,createRef as r,Component as n}from"react";import{Grid as e,h as o,createRef as p,Component as i}from"gridjs";import c from"react-dom"; | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var u=function(t,r){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])})(t,r)};function s(t,r){function n(){this.constructor=t}u(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var a=function(n){function o(t){var o=n.call(this,t)||this;return o.wrapper=r(),o.instance=null,o.instance=new e(t||{}),o}return s(o,n),o.prototype.getInstance=function(){return this.instance},o.prototype.componentDidMount=function(){this.instance.render(this.wrapper.current)},o.prototype.componentDidUpdate=function(){this.instance.updateConfig(this.props).forceRender()},o.prototype.render=function(){return t("div",{ref:this.wrapper})},o}(n),f=function(t){function r(){var r=null!==t&&t.apply(this,arguments)||this;return r.ref=p(),r}return s(r,t),r.prototype.componentDidMount=function(){c.render(this.props.element,this.ref.current)},r.prototype.render=function(){return o(this.props.parent,{ref:this.ref})},r.defaultProps={parent:"div"},r}(i);function d(t,r){return o(f,{element:t,parent:r})}export{a as Grid,f as ReactWrapper,d as _}; | ||
***************************************************************************** */var u=function(t,r){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])})(t,r)};function a(t,r){function n(){this.constructor=t}u(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var s=function(n){function o(t){var o=n.call(this,t)||this;return o.wrapper=r(),o.instance=null,o.instance=new e(t||{}),o}return a(o,n),o.prototype.getInstance=function(){return this.instance},o.prototype.componentDidMount=function(){this.instance.render(this.wrapper.current)},o.prototype.componentDidUpdate=function(){this.instance.updateConfig(this.props).forceRender()},o.prototype.render=function(){return t("div",{ref:this.wrapper})},o}(n),f=function(t){function r(){var r=null!==t&&t.apply(this,arguments)||this;return r.ref=p(),r}return a(r,t),r.prototype.componentDidMount=function(){c.render(this.props.element,this.ref.current)},r.prototype.render=function(){return o(this.props.parent,{ref:this.ref})},r.defaultProps={parent:"div"},r}(i);function d(t,r){return o(f,{element:t,parent:r})}export{s as Grid,f as ReactWrapper,d as _}; | ||
//# sourceMappingURL=gridjs.production.es.min.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("gridjs"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","gridjs","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).gridjs={},e.React,e.gridjs,e.ReactDOM)}(this,(function(e,t,r,n){"use strict";n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n; | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("gridjs"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","gridjs","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).gridjs={},e.React,e.gridjs,e.ReactDOM)}(this,(function(e,t,n,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(r),p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)}; | ||
/*! ***************************************************************************** | ||
@@ -15,4 +15,3 @@ Copyright (c) Microsoft Corporation. | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var p=function(e){function n(n){var o=e.call(this,n)||this;return o.wrapper=t.createRef(),o.instance=null,o.instance=new r.Grid(n||{}),o}return i(n,e),n.prototype.getInstance=function(){return this.instance},n.prototype.componentDidMount=function(){this.instance.render(this.wrapper.current)},n.prototype.componentDidUpdate=function(){this.instance.updateConfig(this.props).forceRender()},n.prototype.render=function(){return t.createElement("div",{ref:this.wrapper})},n}(t.Component),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ref=r.createRef(),t}return i(t,e),t.prototype.componentDidMount=function(){n.render(this.props.element,this.ref.current)},t.prototype.render=function(){return r.h(this.props.parent,{ref:this.ref})},t.defaultProps={parent:"div"},t}(r.Component);e.Grid=p,e.ReactWrapper=c,e._=function(e,t){return r.h(c,{element:e,parent:t})},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
***************************************************************************** */function c(e,t){function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var u=function(e){function r(r){var o=e.call(this,r)||this;return o.wrapper=t.createRef(),o.instance=null,o.instance=new n.Grid(r||{}),o}return c(r,e),r.prototype.getInstance=function(){return this.instance},r.prototype.componentDidMount=function(){this.instance.render(this.wrapper.current)},r.prototype.componentDidUpdate=function(){this.instance.updateConfig(this.props).forceRender()},r.prototype.render=function(){return t.createElement("div",{ref:this.wrapper})},r}(t.Component),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ref=n.createRef(),t}return c(t,e),t.prototype.componentDidMount=function(){i.default.render(this.props.element,this.ref.current)},t.prototype.render=function(){return n.h(this.props.parent,{ref:this.ref})},t.defaultProps={parent:"div"},t}(n.Component);e.Grid=u,e.ReactWrapper=f,e._=function(e,t){return n.h(f,{element:e,parent:t})},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=gridjs.production.min.js.map |
{ | ||
"name": "gridjs-react", | ||
"version": "1.15.1", | ||
"version": "1.16.0", | ||
"description": "React component for Grid.js", | ||
@@ -36,14 +36,14 @@ "main": "dist/gridjs.production.min.js", | ||
"devDependencies": { | ||
"@rollup/plugin-node-resolve": "^8.4.0", | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"@types/enzyme": "^3.10.5", | ||
"@types/jest": "^26.0.7", | ||
"@types/react": "^16.9.43", | ||
"@types/jest": "^26.0.10", | ||
"@types/react": "^16.9.48", | ||
"enzyme": "^3.11.0", | ||
"enzyme-adapter-react-16": "^1.15.2", | ||
"enzyme-adapter-react-16": "^1.15.3", | ||
"eslint": "~7.6.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-jest": "^23.18.2", | ||
"gridjs": "^1.14.0", | ||
"gridjs": "^1.16.0", | ||
"jest": "~25.5.4", | ||
"jsdom": "^16.3.0", | ||
"jsdom": "^16.4.0", | ||
"jsdom-global": "^3.0.2", | ||
@@ -54,10 +54,10 @@ "prettier": "~2.0.5", | ||
"rimraf": "~3.0.2", | ||
"rollup": "^2.23.0", | ||
"rollup": "^2.26.6", | ||
"rollup-plugin-sizes": "^1.0.3", | ||
"rollup-plugin-terser": "^6.1.0", | ||
"rollup-plugin-typescript2": "^0.27.1", | ||
"rollup-plugin-terser": "^7.0.0", | ||
"rollup-plugin-typescript2": "^0.27.2", | ||
"source-map-loader": "^0.2.4", | ||
"ts-jest": "^25.5.1", | ||
"ts-loader": "^8.0.1", | ||
"tslib": "^2.0.0", | ||
"ts-loader": "^8.0.3", | ||
"tslib": "^2.0.1", | ||
"tsutils": "~3.17.0", | ||
@@ -64,0 +64,0 @@ "typescript": "^3.9.7" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
75359
230