@snf/qa-bot-core 0.1.0
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/README.md +183 -0
- package/build/asset-manifest.json +15 -0
- package/build/chat-icon.svg +3 -0
- package/build/favicon.ico +0 -0
- package/build/index.html +1 -0
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +25 -0
- package/build/robots.txt +3 -0
- package/build/static/css/main.css +2 -0
- package/build/static/css/main.css.map +1 -0
- package/build/static/js/453.chunk.js +2 -0
- package/build/static/js/453.chunk.js.map +1 -0
- package/build/static/js/main.js +3 -0
- package/build/static/js/main.js.LICENSE.txt +67 -0
- package/build/static/js/main.js.map +1 -0
- package/dist/qa-bot-core.js +9 -0
- package/dist/qa-bot-core.js.map +1 -0
- package/dist/qa-bot-core.standalone.js +37 -0
- package/dist/qa-bot-core.standalone.js.map +1 -0
- package/dist/qa-bot-core.umd.cjs +9 -0
- package/dist/qa-bot-core.umd.cjs.map +1 -0
- package/dist/types/components/BotController.d.ts +14 -0
- package/dist/types/components/NewChatButton.d.ts +3 -0
- package/dist/types/components/QABot.d.ts +7 -0
- package/dist/types/components/icons/BaseIcon.d.ts +9 -0
- package/dist/types/components/icons/RefreshIcon.d.ts +3 -0
- package/dist/types/config/constants.d.ts +66 -0
- package/dist/types/config/defaults.d.ts +118 -0
- package/dist/types/config/index.d.ts +11 -0
- package/dist/types/config/types.d.ts +150 -0
- package/dist/types/config.d.ts +47 -0
- package/dist/types/hooks/useChatBotSettings.d.ts +13 -0
- package/dist/types/hooks/useFocusableSendButton.d.ts +5 -0
- package/dist/types/hooks/useKeyboardNavigation.d.ts +6 -0
- package/dist/types/hooks/useThemeColors.d.ts +12 -0
- package/dist/types/lib.d.ts +44 -0
- package/dist/types/standalone.d.ts +8 -0
- package/dist/types/utils/create-bot-flow.d.ts +12 -0
- package/dist/types/utils/deep-merge.d.ts +10 -0
- package/dist/types/utils/flow-merger.d.ts +14 -0
- package/dist/types/utils/flows/qa-flow.d.ts +25 -0
- package/dist/types/utils/getProcessedText.d.ts +4 -0
- package/dist/types/utils/session-utils.d.ts +2 -0
- package/dist/types/utils/validation-utils.d.ts +19 -0
- package/package.json +78 -0
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@snf/qa-bot-core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A configurable chatbot setup for quick integration of RAG-powered Q&A and rating system",
|
|
5
|
+
"main": "./dist/qa-bot-core.umd.cjs",
|
|
6
|
+
"module": "./dist/qa-bot-core.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/qa-bot-core.js",
|
|
10
|
+
"require": "./dist/qa-bot-core.umd.cjs"
|
|
11
|
+
},
|
|
12
|
+
"./standalone": "./dist/qa-bot-core.standalone.js"
|
|
13
|
+
},
|
|
14
|
+
"unpkg": "./dist/qa-bot-core.standalone.js",
|
|
15
|
+
"types": "./dist/types/index.d.ts",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"build"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@rcb-plugins/html-renderer": "^0.3.1",
|
|
22
|
+
"@rcb-plugins/markdown-renderer": "^0.3.1",
|
|
23
|
+
"@rcb-plugins/input-validator": "^0.3.0",
|
|
24
|
+
"react-chatbotify": "^2.2.0",
|
|
25
|
+
"uuid": "^11.1.0"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
29
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@babel/cli": "^7.23.9",
|
|
33
|
+
"@babel/core": "^7.23.9",
|
|
34
|
+
"@babel/preset-env": "^7.23.9",
|
|
35
|
+
"@babel/preset-react": "^7.23.9",
|
|
36
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
37
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
38
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
39
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
40
|
+
"@rollup/plugin-replace": "^5.0.7",
|
|
41
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
42
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
43
|
+
"@testing-library/react": "^13.4.0",
|
|
44
|
+
"@types/react": "^18.2.0",
|
|
45
|
+
"@types/react-dom": "^18.2.0",
|
|
46
|
+
"@types/uuid": "^9.0.0",
|
|
47
|
+
"customize-cra": "^1.0.0",
|
|
48
|
+
"react": "^18.3.1",
|
|
49
|
+
"react-app-rewired": "^2.2.1",
|
|
50
|
+
"react-dom": "^18.3.1",
|
|
51
|
+
"react-scripts": "5.0.1",
|
|
52
|
+
"rollup": "^4.9.6",
|
|
53
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
54
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
55
|
+
"tslib": "^2.6.0",
|
|
56
|
+
"typescript": "^5.3.0",
|
|
57
|
+
"web-vitals": "^2.1.4"
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"start": "react-app-rewired start",
|
|
61
|
+
"build": "react-app-rewired build",
|
|
62
|
+
"build:lib": "rollup -c",
|
|
63
|
+
"prepublishOnly": "npm run build:lib",
|
|
64
|
+
"test": "react-app-rewired test"
|
|
65
|
+
},
|
|
66
|
+
"browserslist": {
|
|
67
|
+
"production": [
|
|
68
|
+
">0.2%",
|
|
69
|
+
"not dead",
|
|
70
|
+
"not op_mini all"
|
|
71
|
+
],
|
|
72
|
+
"development": [
|
|
73
|
+
"last 1 chrome version",
|
|
74
|
+
"last 1 firefox version",
|
|
75
|
+
"last 1 safari version"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
}
|