@usecross/docs 0.6.0 → 0.7.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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CodeBlockProps, D as DocsLayoutProps, a as DocContent, M as MarkdownProps, S as SidebarProps, b as DocsAppConfig } from './types-CR-kx8KP.js';
3
- export { N as NavItem, c as NavSection, d as SharedProps } from './types-CR-kx8KP.js';
2
+ import { C as CodeBlockProps, D as DocSetMeta, a as DocsLayoutProps, b as DocContent, M as MarkdownProps, S as SidebarProps, c as DocsAppConfig } from './types-DlF8TX2Q.js';
3
+ export { N as NavItem, d as NavSection, e as SharedProps } from './types-DlF8TX2Q.js';
4
4
  import { ReactNode } from 'react';
5
5
  import { ClassValue } from 'clsx';
6
6
  import { HighlighterCore } from 'shiki/core';
@@ -16,6 +16,17 @@ declare function InlineCode({ children }: {
16
16
  children: React.ReactNode;
17
17
  }): react_jsx_runtime.JSX.Element;
18
18
 
19
+ interface DocSetSelectorProps {
20
+ docSets: DocSetMeta[];
21
+ currentDocSet: string;
22
+ className?: string;
23
+ }
24
+ /**
25
+ * Dropdown selector for switching between documentation sets.
26
+ * Inspired by Fumadocs design - clean and minimal.
27
+ */
28
+ declare function DocSetSelector({ docSets, currentDocSet, className }: DocSetSelectorProps): react_jsx_runtime.JSX.Element;
29
+
19
30
  /**
20
31
  * Full-featured documentation layout with sidebar, mobile menu, and header.
21
32
  */
@@ -142,8 +153,9 @@ declare function Markdown({ content, components }: MarkdownProps): react_jsx_run
142
153
 
143
154
  /**
144
155
  * Documentation sidebar with section-based navigation.
156
+ * In multi-docs mode, includes a dropdown selector at the top.
145
157
  */
146
- declare function Sidebar({ nav, currentPath, className }: SidebarProps): react_jsx_runtime.JSX.Element;
158
+ declare function Sidebar({ nav, currentPath, className, docSets, currentDocSet }: SidebarProps): react_jsx_runtime.JSX.Element;
147
159
 
148
160
  type Theme = 'light' | 'dark' | 'system';
149
161
  type ResolvedTheme = 'light' | 'dark';
@@ -215,4 +227,4 @@ declare function configureHighlighter(options: {
215
227
  langs?: Promise<any>[];
216
228
  }): void;
217
229
 
218
- export { CodeBlock, CodeBlockProps, DocContent, DocsAppConfig, DocsLayout, DocsLayoutProps, DocsPage, EmojiConfetti, HomeCTA, type HomeFeature, HomeFeatureItem, type HomeFeatureItemProps, HomeFeatures, type HomeFeaturesProps, HomeFooter, HomeHeader, type HomeHeaderProps, HomeHero, HomePage, type HomePageContextValue, type HomePageProps, InlineCode, Markdown, MarkdownProps, type ResolvedTheme, Sidebar, SidebarProps, type Theme, ThemeProvider, ThemeToggle, cn, configureHighlighter, createDocsApp, getHighlighter, themeInitScript, useTheme };
230
+ export { CodeBlock, CodeBlockProps, DocContent, DocSetMeta, DocSetSelector, DocsAppConfig, DocsLayout, DocsLayoutProps, DocsPage, EmojiConfetti, HomeCTA, type HomeFeature, HomeFeatureItem, type HomeFeatureItemProps, HomeFeatures, type HomeFeaturesProps, HomeFooter, HomeHeader, type HomeHeaderProps, HomeHero, HomePage, type HomePageContextValue, type HomePageProps, InlineCode, Markdown, MarkdownProps, type ResolvedTheme, Sidebar, SidebarProps, type Theme, ThemeProvider, ThemeToggle, cn, configureHighlighter, createDocsApp, getHighlighter, themeInitScript, useTheme };