feedback-vos 1.0.46 → 1.0.49
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/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -413,7 +413,17 @@ function ScreenshotButton({
|
|
|
413
413
|
// Maintain proper container rendering
|
|
414
414
|
logging: false,
|
|
415
415
|
ignoreElements: (element) => {
|
|
416
|
-
|
|
416
|
+
const isWidget = element.hasAttribute("data-feedback-widget") || element.closest("[data-feedback-widget]") !== null;
|
|
417
|
+
if (isWidget) return true;
|
|
418
|
+
const tagName = element.tagName;
|
|
419
|
+
if (tagName === "IMG" || tagName === "CANVAS" || tagName === "VIDEO" || tagName === "SVG") {
|
|
420
|
+
const rect = element.getBoundingClientRect();
|
|
421
|
+
if (rect.width < 1 || rect.height < 1) {
|
|
422
|
+
console.warn("FeedbackWidget: Ignoring 0-sized media element:", tagName, element);
|
|
423
|
+
return true;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
return false;
|
|
417
427
|
}
|
|
418
428
|
});
|
|
419
429
|
if (canvas.width === 0 || canvas.height === 0) {
|