react-os-shell 0.13.0 → 0.13.2
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.
- package/dist/index.js +15 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1481,7 +1481,7 @@ function WidgetManager({ open, onClose }) {
|
|
|
1481
1481
|
}
|
|
1482
1482
|
|
|
1483
1483
|
// src/version.ts
|
|
1484
|
-
var VERSION = "0.13.
|
|
1484
|
+
var VERSION = "0.13.2" ;
|
|
1485
1485
|
var APP_VERSION = VERSION;
|
|
1486
1486
|
|
|
1487
1487
|
// src/changelog.ts
|
|
@@ -6441,8 +6441,17 @@ function Kanban({
|
|
|
6441
6441
|
"div",
|
|
6442
6442
|
{
|
|
6443
6443
|
className: `flex flex-col w-72 shrink-0 rounded-xl bg-gray-50 border transition-colors ${isOver ? "border-blue-400 ring-2 ring-blue-300/60" : "border-gray-200"}`,
|
|
6444
|
-
onDragOver: (e) =>
|
|
6445
|
-
|
|
6444
|
+
onDragOver: (e) => {
|
|
6445
|
+
e.preventDefault();
|
|
6446
|
+
try {
|
|
6447
|
+
e.dataTransfer.dropEffect = "move";
|
|
6448
|
+
} catch {
|
|
6449
|
+
}
|
|
6450
|
+
},
|
|
6451
|
+
onDrop: (e) => {
|
|
6452
|
+
e.preventDefault();
|
|
6453
|
+
commitMove(col.value);
|
|
6454
|
+
},
|
|
6446
6455
|
children: [
|
|
6447
6456
|
/* @__PURE__ */ jsxs(
|
|
6448
6457
|
"div",
|
|
@@ -6484,8 +6493,10 @@ function Kanban({
|
|
|
6484
6493
|
},
|
|
6485
6494
|
onDragEnter: (e) => {
|
|
6486
6495
|
e.stopPropagation();
|
|
6496
|
+
const draggedPos = dragId !== null ? colItems.findIndex((it) => getId(it) === dragId) : -1;
|
|
6497
|
+
const target = draggedPos !== -1 && draggedPos < index ? index + 1 : index;
|
|
6487
6498
|
setOver(
|
|
6488
|
-
(prev) => prev && prev.col === col.value && prev.index ===
|
|
6499
|
+
(prev) => prev && prev.col === col.value && prev.index === target ? prev : { col: col.value, index: target }
|
|
6489
6500
|
);
|
|
6490
6501
|
},
|
|
6491
6502
|
onDragEnd: reset,
|