@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/ai-kit-ui.css +22 -11
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +9 -9
- package/package.json +9 -8
- package/src/ai-feature/AiFeature.tsx +63 -62
- package/src/doc-search/DocSearch.tsx +498 -0
- package/src/doc-search/index.tsx +1 -0
- package/src/i18n/ar.ts +55 -44
- package/src/i18n/de.ts +56 -45
- package/src/i18n/en.ts +56 -45
- package/src/i18n/es.ts +56 -44
- package/src/i18n/fr.ts +56 -44
- package/src/i18n/he.ts +55 -44
- package/src/i18n/hi.ts +55 -44
- package/src/i18n/hu.ts +63 -51
- package/src/i18n/id.ts +56 -44
- package/src/i18n/it.ts +56 -44
- package/src/i18n/ja.ts +56 -45
- package/src/i18n/ko.ts +55 -44
- package/src/i18n/nb.ts +56 -45
- package/src/i18n/nl.ts +56 -45
- package/src/i18n/pl.ts +57 -45
- package/src/i18n/pt.ts +55 -44
- package/src/i18n/ru.ts +56 -45
- package/src/i18n/sv.ts +56 -45
- package/src/i18n/th.ts +55 -44
- package/src/i18n/tr.ts +55 -44
- package/src/i18n/ua.ts +55 -46
- package/src/i18n/zh.ts +54 -43
- package/src/index.tsx +1 -0
- package/src/poweredBy.tsx +39 -0
- package/src/styles/ai-kit-ui.css +22 -11
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 };
|