@unterberg/nivel 0.1.1 → 0.1.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.
@@ -11,20 +11,21 @@ import {
11
11
  getResolvedPageByPathname,
12
12
  getResolvedSectionById,
13
13
  isSamePagePathname,
14
+ nivelAssetUrl,
14
15
  resolveDocsHref,
15
16
  withSiteBaseUrl
16
- } from "./chunk-CL74JUQ4.js";
17
+ } from "./chunk-NDJ5LYLK.js";
17
18
 
18
19
  // src/runtime/client/AppLayout.tsx
19
20
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
20
21
  import { useState as useState5 } from "react";
21
- import { usePageContext as usePageContext3 } from "vike-react/usePageContext";
22
+ import { usePageContext as usePageContext5 } from "vike-react/usePageContext";
22
23
 
23
24
  // src/runtime/client/components/Navbar/index.tsx
24
25
  import cm2, { cmMerge as cmMerge4 } from "@classmatejs/react";
25
- import { ChevronDown } from "lucide-react";
26
+ import { ChevronDown, TextSearch } from "lucide-react";
26
27
  import { useCallback, useEffect as useEffect4, useMemo, useRef as useRef2, useState as useState4 } from "react";
27
- import { usePageContext as usePageContext2 } from "vike-react/usePageContext";
28
+ import { usePageContext as usePageContext4 } from "vike-react/usePageContext";
28
29
 
29
30
  // src/runtime/client/docsGlobalContext.ts
30
31
  import { usePageContext } from "vike-react/usePageContext";
@@ -39,14 +40,109 @@ var useDocsGlobalContext = () => {
39
40
  return getDocsGlobalContext(usePageContext());
40
41
  };
41
42
 
43
+ // src/runtime/client/store/runtime-store.tsx
44
+ import { createContext, useContext } from "react";
45
+ import { useStore } from "zustand";
46
+ import { createStore } from "zustand/vanilla";
47
+ import { jsx } from "react/jsx-runtime";
48
+ var defaultDocsSearchState = {
49
+ isOpen: false,
50
+ query: ""
51
+ };
52
+ var createDocsRuntimeStore = () => {
53
+ return createStore()((set) => {
54
+ const searchActions = {
55
+ open: () => set((state) => {
56
+ if (state.searchState.isOpen) {
57
+ return state;
58
+ }
59
+ return {
60
+ searchState: {
61
+ ...state.searchState,
62
+ isOpen: true
63
+ }
64
+ };
65
+ }),
66
+ close: () => set((state) => {
67
+ if (!state.searchState.isOpen) {
68
+ return state;
69
+ }
70
+ return {
71
+ searchState: {
72
+ ...state.searchState,
73
+ isOpen: false
74
+ }
75
+ };
76
+ }),
77
+ toggle: () => set((state) => ({
78
+ searchState: {
79
+ ...state.searchState,
80
+ isOpen: !state.searchState.isOpen
81
+ }
82
+ })),
83
+ setQuery: (query) => set((state) => {
84
+ if (state.searchState.query === query) {
85
+ return state;
86
+ }
87
+ return {
88
+ searchState: {
89
+ ...state.searchState,
90
+ query
91
+ }
92
+ };
93
+ }),
94
+ clearQuery: () => set((state) => {
95
+ if (state.searchState.query === "") {
96
+ return state;
97
+ }
98
+ return {
99
+ searchState: {
100
+ ...state.searchState,
101
+ query: ""
102
+ }
103
+ };
104
+ })
105
+ };
106
+ return {
107
+ searchActions,
108
+ searchState: defaultDocsSearchState
109
+ };
110
+ });
111
+ };
112
+ var DocsRuntimeStoreContext = createContext(null);
113
+ var DocsRuntimeStoreProvider = ({ children, store }) => {
114
+ return /* @__PURE__ */ jsx(DocsRuntimeStoreContext.Provider, { value: store, children });
115
+ };
116
+ var useDocsRuntimeStoreApi = () => {
117
+ const store = useContext(DocsRuntimeStoreContext);
118
+ if (store === null) {
119
+ throw new Error("Missing docs runtime store provider.");
120
+ }
121
+ return store;
122
+ };
123
+ var useDocsRuntimeStore = (selector) => {
124
+ return useStore(useDocsRuntimeStoreApi(), selector);
125
+ };
126
+ var useDocsSearchStore = (selector) => {
127
+ return useDocsRuntimeStore(
128
+ (state) => selector({
129
+ ...state.searchState,
130
+ ...state.searchActions
131
+ })
132
+ );
133
+ };
134
+ var useDocsSearchActions = () => {
135
+ return useDocsRuntimeStore((state) => state.searchActions);
136
+ };
137
+
42
138
  // src/runtime/client/components/Brand.tsx
43
139
  import { cmMerge } from "@classmatejs/react";
