typerighter 0.40.3 → 0.40.4
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-GI_8rzn8.js → app-C8QUAQm4.js} +28 -28
- package/dist/{cli-DQKf3is3.js → cli-CWEPACEO.js} +5 -5
- package/dist/cli.js +1 -1
- package/dist/client/theme-default.js +233 -233
- package/dist/client.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{init-Dq6msKwz.js → init-CSR5_9ci.js} +1 -1
- package/dist/{jsonld-Dxk0xvAr.js → jsonld-CjCAKIGY.js} +1 -1
- package/dist/node/plugin/vite/index.d.ts.map +1 -1
- package/dist/node/plugin/vite/virtual/site-data.d.ts +1 -1
- package/dist/node/plugin/vite/virtual/site-data.d.ts.map +1 -1
- package/dist/prerenderWorker.js +2 -2
- package/dist/shared/utils/debounce.d.ts +1 -0
- package/dist/shared/utils/debounce.d.ts.map +1 -1
- package/dist/{shared-LPNgvigl.js → shared-D_kuT4zK.js} +25 -16
- package/dist/shared.js +2 -2
- package/dist/typerighter.css +1 -1
- package/dist/{vite-D6x3T--t.js → vite-SLq36-Ev.js} +324 -324
- package/dist/vite.js +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as e, M as t, T as n, a as r, w as i } from "./shared-D_kuT4zK.js";
|
|
2
2
|
import { t as a } from "./es-ClqUVRJn.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, openBlock as b, provide as x, reactive as ee, readonly as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as E, shallowRef as D, toDisplayString as O, unref as k, vModelText as te, watch as ne, withDirectives as re, withKeys as ie, withModifiers as ae } from "vue";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.42_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/build/defaultAttributes.mjs
|
|
@@ -3229,14 +3229,14 @@ var fe = P({
|
|
|
3229
3229
|
}]]
|
|
3230
3230
|
}), yr = ["href"], br = ["href"], xr = { class: "td-dir-name" }, Sr = { class: "td-dir-count" }, Cr = ["href"], wr = { class: "td-dir-name" }, Tr = /*@__PURE__*/ m({
|
|
3231
3231
|
__name: "TdDirectoryIndex",
|
|
3232
|
-
setup(
|
|
3233
|
-
let
|
|
3234
|
-
let e =
|
|
3232
|
+
setup(e) {
|
|
3233
|
+
let t = K(), r = $(), { withBase: a } = Q(), c = s(() => {
|
|
3234
|
+
let e = n(t.path);
|
|
3235
3235
|
return {
|
|
3236
3236
|
url: e,
|
|
3237
3237
|
entries: r.value.directoryListings[e]?.entries ?? []
|
|
3238
3238
|
};
|
|
3239
|
-
}), l = s(() => c.value.url === "/"), m = s(() => a(
|
|
3239
|
+
}), l = s(() => c.value.url === "/"), m = s(() => a(i(n(c.value.url))));
|
|
3240
3240
|
return (e, t) => (b(), d("div", null, [l.value ? u("", !0) : (b(), d("a", {
|
|
3241
3241
|
key: 0,
|
|
3242
3242
|
href: m.value,
|
|
@@ -3347,12 +3347,12 @@ var fe = P({
|
|
|
3347
3347
|
}
|
|
3348
3348
|
},
|
|
3349
3349
|
setup(e) {
|
|
3350
|
-
return (t,
|
|
3350
|
+
return (t, n) => (b(), d("a", {
|
|
3351
3351
|
href: e.href,
|
|
3352
3352
|
class: "td-glossary-row"
|
|
3353
3353
|
}, [
|
|
3354
3354
|
f("span", Ir, O(e.item.name), 1),
|
|
3355
|
-
e.item.mtime ? (b(), d("span", Lr, O(k(
|
|
3355
|
+
e.item.mtime ? (b(), d("span", Lr, O(k(r)(e.item.mtime)), 1)) : u("", !0),
|
|
3356
3356
|
e.item.description ? (b(), d("span", Rr, O(e.item.description), 1)) : (b(), d("span", zr, "No description yet")),
|
|
3357
3357
|
e.showTags && e.item.tags && e.item.tags.length > 0 ? (b(), d("span", Br, [(b(!0), d(o, null, w(e.item.tags, (e) => (b(), d("span", {
|
|
3358
3358
|
key: e,
|
|
@@ -3373,9 +3373,9 @@ var fe = P({
|
|
|
3373
3373
|
__name: "TdGlossaryIndex",
|
|
3374
3374
|
props: { mode: { default: "informative" } },
|
|
3375
3375
|
setup(e) {
|
|
3376
|
-
let t = K(),
|
|
3377
|
-
let e =
|
|
3378
|
-
return
|
|
3376
|
+
let t = K(), r = $(), { withBase: i } = Q(), c = C(""), u = s(() => {
|
|
3377
|
+
let e = n(t.path), i = r.value.directoryListings[e];
|
|
3378
|
+
return i ? i.entries.filter((e) => e.kind === "file").map((e) => e.item) : [];
|
|
3379
3379
|
}), m = s(() => u.value.length), h = s(() => {
|
|
3380
3380
|
let e = /* @__PURE__ */ new Map();
|
|
3381
3381
|
for (let t of u.value) e.set(t.url, t);
|
|
@@ -3430,18 +3430,18 @@ var fe = P({
|
|
|
3430
3430
|
placeholder: `Filter ${m.value} entries`
|
|
3431
3431
|
}, null, 8, Ur), [[te, c.value]])]), _.value ? (b(), d(o, { key: 0 }, [v.value.length === 0 ? (b(), d("div", Wr, " No entries matching \"" + O(c.value.trim()) + "\" ", 1)) : e.mode === "dense" ? (b(), d("div", Gr, [(b(!0), d(o, null, w(v.value, (e) => (b(), d("a", {
|
|
3432
3432
|
key: e.url,
|
|
3433
|
-
href: k(
|
|
3433
|
+
href: k(i)(e.url),
|
|
3434
3434
|
class: "td-glossary-dense-link"
|
|
3435
3435
|
}, O(e.name), 9, Kr))), 128))])) : (b(), d("div", qr, [(b(!0), d(o, null, w(v.value, (e) => (b(), l(Vr, {
|
|
3436
3436
|
key: e.url,
|
|
3437
3437
|
item: e,
|
|
3438
|
-
href: k(
|
|
3438
|
+
href: k(i)(e.url)
|
|
3439
3439
|
}, null, 8, ["item", "href"]))), 128))]))], 64)) : (b(), d(o, { key: 1 }, [e.mode === "dense" ? (b(), d("div", Jr, [(b(!0), d(o, null, w(y.value, (e) => (b(), d("div", {
|
|
3440
3440
|
key: e.letter,
|
|
3441
3441
|
class: "td-glossary-dense-group"
|
|
3442
3442
|
}, [f("div", Yr, [f("span", Xr, O(e.letter), 1), n[1] ||= f("span", { class: "td-glossary-letter-line" }, null, -1)]), (b(!0), d(o, null, w(e.items, (e) => (b(), d("a", {
|
|
3443
3443
|
key: e.url,
|
|
3444
|
-
href: k(
|
|
3444
|
+
href: k(i)(e.url),
|
|
3445
3445
|
class: "td-glossary-dense-link"
|
|
3446
3446
|
}, O(e.name), 9, Zr))), 128))]))), 128))])) : (b(), d("div", Qr, [(b(!0), d(o, null, w(y.value, (e) => (b(), d("div", { key: e.letter }, [f("div", $r, [
|
|
3447
3447
|
f("span", ei, O(e.letter), 1),
|
|
@@ -3450,7 +3450,7 @@ var fe = P({
|
|
|
3450
3450
|
]), (b(!0), d(o, null, w(e.items, (e) => (b(), l(Vr, {
|
|
3451
3451
|
key: e.url,
|
|
3452
3452
|
item: e,
|
|
3453
|
-
href: k(
|
|
3453
|
+
href: k(i)(e.url),
|
|
3454
3454
|
"show-tags": ""
|
|
3455
3455
|
}, null, 8, ["item", "href"]))), 128))]))), 128))]))], 64))]));
|
|
3456
3456
|
}
|
|
@@ -3652,8 +3652,8 @@ var ai = /*#__PURE__*/ U(/* @__PURE__ */ m({
|
|
|
3652
3652
|
headings: [],
|
|
3653
3653
|
title: "Not Found"
|
|
3654
3654
|
};
|
|
3655
|
-
function ci(
|
|
3656
|
-
let r =
|
|
3655
|
+
function ci(t, n = {}) {
|
|
3656
|
+
let r = e(n.basePath ?? "/"), i = ee({
|
|
3657
3657
|
path: "/",
|
|
3658
3658
|
hash: "",
|
|
3659
3659
|
query: "",
|
|
@@ -3665,17 +3665,17 @@ function ci(e, n = {}) {
|
|
|
3665
3665
|
e = q(e, r), await a.onBeforeRouteChange?.(e) !== !1 && ((!W || t?.initialLoad || ui(e, r, t)) && await s(e), c(), await a.onAfterRouteChange?.(e));
|
|
3666
3666
|
}
|
|
3667
3667
|
}, o;
|
|
3668
|
-
async function s(
|
|
3669
|
-
let r = new URL(
|
|
3668
|
+
async function s(e) {
|
|
3669
|
+
let r = new URL(e, "http://a.com");
|
|
3670
3670
|
o = r.pathname;
|
|
3671
3671
|
let a = o;
|
|
3672
3672
|
try {
|
|
3673
|
-
let
|
|
3674
|
-
if (!
|
|
3673
|
+
let e = await t(a);
|
|
3674
|
+
if (!e) throw Error(`Page not found: ${a}`);
|
|
3675
3675
|
if (o === a) {
|
|
3676
3676
|
o = void 0;
|
|
3677
|
-
let { default:
|
|
3678
|
-
i.path = a, i.contentSfc = _(
|
|
3677
|
+
let { default: t, pageData: n } = e;
|
|
3678
|
+
i.path = a, i.contentSfc = _(t), i.data = _(n), c(r), W && y(() => {
|
|
3679
3679
|
r.hash ? G(r.hash) : window.scrollTo(0, 0);
|
|
3680
3680
|
});
|
|
3681
3681
|
}
|
|
@@ -3731,9 +3731,9 @@ function ui(e, t, { replace: n = !1 } = {}) {
|
|
|
3731
3731
|
let a = new URL(e, location.origin), o = new URL(r, location.origin);
|
|
3732
3732
|
return a.pathname !== o.pathname || (G(a.hash), !1);
|
|
3733
3733
|
}
|
|
3734
|
-
function q(e,
|
|
3735
|
-
let
|
|
3736
|
-
return
|
|
3734
|
+
function q(e, n) {
|
|
3735
|
+
let r = new URL(e, "http://a.com"), i = r.pathname.replace(/\.html$/, "");
|
|
3736
|
+
return n && n !== "/" && (i === n || i.startsWith(n + "/")) && (i = i.slice(n.length) || "/"), r.pathname = t(i), r.pathname + r.search + r.hash;
|
|
3737
3737
|
}
|
|
3738
3738
|
//#endregion
|
|
3739
3739
|
//#region src/client/app/components/Content.ts
|
|
@@ -3837,13 +3837,13 @@ function wi() {
|
|
|
3837
3837
|
return g(Si, D(void 0));
|
|
3838
3838
|
}
|
|
3839
3839
|
function Q() {
|
|
3840
|
-
let
|
|
3840
|
+
let t = g(yi, {
|
|
3841
3841
|
title: "",
|
|
3842
3842
|
description: "",
|
|
3843
3843
|
basePath: "/"
|
|
3844
|
-
}), n = t
|
|
3844
|
+
}), n = e(t.basePath);
|
|
3845
3845
|
return {
|
|
3846
|
-
...
|
|
3846
|
+
...t,
|
|
3847
3847
|
withBase(e) {
|
|
3848
3848
|
if (n === "/") return e;
|
|
3849
3849
|
let t = e.startsWith("/") ? e : "/" + e;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, t } from "./vite-
|
|
1
|
+
import { r as e, t } from "./vite-SLq36-Ev.js";
|
|
2
2
|
import { n } from "./context-CNTdcpo4.js";
|
|
3
3
|
import r from "node:path";
|
|
4
4
|
import i from "picocolors";
|
|
@@ -363,7 +363,7 @@ function k() {
|
|
|
363
363
|
}), process.on("unhandledRejection", (e) => {
|
|
364
364
|
A("runtime", e instanceof Error ? e : Error(String(e)));
|
|
365
365
|
}), 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) => {
|
|
366
|
-
n.verbose && console.log(`${O} cli v0.40.
|
|
366
|
+
n.verbose && console.log(`${O} cli v0.40.4 (built 9/28/2026, 6:10:57 PM)\n`), n.fresh && (process.env.TYPEDOWN_NO_CACHE = "1");
|
|
367
367
|
let r = await a({
|
|
368
368
|
root: M(e),
|
|
369
369
|
configFile: !1,
|
|
@@ -388,7 +388,7 @@ function k() {
|
|
|
388
388
|
}
|
|
389
389
|
process.exit(0);
|
|
390
390
|
}), 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) => {
|
|
391
|
-
let { initialize: n } = await import("./init-
|
|
391
|
+
let { initialize: n } = await import("./init-CSR5_9ci.js");
|
|
392
392
|
await n(M(e), t);
|
|
393
393
|
}), i.command("preview [root]", "Preview production build").option("--port <port>", "Port to listen on").action(async (e, t) => {
|
|
394
394
|
let r = M(e), i = n(r);
|
|
@@ -426,7 +426,7 @@ function k() {
|
|
|
426
426
|
} finally {
|
|
427
427
|
i.dispose();
|
|
428
428
|
}
|
|
429
|
-
}), i.help(), i.version("0.40.
|
|
429
|
+
}), i.help(), i.version("0.40.4"), i.parse();
|
|
430
430
|
}
|
|
431
431
|
function A(e, t) {
|
|
432
432
|
let n = t instanceof Error ? t.message : String(t);
|
|
@@ -434,7 +434,7 @@ function A(e, t) {
|
|
|
434
434
|
}
|
|
435
435
|
async function j(e) {
|
|
436
436
|
let t = await (await e.getTdContext()).rpc.getVersion();
|
|
437
|
-
console.log(`${O} cli v0.40.
|
|
437
|
+
console.log(`${O} cli v0.40.4 (built 9/28/2026, 6:10:57 PM)`), console.log(`${O} rpc v${t}`), console.log("");
|
|
438
438
|
}
|
|
439
439
|
function M(e) {
|
|
440
440
|
return r.resolve(e ?? process.cwd());
|
package/dist/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./cli-
|
|
1
|
+
import { t as e } from "./cli-CWEPACEO.js";
|
|
2
2
|
export { e as cli };
|