@qaiddev/thumbs-embed 1.11.0 → 1.12.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/LICENSE +21 -0
- package/README.md +39 -13
- package/dist/a11y-dialog.d.ts +77 -0
- package/dist/a11y.d.ts +6 -65
- package/dist/chunks/annotate-DGyRcgPt.js +2 -0
- package/dist/chunks/{annotate-5zJWs-aB.js.map → annotate-DGyRcgPt.js.map} +1 -1
- package/dist/chunks/core-BsR7oV99.js +26 -0
- package/dist/chunks/core-BsR7oV99.js.map +1 -0
- package/dist/chunks/dom-scpOS8nl.js +2 -0
- package/dist/chunks/{dom-DvdtcUS8.js.map → dom-scpOS8nl.js.map} +1 -1
- package/dist/chunks/modal-DYxcs1Gm.js +2 -0
- package/dist/chunks/modal-DYxcs1Gm.js.map +1 -0
- package/dist/chunks/recording-BUw5-5Rf.js +2 -0
- package/dist/chunks/{recording-CPzxRL7f.js.map → recording-BUw5-5Rf.js.map} +1 -1
- package/dist/chunks/screenshot-CNe1irEz.js +2 -0
- package/dist/chunks/{screenshot-DYOKg2bS.js.map → screenshot-CNe1irEz.js.map} +1 -1
- package/dist/chunks/screenshot-dom-ZYP2w2h0.js +2 -0
- package/dist/chunks/{screenshot-dom-CME7tYRE.js.map → screenshot-dom-ZYP2w2h0.js.map} +1 -1
- package/dist/chunks/send-C26DRoYc.js +2 -0
- package/dist/chunks/send-C26DRoYc.js.map +1 -0
- package/dist/chunks/targeting-CMUEe-7C.js +6 -0
- package/dist/chunks/{targeting-mahtuPpo.js.map → targeting-CMUEe-7C.js.map} +1 -1
- package/dist/chunks/video-BSP4s2te.js +2 -0
- package/dist/chunks/{video-Bd_29-rK.js.map → video-BSP4s2te.js.map} +1 -1
- package/dist/embed.d.ts +26 -31
- package/dist/index.js +1495 -1390
- package/dist/index.js.map +1 -1
- package/dist/loader.d.ts +6 -4
- package/dist/loader.js +1 -6
- package/dist/loader.js.map +1 -1
- package/dist/modal-positioning.d.ts +0 -27
- package/dist/qaid.umd.cjs +14 -14
- package/dist/qaid.umd.cjs.map +1 -1
- package/dist/quest-config.d.ts +2 -0
- package/dist/quest-launcher.d.ts +1 -3
- package/dist/send.d.ts +60 -0
- package/dist/tooltip-positioning.d.ts +31 -0
- package/package.json +2 -2
- package/dist/chunks/annotate-5zJWs-aB.js +0 -357
- package/dist/chunks/core-CL1dwdaN.js +0 -1342
- package/dist/chunks/core-CL1dwdaN.js.map +0 -1
- package/dist/chunks/dom-DvdtcUS8.js +0 -17
- package/dist/chunks/modal-DccueVYZ.js +0 -222
- package/dist/chunks/modal-DccueVYZ.js.map +0 -1
- package/dist/chunks/recording-CPzxRL7f.js +0 -323
- package/dist/chunks/screenshot-DYOKg2bS.js +0 -33
- package/dist/chunks/screenshot-dom-CME7tYRE.js +0 -63
- package/dist/chunks/targeting-mahtuPpo.js +0 -298
- package/dist/chunks/video-Bd_29-rK.js +0 -214
package/dist/loader.d.ts
CHANGED
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
* <script type="module" src="…/loader.js" data-endpoint="/api/feedback"></script>
|
|
6
6
|
* ```
|
|
7
7
|
*
|
|
8
|
-
* Ships only the core (
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* Ships only the core (the buttons, their styles, the config parser). The
|
|
9
|
+
* click path (send flow, message box, element targeting) loads as separate
|
|
10
|
+
* chunks when the pointer or focus reaches the buttons, or on idle. Screenshot
|
|
11
|
+
* capture, the annotation editor, and the video subsystem (including
|
|
12
|
+
* redaction) load on demand the first time each is used — so a visitor who
|
|
13
|
+
* only gives a thumbs-up never downloads them.
|
|
12
14
|
*
|
|
13
15
|
* The full programmatic API (createVideoRecorder, openAnnotationEditor, …)
|
|
14
16
|
* lives on the package's main entry (`@qaiddev/thumbs-embed`).
|
package/dist/loader.js
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import { a
|
|
2
|
-
import { Q as e } from "./chunks/core-CL1dwdaN.js";
|
|
3
|
-
a();
|
|
4
|
-
export {
|
|
5
|
-
e as QaidFeedback
|
|
6
|
-
};
|
|
1
|
+
import{b as o}from"./chunks/core-BsR7oV99.js";import{Q as a}from"./chunks/core-BsR7oV99.js";o();export{a as QaidFeedback};
|
|
7
2
|
//# sourceMappingURL=loader.js.map
|
package/dist/loader.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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 (
|
|
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 (the buttons, their styles, the config parser). The\n * click path (send flow, message box, element targeting) loads as separate\n * chunks when the pointer or focus reaches the buttons, or on idle. Screenshot\n * capture, the annotation editor, and the video subsystem (including\n * redaction) load on demand the first time each is used — so a visitor who\n * 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":"4FAwBAA,EAAA"}
|
|
@@ -37,33 +37,6 @@ export declare function calculateArrowPosition(bounds: SelectedBounds, modalLeft
|
|
|
37
37
|
* Calculate complete modal position based on selected element bounds
|
|
38
38
|
*/
|
|
39
39
|
export declare function calculateModalPosition(bounds: SelectedBounds, viewportWidth: number, viewportHeight: number, dimensions?: ModalDimensions): ModalPosition;
|
|
40
|
-
export interface TooltipPositionOptions {
|
|
41
|
-
/** Gap in pixels between anchor and tooltip, and from viewport edges */
|
|
42
|
-
gap?: number;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Calculate tooltip position relative to an anchor, clamped to the viewport.
|
|
46
|
-
* Pure function: no DOM access — caller passes measured rects and viewport size.
|
|
47
|
-
*
|
|
48
|
-
* Strategy:
|
|
49
|
-
* - Place below the anchor by default
|
|
50
|
-
* - Flip above if below would overflow vertically
|
|
51
|
-
* - Clamp horizontally to viewport, then vertically to viewport
|
|
52
|
-
*/
|
|
53
|
-
export declare function calculateTooltipPosition(anchor: {
|
|
54
|
-
top: number;
|
|
55
|
-
bottom: number;
|
|
56
|
-
left: number;
|
|
57
|
-
}, tooltip: {
|
|
58
|
-
width: number;
|
|
59
|
-
height: number;
|
|
60
|
-
}, viewport: {
|
|
61
|
-
width: number;
|
|
62
|
-
height: number;
|
|
63
|
-
}, options?: TooltipPositionOptions): {
|
|
64
|
-
top: number;
|
|
65
|
-
left: number;
|
|
66
|
-
};
|
|
67
40
|
/**
|
|
68
41
|
* Calculate both modal and arrow positions
|
|
69
42
|
*/
|