boltdocs 1.6.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SearchDialog-J3KNRGNO.mjs → SearchDialog-6Z7CUAYJ.mjs} +8 -1
- package/dist/{SearchDialog-3QICRMWF.css → SearchDialog-GOZ6X53X.css} +385 -113
- package/dist/{chunk-HSPDIRTW.mjs → chunk-SFVOGJ2W.mjs} +955 -737
- package/dist/client/index.css +385 -113
- package/dist/client/index.d.mts +19 -7
- package/dist/client/index.d.ts +19 -7
- package/dist/client/index.js +964 -577
- package/dist/client/index.mjs +118 -1
- package/dist/client/ssr.css +385 -113
- package/dist/client/ssr.d.mts +3 -1
- package/dist/client/ssr.d.ts +3 -1
- package/dist/client/ssr.js +743 -474
- package/dist/client/ssr.mjs +3 -2
- package/dist/{config-DkZg5aCf.d.ts → config-D68h41CA.d.mts} +21 -2
- package/dist/{config-DkZg5aCf.d.mts → config-D68h41CA.d.ts} +21 -2
- package/dist/node/index.d.mts +12 -2
- package/dist/node/index.d.ts +12 -2
- package/dist/node/index.js +48 -21
- package/dist/node/index.mjs +48 -21
- package/dist/{types-DGIo1VKD.d.mts → types-BbceAHA0.d.mts} +15 -0
- package/dist/{types-DGIo1VKD.d.ts → types-BbceAHA0.d.ts} +15 -0
- package/package.json +1 -1
- package/src/client/app/index.tsx +16 -11
- package/src/client/index.ts +2 -0
- package/src/client/ssr.tsx +4 -1
- package/src/client/theme/components/mdx/Table.tsx +151 -0
- package/src/client/theme/components/mdx/index.ts +3 -0
- package/src/client/theme/components/mdx/mdx-components.css +128 -0
- package/src/client/theme/styles/markdown.css +8 -3
- package/src/client/theme/styles/variables.css +34 -9
- package/src/client/theme/ui/ErrorBoundary/ErrorBoundary.tsx +46 -0
- package/src/client/theme/ui/ErrorBoundary/index.ts +1 -0
- package/src/client/theme/ui/Layout/Layout.tsx +10 -11
- package/src/client/theme/ui/Layout/base.css +15 -3
- package/src/client/theme/ui/Link/Link.tsx +2 -2
- package/src/client/theme/ui/Link/LinkPreview.tsx +9 -14
- package/src/client/theme/ui/Link/link-preview.css +30 -27
- package/src/client/theme/ui/Navbar/Navbar.tsx +65 -17
- package/src/client/theme/ui/Navbar/Tabs.tsx +99 -0
- package/src/client/theme/ui/Navbar/navbar.css +119 -5
- package/src/client/theme/ui/OnThisPage/OnThisPage.tsx +66 -57
- package/src/client/theme/ui/OnThisPage/toc.css +30 -10
- package/src/client/theme/ui/ProgressBar/ProgressBar.css +17 -0
- package/src/client/theme/ui/ProgressBar/ProgressBar.tsx +51 -0
- package/src/client/theme/ui/ProgressBar/index.ts +1 -0
- package/src/client/theme/ui/SearchDialog/SearchDialog.tsx +11 -1
- package/src/client/theme/ui/Sidebar/Sidebar.tsx +97 -57
- package/src/client/theme/ui/Sidebar/sidebar.css +61 -67
- package/src/client/types.ts +12 -0
- package/src/node/config.ts +19 -1
- package/src/node/plugin/entry.ts +5 -1
- package/src/node/plugin/index.ts +2 -1
- package/src/node/routes/index.ts +13 -1
- package/src/node/routes/parser.ts +32 -7
- package/src/node/routes/types.ts +11 -1
- package/src/node/ssg/index.ts +2 -1
- package/src/node/ssg/options.ts +2 -0
package/dist/client/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as BoltdocsConfig } from '../config-
|
|
2
|
-
export { a as BoltdocsThemeConfig } from '../config-
|
|
3
|
-
import { C as CreateBoltdocsAppOptions, a as ComponentRoute } from '../types-
|
|
1
|
+
import { B as BoltdocsConfig } from '../config-D68h41CA.mjs';
|
|
2
|
+
export { a as BoltdocsThemeConfig } from '../config-D68h41CA.mjs';
|
|
3
|
+
import { C as CreateBoltdocsAppOptions, a as ComponentRoute } from '../types-BbceAHA0.mjs';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import 'vite';
|
|
@@ -54,6 +54,9 @@ interface RouteItem {
|
|
|
54
54
|
text: string;
|
|
55
55
|
expires?: string;
|
|
56
56
|
};
|
|
57
|
+
icon?: string;
|
|
58
|
+
tab?: string;
|
|
59
|
+
groupIcon?: string;
|
|
57
60
|
}
|
|
58
61
|
/**
|
|
59
62
|
* The sidebar navigation component.
|
|
@@ -63,11 +66,9 @@ interface RouteItem {
|
|
|
63
66
|
* @param routes - Array of all generated routes to be displayed
|
|
64
67
|
* @param config - Global configuration (which can contain sidebar overrides)
|
|
65
68
|
*/
|
|
66
|
-
declare function Sidebar({ routes, config,
|
|
69
|
+
declare function Sidebar({ routes, config, }: {
|
|
67
70
|
routes: RouteItem[];
|
|
68
71
|
config: BoltdocsConfig;
|
|
69
|
-
isCollapsed?: boolean;
|
|
70
|
-
onToggle?: () => void;
|
|
71
72
|
}): react_jsx_runtime.JSX.Element;
|
|
72
73
|
|
|
73
74
|
interface TocHeading {
|
|
@@ -343,4 +344,15 @@ interface FileTreeProps {
|
|
|
343
344
|
*/
|
|
344
345
|
declare function FileTree({ children }: FileTreeProps): react_jsx_runtime.JSX.Element;
|
|
345
346
|
|
|
346
|
-
|
|
347
|
+
interface TableProps {
|
|
348
|
+
headers?: string[];
|
|
349
|
+
data?: (string | React.ReactNode)[][];
|
|
350
|
+
children?: React.ReactNode;
|
|
351
|
+
className?: string;
|
|
352
|
+
sortable?: boolean;
|
|
353
|
+
paginated?: boolean;
|
|
354
|
+
pageSize?: number;
|
|
355
|
+
}
|
|
356
|
+
declare function Table({ headers, data, children, className, sortable, paginated, pageSize, }: TableProps): react_jsx_runtime.JSX.Element;
|
|
357
|
+
|
|
358
|
+
export { Admonition, type AdmonitionProps, BackgroundGradient, Badge, type BadgeProps, BoltdocsConfig, Breadcrumbs, Button, type ButtonProps, Card, type CardProps, Cards, type CardsProps, CodeBlock, ComponentRoute, CreateBoltdocsAppOptions, Danger, FileTree, type FileTreeProps, Head, InfoBox, List, type ListProps, Loading, Navbar, NotFound, Note, OnThisPage, Playground, Sidebar, Tab, type TabProps, Table, type TableProps, Tabs, type TabsProps, ThemeLayout, Tip, Video, Warning, createBoltdocsApp };
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as BoltdocsConfig } from '../config-
|
|
2
|
-
export { a as BoltdocsThemeConfig } from '../config-
|
|
3
|
-
import { C as CreateBoltdocsAppOptions, a as ComponentRoute } from '../types-
|
|
1
|
+
import { B as BoltdocsConfig } from '../config-D68h41CA.js';
|
|
2
|
+
export { a as BoltdocsThemeConfig } from '../config-D68h41CA.js';
|
|
3
|
+
import { C as CreateBoltdocsAppOptions, a as ComponentRoute } from '../types-BbceAHA0.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import 'vite';
|
|
@@ -54,6 +54,9 @@ interface RouteItem {
|
|
|
54
54
|
text: string;
|
|
55
55
|
expires?: string;
|
|
56
56
|
};
|
|
57
|
+
icon?: string;
|
|
58
|
+
tab?: string;
|
|
59
|
+
groupIcon?: string;
|
|
57
60
|
}
|
|
58
61
|
/**
|
|
59
62
|
* The sidebar navigation component.
|
|
@@ -63,11 +66,9 @@ interface RouteItem {
|
|
|
63
66
|
* @param routes - Array of all generated routes to be displayed
|
|
64
67
|
* @param config - Global configuration (which can contain sidebar overrides)
|
|
65
68
|
*/
|
|
66
|
-
declare function Sidebar({ routes, config,
|
|
69
|
+
declare function Sidebar({ routes, config, }: {
|
|
67
70
|
routes: RouteItem[];
|
|
68
71
|
config: BoltdocsConfig;
|
|
69
|
-
isCollapsed?: boolean;
|
|
70
|
-
onToggle?: () => void;
|
|
71
72
|
}): react_jsx_runtime.JSX.Element;
|
|
72
73
|
|
|
73
74
|
interface TocHeading {
|
|
@@ -343,4 +344,15 @@ interface FileTreeProps {
|
|
|
343
344
|
*/
|
|
344
345
|
declare function FileTree({ children }: FileTreeProps): react_jsx_runtime.JSX.Element;
|
|
345
346
|
|
|
346
|
-
|
|
347
|
+
interface TableProps {
|
|
348
|
+
headers?: string[];
|
|
349
|
+
data?: (string | React.ReactNode)[][];
|
|
350
|
+
children?: React.ReactNode;
|
|
351
|
+
className?: string;
|
|
352
|
+
sortable?: boolean;
|
|
353
|
+
paginated?: boolean;
|
|
354
|
+
pageSize?: number;
|
|
355
|
+
}
|
|
356
|
+
declare function Table({ headers, data, children, className, sortable, paginated, pageSize, }: TableProps): react_jsx_runtime.JSX.Element;
|
|
357
|
+
|
|
358
|
+
export { Admonition, type AdmonitionProps, BackgroundGradient, Badge, type BadgeProps, BoltdocsConfig, Breadcrumbs, Button, type ButtonProps, Card, type CardProps, Cards, type CardsProps, CodeBlock, ComponentRoute, CreateBoltdocsAppOptions, Danger, FileTree, type FileTreeProps, Head, InfoBox, List, type ListProps, Loading, Navbar, NotFound, Note, OnThisPage, Playground, Sidebar, Tab, type TabProps, Table, type TableProps, Tabs, type TabsProps, ThemeLayout, Tip, Video, Warning, createBoltdocsApp };
|