bibot 1.0.42 → 1.0.50

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { PredefinedQuestionsProps } from '../types/coreInterfaces';
3
+ declare const AiFollowUps: ({ questions, onSelect, chatBubbleConfig }: PredefinedQuestionsProps) => React.JSX.Element;
4
+ export { AiFollowUps };
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
2
  import { BiBotProps } from '../types/coreInterfaces';
3
- declare const ChatBubbleBiBot: ({ clientId, client_session_id, redirect_notice, test }: BiBotProps) => React.JSX.Element;
3
+ declare const ChatBubbleBiBot: (bibotProps: BiBotProps) => React.JSX.Element;
4
4
  export default ChatBubbleBiBot;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { PredefinedQuestionsProps } from '../types/coreInterfaces';
3
+ declare const PredefinedQuestions: ({ questions, onSelect, chatBubbleConfig }: PredefinedQuestionsProps) => React.JSX.Element;
4
+ export { PredefinedQuestions };
@@ -1,3 +1,6 @@
1
1
  export declare enum appStateEnums {
2
- BIBOT = "BIBOT"
2
+ AI_FOLLOW_UPS = "AI_FOLLOW_UPS",
3
+ CHAT_BUBBLE_CONFIG = "CHAT_BUBBLE_CONFIG",
4
+ CHAT_BUBBLE_IS_OPENED = "CHAT_BUBBLE_IS_OPENED",
5
+ PRE_DEFINED_QUESTIONS = "PRE_DEFINED_QUESTIONS"
3
6
  }
@@ -1,11 +1,8 @@
1
1
  import React from 'react';
2
- import { BiBotProps, ChatBubbleConfigProps, predefinedQuestionsType } from '../types/coreInterfaces';
3
- declare const useBiBotChatBot: ({ clientId, client_session_id, test }: BiBotProps) => {
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 | undefined;
13
+ chatBubbleConfig: import("../types/coreInterfaces").ChatBubbleConfigProps;
17
14
  showPredefinedQuestions: boolean;
18
- predefinedQuestions: predefinedQuestionsType[];
19
- handlePredefinedQuestionSelect: (question: predefinedQuestionsType) => void;
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: ({ clientId, client_session_id, redirect_notice, test }: BiBotProps) => React.JSX.Element;
4
+ export declare const BiBot: (bibotProps: BiBotProps) => React.JSX.Element;