typerighter 0.4.0 → 0.4.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.
- package/dist/{brand-BtMsUv5o.js → brand-CmL-6h9U.js} +3 -1
- package/dist/{cli-s44ly0MH.js → cli-Bo7lDPP_.js} +5 -5
- package/dist/cli.js +1 -1
- package/dist/client/theme-default.js +1 -1
- package/dist/{constants-E2UATqMm.js → constants-7heqadyd.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/{init-0hKcjQtf.js → init-pO7EXhej.js} +3 -3
- package/dist/shared/utils/content.d.ts.map +1 -1
- package/dist/{vite-nzhkELg7.js → vite-B-ktlRz9.js} +2 -2
- package/dist/vite.js +1 -1
- package/package.json +3 -3
|
@@ -112,7 +112,9 @@ function w(e, t) {
|
|
|
112
112
|
}
|
|
113
113
|
function i(e, t) {
|
|
114
114
|
let n = e.items[0] ?? e.children[0]?.items[0];
|
|
115
|
-
|
|
115
|
+
if (!n) return `${t}/${e.name}`;
|
|
116
|
+
let r = b(n.filepath);
|
|
117
|
+
return d(n.filepath) === "index" ? r : y(r);
|
|
116
118
|
}
|
|
117
119
|
function a(e, t) {
|
|
118
120
|
for (let o of e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as e } from "./constants-
|
|
2
|
-
import { C as t, D as n, E as r, S as i, d as a, f as o, l as s } from "./brand-
|
|
3
|
-
import { n as c, t as l } from "./vite-
|
|
1
|
+
import { o as e } from "./constants-7heqadyd.js";
|
|
2
|
+
import { C as t, D as n, E as r, S as i, d as a, f as o, l as s } from "./brand-CmL-6h9U.js";
|
|
3
|
+
import { n as c, t as l } from "./vite-B-ktlRz9.js";
|
|
4
4
|
import u from "node:path";
|
|
5
5
|
import { build as d, createServer as f } from "vite";
|
|
6
6
|
import p from "picocolors";
|
|
@@ -619,7 +619,7 @@ function q() {
|
|
|
619
619
|
r.dispose();
|
|
620
620
|
}
|
|
621
621
|
}), t.command("init [root]", "Scaffold a new project").action(async (e) => {
|
|
622
|
-
let { initialize: t } = await import("./init-
|
|
622
|
+
let { initialize: t } = await import("./init-pO7EXhej.js");
|
|
623
623
|
await t(Y(e));
|
|
624
624
|
}), t.command("preview [root]", "Preview production build").option("--port <port>", "Port to listen on").action(async (e, t) => {
|
|
625
625
|
let { preview: n } = await import("vite");
|
|
@@ -627,7 +627,7 @@ function q() {
|
|
|
627
627
|
root: Y(e),
|
|
628
628
|
preview: { port: t.port }
|
|
629
629
|
})).printUrls();
|
|
630
|
-
}), t.help(), t.version("0.4.
|
|
630
|
+
}), t.help(), t.version("0.4.1"), t.parse();
|
|
631
631
|
}
|
|
632
632
|
function J(e, t) {
|
|
633
633
|
let n = t instanceof Error ? t.message : String(t);
|
package/dist/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./cli-
|
|
1
|
+
import { t as e } from "./cli-Bo7lDPP_.js";
|
|
2
2
|
export { e as cli };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, O as t, _ as n, a as r, c as i, g as a, h as o, i as s, k as c, l, m as u, n as d, o as f, s as p, t as m, u as h, v as g, w as _, x as v } from "../brand-
|
|
1
|
+
import { A as e, O as t, _ as n, a as r, c as i, g as a, h as o, i as s, k as c, l, m as u, n as d, o as f, s as p, t as m, u as h, v as g, w as _, x as v } from "../brand-CmL-6h9U.js";
|
|
2
2
|
import { t as y } from "../es-ClqUVRJn.js";
|
|
3
3
|
import { a as b, c as x, d as S, i as C, l as w, n as ee, o as T, r as te, s as ne } from "../app-Bw90hv7G.js";
|
|
4
4
|
import { Fragment as E, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createVNode as M, defineComponent as N, h as P, inject as re, markRaw as ie, mergeModels as ae, normalizeClass as F, normalizeStyle as I, onMounted as oe, onUnmounted as se, openBlock as L, readonly as ce, ref as R, renderList as z, renderSlot as le, resolveComponent as ue, shallowRef as de, toDisplayString as B, unref as V, useModel as H, vModelText as fe, watch as U, withCtx as W, withDirectives as pe } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as EXTERNAL_URL_RE, b as isUrlToPage, y as isUrlExternal } from "./brand-
|
|
1
|
+
import { T as EXTERNAL_URL_RE, b as isUrlToPage, y as isUrlExternal } from "./brand-CmL-6h9U.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { createLogger } from "vite";
|
|
4
4
|
import fs from "node:fs";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./vite-
|
|
1
|
+
import { n as e, t } from "./vite-B-ktlRz9.js";
|
|
2
2
|
import "./vite.js";
|
|
3
|
-
import { n, t as r } from "./cli-
|
|
3
|
+
import { n, t as r } from "./cli-Bo7lDPP_.js";
|
|
4
4
|
export { n as buildSite, r as cli, t as generateClientAppEntry, e as typedown };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, c as t, i as n } from "./constants-
|
|
2
|
-
import { l as r, r as i } from "./brand-
|
|
1
|
+
import { a as e, c as t, i as n } from "./constants-7heqadyd.js";
|
|
2
|
+
import { l as r, r as i } from "./brand-CmL-6h9U.js";
|
|
3
3
|
import a from "node:path";
|
|
4
4
|
import "node:fs";
|
|
5
5
|
import o from "node:fs/promises";
|
|
@@ -2298,7 +2298,7 @@ function ei(e) {
|
|
|
2298
2298
|
build: "typerighter build",
|
|
2299
2299
|
preview: "typerighter preview"
|
|
2300
2300
|
},
|
|
2301
|
-
devDependencies: { typerighter: "^0.4.
|
|
2301
|
+
devDependencies: { typerighter: "^0.4.1" }
|
|
2302
2302
|
}, void 0, 2) + "\n";
|
|
2303
2303
|
}
|
|
2304
2304
|
function ti() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/content.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/content.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAC/D,MAAM,kBAAkB,CAAC;AAY1B,wBAAgB,gBAAgB,CAAE,KAAK,EAAE,cAAc,EAAE,GAAG,WAAW,CAqCtE;AAGD,wBAAgB,wBAAwB,CAAE,IAAI,EAAE,eAAe,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAiEtH;AAED,wBAAgB,eAAe,CAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAI5E;AAGD,wBAAgB,kBAAkB,CAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAK7F"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t, o as n, r, s as i, t as a } from "./constants-
|
|
2
|
-
import { A as o, E as s, O as c, S as l, _ as u, d, f, k as p, l as m, m as h, p as g, r as _, u as v, x as y } from "./brand-
|
|
1
|
+
import { i as e, n as t, o as n, r, s as i, t as a } from "./constants-7heqadyd.js";
|
|
2
|
+
import { A as o, E as s, O as c, S as l, _ as u, d, f, k as p, l as m, m as h, p as g, r as _, u as v, x as y } from "./brand-CmL-6h9U.js";
|
|
3
3
|
import { t as b } from "./es-ClqUVRJn.js";
|
|
4
4
|
import { resolve as x } from "node:path";
|
|
5
5
|
import S from "@tailwindcss/vite";
|
package/dist/vite.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./vite-
|
|
1
|
+
import { n as e, t } from "./vite-B-ktlRz9.js";
|
|
2
2
|
export { t as generateClientAppEntry, e as typedown };
|
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.4.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"description": "Typedown: A typed content framework.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"tailwindcss": "^4.3.3",
|
|
82
82
|
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
83
83
|
"vue": "^3.0.0",
|
|
84
|
-
"@typerighter/rpc-client": "0.4.
|
|
85
|
-
"@typerighter/rpc-server": "0.4.
|
|
84
|
+
"@typerighter/rpc-client": "0.4.1",
|
|
85
|
+
"@typerighter/rpc-server": "0.4.1"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@hdnax/nuclint": "^0.17.4",
|