@eko-ai/eko 3.1.4 → 3.1.5
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.esm.js
CHANGED
|
@@ -36061,18 +36061,14 @@ function run_build_dom_tree() {
|
|
|
36061
36061
|
}
|
|
36062
36062
|
return false;
|
|
36063
36063
|
}
|
|
36064
|
-
// Helper function to check if element exists
|
|
36065
|
-
function isElementExist(element) {
|
|
36066
|
-
const style = getCachedComputedStyle(element);
|
|
36067
|
-
return (style?.visibility !== 'hidden' &&
|
|
36068
|
-
style?.display !== 'none');
|
|
36069
|
-
}
|
|
36070
36064
|
// Helper function to check if element is visible
|
|
36071
36065
|
function isElementVisible(element) {
|
|
36072
36066
|
if (element.offsetWidth === 0 && element.offsetHeight === 0) {
|
|
36073
36067
|
return false;
|
|
36074
36068
|
}
|
|
36075
|
-
|
|
36069
|
+
const style = getCachedComputedStyle(element);
|
|
36070
|
+
return (style?.visibility !== 'hidden' &&
|
|
36071
|
+
style?.display !== 'none');
|
|
36076
36072
|
}
|
|
36077
36073
|
// Helper function to check if element is the top element at its position
|
|
36078
36074
|
function isTopElement(element) {
|
|
@@ -36226,7 +36222,8 @@ function run_build_dom_tree() {
|
|
|
36226
36222
|
}
|
|
36227
36223
|
}
|
|
36228
36224
|
else {
|
|
36229
|
-
|
|
36225
|
+
const style = getCachedComputedStyle(node);
|
|
36226
|
+
if (style && style.display !== 'none') {
|
|
36230
36227
|
const children = Array.from(node.children).map((child) => buildDomTree(child, parentIframe)).filter(child => child !== null);
|
|
36231
36228
|
nodeData.children.push(...children);
|
|
36232
36229
|
}
|