typerighter 0.55.0 → 0.55.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/{app-Dj09xvlJ.js → app-C1ognrj1.js} +37 -37
- package/dist/{cli-qdkrcgUe.js → cli-Cfn9ef18.js} +5 -5
- package/dist/cli.js +1 -1
- package/dist/client/theme-default.js +218 -218
- package/dist/client.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{init-CqTfzJfC.js → init-DLnxbm8u.js} +1 -1
- package/dist/node/build/prerender.d.ts +2 -2
- package/dist/node/build/prerender.d.ts.map +1 -1
- package/dist/node/build/seo/feed.d.ts +1 -1
- package/dist/node/build/seo/feed.d.ts.map +1 -1
- package/dist/node/build/seo/index.d.ts +4 -4
- package/dist/node/build/seo/index.d.ts.map +1 -1
- package/dist/node/build/seo/jsonld.d.ts +15 -2
- package/dist/node/build/seo/jsonld.d.ts.map +1 -1
- package/dist/node/build/seo/page.d.ts +16 -5
- package/dist/node/build/seo/page.d.ts.map +1 -1
- package/dist/node/build/seo/sitemap.d.ts +2 -2
- package/dist/node/build/seo/sitemap.d.ts.map +1 -1
- package/dist/node/lib/html-template.d.ts +3 -0
- package/dist/node/lib/html-template.d.ts.map +1 -1
- package/dist/node/lib/render/vue.d.ts.map +1 -1
- package/dist/page-BktMady3.js +114 -0
- package/dist/prerenderWorker.js +31 -32
- package/dist/{renderMath-cPd-YSsZ.js → renderMath-CJKXI63h.js} +1 -1
- package/dist/shared/types/content.d.ts +3 -3
- package/dist/shared/types/content.d.ts.map +1 -1
- package/dist/shared/types/ssg.d.ts +3 -0
- package/dist/shared/types/ssg.d.ts.map +1 -1
- package/dist/shared/utils/format.d.ts +1 -0
- package/dist/shared/utils/format.d.ts.map +1 -1
- package/dist/shared/utils/url.d.ts +1 -0
- package/dist/shared/utils/url.d.ts.map +1 -1
- package/dist/{shared-tntT6SIH.js → shared-BK7uzYmy.js} +100 -94
- package/dist/shared.js +1 -1
- package/dist/typerighter.css +1 -1
- package/dist/{vite-C6g7N9dI.js → vite-B9tiBEhg.js} +489 -488
- package/dist/vite.js +1 -1
- package/package.json +3 -3
- package/dist/jsonld-Bb_dN3WE.js +0 -81
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as e, I as t, N as n, T as r, a as i } from "./shared-BK7uzYmy.js";
|
|
2
2
|
import { t as a } from "./es-B_QJMowB.js";
|
|
3
3
|
import { Fragment as o, computed as s, createApp as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, h, inject as g, markRaw as _, mergeProps as v, nextTick as y, normalizeStyle as b, openBlock as x, provide as S, reactive as ee, readonly as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as te, shallowRef as D, toDisplayString as O, unref as k, vModelText as ne, watch as re, withDirectives as ie, withKeys as ae, withModifiers as oe } from "vue";
|
|
4
4
|
// ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.44_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/build/defaultAttributes.mjs
|
|
@@ -3225,14 +3225,14 @@ var me = N({
|
|
|
3225
3225
|
}]]
|
|
3226
3226
|
}), br = ["href"], xr = ["href"], Sr = { class: "td-dir-name" }, Cr = { class: "td-dir-count" }, wr = ["href"], Tr = { class: "td-dir-name" }, Er = /*@__PURE__*/ m({
|
|
3227
3227
|
__name: "TdDirectoryIndex",
|
|
3228
|
-
setup(
|
|
3229
|
-
let
|
|
3230
|
-
let
|
|
3228
|
+
setup(t) {
|
|
3229
|
+
let n = K(), i = $(), { withBase: a } = Q(), c = s(() => {
|
|
3230
|
+
let t = e(n.path);
|
|
3231
3231
|
return {
|
|
3232
|
-
url:
|
|
3233
|
-
entries:
|
|
3232
|
+
url: t,
|
|
3233
|
+
entries: i.value.directoryListings[t]?.entries ?? []
|
|
3234
3234
|
};
|
|
3235
|
-
}), l = s(() => c.value.url === "/"), m = s(() => a(
|
|
3235
|
+
}), l = s(() => c.value.url === "/"), m = s(() => a(r(e(c.value.url))));
|
|
3236
3236
|
return (e, t) => (x(), d("div", null, [l.value ? u("", !0) : (x(), d("a", {
|
|
3237
3237
|
key: 0,
|
|
3238
3238
|
href: m.value,
|
|
@@ -3380,7 +3380,7 @@ var me = N({
|
|
|
3380
3380
|
class: "td-glossary-row"
|
|
3381
3381
|
}, [
|
|
3382
3382
|
f("span", Br, O(e.item.name), 1),
|
|
3383
|
-
e.item.
|
|
3383
|
+
e.item.mtimeSecs ? (x(), d("span", Vr, O(k(i)(e.item.mtimeSecs)), 1)) : u("", !0),
|
|
3384
3384
|
e.item.description ? (x(), d("span", Hr, O(e.item.description), 1)) : (x(), d("span", Ur, "No description yet")),
|
|
3385
3385
|
e.showTags && e.item.tags && e.item.tags.length > 0 ? (x(), d("span", Wr, [(x(!0), d(o, null, T(e.item.tags, (e) => (x(), d("span", {
|
|
3386
3386
|
key: e,
|
|
@@ -3388,7 +3388,7 @@ var me = N({
|
|
|
3388
3388
|
}, O(e), 1))), 128))])) : u("", !0)
|
|
3389
3389
|
], 8, zr));
|
|
3390
3390
|
}
|
|
3391
|
-
}), [["__scopeId", "data-v-
|
|
3391
|
+
}), [["__scopeId", "data-v-a556276f"]]), Kr = { class: "td-glossary-filter" }, qr = ["placeholder"], Jr = {
|
|
3392
3392
|
key: 0,
|
|
3393
3393
|
class: "td-glossary-empty"
|
|
3394
3394
|
}, Yr = {
|
|
@@ -3400,9 +3400,9 @@ var me = N({
|
|
|
3400
3400
|
}, $r = { class: "td-glossary-letter-row" }, ei = { class: "td-glossary-letter" }, ti = ["href"], ni = { key: 1 }, ri = { class: "td-glossary-letter-row" }, ii = { class: "td-glossary-letter" }, ai = { class: "td-glossary-letter-count" }, oi = /*#__PURE__*/ U(/* @__PURE__ */ m({
|
|
3401
3401
|
__name: "TdGlossaryIndex",
|
|
3402
3402
|
props: { mode: { default: "informative" } },
|
|
3403
|
-
setup(
|
|
3404
|
-
let
|
|
3405
|
-
let
|
|
3403
|
+
setup(t) {
|
|
3404
|
+
let n = K(), r = $(), { withBase: i } = Q(), c = w(""), u = s(() => {
|
|
3405
|
+
let t = e(n.path), i = r.value.directoryListings[t];
|
|
3406
3406
|
return i ? i.entries.filter((e) => e.kind === "file").map((e) => e.item) : [];
|
|
3407
3407
|
}), m = s(() => u.value.length), h = s(() => {
|
|
3408
3408
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -3416,7 +3416,7 @@ var me = N({
|
|
|
3416
3416
|
"url",
|
|
3417
3417
|
"description",
|
|
3418
3418
|
"tags",
|
|
3419
|
-
"
|
|
3419
|
+
"mtimeSecs",
|
|
3420
3420
|
"schema"
|
|
3421
3421
|
],
|
|
3422
3422
|
searchOptions: {
|
|
@@ -3448,7 +3448,7 @@ var me = N({
|
|
|
3448
3448
|
items: t
|
|
3449
3449
|
}));
|
|
3450
3450
|
}
|
|
3451
|
-
return (
|
|
3451
|
+
return (e, n) => (x(), d("div", null, [f("div", Kr, [p(k(H), {
|
|
3452
3452
|
size: 14,
|
|
3453
3453
|
class: "td-glossary-filter-icon"
|
|
3454
3454
|
}), ie(f("input", {
|
|
@@ -3456,7 +3456,7 @@ var me = N({
|
|
|
3456
3456
|
type: "text",
|
|
3457
3457
|
class: "td-glossary-filter-input",
|
|
3458
3458
|
placeholder: `Filter ${m.value} entries`
|
|
3459
|
-
}, null, 8, qr), [[ne, c.value]])]), _.value ? (x(), d(o, { key: 0 }, [v.value.length === 0 ? (x(), d("div", Jr, " No entries matching \"" + O(c.value.trim()) + "\" ", 1)) :
|
|
3459
|
+
}, null, 8, qr), [[ne, c.value]])]), _.value ? (x(), d(o, { key: 0 }, [v.value.length === 0 ? (x(), d("div", Jr, " No entries matching \"" + O(c.value.trim()) + "\" ", 1)) : t.mode === "dense" ? (x(), d("div", Yr, [(x(!0), d(o, null, T(v.value, (e) => (x(), d("a", {
|
|
3460
3460
|
key: e.url,
|
|
3461
3461
|
href: k(i)(e.url),
|
|
3462
3462
|
class: "td-glossary-dense-link"
|
|
@@ -3464,7 +3464,7 @@ var me = N({
|
|
|
3464
3464
|
key: e.url,
|
|
3465
3465
|
item: e,
|
|
3466
3466
|
href: k(i)(e.url)
|
|
3467
|
-
}, null, 8, ["item", "href"]))), 128))]))], 64)) : (x(), d(o, { key: 1 }, [
|
|
3467
|
+
}, null, 8, ["item", "href"]))), 128))]))], 64)) : (x(), d(o, { key: 1 }, [t.mode === "dense" ? (x(), d("div", Qr, [(x(!0), d(o, null, T(y.value, (e) => (x(), d("div", {
|
|
3468
3468
|
key: e.letter,
|
|
3469
3469
|
class: "td-glossary-dense-group"
|
|
3470
3470
|
}, [f("div", $r, [f("span", ei, O(e.letter), 1), n[1] ||= f("span", { class: "td-glossary-letter-line" }, null, -1)]), (x(!0), d(o, null, T(e.items, (e) => (x(), d("a", {
|
|
@@ -3482,7 +3482,7 @@ var me = N({
|
|
|
3482
3482
|
"show-tags": ""
|
|
3483
3483
|
}, null, 8, ["item", "href"]))), 128))]))), 128))]))], 64))]));
|
|
3484
3484
|
}
|
|
3485
|
-
}), [["__scopeId", "data-v-
|
|
3485
|
+
}), [["__scopeId", "data-v-78790e4a"]]), si = {
|
|
3486
3486
|
"file-text": st,
|
|
3487
3487
|
file: ct,
|
|
3488
3488
|
notebook: sn,
|
|
@@ -3681,8 +3681,8 @@ var li = /*#__PURE__*/ U(/* @__PURE__ */ m({
|
|
|
3681
3681
|
titleHtml: "Not Found",
|
|
3682
3682
|
filepath: ""
|
|
3683
3683
|
};
|
|
3684
|
-
function fi(
|
|
3685
|
-
let r =
|
|
3684
|
+
function fi(e, n = {}) {
|
|
3685
|
+
let r = t(n.basePath ?? "/"), i = ee({
|
|
3686
3686
|
path: "/",
|
|
3687
3687
|
hash: "",
|
|
3688
3688
|
query: "",
|
|
@@ -3701,17 +3701,17 @@ function fi(t, n = {}) {
|
|
|
3701
3701
|
}
|
|
3702
3702
|
}
|
|
3703
3703
|
}, o;
|
|
3704
|
-
async function s(
|
|
3705
|
-
let r = new URL(
|
|
3704
|
+
async function s(t) {
|
|
3705
|
+
let r = new URL(t, "http://a.com");
|
|
3706
3706
|
o = r.pathname;
|
|
3707
3707
|
let a = o;
|
|
3708
3708
|
try {
|
|
3709
|
-
let
|
|
3710
|
-
if (!
|
|
3709
|
+
let t = await e(a);
|
|
3710
|
+
if (!t) throw Error(`Page not found: ${a}`);
|
|
3711
3711
|
if (o === a) {
|
|
3712
3712
|
o = void 0;
|
|
3713
|
-
let { default:
|
|
3714
|
-
i.path = a, i.contentSfc = _(
|
|
3713
|
+
let { default: e, pageData: n } = t;
|
|
3714
|
+
i.path = a, i.contentSfc = _(e), i.data = _(n), c(r), W && y(() => {
|
|
3715
3715
|
r.hash ? G(r.hash) : window.scrollTo(0, 0);
|
|
3716
3716
|
});
|
|
3717
3717
|
}
|
|
@@ -3733,14 +3733,14 @@ function fi(t, n = {}) {
|
|
|
3733
3733
|
if (n === null) return;
|
|
3734
3734
|
let { href: r, origin: i, pathname: o } = new URL(n, t.baseURI);
|
|
3735
3735
|
i === location.origin && !o.match(/\.\w+$/) && (e.preventDefault(), a.go(r));
|
|
3736
|
-
}, { capture: !0 }), window.addEventListener("pointerenter", (
|
|
3737
|
-
if (!(
|
|
3738
|
-
let n =
|
|
3739
|
-
if (n === null ||
|
|
3740
|
-
let { origin: i, pathname: a } = new URL(n,
|
|
3736
|
+
}, { capture: !0 }), window.addEventListener("pointerenter", (t) => {
|
|
3737
|
+
if (!(t.target instanceof HTMLAnchorElement)) return;
|
|
3738
|
+
let n = t.target.getAttribute("href");
|
|
3739
|
+
if (n === null || t.target.hasAttribute("download") || t.target.hasAttribute("target")) return;
|
|
3740
|
+
let { origin: i, pathname: a } = new URL(n, t.target.baseURI);
|
|
3741
3741
|
if (i === location.origin && !a.match(/\.\w+$/)) {
|
|
3742
|
-
let
|
|
3743
|
-
t
|
|
3742
|
+
let t = new URL(J(n, r), "http://a.com").pathname;
|
|
3743
|
+
e(t).catch(() => {});
|
|
3744
3744
|
}
|
|
3745
3745
|
}, {
|
|
3746
3746
|
capture: !0,
|
|
@@ -3779,9 +3779,9 @@ function pi(e, t, { replace: n = !1 } = {}) {
|
|
|
3779
3779
|
let a = new URL(e, location.origin), o = new URL(r, location.origin);
|
|
3780
3780
|
return a.pathname !== o.pathname || (G(a.hash), !1);
|
|
3781
3781
|
}
|
|
3782
|
-
function J(e,
|
|
3782
|
+
function J(e, t) {
|
|
3783
3783
|
let r = new URL(e, "http://a.com"), i = r.pathname.replace(/\.html$/, "");
|
|
3784
|
-
return
|
|
3784
|
+
return t && t !== "/" && (i === t || i.startsWith(t + "/")) && (i = i.slice(t.length) || "/"), r.pathname = n(i), r.pathname + r.search + r.hash;
|
|
3785
3785
|
}
|
|
3786
3786
|
// src/client/app/components/Content.ts
|
|
3787
3787
|
var mi = m({
|
|
@@ -3892,13 +3892,13 @@ function Oi() {
|
|
|
3892
3892
|
return g(Ei, D(void 0));
|
|
3893
3893
|
}
|
|
3894
3894
|
function Q() {
|
|
3895
|
-
let
|
|
3895
|
+
let e = g(Ci, {
|
|
3896
3896
|
title: "",
|
|
3897
3897
|
description: "",
|
|
3898
3898
|
basePath: "/"
|
|
3899
|
-
}), n = e
|
|
3899
|
+
}), n = t(e.basePath);
|
|
3900
3900
|
return {
|
|
3901
|
-
...
|
|
3901
|
+
...e,
|
|
3902
3902
|
withBase(e) {
|
|
3903
3903
|
if (n === "/") return e;
|
|
3904
3904
|
let t = e.startsWith("/") ? e : "/" + e;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as e, t } from "./vite-
|
|
1
|
+
import { s as e, t } from "./vite-B9tiBEhg.js";
|
|
2
2
|
import { n } from "./context-CPrHBM3S.js";
|
|
3
3
|
import r from "node:path";
|
|
4
4
|
import i from "picocolors";
|
|
@@ -370,7 +370,7 @@ function A() {
|
|
|
370
370
|
}), process.on("unhandledRejection", (e) => {
|
|
371
371
|
j("runtime", e instanceof Error ? e : Error(String(e)));
|
|
372
372
|
}), i.command("[root]", "Start dev server").alias("dev").option("--port <port>", "Port to listen on").option("--host", "Expose to network").option("--fresh", "Start fresh, ignore cache from previous session").option("--verbose", "Print version and build info").action(async (e, n) => {
|
|
373
|
-
n.verbose && console.log(`${k} cli v0.55.
|
|
373
|
+
n.verbose && console.log(`${k} cli v0.55.1 (built 11/6/2026, 6:35:58 AM)\n`), n.fresh && (process.env.TYPEDOWN_NO_CACHE = "1");
|
|
374
374
|
let r = await a({
|
|
375
375
|
root: N(e),
|
|
376
376
|
configFile: !1,
|
|
@@ -395,7 +395,7 @@ function A() {
|
|
|
395
395
|
}
|
|
396
396
|
process.exit(0);
|
|
397
397
|
}), i.command("init [root]", "Scaffold a new project").option("--name <name>", "Project name").option("--title <title>", "Site title").option("--description <description>", "Site description").option("--yes", "Skip confirmation for existing projects").action(async (e, t) => {
|
|
398
|
-
let { initialize: n } = await import("./init-
|
|
398
|
+
let { initialize: n } = await import("./init-DLnxbm8u.js");
|
|
399
399
|
await n(N(e), t);
|
|
400
400
|
}), i.command("preview [root]", "Preview production build").option("--port <port>", "Port to listen on").action(async (e, t) => {
|
|
401
401
|
let r = N(e), i = n(r);
|
|
@@ -433,7 +433,7 @@ function A() {
|
|
|
433
433
|
} finally {
|
|
434
434
|
i.dispose();
|
|
435
435
|
}
|
|
436
|
-
}), i.help(), i.version("0.55.
|
|
436
|
+
}), i.help(), i.version("0.55.1"), i.parse();
|
|
437
437
|
}
|
|
438
438
|
function j(e, t) {
|
|
439
439
|
let n = t instanceof Error ? t.message : String(t);
|
|
@@ -441,7 +441,7 @@ function j(e, t) {
|
|
|
441
441
|
}
|
|
442
442
|
async function M(e) {
|
|
443
443
|
let t = await (await e.getTdContext()).rpc.getVersion();
|
|
444
|
-
console.log(`${k} cli v0.55.
|
|
444
|
+
console.log(`${k} cli v0.55.1 (built 11/6/2026, 6:35:58 AM)`), console.log(`${k} rpc v${t}`), console.log("");
|
|
445
445
|
}
|
|
446
446
|
function N(e) {
|
|
447
447
|
return r.resolve(e ?? process.cwd());
|
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as cli } from "./cli-
|
|
1
|
+
export { t as cli } from "./cli-Cfn9ef18.js";
|