@fullsession.io/fs-feedback-widget 1.9.0 → 1.11.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.
- 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/package.json +1 -1
- package/src/App.svelte +1 -1
- package/src/widgetPages/App.css +5 -4
- package/src/widgetPages/reactionPage.svelte +20 -2
- package/src/widgetPages/reactionpage.css +17 -0
package/package.json
CHANGED
package/src/App.svelte
CHANGED
|
@@ -169,6 +169,7 @@
|
|
|
169
169
|
id: widgetId,
|
|
170
170
|
email: email,
|
|
171
171
|
reaction: Number(reactionType),
|
|
172
|
+
comment: comment,
|
|
172
173
|
type: widgetType,
|
|
173
174
|
};
|
|
174
175
|
}
|
|
@@ -233,7 +234,6 @@
|
|
|
233
234
|
|
|
234
235
|
<fsContainer
|
|
235
236
|
class={!buttonVisible && widgetDisplayMode == 1 ? "fs-feedback-modal" : "fs-side"}
|
|
236
|
-
style="position: fixed; top: 0; right: 0; bottom: 0; left: 0;"
|
|
237
237
|
dir="ltr"
|
|
238
238
|
>
|
|
239
239
|
{#if buttonVisible}
|
package/src/widgetPages/App.css
CHANGED
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.fs-feedback-modal {
|
|
21
|
+
position: var(--positionState);
|
|
22
|
+
inset: 0;
|
|
21
23
|
display: flex !important;
|
|
22
24
|
justify-content: center;
|
|
23
25
|
align-items: center;
|
|
@@ -28,6 +30,7 @@
|
|
|
28
30
|
font-family: 'Montserrat', sans-serif;
|
|
29
31
|
}
|
|
30
32
|
|
|
33
|
+
|
|
31
34
|
.fs-thanks-txt {
|
|
32
35
|
width: 61%;
|
|
33
36
|
padding: 20px 0;
|
|
@@ -111,7 +114,6 @@ fsContainerApp {
|
|
|
111
114
|
}
|
|
112
115
|
|
|
113
116
|
.fsContNps {
|
|
114
|
-
padding: 20px;
|
|
115
117
|
width: 400px !important;
|
|
116
118
|
}
|
|
117
119
|
|
|
@@ -130,10 +132,9 @@ fsContainerApp {
|
|
|
130
132
|
#fsCloseIcon {
|
|
131
133
|
font-size: 15px;
|
|
132
134
|
color: #ffff;
|
|
133
|
-
font-weight:
|
|
135
|
+
font-weight: 300;
|
|
134
136
|
cursor: pointer;
|
|
135
137
|
margin-top: 2px;
|
|
136
|
-
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
.fsCloseCont {
|
|
@@ -151,7 +152,7 @@ fsContainerApp {
|
|
|
151
152
|
}
|
|
152
153
|
|
|
153
154
|
.fsNpsCloseCont {
|
|
154
|
-
margin:
|
|
155
|
+
margin-left: 90% !important;
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
<div class="fsNpsNumbers">
|
|
272
272
|
{#each {length: 11} as _, i}
|
|
273
273
|
<div class={i > 8 ? "fsNpsNumber fsHighNps" : i > 6 ? "fsNpsNumber fsMediumNps" : "fsNpsNumber fsLowNps"}
|
|
274
|
-
on:click={() => openEmailStep(
|
|
274
|
+
on:click={() => openEmailStep(2, i)}>
|
|
275
275
|
<span>{i}</span>
|
|
276
276
|
</div>
|
|
277
277
|
{/each}
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
</div>
|
|
283
283
|
</div>
|
|
284
284
|
{/if}
|
|
285
|
-
{:else if widgetComponent === 2 && wgType
|
|
285
|
+
{:else if widgetComponent === 2 && wgType === 0}
|
|
286
286
|
<div class="fsCommentContainer">
|
|
287
287
|
<div class="fsIcons-second">
|
|
288
288
|
<div class="fsIconTextCont" on:click={() => openComment(2, 1, "hate")}>
|
|
@@ -365,6 +365,24 @@
|
|
|
365
365
|
{/if}
|
|
366
366
|
</div>
|
|
367
367
|
</div>
|
|
368
|
+
{:else if widgetComponent === 2 && wgType === 2}
|
|
369
|
+
<div id="fsTxtNps">Tell us more about your experience</div>
|
|
370
|
+
<div class="fsTextAreaCont-qa-view">
|
|
371
|
+
<textarea
|
|
372
|
+
class="fsTextArea"
|
|
373
|
+
placeholder="Answer Here..."
|
|
374
|
+
on:keyup={() => commentHandler()}
|
|
375
|
+
/>
|
|
376
|
+
</div>
|
|
377
|
+
|
|
378
|
+
<div class="fsFooter">
|
|
379
|
+
<button
|
|
380
|
+
class="fsSendButtonContCommentComp fsNpsButton"
|
|
381
|
+
on:click={() => openEmailCont(3)}
|
|
382
|
+
>
|
|
383
|
+
<p class="fsSendButtonCommentComponent">Send</p>
|
|
384
|
+
</button>
|
|
385
|
+
</div>
|
|
368
386
|
{:else if widgetComponent === 3}
|
|
369
387
|
<div class="fsEmailContainer">
|
|
370
388
|
<div id="fsEmailText">
|
|
@@ -30,6 +30,18 @@
|
|
|
30
30
|
margin-top: 5px;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
#fsTxtNps {
|
|
34
|
+
color: #1513A0;
|
|
35
|
+
font-family: 'Montserrat', sans-serif;
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
line-height: 15px;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
width: 80% !important;
|
|
41
|
+
margin-top: 5px;
|
|
42
|
+
margin-left: 20px;
|
|
43
|
+
}
|
|
44
|
+
|
|
33
45
|
.fsIconTextCont {
|
|
34
46
|
pointer-events: auto;
|
|
35
47
|
display: flex;
|
|
@@ -39,6 +51,10 @@
|
|
|
39
51
|
font-family: 'Montserrat', sans-serif;
|
|
40
52
|
}
|
|
41
53
|
|
|
54
|
+
.fsNpsButton {
|
|
55
|
+
margin-bottom: 10px;
|
|
56
|
+
}
|
|
57
|
+
|
|
42
58
|
.fsReactionText {
|
|
43
59
|
font-size: 12px;
|
|
44
60
|
display: none;
|
|
@@ -281,6 +297,7 @@
|
|
|
281
297
|
display: flex;
|
|
282
298
|
flex-direction: column;
|
|
283
299
|
gap: 10px;
|
|
300
|
+
padding: 0 20px 20px;
|
|
284
301
|
}
|
|
285
302
|
|
|
286
303
|
.fsNpsNumbers {
|