@smart-cloud/ai-kit-ui 1.1.5 → 1.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-cloud/ai-kit-ui",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -147,6 +147,7 @@ export function ShadowBoundary({
147
147
  overlayHost.style.inset = "0";
148
148
  overlayHost.style.width = "0";
149
149
  overlayHost.style.height = "0";
150
+ overlayHost.style.pointerEvents = "none";
150
151
 
151
152
  doc.body.appendChild(overlayHost);
152
153
  }
@@ -155,11 +156,6 @@ export function ShadowBoundary({
155
156
  host = hostRef.current;
156
157
  }
157
158
 
158
- if (variation === "modal") {
159
- host.style.zIndex = "2147483647"; // max z-index
160
- host.style.pointerEvents = "none";
161
- }
162
-
163
159
  // 2) Ensure shadow root
164
160
  const shadow = host.shadowRoot ?? host.attachShadow({ mode: "open" });
165
161
 
@@ -259,6 +255,8 @@ export function ShadowBoundary({
259
255
  outline: "none",
260
256
  boxShadow: "none",
261
257
  backgroundColor: "transparent",
258
+ zIndex:
259
+ variation === "modal" ? "var(--ai-kit-position-z-index)" : "auto",
262
260
  }}
263
261
  >
264
262
  {portalTarget && shadowRoot && emotionCache