bible-note 0.6.0 → 0.6.2

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.
Files changed (25) hide show
  1. package/dist/bible-note.cjs +25 -26
  2. package/dist/bible-note.css +1 -1
  3. package/dist/bible-note.mjs +7167 -7205
  4. package/dist/chunks/{ContentEditable-C_wyHFh1.mjs → ContentEditable-BaXBKC3m.mjs} +1 -1
  5. package/dist/chunks/{ContentEditable-DgthEFHJ.cjs → ContentEditable-Ce294XLd.cjs} +2 -2
  6. package/dist/chunks/{ExcalidrawComponent-bEqDGYRW.cjs → ExcalidrawComponent-DdmtbuXc.cjs} +1 -1
  7. package/dist/chunks/{ExcalidrawComponent-iTobN_Hf.mjs → ExcalidrawComponent-OMjYgJCL.mjs} +2 -2
  8. package/dist/chunks/{ExcalidrawModal-DAEdxIBk.mjs → ExcalidrawModal-DSotOBGc.mjs} +2 -2
  9. package/dist/chunks/{ExcalidrawModal-Bbez9U5x.cjs → ExcalidrawModal-Db1LI01l.cjs} +2 -2
  10. package/dist/chunks/LexicalUtils.prod-CYv8J7Gq.cjs +3 -0
  11. package/dist/chunks/{LexicalUtils.prod-5zbJxaQa.mjs → LexicalUtils.prod-D2Igim2c.mjs} +28 -32
  12. package/dist/chunks/{MediaComponent-BTaaADsV.mjs → MediaComponent-D-AMKM9e.mjs} +3 -3
  13. package/dist/chunks/{MediaComponent-BhjGu3D-.cjs → MediaComponent-D69mEyrJ.cjs} +1 -1
  14. package/dist/chunks/{MediaResizer-C7UGQ3Kl.mjs → MediaResizer-C_ZJbHAU.mjs} +1 -1
  15. package/dist/chunks/{MediaResizer-DGw5LvDR.cjs → MediaResizer-Dzro5TVg.cjs} +1 -1
  16. package/dist/chunks/{StickyComponent-B8skHBRs.mjs → StickyComponent-B1GQ5G8T.mjs} +2 -2
  17. package/dist/chunks/{StickyComponent-C6xBrvrK.cjs → StickyComponent-DsQhvYHJ.cjs} +1 -1
  18. package/dist/chunks/{StickyNode-GgIn3-zY.cjs → StickyNode-B7sXOkJV.cjs} +1 -1
  19. package/dist/chunks/{StickyNode-B2B6di-N.mjs → StickyNode-C5dwEb8E.mjs} +3 -3
  20. package/dist/chunks/{TreeViewPlugin-DkUjU27t.cjs → TreeViewPlugin-8-uPZF17.cjs} +3 -3
  21. package/dist/chunks/{TreeViewPlugin-B0UnxNiM.mjs → TreeViewPlugin-Cd1KNBRW.mjs} +18 -18
  22. package/knowledge/development.md +2 -2
  23. package/knowledge/ui-rag.md +182 -134
  24. package/package.json +1 -1
  25. package/dist/chunks/LexicalUtils.prod-W-Xb5dGB.cjs +0 -3
@@ -1,6 +1,6 @@
1
1
  import { $ as e, $n as t, A as n, Ar as r, B as i, Bn as a, C as o, Cr as s, Ct as c, D as l, Dn as u, Dr as d, E as f, En as p, Er as m, Et as h, F as g, Fr as _, Ft as v, Gn as y, Gr as b, Gt as x, H as S, Hn as C, Hr as w, Ht as T, I as E, It as D, J as ee, Jt as O, K as te, Kt as ne, Ln as k, M as re, Nr as ie, Nt as ae, O as oe, P as se, Pn as ce, Pt as le, Q as ue, Qn as de, Qr as fe, R as pe, Rr as me, Rt as he, S as ge, Sn as _e, Tn as ve, Tr as ye, Un as be, Ut as xe, V as Se, Vn as Ce, Vr as A, W as we, Wn as Te, Wt as Ee, X as De, Xn as Oe, Y as ke, Yn as Ae, Yr as je, Yt as Me, Z as Ne, Zn as Pe, Zr as Fe, Zt as Ie, _ as Le, _r as Re, _t as ze, a as Be, ar as Ve, b as He, bn as j, br as Ue, bt as We, cn as Ge, cr as Ke, dn as qe, dr as Je, en as Ye, et as Xe, f as Ze, fn as Qe, gn as $e, gr as et, h as tt, i as nt, ii as rt, jn as it, jt as at, kn as ot, kr as st, l as ct, ln as lt, lr as ut, m as dt, mr as ft, mt as pt, n as mt, ni as ht, o as gt, oi as _t, on as vt, or as yt, p as bt, pr as xt, q as St, qn as Ct, qr as wt, qt as M, ri as Tt, rn as Et, rr as Dt, s as Ot, sr as kt, t as At, ti as jt, tn as Mt, tr as Nt, tt as N, un as Pt, ur as Ft, vn as It, vr as Lt, vt as P, w as Rt, wn as zt, wr as Bt, wt as Vt, x as Ht, xn as Ut, xr as Wt, xt as Gt, yn as Kt, yt as qt, zn as Jt, zt as Yt } from "./Lexical.prod-DYDuARMX.mjs";
