pushfeedback 0.1.69 → 0.1.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/components/canvas-editor.d.ts +11 -0
  2. package/dist/components/index.d.ts +1 -0
  3. package/dist/pushfeedback/app-globals-0f993ce5.js +3 -0
  4. package/dist/pushfeedback/canvas-editor.entry.js +860 -0
  5. package/dist/pushfeedback/css-shim-b7d3d95f.js +4 -0
  6. package/dist/pushfeedback/dom-64053c71.js +73 -0
  7. package/dist/{components/feedback-button.js → pushfeedback/feedback-button.entry.js} +30 -73
  8. package/dist/pushfeedback/feedback-modal.entry.js +295 -0
  9. package/dist/pushfeedback/index-36434da0.js +3371 -0
  10. package/dist/pushfeedback/index.esm.js +1 -0
  11. package/dist/pushfeedback/pushfeedback.css +146 -1
  12. package/dist/pushfeedback/pushfeedback.esm.js +148 -1
  13. package/dist/pushfeedback/shadow-css-98135883.js +387 -0
  14. package/dist/types/components/canvas-editor/canvas-editor.d.ts +108 -0
  15. package/dist/types/components/feedback-button/feedback-button.d.ts +11 -0
  16. package/dist/types/components/feedback-modal/feedback-modal.d.ts +22 -79
  17. package/dist/types/components.d.ts +102 -0
  18. package/package.json +3 -4
  19. package/dist/cjs/feedback-button_2.cjs.entry.js +0 -1202
  20. package/dist/cjs/index-9a8f4784.js +0 -1584
  21. package/dist/cjs/index.cjs.js +0 -2
  22. package/dist/cjs/loader.cjs.js +0 -22
  23. package/dist/cjs/pushfeedback.cjs.js +0 -23
  24. package/dist/collection/collection-manifest.json +0 -13
  25. package/dist/collection/components/feedback-button/feedback-button.css +0 -81
  26. package/dist/collection/components/feedback-button/feedback-button.js +0 -949
  27. package/dist/collection/components/feedback-modal/feedback-modal.css +0 -1003
  28. package/dist/collection/components/feedback-modal/feedback-modal.js +0 -1792
  29. package/dist/collection/index.js +0 -1
  30. package/dist/components/feedback-modal.js +0 -6
  31. package/dist/components/feedback-modal2.js +0 -1101
  32. package/dist/components/index.js +0 -3
  33. package/dist/esm/feedback-button_2.entry.js +0 -1197
  34. package/dist/esm/index-f65e9124.js +0 -1555
  35. package/dist/esm/index.js +0 -1
  36. package/dist/esm/loader.js +0 -18
  37. package/dist/esm/polyfills/core-js.js +0 -11
  38. package/dist/esm/polyfills/css-shim.js +0 -1
  39. package/dist/esm/polyfills/dom.js +0 -79
  40. package/dist/esm/polyfills/es5-html-element.js +0 -1
  41. package/dist/esm/polyfills/index.js +0 -34
  42. package/dist/esm/polyfills/system.js +0 -6
  43. package/dist/esm/pushfeedback.js +0 -18
  44. package/dist/index.cjs.js +0 -1
  45. package/dist/index.js +0 -1
  46. package/dist/pushfeedback/p-af2a1f7f.js +0 -2
  47. package/dist/pushfeedback/p-e7f48090.entry.js +0 -1
