@inventec/dsh-copilot-auth 1.2.15 → 1.2.17
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 +3 -1
- package/lib/client.js +7 -35
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -33,7 +33,9 @@
|
|
|
33
33
|
|
|
34
34
|
| 本插件 | DSH 实测版本 | authorization 服务 | 说明 |
|
|
35
35
|
|---|---|---|---|
|
|
36
|
-
| v1.2.
|
|
36
|
+
| v1.2.17+ | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **保留模型逐项列出**(弱化色,与增/删同构)——「保留 (N)」自 v1.2.8 起只有计数没有清单,预览终态不可审计;数据服务端一直有,本版补上渲染。其余同 v1.2.16 |
|
|
37
|
+
| v1.2.16 | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **移除物化中指示浮层**:勾选为乐观即时反馈、物化通常亚秒完成,任何显隐指示都构成闪烁(主人裁决完全移除)。物化中「应用更改」点击由状态机安全忽略(防旧 previewId 提交),指示移除后卡片视觉零变化。其余同 v1.2.15 |
|
|
38
|
+
| v1.2.15 | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **物化指示改右上角浮层**(绝对定位、透明度渐显渐隐、不占布局流)——取代 v1.2.14 的常驻占位行(占位行零位移但留空行,显空旷);弹跳与空行双消除。其余同 v1.2.14 |
|
|
37
39
|
| v1.2.14 | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **消除弹窗上下弹跳**:「拉取预览中…」物化指示改为**常驻占位行**(visibility 显隐,不插入/移除节点)——v1.2.13 固定高度解决了整卡伸缩,本版消除指示条插入/移除引起的垂直位移。其余同 v1.2.13 |
|
|
38
40
|
| v1.2.13 | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **修复模型弹窗勾选闪烁**:勾选/全选触发的物化期间弹窗保持挂载(历史实现切回 `previewing` 导致弹窗整体卸载重挂——卡片闪现「拉取预览中」、滚动位置丢失,实测探针元素直接从 DOM 消失);弹窗改固定高度三段式(头部/内部滚动/常驻操作栏),尺寸不再随增删列表变化;勾选走本地乐观更新(服务端回显到达后对齐)。其余同 v1.2.12 |
|
|
39
41
|
| v1.2.12 | `0.1.7-rc.2`+ | runtime 内置,插件不挂载 | **交互打磨**:「补充模型」的全选按钮在全选中切换为「取消全选」(任一取消勾选即恢复「全选」);「重建」风险提示精简为一行;成功路径的「技术详情」计数移除(与弹窗增删列表重复),技术详情仅在真实失败时展示。其余同 v1.2.11 |
|
package/lib/client.js
CHANGED
|
@@ -849,6 +849,7 @@ var styles = {
|
|
|
849
849
|
added: { color: "#37b24d" },
|
|
850
850
|
removed: { color: "#e03131" },
|
|
851
851
|
skipped: { color: "#f59f00" },
|
|
852
|
+
muted: { opacity: 0.6 },
|
|
852
853
|
risk: { margin: 0, fontSize: 12, lineHeight: "18px", color: "#e8590c" },
|
|
853
854
|
modalActions: { display: "flex", gap: 10, justifyContent: "flex-end", marginTop: 4 },
|
|
854
855
|
mono: { fontFamily: "ui-monospace, monospace" }
|
|
@@ -861,7 +862,7 @@ function sampleThemeSurface() {
|
|
|
861
862
|
const bg = m ? `rgb(${m[1].split(",").slice(0, 3).join(",")})` : "#fff";
|
|
862
863
|
return { bg, fg: cs.color || "inherit" };
|
|
863
864
|
}
|
|
864
|
-
function RefreshModal({ t, flow,
|
|
865
|
+
function RefreshModal({ t, flow, onSelect, onConfirm, onCancel, onOverlay }) {
|
|
865
866
|
const p = flow.preview;
|
|
866
867
|
const diff = p.diff ?? {};
|
|
867
868
|
const isRebuild = p.operation === "rebuild";
|
|
@@ -910,36 +911,7 @@ function RefreshModal({ t, flow, materializing, onSelect, onConfirm, onCancel, o
|
|
|
910
911
|
p.catalogSource === "latest" ? t("srcLatest") : p.catalogSource === "overlay" ? t("srcOverlay") : t("srcLocal")
|
|
911
912
|
].filter(Boolean).join(" \xB7 ");
|
|
912
913
|
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
|
-
),
|
|
914
|
+
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
915
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: { padding: "18px 20px 6px" }, children: [
|
|
944
916
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h4", { style: styles.modalTitle, children: t(isRebuild ? "rebuildTitle" : "supplementTitle") }),
|
|
945
917
|
flow.staleNotice && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { style: styles.banner, children: [
|
|
@@ -952,7 +924,7 @@ function RefreshModal({ t, flow, materializing, onSelect, onConfirm, onCancel, o
|
|
|
952
924
|
t("srcStale")
|
|
953
925
|
] })
|
|
954
926
|
] }),
|
|
955
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: { flex: 1, overflowY: "auto", minHeight: 0, scrollbarGutter: "stable", padding: "0 20px"
|
|
927
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: { flex: 1, overflowY: "auto", minHeight: 0, scrollbarGutter: "stable", padding: "0 20px" }, children: [
|
|
956
928
|
!isRebuild && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
957
929
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { style: styles.modalText, children: [
|
|
958
930
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: t("candidates") }),
|
|
@@ -998,6 +970,7 @@ function RefreshModal({ t, flow, materializing, onSelect, onConfirm, onCancel, o
|
|
|
998
970
|
(diff.kept ?? []).length,
|
|
999
971
|
"\uFF09"
|
|
1000
972
|
] }),
|
|
973
|
+
list(diff.kept ?? [], styles.muted),
|
|
1001
974
|
(diff.warnings ?? []).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
1002
975
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { style: styles.modalText, children: [
|
|
1003
976
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: t("warnings") }),
|
|
@@ -1044,8 +1017,8 @@ function RefreshModal({ t, flow, materializing, onSelect, onConfirm, onCancel, o
|
|
|
1044
1017
|
"button",
|
|
1045
1018
|
{
|
|
1046
1019
|
type: "button",
|
|
1047
|
-
style: { ...styles.button, ...styles.primary, ...p.evidence?.stale === true
|
|
1048
|
-
disabled: p.evidence?.stale === true
|
|
1020
|
+
style: { ...styles.button, ...styles.primary, ...p.evidence?.stale === true ? { opacity: 0.5, cursor: "not-allowed" } : null },
|
|
1021
|
+
disabled: p.evidence?.stale === true,
|
|
1049
1022
|
onClick: confirmClick,
|
|
1050
1023
|
children: t("applyChanges")
|
|
1051
1024
|
}
|
|
@@ -1295,7 +1268,6 @@ function CopilotSection({ t = (key) => DICTS.en[key] ?? key }) {
|
|
|
1295
1268
|
{
|
|
1296
1269
|
t,
|
|
1297
1270
|
flow,
|
|
1298
|
-
materializing: flow.materializing === true,
|
|
1299
1271
|
onSelect: (selectedIds) => drive({ type: "select", selectedIds }),
|
|
1300
1272
|
onConfirm: (opts) => drive({ type: "confirm", ...opts }),
|
|
1301
1273
|
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.17",
|
|
4
|
+
"description": "为内置 Copilot 提供方补设备码登录设置页,预置开箱路由;凭据入内置凭据库,模型目录兜底不覆盖定制。v1.2.17:保留模型逐项列出(弱化色),预览终态可审计。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",
|