boltdocs 2.5.5 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/bin/boltdocs.js +2 -2
  2. package/dist/client/index.cjs +6 -0
  3. package/dist/client/index.d.cts +1560 -0
  4. package/dist/client/index.d.ts +1219 -922
  5. package/dist/client/index.js +6 -1
  6. package/dist/client/theme/neutral.css +428 -0
  7. package/dist/node/cli-entry.cjs +8 -0
  8. package/dist/node/cli-entry.d.cts +2 -0
  9. package/dist/node/cli-entry.d.mts +2 -1
  10. package/dist/node/cli-entry.mjs +7 -5
  11. package/dist/node/index.cjs +6 -0
  12. package/dist/node/index.d.cts +519 -0
  13. package/dist/node/index.d.mts +374 -422
  14. package/dist/node/index.mjs +6 -1
  15. package/dist/node-BgvNl2Ay.mjs +89 -0
  16. package/dist/node-vkbb0MK7.cjs +89 -0
  17. package/dist/package-CR0HF9x3.mjs +6 -0
  18. package/dist/package-Dgmsc_l5.cjs +6 -0
  19. package/dist/search-dialog-3lvKsbVG.js +6 -0
  20. package/dist/search-dialog-DMK5OpgH.cjs +6 -0
  21. package/dist/use-search-C9bxCqfF.js +6 -0
  22. package/dist/use-search-DcfZSunO.cjs +6 -0
  23. package/package.json +26 -25
  24. package/src/client/app/config-context.tsx +38 -5
  25. package/src/client/app/doc-page.tsx +34 -0
  26. package/src/client/app/mdx-component.tsx +2 -3
  27. package/src/client/app/mdx-components-context.tsx +27 -2
  28. package/src/client/app/routes-context.tsx +34 -0
  29. package/src/client/app/scroll-handler.tsx +7 -4
  30. package/src/client/app/theme-context.tsx +71 -67
  31. package/src/client/components/default-layout.tsx +34 -33
  32. package/src/client/components/docs-layout.tsx +1 -2
  33. package/src/client/components/icons-dev.tsx +36 -5
  34. package/src/client/components/mdx/admonition.tsx +11 -27
  35. package/src/client/components/mdx/badge.tsx +1 -1
  36. package/src/client/components/mdx/button.tsx +3 -3
  37. package/src/client/components/mdx/card.tsx +1 -1
  38. package/src/client/components/mdx/code-block.tsx +90 -80
  39. package/src/client/components/mdx/component-preview.tsx +1 -5
  40. package/src/client/components/mdx/component-props.tsx +1 -1
  41. package/src/client/components/mdx/field.tsx +4 -5
  42. package/src/client/components/mdx/file-tree.tsx +6 -3
  43. package/src/client/components/mdx/hooks/use-code-block.ts +2 -2
  44. package/src/client/components/mdx/image.tsx +1 -1
  45. package/src/client/components/mdx/link.tsx +2 -2
  46. package/src/client/components/mdx/list.tsx +1 -1
  47. package/src/client/components/mdx/table.tsx +1 -1
  48. package/src/client/components/mdx/tabs.tsx +1 -1
  49. package/src/client/components/primitives/breadcrumbs.tsx +1 -7
  50. package/src/client/components/primitives/button-group.tsx +1 -1
  51. package/src/client/components/primitives/button.tsx +1 -1
  52. package/src/client/components/primitives/code-block.tsx +113 -0
  53. package/src/client/components/primitives/link.tsx +23 -41
  54. package/src/client/components/primitives/menu.tsx +5 -6
  55. package/src/client/components/primitives/navbar.tsx +6 -18
  56. package/src/client/components/primitives/navigation-menu.tsx +4 -4
  57. package/src/client/components/primitives/on-this-page.tsx +6 -10
  58. package/src/client/components/primitives/page-nav.tsx +4 -9
  59. package/src/client/components/primitives/popover.tsx +1 -1
  60. package/src/client/components/primitives/search-dialog.tsx +3 -6
  61. package/src/client/components/primitives/sidebar.tsx +80 -22
  62. package/src/client/components/primitives/skeleton.tsx +1 -1
  63. package/src/client/components/primitives/tabs.tsx +4 -11
  64. package/src/client/components/primitives/tooltip.tsx +3 -3
  65. package/src/client/components/ui-base/breadcrumbs.tsx +4 -6
  66. package/src/client/components/ui-base/copy-markdown.tsx +2 -7
  67. package/src/client/components/ui-base/github-stars.tsx +2 -2
  68. package/src/client/components/ui-base/head.tsx +58 -51
  69. package/src/client/components/ui-base/loading.tsx +2 -2
  70. package/src/client/components/ui-base/navbar.tsx +12 -14
  71. package/src/client/components/ui-base/not-found.tsx +1 -1
  72. package/src/client/components/ui-base/on-this-page.tsx +6 -6
  73. package/src/client/components/ui-base/page-nav.tsx +4 -8
  74. package/src/client/components/ui-base/search-dialog.tsx +10 -8
  75. package/src/client/components/ui-base/sidebar.tsx +76 -23
  76. package/src/client/components/ui-base/tabs.tsx +9 -8
  77. package/src/client/components/ui-base/theme-toggle.tsx +2 -2
  78. package/src/client/hooks/use-i18n.ts +3 -3
  79. package/src/client/hooks/use-localized-to.ts +1 -1
  80. package/src/client/hooks/use-navbar.ts +8 -6
  81. package/src/client/hooks/use-routes.ts +19 -11
  82. package/src/client/hooks/use-search.ts +1 -1
  83. package/src/client/hooks/use-sidebar.ts +48 -2
  84. package/src/client/hooks/use-tabs.ts +6 -2
  85. package/src/client/hooks/use-version.ts +3 -3
  86. package/src/client/index.ts +22 -22
  87. package/src/client/ssg/boltdocs-shell.tsx +127 -0
  88. package/src/client/ssg/create-routes.tsx +179 -0
  89. package/src/client/ssg/index.ts +3 -0
  90. package/src/client/ssg/mdx-page.tsx +37 -0
  91. package/src/client/store/boltdocs-context.tsx +66 -0
  92. package/src/client/theme/neutral.css +90 -50
  93. package/src/client/types.ts +5 -33
  94. package/src/client/utils/react-to-text.ts +34 -0
  95. package/CHANGELOG.md +0 -98
  96. package/dist/cache-3FOEPC2P.mjs +0 -1
  97. package/dist/chunk-5B5NKOW6.mjs +0 -77
  98. package/dist/chunk-J2PTDWZM.mjs +0 -1
  99. package/dist/chunk-TP5KMRD3.mjs +0 -1
  100. package/dist/chunk-Y4RE5KI7.mjs +0 -1
  101. package/dist/client/index.d.mts +0 -1263
  102. package/dist/client/index.mjs +0 -1
  103. package/dist/client/ssr.d.mts +0 -78
  104. package/dist/client/ssr.d.ts +0 -78
  105. package/dist/client/ssr.js +0 -1
  106. package/dist/client/ssr.mjs +0 -1
  107. package/dist/node/cli-entry.d.ts +0 -1
  108. package/dist/node/cli-entry.js +0 -82
  109. package/dist/node/index.d.ts +0 -567
  110. package/dist/node/index.js +0 -77
  111. package/dist/package-QFIAETHR.mjs +0 -1
  112. package/dist/search-dialog-O6VLVSOA.mjs +0 -1
  113. package/src/client/app/index.tsx +0 -345
  114. package/src/client/app/mdx-page.tsx +0 -15
  115. package/src/client/app/preload.tsx +0 -66
  116. package/src/client/app/router.tsx +0 -30
  117. package/src/client/integrations/codesandbox.ts +0 -179
  118. package/src/client/integrations/index.ts +0 -1
  119. package/src/client/ssr.tsx +0 -65
  120. package/src/client/store/use-boltdocs-store.ts +0 -44
  121. package/src/node/cache.ts +0 -408
  122. package/src/node/cli/build.ts +0 -53
  123. package/src/node/cli/dev.ts +0 -22
  124. package/src/node/cli/doctor.ts +0 -243
  125. package/src/node/cli/index.ts +0 -9
  126. package/src/node/cli/ui.ts +0 -54
  127. package/src/node/cli-entry.ts +0 -24
  128. package/src/node/config.ts +0 -382
  129. package/src/node/errors.ts +0 -44
  130. package/src/node/index.ts +0 -84
  131. package/src/node/mdx/cache.ts +0 -12
  132. package/src/node/mdx/highlighter.ts +0 -47
  133. package/src/node/mdx/index.ts +0 -122
  134. package/src/node/mdx/rehype-shiki.ts +0 -62
  135. package/src/node/mdx/remark-code-meta.ts +0 -35
  136. package/src/node/mdx/remark-shiki.ts +0 -61
  137. package/src/node/plugin/entry.ts +0 -87
  138. package/src/node/plugin/html.ts +0 -99
  139. package/src/node/plugin/index.ts +0 -478
  140. package/src/node/plugin/types.ts +0 -9
  141. package/src/node/plugins/index.ts +0 -17
  142. package/src/node/plugins/plugin-errors.ts +0 -62
  143. package/src/node/plugins/plugin-lifecycle.ts +0 -117
  144. package/src/node/plugins/plugin-sandbox.ts +0 -59
  145. package/src/node/plugins/plugin-store.ts +0 -54
  146. package/src/node/plugins/plugin-types.ts +0 -107
  147. package/src/node/plugins/plugin-validator.ts +0 -105
  148. package/src/node/routes/cache.ts +0 -28
  149. package/src/node/routes/index.ts +0 -293
  150. package/src/node/routes/parser.ts +0 -262
  151. package/src/node/routes/sorter.ts +0 -42
  152. package/src/node/routes/types.ts +0 -61
  153. package/src/node/schema/config.ts +0 -195
  154. package/src/node/schema/frontmatter.ts +0 -17
  155. package/src/node/search/index.ts +0 -55
  156. package/src/node/security/constants/index.ts +0 -10
  157. package/src/node/security/csp.ts +0 -31
  158. package/src/node/security/headers.ts +0 -27
  159. package/src/node/ssg/index.ts +0 -205
  160. package/src/node/ssg/meta.ts +0 -33
  161. package/src/node/ssg/options.ts +0 -15
  162. package/src/node/ssg/robots.ts +0 -53
  163. package/src/node/ssg/sitemap.ts +0 -55
  164. package/src/node/utils.ts +0 -349
  165. package/tsconfig.json +0 -26
  166. package/tsup.config.ts +0 -56
@@ -1,875 +1,902 @@
1
- import * as vite from 'vite';
2
- import { Plugin } from 'vite';
3
- import * as React$1 from 'react';
4
- import React__default, { Component, ReactNode, ErrorInfo, ComponentPropsWithoutRef, ImgHTMLAttributes, RefObject } from 'react';
5
- import * as react_router_dom from 'react-router-dom';
6
- import { LinkProps as LinkProps$2 } from 'react-router-dom';
7
- import * as react_jsx_runtime from 'react/jsx-runtime';
8
- import * as class_variance_authority_types from 'class-variance-authority/types';
9
- import * as RAC from 'react-aria-components';
10
- import { LinkProps as LinkProps$3 } from 'react-aria-components';
11
- import { VariantProps } from 'class-variance-authority';
12
- import { ClassValue } from 'clsx';
13
-
14
- /**
15
- * Permissions that a plugin can request to access specific Boltdocs capabilities.
16
- */
17
- type PluginPermission = 'fs:read' | 'fs:write' | 'vite:config' | 'mdx:remark' | 'mdx:rehype' | 'components' | 'hooks:build' | 'hooks:dev';
18
- /**
19
- * Shared context injected into every plugin lifecycle hook.
20
- */
21
- interface PluginContext {
22
- /** The full, resolved Boltdocs configuration (Readonly) */
23
- readonly config: BoltdocsConfig;
24
- /** A plugin-specific logger */
25
- readonly logger: PluginLogger;
26
- /** A shared store for dependency injection and state sharing between plugins */
27
- readonly store: PluginStore;
28
- /** Metadata about the current plugin */
29
- readonly meta: PluginMeta;
30
- }
31
- /**
32
- * Simple logger interface for plugins.
33
- */
34
- interface PluginLogger {
35
- info(message: string): void;
36
- warn(message: string): void;
37
- error(message: string | Error): void;
38
- debug(message: string): void;
39
- }
40
- /**
41
- * A shared key-value store that allows plugins to share state and configuration.
42
- */
43
- interface PluginStore {
44
- /** Get a value from the store. Keys are namespaced by plugin internally. */
45
- get<T = unknown>(pluginName: string, key: string): T | undefined;
46
- /** Set a value in the store. */
47
- set(pluginName: string, key: string, value: unknown): void;
48
- /** Check if a key exists in the store. */
49
- has(pluginName: string, key: string): boolean;
50
- }
51
- /**
52
- * Metadata for a plugin, used for identification and compatibility checks.
53
- */
54
- interface PluginMeta {
55
- /** Unique identifier for the plugin */
56
- name: string;
57
- /** Version of the plugin itself (semver) */
58
- version?: string;
59
- /** Minimum required version of Boltdocs (semver range) */
60
- boltdocsVersion?: string;
61
- }
62
- /**
63
- * Lifecycle hooks that a plugin can implement to hook into the build and dev processes.
64
- */
65
- interface PluginLifecycleHooks {
66
- /** Called before the build process starts */
67
- beforeBuild?: (ctx: PluginContext) => Promise<void> | void;
68
- /** Called after the build process finishes successfully */
69
- afterBuild?: (ctx: PluginContext) => Promise<void> | void;
70
- /** Called before the dev server starts */
71
- beforeDev?: (ctx: PluginContext) => Promise<void> | void;
72
- /** Called after the dev server is ready (configureServer) */
73
- afterDev?: (ctx: PluginContext) => Promise<void> | void;
74
- /** Called when the final Boltdocs config is resolved */
75
- configResolved?: (ctx: PluginContext, config: BoltdocsConfig) => void;
76
- /** Called when the build is closing */
77
- buildEnd?: (ctx: PluginContext) => Promise<void> | void;
78
- }
79
1
 