@@ -6,13 +6,37 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  export namespace Components {
9
+ interface CanvasEditor {
10
+ "autoStartScreenshot": boolean;
11
+ "borderLabelText": string;
12
+ "canvasEditorCancelText": string;
13
+ "canvasEditorSaveText": string;
14
+ "canvasEditorTitle": string;
15
+ "editTextButtonText": string;
16
+ "editTextPromptText": string;
17
+ "existingScreenshot": string;
18
+ "screenshotAttachedText": string;
19
+ "screenshotButtonText": string;
20
+ "screenshotErrorBrowserNotSupported": string;
21
+ "screenshotErrorCancelled": string;
22
+ "screenshotErrorGeneral": string;
23
+ "screenshotErrorNotFound": string;
24
+ "screenshotErrorNotSupported": string;
25
+ "screenshotErrorPermission": string;
26
+ "screenshotErrorUnexpected": string;
27
+ "screenshotTakingText": string;
28
+ "sizeLabelText": string;
29
+ }
9
30
  interface FeedbackButton {
31
+ "borderLabelText": string;
10
32
  "buttonPosition": string;
11
33
  "buttonStyle": string;
12
34
  "canvasEditorCancelText": string;
13
35
  "canvasEditorSaveText": string;
14
36
  "canvasEditorTitle": string;
15
37
  "customFont": boolean;
38
+ "editTextButtonText": string;
39
+ "editTextPromptText": string;
16
40
  "emailAddress": string;
17
41
  "emailPlaceholder": string;
18
42
  "errorMessage": string;
@@ -41,18 +65,29 @@ export namespace Components {
41
65
  "ratingStarsPlaceholder": string;
42
66
  "screenshotAttachedText": string;
43
67
  "screenshotButtonText": string;
68
+ "screenshotErrorBrowserNotSupported": string;
69
+ "screenshotErrorCancelled": string;
70
+ "screenshotErrorGeneral": string;
71
+ "screenshotErrorNotFound": string;
72
+ "screenshotErrorNotSupported": string;
73
+ "screenshotErrorPermission": string;
74
+ "screenshotErrorUnexpected": string;
44
75
  "screenshotTakingText": string;
45
76
  "screenshotTopbarText": string;
46
77
  "sendButtonText": string;
47
78
  "sessionId": string;
79
+ "sizeLabelText": string;
48
80
  "submit": boolean;
49
81
  "successMessage": string;
50
82
  }
51
83
  interface FeedbackModal {
84
+ "borderLabelText": string;
52
85
  "canvasEditorCancelText": string;
53
86
  "canvasEditorSaveText": string;
54
87
  "canvasEditorTitle": string;
55
88
  "customFont": boolean;
89
+ "editTextButtonText": string;
90
+ "editTextPromptText": string;
56
91
  "emailAddress": string;
57
92
  "emailPlaceholder": string;
58
93
  "errorMessage": string;
@@ -81,15 +116,27 @@ export namespace Components {
81
116
  "ratingStarsPlaceholder": string;
82
117
  "screenshotAttachedText": string;
83
118
  "screenshotButtonText": string;
119
+ "screenshotErrorBrowserNotSupported": string;
120
+ "screenshotErrorCancelled": string;
121
+ "screenshotErrorGeneral": string;
122
+ "screenshotErrorNotFound": string;
123
+ "screenshotErrorNotSupported": string;
124
+ "screenshotErrorPermission": string;
125
+ "screenshotErrorUnexpected": string;
84
126
  "screenshotTakingText": string;
85
127
  "screenshotTopbarText": string;
86
128
  "sendButtonText": string;
87
129
  "showModal": boolean;
88
130
  "showScreenshotMode": boolean;
89
131
  "showScreenshotTopBar": boolean;
132
+ "sizeLabelText": string;
90
133
  "successMessage": string;
91
134
  }
92
135
  }
136
+ export interface CanvasEditorCustomEvent<T> extends CustomEvent<T> {
137
+ detail: T;
138
+ target: HTMLCanvasEditorElement;
139
+ }
93
140
  export interface FeedbackButtonCustomEvent<T> extends CustomEvent<T> {
94
141
  detail: T;
95
142
  target: HTMLFeedbackButtonElement;
@@ -99,6 +146,12 @@ export interface FeedbackModalCustomEvent<T> extends CustomEvent<T> {
99
146
  target: HTMLFeedbackModalElement;
100
147
  }
101
148
  declare global {
149
+ interface HTMLCanvasEditorElement extends Components.CanvasEditor, HTMLStencilElement {
150
+ }
151
+ var HTMLCanvasEditorElement: {
152
+ prototype: HTMLCanvasEditorElement;
153
+ new (): HTMLCanvasEditorElement;
154
+ };
102
155
  interface HTMLFeedbackButtonElement extends Components.FeedbackButton, HTMLStencilElement {
103
156
  }
104
157
  var HTMLFeedbackButtonElement: {
@@ -112,18 +165,46 @@ declare global {
112
165
  new (): HTMLFeedbackModalElement;
113
166
  };
114
167
  interface HTMLElementTagNameMap {
168
+ "canvas-editor": HTMLCanvasEditorElement;
115
169
  "feedback-button": HTMLFeedbackButtonElement;
116
170
  "feedback-modal": HTMLFeedbackModalElement;
117
171
  }
118
172
  }
119
173
  declare namespace LocalJSX {
174
+ interface CanvasEditor {
175
+ "autoStartScreenshot"?: boolean;
176
+ "borderLabelText"?: string;
177
+ "canvasEditorCancelText"?: string;
178
+ "canvasEditorSaveText"?: string;
179
+ "canvasEditorTitle"?: string;
180
+ "editTextButtonText"?: string;
181
+ "editTextPromptText"?: string;
182
+ "existingScreenshot"?: string;
183
+ "onScreenshotCancelled"?: (event: CanvasEditorCustomEvent<void>) => void;
184
+ "onScreenshotFailed"?: (event: CanvasEditorCustomEvent<{ error: string }>) => void;
185
+ "onScreenshotReady"?: (event: CanvasEditorCustomEvent<{ screenshot: string }>) => void;
186
+ "screenshotAttachedText"?: string;
187
+ "screenshotButtonText"?: string;
188
+ "screenshotErrorBrowserNotSupported"?: string;
189
+ "screenshotErrorCancelled"?: string;
190
+ "screenshotErrorGeneral"?: string;
191
+ "screenshotErrorNotFound"?: string;
192
+ "screenshotErrorNotSupported"?: string;
193
+ "screenshotErrorPermission"?: string;
194
+ "screenshotErrorUnexpected"?: string;
195
+ "screenshotTakingText"?: string;
196
+ "sizeLabelText"?: string;
197
+ }
120
198
  interface FeedbackButton {
199
+ "borderLabelText"?: string;
121
200
  "buttonPosition"?: string;
122
201
  "buttonStyle"?: string;
123
202
  "canvasEditorCancelText"?: string;
124
203
  "canvasEditorSaveText"?: string;
125
204
  "canvasEditorTitle"?: string;
126
205
  "customFont"?: boolean;
206
+ "editTextButtonText"?: string;
207
+ "editTextPromptText"?: string;
127
208
  "emailAddress"?: string;
128
209
  "emailPlaceholder"?: string;
129
210
  "errorMessage"?: string;
@@ -154,18 +235,29 @@ declare namespace LocalJSX {
154
235
  "ratingStarsPlaceholder"?: string;
155
236
  "screenshotAttachedText"?: string;
156
237
  "screenshotButtonText"?: string;
238
+ "screenshotErrorBrowserNotSupported"?: string;
239
+ "screenshotErrorCancelled"?: string;
240
+ "screenshotErrorGeneral"?: string;
241
+ "screenshotErrorNotFound"?: string;
242
+ "screenshotErrorNotSupported"?: string;
243
+ "screenshotErrorPermission"?: string;
244
+ "screenshotErrorUnexpected"?: string;
157
245
  "screenshotTakingText"?: string;
158
246
  "screenshotTopbarText"?: string;
159
247
  "sendButtonText"?: string;
160
248
  "sessionId"?: string;
249
+ "sizeLabelText"?: string;
161
250
  "submit"?: boolean;
162
251
  "successMessage"?: string;
163
252
  }
164
253
  interface FeedbackModal {
254
+ "borderLabelText"?: string;
165
255
  "canvasEditorCancelText"?: string;
166
256
  "canvasEditorSaveText"?: string;
167
257
  "canvasEditorTitle"?: string;
168
258
  "customFont"?: boolean;
259
+ "editTextButtonText"?: string;
260
+ "editTextPromptText"?: string;
169
261
  "emailAddress"?: string;
170
262
  "emailPlaceholder"?: string;
171
263
  "errorMessage"?: string;
@@ -195,15 +287,24 @@ declare namespace LocalJSX {
195
287
  "ratingStarsPlaceholder"?: string;
196
288
  "screenshotAttachedText"?: string;
197
289
  "screenshotButtonText"?: string;
290
+ "screenshotErrorBrowserNotSupported"?: string;
291
+ "screenshotErrorCancelled"?: string;
292
+ "screenshotErrorGeneral"?: string;
293
+ "screenshotErrorNotFound"?: string;
294
+ "screenshotErrorNotSupported"?: string;
295
+ "screenshotErrorPermission"?: string;
296
+ "screenshotErrorUnexpected"?: string;
198
297
  "screenshotTakingText"?: string;
199
298
  "screenshotTopbarText"?: string;
200
299
  "sendButtonText"?: string;
201
300
  "showModal"?: boolean;
202
301
  "showScreenshotMode"?: boolean;
203
302
  "showScreenshotTopBar"?: boolean;
303
+ "sizeLabelText"?: string;
204
304
  "successMessage"?: string;
205
305
  }
206
306
  interface IntrinsicElements {
307
+ "canvas-editor": CanvasEditor;
207
308
  "feedback-button": FeedbackButton;
208
309
  "feedback-modal": FeedbackModal;
209
310
  }
@@ -212,6 +313,7 @@ export { LocalJSX as JSX };
212
313
  declare module "@stencil/core" {
213
314
  export namespace JSX {
214
315
  interface IntrinsicElements {
316
+ "canvas-editor": LocalJSX.CanvasEditor & JSXBase.HTMLAttributes<HTMLCanvasEditorElement>;
215
317
  "feedback-button": LocalJSX.FeedbackButton & JSXBase.HTMLAttributes<HTMLFeedbackButtonElement>;
216
318
  "feedback-modal": LocalJSX.FeedbackModal & JSXBase.HTMLAttributes<HTMLFeedbackModalElement>;
217
319
  }
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.69",
5
+ "version": "0.1.70",
6
6
  "description": "Feedback widget for websites.",
7
7
  "main": "dist/index.cjs.js",
8
8
  "module": "dist/index.js",
@@ -30,8 +30,7 @@
30
30
  "lint:fix": "eslint . --ext .ts,.tsx --fix"
31
31
  },
32
32
  "dependencies": {
33
- "@stencil/core": "^2.13.0",
34
- "html2canvas-pro": "^1.5.8"
33
+ "@stencil/core": "^2.13.0"
35
34
  },
36
35
  "devDependencies": {
37
36
  "@stencil/react-output-target": "^0.5.3",
@@ -41,9 +40,9 @@
41
40
  "eslint": "^8.38.0",
42
41
  "eslint-config-prettier": "^8.8.0",
43
42
  "eslint-plugin-prettier": "^4.2.1",
44
- "prettier": "^2.8.7",
45
43
  "jest": "^27.4.5",
46
44
  "jest-cli": "^27.4.5",
45
+ "prettier": "^2.8.7",
47
46
  "puppeteer": "^10.0.0"
48
47
  },
49
48
  "license": "MIT",