pushfeedback 0.1.69 → 0.1.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{feedback-button_2.cjs.entry.js → canvas-editor_3.cjs.entry.js} +883 -718
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pushfeedback.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/canvas-editor/canvas-editor.css +404 -0
- package/dist/collection/components/canvas-editor/canvas-editor.js +1282 -0
- package/dist/collection/components/feedback-button/feedback-button.js +220 -0
- package/dist/collection/components/feedback-modal/feedback-modal.css +2 -458
- package/dist/collection/components/feedback-modal/feedback-modal.js +247 -782
- package/dist/components/canvas-editor.d.ts +11 -0
- package/dist/components/canvas-editor.js +6 -0
- package/dist/components/canvas-editor2.js +917 -0
- package/dist/components/feedback-button.js +40 -1
- package/dist/components/feedback-modal2.js +68 -784
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/esm/{feedback-button_2.entry.js → canvas-editor_3.entry.js} +883 -719
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pushfeedback.js +1 -1
- package/dist/pushfeedback/p-2c39091c.entry.js +1 -0
- package/dist/pushfeedback/pushfeedback.esm.js +1 -1
- package/dist/types/components/canvas-editor/canvas-editor.d.ts +108 -0
- package/dist/types/components/feedback-button/feedback-button.d.ts +11 -0
- package/dist/types/components/feedback-modal/feedback-modal.d.ts +22 -79
- package/dist/types/components.d.ts +102 -0
- package/package.json +3 -4
- package/dist/pushfeedback/p-e7f48090.entry.js +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$3 } from './canvas-editor2.js';
|
|
2
3
|
import { d as defineCustomElement$2 } from './feedback-modal2.js';
|
|
3
4
|
|
|
4
5
|
const feedbackButtonCss = ".feedback-button-content{cursor:pointer;max-width:fit-content;z-index:var(--feedback-button-z-index);font-family:var(--feedback-font-family)}.feedback-button-content--custom-font{font-family:inherit}.feedback-button-content--light{align-items:center;background-color:var(--feedback-button-light-bg-color);border-radius:var(--feedback-button-border-radius);box-shadow:rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;box-sizing:border-box;color:var(--feedback-button-light-text-color);display:flex;font-size:var(--feedback-button-text-font-size);font-weight:var(--feedback-button-text-font-weight);padding:8px 15px}.feedback-button-content--dark{align-items:center;background-color:var(--feedback-button-dark-bg-color);border-radius:var(--feedback-button-border-radius);box-shadow:rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;box-sizing:border-box;color:var(--feedback-button-dark-text-color);display:flex;font-weight:var(--feedback-button-text-font-weight);font-size:var(--feedback-button-text-font-size);padding:8px 15px}.icon-edit{stroke:var(--feedback-button-light-icon-color)}.feedback-button-content--dark .icon-edit{stroke:var(--feedback-button-dark-icon-color)}.feedback-button-content--bottom-right{bottom:10px;position:fixed;right:10px}.feedback-button-content--center-right{position:fixed;transform:rotate(-90deg) translateY(-50%);top:50%}.feedback-button-content--center-right.feedback-button-content--dark,.feedback-button-content--center-right.feedback-button-content--light{border-radius:4px;border-bottom-left-radius:0px;border-bottom-right-radius:0px}.feedback-button-content-icon{height:16px;margin-right:5px;width:16px}.feedback-button-content--center-right .feedback-button-content-icon{rotate:90deg}@media screen and (max-width: 767px){.feedback-button-content--hide-mobile{display:none}}";
|
|
@@ -32,6 +33,17 @@ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
32
33
|
this.canvasEditorTitle = 'Edit screenshot';
|
|
33
34
|
this.canvasEditorCancelText = 'Cancel';
|
|
34
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.';
|
|
35
47
|
this.emailPlaceholder = 'Email address (optional)';
|
|
36
48
|
this.errorMessage = 'Please try again later.';
|
|
37
49
|
this.errorMessage403 = 'The request URL does not match the one defined in PushFeedback for this project.';
|
|
@@ -95,6 +107,17 @@ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
95
107
|
'canvasEditorTitle',
|
|
96
108
|
'canvasEditorCancelText',
|
|
97
109
|
'canvasEditorSaveText',
|
|
110
|
+
'editTextButtonText',
|
|
111
|
+
'sizeLabelText',
|
|
112
|
+
'borderLabelText',
|
|
113
|
+
'editTextPromptText',
|
|
114
|
+
'screenshotErrorGeneral',
|
|
115
|
+
'screenshotErrorPermission',
|
|
116
|
+
'screenshotErrorNotSupported',
|
|
117
|
+
'screenshotErrorNotFound',
|
|
118
|
+
'screenshotErrorCancelled',
|
|
119
|
+
'screenshotErrorBrowserNotSupported',
|
|
120
|
+
'screenshotErrorUnexpected',
|
|
98
121
|
'emailPlaceholder',
|
|
99
122
|
'errorMessage',
|
|
100
123
|
'errorMessage403',
|
|
@@ -211,6 +234,17 @@ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
211
234
|
"canvasEditorTitle": [1, "canvas-editor-title"],
|
|
212
235
|
"canvasEditorCancelText": [1, "canvas-editor-cancel-text"],
|
|
213
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"],
|
|
214
248
|
"emailPlaceholder": [1, "email-placeholder"],
|
|
215
249
|
"errorMessage": [1, "error-message"],
|
|
216
250
|
"errorMessage403": [1, "error-message-4-0-3"],
|
|
@@ -234,13 +268,18 @@ function defineCustomElement$1() {
|
|
|
234
268
|
if (typeof customElements === "undefined") {
|
|
235
269
|
return;
|
|
236
270
|
}
|
|
237
|
-
const components = ["feedback-button", "feedback-modal"];
|
|
271
|
+
const components = ["feedback-button", "canvas-editor", "feedback-modal"];
|
|
238
272
|
components.forEach(tagName => { switch (tagName) {
|
|
239
273
|
case "feedback-button":
|
|
240
274
|
if (!customElements.get(tagName)) {
|
|
241
275
|
customElements.define(tagName, FeedbackButton$1);
|
|
242
276
|
}
|
|
243
277
|
break;
|
|
278
|
+
case "canvas-editor":
|
|
279
|
+
if (!customElements.get(tagName)) {
|
|
280
|
+
defineCustomElement$3();
|
|
281
|
+
}
|
|
282
|
+
break;
|
|
244
283
|
case "feedback-modal":
|
|
245
284
|
if (!customElements.get(tagName)) {
|
|
246
285
|
defineCustomElement$2();
|