bibot 1.0.70 → 1.0.72
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/component/{Avatar.d.ts → views/Avatar.d.ts} +1 -1
- package/dist/component/views/ChatBubbleContainer.d.ts +4 -0
- package/dist/component/views/ChatHeader.d.ts +4 -0
- package/dist/component/views/ChatWindow.d.ts +4 -0
- package/dist/component/views/GreetingMessage.d.ts +4 -0
- package/dist/component/{Icons.d.ts → views/Icons.d.ts} +1 -1
- package/dist/component/views/InputArea.d.ts +4 -0
- package/dist/component/views/MarkdownView.d.ts +6 -0
- package/dist/component/views/MessageList.d.ts +4 -0
- package/dist/component/{aiFollowUps.d.ts → views/aiFollowUps.d.ts} +1 -1
- package/dist/component/{predefinedQuestions.d.ts → views/predefinedQuestions.d.ts} +1 -1
- package/dist/index.js +1579 -801
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1580 -802
- package/dist/index.modern.js.map +1 -1
- package/dist/types/coreInterfaces.d.ts +68 -3
- package/package.json +28 -30
- /package/dist/component/{loader.d.ts → views/loader.d.ts} +0 -0
@@ -116,9 +116,74 @@ interface AvatarProps {
|
|
116
116
|
interface iconColor {
|
117
117
|
color: string | undefined;
|
118
118
|
}
|
119
|
-
interface
|
119
|
+
export interface ChatMessage {
|
120
120
|
sender: 'user' | 'bot';
|
121
121
|
text: string;
|
122
|
-
}> {
|
123
122
|
}
|
124
|
-
|
123
|
+
interface MESSAGES extends Array<ChatMessage> {
|
124
|
+
}
|
125
|
+
interface GreetingMessageProps {
|
126
|
+
greeting: string;
|
127
|
+
chatBubbleConfig?: ChatBubbleConfigProps;
|
128
|
+
handleCloseGreeting: () => void;
|
129
|
+
}
|
130
|
+
interface ChatHeaderProps {
|
131
|
+
chatBubbleConfig?: ChatBubbleConfigProps;
|
132
|
+
isLoading: boolean;
|
133
|
+
isOnline: boolean;
|
134
|
+
}
|
135
|
+
interface ChatWindowProps {
|
136
|
+
chatBubbleConfig: ChatBubbleConfigProps;
|
137
|
+
messages: ChatMessage[];
|
138
|
+
isLoading: boolean;
|
139
|
+
aiFollowUpQs?: PredefinedQuestionsType[];
|
140
|
+
showPredefinedQuestions: boolean;
|
141
|
+
predefinedQuestions: PredefinedQuestionsType[];
|
142
|
+
userInput: string;
|
143
|
+
handleUserInput: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
144
|
+
handleKeyPress: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
145
|
+
sendInputInquiry: () => void;
|
146
|
+
handlePredefinedQuestionSelect: (question: PredefinedQuestionsType) => void;
|
147
|
+
isOnline: boolean;
|
148
|
+
messageEndRef: React.MutableRefObject<HTMLDivElement | null>;
|
149
|
+
}
|
150
|
+
interface InputAreaProps {
|
151
|
+
userInput: string;
|
152
|
+
handleUserInput: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
153
|
+
handleKeyPress: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
154
|
+
sendInputInquiry: () => void;
|
155
|
+
isLoading: boolean;
|
156
|
+
chatBubbleConfig: ChatBubbleConfigProps;
|
157
|
+
}
|
158
|
+
interface MessageListProps {
|
159
|
+
messages: ChatMessage[];
|
160
|
+
chatBubbleConfig: ChatBubbleConfigProps;
|
161
|
+
}
|
162
|
+
interface ChatBubbleContainerProps {
|
163
|
+
chatIsOpen: boolean;
|
164
|
+
toggleChat: () => void;
|
165
|
+
chatBubbleConfig: ChatBubbleConfigProps;
|
166
|
+
isGreetingVisible: boolean;
|
167
|
+
greeting: string;
|
168
|
+
handleCloseGreeting: () => void;
|
169
|
+
messages: ChatMessage[];
|
170
|
+
isLoading: boolean;
|
171
|
+
showPredefinedQuestions: boolean;
|
172
|
+
predefinedQuestions: PredefinedQuestionsType[];
|
173
|
+
userInput: string;
|
174
|
+
handleUserInput: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
175
|
+
handleKeyPress: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
176
|
+
sendInputInquiry: () => void;
|
177
|
+
handlePredefinedQuestionSelect: (question: PredefinedQuestionsType) => void;
|
178
|
+
isOnline: boolean;
|
179
|
+
messageEndRef: React.MutableRefObject<HTMLDivElement | null>;
|
180
|
+
}
|
181
|
+
interface AiFollowUpsProps {
|
182
|
+
questions: string[];
|
183
|
+
onSelect: (question: string) => void;
|
184
|
+
chatBubbleConfig?: ChatBubbleConfigProps;
|
185
|
+
}
|
186
|
+
interface UseOnlineStatus {
|
187
|
+
isOnline: boolean;
|
188
|
+
}
|
189
|
+
export type { AppStates, AppAction, AppContextProps, NOTIFICATION_DT, NotificationType, Plan, SUBSCRIPTION, AppconfigType, docInfoType, BiBotProps, PredefinedQuestionsProps, Q_DATA_TYPE, RemoteChatBubbleConfigProps, recordPredefinedQProps, AvatarProps, PredefinedQuestionsType, iconColor, AppProps, ChatBubbleConfigProps, MESSAGES, BIBOT_INFERENCE_TYPE, GreetingMessageProps, ChatHeaderProps, ChatWindowProps, InputAreaProps, MessageListProps, ChatBubbleContainerProps, AiFollowUpsProps, UseOnlineStatus };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "bibot",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.72",
|
4
4
|
"description": "BiBot plugin",
|
5
5
|
"author": "chrisdjin",
|
6
6
|
"license": "ISC",
|
@@ -9,7 +9,7 @@
|
|
9
9
|
"module": "dist/index.modern.js",
|
10
10
|
"source": "src/index.tsx",
|
11
11
|
"engines": {
|
12
|
-
"node": ">=
|
12
|
+
"node": ">=16"
|
13
13
|
},
|
14
14
|
"scripts": {
|
15
15
|
"build": "microbundle-crl --no-compress --format modern,cjs --external react,react-dom",
|
@@ -28,50 +28,48 @@
|
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
30
|
"@babel/plugin-proposal-unicode-property-regex": "^7.18.6",
|
31
|
-
"@testing-library/jest-dom": "^6.
|
32
|
-
"@testing-library/react": "^
|
31
|
+
"@testing-library/jest-dom": "^6.6.2",
|
32
|
+
"@testing-library/react": "^16.0.1",
|
33
33
|
"@testing-library/user-event": "^14.5.2",
|
34
|
-
"@types/jest": "^29.5.
|
35
|
-
"@types/node": "^
|
36
|
-
"@types/react": "^18.
|
37
|
-
"@types/react-dom": "^18.3.
|
38
|
-
"@types/uuid": "^
|
39
|
-
"@typescript-eslint/eslint-plugin": "^
|
40
|
-
"@typescript-eslint/parser": "^
|
41
|
-
"babel-eslint": "^10.0
|
34
|
+
"@types/jest": "^29.5.13",
|
35
|
+
"@types/node": "^22.7.8",
|
36
|
+
"@types/react": "^18.3.11",
|
37
|
+
"@types/react-dom": "^18.3.1",
|
38
|
+
"@types/uuid": "^10.0.0",
|
39
|
+
"@typescript-eslint/eslint-plugin": "^8.11.0",
|
40
|
+
"@typescript-eslint/parser": "^8.11.0",
|
41
|
+
"babel-eslint": "^10.1.0",
|
42
42
|
"cross-env": "^7.0.3",
|
43
|
-
"eslint": "^
|
43
|
+
"eslint": "^9.13.0",
|
44
44
|
"eslint-config-prettier": "^9.1.0",
|
45
|
-
"eslint-
|
46
|
-
"eslint-config-standard-react": "^13.0.0",
|
47
|
-
"eslint-plugin-import": "^2.29.1",
|
45
|
+
"eslint-plugin-import": "^2.31.0",
|
48
46
|
"eslint-plugin-node": "^11.1.0",
|
49
|
-
"eslint-plugin-prettier": "^5.1
|
50
|
-
"eslint-plugin-promise": "^
|
51
|
-
"eslint-plugin-react": "^7.
|
52
|
-
"eslint-plugin-standard": "^
|
53
|
-
"gh-pages": "^6.
|
47
|
+
"eslint-plugin-prettier": "^5.2.1",
|
48
|
+
"eslint-plugin-promise": "^7.1.0",
|
49
|
+
"eslint-plugin-react": "^7.37.1",
|
50
|
+
"eslint-plugin-standard": "^5.0.0",
|
51
|
+
"gh-pages": "^6.2.0",
|
54
52
|
"gulp": "^5.0.0",
|
55
53
|
"microbundle-crl": "^0.13.11",
|
56
54
|
"npm-run-all": "^4.1.5",
|
57
55
|
"postcss-flexbugs-fixes": "^5.0.2",
|
58
|
-
"prettier": "^3.
|
59
|
-
"react": "^18.
|
60
|
-
"react-dom": "^18.
|
61
|
-
"typescript": "^
|
62
|
-
"uuid": "^
|
56
|
+
"prettier": "^3.3.3",
|
57
|
+
"react": "^18.3.1",
|
58
|
+
"react-dom": "^18.3.1",
|
59
|
+
"typescript": "^4.9.5",
|
60
|
+
"uuid": "^10.0.0"
|
63
61
|
},
|
64
62
|
"files": [
|
65
63
|
"dist"
|
66
64
|
],
|
67
65
|
"dependencies": {
|
68
|
-
"@emotion/react": "^11.
|
69
|
-
"@emotion/styled": "^11.
|
70
|
-
"axios": "^1.
|
66
|
+
"@emotion/react": "^11.13.3",
|
67
|
+
"@emotion/styled": "^11.13.0",
|
68
|
+
"axios": "^1.7.7",
|
71
69
|
"postcss": "^8.4.47",
|
72
70
|
"postcss-loader": "^8.1.1",
|
73
71
|
"react-is": "^18.3.1",
|
74
72
|
"react-scripts": "^5.0.1",
|
75
|
-
"styled-components": "^6.1.
|
73
|
+
"styled-components": "^6.1.13"
|
76
74
|
}
|
77
75
|
}
|
File without changes
|