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,547 @@
1
+ .text-center {
2
+ flex-grow: 1;
3
+ text-align: center;
4
+ }
5
+
6
+ .feedback-modal-wrapper * {
7
+ font-family: var(--feedback-font-family);
8
+ }
9
+
10
+ .feedback-modal-wrapper--custom-font * {
11
+ font-family: inherit;
12
+
13
+ }
14
+
15
+ .feedback-modal-wrapper {
16
+ position: absolute;
17
+ z-index: var(--feedback-modal-modal-wrapper-z-index);
18
+ }
19
+
20
+ .feedback-overlay {
21
+ background-color: var(--feedback-modal-screenshot-bg-color);
22
+ height: 100%;
23
+ left: 0;
24
+ opacity: 0;
25
+ position: fixed;
26
+ top: 0;
27
+ width: 100%;
28
+ z-index: var(--feedback-modal-screnshot-z-index);
29
+ transition: opacity 0.2s ease-out;
30
+ }
31
+
32
+ .feedback-overlay--visible {
33
+ opacity: 1;
34
+ }
35
+
36
+ .feedback-modal {
37
+ display: inline-block;
38
+ position: relative;
39
+ }
40
+
41
+ .feedback-modal-content {
42
+ background-color: var(--feedback-modal-content-bg-color);
43
+ border-color: 1px solid var(--feedback-modal-header-text-color);
44
+ border-radius: var(--feedback-modal-content-border-radius);
45
+ box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, .30), 0px 2px 6px 2px rgba(60, 64, 67, .15);
46
+ box-sizing: border-box;
47
+ color: var(--feedback-modal-content-text-color);
48
+ display: flex;
49
+ flex-direction: column;
50
+ left: 50%;
51
+ max-width: 90%;
52
+ padding: 20px;
53
+ position: fixed;
54
+ top: 50%;
55
+ transform: translate(-50%, -50%) scale(0.95);
56
+ opacity: 0;
57
+ width: 100%;
58
+ z-index: var(--feedback-modal-content-z-index);
59
+ transition: transform 0.2s ease-out, opacity 0.2s ease-out;
60
+ }
61
+
62
+ .feedback-modal-content--open {
63
+ transform: translate(-50%, -50%) scale(1);
64
+ opacity: 1;
65
+ }
66
+
67
+ .feedback-modal-header {
68
+ align-items: center;
69
+ color: var(--feedback-modal-header-text-color);
70
+ display: flex;
71
+ font-size: var(--feedback-header-font-size);
72
+ font-weight: var(--feedback-modal-header-font-weight);
73
+ justify-content: space-between;
74
+ margin-bottom: 20px;
75
+ }
76
+
77
+ .feedback-modal-rating-buttons {
78
+ width: 100%;
79
+ margin-bottom: 20px;
80
+ }
81
+
82
+ .feedback-modal-rating-button {
83
+ padding: 0;
84
+ background-color: transparent;
85
+ border: transparent;
86
+ margin-right: 5px;
87
+ cursor: pointer;
88
+ }
89
+
90
+ .feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button {
91
+ border: 1px solid var(--feedback-modal-button-border-color);
92
+ border-radius: var(--feedback-modal-button-border-radius);
93
+ color: var(--feedback-modal-button-text-color);
94
+ font-size: var(--feedback-modal-button-font-size);
95
+
96
+ font-weight: 500;
97
+ margin-right: 10px;
98
+ justify-content: center;
99
+ padding: 5px 10px;
100
+ }
101
+
102
+ .feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button:hover,
103
+ .feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button--selected {
104
+ background-color: var(--feedback-modal-button-bg-color-active);
105
+ border: 1px solid var(--feedback-modal-button-border-color-active);
106
+ color: var(--feedback-modal-button-text-color-active);
107
+ }
108
+
109
+ .feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button:hover svg,
110
+ .feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button--selected svg {
111
+ stroke: var(--feedback-modal-rating-button-selected-color);
112
+ }
113
+
114
+ .feedback-modal-rating-buttons svg {
115
+ stroke: var(--feedback-modal-rating-button-color);
116
+ cursor: pointer;
117
+ }
118
+
119
+ .feedback-modal-rating-buttons--stars .feedback-modal-rating-button--selected svg {
120
+ fill: var(--feedback-modal-rating-button-stars-selected-color);
121
+ stroke: var(--feedback-modal-rating-button-stars-selected-color);
122
+ }
123
+
124
+ .feedback-modal-text textarea {
125
+ background-color: var(--feedback-modal-input-bg-color);
126
+ border: 1px solid var(--feedback-modal-input-border-color);
127
+ border-radius: var(--feedback-modal-input-border-radius);
128
+ box-sizing: border-box;
129
+ color: var(--feedback-modal-input-text-color);
130
+ font-size: var(--feedback-modal-input-font-size);
131
+ margin-bottom: 20px;
132
+ height: 100px;
133
+ min-height: 100px;
134
+ padding: 10px;
135
+ resize: vertical;
136
+ width: 100%;
137
+ }
138
+
139
+
140
+ .feedback-modal-email input {
141
+ background-color: var(--feedback-modal-input-bg-color);
142
+ border: 1px solid var(--feedback-modal-input-border-color);
143
+ border-radius: var(--feedback-modal-input-border-radius);
144
+ box-sizing: border-box;
145
+ color: var(--feedback-modal-input-text-color);
146
+ font-size: var(--feedback-modal-input-font-size);
147
+ margin-bottom: 20px;
148
+ height: 40px;
149
+ padding: 10px;
150
+ width: 100%;
151
+ margin-bottom: 20px;
152
+ }
153
+
154
+ .feedback-modal-privacy {
155
+ font-size: var(--feedback-modal-input-font-size);
156
+ margin-bottom: 20px;
157
+ }
158
+
159
+
160
+ .feedback-modal-text textarea:focus, .feedback-modal-email input:focus {
161
+ border: 1px solid var(--feedback-modal-input-border-color-focused);
162
+ outline: none;
163
+ }
164
+
165
+ .feedback-modal-buttons {
166
+ display: flex;
167
+ flex-direction: column;
168
+ }
169
+
170
+ .feedback-modal-buttons .feedback-modal-button {
171
+ margin-bottom: 20px;
172
+ }
173
+
174
+ .feedback-modal-button {
175
+ align-items: center;
176
+ background-color: transparent;
177
+ border: 1px solid var(--feedback-modal-button-border-color);
178
+ border-radius: var(--feedback-modal-button-border-radius);
179
+ color: var(--feedback-modal-button-text-color);
180
+ cursor: pointer;
181
+ display: flex;
182
+ font-size: var(--feedback-modal-button-font-size);
183
+ font-weight: 500;
184
+ justify-content: center;
185
+ min-height: 40px;
186
+ padding: 5px 10px;
187
+ }
188
+
189
+ .feedback-modal-button svg {
190
+ margin-right: 6px;
191
+ }
192
+
193
+ .feedback-modal-button path {
194
+ fill: var(--feedback-modal-button-icon-color);
195
+ }
196
+
197
+ .feedback-modal-button:hover path,
198
+ .feedback-modal-button--active path {
199
+ fill: var(--feedback-modal-button-icon-color-active);
200
+ }
201
+
202
+ .feedback-modal-button--submit {
203
+ background-color: var(--feedback-modal-button-submit-bg-color);
204
+ border: 1px solid var(--feedback-modal-button-border-color-active);
205
+ color: var(--feedback-modal-button-submit-text-color);
206
+ }
207
+
208
+ .feedback-modal-button:hover,
209
+ .feedback-modal-button--active {
210
+ background-color: var(--feedback-modal-button-bg-color-active);
211
+ border: 1px solid var(--feedback-modal-button-border-color-active);
212
+ color: var(--feedback-modal-button-text-color-active);
213
+ }
214
+
215
+ .feedback-modal-button--submit:hover{
216
+ background-color: var(--feedback-modal-button-submit-bg-color-hover);
217
+ border: 1px solid var(--feedback-modal-button-submit-border-color-hover);
218
+ color: var(--feedback-modal-button-submit-text-color-hover);
219
+ }
220
+
221
+
222
+ .feedback-modal-input-heading{
223
+ display: block;
224
+ font-size: 14px;
225
+ font-weight: 300;
226
+ padding-bottom: 10px;
227
+ }
228
+
229
+ .feedback-modal-footer {
230
+ font-size: 12px;
231
+ text-align: center;
232
+ }
233
+
234
+ .feedback-modal-footer a {
235
+ color: var(--feedback-modal-footer-link);
236
+ font-weight: 500;
237
+ text-decoration: none;
238
+ }
239
+
240
+ .feedback-logo,
241
+ .feedback-footer-text {
242
+ display: block;
243
+ text-align: center;
244
+ margin-top: 5px;
245
+ }
246
+
247
+ .feedback-footer-text {
248
+ margin-top: 10px;
249
+ line-height: 1.5;
250
+ }
251
+
252
+ .feedback-modal-close {
253
+ background-color: var(--feedback-modal-close-bg-color);
254
+ border: 0;
255
+ border-radius: 50%;
256
+ cursor: pointer;
257
+ height: 22px;
258
+ margin-left: auto;
259
+ padding: 0;
260
+ width: 22px;
261
+ }
262
+
263
+ .feedback-modal-close svg {
264
+ stroke: var(--feedback-modal-close-color);
265
+ }
266
+
267
+
268
+ .feedback-modal-screenshot {
269
+ background-color: var(--feedback-modal-screenshot-bg-color);
270
+ height: 100%;
271
+ left: 0;
272
+ position: fixed;
273
+ top: 0;
274
+ width: 100%;
275
+ z-index: var(--feedback-modal-screnshot-z-index);
276
+ }
277
+
278
+ .feedback-modal-screenshot-header {
279
+ align-items: center;
280
+ background-color: var(--feedback-modal-screenshot-header-bg-color);
281
+ border-radius: var(--feedback-modal-content-border-radius);
282
+ box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, .30), 0px 2px 6px 2px rgba(60, 64, 67, .15);
283
+ box-sizing: border-box;
284
+ color: var(--feedback-modal-screenshot-header-text-color);
285
+ cursor: pointer;
286
+ display: flex;
287
+ left: 50%;
288
+ top: 20px;
289
+ transform: translateX(-50%);
290
+ padding: 10px;
291
+ position: fixed;
292
+ width: max-content;
293
+ z-index: var(--feedback-modal-screenshot-header-z-index);
294
+ }
295
+
296
+ .feedback-modal-screenshot-close {
297
+ height: 24px;
298
+ padding-left: 10px;
299
+ width: 24px;
300
+ }
301
+
302
+ .feedback-modal-screenshot-close svg {
303
+ stroke: var(--feedback-modal-close-color);
304
+ }
305
+
306
+ .feedback-modal-message {
307
+ font-size: var(--feedback-modal-message-font-size);
308
+ margin-top: 0;
309
+ }
310
+
311
+
312
+ .feedback-modal-element-hover {
313
+ background-color: transparent;
314
+ cursor: pointer;
315
+ border: 1px solid var(--feedback-modal-element-hover-border-color);
316
+ }
317
+
318
+
319
+ .feedback-modal-element-selected {
320
+ background-color: transparent;
321
+ border: 3px solid var(--feedback-modal-element-selected-border-color) !important;
322
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3) !important;
323
+ }
324
+
325
+ .screenshot-preview {
326
+ display: inline-block;
327
+ width: 30px;
328
+ height: 30px;
329
+ overflow: hidden;
330
+ border-radius: 4px;
331
+ margin-right: 10px;
332
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
333
+ cursor: pointer;
334
+ transition: transform 0.2s ease;
335
+ }
336
+
337
+ .screenshot-preview:hover {
338
+ transform: scale(1.1);
339
+ }
340
+
341
+ .screenshot-preview img {
342
+ width: 100%;
343
+ height: 100%;
344
+ object-fit: cover;
345
+ }
346
+
347
+
348
+
349
+ .screenshot-loading {
350
+ display: inline-flex;
351
+ align-items: center;
352
+ margin-right: 8px;
353
+ }
354
+
355
+ /* Responsive Design */
356
+ @media screen and (min-width: 768px) {
357
+ .feedback-modal-content {
358
+ max-width: var(--feedback-modal-content-max-width);
359
+ }
360
+
361
+ .feedback-modal-content.feedback-modal-content--bottom-right {
362
+ bottom: var(--feedback-modal-content-position-bottom);
363
+ left: initial;
364
+ right: var(--feedback-modal-content-position-right);
365
+ top: initial;
366
+ transform: initial;
367
+ }
368
+
369
+ .feedback-modal-content.feedback-modal-content--bottom-left {
370
+ bottom: var(--feedback-modal-content-position-bottom);
371
+ left: var(--feedback-modal-content-position-left);
372
+ top: initial;
373
+ transform: initial;
374
+ }
375
+
376
+ .feedback-modal-content.feedback-modal-content--top-right {
377
+ right: var(--feedback-modal-content-position-right);
378
+ top: var(--feedback-modal-content-position-top);
379
+ transform: initial;
380
+ }
381
+
382
+ .feedback-modal-content.feedback-modal-content--top-left {
383
+ left: var(--feedback-modal-content-position-left);
384
+ top: var(--feedback-modal-content-position-top);
385
+ transform: initial;
386
+ }
387
+
388
+ .feedback-modal-content.feedback-modal-content--center-left {
389
+ left: 5px;
390
+ right: auto;
391
+ top: 50%;
392
+ transform: translateY(-50%);
393
+ }
394
+
395
+ .feedback-modal-content.feedback-modal-content--center-right {
396
+ left: auto;
397
+ right: 5px;
398
+ top: 50%;
399
+ transform: translateY(-50%);
400
+ }
401
+
402
+ .feedback-modal-content.feedback-modal-content--sidebar-left.feedback-modal-content--open,
403
+ .feedback-modal-content.feedback-modal-content--sidebar-right.feedback-modal-content--open{
404
+ transform: translateX(0);
405
+ }
406
+
407
+ .feedback-modal-content.feedback-modal-content--sidebar-left {
408
+ max-width: var(--feedback-modal-content-sidebar-max-width);
409
+ left: 0;
410
+ right: auto;
411
+ height: 100vh;
412
+ top: 0;
413
+ transform: translateX(-100%);
414
+ transition: transform 0.5s ease-in-out;
415
+ border-radius: 0;
416
+ }
417
+
418
+ .feedback-modal-content.feedback-modal-content--sidebar-right {
419
+ max-width: var(--feedback-modal-content-sidebar-max-width);
420
+ left: auto;
421
+ right: 0;
422
+ height: 100vh;
423
+ top: 0;
424
+ transform: translateX(100%);
425
+ transition: transform 0.5s ease-in-out;
426
+ border-radius: 0;
427
+ }
428
+
429
+ .feedback-modal-text textarea {
430
+ height: 150px;
431
+ min-height: 150px;
432
+ }
433
+
434
+ /* Animations */
435
+ .feedback-modal-content.feedback-modal-content--bottom-right {
436
+ transform: translateY(20px);
437
+ }
438
+
439
+ .feedback-modal-content.feedback-modal-content--bottom-right.feedback-modal-content--open {
440
+ transform: translateY(0);
441
+ }
442
+
443
+ .feedback-modal-content.feedback-modal-content--bottom-left {
444
+ transform: translateY(20px);
445
+ }
446
+
447
+ .feedback-modal-content.feedback-modal-content--bottom-left.feedback-modal-content--open {
448
+ transform: translateY(0);
449
+ }
450
+
451
+ .feedback-modal-content.feedback-modal-content--top-right {
452
+ transform: translateY(-20px);
453
+ }
454
+
455
+ .feedback-modal-content.feedback-modal-content--top-right.feedback-modal-content--open {
456
+ transform: translateY(0);
457
+ }
458
+
459
+ .feedback-modal-content.feedback-modal-content--top-left {
460
+ transform: translateY(-20px);
461
+ }
462
+
463
+ .feedback-modal-content.feedback-modal-content--top-left.feedback-modal-content--open {
464
+ transform: translateY(0);
465
+ }
466
+ }
467
+
468
+
469
+
470
+ /* Feather loader animation */
471
+ @keyframes feather-spin {
472
+ 0% {
473
+ transform: rotate(0deg);
474
+ }
475
+ 100% {
476
+ transform: rotate(360deg);
477
+ }
478
+ }
479
+
480
+ .feather-loader {
481
+ animation: feather-spin 1s linear infinite;
482
+ display: block;
483
+ }
484
+
485
+ /* Screenshot Error Notification */
486
+ .screenshot-error-notification {
487
+ position: fixed;
488
+ top: 20px;
489
+ left: 50%;
490
+ transform: translateX(-50%);
491
+ z-index: 10001;
492
+ max-width: 500px;
493
+ width: 90%;
494
+ animation: slideDown 0.3s ease-out;
495
+ }
496
+
497
+ @keyframes slideDown {
498
+ from {
499
+ opacity: 0;
500
+ transform: translateX(-50%) translateY(-20px);
501
+ }
502
+ to {
503
+ opacity: 1;
504
+ transform: translateX(-50%) translateY(0);
505
+ }
506
+ }
507
+
508
+ .screenshot-error-content {
509
+ background: #fee;
510
+ border: 1px solid #fcc;
511
+ border-radius: 8px;
512
+ padding: 12px 16px;
513
+ display: flex;
514
+ align-items: center;
515
+ gap: 12px;
516
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
517
+ color: #c53030;
518
+ }
519
+
520
+ .screenshot-error-content svg:first-child {
521
+ color: #e53e3e;
522
+ flex-shrink: 0;
523
+ }
524
+
525
+ .screenshot-error-content span {
526
+ flex: 1;
527
+ font-size: 14px;
528
+ line-height: 1.4;
529
+ font-weight: 500;
530
+ }
531
+
532
+ .error-close-btn {
533
+ background: none;
534
+ border: none;
535
+ cursor: pointer;
536
+ padding: 4px;
537
+ border-radius: 4px;
538
+ color: #c53030;
539
+ flex-shrink: 0;
540
+ transition: background-color 0.2s ease;
541
+ }
542
+
543
+ .error-close-btn:hover {
544
+ background: rgba(197, 48, 48, 0.1);
545
+ }
546
+
547
+