typerighter 0.54.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.
Files changed (43) hide show
  1. package/dist/{app-DxLZjnyG.js → app-C1ognrj1.js} +40 -40
  2. package/dist/builtin-components.json +22 -1
  3. package/dist/{cli-Bwui1Hg7.js → cli-Cfn9ef18.js} +5 -5
  4. package/dist/cli.js +1 -1
  5. package/dist/client/theme-default.js +2029 -1049
  6. package/dist/client.js +1 -1
  7. package/dist/index.js +2 -2
  8. package/dist/{init-CDdP9swK.js → init-DLnxbm8u.js} +1 -1
  9. package/dist/node/build/prerender.d.ts +2 -2
  10. package/dist/node/build/prerender.d.ts.map +1 -1
  11. package/dist/node/build/seo/feed.d.ts +1 -1
  12. package/dist/node/build/seo/feed.d.ts.map +1 -1
  13. package/dist/node/build/seo/index.d.ts +4 -4
  14. package/dist/node/build/seo/index.d.ts.map +1 -1
  15. package/dist/node/build/seo/jsonld.d.ts +15 -2
  16. package/dist/node/build/seo/jsonld.d.ts.map +1 -1
  17. package/dist/node/build/seo/page.d.ts +16 -5
  18. package/dist/node/build/seo/page.d.ts.map +1 -1
  19. package/dist/node/build/seo/sitemap.d.ts +2 -2
  20. package/dist/node/build/seo/sitemap.d.ts.map +1 -1
  21. package/dist/node/lib/html-template.d.ts +3 -0
  22. package/dist/node/lib/html-template.d.ts.map +1 -1
  23. package/dist/node/lib/render/postprocess.d.ts.map +1 -1
  24. package/dist/node/lib/render/vue.d.ts.map +1 -1
  25. package/dist/page-BktMady3.js +114 -0
  26. package/dist/prerenderWorker.js +31 -32
  27. package/dist/{renderMath-CxusSg92.js → renderMath-CJKXI63h.js} +1 -1
  28. package/dist/shared/types/content.d.ts +3 -3
  29. package/dist/shared/types/content.d.ts.map +1 -1
  30. package/dist/shared/types/json-schema.d.ts.map +1 -1
  31. package/dist/shared/types/ssg.d.ts +3 -0
  32. package/dist/shared/types/ssg.d.ts.map +1 -1
  33. package/dist/shared/utils/format.d.ts +1 -0
  34. package/dist/shared/utils/format.d.ts.map +1 -1
  35. package/dist/shared/utils/url.d.ts +1 -0
  36. package/dist/shared/utils/url.d.ts.map +1 -1
  37. package/dist/{shared-v0btHVwj.js → shared-BK7uzYmy.js} +102 -96
  38. package/dist/shared.js +1 -1
  39. package/dist/typerighter.css +1 -1
  40. package/dist/{vite-0T8QXeWH.js → vite-B9tiBEhg.js} +522 -508
  41. package/dist/vite.js +1 -1
  42. package/package.json +3 -3
  43. package/dist/jsonld-CByNA46l.js +0 -81
