@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.
@@ -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
  }
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  TargetElementSchema,
28
28
  isAccessId,
29
29
  isAccessSecret
30
- } from "./chunk-MTQ3IO4U.js";
30
+ } from "./chunk-UB7YYHI4.js";
31
31
  export {
32
32
  ACCESS_ID_PREFIX,
33
33
  ACCESS_SECRET_PREFIX,