@quidgest/chatbot 0.0.1 → 0.0.2
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/components/ChatBot.vue.d.ts +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/index.mjs +0 -0
- package/dist/style.css +3 -947
- package/dist/types/message.type.d.ts +0 -0
- package/dist/types/texts.type.d.ts +0 -0
- package/package.json +50 -50
- package/src/assets/chatbot.png +0 -0
- package/src/assets/styles/styles.scss +118 -116
- package/src/components/ChatBot.vue +365 -365
- package/src/index.ts +4 -4
- package/src/shims-vue.d.ts +1 -1
- package/src/types/message.type.ts +5 -5
- package/src/types/texts.type.ts +2 -2
- package/src/vite-env.d.ts +1 -1
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@quidgest/chatbot",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "UNLICENSED",
|
|
7
|
-
"main": "dist/index.cjs",
|
|
8
|
-
"module": "dist/index.mjs",
|
|
9
|
-
"publishConfig": {
|
|
10
|
-
"access": "public"
|
|
11
|
-
},
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
15
|
-
"import": "./dist/index.mjs",
|
|
16
|
-
"require": "./dist/index.cjs"
|
|
17
|
-
},
|
|
18
|
-
"./*": "./*",
|
|
19
|
-
"./style.css": "./dist/style.css"
|
|
20
|
-
},
|
|
21
|
-
"typings": "types/index.d.ts",
|
|
22
|
-
"files": [
|
|
23
|
-
"dist",
|
|
24
|
-
"src"
|
|
25
|
-
],
|
|
26
|
-
"scripts": {
|
|
27
|
-
"build": "yarn build-lib",
|
|
28
|
-
"build-lib": "rimraf ./dist && vue-tsc --noEmit && vite build",
|
|
29
|
-
"build-types": "vue-tsc --emitDeclarationOnly --declaration -p tsconfig.json",
|
|
30
|
-
"lint": "eslint 'src/**/*.{ts,vue}'"
|
|
31
|
-
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"axios": "^1.6.7",
|
|
34
|
-
"vue": "^3.3.11",
|
|
35
|
-
"cross-env": "5.0.5"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@types/node": "^20.11.13",
|
|
39
|
-
"@vitejs/plugin-vue": "^4.5.2",
|
|
40
|
-
"rimraf": "^5.0.5",
|
|
41
|
-
"sass": "^1.70.0",
|
|
42
|
-
"typescript": "^5.2.2",
|
|
43
|
-
"vite": "^5.0.8",
|
|
44
|
-
"vite-plugin-dts": "^3.7.3",
|
|
45
|
-
"vue-tsc": "^1.8.25"
|
|
46
|
-
},
|
|
47
|
-
"peerDependencies": {
|
|
48
|
-
"@quidgest/ui": "0.9.7"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@quidgest/chatbot",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.2",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"main": "dist/index.cjs",
|
|
8
|
+
"module": "dist/index.mjs",
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.mjs",
|
|
16
|
+
"require": "./dist/index.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./*": "./*",
|
|
19
|
+
"./style.css": "./dist/style.css"
|
|
20
|
+
},
|
|
21
|
+
"typings": "types/index.d.ts",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"src"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "yarn build-lib",
|
|
28
|
+
"build-lib": "rimraf ./dist && vue-tsc --noEmit && vite build",
|
|
29
|
+
"build-types": "vue-tsc --emitDeclarationOnly --declaration -p tsconfig.json",
|
|
30
|
+
"lint": "eslint 'src/**/*.{ts,vue}'"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"axios": "^1.6.7",
|
|
34
|
+
"vue": "^3.3.11",
|
|
35
|
+
"cross-env": "5.0.5"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "^20.11.13",
|
|
39
|
+
"@vitejs/plugin-vue": "^4.5.2",
|
|
40
|
+
"rimraf": "^5.0.5",
|
|
41
|
+
"sass": "^1.70.0",
|
|
42
|
+
"typescript": "^5.2.2",
|
|
43
|
+
"vite": "^5.0.8",
|
|
44
|
+
"vite-plugin-dts": "^3.7.3",
|
|
45
|
+
"vue-tsc": "^1.8.25"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"@quidgest/ui": "0.9.7"
|
|
49
|
+
}
|
|
50
|
+
}
|
package/src/assets/chatbot.png
CHANGED
|
File without changes
|
|
@@ -1,116 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
1
|
+
.q-chatbot {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
padding: 1rem;
|
|
5
|
+
|
|
6
|
+
input {
|
|
7
|
+
line-height: 1.5rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
& .q-input-group .i-text__field {
|
|
11
|
+
border-radius: 0;
|
|
12
|
+
flex: 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&__input {
|
|
16
|
+
flex: 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__content {
|
|
20
|
+
background-color: white;
|
|
21
|
+
border: 1px solid #eaebec;
|
|
22
|
+
height: 100%;
|
|
23
|
+
width: 100%;
|
|
24
|
+
padding: 2rem 1rem;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
overflow: auto;
|
|
28
|
+
gap: 1.5rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__message-wrapper {
|
|
32
|
+
display: flex;
|
|
33
|
+
max-width: 100%;
|
|
34
|
+
gap: 0.2rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__message-wrapper_right {
|
|
38
|
+
justify-content: flex-end;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&__profile {
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
height: 2rem;
|
|
44
|
+
width: 2rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__message {
|
|
48
|
+
position: relative;
|
|
49
|
+
margin: 0rem 0.5rem;
|
|
50
|
+
max-width: 75%;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
padding: 0.3rem 0.5rem;
|
|
54
|
+
background-color: #eaebec;
|
|
55
|
+
white-space: normal;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&__message-wrapper_right .q-chatbot__message {
|
|
59
|
+
background-color: rgba(#018bd2, 20%);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&__sender {
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
position: absolute;
|
|
65
|
+
color: #7c858d;
|
|
66
|
+
font-size: 0.7rem;
|
|
67
|
+
left: 0;
|
|
68
|
+
top: -1rem;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__timestamp {
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
position: absolute;
|
|
74
|
+
color: #7c858d;
|
|
75
|
+
font-size: 0.7rem;
|
|
76
|
+
right: 0;
|
|
77
|
+
top: -1rem;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__message-loading {
|
|
81
|
+
display: flex;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: 0.3rem;
|
|
85
|
+
|
|
86
|
+
div {
|
|
87
|
+
background-color: rgba(#018bd2, 20%);
|
|
88
|
+
border-radius: 50%;
|
|
89
|
+
width: 0.5rem;
|
|
90
|
+
height: 0.5rem;
|
|
91
|
+
animation: dotPulse 1.5s infinite;
|
|
92
|
+
|
|
93
|
+
&:nth-child(1) {
|
|
94
|
+
animation-delay: 0s;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:nth-child(2) {
|
|
98
|
+
animation-delay: 0.5s;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&:nth-child(3) {
|
|
102
|
+
animation-delay: 1s;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@keyframes dotPulse {
|
|
109
|
+
0% {
|
|
110
|
+
opacity: 0.5;
|
|
111
|
+
}
|
|
112
|
+
50% {
|
|
113
|
+
opacity: 1;
|
|
114
|
+
}
|
|
115
|
+
100% {
|
|
116
|
+
opacity: 0.5;
|
|
117
|
+
}
|
|
118
|
+
}
|