@michengai/dsh-im-connect 1.0.6 → 1.0.8

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
@@ -1,9 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.8 - 2026-10-19
4
+
5
+ - Let the account settings page fill the host content column by removing the 1080px cap.
6
+ - Only decorate settings nav buttons that render the host `svg` as a direct child, so wrapped icons keep the host layout.
7
+
8
+ ## 1.0.7 - 2026-10-19
9
+
10
+ - Fix the Add account / Account settings dialog not scrolling when its content is taller than the window: once the dialog is capped to the viewport, the content area scrolls normally with the wheel or a trackpad, keeping the QR code and the Cancel / Confirm buttons reachable (Issue #40).
11
+
3
12
  ## 1.0.6 - 2026-10-19
4
13
 
5
- - Fix bind modal tab accessibility and layout: dual-method channels keep both tabpanels mounted with `hidden`, single-method channels no longer emit dangling `aria-labelledby`; align the segmented indicator with the 2px inset.
6
- - Render the IM settings nav icon through a generic CSS mask span instead of rewriting the host `svg`, avoiding conflicts with third-party skin icon detection/hiding engines such as orca-link.
14
+ - Fix the "IM Assistant" icon in Settings disappearing when a third-party skin is enabled; the icon now follows the host theme and layout.
15
+ - Improve the Quick setup / Manual setup switch in the bind dialog: screen readers now identify both setup panels correctly, channels with only one setup method no longer present a misleading tab control, and the selection indicator aligns with the labels.
7
16
 
8
17
  ## 1.0.5 - 2026-10-19
9
18
 
@@ -4,10 +4,19 @@
4
4
 
5
5
  以下记录近期发布的版本。Git 标签与 GitHub Release 现已和这些条目同步;历史条目继续保留原始发布提交链接。
6
6
 
7
+ ## 1.0.8 - 2026-10-19
8
+
9
+ - 账号设置页占满宿主内容区,移除 1080px 宽度上限。
10
+ - 设置导航图标只处理宿主直接渲染在按钮里的 svg;包裹型图标不再注入,避免打乱宿主布局。
11
+
12
+ ## 1.0.7 - 2026-10-19
13
+
14
+ - 修复「添加账号 / 账号设置」弹窗内容超出窗口高度时无法滚动的问题:弹窗高度受视口限制后,内容区可以正常用滚轮或滑动手动滚动,底部的二维码和取消 / 确定按钮保持可见(Issue #40)。
15
+
7
16
  ## 1.0.6 - 2026-10-19
8
17
 
9
- - 修复绑定弹窗页签的可访问性与布局:双方法渠道常驻两个 `tabpanel` 并用 `hidden` 切换,单方法渠道不再输出悬空的 `aria-labelledby`;页签指示条按 2px 内边距精确对齐。
10
- - 设置页 IM 导航图标改为通用 CSS mask 注入,不再改写宿主 `svg` 内容,避免与 orca-link 等第三方皮肤的图标识别/隐藏机制冲突。
18
+ - 修复设置页「IM 助理」图标在启用第三方皮肤时消失的问题,图标现在会跟随宿主主题与布局正常显示。
19
+ - 优化绑定弹窗的「快捷绑定 / 手动配置」切换:读屏可正确识别两个配置面板,仅支持一种绑定方式的渠道不再向读屏暴露误导性的页签控件,选中指示条与文字对齐更准确。
11
20
 
12
21
  ## 1.0.5 - 2026-10-19
13
22
 
package/client.js CHANGED
@@ -159,7 +159,7 @@ window.__ModuleLoader__.load({
159
159
  }, label);
160
160
  }
161
161
  function Modal(props) {
162
- const { open, title, onCancel, onOk, okText, cancelText, okButtonProps, confirmLoading, width = 640, zIndex = 1100, children, footer, className, keyboard, maskClosable, closeLabel, description } = props;
162
+ const { open, title, onCancel, onOk, okText, cancelText, okButtonProps, confirmLoading, width = 640, zIndex = 1100, children, footer, className, contentClassName, keyboard, maskClosable, closeLabel, description } = props;
163
163
  const requestClose = onCancel || props.onClose;
164
164
  const closeRef = useRef(requestClose);
165
165
  closeRef.current = requestClose;
@@ -203,6 +203,8 @@ window.__ModuleLoader__.load({
203
203
  onClose: handleClose,
204
204
  closeLabel: closeLabel || "Close",
205
205
  className,
206
+ // 宿主 Modal 把内容区裁在视口内;标记 content 区,让它在超长时滚动。
207
+ contentClassName: ["ima-modal-content", contentClassName].filter(Boolean).join(" "),
206
208
  footer: footerNode,
207
209
  ...hostDescription,
208
210
  }, children);
@@ -986,7 +988,7 @@ window.__ModuleLoader__.load({
986
988
  .ima-modal-footer-wrap{display:flex;justify-content:flex-end;margin-top:12px;padding-top:16px}
987
989
  .ima-inspector-actions>button{flex:none;white-space:nowrap}
988
990
  .ima-confirm-content{margin:8px 0 0;font-size:13px;line-height:22px;color:var(--dsw-alias-label-secondary,#b9b9b9)}
989
- .ima-page.ima-account-page{container-type:inline-size;min-width:0;max-width:1080px;width:100%;margin:0 auto;padding:0 0 32px}
991
+ .ima-page.ima-account-page{container-type:inline-size;min-width:0;width:100%;padding:0 0 32px}
990
992
  .ima-account-shell,.ima-account-shell *{box-sizing:border-box}
991
993
  .ima-account-shell{display:block;min-height:0;border:0;border-radius:0;overflow:visible;background:transparent}
992
994
  .ima-platforms{display:flex;flex-direction:column;gap:12px;padding:0;border:0;background:transparent;min-width:0}
@@ -1012,7 +1014,10 @@ window.__ModuleLoader__.load({
1012
1014
  .ima-diagnostic-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ima-inspector-title-row .ima-tag{margin-inline-end:0}.ima-bind-modal .ima-feedback{margin-bottom:12px}.ima-connection-check{display:grid;gap:6px;padding:12px;border:1px solid var(--ima-line);border-radius:8px;font-size:12px;line-height:1.6;overflow-wrap:anywhere;color:var(--ima-muted)}.ima-connection-check strong{color:var(--ima-text)}.ima-diagnostic-item{padding:8px 0;border-top:1px solid var(--ima-line)}
1013
1015
  .ima-inspector-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin-top:16px!important;padding-top:16px!important;padding-bottom:4px!important}
1014
1016
  .ima-account-modal .ima-inspector{padding:0 0 16px 0}
1015
- .ima-bind-modal,.ima-account-modal{width:min(720px,100%) !important;max-height:100%}
1017
+ .ima-bind-modal,.ima-account-modal{width:min(720px,100%) !important;max-height:100%;min-height:0}
1018
+ /* 宿主 Modal 只把 dialog 限制在视口内,内容区默认不滚动,长内容会被裁掉;
1019
+ 把宿主的 content 区设为滚动容器,footer 保持在容器外可见。 */
1020
+ .ima-bind-modal>.ima-modal-content,.ima-account-modal>.ima-modal-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
1016
1021
  .ima-account-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;width:100%;box-sizing:border-box}
1017
1022
  .ima-account-settings.compact{grid-template-columns:1fr}
1018
1023
  .ima-picker-field{display:flex;min-width:0;width:100%;flex-direction:column;gap:6px;box-sizing:border-box}
@@ -3802,7 +3807,7 @@ window.__ModuleLoader__.load({
3802
3807
 
3803
3808
  function applySettingsNavIcon(button, wantedLabel) {
3804
3809
  if (!isOwnNavRow(button.textContent, wantedLabel())) return false;
3805
- if (!button.querySelector("svg")) return false;
3810
+ if (!button.querySelector(":scope > svg")) return false;
3806
3811
  if (button.getAttribute(NAV_ICON_MARKER) === "assistant" && button.querySelector(`.${NAV_ICON_CLASS}`)) return false;
3807
3812
  button.setAttribute(NAV_ICON_MARKER, "assistant");
3808
3813
  let icon = button.querySelector(`.${NAV_ICON_CLASS}`);
package/lib/client.js CHANGED
@@ -480,7 +480,7 @@ function observePluginUpdate(options) {
480
480
  }, label);
481
481
  }
482
482
  function Modal(props) {
483
- const { open, title, onCancel, onOk, okText, cancelText, okButtonProps, confirmLoading, width = 640, zIndex = 1100, children, footer, className, keyboard, maskClosable, closeLabel, description } = props;
483
+ const { open, title, onCancel, onOk, okText, cancelText, okButtonProps, confirmLoading, width = 640, zIndex = 1100, children, footer, className, contentClassName, keyboard, maskClosable, closeLabel, description } = props;
484
484
  const requestClose = onCancel || props.onClose;
485
485
  const closeRef = useRef(requestClose);
486
486
  closeRef.current = requestClose;
@@ -524,6 +524,8 @@ function observePluginUpdate(options) {
524
524
  onClose: handleClose,
525
525
  closeLabel: closeLabel || "Close",
526
526
  className,
527
+ // 宿主 Modal 把内容区裁在视口内;标记 content 区,让它在超长时滚动。
528
+ contentClassName: ["ima-modal-content", contentClassName].filter(Boolean).join(" "),
527
529
  footer: footerNode,
528
530
  ...hostDescription,
529
531
  }, children);
@@ -1307,7 +1309,7 @@ function observePluginUpdate(options) {
1307
1309
  .ima-modal-footer-wrap{display:flex;justify-content:flex-end;margin-top:12px;padding-top:16px}
1308
1310
  .ima-inspector-actions>button{flex:none;white-space:nowrap}
1309
1311
  .ima-confirm-content{margin:8px 0 0;font-size:13px;line-height:22px;color:var(--dsw-alias-label-secondary,#b9b9b9)}
1310
- .ima-page.ima-account-page{container-type:inline-size;min-width:0;max-width:1080px;width:100%;margin:0 auto;padding:0 0 32px}
1312
+ .ima-page.ima-account-page{container-type:inline-size;min-width:0;width:100%;padding:0 0 32px}
1311
1313
  .ima-account-shell,.ima-account-shell *{box-sizing:border-box}
1312
1314
  .ima-account-shell{display:block;min-height:0;border:0;border-radius:0;overflow:visible;background:transparent}
1313
1315
  .ima-platforms{display:flex;flex-direction:column;gap:12px;padding:0;border:0;background:transparent;min-width:0}
@@ -1333,7 +1335,10 @@ function observePluginUpdate(options) {
1333
1335
  .ima-diagnostic-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ima-inspector-title-row .ima-tag{margin-inline-end:0}.ima-bind-modal .ima-feedback{margin-bottom:12px}.ima-connection-check{display:grid;gap:6px;padding:12px;border:1px solid var(--ima-line);border-radius:8px;font-size:12px;line-height:1.6;overflow-wrap:anywhere;color:var(--ima-muted)}.ima-connection-check strong{color:var(--ima-text)}.ima-diagnostic-item{padding:8px 0;border-top:1px solid var(--ima-line)}
1334
1336
  .ima-inspector-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin-top:16px!important;padding-top:16px!important;padding-bottom:4px!important}
1335
1337
  .ima-account-modal .ima-inspector{padding:0 0 16px 0}
1336
- .ima-bind-modal,.ima-account-modal{width:min(720px,100%) !important;max-height:100%}
1338
+ .ima-bind-modal,.ima-account-modal{width:min(720px,100%) !important;max-height:100%;min-height:0}
1339
+ /* 宿主 Modal 只把 dialog 限制在视口内,内容区默认不滚动,长内容会被裁掉;
1340
+ 把宿主的 content 区设为滚动容器,footer 保持在容器外可见。 */
1341
+ .ima-bind-modal>.ima-modal-content,.ima-account-modal>.ima-modal-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
1337
1342
  .ima-account-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;width:100%;box-sizing:border-box}
1338
1343
  .ima-account-settings.compact{grid-template-columns:1fr}
1339
1344
  .ima-picker-field{display:flex;min-width:0;width:100%;flex-direction:column;gap:6px;box-sizing:border-box}
@@ -4123,7 +4128,7 @@ function observePluginUpdate(options) {
4123
4128
 
4124
4129
  function applySettingsNavIcon(button, wantedLabel) {
4125
4130
  if (!isOwnNavRow(button.textContent, wantedLabel())) return false;
4126
- if (!button.querySelector("svg")) return false;
4131
+ if (!button.querySelector(":scope > svg")) return false;
4127
4132
  if (button.getAttribute(NAV_ICON_MARKER) === "assistant" && button.querySelector(`.${NAV_ICON_CLASS}`)) return false;
4128
4133
  button.setAttribute(NAV_ICON_MARKER, "assistant");
4129
4134
  let icon = button.querySelector(`.${NAV_ICON_CLASS}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-im-connect",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
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",