pushfeedback 0.1.66 → 0.1.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- :root{--feedback-primary-color:#0070F4;--feedback-secondary-color:#f1f3f4;--feedback-light-color:#ccc;--feedback-dark-color:#191919;--feedback-text-color:#5f6368;--feedback-white-color:#fff;--feedback-highlight-color:#ffb422;--feedback-font-family:"Inter", "Tahoma", "sans-serif";--feedback-heading-font-size:16px;--feedback-text-font-size:14px;--feedback-button-border-radius:20px;--feedback-button-dark-bg-color:var(--feedback-primary-color);--feedback-button-dark-text-color:var(--feedback-white-color);--feedback-button-dark-icon-color:var(--feedback-white-color);--feedback-button-light-bg-color:var(--feedback-white-color);--feedback-button-light-text-color:var(--feedback-primary-color);--feedback-button-light-icon-color:var(--feedback-primary-color);--feedback-button-text-font-size:var(--feedback-text-font-size);--feedback-button-text-font-weight:600;--feedback-button-z-index:300;--feedback-modal-button-bg-color:var(--feedback-white-color);--feedback-modal-button-bg-color-active:var(--feedback-white-color);--feedback-modal-button-border-color:var(--feedback-light-color);--feedback-modal-button-border-color-active:var(--feedback-primary-color);--feedback-modal-button-border-radius:4px;--feedback-modal-button-font-size:var(--feedback-text-font-size);--feedback-modal-button-icon-color:var(--feedback-dark-color);--feedback-modal-button-icon-color-active:var(--feedback-primary-color);--feedback-modal-button-submit-bg-color:var(--feedback-primary-color);--feedback-modal-button-submit-bg-color-hover:var(--feedback-primary-color);--feedback-modal-button-submit-border-color-hover:var(--feedback-primary-color);--feedback-modal-button-submit-text-color:var(--feedback-white-color);--feedback-modal-button-submit-text-color-hover:var(--feedback-white-color);--feedback-modal-button-text-color:var(--feedback-dark-color);--feedback-modal-button-text-color-active:var(--feedback-primary-color);--feedback-modal-close-bg-color:var(--feedback-white-color);--feedback-modal-close-color:var(--feedback-dark-color);--feedback-modal-content-bg-color:var(--feedback-white-color);--feedback-modal-content-border-color:var(--feedback-light-color);--feedback-modal-content-border-radius:8px;--feedback-modal-content-font-family:var(--feedback-font-family);--feedback-modal-content-position-bottom:10px;--feedback-modal-content-position-left:10px;--feedback-modal-content-position-right:10px;--feedback-modal-content-position-top:10px;--feedback-modal-content-max-width:600px;--feedback-modal-content-sidebar-max-width:300px;--feedback-modal-content-text-color:var(--feedback-text-color);--feedback-modal-content-z-index:300;--feedback-modal-element-hover-border-color:var(--feedback-primary-color);--feedback-modal-element-selected-border-color:var(--feedback-primary-color);--feedback-modal-footer-link:var(--feedback-dark-color);--feedback-modal-header-font-family:var(--feedback-font-family);--feedback-modal-header-font-size:var(--feedback-heading-font-size);--feedback-modal-header-font-weight:500;--feedback-modal-header-text-color:var(--feedback-dark-color);--feedback-modal-input-bg-color:var(--feedback-secondary-color);--feedback-modal-input-border-color:transparent;--feedback-modal-input-border-color-focused:transparent;--feedback-modal-input-border-radius:4px;--feedback-modal-input-font-size:var(--feedback-text-font-size);--feedback-modal-input-text-color:var(--feedback-text-color);--feedback-modal-message-font-size:var(--feedback-text-font-size);--feedback-modal-modal-wrapper-z-index:300;--feedback-modal-rating-button-color:var(--feedback-text-color);--feedback-modal-rating-button-selected-color:var(--feedback-primary-color);--feedback-modal-rating-button-stars-selected-color:var(--feedback-highlight-color);--feedback-modal-screenshot-bg-color:rgba(0, 0, 0, 0.4);--feedback-modal-screenshot-close-color:var(--feedback-dark-color);--feedback-modal-screenshot-header-bg-color:var(--feedback-white-color);--feedback-modal-screenshot-header-text-color:var(--feedback-dark-color);--feedback-modal-screenshot-header-z-index:250;--feedback-modal-screnshot-z-index:100}[data-theme='dark']{--feedback-text-color:#b0b8c4;--feedback-light-color:#363636;--feedback-modal-button-bg-color-active:transparent;--feedback-modal-button-icon-color:var(--feedback-white-color);--feedback-modal-button-text-color:var(--feedback-white-color);--feedback-modal-close-bg-color:transparent;--feedback-modal-close-color:var(--feedback-white-color);--feedback-modal-content-bg-color:var(--feedback-dark-color);--feedback-modal-content-text-color:var(--feedback-text-color);--feedback-modal-footer-link:var(--feedback-white-color);--feedback-modal-header-text-color:var(--feedback-white-color);--feedback-modal-input-bg-color:var(--feedback-light-color);--feedback-modal-input-text-color:var(--feedback-white-color);--feedback-modal-rating-button-color:var(--feedback-white-color);--feedback-modal-screenshot-close-color:var(--feedback-white-color);--feedback-modal-screenshot-header-bg-color:var(--feedback-dark-color);--feedback-modal-screenshot-header-text-color:var(--feedback-white-color)}.feedback-modal-screenshot-open{position:fixed;width:100%}.feedback-modal-screenshot-open--scroll{overflow-y:scroll}
1
+ :root{--feedback-primary-color:#0070F4;--feedback-secondary-color:#f1f3f4;--feedback-light-color:#ccc;--feedback-dark-color:#191919;--feedback-text-color:#5f6368;--feedback-white-color:#fff;--feedback-highlight-color:#ffb422;--feedback-font-family:"Inter", "Tahoma", "sans-serif";--feedback-heading-font-size:16px;--feedback-text-font-size:14px;--feedback-button-border-radius:20px;--feedback-button-dark-bg-color:var(--feedback-primary-color);--feedback-button-dark-text-color:var(--feedback-white-color);--feedback-button-dark-icon-color:var(--feedback-white-color);--feedback-button-light-bg-color:var(--feedback-white-color);--feedback-button-light-text-color:var(--feedback-primary-color);--feedback-button-light-icon-color:var(--feedback-primary-color);--feedback-button-text-font-size:var(--feedback-text-font-size);--feedback-button-text-font-weight:600;--feedback-button-z-index:300;--feedback-modal-button-bg-color:var(--feedback-white-color);--feedback-modal-button-bg-color-active:var(--feedback-white-color);--feedback-modal-button-border-color:var(--feedback-light-color);--feedback-modal-button-border-color-active:var(--feedback-primary-color);--feedback-modal-button-border-radius:4px;--feedback-modal-button-font-size:var(--feedback-text-font-size);--feedback-modal-button-icon-color:var(--feedback-dark-color);--feedback-modal-button-icon-color-active:var(--feedback-primary-color);--feedback-modal-button-submit-bg-color:var(--feedback-primary-color);--feedback-modal-button-submit-bg-color-hover:var(--feedback-primary-color);--feedback-modal-button-submit-border-color-hover:var(--feedback-primary-color);--feedback-modal-button-submit-text-color:var(--feedback-white-color);--feedback-modal-button-submit-text-color-hover:var(--feedback-white-color);--feedback-modal-button-text-color:var(--feedback-dark-color);--feedback-modal-button-text-color-active:var(--feedback-primary-color);--feedback-modal-close-bg-color:var(--feedback-white-color);--feedback-modal-close-color:var(--feedback-dark-color);--feedback-modal-content-bg-color:var(--feedback-white-color);--feedback-modal-content-border-color:var(--feedback-light-color);--feedback-modal-content-border-radius:8px;--feedback-modal-content-font-family:var(--feedback-font-family);--feedback-modal-content-position-bottom:10px;--feedback-modal-content-position-left:10px;--feedback-modal-content-position-right:10px;--feedback-modal-content-position-top:10px;--feedback-modal-content-max-width:600px;--feedback-modal-content-sidebar-max-width:300px;--feedback-modal-content-text-color:var(--feedback-text-color);--feedback-modal-content-z-index:300;--feedback-modal-element-hover-border-color:var(--feedback-primary-color);--feedback-modal-element-selected-border-color:var(--feedback-primary-color);--feedback-modal-footer-link:var(--feedback-dark-color);--feedback-modal-header-font-family:var(--feedback-font-family);--feedback-modal-header-font-size:var(--feedback-heading-font-size);--feedback-modal-header-font-weight:500;--feedback-modal-header-text-color:var(--feedback-dark-color);--feedback-modal-input-bg-color:var(--feedback-secondary-color);--feedback-modal-input-border-color:transparent;--feedback-modal-input-border-color-focused:transparent;--feedback-modal-input-border-radius:4px;--feedback-modal-input-font-size:var(--feedback-text-font-size);--feedback-modal-input-text-color:var(--feedback-text-color);--feedback-modal-message-font-size:var(--feedback-text-font-size);--feedback-modal-modal-wrapper-z-index:300;--feedback-modal-rating-button-color:var(--feedback-text-color);--feedback-modal-rating-button-selected-color:var(--feedback-primary-color);--feedback-modal-rating-button-stars-selected-color:var(--feedback-highlight-color);--feedback-modal-screenshot-bg-color:rgba(0, 0, 0, 0.4);--feedback-modal-screenshot-close-color:var(--feedback-dark-color);--feedback-modal-screenshot-header-bg-color:var(--feedback-white-color);--feedback-modal-screenshot-header-text-color:var(--feedback-dark-color);--feedback-modal-screenshot-header-z-index:250;--feedback-modal-screnshot-z-index:100;--feedback-canvas-editor-bg-color:var(--feedback-white-color);--feedback-canvas-editor-border-color:var(--feedback-light-color);--feedback-canvas-editor-header-bg-color:var(--feedback-secondary-color);--feedback-canvas-editor-tool-bg-color:var(--feedback-white-color);--feedback-canvas-editor-tool-bg-hover:var(--feedback-secondary-color);--feedback-canvas-editor-tool-bg-active:var(--feedback-primary-color);--feedback-canvas-editor-tool-text-color:var(--feedback-text-color);--feedback-canvas-editor-tool-text-active:var(--feedback-white-color);--feedback-canvas-editor-action-primary-bg:var(--feedback-primary-color);--feedback-canvas-editor-action-primary-text:var(--feedback-white-color);--feedback-canvas-editor-action-secondary-bg:var(--feedback-white-color);--feedback-canvas-editor-action-secondary-text:var(--feedback-text-color);--feedback-canvas-editor-action-secondary-border:var(--feedback-light-color);--feedback-canvas-editor-divider-color:var(--feedback-light-color);--feedback-canvas-editor-content-bg:var(--feedback-secondary-color);--feedback-canvas-editor-resize-handle-color:var(--feedback-primary-color);--feedback-canvas-editor-slider-track:var(--feedback-light-color)}[data-theme='dark']{--feedback-text-color:#b0b8c4;--feedback-light-color:#363636;--feedback-modal-button-bg-color-active:transparent;--feedback-modal-button-icon-color:var(--feedback-white-color);--feedback-modal-button-text-color:var(--feedback-white-color);--feedback-modal-close-bg-color:transparent;--feedback-modal-close-color:var(--feedback-white-color);--feedback-modal-content-bg-color:var(--feedback-dark-color);--feedback-modal-content-text-color:var(--feedback-text-color);--feedback-modal-footer-link:var(--feedback-white-color);--feedback-modal-header-text-color:var(--feedback-white-color);--feedback-modal-input-bg-color:var(--feedback-light-color);--feedback-modal-input-text-color:var(--feedback-white-color);--feedback-modal-rating-button-color:var(--feedback-white-color);--feedback-modal-screenshot-close-color:var(--feedback-white-color);--feedback-modal-screenshot-header-bg-color:var(--feedback-dark-color);--feedback-modal-screenshot-header-text-color:var(--feedback-white-color);--feedback-canvas-editor-bg-color:var(--feedback-dark-color);--feedback-canvas-editor-border-color:var(--feedback-light-color);--feedback-canvas-editor-header-bg-color:var(--feedback-light-color);--feedback-canvas-editor-tool-bg-color:var(--feedback-light-color);--feedback-canvas-editor-tool-bg-hover:#4a4a4a;--feedback-canvas-editor-tool-text-color:var(--feedback-white-color);--feedback-canvas-editor-action-secondary-bg:var(--feedback-light-color);--feedback-canvas-editor-action-secondary-text:var(--feedback-white-color);--feedback-canvas-editor-action-secondary-border:var(--feedback-light-color);--feedback-canvas-editor-content-bg:var(--feedback-light-color);--feedback-canvas-editor-divider-color:#4a4a4a;--feedback-canvas-editor-slider-track:#4a4a4a}.feedback-modal-screenshot-open{position:fixed;width:100%}.feedback-modal-screenshot-open--scroll{overflow-y:scroll}
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-af2a1f7f.js";export{s as setNonce}from"./p-af2a1f7f.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-e6c2f829",[[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"],screenshotAttachedText:[1,"screenshot-attached-text"],screenshotButtonText:[1,"screenshot-button-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],sendButtonText:[1,"send-button-text"],successMessage:[1,"success-message"]}],[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"],screenshotButtonText:[1,"screenshot-button-text"],screenshotAttachedText:[1,"screenshot-attached-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],successMessage:[1,"success-message"],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],openModal:[64]}]]]],e)));
1
+ import{p as e,b as t}from"./p-af2a1f7f.js";export{s as setNonce}from"./p-af2a1f7f.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-7406f7be",[[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"],canvasEditorTitle:[1,"canvas-editor-title"],canvasEditorCancelText:[1,"canvas-editor-cancel-text"],canvasEditorSaveText:[1,"canvas-editor-save-text"],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"],screenshotAttachedText:[1,"screenshot-attached-text"],screenshotButtonText:[1,"screenshot-button-text"],screenshotTakingText:[1,"screenshot-taking-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],sendButtonText:[1,"send-button-text"],successMessage:[1,"success-message"]}],[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"],screenshotAttachedText:[1,"screenshot-attached-text"],screenshotButtonText:[1,"screenshot-button-text"],screenshotTakingText:[1,"screenshot-taking-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],successMessage:[1,"success-message"],canvasEditorTitle:[1,"canvas-editor-title"],canvasEditorCancelText:[1,"canvas-editor-cancel-text"],canvasEditorSaveText:[1,"canvas-editor-save-text"],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],showPreviewModal:[32],showCanvasEditor:[32],canvasDrawingTool:[32],canvasDrawingColor:[32],canvasLineWidth:[32],isDrawing:[32],annotations:[32],currentAnnotation:[32],isDragging:[32],draggedAnnotation:[32],dragStartPos:[32],showColorPicker:[32],editingColorIndex:[32],isResizing:[32],resizingAnnotation:[32],resizeStartSize:[32],hoveredAnnotation:[32],resizeHandle:[32],defaultColors:[32],openModal:[64]}]]]],e)));
@@ -21,6 +21,9 @@ export declare class FeedbackButton {
21
21
  project: string;
22
22
  rating: number;
23
23
  ratingMode: string;
24
+ canvasEditorTitle: string;
25
+ canvasEditorCancelText: string;
26
+ canvasEditorSaveText: string;
24
27
  emailPlaceholder: string;
25
28
  errorMessage: string;
26
29
  errorMessage403: string;
@@ -35,6 +38,7 @@ export declare class FeedbackButton {
35
38
  ratingStarsPlaceholder: string;
36
39
  screenshotAttachedText: string;
37
40
  screenshotButtonText: string;
41
+ screenshotTakingText: string;
38
42
  screenshotTopbarText: string;
39
43
  sendButtonText: string;
40
44
  successMessage: string;
@@ -14,6 +14,29 @@ export declare class FeedbackModal {
14
14
  selectedRating: number;
15
15
  overlayVisible: boolean;
16
16
  isAnimating: boolean;
17
+ takingScreenshot: boolean;
18
+ showPreviewModal: boolean;
19
+ showCanvasEditor: boolean;
20
+ canvasDrawingTool: 'rectangle' | 'line' | 'arrow' | 'text';
21
+ canvasDrawingColor: string;
22
+ canvasLineWidth: number;
23
+ isDrawing: boolean;
24
+ annotations: any[];
25
+ currentAnnotation: any;
26
+ isDragging: boolean;
27
+ draggedAnnotation: any;
28
+ dragStartPos: {
29
+ x: number;
30
+ y: number;
31
+ };
32
+ showColorPicker: boolean;
33
+ editingColorIndex: number;
34
+ isResizing: boolean;
35
+ resizingAnnotation: any;
36
+ resizeStartSize: number;
37
+ hoveredAnnotation: any;
38
+ resizeHandle: string | boolean;
39
+ defaultColors: string[];
17
40
  customFont: boolean;
18
41
  emailAddress: string;
19
42
  hideEmail: boolean;
@@ -44,10 +67,14 @@ export declare class FeedbackModal {
44
67
  ratingPlaceholder: string;
45
68
  ratingStarsPlaceholder: string;
46
69
  sendButtonText: string;
47
- screenshotButtonText: string;
48
70
  screenshotAttachedText: string;
71
+ screenshotButtonText: string;
72
+ screenshotTakingText: string;
49
73
  screenshotTopbarText: string;
50
74
  successMessage: string;
75
+ canvasEditorTitle: string;
76
+ canvasEditorCancelText: string;
77
+ canvasEditorSaveText: string;
51
78
  feedbackSent: EventEmitter<{
52
79
  feedback: any;
53
80
  }>;
@@ -55,14 +82,9 @@ export declare class FeedbackModal {
55
82
  error: any;
56
83
  }>;
57
84
  modalContent: HTMLElement;
58
- screenshotModal: HTMLElement;
59
- elementSelected: HTMLElement;
60
- topSide: HTMLElement;
61
- leftSide: HTMLElement;
62
- bottomSide: HTMLElement;
63
- rightSide: HTMLElement;
64
- selectedElementBounds: DOMRect;
65
- originalElement: HTMLElement;
85
+ canvasRef: HTMLCanvasElement;
86
+ canvasContext: CanvasRenderingContext2D;
87
+ originalImageData: string;
66
88
  componentWillLoad(): void;
67
89
  fetchProjectData(): Promise<void>;
68
90
  onScrollDebounced: () => void;
@@ -71,14 +93,57 @@ export declare class FeedbackModal {
71
93
  handleEmailInput(event: Event): void;
72
94
  handleSubmit: (event: Event) => Promise<void>;
73
95
  close: () => void;
74
- openScreenShot: () => void;
75
- closeScreenShot: () => void;
76
- handleMouseOverScreenShot: (event: any) => void;
77
- captureScreenshot(): Promise<unknown>;
78
- handleMouseClickedSelectedElement: (event: any) => Promise<void>;
96
+ openScreenShot: () => Promise<void>;
97
+ captureViewportScreenshot(): Promise<unknown>;
98
+ openCanvasEditor: (event?: Event) => void;
99
+ closeCanvasEditor: () => void;
100
+ saveAnnotations: () => void;
101
+ initializeCanvas: () => void;
102
+ redrawAnnotations: () => void;
103
+ drawAnnotation: (annotation: any) => void;
104
+ drawTextResizeHandle: (annotation: any) => void;
105
+ drawArrow: (fromX: number, fromY: number, toX: number, toY: number) => void;
79
106
  handleCheckboxChange(event: any): void;
80
107
  handleVerification(event: Event): void;
81
108
  handleRatingChange(newRating: number): void;
109
+ undoLastAnnotation: () => void;
110
+ handleColorSlotClick: (colorIndex: number) => void;
111
+ updateColorSlot: (newColor: string) => void;
112
+ handleColorPickerInput: (event: Event) => void;
113
+ handleColorPickerClick: (event: Event) => void;
114
+ closeColorPicker: () => void;
115
+ isPointInResizeHandle: (x: number, y: number, annotation: any) => string | boolean;
116
+ getTextWidth: (text: string, fontSize: number) => number;
117
+ startTextResize: (annotation: any, startPos: {
118
+ x: number;
119
+ y: number;
120
+ }) => void;
121
+ handleTextResize: (currentPos: {
122
+ x: number;
123
+ y: number;
124
+ }) => void;
125
+ startResize: (annotation: any, handle: string | boolean, startPos: {
126
+ x: number;
127
+ y: number;
128
+ }) => void;
129
+ handleCanvasMouseDown: (event: MouseEvent) => void;
130
+ handleCanvasMouseMove: (event: MouseEvent) => void;
131
+ handleCanvasMouseUp: () => void;
132
+ drawRectangleResizeHandles: (annotation: any) => void;
133
+ drawLineResizeHandles: (annotation: any) => void;
134
+ getCanvasCoordinates: (event: MouseEvent) => {
135
+ x: number;
136
+ y: number;
137
+ };
138
+ findAnnotationAt: (x: number, y: number) => {
139
+ annotation: any;
140
+ index: number;
141
+ };
142
+ isPointInAnnotation: (x: number, y: number, annotation: any) => boolean;
143
+ handleResize: (currentPos: {
144
+ x: number;
145
+ y: number;
146
+ }) => void;
82
147
  render(): any;
83
148
  componentDidRender(): void;
84
149
  openModal(): Promise<void>;
@@ -9,6 +9,9 @@ export namespace Components {
9
9
  interface FeedbackButton {
10
10
  "buttonPosition": string;
11
11
  "buttonStyle": string;
12
+ "canvasEditorCancelText": string;
13
+ "canvasEditorSaveText": string;
14
+ "canvasEditorTitle": string;
12
15
  "customFont": boolean;
13
16
  "emailAddress": string;
14
17
  "emailPlaceholder": string;
@@ -38,6 +41,7 @@ export namespace Components {
38
41
  "ratingStarsPlaceholder": string;
39
42
  "screenshotAttachedText": string;
40
43
  "screenshotButtonText": string;
44
+ "screenshotTakingText": string;
41
45
  "screenshotTopbarText": string;
42
46
  "sendButtonText": string;
43
47
  "sessionId": string;
@@ -45,6 +49,9 @@ export namespace Components {
45
49
  "successMessage": string;
46
50
  }
47
51
  interface FeedbackModal {
52
+ "canvasEditorCancelText": string;
53
+ "canvasEditorSaveText": string;
54
+ "canvasEditorTitle": string;
48
55
  "customFont": boolean;
49
56
  "emailAddress": string;
50
57
  "emailPlaceholder": string;
@@ -74,6 +81,7 @@ export namespace Components {
74
81
  "ratingStarsPlaceholder": string;
75
82
  "screenshotAttachedText": string;
76
83
  "screenshotButtonText": string;
84
+ "screenshotTakingText": string;
77
85
  "screenshotTopbarText": string;
78
86
  "sendButtonText": string;
79
87
  "showModal": boolean;
@@ -112,6 +120,9 @@ declare namespace LocalJSX {
112
120
  interface FeedbackButton {
113
121
  "buttonPosition"?: string;
114
122
  "buttonStyle"?: string;
123
+ "canvasEditorCancelText"?: string;
124
+ "canvasEditorSaveText"?: string;
125
+ "canvasEditorTitle"?: string;
115
126
  "customFont"?: boolean;
116
127
  "emailAddress"?: string;
117
128
  "emailPlaceholder"?: string;
@@ -143,6 +154,7 @@ declare namespace LocalJSX {
143
154
  "ratingStarsPlaceholder"?: string;
144
155
  "screenshotAttachedText"?: string;
145
156
  "screenshotButtonText"?: string;
157
+ "screenshotTakingText"?: string;
146
158
  "screenshotTopbarText"?: string;
147
159
  "sendButtonText"?: string;
148
160
  "sessionId"?: string;
@@ -150,6 +162,9 @@ declare namespace LocalJSX {
150
162
  "successMessage"?: string;
151
163
  }
152
164
  interface FeedbackModal {
165
+ "canvasEditorCancelText"?: string;
166
+ "canvasEditorSaveText"?: string;
167
+ "canvasEditorTitle"?: string;
153
168
  "customFont"?: boolean;
154
169
  "emailAddress"?: string;
155
170
  "emailPlaceholder"?: string;
@@ -180,6 +195,7 @@ declare namespace LocalJSX {
180
195
  "ratingStarsPlaceholder"?: string;
181
196
  "screenshotAttachedText"?: string;
182
197
  "screenshotButtonText"?: string;
198
+ "screenshotTakingText"?: string;
183
199
  "screenshotTopbarText"?: string;
184
200
  "sendButtonText"?: string;
185
201
  "showModal"?: boolean;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "pushfeedback",
3
3
  "author": "TechDocs Studio <info@techdocs.studio>",
4
4
  "homepage": "https://pushfeedback.com/",
5
- "version": "0.1.66",
5
+ "version": "0.1.68",
6
6
  "description": "Feedback widget for websites.",
7
7
  "main": "dist/index.cjs.js",
8
8
  "module": "dist/index.js",