@stainless-api/docs-ui 0.1.0-beta.20 → 0.1.0-beta.21

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.
Files changed (122) hide show
  1. package/dist/breadcrumbs-Z-hEqjcp.d.ts +19 -0
  2. package/dist/chunk-Bp6m_JJh.js +13 -0
  3. package/dist/component-generics-DzI21jRn.js +35 -0
  4. package/dist/component-generics-q5Dqiu2D.d.ts +30 -0
  5. package/dist/components/breadcrumbs.d.ts +2 -0
  6. package/dist/components/breadcrumbs.js +16 -0
  7. package/dist/components/chat.d.ts +14 -0
  8. package/dist/components/chat.js +144 -0
  9. package/dist/components/dropdown.d.ts +2 -0
  10. package/dist/components/dropdown.js +4 -0
  11. package/dist/components/icons.d.ts +50 -0
  12. package/dist/components/icons.js +3 -0
  13. package/dist/components/index.d.ts +12 -0
  14. package/dist/components/index.js +16 -0
  15. package/dist/components/method.d.ts +2 -0
  16. package/dist/components/method.js +16 -0
  17. package/dist/components/overview.d.ts +2 -0
  18. package/dist/components/overview.js +16 -0
  19. package/dist/components/primitives.d.ts +2 -0
  20. package/dist/components/primitives.js +16 -0
  21. package/dist/components/properties.d.ts +2 -0
  22. package/dist/components/properties.js +16 -0
  23. package/dist/components/scripts/dropdown.d.ts +12 -0
  24. package/dist/components/scripts/dropdown.js +50 -0
  25. package/dist/components/sdk.d.ts +3 -0
  26. package/dist/components/sdk.js +16 -0
  27. package/dist/components/sidebar.d.ts +2 -0
  28. package/dist/components/sidebar.js +16 -0
  29. package/dist/components/snippets.d.ts +4 -0
  30. package/dist/components/snippets.js +16 -0
  31. package/dist/contexts/component-generics.d.ts +2 -0
  32. package/dist/contexts/component-generics.js +3 -0
  33. package/dist/contexts/component-types.d.ts +18 -0
  34. package/dist/contexts/component-types.js +1 -0
  35. package/dist/contexts/component.d.ts +31 -0
  36. package/dist/contexts/component.js +16 -0
  37. package/dist/contexts/docs.d.ts +2 -0
  38. package/dist/contexts/docs.js +3 -0
  39. package/dist/contexts/index.d.ts +20 -0
  40. package/dist/contexts/index.js +16 -0
  41. package/dist/contexts/markdown.d.ts +2 -0
  42. package/dist/contexts/markdown.js +4 -0
  43. package/dist/contexts/navigation.d.ts +3 -0
  44. package/dist/contexts/navigation.js +3 -0
  45. package/dist/contexts/search.d.ts +4 -0
  46. package/dist/contexts/search.js +16 -0
  47. package/dist/contexts/use-components.d.ts +16 -0
  48. package/dist/contexts/use-components.js +4 -0
  49. package/dist/contexts-DRxRO-xO.js +3747 -0
  50. package/dist/docs-Dh8kE1va.js +50 -0
  51. package/dist/docs-EUy-wfbA.d.ts +43 -0
  52. package/dist/dropdown-B7VyGMOw.d.ts +43 -0
  53. package/dist/dropdown-DtgAi6lb.js +62 -0
  54. package/dist/icons-DdKM-01E.js +753 -0
  55. package/dist/index-AicgPYKB.d.ts +239 -0
  56. package/dist/index-BhwLhiWk.d.ts +14 -0
  57. package/dist/index-YnpUtXLB.d.ts +16 -0
  58. package/dist/index.d.ts +22 -0
  59. package/dist/languages/go.d.ts +13 -0
  60. package/dist/languages/go.js +16 -0
  61. package/dist/languages/http.d.ts +13 -0
  62. package/dist/languages/http.js +16 -0
  63. package/dist/languages/index.d.ts +13 -0
  64. package/dist/languages/index.js +16 -0
  65. package/dist/languages/java.d.ts +13 -0
  66. package/dist/languages/java.js +16 -0
  67. package/dist/languages/python.d.ts +13 -0
  68. package/dist/languages/python.js +16 -0
  69. package/dist/languages/ruby.d.ts +13 -0
  70. package/dist/languages/ruby.js +16 -0
  71. package/dist/languages/typescript.d.ts +13 -0
  72. package/dist/languages/typescript.js +16 -0
  73. package/dist/markdown/index.d.ts +11 -0
  74. package/dist/markdown/index.js +16 -0
  75. package/dist/markdown/md.d.ts +15 -0
  76. package/dist/markdown/md.js +3 -0
  77. package/dist/markdown/utils.d.ts +4 -0
  78. package/dist/markdown/utils.js +3 -0
  79. package/dist/markdown-BXfX1D7C.js +42 -0
  80. package/dist/markdown-nFyAEX_K.d.ts +22 -0
  81. package/dist/mcp.js +983441 -0
  82. package/dist/md-Dg8aOyMA.js +41 -0
  83. package/dist/method-DpsVuzZW.d.ts +71 -0
  84. package/dist/navigation-aoYZ_tl4.js +24 -0
  85. package/dist/navigation-nyXBY-75.d.ts +29 -0
  86. package/dist/overview-C8e-6jGr.d.ts +38 -0
  87. package/dist/pagefind-ChrPfuVv.js +15 -0
  88. package/dist/primitives-DWz23_Ub.d.ts +99 -0
  89. package/dist/properties-CF71V58d.d.ts +46 -0
  90. package/dist/routing-DQjbRxdJ.js +189 -0
  91. package/dist/routing-qc0V00-j.d.ts +51 -0
  92. package/dist/routing.d.ts +2 -0
  93. package/dist/sdk-Zg3Rggk3.d.ts +118 -0
  94. package/dist/search/index.d.ts +26 -0
  95. package/dist/search/index.js +332 -0
  96. package/dist/search/providers/algolia.d.ts +23 -0
  97. package/dist/search/providers/algolia.js +16 -0
  98. package/dist/search/providers/fuse.d.ts +17 -0
  99. package/dist/search/providers/fuse.js +31 -0
  100. package/dist/search/providers/pagefind.d.ts +7 -0
  101. package/dist/search/providers/pagefind.js +3 -0
  102. package/dist/search/providers/walker.d.ts +8 -0
  103. package/dist/search/providers/walker.js +32 -0
  104. package/dist/search/types.d.ts +3 -0
  105. package/dist/search/types.js +3 -0
  106. package/dist/search-B6loAGmB.d.ts +21 -0
  107. package/dist/sidebar-C8KirYjg.d.ts +35 -0
  108. package/dist/snippets-EUzM4fRO.d.ts +45 -0
  109. package/dist/style-pN9hCoec.d.ts +181 -0
  110. package/dist/style-rYbbxIR_.js +182 -0
  111. package/dist/style.d.ts +2 -0
  112. package/dist/style.js +3 -0
  113. package/dist/types-CTBDtD34.d.ts +82 -0
  114. package/dist/types-DFN4M1Sp.js +34 -0
  115. package/dist/use-components-D9E85p5x.js +7 -0
  116. package/dist/utils-BHwvUDKn.js +30 -0
  117. package/dist/utils-CJfFBNgT.js +32 -0
  118. package/dist/utils-DQhEbvUC.d.ts +20 -0
  119. package/dist/utils-nDazhti8.d.ts +11 -0
  120. package/dist/utils.d.ts +2 -0
  121. package/dist/utils.js +4 -0
  122. package/package.json +2 -2
