pushfeedback 0.1.54 → 0.1.56
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 +53 -4
- 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 +117 -2
- package/dist/collection/components/feedback-modal/feedback-modal.css +2 -1
- package/dist/collection/components/feedback-modal/feedback-modal.js +20 -1
- package/dist/components/feedback-button.js +54 -4
- package/dist/components/feedback-modal2.js +4 -2
- package/dist/esm/feedback-button_2.entry.js +54 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pushfeedback.js +1 -1
- package/dist/pushfeedback/{p-41eb03ff.entry.js → p-6f061be2.entry.js} +2 -2
- package/dist/pushfeedback/pushfeedback.esm.js +1 -1
- package/dist/types/components/feedback-button/feedback-button.d.ts +10 -0
- package/dist/types/components/feedback-modal/feedback-modal.d.ts +1 -0
- 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-6f061be2",[[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"],footerText:[1,"footer-text"],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"],submit:[4]}],[1,"feedback-modal",{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"],footerText:[1,"footer-text"],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],overlayVisible:[32],isAnimating:[32],openModal:[64]}]]]],e)));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
1
2
|
export declare class FeedbackButton {
|
|
2
3
|
feedbackModal: any;
|
|
3
4
|
el: HTMLElement;
|
|
@@ -24,6 +25,7 @@ export declare class FeedbackButton {
|
|
|
24
25
|
ratingMode: string;
|
|
25
26
|
ratingPlaceholder: string;
|
|
26
27
|
ratingStarsPlaceholder: string;
|
|
28
|
+
footerText: string;
|
|
27
29
|
buttonStyle: string;
|
|
28
30
|
buttonPosition: string;
|
|
29
31
|
hideIcon: boolean;
|
|
@@ -31,6 +33,13 @@ export declare class FeedbackButton {
|
|
|
31
33
|
hidePrivacyPolicy: boolean;
|
|
32
34
|
privacyPolicyText: string;
|
|
33
35
|
fetchData: boolean;
|
|
36
|
+
submit: boolean;
|
|
37
|
+
feedbackSent: EventEmitter<{
|
|
38
|
+
feedback: any;
|
|
39
|
+
}>;
|
|
40
|
+
feedbackError: EventEmitter<{
|
|
41
|
+
error: any;
|
|
42
|
+
}>;
|
|
34
43
|
componentWillLoad(): void;
|
|
35
44
|
componentDidLoad(): void;
|
|
36
45
|
connectedCallback(): void;
|
|
@@ -39,5 +48,6 @@ export declare class FeedbackButton {
|
|
|
39
48
|
isSafariBrowser(): boolean;
|
|
40
49
|
loadInterFont(): void;
|
|
41
50
|
showModal(): void;
|
|
51
|
+
submitRatingFeedback(): Promise<void>;
|
|
42
52
|
render(): any;
|
|
43
53
|
}
|
|
@@ -16,6 +16,7 @@ export namespace Components {
|
|
|
16
16
|
"errorMessage403": string;
|
|
17
17
|
"errorMessage404": string;
|
|
18
18
|
"fetchData": boolean;
|
|
19
|
+
"footerText": string;
|
|
19
20
|
"hideEmail": boolean;
|
|
20
21
|
"hideIcon": boolean;
|
|
21
22
|
"hidePrivacyPolicy": boolean;
|
|
@@ -36,6 +37,7 @@ export namespace Components {
|
|
|
36
37
|
"screenshotTopbarText": string;
|
|
37
38
|
"sendButtonText": string;
|
|
38
39
|
"sessionId": string;
|
|
40
|
+
"submit": boolean;
|
|
39
41
|
"successMessage": string;
|
|
40
42
|
}
|
|
41
43
|
interface FeedbackModal {
|
|
@@ -46,6 +48,7 @@ export namespace Components {
|
|
|
46
48
|
"errorMessage403": string;
|
|
47
49
|
"errorMessage404": string;
|
|
48
50
|
"fetchData": boolean;
|
|
51
|
+
"footerText": string;
|
|
49
52
|
"hasSelectedElement": boolean;
|
|
50
53
|
"hideEmail": boolean;
|
|
51
54
|
"hidePrivacyPolicy": boolean;
|
|
@@ -72,6 +75,10 @@ export namespace Components {
|
|
|
72
75
|
"successMessage": string;
|
|
73
76
|
}
|
|
74
77
|
}
|
|
78
|
+
export interface FeedbackButtonCustomEvent<T> extends CustomEvent<T> {
|
|
79
|
+
detail: T;
|
|
80
|
+
target: HTMLFeedbackButtonElement;
|
|
81
|
+
}
|
|
75
82
|
export interface FeedbackModalCustomEvent<T> extends CustomEvent<T> {
|
|
76
83
|
detail: T;
|
|
77
84
|
target: HTMLFeedbackModalElement;
|
|
@@ -105,6 +112,7 @@ declare namespace LocalJSX {
|
|
|
105
112
|
"errorMessage403"?: string;
|
|
106
113
|
"errorMessage404"?: string;
|
|
107
114
|
"fetchData"?: boolean;
|
|
115
|
+
"footerText"?: string;
|
|
108
116
|
"hideEmail"?: boolean;
|
|
109
117
|
"hideIcon"?: boolean;
|
|
110
118
|
"hidePrivacyPolicy"?: boolean;
|
|
@@ -115,6 +123,8 @@ declare namespace LocalJSX {
|
|
|
115
123
|
"modalTitle"?: string;
|
|
116
124
|
"modalTitleError"?: string;
|
|
117
125
|
"modalTitleSuccess"?: string;
|
|
126
|
+
"onFeedbackError"?: (event: FeedbackButtonCustomEvent<{ error: any }>) => void;
|
|
127
|
+
"onFeedbackSent"?: (event: FeedbackButtonCustomEvent<{ feedback: any }>) => void;
|
|
118
128
|
"privacyPolicyText"?: string;
|
|
119
129
|
"project"?: string;
|
|
120
130
|
"rating"?: number;
|
|
@@ -125,6 +135,7 @@ declare namespace LocalJSX {
|
|
|
125
135
|
"screenshotTopbarText"?: string;
|
|
126
136
|
"sendButtonText"?: string;
|
|
127
137
|
"sessionId"?: string;
|
|
138
|
+
"submit"?: boolean;
|
|
128
139
|
"successMessage"?: string;
|
|
129
140
|
}
|
|
130
141
|
interface FeedbackModal {
|
|
@@ -135,6 +146,7 @@ declare namespace LocalJSX {
|
|
|
135
146
|
"errorMessage403"?: string;
|
|
136
147
|
"errorMessage404"?: string;
|
|
137
148
|
"fetchData"?: boolean;
|
|
149
|
+
"footerText"?: string;
|
|
138
150
|
"hasSelectedElement"?: boolean;
|
|
139
151
|
"hideEmail"?: boolean;
|
|
140
152
|
"hidePrivacyPolicy"?: boolean;
|
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.
|
|
5
|
+
"version": "0.1.56",
|
|
6
6
|
"description": "Feedback widget for websites.",
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
8
8
|
"module": "dist/index.js",
|