dsh-talk-map 0.1.36 → 0.1.38
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 +18 -54
- package/package.json +1 -1
package/client/client.js
CHANGED
|
@@ -10727,22 +10727,6 @@ if (typeof document !== "undefined") {
|
|
|
10727
10727
|
}
|
|
10728
10728
|
}
|
|
10729
10729
|
|
|
10730
|
-
// src/client/colors.ts
|
|
10731
|
-
var COLOR_TAGS = [
|
|
10732
|
-
{ id: "red", swatch: "#e5484d", border: "rgba(229,72,77,0.75)", fill: "rgba(229,72,77,0.18)", faint: "rgba(229,72,77,0.05)" },
|
|
10733
|
-
{ id: "orange", swatch: "#f76b15", border: "rgba(247,107,21,0.75)", fill: "rgba(247,107,21,0.18)", faint: "rgba(247,107,21,0.05)" },
|
|
10734
|
-
{ id: "yellow", swatch: "#ffc53d", border: "rgba(255,197,61,0.75)", fill: "rgba(255,197,61,0.18)", faint: "rgba(255,197,61,0.05)" },
|
|
10735
|
-
{ id: "green", swatch: "#30a46c", border: "rgba(48,164,108,0.8)", fill: "rgba(48,164,108,0.18)", faint: "rgba(48,164,108,0.05)" },
|
|
10736
|
-
{ id: "teal", swatch: "#12a594", border: "rgba(18,165,148,0.8)", fill: "rgba(18,165,148,0.18)", faint: "rgba(18,165,148,0.05)" },
|
|
10737
|
-
{ id: "blue", swatch: "#3e63dd", border: "rgba(62,99,221,0.8)", fill: "rgba(62,99,221,0.2)", faint: "rgba(62,99,221,0.06)" },
|
|
10738
|
-
{ id: "purple", swatch: "#8e4ec6", border: "rgba(142,78,198,0.8)", fill: "rgba(142,78,198,0.18)", faint: "rgba(142,78,198,0.05)" },
|
|
10739
|
-
{ id: "gray", swatch: "#7d828d", border: "rgba(125,130,141,0.8)", fill: "rgba(125,130,141,0.16)", faint: "rgba(125,130,141,0.05)" }
|
|
10740
|
-
];
|
|
10741
|
-
var byId = new Map(COLOR_TAGS.map((tag) => [tag.id, tag]));
|
|
10742
|
-
function colorOf(tagId) {
|
|
10743
|
-
return tagId === void 0 ? void 0 : byId.get(tagId);
|
|
10744
|
-
}
|
|
10745
|
-
|
|
10746
10730
|
// src/client/digest-text.ts
|
|
10747
10731
|
function digestBody(digest) {
|
|
10748
10732
|
const parts = [];
|
|
@@ -12224,7 +12208,7 @@ function routeBetween(ends, from, to, obstacles, options = {}) {
|
|
|
12224
12208
|
}
|
|
12225
12209
|
return count;
|
|
12226
12210
|
};
|
|
12227
|
-
if (hits(raw, [from, to]) === 0) return raw;
|
|
12211
|
+
if (hits(raw, [from, to, ...obstacles]) === 0) return raw;
|
|
12228
12212
|
const spread = margin + 24;
|
|
12229
12213
|
const boxTop = Math.min(from.y, to.y) - spread;
|
|
12230
12214
|
const boxBottom = Math.max(from.y + from.h, to.y + to.h) + spread;
|
|
@@ -12880,6 +12864,22 @@ function SpawnPreview(props) {
|
|
|
12880
12864
|
] });
|
|
12881
12865
|
}
|
|
12882
12866
|
|
|
12867
|
+
// src/client/colors.ts
|
|
12868
|
+
var COLOR_TAGS = [
|
|
12869
|
+
{ id: "red", swatch: "#e5484d", border: "rgba(229,72,77,0.75)", fill: "rgba(229,72,77,0.18)", faint: "rgba(229,72,77,0.05)" },
|
|
12870
|
+
{ id: "orange", swatch: "#f76b15", border: "rgba(247,107,21,0.75)", fill: "rgba(247,107,21,0.18)", faint: "rgba(247,107,21,0.05)" },
|
|
12871
|
+
{ id: "yellow", swatch: "#ffc53d", border: "rgba(255,197,61,0.75)", fill: "rgba(255,197,61,0.18)", faint: "rgba(255,197,61,0.05)" },
|
|
12872
|
+
{ id: "green", swatch: "#30a46c", border: "rgba(48,164,108,0.8)", fill: "rgba(48,164,108,0.18)", faint: "rgba(48,164,108,0.05)" },
|
|
12873
|
+
{ id: "teal", swatch: "#12a594", border: "rgba(18,165,148,0.8)", fill: "rgba(18,165,148,0.18)", faint: "rgba(18,165,148,0.05)" },
|
|
12874
|
+
{ id: "blue", swatch: "#3e63dd", border: "rgba(62,99,221,0.8)", fill: "rgba(62,99,221,0.2)", faint: "rgba(62,99,221,0.06)" },
|
|
12875
|
+
{ id: "purple", swatch: "#8e4ec6", border: "rgba(142,78,198,0.8)", fill: "rgba(142,78,198,0.18)", faint: "rgba(142,78,198,0.05)" },
|
|
12876
|
+
{ id: "gray", swatch: "#7d828d", border: "rgba(125,130,141,0.8)", fill: "rgba(125,130,141,0.16)", faint: "rgba(125,130,141,0.05)" }
|
|
12877
|
+
];
|
|
12878
|
+
var byId = new Map(COLOR_TAGS.map((tag) => [tag.id, tag]));
|
|
12879
|
+
function colorOf(tagId) {
|
|
12880
|
+
return tagId === void 0 ? void 0 : byId.get(tagId);
|
|
12881
|
+
}
|
|
12882
|
+
|
|
12883
12883
|
// src/client/WsFrame.tsx
|
|
12884
12884
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
12885
12885
|
var EDGE = 10;
|
|
@@ -14108,7 +14108,7 @@ function CanvasInner(props) {
|
|
|
14108
14108
|
count: members.length,
|
|
14109
14109
|
width: rect.width,
|
|
14110
14110
|
height: rect.height,
|
|
14111
|
-
|
|
14111
|
+
// Workspace colours are not used any more: frames keep their default look.
|
|
14112
14112
|
// Red outline while this folder overlaps another one mid-drag.
|
|
14113
14113
|
blocked: blockedFrame === groupId,
|
|
14114
14114
|
onResizeStart: (axis, event) => {
|
|
@@ -15308,7 +15308,6 @@ function CanvasInner(props) {
|
|
|
15308
15308
|
}
|
|
15309
15309
|
}
|
|
15310
15310
|
) : null,
|
|
15311
|
-
!batchMode && selectedFrameWs.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FrameColorToolbar, { workspaceIds: selectedFrameWs }) : null,
|
|
15312
15311
|
hasContent ? null : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: talk_map_default["emptyHint"], children: t("map.empty") }),
|
|
15313
15312
|
menuState !== null ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ContextMenu, { menu: menuState, onClose: () => {
|
|
15314
15313
|
setMenu(null);
|
|
@@ -15373,41 +15372,6 @@ function CanvasInner(props) {
|
|
|
15373
15372
|
}
|
|
15374
15373
|
);
|
|
15375
15374
|
}
|
|
15376
|
-
function FrameColorToolbar(props) {
|
|
15377
|
-
const apply2 = (colorTag) => {
|
|
15378
|
-
for (const workspaceId of props.workspaceIds) canvas.setWorkspaceColor(workspaceId, colorTag);
|
|
15379
|
-
};
|
|
15380
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: talk_map_default["colorToolbar"], role: "toolbar", "aria-label": t("color.toolbar"), children: [
|
|
15381
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: talk_map_default["colorToolbarLabel"], children: t("color.toolbar") }),
|
|
15382
|
-
COLOR_TAGS.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
15383
|
-
"button",
|
|
15384
|
-
{
|
|
15385
|
-
type: "button",
|
|
15386
|
-
className: talk_map_default["colorSwatch"],
|
|
15387
|
-
style: { background: tag.swatch },
|
|
15388
|
-
title: tag.id,
|
|
15389
|
-
"aria-label": tag.id,
|
|
15390
|
-
onClick: () => {
|
|
15391
|
-
apply2(tag.id);
|
|
15392
|
-
}
|
|
15393
|
-
},
|
|
15394
|
-
tag.id
|
|
15395
|
-
)),
|
|
15396
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
15397
|
-
"button",
|
|
15398
|
-
{
|
|
15399
|
-
type: "button",
|
|
15400
|
-
className: `${talk_map_default["colorSwatch"]} ${talk_map_default["colorSwatchClear"]}`,
|
|
15401
|
-
title: t("color.clear"),
|
|
15402
|
-
"aria-label": t("color.clear"),
|
|
15403
|
-
onClick: () => {
|
|
15404
|
-
apply2(void 0);
|
|
15405
|
-
},
|
|
15406
|
-
children: "×"
|
|
15407
|
-
}
|
|
15408
|
-
)
|
|
15409
|
-
] });
|
|
15410
|
-
}
|
|
15411
15375
|
function BatchBar(props) {
|
|
15412
15376
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: talk_map_default["batchBar"], role: "toolbar", "aria-label": t("batch.title"), children: [
|
|
15413
15377
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: talk_map_default["batchCount"], children: t("batch.count", { n: String(props.count) }) }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-talk-map",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.38",
|
|
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",
|