2
+ import * as _$react_router_dom0 from "react-router-dom";
3
+ import { LinkProps as LinkProps$1 } from "react-router-dom";
4
+ import * as _$react from "react";
5
+ import { Component, ComponentPropsWithoutRef, ErrorInfo, ImgHTMLAttributes, ReactNode, RefObject } from "react";
6
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
7
+ import * as RAC from "react-aria-components";
8
+ import { LinkProps as LinkProps$2 } from "react-aria-components";
9
+ import { ClassValue } from "clsx";
10
+ import { VariantProps } from "class-variance-authority";
11
+ import { Plugin } from "vite";
12
+ import { RouteRecord } from "@bdocs/ssg";
13
+ import * as _$class_variance_authority_types0 from "class-variance-authority/types";
14
+
15
+ //#region src/shared/types.d.ts
80
16
  /**
81
17
  * Represents a single social link in the configuration.
82
18
  */
83
19
  interface BoltdocsSocialLink {
84
- /** Identifier for the icon (e.g., 'github') */
85
- icon: 'discord' | 'x' | 'github' | 'bluesky' | string;
86
- /** The URL the social link points to */
87
- link: string;
20
+ icon: 'discord' | 'x' | 'github' | 'bluesky' | string;
21
+ link: string;
88
22
  }
89
23
  /**
90
24
  * Configuration for the site footer.
91
25
  */
92
26
  interface BoltdocsFooterConfig {
93
- /** Text to display in the footer (HTML is supported) */
94
- text?: string;
27
+ text?: string;
95
28
  }
96
29
  /**
97
- * Theme-specific configuration options governing the appearance and navigation of the site.
30
+ * Theme-specific configuration options.
98
31
  */
99
32
  interface BoltdocsThemeConfig {
100
- /** The global title of the documentation site (can be translated) */
101
- title?: string | Record<string, string>;
102
- /** The global description of the site (can be translated) */
103
- description?: string | Record<string, string>;
104
- /** URL path to the site logo or an object for light/dark versions */
105
- logo?: string | {
106
- dark: string;
107
- light: string;
108
- alt?: string;
109
- width?: number;
110
- height?: number;
111
- };
112
- /** Items to display in the top navigation bar */
113
- navbar?: Array<{
114
- /** Text to display (can be a string or a map of translations) */
115
- label: string | Record<string, string>;
116
- /** URL path or external link */
117
- href: string;
118
- }>;
119
- /** Items to display in the sidebar, organized optionally by group URLs */
120
- sidebar?: Record<string, Array<{
121
- text: string;
122
- link: string;
123
- }>>;
124
- /** Social links to display in the navigation bar */
125
- socialLinks?: BoltdocsSocialLink[];
126
- /** Site footer configuration */
127
- footer?: BoltdocsFooterConfig;
128
- /** Whether to show breadcrumbs navigation (default: true) */
129
- breadcrumbs?: boolean;
130
- /** URL template for 'Edit this page'. Use :path as a placeholder. */
131
- editLink?: string;
132
- /** URL for the 'Community help' link. */
133
- communityHelp?: string;
134
- /** The current version of the project (e.g., 'v2.8.9'). Displayed in the Navbar. */
135
- version?: string;
136
- /** The GitHub repository in the format 'owner/repo' to fetch and display star count. */
137
- githubRepo?: string;
138
- /**
139
- * URL path to the site favicon.
140
- * If not specified, the logo will be used if available.
141
- */
142
- favicon?: string;
143
- /**
144
- * The Open Graph image URL to display when the site is shared on social media.
145
- */
146
- ogImage?: string;
147
- /** Whether to show the 'Powered by LiteDocs' badge in the sidebar (default: true) */
148
- poweredBy?: boolean;
149
- /**
150
- * Top-level tabs for organizing documentation groups.
151
- * Tab discovery uses the (tab-id) directory syntax.
152
- */
153
- tabs?: Array<{
154
- id: string;
155
- /** Text to display (can be a string or a map of translations) */
156
- text: string | Record<string, string>;
157
- icon?: string;
158
- }>;
159
- /**
160
- * The syntax highlighting theme for code blocks.
161
- * Supports any Shiki theme name (e.g., 'github-dark', 'one-dark-pro', 'aurora-x').
162
- * Can also be an object for multiple themes (e.g., { light: 'github-light', dark: 'github-dark' }).
163
- * Default: { light: 'github-light', dark: 'one-dark-pro' }
164
- */
165
- codeTheme?: string | {
166
- light: string;
167
- dark: string;
168
- };
169
- /**
170
- * Configuration for the 'Copy Markdown' button.
171
- * Can be a boolean or an object with text and icon.
172
- * Default: true
173
- */
174
- copyMarkdown?: boolean | {
175
- text?: string;
176
- icon?: string;
177
- };
33
+ title?: string | Record<string, string>;
34
+ description?: string | Record<string, string>;
35
+ logo?: string | {
36
+ dark: string;
37
+ light: string;
38
+ alt?: string;
39
+ width?: number;
40
+ height?: number;
41
+ };
42
+ navbar?: Array<{
43
+ label: string | Record<string, string>;
44
+ href: string;
45
+ }>;
46
+ sidebar?: Record<string, Array<{
47
+ text: string;
48
+ link: string;
49
+ }>>;
50
+ sidebarGroups?: Record<string, {
51
+ title?: string;
52
+ icon?: string;
53
+ }>;
54
+ socialLinks?: BoltdocsSocialLink[];
55
+ footer?: BoltdocsFooterConfig;
56
+ breadcrumbs?: boolean;
57
+ editLink?: string;
58
+ communityHelp?: string;
59
+ version?: string;
60
+ githubRepo?: string;
61
+ favicon?: string;
62
+ poweredBy?: boolean;
63
+ tabs?: Array<{
64
+ id: string;
65
+ text: string | Record<string, string>;
66
+ icon?: string;
67
+ }>;
68
+ codeTheme?: ShikiTheme | {
69
+ light: ShikiTheme;
70
+ dark: ShikiTheme;
71
+ };
72
+ copyMarkdown?: boolean | {
73
+ text?: string;
74
+ icon?: string;
75
+ };
178
76
  }
77
+ /**
78
+ * List of supported syntax highlighting themes.
79
+ */
80
+ type ShikiTheme = 'github-dark' | 'github-light' | 'tokyo-night' | 'dracula' | 'nord' | 'one-dark-pro' | 'one-light';
179
81
  /**
180
82
  * Configuration for the robots.txt file.
181
83
  */
182
84
  type BoltdocsRobotsConfig = string | {
183
- /** User-agent rules */
184
- rules?: Array<{
185
- userAgent: string;
186
- /** Paths allowed to be crawled */
187
- allow?: string | string[];
188
- /** Paths disallowed to be crawled */
189
- disallow?: string | string[];
190
- }>;
191
- /** Sitemaps to include in the robots.txt */
192
- sitemaps?: string[];
85
+ rules?: Array<{
86
+ userAgent: string;
87
+ allow?: string | string[];
88
+ disallow?: string | string[];
89
+ }>;
90
+ sitemaps?: string[];
193
91
  };
194
92
  /**
195
93
  * Configuration for a specific locale.
196
94
  */
197
95
  interface BoltdocsLocaleConfig {
198
- /** The display name of the locale */
199
- label?: string;
200
- /** The text direction (ltr or rtl) */
201
- direction?: 'ltr' | 'rtl';
202
- /** The HTML lang attribute value (e.g., 'en-US') */
203
- htmlLang?: string;
204
- /** The calendar system to use (e.g., 'gregory') */
205
- calendar?: string;
96
+ label?: string;
97
+ direction?: 'ltr' | 'rtl';
98
+ htmlLang?: string;
99
+ calendar?: string;
206
100
  }
207
101
  /**
208
102
  * Configuration for internationalization (i18n).
209
103
  */
210
104
  interface BoltdocsI18nConfig {
211
- /** The default locale (e.g., 'en') */
212
- defaultLocale: string;
213
- /** Available locales and their basic display names (e.g., { en: 'English', es: 'Español' }) */
214
- locales: Record<string, string>;
215
- /** Detailed configuration for each locale */
216
- localeConfigs?: Record<string, BoltdocsLocaleConfig>;
105
+ defaultLocale: string;
106
+ locales: Record<string, string>;
107
+ localeConfigs?: Record<string, BoltdocsLocaleConfig>;
217
108
  }
218
109
  /**
219
110
  * Configuration for a specific documentation version.
220
111
  */
221
112
  interface BoltdocsVersionConfig {
222
- /** The display name of the version (e.g., 'v2.0') */
223
- label: string;
224
- /** The URL path prefix for the version (e.g., '2.0') */
225
- path: string;
113
+ label: string;
114
+ path: string;
226
115
  }
227
116
  /**
228
117
  * Configuration for documentation versioning.
229
118
  */
230
119
  interface BoltdocsVersionsConfig {
231
- /** The default version path (e.g., 'v2') */
232
- defaultVersion: string;
233
- /**
234
- * Optional prefix for all version paths (e.g., 'v').
235
- * If set to 'v', version '1.1' will be available at '/docs/v1.1'.
236
- */
237
- prefix?: string;
238
- /** Available versions configurations */
239
- versions: BoltdocsVersionConfig[];
120
+ defaultVersion: string;
121
+ prefix?: string;
122
+ versions: BoltdocsVersionConfig[];
240
123
  }
241
124
  /**
242
- * Defines a Boltdocs plugin that can extend the build process and client-side functionality.
125
+ * Defines a Boltdocs plugin.
243
126
  */
244
127
  interface BoltdocsPlugin {
245
- /** A unique name for the plugin */
246
- name: string;
247
- /** Whether to run this plugin before or after default ones (optional) */
248
- enforce?: 'pre' | 'post';
249
- /** Version of the plugin (optional) */
250
- version?: string;
251
- /** Minimum compatible Boltdocs version (optional, semver range) */
252
- boltdocsVersion?: string;
253
- /** List of permissions this plugin requires to operate */
254
- permissions?: PluginPermission[];
255
- /** Optional remark plugins to add to the MDX pipeline */
256
- remarkPlugins?: unknown[];
257
- /** Optional rehype plugins to add to the MDX pipeline */
258
- rehypePlugins?: unknown[];
259
- /** Optional Vite plugins to inject into the build process */
260
- vitePlugins?: Plugin[];
261
- /** Optional custom React components to register in MDX. Map of Name -> Module Path. */
262
- components?: Record<string, string>;
263
- /** Implementation of lifecycle hooks */
264
- hooks?: PluginLifecycleHooks;
128
+ name: string;
129
+ enforce?: 'pre' | 'post';
130
+ version?: string;
131
+ boltdocsVersion?: string;
132
+ permissions?: string[];
133
+ remarkPlugins?: unknown[];
134
+ rehypePlugins?: unknown[];
135
+ vitePlugins?: Plugin[];
136
+ components?: Record<string, string>;
137
+ hooks?: Record<string, any>;
265
138
  }
266
139
  /**
267
140
  * Configuration for security-related settings.
268
141
  */
269
142
  interface BoltdocsSecurityConfig {
270
- /** Map of standard security headers to override or supplement defaults */
271
- headers?: Record<string, string>;
272
- /** Whether to enable Content Security Policy (CSP) generation (default: false) */
273
- enableCSP?: boolean;
274
- /** Additional custom headers to inject into responses */
275
- customHeaders?: Record<string, string>;
143
+ headers?: Record<string, string>;
144
+ enableCSP?: boolean;
145
+ customHeaders?: Record<string, string>;
276
146
  }
277
147
  /**
278
- * The root configuration object for Boltdocs.
148
+ * Configuration for SEO.
279
149
  */
