@rhinon/botsdk-test 0.0.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/README.md +346 -0
- package/dist/index.html +1 -0
- package/dist/rhinonbot.js +2 -0
- package/dist/rhinonbot.js.LICENSE.txt +48 -0
- package/dist/types.d.ts +33 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-dom.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @license React
|
|
15
|
+
* react-jsx-runtime.production.min.js
|
|
16
|
+
*
|
|
17
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the MIT license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @license React
|
|
25
|
+
* react.production.min.js
|
|
26
|
+
*
|
|
27
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the MIT license found in the
|
|
30
|
+
* LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @license React
|
|
35
|
+
* scheduler.production.min.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @license lucide-react v0.526.0 - ISC
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the ISC license.
|
|
47
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
48
|
+
*/
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface RhinontechConfig {
|
|
2
|
+
app_id: string;
|
|
3
|
+
admin?: boolean;
|
|
4
|
+
adminTestingMode?: boolean;
|
|
5
|
+
chatbot_config?: ChatbotConfig;
|
|
6
|
+
container?: HTMLElement;
|
|
7
|
+
}
|
|
8
|
+
export interface ChatbotConfig {
|
|
9
|
+
theme?: 'light' | 'dark' | 'system';
|
|
10
|
+
isFreePlan?: boolean;
|
|
11
|
+
currentPlan?: string;
|
|
12
|
+
isBackgroundImage?: boolean;
|
|
13
|
+
backgroundImage?: string;
|
|
14
|
+
isBgFade?: boolean;
|
|
15
|
+
primaryColor?: string;
|
|
16
|
+
secondaryColor?: string;
|
|
17
|
+
chatbotName?: string;
|
|
18
|
+
navigationOptions?: string[];
|
|
19
|
+
popupMessage?: string;
|
|
20
|
+
greetings?: string[];
|
|
21
|
+
primaryLogo?: string;
|
|
22
|
+
secondaryLogo?: string;
|
|
23
|
+
preChatForm?: any[];
|
|
24
|
+
postChatForm?: any;
|
|
25
|
+
ticketForm?: any[];
|
|
26
|
+
}
|
|
27
|
+
export declare function initRhinontech(config: RhinontechConfig): void;
|
|
28
|
+
export declare class ChatBotElement extends HTMLElement {
|
|
29
|
+
setConfig(config: RhinontechConfig): void;
|
|
30
|
+
}
|
|
31
|
+
declare const _default: typeof initRhinontech;
|
|
32
|
+
export default _default;
|
|
33
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CA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"version": "0.0.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"main": "dist/rhinonbot.js",
|
|
10
|
+
"types": "dist/types.d.ts",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "cross-env NODE_ENV=development webpack serve --config tools/webpack/webpack.config.dev.js",
|
|
13
|
+
"build": "npm run build:webpack && npm run build:types",
|
|
14
|
+
"build:webpack": "cross-env NODE_ENV=production webpack --config tools/webpack/webpack.config.prod.js",
|
|
15
|
+
"build:types": "tsc --project tsconfig.declarations.json",
|
|
16
|
+
"serve": "cross-env NODE_ENV=production webpack --config tools/webpack/webpack.config.prod.js && cross-env serve dist/",
|
|
17
|
+
"lint": "eslint --ext .js,.jsx,.ts,.tsx src/"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist/"
|
|
21
|
+
],
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@marshallofsound/webpack-asset-relocator-loader": "^0.5.0",
|
|
24
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.8",
|
|
25
|
+
"@types/js-cookie": "^3.0.6",
|
|
26
|
+
"@types/node": "^18.11.5",
|
|
27
|
+
"@types/react": "^18.0.23",
|
|
28
|
+
"@types/react-dom": "^18.0.7",
|
|
29
|
+
"@types/react-speech-recognition": "^3.9.6",
|
|
30
|
+
"@types/webpack-env": "^1.18.0",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^5.41.0",
|
|
32
|
+
"@typescript-eslint/parser": "^5.41.0",
|
|
33
|
+
"cross-env": "^7.0.3",
|
|
34
|
+
"css-loader": "^6.7.1",
|
|
35
|
+
"dotenv": "^17.2.1",
|
|
36
|
+
"eslint": "^8.26.0",
|
|
37
|
+
"eslint-import-resolver-alias": "^1.1.2",
|
|
38
|
+
"eslint-plugin-import": "^2.26.0",
|
|
39
|
+
"eslint-plugin-react": "^7.31.10",
|
|
40
|
+
"file-loader": "^6.2.0",
|
|
41
|
+
"fork-ts-checker-webpack-plugin": "^7.2.13",
|
|
42
|
+
"html-webpack-plugin": "^5.5.0",
|
|
43
|
+
"less": "^4.1.3",
|
|
44
|
+
"less-loader": "11.1.0",
|
|
45
|
+
"mini-css-extract-plugin": "^2.6.1",
|
|
46
|
+
"react-refresh": "^0.14.0",
|
|
47
|
+
"serve": "^14.0.1",
|
|
48
|
+
"style-loader": "^3.3.1",
|
|
49
|
+
"to-string-loader": "^1.2.0",
|
|
50
|
+
"ts-loader": "9.4.1",
|
|
51
|
+
"typescript": "^4.8.4",
|
|
52
|
+
"webpack": "^5.74.0",
|
|
53
|
+
"webpack-cli": "^4.10.0",
|
|
54
|
+
"webpack-dev-server": "^4.11.1"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@emotion/is-prop-valid": "^1.4.0",
|
|
58
|
+
"axios": "^1.11.0",
|
|
59
|
+
"emoji-picker-react": "^4.13.2",
|
|
60
|
+
"js-cookie": "^3.0.5",
|
|
61
|
+
"lucide-react": "^0.526.0",
|
|
62
|
+
"motion": "^12.23.15",
|
|
63
|
+
"react": "^18.2.0",
|
|
64
|
+
"react-dom": "^18.2.0",
|
|
65
|
+
"react-speech-recognition": "^4.0.1",
|
|
66
|
+
"sass": "^1.89.2",
|
|
67
|
+
"sass-loader": "^16.0.5",
|
|
68
|
+
"socket.io-client": "^4.8.1",
|
|
69
|
+
"zustand": "^5.0.7"
|
|
70
|
+
}
|
|
71
|
+
}
|