rita-workspace 0.5.10 → 0.5.11

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 CHANGED
@@ -1382,6 +1382,7 @@ var DrawingsDialog = ({
1382
1382
  const [confirmDeleteId, setConfirmDeleteId] = (0, import_react5.useState)(null);
1383
1383
  const [switchingId, setSwitchingId] = (0, import_react5.useState)(null);
1384
1384
  const [selectedId, setSelectedId] = (0, import_react5.useState)(null);
1385
+ const [hoveredId, setHoveredId] = (0, import_react5.useState)(null);
1385
1386
  const [expandedFolders, setExpandedFolders] = (0, import_react5.useState)(/* @__PURE__ */ new Set());
1386
1387
  const [creatingFolder, setCreatingFolder] = (0, import_react5.useState)(false);
1387
1388
  const [newFolderName, setNewFolderName] = (0, import_react5.useState)("");
@@ -1579,6 +1580,8 @@ var DrawingsDialog = ({
1579
1580
  setDraggingDrawingId(null);
1580
1581
  setDropTargetFolderId(null);
1581
1582
  },
1583
+ onMouseEnter: () => setHoveredId(drawing.id),
1584
+ onMouseLeave: () => setHoveredId(null),
1582
1585
  onClick: (e) => {
1583
1586
  e.stopPropagation();
1584
1587
  if (editingId || confirmDeleteId || movingDrawingId) return;
@@ -1698,7 +1701,12 @@ var DrawingsDialog = ({
1698
1701
  formatDate(drawing.updatedAt)
1699
1702
  ] })
1700
1703
  ] }) }),
1701
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { display: "flex", gap: "2px", alignItems: "center" }, children: confirmDeleteId === drawing.id ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1704
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: {
1705
+ display: "flex",
1706
+ gap: "2px",
1707
+ alignItems: "center",
1708
+ visibility: hoveredId === drawing.id || selectedId === drawing.id || activeDrawing?.id === drawing.id || confirmDeleteId === drawing.id || movingDrawingId === drawing.id || editingId === drawing.id ? "visible" : "hidden"
1709
+ }, children: confirmDeleteId === drawing.id ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1702
1710
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1703
1711
  "button",
1704
1712
  {
package/dist/index.mjs CHANGED
@@ -1314,6 +1314,7 @@ var DrawingsDialog = ({
1314
1314
  const [confirmDeleteId, setConfirmDeleteId] = useState4(null);
1315
1315
  const [switchingId, setSwitchingId] = useState4(null);
1316
1316
  const [selectedId, setSelectedId] = useState4(null);
1317
+ const [hoveredId, setHoveredId] = useState4(null);
1317
1318
  const [expandedFolders, setExpandedFolders] = useState4(/* @__PURE__ */ new Set());
1318
1319
  const [creatingFolder, setCreatingFolder] = useState4(false);
1319
1320
  const [newFolderName, setNewFolderName] = useState4("");
@@ -1511,6 +1512,8 @@ var DrawingsDialog = ({
1511
1512
  setDraggingDrawingId(null);
1512
1513
  setDropTargetFolderId(null);
1513
1514
  },
1515
+ onMouseEnter: () => setHoveredId(drawing.id),
1516
+ onMouseLeave: () => setHoveredId(null),
1514
1517
  onClick: (e) => {
1515
1518
  e.stopPropagation();
1516
1519
  if (editingId || confirmDeleteId || movingDrawingId) return;
@@ -1630,7 +1633,12 @@ var DrawingsDialog = ({
1630
1633
  formatDate(drawing.updatedAt)
1631
1634
  ] })
1632
1635
  ] }) }),
1633
- /* @__PURE__ */ jsx6("div", { style: { display: "flex", gap: "2px", alignItems: "center" }, children: confirmDeleteId === drawing.id ? /* @__PURE__ */ jsxs4(Fragment3, { children: [
1636
+ /* @__PURE__ */ jsx6("div", { style: {
1637
+ display: "flex",
1638
+ gap: "2px",
1639
+ alignItems: "center",
1640
+ visibility: hoveredId === drawing.id || selectedId === drawing.id || activeDrawing?.id === drawing.id || confirmDeleteId === drawing.id || movingDrawingId === drawing.id || editingId === drawing.id ? "visible" : "hidden"
1641
+ }, children: confirmDeleteId === drawing.id ? /* @__PURE__ */ jsxs4(Fragment3, { children: [
1634
1642
  /* @__PURE__ */ jsx6(
1635
1643
  "button",
1636
1644
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rita-workspace",
3
- "version": "0.5.10",
3
+ "version": "0.5.11",
4
4
  "description": "Multi-drawing workspace feature for Rita (Excalidraw fork)",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",