pushfeedback 0.1.63 → 0.1.65

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