@smart-cloud/ai-kit-ui 1.5.29 → 1.5.30

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.
Files changed (50) hide show
  1. package/dist/index.cjs +8 -8
  2. package/dist/index.js +8 -8
  3. package/package.json +1 -1
  4. package/dist/LocaleDirectionProvider.d.ts +0 -5
  5. package/dist/ShadowBoundary.d.ts +0 -31
  6. package/dist/ai-chatbot/AiChatbot.d.ts +0 -18
  7. package/dist/ai-chatbot/attachmentStorage.d.ts +0 -19
  8. package/dist/ai-chatbot/chatStream.d.ts +0 -93
  9. package/dist/ai-chatbot/citations.d.ts +0 -15
  10. package/dist/ai-chatbot/index.d.ts +0 -1
  11. package/dist/ai-chatbot/welcome.d.ts +0 -4
  12. package/dist/ai-feature/AiFeature.d.ts +0 -29
  13. package/dist/ai-feature/AiFeatureBorder.d.ts +0 -5
  14. package/dist/ai-feature/ProofreadDiff.d.ts +0 -13
  15. package/dist/ai-feature/index.d.ts +0 -2
  16. package/dist/ai-feature/utils.d.ts +0 -1
  17. package/dist/doc-search/DocSearch.d.ts +0 -22
  18. package/dist/doc-search/index.d.ts +0 -1
  19. package/dist/doc-search/initialFilters.d.ts +0 -1
  20. package/dist/doc-search/localizedOptions.d.ts +0 -6
  21. package/dist/errorHandling.d.ts +0 -24
  22. package/dist/i18n/ar.d.ts +0 -1
  23. package/dist/i18n/de.d.ts +0 -1
  24. package/dist/i18n/en.d.ts +0 -1
  25. package/dist/i18n/es.d.ts +0 -1
  26. package/dist/i18n/fr.d.ts +0 -1
  27. package/dist/i18n/he.d.ts +0 -1
  28. package/dist/i18n/hi.d.ts +0 -1
  29. package/dist/i18n/hu.d.ts +0 -1
  30. package/dist/i18n/id.d.ts +0 -1
  31. package/dist/i18n/index.d.ts +0 -1
  32. package/dist/i18n/it.d.ts +0 -1
  33. package/dist/i18n/ja.d.ts +0 -1
  34. package/dist/i18n/ko.d.ts +0 -1
  35. package/dist/i18n/nb.d.ts +0 -1
  36. package/dist/i18n/nl.d.ts +0 -1
  37. package/dist/i18n/pl.d.ts +0 -1
  38. package/dist/i18n/pt.d.ts +0 -1
  39. package/dist/i18n/ru.d.ts +0 -1
  40. package/dist/i18n/sv.d.ts +0 -1
  41. package/dist/i18n/th.d.ts +0 -1
  42. package/dist/i18n/tr.d.ts +0 -1
  43. package/dist/i18n/ua.d.ts +0 -1
  44. package/dist/i18n/zh.d.ts +0 -1
  45. package/dist/index.d.ts +0 -7
  46. package/dist/locale.d.ts +0 -13
  47. package/dist/poweredBy.d.ts +0 -4
  48. package/dist/shared/citation-display.d.ts +0 -4
  49. package/dist/useAiRun.d.ts +0 -40
  50. package/dist/withAiKitShell.d.ts +0 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-cloud/ai-kit-ui",
