typerighter 0.10.2 → 0.11.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.
|
@@ -652,7 +652,7 @@ function Y() {
|
|
|
652
652
|
n.dispose();
|
|
653
653
|
}
|
|
654
654
|
}), e.command("init [root]", "Scaffold a new project").action(async (e) => {
|
|
655
|
-
let { initialize: t } = await import("./init-
|
|
655
|
+
let { initialize: t } = await import("./init-3_ZHUZAp.js");
|
|
656
656
|
await t(Z(e));
|
|
657
657
|
}), e.command("preview [root]", "Preview production build").option("--port <port>", "Port to listen on").action(async (e, t) => {
|
|
658
658
|
let { preview: n } = await import("vite");
|
|
@@ -682,7 +682,7 @@ function Y() {
|
|
|
682
682
|
} finally {
|
|
683
683
|
n.dispose();
|
|
684
684
|
}
|
|
685
|
-
}), e.help(), e.version("0.
|
|
685
|
+
}), e.help(), e.version("0.11.0"), e.parse();
|
|
686
686
|
}
|
|
687
687
|
function X(e, t) {
|
|
688
688
|
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-SWWO1fzA.js";
|
|
2
2
|
export { e as cli };
|
|
@@ -381,15 +381,15 @@ var Ge = /*#__PURE__*/ T(/* @__PURE__ */ R({
|
|
|
381
381
|
t.value = !t.value;
|
|
382
382
|
}
|
|
383
383
|
return Y(t, (e) => {
|
|
384
|
-
e ? document.addEventListener("click", r) : document.removeEventListener("click", r);
|
|
384
|
+
typeof document > "u" || (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
|
|
385
385
|
}), V(() => {
|
|
386
|
-
document.removeEventListener("click", r);
|
|
386
|
+
typeof document > "u" || document.removeEventListener("click", r);
|
|
387
387
|
}), (e, r) => (H(), F("span", fe({
|
|
388
388
|
ref_key: "wrapper",
|
|
389
389
|
ref: n
|
|
390
390
|
}, e.$attrs, { class: "td-dropdown" }), [I("span", { onClick: i }, [G(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (H(), F("div", ut, [G(e.$slots, "default", {}, void 0, !0)])) : P("", !0)], 16));
|
|
391
391
|
}
|
|
392
|
-
}), [["__scopeId", "data-v-
|
|
392
|
+
}), [["__scopeId", "data-v-d71f3c74"]]), ft = {
|
|
393
393
|
class: "td-breadcrumb",
|
|
394
394
|
"aria-label": "Breadcrumb"
|
|
395
395
|
}, pt = ["href"], mt = {
|
|
@@ -1070,6 +1070,7 @@ function wn() {
|
|
|
1070
1070
|
function Tn(e) {
|
|
1071
1071
|
let t = U(""), n;
|
|
1072
1072
|
function r() {
|
|
1073
|
+
if (typeof document > "u") return;
|
|
1073
1074
|
n?.disconnect(), t.value = "";
|
|
1074
1075
|
let e = Array.from(document.querySelectorAll(".td-content h2[id], .td-content h3[id], .td-content h4[id], .td-content h5[id]"));
|
|
1075
1076
|
if (e.length !== 0) {
|
|
@@ -1090,7 +1091,9 @@ function Tn(e) {
|
|
|
1090
1091
|
for (let t of e) n.observe(t);
|
|
1091
1092
|
}
|
|
1092
1093
|
}
|
|
1093
|
-
return Y(e, () =>
|
|
1094
|
+
return Y(e, () => {
|
|
1095
|
+
typeof window > "u" || pe(r);
|
|
1096
|
+
}, { immediate: !0 }), V(() => {
|
|
1094
1097
|
n?.disconnect();
|
|
1095
1098
|
}), t;
|
|
1096
1099
|
}
|
|
@@ -1131,6 +1134,7 @@ var En = {
|
|
|
1131
1134
|
setup(e) {
|
|
1132
1135
|
let { title: t, page: n } = A(), r = D(), { withBase: i } = r, a = S(), { isOpen: o, close: c } = Kt(), l = U(""), u = U(!1), d = U(!1), f = O();
|
|
1133
1136
|
Y(() => f.path, () => c()), xn(), xe(() => {
|
|
1137
|
+
if (typeof document > "u") return;
|
|
1134
1138
|
let e = t.value, i = r.title;
|
|
1135
1139
|
document.title = e && e !== i ? `${e} - ${i}` : i;
|
|
1136
1140
|
let a = n.frontmatter?.description === void 0 ? r.description ?? "" : String(n.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
|
|
@@ -1215,7 +1219,7 @@ var En = {
|
|
|
1215
1219
|
])]), I("nav", qn, [L(kn, { headings: q(n).headings }, null, 8, ["headings"])])])])
|
|
1216
1220
|
]));
|
|
1217
1221
|
}
|
|
1218
|
-
}), [["__scopeId", "data-v-
|
|
1222
|
+
}), [["__scopeId", "data-v-93a3d24b"]]), $n = { class: "pt-16 pb-24" }, er = ["href"], tr = /* @__PURE__ */ R({
|
|
1219
1223
|
__name: "TdNotFound",
|
|
1220
1224
|
setup(e) {
|
|
1221
1225
|
let { withBase: t } = D();
|
package/dist/index.js
CHANGED
|
@@ -2303,7 +2303,7 @@ function ai(e) {
|
|
|
2303
2303
|
build: "typerighter build",
|
|
2304
2304
|
preview: "typerighter preview"
|
|
2305
2305
|
},
|
|
2306
|
-
devDependencies: { typerighter: "^0.
|
|
2306
|
+
devDependencies: { typerighter: "^0.11.0" }
|
|
2307
2307
|
}, void 0, 2) + "\n";
|
|
2308
2308
|
}
|
|
2309
2309
|
function oi() {
|