pushfeedback 0.1.71 → 0.1.73

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.
@@ -187,24 +187,23 @@ export class FeedbackModal {
187
187
  this.ratingPlaceholder = 'Was this page helpful?';
188
188
  this.ratingStarsPlaceholder = 'How would you rate this page?';
189
189
  this.sendButtonText = 'Send';
190
+ this.successMessage = '';
190
191
  this.screenshotAttachedText = 'Screenshot attached';
191
192
  this.screenshotButtonText = 'Add a screenshot';
192
193
  this.screenshotTakingText = 'Taking screenshot...';
193
- this.screenshotTopbarText = 'Select an element on this page';
194
- this.successMessage = '';
195
- this.canvasEditorTitle = 'Edit screenshot';
196
- this.canvasEditorCancelText = 'Cancel';
197
- this.canvasEditorSaveText = 'Save';
198
- this.editTextButtonText = 'Edit Text';
199
- this.sizeLabelText = 'Size:';
200
- this.borderLabelText = 'Border:';
201
- this.editTextPromptText = 'Edit text:';
194
+ this.screenshotEditTextButtonText = 'Edit text';
195
+ this.screenshotEditorTitle = 'Edit screenshot';
196
+ this.screenshotEditorCancelText = 'Cancel';
197
+ this.screenshotEditorSaveText = 'Save';
198
+ this.screenshotSizeLabelText = 'Size:';
199
+ this.screenshotBorderLabelText = 'Border:';
200
+ this.screenshotEditTextPromptText = 'Edit text:';
202
201
  this.screenshotErrorGeneral = 'Failed to capture screenshot.';
203
202
  this.screenshotErrorPermission = 'Permission denied. Please allow screen sharing to take screenshots.';
204
203
  this.screenshotErrorNotSupported = 'Screen capture is not supported in this browser.';
205
204
  this.screenshotErrorNotFound = 'No screen sources available for capture.';
206
205
  this.screenshotErrorCancelled = 'Screenshot capture was cancelled.';
207
- this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari.';
206
+ this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari on desktop.';
208
207
  this.screenshotErrorUnexpected = 'An unexpected error occurred. Please try again.';
209
208
  }
