@pega/cosmos-react-dnd
Advanced tools
Comparing version 0.11.4 to 0.11.5
@@ -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
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
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
39821
315
+ Added@pega/cosmos-react-core@0.11.5(transitive)
- Removed@pega/cosmos-react-core@0.11.4(transitive)