@inventec/dsh-copilot-auth 1.2.14 → 1.2.16

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
@@ -33,7 +33,9 @@
33
33
 
34
34
  | 本插件 | DSH 实测版本 | authorization 服务 | 说明 |
35
35
  |---|---|---|---|
36
- | v1.2.14+ | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **消除弹窗上下弹跳**:「拉取预览中…」物化指示改为**常驻占位行**(visibility 显隐,不插入/移除节点)——v1.2.13 固定高度解决了整卡伸缩,本版消除指示条插入/移除引起的垂直位移。其余同 v1.2.13 |
36
+ | v1.2.16+ | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **移除物化中指示浮层**:勾选为乐观即时反馈、物化通常亚秒完成,任何显隐指示都构成闪烁(主人裁决完全移除)。物化中「应用更改」点击由状态机安全忽略(防旧 previewId 提交),指示移除后卡片视觉零变化。其余同 v1.2.15 |
37
+ | v1.2.15 | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **物化指示改右上角浮层**(绝对定位、透明度渐显渐隐、不占布局流)——取代 v1.2.14 的常驻占位行(占位行零位移但留空行,显空旷);弹跳与空行双消除。其余同 v1.2.14 |
38
+ | v1.2.14 | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **消除弹窗上下弹跳**:「拉取预览中…」物化指示改为**常驻占位行**(visibility 显隐,不插入/移除节点)——v1.2.13 固定高度解决了整卡伸缩,本版消除指示条插入/移除引起的垂直位移。其余同 v1.2.13 |
37
39
  | v1.2.13 | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **修复模型弹窗勾选闪烁**:勾选/全选触发的物化期间弹窗保持挂载(历史实现切回 `previewing` 导致弹窗整体卸载重挂——卡片闪现「拉取预览中」、滚动位置丢失,实测探针元素直接从 DOM 消失);弹窗改固定高度三段式(头部/内部滚动/常驻操作栏),尺寸不再随增删列表变化;勾选走本地乐观更新(服务端回显到达后对齐)。其余同 v1.2.12 |
38
40
  | v1.2.12 | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **交互打磨**:「补充模型」的全选按钮在全选中切换为「取消全选」(任一取消勾选即恢复「全选」);「重建」风险提示精简为一行;成功路径的「技术详情」计数移除(与弹窗增删列表重复),技术详情仅在真实失败时展示。其余同 v1.2.11 |
39
41
  | v1.2.11 | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **界面收敛:移除「重新授权」按钮与 `capabilities.reauthorize` 能力位**(逻辑冗余——已登录只需退出登录,未登录入口本就是「授权登录」;换号/重授权=先退出再登录两步)。其余同 v1.2.10 |
package/lib/client.js CHANGED
@@ -861,7 +861,7 @@ function sampleThemeSurface() {
861
861
  const bg = m ? `rgb(${m[1].split(",").slice(0, 3).join(",")})` : "#fff";
862
862
  return { bg, fg: cs.color || "inherit" };
863
863
  }
864
- function RefreshModal({ t, flow, materializing, onSelect, onConfirm, onCancel, onOverlay }) {
864
+ function RefreshModal({ t, flow, onSelect, onConfirm, onCancel, onOverlay }) {
865
865
  const p = flow.preview;
866
866
  const diff = p.diff ?? {};
867
867
  const isRebuild = p.operation === "rebuild";
@@ -921,13 +921,9 @@ function RefreshModal({ t, flow, materializing, onSelect, onConfirm, onCancel, o
921
921
  p.evidence?.stale === true && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { style: styles.banner, children: [
922
922
  "\u26A0 ",
923
923
  t("srcStale")
924
- ] }),
925
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { style: { ...styles.banner, minHeight: 20, visibility: materializing ? "visible" : "hidden" }, children: [
926
- "\u24D8 ",
927
- t("refreshing")
928
924
  ] })
929
925
  ] }),
930
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: { flex: 1, overflowY: "auto", minHeight: 0, scrollbarGutter: "stable", padding: "0 20px", opacity: materializing ? 0.55 : 1, pointerEvents: materializing ? "none" : "auto" }, children: [
926
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: { flex: 1, overflowY: "auto", minHeight: 0, scrollbarGutter: "stable", padding: "0 20px" }, children: [
931
927
  !isRebuild && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
932
928
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { style: styles.modalText, children: [
933
929
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: t("candidates") }),
@@ -1019,8 +1015,8 @@ function RefreshModal({ t, flow, materializing, onSelect, onConfirm, onCancel, o
1019
1015
  "button",
1020
1016
  {
1021
1017
  type: "button",
1022
- style: { ...styles.button, ...styles.primary, ...p.evidence?.stale === true || materializing ? { opacity: 0.5, cursor: "not-allowed" } : null },
1023
- disabled: p.evidence?.stale === true || materializing,
1018
+ style: { ...styles.button, ...styles.primary, ...p.evidence?.stale === true ? { opacity: 0.5, cursor: "not-allowed" } : null },
1019
+ disabled: p.evidence?.stale === true,
1024
1020
  onClick: confirmClick,
1025
1021
  children: t("applyChanges")
1026
1022
  }
@@ -1270,7 +1266,6 @@ function CopilotSection({ t = (key) => DICTS.en[key] ?? key }) {
1270
1266
  {
1271
1267
  t,
1272
1268
  flow,
1273
- materializing: flow.materializing === true,
1274
1269
  onSelect: (selectedIds) => drive({ type: "select", selectedIds }),
1275
1270
  onConfirm: (opts) => drive({ type: "confirm", ...opts }),
1276
1271
  onCancel: () => drive({ type: "cancel" }),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@inventec/dsh-copilot-auth",
3
- "version": "1.2.14",
4
- "description": "为内置 Copilot 提供方补设备码登录设置页,预置开箱路由;凭据入内置凭据库,模型目录兜底不覆盖定制。v1.2.14:物化指示改常驻占位行(显隐不挤占布局),消除弹窗上下弹跳。v1.2.13:修复勾选闪烁(弹窗保持挂载+固定高度)。适配 DSH 0.1.7+(≤0.1.5 请用 1.1.x)。",
3
+ "version": "1.2.16",
4
+ "description": "为内置 Copilot 提供方补设备码登录设置页,预置开箱路由;凭据入内置凭据库,模型目录兜底不覆盖定制。v1.2.16:移除物化指示浮层——物化中视觉零变化,误点应用由状态机安全忽略。v1.2.13:修复勾选闪烁(弹窗保持挂载+固定高度)。适配 DSH 0.1.7+(≤0.1.5 请用 1.1.x)。",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "iasi",