@michengai/dsh-im-connect 0.1.11 → 0.1.12

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/client.js CHANGED
@@ -546,7 +546,7 @@ window.__ModuleLoader__.load({
546
546
  return () => window.removeEventListener("keydown", onKey, true);
547
547
  }, [props.open, props.onCancel]);
548
548
  if (!props.open) return null;
549
- return h("div", {
549
+ return ReactDOM.createPortal(h("div", {
550
550
  className: "ima-mask",
551
551
  role: "presentation",
552
552
  onMouseDown: (event) => event.stopPropagation(),
@@ -579,7 +579,7 @@ window.__ModuleLoader__.load({
579
579
  h("button", { className: "ima-btn", onClick: props.onCancel }, "取消"),
580
580
  h("button", { className: "ima-btn primary", disabled: !props.acknowledged, onClick: props.onConfirm }, "启用 完全访问"),
581
581
  ),
582
- ));
582
+ )), document.body);
583
583
  }
584
584
 
585
585
  function ComposerBar(props) {
@@ -1816,6 +1816,3 @@ window.__ModuleLoader__.load({
1816
1816
 
1817
1817
 
1818
1818
 
1819
-
1820
-
1821
-
package/lib/client.js CHANGED
@@ -546,7 +546,7 @@ window.__ModuleLoader__.load({
546
546
  return () => window.removeEventListener("keydown", onKey, true);
547
547
  }, [props.open, props.onCancel]);
548
548
  if (!props.open) return null;
549
- return h("div", {
549
+ return ReactDOM.createPortal(h("div", {
550
550
  className: "ima-mask",
551
551
  role: "presentation",
552
552
  onMouseDown: (event) => event.stopPropagation(),
@@ -579,7 +579,7 @@ window.__ModuleLoader__.load({
579
579
  h("button", { className: "ima-btn", onClick: props.onCancel }, "取消"),
580
580
  h("button", { className: "ima-btn primary", disabled: !props.acknowledged, onClick: props.onConfirm }, "启用 完全访问"),
581
581
  ),
582
- ));
582
+ )), document.body);
583
583
  }
584
584
 
585
585
  function ComposerBar(props) {
@@ -1816,6 +1816,3 @@ window.__ModuleLoader__.load({
1816
1816
 
1817
1817
 
1818
1818
 
1819
-
1820
-
1821
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-im-connect",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "DeepSeek Harness IM 助理:把本机 agent 接到微信、企微、钉钉、飞书、QQ、Telegram,会话与网页任务分列。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",