44
- import { jsx, jsxs } from "react/jsx-runtime";
140
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
45
141
  var Brand = ({ brand, noText = false }) => {
46
142
  const defaultLogo = brand.logoLight ?? brand.logoDark;
47
143
  return /* @__PURE__ */ jsxs("a", { href: brand.href, className: "flex items-center gap-3 text-base-content no-underline", children: [
48
144
  defaultLogo && /* @__PURE__ */ jsxs("span", { className: "relative block h-7 w-7 shrink-0", children: [
49
- brand.logoLight && /* @__PURE__ */ jsx(
145
+ brand.logoLight && /* @__PURE__ */ jsx2(
50
146
  "img",
51
147
  {
52
148
  src: brand.logoLight,
@@ -54,7 +150,7 @@ var Brand = ({ brand, noText = false }) => {
54
150
  className: cmMerge("h-7 w-7 object-contain", brand.logoDark ? "block dark:hidden" : "block")
55
151
  }
56
152
  ),
57
- brand.logoDark && /* @__PURE__ */ jsx(
153
+ brand.logoDark && /* @__PURE__ */ jsx2(
58
154
  "img",
59
155
  {
60
156
  src: brand.logoDark,
@@ -63,7 +159,7 @@ var Brand = ({ brand, noText = false }) => {
63
159
  }
64
160
  )
65
161
  ] }),
66
- !noText && /* @__PURE__ */ jsx("span", { className: "text-xl font-semibold tracking-tight", children: brand.text })
162
+ !noText && /* @__PURE__ */ jsx2("span", { className: "text-xl font-semibold tracking-tight", children: brand.text })
67
163
  ] });
68
164
  };
69
165
 
@@ -103,6 +199,7 @@ import { useQuery } from "@tanstack/react-query";
103
199
  import { ArrowRightFromLine, MessageCircleQuestion, Search as SearchIcon, TriangleAlert } from "lucide-react";
104
200
  import { useEffect, useRef, useState } from "react";
105
201
  import { createPortal } from "react-dom";
202
+ import { usePageContext as usePageContext2 } from "vike-react/usePageContext";
106
203
 
107
204
  // src/runtime/client/search.ts
108
205
  var hierarchyLevels = ["lvl0", "lvl1", "lvl2", "lvl3", "lvl4", "lvl5", "lvl6"];
@@ -203,7 +300,7 @@ var searchAlgoliaIndex = async (options) => {
203
300
  };
204
301
 
205
302
  // src/runtime/client/components/Search.tsx
206
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
303
+ import { Fragment, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
207
304
  var MIN_QUERY_LENGTH = 2;
208
305
  var QUERY_DEBOUNCE_MS = 150;
209
306
  var useDebouncedValue = (value, delayMs) => {
@@ -218,48 +315,17 @@ var useDebouncedValue = (value, delayMs) => {
218
315
  }, [delayMs, value]);
219
316
  return debouncedValue;
220
317
  };
221
- var Search = ({ algolia }) => {
222
- const [isOpen, setIsOpen] = useState(false);
223
- const [query, setQuery] = useState("");
318
+ var SearchTrigger = () => {
319
+ const pageContext = usePageContext2();
320
+ const docs = getDocsGlobalContext(pageContext);
321
+ const { open, setQuery } = useDocsSearchActions();
322
+ const query = useDocsSearchStore((state) => state.query);
224
323
  const [isSearchHovered, setIsSearchHovered] = useState(false);
225
- const containerRef = useRef(null);
226
- const suggestionBoxRef = useRef(null);
227
- const debouncedQuery = useDebouncedValue(query, QUERY_DEBOUNCE_MS);
228
- const normalizedQuery = debouncedQuery.trim();
229
- const canSearch = Boolean(algolia) && normalizedQuery.length >= MIN_QUERY_LENGTH;
230
- const searchQuery = useQuery({
231
- queryKey: ["nivel-algolia-search", algolia?.appId, algolia?.indexName, normalizedQuery],
232
- queryFn: ({ signal }) => searchAlgoliaIndex({ config: algolia, query: normalizedQuery, signal }),
233
- enabled: isOpen && canSearch,
234
- retry: false
235
- });
236
- useEffect(() => {
237
- if (!isOpen) {
238
- return;
239
- }
240
- const handlePointerDown = (event) => {
241
- const target = event.target;
242
- if (!containerRef.current?.contains(target) && !suggestionBoxRef.current?.contains(target)) {
243
- setIsOpen(false);
244
- }
245
- };
246
- const handleKeyDown = (event) => {
247
- if (event.key === "Escape") {
248
- setIsOpen(false);
249
- }
250
- };
251
- document.addEventListener("pointerdown", handlePointerDown);
252
- document.addEventListener("keydown", handleKeyDown);
253
- return () => {
254
- document.removeEventListener("pointerdown", handlePointerDown);
255
- document.removeEventListener("keydown", handleKeyDown);
256
- };
257
- }, [isOpen]);
258
- if (!algolia) {
324
+ if (!docs.algolia) {
259
325
  return null;
260
326
  }
261
- return /* @__PURE__ */ jsxs2("div", { ref: containerRef, className: "relative", children: [
262
- /* @__PURE__ */ jsx2("div", { className: "hidden md:block", children: /* @__PURE__ */ jsxs2(
327
+ return /* @__PURE__ */ jsxs2(Fragment, { children: [
328
+ /* @__PURE__ */ jsx3("div", { className: "hidden md:block", children: /* @__PURE__ */ jsxs2(
263
329
  "label",
264
330
  {
265
331
  className: cmMerge2(
@@ -269,8 +335,8 @@ var Search = ({ algolia }) => {
269
335
  onMouseEnter: () => setIsSearchHovered(true),
270
336
  onMouseLeave: () => setIsSearchHovered(false),
271
337
  children: [
272
- /* @__PURE__ */ jsx2("span", { className: "label", children: /* @__PURE__ */ jsx2(SearchIcon, { className: "h-4 w-4 shrink-0" }) }),
273
- /* @__PURE__ */ jsx2(
338
+ /* @__PURE__ */ jsx3("span", { className: "label", children: /* @__PURE__ */ jsx3(SearchIcon, { className: "h-4 w-4 shrink-0" }) }),
339
+ /* @__PURE__ */ jsx3(
274
340
  "input",
275
341
  {
276
342
  type: "text",
@@ -280,49 +346,81 @@ var Search = ({ algolia }) => {
280
346
  "w-full placeholder:text-base-muted-medium transition-colors",
281
347
  isSearchHovered && "placeholder:text-base-muted"
282
348
  ),
283
- onFocus: () => {
284
- setIsOpen(true);
285
- },
349
+ onFocus: open,
286
350
  onChange: (event) => {
287
351
  setQuery(event.target.value);
288
- setIsOpen(true);
352
+ open();
289
353
  }
290
354
  }
291
355
  )
292
356
  ]
293
357
  }
294
358
  ) }),
295
- /* @__PURE__ */ jsx2(
296
- "button",
297
- {
298
- type: "button",
299
- className: "btn btn-ghost btn-square md:hidden",
300
- "aria-label": "Search docs",
301
- onClick: () => {
302
- setIsOpen(true);
303
- },
304
- children: /* @__PURE__ */ jsx2(SearchIcon, { className: "h-4 w-4" })
359
+ /* @__PURE__ */ jsx3("button", { type: "button", className: "btn btn-ghost btn-square md:hidden", "aria-label": "Search docs", onClick: open, children: /* @__PURE__ */ jsx3(SearchIcon, { className: "h-4 w-4" }) })
360
+ ] });
361
+ };
362
+ var Search = () => {
363
+ const pageContext = usePageContext2();
364
+ const docs = getDocsGlobalContext(pageContext);
365
+ const { close, setQuery } = useDocsSearchActions();
366
+ const isOpen = useDocsSearchStore((state) => state.isOpen);
367
+ const query = useDocsSearchStore((state) => state.query);
368
+ const containerRef = useRef(null);
369
+ const suggestionBoxRef = useRef(null);
370
+ const previousPathnameRef = useRef(pageContext.urlPathname);
371
+ const debouncedQuery = useDebouncedValue(query, QUERY_DEBOUNCE_MS);
372
+ const normalizedQuery = debouncedQuery.trim();
373
+ const canSearch = Boolean(docs.algolia) && normalizedQuery.length >= MIN_QUERY_LENGTH;
374
+ const searchQuery = useQuery({
375
+ queryKey: ["nivel-algolia-search", docs.algolia?.appId, docs.algolia?.indexName, normalizedQuery],
376
+ queryFn: ({ signal }) => searchAlgoliaIndex({ config: docs.algolia, query: normalizedQuery, signal }),
377
+ enabled: isOpen && canSearch,
378
+ retry: false
379
+ });
380
+ useEffect(() => {
381
+ if (previousPathnameRef.current !== pageContext.urlPathname) {
382
+ close();
383
+ previousPathnameRef.current = pageContext.urlPathname;
384
+ }
385
+ }, [close, pageContext.urlPathname]);
386
+ useEffect(() => {
387
+ if (!isOpen) {
388
+ return;
389
+ }
390
+ const handlePointerDown = (event) => {
391
+ const target = event.target;
392
+ if (!containerRef.current?.contains(target) && !suggestionBoxRef.current?.contains(target)) {
393
+ close();
305
394
  }
306
- ),
307
- /* @__PURE__ */ jsx2(
308
- SearchSuggestionBox,
309
- {
310
- contentRef: suggestionBoxRef,
311
- isError: searchQuery.isError,
312
- isLoading: searchQuery.isFetching,
313
- isOpen,
314
- onClose: () => {
315
- setIsOpen(false);
316
- },
317
- onQueryChange: (nextQuery) => {
318
- setQuery(nextQuery);
319
- setIsOpen(true);
320
- },
321
- query,
322
- results: searchQuery.data ?? []
395
+ };
396
+ const handleKeyDown = (event) => {
397
+ if (event.key === "Escape") {
398
+ close();
323
399
  }
324
- )
325
- ] });
400
+ };
401
+ document.addEventListener("pointerdown", handlePointerDown);
402
+ document.addEventListener("keydown", handleKeyDown);
403
+ return () => {
404
+ document.removeEventListener("pointerdown", handlePointerDown);
405
+ document.removeEventListener("keydown", handleKeyDown);
406
+ };
407
+ }, [close, isOpen]);
408
+ if (!docs.algolia) {
409
+ return null;
410
+ }
411
+ return /* @__PURE__ */ jsx3("div", { ref: containerRef, className: "relative", children: /* @__PURE__ */ jsx3(
412
+ SearchSuggestionBox,
413
+ {
414
+ contentRef: suggestionBoxRef,
415
+ isError: searchQuery.isError,
416
+ isLoading: searchQuery.isFetching,
417
+ isOpen,
418
+ onClose: close,
419
+ onQueryChange: setQuery,
420
+ query,
421
+ results: searchQuery.data ?? []
422
+ }
423
+ ) });
326
424
  };
327
425
  var SearchSuggestionBox = ({
328
426
  contentRef,
@@ -354,15 +452,15 @@ var SearchSuggestionBox = ({
354
452
  }
355
453
  return createPortal(
356
454
  /* @__PURE__ */ jsxs2("div", { className: "fixed inset-0 z-30 h-full w-full bg-base-100/50 backdrop-blur-lg", children: [
357
- /* @__PURE__ */ jsx2("div", { className: "absolute inset-0 z-1 bg-linear-to-b from-base-100 via-base-100 via-25% to-primary-muted-superlight dark:bg-linear-to-t" }),
455
+ /* @__PURE__ */ jsx3("div", { className: "absolute inset-0 z-1 bg-linear-to-b from-base-100 via-base-100 via-25% to-primary-muted-superlight dark:bg-linear-to-t" }),
358
456
  /* @__PURE__ */ jsxs2(
359
457
  LayoutComponent,
360
458
  {
361
459
  ref: contentRef,
362
460
  $size: "sm",
363
- className: "mt-5 relative z-2 pt-6 p-6 bg-base-100/70 rounded-box shadow-lg shadow-primary-muted-light",
461
+ className: "mt-5 relative z-2 rounded-box bg-base-100/70 p-6 pt-6 shadow-lg shadow-primary-muted-light",
364
462
  children: [
365
- /* @__PURE__ */ jsx2(
463
+ /* @__PURE__ */ jsx3(
366
464
  "input",
367
465
  {
368
466
  placeholder: "Search docs",
@@ -373,34 +471,34 @@ var SearchSuggestionBox = ({
373
471
  onChange: (event) => onQueryChange(event.target.value)
374
472
  }
375
473
  ),
376
- /* @__PURE__ */ jsx2("div", { className: "flex h-7 items-center px-4 text-xs text-base-muted", children: isLoading ? /* @__PURE__ */ jsxs2("span", { className: "flex items-center gap-1", children: [
377
- /* @__PURE__ */ jsx2("span", { className: "loading loading-dots loading-xs" }),
474
+ /* @__PURE__ */ jsx3("div", { className: "flex h-7 items-center px-4 text-xs text-base-muted", children: isLoading ? /* @__PURE__ */ jsxs2("span", { className: "flex items-center gap-1", children: [
475
+ /* @__PURE__ */ jsx3("span", { className: "loading loading-dots loading-xs" }),
378
476
  "Searching..."
379
477
  ] }) : normalizedQuery ? null : /* @__PURE__ */ jsxs2("span", { className: "flex items-center gap-1", children: [
380
- /* @__PURE__ */ jsx2(MessageCircleQuestion, { className: "h-3 w-3 shrink-0" }),
478
+ /* @__PURE__ */ jsx3(MessageCircleQuestion, { className: "h-3 w-3 shrink-0" }),
381
479
  "Type at least ",
382
480
  MIN_QUERY_LENGTH,
383
481
  " characters."
384
482
  ] }) }),
385
483
  normalizedQuery ? isError ? /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-2 rounded-box border border-warning/40 bg-base-100 p-4 text-sm text-base-muted shadow-md shadow-primary-muted-light", children: [
386
- /* @__PURE__ */ jsx2(TriangleAlert, { className: "h-4 w-4 shrink-0 text-warning" }),
484
+ /* @__PURE__ */ jsx3(TriangleAlert, { className: "h-4 w-4 shrink-0 text-warning" }),
387
485
  "Search is temporarily unavailable."
388
- ] }) : !canSearch ? /* @__PURE__ */ jsx2("div", { className: "text-sm text-base-muted", children: "Keep typing to search." }) : !isLoading && results.length === 0 ? /* @__PURE__ */ jsx2("div", { className: "text-sm text-base-muted", children: "No results found." }) : /* @__PURE__ */ jsx2("div", { className: "max-h-80 overflow-y-auto -mx-2 p-2", children: /* @__PURE__ */ jsx2("ul", { className: "flex flex-col gap-2", children: results.map((result) => /* @__PURE__ */ jsx2("li", { children: /* @__PURE__ */ jsxs2(
486
+ ] }) : !canSearch ? /* @__PURE__ */ jsx3("div", { className: "text-sm text-base-muted", children: "Keep typing to search." }) : !isLoading && results.length === 0 ? /* @__PURE__ */ jsx3("div", { className: "text-sm text-base-muted", children: "No results found." }) : /* @__PURE__ */ jsx3("div", { className: "-mx-2 max-h-80 overflow-y-auto p-2", children: /* @__PURE__ */ jsx3("ul", { className: "flex flex-col gap-2", children: results.map((result) => /* @__PURE__ */ jsx3("li", { children: /* @__PURE__ */ jsxs2(
389
487
  "a",
390
488
  {
391
489
  href: withSiteBaseUrl(result.href),
392
- className: "block rounded-box border border-base-muted-medium bg-base-100 p-4 hover:border-primary-muted hover:bg-base-200 shadow-md",
490
+ className: "block rounded-box border border-base-muted-medium bg-base-100 p-4 shadow-md hover:border-primary-muted hover:bg-base-200",
393
491
  onClick: onClose,
394
492
  children: [
395
493
  /* @__PURE__ */ jsxs2("div", { className: "mb-2 flex items-center justify-start gap-2", children: [
396
- /* @__PURE__ */ jsx2("div", { className: "text-base-content font-bold", children: result.title }),
494
+ /* @__PURE__ */ jsx3("div", { className: "font-bold text-base-content", children: result.title }),
397
495
  result.sectionTitle ? /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-1 text-sm text-base-muted-medium", children: [
398
- /* @__PURE__ */ jsx2(ArrowRightFromLine, { className: "h-3 w-3" }),
496
+ /* @__PURE__ */ jsx3(ArrowRightFromLine, { className: "h-3 w-3" }),
399
497
  " ",
400
498
  result.sectionTitle
401
499
  ] }) : null
402
500
  ] }),
403
- result.excerpt ? /* @__PURE__ */ jsx2("p", { className: "text-xs leading-5 text-base-muted", children: result.excerpt }) : null
501
+ result.excerpt ? /* @__PURE__ */ jsx3("p", { className: "text-xs leading-5 text-base-muted", children: result.excerpt }) : null
404
502
  ]
405
503
  }
406
504
  ) }, result.href)) }) }) : null
@@ -412,6 +510,41 @@ var SearchSuggestionBox = ({
412
510
  );
413
511
  };
414
512
 
513
+ // src/runtime/client/components/SocialLinks.tsx
514
+ import { usePageContext as usePageContext3 } from "vike-react/usePageContext";
515
+ import { jsx as jsx4 } from "react/jsx-runtime";
516
+ var _iconAssets = {
517
+ github: nivelAssetUrl("brands/github.svg"),
518
+ discord: nivelAssetUrl(`brands/discord.svg`),
519
+ x: nivelAssetUrl(`brands/x.svg`),
520
+ bluesky: nivelAssetUrl(`brands/bluesky.svg`),
521
+ linkedin: nivelAssetUrl("brands/linkedin.svg")
522
+ };
523
+ var SocialIconElement = ({ icon, href }) => {
524
+ return /* @__PURE__ */ jsx4("li", { className: "m-0 p-0", children: /* @__PURE__ */ jsx4(
525
+ "a",
526
+ {
527
+ href,
528
+ target: "_blank",
529
+ rel: "noopener noreferrer",
530
+ className: "flex h-8 w-8 items-center justify-center rounded-full border border-base-muted-light bg-base-200",
531
+ children: /* @__PURE__ */ jsx4("img", { src: _iconAssets[icon], alt: `${icon} icon`, className: "h-3 w-auto opacity-75 dark:invert" })
532
+ }
533
+ ) });
534
+ };
535
+ var SocialIcons = () => {
536
+ const pageContext = usePageContext3();
537
+ const docs = getDocsGlobalContext(pageContext);
538
+ const socialEntries = Object.entries(docs.social ?? {}).filter(
539
+ (entry) => entry[0] in _iconAssets && typeof entry[1] === "string" && entry[1].length > 0
540
+ );
541
+ if (socialEntries.length === 0) {
542
+ return null;
543
+ }
544
+ return /* @__PURE__ */ jsx4("ul", { className: "flex items-center gap-1", children: socialEntries.map(([platform, href]) => /* @__PURE__ */ jsx4(SocialIconElement, { icon: platform, href }, platform)) });
545
+ };
546
+ var SocialLinks_default = SocialIcons;
547
+
415
548
  // src/runtime/client/components/ThemeSwitch.tsx
416
549
  import { Moon, Sun } from "lucide-react";
417
550
 
@@ -497,7 +630,7 @@ var applyThemePreference = (themePreference, themeConfig) => {
497
630
  };
498
631
 
499
632
  // src/runtime/client/components/ThemeSwitch.tsx
500
- import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
633
+ import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
501
634
  var ThemeSwitch = ({ theme }) => {
502
635
  const themePreference = useDocsUserSettingsStore((state) => state.themePreference);
503
636
  const setThemePreference = useDocsUserSettingsStore((state) => state.setThemePreference);
@@ -510,8 +643,8 @@ var ThemeSwitch = ({ theme }) => {
510
643
  onClick: () => setThemePreference(effectiveThemePreference === "light" ? "dark" : "light"),
511
644
  className: "relative flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-base-muted-light bg-base-200",
512
645
  children: [
513
- /* @__PURE__ */ jsx3(Sun, { className: "h-4 w-4 dark:hidden" }),
514
- /* @__PURE__ */ jsx3(Moon, { className: "hidden h-4 w-4 dark:block" })
646
+ /* @__PURE__ */ jsx5(Sun, { className: "h-4 w-4 dark:hidden" }),
647
+ /* @__PURE__ */ jsx5(Moon, { className: "hidden h-4 w-4 dark:block" })
515
648
  ]
516
649
  }
517
650
  );
@@ -520,7 +653,7 @@ var ThemeSwitch = ({ theme }) => {
520
653
  // src/runtime/client/components/Navbar/MegaMenu/index.tsx
521
654
  import { cmMerge as cmMerge3 } from "@classmatejs/react";
522
655
  import { useEffect as useEffect2, useState as useState2 } from "react";
523
- import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
656
+ import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
524
657
  var MegaMenu = ({
525
658
  isActive,
526
659
  onOpen,
@@ -563,7 +696,7 @@ var MegaMenu = ({
563
696
  onPointerEnter: () => onOpen(visibleSectionId),
564
697
  onPointerLeave: onClose,
565
698
  children: [
566
- /* @__PURE__ */ jsx4(
699
+ /* @__PURE__ */ jsx6(
567
700
  "div",
568
701
  {
569
702
  className: cmMerge3(
@@ -572,21 +705,21 @@ var MegaMenu = ({
572
705
  )
573
706
  }
574
707
  ),
575
- /* @__PURE__ */ jsx4(
708
+ /* @__PURE__ */ jsx6(
576
709
  "div",
577
710
  {
578
711
  className: cmMerge3(
579
712
  "relative z-4 overflow-hidden bg-base-100 transition-[height] duration-300 ease-out border-b border-base-muted-light"
580
713
  ),
581
714
  style: { height: isActive ? contentHeight : 0 },
582
- children: /* @__PURE__ */ jsx4(LayoutComponent, { $size: "sm", children: /* @__PURE__ */ jsx4(
715
+ children: /* @__PURE__ */ jsx6(LayoutComponent, { $size: "sm", children: /* @__PURE__ */ jsx6(
583
716
  "div",
584
717
  {
585
718
  className: cmMerge3(
586
719
  isActive ? "translate-y-0 opacity-100" : "-translate-y-10 opacity-0",
587
720
  "relative z-4 transition-all duration-300"
588
721
  ),
589
- children: sections.map((section) => /* @__PURE__ */ jsx4(
722
+ children: sections.map((section) => /* @__PURE__ */ jsx6(
590
723
  "div",
591
724
  {
592
725
  ref: section.id === visibleSectionId ? setVisibleSectionElement : void 0,
@@ -594,17 +727,17 @@ var MegaMenu = ({
594
727
  section.id === visibleSectionId ? "opacity-100" : "opacity-0 pointer-events-none",
595
728
  "transition-all absolute w-full duration-300"
596
729
  ),
597
- children: section.items.length > 0 && /* @__PURE__ */ jsx4("ul", { className: "mt-2 flex ", children: section.items.map(
730
+ children: section.items.length > 0 && /* @__PURE__ */ jsx6("ul", { className: "mt-2 flex ", children: section.items.map(
598
731
  (child) => child.showInNav !== false && /* @__PURE__ */ jsxs4("li", { className: "flex-1 py-3 mb-6 px-4", children: [
599
- child.href ? /* @__PURE__ */ jsx4(
732
+ child.href ? /* @__PURE__ */ jsx6(
600
733
  "a",
601
734
  {
602
735
  className: "mb-4 block text-lg font-semibold tracking-tight",
603
736
  href: withSiteBaseUrl(child.href),
604
737
  children: child.title
605
738
  }
606
- ) : /* @__PURE__ */ jsx4("span", { className: "mb-4 block text-lg font-semibold tracking-tight", children: child.title }),
607
- child.kind === "group" && child.items.length > 0 && /* @__PURE__ */ jsx4("ul", { className: "menu border-l border-base-muted-light py-0 w-full", children: child.items.map((subChild) => /* @__PURE__ */ jsx4("li", { children: subChild.href ? /* @__PURE__ */ jsx4("a", { href: withSiteBaseUrl(subChild.href), onClick: onClose, children: renderInlineMarkdown(subChild.title) }) : /* @__PURE__ */ jsx4("span", { children: renderInlineMarkdown(subChild.title) }) }, subChild.id)) })
739
+ ) : /* @__PURE__ */ jsx6("span", { className: "mb-4 block text-lg font-semibold tracking-tight", children: child.title }),
740
+ child.kind === "group" && child.items.length > 0 && /* @__PURE__ */ jsx6("ul", { className: "menu border-l border-base-muted-light py-0 w-full", children: child.items.map((subChild) => /* @__PURE__ */ jsx6("li", { children: subChild.href ? /* @__PURE__ */ jsx6("a", { href: withSiteBaseUrl(subChild.href), onClick: onClose, children: renderInlineMarkdown(subChild.title) }) : /* @__PURE__ */ jsx6("span", { children: renderInlineMarkdown(subChild.title) }) }, subChild.id)) })
608
741
  ] }, child.id)
609
742
  ) })
610
743
  },
@@ -644,17 +777,18 @@ var useNavbarScroll = (isLandingPage) => {
644
777
  };
645
778
 
646
779
  // src/runtime/client/components/Navbar/index.tsx
647
- import { Fragment, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
648
- var Navbar = ({ brand, algolia, navbarItems, theme, sections }) => {
649
- const { urlPathname } = usePageContext2();
780
+ import { Fragment as Fragment2, jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
781
+ var Navbar = ({ brand, navbarItems, theme, sections }) => {
782
+ const { urlPathname } = usePageContext4();
650
783
  const isLandingPage = urlPathname === "/";
651
784
  const { isLandingPageScrolled } = useNavbarScroll(isLandingPage);
652
785
  const [isMegaMenuOpen, setIsMegaMenuOpen] = useState4(false);
653
786
  const megaMenuCloseTimeoutRef = useRef2(null);
654
- const pageContext = usePageContext2();
787
+ const pageContext = usePageContext4();
655
788
  const docs = getDocsGlobalContext(pageContext);
656
789
  const activeSection = getActiveSectionByPathname(docs, pageContext.urlPathname);
657
790
  const [hoveredSectionId, setHoveredSectionId] = useState4(activeSection?.id ?? sections[0]?.id);
791
+ const { toggle: toggleSearch } = useDocsSearchActions();
658
792
  const showChrome = useMemo(
659
793
  () => !isLandingPage || isLandingPageScrolled || !isMegaMenuOpen,
660
794
  [isLandingPage, isLandingPageScrolled, isMegaMenuOpen]
@@ -689,51 +823,65 @@ var Navbar = ({ brand, algolia, navbarItems, theme, sections }) => {
689
823
  clearMegaMenuCloseTimeout();
690
824
  };
691
825
  }, [clearMegaMenuCloseTimeout]);
692
- return /* @__PURE__ */ jsxs5(Fragment, { children: [
693
- /* @__PURE__ */ jsx5(StyledNavbar, { $border: showChrome, children: /* @__PURE__ */ jsx5(LayoutComponent, { className: "h-full", children: isLandingPage ? /* @__PURE__ */ jsxs5("div", { className: "relative z-3 flex h-full items-center justify-between py-4", children: [
694
- /* @__PURE__ */ jsx5("div", { className: "flex flex-1 items-center gap-4", children: /* @__PURE__ */ jsx5(Brand, { brand }) }),
695
- /* @__PURE__ */ jsx5(
826
+ return /* @__PURE__ */ jsxs5(Fragment2, { children: [
827
+ /* @__PURE__ */ jsx7(StyledNavbar, { $border: showChrome, children: /* @__PURE__ */ jsx7(LayoutComponent, { className: "h-full", children: isLandingPage ? /* @__PURE__ */ jsxs5("div", { className: "relative z-3 flex h-full items-center justify-between py-4", children: [
828
+ /* @__PURE__ */ jsx7("div", { className: "flex flex-1 items-center gap-4", children: /* @__PURE__ */ jsx7(Brand, { brand }) }),
829
+ /* @__PURE__ */ jsx7(
696
830
  "nav",
697
831
  {
698
832
  "aria-label": "Primary",
699
833
  className: "top-0 left-0 flex min-w-0 flex-1 items-center justify-center gap-4 overflow-x-auto",
700
- children: /* @__PURE__ */ jsx5("ul", { className: "flex items-center font-semibold", children: navbarItems.map((item) => /* @__PURE__ */ jsx5("li", { children: /* @__PURE__ */ jsx5(
701
- "a",
702
- {
703
- href: withSiteBaseUrl(item.href),
704
- className: "h-full block py-3.25",
705
- onPointerEnter: () => openMegaMenu(item.id),
706
- onPointerLeave: scheduleMegaMenuClose,
707
- onFocus: () => openMegaMenu(item.id),
708
- onBlur: scheduleMegaMenuClose,
709
- onClick: closeMegaMenu,
710
- children: /* @__PURE__ */ jsxs5(
711
- "span",
712
- {
713
- className: cmMerge4("btn text-lg btn-ghost min-w-30 px-2 whitespace-nowrap tracking-tight"),
714
- children: [
715
- renderInlineMarkdown(item.title),
716
- /* @__PURE__ */ jsx5(ChevronDown, { className: "h-4 w-4 shrink-0" })
717
- ]
718
- }
719
- )
720
- }
721
- ) }, item.id)) })
834
+ children: /* @__PURE__ */ jsxs5("ul", { className: "flex items-center font-semibold", children: [
835
+ navbarItems.map((item) => /* @__PURE__ */ jsx7("li", { children: /* @__PURE__ */ jsx7(
836
+ "a",
837
+ {
838
+ href: withSiteBaseUrl(item.href),
839
+ className: "h-full block py-3.25",
840
+ onPointerEnter: () => openMegaMenu(item.id),
841
+ onPointerLeave: scheduleMegaMenuClose,
842
+ onFocus: () => openMegaMenu(item.id),
843
+ onBlur: scheduleMegaMenuClose,
844
+ onClick: closeMegaMenu,
845
+ children: /* @__PURE__ */ jsxs5(
846
+ "span",
847
+ {
848
+ className: cmMerge4("btn text-lg btn-ghost min-w-30 px-2 whitespace-nowrap tracking-tight"),
849
+ children: [
850
+ renderInlineMarkdown(item.title),
851
+ /* @__PURE__ */ jsx7(ChevronDown, { className: "h-4 w-4 shrink-0" })
852
+ ]
853
+ }
854
+ )
855
+ }
856
+ ) }, item.id)),
857
+ docs.algolia ? /* @__PURE__ */ jsx7("li", { children: /* @__PURE__ */ jsxs5(
858
+ "button",
859
+ {
860
+ type: "button",
861
+ onClick: toggleSearch,
862
+ className: "btn btn-ghost min-w-30 px-2 text-lg whitespace-nowrap tracking-tight",
863
+ children: [
864
+ "Search",
865
+ /* @__PURE__ */ jsx7(TextSearch, { className: "h-4 w-4" })
866
+ ]
867
+ }
868
+ ) }) : null
869
+ ] })
722
870
  }
723
871
  ),
724
872
  /* @__PURE__ */ jsxs5("div", { className: "flex flex-1 items-center justify-end gap-2", children: [
725
- /* @__PURE__ */ jsx5(Search, { algolia }),
726
- /* @__PURE__ */ jsx5(ThemeSwitch, { theme })
873
+ /* @__PURE__ */ jsx7(SocialLinks_default, {}),
874
+ /* @__PURE__ */ jsx7(ThemeSwitch, { theme })
727
875
  ] })
728
876
  ] }) : /* @__PURE__ */ jsxs5("div", { className: "relative z-3 flex h-full items-center justify-between py-4", children: [
729
- /* @__PURE__ */ jsx5("div", { className: "flex w-80 flex-1 items-center justify-between gap-2 lg:flex-none", children: /* @__PURE__ */ jsx5(Brand, { brand }) }),
877
+ /* @__PURE__ */ jsx7("div", { className: "flex w-80 flex-1 items-center justify-between gap-2 lg:flex-none", children: /* @__PURE__ */ jsx7(Brand, { brand }) }),
730
878
  /* @__PURE__ */ jsxs5(
731
879
  "nav",
732
880
  {
733
881
  "aria-label": "Primary",
734
882
  className: "top-0 left-0 flex flex-1 items-center justify-start gap-4 overflow-x-auto lg:pl-6 xl:pl-10",
735
883
  children: [
736
- /* @__PURE__ */ jsx5("ul", { className: "flex items-center gap-2 font-semibold", children: navbarItems.map((item) => /* @__PURE__ */ jsx5("li", { children: /* @__PURE__ */ jsx5(
884
+ /* @__PURE__ */ jsx7("ul", { className: "flex items-center gap-2 font-semibold", children: navbarItems.map((item) => /* @__PURE__ */ jsx7("li", { children: /* @__PURE__ */ jsx7(
737
885
  "a",
738
886
  {
739
887
  href: withSiteBaseUrl(item.href),
@@ -749,13 +897,17 @@ var Navbar = ({ brand, algolia, navbarItems, theme, sections }) => {
749
897
  children: renderInlineMarkdown(item.title)
750
898
  }
751
899
  ) }, item.id)) }),
752
- /* @__PURE__ */ jsx5(Search, { algolia })
900
+ /* @__PURE__ */ jsx7(SearchTrigger, {})
753
901
  ]
754
902
  }
755
903
  ),
756
- /* @__PURE__ */ jsx5("div", { className: "flex w-78 flex-1 items-center justify-end gap-2 lg:flex-none", children: /* @__PURE__ */ jsx5(ThemeSwitch, { theme }) })
904
+ /* @__PURE__ */ jsxs5("div", { className: "flex w-78 flex-1 items-center justify-end gap-2 lg:flex-none", children: [
905
+ /* @__PURE__ */ jsx7(SocialLinks_default, {}),
906
+ /* @__PURE__ */ jsx7(ThemeSwitch, { theme })
907
+ ] })
757
908
  ] }) }) }),
758
- /* @__PURE__ */ jsx5(
909
+ /* @__PURE__ */ jsx7(Search, {}),
910
+ /* @__PURE__ */ jsx7(
759
911
  MegaMenu,
760
912
  {
761
913
  sections,
@@ -788,59 +940,56 @@ var UserSettingsSync = ({ theme }) => {
788
940
  };
789
941
 
790
942
  // src/runtime/client/AppLayout.tsx
791
- import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
943
+ import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
792
944
  var AppLayout = ({ children }) => {
793
- const pageContext = usePageContext3();
945
+ const pageContext = usePageContext5();
794
946
  const docs = getDocsGlobalContext(pageContext);
947
+ const [docsRuntimeStore] = useState5(() => createDocsRuntimeStore());
795
948
  const [queryClient] = useState5(() => new QueryClient());
796
- return (
797
- // todo: we should try vike-react-query instead
798
- /* @__PURE__ */ jsxs6(QueryClientProvider, { client: queryClient, children: [
799
- /* @__PURE__ */ jsx6(UserSettingsSync, { theme: docs.theme }),
800
- /* @__PURE__ */ jsxs6("div", { className: "min-h-screen bg-base-100 text-base-content", children: [
801
- /* @__PURE__ */ jsx6(
802
- Navbar,
803
- {
804
- brand: docs.brand,
805
- algolia: docs.algolia,
806
- navbarItems: docs.navbarItems,
807
- sections: docs.sidebarSections,
808
- theme: docs.theme
809
- }
810
- ),
811
- /* @__PURE__ */ jsx6("div", { className: "pt-16", children })
812
- ] })
949
+ return /* @__PURE__ */ jsx8(DocsRuntimeStoreProvider, { store: docsRuntimeStore, children: /* @__PURE__ */ jsxs6(QueryClientProvider, { client: queryClient, children: [
950
+ /* @__PURE__ */ jsx8(UserSettingsSync, { theme: docs.theme }),
951
+ /* @__PURE__ */ jsxs6("div", { className: "min-h-screen bg-base-100 text-base-content", children: [
952
+ /* @__PURE__ */ jsx8(
953
+ Navbar,
954
+ {
955
+ brand: docs.brand,
956
+ navbarItems: docs.navbarItems,
957
+ sections: docs.sidebarSections,
958
+ theme: docs.theme
959
+ }
960
+ ),
961
+ /* @__PURE__ */ jsx8("div", { className: "pt-16", children })
813
962
  ] })
814
- );
963
+ ] }) });
815
964
  };
816
965
 
817
966
  // src/runtime/client/components/MetaHead/FaviconLinks.tsx
818
- import { Fragment as Fragment2, jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
967
+ import { Fragment as Fragment3, jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
819
968
  var FaviconLinks = ({ head }) => {
820
969
  const { appleTouchIcon, faviconIco, faviconSvg } = head;
821
- return /* @__PURE__ */ jsxs7(Fragment2, { children: [
822
- appleTouchIcon && /* @__PURE__ */ jsx7("link", { rel: "apple-touch-icon", href: appleTouchIcon }),
823
- faviconSvg && /* @__PURE__ */ jsx7("link", { rel: "icon", type: "image/svg+xml", href: faviconSvg }),
824
- faviconIco && /* @__PURE__ */ jsxs7(Fragment2, { children: [
825
- /* @__PURE__ */ jsx7("link", { rel: "shortcut icon", type: "image/x-icon", href: faviconIco }),
826
- /* @__PURE__ */ jsx7("link", { rel: "icon", type: "image/x-icon", href: faviconIco })
970
+ return /* @__PURE__ */ jsxs7(Fragment3, { children: [
971
+ appleTouchIcon && /* @__PURE__ */ jsx9("link", { rel: "apple-touch-icon", href: appleTouchIcon }),
972
+ faviconSvg && /* @__PURE__ */ jsx9("link", { rel: "icon", type: "image/svg+xml", href: faviconSvg }),
973
+ faviconIco && /* @__PURE__ */ jsxs7(Fragment3, { children: [
974
+ /* @__PURE__ */ jsx9("link", { rel: "shortcut icon", type: "image/x-icon", href: faviconIco }),
975
+ /* @__PURE__ */ jsx9("link", { rel: "icon", type: "image/x-icon", href: faviconIco })
827
976
  ] })
828
977
  ] });
829
978
  };
830
979
 
831
980
  // src/runtime/client/components/MetaHead/FontLinks.tsx
832
- import { Fragment as Fragment3, jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
981
+ import { Fragment as Fragment4, jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
833
982
  var FontLinks = ({ head }) => {
834
983
  const { fontStylesheetHref, fontPreloadHrefs } = head;
835
984
  const effectivePreloadHrefs = fontPreloadHrefs ?? [];
836
- return /* @__PURE__ */ jsxs8(Fragment3, { children: [
837
- effectivePreloadHrefs.map((href) => /* @__PURE__ */ jsx8("link", { rel: "preload", href, as: "font", type: "font/woff2", crossOrigin: "anonymous" }, href)),
838
- fontStylesheetHref && /* @__PURE__ */ jsx8("link", { rel: "stylesheet", href: fontStylesheetHref })
985
+ return /* @__PURE__ */ jsxs8(Fragment4, { children: [
986
+ effectivePreloadHrefs.map((href) => /* @__PURE__ */ jsx10("link", { rel: "preload", href, as: "font", type: "font/woff2", crossOrigin: "anonymous" }, href)),
987
+ fontStylesheetHref && /* @__PURE__ */ jsx10("link", { rel: "stylesheet", href: fontStylesheetHref })
839
988
  ] });
840
989
  };
841
990
 
842
991
  // src/runtime/client/components/MetaHead/ThemeBootstrap.tsx
843
- import { jsx as jsx9 } from "react/jsx-runtime";
992
+ import { jsx as jsx11 } from "react/jsx-runtime";
844
993
  var getThemeBootstrapScript = (theme) => {
845
994
  return `(() => {
846
995
  const storageKey = ${JSON.stringify(USER_SETTINGS_STORAGE_KEY)};
@@ -878,7 +1027,7 @@ var getThemeBootstrapScript = (theme) => {
878
1027
  })();`;
879
1028
  };
880
1029
  var ThemeBootstrap = ({ theme }) => {
881
- return /* @__PURE__ */ jsx9(
1030
+ return /* @__PURE__ */ jsx11(
882
1031
  "script",
883
1032
  {
884
1033
  dangerouslySetInnerHTML: {
@@ -889,13 +1038,13 @@ var ThemeBootstrap = ({ theme }) => {
889
1038
  };
890
1039
 
891
1040
  // src/runtime/client/components/MetaHead/index.tsx
892
- import { Fragment as Fragment4, jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
1041
+ import { Fragment as Fragment5, jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
893
1042
  var MetaHead = () => {
894
1043
  const docs = useDocsGlobalContext();
895
- return /* @__PURE__ */ jsxs9(Fragment4, { children: [
896
- /* @__PURE__ */ jsx10(ThemeBootstrap, { theme: docs.theme }),
897
- /* @__PURE__ */ jsx10(FaviconLinks, { head: docs.head }),
898
- /* @__PURE__ */ jsx10(FontLinks, { head: docs.head })
1044
+ return /* @__PURE__ */ jsxs9(Fragment5, { children: [
1045
+ /* @__PURE__ */ jsx12(ThemeBootstrap, { theme: docs.theme }),
1046
+ /* @__PURE__ */ jsx12(FaviconLinks, { head: docs.head }),
1047
+ /* @__PURE__ */ jsx12(FontLinks, { head: docs.head })
899
1048
  ] });
900
1049
  };
901
1050
 
@@ -907,15 +1056,15 @@ var ProseContainer = cm3.section`
907
1056
 
908
1057
  // src/runtime/client/DocsPage.tsx
909
1058
  import { useData as useData2 } from "vike-react/useData";
910
- import { usePageContext as usePageContext4 } from "vike-react/usePageContext";
1059
+ import { usePageContext as usePageContext6 } from "vike-react/usePageContext";
911
1060
 
912
1061
  // src/runtime/client/components/DocsPagination.tsx
913
1062
  import { cmMerge as cmMerge5 } from "@classmatejs/react";
914
1063
  import { ChevronLeft, ChevronRight } from "lucide-react";
915
- import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
1064
+ import { jsx as jsx13, jsxs as jsxs10 } from "react/jsx-runtime";
916
1065
  var PaginationCard = ({ item, direction, isOffset }) => {
917
1066
  const isPrevious = direction === "previous";
918
- return /* @__PURE__ */ jsx11(
1067
+ return /* @__PURE__ */ jsx13(
919
1068
  "a",
920
1069
  {
921
1070
  href: withSiteBaseUrl(item.href),
@@ -926,7 +1075,7 @@ var PaginationCard = ({ item, direction, isOffset }) => {
926
1075
  ),
927
1076
  "aria-label": `${isPrevious ? "Previous" : "Next"}: ${item.title}`,
928
1077
  children: /* @__PURE__ */ jsxs10("div", { className: "flex flex-col justify-between gap-2", children: [
929
- /* @__PURE__ */ jsx11("p", { className: "text-lg font-semibold text-base-content", children: renderInlineMarkdown(item.title) }),
1078
+ /* @__PURE__ */ jsx13("p", { className: "text-lg font-semibold text-base-content", children: renderInlineMarkdown(item.title) }),
930
1079
  /* @__PURE__ */ jsxs10(
931
1080
  "div",
932
1081
  {
@@ -935,9 +1084,9 @@ var PaginationCard = ({ item, direction, isOffset }) => {
935
1084
  isPrevious ? "justify-start" : "justify-end"
936
1085
  ),
937
1086
  children: [
938
- isPrevious && /* @__PURE__ */ jsx11(ChevronLeft, { className: "h-4 w-4" }),
939
- /* @__PURE__ */ jsx11("span", { children: isPrevious ? "Previous" : "Next" }),
940
- !isPrevious && /* @__PURE__ */ jsx11(ChevronRight, { className: "h-4 w-4" })
1087
+ isPrevious && /* @__PURE__ */ jsx13(ChevronLeft, { className: "h-4 w-4" }),
1088
+ /* @__PURE__ */ jsx13("span", { children: isPrevious ? "Previous" : "Next" }),
1089
+ !isPrevious && /* @__PURE__ */ jsx13(ChevronRight, { className: "h-4 w-4" })
941
1090
  ]
942
1091
  }
943
1092
  )
@@ -949,28 +1098,31 @@ var DocsPagination = ({ previousPage, nextPage }) => {
949
1098
  if (!previousPage && !nextPage) {
950
1099
  return null;
951
1100
  }
952
- return /* @__PURE__ */ jsx11("nav", { className: "mb-10 mt-16", "aria-label": "Previous Next", children: /* @__PURE__ */ jsxs10("div", { className: "grid gap-4 sm:grid-cols-2", children: [
953
- previousPage && /* @__PURE__ */ jsx11(PaginationCard, { item: previousPage, direction: "previous" }),
954
- nextPage && /* @__PURE__ */ jsx11(PaginationCard, { isOffset: !previousPage, item: nextPage, direction: "next" })
1101
+ return /* @__PURE__ */ jsx13("nav", { className: "mb-10 mt-16", "aria-label": "Previous Next", children: /* @__PURE__ */ jsxs10("div", { className: "grid gap-4 sm:grid-cols-2", children: [
1102
+ previousPage && /* @__PURE__ */ jsx13(PaginationCard, { item: previousPage, direction: "previous" }),
1103
+ nextPage && /* @__PURE__ */ jsx13(PaginationCard, { isOffset: !previousPage, item: nextPage, direction: "next" })
955
1104
  ] }) });
956
1105
  };
957
1106
 
958
1107
  // src/runtime/client/components/Footer.tsx
959
1108
  import { Bug, Pencil } from "lucide-react";
960
- import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
1109
+ import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
961
1110
  var DocsFooter = ({ brand }) => {
962
1111
  return /* @__PURE__ */ jsxs11("footer", { className: "mb-8 mt-12 text-sm border-t border-base-muted-light pt-10", children: [
963
1112
  /* @__PURE__ */ jsxs11("div", { className: "mb-16 flex items-center gap-2", children: [
964
1113
  /* @__PURE__ */ jsxs11("a", { href: "edit", className: "btn btn-sm btn-primary btn-soft", children: [
965
- /* @__PURE__ */ jsx12(Pencil, { className: "w-3 h-3" }),
1114
+ /* @__PURE__ */ jsx14(Pencil, { className: "w-3 h-3" }),
966
1115
  " Edit this page"
967
1116
  ] }),
968
1117
  /* @__PURE__ */ jsxs11("a", { href: "edit", className: "btn btn-sm btn-primary btn-soft", children: [
969
- /* @__PURE__ */ jsx12(Bug, { className: "w-3 h-3" }),
1118
+ /* @__PURE__ */ jsx14(Bug, { className: "w-3 h-3" }),
970
1119
  " Report Issue"
971
1120
  ] })
972
1121
  ] }),
973
- /* @__PURE__ */ jsx12("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ jsx12("div", { className: "flex gap-2 items-center", children: brand && /* @__PURE__ */ jsx12(Brand, { brand, noText: true }) }) })
1122
+ /* @__PURE__ */ jsxs11("div", { className: "flex justify-between items-center", children: [
1123
+ /* @__PURE__ */ jsx14(SocialLinks_default, {}),
1124
+ /* @__PURE__ */ jsx14("div", { className: "flex gap-2 items-center", children: brand && /* @__PURE__ */ jsx14(Brand, { brand, noText: true }) })
1125
+ ] })
974
1126
  ] });
975
1127
  };
976
1128
 
@@ -1005,7 +1157,7 @@ var getVisibleGroupItems = (group) => {
1005
1157
  var getGroupHref = (group) => group.href ?? null;
1006
1158
 
1007
1159
  // src/runtime/client/components/Sidebar.tsx
1008
- import { Fragment as Fragment5, jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
1160
+ import { Fragment as Fragment6, jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
1009
1161
  var useSidebarDisclosureStore = create2()((set) => ({
1010
1162
  openNodes: {},
1011
1163
  setNodeOpen: (nodeId, isOpen) => set((state) => {
@@ -1039,7 +1191,7 @@ var useAutoOpenDetails = (nodeId, isOpenByDefault, hasActiveDescendant) => {
1039
1191
  };
1040
1192
  };
1041
1193
  var SidebarPageLink = ({ title, href, currentHref }) => {
1042
- return /* @__PURE__ */ jsx13("li", { children: /* @__PURE__ */ jsx13(
1194
+ return /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsx15(
1043
1195
  "a",
1044
1196
  {
1045
1197
  href: withSiteBaseUrl(href),
@@ -1052,10 +1204,10 @@ var SidebarPageLink = ({ title, href, currentHref }) => {
1052
1204
  ) });
1053
1205
  };
1054
1206
  var SidebarGroupDivider = ({ title }) => {
1055
- return /* @__PURE__ */ jsx13("li", { className: "ml-3 mt-2 mb-2 border-b border-base-muted-light text-xs text-base-muted-medium pointer-events-none font-semibold", children: /* @__PURE__ */ jsx13("span", { className: "-ml-3", children: renderInlineMarkdown(title, { codeClassName: "text-sm!" }) }) });
1207
+ return /* @__PURE__ */ jsx15("li", { className: "ml-3 mt-2 mb-2 border-b border-base-muted-light text-xs text-base-muted-medium pointer-events-none font-semibold", children: /* @__PURE__ */ jsx15("span", { className: "-ml-3", children: renderInlineMarkdown(title, { codeClassName: "text-sm!" }) }) });
1056
1208
  };
1057
1209
  var SidebarGroupTitle = ({ title, href, isActive, allowNavigation = false }) => {
1058
- const content = /* @__PURE__ */ jsx13(
1210
+ const content = /* @__PURE__ */ jsx15(
1059
1211
  "span",
1060
1212
  {
1061
1213
  className: cmMerge6(
@@ -1066,7 +1218,7 @@ var SidebarGroupTitle = ({ title, href, isActive, allowNavigation = false }) =>
1066
1218
  }
1067
1219
  );
1068
1220
  if (allowNavigation && href) {
1069
- return /* @__PURE__ */ jsx13(
1221
+ return /* @__PURE__ */ jsx15(
1070
1222
  "a",
1071
1223
  {
1072
1224
  href: withSiteBaseUrl(href),
@@ -1078,19 +1230,19 @@ var SidebarGroupTitle = ({ title, href, isActive, allowNavigation = false }) =>
1078
1230
  }
1079
1231
  );
1080
1232
  }
1081
- return /* @__PURE__ */ jsx13("span", { className: "flex items-center gap-2 text-base-content", children: content });
1233
+ return /* @__PURE__ */ jsx15("span", { className: "flex items-center gap-2 text-base-content", children: content });
1082
1234
  };
1083
1235
  var renderSidebarItems = (items, currentHref) => {
1084
1236
  return items.map((item) => {
1085
1237
  if (item.kind === "page") {
1086
- return /* @__PURE__ */ jsx13(SidebarPageLink, { title: item.navTitle, href: item.href, currentHref }, item.id);
1238
+ return /* @__PURE__ */ jsx15(SidebarPageLink, { title: item.navTitle, href: item.href, currentHref }, item.id);
1087
1239
  }
1088
- return /* @__PURE__ */ jsx13(SidebarNestedGroup, { group: item, currentHref }, item.id);
1240
+ return /* @__PURE__ */ jsx15(SidebarNestedGroup, { group: item, currentHref }, item.id);
1089
1241
  });
1090
1242
  };
1091
1243
  var SidebarItemList = ({ items, currentHref }) => {
1092
1244
  const visibleItems = getVisibleNavItems(items);
1093
- return /* @__PURE__ */ jsx13("ul", { className: "menu w-full", children: renderSidebarItems(visibleItems, currentHref) });
1245
+ return /* @__PURE__ */ jsx15("ul", { className: "menu w-full", children: renderSidebarItems(visibleItems, currentHref) });
1094
1246
  };
1095
1247
  var SidebarNestedGroup = ({ group, currentHref }) => {
1096
1248
  const groupHref = getGroupHref(group);
@@ -1101,14 +1253,14 @@ var SidebarNestedGroup = ({ group, currentHref }) => {
1101
1253
  const { isOpen, setIsOpen } = useAutoOpenDetails(`group:${group.id}`, isOpenByDefault, nestedHasActiveItem);
1102
1254
  if (!isCollapsible) {
1103
1255
  if (!group.title) {
1104
- return /* @__PURE__ */ jsx13(Fragment5, { children: renderSidebarItems(visibleItems, currentHref) });
1256
+ return /* @__PURE__ */ jsx15(Fragment6, { children: renderSidebarItems(visibleItems, currentHref) });
1105
1257
  }
1106
- return /* @__PURE__ */ jsxs12(Fragment5, { children: [
1107
- /* @__PURE__ */ jsx13(SidebarGroupDivider, { title: group.title }),
1258
+ return /* @__PURE__ */ jsxs12(Fragment6, { children: [
1259
+ /* @__PURE__ */ jsx15(SidebarGroupDivider, { title: group.title }),
1108
1260
  renderSidebarItems(visibleItems, currentHref)
1109
1261
  ] });
1110
1262
  }
1111
- return /* @__PURE__ */ jsx13("li", { children: /* @__PURE__ */ jsxs12(
1263
+ return /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs12(
1112
1264
  "details",
1113
1265
  {
1114
1266
  open: isOpen,
@@ -1116,7 +1268,7 @@ var SidebarNestedGroup = ({ group, currentHref }) => {
1116
1268
  setIsOpen(event.currentTarget.open);
1117
1269
  },
1118
1270
  children: [
1119
- /* @__PURE__ */ jsx13("summary", { children: /* @__PURE__ */ jsx13(
1271
+ /* @__PURE__ */ jsx15("summary", { children: /* @__PURE__ */ jsx15(
1120
1272
  SidebarGroupTitle,
1121
1273
  {
1122
1274
  title: group.title,
@@ -1125,7 +1277,7 @@ var SidebarNestedGroup = ({ group, currentHref }) => {
1125
1277
  allowNavigation: Boolean(groupHref)
1126
1278
  }
1127
1279
  ) }),
1128
- visibleItems.length > 0 ? /* @__PURE__ */ jsx13(SidebarItemList, { items: visibleItems, currentHref }) : null
1280
+ visibleItems.length > 0 ? /* @__PURE__ */ jsx15(SidebarItemList, { items: visibleItems, currentHref }) : null
1129
1281
  ]
1130
1282
  }
1131
1283
  ) });
@@ -1137,7 +1289,7 @@ var SidebarSectionGroup = ({ section, currentHref, activeSectionId }) => {
1137
1289
  section.id === activeSectionId,
1138
1290
  sectionHasActiveItem
1139
1291
  );
1140
- return /* @__PURE__ */ jsx13("li", { className: "pb-4", children: /* @__PURE__ */ jsxs12(
1292
+ return /* @__PURE__ */ jsx15("li", { className: "pb-4", children: /* @__PURE__ */ jsxs12(
1141
1293
  "details",
1142
1294
  {
1143
1295
  open: isOpen,
@@ -1145,16 +1297,16 @@ var SidebarSectionGroup = ({ section, currentHref, activeSectionId }) => {
1145
1297
  setIsOpen(event.currentTarget.open);
1146
1298
  },
1147
1299
  children: [
1148
- /* @__PURE__ */ jsx13("summary", { children: /* @__PURE__ */ jsx13(SidebarGroupTitle, { title: section.title, isActive: sectionHasActiveItem }) }),
1149
- /* @__PURE__ */ jsx13(SidebarItemList, { items: section.items, currentHref })
1300
+ /* @__PURE__ */ jsx15("summary", { children: /* @__PURE__ */ jsx15(SidebarGroupTitle, { title: section.title, isActive: sectionHasActiveItem }) }),
1301
+ /* @__PURE__ */ jsx15(SidebarItemList, { items: section.items, currentHref })
1150
1302
  ]
1151
1303
  }
1152
1304
  ) });
1153
1305
  };
1154
1306
  var Sidebar = ({ sections, activeSectionId, currentHref, horizontal }) => {
1155
- return /* @__PURE__ */ jsx13("aside", { className: "hidden basis-76 shrink-0 lg:block", children: /* @__PURE__ */ jsxs12("div", { className: "-ml-3 sticky top-16", children: [
1156
- /* @__PURE__ */ jsx13("div", { className: "absolute h-full w-px right-0 top-0 bg-linear-to-t to-base-muted-light via-base-muted-light pointer-events-none z-1" }),
1157
- /* @__PURE__ */ jsx13("div", { className: "pr-4 h-[calc(100svh-16*var(--spacing))] overflow-y-scroll overflow-x-hidden relative z-10", children: /* @__PURE__ */ jsx13("ul", { className: cmMerge6("menu w-full px-0 py-5 li:last-child:border-0"), children: sections.map((section) => /* @__PURE__ */ jsx13(
1307
+ return /* @__PURE__ */ jsx15("aside", { className: "hidden basis-76 shrink-0 lg:block", children: /* @__PURE__ */ jsxs12("div", { className: "-ml-3 sticky top-16", children: [
1308
+ /* @__PURE__ */ jsx15("div", { className: "absolute h-full w-px right-0 top-0 bg-linear-to-t to-base-muted-light via-base-muted-light pointer-events-none z-1" }),
1309
+ /* @__PURE__ */ jsx15("div", { className: "pr-4 h-[calc(100svh-16*var(--spacing))] overflow-y-scroll overflow-x-hidden relative z-10", children: /* @__PURE__ */ jsx15("ul", { className: cmMerge6("menu w-full px-0 py-5 li:last-child:border-0"), children: sections.map((section) => /* @__PURE__ */ jsx15(
1158
1310
  SidebarSectionGroup,
1159
1311
  {
1160
1312
  section,
@@ -1171,7 +1323,7 @@ import cm4, { cmMerge as cmMerge7 } from "@classmatejs/react";
1171
1323
  import { TableOfContentsIcon } from "lucide-react";
1172
1324
  import { useEffect as useEffect7, useState as useState6 } from "react";
1173
1325
  import { useData } from "vike-react/useData";
1174
- import { Fragment as Fragment6, jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
1326
+ import { Fragment as Fragment7, jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
1175
1327
  var getCurrentHash = () => {
1176
1328
  try {
1177
1329
  return decodeURIComponent(window.location.hash);
@@ -1306,13 +1458,13 @@ var TableOfContents = ({ headings, partners }) => {
1306
1458
  updateActiveHeadingFromScroll(setActiveHeadingId);
1307
1459
  });
1308
1460
  }, [headings]);
1309
- return /* @__PURE__ */ jsx14("aside", { className: cmMerge7(page.tableOfContents ? "w-64" : "w-32", "hidden shrink-0 xl:block"), children: /* @__PURE__ */ jsx14("div", { className: "sticky top-16", children: /* @__PURE__ */ jsxs13("div", { className: "relative h-[calc(100svh-16*var(--spacing))] overflow-y-auto overflow-x-hidden pt-10 pb-8", children: [
1310
- page.tableOfContents ? effectiveHeadings.length > 0 && /* @__PURE__ */ jsxs13(Fragment6, { children: [
1461
+ return /* @__PURE__ */ jsx16("aside", { className: cmMerge7(page.tableOfContents ? "w-64" : "w-32", "hidden shrink-0 xl:block"), children: /* @__PURE__ */ jsx16("div", { className: "sticky top-16", children: /* @__PURE__ */ jsxs13("div", { className: "relative h-[calc(100svh-16*var(--spacing))] overflow-y-auto overflow-x-hidden pt-10 pb-8", children: [
1462
+ page.tableOfContents ? effectiveHeadings.length > 0 && /* @__PURE__ */ jsxs13(Fragment7, { children: [
1311
1463
  /* @__PURE__ */ jsxs13("p", { className: "mb-4 flex items-center gap-2 text-xs font-semibold uppercase tracking-widest text-base-muted", children: [
1312
- /* @__PURE__ */ jsx14(TableOfContentsIcon, { className: "h-3 w-3" }),
1464
+ /* @__PURE__ */ jsx16(TableOfContentsIcon, { className: "h-3 w-3" }),
1313
1465
  "On this page"
1314
1466
  ] }),
1315
- /* @__PURE__ */ jsx14("nav", { "aria-label": "On this page", className: "mb-12", children: /* @__PURE__ */ jsx14("ul", { children: effectiveHeadings.map((heading, index) => /* @__PURE__ */ jsx14("li", { children: /* @__PURE__ */ jsx14(
1467
+ /* @__PURE__ */ jsx16("nav", { "aria-label": "On this page", className: "mb-12", children: /* @__PURE__ */ jsx16("ul", { children: effectiveHeadings.map((heading, index) => /* @__PURE__ */ jsx16("li", { children: /* @__PURE__ */ jsx16(
1316
1468
  "a",
1317
1469
  {
1318
1470
  href: `#${heading.id}`,
@@ -1327,24 +1479,24 @@ var TableOfContents = ({ headings, partners }) => {
1327
1479
  }
1328
1480
  ) }, heading.id)) }) })
1329
1481
  ] }) : null,
1330
- /* @__PURE__ */ jsx14(Adbar, { partners })
1482
+ /* @__PURE__ */ jsx16(Adbar, { partners })
1331
1483
  ] }) }) });
1332
1484
  };
1333
1485
  var Adbar = ({ partners }) => {
1334
1486
  if (partners.primary.length === 0 && partners.gold.length === 0) {
1335
1487
  return null;
1336
1488
  }
1337
- return /* @__PURE__ */ jsxs13(Fragment6, { children: [
1489
+ return /* @__PURE__ */ jsxs13(Fragment7, { children: [
1338
1490
  /* @__PURE__ */ jsxs13("ul", { className: "grid grid-cols-[repeat(auto-fit,minmax(5.5rem,1fr))] gap-3 opacity-90", children: [
1339
- partners.primary.map((partner) => /* @__PURE__ */ jsx14(AdbarItem, { className: "col-span-full", children: /* @__PURE__ */ jsx14(AdbarLink, { href: partner.href, title: partner.name, children: /* @__PURE__ */ jsx14(PartnerLogo, { partner }) }) }, partner.name)),
1340
- partners.gold.map((partner) => /* @__PURE__ */ jsx14(AdbarItem, { children: /* @__PURE__ */ jsx14(AdbarLink, { href: partner.href, title: partner.name, children: /* @__PURE__ */ jsx14(PartnerLogo, { partner }) }) }, partner.name))
1491
+ partners.primary.map((partner) => /* @__PURE__ */ jsx16(AdbarItem, { className: "col-span-full", children: /* @__PURE__ */ jsx16(AdbarLink, { href: partner.href, title: partner.name, children: /* @__PURE__ */ jsx16(PartnerLogo, { partner }) }) }, partner.name)),
1492
+ partners.gold.map((partner) => /* @__PURE__ */ jsx16(AdbarItem, { children: /* @__PURE__ */ jsx16(AdbarLink, { href: partner.href, title: partner.name, children: /* @__PURE__ */ jsx16(PartnerLogo, { partner }) }) }, partner.name))
1341
1493
  ] }),
1342
1494
  /* @__PURE__ */ jsxs13(AdbarItem, { className: "col-span-full p-2 text-left mt-3 block!", children: [
1343
- /* @__PURE__ */ jsx14("strong", { className: "text-sm tracking-tighter leading-tight mb-1 block", children: "Your company name here! \u{1F48E} " }),
1495
+ /* @__PURE__ */ jsx16("strong", { className: "text-sm tracking-tighter leading-tight mb-1 block", children: "Your company name here! \u{1F48E} " }),
1344
1496
  /* @__PURE__ */ jsxs13("p", { className: "text-xs text-base-muted", children: [
1345
1497
  "Hey, this is a classic text ad here!",
1346
1498
  " ",
1347
- /* @__PURE__ */ jsx14("a", { href: "#adlink", className: "text-info", children: "link" }),
1499
+ /* @__PURE__ */ jsx16("a", { href: "#adlink", className: "text-info", children: "link" }),
1348
1500
  " ",
1349
1501
  "to some thing"
1350
1502
  ] })
@@ -1354,8 +1506,8 @@ var Adbar = ({ partners }) => {
1354
1506
  var PartnerLogo = ({
1355
1507
  partner
1356
1508
  }) => {
1357
- return /* @__PURE__ */ jsxs13(Fragment6, { children: [
1358
- /* @__PURE__ */ jsx14(
1509
+ return /* @__PURE__ */ jsxs13(Fragment7, { children: [
1510
+ /* @__PURE__ */ jsx16(
1359
1511
  Image,
1360
1512
  {
1361
1513
  src: partner.logoLight,
@@ -1365,7 +1517,7 @@ var PartnerLogo = ({
1365
1517
  className: cmMerge7("block", partner.logoDark ? "dark:hidden" : "dark:invert")
1366
1518
  }
1367
1519
  ),
1368
- partner.logoDark ? /* @__PURE__ */ jsx14(Image, { src: partner.logoDark, width: 200, height: 100, alt: partner.logoAlt, className: "hidden dark:block" }) : null
1520
+ partner.logoDark ? /* @__PURE__ */ jsx16(Image, { src: partner.logoDark, width: 200, height: 100, alt: partner.logoAlt, className: "hidden dark:block" }) : null
1369
1521
  ] });
1370
1522
  };
1371
1523
  var AdbarItem = cm4.div`
@@ -1484,9 +1636,9 @@ var getMdxRuntimeValue = (options) => {
1484
1636
  };
1485
1637
 
1486
1638
  // src/runtime/client/DocsPage.tsx
1487
- import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
1639
+ import { jsx as jsx17, jsxs as jsxs14 } from "react/jsx-runtime";
1488
1640
  var DocsPage = ({ Content }) => {
1489
- const pageContext = usePageContext4();
1641
+ const pageContext = usePageContext6();
1490
1642
  const docs = getDocsGlobalContext(pageContext);
1491
1643
  const { page, headings, previousPage, nextPage } = useData2();
1492
1644
  return /* @__PURE__ */ jsxs14(
@@ -1497,18 +1649,18 @@ var DocsPage = ({ Content }) => {
1497
1649
  currentPathname: pageContext.urlPathname
1498
1650
  }),
1499
1651
  children: [
1500
- /* @__PURE__ */ jsx15("div", { className: "absolute top-0 left-0 w-full h-[60svh] bg-radial-[at_65%_-85%] from-primary-muted-light to-65%" }),
1501
- /* @__PURE__ */ jsx15(LayoutComponent, { children: /* @__PURE__ */ jsxs14("div", { className: "lg:flex lg:gap-10 xl:gap-14", children: [
1502
- /* @__PURE__ */ jsx15(Sidebar, { sections: docs.sidebarSections, activeSectionId: page.sectionId, currentHref: page.href }),
1652
+ /* @__PURE__ */ jsx17("div", { className: "absolute top-0 left-0 w-full h-[60svh] bg-radial-[at_65%_-85%] from-primary-muted-light to-65%" }),
1653
+ /* @__PURE__ */ jsx17(LayoutComponent, { children: /* @__PURE__ */ jsxs14("div", { className: "lg:flex lg:gap-10 xl:gap-14", children: [
1654
+ /* @__PURE__ */ jsx17(Sidebar, { sections: docs.sidebarSections, activeSectionId: page.sectionId, currentHref: page.href }),
1503
1655
  /* @__PURE__ */ jsxs14("main", { className: "mt-10 min-w-0 flex-1 basis-auto shrink", children: [
1504
1656
  /* @__PURE__ */ jsxs14(ProseContainer, { "data-doc-content": "", children: [
1505
- /* @__PURE__ */ jsx15("h1", { className: "scroll-mt-24", children: renderInlineMarkdown(page.title) }),
1506
- /* @__PURE__ */ jsx15(Content, {})
1657
+ /* @__PURE__ */ jsx17("h1", { className: "scroll-mt-24", children: renderInlineMarkdown(page.title) }),
1658
+ /* @__PURE__ */ jsx17(Content, {})
1507
1659
  ] }),
1508
- docs.footer.pagination ? /* @__PURE__ */ jsx15(DocsPagination, { previousPage, nextPage }) : null,
1509
- /* @__PURE__ */ jsx15(DocsFooter, { brand: docs.brand })
1660
+ docs.footer.pagination ? /* @__PURE__ */ jsx17(DocsPagination, { previousPage, nextPage }) : null,
1661
+ /* @__PURE__ */ jsx17(DocsFooter, { brand: docs.brand })
1510
1662
  ] }),
1511
- /* @__PURE__ */ jsx15(TableOfContents, { headings, partners: docs.partners })
1663
+ /* @__PURE__ */ jsx17(TableOfContents, { headings, partners: docs.partners })
1512
1664
  ] }) })
1513
1665
  ]
1514
1666
  }
@@ -1516,6 +1668,8 @@ var DocsPage = ({ Content }) => {
1516
1668
  };
1517
1669
 
1518
1670
  export {
1671
+ useDocsSearchStore,
1672
+ useDocsSearchActions,
1519
1673
  LayoutComponent,
1520
1674
  useDocsUserSettingsStore,
1521
1675
  DEFAULT_THEME_PREFERENCE,
@@ -1526,4 +1680,4 @@ export {
1526
1680
  ProseContainer,
1527
1681
  DocsPage
1528
1682
  };
1529
- //# sourceMappingURL=chunk-DSQGGUBC.js.map
1683
+ //# sourceMappingURL=chunk-RJMKSYUK.js.map