texlite 0.3.7 → 0.4.1
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/dist/client/assets/{GitDialog-x1W5w3-d.js → GitDialog-Cf5wW5Wn.js} +1 -1
- package/dist/client/assets/{HistoryDialog-Bvwadezm.js → HistoryDialog-CXb-MzXH.js} +1 -1
- package/dist/client/assets/{LatexEditor-wqSSWHGU.js → LatexEditor-ytqaJMkb.js} +2 -2
- package/dist/client/assets/{PdfPreview-ChGmyS98.js → PdfPreview-YbXIaedo.js} +1 -1
- package/dist/client/assets/{ProjectNavigationDialogs-WLSieuz_.js → ProjectNavigationDialogs-BMz-OL3a.js} +1 -1
- package/dist/client/assets/{SystemMetricsDialog-DFgp03MH.js → SystemMetricsDialog-BLfDSaDc.js} +1 -1
- package/dist/client/assets/index-BI4dns2b.js +17 -0
- package/dist/client/assets/{plus-4Hi_FYu_.js → plus-CvyFTTaw.js} +1 -1
- package/dist/client/assets/{spellCheck-R6fUM9oA.js → spellCheck-ClNG2x_t.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/index-DtGvC-Uo.js +0 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./index-
|
|
1
|
+
import{i as e}from"./index-BI4dns2b.js";const i=e("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);const s=e("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);const y=e("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);export{s as M,y as P,i as a};
|
|
@@ -49780,4 +49780,4 @@ zygotic
|
|
|
49780
49780
|
zymurgy/M
|
|
49781
49781
|
`,se=re(te,oe),le=/[A-Za-z][A-Za-z0-9]*(?:['’][A-Za-z0-9]+)*/g,Se=/([A-Za-z][A-Za-z0-9_.:/-]*(?:\s+[A-Za-z][A-Za-z0-9_.:/-]*){0,7})\s*$/,ce=new Set(["tabular","tabularx","tabulary","longtable","array","matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"]),xn=new Set(["documentclass","usepackage","RequirePackage","includegraphics","tikzset","pgfplotsset","hypersetup","lstset","definecolor","colorlet","setlength","setcounter","draw","path","fill","filldraw","shade","node","addplot"]),ue=new Set(["label","hypertarget","ref","pageref","autoref","nameref","hyperref","index","gls","Gls","glspl","Glspl","cite","citep","citet","citeauthor","citeyear","citenum","parencite","textcite","autocite","footcite"]);function x(n,t,a){a>t&&n.push({from:t,to:a})}function U(n,t,a,o){if(n[t]!==a)return null;let i=0;for(let r=t;r<n.length;r+=1){const l=n[r-1]==="\\"&&n[r-2]!=="\\";if(!l&&n[r]===a&&(i+=1),!l&&n[r]===o&&(i-=1,i===0))return{from:t,to:r+1,end:r+1}}return null}function L(n,t){let a=t;for(;a<n.length&&/[ \t\r\n]/.test(n[a]);)a+=1;return a}function de(n,t){if(n[t]!=="%")return!1;let a=0;for(let o=t-1;o>=0&&n[o]==="\\";o-=1)a+=1;return a%2===0}function me(n){return/[=,!/]/.test(n)||/\b(?:colorbar|legend|width|height|draw|fill|style|domain|samples|anchor|at|axis)\b/.test(n)}function pe(n){return ue.has(n)||/^cite[A-Za-z]*/.test(n)}function he(n,t){for(let a=n.indexOf("=");a>=0;a=n.indexOf("=",a+1)){const i=Math.max(...[`
|
|
49782
49782
|
`,"[","{","]","}",",",";"].map(s=>n.lastIndexOf(s,a-1)+1)),l=n.slice(i,a).match(Se);l?.index!==void 0&&x(t,i+l.index,a);let e=a+1;for(;e<n.length&&/\s/.test(n[e]);)e+=1;let M=e;if(n[e]==="{")M=U(n,e,"{","}")?.end??e;else for(;M<n.length&&!/[,\]\}\n]/.test(n[M]);)M+=1;x(t,e,M)}}function ge(n){const t=[],a=/[A-Za-z@]/;for(let i=0;i<n.length;i+=1){if(de(n,i)){const s=n.indexOf(`
|
|
49783
|
-
`,i);x(t,i,s<0?n.length:s),i=s<0?n.length:s;continue}if(n[i]!=="\\")continue;const r=i;let l=i+1;if(a.test(n[l]??""))for(;l<n.length&&/[A-Za-z@0-9:_]/.test(n[l]);)l+=1;else l<n.length&&(l+=1);const e=n.slice(i+1,l);x(t,r,l);let M=L(n,l);if(e==="begin"||e==="end"){const s=U(n,M,"{","}");if(s){x(t,s.from,s.to);const d=n.slice(s.from+1,s.to-1).trim();if(M=L(n,s.end),e==="begin"){const S=U(n,M,"[","]");if(S&&(x(t,S.from,S.to),M=L(n,S.end)),ce.has(d)){const y=U(n,M,"{","}");y&&x(t,y.from,y.to)}}}i=l-1;continue}if(pe(e))for(n[M]==="*"&&(M=L(n,M+1));;){const s=U(n,M,"[","]")??U(n,M,"{","}");if(!s)break;x(t,s.from,s.to),M=L(n,s.end)}else{const s=U(n,M,"[","]");if(s&&(xn.has(e)||me(n.slice(s.from+1,s.to-1)))&&(x(t,s.from,s.to),M=L(n,s.end)),xn.has(e)){const d=e==="definecolor"||e==="colorlet"?3:1;for(let S=0;S<d;S+=1){const y=U(n,M,"{","}");if(!y)break;x(t,y.from,y.to),M=L(n,y.end)}}}i=l-1}he(n,t);for(const i of n.matchAll(/(?:https?|ftp):\/\/[^\s]+/gi))i.index!==void 0&&x(t,i.index,i.index+i[0].length);t.sort((i,r)=>i.from-r.from||i.to-r.to);const o=[];for(const i of t){const r=o.at(-1);r&&i.from<=r.to?r.to=Math.max(r.to,i.to):o.push({...i})}return o}function be(n,t,a){for(;a.index<n.length&&n[a.index].to<=t;)a.index+=1;const o=n[a.index];return!!(o&&o.from<=t&&t<o.to)}function De(n,t=[]){const a=ge(n),o={index:0},i=new Set(t.map(l=>l.toLocaleLowerCase("en-US"))),r=[];for(const l of n.matchAll(le)){if(l.index===void 0)continue;const e=l[0],M=l.index,s=M+e.length;be(a,M,o)||e.length<2||/\d/.test(e)
|
|
49783
|
+
`,i);x(t,i,s<0?n.length:s),i=s<0?n.length:s;continue}if(n[i]!=="\\")continue;const r=i;let l=i+1;if(a.test(n[l]??""))for(;l<n.length&&/[A-Za-z@0-9:_]/.test(n[l]);)l+=1;else l<n.length&&(l+=1);const e=n.slice(i+1,l);x(t,r,l);let M=L(n,l);if(e==="begin"||e==="end"){const s=U(n,M,"{","}");if(s){x(t,s.from,s.to);const d=n.slice(s.from+1,s.to-1).trim();if(M=L(n,s.end),e==="begin"){const S=U(n,M,"[","]");if(S&&(x(t,S.from,S.to),M=L(n,S.end)),ce.has(d)){const y=U(n,M,"{","}");y&&x(t,y.from,y.to)}}}i=l-1;continue}if(pe(e))for(n[M]==="*"&&(M=L(n,M+1));;){const s=U(n,M,"[","]")??U(n,M,"{","}");if(!s)break;x(t,s.from,s.to),M=L(n,s.end)}else{const s=U(n,M,"[","]");if(s&&(xn.has(e)||me(n.slice(s.from+1,s.to-1)))&&(x(t,s.from,s.to),M=L(n,s.end)),xn.has(e)){const d=e==="definecolor"||e==="colorlet"?3:1;for(let S=0;S<d;S+=1){const y=U(n,M,"{","}");if(!y)break;x(t,y.from,y.to),M=L(n,y.end)}}}i=l-1}he(n,t);for(const i of n.matchAll(/(?:https?|ftp):\/\/[^\s]+/gi))i.index!==void 0&&x(t,i.index,i.index+i[0].length);t.sort((i,r)=>i.from-r.from||i.to-r.to);const o=[];for(const i of t){const r=o.at(-1);r&&i.from<=r.to?r.to=Math.max(r.to,i.to):o.push({...i})}return o}function be(n,t,a){for(;a.index<n.length&&n[a.index].to<=t;)a.index+=1;const o=n[a.index];return!!(o&&o.from<=t&&t<o.to)}function De(n,t=[]){const a=ge(n),o={index:0},i=new Set(t.map(l=>l.toLocaleLowerCase("en-US"))),r=[];for(const l of n.matchAll(le)){if(l.index===void 0)continue;const e=l[0],M=l.index,s=M+e.length;be(a,M,o)||e.length<2||/\d/.test(e)||i.has(e.toLocaleLowerCase("en-US"))||se.correct(e)||r.push({from:M,to:s,word:e})}return r}export{De as checkSpelling};
|
package/dist/client/index.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/iosevka@5.2.5/400.css" />
|
|
11
11
|
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
|
|
12
12
|
<title>TexLite</title>
|
|
13
|
-
<script type="module" crossorigin src="/assets/index-
|
|
13
|
+
<script type="module" crossorigin src="/assets/index-BI4dns2b.js"></script>
|
|
14
14
|
<link rel="modulepreload" crossorigin href="/assets/react-CsO_xvbl.js">
|
|
15
15
|
<link rel="stylesheet" crossorigin href="/assets/index-Ddch-kkF.css">
|
|
16
16
|
</head>
|