@qaiddev/thumbs-embed 1.9.1 → 1.10.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.
- package/README.md +2 -3
- package/dist/chunks/{annotate-D-o8xCV9.js → annotate-BTLeFQa0.js} +71 -137
- package/dist/chunks/annotate-BTLeFQa0.js.map +1 -0
- package/dist/chunks/{loader-DepVS4i5.js → core-2nGsCcZq.js} +380 -266
- package/dist/chunks/core-2nGsCcZq.js.map +1 -0
- package/dist/chunks/{modal-CEfcaIQR.js → modal-zwBhxWO0.js} +66 -60
- package/dist/chunks/modal-zwBhxWO0.js.map +1 -0
- package/dist/chunks/{recording-CcfOfIC7.js → recording-DNngIGr2.js} +6 -6
- package/dist/chunks/{recording-CcfOfIC7.js.map → recording-DNngIGr2.js.map} +1 -1
- package/dist/chunks/{targeting-Dz6z1BYl.js → targeting-DaBmGVk5.js} +2 -2
- package/dist/chunks/{targeting-Dz6z1BYl.js.map → targeting-DaBmGVk5.js.map} +1 -1
- package/dist/embed.d.ts +17 -1
- package/dist/index.js +435 -380
- package/dist/index.js.map +1 -1
- package/dist/loader.js +4 -2
- package/dist/loader.js.map +1 -1
- package/dist/modal.d.ts +8 -2
- package/dist/qaid.umd.cjs +12 -12
- package/dist/qaid.umd.cjs.map +1 -1
- package/dist/quest-launcher.d.ts +24 -4
- package/package.json +3 -3
- package/dist/chunks/annotate-D-o8xCV9.js.map +0 -1
- package/dist/chunks/loader-DepVS4i5.js.map +0 -1
- package/dist/chunks/modal-CEfcaIQR.js.map +0 -1
package/dist/loader.js
CHANGED
package/dist/loader.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"loader.js","sources":["../src/loader.ts"],"sourcesContent":["/**\n * Minimal ESM loader entry for progressive delivery.\n *\n * ```html\n * <script type=\"module\" src=\"…/loader.js\" data-endpoint=\"/api/feedback\"></script>\n * ```\n *\n * Ships only the core (thumbs buttons, modal, element targeting, submit).\n * Screenshot capture, the annotation editor, and the video subsystem\n * (including redaction) load on demand as separate chunks the first time each\n * is used — so a visitor who only gives a thumbs-up never downloads them.\n *\n * The full programmatic API (createVideoRecorder, openAnnotationEditor, …)\n * lives on the package's main entry (`@qaiddev/thumbs-embed`).\n */\n\nimport { QaidFeedback } from \"./embed\";\nimport { autoInit } from \"./bootstrap\";\n\nexport { QaidFeedback };\nexport type { FeedbackConfig } from \"./types\";\n\nautoInit();\n"],"names":["autoInit"],"mappings":";;AAsBAA,EAAA;"}
|
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
|
-
|
|
21
|
-
|
|
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. */
|