@uxbertlabs/reportly 1.0.9 → 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.
@@ -9447,6 +9447,9 @@ class Screenshot {
9447
9447
  constructor() {
9448
9448
  this.currentScreenshot = null;
9449
9449
  }
9450
+ wait(ms) {
9451
+ return new Promise((resolve) => setTimeout(resolve, ms));
9452
+ }
9450
9453
  async capture(mode = "fullpage") {
9451
9454
  try {
9452
9455
  // Hide UXbert UI elements before capturing
@@ -9458,7 +9461,7 @@ class Screenshot {
9458
9461
  canvas = await html2canvas(document.body, {
9459
9462
  // foreignObjectRendering: true,
9460
9463
  useCORS: true,
9461
- allowTaint: true,
9464
+ allowTaint: false,
9462
9465
  logging: true,
9463
9466
  width: window.innerWidth,
9464
9467
  height: window.innerHeight,
@@ -9466,6 +9469,10 @@ class Screenshot {
9466
9469
  windowHeight: window.innerHeight,
9467
9470
  x: window.scrollX,
9468
9471
  y: window.scrollY,
9472
+ onclone: async () => {
9473
+ // Wait 1 second after cloning to let animations complete
9474
+ await this.wait(1000);
9475
+ },
9469
9476
  ignoreElements: (element) => {
9470
9477
  // Skip cross-origin images that might cause issues
9471
9478
  if (element.tagName === "IMG") {
@@ -9503,6 +9510,10 @@ class Screenshot {
9503
9510
  logging: false,
9504
9511
  width: fullPageWidth,
9505
9512
  height: fullPageHeight,
9513
+ onclone: async () => {
9514
+ // Wait 1 second after cloning to let animations complete
9515
+ await this.wait(1000);
9516
+ },
9506
9517
  ignoreElements: (element) => {
9507
9518
  // Skip cross-origin images that might cause issues
9508
9519
  if (element.tagName === "IMG") {