@apiboost/omnispec 1.0.0

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 (347) hide show
  1. package/LICENSE.md +202 -0
  2. package/README.md +166 -0
  3. package/core/package.json +5 -0
  4. package/dist/cjs/asyncapi/index.js +17 -0
  5. package/dist/cjs/asyncapi/index.js.map +1 -0
  6. package/dist/cjs/chunks/AsyncApiSpec-TBlyRxTP.js +819 -0
  7. package/dist/cjs/chunks/AsyncApiSpec-TBlyRxTP.js.map +1 -0
  8. package/dist/cjs/chunks/Collapsible-BHAHk_Ep.js +7527 -0
  9. package/dist/cjs/chunks/Collapsible-BHAHk_Ep.js.map +1 -0
  10. package/dist/cjs/chunks/ErrorBoundary-c1piU8da.js +36 -0
  11. package/dist/cjs/chunks/ErrorBoundary-c1piU8da.js.map +1 -0
  12. package/dist/cjs/chunks/OmniSpecRenderer-CE4wxVTL.js +104 -0
  13. package/dist/cjs/chunks/OmniSpecRenderer-CE4wxVTL.js.map +1 -0
  14. package/dist/cjs/chunks/OpenApiSpec-D0JtmOVQ.js +3157 -0
  15. package/dist/cjs/chunks/OpenApiSpec-D0JtmOVQ.js.map +1 -0
  16. package/dist/cjs/chunks/OpenIdConnectManual-oEnN0QJ-.js +2416 -0
  17. package/dist/cjs/chunks/OpenIdConnectManual-oEnN0QJ-.js.map +1 -0
  18. package/dist/cjs/chunks/RendererRegistry-DQ7JBLMT.js +24 -0
  19. package/dist/cjs/chunks/RendererRegistry-DQ7JBLMT.js.map +1 -0
  20. package/dist/cjs/chunks/binary-response-CSrPCI-1.js +77 -0
  21. package/dist/cjs/chunks/binary-response-CSrPCI-1.js.map +1 -0
  22. package/dist/cjs/chunks/ref-resolver-DWu6Q6E5.js +7108 -0
  23. package/dist/cjs/chunks/ref-resolver-DWu6Q6E5.js.map +1 -0
  24. package/dist/cjs/chunks/ssrf-guard-B6T2A7Ho.js +25 -0
  25. package/dist/cjs/chunks/ssrf-guard-B6T2A7Ho.js.map +1 -0
  26. package/dist/cjs/chunks/useSpecDetector-A4OwYrmY.js +252 -0
  27. package/dist/cjs/chunks/useSpecDetector-A4OwYrmY.js.map +1 -0
  28. package/dist/cjs/chunks/useSpecFetcher-BKz1jHTV.js +13669 -0
  29. package/dist/cjs/chunks/useSpecFetcher-BKz1jHTV.js.map +1 -0
  30. package/dist/cjs/core/public.js +198 -0
  31. package/dist/cjs/core/public.js.map +1 -0
  32. package/dist/cjs/index.js +36 -0
  33. package/dist/cjs/index.js.map +1 -0
  34. package/dist/cjs/openapi/index.js +19 -0
  35. package/dist/cjs/openapi/index.js.map +1 -0
  36. package/dist/cjs/server/index.js +154 -0
  37. package/dist/cjs/server/index.js.map +1 -0
  38. package/dist/cjs/wc/index.js +428 -0
  39. package/dist/cjs/wc/index.js.map +1 -0
  40. package/dist/esm/asyncapi/index.js +11 -0
  41. package/dist/esm/asyncapi/index.js.map +1 -0
  42. package/dist/esm/chunks/AsyncApiSpec-C3lsUpZk.js +817 -0
  43. package/dist/esm/chunks/AsyncApiSpec-C3lsUpZk.js.map +1 -0
  44. package/dist/esm/chunks/Collapsible-DA6-nS46.js +7482 -0
  45. package/dist/esm/chunks/Collapsible-DA6-nS46.js.map +1 -0
  46. package/dist/esm/chunks/ErrorBoundary-posRNrbt.js +34 -0
  47. package/dist/esm/chunks/ErrorBoundary-posRNrbt.js.map +1 -0
  48. package/dist/esm/chunks/OmniSpecRenderer-MqsQFXro.js +102 -0
  49. package/dist/esm/chunks/OmniSpecRenderer-MqsQFXro.js.map +1 -0
  50. package/dist/esm/chunks/OpenApiSpec-Cy-oW6jA.js +3153 -0
  51. package/dist/esm/chunks/OpenApiSpec-Cy-oW6jA.js.map +1 -0
  52. package/dist/esm/chunks/OpenIdConnectManual-COfITasf.js +2393 -0
  53. package/dist/esm/chunks/OpenIdConnectManual-COfITasf.js.map +1 -0
  54. package/dist/esm/chunks/RendererRegistry-zlh-WYbU.js +21 -0
  55. package/dist/esm/chunks/RendererRegistry-zlh-WYbU.js.map +1 -0
  56. package/dist/esm/chunks/binary-response-Cre_H-Rt.js +72 -0
  57. package/dist/esm/chunks/binary-response-Cre_H-Rt.js.map +1 -0
  58. package/dist/esm/chunks/ref-resolver-BIrHJOjz.js +7105 -0
  59. package/dist/esm/chunks/ref-resolver-BIrHJOjz.js.map +1 -0
  60. package/dist/esm/chunks/ssrf-guard-CsZoYdEq.js +23 -0
  61. package/dist/esm/chunks/ssrf-guard-CsZoYdEq.js.map +1 -0
  62. package/dist/esm/chunks/useSpecDetector-5SGcKnJx.js +248 -0
  63. package/dist/esm/chunks/useSpecDetector-5SGcKnJx.js.map +1 -0
  64. package/dist/esm/chunks/useSpecFetcher-CZvAnU7Z.js +13625 -0
  65. package/dist/esm/chunks/useSpecFetcher-CZvAnU7Z.js.map +1 -0
  66. package/dist/esm/core/public.js +102 -0
  67. package/dist/esm/core/public.js.map +1 -0
  68. package/dist/esm/index.js +17 -0
  69. package/dist/esm/index.js.map +1 -0
  70. package/dist/esm/openapi/index.js +13 -0
  71. package/dist/esm/openapi/index.js.map +1 -0
  72. package/dist/esm/server/index.js +152 -0
  73. package/dist/esm/server/index.js.map +1 -0
  74. package/dist/esm/wc/index.js +403 -0
  75. package/dist/esm/wc/index.js.map +1 -0
  76. package/dist/types/asyncapi/AsyncApiSpec.d.ts +12 -0
  77. package/dist/types/asyncapi/AsyncApiSpec.d.ts.map +1 -0
  78. package/dist/types/asyncapi/components/AsyncOverview.d.ts +16 -0
  79. package/dist/types/asyncapi/components/AsyncOverview.d.ts.map +1 -0
  80. package/dist/types/asyncapi/components/ChannelDetail.d.ts +19 -0
  81. package/dist/types/asyncapi/components/ChannelDetail.d.ts.map +1 -0
  82. package/dist/types/asyncapi/components/ComponentsSection.d.ts +16 -0
  83. package/dist/types/asyncapi/components/ComponentsSection.d.ts.map +1 -0
  84. package/dist/types/asyncapi/components/ProtocolBadge.d.ts +16 -0
  85. package/dist/types/asyncapi/components/ProtocolBadge.d.ts.map +1 -0
  86. package/dist/types/asyncapi/components/ServerList.d.ts +16 -0
  87. package/dist/types/asyncapi/components/ServerList.d.ts.map +1 -0
  88. package/dist/types/asyncapi/hooks/useAsyncApiSpec.d.ts +12 -0
  89. package/dist/types/asyncapi/hooks/useAsyncApiSpec.d.ts.map +1 -0
  90. package/dist/types/asyncapi/index.d.ts +11 -0
  91. package/dist/types/asyncapi/index.d.ts.map +1 -0
  92. package/dist/types/asyncapi/parser/asyncapi-parser.d.ts +12 -0
  93. package/dist/types/asyncapi/parser/asyncapi-parser.d.ts.map +1 -0
  94. package/dist/types/asyncapi/types/asyncapi.types.d.ts +125 -0
  95. package/dist/types/asyncapi/types/asyncapi.types.d.ts.map +1 -0
  96. package/dist/types/core/components/Auth/ApiKeyAuth.d.ts +30 -0
  97. package/dist/types/core/components/Auth/ApiKeyAuth.d.ts.map +1 -0
  98. package/dist/types/core/components/Auth/AuthPanel.d.ts +18 -0
  99. package/dist/types/core/components/Auth/AuthPanel.d.ts.map +1 -0
  100. package/dist/types/core/components/Auth/AuthPanelModal.d.ts +24 -0
  101. package/dist/types/core/components/Auth/AuthPanelModal.d.ts.map +1 -0
  102. package/dist/types/core/components/Auth/BasicAuth.d.ts +20 -0
  103. package/dist/types/core/components/Auth/BasicAuth.d.ts.map +1 -0
  104. package/dist/types/core/components/Auth/BearerAuth.d.ts +20 -0
  105. package/dist/types/core/components/Auth/BearerAuth.d.ts.map +1 -0
  106. package/dist/types/core/components/Auth/OAuth2AuthManual.d.ts +37 -0
  107. package/dist/types/core/components/Auth/OAuth2AuthManual.d.ts.map +1 -0
  108. package/dist/types/core/components/Auth/OpenIdConnectManual.d.ts +33 -0
  109. package/dist/types/core/components/Auth/OpenIdConnectManual.d.ts.map +1 -0
  110. package/dist/types/core/components/Auth/SecretInput.d.ts +27 -0
  111. package/dist/types/core/components/Auth/SecretInput.d.ts.map +1 -0
  112. package/dist/types/core/components/Auth/index.d.ts +16 -0
  113. package/dist/types/core/components/Auth/index.d.ts.map +1 -0
  114. package/dist/types/core/components/CodeBlock/CodeBlock.d.ts +32 -0
  115. package/dist/types/core/components/CodeBlock/CodeBlock.d.ts.map +1 -0
  116. package/dist/types/core/components/CodeBlock/index.d.ts +12 -0
  117. package/dist/types/core/components/CodeBlock/index.d.ts.map +1 -0
  118. package/dist/types/core/components/Layout/DocLayout.d.ts +24 -0
  119. package/dist/types/core/components/Layout/DocLayout.d.ts.map +1 -0
  120. package/dist/types/core/components/Layout/MobileDrawerDismissContext.d.ts +20 -0
  121. package/dist/types/core/components/Layout/MobileDrawerDismissContext.d.ts.map +1 -0
  122. package/dist/types/core/components/Layout/SpecStatusScreen.d.ts +38 -0
  123. package/dist/types/core/components/Layout/SpecStatusScreen.d.ts.map +1 -0
  124. package/dist/types/core/components/Layout/index.d.ts +11 -0
  125. package/dist/types/core/components/Layout/index.d.ts.map +1 -0
  126. package/dist/types/core/components/MarkdownRenderer/MarkdownRenderer.d.ts +16 -0
  127. package/dist/types/core/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -0
  128. package/dist/types/core/components/MarkdownRenderer/index.d.ts +11 -0
  129. package/dist/types/core/components/MarkdownRenderer/index.d.ts.map +1 -0
  130. package/dist/types/core/components/Navigation/CustomNavSection.d.ts +16 -0
  131. package/dist/types/core/components/Navigation/CustomNavSection.d.ts.map +1 -0
  132. package/dist/types/core/components/Navigation/NavTree.d.ts +32 -0
  133. package/dist/types/core/components/Navigation/NavTree.d.ts.map +1 -0
  134. package/dist/types/core/components/Navigation/SearchBar.d.ts +16 -0
  135. package/dist/types/core/components/Navigation/SearchBar.d.ts.map +1 -0
  136. package/dist/types/core/components/Navigation/buildSidebar.d.ts +13 -0
  137. package/dist/types/core/components/Navigation/buildSidebar.d.ts.map +1 -0
  138. package/dist/types/core/components/Navigation/index.d.ts +13 -0
  139. package/dist/types/core/components/Navigation/index.d.ts.map +1 -0
  140. package/dist/types/core/components/Reference/ReferenceLayout.d.ts +19 -0
  141. package/dist/types/core/components/Reference/ReferenceLayout.d.ts.map +1 -0
  142. package/dist/types/core/components/Reference/ReferenceOperationDetail.d.ts +42 -0
  143. package/dist/types/core/components/Reference/ReferenceOperationDetail.d.ts.map +1 -0
  144. package/dist/types/core/components/Reference/SamplesPanel.d.ts +33 -0
  145. package/dist/types/core/components/Reference/SamplesPanel.d.ts.map +1 -0
  146. package/dist/types/core/components/SchemaViewer/SchemaPresentation.d.ts +147 -0
  147. package/dist/types/core/components/SchemaViewer/SchemaPresentation.d.ts.map +1 -0
  148. package/dist/types/core/components/SchemaViewer/SchemaPrimitives.d.ts +66 -0
  149. package/dist/types/core/components/SchemaViewer/SchemaPrimitives.d.ts.map +1 -0
  150. package/dist/types/core/components/SchemaViewer/SchemaTable.d.ts +16 -0
  151. package/dist/types/core/components/SchemaViewer/SchemaTable.d.ts.map +1 -0
  152. package/dist/types/core/components/SchemaViewer/SchemaTree.d.ts +26 -0
  153. package/dist/types/core/components/SchemaViewer/SchemaTree.d.ts.map +1 -0
  154. package/dist/types/core/components/SchemaViewer/index.d.ts +16 -0
  155. package/dist/types/core/components/SchemaViewer/index.d.ts.map +1 -0
  156. package/dist/types/core/components/SchemaViewer/schema-style.d.ts +45 -0
  157. package/dist/types/core/components/SchemaViewer/schema-style.d.ts.map +1 -0
  158. package/dist/types/core/components/SchemaViewer/schema-utils.d.ts +83 -0
  159. package/dist/types/core/components/SchemaViewer/schema-utils.d.ts.map +1 -0
  160. package/dist/types/core/components/TryIt/CodeSamples.d.ts +26 -0
  161. package/dist/types/core/components/TryIt/CodeSamples.d.ts.map +1 -0
  162. package/dist/types/core/components/TryIt/CustomHeaders.d.ts +24 -0
  163. package/dist/types/core/components/TryIt/CustomHeaders.d.ts.map +1 -0
  164. package/dist/types/core/components/TryIt/InlineTryIt.d.ts +26 -0
  165. package/dist/types/core/components/TryIt/InlineTryIt.d.ts.map +1 -0
  166. package/dist/types/core/components/TryIt/ParameterForm.d.ts +34 -0
  167. package/dist/types/core/components/TryIt/ParameterForm.d.ts.map +1 -0
  168. package/dist/types/core/components/TryIt/RequestBodyEditor.d.ts +34 -0
  169. package/dist/types/core/components/TryIt/RequestBodyEditor.d.ts.map +1 -0
  170. package/dist/types/core/components/TryIt/ResponseViewer.d.ts +18 -0
  171. package/dist/types/core/components/TryIt/ResponseViewer.d.ts.map +1 -0
  172. package/dist/types/core/components/TryIt/TryItPanel.d.ts +38 -0
  173. package/dist/types/core/components/TryIt/TryItPanel.d.ts.map +1 -0
  174. package/dist/types/core/components/TryIt/code-generators.d.ts +23 -0
  175. package/dist/types/core/components/TryIt/code-generators.d.ts.map +1 -0
  176. package/dist/types/core/components/TryIt/curl-generator.d.ts +12 -0
  177. package/dist/types/core/components/TryIt/curl-generator.d.ts.map +1 -0
  178. package/dist/types/core/components/TryIt/index.d.ts +16 -0
  179. package/dist/types/core/components/TryIt/index.d.ts.map +1 -0
  180. package/dist/types/core/components/common/Badge.d.ts +19 -0
  181. package/dist/types/core/components/common/Badge.d.ts.map +1 -0
  182. package/dist/types/core/components/common/Button.d.ts +44 -0
  183. package/dist/types/core/components/common/Button.d.ts.map +1 -0
  184. package/dist/types/core/components/common/Collapsible.d.ts +23 -0
  185. package/dist/types/core/components/common/Collapsible.d.ts.map +1 -0
  186. package/dist/types/core/components/common/CopyButton.d.ts +16 -0
  187. package/dist/types/core/components/common/CopyButton.d.ts.map +1 -0
  188. package/dist/types/core/components/common/ErrorBoundary.d.ts +40 -0
  189. package/dist/types/core/components/common/ErrorBoundary.d.ts.map +1 -0
  190. package/dist/types/core/components/common/ErrorMessage.d.ts +16 -0
  191. package/dist/types/core/components/common/ErrorMessage.d.ts.map +1 -0
  192. package/dist/types/core/components/common/ExampleSelector.d.ts +29 -0
  193. package/dist/types/core/components/common/ExampleSelector.d.ts.map +1 -0
  194. package/dist/types/core/components/common/ExpandableCard.d.ts +27 -0
  195. package/dist/types/core/components/common/ExpandableCard.d.ts.map +1 -0
  196. package/dist/types/core/components/common/Icon.d.ts +53 -0
  197. package/dist/types/core/components/common/Icon.d.ts.map +1 -0
  198. package/dist/types/core/components/common/LinkableHeading.d.ts +19 -0
  199. package/dist/types/core/components/common/LinkableHeading.d.ts.map +1 -0
  200. package/dist/types/core/components/common/LoadingScreen.d.ts +13 -0
  201. package/dist/types/core/components/common/LoadingScreen.d.ts.map +1 -0
  202. package/dist/types/core/components/common/MethodBar.d.ts +18 -0
  203. package/dist/types/core/components/common/MethodBar.d.ts.map +1 -0
  204. package/dist/types/core/components/common/Modal.d.ts +19 -0
  205. package/dist/types/core/components/common/Modal.d.ts.map +1 -0
  206. package/dist/types/core/components/common/ResponsiveColumns.d.ts +17 -0
  207. package/dist/types/core/components/common/ResponsiveColumns.d.ts.map +1 -0
  208. package/dist/types/core/components/common/SpecToolbar.d.ts +27 -0
  209. package/dist/types/core/components/common/SpecToolbar.d.ts.map +1 -0
  210. package/dist/types/core/components/common/Tabs.d.ts +29 -0
  211. package/dist/types/core/components/common/Tabs.d.ts.map +1 -0
  212. package/dist/types/core/components/common/Tooltip.d.ts +17 -0
  213. package/dist/types/core/components/common/Tooltip.d.ts.map +1 -0
  214. package/dist/types/core/components/common/UpgradePrompt.d.ts +18 -0
  215. package/dist/types/core/components/common/UpgradePrompt.d.ts.map +1 -0
  216. package/dist/types/core/components/common/index.d.ts +18 -0
  217. package/dist/types/core/components/common/index.d.ts.map +1 -0
  218. package/dist/types/core/context/AuthContext.d.ts +35 -0
  219. package/dist/types/core/context/AuthContext.d.ts.map +1 -0
  220. package/dist/types/core/context/ConfigContext.d.ts +55 -0
  221. package/dist/types/core/context/ConfigContext.d.ts.map +1 -0
  222. package/dist/types/core/context/ExpandContext.d.ts +33 -0
  223. package/dist/types/core/context/ExpandContext.d.ts.map +1 -0
  224. package/dist/types/core/context/RendererRegistry.d.ts +24 -0
  225. package/dist/types/core/context/RendererRegistry.d.ts.map +1 -0
  226. package/dist/types/core/context/index.d.ts +14 -0
  227. package/dist/types/core/context/index.d.ts.map +1 -0
  228. package/dist/types/core/hooks/index.d.ts +12 -0
  229. package/dist/types/core/hooks/index.d.ts.map +1 -0
  230. package/dist/types/core/hooks/useHashScroll.d.ts +15 -0
  231. package/dist/types/core/hooks/useHashScroll.d.ts.map +1 -0
  232. package/dist/types/core/hooks/useScrollSpy.d.ts +33 -0
  233. package/dist/types/core/hooks/useScrollSpy.d.ts.map +1 -0
  234. package/dist/types/core/hooks/useSegmentedRouter.d.ts +19 -0
  235. package/dist/types/core/hooks/useSegmentedRouter.d.ts.map +1 -0
  236. package/dist/types/core/hooks/useSpecDetector.d.ts +13 -0
  237. package/dist/types/core/hooks/useSpecDetector.d.ts.map +1 -0
  238. package/dist/types/core/hooks/useSpecFetcher.d.ts +17 -0
  239. package/dist/types/core/hooks/useSpecFetcher.d.ts.map +1 -0
  240. package/dist/types/core/public.d.ts +86 -0
  241. package/dist/types/core/public.d.ts.map +1 -0
  242. package/dist/types/core/styles/breakpoints.d.ts +33 -0
  243. package/dist/types/core/styles/breakpoints.d.ts.map +1 -0
  244. package/dist/types/core/styles/css.d.ts +17 -0
  245. package/dist/types/core/styles/css.d.ts.map +1 -0
  246. package/dist/types/core/styles/styled.d.ts +25 -0
  247. package/dist/types/core/styles/styled.d.ts.map +1 -0
  248. package/dist/types/core/themes/ThemeProvider.d.ts +25 -0
  249. package/dist/types/core/themes/ThemeProvider.d.ts.map +1 -0
  250. package/dist/types/core/themes/index.d.ts +12 -0
  251. package/dist/types/core/themes/index.d.ts.map +1 -0
  252. package/dist/types/core/themes/tokens.d.ts +13 -0
  253. package/dist/types/core/themes/tokens.d.ts.map +1 -0
  254. package/dist/types/core/types/auth.types.d.ts +83 -0
  255. package/dist/types/core/types/auth.types.d.ts.map +1 -0
  256. package/dist/types/core/types/common.types.d.ts +141 -0
  257. package/dist/types/core/types/common.types.d.ts.map +1 -0
  258. package/dist/types/core/types/index.d.ts +16 -0
  259. package/dist/types/core/types/index.d.ts.map +1 -0
  260. package/dist/types/core/types/interactive-auth.types.d.ts +37 -0
  261. package/dist/types/core/types/interactive-auth.types.d.ts.map +1 -0
  262. package/dist/types/core/types/sidebar-nav.types.d.ts +41 -0
  263. package/dist/types/core/types/sidebar-nav.types.d.ts.map +1 -0
  264. package/dist/types/core/types/spec-detection.types.d.ts +26 -0
  265. package/dist/types/core/types/spec-detection.types.d.ts.map +1 -0
  266. package/dist/types/core/types/theme.types.d.ts +119 -0
  267. package/dist/types/core/types/theme.types.d.ts.map +1 -0
  268. package/dist/types/core/types/try-it.types.d.ts +50 -0
  269. package/dist/types/core/types/try-it.types.d.ts.map +1 -0
  270. package/dist/types/core/utils/binary-response.d.ts +24 -0
  271. package/dist/types/core/utils/binary-response.d.ts.map +1 -0
  272. package/dist/types/core/utils/detect-spec.d.ts +12 -0
  273. package/dist/types/core/utils/detect-spec.d.ts.map +1 -0
  274. package/dist/types/core/utils/direct-client.d.ts +20 -0
  275. package/dist/types/core/utils/direct-client.d.ts.map +1 -0
  276. package/dist/types/core/utils/fetch-spec.d.ts +15 -0
  277. package/dist/types/core/utils/fetch-spec.d.ts.map +1 -0
  278. package/dist/types/core/utils/index.d.ts +14 -0
  279. package/dist/types/core/utils/index.d.ts.map +1 -0
  280. package/dist/types/core/utils/proxy-client.d.ts +19 -0
  281. package/dist/types/core/utils/proxy-client.d.ts.map +1 -0
  282. package/dist/types/core/utils/ref-security.d.ts +78 -0
  283. package/dist/types/core/utils/ref-security.d.ts.map +1 -0
  284. package/dist/types/core/utils/resolve-download-link.d.ts +23 -0
  285. package/dist/types/core/utils/resolve-download-link.d.ts.map +1 -0
  286. package/dist/types/core/utils/sanitize-html.d.ts +16 -0
  287. package/dist/types/core/utils/sanitize-html.d.ts.map +1 -0
  288. package/dist/types/core/utils/tryit-storage.d.ts +45 -0
  289. package/dist/types/core/utils/tryit-storage.d.ts.map +1 -0
  290. package/dist/types/index.d.ts +29 -0
  291. package/dist/types/index.d.ts.map +1 -0
  292. package/dist/types/openapi/OpenApiSpec.d.ts +12 -0
  293. package/dist/types/openapi/OpenApiSpec.d.ts.map +1 -0
  294. package/dist/types/openapi/components/ApiOverview.d.ts +19 -0
  295. package/dist/types/openapi/components/ApiOverview.d.ts.map +1 -0
  296. package/dist/types/openapi/components/CallbacksSection.d.ts +19 -0
  297. package/dist/types/openapi/components/CallbacksSection.d.ts.map +1 -0
  298. package/dist/types/openapi/components/ComponentsSection.d.ts +19 -0
  299. package/dist/types/openapi/components/ComponentsSection.d.ts.map +1 -0
  300. package/dist/types/openapi/components/EndpointCard.d.ts +20 -0
  301. package/dist/types/openapi/components/EndpointCard.d.ts.map +1 -0
  302. package/dist/types/openapi/components/OperationDetail.d.ts +28 -0
  303. package/dist/types/openapi/components/OperationDetail.d.ts.map +1 -0
  304. package/dist/types/openapi/components/OperationView.d.ts +19 -0
  305. package/dist/types/openapi/components/OperationView.d.ts.map +1 -0
  306. package/dist/types/openapi/components/SegmentedContent.d.ts +22 -0
  307. package/dist/types/openapi/components/SegmentedContent.d.ts.map +1 -0
  308. package/dist/types/openapi/components/ServerSelector.d.ts +18 -0
  309. package/dist/types/openapi/components/ServerSelector.d.ts.map +1 -0
  310. package/dist/types/openapi/components/TagGroup.d.ts +19 -0
  311. package/dist/types/openapi/components/TagGroup.d.ts.map +1 -0
  312. package/dist/types/openapi/hooks/useOpenApiSpec.d.ts +13 -0
  313. package/dist/types/openapi/hooks/useOpenApiSpec.d.ts.map +1 -0
  314. package/dist/types/openapi/index.d.ts +11 -0
  315. package/dist/types/openapi/index.d.ts.map +1 -0
  316. package/dist/types/openapi/parser/openapi-parser.d.ts +13 -0
  317. package/dist/types/openapi/parser/openapi-parser.d.ts.map +1 -0
  318. package/dist/types/openapi/parser/ref-resolver.d.ts +18 -0
  319. package/dist/types/openapi/parser/ref-resolver.d.ts.map +1 -0
  320. package/dist/types/openapi/search.d.ts +16 -0
  321. package/dist/types/openapi/search.d.ts.map +1 -0
  322. package/dist/types/openapi/types/openapi.types.d.ts +139 -0
  323. package/dist/types/openapi/types/openapi.types.d.ts.map +1 -0
  324. package/dist/types/server/index.d.ts +12 -0
  325. package/dist/types/server/index.d.ts.map +1 -0
  326. package/dist/types/server/proxy-router.d.ts +44 -0
  327. package/dist/types/server/proxy-router.d.ts.map +1 -0
  328. package/dist/types/server/ssrf-guard.d.ts +20 -0
  329. package/dist/types/server/ssrf-guard.d.ts.map +1 -0
  330. package/dist/types/test-setup.d.ts +11 -0
  331. package/dist/types/test-setup.d.ts.map +1 -0
  332. package/dist/types/unified/OmniSpecRenderer.d.ts +18 -0
  333. package/dist/types/unified/OmniSpecRenderer.d.ts.map +1 -0
  334. package/dist/types/unified/index.d.ts +12 -0
  335. package/dist/types/unified/index.d.ts.map +1 -0
  336. package/dist/types/wc/OmniSpecRendererElement.d.ts +48 -0
  337. package/dist/types/wc/OmniSpecRendererElement.d.ts.map +1 -0
  338. package/dist/types/wc/attribute-bridge.d.ts +96 -0
  339. package/dist/types/wc/attribute-bridge.d.ts.map +1 -0
  340. package/dist/types/wc/index.d.ts +42 -0
  341. package/dist/types/wc/index.d.ts.map +1 -0
  342. package/dist/types/wc/style-injection.d.ts +24 -0
  343. package/dist/types/wc/style-injection.d.ts.map +1 -0
  344. package/dist/wc/standalone.js +3 -0
  345. package/dist/wc/standalone.js.LICENSE.txt +65 -0
  346. package/dist/wc/standalone.js.map +1 -0
  347. package/package.json +167 -0
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ import type { ReactNode } from 'react';
11
+ export interface ExpandableCardBadge {
12
+ name: string;
13
+ color?: string;
14
+ position?: 'before' | 'after';
15
+ }
16
+ export interface ExpandableCardProps {
17
+ id?: string;
18
+ title: string;
19
+ rightLabel?: string;
20
+ deprecated?: boolean;
21
+ badges?: ExpandableCardBadge[];
22
+ expandAll?: boolean;
23
+ expandGeneration?: number;
24
+ children: ReactNode;
25
+ }
26
+ export declare const ExpandableCard: import("react").NamedExoticComponent<ExpandableCardProps>;
27
+ //# sourceMappingURL=ExpandableCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpandableCard.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/ExpandableCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQtC,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;CAC9B;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,eAAO,MAAM,cAAc,2DA+FzB,CAAA"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ import type { CSSProperties } from 'react';
11
+ import { type LucideProps } from 'lucide-react';
12
+ declare const iconMap: {
13
+ readonly 'chevron-right': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
14
+ readonly 'chevron-left': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
15
+ readonly 'chevron-down': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
16
+ readonly lock: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
17
+ readonly download: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18
+ readonly expand: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
19
+ readonly compress: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
20
+ readonly ellipsis: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
21
+ readonly xmark: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
22
+ readonly 'external-link': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
23
+ readonly link: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
24
+ readonly copy: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
25
+ readonly check: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
26
+ readonly search: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
27
+ readonly info: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
28
+ readonly warning: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
29
+ readonly sun: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
30
+ readonly moon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
31
+ readonly eye: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
32
+ readonly 'eye-off': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
33
+ readonly 'lock-keyhole': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
34
+ readonly 'lock-keyhole-open': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
35
+ readonly 'rotate-ccw': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
36
+ readonly home: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
37
+ readonly 'shield-check': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
38
+ readonly 'arrow-up': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
39
+ readonly 'panel-left-close': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
40
+ readonly 'panel-left-open': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
41
+ };
42
+ export type IconName = keyof typeof iconMap;
43
+ interface IconProps {
44
+ name: IconName;
45
+ size?: number | string;
46
+ color?: string;
47
+ style?: CSSProperties;
48
+ className?: string;
49
+ strokeWidth?: number;
50
+ }
51
+ export declare function Icon({ name, size, color, style, className, strokeWidth, }: IconProps): import("react").JSX.Element | null;
52
+ export {};
53
+ //# sourceMappingURL=Icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/Icon.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,EA6BL,KAAK,WAAW,EACjB,MAAM,cAAc,CAAA;AAErB,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BH,CAAA;AAEV,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,OAAO,CAAA;AAE3C,UAAU,SAAS;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,wBAAgB,IAAI,CAAC,EACnB,IAAI,EACJ,IAAc,EACd,KAAsB,EACtB,KAAK,EACL,SAAS,EACT,WAAe,GAChB,EAAE,SAAS,sCAaX"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ import type { ReactNode } from 'react';
11
+ interface LinkableHeadingProps {
12
+ id: string;
13
+ as?: 'h2' | 'h3' | 'h4' | 'h5';
14
+ className?: string;
15
+ children: ReactNode;
16
+ }
17
+ export declare function LinkableHeading({ id, as: Tag, className, children }: LinkableHeadingProps): import("react").JSX.Element;
18
+ export {};
19
+ //# sourceMappingURL=LinkableHeading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkableHeading.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/LinkableHeading.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,UAAU,oBAAoB;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,oBAAoB,+BA0BhG"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ export declare function LoadingScreen({ message }: {
11
+ message?: string;
12
+ }): import("react").JSX.Element;
13
+ //# sourceMappingURL=LoadingScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingScreen.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/LoadingScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkCH,wBAAgB,aAAa,CAAC,EAAE,OAAsB,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,+BAO7E"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ interface MethodBarProps {
11
+ label: string;
12
+ path: string;
13
+ color?: string;
14
+ method?: 'get' | 'post' | 'put' | 'delete' | 'patch' | 'options' | 'head';
15
+ }
16
+ export declare function MethodBar({ label, path, color, method }: MethodBarProps): import("react").JSX.Element;
17
+ export {};
18
+ //# sourceMappingURL=MethodBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MethodBar.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/MethodBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;CAC1E;AAmBD,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,cAAc,+BAYvE"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ import type { ReactNode } from 'react';
11
+ interface ModalProps {
12
+ open: boolean;
13
+ onClose: () => void;
14
+ title?: string;
15
+ children: ReactNode;
16
+ }
17
+ export declare function Modal({ open, onClose, title, children }: ModalProps): import("react").JSX.Element | null;
18
+ export {};
19
+ //# sourceMappingURL=Modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/Modal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,UAAU,UAAU;IAClB,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,KAAK,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,UAAU,sCA8CnE"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ interface ResponsiveColumnsProps {
11
+ left: React.ReactNode;
12
+ right?: React.ReactNode;
13
+ rightLabel?: string;
14
+ }
15
+ export declare function ResponsiveColumns({ left, right, rightLabel }: ResponsiveColumnsProps): import("react").JSX.Element;
16
+ export {};
17
+ //# sourceMappingURL=ResponsiveColumns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResponsiveColumns.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/ResponsiveColumns.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH,UAAU,sBAAsB;IAC9B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAsFD,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,UAAqB,EAAE,EAAE,sBAAsB,+BA0E/F"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ import type { ReactNode } from 'react';
11
+ interface SpecToolbarProps {
12
+ /** The overview/header content (title, description, metadata) */
13
+ overview: ReactNode;
14
+ /** Version badge shown alongside actions on mobile */
15
+ versionBadge?: ReactNode;
16
+ /** Label for the expand/collapse toggle (e.g., "operations", "channels", "types") */
17
+ expandLabel: string;
18
+ /** Whether all items are currently expanded */
19
+ allExpanded: boolean;
20
+ /** Callback to toggle expand/collapse all */
21
+ onToggleExpand: () => void;
22
+ /** URL for download button. Omit to hide. */
23
+ downloadLink?: string;
24
+ }
25
+ export declare function SpecToolbar({ overview, versionBadge, allExpanded, onToggleExpand, downloadLink, }: SpecToolbarProps): import("react").JSX.Element;
26
+ export {};
27
+ //# sourceMappingURL=SpecToolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/SpecToolbar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,UAAU,gBAAgB;IACxB,iEAAiE;IACjE,QAAQ,EAAE,SAAS,CAAA;IACnB,sDAAsD;IACtD,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,qFAAqF;IACrF,WAAW,EAAE,MAAM,CAAA;IACnB,+CAA+C;IAC/C,WAAW,EAAE,OAAO,CAAA;IACpB,6CAA6C;IAC7C,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,cAAc,EACd,YAAY,GACb,EAAE,gBAAgB,+BAyBlB"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ import type { ReactNode } from 'react';
11
+ export interface TabItem {
12
+ id: string;
13
+ /** Tab label. Usually a string; accepts a node so callers can add badges/status indicators. */
14
+ label: ReactNode;
15
+ content: ReactNode;
16
+ }
17
+ interface TabsProps {
18
+ tabs: TabItem[];
19
+ defaultTab?: string;
20
+ /**
21
+ * Remove the tab strip's top spacing. The default margins suit tabs that
22
+ * follow content in the doc body; set this when the tabs sit at the top of
23
+ * their container (e.g. the Authorize panel) and the spacing reads as a gap.
24
+ */
25
+ flush?: boolean;
26
+ }
27
+ export declare function Tabs({ tabs, defaultTab, flush }: TabsProps): import("react").JSX.Element;
28
+ export {};
29
+ //# sourceMappingURL=Tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/Tabs.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,+FAA+F;IAC/F,KAAK,EAAE,SAAS,CAAA;IAChB,OAAO,EAAE,SAAS,CAAA;CACnB;AAED,UAAU,SAAS;IACjB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAgED,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAa,EAAE,EAAE,SAAS,+BA8BlE"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ import type { ReactNode } from 'react';
11
+ interface TooltipProps {
12
+ content: string;
13
+ children: ReactNode;
14
+ }
15
+ export declare function Tooltip({ content, children }: TooltipProps): import("react").JSX.Element;
16
+ export {};
17
+ //# sourceMappingURL=Tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/Tooltip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,UAAU,YAAY;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,SAAS,CAAA;CACpB;AAmBD,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,YAAY,+BAuC1D"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ import type { SpecType } from '@core/types/spec-detection.types';
11
+ interface UpgradePromptProps {
12
+ specType: SpecType;
13
+ docsUrl?: string;
14
+ upgradeUrl?: string;
15
+ }
16
+ export declare function UpgradePrompt({ specType, docsUrl, upgradeUrl }: UpgradePromptProps): import("react").JSX.Element;
17
+ export {};
18
+ //# sourceMappingURL=UpgradePrompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpgradePrompt.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/UpgradePrompt.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAShE,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,QAAQ,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,kBAAkB,+BA8BlF"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ export { Badge } from './Badge';
11
+ export { Tabs } from './Tabs';
12
+ export type { TabItem } from './Tabs';
13
+ export { Collapsible } from './Collapsible';
14
+ export { CopyButton } from './CopyButton';
15
+ export { Tooltip } from './Tooltip';
16
+ export { ExampleSelector, getNamedExamples } from './ExampleSelector';
17
+ export type { NamedExample } from './ExampleSelector';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,YAAY,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACrE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ import type { ReactNode } from 'react';
11
+ import type { AppliedAuthValue, AuthScheme } from '../types/auth.types';
12
+ interface AuthContextValue {
13
+ appliedAuth: Map<string, AppliedAuthValue>;
14
+ applyAuth: (value: AppliedAuthValue) => void;
15
+ removeAuth: (schemeId: string) => void;
16
+ clearAuth: () => void;
17
+ getAuthHeaders: () => Record<string, string>;
18
+ /** Security schemes available to the Authorize panel. */
19
+ schemes: AuthScheme[];
20
+ /** Whether any security schemes exist (drives the Authorize button). */
21
+ hasAuth: boolean;
22
+ /** Whether the Authorize panel modal is open. */
23
+ authPanelOpen: boolean;
24
+ openAuthPanel: () => void;
25
+ closeAuthPanel: () => void;
26
+ }
27
+ export declare function useAuth(): AuthContextValue;
28
+ interface AuthProviderProps {
29
+ children: ReactNode;
30
+ /** Security schemes surfaced by the Authorize panel. */
31
+ schemes?: AuthScheme[];
32
+ }
33
+ export declare function AuthProvider({ children, schemes }: AuthProviderProps): import("react").JSX.Element;
34
+ export {};
35
+ //# sourceMappingURL=AuthContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthContext.d.ts","sourceRoot":"","sources":["../../../../src/core/context/AuthContext.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAkFvE,UAAU,gBAAgB;IACxB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;IAC1C,SAAS,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC5C,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,cAAc,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5C,yDAAyD;IACzD,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,wEAAwE;IACxE,OAAO,EAAE,OAAO,CAAA;IAChB,iDAAiD;IACjD,aAAa,EAAE,OAAO,CAAA;IACtB,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B;AAeD,wBAAgB,OAAO,qBAEtB;AAED,UAAU,iBAAiB;IACzB,QAAQ,EAAE,SAAS,CAAA;IACnB,wDAAwD;IACxD,OAAO,CAAC,EAAE,UAAU,EAAE,CAAA;CACvB;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,OAAY,EAAE,EAAE,iBAAiB,+BA4DzE"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ import type { ComponentType, ReactNode } from 'react';
11
+ import type { SlotOverrides } from '../types/theme.types';
12
+ import type { BaseSpecProps } from '../types/common.types';
13
+ import type { OAuthConfig } from '../types/auth.types';
14
+ import type { InteractiveAuthRegistry } from '../types/interactive-auth.types';
15
+ import type { SchemaStyle } from '../components/SchemaViewer/schema-style';
16
+ export interface ConfigContextValue {
17
+ proxyUrl?: string;
18
+ proxyHeaders?: Record<string, string>;
19
+ /** Interactive OAuth 2.0 (PKCE) Try-It flow configuration. */
20
+ oauth?: OAuthConfig;
21
+ allowTryIt: boolean;
22
+ layout: 'sidebar' | 'stacked';
23
+ sidebarPosition: 'left' | 'right';
24
+ tryItLayout: 'inline' | 'panel';
25
+ defaultExpandOperations: boolean;
26
+ displayMode: 'compact' | 'reference';
27
+ /**
28
+ * Already tier-gated schema presentation style. Consumers (e.g. `SchemaTree`)
29
+ * read this directly; the gating/fallback is resolved once upstream.
30
+ */
31
+ schemaStyle: SchemaStyle;
32
+ slots: SlotOverrides;
33
+ proRenderers: Map<string, ComponentType<BaseSpecProps>>;
34
+ premiumThemingEnabled: boolean;
35
+ /**
36
+ * Interactive-auth components supplied by Pro, keyed by scheme type. When
37
+ * present (and not opted out), `AuthPanel` renders these instead of the free
38
+ * manual shells.
39
+ */
40
+ interactiveAuth?: InteractiveAuthRegistry;
41
+ /** Consumer opt-out of the interactive OAuth flow. Defaults to true. */
42
+ interactiveOAuth: boolean;
43
+ /** Stable identity of the rendered spec (title@version) — used to namespace Try-It persistence. */
44
+ specKey?: string;
45
+ /** Max age in seconds for persisted Try-It inputs; 0 disables persistence; undefined = no expiry. */
46
+ tryItPersistTtl?: number;
47
+ }
48
+ export declare function useConfig(): ConfigContextValue;
49
+ interface ConfigProviderProps {
50
+ config: Partial<ConfigContextValue>;
51
+ children: ReactNode;
52
+ }
53
+ export declare function ConfigProvider({ config, children }: ConfigProviderProps): import("react").JSX.Element;
54
+ export {};
55
+ //# sourceMappingURL=ConfigContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigContext.d.ts","sourceRoot":"","sources":["../../../../src/core/context/ConfigContext.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAA;AAG1E,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,8DAA8D;IAC9D,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,SAAS,GAAG,SAAS,CAAA;IAC7B,eAAe,EAAE,MAAM,GAAG,OAAO,CAAA;IACjC,WAAW,EAAE,QAAQ,GAAG,OAAO,CAAA;IAC/B,uBAAuB,EAAE,OAAO,CAAA;IAChC,WAAW,EAAE,SAAS,GAAG,WAAW,CAAA;IACpC;;;OAGG;IACH,WAAW,EAAE,WAAW,CAAA;IACxB,KAAK,EAAE,aAAa,CAAA;IACpB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,CAAA;IACvD,qBAAqB,EAAE,OAAO,CAAA;IAC9B;;;;OAIG;IACH,eAAe,CAAC,EAAE,uBAAuB,CAAA;IACzC,wEAAwE;IACxE,gBAAgB,EAAE,OAAO,CAAA;IACzB,mGAAmG;IACnG,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,qGAAqG;IACrG,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAqBD,wBAAgB,SAAS,uBAExB;AAED,UAAU,mBAAmB;IAC3B,MAAM,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAA;IACnC,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,mBAAmB,+BAOvE"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ import type { ReactNode } from 'react';
11
+ /**
12
+ * The document-wide "expand all" signal.
13
+ *
14
+ * `expandGeneration` is bumped on every Expand/Collapse-All toggle. Collapsibles
15
+ * mirror `expandAll` only when the generation is > 0, so the initial mount
16
+ * (generation 0) leaves each item's `defaultOpen` untouched, and each toggle
17
+ * re-applies even if the user opened/closed an item in between.
18
+ *
19
+ * This lets deeply-nested collapsibles (response cards, request/response
20
+ * sections) respond to Expand All without prop-drilling the signal through
21
+ * every intermediate component.
22
+ */
23
+ export interface ExpandState {
24
+ expandAll: boolean;
25
+ expandGeneration: number;
26
+ }
27
+ /** Reads the current document-wide expand-all signal. */
28
+ export declare function useExpandAll(): ExpandState;
29
+ /** Publishes the expand-all signal to every collapsible in the subtree. */
30
+ export declare function ExpandProvider({ expandAll, expandGeneration, children, }: ExpandState & {
31
+ children: ReactNode;
32
+ }): import("react").JSX.Element;
33
+ //# sourceMappingURL=ExpandContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpandContext.d.ts","sourceRoot":"","sources":["../../../../src/core/context/ExpandContext.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,OAAO,CAAA;IAClB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAID,yDAAyD;AACzD,wBAAgB,YAAY,IAAI,WAAW,CAE1C;AAED,2EAA2E;AAC3E,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,gBAAgB,EAChB,QAAQ,GACT,EAAE,WAAW,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAMvC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ import type { ComponentType, ReactNode } from 'react';
11
+ import type { SpecType } from '../types/spec-detection.types';
12
+ import type { BaseSpecProps } from '../types/common.types';
13
+ export interface RendererRegistryValue {
14
+ renderers: Map<SpecType, ComponentType<BaseSpecProps>>;
15
+ premiumThemingEnabled: boolean;
16
+ }
17
+ export declare function useRendererRegistry(): RendererRegistryValue;
18
+ interface RendererRegistryProviderProps {
19
+ value: Partial<RendererRegistryValue>;
20
+ children: ReactNode;
21
+ }
22
+ export declare function RendererRegistryProvider({ value, children }: RendererRegistryProviderProps): import("react").JSX.Element;
23
+ export {};
24
+ //# sourceMappingURL=RendererRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RendererRegistry.d.ts","sourceRoot":"","sources":["../../../../src/core/context/RendererRegistry.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAE1D,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,GAAG,CAAC,QAAQ,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,CAAA;IACtD,qBAAqB,EAAE,OAAO,CAAA;CAC/B;AASD,wBAAgB,mBAAmB,0BAElC;AAED,UAAU,6BAA6B;IACrC,KAAK,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAA;IACrC,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,wBAAwB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,6BAA6B,+BAU1F"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ export { ConfigProvider, useConfig } from './ConfigContext';
11
+ export { AuthProvider, useAuth } from './AuthContext';
12
+ export { RendererRegistryProvider, useRendererRegistry } from './RendererRegistry';
13
+ export type { RendererRegistryValue } from './RendererRegistry';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/context/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAClF,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ export { useSpecFetcher } from './useSpecFetcher';
11
+ export { useSpecDetector } from './useSpecDetector';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/hooks/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ export declare function onExpandRequest(id: string, callback: () => void): () => void;
11
+ export declare function requestExpand(id: string): void;
12
+ export declare function useHashScroll(operationCount?: number): {
13
+ navigateTo: (id: string) => void;
14
+ };
15
+ //# sourceMappingURL=useHashScroll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHashScroll.d.ts","sourceRoot":"","sources":["../../../../src/core/hooks/useHashScroll.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAK5E;AAED,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,QAGvC;AAID,wBAAgB,aAAa,CAAC,cAAc,SAAI;qBA4BV,MAAM;EAW3C"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ interface NavIdItem {
11
+ id: string;
12
+ children?: NavIdItem[];
13
+ }
14
+ /**
15
+ * Collects the **leaf** ids of a nav tree (items with no children) in document
16
+ * order. Leaves map to the concrete section anchors (operations, types,
17
+ * messages, schemas) — group/parent ids are containers and would over-match, so
18
+ * they're skipped. Structural typing keeps this decoupled from `NavItem`.
19
+ */
20
+ export declare function flattenNavItemIds(items: NavIdItem[]): string[];
21
+ /**
22
+ * Scroll-spy: returns the id of the section currently near the top of the
23
+ * viewport, for driving a sidebar's active-item highlight as the reader scrolls.
24
+ *
25
+ * Observes the elements whose ids are given (missing ones are ignored) with an
26
+ * `IntersectionObserver` whose root band is a thin strip near the top of the
27
+ * viewport (default `rootMargin` shrinks the bottom 80%, so only the top ~20%
28
+ * counts). The active id is the **topmost** (earliest in `ids`) element in that
29
+ * band; when the scroll position is between sections the last active id is kept.
30
+ */
31
+ export declare function useScrollSpy(ids: string[], rootMargin?: string): string | undefined;
32
+ export {};
33
+ //# sourceMappingURL=useScrollSpy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrollSpy.d.ts","sourceRoot":"","sources":["../../../../src/core/hooks/useScrollSpy.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,UAAU,SAAS;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,MAAM,EAAE,CAU9D;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,UAAU,SAAqB,GAAG,MAAM,GAAG,SAAS,CAgC/F"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This source file is part of the Apiboost(R) OmniSpec Core.
3
+ *
4
+ * Copyright (c) Apiboost, Inc.
5
+ *
6
+ * SPDX-License-Identifier: Apache-2.0
7
+ *
8
+ * See LICENSE.md and LICENSING.md in the project root for license information.
9
+ */
10
+ export interface SegmentedRoute {
11
+ view: 'overview' | 'operation';
12
+ operationId: string | null;
13
+ }
14
+ export declare function useSegmentedRouter(): {
15
+ route: SegmentedRoute;
16
+ navigateToOperation: (operationId: string) => void;
17
+ navigateToOverview: () => void;
18
+ };
19
+ //# sourceMappingURL=useSegmentedRouter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSegmentedRouter.d.ts","sourceRoot":"","sources":["../../../../src/core/hooks/useSegmentedRouter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,UAAU,GAAG,WAAW,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B;AAUD,wBAAgB,kBAAkB;;uCASsB,MAAM;;EAU7D"}