@fullsession.io/fs-feedback-widget 1.3.7 → 1.3.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullsession.io/fs-feedback-widget",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
4
4
  "scripts": {
5
5
  "build": "rollup -c",
6
6
  "dev": "rollup -c -w",
@@ -9,7 +9,6 @@ fsContainer{
9
9
  align-items: var(--wgPositionHorizintal);
10
10
  padding: 0;
11
11
  z-index: 100000;
12
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
13
12
  }
14
13
  .fsWidget {
15
14
  pointer-events: auto;
@@ -70,6 +69,7 @@ fsContainer{
70
69
  font-size: 15px;
71
70
  color: #ffff;
72
71
  font-weight: 600;
72
+ font-family: system-ui;
73
73
  cursor: pointer;
74
74
 
75
75
  }
@@ -38,50 +38,40 @@
38
38
  export let closeHandlerBeforeFinishing = (email,comment,reactionType) => {};
39
39
 
40
40
 
41
- // const commentButtonDisable = () =>{
41
+ const commentButtonDisable = () =>{
42
42
 
43
- // let source = document.querySelector(".fsTextArea");
44
-
45
- // source.addEventListener('propertychange', commentHandler);
46
-
47
-
48
- // }
49
- const commentHandler = () => {
50
43
  let input = document.querySelector(".fsTextArea");
51
-
52
- if (input.value=== "") {
44
+
45
+ checkTextAreaInterval = setInterval(() => {
46
+ console.log(input.value)
47
+ if (input.value=== "") {
53
48
  buttonState = false; //button remains disabled
54
49
  } else {
55
50
  buttonState = true; //button is enabled
56
51
  }
57
- comment = "";
58
- comment = input.value;
59
- console.log(input.value)
60
- }
52
+ }, 500);
53
+
54
+
55
+ }
61
56
 
62
- // const EmailButtonDisable = () =>{
63
-
64
- // let source = document.querySelector("#fsEmailTextArea");
57
+ const EmailButtonDisable = () =>{
65
58
 
66
- // source.addEventListener('propertychange', emailHandler);
67
-
68
-
69
- // }
70
-
71
- const emailHandler = ()=> {
72
59
  let input = document.querySelector("#fsEmailTextArea");
73
-
74
- if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(input.value)) || input.value ==="") {
60
+
61
+ checkEmailAreaInterval = setInterval(() => {
62
+ console.log(input.value)
63
+ if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(input.value)) || input.value ==="") {
75
64
  buttonState = false; //button remains disabled
76
65
  } else {
77
66
  buttonState = true; //button is enabled
78
- email = "";
79
- email = document.getElementById("fsEmailTextArea").value;
80
67
  }
81
-
68
+ email = "";
69
+ email = document.getElementById("fsEmailTextArea").value;
82
70
 
83
-
84
- }
71
+ }, 500);
72
+
73
+
74
+ }
85
75
 
86
76
 
87
77
  const changeStyle = (prevState) =>{
@@ -148,7 +138,7 @@
148
138
  document.querySelector(".fsTextArea").value="";
149
139
  buttonState = false
150
140
  widgetComponent = state;
151
-
141
+ comment = document.getElementsByClassName("fsTextArea")[0].value;
152
142
  }
153
143
 
154
144
  const endEmailInterval =()=> {
@@ -266,7 +256,7 @@
266
256
 
267
257
  <div class="fsTextAreaCont" >
268
258
  <div class="fsPointerDiv" id="fsPointer" ></div>
269
- <textarea class="fsTextArea" placeholder="Tell us your experience..." on:keyup={() => commentHandler()}></textarea>
259
+ <textarea class="fsTextArea" placeholder="Tell us your experience..." on:click={() => commentButtonDisable()}></textarea>
270
260
  </div>
271
261
 
272
262
  <div class="fsFooter">
@@ -286,8 +276,8 @@
286
276
  <div id="fsEmailText">
287
277
  {feedbackData.wgEmailReqMsg}
288
278
  </div>
289
- <div id="fsEmailInputCont">
290
- <input type="text" id="fsEmailTextArea" placeholder="email@domain.com" on:keyup={() => emailHandler()}>
279
+ <div id="fsEmailInputCont" on:click={() => EmailButtonDisable()}>
280
+ <input type="text" id="fsEmailTextArea" placeholder="email@domain.com">
291
281
  </div>
292
282
  <div class="fsEmailFooter">
293
283
  <p id="fsSkipText" on:click={() => closeHandler(email,comment,reactionType)}><u>Skip</u></p>
@@ -3,7 +3,6 @@
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  height: 190px;
6
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
7
6
  }
