instruckt 0.4.17 → 0.4.19

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.
@@ -2373,13 +2373,9 @@ function nodeFilter(node) {
2373
2373
  return true;
2374
2374
  }
2375
2375
  function hasShadowDOM() {
2376
- var _a2;
2377
- if ((_a2 = document.adoptedStyleSheets) == null ? void 0 : _a2.length) return true;
2378
- const el = document.querySelector("[data-flux], flux\\:button, flux\\:input, [is]");
2379
- if (el) return true;
2380
- const body = document.body;
2381
- for (const child of body.querySelectorAll("*")) {
2382
- if (child.shadowRoot) return true;
2376
+ if (document.querySelector("[data-flux], flux\\:button, flux\\:input")) return true;
2377
+ for (const child of document.body.querySelectorAll("*")) {
2378
+ if (child.shadowRoot && !child.hasAttribute("data-instruckt")) return true;
2383
2379
  }
2384
2380
  return false;
2385
2381
  }