boltdocs 3.0.2 → 3.2.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/README.md +2 -18
- package/dist/{adapters-DEXNIv3x.mjs → adapters-ByYY44Zy.mjs} +1 -1
- package/dist/{adapters-C5AWWGfb.cjs → adapters-DvmtpdSF.cjs} +1 -1
- package/dist/{banner-CfdalYLL.d.ts → banner-BMop1KLF.d.ts} +2 -2
- package/dist/{banner-DNSkgUsO.d.cts → banner-CVD0GugR.d.cts} +2 -2
- package/dist/cache-CO4Dy2uQ.cjs +6 -0
- package/dist/cache-Dk53iOo6.mjs +6 -0
- package/dist/chunk-BFSpntXv.mjs +6 -0
- package/dist/{chunk-Ds5LZdWN.cjs → chunk-D1Md3oWO.cjs} +1 -1
- package/dist/client/index.cjs +433 -272
- package/dist/client/index.d.cts +129 -18
- package/dist/client/index.d.ts +129 -18
- package/dist/client/index.js +337 -178
- package/dist/client/mdx.cjs +1 -1
- package/dist/client/mdx.d.cts +1 -1
- package/dist/client/mdx.d.ts +1 -1
- package/dist/client/mdx.js +1 -1
- package/dist/client/primitives.cjs +7 -7
- package/dist/client/primitives.d.cts +5 -22
- package/dist/client/primitives.d.ts +5 -22
- package/dist/client/primitives.js +4 -4
- package/dist/client/theme/neutral.css +1 -3
- package/dist/client/theme/reset.css +31 -4
- package/dist/config-BpzaPsJj.d.cts +781 -0
- package/dist/config-CCXp3aXO.mjs +7 -0
- package/dist/{config-JGkMJoJQ.cjs → config-CMd4XoFq.cjs} +1 -1
- package/dist/config-DlGoEM9D.cjs +7 -0
- package/dist/config-xtS0ZkMm.d.mts +781 -0
- package/dist/{csp-CBysWlAf.cjs → csp-CRp_3U7a.cjs} +1 -1
- package/dist/csp-oTC2ygvF.mjs +6 -0
- package/dist/{docs-layout-6FQ8__ok.js → docs-layout-BdtZ9z6s.js} +9 -28
- package/dist/{docs-layout-3TpAt6MB.cjs → docs-layout-CFWI15Id.cjs} +69 -88
- package/dist/{doctor-BR1B2Mkz.cjs → doctor-BBtmNJE0.cjs} +1 -1
- package/dist/doctor-Bv16QSrI.cjs +7 -0
- package/dist/doctor-DOAbSaiL.mjs +7 -0
- package/dist/{generator-DtUU3Cfk.cjs → generator-COepVWGi.cjs} +1 -1
- package/dist/{handler-Btd4t_67.mjs → handler-DzQae4eA.mjs} +1 -1
- package/dist/{handler-Dzf4dSnV.cjs → handler-XX7cLTqe.cjs} +1 -1
- package/dist/headers-Ddwek8K7.mjs +6 -0
- package/dist/{headers-BXKxiPUv.cjs → headers-dg4SDrjY.cjs} +1 -1
- package/dist/{image-C9md50h2.js → image-Bz87fCla.js} +2 -2
- package/dist/{image-CR6UlaI5.cjs → image-C4TlpMHn.cjs} +18 -18
- package/dist/link-2PzgTnaP.js +673 -0
- package/dist/{icons-dev-BryEFkJu.cjs → link-D1Gjkb-2.cjs} +8 -353
- package/dist/{mdx-DhyMkc35.js → mdx-BuO6a1f7.js} +199 -40
- package/dist/{mdx-DJBg5DuL.cjs → mdx-CD-tSjRG.cjs} +237 -72
- package/dist/{meta-loader-C9MKjAs0.cjs → meta-loader-Dq1zcFnh.cjs} +1 -1
- package/dist/node/cache.cjs +6 -0
- package/dist/node/cache.d.cts +84 -0
- package/dist/node/cache.d.mts +84 -0
- package/dist/node/cache.mjs +6 -0
- package/dist/node/cli-entry.cjs +6 -6
- package/dist/node/cli-entry.mjs +9 -9
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +27 -638
- package/dist/node/index.d.mts +27 -640
- package/dist/node/index.mjs +1 -1
- package/dist/node/mdx/shiki-adapter.cjs +6 -0
- package/dist/node/mdx/shiki-adapter.d.cts +51 -0
- package/dist/node/mdx/shiki-adapter.d.mts +51 -0
- package/dist/node/mdx/shiki-adapter.mjs +6 -0
- package/dist/node-BXtqM1uH.mjs +6 -0
- package/dist/node-BlVk4EVg.cjs +104 -0
- package/dist/node-DOf4zhWc.mjs +104 -0
- package/dist/node-aD1eisrR.cjs +6 -0
- package/dist/{package-CEDhVAfO.cjs → package-BcISI5-P.cjs} +1 -1
- package/dist/{package-_dCCKVvG.mjs → package-CCYEAYeA.mjs} +1 -1
- package/dist/{pages-external-CX2uyW95.cjs → pages-external-XkYIs-d5.cjs} +1 -1
- package/dist/parser-DCiEWkSk.cjs +8 -0
- package/dist/parser-qk9FIHJ7.mjs +8 -0
- package/dist/plugin-C95kvu6h.mjs +73 -0
- package/dist/plugin-DM3u2bVj.cjs +73 -0
- package/dist/routes-BW6zsk7Z.mjs +6 -0
- package/dist/routes-BgoIB5wb.cjs +6 -0
- package/dist/{routes-BajCwrvX.cjs → routes-CORVxc02.cjs} +1 -1
- package/dist/{search-dialog-D4rplZMv.cjs → search-dialog-B1NERUNx.cjs} +101 -55
- package/dist/{search-dialog-Cx7aGW3U.cjs → search-dialog-BRFno7HD.cjs} +8 -8
- package/dist/{search-dialog-DDopgbKM.js → search-dialog-BmxHiKwt.js} +2 -2
- package/dist/{search-dialog-BNdRV60O.js → search-dialog-D6TvjcuV.js} +1 -1
- package/dist/{search-dialog-DaeSPvEo.js → search-dialog-DFnlx8LO.js} +44 -4
- package/dist/{search-dialog-CW1f6dn6.cjs → search-dialog-DHqwjJuG.cjs} +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.mts +1 -1
- package/dist/server/index.mjs +1 -1
- package/dist/shiki-adapter-CoQ6jyJ4.cjs +6 -0
- package/dist/shiki-adapter-D-aKw7PP.mjs +6 -0
- package/dist/sidebar-COTaMHR-.d.ts +1100 -0
- package/dist/sidebar-CrEdJuHX.d.cts +1100 -0
- package/dist/{types-generator-CYcHkDzZ.cjs → types-generator-BXhv7Ill.cjs} +1 -1
- package/dist/types-generator-bDPvUztF.mjs +26 -0
- package/dist/utils-Crm9oPcV.mjs +7 -0
- package/dist/utils-D6Xtj0FZ.cjs +7 -0
- package/package.json +26 -12
- package/src/shared/types.ts +532 -23
- package/dist/cache-DETwlACe.cjs +0 -6
- package/dist/cache-SF59enb3.mjs +0 -6
- package/dist/config-B5uVv5q4.cjs +0 -7
- package/dist/config-D3_zDkHh.mjs +0 -7
- package/dist/csp-gaZ51xzq.mjs +0 -6
- package/dist/doctor-3MheVMwd.mjs +0 -7
- package/dist/doctor-DQxLM202.cjs +0 -7
- package/dist/headers-CXyf0auY.mjs +0 -6
- package/dist/icons-dev-kJyGWNeg.js +0 -916
- package/dist/node-B9JSyEIU.mjs +0 -105
- package/dist/node-Cedquois.cjs +0 -105
- package/dist/parser-CNIPHx4s.cjs +0 -8
- package/dist/parser-D0QHIQsi.mjs +0 -8
- package/dist/plugin-WYNORxp1.cjs +0 -68
- package/dist/plugin-YWNVRpws.mjs +0 -68
- package/dist/rolldown-runtime-fkIsjY3S.mjs +0 -6
- package/dist/routes-CyrnmVuG.mjs +0 -6
- package/dist/routes-D6Tuu7Fs.cjs +0 -6
- package/dist/shiki-adapter-CGTmrR6S.cjs +0 -6
- package/dist/shiki-adapter-CXEGRnjr.mjs +0 -6
- package/dist/shiki-adapter-Mr8_oT_9.cjs +0 -6
- package/dist/sidebar-7gIifpBX.d.cts +0 -615
- package/dist/sidebar-BAKgJ-Er.d.ts +0 -615
- package/dist/types-generator-DVOnRVKU.mjs +0 -26
- package/dist/utils-B3xYMrpK.mjs +0 -7
- package/dist/utils-Bz1tG9Dg.cjs +0 -7
- /package/dist/{errors-C0Hx15Ag.mjs → errors-0zGHRLue.mjs} +0 -0
- /package/dist/{errors-Dx6JHoKE.cjs → errors-vKw8CkiX.cjs} +0 -0
- /package/dist/{index-CdJv4ocW.d.mts → index-1KsTDq4o.d.mts} +0 -0
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* Copyright (c) 2026 Jesus Alcala
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
6
|
+
const require_link = require('./link-D1Gjkb-2.cjs');
|
|
7
7
|
let react = require("react");
|
|
8
|
-
react =
|
|
8
|
+
react = require_link.__toESM(react);
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
let react_aria_components = require("react-aria-components");
|
|
11
|
-
react_aria_components =
|
|
11
|
+
react_aria_components = require_link.__toESM(react_aria_components);
|
|
12
12
|
|
|
13
13
|
//#region src/client/components/primitives/button.tsx
|
|
14
14
|
function Button({ ...props }) {
|
|
@@ -77,43 +77,82 @@ function ErrorBoundaryFallback({ error, resetErrorBoundary }) {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/client/components/icons-prod.tsx
|
|
82
|
+
function normalize(props) {
|
|
83
|
+
const { size = 20, ...rest } = props;
|
|
84
|
+
return {
|
|
85
|
+
...rest,
|
|
86
|
+
width: size,
|
|
87
|
+
height: size
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
const Github = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
91
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
92
|
+
viewBox: "0 0 24 24",
|
|
93
|
+
fill: "currentColor",
|
|
94
|
+
...normalize(props),
|
|
95
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("title", { children: "GitHub" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" })]
|
|
96
|
+
});
|
|
97
|
+
const Discord = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
98
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
99
|
+
viewBox: "0 0 24 24",
|
|
100
|
+
fill: "currentColor",
|
|
101
|
+
...normalize(props),
|
|
102
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("title", { children: "Discord" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418Z" })]
|
|
103
|
+
});
|
|
104
|
+
const XSocial = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
105
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
106
|
+
viewBox: "0 0 24 24",
|
|
107
|
+
fill: "currentColor",
|
|
108
|
+
...normalize(props),
|
|
109
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("title", { children: "X" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z" })]
|
|
110
|
+
});
|
|
111
|
+
const Bluesky = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
112
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
113
|
+
viewBox: "0 0 24 24",
|
|
114
|
+
fill: "currentColor",
|
|
115
|
+
...normalize(props),
|
|
116
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("title", { children: "Bluesky" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5.202 2.857C7.954 4.922 10.913 9.11 12 11.358c1.087-2.247 4.046-6.436 6.798-8.501C20.783 1.366 24 .213 24 3.883c0 .732-.42 6.156-.667 7.037-.856 3.061-3.978 3.842-6.755 3.37 4.854.826 6.089 3.562 3.422 6.299-5.065 5.196-7.28-1.304-7.847-2.97-.104-.305-.152-.448-.153-.327 0-.121-.05.022-.153.327-.568 1.666-2.782 8.166-7.847 2.97-2.667-2.737-1.432-5.473 3.422-6.3-2.777.473-5.899-.308-6.755-3.369C.42 10.04 0 4.615 0 3.883c0-3.67 3.217-2.517 5.202-1.026" })]
|
|
117
|
+
});
|
|
118
|
+
|
|
80
119
|
//#endregion
|
|
81
120
|
//#region src/client/components/primitives/navbar.tsx
|
|
82
121
|
function Navbar({ children, className, ...props }) {
|
|
83
122
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("header", {
|
|
84
|
-
className:
|
|
123
|
+
className: require_link.cn("boltdocs-navbar sticky top-0 z-50 w-full", className),
|
|
85
124
|
...props,
|
|
86
125
|
children
|
|
87
126
|
});
|
|
88
127
|
}
|
|
89
128
|
function NavbarContent({ children, className }) {
|
|
90
129
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
91
|
-
className:
|
|
130
|
+
className: require_link.cn("mx-auto flex lg:h-navbar max-w-(--breakpoint-3xl) items-center justify-between px-4 md:px-6", className),
|
|
92
131
|
children
|
|
93
132
|
});
|
|
94
133
|
}
|
|
95
134
|
function NavbarLeft({ children, className }) {
|
|
96
135
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
97
|
-
className:
|
|
136
|
+
className: require_link.cn("flex flex-1 items-center justify-start gap-4 min-w-0", className),
|
|
98
137
|
children
|
|
99
138
|
});
|
|
100
139
|
}
|
|
101
140
|
function NavbarRight({ children, className }) {
|
|
102
141
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
103
|
-
className:
|
|
142
|
+
className: require_link.cn("flex flex-1 items-center justify-end gap-2 md:gap-4 min-w-0", className),
|
|
104
143
|
children
|
|
105
144
|
});
|
|
106
145
|
}
|
|
107
146
|
function NavbarCenter({ children, className }) {
|
|
108
147
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
109
|
-
className:
|
|
148
|
+
className: require_link.cn("hidden lg:flex flex-1 justify-center items-center gap-4 px-4 min-w-0 w-full", className),
|
|
110
149
|
children
|
|
111
150
|
});
|
|
112
151
|
}
|
|
113
152
|
function NavbarLogo({ src, alt, width = 24, height = 24, className, href = "/" }) {
|
|
114
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
153
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.Link, {
|
|
115
154
|
href,
|
|
116
|
-
className:
|
|
155
|
+
className: require_link.cn("flex items-center gap-2 shrink-0 outline-none", className),
|
|
117
156
|
children: src ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
118
157
|
src,
|
|
119
158
|
alt,
|
|
@@ -125,35 +164,35 @@ function NavbarLogo({ src, alt, width = 24, height = 24, className, href = "/" }
|
|
|
125
164
|
});
|
|
126
165
|
}
|
|
127
166
|
function NavbarTitle({ children, className, href = "/" }) {
|
|
128
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
167
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.Link, {
|
|
129
168
|
href,
|
|
130
169
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
131
|
-
className:
|
|
170
|
+
className: require_link.cn("text-lg font-bold tracking-tight hidden sm:inline-block", className),
|
|
132
171
|
children
|
|
133
172
|
})
|
|
134
173
|
});
|
|
135
174
|
}
|
|
136
175
|
function NavbarLinks({ children, className }) {
|
|
137
176
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("nav", {
|
|
138
|
-
className:
|
|
177
|
+
className: require_link.cn("hidden md:flex items-center gap-6 text-sm font-medium", className),
|
|
139
178
|
children
|
|
140
179
|
});
|
|
141
180
|
}
|
|
142
181
|
function NavbarLink({ label, href, to, className }) {
|
|
143
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(
|
|
182
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_link.Link, {
|
|
144
183
|
href,
|
|
145
184
|
target: to === "external" ? "_blank" : void 0,
|
|
146
|
-
className:
|
|
185
|
+
className: require_link.cn("transition-all outline-none", className),
|
|
147
186
|
children: [label, to === "external" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
148
187
|
className: "ml-1 inline-block",
|
|
149
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
188
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.ExternalLink, { size: 12 })
|
|
150
189
|
})]
|
|
151
190
|
});
|
|
152
191
|
}
|
|
153
192
|
function NavbarDropdown({ label, className, children }) {
|
|
154
193
|
const [isOpen, setIsOpen] = (0, react.useState)(false);
|
|
155
194
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
156
|
-
className:
|
|
195
|
+
className: require_link.cn("relative", className),
|
|
157
196
|
onMouseEnter: () => {
|
|
158
197
|
setIsOpen(true);
|
|
159
198
|
},
|
|
@@ -161,9 +200,9 @@ function NavbarDropdown({ label, className, children }) {
|
|
|
161
200
|
setIsOpen(false);
|
|
162
201
|
},
|
|
163
202
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
164
|
-
className:
|
|
203
|
+
className: require_link.cn("flex items-center gap-1 outline-none cursor-pointer select-none font-medium text-muted hover:text-body transition-colors"),
|
|
165
204
|
children: [label, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
166
|
-
className:
|
|
205
|
+
className: require_link.cn("w-4 h-4 transition-transform", isOpen && "rotate-180"),
|
|
167
206
|
fill: "none",
|
|
168
207
|
viewBox: "0 0 24 24",
|
|
169
208
|
stroke: "currentColor",
|
|
@@ -184,23 +223,23 @@ function NavbarDropdown({ label, className, children }) {
|
|
|
184
223
|
});
|
|
185
224
|
}
|
|
186
225
|
function NavbarDropdownItem({ href, label, className }) {
|
|
187
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
226
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.Link, {
|
|
188
227
|
href,
|
|
189
|
-
className:
|
|
228
|
+
className: require_link.cn("block px-2 py-1.5 rounded hover:bg-surface", className),
|
|
190
229
|
children: label
|
|
191
230
|
});
|
|
192
231
|
}
|
|
193
232
|
function NavbarSearchTriggerDesktop({ className, onPress, children }) {
|
|
194
233
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
|
|
195
234
|
onPress,
|
|
196
|
-
className:
|
|
235
|
+
className: require_link.cn("hidden lg:flex items-center justify-between gap-2 px-3 py-2 text-sm outline-none cursor-pointer w-full max-w-[720px]", className),
|
|
197
236
|
children
|
|
198
237
|
});
|
|
199
238
|
}
|
|
200
239
|
function NavbarSearchTriggerMobile({ className, onPress, children }) {
|
|
201
240
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
|
|
202
241
|
onPress,
|
|
203
|
-
className:
|
|
242
|
+
className: require_link.cn("lg:hidden flex h-10 w-10 items-center justify-center outline-none cursor-pointer", className),
|
|
204
243
|
"aria-label": "Search",
|
|
205
244
|
children
|
|
206
245
|
});
|
|
@@ -212,7 +251,7 @@ function NavbarSearchTriggerKbd({ className }) {
|
|
|
212
251
|
setMounted(true);
|
|
213
252
|
}, []);
|
|
214
253
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
215
|
-
className:
|
|
254
|
+
className: require_link.cn("hidden sm:flex items-center gap-1 pointer-events-none select-none", className),
|
|
216
255
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("kbd", {
|
|
217
256
|
className: "flex items-center justify-center font-mono text-[10px]",
|
|
218
257
|
children: isMac ? "⌘" : "Ctrl"
|
|
@@ -231,38 +270,38 @@ function NavbarTheme({ className, theme, onThemeChange }) {
|
|
|
231
270
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.ToggleButton, {
|
|
232
271
|
isSelected: theme === "dark",
|
|
233
272
|
onChange: onThemeChange,
|
|
234
|
-
className:
|
|
273
|
+
className: require_link.cn("outline-none cursor-pointer", className),
|
|
235
274
|
"aria-label": "Toggle theme",
|
|
236
|
-
children: theme === "dark" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
275
|
+
children: theme === "dark" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.Sun, { size: 20 }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.Moon, { size: 20 })
|
|
237
276
|
});
|
|
238
277
|
}
|
|
239
278
|
function Icon({ name }) {
|
|
240
|
-
if (name === "github") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
241
|
-
if (name === "discord") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
242
|
-
if (name === "x") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
243
|
-
if (name === "bluesky") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
279
|
+
if (name === "github") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Github, {});
|
|
280
|
+
if (name === "discord") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Discord, {});
|
|
281
|
+
if (name === "x") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(XSocial, {});
|
|
282
|
+
if (name === "bluesky") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Bluesky, {});
|
|
244
283
|
}
|
|
245
284
|
function NavbarSocials({ icon, link, className }) {
|
|
246
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
285
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.Link, {
|
|
247
286
|
href: link,
|
|
248
287
|
target: "_blank",
|
|
249
288
|
rel: "noopener noreferrer",
|
|
250
|
-
className:
|
|
289
|
+
className: require_link.cn("outline-none", className),
|
|
251
290
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, { name: icon })
|
|
252
291
|
});
|
|
253
292
|
}
|
|
254
293
|
function NavbarSplit({ className }) {
|
|
255
294
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Separator, {
|
|
256
295
|
orientation: "vertical",
|
|
257
|
-
className:
|
|
296
|
+
className: require_link.cn("h-full w-px", className)
|
|
258
297
|
});
|
|
259
298
|
}
|
|
260
299
|
function NavbarMore({ onPress, className }) {
|
|
261
300
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
|
|
262
301
|
onPress,
|
|
263
|
-
className:
|
|
302
|
+
className: require_link.cn("md:hidden flex items-center justify-center outline-none cursor-pointer", className),
|
|
264
303
|
"aria-label": "More navigation",
|
|
265
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
304
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.MoreVertical, { size: 20 })
|
|
266
305
|
});
|
|
267
306
|
}
|
|
268
307
|
function NavbarMobileMenu({ isOpen, onClose, children, className }) {
|
|
@@ -270,7 +309,7 @@ function NavbarMobileMenu({ isOpen, onClose, children, className }) {
|
|
|
270
309
|
isOpen,
|
|
271
310
|
onOpenChange: (open) => !open && onClose(),
|
|
272
311
|
isDismissable: true,
|
|
273
|
-
className:
|
|
312
|
+
className: require_link.cn("fixed inset-0 z-60 md:hidden transition-all duration-100", className),
|
|
274
313
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Modal, {
|
|
275
314
|
className: "fixed inset-0 outline-none",
|
|
276
315
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.Dialog, {
|
|
@@ -281,7 +320,7 @@ function NavbarMobileMenu({ isOpen, onClose, children, className }) {
|
|
|
281
320
|
onPress: onClose,
|
|
282
321
|
className: "flex items-center justify-center outline-none cursor-pointer text-muted hover:text-body transition-colors",
|
|
283
322
|
"aria-label": "Close menu",
|
|
284
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
323
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.X, { size: 24 })
|
|
285
324
|
})]
|
|
286
325
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("nav", {
|
|
287
326
|
className: "flex-1 overflow-y-auto flex flex-col gap-4",
|
|
@@ -292,11 +331,11 @@ function NavbarMobileMenu({ isOpen, onClose, children, className }) {
|
|
|
292
331
|
});
|
|
293
332
|
}
|
|
294
333
|
function NavbarMobileLink({ label, href, to, onPress, className }) {
|
|
295
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
334
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.Link, {
|
|
296
335
|
href,
|
|
297
336
|
target: to === "external" ? "_blank" : void 0,
|
|
298
337
|
onClick: onPress,
|
|
299
|
-
className:
|
|
338
|
+
className: require_link.cn("group flex items-center outline-none", className),
|
|
300
339
|
children: label
|
|
301
340
|
});
|
|
302
341
|
}
|
|
@@ -326,7 +365,7 @@ Navbar.MobileLink = NavbarMobileLink;
|
|
|
326
365
|
*/
|
|
327
366
|
function SearchDialog({ className, ...props }) {
|
|
328
367
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.ModalOverlay, {
|
|
329
|
-
className:
|
|
368
|
+
className: require_link.cn("fixed inset-0 z-100", className),
|
|
330
369
|
...props
|
|
331
370
|
});
|
|
332
371
|
}
|
|
@@ -335,17 +374,18 @@ function SearchDialog({ className, ...props }) {
|
|
|
335
374
|
*/
|
|
336
375
|
function SearchDialogContent({ className, ...props }) {
|
|
337
376
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Modal, {
|
|
338
|
-
className:
|
|
377
|
+
className: require_link.cn(className),
|
|
339
378
|
...props
|
|
340
379
|
});
|
|
341
380
|
}
|
|
342
381
|
/**
|
|
343
382
|
* Pure, unstyled SearchDialog Dialog (maps to RAC.Dialog)
|
|
344
383
|
*/
|
|
345
|
-
function SearchDialogDialog({ className, ...props }) {
|
|
384
|
+
function SearchDialogDialog({ children, className, ...props }) {
|
|
346
385
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Dialog, {
|
|
347
|
-
className:
|
|
348
|
-
...props
|
|
386
|
+
className: require_link.cn("flex flex-col focus:outline-none", className),
|
|
387
|
+
...props,
|
|
388
|
+
children
|
|
349
389
|
});
|
|
350
390
|
}
|
|
351
391
|
/**
|
|
@@ -353,7 +393,7 @@ function SearchDialogDialog({ className, ...props }) {
|
|
|
353
393
|
*/
|
|
354
394
|
function SearchDialogField({ className, ...props }) {
|
|
355
395
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.SearchField, {
|
|
356
|
-
className:
|
|
396
|
+
className: require_link.cn("flex items-center", className),
|
|
357
397
|
...props
|
|
358
398
|
});
|
|
359
399
|
}
|
|
@@ -362,7 +402,7 @@ function SearchDialogField({ className, ...props }) {
|
|
|
362
402
|
*/
|
|
363
403
|
function SearchDialogSearchInput({ className, ...props }) {
|
|
364
404
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Input, {
|
|
365
|
-
className:
|
|
405
|
+
className: require_link.cn("w-full bg-transparent outline-none border-none", className),
|
|
366
406
|
...props
|
|
367
407
|
});
|
|
368
408
|
}
|
|
@@ -372,7 +412,7 @@ function SearchDialogSearchInput({ className, ...props }) {
|
|
|
372
412
|
function SearchDialogClearButton({ className, ...props }) {
|
|
373
413
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
|
|
374
414
|
slot: "clear",
|
|
375
|
-
className:
|
|
415
|
+
className: require_link.cn(className),
|
|
376
416
|
...props
|
|
377
417
|
});
|
|
378
418
|
}
|
|
@@ -382,7 +422,7 @@ function SearchDialogClearButton({ className, ...props }) {
|
|
|
382
422
|
function SearchDialogAutocomplete({ children, className, onSelectionChange, ...props }) {
|
|
383
423
|
const Autocomplete = react_aria_components.Autocomplete;
|
|
384
424
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
385
|
-
className:
|
|
425
|
+
className: require_link.cn("flex-1 min-h-0", className),
|
|
386
426
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Autocomplete, {
|
|
387
427
|
...props,
|
|
388
428
|
onSelectionChange,
|
|
@@ -397,7 +437,7 @@ function SearchDialogAutocomplete({ children, className, onSelectionChange, ...p
|
|
|
397
437
|
function SearchDialogList({ children, className, ...props }) {
|
|
398
438
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.ListBox, {
|
|
399
439
|
...props,
|
|
400
|
-
className:
|
|
440
|
+
className: require_link.cn("flex-1 overflow-y-auto outline-none min-h-0", className),
|
|
401
441
|
children
|
|
402
442
|
});
|
|
403
443
|
}
|
|
@@ -407,31 +447,31 @@ function SearchDialogList({ children, className, ...props }) {
|
|
|
407
447
|
function SearchDialogItemRoot({ children, className, ...props }) {
|
|
408
448
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.ListBoxItem, {
|
|
409
449
|
...props,
|
|
410
|
-
className:
|
|
450
|
+
className: require_link.cn("group flex items-center outline-none cursor-pointer", className),
|
|
411
451
|
children: (itemProps) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [children, (itemProps.isFocused || itemProps.isSelected) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
412
452
|
className: "ml-auto opacity-50 flex items-center gap-1",
|
|
413
453
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
414
454
|
className: "text-[10px]",
|
|
415
455
|
children: "Select"
|
|
416
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
456
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.CornerDownLeft, { size: 10 })]
|
|
417
457
|
})] })
|
|
418
458
|
});
|
|
419
459
|
}
|
|
420
460
|
function SearchDialogItemIcon({ isHeading, className }) {
|
|
421
461
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
422
|
-
className:
|
|
423
|
-
children: isHeading ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
462
|
+
className: require_link.cn("shrink-0", className),
|
|
463
|
+
children: isHeading ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.Hash, { size: 18 }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.FileText, { size: 18 })
|
|
424
464
|
});
|
|
425
465
|
}
|
|
426
466
|
function SearchDialogItemTitle({ children, className }) {
|
|
427
467
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
428
|
-
className:
|
|
468
|
+
className: require_link.cn("block truncate flex-1", className),
|
|
429
469
|
children
|
|
430
470
|
});
|
|
431
471
|
}
|
|
432
472
|
function SearchDialogItemBio({ children, className }) {
|
|
433
473
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
434
|
-
className:
|
|
474
|
+
className: require_link.cn("ml-2 truncate hidden sm:inline", className),
|
|
435
475
|
children
|
|
436
476
|
});
|
|
437
477
|
}
|
|
@@ -470,6 +510,12 @@ Object.defineProperty(exports, 'ErrorBoundaryFallback', {
|
|
|
470
510
|
return ErrorBoundaryFallback;
|
|
471
511
|
}
|
|
472
512
|
});
|
|
513
|
+
Object.defineProperty(exports, 'Github', {
|
|
514
|
+
enumerable: true,
|
|
515
|
+
get: function () {
|
|
516
|
+
return Github;
|
|
517
|
+
}
|
|
518
|
+
});
|
|
473
519
|
Object.defineProperty(exports, 'Navbar', {
|
|
474
520
|
enumerable: true,
|
|
475
521
|
get: function () {
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* Copyright (c) 2026 Jesus Alcala
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
7
|
-
const require_search_dialog = require('./search-dialog-
|
|
6
|
+
const require_link = require('./link-D1Gjkb-2.cjs');
|
|
7
|
+
const require_search_dialog = require('./search-dialog-B1NERUNx.cjs');
|
|
8
8
|
let react = require("react");
|
|
9
9
|
let react_router_dom = require("react-router-dom");
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
11
|
let flexsearch = require("flexsearch");
|
|
12
12
|
let virtual_boltdocs_search = require("virtual:boltdocs-search");
|
|
13
|
-
virtual_boltdocs_search =
|
|
13
|
+
virtual_boltdocs_search = require_link.__toESM(virtual_boltdocs_search);
|
|
14
14
|
|
|
15
15
|
//#region src/client/components/internal/error-boundary.tsx
|
|
16
16
|
function InternalFallback({ error, resetErrorBoundary }) {
|
|
@@ -45,8 +45,8 @@ function InternalErrorBoundary({ children, fallback }) {
|
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/client/hooks/use-search.ts
|
|
47
47
|
function useSearch(routes) {
|
|
48
|
-
const { currentLocale, currentVersion } =
|
|
49
|
-
const config =
|
|
48
|
+
const { currentLocale, currentVersion } = require_link.useRoutes();
|
|
49
|
+
const config = require_link.useConfig();
|
|
50
50
|
const algoliaConfig = config.integrations?.search?.algolia;
|
|
51
51
|
const [isOpen, setIsOpen] = (0, react.useState)(false);
|
|
52
52
|
const [query, setQuery] = (0, react.useState)("");
|
|
@@ -239,7 +239,7 @@ function SearchDialog({ routes }) {
|
|
|
239
239
|
className: "rounded-xl border border-subtle bg-surface text-muted transition-all duration-200 hover:border-primary-500/50 hover:text-body hover:bg-soft/50 hover:shadow-sm active:scale-[0.98] focus-visible:ring-2 focus-visible:ring-primary-500/30",
|
|
240
240
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
241
241
|
className: "flex items-center gap-2",
|
|
242
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
242
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.Search, { size: 16 }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
243
243
|
className: "hidden sm:inline-block",
|
|
244
244
|
children: "Search docs..."
|
|
245
245
|
})]
|
|
@@ -248,7 +248,7 @@ function SearchDialog({ routes }) {
|
|
|
248
248
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_search_dialog.Navbar.SearchTrigger.Mobile, {
|
|
249
249
|
onPress: () => setIsOpen(true),
|
|
250
250
|
className: "rounded-xl text-muted transition-all duration-200 hover:text-body active:scale-95 focus-visible:ring-2 focus-visible:ring-primary-500/30",
|
|
251
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
251
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.Search, { size: 20 })
|
|
252
252
|
}),
|
|
253
253
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(InternalErrorBoundary, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_search_dialog.SearchDialog.Overlay, {
|
|
254
254
|
isOpen,
|
|
@@ -273,7 +273,7 @@ function SearchDialog({ routes }) {
|
|
|
273
273
|
}), query && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_search_dialog.SearchDialog.Input.Button, {
|
|
274
274
|
onPress: () => setQuery(""),
|
|
275
275
|
className: "text-muted hover:text-body hover:bg-surface rounded-md p-1 cursor-pointer select-none transition-colors",
|
|
276
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
276
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.X, { size: 16 })
|
|
277
277
|
})]
|
|
278
278
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_search_dialog.SearchDialog.List, {
|
|
279
279
|
items: list,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Copyright (c) 2026 Jesus Alcala
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { B as useConfig, L as X, P as Search, a as useRoutes } from "./link-2PzgTnaP.js";
|
|
7
|
+
import { i as ErrorBoundary, n as Navbar, t as SearchDialog$1 } from "./search-dialog-DFnlx8LO.js";
|
|
8
8
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
9
9
|
import { useNavigate } from "react-router-dom";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2026 Jesus Alcala
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { C as Hash, F as Sun, L as X, M as MoreVertical, S as FileText, _ as CornerDownLeft, j as Moon, r as cn, t as Link, v as ExternalLink } from "./link-2PzgTnaP.js";
|
|
7
7
|
import { Component, useEffect, useState } from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import * as RAC from "react-aria-components";
|
|
@@ -76,6 +76,45 @@ function ErrorBoundaryFallback({ error, resetErrorBoundary }) {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/client/components/icons-prod.tsx
|
|
81
|
+
function normalize(props) {
|
|
82
|
+
const { size = 20, ...rest } = props;
|
|
83
|
+
return {
|
|
84
|
+
...rest,
|
|
85
|
+
width: size,
|
|
86
|
+
height: size
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
const Github = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
90
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
91
|
+
viewBox: "0 0 24 24",
|
|
92
|
+
fill: "currentColor",
|
|
93
|
+
...normalize(props),
|
|
94
|
+
children: [/* @__PURE__ */ jsx("title", { children: "GitHub" }), /* @__PURE__ */ jsx("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" })]
|
|
95
|
+
});
|
|
96
|
+
const Discord = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
97
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
98
|
+
viewBox: "0 0 24 24",
|
|
99
|
+
fill: "currentColor",
|
|
100
|
+
...normalize(props),
|
|
101
|
+
children: [/* @__PURE__ */ jsx("title", { children: "Discord" }), /* @__PURE__ */ jsx("path", { d: "M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418Z" })]
|
|
102
|
+
});
|
|
103
|
+
const XSocial = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
104
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
105
|
+
viewBox: "0 0 24 24",
|
|
106
|
+
fill: "currentColor",
|
|
107
|
+
...normalize(props),
|
|
108
|
+
children: [/* @__PURE__ */ jsx("title", { children: "X" }), /* @__PURE__ */ jsx("path", { d: "M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z" })]
|
|
109
|
+
});
|
|
110
|
+
const Bluesky = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
111
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
112
|
+
viewBox: "0 0 24 24",
|
|
113
|
+
fill: "currentColor",
|
|
114
|
+
...normalize(props),
|
|
115
|
+
children: [/* @__PURE__ */ jsx("title", { children: "Bluesky" }), /* @__PURE__ */ jsx("path", { d: "M5.202 2.857C7.954 4.922 10.913 9.11 12 11.358c1.087-2.247 4.046-6.436 6.798-8.501C20.783 1.366 24 .213 24 3.883c0 .732-.42 6.156-.667 7.037-.856 3.061-3.978 3.842-6.755 3.37 4.854.826 6.089 3.562 3.422 6.299-5.065 5.196-7.28-1.304-7.847-2.97-.104-.305-.152-.448-.153-.327 0-.121-.05.022-.153.327-.568 1.666-2.782 8.166-7.847 2.97-2.667-2.737-1.432-5.473 3.422-6.3-2.777.473-5.899-.308-6.755-3.369C.42 10.04 0 4.615 0 3.883c0-3.67 3.217-2.517 5.202-1.026" })]
|
|
116
|
+
});
|
|
117
|
+
|
|
79
118
|
//#endregion
|
|
80
119
|
//#region src/client/components/primitives/navbar.tsx
|
|
81
120
|
function Navbar({ children, className, ...props }) {
|
|
@@ -341,10 +380,11 @@ function SearchDialogContent({ className, ...props }) {
|
|
|
341
380
|
/**
|
|
342
381
|
* Pure, unstyled SearchDialog Dialog (maps to RAC.Dialog)
|
|
343
382
|
*/
|
|
344
|
-
function SearchDialogDialog({ className, ...props }) {
|
|
383
|
+
function SearchDialogDialog({ children, className, ...props }) {
|
|
345
384
|
return /* @__PURE__ */ jsx(RAC.Dialog, {
|
|
346
385
|
className: cn("flex flex-col focus:outline-none", className),
|
|
347
|
-
...props
|
|
386
|
+
...props,
|
|
387
|
+
children
|
|
348
388
|
});
|
|
349
389
|
}
|
|
350
390
|
/**
|
|
@@ -451,4 +491,4 @@ SearchDialog.Item = Object.assign(SearchDialogItemRoot, {
|
|
|
451
491
|
});
|
|
452
492
|
|
|
453
493
|
//#endregion
|
|
454
|
-
export {
|
|
494
|
+
export { ErrorBoundaryFallback as a, ErrorBoundary as i, Navbar as n, Button$1 as o, Github as r, SearchDialog as t };
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Copyright (c) 2026 Jesus Alcala
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
const require_search_dialog = require('./search-dialog-
|
|
6
|
+
const require_search_dialog = require('./search-dialog-BRFno7HD.cjs');
|
|
7
7
|
|
|
8
8
|
exports.SearchDialog = require_search_dialog.SearchDialog;
|
package/dist/server/index.cjs
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Copyright (c) 2026 Jesus Alcala
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../adapters-
|
|
6
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../adapters-DvmtpdSF.cjs`);exports.handleAwsFeedback=e.t,exports.handleNetlifyFeedback=e.r,exports.handleVercelFeedback=e.i,exports.handleWebFeedback=e.n;
|
package/dist/server/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
import { i as handleVercelFeedback, n as handleWebFeedback, r as handleNetlifyFeedback, t as handleAwsFeedback } from "../index-
|
|
2
|
+
import { i as handleVercelFeedback, n as handleWebFeedback, r as handleNetlifyFeedback, t as handleAwsFeedback } from "../index-1KsTDq4o.mjs";
|
|
3
3
|
export { handleAwsFeedback, handleNetlifyFeedback, handleVercelFeedback, handleWebFeedback };
|
package/dist/server/index.mjs
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Copyright (c) 2026 Jesus Alcala
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import{i as e,n as t,r as n,t as r}from"../adapters-
|
|
6
|
+
import{i as e,n as t,r as n,t as r}from"../adapters-ByYY44Zy.mjs";export{r as handleAwsFeedback,n as handleNetlifyFeedback,e as handleVercelFeedback,t as handleWebFeedback};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Boltdocs - https://boltdocs.vercel.app
|
|
3
|
+
* Copyright (c) 2026 Jesus Alcala
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
const e=require(`./chunk-D1Md3oWO.cjs`),t=require(`./utils-D6Xtj0FZ.cjs`);let n=require(`@bdocs/dui`),r=require(`@shikijs/engine-oniguruma`),i=require(`shiki/core`),a=require(`@shikijs/themes/github-light`);a=e.r(a);let o=require(`@shikijs/themes/github-dark`);o=e.r(o);let s=require(`@shikijs/themes/tokyo-night`);s=e.r(s);let c=require(`@shikijs/themes/dracula`);c=e.r(c);let l=require(`@shikijs/themes/nord`);l=e.r(l);let u=require(`@shikijs/themes/one-dark-pro`);u=e.r(u);let d=require(`@shikijs/themes/one-light`);d=e.r(d);let f=require(`@shikijs/langs/html`);f=e.r(f);let p=require(`@shikijs/langs/js`);p=e.r(p);let m=require(`@shikijs/langs/ts`);m=e.r(m);let h=require(`@shikijs/langs/tsx`);h=e.r(h);let g=require(`@shikijs/langs/css`);g=e.r(g);let _=require(`@shikijs/langs/json`);_=e.r(_);let v=require(`@shikijs/langs/jsonc`);v=e.r(v);let y=require(`@shikijs/langs/bash`);y=e.r(y);let b=require(`@shikijs/langs/ini`);b=e.r(b);let x=require(`@shikijs/langs/markdown`);x=e.r(x);let S=require(`@shikijs/langs/mdx`);S=e.r(S);let C=require(`@shikijs/langs/yaml`);C=e.r(C);let w=require(`@shikijs/langs/rust`);w=e.r(w);let T=require(`@shikijs/langs/toml`);T=e.r(T);let E=require(`@shikijs/langs/csv`);E=e.r(E);const D=[a.default.default||a.default,o.default.default||o.default,s.default.default||s.default,c.default.default||c.default,l.default.default||l.default,u.default.default||u.default,d.default.default||d.default],O=[f.default,p.default,m.default,h.default,g.default,_.default,v.default,y.default,b.default,x.default,S.default,C.default,w.default,T.default,E.default];let k=null;async function A(){return(0,r.createOnigurumaEngine)(await import(`shiki/wasm`))}const j=async e=>k||(k=(async()=>(0,i.createHighlighterCore)({themes:D,langs:O,engine:await A()}))(),k),M={ROOT:`root`,ELEMENT:`element`,TEXT:`text`,COMMENT:`comment`,CODE:`code`,INLINE_CODE:`inlineCode`,HEADING:`heading`,PARAGRAPH:`paragraph`,LINK:`link`,IMAGE:`image`,LIST:`list`,LIST_ITEM:`listItem`,JSX_FLOW_ELEMENT:`mdxJsxFlowElement`,JSX_TEXT_ELEMENT:`mdxJsxTextElement`,JSX_ATTRIBUTE:`mdxJsxAttribute`,FLOW_EXPRESSION:`mdxFlowExpression`,TEXT_EXPRESSION:`mdxTextExpression`,ESM:`mdxjsEsm`},N={TITLE:`data-title`,LANG:`data-lang`,HIGHLIGHTED:`data-highlighted`,HIGHLIGHTED_HTML:`data-highlighted-html`},P={LINE_NUMBERS:`shiki-line-numbers`,WORD_WRAP:`shiki-word-wrap`,FALLBACK:`shiki-fallback`},F={LIGHT:`github-light`,DARK:`github-dark`},I={LANG:`plaintext`,MDX_DEFAULT_LANG:`text`},L=(e={})=>{let{activateByDefault:t=!1}=e;return{name:`boltdocs:line-numbers`,pre(e){let n=this.options.meta?.lineNumbers===!0;(t||n)&&this.addClassToHast(e,P.LINE_NUMBERS)}}},R=(e={})=>{let{activateByDefault:t=!1}=e;return{name:`boltdocs:word-wrap`,pre(e){let n=this.options.meta?.wordWrap===!0;(t||n)&&this.addClassToHast(e,P.WORD_WRAP)}}},z=()=>({name:`AddTitleProperty`,pre(e){let t=this.options.meta?.title;t&&(e.properties[N.TITLE]=t)}}),B=()=>({name:`AddLanguageProperty`,pre(e){e.properties[N.LANG]=this.options.lang||I.LANG}});function V(e){let t={};if(!e)return t;/lineNumbers|showLineNumbers/.test(e)&&(t.lineNumbers=!0),/wordWrap|word-wrap/.test(e)&&(t.wordWrap=!0);let n=e.match(/title=(["'])(.*?)\1/);return n&&(t.title=n[2]),t}var H=class{config;constructor(e){this.config=e}getTheme(){return this.config?.theme?.codeTheme||{light:F.LIGHT,dark:F.DARK}}async getHighlighter(){return await j(this.getTheme())}getOptions(e,t){let n=this.getTheme(),r={},i=``;typeof t==`string`?(i=t,r=V(t)):t&&(r=t,i=t.__raw||``);let a={lang:e||I.LANG,meta:{__raw:i,...r},transformers:[L(),R(),z(),B()]};return typeof n==`object`?a.themes={light:n.light,dark:n.dark}:a.theme=n,a}async render(e,r,i){try{let t=await this.getHighlighter(),n=this.getOptions(r,i);return t.codeToHtml(e,n)}catch(r){return(0,n.error)(`[ShikiAdapter] Failed to render code:`,r),`<pre class="${P.FALLBACK}"><code>${t.n(e)}</code></pre>`}}};let U=null,W;function G(e){let t=JSON.stringify(e?.theme?.codeTheme||null);return(U===null||W!==t)&&(U=new H(e),W=t),U}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return H}});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Boltdocs - https://boltdocs.vercel.app
|
|
3
|
+
* Copyright (c) 2026 Jesus Alcala
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import{n as e}from"./utils-Crm9oPcV.mjs";import{error as t}from"@bdocs/dui";import{createOnigurumaEngine as n}from"@shikijs/engine-oniguruma";import{createHighlighterCore as r}from"shiki/core";import i from"@shikijs/themes/github-light";import a from"@shikijs/themes/github-dark";import o from"@shikijs/themes/tokyo-night";import s from"@shikijs/themes/dracula";import c from"@shikijs/themes/nord";import l from"@shikijs/themes/one-dark-pro";import u from"@shikijs/themes/one-light";import d from"@shikijs/langs/html";import f from"@shikijs/langs/js";import p from"@shikijs/langs/ts";import m from"@shikijs/langs/tsx";import h from"@shikijs/langs/css";import g from"@shikijs/langs/json";import _ from"@shikijs/langs/jsonc";import v from"@shikijs/langs/bash";import y from"@shikijs/langs/ini";import b from"@shikijs/langs/markdown";import x from"@shikijs/langs/mdx";import S from"@shikijs/langs/yaml";import C from"@shikijs/langs/rust";import w from"@shikijs/langs/toml";import T from"@shikijs/langs/csv";const E=[i.default||i,a.default||a,o.default||o,s.default||s,c.default||c,l.default||l,u.default||u],D=[d,f,p,m,h,g,_,v,y,b,x,S,C,w,T];let O=null;async function k(){return n(await import(`shiki/wasm`))}const A=async e=>O||(O=(async()=>r({themes:E,langs:D,engine:await k()}))(),O),j={ROOT:`root`,ELEMENT:`element`,TEXT:`text`,COMMENT:`comment`,CODE:`code`,INLINE_CODE:`inlineCode`,HEADING:`heading`,PARAGRAPH:`paragraph`,LINK:`link`,IMAGE:`image`,LIST:`list`,LIST_ITEM:`listItem`,JSX_FLOW_ELEMENT:`mdxJsxFlowElement`,JSX_TEXT_ELEMENT:`mdxJsxTextElement`,JSX_ATTRIBUTE:`mdxJsxAttribute`,FLOW_EXPRESSION:`mdxFlowExpression`,TEXT_EXPRESSION:`mdxTextExpression`,ESM:`mdxjsEsm`},M={TITLE:`data-title`,LANG:`data-lang`,HIGHLIGHTED:`data-highlighted`,HIGHLIGHTED_HTML:`data-highlighted-html`},N={LINE_NUMBERS:`shiki-line-numbers`,WORD_WRAP:`shiki-word-wrap`,FALLBACK:`shiki-fallback`},P={LIGHT:`github-light`,DARK:`github-dark`},F={LANG:`plaintext`,MDX_DEFAULT_LANG:`text`},I=(e={})=>{let{activateByDefault:t=!1}=e;return{name:`boltdocs:line-numbers`,pre(e){let n=this.options.meta?.lineNumbers===!0;(t||n)&&this.addClassToHast(e,N.LINE_NUMBERS)}}},L=(e={})=>{let{activateByDefault:t=!1}=e;return{name:`boltdocs:word-wrap`,pre(e){let n=this.options.meta?.wordWrap===!0;(t||n)&&this.addClassToHast(e,N.WORD_WRAP)}}},R=()=>({name:`AddTitleProperty`,pre(e){let t=this.options.meta?.title;t&&(e.properties[M.TITLE]=t)}}),z=()=>({name:`AddLanguageProperty`,pre(e){e.properties[M.LANG]=this.options.lang||F.LANG}});function B(e){let t={};if(!e)return t;/lineNumbers|showLineNumbers/.test(e)&&(t.lineNumbers=!0),/wordWrap|word-wrap/.test(e)&&(t.wordWrap=!0);let n=e.match(/title=(["'])(.*?)\1/);return n&&(t.title=n[2]),t}var V=class{config;constructor(e){this.config=e}getTheme(){return this.config?.theme?.codeTheme||{light:P.LIGHT,dark:P.DARK}}async getHighlighter(){return await A(this.getTheme())}getOptions(e,t){let n=this.getTheme(),r={},i=``;typeof t==`string`?(i=t,r=B(t)):t&&(r=t,i=t.__raw||``);let a={lang:e||F.LANG,meta:{__raw:i,...r},transformers:[I(),L(),R(),z()]};return typeof n==`object`?a.themes={light:n.light,dark:n.dark}:a.theme=n,a}async render(n,r,i){try{let e=await this.getHighlighter(),t=this.getOptions(r,i);return e.codeToHtml(n,t)}catch(r){return t(`[ShikiAdapter] Failed to render code:`,r),`<pre class="${N.FALLBACK}"><code>${e(n)}</code></pre>`}}};let H=null,U;function W(e){let t=JSON.stringify(e?.theme?.codeTheme||null);return(H===null||U!==t)&&(H=new V(e),U=t),H}export{F as a,M as i,W as n,j as o,B as r,N as s,V as t};
|