typerighter 0.30.3 → 0.30.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/client.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, l as r, o as i, t as a, u as o } from "./app-gH0dpuch.js";
1
+ import { a as e, c as t, i as n, l as r, o as i, t as a, u as o } from "./app-wLTpP3BP.js";
2
2
  export { t as Content, a as createTypedownApp, r as useRoute, o as useRouter, n as useSiteConfig, e as useSiteData, i as useTdContent };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as e, n as t, t as n } from "./vite-CYozrIIG.js";
2
- import { t as r } from "./cli-BFgBPypP.js";
1
+ import { a as e, n as t, t as n } from "./vite-vMuZ0f3f.js";
2
+ import { t as r } from "./cli-DFeDkMZb.js";
3
3
  export { e as buildSite, r as cli, t as generateClientAppEntry, n as typedown };
@@ -1,5 +1,5 @@
1
- import { K as e } from "./shared-BuA2cqMO.js";
2
- import { r as t } from "./vite-CYozrIIG.js";
1
+ import { q as e } from "./shared-B-n46X4N.js";
2
+ import { r as t } from "./vite-vMuZ0f3f.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";
@@ -749,7 +749,7 @@ function He(e) {
749
749
  build: "typerighter build",
750
750
  preview: "typerighter preview"
751
751
  },
752
- devDependencies: { typerighter: "^0.30.3" }
752
+ devDependencies: { typerighter: "^0.30.4" }
753
753
  }, void 0, 2) + "\n";
754
754
  }
755
755
  function Ue() {
@@ -3,7 +3,10 @@ import type { ContentIcon, FileMetadata } from './content';
3
3
  export interface MarkdownHeading {
4
4
  /** 1 to 6 for h1 to h6 */
5
5
  level: number;
6
+ /** Plain text title, used for slugs and search */
6
7
  title: string;
8
+ /** HTML title with inline code/math, sanitize before v-html */
9
+ titleHtml: string;
7
10
  /** The id attr of the header anchor */
8
11
  slug: string;
9
12
  /** Anchor link, typically #slug */
@@ -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,KAAK,EAAE,MAAM,CAAC;IACd,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;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,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;CACpB;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"}
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;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,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;CACpB;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"}
@@ -1,4 +1,5 @@
1
1
  export declare function escapeHtml(value: string): string;
2
2
  export declare function stripHtml(html: string): string;
3
+ export declare function sanitizeInlineHtml(html: string | undefined): string;
3
4
  export declare function unescapeHtml(html: string): string;
4
5
  //# sourceMappingURL=html.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/html.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,CAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAMjD;AAED,wBAAgB,SAAS,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAI/C;AAED,wBAAgB,YAAY,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAQlD"}
1
+ {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/html.ts"],"names":[],"mappings":"AAKA,wBAAgB,UAAU,CAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAMjD;AAED,wBAAgB,SAAS,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAI/C;AAmCD,wBAAgB,kBAAkB,CAAE,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAIpE;AAED,wBAAgB,YAAY,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAQlD"}
@@ -15,10 +15,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
15
15
  }, l = (n, r, o) => (o = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
16
16
  value: n,
17
17
  enumerable: !0
18
- }) : o, n)), u = "index", d = [".td", ".md"], f = "**/*.{td,md}", p = ["title", "text"], ee = ["title"], m = /^[a-z]+:/i;
18
+ }) : o, n)), u = "index", d = [".td", ".md"], f = "**/*.{td,md}", p = ["title", "text"], m = ["title"], h = /^[a-z]+:/i;
19
19
  //#endregion
20
20
  //#region src/shared/utils/format.ts