2
- import { C as Xt, I as Zt, N as Qt, T as $t, a as en, f as tn, g as nn, i as rn, k as an, n as on, o as sn, s as cn, t as ln } from "./LexicalUtils.prod-5zbJxaQa.mjs";
3
- import { B as un, H as dn, I as fn, K as pn, M as mn, R as hn, V as gn, c as _n, d as vn, f as yn, h as bn, j as xn, l as Sn, m as Cn, n as wn, s as Tn, u as En, v as Dn, x as On, y as kn } from "./ContentEditable-C_wyHFh1.mjs";
2
+ import { C as Xt, F as Zt, M as Qt, O as $t, a as en, f as tn, g as nn, i as rn, n as an, o as on, s as sn, t as cn, w as ln } from "./LexicalUtils.prod-D2Igim2c.mjs";
3
+ import { B as un, H as dn, I as fn, K as pn, M as mn, R as hn, V as gn, c as _n, d as vn, f as yn, h as bn, j as xn, l as Sn, m as Cn, n as wn, s as Tn, u as En, v as Dn, x as On, y as kn } from "./ContentEditable-BaXBKC3m.mjs";
4
4
  import { t as An } from "./useLexicalEditable.prod-CgMasHPY.mjs";
5
5
  import * as jn from "react";
6
6
  import { Suspense as Mn, createContext as Nn, forwardRef as Pn, startTransition as Fn, useCallback as F, useContext as In, useEffect as I, useLayoutEffect as Ln, useMemo as Rn, useRef as L, useState as R } from "react";
