ryugi-artifacts 1.120.3 → 1.120.6

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 (48) hide show
  1. package/dist/cli.cjs +197 -230
  2. package/dist/document-engine.cjs +1 -1
  3. package/dist/output-bootstrap.cjs +170 -56
  4. package/dist/runtime/ryugi-report.js +3 -3
  5. package/dist/runtime/ryugi-whiteboard-embed.js +1 -1
  6. package/dist/viewer/{DocumentLayout-B16AJ4m1.js → DocumentLayout-BxFYyKFq.js} +2 -2
  7. package/dist/viewer/{DocumentPage-dMWzmQVw.js → DocumentPage-CP8Qy9Ae.js} +2 -2
  8. package/dist/viewer/DocumentPage-l6f5vTWL.css +1 -0
  9. package/dist/viewer/{PreviewLayout-BnV4cPB4.js → PreviewLayout-eg8-py8p.js} +2 -2
  10. package/dist/viewer/{SnapshotDocument-B9mIj1Hu.js → SnapshotDocument-C7mV8NQn.js} +1 -1
  11. package/dist/viewer/{VerifyLayout-8IJyCQab.js → VerifyLayout-DtRz6K2y.js} +1 -1
  12. package/dist/viewer/{VirtualizedEditor-uWe43zaI-St9YpcWe.js → VirtualizedEditor-uWe43zaI-CgOwRELB.js} +1 -1
  13. package/dist/viewer/{VirtualizedRenderer-C_d95FXi-AQRKmbO2.js → VirtualizedRenderer-C_d95FXi-DiZVcTAc.js} +1 -1
  14. package/dist/viewer/{channel-Cuvtl_mH.js → channel-RZcAq9dq.js} +3 -3
  15. package/dist/viewer/{dist-Bk5XPCBt.js → dist-1y-5eBAw.js} +1 -1
  16. package/dist/viewer/{dist-uxyq6tMx.js → dist-3kOakO1C.js} +1 -1
  17. package/dist/viewer/{dist-IPNQW5G8.js → dist-BD6XPyPx.js} +1 -1
  18. package/dist/viewer/{dist-Dps6vTN-.js → dist-BI0qFRAy.js} +1 -1
  19. package/dist/viewer/{dist-BZtYe42f.js → dist-BKkO1Omj.js} +1 -1
  20. package/dist/viewer/{dist-CdLcI1iK.js → dist-BQ22B1dL.js} +1 -1
  21. package/dist/viewer/dist-BjB8i81Z.js +1 -0
  22. package/dist/viewer/{dist-ZiVOhU9h.js → dist-Bo1t4X-Z.js} +1 -1
  23. package/dist/viewer/{dist-CIFQVgHq.js → dist-Ci8SGeFw.js} +1 -1
  24. package/dist/viewer/{dist-BlsFMD-D.js → dist-CskHZfMU.js} +1 -1
  25. package/dist/viewer/{dist-7mb2bGpU.js → dist-CvSBK4r1.js} +1 -1
  26. package/dist/viewer/{dist-D3jbkNxp.js → dist-D0fC7ysz.js} +1 -1
  27. package/dist/viewer/{dist-B7uQYv5D.js → dist-D8T-VMuH.js} +1 -1
  28. package/dist/viewer/{dist-CPlSf_-n.js → dist-DQI2slI5.js} +1 -1
  29. package/dist/viewer/{dist-BQ-mw7EX.js → dist-DW1-cTNS.js} +1 -1
  30. package/dist/viewer/{dist-heibZsuo.js → dist-DknksWkX.js} +1 -1
  31. package/dist/viewer/{dist-J2ZdVVPe.js → dist-Do_0jRES.js} +1 -1
  32. package/dist/viewer/{dist-C1y9SfQg.js → dist-DqZiUlRF.js} +1 -1
  33. package/dist/viewer/{dist-ZG8pOFA0.js → dist-IhKVX0N7.js} +1 -1
  34. package/dist/viewer/{dist-D239Hbe5.js → dist-SwdVvEpO.js} +1 -1
  35. package/dist/viewer/{dist-lr1VXsEc.js → dist-V7e95zqk.js} +1 -1
  36. package/dist/viewer/{dist-48uAq37R.js → dist-f8YElrUw.js} +1 -1
  37. package/dist/viewer/{dist-CVLSwR1I.js → dist-h2T27ekx.js} +1 -1
  38. package/dist/viewer/{dist-yH5e-0q1.js → dist-i1Gf9O6b.js} +1 -1
  39. package/dist/viewer/{editor-B9cVjpUI.js → editor-CLF22MpT.js} +131 -131
  40. package/dist/viewer/index.js +2 -2
  41. package/dist/viewer/{plugin-_bGVeqI0--OtMqC7P.js → plugin-_bGVeqI0-D20LzbhT.js} +2 -2
  42. package/dist/viewer/preview.html +1 -1
  43. package/dist/viewer/preview.js +1 -1
  44. package/dist/viewer/{printDocument-DDB2RpO4.js → printDocument-DmnjWjBu.js} +1 -1
  45. package/dist/viewer/{viewport-CFJHn_Y6-DVNTdoOX.js → viewport-CFJHn_Y6-GTpeksto.js} +1 -1
  46. package/package.json +23 -23
  47. package/dist/viewer/DocumentPage-DGJI3MRN.css +0 -1
  48. package/dist/viewer/dist-D9hP37Je.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./VirtualizedRenderer-C_d95FXi-AQRKmbO2.js","./rolldown-runtime-XKyaHtl9.js","./react-DlmbjZJV.js","./jsx-runtime-LKYXHABd.js","./editor-B9cVjpUI.js","./route-BEA0O_Ry.js","./bem-vbke-3KC.js","./types-BCsOeYI6.js","./index2.css","./url-BaZreTXB.js","./useLayerZIndex-C1JpT09z.js","./MotionConfigContext-BqjwrGj9.js","./is-html-element-DvgHo_1h.js","./WhiteboardEditor-DrHOvXez-Bd1MyHmC.js","./Popover-HS6yjzxl.js","./chevron-right-DBC0wrKu.js","./stringifyLocale-VcrwrbQl.js","./code-CTMZ5SpG.js","./SelectScrollUpArrow-BFRXZrFq.js","./zoom-out-Cz3087-F.js","./text-align-start-CO9CK_EW.js","./ruler-DmQbsUQf.js","./maximize-2-Deo2WY_L.js","./mouse-pointer-2-naHRayvu.js","./undo-2-BH3P-I_n.js","./plus-C3ivaMGn.js","./MenuSubmenuTrigger-CLeiXsan.js","./index3.css","./Tooltip-Bi4V2FVJ.js","./pen-tool-B7HWrrcR.js","./underline-AY5gu1iN.js","./route-messages-o8lg2hOP.js","./ref-DjRYiP25.js","./table-2-F7QzFSYG.js","./video-tvDNJEhe.js","./message-square-BQbestX7.js","./presentation-qzIErT_u.js","./ThreadView-DTGR5uqU.js","./comments-DUAz1Q9X.js","./stable-DP74aChD.js","./icons-CCSPm9SD.js","./index5.css","./search-EBZOryv1.js","./shield-check-TdIPOf4j.js","./sliders-horizontal-DZKoxRty.js","./upload-D0s2oA1h.js","./agentLook-BPPrbQJ3.js","./DotGrid-DKKr_PyM.js","./rounds-DC6Dulo5.js","./useMedia-CFebB4XU.js","./BottomSheet-SYC_8Y6k.js","./motion-Cy65kd7X.js","./preference-oNdcNeml.js","./useSandboxFrame-CJmSnwgG.js","./index4.css","./viewport-CFJHn_Y6-DVNTdoOX.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-DlmbjZJV.js";import{t as n}from"./jsx-runtime-LKYXHABd.js";import{E as r}from"./route-BEA0O_Ry.js";var i=e(t(),1),a=n(),o=(0,i.lazy)(()=>r(()=>import(`./VirtualizedRenderer-C_d95FXi-AQRKmbO2.js`).then(e=>({default:e.VirtualizedRenderer})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55]),import.meta.url));function s({document:e}){return(0,a.jsx)(a.Fragment,{children:e.rows.slice(0,12).map((t,n)=>e.render(n))})}function c(e={}){return function(t){return(0,a.jsx)(i.Suspense,{fallback:(0,a.jsx)(s,{...t}),children:(0,a.jsx)(o,{...t,options:e})})}}export{c as n,s as t};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./VirtualizedRenderer-C_d95FXi-DiZVcTAc.js","./rolldown-runtime-XKyaHtl9.js","./react-DlmbjZJV.js","./jsx-runtime-LKYXHABd.js","./editor-CLF22MpT.js","./route-BEA0O_Ry.js","./bem-vbke-3KC.js","./types-BCsOeYI6.js","./index2.css","./url-BaZreTXB.js","./useLayerZIndex-C1JpT09z.js","./MotionConfigContext-BqjwrGj9.js","./is-html-element-DvgHo_1h.js","./WhiteboardEditor-DrHOvXez-Bd1MyHmC.js","./Popover-HS6yjzxl.js","./chevron-right-DBC0wrKu.js","./stringifyLocale-VcrwrbQl.js","./code-CTMZ5SpG.js","./SelectScrollUpArrow-BFRXZrFq.js","./zoom-out-Cz3087-F.js","./text-align-start-CO9CK_EW.js","./ruler-DmQbsUQf.js","./maximize-2-Deo2WY_L.js","./mouse-pointer-2-naHRayvu.js","./undo-2-BH3P-I_n.js","./plus-C3ivaMGn.js","./MenuSubmenuTrigger-CLeiXsan.js","./index3.css","./Tooltip-Bi4V2FVJ.js","./pen-tool-B7HWrrcR.js","./underline-AY5gu1iN.js","./route-messages-o8lg2hOP.js","./ref-DjRYiP25.js","./table-2-F7QzFSYG.js","./video-tvDNJEhe.js","./message-square-BQbestX7.js","./presentation-qzIErT_u.js","./ThreadView-DTGR5uqU.js","./comments-DUAz1Q9X.js","./stable-DP74aChD.js","./icons-CCSPm9SD.js","./index5.css","./search-EBZOryv1.js","./shield-check-TdIPOf4j.js","./sliders-horizontal-DZKoxRty.js","./upload-D0s2oA1h.js","./agentLook-BPPrbQJ3.js","./DotGrid-DKKr_PyM.js","./rounds-DC6Dulo5.js","./useMedia-CFebB4XU.js","./BottomSheet-SYC_8Y6k.js","./motion-Cy65kd7X.js","./preference-oNdcNeml.js","./useSandboxFrame-CJmSnwgG.js","./index4.css","./viewport-CFJHn_Y6-GTpeksto.js"])))=>i.map(i=>d[i]);