280
- interface BoltdocsConfig {
281
- /** The base URL of the site, used for generating the sitemap */
282
- siteUrl?: string;
283
- /** The root directory containing markdown documentation files (default: 'docs') */
284
- docsDir?: string;
285
- /** Path to a custom HomePage component */
286
- homePage?: string;
287
- /** Configuration pertaining to the UI and appearance */
288
- theme?: BoltdocsThemeConfig;
289
- /** Configuration for internationalization */
290
- i18n?: BoltdocsI18nConfig;
291
- /** Configuration for documentation versioning */
292
- versions?: BoltdocsVersionsConfig;
293
- /** Custom plugins for extending functionality */
294
- plugins?: BoltdocsPlugin[];
295
- /** Configuration for the robots.txt file */
296
- robots?: BoltdocsRobotsConfig;
297
- /** Security-related settings and headers */
298
- security?: BoltdocsSecurityConfig;
299
- /** Low-level Vite configuration overrides */
300
- vite?: vite.InlineConfig;
150
+ interface BoltdocsSeoConfig {
151
+ metatags?: Record<string, string>;
152
+ indexing?: 'all' | 'public';
153
+ thumbnails?: {
154
+ background?: string;
155
+ };
301
156
  }
302
-
303
157
  /**
304
- * Metadata provided by the server for a specific route.
305
- * Maps closely to the `RouteMeta` type in the Node environment.
158
+ * The root configuration object for Boltdocs.
306
159
  */
307
- interface ComponentRoute {
308
- /** The final URL path */
309
- path: string;
310
- /** The absolute filesystem path of the source file */
311
- componentPath: string;
312
- /** The page title */
313
- title: string;
314
- /** Explicit order in the sidebar */
315
- sidebarPosition?: number;
316
- /** The relative path from the docs directory */
317
- filePath: string;
318
- /** The group directory name */
319
- group?: string;
320
- /** The display title of the group */
321
- groupTitle?: string;
322
- /** Explicit order of the group in the sidebar */
323
- groupPosition?: number;
324
- /** Extracted markdown headings for search indexing */
325
- headings?: {
326
- level: number;
327
- text: string;
328
- id: string;
329
- }[];
330
- /** The page summary or description */
331
- description?: string;
332
- /** The locale this route belongs to, if i18n is configured */
333
- locale?: string;
334
- /** The version this route belongs to, if versioning is configured */
335
- version?: string;
336
- /** Optional icon to display (Lucide icon name or raw SVG) */
337
- icon?: string;
338
- /** The tab this route belongs to, if tabs are configured */
339
- tab?: string;
340
- /** Optional badge to display next to the sidebar item */
341
- badge?: string | {
342
- text: 'updated' | 'new' | 'deprecated';
343
- expires?: string;
344
- };
345
- /** Optional icon for the route's group */
346
- groupIcon?: string;
347
- /** The extracted plain-text content of the page for search indexing */
348
- _content?: string;
349
- /** The raw markdown content of the page */
350
- _rawContent?: string;
351
- }
160
+ interface BoltdocsConfig$1 {
161
+ siteUrl?: string;
162
+ docsDir?: string;
163
+ base?: string;
164
+ homePage?: string;
165
+ theme?: BoltdocsThemeConfig;
166
+ i18n?: BoltdocsI18nConfig;
167
+ versions?: BoltdocsVersionsConfig;
168
+ plugins?: BoltdocsPlugin[];
169
+ robots?: BoltdocsRobotsConfig;
170
+ security?: BoltdocsSecurityConfig;
171
+ seo?: BoltdocsSeoConfig;
172
+ vite?: any;
173
+ }
174
+ //#endregion
175
+ //#region src/shared/config-utils.d.ts
352
176
  /**
353
- * Site configuration provided by the server.
177
+ * Type-safe helper for defining Boltdocs configuration.
178
+ * This is an identity function that provides IntelliSense in both
179
+ * Node.js (config files) and client-side code (MDX examples).
180
+ *
181
+ * @param config - The Boltdocs configuration object
354
182
  */
355
- type SiteConfig = BoltdocsConfig;
183
+ declare function defineConfig(config: BoltdocsConfig$1): BoltdocsConfig$1;
184
+ //#endregion
185
+ //#region src/client/types.d.ts
356
186
  /**
357
- * Configuration options for initializing the Boltdocs client app.
187
+ * Metadata provided by the server for a specific route.
188
+ * Maps closely to the `RouteMeta` type in the Node environment.
358
189
  */
359
- interface CreateBoltdocsAppOptions {
360
- /** CSS selector for the DOM element where the app should mount (e.g. '#root') */
361
- target: string;
362
- /** Initial routes generated by the Vite plugin (`virtual:boltdocs-routes`) */
363
- routes: ComponentRoute[];
364
- /** The name of the documentation directory (e.g. 'docs') */
365
- docsDirName: string;
366
- /** Site configuration (`virtual:boltdocs-config`) */
367
- config: SiteConfig;
368
- /** Dynamic import mapping from `import.meta.glob` for the documentation pages */
369
- modules: Record<string, () => Promise<{
370
- default: React__default.ComponentType<any>;
371
- }>>;
372
- /** The `import.meta.hot` instance necessary for fast refresh/HMR updates */
373
- hot?: {
374
- accept: (cb?: (mod: any) => void) => void;
375
- dispose: (cb: (data: any) => void) => void;
376
- on: (event: string, cb: (data: any) => void) => void;
377
- data: any;
378
- };
379
- /** Optional custom React component to render when visiting the root path ('/') */
380
- homePage?: React__default.ComponentType;
381
- /** Custom external pages mapped by their route path */
382
- externalPages?: Record<string, React__default.ComponentType>;
383
- /** Optional custom layout for external pages */
384
- externalLayout?: React__default.ComponentType<{
385
- children: React__default.ReactNode;
386
- }>;
387
- /** Optional custom MDX components provided by plugins */
388
- components?: Record<string, React__default.ComponentType>;
190
+ interface ComponentRoute {
191
+ /** The final URL path */
192
+ path: string;
193
+ /** The absolute filesystem path of the source file */
194
+ componentPath: string;
195
+ /** The page title */
196
+ title: string;
197
+ /** Explicit order in the sidebar */
198
+ sidebarPosition?: number;
199
+ /** The relative path from the docs directory */
200
+ filePath: string;
201
+ /** The group directory name */
202
+ group?: string;
203
+ /** The display title of the group */
204
+ groupTitle?: string;
205
+ /** Explicit order of the group in the sidebar */
206
+ groupPosition?: number;
207
+ /** Extracted markdown headings for search indexing */
208
+ headings?: {
209
+ level: number;
210
+ text: string;
211
+ id: string;
212
+ }[];
213
+ /** The page summary or description */
214
+ description?: string;
215
+ /** The locale this route belongs to, if i18n is configured */
216
+ locale?: string;
217
+ /** The version this route belongs to, if versioning is configured */
218
+ version?: string;
219
+ /** Optional icon to display (Lucide icon name or raw SVG) */
220
+ icon?: string;
221
+ /** The tab this route belongs to, if tabs are configured */
222
+ tab?: string;
223
+ /** Optional badge to display next to the sidebar item */
224
+ badge?: string | {
225
+ text: 'updated' | 'new' | 'deprecated';
226
+ expires?: string;
227
+ };
228
+ /** Optional icon for the route's group */
229
+ groupIcon?: string;
230
+ /** The sub-route group this route belongs to (from folders starting with _) */
231
+ subRouteGroup?: string;
232
+ /** The nested sub-routes if this route acts as the parent of a subRouteGroup */
233
+ subRoutes?: ComponentRoute[];
234
+ /** The extracted plain-text content of the page for search indexing */
235
+ _content?: string;
236
+ /** The raw markdown content of the page */
237
+ _rawContent?: string;
389
238
  }
390
239
  /**
391
240
  * Tab configuration for the documentation site.
392
241
  */
393
242
  interface BoltdocsTab {
394
- id: string;
395
- /** Text to display (can be a string or a map of translations) */
396
- text: string | Record<string, string>;
397
- icon?: string;
243
+ id: string;
244
+ /** Text to display (can be a string or a map of translations) */
245
+ text: string | Record<string, string>;
246
+ icon?: string;
398
247
  }
399
248
  /**
400
249
  * Props for the OnThisPage (TOC) component.
401
250
  */
402
251
  interface OnThisPageProps {
403
- headings?: {
404
- level: number;
405
- text: string;
406
- id: string;
407
- }[];
408
- editLink?: string;
409
- communityHelp?: string;
410
- filePath?: string;
252
+ headings?: {
253
+ level: number;
254
+ text: string;
255
+ id: string;
256
+ }[];
257
+ editLink?: string;
258
+ communityHelp?: string;
259
+ filePath?: string;
411
260
  }
412
261
  /**
413
262
  * Props for user-defined layout components (layout.tsx).
414
263
  */
415
- interface LayoutProps$1 {
416
- children: React__default.ReactNode;
264
+ interface LayoutProps {
265
+ children: React.ReactNode;
417
266
  }
418
267
  /**
419
268
  * Unified type for navbar links.
420
269
  */
421
270
  interface NavbarLink {
422
- /** Label to display (can be a string or a map of translations) */
423
- label: string | Record<string, string>;
424
- href: string;
425
- active: boolean;
426
- /** Optional icon or string for external link indication */
427
- to?: string;
271
+ /** Label to display (can be a string or a map of translations) */
272
+ label: string | Record<string, string>;
273
+ href: string;
274
+ active: boolean;
275
+ /** Optional icon or string for external link indication */
276
+ to?: string;
277
+ }
278
+ //#endregion
279
+ //#region src/client/ssg/create-routes.d.ts
280
+ interface CreateRoutesOptions {
281
+ routesData: ComponentRoute[];
282
+ config: BoltdocsConfig$1;
283
+ mdxModules: Record<string, {
284
+ default?: React.ComponentType;
285
+ }>;
286
+ Layout: React.ComponentType<{
287
+ children: React.ReactNode;
288
+ }>;
289
+ homePage?: React.ComponentType;
290
+ externalPages?: Record<string, React.ComponentType>;
291
+ externalLayout?: React.ComponentType<{
292
+ children: React.ReactNode;
293
+ }>;
294
+ components?: Record<string, React.ComponentType>;
428
295
  }
429
-
296
+ declare function createRoutes(options: CreateRoutesOptions): RouteRecord[];
297
+ //#endregion
298
+ //#region src/client/ssg/mdx-page.d.ts
430
299
  /**
431
- * Creates and mounts the Boltdocs documentation app.
432
- *
433
- * Usage:
434
- * ```tsx
435
- * import { createBoltdocsApp } from 'boltdocs/client'
436
- * import routes from 'virtual:boltdocs-routes'
437
- * import config from 'virtual:boltdocs-config'
438
- * import 'boltdocs/style.css'
439
- * import HomePage from './HomePage'
440
- *
441
- * createBoltdocsApp({
442
- * target: '#root',
443
- * routes,
444
- * config,
445
- * modules: import.meta.glob('/docs/**\/*.{md,mdx}'),
446
- * hot: import.meta.hot,
447
- * homePage: HomePage,
448
- * })
449
- * ```
300
+ * Renders an MDX page by consuming pre-loaded module data.
301
+ * Uses DocPage to ensure consistent layout and metadata application.
450
302
  */
451
- declare function createBoltdocsApp(options: CreateBoltdocsAppOptions): void;
452
-
303
+ declare function MdxPage({
304
+ MDXComponent: propMDX,
305
+ mdxComponents: propComponents
306
+ }: any): _$react_jsx_runtime0.JSX.Element | null;
307
+ //#endregion
308
+ //#region src/client/ssg/boltdocs-shell.d.ts
309
+ declare function BoltdocsShell({
310
+ config,
311
+ routes,
312
+ components
313
+ }: {
314
+ config: BoltdocsConfig$1;
315
+ routes: ComponentRoute[];
316
+ components?: Record<string, React.ComponentType>;
317
+ }): _$react_jsx_runtime0.JSX.Element;
318
+ //#endregion
319
+ //#region src/client/app/config-context.d.ts
453
320
  /**
454
321
  * Hook to access the Boltdocs configuration.
455
322
  */
456
- declare function useConfig(): BoltdocsConfig;
457
-
323
+ declare function useConfig(): BoltdocsConfig$1;
324
+ //#endregion
325
+ //#region src/client/app/theme-context.d.ts
458
326
  type Theme = 'light' | 'dark' | 'system';
327
+ type ResolvedTheme = 'light' | 'dark';
459
328
  interface ThemeContextType {
460
- theme: Theme;
461
- resolvedTheme: 'light' | 'dark';
462
- setTheme: (theme: Theme) => void;
329
+ theme: Theme;
330
+ resolvedTheme: ResolvedTheme;
331
+ setTheme: (theme: Theme) => void;
463
332
  }
464
333
  declare function useTheme(): ThemeContextType;
465
-
334
+ //#endregion
335
+ //#region src/client/hooks/use-routes.d.ts
466
336
  /**
467
337
  * Hook to access the framework's routing state.
468
338
  * Returns both the complete set of routes and a filtered list based on the current
469
339
  * version and locale.
470
340
  */
471
341
  declare function useRoutes(): {
472
- routes: ComponentRoute[];
473
- allRoutes: ComponentRoute[];
474
- currentRoute: ComponentRoute | undefined;
475
- currentLocale: string | undefined;
476
- currentLocaleLabel: string | undefined;
477
- availableLocales: {
478
- key: string;
479
- label: string;
480
- isCurrent: boolean;
481
- }[];
482
- currentVersion: string | undefined;
483
- currentVersionLabel: string | undefined;
484
- availableVersions: {
485
- key: string;
486
- label: string;
487
- isCurrent: boolean;
488
- }[];
489
- config: BoltdocsConfig;
342
+ routes: ComponentRoute[];
343
+ allRoutes: ComponentRoute[];
344
+ currentRoute: ComponentRoute | undefined;
345
+ currentLocale: string | undefined;
346
+ currentLocaleLabel: string | undefined;
347
+ availableLocales: {
348
+ key: string;
349
+ label: string;
350
+ isCurrent: boolean;
351
+ }[];
352
+ currentVersion: string | undefined;
353
+ currentVersionLabel: string | undefined;
354
+ availableVersions: {
355
+ key: string;
356
+ label: string;
357
+ isCurrent: boolean;
358
+ }[];
359
+ config: BoltdocsConfig$1;
490
360
  };
491
-
492
- type MdxComponentsType = Record<string, React.ComponentType<any>>;
493
- declare function useMdxComponents(): MdxComponentsType;
494
-
361
+ //#endregion
362
+ //#region src/client/app/mdx-components-context.d.ts
363
+ declare function useMdxComponents(): any;
364
+ //#endregion
365
+ //#region src/client/hooks/use-navbar.d.ts
495
366
  declare function useNavbar(): {
496
- links: NavbarLink[];
497
- title: string;
498
- logo: any;
499
- logoProps: {
500
- alt: any;
501
- width: any;
502
- height: any;
503
- };
504
- github: string | null;
505
- social: BoltdocsSocialLink[];
506
- config: BoltdocsConfig;
507
- theme: "dark" | "light" | "system";
367
+ links: NavbarLink[];
368
+ title: string;
369
+ logo: any;
370
+ logoProps: {
371
+ alt: any;
372
+ width: any;
373
+ height: any;
374
+ };
375
+ github: string | null;
376
+ social: BoltdocsSocialLink[];
377
+ config: BoltdocsConfig$1;
378
+ theme: Theme;
508
379
  };
509
-
380
+ //#endregion
381
+ //#region src/client/hooks/use-sidebar.d.ts
510
382
  declare function useSidebar(routes: ComponentRoute[]): {
511
- groups: {
512
- slug: string;
513
- title: string;
514
- routes: ComponentRoute[];
515
- icon?: string;
516
- }[];
517
- ungrouped: ComponentRoute[];
518
- activeRoute: ComponentRoute | undefined;
519
- activePath: string;
520
- config: BoltdocsConfig;
383
+ groups: {
384
+ routes: ComponentRoute[];
385
+ slug: string;
386
+ title: string;
387
+ icon?: string;
388
+ }[];
389
+ ungrouped: ComponentRoute[];
390
+ activeRoute: ComponentRoute | undefined;
391
+ activePath: string;
392
+ config: BoltdocsConfig$1;
521
393
  };
522
-
394
+ //#endregion
395
+ //#region src/client/hooks/use-search.d.ts
523
396
  declare function useSearch(routes: ComponentRoute[]): {
524
- isOpen: boolean;
525
- setIsOpen: React$1.Dispatch<React$1.SetStateAction<boolean>>;
526
- query: string;
527
- setQuery: React$1.Dispatch<React$1.SetStateAction<string>>;
528
- list: any[];
529
- input: {
530
- value: string;
531
- onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
532
- };
397
+ isOpen: boolean;
398
+ setIsOpen: _$react.Dispatch<_$react.SetStateAction<boolean>>;
399
+ query: string;
400
+ setQuery: _$react.Dispatch<_$react.SetStateAction<string>>;
401
+ list: any[];
402
+ input: {
403
+ value: string;
404
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
405
+ };
533
406
  };
534
-
407
+ //#endregion
408
+ //#region src/client/hooks/use-onthispage.d.ts
535
409
  interface Heading {
536
- id: string;
537
- text: string;
538
- level: number;
410
+ id: string;
411
+ text: string;
412
+ level: number;
539
413
  }
540
414
  /**
541
415
  * Hook to manage and provide current page headings for the OnThisPage component.
542
416
  */
543
417
  declare function useOnThisPage(headings?: Heading[]): {
544
- headings: Heading[];
545
- activeId: string | null;
546
- setActiveId: React$1.Dispatch<React$1.SetStateAction<string | null>>;
418
+ headings: Heading[];
419
+ activeId: string | null;
420
+ setActiveId: _$react.Dispatch<_$react.SetStateAction<string | null>>;
547
421
  };
548
-
422
+ //#endregion
423
+ //#region src/client/hooks/use-tabs.d.ts
549
424
  declare function useTabs(tabs?: BoltdocsTab[], routes?: ComponentRoute[]): {
550
- tabs: BoltdocsTab[];
551
- activeIndex: number;
552
- indicatorStyle: React$1.CSSProperties;
553
- tabRefs: React$1.RefObject<(HTMLAnchorElement | null)[]>;
554
- activeTabId: string | undefined;
425
+ tabs: BoltdocsTab[];
426
+ activeIndex: number;
427
+ indicatorStyle: _$react.CSSProperties;
428
+ tabRefs: _$react.RefObject<(HTMLAnchorElement | null)[]>;
429
+ activeTabId: string | undefined;
555
430
  };
556
-
431
+ //#endregion
432
+ //#region src/client/hooks/use-version.d.ts
557
433
  interface VersionOption {
558
- key: string;
559
- label: string;
560
- value: string;
561
- isCurrent: boolean;
434
+ key: string;
435
+ label: string;
436
+ value: string;
437
+ isCurrent: boolean;
562
438
  }
563
439
  interface UseVersionReturn {
564
- currentVersion: string | undefined;
565
- currentVersionLabel: string | undefined;
566
- availableVersions: VersionOption[];
567
- handleVersionChange: (version: string) => void;
440
+ currentVersion: string | undefined;
441
+ currentVersionLabel: string | undefined;
442
+ availableVersions: VersionOption[];
443
+ handleVersionChange: (version: string) => void;
568
444
  }
569
445
  /**
570
446
  * Hook to manage and switch between different versions of the documentation.
571
447
  */
572
448
  declare function useVersion(): UseVersionReturn;
573
-
449
+ //#endregion
450
+ //#region src/client/hooks/use-i18n.d.ts
574
451
  interface LocaleOption {
575
- key: string;
576
- label: string;
577
- value: string;
578
- isCurrent: boolean;
452
+ key: string;
453
+ label: string;
454
+ value: string;
455
+ isCurrent: boolean;
579
456
  }
580
457
  interface UseI18nReturn {
581
- currentLocale: string | undefined;
582
- currentLocaleLabel: string | undefined;
583
- availableLocales: LocaleOption[];
584
- handleLocaleChange: (locale: string) => void;
458
+ currentLocale: string | undefined;
459
+ currentLocaleLabel: string | undefined;
460
+ availableLocales: LocaleOption[];
461
+ handleLocaleChange: (locale: string) => void;
585
462
  }
586
463
  /**
587
464
  * Hook to manage and switch between different locales (languages) of the documentation.
588
465
  */
589
466
  declare function useI18n(): UseI18nReturn;
590
-
467
+ //#endregion
468
+ //#region src/client/hooks/use-page-nav.d.ts
591
469
  /**
592
470
  * Hook to manage the previous and next button functionality for documentation pages.
593
471
  * Intelligent: respects current locale, version, and tab to keep navigation logical.
594
472
  */
595
473
  declare function usePageNav(): {
596
- prevPage: null;
597
- nextPage: null;
598
- currentRoute: null;
474
+ prevPage: null;
475
+ nextPage: null;
476
+ currentRoute: null;
599
477
  } | {
600
- prevPage: ComponentRoute | null;
601
- nextPage: ComponentRoute | null;
602
- currentRoute: ComponentRoute;
478
+ prevPage: ComponentRoute | null;
479
+ nextPage: ComponentRoute | null;
480
+ currentRoute: ComponentRoute;
603
481
  };
604
-
482
+ //#endregion
483
+ //#region src/client/hooks/use-breadcrumbs.d.ts
605
484
  /**
606
485
  * Hook to generate breadcrumbs based on the current active route.
607
486
  */
608
487
  declare function useBreadcrumbs(): {
609
- crumbs: {
610
- label: string;
611
- href?: string;
612
- }[];
613
- activeRoute: ComponentRoute | undefined;
488
+ crumbs: {
489
+ label: string;
490
+ href?: string;
491
+ }[];
492
+ activeRoute: ComponentRoute | undefined;
614
493
  };
615
-
494
+ //#endregion
495
+ //#region src/client/hooks/use-localized-to.d.ts
616
496
  /**
617
497
  * Hook to automatically localize a path based on the current version and locale context.
618
498
  * It ensures that navigation preserves the active version and language across the entire site.
619
499
  */
620
- declare function useLocalizedTo(to: LinkProps$2['to']): react_router_dom.To;
621
-
622
- declare const useLocation: () => react_router_dom.Location<any>;
623
-
500
+ declare function useLocalizedTo(to: LinkProps$1['to']): _$react_router_dom0.To;
501
+ //#endregion
502
+ //#region src/client/hooks/use-location.d.ts
503
+ declare const useLocation: () => _$react_router_dom0.Location<any>;
504
+ //#endregion
505
+ //#region src/client/components/docs-layout.d.ts
624
506
  /**
625
507
  * Props shared by all layout slot components.
626
508
  */
627
509
  interface SlotProps {
628
- children?: React__default.ReactNode;
629
- className?: string;
630
- style?: React__default.CSSProperties;
510
+ children?: React.ReactNode;
511
+ className?: string;
512
+ style?: React.CSSProperties;
631
513
  }
632
514
  /**
633
515
  * Horizontal flex container for sidebar + content + toc.
634
516
  */
635
- declare function Body({ children, className, style }: SlotProps): react_jsx_runtime.JSX.Element;
517
+ declare function Body({
518
+ children,
519
+ className,
520
+ style
521
+ }: SlotProps): _$react_jsx_runtime0.JSX.Element;
636
522
  /**
637
523
  * Main scrollable content area.
638
524
  */
639
- declare function Content({ children, className, style }: SlotProps): react_jsx_runtime.JSX.Element;
525
+ declare function Content({
526
+ children,
527
+ className,
528
+ style
529
+ }: SlotProps): _$react_jsx_runtime0.JSX.Element;
640
530
  /**
641
531
  * MDX Content wrapper with standard page padding and max-width logic.
642
532
  */
643
- declare function ContentMdx({ children, className, style }: SlotProps): react_jsx_runtime.JSX.Element;
533
+ declare function ContentMdx({
534
+ children,
535
+ className,
536
+ style
537
+ }: SlotProps): _$react_jsx_runtime0.JSX.Element;
644
538
  /**
645
539
  * Content header row (breadcrumbs + copy markdown).
646
540
  */
647
- declare function ContentHeader({ children, className, style }: SlotProps): react_jsx_runtime.JSX.Element;
541
+ declare function ContentHeader({
542
+ children,
543
+ className,
544
+ style
545
+ }: SlotProps): _$react_jsx_runtime0.JSX.Element;
648
546
  /**
649
547
  * Footer area inside the content section (page nav).
650
548
  */
651
- declare function ContentFooter({ children, className, style }: SlotProps): react_jsx_runtime.JSX.Element;
652
- interface DocsLayoutComponent extends React__default.FC<SlotProps> {
653
- Body: typeof Body;
654
- Content: typeof Content;
655
- ContentMdx: typeof ContentMdx;
656
- ContentHeader: typeof ContentHeader;
657
- ContentFooter: typeof ContentFooter;
549
+ declare function ContentFooter({
550
+ children,
551
+ className,
552
+ style
553
+ }: SlotProps): _$react_jsx_runtime0.JSX.Element;
554
+ interface DocsLayoutComponent extends React.FC<SlotProps> {
555
+ Body: typeof Body;
556
+ Content: typeof Content;
557
+ ContentMdx: typeof ContentMdx;
558
+ ContentHeader: typeof ContentHeader;
559
+ ContentFooter: typeof ContentFooter;
658
560
  }
659
561
  declare const DocsLayout: DocsLayoutComponent;
660
-
661
- interface LayoutProps {
662
- children: React.ReactNode;
562
+ //#endregion
563
+ //#region src/client/components/default-layout.d.ts
564
+ interface LayoutProps$1 {
565
+ children: React.ReactNode;
663
566
  }
664
567
  /**
665
568
  * The built-in default layout for Boltdocs.
666
569
  * Users who create their own `layout.tsx` can import the same building blocks
667
570
  * and rearrange, wrap, or replace any section.
668
571
  */
669
- declare function DefaultLayout({ children }: LayoutProps): react_jsx_runtime.JSX.Element;
670
-
671
- declare function Navbar$1(): react_jsx_runtime.JSX.Element;
672
-
673
- declare function Sidebar$1({ routes, config, }: {
674
- routes: ComponentRoute[];
675
- config: BoltdocsConfig;
676
- }): react_jsx_runtime.JSX.Element;
677
-
678
- declare function OnThisPage$1({ headings: rawHeadings, editLink, communityHelp, filePath, }: OnThisPageProps): react_jsx_runtime.JSX.Element | null;
679
-
572
+ declare function DefaultLayout({
573
+ children
574
+ }: LayoutProps$1): _$react_jsx_runtime0.JSX.Element;
575
+ //#endregion
576
+ //#region src/client/components/ui-base/navbar.d.ts
577
+ declare function Navbar(): _$react_jsx_runtime0.JSX.Element;
578
+ //#endregion
579
+ //#region src/client/components/ui-base/sidebar.d.ts
580
+ declare function Sidebar$1({
581
+ routes,
582
+ config
583
+ }: {
584
+ routes: ComponentRoute[];
585
+ config: BoltdocsConfig$1;
586
+ }): _$react_jsx_runtime0.JSX.Element;
587
+ //#endregion
588
+ //#region src/client/components/ui-base/on-this-page.d.ts
589
+ declare function OnThisPage({
590
+ headings: rawHeadings,
591
+ editLink,
592
+ communityHelp,
593
+ filePath
594
+ }: OnThisPageProps): _$react_jsx_runtime0.JSX.Element | null;
595
+ //#endregion
596
+ //#region src/client/components/ui-base/head.d.ts
680
597
  interface HeadProps {
681
- siteTitle: string;
682
- siteDescription?: string;
683
- routes: Array<{
684
- path: string;
685
- title: string;
686
- description?: string;
687
- }>;
688
- }
689
- declare function Head({ siteTitle, siteDescription, routes }: HeadProps): null;
690
-
691
- declare function Breadcrumbs$1(): react_jsx_runtime.JSX.Element | null;
692
-
598
+ siteTitle: string;
599
+ siteDescription?: string;
600
+ routes: Array<{
601
+ path: string;
602
+ title: string;
603
+ description?: string;
604
+ seo?: Record<string, any>;
605
+ }>;
606
+ }
607
+ declare function Head({
608
+ siteTitle,
609
+ siteDescription,
610
+ routes
611
+ }: HeadProps): _$react_jsx_runtime0.JSX.Element;
612
+ //#endregion
613
+ //#region src/client/components/ui-base/breadcrumbs.d.ts
614
+ declare function Breadcrumbs(): _$react_jsx_runtime0.JSX.Element | null;
615
+ //#endregion
616
+ //#region src/client/components/ui-base/page-nav.d.ts
693
617
  /**
694
618
  * Component to display the previous and next page navigation buttons.
695
619
  * Enhanced with subtle entrance animations and a modern card layout.
696
620
  */
697
- declare function PageNav$1(): react_jsx_runtime.JSX.Element | null;
698
-
621
+ declare function PageNav(): _$react_jsx_runtime0.JSX.Element | null;
622
+ //#endregion
623
+ //#region src/client/components/ui-base/error-boundary.d.ts
699
624
  interface Props {
700
- children?: ReactNode;
701
- fallback?: ReactNode;
625
+ children?: ReactNode;
626
+ fallback?: ReactNode;
702
627
  }
703
628
  interface State {
704
- hasError: boolean;
705
- error?: Error;
629
+ hasError: boolean;
630
+ error?: Error;
706
631
  }
707
632
  declare class ErrorBoundary extends Component<Props, State> {
708
- state: State;
709
- static getDerivedStateFromError(error: Error): State;
710
- componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
711
- render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
633
+ state: State;
634
+ static getDerivedStateFromError(error: Error): State;
635
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
636
+ render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | _$react.ReactPortal | _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | _$react_jsx_runtime0.JSX.Element | null | undefined;
712
637
  }
713
-
638
+ //#endregion
639
+ //#region src/client/components/ui-base/copy-markdown.d.ts
714
640
  interface CopyMarkdownProps {
715
- content?: string;
716
- mdxRaw?: string;
717
- route?: ComponentRoute;
718
- config?: boolean | {
719
- text?: string;
720
- icon?: string;
721
- };
722
- }
723
- declare function CopyMarkdown({ content, mdxRaw, config }: CopyMarkdownProps): react_jsx_runtime.JSX.Element | null;
724
-
725
- declare function NotFound(): react_jsx_runtime.JSX.Element;
726
-
641
+ content?: string;
642
+ mdxRaw?: string;
643
+ route?: ComponentRoute;
644
+ config?: boolean | {
645
+ text?: string;
646
+ icon?: string;
647
+ };
648
+ }
649
+ declare function CopyMarkdown({
650
+ content,
651
+ mdxRaw,
652
+ config
653
+ }: CopyMarkdownProps): _$react_jsx_runtime0.JSX.Element | null;
654
+ //#endregion
655
+ //#region src/client/components/ui-base/not-found.d.ts
656
+ declare function NotFound(): _$react_jsx_runtime0.JSX.Element;
657
+ //#endregion
658
+ //#region src/client/components/ui-base/loading.d.ts
727
659
  /**
728
660
  * A premium loading component that only skeletons the markdown content area.
729
661
  * Designed to be used as a Suspense fallback within a persistent layout.
730
662
  */
731
- declare function Loading(): react_jsx_runtime.JSX.Element;
732
-
663
+ declare function Loading(): _$react_jsx_runtime0.JSX.Element;
664
+ //#endregion
665
+ //#region src/client/components/mdx/code-block.d.ts
733
666
  interface CodeBlockProps {
734
- children?: React.ReactNode;
735
- className?: string;
736
- hideCopy?: boolean;
737
- title?: string;
738
- lang?: string;
739
- highlightedHtml?: string;
740
- 'data-lang'?: string;
741
- plain?: boolean;
742
- [key: string]: any;
743
- }
744
- declare function CodeBlock(props: CodeBlockProps): react_jsx_runtime.JSX.Element;
745
-
667
+ children?: React.ReactNode;
668
+ className?: string;
669
+ hideCopy?: boolean;
670
+ title?: string;
671
+ lang?: string;
672
+ highlightedHtml?: string;
673
+ 'data-lang'?: string;
674
+ 'data-title'?: string;
675
+ plain?: boolean;
676
+ [key: string]: any;
677
+ }
678
+ declare function CodeBlock(props: CodeBlockProps): _$react_jsx_runtime0.JSX.Element;
679
+ //#endregion
680
+ //#region src/client/components/mdx/video.d.ts
746
681
  interface VideoProps {
747
- src?: string;
748
- poster?: string;
749
- alt?: string;
750
- controls?: boolean;
751
- preload?: string;
752
- children?: React.ReactNode;
753
- [key: string]: any;
754
- }
755
- declare function Video({ src, poster, alt, children, controls, preload, ...rest }: VideoProps): react_jsx_runtime.JSX.Element;
756
-
682
+ src?: string;
683
+ poster?: string;
684
+ alt?: string;
685
+ controls?: boolean;
686
+ preload?: string;
687
+ children?: React.ReactNode;
688
+ [key: string]: any;
689
+ }
690
+ declare function Video({
691
+ src,
692
+ poster,
693
+ alt,
694
+ children,
695
+ controls,
696
+ preload,
697
+ ...rest
698
+ }: VideoProps): _$react_jsx_runtime0.JSX.Element;
699
+ //#endregion
700
+ //#region src/client/components/primitives/button.d.ts
757
701
  declare const buttonVariants: (props?: ({
758
- variant?: "link" | "success" | "primary" | "secondary" | "outline" | "ghost" | "danger" | "warning" | "info" | "subtle" | null | undefined;
759
- size?: "sm" | "md" | "lg" | null | undefined;
760
- rounded?: "none" | "sm" | "md" | "lg" | "full" | null | undefined;
761
- iconSize?: "sm" | "md" | "lg" | null | undefined;
762
- disabled?: boolean | null | undefined;
763
- } & class_variance_authority_types.ClassProp) | undefined) => string;
702
+ variant?: "link" | "primary" | "secondary" | "outline" | "ghost" | "danger" | "success" | "warning" | "info" | "subtle" | null | undefined;
703
+ size?: "sm" | "md" | "lg" | null | undefined;
704
+ rounded?: "sm" | "md" | "lg" | "none" | "full" | null | undefined;
705
+ iconSize?: "sm" | "md" | "lg" | null | undefined;
706
+ disabled?: boolean | null | undefined;
707
+ } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
764
708
  type ButtonVariantType = VariantProps<typeof buttonVariants>;
