texlite 0.12.0 → 0.14.0

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/DESIGN.md +109 -1
  2. package/THIRD_PARTY_NOTICES.md +17 -0
  3. package/dist/client/assets/{AdminUsers-DMsBqC48.js → AdminUsers-BMwfVHyu.js} +1 -1
  4. package/dist/client/assets/{CitationLibraryDialog-C_333dTc.js → CitationLibraryDialog-D_GkXecF.js} +1 -1
  5. package/dist/client/assets/Dashboard-DhKiB4Lp.js +2 -0
  6. package/dist/client/assets/{GitDialog-DU-sVP-o.js → GitDialog-DHwqaGWR.js} +1 -1
  7. package/dist/client/assets/{GitHubAccountDialog-IrB3M7nt.js → GitHubAccountDialog-yUPMZj-e.js} +1 -1
  8. package/dist/client/assets/{HistoryDialog-CDUbT7yG.js → HistoryDialog-CZK-cFfU.js} +1 -1
  9. package/dist/client/assets/LatexEditor-BuLjoc1X.js +141 -0
  10. package/dist/client/assets/{PdfPreview--HsIb8Fn.js → PdfPreview-BqohZpfh.js} +1 -1
  11. package/dist/client/assets/{ProjectIconPickerDialog-CaF7Kkda.js → ProjectIconPickerDialog-63_apW1i.js} +1 -1
  12. package/dist/client/assets/{ProjectNavigationDialogs-3Ce7-tVp.js → ProjectNavigationDialogs-D8I4OJQB.js} +1 -1
  13. package/dist/client/assets/{ProjectSettings-9hYSUKDo.js → ProjectSettings-ChIKBc0N.js} +1 -1
  14. package/dist/client/assets/ProjectWorkspace-D8vBa8aq.js +32 -0
  15. package/dist/client/assets/{SelectionHistoryDialog-COpXO4kL.js → SelectionHistoryDialog-DiYNdIe5.js} +1 -1
  16. package/dist/client/assets/{SystemMetricsDialog-D9dthbAB.js → SystemMetricsDialog-B9cIXfPM.js} +1 -1
  17. package/dist/client/assets/{TagManagementDialog-S8zDQAaB.js → TagManagementDialog-DqGTPckP.js} +1 -1
  18. package/dist/client/assets/{WordCountDialog-CMsFa_pM.js → WordCountDialog-B0pBzLsg.js} +1 -1
  19. package/dist/client/assets/check-6jrUH-ay.js +1 -0
  20. package/dist/client/assets/{chktex-BFELQm91.js → chktex-Cp2H8q1t.js} +1 -1
  21. package/dist/client/assets/editor-CLY5CgkY.js +14 -0
  22. package/dist/client/assets/{external-link-C2GCFJxP.js → external-link-DtHz2OWn.js} +1 -1
  23. package/dist/client/assets/{github-B_Eh2y6s.js → github-B3ClW0wI.js} +1 -1
  24. package/dist/client/assets/{hard-drive-bzz70DQ5.js → hard-drive-A2DTDrXg.js} +1 -1
  25. package/dist/client/assets/{index-CXtmuEUm.js → index-Bgr9VmTh.js} +1 -1
  26. package/dist/client/assets/index-DNQd-LXW.css +1 -0
  27. package/dist/client/assets/index-DprUq41V.js +10 -0
  28. package/dist/client/assets/{minimize-2-CmPZ9Iwp.js → minimize-2-CjavrBs6.js} +1 -1
  29. package/dist/client/assets/{minus-Dzy8rgfA.js → minus-417bfmnF.js} +1 -1
  30. package/dist/client/assets/{plus-DlX82JCl.js → plus-CCRSrXDi.js} +1 -1
  31. package/dist/client/assets/{refresh-cw-BWndInnG.js → refresh-cw-0bKWvgVy.js} +1 -1
  32. package/dist/client/assets/{search-DMqOy-Ex.js → search-DhHW3xg7.js} +1 -1
  33. package/dist/client/assets/{sigma-B0zOJKVj.js → sigma-ggAZwYZs.js} +1 -1
  34. package/dist/client/assets/{spellCheck-BjkrQxRU.js → spellCheck-JOkkBKD7.js} +1 -1
  35. package/dist/client/assets/{tags-XvdXg-yc.js → tags-jYRdvWMN.js} +1 -1
  36. package/dist/client/assets/{type-DsGlKUKR.js → type-CZnTyitQ.js} +1 -1
  37. package/dist/client/assets/{user-plus-Bcq_EsqH.js → user-plus-DFkFh0mU.js} +1 -1
  38. package/dist/client/assets/x-CUwbFgRb.js +1 -0
  39. package/dist/client/index.html +3 -2
  40. package/package.json +7 -5
  41. package/dist/client/assets/Dashboard-EOaNnS1A.js +0 -2
  42. package/dist/client/assets/LatexEditor-BYgW2otE.js +0 -138
  43. package/dist/client/assets/ProjectWorkspace-D9zmy0KR.js +0 -32
  44. package/dist/client/assets/check-Hv1kodh8.js +0 -1
  45. package/dist/client/assets/editor-taw1iptB.js +0 -14
  46. package/dist/client/assets/index-CxrDisif.css +0 -1
  47. package/dist/client/assets/index-Dik-2GCl.js +0 -10
  48. package/dist/client/assets/x-BJOMjm8Z.js +0 -1