8
7
  .fsIcons {
9
8
  display: flex;
@@ -26,20 +25,17 @@
26
25
  flex-direction: column;
27
26
  align-items: center;
28
27
  height: 22px;
29
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
30
28
  }
31
29
 
32
30
  .fsReactionText {
33
31
  font-size: 12px;
34
32
  display: none;
35
33
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
36
- margin-top: 0px;
37
34
 
38
35
  }
39
36
  .fsIconTextCont:hover{
40
37
  pointer-events: auto;
41
38
  cursor: pointer;
42
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
43
39
  }
44
40
  .fsReactionIcon:hover + .fsReactionText {
45
41
  display: block;
@@ -52,7 +48,6 @@
52
48
  flex-direction: column;
53
49
  height: 291px;
54
50
  pointer-events: auto;
55
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
56
51
  }
57
52
  .fsTextAreaCont{
58
53
  pointer-events: auto;
@@ -60,8 +55,6 @@
60
55
  height: 140px;
61
56
  background-color: #eaeaeb;
62
57
  margin-top: 17%;
63
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
64
-
65
58
  }
66
59
  .fsTextArea{
67
60
  border: 0px;
@@ -72,7 +65,6 @@
72
65
  outline: none;
73
66
  margin-top: 4%;
74
67
  resize: none;
75
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
76
68
 
77
69
  }
78
70
  .fsSendButtonCommentComponent{
@@ -81,8 +73,7 @@
81
73
  font-size: 12px;
82
74
  text-align: center;
83
75
  margin-top: 7px;
84
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
85
-
76
+
86
77
  }
87
78
  .fsSendButtonContCommentComp{
88
79
  pointer-events: auto;
@@ -95,8 +86,7 @@
95
86
  margin-right: 11px;
96
87
  cursor: pointer;
97
88
  border: 0px;
98
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
99
-
89
+
100
90
  }
101
91
 
102
92
  .fsCommentButtonContDisable{
@@ -110,8 +100,6 @@
110
100
  margin-right: 11px;
111
101
  cursor:not-allowed;
112
102
  border: 0px;
113
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
114
-
115
103
  }
116
104
  .fsCommentButtonTxtDisable{
117
105
  pointer-events: auto;
@@ -119,15 +107,11 @@
119
107
  font-size: 12px;
120
108
  text-align: center;
121
109
  margin-top: 7px;
122
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
123
-
124
110
  }
125
111
  .fsFooter{
126
112
  pointer-events: auto;
127
113
  display: flex;
128
114
  justify-content: flex-end;
129
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
130
-
131
115
  }
132
116
 
133
117
  .fsIcons-second{
@@ -136,8 +120,6 @@
136
120
  flex-direction: row;
137
121
  justify-content: space-evenly;
138
122
  margin-top: 6%;
139
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
140
-
141
123
  }
142
124
  .fsPointerDiv{
143
125
  width: 0;
@@ -170,8 +152,6 @@
170
152
  display: flex;
171
153
  flex-direction: column;
172
154
  height: 220px;
173
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
174
-
175
155
  }
176
156
  #fsEmailInputCont{
177
157
  pointer-events: auto;
@@ -183,8 +163,6 @@
183
163
  /* align-items: center; */
184
164
  justify-content: center;
185
165
  margin-top: 10%;
186
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
187
-
188
166
 
189
167
  }
190
168
  #fsEmailTextArea{
@@ -193,8 +171,6 @@
193
171
  border: 0px;
194
172
  background-color: #eaeaeb;
195
173
  outline: none;
196
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
197
-
198
174
  }
199
175
  #fsEmailText{
200
176
  width: 80%;
@@ -203,16 +179,12 @@
203
179
  margin-top: 8%;
204
180
  line-height: 1.29;
205
181
  font-size: 17px;
206
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
207
-
208
182
  }
209
183
  .fsEmailFooter{
210
184
  pointer-events: auto;
211
185
  display: flex;
212
186
  justify-content: flex-end;
213
187
  flex-direction: row;
214
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
215
-
216
188
  }
217
189
  #fsSkipText{
218
190
  color: #908f8f;
@@ -221,12 +193,8 @@
221
193
  margin-top: 6%;
222
194
  margin-right: 4%;
223
195
  letter-spacing: normal;
224
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
225
-
226
196
 
227
197
  }
228
198
  #fsSkipText:hover{
