@stainless-api/docs-ui 0.1.0-beta.14 → 0.1.0-beta.15
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/breadcrumbs-Z-hEqjcp.d.ts +19 -0
- package/dist/chunk-Bp6m_JJh.js +13 -0
- package/dist/component-generics-DzI21jRn.js +35 -0
- package/dist/component-generics-q5Dqiu2D.d.ts +30 -0
- package/dist/components/breadcrumbs.d.ts +2 -0
- package/dist/components/breadcrumbs.js +16 -0
- package/dist/components/chat.d.ts +14 -0
- package/dist/components/chat.js +144 -0
- package/dist/components/dropdown.d.ts +2 -0
- package/dist/components/dropdown.js +4 -0
- package/dist/components/icons.d.ts +50 -0
- package/dist/components/icons.js +3 -0
- package/dist/components/index.d.ts +12 -0
- package/dist/components/index.js +16 -0
- package/dist/components/method.d.ts +2 -0
- package/dist/components/method.js +16 -0
- package/dist/components/overview.d.ts +2 -0
- package/dist/components/overview.js +16 -0
- package/dist/components/primitives.d.ts +2 -0
- package/dist/components/primitives.js +16 -0
- package/dist/components/properties.d.ts +2 -0
- package/dist/components/properties.js +16 -0
- package/dist/components/scripts/dropdown.d.ts +12 -0
- package/dist/components/scripts/dropdown.js +50 -0
- package/dist/components/sdk.d.ts +3 -0
- package/dist/components/sdk.js +16 -0
- package/dist/components/sidebar.d.ts +2 -0
- package/dist/components/sidebar.js +16 -0
- package/dist/components/snippets.d.ts +4 -0
- package/dist/components/snippets.js +16 -0
- package/dist/contexts/component-generics.d.ts +2 -0
- package/dist/contexts/component-generics.js +3 -0
- package/dist/contexts/component-types.d.ts +18 -0
- package/dist/contexts/component-types.js +1 -0
- package/dist/contexts/component.d.ts +31 -0
- package/dist/contexts/component.js +16 -0
- package/dist/contexts/docs.d.ts +2 -0
- package/dist/contexts/docs.js +3 -0
- package/dist/contexts/index.d.ts +20 -0
- package/dist/contexts/index.js +16 -0
- package/dist/contexts/markdown.d.ts +2 -0
- package/dist/contexts/markdown.js +4 -0
- package/dist/contexts/navigation.d.ts +3 -0
- package/dist/contexts/navigation.js +3 -0
- package/dist/contexts/search.d.ts +4 -0
- package/dist/contexts/search.js +16 -0
- package/dist/contexts/use-components.d.ts +16 -0
- package/dist/contexts/use-components.js +4 -0
- package/dist/contexts-DRxRO-xO.js +3747 -0
- package/dist/docs-Dh8kE1va.js +50 -0
- package/dist/docs-EUy-wfbA.d.ts +43 -0
- package/dist/dropdown-B7VyGMOw.d.ts +43 -0
- package/dist/dropdown-DtgAi6lb.js +62 -0
- package/dist/icons-DdKM-01E.js +753 -0
- package/dist/index-AicgPYKB.d.ts +239 -0
- package/dist/index-BhwLhiWk.d.ts +14 -0
- package/dist/index-YnpUtXLB.d.ts +16 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +5276 -5873
- package/dist/languages/go.d.ts +13 -0
- package/dist/languages/go.js +16 -0
- package/dist/languages/http.d.ts +13 -0
- package/dist/languages/http.js +16 -0
- package/dist/languages/index.d.ts +13 -0
- package/dist/languages/index.js +16 -0
- package/dist/languages/java.d.ts +13 -0
- package/dist/languages/java.js +16 -0
- package/dist/languages/python.d.ts +13 -0
- package/dist/languages/python.js +16 -0
- package/dist/languages/ruby.d.ts +13 -0
- package/dist/languages/ruby.js +16 -0
- package/dist/languages/typescript.d.ts +13 -0
- package/dist/languages/typescript.js +16 -0
- package/dist/markdown/index.d.ts +11 -0
- package/dist/markdown/index.js +16 -0
- package/dist/markdown/md.d.ts +15 -0
- package/dist/markdown/md.js +3 -0
- package/dist/markdown/utils.d.ts +4 -0
- package/dist/markdown/utils.js +3 -0
- package/dist/markdown-BXfX1D7C.js +42 -0
- package/dist/markdown-nFyAEX_K.d.ts +22 -0
- package/dist/mcp.js +1720 -2298
- package/dist/md-Dg8aOyMA.js +41 -0
- package/dist/method-DpsVuzZW.d.ts +71 -0
- package/dist/navigation-aoYZ_tl4.js +24 -0
- package/dist/navigation-nyXBY-75.d.ts +29 -0
- package/dist/overview-C8e-6jGr.d.ts +38 -0
- package/dist/pagefind-ChrPfuVv.js +15 -0
- package/dist/primitives-DWz23_Ub.d.ts +99 -0
- package/dist/properties-CF71V58d.d.ts +46 -0
- package/dist/routing-DQjbRxdJ.js +189 -0
- package/dist/routing-qc0V00-j.d.ts +51 -0
- package/dist/routing.d.ts +2 -0
- package/dist/sdk-Zg3Rggk3.d.ts +118 -0
- package/dist/search/index.d.ts +26 -0
- package/dist/search/index.js +332 -0
- package/dist/search/providers/algolia.d.ts +23 -0
- package/dist/search/providers/algolia.js +16 -0
- package/dist/search/providers/fuse.d.ts +17 -0
- package/dist/search/providers/fuse.js +31 -0
- package/dist/search/providers/pagefind.d.ts +7 -0
- package/dist/search/providers/pagefind.js +3 -0
- package/dist/search/providers/walker.d.ts +8 -0
- package/dist/search/providers/walker.js +32 -0
- package/dist/search/types.d.ts +3 -0
- package/dist/search/types.js +3 -0
- package/dist/search-B6loAGmB.d.ts +21 -0
- package/dist/sidebar-C8KirYjg.d.ts +35 -0
- package/dist/snippets-EUzM4fRO.d.ts +45 -0
- package/dist/style-pN9hCoec.d.ts +181 -0
- package/dist/style-rYbbxIR_.js +182 -0
- package/dist/style.d.ts +2 -0
- package/dist/style.js +3 -0
- package/dist/styles/main.css +742 -748
- package/dist/styles/primitives.css +435 -428
- package/dist/styles/resets.css +33 -41
- package/dist/styles/search.css +247 -248
- package/dist/styles/sidebar.css +58 -60
- package/dist/styles/snippets.css +86 -88
- package/dist/styles/variables.css +86 -90
- package/dist/types-CTBDtD34.d.ts +82 -0
- package/dist/types-DFN4M1Sp.js +34 -0
- package/dist/use-components-D9E85p5x.js +7 -0
- package/dist/utils-BHwvUDKn.js +30 -0
- package/dist/utils-CJfFBNgT.js +32 -0
- package/dist/utils-DQhEbvUC.d.ts +20 -0
- package/dist/utils-nDazhti8.d.ts +11 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.js +4 -0
- package/package.json +13 -7
- package/src/components/breadcrumbs.tsx +1 -1
- package/src/components/chat.tsx +18 -15
- package/src/components/method.tsx +8 -9
- package/src/components/overview.tsx +26 -12
- package/src/components/primitives.tsx +36 -19
- package/src/components/properties.tsx +4 -2
- package/src/components/scripts/dropdown.ts +1 -1
- package/src/components/sdk.tsx +25 -20
- package/src/components/sidebar.tsx +3 -3
- package/src/components/snippets.tsx +26 -9
- package/src/contexts/component-generics.tsx +10 -15
- package/src/contexts/docs.tsx +15 -4
- package/src/contexts/index.tsx +8 -5
- package/src/contexts/markdown.tsx +7 -6
- package/src/contexts/search.tsx +4 -5
- package/src/hooks/use-strict-context.tsx +16 -0
- package/src/languages/go.tsx +3 -3
- package/src/languages/http.tsx +31 -23
- package/src/languages/index.ts +7 -7
- package/src/languages/java.tsx +4 -4
- package/src/languages/python.tsx +12 -9
- package/src/languages/ruby.tsx +20 -13
- package/src/languages/typescript.tsx +18 -12
- package/src/markdown/index.ts +17 -12
- package/src/markdown/utils.ts +6 -3
- package/src/routing.ts +9 -9
- package/src/search/form.tsx +26 -24
- package/src/search/indexer.ts +17 -15
- package/src/search/mcp.ts +8 -8
- package/src/search/printer.tsx +1 -1
- package/src/search/providers/algolia.ts +5 -5
- package/src/search/providers/fuse.ts +4 -4
- package/src/search/providers/pagefind.ts +1 -1
- package/src/search/providers/walker.ts +5 -3
- package/src/search/results.tsx +7 -6
- package/src/search/types.ts +2 -2
- package/src/styles/main.css +2 -1
- package/src/utils.ts +9 -8
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "../breadcrumbs-Z-hEqjcp.js";
|
|
2
|
+
import "../dropdown-B7VyGMOw.js";
|
|
3
|
+
import "../method-DpsVuzZW.js";
|
|
4
|
+
import "../primitives-DWz23_Ub.js";
|
|
5
|
+
import "../properties-CF71V58d.js";
|
|
6
|
+
import "../routing-qc0V00-j.js";
|
|
7
|
+
import "../sdk-Zg3Rggk3.js";
|
|
8
|
+
import "../snippets-EUzM4fRO.js";
|
|
9
|
+
import "../overview-C8e-6jGr.js";
|
|
10
|
+
import "../sidebar-C8KirYjg.js";
|
|
11
|
+
import "../index-YnpUtXLB.js";
|
|
12
|
+
import { B as Type, F as DeclarationProps, H as TypeProps, I as MethodSignature, L as MethodSignatureProps, P as Declaration, R as Property, V as TypeName, z as PropertyProps } from "../index-AicgPYKB.js";
|
|
13
|
+
export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName, TypeProps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../component-generics-DzI21jRn.js";
|
|
2
|
+
import "../docs-Dh8kE1va.js";
|
|
3
|
+
import "../navigation-aoYZ_tl4.js";
|
|
4
|
+
import "../markdown-BXfX1D7C.js";
|
|
5
|
+
import "../routing-DQjbRxdJ.js";
|
|
6
|
+
import "../style-rYbbxIR_.js";
|
|
7
|
+
import "../use-components-D9E85p5x.js";
|
|
8
|
+
import { B as Type, L as Declaration, R as MethodSignature, V as TypeName, z as Property } from "../contexts-DRxRO-xO.js";
|
|
9
|
+
import "../icons-DdKM-01E.js";
|
|
10
|
+
import "../utils-CJfFBNgT.js";
|
|
11
|
+
import "../dropdown-DtgAi6lb.js";
|
|
12
|
+
import "../md-Dg8aOyMA.js";
|
|
13
|
+
import "../utils-BHwvUDKn.js";
|
|
14
|
+
import "../types-DFN4M1Sp.js";
|
|
15
|
+
|
|
16
|
+
export { Declaration, MethodSignature, Property, Type, TypeName };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "../breadcrumbs-Z-hEqjcp.js";
|
|
2
|
+
import "../dropdown-B7VyGMOw.js";
|
|
3
|
+
import "../method-DpsVuzZW.js";
|
|
4
|
+
import "../primitives-DWz23_Ub.js";
|
|
5
|
+
import "../properties-CF71V58d.js";
|
|
6
|
+
import "../routing-qc0V00-j.js";
|
|
7
|
+
import "../sdk-Zg3Rggk3.js";
|
|
8
|
+
import "../snippets-EUzM4fRO.js";
|
|
9
|
+
import "../overview-C8e-6jGr.js";
|
|
10
|
+
import "../sidebar-C8KirYjg.js";
|
|
11
|
+
import "../index-YnpUtXLB.js";
|
|
12
|
+
import { c as MethodInfo, d as Property, f as PropertyProps, l as MethodSignature, m as TypeName, o as Declaration, p as Type, s as DeclarationProps, u as MethodSignatureProps } from "../index-AicgPYKB.js";
|
|
13
|
+
export { Declaration, DeclarationProps, MethodInfo, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../component-generics-DzI21jRn.js";
|
|
2
|
+
import "../docs-Dh8kE1va.js";
|
|
3
|
+
import "../navigation-aoYZ_tl4.js";
|
|
4
|
+
import "../markdown-BXfX1D7C.js";
|
|
5
|
+
import "../routing-DQjbRxdJ.js";
|
|
6
|
+
import "../style-rYbbxIR_.js";
|
|
7
|
+
import "../use-components-D9E85p5x.js";
|
|
8
|
+
import { C as TypeName, S as Type, b as MethodSignature, v as Declaration, x as Property, y as MethodInfo } from "../contexts-DRxRO-xO.js";
|
|
9
|
+
import "../icons-DdKM-01E.js";
|
|
10
|
+
import "../utils-CJfFBNgT.js";
|
|
11
|
+
import "../dropdown-DtgAi6lb.js";
|
|
12
|
+
import "../md-Dg8aOyMA.js";
|
|
13
|
+
import "../utils-BHwvUDKn.js";
|
|
14
|
+
import "../types-DFN4M1Sp.js";
|
|
15
|
+
|
|
16
|
+
export { Declaration, MethodInfo, MethodSignature, Property, Type, TypeName };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "../breadcrumbs-Z-hEqjcp.js";
|
|
2
|
+
import "../dropdown-B7VyGMOw.js";
|
|
3
|
+
import "../method-DpsVuzZW.js";
|
|
4
|
+
import "../primitives-DWz23_Ub.js";
|
|
5
|
+
import "../properties-CF71V58d.js";
|
|
6
|
+
import "../routing-qc0V00-j.js";
|
|
7
|
+
import "../sdk-Zg3Rggk3.js";
|
|
8
|
+
import "../snippets-EUzM4fRO.js";
|
|
9
|
+
import "../overview-C8e-6jGr.js";
|
|
10
|
+
import "../sidebar-C8KirYjg.js";
|
|
11
|
+
import "../index-YnpUtXLB.js";
|
|
12
|
+
import { N as python_d_exports, Q as java_d_exports, U as go_d_exports, a as node, h as http_d_exports, i as kotlin, n as PropertyFn, st as typescript_d_exports, t as LanguageComponentDefinition, w as ruby_d_exports } from "../index-AicgPYKB.js";
|
|
13
|
+
export { LanguageComponentDefinition, PropertyFn, go_d_exports as go, http_d_exports as http, java_d_exports as java, kotlin, node, python_d_exports as python, ruby_d_exports as ruby, typescript_d_exports as typescript };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../component-generics-DzI21jRn.js";
|
|
2
|
+
import "../docs-Dh8kE1va.js";
|
|
3
|
+
import "../navigation-aoYZ_tl4.js";
|
|
4
|
+
import "../markdown-BXfX1D7C.js";
|
|
5
|
+
import "../routing-DQjbRxdJ.js";
|
|
6
|
+
import "../style-rYbbxIR_.js";
|
|
7
|
+
import "../use-components-D9E85p5x.js";
|
|
8
|
+
import { A as ruby_exports, H as go_exports, I as python_exports, J as java_exports, _ as node, et as typescript_exports, h as kotlin, w as http_exports } from "../contexts-DRxRO-xO.js";
|
|
9
|
+
import "../icons-DdKM-01E.js";
|
|
10
|
+
import "../utils-CJfFBNgT.js";
|
|
11
|
+
import "../dropdown-DtgAi6lb.js";
|
|
12
|
+
import "../md-Dg8aOyMA.js";
|
|
13
|
+
import "../utils-BHwvUDKn.js";
|
|
14
|
+
import "../types-DFN4M1Sp.js";
|
|
15
|
+
|
|
16
|
+
export { go_exports as go, http_exports as http, java_exports as java, kotlin, node, python_exports as python, ruby_exports as ruby, typescript_exports as typescript };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "../breadcrumbs-Z-hEqjcp.js";
|
|
2
|
+
import "../dropdown-B7VyGMOw.js";
|
|
3
|
+
import "../method-DpsVuzZW.js";
|
|
4
|
+
import "../primitives-DWz23_Ub.js";
|
|
5
|
+
import "../properties-CF71V58d.js";
|
|
6
|
+
import "../routing-qc0V00-j.js";
|
|
7
|
+
import "../sdk-Zg3Rggk3.js";
|
|
8
|
+
import "../snippets-EUzM4fRO.js";
|
|
9
|
+
import "../overview-C8e-6jGr.js";
|
|
10
|
+
import "../sidebar-C8KirYjg.js";
|
|
11
|
+
import "../index-YnpUtXLB.js";
|
|
12
|
+
import { G as DeclarationProps, J as Property, K as MethodSignature, W as Declaration, X as Type, Y as PropertyProps, Z as TypeName, q as MethodSignatureProps } from "../index-AicgPYKB.js";
|
|
13
|
+
export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../component-generics-DzI21jRn.js";
|
|
2
|
+
import "../docs-Dh8kE1va.js";
|
|
3
|
+
import "../navigation-aoYZ_tl4.js";
|
|
4
|
+
import "../markdown-BXfX1D7C.js";
|
|
5
|
+
import "../routing-DQjbRxdJ.js";
|
|
6
|
+
import "../style-rYbbxIR_.js";
|
|
7
|
+
import "../use-components-D9E85p5x.js";
|
|
8
|
+
import { G as Property, K as Type, U as Declaration, W as MethodSignature, q as TypeName } from "../contexts-DRxRO-xO.js";
|
|
9
|
+
import "../icons-DdKM-01E.js";
|
|
10
|
+
import "../utils-CJfFBNgT.js";
|
|
11
|
+
import "../dropdown-DtgAi6lb.js";
|
|
12
|
+
import "../md-Dg8aOyMA.js";
|
|
13
|
+
import "../utils-BHwvUDKn.js";
|
|
14
|
+
import "../types-DFN4M1Sp.js";
|
|
15
|
+
|
|
16
|
+
export { Declaration, MethodSignature, Property, Type, TypeName };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "../breadcrumbs-Z-hEqjcp.js";
|
|
2
|
+
import "../dropdown-B7VyGMOw.js";
|
|
3
|
+
import "../method-DpsVuzZW.js";
|
|
4
|
+
import "../primitives-DWz23_Ub.js";
|
|
5
|
+
import "../properties-CF71V58d.js";
|
|
6
|
+
import "../routing-qc0V00-j.js";
|
|
7
|
+
import "../sdk-Zg3Rggk3.js";
|
|
8
|
+
import "../snippets-EUzM4fRO.js";
|
|
9
|
+
import "../overview-C8e-6jGr.js";
|
|
10
|
+
import "../sidebar-C8KirYjg.js";
|
|
11
|
+
import "../index-YnpUtXLB.js";
|
|
12
|
+
import { A as PropertyProps, D as MethodSignature, E as DeclarationProps, M as TypeName, O as MethodSignatureProps, T as Declaration, j as Type, k as Property } from "../index-AicgPYKB.js";
|
|
13
|
+
export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../component-generics-DzI21jRn.js";
|
|
2
|
+
import "../docs-Dh8kE1va.js";
|
|
3
|
+
import "../navigation-aoYZ_tl4.js";
|
|
4
|
+
import "../markdown-BXfX1D7C.js";
|
|
5
|
+
import "../routing-DQjbRxdJ.js";
|
|
6
|
+
import "../style-rYbbxIR_.js";
|
|
7
|
+
import "../use-components-D9E85p5x.js";
|
|
8
|
+
import { F as TypeName, M as MethodSignature, N as Property, P as Type, j as Declaration } from "../contexts-DRxRO-xO.js";
|
|
9
|
+
import "../icons-DdKM-01E.js";
|
|
10
|
+
import "../utils-CJfFBNgT.js";
|
|
11
|
+
import "../dropdown-DtgAi6lb.js";
|
|
12
|
+
import "../md-Dg8aOyMA.js";
|
|
13
|
+
import "../utils-BHwvUDKn.js";
|
|
14
|
+
import "../types-DFN4M1Sp.js";
|
|
15
|
+
|
|
16
|
+
export { Declaration, MethodSignature, Property, Type, TypeName };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "../breadcrumbs-Z-hEqjcp.js";
|
|
2
|
+
import "../dropdown-B7VyGMOw.js";
|
|
3
|
+
import "../method-DpsVuzZW.js";
|
|
4
|
+
import "../primitives-DWz23_Ub.js";
|
|
5
|
+
import "../properties-CF71V58d.js";
|
|
6
|
+
import "../routing-qc0V00-j.js";
|
|
7
|
+
import "../sdk-Zg3Rggk3.js";
|
|
8
|
+
import "../snippets-EUzM4fRO.js";
|
|
9
|
+
import "../overview-C8e-6jGr.js";
|
|
10
|
+
import "../sidebar-C8KirYjg.js";
|
|
11
|
+
import "../index-YnpUtXLB.js";
|
|
12
|
+
import { C as TypeName, S as Type, _ as DeclarationProps, b as Property, g as Declaration, v as MethodSignature, x as PropertyProps, y as MethodSignatureProps } from "../index-AicgPYKB.js";
|
|
13
|
+
export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../component-generics-DzI21jRn.js";
|
|
2
|
+
import "../docs-Dh8kE1va.js";
|
|
3
|
+
import "../navigation-aoYZ_tl4.js";
|
|
4
|
+
import "../markdown-BXfX1D7C.js";
|
|
5
|
+
import "../routing-DQjbRxdJ.js";
|
|
6
|
+
import "../style-rYbbxIR_.js";
|
|
7
|
+
import "../use-components-D9E85p5x.js";
|
|
8
|
+
import { D as Property, E as MethodSignature, O as Type, T as Declaration, k as TypeName } from "../contexts-DRxRO-xO.js";
|
|
9
|
+
import "../icons-DdKM-01E.js";
|
|
10
|
+
import "../utils-CJfFBNgT.js";
|
|
11
|
+
import "../dropdown-DtgAi6lb.js";
|
|
12
|
+
import "../md-Dg8aOyMA.js";
|
|
13
|
+
import "../utils-BHwvUDKn.js";
|
|
14
|
+
import "../types-DFN4M1Sp.js";
|
|
15
|
+
|
|
16
|
+
export { Declaration, MethodSignature, Property, Type, TypeName };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "../breadcrumbs-Z-hEqjcp.js";
|
|
2
|
+
import "../dropdown-B7VyGMOw.js";
|
|
3
|
+
import "../method-DpsVuzZW.js";
|
|
4
|
+
import "../primitives-DWz23_Ub.js";
|
|
5
|
+
import "../properties-CF71V58d.js";
|
|
6
|
+
import "../routing-qc0V00-j.js";
|
|
7
|
+
import "../sdk-Zg3Rggk3.js";
|
|
8
|
+
import "../snippets-EUzM4fRO.js";
|
|
9
|
+
import "../overview-C8e-6jGr.js";
|
|
10
|
+
import "../sidebar-C8KirYjg.js";
|
|
11
|
+
import "../index-YnpUtXLB.js";
|
|
12
|
+
import { $ as Declaration, at as Type, et as DeclarationProps, it as PropertyProps, nt as MethodSignatureProps, ot as TypeName, rt as Property, tt as MethodSignature } from "../index-AicgPYKB.js";
|
|
13
|
+
export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../component-generics-DzI21jRn.js";
|
|
2
|
+
import "../docs-Dh8kE1va.js";
|
|
3
|
+
import "../navigation-aoYZ_tl4.js";
|
|
4
|
+
import "../markdown-BXfX1D7C.js";
|
|
5
|
+
import "../routing-DQjbRxdJ.js";
|
|
6
|
+
import "../style-rYbbxIR_.js";
|
|
7
|
+
import "../use-components-D9E85p5x.js";
|
|
8
|
+
import { $ as TypeName, Q as Type, X as MethodSignature, Y as Declaration, Z as Property } from "../contexts-DRxRO-xO.js";
|
|
9
|
+
import "../icons-DdKM-01E.js";
|
|
10
|
+
import "../utils-CJfFBNgT.js";
|
|
11
|
+
import "../dropdown-DtgAi6lb.js";
|
|
12
|
+
import "../md-Dg8aOyMA.js";
|
|
13
|
+
import "../utils-BHwvUDKn.js";
|
|
14
|
+
import "../types-DFN4M1Sp.js";
|
|
15
|
+
|
|
16
|
+
export { Declaration, MethodSignature, Property, Type, TypeName };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../routing-qc0V00-j.js";
|
|
2
|
+
import "../sdk-Zg3Rggk3.js";
|
|
3
|
+
import { t as EnvironmentType } from "../utils-DQhEbvUC.js";
|
|
4
|
+
import { Node } from "@markdoc/markdoc";
|
|
5
|
+
|
|
6
|
+
//#region src/markdown/index.d.ts
|
|
7
|
+
declare function declaration(env: EnvironmentType, decl: SDKJSON.DeclarationNode): Node;
|
|
8
|
+
declare function render(env: EnvironmentType, node: SDKJSON.Resource | SDKJSON.Method | SDKJSON.Model): any;
|
|
9
|
+
declare function renderMarkdown(env: EnvironmentType, node: SDKJSON.Resource | SDKJSON.Method | SDKJSON.Model): string;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { declaration, render, renderMarkdown };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../component-generics-DzI21jRn.js";
|
|
2
|
+
import "../docs-Dh8kE1va.js";
|
|
3
|
+
import "../navigation-aoYZ_tl4.js";
|
|
4
|
+
import "../markdown-BXfX1D7C.js";
|
|
5
|
+
import "../routing-DQjbRxdJ.js";
|
|
6
|
+
import "../style-rYbbxIR_.js";
|
|
7
|
+
import "../use-components-D9E85p5x.js";
|
|
8
|
+
import { d as render, f as renderMarkdown, u as declaration } from "../contexts-DRxRO-xO.js";
|
|
9
|
+
import "../icons-DdKM-01E.js";
|
|
10
|
+
import "../utils-CJfFBNgT.js";
|
|
11
|
+
import "../dropdown-DtgAi6lb.js";
|
|
12
|
+
import "../md-Dg8aOyMA.js";
|
|
13
|
+
import "../utils-BHwvUDKn.js";
|
|
14
|
+
import "../types-DFN4M1Sp.js";
|
|
15
|
+
|
|
16
|
+
export { declaration, render, renderMarkdown };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Node } from "@markdoc/markdoc";
|
|
2
|
+
|
|
3
|
+
//#region src/markdown/md.d.ts
|
|
4
|
+
declare function heading(level: number, children: string | Node[]): Node;
|
|
5
|
+
declare function text(content: string): Node;
|
|
6
|
+
declare function code(content: string): Node;
|
|
7
|
+
declare function paragraph(...children: Node[]): Node;
|
|
8
|
+
declare function list(...children: Node[]): Node;
|
|
9
|
+
declare function item(...children: Node[]): Node;
|
|
10
|
+
declare function strong(...children: Node[]): Node;
|
|
11
|
+
declare function inline(...children: Node[]): Node;
|
|
12
|
+
declare function fence(language: string, content: string): Node;
|
|
13
|
+
declare function parse(content: string): Node[];
|
|
14
|
+
//#endregion
|
|
15
|
+
export { code, fence, heading, inline, item, list, paragraph, parse, strong, text };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { a as useLanguage } from "./docs-Dh8kE1va.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/contexts/markdown.tsx
|
|
6
|
+
const HighlightLanguageMappings = {
|
|
7
|
+
node: "typescript",
|
|
8
|
+
http: "bash"
|
|
9
|
+
};
|
|
10
|
+
const MarkdownContext = React$1.createContext({
|
|
11
|
+
highlight: (content) => content,
|
|
12
|
+
render: (content) => content
|
|
13
|
+
});
|
|
14
|
+
const useMarkdownContext = () => React$1.useContext(MarkdownContext);
|
|
15
|
+
function useRenderMarkdown(content) {
|
|
16
|
+
const { render } = React$1.useContext(MarkdownContext);
|
|
17
|
+
return React$1.useMemo(() => content ? render(content) : void 0, [content, render]);
|
|
18
|
+
}
|
|
19
|
+
function useHighlight(content, language) {
|
|
20
|
+
const { highlight } = React$1.useContext(MarkdownContext);
|
|
21
|
+
const lang = language ?? useLanguage();
|
|
22
|
+
return React$1.useMemo(() => {
|
|
23
|
+
const rendered = highlight(content, HighlightLanguageMappings[lang] ?? lang);
|
|
24
|
+
return typeof rendered === "string" ? rendered : React$1.use(rendered);
|
|
25
|
+
}, [
|
|
26
|
+
content,
|
|
27
|
+
language,
|
|
28
|
+
highlight
|
|
29
|
+
]);
|
|
30
|
+
}
|
|
31
|
+
function MarkdownProvider({ render, highlight, children }) {
|
|
32
|
+
return /* @__PURE__ */ jsx(MarkdownContext.Provider, {
|
|
33
|
+
value: {
|
|
34
|
+
render,
|
|
35
|
+
highlight
|
|
36
|
+
},
|
|
37
|
+
children
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { useRenderMarkdown as a, useMarkdownContext as i, MarkdownProvider as n, useHighlight as r, MarkdownContext as t };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime64 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/contexts/markdown.d.ts
|
|
5
|
+
type MarkdownContext = {
|
|
6
|
+
highlight?: (content: string, language?: string) => string | Promise<string>;
|
|
7
|
+
render?: (content: string) => string;
|
|
8
|
+
};
|
|
9
|
+
declare const MarkdownContext: React$1.Context<MarkdownContext>;
|
|
10
|
+
declare const useMarkdownContext: () => MarkdownContext;
|
|
11
|
+
declare function useRenderMarkdown(content?: string): string | undefined;
|
|
12
|
+
declare function useHighlight(content?: string, language?: string): string;
|
|
13
|
+
type MarkdownProviderProps = MarkdownContext & {
|
|
14
|
+
children: React$1.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
declare function MarkdownProvider({
|
|
17
|
+
render,
|
|
18
|
+
highlight,
|
|
19
|
+
children
|
|
20
|
+
}: MarkdownProviderProps): react_jsx_runtime64.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { useMarkdownContext as a, useHighlight as i, MarkdownProvider as n, useRenderMarkdown as o, MarkdownProviderProps as r, MarkdownContext as t };
|