@fullsession.io/fs-feedback-widget 1.9.0 → 1.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullsession.io/fs-feedback-widget",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "scripts": {
5
5
  "build": "rollup -c",
6
6
  "dev": "rollup -c -w",
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
  }
@@ -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(3, i)}>
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 !== 1}
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="fsTxt">{widgetQuestion}</div>
370
+ <div class="fsTextAreaCont-qa-view">
371
+ <textarea
372
+ class="fsTextArea"
373
+ placeholder={widgetPlaceholder}
374
+ on:keyup={() => commentHandler()}
375
+ />
376
+ </div>
377
+
378
+ <div class="fsFooter">
379
+ <button
380
+ class="fsSendButtonContCommentComp"
381
+ on:click={() => openEmailCont(3)}
382
+ >
383
+ <p class="fsSendButtonCommentComponent">Next</p>
384
+ </button>
385
+ </div>
368
386
  {:else if widgetComponent === 3}
369
387
  <div class="fsEmailContainer">
370
388
  <div id="fsEmailText">