Skip to content

Commit fa3678a

Browse files
React Chat samples for React UIKit v1.2.1 fix version.
1 parent 093b51a commit fa3678a

File tree

31 files changed

+31602
-90
lines changed

31 files changed

+31602
-90
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.1.8
28+
- QuickBlox React UIKit library v0.2.1
2929
- React JS v.18.0
3030
- TypeScript v.4.9.3
3131

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

Lines changed: 37 additions & 37 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.3",
3+
"version": "1.0.6",
44
"private": true,
55
"dependencies": {
66
"@emotion/react": "^11.11.0",
@@ -11,7 +11,7 @@
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.1.8",
14+
"quickblox-react-ui-kit": "^0.2.1",
1515
"node-sass": "^8.0.0",
1616
"quickblox": "^2.15.5",
1717
"react": "^17.0.0 || ^18.0.0",

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.5</p>
59+
<p>Sample React Chat UIKit DemoApp v1.0.6</p>
6060
<br />
61-
<p>React Chat UIKit v0.1.8</p>
61+
<p>React Chat UIKit v0.2.1</p>
6262
<br />
6363
<p><Copyright /></p>
6464
</div>

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

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

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.1.8",
13+
"quickblox-react-ui-kit": "^0.2.1",
1414
"quickblox": "^2.15.5",
1515
"react": "^18.2.0",
1616
"react-dom": "^18.2.0",

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
} from 'quickblox-react-ui-kit';
1111
import { QBConfig } from './QBconfig';
1212
import './App.css';
13-
1413
function App() {
1514

1615
const currentUser: LoginData = {
@@ -80,6 +79,12 @@ function App() {
8079
}
8180
}, []);
8281

82+
// const { proxyConfig } = QBConfig.configAIApi.AIAnswerAssistWidgetConfig;
83+
//
84+
// const defaultAIAnswer = UseDefaultAIAssistAnswerWidget({
85+
// ...proxyConfig,
86+
// });
87+
8388
return (
8489
<div>
8590
<QuickBloxUIKitProvider
@@ -95,7 +100,12 @@ function App() {
95100
// React states indicating the ability to render UI
96101
isSDKInitialized && isUserAuthorized
97102
?
98-
<QuickBloxUIKitDesktopLayout />
103+
<QuickBloxUIKitDesktopLayout
104+
// AIAssist={{
105+
// enabled: true,
106+
// default: true,
107+
// }}
108+
/>
99109
:
100110
<div>wait while SDK is initializing...</div>
101111
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Getting Started with Create React App
2+
3+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4+
5+
## Available Scripts
6+
7+
In the project directory, you can run:
8+
9+
### `npm start`
10+
11+
Runs the app in the development mode.\
12+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13+
14+
The page will reload if you make edits.\
15+
You will also see any lint errors in the console.
16+
17+
### `npm test`
18+
19+
Launches the test runner in the interactive watch mode.\
20+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21+
22+
### `npm run build`
23+
24+
Builds the app for production to the `build` folder.\
25+
It correctly bundles React in production mode and optimizes the build for the best performance.
26+
27+
The build is minified and the filenames include the hashes.\
28+
Your app is ready to be deployed!
29+
30+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31+
32+
### `npm run eject`
33+
34+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35+
36+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37+
38+
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39+
40+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41+
42+
## Learn More
43+
44+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45+
46+
To learn React, check out the [React documentation](https://reactjs.org/).

0 commit comments

Comments
 (0)