210
209
  componentWillLoad() {
@@ -250,7 +249,7 @@ export class FeedbackModal {
250
249
  this.selectedRating = newRating;
251
250
  }
252
251
  render() {
253
- return (h("div", { class: `feedback-modal-wrapper ${this.customFont ? 'feedback-modal-wrapper--custom-font' : ''}` }, this.showCanvasEditor && (h("canvas-editor", { ref: (el) => this.canvasEditorRef = el, "canvas-editor-title": this.canvasEditorTitle, "canvas-editor-cancel-text": this.canvasEditorCancelText, "canvas-editor-save-text": this.canvasEditorSaveText, "screenshot-taking-text": this.screenshotTakingText, "screenshot-attached-text": this.screenshotAttachedText, "screenshot-button-text": this.screenshotButtonText, "auto-start-screenshot": this.autoStartCapture, "existing-screenshot": this.encodedScreenshot || '', "edit-text-button-text": this.editTextButtonText, "size-label-text": this.sizeLabelText, "border-label-text": this.borderLabelText, "edit-text-prompt-text": this.editTextPromptText, "screenshot-error-general": this.screenshotErrorGeneral, "screenshot-error-permission": this.screenshotErrorPermission, "screenshot-error-not-supported": this.screenshotErrorNotSupported, "screenshot-error-not-found": this.screenshotErrorNotFound, "screenshot-error-cancelled": this.screenshotErrorCancelled, "screenshot-error-browser-not-supported": this.screenshotErrorBrowserNotSupported, "screenshot-error-unexpected": this.screenshotErrorUnexpected, onScreenshotReady: this.handleScreenshotReady, onScreenshotCancelled: this.handleScreenshotCancelled, onScreenshotFailed: this.handleScreenshotError })), this.showScreenshotError && (h("div", { class: "screenshot-error-notification" }, h("div", { class: "screenshot-error-content" }, h("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("circle", { cx: "12", cy: "12", r: "10" }), h("line", { x1: "15", y1: "9", x2: "9", y2: "15" }), h("line", { x1: "9", y1: "9", x2: "15", y2: "15" })), h("span", null, this.screenshotError), h("button", { class: "error-close-btn", onClick: () => this.showScreenshotError = false, title: "Close" }, h("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))))), this.showModal && (h("div", { class: `feedback-overlay ${this.isAnimating ? 'feedback-overlay--visible' : ''}` })), this.showModal && (h("div", { class: `feedback-modal-content feedback-modal-content--${this.modalPosition} ${this.isAnimating ? 'feedback-modal-content--open' : ''}`, ref: (el) => (this.modalContent = el) }, h("div", { class: "feedback-modal-header" }, !this.formSuccess && !this.formError ? (h("span", null, this.modalTitle)) : this.formSuccess ? (h("span", null, this.modalTitleSuccess)) : (h("span", null, this.modalTitleError)), h("button", { class: "feedback-modal-close", onClick: this.close }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "#191919", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-x" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { class: "feedback-modal-body" }, !this.formSuccess && !this.formError ? (h("form", { onSubmit: this.handleSubmit }, !this.hideRating && (h("div", { class: "feedback-modal-rating" }, this.ratingMode === 'thumbs' ? (h("div", { class: "feedback-modal-rating-content" }, h("span", { class: "feedback-modal-input-heading" }, this.ratingPlaceholder), h("div", { class: "feedback-modal-rating-buttons feedback-modal-rating-buttons--thumbs" }, h("button", { title: "Yes", class: `feedback-modal-rating-button ${this.selectedRating === 1
252
+ return (h("div", { class: `feedback-modal-wrapper ${this.customFont ? 'feedback-modal-wrapper--custom-font' : ''}` }, this.showCanvasEditor && (h("canvas-editor", { ref: (el) => this.canvasEditorRef = el, "canvas-editor-title": this.screenshotEditorTitle, "canvas-editor-cancel-text": this.screenshotEditorCancelText, "canvas-editor-save-text": this.screenshotEditorSaveText, "screenshot-taking-text": this.screenshotTakingText, "screenshot-attached-text": this.screenshotAttachedText, "screenshot-button-text": this.screenshotButtonText, "auto-start-screenshot": this.autoStartCapture, "existing-screenshot": this.encodedScreenshot || '', "edit-text-button-text": this.screenshotEditTextButtonText, "size-label-text": this.screenshotSizeLabelText, "border-label-text": this.screenshotBorderLabelText, "edit-text-prompt-text": this.screenshotEditTextPromptText, "screenshot-error-general": this.screenshotErrorGeneral, "screenshot-error-permission": this.screenshotErrorPermission, "screenshot-error-not-supported": this.screenshotErrorNotSupported, "screenshot-error-not-found": this.screenshotErrorNotFound, "screenshot-error-cancelled": this.screenshotErrorCancelled, "screenshot-error-browser-not-supported": this.screenshotErrorBrowserNotSupported, "screenshot-error-unexpected": this.screenshotErrorUnexpected, onScreenshotReady: this.handleScreenshotReady, onScreenshotCancelled: this.handleScreenshotCancelled, onScreenshotFailed: this.handleScreenshotError })), this.showScreenshotError && (h("div", { class: "screenshot-error-notification" }, h("div", { class: "screenshot-error-content" }, h("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("circle", { cx: "12", cy: "12", r: "10" }), h("line", { x1: "15", y1: "9", x2: "9", y2: "15" }), h("line", { x1: "9", y1: "9", x2: "15", y2: "15" })), h("span", null, this.screenshotError), h("button", { class: "error-close-btn", onClick: () => this.showScreenshotError = false, title: "Close" }, h("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))))), this.showModal && (h("div", { class: `feedback-overlay ${this.isAnimating ? 'feedback-overlay--visible' : ''}` })), this.showModal && (h("div", { class: `feedback-modal-content feedback-modal-content--${this.modalPosition} ${this.isAnimating ? 'feedback-modal-content--open' : ''}`, ref: (el) => (this.modalContent = el) }, h("div", { class: "feedback-modal-header" }, !this.formSuccess && !this.formError ? (h("span", null, this.modalTitle)) : this.formSuccess ? (h("span", null, this.modalTitleSuccess)) : (h("span", null, this.modalTitleError)), h("button", { class: "feedback-modal-close", onClick: this.close }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "#191919", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-x" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { class: "feedback-modal-body" }, !this.formSuccess && !this.formError ? (h("form", { onSubmit: this.handleSubmit }, !this.hideRating && (h("div", { class: "feedback-modal-rating" }, this.ratingMode === 'thumbs' ? (h("div", { class: "feedback-modal-rating-content" }, h("span", { class: "feedback-modal-input-heading" }, this.ratingPlaceholder), h("div", { class: "feedback-modal-rating-buttons feedback-modal-rating-buttons--thumbs" }, h("button", { title: "Yes", class: `feedback-modal-rating-button ${this.selectedRating === 1
254
253
  ? 'feedback-modal-rating-button--selected'
255
254
  : ''}`, onClick: (event) => {
256
255
  event.preventDefault();
@@ -835,7 +834,7 @@ export class FeedbackModal {
835
834
  "reflect": false,
836
835
  "defaultValue": "'Send'"
837
836
  },
838
- "screenshotAttachedText": {
837
+ "successMessage": {
839
838
  "type": "string",
840
839
  "mutable": false,
841
840
  "complexType": {
@@ -849,11 +848,11 @@ export class FeedbackModal {
849
848
  "tags": [],
850
849
  "text": ""
851
850
  },
852
- "attribute": "screenshot-attached-text",
851
+ "attribute": "success-message",
853
852
  "reflect": false,
854
- "defaultValue": "'Screenshot attached'"
853
+ "defaultValue": "''"
855
854
  },
856
- "screenshotButtonText": {
855
+ "screenshotAttachedText": {
857
856
  "type": "string",
858
857
  "mutable": false,
859
858
  "complexType": {
@@ -867,11 +866,11 @@ export class FeedbackModal {
867
866
  "tags": [],
868
867
  "text": ""
869
868
  },
870
- "attribute": "screenshot-button-text",
869
+ "attribute": "screenshot-attached-text",
871
870
  "reflect": false,
872
- "defaultValue": "'Add a screenshot'"
871
+ "defaultValue": "'Screenshot attached'"
873
872
  },
874
- "screenshotTakingText": {
873
+ "screenshotButtonText": {
875
874
  "type": "string",
876
875
  "mutable": false,
877
876
  "complexType": {
@@ -885,11 +884,11 @@ export class FeedbackModal {
885
884
  "tags": [],
886
885
  "text": ""
887
886
  },
888
- "attribute": "screenshot-taking-text",
887
+ "attribute": "screenshot-button-text",
889
888
  "reflect": false,
890
- "defaultValue": "'Taking screenshot...'"
889
+ "defaultValue": "'Add a screenshot'"
891
890
  },
892
- "screenshotTopbarText": {
891
+ "screenshotTakingText": {
893
892
  "type": "string",
894
893
  "mutable": false,
895
894
  "complexType": {
@@ -903,11 +902,11 @@ export class FeedbackModal {
903
902
  "tags": [],
904
903
  "text": ""
905
904
  },
906
- "attribute": "screenshot-topbar-text",
905
+ "attribute": "screenshot-taking-text",
907
906
  "reflect": false,
908
- "defaultValue": "'Select an element on this page'"
907
+ "defaultValue": "'Taking screenshot...'"
909
908
  },
910
- "successMessage": {
909
+ "screenshotEditTextButtonText": {
911
910
  "type": "string",
912
911
  "mutable": false,
913
912
  "complexType": {
@@ -921,11 +920,11 @@ export class FeedbackModal {
921
920
  "tags": [],
922
921
  "text": ""
923
922
  },
924
- "attribute": "success-message",
923
+ "attribute": "screenshot-edit-text-button-text",
925
924
  "reflect": false,
926
- "defaultValue": "''"
925
+ "defaultValue": "'Edit text'"
927
926
  },
928
- "canvasEditorTitle": {
927
+ "screenshotEditorTitle": {
929
928
  "type": "string",
930
929
  "mutable": false,
931
930
  "complexType": {
@@ -939,11 +938,11 @@ export class FeedbackModal {
939
938
  "tags": [],
940
939
  "text": ""
941
940
  },
942
- "attribute": "canvas-editor-title",
941
+ "attribute": "screenshot-editor-title",
943
942
  "reflect": false,
944
943
  "defaultValue": "'Edit screenshot'"
945
944
  },
946
- "canvasEditorCancelText": {
945
+ "screenshotEditorCancelText": {
947
946
  "type": "string",
948
947
  "mutable": false,
949
948
  "complexType": {
@@ -957,11 +956,11 @@ export class FeedbackModal {
957
956
  "tags": [],
958
957
  "text": ""
959
958
  },
960
- "attribute": "canvas-editor-cancel-text",
959
+ "attribute": "screenshot-editor-cancel-text",
961
960
  "reflect": false,
962
961
  "defaultValue": "'Cancel'"
963
962
  },
964
- "canvasEditorSaveText": {
963
+ "screenshotEditorSaveText": {
965
964
  "type": "string",
966
965
  "mutable": false,
967
966
  "complexType": {
@@ -975,29 +974,11 @@ export class FeedbackModal {
975
974
  "tags": [],
976
975
  "text": ""
977
976
  },
978
- "attribute": "canvas-editor-save-text",
977
+ "attribute": "screenshot-editor-save-text",
979
978
  "reflect": false,
980
979
  "defaultValue": "'Save'"
981
980
  },
982
- "editTextButtonText": {
983
- "type": "string",
984
- "mutable": false,
985
- "complexType": {
986
- "original": "string",
987
- "resolved": "string",
988
- "references": {}
989
- },
990
- "required": false,
991
- "optional": false,
992
- "docs": {
993
- "tags": [],
994
- "text": ""
995
- },
996
- "attribute": "edit-text-button-text",
997
- "reflect": false,
998
- "defaultValue": "'Edit Text'"
999
- },
1000
- "sizeLabelText": {
981
+ "screenshotSizeLabelText": {
1001
982
  "type": "string",
1002
983
  "mutable": false,
1003
984
  "complexType": {
@@ -1011,11 +992,11 @@ export class FeedbackModal {
1011
992
  "tags": [],
1012
993
  "text": ""
1013
994
  },
1014
- "attribute": "size-label-text",
995
+ "attribute": "screenshot-size-label-text",
1015
996
  "reflect": false,
1016
997
  "defaultValue": "'Size:'"
1017
998
  },
1018
- "borderLabelText": {
999
+ "screenshotBorderLabelText": {
1019
1000
  "type": "string",
1020
1001
  "mutable": false,
1021
1002
  "complexType": {
@@ -1029,11 +1010,11 @@ export class FeedbackModal {
1029
1010
  "tags": [],
1030
1011
  "text": ""
1031
1012
  },
1032
- "attribute": "border-label-text",
1013
+ "attribute": "screenshot-border-label-text",
1033
1014
  "reflect": false,
1034
1015
  "defaultValue": "'Border:'"
1035
1016
  },
1036
- "editTextPromptText": {
1017
+ "screenshotEditTextPromptText": {
1037
1018
  "type": "string",
1038
1019
  "mutable": false,
1039
1020
  "complexType": {
@@ -1047,7 +1028,7 @@ export class FeedbackModal {
1047
1028
  "tags": [],
1048
1029
  "text": ""
1049
1030
  },
1050
- "attribute": "edit-text-prompt-text",
1031
+ "attribute": "screenshot-edit-text-prompt-text",
1051
1032
  "reflect": false,
1052
1033
  "defaultValue": "'Edit text:'"
1053
1034
  },
@@ -1157,7 +1138,7 @@ export class FeedbackModal {
1157
1138
  },
1158
1139
  "attribute": "screenshot-error-browser-not-supported",
1159
1140
  "reflect": false,
1160
- "defaultValue": "'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari.'"
1141
+ "defaultValue": "'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari on desktop.'"
1161
1142
  },
1162
1143
  "screenshotErrorUnexpected": {
1163
1144
  "type": "string",
@@ -30,20 +30,6 @@ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
30
30
  this.project = '';
31
31
  this.rating = undefined;
32
32
  this.ratingMode = 'thumbs';
33
- this.canvasEditorTitle = 'Edit screenshot';
34
- this.canvasEditorCancelText = 'Cancel';
35
- this.canvasEditorSaveText = 'Save';
36
- this.editTextButtonText = 'Edit Text';
37
- this.sizeLabelText = 'Size:';
38
- this.borderLabelText = 'Border:';
39
- this.editTextPromptText = 'Edit text:';
40
- this.screenshotErrorGeneral = 'Failed to capture screenshot.';
41
- this.screenshotErrorPermission = 'Permission denied. Please allow screen sharing to take screenshots.';
42
- this.screenshotErrorNotSupported = 'Screen capture is not supported in this browser.';
43
- this.screenshotErrorNotFound = 'No screen sources available for capture.';
44
- this.screenshotErrorCancelled = 'Screenshot capture was cancelled.';
45
- this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari.';
46
- this.screenshotErrorUnexpected = 'An unexpected error occurred. Please try again.';
47
33
  this.emailPlaceholder = 'Email address (optional)';
48
34
  this.errorMessage = 'Please try again later.';
49
35
  this.errorMessage403 = 'The request URL does not match the one defined in PushFeedback for this project.';
@@ -56,12 +42,25 @@ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
56
42
  this.privacyPolicyText = "I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.";
57
43
  this.ratingPlaceholder = 'Was this page helpful?';
58
44
  this.ratingStarsPlaceholder = 'How would you rate this page?';
45
+ this.sendButtonText = 'Send';
46
+ this.successMessage = '';
59
47
  this.screenshotAttachedText = 'Screenshot attached';
60
48
  this.screenshotButtonText = 'Add a screenshot';
61
49
  this.screenshotTakingText = 'Taking screenshot...';
62
- this.screenshotTopbarText = 'Select an element on this page';
63
- this.sendButtonText = 'Send';
64
- this.successMessage = '';
50
+ this.screenshotEditTextButtonText = 'Edit text';
51
+ this.screenshotEditorTitle = 'Edit screenshot';
52
+ this.screenshotEditorCancelText = 'Cancel';
53
+ this.screenshotEditorSaveText = 'Save';
54
+ this.screenshotSizeLabelText = 'Size:';
55
+ this.screenshotBorderLabelText = 'Border:';
56
+ this.screenshotEditTextPromptText = 'Edit text:';
57
+ this.screenshotErrorGeneral = 'Failed to capture screenshot.';
58
+ this.screenshotErrorPermission = 'Permission denied. Please allow screen sharing to take screenshots.';
59
+ this.screenshotErrorNotSupported = 'Screen capture is not supported in this browser.';
60
+ this.screenshotErrorNotFound = 'No screen sources available for capture.';
61
+ this.screenshotErrorCancelled = 'Screenshot capture was cancelled.';
62
+ this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari on desktop.';
63
+ this.screenshotErrorUnexpected = 'An unexpected error occurred. Please try again.';
65
64
  }
66
65
  componentWillLoad() {
67
66
  if (!this.sessionId) {
@@ -104,13 +103,13 @@ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
104
103
  'project',
105
104
  'rating',
106
105
  'ratingMode',
107
- 'canvasEditorTitle',
108
- 'canvasEditorCancelText',
109
- 'canvasEditorSaveText',
110
- 'editTextButtonText',
111
- 'sizeLabelText',
112
- 'borderLabelText',
113
- 'editTextPromptText',
106
+ 'screenshotEditorTitle',
107
+ 'screenshotEditorCancelText',
108
+ 'screenshotEditorSaveText',
109
+ 'screenshotEditTextButtonText',
110
+ 'screenshotSizeLabelText',
111
+ 'screenshotBorderLabelText',
112
+ 'screenshotEditTextPromptText',
114
113
  'screenshotErrorGeneral',
115
114
  'screenshotErrorPermission',
116
115
  'screenshotErrorNotSupported',
@@ -134,7 +133,6 @@ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
134
133
  'screenshotAttachedText',
135
134
  'screenshotButtonText',
136
135
  'screenshotTakingText',
137
- 'screenshotTopbarText',
138
136
  'sendButtonText',
139
137
  'successMessage',
140
138
  ];
@@ -231,20 +229,6 @@ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
231
229
  "project": [1],
232
230
  "rating": [2],
233
231
  "ratingMode": [1, "rating-mode"],
234
- "canvasEditorTitle": [1, "canvas-editor-title"],
235
- "canvasEditorCancelText": [1, "canvas-editor-cancel-text"],
236
- "canvasEditorSaveText": [1, "canvas-editor-save-text"],
237
- "editTextButtonText": [1, "edit-text-button-text"],
238
- "sizeLabelText": [1, "size-label-text"],
239
- "borderLabelText": [1, "border-label-text"],
240
- "editTextPromptText": [1, "edit-text-prompt-text"],
241
- "screenshotErrorGeneral": [1, "screenshot-error-general"],
242
- "screenshotErrorPermission": [1, "screenshot-error-permission"],
243
- "screenshotErrorNotSupported": [1, "screenshot-error-not-supported"],
244
- "screenshotErrorNotFound": [1, "screenshot-error-not-found"],
245
- "screenshotErrorCancelled": [1, "screenshot-error-cancelled"],
246
- "screenshotErrorBrowserNotSupported": [1, "screenshot-error-browser-not-supported"],
247
- "screenshotErrorUnexpected": [1, "screenshot-error-unexpected"],
248
232
  "emailPlaceholder": [1, "email-placeholder"],
249
233
  "errorMessage": [1, "error-message"],
250
234
  "errorMessage403": [1, "error-message-4-0-3"],
@@ -257,12 +241,25 @@ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
257
241
  "privacyPolicyText": [1, "privacy-policy-text"],
258
242
  "ratingPlaceholder": [1, "rating-placeholder"],
259
243
  "ratingStarsPlaceholder": [1, "rating-stars-placeholder"],
244
+ "sendButtonText": [1, "send-button-text"],
245
+ "successMessage": [1, "success-message"],
260
246
  "screenshotAttachedText": [1, "screenshot-attached-text"],
261
247
  "screenshotButtonText": [1, "screenshot-button-text"],
262
248
  "screenshotTakingText": [1, "screenshot-taking-text"],
263
- "screenshotTopbarText": [1, "screenshot-topbar-text"],
264
- "sendButtonText": [1, "send-button-text"],
265
- "successMessage": [1, "success-message"]
249
+ "screenshotEditTextButtonText": [1, "screenshot-edit-text-button-text"],
250
+ "screenshotEditorTitle": [1, "screenshot-editor-title"],
251
+ "screenshotEditorCancelText": [1, "screenshot-editor-cancel-text"],
252
+ "screenshotEditorSaveText": [1, "screenshot-editor-save-text"],
253
+ "screenshotSizeLabelText": [1, "screenshot-size-label-text"],
254
+ "screenshotBorderLabelText": [1, "screenshot-border-label-text"],
255
+ "screenshotEditTextPromptText": [1, "screenshot-edit-text-prompt-text"],
256
+ "screenshotErrorGeneral": [1, "screenshot-error-general"],
257
+ "screenshotErrorPermission": [1, "screenshot-error-permission"],
258
+ "screenshotErrorNotSupported": [1, "screenshot-error-not-supported"],
259
+ "screenshotErrorNotFound": [1, "screenshot-error-not-found"],
260
+ "screenshotErrorCancelled": [1, "screenshot-error-cancelled"],
261
+ "screenshotErrorBrowserNotSupported": [1, "screenshot-error-browser-not-supported"],
262
+ "screenshotErrorUnexpected": [1, "screenshot-error-unexpected"]
266
263
  }]);
267
264
  function defineCustomElement$1() {
268
265
  if (typeof customElements === "undefined") {
@@ -196,24 +196,23 @@ const FeedbackModal = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
196
196
  this.ratingPlaceholder = 'Was this page helpful?';
197
197
  this.ratingStarsPlaceholder = 'How would you rate this page?';
198
198
  this.sendButtonText = 'Send';
199
+ this.successMessage = '';
199
200
  this.screenshotAttachedText = 'Screenshot attached';
200
201
  this.screenshotButtonText = 'Add a screenshot';
201
202
  this.screenshotTakingText = 'Taking screenshot...';
202
- this.screenshotTopbarText = 'Select an element on this page';
203
- this.successMessage = '';
204
- this.canvasEditorTitle = 'Edit screenshot';
205
- this.canvasEditorCancelText = 'Cancel';
206
- this.canvasEditorSaveText = 'Save';
207
- this.editTextButtonText = 'Edit Text';
208
- this.sizeLabelText = 'Size:';
209
- this.borderLabelText = 'Border:';
210
- this.editTextPromptText = 'Edit text:';
203
+ this.screenshotEditTextButtonText = 'Edit text';
204
+ this.screenshotEditorTitle = 'Edit screenshot';
205
+ this.screenshotEditorCancelText = 'Cancel';
206
+ this.screenshotEditorSaveText = 'Save';
207
+ this.screenshotSizeLabelText = 'Size:';
208
+ this.screenshotBorderLabelText = 'Border:';
209
+ this.screenshotEditTextPromptText = 'Edit text:';
211
210
  this.screenshotErrorGeneral = 'Failed to capture screenshot.';
212
211
  this.screenshotErrorPermission = 'Permission denied. Please allow screen sharing to take screenshots.';
213
212
  this.screenshotErrorNotSupported = 'Screen capture is not supported in this browser.';
214
213
  this.screenshotErrorNotFound = 'No screen sources available for capture.';
215
214
  this.screenshotErrorCancelled = 'Screenshot capture was cancelled.';
216
- this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari.';
215
+ this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari on desktop.';
217
216
  this.screenshotErrorUnexpected = 'An unexpected error occurred. Please try again.';
218
217
  }
219
218
  componentWillLoad() {
@@ -259,7 +258,7 @@ const FeedbackModal = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
259
258
  this.selectedRating = newRating;
260
259
  }
261
260
  render() {
262
- return (h("div", { class: `feedback-modal-wrapper ${this.customFont ? 'feedback-modal-wrapper--custom-font' : ''}` }, this.showCanvasEditor && (h("canvas-editor", { ref: (el) => this.canvasEditorRef = el, "canvas-editor-title": this.canvasEditorTitle, "canvas-editor-cancel-text": this.canvasEditorCancelText, "canvas-editor-save-text": this.canvasEditorSaveText, "screenshot-taking-text": this.screenshotTakingText, "screenshot-attached-text": this.screenshotAttachedText, "screenshot-button-text": this.screenshotButtonText, "auto-start-screenshot": this.autoStartCapture, "existing-screenshot": this.encodedScreenshot || '', "edit-text-button-text": this.editTextButtonText, "size-label-text": this.sizeLabelText, "border-label-text": this.borderLabelText, "edit-text-prompt-text": this.editTextPromptText, "screenshot-error-general": this.screenshotErrorGeneral, "screenshot-error-permission": this.screenshotErrorPermission, "screenshot-error-not-supported": this.screenshotErrorNotSupported, "screenshot-error-not-found": this.screenshotErrorNotFound, "screenshot-error-cancelled": this.screenshotErrorCancelled, "screenshot-error-browser-not-supported": this.screenshotErrorBrowserNotSupported, "screenshot-error-unexpected": this.screenshotErrorUnexpected, onScreenshotReady: this.handleScreenshotReady, onScreenshotCancelled: this.handleScreenshotCancelled, onScreenshotFailed: this.handleScreenshotError })), this.showScreenshotError && (h("div", { class: "screenshot-error-notification" }, h("div", { class: "screenshot-error-content" }, h("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("circle", { cx: "12", cy: "12", r: "10" }), h("line", { x1: "15", y1: "9", x2: "9", y2: "15" }), h("line", { x1: "9", y1: "9", x2: "15", y2: "15" })), h("span", null, this.screenshotError), h("button", { class: "error-close-btn", onClick: () => this.showScreenshotError = false, title: "Close" }, h("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))))), this.showModal && (h("div", { class: `feedback-overlay ${this.isAnimating ? 'feedback-overlay--visible' : ''}` })), this.showModal && (h("div", { class: `feedback-modal-content feedback-modal-content--${this.modalPosition} ${this.isAnimating ? 'feedback-modal-content--open' : ''}`, ref: (el) => (this.modalContent = el) }, h("div", { class: "feedback-modal-header" }, !this.formSuccess && !this.formError ? (h("span", null, this.modalTitle)) : this.formSuccess ? (h("span", null, this.modalTitleSuccess)) : (h("span", null, this.modalTitleError)), h("button", { class: "feedback-modal-close", onClick: this.close }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "#191919", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-x" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { class: "feedback-modal-body" }, !this.formSuccess && !this.formError ? (h("form", { onSubmit: this.handleSubmit }, !this.hideRating && (h("div", { class: "feedback-modal-rating" }, this.ratingMode === 'thumbs' ? (h("div", { class: "feedback-modal-rating-content" }, h("span", { class: "feedback-modal-input-heading" }, this.ratingPlaceholder), h("div", { class: "feedback-modal-rating-buttons feedback-modal-rating-buttons--thumbs" }, h("button", { title: "Yes", class: `feedback-modal-rating-button ${this.selectedRating === 1
261
+ return (h("div", { class: `feedback-modal-wrapper ${this.customFont ? 'feedback-modal-wrapper--custom-font' : ''}` }, this.showCanvasEditor && (h("canvas-editor", { ref: (el) => this.canvasEditorRef = el, "canvas-editor-title": this.screenshotEditorTitle, "canvas-editor-cancel-text": this.screenshotEditorCancelText, "canvas-editor-save-text": this.screenshotEditorSaveText, "screenshot-taking-text": this.screenshotTakingText, "screenshot-attached-text": this.screenshotAttachedText, "screenshot-button-text": this.screenshotButtonText, "auto-start-screenshot": this.autoStartCapture, "existing-screenshot": this.encodedScreenshot || '', "edit-text-button-text": this.screenshotEditTextButtonText, "size-label-text": this.screenshotSizeLabelText, "border-label-text": this.screenshotBorderLabelText, "edit-text-prompt-text": this.screenshotEditTextPromptText, "screenshot-error-general": this.screenshotErrorGeneral, "screenshot-error-permission": this.screenshotErrorPermission, "screenshot-error-not-supported": this.screenshotErrorNotSupported, "screenshot-error-not-found": this.screenshotErrorNotFound, "screenshot-error-cancelled": this.screenshotErrorCancelled, "screenshot-error-browser-not-supported": this.screenshotErrorBrowserNotSupported, "screenshot-error-unexpected": this.screenshotErrorUnexpected, onScreenshotReady: this.handleScreenshotReady, onScreenshotCancelled: this.handleScreenshotCancelled, onScreenshotFailed: this.handleScreenshotError })), this.showScreenshotError && (h("div", { class: "screenshot-error-notification" }, h("div", { class: "screenshot-error-content" }, h("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("circle", { cx: "12", cy: "12", r: "10" }), h("line", { x1: "15", y1: "9", x2: "9", y2: "15" }), h("line", { x1: "9", y1: "9", x2: "15", y2: "15" })), h("span", null, this.screenshotError), h("button", { class: "error-close-btn", onClick: () => this.showScreenshotError = false, title: "Close" }, h("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))))), this.showModal && (h("div", { class: `feedback-overlay ${this.isAnimating ? 'feedback-overlay--visible' : ''}` })), this.showModal && (h("div", { class: `feedback-modal-content feedback-modal-content--${this.modalPosition} ${this.isAnimating ? 'feedback-modal-content--open' : ''}`, ref: (el) => (this.modalContent = el) }, h("div", { class: "feedback-modal-header" }, !this.formSuccess && !this.formError ? (h("span", null, this.modalTitle)) : this.formSuccess ? (h("span", null, this.modalTitleSuccess)) : (h("span", null, this.modalTitleError)), h("button", { class: "feedback-modal-close", onClick: this.close }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "#191919", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-x" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { class: "feedback-modal-body" }, !this.formSuccess && !this.formError ? (h("form", { onSubmit: this.handleSubmit }, !this.hideRating && (h("div", { class: "feedback-modal-rating" }, this.ratingMode === 'thumbs' ? (h("div", { class: "feedback-modal-rating-content" }, h("span", { class: "feedback-modal-input-heading" }, this.ratingPlaceholder), h("div", { class: "feedback-modal-rating-buttons feedback-modal-rating-buttons--thumbs" }, h("button", { title: "Yes", class: `feedback-modal-rating-button ${this.selectedRating === 1
263
262
  ? 'feedback-modal-rating-button--selected'
264
263
  : ''}`, onClick: (event) => {
265
264
  event.preventDefault();
@@ -324,18 +323,17 @@ const FeedbackModal = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
324
323
  "ratingPlaceholder": [1, "rating-placeholder"],
325
324
  "ratingStarsPlaceholder": [1, "rating-stars-placeholder"],
326
325
  "sendButtonText": [1, "send-button-text"],
326
+ "successMessage": [1, "success-message"],
327
327
  "screenshotAttachedText": [1, "screenshot-attached-text"],
328
328
  "screenshotButtonText": [1, "screenshot-button-text"],
329
329
  "screenshotTakingText": [1, "screenshot-taking-text"],
330
- "screenshotTopbarText": [1, "screenshot-topbar-text"],
331
- "successMessage": [1, "success-message"],
332
- "canvasEditorTitle": [1, "canvas-editor-title"],
333
- "canvasEditorCancelText": [1, "canvas-editor-cancel-text"],
334
- "canvasEditorSaveText": [1, "canvas-editor-save-text"],
335
- "editTextButtonText": [1, "edit-text-button-text"],
336
- "sizeLabelText": [1, "size-label-text"],
337
- "borderLabelText": [1, "border-label-text"],
338
- "editTextPromptText": [1, "edit-text-prompt-text"],
330
+ "screenshotEditTextButtonText": [1, "screenshot-edit-text-button-text"],
331
+ "screenshotEditorTitle": [1, "screenshot-editor-title"],
332
+ "screenshotEditorCancelText": [1, "screenshot-editor-cancel-text"],
333
+ "screenshotEditorSaveText": [1, "screenshot-editor-save-text"],
334
+ "screenshotSizeLabelText": [1, "screenshot-size-label-text"],
335
+ "screenshotBorderLabelText": [1, "screenshot-border-label-text"],
336
+ "screenshotEditTextPromptText": [1, "screenshot-edit-text-prompt-text"],
339
337
  "screenshotErrorGeneral": [1, "screenshot-error-general"],
340
338
  "screenshotErrorPermission": [1, "screenshot-error-permission"],
341
339
  "screenshotErrorNotSupported": [1, "screenshot-error-not-supported"],
@@ -883,20 +883,6 @@ const FeedbackButton = class {
883
883
  this.project = '';
884
884
  this.rating = undefined;
885
885
  this.ratingMode = 'thumbs';
886
- this.canvasEditorTitle = 'Edit screenshot';
887
- this.canvasEditorCancelText = 'Cancel';
888
- this.canvasEditorSaveText = 'Save';
889
- this.editTextButtonText = 'Edit Text';
890
- this.sizeLabelText = 'Size:';
891
- this.borderLabelText = 'Border:';
892
- this.editTextPromptText = 'Edit text:';
893
- this.screenshotErrorGeneral = 'Failed to capture screenshot.';
894
- this.screenshotErrorPermission = 'Permission denied. Please allow screen sharing to take screenshots.';
895
- this.screenshotErrorNotSupported = 'Screen capture is not supported in this browser.';
896
- this.screenshotErrorNotFound = 'No screen sources available for capture.';
897
- this.screenshotErrorCancelled = 'Screenshot capture was cancelled.';
898
- this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari.';
899
- this.screenshotErrorUnexpected = 'An unexpected error occurred. Please try again.';
900
886
  this.emailPlaceholder = 'Email address (optional)';
901
887
  this.errorMessage = 'Please try again later.';
902
888
  this.errorMessage403 = 'The request URL does not match the one defined in PushFeedback for this project.';
@@ -909,12 +895,25 @@ const FeedbackButton = class {
909
895
  this.privacyPolicyText = "I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.";
910
896
  this.ratingPlaceholder = 'Was this page helpful?';
911
897
  this.ratingStarsPlaceholder = 'How would you rate this page?';
898
+ this.sendButtonText = 'Send';
899
+ this.successMessage = '';
912
900
  this.screenshotAttachedText = 'Screenshot attached';
913
901
  this.screenshotButtonText = 'Add a screenshot';
914
902
  this.screenshotTakingText = 'Taking screenshot...';
915
- this.screenshotTopbarText = 'Select an element on this page';
916
- this.sendButtonText = 'Send';
917
- this.successMessage = '';
903
+ this.screenshotEditTextButtonText = 'Edit text';
904
+ this.screenshotEditorTitle = 'Edit screenshot';
905
+ this.screenshotEditorCancelText = 'Cancel';
906
+ this.screenshotEditorSaveText = 'Save';
907
+ this.screenshotSizeLabelText = 'Size:';
908
+ this.screenshotBorderLabelText = 'Border:';
909
+ this.screenshotEditTextPromptText = 'Edit text:';
910
+ this.screenshotErrorGeneral = 'Failed to capture screenshot.';
911
+ this.screenshotErrorPermission = 'Permission denied. Please allow screen sharing to take screenshots.';
912
+ this.screenshotErrorNotSupported = 'Screen capture is not supported in this browser.';
913
+ this.screenshotErrorNotFound = 'No screen sources available for capture.';
914
+ this.screenshotErrorCancelled = 'Screenshot capture was cancelled.';
915
+ this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari on desktop.';
916
+ this.screenshotErrorUnexpected = 'An unexpected error occurred. Please try again.';
918
917
  }
919
918
  componentWillLoad() {
920
919
  if (!this.sessionId) {
@@ -957,13 +956,13 @@ const FeedbackButton = class {
957
956
  'project',
958
957
  'rating',
959
958
  'ratingMode',
960
- 'canvasEditorTitle',
961
- 'canvasEditorCancelText',
962
- 'canvasEditorSaveText',
963
- 'editTextButtonText',
964
- 'sizeLabelText',
965
- 'borderLabelText',
966
- 'editTextPromptText',
959
+ 'screenshotEditorTitle',
960
+ 'screenshotEditorCancelText',
961
+ 'screenshotEditorSaveText',
962
+ 'screenshotEditTextButtonText',
963
+ 'screenshotSizeLabelText',
964
+ 'screenshotBorderLabelText',
965
+ 'screenshotEditTextPromptText',
967
966
  'screenshotErrorGeneral',
968
967
  'screenshotErrorPermission',
969
968
  'screenshotErrorNotSupported',
@@ -987,7 +986,6 @@ const FeedbackButton = class {
987
986
  'screenshotAttachedText',
988
987
  'screenshotButtonText',
989
988
  'screenshotTakingText',
990
- 'screenshotTopbarText',
991
989
  'sendButtonText',
992
990
  'successMessage',
993
991
  ];
@@ -1259,24 +1257,23 @@ const FeedbackModal = class {
1259
1257
  this.ratingPlaceholder = 'Was this page helpful?';
1260
1258
  this.ratingStarsPlaceholder = 'How would you rate this page?';
1261
1259
  this.sendButtonText = 'Send';
1260
+ this.successMessage = '';
1262
1261
  this.screenshotAttachedText = 'Screenshot attached';
1263
1262
  this.screenshotButtonText = 'Add a screenshot';
1264
1263
  this.screenshotTakingText = 'Taking screenshot...';
1265
- this.screenshotTopbarText = 'Select an element on this page';
1266
- this.successMessage = '';
1267
- this.canvasEditorTitle = 'Edit screenshot';
1268
- this.canvasEditorCancelText = 'Cancel';
1269
- this.canvasEditorSaveText = 'Save';
1270
- this.editTextButtonText = 'Edit Text';
1271
- this.sizeLabelText = 'Size:';
1272
- this.borderLabelText = 'Border:';
1273
- this.editTextPromptText = 'Edit text:';
1264
+ this.screenshotEditTextButtonText = 'Edit text';
1265
+ this.screenshotEditorTitle = 'Edit screenshot';
1266
+ this.screenshotEditorCancelText = 'Cancel';
1267
+ this.screenshotEditorSaveText = 'Save';
1268
+ this.screenshotSizeLabelText = 'Size:';
1269
+ this.screenshotBorderLabelText = 'Border:';
1270
+ this.screenshotEditTextPromptText = 'Edit text:';
1274
1271
  this.screenshotErrorGeneral = 'Failed to capture screenshot.';
1275
1272
  this.screenshotErrorPermission = 'Permission denied. Please allow screen sharing to take screenshots.';
1276
1273
  this.screenshotErrorNotSupported = 'Screen capture is not supported in this browser.';
1277
1274
  this.screenshotErrorNotFound = 'No screen sources available for capture.';
1278
1275
  this.screenshotErrorCancelled = 'Screenshot capture was cancelled.';
1279
- this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari.';
1276
+ this.screenshotErrorBrowserNotSupported = 'Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari on desktop.';
1280
1277
  this.screenshotErrorUnexpected = 'An unexpected error occurred. Please try again.';
1281
1278
  }
1282
1279
  componentWillLoad() {
@@ -1322,7 +1319,7 @@ const FeedbackModal = class {
1322
1319
  this.selectedRating = newRating;
1323
1320
  }
1324
1321
  render() {
1325
- return (h("div", { class: `feedback-modal-wrapper ${this.customFont ? 'feedback-modal-wrapper--custom-font' : ''}` }, this.showCanvasEditor && (h("canvas-editor", { ref: (el) => this.canvasEditorRef = el, "canvas-editor-title": this.canvasEditorTitle, "canvas-editor-cancel-text": this.canvasEditorCancelText, "canvas-editor-save-text": this.canvasEditorSaveText, "screenshot-taking-text": this.screenshotTakingText, "screenshot-attached-text": this.screenshotAttachedText, "screenshot-button-text": this.screenshotButtonText, "auto-start-screenshot": this.autoStartCapture, "existing-screenshot": this.encodedScreenshot || '', "edit-text-button-text": this.editTextButtonText, "size-label-text": this.sizeLabelText, "border-label-text": this.borderLabelText, "edit-text-prompt-text": this.editTextPromptText, "screenshot-error-general": this.screenshotErrorGeneral, "screenshot-error-permission": this.screenshotErrorPermission, "screenshot-error-not-supported": this.screenshotErrorNotSupported, "screenshot-error-not-found": this.screenshotErrorNotFound, "screenshot-error-cancelled": this.screenshotErrorCancelled, "screenshot-error-browser-not-supported": this.screenshotErrorBrowserNotSupported, "screenshot-error-unexpected": this.screenshotErrorUnexpected, onScreenshotReady: this.handleScreenshotReady, onScreenshotCancelled: this.handleScreenshotCancelled, onScreenshotFailed: this.handleScreenshotError })), this.showScreenshotError && (h("div", { class: "screenshot-error-notification" }, h("div", { class: "screenshot-error-content" }, h("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("circle", { cx: "12", cy: "12", r: "10" }), h("line", { x1: "15", y1: "9", x2: "9", y2: "15" }), h("line", { x1: "9", y1: "9", x2: "15", y2: "15" })), h("span", null, this.screenshotError), h("button", { class: "error-close-btn", onClick: () => this.showScreenshotError = false, title: "Close" }, h("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))))), this.showModal && (h("div", { class: `feedback-overlay ${this.isAnimating ? 'feedback-overlay--visible' : ''}` })), this.showModal && (h("div", { class: `feedback-modal-content feedback-modal-content--${this.modalPosition} ${this.isAnimating ? 'feedback-modal-content--open' : ''}`, ref: (el) => (this.modalContent = el) }, h("div", { class: "feedback-modal-header" }, !this.formSuccess && !this.formError ? (h("span", null, this.modalTitle)) : this.formSuccess ? (h("span", null, this.modalTitleSuccess)) : (h("span", null, this.modalTitleError)), h("button", { class: "feedback-modal-close", onClick: this.close }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "#191919", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-x" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { class: "feedback-modal-body" }, !this.formSuccess && !this.formError ? (h("form", { onSubmit: this.handleSubmit }, !this.hideRating && (h("div", { class: "feedback-modal-rating" }, this.ratingMode === 'thumbs' ? (h("div", { class: "feedback-modal-rating-content" }, h("span", { class: "feedback-modal-input-heading" }, this.ratingPlaceholder), h("div", { class: "feedback-modal-rating-buttons feedback-modal-rating-buttons--thumbs" }, h("button", { title: "Yes", class: `feedback-modal-rating-button ${this.selectedRating === 1
1322
+ return (h("div", { class: `feedback-modal-wrapper ${this.customFont ? 'feedback-modal-wrapper--custom-font' : ''}` }, this.showCanvasEditor && (h("canvas-editor", { ref: (el) => this.canvasEditorRef = el, "canvas-editor-title": this.screenshotEditorTitle, "canvas-editor-cancel-text": this.screenshotEditorCancelText, "canvas-editor-save-text": this.screenshotEditorSaveText, "screenshot-taking-text": this.screenshotTakingText, "screenshot-attached-text": this.screenshotAttachedText, "screenshot-button-text": this.screenshotButtonText, "auto-start-screenshot": this.autoStartCapture, "existing-screenshot": this.encodedScreenshot || '', "edit-text-button-text": this.screenshotEditTextButtonText, "size-label-text": this.screenshotSizeLabelText, "border-label-text": this.screenshotBorderLabelText, "edit-text-prompt-text": this.screenshotEditTextPromptText, "screenshot-error-general": this.screenshotErrorGeneral, "screenshot-error-permission": this.screenshotErrorPermission, "screenshot-error-not-supported": this.screenshotErrorNotSupported, "screenshot-error-not-found": this.screenshotErrorNotFound, "screenshot-error-cancelled": this.screenshotErrorCancelled, "screenshot-error-browser-not-supported": this.screenshotErrorBrowserNotSupported, "screenshot-error-unexpected": this.screenshotErrorUnexpected, onScreenshotReady: this.handleScreenshotReady, onScreenshotCancelled: this.handleScreenshotCancelled, onScreenshotFailed: this.handleScreenshotError })), this.showScreenshotError && (h("div", { class: "screenshot-error-notification" }, h("div", { class: "screenshot-error-content" }, h("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("circle", { cx: "12", cy: "12", r: "10" }), h("line", { x1: "15", y1: "9", x2: "9", y2: "15" }), h("line", { x1: "9", y1: "9", x2: "15", y2: "15" })), h("span", null, this.screenshotError), h("button", { class: "error-close-btn", onClick: () => this.showScreenshotError = false, title: "Close" }, h("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))))), this.showModal && (h("div", { class: `feedback-overlay ${this.isAnimating ? 'feedback-overlay--visible' : ''}` })), this.showModal && (h("div", { class: `feedback-modal-content feedback-modal-content--${this.modalPosition} ${this.isAnimating ? 'feedback-modal-content--open' : ''}`, ref: (el) => (this.modalContent = el) }, h("div", { class: "feedback-modal-header" }, !this.formSuccess && !this.formError ? (h("span", null, this.modalTitle)) : this.formSuccess ? (h("span", null, this.modalTitleSuccess)) : (h("span", null, this.modalTitleError)), h("button", { class: "feedback-modal-close", onClick: this.close }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "#191919", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-x" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { class: "feedback-modal-body" }, !this.formSuccess && !this.formError ? (h("form", { onSubmit: this.handleSubmit }, !this.hideRating && (h("div", { class: "feedback-modal-rating" }, this.ratingMode === 'thumbs' ? (h("div", { class: "feedback-modal-rating-content" }, h("span", { class: "feedback-modal-input-heading" }, this.ratingPlaceholder), h("div", { class: "feedback-modal-rating-buttons feedback-modal-rating-buttons--thumbs" }, h("button", { title: "Yes", class: `feedback-modal-rating-button ${this.selectedRating === 1
1326
1323
  ? 'feedback-modal-rating-button--selected'
1327
1324
  : ''}`, onClick: (event) => {
1328
1325
  event.preventDefault();