pushfeedback 0.1.37 → 0.1.39

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,620 +1,639 @@
1
- import { Host, h } from '@stencil/core';
2
- export class FeedbackButton {
3
- constructor() {
4
- this.customFont = false;
5
- this.errorMessage = "Please try again later.";
6
- this.errorMessage403 = "The request URL does not match the one defined in PushFeedback for this project.";
7
- this.errorMessage404 = "We could not find the provided project id in PushFeedback.";
8
- this.modalTitle = 'Share your feedback';
9
- this.modalTitleSuccess = 'Thanks for your feedback!';
10
- this.modalTitleError = "Oops!";
11
- this.modalPosition = 'center';
12
- this.sendButtonText = 'Send';
13
- this.successMessage = "";
14
- this.project = '';
15
- this.screenshotButtonText = 'Add a screenshot';
16
- this.screenshotTopbarText = 'Select an element on this page';
17
- this.hideEmail = false;
18
- this.emailAddress = '';
19
- this.emailPlaceholder = 'Email address (optional)';
20
- this.messagePlaceholder = 'Comments';
21
- this.hideRating = false;
22
- this.ratingMode = 'thumbs';
23
- this.ratingPlaceholder = 'Was this page helpful?';
24
- this.ratingStarsPlaceholder = 'How would you rate this page?';
25
- this.buttonStyle = 'default';
26
- this.buttonPosition = 'default';
27
- this.hideIcon = false;
28
- this.hideScreenshotButton = false;
29
- this.hidePrivacyPolicy = true;
30
- this.privacyPolicyText = "I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.";
31
- this.fetchData = true;
32
- }
33
- connectedCallback() {
34
- this.feedbackModal = document.createElement('feedback-modal');
35
- const props = [
36
- 'customFont',
37
- 'errorMessage',
38
- 'errorMessage403',
39
- 'errorMessage404',
40
- 'modalTitle',
41
- 'modalTitleSuccess',
42
- 'modalTitleError',
43
- 'modalPosition',
44
- 'sendButtonText',
45
- 'successMessage',
46
- 'project',
47
- 'screenshotButtonText',
48
- 'screenshotTopbarText',
49
- 'hideEmail',
50
- 'emailAddress',
51
- 'emailPlaceholder',
52
- 'messagePlaceholder',
53
- 'hideRating',
54
- 'ratingMode',
55
- 'ratingPlaceholder',
56
- 'ratingStarsPlaceholder',
57
- 'hideScreenshotButton',
58
- 'hidePrivacyPolicy',
59
- 'privacyPolicyText',
60
- 'fetchData'
61
- ];
62
- props.forEach(prop => {
63
- this.feedbackModal[prop] = this[prop];
64
- });
65
- document.body.appendChild(this.feedbackModal);
66
- }
67
- disconnectedCallback() {
68
- document.body.removeChild(this.feedbackModal);
69
- }
70
- isSafariBrowser() {
71
- const isSafari = /safari/i.test(navigator.userAgent) && !/chrome/i.test(navigator.userAgent);
72
- return isSafari;
73
- }
74
- componentDidLoad() {
75
- if (this.buttonPosition === 'center-right') {
76
- const buttonContent = this.el.shadowRoot.querySelector('.feedback-button-content');
77
- let adjustement = 0;
78
- if (this.isSafariBrowser()) {
79
- adjustement = 10;
80
- }
81
- buttonContent.style.right = `${(buttonContent.offsetWidth + adjustement) / 2 * -1}px`;
82
- }
83
- if (!this.customFont) {
84
- this.loadInterFont();
85
- }
86
- }
87
- loadInterFont() {
88
- const link = document.createElement('link');
89
- link.href = 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap';
90
- link.rel = 'stylesheet';
91
- document.head.appendChild(link);
92
- }
93
- showModal() {
94
- this.feedbackModal.showModal = true;
95
- }
96
- render() {
97
- return (h(Host, null, h("a", { class: `feedback-button-content feedback-button-content--${this.buttonStyle} feedback-button-content--${this.buttonPosition}`, onClick: () => this.showModal() }, !this.hideIcon && this.buttonStyle === 'dark' && (h("span", { class: "feedback-button-content-icon" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "#fff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-edit-3" }, h("path", { d: "M12 20h9" }), h("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z" })))), !this.hideIcon && this.buttonStyle === 'light' && (h("span", { class: "feedback-button-content-icon" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "#0070F4", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-edit-3" }, h("path", { d: "M12 20h9" }), h("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z" })))), h("slot", null))));
98
- }
99
- static get is() { return "feedback-button"; }
100
- static get encapsulation() { return "shadow"; }
101
- static get originalStyleUrls() {
102
- return {
103
- "$": ["feedback-button.css"]
104
- };
105
- }
106
- static get styleUrls() {
107
- return {
108
- "$": ["feedback-button.css"]
109
- };
110
- }
111
- static get properties() {
112
- return {
113
- "customFont": {
114
- "type": "boolean",
115
- "mutable": false,
116
- "complexType": {
117
- "original": "boolean",
118
- "resolved": "boolean",
119
- "references": {}
120
- },
121
- "required": false,
122
- "optional": false,
123
- "docs": {
124
- "tags": [],
125
- "text": ""
126
- },
127
- "attribute": "custom-font",
128
- "reflect": false,
129
- "defaultValue": "false"
130
- },
131
- "errorMessage": {
132
- "type": "string",
133
- "mutable": false,
134
- "complexType": {
135
- "original": "string",
136
- "resolved": "string",
137
- "references": {}
138
- },
139
- "required": false,
140
- "optional": false,
141
- "docs": {
142
- "tags": [],
143
- "text": ""
144
- },
145
- "attribute": "error-message",
146
- "reflect": false,
147
- "defaultValue": "\"Please try again later.\""
148
- },
149
- "errorMessage403": {
150
- "type": "string",
151
- "mutable": false,
152
- "complexType": {
153
- "original": "string",
154
- "resolved": "string",
155
- "references": {}
156
- },
157
- "required": false,
158
- "optional": false,
159
- "docs": {
160
- "tags": [],
161
- "text": ""
162
- },
163
- "attribute": "error-message-4-0-3",
164
- "reflect": false,
165
- "defaultValue": "\"The request URL does not match the one defined in PushFeedback for this project.\""
166
- },
167
- "errorMessage404": {
168
- "type": "string",
169
- "mutable": false,
170
- "complexType": {
171
- "original": "string",
172
- "resolved": "string",
173
- "references": {}
174
- },
175
- "required": false,
176
- "optional": false,
177
- "docs": {
178
- "tags": [],
179
- "text": ""
180
- },
181
- "attribute": "error-message-4-0-4",
182
- "reflect": false,
183
- "defaultValue": "\"We could not find the provided project id in PushFeedback.\""
184
- },
185
- "modalTitle": {
186
- "type": "string",
187
- "mutable": false,
188
- "complexType": {
189
- "original": "string",
190
- "resolved": "string",
191
- "references": {}
192
- },
193
- "required": false,
194
- "optional": false,
195
- "docs": {
196
- "tags": [],
197
- "text": ""
198
- },
199
- "attribute": "modal-title",
200
- "reflect": false,
201
- "defaultValue": "'Share your feedback'"
202
- },
203
- "modalTitleSuccess": {
204
- "type": "string",
205
- "mutable": false,
206
- "complexType": {
207
- "original": "string",
208
- "resolved": "string",
209
- "references": {}
210
- },
211
- "required": false,
212
- "optional": false,
213
- "docs": {
214
- "tags": [],
215
- "text": ""
216
- },
217
- "attribute": "modal-title-success",
218
- "reflect": false,
219
- "defaultValue": "'Thanks for your feedback!'"
220
- },
221
- "modalTitleError": {
222
- "type": "string",
223
- "mutable": false,
224
- "complexType": {
225
- "original": "string",
226
- "resolved": "string",
227
- "references": {}
228
- },
229
- "required": false,
230
- "optional": false,
231
- "docs": {
232
- "tags": [],
233
- "text": ""
234
- },
235
- "attribute": "modal-title-error",
236
- "reflect": false,
237
- "defaultValue": "\"Oops!\""
238
- },
239
- "modalPosition": {
240
- "type": "string",
241
- "mutable": false,
242
- "complexType": {
243
- "original": "string",
244
- "resolved": "string",
245
- "references": {}
246
- },
247
- "required": false,
248
- "optional": false,
249
- "docs": {
250
- "tags": [],
251
- "text": ""
252
- },
253
- "attribute": "modal-position",
254
- "reflect": false,
255
- "defaultValue": "'center'"
256
- },
257
- "sendButtonText": {
258
- "type": "string",
259
- "mutable": false,
260
- "complexType": {
261
- "original": "string",
262
- "resolved": "string",
263
- "references": {}
264
- },
265
- "required": false,
266
- "optional": false,
267
- "docs": {
268
- "tags": [],
269
- "text": ""
270
- },
271
- "attribute": "send-button-text",
272
- "reflect": false,
273
- "defaultValue": "'Send'"
274
- },
275
- "successMessage": {
276
- "type": "string",
277
- "mutable": false,
278
- "complexType": {
279
- "original": "string",
280
- "resolved": "string",
281
- "references": {}
282
- },
283
- "required": false,
284
- "optional": false,
285
- "docs": {
286
- "tags": [],
287
- "text": ""
288
- },
289
- "attribute": "success-message",
290
- "reflect": false,
291
- "defaultValue": "\"\""
292
- },
293
- "project": {
294
- "type": "string",
295
- "mutable": false,
296
- "complexType": {
297
- "original": "string",
298
- "resolved": "string",
299
- "references": {}
300
- },
301
- "required": false,
302
- "optional": false,
303
- "docs": {
304
- "tags": [],
305
- "text": ""
306
- },
307
- "attribute": "project",
308
- "reflect": false,
309
- "defaultValue": "''"
310
- },
311
- "screenshotButtonText": {
312
- "type": "string",
313
- "mutable": false,
314
- "complexType": {
315
- "original": "string",
316
- "resolved": "string",
317
- "references": {}
318
- },
319
- "required": false,
320
- "optional": false,
321
- "docs": {
322
- "tags": [],
323
- "text": ""
324
- },
325
- "attribute": "screenshot-button-text",
326
- "reflect": false,
327
- "defaultValue": "'Add a screenshot'"
328
- },
329
- "screenshotTopbarText": {
330
- "type": "string",
331
- "mutable": false,
332
- "complexType": {
333
- "original": "string",
334
- "resolved": "string",
335
- "references": {}
336
- },
337
- "required": false,
338
- "optional": false,
339
- "docs": {
340
- "tags": [],
341
- "text": ""
342
- },
343
- "attribute": "screenshot-topbar-text",
344
- "reflect": false,
345
- "defaultValue": "'Select an element on this page'"
346
- },
347
- "hideEmail": {
348
- "type": "boolean",
349
- "mutable": false,
350
- "complexType": {
351
- "original": "boolean",
352
- "resolved": "boolean",
353
- "references": {}
354
- },
355
- "required": false,
356
- "optional": false,
357
- "docs": {
358
- "tags": [],
359
- "text": ""
360
- },
361
- "attribute": "hide-email",
362
- "reflect": false,
363
- "defaultValue": "false"
364
- },
365
- "emailAddress": {
366
- "type": "string",
367
- "mutable": false,
368
- "complexType": {
369
- "original": "string",
370
- "resolved": "string",
371
- "references": {}
372
- },
373
- "required": false,
374
- "optional": false,
375
- "docs": {
376
- "tags": [],
377
- "text": ""
378
- },
379
- "attribute": "email-address",
380
- "reflect": false,
381
- "defaultValue": "''"
382
- },
383
- "emailPlaceholder": {
384
- "type": "string",
385
- "mutable": false,
386
- "complexType": {
387
- "original": "string",
388
- "resolved": "string",
389
- "references": {}
390
- },
391
- "required": false,
392
- "optional": false,
393
- "docs": {
394
- "tags": [],
395
- "text": ""
396
- },
397
- "attribute": "email-placeholder",
398
- "reflect": false,
399
- "defaultValue": "'Email address (optional)'"
400
- },
401
- "messagePlaceholder": {
402
- "type": "string",
403
- "mutable": false,
404
- "complexType": {
405
- "original": "string",
406
- "resolved": "string",
407
- "references": {}
408
- },
409
- "required": false,
410
- "optional": false,
411
- "docs": {
412
- "tags": [],
413
- "text": ""
414
- },
415
- "attribute": "message-placeholder",
416
- "reflect": false,
417
- "defaultValue": "'Comments'"
418
- },
419
- "hideRating": {
420
- "type": "boolean",
421
- "mutable": false,
422
- "complexType": {
423
- "original": "boolean",
424
- "resolved": "boolean",
425
- "references": {}
426
- },
427
- "required": false,
428
- "optional": false,
429
- "docs": {
430
- "tags": [],
431
- "text": ""
432
- },
433
- "attribute": "hide-rating",
434
- "reflect": false,
435
- "defaultValue": "false"
436
- },
437
- "ratingMode": {
438
- "type": "string",
439
- "mutable": false,
440
- "complexType": {
441
- "original": "string",
442
- "resolved": "string",
443
- "references": {}
444
- },
445
- "required": false,
446
- "optional": false,
447
- "docs": {
448
- "tags": [],
449
- "text": ""
450
- },
451
- "attribute": "rating-mode",
452
- "reflect": false,
453
- "defaultValue": "'thumbs'"
454
- },
455
- "ratingPlaceholder": {
456
- "type": "string",
457
- "mutable": false,
458
- "complexType": {
459
- "original": "string",
460
- "resolved": "string",
461
- "references": {}
462
- },
463
- "required": false,
464
- "optional": false,
465
- "docs": {
466
- "tags": [],
467
- "text": ""
468
- },
469
- "attribute": "rating-placeholder",
470
- "reflect": false,
471
- "defaultValue": "'Was this page helpful?'"
472
- },
473
- "ratingStarsPlaceholder": {
474
- "type": "string",
475
- "mutable": false,
476
- "complexType": {
477
- "original": "string",
478
- "resolved": "string",
479
- "references": {}
480
- },
481
- "required": false,
482
- "optional": false,
483
- "docs": {
484
- "tags": [],
485
- "text": ""
486
- },
487
- "attribute": "rating-stars-placeholder",
488
- "reflect": false,
489
- "defaultValue": "'How would you rate this page?'"
490
- },
491
- "buttonStyle": {
492
- "type": "string",
493
- "mutable": false,
494
- "complexType": {
495
- "original": "string",
496
- "resolved": "string",
497
- "references": {}
498
- },
499
- "required": false,
500
- "optional": false,
501
- "docs": {
502
- "tags": [],
503
- "text": ""
504
- },
505
- "attribute": "button-style",
506
- "reflect": false,
507
- "defaultValue": "'default'"
508
- },
509
- "buttonPosition": {
510
- "type": "string",
511
- "mutable": false,
512
- "complexType": {
513
- "original": "string",
514
- "resolved": "string",
515
- "references": {}
516
- },
517
- "required": false,
518
- "optional": false,
519
- "docs": {
520
- "tags": [],
521
- "text": ""
522
- },
523
- "attribute": "button-position",
524
- "reflect": false,
525
- "defaultValue": "'default'"
526
- },
527
- "hideIcon": {
528
- "type": "boolean",
529
- "mutable": false,
530
- "complexType": {
531
- "original": "boolean",
532
- "resolved": "boolean",
533
- "references": {}
534
- },
535
- "required": false,
536
- "optional": false,
537
- "docs": {
538
- "tags": [],
539
- "text": ""
540
- },
541
- "attribute": "hide-icon",
542
- "reflect": false,
543
- "defaultValue": "false"
544
- },
545
- "hideScreenshotButton": {
546
- "type": "boolean",
547
- "mutable": false,
548
- "complexType": {
549
- "original": "boolean",
550
- "resolved": "boolean",
551
- "references": {}
552
- },
553
- "required": false,
554
- "optional": false,
555
- "docs": {
556
- "tags": [],
557
- "text": ""
558
- },
559
- "attribute": "hide-screenshot-button",
560
- "reflect": false,
561
- "defaultValue": "false"
562
- },
563
- "hidePrivacyPolicy": {
564
- "type": "boolean",
565
- "mutable": false,
566
- "complexType": {
567
- "original": "boolean",
568
- "resolved": "boolean",
569
- "references": {}
570
- },
571
- "required": false,
572
- "optional": false,
573
- "docs": {
574
- "tags": [],
575
- "text": ""
576
- },
577
- "attribute": "hide-privacy-policy",
578
- "reflect": false,
579
- "defaultValue": "true"
580
- },
581
- "privacyPolicyText": {
582
- "type": "string",
583
- "mutable": false,
584
- "complexType": {
585
- "original": "string",
586
- "resolved": "string",
587
- "references": {}
588
- },
589
- "required": false,
590
- "optional": false,
591
- "docs": {
592
- "tags": [],
593
- "text": ""
594
- },
595
- "attribute": "privacy-policy-text",
596
- "reflect": false,
597
- "defaultValue": "\"I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.\""
598
- },
599
- "fetchData": {
600
- "type": "boolean",
601
- "mutable": false,
602
- "complexType": {
603
- "original": "boolean",
604
- "resolved": "boolean",
605
- "references": {}
606
- },
607
- "required": false,
608
- "optional": false,
609
- "docs": {
610
- "tags": [],
611
- "text": ""
612
- },
613
- "attribute": "fetch-data",
614
- "reflect": false,
615
- "defaultValue": "true"
616
- }
617
- };
618
- }
619
- static get elementRef() { return "el"; }
620
- }
1
+ import { Host, h } from '@stencil/core';
2
+ export class FeedbackButton {
3
+ constructor() {
4
+ this.customFont = false;
5
+ this.errorMessage = "Please try again later.";
6
+ this.errorMessage403 = "The request URL does not match the one defined in PushFeedback for this project.";
7
+ this.errorMessage404 = "We could not find the provided project id in PushFeedback.";
8
+ this.modalTitle = 'Share your feedback';
9
+ this.modalTitleSuccess = 'Thanks for your feedback!';
10
+ this.modalTitleError = "Oops!";
11
+ this.modalPosition = 'center';
12
+ this.sendButtonText = 'Send';
13
+ this.successMessage = "";
14
+ this.project = '';
15
+ this.screenshotButtonText = 'Add a screenshot';
16
+ this.screenshotTopbarText = 'Select an element on this page';
17
+ this.hideEmail = false;
18
+ this.emailAddress = '';
19
+ this.emailPlaceholder = 'Email address (optional)';
20
+ this.messagePlaceholder = 'Comments';
21
+ this.hideRating = false;
22
+ this.rating = undefined;
23
+ this.ratingMode = 'thumbs';
24
+ this.ratingPlaceholder = 'Was this page helpful?';
25
+ this.ratingStarsPlaceholder = 'How would you rate this page?';
26
+ this.buttonStyle = 'default';
27
+ this.buttonPosition = 'default';
28
+ this.hideIcon = false;
29
+ this.hideScreenshotButton = false;
30
+ this.hidePrivacyPolicy = true;
31
+ this.privacyPolicyText = "I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.";
32
+ this.fetchData = true;
33
+ }
34
+ connectedCallback() {
35
+ this.feedbackModal = document.createElement('feedback-modal');
36
+ const props = [
37
+ 'customFont',
38
+ 'errorMessage',
39
+ 'errorMessage403',
40
+ 'errorMessage404',
41
+ 'modalTitle',
42
+ 'modalTitleSuccess',
43
+ 'modalTitleError',
44
+ 'modalPosition',
45
+ 'sendButtonText',
46
+ 'successMessage',
47
+ 'project',
48
+ 'screenshotButtonText',
49
+ 'screenshotTopbarText',
50
+ 'hideEmail',
51
+ 'emailAddress',
52
+ 'emailPlaceholder',
53
+ 'messagePlaceholder',
54
+ 'hideRating',
55
+ 'rating',
56
+ 'ratingMode',
57
+ 'ratingPlaceholder',
58
+ 'ratingStarsPlaceholder',
59
+ 'hideScreenshotButton',
60
+ 'hidePrivacyPolicy',
61
+ 'privacyPolicyText',
62
+ 'fetchData'
63
+ ];
64
+ props.forEach(prop => {
65
+ this.feedbackModal[prop] = this[prop];
66
+ });
67
+ document.body.appendChild(this.feedbackModal);
68
+ }
69
+ disconnectedCallback() {
70
+ document.body.removeChild(this.feedbackModal);
71
+ }
72
+ isSafariBrowser() {
73
+ const isSafari = /safari/i.test(navigator.userAgent) && !/chrome/i.test(navigator.userAgent);
74
+ return isSafari;
75
+ }
76
+ componentDidLoad() {
77
+ if (this.buttonPosition === 'center-right') {
78
+ const buttonContent = this.el.shadowRoot.querySelector('.feedback-button-content');
79
+ let adjustement = 0;
80
+ if (this.isSafariBrowser()) {
81
+ adjustement = 10;
82
+ }
83
+ buttonContent.style.right = `${(buttonContent.offsetWidth + adjustement) / 2 * -1}px`;
84
+ }
85
+ if (!this.customFont) {
86
+ this.loadInterFont();
87
+ }
88
+ }
89
+ loadInterFont() {
90
+ const link = document.createElement('link');
91
+ link.href = 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap';
92
+ link.rel = 'stylesheet';
93
+ document.head.appendChild(link);
94
+ }
95
+ showModal() {
96
+ this.feedbackModal.showModal = true;
97
+ }
98
+ render() {
99
+ return (h(Host, null, h("a", { class: `feedback-button-content feedback-button-content--${this.buttonStyle} feedback-button-content--${this.buttonPosition}`, onClick: () => this.showModal() }, !this.hideIcon && this.buttonStyle === 'dark' && (h("span", { class: "feedback-button-content-icon" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "#fff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-edit-3" }, h("path", { d: "M12 20h9" }), h("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z" })))), !this.hideIcon && this.buttonStyle === 'light' && (h("span", { class: "feedback-button-content-icon" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "#0070F4", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-edit-3" }, h("path", { d: "M12 20h9" }), h("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z" })))), h("slot", null))));
100
+ }
101
+ static get is() { return "feedback-button"; }
102
+ static get encapsulation() { return "shadow"; }
103
+ static get originalStyleUrls() {
104
+ return {
105
+ "$": ["feedback-button.css"]
106
+ };
107
+ }
108
+ static get styleUrls() {
109
+ return {
110
+ "$": ["feedback-button.css"]
111
+ };
112
+ }
113
+ static get properties() {
114
+ return {
115
+ "customFont": {
116
+ "type": "boolean",
117
+ "mutable": false,
118
+ "complexType": {
119
+ "original": "boolean",
120
+ "resolved": "boolean",
121
+ "references": {}
122
+ },
123
+ "required": false,
124
+ "optional": false,
125
+ "docs": {
126
+ "tags": [],
127
+ "text": ""
128
+ },
129
+ "attribute": "custom-font",
130
+ "reflect": false,
131
+ "defaultValue": "false"
132
+ },
133
+ "errorMessage": {
134
+ "type": "string",
135
+ "mutable": false,
136
+ "complexType": {
137
+ "original": "string",
138
+ "resolved": "string",
139
+ "references": {}
140
+ },
141
+ "required": false,
142
+ "optional": false,
143
+ "docs": {
144
+ "tags": [],
145
+ "text": ""
146
+ },
147
+ "attribute": "error-message",
148
+ "reflect": false,
149
+ "defaultValue": "\"Please try again later.\""
150
+ },
151
+ "errorMessage403": {
152
+ "type": "string",
153
+ "mutable": false,
154
+ "complexType": {
155
+ "original": "string",
156
+ "resolved": "string",
157
+ "references": {}
158
+ },
159
+ "required": false,
160
+ "optional": false,
161
+ "docs": {
162
+ "tags": [],
163
+ "text": ""
164
+ },
165
+ "attribute": "error-message-4-0-3",
166
+ "reflect": false,
167
+ "defaultValue": "\"The request URL does not match the one defined in PushFeedback for this project.\""
168
+ },
169
+ "errorMessage404": {
170
+ "type": "string",
171
+ "mutable": false,
172
+ "complexType": {
173
+ "original": "string",
174
+ "resolved": "string",
175
+ "references": {}
176
+ },
177
+ "required": false,
178
+ "optional": false,
179
+ "docs": {
180
+ "tags": [],
181
+ "text": ""
182
+ },
183
+ "attribute": "error-message-4-0-4",
184
+ "reflect": false,
185
+ "defaultValue": "\"We could not find the provided project id in PushFeedback.\""
186
+ },
187
+ "modalTitle": {
188
+ "type": "string",
189
+ "mutable": false,
190
+ "complexType": {
191
+ "original": "string",
192
+ "resolved": "string",
193
+ "references": {}
194
+ },
195
+ "required": false,
196
+ "optional": false,
197
+ "docs": {
198
+ "tags": [],
199
+ "text": ""
200
+ },
201
+ "attribute": "modal-title",
202
+ "reflect": false,
203
+ "defaultValue": "'Share your feedback'"
204
+ },
205
+ "modalTitleSuccess": {
206
+ "type": "string",
207
+ "mutable": false,
208
+ "complexType": {
209
+ "original": "string",
210
+ "resolved": "string",
211
+ "references": {}
212
+ },
213
+ "required": false,
214
+ "optional": false,
215
+ "docs": {
216
+ "tags": [],
217
+ "text": ""
218
+ },
219
+ "attribute": "modal-title-success",
220
+ "reflect": false,
221
+ "defaultValue": "'Thanks for your feedback!'"
222
+ },
223
+ "modalTitleError": {
224
+ "type": "string",
225
+ "mutable": false,
226
+ "complexType": {
227
+ "original": "string",
228
+ "resolved": "string",
229
+ "references": {}
230
+ },
231
+ "required": false,
232
+ "optional": false,
233
+ "docs": {
234
+ "tags": [],
235
+ "text": ""
236
+ },
237
+ "attribute": "modal-title-error",
238
+ "reflect": false,
239
+ "defaultValue": "\"Oops!\""
240
+ },
241
+ "modalPosition": {
242
+ "type": "string",
243
+ "mutable": false,
244
+ "complexType": {
245
+ "original": "string",
246
+ "resolved": "string",
247
+ "references": {}
248
+ },
249
+ "required": false,
250
+ "optional": false,
251
+ "docs": {
252
+ "tags": [],
253
+ "text": ""
254
+ },
255
+ "attribute": "modal-position",
256
+ "reflect": false,
257
+ "defaultValue": "'center'"
258
+ },
259
+ "sendButtonText": {
260
+ "type": "string",
261
+ "mutable": false,
262
+ "complexType": {
263
+ "original": "string",
264
+ "resolved": "string",
265
+ "references": {}
266
+ },
267
+ "required": false,
268
+ "optional": false,
269
+ "docs": {
270
+ "tags": [],
271
+ "text": ""
272
+ },
273
+ "attribute": "send-button-text",
274
+ "reflect": false,
275
+ "defaultValue": "'Send'"
276
+ },
277
+ "successMessage": {
278
+ "type": "string",
279
+ "mutable": false,
280
+ "complexType": {
281
+ "original": "string",
282
+ "resolved": "string",
283
+ "references": {}
284
+ },
285
+ "required": false,
286
+ "optional": false,
287
+ "docs": {
288
+ "tags": [],
289
+ "text": ""
290
+ },
291
+ "attribute": "success-message",
292
+ "reflect": false,
293
+ "defaultValue": "\"\""
294
+ },
295
+ "project": {
296
+ "type": "string",
297
+ "mutable": false,
298
+ "complexType": {
299
+ "original": "string",
300
+ "resolved": "string",
301
+ "references": {}
302
+ },
303
+ "required": false,
304
+ "optional": false,
305
+ "docs": {
306
+ "tags": [],
307
+ "text": ""
308
+ },
309
+ "attribute": "project",
310
+ "reflect": false,
311
+ "defaultValue": "''"
312
+ },
313
+ "screenshotButtonText": {
314
+ "type": "string",
315
+ "mutable": false,
316
+ "complexType": {
317
+ "original": "string",
318
+ "resolved": "string",
319
+ "references": {}
320
+ },
321
+ "required": false,
322
+ "optional": false,
323
+ "docs": {
324
+ "tags": [],
325
+ "text": ""
326
+ },
327
+ "attribute": "screenshot-button-text",
328
+ "reflect": false,
329
+ "defaultValue": "'Add a screenshot'"
330
+ },
331
+ "screenshotTopbarText": {
332
+ "type": "string",
333
+ "mutable": false,
334
+ "complexType": {
335
+ "original": "string",
336
+ "resolved": "string",
337
+ "references": {}
338
+ },
339
+ "required": false,
340
+ "optional": false,
341
+ "docs": {
342
+ "tags": [],
343
+ "text": ""
344
+ },
345
+ "attribute": "screenshot-topbar-text",
346
+ "reflect": false,
347
+ "defaultValue": "'Select an element on this page'"
348
+ },
349
+ "hideEmail": {
350
+ "type": "boolean",
351
+ "mutable": false,
352
+ "complexType": {
353
+ "original": "boolean",
354
+ "resolved": "boolean",
355
+ "references": {}
356
+ },
357
+ "required": false,
358
+ "optional": false,
359
+ "docs": {
360
+ "tags": [],
361
+ "text": ""
362
+ },
363
+ "attribute": "hide-email",
364
+ "reflect": false,
365
+ "defaultValue": "false"
366
+ },
367
+ "emailAddress": {
368
+ "type": "string",
369
+ "mutable": false,
370
+ "complexType": {
371
+ "original": "string",
372
+ "resolved": "string",
373
+ "references": {}
374
+ },
375
+ "required": false,
376
+ "optional": false,
377
+ "docs": {
378
+ "tags": [],
379
+ "text": ""
380
+ },
381
+ "attribute": "email-address",
382
+ "reflect": false,
383
+ "defaultValue": "''"
384
+ },
385
+ "emailPlaceholder": {
386
+ "type": "string",
387
+ "mutable": false,
388
+ "complexType": {
389
+ "original": "string",
390
+ "resolved": "string",
391
+ "references": {}
392
+ },
393
+ "required": false,
394
+ "optional": false,
395
+ "docs": {
396
+ "tags": [],
397
+ "text": ""
398
+ },
399
+ "attribute": "email-placeholder",
400
+ "reflect": false,
401
+ "defaultValue": "'Email address (optional)'"
402
+ },
403
+ "messagePlaceholder": {
404
+ "type": "string",
405
+ "mutable": false,
406
+ "complexType": {
407
+ "original": "string",
408
+ "resolved": "string",
409
+ "references": {}
410
+ },
411
+ "required": false,
412
+ "optional": false,
413
+ "docs": {
414
+ "tags": [],
415
+ "text": ""
416
+ },
417
+ "attribute": "message-placeholder",
418
+ "reflect": false,
419
+ "defaultValue": "'Comments'"
420
+ },
421
+ "hideRating": {
422
+ "type": "boolean",
423
+ "mutable": false,
424
+ "complexType": {
425
+ "original": "boolean",
426
+ "resolved": "boolean",
427
+ "references": {}
428
+ },
429
+ "required": false,
430
+ "optional": false,
431
+ "docs": {
432
+ "tags": [],
433
+ "text": ""
434
+ },
435
+ "attribute": "hide-rating",
436
+ "reflect": false,
437
+ "defaultValue": "false"
438
+ },
439
+ "rating": {
440
+ "type": "number",
441
+ "mutable": false,
442
+ "complexType": {
443
+ "original": "number",
444
+ "resolved": "number",
445
+ "references": {}
446
+ },
447
+ "required": false,
448
+ "optional": false,
449
+ "docs": {
450
+ "tags": [],
451
+ "text": ""
452
+ },
453
+ "attribute": "rating",
454
+ "reflect": false
455
+ },
456
+ "ratingMode": {
457
+ "type": "string",
458
+ "mutable": false,
459
+ "complexType": {
460
+ "original": "string",
461
+ "resolved": "string",
462
+ "references": {}
463
+ },
464
+ "required": false,
465
+ "optional": false,
466
+ "docs": {
467
+ "tags": [],
468
+ "text": ""
469
+ },
470
+ "attribute": "rating-mode",
471
+ "reflect": false,
472
+ "defaultValue": "'thumbs'"
473
+ },
474
+ "ratingPlaceholder": {
475
+ "type": "string",
476
+ "mutable": false,
477
+ "complexType": {
478
+ "original": "string",
479
+ "resolved": "string",
480
+ "references": {}
481
+ },
482
+ "required": false,
483
+ "optional": false,
484
+ "docs": {
485
+ "tags": [],
486
+ "text": ""
487
+ },
488
+ "attribute": "rating-placeholder",
489
+ "reflect": false,
490
+ "defaultValue": "'Was this page helpful?'"
491
+ },
492
+ "ratingStarsPlaceholder": {
493
+ "type": "string",
494
+ "mutable": false,
495
+ "complexType": {
496
+ "original": "string",
497
+ "resolved": "string",
498
+ "references": {}
499
+ },
500
+ "required": false,
501
+ "optional": false,
502
+ "docs": {
503
+ "tags": [],
504
+ "text": ""
505
+ },
506
+ "attribute": "rating-stars-placeholder",
507
+ "reflect": false,
508
+ "defaultValue": "'How would you rate this page?'"
509
+ },
510
+ "buttonStyle": {
511
+ "type": "string",
512
+ "mutable": false,
513
+ "complexType": {
514
+ "original": "string",
515
+ "resolved": "string",
516
+ "references": {}
517
+ },
518
+ "required": false,
519
+ "optional": false,
520
+ "docs": {
521
+ "tags": [],
522
+ "text": ""
523
+ },
524
+ "attribute": "button-style",
525
+ "reflect": false,
526
+ "defaultValue": "'default'"
527
+ },
528
+ "buttonPosition": {
529
+ "type": "string",
530
+ "mutable": false,
531
+ "complexType": {
532
+ "original": "string",
533
+ "resolved": "string",
534
+ "references": {}
535
+ },
536
+ "required": false,
537
+ "optional": false,
538
+ "docs": {
539
+ "tags": [],
540
+ "text": ""
541
+ },
542
+ "attribute": "button-position",
543
+ "reflect": false,
544
+ "defaultValue": "'default'"
545
+ },
546
+ "hideIcon": {
547
+ "type": "boolean",
548
+ "mutable": false,
549
+ "complexType": {
550
+ "original": "boolean",
551
+ "resolved": "boolean",
552
+ "references": {}
553
+ },
554
+ "required": false,
555
+ "optional": false,
556
+ "docs": {
557
+ "tags": [],
558
+ "text": ""
559
+ },
560
+ "attribute": "hide-icon",
561
+ "reflect": false,
562
+ "defaultValue": "false"
563
+ },
564
+ "hideScreenshotButton": {
565
+ "type": "boolean",
566
+ "mutable": false,
567
+ "complexType": {
568
+ "original": "boolean",
569
+ "resolved": "boolean",
570
+ "references": {}
571
+ },
572
+ "required": false,
573
+ "optional": false,
574
+ "docs": {
575
+ "tags": [],
576
+ "text": ""
577
+ },
578
+ "attribute": "hide-screenshot-button",
579
+ "reflect": false,
580
+ "defaultValue": "false"
581
+ },
582
+ "hidePrivacyPolicy": {
583
+ "type": "boolean",
584
+ "mutable": false,
585
+ "complexType": {
586
+ "original": "boolean",
587
+ "resolved": "boolean",
588
+ "references": {}
589
+ },
590
+ "required": false,
591
+ "optional": false,
592
+ "docs": {
593
+ "tags": [],
594
+ "text": ""
595
+ },
596
+ "attribute": "hide-privacy-policy",
597
+ "reflect": false,
598
+ "defaultValue": "true"
599
+ },
600
+ "privacyPolicyText": {
601
+ "type": "string",
602
+ "mutable": false,
603
+ "complexType": {
604
+ "original": "string",
605
+ "resolved": "string",
606
+ "references": {}
607
+ },
608
+ "required": false,
609
+ "optional": false,
610
+ "docs": {
611
+ "tags": [],
612
+ "text": ""
613
+ },
614
+ "attribute": "privacy-policy-text",
615
+ "reflect": false,
616
+ "defaultValue": "\"I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.\""
617
+ },
618
+ "fetchData": {
619
+ "type": "boolean",
620
+ "mutable": false,
621
+ "complexType": {
622
+ "original": "boolean",
623
+ "resolved": "boolean",
624
+ "references": {}
625
+ },
626
+ "required": false,
627
+ "optional": false,
628
+ "docs": {
629
+ "tags": [],
630
+ "text": ""
631
+ },
632
+ "attribute": "fetch-data",
633
+ "reflect": false,
634
+ "defaultValue": "true"
635
+ }
636
+ };
637
+ }
638
+ static get elementRef() { return "el"; }
639
+ }