@qaiddev/thumbs-embed 1.7.0 → 1.9.0

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 (37) hide show
  1. package/README.md +77 -33
  2. package/dist/bootstrap.d.ts +4 -2
  3. package/dist/chunks/{annotate-CMq95aXG.js → annotate-D-o8xCV9.js} +23 -17
  4. package/dist/chunks/annotate-D-o8xCV9.js.map +1 -0
  5. package/dist/chunks/dom-DvdtcUS8.js +17 -0
  6. package/dist/chunks/dom-DvdtcUS8.js.map +1 -0
  7. package/dist/chunks/{loader-CYM1rxDH.js → loader-XbJ2b8KE.js} +229 -167
  8. package/dist/chunks/loader-XbJ2b8KE.js.map +1 -0
  9. package/dist/chunks/modal-XxYobTKE.js +213 -0
  10. package/dist/chunks/modal-XxYobTKE.js.map +1 -0
  11. package/dist/chunks/{recording-BVFd_ryf.js → recording-Dx8AX-BC.js} +103 -98
  12. package/dist/chunks/recording-Dx8AX-BC.js.map +1 -0
  13. package/dist/chunks/{screenshot-BkOCLuS2.js → screenshot-DYOKg2bS.js} +2 -2
  14. package/dist/chunks/{screenshot-BkOCLuS2.js.map → screenshot-DYOKg2bS.js.map} +1 -1
  15. package/dist/chunks/{targeting-1pK6nJI9.js → targeting-Dz6z1BYl.js} +2 -2
  16. package/dist/chunks/{targeting-1pK6nJI9.js.map → targeting-Dz6z1BYl.js.map} +1 -1
  17. package/dist/chunks/{video-BOYqf2Im.js → video-Bd_29-rK.js} +76 -71
  18. package/dist/chunks/video-Bd_29-rK.js.map +1 -0
  19. package/dist/embed.d.ts +11 -0
  20. package/dist/icons.d.ts +2 -0
  21. package/dist/index.js +599 -448
  22. package/dist/index.js.map +1 -1
  23. package/dist/loader.js +1 -1
  24. package/dist/modal.d.ts +14 -4
  25. package/dist/qaid.umd.cjs +14 -38
  26. package/dist/qaid.umd.cjs.map +1 -1
  27. package/dist/recording.d.ts +6 -0
  28. package/dist/screenshot.d.ts +1 -1
  29. package/dist/types.d.ts +14 -2
  30. package/dist/video-capture.d.ts +6 -0
  31. package/package.json +1 -1
  32. package/dist/chunks/annotate-CMq95aXG.js.map +0 -1
  33. package/dist/chunks/loader-CYM1rxDH.js.map +0 -1
  34. package/dist/chunks/modal-Br5x7m6f.js +0 -150
  35. package/dist/chunks/modal-Br5x7m6f.js.map +0 -1
  36. package/dist/chunks/recording-BVFd_ryf.js.map +0 -1
  37. package/dist/chunks/video-BOYqf2Im.js.map +0 -1
package/dist/loader.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Q as d } from "./chunks/loader-CYM1rxDH.js";
1
+ import { Q as d } from "./chunks/loader-XbJ2b8KE.js";
2
2
  export {
3
3
  d as QaidFeedback
4
4
  };
package/dist/modal.d.ts CHANGED
@@ -43,15 +43,25 @@ export declare class ModalController {
43
43
  private teardown;
44
44
  private showBottomSheet;
45
45
  private showPositionedModal;
46
- private getModalContent;
46
+ /**
47
+ * The modal's contents, built as nodes rather than an HTML string.
48
+ *
49
+ * Every piece of copy (title, subtitle, placeholder, button) goes in as
50
+ * text, so a `<`, `&` or `"` in a translation shows as written instead of
51
+ * being parsed as markup or cutting an attribute short. Only the icons are
52
+ * markup, because they are documented as SVG/HTML strings.
53
+ */
54
+ private buildModalContent;
47
55
  private setupModalInteractions;
48
56
  private submitMessage;
49
57
  /**
50
- * Replace the modal's contents with a checkmark and a short acknowledgement.
58
+ * Replace the modal's contents with the outcome: a checkmark and a short
59
+ * acknowledgement, or an error mark and a "not sent" notice.
51
60
  *
52
61
  * The submit button that had focus is gone by this point, so focus moves to
53
62
  * the heading (WCAG 2.4.3) and the message is announced. Mirrors the quests
54
- * embed's thank-you screen so the two products confirm the same way.
63
+ * embed's thank-you screen so the two products confirm the same way. Copy
64
+ * goes in as text, never markup.
55
65
  */
56
- private showConfirmation;
66
+ private showResult;
57
67
  }