pushfeedback 0.1.65 → 0.1.67
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/cjs/feedback-button_2.cjs.entry.js +116 -53
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pushfeedback.cjs.js +1 -1
- package/dist/collection/components/feedback-button/feedback-button.js +64 -0
- package/dist/collection/components/feedback-modal/feedback-modal.css +53 -1
- package/dist/collection/components/feedback-modal/feedback-modal.js +161 -53
- package/dist/components/feedback-button.js +13 -0
- package/dist/components/feedback-modal2.js +111 -53
- package/dist/esm/feedback-button_2.entry.js +116 -53
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pushfeedback.js +1 -1
- package/dist/pushfeedback/{p-d671215c.entry.js → p-51e790c7.entry.js} +2 -2
- package/dist/pushfeedback/pushfeedback.esm.js +1 -1
- package/dist/types/components/feedback-button/feedback-button.d.ts +3 -0
- package/dist/types/components/feedback-modal/feedback-modal.d.ts +14 -1
- package/dist/types/components.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-af2a1f7f.js";export{s as setNonce}from"./p-af2a1f7f.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-
|
|
1
|
+
import{p as e,b as t}from"./p-af2a1f7f.js";export{s as setNonce}from"./p-af2a1f7f.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-51e790c7",[[1,"feedback-button",{buttonPosition:[1,"button-position"],buttonStyle:[1,"button-style"],hideIcon:[4,"hide-icon"],hideMobile:[4,"hide-mobile"],sessionId:[1537,"session-id"],metadata:[1],submit:[4],customFont:[4,"custom-font"],emailAddress:[1,"email-address"],isEmailRequired:[4,"is-email-required"],fetchData:[4,"fetch-data"],hideEmail:[4,"hide-email"],hidePrivacyPolicy:[4,"hide-privacy-policy"],hideRating:[4,"hide-rating"],hideScreenshotButton:[4,"hide-screenshot-button"],modalPosition:[1,"modal-position"],project:[1],rating:[2],ratingMode:[1,"rating-mode"],emailPlaceholder:[1,"email-placeholder"],errorMessage:[1,"error-message"],errorMessage403:[1,"error-message-4-0-3"],errorMessage404:[1,"error-message-4-0-4"],footerText:[1,"footer-text"],messagePlaceholder:[1,"message-placeholder"],modalTitle:[1,"modal-title"],modalTitleError:[1,"modal-title-error"],modalTitleSuccess:[1,"modal-title-success"],privacyPolicyText:[1,"privacy-policy-text"],ratingPlaceholder:[1,"rating-placeholder"],ratingStarsPlaceholder:[1,"rating-stars-placeholder"],screenshotAttachedText:[1,"screenshot-attached-text"],screenshotButtonText:[1,"screenshot-button-text"],screenshotTakingText:[1,"screenshot-taking-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],sendButtonText:[1,"send-button-text"],successMessage:[1,"success-message"]}],[1,"feedback-modal",{customFont:[4,"custom-font"],emailAddress:[1,"email-address"],hideEmail:[4,"hide-email"],isEmailRequired:[4,"is-email-required"],ratingMode:[1,"rating-mode"],hasSelectedElement:[1540,"has-selected-element"],hidePrivacyPolicy:[4,"hide-privacy-policy"],hideRating:[4,"hide-rating"],hideScreenshotButton:[4,"hide-screenshot-button"],project:[1],showScreenshotMode:[1540,"show-screenshot-mode"],showScreenshotTopBar:[1540,"show-screenshot-top-bar"],showModal:[1540,"show-modal"],rating:[2],metadata:[1],fetchData:[4,"fetch-data"],emailPlaceholder:[1,"email-placeholder"],errorMessage:[1,"error-message"],errorMessage403:[1,"error-message-4-0-3"],errorMessage404:[1,"error-message-4-0-4"],messagePlaceholder:[1,"message-placeholder"],footerText:[1,"footer-text"],modalPosition:[1,"modal-position"],modalTitle:[1,"modal-title"],modalTitleError:[1,"modal-title-error"],modalTitleSuccess:[1,"modal-title-success"],privacyPolicyText:[1,"privacy-policy-text"],ratingPlaceholder:[1,"rating-placeholder"],ratingStarsPlaceholder:[1,"rating-stars-placeholder"],sendButtonText:[1,"send-button-text"],screenshotAttachedText:[1,"screenshot-attached-text"],screenshotButtonText:[1,"screenshot-button-text"],screenshotTakingText:[1,"screenshot-taking-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],successMessage:[1,"success-message"],sending:[32],formMessage:[32],formEmail:[32],formSuccess:[32],formVerification:[32],formError:[32],formErrorStatus:[32],encodedScreenshot:[32],isPrivacyChecked:[32],whitelabel:[32],selectedRating:[32],overlayVisible:[32],isAnimating:[32],takingScreenshot:[32],showPreviewModal:[32],openModal:[64]}]]]],e)));
|
|
@@ -7,6 +7,7 @@ export declare class FeedbackButton {
|
|
|
7
7
|
hideIcon: boolean;
|
|
8
8
|
hideMobile: boolean;
|
|
9
9
|
sessionId: string;
|
|
10
|
+
metadata: string;
|
|
10
11
|
submit: boolean;
|
|
11
12
|
customFont: boolean;
|
|
12
13
|
emailAddress: string;
|
|
@@ -32,7 +33,9 @@ export declare class FeedbackButton {
|
|
|
32
33
|
privacyPolicyText: string;
|
|
33
34
|
ratingPlaceholder: string;
|
|
34
35
|
ratingStarsPlaceholder: string;
|
|
36
|
+
screenshotAttachedText: string;
|
|
35
37
|
screenshotButtonText: string;
|
|
38
|
+
screenshotTakingText: string;
|
|
36
39
|
screenshotTopbarText: string;
|
|
37
40
|
sendButtonText: string;
|
|
38
41
|
successMessage: string;
|
|
@@ -28,6 +28,7 @@ export declare class FeedbackModal {
|
|
|
28
28
|
showScreenshotTopBar: boolean;
|
|
29
29
|
showModal: boolean;
|
|
30
30
|
rating: number;
|
|
31
|
+
metadata: '';
|
|
31
32
|
fetchData: boolean;
|
|
32
33
|
emailPlaceholder: string;
|
|
33
34
|
errorMessage: string;
|
|
@@ -43,7 +44,9 @@ export declare class FeedbackModal {
|
|
|
43
44
|
ratingPlaceholder: string;
|
|
44
45
|
ratingStarsPlaceholder: string;
|
|
45
46
|
sendButtonText: string;
|
|
47
|
+
screenshotAttachedText: string;
|
|
46
48
|
screenshotButtonText: string;
|
|
49
|
+
screenshotTakingText: string;
|
|
47
50
|
screenshotTopbarText: string;
|
|
48
51
|
successMessage: string;
|
|
49
52
|
feedbackSent: EventEmitter<{
|
|
@@ -59,6 +62,14 @@ export declare class FeedbackModal {
|
|
|
59
62
|
leftSide: HTMLElement;
|
|
60
63
|
bottomSide: HTMLElement;
|
|
61
64
|
rightSide: HTMLElement;
|
|
65
|
+
hoveredElement: HTMLElement;
|
|
66
|
+
hoveredElementBounds: DOMRect;
|
|
67
|
+
selectedElementBounds: DOMRect;
|
|
68
|
+
originalElement: HTMLElement;
|
|
69
|
+
storedScrollX: number;
|
|
70
|
+
storedScrollY: number;
|
|
71
|
+
takingScreenshot: boolean;
|
|
72
|
+
showPreviewModal: boolean;
|
|
62
73
|
componentWillLoad(): void;
|
|
63
74
|
fetchProjectData(): Promise<void>;
|
|
64
75
|
onScrollDebounced: () => void;
|
|
@@ -69,9 +80,11 @@ export declare class FeedbackModal {
|
|
|
69
80
|
close: () => void;
|
|
70
81
|
openScreenShot: () => void;
|
|
71
82
|
closeScreenShot: () => void;
|
|
83
|
+
openPreviewModal: (event: Event) => void;
|
|
84
|
+
closePreviewModal: () => void;
|
|
72
85
|
handleMouseOverScreenShot: (event: any) => void;
|
|
73
|
-
captureScreenshot(): Promise<unknown>;
|
|
74
86
|
handleMouseClickedSelectedElement: (event: any) => Promise<void>;
|
|
87
|
+
captureScreenshot(): Promise<unknown>;
|
|
75
88
|
handleCheckboxChange(event: any): void;
|
|
76
89
|
handleVerification(event: Event): void;
|
|
77
90
|
handleRatingChange(newRating: number): void;
|
|
@@ -25,6 +25,7 @@ export namespace Components {
|
|
|
25
25
|
"hideScreenshotButton": boolean;
|
|
26
26
|
"isEmailRequired": boolean;
|
|
27
27
|
"messagePlaceholder": string;
|
|
28
|
+
"metadata": string;
|
|
28
29
|
"modalPosition": string;
|
|
29
30
|
"modalTitle": string;
|
|
30
31
|
"modalTitleError": string;
|
|
@@ -35,7 +36,9 @@ export namespace Components {
|
|
|
35
36
|
"ratingMode": string;
|
|
36
37
|
"ratingPlaceholder": string;
|
|
37
38
|
"ratingStarsPlaceholder": string;
|
|
39
|
+
"screenshotAttachedText": string;
|
|
38
40
|
"screenshotButtonText": string;
|
|
41
|
+
"screenshotTakingText": string;
|
|
39
42
|
"screenshotTopbarText": string;
|
|
40
43
|
"sendButtonText": string;
|
|
41
44
|
"sessionId": string;
|
|
@@ -58,6 +61,7 @@ export namespace Components {
|
|
|
58
61
|
"hideScreenshotButton": boolean;
|
|
59
62
|
"isEmailRequired": boolean;
|
|
60
63
|
"messagePlaceholder": string;
|
|
64
|
+
"metadata": '';
|
|
61
65
|
"modalPosition": string;
|
|
62
66
|
"modalTitle": string;
|
|
63
67
|
"modalTitleError": string;
|
|
@@ -69,7 +73,9 @@ export namespace Components {
|
|
|
69
73
|
"ratingMode": string;
|
|
70
74
|
"ratingPlaceholder": string;
|
|
71
75
|
"ratingStarsPlaceholder": string;
|
|
76
|
+
"screenshotAttachedText": string;
|
|
72
77
|
"screenshotButtonText": string;
|
|
78
|
+
"screenshotTakingText": string;
|
|
73
79
|
"screenshotTopbarText": string;
|
|
74
80
|
"sendButtonText": string;
|
|
75
81
|
"showModal": boolean;
|
|
@@ -124,6 +130,7 @@ declare namespace LocalJSX {
|
|
|
124
130
|
"hideScreenshotButton"?: boolean;
|
|
125
131
|
"isEmailRequired"?: boolean;
|
|
126
132
|
"messagePlaceholder"?: string;
|
|
133
|
+
"metadata"?: string;
|
|
127
134
|
"modalPosition"?: string;
|
|
128
135
|
"modalTitle"?: string;
|
|
129
136
|
"modalTitleError"?: string;
|
|
@@ -136,7 +143,9 @@ declare namespace LocalJSX {
|
|
|
136
143
|
"ratingMode"?: string;
|
|
137
144
|
"ratingPlaceholder"?: string;
|
|
138
145
|
"ratingStarsPlaceholder"?: string;
|
|
146
|
+
"screenshotAttachedText"?: string;
|
|
139
147
|
"screenshotButtonText"?: string;
|
|
148
|
+
"screenshotTakingText"?: string;
|
|
140
149
|
"screenshotTopbarText"?: string;
|
|
141
150
|
"sendButtonText"?: string;
|
|
142
151
|
"sessionId"?: string;
|
|
@@ -159,6 +168,7 @@ declare namespace LocalJSX {
|
|
|
159
168
|
"hideScreenshotButton"?: boolean;
|
|
160
169
|
"isEmailRequired"?: boolean;
|
|
161
170
|
"messagePlaceholder"?: string;
|
|
171
|
+
"metadata"?: '';
|
|
162
172
|
"modalPosition"?: string;
|
|
163
173
|
"modalTitle"?: string;
|
|
164
174
|
"modalTitleError"?: string;
|
|
@@ -171,7 +181,9 @@ declare namespace LocalJSX {
|
|
|
171
181
|
"ratingMode"?: string;
|
|
172
182
|
"ratingPlaceholder"?: string;
|
|
173
183
|
"ratingStarsPlaceholder"?: string;
|
|
184
|
+
"screenshotAttachedText"?: string;
|
|
174
185
|
"screenshotButtonText"?: string;
|
|
186
|
+
"screenshotTakingText"?: string;
|
|
175
187
|
"screenshotTopbarText"?: string;
|
|
176
188
|
"sendButtonText"?: string;
|
|
177
189
|
"showModal"?: boolean;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "pushfeedback",
|
|
3
3
|
"author": "TechDocs Studio <info@techdocs.studio>",
|
|
4
4
|
"homepage": "https://pushfeedback.com/",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.67",
|
|
6
6
|
"description": "Feedback widget for websites.",
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
8
8
|
"module": "dist/index.js",
|