pushfeedback 0.1.64 → 0.1.66

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.
@@ -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-1c7756d1",[[1,"feedback-button",{buttonPosition:[1,"button-position"],buttonStyle:[1,"button-style"],hideIcon:[4,"hide-icon"],hideMobile:[4,"hide-mobile"],sessionId:[1537,"session-id"],submit:[4],customFont:[4,"custom-font"],emailAddress:[1,"email-address"],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"],screenshotButtonText:[1,"screenshot-button-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"],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],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"],screenshotButtonText:[1,"screenshot-button-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],openModal:[64]}]]]],e)));
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-e6c2f829",[[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"],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"],screenshotButtonText:[1,"screenshot-button-text"],screenshotAttachedText:[1,"screenshot-attached-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],openModal:[64]}]]]],e)));
@@ -7,9 +7,11 @@ 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;
14
+ isEmailRequired: boolean;
13
15
  fetchData: boolean;
14
16
  hideEmail: boolean;
15
17
  hidePrivacyPolicy: boolean;
@@ -31,6 +33,7 @@ export declare class FeedbackButton {
31
33
  privacyPolicyText: string;
32
34
  ratingPlaceholder: string;
33
35
  ratingStarsPlaceholder: string;
36
+ screenshotAttachedText: string;
34
37
  screenshotButtonText: string;
35
38
  screenshotTopbarText: string;
36
39
  sendButtonText: string;
@@ -17,6 +17,7 @@ export declare class FeedbackModal {
17
17
  customFont: boolean;
18
18
  emailAddress: string;
19
19
  hideEmail: boolean;
20
+ isEmailRequired: boolean;
20
21
  ratingMode: string;
21
22
  hasSelectedElement: boolean;
22
23
  hidePrivacyPolicy: boolean;
@@ -27,6 +28,7 @@ export declare class FeedbackModal {
27
28
  showScreenshotTopBar: boolean;
28
29
  showModal: boolean;
29
30
  rating: number;
31
+ metadata: '';
30
32
  fetchData: boolean;
31
33
  emailPlaceholder: string;
32
34
  errorMessage: string;
@@ -43,6 +45,7 @@ export declare class FeedbackModal {
43
45
  ratingStarsPlaceholder: string;
44
46
  sendButtonText: string;
45
47
  screenshotButtonText: string;
48
+ screenshotAttachedText: string;
46
49
  screenshotTopbarText: string;
47
50
  successMessage: string;
48
51
  feedbackSent: EventEmitter<{
@@ -58,6 +61,8 @@ export declare class FeedbackModal {
58
61
  leftSide: HTMLElement;
59
62
  bottomSide: HTMLElement;
60
63
  rightSide: HTMLElement;
64
+ selectedElementBounds: DOMRect;
65
+ originalElement: HTMLElement;
61
66
  componentWillLoad(): void;
62
67
  fetchProjectData(): Promise<void>;
63
68
  onScrollDebounced: () => void;
@@ -23,7 +23,9 @@ export namespace Components {
23
23
  "hidePrivacyPolicy": boolean;
24
24
  "hideRating": boolean;
25
25
  "hideScreenshotButton": boolean;
26
+ "isEmailRequired": boolean;
26
27
  "messagePlaceholder": string;
28
+ "metadata": string;
27
29
  "modalPosition": string;
28
30
  "modalTitle": string;
29
31
  "modalTitleError": string;
@@ -34,6 +36,7 @@ export namespace Components {
34
36
  "ratingMode": string;
35
37
  "ratingPlaceholder": string;
36
38
  "ratingStarsPlaceholder": string;
39
+ "screenshotAttachedText": string;
37
40
  "screenshotButtonText": string;
38
41
  "screenshotTopbarText": string;
39
42
  "sendButtonText": string;
@@ -55,7 +58,9 @@ export namespace Components {
55
58
  "hidePrivacyPolicy": boolean;
56
59
  "hideRating": boolean;
57
60
  "hideScreenshotButton": boolean;
61
+ "isEmailRequired": boolean;
58
62
  "messagePlaceholder": string;
63
+ "metadata": '';
59
64
  "modalPosition": string;
60
65
  "modalTitle": string;
61
66
  "modalTitleError": string;
@@ -67,6 +72,7 @@ export namespace Components {
67
72
  "ratingMode": string;
68
73
  "ratingPlaceholder": string;
69
74
  "ratingStarsPlaceholder": string;
75
+ "screenshotAttachedText": string;
70
76
  "screenshotButtonText": string;
71
77
  "screenshotTopbarText": string;
72
78
  "sendButtonText": string;
@@ -120,7 +126,9 @@ declare namespace LocalJSX {
120
126
  "hidePrivacyPolicy"?: boolean;
121
127
  "hideRating"?: boolean;
122
128
  "hideScreenshotButton"?: boolean;
129
+ "isEmailRequired"?: boolean;
123
130
  "messagePlaceholder"?: string;
131
+ "metadata"?: string;
124
132
  "modalPosition"?: string;
125
133
  "modalTitle"?: string;
126
134
  "modalTitleError"?: string;
@@ -133,6 +141,7 @@ declare namespace LocalJSX {
133
141
  "ratingMode"?: string;
134
142
  "ratingPlaceholder"?: string;
135
143
  "ratingStarsPlaceholder"?: string;
144
+ "screenshotAttachedText"?: string;
136
145
  "screenshotButtonText"?: string;
137
146
  "screenshotTopbarText"?: string;
138
147
  "sendButtonText"?: string;
@@ -154,7 +163,9 @@ declare namespace LocalJSX {
154
163
  "hidePrivacyPolicy"?: boolean;
155
164
  "hideRating"?: boolean;
156
165
  "hideScreenshotButton"?: boolean;
166
+ "isEmailRequired"?: boolean;
157
167
  "messagePlaceholder"?: string;
168
+ "metadata"?: '';
158
169
  "modalPosition"?: string;
159
170
  "modalTitle"?: string;
160
171
  "modalTitleError"?: string;
@@ -167,6 +178,7 @@ declare namespace LocalJSX {
167
178
  "ratingMode"?: string;
168
179
  "ratingPlaceholder"?: string;
169
180
  "ratingStarsPlaceholder"?: string;
181
+ "screenshotAttachedText"?: string;
170
182
  "screenshotButtonText"?: string;
171
183
  "screenshotTopbarText"?: string;
172
184
  "sendButtonText"?: string;
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.64",
5
+ "version": "0.1.66",
6
6
  "description": "Feedback widget for websites.",
7
7
  "main": "dist/index.cjs.js",
8
8
  "module": "dist/index.js",