@fullsession.io/fs-feedback-widget 1.0.5 → 1.0.7
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/bundle.css +273 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/App.svelte +6 -99
- package/src/main.js +2 -2
- package/src/widgetPages/App.css +92 -0
- package/src/widgetPages/reactionPage.svelte +2 -184
- package/src/widgetPages/reactionpage.css +182 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
|
|
1
2
|
<script>
|
|
2
3
|
import Icons from "../Icons/reactionIcons.svelte";
|
|
3
|
-
|
|
4
|
+
import "../widgetPages/reactionpage.css"
|
|
4
5
|
export let feedbackData;
|
|
5
6
|
$: widgetComponent = 1;
|
|
6
7
|
let reactionNames = ["hate","dislike","neutral","like","love"];
|
|
@@ -135,190 +136,7 @@
|
|
|
135
136
|
|
|
136
137
|
</script>
|
|
137
138
|
|
|
138
|
-
<style>
|
|
139
|
-
.container {
|
|
140
|
-
display: flex;
|
|
141
|
-
flex-direction: column;
|
|
142
|
-
height: 190px;
|
|
143
|
-
}
|
|
144
|
-
.icons {
|
|
145
|
-
display: flex;
|
|
146
|
-
flex-direction: row;
|
|
147
|
-
justify-content: space-evenly;
|
|
148
|
-
margin-top: 11%;
|
|
149
|
-
}
|
|
150
|
-
#txt {
|
|
151
|
-
font-size: 17px;
|
|
152
|
-
display: flex;
|
|
153
|
-
text-align: center;
|
|
154
|
-
margin-top: 5%;
|
|
155
|
-
width: 61%;
|
|
156
|
-
margin-left: 19%;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.iconTextCont {
|
|
160
|
-
display: flex;
|
|
161
|
-
flex-direction: column;
|
|
162
|
-
align-items: center;
|
|
163
|
-
height: 22px;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.reactionText {
|
|
167
|
-
font-size: 9px;
|
|
168
|
-
display: none;
|
|
169
|
-
}
|
|
170
|
-
.iconTextCont:hover{
|
|
171
|
-
cursor: pointer;
|
|
172
|
-
}
|
|
173
|
-
.reactionIcon:hover + .reactionText {
|
|
174
|
-
display: block;
|
|
175
|
-
opacity: 0.8;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.commentContainer{
|
|
179
|
-
display: flex;
|
|
180
|
-
flex-direction: column;
|
|
181
|
-
height: 291px;
|
|
182
|
-
}
|
|
183
|
-
.textAreaCont{
|
|
184
|
-
width: 100%;
|
|
185
|
-
height: 140px;
|
|
186
|
-
background-color: #eaeaeb;
|
|
187
|
-
margin-top: 17%;
|
|
188
|
-
}
|
|
189
|
-
.textArea{
|
|
190
|
-
border: 0px;
|
|
191
|
-
width: 85%;
|
|
192
|
-
height: 120px;
|
|
193
|
-
background-color: #eaeaeb;
|
|
194
|
-
margin-left: 6%;
|
|
195
|
-
outline: none;
|
|
196
|
-
margin-top: 4%;
|
|
197
|
-
resize: none;
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
.SendButtonCommentComponent{
|
|
201
|
-
color: #ffff;
|
|
202
|
-
font-size: 12px;
|
|
203
|
-
text-align: center;
|
|
204
|
-
margin-top: 1px;
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
.sendButtonContCommentComp{
|
|
208
|
-
background-color: var(--buttonColor);
|
|
209
|
-
width: 50px;
|
|
210
|
-
height: 29px;
|
|
211
|
-
box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 3px 0px;
|
|
212
|
-
border-radius: 3px;
|
|
213
|
-
margin-top: 13px;
|
|
214
|
-
margin-right: 11px;
|
|
215
|
-
cursor: pointer;
|
|
216
|
-
border: 0px;
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.CommentButtonContDisable{
|
|
221
|
-
background-color: #cccccc;
|
|
222
|
-
width: 50px;
|
|
223
|
-
height: 29px;
|
|
224
|
-
box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 3px 0px;
|
|
225
|
-
border-radius: 3px;
|
|
226
|
-
margin-top: 13px;
|
|
227
|
-
margin-right: 11px;
|
|
228
|
-
cursor:not-allowed;
|
|
229
|
-
border: 0px;
|
|
230
|
-
}
|
|
231
|
-
.CommentButtonTxtDisable{
|
|
232
|
-
color: black;
|
|
233
|
-
font-size: 12px;
|
|
234
|
-
text-align: center;
|
|
235
|
-
margin-top: 2px;
|
|
236
|
-
}
|
|
237
|
-
.footer{
|
|
238
|
-
display: flex;
|
|
239
|
-
justify-content: flex-end;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.icons-second{
|
|
243
|
-
display: flex;
|
|
244
|
-
flex-direction: row;
|
|
245
|
-
justify-content: space-evenly;
|
|
246
|
-
margin-top: 6%;
|
|
247
|
-
}
|
|
248
|
-
.pointerDiv{
|
|
249
|
-
width: 0;
|
|
250
|
-
height: 0;
|
|
251
|
-
border-left: 3px solid transparent;
|
|
252
|
-
margin-top: -8px;
|
|
253
|
-
border-right: 5px solid transparent;
|
|
254
|
-
border-bottom: 8px solid #eaeaeb;
|
|
255
|
-
margin-left: var(--pointerMargin);
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
#hateDiv{
|
|
260
|
-
display: var(--hateDisplay);
|
|
261
|
-
}
|
|
262
|
-
#dislikeDiv{
|
|
263
|
-
display: var(--dislikeDisplay);
|
|
264
|
-
}
|
|
265
|
-
#neutralDiv{
|
|
266
|
-
display: var(--neutralDisplay);
|
|
267
|
-
}
|
|
268
|
-
#likeDiv{
|
|
269
|
-
display: var(--likeDisplay);
|
|
270
|
-
}
|
|
271
|
-
#loveDiv{
|
|
272
|
-
display: var(--loveDisplay);
|
|
273
|
-
}
|
|
274
|
-
.emailContainer{
|
|
275
|
-
display: flex;
|
|
276
|
-
flex-direction: column;
|
|
277
|
-
height: 220px;
|
|
278
|
-
}
|
|
279
|
-
#emailInputCont{
|
|
280
|
-
width: 100%;
|
|
281
|
-
height: 46px;
|
|
282
|
-
background-color: #eaeaeb;
|
|
283
|
-
display: flex;
|
|
284
|
-
/* align-items: center; */
|
|
285
|
-
justify-content: center;
|
|
286
|
-
margin-top: 10%;
|
|
287
|
-
|
|
288
|
-
}
|
|
289
|
-
#EmailTextArea{
|
|
290
|
-
text-align: center;
|
|
291
|
-
border: 0px;
|
|
292
|
-
background-color: #eaeaeb;
|
|
293
|
-
margin-top:3%;
|
|
294
|
-
outline: none;
|
|
295
|
-
}
|
|
296
|
-
#emailText{
|
|
297
|
-
width: 80%;
|
|
298
|
-
text-align: center;
|
|
299
|
-
margin-left: 11%;
|
|
300
|
-
margin-top: 8%;
|
|
301
|
-
line-height: 1.29;
|
|
302
|
-
font-size: 17px;
|
|
303
|
-
}
|
|
304
|
-
.emailFooter{
|
|
305
|
-
display: flex;
|
|
306
|
-
justify-content: flex-end;
|
|
307
|
-
flex-direction: row;
|
|
308
|
-
}
|
|
309
|
-
#skipText{
|
|
310
|
-
color: #908f8f;
|
|
311
|
-
cursor: pointer;
|
|
312
|
-
font-size: 13px;
|
|
313
|
-
margin-top: 6%;
|
|
314
|
-
margin-right: 4%;
|
|
315
|
-
letter-spacing: normal;
|
|
316
139
|
|
|
317
|
-
}
|
|
318
|
-
#skipText:hover{
|
|
319
|
-
color: #666666;
|
|
320
|
-
}
|
|
321
|
-
</style>
|
|
322
140
|
|
|
323
141
|
{#if widgetComponent === 1}
|
|
324
142
|
<div class="container">
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
height: 190px;
|
|
5
|
+
}
|
|
6
|
+
.icons {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
justify-content: space-evenly;
|
|
10
|
+
margin-top: 11%;
|
|
11
|
+
}
|
|
12
|
+
#txt {
|
|
13
|
+
font-size: 17px;
|
|
14
|
+
display: flex;
|
|
15
|
+
text-align: center;
|
|
16
|
+
margin-top: 5%;
|
|
17
|
+
width: 61%;
|
|
18
|
+
margin-left: 19%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.iconTextCont {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
align-items: center;
|
|
25
|
+
height: 22px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.reactionText {
|
|
29
|
+
font-size: 9px;
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
.iconTextCont:hover{
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
.reactionIcon:hover + .reactionText {
|
|
36
|
+
display: block;
|
|
37
|
+
opacity: 0.8;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.commentContainer{
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
height: 291px;
|
|
44
|
+
}
|
|
45
|
+
.textAreaCont{
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 140px;
|
|
48
|
+
background-color: #eaeaeb;
|
|
49
|
+
margin-top: 17%;
|
|
50
|
+
}
|
|
51
|
+
.textArea{
|
|
52
|
+
border: 0px;
|
|
53
|
+
width: 85%;
|
|
54
|
+
height: 120px;
|
|
55
|
+
background-color: #eaeaeb;
|
|
56
|
+
margin-left: 6%;
|
|
57
|
+
outline: none;
|
|
58
|
+
margin-top: 4%;
|
|
59
|
+
resize: none;
|
|
60
|
+
|
|
61
|
+
}
|
|
62
|
+
.SendButtonCommentComponent{
|
|
63
|
+
color: #ffff;
|
|
64
|
+
font-size: 12px;
|
|
65
|
+
text-align: center;
|
|
66
|
+
margin-top: 1px;
|
|
67
|
+
|
|
68
|
+
}
|
|
69
|
+
.sendButtonContCommentComp{
|
|
70
|
+
background-color: var(--buttonColor);
|
|
71
|
+
width: 50px;
|
|
72
|
+
height: 29px;
|
|
73
|
+
box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 3px 0px;
|
|
74
|
+
border-radius: 3px;
|
|
75
|
+
margin-top: 13px;
|
|
76
|
+
margin-right: 11px;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
border: 0px;
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.CommentButtonContDisable{
|
|
83
|
+
background-color: #cccccc;
|
|
84
|
+
width: 50px;
|
|
85
|
+
height: 29px;
|
|
86
|
+
box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 3px 0px;
|
|
87
|
+
border-radius: 3px;
|
|
88
|
+
margin-top: 13px;
|
|
89
|
+
margin-right: 11px;
|
|
90
|
+
cursor:not-allowed;
|
|
91
|
+
border: 0px;
|
|
92
|
+
}
|
|
93
|
+
.CommentButtonTxtDisable{
|
|
94
|
+
color: black;
|
|
95
|
+
font-size: 12px;
|
|
96
|
+
text-align: center;
|
|
97
|
+
margin-top: 2px;
|
|
98
|
+
}
|
|
99
|
+
.footer{
|
|
100
|
+
display: flex;
|
|
101
|
+
justify-content: flex-end;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.icons-second{
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: row;
|
|
107
|
+
justify-content: space-evenly;
|
|
108
|
+
margin-top: 6%;
|
|
109
|
+
}
|
|
110
|
+
.pointerDiv{
|
|
111
|
+
width: 0;
|
|
112
|
+
height: 0;
|
|
113
|
+
border-left: 3px solid transparent;
|
|
114
|
+
margin-top: -8px;
|
|
115
|
+
border-right: 5px solid transparent;
|
|
116
|
+
border-bottom: 8px solid #eaeaeb;
|
|
117
|
+
margin-left: var(--pointerMargin);
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
}
|
|
121
|
+
#hateDiv{
|
|
122
|
+
display: var(--hateDisplay);
|
|
123
|
+
}
|
|
124
|
+
#dislikeDiv{
|
|
125
|
+
display: var(--dislikeDisplay);
|
|
126
|
+
}
|
|
127
|
+
#neutralDiv{
|
|
128
|
+
display: var(--neutralDisplay);
|
|
129
|
+
}
|
|
130
|
+
#likeDiv{
|
|
131
|
+
display: var(--likeDisplay);
|
|
132
|
+
}
|
|
133
|
+
#loveDiv{
|
|
134
|
+
display: var(--loveDisplay);
|
|
135
|
+
}
|
|
136
|
+
.emailContainer{
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
height: 220px;
|
|
140
|
+
}
|
|
141
|
+
#emailInputCont{
|
|
142
|
+
width: 100%;
|
|
143
|
+
height: 46px;
|
|
144
|
+
background-color: #eaeaeb;
|
|
145
|
+
display: flex;
|
|
146
|
+
/* align-items: center; */
|
|
147
|
+
justify-content: center;
|
|
148
|
+
margin-top: 10%;
|
|
149
|
+
|
|
150
|
+
}
|
|
151
|
+
#EmailTextArea{
|
|
152
|
+
text-align: center;
|
|
153
|
+
border: 0px;
|
|
154
|
+
background-color: #eaeaeb;
|
|
155
|
+
margin-top:3%;
|
|
156
|
+
outline: none;
|
|
157
|
+
}
|
|
158
|
+
#emailText{
|
|
159
|
+
width: 80%;
|
|
160
|
+
text-align: center;
|
|
161
|
+
margin-left: 11%;
|
|
162
|
+
margin-top: 8%;
|
|
163
|
+
line-height: 1.29;
|
|
164
|
+
font-size: 17px;
|
|
165
|
+
}
|
|
166
|
+
.emailFooter{
|
|
167
|
+
display: flex;
|
|
168
|
+
justify-content: flex-end;
|
|
169
|
+
flex-direction: row;
|
|
170
|
+
}
|
|
171
|
+
#skipText{
|
|
172
|
+
color: #908f8f;
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
font-size: 13px;
|
|
175
|
+
margin-top: 6%;
|
|
176
|
+
margin-right: 4%;
|
|
177
|
+
letter-spacing: normal;
|
|
178
|
+
|
|
179
|
+
}
|
|
180
|
+
#skipText:hover{
|
|
181
|
+
color: #666666;
|
|
182
|
+
}
|