765
709
  interface ButtonProps extends Omit<RAC.ButtonProps, 'children' | 'className'>, ButtonVariantType {
766
- icon?: React.ReactNode;
767
- iconPosition?: 'left' | 'right';
768
- href?: string;
769
- children?: React.ReactNode;
770
- className?: string;
771
- isIconOnly?: boolean;
772
- }
773
- declare const Button$1: ({ href, icon, iconPosition, isIconOnly, children, className, variant, size, rounded, iconSize, disabled, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
774
-
775
- declare const Button: ({ className, variant, size, rounded, iconSize, disabled, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
776
-
710
+ icon?: React.ReactNode;
711
+ iconPosition?: 'left' | 'right';
712
+ href?: string;
713
+ children?: React.ReactNode;
714
+ className?: string;
715
+ isIconOnly?: boolean;
716
+ }
717
+ declare const Button$1: ({
718
+ href,
719
+ icon,
720
+ iconPosition,
721
+ isIconOnly,
722
+ children,
723
+ className,
724
+ variant,
725
+ size,
726
+ rounded,
727
+ iconSize,
728
+ disabled,
729
+ ...props
730
+ }: ButtonProps) => _$react_jsx_runtime0.JSX.Element;
731
+ //#endregion
732
+ //#region src/client/components/mdx/button.d.ts
733
+ declare const Button: ({
734
+ className,
735
+ variant,
736
+ size,
737
+ rounded,
738
+ iconSize,
739
+ disabled,
740
+ ...props
741
+ }: ButtonProps) => _$react_jsx_runtime0.JSX.Element;
742
+ //#endregion
743
+ //#region src/client/components/mdx/tabs.d.ts
777
744
  interface TabProps {
778
- label: string;
779
- icon?: React.ReactNode;
780
- disabled?: boolean;
781
- children: React.ReactNode;
782
- }
783
- declare function Tab({ children }: TabProps): react_jsx_runtime.JSX.Element;
745
+ label: string;
746
+ icon?: React.ReactNode;
747
+ disabled?: boolean;
748
+ children: React.ReactNode;
749
+ }
750
+ declare function Tab({
751
+ children
752
+ }: TabProps): _$react_jsx_runtime0.JSX.Element;
784
753
  interface TabsProps {
785
- defaultIndex?: number;
786
- children: React.ReactNode;
787
- }
788
- declare function Tabs$1({ defaultIndex, children }: TabsProps): react_jsx_runtime.JSX.Element;
789
-
754
+ defaultIndex?: number;
755
+ children: React.ReactNode;
756
+ }
757
+ declare function Tabs$1({
758
+ defaultIndex,
759
+ children
760
+ }: TabsProps): _$react_jsx_runtime0.JSX.Element;
761
+ //#endregion
762
+ //#region src/client/components/mdx/badge.d.ts
790
763
  declare const badgeVariants: (props?: ({
791
- variant?: "success" | "default" | "primary" | "danger" | "warning" | "info" | null | undefined;
792
- } & class_variance_authority_types.ClassProp) | undefined) => string;
764
+ variant?: "default" | "primary" | "danger" | "success" | "warning" | "info" | null | undefined;
765
+ } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
793
766
  interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
