bibot 1.0.42 → 1.0.50
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/component/aiFollowUps.d.ts +4 -0
- package/dist/component/bibot.d.ts +1 -1
- package/dist/component/predefinedQuestions.d.ts +4 -0
- package/dist/config/appStateEnums.d.ts +4 -1
- package/dist/hooks/useBiBotChatBot.d.ts +7 -9
- package/dist/index.d.ts +1 -1
- package/dist/index.js +231 -189
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +232 -190
- package/dist/index.modern.js.map +1 -1
- package/dist/services/plugin-api.d.ts +4 -4
- package/dist/types/coreInterfaces.d.ts +29 -15
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { BiBotProps } from '../types/coreInterfaces';
|
3
|
-
declare const ChatBubbleBiBot: (
|
3
|
+
declare const ChatBubbleBiBot: (bibotProps: BiBotProps) => React.JSX.Element;
|
4
4
|
export default ChatBubbleBiBot;
|
@@ -1,11 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { BiBotProps,
|
3
|
-
declare const useBiBotChatBot: (
|
2
|
+
import { BiBotProps, MESSAGES, PredefinedQuestionsType } from '../types/coreInterfaces';
|
3
|
+
declare const useBiBotChatBot: (bibotProps: BiBotProps) => {
|
4
4
|
chatIsOpen: boolean;
|
5
|
-
messages:
|
6
|
-
sender: 'user' | 'bot';
|
7
|
-
text: string;
|
8
|
-
}[];
|
5
|
+
messages: MESSAGES;
|
9
6
|
isLoading: boolean;
|
10
7
|
messageEndRef: React.RefObject<HTMLDivElement>;
|
11
8
|
userInput: string;
|
@@ -13,9 +10,10 @@ declare const useBiBotChatBot: ({ clientId, client_session_id, test }: BiBotProp
|
|
13
10
|
handleKeyPress: (e: React.KeyboardEvent<HTMLInputElement>) => Promise<void>;
|
14
11
|
toggleChat: () => void;
|
15
12
|
sendInputInquiry: () => Promise<void>;
|
16
|
-
chatBubbleConfig: ChatBubbleConfigProps
|
13
|
+
chatBubbleConfig: import("../types/coreInterfaces").ChatBubbleConfigProps;
|
17
14
|
showPredefinedQuestions: boolean;
|
18
|
-
predefinedQuestions:
|
19
|
-
|
15
|
+
predefinedQuestions: [] | PredefinedQuestionsType[];
|
16
|
+
aiFollowUpQs: [] | PredefinedQuestionsType[];
|
17
|
+
handlePredefinedQuestionSelect: (question: PredefinedQuestionsType) => void;
|
20
18
|
};
|
21
19
|
export { useBiBotChatBot };
|
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import './styles.css';
|
3
3
|
import { BiBotProps } from './types/coreInterfaces';
|
4
|
-
export declare const BiBot: (
|
4
|
+
export declare const BiBot: (bibotProps: BiBotProps) => React.JSX.Element;
|