@fullsession.io/fs-feedback-widget 1.5.2 → 1.5.4
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 +27 -26
package/package.json
CHANGED
package/src/App.svelte
CHANGED
|
@@ -43,17 +43,18 @@
|
|
|
43
43
|
let thanksMessageVisible = false;
|
|
44
44
|
let inTransitionX = 0;
|
|
45
45
|
let outTransitionX = 0;
|
|
46
|
-
let positionState;
|
|
47
|
-
|
|
48
|
-
"--positionState",
|
|
49
|
-
positionState
|
|
50
|
-
);
|
|
46
|
+
let positionState= "";
|
|
47
|
+
|
|
51
48
|
|
|
52
49
|
if( widgetPosition == 'fixed'){
|
|
53
50
|
positionState = "fixed"
|
|
54
51
|
} else{
|
|
55
52
|
positionState = "absolute"
|
|
56
53
|
}
|
|
54
|
+
$: document.documentElement.style.setProperty(
|
|
55
|
+
"--positionState",
|
|
56
|
+
positionState
|
|
57
|
+
);
|
|
57
58
|
console.log(positionState,"stateWidget")
|
|
58
59
|
if (Number(feedback.wgPosition) == 0) {
|
|
59
60
|
wgPositionHorizintal = "center";
|
|
@@ -140,25 +141,25 @@
|
|
|
140
141
|
openThanksMessage();
|
|
141
142
|
};
|
|
142
143
|
|
|
143
|
-
const closeBeforeFinsihing = (email, comment, reactionType) => {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
};
|
|
144
|
+
// const closeBeforeFinsihing = (email, comment, reactionType) => {
|
|
145
|
+
// emailx = email;
|
|
146
|
+
// commentx = comment;
|
|
147
|
+
// reactionTypex = Number(reactionType);
|
|
148
|
+
// let widgetResponse = {
|
|
149
|
+
// email: email,
|
|
150
|
+
// comment: comment,
|
|
151
|
+
// reaction: reactionType,
|
|
152
|
+
// };
|
|
153
|
+
// if (userClosedWidget == 1) {
|
|
154
|
+
// console.log("hi", widgetResponse);
|
|
155
|
+
// let event = new CustomEvent("fbEvent", {
|
|
156
|
+
// bubbles: false,
|
|
157
|
+
// detail: widgetResponse,
|
|
158
|
+
// });
|
|
159
|
+
// window.dispatchEvent(event);
|
|
160
|
+
// console.log(widgetResponse);
|
|
161
|
+
// }
|
|
162
|
+
// };
|
|
162
163
|
|
|
163
164
|
const openThanksMessage = () => {
|
|
164
165
|
visible = !visible;
|
|
@@ -189,7 +190,7 @@
|
|
|
189
190
|
};
|
|
190
191
|
|
|
191
192
|
</script>
|
|
192
|
-
<fsContainer>
|
|
193
|
+
<fsContainer style="position: 10px">
|
|
193
194
|
{#if buttonVisible}
|
|
194
195
|
<div class="fsWidget" on:click={openWidget}>
|
|
195
196
|
<div id="fsFeedbackTxt">{widgetName}</div>
|
|
@@ -207,7 +208,7 @@
|
|
|
207
208
|
<ReactionPage
|
|
208
209
|
closeHandler={closeOne}
|
|
209
210
|
bind:feedbackData={feedback}
|
|
210
|
-
|
|
211
|
+
|
|
211
212
|
/>
|
|
212
213
|
</div>
|
|
213
214
|
{/if}
|