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

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