794
- children: React.ReactNode;
795
- }
796
- declare function Badge({ variant, children, className, ...rest }: BadgeProps): react_jsx_runtime.JSX.Element;
797
-
767
+ children: React.ReactNode;
768
+ }
769
+ declare function Badge({
770
+ variant,
771
+ children,
772
+ className,
773
+ ...rest
774
+ }: BadgeProps): _$react_jsx_runtime0.JSX.Element;
775
+ //#endregion
776
+ //#region src/client/components/mdx/card.d.ts
798
777
  declare const cardsVariants: (props?: ({
799
- cols?: 1 | 2 | 4 | 3 | null | undefined;
800
- } & class_variance_authority_types.ClassProp) | undefined) => string;
778
+ cols?: 1 | 2 | 3 | 4 | null | undefined;
779
+ } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
801
780
  type CardsVariants = VariantProps<typeof cardsVariants>;
802
- interface CardsProps extends React.HTMLAttributes<HTMLDivElement>, CardsVariants {
803
- }
804
- declare function Cards({ cols, children, className, ...rest }: CardsProps): react_jsx_runtime.JSX.Element;
781
+ interface CardsProps extends React.HTMLAttributes<HTMLDivElement>, CardsVariants {}
782
+ declare function Cards({
783
+ cols,
784
+ children,
785
+ className,
786
+ ...rest
787
+ }: CardsProps): _$react_jsx_runtime0.JSX.Element;
805
788
  interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
806
- title?: string;
807
- icon?: React.ReactNode;
808
- href?: string;
809
- children?: React.ReactNode;
810
- }
811
- declare function Card({ title, icon, href, children, className, ...rest }: CardProps): react_jsx_runtime.JSX.Element;
812
-
789
+ title?: string;
790
+ icon?: React.ReactNode;
791
+ href?: string;
792
+ children?: React.ReactNode;
793
+ }
794
+ declare function Card({
795
+ title,
796
+ icon,
797
+ href,
798
+ children,
799
+ className,
800
+ ...rest
801
+ }: CardProps): _$react_jsx_runtime0.JSX.Element;
802
+ //#endregion
803
+ //#region src/client/components/mdx/admonition.d.ts
813
804
  declare const admonitionVariants: (props?: ({
814
- type?: "danger" | "warning" | "info" | "note" | "tip" | "important" | "caution" | null | undefined;
815
- } & class_variance_authority_types.ClassProp) | undefined) => string;
805
+ type?: "danger" | "warning" | "info" | "note" | "tip" | "important" | "caution" | null | undefined;
806
+ } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
816
807
  type AdmonitionVariants = VariantProps<typeof admonitionVariants>;
817
808
  interface AdmonitionProps extends React.HTMLAttributes<HTMLDivElement>, AdmonitionVariants {
818
- title?: string;
819
- children: React.ReactNode;
820
- }
821
- declare function Admonition({ type, title, children, className, ...rest }: AdmonitionProps): react_jsx_runtime.JSX.Element;
822
- declare const Note: (props: Omit<AdmonitionProps, "type">) => react_jsx_runtime.JSX.Element;
823
- declare const Tip: (props: Omit<AdmonitionProps, "type">) => react_jsx_runtime.JSX.Element;
824
- declare const Warning: (props: Omit<AdmonitionProps, "type">) => react_jsx_runtime.JSX.Element;
825
- declare const Danger: (props: Omit<AdmonitionProps, "type">) => react_jsx_runtime.JSX.Element;
826
- declare const InfoBox: (props: Omit<AdmonitionProps, "type">) => react_jsx_runtime.JSX.Element;
827
- declare const Important: (props: Omit<AdmonitionProps, "type">) => react_jsx_runtime.JSX.Element;
828
- declare const Caution: (props: Omit<AdmonitionProps, "type">) => react_jsx_runtime.JSX.Element;
829
-
809
+ title?: string;
810
+ children: React.ReactNode;
811
+ }
812
+ declare function Admonition({
813
+ type,
814
+ title,
815
+ children,
816
+ className,
817
+ ...rest
818
+ }: AdmonitionProps): _$react_jsx_runtime0.JSX.Element;
819
+ declare const Note: (props: Omit<AdmonitionProps, "type">) => _$react_jsx_runtime0.JSX.Element;
820
+ declare const Tip: (props: Omit<AdmonitionProps, "type">) => _$react_jsx_runtime0.JSX.Element;
821
+ declare const Warning: (props: Omit<AdmonitionProps, "type">) => _$react_jsx_runtime0.JSX.Element;
822
+ declare const Danger: (props: Omit<AdmonitionProps, "type">) => _$react_jsx_runtime0.JSX.Element;
823
+ declare const InfoBox: (props: Omit<AdmonitionProps, "type">) => _$react_jsx_runtime0.JSX.Element;
824
+ declare const Important: (props: Omit<AdmonitionProps, "type">) => _$react_jsx_runtime0.JSX.Element;
825
+ declare const Caution: (props: Omit<AdmonitionProps, "type">) => _$react_jsx_runtime0.JSX.Element;
826
+ //#endregion
827
+ //#region src/client/components/mdx/list.d.ts
830
828
  declare const listVariants: (props?: ({
831
- variant?: "number" | "default" | "checked" | "arrow" | "bubble" | null | undefined;
832
- cols?: 1 | 2 | 4 | 3 | null | undefined;
833
- isGrid?: boolean | null | undefined;
834
- dense?: boolean | null | undefined;
835
- } & class_variance_authority_types.ClassProp) | undefined) => string;
829
+ variant?: "number" | "default" | "checked" | "arrow" | "bubble" | null | undefined;
830
+ cols?: 1 | 2 | 3 | 4 | null | undefined;
831
+ isGrid?: boolean | null | undefined;
832
+ dense?: boolean | null | undefined;
833
+ } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
836
834
  type ListVariantProps = VariantProps<typeof listVariants>;
837
835
  interface ListProps extends ComponentPropsWithoutRef<'ul'>, Omit<ListVariantProps, 'variant'> {
838
- variant?: 'checked' | 'arrow' | 'default' | 'bubble' | 'number';
839
- children: ReactNode;
840
- }
841
- declare function List({ variant, cols, dense, children, className, ...props }: ListProps): react_jsx_runtime.JSX.Element;
842
-
836
+ variant?: 'checked' | 'arrow' | 'default' | 'bubble' | 'number';
837
+ children: ReactNode;
838
+ }
839
+ declare function List({
840
+ variant,
841
+ cols,
842
+ dense,
843
+ children,
844
+ className,
845
+ ...props
846
+ }: ListProps): _$react_jsx_runtime0.JSX.Element;
847
+ //#endregion
848
+ //#region src/client/components/mdx/file-tree.d.ts
843
849
  interface FileTreeProps {
844
- children: React.ReactNode;
850
+ children: React.ReactNode;
845
851
  }
846
- declare function FileTree({ children }: FileTreeProps): react_jsx_runtime.JSX.Element;
847
-
852
+ declare function FileTree({
853
+ children
854
+ }: FileTreeProps): _$react_jsx_runtime0.JSX.Element;
855
+ //#endregion
856
+ //#region src/client/components/mdx/table.d.ts
848
857
  interface TableProps {
849
- headers?: string[];
850
- data?: (string | React.ReactNode)[][];
851
- children?: React.ReactNode;
852
- className?: string;
853
- sortable?: boolean;
854
- paginated?: boolean;
855
- pageSize?: number;
856
- }
857
- declare function Table({ headers, data, children, className, sortable, paginated, pageSize, }: TableProps): react_jsx_runtime.JSX.Element;
858
-
858
+ headers?: string[];
859
+ data?: (string | React.ReactNode)[][];
860
+ children?: React.ReactNode;
861
+ className?: string;
862
+ sortable?: boolean;
863
+ paginated?: boolean;
864
+ pageSize?: number;
865
+ }
866
+ declare function Table({
867
+ headers,
868
+ data,
869
+ children,
870
+ className,
871
+ sortable,
872
+ paginated,
873
+ pageSize
874
+ }: TableProps): _$react_jsx_runtime0.JSX.Element;
875
+ //#endregion
876
+ //#region src/client/components/mdx/field.d.ts
859
877
  interface FieldProps {
860
- name: string;
861
- type?: string;
862
- defaultValue?: string;
863
- required?: boolean;
864
- children: React.ReactNode;
865
- id?: string;
866
- className?: string;
867
- }
868
- declare function Field({ name, type, defaultValue, required, children, id, className, }: FieldProps): react_jsx_runtime.JSX.Element;
869
-
870
- interface LinkProps$1 extends LinkProps$3 {
871
- /** Should prefetch the page on hover? Default 'hover' */
872
- prefetch?: 'hover' | 'none';
878
+ name: string;
879
+ type?: string;
880
+ defaultValue?: string;
881
+ required?: boolean;
882
+ children: React.ReactNode;
883
+ id?: string;
884
+ className?: string;
885
+ }
886
+ declare function Field({
887
+ name,
888
+ type,
889
+ defaultValue,
890
+ required,
891
+ children,
892
+ id,
893
+ className
894
+ }: FieldProps): _$react_jsx_runtime0.JSX.Element;
895
+ //#endregion
896
+ //#region src/client/components/primitives/link.d.ts
897
+ interface LinkProps$3 extends LinkProps$2 {
898
+ /** Should prefetch the page on hover? Default 'hover' */
899
+ prefetch?: 'hover' | 'none';
873
900
  }
