pushfeedback 0.1.68 → 0.1.70

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.
Files changed (47) hide show
  1. package/dist/components/canvas-editor.d.ts +11 -0
  2. package/dist/components/index.d.ts +1 -0
  3. package/dist/pushfeedback/app-globals-0f993ce5.js +3 -0
  4. package/dist/pushfeedback/canvas-editor.entry.js +860 -0
  5. package/dist/pushfeedback/css-shim-b7d3d95f.js +4 -0
  6. package/dist/pushfeedback/dom-64053c71.js +73 -0
  7. package/dist/{components/feedback-button.js → pushfeedback/feedback-button.entry.js} +30 -73
  8. package/dist/pushfeedback/feedback-modal.entry.js +295 -0
  9. package/dist/pushfeedback/index-36434da0.js +3371 -0
  10. package/dist/pushfeedback/index.esm.js +1 -0
  11. package/dist/pushfeedback/pushfeedback.css +146 -1
  12. package/dist/pushfeedback/pushfeedback.esm.js +148 -1
  13. package/dist/pushfeedback/shadow-css-98135883.js +387 -0
  14. package/dist/types/components/canvas-editor/canvas-editor.d.ts +108 -0
  15. package/dist/types/components/feedback-button/feedback-button.d.ts +11 -0
  16. package/dist/types/components/feedback-modal/feedback-modal.d.ts +23 -71
  17. package/dist/types/components.d.ts +102 -0
  18. package/package.json +3 -4
  19. package/dist/cjs/feedback-button_2.cjs.entry.js +0 -9918
  20. package/dist/cjs/index-9a8f4784.js +0 -1584
  21. package/dist/cjs/index.cjs.js +0 -2
  22. package/dist/cjs/loader.cjs.js +0 -22
  23. package/dist/cjs/pushfeedback.cjs.js +0 -23
  24. package/dist/collection/collection-manifest.json +0 -13
  25. package/dist/collection/components/feedback-button/feedback-button.css +0 -81
  26. package/dist/collection/components/feedback-button/feedback-button.js +0 -949
  27. package/dist/collection/components/feedback-modal/feedback-modal.css +0 -896
  28. package/dist/collection/components/feedback-modal/feedback-modal.js +0 -1700
  29. package/dist/collection/index.js +0 -1
  30. package/dist/components/feedback-modal.js +0 -6
  31. package/dist/components/feedback-modal2.js +0 -9814
  32. package/dist/components/index.js +0 -3
  33. package/dist/esm/feedback-button_2.entry.js +0 -9913
  34. package/dist/esm/index-f65e9124.js +0 -1555
  35. package/dist/esm/index.js +0 -1
  36. package/dist/esm/loader.js +0 -18
  37. package/dist/esm/polyfills/core-js.js +0 -11
  38. package/dist/esm/polyfills/css-shim.js +0 -1
  39. package/dist/esm/polyfills/dom.js +0 -79
  40. package/dist/esm/polyfills/es5-html-element.js +0 -1
  41. package/dist/esm/polyfills/index.js +0 -34
  42. package/dist/esm/polyfills/system.js +0 -6
  43. package/dist/esm/pushfeedback.js +0 -18
  44. package/dist/index.cjs.js +0 -1
  45. package/dist/index.js +0 -1
  46. package/dist/pushfeedback/p-7406f7be.entry.js +0 -7
  47. package/dist/pushfeedback/p-af2a1f7f.js +0 -2
