@smart-cloud/ai-kit-ui 1.5.6 → 1.5.8
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/ShadowBoundary.d.ts +3 -1
- package/dist/index.cjs +9 -9
- package/dist/index.js +9 -9
- package/dist/withAiKitShell.d.ts +8 -1
- package/package.json +2 -2
- package/src/ShadowBoundary.tsx +4 -0
- package/src/ai-chatbot/AiChatbot.tsx +1 -0
- package/src/ai-feature/AiFeature.tsx +5 -1
- package/src/doc-search/DocSearch.tsx +5 -1
- package/src/withAiKitShell.tsx +50 -17
package/dist/ShadowBoundary.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export type ShadowBoundaryProps = {
|
|
|
19
19
|
*/
|
|
20
20
|
overlayRootId?: string;
|
|
21
21
|
setHost: React.Dispatch<SetStateAction<HTMLElement | null>>;
|
|
22
|
+
/** Optional notification for consumers that need a distinct modal portal. */
|
|
23
|
+
setRootElement?: React.Dispatch<SetStateAction<HTMLDivElement | null>>;
|
|
22
24
|
children: (api: {
|
|
23
25
|
/** Portal target element inside the shadow root. */
|
|
24
26
|
rootElement: HTMLDivElement;
|
|
@@ -26,4 +28,4 @@ export type ShadowBoundaryProps = {
|
|
|
26
28
|
shadowRoot: ShadowRoot;
|
|
27
29
|
}) => React.ReactNode;
|
|
28
30
|
};
|
|
29
|
-
export declare function ShadowBoundary({ stylesheets, children, rootElementId, mode, overlayRootId, setHost, }: ShadowBoundaryProps): import("react").JSX.Element;
|
|
31
|
+
export declare function ShadowBoundary({ stylesheets, children, rootElementId, mode, overlayRootId, setHost, setRootElement, }: ShadowBoundaryProps): import("react").JSX.Element;
|