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

@devexpress/dx-react-core

Package Overview
Dependencies
Maintainers
11
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devexpress/dx-react-core - npm Package Compare versions

Comparing version 3.0.6 to 4.0.0

dist/dx-react-core.umd.cjs

54

dist/dx-react-core.es.js
/**
* Bundle of @devexpress/dx-react-core
* Generated: 2022-10-14
* Version: 3.0.6
* Generated: 2022-11-25
* Version: 4.0.0
* License: https://js.devexpress.com/Licensing

@@ -11,3 +11,3 @@ */

import { unstable_batchedUpdates } from 'react-dom';
import { shape, instanceOf } from 'prop-types';
import PropTypes from 'prop-types';

@@ -85,7 +85,6 @@ /*! *****************************************************************************

/** @deprecated */
function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
function __spreadArray(to, from) {
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
to[j] = from[i];
return to;
}

@@ -111,3 +110,3 @@

var calculatedPosition = positionContext();
return __spread(calculatedPosition, [index]);
return __spreadArray(__spreadArray([], __read(calculatedPosition)), [index]);
};

@@ -193,3 +192,3 @@ _this.indexes[index] = fn;

params: params,
templates: pluginHost.collect(name + "Template")
templates: pluginHost.collect("".concat(name, "Template"))
.filter(function (template) { return template.predicate(params); })

@@ -294,3 +293,3 @@ .reverse(),

var getAvailableGetters = function (pluginHost, getGetterValue) {
if (getGetterValue === void 0) { getGetterValue = function (getterName) { return pluginHost.get(getterName + "Getter"); }; }
if (getGetterValue === void 0) { getGetterValue = function (getterName) { return pluginHost.get("".concat(getterName, "Getter")); }; }
var trackedDependencies = {};

@@ -336,3 +335,3 @@ var getters;

var isTrackedDependenciesChanged = function (pluginHost, prevTrackedDependencies, getGetterValue) {
if (getGetterValue === void 0) { getGetterValue = function (getterName) { return pluginHost.get(getterName + "Getter"); }; }
if (getGetterValue === void 0) { getGetterValue = function (getterName) { return pluginHost.get("".concat(getterName, "Getter")); }; }
var trackedDependencies = Object.keys(prevTrackedDependencies)

@@ -350,3 +349,3 @@ // tslint:disable-next-line: prefer-object-spread

var getAvailableActions = function (pluginHost, getAction) {
if (getAction === void 0) { getAction = function (actionName) { return pluginHost.collect(actionName + "Action").slice().reverse()[0]; }; }
if (getAction === void 0) { getAction = function (actionName) { return pluginHost.collect("".concat(actionName, "Action")).slice().reverse()[0]; }; }
var actions;

@@ -394,11 +393,11 @@ if (typeof Proxy !== 'undefined') {

},
_a[name + "Action"] = function (params) {
_a["".concat(name, "Action")] = function (params) {
var action = _this.props.action;
var getters = getAvailableGetters(pluginHost, function (getterName) { return pluginHost.get(getterName + "Getter", _this.plugin); }).getters;
var getters = getAvailableGetters(pluginHost, function (getterName) { return pluginHost.get("".concat(getterName, "Getter"), _this.plugin); }).getters;
var nextParams = params;
var actions = getAvailableActions(pluginHost, function (actionName) { return (actionName === name
? function (newParams) { nextParams = newParams; }
: pluginHost.collect(actionName + "Action", _this.plugin).slice().reverse()[0]); });
: pluginHost.collect("".concat(actionName, "Action"), _this.plugin).slice().reverse()[0]); });
action(params, getters, actions);
var nextAction = pluginHost.collect(name + "Action", _this.plugin).slice().reverse()[0];
var nextAction = pluginHost.collect("".concat(name, "Action"), _this.plugin).slice().reverse()[0];
if (nextAction) {

@@ -436,3 +435,3 @@ nextAction(nextParams);

},
_a[name + "Getter"] = function (original) {
_a["".concat(name, "Getter")] = function (original) {
var _a = _this.props, value = _a.value, computed = _a.computed;

@@ -443,3 +442,3 @@ if (computed === undefined)

? original
: pluginHost.get(getterName + "Getter", _this.plugin)); };
: pluginHost.get("".concat(getterName, "Getter"), _this.plugin)); };
if (computed === lastComputed

@@ -490,3 +489,3 @@ && !isTrackedDependenciesChanged(pluginHost, lastTrackedDependencies, getGetterValue)) {

},
_a[name + "Template"] = {
_a["".concat(name, "Template")] = {
id: _this.id,

@@ -604,3 +603,2 @@ predicate: function (params) { return (predicate ? predicate(params) : true); },

}
this.mouseInitialOffset = null;
this.dragging = false;

@@ -719,3 +717,4 @@ };

