quickblox-react-ui-kit 0.4.0 → 0.4.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quickblox-react-ui-kit",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "main": "dist/index-ui.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -15,23 +15,53 @@ export type ProxyConfig = {
15
15
  port: string;
16
16
  };
17
17
  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.
25
43
  }
26
44
 
27
45
  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.
30
54
  }
31
55
 
32
56
  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.
35
65
  }
36
66
 
37
67
  export interface QBUIKitConfig extends QBConfig {
@@ -145,9 +145,9 @@ export class DefaultConfigurations {
145
145
  },
146
146
  configAIApi: {
147
147
  AIAnswerAssistWidgetConfig: {
148
+ smartChatAssistantId: '',
148
149
  organizationName: 'Quickblox',
149
150
  openAIModel: 'gpt-3.5-turbo',
150
- smartChatAssistantId: '',
151
151
  apiKey: '',
152
152
  maxTokens: 3584,
153
153
  useDefault: true,
@@ -158,9 +158,9 @@ export class DefaultConfigurations {
158
158
  },
159
159
  },
160
160
  AITranslateWidgetConfig: {
161
+ smartChatAssistantId: '',
161
162
  organizationName: 'Quickblox',
162
163
  openAIModel: 'gpt-3.5-turbo',
163
- smartChatAssistantId: '',
164
164
  apiKey: '',
165
165
  maxTokens: 3584,
166
166
  useDefault: true,
@@ -178,9 +178,9 @@ export class DefaultConfigurations {
178
178
  // },
179
179
  },
180
180
  AIRephraseWidgetConfig: {
181
+ smartChatAssistantId: '',
181
182
  organizationName: 'Quickblox',
182
183
  openAIModel: 'gpt-3.5-turbo',
183
- smartChatAssistantId: '',
184
184
  apiKey: '',
185
185
  maxTokens: 3584,
186
186
  useDefault: true,
package/src/QBconfig.ts CHANGED
@@ -10,9 +10,9 @@ export const QBConfig: QBUIKitConfig = {
10
10
  },
11
11
  configAIApi: {
12
12
  AIAnswerAssistWidgetConfig: {
13
+ smartChatAssistantId: '',
13
14
  organizationName: 'Quickblox',
14
15
  openAIModel: 'gpt-3.5-turbo',
15
- smartChatAssistantId: '',
16
16
  apiKey: '',
17
17
  maxTokens: 3584,
18
18
  useDefault: true,
@@ -23,9 +23,9 @@ export const QBConfig: QBUIKitConfig = {
23
23
  },
24
24
  },
25
25
  AITranslateWidgetConfig: {
26
+ smartChatAssistantId: '',
26
27
  organizationName: 'Quickblox',
27
28
  openAIModel: 'gpt-3.5-turbo',
28
- smartChatAssistantId: '',
29
29
  apiKey: '',
30
30
  maxTokens: 3584,
31
31
  useDefault: true,
@@ -43,16 +43,11 @@ export const QBConfig: QBUIKitConfig = {
43
43
  servername: 'https://api.openai.com/',
44
44
  port: '',
45
45
  },
46
- // proxyConfig: {
47
- // api: 'v1/chat/completions',
48
- // servername: 'http://localhost',
49
- // port: '3012',
50
- // },
51
46
  },
52
47
  AIRephraseWidgetConfig: {
48
+ smartChatAssistantId: '',
53
49
  organizationName: 'Quickblox',
54
50
  openAIModel: 'gpt-3.5-turbo',
55
- smartChatAssistantId: '',
56
51
  apiKey: '',
57
52
  maxTokens: 3584,
58
53
  useDefault: true,
@@ -1 +1 @@
1
- {"generatedAt":1716388997977,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"metaFramework":{"name":"CRA","packageName":"react-scripts","version":"5.0.1"},"packageManager":{"type":"npm","version":"10.2.4"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{"builder":{"useSWC":true}}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"7.6.12","storybookVersionSpecifier":"^7.6.12","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"7.6.12"},"@storybook/react":{"version":"7.6.12"},"@storybook/react-webpack5":{"version":"7.6.12"},"@storybook/test":{"version":"7.6.12"},"eslint-plugin-storybook":{"version":"0.6.15"},"storybook":{"version":"7.6.12"}},"addons":{"@storybook/addon-links":{"version":"7.6.12"},"@storybook/addon-essentials":{"version":"7.6.12"},"@storybook/preset-create-react-app":{"version":"7.6.12"},"@storybook/addon-onboarding":{"version":null},"@storybook/addon-interactions":{"version":"7.6.12"},"@storybook/addon-viewport":{"version":"7.6.16"}}}
1
+ {"generatedAt":1718291603962,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"metaFramework":{"name":"CRA","packageName":"react-scripts","version":"5.0.1"},"packageManager":{"type":"npm","version":"10.2.4"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{"builder":{"useSWC":true}}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"7.6.12","storybookVersionSpecifier":"^7.6.12","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"7.6.12"},"@storybook/react":{"version":"7.6.12"},"@storybook/react-webpack5":{"version":"7.6.12"},"@storybook/test":{"version":"7.6.12"},"eslint-plugin-storybook":{"version":"0.6.15"},"storybook":{"version":"7.6.12"}},"addons":{"@storybook/addon-links":{"version":"7.6.12"},"@storybook/addon-essentials":{"version":"7.6.12"},"@storybook/preset-create-react-app":{"version":"7.6.12"},"@storybook/addon-onboarding":{"version":null},"@storybook/addon-interactions":{"version":"7.6.12"},"@storybook/addon-viewport":{"version":"7.6.16"}}}