dsh-talk-map 0.1.65 → 0.1.66

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.
Files changed (2) hide show
  1. package/client/client.js +6 -47
  2. package/package.json +1 -1
package/client/client.js CHANGED
@@ -464,7 +464,7 @@ var zh = {
464
464
  "digest.empty": "这条对话还没有摘要,先刷新摘要再来看。",
465
465
  "digest.copy": "复制",
466
466
  "digest.close": "关闭",
467
- "global.searchPlaceholder": "b65 · 搜地图上的卡片(标题/正文)",
467
+ "global.searchPlaceholder": "b66 · 搜地图上的卡片(标题/正文)",
468
468
  "global.searchRun": "搜索",
469
469
  "global.searchTitle": "搜索地图",
470
470
  "font.group": "文字大小",
@@ -631,7 +631,7 @@ var en = {
631
631
  "menu.noGroup": "Remove from group (free card)",
632
632
  "menu.open": "Open conversation",
633
633
  "menu.markUnread": "Mark as unread",
634
- "global.searchPlaceholder": "b65 · Search cards on the map",
634
+ "global.searchPlaceholder": "b66 · Search cards on the map",
635
635
  "global.searchRun": "Search",
636
636
  "global.searchTitle": "Search the map",
637
637
  "font.group": "Text size",
@@ -14196,7 +14196,6 @@ function CanvasInner(props) {
14196
14196
  } catch {
14197
14197
  }
14198
14198
  };
14199
- const [confirmRemove, setConfirmRemove] = (0, import_react13.useState)(null);
14200
14199
  const [renameTarget, setRenameTarget] = (0, import_react13.useState)(null);
14201
14200
  const [renamedTitles, setRenamedTitles] = (0, import_react13.useState)({});
14202
14201
  const [renamedWorkspaces, setRenamedWorkspaces] = (0, import_react13.useState)({});
@@ -15777,9 +15776,12 @@ function CanvasInner(props) {
15777
15776
  key: "remove-group",
15778
15777
  icon: "delete",
15779
15778
  label: t("menu.removeGroup"),
15779
+ // Red row and no dialog: the colour is the confirmation. Clicking deletes now —
15780
+ // into the recycle bin when one answers, through the Host's own delete otherwise.
15781
+ danger: true,
15780
15782
  onPick: () => {
15781
- removeGroup(groupId);
15782
15783
  close();
15784
+ void deleteWorkspace(groupId);
15783
15785
  }
15784
15786
  });
15785
15787
  }
@@ -15912,49 +15914,6 @@ function CanvasInner(props) {
15912
15914
  }
15913
15915
  ) : null,
15914
15916
  hasContent ? null : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: talk_map_default["emptyHint"], children: t("map.empty") }),
15915
- confirmRemove !== null ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
15916
- "div",
15917
- {
15918
- className: talk_map_default["dangerBackdrop"],
15919
- role: "presentation",
15920
- onClick: () => {
15921
- setConfirmRemove(null);
15922
- },
15923
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
15924
- "div",
15925
- {
15926
- className: talk_map_default["dangerDialog"],
15927
- role: "dialog",
15928
- "aria-modal": "true",
15929
- "aria-label": t("confirm.removeGroup.title"),
15930
- onClick: (event) => {
15931
- event.stopPropagation();
15932
- },
15933
- children: [
15934
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: talk_map_default["dangerTitle"], children: t("confirm.removeGroup.title") }),
15935
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: talk_map_default["dangerBody"], children: t(confirmRemove.bin ? "confirm.removeGroup.body" : "confirm.removeGroup.bodyHard", { n: String(confirmRemove.count) }) }),
15936
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: talk_map_default["dangerActions"], children: [
15937
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("button", { type: "button", className: talk_map_default["dangerCancel"], onClick: () => {
15938
- setConfirmRemove(null);
15939
- }, children: t("confirm.cancel") }),
15940
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
15941
- "button",
15942
- {
15943
- type: "button",
15944
- className: talk_map_default["dangerOk"],
15945
- onClick: () => {
15946
- void deleteWorkspace(confirmRemove.groupId);
15947
- setConfirmRemove(null);
15948
- },
15949
- children: t(confirmRemove.bin ? "confirm.removeGroup.ok" : "confirm.removeGroup.okHard")
15950
- }
15951
- )
15952
- ] })
15953
- ]
15954
- }
15955
- )
15956
- }
15957
- ) : null,
15958
15917
  menuState !== null ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ContextMenu, { menu: menuState, onClose: () => {
15959
15918
  setMenu(null);
15960
15919
  } }, menu?.view ?? "root") : null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-talk-map",
3
- "version": "0.1.65",
3
+ "version": "0.1.66",
4
4
  "description": "Visual conversation map for DeepSeek Harness: an infinite whiteboard where every session is a card — drag to arrange, double-click to start a chat in place, draw an edge to fork a new session with injected context. Built for ADHD-friendly spatial memory. · DSH 可视化对话地图:会话即卡片,双击即聊,连线分叉带上下文的新对话。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",