@sampleapp.ai/sdk 1.0.0 → 1.0.2
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/components/ChatButton.d.ts +8 -11
- package/dist/components/ModalSearchAndChat.d.ts +8 -13
- package/dist/index.d.ts +17 -14
- package/dist/index.es.js +25871 -0
- package/dist/index.umd.js +287 -0
- package/package.json +28 -9
- package/dist/index.js +0 -1
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
private validateSettings;
|
|
8
|
-
private createElement;
|
|
9
|
-
private bindEvents;
|
|
10
|
-
private handleClick;
|
|
11
|
-
destroy(): void;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SDKSettings } from '../types';
|
|
3
|
+
|
|
4
|
+
interface ChatButtonProps {
|
|
5
|
+
settings: SDKSettings;
|
|
6
|
+
onClick?: () => void;
|
|
12
7
|
}
|
|
8
|
+
export declare const ChatButton: React.FC<ChatButtonProps>;
|
|
9
|
+
export {};
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
private validateSettings;
|
|
8
|
-
private createElement;
|
|
9
|
-
private renderExampleQuestions;
|
|
10
|
-
private bindEvents;
|
|
11
|
-
show(): void;
|
|
12
|
-
hide(): void;
|
|
13
|
-
destroy(): void;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SDKSettings } from '../types';
|
|
3
|
+
|
|
4
|
+
interface ModalSearchAndChatProps {
|
|
5
|
+
settings: SDKSettings;
|
|
6
|
+
onClose?: () => void;
|
|
14
7
|
}
|
|
8
|
+
export declare const ModalSearchAndChat: React.FC<ModalSearchAndChatProps>;
|
|
9
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { SDKSettings
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { ChatButton } from './components/ChatButton';
|
|
2
|
+
import { ModalSearchAndChat } from './components/ModalSearchAndChat';
|
|
3
|
+
import { SDKSettings } from './types';
|
|
4
|
+
|
|
5
|
+
export { ChatButton, ModalSearchAndChat };
|
|
6
|
+
export type { SDKSettings, BaseSettings, AiChatSettings } from './types';
|
|
7
|
+
declare class SampleAppSDK {
|
|
8
|
+
ModalSearchAndChat: (settings: SDKSettings, container?: HTMLElement) => {
|
|
9
|
+
unmount: () => void;
|
|
10
|
+
show: () => void;
|
|
11
|
+
hide: () => void;
|
|
12
|
+
};
|
|
13
|
+
ChatButton: (settings: SDKSettings, container?: HTMLElement) => {
|
|
14
|
+
unmount: () => void;
|
|
15
|
+
};
|
|
16
|
+
private createButtonContainer;
|
|
7
17
|
version: string;
|
|
8
18
|
}
|
|
9
|
-
declare const sdk:
|
|
19
|
+
declare const sdk: SampleAppSDK;
|
|
10
20
|
export default sdk;
|
|
11
|
-
export { ModalSearchAndChat, ChatButton };
|
|
12
|
-
export type { SDKSettings, ComponentOptions, BaseSettings, AiChatSettings, } from "./types";
|
|
13
|
-
declare global {
|
|
14
|
-
interface Window {
|
|
15
|
-
YourSDK: YourSDK;
|
|
16
|
-
}
|
|
17
|
-
}
|