@smart-cloud/ai-kit-ui 1.1.5 → 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 +2 -6
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,8 @@ 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
|
+
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
|
|