@mintlify/msft-sdk 1.1.8 → 1.1.10
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/components/Api/Api.js +42 -0
- package/dist/components/Api/Api.js.map +1 -0
- package/dist/components/Api/Api.module.css.js +22 -0
- package/dist/components/Api/Api.module.css.js.map +1 -0
- package/dist/components/Api/ApiReferenceProvider.js +19 -0
- package/dist/components/Api/ApiReferenceProvider.js.map +1 -0
- package/dist/components/Api/MethodPill.js +21 -0
- package/dist/components/Api/MethodPill.js.map +1 -0
- package/dist/components/Api/colors.js +117 -0
- package/dist/components/Api/colors.js.map +1 -0
- package/dist/components/content-components/code-block.js +94 -66
- package/dist/components/content-components/code-block.js.map +1 -1
- package/dist/components/content-components/default-components.js +8 -8
- package/dist/components/content-components/default-components.js.map +1 -1
- package/dist/components/content-components/details/details.js +1 -1
- package/dist/components/content-components/details/details.js.map +1 -1
- package/dist/components/content-components/home.js +14 -14
- package/dist/components/content-components/home.js.map +1 -1
- package/dist/components/content-components/param-name.js +1 -1
- package/dist/components/content-components/param-name.js.map +1 -1
- package/dist/components/content-components/table/index.js +1 -1
- package/dist/components/content-components/table/table-modal.js.map +1 -1
- package/dist/components/content-components/tabs/tab.js.map +1 -1
- package/dist/components/content-components/tabs/tabs.js +26 -22
- package/dist/components/content-components/tabs/tabs.js.map +1 -1
- package/dist/components/nav-tree/dropdown-menu.js +1 -1
- package/dist/components/nav-tree/dropdown-menu.js.map +1 -1
- package/dist/components/nav-tree/index.js +157 -90
- package/dist/components/nav-tree/index.js.map +1 -1
- package/dist/components/nav-tree/mobile-nav.js +2 -2
- package/dist/components/nav-tree/mobile-nav.js.map +1 -1
- package/dist/components/page-context-menu.js +72 -78
- package/dist/components/page-context-menu.js.map +1 -1
- package/dist/components/page.js +120 -0
- package/dist/components/page.js.map +1 -0
- package/dist/components/plain-text-page.js.map +1 -1
- package/dist/components/toc/index.js +8 -8
- package/dist/components/toc/index.js.map +1 -1
- package/dist/index.d.ts +238 -186
- package/dist/index.js +118 -36
- package/dist/index.js.map +1 -1
- package/dist/parser/convert-html-to-mdx.js +7 -6
- package/dist/parser/convert-html-to-mdx.js.map +1 -1
- package/dist/plugins/extract-headings.js +28 -0
- package/dist/plugins/extract-headings.js.map +1 -0
- package/dist/plugins/sanitize/rehype-unwrap-image-links.js +12 -0
- package/dist/plugins/sanitize/rehype-unwrap-image-links.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/utils/cn.js +5 -5
- package/dist/utils/cn.js.map +1 -1
- package/package.json +21 -2
- package/dist/components/docsLayout.js +0 -62
- package/dist/components/docsLayout.js.map +0 -1
- package/dist/components/docsPage.js +0 -133
- package/dist/components/docsPage.js.map +0 -1
- package/dist/node_modules/.pnpm/tailwind-merge@3.3.1/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2732
- package/dist/node_modules/.pnpm/tailwind-merge@3.3.1/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,50 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
1
2
|
import { default as default_2 } from 'react';
|
|
3
|
+
import { Element as Element_2 } from 'hast';
|
|
4
|
+
import { Handle } from 'hast-util-to-mdast';
|
|
2
5
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
3
|
-
import {
|
|
6
|
+
import { MdxJsxFlowElement } from 'mdast-util-mdx-jsx';
|
|
7
|
+
import { Node as Node_2 } from 'unist';
|
|
8
|
+
import { Node as Node_3 } from 'hast';
|
|
9
|
+
import { Plugin as Plugin_2 } from 'unified';
|
|
10
|
+
import * as React_2 from 'react';
|
|
11
|
+
import { Root } from 'mdast';
|
|
12
|
+
import { Root as Root_2 } from 'hast';
|
|
13
|
+
import { State } from 'hast-util-to-mdast';
|
|
14
|
+
import { Text as Text_2 } from 'hast';
|
|
15
|
+
|
|
16
|
+
export declare const allComponents: {
|
|
17
|
+
CodeBlock: typeof CodeBlock;
|
|
18
|
+
Heading: ({ id, level, children, className, }: HeadingProps) => JSX_2.Element;
|
|
19
|
+
Link: typeof Link;
|
|
20
|
+
Callout: typeof Callout;
|
|
21
|
+
ZonePivot: typeof ZonePivot;
|
|
22
|
+
ZoneTarget: typeof ZoneTarget;
|
|
23
|
+
ParamName: typeof ParamName;
|
|
24
|
+
Tabs: typeof Tabs;
|
|
25
|
+
Tab: typeof Tab;
|
|
26
|
+
Details: typeof Details;
|
|
27
|
+
Summary: typeof Summary;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export declare function Api({ children }: {
|
|
31
|
+
children?: default_2.ReactNode;
|
|
32
|
+
}): JSX_2.Element;
|
|
33
|
+
|
|
34
|
+
declare interface ApiReferenceContextValue {
|
|
35
|
+
apiReferenceData2?: any;
|
|
36
|
+
docsConfig?: any;
|
|
37
|
+
mdxExtracts?: any;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export declare function ApiReferenceProvider2({ apiReferenceData2, docsConfig, mdxExtracts, children, }: ApiReferenceProvider2Props): JSX_2.Element;
|
|
41
|
+
|
|
42
|
+
declare interface ApiReferenceProvider2Props {
|
|
43
|
+
apiReferenceData2?: any;
|
|
44
|
+
docsConfig?: any;
|
|
45
|
+
mdxExtracts?: any;
|
|
46
|
+
children: default_2.ReactNode;
|
|
47
|
+
}
|
|
4
48
|
|
|
5
49
|
export declare interface BottomLinkConfig {
|
|
6
50
|
href: string;
|
|
@@ -10,7 +54,31 @@ export declare interface BottomLinkConfig {
|
|
|
10
54
|
}>;
|
|
11
55
|
}
|
|
12
56
|
|
|
13
|
-
export declare
|
|
57
|
+
export declare function Callout({ type, children }: CalloutProps): JSX_2.Element;
|
|
58
|
+
|
|
59
|
+
declare interface CalloutProps {
|
|
60
|
+
type: CalloutType;
|
|
61
|
+
children: React.ReactNode;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare type CalloutType = "note" | "tip" | "important" | "caution" | "warning" | "nextstepaction";
|
|
65
|
+
|
|
66
|
+
export declare const capitalize: (str: string) => string;
|
|
67
|
+
|
|
68
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
69
|
+
|
|
70
|
+
export declare function CodeBlock({ children, className, fileName, language, blob, contentType, }: CodeBlockProps): JSX_2.Element;
|
|
71
|
+
|
|
72
|
+
declare interface CodeBlockProps {
|
|
73
|
+
children: default_2.ReactNode;
|
|
74
|
+
className?: string;
|
|
75
|
+
language?: string;
|
|
76
|
+
fileName?: string;
|
|
77
|
+
blob?: Blob;
|
|
78
|
+
contentType?: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare interface ComponentsContextValue {
|
|
14
82
|
LinkComponent?: LinkComponent;
|
|
15
83
|
}
|
|
16
84
|
|
|
@@ -19,21 +87,12 @@ export declare function ComponentsProvider({ children, LinkComponent, }: {
|
|
|
19
87
|
LinkComponent?: LinkComponent;
|
|
20
88
|
}): JSX_2.Element;
|
|
21
89
|
|
|
22
|
-
declare type ContextualOption = {
|
|
23
|
-
id: string;
|
|
24
|
-
title: string;
|
|
25
|
-
description: string;
|
|
26
|
-
icon: default_2.ElementType;
|
|
27
|
-
action: () => void;
|
|
28
|
-
externalLink?: boolean;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
90
|
export declare function convertHtmlToMdx(html: string, options?: ConvertOptions): Promise<{
|
|
32
91
|
mdx: string;
|
|
33
92
|
mdxExtracts: MdxExtracts;
|
|
34
93
|
}>;
|
|
35
94
|
|
|
36
|
-
declare interface ConvertOptions {
|
|
95
|
+
export declare interface ConvertOptions {
|
|
37
96
|
metadata?: Record<string, unknown>;
|
|
38
97
|
mdxExtracts?: MdxExtracts;
|
|
39
98
|
images?: {
|
|
@@ -41,126 +100,31 @@ declare interface ConvertOptions {
|
|
|
41
100
|
};
|
|
42
101
|
}
|
|
43
102
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
* { href: "https://blog.com", label: "Blog", icon: BlogIcon }
|
|
56
|
-
* ]}
|
|
57
|
-
* LinkComponent={Link}
|
|
58
|
-
* >
|
|
59
|
-
* <YourPageContent />
|
|
60
|
-
* </DocsLayout>
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
export declare const DocsLayout: ({ navTree, children, activeHref, activeId, theme, className, bottomLinks, dropdown, LinkComponent, localization, telemetry, showSidebar, sidebarClassName, }: DocsLayoutProps) => JSX_2.Element;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Localization strings for DocsLayout
|
|
67
|
-
*/
|
|
68
|
-
export declare interface DocsLayoutLocalization {
|
|
69
|
-
/** Aria label for the sidebar navigation. Default: "Sidebar navigation" */
|
|
70
|
-
sidebarAriaLabel?: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Props for the DocsLayout component
|
|
75
|
-
*/
|
|
76
|
-
export declare interface DocsLayoutProps {
|
|
77
|
-
/** Navigation tree data structure */
|
|
78
|
-
navTree: NavTreeData;
|
|
79
|
-
/** The main content to render in the layout */
|
|
80
|
-
children: ReactNode;
|
|
81
|
-
/** Currently active href for navigation highlighting */
|
|
82
|
-
activeHref?: string;
|
|
83
|
-
/** Currently active ID for navigation highlighting */
|
|
84
|
-
activeId?: string;
|
|
85
|
-
/** Theme for the layout */
|
|
86
|
-
theme?: "light" | "dark";
|
|
87
|
-
/** Additional CSS classes for the outer container */
|
|
88
|
-
className?: string;
|
|
89
|
-
/** Bottom links configuration (e.g., blog, GitHub, feedback) */
|
|
90
|
-
bottomLinks?: BottomLinkConfig[];
|
|
91
|
-
/** Dropdown configuration for navigation */
|
|
92
|
-
dropdown?: DropdownConfig;
|
|
93
|
-
/** Custom Link component for navigation (e.g., React Router Link, Next.js Link) */
|
|
103
|
+
export declare interface CopyMarkdownOptions {
|
|
104
|
+
pathname: string;
|
|
105
|
+
onSuccess?: () => void;
|
|
106
|
+
onFail?: (error: unknown) => void;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare const copyMarkdownToClipboard: ({ pathname, onSuccess, onFail, }: CopyMarkdownOptions) => void;
|
|
110
|
+
|
|
111
|
+
export declare function createDefaultComponents(options?: CreateDefaultComponentsOptions): MDXComponents;
|
|
112
|
+
|
|
113
|
+
export declare interface CreateDefaultComponentsOptions {
|
|
94
114
|
LinkComponent?: LinkComponent;
|
|
95
|
-
/** Localization strings */
|
|
96
|
-
localization?: DocsLayoutLocalization;
|
|
97
|
-
/** Telemetry configuration */
|
|
98
|
-
telemetry?: DocsLayoutTelemetry;
|
|
99
|
-
/** Whether to show the sidebar. Default: true */
|
|
100
|
-
showSidebar?: boolean;
|
|
101
|
-
/** Custom className for the sidebar to control responsive behavior.
|
|
102
|
-
* Default: "mint:max-lg:hidden" (hidden below lg breakpoint) */
|
|
103
|
-
sidebarClassName?: string;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Telemetry configuration for DocsLayout
|
|
108
|
-
*/
|
|
109
|
-
export declare interface DocsLayoutTelemetry {
|
|
110
|
-
/** Activity name for bottom link clicks */
|
|
111
|
-
bottomLinkActivity?: string;
|
|
112
|
-
/** Phase for bottom link clicks (e.g., "Start", "Complete") */
|
|
113
|
-
bottomLinkPhase?: string;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* DocsPage component renders a documentation page with MDX content, table of contents,
|
|
118
|
-
* zone pivot selectors, and page context menu. It supports full customization through
|
|
119
|
-
* props for localization, telemetry, and custom components.
|
|
120
|
-
*
|
|
121
|
-
* @example
|
|
122
|
-
* ```tsx
|
|
123
|
-
* <DocsPage
|
|
124
|
-
* payload={{
|
|
125
|
-
* content: "...",
|
|
126
|
-
* serializedContent: Content,
|
|
127
|
-
* title: "Getting Started",
|
|
128
|
-
* description: "Learn how to get started"
|
|
129
|
-
* }}
|
|
130
|
-
* toc={[{ title: "Introduction", slug: "intro", level: 2 }]}
|
|
131
|
-
* theme="dark"
|
|
132
|
-
* pathname="/docs/getting-started"
|
|
133
|
-
* LinkComponent={Link}
|
|
134
|
-
* localization={{
|
|
135
|
-
* onThisPage: "In this article"
|
|
136
|
-
* }}
|
|
137
|
-
* telemetry={{
|
|
138
|
-
* contextMenuActivity: "DocsPageContextMenu",
|
|
139
|
-
* contextMenuPhase: "Start"
|
|
140
|
-
* }}
|
|
141
|
-
* />
|
|
142
|
-
* ```
|
|
143
|
-
*/
|
|
144
|
-
export declare function DocsPage({ payload, toc, navTree, dropdown, activeHref, theme, className, pathname, markdownContent, allPages, baseUrl, bottomLinks, LinkComponent, localization, telemetry, contextMenu, }: EnhancedDocsPageProps): JSX_2.Element;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Localization strings for DocsPage component
|
|
148
|
-
*/
|
|
149
|
-
export declare interface DocsPageLocalization {
|
|
150
|
-
/** Text for "On this page" heading. Default: "On this page" */
|
|
151
|
-
onThisPage?: string;
|
|
152
|
-
/** Loading message. Default: "Loading..." */
|
|
153
|
-
loading?: string;
|
|
154
|
-
/** Error title. Default: "Error" */
|
|
155
|
-
errorTitle?: string;
|
|
156
|
-
/** Generic error message. Default: "Something went wrong" */
|
|
157
|
-
errorMessage?: string;
|
|
158
|
-
/** Not found title. Default: "Page not found" */
|
|
159
|
-
notFoundTitle?: string;
|
|
160
|
-
/** Not found message. Default: "The page you're looking for doesn't exist" */
|
|
161
|
-
notFoundMessage?: string;
|
|
162
115
|
}
|
|
163
116
|
|
|
117
|
+
export declare const defaultComponents: MDXComponents;
|
|
118
|
+
|
|
119
|
+
export declare function Details({ children, open }: DetailsProps): JSX_2.Element;
|
|
120
|
+
|
|
121
|
+
declare interface DetailsProps {
|
|
122
|
+
children: default_2.ReactNode;
|
|
123
|
+
open?: boolean;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export declare function DocsPage({ payload, toc, navTree, dropdown, activeHref, theme, className, pathname, markdownContent, allPages, baseUrl, bottomLinks, LinkComponent, }: DocsPageProps): JSX_2.Element;
|
|
127
|
+
|
|
164
128
|
export declare interface DocsPageProps {
|
|
165
129
|
payload: PayloadData;
|
|
166
130
|
toc?: TocItem[];
|
|
@@ -177,24 +141,6 @@ export declare interface DocsPageProps {
|
|
|
177
141
|
LinkComponent?: LinkComponent;
|
|
178
142
|
}
|
|
179
143
|
|
|
180
|
-
/**
|
|
181
|
-
* Telemetry configuration for DocsPage
|
|
182
|
-
*/
|
|
183
|
-
export declare interface DocsPageTelemetry {
|
|
184
|
-
/** Activity name for page context menu interactions */
|
|
185
|
-
contextMenuActivity?: string;
|
|
186
|
-
/** Phase for context menu interactions */
|
|
187
|
-
contextMenuPhase?: string;
|
|
188
|
-
/** Activity name for TOC link clicks */
|
|
189
|
-
tocLinkActivity?: string;
|
|
190
|
-
/** Phase for TOC link clicks */
|
|
191
|
-
tocLinkPhase?: string;
|
|
192
|
-
/** Activity name for zone pivot selector changes */
|
|
193
|
-
zonePivotActivity?: string;
|
|
194
|
-
/** Phase for zone pivot changes */
|
|
195
|
-
zonePivotPhase?: string;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
144
|
export declare interface DropdownConfig {
|
|
199
145
|
title: string;
|
|
200
146
|
description: string;
|
|
@@ -217,24 +163,53 @@ export declare interface DropdownItem {
|
|
|
217
163
|
}>;
|
|
218
164
|
}
|
|
219
165
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
telemetry?: DocsPageTelemetry;
|
|
228
|
-
/** Context menu configuration */
|
|
229
|
-
contextMenu?: PageContextMenuConfig;
|
|
166
|
+
export declare function DropdownMenu({ dropdown, isActive, activeHref, className, }: DropdownMenuProps): JSX_2.Element;
|
|
167
|
+
|
|
168
|
+
declare interface DropdownMenuProps {
|
|
169
|
+
dropdown: DropdownConfig;
|
|
170
|
+
isActive?: boolean;
|
|
171
|
+
activeHref?: string;
|
|
172
|
+
className?: string;
|
|
230
173
|
}
|
|
231
174
|
|
|
175
|
+
export declare type ElementType = {
|
|
176
|
+
type?: string;
|
|
177
|
+
tagName?: string;
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export declare function extractHeadings(): (tree: Node_2, file: unknown) => void;
|
|
181
|
+
|
|
232
182
|
export declare function generateLlmsFullTxt(pages: LlmsPageConfig[], baseUrl: string): Promise<string>;
|
|
233
183
|
|
|
234
184
|
export declare function generateLlmsTxt(pages: LlmsPageConfig[], baseUrl: string): string;
|
|
235
185
|
|
|
186
|
+
export declare function getClassNames(element: Element_2): string[];
|
|
187
|
+
|
|
188
|
+
export declare const getNodeText: (node: unknown) => string;
|
|
189
|
+
|
|
190
|
+
export declare function getPageMarkdown(pathname: string): Promise<string>;
|
|
191
|
+
|
|
192
|
+
export declare function getTextContent(node: Element_2 | Text_2): string;
|
|
193
|
+
|
|
194
|
+
export declare const Heading: ({ id, level, children, className, }: HeadingProps) => JSX_2.Element;
|
|
195
|
+
|
|
196
|
+
declare interface HeadingProps {
|
|
197
|
+
id: string;
|
|
198
|
+
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
199
|
+
children: default_2.ReactNode;
|
|
200
|
+
className?: string;
|
|
201
|
+
}
|
|
202
|
+
|
|
236
203
|
export declare const Home: () => JSX_2.Element;
|
|
237
204
|
|
|
205
|
+
export declare function isElement<T extends ElementType = Element_2>(node: ElementType | undefined, key?: keyof T, element?: string): node is T & {
|
|
206
|
+
data?: {
|
|
207
|
+
meta?: unknown;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
export declare function Link({ href, children, className }: LinkProps): JSX_2.Element;
|
|
212
|
+
|
|
238
213
|
export declare type LinkComponent = default_2.ComponentType<LinkComponentProps>;
|
|
239
214
|
|
|
240
215
|
export declare interface LinkComponentProps extends default_2.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
@@ -242,6 +217,12 @@ export declare interface LinkComponentProps extends default_2.AnchorHTMLAttribut
|
|
|
242
217
|
className?: string;
|
|
243
218
|
}
|
|
244
219
|
|
|
220
|
+
declare interface LinkProps {
|
|
221
|
+
href?: string;
|
|
222
|
+
children: default_2.ReactNode;
|
|
223
|
+
className?: string;
|
|
224
|
+
}
|
|
225
|
+
|
|
245
226
|
export declare interface LlmsPageConfig {
|
|
246
227
|
title: string;
|
|
247
228
|
slug: string;
|
|
@@ -256,7 +237,7 @@ export declare interface LlmsPageConfig {
|
|
|
256
237
|
};
|
|
257
238
|
}
|
|
258
239
|
|
|
259
|
-
declare interface MDXComponents {
|
|
240
|
+
export declare interface MDXComponents {
|
|
260
241
|
h1?: default_2.ComponentType<any>;
|
|
261
242
|
h2?: default_2.ComponentType<any>;
|
|
262
243
|
h3?: default_2.ComponentType<any>;
|
|
@@ -294,6 +275,8 @@ export declare interface MdxExtracts {
|
|
|
294
275
|
pivotTocItems?: Record<string, TocItem[]>;
|
|
295
276
|
}
|
|
296
277
|
|
|
278
|
+
export declare function mdxJsxFlowElementHandler(state: State, node: Element_2): MdxJsxFlowElement;
|
|
279
|
+
|
|
297
280
|
export declare function MDXRenderer({ children, components }: MDXRendererProps): JSX_2.Element;
|
|
298
281
|
|
|
299
282
|
declare interface MDXRendererProps {
|
|
@@ -324,6 +307,7 @@ export declare interface NavItem {
|
|
|
324
307
|
icon?: default_2.ComponentType<{
|
|
325
308
|
className?: string;
|
|
326
309
|
}>;
|
|
310
|
+
method?: string;
|
|
327
311
|
}
|
|
328
312
|
|
|
329
313
|
export declare function NavTree({ navTree, activeId, className, dropdown, activeHref, theme, bottomLinks, }: NavTreeProps): JSX_2.Element | null;
|
|
@@ -342,43 +326,22 @@ declare interface NavTreeProps {
|
|
|
342
326
|
bottomLinks?: BottomLinkConfig[];
|
|
343
327
|
}
|
|
344
328
|
|
|
345
|
-
export declare const PageContextMenu: ({ className, pathname, markdownContent, onCopyMarkdown,
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* Configuration for the page context menu
|
|
349
|
-
*/
|
|
350
|
-
declare interface PageContextMenuConfig {
|
|
351
|
-
/** Custom actions for the page context menu. If provided, these will replace the default actions. */
|
|
352
|
-
customActions?: ContextualOption[];
|
|
353
|
-
/** Callback fired after markdown is successfully copied */
|
|
354
|
-
onCopyMarkdown?: () => void;
|
|
355
|
-
/** Custom handler for "Copy Page" action. If provided, replaces default copy behavior. */
|
|
356
|
-
onCopyPage?: () => void | Promise<void>;
|
|
357
|
-
/** Custom handler for "View as Markdown" action. If provided, replaces default view behavior. */
|
|
358
|
-
onViewMarkdown?: (pathname: string) => void;
|
|
359
|
-
/** Custom handler for "View llms.txt" action. If provided, replaces default behavior. */
|
|
360
|
-
onViewLlmsTxt?: () => void;
|
|
361
|
-
/** Custom handler for "View llms-full.txt" action. If provided, replaces default behavior. */
|
|
362
|
-
onViewLlmsFullTxt?: () => void;
|
|
363
|
-
}
|
|
329
|
+
export declare const PageContextMenu: ({ className, pathname, markdownContent, onCopyMarkdown, onViewMarkdown, allPages, baseUrl, }: PageContextMenuProps) => JSX_2.Element;
|
|
364
330
|
|
|
365
331
|
export declare interface PageContextMenuProps {
|
|
366
332
|
className?: string;
|
|
367
333
|
pathname: string;
|
|
368
334
|
markdownContent?: string;
|
|
369
|
-
/** Callback fired after markdown is successfully copied */
|
|
370
335
|
onCopyMarkdown?: () => void;
|
|
371
|
-
/** Custom handler for "Copy Page" action. If provided, replaces default copy behavior. */
|
|
372
|
-
onCopyPage?: () => void | Promise<void>;
|
|
373
|
-
/** Custom handler for "View as Markdown" action. If provided, replaces default view behavior. */
|
|
374
336
|
onViewMarkdown?: (pathname: string) => void;
|
|
375
|
-
/** Custom handler for "View llms.txt" action. If provided, replaces default behavior. */
|
|
376
|
-
onViewLlmsTxt?: () => void;
|
|
377
|
-
/** Custom handler for "View llms-full.txt" action. If provided, replaces default behavior. */
|
|
378
|
-
onViewLlmsFullTxt?: () => void;
|
|
379
337
|
allPages?: LlmsPageConfig[];
|
|
380
338
|
baseUrl?: string;
|
|
381
|
-
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export declare function ParamName({ children }: ParamNameProps): JSX_2.Element;
|
|
342
|
+
|
|
343
|
+
declare interface ParamNameProps {
|
|
344
|
+
children: React.ReactNode;
|
|
382
345
|
}
|
|
383
346
|
|
|
384
347
|
export declare interface PayloadData {
|
|
@@ -403,14 +366,86 @@ export declare interface PlainTextPageProps {
|
|
|
403
366
|
content: string;
|
|
404
367
|
}
|
|
405
368
|
|
|
369
|
+
export declare const rehypeCallouts: Plugin_2<[], Node_3>;
|
|
370
|
+
|
|
371
|
+
export declare const rehypeCodeblocks: Plugin_2<[], Node_3>;
|
|
372
|
+
|
|
373
|
+
export declare const rehypeDetails: Plugin_2<[], Node_3>;
|
|
374
|
+
|
|
375
|
+
export declare const rehypeHeadingIds: Plugin_2<[], Node_3>;
|
|
376
|
+
|
|
377
|
+
export declare const rehypeParamName: Plugin_2<[], Node_3>;
|
|
378
|
+
|
|
379
|
+
export declare function rehypeRemark(): (tree: Root_2) => Root;
|
|
380
|
+
|
|
381
|
+
export declare function rehypeRemoveHtmlComments(): (root: Root_2) => void;
|
|
382
|
+
|
|
383
|
+
export declare const rehypeTabs: Plugin_2<[], Node_3>;
|
|
384
|
+
|
|
385
|
+
export declare const rehypeZonePivots: Plugin_2<[ConvertOptions?], Node_3>;
|
|
386
|
+
|
|
387
|
+
export declare function remarkHeadingIds(): (tree: Root) => void;
|
|
388
|
+
|
|
389
|
+
export declare function removeHtmlComments(root: Root_2): void;
|
|
390
|
+
|
|
391
|
+
export declare const sanitizePreTags: Plugin_2<[], Node_3>;
|
|
392
|
+
|
|
406
393
|
export declare function serializeMdx(mdxString: string): Promise<default_2.ComponentType>;
|
|
407
394
|
|
|
395
|
+
export declare function Summary({ children, isOpen }: SummaryProps): JSX_2.Element;
|
|
396
|
+
|
|
397
|
+
declare interface SummaryProps {
|
|
398
|
+
children: default_2.ReactNode;
|
|
399
|
+
isOpen?: boolean;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export declare function Tab({ children }: TabProps): JSX_2.Element;
|
|
403
|
+
|
|
404
|
+
export declare const Table: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableElement> & React_2.RefAttributes<HTMLTableElement>>;
|
|
405
|
+
|
|
406
|
+
export declare const TableBody: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableSectionElement> & React_2.RefAttributes<HTMLTableSectionElement>>;
|
|
407
|
+
|
|
408
|
+
export declare const TableCaption: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableCaptionElement> & React_2.RefAttributes<HTMLTableCaptionElement>>;
|
|
409
|
+
|
|
410
|
+
export declare const TableCell: React_2.ForwardRefExoticComponent<React_2.TdHTMLAttributes<HTMLTableCellElement> & React_2.RefAttributes<HTMLTableCellElement>>;
|
|
411
|
+
|
|
412
|
+
export declare const tableCellHandler: Handle;
|
|
413
|
+
|
|
414
|
+
export declare const TableFooter: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableSectionElement> & React_2.RefAttributes<HTMLTableSectionElement>>;
|
|
415
|
+
|
|
416
|
+
export declare const tableHandler: Handle;
|
|
417
|
+
|
|
418
|
+
export declare const TableHead: React_2.ForwardRefExoticComponent<React_2.ThHTMLAttributes<HTMLTableCellElement> & React_2.RefAttributes<HTMLTableCellElement>>;
|
|
419
|
+
|
|
420
|
+
export declare const TableHeader: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableSectionElement> & React_2.RefAttributes<HTMLTableSectionElement>>;
|
|
421
|
+
|
|
408
422
|
export declare function TableOfContents({ toc }: TableOfContentsProps): JSX_2.Element;
|
|
409
423
|
|
|
410
424
|
declare interface TableOfContentsProps {
|
|
411
425
|
toc: TocItem[];
|
|
412
426
|
}
|
|
413
427
|
|
|
428
|
+
export declare const TableRow: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableRowElement> & React_2.RefAttributes<HTMLTableRowElement>>;
|
|
429
|
+
|
|
430
|
+
export declare const tableRowHandler: Handle;
|
|
431
|
+
|
|
432
|
+
declare interface TabProps {
|
|
433
|
+
title: string;
|
|
434
|
+
icon?: string;
|
|
435
|
+
children?: default_2.ReactNode;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export declare function Tabs({ children, defaultTab, defaultTabIndex, className, onClickTab, onChange }: TabsProps): JSX_2.Element;
|
|
439
|
+
|
|
440
|
+
declare interface TabsProps {
|
|
441
|
+
children: default_2.ReactNode;
|
|
442
|
+
defaultTab?: number;
|
|
443
|
+
defaultTabIndex?: number;
|
|
444
|
+
className?: string;
|
|
445
|
+
onClickTab?: (index: number) => void;
|
|
446
|
+
onChange?: (index: number) => void;
|
|
447
|
+
}
|
|
448
|
+
|
|
414
449
|
export declare interface TocItem {
|
|
415
450
|
title: string;
|
|
416
451
|
slug: string;
|
|
@@ -418,10 +453,14 @@ export declare interface TocItem {
|
|
|
418
453
|
children?: TocItem[];
|
|
419
454
|
}
|
|
420
455
|
|
|
456
|
+
export declare function useApiReference(): ApiReferenceContextValue | undefined;
|
|
457
|
+
|
|
421
458
|
export declare function useComponents(): ComponentsContextValue;
|
|
422
459
|
|
|
423
460
|
export declare function useMarkdownCopy(pathname: string): void;
|
|
424
461
|
|
|
462
|
+
export declare function ZonePivot({ pivot, target, children }: ZonePivotProps): JSX_2.Element | null;
|
|
463
|
+
|
|
425
464
|
export declare interface ZonePivotGroup {
|
|
426
465
|
id: string;
|
|
427
466
|
title: string;
|
|
@@ -432,6 +471,12 @@ export declare interface ZonePivotGroup {
|
|
|
432
471
|
}>;
|
|
433
472
|
}
|
|
434
473
|
|
|
474
|
+
declare interface ZonePivotProps {
|
|
475
|
+
pivot: string;
|
|
476
|
+
target?: string;
|
|
477
|
+
children: default_2.ReactNode;
|
|
478
|
+
}
|
|
479
|
+
|
|
435
480
|
export declare function ZonePivotProvider({ groups, children, defaultPivots, }: ZonePivotProviderProps): JSX_2.Element;
|
|
436
481
|
|
|
437
482
|
declare interface ZonePivotProviderProps {
|
|
@@ -447,4 +492,11 @@ declare interface ZonePivotSelectorProps {
|
|
|
447
492
|
className?: string;
|
|
448
493
|
}
|
|
449
494
|
|
|
495
|
+
export declare function ZoneTarget({ target, children }: ZoneTargetProps): JSX_2.Element;
|
|
496
|
+
|
|
497
|
+
declare interface ZoneTargetProps {
|
|
498
|
+
target: string;
|
|
499
|
+
children: default_2.ReactNode;
|
|
500
|
+
}
|
|
501
|
+
|
|
450
502
|
export { }
|