@smart-cloud/ai-kit-ui 1.0.3 → 1.1.1

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
@@ -1,7 +1,7 @@
1
1
  import * as _smart_cloud_ai_kit_core from '@smart-cloud/ai-kit-core';
2
- import { ContextKind, AiModePreference, AiKitLanguageCode, AiKitStatusEvent, AiWorkerProps } from '@smart-cloud/ai-kit-core';
3
- import * as react from 'react';
4
- import { FC, ComponentType } from 'react';
2
+ import { ContextKind, AiModePreference, AiKitLanguageCode, HistoryStorageMode, AiChatbotLabels, AiKitStatusEvent, AiWorkerProps } from '@smart-cloud/ai-kit-core';
3
+ import * as React from 'react';
4
+ import React__default, { FC, ComponentType } from 'react';
5
5
 
6
6
  declare const AiFeature: FC<_smart_cloud_ai_kit_core.AiWorkerProps & {
7
7
  mode: _smart_cloud_ai_kit_core.AiFeatureMode;
@@ -38,6 +38,17 @@ declare const AiFeature: FC<_smart_cloud_ai_kit_core.AiWorkerProps & {
38
38
 
39
39
  declare const markdownToHtml: (markdown: string) => Promise<string>;
40
40
 
41
+ declare const AiChatbot: React__default.FC<_smart_cloud_ai_kit_core.AiWorkerProps & {
42
+ placeholder?: string;
43
+ maxImages?: number;
44
+ maxImageBytes?: number;
45
+ previewMode?: boolean;
46
+ historyStorage?: HistoryStorageMode;
47
+ labels?: AiChatbotLabels;
48
+ openButtonIconLayout?: _smart_cloud_ai_kit_core.OpenButtonIconLayout;
49
+ openButtonPosition?: _smart_cloud_ai_kit_core.OpenButtonPosition;
50
+ } & Partial<_smart_cloud_ai_kit_core.AiWorkerProps>>;
51
+
41
52
  type AiRunState<T> = {
42
53
  busy: boolean;
43
54
  error: string | null;
@@ -80,8 +91,8 @@ type AiKitShellInjectedProps = {
80
91
  language?: string;
81
92
  rootElement: HTMLElement;
82
93
  };
83
- declare function withAiKitShell<P extends object>(RootComponent: ComponentType<P & AiKitShellInjectedProps>, propOverrides?: Partial<AiWorkerProps>): react.FC<P & Partial<AiWorkerProps>>;
94
+ declare function withAiKitShell<P extends object>(RootComponent: ComponentType<P & AiKitShellInjectedProps>, propOverrides?: Partial<AiWorkerProps>): React.FC<P & Partial<AiWorkerProps>>;
84
95
 
85
96
  declare const translations: Record<string, Record<string, string>>;
86
97
 
87
- export { AiFeature, type AiFeatureFunction, type AiRunState, type UseAiRunResult, isBackendConfigured, markdownToHtml, readDefaultOutputLanguage, stripCodeFence, translations, useAiRun, withAiKitShell };
98
+ export { AiChatbot, AiFeature, type AiFeatureFunction, type AiRunState, type UseAiRunResult, isBackendConfigured, markdownToHtml, readDefaultOutputLanguage, stripCodeFence, translations, useAiRun, withAiKitShell };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _smart_cloud_ai_kit_core from '@smart-cloud/ai-kit-core';
2
- import { ContextKind, AiModePreference, AiKitLanguageCode, AiKitStatusEvent, AiWorkerProps } from '@smart-cloud/ai-kit-core';
3
- import * as react from 'react';
4
- import { FC, ComponentType } from 'react';
2
+ import { ContextKind, AiModePreference, AiKitLanguageCode, HistoryStorageMode, AiChatbotLabels, AiKitStatusEvent, AiWorkerProps } from '@smart-cloud/ai-kit-core';
3
+ import * as React from 'react';
4
+ import React__default, { FC, ComponentType } from 'react';
5
5
 
6
6
  declare const AiFeature: FC<_smart_cloud_ai_kit_core.AiWorkerProps & {
7
7
  mode: _smart_cloud_ai_kit_core.AiFeatureMode;
@@ -38,6 +38,17 @@ declare const AiFeature: FC<_smart_cloud_ai_kit_core.AiWorkerProps & {
38
38
 
39
39
  declare const markdownToHtml: (markdown: string) => Promise<string>;
40
40
 
41
+ declare const AiChatbot: React__default.FC<_smart_cloud_ai_kit_core.AiWorkerProps & {
42
+ placeholder?: string;
43
+ maxImages?: number;
44
+ maxImageBytes?: number;
45
+ previewMode?: boolean;
46
+ historyStorage?: HistoryStorageMode;
47
+ labels?: AiChatbotLabels;
48
+ openButtonIconLayout?: _smart_cloud_ai_kit_core.OpenButtonIconLayout;
49
+ openButtonPosition?: _smart_cloud_ai_kit_core.OpenButtonPosition;
50
+ } & Partial<_smart_cloud_ai_kit_core.AiWorkerProps>>;
51
+
41
52
  type AiRunState<T> = {
42
53
  busy: boolean;
43
54
  error: string | null;
@@ -80,8 +91,8 @@ type AiKitShellInjectedProps = {
80
91
  language?: string;
81
92
  rootElement: HTMLElement;
82
93
  };
83
- declare function withAiKitShell<P extends object>(RootComponent: ComponentType<P & AiKitShellInjectedProps>, propOverrides?: Partial<AiWorkerProps>): react.FC<P & Partial<AiWorkerProps>>;
94
+ declare function withAiKitShell<P extends object>(RootComponent: ComponentType<P & AiKitShellInjectedProps>, propOverrides?: Partial<AiWorkerProps>): React.FC<P & Partial<AiWorkerProps>>;
84
95
 
85
96
  declare const translations: Record<string, Record<string, string>>;
86
97
 
87
- export { AiFeature, type AiFeatureFunction, type AiRunState, type UseAiRunResult, isBackendConfigured, markdownToHtml, readDefaultOutputLanguage, stripCodeFence, translations, useAiRun, withAiKitShell };
98
+ export { AiChatbot, AiFeature, type AiFeatureFunction, type AiRunState, type UseAiRunResult, isBackendConfigured, markdownToHtml, readDefaultOutputLanguage, stripCodeFence, translations, useAiRun, withAiKitShell };