@sampleapp.ai/sdk 1.0.16 → 1.0.18
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.ts +50 -0
- package/dist/index.es.js +25871 -0
- package/package.json +1 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare interface AiChatSettings {
|
|
4
|
+
aiAssistantAvatar?: string;
|
|
5
|
+
exampleQuestions?: string[];
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare interface BaseSettings {
|
|
10
|
+
apiKey: string;
|
|
11
|
+
primaryBrandColor: string;
|
|
12
|
+
organizationDisplayName: string;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export declare const ChatButton: default_2.FC<ChatButtonProps>;
|
|
17
|
+
|
|
18
|
+
declare interface ChatButtonProps {
|
|
19
|
+
settings: SDKSettings;
|
|
20
|
+
onClick?: () => void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export declare const ModalSearchAndChat: default_2.FC<ModalSearchAndChatProps>;
|
|
24
|
+
|
|
25
|
+
declare interface ModalSearchAndChatProps {
|
|
26
|
+
settings: SDKSettings;
|
|
27
|
+
onClose?: () => void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare class SampleAppSDK {
|
|
31
|
+
ModalSearchAndChat: (settings: SDKSettings, container?: HTMLElement) => {
|
|
32
|
+
unmount: () => void;
|
|
33
|
+
show: () => void;
|
|
34
|
+
hide: () => void;
|
|
35
|
+
};
|
|
36
|
+
ChatButton: (settings: SDKSettings, container?: HTMLElement) => {
|
|
37
|
+
unmount: () => void;
|
|
38
|
+
};
|
|
39
|
+
private createButtonContainer;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare const sdk: SampleAppSDK;
|
|
43
|
+
export default sdk;
|
|
44
|
+
|
|
45
|
+
export declare interface SDKSettings {
|
|
46
|
+
baseSettings: BaseSettings;
|
|
47
|
+
aiChatSettings?: AiChatSettings;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { }
|