@smart-cloud/ai-kit-ui 1.5.6 → 1.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-cloud/ai-kit-ui",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "@emotion/cache": "^11.14.0",
23
23
  "@emotion/react": "^11.14.0",
24
24
  "@mantine/colors-generator": "^8.3.18",
25
- "@smart-cloud/ai-kit-core": "^1.5.3",
25
+ "@smart-cloud/ai-kit-core": "^1.5.4",
26
26
  "@smart-cloud/wpsuite-core": "^2.3.2",
27
27
  "@tabler/icons-react": "^3.46.0",
28
28
  "chroma-js": "^3.2.0",
@@ -49,7 +49,6 @@ export function withAiKitShell<P extends object>(
49
49
  const {
50
50
  store,
51
51
  variation,
52
- showOpenButton,
53
52
  colors,
54
53
  colorMode,
55
54
  primaryColor,
@@ -257,15 +256,16 @@ export function withAiKitShell<P extends object>(
257
256
 
258
257
  return (
259
258
  <ShadowBoundary
260
- mode={variation === "modal" && !showOpenButton ? "overlay" : "local"}
259
+ // A header button still opens a viewport modal. Mount every modal in
260
+ // the singleton top-level overlay so a sticky/mobile header cannot
261
+ // clip its backdrop to header height.
262
+ mode={variation === "modal" ? "overlay" : "local"}
261
263
  variation={variation}
262
264
  overlayRootId="ai-kit-overlay-root"
263
265
  stylesheets={stylesheets}
264
266
  setHost={setHost}
265
267
  rootElementId={
266
- variation === "modal" && !showOpenButton
267
- ? "ai-kit-portal-root"
268
- : "ai-kit-inline-root"
268
+ variation === "modal" ? "ai-kit-portal-root" : "ai-kit-inline-root"
269
269
  }
270
270
  >
271
271
  {({ rootElement }) => {