bibot 1.0.45 → 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,6 +1,6 @@
1
1
  import React from 'react';
2
- import { BiBotProps, ChatBubbleConfigProps, MESSAGES, 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
5
  messages: MESSAGES;
6
6
  isLoading: boolean;
@@ -10,9 +10,10 @@ declare const useBiBotChatBot: ({ clientId, client_session_id, test }: BiBotProp
10
10
  handleKeyPress: (e: React.KeyboardEvent<HTMLInputElement>) => Promise<void>;
11
11
  toggleChat: () => void;
12
12
  sendInputInquiry: () => Promise<void>;
13
- chatBubbleConfig: ChatBubbleConfigProps | undefined;
13
+ chatBubbleConfig: import("../types/coreInterfaces").ChatBubbleConfigProps;
14
14
  showPredefinedQuestions: boolean;
15
- predefinedQuestions: predefinedQuestionsType[];
16
- handlePredefinedQuestionSelect: (question: predefinedQuestionsType) => void;
15
+ predefinedQuestions: [] | PredefinedQuestionsType[];
16
+ aiFollowUpQs: [] | PredefinedQuestionsType[];
17
+ handlePredefinedQuestionSelect: (question: PredefinedQuestionsType) => void;
17
18
  };
18
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;