@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,35 @@
1
+ import * as React$1 from "react";
2
+ import * as react_jsx_runtime53 from "react/jsx-runtime";
3
+
4
+ //#region src/components/sidebar.d.ts
5
+ type SidebarExpanderProps = {
6
+ open?: boolean;
7
+ summary: React$1.ReactNode;
8
+ children?: React$1.ReactNode;
9
+ };
10
+ declare function SidebarExpander({
11
+ open,
12
+ summary,
13
+ children
14
+ }: SidebarExpanderProps): react_jsx_runtime53.JSX.Element;
15
+ type SidebarMethodProps = {
16
+ method: SDKJSON.Method;
17
+ };
18
+ declare function SidebarMethod({
19
+ method
20
+ }: SidebarMethodProps): react_jsx_runtime53.JSX.Element;
21
+ type SidebarResourceProps = {
22
+ resource: SDKJSON.Resource;
23
+ };
24
+ declare function SidebarResource({
25
+ resource
26
+ }: SidebarResourceProps): react_jsx_runtime53.JSX.Element;
27
+ type SidebarProps = {
28
+ resources: SDKJSON.Resource[];
29
+ selectedPath?: string;
30
+ };
31
+ declare function Sidebar({
32
+ resources
33
+ }: SidebarProps): react_jsx_runtime53.JSX.Element;
34
+ //#endregion
35
+ export { SidebarProps as a, SidebarMethodProps as i, SidebarExpander as n, SidebarResource as o, SidebarMethod as r, SidebarResourceProps as s, Sidebar as t };
@@ -0,0 +1,45 @@
1
+ import { C as TransformRequestSnippetFn } from "./sdk-Zg3Rggk3.js";
2
+ import * as React$1 from "react";
3
+ import * as react_jsx_runtime16 from "react/jsx-runtime";
4
+
5
+ //#region src/components/snippets.d.ts
6
+ type SnippetCodeProps = {
7
+ content: string;
8
+ signature?: string;
9
+ language?: string;
10
+ };
11
+ declare function SnippetCode({
12
+ content,
13
+ language
14
+ }: SnippetCodeProps): react_jsx_runtime16.JSX.Element;
15
+ type SnippetProps = {
16
+ method: SDKJSON.Method;
17
+ requestTitle?: React$1.ReactNode;
18
+ transformRequestSnippet?: TransformRequestSnippetFn;
19
+ };
20
+ type SnippetContainerProps = {
21
+ children: React$1.ReactNode;
22
+ signature?: string;
23
+ };
24
+ declare function SnippetContainer({
25
+ children
26
+ }: SnippetContainerProps): react_jsx_runtime16.JSX.Element;
27
+ type SnippetRequestContainerProps = {
28
+ children?: React$1.ReactNode;
29
+ signature?: string;
30
+ };
31
+ declare function SnippetRequestContainer({
32
+ children
33
+ }: SnippetRequestContainerProps): react_jsx_runtime16.JSX.Element;
34
+ declare function Snippet({
35
+ requestTitle,
36
+ method,
37
+ transformRequestSnippet
38
+ }: SnippetProps): react_jsx_runtime16.JSX.Element;
39
+ declare function SnippetResponse({
40
+ responses
41
+ }: {
42
+ responses: SDKJSON.Method['exampleResponses'];
43
+ }): react_jsx_runtime16.JSX.Element | null;
44
+ //#endregion
45
+ export { SnippetContainerProps as a, SnippetRequestContainerProps as c, SnippetContainer as i, SnippetResponse as l, SnippetCode as n, SnippetProps as o, SnippetCodeProps as r, SnippetRequestContainer as s, Snippet as t };
@@ -0,0 +1,181 @@
1
+ //#region src/style.d.ts
2
+ declare const _default: {
3
+ readonly TextIdentifier: "stldocs-text-identifier";
4
+ readonly TextOperator: "stldocs-text-operator";
5
+ readonly TextPunctuation: "stldocs-text-punctuation";
6
+ readonly TextKeyword: "stldocs-text-keyword";
7
+ readonly ContentArea: "stldocs-content-area";
8
+ readonly Markdown: "stldocs-markdown";
9
+ readonly Content: "stldocs-content";
10
+ readonly Truncation: "stldocs-truncation";
11
+ readonly Expander: "stldocs-expander";
12
+ readonly ExpanderContent: "stldocs-expander-content";
13
+ readonly ExpanderSummary: "stldocs-expander-summary";
14
+ readonly ExpanderSummaryIcon: "stldocs-expander-summary-icon";
15
+ readonly ExpanderSummaryContent: "stldocs-expander-summary-content";
16
+ readonly ExpanderIndent: "stldocs-expander-indent";
17
+ readonly Badge: "stldocs-badge";
18
+ readonly Icon: "stldocs-icon";
19
+ readonly Tooltip: "stldocs-tooltip";
20
+ readonly TooltipHost: "stldocs-tooltip-host";
21
+ readonly TooltipContent: "stldocs-tooltip-content";
22
+ readonly Input: "stldocs-input";
23
+ readonly InputTextField: "stldocs-input-textfield";
24
+ readonly ToggleButton: "stldocs-togglebutton";
25
+ readonly ListView: "stldocs-listview";
26
+ readonly ListViewItem: "stldocs-listview-item";
27
+ readonly ExpandToggle: "stldocs-expand-toggle";
28
+ readonly ExpandToggleContent: "stldocs-expand-toggle-content";
29
+ readonly LoadingSpinner: "stldocs-loading-spinner";
30
+ readonly Type: "stldocs-type";
31
+ readonly TypeName: "stldocs-typename";
32
+ readonly TypeKeyword: "stldocs-type-keyword";
33
+ readonly TypeString: "stldocs-type-string";
34
+ readonly TypeArray: "stldocs-type-array";
35
+ readonly TypeReference: "stldocs-type-reference";
36
+ readonly TypeBracket: "stldocs-type-bracket";
37
+ readonly TypeBrace: "stldocs-type-brace";
38
+ readonly TypePropertyName: "stldocs-type-propertyname";
39
+ readonly TypePlain: "stldocs-type-plain";
40
+ readonly TypePreview: "stldocs-type-preview";
41
+ readonly TypePreviewContent: "stldocs-type-preview-content";
42
+ readonly LiteralString: "stldocs-literal-string";
43
+ readonly LiteralNumeric: "stldocs-literal-numeric";
44
+ readonly LiteralBoolean: "stldocs-literal-boolean";
45
+ readonly Snippet: "stldocs-snippet";
46
+ readonly SnippetCode: "stldocs-snippet-code";
47
+ readonly SnippetCodeContent: "stldocs-snippet-code-content";
48
+ readonly SnippetRequest: "stldocs-snippet-request";
49
+ readonly SnippetRequestTitle: "stldocs-snippet-request-title";
50
+ readonly SnippetRequestTitleContent: "stldocs-snippet-request-title-content";
51
+ readonly SnippetRequestTitleLabel: "stldocs-snippet-request-title-label";
52
+ readonly SnippetRequestTitleLanguage: "stldocs-snippet-request-title-language";
53
+ readonly SnippetRequestTitleMethod: "stldocs-snippet-request-title-method";
54
+ readonly SnippetResponse: "stldocs-snippet-response";
55
+ readonly SnippetMultiResponse: "stldocs-snippet-multi-response";
56
+ readonly SnippetResponseTitle: "stldocs-snippet-response-title";
57
+ readonly SnippetResponseClosed: "stldocs-snippet-response-closed";
58
+ readonly SnippetResponseOpen: "stldocs-snippet-response-opened";
59
+ readonly SnippetResponseTab: "stldocs-snippet-response-tab";
60
+ readonly SnippetResponseTabItem: "stldocs-snippet-response-tab-item";
61
+ readonly SnippetResponseTabItemActive: "stldocs-snippet-response-tab-item-active";
62
+ readonly SnippetResponseTabSingleReturn: "stldocs-snippet-response-tab-single-return";
63
+ readonly SnippetResponsePane: "stldocs-snippet-response-pane";
64
+ readonly SnippetResponsePaneActive: "stldocs-snippet-response-pane-active";
65
+ readonly Method: "stldocs-method";
66
+ readonly MethodHeader: "stldocs-method-header";
67
+ readonly MethodBody: "stldocs-method-body";
68
+ readonly MethodInfo: "stldocs-method-info";
69
+ readonly MethodInfoSection: "stldocs-method-info-section";
70
+ readonly MethodExample: "stldocs-method-example";
71
+ readonly MethodResponseColumn: "stldocs-method-response-column";
72
+ readonly MethodTitle: "stldocs-method-title";
73
+ readonly MethodBadges: "stldocs-method-badges";
74
+ readonly MethodSignature: "stldocs-method-signature";
75
+ readonly MethodDescription: "stldocs-method-description";
76
+ readonly MethodParameters: "stldocs-method-parameters";
77
+ readonly MethodReturns: "stldocs-method-returns";
78
+ readonly MethodContent: "stldocs-method-content";
79
+ readonly MethodContentColumn: "stldocs-method-content-column";
80
+ readonly MethodRouteHttpMethod: "stldocs-method-route-httpmethod";
81
+ readonly MethodRouteHttpMethodIconOnly: "stldocs-method-route-httpmethod-icon-only";
82
+ readonly MethodRouteEndpoint: "stldocs-method-route-endpoint";
83
+ readonly MethodRoute: "stldocs-method-route";
84
+ readonly MethodSummary: "stldocs-method-summary";
85
+ readonly MethodSinglePane: "stldocs-method-single-pane";
86
+ readonly MethodDoublePane: "stldocs-method-double-pane";
87
+ readonly SignatureTitle: "stldocs-signature-title";
88
+ readonly SignatureName: "stldocs-signature-name";
89
+ readonly SignatureQualified: "stldocs-signature-qualified";
90
+ readonly SignatureParams: "stldoc-signature-params";
91
+ readonly SignatureParen: "stldocs-signature-paren";
92
+ readonly SignatureReturns: "stldocs-signature-returns";
93
+ readonly Property: "stldocs-property";
94
+ readonly Properties: "stldocs-properties";
95
+ readonly PropertyHeader: "stldocs-property-header";
96
+ readonly PropertyInfo: "stldocs-property-info";
97
+ readonly PropertyDeclaration: "stldocs-property-declaration";
98
+ readonly PropertyDeprecated: "stldocs-property-deprecated";
99
+ readonly PropertyDeprecatedMessage: "stldocs-property-deprecated-message";
100
+ readonly PropertyContent: "stldocs-property-content";
101
+ readonly PropertyChildren: "stldocs-property-children";
102
+ readonly PropertyConstraints: "stldocs-property-constraints";
103
+ readonly PropertyConstraint: "stldocs-property-constraint";
104
+ readonly PropertyConstraintName: "stldocs-property-constraint-name";
105
+ readonly PropertyConstraintValue: "stldocs-property-constraint-value";
106
+ readonly PropertyDefault: "stldocs-property-default";
107
+ readonly PropertyDescription: "stldocs-property-description";
108
+ readonly PropertyAnnotation: "stldocs-property-annotation";
109
+ readonly PropertyName: "stldocs-property-name";
110
+ readonly PropertyBadges: "stldocs-property-badges";
111
+ readonly PropertyTypeName: "stldocs-property-typename";
112
+ readonly PropertyType: "stldocs-property-type";
113
+ readonly Overview: "stldocs-overview";
114
+ readonly OverviewHeader: "stldocs-overview-header";
115
+ readonly OverviewHeaderInfo: "stldocs-overview-header-info";
116
+ readonly OverviewHeaderInfoTimestamp: "stldocs-overview-header-info-timestamp";
117
+ readonly Resource: "stldocs-resource";
118
+ readonly ResourceContent: "stldocs-resource-content";
119
+ readonly ResourceContentProperties: "stldocs-resource-content-properties";
120
+ readonly ResourceContentGroup: "stldocs-resource-content-group";
121
+ readonly ResourceContentGroupName: "stldocs-resource-content-group-name";
122
+ readonly ResourceContentGroupModelTitle: "stldocs-resource-content-group-model-title";
123
+ readonly ResourceHeader: "stldocs-resource-header";
124
+ readonly ResourceTitle: "stldocs-resource-title";
125
+ readonly ResourceTitleSegment: "stldocs-resource-title-segment";
126
+ readonly ResourceDescription: "stldocs-resource-description";
127
+ readonly ResourceName: "stldocs-resource-name";
128
+ readonly Model: "stldocs-model";
129
+ readonly Root: "stldocs-root";
130
+ readonly Sidebar: "stldocs-sidebar";
131
+ readonly SidebarResource: "stldocs-sidebar-resource";
132
+ readonly SidebarResourceTitle: "stldocs-sidebar-resource-title";
133
+ readonly SidebarMethod: "stldocs-sidebar-method";
134
+ readonly SidebarItemTitle: "stldocs-sidebar-resource-title";
135
+ readonly SidebarExpander: "stldocs-sidebar-expander";
136
+ readonly SidebarExpanderSummary: "stldocs-sidebar-expander-summary";
137
+ readonly SidebarExpanderContent: "stldocs-sidebar-expander-content";
138
+ readonly SearchForm: "stldocs-search-form";
139
+ readonly SearchModal: "stldocs-search-modal";
140
+ readonly SearchFilter: "stldocs-search-filter";
141
+ readonly SearchFilterCount: "stldocs-search-filter-count";
142
+ readonly SearchBreadcrumb: "stldocs-search-breadcrumb";
143
+ readonly SearchBreadcrumbItem: "stldocs-search-breadcrumb-item";
144
+ readonly SearchBreadcrumbDivider: "stldocs-search-breadcrumb-divider";
145
+ readonly SearchResult: "stldocs-search-result";
146
+ readonly SearchResultResourceInfo: "stldocs-search-result-resource-info";
147
+ readonly SearchResultResourceTitle: "stldocs-search-result-resource-title";
148
+ readonly SearchResultResourcePath: "stldocs-search-result-resource-path";
149
+ readonly SearchResultGuideTitle: "stldocs-search-result-guide-title";
150
+ readonly SearchResultGuideExcerpt: "stldocs-search-result-guide-excerpt";
151
+ readonly Chat: "stldocs-chat";
152
+ readonly ChatHeader: "stldocs-chat-header";
153
+ readonly ChatInput: "stldocs-chat-input";
154
+ readonly ChatInputButtons: "stldocs-chat-input-buttons";
155
+ readonly ChatMessages: "stldocs-chat-messages";
156
+ readonly ChatMessage: "stldocs-chat-message";
157
+ readonly LanguageBlock: "stldocs-language-block";
158
+ readonly LanguageBlockContent: "stldocs-language-block-content";
159
+ readonly LanguageBlockContentIcon: "stldocs-language-block-content-icon";
160
+ readonly LanguageBlockContentInfo: "stldocs-language-block-content-info";
161
+ readonly LanguageBlockContentInfoLanguage: "stldocs-language-block-content-info-language";
162
+ readonly LanguageBlockContentInfoVersion: "stldocs-language-block-content-info-version";
163
+ readonly LanguageBlockLinks: "stldocs-language-block-links";
164
+ readonly LanguageBlockInstall: "stldocs-language-block-install";
165
+ readonly Breadcrumbs: "stldocs-breadcrumbs";
166
+ readonly BreadcrumbsItem: "stldocs-breadcrumbs-item";
167
+ readonly BreadcrumbsLink: "stldocs-breadcrumbs-link";
168
+ readonly BreadcrumbsNonLink: "stldocs-breadcrumbs-non-link";
169
+ readonly Dropdown: "stldocs-dropdown";
170
+ readonly DropdownTrigger: "stldocs-dropdown-trigger";
171
+ readonly DropdownTriggerContent: "stldocs-dropdown-trigger-content";
172
+ readonly DropdownChevron: "stldocs-dropdown-chevron";
173
+ readonly DropdownMenu: "stldocs-dropdown-menu";
174
+ readonly DropdownItem: "stldocs-dropdown-item";
175
+ readonly DropdownItemLink: "stldocs-dropdown-item-link";
176
+ readonly Button: "stldocs-button";
177
+ readonly ButtonSecondary: "stldocs-button-secondary";
178
+ readonly ButtonIcon: "stldocs-button-icon";
179
+ };
180
+ //#endregion
181
+ export { _default as t };
@@ -0,0 +1,182 @@
1
+ //#region src/style.ts
2
+ var style_default = {
3
+ TextIdentifier: "stldocs-text-identifier",
4
+ TextOperator: "stldocs-text-operator",
5
+ TextPunctuation: "stldocs-text-punctuation",
6
+ TextKeyword: "stldocs-text-keyword",
7
+ ContentArea: "stldocs-content-area",
8
+ Markdown: "stldocs-markdown",
9
+ Content: "stldocs-content",
10
+ Truncation: "stldocs-truncation",
11
+ Expander: "stldocs-expander",
12
+ ExpanderContent: "stldocs-expander-content",
13
+ ExpanderSummary: "stldocs-expander-summary",
14
+ ExpanderSummaryIcon: "stldocs-expander-summary-icon",
15
+ ExpanderSummaryContent: "stldocs-expander-summary-content",
16
+ ExpanderIndent: "stldocs-expander-indent",
17
+ Badge: "stldocs-badge",
18
+ Icon: "stldocs-icon",
19
+ Tooltip: "stldocs-tooltip",
20
+ TooltipHost: "stldocs-tooltip-host",
21
+ TooltipContent: "stldocs-tooltip-content",
22
+ Input: "stldocs-input",
23
+ InputTextField: "stldocs-input-textfield",
24
+ ToggleButton: "stldocs-togglebutton",
25
+ ListView: "stldocs-listview",
26
+ ListViewItem: "stldocs-listview-item",
27
+ ExpandToggle: "stldocs-expand-toggle",
28
+ ExpandToggleContent: "stldocs-expand-toggle-content",
29
+ LoadingSpinner: "stldocs-loading-spinner",
30
+ Type: "stldocs-type",
31
+ TypeName: "stldocs-typename",
32
+ TypeKeyword: "stldocs-type-keyword",
33
+ TypeString: "stldocs-type-string",
34
+ TypeArray: "stldocs-type-array",
35
+ TypeReference: "stldocs-type-reference",
36
+ TypeBracket: "stldocs-type-bracket",
37
+ TypeBrace: "stldocs-type-brace",
38
+ TypePropertyName: "stldocs-type-propertyname",
39
+ TypePlain: "stldocs-type-plain",
40
+ TypePreview: "stldocs-type-preview",
41
+ TypePreviewContent: "stldocs-type-preview-content",
42
+ LiteralString: "stldocs-literal-string",
43
+ LiteralNumeric: "stldocs-literal-numeric",
44
+ LiteralBoolean: "stldocs-literal-boolean",
45
+ Snippet: "stldocs-snippet",
46
+ SnippetCode: "stldocs-snippet-code",
47
+ SnippetCodeContent: "stldocs-snippet-code-content",
48
+ SnippetRequest: "stldocs-snippet-request",
49
+ SnippetRequestTitle: "stldocs-snippet-request-title",
50
+ SnippetRequestTitleContent: "stldocs-snippet-request-title-content",
51
+ SnippetRequestTitleLabel: "stldocs-snippet-request-title-label",
52
+ SnippetRequestTitleLanguage: "stldocs-snippet-request-title-language",
53
+ SnippetRequestTitleMethod: "stldocs-snippet-request-title-method",
54
+ SnippetResponse: "stldocs-snippet-response",
55
+ SnippetMultiResponse: "stldocs-snippet-multi-response",
56
+ SnippetResponseTitle: "stldocs-snippet-response-title",
57
+ SnippetResponseClosed: "stldocs-snippet-response-closed",
58
+ SnippetResponseOpen: "stldocs-snippet-response-opened",
59
+ SnippetResponseTab: "stldocs-snippet-response-tab",
60
+ SnippetResponseTabItem: "stldocs-snippet-response-tab-item",
61
+ SnippetResponseTabItemActive: "stldocs-snippet-response-tab-item-active",
62
+ SnippetResponseTabSingleReturn: "stldocs-snippet-response-tab-single-return",
63
+ SnippetResponsePane: "stldocs-snippet-response-pane",
64
+ SnippetResponsePaneActive: "stldocs-snippet-response-pane-active",
65
+ Method: "stldocs-method",
66
+ MethodHeader: "stldocs-method-header",
67
+ MethodBody: "stldocs-method-body",
68
+ MethodInfo: "stldocs-method-info",
69
+ MethodInfoSection: "stldocs-method-info-section",
70
+ MethodExample: "stldocs-method-example",
71
+ MethodResponseColumn: "stldocs-method-response-column",
72
+ MethodTitle: "stldocs-method-title",
73
+ MethodBadges: "stldocs-method-badges",
74
+ MethodSignature: "stldocs-method-signature",
75
+ MethodDescription: "stldocs-method-description",
76
+ MethodParameters: "stldocs-method-parameters",
77
+ MethodReturns: "stldocs-method-returns",
78
+ MethodContent: "stldocs-method-content",
79
+ MethodContentColumn: "stldocs-method-content-column",
80
+ MethodRouteHttpMethod: "stldocs-method-route-httpmethod",
81
+ MethodRouteHttpMethodIconOnly: "stldocs-method-route-httpmethod-icon-only",
82
+ MethodRouteEndpoint: "stldocs-method-route-endpoint",
83
+ MethodRoute: "stldocs-method-route",
84
+ MethodSummary: "stldocs-method-summary",
85
+ MethodSinglePane: "stldocs-method-single-pane",
86
+ MethodDoublePane: "stldocs-method-double-pane",
87
+ SignatureTitle: "stldocs-signature-title",
88
+ SignatureName: "stldocs-signature-name",
89
+ SignatureQualified: "stldocs-signature-qualified",
90
+ SignatureParams: "stldoc-signature-params",
91
+ SignatureParen: "stldocs-signature-paren",
92
+ SignatureReturns: "stldocs-signature-returns",
93
+ Property: "stldocs-property",
94
+ Properties: "stldocs-properties",
95
+ PropertyHeader: "stldocs-property-header",
96
+ PropertyInfo: "stldocs-property-info",
97
+ PropertyDeclaration: "stldocs-property-declaration",
98
+ PropertyDeprecated: "stldocs-property-deprecated",
99
+ PropertyDeprecatedMessage: "stldocs-property-deprecated-message",
100
+ PropertyContent: "stldocs-property-content",
101
+ PropertyChildren: "stldocs-property-children",
102
+ PropertyConstraints: "stldocs-property-constraints",
103
+ PropertyConstraint: "stldocs-property-constraint",
104
+ PropertyConstraintName: "stldocs-property-constraint-name",
105
+ PropertyConstraintValue: "stldocs-property-constraint-value",
106
+ PropertyDefault: "stldocs-property-default",
107
+ PropertyDescription: "stldocs-property-description",
108
+ PropertyAnnotation: "stldocs-property-annotation",
109
+ PropertyName: "stldocs-property-name",
110
+ PropertyBadges: "stldocs-property-badges",
111
+ PropertyTypeName: "stldocs-property-typename",
112
+ PropertyType: "stldocs-property-type",
113
+ Overview: "stldocs-overview",
114
+ OverviewHeader: "stldocs-overview-header",
115
+ OverviewHeaderInfo: "stldocs-overview-header-info",
116
+ OverviewHeaderInfoTimestamp: "stldocs-overview-header-info-timestamp",
117
+ Resource: "stldocs-resource",
118
+ ResourceContent: "stldocs-resource-content",
119
+ ResourceContentProperties: "stldocs-resource-content-properties",
120
+ ResourceContentGroup: "stldocs-resource-content-group",
121
+ ResourceContentGroupName: "stldocs-resource-content-group-name",
122
+ ResourceContentGroupModelTitle: "stldocs-resource-content-group-model-title",
123
+ ResourceHeader: "stldocs-resource-header",
124
+ ResourceTitle: "stldocs-resource-title",
125
+ ResourceTitleSegment: "stldocs-resource-title-segment",
126
+ ResourceDescription: "stldocs-resource-description",
127
+ ResourceName: "stldocs-resource-name",
128
+ Model: "stldocs-model",
129
+ Root: "stldocs-root",
130
+ Sidebar: "stldocs-sidebar",
131
+ SidebarResource: "stldocs-sidebar-resource",
132
+ SidebarResourceTitle: "stldocs-sidebar-resource-title",
133
+ SidebarMethod: "stldocs-sidebar-method",
134
+ SidebarItemTitle: "stldocs-sidebar-resource-title",
135
+ SidebarExpander: "stldocs-sidebar-expander",
136
+ SidebarExpanderSummary: "stldocs-sidebar-expander-summary",
137
+ SidebarExpanderContent: "stldocs-sidebar-expander-content",
138
+ SearchForm: "stldocs-search-form",
139
+ SearchModal: "stldocs-search-modal",
140
+ SearchFilter: "stldocs-search-filter",
141
+ SearchFilterCount: "stldocs-search-filter-count",
142
+ SearchBreadcrumb: "stldocs-search-breadcrumb",
143
+ SearchBreadcrumbItem: "stldocs-search-breadcrumb-item",
144
+ SearchBreadcrumbDivider: "stldocs-search-breadcrumb-divider",
145
+ SearchResult: "stldocs-search-result",
146
+ SearchResultResourceInfo: "stldocs-search-result-resource-info",
147
+ SearchResultResourceTitle: "stldocs-search-result-resource-title",
148
+ SearchResultResourcePath: "stldocs-search-result-resource-path",
149
+ SearchResultGuideTitle: "stldocs-search-result-guide-title",
150
+ SearchResultGuideExcerpt: "stldocs-search-result-guide-excerpt",
151
+ Chat: "stldocs-chat",
152
+ ChatHeader: "stldocs-chat-header",
153
+ ChatInput: "stldocs-chat-input",
154
+ ChatInputButtons: "stldocs-chat-input-buttons",
155
+ ChatMessages: "stldocs-chat-messages",
156
+ ChatMessage: "stldocs-chat-message",
157
+ LanguageBlock: "stldocs-language-block",
158
+ LanguageBlockContent: "stldocs-language-block-content",
159
+ LanguageBlockContentIcon: "stldocs-language-block-content-icon",
160
+ LanguageBlockContentInfo: "stldocs-language-block-content-info",
161
+ LanguageBlockContentInfoLanguage: "stldocs-language-block-content-info-language",
162
+ LanguageBlockContentInfoVersion: "stldocs-language-block-content-info-version",
163
+ LanguageBlockLinks: "stldocs-language-block-links",
164
+ LanguageBlockInstall: "stldocs-language-block-install",
165
+ Breadcrumbs: "stldocs-breadcrumbs",
166
+ BreadcrumbsItem: "stldocs-breadcrumbs-item",
167
+ BreadcrumbsLink: "stldocs-breadcrumbs-link",
168
+ BreadcrumbsNonLink: "stldocs-breadcrumbs-non-link",
169
+ Dropdown: "stldocs-dropdown",
170
+ DropdownTrigger: "stldocs-dropdown-trigger",
171
+ DropdownTriggerContent: "stldocs-dropdown-trigger-content",
172
+ DropdownChevron: "stldocs-dropdown-chevron",
173
+ DropdownMenu: "stldocs-dropdown-menu",
174
+ DropdownItem: "stldocs-dropdown-item",
175
+ DropdownItemLink: "stldocs-dropdown-item-link",
176
+ Button: "stldocs-button",
177
+ ButtonSecondary: "stldocs-button-secondary",
178
+ ButtonIcon: "stldocs-button-icon"
179
+ };
180
+
181
+ //#endregion
182
+ export { style_default as t };
@@ -0,0 +1,2 @@
1
+ import { t as _default } from "./style-pN9hCoec.js";
2
+ export { _default as default };
package/dist/style.js ADDED
@@ -0,0 +1,3 @@
1
+ import { t as style_default } from "./style-rYbbxIR_.js";
2
+
3
+ export { style_default as default };
@@ -0,0 +1,82 @@
1
+ import { t as DocsLanguage } from "./routing-qc0V00-j.js";
2
+
3
+ //#region src/search/types.d.ts
4
+ type SearchSettings = {
5
+ appId: string;
6
+ searchKey: string;
7
+ indexName: string;
8
+ assistant?: string;
9
+ };
10
+ type SearchParams = {
11
+ query: string;
12
+ language?: DocsLanguage | null;
13
+ kind?: QueryKindsType | null;
14
+ };
15
+ declare const QueryKinds: readonly ["all", "resource", "http_method", "model", "property", "guide"];
16
+ type QueryKindsType = (typeof QueryKinds)[number];
17
+ type IndexModel = {
18
+ kind: 'model';
19
+ title: string;
20
+ children?: string[];
21
+ ident?: string;
22
+ };
23
+ type IndexProperty = {
24
+ kind: 'property';
25
+ docstring?: string;
26
+ type?: string;
27
+ };
28
+ type IndexResource = {
29
+ kind: 'resource';
30
+ title: string;
31
+ Name: string;
32
+ QualifiedName: string;
33
+ };
34
+ type IndexMethod = Pick<SDKJSON.Method, 'kind' | 'summary' | 'description' | 'endpoint' | 'httpMethod'> & {
35
+ title: string;
36
+ qualified?: string;
37
+ ident?: string;
38
+ };
39
+ declare const SearchableAttributes: string[];
40
+ declare const SearchableAttributesChat: string[];
41
+ type SearchAttributeNames = (typeof SearchableAttributes)[number];
42
+ type RoutableJsonNode = SDKJSON.Method | SDKJSON.Model | SDKJSON.Resource;
43
+ type IndexEntry = Pick<RoutableJsonNode, 'name' | 'stainlessPath'> & (IndexProperty | IndexModel | IndexResource | IndexMethod) & {
44
+ language: DocsLanguage;
45
+ priority: number;
46
+ crumbs: string[];
47
+ };
48
+ type ResultRecordType = IndexEntry & {
49
+ objectID: string;
50
+ _highlightResult: Record<SearchAttributeNames, {
51
+ value: string;
52
+ }>;
53
+ };
54
+ type ResultType = {
55
+ hits: ResultRecordType[];
56
+ facets?: Record<string, Record<string, number>>;
57
+ nbHits: number;
58
+ };
59
+ type GuideResultType = {
60
+ id: string;
61
+ score: number;
62
+ words: number[];
63
+ data: {
64
+ excerpt: string;
65
+ url: string;
66
+ word_count: number;
67
+ meta: {
68
+ title: string;
69
+ };
70
+ sub_results: {
71
+ url: string;
72
+ title: string;
73
+ excerpt: string;
74
+ }[];
75
+ };
76
+ };
77
+ type ResultData = {
78
+ items: Array<ResultRecordType | GuideResultType>;
79
+ counts: Partial<Record<QueryKindsType, number>>;
80
+ };
81
+ //#endregion
82
+ export { SearchableAttributesChat as _, IndexProperty as a, QueryKindsType as c, ResultType as d, RoutableJsonNode as f, SearchableAttributes as g, SearchSettings as h, IndexModel as i, ResultData as l, SearchParams as m, IndexEntry as n, IndexResource as o, SearchAttributeNames as p, IndexMethod as r, QueryKinds as s, GuideResultType as t, ResultRecordType as u };
@@ -0,0 +1,34 @@
1
+ //#region src/search/types.ts
2
+ const QueryKinds = [
3
+ "all",
4
+ "resource",
5
+ "http_method",
6
+ "model",
7
+ "property",
8
+ "guide"
9
+ ];
10
+ const SearchableAttributes = [
11
+ "name",
12
+ "title",
13
+ "ident",
14
+ "Name",
15
+ "qualified",
16
+ "QualifiedName",
17
+ "endpoint",
18
+ "summary",
19
+ "description",
20
+ "docstring"
21
+ ];
22
+ const SearchableAttributesChat = [
23
+ "title",
24
+ "name",
25
+ "endpoint",
26
+ "summary",
27
+ "description",
28
+ "qualified",
29
+ "ident",
30
+ "content"
31
+ ];
32
+
33
+ //#endregion
34
+ export { SearchableAttributes as n, SearchableAttributesChat as r, QueryKinds as t };
@@ -0,0 +1,7 @@
1
+ import { i as useComponents } from "./component-generics-DzI21jRn.js";
2
+
3
+ //#region src/contexts/use-components.tsx
4
+ const useComponents$1 = () => useComponents();
5
+
6
+ //#endregion
7
+ export { useComponents$1 as t };
@@ -0,0 +1,30 @@
1
+ import { Parser } from "htmlparser2";
2
+
3
+ //#region src/markdown/utils.ts
4
+ function getDecl(env, path) {
5
+ const decl = env.spec?.decls?.[env.language]?.[path];
6
+ if (decl?.kind?.endsWith("Reference")) {
7
+ const refId = decl["type"]["$ref"];
8
+ if (refId === path) return decl;
9
+ if (refId) return getDecl(env, refId);
10
+ }
11
+ return decl;
12
+ }
13
+ function getSnippet(env, path) {
14
+ let snippet = env.spec?.snippets?.[`${env.language}.default`]?.[path];
15
+ if (typeof snippet === "string" && env.transforms?.transformRequestSnippet) snippet = env.transforms.transformRequestSnippet({
16
+ snippet,
17
+ language: env.language
18
+ });
19
+ return snippet;
20
+ }
21
+ function stripMarkup(content) {
22
+ let output = "";
23
+ new Parser({ ontext(content$1) {
24
+ output += content$1;
25
+ } }).parseComplete(content);
26
+ return output;
27
+ }
28
+
29
+ //#endregion
30
+ export { getSnippet as n, stripMarkup as r, getDecl as t };
@@ -0,0 +1,32 @@
1
+ import { t as __export } from "./chunk-Bp6m_JJh.js";
2
+ import { f as parseStainlessPath } from "./routing-DQjbRxdJ.js";
3
+
4
+ //#region src/utils.ts
5
+ var utils_exports = /* @__PURE__ */ __export({
6
+ flatResources: () => flatResources,
7
+ getResourceFromSpec: () => getResourceFromSpec,
8
+ isResourceEmpty: () => isResourceEmpty
9
+ });
10
+ function flatResources(resources, parents) {
11
+ return Object.keys(resources).toSorted().flatMap((key) => {
12
+ const resource = resources[key];
13
+ return [{
14
+ resource,
15
+ parents
16
+ }, ...resource.subresources ? flatResources(resource.subresources, [...parents, resource]) : []];
17
+ });
18
+ }
19
+ function getResourceFromSpec(stainlessPath, spec) {
20
+ if (typeof stainlessPath === "string") {
21
+ const parsed = parseStainlessPath(stainlessPath);
22
+ if (!parsed?.resource) return null;
23
+ stainlessPath = parsed.resource;
24
+ }
25
+ return stainlessPath.reduce((accum, cur, index) => index === 0 ? accum?.[cur] : accum?.subresources?.[cur], spec.resources);
26
+ }
27
+ function isResourceEmpty(resource) {
28
+ return !(Object.values(resource.methods).length > 0 || Object.values(resource.models).length > 0 || Object.values(resource.subresources).length > 0);
29
+ }
30
+
31
+ //#endregion
32
+ export { utils_exports as i, getResourceFromSpec as n, isResourceEmpty as r, flatResources as t };
@@ -0,0 +1,20 @@
1
+ import { t as DocsLanguage } from "./routing-qc0V00-j.js";
2
+ import { C as TransformRequestSnippetFn } from "./sdk-Zg3Rggk3.js";
3
+
4
+ //#region src/markdown/utils.d.ts
5
+ type EnvironmentType = {
6
+ spec: SDKJSON.Spec;
7
+ language: DocsLanguage;
8
+ transforms?: {
9
+ transformRequestSnippet?: TransformRequestSnippetFn;
10
+ };
11
+ options: {
12
+ renderNestedResources?: boolean;
13
+ includeModelProperties?: boolean;
14
+ };
15
+ };
16
+ declare function getDecl(env: EnvironmentType, path: string): any;
17
+ declare function getSnippet(env: EnvironmentType, path: string): any;
18
+ declare function stripMarkup(content: string): string;
19
+ //#endregion
20
+ export { stripMarkup as i, getDecl as n, getSnippet as r, EnvironmentType as t };