@michengai/dsh-im-connect 1.0.37 → 1.0.38
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 +7 -0
- package/CHANGELOG.zh-CN.md +7 -0
- package/client.js +26 -21
- package/lib/client.js +26 -21
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.38] - 2026-11-13
|
|
4
|
+
|
|
5
|
+
### Settings UI Standardization
|
|
6
|
+
|
|
7
|
+
- Unified settings header card: wrapped the header in an elevated card container for seamless visual consistency across settings.
|
|
8
|
+
- Native button and icon styling: updated the issue feedback action to use the host's native pen icon and outline button primitive.
|
|
9
|
+
|
|
3
10
|
## [1.0.37] - 2026-11-12
|
|
4
11
|
|
|
5
12
|
### Compatibility & Dependencies
|
package/CHANGELOG.zh-CN.md
CHANGED
package/client.js
CHANGED
|
@@ -44,6 +44,7 @@ window.__ModuleLoader__.load({
|
|
|
44
44
|
const IconChevronRightOutline = pickHostIcon("IconChevronRightOutlineRegular");
|
|
45
45
|
const IconPlusOutline = pickHostIcon("IconPlusOutlineRegular");
|
|
46
46
|
const IconEditOutline = pickHostIcon("IconEditOutlineRegular");
|
|
47
|
+
const IconListPenOutline = pickHostIcon("IconListPenOutlineMedium", "IconListPenOutlineRegular", "IconListPenOutline", "IconEditOutlineRegular", "IconEditOutline");
|
|
47
48
|
const IconLoadingOutline = pickHostIcon("IconLoadingOutlineRegular");
|
|
48
49
|
function alertIcon(type) {
|
|
49
50
|
if (type === "success") return h(IconCheckCircleOutline, { size: 14 });
|
|
@@ -3023,7 +3024,9 @@ window.__ModuleLoader__.load({
|
|
|
3023
3024
|
const CSS = `
|
|
3024
3025
|
.ima-page,.ima-account-modal,.ima-bind-modal,.ima-inspector{--ima-text:var(--dsw-alias-label-primary,var(--dsh-text,#e6edf3));--ima-muted:var(--dsw-alias-label-tertiary,var(--dsh-text-muted,#8b949e));--ima-line:var(--dsw-alias-border-l2,var(--dsh-border,rgba(255,255,255,.1)));--ima-card:var(--dsw-alias-bg-layer-2,rgba(255,255,255,.04));--ima-card-hover:var(--dsw-alias-interactive-bg-hover,rgba(255,255,255,.06));--ima-ok:var(--dsw-alias-state-success-primary,#3fb950);--ima-warning:var(--dsw-alias-state-warning-primary,#d29922);--ima-danger:var(--dsw-alias-state-error-primary,#f85149);--ima-accent:var(--dsw-alias-brand-primary,#4b7cff)}
|
|
3025
3026
|
.ima-page{box-sizing:border-box;max-width:none;width:100%;margin:0;padding:0 0 32px;color:var(--ima-text)}
|
|
3026
|
-
.ima-
|
|
3027
|
+
.ima-section-card{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;padding:18px 20px;background:var(--dsw-alias-bg-layer-2,#18181b);border:1px solid var(--dsw-alias-border-l1,rgba(255,255,255,0.08));border-radius:12px;margin-bottom:16px}
|
|
3028
|
+
body:not([data-ds-dark-theme]) .ima-section-card{background:var(--dsw-alias-bg-layer-2,#ffffff);border-color:var(--dsw-alias-border-l1,rgba(0,0,0,0.08))}
|
|
3029
|
+
.ima-head{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-bottom:0}
|
|
3027
3030
|
.ima-heading h2,.ima-title{margin:0;font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.4px;white-space:nowrap;text-align:left}
|
|
3028
3031
|
.ima-title-row{display:flex;align-items:center;gap:8px 12px;min-width:0;flex-wrap:wrap}
|
|
3029
3032
|
.ima-title-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
|
|
@@ -4949,28 +4952,30 @@ window.__ModuleLoader__.load({
|
|
|
4949
4952
|
const selectedAccount = allAccounts.find((item) => item.id === settingsAccount);
|
|
4950
4953
|
|
|
4951
4954
|
return h("section", { className: "ima-page ima-account-page", "aria-label": t("settings.aria") },
|
|
4952
|
-
h("
|
|
4953
|
-
h("
|
|
4954
|
-
h("div", { className: "ima-
|
|
4955
|
-
h("
|
|
4956
|
-
|
|
4957
|
-
h(
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4955
|
+
h("div", { className: "ima-section-card" },
|
|
4956
|
+
h("header", { className: "ima-head" },
|
|
4957
|
+
h("div", { className: "ima-heading" },
|
|
4958
|
+
h("div", { className: "ima-title-row" },
|
|
4959
|
+
h("h2", { className: "ima-title" }, t("settings.title")),
|
|
4960
|
+
h("div", { className: "ima-title-links" },
|
|
4961
|
+
h(PrimitiveButton, {
|
|
4962
|
+
variant: "outline",
|
|
4963
|
+
size: "sm",
|
|
4964
|
+
"aria-label": t("settings.viewProject"),
|
|
4965
|
+
icon: h(GithubMark16),
|
|
4966
|
+
onClick: () => { window.open("https://github.com/MichengAI/dsh-im-connect", "_blank", "noreferrer"); }
|
|
4967
|
+
}, t("settings.viewProject")),
|
|
4968
|
+
h(PrimitiveButton, {
|
|
4969
|
+
variant: "outline",
|
|
4970
|
+
size: "sm",
|
|
4971
|
+
"aria-label": t("settings.feedback"),
|
|
4972
|
+
icon: h(IconListPenOutline, { size: 14 }),
|
|
4973
|
+
onClick: () => { window.open("https://github.com/MichengAI/dsh-im-connect/issues", "_blank", "noreferrer"); }
|
|
4974
|
+
}, t("settings.feedback")),
|
|
4975
|
+
),
|
|
4971
4976
|
),
|
|
4977
|
+
h("p", { className: "ima-sub" }, t("settings.description")),
|
|
4972
4978
|
),
|
|
4973
|
-
h("p", { className: "ima-sub" }, t("settings.description")),
|
|
4974
4979
|
),
|
|
4975
4980
|
),
|
|
4976
4981
|
error && h(NoticeBar, { type: "error", className: "ima-error" }, error),
|
package/lib/client.js
CHANGED
|
@@ -90,6 +90,7 @@ function resolveApiUrl(path) {
|
|
|
90
90
|
const IconChevronRightOutline = pickHostIcon("IconChevronRightOutlineRegular");
|
|
91
91
|
const IconPlusOutline = pickHostIcon("IconPlusOutlineRegular");
|
|
92
92
|
const IconEditOutline = pickHostIcon("IconEditOutlineRegular");
|
|
93
|
+
const IconListPenOutline = pickHostIcon("IconListPenOutlineMedium", "IconListPenOutlineRegular", "IconListPenOutline", "IconEditOutlineRegular", "IconEditOutline");
|
|
93
94
|
const IconLoadingOutline = pickHostIcon("IconLoadingOutlineRegular");
|
|
94
95
|
function alertIcon(type) {
|
|
95
96
|
if (type === "success") return h(IconCheckCircleOutline, { size: 14 });
|
|
@@ -3069,7 +3070,9 @@ function resolveApiUrl(path) {
|
|
|
3069
3070
|
const CSS = `
|
|
3070
3071
|
.ima-page,.ima-account-modal,.ima-bind-modal,.ima-inspector{--ima-text:var(--dsw-alias-label-primary,var(--dsh-text,#e6edf3));--ima-muted:var(--dsw-alias-label-tertiary,var(--dsh-text-muted,#8b949e));--ima-line:var(--dsw-alias-border-l2,var(--dsh-border,rgba(255,255,255,.1)));--ima-card:var(--dsw-alias-bg-layer-2,rgba(255,255,255,.04));--ima-card-hover:var(--dsw-alias-interactive-bg-hover,rgba(255,255,255,.06));--ima-ok:var(--dsw-alias-state-success-primary,#3fb950);--ima-warning:var(--dsw-alias-state-warning-primary,#d29922);--ima-danger:var(--dsw-alias-state-error-primary,#f85149);--ima-accent:var(--dsw-alias-brand-primary,#4b7cff)}
|
|
3071
3072
|
.ima-page{box-sizing:border-box;max-width:none;width:100%;margin:0;padding:0 0 32px;color:var(--ima-text)}
|
|
3072
|
-
.ima-
|
|
3073
|
+
.ima-section-card{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;padding:18px 20px;background:var(--dsw-alias-bg-layer-2,#18181b);border:1px solid var(--dsw-alias-border-l1,rgba(255,255,255,0.08));border-radius:12px;margin-bottom:16px}
|
|
3074
|
+
body:not([data-ds-dark-theme]) .ima-section-card{background:var(--dsw-alias-bg-layer-2,#ffffff);border-color:var(--dsw-alias-border-l1,rgba(0,0,0,0.08))}
|
|
3075
|
+
.ima-head{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-bottom:0}
|
|
3073
3076
|
.ima-heading h2,.ima-title{margin:0;font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.4px;white-space:nowrap;text-align:left}
|
|
3074
3077
|
.ima-title-row{display:flex;align-items:center;gap:8px 12px;min-width:0;flex-wrap:wrap}
|
|
3075
3078
|
.ima-title-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
|
|
@@ -4995,28 +4998,30 @@ function resolveApiUrl(path) {
|
|
|
4995
4998
|
const selectedAccount = allAccounts.find((item) => item.id === settingsAccount);
|
|
4996
4999
|
|
|
4997
5000
|
return h("section", { className: "ima-page ima-account-page", "aria-label": t("settings.aria") },
|
|
4998
|
-
h("
|
|
4999
|
-
h("
|
|
5000
|
-
h("div", { className: "ima-
|
|
5001
|
-
h("
|
|
5002
|
-
|
|
5003
|
-
h(
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5001
|
+
h("div", { className: "ima-section-card" },
|
|
5002
|
+
h("header", { className: "ima-head" },
|
|
5003
|
+
h("div", { className: "ima-heading" },
|
|
5004
|
+
h("div", { className: "ima-title-row" },
|
|
5005
|
+
h("h2", { className: "ima-title" }, t("settings.title")),
|
|
5006
|
+
h("div", { className: "ima-title-links" },
|
|
5007
|
+
h(PrimitiveButton, {
|
|
5008
|
+
variant: "outline",
|
|
5009
|
+
size: "sm",
|
|
5010
|
+
"aria-label": t("settings.viewProject"),
|
|
5011
|
+
icon: h(GithubMark16),
|
|
5012
|
+
onClick: () => { window.open("https://github.com/MichengAI/dsh-im-connect", "_blank", "noreferrer"); }
|
|
5013
|
+
}, t("settings.viewProject")),
|
|
5014
|
+
h(PrimitiveButton, {
|
|
5015
|
+
variant: "outline",
|
|
5016
|
+
size: "sm",
|
|
5017
|
+
"aria-label": t("settings.feedback"),
|
|
5018
|
+
icon: h(IconListPenOutline, { size: 14 }),
|
|
5019
|
+
onClick: () => { window.open("https://github.com/MichengAI/dsh-im-connect/issues", "_blank", "noreferrer"); }
|
|
5020
|
+
}, t("settings.feedback")),
|
|
5021
|
+
),
|
|
5017
5022
|
),
|
|
5023
|
+
h("p", { className: "ima-sub" }, t("settings.description")),
|
|
5018
5024
|
),
|
|
5019
|
-
h("p", { className: "ima-sub" }, t("settings.description")),
|
|
5020
5025
|
),
|
|
5021
5026
|
),
|
|
5022
5027
|
error && h(NoticeBar, { type: "error", className: "ima-error" }, error),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michengai/dsh-im-connect",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.38",
|
|
4
4
|
"description": "DSH IM Connect — 将主流即时通讯平台接入本机 DeepSeek Harness · Connect major messaging platforms to local DeepSeek Harness agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@11.22.0",
|