@restregular/dsh-notepad 0.3.0 → 0.3.1

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/README.md CHANGED
@@ -53,7 +53,7 @@ dsh plugin --profile web add @restregular/dsh-notepad
53
53
  | 多段发送 | 勾选分段 → 工具栏纸飞机 | 合并成一条消息发送;发送成功后自动归档这些段 |
54
54
  | 全选 | 列表上方「全选」复选框 | 一键选中所有未归档分段,再点一次取消 |
55
55
  | 归档 | 卡片上的归档图标,或工具栏归档图标 | 把分段移入归档区(不发送) |
56
- | 显示 / 隐藏归档 | 标题栏归档图标(带数量角标) | 展开 / 收起归档区,状态按浏览器记忆 |
56
+ | 显示 / 隐藏归档 | 标题栏归档图标 | 展开 / 收起归档区,状态按浏览器记忆 |
57
57
  | 恢复 | 归档卡片上的恢复图标 | 把归档分段放回未归档列表 |
58
58
  | 删除 | 归档卡片上的垃圾桶 | **只有已归档分段可以删除**,可撤销 |
59
59
  | 清空归档 | 归档区标题「清空归档」 | 批量删除归档,可撤销 |
package/client.js CHANGED
@@ -108,8 +108,8 @@ window.__ModuleLoader__.load({
108
108
  archived: '归档',
109
109
  archivedToast: '已归档,可在归档中查看',
110
110
  archivedCount: '已归档 {n} 段',
111
- showArchive: '显示归档({n})',
112
- hideArchive: '隐藏归档({n})',
111
+ showArchive: '显示归档',
112
+ hideArchive: '隐藏归档',
113
113
  archiveCount: '归档 · {n}',
114
114
  archiveEmpty: '还没有归档的分段',
115
115
  noActive: '没有进行中的分段',
@@ -193,8 +193,8 @@ window.__ModuleLoader__.load({
193
193
  archived: 'Archived',
194
194
  archivedToast: 'Archived; available under Archive',
195
195
  archivedCount: 'Archived {n}',
196
- showArchive: 'Show archive ({n})',
197
- hideArchive: 'Hide archive ({n})',
196
+ showArchive: 'Show archive',
197
+ hideArchive: 'Hide archive',
198
198
  archiveCount: 'Archive · {n}',
199
199
  archiveEmpty: 'Nothing archived yet',
200
200
  noActive: 'No active segments',
@@ -531,7 +531,6 @@ window.__ModuleLoader__.load({
531
531
  .dsh-np-btn[data-accent=true]:hover:not(:disabled){background:color-mix(in srgb,var(--np-accent) 88%,#000);color:var(--np-accent-fg)}
532
532
  .dsh-np-btn:disabled{opacity:.38;cursor:default;background:transparent;color:var(--dsw-alias-label-tertiary,#6b7280)}
533
533
  .dsh-np-btn:focus-visible,.dsh-np-segbtn:focus-visible,.dsh-np-link:focus-visible,.dsh-np-empty-add:focus-visible,.dsh-np-toast-action:focus-visible,.dsh-np-selectall input:focus-visible,.dsh-np-check input:focus-visible,.dsh-np-restore:focus-visible,.dsh-np-img-open:focus-visible,.dsh-np-img-remove:focus-visible{outline:2px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary,#4176e6));outline-offset:-2px}
534
- .dsh-np-badge{position:absolute;top:2px;right:2px;min-width:13px;height:13px;padding:0 3px;box-sizing:border-box;border-radius:7px;background:var(--np-accent);color:var(--np-accent-fg);font-size:9px;font-weight:600;line-height:13px;text-align:center;font-variant-numeric:tabular-nums}
535
534
  .dsh-np-body{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;padding:8px 10px 0;opacity:1;transition:opacity .16s ease,visibility 0s linear 0s}
536
535
  .dsh-np-card[data-minimized=true] .dsh-np-body{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s ease,visibility 0s linear .16s}
537
536
  .dsh-np-tools{display:flex;align-items:center;gap:4px;flex:none;padding:0 2px 7px;border-bottom:1px solid var(--dsw-alias-border-l1,rgb(15 23 42/.08))}
@@ -1921,9 +1920,7 @@ body[data-ds-dark-theme] .dsh-np-seg[data-archived=true]{opacity:.7}
1921
1920
  statusText = clock === '' ? t('saved') : `${t('saved')} · ${clock}`;
1922
1921
  } else statusText = t('empty');
1923
1922
 
1924
- const archiveButtonTitle = ui.showArchive
1925
- ? t('hideArchive', { n: archivedSegments.length })
1926
- : t('showArchive', { n: archivedSegments.length });
1923
+ const archiveButtonTitle = ui.showArchive ? t('hideArchive') : t('showArchive');
1927
1924
 
1928
1925
  const header = h(
1929
1926
  'div',
@@ -1956,9 +1953,6 @@ body[data-ds-dark-theme] .dsh-np-seg[data-archived=true]{opacity:.7}
1956
1953
  onClick: toggleArchive,
1957
1954
  },
1958
1955
  h(ArchiveIcon, { size: 15 }),
1959
- archivedSegments.length > 0
1960
- ? h('span', { className: 'dsh-np-badge' }, String(archivedSegments.length))
1961
- : null,
1962
1956
  ),
1963
1957
  h(
1964
1958
  'button',
package/index.js CHANGED
@@ -36,7 +36,7 @@ import {
36
36
  const ROUTE = '/dsh-notepad/api';
37
37
 
38
38
  /** Plugin version mirrored in package.json. */
39
- const VERSION = '0.3.0';
39
+ const VERSION = '0.3.1';
40
40
 
41
41
  /** Request body cap for note writes. */
42
42
  const BODY_LIMIT = 1024 * 1024;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restregular/dsh-notepad",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Notepad — a per-workspace floating notepad in the DeepSeek Harness session view: Enter creates segment cards, paste or pick images as inline attachment chips, batch insert / replace / send, sending archives segments, archive management, resizable panel and dark-mode styling. · 记事本 — 在 DeepSeek Harness 会话界面显示一个按工作区共享的分段便签浮窗:回车新建分段卡片,可粘贴或选择图片并以路径附件形式引入,支持单段/多段插入、替换与发送,发送自动归档,归档可显示隐藏和恢复删除,可调整尺寸并适配深色模式。",
5
5
  "icon": "./icon.svg",
6
6
  "type": "module",