@stainless-api/docs-ui 0.1.0-beta.25 → 0.1.0-beta.26

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 (123) hide show
  1. package/dist/breadcrumbs-D5viAm7a.d.ts +20 -0
  2. package/dist/chunk-Bp6m_JJh.js +13 -0
  3. package/dist/component-generics-BnrVqdQj.d.ts +29 -0
  4. package/dist/component-generics-Df4EDvxk.js +41 -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 +128 -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 +30 -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-DO0sMzym.js +2581 -0
  50. package/dist/docs-Cj25B-Sh.js +50 -0
  51. package/dist/docs-DhNaW0DE.d.ts +45 -0
  52. package/dist/dropdown-Dv9VAYCW.d.ts +42 -0
  53. package/dist/dropdown-kUhwBigR.js +38 -0
  54. package/dist/icons--8QR-PrL.js +222 -0
  55. package/dist/index-BW6OPqAo.d.ts +16 -0
  56. package/dist/index-BXO3gZup.d.ts +239 -0
  57. package/dist/index-d8_VR8Z5.d.ts +14 -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 +12 -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-DN8KaRR2.d.ts +21 -0
  80. package/dist/markdown-DunIdqFE.js +39 -0
  81. package/dist/md-Dg8aOyMA.js +41 -0
  82. package/dist/method-c3XDArUn.d.ts +70 -0
  83. package/dist/navigation-BSn6PX-7.d.ts +28 -0
  84. package/dist/navigation-CuCg3le8.js +20 -0
  85. package/dist/overview-D21weqVJ.d.ts +39 -0
  86. package/dist/pagefind-ChrPfuVv.js +15 -0
  87. package/dist/primitives-iB9fIrMF.d.ts +98 -0
  88. package/dist/properties-Ba6F_GGj.d.ts +46 -0
  89. package/dist/routing-BE6Vrs-z.d.ts +54 -0
  90. package/dist/routing-C8oZYLsf.js +189 -0
  91. package/dist/routing.d.ts +2 -0
  92. package/dist/sdk-D2x2l6JH.d.ts +118 -0
  93. package/dist/search/index.d.ts +26 -0
  94. package/dist/search/index.js +211 -0
  95. package/dist/search/providers/algolia.d.ts +24 -0
  96. package/dist/search/providers/algolia.js +16 -0
  97. package/dist/search/providers/fuse.d.ts +18 -0
  98. package/dist/search/providers/fuse.js +31 -0
  99. package/dist/search/providers/pagefind.d.ts +7 -0
  100. package/dist/search/providers/pagefind.js +3 -0
  101. package/dist/search/providers/walker.d.ts +9 -0
  102. package/dist/search/providers/walker.js +35 -0
  103. package/dist/search/types.d.ts +3 -0
  104. package/dist/search/types.js +3 -0
  105. package/dist/search-KMqOU2tz.d.ts +20 -0
  106. package/dist/sidebar-B1X4gmY2.d.ts +35 -0
  107. package/dist/snippets-BApdMOXp.d.ts +45 -0
  108. package/dist/style-BWu-Pqcm.d.ts +182 -0
  109. package/dist/style-CkbsakoF.js +183 -0
  110. package/dist/style.d.ts +2 -0
  111. package/dist/style.js +3 -0
  112. package/dist/types-BLgvxY4i.d.ts +83 -0
  113. package/dist/types-DFN4M1Sp.js +34 -0
  114. package/dist/use-components-DI-AbT-D.js +7 -0
  115. package/dist/utils-B9JL_XWH.d.ts +21 -0
  116. package/dist/utils-BhYTrLot.js +32 -0
  117. package/dist/utils-ByZH9QWT.js +30 -0
  118. package/dist/utils-DlayebL1.d.ts +14 -0
  119. package/dist/utils.d.ts +2 -0
  120. package/dist/utils.js +4 -0
  121. package/package.json +2 -2
  122. package/src/search/mcp.ts +1 -1
  123. package/dist/mcp.js +0 -15967
