pushfeedback 0.1.70 → 0.1.72

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 (46) hide show
  1. package/dist/cjs/canvas-editor_3.cjs.entry.js +1364 -0
  2. package/dist/cjs/index-9a8f4784.js +1584 -0
  3. package/dist/cjs/index.cjs.js +2 -0
  4. package/dist/cjs/loader.cjs.js +22 -0
  5. package/dist/cjs/pushfeedback.cjs.js +23 -0
  6. package/dist/collection/collection-manifest.json +14 -0
  7. package/dist/collection/components/canvas-editor/canvas-editor.css +404 -0
  8. package/dist/collection/components/canvas-editor/canvas-editor.js +1282 -0
  9. package/dist/collection/components/feedback-button/feedback-button.css +81 -0
  10. package/dist/collection/components/feedback-button/feedback-button.js +1149 -0
  11. package/dist/collection/components/feedback-modal/feedback-modal.css +547 -0
  12. package/dist/collection/components/feedback-modal/feedback-modal.js +1238 -0
  13. package/dist/collection/index.js +1 -0
  14. package/dist/components/canvas-editor.js +6 -0
  15. package/dist/{pushfeedback/canvas-editor.entry.js → components/canvas-editor2.js} +64 -7
  16. package/dist/{pushfeedback/feedback-button.entry.js → components/feedback-button.js} +112 -33
  17. package/dist/components/feedback-modal.js +6 -0
  18. package/dist/{pushfeedback/feedback-modal.entry.js → components/feedback-modal2.js} +106 -18
  19. package/dist/components/index.js +4 -0
  20. package/dist/esm/canvas-editor_3.entry.js +1358 -0
  21. package/dist/esm/index-f65e9124.js +1555 -0
  22. package/dist/esm/index.js +1 -0
  23. package/dist/esm/loader.js +18 -0
  24. package/dist/esm/polyfills/core-js.js +11 -0
  25. package/dist/esm/polyfills/css-shim.js +1 -0
  26. package/dist/esm/polyfills/dom.js +79 -0
  27. package/dist/esm/polyfills/es5-html-element.js +1 -0
  28. package/dist/esm/polyfills/index.js +34 -0
  29. package/dist/esm/polyfills/system.js +6 -0
  30. package/dist/esm/pushfeedback.js +18 -0
  31. package/dist/index.cjs.js +1 -0
  32. package/dist/index.js +1 -0
  33. package/dist/pushfeedback/index.esm.js +0 -1
  34. package/dist/pushfeedback/p-881a733a.entry.js +1 -0
  35. package/dist/pushfeedback/p-af2a1f7f.js +2 -0
  36. package/dist/pushfeedback/pushfeedback.css +1 -146
  37. package/dist/pushfeedback/pushfeedback.esm.js +1 -148
  38. package/dist/types/components/feedback-button/feedback-button.d.ts +16 -17
  39. package/dist/types/components/feedback-modal/feedback-modal.d.ts +8 -9
  40. package/dist/types/components.d.ts +28 -32
  41. package/package.json +1 -1
  42. package/dist/pushfeedback/app-globals-0f993ce5.js +0 -3
  43. package/dist/pushfeedback/css-shim-b7d3d95f.js +0 -4
  44. package/dist/pushfeedback/dom-64053c71.js +0 -73
  45. package/dist/pushfeedback/index-36434da0.js +0 -3371
  46. package/dist/pushfeedback/shadow-css-98135883.js +0 -387
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-9a8f4784.js');
6
+
7
+ /*
8
+ Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
9
+ */
10
+ const patchEsm = () => {
11
+ return index.promiseResolve();
12
+ };
13
+
14
+ const defineCustomElements = (win, options) => {
15
+ if (typeof window === 'undefined') return Promise.resolve();
16
+ return patchEsm().then(() => {
17
+ return index.bootstrapLazy([["canvas-editor_3.cjs",[[1,"feedback-button",{"buttonPosition":[1,"button-position"],"buttonStyle":[1,"button-style"],"hideIcon":[4,"hide-icon"],"hideMobile":[4,"hide-mobile"],"sessionId":[1537,"session-id"],"metadata":[1],"submit":[4],"customFont":[4,"custom-font"],"emailAddress":[1,"email-address"],"isEmailRequired":[4,"is-email-required"],"fetchData":[4,"fetch-data"],"hideEmail":[4,"hide-email"],"hidePrivacyPolicy":[4,"hide-privacy-policy"],"hideRating":[4,"hide-rating"],"hideScreenshotButton":[4,"hide-screenshot-button"],"modalPosition":[1,"modal-position"],"project":[1],"rating":[2],"ratingMode":[1,"rating-mode"],"emailPlaceholder":[1,"email-placeholder"],"errorMessage":[1,"error-message"],"errorMessage403":[1,"error-message-4-0-3"],"errorMessage404":[1,"error-message-4-0-4"],"footerText":[1,"footer-text"],"messagePlaceholder":[1,"message-placeholder"],"modalTitle":[1,"modal-title"],"modalTitleError":[1,"modal-title-error"],"modalTitleSuccess":[1,"modal-title-success"],"privacyPolicyText":[1,"privacy-policy-text"],"ratingPlaceholder":[1,"rating-placeholder"],"ratingStarsPlaceholder":[1,"rating-stars-placeholder"],"sendButtonText":[1,"send-button-text"],"successMessage":[1,"success-message"],"screenshotAttachedText":[1,"screenshot-attached-text"],"screenshotButtonText":[1,"screenshot-button-text"],"screenshotTakingText":[1,"screenshot-taking-text"],"screenshotEditTextButtonText":[1,"screenshot-edit-text-button-text"],"screenshotEditorTitle":[1,"screenshot-editor-title"],"screenshotEditorCancelText":[1,"screenshot-editor-cancel-text"],"screenshotEditorSaveText":[1,"screenshot-editor-save-text"],"screenshotSizeLabelText":[1,"screenshot-size-label-text"],"screenshotBorderLabelText":[1,"screenshot-border-label-text"],"screenshotEditTextPromptText":[1,"screenshot-edit-text-prompt-text"],"screenshotErrorGeneral":[1,"screenshot-error-general"],"screenshotErrorPermission":[1,"screenshot-error-permission"],"screenshotErrorNotSupported":[1,"screenshot-error-not-supported"],"screenshotErrorNotFound":[1,"screenshot-error-not-found"],"screenshotErrorCancelled":[1,"screenshot-error-cancelled"],"screenshotErrorBrowserNotSupported":[1,"screenshot-error-browser-not-supported"],"screenshotErrorUnexpected":[1,"screenshot-error-unexpected"]}],[1,"feedback-modal",{"customFont":[4,"custom-font"],"emailAddress":[1,"email-address"],"hideEmail":[4,"hide-email"],"isEmailRequired":[4,"is-email-required"],"ratingMode":[1,"rating-mode"],"hasSelectedElement":[1540,"has-selected-element"],"hidePrivacyPolicy":[4,"hide-privacy-policy"],"hideRating":[4,"hide-rating"],"hideScreenshotButton":[4,"hide-screenshot-button"],"project":[1],"showScreenshotMode":[1540,"show-screenshot-mode"],"showScreenshotTopBar":[1540,"show-screenshot-top-bar"],"showModal":[1540,"show-modal"],"rating":[2],"metadata":[1],"fetchData":[4,"fetch-data"],"emailPlaceholder":[1,"email-placeholder"],"errorMessage":[1,"error-message"],"errorMessage403":[1,"error-message-4-0-3"],"errorMessage404":[1,"error-message-4-0-4"],"messagePlaceholder":[1,"message-placeholder"],"footerText":[1,"footer-text"],"modalPosition":[1,"modal-position"],"modalTitle":[1,"modal-title"],"modalTitleError":[1,"modal-title-error"],"modalTitleSuccess":[1,"modal-title-success"],"privacyPolicyText":[1,"privacy-policy-text"],"ratingPlaceholder":[1,"rating-placeholder"],"ratingStarsPlaceholder":[1,"rating-stars-placeholder"],"sendButtonText":[1,"send-button-text"],"successMessage":[1,"success-message"],"screenshotEditorTitle":[1,"screenshot-editor-title"],"screenshotEditorCancelText":[1,"screenshot-editor-cancel-text"],"screenshotEditorSaveText":[1,"screenshot-editor-save-text"],"screenshotAttachedText":[1,"screenshot-attached-text"],"screenshotButtonText":[1,"screenshot-button-text"],"screenshotTakingText":[1,"screenshot-taking-text"],"screenshotEditTextButtonText":[1,"screenshot-edit-text-button-text"],"screenshotSizeLabelText":[1,"screenshot-size-label-text"],"screenshotBorderLabelText":[1,"screenshot-border-label-text"],"screenshotEditTextPromptText":[1,"screenshot-edit-text-prompt-text"],"screenshotErrorGeneral":[1,"screenshot-error-general"],"screenshotErrorPermission":[1,"screenshot-error-permission"],"screenshotErrorNotSupported":[1,"screenshot-error-not-supported"],"screenshotErrorNotFound":[1,"screenshot-error-not-found"],"screenshotErrorCancelled":[1,"screenshot-error-cancelled"],"screenshotErrorBrowserNotSupported":[1,"screenshot-error-browser-not-supported"],"screenshotErrorUnexpected":[1,"screenshot-error-unexpected"],"sending":[32],"formMessage":[32],"formEmail":[32],"formSuccess":[32],"formVerification":[32],"formError":[32],"formErrorStatus":[32],"encodedScreenshot":[32],"isPrivacyChecked":[32],"whitelabel":[32],"selectedRating":[32],"overlayVisible":[32],"isAnimating":[32],"takingScreenshot":[32],"showScreenshotError":[32],"screenshotError":[32],"showCanvasEditor":[32],"autoStartCapture":[32],"openModal":[64]}],[1,"canvas-editor",{"canvasEditorTitle":[1,"canvas-editor-title"],"canvasEditorCancelText":[1,"canvas-editor-cancel-text"],"canvasEditorSaveText":[1,"canvas-editor-save-text"],"screenshotTakingText":[1,"screenshot-taking-text"],"screenshotAttachedText":[1,"screenshot-attached-text"],"screenshotButtonText":[1,"screenshot-button-text"],"autoStartScreenshot":[4,"auto-start-screenshot"],"existingScreenshot":[1,"existing-screenshot"],"editTextButtonText":[1,"edit-text-button-text"],"sizeLabelText":[1,"size-label-text"],"borderLabelText":[1,"border-label-text"],"editTextPromptText":[1,"edit-text-prompt-text"],"screenshotErrorGeneral":[1,"screenshot-error-general"],"screenshotErrorPermission":[1,"screenshot-error-permission"],"screenshotErrorNotSupported":[1,"screenshot-error-not-supported"],"screenshotErrorNotFound":[1,"screenshot-error-not-found"],"screenshotErrorCancelled":[1,"screenshot-error-cancelled"],"screenshotErrorBrowserNotSupported":[1,"screenshot-error-browser-not-supported"],"screenshotErrorUnexpected":[1,"screenshot-error-unexpected"],"takingScreenshot":[32],"showCanvasEditor":[32],"canvasDrawingTool":[32],"canvasDrawingColor":[32],"canvasLineWidth":[32],"canvasTextSize":[32],"isDrawing":[32],"annotations":[32],"currentAnnotation":[32],"isDragging":[32],"draggedAnnotation":[32],"dragStartPos":[32],"showColorPicker":[32],"editingColorIndex":[32],"selectedAnnotation":[32],"isResizing":[32],"resizingAnnotation":[32],"resizeStartSize":[32],"resizeStartDimensions":[32],"hoveredAnnotation":[32],"resizeHandle":[32],"defaultColors":[32]}]]]], options);
18
+ });
19
+ };
20
+
21
+ exports.setNonce = index.setNonce;
22
+ exports.defineCustomElements = defineCustomElements;
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-9a8f4784.js');
6
+
7
+ /*
8
+ Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
9
+ */
10
+ const patchBrowser = () => {
11
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('pushfeedback.cjs.js', document.baseURI).href));
12
+ const opts = {};
13
+ if (importMeta !== '') {
14
+ opts.resourcesUrl = new URL('.', importMeta).href;
15
+ }
16
+ return index.promiseResolve(opts);
17
+ };
18
+
19
+ patchBrowser().then(options => {
20
+ return index.bootstrapLazy([["canvas-editor_3.cjs",[[1,"feedback-button",{"buttonPosition":[1,"button-position"],"buttonStyle":[1,"button-style"],"hideIcon":[4,"hide-icon"],"hideMobile":[4,"hide-mobile"],"sessionId":[1537,"session-id"],"metadata":[1],"submit":[4],"customFont":[4,"custom-font"],"emailAddress":[1,"email-address"],"isEmailRequired":[4,"is-email-required"],"fetchData":[4,"fetch-data"],"hideEmail":[4,"hide-email"],"hidePrivacyPolicy":[4,"hide-privacy-policy"],"hideRating":[4,"hide-rating"],"hideScreenshotButton":[4,"hide-screenshot-button"],"modalPosition":[1,"modal-position"],"project":[1],"rating":[2],"ratingMode":[1,"rating-mode"],"emailPlaceholder":[1,"email-placeholder"],"errorMessage":[1,"error-message"],"errorMessage403":[1,"error-message-4-0-3"],"errorMessage404":[1,"error-message-4-0-4"],"footerText":[1,"footer-text"],"messagePlaceholder":[1,"message-placeholder"],"modalTitle":[1,"modal-title"],"modalTitleError":[1,"modal-title-error"],"modalTitleSuccess":[1,"modal-title-success"],"privacyPolicyText":[1,"privacy-policy-text"],"ratingPlaceholder":[1,"rating-placeholder"],"ratingStarsPlaceholder":[1,"rating-stars-placeholder"],"sendButtonText":[1,"send-button-text"],"successMessage":[1,"success-message"],"screenshotAttachedText":[1,"screenshot-attached-text"],"screenshotButtonText":[1,"screenshot-button-text"],"screenshotTakingText":[1,"screenshot-taking-text"],"screenshotEditTextButtonText":[1,"screenshot-edit-text-button-text"],"screenshotEditorTitle":[1,"screenshot-editor-title"],"screenshotEditorCancelText":[1,"screenshot-editor-cancel-text"],"screenshotEditorSaveText":[1,"screenshot-editor-save-text"],"screenshotSizeLabelText":[1,"screenshot-size-label-text"],"screenshotBorderLabelText":[1,"screenshot-border-label-text"],"screenshotEditTextPromptText":[1,"screenshot-edit-text-prompt-text"],"screenshotErrorGeneral":[1,"screenshot-error-general"],"screenshotErrorPermission":[1,"screenshot-error-permission"],"screenshotErrorNotSupported":[1,"screenshot-error-not-supported"],"screenshotErrorNotFound":[1,"screenshot-error-not-found"],"screenshotErrorCancelled":[1,"screenshot-error-cancelled"],"screenshotErrorBrowserNotSupported":[1,"screenshot-error-browser-not-supported"],"screenshotErrorUnexpected":[1,"screenshot-error-unexpected"]}],[1,"feedback-modal",{"customFont":[4,"custom-font"],"emailAddress":[1,"email-address"],"hideEmail":[4,"hide-email"],"isEmailRequired":[4,"is-email-required"],"ratingMode":[1,"rating-mode"],"hasSelectedElement":[1540,"has-selected-element"],"hidePrivacyPolicy":[4,"hide-privacy-policy"],"hideRating":[4,"hide-rating"],"hideScreenshotButton":[4,"hide-screenshot-button"],"project":[1],"showScreenshotMode":[1540,"show-screenshot-mode"],"showScreenshotTopBar":[1540,"show-screenshot-top-bar"],"showModal":[1540,"show-modal"],"rating":[2],"metadata":[1],"fetchData":[4,"fetch-data"],"emailPlaceholder":[1,"email-placeholder"],"errorMessage":[1,"error-message"],"errorMessage403":[1,"error-message-4-0-3"],"errorMessage404":[1,"error-message-4-0-4"],"messagePlaceholder":[1,"message-placeholder"],"footerText":[1,"footer-text"],"modalPosition":[1,"modal-position"],"modalTitle":[1,"modal-title"],"modalTitleError":[1,"modal-title-error"],"modalTitleSuccess":[1,"modal-title-success"],"privacyPolicyText":[1,"privacy-policy-text"],"ratingPlaceholder":[1,"rating-placeholder"],"ratingStarsPlaceholder":[1,"rating-stars-placeholder"],"sendButtonText":[1,"send-button-text"],"successMessage":[1,"success-message"],"screenshotEditorTitle":[1,"screenshot-editor-title"],"screenshotEditorCancelText":[1,"screenshot-editor-cancel-text"],"screenshotEditorSaveText":[1,"screenshot-editor-save-text"],"screenshotAttachedText":[1,"screenshot-attached-text"],"screenshotButtonText":[1,"screenshot-button-text"],"screenshotTakingText":[1,"screenshot-taking-text"],"screenshotEditTextButtonText":[1,"screenshot-edit-text-button-text"],"screenshotSizeLabelText":[1,"screenshot-size-label-text"],"screenshotBorderLabelText":[1,"screenshot-border-label-text"],"screenshotEditTextPromptText":[1,"screenshot-edit-text-prompt-text"],"screenshotErrorGeneral":[1,"screenshot-error-general"],"screenshotErrorPermission":[1,"screenshot-error-permission"],"screenshotErrorNotSupported":[1,"screenshot-error-not-supported"],"screenshotErrorNotFound":[1,"screenshot-error-not-found"],"screenshotErrorCancelled":[1,"screenshot-error-cancelled"],"screenshotErrorBrowserNotSupported":[1,"screenshot-error-browser-not-supported"],"screenshotErrorUnexpected":[1,"screenshot-error-unexpected"],"sending":[32],"formMessage":[32],"formEmail":[32],"formSuccess":[32],"formVerification":[32],"formError":[32],"formErrorStatus":[32],"encodedScreenshot":[32],"isPrivacyChecked":[32],"whitelabel":[32],"selectedRating":[32],"overlayVisible":[32],"isAnimating":[32],"takingScreenshot":[32],"showScreenshotError":[32],"screenshotError":[32],"showCanvasEditor":[32],"autoStartCapture":[32],"openModal":[64]}],[1,"canvas-editor",{"canvasEditorTitle":[1,"canvas-editor-title"],"canvasEditorCancelText":[1,"canvas-editor-cancel-text"],"canvasEditorSaveText":[1,"canvas-editor-save-text"],"screenshotTakingText":[1,"screenshot-taking-text"],"screenshotAttachedText":[1,"screenshot-attached-text"],"screenshotButtonText":[1,"screenshot-button-text"],"autoStartScreenshot":[4,"auto-start-screenshot"],"existingScreenshot":[1,"existing-screenshot"],"editTextButtonText":[1,"edit-text-button-text"],"sizeLabelText":[1,"size-label-text"],"borderLabelText":[1,"border-label-text"],"editTextPromptText":[1,"edit-text-prompt-text"],"screenshotErrorGeneral":[1,"screenshot-error-general"],"screenshotErrorPermission":[1,"screenshot-error-permission"],"screenshotErrorNotSupported":[1,"screenshot-error-not-supported"],"screenshotErrorNotFound":[1,"screenshot-error-not-found"],"screenshotErrorCancelled":[1,"screenshot-error-cancelled"],"screenshotErrorBrowserNotSupported":[1,"screenshot-error-browser-not-supported"],"screenshotErrorUnexpected":[1,"screenshot-error-unexpected"],"takingScreenshot":[32],"showCanvasEditor":[32],"canvasDrawingTool":[32],"canvasDrawingColor":[32],"canvasLineWidth":[32],"canvasTextSize":[32],"isDrawing":[32],"annotations":[32],"currentAnnotation":[32],"isDragging":[32],"draggedAnnotation":[32],"dragStartPos":[32],"showColorPicker":[32],"editingColorIndex":[32],"selectedAnnotation":[32],"isResizing":[32],"resizingAnnotation":[32],"resizeStartSize":[32],"resizeStartDimensions":[32],"hoveredAnnotation":[32],"resizeHandle":[32],"defaultColors":[32]}]]]], options);
21
+ });
22
+
23
+ exports.setNonce = index.setNonce;
@@ -0,0 +1,14 @@
1
+ {
2
+ "entries": [
3
+ "./components/canvas-editor/canvas-editor.js",
4
+ "./components/feedback-button/feedback-button.js",
5
+ "./components/feedback-modal/feedback-modal.js"
6
+ ],
7
+ "compiler": {
8
+ "name": "@stencil/core",
9
+ "version": "2.22.3",
10
+ "typescriptVersion": "4.9.4"
11
+ },
12
+ "collections": [],
13
+ "bundles": []
14
+ }
@@ -0,0 +1,404 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ .canvas-editor-wrapper {
6
+ position: relative;
7
+ }
8
+
9
+ /* Canvas Editor Modal */
10
+ .canvas-editor-overlay {
11
+ position: fixed;
12
+ top: 0;
13
+ left: 0;
14
+ width: 100vw;
15
+ height: 100vh;
16
+ background: rgba(0, 0, 0, 0.8);
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ z-index: 9999;
21
+ }
22
+
23
+ .canvas-editor-modal {
24
+ width: 95vw;
25
+ max-width: 1400px;
26
+ max-height: 900px;
27
+ background: var(--feedback-canvas-editor-bg-color, #ffffff);
28
+ border-radius: 8px;
29
+ border: 1px solid var(--feedback-canvas-editor-border-color, #e0e0e0);
30
+ display: flex;
31
+ flex-direction: column;
32
+ overflow: hidden;
33
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
34
+ }
35
+
36
+ .canvas-editor-header {
37
+ background: var(--feedback-canvas-editor-header-bg-color, #f5f5f5);
38
+ border-bottom: 1px solid var(--feedback-canvas-editor-border-color, #e0e0e0);
39
+ padding: 12px 16px;
40
+ display: flex;
41
+ flex-direction: column;
42
+ gap: 12px;
43
+ }
44
+
45
+ .canvas-editor-title h3 {
46
+ margin: 0;
47
+ font-size: 16px;
48
+ font-weight: 600;
49
+ color: var(--feedback-canvas-editor-tool-text-color, #333);
50
+ }
51
+
52
+ .canvas-editor-toolbar {
53
+ display: flex;
54
+ flex-wrap: wrap;
55
+ align-items: center;
56
+ gap: 16px;
57
+ }
58
+
59
+ .toolbar-section {
60
+ display: flex;
61
+ align-items: center;
62
+ gap: 8px;
63
+ }
64
+
65
+ .tool-group {
66
+ display: flex;
67
+ align-items: center;
68
+ gap: 4px;
69
+ }
70
+
71
+ .tool-btn {
72
+ width: 36px;
73
+ height: 36px;
74
+ display: flex;
75
+ align-items: center;
76
+ justify-content: center;
77
+ background: var(--feedback-canvas-editor-tool-bg-color, #ffffff);
78
+ border: 1px solid var(--feedback-canvas-editor-border-color, #e0e0e0);
79
+ border-radius: 6px;
80
+ cursor: pointer;
81
+ transition: all 0.2s ease;
82
+ padding: 0;
83
+ }
84
+
85
+ .tool-btn svg {
86
+ width: 18px;
87
+ height: 18px;
88
+ color: var(--feedback-canvas-editor-tool-text-color, #333);
89
+ }
90
+
91
+ .tool-btn:hover:not(:disabled) {
92
+ background: var(--feedback-canvas-editor-tool-bg-hover, #f0f0f0);
93
+ }
94
+
95
+ .tool-btn.active,
96
+ .tool-btn.active:hover {
97
+ background: var(--feedback-canvas-editor-tool-bg-active, #0070f4);
98
+ color: var(--feedback-canvas-editor-tool-text-active, #ffffff);
99
+ }
100
+
101
+ .tool-btn.active svg {
102
+ color: var(--feedback-canvas-editor-tool-text-active, #ffffff);
103
+ }
104
+
105
+ .tool-btn:disabled {
106
+ opacity: 0.4;
107
+ cursor: not-allowed;
108
+ color: var(--feedback-canvas-editor-tool-text-color, #333);
109
+ }
110
+
111
+ .toolbar-divider {
112
+ width: 1px;
113
+ height: 24px;
114
+ background: var(--feedback-canvas-editor-divider-color, #e0e0e0);
115
+ margin: 0 4px;
116
+ }
117
+
118
+ .undo-btn {
119
+ background: var(--feedback-canvas-editor-tool-bg-color, #ffffff) !important;
120
+ border: 1px solid var(--feedback-canvas-editor-border-color, #e0e0e0) !important;
121
+ }
122
+
123
+ .undo-btn:hover:not(:disabled) {
124
+ background: var(--feedback-canvas-editor-tool-bg-hover, #f0f0f0) !important;
125
+ }
126
+
127
+ .color-palette {
128
+ display: flex;
129
+ align-items: center;
130
+ gap: 6px;
131
+ }
132
+
133
+ .color-slot-wrapper {
134
+ position: relative;
135
+ display: flex;
136
+ align-items: center;
137
+ }
138
+
139
+ .color-btn {
140
+ width: 32px;
141
+ height: 32px;
142
+ border-radius: 6px;
143
+ border: 2px solid transparent;
144
+ cursor: pointer;
145
+ transition: all 0.2s ease;
146
+ display: flex;
147
+ align-items: center;
148
+ justify-content: center;
149
+ background: var(--feedback-canvas-editor-tool-bg-color, #ffffff);
150
+ border: 1px solid var(--feedback-canvas-editor-border-color, #e0e0e0);
151
+ }
152
+
153
+ .color-btn:hover {
154
+ transform: scale(1.1);
155
+ }
156
+
157
+ .color-btn.active {
158
+ border-color: var(--feedback-primary-color, #0070f4);
159
+ box-shadow: 0 0 0 2px rgba(0, 112, 244, 0.2);
160
+ }
161
+
162
+ .color-btn.editing {
163
+ border-color: var(--feedback-primary-color, #0070f4);
164
+ }
165
+
166
+ .color-picker-dropdown {
167
+ position: absolute;
168
+ top: 100%;
169
+ left: 0;
170
+ z-index: 1000;
171
+ margin-top: 4px;
172
+ background: var(--feedback-canvas-editor-tool-bg-color, #ffffff);
173
+ border: 1px solid var(--feedback-canvas-editor-border-color, #e0e0e0);
174
+ border-radius: 6px;
175
+ padding: 8px;
176
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
177
+ }
178
+
179
+ .color-picker-dropdown input[type="color"] {
180
+ width: 40px;
181
+ height: 40px;
182
+ border: none;
183
+ border-radius: 4px;
184
+ cursor: pointer;
185
+ }
186
+
187
+ .size-control {
188
+ display: flex;
189
+ align-items: center;
190
+ gap: 8px;
191
+ background: var(--feedback-canvas-editor-tool-bg-color, #ffffff);
192
+ border: 1px solid var(--feedback-canvas-editor-border-color, #e0e0e0);
193
+ border-radius: 6px;
194
+ padding: 6px 12px;
195
+ }
196
+
197
+ .size-slider {
198
+ width: 80px;
199
+ height: 20px;
200
+ -webkit-appearance: none;
201
+ appearance: none;
202
+ background: transparent;
203
+ cursor: pointer;
204
+ }
205
+
206
+ .size-slider::-webkit-slider-track {
207
+ width: 100%;
208
+ height: 4px;
209
+ background: var(--feedback-canvas-editor-slider-track, #e0e0e0);
210
+ border-radius: 2px;
211
+ }
212
+
213
+ .size-slider::-webkit-slider-thumb {
214
+ -webkit-appearance: none;
215
+ appearance: none;
216
+ width: 16px;
217
+ height: 16px;
218
+ background: var(--feedback-primary-color, #0070f4);
219
+ border-radius: 50%;
220
+ cursor: pointer;
221
+ }
222
+
223
+ .size-slider::-moz-range-track {
224
+ width: 100%;
225
+ height: 4px;
226
+ background: var(--feedback-canvas-editor-slider-track, #e0e0e0);
227
+ border-radius: 2px;
228
+ border: none;
229
+ }
230
+
231
+ .size-slider::-moz-range-thumb {
232
+ width: 16px;
233
+ height: 16px;
234
+ background: var(--feedback-primary-color, #0070f4);
235
+ border-radius: 50%;
236
+ border: none;
237
+ cursor: pointer;
238
+ }
239
+
240
+ .size-slider::-ms-track {
241
+ width: 100%;
242
+ height: 4px;
243
+ background: var(--feedback-canvas-editor-slider-track, #e0e0e0);
244
+ border-radius: 2px;
245
+ border: none;
246
+ color: transparent;
247
+ }
248
+
249
+ .size-slider::-ms-thumb {
250
+ width: 16px;
251
+ height: 16px;
252
+ background: var(--feedback-primary-color, #0070f4);
253
+ border-radius: 50%;
254
+ border: none;
255
+ cursor: pointer;
256
+ }
257
+
258
+ .size-value {
259
+ font-weight: 500;
260
+ color: var(--feedback-canvas-editor-tool-text-color, #333);
261
+ font-size: 12px;
262
+ min-width: 30px;
263
+ }
264
+
265
+ /* Selected annotation controls */
266
+ .selected-annotation-controls {
267
+ border-left: 2px solid var(--feedback-canvas-editor-divider-color, #e0e0e0);
268
+ padding-left: 12px;
269
+ margin-left: 8px;
270
+ min-width: 200px;
271
+ }
272
+
273
+ /* Text controls */
274
+ .text-controls {
275
+ display: flex;
276
+ flex-direction: row;
277
+ align-items: center;
278
+ gap: 12px;
279
+ }
280
+
281
+ .font-size-control,
282
+ .border-width-control {
283
+ display: flex;
284
+ align-items: center;
285
+ gap: 6px;
286
+ }
287
+
288
+ .font-size-control label,
289
+ .border-width-control label {
290
+ font-size: 12px;
291
+ color: var(--feedback-canvas-editor-tool-text-color, #333);
292
+ font-weight: 500;
293
+ min-width: 35px;
294
+ }
295
+
296
+ .action-btn {
297
+ display: flex;
298
+ align-items: center;
299
+ gap: 6px;
300
+ padding: 5px 12px;
301
+ border: 1px solid var(--feedback-canvas-editor-border-color, #e0e0e0);
302
+ border-radius: 6px;
303
+ cursor: pointer;
304
+ font-size: 12px;
305
+ font-weight: 500;
306
+ transition: all 0.2s ease;
307
+ min-width: 65px;
308
+ justify-content: center;
309
+ height: 36px;
310
+ }
311
+
312
+ .action-btn.secondary {
313
+ background: var(--feedback-canvas-editor-tool-bg-color, #ffffff);
314
+ color: var(--feedback-canvas-editor-tool-text-color, #333);
315
+ border-color: var(--feedback-canvas-editor-border-color, #e0e0e0);
316
+ }
317
+
318
+ .action-btn.secondary:hover {
319
+ background: var(--feedback-canvas-editor-tool-bg-hover, #f0f0f0);
320
+ }
321
+
322
+ .action-btn.primary {
323
+ background: var(--feedback-primary-color, #0070f4);
324
+ color: #ffffff;
325
+ border-color: var(--feedback-primary-color, #0070f4);
326
+ }
327
+
328
+ .action-btn.primary:hover {
329
+ background: #0056cc;
330
+ border-color: #0056cc;
331
+ }
332
+
333
+ .action-btn.small {
334
+ height: 28px;
335
+ padding: 4px 8px;
336
+ font-size: 12px;
337
+ min-width: 65px;
338
+ }
339
+
340
+ /* Shape controls */
341
+ .shape-controls {
342
+ display: flex;
343
+ flex-direction: column;
344
+ gap: 8px;
345
+ }
346
+
347
+ .canvas-editor-content {
348
+ flex: 1;
349
+ display: flex;
350
+ align-items: center;
351
+ justify-content: center;
352
+ padding: 16px;
353
+ background: var(--feedback-canvas-editor-content-bg, #f5f5f5);
354
+ overflow: hidden;
355
+ min-height: 0;
356
+ min-width: 0;
357
+ }
358
+
359
+ .annotation-canvas {
360
+ max-width: 100%;
361
+ max-height: 100%;
362
+ width: auto;
363
+ height: auto;
364
+ cursor: crosshair;
365
+ border-radius: 6px;
366
+ box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, .30), 0px 2px 6px 2px rgba(60, 64, 67, .15);
367
+ background: #ffffff;
368
+ transition: box-shadow 0.3s ease;
369
+ object-fit: contain;
370
+ display: block;
371
+ }
372
+
373
+ .annotation-canvas:hover {
374
+ box-shadow: 0px 2px 4px 0px rgba(60, 64, 67, .35), 0px 4px 12px 4px rgba(60, 64, 67, .20);
375
+ }
376
+
377
+ /* Responsive Design */
378
+ @media screen and (max-width: 768px) {
379
+ .canvas-editor-modal {
380
+ width: 100vw;
381
+ height: 100vh;
382
+ border-radius: 0;
383
+ }
384
+
385
+ .canvas-editor-toolbar {
386
+ flex-direction: column;
387
+ align-items: stretch;
388
+ gap: 8px;
389
+ }
390
+
391
+ .toolbar-section {
392
+ justify-content: center;
393
+ }
394
+
395
+ .selected-annotation-controls {
396
+ border-left: none;
397
+ border-top: 2px solid var(--feedback-canvas-editor-divider-color, #e0e0e0);
398
+ padding-left: 0;
399
+ padding-top: 8px;
400
+ margin-left: 0;
401
+ margin-top: 8px;
402
+ min-width: auto;
403
+ }
404
+ }