@@ -1 +1 @@
1
- import{u as k,j as e,r as c}from"./react-BVUjbTTn.js";import{g as u,h,M as y,d as x}from"./index-Dik-2GCl.js";import{G as b}from"./github-B_Eh2y6s.js";import{T}from"./x-BJOMjm8Z.js";import{E as A}from"./external-link-C2GCFJxP.js";function C(){const{t:i}=k();return e.jsxs("div",{className:"git-token-guidance",children:[e.jsx("strong",{children:i("git.recommendedAccessTitle")}),e.jsxs("span",{children:[i("git.recommendedAccessBeforeAll"),e.jsx("em",{className:"git-token-highlight",children:"All repositories"}),i("git.recommendedAccessBeforeAdministration"),e.jsx("em",{className:"git-token-highlight",children:"Administration"}),i("git.recommendedAccessBetweenPermissions"),e.jsx("em",{className:"git-token-highlight",children:"Contents"}),i("git.recommendedAccessAfterPermissions")]})]})}function G({open:i,onOpenChange:p}){const{t}=k(),[r,m]=c.useState(null),[g,d]=c.useState(""),[a,n]=c.useState(""),[j,o]=c.useState(""),[f,l]=c.useState("");c.useEffect(()=>{i&&(n("load"),o(""),l(""),d(""),u("/api/account/github").then(s=>m(s.status)).catch(s=>o(h(s))).finally(()=>n(s=>s==="load"?"":s)))},[i]);const v=async()=>{n("save"),o(""),l("");try{const s=await u("/api/account/github",{method:"PUT",body:JSON.stringify({token:g})});m(s.status),d(""),l(t("account.githubSaved"))}catch(s){o(h(s))}finally{n("")}},N=async()=>{n("remove"),o(""),l("");try{const s=await u("/api/account/github",{method:"DELETE"});m(s.status),d(""),l(t("account.githubRemoved"))}catch(s){o(h(s))}finally{n("")}};return e.jsx(y,{open:i,title:t("account.githubTitle"),description:t("account.githubDescription"),onOpenChange:s=>{a||p(s)},footer:e.jsxs(e.Fragment,{children:[e.jsx("button",{disabled:!!a,onClick:()=>p(!1),children:t("common.close")}),e.jsxs("button",{className:"primary",disabled:!!a||g.trim().length<20,onClick:()=>{v()},children:[a==="save"&&e.jsx(x,{className:"spin",size:14}),t("git.saveToken")]})]}),children:e.jsxs("div",{className:"git-dialog account-github-dialog",children:[a==="load"&&!r&&e.jsxs("div",{className:"git-loading",children:[e.jsx(x,{className:"spin",size:20}),t("common.loading")]}),j&&e.jsx("p",{className:"git-message error dialog-error",children:j}),f&&e.jsxs("p",{className:"git-message success",children:[e.jsx(b,{size:14}),f]}),r&&e.jsxs(e.Fragment,{children:[e.jsx(C,{}),r.tokenConfigured&&e.jsxs("div",{className:"git-account",children:[e.jsx(b,{size:17}),e.jsx("span",{children:t("git.connectedAs",{login:r.githubLogin})}),e.jsxs("button",{className:"danger-text",disabled:!!a,onClick:()=>{N()},children:[a==="remove"?e.jsx(x,{className:"spin",size:14}):e.jsx(T,{size:14}),t("git.removeToken")]})]}),e.jsxs("label",{className:"form-field",children:[r.tokenConfigured?t("git.replaceToken"):t("git.token"),e.jsx("input",{type:"password",autoComplete:"new-password",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",value:g,placeholder:t("git.tokenPlaceholder"),onChange:s=>d(s.target.value)})]}),e.jsx("div",{className:"git-inline-actions",children:e.jsxs("a",{href:"https://github.com/settings/personal-access-tokens/new",target:"_blank",rel:"noreferrer",children:[t("git.createToken"),e.jsx(A,{size:12})]})}),e.jsx("p",{className:"muted account-github-encryption-note",children:t("account.githubEncryption")})]})]})})}export{G as GitHubAccountDialog};
1
+ import{u as k,j as e,r as c}from"./react-BVUjbTTn.js";import{g as u,h,M as y,d as x}from"./index-DprUq41V.js";import{G as b}from"./github-B3ClW0wI.js";import{T}from"./x-CUwbFgRb.js";import{E as A}from"./external-link-DtHz2OWn.js";function C(){const{t:i}=k();return e.jsxs("div",{className:"git-token-guidance",children:[e.jsx("strong",{children:i("git.recommendedAccessTitle")}),e.jsxs("span",{children:[i("git.recommendedAccessBeforeAll"),e.jsx("em",{className:"git-token-highlight",children:"All repositories"}),i("git.recommendedAccessBeforeAdministration"),e.jsx("em",{className:"git-token-highlight",children:"Administration"}),i("git.recommendedAccessBetweenPermissions"),e.jsx("em",{className:"git-token-highlight",children:"Contents"}),i("git.recommendedAccessAfterPermissions")]})]})}function G({open:i,onOpenChange:p}){const{t}=k(),[r,m]=c.useState(null),[g,d]=c.useState(""),[a,n]=c.useState(""),[j,o]=c.useState(""),[f,l]=c.useState("");c.useEffect(()=>{i&&(n("load"),o(""),l(""),d(""),u("/api/account/github").then(s=>m(s.status)).catch(s=>o(h(s))).finally(()=>n(s=>s==="load"?"":s)))},[i]);const v=async()=>{n("save"),o(""),l("");try{const s=await u("/api/account/github",{method:"PUT",body:JSON.stringify({token:g})});m(s.status),d(""),l(t("account.githubSaved"))}catch(s){o(h(s))}finally{n("")}},N=async()=>{n("remove"),o(""),l("");try{const s=await u("/api/account/github",{method:"DELETE"});m(s.status),d(""),l(t("account.githubRemoved"))}catch(s){o(h(s))}finally{n("")}};return e.jsx(y,{open:i,title:t("account.githubTitle"),description:t("account.githubDescription"),onOpenChange:s=>{a||p(s)},footer:e.jsxs(e.Fragment,{children:[e.jsx("button",{disabled:!!a,onClick:()=>p(!1),children:t("common.close")}),e.jsxs("button",{className:"primary",disabled:!!a||g.trim().length<20,onClick:()=>{v()},children:[a==="save"&&e.jsx(x,{className:"spin",size:14}),t("git.saveToken")]})]}),children:e.jsxs("div",{className:"git-dialog account-github-dialog",children:[a==="load"&&!r&&e.jsxs("div",{className:"git-loading",children:[e.jsx(x,{className:"spin",size:20}),t("common.loading")]}),j&&e.jsx("p",{className:"git-message error dialog-error",children:j}),f&&e.jsxs("p",{className:"git-message success",children:[e.jsx(b,{size:14}),f]}),r&&e.jsxs(e.Fragment,{children:[e.jsx(C,{}),r.tokenConfigured&&e.jsxs("div",{className:"git-account",children:[e.jsx(b,{size:17}),e.jsx("span",{children:t("git.connectedAs",{login:r.githubLogin})}),e.jsxs("button",{className:"danger-text",disabled:!!a,onClick:()=>{N()},children:[a==="remove"?e.jsx(x,{className:"spin",size:14}):e.jsx(T,{size:14}),t("git.removeToken")]})]}),e.jsxs("label",{className:"form-field",children:[r.tokenConfigured?t("git.replaceToken"):t("git.token"),e.jsx("input",{type:"password",autoComplete:"new-password",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",value:g,placeholder:t("git.tokenPlaceholder"),onChange:s=>d(s.target.value)})]}),e.jsx("div",{className:"git-inline-actions",children:e.jsxs("a",{href:"https://github.com/settings/personal-access-tokens/new",target:"_blank",rel:"noreferrer",children:[t("git.createToken"),e.jsx(A,{size:12})]})}),e.jsx("p",{className:"muted account-github-encryption-note",children:t("account.githubEncryption")})]})]})})}export{G as GitHubAccountDialog};
@@ -1,4 +1,4 @@
1
- import{u as He,r as a,j as e}from"./react-BVUjbTTn.js";import{c as Be,g as _,M as Ve,d as le,C as Ce,A as we}from"./index-Dik-2GCl.js";import{d as _e,C as $e}from"./index-CXtmuEUm.js";import{H as Ie}from"./hard-drive-bzz70DQ5.js";import{T as Se,c as Oe,e as ue}from"./x-BJOMjm8Z.js";import{F as Te,R as Ee,S as Ue,B as We}from"./ProjectWorkspace-D9zmy0KR.js";import{M as Ye,a as qe}from"./minus-Dzy8rgfA.js";import{P as Ge}from"./plus-DlX82JCl.js";import{M as Je}from"./minimize-2-CmPZ9Iwp.js";import"./check-Hv1kodh8.js";import"./search-DMqOy-Ex.js";import"./user-plus-Bcq_EsqH.js";import"./refresh-cw-BWndInnG.js";const Ke=Be("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);function Fe(i,c,C,j="历史版本",s="当前版本",p=3){const S=c.replace(/\r\n/g,`
1
+ import{u as He,r as a,j as e}from"./react-BVUjbTTn.js";import{c as Be,g as _,M as Ve,d as le,C as Ce,A as we}from"./index-DprUq41V.js";import{d as _e,C as $e}from"./index-Bgr9VmTh.js";import{H as Ie}from"./hard-drive-A2DTDrXg.js";import{T as Se,c as Oe,e as ue}from"./x-CUwbFgRb.js";import{F as Te,R as Ee,S as Ue,D as We}from"./ProjectWorkspace-D8vBa8aq.js";import{M as Ye,a as qe}from"./minus-417bfmnF.js";import{P as Ge}from"./plus-CCRSrXDi.js";import{M as Je}from"./minimize-2-CjavrBs6.js";import"./check-6jrUH-ay.js";import"./search-DhHW3xg7.js";import"./user-plus-DFkFh0mU.js";import"./refresh-cw-0bKWvgVy.js";const Ke=Be("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);function Fe(i,c,C,j="历史版本",s="当前版本",p=3){const S=c.replace(/\r\n/g,`
2
2
  `),R=C.replace(/\r\n/g,`
3
3
  `);if(S===R)return{diffText:"",additions:0,deletions:0,hasChanges:!1};const h=new _e,k=h.diff_linesToChars_(S,R),b=h.diff_main(k.chars1,k.chars2,!1);h.diff_charsToLines_(b,k.lineArray);const w=[];let n=1,T=1,u=0,z=0;for(const[d,v]of b){if(!v)continue;const f=v.split(`
4
4
  `);f[f.length-1]===""&&f.pop();for(const A of f)d===0?w.push({op:0,text:A,oldNum:n++,newNum:T++}):d===-1?(z++,w.push({op:-1,text:A,oldNum:n++,newNum:T})):d===1&&(u++,w.push({op:1,text:A,oldNum:n,newNum:T++}))}if(u===0&&z===0)return{diffText:"",additions:0,deletions:0,hasChanges:!1};const g=[];let y=-1,P=-1;for(let d=0;d<w.length;d++)if(w[d].op!==0){const v=Math.max(0,d-p),f=Math.min(w.length-1,d+p);y===-1?(y=v,P=f):v<=P+1?P=Math.max(P,f):(g.push({start:y,end:P}),y=v,P=f)}y!==-1&&g.push({start:y,end:P});const G=[`--- a/${i} (${j})`,`+++ b/${i} (${s})`];for(const d of g){const v=w.slice(d.start,d.end+1),f=v.filter($=>$.op<=0).length,A=v.filter($=>$.op>=0).length,E=v[0],O=f===0?0:E.oldNum,J=A===0?0:E.newNum;G.push(`@@ -${O},${f} +${J},${A} @@`);for(const $ of v){const U=$.op===-1?"-":$.op===1?"+":" ";G.push(`${U}${$.text}`)}}return{diffText:G.join(`