docstra 0.0.1 → 1.0.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.
@@ -0,0 +1,70 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React$1 from 'react';
3
+
4
+ interface DocstraContextType {
5
+ openSidebar: boolean;
6
+ setOpenSidebar: (open: boolean) => void;
7
+ docstraConfig: DocstraConfig;
8
+ openSearchBox: boolean;
9
+ setOpenSearchBox: (open: boolean) => void;
10
+ }
11
+ interface DocstraConfig {
12
+ siteName?: string;
13
+ editOnGithub?: boolean;
14
+ formSyncFormID?: string;
15
+ githubRepo?: string;
16
+ navbar?: {
17
+ logo?: {
18
+ link: string;
19
+ src: string;
20
+ alt: string;
21
+ className?: string;
22
+ };
23
+ links?: {
24
+ name: string;
25
+ href: string;
26
+ }[];
27
+ };
28
+ sidebar?: {
29
+ links?: DocsLinkGroup[];
30
+ };
31
+ }
32
+ interface DocsLinkItem {
33
+ name: string;
34
+ href: string;
35
+ icon?: string;
36
+ }
37
+ interface DocsLinkGroup {
38
+ section: string;
39
+ items: DocsLinkItem[];
40
+ }
41
+
42
+ declare function DocstraProvider({ children, docstraConfig }: {
43
+ children: React$1.ReactNode;
44
+ docstraConfig: DocstraConfig;
45
+ }): react_jsx_runtime.JSX.Element;
46
+ declare function useDocstra(): DocstraContextType;
47
+
48
+ declare function DocstraHeader(): react_jsx_runtime.JSX.Element;
49
+
50
+ declare function DocstraSidebar(): react_jsx_runtime.JSX.Element;
51
+
52
+ declare function DocstraPage({ children }: {
53
+ children: React.ReactNode;
54
+ }): react_jsx_runtime.JSX.Element;
55
+
56
+ interface Props {
57
+ children: React.ReactNode;
58
+ metadata: any;
59
+ mdxContent: string;
60
+ }
61
+ declare function DocstraBody({ children, metadata, mdxContent }: Props): react_jsx_runtime.JSX.Element;
62
+
63
+ declare function DocstraTOC({ mdxFilePath, rawMdxContent }: {
64
+ mdxFilePath: string;
65
+ rawMdxContent: string;
66
+ }): react_jsx_runtime.JSX.Element;
67
+
68
+ declare function DocstraCodeBlock(props: any): react_jsx_runtime.JSX.Element;
69
+
70
+ export { DocstraBody, DocstraCodeBlock, DocstraHeader, DocstraPage, DocstraProvider, DocstraSidebar, DocstraTOC, useDocstra };
@@ -0,0 +1,70 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React$1 from 'react';
3
+
4
+ interface DocstraContextType {
5
+ openSidebar: boolean;
6
+ setOpenSidebar: (open: boolean) => void;
7
+ docstraConfig: DocstraConfig;
8
+ openSearchBox: boolean;
9
+ setOpenSearchBox: (open: boolean) => void;
10
+ }
11
+ interface DocstraConfig {
12
+ siteName?: string;
13
+ editOnGithub?: boolean;
14
+ formSyncFormID?: string;
15
+ githubRepo?: string;
16
+ navbar?: {
17
+ logo?: {
18
+ link: string;
19
+ src: string;
20
+ alt: string;
21
+ className?: string;
22
+ };
23
+ links?: {
24
+ name: string;
25
+ href: string;
26
+ }[];
27
+ };
28
+ sidebar?: {
29
+ links?: DocsLinkGroup[];
30
+ };
31
+ }
32
+ interface DocsLinkItem {
33
+ name: string;
34
+ href: string;
35
+ icon?: string;
36
+ }
37
+ interface DocsLinkGroup {
38
+ section: string;
39
+ items: DocsLinkItem[];
40
+ }
41
+
42
+ declare function DocstraProvider({ children, docstraConfig }: {
43
+ children: React$1.ReactNode;
44
+ docstraConfig: DocstraConfig;
45
+ }): react_jsx_runtime.JSX.Element;
46
+ declare function useDocstra(): DocstraContextType;
47
+
48
+ declare function DocstraHeader(): react_jsx_runtime.JSX.Element;
49
+
50
+ declare function DocstraSidebar(): react_jsx_runtime.JSX.Element;
51
+
52
+ declare function DocstraPage({ children }: {
53
+ children: React.ReactNode;
54
+ }): react_jsx_runtime.JSX.Element;
55
+
56
+ interface Props {
57
+ children: React.ReactNode;
58
+ metadata: any;
59
+ mdxContent: string;
60
+ }
61
+ declare function DocstraBody({ children, metadata, mdxContent }: Props): react_jsx_runtime.JSX.Element;
62
+
63
+ declare function DocstraTOC({ mdxFilePath, rawMdxContent }: {
64
+ mdxFilePath: string;
65
+ rawMdxContent: string;
66
+ }): react_jsx_runtime.JSX.Element;
67
+
68
+ declare function DocstraCodeBlock(props: any): react_jsx_runtime.JSX.Element;
69
+
70
+ export { DocstraBody, DocstraCodeBlock, DocstraHeader, DocstraPage, DocstraProvider, DocstraSidebar, DocstraTOC, useDocstra };