Socket
Socket
Sign inDemoInstall

@pega/cosmos-react-dnd

Package Overview
Dependencies
Maintainers
6
Versions
484
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pega/cosmos-react-dnd - npm Package Compare versions

Comparing version 0.11.4 to 0.11.5

23

lib/components/DragDrop/DragDropList.js

@@ -152,13 +152,14 @@ import React, { useCallback, useState, useRef } from 'react';

} }, restProps), internalItems.length === 0
? (_a = emptyRenderer === null || emptyRenderer === void 0 ? void 0 : emptyRenderer()) !== null && _a !== void 0 ? _a : null : internalItems.map(item => {
return (React.createElement(Draggable, { key: item.id, id: item.id, type: item.type, data: item.data, onBegin: onBegin(item.id), onEnd: onEnd }, ({ dragRef, previewRef, collected }) => {
return itemRenderer({
...item,
dragRef,
previewRef,
...collected,
isDragging: collected.isDragging || !!item.removeFromCurrent
});
}));
})));
? (_a = emptyRenderer === null || emptyRenderer === void 0 ? void 0 : emptyRenderer()) !== null && _a !== void 0 ? _a : null
: internalItems.map(item => {
return (React.createElement(Draggable, { key: item.id, id: item.id, type: item.type, data: item.data, onBegin: onBegin(item.id), onEnd: onEnd }, ({ dragRef, previewRef, collected }) => {
return itemRenderer({
...item,
dragRef,
previewRef,
...collected,
isDragging: collected.isDragging || !!item.removeFromCurrent
});
}));
})));
}));

@@ -165,0 +166,0 @@ };

/// <reference types="react" />
import { DraggableProps } from './DragDrop.types';
declare const Draggable: <T extends object = object>({ id, type, data, children, onBegin, onEnd: end }: DraggableProps<T>) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
declare const Draggable: <T extends object = object>({ id, type, data, children, onBegin, onEnd: end }: DraggableProps<T>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
export default Draggable;
//# sourceMappingURL=Draggable.d.ts.map
/// <reference types="react" />
import { DroppableProps } from './DragDrop.types';
declare const Droppable: <T extends object = object>({ accept, onDrop, onHover, children }: DroppableProps<T>) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
declare const Droppable: <T extends object = object>({ accept, onDrop, onHover, children }: DroppableProps<T>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
export default Droppable;
//# sourceMappingURL=Droppable.d.ts.map
{
"name": "@pega/cosmos-react-dnd",
"version": "0.11.4",
"version": "0.11.5",
"author": "Pegasystems",

@@ -23,3 +23,3 @@ "license": "SEE LICENSE IN LICENSE",

"dependencies": {
"@pega/cosmos-react-core": "0.11.4",
"@pega/cosmos-react-core": "0.11.5",
"polished": "^4.1.0",

@@ -45,4 +45,4 @@ "react": "^16.13.1 || ^17.0.0",

"enzyme-adapter-react-16": "^1.15.5",
"typescript": "~4.1.3"
"typescript": "~4.2.2"
}
}

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

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