pds-dev-kit-web-test 2.5.29 → 2.5.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -446,9 +446,9 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
446
446
|
return false;
|
447
447
|
})();
|
448
448
|
var _j = (0, react_1.useState)(), droppingItem = _j[0], setDroppingItem = _j[1];
|
449
|
-
var onDrop = function (layout, layoutItem,
|
450
|
-
|
451
|
-
|
449
|
+
var onDrop = function (layout, layoutItem, e) {
|
450
|
+
var data = e.dataTransfer.getData('text/plain');
|
451
|
+
console.log(data);
|
452
452
|
// alert(`Dropped element props:\n${JSON.stringify(layoutItem, ['x', 'y', 'w', 'h'], 2)}`);
|
453
453
|
if (!isEditMode) {
|
454
454
|
return;
|
@@ -458,7 +458,8 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
458
458
|
type: '@CUSTOMSECTION/ON_DROP_FROM_OUTSIDE',
|
459
459
|
payload: {
|
460
460
|
layout: layout,
|
461
|
-
layoutItem: layoutItem
|
461
|
+
layoutItem: layoutItem,
|
462
|
+
data: data
|
462
463
|
}
|
463
464
|
});
|
464
465
|
};
|