229
199
  color: #666666;
230
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
231
-
232
200
  }
package/dist/bundle.css DELETED
@@ -1,329 +0,0 @@
1
- fsContainer{
2
- width: 100%;
3
- display: flex;
4
- flex-direction: var(--wgPositionVertical);
5
- position: fixed;
6
- top: 0; right: 0; bottom: 0; left: 0;
7
- height: 100%;
8
- pointer-events: none;
9
- align-items: var(--wgPositionHorizintal);
10
- padding: 0;
11
- z-index: 100000;
12
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
13
- }
14
- .fsWidget {
15
- pointer-events: auto;
16
- background-color: var(--widgetColor);
17
- width: 34px;
18
- height: 112px;
19
- border-top-left-radius:var(--widgetLeftSideBorder) ;
20
- border-bottom-left-radius: var(--widgetLeftSideBorder);
21
- border-top-right-radius: var(--widgetRightSideBorder) ;
22
- border-bottom-right-radius: var(--widgetRightSideBorder);
23
- box-shadow: 0.2px 0.2px 0.2px rgb(133, 130, 130);
24
- display: flex;
25
- flex-direction: column;
26
- align-items: center;
27
- justify-content: space-evenly;
28
- cursor: pointer;
29
- margin-top: 5px;
30
- }
31
- #fsMainIcon {
32
- width: 60%;
33
- margin-left: 4%;
34
- cursor: pointer;
35
- }
36
- #fsFeedbackTxt {
37
- color: var(--widgetTextColor);
38
- font-size: 15px;
39
- writing-mode: vertical-lr;
40
- transform: rotate(180deg);
41
- cursor: pointer;
42
- font-size-adjust: 0.40;
43
- }
44
- .fsWidget:hover {
45
- width: 35px;
46
- -webkit-box-shadow: 0px 0px 35px 2px rgba(0, 0, 0, 0.24);
47
- box-shadow: 0px 0px 35px 2px rgba(0, 0, 0, 0.24);
48
- }
49
- .fsCont {
50
- pointer-events: auto;
51
- width: 320px;
52
- height: fit-content;
53
- background-color: rgb(255, 255, 255);
54
- margin-right: var(--widgetMarginRight);
55
- margin-left: var(--widgetMarginLeft);
56
- -webkit-box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
57
- box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
58
- }
59
- .fsThanksMessageCont{
60
- pointer-events: auto;
61
- width: 320px;
62
- height: 104px;
63
- background-color: rgb(255, 255, 255);
64
- margin-right: var(--widgetMarginRight);
65
- margin-left: var(--widgetMarginLeft);
66
- -webkit-box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
67
- box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
68
- }
69
- #fsCloseIcon{
70
- font-size: 15px;
71
- color: #ffff;
72
- font-weight: 600;
73
- cursor: pointer;
74
-
75
- }
76
- .fsCloseCont{
77
- pointer-events: auto;
78
- background-color: #4d5167;
79
- width: 27px;
80
- height: 27px;
81
- border-radius: 50%;
82
- display: flex;
83
- justify-content: center;
84
- align-items: center;
85
- margin-top: -15px;
86
- margin-left: 85%;
87
- cursor: pointer;
88
- }
89
-
90
-
91
-
92
-
93
-
94
- /* @media (min-width: 640px) {
95
- body {
96
- max-width: none;
97
- }
98
- } */.fsReactionsContainer {
99
- pointer-events: auto;
100
- display: flex;
101
- flex-direction: column;
102
- height: 190px;
103
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
104
- }
105
- .fsIcons {
106
- display: flex;
107
- flex-direction: row;
108
- justify-content: space-evenly;
109
- margin-top: 11%;
110
- }
111
- #fsTxt {
112
- font-size: 17px;
113
- display: flex;
114
- text-align: center;
115
- margin-top: 5%;
116
- width: 61%;
117
- margin-left: 19%;
118
- }
119
-
120
- .fsIconTextCont {
121
- pointer-events: auto;
122
- display: flex;
123
- flex-direction: column;
124
- align-items: center;
125
- height: 22px;
126
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
127
- }
128
-
129
- .fsReactionText {
130
- font-size: 12px;
131
- display: none;
132
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
133
- margin-top: 0px;
134
-
135
- }
136
- .fsIconTextCont:hover{
137
- pointer-events: auto;
138
- cursor: pointer;
139
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
140
- }
141
- .fsReactionIcon:hover + .fsReactionText {
142
- display: block;
143
- opacity: 0.8;
144
- }
145
-
146
- .fsCommentContainer{
147
- pointer-events: auto;
148
- display: flex;
149
- flex-direction: column;
150
- height: 291px;
151
- pointer-events: auto;
152
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
153
- }
154
- .fsTextAreaCont{
155
- pointer-events: auto;
156
- width: 100%;
157
- height: 140px;
158
- background-color: #eaeaeb;
159
- margin-top: 17%;
160
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
161
-
162
- }
163
- .fsTextArea{
164
- border: 0px;
165
- width: 85%;
166
- height: 120px;
167
- background-color: #eaeaeb;
168
- margin-left: 6%;
169
- outline: none;
170
- margin-top: 4%;
171
- resize: none;
172
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
173
-
174
- }
175
- .fsSendButtonCommentComponent{
176
- pointer-events: auto;
177
- color: #ffff;
178
- font-size: 12px;
179
- text-align: center;
180
- margin-top: 7px;
181
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
182
-
183
- }
184
- .fsSendButtonContCommentComp{
185
- pointer-events: auto;
186
- background-color: var(--buttonColor);
187
- width: 50px;
188
- height: 29px;
189
- box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 3px 0px;
190
- border-radius: 3px;
191
- margin-top: 13px;
192
- margin-right: 11px;
193
- cursor: pointer;
194
- border: 0px;
195
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
196
-
197
- }
198
-
199
- .fsCommentButtonContDisable{
200
- pointer-events: auto;
201
- background-color: #cccccc;
202
- width: 50px;
203
- height: 29px;
204
- box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 3px 0px;
205
- border-radius: 3px;
206
- margin-top: 13px;
207
- margin-right: 11px;
208
- cursor:not-allowed;
209
- border: 0px;
210
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
211
-
212
- }
213
- .fsCommentButtonTxtDisable{
214
- pointer-events: auto;
215
- color: black;
216
- font-size: 12px;
217
- text-align: center;
218
- margin-top: 7px;
219
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
220
-
221
- }
222
- .fsFooter{
223
- pointer-events: auto;
224
- display: flex;
225
- justify-content: flex-end;
226
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
227
-
228
- }
229
-
230
- .fsIcons-second{
231
-
232
- display: flex;
233
- flex-direction: row;
234
- justify-content: space-evenly;
235
- margin-top: 6%;
236
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
237
-
238
- }
239
- .fsPointerDiv{
240
- width: 0;
241
- height: 0;
242
- border-left: 3px solid transparent;
243
- margin-top: -8px;
244
- border-right: 5px solid transparent;
245
- border-bottom: 8px solid #eaeaeb;
246
- margin-left: var(--pointerMargin);
247
-
248
-
249
- }
250
- #fsHateDiv{
251
- display: var(--hateDisplay);
252
- }
253
- #fsDislikeDiv{
254
- display: var(--dislikeDisplay);
255
- }
256
- #fsNeutralDiv{
257
- display: var(--neutralDisplay);
258
- }
259
- #fsLikeDiv{
260
- display: var(--likeDisplay);
261
- }
262
- #fsLoveDiv{
263
- display: var(--loveDisplay);
264
- }
265
- .fsEmailContainer{
266
- pointer-events: auto;
267
- display: flex;
268
- flex-direction: column;
269
- height: 220px;
270
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
271
-
272
- }
273
- #fsEmailInputCont{
274
- pointer-events: auto;
275
- pointer-events: auto;
276
- width: 100%;
277
- height: 46px;
278
- background-color: #eaeaeb;
279
- display: flex;
280
- /* align-items: center; */
281
- justify-content: center;
282
- margin-top: 10%;
283
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
284
-
285
-
286
- }
287
- #fsEmailTextArea{
288
- pointer-events: auto;
289
- text-align: center;
290
- border: 0px;
291
- background-color: #eaeaeb;
292
- outline: none;
293
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
294
-
295
- }
296
- #fsEmailText{
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
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
304
-
305
- }
306
- .fsEmailFooter{
307
- pointer-events: auto;
308
- display: flex;
309
- justify-content: flex-end;
310
- flex-direction: row;
311
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
312
-
313
- }
314
- #fsSkipText{
315
- color: #908f8f;
316
- cursor: pointer;
317
- font-size: 13px;
318
- margin-top: 6%;
319
- margin-right: 4%;
320
- letter-spacing: normal;
321
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
322
-
323
-
324
- }
325
- #fsSkipText:hover{
326
- color: #666666;
327
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
328
-
329
- }