@merittdev/horus-lens 0.1.0 → 0.1.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/dist/browser.cjs +83 -2
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +2 -2
- package/dist/{chunk-A6SNBIRS.js → chunk-CRV65EEY.js} +40 -2
- package/dist/chunk-CRV65EEY.js.map +1 -0
- package/dist/{chunk-MTQ3IO4U.js → chunk-UB7YYHI4.js} +46 -3
- package/dist/{chunk-MTQ3IO4U.js.map → chunk-UB7YYHI4.js.map} +1 -1
- package/dist/index.cjs +45 -2
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-BA540Fae.d.ts → index.d-DeLYS02n.d.ts} +13 -0
- package/dist/{index.d-DOCLVJGS.d.cts → index.d-sNoEEgRg.d.cts} +13 -0
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +1 -1
- package/dist/lens.min.js +6 -6
- package/dist/lens.min.js.map +1 -1
- package/dist/react.cjs +83 -2
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-A6SNBIRS.js.map +0 -1
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { A as AppContext, R as ReportMetadata, T as TargetElement, a as Annotation } from './index.d-Bzgtl7-B.js';
|
|
2
2
|
|
|
3
|
+
/** A sub-region to crop to, in DOCUMENT CSS pixels (same units as the DOM). */
|
|
4
|
+
interface ScreenshotCrop {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
3
11
|
interface LensConfig {
|
|
4
12
|
accessId: string;
|
|
5
13
|
endpoint?: string;
|
|
@@ -38,6 +46,11 @@ interface SubmitReportInput {
|
|
|
38
46
|
}[];
|
|
39
47
|
/** Element hidden from the screenshot capture (e.g. the overlay host). */
|
|
40
48
|
excludeFromScreenshot?: HTMLElement;
|
|
49
|
+
/**
|
|
50
|
+
* Crop the screenshot to this region, in DOCUMENT CSS pixels (e.g. the
|
|
51
|
+
* bounding box of marked areas). Omit for a full-page capture.
|
|
52
|
+
*/
|
|
53
|
+
screenshotCrop?: ScreenshotCrop;
|
|
41
54
|
/** Selective data opt-outs; each flag defaults to `true`. */
|
|
42
55
|
include?: SubmitReportIncludes;
|
|
43
56
|
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { A as AppContext, R as ReportMetadata, T as TargetElement, a as Annotation } from './index.d-Bzgtl7-B.cjs';
|
|
2
2
|
|
|
3
|
+
/** A sub-region to crop to, in DOCUMENT CSS pixels (same units as the DOM). */
|
|
4
|
+
interface ScreenshotCrop {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
3
11
|
interface LensConfig {
|
|
4
12
|
accessId: string;
|
|
5
13
|
endpoint?: string;
|
|
@@ -38,6 +46,11 @@ interface SubmitReportInput {
|
|
|
38
46
|
}[];
|
|
39
47
|
/** Element hidden from the screenshot capture (e.g. the overlay host). */
|
|
40
48
|
excludeFromScreenshot?: HTMLElement;
|
|
49
|
+
/**
|
|
50
|
+
* Crop the screenshot to this region, in DOCUMENT CSS pixels (e.g. the
|
|
51
|
+
* bounding box of marked areas). Omit for a full-page capture.
|
|
52
|
+
*/
|
|
53
|
+
screenshotCrop?: ScreenshotCrop;
|
|
41
54
|
/** Selective data opt-outs; each flag defaults to `true`. */
|
|
42
55
|
include?: SubmitReportIncludes;
|
|
43
56
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -662,6 +662,14 @@ type ApiError = z.infer<typeof ApiErrorSchema>;
|
|
|
662
662
|
declare const SDK_NAME = "@merittdev/horus-lens";
|
|
663
663
|
declare const SDK_VERSION = "0.0.1";
|
|
664
664
|
|
|
665
|
+
/** A sub-region to crop to, in DOCUMENT CSS pixels (same units as the DOM). */
|
|
666
|
+
interface ScreenshotCrop {
|
|
667
|
+
x: number;
|
|
668
|
+
y: number;
|
|
669
|
+
width: number;
|
|
670
|
+
height: number;
|
|
671
|
+
}
|
|
672
|
+
|
|
665
673
|
interface LensConfig {
|
|
666
674
|
accessId: string;
|
|
667
675
|
endpoint?: string;
|
|
@@ -700,6 +708,11 @@ interface SubmitReportInput {
|
|
|
700
708
|
}[];
|
|
701
709
|
/** Element hidden from the screenshot capture (e.g. the overlay host). */
|
|
702
710
|
excludeFromScreenshot?: HTMLElement;
|
|
711
|
+
/**
|
|
712
|
+
* Crop the screenshot to this region, in DOCUMENT CSS pixels (e.g. the
|
|
713
|
+
* bounding box of marked areas). Omit for a full-page capture.
|
|
714
|
+
*/
|
|
715
|
+
screenshotCrop?: ScreenshotCrop;
|
|
703
716
|
/** Selective data opt-outs; each flag defaults to `true`. */
|
|
704
717
|
include?: SubmitReportIncludes;
|
|
705
718
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -662,6 +662,14 @@ type ApiError = z.infer<typeof ApiErrorSchema>;
|
|
|
662
662
|
declare const SDK_NAME = "@merittdev/horus-lens";
|
|
663
663
|
declare const SDK_VERSION = "0.0.1";
|
|
664
664
|
|
|
665
|
+
/** A sub-region to crop to, in DOCUMENT CSS pixels (same units as the DOM). */
|
|
666
|
+
interface ScreenshotCrop {
|
|
667
|
+
x: number;
|
|
668
|
+
y: number;
|
|
669
|
+
width: number;
|
|
670
|
+
height: number;
|
|
671
|
+
}
|
|
672
|
+
|
|
665
673
|
interface LensConfig {
|
|
666
674
|
accessId: string;
|
|
667
675
|
endpoint?: string;
|
|
@@ -700,6 +708,11 @@ interface SubmitReportInput {
|
|
|
700
708
|
}[];
|
|
701
709
|
/** Element hidden from the screenshot capture (e.g. the overlay host). */
|
|
702
710
|
excludeFromScreenshot?: HTMLElement;
|
|
711
|
+
/**
|
|
712
|
+
* Crop the screenshot to this region, in DOCUMENT CSS pixels (e.g. the
|
|
713
|
+
* bounding box of marked areas). Omit for a full-page capture.
|
|
714
|
+
*/
|
|
715
|
+
screenshotCrop?: ScreenshotCrop;
|
|
703
716
|
/** Selective data opt-outs; each flag defaults to `true`. */
|
|
704
717
|
include?: SubmitReportIncludes;
|
|
705
718
|
}
|