dsh-m 0.9.33 → 0.9.44

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/CHANGELOG.md CHANGED
@@ -8,6 +8,13 @@ The full release history of dsh-m, maintained bilingually: **Chinese first, Engl
8
8
 
9
9
  ## 中文
10
10
 
11
+ ### 0.9.44 变更:插件卡片网格按容器宽度自适应列数(全屏显出更多卡片)
12
+
13
+ - **自适应网格**:市场/已装/收藏三视图共用的卡片网格从固定两列改为按容器实际可用宽度自适应——`grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))`。列数 ≈ `max(1, floor((W+8)/368))`(最小卡宽 360px、列距 8px,剩余宽度各列均分):浮动态(~920px 面板)保持 2 列零回归;全屏 1920 宽约 5 列、1280 宽 3 列,显著显出更多插件卡片。
14
+ - **删视口断点**:移除 `@media (max-width:680px)` 的单列覆盖——视口宽度不代表面板实际可用宽度;极窄容器由 `min(100%,360px)` 兜底自动单列,不横向溢出。
15
+ - **范围与边界**:搜索分组段头(`.dsvm-grouphead`)仍以 `grid-column:1/-1` 跨满整行;纯客户端变更,刷新页面即生效。
16
+ - **测试**:新增 SSR 冒烟回归 1 例(锁定自适应网格规则与断点删除);typecheck 零错误。
17
+
11
18
  ### 0.9.33 变更:自研条目元数据 v1.1——`audience`/`decoupled` 两字段与三端标注
12
19
 
13
20
  - **schema**:registry 条目增补可选 `decoupled?: true`(解耦条目,实操口径判定;与 `verified` 互斥——同条目共存报 error)与 `audience?: 'public' | 'internal'`(缺省 public 不产生键;`'team'` 值集预留未开放)。决策共识与五项裁决记录见 DESIGN §2.7,术语见 GLOSSARY「解耦条目 / 自用条目」。
@@ -325,6 +332,13 @@ The full release history of dsh-m, maintained bilingually: **Chinese first, Engl
325
332
 
326
333
  ## English
327
334
 
335
+ ### Added in 0.9.44 — plugin card grid adapts column count to available width (more cards in fullscreen)
336
+
337
+ - **Adaptive grid**: the card grid shared by the Market / Installed / Favorites views switches from a fixed two-column layout to container-width adaptation — `grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))`. Column count ≈ `max(1, floor((W+8)/368))` (360px min card width, 8px gap, remaining width split evenly): the floating panel (~920px) keeps its 2 columns with zero regression; fullscreen at 1920px shows ~5 columns and 1280px shows 3 — noticeably more plugin cards on screen.
338
+ - **Viewport breakpoint removed**: the `@media (max-width:680px)` single-column override is gone — viewport width does not describe the width actually available to the panel; very narrow containers fall back to a single column via `min(100%,360px)` without horizontal overflow.
339
+ - **Scope and edges**: search group headers (`.dsvm-grouphead`) still span the full row via `grid-column:1/-1`; client-only change — refresh the page to take effect.
340
+ - **Tests**: 1 new SSR smoke regression case (locks the adaptive grid rule and the breakpoint removal); typecheck clean.
341
+
328
342
  ### Added in 0.9.33 — self-dev entry metadata v1.1: `audience`/`decoupled` fields with three-surface marking
329
343
 
330
344
  - **Schema**: registry entries gain optional `decoupled?: true` (decoupled entries, operational criterion; mutually exclusive with `verified` — co-occurrence is an error) and `audience?: 'public' | 'internal'` (defaults to public, no key emitted; `'team'` reserved, not accepted this release). The decision record and five rulings live in DESIGN §2.7; terms in GLOSSARY (Decoupled Entry / Internal Entry).
package/lib/client.js CHANGED
@@ -1941,10 +1941,12 @@ var CSS = `
1941
1941
  .dsvm-favbtn:hover{color:var(--dsw-alias-state-business-primary,#4d6bfe)}
1942
1942
  .dsvm-favbtn.on{color:#e0a33c}
1943
1943
  .dsvm-reddot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--dsw-alias-state-error-primary,#ef4444);margin-left:5px;vertical-align:middle}
1944
- .dshm-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
1944
+ /* \u4F9D\u5361\u7247\u5BB9\u5668\u5BBD\u5EA6\u81EA\u52A8\u51B3\u5B9A\u5217\u6570\uFF1AN=max(1,floor((W+8)/(360+8)))\uFF0C\u5355\u5361\u5BBD\u5EA6\u5747\u5206\u5269\u4F59\u7A7A\u95F4\u3002
1945
+ \u666E\u901A\u7A97\u53E3\u3001\u5168\u5C4F\u548C\u7A84\u5C4F\u90FD\u8D70\u540C\u4E00\u89C4\u5219\uFF1Bmin(100%,360px) \u4FDD\u8BC1\u6781\u7A84\u5BB9\u5668\u4E0D\u6A2A\u5411\u6EA2\u51FA\u3002 */
1946
+ .dshm-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:8px}
1945
1947
  .dsvm-searchmeta{display:flex;align-items:center;gap:8px;color:var(--dsw-alias-label-caption,#6b7280);font-size:12px;line-height:18px;margin:2px 0}
1946
1948
  .dsvm-grouphead{grid-column:1/-1;color:var(--dsw-alias-label-caption,#6b7280);font-size:11px;line-height:16px;margin:2px 0 0;font-weight:600;letter-spacing:.02em}
1947
- @media (max-width:680px){.dshm-cards{grid-template-columns:1fr}}
1949
+
1948
1950
  .dshm-card{display:flex;gap:12px;align-items:flex-start;background:var(--dsw-alias-bg-layer-2,rgba(38,49,72,.04));border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:12px;padding:12px;cursor:pointer;text-align:left;width:100%;box-sizing:border-box;min-width:0;font:inherit;color:var(--dsw-alias-label-primary,inherit);transition:border-color .16s,background .16s}
1949
1951
  .dshm-card:hover{background:var(--dsw-alias-interactive-bg-hover,rgba(38,49,72,.06));border-color:var(--dsw-alias-label-dimmed,#c7d2fe)}
1950
1952
  .dshm-icon{width:40px;height:40px;border-radius:10px;object-fit:cover;border:1px solid var(--dsw-alias-border-l2,#e5e7eb);flex-shrink:0;background:linear-gradient(135deg,#c7d2fe,#fbcfe8);display:grid;place-items:center;font-weight:700;font-size:16px;color:#374151}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-m",
3
- "version": "0.9.33",
3
+ "version": "0.9.44",
4
4
  "description": "可自定义收录清单的 DSH 插件市场:收录、安装、卸载、升级一站完成,附 agent 工具与 dshm CLI。",
5
5
  "license": "MIT",
6
6
  "type": "module",