dsh-talk-map 0.2.3 → 0.2.4

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 +16 -9
  2. package/package.json +1 -1
package/client/client.js CHANGED
@@ -498,7 +498,7 @@ var zh = {
498
498
  "digest.empty": "这条对话还没有摘要,先刷新摘要再来看。",
499
499
  "digest.copy": "复制",
500
500
  "digest.close": "关闭",
501
- "global.searchPlaceholder": "b203 · 搜地图上的卡片(标题/正文)",
501
+ "global.searchPlaceholder": "b204 · 搜地图上的卡片(标题/正文)",
502
502
  "global.searchRun": "搜索",
503
503
  "global.searchTitle": "搜索地图",
504
504
  "font.group": "文字大小",
@@ -691,7 +691,7 @@ var en = {
691
691
  "menu.noGroup": "Remove from group (free card)",
692
692
  "menu.open": "Open conversation",
693
693
  "menu.markUnread": "Mark as unread",
694
- "global.searchPlaceholder": "b203 · Search cards on the map",
694
+ "global.searchPlaceholder": "b204 · Search cards on the map",
695
695
  "global.searchRun": "Search",
696
696
  "global.searchTitle": "Search the map",
697
697
  "font.group": "Text size",
@@ -14089,11 +14089,11 @@ function filterMarkup(id2, geometry, displacementUrl, specularUrl, scale, specul
14089
14089
  parts.push("</filter>");
14090
14090
  return parts.join("");
14091
14091
  }
14092
- var FILTER_ID = "dsh-talk-map-liquid-glass";
14093
- var SVG_ID = "dsh-talk-map-liquid-glass-svg";
14092
+ var BASE_ID = "dsh-talk-map-liquid-glass";
14093
+ var instanceSeq = 0;
14094
14094
  function supportsRefraction() {
14095
14095
  if (typeof CSS === "undefined" || typeof CSS.supports !== "function") return false;
14096
- return CSS.supports("backdrop-filter", `url(#${FILTER_ID})`) || CSS.supports("-webkit-backdrop-filter", `url(#${FILTER_ID})`);
14096
+ return CSS.supports("backdrop-filter", `url(#${BASE_ID})`) || CSS.supports("-webkit-backdrop-filter", `url(#${BASE_ID})`);
14097
14097
  }
14098
14098
  function installLiquidGlass(element, options = {}) {
14099
14099
  const radius = options.radius ?? 22;
@@ -14111,6 +14111,9 @@ function installLiquidGlass(element, options = {}) {
14111
14111
  element.style.removeProperty("-webkit-backdrop-filter");
14112
14112
  };
14113
14113
  }
14114
+ instanceSeq += 1;
14115
+ const filterId = `${BASE_ID}-${instanceSeq}`;
14116
+ const svgId = `${BASE_ID}-svg-${instanceSeq}`;
14114
14117
  let svg;
14115
14118
  let frame2 = 0;
14116
14119
  const disposeSvg = () => {
@@ -14129,14 +14132,14 @@ function installLiquidGlass(element, options = {}) {
14129
14132
  const specularUrl = specular > 0 ? specularMap(geometry) : "";
14130
14133
  disposeSvg();
14131
14134
  svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
14132
- svg.setAttribute("id", SVG_ID);
14135
+ svg.setAttribute("id", svgId);
14133
14136
  svg.setAttribute("width", "0");
14134
14137
  svg.setAttribute("height", "0");
14135
14138
  svg.setAttribute("style", "position:absolute;overflow:hidden;pointer-events:none");
14136
14139
  svg.setAttribute("color-interpolation-filters", "sRGB");
14137
- svg.innerHTML = `<defs>${filterMarkup(FILTER_ID, geometry, displacementUrl, specularUrl, scale, specular)}</defs>`;
14140
+ svg.innerHTML = `<defs>${filterMarkup(filterId, geometry, displacementUrl, specularUrl, scale, specular)}</defs>`;
14138
14141
  document.body.append(svg);
14139
- const filters = [`url(#${FILTER_ID})`];
14142
+ const filters = [`url(#${filterId})`];
14140
14143
  if (blur > 0.5) filters.push(`blur(${blur.toFixed(1)}px)`);
14141
14144
  element.style.setProperty("backdrop-filter", filters.join(" "));
14142
14145
  element.style.setProperty("-webkit-backdrop-filter", filters.join(" "));
@@ -14247,8 +14250,12 @@ function StatusRail(props) {
14247
14250
  return installLiquidGlass(element, { radius: 22, bezel: 26, thickness: 90, ior: 2.2, scale: 14, specular: 0.3 });
14248
14251
  }, []);
14249
14252
  (0, import_react11.useEffect)(() => {
14250
- const onDown = () => {
14253
+ const onDown = (event) => {
14254
+ const target = event.target;
14255
+ if (!(target instanceof Element)) return;
14256
+ if (target.closest('[class*="canvas"]') === null && target.closest(".react-flow") === null) return;
14251
14257
  railFrozen.freeze();
14258
+ railFrozen.thaw(4e3);
14252
14259
  };
14253
14260
  const onUp = () => {
14254
14261
  railFrozen.thaw();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-talk-map",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
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",