@qaiddev/thumbs-embed 1.13.0 → 1.14.1

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 (38) hide show
  1. package/README.md +20 -12
  2. package/dist/chunks/{annotate-1zompTEi.js → annotate-DprzfPKF.js} +2 -2
  3. package/dist/chunks/{annotate-1zompTEi.js.map → annotate-DprzfPKF.js.map} +1 -1
  4. package/dist/chunks/core-Dz8Cwmr8.js +26 -0
  5. package/dist/chunks/core-Dz8Cwmr8.js.map +1 -0
  6. package/dist/chunks/modal-BPJ0vJKD.js +2 -0
  7. package/dist/chunks/modal-BPJ0vJKD.js.map +1 -0
  8. package/dist/chunks/recording-OSTpp7l9.js +2 -0
  9. package/dist/chunks/recording-OSTpp7l9.js.map +1 -0
  10. package/dist/chunks/send-DkMz9lbO.js +2 -0
  11. package/dist/chunks/{send-C3IvslZA.js.map → send-DkMz9lbO.js.map} +1 -1
  12. package/dist/chunks/{targeting-Bpbt68Pp.js → targeting-BD8Bq5Qu.js} +2 -2
  13. package/dist/chunks/{targeting-Bpbt68Pp.js.map → targeting-BD8Bq5Qu.js.map} +1 -1
  14. package/dist/embed-loader.d.ts +18 -5
  15. package/dist/embed.d.ts +4 -4
  16. package/dist/embed.js +1 -1
  17. package/dist/embed.js.map +1 -1
  18. package/dist/index.js +1563 -1479
  19. package/dist/index.js.map +1 -1
  20. package/dist/integrity-probe.js +2 -0
  21. package/dist/loader.js +1 -1
  22. package/dist/modal.d.ts +7 -2
  23. package/dist/network-capture.d.ts +4 -0
  24. package/dist/qaid.umd.cjs +15 -15
  25. package/dist/qaid.umd.cjs.map +1 -1
  26. package/dist/quest-config.d.ts +3 -3
  27. package/dist/redact.d.ts +40 -0
  28. package/dist/send.d.ts +2 -2
  29. package/dist/trusted-types.d.ts +7 -0
  30. package/dist/types.d.ts +13 -0
  31. package/package.json +1 -1
  32. package/dist/chunks/core-vu1EieDc.js +0 -26
  33. package/dist/chunks/core-vu1EieDc.js.map +0 -1
  34. package/dist/chunks/modal-5G2DhiUE.js +0 -2
  35. package/dist/chunks/modal-5G2DhiUE.js.map +0 -1
  36. package/dist/chunks/recording-CVwPTtB0.js +0 -2
  37. package/dist/chunks/recording-CVwPTtB0.js.map +0 -1
  38. package/dist/chunks/send-C3IvslZA.js +0 -2
@@ -0,0 +1,2 @@
1
+ /* thumbs-embed: import-map integrity probe. Never runs where the check works. */
2
+ export {};
package/dist/loader.js CHANGED
@@ -1,2 +1,2 @@
1
- import{d as o}from"./chunks/core-vu1EieDc.js";import{Q as r}from"./chunks/core-vu1EieDc.js";o(import.meta.url);export{r as QaidFeedback};
1
+ import{d as o}from"./chunks/core-Dz8Cwmr8.js";import{Q as r}from"./chunks/core-Dz8Cwmr8.js";o(import.meta.url);export{r as QaidFeedback};
2
2
  //# sourceMappingURL=loader.js.map
package/dist/modal.d.ts CHANGED
@@ -6,7 +6,12 @@
6
6
  * The controller owns the modal/backdrop DOM and the message PATCH flow, and
7
7
  * talks back to the embed through the narrow `ModalHost` interface.
8
8
  */
9
- import type { ResolvedFeedbackConfig, EmbedState, FeedbackData, SelectedBounds } from "./types";
9
+ import type { ResolvedFeedbackConfig, EmbedState, FeedbackData, SelectedBounds, FeedbackRecord } from "./types";
10
+ /**
11
+ * A PATCH body for `record`: `fields`, plus `editToken` when the server sent
12
+ * one with the create response. Older servers send none, and get none back.
13
+ */
14
+ export declare function patchBody(record: FeedbackRecord, fields: Record<string, unknown>): string;
10
15
  /** The slice of the embed the modal needs. */
11
16
  export interface ModalHost {
12
17
  readonly config: ResolvedFeedbackConfig;
@@ -22,7 +27,7 @@ export interface ModalHost {
22
27
  * creates it is still in flight, so every PATCH waits on this; null when
23
28
  * the POST failed.
24
29
  */
25
- whenFeedbackId(): Promise<number | null>;
30
+ whenFeedbackRecord(): Promise<FeedbackRecord | null>;
26
31
  ensureOverlayHost(): ShadowRoot;
27
32
  applyVars(el: HTMLElement): void;
28
33
  announceMsg(message: string, assertive?: boolean): void;
@@ -1,6 +1,10 @@
1
1
  /**
2
2
  * Network capture utilities
3
3
  * Intercepts fetch() and XMLHttpRequest to capture 4xx/5xx errors
4
+ *
5
+ * What is kept goes to qaid's server with a report, so (see redact.ts):
6
+ * request bodies are never captured, credential-like URL parameters are
7
+ * replaced, and a response body is dropped for 401/403 and sign-in-ish URLs.
4
8
  */
5
9
  import type { NetworkError } from "./types";
6
10
  export interface NetworkCapture {