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
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class FeedbackButton {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.
|
|
4
|
+
this.buttonPosition = 'default';
|
|
5
|
+
this.buttonStyle = 'default';
|
|
6
|
+
this.hideIcon = false;
|
|
7
|
+
this.hideMobile = false;
|
|
8
|
+
this.sessionId = '';
|
|
9
|
+
this.submit = false;
|
|
5
10
|
this.customFont = false;
|
|
6
|
-
this.errorMessage = "Please try again later.";
|
|
7
|
-
this.errorMessage403 = "The request URL does not match the one defined in PushFeedback for this project.";
|
|
8
|
-
this.errorMessage404 = "We could not find the provided project id in PushFeedback.";
|
|
9
|
-
this.modalTitle = 'Share your feedback';
|
|
10
|
-
this.modalTitleSuccess = 'Thanks for your feedback!';
|
|
11
|
-
this.modalTitleError = "Oops!";
|
|
12
|
-
this.modalPosition = 'center';
|
|
13
|
-
this.sendButtonText = 'Send';
|
|
14
|
-
this.successMessage = "";
|
|
15
|
-
this.project = '';
|
|
16
|
-
this.screenshotButtonText = 'Add a screenshot';
|
|
17
|
-
this.screenshotTopbarText = 'Select an element on this page';
|
|
18
|
-
this.hideEmail = false;
|
|
19
11
|
this.emailAddress = '';
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
12
|
+
this.fetchData = true;
|
|
13
|
+
this.hideEmail = false;
|
|
14
|
+
this.hidePrivacyPolicy = true;
|
|
22
15
|
this.hideRating = false;
|
|
16
|
+
this.hideScreenshotButton = false;
|
|
17
|
+
this.modalPosition = 'center';
|
|
18
|
+
this.project = '';
|
|
23
19
|
this.rating = undefined;
|
|
24
20
|
this.ratingMode = 'thumbs';
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
21
|
+
this.emailPlaceholder = 'Email address (optional)';
|
|
22
|
+
this.errorMessage = 'Please try again later.';
|
|
23
|
+
this.errorMessage403 = 'The request URL does not match the one defined in PushFeedback for this project.';
|
|
24
|
+
this.errorMessage404 = 'We could not find the provided project id in PushFeedback.';
|
|
27
25
|
this.footerText = '';
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
32
|
-
this.hidePrivacyPolicy = true;
|
|
33
|
-
this.hideMobile = false;
|
|
26
|
+
this.messagePlaceholder = 'Comments';
|
|
27
|
+
this.modalTitle = 'Share your feedback';
|
|
28
|
+
this.modalTitleError = 'Oops!';
|
|
29
|
+
this.modalTitleSuccess = 'Thanks for your feedback!';
|
|
34
30
|
this.privacyPolicyText = "I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.";
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
31
|
+
this.ratingPlaceholder = 'Was this page helpful?';
|
|
32
|
+
this.ratingStarsPlaceholder = 'How would you rate this page?';
|
|
33
|
+
this.screenshotButtonText = 'Add a screenshot';
|
|
34
|
+
this.screenshotTopbarText = 'Select an element on this page';
|
|
35
|
+
this.sendButtonText = 'Send';
|
|
36
|
+
this.successMessage = '';
|
|
37
37
|
}
|
|
38
38
|
componentWillLoad() {
|
|
39
39
|
if (!this.sessionId) {
|
|
@@ -52,7 +52,7 @@ export class FeedbackButton {
|
|
|
52
52
|
if (this.isSafariBrowser()) {
|
|
53
53
|
adjustement = 5;
|
|
54
54
|
}
|
|
55
|
-
buttonContent.style.right = `${(buttonContent.offsetWidth + adjustement) / 2 * -1}px`;
|
|
55
|
+
buttonContent.style.right = `${((buttonContent.offsetWidth + adjustement) / 2) * -1}px`;
|
|
56
56
|
}
|
|
57
57
|
if (!this.customFont) {
|
|
58
58
|
this.loadInterFont();
|
|
@@ -62,34 +62,34 @@ export class FeedbackButton {
|
|
|
62
62
|
this.feedbackModal = document.createElement('feedback-modal');
|
|
63
63
|
const props = [
|
|
64
64
|
'customFont',
|
|
65
|
+
'emailAddress',
|
|
66
|
+
'fetchData',
|
|
67
|
+
'hideEmail',
|
|
68
|
+
'hidePrivacyPolicy',
|
|
69
|
+
'hideRating',
|
|
70
|
+
'hideScreenshotButton',
|
|
71
|
+
'modalPosition',
|
|
72
|
+
'project',
|
|
73
|
+
'rating',
|
|
74
|
+
'ratingMode',
|
|
75
|
+
'emailPlaceholder',
|
|
65
76
|
'errorMessage',
|
|
66
77
|
'errorMessage403',
|
|
67
78
|
'errorMessage404',
|
|
79
|
+
'footerText',
|
|
80
|
+
'messagePlaceholder',
|
|
68
81
|
'modalTitle',
|
|
69
|
-
'modalTitleSuccess',
|
|
70
82
|
'modalTitleError',
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'successMessage',
|
|
74
|
-
'project',
|
|
75
|
-
'screenshotButtonText',
|
|
76
|
-
'screenshotTopbarText',
|
|
77
|
-
'hideEmail',
|
|
78
|
-
'emailAddress',
|
|
79
|
-
'emailPlaceholder',
|
|
80
|
-
'messagePlaceholder',
|
|
81
|
-
'hideRating',
|
|
82
|
-
'rating',
|
|
83
|
-
'ratingMode',
|
|
83
|
+
'modalTitleSuccess',
|
|
84
|
+
'privacyPolicyText',
|
|
84
85
|
'ratingPlaceholder',
|
|
85
86
|
'ratingStarsPlaceholder',
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'fetchData',
|
|
87
|
+
'screenshotButtonText',
|
|
88
|
+
'screenshotTopbarText',
|
|
89
|
+
'sendButtonText',
|
|
90
|
+
'successMessage',
|
|
91
91
|
];
|
|
92
|
-
props.forEach(prop => {
|
|
92
|
+
props.forEach((prop) => {
|
|
93
93
|
this.feedbackModal[prop] = this[prop];
|
|
94
94
|
});
|
|
95
95
|
document.body.appendChild(this.feedbackModal);
|
|
@@ -125,15 +125,15 @@ export class FeedbackButton {
|
|
|
125
125
|
project: this.project,
|
|
126
126
|
rating: this.rating || -1,
|
|
127
127
|
ratingMode: this.ratingMode,
|
|
128
|
-
message:
|
|
128
|
+
message: '',
|
|
129
129
|
session: localStorage.getItem('pushfeedback_sessionid') || '',
|
|
130
130
|
};
|
|
131
131
|
const res = await fetch('https://app.pushfeedback.com/api/feedback/', {
|
|
132
132
|
method: 'POST',
|
|
133
133
|
body: JSON.stringify(body),
|
|
134
134
|
headers: {
|
|
135
|
-
'Content-Type': 'application/json'
|
|
136
|
-
}
|
|
135
|
+
'Content-Type': 'application/json',
|
|
136
|
+
},
|
|
137
137
|
});
|
|
138
138
|
if (res.status === 201) {
|
|
139
139
|
const feedback_with_id = Object.assign(Object.assign({}, body), { id: await res.json() });
|
|
@@ -173,9 +173,9 @@ export class FeedbackButton {
|
|
|
173
173
|
}
|
|
174
174
|
static get properties() {
|
|
175
175
|
return {
|
|
176
|
-
"
|
|
176
|
+
"buttonPosition": {
|
|
177
177
|
"type": "string",
|
|
178
|
-
"mutable":
|
|
178
|
+
"mutable": false,
|
|
179
179
|
"complexType": {
|
|
180
180
|
"original": "string",
|
|
181
181
|
"resolved": "string",
|
|
@@ -187,11 +187,29 @@ export class FeedbackButton {
|
|
|
187
187
|
"tags": [],
|
|
188
188
|
"text": ""
|
|
189
189
|
},
|
|
190
|
-
"attribute": "
|
|
191
|
-
"reflect":
|
|
192
|
-
"defaultValue": "
|
|
190
|
+
"attribute": "button-position",
|
|
191
|
+
"reflect": false,
|
|
192
|
+
"defaultValue": "'default'"
|
|
193
193
|
},
|
|
194
|
-
"
|
|
194
|
+
"buttonStyle": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"mutable": false,
|
|
197
|
+
"complexType": {
|
|
198
|
+
"original": "string",
|
|
199
|
+
"resolved": "string",
|
|
200
|
+
"references": {}
|
|
201
|
+
},
|
|
202
|
+
"required": false,
|
|
203
|
+
"optional": false,
|
|
204
|
+
"docs": {
|
|
205
|
+
"tags": [],
|
|
206
|
+
"text": ""
|
|
207
|
+
},
|
|
208
|
+
"attribute": "button-style",
|
|
209
|
+
"reflect": false,
|
|
210
|
+
"defaultValue": "'default'"
|
|
211
|
+
},
|
|
212
|
+
"hideIcon": {
|
|
195
213
|
"type": "boolean",
|
|
196
214
|
"mutable": false,
|
|
197
215
|
"complexType": {
|
|
@@ -205,16 +223,16 @@ export class FeedbackButton {
|
|
|
205
223
|
"tags": [],
|
|
206
224
|
"text": ""
|
|
207
225
|
},
|
|
208
|
-
"attribute": "
|
|
226
|
+
"attribute": "hide-icon",
|
|
209
227
|
"reflect": false,
|
|
210
228
|
"defaultValue": "false"
|
|
211
229
|
},
|
|
212
|
-
"
|
|
213
|
-
"type": "
|
|
230
|
+
"hideMobile": {
|
|
231
|
+
"type": "boolean",
|
|
214
232
|
"mutable": false,
|
|
215
233
|
"complexType": {
|
|
216
|
-
"original": "
|
|
217
|
-
"resolved": "
|
|
234
|
+
"original": "boolean",
|
|
235
|
+
"resolved": "boolean",
|
|
218
236
|
"references": {}
|
|
219
237
|
},
|
|
220
238
|
"required": false,
|
|
@@ -223,13 +241,13 @@ export class FeedbackButton {
|
|
|
223
241
|
"tags": [],
|
|
224
242
|
"text": ""
|
|
225
243
|
},
|
|
226
|
-
"attribute": "
|
|
244
|
+
"attribute": "hide-mobile",
|
|
227
245
|
"reflect": false,
|
|
228
|
-
"defaultValue": "
|
|
246
|
+
"defaultValue": "false"
|
|
229
247
|
},
|
|
230
|
-
"
|
|
248
|
+
"sessionId": {
|
|
231
249
|
"type": "string",
|
|
232
|
-
"mutable":
|
|
250
|
+
"mutable": true,
|
|
233
251
|
"complexType": {
|
|
234
252
|
"original": "string",
|
|
235
253
|
"resolved": "string",
|
|
@@ -241,16 +259,16 @@ export class FeedbackButton {
|
|
|
241
259
|
"tags": [],
|
|
242
260
|
"text": ""
|
|
243
261
|
},
|
|
244
|
-
"attribute": "
|
|
245
|
-
"reflect":
|
|
246
|
-
"defaultValue": "
|
|
262
|
+
"attribute": "session-id",
|
|
263
|
+
"reflect": true,
|
|
264
|
+
"defaultValue": "''"
|
|
247
265
|
},
|
|
248
|
-
"
|
|
249
|
-
"type": "
|
|
266
|
+
"submit": {
|
|
267
|
+
"type": "boolean",
|
|
250
268
|
"mutable": false,
|
|
251
269
|
"complexType": {
|
|
252
|
-
"original": "
|
|
253
|
-
"resolved": "
|
|
270
|
+
"original": "boolean",
|
|
271
|
+
"resolved": "boolean",
|
|
254
272
|
"references": {}
|
|
255
273
|
},
|
|
256
274
|
"required": false,
|
|
@@ -259,16 +277,16 @@ export class FeedbackButton {
|
|
|
259
277
|
"tags": [],
|
|
260
278
|
"text": ""
|
|
261
279
|
},
|
|
262
|
-
"attribute": "
|
|
280
|
+
"attribute": "submit",
|
|
263
281
|
"reflect": false,
|
|
264
|
-
"defaultValue": "
|
|
282
|
+
"defaultValue": "false"
|
|
265
283
|
},
|
|
266
|
-
"
|
|
267
|
-
"type": "
|
|
284
|
+
"customFont": {
|
|
285
|
+
"type": "boolean",
|
|
268
286
|
"mutable": false,
|
|
269
287
|
"complexType": {
|
|
270
|
-
"original": "
|
|
271
|
-
"resolved": "
|
|
288
|
+
"original": "boolean",
|
|
289
|
+
"resolved": "boolean",
|
|
272
290
|
"references": {}
|
|
273
291
|
},
|
|
274
292
|
"required": false,
|
|
@@ -277,11 +295,11 @@ export class FeedbackButton {
|
|
|
277
295
|
"tags": [],
|
|
278
296
|
"text": ""
|
|
279
297
|
},
|
|
280
|
-
"attribute": "
|
|
298
|
+
"attribute": "custom-font",
|
|
281
299
|
"reflect": false,
|
|
282
|
-
"defaultValue": "
|
|
300
|
+
"defaultValue": "false"
|
|
283
301
|
},
|
|
284
|
-
"
|
|
302
|
+
"emailAddress": {
|
|
285
303
|
"type": "string",
|
|
286
304
|
"mutable": false,
|
|
287
305
|
"complexType": {
|
|
@@ -295,16 +313,16 @@ export class FeedbackButton {
|
|
|
295
313
|
"tags": [],
|
|
296
314
|
"text": ""
|
|
297
315
|
},
|
|
298
|
-
"attribute": "
|
|
316
|
+
"attribute": "email-address",
|
|
299
317
|
"reflect": false,
|
|
300
|
-
"defaultValue": "'
|
|
318
|
+
"defaultValue": "''"
|
|
301
319
|
},
|
|
302
|
-
"
|
|
303
|
-
"type": "
|
|
320
|
+
"fetchData": {
|
|
321
|
+
"type": "boolean",
|
|
304
322
|
"mutable": false,
|
|
305
323
|
"complexType": {
|
|
306
|
-
"original": "
|
|
307
|
-
"resolved": "
|
|
324
|
+
"original": "boolean",
|
|
325
|
+
"resolved": "boolean",
|
|
308
326
|
"references": {}
|
|
309
327
|
},
|
|
310
328
|
"required": false,
|
|
@@ -313,16 +331,16 @@ export class FeedbackButton {
|
|
|
313
331
|
"tags": [],
|
|
314
332
|
"text": ""
|
|
315
333
|
},
|
|
316
|
-
"attribute": "
|
|
334
|
+
"attribute": "fetch-data",
|
|
317
335
|
"reflect": false,
|
|
318
|
-
"defaultValue": "
|
|
336
|
+
"defaultValue": "true"
|
|
319
337
|
},
|
|
320
|
-
"
|
|
321
|
-
"type": "
|
|
338
|
+
"hideEmail": {
|
|
339
|
+
"type": "boolean",
|
|
322
340
|
"mutable": false,
|
|
323
341
|
"complexType": {
|
|
324
|
-
"original": "
|
|
325
|
-
"resolved": "
|
|
342
|
+
"original": "boolean",
|
|
343
|
+
"resolved": "boolean",
|
|
326
344
|
"references": {}
|
|
327
345
|
},
|
|
328
346
|
"required": false,
|
|
@@ -331,16 +349,16 @@ export class FeedbackButton {
|
|
|
331
349
|
"tags": [],
|
|
332
350
|
"text": ""
|
|
333
351
|
},
|
|
334
|
-
"attribute": "
|
|
352
|
+
"attribute": "hide-email",
|
|
335
353
|
"reflect": false,
|
|
336
|
-
"defaultValue": "
|
|
354
|
+
"defaultValue": "false"
|
|
337
355
|
},
|
|
338
|
-
"
|
|
339
|
-
"type": "
|
|
356
|
+
"hidePrivacyPolicy": {
|
|
357
|
+
"type": "boolean",
|
|
340
358
|
"mutable": false,
|
|
341
359
|
"complexType": {
|
|
342
|
-
"original": "
|
|
343
|
-
"resolved": "
|
|
360
|
+
"original": "boolean",
|
|
361
|
+
"resolved": "boolean",
|
|
344
362
|
"references": {}
|
|
345
363
|
},
|
|
346
364
|
"required": false,
|
|
@@ -349,16 +367,16 @@ export class FeedbackButton {
|
|
|
349
367
|
"tags": [],
|
|
350
368
|
"text": ""
|
|
351
369
|
},
|
|
352
|
-
"attribute": "
|
|
370
|
+
"attribute": "hide-privacy-policy",
|
|
353
371
|
"reflect": false,
|
|
354
|
-
"defaultValue": "
|
|
372
|
+
"defaultValue": "true"
|
|
355
373
|
},
|
|
356
|
-
"
|
|
357
|
-
"type": "
|
|
374
|
+
"hideRating": {
|
|
375
|
+
"type": "boolean",
|
|
358
376
|
"mutable": false,
|
|
359
377
|
"complexType": {
|
|
360
|
-
"original": "
|
|
361
|
-
"resolved": "
|
|
378
|
+
"original": "boolean",
|
|
379
|
+
"resolved": "boolean",
|
|
362
380
|
"references": {}
|
|
363
381
|
},
|
|
364
382
|
"required": false,
|
|
@@ -367,16 +385,16 @@ export class FeedbackButton {
|
|
|
367
385
|
"tags": [],
|
|
368
386
|
"text": ""
|
|
369
387
|
},
|
|
370
|
-
"attribute": "
|
|
388
|
+
"attribute": "hide-rating",
|
|
371
389
|
"reflect": false,
|
|
372
|
-
"defaultValue": "
|
|
390
|
+
"defaultValue": "false"
|
|
373
391
|
},
|
|
374
|
-
"
|
|
375
|
-
"type": "
|
|
392
|
+
"hideScreenshotButton": {
|
|
393
|
+
"type": "boolean",
|
|
376
394
|
"mutable": false,
|
|
377
395
|
"complexType": {
|
|
378
|
-
"original": "
|
|
379
|
-
"resolved": "
|
|
396
|
+
"original": "boolean",
|
|
397
|
+
"resolved": "boolean",
|
|
380
398
|
"references": {}
|
|
381
399
|
},
|
|
382
400
|
"required": false,
|
|
@@ -385,11 +403,11 @@ export class FeedbackButton {
|
|
|
385
403
|
"tags": [],
|
|
386
404
|
"text": ""
|
|
387
405
|
},
|
|
388
|
-
"attribute": "
|
|
406
|
+
"attribute": "hide-screenshot-button",
|
|
389
407
|
"reflect": false,
|
|
390
|
-
"defaultValue": "
|
|
408
|
+
"defaultValue": "false"
|
|
391
409
|
},
|
|
392
|
-
"
|
|
410
|
+
"modalPosition": {
|
|
393
411
|
"type": "string",
|
|
394
412
|
"mutable": false,
|
|
395
413
|
"complexType": {
|
|
@@ -403,11 +421,11 @@ export class FeedbackButton {
|
|
|
403
421
|
"tags": [],
|
|
404
422
|
"text": ""
|
|
405
423
|
},
|
|
406
|
-
"attribute": "
|
|
424
|
+
"attribute": "modal-position",
|
|
407
425
|
"reflect": false,
|
|
408
|
-
"defaultValue": "'
|
|
426
|
+
"defaultValue": "'center'"
|
|
409
427
|
},
|
|
410
|
-
"
|
|
428
|
+
"project": {
|
|
411
429
|
"type": "string",
|
|
412
430
|
"mutable": false,
|
|
413
431
|
"complexType": {
|
|
@@ -421,16 +439,16 @@ export class FeedbackButton {
|
|
|
421
439
|
"tags": [],
|
|
422
440
|
"text": ""
|
|
423
441
|
},
|
|
424
|
-
"attribute": "
|
|
442
|
+
"attribute": "project",
|
|
425
443
|
"reflect": false,
|
|
426
|
-
"defaultValue": "'
|
|
444
|
+
"defaultValue": "''"
|
|
427
445
|
},
|
|
428
|
-
"
|
|
429
|
-
"type": "
|
|
446
|
+
"rating": {
|
|
447
|
+
"type": "number",
|
|
430
448
|
"mutable": false,
|
|
431
449
|
"complexType": {
|
|
432
|
-
"original": "
|
|
433
|
-
"resolved": "
|
|
450
|
+
"original": "number",
|
|
451
|
+
"resolved": "number",
|
|
434
452
|
"references": {}
|
|
435
453
|
},
|
|
436
454
|
"required": false,
|
|
@@ -439,11 +457,10 @@ export class FeedbackButton {
|
|
|
439
457
|
"tags": [],
|
|
440
458
|
"text": ""
|
|
441
459
|
},
|
|
442
|
-
"attribute": "
|
|
443
|
-
"reflect": false
|
|
444
|
-
"defaultValue": "false"
|
|
460
|
+
"attribute": "rating",
|
|
461
|
+
"reflect": false
|
|
445
462
|
},
|
|
446
|
-
"
|
|
463
|
+
"ratingMode": {
|
|
447
464
|
"type": "string",
|
|
448
465
|
"mutable": false,
|
|
449
466
|
"complexType": {
|
|
@@ -457,9 +474,9 @@ export class FeedbackButton {
|
|
|
457
474
|
"tags": [],
|
|
458
475
|
"text": ""
|
|
459
476
|
},
|
|
460
|
-
"attribute": "
|
|
477
|
+
"attribute": "rating-mode",
|
|
461
478
|
"reflect": false,
|
|
462
|
-
"defaultValue": "''"
|
|
479
|
+
"defaultValue": "'thumbs'"
|
|
463
480
|
},
|
|
464
481
|
"emailPlaceholder": {
|
|
465
482
|
"type": "string",
|
|
@@ -479,7 +496,7 @@ export class FeedbackButton {
|
|
|
479
496
|
"reflect": false,
|
|
480
497
|
"defaultValue": "'Email address (optional)'"
|
|
481
498
|
},
|
|
482
|
-
"
|
|
499
|
+
"errorMessage": {
|
|
483
500
|
"type": "string",
|
|
484
501
|
"mutable": false,
|
|
485
502
|
"complexType": {
|
|
@@ -493,16 +510,16 @@ export class FeedbackButton {
|
|
|
493
510
|
"tags": [],
|
|
494
511
|
"text": ""
|
|
495
512
|
},
|
|
496
|
-
"attribute": "message
|
|
513
|
+
"attribute": "error-message",
|
|
497
514
|
"reflect": false,
|
|
498
|
-
"defaultValue": "'
|
|
515
|
+
"defaultValue": "'Please try again later.'"
|
|
499
516
|
},
|
|
500
|
-
"
|
|
501
|
-
"type": "
|
|
517
|
+
"errorMessage403": {
|
|
518
|
+
"type": "string",
|
|
502
519
|
"mutable": false,
|
|
503
520
|
"complexType": {
|
|
504
|
-
"original": "
|
|
505
|
-
"resolved": "
|
|
521
|
+
"original": "string",
|
|
522
|
+
"resolved": "string",
|
|
506
523
|
"references": {}
|
|
507
524
|
},
|
|
508
525
|
"required": false,
|
|
@@ -511,28 +528,11 @@ export class FeedbackButton {
|
|
|
511
528
|
"tags": [],
|
|
512
529
|
"text": ""
|
|
513
530
|
},
|
|
514
|
-
"attribute": "
|
|
531
|
+
"attribute": "error-message-4-0-3",
|
|
515
532
|
"reflect": false,
|
|
516
|
-
"defaultValue": "
|
|
533
|
+
"defaultValue": "'The request URL does not match the one defined in PushFeedback for this project.'"
|
|
517
534
|
},
|
|
518
|
-
"
|
|
519
|
-
"type": "number",
|
|
520
|
-
"mutable": false,
|
|
521
|
-
"complexType": {
|
|
522
|
-
"original": "number",
|
|
523
|
-
"resolved": "number",
|
|
524
|
-
"references": {}
|
|
525
|
-
},
|
|
526
|
-
"required": false,
|
|
527
|
-
"optional": false,
|
|
528
|
-
"docs": {
|
|
529
|
-
"tags": [],
|
|
530
|
-
"text": ""
|
|
531
|
-
},
|
|
532
|
-
"attribute": "rating",
|
|
533
|
-
"reflect": false
|
|
534
|
-
},
|
|
535
|
-
"ratingMode": {
|
|
535
|
+
"errorMessage404": {
|
|
536
536
|
"type": "string",
|
|
537
537
|
"mutable": false,
|
|
538
538
|
"complexType": {
|
|
@@ -546,11 +546,11 @@ export class FeedbackButton {
|
|
|
546
546
|
"tags": [],
|
|
547
547
|
"text": ""
|
|
548
548
|
},
|
|
549
|
-
"attribute": "
|
|
549
|
+
"attribute": "error-message-4-0-4",
|
|
550
550
|
"reflect": false,
|
|
551
|
-
"defaultValue": "'
|
|
551
|
+
"defaultValue": "'We could not find the provided project id in PushFeedback.'"
|
|
552
552
|
},
|
|
553
|
-
"
|
|
553
|
+
"footerText": {
|
|
554
554
|
"type": "string",
|
|
555
555
|
"mutable": false,
|
|
556
556
|
"complexType": {
|
|
@@ -564,11 +564,11 @@ export class FeedbackButton {
|
|
|
564
564
|
"tags": [],
|
|
565
565
|
"text": ""
|
|
566
566
|
},
|
|
567
|
-
"attribute": "
|
|
567
|
+
"attribute": "footer-text",
|
|
568
568
|
"reflect": false,
|
|
569
|
-
"defaultValue": "'
|
|
569
|
+
"defaultValue": "''"
|
|
570
570
|
},
|
|
571
|
-
"
|
|
571
|
+
"messagePlaceholder": {
|
|
572
572
|
"type": "string",
|
|
573
573
|
"mutable": false,
|
|
574
574
|
"complexType": {
|
|
@@ -582,11 +582,11 @@ export class FeedbackButton {
|
|
|
582
582
|
"tags": [],
|
|
583
583
|
"text": ""
|
|
584
584
|
},
|
|
585
|
-
"attribute": "
|
|
585
|
+
"attribute": "message-placeholder",
|
|
586
586
|
"reflect": false,
|
|
587
|
-
"defaultValue": "'
|
|
587
|
+
"defaultValue": "'Comments'"
|
|
588
588
|
},
|
|
589
|
-
"
|
|
589
|
+
"modalTitle": {
|
|
590
590
|
"type": "string",
|
|
591
591
|
"mutable": false,
|
|
592
592
|
"complexType": {
|
|
@@ -600,11 +600,11 @@ export class FeedbackButton {
|
|
|
600
600
|
"tags": [],
|
|
601
601
|
"text": ""
|
|
602
602
|
},
|
|
603
|
-
"attribute": "
|
|
603
|
+
"attribute": "modal-title",
|
|
604
604
|
"reflect": false,
|
|
605
|
-
"defaultValue": "''"
|
|
605
|
+
"defaultValue": "'Share your feedback'"
|
|
606
606
|
},
|
|
607
|
-
"
|
|
607
|
+
"modalTitleError": {
|
|
608
608
|
"type": "string",
|
|
609
609
|
"mutable": false,
|
|
610
610
|
"complexType": {
|
|
@@ -618,11 +618,11 @@ export class FeedbackButton {
|
|
|
618
618
|
"tags": [],
|
|
619
619
|
"text": ""
|
|
620
620
|
},
|
|
621
|
-
"attribute": "
|
|
621
|
+
"attribute": "modal-title-error",
|
|
622
622
|
"reflect": false,
|
|
623
|
-
"defaultValue": "'
|
|
623
|
+
"defaultValue": "'Oops!'"
|
|
624
624
|
},
|
|
625
|
-
"
|
|
625
|
+
"modalTitleSuccess": {
|
|
626
626
|
"type": "string",
|
|
627
627
|
"mutable": false,
|
|
628
628
|
"complexType": {
|
|
@@ -636,16 +636,16 @@ export class FeedbackButton {
|
|
|
636
636
|
"tags": [],
|
|
637
637
|
"text": ""
|
|
638
638
|
},
|
|
639
|
-
"attribute": "
|
|
639
|
+
"attribute": "modal-title-success",
|
|
640
640
|
"reflect": false,
|
|
641
|
-
"defaultValue": "'
|
|
641
|
+
"defaultValue": "'Thanks for your feedback!'"
|
|
642
642
|
},
|
|
643
|
-
"
|
|
644
|
-
"type": "
|
|
643
|
+
"privacyPolicyText": {
|
|
644
|
+
"type": "string",
|
|
645
645
|
"mutable": false,
|
|
646
646
|
"complexType": {
|
|
647
|
-
"original": "
|
|
648
|
-
"resolved": "
|
|
647
|
+
"original": "string",
|
|
648
|
+
"resolved": "string",
|
|
649
649
|
"references": {}
|
|
650
650
|
},
|
|
651
651
|
"required": false,
|
|
@@ -654,16 +654,16 @@ export class FeedbackButton {
|
|
|
654
654
|
"tags": [],
|
|
655
655
|
"text": ""
|
|
656
656
|
},
|
|
657
|
-
"attribute": "
|
|
657
|
+
"attribute": "privacy-policy-text",
|
|
658
658
|
"reflect": false,
|
|
659
|
-
"defaultValue": "
|
|
659
|
+
"defaultValue": "\"I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.\""
|
|
660
660
|
},
|
|
661
|
-
"
|
|
662
|
-
"type": "
|
|
661
|
+
"ratingPlaceholder": {
|
|
662
|
+
"type": "string",
|
|
663
663
|
"mutable": false,
|
|
664
664
|
"complexType": {
|
|
665
|
-
"original": "
|
|
666
|
-
"resolved": "
|
|
665
|
+
"original": "string",
|
|
666
|
+
"resolved": "string",
|
|
667
667
|
"references": {}
|
|
668
668
|
},
|
|
669
669
|
"required": false,
|
|
@@ -672,16 +672,16 @@ export class FeedbackButton {
|
|
|
672
672
|
"tags": [],
|
|
673
673
|
"text": ""
|
|
674
674
|
},
|
|
675
|
-
"attribute": "
|
|
675
|
+
"attribute": "rating-placeholder",
|
|
676
676
|
"reflect": false,
|
|
677
|
-
"defaultValue": "
|
|
677
|
+
"defaultValue": "'Was this page helpful?'"
|
|
678
678
|
},
|
|
679
|
-
"
|
|
680
|
-
"type": "
|
|
679
|
+
"ratingStarsPlaceholder": {
|
|
680
|
+
"type": "string",
|
|
681
681
|
"mutable": false,
|
|
682
682
|
"complexType": {
|
|
683
|
-
"original": "
|
|
684
|
-
"resolved": "
|
|
683
|
+
"original": "string",
|
|
684
|
+
"resolved": "string",
|
|
685
685
|
"references": {}
|
|
686
686
|
},
|
|
687
687
|
"required": false,
|
|
@@ -690,16 +690,16 @@ export class FeedbackButton {
|
|
|
690
690
|
"tags": [],
|
|
691
691
|
"text": ""
|
|
692
692
|
},
|
|
693
|
-
"attribute": "
|
|
693
|
+
"attribute": "rating-stars-placeholder",
|
|
694
694
|
"reflect": false,
|
|
695
|
-
"defaultValue": "
|
|
695
|
+
"defaultValue": "'How would you rate this page?'"
|
|
696
696
|
},
|
|
697
|
-
"
|
|
698
|
-
"type": "
|
|
697
|
+
"screenshotButtonText": {
|
|
698
|
+
"type": "string",
|
|
699
699
|
"mutable": false,
|
|
700
700
|
"complexType": {
|
|
701
|
-
"original": "
|
|
702
|
-
"resolved": "
|
|
701
|
+
"original": "string",
|
|
702
|
+
"resolved": "string",
|
|
703
703
|
"references": {}
|
|
704
704
|
},
|
|
705
705
|
"required": false,
|
|
@@ -708,11 +708,11 @@ export class FeedbackButton {
|
|
|
708
708
|
"tags": [],
|
|
709
709
|
"text": ""
|
|
710
710
|
},
|
|
711
|
-
"attribute": "
|
|
711
|
+
"attribute": "screenshot-button-text",
|
|
712
712
|
"reflect": false,
|
|
713
|
-
"defaultValue": "
|
|
713
|
+
"defaultValue": "'Add a screenshot'"
|
|
714
714
|
},
|
|
715
|
-
"
|
|
715
|
+
"screenshotTopbarText": {
|
|
716
716
|
"type": "string",
|
|
717
717
|
"mutable": false,
|
|
718
718
|
"complexType": {
|
|
@@ -726,16 +726,16 @@ export class FeedbackButton {
|
|
|
726
726
|
"tags": [],
|
|
727
727
|
"text": ""
|
|
728
728
|
},
|
|
729
|
-
"attribute": "
|
|
729
|
+
"attribute": "screenshot-topbar-text",
|
|
730
730
|
"reflect": false,
|
|
731
|
-
"defaultValue": "
|
|
731
|
+
"defaultValue": "'Select an element on this page'"
|
|
732
732
|
},
|
|
733
|
-
"
|
|
734
|
-
"type": "
|
|
733
|
+
"sendButtonText": {
|
|
734
|
+
"type": "string",
|
|
735
735
|
"mutable": false,
|
|
736
736
|
"complexType": {
|
|
737
|
-
"original": "
|
|
738
|
-
"resolved": "
|
|
737
|
+
"original": "string",
|
|
738
|
+
"resolved": "string",
|
|
739
739
|
"references": {}
|
|
740
740
|
},
|
|
741
741
|
"required": false,
|
|
@@ -744,16 +744,16 @@ export class FeedbackButton {
|
|
|
744
744
|
"tags": [],
|
|
745
745
|
"text": ""
|
|
746
746
|
},
|
|
747
|
-
"attribute": "
|
|
747
|
+
"attribute": "send-button-text",
|
|
748
748
|
"reflect": false,
|
|
749
|
-
"defaultValue": "
|
|
749
|
+
"defaultValue": "'Send'"
|
|
750
750
|
},
|
|
751
|
-
"
|
|
752
|
-
"type": "
|
|
751
|
+
"successMessage": {
|
|
752
|
+
"type": "string",
|
|
753
753
|
"mutable": false,
|
|
754
754
|
"complexType": {
|
|
755
|
-
"original": "
|
|
756
|
-
"resolved": "
|
|
755
|
+
"original": "string",
|
|
756
|
+
"resolved": "string",
|
|
757
757
|
"references": {}
|
|
758
758
|
},
|
|
759
759
|
"required": false,
|
|
@@ -762,9 +762,9 @@ export class FeedbackButton {
|
|
|
762
762
|
"tags": [],
|
|
763
763
|
"text": ""
|
|
764
764
|
},
|
|
765
|
-
"attribute": "
|
|
765
|
+
"attribute": "success-message",
|
|
766
766
|
"reflect": false,
|
|
767
|
-
"defaultValue": "
|
|
767
|
+
"defaultValue": "''"
|
|
768
768
|
}
|
|
769
769
|
};
|
|
770
770
|
}
|