@beyondwords/player 0.0.0-alpha5 → 0.0.0-alpha6

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/es.js CHANGED
@@ -4278,7 +4278,7 @@ function Vf(t) {
4278
4278
  column: e[4] ? +e[4] : null
4279
4279
  } : null;
4280
4280
  }
4281
- const Yf = "@beyondwords/player", Fa = "0.0.0-alpha5", ti = (t) => {
4281
+ const Yf = "@beyondwords/player", Fa = "0.0.0-alpha6", ti = (t) => {
4282
4282
  const e = Object.getOwnPropertyDescriptors(t), i = Object.entries(e).filter(([s, { set: o }]) => o).map(([s, o]) => s).filter((s) => !zf.has(s)).map((s) => [s, t[s]]);
4283
4283
  return Object.fromEntries(i);
4284
4284
  }, zf = /* @__PURE__ */ new Set([
@@ -4335,7 +4335,11 @@ const Nr = "data-beyondwords-marker", Ai = ["beyondwords-highlight", "bwp"], Ba
4335
4335
  const i = Ua(n);
4336
4336
  tc(i, r) ? i.classList.remove(e) : i && (Na({ fromElement: i, toElement: n }), i.remove(), Ba.forEach((s) => n.classList.remove(s)));
4337
4337
  }
4338
- }, qf = () => [...document.querySelectorAll(`[${Nr}]`)], $f = (t) => t != null && t.marker ? document.querySelectorAll(`[${Nr}="${t.marker}"]`) : [], Ua = (t) => t.querySelector(`mark.${Ai.join(".")}`), ec = (t) => {
4338
+ }, qf = () => [...document.querySelectorAll(`[${Nr}]`)], $f = (t) => t != null && t.marker ? document.querySelectorAll(`[${Nr}="${t.marker}"]`) : [], Ua = (t) => {
4339
+ for (const e of t.children)
4340
+ if (!(!(e.nodeName.toLowerCase() === "mark") || !Ai.every((i) => e.classList.contains(i))))
4341
+ return e;
4342
+ }, ec = (t) => {
4339
4343
  const e = document.createElement("mark");
4340
4344
  return e.classList.add(...Ai), t.appendChild(e), e;
4341
4345
  }, tc = (t, e) => {