Skip to content

Commit fed73f7

Browse files
v0.2.5
1 parent 24f2252 commit fed73f7

File tree

86 files changed

+3135
-1809
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+3135
-1809
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ QuickBlox UIKit for React provides next functionality:
3535
The QuickBlox UIKit for React comprises a collection of pre-assembled UI components that enable effortless creation of an in-app chat equipped with all the necessary messaging functionalities. Our development kit encompasses light and dark themes, colors, and various other features. These components can be personalized to fashion an engaging messaging interface that reflects your brand's distinct identity.
3636

3737
The QuickBlox UIKit fully supports both private and group dialogs. To initiate the process of sending a message from the ground up using Java or Kotlin, please refer to the instructions provided in the guide below.
38-
38+
[Additional information with sample](https://docs.quickblox.com/docs/react-uikit-send-your-first-message)
3939
## Requirements
4040

4141
The minimum requirements for QuickBlox UIKit for React are:
@@ -293,7 +293,8 @@ and specify selected components:
293293
# Sample
294294

295295
https://github.com/QuickBlox/quickblox-javascript-sdk/tree/gh-pages/samples/react-chat-ui-kit-init-sample
296-
296+
## Video guide "How to use AI Feature"
297+
[Youtube video about AI Assistant](https://youtu.be/BneMtDagOy4)
297298
# License
298299
[](#license)
299300
MIT License [here](https://github.com/QuickBlox/react-ui-kit/blob/main/LICENSE.md).

global.d.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
interface Tone {
2+
name: string;
3+
description: string;
4+
iconEmoji: string;
5+
}
6+
17
type Dictionary<T> = Record<string, T>;
28

39
type DictionaryByKey<T, V> = {
@@ -21,20 +27,22 @@ type ProxyConfig = {
2127
api: string;
2228
servername: string;
2329
port: string;
24-
sessionToken: string;
2530
};
2631
interface WidgetConfig {
2732
apiKey: string;
2833
useDefault: boolean;
34+
maxTokens: number;
2935
proxyConfig: ProxyConfig;
3036
}
3137

32-
interface AITranslateWidgetConfig extends WidgetConfig{
33-
defaultLanguage: string; languages: string[];
38+
interface AITranslateWidgetConfig extends WidgetConfig {
39+
defaultLanguage: string;
40+
languages: string[];
3441
}
3542

3643
interface AIRephraseWidgetConfig extends WidgetConfig {
37-
defaultTone: string
44+
defaultTone: string;
45+
Tones: Tone[];
3846
}
3947

4048
interface QBConfig {

package-lock.json

Lines changed: 87 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
22
"name": "quickblox-react-ui-kit",
3-
"version": "0.2.3",
3+
"version": "0.2.5",
44
"main": "dist/index-ui.js",
55
"license": "MIT",
66
"dependencies": {
77
"@types/node": "^16.18.6",
88
"@types/react": "^18.0.26",
99
"@types/react-dom": "^18.0.9",
1010
"classnames": "^2.3.2",
11+
"qb-ai-answer-assistant": "^0.1.0",
12+
"qb-ai-core": "^0.1.0",
13+
"qb-ai-rephrase": "^0.1.0",
14+
"qb-ai-translate": "^0.1.0",
1115
"react": "^18.2.0",
1216
"react-dom": "^18.2.0",
1317
"react-router-dom": "^6.11.1",

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function App() {
2828
const { connectionRepository } = useQBConnection();
2929

3030
const initLoginData: LoginData = {
31-
login: 'artimed', // vit1
31+
login: 'anruaav2', // vit1
3232
password: 'quickblox',
3333
};
3434

src/CommonTypes/FunctionResult.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import {Tone} from "../Presentation/components/UI/Dialogs/MessagesView/AIWidgets/Tone";
2+
13
export type FunctionResult<T> = {
24
result: T | T[] | boolean;
35
error: any;
@@ -7,10 +9,12 @@ export type ProxyConfig = {
79
api: string;
810
servername: string;
911
port: string;
10-
sessionToken: string;
1112
};
1213
export interface WidgetConfig {
14+
organizationName: string;
15+
openAIModel: string;
1316
apiKey: string;
17+
maxTokens: number;
1418
useDefault: boolean;
1519
proxyConfig: ProxyConfig;
1620
}
@@ -22,6 +26,7 @@ export interface AITranslateWidgetConfig extends WidgetConfig {
2226

2327
export interface AIRephraseWidgetConfig extends WidgetConfig {
2428
defaultTone: string;
29+
Tones: Tone[];
2530
}
2631

2732
export interface QBConfig {

0 commit comments

Comments
 (0)