@@ -1,949 +0,0 @@
1
- import { Host, h } from '@stencil/core';
2
- export class FeedbackButton {
3
- constructor() {
4
- this.buttonPosition = 'default';
5
- this.buttonStyle = 'default';
6
- this.hideIcon = false;
7
- this.hideMobile = false;
8
- this.sessionId = '';
9
- this.metadata = '';
10
- this.submit = false;
11
- this.customFont = false;
12
- this.emailAddress = '';
13
- this.isEmailRequired = false;
14
- this.fetchData = true;
15
- this.hideEmail = false;
16
- this.hidePrivacyPolicy = true;
17
- this.hideRating = false;
18
- this.hideScreenshotButton = false;
19
- this.modalPosition = 'center';
20
- this.project = '';
21
- this.rating = undefined;
22
- this.ratingMode = 'thumbs';
23
- this.canvasEditorTitle = 'Edit screenshot';
24
- this.canvasEditorCancelText = 'Cancel';
25
- this.canvasEditorSaveText = 'Save';
26
- this.emailPlaceholder = 'Email address (optional)';
27
- this.errorMessage = 'Please try again later.';
28
- this.errorMessage403 = 'The request URL does not match the one defined in PushFeedback for this project.';
29
- this.errorMessage404 = 'We could not find the provided project id in PushFeedback.';
30
- this.footerText = '';
31
- this.messagePlaceholder = 'Comments';
32
- this.modalTitle = 'Share your feedback';
33
- this.modalTitleError = 'Oops!';
34
- this.modalTitleSuccess = 'Thanks for your feedback!';
35
- this.privacyPolicyText = "I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.";
36
- this.ratingPlaceholder = 'Was this page helpful?';
37
- this.ratingStarsPlaceholder = 'How would you rate this page?';
38
- this.screenshotAttachedText = 'Screenshot attached';
39
- this.screenshotButtonText = 'Add a screenshot';
40
- this.screenshotTakingText = 'Taking screenshot...';
41
- this.screenshotTopbarText = 'Select an element on this page';
42
- this.sendButtonText = 'Send';
43
- this.successMessage = '';
44
- }
45
- componentWillLoad() {
46
- if (!this.sessionId) {
47
- let storedSessionId = localStorage.getItem('pushfeedback_sessionid');
48
- if (!storedSessionId) {
49
- storedSessionId = this.generateRandomSessionId();
50
- localStorage.setItem('pushfeedback_sessionid', storedSessionId);
51
- this.sessionId = storedSessionId;
52
- }
53
- }
54
- else {
55
- localStorage.setItem('pushfeedback_sessionid', this.sessionId);
56
- }
57
- }
58
- componentDidLoad() {
59
- if (this.buttonPosition === 'center-right') {
60
- const buttonContent = this.el.shadowRoot.querySelector('.feedback-button-content');
61
- let adjustement = 0;
62
- if (this.isSafariBrowser()) {
63
- adjustement = 5;
64
- }
65
- buttonContent.style.right = `${((buttonContent.offsetWidth + adjustement) / 2) * -1}px`;
66
- }
67
- if (!this.customFont) {
68
- this.loadInterFont();
69
- }
70
- }
71
- connectedCallback() {
72
- this.feedbackModal = document.createElement('feedback-modal');
73
- const props = [
74
- 'customFont',
75
- 'emailAddress',
76
- 'fetchData',
77
- 'hideEmail',
78
- 'hidePrivacyPolicy',
79
- 'hideRating',
80
- 'hideScreenshotButton',
81
- 'isEmailRequired',
82
- 'modalPosition',
83
- 'project',
84
- 'rating',
85
- 'ratingMode',
86
- 'canvasEditorTitle',
87
- 'canvasEditorCancelText',
88
- 'canvasEditorSaveText',
89
- 'emailPlaceholder',
90
- 'errorMessage',
91
- 'errorMessage403',
92
- 'errorMessage404',
93
- 'footerText',
94
- 'messagePlaceholder',
95
- 'metadata',
96
- 'modalTitle',
97
- 'modalTitleError',
98
- 'modalTitleSuccess',
99
- 'privacyPolicyText',
100
- 'ratingPlaceholder',
101
- 'ratingStarsPlaceholder',
102
- 'screenshotAttachedText',
103
- 'screenshotButtonText',
104
- 'screenshotTakingText',
105
- 'screenshotTopbarText',
106
- 'sendButtonText',
107
- 'successMessage',
108
- ];
109
- props.forEach((prop) => {
110
- this.feedbackModal[prop] = this[prop];
111
- });
112
- document.body.appendChild(this.feedbackModal);
113
- }
114
- disconnectedCallback() {
115
- document.body.removeChild(this.feedbackModal);
116
- }
117
- generateRandomSessionId(length = 16) {
118
- return Math.random().toString(36).substr(2, length);
119
- }
120
- isSafariBrowser() {
121
- const isSafari = /safari/i.test(navigator.userAgent) && !/chrome/i.test(navigator.userAgent);
122
- return isSafari;
123
- }
124
- loadInterFont() {
125
- const link = document.createElement('link');
126
- link.href = 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap';
127
- link.rel = 'stylesheet';
128
- document.head.appendChild(link);
129
- }
130
- showModal() {
131
- if (this.submit) {
132
- this.submitRatingFeedback();
133
- }
134
- else {
135
- this.feedbackModal.openModal();
136
- }
137
- }
138
- async submitRatingFeedback() {
139
- try {
140
- const body = {
141
- url: window.location.href,
142
- project: this.project,
143
- rating: this.rating || -1,
144
- ratingMode: this.ratingMode,
145
- message: '',
146
- metadata: this.metadata,
147
- session: localStorage.getItem('pushfeedback_sessionid') || '',
148
- };
149
- const res = await fetch('https://app.pushfeedback.com/api/feedback/', {
150
- method: 'POST',
151
- body: JSON.stringify(body),
152
- headers: {
153
- 'Content-Type': 'application/json',
154
- },
155
- });
156
- if (res.status === 201) {
157
- const feedback_with_id = Object.assign(Object.assign({}, body), { id: await res.json() });
158
- this.feedbackSent.emit({ feedback: feedback_with_id });
159
- }
160
- else {
161
- const errorText = await res.text();
162
- const response = {
163
- status: res.status,
164
- message: errorText,
165
- };
166
- this.feedbackError.emit({ error: response });
167
- }
168
- }
169
- catch (error) {
170
- const response = {
171
- status: 500,
172
- message: error,
173
- };
174
- this.feedbackError.emit({ error: response });
175
- }
176
- }
177
- render() {
178
- return (h(Host, null, h("a", { class: `feedback-button-content feedback-button-content--${this.buttonStyle} feedback-button-content--${this.buttonPosition} ${this.customFont ? 'feedback-button-content--custom-font' : ''} ${this.hideMobile ? 'feedback-button-content--hide-mobile' : ''}`, onClick: () => this.showModal() }, !this.hideIcon && this.buttonStyle != 'default' && (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: "icon-edit" }, 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))));
179
- }
180
- static get is() { return "feedback-button"; }
181
- static get encapsulation() { return "shadow"; }
182
- static get originalStyleUrls() {
183
- return {
184
- "$": ["feedback-button.css"]
185
- };
186
- }
187
- static get styleUrls() {
188
- return {
189
- "$": ["feedback-button.css"]
190
- };
191
- }
192
- static get properties() {
193
- return {
194
- "buttonPosition": {
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-position",
209
- "reflect": false,
210
- "defaultValue": "'default'"
211
- },
212
- "buttonStyle": {
213
- "type": "string",
214
- "mutable": false,
215
- "complexType": {
216
- "original": "string",
217
- "resolved": "string",
218
- "references": {}
219
- },
220
- "required": false,
221
- "optional": false,
222
- "docs": {
223
- "tags": [],
224
- "text": ""
225
- },
226
- "attribute": "button-style",
227
- "reflect": false,
228
- "defaultValue": "'default'"
229
- },
230
- "hideIcon": {
231
- "type": "boolean",
232
- "mutable": false,
233
- "complexType": {
234
- "original": "boolean",
235
- "resolved": "boolean",
236
- "references": {}
237
- },
238
- "required": false,
239
- "optional": false,
240
- "docs": {
241
- "tags": [],
242
- "text": ""
243
- },
244
- "attribute": "hide-icon",
245
- "reflect": false,
246
- "defaultValue": "false"
247
- },
248
- "hideMobile": {
249
- "type": "boolean",
250
- "mutable": false,
251
- "complexType": {
252
- "original": "boolean",
253
- "resolved": "boolean",
254
- "references": {}
255
- },
256
- "required": false,
257
- "optional": false,
258
- "docs": {
259
- "tags": [],
260
- "text": ""
261
- },
262
- "attribute": "hide-mobile",
263
- "reflect": false,
264
- "defaultValue": "false"
265
- },
266
- "sessionId": {
267
- "type": "string",
268
- "mutable": true,
269
- "complexType": {
270
- "original": "string",
271
- "resolved": "string",
272
- "references": {}
273
- },
274
- "required": false,
275
- "optional": false,
276
- "docs": {
277
- "tags": [],
278
- "text": ""
279
- },
280
- "attribute": "session-id",
281
- "reflect": true,
282
- "defaultValue": "''"
283
- },
284
- "metadata": {
285
- "type": "string",
286
- "mutable": false,
287
- "complexType": {
288
- "original": "string",
289
- "resolved": "string",
290
- "references": {}
291
- },
292
- "required": false,
293
- "optional": false,
294
- "docs": {
295
- "tags": [],
296
- "text": ""
297
- },
298
- "attribute": "metadata",
299
- "reflect": false,
300
- "defaultValue": "''"
301
- },
302
- "submit": {
303
- "type": "boolean",
304
- "mutable": false,
305
- "complexType": {
306
- "original": "boolean",
307
- "resolved": "boolean",
308
- "references": {}
309
- },
310
- "required": false,
311
- "optional": false,
312
- "docs": {
313
- "tags": [],
314
- "text": ""
315
- },
316
- "attribute": "submit",
317
- "reflect": false,
318
- "defaultValue": "false"
319
- },
320
- "customFont": {
321
- "type": "boolean",
322
- "mutable": false,
323
- "complexType": {
324
- "original": "boolean",
325
- "resolved": "boolean",
326
- "references": {}
327
- },
328
- "required": false,
329
- "optional": false,
330
- "docs": {
331
- "tags": [],
332
- "text": ""
333
- },
334
- "attribute": "custom-font",
335
- "reflect": false,
336
- "defaultValue": "false"
337
- },
338
- "emailAddress": {
339
- "type": "string",
340
- "mutable": false,
341
- "complexType": {
342
- "original": "string",
343
- "resolved": "string",
344
- "references": {}
345
- },
346
- "required": false,
347
- "optional": false,
348
- "docs": {
349
- "tags": [],
350
- "text": ""
351
- },
352
- "attribute": "email-address",
353
- "reflect": false,
354
- "defaultValue": "''"
355
- },
356
- "isEmailRequired": {
357
- "type": "boolean",
358
- "mutable": false,
359
- "complexType": {
360
- "original": "boolean",
361
- "resolved": "boolean",
362
- "references": {}
363
- },
364
- "required": false,
365
- "optional": false,
366
- "docs": {
367
- "tags": [],
368
- "text": ""
369
- },
370
- "attribute": "is-email-required",
371
- "reflect": false,
372
- "defaultValue": "false"
373
- },
374
- "fetchData": {
375
- "type": "boolean",
376
- "mutable": false,
377
- "complexType": {
378
- "original": "boolean",
379
- "resolved": "boolean",
380
- "references": {}
381
- },
382
- "required": false,
383
- "optional": false,
384
- "docs": {
385
- "tags": [],
386
- "text": ""
387
- },
388
- "attribute": "fetch-data",
389
- "reflect": false,
390
- "defaultValue": "true"
391
- },
392
- "hideEmail": {
393
- "type": "boolean",
394
- "mutable": false,
395
- "complexType": {
396
- "original": "boolean",
397
- "resolved": "boolean",
398
- "references": {}
399
- },
400
- "required": false,
401
- "optional": false,
402
- "docs": {
403
- "tags": [],
404
- "text": ""
405
- },
406
- "attribute": "hide-email",
407
- "reflect": false,
408
- "defaultValue": "false"
409
- },
410
- "hidePrivacyPolicy": {
411
- "type": "boolean",
412
- "mutable": false,
413
- "complexType": {
414
- "original": "boolean",
415
- "resolved": "boolean",
416
- "references": {}
417
- },
418
- "required": false,
419
- "optional": false,
420
- "docs": {
421
- "tags": [],
422
- "text": ""
423
- },
424
- "attribute": "hide-privacy-policy",
425
- "reflect": false,
426
- "defaultValue": "true"
427
- },
428
- "hideRating": {
429
- "type": "boolean",
430
- "mutable": false,
431
- "complexType": {
432
- "original": "boolean",
433
- "resolved": "boolean",
434
- "references": {}
435
- },
436
- "required": false,
437
- "optional": false,
438
- "docs": {
439
- "tags": [],
440
- "text": ""
441
- },
442
- "attribute": "hide-rating",
443
- "reflect": false,
444
- "defaultValue": "false"
445
- },
446
- "hideScreenshotButton": {
447
- "type": "boolean",
448
- "mutable": false,
449
- "complexType": {
450
- "original": "boolean",
451
- "resolved": "boolean",
452
- "references": {}
453
- },
454
- "required": false,
455
- "optional": false,
456
- "docs": {
457
- "tags": [],
458
- "text": ""
459
- },
460
- "attribute": "hide-screenshot-button",
461
- "reflect": false,
462
- "defaultValue": "false"
463
- },
464
- "modalPosition": {
465
- "type": "string",
466
- "mutable": false,
467
- "complexType": {
468
- "original": "string",
469
- "resolved": "string",
470
- "references": {}
471
- },
472
- "required": false,
473
- "optional": false,
474
- "docs": {
475
- "tags": [],
476
- "text": ""
477
- },
478
- "attribute": "modal-position",
479
- "reflect": false,
480
- "defaultValue": "'center'"
481
- },
482
- "project": {
483
- "type": "string",
484
- "mutable": false,
485
- "complexType": {
486
- "original": "string",
487
- "resolved": "string",
488
- "references": {}
489
- },
490
- "required": false,
491
- "optional": false,
492
- "docs": {
493
- "tags": [],
494
- "text": ""
495
- },
496
- "attribute": "project",
497
- "reflect": false,
498
- "defaultValue": "''"
499
- },
500
- "rating": {
501
- "type": "number",
502
- "mutable": false,
503
- "complexType": {
504
- "original": "number",
505
- "resolved": "number",
506
- "references": {}
507
- },
508
- "required": false,
509
- "optional": false,
510
- "docs": {
511
- "tags": [],
512
- "text": ""
513
- },
514
- "attribute": "rating",
515
- "reflect": false
516
- },
517
- "ratingMode": {
518
- "type": "string",
519
- "mutable": false,
520
- "complexType": {
521
- "original": "string",
522
- "resolved": "string",
523
- "references": {}
524
- },
525
- "required": false,
526
- "optional": false,
527
- "docs": {
528
- "tags": [],
529
- "text": ""
530
- },
531
- "attribute": "rating-mode",
532
- "reflect": false,
533
- "defaultValue": "'thumbs'"
534
- },
535
- "canvasEditorTitle": {
536
- "type": "string",
537
- "mutable": false,
538
- "complexType": {
539
- "original": "string",
540
- "resolved": "string",
541
- "references": {}
542
- },
543
- "required": false,
544
- "optional": false,
545
- "docs": {
546
- "tags": [],
547
- "text": ""
548
- },
549
- "attribute": "canvas-editor-title",
550
- "reflect": false,
551
- "defaultValue": "'Edit screenshot'"
552
- },
553
- "canvasEditorCancelText": {
554
- "type": "string",
555
- "mutable": false,
556
- "complexType": {
557
- "original": "string",
558
- "resolved": "string",
559
- "references": {}
560
- },
561
- "required": false,
562
- "optional": false,
563
- "docs": {
564
- "tags": [],
565
- "text": ""
566
- },
567
- "attribute": "canvas-editor-cancel-text",
568
- "reflect": false,
569
- "defaultValue": "'Cancel'"
570
- },
571
- "canvasEditorSaveText": {
572
- "type": "string",
573
- "mutable": false,
574
- "complexType": {
575
- "original": "string",
576
- "resolved": "string",
577
- "references": {}
578
- },
579
- "required": false,
580
- "optional": false,
581
- "docs": {
582
- "tags": [],
583
- "text": ""
584
- },
585
- "attribute": "canvas-editor-save-text",
586
- "reflect": false,
587
- "defaultValue": "'Save'"
588
- },
589
- "emailPlaceholder": {
590
- "type": "string",
591
- "mutable": false,
592
- "complexType": {
593
- "original": "string",
594
- "resolved": "string",
595
- "references": {}
596
- },
597
- "required": false,
598
- "optional": false,
599
- "docs": {
600
- "tags": [],
601
- "text": ""
602
- },
603
- "attribute": "email-placeholder",
604
- "reflect": false,
605
- "defaultValue": "'Email address (optional)'"
606
- },
607
- "errorMessage": {
608
- "type": "string",
609
- "mutable": false,
610
- "complexType": {
611
- "original": "string",
612
- "resolved": "string",
613
- "references": {}
614
- },
615
- "required": false,
616
- "optional": false,
617
- "docs": {
618
- "tags": [],
619
- "text": ""
620
- },
621
- "attribute": "error-message",
622
- "reflect": false,
623
- "defaultValue": "'Please try again later.'"
624
- },
625
- "errorMessage403": {
626
- "type": "string",
627
- "mutable": false,
628
- "complexType": {
629
- "original": "string",
630
- "resolved": "string",
631
- "references": {}
632
- },
633
- "required": false,
634
- "optional": false,
635
- "docs": {
636
- "tags": [],
637
- "text": ""
638
- },
639
- "attribute": "error-message-4-0-3",
640
- "reflect": false,
641
- "defaultValue": "'The request URL does not match the one defined in PushFeedback for this project.'"
642
- },
643
- "errorMessage404": {
644
- "type": "string",
645
- "mutable": false,
646
- "complexType": {
647
- "original": "string",
648
- "resolved": "string",
649
- "references": {}
650
- },
651
- "required": false,
652
- "optional": false,
653
- "docs": {
654
- "tags": [],
655
- "text": ""
656
- },
657
- "attribute": "error-message-4-0-4",
658
- "reflect": false,
659
- "defaultValue": "'We could not find the provided project id in PushFeedback.'"
660
- },
661
- "footerText": {
662
- "type": "string",
663
- "mutable": false,
664
- "complexType": {
665
- "original": "string",
666
- "resolved": "string",
667
- "references": {}
668
- },
669
- "required": false,
670
- "optional": false,
671
- "docs": {
672
- "tags": [],
673
- "text": ""
674
- },
675
- "attribute": "footer-text",
676
- "reflect": false,
677
- "defaultValue": "''"
678
- },
679
- "messagePlaceholder": {
680
- "type": "string",
681
- "mutable": false,
682
- "complexType": {
683
- "original": "string",
684
- "resolved": "string",
685
- "references": {}
686
- },
687
- "required": false,
688
- "optional": false,
689
- "docs": {
690
- "tags": [],
691
- "text": ""
692
- },
693
- "attribute": "message-placeholder",
694
- "reflect": false,
695
- "defaultValue": "'Comments'"
696
- },
697
- "modalTitle": {
698
- "type": "string",
699
- "mutable": false,
700
- "complexType": {
701
- "original": "string",
702
- "resolved": "string",
703
- "references": {}
704
- },
705
- "required": false,
706
- "optional": false,
707
- "docs": {
708
- "tags": [],
709
- "text": ""
710
- },
711
- "attribute": "modal-title",
712
- "reflect": false,
713
- "defaultValue": "'Share your feedback'"
714
- },
715
- "modalTitleError": {
716
- "type": "string",
717
- "mutable": false,
718
- "complexType": {
719
- "original": "string",
720
- "resolved": "string",
721
- "references": {}
722
- },
723
- "required": false,
724
- "optional": false,
725
- "docs": {
726
- "tags": [],
727
- "text": ""
728
- },
729
- "attribute": "modal-title-error",
730
- "reflect": false,
731
- "defaultValue": "'Oops!'"
732
- },
733
- "modalTitleSuccess": {
734
- "type": "string",
735
- "mutable": false,
736
- "complexType": {
737
- "original": "string",
738
- "resolved": "string",
739
- "references": {}
740
- },
741
- "required": false,
742
- "optional": false,
743
- "docs": {
744
- "tags": [],
745
- "text": ""
746
- },
747
- "attribute": "modal-title-success",
748
- "reflect": false,
749
- "defaultValue": "'Thanks for your feedback!'"
750
- },
751
- "privacyPolicyText": {
752
- "type": "string",
753
- "mutable": false,
754
- "complexType": {
755
- "original": "string",
756
- "resolved": "string",
757
- "references": {}
758
- },
759
- "required": false,
760
- "optional": false,
761
- "docs": {
762
- "tags": [],
763
- "text": ""
764
- },
765
- "attribute": "privacy-policy-text",
766
- "reflect": false,
767
- "defaultValue": "\"I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.\""
768
- },
769
- "ratingPlaceholder": {
770
- "type": "string",
771
- "mutable": false,
772
- "complexType": {
773
- "original": "string",
774
- "resolved": "string",
775
- "references": {}
776
- },
777
- "required": false,
778
- "optional": false,
779
- "docs": {
780
- "tags": [],
781
- "text": ""
782
- },
783
- "attribute": "rating-placeholder",
784
- "reflect": false,
785
- "defaultValue": "'Was this page helpful?'"
786
- },
787
- "ratingStarsPlaceholder": {
788
- "type": "string",
789
- "mutable": false,
790
- "complexType": {
791
- "original": "string",
792
- "resolved": "string",
793
- "references": {}
794
- },
795
- "required": false,
796
- "optional": false,
797
- "docs": {
798
- "tags": [],
799
- "text": ""
800
- },
801
- "attribute": "rating-stars-placeholder",
802
- "reflect": false,
803
- "defaultValue": "'How would you rate this page?'"
804
- },
805
- "screenshotAttachedText": {
806
- "type": "string",
807
- "mutable": false,
808
- "complexType": {
809
- "original": "string",
810
- "resolved": "string",
811
- "references": {}
812
- },
813
- "required": false,
814
- "optional": false,
815
- "docs": {
816
- "tags": [],
817
- "text": ""
818
- },
819
- "attribute": "screenshot-attached-text",
820
- "reflect": false,
821
- "defaultValue": "'Screenshot attached'"
822
- },
823
- "screenshotButtonText": {
824
- "type": "string",
825
- "mutable": false,
826
- "complexType": {
827
- "original": "string",
828
- "resolved": "string",
829
- "references": {}
830
- },
831
- "required": false,
832
- "optional": false,
833
- "docs": {
834
- "tags": [],
835
- "text": ""
836
- },
837
- "attribute": "screenshot-button-text",
838
- "reflect": false,
839
- "defaultValue": "'Add a screenshot'"
840
- },
841
- "screenshotTakingText": {
842
- "type": "string",
843
- "mutable": false,
844
- "complexType": {
845
- "original": "string",
846
- "resolved": "string",
847
- "references": {}
848
- },
849
- "required": false,
850
- "optional": false,
851
- "docs": {
852
- "tags": [],
853
- "text": ""
854
- },
855
- "attribute": "screenshot-taking-text",
856
- "reflect": false,
857
- "defaultValue": "'Taking screenshot...'"
858
- },
859
- "screenshotTopbarText": {
860
- "type": "string",
861
- "mutable": false,
862
- "complexType": {
863
- "original": "string",
864
- "resolved": "string",
865
- "references": {}
866
- },
867
- "required": false,
868
- "optional": false,
869
- "docs": {
870
- "tags": [],
871
- "text": ""
872
- },
873
- "attribute": "screenshot-topbar-text",
874
- "reflect": false,
875
- "defaultValue": "'Select an element on this page'"
876
- },
877
- "sendButtonText": {
878
- "type": "string",
879
- "mutable": false,
880
- "complexType": {
881
- "original": "string",
882
- "resolved": "string",
883
- "references": {}
884
- },
885
- "required": false,
886
- "optional": false,
887
- "docs": {
888
- "tags": [],
889
- "text": ""
890
- },
891
- "attribute": "send-button-text",
892
- "reflect": false,
893
- "defaultValue": "'Send'"
894
- },
895
- "successMessage": {
896
- "type": "string",
897
- "mutable": false,
898
- "complexType": {
899
- "original": "string",
900
- "resolved": "string",
901
- "references": {}
902
- },
903
- "required": false,
904
- "optional": false,
905
- "docs": {
906
- "tags": [],
907
- "text": ""
908
- },
909
- "attribute": "success-message",
910
- "reflect": false,
911
- "defaultValue": "''"
912
- }
913
- };
914
- }
915
- static get events() {
916
- return [{
917
- "method": "feedbackSent",
918
- "name": "feedbackSent",
919
- "bubbles": true,
920
- "cancelable": true,
921
- "composed": true,
922
- "docs": {
923
- "tags": [],
924
- "text": ""
925
- },
926
- "complexType": {
927
- "original": "{ feedback: any }",
928
- "resolved": "{ feedback: any; }",
929
- "references": {}
930
- }
931
- }, {
932
- "method": "feedbackError",
933
- "name": "feedbackError",
934
- "bubbles": true,
935
- "cancelable": true,
936
- "composed": true,
937
- "docs": {
938
- "tags": [],
939
- "text": ""
940
- },
941
- "complexType": {
942
- "original": "{ error: any }",
943
- "resolved": "{ error: any; }",
944
- "references": {}
945
- }
946
- }];
947
- }
948
- static get elementRef() { return "el"; }
949
- }