pushfeedback 0.1.66 → 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.
@@ -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-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)));
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)));
@@ -35,6 +35,7 @@ export declare class FeedbackButton {
35
35
  ratingStarsPlaceholder: string;
36
36
  screenshotAttachedText: string;
37
37
  screenshotButtonText: string;
38
+ screenshotTakingText: string;
38
39
  screenshotTopbarText: string;
39
40
  sendButtonText: string;
40
41
  successMessage: string;
@@ -44,8 +44,9 @@ export declare class FeedbackModal {
44
44
  ratingPlaceholder: string;
45
45
  ratingStarsPlaceholder: string;
46
46
  sendButtonText: string;
47
- screenshotButtonText: string;
48
47
  screenshotAttachedText: string;
48
+ screenshotButtonText: string;
49
+ screenshotTakingText: string;
49
50
  screenshotTopbarText: string;
50
51
  successMessage: string;
51
52
  feedbackSent: EventEmitter<{
@@ -61,8 +62,14 @@ export declare class FeedbackModal {
61
62
  leftSide: HTMLElement;
62
63
  bottomSide: HTMLElement;
63
64
  rightSide: HTMLElement;
65
+ hoveredElement: HTMLElement;
66
+ hoveredElementBounds: DOMRect;
64
67
  selectedElementBounds: DOMRect;
65
68
  originalElement: HTMLElement;
69
+ storedScrollX: number;
70
+ storedScrollY: number;
71
+ takingScreenshot: boolean;
72
+ showPreviewModal: boolean;
66
73
  componentWillLoad(): void;
67
74
  fetchProjectData(): Promise<void>;
68
75
  onScrollDebounced: () => void;
@@ -73,9 +80,11 @@ export declare class FeedbackModal {
73
80
  close: () => void;
74
81
  openScreenShot: () => void;
75
82
  closeScreenShot: () => void;
83
+ openPreviewModal: (event: Event) => void;
84
+ closePreviewModal: () => void;
76
85
  handleMouseOverScreenShot: (event: any) => void;
77
- captureScreenshot(): Promise<unknown>;
78
86
  handleMouseClickedSelectedElement: (event: any) => Promise<void>;
87
+ captureScreenshot(): Promise<unknown>;
79
88
  handleCheckboxChange(event: any): void;
80
89
  handleVerification(event: Event): void;
81
90
  handleRatingChange(newRating: number): void;
@@ -38,6 +38,7 @@ export namespace Components {
38
38
  "ratingStarsPlaceholder": string;
39
39
  "screenshotAttachedText": string;
40
40
  "screenshotButtonText": string;
41
+ "screenshotTakingText": string;
41
42
  "screenshotTopbarText": string;
42
43
  "sendButtonText": string;
43
44
  "sessionId": string;
@@ -74,6 +75,7 @@ export namespace Components {
74
75
  "ratingStarsPlaceholder": string;
75
76
  "screenshotAttachedText": string;
76
77
  "screenshotButtonText": string;
78
+ "screenshotTakingText": string;
77
79
  "screenshotTopbarText": string;
78
80
  "sendButtonText": string;
79
81
  "showModal": boolean;
@@ -143,6 +145,7 @@ declare namespace LocalJSX {
143
145
  "ratingStarsPlaceholder"?: string;
144
146
  "screenshotAttachedText"?: string;
145
147
  "screenshotButtonText"?: string;
148
+ "screenshotTakingText"?: string;
146
149
  "screenshotTopbarText"?: string;
147
150
  "sendButtonText"?: string;
148
151
  "sessionId"?: string;
@@ -180,6 +183,7 @@ declare namespace LocalJSX {
180
183
  "ratingStarsPlaceholder"?: string;
181
184
  "screenshotAttachedText"?: string;
182
185
  "screenshotButtonText"?: string;
186
+ "screenshotTakingText"?: string;
183
187
  "screenshotTopbarText"?: string;
184
188
  "sendButtonText"?: string;
185
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.66",
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",