@smart-cloud/ai-kit-ui 1.1.39 → 1.1.41

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.d.cts CHANGED
@@ -45,6 +45,20 @@ declare const AiChatbot: React__default.FC<_smart_cloud_ai_kit_core.AiWorkerProp
45
45
  openButtonPosition?: _smart_cloud_ai_kit_core.OpenButtonPosition;
46
46
  } & Partial<_smart_cloud_ai_kit_core.AiWorkerProps>>;
47
47
 
48
+ declare const DocSearch: FC<_smart_cloud_ai_kit_core.AiWorkerProps & {
49
+ context?: _smart_cloud_ai_kit_core.ContextKind;
50
+ autoRun?: boolean;
51
+ title?: string;
52
+ getSearchText?: () => string;
53
+ searchButtonIcon?: string;
54
+ showSearchButtonTitle?: boolean;
55
+ showSearchButtonIcon?: boolean;
56
+ showSources?: boolean;
57
+ topK?: number;
58
+ snippetMaxChars?: number;
59
+ onClickDoc?: (doc: _smart_cloud_ai_kit_core.RetrievedDoc) => void;
60
+ } & Partial<_smart_cloud_ai_kit_core.AiWorkerProps>>;
61
+
48
62
  type AiRunState<T> = {
49
63
  busy: boolean;
50
64
  error: string | null;
@@ -91,4 +105,4 @@ declare function withAiKitShell<P extends object>(RootComponent: ComponentType<P
91
105
 
92
106
  declare const translations: Record<string, Record<string, string>>;
93
107
 
94
- export { AiChatbot, AiFeature, type AiFeatureFunction, type AiRunState, DEFAULT_CHATBOT_LABELS, type UseAiRunResult, isBackendConfigured, markdownToHtml, readDefaultOutputLanguage, stripCodeFence, translations, useAiRun, withAiKitShell };
108
+ export { AiChatbot, AiFeature, type AiFeatureFunction, type AiRunState, DEFAULT_CHATBOT_LABELS, DocSearch, type UseAiRunResult, isBackendConfigured, markdownToHtml, readDefaultOutputLanguage, stripCodeFence, translations, useAiRun, withAiKitShell };
package/dist/index.d.ts CHANGED
@@ -45,6 +45,20 @@ declare const AiChatbot: React__default.FC<_smart_cloud_ai_kit_core.AiWorkerProp
45
45
  openButtonPosition?: _smart_cloud_ai_kit_core.OpenButtonPosition;
46
46
  } & Partial<_smart_cloud_ai_kit_core.AiWorkerProps>>;
47
47
 
48
+ declare const DocSearch: FC<_smart_cloud_ai_kit_core.AiWorkerProps & {
49
+ context?: _smart_cloud_ai_kit_core.ContextKind;
50
+ autoRun?: boolean;
51
+ title?: string;
52
+ getSearchText?: () => string;
53
+ searchButtonIcon?: string;
54
+ showSearchButtonTitle?: boolean;
55
+ showSearchButtonIcon?: boolean;
56
+ showSources?: boolean;
57
+ topK?: number;
58
+ snippetMaxChars?: number;
59
+ onClickDoc?: (doc: _smart_cloud_ai_kit_core.RetrievedDoc) => void;
60
+ } & Partial<_smart_cloud_ai_kit_core.AiWorkerProps>>;
61
+
48
62
  type AiRunState<T> = {
49
63
  busy: boolean;
50
64
  error: string | null;
@@ -91,4 +105,4 @@ declare function withAiKitShell<P extends object>(RootComponent: ComponentType<P
91
105
 
92
106
  declare const translations: Record<string, Record<string, string>>;
93
107
 
94
- export { AiChatbot, AiFeature, type AiFeatureFunction, type AiRunState, DEFAULT_CHATBOT_LABELS, type UseAiRunResult, isBackendConfigured, markdownToHtml, readDefaultOutputLanguage, stripCodeFence, translations, useAiRun, withAiKitShell };
108
+ export { AiChatbot, AiFeature, type AiFeatureFunction, type AiRunState, DEFAULT_CHATBOT_LABELS, DocSearch, type UseAiRunResult, isBackendConfigured, markdownToHtml, readDefaultOutputLanguage, stripCodeFence, translations, useAiRun, withAiKitShell };