yamlover 0.3.25 → 0.3.48

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 (35) hide show
  1. package/README.md +15 -9
  2. package/bin/yamlover.js +14 -6
  3. package/dist/agent-docs/AGENTS.md +28 -2
  4. package/dist/builtin-taxonomy/$defs/.yamlover/meta.yamlover +6 -0
  5. package/dist/builtin-taxonomy/$defs/bullets +12 -0
  6. package/dist/builtin-taxonomy/$defs/chapter +19 -14
  7. package/dist/builtin-taxonomy/$defs/numbered +12 -0
  8. package/dist/builtin-taxonomy/$defs/table +17 -10
  9. package/dist/builtin-taxonomy/$defs/task +4 -3
  10. package/dist/client/assets/decoded-Dfxf1BRR.js +1 -0
  11. package/dist/client/assets/djvu-BAFaxONw.js +1 -0
  12. package/dist/client/assets/{docx-C3gzsgKj.js → docx-aCX_2O0_.js} +1 -1
  13. package/dist/client/assets/{heic-CZ82O7cO.js → heic-8pzTwsCx.js} +2 -2
  14. package/dist/client/assets/imagemap-Bp26n33x.js +1 -0
  15. package/dist/client/assets/index-BohJjyVY.css +1 -0
  16. package/dist/client/assets/index-DXrtwPKE.js +754 -0
  17. package/dist/client/assets/map-Dtw0_sOf.js +1 -0
  18. package/dist/client/assets/{openable-d9huG_69.js → openable-Banncb36.js} +2 -2
  19. package/dist/client/assets/paged-BGVPKMC7.js +1 -0
  20. package/dist/client/assets/{pdf-DYI9E6LP.js → pdf-eI1AsxuB.js} +5 -5
  21. package/dist/client/assets/psd-BD_hUWIy.js +11 -0
  22. package/dist/client/assets/{spreadsheet-DQ1DIIfm.js → spreadsheet-D_yjjR8a.js} +1 -1
  23. package/dist/client/assets/tiff-BewNDYwu.js +1 -0
  24. package/dist/client/index.html +2 -2
  25. package/dist/server.js +2496 -627
  26. package/package.json +2 -1
  27. package/dist/client/assets/decoded-BfD5vW9k.js +0 -1
  28. package/dist/client/assets/djvu-DNElocuz.js +0 -1
  29. package/dist/client/assets/imagemap-B0by6U04.js +0 -1
  30. package/dist/client/assets/index-C3Raqez8.css +0 -1
  31. package/dist/client/assets/index-DHpG_wBG.js +0 -665
  32. package/dist/client/assets/map-Byy6U5tc.js +0 -1
  33. package/dist/client/assets/paged-DFA2Muzj.js +0 -1
  34. package/dist/client/assets/psd-CmNn7r6o.js +0 -11
  35. package/dist/client/assets/tiff-BoTWsGfS.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as i,p as B,w as C}from"./index-DXrtwPKE.js";function x(s,l,f){const c=i.useRef(B()).current,a=i.useRef(null),u=i.useRef(!1),p=i.useRef(!1),m=i.useRef(0),g=e=>{const t=s.current;return e.getBoundingClientRect().top-t.getBoundingClientRect().top+t.scrollTop},d=()=>{const e=s.current,t=l();if(!e||!t.length)return 1;const n=e.getBoundingClientRect().top+e.clientHeight*.3;for(let r=0;r<t.length;r++){const o=t[r]?.getBoundingClientRect();if(o&&n<o.bottom)return r+1}return t.length},w=e=>{const t=s.current;t&&(u.current=!0,t.scrollTop=e,setTimeout(()=>u.current=!1,120))},T=e=>{const t=l();if(!t.length)return;const n=t[Math.min(Math.max(e,1),t.length)-1];n&&w(g(n))};return i.useEffect(()=>{const e=s.current;if(!e||!f)return;let t=0;const n=()=>{t||(t=requestAnimationFrame(()=>{t=0,u.current||C(d())}))};return e.addEventListener("scroll",n,{passive:!0}),()=>{e.removeEventListener("scroll",n),t&&cancelAnimationFrame(t)}},[f]),i.useEffect(()=>{if(p.current||c<=1){p.current=!0;return}if(!f)return;const e=l(),t=e[Math.min(c,e.length)-1];if(!t)return;const n=t.getBoundingClientRect().height;T(c),n>0&&n===m.current&&(p.current=!0),m.current=n}),{captureAnchor:()=>{const e=s.current,t=l();if(!e||!t.length){a.current=null;return}const n=d(),r=t[n-1],o=r?.getBoundingClientRect().height??0;a.current=r?{page:n,fraction:o?(e.scrollTop-g(r))/o:0}:null},restoreAnchor:()=>{const e=a.current;if(!e)return;let t=0,n=-1;u.current=!0;const r=()=>{const o=s.current,h=l()[e.page-1];if(!o||!h){u.current=!1;return}o.scrollTop=g(h)+e.fraction*h.getBoundingClientRect().height,Math.abs(o.scrollTop-n)>1&&t++<8?(n=o.scrollTop,requestAnimationFrame(r)):setTimeout(()=>u.current=!1,120)};r()},scrollToPage:T,initialPage:c}}function F(s,l=14,f=!0){i.useEffect(()=>{const c=s.current;if(!c||!f)return;const a=()=>{const u=c.closest(".pane"),p=c.getBoundingClientRect().top+(u?.scrollTop??0);c.style.height=`${Math.max(360,window.innerHeight-p-l)}px`};return a(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[])}export{F as a,x as u};