21
- function h(e) {
21
+ function g(e) {
22
22
  let t = e.match(/^(\d+)[-_](.+)$/);
23
23
  return t ? {
24
24
  order: Number(t[1]),
@@ -28,92 +28,92 @@ function h(e) {
28
28
  rest: e
29
29
  };
30
30
  }
31
- function g(e) {
32
- let { rest: t } = h(e), n = t.replace(/[-_]/g, " ").split(" ");
31
+ function _(e) {
32
+ let { rest: t } = g(e), n = t.replace(/[-_]/g, " ").split(" ");
33
33
  return 0 < n.length && (n[0] = n[0].charAt(0).toUpperCase() + n[0].slice(1)), n.join(" ");
34
34
  }
35
35
  //#endregion
36
36
  //#region src/shared/utils/path.ts
37
- var te = /* @__PURE__ */ s({
38
- basename: () => _,
39
- dirname: () => v,
40
- extname: () => y,
41
- filestem: () => b,
42
- isContentFile: () => x,
43
- isTypeFile: () => S,
44
- join: () => C,
45
- stripExtension: () => w
37
+ var ee = /* @__PURE__ */ s({
38
+ basename: () => v,
39
+ dirname: () => y,
40
+ extname: () => b,
41
+ filestem: () => x,
42
+ isContentFile: () => S,
43
+ isTypeFile: () => C,
44
+ join: () => w,
45
+ stripExtension: () => T
46
46
  });
47
- function _(e, t) {
48
- let n = T(e).split("/").pop() ?? "";
47
+ function v(e, t) {
48
+ let n = E(e).split("/").pop() ?? "";
49
49
  return t !== void 0 && n.endsWith(t) ? n.slice(0, -t.length) : n;
50
50
  }
51
- function v(e) {
52
- let t = T(e).split("/");
53
- return t.pop(), t.join("/");
54
- }
55
51
  function y(e) {
56
- let t = _(e), n = t.lastIndexOf(".");
57
- return n <= 0 ? "" : t.slice(n);
52
+ let t = E(e).split("/");
53
+ return t.pop(), t.join("/");
58
54
  }
59
55
  function b(e) {
60
- let t = _(e), n = t.lastIndexOf(".");
61
- return n <= 0 ? t : t.slice(0, n);
56
+ let t = v(e), n = t.lastIndexOf(".");
57
+ return n <= 0 ? "" : t.slice(n);
62
58
  }
63
59
  function x(e) {
64
- return d.includes(y(e));
60
+ let t = v(e), n = t.lastIndexOf(".");
61
+ return n <= 0 ? t : t.slice(0, n);
65
62
  }
66
63
  function S(e) {
67
- return x(e) && e.split("/").includes("_types");
64
+ return d.includes(b(e));
68
65
  }
69
- function C(...e) {
66
+ function C(e) {
67
+ return S(e) && e.split("/").includes("_types");
68
+ }
69
+ function w(...e) {
70
70
  return e.filter(Boolean).join("/").replace(/\\+/g, "/").replace(/\/+/g, "/").replace(/\/$/, "") || "/";
71
71
  }
72
- function w(e) {
73
- let t = y(e);
72
+ function T(e) {
73
+ let t = b(e);
74
74
  return t ? e.slice(0, -t.length) : e;
75
75
  }
76
- function T(e) {
76
+ function E(e) {
77
77
  return e.replace(/\\/g, "/");
78
78
  }
79
79
  //#endregion
80
80
  //#region src/shared/utils/url.ts
81
- var ne = new Set("3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip".split(","));
82
- function re(e) {
81
+ var te = new Set("3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip".split(","));
82
+ function D(e) {
83
83
  let t = e.indexOf("#");
84
84
  return 0 <= t ? e.slice(t + 1) : "";
85
85
  }
86
- function E(e) {
87
- return M(e) ? k(e) : e;
86
+ function ne(e) {
87
+ return j(e) ? k(e) : e;
88
88
  }
89
- function D(e, t) {
89
+ function re(e, t) {
90
90
  return `${e}/${t}`;
91
91
  }
92
92
  function O(e) {
93
93
  return e === "/" ? "/index" : e + "/index";
94
94
  }
95
95
  function k(e) {
96
- return v(P(e)) || "/";
96
+ return y(P(e)) || "/";
97
97
  }
98
98
  function A(e) {
99
- let t = b(e);
100
- return "/" + C(v(e), t);
99
+ let t = x(e);
100
+ return "/" + w(y(e), t);
101
101
  }
102
- function j(e) {
102
+ function ie(e) {
103
103
  return e.split("?")[0].split("#")[0];
104
104
  }
105
- function M(e) {
105
+ function j(e) {
106
106
  return e === "/index" || e.endsWith("/index");
107
107
  }
108
- function N(e, t) {
108
+ function M(e, t) {
109
109
  return t.startsWith(e + "/") || t === e;
110
110
  }
111
- function ie(e) {
112
- return m.test(e);
111
+ function N(e) {
112
+ return h.test(e);
113
113
  }
114
114
  function ae(e) {
115
- let t = y(e).slice(1);
116
- return t === "" || !ne.has(t.toLowerCase());
115
+ let t = b(e).slice(1);
116
+ return t === "" || !te.has(t.toLowerCase());
117
117
  }
118
118
  function oe(e) {
119
119
  return e === "/" ? "/index" : e;
@@ -149,13 +149,13 @@ function ce(e) {
149
149
  item: n
150
150
  });
151
151
  }
152
- return V(t), { entries: t.entries };
152
+ return B(t), { entries: t.entries };
153
153
  }
154
154
  function le(e, t) {
155
155
  let n = {};
156
156
  function r(e) {
157
157
  let t = 0;
158
- for (let n of e.entries) n.kind === "file" ? R(n.item.filepath) || t++ : t += r(n.node);
158
+ for (let n of e.entries) n.kind === "file" ? L(n.item.filepath) || t++ : t += r(n.node);
159
159
  return t;
160
160
  }
161
161
  function i(e, t) {
@@ -167,13 +167,13 @@ function le(e, t) {
167
167
  for (let a of e) a.kind === "dir" ? n.push({
168
168
  kind: "dir",
169
169
  sub: {
170
- name: g(a.node.name),
170
+ name: _(a.node.name),
171
171
  url: i(a.node, t),
172
172
  count: r(a.node)
173
173
  }
174
- }) : R(a.item.filepath) || n.push({
174
+ }) : L(a.item.filepath) || n.push({
175
175
  kind: "file",
176
- item: H(a.item)
176
+ item: V(a.item)
177
177
  });
178
178
  return n;
179
179
  }
@@ -182,7 +182,7 @@ function le(e, t) {
182
182
  if (r.kind !== "dir") continue;
183
183
  let e = r.node, i = t ? `${t}/${e.name}` : `/${e.name}`;
184
184
  n[i] = {
185
- title: g(e.name),
185
+ title: _(e.name),
186
186
  url: i,
187
187
  entries: a(e.entries, i)
188
188
  }, o(e.entries, i);
@@ -195,46 +195,46 @@ function le(e, t) {
195
195
  }, o(e, ""), n;
196
196
  }
197
197
  function F(e) {
198
- for (let t of e.entries) if (t.kind === "file" && R(t.item.filepath)) return t.item;
198
+ for (let t of e.entries) if (t.kind === "file" && L(t.item.filepath)) return t.item;
199
199
  }
200
- function I(e, t) {
201
- let n = _(v(e));
202
- return n ? g(n) : t;
200
+ function ue(e, t) {
201
+ let n = v(y(e));
202
+ return n ? _(n) : t;
203
203
  }
204
- function L(e, t) {
204
+ function I(e, t) {
205
205
  if (t !== void 0) return t;
206
- let n = b(e);
207
- if (R(e)) {
208
- let t = _(v(e));
209
- return t ? g(t) : n;
206
+ let n = x(e);
207
+ if (L(e)) {
208
+ let t = v(y(e));
209
+ return t ? _(t) : n;
210
210
  }
211
- return g(n);
211
+ return _(n);
212
212
  }
213
- function R(e) {
214
- return b(e) === u;
213
+ function L(e) {
214
+ return x(e) === u;
215
215
  }
216
- function z(e) {
217
- return e.kind === "dir" ? e.node.name : b(e.item.filepath);
216
+ function R(e) {
217
+ return e.kind === "dir" ? e.node.name : x(e.item.filepath);
218
218
  }
219
- function B(e, ...t) {
219
+ function z(e, ...t) {
220
220
  for (let n of t) {
221
221
  let t = e[n];
222
222
  if (typeof t == "string" && 0 < t.length) return t;
223
223
  }
224
224
  }
225
- function V(e) {
225
+ function B(e) {
226
226
  e.entries.sort((e, t) => {
227
- let n = z(e), r = z(t), i = h(n), a = h(r);
227
+ let n = R(e), r = R(t), i = g(n), a = g(r);
228
228
  return i.order === a.order ? i.order === Infinity && e.kind !== t.kind ? e.kind === "dir" ? -1 : 1 : i.rest.localeCompare(a.rest) : i.order - a.order;
229
229
  });
230
- for (let t of e.entries) t.kind === "dir" && V(t.node);
230
+ for (let t of e.entries) t.kind === "dir" && B(t.node);
231
231
  }
232
- function H(e) {
232
+ function V(e) {
233
233
  let t = e.header.tags, n = Array.isArray(t) ? t.filter((e) => typeof e == "string") : [];
234
234
  return {
235
- name: L(e.filepath, e.label),
235
+ name: I(e.filepath, e.label),
236
236
  url: A(e.filepath),
237
- description: B(e.header, "description", "summary") ?? e.excerpt,
237
+ description: z(e.header, "description", "summary") ?? e.excerpt,
238
238
  tags: 0 < n.length ? n : void 0,
239
239
  mtime: e.metadata?.mtime,
240
240
  schema: e.schema
@@ -242,7 +242,7 @@ function H(e) {
242
242
  }
243
243
  //#endregion
244
244
  //#region src/shared/utils/debounce.ts
245
- function U(e, t) {
245
+ function H(e, t) {
246
246
  let n;
247
247
  return (...r) => {
248
248
  clearTimeout(n), n = setTimeout(() => e(...r), t);
@@ -250,12 +250,12 @@ function U(e, t) {
250
250
  }
251
251
  //#endregion
252
252
  //#region src/shared/utils/field.ts
253
- function ue(e) {
253
+ function de(e) {
254
254
  return e.startsWith("_");
255
255
  }
256
256
  //#endregion
257
257
  //#region src/shared/utils/html.ts
258
- var de = /* @__PURE__ */ l((/* @__PURE__ */ o(((e, t) => {
258
+ var U = /* @__PURE__ */ l((/* @__PURE__ */ o(((e, t) => {
259
259
  (function(e) {
260
260
  if (typeof n != "function") {
261
261
  var n = function(e) {
@@ -358,14 +358,18 @@ function fe(e) {
358
358
  return e.replaceAll("&", "&amp;").replaceAll("\"", "&quot;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
359
359
  }
360
360
  function pe(e) {
361
- return W((0, de.default)(e)).replace(/\s+/g, " ").trim();
361
+ return W((0, U.default)(e)).replace(/\s+/g, " ").trim();
362
+ }
363
+ var me = /* @__PURE__ */ "code.em.strong.s.span.sub.sup.math.mrow.mi.mn.mo.mfrac.msup.msub.msubsup.msqrt.mroot.mtext.mspace.merror.semantics.annotation.mover.munder.munderover.mtable.mtr.mtd".split(".");
364
+ function he(e) {
365
+ return e === void 0 ? "" : (0, U.default)(e, me);
362
366
  }
363
367
  function W(e) {
364
368
  return e.replaceAll("&lt;", "<").replaceAll("&gt;", ">").replaceAll("&quot;", "\"").replaceAll("&#39;", "'").replaceAll("&amp;", "&");
365
369
  }
366
370
  //#endregion
367
371
  //#region src/shared/utils/regex.ts
368
- function me(e) {
372
+ function ge(e) {
369
373
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
370
374
  }
371
375
  //#endregion
@@ -378,24 +382,24 @@ function Q(e) {
378
382
  day: "numeric"
379
383
  });
380
384
  }
381
- function he(e, t) {
385
+ function _e(e, t) {
382
386
  return Math.floor(Date.now() / 1e3) - e < Z ? `${t} ${$(e)}` : `${t} at ${Q(e)}`;
383
387
  }
384
388
  function $(e) {
385
389
  let t = Math.floor(Date.now() / 1e3) - e;
386
390
  return t < G ? "just now" : t < K ? `${Math.floor(t / G)}m ago` : t < q ? `${Math.floor(t / K)}h ago` : t < J ? `${Math.floor(t / q)}d ago` : t < Y ? `${Math.floor(t / J)}w ago` : t < X ? `${Math.floor(t / Y)}mo ago` : `${Math.floor(t / X)}y ago`;
387
391
  }
388
- var ge = new Intl.DateTimeFormat("en-US", {
392
+ var ve = new Intl.DateTimeFormat("en-US", {
389
393
  year: "numeric",
390
394
  month: "short",
391
395
  day: "numeric"
392
396
  });
393
- function _e(e) {
397
+ function ye(e) {
394
398
  let t = new Date(e);
395
- return Number.isNaN(t.getTime()) ? e : ge.format(t);
399
+ return Number.isNaN(t.getTime()) ? e : ve.format(t);
396
400
  }
397
- function ve(e) {
401
+ function be(e) {
398
402
  return Math.floor(Date.now() / 1e3) - e < Z ? $(e) : Q(e);
399
403
  }
400
404
  //#endregion
401
- export { se as A, m as B, A as C, ie as D, N as E, S as F, ee as G, f as H, te as I, o as K, w as L, _ as M, y as N, ae as O, x as P, h as R, k as S, M as T, u as U, d as V, p as W, R as _, ve as a, D as b, pe as c, U as d, ce as f, L as g, I as h, $ as i, P as j, oe as k, W as l, F as m, _e as n, me as o, le as p, he as r, fe as s, Q as t, ue as u, re as v, j as w, O as x, E as y, g as z };
405
+ export { oe as A, _ as B, k as C, M as D, j as E, S as F, p as G, d as H, C as I, m as K, ee as L, P as M, v as N, N as O, b as P, T as R, O as S, ie as T, f as U, h as V, u as W, I as _, be as a, ne as b, he as c, de as d, H as f, ue as g, F as h, $ as i, se as j, ae as k, pe as l, le as m, ye as n, ge as o, ce as p, o as q, _e as r, fe as s, Q as t, W as u, L as v, A as w, re as x, D as y, g as z };
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, G as a, H as o, I as s, O as c, R as l, S as u, T as d, U as f, V as p, W as m, _ as h, a as g, b as _, c as v, d as y, f as b, g as x, h as S, i as C, j as w, k as T, l as E, m as D, n as O, o as k, p as A, r as j, s as M, t as N, u as P, v as F, w as I, x as L, y as R, z } from "./shared-BuA2cqMO.js";
2
- export { p as CONTENT_EXTENSIONS, o as CONTENT_GLOB, t as EXTERNAL_URL_RE, f as INDEX_FILENAME, m as SEARCH_FIELDS, a as SEARCH_STORE_FIELDS, b as buildContentTree, A as buildDirectoryListingMap, y as debounce, M as escapeHtml, k as escapeRegex, N as formatAbsoluteTime, O as formatDateString, j as formatEditTime, C as formatRelativeTime, g as formatTime, F as getAnchor, R as getDirectoryFromPageUrl, _ as getDirectoryUrl, L as getIndexUrl, D as getNodeIndexItem, u as getParentUrl, n as getTdContentUrl, S as getTdIndexTitle, x as getTdResourceTitle, I as getUrlPath, P as isBuiltinField, h as isIndexFile, d as isIndexUrl, i as isUrlAncestorOf, r as isUrlExternal, c as isUrlToPage, l as parseNumericPrefix, s as path, T as resolveRootUrl, e as stripAnchor, v as stripHtml, w as stripTrailingSlash, E as unescapeHtml, z as unslugify };
1
+ import { A as e, B as t, C as n, D as r, E as i, G as a, H as o, K as s, L as c, M as l, O as u, S as d, T as f, U as p, V as m, W as h, _ as g, a as _, b as v, c as y, d as b, f as x, g as S, h as C, i as w, j as T, k as E, l as D, m as O, n as k, o as A, p as j, r as M, s as N, t as P, u as F, v as I, w as L, x as R, y as z, z as B } from "./shared-B-n46X4N.js";
2
+ export { o as CONTENT_EXTENSIONS, p as CONTENT_GLOB, m as EXTERNAL_URL_RE, h as INDEX_FILENAME, a as SEARCH_FIELDS, s as SEARCH_STORE_FIELDS, j as buildContentTree, O as buildDirectoryListingMap, x as debounce, N as escapeHtml, A as escapeRegex, P as formatAbsoluteTime, k as formatDateString, M as formatEditTime, w as formatRelativeTime, _ as formatTime, z as getAnchor, v as getDirectoryFromPageUrl, R as getDirectoryUrl, d as getIndexUrl, C as getNodeIndexItem, n as getParentUrl, L as getTdContentUrl, S as getTdIndexTitle, g as getTdResourceTitle, f as getUrlPath, b as isBuiltinField, I as isIndexFile, i as isIndexUrl, r as isUrlAncestorOf, u as isUrlExternal, E as isUrlToPage, B as parseNumericPrefix, c as path, e as resolveRootUrl, y as sanitizeInlineHtml, T as stripAnchor, D as stripHtml, l as stripTrailingSlash, F as unescapeHtml, t as unslugify };