pushfeedback 0.1.42 → 0.1.44

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-90e8ba79.js";export{s as setNonce}from"./p-90e8ba79.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((e=>t([["p-377fd629",[[1,"feedback-button",{sessionId:[1,"session-id"],customFont:[4,"custom-font"],errorMessage:[1,"error-message"],errorMessage403:[1,"error-message-4-0-3"],errorMessage404:[1,"error-message-4-0-4"],modalTitle:[1,"modal-title"],modalTitleSuccess:[1,"modal-title-success"],modalTitleError:[1,"modal-title-error"],modalPosition:[1,"modal-position"],sendButtonText:[1,"send-button-text"],successMessage:[1,"success-message"],project:[1],screenshotButtonText:[1,"screenshot-button-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],hideEmail:[4,"hide-email"],emailAddress:[1,"email-address"],emailPlaceholder:[1,"email-placeholder"],messagePlaceholder:[1,"message-placeholder"],hideRating:[4,"hide-rating"],rating:[2],ratingMode:[1,"rating-mode"],ratingPlaceholder:[1,"rating-placeholder"],ratingStarsPlaceholder:[1,"rating-stars-placeholder"],buttonStyle:[1,"button-style"],buttonPosition:[1,"button-position"],hideIcon:[4,"hide-icon"],hideScreenshotButton:[4,"hide-screenshot-button"],hidePrivacyPolicy:[4,"hide-privacy-policy"],privacyPolicyText:[1,"privacy-policy-text"],fetchData:[4,"fetch-data"]}],[1,"feedback-modal",{sessionId:[1,"session-id"],errorMessage:[1,"error-message"],errorMessage403:[1,"error-message-4-0-3"],errorMessage404:[1,"error-message-4-0-4"],modalTitle:[1,"modal-title"],modalTitleSuccess:[1,"modal-title-success"],modalTitleError:[1,"modal-title-error"],modalPosition:[1,"modal-position"],sendButtonText:[1,"send-button-text"],successMessage:[1,"success-message"],project:[1],screenshotButtonText:[1,"screenshot-button-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],hideEmail:[4,"hide-email"],emailAddress:[1,"email-address"],emailPlaceholder:[1,"email-placeholder"],messagePlaceholder:[1,"message-placeholder"],hideRating:[4,"hide-rating"],rating:[2],ratingMode:[1,"rating-mode"],ratingPlaceholder:[1,"rating-placeholder"],ratingStarsPlaceholder:[1,"rating-stars-placeholder"],showModal:[1540,"show-modal"],showScreenshotMode:[1540,"show-screenshot-mode"],showScreenshotTopBar:[1540,"show-screenshot-top-bar"],hasSelectedElement:[1540,"has-selected-element"],hideScreenshotButton:[4,"hide-screenshot-button"],hidePrivacyPolicy:[4,"hide-privacy-policy"],privacyPolicyText:[1,"privacy-policy-text"],fetchData:[4,"fetch-data"],sending:[32],formMessage:[32],formEmail:[32],formSuccess:[32],formVerification:[32],formError:[32],formErrorStatus:[32],encodedScreenshot:[32],isPrivacyChecked:[32],whitelabel:[32],selectedRating:[32],session:[32]}]]]],e)));
1
+ import{p as e,b as t}from"./p-90e8ba79.js";export{s as setNonce}from"./p-90e8ba79.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-fb4e4a0c",[[1,"feedback-button",{sessionId:[1537,"session-id"],customFont:[4,"custom-font"],errorMessage:[1,"error-message"],errorMessage403:[1,"error-message-4-0-3"],errorMessage404:[1,"error-message-4-0-4"],modalTitle:[1,"modal-title"],modalTitleSuccess:[1,"modal-title-success"],modalTitleError:[1,"modal-title-error"],modalPosition:[1,"modal-position"],sendButtonText:[1,"send-button-text"],successMessage:[1,"success-message"],project:[1],screenshotButtonText:[1,"screenshot-button-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],hideEmail:[4,"hide-email"],emailAddress:[1,"email-address"],emailPlaceholder:[1,"email-placeholder"],messagePlaceholder:[1,"message-placeholder"],hideRating:[4,"hide-rating"],rating:[2],ratingMode:[1,"rating-mode"],ratingPlaceholder:[1,"rating-placeholder"],ratingStarsPlaceholder:[1,"rating-stars-placeholder"],buttonStyle:[1,"button-style"],buttonPosition:[1,"button-position"],hideIcon:[4,"hide-icon"],hideScreenshotButton:[4,"hide-screenshot-button"],hidePrivacyPolicy:[4,"hide-privacy-policy"],privacyPolicyText:[1,"privacy-policy-text"],fetchData:[4,"fetch-data"]}],[1,"feedback-modal",{errorMessage:[1,"error-message"],errorMessage403:[1,"error-message-4-0-3"],errorMessage404:[1,"error-message-4-0-4"],modalTitle:[1,"modal-title"],modalTitleSuccess:[1,"modal-title-success"],modalTitleError:[1,"modal-title-error"],modalPosition:[1,"modal-position"],sendButtonText:[1,"send-button-text"],successMessage:[1,"success-message"],project:[1],screenshotButtonText:[1,"screenshot-button-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],hideEmail:[4,"hide-email"],emailAddress:[1,"email-address"],emailPlaceholder:[1,"email-placeholder"],messagePlaceholder:[1,"message-placeholder"],hideRating:[4,"hide-rating"],rating:[2],ratingMode:[1,"rating-mode"],ratingPlaceholder:[1,"rating-placeholder"],ratingStarsPlaceholder:[1,"rating-stars-placeholder"],showModal:[1540,"show-modal"],showScreenshotMode:[1540,"show-screenshot-mode"],showScreenshotTopBar:[1540,"show-screenshot-top-bar"],hasSelectedElement:[1540,"has-selected-element"],hideScreenshotButton:[4,"hide-screenshot-button"],hidePrivacyPolicy:[4,"hide-privacy-policy"],privacyPolicyText:[1,"privacy-policy-text"],fetchData:[4,"fetch-data"],sending:[32],formMessage:[32],formEmail:[32],formSuccess:[32],formVerification:[32],formError:[32],formErrorStatus:[32],encodedScreenshot:[32],isPrivacyChecked:[32],whitelabel:[32],selectedRating:[32]}]]]],e)));
@@ -1,41 +1,43 @@
1
- export declare class FeedbackButton {
2
- feedbackModal: any;
3
- el: HTMLElement;
4
- sessionId: string;
5
- customFont: boolean;
6
- errorMessage: string;
7
- errorMessage403: string;
8
- errorMessage404: string;
9
- modalTitle: string;
10
- modalTitleSuccess: string;
11
- modalTitleError: string;
12
- modalPosition: string;
13
- sendButtonText: string;
14
- successMessage: string;
15
- project: string;
16
- screenshotButtonText: string;
17
- screenshotTopbarText: string;
18
- hideEmail: boolean;
19
- emailAddress: string;
20
- emailPlaceholder: string;
21
- messagePlaceholder: string;
22
- hideRating: boolean;
23
- rating: number;
24
- ratingMode: string;
25
- ratingPlaceholder: string;
26
- ratingStarsPlaceholder: string;
27
- buttonStyle: string;
28
- buttonPosition: string;
29
- hideIcon: boolean;
30
- hideScreenshotButton: boolean;
31
- hidePrivacyPolicy: boolean;
32
- privacyPolicyText: string;
33
- fetchData: boolean;
34
- connectedCallback(): void;
35
- disconnectedCallback(): void;
36
- isSafariBrowser(): boolean;
37
- componentDidLoad(): void;
38
- loadInterFont(): void;
39
- showModal(): void;
40
- render(): any;
41
- }
1
+ export declare class FeedbackButton {
2
+ feedbackModal: any;
3
+ el: HTMLElement;
4
+ sessionId: string;
5
+ customFont: boolean;
6
+ errorMessage: string;
7
+ errorMessage403: string;
8
+ errorMessage404: string;
9
+ modalTitle: string;
10
+ modalTitleSuccess: string;
11
+ modalTitleError: string;
12
+ modalPosition: string;
13
+ sendButtonText: string;
14
+ successMessage: string;
15
+ project: string;
16
+ screenshotButtonText: string;
17
+ screenshotTopbarText: string;
18
+ hideEmail: boolean;
19
+ emailAddress: string;
20
+ emailPlaceholder: string;
21
+ messagePlaceholder: string;
22
+ hideRating: boolean;
23
+ rating: number;
24
+ ratingMode: string;
25
+ ratingPlaceholder: string;
26
+ ratingStarsPlaceholder: string;
27
+ buttonStyle: string;
28
+ buttonPosition: string;
29
+ hideIcon: boolean;
30
+ hideScreenshotButton: boolean;
31
+ hidePrivacyPolicy: boolean;
32
+ privacyPolicyText: string;
33
+ fetchData: boolean;
34
+ componentWillLoad(): void;
35
+ componentDidLoad(): void;
36
+ connectedCallback(): void;
37
+ disconnectedCallback(): void;
38
+ generateRandomSessionId(length?: number): string;
39
+ isSafariBrowser(): boolean;
40
+ loadInterFont(): void;
41
+ showModal(): void;
42
+ render(): any;
43
+ }
@@ -1,70 +1,67 @@
1
- export declare class FeedbackModal {
2
- scrollTimeout: any;
3
- sending: boolean;
4
- formMessage: string;
5
- formEmail: string;
6
- formSuccess: boolean;
7
- formVerification: string;
8
- formError: boolean;
9
- formErrorStatus: number;
10
- encodedScreenshot: string;
11
- isPrivacyChecked: boolean;
12
- whitelabel: boolean;
13
- selectedRating: number;
14
- session: string;
15
- sessionId: string;
16
- errorMessage: string;
17
- errorMessage403: string;
18
- errorMessage404: string;
19
- modalTitle: string;
20
- modalTitleSuccess: string;
21
- modalTitleError: string;
22
- modalPosition: string;
23
- sendButtonText: string;
24
- successMessage: string;
25
- project: string;
26
- screenshotButtonText: string;
27
- screenshotTopbarText: string;
28
- hideEmail: boolean;
29
- emailAddress: string;
30
- emailPlaceholder: string;
31
- messagePlaceholder: string;
32
- hideRating: boolean;
33
- rating: number;
34
- ratingMode: string;
35
- ratingPlaceholder: string;
36
- ratingStarsPlaceholder: string;
37
- showModal: boolean;
38
- showScreenshotMode: boolean;
39
- showScreenshotTopBar: boolean;
40
- hasSelectedElement: boolean;
41
- hideScreenshotButton: boolean;
42
- hidePrivacyPolicy: boolean;
43
- privacyPolicyText: string;
44
- fetchData: boolean;
45
- modalContent: HTMLElement;
46
- screenshotModal: HTMLElement;
47
- elementSelected: HTMLElement;
48
- topSide: HTMLElement;
49
- leftSide: HTMLElement;
50
- bottomSide: HTMLElement;
51
- rightSide: HTMLElement;
52
- componentWillLoad(): void;
53
- fetchProjectData(): Promise<void>;
54
- generateRandomSessionId(length?: number): string;
55
- onScrollDebounced: () => void;
56
- resetOverflow(): void;
57
- handleMessageInput(event: Event): void;
58
- handleEmailInput(event: Event): void;
59
- handleSubmit: (event: Event) => Promise<void>;
60
- close: () => void;
61
- openScreenShot: () => void;
62
- closeScreenShot: () => void;
63
- handleMouseOverScreenShot: (event: any) => void;
64
- captureScreenshot(): Promise<unknown>;
65
- handleMouseClickedSelectedElement: (event: any) => Promise<void>;
66
- handleCheckboxChange(event: any): void;
67
- handleVerification(event: Event): void;
68
- handleRatingChange(newRating: number): void;
69
- render(): any;
70
- }
1
+ export declare class FeedbackModal {
2
+ scrollTimeout: any;
3
+ sending: boolean;
4
+ formMessage: string;
5
+ formEmail: string;
6
+ formSuccess: boolean;
7
+ formVerification: string;
8
+ formError: boolean;
9
+ formErrorStatus: number;
10
+ encodedScreenshot: string;
11
+ isPrivacyChecked: boolean;
12
+ whitelabel: boolean;
13
+ selectedRating: number;
14
+ errorMessage: string;
15
+ errorMessage403: string;
16
+ errorMessage404: string;
17
+ modalTitle: string;
18
+ modalTitleSuccess: string;
19
+ modalTitleError: string;
20
+ modalPosition: string;
21
+ sendButtonText: string;
22
+ successMessage: string;
23
+ project: string;
24
+ screenshotButtonText: string;
25
+ screenshotTopbarText: string;
26
+ hideEmail: boolean;
27
+ emailAddress: string;
28
+ emailPlaceholder: string;
29
+ messagePlaceholder: string;
30
+ hideRating: boolean;
31
+ rating: number;
32
+ ratingMode: string;
33
+ ratingPlaceholder: string;
34
+ ratingStarsPlaceholder: string;
35
+ showModal: boolean;
36
+ showScreenshotMode: boolean;
37
+ showScreenshotTopBar: boolean;
38
+ hasSelectedElement: boolean;
39
+ hideScreenshotButton: boolean;
40
+ hidePrivacyPolicy: boolean;
41
+ privacyPolicyText: string;
42
+ fetchData: boolean;
43
+ modalContent: HTMLElement;
44
+ screenshotModal: HTMLElement;
45
+ elementSelected: HTMLElement;
46
+ topSide: HTMLElement;
47
+ leftSide: HTMLElement;
48
+ bottomSide: HTMLElement;
49
+ rightSide: HTMLElement;
50
+ componentWillLoad(): void;
51
+ fetchProjectData(): Promise<void>;
52
+ onScrollDebounced: () => void;
53
+ resetOverflow(): void;
54
+ handleMessageInput(event: Event): void;
55
+ handleEmailInput(event: Event): void;
56
+ handleSubmit: (event: Event) => Promise<void>;
57
+ close: () => void;
58
+ openScreenShot: () => void;
59
+ closeScreenShot: () => void;
60
+ handleMouseOverScreenShot: (event: any) => void;
61
+ captureScreenshot(): Promise<unknown>;
62
+ handleMouseClickedSelectedElement: (event: any) => Promise<void>;
63
+ handleCheckboxChange(event: any): void;
64
+ handleVerification(event: Event): void;
65
+ handleRatingChange(newRating: number): void;
66
+ render(): any;
67
+ }
@@ -64,7 +64,6 @@ export namespace Components {
64
64
  "screenshotButtonText": string;
65
65
  "screenshotTopbarText": string;
66
66
  "sendButtonText": string;
67
- "sessionId": string;
68
67
  "showModal": boolean;
69
68
  "showScreenshotMode": boolean;
70
69
  "showScreenshotTopBar": boolean;
@@ -148,7 +147,6 @@ declare namespace LocalJSX {
148
147
  "screenshotButtonText"?: string;
149
148
  "screenshotTopbarText"?: string;
150
149
  "sendButtonText"?: string;
151
- "sessionId"?: string;
152
150
  "showModal"?: boolean;
153
151
  "showScreenshotMode"?: boolean;
154
152
  "showScreenshotTopBar"?: boolean;
@@ -1 +1 @@
1
- export * from './components';
1
+ export * from './components';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "pushfeedback",
3
3
  "author": "TechDocs Studio <hi@techdocs.studio>",
4
4
  "homepage": "https://pushfeedback.com/",
5
- "version": "0.1.42",
5
+ "version": "0.1.44",
6
6
  "description": "Feedback widget for websites.",
7
7
  "main": "dist/index.cjs.js",
8
8
  "module": "dist/index.js",
@@ -14,7 +14,7 @@
14
14
  "unpkg": "dist/pushfeedback/pushfeedback.esm.js",
15
15
  "repository": {
16
16
  "type": "git",
17
- "url": "https://github.com/PushLabsHQ/pushfeedback.git"
17
+ "url": "https://github.com/TechDocsStudio/pushfeedback.git"
18
18
  },
19
19
  "files": [
20
20
  "dist/",