874
901
  /**
875
902
  * A primitive Link component that wraps React Aria Components' Link
@@ -878,28 +905,28 @@ interface LinkProps$1 extends LinkProps$3 {
878
905
  * It uses the global navigation configuration from BoltdocsRouterProvider
879
906
  * to handle seamless client-side transitions.
880
907
  */
881
- declare const Link$1: React__default.ForwardRefExoticComponent<LinkProps$1 & React__default.RefAttributes<HTMLAnchorElement>>;
908
+ declare const Link$1: _$react.ForwardRefExoticComponent<LinkProps$3 & _$react.RefAttributes<HTMLAnchorElement>>;
882
909
  /**
883
910
  * Props for the NavLink component, extending standard Link props.
884
911
  */
885
- interface NavLinkProps extends Omit<LinkProps$1, 'className' | 'children'> {
886
- /**
887
- * When true, the active state will only be applied if the paths match exactly.
888
- * Default is false.
889
- */
890
- end?: boolean;
891
- /**
892
- * Provides access to the active state for conditional children rendering.
893
- */
894
- children?: React__default.ReactNode | ((props: {
895
- isActive: boolean;
896
- }) => React__default.ReactNode);
897
- /**
898
- * Provides access to the active state for conditional styling.
899
- */
900
- className?: string | ((props: {
901
- isActive: boolean;
902
- }) => string);
912
+ interface NavLinkProps extends Omit<LinkProps$3, 'className' | 'children'> {
913
+ /**
914
+ * When true, the active state will only be applied if the paths match exactly.
915
+ * Default is false.
916
+ */
917
+ end?: boolean;
918
+ /**
919
+ * Provides access to the active state for conditional children rendering.
920
+ */
921
+ children?: React.ReactNode | ((props: {
922
+ isActive: boolean;
923
+ }) => React.ReactNode);
924
+ /**
925
+ * Provides access to the active state for conditional styling.
926
+ */
927
+ className?: string | ((props: {
928
+ isActive: boolean;
929
+ }) => string);
903
930
  }
904
931
  /**
905
932
  * A primitive NavLink component that provides active state detection.
@@ -907,357 +934,627 @@ interface NavLinkProps extends Omit<LinkProps$1, 'className' | 'children'> {
907
934
  * It combines the Link primitive with path matching logic to determine
908
935
  * if the link is currently active based on the browser's location.
909
936
  */
910
- declare const NavLink: React__default.ForwardRefExoticComponent<NavLinkProps & React__default.RefAttributes<HTMLAnchorElement>>;
911
-
912
- type LinkProps = LinkProps$1 & {
913
- to: string;
914
- children?: React.ReactNode;
937
+ declare const NavLink: _$react.ForwardRefExoticComponent<NavLinkProps & _$react.RefAttributes<HTMLAnchorElement>>;
938
+ //#endregion
939
+ //#region src/client/components/mdx/link.d.ts
940
+ type LinkProps = LinkProps$3 & {
941
+ to: string;
942
+ children?: React.ReactNode;
915
943
  };
916
944
  /**
917
945
  * A premium Link component for Boltdocs that handles internal and external routing.
918
946
  */
919
- declare function Link({ to, children, className, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
920
-
947
+ declare function Link({
948
+ to,
949
+ children,
950
+ className,
951
+ ...props
952
+ }: LinkProps): _$react_jsx_runtime0.JSX.Element;
953
+ //#endregion
954
+ //#region src/client/components/mdx/image.d.ts
921
955
  interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
922
- src: string;
923
- darkSrc?: string;
924
- theme?: 'light' | 'dark';
956
+ src: string;
957
+ darkSrc?: string;
958
+ theme?: 'light' | 'dark';
925
959
  }
926
960
  /**
927
961
  * A themed Image component for Boltdocs.
928
962
  * It supports rendering based on the current active theme.
929
963
  */
930
- declare function Image({ src, alt, theme: imageTheme, ...props }: ImageProps): react_jsx_runtime.JSX.Element | null;
931
-
964
+ declare function Image({
965
+ src,
966
+ alt,
967
+ theme: imageTheme,
968
+ ...props
969
+ }: ImageProps): _$react_jsx_runtime0.JSX.Element | null;
970
+ //#endregion
971
+ //#region src/client/components/mdx/component-props.d.ts
932
972
  interface PropItem {
933
- name: string;
934
- type: string;
935
- defaultValue?: string;
936
- required?: boolean;
937
- description: React.ReactNode;
973
+ name: string;
974
+ type: string;
975
+ defaultValue?: string;
976
+ required?: boolean;
977
+ description: React.ReactNode;
938
978
  }
939
979
  interface ComponentPropsProps {
940
- title?: string;
941
- props: PropItem[];
942
- className?: string;
943
- }
944
- declare function ComponentProps({ title, props, className, }: ComponentPropsProps): react_jsx_runtime.JSX.Element;
945
-
980
+ title?: string;
981
+ props: PropItem[];
982
+ className?: string;
983
+ }
984
+ declare function ComponentProps({
985
+ title,
986
+ props,
987
+ className
988
+ }: ComponentPropsProps): _$react_jsx_runtime0.JSX.Element;
989
+ //#endregion
990
+ //#region src/client/components/mdx/component-preview.d.ts
946
991
  interface ComponentPreviewProps {
947
- code?: string;
948
- highlightedHtml?: string;
949
- children?: string;
950
- preview?: React.ReactNode;
951
- hideCode?: boolean;
952
- hideCopy?: boolean;
953
- }
954
- declare function ComponentPreview(props: ComponentPreviewProps): react_jsx_runtime.JSX.Element;
955
-
992
+ code?: string;
993
+ highlightedHtml?: string;
994
+ children?: string;
995
+ preview?: React.ReactNode;
996
+ hideCode?: boolean;
997
+ hideCopy?: boolean;
998
+ }
999
+ declare function ComponentPreview(props: ComponentPreviewProps): _$react_jsx_runtime0.JSX.Element;
1000
+ //#endregion
1001
+ //#region src/client/components/primitives/types.d.ts
956
1002
  type ComponentBase = {
957
- className?: string;
958
- children?: ReactNode;
1003
+ className?: string;
1004
+ children?: ReactNode;
959
1005
  };
960
-
1006
+ //#endregion
1007
+ //#region src/client/components/primitives/navbar.d.ts
961
1008
  interface NavbarLinkProps extends Omit<ComponentBase, 'children'> {
962
- label: ReactNode;
963
- href: string;
964
- active?: boolean;
965
- to?: 'internal' | 'external';
1009
+ label: ReactNode;
1010
+ href: string;
1011
+ active?: boolean;
1012
+ to?: 'internal' | 'external';
966
1013
  }
967
1014
  interface NavbarLogoProps extends Omit<ComponentBase, 'children'> {
968
- src: string;
969
- alt: string;
970
- width?: number;
971
- height?: number;
1015
+ src: string;
1016
+ alt: string;
1017
+ width?: number;
1018
+ height?: number;
972
1019
  }
973
1020
  interface NavbarSearchTriggerProps extends ComponentBase {
974
- onPress: () => void;
1021
+ onPress: () => void;
975
1022
  }
976
1023
  interface NavbarThemeProps {
977
- className?: string;
978
- theme: 'dark' | 'light';
979
- onThemeChange: (isSelected: boolean) => void;
1024
+ className?: string;
1025
+ theme: 'dark' | 'light';
1026
+ onThemeChange: (isSelected: boolean) => void;
980
1027
  }
981
1028
  interface NavbarSocialsProps extends ComponentBase {
982
- icon: string;
983
- link: string;
984
- }
985
- declare const Navbar: {
986
- ({ children, className, ...props }: ComponentBase): react_jsx_runtime.JSX.Element;
987
- Root: /*elided*/ any;
988
- Left: ({ children, className }: ComponentBase) => react_jsx_runtime.JSX.Element;
989
- Right: ({ children, className }: ComponentBase) => react_jsx_runtime.JSX.Element;
990
- Center: ({ children, className }: ComponentBase) => react_jsx_runtime.JSX.Element;
991
- Logo: ({ src, alt, width, height, className, }: NavbarLogoProps) => react_jsx_runtime.JSX.Element;
992
- Title: ({ children, className }: ComponentBase) => react_jsx_runtime.JSX.Element;
993
- Links: ({ children, className }: ComponentBase) => react_jsx_runtime.JSX.Element;
994
- Link: ({ label, href, active, to, className, }: NavbarLinkProps) => react_jsx_runtime.JSX.Element;
995
- SearchTrigger: ({ className, onPress, }: NavbarSearchTriggerProps) => react_jsx_runtime.JSX.Element;
996
- Theme: ({ className, theme, onThemeChange, }: NavbarThemeProps) => react_jsx_runtime.JSX.Element;
997
- Socials: ({ icon, link, className, }: NavbarSocialsProps) => react_jsx_runtime.JSX.Element;
998
- Split: ({ className }: ComponentBase) => react_jsx_runtime.JSX.Element;
999
- Content: ({ children, className }: ComponentBase) => react_jsx_runtime.JSX.Element;
1029
+ icon: string;
1030
+ link: string;
1031
+ }
1032
+ declare const Navbar$1: {
1033
+ ({
1034
+ children,
1035
+ className,
1036
+ ...props
1037
+ }: ComponentBase): _$react_jsx_runtime0.JSX.Element;
1038
+ Root: /*elided*/any;
1039
+ Left: ({
1040
+ children,
1041
+ className
1042
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1043
+ Right: ({
1044
+ children,
1045
+ className
1046
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1047
+ Center: ({
1048
+ children,
1049
+ className
1050
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1051
+ Logo: ({
1052
+ src,
1053
+ alt,
1054
+ width,
1055
+ height,
1056
+ className
1057
+ }: NavbarLogoProps) => _$react_jsx_runtime0.JSX.Element;
1058
+ Title: ({
1059
+ children,
1060
+ className
1061
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1062
+ Links: ({
1063
+ children,
1064
+ className
1065
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1066
+ Link: ({
1067
+ label,
1068
+ href,
1069
+ active,
1070
+ to,
1071
+ className
1072
+ }: NavbarLinkProps) => _$react_jsx_runtime0.JSX.Element;
1073
+ SearchTrigger: ({
1074
+ className,
1075
+ onPress
1076
+ }: NavbarSearchTriggerProps) => _$react_jsx_runtime0.JSX.Element;
1077
+ Theme: ({
1078
+ className,
1079
+ theme,
1080
+ onThemeChange
1081
+ }: NavbarThemeProps) => _$react_jsx_runtime0.JSX.Element;
1082
+ Socials: ({
1083
+ icon,
1084
+ link,
1085
+ className
1086
+ }: NavbarSocialsProps) => _$react_jsx_runtime0.JSX.Element;
1087
+ Split: ({
1088
+ className
1089
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1090
+ Content: ({
1091
+ children,
1092
+ className
1093
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1000
1094
  };
1001
-
1095
+ //#endregion
1096
+ //#region src/client/components/primitives/navigation-menu.d.ts
1002
1097
  interface NavigationMenuItemProps extends ComponentBase {
1003
- label: string;
1098
+ label: string;
1004
1099
  }
1005
1100
  interface NavigationMenuLinkProps extends Omit<ComponentBase, 'children'> {
1006
- href: string;
1007
- label: string;
1008
- description?: string;
1009
- children?: React.ReactNode | ((opts: RAC.MenuItemRenderProps) => React.ReactNode);
1101
+ href: string;
1102
+ label: string;
1103
+ description?: string;
1104
+ children?: React.ReactNode | ((opts: RAC.MenuItemRenderProps) => React.ReactNode);
1010
1105
  }
1011
1106
  declare const NavigationMenu: {
1012
- ({ children, className, ...props }: ComponentBase): react_jsx_runtime.JSX.Element;
1013
- Root: /*elided*/ any;
1014
- List: ({ children, className }: ComponentBase) => react_jsx_runtime.JSX.Element;
1015
- Item: ({ children, label, className, }: NavigationMenuItemProps) => react_jsx_runtime.JSX.Element;
1016
- Link: ({ label, href, description, className, children, ...props }: NavigationMenuLinkProps) => react_jsx_runtime.JSX.Element;
1107
+ ({
1108
+ children,
1109
+ className,
1110
+ ...props
1111
+ }: ComponentBase): _$react_jsx_runtime0.JSX.Element;
1112
+ Root: /*elided*/any;
1113
+ List: ({
1114
+ children,
1115
+ className
1116
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1117
+ Item: ({
1118
+ children,
1119
+ label,
1120
+ className
1121
+ }: NavigationMenuItemProps) => _$react_jsx_runtime0.JSX.Element;
1122
+ Link: ({
1123
+ label,
1124
+ href,
1125
+ description,
1126
+ className,
1127
+ children,
1128
+ ...props
1129
+ }: NavigationMenuLinkProps) => _$react_jsx_runtime0.JSX.Element;
1017
1130
  };
1018
-
1131
+ //#endregion
1132
+ //#region src/client/components/primitives/search-dialog.d.ts
1019
1133
  interface SearchDialogProps extends ComponentBase {
1020
- isOpen?: boolean;
1021
- onOpenChange?: (isOpen: boolean) => void;
1134
+ isOpen?: boolean;
1135
+ onOpenChange?: (isOpen: boolean) => void;
1022
1136
  }
1023
1137
  interface SearchDialogItemProps extends Omit<RAC.ListBoxItemProps, 'children'> {
1024
- className?: string;
1025
- children: React.ReactNode;
1138
+ className?: string;
1139
+ children: React.ReactNode;
1026
1140
  }
1027
1141
  interface SearchDialogItemIconProps {
1028
- isHeading?: boolean;
1029
- className?: string;
1142
+ isHeading?: boolean;
1143
+ className?: string;
1030
1144
  }
1031
1145
  declare const SearchDialog: {
1032
- ({ children, isOpen, onOpenChange, className, }: SearchDialogProps): react_jsx_runtime.JSX.Element;
1033
- Root: /*elided*/ any;
1034
- Autocomplete: <T extends object>({ children, className, onSelectionChange, ...props }: RAC.AutocompleteProps<T> & {
1035
- className?: string;
1036
- onSelectionChange?: (key: RAC.Key) => void;
1037
- }) => react_jsx_runtime.JSX.Element;
1038
- Input: ({ className, ...props }: RAC.InputProps & {
1039
- className?: string;
1040
- }) => react_jsx_runtime.JSX.Element;
1041
- List: <T extends object>({ children, className, ...props }: RAC.ListBoxProps<T> & {
1042
- className?: string;
1043
- }) => react_jsx_runtime.JSX.Element;
1044
- Item: (({ children, className, ...props }: SearchDialogItemProps) => react_jsx_runtime.JSX.Element) & {
1045
- Icon: ({ isHeading, className, }: SearchDialogItemIconProps) => react_jsx_runtime.JSX.Element;
1046
- Title: ({ children, className, }: ComponentBase) => react_jsx_runtime.JSX.Element;
1047
- Bio: ({ children, className }: ComponentBase) => react_jsx_runtime.JSX.Element;
1048
- };
1146
+ ({
1147
+ children,
1148
+ isOpen,
1149
+ onOpenChange,
1150
+ className
1151
+ }: SearchDialogProps): _$react_jsx_runtime0.JSX.Element;
1152
+ Root: /*elided*/any;
1153
+ Autocomplete: <T extends object>({
1154
+ children,
1155
+ className,
1156
+ onSelectionChange,
1157
+ ...props
1158
+ }: RAC.AutocompleteProps<T> & {
1159
+ className?: string;
1160
+ onSelectionChange?: (key: RAC.Key) => void;
1161
+ }) => _$react_jsx_runtime0.JSX.Element;
1162
+ Input: ({
1163
+ className,
1164
+ ...props
1165
+ }: RAC.InputProps & {
1166
+ className?: string;
1167
+ }) => _$react_jsx_runtime0.JSX.Element;
1168
+ List: <T extends object>({
1169
+ children,
1170
+ className,
1171
+ ...props
1172
+ }: RAC.ListBoxProps<T> & {
1173
+ className?: string;
1174
+ }) => _$react_jsx_runtime0.JSX.Element;
1175
+ Item: (({
1176
+ children,
1177
+ className,
1178
+ ...props
1179
+ }: SearchDialogItemProps) => _$react_jsx_runtime0.JSX.Element) & {
1180
+ Icon: ({
1181
+ isHeading,
1182
+ className
1183
+ }: SearchDialogItemIconProps) => _$react_jsx_runtime0.JSX.Element;
1184
+ Title: ({
1185
+ children,
1186
+ className
1187
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1188
+ Bio: ({
1189
+ children,
1190
+ className
1191
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1192
+ };
1049
1193
  };
1050
-
1194
+ //#endregion
1195
+ //#region src/client/components/primitives/on-this-page.d.ts
1051
1196
  interface TOCItemType {
1052
- title: ReactNode;
1053
- url: string;
1054
- depth: number;
1055
- _step?: number;
1197
+ title: ReactNode;
1198
+ url: string;
1199
+ depth: number;
1200
+ _step?: number;
1056
1201
  }
1057
1202
  interface TOCItemInfo {
1058
- id: string;
1059
- active: boolean;
1060
- /** last time the item is updated */
1061
- t: number;
1062
- /** currently active but not intersecting in viewport */
1063
- fallback: boolean;
1064
- original?: TOCItemType;
1203
+ id: string;
1204
+ active: boolean;
1205
+ /** last time the item is updated */
1206
+ t: number;
1207
+ /** currently active but not intersecting in viewport */
1208
+ fallback: boolean;
1209
+ original?: TOCItemType;
1065
1210
  }
1066
1211
  interface AnchorProviderProps {
1067
- toc: TOCItemType[];
1068
- /**
1069
- * Only accept one active item at most
1070
- * @defaultValue false
1071
- */
1072
- single?: boolean;
1073
- children?: ReactNode;
1212
+ toc: TOCItemType[];
1213
+ /**
1214
+ * Only accept one active item at most
1215
+ * @defaultValue false
1216
+ */
1217
+ single?: boolean;
1218
+ children?: ReactNode;
1074
1219
  }
1075
1220
  interface ScrollProviderProps {
1076
- /**
1077
- * Scroll into the view of container when active
1078
- */
1079
- containerRef: RefObject<HTMLElement | null>;
1080
- children?: ReactNode;
1221
+ /**
1222
+ * Scroll into the view of container when active
1223
+ */
1224
+ containerRef: RefObject<HTMLElement | null>;
1225
+ children?: ReactNode;
1081
1226
  }
1082
1227
  interface OnThisPageContentProps extends ComponentBase {
1083
- ref?: React__default.Ref<HTMLDivElement>;
1084
- scrollRef?: RefObject<HTMLElement | null>;
1228
+ ref?: React.Ref<HTMLDivElement>;
1229
+ scrollRef?: RefObject<HTMLElement | null>;
1085
1230
  }
1086
1231
  interface OnThisPageItemProps extends ComponentBase {
1087
- level?: number;
1232
+ level?: number;
1088
1233
  }
1089
1234
  interface OnThisPageLinkProps extends ComponentBase {
1090
- href?: string;
1091
- active?: boolean;
1092
- onClick?: (event: React__default.MouseEvent<HTMLAnchorElement>) => void;
1235
+ href?: string;
1236
+ active?: boolean;
1237
+ onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
1093
1238
  }
1094
1239
  interface OnThisPageIndicatorProps extends ComponentBase {
1095
- style?: React__default.CSSProperties;
1240
+ style?: React.CSSProperties;
1096
1241
  }
1097
1242
  declare function useItems(): TOCItemInfo[];
1098
1243
  declare function useActiveAnchor(): string | undefined;
1099
1244
  declare function useActiveAnchors(): string[];
1100
1245
  /** Optional: add auto-scroll to TOC items. */
1101
- declare function ScrollProvider({ containerRef, children, }: ScrollProviderProps): react_jsx_runtime.JSX.Element;
1102
- declare function AnchorProvider({ toc, single, children, }: AnchorProviderProps): react_jsx_runtime.JSX.Element;
1103
- declare const OnThisPage: {
1104
- ({ children, className }: ComponentBase): react_jsx_runtime.JSX.Element;
1105
- Root: /*elided*/ any;
1106
- Header: ({ children, className, ...props }: ComponentBase) => react_jsx_runtime.JSX.Element;
1107
- Content: {
1108
- ({ children, className, ref, ...props }: OnThisPageContentProps): react_jsx_runtime.JSX.Element;
1109
- displayName: string;
1110
- };
1111
- List: ({ children, className }: ComponentBase) => react_jsx_runtime.JSX.Element;
1112
- Item: ({ level, children, className, }: OnThisPageItemProps) => react_jsx_runtime.JSX.Element;
1113
- Link: ({ children, href, active, onClick, className, }: OnThisPageLinkProps) => react_jsx_runtime.JSX.Element;
1114
- Indicator: ({ style, className, }: OnThisPageIndicatorProps) => react_jsx_runtime.JSX.Element;
1246
+ declare function ScrollProvider({
1247
+ containerRef,
1248
+ children
1249
+ }: ScrollProviderProps): _$react_jsx_runtime0.JSX.Element;
1250
+ declare function AnchorProvider({
1251
+ toc,
1252
+ single,
1253
+ children
1254
+ }: AnchorProviderProps): _$react_jsx_runtime0.JSX.Element;
1255
+ declare const OnThisPage$1: {
1256
+ ({
1257
+ children,
1258
+ className
1259
+ }: ComponentBase): _$react_jsx_runtime0.JSX.Element;
1260
+ Root: /*elided*/any;
1261
+ Header: ({
1262
+ children,
1263
+ className,
1264
+ ...props
1265
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1266
+ Content: {
1267
+ ({
1268
+ children,
1269
+ className,
1270
+ ref,
1271
+ ...props
1272
+ }: OnThisPageContentProps): _$react_jsx_runtime0.JSX.Element;
1273
+ displayName: string;
1274
+ };
1275
+ List: ({
1276
+ children,
1277
+ className
1278
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1279
+ Item: ({
1280
+ level,
1281
+ children,
1282
+ className
1283
+ }: OnThisPageItemProps) => _$react_jsx_runtime0.JSX.Element;
1284
+ Link: ({
1285
+ children,
1286
+ href,
1287
+ active,
1288
+ onClick,
1289
+ className
1290
+ }: OnThisPageLinkProps) => _$react_jsx_runtime0.JSX.Element;
1291
+ Indicator: ({
1292
+ style,
1293
+ className
1294
+ }: OnThisPageIndicatorProps) => _$react_jsx_runtime0.JSX.Element;
1115
1295
  };
1116
-
1296
+ //#endregion
1297
+ //#region src/client/components/primitives/page-nav.d.ts
1117
1298
  interface PageNavProps extends ComponentBase {
1118
- to: string;
1119
- direction: 'prev' | 'next';
1120
- }
1121
- declare const PageNav: {
1122
- ({ children, className }: ComponentBase): react_jsx_runtime.JSX.Element;
1123
- Root: /*elided*/ any;
1124
- Link: ({ children, to, direction, className, }: PageNavProps) => react_jsx_runtime.JSX.Element;
1125
- Title: ({ children, className }: ComponentBase) => react_jsx_runtime.JSX.Element;
1126
- Description: ({ children, className }: ComponentBase) => react_jsx_runtime.JSX.Element;
1127
- Icon: ({ children }: ComponentBase) => react_jsx_runtime.JSX.Element;
1299
+ to: string;
1300
+ direction: 'prev' | 'next';
1301
+ }
1302
+ declare const PageNav$1: {
1303
+ ({
1304
+ children,
1305
+ className
1306
+ }: ComponentBase): _$react_jsx_runtime0.JSX.Element;
1307
+ Root: /*elided*/any;
1308
+ Link: ({
1309
+ children,
1310
+ to,
1311
+ direction,
1312
+ className
1313
+ }: PageNavProps) => _$react_jsx_runtime0.JSX.Element;
1314
+ Title: ({
1315
+ children,
1316
+ className
1317
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1318
+ Description: ({
1319
+ children,
1320
+ className
1321
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1322
+ Icon: ({
1323
+ children
1324
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1128
1325
  };
1129
-
1326
+ //#endregion
1327
+ //#region src/client/components/primitives/tabs.d.ts
1130
1328
  interface TabsItemProps extends ComponentBase {
1131
- id: string;
1132
- selected?: boolean;
1133
- onClick?: () => void;
1134
- onKeyDown?: (event: React.KeyboardEvent) => void;
1135
- disabled?: boolean;
1329
+ id: string;
1330
+ selected?: boolean;
1331
+ onClick?: () => void;
1332
+ onKeyDown?: (event: React.KeyboardEvent) => void;
1333
+ disabled?: boolean;
1136
1334
  }
1137
1335
  interface TabsIndicatorProps extends ComponentBase {
1138
- style?: React.CSSProperties;
1336
+ style?: React.CSSProperties;
1139
1337
  }
1140
1338
  declare const Tabs: {
1141
- ({ children, className, ...props }: ComponentBase): react_jsx_runtime.JSX.Element;
1142
- Root: /*elided*/ any;
1143
- List: ({ children, className }: ComponentBase) => react_jsx_runtime.JSX.Element;
1144
- Item: ({ children, id, selected, className, ...props }: TabsItemProps) => react_jsx_runtime.JSX.Element;
1145
- Content: ({ children, className }: ComponentBase) => react_jsx_runtime.JSX.Element;
1146
- Indicator: ({ className, style, }: TabsIndicatorProps) => react_jsx_runtime.JSX.Element;
1339
+ ({
1340
+ children,
1341
+ className,
1342
+ ...props
1343
+ }: ComponentBase): _$react_jsx_runtime0.JSX.Element;
1344
+ Root: /*elided*/any;
1345
+ List: ({
1346
+ children,
1347
+ className
1348
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1349
+ Item: ({
1350
+ children,
1351
+ id,
1352
+ selected,
1353
+ className,
1354
+ ...props
1355
+ }: TabsItemProps) => _$react_jsx_runtime0.JSX.Element;
1356
+ Content: ({
1357
+ children,
1358
+ className
1359
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1360
+ Indicator: ({
1361
+ className,
1362
+ style
1363
+ }: TabsIndicatorProps) => _$react_jsx_runtime0.JSX.Element;
1147
1364
  };
1148
-
1365
+ //#endregion
1366
+ //#region src/client/components/primitives/sidebar.d.ts
1149
1367
  interface SidebarGroupProps extends ComponentBase {
1150
- title?: string;
1151
- icon?: React.ElementType;
1152
- isOpen?: boolean;
1153
- onToggle?: () => void;
1368
+ title?: string;
1369
+ icon?: React.ElementType;
1370
+ }
1371
+ interface SidebarSubGroupProps extends SidebarLinkProps {
1372
+ isOpen?: boolean;
1373
+ onToggle?: () => void;
1374
+ children?: React.ReactNode;
1154
1375
  }
1155
1376
  interface SidebarLinkProps extends ComponentBase {
1156
- label: string;
1157
- href: string;
1158
- active?: boolean;
1159
- icon?: React.ElementType;
1160
- badge?: ComponentRoute['badge'];
1377
+ label: string;
1378
+ href: string;
1379
+ active?: boolean;
1380
+ icon?: React.ElementType;
1381
+ badge?: ComponentRoute['badge'];
1161
1382
  }
1162
1383
  declare const Sidebar: {
1163
- ({ children, className }: ComponentBase): react_jsx_runtime.JSX.Element;
1164
- Root: /*elided*/ any;
1165
- Group: ({ children, title, icon: Icon, isOpen, onToggle, className, }: SidebarGroupProps) => react_jsx_runtime.JSX.Element;
1166
- GroupItem: ({ children, className }: ComponentBase) => react_jsx_runtime.JSX.Element;
1167
- Link: ({ label, href, active, icon: Icon, badge, className, }: SidebarLinkProps) => react_jsx_runtime.JSX.Element;
1384
+ ({
1385
+ children,
1386
+ className
1387
+ }: ComponentBase): _$react_jsx_runtime0.JSX.Element;
1388
+ Root: /*elided*/any;
1389
+ Group: ({
1390
+ children,
1391
+ title,
1392
+ icon: Icon,
1393
+ className
1394
+ }: SidebarGroupProps) => _$react_jsx_runtime0.JSX.Element;
1395
+ SubGroup: ({
1396
+ label,
1397
+ href,
1398
+ active,
1399
+ icon: Icon,
1400
+ badge,
1401
+ className,
1402
+ isOpen,
1403
+ onToggle,
1404
+ children
1405
+ }: SidebarSubGroupProps) => _$react_jsx_runtime0.JSX.Element;
1406
+ GroupItem: ({
1407
+ children,
1408
+ className
1409
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1410
+ Link: ({
1411
+ label,
1412
+ href,
1413
+ active,
1414
+ icon: Icon,
1415
+ badge,
1416
+ className
1417
+ }: SidebarLinkProps) => _$react_jsx_runtime0.JSX.Element;
1168
1418
  };
1169
-
1170
- declare const Breadcrumbs: {
1171
- ({ children, className, ...props }: ComponentBase): react_jsx_runtime.JSX.Element;
1172
- Root: /*elided*/ any;
1173
- Item: ({ children, className, ...props }: ComponentBase) => react_jsx_runtime.JSX.Element;
1174
- Link: ({ children, href, className, ...props }: LinkProps$3 & {
1175
- className?: string;
1176
- }) => react_jsx_runtime.JSX.Element;
1177
- Separator: ({ className }: ComponentBase) => react_jsx_runtime.JSX.Element;
1419
+ //#endregion
1420
+ //#region src/client/components/primitives/breadcrumbs.d.ts
1421
+ declare const Breadcrumbs$1: {
1422
+ ({
1423
+ children,
1424
+ className,
1425
+ ...props
1426
+ }: ComponentBase): _$react_jsx_runtime0.JSX.Element;
1427
+ Root: /*elided*/any;
1428
+ Item: ({
1429
+ children,
1430
+ className,
1431
+ ...props
1432
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1433
+ Link: ({
1434
+ children,
1435
+ href,
1436
+ className,
1437
+ ...props
1438
+ }: LinkProps$2 & {
1439
+ className?: string;
1440
+ }) => _$react_jsx_runtime0.JSX.Element;
1441
+ Separator: ({
1442
+ className
1443
+ }: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
1178
1444
  };
1179
-
1445
+ //#endregion
1446
+ //#region src/client/components/primitives/button-group.d.ts
1180
1447
  interface ButtonGroupProps extends ComponentBase {
1181
- vertical?: boolean;
1182
- }
1183
- declare const ButtonGroup: ({ children, className, vertical, }: ButtonGroupProps) => react_jsx_runtime.JSX.Element;
1184
-
1448
+ vertical?: boolean;
1449
+ }
1450
+ declare const ButtonGroup: ({
1451
+ children,
1452
+ className,
1453
+ vertical
1454
+ }: ButtonGroupProps) => _$react_jsx_runtime0.JSX.Element;
1455
+ //#endregion
1456
+ //#region src/client/components/primitives/popover.d.ts
1185
1457
  interface PopoverProps extends Omit<RAC.PopoverProps, 'children'> {
1186
- children: React.ReactNode;
1187
- className?: string;
1188
- showArrow?: boolean;
1458
+ children: React.ReactNode;
1459
+ className?: string;
1460
+ showArrow?: boolean;
1189
1461
  }
1190
1462
  /**
1191
1463
  * A reusable Popover primitive with premium glassmorphism styling and smooth animations.
1192
1464
  */
1193
- declare const Popover: ({ children, className, showArrow, ...props }: PopoverProps) => react_jsx_runtime.JSX.Element;
1194
-
1465
+ declare const Popover: ({
1466
+ children,
1467
+ className,
1468
+ showArrow,
1469
+ ...props
1470
+ }: PopoverProps) => _$react_jsx_runtime0.JSX.Element;
1471
+ //#endregion
1472
+ //#region src/client/components/primitives/menu.d.ts
1195
1473
  /**
1196
1474
  * MenuTrigger wraps a trigger (usually a Button) and a Menu.
1197
1475
  */
1198
1476
  interface MenuTriggerProps extends RAC.MenuTriggerProps {
1199
- placement?: PopoverProps['placement'];
1477
+ placement?: PopoverProps['placement'];
1200
1478
  }
1201
- declare function MenuTrigger(props: MenuTriggerProps): react_jsx_runtime.JSX.Element;
1479
+ declare function MenuTrigger(props: MenuTriggerProps): _$react_jsx_runtime0.JSX.Element;
1202
1480
  /**
1203
1481
  * SubmenuTrigger for nested menus.
1204
1482
  */
1205
- declare function SubmenuTrigger(props: RAC.SubmenuTriggerProps): react_jsx_runtime.JSX.Element;
1483
+ declare function SubmenuTrigger(props: RAC.SubmenuTriggerProps): _$react_jsx_runtime0.JSX.Element;
1206
1484
  /**
1207
1485
  * The Menu container.
1208
1486
  */
1209
- declare function Menu<T extends object>(props: RAC.MenuProps<T>): react_jsx_runtime.JSX.Element;
1487
+ declare function Menu<T extends object>(props: RAC.MenuProps<T>): _$react_jsx_runtime0.JSX.Element;
1210
1488
  declare namespace Menu {
1211
- var Root: typeof Menu;
1212
- var Item: typeof MenuItem;
1213
- var Trigger: typeof MenuTrigger;
1214
- var SubTrigger: typeof SubmenuTrigger;
1215
- var Section: typeof MenuSection;
1216
- var Separator: typeof MenuSeparator;
1489
+ var Root: typeof Menu;
1490
+ var Item: typeof MenuItem;
1491
+ var Trigger: typeof MenuTrigger;
1492
+ var SubTrigger: typeof SubmenuTrigger;
1493
+ var Section: typeof MenuSection;
1494
+ var Separator: typeof MenuSeparator;
1217
1495
  }
1218
1496
  /**
1219
1497
  * MenuItem with support for selection states and submenus.
1220
1498
  */
1221
- declare function MenuItem(props: RAC.MenuItemProps): react_jsx_runtime.JSX.Element;
1499
+ declare function MenuItem(props: RAC.MenuItemProps): _$react_jsx_runtime0.JSX.Element;
1222
1500
  /**
1223
1501
  * MenuSection for grouping items with an optional header.
1224
1502
  */
1225
1503
  interface MenuSectionProps<T> extends RAC.MenuSectionProps<T> {
1226
- title?: string;
1504
+ title?: string;
1227
1505
  }
1228
- declare function MenuSection<T extends object>({ title, ...props }: MenuSectionProps<T>): react_jsx_runtime.JSX.Element;
1506
+ declare function MenuSection<T extends object>({
1507
+ title,
1508
+ ...props
1509
+ }: MenuSectionProps<T>): _$react_jsx_runtime0.JSX.Element;
1229
1510
  /**
1230
1511
  * MenuSeparator for visual division.
1231
1512
  */
1232
- declare function MenuSeparator(props: RAC.SeparatorProps): react_jsx_runtime.JSX.Element;
1233
-
1513
+ declare function MenuSeparator(props: RAC.SeparatorProps): _$react_jsx_runtime0.JSX.Element;
1514
+ //#endregion
1515
+ //#region src/client/components/primitives/tooltip.d.ts
1234
1516
  interface TooltipProps extends Omit<RAC.TooltipProps, 'children'> {
1235
- /** The content to show inside the tooltip */
1236
- content: ReactNode;
1237
- /** The trigger element (usually a button or link) */
1238
- children: React.ReactElement;
1239
- /** Delay in milliseconds before showing the tooltip */
1240
- delay?: number;
1241
- /** Delay in milliseconds before hiding the tooltip */
1242
- closeDelay?: number;
1243
- }
1244
- interface TooltipContentProps extends RAC.TooltipProps {
1245
- }
1517
+ /** The content to show inside the tooltip */
1518
+ content: ReactNode;
1519
+ /** The trigger element (usually a button or link) */
1520
+ children: React.ReactElement;
1521
+ /** Delay in milliseconds before showing the tooltip */
1522
+ delay?: number;
1523
+ /** Delay in milliseconds before hiding the tooltip */
1524
+ closeDelay?: number;
1525
+ }
1526
+ interface TooltipContentProps extends RAC.TooltipProps {}
1246
1527
  declare const Tooltip: {
1247
- ({ content, children, delay, closeDelay, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
1248
- Root: /*elided*/ any;
1249
- Content: ({ className, children, ...props }: TooltipContentProps) => react_jsx_runtime.JSX.Element;
1528
+ ({
1529
+ content,
1530
+ children,
1531
+ delay,
1532
+ closeDelay,
1533
+ ...props
1534
+ }: TooltipProps): _$react_jsx_runtime0.JSX.Element;
1535
+ Root: /*elided*/any;
1536
+ Content: ({
1537
+ className,
1538
+ children,
1539
+ ...props
1540
+ }: TooltipContentProps) => _$react_jsx_runtime0.JSX.Element;
1250
1541
  };
1251
-
1542
+ //#endregion
1543
+ //#region src/client/components/primitives/skeleton.d.ts
1252
1544
  interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
1253
- variant?: 'rect' | 'circle';
1545
+ variant?: 'rect' | 'circle';
1254
1546
  }
1255
1547
  /**
1256
1548
  * A flexible skeleton component that mimics the shape of content
1257
1549
  * while it is loading. Features a smooth pulse animation.
1258
1550
  */
1259
- declare function Skeleton({ className, variant, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
1260
-
1551
+ declare function Skeleton({
1552
+ className,
1553
+ variant,
1554
+ ...props
1555
+ }: SkeletonProps): _$react_jsx_runtime0.JSX.Element;
1556
+ //#endregion
1557
+ //#region src/client/utils/cn.d.ts
1261
1558
  declare function cn(...inputs: ClassValue[]): string;
1262
-
1263
- export { Admonition, type AdmonitionProps, AnchorProvider, Badge, type BadgeProps, type BoltdocsConfig, type BoltdocsThemeConfig, Breadcrumbs$1 as Breadcrumbs, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Cards, type CardsProps, Caution, CodeBlock, ComponentPreview, type ComponentPreviewProps, ComponentProps, type ComponentPropsProps, type ComponentRoute, CopyMarkdown, type CreateBoltdocsAppOptions, Danger, DefaultLayout, DocsLayout, ErrorBoundary, Field, type FieldProps, FileTree, type FileTreeProps, Head, Image, type ImageProps, Important, InfoBox, type LayoutProps$1 as LayoutProps, Link, type LinkProps, List, type ListProps, Loading, Navbar$1 as Navbar, NotFound, Note, OnThisPage$1 as OnThisPage, PageNav$1 as PageNav, Breadcrumbs as PrimitiveBreadcrumbs, Button$1 as PrimitiveButton, Link$1 as PrimitiveLink, Menu as PrimitiveMenu, NavLink as PrimitiveNavLink, Navbar as PrimitiveNavbar, NavigationMenu as PrimitiveNavigationMenu, OnThisPage as PrimitiveOnThisPage, PageNav as PrimitivePageNav, Popover as PrimitivePopover, Sidebar as PrimitiveSidebar, Skeleton as PrimitiveSkeleton, Tabs as PrimitiveTabs, Tooltip as PrimitiveTooltip, ScrollProvider, SearchDialog as SearchDialogPrimitive, Sidebar$1 as Sidebar, Tab, type TabProps, Table, type TableProps, Tabs$1 as Tabs, type TabsProps, Tip, Video, Warning, cn, createBoltdocsApp, useActiveAnchor, useActiveAnchors, useBreadcrumbs, useConfig, useI18n, useItems, useLocalizedTo, useLocation, useMdxComponents, useNavbar, useOnThisPage, usePageNav, useRoutes, useSearch, useSidebar, useTabs, useTheme, useVersion };
1559
+ //#endregion
1560
+ export { Admonition, type AdmonitionProps, AnchorProvider, Badge, type BadgeProps, type BoltdocsConfig$1 as BoltdocsConfig, BoltdocsShell, type BoltdocsThemeConfig, Breadcrumbs, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Cards, type CardsProps, Caution, CodeBlock, ComponentPreview, type ComponentPreviewProps, ComponentProps, type ComponentPropsProps, type ComponentRoute, CopyMarkdown, Danger, DefaultLayout, DocsLayout, ErrorBoundary, Field, type FieldProps, FileTree, type FileTreeProps, Head, Image, type ImageProps, Important, InfoBox, type LayoutProps, Link, type LinkProps, List, type ListProps, Loading, MdxPage, Navbar, NotFound, Note, OnThisPage, PageNav, Breadcrumbs$1 as PrimitiveBreadcrumbs, Button$1 as PrimitiveButton, Link$1 as PrimitiveLink, Menu as PrimitiveMenu, NavLink as PrimitiveNavLink, Navbar$1 as PrimitiveNavbar, NavigationMenu as PrimitiveNavigationMenu, OnThisPage$1 as PrimitiveOnThisPage, PageNav$1 as PrimitivePageNav, Popover as PrimitivePopover, Sidebar as PrimitiveSidebar, Skeleton as PrimitiveSkeleton, Tabs as PrimitiveTabs, Tooltip as PrimitiveTooltip, ScrollProvider, SearchDialog as SearchDialogPrimitive, Sidebar$1 as Sidebar, Tab, type TabProps, Table, type TableProps, Tabs$1 as Tabs, type TabsProps, Tip, Video, Warning, cn, createRoutes, defineConfig, useActiveAnchor, useActiveAnchors, useBreadcrumbs, useConfig, useI18n, useItems, useLocalizedTo, useLocation, useMdxComponents, useNavbar, useOnThisPage, usePageNav, useRoutes, useSearch, useSidebar, useTabs, useTheme, useVersion };