texlite 0.14.0 → 0.16.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.
- package/DESIGN.md +94 -4
- package/README.md +5 -2
- package/README.zh-CN.md +5 -2
- package/dist/client/assets/AdminUsers-Dyapv-3c.js +1 -0
- package/dist/client/assets/CitationLibraryDialog-CU7Q7r0Z.js +1 -0
- package/dist/client/assets/Dashboard-DsdhFENx.js +2 -0
- package/dist/client/assets/GitDialog-CZpnKw-J.js +3 -0
- package/dist/client/assets/{GitHubAccountDialog-yUPMZj-e.js → GitHubAccountDialog-CZ8O_PjD.js} +1 -1
- package/dist/client/assets/{HistoryDialog-CZK-cFfU.js → HistoryDialog-DWYErBwj.js} +3 -3
- package/dist/client/assets/LatexEditor-CssVgypt.js +141 -0
- package/dist/client/assets/{PdfPreview-BqohZpfh.js → PdfPreview-BjghzUb1.js} +1 -1
- package/dist/client/assets/{ProjectIconPickerDialog-63_apW1i.js → ProjectIconPickerDialog-CqRmgFBM.js} +1 -1
- package/dist/client/assets/{ProjectNavigationDialogs-D8I4OJQB.js → ProjectNavigationDialogs-BZxI3PJO.js} +1 -1
- package/dist/client/assets/ProjectSettings-CZE_xDKn.js +1 -0
- package/dist/client/assets/ProjectWorkspace-CAX3qEYr.js +32 -0
- package/dist/client/assets/{SelectionHistoryDialog-DiYNdIe5.js → SelectionHistoryDialog-CR5c3I8k.js} +2 -2
- package/dist/client/assets/{SystemMetricsDialog-B9cIXfPM.js → SystemMetricsDialog-DDpFwgXh.js} +1 -1
- package/dist/client/assets/{TagManagementDialog-DqGTPckP.js → TagManagementDialog-CXLA9h_j.js} +1 -1
- package/dist/client/assets/WordCountDialog-DUyR24vv.js +1 -0
- package/dist/client/assets/check-CwBYzomT.js +1 -0
- package/dist/client/assets/chevron-up-D5lCNKlk.js +1 -0
- package/dist/client/assets/chktex-CRkLYKcV.js +3 -0
- package/dist/client/assets/{citationLibrary-ZeQPCv5O.js → citationLibrary-C9WnXB-1.js} +2 -2
- package/dist/client/assets/{external-link-DtHz2OWn.js → external-link-C9Td1CCj.js} +1 -1
- package/dist/client/assets/{github-B3ClW0wI.js → github-D-JDXb-w.js} +1 -1
- package/dist/client/assets/{hard-drive-A2DTDrXg.js → hard-drive-Ctj3K_zx.js} +1 -1
- package/dist/client/assets/{index-Bgr9VmTh.js → index-9hnQ8Q9x.js} +1 -1
- package/dist/client/assets/index-C0qg2Ylw.css +1 -0
- package/dist/client/assets/index-DkpU9Fgs.js +10 -0
- package/dist/client/assets/index-_eYe7K9T.js +1 -0
- package/dist/client/assets/{minimize-2-CjavrBs6.js → minimize-2-BiVyoWZA.js} +1 -1
- package/dist/client/assets/{minus-417bfmnF.js → minus-Bl8l4LXq.js} +1 -1
- package/dist/client/assets/{plus-CCRSrXDi.js → plus-CCxK-HNt.js} +1 -1
- package/dist/client/assets/react-CltQJflK.js +49 -0
- package/dist/client/assets/{refresh-cw-0bKWvgVy.js → refresh-cw-BE8IbaHI.js} +1 -1
- package/dist/client/assets/{search-DhHW3xg7.js → search-CPbhRWQE.js} +1 -1
- package/dist/client/assets/{sigma-ggAZwYZs.js → sigma-LxGD9tK2.js} +1 -1
- package/dist/client/assets/spellCheck-hpm8qZTr.js +1 -0
- package/dist/client/assets/{tags-jYRdvWMN.js → tags-DuN89PsZ.js} +1 -1
- package/dist/client/assets/{type-CZnTyitQ.js → type-BiettCiY.js} +1 -1
- package/dist/client/assets/{x-CUwbFgRb.js → x-C_3swJOC.js} +1 -1
- package/dist/client/index.html +4 -4
- package/dist/client/texlite-icon.svg +8 -0
- package/dist/server/anchors.js +57 -96
- package/dist/server/auth.js +0 -3
- package/dist/server/chktex.js +3 -4
- package/dist/server/collaboration.js +34 -1
- package/dist/server/db.js +9 -1
- package/dist/server/i18n.js +4 -0
- package/dist/server/latexCompletion.js +11 -88
- package/dist/server/projectOutline.js +4 -39
- package/dist/server/projectSearch.js +0 -4
- package/dist/server/routes/citations.js +22 -0
- package/dist/server/routes/comments.js +4 -4
- package/dist/server/routes/projectShared.js +11 -2
- package/dist/server/routes/users.js +21 -3
- package/dist/shared/bibtexReferences.js +5 -1
- package/dist/shared/latexCompletion.js +1 -0
- package/dist/shared/latexReferences.js +13 -3
- package/dist/shared/latexSymbols.js +77 -0
- package/dist/shared/sourceCommentAnchors.js +128 -0
- package/package.json +1 -1
- package/dist/client/assets/AdminUsers-BMwfVHyu.js +0 -1
- package/dist/client/assets/CitationLibraryDialog-D_GkXecF.js +0 -1
- package/dist/client/assets/Dashboard-DhKiB4Lp.js +0 -2
- package/dist/client/assets/GitDialog-DHwqaGWR.js +0 -3
- package/dist/client/assets/LatexEditor-BuLjoc1X.js +0 -141
- package/dist/client/assets/ProjectSettings-ChIKBc0N.js +0 -1
- package/dist/client/assets/ProjectWorkspace-D8vBa8aq.js +0 -32
- package/dist/client/assets/WordCountDialog-B0pBzLsg.js +0 -1
- package/dist/client/assets/check-6jrUH-ay.js +0 -1
- package/dist/client/assets/chktex-Cp2H8q1t.js +0 -3
- package/dist/client/assets/index-DNQd-LXW.css +0 -1
- package/dist/client/assets/index-DprUq41V.js +0 -10
- package/dist/client/assets/react-BVUjbTTn.js +0 -49
- package/dist/client/assets/spellCheck-JOkkBKD7.js +0 -1
- package/dist/client/assets/user-plus-DFkFh0mU.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as w,A as L}from"./index-DprUq41V.js";import{s as y,c as S}from"./ProjectWorkspace-D8vBa8aq.js";import"./react-BVUjbTTn.js";import"./check-6jrUH-ay.js";import"./x-CUwbFgRb.js";import"./search-DhHW3xg7.js";import"./user-plus-DFkFh0mU.js";import"./refresh-cw-0bKWvgVy.js";const k=5,f=new Map,C=12,x=S();let E=0;class p extends Error{constructor(){super("A newer writing check replaced this request."),this.name="HarperLintSupersededError"}}function I(e){return e instanceof p}function $(e){const t=[0];let r=0;for(const n of e)r+=n.length,t.push(r);return t}function d(e){return[...new Set(e.map(t=>t.trim()).filter(Boolean))].sort((t,r)=>t.localeCompare(r)).join("\0")}async function v(e,t,r,n){try{return(await w(`/api/projects/${e}/spellcheck`,{method:"POST",body:JSON.stringify({path:t,source:r,clientId:x,sequence:n})})).lints}catch(o){throw o instanceof L&&o.code==="SPELLCHECK_SUPERSEDED"?new p:o}}function A(e,t,r){if(!t.problem)return null;const n={from:t.start,to:t.end},o={from:r[t.start]??-1,to:r[t.end]??-1},i=c=>c.from>=0&&c.to>c.from&&c.to<=e.length,a=c=>i(c)&&e.slice(c.from,c.to)===t.problem;return a(o)?o:a(n)?n:null}function H(e,t,r){const n=A(e,t,r);if(!n)return null;const{from:o,to:i}=n,a=e.slice(o,i);if(!a.trim()||!/[A-Za-z]/.test(a)||t.kind==="Formatting")return null;const c=t.kind==="Spelling"||t.kind==="Typo"?"spelling":"grammar",u=t.suggestions.filter((m,s,l)=>s<k&&l.indexOf(m)===s);return{from:o,to:i,word:a,kind:c,message:t.message,suggestions:u}}function h(e,t){let r=2166136261;for(let n=0;n<t.length;n+=1)r^=t.charCodeAt(n),r=Math.imul(r,16777619);return`${e}\0${t.length}:${r>>>0}`}function g(e,t,r){const n=h(e,t),o=f.get(n);return!o||o.path!==e||o.source!==t||o.dictionary!==r?null:(f.delete(n),f.set(n,o),o.issues)}function R(e,t,r,n){const o=h(e,t);for(f.set(o,{path:e,source:t,dictionary:r,issues:n});f.size>C;){const i=f.keys().next().value;if(i===void 0)break;f.delete(i)}}async function b(e,t,r,n="main.tex"){const o=d(t),i=g(n,e,o);if(i)return i;const a=$(e),c=new Set(t.map(s=>s.trim().toLocaleLowerCase("en-US")).filter(Boolean)),u=new Set,m=r.map(s=>H(e,s,a)).filter(s=>!!s).filter(s=>s.kind!=="spelling"||!c.has(s.word.trim().toLocaleLowerCase("en-US"))).filter(s=>{const l=`${s.from}:${s.to}:${s.kind}`;return u.has(l)?!1:(u.add(l),!0)}).sort((s,l)=>s.from-l.from||s.to-l.to);return R(n,e,o,m),m}async function P(e,t,r,n){const o=d(n),i=g(t,r,o);if(i)return i;const a=await v(e,t,r,++E);return b(r,n,a,t)}function N(e,t,r,n=[]){return y(t)?P(e,t,r,n):Promise.resolve([])}export{p as HarperLintSupersededError,I as isHarperLintSupersededError,N as lintLatex,b as mapLatexLints};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e}from"./index-DprUq41V.js";const c=e("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);export{c as U};
|