@mintlify/msft-sdk 1.1.63 → 1.1.65
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/api-playground/ApiPlayground/components/PlaygroundModalWrapper.js +56 -52
- package/dist/api-playground-2/OperationPage.js +1 -2
- package/dist/api-playground-2/Playground.js +5 -5
- package/dist/api-playground-2/components/Request/InputSectionContainer.js +2 -2
- package/dist/api-playground-2/components/TypeDropdown.js +1 -1
- package/dist/components/apiPage.js +125 -0
- package/dist/components/docsPage.js +54 -56
- package/dist/index.d.ts +20 -7
- package/dist/index.js +28 -28
- package/dist/plugins/sanitize/rehype-pre-to-mdx-fence.js +13 -13
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,12 +6,12 @@ import { createDefaultComponents as l, defaultComponents as i } from "./componen
|
|
|
6
6
|
import { ComponentsProvider as d, useComponents as C } from "./context/components-context.js";
|
|
7
7
|
import { NavTree as P } from "./components/nav-tree/index.js";
|
|
8
8
|
import { useApiReference as u } from "./components/Api/ApiReferenceProvider.js";
|
|
9
|
-
import { ApiReferenceContext as T, ApiReferenceContext2 as b, ApiReferenceProvider as v, ApiReferenceProvider2 as
|
|
9
|
+
import { ApiReferenceContext as T, ApiReferenceContext2 as b, ApiReferenceProvider as v, ApiReferenceProvider2 as A, DeploymentMetadataContext as H, DeploymentMetadataProvider as h, DocsConfigContext as D, DocsConfigProvider as R, PageContext as M, PageProvider as k } from "./contexts/ConfigContext.js";
|
|
10
10
|
import { TableOfContents as w } from "./components/toc/index.js";
|
|
11
11
|
import { PivotAwareTOC as F } from "./components/toc/pivot-aware-toc.js";
|
|
12
12
|
import { PageContextMenu as N } from "./components/page-context-menu.js";
|
|
13
13
|
import { copyMarkdownToClipboard as Z, getPageMarkdown as z, useMarkdownCopy as E } from "./hooks/useMarkdownCopy.js";
|
|
14
|
-
import { generateLlmsFullTxt as
|
|
14
|
+
import { generateLlmsFullTxt as X, generateLlmsTxt as q } from "./utils/generate-llms-txt.js";
|
|
15
15
|
import { getNodeText as J } from "./utils/get-node-text.js";
|
|
16
16
|
import { capitalize as j } from "./utils/string.js";
|
|
17
17
|
import { cn as Q } from "./utils/cn.js";
|
|
@@ -27,17 +27,17 @@ import { SchemaPage as ge } from "./api-playground-2/SchemaPage.js";
|
|
|
27
27
|
import { ApiExamples as ce } from "./api-playground-2/ApiExamples.js";
|
|
28
28
|
import { ApiFields as ye } from "./api-playground-2/ApiFields.js";
|
|
29
29
|
import { Playground as be } from "./api-playground-2/Playground.js";
|
|
30
|
-
import { EndpointHeader as
|
|
31
|
-
import { ApiPlaygroundContext as
|
|
30
|
+
import { EndpointHeader as Ae } from "./api-playground-2/EndpointHeader.js";
|
|
31
|
+
import { ApiPlaygroundContext as he, ApiPlaygroundContext as De } from "./api-playground-2/contexts/ApiPlaygroundContext.js";
|
|
32
32
|
import { usePlaygroundInputsStore as Me } from "./api-playground-2/hooks/usePlaygroundInputsStore.js";
|
|
33
|
-
import { useSendPlaygroundRequest as
|
|
33
|
+
import { useSendPlaygroundRequest as Se } from "./api-playground-2/hooks/useSendPlaygroundRequest.js";
|
|
34
34
|
import { useInitializeInputs as Le } from "./api-playground-2/hooks/useInitializeInputs.js";
|
|
35
35
|
import { useCopyPathWithInputs as Ie } from "./api-playground-2/hooks/useCopyPathWithInputs.js";
|
|
36
36
|
import { useSelectedSecurityOption as Oe } from "./api-playground-2/hooks/useSelectedSecurityOption.js";
|
|
37
37
|
import { addApiReferenceDataFromMdxAndDocsConfig as ze } from "./api-playground-2/schemaGraph/addApiReferenceDataFromMdxAndDocsConfig.js";
|
|
38
38
|
import { processSecurityOptions as Be } from "./api-playground-2/schemaGraph/processSecurityOptions.js";
|
|
39
|
-
import { getApiReferenceDataFromGraph as
|
|
40
|
-
import {
|
|
39
|
+
import { getApiReferenceDataFromGraph as qe } from "./api-playground-2/schemaGraph/getApiReferenceDataFromGraph.js";
|
|
40
|
+
import { ApiPage as Je } from "./components/apiPage.js";
|
|
41
41
|
import { CodeBlock as je } from "./components/content-components/code-block.js";
|
|
42
42
|
import { Heading as Qe } from "./components/content-components/heading.js";
|
|
43
43
|
import { Link as Ve } from "./components/content-components/link.js";
|
|
@@ -50,16 +50,16 @@ import { ParamName as no } from "./components/content-components/param-name.js";
|
|
|
50
50
|
import { Tabs as lo } from "./components/content-components/tabs/tabs.js";
|
|
51
51
|
import { Tab as so } from "./components/content-components/tabs/tab.js";
|
|
52
52
|
import { Details as go, Summary as Po } from "./components/content-components/details/details.js";
|
|
53
|
-
import { Table as uo, TableBody as yo, TableCaption as To, TableCell as bo, TableFooter as vo, TableHead as
|
|
53
|
+
import { Table as uo, TableBody as yo, TableCaption as To, TableCell as bo, TableFooter as vo, TableHead as Ao, TableHeader as Ho, TableRow as ho } from "./components/content-components/table/index.js";
|
|
54
54
|
import { LaTeX as Ro } from "./components/content-components/latex.js";
|
|
55
|
-
import { allComponents as
|
|
55
|
+
import { allComponents as ko } from "./components/content-components/all-components.js";
|
|
56
56
|
import { Home as wo } from "./components/content-components/home.js";
|
|
57
57
|
import { MobileNavTree as Fo } from "./components/nav-tree/mobile-nav.js";
|
|
58
58
|
import { rehypeCodeblocks as No } from "./plugins/rehype/rehype-code-blocks.js";
|
|
59
59
|
import { remarkHeadingIds as Zo } from "./plugins/remark/remark-heading-ids.js";
|
|
60
60
|
import { sanitizePreTags as Eo } from "./plugins/sanitize/rehype-pre-to-mdx-fence.js";
|
|
61
|
-
import { rehypeCallouts as
|
|
62
|
-
import { rehypeParamName as
|
|
61
|
+
import { rehypeCallouts as Xo } from "./plugins/sanitize/rehype-callouts.js";
|
|
62
|
+
import { rehypeParamName as Go } from "./plugins/sanitize/rehype-param-name.js";
|
|
63
63
|
import { rehypeTabs as Wo } from "./plugins/sanitize/rehype-tabs.js";
|
|
64
64
|
import { rehypeDetails as Ko } from "./plugins/sanitize/rehype-details.js";
|
|
65
65
|
import { rehypeHeadingIds as Uo } from "./plugins/sanitize/rehype-heading-ids.js";
|
|
@@ -71,23 +71,24 @@ export {
|
|
|
71
71
|
ie as Api,
|
|
72
72
|
ce as ApiExamples,
|
|
73
73
|
ye as ApiFields,
|
|
74
|
-
|
|
74
|
+
Je as ApiPage,
|
|
75
|
+
he as ApiPlaygroundContext,
|
|
75
76
|
De as ApiPlaygroundContextLegacy,
|
|
76
77
|
T as ApiReferenceContext,
|
|
77
78
|
b as ApiReferenceContext2,
|
|
78
79
|
v as ApiReferenceProvider,
|
|
79
|
-
|
|
80
|
+
A as ApiReferenceProvider2,
|
|
80
81
|
_e as Callout,
|
|
81
82
|
je as CodeBlock,
|
|
82
83
|
d as ComponentsProvider,
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
H as DeploymentMetadataContext,
|
|
85
|
+
h as DeploymentMetadataProvider,
|
|
85
86
|
go as Details,
|
|
86
87
|
D as DocsConfigContext,
|
|
87
88
|
R as DocsConfigProvider,
|
|
88
89
|
p as DocsLayout,
|
|
89
90
|
r as DocsPage,
|
|
90
|
-
|
|
91
|
+
Ae as EndpointHeader,
|
|
91
92
|
Qe as Heading,
|
|
92
93
|
wo as Home,
|
|
93
94
|
Ro as LaTeX,
|
|
@@ -98,7 +99,7 @@ export {
|
|
|
98
99
|
de as OperationPage,
|
|
99
100
|
M as PageContext,
|
|
100
101
|
N as PageContextMenu,
|
|
101
|
-
|
|
102
|
+
k as PageProvider,
|
|
102
103
|
no as ParamName,
|
|
103
104
|
F as PivotAwareTOC,
|
|
104
105
|
n as PlainTextPage,
|
|
@@ -111,17 +112,17 @@ export {
|
|
|
111
112
|
To as TableCaption,
|
|
112
113
|
bo as TableCell,
|
|
113
114
|
vo as TableFooter,
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
Ao as TableHead,
|
|
116
|
+
Ho as TableHeader,
|
|
116
117
|
w as TableOfContents,
|
|
117
|
-
|
|
118
|
+
ho as TableRow,
|
|
118
119
|
lo as Tabs,
|
|
119
120
|
eo as ZonePivot,
|
|
120
121
|
po as ZonePivotProvider,
|
|
121
122
|
ao as ZonePivotSelector,
|
|
122
123
|
ro as ZoneTarget,
|
|
123
124
|
ze as addApiReferenceDataFromMdxAndDocsConfig,
|
|
124
|
-
|
|
125
|
+
ko as allComponents,
|
|
125
126
|
j as capitalize,
|
|
126
127
|
V as cleanTitle,
|
|
127
128
|
Q as cn,
|
|
@@ -130,23 +131,22 @@ export {
|
|
|
130
131
|
l as createDefaultComponents,
|
|
131
132
|
i as defaultComponents,
|
|
132
133
|
ae as extractHeadings,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
X as generateLlmsFullTxt,
|
|
135
|
+
q as generateLlmsTxt,
|
|
136
|
+
qe as getApiReferenceDataFromGraph,
|
|
136
137
|
_ as getClassNames,
|
|
137
138
|
J as getNodeText,
|
|
138
139
|
z as getPageMarkdown,
|
|
139
140
|
$ as getTextContent,
|
|
140
141
|
ee as isElement,
|
|
141
142
|
$o as mdxJsxFlowElementHandler,
|
|
142
|
-
Je as openApiToSchemaGraph,
|
|
143
143
|
Be as processSecurityOptions,
|
|
144
|
-
|
|
144
|
+
Xo as rehypeCallouts,
|
|
145
145
|
No as rehypeCodeblocks,
|
|
146
146
|
Ko as rehypeDetails,
|
|
147
147
|
Uo as rehypeHeadingIds,
|
|
148
148
|
rr as rehypeLatex,
|
|
149
|
-
|
|
149
|
+
Go as rehypeParamName,
|
|
150
150
|
er as rehypeRemark,
|
|
151
151
|
ne as rehypeRemoveHtmlComments,
|
|
152
152
|
Wo as rehypeTabs,
|
|
@@ -165,5 +165,5 @@ export {
|
|
|
165
165
|
E as useMarkdownCopy,
|
|
166
166
|
Me as usePlaygroundInputsStore,
|
|
167
167
|
Oe as useSelectedSecurityOption,
|
|
168
|
-
|
|
168
|
+
Se as useSendPlaygroundRequest
|
|
169
169
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { visit as
|
|
1
|
+
import { visit as n } from "unist-util-visit";
|
|
2
2
|
import { isElement as t } from "../../utils/rehype.js";
|
|
3
|
-
const c = () => (
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
if (!t(
|
|
3
|
+
const c = () => (p) => {
|
|
4
|
+
n(p, (a) => {
|
|
5
|
+
var o;
|
|
6
|
+
if (!t(a) || !t(a, "tagName", "pre"))
|
|
7
7
|
return;
|
|
8
|
-
const e =
|
|
8
|
+
const e = a.children[0];
|
|
9
9
|
if (!e || !t(e, "tagName", "code"))
|
|
10
10
|
return;
|
|
11
|
-
const
|
|
12
|
-
if (Array.isArray(
|
|
13
|
-
for (const r of
|
|
11
|
+
const i = (o = e.properties) == null ? void 0 : o.className;
|
|
12
|
+
if (Array.isArray(i)) {
|
|
13
|
+
for (const r of i)
|
|
14
14
|
if (typeof r == "string" && r.startsWith("lang-")) {
|
|
15
|
-
const
|
|
16
|
-
e.properties || (e.properties = {}), e.properties.className = [`language-${
|
|
15
|
+
const s = r.replace(/^lang-/, "");
|
|
16
|
+
e.properties || (e.properties = {}), e.properties.className = [`language-${s}`];
|
|
17
17
|
break;
|
|
18
18
|
} else if (typeof r == "string" && r.startsWith("language-")) {
|
|
19
|
-
const
|
|
20
|
-
e.properties || (e.properties = {}), e.properties.className = [`language-${
|
|
19
|
+
const s = r.replace(/^language-/, "");
|
|
20
|
+
e.properties || (e.properties = {}), e.properties.className = [`language-${s}`];
|
|
21
21
|
break;
|
|
22
22
|
}
|
|
23
23
|
}
|