2
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-DlmbjZJV.js";import{t as n}from"./jsx-runtime-LKYXHABd.js";import{E as r}from"./route-BEA0O_Ry.js";var i=e(t(),1),a=n(),o=(0,i.lazy)(()=>r(()=>import(`./VirtualizedRenderer-C_d95FXi-DiZVcTAc.js`).then(e=>({default:e.VirtualizedRenderer})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55]),import.meta.url));function s({document:e}){return(0,a.jsx)(a.Fragment,{children:e.rows.slice(0,12).map((t,n)=>e.render(n))})}function c(e={}){return function(t){return(0,a.jsx)(i.Suspense,{fallback:(0,a.jsx)(s,{...t}),children:(0,a.jsx)(o,{...t,options:e})})}}export{c as n,s as t};
@@ -19,7 +19,7 @@
19
19
  <link rel="modulepreload" crossorigin href="/route-BEA0O_Ry.js">
20
20
  <link rel="modulepreload" crossorigin href="/view-Bw41z8XN.js">
21
21
  <link rel="modulepreload" crossorigin href="/DotGrid-DKKr_PyM.js">
22
- <link rel="modulepreload" crossorigin href="/PreviewLayout-BnV4cPB4.js">
22
+ <link rel="modulepreload" crossorigin href="/PreviewLayout-eg8-py8p.js">
23
23
  <link rel="stylesheet" crossorigin href="/index2.css">
24
24
  </head>
25
25
  <body>