@@ -446,10 +446,10 @@ function fr(t, r = un(rr)) {
446
446
  }, 0), t.registerCommand(ce, () => {
447
447
  let e = st(), t = N();
448
448
  return j(t) && (e.setFormat(t.format), e.setStyle(t.style)), we([e]), !0;
449
- }, 0), t.registerCommand(vt, () => ln((e) => {
449
+ }, 0), t.registerCommand(vt, () => cn((e) => {
450
450
  let t = e.getIndent();
451
451
  e.setIndent(t + 1);
452
- }), 0), t.registerCommand(xt, () => ln((e) => {
452
+ }), 0), t.registerCommand(xt, () => cn((e) => {
453
453
  let t = e.getIndent();
454
454
  t > 0 && e.setIndent(Math.max(0, t - 1));
455
455
  }), 0), t.registerCommand(s, (e) => {
@@ -473,10 +473,10 @@ function fr(t, r = un(rr)) {
473
473
  let t = N();
474
474
  if (_(t)) {
475
475
  let n = t.getNodes();
476
- if (n.length > 0) return e.preventDefault(), ur(n[0], an(n[0]) ? "next" : "previous"), !0;
476
+ if (n.length > 0) return e.preventDefault(), ur(n[0], $t(n[0]) ? "next" : "previous"), !0;
477
477
  }
478
478
  if (!j(t)) return !1;
479
- if (!e.shiftKey && ir(t, an(t.anchor.getNode()) ? "next" : "previous")) return e.preventDefault(), !0;
479
+ if (!e.shiftKey && ir(t, $t(t.anchor.getNode()) ? "next" : "previous")) return e.preventDefault(), !0;
480
480
  if (e.shiftKey || nr(t, "arrow", "start", r.peek()), Zt(t, !0)) {
481
481
  let n = e.shiftKey;
482
482
  return e.preventDefault(), Qt(t, n, !0), !0;
@@ -486,10 +486,10 @@ function fr(t, r = un(rr)) {
486
486
  let t = N();
487
487
  if (_(t)) {
488
488
  let n = t.getNodes();
489
- if (n.length > 0) return e.preventDefault(), ur(n[0], an(n[0]) ? "previous" : "next"), !0;
489
+ if (n.length > 0) return e.preventDefault(), ur(n[0], $t(n[0]) ? "previous" : "next"), !0;
490
490
  }
491
491
  if (!j(t)) return !1;
492
- if (!e.shiftKey && ir(t, an(t.anchor.getNode()) ? "previous" : "next")) return e.preventDefault(), !0;
492
+ if (!e.shiftKey && ir(t, $t(t.anchor.getNode()) ? "previous" : "next")) return e.preventDefault(), !0;
493
493
  if (e.shiftKey || nr(t, "arrow", "end", r.peek()), Zt(t, !1)) {
494
494
  let n = e.shiftKey;
495
495
  return e.preventDefault(), Qt(t, n, !1), !0;
@@ -505,7 +505,7 @@ function fr(t, r = un(rr)) {
505
505
  if (t.offset !== 0) return !1;
506
506
  let n = t.getNode();
507
507
  if (Tt(n)) return !1;
508
- let r = sn(n);
508
+ let r = on(n);
509
509
  return r.getIndent() > 0 && (r.is(n) || n.is(r.getFirstDescendant()));
510
510
  }(n)) return e.preventDefault(), t.dispatchCommand(xt, void 0);
511
511
  if (Oe && Wt) return !1;
@@ -557,8 +557,8 @@ function fr(t, r = un(rr)) {
557
557
  }, 0), t.registerCommand(Ct, () => {
558
558
  let e = N();
559
559
  return Fe(j(e) && ye(e.anchor.getNode()) !== null ? e : null), !0;
560
- }, 0), t.registerCommand(me, (e) => (_n(t, cn(e, ClipboardEvent) ? e : null), !0), 0), t.registerCommand(ae, (e) => (async function(e, t) {
561
- await _n(t, cn(e, ClipboardEvent) ? e : null), t.update(() => {
560
+ }, 0), t.registerCommand(me, (e) => (_n(t, sn(e, ClipboardEvent) ? e : null), !0), 0), t.registerCommand(ae, (e) => (async function(e, t) {
561
+ await _n(t, sn(e, ClipboardEvent) ? e : null), t.update(() => {
562
562
  let e = N();
563
563
  j(e) ? e.removeText() : _(e) && e.getNodes().forEach((e) => e.remove());
564
564
  }, { tag: "cut" });
@@ -566,7 +566,7 @@ function fr(t, r = un(rr)) {
566
566
  let [, n, r] = rn(e);
567
567
  return n.length > 0 && !r ? (t.dispatchCommand(Wn, n), !0) : k(e.target) && b(e.target) ? !1 : N() !== null && (function(e, t) {
568
568
  e.preventDefault(), t.update(() => {
569
- let n = N(), r = cn(e, InputEvent) || cn(e, KeyboardEvent) ? null : e.clipboardData;
569
+ let n = N(), r = sn(e, InputEvent) || sn(e, KeyboardEvent) ? null : e.clipboardData;
570
570
  r != null && n !== null && bn(r, n, t);
571
571
  }, { tag: "paste" });
572
572
  }(e, t), !0);
@@ -1860,7 +1860,7 @@ function ui(e, t, r, a, o) {
1860
1860
  let t = N();
1861
1861
  if (t) {
1862
1862
  if (!J(t) && !j(t)) return !1;
1863
- _n(r, cn(e, ClipboardEvent) ? e : null, En(t));
1863
+ _n(r, sn(e, ClipboardEvent) ? e : null, En(t));
1864
1864
  let n = p(e);
1865
1865
  return j(t) ? (t.removeText(), !0) : n;
1866
1866
  }
@@ -2634,10 +2634,10 @@ function Ki(e) {
2634
2634
  G(e.getParent()) ? e.isEmpty() && e.append(r()) : e.remove();
2635
2635
  }
2636
2636
  function qi(e) {
2637
- Y(e.getParent()) ? $t(e, U) : e.remove();
2637
+ Y(e.getParent()) ? ln(e, U) : e.remove();
2638
2638
  }
2639
2639
  function Ji(e) {
2640
- $t(e, G);
2640
+ ln(e, G);
2641
2641
  let [t] = Br(e, null, null), n = t.reduce((e, t) => Math.max(e, t.length), 0), i = e.getChildren();
2642
2642
  for (let e = 0; e < t.length; ++e) {
2643
2643
  let a = i[e];
@@ -2730,7 +2730,7 @@ function $i(e, t) {
2730
2730
  let i = N() || ke();
2731
2731
  if (!i || !j(i) || !r && ki(i.anchor.getNode())) return !1;
2732
2732
  let a = xr(Number(e), Number(t), n);
2733
- on(a);
2733
+ an(a);
2734
2734
  let o = a.getFirstDescendant();
2735
2735
  return O(o) && o.select(), !0;
2736
2736
  }(e, n.peek()), 0), e.registerCommand(ue, (t, r) => e === r && function(e, t) {
@@ -3580,7 +3580,7 @@ function Za(e, t) {
3580
3580
  let r = t.attributes.value;
3581
3581
  return e.registerCommand(Te, (t) => {
3582
3582
  let i = N();
3583
- if (!j(i) || i.isCollapsed() || !cn(t, ClipboardEvent) || t.clipboardData === null) return !1;
3583
+ if (!j(i) || i.isCollapsed() || !sn(t, ClipboardEvent) || t.clipboardData === null) return !1;
3584
3584
  let a = t.clipboardData.getData("text");
3585
3585
  return n(a) ? !i.getNodes().some((e) => P(e) || O(e) && !e.isSimpleText()) && (e.dispatchCommand(Ka, {
3586
3586
  ...r,
@@ -4329,7 +4329,7 @@ function Os(e, t, n, r, i) {
4329
4329
  }
4330
4330
  //#endregion
4331
4331
  //#region src/nodes/MediaNode.tsx
4332
- var ks = jn.lazy(() => import("./MediaComponent-BTaaADsV.mjs"));
4332
+ var ks = jn.lazy(() => import("./MediaComponent-D-AMKM9e.mjs"));
4333
4333
  function As(e) {
4334
4334
  return e.parentElement != null && e.parentElement.tagName === "LI" && e.previousSibling === null && e.getAttribute("aria-roledescription") === "checkbox";
4335
4335
  }
@@ -1,6 +1,6 @@
1
1
  # BibleNote — development guide
2
2
 
3
- > Generated by `npm run pack` for **bible-note@0.6.0** from the hand-written topics in `knowledge/development/` and the package's own type declarations. Do not edit this file — edit the sources and re-run the pack. End-user help for the editor UI lives in `ui-rag.md` next to it.
3
+ > Generated by `npm run pack` for **bible-note@0.6.2** from the hand-written topics in `knowledge/development/` and the package's own type declarations. Do not edit this file — edit the sources and re-run the pack. End-user help for the editor UI lives in `ui-rag.md` next to it.
4
4
 
5
5
  ## Contents
6
6
 
@@ -716,9 +716,9 @@ settings panel.
716
716
  | `AutocompletePlugin` | `src/plugins/AutocompletePlugin` | `isAutocomplete` |
717
717
  | `PageSizePreviewPlugin` | `src/plugins/PageSizePreviewPlugin` | always |
718
718
  | `PaperPageNavigationPlugin` | `src/plugins/PaperPageNavigationPlugin` | always |
719
- | `TableOfContentsPlugin` | `src/plugins/TableOfContentsPlugin` | `showTableOfContents` |
720
719
  | `ContextMenuPlugin` | `src/plugins/ContextMenuPlugin` | `shouldUseLexicalContextMenu` |
721
720
  | `SpecialTextPlugin` | `src/plugins/SpecialTextPlugin` | `shouldAllowHighlightingWithBrackets` |
721
+ | `ScrollToTopPlugin` | `src/plugins/ScrollToTopPlugin` | always |
722
722
  | `ActionsPlugin` | `src/plugins/ActionsPlugin` | always |
723
723
  | `TreeViewPlugin` | `src/plugins/TreeViewPlugin` | `showTreeView` |
724
724