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
package/dist/vite.js CHANGED
@@ -1 +1 @@
1
- export { n as PAGES_ID, r as PAGE_DATA_EVENT, i as SEARCH_INDEX_ID, a as SITE_DATA_ID, o as THEME_ID, t as typedown } from "./vite-0T8QXeWH.js";
1
+ export { n as PAGES_ID, r as PAGE_DATA_EVENT, i as SEARCH_INDEX_ID, a as SITE_DATA_ID, o as THEME_ID, t as typedown } from "./vite-B9tiBEhg.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "typerighter",
4
- "version": "0.54.0",
4
+ "version": "0.55.1",
5
5
  "description": "Typedown: A typed content framework.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -61,8 +61,8 @@
61
61
  "@lucide/vue": "^1.47.0",
62
62
  "@shikijs/transformers": "^4.4.3",
63
63
  "@tailwindcss/vite": "^4.3.3",
64
- "@typerighter/rpc-client": "0.54.0",
65
- "@typerighter/rpc-server": "0.54.0",
64
+ "@typerighter/rpc-client": "0.55.1",
65
+ "@typerighter/rpc-server": "0.55.1",
66
66
  "@vitejs/plugin-vue": "^6.0.10",
67
67
  "cac": "^7.1.0",
68
68
  "picocolors": "^1.1.1",
@@ -1,81 +0,0 @@
1
- import { c as e, i as t, q as n } from "./shared-v0btHVwj.js";
2
- // src/node/lib/html-template.ts
3
- function r(t) {
4
- let n = e(t.title), r = e(t.description), i = t.siteTitle !== void 0 && t.title !== t.siteTitle ? `${n} - ${e(t.siteTitle)}` : n, a = t.origin ?? "", o = t.canonicalUrl === void 0 ? void 0 : a + t.canonicalUrl, s = o === void 0 ? "" : `\n <link rel="canonical" href="${e(o)}">`, c = o === void 0 ? "" : `\n <meta property="og:url" content="${e(o)}">`, l = t.ogImagePath === void 0 ? `${a}${t.base}og-image.png` : `${a}${t.ogImagePath}`, u = t.author === void 0 ? "" : `\n <meta name="author" content="${e(t.author)}">`, d = t.siteTitle === void 0 ? "" : `\n <meta property="og:site_name" content="${e(t.siteTitle)}">`, f = a === "" ? "" : `\n <link rel="alternate" type="application/rss+xml" title="${t.siteTitle === void 0 ? "RSS Feed" : e(t.siteTitle)}" href="${a}${t.base}feed.xml">`, p = (t.jsonLdBlocks ?? []).map((e) => `\n <script type="application/ld+json">${e}<\/script>`).join(""), m = t.headExtra === void 0 ? "" : t.headExtra + "\n";
5
- return `<!DOCTYPE html>
6
- <html lang="${t.lang ?? "en"}">
7
- <head>
8
- <meta charset="UTF-8">
9
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
10
- <meta name="generator" content="Typerighter">
11
- <meta name="robots" content="index, follow">
12
- <title>${i}</title>
13
- <meta name="description" content="${r}">${u}${s}
14
- <link rel="icon" href="${t.base}favicon.svg" type="image/svg+xml">${f}
15
- <meta property="og:type" content="article">${d}${c}
16
- <meta property="og:title" content="${n}">
17
- <meta property="og:description" content="${r}">
18
- <meta property="og:image" content="${e(l)}">
19
- <meta name="twitter:card" content="summary_large_image">
20
- <meta name="twitter:title" content="${n}">
21
- <meta name="twitter:description" content="${r}">
22
- <meta name="twitter:image" content="${e(l)}">${p}
23
- <script>
24
- (function () {
25
- var theme = localStorage.getItem('td-theme');
26
- var isDark = theme === 'dark' || (theme !== 'light' && matchMedia('(prefers-color-scheme: dark)').matches);
27
- if (isDark) document.documentElement.classList.add('dark');
28
- })()
29
- <\/script>
30
- ${m} </head>
31
- <body>
32
- <div id="app">${t.appContent ?? ""}</div>
33
- <script type="module" src="${t.base}${t.entryScript}"><\/script>
34
- </body>
35
- </html>`;
36
- }
37
- // src/node/build/seo/page.ts
38
- function i(e) {
39
- return e.seoMetadata?.title ?? e.title;
40
- }
41
- function a(e) {
42
- if (e.seoMetadata?.description !== void 0) return e.seoMetadata.description;
43
- let t = e.frontmatter.description;
44
- return t === void 0 ? "" : String(t);
45
- }
46
- function o(e) {
47
- let n = e.fileMetadata?.mtime;
48
- return n === void 0 ? void 0 : t(n);
49
- }
50
- function s(e) {
51
- return e.seoMetadata?.image;
52
- }
53
- // src/node/build/seo/jsonld.ts
54
- function c(e) {
55
- return JSON.stringify({
56
- "@context": "https://schema.org",
57
- "@type": "Article",
58
- headline: e.title,
59
- description: e.description,
60
- ...e.canonicalUrl === void 0 ? {} : { url: e.canonicalUrl },
61
- ...e.author === void 0 ? {} : { author: {
62
- "@type": "Person",
63
- name: e.author
64
- } },
65
- ...e.dateModified === void 0 ? {} : { dateModified: e.dateModified }
66
- });
67
- }
68
- function l(e, t) {
69
- if (e === "/") return;
70
- let r = e.split("/").filter(Boolean), i = r.map((e, i) => ({
71
- "@type": "ListItem",
72
- position: i + 1,
73
- name: i === r.length - 1 ? t : n(e)
74
- }));
75
- return JSON.stringify({
76
- "@context": "https://schema.org",
77
- "@type": "BreadcrumbList",
78
- itemListElement: i
79
- });
80
- }
81
- export { a, s as i, l as n, i as o, o as r, r as s, c as t };