hoodini-viz 0.2.2 → 0.2.3

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.
@@ -10671,17 +10671,28 @@ const zw = "hoodini_theme", p9 = d9(null), zc = () => {
10671
10671
  a(m);
10672
10672
  const y = document.documentElement;
10673
10673
  m === "dark" ? (y.classList.add("dark"), y.classList.remove("light")) : (y.classList.remove("dark"), y.classList.add("light"));
10674
- let C, b;
10674
+ let C = null;
10675
+ try {
10676
+ C = new MutationObserver((w) => {
10677
+ for (const E of w)
10678
+ if (E.type === "attributes" && E.attributeName === "class") {
10679
+ const x = y.classList.contains("dark"), D = o;
10680
+ x && D !== "dark" ? (a("dark"), s("dark")) : !x && D !== "light" && (a("light"), s("light"));
10681
+ }
10682
+ }), C.observe(y, { attributes: !0, attributeFilter: ["class"] });
10683
+ } catch {
10684
+ }
10685
+ let b, _;
10675
10686
  if (i === "system" && typeof window < "u" && window.matchMedia)
10676
10687
  try {
10677
- C = window.matchMedia("(prefers-color-scheme: dark)"), b = (_) => {
10678
- const w = _.matches ? "dark" : "light";
10679
- w === "dark" ? (y.classList.add("dark"), y.classList.remove("light")) : (y.classList.remove("dark"), y.classList.add("light")), a(w);
10680
- }, C.addEventListener ? C.addEventListener("change", b) : C.addListener && C.addListener(b);
10688
+ b = window.matchMedia("(prefers-color-scheme: dark)"), _ = (w) => {
10689
+ const E = w.matches ? "dark" : "light";
10690
+ E === "dark" ? (y.classList.add("dark"), y.classList.remove("light")) : (y.classList.remove("dark"), y.classList.add("light")), a(E);
10691
+ }, b.addEventListener ? b.addEventListener("change", _) : b.addListener && b.addListener(_);
10681
10692
  } catch {
10682
10693
  }
10683
10694
  return () => {
10684
- C && b && (C.removeEventListener ? C.removeEventListener("change", b) : C.removeListener && C.removeListener(b));
10695
+ C && C.disconnect(), b && _ && (b.removeEventListener ? b.removeEventListener("change", _) : b.removeListener && b.removeListener(_));
10685
10696
  };
10686
10697
  }, [i]), /* @__PURE__ */ B(p9.Provider, { value: {
10687
10698
  theme: i,
@@ -16490,11 +16501,10 @@ function d$({ className: t, ...e }) {
16490
16501
  {
16491
16502
  "data-slot": "sidebar-inset",
16492
16503
  className: si(
16493
- "bg-background relative flex w-full flex-1 flex-col",
16504
+ "bg-background relative flex w-full flex-1 flex-col min-h-0 overflow-hidden",
16494
16505
  "md:peer-data-[variant=inset]:my-2 md:peer-data-[variant=inset]:mr-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",
16495
16506
  t
16496
16507
  ),
16497
- style: { maxHeight: "100vh", overflow: "hidden", isolation: "isolate" },
16498
16508
  ...e
16499
16509
  }
16500
16510
  );
@@ -22139,7 +22149,7 @@ const NW = () => {
22139
22149
  })(u.current);
22140
22150
  let oe = window.$3Dmol;
22141
22151
  if (!oe) {
22142
- const Xe = await import("./3Dmol--3ohBuYp.js").then((ot) => ot._);
22152
+ const Xe = await import("./3Dmol-C30ZsCRh.js").then((ot) => ot._);
22143
22153
  oe = Xe.default || Xe, window.$3Dmol = oe;
22144
22154
  }
22145
22155
  if (d) {
@@ -62269,7 +62279,7 @@ const as = !1, xM = it.forwardRef(({
62269
62279
  id: "phylo-tree-viewer-container",
62270
62280
  ref: $i,
62271
62281
  style: {
62272
- width: "100vw",
62282
+ width: "100%",
62273
62283
  height: "100%",
62274
62284
  position: "relative",
62275
62285
  overflow: "hidden",
@@ -62329,7 +62339,7 @@ const as = !1, xM = it.forwardRef(({
62329
62339
  layers: Ml,
62330
62340
  pickingRadius: 100,
62331
62341
  style: {
62332
- width: "100vw",
62342
+ width: "100%",
62333
62343
  height: b ? `${Si}px` : `${Si}px`,
62334
62344
  position: "absolute",
62335
62345
  left: "0",
@@ -71848,7 +71858,7 @@ function zde(t, e, n, r, i) {
71848
71858
  scrollRef: m
71849
71859
  };
71850
71860
  }
71851
- const Ude = A.lazy(async () => await import("./data-grid-overlay-editor-Dh2mDScX.js"));
71861
+ const Ude = A.lazy(async () => await import("./data-grid-overlay-editor-BXNMfm9z.js"));
71852
71862
  let $de = 0;
71853
71863
  function Hde(t) {
71854
71864
  return Ple(kB(kB(t).filter((e) => e.span !== void 0).map((e) => Yu((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
@@ -73988,7 +73998,7 @@ function pfe(t, e, n, r, i) {
73988
73998
  height: d - 1
73989
73999
  };
73990
74000
  }
73991
- const mfe = A.lazy(async () => await import("./number-overlay-editor-BOabzjpX.js")), yfe = {
74001
+ const mfe = A.lazy(async () => await import("./number-overlay-editor-6q3QaWsc.js")), yfe = {
73992
74002
  getAccessibilityString: (t) => t.data?.toString() ?? "",
73993
74003
  kind: dn.Number,
73994
74004
  needsHover: (t) => t.hoverEffect === !0,
@@ -1,6 +1,6 @@
1
1
  import * as ie from "react";
2
2
  import Q, { useRef as X, useState as xe, useEffect as ve, useMemo as Fe, useLayoutEffect as je } from "react";
3
- import { s as Le } from "./index-DqedK8nv.js";
3
+ import { s as Le } from "./index-ciHcxGZv.js";
4
4
  const Me = /* @__PURE__ */ Le("div")({
5
5
  name: "NumberOverlayEditorStyle",
6
6
  class: "gdg-n15fjm3e",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hoodini-viz",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Interactive phylogenetic and genomic visualization library",
5
5
  "type": "module",
6
6
  "main": "./dist/hoodini-viz.umd.js",