@fullsession.io/fs-feedback-widget 1.7.2 → 1.7.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/README.md +109 -109
- 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 +31 -31
- package/src/App.svelte +247 -246
- package/src/Icons/mainIcon.svelte +25 -25
- package/src/Icons/reactionIcons.svelte +94 -96
- package/src/Icons/reactionSvgs/icons.js +276 -476
- package/src/main.js +56 -56
- package/src/widgetPages/App.css +157 -157
- package/src/widgetPages/reactionPage.svelte +383 -383
- package/src/widgetPages/reactionpage.css +273 -273
- package/src/Icons/reactionSvgs/images/images.js +0 -37
package/src/main.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import App from './App.svelte';
|
|
2
|
-
|
|
3
|
-
export function feedbackCreator(response, htmlElement) {
|
|
4
|
-
let view;
|
|
5
|
-
let position;
|
|
6
|
-
if (htmlElement == null || htmlElement == undefined) {
|
|
7
|
-
view = document.body
|
|
8
|
-
position = 'fixed';
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
view = htmlElement;
|
|
12
|
-
position = 'absolute';
|
|
13
|
-
}
|
|
14
|
-
const app = new App({
|
|
15
|
-
target: view,
|
|
16
|
-
props: {
|
|
17
|
-
feedback: response,
|
|
18
|
-
widgetPosition: position,
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
return app;
|
|
23
|
-
}
|
|
24
|
-
|
|
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);
|
|
1
|
+
import App from './App.svelte';
|
|
2
|
+
|
|
3
|
+
export function feedbackCreator(response, htmlElement) {
|
|
4
|
+
let view;
|
|
5
|
+
let position;
|
|
6
|
+
if (htmlElement == null || htmlElement == undefined) {
|
|
7
|
+
view = document.body
|
|
8
|
+
position = 'fixed';
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
view = htmlElement;
|
|
12
|
+
position = 'absolute';
|
|
13
|
+
}
|
|
14
|
+
const app = new App({
|
|
15
|
+
target: view,
|
|
16
|
+
props: {
|
|
17
|
+
feedback: response,
|
|
18
|
+
widgetPosition: position,
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
return app;
|
|
23
|
+
}
|
|
24
|
+
|
|
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);
|
package/src/widgetPages/App.css
CHANGED
|
@@ -1,158 +1,158 @@
|
|
|
1
|
-
.side {
|
|
2
|
-
width: 100%;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: var(--wgPositionVertical);
|
|
5
|
-
position: var(--positionState);
|
|
6
|
-
top: 0;
|
|
7
|
-
right: 0;
|
|
8
|
-
bottom: 0;
|
|
9
|
-
left: 0;
|
|
10
|
-
height: 100%;
|
|
11
|
-
pointer-events: none;
|
|
12
|
-
align-items: var(--wgPositionHorizintal);
|
|
13
|
-
padding: 0;
|
|
14
|
-
z-index: 100000;
|
|
15
|
-
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.modal {
|
|
19
|
-
display: flex !important;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
align-items: center;
|
|
22
|
-
width: 100%;
|
|
23
|
-
height: 100%;
|
|
24
|
-
position: var(--positionState);
|
|
25
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
26
|
-
z-index: 100000;
|
|
27
|
-
pointer-events: none;
|
|
28
|
-
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.thanks-txt {
|
|
32
|
-
width: 61%;
|
|
33
|
-
padding: 20px 0;
|
|
34
|
-
text-align: center;
|
|
35
|
-
align-self: center;
|
|
36
|
-
padding-bottom: 20px;
|
|
37
|
-
overflow: hidden;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
fsContainerApp {
|
|
41
|
-
width: 776px;
|
|
42
|
-
height: 415px;
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-direction: var(--wgPositionVertical);
|
|
45
|
-
position: fixed;
|
|
46
|
-
top: 0;
|
|
47
|
-
right: 0;
|
|
48
|
-
bottom: 0;
|
|
49
|
-
left: 0;
|
|
50
|
-
pointer-events: none;
|
|
51
|
-
align-items: var(--wgPositionHorizintal);
|
|
52
|
-
padding: 0;
|
|
53
|
-
z-index: 100000;
|
|
54
|
-
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.fsWidget {
|
|
58
|
-
pointer-events: auto;
|
|
59
|
-
background-color: var(--widgetColor);
|
|
60
|
-
width: 34px;
|
|
61
|
-
height: 112px;
|
|
62
|
-
border-top-left-radius: var(--widgetLeftSideBorder);
|
|
63
|
-
border-bottom-left-radius: var(--widgetLeftSideBorder);
|
|
64
|
-
border-top-right-radius: var(--widgetRightSideBorder);
|
|
65
|
-
border-bottom-right-radius: var(--widgetRightSideBorder);
|
|
66
|
-
box-shadow: 0.2px 0.2px 0.2px rgb(133, 130, 130);
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-direction: column;
|
|
69
|
-
align-items: center;
|
|
70
|
-
justify-content: space-evenly;
|
|
71
|
-
cursor: pointer;
|
|
72
|
-
margin-top: 5px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
#fsMainIcon {
|
|
76
|
-
width: 60%;
|
|
77
|
-
margin-left: 4%;
|
|
78
|
-
cursor: pointer;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
#fsFeedbackTxt {
|
|
82
|
-
color: var(--widgetTextColor);
|
|
83
|
-
font-size: 15px;
|
|
84
|
-
writing-mode: vertical-lr;
|
|
85
|
-
transform: rotate(180deg);
|
|
86
|
-
cursor: pointer;
|
|
87
|
-
font-size-adjust: 0.40;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.fsWidget:hover {
|
|
91
|
-
width: 35px;
|
|
92
|
-
-webkit-box-shadow: 0px 0px 35px 2px rgba(0, 0, 0, 0.24);
|
|
93
|
-
box-shadow: 0px 0px 35px 2px rgba(0, 0, 0, 0.24);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.fsCont {
|
|
97
|
-
display: flex;
|
|
98
|
-
flex-direction: column;
|
|
99
|
-
pointer-events: auto;
|
|
100
|
-
border-radius: 5px;
|
|
101
|
-
width: 320px;
|
|
102
|
-
height: fit-content;
|
|
103
|
-
background-color: rgb(255, 255, 255);
|
|
104
|
-
margin-right: var(--widgetMarginRight);
|
|
105
|
-
margin-left: var(--widgetMarginLeft);
|
|
106
|
-
-webkit-box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
|
|
107
|
-
box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.fsContModal {
|
|
111
|
-
margin: 0;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.fsThanksMessageCont {
|
|
115
|
-
display: flex;
|
|
116
|
-
flex-direction: column;
|
|
117
|
-
pointer-events: auto;
|
|
118
|
-
width: 320px;
|
|
119
|
-
height: auto;
|
|
120
|
-
background-color: rgb(255, 255, 255);
|
|
121
|
-
margin-right: var(--widgetMarginRight);
|
|
122
|
-
margin-left: var(--widgetMarginLeft);
|
|
123
|
-
-webkit-box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
|
|
124
|
-
box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
#fsCloseIcon {
|
|
128
|
-
font-size: 15px;
|
|
129
|
-
color: #ffff;
|
|
130
|
-
font-weight: 600;
|
|
131
|
-
cursor: pointer;
|
|
132
|
-
margin-top: 2px;
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.fsCloseCont {
|
|
137
|
-
pointer-events: auto;
|
|
138
|
-
background-color: #4d5167;
|
|
139
|
-
width: 27px;
|
|
140
|
-
height: 27px;
|
|
141
|
-
border-radius: 50%;
|
|
142
|
-
display: flex;
|
|
143
|
-
justify-content: center;
|
|
144
|
-
/* align-items: center; */
|
|
145
|
-
margin-top: -15px;
|
|
146
|
-
margin-left: 85%;
|
|
147
|
-
cursor: pointer;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
/* @media (min-width: 640px) {
|
|
155
|
-
body {
|
|
156
|
-
max-width: none;
|
|
157
|
-
}
|
|
1
|
+
.side {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: var(--wgPositionVertical);
|
|
5
|
+
position: var(--positionState);
|
|
6
|
+
top: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
height: 100%;
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
align-items: var(--wgPositionHorizintal);
|
|
13
|
+
padding: 0;
|
|
14
|
+
z-index: 100000;
|
|
15
|
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.modal {
|
|
19
|
+
display: flex !important;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
align-items: center;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
position: var(--positionState);
|
|
25
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
26
|
+
z-index: 100000;
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.thanks-txt {
|
|
32
|
+
width: 61%;
|
|
33
|
+
padding: 20px 0;
|
|
34
|
+
text-align: center;
|
|
35
|
+
align-self: center;
|
|
36
|
+
padding-bottom: 20px;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
fsContainerApp {
|
|
41
|
+
width: 776px;
|
|
42
|
+
height: 415px;
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: var(--wgPositionVertical);
|
|
45
|
+
position: fixed;
|
|
46
|
+
top: 0;
|
|
47
|
+
right: 0;
|
|
48
|
+
bottom: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
align-items: var(--wgPositionHorizintal);
|
|
52
|
+
padding: 0;
|
|
53
|
+
z-index: 100000;
|
|
54
|
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.fsWidget {
|
|
58
|
+
pointer-events: auto;
|
|
59
|
+
background-color: var(--widgetColor);
|
|
60
|
+
width: 34px;
|
|
61
|
+
height: 112px;
|
|
62
|
+
border-top-left-radius: var(--widgetLeftSideBorder);
|
|
63
|
+
border-bottom-left-radius: var(--widgetLeftSideBorder);
|
|
64
|
+
border-top-right-radius: var(--widgetRightSideBorder);
|
|
65
|
+
border-bottom-right-radius: var(--widgetRightSideBorder);
|
|
66
|
+
box-shadow: 0.2px 0.2px 0.2px rgb(133, 130, 130);
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: space-evenly;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
margin-top: 5px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
#fsMainIcon {
|
|
76
|
+
width: 60%;
|
|
77
|
+
margin-left: 4%;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#fsFeedbackTxt {
|
|
82
|
+
color: var(--widgetTextColor);
|
|
83
|
+
font-size: 15px;
|
|
84
|
+
writing-mode: vertical-lr;
|
|
85
|
+
transform: rotate(180deg);
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
font-size-adjust: 0.40;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.fsWidget:hover {
|
|
91
|
+
width: 35px;
|
|
92
|
+
-webkit-box-shadow: 0px 0px 35px 2px rgba(0, 0, 0, 0.24);
|
|
93
|
+
box-shadow: 0px 0px 35px 2px rgba(0, 0, 0, 0.24);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.fsCont {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
pointer-events: auto;
|
|
100
|
+
border-radius: 5px;
|
|
101
|
+
width: 320px;
|
|
102
|
+
height: fit-content;
|
|
103
|
+
background-color: rgb(255, 255, 255);
|
|
104
|
+
margin-right: var(--widgetMarginRight);
|
|
105
|
+
margin-left: var(--widgetMarginLeft);
|
|
106
|
+
-webkit-box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
|
|
107
|
+
box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.fsContModal {
|
|
111
|
+
margin: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.fsThanksMessageCont {
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
pointer-events: auto;
|
|
118
|
+
width: 320px;
|
|
119
|
+
height: auto;
|
|
120
|
+
background-color: rgb(255, 255, 255);
|
|
121
|
+
margin-right: var(--widgetMarginRight);
|
|
122
|
+
margin-left: var(--widgetMarginLeft);
|
|
123
|
+
-webkit-box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
|
|
124
|
+
box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 100px 0px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
#fsCloseIcon {
|
|
128
|
+
font-size: 15px;
|
|
129
|
+
color: #ffff;
|
|
130
|
+
font-weight: 600;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
margin-top: 2px;
|
|
133
|
+
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.fsCloseCont {
|
|
137
|
+
pointer-events: auto;
|
|
138
|
+
background-color: #4d5167;
|
|
139
|
+
width: 27px;
|
|
140
|
+
height: 27px;
|
|
141
|
+
border-radius: 50%;
|
|
142
|
+
display: flex;
|
|
143
|
+
justify-content: center;
|
|
144
|
+
/* align-items: center; */
|
|
145
|
+
margin-top: -15px;
|
|
146
|
+
margin-left: 85%;
|
|
147
|
+
cursor: pointer;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
/* @media (min-width: 640px) {
|
|
155
|
+
body {
|
|
156
|
+
max-width: none;
|
|
157
|
+
}
|
|
158
158
|
} */
|