typerighter 0.52.2 → 0.53.2
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/{app-n56VkC5b.js → app-DxLZjnyG.js} +522 -499
- package/dist/{brand-CG1fQshq.js → brand-BSCRFcrY.js} +1 -2
- package/dist/builtin-components.json +59 -1
- package/dist/{cli-C9WuA94L.js → cli-CQLJ7G7c.js} +65 -59
- package/dist/cli.js +1 -1
- package/dist/client/app/index.d.ts.map +1 -1
- package/dist/client/theme-default.js +86 -97
- package/dist/client.js +1 -1
- package/dist/{context-CSvoDxVt.js → context-CPrHBM3S.js} +2 -4
- package/dist/{es-ClqUVRJn.js → es-B_QJMowB.js} +1 -2
- package/dist/index.js +2 -2
- package/dist/{init-tqXgPdqG.js → init-DWC9Yk8H.js} +8 -12
- package/dist/inlineRe-CoUp2DgK.js +3 -0
- package/dist/{jsonld-CRHOaFMj.js → jsonld-CByNA46l.js} +4 -7
- package/dist/node/build/builtin-contract.d.ts.map +1 -1
- package/dist/prerenderWorker.js +3 -4
- package/dist/{renderMath-C59kPnxc.js → renderMath-CxusSg92.js} +4 -5
- package/dist/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-QGRDbDUS.js} +2 -3
- package/dist/shared/types/json-schema.d.ts +4 -1
- package/dist/shared/types/json-schema.d.ts.map +1 -1
- package/dist/{shared-C5ERr4vS.js → shared-v0btHVwj.js} +14 -25
- package/dist/shared.js +1 -1
- package/dist/{temml-D47Z4xZ2.js → temml-CjI4drVW.js} +3 -4
- package/dist/typerighter.css +1 -1
- package/dist/{vite-1F0Ui0Iu.js → vite-0T8QXeWH.js} +93 -94
- package/dist/vite.js +1 -1
- package/package.json +5 -5
- package/dist/inlineRe-Cn-J_E76.js +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
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, _ as c, a as l, b as u, c as d, et as f, f as p, k as m, l as h, n as g, p as _, q as v, r as y, s as b, tt as x, v as S, w as C, y as w } from "../shared-
|
|
2
|
-
import { t as T } from "../es-
|
|
3
|
-
import { A as ee, C as te, D as ne, E, F as re, I as ie, L 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 me, f as he, g as ge, h as _e, i as ve, j as ye, k as be, m as k, n as xe, o as Se, p as Ce, r as A, s as we, u as Te, v as Ee, w as De, x as Oe, y as ke } from "../app-
|
|
4
|
-
import { a as Ae, i as je, n as Me, t as Ne } from "../brand-
|
|
5
|
-
import { t as Pe } from "../inlineRe-
|
|
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, _ as c, a as l, b as u, c as d, et as f, f as p, k as m, l as h, n as g, p as _, q as v, r as y, s as b, tt as x, v as S, w as C, y as w } from "../shared-v0btHVwj.js";
|
|
2
|
+
import { t as T } from "../es-B_QJMowB.js";
|
|
3
|
+
import { A as ee, C as te, D as ne, E, F as re, I as ie, L 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 me, f as he, g as ge, h as _e, i as ve, j as ye, k as be, m as k, n as xe, o as Se, p as Ce, r as A, s as we, u as Te, v as Ee, w as De, x as Oe, y as ke } from "../app-DxLZjnyG.js";
|
|
4
|
+
import { a as Ae, i as je, n as Me, t as Ne } from "../brand-BSCRFcrY.js";
|
|
5
|
+
import { t as Pe } from "../inlineRe-CoUp2DgK.js";
|
|
6
6
|
import { Fragment as j, Teleport as Fe, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createTextVNode as L, createVNode as R, defineComponent as z, getCurrentScope as Ie, markRaw as Le, mergeModels as Re, mergeProps as ze, nextTick as Be, normalizeClass as B, normalizeStyle as Ve, onBeforeUnmount as He, onMounted as Ue, onScopeDispose as We, onUnmounted as V, openBlock as H, readonly as Ge, ref as U, renderList as W, renderSlot as G, resolveComponent as Ke, resolveDynamicComponent as qe, shallowReadonly as Je, shallowRef as Ye, toDisplayString as K, toValue as Xe, unref as q, useModel as Ze, useTemplateRef as Qe, vModelText as $e, watch as J, watchEffect as et, withCtx as tt, withDirectives as nt, withKeys as rt, withModifiers as it } from "vue";
|
|
7
7
|
var at = D({
|
|
8
8
|
name: "circle-dot",
|
|
@@ -271,8 +271,7 @@ function qt(e) {
|
|
|
271
271
|
y: n
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
-
|
|
275
|
-
//#region ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
274
|
+
// ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
276
275
|
function Jt(e, t, n) {
|
|
277
276
|
let { reference: r, floating: i } = e, a = Nt(t), o = Pt(t), s = Mt(o), c = kt(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
278
277
|
switch (c) {
|
|
@@ -388,7 +387,7 @@ var Xt = 50, Zt = async (e, t, n) => {
|
|
|
388
387
|
x: n,
|
|
389
388
|
y: r
|
|
390
389
|
}, p = Pt(i), m = Mt(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
391
|
-
|
|
390
|
+
C && await (o.isElement == null ? void 0 : o.isElement(S)) || (C = s.floating[y] || a.floating[m]);
|
|
392
391
|
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee = Ct(d[_], T), te = Ct(d[v], T), ne = C - h[m] - te, E = C / 2 - h[m] / 2 + w, re = Dt(ee, E, ne), ie = !c.arrow && At(i) != null && E !== re && a.reference[m] / 2 - (E < ee ? ee : te) - h[m] / 2 < 0, D = ie ? E < ee ? E - ee : E - ne : 0;
|
|
393
392
|
return {
|
|
394
393
|
[p]: f[p] + D,
|
|
@@ -518,8 +517,7 @@ var nn = function(e) {
|
|
|
518
517
|
}
|
|
519
518
|
};
|
|
520
519
|
};
|
|
521
|
-
|
|
522
|
-
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
520
|
+
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
523
521
|
function an() {
|
|
524
522
|
return typeof window < "u";
|
|
525
523
|
}
|
|
@@ -615,8 +613,7 @@ function Tn(e, t, n) {
|
|
|
615
613
|
function En(e) {
|
|
616
614
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
617
615
|
}
|
|
618
|
-
|
|
619
|
-
//#region ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
616
|
+
// ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
620
617
|
function Dn(e) {
|
|
621
618
|
let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = ln(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Tt(n) !== a || Tt(r) !== o;
|
|
622
619
|
return s && (n = a, r = o), {
|
|
@@ -632,7 +629,7 @@ function kn(e) {
|
|
|
632
629
|
let t = On(e);
|
|
633
630
|
if (!ln(t)) return Y(1);
|
|
634
631
|
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Dn(t), o = (a ? Tt(n.width) : n.width) / r, s = (a ? Tt(n.height) : n.height) / i;
|
|
635
|
-
return
|
|
632
|
+
return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
|
|
636
633
|
x: o,
|
|
637
634
|
y: s
|
|
638
635
|
};
|
|
@@ -862,8 +859,7 @@ var Qn = {
|
|
|
862
859
|
platform: a
|
|
863
860
|
});
|
|
864
861
|
};
|
|
865
|
-
|
|
866
|
-
//#region ../../node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.44_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
|
|
862
|
+
// ../../node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.44_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
|
|
867
863
|
function ir(e) {
|
|
868
864
|
return typeof e == "object" && !!e && "$el" in e;
|
|
869
865
|
}
|
|
@@ -950,8 +946,7 @@ function lr(e, t, n) {
|
|
|
950
946
|
update: y
|
|
951
947
|
};
|
|
952
948
|
}
|
|
953
|
-
|
|
954
|
-
//#region src/client/theme-default/components/TdTooltip.vue
|
|
949
|
+
// src/client/theme-default/components/TdTooltip.vue
|
|
955
950
|
var ur = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
956
951
|
inheritAttrs: !1,
|
|
957
952
|
__name: "TdTooltip",
|
|
@@ -1017,8 +1012,7 @@ var ur = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1017
1012
|
}, null, 4)], 36)) : P("", !0)]))], 64));
|
|
1018
1013
|
}
|
|
1019
1014
|
}), [["__scopeId", "data-v-953f5bd3"]]);
|
|
1020
|
-
|
|
1021
|
-
//#region src/client/theme-default/utils/renderInlineMarkup.ts
|
|
1015
|
+
// src/client/theme-default/utils/renderInlineMarkup.ts
|
|
1022
1016
|
function dr(e) {
|
|
1023
1017
|
let t = U(fr(e()));
|
|
1024
1018
|
return et((n) => {
|
|
@@ -1030,7 +1024,7 @@ function dr(e) {
|
|
|
1030
1024
|
let i = !0;
|
|
1031
1025
|
n(() => {
|
|
1032
1026
|
i = !1;
|
|
1033
|
-
}), import("../renderMath-
|
|
1027
|
+
}), import("../renderMath-CxusSg92.js").then(({ renderInlineMarkup: e }) => {
|
|
1034
1028
|
i && (t.value = e(r));
|
|
1035
1029
|
});
|
|
1036
1030
|
}), t;
|
|
@@ -1040,8 +1034,7 @@ function fr(e) {
|
|
|
1040
1034
|
for (let r of e.matchAll(Pe)) n += d(e.slice(t, r.index)), r[1] === void 0 ? n += d(r[0]) : n += `<code>${d(r[1])}</code>`, t = r.index + r[0].length;
|
|
1041
1035
|
return n += d(e.slice(t)), n;
|
|
1042
1036
|
}
|
|
1043
|
-
|
|
1044
|
-
//#region src/client/theme-default/components/TdTree/TdTreeNodeLabel.vue?vue&type=script&setup=true&lang.ts
|
|
1037
|
+
// src/client/theme-default/components/TdTree/TdTreeNodeLabel.vue?vue&type=script&setup=true&lang.ts
|
|
1045
1038
|
var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
1046
1039
|
__name: "TdTreeNodeLabel",
|
|
1047
1040
|
props: { text: {} },
|
|
@@ -1173,7 +1166,7 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1173
1166
|
])], 2)], 8, hr)) : P("", !0);
|
|
1174
1167
|
};
|
|
1175
1168
|
}
|
|
1176
|
-
}), [["__scopeId", "data-v-
|
|
1169
|
+
}), [["__scopeId", "data-v-9ff3968e"]]), wr = {
|
|
1177
1170
|
class: "td-nav",
|
|
1178
1171
|
"aria-label": "Site navigation"
|
|
1179
1172
|
}, Tr = { role: "tree" }, Er = ["href"], Dr = {
|
|
@@ -1434,7 +1427,9 @@ function ni(e) {
|
|
|
1434
1427
|
};
|
|
1435
1428
|
}
|
|
1436
1429
|
if (typeof e != "object") return;
|
|
1437
|
-
let t = e
|
|
1430
|
+
let t = e;
|
|
1431
|
+
if (t.$kind !== void 0 && t.$kind !== "ref") return;
|
|
1432
|
+
let n = t.$ref ?? t;
|
|
1438
1433
|
if (typeof n.url != "string") return;
|
|
1439
1434
|
let r = n.url, a = n.name ?? i(r), o = n.format ?? t.format;
|
|
1440
1435
|
return {
|
|
@@ -1454,8 +1449,7 @@ function ri(e) {
|
|
|
1454
1449
|
let t = a(e.name || e.url).slice(1);
|
|
1455
1450
|
return t ? ti.has(t.toLowerCase()) : !1;
|
|
1456
1451
|
}
|
|
1457
|
-
|
|
1458
|
-
//#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetRelation.vue?vue&type=script&setup=true&lang.ts
|
|
1452
|
+
// src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetRelation.vue?vue&type=script&setup=true&lang.ts
|
|
1459
1453
|
var ii = {
|
|
1460
1454
|
key: 0,
|
|
1461
1455
|
class: "td-widget-relation-wrapper"
|
|
@@ -1521,10 +1515,10 @@ var ii = {
|
|
|
1521
1515
|
function s(e) {
|
|
1522
1516
|
return t.value ? e : e.slice(0, _i);
|
|
1523
1517
|
}
|
|
1524
|
-
return (e, c) => r.value ? (H(), F("div", pi, [I("ul", mi, [(H(!0), F(j, null, W(s(i.value), (e, t) => (H(), F("li", { key: t }, [(H(), N(qe(e.icon ? q(me)(e.icon.name) ?? q(ue) : q(ue)), {
|
|
1518
|
+
return (e, c) => r.value ? (H(), F("div", pi, [I("ul", mi, [(H(!0), F(j, null, W(s(i.value), (e, t) => (H(), F("li", { key: t }, [I("div", null, [(H(), N(qe(e.icon ? q(me)(e.icon.name) ?? q(ue) : q(ue)), {
|
|
1525
1519
|
size: 14,
|
|
1526
1520
|
class: "td-widget-list-icon"
|
|
1527
|
-
})), R(fi, {
|
|
1521
|
+
}))]), R(fi, {
|
|
1528
1522
|
value: { $ref: e },
|
|
1529
1523
|
"hide-icon": ""
|
|
1530
1524
|
}, null, 8, ["value"])]))), 128))]), a.value > 0 ? (H(), F("button", {
|
|
@@ -1542,7 +1536,7 @@ var ii = {
|
|
|
1542
1536
|
onClick: o
|
|
1543
1537
|
}, K(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)]));
|
|
1544
1538
|
}
|
|
1545
|
-
}), [["__scopeId", "data-v-
|
|
1539
|
+
}), [["__scopeId", "data-v-bc659020"]]), yi = [
|
|
1546
1540
|
{
|
|
1547
1541
|
fg: "#a0522d",
|
|
1548
1542
|
bg: "rgba(160, 82, 45, 0.1)"
|
|
@@ -1588,8 +1582,7 @@ function xi(e) {
|
|
|
1588
1582
|
for (let n = 0; n < e.length; n++) t = (t << 5) - t + e.charCodeAt(n) | 0;
|
|
1589
1583
|
return Math.abs(t);
|
|
1590
1584
|
}
|
|
1591
|
-
|
|
1592
|
-
//#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetMultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
1585
|
+
// src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetMultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
1593
1586
|
var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1594
1587
|
__name: "TdWidgetMultiSelect",
|
|
1595
1588
|
props: { value: {} },
|
|
@@ -1609,7 +1602,7 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1609
1602
|
onClick: a
|
|
1610
1603
|
}, K(t.value ? "show less" : `+${i.value} more`), 1)) : P("", !0)], 64));
|
|
1611
1604
|
}
|
|
1612
|
-
}), [["__scopeId", "data-v-
|
|
1605
|
+
}), [["__scopeId", "data-v-b3656329"]]), wi = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1613
1606
|
__name: "TdWidgetSelect",
|
|
1614
1607
|
props: { value: {} },
|
|
1615
1608
|
setup(e) {
|
|
@@ -1627,7 +1620,16 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1627
1620
|
setup(e) {
|
|
1628
1621
|
let { withBase: t } = A(), n = M(() => typeof e.value == "string" ? e.value.trim() : ""), r = M(() => ni(e.value)), i = M(() => r.value ? r.value.isImage : 0 < n.value.length && ri({ url: n.value })), a = M(() => r.value ? r.value.url : n.value), o = M(() => t(a.value)), s = M(() => !n.value || !n.value.includes(".") || n.value.includes(" ") ? !1 : n.value.endsWith(".pdf") || n.value.endsWith(".zip") || n.value.endsWith(".doc") || n.value.endsWith(".docx"));
|
|
1629
1622
|
function c(t) {
|
|
1630
|
-
|
|
1623
|
+
if (t == null) return "";
|
|
1624
|
+
if (typeof t == "object" && !Array.isArray(t)) {
|
|
1625
|
+
let e = t;
|
|
1626
|
+
switch (e._type) {
|
|
1627
|
+
case "date":
|
|
1628
|
+
case "datetime":
|
|
1629
|
+
case "time": return typeof e.value == "string" ? g(e.value) : "";
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
return e.definition.widget === "date" ? g(String(t)) : String(t);
|
|
1631
1633
|
}
|
|
1632
1634
|
return (t, a) => i.value ? (H(), F("a", {
|
|
1633
1635
|
key: 0,
|
|
@@ -1649,7 +1651,7 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1649
1651
|
class: "td-widget-file-link"
|
|
1650
1652
|
}, [R(q(E), { class: "td-widget-file-icon" }), I("span", Oi, K(n.value.split("/").pop() ?? n.value), 1)], 8, Di)) : (H(), F(j, { key: 2 }, [L(K(c(e.value)), 1)], 64));
|
|
1651
1653
|
}
|
|
1652
|
-
}), [["__scopeId", "data-v-
|
|
1654
|
+
}), [["__scopeId", "data-v-09e791ba"]]), Ai = {
|
|
1653
1655
|
key: 0,
|
|
1654
1656
|
class: "td-frontmatter-empty"
|
|
1655
1657
|
}, ji = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
@@ -1698,17 +1700,20 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1698
1700
|
let t = ve(), n = M(() => {
|
|
1699
1701
|
if (e.schema) return t.value.schemas[e.schema];
|
|
1700
1702
|
}), r = M(() => {
|
|
1701
|
-
let t =
|
|
1702
|
-
t &&
|
|
1703
|
-
|
|
1703
|
+
let t = e.frontmatter;
|
|
1704
|
+
return t._type && t.fields && typeof t.fields == "object" && !Array.isArray(t.fields) ? t.fields : t;
|
|
1705
|
+
}), i = M(() => {
|
|
1706
|
+
let e = n.value, t = r.value, i = [], a = /* @__PURE__ */ new Set();
|
|
1707
|
+
e && Object.keys(e).forEach((e) => a.add(e)), Object.keys(t).forEach((e) => a.add(e));
|
|
1708
|
+
for (let n of a) {
|
|
1704
1709
|
if (p(n)) continue;
|
|
1705
|
-
let
|
|
1706
|
-
if (
|
|
1707
|
-
let a =
|
|
1708
|
-
|
|
1710
|
+
let r = t[n];
|
|
1711
|
+
if (r == null || Array.isArray(r) && r.length === 0) continue;
|
|
1712
|
+
let a = e?.[n] ?? { widget: "text" };
|
|
1713
|
+
i.push([n, a]);
|
|
1709
1714
|
}
|
|
1710
|
-
return
|
|
1711
|
-
}),
|
|
1715
|
+
return i;
|
|
1716
|
+
}), a = {
|
|
1712
1717
|
text: ht,
|
|
1713
1718
|
checkbox: at,
|
|
1714
1719
|
select: ge,
|
|
@@ -1716,51 +1721,51 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1716
1721
|
relation: oe,
|
|
1717
1722
|
list: le
|
|
1718
1723
|
};
|
|
1719
|
-
function
|
|
1720
|
-
return
|
|
1721
|
-
}
|
|
1722
|
-
let o = U(!1), s = U(!1);
|
|
1723
|
-
function c() {
|
|
1724
|
-
o.value = !o.value;
|
|
1724
|
+
function o(e) {
|
|
1725
|
+
return a[e] ?? ht;
|
|
1725
1726
|
}
|
|
1727
|
+
let s = U(!1), c = U(!1);
|
|
1726
1728
|
function l() {
|
|
1727
1729
|
s.value = !s.value;
|
|
1728
1730
|
}
|
|
1729
|
-
|
|
1731
|
+
function u() {
|
|
1732
|
+
c.value = !c.value;
|
|
1733
|
+
}
|
|
1734
|
+
return (t, n) => e.mode === "rail" && i.value.length > 0 ? (H(), F("div", Mi, [I("button", {
|
|
1730
1735
|
type: "button",
|
|
1731
1736
|
class: "td-fm-rail-header",
|
|
1732
|
-
onClick:
|
|
1737
|
+
onClick: u
|
|
1733
1738
|
}, [n[0] ||= I("span", { class: "td-fm-rail-label" }, "Properties", -1), R(q(ee), {
|
|
1734
1739
|
size: 14,
|
|
1735
|
-
class: B(["td-fm-rail-caret", { "is-collapsed":
|
|
1736
|
-
}, null, 8, ["class"])]), I("div", { class: B(["td-collapse", { "is-collapsed":
|
|
1737
|
-
key:
|
|
1740
|
+
class: B(["td-fm-rail-caret", { "is-collapsed": c.value }])
|
|
1741
|
+
}, null, 8, ["class"])]), I("div", { class: B(["td-collapse", { "is-collapsed": c.value }]) }, [I("div", null, [(H(!0), F(j, null, W(i.value, ([e, t]) => (H(), F("div", {
|
|
1742
|
+
key: e,
|
|
1738
1743
|
class: "td-fm-rail-row"
|
|
1739
|
-
}, [I("span", Ni, [(H(), N(qe(
|
|
1744
|
+
}, [I("span", Ni, [(H(), N(qe(o(t.widget)), {
|
|
1740
1745
|
size: 12,
|
|
1741
1746
|
class: "td-fm-icon"
|
|
1742
|
-
})), L(" " + K(q(v)(
|
|
1743
|
-
definition:
|
|
1744
|
-
value:
|
|
1745
|
-
}, null, 8, ["definition", "value"])])]))), 128))])], 2)])) :
|
|
1747
|
+
})), L(" " + K(q(v)(e)), 1)]), I("span", Pi, [R(ji, {
|
|
1748
|
+
definition: t,
|
|
1749
|
+
value: r.value[e]
|
|
1750
|
+
}, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (H(), F("div", Fi, [I("button", {
|
|
1746
1751
|
type: "button",
|
|
1747
1752
|
class: "td-fm-box-header",
|
|
1748
|
-
onClick:
|
|
1749
|
-
}, [I("span", Ii, [n[1] ||= L("Properties ", -1), I("span", Li, K(
|
|
1753
|
+
onClick: l
|
|
1754
|
+
}, [I("span", Ii, [n[1] ||= L("Properties ", -1), I("span", Li, K(i.value.length), 1)]), I("span", Ri, [L(K(s.value ? "Show" : "Hide") + " ", 1), s.value ? (H(), N(q(se), {
|
|
1750
1755
|
key: 1,
|
|
1751
1756
|
size: 14
|
|
1752
1757
|
})) : (H(), N(q(ee), {
|
|
1753
1758
|
key: 0,
|
|
1754
1759
|
size: 14
|
|
1755
|
-
}))])]), I("div", { class: B(["td-collapse", { "is-collapsed":
|
|
1760
|
+
}))])]), I("div", { class: B(["td-collapse", { "is-collapsed": s.value }]) }, [I("div", zi, [(H(!0), F(j, null, W(i.value, ([e, t]) => (H(), F(j, { key: e }, [I("span", Bi, [(H(), N(qe(o(t.widget)), {
|
|
1756
1761
|
size: 12,
|
|
1757
1762
|
class: "td-fm-icon"
|
|
1758
|
-
})), L(" " + K(q(v)(
|
|
1759
|
-
definition:
|
|
1760
|
-
value:
|
|
1763
|
+
})), L(" " + K(q(v)(e)), 1)]), I("span", Vi, [R(ji, {
|
|
1764
|
+
definition: t,
|
|
1765
|
+
value: r.value[e]
|
|
1761
1766
|
}, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : P("", !0);
|
|
1762
1767
|
}
|
|
1763
|
-
}), [["__scopeId", "data-v-
|
|
1768
|
+
}), [["__scopeId", "data-v-27defa8d"]]), Ui = U(!1);
|
|
1764
1769
|
function Wi() {
|
|
1765
1770
|
function e() {
|
|
1766
1771
|
Ui.value = !Ui.value;
|
|
@@ -1778,8 +1783,7 @@ function Wi() {
|
|
|
1778
1783
|
close: n
|
|
1779
1784
|
};
|
|
1780
1785
|
}
|
|
1781
|
-
|
|
1782
|
-
//#region src/client/theme-default/components/TdMenuButton.vue
|
|
1786
|
+
// src/client/theme-default/components/TdMenuButton.vue
|
|
1783
1787
|
var Gi = /* @__PURE__ */ z({
|
|
1784
1788
|
__name: "TdMenuButton",
|
|
1785
1789
|
setup(e) {
|
|
@@ -1805,8 +1809,7 @@ var Gi = /* @__PURE__ */ z({
|
|
|
1805
1809
|
]));
|
|
1806
1810
|
}
|
|
1807
1811
|
});
|
|
1808
|
-
|
|
1809
|
-
//#region src/client/theme-default/composables/usePreviousNext.ts
|
|
1812
|
+
// src/client/theme-default/composables/usePreviousNext.ts
|
|
1810
1813
|
function Ki() {
|
|
1811
1814
|
let e = ve(), t = O(), { withBase: n, title: r } = A(), i = M(() => {
|
|
1812
1815
|
let i = qi(e.value.contentTree, t.path, r);
|
|
@@ -1879,8 +1882,7 @@ function Xi(e, r) {
|
|
|
1879
1882
|
title: a ? w(a.filepath, a.label) : v(e.name)
|
|
1880
1883
|
};
|
|
1881
1884
|
}
|
|
1882
|
-
|
|
1883
|
-
//#region src/client/theme-default/components/TdPreviousNext.vue?vue&type=script&setup=true&lang.ts
|
|
1885
|
+
// src/client/theme-default/components/TdPreviousNext.vue?vue&type=script&setup=true&lang.ts
|
|
1884
1886
|
var Zi = {
|
|
1885
1887
|
key: 0,
|
|
1886
1888
|
class: "td-prevnext",
|
|
@@ -1948,8 +1950,7 @@ function la(e) {
|
|
|
1948
1950
|
for (; n;) t += n.offsetTop, n = n.offsetParent;
|
|
1949
1951
|
return t;
|
|
1950
1952
|
}
|
|
1951
|
-
|
|
1952
|
-
//#region src/client/theme-default/components/custom/TdToc.vue?vue&type=script&setup=true&lang.ts
|
|
1953
|
+
// src/client/theme-default/components/custom/TdToc.vue?vue&type=script&setup=true&lang.ts
|
|
1953
1954
|
var ua = {
|
|
1954
1955
|
key: 0,
|
|
1955
1956
|
class: "td-toc",
|
|
@@ -2139,8 +2140,7 @@ function Sa() {
|
|
|
2139
2140
|
cancel: l
|
|
2140
2141
|
};
|
|
2141
2142
|
}
|
|
2142
|
-
|
|
2143
|
-
//#region src/client/theme-default/components/TdSiteSearch/highlight.ts
|
|
2143
|
+
// src/client/theme-default/components/TdSiteSearch/highlight.ts
|
|
2144
2144
|
function Ca(e, t) {
|
|
2145
2145
|
if (!e || !t) return d(e);
|
|
2146
2146
|
let n = t.trim().split(/\s+/).filter(Boolean), r = d(e);
|
|
@@ -2150,8 +2150,7 @@ function Ca(e, t) {
|
|
|
2150
2150
|
}
|
|
2151
2151
|
return r;
|
|
2152
2152
|
}
|
|
2153
|
-
|
|
2154
|
-
//#region src/client/theme-default/components/TdSiteSearch/TdSiteSearch.vue?vue&type=script&setup=true&lang.ts
|
|
2153
|
+
// src/client/theme-default/components/TdSiteSearch/TdSiteSearch.vue?vue&type=script&setup=true&lang.ts
|
|
2155
2154
|
var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
|
|
2156
2155
|
key: 2,
|
|
2157
2156
|
class: "td-search-count"
|
|
@@ -2317,8 +2316,7 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
|
|
|
2317
2316
|
}, 8, ["label", "onClick"]));
|
|
2318
2317
|
}
|
|
2319
2318
|
});
|
|
2320
|
-
|
|
2321
|
-
//#region src/client/theme-default/composables/useCopyCode.ts
|
|
2319
|
+
// src/client/theme-default/composables/useCopyCode.ts
|
|
2322
2320
|
function Fa() {
|
|
2323
2321
|
function e(e) {
|
|
2324
2322
|
let t = e.target?.closest(".td-code-copy, .copy");
|
|
@@ -2345,8 +2343,7 @@ function Fa() {
|
|
|
2345
2343
|
document.removeEventListener("click", e);
|
|
2346
2344
|
});
|
|
2347
2345
|
}
|
|
2348
|
-
|
|
2349
|
-
//#region src/client/theme-default/composables/useCopyHeadingAnchor.ts
|
|
2346
|
+
// src/client/theme-default/composables/useCopyHeadingAnchor.ts
|
|
2350
2347
|
function Ia() {
|
|
2351
2348
|
function e(e) {
|
|
2352
2349
|
let t = e.target?.closest(".td-header-anchor");
|
|
@@ -2363,8 +2360,7 @@ function Ia() {
|
|
|
2363
2360
|
document.removeEventListener("click", e);
|
|
2364
2361
|
});
|
|
2365
2362
|
}
|
|
2366
|
-
|
|
2367
|
-
//#region src/client/theme-default/composables/useHotkey.ts
|
|
2363
|
+
// src/client/theme-default/composables/useHotkey.ts
|
|
2368
2364
|
var La = /* @__PURE__ */ new Map([
|
|
2369
2365
|
[$.Control, "ctrlKey"],
|
|
2370
2366
|
[$.Alt, "altKey"],
|
|
@@ -2403,8 +2399,7 @@ function Ba(e, t) {
|
|
|
2403
2399
|
for (let t of n) if (!e[La.get(t)]) return !1;
|
|
2404
2400
|
return !(e.ctrlKey && !n.includes($.Control) || e.altKey && !n.includes($.Alt) || e.shiftKey && !n.includes($.Shift) || e.metaKey && !n.includes($.Meta));
|
|
2405
2401
|
}
|
|
2406
|
-
|
|
2407
|
-
//#region src/client/theme-default/composables/useResizableTable.ts
|
|
2402
|
+
// src/client/theme-default/composables/useResizableTable.ts
|
|
2408
2403
|
var Va = 6, Ha = 40;
|
|
2409
2404
|
function Ua() {
|
|
2410
2405
|
let e, t = !1;
|
|
@@ -2442,8 +2437,7 @@ function Ua() {
|
|
|
2442
2437
|
document.removeEventListener("pointermove", r), document.removeEventListener("pointerdown", i);
|
|
2443
2438
|
});
|
|
2444
2439
|
}
|
|
2445
|
-
|
|
2446
|
-
//#region src/client/theme-default/composables/lazy-embed/d2.ts
|
|
2440
|
+
// src/client/theme-default/composables/lazy-embed/d2.ts
|
|
2447
2441
|
var Wa = "https://esm.sh/@terrastruct/d2@0.1.32", Ga, Ka = 0;
|
|
2448
2442
|
function qa(e) {
|
|
2449
2443
|
let t = {
|
|
@@ -2491,8 +2485,7 @@ async function Ya(e) {
|
|
|
2491
2485
|
t.classList.add("td-d2-error");
|
|
2492
2486
|
}
|
|
2493
2487
|
}
|
|
2494
|
-
|
|
2495
|
-
//#region src/client/theme-default/composables/lazy-embed/mermaid.ts
|
|
2488
|
+
// src/client/theme-default/composables/lazy-embed/mermaid.ts
|
|
2496
2489
|
var Xa = "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs", Za, Qa = 0;
|
|
2497
2490
|
function $a(e) {
|
|
2498
2491
|
let t = {
|
|
@@ -2539,8 +2532,7 @@ async function to(e) {
|
|
|
2539
2532
|
t.classList.add("td-mermaid-error");
|
|
2540
2533
|
}
|
|
2541
2534
|
}
|
|
2542
|
-
|
|
2543
|
-
//#region src/client/theme-default/composables/lazy-embed/github.ts
|
|
2535
|
+
// src/client/theme-default/composables/lazy-embed/github.ts
|
|
2544
2536
|
var no = "https://emgithub.com/embed-v2.js";
|
|
2545
2537
|
function ro(e) {
|
|
2546
2538
|
let t, n = [], r = {
|
|
@@ -2582,8 +2574,7 @@ function ro(e) {
|
|
|
2582
2574
|
function io(e, t) {
|
|
2583
2575
|
return `${no}?target=${encodeURIComponent(e)}&style=${t ? "base16/gruvbox-dark-medium" : "grayscale"}&type=code&showBorder=on&showFileMeta=on&showFullPath=on&showCopy=on&showLineNumbers=on`;
|
|
2584
2576
|
}
|
|
2585
|
-
|
|
2586
|
-
//#region src/client/theme-default/composables/lazy-embed/index.ts
|
|
2577
|
+
// src/client/theme-default/composables/lazy-embed/index.ts
|
|
2587
2578
|
function ao() {
|
|
2588
2579
|
let e = [], t = /* @__PURE__ */ new WeakSet(), n = /* @__PURE__ */ new WeakMap(), r, i;
|
|
2589
2580
|
function a() {
|
|
@@ -2620,8 +2611,7 @@ function ao() {
|
|
|
2620
2611
|
};
|
|
2621
2612
|
$a(o), qa(o), ro(o);
|
|
2622
2613
|
}
|
|
2623
|
-
|
|
2624
|
-
//#region src/client/theme-default/TdLayout.vue?vue&type=script&setup=true&lang.ts
|
|
2614
|
+
// src/client/theme-default/TdLayout.vue?vue&type=script&setup=true&lang.ts
|
|
2625
2615
|
var oo = { class: "td-header" }, so = { class: "td-header-left" }, co = ["href"], lo = { class: "td-brand-name" }, uo = { class: "td-header-right" }, fo = ["href"], po = { class: "td-drawer-header" }, mo = ["href"], ho = { class: "td-brand-name" }, go = {
|
|
2626
2616
|
key: 0,
|
|
2627
2617
|
class: "pt-4",
|
|
@@ -2854,5 +2844,4 @@ var oo = { class: "td-header" }, so = { class: "td-header-left" }, co = ["href"]
|
|
|
2854
2844
|
Layout: No,
|
|
2855
2845
|
NotFound: Io
|
|
2856
2846
|
};
|
|
2857
|
-
//#endregion
|
|
2858
2847
|
export { bt as TdBrandIcon, jr as TdContentNav, Ce as TdDirectoryIndex, Pr as TdFooter, he as TdGlossaryIndex, ba as TdKbdShortcut, $ as TdKeyName, No as TdLayout, Io as TdNotFound, oa as TdPreviousNext, ha as TdRail, Pa as TdThemeToggle, pa as TdToc, Lo as default, Fa as useCopyCode, Ra as useGlobalHotkey, za as useLocalHotkeys };
|
package/dist/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as Content, t as createTypedownApp, c as useRoute, l as useRouter, r as useSiteConfig, i as useSiteData, a as useTdContent, o as useTheme } from "./app-
|
|
1
|
+
export { s as Content, t as createTypedownApp, c as useRoute, l as useRouter, r as useSiteConfig, i as useSiteData, a as useTdContent, o as useTheme } from "./app-DxLZjnyG.js";
|
|
@@ -4,7 +4,7 @@ import { createLogger as n } from "vite";
|
|
|
4
4
|
import r from "node:fs";
|
|
5
5
|
import { RpcServer as i } from "@typerighter/rpc-server";
|
|
6
6
|
import { RPC_CANCELLED_CODE as a, RpcClient as o } from "@typerighter/rpc-client";
|
|
7
|
-
|
|
7
|
+
// src/node/lib/logger.ts
|
|
8
8
|
var s = /\u001B\[[0-9;]*m/g, c = class {
|
|
9
9
|
logStream;
|
|
10
10
|
constructor(e) {
|
|
@@ -116,8 +116,7 @@ async function f(e, t = 5) {
|
|
|
116
116
|
}
|
|
117
117
|
throw Error("unreachable");
|
|
118
118
|
}
|
|
119
|
-
|
|
120
|
-
//#region src/node/context.ts
|
|
119
|
+
// src/node/context.ts
|
|
121
120
|
var p = ["typedown.yaml", "typedown.yml"];
|
|
122
121
|
function m(e) {
|
|
123
122
|
let t = new c(_(e));
|
|
@@ -190,5 +189,4 @@ function _(t) {
|
|
|
190
189
|
return;
|
|
191
190
|
}
|
|
192
191
|
}
|
|
193
|
-
//#endregion
|
|
194
192
|
export { l as a, d as i, m as n, h as r, p as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/minisearch@7.2.0/node_modules/minisearch/dist/es/index.js
|
|
2
2
|
var e = "KEYS", t = "VALUES", n = class {
|
|
3
3
|
constructor(e, t) {
|
|
4
4
|
let n = e._tree, r = Array.from(n.keys());
|
|
@@ -701,5 +701,4 @@ var v = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, y
|
|
|
701
701
|
for (let r of Object.keys(e)) t.set(parseInt(r, 10), e[r]), ++n % 1e3 == 0 && await F(0);
|
|
702
702
|
return t;
|
|
703
703
|
}, F = (e) => new Promise((t) => setTimeout(t, e)), I = /[\n\r\p{Z}\p{P}]+/u;
|
|
704
|
-
//#endregion
|
|
705
704
|
export { _ as t };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./vite-
|
|
2
|
-
import { t as s } from "./cli-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./vite-0T8QXeWH.js";
|
|
2
|
+
import { t as s } from "./cli-CQLJ7G7c.js";
|
|
3
3
|
export { n as PAGES_ID, i as PAGE_DATA_EVENT, t as SEARCH_INDEX_ID, e as SITE_DATA_ID, r as THEME_ID, a as buildSite, s as cli, o as typedown };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-
|
|
2
|
-
import { t } from "./context-
|
|
3
|
-
import { a as n, i as r, n as i, r as a, t as o } from "./brand-
|
|
1
|
+
import { t as e } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
|
+
import { t } from "./context-CPrHBM3S.js";
|
|
3
|
+
import { a as n, i as r, n as i, r as a, t as o } from "./brand-BSCRFcrY.js";
|
|
4
4
|
import s from "node:path";
|
|
5
5
|
import c from "node:fs/promises";
|
|
6
6
|
import { existsSync as l } from "node:fs";
|
|
@@ -8,7 +8,7 @@ import { styleText as u } from "node:util";
|
|
|
8
8
|
import d, { stdin as f, stdout as p } from "node:process";
|
|
9
9
|
import m from "node:readline";
|
|
10
10
|
import "node:tty";
|
|
11
|
-
|
|
11
|
+
// ../../node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/utils.js
|
|
12
12
|
var h = (() => {
|
|
13
13
|
let e = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
14
14
|
return (t) => {
|
|
@@ -137,8 +137,7 @@ var h = (() => {
|
|
|
137
137
|
function I(e, t, n) {
|
|
138
138
|
return String(e).normalize().split(ce).map((e) => se(e, t, n)).join("\n");
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
//#region ../../node_modules/.pnpm/@clack+core@1.4.3/node_modules/@clack/core/dist/index.mjs
|
|
140
|
+
// ../../node_modules/.pnpm/@clack+core@1.4.3/node_modules/@clack/core/dist/index.mjs
|
|
142
141
|
var L = (/* @__PURE__ */ e(((e, t) => {
|
|
143
142
|
var n = "\x1B", r = `${n}[`, i = "\x07", a = {
|
|
144
143
|
to(e, t) {
|
|
@@ -468,8 +467,7 @@ var de = class {
|
|
|
468
467
|
});
|
|
469
468
|
}
|
|
470
469
|
};
|
|
471
|
-
|
|
472
|
-
//#region ../../node_modules/.pnpm/@clack+prompts@1.7.0/node_modules/@clack/prompts/dist/index.mjs
|
|
470
|
+
// ../../node_modules/.pnpm/@clack+prompts@1.7.0/node_modules/@clack/prompts/dist/index.mjs
|
|
473
471
|
function me() {
|
|
474
472
|
return d.platform === "win32" ? !!d.env.CI || !!d.env.WT_SESSION || !!d.env.TERMINUS_SUBLIME || d.env.ConEmuTask === "{cmd::Cmder}" || d.env.TERM_PROGRAM === "Terminus-Sublime" || d.env.TERM_PROGRAM === "vscode" || d.env.TERM === "xterm-256color" || d.env.TERM === "alacritty" || d.env.TERMINAL_EMULATOR === "JetBrains-JediTerm" : d.env.TERM !== "linux";
|
|
475
473
|
}
|
|
@@ -679,8 +677,7 @@ ${t ? u("cyan", Y) : ""}
|
|
|
679
677
|
}
|
|
680
678
|
}
|
|
681
679
|
}).prompt();
|
|
682
|
-
|
|
683
|
-
//#region src/node/cli/init.ts
|
|
680
|
+
// src/node/cli/init.ts
|
|
684
681
|
async function Re(e, t = {}) {
|
|
685
682
|
let n = !Xe(t);
|
|
686
683
|
await Qe(e, n ? await ze(e, t) : $e(t)), n && Ze(e);
|
|
@@ -754,7 +751,7 @@ function Ge(e) {
|
|
|
754
751
|
check: "typerighter check"
|
|
755
752
|
},
|
|
756
753
|
devDependencies: {
|
|
757
|
-
typerighter: "^0.
|
|
754
|
+
typerighter: "^0.53.2",
|
|
758
755
|
typescript: "^5.0.0"
|
|
759
756
|
}
|
|
760
757
|
}, void 0, 2) + "\n";
|
|
@@ -831,5 +828,4 @@ async function $(e, t, n, r = {}) {
|
|
|
831
828
|
return await c.writeFile(i, n), r.silent || X.success(`created ${t}`), !0;
|
|
832
829
|
}
|
|
833
830
|
}
|
|
834
|
-
//#endregion
|
|
835
831
|
export { Re as initialize };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e, i as t, q as n } from "./shared-
|
|
2
|
-
|
|
1
|
+
import { c as e, i as t, q as n } from "./shared-v0btHVwj.js";
|
|
2
|
+
// src/node/lib/html-template.ts
|
|
3
3
|
function r(t) {
|
|
4
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
5
|
return `<!DOCTYPE html>
|
|
@@ -34,8 +34,7 @@ ${m} </head>
|
|
|
34
34
|
</body>
|
|
35
35
|
</html>`;
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
//#region src/node/build/seo/page.ts
|
|
37
|
+
// src/node/build/seo/page.ts
|
|
39
38
|
function i(e) {
|
|
40
39
|
return e.seoMetadata?.title ?? e.title;
|
|
41
40
|
}
|
|
@@ -51,8 +50,7 @@ function o(e) {
|
|
|
51
50
|
function s(e) {
|
|
52
51
|
return e.seoMetadata?.image;
|
|
53
52
|
}
|
|
54
|
-
|
|
55
|
-
//#region src/node/build/seo/jsonld.ts
|
|
53
|
+
// src/node/build/seo/jsonld.ts
|
|
56
54
|
function c(e) {
|
|
57
55
|
return JSON.stringify({
|
|
58
56
|
"@context": "https://schema.org",
|
|
@@ -80,5 +78,4 @@ function l(e, t) {
|
|
|
80
78
|
itemListElement: i
|
|
81
79
|
});
|
|
82
80
|
}
|
|
83
|
-
//#endregion
|
|
84
81
|
export { a, s as i, l as n, i as o, o as r, r as s, c as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-contract.d.ts","sourceRoot":"","sources":["../../../src/node/build/builtin-contract.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AA0BxD,wBAAgB,oBAAoB,IAAK,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"builtin-contract.d.ts","sourceRoot":"","sources":["../../../src/node/build/builtin-contract.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AA0BxD,wBAAgB,oBAAoB,IAAK,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAUrE"}
|
package/dist/prerenderWorker.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as e } from "./shared-
|
|
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-
|
|
1
|
+
import { P as e } from "./shared-v0btHVwj.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-CByNA46l.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
|
+
// src/node/build/prerenderWorker.ts
|
|
6
6
|
var d = u, f = await (await import(c(d.ssrEntryPath).href)).createRenderer();
|
|
7
7
|
l.on("message", async (c) => {
|
|
8
8
|
try {
|
|
@@ -36,4 +36,3 @@ l.on("message", async (c) => {
|
|
|
36
36
|
l.postMessage({ error: e instanceof Error ? e.message : String(e) });
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
//#endregion
|