pushfeedback 0.1.63 → 0.1.64
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 +101 -94
- 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 +212 -212
- package/dist/collection/components/feedback-modal/feedback-modal.js +212 -206
- package/dist/components/feedback-button.js +74 -74
- package/dist/components/feedback-modal2.js +73 -66
- package/dist/esm/feedback-button_2.entry.js +101 -94
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pushfeedback.js +1 -1
- package/dist/pushfeedback/{p-90a99a78.entry.js → p-1c7756d1.entry.js} +2 -2
- package/dist/pushfeedback/pushfeedback.esm.js +1 -1
- package/dist/types/components/feedback-button/feedback-button.d.ts +24 -24
- package/dist/types/components/feedback-modal/feedback-modal.d.ts +22 -22
- package/package.json +11 -3
|
@@ -6,7 +6,7 @@ export class FeedbackModal {
|
|
|
6
6
|
clearTimeout(this.scrollTimeout);
|
|
7
7
|
this.scrollTimeout = setTimeout(() => {
|
|
8
8
|
document.documentElement.classList.remove('feedback-modal-screenshot-closing');
|
|
9
|
-
document.documentElement.style.top =
|
|
9
|
+
document.documentElement.style.top = '';
|
|
10
10
|
window.removeEventListener('scroll', this.onScrollDebounced);
|
|
11
11
|
}, 200);
|
|
12
12
|
};
|
|
@@ -33,8 +33,8 @@ export class FeedbackModal {
|
|
|
33
33
|
method: 'POST',
|
|
34
34
|
body: JSON.stringify(body),
|
|
35
35
|
headers: {
|
|
36
|
-
'Content-Type': 'application/json'
|
|
37
|
-
}
|
|
36
|
+
'Content-Type': 'application/json',
|
|
37
|
+
},
|
|
38
38
|
});
|
|
39
39
|
if (res.status === 201) {
|
|
40
40
|
const feedback_with_id = Object.assign(Object.assign({}, body), { id: await res.json() });
|
|
@@ -118,7 +118,7 @@ export class FeedbackModal {
|
|
|
118
118
|
const rect = elementUnder.getBoundingClientRect();
|
|
119
119
|
this.screenshotModal.style.display = '';
|
|
120
120
|
// Get the bounding box of the element selected
|
|
121
|
-
this.elementSelected.style.position =
|
|
121
|
+
this.elementSelected.style.position = 'absolute';
|
|
122
122
|
this.elementSelected.style.left = `${rect.left}px`;
|
|
123
123
|
this.elementSelected.style.top = `${rect.top}px`;
|
|
124
124
|
this.elementSelected.style.width = `${rect.width}px`;
|
|
@@ -126,34 +126,33 @@ export class FeedbackModal {
|
|
|
126
126
|
this.elementSelected.classList.add('feedback-modal-element-hover');
|
|
127
127
|
// Set the background color of nonselected areas
|
|
128
128
|
// Top
|
|
129
|
-
this.topSide.style.position =
|
|
129
|
+
this.topSide.style.position = 'absolute';
|
|
130
130
|
this.topSide.style.left = `${rect.left}px`;
|
|
131
131
|
this.topSide.style.top = '0px';
|
|
132
132
|
this.topSide.style.width = `${rect.width + borderOffset}px`;
|
|
133
133
|
this.topSide.style.height = `${rect.top}px`;
|
|
134
|
-
this.topSide.style.backgroundColor =
|
|
134
|
+
this.topSide.style.backgroundColor = 'rgba(0, 0, 0, 0.4)';
|
|
135
135
|
// Left
|
|
136
|
-
this.leftSide.style.position =
|
|
136
|
+
this.leftSide.style.position = 'absolute';
|
|
137
137
|
this.leftSide.style.left = '0px';
|
|
138
138
|
this.leftSide.style.top = '0px';
|
|
139
139
|
this.leftSide.style.width = `${rect.left}px`;
|
|
140
140
|
this.leftSide.style.height = '100vh';
|
|
141
|
-
this.leftSide.style.backgroundColor =
|
|
141
|
+
this.leftSide.style.backgroundColor = 'rgba(0, 0, 0, 0.4)';
|
|
142
142
|
// Bottom
|
|
143
|
-
this.bottomSide.style.position =
|
|
143
|
+
this.bottomSide.style.position = 'absolute';
|
|
144
144
|
this.bottomSide.style.left = `${rect.left}px`;
|
|
145
145
|
this.bottomSide.style.top = `${rect.bottom + borderOffset}px`;
|
|
146
146
|
this.bottomSide.style.width = `${rect.width + borderOffset}px`;
|
|
147
147
|
this.bottomSide.style.height = '100vh';
|
|
148
|
-
this.bottomSide.style.backgroundColor =
|
|
148
|
+
this.bottomSide.style.backgroundColor = 'rgba(0, 0, 0, 0.4)';
|
|
149
149
|
// Right
|
|
150
|
-
this.rightSide.style.position =
|
|
150
|
+
this.rightSide.style.position = 'absolute';
|
|
151
151
|
this.rightSide.style.left = `${rect.right + borderOffset}px`;
|
|
152
|
-
;
|
|
153
152
|
this.rightSide.style.top = '0px';
|
|
154
153
|
this.rightSide.style.width = '100%';
|
|
155
154
|
this.rightSide.style.height = '100vh';
|
|
156
|
-
this.rightSide.style.backgroundColor =
|
|
155
|
+
this.rightSide.style.backgroundColor = 'rgba(0, 0, 0, 0.4)';
|
|
157
156
|
// Restore the visibility of the screenshot-modal
|
|
158
157
|
this.screenshotModal.style.backgroundColor = 'transparent';
|
|
159
158
|
};
|
|
@@ -205,36 +204,36 @@ export class FeedbackModal {
|
|
|
205
204
|
this.overlayVisible = false;
|
|
206
205
|
this.isAnimating = false;
|
|
207
206
|
this.customFont = false;
|
|
208
|
-
this.errorMessage = "Please try again later.";
|
|
209
|
-
this.errorMessage403 = "The request URL does not match the one defined in PushFeedback for this project.";
|
|
210
|
-
this.errorMessage404 = "We could not find the provided project ID in PushFeedback.";
|
|
211
|
-
this.modalTitle = 'Share your feedback';
|
|
212
|
-
this.modalTitleSuccess = 'Thanks for your feedback!';
|
|
213
|
-
this.modalTitleError = "Oops!";
|
|
214
|
-
this.modalPosition = 'center';
|
|
215
|
-
this.sendButtonText = 'Send';
|
|
216
|
-
this.successMessage = "";
|
|
217
|
-
this.project = '';
|
|
218
|
-
this.screenshotButtonText = 'Add a screenshot';
|
|
219
|
-
this.screenshotTopbarText = 'Select an element on this page';
|
|
220
|
-
this.hideEmail = false;
|
|
221
207
|
this.emailAddress = '';
|
|
222
|
-
this.
|
|
223
|
-
this.messagePlaceholder = 'Comments';
|
|
224
|
-
this.hideRating = false;
|
|
225
|
-
this.rating = undefined;
|
|
208
|
+
this.hideEmail = false;
|
|
226
209
|
this.ratingMode = 'thumbs';
|
|
227
|
-
this.ratingPlaceholder = 'Was this page helpful?';
|
|
228
|
-
this.ratingStarsPlaceholder = 'How would you rate this page?';
|
|
229
|
-
this.footerText = '';
|
|
230
|
-
this.showModal = false;
|
|
231
|
-
this.showScreenshotMode = false;
|
|
232
|
-
this.showScreenshotTopBar = false;
|
|
233
210
|
this.hasSelectedElement = false;
|
|
234
|
-
this.hideScreenshotButton = false;
|
|
235
211
|
this.hidePrivacyPolicy = true;
|
|
236
|
-
this.
|
|
212
|
+
this.hideRating = false;
|
|
213
|
+
this.hideScreenshotButton = false;
|
|
214
|
+
this.project = '';
|
|
215
|
+
this.showScreenshotMode = false;
|
|
216
|
+
this.showScreenshotTopBar = false;
|
|
217
|
+
this.showModal = false;
|
|
218
|
+
this.rating = undefined;
|
|
237
219
|
this.fetchData = true;
|
|
220
|
+
this.emailPlaceholder = 'Email address (optional)';
|
|
221
|
+
this.errorMessage = 'Please try again later.';
|
|
222
|
+
this.errorMessage403 = 'The request URL does not match the one defined in PushFeedback for this project.';
|
|
223
|
+
this.errorMessage404 = 'We could not find the provided project ID in PushFeedback.';
|
|
224
|
+
this.messagePlaceholder = 'Comments';
|
|
225
|
+
this.footerText = '';
|
|
226
|
+
this.modalPosition = 'center';
|
|
227
|
+
this.modalTitle = 'Share your feedback';
|
|
228
|
+
this.modalTitleError = 'Oops!';
|
|
229
|
+
this.modalTitleSuccess = 'Thanks for your feedback!';
|
|
230
|
+
this.privacyPolicyText = "I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.";
|
|
231
|
+
this.ratingPlaceholder = 'Was this page helpful?';
|
|
232
|
+
this.ratingStarsPlaceholder = 'How would you rate this page?';
|
|
233
|
+
this.sendButtonText = 'Send';
|
|
234
|
+
this.screenshotButtonText = 'Add a screenshot';
|
|
235
|
+
this.screenshotTopbarText = 'Select an element on this page';
|
|
236
|
+
this.successMessage = '';
|
|
238
237
|
}
|
|
239
238
|
componentWillLoad() {
|
|
240
239
|
if (this.fetchData)
|
|
@@ -243,7 +242,7 @@ export class FeedbackModal {
|
|
|
243
242
|
if (this.rating) {
|
|
244
243
|
this.selectedRating = this.rating;
|
|
245
244
|
}
|
|
246
|
-
if (this.ratingMode ==
|
|
245
|
+
if (this.ratingMode == 'thumbs' && this.rating == 0) {
|
|
247
246
|
this.selectedRating = 5;
|
|
248
247
|
}
|
|
249
248
|
}
|
|
@@ -282,11 +281,12 @@ export class FeedbackModal {
|
|
|
282
281
|
y: window.scrollY,
|
|
283
282
|
width: window.innerWidth,
|
|
284
283
|
height: window.innerHeight,
|
|
285
|
-
})
|
|
284
|
+
})
|
|
285
|
+
.then((canvas) => {
|
|
286
286
|
const dataUrl = canvas.toDataURL();
|
|
287
287
|
resolve(dataUrl);
|
|
288
288
|
})
|
|
289
|
-
.catch(error => {
|
|
289
|
+
.catch((error) => {
|
|
290
290
|
console.error(error);
|
|
291
291
|
reject(error);
|
|
292
292
|
});
|
|
@@ -303,16 +303,22 @@ export class FeedbackModal {
|
|
|
303
303
|
this.selectedRating = newRating;
|
|
304
304
|
}
|
|
305
305
|
render() {
|
|
306
|
-
return (h("div", { class: `feedback-modal-wrapper ${this.customFont ? 'feedback-modal-wrapper--custom-font' : ''}` }, this.showScreenshotMode && (h("div", { class: "feedback-modal-screenshot", ref: el => (this.screenshotModal = el), onMouseMove: this.handleMouseOverScreenShot }, h("div", { class: "feedback-modal-screenshot-element-selected", ref: el => (this.elementSelected = el), onClick: this.handleMouseClickedSelectedElement }), h("div", { class: "top-side", ref: el => (this.topSide = el) }), h("div", { class: "left-side", ref: el => (this.leftSide = el) }), h("div", { class: "bottom-side", ref: el => (this.bottomSide = el) }), h("div", { class: "right-side", ref: el => (this.rightSide = el) }), this.showScreenshotTopBar && (h("div", { class: "feedback-modal-screenshot-header", onClick: this.closeScreenShot }, h("span", null, this.screenshotTopbarText), h("span", { class: "feedback-modal-screenshot-close" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "#191919", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-x" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))))))), this.showModal && (h("div", { class: `feedback-overlay ${this.isAnimating ? 'feedback-overlay--visible' : ''}` })), this.showModal && (h("div", { class: `feedback-modal-content feedback-modal-content--${this.modalPosition} ${this.isAnimating ? 'feedback-modal-content--open' : ''}`, ref: el => (this.modalContent = el) }, h("div", { class: "feedback-modal-header" }, !this.formSuccess && !this.formError ? (h("span", null, this.modalTitle)) : this.formSuccess ? (h("span", null, this.modalTitleSuccess)) : h("span", null, this.modalTitleError), h("button", { class: "feedback-modal-close", onClick: this.close }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "#191919", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-x" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { class: "feedback-modal-body" }, !this.formSuccess && !this.formError ? (h("form", { onSubmit: this.handleSubmit }, !this.hideRating && (h("div", { class: "feedback-modal-rating" }, this.ratingMode === 'thumbs' ? (h("div", { class: "feedback-modal-rating-content" }, h("span", { class: "feedback-modal-input-heading" }, this.ratingPlaceholder), h("div", { class: "feedback-modal-rating-buttons feedback-modal-rating-buttons--thumbs" }, h("button", { title: "Yes", class: `feedback-modal-rating-button ${this.selectedRating === 1
|
|
306
|
+
return (h("div", { class: `feedback-modal-wrapper ${this.customFont ? 'feedback-modal-wrapper--custom-font' : ''}` }, this.showScreenshotMode && (h("div", { class: "feedback-modal-screenshot", ref: (el) => (this.screenshotModal = el), onMouseMove: this.handleMouseOverScreenShot }, h("div", { class: "feedback-modal-screenshot-element-selected", ref: (el) => (this.elementSelected = el), onClick: this.handleMouseClickedSelectedElement }), h("div", { class: "top-side", ref: (el) => (this.topSide = el) }), h("div", { class: "left-side", ref: (el) => (this.leftSide = el) }), h("div", { class: "bottom-side", ref: (el) => (this.bottomSide = el) }), h("div", { class: "right-side", ref: (el) => (this.rightSide = el) }), this.showScreenshotTopBar && (h("div", { class: "feedback-modal-screenshot-header", onClick: this.closeScreenShot }, h("span", null, this.screenshotTopbarText), h("span", { class: "feedback-modal-screenshot-close" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "#191919", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-x" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))))))), this.showModal && (h("div", { class: `feedback-overlay ${this.isAnimating ? 'feedback-overlay--visible' : ''}` })), this.showModal && (h("div", { class: `feedback-modal-content feedback-modal-content--${this.modalPosition} ${this.isAnimating ? 'feedback-modal-content--open' : ''}`, ref: (el) => (this.modalContent = el) }, h("div", { class: "feedback-modal-header" }, !this.formSuccess && !this.formError ? (h("span", null, this.modalTitle)) : this.formSuccess ? (h("span", null, this.modalTitleSuccess)) : (h("span", null, this.modalTitleError)), h("button", { class: "feedback-modal-close", onClick: this.close }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "#191919", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-x" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { class: "feedback-modal-body" }, !this.formSuccess && !this.formError ? (h("form", { onSubmit: this.handleSubmit }, !this.hideRating && (h("div", { class: "feedback-modal-rating" }, this.ratingMode === 'thumbs' ? (h("div", { class: "feedback-modal-rating-content" }, h("span", { class: "feedback-modal-input-heading" }, this.ratingPlaceholder), h("div", { class: "feedback-modal-rating-buttons feedback-modal-rating-buttons--thumbs" }, h("button", { title: "Yes", class: `feedback-modal-rating-button ${this.selectedRating === 1
|
|
307
|
+
? 'feedback-modal-rating-button--selected'
|
|
308
|
+
: ''}`, onClick: (event) => {
|
|
307
309
|
event.preventDefault();
|
|
308
310
|
this.handleRatingChange(1);
|
|
309
|
-
} }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "#5F6368", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3" }))), h("button", { title: "No", class: `feedback-modal-rating-button ${this.selectedRating === 5
|
|
311
|
+
} }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "#5F6368", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3" }))), h("button", { title: "No", class: `feedback-modal-rating-button ${this.selectedRating === 5
|
|
312
|
+
? 'feedback-modal-rating-button--selected'
|
|
313
|
+
: ''}`, onClick: (event) => {
|
|
310
314
|
event.preventDefault();
|
|
311
315
|
this.handleRatingChange(5);
|
|
312
|
-
} }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "#5F6368", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17" })))))) : (h("div", { class: "feedback-modal-rating-content" }, h("span", { class: "feedback-modal-input-heading" }, this.ratingStarsPlaceholder), h("div", { class: "feedback-modal-rating-buttons feedback-modal-rating-buttons--stars" }, [1, 2, 3, 4, 5].map((rating) => (h("button", { key: rating, class: `feedback-modal-rating-button ${this.selectedRating >= rating
|
|
316
|
+
} }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "#5F6368", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17" })))))) : (h("div", { class: "feedback-modal-rating-content" }, h("span", { class: "feedback-modal-input-heading" }, this.ratingStarsPlaceholder), h("div", { class: "feedback-modal-rating-buttons feedback-modal-rating-buttons--stars" }, [1, 2, 3, 4, 5].map((rating) => (h("button", { key: rating, class: `feedback-modal-rating-button ${this.selectedRating >= rating
|
|
317
|
+
? 'feedback-modal-rating-button--selected'
|
|
318
|
+
: ''}`, onClick: (event) => {
|
|
313
319
|
event.preventDefault();
|
|
314
320
|
this.handleRatingChange(rating);
|
|
315
|
-
} }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", viewBox: "0 0 24 24", fill: "none", stroke: "#5F6368", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("polygon", { points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" })))))))))), h("div", { class: "feedback-modal-text" }, h("textarea", { placeholder: this.messagePlaceholder, value: this.formMessage, onInput: (event) => this.handleMessageInput(event) })), !this.hideEmail && (h("div", { class: "feedback-modal-email" }, h("input", { placeholder: this.emailPlaceholder, type: "email", onInput: (event) => this.handleEmailInput(event), value: this.formEmail }))), h("div", { class: "feedback-verification" }, h("input", { type: "text", name: "verification", style: { display: 'none' }, onInput: (event) => this.handleVerification(event), value: this.formVerification })), !this.hidePrivacyPolicy && (h("div", { class: "feedback-modal-privacy" }, h("input", { type: "checkbox", id: "privacyPolicy", onChange: (ev) => this.handleCheckboxChange(ev), required: true }), h("span", { innerHTML: this.privacyPolicyText }))), h("div", { class: `feedback-modal-buttons ${this.hideScreenshotButton ? 'single' : ''}` }, !this.hideScreenshotButton && (h("button", { type: "button", class: `feedback-modal-button feedback-modal-button--screenshot ${this.encodedScreenshot ?
|
|
321
|
+
} }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", viewBox: "0 0 24 24", fill: "none", stroke: "#5F6368", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("polygon", { points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" })))))))))), h("div", { class: "feedback-modal-text" }, h("textarea", { placeholder: this.messagePlaceholder, value: this.formMessage, onInput: (event) => this.handleMessageInput(event) })), !this.hideEmail && (h("div", { class: "feedback-modal-email" }, h("input", { placeholder: this.emailPlaceholder, type: "email", onInput: (event) => this.handleEmailInput(event), value: this.formEmail }))), h("div", { class: "feedback-verification" }, h("input", { type: "text", name: "verification", style: { display: 'none' }, onInput: (event) => this.handleVerification(event), value: this.formVerification })), !this.hidePrivacyPolicy && (h("div", { class: "feedback-modal-privacy" }, h("input", { type: "checkbox", id: "privacyPolicy", onChange: (ev) => this.handleCheckboxChange(ev), required: true }), h("span", { innerHTML: this.privacyPolicyText }))), h("div", { class: `feedback-modal-buttons ${this.hideScreenshotButton ? 'single' : ''}` }, !this.hideScreenshotButton && (h("button", { type: "button", class: `feedback-modal-button feedback-modal-button--screenshot ${this.encodedScreenshot ? 'feedback-modal-button--active' : ''}`, onClick: this.openScreenShot, disabled: this.sending }, h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24", viewBox: "0 -960 960 960", width: "24" }, h("path", { d: "M680-80v-120H560v-80h120v-120h80v120h120v80H760v120h-80ZM200-200v-200h80v120h120v80H200Zm0-360v-200h200v80H280v120h-80Zm480 0v-120H560v-80h200v200h-80Z" })), this.screenshotButtonText)), h("button", { class: "feedback-modal-button feedback-modal-button--submit", type: "submit", disabled: this.sending }, this.sendButtonText)))) : this.formSuccess && !this.formError ? (h("div", { class: "feedback-modal-success" }, h("p", { class: "feedback-modal-message" }, this.successMessage))) : this.formError && this.formErrorStatus == 404 ? (h("p", { class: "feedback-modal-message" }, this.errorMessage404)) : this.formError && this.formErrorStatus == 403 ? (h("p", { class: "feedback-modal-message" }, this.errorMessage403)) : this.formError ? (h("p", { class: "feedback-modal-message" }, this.errorMessage)) : (h("span", null))), h("div", { class: "feedback-modal-footer" }, h("div", { class: "feedback-logo", style: { display: this.whitelabel ? 'none' : 'block' } }, "Powered by", ' ', h("a", { target: "_blank", href: "https://pushfeedback.com" }, "PushFeedback.com")), this.footerText && (h("div", { class: "feedback-footer-text" }, h("span", { innerHTML: this.footerText }))))))));
|
|
316
322
|
}
|
|
317
323
|
componentDidRender() {
|
|
318
324
|
if (this.showModal) {
|
|
@@ -361,7 +367,7 @@ export class FeedbackModal {
|
|
|
361
367
|
"reflect": false,
|
|
362
368
|
"defaultValue": "false"
|
|
363
369
|
},
|
|
364
|
-
"
|
|
370
|
+
"emailAddress": {
|
|
365
371
|
"type": "string",
|
|
366
372
|
"mutable": false,
|
|
367
373
|
"complexType": {
|
|
@@ -375,16 +381,16 @@ export class FeedbackModal {
|
|
|
375
381
|
"tags": [],
|
|
376
382
|
"text": ""
|
|
377
383
|
},
|
|
378
|
-
"attribute": "
|
|
384
|
+
"attribute": "email-address",
|
|
379
385
|
"reflect": false,
|
|
380
|
-
"defaultValue": "
|
|
386
|
+
"defaultValue": "''"
|
|
381
387
|
},
|
|
382
|
-
"
|
|
383
|
-
"type": "
|
|
388
|
+
"hideEmail": {
|
|
389
|
+
"type": "boolean",
|
|
384
390
|
"mutable": false,
|
|
385
391
|
"complexType": {
|
|
386
|
-
"original": "
|
|
387
|
-
"resolved": "
|
|
392
|
+
"original": "boolean",
|
|
393
|
+
"resolved": "boolean",
|
|
388
394
|
"references": {}
|
|
389
395
|
},
|
|
390
396
|
"required": false,
|
|
@@ -393,11 +399,11 @@ export class FeedbackModal {
|
|
|
393
399
|
"tags": [],
|
|
394
400
|
"text": ""
|
|
395
401
|
},
|
|
396
|
-
"attribute": "
|
|
402
|
+
"attribute": "hide-email",
|
|
397
403
|
"reflect": false,
|
|
398
|
-
"defaultValue": "
|
|
404
|
+
"defaultValue": "false"
|
|
399
405
|
},
|
|
400
|
-
"
|
|
406
|
+
"ratingMode": {
|
|
401
407
|
"type": "string",
|
|
402
408
|
"mutable": false,
|
|
403
409
|
"complexType": {
|
|
@@ -411,16 +417,16 @@ export class FeedbackModal {
|
|
|
411
417
|
"tags": [],
|
|
412
418
|
"text": ""
|
|
413
419
|
},
|
|
414
|
-
"attribute": "
|
|
420
|
+
"attribute": "rating-mode",
|
|
415
421
|
"reflect": false,
|
|
416
|
-
"defaultValue": "
|
|
422
|
+
"defaultValue": "'thumbs'"
|
|
417
423
|
},
|
|
418
|
-
"
|
|
419
|
-
"type": "
|
|
420
|
-
"mutable":
|
|
424
|
+
"hasSelectedElement": {
|
|
425
|
+
"type": "boolean",
|
|
426
|
+
"mutable": true,
|
|
421
427
|
"complexType": {
|
|
422
|
-
"original": "
|
|
423
|
-
"resolved": "
|
|
428
|
+
"original": "boolean",
|
|
429
|
+
"resolved": "boolean",
|
|
424
430
|
"references": {}
|
|
425
431
|
},
|
|
426
432
|
"required": false,
|
|
@@ -429,16 +435,16 @@ export class FeedbackModal {
|
|
|
429
435
|
"tags": [],
|
|
430
436
|
"text": ""
|
|
431
437
|
},
|
|
432
|
-
"attribute": "
|
|
433
|
-
"reflect":
|
|
434
|
-
"defaultValue": "
|
|
438
|
+
"attribute": "has-selected-element",
|
|
439
|
+
"reflect": true,
|
|
440
|
+
"defaultValue": "false"
|
|
435
441
|
},
|
|
436
|
-
"
|
|
437
|
-
"type": "
|
|
442
|
+
"hidePrivacyPolicy": {
|
|
443
|
+
"type": "boolean",
|
|
438
444
|
"mutable": false,
|
|
439
445
|
"complexType": {
|
|
440
|
-
"original": "
|
|
441
|
-
"resolved": "
|
|
446
|
+
"original": "boolean",
|
|
447
|
+
"resolved": "boolean",
|
|
442
448
|
"references": {}
|
|
443
449
|
},
|
|
444
450
|
"required": false,
|
|
@@ -447,16 +453,16 @@ export class FeedbackModal {
|
|
|
447
453
|
"tags": [],
|
|
448
454
|
"text": ""
|
|
449
455
|
},
|
|
450
|
-
"attribute": "
|
|
456
|
+
"attribute": "hide-privacy-policy",
|
|
451
457
|
"reflect": false,
|
|
452
|
-
"defaultValue": "
|
|
458
|
+
"defaultValue": "true"
|
|
453
459
|
},
|
|
454
|
-
"
|
|
455
|
-
"type": "
|
|
460
|
+
"hideRating": {
|
|
461
|
+
"type": "boolean",
|
|
456
462
|
"mutable": false,
|
|
457
463
|
"complexType": {
|
|
458
|
-
"original": "
|
|
459
|
-
"resolved": "
|
|
464
|
+
"original": "boolean",
|
|
465
|
+
"resolved": "boolean",
|
|
460
466
|
"references": {}
|
|
461
467
|
},
|
|
462
468
|
"required": false,
|
|
@@ -465,16 +471,16 @@ export class FeedbackModal {
|
|
|
465
471
|
"tags": [],
|
|
466
472
|
"text": ""
|
|
467
473
|
},
|
|
468
|
-
"attribute": "
|
|
474
|
+
"attribute": "hide-rating",
|
|
469
475
|
"reflect": false,
|
|
470
|
-
"defaultValue": "
|
|
476
|
+
"defaultValue": "false"
|
|
471
477
|
},
|
|
472
|
-
"
|
|
473
|
-
"type": "
|
|
478
|
+
"hideScreenshotButton": {
|
|
479
|
+
"type": "boolean",
|
|
474
480
|
"mutable": false,
|
|
475
481
|
"complexType": {
|
|
476
|
-
"original": "
|
|
477
|
-
"resolved": "
|
|
482
|
+
"original": "boolean",
|
|
483
|
+
"resolved": "boolean",
|
|
478
484
|
"references": {}
|
|
479
485
|
},
|
|
480
486
|
"required": false,
|
|
@@ -483,11 +489,11 @@ export class FeedbackModal {
|
|
|
483
489
|
"tags": [],
|
|
484
490
|
"text": ""
|
|
485
491
|
},
|
|
486
|
-
"attribute": "
|
|
492
|
+
"attribute": "hide-screenshot-button",
|
|
487
493
|
"reflect": false,
|
|
488
|
-
"defaultValue": "
|
|
494
|
+
"defaultValue": "false"
|
|
489
495
|
},
|
|
490
|
-
"
|
|
496
|
+
"project": {
|
|
491
497
|
"type": "string",
|
|
492
498
|
"mutable": false,
|
|
493
499
|
"complexType": {
|
|
@@ -501,16 +507,16 @@ export class FeedbackModal {
|
|
|
501
507
|
"tags": [],
|
|
502
508
|
"text": ""
|
|
503
509
|
},
|
|
504
|
-
"attribute": "
|
|
510
|
+
"attribute": "project",
|
|
505
511
|
"reflect": false,
|
|
506
|
-
"defaultValue": "'
|
|
512
|
+
"defaultValue": "''"
|
|
507
513
|
},
|
|
508
|
-
"
|
|
509
|
-
"type": "
|
|
510
|
-
"mutable":
|
|
514
|
+
"showScreenshotMode": {
|
|
515
|
+
"type": "boolean",
|
|
516
|
+
"mutable": true,
|
|
511
517
|
"complexType": {
|
|
512
|
-
"original": "
|
|
513
|
-
"resolved": "
|
|
518
|
+
"original": "boolean",
|
|
519
|
+
"resolved": "boolean",
|
|
514
520
|
"references": {}
|
|
515
521
|
},
|
|
516
522
|
"required": false,
|
|
@@ -519,16 +525,16 @@ export class FeedbackModal {
|
|
|
519
525
|
"tags": [],
|
|
520
526
|
"text": ""
|
|
521
527
|
},
|
|
522
|
-
"attribute": "
|
|
523
|
-
"reflect":
|
|
524
|
-
"defaultValue": "
|
|
528
|
+
"attribute": "show-screenshot-mode",
|
|
529
|
+
"reflect": true,
|
|
530
|
+
"defaultValue": "false"
|
|
525
531
|
},
|
|
526
|
-
"
|
|
527
|
-
"type": "
|
|
528
|
-
"mutable":
|
|
532
|
+
"showScreenshotTopBar": {
|
|
533
|
+
"type": "boolean",
|
|
534
|
+
"mutable": true,
|
|
529
535
|
"complexType": {
|
|
530
|
-
"original": "
|
|
531
|
-
"resolved": "
|
|
536
|
+
"original": "boolean",
|
|
537
|
+
"resolved": "boolean",
|
|
532
538
|
"references": {}
|
|
533
539
|
},
|
|
534
540
|
"required": false,
|
|
@@ -537,16 +543,16 @@ export class FeedbackModal {
|
|
|
537
543
|
"tags": [],
|
|
538
544
|
"text": ""
|
|
539
545
|
},
|
|
540
|
-
"attribute": "
|
|
541
|
-
"reflect":
|
|
542
|
-
"defaultValue": "
|
|
546
|
+
"attribute": "show-screenshot-top-bar",
|
|
547
|
+
"reflect": true,
|
|
548
|
+
"defaultValue": "false"
|
|
543
549
|
},
|
|
544
|
-
"
|
|
545
|
-
"type": "
|
|
546
|
-
"mutable":
|
|
550
|
+
"showModal": {
|
|
551
|
+
"type": "boolean",
|
|
552
|
+
"mutable": true,
|
|
547
553
|
"complexType": {
|
|
548
|
-
"original": "
|
|
549
|
-
"resolved": "
|
|
554
|
+
"original": "boolean",
|
|
555
|
+
"resolved": "boolean",
|
|
550
556
|
"references": {}
|
|
551
557
|
},
|
|
552
558
|
"required": false,
|
|
@@ -555,16 +561,16 @@ export class FeedbackModal {
|
|
|
555
561
|
"tags": [],
|
|
556
562
|
"text": ""
|
|
557
563
|
},
|
|
558
|
-
"attribute": "
|
|
559
|
-
"reflect":
|
|
560
|
-
"defaultValue": "
|
|
564
|
+
"attribute": "show-modal",
|
|
565
|
+
"reflect": true,
|
|
566
|
+
"defaultValue": "false"
|
|
561
567
|
},
|
|
562
|
-
"
|
|
563
|
-
"type": "
|
|
568
|
+
"rating": {
|
|
569
|
+
"type": "number",
|
|
564
570
|
"mutable": false,
|
|
565
571
|
"complexType": {
|
|
566
|
-
"original": "
|
|
567
|
-
"resolved": "
|
|
572
|
+
"original": "number",
|
|
573
|
+
"resolved": "number",
|
|
568
574
|
"references": {}
|
|
569
575
|
},
|
|
570
576
|
"required": false,
|
|
@@ -573,11 +579,10 @@ export class FeedbackModal {
|
|
|
573
579
|
"tags": [],
|
|
574
580
|
"text": ""
|
|
575
581
|
},
|
|
576
|
-
"attribute": "
|
|
577
|
-
"reflect": false
|
|
578
|
-
"defaultValue": "'Select an element on this page'"
|
|
582
|
+
"attribute": "rating",
|
|
583
|
+
"reflect": false
|
|
579
584
|
},
|
|
580
|
-
"
|
|
585
|
+
"fetchData": {
|
|
581
586
|
"type": "boolean",
|
|
582
587
|
"mutable": false,
|
|
583
588
|
"complexType": {
|
|
@@ -591,11 +596,11 @@ export class FeedbackModal {
|
|
|
591
596
|
"tags": [],
|
|
592
597
|
"text": ""
|
|
593
598
|
},
|
|
594
|
-
"attribute": "
|
|
599
|
+
"attribute": "fetch-data",
|
|
595
600
|
"reflect": false,
|
|
596
|
-
"defaultValue": "
|
|
601
|
+
"defaultValue": "true"
|
|
597
602
|
},
|
|
598
|
-
"
|
|
603
|
+
"emailPlaceholder": {
|
|
599
604
|
"type": "string",
|
|
600
605
|
"mutable": false,
|
|
601
606
|
"complexType": {
|
|
@@ -609,11 +614,11 @@ export class FeedbackModal {
|
|
|
609
614
|
"tags": [],
|
|
610
615
|
"text": ""
|
|
611
616
|
},
|
|
612
|
-
"attribute": "email-
|
|
617
|
+
"attribute": "email-placeholder",
|
|
613
618
|
"reflect": false,
|
|
614
|
-
"defaultValue": "''"
|
|
619
|
+
"defaultValue": "'Email address (optional)'"
|
|
615
620
|
},
|
|
616
|
-
"
|
|
621
|
+
"errorMessage": {
|
|
617
622
|
"type": "string",
|
|
618
623
|
"mutable": false,
|
|
619
624
|
"complexType": {
|
|
@@ -627,11 +632,11 @@ export class FeedbackModal {
|
|
|
627
632
|
"tags": [],
|
|
628
633
|
"text": ""
|
|
629
634
|
},
|
|
630
|
-
"attribute": "
|
|
635
|
+
"attribute": "error-message",
|
|
631
636
|
"reflect": false,
|
|
632
|
-
"defaultValue": "'
|
|
637
|
+
"defaultValue": "'Please try again later.'"
|
|
633
638
|
},
|
|
634
|
-
"
|
|
639
|
+
"errorMessage403": {
|
|
635
640
|
"type": "string",
|
|
636
641
|
"mutable": false,
|
|
637
642
|
"complexType": {
|
|
@@ -645,16 +650,16 @@ export class FeedbackModal {
|
|
|
645
650
|
"tags": [],
|
|
646
651
|
"text": ""
|
|
647
652
|
},
|
|
648
|
-
"attribute": "message-
|
|
653
|
+
"attribute": "error-message-4-0-3",
|
|
649
654
|
"reflect": false,
|
|
650
|
-
"defaultValue": "'
|
|
655
|
+
"defaultValue": "'The request URL does not match the one defined in PushFeedback for this project.'"
|
|
651
656
|
},
|
|
652
|
-
"
|
|
653
|
-
"type": "
|
|
657
|
+
"errorMessage404": {
|
|
658
|
+
"type": "string",
|
|
654
659
|
"mutable": false,
|
|
655
660
|
"complexType": {
|
|
656
|
-
"original": "
|
|
657
|
-
"resolved": "
|
|
661
|
+
"original": "string",
|
|
662
|
+
"resolved": "string",
|
|
658
663
|
"references": {}
|
|
659
664
|
},
|
|
660
665
|
"required": false,
|
|
@@ -663,16 +668,16 @@ export class FeedbackModal {
|
|
|
663
668
|
"tags": [],
|
|
664
669
|
"text": ""
|
|
665
670
|
},
|
|
666
|
-
"attribute": "
|
|
671
|
+
"attribute": "error-message-4-0-4",
|
|
667
672
|
"reflect": false,
|
|
668
|
-
"defaultValue": "
|
|
673
|
+
"defaultValue": "'We could not find the provided project ID in PushFeedback.'"
|
|
669
674
|
},
|
|
670
|
-
"
|
|
671
|
-
"type": "
|
|
675
|
+
"messagePlaceholder": {
|
|
676
|
+
"type": "string",
|
|
672
677
|
"mutable": false,
|
|
673
678
|
"complexType": {
|
|
674
|
-
"original": "
|
|
675
|
-
"resolved": "
|
|
679
|
+
"original": "string",
|
|
680
|
+
"resolved": "string",
|
|
676
681
|
"references": {}
|
|
677
682
|
},
|
|
678
683
|
"required": false,
|
|
@@ -681,10 +686,11 @@ export class FeedbackModal {
|
|
|
681
686
|
"tags": [],
|
|
682
687
|
"text": ""
|
|
683
688
|
},
|
|
684
|
-
"attribute": "
|
|
685
|
-
"reflect": false
|
|
689
|
+
"attribute": "message-placeholder",
|
|
690
|
+
"reflect": false,
|
|
691
|
+
"defaultValue": "'Comments'"
|
|
686
692
|
},
|
|
687
|
-
"
|
|
693
|
+
"footerText": {
|
|
688
694
|
"type": "string",
|
|
689
695
|
"mutable": false,
|
|
690
696
|
"complexType": {
|
|
@@ -698,11 +704,11 @@ export class FeedbackModal {
|
|
|
698
704
|
"tags": [],
|
|
699
705
|
"text": ""
|
|
700
706
|
},
|
|
701
|
-
"attribute": "
|
|
707
|
+
"attribute": "footer-text",
|
|
702
708
|
"reflect": false,
|
|
703
|
-
"defaultValue": "'
|
|
709
|
+
"defaultValue": "''"
|
|
704
710
|
},
|
|
705
|
-
"
|
|
711
|
+
"modalPosition": {
|
|
706
712
|
"type": "string",
|
|
707
713
|
"mutable": false,
|
|
708
714
|
"complexType": {
|
|
@@ -716,11 +722,11 @@ export class FeedbackModal {
|
|
|
716
722
|
"tags": [],
|
|
717
723
|
"text": ""
|
|
718
724
|
},
|
|
719
|
-
"attribute": "
|
|
725
|
+
"attribute": "modal-position",
|
|
720
726
|
"reflect": false,
|
|
721
|
-
"defaultValue": "'
|
|
727
|
+
"defaultValue": "'center'"
|
|
722
728
|
},
|
|
723
|
-
"
|
|
729
|
+
"modalTitle": {
|
|
724
730
|
"type": "string",
|
|
725
731
|
"mutable": false,
|
|
726
732
|
"complexType": {
|
|
@@ -734,11 +740,11 @@ export class FeedbackModal {
|
|
|
734
740
|
"tags": [],
|
|
735
741
|
"text": ""
|
|
736
742
|
},
|
|
737
|
-
"attribute": "
|
|
743
|
+
"attribute": "modal-title",
|
|
738
744
|
"reflect": false,
|
|
739
|
-
"defaultValue": "'
|
|
745
|
+
"defaultValue": "'Share your feedback'"
|
|
740
746
|
},
|
|
741
|
-
"
|
|
747
|
+
"modalTitleError": {
|
|
742
748
|
"type": "string",
|
|
743
749
|
"mutable": false,
|
|
744
750
|
"complexType": {
|
|
@@ -752,16 +758,16 @@ export class FeedbackModal {
|
|
|
752
758
|
"tags": [],
|
|
753
759
|
"text": ""
|
|
754
760
|
},
|
|
755
|
-
"attribute": "
|
|
761
|
+
"attribute": "modal-title-error",
|
|
756
762
|
"reflect": false,
|
|
757
|
-
"defaultValue": "''"
|
|
763
|
+
"defaultValue": "'Oops!'"
|
|
758
764
|
},
|
|
759
|
-
"
|
|
760
|
-
"type": "
|
|
761
|
-
"mutable":
|
|
765
|
+
"modalTitleSuccess": {
|
|
766
|
+
"type": "string",
|
|
767
|
+
"mutable": false,
|
|
762
768
|
"complexType": {
|
|
763
|
-
"original": "
|
|
764
|
-
"resolved": "
|
|
769
|
+
"original": "string",
|
|
770
|
+
"resolved": "string",
|
|
765
771
|
"references": {}
|
|
766
772
|
},
|
|
767
773
|
"required": false,
|
|
@@ -770,16 +776,16 @@ export class FeedbackModal {
|
|
|
770
776
|
"tags": [],
|
|
771
777
|
"text": ""
|
|
772
778
|
},
|
|
773
|
-
"attribute": "
|
|
774
|
-
"reflect":
|
|
775
|
-
"defaultValue": "
|
|
779
|
+
"attribute": "modal-title-success",
|
|
780
|
+
"reflect": false,
|
|
781
|
+
"defaultValue": "'Thanks for your feedback!'"
|
|
776
782
|
},
|
|
777
|
-
"
|
|
778
|
-
"type": "
|
|
779
|
-
"mutable":
|
|
783
|
+
"privacyPolicyText": {
|
|
784
|
+
"type": "string",
|
|
785
|
+
"mutable": false,
|
|
780
786
|
"complexType": {
|
|
781
|
-
"original": "
|
|
782
|
-
"resolved": "
|
|
787
|
+
"original": "string",
|
|
788
|
+
"resolved": "string",
|
|
783
789
|
"references": {}
|
|
784
790
|
},
|
|
785
791
|
"required": false,
|
|
@@ -788,16 +794,16 @@ export class FeedbackModal {
|
|
|
788
794
|
"tags": [],
|
|
789
795
|
"text": ""
|
|
790
796
|
},
|
|
791
|
-
"attribute": "
|
|
792
|
-
"reflect":
|
|
793
|
-
"defaultValue": "
|
|
797
|
+
"attribute": "privacy-policy-text",
|
|
798
|
+
"reflect": false,
|
|
799
|
+
"defaultValue": "\"I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.\""
|
|
794
800
|
},
|
|
795
|
-
"
|
|
796
|
-
"type": "
|
|
797
|
-
"mutable":
|
|
801
|
+
"ratingPlaceholder": {
|
|
802
|
+
"type": "string",
|
|
803
|
+
"mutable": false,
|
|
798
804
|
"complexType": {
|
|
799
|
-
"original": "
|
|
800
|
-
"resolved": "
|
|
805
|
+
"original": "string",
|
|
806
|
+
"resolved": "string",
|
|
801
807
|
"references": {}
|
|
802
808
|
},
|
|
803
809
|
"required": false,
|
|
@@ -806,16 +812,16 @@ export class FeedbackModal {
|
|
|
806
812
|
"tags": [],
|
|
807
813
|
"text": ""
|
|
808
814
|
},
|
|
809
|
-
"attribute": "
|
|
810
|
-
"reflect":
|
|
811
|
-
"defaultValue": "
|
|
815
|
+
"attribute": "rating-placeholder",
|
|
816
|
+
"reflect": false,
|
|
817
|
+
"defaultValue": "'Was this page helpful?'"
|
|
812
818
|
},
|
|
813
|
-
"
|
|
814
|
-
"type": "
|
|
815
|
-
"mutable":
|
|
819
|
+
"ratingStarsPlaceholder": {
|
|
820
|
+
"type": "string",
|
|
821
|
+
"mutable": false,
|
|
816
822
|
"complexType": {
|
|
817
|
-
"original": "
|
|
818
|
-
"resolved": "
|
|
823
|
+
"original": "string",
|
|
824
|
+
"resolved": "string",
|
|
819
825
|
"references": {}
|
|
820
826
|
},
|
|
821
827
|
"required": false,
|
|
@@ -824,16 +830,16 @@ export class FeedbackModal {
|
|
|
824
830
|
"tags": [],
|
|
825
831
|
"text": ""
|
|
826
832
|
},
|
|
827
|
-
"attribute": "
|
|
828
|
-
"reflect":
|
|
829
|
-
"defaultValue": "
|
|
833
|
+
"attribute": "rating-stars-placeholder",
|
|
834
|
+
"reflect": false,
|
|
835
|
+
"defaultValue": "'How would you rate this page?'"
|
|
830
836
|
},
|
|
831
|
-
"
|
|
832
|
-
"type": "
|
|
837
|
+
"sendButtonText": {
|
|
838
|
+
"type": "string",
|
|
833
839
|
"mutable": false,
|
|
834
840
|
"complexType": {
|
|
835
|
-
"original": "
|
|
836
|
-
"resolved": "
|
|
841
|
+
"original": "string",
|
|
842
|
+
"resolved": "string",
|
|
837
843
|
"references": {}
|
|
838
844
|
},
|
|
839
845
|
"required": false,
|
|
@@ -842,16 +848,16 @@ export class FeedbackModal {
|
|
|
842
848
|
"tags": [],
|
|
843
849
|
"text": ""
|
|
844
850
|
},
|
|
845
|
-
"attribute": "
|
|
851
|
+
"attribute": "send-button-text",
|
|
846
852
|
"reflect": false,
|
|
847
|
-
"defaultValue": "
|
|
853
|
+
"defaultValue": "'Send'"
|
|
848
854
|
},
|
|
849
|
-
"
|
|
850
|
-
"type": "
|
|
855
|
+
"screenshotButtonText": {
|
|
856
|
+
"type": "string",
|
|
851
857
|
"mutable": false,
|
|
852
858
|
"complexType": {
|
|
853
|
-
"original": "
|
|
854
|
-
"resolved": "
|
|
859
|
+
"original": "string",
|
|
860
|
+
"resolved": "string",
|
|
855
861
|
"references": {}
|
|
856
862
|
},
|
|
857
863
|
"required": false,
|
|
@@ -860,11 +866,11 @@ export class FeedbackModal {
|
|
|
860
866
|
"tags": [],
|
|
861
867
|
"text": ""
|
|
862
868
|
},
|
|
863
|
-
"attribute": "
|
|
869
|
+
"attribute": "screenshot-button-text",
|
|
864
870
|
"reflect": false,
|
|
865
|
-
"defaultValue": "
|
|
871
|
+
"defaultValue": "'Add a screenshot'"
|
|
866
872
|
},
|
|
867
|
-
"
|
|
873
|
+
"screenshotTopbarText": {
|
|
868
874
|
"type": "string",
|
|
869
875
|
"mutable": false,
|
|
870
876
|
"complexType": {
|
|
@@ -878,16 +884,16 @@ export class FeedbackModal {
|
|
|
878
884
|
"tags": [],
|
|
879
885
|
"text": ""
|
|
880
886
|
},
|
|
881
|
-
"attribute": "
|
|
887
|
+
"attribute": "screenshot-topbar-text",
|
|
882
888
|
"reflect": false,
|
|
883
|
-
"defaultValue": "
|
|
889
|
+
"defaultValue": "'Select an element on this page'"
|
|
884
890
|
},
|
|
885
|
-
"
|
|
886
|
-
"type": "
|
|
891
|
+
"successMessage": {
|
|
892
|
+
"type": "string",
|
|
887
893
|
"mutable": false,
|
|
888
894
|
"complexType": {
|
|
889
|
-
"original": "
|
|
890
|
-
"resolved": "
|
|
895
|
+
"original": "string",
|
|
896
|
+
"resolved": "string",
|
|
891
897
|
"references": {}
|
|
892
898
|
},
|
|
893
899
|
"required": false,
|
|
@@ -896,9 +902,9 @@ export class FeedbackModal {
|
|
|
896
902
|
"tags": [],
|
|
897
903
|
"text": ""
|
|
898
904
|
},
|
|
899
|
-
"attribute": "
|
|
905
|
+
"attribute": "success-message",
|
|
900
906
|
"reflect": false,
|
|
901
|
-
"defaultValue": "
|
|
907
|
+
"defaultValue": "''"
|
|
902
908
|
}
|
|
903
909
|
};
|
|
904
910
|
}
|