viewgate-wrapper 1.11.11 → 1.11.13
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/components/ViewGateOverlay.d.ts.map +1 -1
- package/dist/components/ViewGateProvider.d.ts +2 -0
- package/dist/components/ViewGateProvider.d.ts.map +1 -1
- package/dist/viewgate-wrapper.js +7880 -2239
- package/dist/viewgate-wrapper.umd.cjs +15 -11
- package/package.json +3 -2
- package/dist/utils/captureUtils.d.ts +0 -24
- package/dist/utils/captureUtils.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viewgate-wrapper",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/viewgate-wrapper.umd.cjs",
|
|
6
6
|
"module": "./dist/viewgate-wrapper.js",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"html-to-image": "^1.11.13",
|
|
37
|
+
"html2canvas-pro": "^2.0.2",
|
|
37
38
|
"lucide-react": "^0.577.0",
|
|
38
39
|
"swr": "^2.4.1"
|
|
39
40
|
},
|
|
@@ -48,4 +49,4 @@
|
|
|
48
49
|
"vite": "^7.3.1",
|
|
49
50
|
"vite-plugin-css-injected-by-js": "^4.0.1"
|
|
50
51
|
}
|
|
51
|
-
}
|
|
52
|
+
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Advanced Capture Utility for ViewGate
|
|
3
|
-
* Designed to provide high-fidelity, displacement-free screenshots.
|
|
4
|
-
*/
|
|
5
|
-
export interface CaptureOptions {
|
|
6
|
-
quality?: number;
|
|
7
|
-
pixelRatio?: number;
|
|
8
|
-
skipElements?: string[];
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Captures the entire document or a specific root element.
|
|
12
|
-
* Optimized for high-resolution and CORS support.
|
|
13
|
-
*/
|
|
14
|
-
export declare const captureFullPage: (root?: HTMLElement, options?: CaptureOptions) => Promise<{
|
|
15
|
-
dataUrl: string;
|
|
16
|
-
scale: number;
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
}>;
|
|
20
|
-
/**
|
|
21
|
-
* Crops an image from a full-page screenshot based on a DOMRect.
|
|
22
|
-
*/
|
|
23
|
-
export declare const cropImageFromScreenshot: (screenshotDataUrl: string, rect: DOMRect, padding?: number, captureScale?: number) => Promise<string>;
|
|
24
|
-
//# sourceMappingURL=captureUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"captureUtils.d.ts","sourceRoot":"","sources":["../../src/utils/captureUtils.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,MAAM,WAAW,cAAc;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAU,OAAM,WAAsC,EAAE,UAAS,cAAmB,KAAG,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAsC3L,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAChC,mBAAmB,MAAM,EACzB,MAAM,OAAO,EACb,UAAS,MAAW,EACpB,eAAc,MAAU,KACzB,OAAO,CAAC,MAAM,CAwChB,CAAC"}
|