@@ -1 +1 @@
1
- import{M as e,N as t,T as n,j as r,n as i,w as a,x as o}from"./route-BEA0O_Ry.js";import{r as s,t as c}from"./PreviewLayout-BnV4cPB4.js";import{t as l}from"./jsx-runtime-LKYXHABd.js";var u=n(),d=l();e(),document.documentElement.lang=t[o.language];function f(){a();let e=i(location.pathname);return e.kind===`preview`?(0,d.jsx)(c,{id:document.documentElement.dataset.ryugiArtifactId??e.id,type:e.type}):(0,d.jsx)(`div`,{...r(s.message),children:o.t(`preview.unavailable`)})}(0,u.createRoot)(document.getElementById(`root`)).render((0,d.jsx)(f,{}));
1
+ import{M as e,N as t,T as n,j as r,n as i,w as a,x as o}from"./route-BEA0O_Ry.js";import{r as s,t as c}from"./PreviewLayout-eg8-py8p.js";import{t as l}from"./jsx-runtime-LKYXHABd.js";var u=n(),d=l();e(),document.documentElement.lang=t[o.language];function f(){a();let e=i(location.pathname);return e.kind===`preview`?(0,d.jsx)(c,{id:document.documentElement.dataset.ryugiArtifactId??e.id,type:e.type}):(0,d.jsx)(`div`,{...r(s.message),children:o.t(`preview.unavailable`)})}(0,u.createRoot)(document.getElementById(`root`)).render((0,d.jsx)(f,{}));
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-DlmbjZJV.js";import{A as n,S as r,T as i}from"./route-BEA0O_Ry.js";import"./shims-s-YVfIlz.js";import{C as a,D as o,Dt as s,N as c,O as l,T as u,_ as d,a as f,j as p,k as m,kt as h,l as g,s as _,u as v,v as y,y as b}from"./editor-B9cVjpUI.js";import{a as x,t as S}from"./ref-DjRYiP25.js";import{c as C,m as w,s as T,t as E}from"./channel-Cuvtl_mH.js";import{R as D}from"./WhiteboardEditor-DrHOvXez-Bd1MyHmC.js";import{t as O}from"./dist-D9hP37Je.js";import{t as k}from"./katex-DuZJ-tFh.js";import{t as A}from"./jsx-runtime-LKYXHABd.js";var j=e(t(),1),M=e(n(),1),N=i(),P=`@page{size:A4;margin:16mm}[data-document-print-root]{color:#242424;width:178mm;font-family:var(--lobe-font-family,system-ui, sans-serif);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;pointer-events:none;background:#fff;font-size:14px;line-height:1.75;position:absolute;top:0;left:-100000px}[data-document-print-root] .rich-content{max-width:none;padding:0}.document-print-image{margin:16px 0}.document-print-image img,.document-print-diagram{max-width:100%;height:auto;margin-inline:auto;display:block}.document-print-image figcaption{color:#666;text-align:center;margin-top:8px;font-size:12px}.document-print-state{color:#555;font-size:12px}.document-print-pending{color:#666;border-inline-start:2px solid #aaa;padding-inline-start:12px}.document-print-reference{color:#245d88;text-decoration:underline}@media print{html[data-document-printing],html[data-document-printing] body{background:#fff!important;height:auto!important;margin:0!important;overflow:visible!important}html[data-document-printing] body>:not([data-document-print-root]){display:none!important}html[data-document-printing] [data-document-print-root]{pointer-events:auto;width:auto;position:static}[data-document-print-root] h1,[data-document-print-root] h2,[data-document-print-root] h3{break-after:avoid}[data-document-print-root] img,[data-document-print-root] svg{object-fit:contain;max-width:100%;max-height:250mm}[data-document-print-root] pre,[data-document-print-root] pre code{white-space:pre-wrap!important;overflow-wrap:anywhere!important}[data-document-print-root] [data-chrome]{overflow:visible!important}[data-document-print-root] .rich-table-scrollable-wrapper{width:100%!important;max-width:100%!important;overflow:visible!important}[data-document-print-root] table{table-layout:fixed!important;width:100%!important;min-width:0!important}[data-document-print-root] th,[data-document-print-root] td{overflow-wrap:anywhere;white-space:normal!important;min-width:0!important}[data-document-print-root] tr{break-inside:avoid}[data-document-print-root] thead{display:table-header-group}[data-document-print-root] .rich-spoiler{color:inherit!important;filter:none!important;background:0 0!important}[data-document-print-root] .rich-heading-anchor,[data-document-print-root] figure>div>button[aria-pressed]{display:none!important}}`,F=A(),I=(0,j.createContext)(null),L=[p,m,...O,_,f,c,d],R=e=>(0,F.jsx)(D,{...e,collapsible:!1,showCopyButton:!1});function z({equation:e,displayMode:t}){let n=(0,j.useMemo)(()=>k.renderToString(e,{displayMode:t,throwOnError:!1}),[e,t]);return(0,F.jsx)(`span`,{dangerouslySetInnerHTML:{__html:n}})}function B({src:e,altText:t,caption:n,width:r,height:i,fixedWidth:a,displayWidth:o}){return(0,F.jsxs)(`figure`,{className:`document-print-image`,children:[(0,F.jsx)(`img`,{alt:t,height:i,loading:`eager`,src:e,width:a??o??r}),n?(0,F.jsx)(`figcaption`,{children:n}):null]})}function V({content:e}){let t=a(e,`light`);return t?(0,F.jsx)(`img`,{alt:r(`mermaid.diagram`),className:`document-print-diagram`,height:t.height,loading:`eager`,src:t.src,width:t.width}):(0,F.jsx)(`p`,{"data-print-error":r(`documentExport.diagramFailed`),children:r(`documentExport.diagramFailed`)})}function H({node:e}){let t=(0,j.useContext)(I),n=s([h(e,``)],t.comments.threads)[0],i=n.text??n.options.find(e=>e.value===n.choice)?.label,a=n.state===`settled`?`askSettled`:n.state===`submitted`?`askSubmitted`:n.byRecommendation?`askRecommended`:i?`askDraft`:`askUnanswered`;return(0,F.jsxs)(`span`,{className:`document-print-state`,children:[r(`documentExport.${a}`),i?`: ${i}`:``,n.note?` · ${n.note}`:``]})}function U({node:e}){let t=(0,j.useContext)(I),n=C(e,t),r=e.label??[x(e),e.group??e.board??e.frame??e.page].filter(Boolean).join(` · `);return n?(0,F.jsx)(`a`,{className:`document-print-reference`,href:n,children:r}):(0,F.jsx)(`span`,{className:`document-print-reference`,children:r})}function W({node:e}){let t=(0,j.useContext)(I).embeds?.[T(e)],n=t&&`scene`in t?b(t.scene.elements,e.frame):null,r=[x(e),e.frame??e.page].filter(Boolean).join(` · `);return!t||!(`scene`in t)||!n||!(`box`in n)?(0,F.jsx)(`p`,{className:`document-print-reference`,"data-print-embed":`missing`,children:r}):(0,F.jsx)(`figure`,{className:`document-print-whiteboard`,style:{aspectRatio:`${n.box.w} / ${n.box.h}`,maxHeight:640,margin:0},children:(0,F.jsx)(y,{light:!0,files:t.scene.files??{},label:r,view:n})})}function G({node:e}){let t=(0,j.useContext)(I),[n,i]=(0,j.useState)(!1),[a,o]=(0,j.useState)(null),s=(0,j.useMemo)(()=>({artifact:`document-print`,contentBase:t.contentBase,channel:E(),send:e=>{let t=e;t.type===`loaded`&&i(!0),t.type===`runtime-error`&&o(t.message??r(`documentExport.blockFailed`))}}),[t.contentBase]);return(0,F.jsx)(`div`,{"data-print-error":a??void 0,"data-print-loading":n?void 0:``,children:(0,F.jsx)(v,{value:s,children:(0,F.jsx)(g,{componentProps:e.props,initialHeight:e.initialHeight,url:e.url})})})}var K={ask:e=>(0,F.jsx)(H,{node:e}),ref:e=>S(e)?(0,F.jsx)(W,{node:e}):(0,F.jsx)(U,{node:e}),pending:e=>(0,F.jsxs)(`p`,{className:`document-print-pending`,children:[r(`documentExport.inProgress`),`:`,` `,e.intent||r(`document.pending`)]}),dynamic:e=>(0,F.jsx)(G,{node:e})},q={Alert:o,CodeBlock:R,Image:B,KaTeX:z,Mermaid:V,Whiteboard:l};function J({snapshot:e}){return(0,F.jsx)(I,{value:e,children:(0,F.jsx)(u,{children:(0,F.jsx)(w,{builtinNodeOverrides:K,extraNodes:L,rendererConfig:q,theme:`light`,value:e.state,variant:`article`})})})}async function Y(e,{signal:t,timeoutMs:n=2e4}={}){e.querySelectorAll(`details`).forEach(e=>{e.open=!0}),e.querySelectorAll(`img[src]`).forEach(e=>{e.loading=`eager`}),e.querySelectorAll(`table`).forEach(e=>{let t=e.querySelector(`tr`);!e.tHead&&t?.cells.length&&[...t.cells].every(e=>e.tagName===`TH`)&&e.createTHead().append(t)}),await new Promise((r,i)=>{let a=Date.now()+n,o=Date.now(),s=!document.fonts,c=null,l=0,u,d=new WeakSet,f=new MutationObserver(()=>{o=Date.now()});f.observe(e,{childList:!0,subtree:!0,attributes:!0,characterData:!0});let p=e=>{clearTimeout(u),f.disconnect(),t?.removeEventListener(`abort`,m),e?i(e):r()},m=()=>p(new DOMException(`Print cancelled`,`AbortError`));if(t?.addEventListener(`abort`,m,{once:!0}),t?.aborted){m();return}document.fonts&&document.fonts.ready.then(()=>{s=!0},()=>{c=Error(`A document font failed to load`)});let h=()=>{if(t?.aborted){m();return}let n=e.querySelector(`[data-print-error], [role="alert"]`);if(n){p(Error(n.dataset.printError||n.textContent||`A document block failed to render`));return}let r=!s||document.fonts?.status===`loading`||e.querySelector(`[data-print-loading], [aria-busy="true"]`)!==null;e.querySelectorAll(`details:not([open])`).forEach(e=>{e.open=!0});for(let t of e.querySelectorAll(`img[src]`))if(t.getAttribute(`src`)){if(t.loading!==`eager`&&(t.loading=`eager`),t.complete&&t.naturalWidth===0){p(Error(`Document image failed to load: ${t.alt||`image`}`));return}t.complete?!d.has(t)&&typeof t.decode==`function`&&(d.add(t),l++,t.decode().then(()=>{l--},()=>{l--,c=Error(`A document image failed to decode`)})):r=!0}c?p(c):!r&&l===0&&Date.now()-o>=100?p():Date.now()>=a?p(Error(`Document resources timed out`)):u=setTimeout(h,25)};h()})}var X=class extends j.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,F.jsx)(`p`,{"data-print-error":this.state.error.message,children:this.state.error.message}):this.props.children}};async function Z(e,{signal:t,timeoutMs:n}={}){if(document.querySelector(`[data-document-print-root]`))throw Error(`A document export is already open`);if(t?.aborted)throw new DOMException(`Print cancelled`,`AbortError`);let r=document.createElement(`div`);r.dataset.documentPrintRoot=``,r.dataset.theme=`light`,r.setAttribute(`aria-hidden`,`true`);let i=document.createElement(`style`);i.nonce=document.querySelector(`style[nonce]`)?.nonce??``,i.textContent=P,document.head.append(i),document.body.append(r);let a=(0,N.createRoot)(r),o=document.title;try{(0,M.flushSync)(()=>a.render((0,F.jsx)(X,{children:(0,F.jsx)(J,{snapshot:e})}))),await Y(r,{signal:t,timeoutMs:n}),r.removeAttribute(`aria-hidden`),document.documentElement.dataset.documentPrinting=``,document.title=e.title,await new Promise((e,n)=>{let r=()=>{window.removeEventListener(`afterprint`,i),t?.removeEventListener(`abort`,a)},i=()=>{r(),e()},a=()=>{r(),n(new DOMException(`Print cancelled`,`AbortError`))};if(window.addEventListener(`afterprint`,i,{once:!0}),t?.addEventListener(`abort`,a,{once:!0}),t?.aborted)a();else try{window.print()}catch(e){r(),n(e)}})}finally{a.unmount(),r.remove(),i.remove(),delete document.documentElement.dataset.documentPrinting,document.title===e.title&&(document.title=o)}}export{Z as printDocument};
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-DlmbjZJV.js";import{A as n,S as r,T as i}from"./route-BEA0O_Ry.js";import"./shims-s-YVfIlz.js";import{C as a,D as o,Dt as s,N as c,O as l,T as u,_ as d,a as f,j as p,k as m,kt as h,l as g,s as _,u as v,v as y,y as b}from"./editor-CLF22MpT.js";import{a as x,t as S}from"./ref-DjRYiP25.js";import{c as C,m as w,s as T,t as E}from"./channel-RZcAq9dq.js";import{R as D}from"./WhiteboardEditor-DrHOvXez-Bd1MyHmC.js";import{t as O}from"./dist-BjB8i81Z.js";import{t as k}from"./katex-DuZJ-tFh.js";import{t as A}from"./jsx-runtime-LKYXHABd.js";var j=e(t(),1),M=e(n(),1),N=i(),P=`@page{size:A4;margin:16mm}[data-document-print-root]{color:#242424;width:178mm;font-family:var(--lobe-font-family,system-ui, sans-serif);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;pointer-events:none;background:#fff;font-size:14px;line-height:1.75;position:absolute;top:0;left:-100000px}[data-document-print-root] .rich-content{max-width:none;padding:0}.document-print-image{margin:16px 0}.document-print-image img,.document-print-diagram{max-width:100%;height:auto;margin-inline:auto;display:block}.document-print-image figcaption{color:#666;text-align:center;margin-top:8px;font-size:12px}.document-print-state{color:#555;font-size:12px}.document-print-pending{color:#666;border-inline-start:2px solid #aaa;padding-inline-start:12px}.document-print-reference{color:#245d88;text-decoration:underline}@media print{html[data-document-printing],html[data-document-printing] body{background:#fff!important;height:auto!important;margin:0!important;overflow:visible!important}html[data-document-printing] body>:not([data-document-print-root]){display:none!important}html[data-document-printing] [data-document-print-root]{pointer-events:auto;width:auto;position:static}[data-document-print-root] h1,[data-document-print-root] h2,[data-document-print-root] h3{break-after:avoid}[data-document-print-root] img,[data-document-print-root] svg{object-fit:contain;max-width:100%;max-height:250mm}[data-document-print-root] pre,[data-document-print-root] pre code{white-space:pre-wrap!important;overflow-wrap:anywhere!important}[data-document-print-root] [data-chrome]{overflow:visible!important}[data-document-print-root] .rich-table-scrollable-wrapper{width:100%!important;max-width:100%!important;overflow:visible!important}[data-document-print-root] table{table-layout:fixed!important;width:100%!important;min-width:0!important}[data-document-print-root] th,[data-document-print-root] td{overflow-wrap:anywhere;white-space:normal!important;min-width:0!important}[data-document-print-root] tr{break-inside:avoid}[data-document-print-root] thead{display:table-header-group}[data-document-print-root] .rich-spoiler{color:inherit!important;filter:none!important;background:0 0!important}[data-document-print-root] .rich-heading-anchor,[data-document-print-root] figure>div>button[aria-pressed]{display:none!important}}`,F=A(),I=(0,j.createContext)(null),L=[p,m,...O,_,f,c,d],R=e=>(0,F.jsx)(D,{...e,collapsible:!1,showCopyButton:!1});function z({equation:e,displayMode:t}){let n=(0,j.useMemo)(()=>k.renderToString(e,{displayMode:t,throwOnError:!1}),[e,t]);return(0,F.jsx)(`span`,{dangerouslySetInnerHTML:{__html:n}})}function B({src:e,altText:t,caption:n,width:r,height:i,fixedWidth:a,displayWidth:o}){return(0,F.jsxs)(`figure`,{className:`document-print-image`,children:[(0,F.jsx)(`img`,{alt:t,height:i,loading:`eager`,src:e,width:a??o??r}),n?(0,F.jsx)(`figcaption`,{children:n}):null]})}function V({content:e}){let t=a(e,`light`);return t?(0,F.jsx)(`img`,{alt:r(`mermaid.diagram`),className:`document-print-diagram`,height:t.height,loading:`eager`,src:t.src,width:t.width}):(0,F.jsx)(`p`,{"data-print-error":r(`documentExport.diagramFailed`),children:r(`documentExport.diagramFailed`)})}function H({node:e}){let t=(0,j.useContext)(I),n=s([h(e,``)],t.comments.threads)[0],i=n.text??n.options.find(e=>e.value===n.choice)?.label,a=n.state===`settled`?`askSettled`:n.state===`submitted`?`askSubmitted`:n.byRecommendation?`askRecommended`:i?`askDraft`:`askUnanswered`;return(0,F.jsxs)(`span`,{className:`document-print-state`,children:[r(`documentExport.${a}`),i?`: ${i}`:``,n.note?` · ${n.note}`:``]})}function U({node:e}){let t=(0,j.useContext)(I),n=C(e,t),r=e.label??[x(e),e.group??e.board??e.frame??e.page].filter(Boolean).join(` · `);return n?(0,F.jsx)(`a`,{className:`document-print-reference`,href:n,children:r}):(0,F.jsx)(`span`,{className:`document-print-reference`,children:r})}function W({node:e}){let t=(0,j.useContext)(I).embeds?.[T(e)],n=t&&`scene`in t?b(t.scene.elements,e.frame):null,r=[x(e),e.frame??e.page].filter(Boolean).join(` · `);return!t||!(`scene`in t)||!n||!(`box`in n)?(0,F.jsx)(`p`,{className:`document-print-reference`,"data-print-embed":`missing`,children:r}):(0,F.jsx)(`figure`,{className:`document-print-whiteboard`,style:{aspectRatio:`${n.box.w} / ${n.box.h}`,maxHeight:640,margin:0},children:(0,F.jsx)(y,{light:!0,files:t.scene.files??{},label:r,view:n})})}function G({node:e}){let t=(0,j.useContext)(I),[n,i]=(0,j.useState)(!1),[a,o]=(0,j.useState)(null),s=(0,j.useMemo)(()=>({artifact:`document-print`,contentBase:t.contentBase,channel:E(),send:e=>{let t=e;t.type===`loaded`&&i(!0),t.type===`runtime-error`&&o(t.message??r(`documentExport.blockFailed`))}}),[t.contentBase]);return(0,F.jsx)(`div`,{"data-print-error":a??void 0,"data-print-loading":n?void 0:``,children:(0,F.jsx)(v,{value:s,children:(0,F.jsx)(g,{componentProps:e.props,initialHeight:e.initialHeight,url:e.url})})})}var K={ask:e=>(0,F.jsx)(H,{node:e}),ref:e=>S(e)?(0,F.jsx)(W,{node:e}):(0,F.jsx)(U,{node:e}),pending:e=>(0,F.jsxs)(`p`,{className:`document-print-pending`,children:[r(`documentExport.inProgress`),`:`,` `,e.intent||r(`document.pending`)]}),dynamic:e=>(0,F.jsx)(G,{node:e})},q={Alert:o,CodeBlock:R,Image:B,KaTeX:z,Mermaid:V,Whiteboard:l};function J({snapshot:e}){return(0,F.jsx)(I,{value:e,children:(0,F.jsx)(u,{children:(0,F.jsx)(w,{builtinNodeOverrides:K,extraNodes:L,rendererConfig:q,theme:`light`,value:e.state,variant:`article`})})})}async function Y(e,{signal:t,timeoutMs:n=2e4}={}){e.querySelectorAll(`details`).forEach(e=>{e.open=!0}),e.querySelectorAll(`img[src]`).forEach(e=>{e.loading=`eager`}),e.querySelectorAll(`table`).forEach(e=>{let t=e.querySelector(`tr`);!e.tHead&&t?.cells.length&&[...t.cells].every(e=>e.tagName===`TH`)&&e.createTHead().append(t)}),await new Promise((r,i)=>{let a=Date.now()+n,o=Date.now(),s=!document.fonts,c=null,l=0,u,d=new WeakSet,f=new MutationObserver(()=>{o=Date.now()});f.observe(e,{childList:!0,subtree:!0,attributes:!0,characterData:!0});let p=e=>{clearTimeout(u),f.disconnect(),t?.removeEventListener(`abort`,m),e?i(e):r()},m=()=>p(new DOMException(`Print cancelled`,`AbortError`));if(t?.addEventListener(`abort`,m,{once:!0}),t?.aborted){m();return}document.fonts&&document.fonts.ready.then(()=>{s=!0},()=>{c=Error(`A document font failed to load`)});let h=()=>{if(t?.aborted){m();return}let n=e.querySelector(`[data-print-error], [role="alert"]`);if(n){p(Error(n.dataset.printError||n.textContent||`A document block failed to render`));return}let r=!s||document.fonts?.status===`loading`||e.querySelector(`[data-print-loading], [aria-busy="true"]`)!==null;e.querySelectorAll(`details:not([open])`).forEach(e=>{e.open=!0});for(let t of e.querySelectorAll(`img[src]`))if(t.getAttribute(`src`)){if(t.loading!==`eager`&&(t.loading=`eager`),t.complete&&t.naturalWidth===0){p(Error(`Document image failed to load: ${t.alt||`image`}`));return}t.complete?!d.has(t)&&typeof t.decode==`function`&&(d.add(t),l++,t.decode().then(()=>{l--},()=>{l--,c=Error(`A document image failed to decode`)})):r=!0}c?p(c):!r&&l===0&&Date.now()-o>=100?p():Date.now()>=a?p(Error(`Document resources timed out`)):u=setTimeout(h,25)};h()})}var X=class extends j.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,F.jsx)(`p`,{"data-print-error":this.state.error.message,children:this.state.error.message}):this.props.children}};async function Z(e,{signal:t,timeoutMs:n}={}){if(document.querySelector(`[data-document-print-root]`))throw Error(`A document export is already open`);if(t?.aborted)throw new DOMException(`Print cancelled`,`AbortError`);let r=document.createElement(`div`);r.dataset.documentPrintRoot=``,r.dataset.theme=`light`,r.setAttribute(`aria-hidden`,`true`);let i=document.createElement(`style`);i.nonce=document.querySelector(`style[nonce]`)?.nonce??``,i.textContent=P,document.head.append(i),document.body.append(r);let a=(0,N.createRoot)(r),o=document.title;try{(0,M.flushSync)(()=>a.render((0,F.jsx)(X,{children:(0,F.jsx)(J,{snapshot:e})}))),await Y(r,{signal:t,timeoutMs:n}),r.removeAttribute(`aria-hidden`),document.documentElement.dataset.documentPrinting=``,document.title=e.title,await new Promise((e,n)=>{let r=()=>{window.removeEventListener(`afterprint`,i),t?.removeEventListener(`abort`,a)},i=()=>{r(),e()},a=()=>{r(),n(new DOMException(`Print cancelled`,`AbortError`))};if(window.addEventListener(`afterprint`,i,{once:!0}),t?.addEventListener(`abort`,a,{once:!0}),t?.aborted)a();else try{window.print()}catch(e){r(),n(e)}})}finally{a.unmount(),r.remove(),i.remove(),delete document.documentElement.dataset.documentPrinting,document.title===e.title&&(document.title=o)}}export{Z as printDocument};
@@ -1 +1 @@
1
- import{It as e}from"./editor-B9cVjpUI.js";function t(e,t){return Math.max(0,e,t)+Math.min(0,e,t)}function n(e,n){return e.height+(e.gap??t(e.bottom,n?.top??0))}var r=class{constructor(t){e(this,`tree`,void 0),e(this,`values`,void 0),this.values=[...t],this.tree=new Float64Array(t.length+1);for(let e=1;e<=t.length;e++){this.tree[e]+=t[e-1];let n=e+(e&-e);n<this.tree.length&&(this.tree[n]+=this.tree[e])}}offset(e){let t=0;for(let n=e;n>0;n-=n&-n)t+=this.tree[n];return t}get total(){return this.offset(this.values.length)}update(e,t){let n=t-this.values[e];this.values[e]=t;for(let t=e+1;t<this.tree.length;t+=t&-t)this.tree[t]+=n}find(e){let t=0,n=1;for(;n*2<this.tree.length;)n*=2;for(;n;n>>=1){let r=t+n;r<this.tree.length&&this.tree[r]<=e&&(t=r,e-=this.tree[r])}return Math.min(t,Math.max(0,this.values.length-1))}},i=class{constructor(){e(this,`slots`,[]),e(this,`created`,0),e(this,`reused`,0),e(this,`disposed`,0)}update(e,t,n=new Set,r=new Set){let i=new Set(e),a=!1;for(let e of this.slots)e.active&&!i.has(e.index)&&!n.has(e.id)&&(e.beforeRelease?.(),e.active=!1,a=!0);let o=new Set(this.slots.filter(e=>e.active).map(e=>e.index)),s=new Map,c=new Map(this.slots.filter(e=>!e.active&&r.has(e.id)).map(e=>[e.index,e]));for(let e of this.slots)if(!e.active&&!r.has(e.id)){let t=s.get(e.pool)??[];t.push(e),s.set(e.pool,t)}for(let n of e){if(o.has(n))continue;let e=t(n),r=c.get(n)??s.get(e)?.pop();r||(r={id:++this.created,index:-1,pool:e,active:!1,generation:0,committed:-1},this.slots.push(r)),r.index!==n&&(r.index>=0&&this.reused++,r.index=n,r.generation++),r.active=!0,a=!0}let l=this.slots.filter(e=>!e.active&&r.has(e.id)).length,u=this.slots.length-Math.max(16,e.length*2+n.size)-l;return u>0&&(this.slots=this.slots.filter(e=>!e.active&&!r.has(e.id)&&u-->0?(this.disposed++,!1):!0),a=!0),a}},a=new WeakMap;function o(e){let t=a.get(e);if(t!==void 0)return t;let n=typeof e.text==`string`?e.text.replaceAll(/[\u0080-\uFFFF]/g,`xx`).length:(e.children??[]).reduce((e,t)=>e+o(t),0);return a.set(e,n),n}function s(e,t,n,r=`0`){let i=()=>(e.children??[]).reduce((i,a,o)=>i+s(a,t-(e.type===`details`?40:0),n,`${r}.${o}`),0);switch(e.type){case`paragraph`:return Math.max(1,Math.ceil(o(e)*8/Math.max(80,t)))*28+16;case`image`:return e.width&&e.height?Math.min(t,e.width)*e.height/e.width+64:220;case`details`:return 64+(n?.details[r]??e.open?i()+32:0);case`dynamic`:return(e.initialHeight??320)+40;case`table`:return(e.children??[]).reduce((e,r)=>e+Math.max(48,...(r.children??[]).map(e=>s(e,t/Math.max(1,r.children?.length??1),n)))+20,0)+32;case`code`:return 280;default:return Math.max(24,i()+16)}}var c=class{constructor(t,n){if(e(this,`capacity`,void 0),e(this,`evict`,void 0),e(this,`parked`,new Map),e(this,`hosts`,new Map),e(this,`parking`,void 0),e(this,`hits`,0),e(this,`evictions`,0),this.capacity=t,this.evict=n,!Number.isInteger(t)||t<0)throw Error(`preserveCapacity must be a nonnegative integer`)}get size(){return this.parked.size}has(e){return this.parked.has(e)}ids(){return new Set(this.parked.keys())}park(e,t){for(this.parked.delete(e),this.parked.set(e,t);this.parked.size>this.capacity;){let[e,t]=this.parked.entries().next().value;this.parked.delete(e),this.evict(e,t),this.evictions++}}activate(e){return this.parked.delete(e)?(this.hits++,!0):!1}host(e){return this.hosts.get(e)}mount(e,t,n,r=null){this.hosts.set(e,t),n?(t.parentNode!==n||r&&!(t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING))&&n.insertBefore(t,r):(this.parking??=t.ownerDocument.createDocumentFragment(),t.parentNode!==this.parking&&this.parking.append(t))}forget(e){this.parked.delete(e),this.hosts.get(e)?.remove(),this.hosts.delete(e)}clear(){for(let e of this.hosts.values())e.remove();this.hosts.clear(),this.parked.clear()}},l=`qi8t60`,u=`qi8t61`,d=`qi8t62`;function f(e,t){let n=typeof t==`function`?t():t&&`current`in t?t.current:t;if(t){if(!n)throw Error(`Virtual scrollContainer is not mounted`);if(!n.contains(e))throw Error(`Virtual scrollContainer must contain the content`);return n}for(let t=e.parentElement;t;t=t.parentElement)if(/auto|scroll/.test(getComputedStyle(t).overflowY))return t;return window}export{d as a,f as c,l as i,u as l,c as n,s as o,i as r,n as s,r as t};
1
+ import{It as e}from"./editor-CLF22MpT.js";function t(e,t){return Math.max(0,e,t)+Math.min(0,e,t)}function n(e,n){return e.height+(e.gap??t(e.bottom,n?.top??0))}var r=class{constructor(t){e(this,`tree`,void 0),e(this,`values`,void 0),this.values=[...t],this.tree=new Float64Array(t.length+1);for(let e=1;e<=t.length;e++){this.tree[e]+=t[e-1];let n=e+(e&-e);n<this.tree.length&&(this.tree[n]+=this.tree[e])}}offset(e){let t=0;for(let n=e;n>0;n-=n&-n)t+=this.tree[n];return t}get total(){return this.offset(this.values.length)}update(e,t){let n=t-this.values[e];this.values[e]=t;for(let t=e+1;t<this.tree.length;t+=t&-t)this.tree[t]+=n}find(e){let t=0,n=1;for(;n*2<this.tree.length;)n*=2;for(;n;n>>=1){let r=t+n;r<this.tree.length&&this.tree[r]<=e&&(t=r,e-=this.tree[r])}return Math.min(t,Math.max(0,this.values.length-1))}},i=class{constructor(){e(this,`slots`,[]),e(this,`created`,0),e(this,`reused`,0),e(this,`disposed`,0)}update(e,t,n=new Set,r=new Set){let i=new Set(e),a=!1;for(let e of this.slots)e.active&&!i.has(e.index)&&!n.has(e.id)&&(e.beforeRelease?.(),e.active=!1,a=!0);let o=new Set(this.slots.filter(e=>e.active).map(e=>e.index)),s=new Map,c=new Map(this.slots.filter(e=>!e.active&&r.has(e.id)).map(e=>[e.index,e]));for(let e of this.slots)if(!e.active&&!r.has(e.id)){let t=s.get(e.pool)??[];t.push(e),s.set(e.pool,t)}for(let n of e){if(o.has(n))continue;let e=t(n),r=c.get(n)??s.get(e)?.pop();r||(r={id:++this.created,index:-1,pool:e,active:!1,generation:0,committed:-1},this.slots.push(r)),r.index!==n&&(r.index>=0&&this.reused++,r.index=n,r.generation++),r.active=!0,a=!0}let l=this.slots.filter(e=>!e.active&&r.has(e.id)).length,u=this.slots.length-Math.max(16,e.length*2+n.size)-l;return u>0&&(this.slots=this.slots.filter(e=>!e.active&&!r.has(e.id)&&u-->0?(this.disposed++,!1):!0),a=!0),a}},a=new WeakMap;function o(e){let t=a.get(e);if(t!==void 0)return t;let n=typeof e.text==`string`?e.text.replaceAll(/[\u0080-\uFFFF]/g,`xx`).length:(e.children??[]).reduce((e,t)=>e+o(t),0);return a.set(e,n),n}function s(e,t,n,r=`0`){let i=()=>(e.children??[]).reduce((i,a,o)=>i+s(a,t-(e.type===`details`?40:0),n,`${r}.${o}`),0);switch(e.type){case`paragraph`:return Math.max(1,Math.ceil(o(e)*8/Math.max(80,t)))*28+16;case`image`:return e.width&&e.height?Math.min(t,e.width)*e.height/e.width+64:220;case`details`:return 64+(n?.details[r]??e.open?i()+32:0);case`dynamic`:return(e.initialHeight??320)+40;case`table`:return(e.children??[]).reduce((e,r)=>e+Math.max(48,...(r.children??[]).map(e=>s(e,t/Math.max(1,r.children?.length??1),n)))+20,0)+32;case`code`:return 280;default:return Math.max(24,i()+16)}}var c=class{constructor(t,n){if(e(this,`capacity`,void 0),e(this,`evict`,void 0),e(this,`parked`,new Map),e(this,`hosts`,new Map),e(this,`parking`,void 0),e(this,`hits`,0),e(this,`evictions`,0),this.capacity=t,this.evict=n,!Number.isInteger(t)||t<0)throw Error(`preserveCapacity must be a nonnegative integer`)}get size(){return this.parked.size}has(e){return this.parked.has(e)}ids(){return new Set(this.parked.keys())}park(e,t){for(this.parked.delete(e),this.parked.set(e,t);this.parked.size>this.capacity;){let[e,t]=this.parked.entries().next().value;this.parked.delete(e),this.evict(e,t),this.evictions++}}activate(e){return this.parked.delete(e)?(this.hits++,!0):!1}host(e){return this.hosts.get(e)}mount(e,t,n,r=null){this.hosts.set(e,t),n?(t.parentNode!==n||r&&!(t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING))&&n.insertBefore(t,r):(this.parking??=t.ownerDocument.createDocumentFragment(),t.parentNode!==this.parking&&this.parking.append(t))}forget(e){this.parked.delete(e),this.hosts.get(e)?.remove(),this.hosts.delete(e)}clear(){for(let e of this.hosts.values())e.remove();this.hosts.clear(),this.parked.clear()}},l=`qi8t60`,u=`qi8t61`,d=`qi8t62`;function f(e,t){let n=typeof t==`function`?t():t&&`current`in t?t.current:t;if(t){if(!n)throw Error(`Virtual scrollContainer is not mounted`);if(!n.contains(e))throw Error(`Virtual scrollContainer must contain the content`);return n}for(let t=e.parentElement;t;t=t.parentElement)if(/auto|scroll/.test(getComputedStyle(t).overflowY))return t;return window}export{d as a,f as c,l as i,u as l,c as n,s as o,i as r,n as s,r as t};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ryugi-artifacts",
3
- "version": "1.120.3",
3
+ "version": "1.120.6",
4
4
  "daemonSource": "0dfdbe989fef",
