@siladev/qalam 0.1.12 → 0.1.13

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.
@@ -17263,7 +17263,7 @@ function Fl({ attrs: n, anchorRef: e, onSave: t, onClose: r, enableRepeat: s = !
17263
17263
  ), [l, a] = $e(!!n.basmalah), [c, u] = $e(n.showCitation === !1), [d, f] = $e(() => {
17264
17264
  const w = n.segments;
17265
17265
  return w?.length ? w : [Rs];
17266
- }), [h, p] = $e([]), [m, g] = $e(!1), y = e.current?.closest(".qalam-dark") != null, b = kt(null), E = kt(null), A = kt(null), S = j(() => {
17266
+ }), [h, p] = $e([]), [m, g] = $e(!1), y = e.current?.closest(".qalam-dark") != null || typeof document < "u" && document.documentElement.classList.contains("dark"), b = kt(null), E = kt(null), A = kt(null), S = j(() => {
17267
17267
  const w = b.current, D = e.current;
17268
17268
  if (!w || !D) return;
17269
17269
  const R = D.getBoundingClientRect(), W = w.offsetHeight, Ue = window.innerHeight - R.bottom - 8 < W && R.top > W;
@@ -1 +1 @@
1
- {"version":3,"file":"QuranRefPopover.d.ts","sourceRoot":"","sources":["../../../src/editor/components/QuranRefPopover.tsx"],"names":[],"mappings":"AAMA,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC/C,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACjD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAiBD,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,YAAmB,EAAE,EAAE,oBAAoB,+BAmV/G"}
1
+ {"version":3,"file":"QuranRefPopover.d.ts","sourceRoot":"","sources":["../../../src/editor/components/QuranRefPopover.tsx"],"names":[],"mappings":"AAMA,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC/C,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACjD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAiBD,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,YAAmB,EAAE,EAAE,oBAAoB,+BAqV/G"}
@@ -1,4 +1,4 @@
1
- import { Q as o, a as Q } from "../QalamEditor-Db0zWaPG.js";
1
+ import { Q as o, a as Q } from "../QalamEditor-CFrgHZav.js";
2
2
  export {
3
3
  o as QalamEditor,
4
4
  Q as QuranRef
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { validateAST as e } from "./schema/index.js";
2
- import { Q as s, a as t } from "./QalamEditor-Db0zWaPG.js";
2
+ import { Q as s, a as t } from "./QalamEditor-CFrgHZav.js";
3
3
  import { Q as f } from "./QalamRenderer-h6i48SCj.js";
4
4
  import { resolveAST as d } from "./resolver/index.js";
5
5
  import { g as Q, a as p, b as u, i as S, l as g, r as i } from "./lookup-CFbcujyG.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siladev/qalam",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Islamic content editor with Quran verse references",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",