@@ -0,0 +1,182 @@
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 SearchFilterLabel: "stldocs-search-filter-label";
142
+ readonly SearchFilterCount: "stldocs-search-filter-count";
143
+ readonly SearchBreadcrumb: "stldocs-search-breadcrumb";
144
+ readonly SearchBreadcrumbItem: "stldocs-search-breadcrumb-item";
145
+ readonly SearchBreadcrumbDivider: "stldocs-search-breadcrumb-divider";
146
+ readonly SearchResult: "stldocs-search-result";
147
+ readonly SearchResultResourceInfo: "stldocs-search-result-resource-info";
148
+ readonly SearchResultResourceTitle: "stldocs-search-result-resource-title";
149
+ readonly SearchResultResourcePath: "stldocs-search-result-resource-path";
150
+ readonly SearchResultGuideTitle: "stldocs-search-result-guide-title";
151
+ readonly SearchResultGuideExcerpt: "stldocs-search-result-guide-excerpt";
152
+ readonly Chat: "stldocs-chat";
153
+ readonly ChatHeader: "stldocs-chat-header";
154
+ readonly ChatInput: "stldocs-chat-input";
155
+ readonly ChatInputButtons: "stldocs-chat-input-buttons";
156
+ readonly ChatMessages: "stldocs-chat-messages";
157
+ readonly ChatMessage: "stldocs-chat-message";
158
+ readonly LanguageBlock: "stldocs-language-block";
159
+ readonly LanguageBlockContent: "stldocs-language-block-content";
160
+ readonly LanguageBlockContentIcon: "stldocs-language-block-content-icon";
161
+ readonly LanguageBlockContentInfo: "stldocs-language-block-content-info";
162
+ readonly LanguageBlockContentInfoLanguage: "stldocs-language-block-content-info-language";
163
+ readonly LanguageBlockContentInfoVersion: "stldocs-language-block-content-info-version";
164
+ readonly LanguageBlockLinks: "stldocs-language-block-links";
165
+ readonly LanguageBlockInstall: "stldocs-language-block-install";
166
+ readonly Breadcrumbs: "stldocs-breadcrumbs";
167
+ readonly BreadcrumbsItem: "stldocs-breadcrumbs-item";
168
+ readonly BreadcrumbsLink: "stldocs-breadcrumbs-link";
169
+ readonly BreadcrumbsNonLink: "stldocs-breadcrumbs-non-link";
170
+ readonly Dropdown: "stldocs-dropdown";
171
+ readonly DropdownTrigger: "stldocs-dropdown-trigger";
172
+ readonly DropdownTriggerContent: "stldocs-dropdown-trigger-content";
173
+ readonly DropdownChevron: "stldocs-dropdown-chevron";
174
+ readonly DropdownMenu: "stldocs-dropdown-menu";
175
+ readonly DropdownItem: "stldocs-dropdown-item";
176
+ readonly DropdownItemLink: "stldocs-dropdown-item-link";
177
+ readonly Button: "stldocs-button";
178
+ readonly ButtonSecondary: "stldocs-button-secondary";
179
+ readonly ButtonIcon: "stldocs-button-icon";
180
+ };
181
+ //#endregion
182
+ export { _default as t };
@@ -0,0 +1,183 @@
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
+ SearchFilterLabel: "stldocs-search-filter-label",
142
+ SearchFilterCount: "stldocs-search-filter-count",
143
+ SearchBreadcrumb: "stldocs-search-breadcrumb",
144
+ SearchBreadcrumbItem: "stldocs-search-breadcrumb-item",
145
+ SearchBreadcrumbDivider: "stldocs-search-breadcrumb-divider",
146
+ SearchResult: "stldocs-search-result",
147
+ SearchResultResourceInfo: "stldocs-search-result-resource-info",
148
+ SearchResultResourceTitle: "stldocs-search-result-resource-title",
149
+ SearchResultResourcePath: "stldocs-search-result-resource-path",
150
+ SearchResultGuideTitle: "stldocs-search-result-guide-title",
151
+ SearchResultGuideExcerpt: "stldocs-search-result-guide-excerpt",
152
+ Chat: "stldocs-chat",
153
+ ChatHeader: "stldocs-chat-header",
154
+ ChatInput: "stldocs-chat-input",
155
+ ChatInputButtons: "stldocs-chat-input-buttons",
156
+ ChatMessages: "stldocs-chat-messages",
157
+ ChatMessage: "stldocs-chat-message",
158
+ LanguageBlock: "stldocs-language-block",
159
+ LanguageBlockContent: "stldocs-language-block-content",
160
+ LanguageBlockContentIcon: "stldocs-language-block-content-icon",
161
+ LanguageBlockContentInfo: "stldocs-language-block-content-info",
162
+ LanguageBlockContentInfoLanguage: "stldocs-language-block-content-info-language",
163
+ LanguageBlockContentInfoVersion: "stldocs-language-block-content-info-version",
164
+ LanguageBlockLinks: "stldocs-language-block-links",
165
+ LanguageBlockInstall: "stldocs-language-block-install",
166
+ Breadcrumbs: "stldocs-breadcrumbs",
167
+ BreadcrumbsItem: "stldocs-breadcrumbs-item",
168
+ BreadcrumbsLink: "stldocs-breadcrumbs-link",
169
+ BreadcrumbsNonLink: "stldocs-breadcrumbs-non-link",
170
+ Dropdown: "stldocs-dropdown",
171
+ DropdownTrigger: "stldocs-dropdown-trigger",
172
+ DropdownTriggerContent: "stldocs-dropdown-trigger-content",
173
+ DropdownChevron: "stldocs-dropdown-chevron",
174
+ DropdownMenu: "stldocs-dropdown-menu",
175
+ DropdownItem: "stldocs-dropdown-item",
176
+ DropdownItemLink: "stldocs-dropdown-item-link",
177
+ Button: "stldocs-button",
178
+ ButtonSecondary: "stldocs-button-secondary",
179
+ ButtonIcon: "stldocs-button-icon"
180
+ };
181
+
182
+ //#endregion
183
+ export { style_default as t };
@@ -0,0 +1,2 @@
1
+ import { t as _default } from "./style-BWu-Pqcm.js";
2
+ export { _default as default };
package/dist/style.js ADDED
@@ -0,0 +1,3 @@
1
+ import { t as style_default } from "./style-CkbsakoF.js";
2
+
3
+ export { style_default as default };
@@ -0,0 +1,83 @@
1
+ import { t as DocsLanguage } from "./routing-BE6Vrs-z.js";
2
+ import * as SDKJSON from "@stainless/sdk-json";
3
+
4
+ //#region src/search/types.d.ts
5
+ type SearchSettings = {
6
+ appId: string;
7
+ searchKey: string;
8
+ indexName: string;
9
+ assistant?: string;
10
+ };
11
+ type SearchParams = {
12
+ query: string;
13
+ language?: DocsLanguage | null;
14
+ kind?: QueryKindsType | null;
15
+ };
16
+ declare const QueryKinds: readonly ["all", "resource", "http_method", "model", "property", "guide"];
17
+ type QueryKindsType = (typeof QueryKinds)[number];
18
+ type IndexModel = {
19
+ kind: 'model';
20
+ title: string;
21
+ children?: string[];
22
+ ident?: string;
23
+ };
24
+ type IndexProperty = {
25
+ kind: 'property';
26
+ docstring?: string;
27
+ type?: string;
28
+ };
29
+ type IndexResource = {
30
+ kind: 'resource';
31
+ title: string;
32
+ Name: string;
33
+ QualifiedName: string;
34
+ };
35
+ type IndexMethod = Pick<SDKJSON.Method, 'kind' | 'summary' | 'description' | 'endpoint' | 'httpMethod'> & {
36
+ title: string;
37
+ qualified?: string;
38
+ ident?: string;
39
+ };
40
+ declare const SearchableAttributes: readonly ["name", "title", "ident", "Name", "qualified", "QualifiedName", "endpoint", "summary", "description", "docstring"];
41
+ declare const SearchableAttributesChat: string[];
42
+ type SearchAttributeNames = (typeof SearchableAttributes)[number];
43
+ type RoutableJsonNode = SDKJSON.Method | SDKJSON.Model | SDKJSON.Resource;
44
+ type IndexEntry = Pick<RoutableJsonNode, 'name' | 'stainlessPath'> & (IndexProperty | IndexModel | IndexResource | IndexMethod) & {
45
+ language: DocsLanguage;
46
+ priority: number;
47
+ crumbs: string[];
48
+ };
49
+ type ResultRecordType = IndexEntry & {
50
+ objectID: string;
51
+ _highlightResult: Record<SearchAttributeNames, {
52
+ value: string;
53
+ }>;
54
+ };
55
+ type ResultType = {
56
+ hits: ResultRecordType[];
57
+ facets?: Record<string, Record<string, number>>;
58
+ nbHits: number;
59
+ };
60
+ type GuideResultType = {
61
+ id: string;
62
+ score: number;
63
+ words: number[];
64
+ data: {
65
+ excerpt: string;
66
+ url: string;
67
+ word_count: number;
68
+ meta: {
69
+ title: string;
70
+ };
71
+ sub_results: {
72
+ url: string;
73
+ title: string;
74
+ excerpt: string;
75
+ }[];
76
+ };
77
+ };
78
+ type ResultData = {
79
+ items: Array<ResultRecordType | GuideResultType>;
80
+ counts: Partial<Record<QueryKindsType, number>>;
81
+ };
82
+ //#endregion
83
+ 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-Df4EDvxk.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,21 @@
1
+ import { t as DocsLanguage } from "./routing-BE6Vrs-z.js";
2
+ import { C as TransformRequestSnippetFn } from "./sdk-D2x2l6JH.js";
3
+ import * as SDKJSON from "@stainless/sdk-json";
4
+
5
+ //#region src/markdown/utils.d.ts
6
+ type EnvironmentType = {
7
+ spec: SDKJSON.Spec;
8
+ language: DocsLanguage;
9
+ transforms?: {
10
+ transformRequestSnippet?: TransformRequestSnippetFn;
11
+ };
12
+ options: {
13
+ renderNestedResources?: boolean;
14
+ includeModelProperties?: boolean;
15
+ };
16
+ };
17
+ declare function getDecl(env: EnvironmentType, path: string): SDKJSON.LanguageDeclNodes[SDKJSON.SpecLanguage] | undefined;
18
+ declare function getSnippet(env: EnvironmentType, path: string): string | undefined;
19
+ declare function stripMarkup(content: string): string;
20
+ //#endregion
21
+ export { stripMarkup as i, getDecl as n, getSnippet as r, EnvironmentType as t };
@@ -0,0 +1,32 @@
1
+ import { t as __export } from "./chunk-Bp6m_JJh.js";
2
+ import { f as parseStainlessPath } from "./routing-C8oZYLsf.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 ?? {}).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.slice(1).reduce((acc, cur) => acc?.subresources?.[cur], spec.resources[stainlessPath[0]]) ?? null;
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,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 = "type" in decl && typeof decl["type"] === "object" && "$ref" in decl["type"] ? decl["type"]["$ref"] : null;
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,14 @@
1
+ import * as SDKJSON from "@stainless/sdk-json";
2
+
3
+ //#region src/utils.d.ts
4
+ declare namespace utils_d_exports {
5
+ export { flatResources, getResourceFromSpec, isResourceEmpty };
6
+ }
7
+ declare function flatResources(resources: Record<string, SDKJSON.Resource> | undefined, parents: SDKJSON.Resource[]): {
8
+ resource: SDKJSON.Resource;
9
+ parents: SDKJSON.Resource[];
10
+ }[];
11
+ declare function getResourceFromSpec(stainlessPath: string | string[], spec: SDKJSON.Spec): SDKJSON.Resource | null;
12
+ declare function isResourceEmpty(resource: SDKJSON.Resource): boolean;
13
+ //#endregion
14
+ export { utils_d_exports as i, getResourceFromSpec as n, isResourceEmpty as r, flatResources as t };
@@ -0,0 +1,2 @@
1
+ import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-DlayebL1.js";
2
+ export { flatResources, getResourceFromSpec, isResourceEmpty };
package/dist/utils.js ADDED
@@ -0,0 +1,4 @@
1
+ import "./routing-C8oZYLsf.js";
2
+ import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-BhYTrLot.js";
3
+
4
+ export { flatResources, getResourceFromSpec, isResourceEmpty };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stainless-api/docs-ui",
3
3
  "private": false,
4
- "version": "0.1.0-beta.25",
4
+ "version": "0.1.0-beta.26",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -24,7 +24,7 @@
24
24
  "htmlparser2": "^10.0.0",
25
25
  "lucide-react": "^0.544.0",
26
26
  "natural": "^8.0.1",
27
- "@stainless-api/ui-primitives": "0.1.0-beta.18"
27
+ "@stainless-api/ui-primitives": "0.1.0-beta.19"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "^24.4.0",
package/src/search/mcp.ts CHANGED
@@ -153,4 +153,4 @@ function stemText(text: string): string {
153
153
  return stemmedWords.join(' ');
154
154
  }
155
155
 
156
- export { generateIndex }
156
+ export { generateIndex };