Skip to content

Commit 10d107b

Browse files
samples up to react ui kit version 0.2.8
1 parent 3b77780 commit 10d107b

File tree

15 files changed

+6881
-22176
lines changed

15 files changed

+6881
-22176
lines changed

samples/react-chat-ui-kit-demo-app/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
+ [2.1 Get application credentials](#21-get-application-credentials)
1111
+ [2.2 Set application credentials](#22-set-application-credentials)
1212
+ [2.3 Run the application](#23-run-the-application)
13-
- [Documentation and video guides](#documentation)
13+
- [Documentation](#documentation)
1414
- [License](#license)
1515

1616
# About
@@ -25,7 +25,7 @@ This is a code sample for [QuickBlox](http://quickblox.com/) platform. It is a g
2525
The minimum requirements for QuickBlox UIKit for React sample are:
2626

2727
- JS QuickBlox SDK v2.15.5
28-
- QuickBlox React UIKit library v0.2.4
28+
- QuickBlox React UIKit library v0.2.8
2929
- React JS v.18.0
3030
- TypeScript v.4.9.3
3131

@@ -110,10 +110,10 @@ Before run a code sample:
110110

111111
Run `npm start` for a dev server. Navigate to `http://localhost:3000/`. The app will automatically reload if you change any of the source files.
112112

113-
# Documentation and video guides
113+
# Documentation
114114
[](#documentation)
115115
Sample documentation is available [here](https://docs.quickblox.com/docs/react-uikit).
116-
Video guide "How to use AI Assistant" is available [here](https://youtu.be/BneMtDagOy4)
116+
117117
# License
118118
[](#license)
119119
MIT License [here](https://github.com/QuickBlox/react-ui-kit/blob/main/LICENSE.md).

samples/react-chat-ui-kit-demo-app/package-lock.json

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

samples/react-chat-ui-kit-demo-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-chat",
3-
"version": "1.0.13",
3+
"version": "1.0.14",
44
"private": true,
55
"dependencies": {
66
"@emotion/react": "^11.11.0",
@@ -11,9 +11,9 @@
1111
"@types/node": "^16.18.28",
1212
"@types/react": "^18.2.6",
1313
"@types/react-dom": "^18.2.4",
14-
"quickblox-react-ui-kit": "^0.2.7-release-final",
1514
"node-sass": "^8.0.0",
1615
"quickblox": "^2.16.1",
16+
"quickblox-react-ui-kit": "0.2.8",
1717
"react": "^17.0.0 || ^18.0.0",
1818
"react-dom": "^17.0.0 || ^18.0.0",
1919
"react-router-dom": "^6.4.3",

samples/react-chat-ui-kit-demo-app/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function App() {
185185
/>
186186
</div>
187187
{/*<QuickBloxUIKitDesktopLayout theme={new CustomTheme()} />*/}
188-
<QuickBloxUIKitDesktopLayout />
188+
<QuickBloxUIKitDesktopLayout uikitHeightOffset={"32px"} />
189189
</div>
190190
</div>
191191
:

samples/react-chat-ui-kit-demo-app/src/QBconfig.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,16 @@ export const QBConfig = {
123123
debug: true,
124124
enableForwarding: true,
125125
enableReplying: true,
126+
regexUserName: '^(?=[a-zA-Z])[-a-zA-Z_ ]{3,49}(?<! )$',
126127
endpoints: {
127128
api: 'api.quickblox.com',
128129
chat: 'chat.quickblox.com',
129130
},
131+
// bot server endpoints:
132+
// endpoints: {
133+
// api: 'apitest.quickblox.com',
134+
// chat: 'chattest.quickblox.com',
135+
// },
130136
// on: {
131137
// // eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/require-await
132138
// async sessionExpired(handleResponse: any, retry: any) {

samples/react-chat-ui-kit-demo-app/src/layout/Auth/Auth.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ const Auth = ({children} : AuthProps) => {
5656
</div>
5757
<div className="login__footer">
5858
<div className="footer__logo_wrap">
59-
<p>Sample React Chat UIKit DemoApp v1.0.13</p>
59+
<p>Sample React Chat UIKit DemoApp v1.0.14</p>
6060
<br />
61-
<p>React Chat UIKit v0.2.7</p>
61+
<p>React Chat UIKit v0.2.8</p>
6262
<br />
6363
<p><Copyright /></p>
6464
</div>

samples/react-chat-ui-kit-init-sample/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@types/node": "^16.18.37",
1111
"@types/react": "^18.2.14",
1212
"@types/react-dom": "^18.2.6",
13-
"quickblox-react-ui-kit": "^0.2.7-release-final",
13+
"quickblox-react-ui-kit": "^0.2.8",
1414
"quickblox": "^2.16.1",
1515
"react": "^18.2.0",
1616
"react-dom": "^18.2.0",

samples/react-chat-ui-kit-init-sample/src/App.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import './App.css';
1313
function App() {
1414

1515
const currentUser: LoginData = {
16-
login: 'anruaav2',
17-
password: 'quickblox',
16+
login: '',
17+
password: '',
1818
};
1919

2020
const qbUIKitContext: QBDataContextType = useQbUIKitDataContext();
@@ -102,6 +102,7 @@ function App() {
102102
isSDKInitialized && isUserAuthorized
103103
?
104104
<QuickBloxUIKitDesktopLayout
105+
uikitHeightOffset={"32px"}
105106
// AIAssist={{
106107
// enabled: true,
107108
// default: true,

samples/react-chat-ui-kit-init-sample/src/QBconfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export const QBConfig = {
5757
debug: true,
5858
enableForwarding: true,
5959
enableReplying: true,
60+
regexUserName: '^(?=[a-zA-Z])[-a-zA-Z_ ]{3,49}(?<! )$',
6061
endpoints: {
6162
api: 'api.quickblox.com',
6263
chat: 'chat.quickblox.com',

samples/react-chat-ui-kit-init-with-ai-sample/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@types/node": "^16.18.37",
1111
"@types/react": "^18.2.14",
1212
"@types/react-dom": "^18.2.6",
13-
"quickblox-react-ui-kit": "^0.2.7-release-final",
13+
"quickblox-react-ui-kit": "^0.2.8",
1414
"quickblox": "^2.16.1",
1515
"react": "^18.2.0",
1616
"react-dom": "^18.2.0",

0 commit comments

Comments
 (0)