? cloneElement(children, { ref: ref })
: cloneElement(children, { forwardedRef: ((_b = children.props) === null || _b === void 0 ? void 0 : _b.forwardedRef) ? function (node) {
: cloneElement(children, {
forwardedRef: ((_b = children.props) === null || _b === void 0 ? void 0 : _b.forwardedRef) ? function (node) {
children.props.forwardedRef(node);

@@ -728,3 +727,4 @@ if (typeof ref === 'function') {

}
} : ref }) :
} : ref
}) :
createElement('div', { ref: ref, style: { display: 'contents' } }, children);

@@ -1119,4 +1119,4 @@ });

var width = size.width, height = size.height;
this.expandNotifier.style.width = width + SCROLL_OFFSET + "px";
this.expandNotifier.style.height = height + SCROLL_OFFSET + "px";
this.expandNotifier.style.width = "".concat(width + SCROLL_OFFSET, "px");
this.expandNotifier.style.height = "".concat(height + SCROLL_OFFSET, "px");
this.updateScrolling(size);

@@ -1286,4 +1286,4 @@ var onSizeChange = this.props.onSizeChange;

/** @internal */
var RefType = shape({
current: instanceOf((typeof Element !== 'undefined') ? Element : Object),
var RefType = PropTypes.shape({
current: PropTypes.instanceOf((typeof Element !== 'undefined') ? Element : Object),
});

@@ -1290,0 +1290,0 @@

{
"name": "@devexpress/dx-react-core",
"version": "3.0.6",
"version": "4.0.0",
"description": "Core library for DevExtreme React Components",

@@ -26,5 +26,13 @@ "author": {

},
"main": "dist/dx-react-core.umd.js",
"globalName": "DevExpress.DXReactCore",
"type": "module",
"exports": {
".": {
"require": "./dist/dx-react-core.umd.cjs",
"import": "./dist/dx-react-core.es.js",
"default": "./dist/dx-react-core.es.js"
}
},
"main": "dist/dx-react-core.umd.cjs",
"module": "dist/dx-react-core.es.js",
"globalName": "DevExpress.DXReactCore",
"files": [

@@ -52,3 +60,4 @@ "dist"

"enzyme": "3.10.0",
"jest": "^24.9.0",
"jest": "^29.2.2",
"jest-environment-jsdom": "^29.2.2",
"react": "^17.0.2",

@@ -60,9 +69,10 @@ "react-dom": "^17.0.2",

"rollup-plugin-typescript2": "^0.30.0",
"ts-jest": "^24.1.0",
"ts-jest": "^29.0.3",
"tslib": "^2.4.1",
"tslint": "^5.20.1",
"tslint-config-airbnb": "^5.11.2",
"typescript": "4.1.3"
"typescript": "^4.8.4"
},
"dependencies": {
"@devexpress/dx-core": "3.0.6",
"@devexpress/dx-core": "4.0.0",
"prop-types": "^15.7.2"

@@ -74,3 +84,3 @@ },

},
"gitHead": "68f561fad9f38f445622616759a3903cba9cffbd"
"gitHead": "1c1e77cab92760cd5041c342da038e4a7c834f6f"
}

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