5
5
  "description": "Server and viewer for the Artideck artifacts app",
6
6
  "license": "UNLICENSED",
@@ -50,28 +50,28 @@
50
50
  "@codemirror/language": "6.13.1",
51
51
  "@codemirror/state": "6.7.6",
52
52
  "@codemirror/view": "6.44.1",
53
- "@haklex/cm-editor": "0.67.5",
54
- "@haklex/rich-collab-loro": "0.67.5",
55
- "@haklex/rich-compose": "0.67.5",
56
- "@haklex/rich-diff-core": "0.67.5",
57
- "@haklex/rich-editor": "0.67.5",
58
- "@haklex/rich-editor-ui": "0.67.5",
59
- "@haklex/rich-ext-chart": "0.67.5",
60
- "@haklex/rich-ext-steps": "0.67.5",
61
- "@haklex/rich-ext-whiteboard": "0.67.5",
62
- "@haklex/rich-headless": "0.67.5",
63
- "@haklex/rich-litexml": "0.67.5",
64
- "@haklex/rich-plugin-block-handle": "0.67.5",
65
- "@haklex/rich-plugin-floating-toolbar": "0.67.5",
66
- "@haklex/rich-plugin-link-edit": "0.67.5",
67
- "@haklex/rich-plugin-slash-menu": "0.67.5",
68
- "@haklex/rich-plugin-toolbar": "0.67.5",
69
- "@haklex/rich-renderer-alert": "0.67.5",
70
- "@haklex/rich-renderer-codeblock": "0.67.5",
71
- "@haklex/rich-renderer-image": "0.67.5",
72
- "@haklex/rich-renderer-katex": "0.67.5",
73
- "@haklex/rich-renderer-mermaid": "0.67.5",
74
- "@haklex/rich-style-token": "0.67.5",
53
+ "@haklex/cm-editor": "0.68.0",
54
+ "@haklex/rich-collab-loro": "0.68.0",
55
+ "@haklex/rich-compose": "0.68.0",
56
+ "@haklex/rich-diff-core": "0.68.0",
57
+ "@haklex/rich-editor": "0.68.0",
58
+ "@haklex/rich-editor-ui": "0.68.0",
59
+ "@haklex/rich-ext-chart": "0.68.0",
60
+ "@haklex/rich-ext-steps": "0.68.0",
61
+ "@haklex/rich-ext-whiteboard": "0.68.0",
62
+ "@haklex/rich-headless": "0.68.0",
63
+ "@haklex/rich-litexml": "0.68.0",
64
+ "@haklex/rich-plugin-block-handle": "0.68.0",
65
+ "@haklex/rich-plugin-floating-toolbar": "0.68.0",
66
+ "@haklex/rich-plugin-link-edit": "0.68.0",
67
+ "@haklex/rich-plugin-slash-menu": "0.68.0",
68
+ "@haklex/rich-plugin-toolbar": "0.68.0",
69
+ "@haklex/rich-renderer-alert": "0.68.0",
70
+ "@haklex/rich-renderer-codeblock": "0.68.0",
71
+ "@haklex/rich-renderer-image": "0.68.0",
72
+ "@haklex/rich-renderer-katex": "0.68.0",
73
+ "@haklex/rich-renderer-mermaid": "0.68.0",
74
+ "@haklex/rich-style-token": "0.68.0",
75
75
  "@lexical/extension": "0.53.0",
