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.
- package/bin/boltdocs.js +2 -2
- package/dist/client/index.cjs +6 -0
- package/dist/client/index.d.cts +1560 -0
- package/dist/client/index.d.ts +1219 -922
- package/dist/client/index.js +6 -1
- package/dist/client/theme/neutral.css +428 -0
- package/dist/node/cli-entry.cjs +8 -0
- package/dist/node/cli-entry.d.cts +2 -0
- package/dist/node/cli-entry.d.mts +2 -1
- package/dist/node/cli-entry.mjs +7 -5
- package/dist/node/index.cjs +6 -0
- package/dist/node/index.d.cts +519 -0
- package/dist/node/index.d.mts +374 -422
- package/dist/node/index.mjs +6 -1
- package/dist/node-BgvNl2Ay.mjs +89 -0
- package/dist/node-vkbb0MK7.cjs +89 -0
- package/dist/package-CR0HF9x3.mjs +6 -0
- package/dist/package-Dgmsc_l5.cjs +6 -0
- package/dist/search-dialog-3lvKsbVG.js +6 -0
- package/dist/search-dialog-DMK5OpgH.cjs +6 -0
- package/dist/use-search-C9bxCqfF.js +6 -0
- package/dist/use-search-DcfZSunO.cjs +6 -0
- package/package.json +26 -25
- package/src/client/app/config-context.tsx +38 -5
- package/src/client/app/doc-page.tsx +34 -0
- package/src/client/app/mdx-component.tsx +2 -3
- package/src/client/app/mdx-components-context.tsx +27 -2
- package/src/client/app/routes-context.tsx +34 -0
- package/src/client/app/scroll-handler.tsx +7 -4
- package/src/client/app/theme-context.tsx +71 -67
- package/src/client/components/default-layout.tsx +34 -33
- package/src/client/components/docs-layout.tsx +1 -2
- package/src/client/components/icons-dev.tsx +36 -5
- package/src/client/components/mdx/admonition.tsx +11 -27
- package/src/client/components/mdx/badge.tsx +1 -1
- package/src/client/components/mdx/button.tsx +3 -3
- package/src/client/components/mdx/card.tsx +1 -1
- package/src/client/components/mdx/code-block.tsx +90 -80
- package/src/client/components/mdx/component-preview.tsx +1 -5
- package/src/client/components/mdx/component-props.tsx +1 -1
- package/src/client/components/mdx/field.tsx +4 -5
- package/src/client/components/mdx/file-tree.tsx +6 -3
- package/src/client/components/mdx/hooks/use-code-block.ts +2 -2
- package/src/client/components/mdx/image.tsx +1 -1
- package/src/client/components/mdx/link.tsx +2 -2
- package/src/client/components/mdx/list.tsx +1 -1
- package/src/client/components/mdx/table.tsx +1 -1
- package/src/client/components/mdx/tabs.tsx +1 -1
- package/src/client/components/primitives/breadcrumbs.tsx +1 -7
- package/src/client/components/primitives/button-group.tsx +1 -1
- package/src/client/components/primitives/button.tsx +1 -1
- package/src/client/components/primitives/code-block.tsx +113 -0
- package/src/client/components/primitives/link.tsx +23 -41
- package/src/client/components/primitives/menu.tsx +5 -6
- package/src/client/components/primitives/navbar.tsx +6 -18
- package/src/client/components/primitives/navigation-menu.tsx +4 -4
- package/src/client/components/primitives/on-this-page.tsx +6 -10
- package/src/client/components/primitives/page-nav.tsx +4 -9
- package/src/client/components/primitives/popover.tsx +1 -1
- package/src/client/components/primitives/search-dialog.tsx +3 -6
- package/src/client/components/primitives/sidebar.tsx +80 -22
- package/src/client/components/primitives/skeleton.tsx +1 -1
- package/src/client/components/primitives/tabs.tsx +4 -11
- package/src/client/components/primitives/tooltip.tsx +3 -3
- package/src/client/components/ui-base/breadcrumbs.tsx +4 -6
- package/src/client/components/ui-base/copy-markdown.tsx +2 -7
- package/src/client/components/ui-base/github-stars.tsx +2 -2
- package/src/client/components/ui-base/head.tsx +58 -51
- package/src/client/components/ui-base/loading.tsx +2 -2
- package/src/client/components/ui-base/navbar.tsx +12 -14
- package/src/client/components/ui-base/not-found.tsx +1 -1
- package/src/client/components/ui-base/on-this-page.tsx +6 -6
- package/src/client/components/ui-base/page-nav.tsx +4 -8
- package/src/client/components/ui-base/search-dialog.tsx +10 -8
- package/src/client/components/ui-base/sidebar.tsx +76 -23
- package/src/client/components/ui-base/tabs.tsx +9 -8
- package/src/client/components/ui-base/theme-toggle.tsx +2 -2
- package/src/client/hooks/use-i18n.ts +3 -3
- package/src/client/hooks/use-localized-to.ts +1 -1
- package/src/client/hooks/use-navbar.ts +8 -6
- package/src/client/hooks/use-routes.ts +19 -11
- package/src/client/hooks/use-search.ts +1 -1
- package/src/client/hooks/use-sidebar.ts +48 -2
- package/src/client/hooks/use-tabs.ts +6 -2
- package/src/client/hooks/use-version.ts +3 -3
- package/src/client/index.ts +22 -22
- package/src/client/ssg/boltdocs-shell.tsx +127 -0
- package/src/client/ssg/create-routes.tsx +179 -0
- package/src/client/ssg/index.ts +3 -0
- package/src/client/ssg/mdx-page.tsx +37 -0
- package/src/client/store/boltdocs-context.tsx +66 -0
- package/src/client/theme/neutral.css +90 -50
- package/src/client/types.ts +5 -33
- package/src/client/utils/react-to-text.ts +34 -0
- package/CHANGELOG.md +0 -98
- package/dist/cache-3FOEPC2P.mjs +0 -1
- package/dist/chunk-5B5NKOW6.mjs +0 -77
- package/dist/chunk-J2PTDWZM.mjs +0 -1
- package/dist/chunk-TP5KMRD3.mjs +0 -1
- package/dist/chunk-Y4RE5KI7.mjs +0 -1
- package/dist/client/index.d.mts +0 -1263
- package/dist/client/index.mjs +0 -1
- package/dist/client/ssr.d.mts +0 -78
- package/dist/client/ssr.d.ts +0 -78
- package/dist/client/ssr.js +0 -1
- package/dist/client/ssr.mjs +0 -1
- package/dist/node/cli-entry.d.ts +0 -1
- package/dist/node/cli-entry.js +0 -82
- package/dist/node/index.d.ts +0 -567
- package/dist/node/index.js +0 -77
- package/dist/package-QFIAETHR.mjs +0 -1
- package/dist/search-dialog-O6VLVSOA.mjs +0 -1
- package/src/client/app/index.tsx +0 -345
- package/src/client/app/mdx-page.tsx +0 -15
- package/src/client/app/preload.tsx +0 -66
- package/src/client/app/router.tsx +0 -30
- package/src/client/integrations/codesandbox.ts +0 -179
- package/src/client/integrations/index.ts +0 -1
- package/src/client/ssr.tsx +0 -65
- package/src/client/store/use-boltdocs-store.ts +0 -44
- package/src/node/cache.ts +0 -408
- package/src/node/cli/build.ts +0 -53
- package/src/node/cli/dev.ts +0 -22
- package/src/node/cli/doctor.ts +0 -243
- package/src/node/cli/index.ts +0 -9
- package/src/node/cli/ui.ts +0 -54
- package/src/node/cli-entry.ts +0 -24
- package/src/node/config.ts +0 -382
- package/src/node/errors.ts +0 -44
- package/src/node/index.ts +0 -84
- package/src/node/mdx/cache.ts +0 -12
- package/src/node/mdx/highlighter.ts +0 -47
- package/src/node/mdx/index.ts +0 -122
- package/src/node/mdx/rehype-shiki.ts +0 -62
- package/src/node/mdx/remark-code-meta.ts +0 -35
- package/src/node/mdx/remark-shiki.ts +0 -61
- package/src/node/plugin/entry.ts +0 -87
- package/src/node/plugin/html.ts +0 -99
- package/src/node/plugin/index.ts +0 -478
- package/src/node/plugin/types.ts +0 -9
- package/src/node/plugins/index.ts +0 -17
- package/src/node/plugins/plugin-errors.ts +0 -62
- package/src/node/plugins/plugin-lifecycle.ts +0 -117
- package/src/node/plugins/plugin-sandbox.ts +0 -59
- package/src/node/plugins/plugin-store.ts +0 -54
- package/src/node/plugins/plugin-types.ts +0 -107
- package/src/node/plugins/plugin-validator.ts +0 -105
- package/src/node/routes/cache.ts +0 -28
- package/src/node/routes/index.ts +0 -293
- package/src/node/routes/parser.ts +0 -262
- package/src/node/routes/sorter.ts +0 -42
- package/src/node/routes/types.ts +0 -61
- package/src/node/schema/config.ts +0 -195
- package/src/node/schema/frontmatter.ts +0 -17
- package/src/node/search/index.ts +0 -55
- package/src/node/security/constants/index.ts +0 -10
- package/src/node/security/csp.ts +0 -31
- package/src/node/security/headers.ts +0 -27
- package/src/node/ssg/index.ts +0 -205
- package/src/node/ssg/meta.ts +0 -33
- package/src/node/ssg/options.ts +0 -15
- package/src/node/ssg/robots.ts +0 -53
- package/src/node/ssg/sitemap.ts +0 -55
- package/src/node/utils.ts +0 -349
- package/tsconfig.json +0 -26
- package/tsup.config.ts +0 -56
package/dist/client/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
85
|
-
|
|
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
|
-
|
|
94
|
-
text?: string;
|
|
27
|
+
text?: string;
|
|
95
28
|
}
|
|
96
29
|
/**
|
|
97
|
-
* Theme-specific configuration options
|
|
30
|
+
* Theme-specific configuration options.
|
|
98
31
|
*/
|
|
99
32
|
interface BoltdocsThemeConfig {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
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
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
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
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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
|
-
|
|
223
|
-
|
|
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
|
-
|
|
232
|
-
|
|
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
|
|
125
|
+
* Defines a Boltdocs plugin.
|
|
243
126
|
*/
|
|
244
127
|
interface BoltdocsPlugin {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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
|
-
|
|
271
|
-
|
|
272
|
-
|
|
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
|
-
*
|
|
148
|
+
* Configuration for SEO.
|
|
279
149
|
*/
|
|
280
|
-
interface
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
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
|
-
*
|
|
305
|
-
* Maps closely to the `RouteMeta` type in the Node environment.
|
|
158
|
+
* The root configuration object for Boltdocs.
|
|
306
159
|
*/
|
|
307
|
-
interface
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
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
|
-
*
|
|
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
|
-
|
|
183
|
+
declare function defineConfig(config: BoltdocsConfig$1): BoltdocsConfig$1;
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region src/client/types.d.ts
|
|
356
186
|
/**
|
|
357
|
-
*
|
|
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
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
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
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
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
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
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
|
|
416
|
-
|
|
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
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
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
|
-
*
|
|
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
|
|
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
|
-
|
|
461
|
-
|
|
462
|
-
|
|
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
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
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
|
-
|
|
493
|
-
declare function useMdxComponents():
|
|
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
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
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
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
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
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
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
|
-
|
|
537
|
-
|
|
538
|
-
|
|
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
|
-
|
|
545
|
-
|
|
546
|
-
|
|
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
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
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
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
434
|
+
key: string;
|
|
435
|
+
label: string;
|
|
436
|
+
value: string;
|
|
437
|
+
isCurrent: boolean;
|
|
562
438
|
}
|
|
563
439
|
interface UseVersionReturn {
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
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
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
452
|
+
key: string;
|
|
453
|
+
label: string;
|
|
454
|
+
value: string;
|
|
455
|
+
isCurrent: boolean;
|
|
579
456
|
}
|
|
580
457
|
interface UseI18nReturn {
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
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
|
-
|
|
597
|
-
|
|
598
|
-
|
|
474
|
+
prevPage: null;
|
|
475
|
+
nextPage: null;
|
|
476
|
+
currentRoute: null;
|
|
599
477
|
} | {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
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
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
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$
|
|
621
|
-
|
|
622
|
-
|
|
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
|
-
|
|
629
|
-
|
|
630
|
-
|
|
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({
|
|
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({
|
|
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({
|
|
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({
|
|
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({
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
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
|
-
|
|
662
|
-
|
|
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({
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
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
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
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
|
|
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
|
-
|
|
701
|
-
|
|
625
|
+
children?: ReactNode;
|
|
626
|
+
fallback?: ReactNode;
|
|
702
627
|
}
|
|
703
628
|
interface State {
|
|
704
|
-
|
|
705
|
-
|
|
629
|
+
hasError: boolean;
|
|
630
|
+
error?: Error;
|
|
706
631
|
}
|
|
707
632
|
declare class ErrorBoundary extends Component<Props, State> {
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
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
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
}
|
|
723
|
-
declare function CopyMarkdown({
|
|
724
|
-
|
|
725
|
-
|
|
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():
|
|
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
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
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
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
}
|
|
755
|
-
declare function Video({
|
|
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
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
} &
|
|
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
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
}
|
|
773
|
-
declare const Button$1: ({
|
|
774
|
-
|
|
775
|
-
|
|
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
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
}
|
|
783
|
-
declare function Tab({
|
|
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
|
-
|
|
786
|
-
|
|
787
|
-
}
|
|
788
|
-
declare function Tabs$1({
|
|
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
|
-
|
|
792
|
-
} &
|
|
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
|
-
|
|
795
|
-
}
|
|
796
|
-
declare function Badge({
|
|
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
|
-
|
|
800
|
-
} &
|
|
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
|
-
|
|
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
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
}
|
|
811
|
-
declare function Card({
|
|
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
|
-
|
|
815
|
-
} &
|
|
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
|
-
|
|
819
|
-
|
|
820
|
-
}
|
|
821
|
-
declare function Admonition({
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
declare const
|
|
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
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
} &
|
|
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
|
-
|
|
839
|
-
|
|
840
|
-
}
|
|
841
|
-
declare function List({
|
|
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
|
-
|
|
850
|
+
children: React.ReactNode;
|
|
845
851
|
}
|
|
846
|
-
declare function FileTree({
|
|
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
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
}
|
|
857
|
-
declare function Table({
|
|
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
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
}
|
|
868
|
-
declare function Field({
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
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:
|
|
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$
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
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:
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
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({
|
|
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
|
-
|
|
923
|
-
|
|
924
|
-
|
|
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({
|
|
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
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
973
|
+
name: string;
|
|
974
|
+
type: string;
|
|
975
|
+
defaultValue?: string;
|
|
976
|
+
required?: boolean;
|
|
977
|
+
description: React.ReactNode;
|
|
938
978
|
}
|
|
939
979
|
interface ComponentPropsProps {
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
}
|
|
944
|
-
declare function ComponentProps({
|
|
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
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
}
|
|
954
|
-
declare function ComponentPreview(props: ComponentPreviewProps):
|
|
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
|
-
|
|
958
|
-
|
|
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
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
1009
|
+
label: ReactNode;
|
|
1010
|
+
href: string;
|
|
1011
|
+
active?: boolean;
|
|
1012
|
+
to?: 'internal' | 'external';
|
|
966
1013
|
}
|
|
967
1014
|
interface NavbarLogoProps extends Omit<ComponentBase, 'children'> {
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1015
|
+
src: string;
|
|
1016
|
+
alt: string;
|
|
1017
|
+
width?: number;
|
|
1018
|
+
height?: number;
|
|
972
1019
|
}
|
|
973
1020
|
interface NavbarSearchTriggerProps extends ComponentBase {
|
|
974
|
-
|
|
1021
|
+
onPress: () => void;
|
|
975
1022
|
}
|
|
976
1023
|
interface NavbarThemeProps {
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
1024
|
+
className?: string;
|
|
1025
|
+
theme: 'dark' | 'light';
|
|
1026
|
+
onThemeChange: (isSelected: boolean) => void;
|
|
980
1027
|
}
|
|
981
1028
|
interface NavbarSocialsProps extends ComponentBase {
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
}
|
|
985
|
-
declare const Navbar: {
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
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
|
-
|
|
1098
|
+
label: string;
|
|
1004
1099
|
}
|
|
1005
1100
|
interface NavigationMenuLinkProps extends Omit<ComponentBase, 'children'> {
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
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
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
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
|
-
|
|
1021
|
-
|
|
1134
|
+
isOpen?: boolean;
|
|
1135
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
1022
1136
|
}
|
|
1023
1137
|
interface SearchDialogItemProps extends Omit<RAC.ListBoxItemProps, 'children'> {
|
|
1024
|
-
|
|
1025
|
-
|
|
1138
|
+
className?: string;
|
|
1139
|
+
children: React.ReactNode;
|
|
1026
1140
|
}
|
|
1027
1141
|
interface SearchDialogItemIconProps {
|
|
1028
|
-
|
|
1029
|
-
|
|
1142
|
+
isHeading?: boolean;
|
|
1143
|
+
className?: string;
|
|
1030
1144
|
}
|
|
1031
1145
|
declare const SearchDialog: {
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
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
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1197
|
+
title: ReactNode;
|
|
1198
|
+
url: string;
|
|
1199
|
+
depth: number;
|
|
1200
|
+
_step?: number;
|
|
1056
1201
|
}
|
|
1057
1202
|
interface TOCItemInfo {
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
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
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
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
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
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
|
-
|
|
1084
|
-
|
|
1228
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
1229
|
+
scrollRef?: RefObject<HTMLElement | null>;
|
|
1085
1230
|
}
|
|
1086
1231
|
interface OnThisPageItemProps extends ComponentBase {
|
|
1087
|
-
|
|
1232
|
+
level?: number;
|
|
1088
1233
|
}
|
|
1089
1234
|
interface OnThisPageLinkProps extends ComponentBase {
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1235
|
+
href?: string;
|
|
1236
|
+
active?: boolean;
|
|
1237
|
+
onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
1093
1238
|
}
|
|
1094
1239
|
interface OnThisPageIndicatorProps extends ComponentBase {
|
|
1095
|
-
|
|
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({
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
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
|
-
|
|
1119
|
-
|
|
1120
|
-
}
|
|
1121
|
-
declare const PageNav: {
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
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
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
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
|
-
|
|
1336
|
+
style?: React.CSSProperties;
|
|
1139
1337
|
}
|
|
1140
1338
|
declare const Tabs: {
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
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
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
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
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
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
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
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
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
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
|
-
|
|
1182
|
-
}
|
|
1183
|
-
declare const ButtonGroup: ({
|
|
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
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
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: ({
|
|
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
|
-
|
|
1477
|
+
placement?: PopoverProps['placement'];
|
|
1200
1478
|
}
|
|
1201
|
-
declare function MenuTrigger(props: MenuTriggerProps):
|
|
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):
|
|
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>):
|
|
1487
|
+
declare function Menu<T extends object>(props: RAC.MenuProps<T>): _$react_jsx_runtime0.JSX.Element;
|
|
1210
1488
|
declare namespace Menu {
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
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):
|
|
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
|
-
|
|
1504
|
+
title?: string;
|
|
1227
1505
|
}
|
|
1228
|
-
declare function MenuSection<T extends object>({
|
|
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):
|
|
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
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
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
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
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
|
-
|
|
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({
|
|
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
|
|
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 };
|