@fullsession.io/fs-feedback-widget 1.7.1 → 1.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullsession.io/fs-feedback-widget",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "scripts": {
5
5
  "build": "rollup -c",
6
6
  "dev": "rollup -c -w",
@@ -6,13 +6,13 @@
6
6
  export let width = "40px";
7
7
  export let height = "40px";
8
8
  let emotIcons =
9
- emotIconType == "1"
9
+ emotIconType == "0"
10
10
  ? icons_1
11
- : emotIconType == "2"
11
+ : emotIconType == "1"
12
12
  ? icons_2
13
- : emotIconType == "3"
13
+ : emotIconType == "2"
14
14
  ? icons_3
15
- : emotIconType == "4"
15
+ : emotIconType == "3"
16
16
  ? icons_4
17
17
  : null;
18
18
  let icons = [
@@ -71,7 +71,7 @@
71
71
  let displayIcon = icons.find((e) => e.name === name);
72
72
  </script>
73
73
 
74
- {#if emotIconType === 3}
74
+ {#if emotIconType === "2"}
75
75
  <svg
76
76
  class={$$props.class}
77
77
  {focusable}
@@ -198,7 +198,7 @@
198
198
  <Icons bind:name={changingReactionNames[0]} bind:emotIconType={widgetEmotIconType} />
199
199
  </div>
200
200
 
201
- <p class="fsReactionText">Hate</p>
201
+ <p class="fsReactionText" class:icons3-text-2={widgetEmotIconType === "2"}>Hate</p>
202
202
  </div>
203
203
 
204
204
  <div
@@ -209,7 +209,7 @@
209
209
  <Icons bind:name={changingReactionNames[1]} bind:emotIconType={widgetEmotIconType} />
210
210
  </div>
211
211
 
212
- <p class="fsReactionText" class:icons3-text={widgetEmotIconType === 3}>Dislike</p>
212
+ <p class="fsReactionText" class:icons3-text={widgetEmotIconType === "2"}>Dislike</p>
213
213
  </div>
214
214
  <div
215
215
  class="fsIconTextCont"
@@ -225,13 +225,13 @@
225
225
  <div class="fsReactionIcon">
226
226
  <Icons bind:name={changingReactionNames[3]} bind:emotIconType={widgetEmotIconType} />
227
227
  </div>
228
- <p class="fsReactionText" class:icons3-text={widgetEmotIconType === 3}>Like</p>
228
+ <p class="fsReactionText" class:icons3-text={widgetEmotIconType === "2"}>Like</p>
229
229
  </div>
230
230
  <div class="fsIconTextCont" on:click={() => openComment(2, 5, "love")}>
231
231
  <div class="fsReactionIcon">
232
232
  <Icons bind:name={changingReactionNames[4]} bind:emotIconType={widgetEmotIconType} />
233
233
  </div>
234
- <p class="fsReactionText">Love</p>
234
+ <p class="fsReactionText" class:icons3-text-2={widgetEmotIconType === "2"}>Love</p>
235
235
  </div>
236
236
  </div>
237
237
  </div>
@@ -272,7 +272,7 @@
272
272
  {/if}
273
273
  </div>
274
274
 
275
- <p class="fsReactionText" id="fsHateDiv">Hate</p>
275
+ <p class="fsReactionText" id="fsHateDiv" class:icons3-text-2={widgetEmotIconType === "2"}>Hate</p>
276
276
  </div>
277
277
 
278
278
  <div class="fsIconTextCont" on:click={() => openComment(2, 2, "dislike")}>
@@ -284,7 +284,7 @@
284
284
  {/if}
285
285
  </div>
286
286
 
287
- <p class="fsReactionText" id="fsDislikeDiv" class:icons3-text={widgetEmotIconType === 3}>Dislike</p>
287
+ <p class="fsReactionText" id="fsDislikeDiv" class:icons3-text={widgetEmotIconType === "2"}>Dislike</p>
288
288
  </div>
289
289
  <div class="fsIconTextCont" on:click={() => openComment(2, 3, "neutral")}>
290
290
  <div class="fsReactionIcon">
@@ -305,7 +305,7 @@
305
305
  <Icons bind:name={changingReactionNames[3]} bind:emotIconType={widgetEmotIconType} />
306
306
  {/if}
307
307
  </div>
308
- <p class="fsReactionText" id="fsLikeDiv" class:icons3-text={widgetEmotIconType === 3}>Like</p>
308
+ <p class="fsReactionText" id="fsLikeDiv" class:icons3-text={widgetEmotIconType === "2"}>Like</p>
309
309
  </div>
310
310
  <div class="fsIconTextCont">
311
311
  <div class="fsReactionIcon" on:click={() => openComment(2, 5, "love")}>
@@ -315,7 +315,7 @@
315
315
  <Icons bind:name={changingReactionNames[4]} bind:emotIconType={widgetEmotIconType} />
316
316
  {/if}
317
317
  </div>
318
- <p class="fsReactionText" id="fsLoveDiv">Love</p>
318
+ <p class="fsReactionText" id="fsLoveDiv" class:icons3-text-2={widgetEmotIconType === "2"}>Love</p>
319
319
  </div>
320
320
  </div>
321
321
 
@@ -40,6 +40,10 @@
40
40
  }
41
41
 
42
42
  .icons3-text {
43
+ padding-left: 5px;
44
+ }
45
+
46
+ .icons3-text-2 {
43
47
  padding-left: 3px;
44
48
  }
45
49