@qaiddev/thumbs-embed 1.9.1 → 1.10.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.
package/dist/loader.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Q as d } from "./chunks/loader-DepVS4i5.js";
1
+ import { Q as d } from "./chunks/loader-BVNyi56k.js";
2
2
  export {
3
3
  d as QaidFeedback
4
4
  };
package/dist/modal.d.ts CHANGED
@@ -17,8 +17,12 @@ export interface ModalHost {
17
17
  /** Live references — the toggle mutates feedbackType; positioning reads bounds. */
18
18
  readonly feedbackData: FeedbackData;
19
19
  readonly selectedBounds: SelectedBounds;
20
- readonly feedbackId: number | null;
21
- setFeedbackId(id: number | null): void;
20
+ /**
21
+ * The id of this feedback's record. The modal opens while the POST that
22
+ * creates it is still in flight, so every PATCH waits on this; null when
23
+ * the POST failed.
24
+ */
25
+ whenFeedbackId(): Promise<number | null>;
22
26
  ensureOverlayHost(): ShadowRoot;
23
27
  applyVars(el: HTMLElement): void;
24
28
  announceMsg(message: string, assertive?: boolean): void;
@@ -34,6 +38,8 @@ export declare class ModalController {
34
38
  private host;
35
39
  private modalContainer;
36
40
  private backdrop;
41
+ /** Set once the message is sent, so closing does not PATCH over it. */
42
+ private finalized;
37
43
  constructor(host: ModalHost);
38
44
  open(): void;
39
45
  /** Escape / external close. Runs the finalize-PATCH + teardown. */