@@ -1,4 +1,4 @@
1
- import { F as e, M as t, T as n, a as r, w as i } from "./shared-v0btHVwj.js";
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(e) {
3229
- let t = K(), r = $(), { withBase: a } = Q(), c = s(() => {
3230
- let e = n(t.path);
3228
+ setup(t) {
3229
+ let n = K(), i = $(), { withBase: a } = Q(), c = s(() => {
3230
+ let t = e(n.path);
3231
3231
  return {
3232
- url: e,
3233
- entries: r.value.directoryListings[e]?.entries ?? []
3232
+ url: t,
3233
+ entries: i.value.directoryListings[t]?.entries ?? []
3234
3234
  };
3235
- }), l = s(() => c.value.url === "/"), m = s(() => a(i(n(c.value.url))));
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,
@@ -3261,7 +3261,7 @@ var me = N({
3261
3261
  let n = e.__vccOpts || e;
3262
3262
  for (let [e, r] of t) n[e] = r;
3263
3263
  return n;
3264
- }, Dr = /*#__PURE__*/ U(Er, [["__scopeId", "data-v-2e4028bc"]]), Or = [
3264
+ }, Dr = /*#__PURE__*/ U(Er, [["__scopeId", "data-v-620bb844"]]), Or = [
3265
3265
  "id",
3266
3266
  "tabindex",
3267
3267
  "aria-pressed",
@@ -3320,7 +3320,7 @@ var me = N({
3320
3320
  onKeydown: [ae(oe(r, ["prevent"]), ["enter"]), ae(oe(r, ["prevent"]), ["space"])]
3321
3321
  }), [f("div", kr, [f("p", Ar, O(e.questionLabel), 1), f("div", jr, [E(t.$slots, "default")])]), f("div", Mr, [f("p", Nr, O(e.keyLabel), 1), f("div", Pr, [E(t.$slots, "key")])])], 16, Or));
3322
3322
  }
3323
- }), [["__scopeId", "data-v-f2a71f0c"]]), Ir = Symbol("td-grid-context"), Lr = /*#__PURE__*/ U(/* @__PURE__ */ m({
3323
+ }), [["__scopeId", "data-v-c003aae4"]]), Ir = Symbol("td-grid-context"), Lr = /*#__PURE__*/ U(/* @__PURE__ */ m({
3324
3324
  __name: "TdGrid",
3325
3325
  props: {
3326
3326
  columns: {},
@@ -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.mtime ? (x(), d("span", Vr, O(k(r)(e.item.mtime)), 1)) : u("", !0),
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-9ad74790"]]), Kr = { class: "td-glossary-filter" }, qr = ["placeholder"], Jr = {
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(e) {
3404
- let t = K(), r = $(), { withBase: i } = Q(), c = w(""), u = s(() => {
3405
- let e = n(t.path), i = r.value.directoryListings[e];
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
- "mtime",
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 (t, n) => (x(), d("div", null, [f("div", Kr, [p(k(H), {
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)) : e.mode === "dense" ? (x(), d("div", Yr, [(x(!0), d(o, null, T(v.value, (e) => (x(), d("a", {
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 }, [e.mode === "dense" ? (x(), d("div", Qr, [(x(!0), d(o, null, T(y.value, (e) => (x(), d("div", {
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-e6d21e87"]]), si = {
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(t, n = {}) {
3685
- let r = e(n.basePath ?? "/"), i = ee({
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(e) {
3705
- let r = new URL(e, "http://a.com");
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 e = await t(a);
3710
- if (!e) throw Error(`Page not found: ${a}`);
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: t, pageData: n } = e;
3714
- i.path = a, i.contentSfc = _(t), i.data = _(n), c(r), W && y(() => {
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", (e) => {
3737
- if (!(e.target instanceof HTMLAnchorElement)) return;
3738
- let n = e.target.getAttribute("href");
3739
- if (n === null || e.target.hasAttribute("download") || e.target.hasAttribute("target")) return;
3740
- let { origin: i, pathname: a } = new URL(n, e.target.baseURI);
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 e = new URL(J(n, r), "http://a.com").pathname;
3743
- t(e).catch(() => {});
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, n) {
3782
+ function J(e, t) {
3783
3783
  let r = new URL(e, "http://a.com"), i = r.pathname.replace(/\.html$/, "");
3784
- return n && n !== "/" && (i === n || i.startsWith(n + "/")) && (i = i.slice(n.length) || "/"), r.pathname = t(i), r.pathname + r.search + r.hash;
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 t = g(Ci, {
3895
+ let e = g(Ci, {
3896
3896
  title: "",
3897
3897
  description: "",
3898
3898
  basePath: "/"
3899
- }), n = e(t.basePath);
3899
+ }), n = t(e.basePath);
3900
3900
  return {
3901
- ...t,
3901
+ ...e,
3902
3902
  withBase(e) {
3903
3903
  if (n === "/") return e;
3904
3904
  let t = e.startsWith("/") ? e : "/" + e;
@@ -3915,4 +3915,4 @@ var ki = w({
3915
3915
  function $() {
3916
3916
  return g(wi, ki);
3917
3917
  }
3918
- export { B as A, Dt as C, rt as D, st as E, F, P as I, N as L, R as M, L as N, Pe as O, I as P, Bt as S, ct as T, qn as _, Si as a, tn as b, K as c, ci as d, oi as f, Zn as g, vr as h, $ as i, z as j, Ne as k, q as l, U as m, Oi as n, vi as o, Dr as p, Q as r, mi as s, Di as t, li as u, Wn as v, V as w, Xt as x, H as y };
3918
+ export { st as A, I as B, en as C, Dt as D, Bt as E, Ne as F, P as H, B as I, z as L, tt as M, We as N, V as O, Pe as P, R, tn as S, Xt as T, N as U, F as V, Zn as _, Si as a, H as b, K as c, ci as d, oi as f, $n as g, vr as h, $ as i, rt as j, ct as k, q as l, U as m, Oi as n, vi as o, Dr as p, Q as r, mi as s, Di as t, li as u, qn as v, $t as w, xn as x, Wn as y, L as z };
@@ -108,7 +108,25 @@
108
108
  "null"
109
109
  ]
110
110
  },
111
- "description": "Disable active heading tracking on scroll"
111
+ "description": "Disable active heading tracking"
112
+ },
113
+ "inline": {
114
+ "schema": {
115
+ "type": [
116
+ "boolean",
117
+ "null"
118
+ ]
119
+ },
120
+ "description": "Render as inline hierarchical list instead of sidebar list"
121
+ },
122
+ "scrollable": {
123
+ "schema": {
124
+ "type": [
125
+ "boolean",
126
+ "null"
127
+ ]
128
+ },
129
+ "description": "Enable scroll-to-active behavior within a constrained container"
112
130
  }
113
131
  }
114
132
  },
@@ -123,6 +141,9 @@
123
141
  },
124
142
  {
125
143
  "const": "dense"
144
+ },
145
+ {
146
+ "const": null
126
147
  }
127
148
  ]
128
149
  },
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "./vite-0T8QXeWH.js";
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.54.0 (built 11/5/2026, 2:36:31 AM)\n`), n.fresh && (process.env.TYPEDOWN_NO_CACHE = "1");
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-CDdP9swK.js");
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.54.0"), i.parse();
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.54.0 (built 11/5/2026, 2:36:31 AM)`), console.log(`${k} rpc v${t}`), console.log("");
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-Bwui1Hg7.js";
1
+ export { t as cli } from "./cli-Cfn9ef18.js";