@fullsession.io/fs-feedback-widget 1.5.7 → 1.5.9
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 +0 -3
- package/src/main.js +32 -33
- package/src/widgetPages/reactionPage.svelte +0 -4
package/package.json
CHANGED
package/src/App.svelte
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import ReactionPage from "./widgetPages/reactionPage.svelte";
|
|
4
4
|
export let feedback;
|
|
5
5
|
export let widgetPosition;
|
|
6
|
-
console.log(feedback);
|
|
7
6
|
import { fly } from "svelte/transition";
|
|
8
7
|
import "../src/widgetPages/App.css";
|
|
9
8
|
$: widgetColor = feedback.wgAccentColor;
|
|
@@ -55,7 +54,6 @@
|
|
|
55
54
|
"--positionState",
|
|
56
55
|
positionState
|
|
57
56
|
);
|
|
58
|
-
console.log(positionState,"stateWidget")
|
|
59
57
|
if (Number(feedback.wgPosition) == 0) {
|
|
60
58
|
wgPositionHorizintal = "center";
|
|
61
59
|
wgPositionVertical = "row-reverse";
|
|
@@ -137,7 +135,6 @@
|
|
|
137
135
|
detail: widgetResponse,
|
|
138
136
|
});
|
|
139
137
|
window.dispatchEvent(event);
|
|
140
|
-
console.log(widgetResponse);
|
|
141
138
|
openThanksMessage();
|
|
142
139
|
};
|
|
143
140
|
|
package/src/main.js
CHANGED
|
@@ -13,7 +13,6 @@ export function feedbackCreator(response,htmlElement) {
|
|
|
13
13
|
view = htmlElement;
|
|
14
14
|
position = 'absolute';
|
|
15
15
|
}
|
|
16
|
-
console.log(view)
|
|
17
16
|
new App({
|
|
18
17
|
target: view,
|
|
19
18
|
props: {
|
|
@@ -23,35 +22,35 @@ export function feedbackCreator(response,htmlElement) {
|
|
|
23
22
|
});
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
let widget ={id: 1,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
feedbackCreator(widget,null);
|
|
25
|
+
// let widget ={id: 1,
|
|
26
|
+
// wgStatus: 1,
|
|
27
|
+
// wgName: "ask",
|
|
28
|
+
// wgDescription: "test",
|
|
29
|
+
// wgCrtDt: "2021-12-05 10:49:14",
|
|
30
|
+
// wgResponses: null,
|
|
31
|
+
// wgUpdTime: null,
|
|
32
|
+
// SiteId: 98,
|
|
33
|
+
// UserId: 262,
|
|
34
|
+
// wgLanguage: "en",
|
|
35
|
+
// wgPosition: "0",
|
|
36
|
+
// wgAccentColor: "#51797b",
|
|
37
|
+
// wgAlternateColor: true,
|
|
38
|
+
// wgQuestion: "How would you rate your experience?" ,
|
|
39
|
+
// wgUserScreenshot: 1,
|
|
40
|
+
// wgEmailReqMsg: "We may wish to follow up. Enter your email if you're happy for us to contact you." ,
|
|
41
|
+
// wgEmailReqActivation: 1,
|
|
42
|
+
// wgAdditionalMsg: "Heads up! This is for feedback only. Need help? Contact us via our [link to Help Center].",
|
|
43
|
+
// wgAdditionalMsgActivation: 1,
|
|
44
|
+
// wgThanksMsg: "Thank you for sharing your feedback with us",
|
|
45
|
+
// wgThanksMsgActivation: 1,
|
|
46
|
+
// wgDesktop: 1,
|
|
47
|
+
// wgPhone: 1,
|
|
48
|
+
// wgTablet:1,
|
|
49
|
+
// wgPages: [{"id":0,"name":"*"}],
|
|
50
|
+
// wgWidgetToUsers: 0,
|
|
51
|
+
// wgPercentage:100,
|
|
52
|
+
// wgEmail: "abd@gmail.com",
|
|
53
|
+
// wgWidgetToAllPages: 1,
|
|
54
|
+
// wgReactionStyle: 0,
|
|
55
|
+
// wgResponseViaEmail: 1}
|
|
56
|
+
// feedbackCreator(widget,null);
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import Icons from "../Icons/reactionIcons.svelte";
|
|
4
4
|
import "../widgetPages/reactionpage.css"
|
|
5
5
|
export let feedbackData;
|
|
6
|
-
console.log("hiiih")
|
|
7
6
|
$: widgetComponent = 1;
|
|
8
7
|
let reactionNames = ["hate","dislike","neutral","like","love"];
|
|
9
8
|
let changingReactionNames = reactionNames;
|
|
@@ -56,7 +55,6 @@
|
|
|
56
55
|
}
|
|
57
56
|
comment = "";
|
|
58
57
|
comment = input.value;
|
|
59
|
-
console.log(input.value)
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
// const EmailButtonDisable = () =>{
|
|
@@ -103,7 +101,6 @@
|
|
|
103
101
|
const openComment = (state,rating,name) => {
|
|
104
102
|
let prevName = reactionName
|
|
105
103
|
reactionName = name
|
|
106
|
-
console.log(name)
|
|
107
104
|
|
|
108
105
|
widgetComponent = state;
|
|
109
106
|
reactionType = String(rating);
|
|
@@ -152,7 +149,6 @@
|
|
|
152
149
|
}
|
|
153
150
|
|
|
154
151
|
const endEmailInterval =()=> {
|
|
155
|
-
console.log("444")
|
|
156
152
|
clearInterval(checkEmailAreaInterval);
|
|
157
153
|
document.querySelector("#fsEmailTextArea").value="";
|
|
158
154
|
|