typerighter 0.40.4 → 0.40.6

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.
@@ -1,4 +1,4 @@
1
- import { F as e, M as t, T as n, a as r, w as i } from "./shared-D_kuT4zK.js";
1
+ import { F as e, M as t, T as n, a as r, w as i } from "./shared-DMNZD2i1.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
@@ -1,5 +1,5 @@
1
- import { r as e, t } from "./vite-SLq36-Ev.js";
2
- import { n } from "./context-CNTdcpo4.js";
1
+ import { r as e, t } from "./vite-BlO1hmkO.js";
2
+ import { n } from "./context-CSvoDxVt.js";
3
3
  import r from "node:path";
4
4
  import i from "picocolors";
5
5
  import { createServer as a } from "vite";
@@ -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.4 (built 9/28/2026, 6:10:57 PM)\n`), n.fresh && (process.env.TYPEDOWN_NO_CACHE = "1");
366
+ n.verbose && console.log(`${O} cli v0.40.6 (built 10/4/2026, 11:45:36 AM)\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-CSR5_9ci.js");
391
+ let { initialize: n } = await import("./init-BdR4QzXX.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.4"), i.parse();
429
+ }), i.help(), i.version("0.40.6"), 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.4 (built 9/28/2026, 6:10:57 PM)`), console.log(`${O} rpc v${t}`), console.log("");
437
+ console.log(`${O} cli v0.40.6 (built 10/4/2026, 11:45:36 AM)`), 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-CWEPACEO.js";
1
+ import { t as e } from "./cli-FDtyIPNk.js";
2
2
  export { e as cli };
@@ -1,7 +1,7 @@
1
- import { A as e, C as t, E as n, F as r, I as i, L as a, N as o, O as s, W as c, X as l, Y as u, _ as d, a as f, b as p, c as m, f as h, k as g, l as _, n as v, p as y, r as b, s as x, v as S, w as C, y as w } from "../shared-D_kuT4zK.js";
1
+ import { A as e, C as t, E as n, F as r, I as i, L as a, N as o, O as s, W as c, X as l, Y as u, _ as d, a as f, b as p, c as m, f as h, k as g, l as _, n as v, p as y, r as b, s as x, v as S, w as C, y as w } from "../shared-DMNZD2i1.js";
2
2
  import { t as T } from "../temml-DZbhOfRE.js";
3
3
  import { t as ee } from "../es-ClqUVRJn.js";
4
- import { A as te, C as ne, D as E, E as re, F as ie, I as D, M as ae, N as oe, O as se, P as ce, S as le, T as ue, _ as de, a as fe, b as pe, c as O, d as k, f as me, g as he, h as ge, i as _e, j as ve, k as ye, m as A, n as be, o as xe, p as Se, r as j, s as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "../app-C8QUAQm4.js";
4
+ import { A as te, C as ne, D as E, E as re, F as ie, I as D, M as ae, N as oe, O as se, P as ce, S as le, T as ue, _ as de, a as fe, b as pe, c as O, d as k, f as me, g as he, h as ge, i as _e, j as ve, k as ye, m as A, n as be, o as xe, p as Se, r as j, s as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "../app-OdN7kiy-.js";
5
5
  import { a as ke, i as Ae, n as je, t as Me } from "../brand-CG1fQshq.js";
6
6
  import { Fragment as M, Teleport as Ne, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as L, createTextVNode as R, createVNode as z, defineComponent as B, getCurrentScope as Pe, markRaw as Fe, mergeModels as Ie, mergeProps as Le, nextTick as Re, normalizeClass as V, normalizeStyle as ze, onBeforeUnmount as Be, onMounted as Ve, onScopeDispose as He, onUnmounted as Ue, openBlock as H, readonly as We, ref as U, renderList as W, renderSlot as Ge, resolveComponent as Ke, resolveDynamicComponent as G, shallowReadonly as qe, shallowRef as Je, toDisplayString as K, toValue as Ye, unref as q, useModel as Xe, useTemplateRef as Ze, vModelText as Qe, watch as J, watchEffect as $e, withCtx as et, withDirectives as tt, withKeys as nt, withModifiers as rt } from "vue";
7
7
  var it = D({
@@ -1120,7 +1120,7 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1120
1120
  default: et(() => [L("span", { innerHTML: q(Ct)(q(w)(e.item.filepath, e.item.label)) }, null, 8, yr)]),
1121
1121
  _: 2
1122
1122
  }, 1032, ["text"]),
1123
- e.item.metadata ? (H(), I("span", br, K(q(f)(e.item.metadata.mtime)), 1)) : F("", !0)
1123
+ e.item.fileMetadata ? (H(), I("span", br, K(q(f)(e.item.fileMetadata.mtime)), 1)) : F("", !0)
1124
1124
  ], 10, vr))], 64))), 128)), T.value > 0 && !x.value ? (H(), I("button", {
1125
1125
  key: 0,
1126
1126
  class: "td-tree-more",
@@ -1129,7 +1129,7 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1129
1129
  }, K(T.value) + " more... ", 1)) : F("", !0)])], 2)])) : F("", !0);
1130
1130
  };
1131
1131
  }
1132
- }), [["__scopeId", "data-v-8638a605"]]), Cr = { class: "td-nav" }, wr = ["href"], Tr = {
1132
+ }), [["__scopeId", "data-v-cf42a4b9"]]), Cr = { class: "td-nav" }, wr = ["href"], Tr = {
1133
1133
  key: 0,
1134
1134
  class: "td-root-link-time"
1135
1135
  }, Er = ["href"], Dr = { class: "td-root-link-text" }, Or = {
@@ -1152,7 +1152,7 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1152
1152
  class: "td-root-link-icon"
1153
1153
  }),
1154
1154
  t[0] ||= L("span", { class: "td-root-link-text" }, "Overview", -1),
1155
- i.value ? (H(), I("span", Tr, K(i.value.metadata ? q(f)(i.value.metadata.mtime) : ""), 1)) : F("", !0)
1155
+ i.value ? (H(), I("span", Tr, K(i.value.fileMetadata ? q(f)(i.value.fileMetadata.mtime) : ""), 1)) : F("", !0)
1156
1156
  ], 10, wr), (H(!0), I(M, null, W(a.value, (e) => (H(), I(M, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), P(Sr, {
1157
1157
  key: 0,
1158
1158
  node: e.node
@@ -1171,10 +1171,10 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1171
1171
  class: "td-root-link-icon"
1172
1172
  })),
1173
1173
  L("span", Dr, K(q(w)(e.item.filepath, e.item.label)), 1),
1174
- e.item.metadata ? (H(), I("span", Or, K(q(f)(e.item.metadata.mtime)), 1)) : F("", !0)
1174
+ e.item.fileMetadata ? (H(), I("span", Or, K(q(f)(e.item.fileMetadata.mtime)), 1)) : F("", !0)
1175
1175
  ], 10, Er))], 64))), 128))]));
1176
1176
  }
1177
- }), [["__scopeId", "data-v-c78d7204"]]), Ar = { class: "td-footer" }, jr = { key: 0 }, Mr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1177
+ }), [["__scopeId", "data-v-02694810"]]), Ar = { class: "td-footer" }, jr = { key: 0 }, Mr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1178
1178
  __name: "TdFooter",
1179
1179
  setup(e) {
1180
1180
  let t = j(), n = (/* @__PURE__ */ new Date()).getFullYear();
@@ -2563,7 +2563,7 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
2563
2563
  class: "td-page-title",
2564
2564
  innerHTML: q(Ct)(q(t))
2565
2565
  }, null, 8, lo)) : F("", !0),
2566
- q(n).metadata ? (H(), I("div", uo, [L("span", null, K(q(b)(q(n).metadata.mtime, "Modified")), 1), q(n).metadata.ctime === q(n).metadata.mtime ? F("", !0) : (H(), I("span", fo, " · " + K(q(b)(q(n).metadata.ctime, "Created")), 1))])) : F("", !0),
2566
+ q(n).fileMetadata ? (H(), I("div", uo, [L("span", null, K(q(b)(q(n).fileMetadata.mtime, "Modified")), 1), q(n).fileMetadata.ctime === q(n).fileMetadata.mtime ? F("", !0) : (H(), I("span", fo, " · " + K(q(b)(q(n).fileMetadata.ctime, "Created")), 1))])) : F("", !0),
2567
2567
  z(q(Bi), {
2568
2568
  class: "td-frontmatter-inline",
2569
2569
  schema: q(n).schema,
@@ -2581,7 +2581,7 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
2581
2581
  z(Mr)
2582
2582
  ]));
2583
2583
  }
2584
- }), [["__scopeId", "data-v-5b2a8a69"]]), yo = { class: "pt-16 pb-24" }, bo = ["href"], xo = /* @__PURE__ */ B({
2584
+ }), [["__scopeId", "data-v-0acfae50"]]), yo = { class: "pt-16 pb-24" }, bo = ["href"], xo = /* @__PURE__ */ B({
2585
2585
  __name: "TdNotFound",
2586
2586
  setup(e) {
2587
2587
  let { withBase: t } = j();
package/dist/client.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, l as r, r as i, s as a, t as o } from "./app-C8QUAQm4.js";
1
+ import { a as e, c as t, i as n, l as r, r as i, s as a, t as o } from "./app-OdN7kiy-.js";
2
2
  export { a as Content, o as createTypedownApp, t as useRoute, r as useRouter, i as useSiteConfig, n as useSiteData, e as useTdContent };
@@ -54,10 +54,12 @@ var s = /\u001B\[[0-9;]*m/g, c = class {
54
54
  for (let e of t) this.cachedFileMap.delete(e);
55
55
  }), e.onContentDeleted(({ filepath: e }) => {
56
56
  this.cachedFiles = void 0, this.cachedFileMap.delete(e);
57
- }), e.onSchemaUpdated(({ schema: e }) => {
57
+ }), e.onSchemaUpdated(({ schema: e, affectedFiles: t = [] }) => {
58
58
  this.cachedSchemas = void 0, this.cachedSchemaMap.delete(e);
59
- }), e.onSchemaDeleted(({ schema: e }) => {
59
+ for (let e of t) this.cachedFileMap.delete(e);
60
+ }), e.onSchemaDeleted(({ schema: e, affectedFiles: t = [] }) => {
60
61
  this.cachedSchemas = void 0, this.cachedSchemaMap.delete(e);
62
+ for (let e of t) this.cachedFileMap.delete(e);
61
63
  });
62
64
  }
63
65
  get rpc() {
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as e, r as t, t as n } from "./vite-SLq36-Ev.js";
2
- import { t as r } from "./cli-CWEPACEO.js";
1
+ import { n as e, r as t, t as n } from "./vite-BlO1hmkO.js";
2
+ import { t as r } from "./cli-FDtyIPNk.js";
3
3
  export { t as buildSite, r as cli, e as generateClientAppEntry, n as typedown };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./rolldown-runtime-B0aSnxlc.js";
2
- import { t } from "./context-CNTdcpo4.js";
2
+ import { t } from "./context-CSvoDxVt.js";
3
3
  import { a as n, i as r, n as i, r as a, t as o } from "./brand-CG1fQshq.js";
4
4
  import s from "node:path";
5
5
  import c from "node:fs/promises";
@@ -750,7 +750,7 @@ function He(e) {
750
750
  build: "typerighter build",
751
751
  preview: "typerighter preview"
752
752
  },
753
- devDependencies: { typerighter: "^0.40.4" }
753
+ devDependencies: { typerighter: "^0.40.6" }
754
754
  }, void 0, 2) + "\n";
755
755
  }
756
756
  function Ue() {
@@ -1,4 +1,4 @@
1
- import { W as e, c as t, i as n } from "./shared-D_kuT4zK.js";
1
+ import { W as e, c as t, i as n } from "./shared-DMNZD2i1.js";
2
2
  //#region src/node/lib/htmlTemplate.ts
3
3
  function r(e) {
4
4
  let n = t(e.title), r = t(e.description), i = e.siteTitle !== void 0 && e.title !== e.siteTitle ? `${n} - ${t(e.siteTitle)}` : n, a = e.origin ?? "", o = e.canonicalUrl === void 0 ? void 0 : a + e.canonicalUrl, s = o === void 0 ? "" : `\n <link rel="canonical" href="${t(o)}">`, c = o === void 0 ? "" : `\n <meta property="og:url" content="${t(o)}">`, l = e.ogImagePath === void 0 ? `${a}${e.base}og-image.png` : `${a}${e.ogImagePath}`, u = e.author === void 0 ? "" : `\n <meta name="author" content="${t(e.author)}">`, d = e.siteTitle === void 0 ? "" : `\n <meta property="og:site_name" content="${t(e.siteTitle)}">`, f = a === "" ? "" : `\n <link rel="alternate" type="application/rss+xml" title="${e.siteTitle === void 0 ? "RSS Feed" : t(e.siteTitle)}" href="${a}${e.base}feed.xml">`, p = (e.jsonLdBlocks ?? []).map((e) => `\n <script type="application/ld+json">${e}<\/script>`).join(""), m = e.headExtra === void 0 ? "" : e.headExtra + "\n";
@@ -37,19 +37,19 @@ ${m} </head>
37
37
  //#endregion
38
38
  //#region src/node/build/seo/page.ts
39
39
  function i(e) {
40
- return e.meta?.title ?? e.title;
40
+ return e.seoMetadata?.title ?? e.title;
41
41
  }
42
42
  function a(e) {
43
- if (e.meta?.description !== void 0) return e.meta.description;
43
+ if (e.seoMetadata?.description !== void 0) return e.seoMetadata.description;
44
44
  let t = e.frontmatter.description;
45
45
  return t === void 0 ? "" : String(t);
46
46
  }
47
47
  function o(e) {
48
- let t = e.metadata?.mtime;
48
+ let t = e.fileMetadata?.mtime;
49
49
  return t === void 0 ? void 0 : n(t);
50
50
  }
51
51
  function s(e) {
52
- return e.meta?.image;
52
+ return e.seoMetadata?.image;
53
53
  }
54
54
  //#endregion
55
55
  //#region src/node/build/seo/jsonld.ts
@@ -1 +1 @@
1
- {"version":3,"file":"typedown-context.d.ts","sourceRoot":"","sources":["../../../src/node/lib/typedown-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EACzG,KAAK,YAAY,EAClB,MAAM,yBAAyB,CAAC;AAIjC,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAY;gBAEb,MAAM,EAAE,SAAS;IAK9B,OAAO,CAAC,YAAY,CAA2B;IAC/C,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,aAAa,CAAuB;IAC5C,OAAO,CAAC,eAAe,CAAmC;IAC1D,OAAO,CAAC,aAAa,CAAsC;IAE3D,OAAO,CAAC,4BAA4B;IA2CpC,IAAI,GAAG,IAAK,SAAS,CAEpB;IAIK,OAAO,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAYpD,QAAQ,CAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAiBtD,SAAS,IAAK,OAAO,CAAC,MAAM,EAAE,CAAC;IAQ/B,WAAW,IAAK,OAAO,CAAC,aAAa,EAAE,CAAC;IAMxC,SAAS,IAAK,OAAO,C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AC;IAYjD,WAAW,IAAK,OAAO,CAAC,MAAM,EAAE,CAAC;IAQjC,UAAU,IAAK,OAAO,CAAC,kBAAkB,CAAC;IAI1C,UAAU,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;CAG7D;AAED,wBAAgB,cAAc,CAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAMvD"}
@@ -1,5 +1,5 @@
1
- import { P as e } from "./shared-D_kuT4zK.js";
2
- import { a as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./jsonld-CjCAKIGY.js";
1
+ import { P as e } from "./shared-DMNZD2i1.js";
2
+ import { a as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./jsonld-BoEW-5KW.js";
3
3
  import { pathToFileURL as c } from "node:url";
4
4
  import { parentPort as l, workerData as u } from "node:worker_threads";
5
5
  //#region src/node/build/prerenderWorker.ts
@@ -18,7 +18,7 @@ export interface ContentSummary {
18
18
  /** First paragraph of the body content */
19
19
  excerpt?: string;
20
20
  /** File metadata (absent during initial disk scan, populated after RPC) */
21
- metadata?: FileMetadata;
21
+ fileMetadata?: FileMetadata;
22
22
  }
23
23
  export interface ContentTree {
24
24
  /** Interleaved files and directories at the root, sorted by numeric prefix */
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/shared/types/content.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,wDAAwD;IACxD,QAAQ,EAAE,MAAM,CAAC;IACjB,uBAAuB;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB;IAChB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,yBAAyB;IACzB,MAAM,EAAE,M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C,EAAE,OAAO,CAAC;IACnB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC5B;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,aAAa,GAAG,UAAU,GAAG,MAAM,CAAC;AAEtH,MAAM,WAAW,gBAAgB;IAC/B,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,CAAC;CACxC;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -21,10 +21,10 @@ export interface PageData {
21
21
  frontmatter: Record<string, unknown>;
22
22
  headings: MarkdownHeading[];
23
23
  title: string;
24
- metadata?: FileMetadata;
25
- meta?: PageMeta;
24
+ fileMetadata?: FileMetadata;
25
+ seoMetadata?: SeoMeta;
26
26
  }
27
- export interface PageMeta {
27
+ export interface SeoMeta {
28
28
  title?: string;
29
29
  description?: string;
30
30
  image?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ssg.d.ts","sourceRoot":"","sources":["../../../src/shared/types/ssg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EAAE,GAAG,EACf,MAAM,KAAK,CAAC;AACb,OAAO,KAAK,EACV,WAAW,EAAE,YAAY,EAC1B,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,eAAe;IAC9B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,IAAI,E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") ?? e.excerpt,
231
231
  tags: 0 < n.length ? n : void 0,
232
- mtime: e.metadata?.mtime,
232
+ mtime: e.fileMetadata?.mtime,
233
233
  schema: e.schema
234
234
  };
235
235
  }
package/dist/shared.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, J as s, K as c, M as l, N as u, O as d, P as f, S as p, T as m, U as h, W as g, X as _, Y as v, _ as y, a as b, b as x, c as S, d as C, f as w, g as T, h as E, i as D, j as O, k, l as A, m as j, n as M, o as N, p as P, q as F, r as I, s as L, t as R, u as z, v as B, w as V, x as H, y as U } from "./shared-D_kuT4zK.js";
1
+ import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, J as s, K as c, M as l, N as u, O as d, P as f, S as p, T as m, U as h, W as g, X as _, Y as v, _ as y, a as b, b as x, c as S, d as C, f as w, g as T, h as E, i as D, j as O, k, l as A, m as j, n as M, o as N, p as P, q as F, r as I, s as L, t as R, u as z, v as B, w as V, x as H, y as U } from "./shared-DMNZD2i1.js";
2
2
  export { c as CONTENT_EXTENSIONS, F as CONTENT_GLOB, o as EXTERNAL_URL_RE, s as INDEX_FILENAME, v as SEARCH_FIELDS, _ as SEARCH_STORE_FIELDS, E as buildContentTree, T as buildDirectoryListingMap, P as debounce, S as escapeHtml, L as escapeRegex, R as formatAbsoluteTime, M as formatDateString, I as formatEditTime, D as formatIsoDate, b as formatRelativeTime, N as formatTime, H as getAnchor, p as getDirectoryFromPageUrl, n as getDirectoryUrl, V as getIndexUrl, y as getNodeIndexItem, m as getParentUrl, i as getTdContentUrl, B as getTdIndexTitle, U as getTdResourceTitle, r as getUrlPath, w as isBuiltinField, x as isIndexFile, d as isIndexUrl, k as isUrlAncestorOf, e as isUrlExternal, O as isUrlToPage, h as parseNumericPrefix, t as path, l as resolveRootUrl, A as sanitizeInlineHtml, u as stripAnchor, z as stripHtml, f as stripLeadingSlash, a as stripTrailingSlash, j as throttle, C as unescapeHtml, g as unslugify };