typerighter 0.40.6 → 0.41.0

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-DMNZD2i1.js";
1
+ import { F as e, M as t, T as n, a as r, w as i } from "./shared-BMujDY3P.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,4 +1,4 @@
1
- import { r as e, t } from "./vite-BlO1hmkO.js";
1
+ import { r as e, t } from "./vite-Bsf15M7-.js";
2
2
  import { n } from "./context-CSvoDxVt.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.6 (built 10/4/2026, 11:45:36 AM)\n`), n.fresh && (process.env.TYPEDOWN_NO_CACHE = "1");
366
+ n.verbose && console.log(`${O} cli v0.41.0 (built 10/10/2026, 10:07:46 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-BdR4QzXX.js");
391
+ let { initialize: n } = await import("./init-CjABoI2t.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.6"), i.parse();
429
+ }), i.help(), i.version("0.41.0"), 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.6 (built 10/4/2026, 11:45:36 AM)`), console.log(`${O} rpc v${t}`), console.log("");
437
+ console.log(`${O} cli v0.41.0 (built 10/10/2026, 10:07:46 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-FDtyIPNk.js";
1
+ import { t as e } from "./cli-Chux95ZY.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-DMNZD2i1.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-BMujDY3P.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-OdN7kiy-.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-CrcoXWCG.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({
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-OdN7kiy-.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-CrcoXWCG.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 };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as e, r as t, t as n } from "./vite-BlO1hmkO.js";
2
- import { t as r } from "./cli-FDtyIPNk.js";
1
+ import { n as e, r as t, t as n } from "./vite-Bsf15M7-.js";
2
+ import { t as r } from "./cli-Chux95ZY.js";
3
3
  export { t as buildSite, r as cli, e as generateClientAppEntry, n as typedown };
@@ -750,7 +750,7 @@ function He(e) {
750
750
  build: "typerighter build",
751
751
  preview: "typerighter preview"
752
752
  },
753
- devDependencies: { typerighter: "^0.40.6" }
753
+ devDependencies: { typerighter: "^0.41.0" }
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-DMNZD2i1.js";
1
+ import { W as e, c as t, i as n } from "./shared-BMujDY3P.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";
@@ -8,4 +8,5 @@ export declare const SITE_DATA_ID = "@typedown/site-data";
8
8
  export declare const RESOLVED_SITE_DATA_ID: string;
9
9
  export declare const SEARCH_INDEX_ID = "@typedown/search-index";
10
10
  export declare const RESOLVED_SEARCH_INDEX_ID: string;
11
+ export declare const PAGE_DATA_EVENT = "typedown:page-data";
11
12
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,uBAAuB,QAAwB,CAAC;AAE7D,eAAO,MAAM,QAAQ,oBAAoB,CAAC;AAC1C,eAAO,MAAM,iBAAiB,QAAkB,CAAC;AACjD,eAAO,MAAM,gBAAgB,QAA0B,CAAC;AACxD,eAAO,MAAM,yBAAyB,QAA0B,CAAC;AAEjE,eAAO,MAAM,YAAY,wBAAwB,CAAC;AAClD,eAAO,MAAM,qBAAqB,QAAsB,CAAC;AAEzD,eAAO,MAAM,eAAe,2BAA2B,CAAC;AACxD,eAAO,MAAM,wBAAwB,QAAyB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,uBAAuB,QAAwB,CAAC;AAE7D,eAAO,MAAM,QAAQ,oBAAoB,CAAC;AAC1C,eAAO,MAAM,iBAAiB,QAAkB,CAAC;AACjD,eAAO,MAAM,gBAAgB,QAA0B,CAAC;AACxD,eAAO,MAAM,yBAAyB,QAA0B,CAAC;AAEjE,eAAO,MAAM,YAAY,wBAAwB,CAAC;AAClD,eAAO,MAAM,qBAAqB,QAAsB,CAAC;AAEzD,eAAO,MAAM,eAAe,2BAA2B,CAAC;AACxD,eAAO,MAAM,wBAAwB,QAAyB,CAAC;AAE/D,eAAO,MAAM,eAAe,uBAAuB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,MAAM,EACZ,MAAM,MAAM,CAAC;AAOd,OAAO,EACiC,KAAK,UAAU,EACtD,MAAM,eAAe,CAAC;AAiCvB,OAAO,EACL,QAAQ,IAAI,sBAAsB,EAClC,KAAK,eAAe,IAAI,qBAAqB,GAC9C,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IAEpC,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,QAAQ,CAAE,OAAO,GAAE,qBAA0B,GAAG,MAAM,EAAE,CA8TvE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,MAAM,EACZ,MAAM,MAAM,CAAC;AAOd,OAAO,EACiC,KAAK,UAAU,EACtD,MAAM,eAAe,CAAC;AAiCvB,OAAO,EACL,QAAQ,IAAI,sBAAsB,EAClC,KAAK,eAAe,IAAI,qBAAqB,GAC9C,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IAEpC,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,QAAQ,CAAE,OAAO,GAAE,qBAA0B,GAAG,MAAM,EAAE,CA+TvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/virtual/app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AAOd,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAKrC,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL;AAED,qBAAa,UAAW,YAAW,aAAa;IACxC,IAAI,CAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAStD,UAAU,CAAE,MAAM,EAAE,aAAa,GAAG,IAAI;CAGzC;AAGD,wBAAgB,QAAQ,CAAE,OAAO,EAAE,eAAe,GAAG,MAAM,CAkF1D"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/virtual/app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AAQd,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAKrC,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL;AAED,qBAAa,UAAW,YAAW,aAAa;IACxC,IAAI,CAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAStD,UAAU,CAAE,MAAM,EAAE,aAAa,GAAG,IAAI;CAGzC;AAGD,wBAAgB,QAAQ,CAAE,OAAO,EAAE,eAAe,GAAG,MAAM,CA2F1D"}
@@ -7,6 +7,7 @@ export declare class VirtualPages implements VirtualModule {
7
7
  isPageDataModule(resolvedId: string): boolean;
8
8
  loadPageData(resolvedId: string, context: TypedownContext): Promise<string>;
9
9
  invalidatePageData(server: ViteDevServer, filepath: string): void;
10
+ sendPageData(server: ViteDevServer, context: TypedownContext, filepath: string): void;
10
11
  invalidate(server: ViteDevServer): void;
11
12
  }
12
13
  //# sourceMappingURL=pages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/virtual/pages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AAKd,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK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M,EAAE,aAAa,GAAG,IAAI;CAGzC"}
@@ -1,5 +1,5 @@
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";
1
+ import { P as e } from "./shared-BMujDY3P.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-Du1iJ_fG.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
@@ -24,15 +24,15 @@ export interface PageData {
24
24
  fileMetadata?: FileMetadata;
25
25
  seoMetadata?: SeoMeta;
26
26
  }
27
+ export interface PageModule {
28
+ pageData: PageData;
29
+ default: Component;
30
+ }
27
31
  export interface SeoMeta {
28
32
  title?: string;
29
33
  description?: string;
30
34
  image?: string;
31
35
  }
32
- export interface PageModule {
33
- pageData: PageData;
34
- default: Component;
35
- }
36
36
  export interface TypedownData {
37
37
  /** Page-level data from the .td file */
38
38
  page: Ref<PageData>;
@@ -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,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;I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AuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,wCAAwC;IACxC,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;IACpB,yBAAyB;IACzB,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1C,iBAAiB;IACjB,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnB,sBAAsB;IACtB,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;CACtB"}
@@ -245,7 +245,7 @@ function z(e, t) {
245
245
  let n = 0, r;
246
246
  return (...i) => {
247
247
  let a = Date.now();
248
- a - n >= t ? (n = a, e(...i)) : (clearTimeout(r), r = setTimeout(() => {
248
+ t <= a - n ? (n = a, e(...i)) : (clearTimeout(r), r = setTimeout(() => {
249
249
  n = Date.now(), e(...i);
250
250
  }, t - (a - n)));
251
251
  };
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-DMNZD2i1.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-BMujDY3P.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 };