@voltro/web 0.28.0 → 0.29.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.
- package/CHANGELOG.md +278 -0
- package/dist/index.d.ts +93 -0
- package/dist/index.js +71 -47
- package/dist/{mount-DfyG67bY.js → mount-B9DPjlEf.js} +25 -25
- package/dist/mount.js +1 -1
- package/dist/{routerState-DDDBYFrI.js → routerState-DAT472IC.js} +3 -1
- package/dist/{serverContext-BASpdhXG.js → serverContext-B1Pivair.js} +235 -228
- package/dist/ssr.d.ts +43 -5
- package/dist/ssr.js +56 -46
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2,28 +2,28 @@ import { t as e } from "./globalContext-d4A-ugDg.js";
|
|
|
2
2
|
import { AppClientsContext as t, useAppClient as n } from "./hooks.js";
|
|
3
3
|
import { a as r, c as i, i as a, l as o, o as s, r as c, s as l, u } from "./frameworkBoot-DHdoAwd9.js";
|
|
4
4
|
import { a as d, c as f, i as p, l as m, o as h, s as g } from "./defaultFallbacks-Fik_Gcjh.js";
|
|
5
|
-
import { i as _, n as ee, r as te, t as ne } from "./mount-
|
|
6
|
-
import { c as re, d as ie, h as ae, l as oe, p as se, u as ce } from "./routerState-
|
|
7
|
-
import { A as le, B as ue, C as de, D as fe, E as pe, F as me, H as
|
|
8
|
-
import { Component as
|
|
9
|
-
import { Fragment as
|
|
5
|
+
import { i as _, n as ee, r as te, t as ne } from "./mount-B9DPjlEf.js";
|
|
6
|
+
import { c as re, d as ie, h as ae, l as oe, p as se, u as ce } from "./routerState-DAT472IC.js";
|
|
7
|
+
import { A as le, B as ue, C as de, D as fe, E as pe, F as me, G as he, H as ge, I as _e, K as v, L as y, M as b, N as x, O as S, P as C, R as w, S as T, T as E, U as D, V as O, W as k, _ as A, a as j, b as M, c as N, d as P, f as F, g as I, h as ve, i as ye, j as be, k as xe, l as Se, m as Ce, n as we, o as Te, p as Ee, r as De, s as Oe, t as ke, u as L, v as Ae, w as je, x as Me, y as Ne, z as Pe } from "./serverContext-B1Pivair.js";
|
|
8
|
+
import { Component as Fe, Suspense as Ie, createElement as R, use as Le, useCallback as Re, useContext as ze, useSyncExternalStore as Be } from "react";
|
|
9
|
+
import { Fragment as z, jsx as B, jsxs as V } from "react/jsx-runtime";
|
|
10
10
|
export * from "@voltro/client";
|
|
11
11
|
export * from "@voltro/ui";
|
|
12
12
|
//#region src/await.tsx
|
|
13
|
-
var
|
|
13
|
+
var Ve = ({ value: e, fallback: t, children: n, errorFallback: r }) => /* @__PURE__ */ B(Ie, {
|
|
14
14
|
fallback: t,
|
|
15
|
-
children: /* @__PURE__ */
|
|
15
|
+
children: /* @__PURE__ */ B(Ue, {
|
|
16
16
|
errorFallback: r,
|
|
17
|
-
children: /* @__PURE__ */
|
|
17
|
+
children: /* @__PURE__ */ B(He, {
|
|
18
18
|
value: e,
|
|
19
19
|
errorFallback: r ?? null,
|
|
20
20
|
children: n
|
|
21
21
|
})
|
|
22
22
|
})
|
|
23
|
-
}),
|
|
24
|
-
let r =
|
|
25
|
-
return a === void 0 ? /* @__PURE__ */
|
|
26
|
-
},
|
|
23
|
+
}), H = ({ body: e }) => /* @__PURE__ */ B("script", { dangerouslySetInnerHTML: { __html: e } }), He = ({ value: e, errorFallback: t, children: n }) => {
|
|
24
|
+
let r = Le(e), i = ce(e), a = ae(r);
|
|
25
|
+
return a === void 0 ? /* @__PURE__ */ V(z, { children: [i === void 0 ? null : /* @__PURE__ */ B(H, { body: ie(i, r) }), n(r)] }) : /* @__PURE__ */ V(z, { children: [i === void 0 ? null : /* @__PURE__ */ B(H, { body: oe(i, a) }), t] });
|
|
26
|
+
}, Ue = class extends Fe {
|
|
27
27
|
state = { error: void 0 };
|
|
28
28
|
static getDerivedStateFromError(e) {
|
|
29
29
|
return { error: e };
|
|
@@ -31,7 +31,7 @@ var Le = ({ value: e, fallback: t, children: n, errorFallback: r }) => /* @__PUR
|
|
|
31
31
|
render() {
|
|
32
32
|
return this.state.error === void 0 ? this.props.children : this.props.errorFallback ?? null;
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, U = ({ src: e }) => e, W = e("imageConfig", { loader: U }), We = ({ loader: e, children: t }) => R(W.Provider, { value: { loader: e } }, t), G = [
|
|
35
35
|
640,
|
|
36
36
|
750,
|
|
37
37
|
828,
|
|
@@ -40,8 +40,8 @@ var Le = ({ value: e, fallback: t, children: n, errorFallback: r }) => /* @__PUR
|
|
|
40
40
|
1920,
|
|
41
41
|
2048,
|
|
42
42
|
3840
|
|
43
|
-
],
|
|
44
|
-
let i = n !== void 0 && !r ? Array.from(new Set(
|
|
43
|
+
], Ge = (e, t, n, r) => {
|
|
44
|
+
let i = n !== void 0 && !r ? Array.from(new Set(G.filter((e) => e <= n * 2).concat(n))).sort((e, t) => e - t) : [...G];
|
|
45
45
|
return {
|
|
46
46
|
srcSet: i.map((n) => `${e({
|
|
47
47
|
src: t,
|
|
@@ -52,10 +52,10 @@ var Le = ({ value: e, fallback: t, children: n, errorFallback: r }) => /* @__PUR
|
|
|
52
52
|
width: i[i.length - 1]
|
|
53
53
|
})
|
|
54
54
|
};
|
|
55
|
-
},
|
|
56
|
-
let f =
|
|
55
|
+
}, Ke = ({ src: e, alt: t, width: n, height: r, fill: i = !1, sizes: a, priority: o = !1, loader: s, placeholder: c = "empty", blurDataURL: l, style: u, ...d }) => {
|
|
56
|
+
let f = ze(W).loader, p = s ?? f;
|
|
57
57
|
!i && (n === void 0 || r === void 0) && typeof console < "u" && console.warn(`<Image src="${e}"> needs both width and height (or fill) to reserve layout space and avoid CLS.`);
|
|
58
|
-
let { srcSet: m, fallback: h } =
|
|
58
|
+
let { srcSet: m, fallback: h } = Ge(p, e, n, i), g = c === "blur" && l ? {
|
|
59
59
|
backgroundImage: `url(${l})`,
|
|
60
60
|
backgroundSize: "cover",
|
|
61
61
|
backgroundPosition: "center"
|
|
@@ -66,7 +66,7 @@ var Le = ({ value: e, fallback: t, children: n, errorFallback: r }) => /* @__PUR
|
|
|
66
66
|
width: "100%",
|
|
67
67
|
objectFit: "cover"
|
|
68
68
|
} : {};
|
|
69
|
-
return
|
|
69
|
+
return R("img", {
|
|
70
70
|
src: h,
|
|
71
71
|
srcSet: m,
|
|
72
72
|
sizes: a ?? (i ? "100vw" : void 0),
|
|
@@ -85,10 +85,10 @@ var Le = ({ value: e, fallback: t, children: n, errorFallback: r }) => /* @__PUR
|
|
|
85
85
|
},
|
|
86
86
|
...d
|
|
87
87
|
});
|
|
88
|
-
},
|
|
88
|
+
}, qe = ({ to: e, children: t, className: n }) => R("a", {
|
|
89
89
|
href: e,
|
|
90
90
|
className: n
|
|
91
|
-
}, t),
|
|
91
|
+
}, t), Je = {
|
|
92
92
|
position: "sticky",
|
|
93
93
|
top: 0,
|
|
94
94
|
zIndex: 10,
|
|
@@ -99,13 +99,13 @@ var Le = ({ value: e, fallback: t, children: n, errorFallback: r }) => /* @__PUR
|
|
|
99
99
|
padding: "1rem 1.5rem",
|
|
100
100
|
borderBottom: "1px solid var(--voltro-blog-border, rgba(127,127,127,0.2))",
|
|
101
101
|
backdropFilter: "blur(8px)"
|
|
102
|
-
},
|
|
102
|
+
}, Ye = {
|
|
103
103
|
maxWidth: "48rem",
|
|
104
104
|
margin: "0 auto",
|
|
105
105
|
padding: "2rem 1.5rem",
|
|
106
106
|
width: "100%"
|
|
107
|
-
},
|
|
108
|
-
let { brand: t, topNav: n, children: r, pathname: i, footer: a, breadcrumbs: o, headerRight: s } = e, c = e.Link ??
|
|
107
|
+
}, Xe = (e) => {
|
|
108
|
+
let { brand: t, topNav: n, children: r, pathname: i, footer: a, breadcrumbs: o, headerRight: s } = e, c = e.Link ?? qe, l = R("nav", {
|
|
109
109
|
className: "voltro-blog-nav",
|
|
110
110
|
style: {
|
|
111
111
|
display: "flex",
|
|
@@ -114,20 +114,20 @@ var Le = ({ value: e, fallback: t, children: n, errorFallback: r }) => /* @__PUR
|
|
|
114
114
|
}
|
|
115
115
|
}, ...n.map((e) => {
|
|
116
116
|
let t = i === e.href;
|
|
117
|
-
return
|
|
117
|
+
return R(c, {
|
|
118
118
|
key: e.href,
|
|
119
119
|
to: e.href,
|
|
120
120
|
className: t ? "voltro-blog-nav-link is-active" : "voltro-blog-nav-link",
|
|
121
121
|
children: e.label
|
|
122
122
|
});
|
|
123
|
-
})), u =
|
|
123
|
+
})), u = R("header", {
|
|
124
124
|
className: "voltro-blog-header",
|
|
125
|
-
style:
|
|
126
|
-
},
|
|
125
|
+
style: Je
|
|
126
|
+
}, R("div", { className: "voltro-blog-brand" }, t), s ? R("div", { style: {
|
|
127
127
|
display: "flex",
|
|
128
128
|
gap: "1rem",
|
|
129
129
|
alignItems: "center"
|
|
130
|
-
} }, l, s) : l), d = o && o.length > 0 ?
|
|
130
|
+
} }, l, s) : l), d = o && o.length > 0 ? R("nav", {
|
|
131
131
|
className: "voltro-blog-breadcrumbs",
|
|
132
132
|
"aria-label": "Breadcrumb",
|
|
133
133
|
style: {
|
|
@@ -138,20 +138,20 @@ var Le = ({ value: e, fallback: t, children: n, errorFallback: r }) => /* @__PUR
|
|
|
138
138
|
gap: "0.5rem"
|
|
139
139
|
}
|
|
140
140
|
}, ...o.flatMap((e, t) => {
|
|
141
|
-
let n = t === o.length - 1, r = e.href && !n ?
|
|
141
|
+
let n = t === o.length - 1, r = e.href && !n ? R(c, {
|
|
142
142
|
key: `c${t}`,
|
|
143
143
|
to: e.href,
|
|
144
144
|
children: e.label
|
|
145
|
-
}) :
|
|
145
|
+
}) : R("span", {
|
|
146
146
|
key: `c${t}`,
|
|
147
147
|
"aria-current": n ? "page" : void 0
|
|
148
148
|
}, e.label);
|
|
149
|
-
return n ? [r] : [r,
|
|
149
|
+
return n ? [r] : [r, R("span", { key: `s${t}` }, "/")];
|
|
150
150
|
})) : null;
|
|
151
|
-
return
|
|
151
|
+
return R("div", { className: "voltro-blog-layout" }, u, R("main", {
|
|
152
152
|
className: "voltro-blog-main",
|
|
153
|
-
style:
|
|
154
|
-
}, d, r), a ?
|
|
153
|
+
style: Ye
|
|
154
|
+
}, d, r), a ? R("footer", {
|
|
155
155
|
className: "voltro-blog-footer",
|
|
156
156
|
style: {
|
|
157
157
|
maxWidth: "48rem",
|
|
@@ -160,7 +160,31 @@ var Le = ({ value: e, fallback: t, children: n, errorFallback: r }) => /* @__PUR
|
|
|
160
160
|
borderTop: "1px solid var(--voltro-blog-border, rgba(127,127,127,0.2))"
|
|
161
161
|
}
|
|
162
162
|
}, a) : null);
|
|
163
|
-
},
|
|
163
|
+
}, K = (e) => {
|
|
164
|
+
if (e === "" || e === "/") return "/";
|
|
165
|
+
let t = e.startsWith("/") ? e : `/${e}`;
|
|
166
|
+
return t.endsWith("/") ? t.slice(0, -1) : t;
|
|
167
|
+
}, q = (e, t) => {
|
|
168
|
+
let n = e.endsWith("/") ? e.slice(0, -1) : e, r = K(t);
|
|
169
|
+
return r === "/" ? `${n}/` : `${n}${r}`;
|
|
170
|
+
}, J = (e, t, n) => {
|
|
171
|
+
let r = K(e);
|
|
172
|
+
return t === n ? r : r === "/" ? `/${t}` : `/${t}${r}`;
|
|
173
|
+
}, Ze = (e, t) => q(e, t), Qe = (e) => {
|
|
174
|
+
let { siteUrl: t, path: n, locale: r, locales: i, defaultLocale: a, xDefault: o = !0 } = e, s = q(t, J(n, r, a)), c = i.map((e) => ({
|
|
175
|
+
rel: "alternate",
|
|
176
|
+
hreflang: e,
|
|
177
|
+
href: q(t, J(n, e, a))
|
|
178
|
+
}));
|
|
179
|
+
return o && c.push({
|
|
180
|
+
rel: "alternate",
|
|
181
|
+
hreflang: "x-default",
|
|
182
|
+
href: q(t, J(n, a, a))
|
|
183
|
+
}), {
|
|
184
|
+
canonical: s,
|
|
185
|
+
links: c
|
|
186
|
+
};
|
|
187
|
+
}, Y = "voltro:theme", $e = 31536e3, et = () => {
|
|
164
188
|
if (typeof document > "u") return "system";
|
|
165
189
|
try {
|
|
166
190
|
let e = document.cookie.match(/(?:^|;\s*)voltro:theme=([^;]*)/), t = e?.[1] === void 0 ? "" : decodeURIComponent(e[1]);
|
|
@@ -168,17 +192,17 @@ var Le = ({ value: e, fallback: t, children: n, errorFallback: r }) => /* @__PUR
|
|
|
168
192
|
} catch {
|
|
169
193
|
return "system";
|
|
170
194
|
}
|
|
171
|
-
},
|
|
195
|
+
}, tt = () => {
|
|
172
196
|
if (typeof window > "u" || !window.matchMedia) return !1;
|
|
173
197
|
try {
|
|
174
198
|
return window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
175
199
|
} catch {
|
|
176
200
|
return !1;
|
|
177
201
|
}
|
|
178
|
-
}, X = (e) => e === "system" ?
|
|
202
|
+
}, X = (e) => e === "system" ? tt() ? "dark" : "light" : e, Z = 0, Q = /* @__PURE__ */ new Set(), $ = () => {
|
|
179
203
|
Z++;
|
|
180
204
|
for (let e of Q) e();
|
|
181
|
-
},
|
|
205
|
+
}, nt = (e) => {
|
|
182
206
|
Q.add(e);
|
|
183
207
|
let t, n = () => $();
|
|
184
208
|
if (typeof window < "u" && window.matchMedia) try {
|
|
@@ -190,21 +214,21 @@ var Le = ({ value: e, fallback: t, children: n, errorFallback: r }) => /* @__PUR
|
|
|
190
214
|
t?.removeEventListener("change", n);
|
|
191
215
|
} catch {}
|
|
192
216
|
};
|
|
193
|
-
},
|
|
194
|
-
let e =
|
|
217
|
+
}, rt = () => {
|
|
218
|
+
let e = et();
|
|
195
219
|
return `${Z}:${e}:${X(e)}`;
|
|
196
|
-
},
|
|
197
|
-
let [, e, t] =
|
|
220
|
+
}, it = () => "0:system:light", at = () => {
|
|
221
|
+
let [, e, t] = Be(nt, rt, it).split(":");
|
|
198
222
|
return {
|
|
199
223
|
theme: e,
|
|
200
224
|
resolvedTheme: t,
|
|
201
|
-
setTheme:
|
|
225
|
+
setTheme: Re((e) => {
|
|
202
226
|
if (typeof document < "u") try {
|
|
203
|
-
document.cookie = e === "system" ? `${
|
|
227
|
+
document.cookie = e === "system" ? `${Y}=; path=/; max-age=0; SameSite=Lax` : `${Y}=${e}; path=/; max-age=${$e}; SameSite=Lax`, document.documentElement.classList.toggle("dark", X(e) === "dark");
|
|
204
228
|
} catch {}
|
|
205
229
|
$();
|
|
206
230
|
}, [])
|
|
207
231
|
};
|
|
208
|
-
},
|
|
232
|
+
}, ot = "framework-web";
|
|
209
233
|
//#endregion
|
|
210
|
-
export { t as AppClientsContext,
|
|
234
|
+
export { t as AppClientsContext, Ve as Await, Xe as BlogLayout, p as FallbackStringsProvider, Ke as Image, We as ImageConfigProvider, Te as Link, Oe as LoaderCache, N as LoaderDataContext, Se as NO_LOADER_DATA, i as NavigationIndicator, w as NotFoundError, L as PAGE_SLOT_ATTR, P as PageSlot, F as PlainLink, Ee as RENDER_MODES, o as ReconnectContext, Pe as RedirectError, Ce as Router, ve as RouterContext, ke as ServerRequestContext, we as ServerRequestProvider, Y as THEME_COOKIE, ot as WEB_NAME, Ze as canonicalUrl, I as compileRoute, d as defaultFallbackStrings, re as defer, A as externalUrl, Ae as findNotFound, c as formatPrintf, ee as getIslandComponent, k as getRouteSnapshot, g as getStatuses, te as hydrateIslandsOnPage, a as installBrowserConsoleBridge, r as installServerLogRelay, se as isDeferredLoaderResult, ue as isNotFound, O as isRedirect, _ as island, q as joinUrl, Ne as lazyPageRoute, M as loaderCacheKey, J as localizedPath, Me as matchRoute, ne as mount, K as normalizePath, ge as notFound, T as pageRoute, De as parseCookieHeader, U as passthroughImageLoader, de as preloadRouteModule, f as pushStatus, D as redirect, s as registerClientTrace, je as resolveAnchorNavigation, E as resolveMeta, pe as segmentLoaderKey, Qe as seoAlternates, he as setRouteSnapshot, fe as sortRoutesByPriority, v as subscribeRouteSnapshot, m as subscribeStatuses, l as subscribeTraceErrors, n as useAppClient, S as useBlocker, h as useFallbackStrings, xe as useLoaderData, le as useLocation, be as useNavigate, b as useOptionalLoaderData, x as useParams, C as usePrefetch, u as useReconnect, ye as useSearchParams, j as useServerRequest, me as useSetSearchParams, at as useTheme, _e as withHash, y as withQuery };
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { t as e } from "./frameworkBoot-DHdoAwd9.js";
|
|
2
|
-
import { o as t, r as n, t as r } from "./routerState-
|
|
2
|
+
import { o as t, r as n, t as r } from "./routerState-DAT472IC.js";
|
|
3
3
|
import { StrictMode as i, createElement as a } from "react";
|
|
4
4
|
import { createRoot as o, hydrateRoot as s } from "react-dom/client";
|
|
5
|
-
import {
|
|
6
|
-
import { jsx as
|
|
5
|
+
import { applyPreloadSeeds as c, applyStoreSeeds as l } from "@voltro/client";
|
|
6
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
7
7
|
//#region src/islands.tsx
|
|
8
|
-
var
|
|
9
|
-
|
|
8
|
+
var d = /* @__PURE__ */ new Map(), f = (e, t) => {
|
|
9
|
+
d.set(t.name, e);
|
|
10
10
|
let n = t.hydrate ?? "visible", r = (r) => a("div", {
|
|
11
11
|
"data-voltro-island": "",
|
|
12
12
|
"data-island-name": t.name,
|
|
13
13
|
"data-island-hydrate": n,
|
|
14
|
-
"data-island-props":
|
|
14
|
+
"data-island-props": m(r)
|
|
15
15
|
}, a(e, r));
|
|
16
16
|
return r.displayName = `Island(${t.name})`, r;
|
|
17
|
-
},
|
|
17
|
+
}, p = (e) => d.get(e), m = (e) => JSON.stringify(e ?? {}).replace(/</g, "\\u003c"), h = (e) => {
|
|
18
18
|
if (!e) return {};
|
|
19
19
|
try {
|
|
20
20
|
return JSON.parse(e);
|
|
21
21
|
} catch {
|
|
22
22
|
return {};
|
|
23
23
|
}
|
|
24
|
-
},
|
|
24
|
+
}, g = () => {
|
|
25
25
|
let e = document.querySelectorAll("[data-voltro-island]:not([data-voltro-hydrated])");
|
|
26
26
|
for (let t of e) {
|
|
27
|
-
let e = t.dataset.islandName ?? "", n =
|
|
27
|
+
let e = t.dataset.islandName ?? "", n = d.get(e);
|
|
28
28
|
if (!n) {
|
|
29
29
|
console.warn(`[voltro] island "${e}" referenced in DOM but not registered. Did the island file get imported in this bundle?`);
|
|
30
30
|
continue;
|
|
31
31
|
}
|
|
32
|
-
let r =
|
|
32
|
+
let r = h(t.dataset.islandProps ?? null), i = t.dataset.islandHydrate ?? "visible";
|
|
33
33
|
t.setAttribute("data-voltro-hydrated", "pending");
|
|
34
34
|
let o = () => {
|
|
35
35
|
t.getAttribute("data-voltro-hydrated") !== "done" && (t.setAttribute("data-voltro-hydrated", "done"), s(t, a(n, r)));
|
|
@@ -50,28 +50,28 @@ var u = /* @__PURE__ */ new Map(), d = (e, t) => {
|
|
|
50
50
|
t.addEventListener("pointerdown", e, { passive: !0 }), t.addEventListener("keydown", e);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
},
|
|
54
|
-
let
|
|
55
|
-
if (!
|
|
56
|
-
let
|
|
53
|
+
}, _ = (e) => `${window.location.protocol === "https:" ? "wss:" : "ws:"}//${window.location.host}/ws/${e}`, v = (a, d) => {
|
|
54
|
+
let f = document.getElementById(d.rootId ?? "root");
|
|
55
|
+
if (!f) throw Error(`@voltro/web: no #${d.rootId ?? "root"} element in the document`);
|
|
56
|
+
let p = Object.entries(d.apis).map(([e, t]) => ({
|
|
57
57
|
name: e,
|
|
58
58
|
group: t.group,
|
|
59
59
|
descriptors: t.descriptors ?? {},
|
|
60
|
-
wsUrl: t.wsUrl ??
|
|
60
|
+
wsUrl: t.wsUrl ?? _(e),
|
|
61
61
|
headers: t.headers
|
|
62
|
-
})),
|
|
63
|
-
if (
|
|
64
|
-
if (
|
|
65
|
-
|
|
62
|
+
})), m = n(document.getElementById(r)?.textContent, window.location.pathname), h = m !== null && f.children.length > 0, v = document.querySelector("meta[name=\"voltro-interactive\"]")?.getAttribute("content") ?? "full";
|
|
63
|
+
if (v === "none") return;
|
|
64
|
+
if (v === "islands") {
|
|
65
|
+
g();
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
|
-
|
|
69
|
-
let
|
|
68
|
+
h && t(m), l(m?.storeSeeds), c(m?.preloadSeeds);
|
|
69
|
+
let y = /* @__PURE__ */ u(i, { children: /* @__PURE__ */ u(e, {
|
|
70
70
|
App: a,
|
|
71
|
-
apis:
|
|
72
|
-
...
|
|
71
|
+
apis: p,
|
|
72
|
+
...d.Devtools ? { Devtools: d.Devtools } : {}
|
|
73
73
|
}) });
|
|
74
|
-
|
|
74
|
+
h ? s(f, y) : o(f).render(y);
|
|
75
75
|
};
|
|
76
76
|
//#endregion
|
|
77
|
-
export {
|
|
77
|
+
export { f as i, p as n, g as r, v as t };
|
package/dist/mount.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./mount-
|
|
1
|
+
import { t as e } from "./mount-B9DPjlEf.js";
|
|
2
2
|
export { e as mount };
|
|
@@ -69,6 +69,7 @@ var e = /* @__PURE__ */ RegExp("\\u2028", "g"), t = /* @__PURE__ */ RegExp("\\u2
|
|
|
69
69
|
},
|
|
70
70
|
...e.pageClientOnly ? { pageClientOnly: !0 } : {},
|
|
71
71
|
...e.storeSeeds !== void 0 && e.storeSeeds.length > 0 ? { storeSeeds: e.storeSeeds } : {},
|
|
72
|
+
...e.preloadSeeds !== void 0 && e.preloadSeeds.length > 0 ? { preloadSeeds: e.preloadSeeds } : {},
|
|
72
73
|
...n || r ? { deferred: {
|
|
73
74
|
...n ? { page: e.deferredPageIds } : {},
|
|
74
75
|
...r ? { segments: e.deferredSegmentIds } : {}
|
|
@@ -99,7 +100,8 @@ var e = /* @__PURE__ */ RegExp("\\u2028", "g"), t = /* @__PURE__ */ RegExp("\\u2
|
|
|
99
100
|
segments: a.size > 0 ? a : T,
|
|
100
101
|
pageClientOnly: r.pageClientOnly === !0,
|
|
101
102
|
pathname: t,
|
|
102
|
-
storeSeeds: Array.isArray(r.storeSeeds) ? r.storeSeeds : []
|
|
103
|
+
storeSeeds: Array.isArray(r.storeSeeds) ? r.storeSeeds : [],
|
|
104
|
+
preloadSeeds: Array.isArray(r.preloadSeeds) ? r.preloadSeeds : []
|
|
103
105
|
};
|
|
104
106
|
}, O = (e, t) => {
|
|
105
107
|
if (!t) return e;
|