76
76
  "@lexical/headless": "0.53.0",
77
77
  "@lexical/link": "0.53.0",
@@ -1 +0,0 @@
1
- .bar-text{align-items:center;display:inline-flex;position:relative}.bar-text-in{animation:.22s cubic-bezier(.2,0,0,1) 80ms both bar-text-in}.bar-text-out{white-space:nowrap;animation:.12s cubic-bezier(.4,0,1,1) both bar-text-out;position:absolute;top:50%;left:0;translate:0 -50%}@keyframes bar-text-in{0%{opacity:0;transform:translateY(4px)}}@keyframes bar-text-out{to{opacity:0;transform:translateY(-4px)}}@media (prefers-reduced-motion:reduce){.bar-text-in,.bar-text-out{animation:none}.bar-text-out{display:none}}.since-marks{--since-agent:#7b61ff;--since-tint:#7b61ff12;pointer-events:none;position:absolute;inset:0}@media (prefers-color-scheme:dark){.since-marks{--since-agent:#9a86ff;--since-tint:#9a86ff1f}}[data-since-deleted=before]{margin-top:var(--since-gap)!important}[data-since-deleted=after]{margin-bottom:var(--since-gap)!important}.since-focus{z-index:-1;background:var(--since-tint);border-radius:8px;transition:opacity .3s cubic-bezier(.2,0,0,1);position:absolute}.since-mark{pointer-events:auto;width:12px;transition:opacity .3s cubic-bezier(.2,0,0,1);position:absolute}.since-mark:before{content:"";background:var(--since-agent);border-radius:2px;width:3px;position:absolute;top:4px;bottom:4px;left:4.5px}.since-mark[data-seen],.since-row[data-seen]{opacity:.35}.since-marks[data-leaving] .since-mark,.since-marks[data-leaving] .since-row,.since-marks[data-leaving] .since-focus{opacity:0;pointer-events:none}.since-tip{color:#e4e4e7;white-space:nowrap;background:#18181b;border-radius:6px;align-items:center;gap:6px;height:26px;padding:0 10px;font-size:12px;display:none;position:absolute;top:0;right:calc(100% + 8px)}.since-tip b{color:#fff;font-weight:500}.since-mark:hover .since-tip{display:inline-flex}.since-row{pointer-events:auto;transition:opacity .3s cubic-bezier(.2,0,0,1);position:absolute}.since-row-bar{background:repeating-linear-gradient(var(--since-agent) 0 3px, transparent 3px 6px);border-radius:2px;width:3px;position:absolute;top:4px;bottom:4px}.since-row-head{height:28px;color:var(--lobe-color-text-tertiary,#9a9a9a);align-items:center;gap:8px;font-size:13px;display:flex}.since-row-rule{background:var(--lobe-color-border-secondary,#efefef);flex:1;height:1px}.since-row-head button{color:var(--lobe-color-text-secondary,#5f5f5f);font:inherit;text-decoration:underline;-webkit-text-decoration-color:var(--lobe-color-border,#e5e5e5);text-decoration-color:var(--lobe-color-border,#e5e5e5);text-underline-offset:3px;cursor:pointer;background:0 0;border:0;padding:0}.since-row-body{padding-top:4px}.ryugi-editor-toolbar-slot:has(.ryugi-editor-toolbar,.history-bar)>.history-toolbar-space{display:none}.ryugi-doc:has(.history-toolbar-space){--ryugi-editor-toolbar-height:37px}.ryugi-doc:has(.history-toolbar-space):has([data-doc-topbar]){--ryugi-doc-top:44px}.ryugi-doc:has(.history-toolbar-space) [data-doc-topbar]{height:var(--ryugi-doc-top)}.history-view [hidden],.history-panel [hidden]{display:none!important}.history-block .rich-content,.history-block [class*=richContent]{max-width:100%;font-size:14px;line-height:1.75}.history-block .rich-content>:first-child{margin-top:0}.history-block .rich-content>:last-child{margin-bottom:0}.history-block .rich-content>.rich-heading-h1{font-size:24px;line-height:1.35}.history-block .rich-content>.rich-heading-h2{font-size:20px;line-height:1.4}.history-block .rich-content>.rich-heading-h3{font-size:17px;line-height:1.45}.history-block pre{white-space:pre-wrap;overflow-wrap:anywhere}.history-block table,.history-block img{max-width:100%}@media (width<=640px){.history-block table{font-size:12px}.history-block .rich-content,.history-block [class*=richContent]{font-size:16px}}.history-rail{min-width:0;height:100%;position:relative}.history-rail[data-moving]{overflow-clip-margin:1px;overflow:clip}.history-rail-track{grid-template-columns:100%;height:100%;transition:transform .28s cubic-bezier(.2,0,0,1);display:grid}.history-rail[data-open]>.history-rail-track{transform:translate(-100%)}.history-rail-comments,.history-rail-panel{grid-area:1/1;min-width:0}.history-rail-panel{border-left:1px solid var(--lobe-color-border-secondary);padding-left:20px;transform:translate(100%)}.history-rail:not([data-moving]) .history-rail-panel{display:none}.history-timeline-scroll{scrollbar-width:thin;overscroll-behavior:contain;min-height:0;overflow-y:auto}.history-change-summary{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.history-rail-comments[aria-hidden=true]{pointer-events:none}.history-content{padding:40px 16px 28px}.history-content-title{margin:0 0 32px;font-size:24px;font-weight:700;line-height:1.35}.history-block{min-width:0;margin:0 0 16px;scroll-margin-top:120px;position:relative}.history-block[data-heading=h1]{margin-bottom:32px}.history-block[data-heading=h2]{margin-top:36px;margin-bottom:10px}.history-block[data-heading=h3]{margin-top:24px;margin-bottom:6px}.history-block[data-heading=h4],.history-block[data-heading=h5],.history-block[data-heading=h6]{margin-top:20px;margin-bottom:6px}.history-block[data-folded]{display:none}.history-block[data-kind=insert]>.history-current,.history-block[data-kind=modify]>.history-current{position:relative}.history-block[data-kind=insert]>.history-current:before,.history-block[data-kind=modify]>.history-current:before{content:"";background:var(--lobe-color-success-text);border-radius:1px;width:2px;position:absolute;top:0;bottom:0;left:-14px}.history-block[data-current]{outline:1px solid var(--lobe-color-border-secondary);outline-offset:8px;border-radius:3px}.history-before{grid-template-rows:1fr;transition:grid-template-rows .28s cubic-bezier(.2,0,0,1);display:grid}.history-before-inner{min-height:0;overflow:hidden}.history-old-content{border-left:2px solid var(--lobe-color-error-text);background:color-mix(in srgb, var(--lobe-color-error-text) 7%, var(--lobe-color-bg-container));border-radius:0 4px 4px 0;margin-top:10px;padding:8px 12px}.history-old-content .rich-content{color:var(--lobe-color-text);font-size:12px}.history-caption{color:color-mix(in srgb, var(--lobe-color-error-text) 70%, var(--lobe-color-text));font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:8px;margin-bottom:5px;font-size:11px;display:flex}.history-caption>:last-child{color:var(--lobe-color-text-secondary)}.history-no-diff,.history-inline-status{color:var(--lobe-color-text-secondary);margin:12px 0;font-size:12px}.history-inline-status button,.history-expand{color:var(--lobe-color-text-secondary);background:var(--lobe-color-fill-tertiary);font:inherit;cursor:pointer;border:0;border-radius:4px;padding:7px 10px}.history-expand{text-align:left;width:100%;font-size:11px}@starting-style{.history-before{grid-template-rows:0fr}}@media (prefers-reduced-motion:reduce){.history-rail-track,.history-before{transition:none}}.history-space-toc{display:contents}.ryugi-doc:has(.history-space-shell[data-immersive]){overflow-x:clip}.history-space-shell[data-immersive]{--history-gutter:16px;--history-side-width:172px;--history-paper-left:var(--history-gutter);--history-paper-top:48px;--history-paper-width:calc(100% - var(--history-gutter) * 2 - var(--history-side-width) - 20px);z-index:200;position:fixed;inset:0;overflow:hidden}.ryugi-doc article:has(.history-space-shell[data-immersive]){z-index:100}.ryugi-doc [data-doc-topbar]{transition:opacity .62s cubic-bezier(.2,.8,.2,1)}.ryugi-doc:has(.history-space-shell[data-open]) [data-doc-topbar]{opacity:0;pointer-events:none}.ryugi-doc:has(.history-space-shell[data-open]) .history-space-toc>nav{opacity:0;pointer-events:none;transform:translate(-80px)}.ryugi-doc:has(.history-space-shell[data-open]) .history-space-comments{opacity:0;pointer-events:none;transform:translate(140px)}.history-space-toc>nav,.history-space-comments{transition:transform .54s cubic-bezier(.2,.8,.2,1),opacity .24s}.history-space-shell[data-immersive] .history-space-paper{left:var(--history-paper-left);top:var(--history-paper-top);width:var(--history-paper-width);z-index:2;border:1px solid var(--history-paper-border);background:var(--history-paper-bg);border-bottom:0;border-radius:8px 8px 0 0;transition:box-shadow .62s cubic-bezier(.2,.8,.2,1),border-color .62s cubic-bezier(.2,.8,.2,1),border-radius .62s cubic-bezier(.2,.8,.2,1);position:absolute;bottom:0;overflow:hidden;box-shadow:0 20px 64px #0003,0 1px 2px #0002}.history-space-shell[data-immersive]:not([data-open]) .history-space-paper{border-color:#0000;border-radius:0;box-shadow:0 0 #0000,0 0 #0000}.history-space-shell[data-immersive]{--history-paper-bg:var(--lobe-color-bg-container);--history-paper-border:#e9e4dc;--history-paper-rule:#eeebe5;--history-paper-muted:#796e5e;--history-paper-scrollbar:#d4cfc5;--history-sheet-bg:#c9c6c0;--history-sheet-border:#b5b1a9}@media not (prefers-color-scheme:dark){.history-space-shell[data-immersive] .history-space-paper{color:#2d2c28;--lobe-color-text:#2d2c28;--lobe-color-text-secondary:#71695f;--lobe-color-border-secondary:#e9e4da;--lobe-color-success-text:#2b6443;--lobe-color-error-text:#985544;--lobe-color-fill-tertiary:#f5f3ef;--rc-host-text:#2d2c28;--rc-host-text-secondary:#71695f;--rc-host-text-tertiary:#796e5e;--rc-host-bg:var(--history-paper-bg);--rc-host-bg-secondary:#faf9f6;--rc-host-bg-tertiary:#f4f2ed;--rc-host-bg-elevated:#fff;--rc-host-border:#e5e1da;--rc-host-border-subtle:#eeebe5;--rc-host-fill:#00000012;--rc-host-fill-secondary:#0000000b;--rc-host-fill-tertiary:#00000008;--rc-host-fill-quaternary:#00000005;--rc-host-link:#2563eb;--rc-host-code-text:#2d2c28;--rc-host-code-bg:#f4f2ed;--rc-host-code-header-bg:#f4f2ed;--rc-host-quote-bg:#f5f3ef;--rc-host-quote-border:#d4cfc5}}@media (prefers-color-scheme:dark){.history-space-shell[data-immersive]{--history-paper-border:#2c3036;--history-paper-rule:#2a2d33;--history-paper-muted:#8b8f96;--history-paper-scrollbar:#3a3e45;--history-sheet-bg:#2a2d33;--history-sheet-border:#3a3e45}.history-space-shell[data-immersive] .history-space-paper{color:var(--lobe-color-text);--rc-host-bg:var(--history-paper-bg);box-shadow:0 20px 64px #0008,0 0 0 1px #ffffff08}}.history-space-leaf{pointer-events:none}.history-space-shell[data-immersive] .history-space-scroll{box-sizing:border-box;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--history-paper-scrollbar) transparent;height:100%;padding:0 0 64px;overflow-y:auto}.history-space-shell[data-immersive] .history-space-scroll>div{max-width:var(--history-reading-width,760px);margin-inline:auto}.history-space-shell[data-immersive] .history-space-snapshot,.history-space-shell[data-immersive] .history-content{padding:40px 16px 0}.history-space-shell[data-immersive] .history-block[data-current]{outline:none}.history-space-shell[data-immersive] [hidden]{display:none!important}.history-space-snapshot .rich-content{font-size:14px;line-height:1.95}.history-space-ui{background:var(--lobe-color-bg-layout);color:#f1f0ed;opacity:0;font:13px/1.5 -apple-system,BlinkMacSystemFont,PingFang SC,sans-serif;transition:opacity .62s cubic-bezier(.2,.8,.2,1);position:absolute;inset:0}[data-open]>.history-space-ui{opacity:1}.history-space-ui button:not(.lobe-button,.lobe-segmented__item){font:inherit;color:inherit;cursor:pointer;background:0 0;border:0}.history-space-ui button:not(.lobe-button,.lobe-segmented__item):disabled{opacity:.3;cursor:default}.history-space-ui button:not(.lobe-button,.lobe-segmented__item):focus-visible{outline-offset:4px;outline:2px solid #e19779}.history-space-header{height:var(--history-paper-top);box-sizing:border-box;padding:0 var(--history-gutter);white-space:nowrap;z-index:4;align-items:center;gap:10px;display:flex;position:absolute;inset:0 0 auto}.history-space-header>strong{font-size:14px;font-weight:550}.history-space-name{color:#b0b1b4;text-overflow:ellipsis;border-left:1px solid #393d43;max-width:240px;margin-left:2px;padding-left:12px;font-size:12px;overflow:hidden}.history-space-caption{color:#b0b1b4;border-left:1px solid #393d43;align-items:center;gap:10px;min-width:0;margin-left:2px;padding-left:12px;font-size:12px;display:flex}.history-space-clock{color:#f1f0ed;font-variant-numeric:tabular-nums;font-size:15px;font-weight:550}.history-space-source{align-items:center;gap:5px;display:flex}.history-space-description{color:#a0a3a8;text-overflow:ellipsis;align-items:center;gap:8px;min-width:0;display:flex;overflow:hidden}.history-space-description:before{content:"·";color:#5c6067}.history-space-description button{text-decoration:underline}.history-space-updating{color:#a0a3a8;font-size:11px}.history-space-actions{align-items:center;gap:8px;margin-left:auto;display:flex}.history-space-caption .history-space-commits{color:inherit}.history-space-stack{opacity:0;z-index:1;left:var(--history-paper-left);top:var(--history-paper-top);width:var(--history-paper-width);height:40px;transition:opacity .26s;position:absolute}.history-space-ui .history-space-sheet{z-index:calc(5 - var(--depth));background:var(--history-sheet-bg);border:1px solid var(--history-sheet-border);width:100%;transform:translateY(calc(var(--depth) * -6px)) scaleX(calc(1 - var(--depth) * .014));opacity:calc(1 - var(--depth) * .3);border-radius:8px 8px 0 0;transition:transform .2s;position:absolute;inset:0}.history-space-ui .history-space-sheet:hover{transform:translateY(calc(var(--depth) * -6px - 3px)) scaleX(calc(1 - var(--depth) * .014))}.history-space-side{top:var(--history-paper-top);right:var(--history-gutter);bottom:var(--history-gutter);width:var(--history-side-width);z-index:4;flex-direction:column;gap:18px;display:flex;position:absolute}.history-space-steps{color:#a0a3a8;font-variant-numeric:tabular-nums;justify-content:flex-end;align-items:center;gap:10px;padding-right:9px;font-size:11px;display:flex}.history-space-steps button{border:1px solid #393d43;border-radius:50%;place-items:center;width:30px;height:30px;display:grid}.history-space-steps button:hover:not(:disabled){background:#30343a}.history-space-rail{overscroll-behavior:contain;scrollbar-width:none;flex:1;min-height:0;overflow-y:auto}.history-space-notice:empty{display:none}.history-space-keyboard{color:#a0a3a8;text-align:right;padding-right:9px;font-size:10px}.history-space-rail ol{margin:0;padding:0;list-style:none}.history-space-rail li{margin:0;padding:0}.history-space-rail ol button{text-align:right;color:#b0b1b4;font-variant-numeric:tabular-nums;justify-content:flex-end;align-items:center;gap:12px;width:100%;height:56px;padding:0 9px 0 0;font-size:11px;display:flex;position:relative}.history-space-rail ol button:after{content:"";background:#393d43;width:1px;position:absolute;top:0;bottom:0;right:9px}.history-space-rail small{color:#a0a3a8;margin-top:2px;font-size:9px;display:block}.history-space-rail i{z-index:1;background:#8d9095;flex:none;width:16px;height:1px;transition:width .3s;display:block}.history-space-rail ol button[aria-current]{color:#f1f0ed;font-size:13px}.history-space-rail button[aria-current] i{background:#e19779;width:38px;height:2px}.history-space-rail button:hover i{width:30px}.history-space-rail p,.history-space-ui .history-space-more{color:#a0a3a8;text-align:right;width:100%;padding:24px 9px 0 0;font-size:10px;display:block}[data-open]>.history-space-ui .history-space-stack{opacity:1;transition-delay:.48s}@starting-style{.history-space-shell[data-open] .history-space-paper{border-color:#0000;border-radius:0;box-shadow:0 0 #0000,0 0 #0000}[data-open]>.history-space-ui .history-space-stack,.history-space-shell[data-open]>.history-space-ui{opacity:0}}@media (width<=1280px){.history-space-name{max-width:160px}.history-space-description{display:none}}@media (prefers-reduced-motion:reduce){.history-space-shell,.history-space-ui,.history-space-toc>nav,.history-space-comments,.history-space-rail i,.history-space-stack,.history-space-ui .history-space-sheet,.history-space-shell .history-space-paper,.ryugi-doc [data-doc-topbar]{transition:none}}
@@ -1 +0,0 @@
1
- import{A as e}from"./editor-B9cVjpUI.js";var t=[e];export{t};