@smart-cloud/ai-kit-ui 1.1.6 → 1.1.7
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/dist/index.cjs +9 -9
- package/dist/index.js +9 -9
- package/package.json +1 -1
- package/src/ShadowBoundary.tsx +1 -3
package/package.json
CHANGED
package/src/ShadowBoundary.tsx
CHANGED
|
@@ -108,7 +108,6 @@ export function ShadowBoundary({
|
|
|
108
108
|
children,
|
|
109
109
|
rootElementId,
|
|
110
110
|
mode = "local",
|
|
111
|
-
variation = "default",
|
|
112
111
|
overlayRootId = "ai-kit-overlay-root",
|
|
113
112
|
}: ShadowBoundaryProps) {
|
|
114
113
|
const hostRef = useRef<HTMLDivElement | null>(null);
|
|
@@ -147,6 +146,7 @@ export function ShadowBoundary({
|
|
|
147
146
|
overlayHost.style.inset = "0";
|
|
148
147
|
overlayHost.style.width = "0";
|
|
149
148
|
overlayHost.style.height = "0";
|
|
149
|
+
overlayHost.style.zIndex = "2147483647"; // max z-index
|
|
150
150
|
overlayHost.style.pointerEvents = "none";
|
|
151
151
|
|
|
152
152
|
doc.body.appendChild(overlayHost);
|
|
@@ -255,8 +255,6 @@ export function ShadowBoundary({
|
|
|
255
255
|
outline: "none",
|
|
256
256
|
boxShadow: "none",
|
|
257
257
|
backgroundColor: "transparent",
|
|
258
|
-
zIndex:
|
|
259
|
-
variation === "modal" ? "var(--ai-kit-position-z-index)" : "auto",
|
|
260
258
|
}}
|
|
261
259
|
>
|
|
262
260
|
{portalTarget && shadowRoot && emotionCache
|