@@ -0,0 +1,19 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+
3
+ //#region src/components/breadcrumbs.d.ts
4
+ type BreadcrumbConfig = {
5
+ includeCurrentPage?: boolean;
6
+ };
7
+ declare function SDKBreadcrumbs({
8
+ spec,
9
+ currentPath,
10
+ basePath,
11
+ config
12
+ }: {
13
+ spec: SDKJSON.Spec;
14
+ currentPath: string;
15
+ basePath?: string;
16
+ config?: BreadcrumbConfig | null;
17
+ }): react_jsx_runtime0.JSX.Element | null;
18
+ //#endregion
19
+ export { SDKBreadcrumbs as t };
@@ -0,0 +1,13 @@
1
+ //#region rolldown:runtime
2
+ var __defProp = Object.defineProperty;
3
+ var __export = (all) => {
4
+ let target = {};
5
+ for (var name in all) __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true
8
+ });
9
+ return target;
10
+ };
11
+
12
+ //#endregion
13
+ export { __export as t };
@@ -0,0 +1,35 @@
1
+ import * as React$1 from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
+
4
+ //#region src/contexts/component-generics.tsx
5
+ const ComponentContext = React$1.createContext(null);
6
+ ComponentContext.displayName = "ComponentContext";
7
+ function useComponents() {
8
+ const ctx = React$1.useContext(ComponentContext);
9
+ if (!ctx) throw new Error("useComponents must be used within a ComponentContext.Provider");
10
+ return ctx.components;
11
+ }
12
+ function customizeComponents(defaults, overrides = {}) {
13
+ return {
14
+ components: {
15
+ ...defaults.components,
16
+ ...overrides.components ?? {}
17
+ },
18
+ language: Object.keys(defaults.language).reduce((acc, key) => {
19
+ acc[key] = {
20
+ ...defaults.language[key],
21
+ ...overrides.language?.[key] ?? {}
22
+ };
23
+ return acc;
24
+ }, {})
25
+ };
26
+ }
27
+ function ComponentProvider({ value, children }) {
28
+ return /* @__PURE__ */ jsx(ComponentContext.Provider, {
29
+ value,
30
+ children
31
+ });
32
+ }
33
+
34
+ //#endregion
35
+ export { useComponents as i, ComponentProvider as n, customizeComponents as r, ComponentContext as t };
@@ -0,0 +1,30 @@
1
+ import * as React$1 from "react";
2
+ import * as react_jsx_runtime29 from "react/jsx-runtime";
3
+
4
+ //#region src/contexts/component-generics.d.ts
5
+ type DeepPartialMap<L> = { [K in keyof L]?: Partial<L[K]> };
6
+ type ComponentsContextType<C, L> = {
7
+ components: C;
8
+ language: L;
9
+ };
10
+ declare const ComponentContext: React$1.Context<ComponentsContextType<any, any> | null>;
11
+ declare function useComponents<C = unknown>(): C;
12
+ declare function customizeComponents<C, L>(defaults: {
13
+ components: C;
14
+ language: L;
15
+ }, overrides?: {
16
+ components?: Partial<C>;
17
+ language?: DeepPartialMap<L>;
18
+ }): {
19
+ components: C;
20
+ language: L;
21
+ };
22
+ declare function ComponentProvider<C, L>({
23
+ value,
24
+ children
25
+ }: {
26
+ value: ComponentsContextType<C, L>;
27
+ children: React$1.ReactNode;
28
+ }): react_jsx_runtime29.JSX.Element;
29
+ //#endregion
30
+ export { useComponents as a, customizeComponents as i, ComponentProvider as n, ComponentsContextType as r, ComponentContext as t };
@@ -0,0 +1,2 @@
1
+ import { t as SDKBreadcrumbs } from "../breadcrumbs-Z-hEqjcp.js";
2
+ export { SDKBreadcrumbs };
@@ -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 { ot as SDKBreadcrumbs } 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 { SDKBreadcrumbs };
@@ -0,0 +1,14 @@
1
+ import * as react_jsx_runtime65 from "react/jsx-runtime";
2
+
3
+ //#region src/components/chat.d.ts
4
+ declare function Chat(): react_jsx_runtime65.JSX.Element;
5
+ type ChatModalProps = {
6
+ id?: string;
7
+ open?: boolean;
8
+ };
9
+ declare function ChatModal({
10
+ id,
11
+ open: isOpen
12
+ }: ChatModalProps): react_jsx_runtime65.JSX.Element;
13
+ //#endregion
14
+ export { Chat, ChatModal, ChatModalProps };
@@ -0,0 +1,144 @@
1
+ import "../component-generics-DzI21jRn.js";
2
+ import { a as useLanguage } from "../docs-Dh8kE1va.js";
3
+ import "../navigation-aoYZ_tl4.js";
4
+ import "../markdown-BXfX1D7C.js";
5
+ import "../routing-DQjbRxdJ.js";
6
+ import { t as style_default } from "../style-rYbbxIR_.js";
7
+ import "../use-components-D9E85p5x.js";
8
+ import { Bt as Markdown, a as useSearchContext } 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
+ import * as React$1 from "react";
16
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
17
+ import { ArrowUpIcon, BotMessageSquareIcon, LoaderCircleIcon, SquareIcon, TrashIcon } from "lucide-react";
18
+ import { useChat } from "ai/react";
19
+
20
+ //#region src/components/chat.tsx
21
+ const BASEURL = "https://askai.algolia.com";
22
+ function buildFetch({ appId, searchKey, indexName, assistant }) {
23
+ const headers = {
24
+ "X-Algolia-Application-Id": appId,
25
+ "X-Algolia-API-Key": searchKey,
26
+ "X-Algolia-Index-Name": `${indexName}-chat`,
27
+ "X-Algolia-Assistant-Id": assistant
28
+ };
29
+ return async (input, init) => {
30
+ const data = await (await fetch(`${BASEURL}/chat/token`, {
31
+ method: "POST",
32
+ headers
33
+ })).json();
34
+ return fetch(input, {
35
+ ...init,
36
+ headers: {
37
+ ...init.headers,
38
+ ...headers,
39
+ Authorization: `TOKEN ${data["token"]}`
40
+ }
41
+ });
42
+ };
43
+ }
44
+ function RenderMessage({ message }) {
45
+ return message.parts.filter((part) => part.type === "text").map((part, key) => /* @__PURE__ */ jsx(Markdown, { content: part["text"] }, key));
46
+ }
47
+ function Chat() {
48
+ const language = useLanguage();
49
+ const { settings } = useSearchContext();
50
+ const messageListRef = React$1.useRef(null);
51
+ const { messages, setMessages, status, input, setInput, append, stop } = useChat({
52
+ body: { searchParameters: { filters: `language:${language ?? "http"}` } },
53
+ sendExtraMessageFields: true,
54
+ fetch: buildFetch(settings),
55
+ api: `${BASEURL}/chat`
56
+ });
57
+ React$1.useEffect(() => {
58
+ const content = sessionStorage.getItem("stldocs-chat-messages");
59
+ if (!content) return;
60
+ setMessages(JSON.parse(content));
61
+ setTimeout(() => {
62
+ if (!messageListRef.current) return;
63
+ messageListRef.current.scrollTop = messageListRef.current.scrollHeight;
64
+ }, 10);
65
+ }, [setMessages]);
66
+ React$1.useEffect(() => {
67
+ if (status !== "submitted") return;
68
+ [...messageListRef?.current.querySelectorAll("[data-stldocs-chat-message]")].at(-1)?.scrollIntoView({
69
+ behavior: "smooth",
70
+ block: "start"
71
+ });
72
+ }, [status]);
73
+ React$1.useEffect(() => {
74
+ sessionStorage.setItem("stldocs-chat-messages", JSON.stringify(messages));
75
+ }, [messages]);
76
+ function handleSend() {
77
+ append({
78
+ role: "user",
79
+ content: input
80
+ });
81
+ setInput("");
82
+ }
83
+ function handleKeyUp(ev) {
84
+ if (ev.key === "Enter" && !ev.shiftKey) {
85
+ ev.preventDefault();
86
+ handleSend();
87
+ }
88
+ }
89
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
90
+ className: style_default.ChatMessages,
91
+ ref: messageListRef,
92
+ children: [
93
+ messages.map((message) => /* @__PURE__ */ jsx("div", {
94
+ className: style_default.ChatMessage,
95
+ "data-stldocs-chat-message": message.role,
96
+ children: /* @__PURE__ */ jsx(RenderMessage, { message })
97
+ }, message.id)),
98
+ status === "submitted" && /* @__PURE__ */ jsx("div", {
99
+ className: style_default.LoadingSpinner,
100
+ children: /* @__PURE__ */ jsx(LoaderCircleIcon, {})
101
+ }),
102
+ ["submitted", "streaming"].includes(status) && /* @__PURE__ */ jsx("div", { style: { height: "800px" } })
103
+ ]
104
+ }), /* @__PURE__ */ jsxs("div", {
105
+ className: style_default.ChatInput,
106
+ children: [/* @__PURE__ */ jsx("textarea", {
107
+ value: input,
108
+ placeholder: "Ask a question",
109
+ onKeyUp: handleKeyUp,
110
+ onChange: (ev) => setInput(ev.target.value),
111
+ autoFocus: true
112
+ }), /* @__PURE__ */ jsxs("div", {
113
+ className: style_default.ChatInputButtons,
114
+ children: [status === "submitted" ? /* @__PURE__ */ jsx("button", {
115
+ onClick: stop,
116
+ children: /* @__PURE__ */ jsx(SquareIcon, {})
117
+ }) : /* @__PURE__ */ jsx("button", {
118
+ onClick: handleSend,
119
+ disabled: input.length < 1,
120
+ children: /* @__PURE__ */ jsx(ArrowUpIcon, {})
121
+ }), /* @__PURE__ */ jsx("button", {
122
+ onClick: () => setMessages([]),
123
+ children: /* @__PURE__ */ jsx(TrashIcon, {})
124
+ })]
125
+ })]
126
+ })] });
127
+ }
128
+ function ChatModal({ id, open: isOpen }) {
129
+ const [open, setOpen] = React$1.useState(isOpen);
130
+ return /* @__PURE__ */ jsxs("div", {
131
+ id,
132
+ onToggle: (ev) => setOpen(ev.newState === "open"),
133
+ className: style_default.SearchModal,
134
+ popover: "auto",
135
+ "data-stldocs-modal-open": open,
136
+ children: [/* @__PURE__ */ jsxs("div", {
137
+ className: style_default.ChatHeader,
138
+ children: [/* @__PURE__ */ jsx(BotMessageSquareIcon, {}), /* @__PURE__ */ jsx("h5", { children: "Docs Assistant" })]
139
+ }), open && /* @__PURE__ */ jsx(Chat, {})]
140
+ });
141
+ }
142
+
143
+ //#endregion
144
+ export { Chat, ChatModal };
@@ -0,0 +1,2 @@
1
+ import { i as DropdownTrigger, n as DropdownItem, r as DropdownMenu, t as Dropdown } from "../dropdown-B7VyGMOw.js";
2
+ export { Dropdown, DropdownItem, DropdownMenu, DropdownTrigger };
@@ -0,0 +1,4 @@
1
+ import "../style-rYbbxIR_.js";
2
+ import { i as DropdownTrigger, n as DropdownItem, r as DropdownMenu, t as Dropdown } from "../dropdown-DtgAi6lb.js";
3
+
4
+ export { Dropdown, DropdownItem, DropdownMenu, DropdownTrigger };
@@ -0,0 +1,50 @@
1
+ import * as react_jsx_runtime79 from "react/jsx-runtime";
2
+
3
+ //#region src/components/icons.d.ts
4
+ declare function GoIcon({
5
+ className
6
+ }: {
7
+ className?: string;
8
+ }): react_jsx_runtime79.JSX.Element;
9
+ declare function JavaIcon({
10
+ className
11
+ }: {
12
+ className?: string;
13
+ }): react_jsx_runtime79.JSX.Element;
14
+ declare function KotlinIcon({
15
+ className
16
+ }: {
17
+ className?: string;
18
+ }): react_jsx_runtime79.JSX.Element;
19
+ declare function PythonIcon({
20
+ className
21
+ }: {
22
+ className?: string;
23
+ }): react_jsx_runtime79.JSX.Element;
24
+ declare function RubyIcon({
25
+ className
26
+ }: {
27
+ className?: string;
28
+ }): react_jsx_runtime79.JSX.Element;
29
+ declare function TerraformIcon({
30
+ className
31
+ }: {
32
+ className?: string;
33
+ }): react_jsx_runtime79.JSX.Element;
34
+ declare function TypescriptIcon({
35
+ className
36
+ }: {
37
+ className?: string;
38
+ }): react_jsx_runtime79.JSX.Element;
39
+ declare function CurlIcon({
40
+ className
41
+ }: {
42
+ className?: string;
43
+ }): react_jsx_runtime79.JSX.Element;
44
+ declare function PowershellIcon({
45
+ className
46
+ }: {
47
+ className?: string;
48
+ }): react_jsx_runtime79.JSX.Element;
49
+ //#endregion
50
+ export { CurlIcon, GoIcon, JavaIcon, KotlinIcon, PowershellIcon, PythonIcon, RubyIcon, TerraformIcon, TypescriptIcon };
@@ -0,0 +1,3 @@
1
+ import { a as PowershellIcon, c as TerraformIcon, i as KotlinIcon, l as TypescriptIcon, n as GoIcon, o as PythonIcon, r as JavaIcon, s as RubyIcon, t as CurlIcon } from "../icons-DdKM-01E.js";
2
+
3
+ export { CurlIcon, GoIcon, JavaIcon, KotlinIcon, PowershellIcon, PythonIcon, RubyIcon, TerraformIcon, TypescriptIcon };
@@ -0,0 +1,12 @@
1
+ import { t as SDKBreadcrumbs } from "../breadcrumbs-Z-hEqjcp.js";
2
+ import { i as DropdownTrigger, n as DropdownItem, r as DropdownMenu, t as Dropdown } from "../dropdown-B7VyGMOw.js";
3
+ import { a as MethodDescription, c as MethodHeaderProps, d as MethodInfo, f as MethodInfoProps, h as MethodRouteProps, i as Method, l as MethodIconBadge, m as MethodRoute, n as HttpMethodIcons, o as MethodDescriptionProps, p as MethodProps, r as HttpMethods, s as MethodHeader, t as HTTPMethod, u as MethodIconProps } from "../method-DpsVuzZW.js";
4
+ import { a as Join, c as ListViewProps, d as ToggleButtonProps, f as Tooltip, i as InputProps, l as Markdown, n as Expander, o as Link, p as VirtualExpander, r as Input, s as ListView, t as Badge, u as ToggleButton } from "../primitives-DWz23_Ub.js";
5
+ import { a as PropertyToggle, i as PropertyProps, n as PropertyDescription, o as PropertyToggleProps, r as PropertyDescriptionProps, t as Property } from "../properties-CF71V58d.js";
6
+ import "../routing-qc0V00-j.js";
7
+ import { C as TransformRequestSnippetFn, S as SDKSnippetLanguagesType, T as useReferenceNesting, _ as SDKModelProps, a as SDKChildren, b as SDKRequestTitleProps, c as SDKDeclaration, d as SDKLanguageBlock, f as SDKMethod, g as SDKModel, h as SDKMethodProps, i as ReferenceNestingContextType, l as SDKExample, m as SDKMethodInfo, n as PropertyModelContextType, o as SDKConstraints, p as SDKMethodHeader, r as ReferenceNestingContext, s as SDKConstraintsProps, t as PropertyModelContext, u as SDKIcon, v as SDKReference, w as usePropertyModel, x as SDKSnippetLanguages, y as SDKRequestTitle } from "../sdk-Zg3Rggk3.js";
8
+ import { a as SnippetContainerProps, c as SnippetRequestContainerProps, i as SnippetContainer, l as SnippetResponse, n as SnippetCode, o as SnippetProps, r as SnippetCodeProps, s as SnippetRequestContainer, t as Snippet } from "../snippets-EUzM4fRO.js";
9
+ import { a as SDKResource, c as SDKRoot, i as SDKOverviewProps, l as SDKRootProps, n as SDKMethodSummaryProps, o as SDKResourceHeader, r as SDKOverview, s as SDKResourceProps, t as SDKMethodSummary } from "../overview-C8e-6jGr.js";
10
+ import { a as SidebarProps, i as SidebarMethodProps, n as SidebarExpander, o as SidebarResource, r as SidebarMethod, s as SidebarResourceProps, t as Sidebar } from "../sidebar-C8KirYjg.js";
11
+ import "../index-YnpUtXLB.js";
12
+ export { Badge, Dropdown, DropdownItem, DropdownMenu, DropdownTrigger, Expander, HTTPMethod, HttpMethodIcons, HttpMethods, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodIconBadge, MethodIconProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Sidebar, SidebarExpander, SidebarMethod, SidebarMethodProps, SidebarProps, SidebarResource, SidebarResourceProps, Snippet, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, usePropertyModel, useReferenceNesting };
@@ -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 { $t as PropertyDescription, At as SDKRequestTitle, Bt as Markdown, Ct as SDKIcon, Dt as SDKMethodInfo, Et as SDKMethodHeader, Ft as Expander, Gt as HttpMethods, Ht as Tooltip, It as Input, Jt as MethodHeader, Kt as Method, Lt as Join, Mt as usePropertyModel, Nt as useReferenceNesting, Ot as SDKModel, Pt as Badge, Qt as Property, Rt as Link, St as SDKExample, Tt as SDKMethod, Ut as VirtualExpander, Vt as ToggleButton, Wt as HttpMethodIcons, Xt as MethodInfo, Yt as MethodIconBadge, Zt as MethodRoute, _t as PropertyModelContext, at as SidebarResource, bt as SDKConstraints, ct as SDKOverview, dt as SDKRoot, en as PropertyToggle, ft as Snippet, gt as SnippetResponse, ht as SnippetRequestContainer, it as SidebarMethod, jt as SDKSnippetLanguages, kt as SDKReference, lt as SDKResource, mt as SnippetContainer, nt as Sidebar, ot as SDKBreadcrumbs, pt as SnippetCode, qt as MethodDescription, rt as SidebarExpander, st as SDKMethodSummary, ut as SDKResourceHeader, vt as ReferenceNestingContext, wt as SDKLanguageBlock, xt as SDKDeclaration, yt as SDKChildren, zt as ListView } from "../contexts-DRxRO-xO.js";
9
+ import "../icons-DdKM-01E.js";
10
+ import "../utils-CJfFBNgT.js";
11
+ import { i as DropdownTrigger, n as DropdownItem, r as DropdownMenu, t as Dropdown } from "../dropdown-DtgAi6lb.js";
12
+ import "../md-Dg8aOyMA.js";
13
+ import "../utils-BHwvUDKn.js";
14
+ import "../types-DFN4M1Sp.js";
15
+
16
+ export { Badge, Dropdown, DropdownItem, DropdownMenu, DropdownTrigger, Expander, HttpMethodIcons, HttpMethods, Input, Join, Link, ListView, Markdown, Method, MethodDescription, MethodHeader, MethodIconBadge, MethodInfo, MethodRoute, Property, PropertyDescription, PropertyModelContext, PropertyToggle, ReferenceNestingContext, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodSummary, SDKModel, SDKOverview, SDKReference, SDKRequestTitle, SDKResource, SDKResourceHeader, SDKRoot, SDKSnippetLanguages, Sidebar, SidebarExpander, SidebarMethod, SidebarResource, Snippet, SnippetCode, SnippetContainer, SnippetRequestContainer, SnippetResponse, ToggleButton, Tooltip, VirtualExpander, usePropertyModel, useReferenceNesting };
@@ -0,0 +1,2 @@
1
+ import { a as MethodDescription, c as MethodHeaderProps, d as MethodInfo, f as MethodInfoProps, h as MethodRouteProps, i as Method, l as MethodIconBadge, m as MethodRoute, n as HttpMethodIcons, o as MethodDescriptionProps, p as MethodProps, r as HttpMethods, s as MethodHeader, t as HTTPMethod, u as MethodIconProps } from "../method-DpsVuzZW.js";
2
+ export { HTTPMethod, HttpMethodIcons, HttpMethods, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodIconBadge, MethodIconProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps };
@@ -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 { Gt as HttpMethods, Jt as MethodHeader, Kt as Method, Wt as HttpMethodIcons, Xt as MethodInfo, Yt as MethodIconBadge, Zt as MethodRoute, qt as MethodDescription } 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 { HttpMethodIcons, HttpMethods, Method, MethodDescription, MethodHeader, MethodIconBadge, MethodInfo, MethodRoute };
@@ -0,0 +1,2 @@
1
+ import { a as SDKResource, c as SDKRoot, i as SDKOverviewProps, l as SDKRootProps, n as SDKMethodSummaryProps, o as SDKResourceHeader, r as SDKOverview, s as SDKResourceProps, t as SDKMethodSummary } from "../overview-C8e-6jGr.js";
2
+ export { SDKMethodSummary, SDKMethodSummaryProps, SDKOverview, SDKOverviewProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps };
@@ -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 { ct as SDKOverview, dt as SDKRoot, lt as SDKResource, st as SDKMethodSummary, ut as SDKResourceHeader } 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 { SDKMethodSummary, SDKOverview, SDKResource, SDKResourceHeader, SDKRoot };
@@ -0,0 +1,2 @@
1
+ import { a as Join, c as ListViewProps, d as ToggleButtonProps, f as Tooltip, i as InputProps, l as Markdown, n as Expander, o as Link, p as VirtualExpander, r as Input, s as ListView, t as Badge, u as ToggleButton } from "../primitives-DWz23_Ub.js";
2
+ export { Badge, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, ToggleButton, ToggleButtonProps, Tooltip, VirtualExpander };
@@ -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 { Bt as Markdown, Ft as Expander, Ht as Tooltip, It as Input, Lt as Join, Pt as Badge, Rt as Link, Ut as VirtualExpander, Vt as ToggleButton, zt as ListView } 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 { Badge, Expander, Input, Join, Link, ListView, Markdown, ToggleButton, Tooltip, VirtualExpander };
@@ -0,0 +1,2 @@
1
+ import { a as PropertyToggle, i as PropertyProps, n as PropertyDescription, o as PropertyToggleProps, r as PropertyDescriptionProps, t as Property } from "../properties-CF71V58d.js";
2
+ export { Property, PropertyDescription, PropertyDescriptionProps, PropertyProps, PropertyToggle, PropertyToggleProps };
@@ -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 { $t as PropertyDescription, Qt as Property, en as PropertyToggle } 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 { Property, PropertyDescription, PropertyToggle };
@@ -0,0 +1,12 @@
1
+ //#region src/components/scripts/dropdown.d.ts
2
+ declare function initDropdown({
3
+ dropdownId,
4
+ onSelect,
5
+ isFixed
6
+ }: {
7
+ dropdownId: string;
8
+ onSelect?: (value: string) => void;
9
+ isFixed?: boolean;
10
+ }): void;
11
+ //#endregion
12
+ export { initDropdown };
@@ -0,0 +1,50 @@
1
+ //#region src/components/scripts/dropdown.ts
2
+ function initDropdown({ dropdownId, onSelect, isFixed }) {
3
+ const dropdown = document.getElementById(dropdownId);
4
+ if (!dropdown) return;
5
+ const button = dropdown.querySelector("button");
6
+ const menu = dropdown.querySelector(".stldocs-dropdown-menu");
7
+ if (!button || !menu) return;
8
+ let isOpen = false;
9
+ function toggleDropdown() {
10
+ if (!button || !menu) return;
11
+ isOpen = !isOpen;
12
+ if (isOpen) {
13
+ if (isFixed) {
14
+ const buttonRect = button.getBoundingClientRect();
15
+ menu.style.top = `${buttonRect.bottom}px`;
16
+ menu.style.left = `${buttonRect.left}px`;
17
+ }
18
+ menu.classList.add("open");
19
+ button.setAttribute("aria-expanded", "true");
20
+ } else {
21
+ menu.classList.remove("open");
22
+ button.setAttribute("aria-expanded", "false");
23
+ }
24
+ }
25
+ function closeDropdown() {
26
+ if (!button || !menu) return;
27
+ isOpen = false;
28
+ menu.classList.remove("open");
29
+ button.setAttribute("aria-expanded", "false");
30
+ }
31
+ button.addEventListener("click", (e) => {
32
+ toggleDropdown();
33
+ });
34
+ document.addEventListener("click", (e) => {
35
+ if (!dropdown.contains(e.target)) closeDropdown();
36
+ });
37
+ document.addEventListener("keydown", (e) => {
38
+ if (e.key === "Escape" && isOpen) closeDropdown();
39
+ });
40
+ menu.querySelectorAll(".stldocs-dropdown-item").forEach((item) => {
41
+ item.addEventListener("click", () => {
42
+ closeDropdown();
43
+ const selectedValue = item.getAttribute("data-dropdown-value");
44
+ if (selectedValue && onSelect) onSelect(selectedValue);
45
+ });
46
+ });
47
+ }
48
+
49
+ //#endregion
50
+ export { initDropdown };
@@ -0,0 +1,3 @@
1
+ import "../routing-qc0V00-j.js";
2
+ import { C as TransformRequestSnippetFn, S as SDKSnippetLanguagesType, T as useReferenceNesting, _ as SDKModelProps, a as SDKChildren, b as SDKRequestTitleProps, c as SDKDeclaration, d as SDKLanguageBlock, f as SDKMethod, g as SDKModel, h as SDKMethodProps, i as ReferenceNestingContextType, l as SDKExample, m as SDKMethodInfo, n as PropertyModelContextType, o as SDKConstraints, p as SDKMethodHeader, r as ReferenceNestingContext, s as SDKConstraintsProps, t as PropertyModelContext, u as SDKIcon, v as SDKReference, w as usePropertyModel, x as SDKSnippetLanguages, y as SDKRequestTitle } from "../sdk-Zg3Rggk3.js";
3
+ export { PropertyModelContext, PropertyModelContextType, ReferenceNestingContext, ReferenceNestingContextType, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodProps, SDKModel, SDKModelProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKSnippetLanguages, SDKSnippetLanguagesType, TransformRequestSnippetFn, usePropertyModel, useReferenceNesting };
@@ -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 { At as SDKRequestTitle, Ct as SDKIcon, Dt as SDKMethodInfo, Et as SDKMethodHeader, Mt as usePropertyModel, Nt as useReferenceNesting, Ot as SDKModel, St as SDKExample, Tt as SDKMethod, _t as PropertyModelContext, bt as SDKConstraints, jt as SDKSnippetLanguages, kt as SDKReference, vt as ReferenceNestingContext, wt as SDKLanguageBlock, xt as SDKDeclaration, yt as SDKChildren } 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 { PropertyModelContext, ReferenceNestingContext, SDKChildren, SDKConstraints, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKModel, SDKReference, SDKRequestTitle, SDKSnippetLanguages, usePropertyModel, useReferenceNesting };
@@ -0,0 +1,2 @@
1
+ import { a as SidebarProps, i as SidebarMethodProps, n as SidebarExpander, o as SidebarResource, r as SidebarMethod, s as SidebarResourceProps, t as Sidebar } from "../sidebar-C8KirYjg.js";
2
+ export { Sidebar, SidebarExpander, SidebarMethod, SidebarMethodProps, SidebarProps, SidebarResource, SidebarResourceProps };
@@ -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 { at as SidebarResource, it as SidebarMethod, nt as Sidebar, rt as SidebarExpander } 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 { Sidebar, SidebarExpander, SidebarMethod, SidebarResource };
@@ -0,0 +1,4 @@
1
+ import "../routing-qc0V00-j.js";
2
+ import "../sdk-Zg3Rggk3.js";
3
+ import { a as SnippetContainerProps, c as SnippetRequestContainerProps, i as SnippetContainer, l as SnippetResponse, n as SnippetCode, o as SnippetProps, r as SnippetCodeProps, s as SnippetRequestContainer, t as Snippet } from "../snippets-EUzM4fRO.js";
4
+ export { Snippet, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse };
@@ -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 { ft as Snippet, gt as SnippetResponse, ht as SnippetRequestContainer, mt as SnippetContainer, pt as SnippetCode } 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 { Snippet, SnippetCode, SnippetContainer, SnippetRequestContainer, SnippetResponse };
@@ -0,0 +1,2 @@
1
+ import { a as useComponents, i as customizeComponents, n as ComponentProvider, r as ComponentsContextType, t as ComponentContext } from "../component-generics-q5Dqiu2D.js";
2
+ export { ComponentContext, ComponentProvider, ComponentsContextType, customizeComponents, useComponents };
@@ -0,0 +1,3 @@
1
+ import { i as useComponents, n as ComponentProvider, r as customizeComponents, t as ComponentContext } from "../component-generics-DzI21jRn.js";
2
+
3
+ export { ComponentContext, ComponentProvider, customizeComponents, useComponents };
@@ -0,0 +1,18 @@
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 { t as index_d_exports } from "../index-YnpUtXLB.js";
12
+ import { r as index_d_exports$1 } from "../index-AicgPYKB.js";
13
+
14
+ //#region src/contexts/component-types.d.ts
15
+ type AppComponents = typeof index_d_exports;
16
+ type AppLanguage = typeof index_d_exports$1;
17
+ //#endregion
18
+ export { AppComponents, AppLanguage };
@@ -0,0 +1 @@
1
+ export { };