animabot-chatbot 1.0.0 → 1.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/dist/.htaccess +3 -0
- package/package.json +5 -1
- package/.eslintrc.cjs +0 -21
- package/index.html +0 -44
- package/src/assets/fonts/calibri/Calibri-Bold.woff +0 -0
- package/src/assets/fonts/calibri/Calibri-Bold.woff2 +0 -0
- package/src/assets/fonts/calibri/Calibri-BoldItalic.woff +0 -0
- package/src/assets/fonts/calibri/Calibri-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/calibri/Calibri-Italic.woff +0 -0
- package/src/assets/fonts/calibri/Calibri-Italic.woff2 +0 -0
- package/src/assets/fonts/calibri/Calibri-Light.woff +0 -0
- package/src/assets/fonts/calibri/Calibri-Light.woff2 +0 -0
- package/src/assets/fonts/calibri/Calibri-LightItalic.woff +0 -0
- package/src/assets/fonts/calibri/Calibri-LightItalic.woff2 +0 -0
- package/src/assets/fonts/calibri/Calibri.woff +0 -0
- package/src/assets/fonts/calibri/Calibri.woff2 +0 -0
- package/src/assets/fonts/calibri/stylesheet.css +0 -54
- package/src/assets/fonts/lato/Lato-Black.woff +0 -0
- package/src/assets/fonts/lato/Lato-Black.woff2 +0 -0
- package/src/assets/fonts/lato/Lato-BlackItalic.woff +0 -0
- package/src/assets/fonts/lato/Lato-BlackItalic.woff2 +0 -0
- package/src/assets/fonts/lato/Lato-Bold.woff +0 -0
- package/src/assets/fonts/lato/Lato-Bold.woff2 +0 -0
- package/src/assets/fonts/lato/Lato-BoldItalic.woff +0 -0
- package/src/assets/fonts/lato/Lato-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/lato/Lato-Hairline.woff +0 -0
- package/src/assets/fonts/lato/Lato-Hairline.woff2 +0 -0
- package/src/assets/fonts/lato/Lato-HairlineItalic.woff +0 -0
- package/src/assets/fonts/lato/Lato-HairlineItalic.woff2 +0 -0
- package/src/assets/fonts/lato/Lato-Italic.woff +0 -0
- package/src/assets/fonts/lato/Lato-Italic.woff2 +0 -0
- package/src/assets/fonts/lato/Lato-Light.woff +0 -0
- package/src/assets/fonts/lato/Lato-Light.woff2 +0 -0
- package/src/assets/fonts/lato/Lato-LightItalic.woff +0 -0
- package/src/assets/fonts/lato/Lato-LightItalic.woff2 +0 -0
- package/src/assets/fonts/lato/Lato-Regular.woff +0 -0
- package/src/assets/fonts/lato/Lato-Regular.woff2 +0 -0
- package/src/assets/fonts/lato/stylesheet.css +0 -90
- package/src/assets/fonts/roboto/Roboto-Black.woff +0 -0
- package/src/assets/fonts/roboto/Roboto-Black.woff2 +0 -0
- package/src/assets/fonts/roboto/Roboto-BlackItalic.woff +0 -0
- package/src/assets/fonts/roboto/Roboto-BlackItalic.woff2 +0 -0
- package/src/assets/fonts/roboto/Roboto-Bold.woff +0 -0
- package/src/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
- package/src/assets/fonts/roboto/Roboto-BoldItalic.woff +0 -0
- package/src/assets/fonts/roboto/Roboto-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/roboto/Roboto-Italic.woff +0 -0
- package/src/assets/fonts/roboto/Roboto-Italic.woff2 +0 -0
- package/src/assets/fonts/roboto/Roboto-Light.woff +0 -0
- package/src/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
- package/src/assets/fonts/roboto/Roboto-LightItalic.woff +0 -0
- package/src/assets/fonts/roboto/Roboto-LightItalic.woff2 +0 -0
- package/src/assets/fonts/roboto/Roboto-Medium.woff +0 -0
- package/src/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
- package/src/assets/fonts/roboto/Roboto-MediumItalic.woff +0 -0
- package/src/assets/fonts/roboto/Roboto-MediumItalic.woff2 +0 -0
- package/src/assets/fonts/roboto/Roboto-Regular.woff +0 -0
- package/src/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
- package/src/assets/fonts/roboto/Roboto-Thin.woff +0 -0
- package/src/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
- package/src/assets/fonts/roboto/Roboto-ThinItalic.woff +0 -0
- package/src/assets/fonts/roboto/Roboto-ThinItalic.woff2 +0 -0
- package/src/assets/fonts/roboto/demo.html +0 -511
- package/src/assets/fonts/roboto/stylesheet.css +0 -108
- package/src/assets/fonts/times-new-roman/TimesNewRomanPS-BoldItalicMT.woff +0 -0
- package/src/assets/fonts/times-new-roman/TimesNewRomanPS-BoldItalicMT.woff2 +0 -0
- package/src/assets/fonts/times-new-roman/TimesNewRomanPS-BoldMT.woff +0 -0
- package/src/assets/fonts/times-new-roman/TimesNewRomanPS-BoldMT.woff2 +0 -0
- package/src/assets/fonts/times-new-roman/TimesNewRomanPS-ItalicMT.woff +0 -0
- package/src/assets/fonts/times-new-roman/TimesNewRomanPS-ItalicMT.woff2 +0 -0
- package/src/assets/fonts/times-new-roman/TimesNewRomanPSMT.woff +0 -0
- package/src/assets/fonts/times-new-roman/TimesNewRomanPSMT.woff2 +0 -0
- package/src/assets/fonts/times-new-roman/stylesheet.css +0 -36
- package/src/assets/react.svg +0 -1
- package/src/components/chatbot/AudioBubble.jsx +0 -28
- package/src/components/chatbot/Chatbot.jsx +0 -32
- package/src/components/chatbot/ChatbotHeader.jsx +0 -44
- package/src/components/chatbot/ChatbotIconButton.jsx +0 -26
- package/src/components/chatbot/ChatbotInput.jsx +0 -32
- package/src/components/chatbot/ChatbotWindow.jsx +0 -194
- package/src/components/chatbot/ImageBubble.jsx +0 -56
- package/src/components/chatbot/LinkBubble.jsx +0 -29
- package/src/components/chatbot/MessageBubble.jsx +0 -52
- package/src/components/chatbot/OptionBubble.jsx +0 -25
- package/src/components/chatbot/PdfBubble.jsx +0 -62
- package/src/components/chatbot/VideoBubble.jsx +0 -35
- package/src/components/fontImport.jsx +0 -31
- package/src/main.jsx +0 -96
- package/vite.config.js +0 -25
package/dist/.htaccess
ADDED
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "animabot-chatbot",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/chatbot.umd.js",
|
|
7
7
|
"description": "Chatbot empaquetado en UMD para uso en sitios web.",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
8
12
|
"keywords": [
|
|
9
13
|
"chatbot",
|
|
10
14
|
"umd",
|
package/.eslintrc.cjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
env: { browser: true, es2020: true },
|
|
4
|
-
extends: [
|
|
5
|
-
'eslint:recommended',
|
|
6
|
-
'plugin:react/recommended',
|
|
7
|
-
'plugin:react/jsx-runtime',
|
|
8
|
-
'plugin:react-hooks/recommended',
|
|
9
|
-
],
|
|
10
|
-
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
|
11
|
-
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
|
|
12
|
-
settings: { react: { version: '18.2' } },
|
|
13
|
-
plugins: ['react-refresh'],
|
|
14
|
-
rules: {
|
|
15
|
-
'react/jsx-no-target-blank': 'off',
|
|
16
|
-
'react-refresh/only-export-components': [
|
|
17
|
-
'warn',
|
|
18
|
-
{ allowConstantExport: true },
|
|
19
|
-
],
|
|
20
|
-
},
|
|
21
|
-
}
|
package/index.html
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8" />
|
|
6
|
-
<!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" /> -->
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
-
<title>Animabot</title>
|
|
9
|
-
</head>
|
|
10
|
-
|
|
11
|
-
<body>
|
|
12
|
-
<div id="root"></div>
|
|
13
|
-
<script type="module" src="/src/main.jsx"></script>
|
|
14
|
-
</body>
|
|
15
|
-
<style>
|
|
16
|
-
* {
|
|
17
|
-
margin: 0;
|
|
18
|
-
padding: 0;
|
|
19
|
-
box-sizing: border-box;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.window {
|
|
23
|
-
overflow-y: scroll;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.window::-webkit-scrollbar {
|
|
27
|
-
width: 12px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.window::-webkit-scrollbar-track {
|
|
31
|
-
background: #f1f1f1;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.window::-webkit-scrollbar-thumb {
|
|
35
|
-
background: #888;
|
|
36
|
-
border-radius: 10px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.window::-webkit-scrollbar-thumb:hover {
|
|
40
|
-
background: #555;
|
|
41
|
-
}
|
|
42
|
-
</style>
|
|
43
|
-
|
|
44
|
-
</html>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: 'Calibri';
|
|
3
|
-
src: url('Calibri-Bold.woff2') format('woff2'),
|
|
4
|
-
url('Calibri-Bold.woff') format('woff');
|
|
5
|
-
font-weight: bold;
|
|
6
|
-
font-style: normal;
|
|
7
|
-
font-display: swap;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@font-face {
|
|
11
|
-
font-family: 'Calibri';
|
|
12
|
-
src: url('Calibri.woff2') format('woff2'),
|
|
13
|
-
url('Calibri.woff') format('woff');
|
|
14
|
-
font-weight: normal;
|
|
15
|
-
font-style: normal;
|
|
16
|
-
font-display: swap;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@font-face {
|
|
20
|
-
font-family: 'Calibri';
|
|
21
|
-
src: url('Calibri-Italic.woff2') format('woff2'),
|
|
22
|
-
url('Calibri-Italic.woff') format('woff');
|
|
23
|
-
font-weight: normal;
|
|
24
|
-
font-style: italic;
|
|
25
|
-
font-display: swap;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@font-face {
|
|
29
|
-
font-family: 'Calibri';
|
|
30
|
-
src: url('Calibri-Light.woff2') format('woff2'),
|
|
31
|
-
url('Calibri-Light.woff') format('woff');
|
|
32
|
-
font-weight: 300;
|
|
33
|
-
font-style: normal;
|
|
34
|
-
font-display: swap;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@font-face {
|
|
38
|
-
font-family: 'Calibri';
|
|
39
|
-
src: url('Calibri-LightItalic.woff2') format('woff2'),
|
|
40
|
-
url('Calibri-LightItalic.woff') format('woff');
|
|
41
|
-
font-weight: 300;
|
|
42
|
-
font-style: italic;
|
|
43
|
-
font-display: swap;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@font-face {
|
|
47
|
-
font-family: 'Calibri';
|
|
48
|
-
src: url('Calibri-BoldItalic.woff2') format('woff2'),
|
|
49
|
-
url('Calibri-BoldItalic.woff') format('woff');
|
|
50
|
-
font-weight: bold;
|
|
51
|
-
font-style: italic;
|
|
52
|
-
font-display: swap;
|
|
53
|
-
}
|
|
54
|
-
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: 'Lato';
|
|
3
|
-
src: url('Lato-BoldItalic.woff2') format('woff2'),
|
|
4
|
-
url('Lato-BoldItalic.woff') format('woff');
|
|
5
|
-
font-weight: bold;
|
|
6
|
-
font-style: italic;
|
|
7
|
-
font-display: swap;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@font-face {
|
|
11
|
-
font-family: 'Lato';
|
|
12
|
-
src: url('Lato-Bold.woff2') format('woff2'),
|
|
13
|
-
url('Lato-Bold.woff') format('woff');
|
|
14
|
-
font-weight: bold;
|
|
15
|
-
font-style: normal;
|
|
16
|
-
font-display: swap;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@font-face {
|
|
20
|
-
font-family: 'Lato';
|
|
21
|
-
src: url('Lato-Black.woff2') format('woff2'),
|
|
22
|
-
url('Lato-Black.woff') format('woff');
|
|
23
|
-
font-weight: 900;
|
|
24
|
-
font-style: normal;
|
|
25
|
-
font-display: swap;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@font-face {
|
|
29
|
-
font-family: 'Lato';
|
|
30
|
-
src: url('Lato-BlackItalic.woff2') format('woff2'),
|
|
31
|
-
url('Lato-BlackItalic.woff') format('woff');
|
|
32
|
-
font-weight: 900;
|
|
33
|
-
font-style: italic;
|
|
34
|
-
font-display: swap;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@font-face {
|
|
38
|
-
font-family: 'Lato Hairline';
|
|
39
|
-
src: url('Lato-Hairline.woff2') format('woff2'),
|
|
40
|
-
url('Lato-Hairline.woff') format('woff');
|
|
41
|
-
font-weight: 300;
|
|
42
|
-
font-style: normal;
|
|
43
|
-
font-display: swap;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@font-face {
|
|
47
|
-
font-family: 'Lato';
|
|
48
|
-
src: url('Lato-Light.woff2') format('woff2'),
|
|
49
|
-
url('Lato-Light.woff') format('woff');
|
|
50
|
-
font-weight: 300;
|
|
51
|
-
font-style: normal;
|
|
52
|
-
font-display: swap;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@font-face {
|
|
56
|
-
font-family: 'Lato';
|
|
57
|
-
src: url('Lato-Italic.woff2') format('woff2'),
|
|
58
|
-
url('Lato-Italic.woff') format('woff');
|
|
59
|
-
font-weight: normal;
|
|
60
|
-
font-style: italic;
|
|
61
|
-
font-display: swap;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@font-face {
|
|
65
|
-
font-family: 'Lato';
|
|
66
|
-
src: url('Lato-LightItalic.woff2') format('woff2'),
|
|
67
|
-
url('Lato-LightItalic.woff') format('woff');
|
|
68
|
-
font-weight: 300;
|
|
69
|
-
font-style: italic;
|
|
70
|
-
font-display: swap;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@font-face {
|
|
74
|
-
font-family: 'Lato Hairline';
|
|
75
|
-
src: url('Lato-HairlineItalic.woff2') format('woff2'),
|
|
76
|
-
url('Lato-HairlineItalic.woff') format('woff');
|
|
77
|
-
font-weight: 300;
|
|
78
|
-
font-style: italic;
|
|
79
|
-
font-display: swap;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@font-face {
|
|
83
|
-
font-family: 'Lato';
|
|
84
|
-
src: url('Lato-Regular.woff2') format('woff2'),
|
|
85
|
-
url('Lato-Regular.woff') format('woff');
|
|
86
|
-
font-weight: normal;
|
|
87
|
-
font-style: normal;
|
|
88
|
-
font-display: swap;
|
|
89
|
-
}
|
|
90
|
-
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|