dsh-talk-map 0.1.32 → 0.1.33

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 +8 -3
  2. package/package.json +1 -1
package/client/client.js CHANGED
@@ -448,7 +448,7 @@ var zh = {
448
448
  "digest.empty": "这条对话还没有摘要,先刷新摘要再来看。",
449
449
  "digest.copy": "复制",
450
450
  "digest.close": "关闭",
451
- "global.searchPlaceholder": "搜地图上的卡片(标题/正文)· v0.1.32",
451
+ "global.searchPlaceholder": "搜地图上的卡片(标题/正文)· v0.1.33",
452
452
  "global.searchRun": "搜索",
453
453
  "global.searchTitle": "搜索地图",
454
454
  "font.group": "文字大小",
@@ -599,7 +599,7 @@ var en = {
599
599
  "menu.noGroup": "Remove from group (free card)",
600
600
  "menu.open": "Open conversation",
601
601
  "menu.markUnread": "Mark as unread",
602
- "global.searchPlaceholder": "Search cards on the map · v0.1.32",
602
+ "global.searchPlaceholder": "Search cards on the map · v0.1.33",
603
603
  "global.searchRun": "Search",
604
604
  "global.searchTitle": "Search the map",
605
605
  "font.group": "Text size",
@@ -12300,7 +12300,7 @@ function boardBoxes() {
12300
12300
  function TalkMapEdge(props) {
12301
12301
  const data = props.data ?? {};
12302
12302
  const synced = data.sync === "synced";
12303
- const hidden = synced && data.structural !== true;
12303
+ const hidden = synced && data.structural !== true || data.ready === false;
12304
12304
  const faceOf = (position) => {
12305
12305
  const name2 = String(position ?? "left");
12306
12306
  if (name2 === "right") return "r";
@@ -14307,6 +14307,10 @@ function CanvasInner(props) {
14307
14307
  fromCardId: edge.fromCardId,
14308
14308
  toCardId: edge.toCardId,
14309
14309
  sync,
14310
+ // Hidden until the first layout pass: the stored positions come first and the
14311
+ // measured ones a frame later, and drawing the early route made the line
14312
+ // visibly jump across the board when the map opened.
14313
+ ready: boardTick > 0,
14310
14314
  obstacles: obstaclesFor(edge.fromCardId, edge.toCardId),
14311
14315
  ...boxOf(edge.fromCardId) !== void 0 ? { fromRect: boxOf(edge.fromCardId) } : {},
14312
14316
  ...boxOf(edge.toCardId) !== void 0 ? { toRect: boxOf(edge.toCardId) } : {}
@@ -14362,6 +14366,7 @@ function CanvasInner(props) {
14362
14366
  fromCardId: parentCardId,
14363
14367
  toCardId: cardId,
14364
14368
  sync: "idle",
14369
+ ready: boardTick > 0,
14365
14370
  obstacles: obstaclesFor(parentCardId, cardId),
14366
14371
  ...boxOf(parentCardId) !== void 0 ? { fromRect: boxOf(parentCardId) } : {},
14367
14372
  ...boxOf(cardId) !== void 0 ? { toRect: boxOf(cardId) } : {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-talk-map",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
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",