dsh-talk-map 0.1.34 → 0.1.36
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/client/client.js +24 -20
- 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.
|
|
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.
|
|
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";
|
|
@@ -13808,13 +13808,17 @@ function CanvasInner(props) {
|
|
|
13808
13808
|
(0, import_react12.useEffect)(() => {
|
|
13809
13809
|
if (canvasState.phase !== "ready") return;
|
|
13810
13810
|
if (draggingCardId !== null || liveFrame !== null) return;
|
|
13811
|
-
const
|
|
13812
|
-
|
|
13813
|
-
const
|
|
13814
|
-
|
|
13815
|
-
|
|
13816
|
-
|
|
13817
|
-
|
|
13811
|
+
const timer4 = window.setTimeout(() => {
|
|
13812
|
+
const stale = {};
|
|
13813
|
+
for (const [cardId, point] of Object.entries(cardLayout)) {
|
|
13814
|
+
const card = canvasState.cards[cardId];
|
|
13815
|
+
if (card === void 0) continue;
|
|
13816
|
+
if (!Number.isFinite(point.x) || !Number.isFinite(point.y)) continue;
|
|
13817
|
+
if (Math.abs(card.x - point.x) > 0.5 || Math.abs(card.y - point.y) > 0.5) stale[cardId] = point;
|
|
13818
|
+
}
|
|
13819
|
+
if (Object.keys(stale).length > 0) canvas.moveCards(stale);
|
|
13820
|
+
}, 140);
|
|
13821
|
+
return () => window.clearTimeout(timer4);
|
|
13818
13822
|
}, [cardLayout, canvasState.cards, canvasState.phase, draggingCardId, liveFrame]);
|
|
13819
13823
|
const foldedSet = (0, import_react12.useMemo)(() => new Set(Object.values(foldedCards).flat()), [foldedCards]);
|
|
13820
13824
|
(0, import_react12.useEffect)(() => {
|
|
@@ -14222,19 +14226,19 @@ function CanvasInner(props) {
|
|
|
14222
14226
|
};
|
|
14223
14227
|
const renderedBoxes = () => {
|
|
14224
14228
|
const out = {};
|
|
14225
|
-
for (const
|
|
14226
|
-
|
|
14227
|
-
|
|
14228
|
-
|
|
14229
|
-
|
|
14230
|
-
|
|
14231
|
-
|
|
14232
|
-
w: element?.offsetWidth ?? CARD_W,
|
|
14233
|
-
h: element?.offsetHeight ?? CARD_H
|
|
14229
|
+
for (const node of liveNodes) {
|
|
14230
|
+
if (node.type !== "sessionCard" || node.hidden === true) continue;
|
|
14231
|
+
out[node.id] = {
|
|
14232
|
+
x: node.position.x,
|
|
14233
|
+
y: node.position.y,
|
|
14234
|
+
w: CARD_PAINTED_W,
|
|
14235
|
+
h: CARD_PAINTED_H
|
|
14234
14236
|
};
|
|
14235
14237
|
}
|
|
14236
14238
|
return out;
|
|
14237
14239
|
};
|
|
14240
|
+
const CARD_PAINTED_W = 250;
|
|
14241
|
+
const CARD_PAINTED_H = 129;
|
|
14238
14242
|
const [boardTick, setBoardTick] = (0, import_react12.useState)(0);
|
|
14239
14243
|
(0, import_react12.useEffect)(() => {
|
|
14240
14244
|
const timer4 = window.setTimeout(() => setBoardTick((value) => value + 1), 150);
|
|
@@ -14307,7 +14311,7 @@ function CanvasInner(props) {
|
|
|
14307
14311
|
fromCardId: edge.fromCardId,
|
|
14308
14312
|
toCardId: edge.toCardId,
|
|
14309
14313
|
sync,
|
|
14310
|
-
//
|
|
14314
|
+
// Hidden until the first layout pass: the stored positions come first and the
|
|
14311
14315
|
// measured ones a frame later, and drawing the early route made the line
|
|
14312
14316
|
// visibly jump across the board when the map opened.
|
|
14313
14317
|
ready: boardTick > 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-talk-map",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.36",
|
|
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",
|