@inventec/dsh-copilot-auth 1.2.15 → 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 +2 -1
- package/lib/client.js +5 -35
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
|
|
34
34
|
| 本插件 | DSH 实测版本 | authorization 服务 | 说明 |
|
|
35
35
|
|---|---|---|---|
|
|
36
|
-
| v1.2.
|
|
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 |
|
|
37
38
|
| v1.2.14 | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **消除弹窗上下弹跳**:「拉取预览中…」物化指示改为**常驻占位行**(visibility 显隐,不插入/移除节点)——v1.2.13 固定高度解决了整卡伸缩,本版消除指示条插入/移除引起的垂直位移。其余同 v1.2.13 |
|
|
38
39
|
| v1.2.13 | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **修复模型弹窗勾选闪烁**:勾选/全选触发的物化期间弹窗保持挂载(历史实现切回 `previewing` 导致弹窗整体卸载重挂——卡片闪现「拉取预览中」、滚动位置丢失,实测探针元素直接从 DOM 消失);弹窗改固定高度三段式(头部/内部滚动/常驻操作栏),尺寸不再随增删列表变化;勾选走本地乐观更新(服务端回显到达后对齐)。其余同 v1.2.12 |
|
|
39
40
|
| v1.2.12 | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **交互打磨**:「补充模型」的全选按钮在全选中切换为「取消全选」(任一取消勾选即恢复「全选」);「重建」风险提示精简为一行;成功路径的「技术详情」计数移除(与弹窗增删列表重复),技术详情仅在真实失败时展示。其余同 v1.2.11 |
|
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,
|
|
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";
|
|
@@ -910,36 +910,7 @@ function RefreshModal({ t, flow, materializing, onSelect, onConfirm, onCancel, o
|
|
|
910
910
|
p.catalogSource === "latest" ? t("srcLatest") : p.catalogSource === "overlay" ? t("srcOverlay") : t("srcLocal")
|
|
911
911
|
].filter(Boolean).join(" \xB7 ");
|
|
912
912
|
const list = (items, style, render) => items.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { style: { opacity: 0.6 }, children: t("none") }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { style: styles.diffList, children: items.map((x, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { style: { ...style, ...styles.mono }, children: render ? render(x) : x }, x?.id ?? x ?? i)) });
|
|
913
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: styles.modalMask, role: "dialog", "aria-modal": "true", onKeyDown: escCancel, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: { ...styles.modal, background: surface.current.bg, color: surface.current.fg, height: "min(80vh, 680px)", padding: 0, overflow: "hidden"
|
|
914
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
915
|
-
"div",
|
|
916
|
-
{
|
|
917
|
-
style: {
|
|
918
|
-
position: "absolute",
|
|
919
|
-
top: 16,
|
|
920
|
-
right: 20,
|
|
921
|
-
zIndex: 2,
|
|
922
|
-
display: "flex",
|
|
923
|
-
alignItems: "center",
|
|
924
|
-
gap: 6,
|
|
925
|
-
padding: "3px 12px",
|
|
926
|
-
borderRadius: 999,
|
|
927
|
-
border: "1px solid rgba(128,128,128,0.35)",
|
|
928
|
-
background: surface.current.bg,
|
|
929
|
-
color: "#f59f00",
|
|
930
|
-
fontSize: 12,
|
|
931
|
-
lineHeight: "18px",
|
|
932
|
-
whiteSpace: "nowrap",
|
|
933
|
-
opacity: materializing ? 1 : 0,
|
|
934
|
-
transition: "opacity 150ms ease",
|
|
935
|
-
pointerEvents: "none"
|
|
936
|
-
},
|
|
937
|
-
children: [
|
|
938
|
-
"\u24D8 ",
|
|
939
|
-
t("refreshing")
|
|
940
|
-
]
|
|
941
|
-
}
|
|
942
|
-
),
|
|
913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: styles.modalMask, role: "dialog", "aria-modal": "true", onKeyDown: escCancel, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: { ...styles.modal, background: surface.current.bg, color: surface.current.fg, height: "min(80vh, 680px)", padding: 0, overflow: "hidden" }, children: [
|
|
943
914
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: { padding: "18px 20px 6px" }, children: [
|
|
944
915
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h4", { style: styles.modalTitle, children: t(isRebuild ? "rebuildTitle" : "supplementTitle") }),
|
|
945
916
|
flow.staleNotice && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { style: styles.banner, children: [
|
|
@@ -952,7 +923,7 @@ function RefreshModal({ t, flow, materializing, onSelect, onConfirm, onCancel, o
|
|
|
952
923
|
t("srcStale")
|
|
953
924
|
] })
|
|
954
925
|
] }),
|
|
955
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: { flex: 1, overflowY: "auto", minHeight: 0, scrollbarGutter: "stable", padding: "0 20px"
|
|
926
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: { flex: 1, overflowY: "auto", minHeight: 0, scrollbarGutter: "stable", padding: "0 20px" }, children: [
|
|
956
927
|
!isRebuild && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
957
928
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { style: styles.modalText, children: [
|
|
958
929
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: t("candidates") }),
|
|
@@ -1044,8 +1015,8 @@ function RefreshModal({ t, flow, materializing, onSelect, onConfirm, onCancel, o
|
|
|
1044
1015
|
"button",
|
|
1045
1016
|
{
|
|
1046
1017
|
type: "button",
|
|
1047
|
-
style: { ...styles.button, ...styles.primary, ...p.evidence?.stale === true
|
|
1048
|
-
disabled: p.evidence?.stale === true
|
|
1018
|
+
style: { ...styles.button, ...styles.primary, ...p.evidence?.stale === true ? { opacity: 0.5, cursor: "not-allowed" } : null },
|
|
1019
|
+
disabled: p.evidence?.stale === true,
|
|
1049
1020
|
onClick: confirmClick,
|
|
1050
1021
|
children: t("applyChanges")
|
|
1051
1022
|
}
|
|
@@ -1295,7 +1266,6 @@ function CopilotSection({ t = (key) => DICTS.en[key] ?? key }) {
|
|
|
1295
1266
|
{
|
|
1296
1267
|
t,
|
|
1297
1268
|
flow,
|
|
1298
|
-
materializing: flow.materializing === true,
|
|
1299
1269
|
onSelect: (selectedIds) => drive({ type: "select", selectedIds }),
|
|
1300
1270
|
onConfirm: (opts) => drive({ type: "confirm", ...opts }),
|
|
1301
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.
|
|
4
|
-
"description": "为内置 Copilot 提供方补设备码登录设置页,预置开箱路由;凭据入内置凭据库,模型目录兜底不覆盖定制。v1.2.
|
|
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",
|