3
- "version": "1.5.29",
3
+ "version": "1.5.30",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -1,5 +0,0 @@
1
- import { type PropsWithChildren } from "react";
2
- /** Controlled per-root direction: never reads or changes documentElement.dir. */
3
- export declare function LocaleDirectionProvider({ initialDirection, children }: PropsWithChildren<{
4
- initialDirection?: "ltr" | "rtl";
5
- }>): import("react").JSX.Element;
@@ -1,31 +0,0 @@
1
- import { SetStateAction } from "react";
2
- export type ShadowBoundaryMode = "local" | "overlay";
3
- export type ShadowBoundaryProps = {
4
- /** Stylesheets to inject into the shadow root (as <link rel="stylesheet">). */
5
- stylesheets: string[];
6
- /** ID of the element inside the shadow root used as the portal target. */
7
- rootElementId: string;
8
- /** Variation of the shadow boundary behavior. */
9
- variation?: "default" | "modal";
10
- /**
11
- * Where to create the shadow root:
12
- * - "local": attach shadow to this component's host element (keeps layout positioning).
13
- * - "overlay": attach shadow to a singleton element in top (or self) document (always on top).
14
- */
15
- mode?: ShadowBoundaryMode;
16
- /**
17
- * For mode="overlay": host id in the top (or self) document.
18
- * Same id everywhere => singleton overlay host.
19
- */
20
- overlayRootId?: string;
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>>;
24
- children: (api: {
25
- /** Portal target element inside the shadow root. */
26
- rootElement: HTMLDivElement;
27
- /** Shadow root instance. */
28
- shadowRoot: ShadowRoot;
29
- }) => React.ReactNode;
30
- };
31
- export declare function ShadowBoundary({ stylesheets, children, rootElementId, mode, overlayRootId, setHost, setRootElement, }: ShadowBoundaryProps): import("react").JSX.Element;
@@ -1,18 +0,0 @@
1
- import { type AiChatbotLabels, type HistoryStorageMode } from "@smart-cloud/ai-kit-core";
2
- import React from "react";
3
- export declare const DEFAULT_CHATBOT_LABELS: Required<AiChatbotLabels>;
4
- export declare const AiChatbot: React.FC<import("@smart-cloud/ai-kit-core").AiWorkerProps & {
5
- context?: import("@smart-cloud/ai-kit-core").ContextKind;
6
- placeholder?: string;
7
- greeting?: string;
8
- starterQuestions?: string[];
9
- maxImages?: number;
10
- maxImageBytes?: number;
11
- maxTokens?: number;
12
- previewMode?: boolean;
13
- historyStorage?: HistoryStorageMode;
14
- emptyHistoryAfterDays?: number;
15
- labels?: AiChatbotLabels;
16
- openButtonIconLayout?: import("@smart-cloud/ai-kit-core").OpenButtonIconLayout;
17
- openButtonPosition?: import("@smart-cloud/ai-kit-core").OpenButtonPosition;
18
- } & Partial<import("@smart-cloud/ai-kit-core").AiWorkerProps>>;
@@ -1,19 +0,0 @@
1
- export type StoredAttachment = {
2
- id: string;
3
- name: string;
4
- type: string;
5
- size: number;
6
- blob: Blob;
7
- createdAt: number;
8
- };
9
- export declare function persistAttachmentBlob(id: string, blob: Blob, meta: {
10
- name: string;
11
- type: string;
12
- size: number;
13
- }): Promise<string | null>;
14
- export declare function loadAttachmentBlob(id: string): Promise<StoredAttachment | null>;
15
- export declare function deleteAttachmentBlob(id: string): Promise<void>;
16
- export declare function clearAllAttachments(): Promise<void>;
17
- export declare function cleanupDanglingAttachments(validIds: Set<string>): Promise<void>;
18
- export declare function getAllAttachments(): Promise<StoredAttachment[]>;
19
- export declare function enforceStorageQuota(): Promise<void>;
@@ -1,93 +0,0 @@
1
- import { type ProcessedCitations, type PromptResult } from "@smart-cloud/ai-kit-core";
2
- export type ChatActivity = {
3
- activityId: string;
4
- kind: "knowledge_search" | "web_search" | "web_read" | "calculation" | "script" | "validation" | "thinking" | "generating_response" | "checking_sources" | "other";
5
- labelKey: string;
6
- labelParams?: Record<string, string | number>;
7
- safeDomain?: string;
8
- safeDomains?: string[];
9
- query?: string;
10
- categoryCount?: number;
11
- subcategoryCount?: number;
12
- tagCount?: number;
13
- resultCount?: number;
14
- urls?: string[];
15
- status: "running" | "completed" | "failed";
16
- };
17
- export type ChatStreamCheckpoint = {
18
- requestId: string;
19
- conversationId: string;
20
- turnId: string;
21
- lastSeq: number;
22
- assistantMessageId?: string;
23
- };
24
- export type ChatStreamView = {
25
- text: string;
26
- activities: ChatActivity[];
27
- citations: StreamCitation[];
28
- checkpoint?: ChatStreamCheckpoint;
29
- };
30
- export type StreamCitation = {
31
- citationId: string;
32
- docId?: string;
33
- chunkId?: string;
34
- title?: string;
35
- sourceUrl?: string;
36
- snippet?: string;
37
- };
38
- export type ChatStreamResult = {
39
- result: string;
40
- sessionId: string;
41
- messageId?: string;
42
- citations?: ProcessedCitations | StreamCitation[];
43
- metadata?: PromptResult["metadata"];
44
- completion: "complete" | "partial" | "truncated";
45
- };
46
- type StreamTicket = {
47
- ticket: string;
48
- expiresAt: string;
49
- sessionId: string;
50
- };
51
- export type ChatStreamOptions = {
52
- url: string;
53
- text: string;
54
- locale: string;
55
- sessionId?: string;
56
- requestId: string;
57
- resume?: ChatStreamCheckpoint;
58
- initialView?: ChatStreamView;
59
- signal: AbortSignal;
60
- onView: (view: ChatStreamView) => void;
61
- onAccepted?: (checkpoint: ChatStreamCheckpoint, sessionId: string) => void;
62
- onSession?: (sessionId: string) => void;
63
- onSocket?: (socket: WebSocket | null) => void;
64
- onTransportState?: (state: "sending" | "waiting" | "receiving" | "reconnecting") => void;
65
- /** Transport seams used by deterministic replay tests. */
66
- ticketProvider?: (sessionId: string | undefined, signal: AbortSignal) => Promise<StreamTicket>;
67
- socketFactory?: (url: string) => WebSocket;
68
- retryDelayMs?: number;
69
- };
70
- export declare class ChatStreamError extends Error {
71
- readonly code: string;
72
- readonly retryable: boolean;
73
- readonly status?: number;
74
- readonly requestId?: string;
75
- constructor(message: string, code: string, retryable?: boolean, status?: number, requestId?: string);
76
- }
77
- export declare function isToolActivity(activity: ChatActivity): boolean;
78
- /** An unnamed successful internal operation is not useful visitor-facing history. */
79
- export declare function isSummaryActivity(activity: ChatActivity): boolean;
80
- export declare function summarizeChatActivities(activities: ChatActivity[]): {
81
- knowledgeSearches: number;
82
- websites: number;
83
- otherTools: number;
84
- };
85
- /** The backend advertises streaming only when its WebSocket route is ready. */
86
- export declare function discoverChatStreamUrl(): Promise<string | undefined>;
87
- export declare function sendChatStreamCancel(socket: WebSocket | null, checkpoint: ChatStreamCheckpoint | undefined): void;
88
- /**
89
- * The ticket is single use and short lived. Reconnect requests a fresh ticket
90
- * and replays from the last acknowledged sequence, never starting a new turn.
91
- */
92
- export declare function runChatStreamTurn(options: ChatStreamOptions): Promise<ChatStreamResult>;
93
- export {};
@@ -1,15 +0,0 @@
1
- import type { ProcessedCitations } from "@smart-cloud/ai-kit-core";
2
- export type CitationLike = {
3
- url?: string;
4
- sourceUrl?: string;
5
- title?: string;
6
- description?: string;
7
- snippet?: string;
8
- };
9
- type CitationPayload = ProcessedCitations | CitationLike[] | undefined;
10
- /**
11
- * Normalize both the current structured citation response and the legacy flat
12
- * response used by older backends during rolling upgrades.
13
- */
14
- export declare function normalizeChatCitations(citations: CitationPayload): CitationLike[] | undefined;
15
- export {};
@@ -1 +0,0 @@
1
- export { AiChatbot, DEFAULT_CHATBOT_LABELS } from "./AiChatbot";
@@ -1,4 +0,0 @@
1
- export declare function resolveChatWelcome(greeting: string | undefined, starterQuestions: string[] | undefined, translate: (text: string) => string): {
2
- greeting: string;
3
- questions: string[];
4
- };
@@ -1,29 +0,0 @@
1
- import { type AiModePreference } from "@smart-cloud/ai-kit-core";
2
- import { FC } from "react";
3
- export declare const AiFeature: FC<import("@smart-cloud/ai-kit-core").AiWorkerProps & {
4
- mode: import("@smart-cloud/ai-kit-core").AiFeatureMode;
5
- context?: import("@smart-cloud/ai-kit-core").ContextKind;
6
- modeOverride?: AiModePreference;
7
- autoRun?: boolean;
8
- showLanguageSwitcher?: boolean;
9
- onDeviceTimeout?: number;
10
- editable?: boolean;
11
- acceptButtonTitle?: string;
12
- showRegenerateOnBackendButton?: boolean;
13
- optionsDisplay?: "collapse" | "horizontal" | "vertical";
14
- default?: import("@smart-cloud/ai-kit-core").AiFeatureOptions & {
15
- getText?: Promise<string> | (() => Promise<string>);
16
- image?: Blob;
17
- };
18
- allowOverride?: {
19
- text?: boolean;
20
- instructions?: boolean;
21
- tone?: boolean;
22
- length?: boolean;
23
- type?: boolean;
24
- outputLanguage?: boolean;
25
- outputFormat?: boolean;
26
- };
27
- onAccept?: (result: unknown) => void;
28
- onOptionsChanged?: (options: import("@smart-cloud/ai-kit-core").AiFeatureOptions) => void;
29
- } & Partial<import("@smart-cloud/ai-kit-core").AiWorkerProps>>;
@@ -1,5 +0,0 @@
1
- export declare function AiFeatureBorder({ enabled, working, variation, children, }: React.PropsWithChildren<{
2
- enabled?: boolean;
3
- working?: boolean;
4
- variation?: string;
5
- }>): import("react").JSX.Element;
@@ -1,13 +0,0 @@
1
- export type Correction = {
2
- startIndex: number;
3
- endIndex: number;
4
- correction?: string;
5
- replacement?: string;
6
- explanation?: string;
7
- type?: string;
8
- };
9
- export type ProofreadDiffProps = {
10
- original: string;
11
- corrections: Correction[];
12
- };
13
- export declare function ProofreadDiff({ original, corrections }: ProofreadDiffProps): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { AiFeature } from "./AiFeature";
2
- export { markdownToHtml } from "./utils";
@@ -1 +0,0 @@
1
- export declare const markdownToHtml: (markdown: string) => Promise<string>;
@@ -1,22 +0,0 @@
1
- import { type ContextKind } from "@smart-cloud/ai-kit-core";
2
- import { FC } from "react";
3
- export declare const DocSearch: FC<import("@smart-cloud/ai-kit-core").AiWorkerProps & {
4
- context?: ContextKind;
5
- autoRun?: boolean;
6
- aiDisclosure?: string;
7
- title?: string;
8
- getSearchText?: () => string;
9
- searchButtonIcon?: string;
10
- showSearchButtonTitle?: boolean;
11
- showSearchButtonIcon?: boolean;
12
- showSources?: boolean;
13
- topK?: number;
14
- snippetMaxChars?: number;
15
- onClickDoc?: (doc: import("@smart-cloud/ai-kit-core").RetrievedDoc) => void;
16
- enableUserFilters?: boolean;
17
- availableCategories?: Record<string, string[]>;
18
- availableTags?: string[];
19
- initialSelectedCategories?: string[];
20
- initialSelectedSubcategories?: string[];
21
- initialSelectedTags?: string[];
22
- } & Partial<import("@smart-cloud/ai-kit-core").AiWorkerProps>>;
@@ -1 +0,0 @@
1
- export { DocSearch } from "./DocSearch";
@@ -1 +0,0 @@
1
- export declare const normalizeInitialFilterValues: (values: readonly string[] | undefined) => string[];
@@ -1,6 +0,0 @@
1
- export interface LocalizedOption {
2
- value: string;
3
- label: string;
4
- }
5
- /** Keep canonical filter values while ordering options by their visible labels. */
6
- export declare function buildLocalizedOptions(values: string[], translate: (value: string) => string, locale: string): LocalizedOption[];
@@ -1,24 +0,0 @@
1
- export type AiRunErrorKind = "cancelled" | "human-verification" | "authorization" | "throttled" | "grounding" | "timeout" | "validation" | "network" | "server" | "general";
2
- export type HumanVerificationClassification = "TOKEN_REJECTED" | "ACTION_REJECTED" | "RISK_REJECTED" | "PROVIDER_UNAVAILABLE";
3
- export type AiRunErrorDetails = {
4
- kind: AiRunErrorKind;
5
- status?: number;
6
- code?: string;
7
- safeMessage?: string;
8
- requestId?: string;
9
- classification?: HumanVerificationClassification;
10
- retryable?: boolean;
11
- };
12
- export type AiRunErrorFeedback = {
13
- message: string | null;
14
- details: AiRunErrorDetails | null;
15
- };
16
- export declare function isAiRunAbort(error: unknown): boolean;
17
- export declare function normalizeAiRunError(error: unknown): AiRunErrorDetails;
18
- export declare function getAiRunErrorMessage(details: AiRunErrorDetails, translate?: (message: string) => string): string;
19
- export declare function clearAiRunErrorFeedback(): AiRunErrorFeedback;
20
- export declare function createAiRunErrorFeedback(error: unknown, translate?: (message: string) => string): AiRunErrorFeedback;
21
- export declare class AiRunError extends Error {
22
- readonly details: AiRunErrorDetails;
23
- constructor(details: AiRunErrorDetails, message?: string, options?: ErrorOptions);
24
- }
package/dist/i18n/ar.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const arDict: Record<string, string>;
package/dist/i18n/de.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const deDict: Record<string, string>;
package/dist/i18n/en.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const enDict: Record<string, string>;
package/dist/i18n/es.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const esDict: Record<string, string>;
package/dist/i18n/fr.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const frDict: Record<string, string>;
package/dist/i18n/he.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const heDict: Record<string, string>;
package/dist/i18n/hi.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const hiDict: Record<string, string>;
package/dist/i18n/hu.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const huDict: Record<string, string>;
package/dist/i18n/id.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const idDict: Record<string, string>;
@@ -1 +0,0 @@
1
- export declare const translations: Record<string, Record<string, string>>;
package/dist/i18n/it.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const itDict: Record<string, string>;
package/dist/i18n/ja.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const jaDict: Record<string, string>;
package/dist/i18n/ko.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const koDict: Record<string, string>;
package/dist/i18n/nb.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const nbDict: Record<string, string>;
package/dist/i18n/nl.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const nlDict: Record<string, string>;
package/dist/i18n/pl.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const plDict: Record<string, string>;
package/dist/i18n/pt.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const ptDict: Record<string, string>;
package/dist/i18n/ru.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const ruDict: Record<string, string>;
package/dist/i18n/sv.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const svDict: Record<string, string>;
package/dist/i18n/th.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const thDict: Record<string, string>;
package/dist/i18n/tr.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const trDict: Record<string, string>;
package/dist/i18n/ua.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const uaDict: Record<string, string>;
package/dist/i18n/zh.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const zhDict: Record<string, string>;
package/dist/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export * from "./ai-feature";
2
- export * from "./ai-chatbot";
3
- export * from "./doc-search";
4
- export * from "./useAiRun";
5
- export * from "./errorHandling";
6
- export { withAiKitShell } from "./withAiKitShell";
7
- export { translations } from "./i18n";
package/dist/locale.d.ts DELETED
@@ -1,13 +0,0 @@
1
- import { type PropsWithChildren } from "react";
2
- import { type TranslationCatalogs } from "@smart-cloud/wpsuite-core";
3
- export interface AiKitTranslator {
4
- language: string;
5
- customTranslations?: TranslationCatalogs | null;
6
- get(key: string, fallback?: string): string;
7
- }
8
- export declare function useSiteLocale(): import("@smart-cloud/wpsuite-core").SiteLocaleSnapshot;
9
- export declare function AiKitLocaleProvider({ language, customTranslations, children }: PropsWithChildren<{
10
- language: string;
11
- customTranslations?: TranslationCatalogs | null;
12
- }>): import("react").JSX.Element;
13
- export declare function useAiKitI18n(): AiKitTranslator;
@@ -1,4 +0,0 @@
1
- import { FC } from "react";
2
- export declare const PoweredBy: FC<{
3
- variation?: "default" | "modal";
4
- }>;
@@ -1,4 +0,0 @@
1
- /** Decode transport-escaped text once; React will escape the resulting text node. */
2
- export declare function citationDisplayText(value: string | undefined): string | undefined;
3
- /** Only decode encoded ampersands in URLs, preserving ordinary query parameters. */
4
- export declare function citationLinkUrl(value: string | undefined): string | undefined;
@@ -1,40 +0,0 @@
1
- import { AiKitLanguageCode, type AiKitStatusEvent } from "@smart-cloud/ai-kit-core";
2
- import { type AiRunErrorDetails } from "./errorHandling";
3
- export type AiRunState<T> = {
4
- busy: boolean;
5
- error: string | null;
6
- errorDetails: AiRunErrorDetails | null;
7
- statusEvent: AiKitStatusEvent | null;
8
- result: T | null;
9
- isCancelled: boolean;
10
- /** Last known execution source (best-effort). */
11
- lastSource: "on-device" | "backend" | null;
12
- };
13
- export type AiFeatureFunction<T> = (args: {
14
- signal: AbortSignal;
15
- onStatus: (e: AiKitStatusEvent) => void;
16
- }) => Promise<T>;
17
- export type UseAiRunResult<T> = AiRunState<T> & {
18
- run: (func: AiFeatureFunction<T>) => Promise<T | null>;
19
- cancel: () => void;
20
- reset: () => void;
21
- /** Current AbortSignal, if a run is in-flight. */
22
- signal: AbortSignal | null;
23
- };
24
- /**
25
- * Returns true if backend routing is configured in the current AiKit settings.
26
- *
27
- * This is intentionally conservative: it only checks *configuration*, not reachability.
28
- */
29
- export declare function isBackendConfigured(): Promise<boolean>;
30
- export declare function readDefaultOutputLanguage(): AiKitLanguageCode;
31
- /**
32
- * Removes a single surrounding Markdown code fence.
33
- *
34
- * Handles common model outputs like:
35
- * ```json
36
- * {"a":1}
37
- * ```
38
- */
39
- export declare function stripCodeFence(text: string): string;
40
- export declare function useAiRun<T>(): UseAiRunResult<T>;
@@ -1,14 +0,0 @@
1
- import { AiWorkerProps } from "@smart-cloud/ai-kit-core";
2
- import { type ComponentType } from "react";
3
- export type AiKitShellInjectedProps = {
4
- language?: string;
5
- rootElement: HTMLElement;
6
- /** Global portal target for an opened modal; its trigger stays local. */
7
- modalRootElement?: HTMLElement;
8
- };
9
- type AiKitShellOptions = Partial<AiWorkerProps> & {
10
- /** Used only by intentionally floating components such as the chatbot. */
11
- overlayWholeComponent?: boolean;
12
- };
13
- export declare function withAiKitShell<P extends object>(RootComponent: ComponentType<P & AiKitShellInjectedProps>, propOverrides?: AiKitShellOptions): import("react").FC<P & Partial<AiWorkerProps>>;
14
- export {};