Skip to content

Commit 7168f88

Browse files
v0.4.1
1 parent a6f0cbe commit 7168f88

File tree

5 files changed

+50
-27
lines changed

5 files changed

+50
-27
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The QuickBlox UIKit fully supports both private and group dialogs. To initiate t
4141
## Requirements
4242

4343
The minimum requirements for QuickBlox UIKit for React are:
44-
- JS QuickBlox SDK v2.15.5
44+
- JS QuickBlox SDK v2.16.4
4545
- React v.18.0
4646
- TypeScript v.4.9.3
4747

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quickblox-react-ui-kit",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"main": "dist/index-ui.js",
55
"license": "MIT",
66
"dependencies": {
@@ -26,7 +26,6 @@
2626
"@storybook/addon-essentials": "^7.6.12",
2727
"@storybook/addon-interactions": "^7.6.12",
2828
"@storybook/addon-links": "^7.6.12",
29-
"@storybook/addon-onboarding": "^1.0.11",
3029
"@storybook/addon-viewport": "^7.6.16",
3130
"@storybook/blocks": "^7.6.12",
3231
"@storybook/preset-create-react-app": "^7.6.12",
@@ -87,8 +86,7 @@
8786
"lint": "eslint ./src",
8887
"eject": "react-scripts eject",
8988
"storybook": "storybook dev -p 6006",
90-
"build-storybook": "storybook build",
91-
"build:storybook": "storybook build"
89+
"build-storybook": "storybook build"
9290
},
9391
"lint-staged": {
9492
"src/**/*.{ts,tsx}": "eslint"

src/CommonTypes/CommonTypes.ts

Lines changed: 41 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,53 @@ export type ProxyConfig = {
1515
port: string;
1616
};
1717
export interface WidgetConfig {
18-
organizationName: string;
19-
openAIModel: string;
20-
apiKey: string;
21-
maxTokens: number;
22-
useDefault: boolean;
23-
proxyConfig: ProxyConfig;
24-
smartChatAssistantId: string;
18+
smartChatAssistantId: string; // This field will be deprecated in a future release. Please avoid using it.
19+
/**
20+
* @deprecated This field will be deprecated in a future release. Please avoid using it.
21+
*/
22+
organizationName: string; // This field will be deprecated in a future release. Please avoid using it.
23+
/**
24+
* @deprecated This field will be deprecated in a future release. Please avoid using it.
25+
*/
26+
openAIModel: string; // This field will be deprecated in a future release. Please avoid using it.
27+
/**
28+
* @deprecated This field will be deprecated in a future release. Please avoid using it.
29+
*/
30+
apiKey: string; // This field will be deprecated in a future release. Please avoid using it.
31+
/**
32+
* @deprecated This field will be deprecated in a future release. Please avoid using it.
33+
*/
34+
maxTokens: number; // This field will be deprecated in a future release. Please avoid using it.
35+
/**
36+
* @deprecated This field will be deprecated in a future release. Please avoid using it.
37+
*/
38+
useDefault: boolean; // This field will be deprecated in a future release. Please avoid using it.
39+
/**
40+
* @deprecated This field will be deprecated in a future release. Please avoid using it.
41+
*/
42+
proxyConfig: ProxyConfig; // This field will be deprecated in a future release. Please avoid using it.
2543
}
2644

2745
export interface AITranslateWidgetConfig extends WidgetConfig {
28-
defaultLanguage: string;
29-
languages: string[];
46+
/**
47+
* @deprecated This field will be deprecated in a future release. Please avoid using it.
48+
*/
49+
defaultLanguage: string; // This field will be deprecated in a future release. Please avoid using it.
50+
/**
51+
* @deprecated This field will be deprecated in a future release. Please avoid using it.
52+
*/
53+
languages: string[]; // This field will be deprecated in a future release. Please avoid using it.
3054
}
3155

3256
export interface AIRephraseWidgetConfig extends WidgetConfig {
33-
defaultTone: string;
34-
Tones: Tone[];
57+
/**
58+
* @deprecated This field will be deprecated in a future release. Please avoid using it.
59+
*/
60+
defaultTone: string; // This field will be deprecated in a future release. Please avoid using it.
61+
/**
62+
* @deprecated This field will be deprecated in a future release. Please avoid using it.
63+
*/
64+
Tones: Tone[]; // This field will be deprecated in a future release. Please avoid using it.
3565
}
3666

3767
export interface QBUIKitConfig extends QBConfig {

src/Data/DefaultConfigurations.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ export class DefaultConfigurations {
145145
},
146146
configAIApi: {
147147
AIAnswerAssistWidgetConfig: {
148+
smartChatAssistantId: '',
148149
organizationName: 'Quickblox',
149150
openAIModel: 'gpt-3.5-turbo',
150-
smartChatAssistantId: '',
151151
apiKey: '',
152152
maxTokens: 3584,
153153
useDefault: true,
@@ -158,9 +158,9 @@ export class DefaultConfigurations {
158158
},
159159
},
160160
AITranslateWidgetConfig: {
161+
smartChatAssistantId: '',
161162
organizationName: 'Quickblox',
162163
openAIModel: 'gpt-3.5-turbo',
163-
smartChatAssistantId: '',
164164
apiKey: '',
165165
maxTokens: 3584,
166166
useDefault: true,
@@ -178,9 +178,9 @@ export class DefaultConfigurations {
178178
// },
179179
},
180180
AIRephraseWidgetConfig: {
181+
smartChatAssistantId: '',
181182
organizationName: 'Quickblox',
182183
openAIModel: 'gpt-3.5-turbo',
183-
smartChatAssistantId: '',
184184
apiKey: '',
185185
maxTokens: 3584,
186186
useDefault: true,

src/QBconfig.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ export const QBConfig: QBUIKitConfig = {
1010
},
1111
configAIApi: {
1212
AIAnswerAssistWidgetConfig: {
13+
smartChatAssistantId: '',
1314
organizationName: 'Quickblox',
1415
openAIModel: 'gpt-3.5-turbo',
15-
smartChatAssistantId: '',
1616
apiKey: '',
1717
maxTokens: 3584,
1818
useDefault: true,
@@ -23,9 +23,9 @@ export const QBConfig: QBUIKitConfig = {
2323
},
2424
},
2525
AITranslateWidgetConfig: {
26+
smartChatAssistantId: '',
2627
organizationName: 'Quickblox',
2728
openAIModel: 'gpt-3.5-turbo',
28-
smartChatAssistantId: '',
2929
apiKey: '',
3030
maxTokens: 3584,
3131
useDefault: true,
@@ -43,16 +43,11 @@ export const QBConfig: QBUIKitConfig = {
4343
servername: 'https://api.openai.com/',
4444
port: '',
4545
},
46-
// proxyConfig: {
47-
// api: 'v1/chat/completions',
48-
// servername: 'http://localhost',
49-
// port: '3012',
50-
// },
5146
},
5247
AIRephraseWidgetConfig: {
48+
smartChatAssistantId: '',
5349
organizationName: 'Quickblox',
5450
openAIModel: 'gpt-3.5-turbo',
55-
smartChatAssistantId: '',
5651
apiKey: '',
5752
maxTokens: 3584,
5853
useDefault: true,

0 commit comments

Comments
 (0)