@uxbertlabs/reportly 1.0.10 → 1.0.11
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/features/screenshot.d.ts +1 -0
- package/dist/features/screenshot.d.ts.map +1 -1
- package/dist/reportly.cjs.js +11 -0
- package/dist/reportly.cjs.js.map +1 -1
- package/dist/reportly.esm.js +11 -0
- package/dist/reportly.esm.js.map +1 -1
- package/dist/reportly.js +11 -0
- package/dist/reportly.js.map +1 -1
- package/dist/reportly.min.js +1 -1
- package/dist/reportly.min.js.map +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../src/features/screenshot.ts"],"names":[],"mappings":"AAGA,cAAM,UAAU;IACd,OAAO,CAAC,iBAAiB,CAAgB;;
|
1
|
+
{"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../src/features/screenshot.ts"],"names":[],"mappings":"AAGA,cAAM,UAAU;IACd,OAAO,CAAC,iBAAiB,CAAgB;;IAKzC,OAAO,CAAC,IAAI;IAGN,OAAO,CAAC,IAAI,GAAE,UAAU,GAAG,UAAuB,GAAG,OAAO,CAAC,MAAM,CAAC;IAwH1E,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,kBAAkB;IAY1B,aAAa,IAAI,MAAM,GAAG,IAAI;IAI9B,KAAK,IAAI,IAAI;CAGd;AAED,eAAe,UAAU,CAAC"}
|
package/dist/reportly.cjs.js
CHANGED
@@ -9449,6 +9449,9 @@ class Screenshot {
|
|
9449
9449
|
constructor() {
|
9450
9450
|
this.currentScreenshot = null;
|
9451
9451
|
}
|
9452
|
+
wait(ms) {
|
9453
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
9454
|
+
}
|
9452
9455
|
async capture(mode = "fullpage") {
|
9453
9456
|
try {
|
9454
9457
|
// Hide UXbert UI elements before capturing
|
@@ -9468,6 +9471,10 @@ class Screenshot {
|
|
9468
9471
|
windowHeight: window.innerHeight,
|
9469
9472
|
x: window.scrollX,
|
9470
9473
|
y: window.scrollY,
|
9474
|
+
onclone: async () => {
|
9475
|
+
// Wait 1 second after cloning to let animations complete
|
9476
|
+
await this.wait(1000);
|
9477
|
+
},
|
9471
9478
|
ignoreElements: (element) => {
|
9472
9479
|
// Skip cross-origin images that might cause issues
|
9473
9480
|
if (element.tagName === "IMG") {
|
@@ -9505,6 +9512,10 @@ class Screenshot {
|
|
9505
9512
|
logging: false,
|
9506
9513
|
width: fullPageWidth,
|
9507
9514
|
height: fullPageHeight,
|
9515
|
+
onclone: async () => {
|
9516
|
+
// Wait 1 second after cloning to let animations complete
|
9517
|
+
await this.wait(1000);
|
9518
|
+
},
|
9508
9519
|
ignoreElements: (element) => {
|
9509
9520
|
// Skip cross-origin images that might cause issues
|
9510
9521
|
if (element.tagName === "IMG") {
|