@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,83 @@
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 SchemaDiscriminator {
11
+ propertyName: string;
12
+ mapping?: Record<string, string>;
13
+ }
14
+ export interface SchemaNode {
15
+ name: string;
16
+ type: string;
17
+ format?: string;
18
+ title?: string;
19
+ description?: string;
20
+ required: boolean;
21
+ deprecated?: boolean;
22
+ readOnly?: boolean;
23
+ writeOnly?: boolean;
24
+ enum?: unknown[];
25
+ enumDescriptions?: Record<string, string>;
26
+ default?: unknown;
27
+ example?: unknown;
28
+ pattern?: string;
29
+ nullable?: boolean;
30
+ constraints: string[];
31
+ children?: SchemaNode[];
32
+ compositionType?: 'allOf' | 'oneOf' | 'anyOf';
33
+ compositionChildren?: SchemaNode[][];
34
+ /** Human-readable label per composition branch (discriminator/title/schema name). */
35
+ compositionBranchLabels?: string[];
36
+ /** Discriminator metadata for a oneOf/anyOf node. */
37
+ discriminator?: SchemaDiscriminator;
38
+ /** Name of the referenced component schema when this node is a bare `$ref`. */
39
+ refTarget?: string;
40
+ }
41
+ interface JsonSchema {
42
+ type?: string | string[];
43
+ format?: string;
44
+ description?: string;
45
+ properties?: Record<string, JsonSchema>;
46
+ required?: string[];
47
+ items?: JsonSchema;
48
+ allOf?: JsonSchema[];
49
+ oneOf?: JsonSchema[];
50
+ anyOf?: JsonSchema[];
51
+ enum?: unknown[];
52
+ const?: unknown;
53
+ default?: unknown;
54
+ example?: unknown;
55
+ examples?: unknown[];
56
+ pattern?: string;
57
+ nullable?: boolean;
58
+ deprecated?: boolean;
59
+ readOnly?: boolean;
60
+ writeOnly?: boolean;
61
+ minimum?: number;
62
+ maximum?: number;
63
+ exclusiveMinimum?: number | boolean;
64
+ exclusiveMaximum?: number | boolean;
65
+ minLength?: number;
66
+ maxLength?: number;
67
+ minItems?: number;
68
+ maxItems?: number;
69
+ uniqueItems?: boolean;
70
+ $ref?: string;
71
+ additionalProperties?: boolean | JsonSchema;
72
+ title?: string;
73
+ discriminator?: {
74
+ propertyName: string;
75
+ mapping?: Record<string, string>;
76
+ };
77
+ [key: string]: unknown;
78
+ }
79
+ export declare function schemaToNodes(schema: JsonSchema, name?: string, requiredFields?: string[], depth?: number, visited?: Set<string>): SchemaNode[];
80
+ export declare function buildConstraints(schema: JsonSchema): string[];
81
+ export declare function generateExample(schema: JsonSchema, depth?: number): unknown;
82
+ export {};
83
+ //# sourceMappingURL=schema-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-utils.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/SchemaViewer/schema-utils.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,26 @@
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 { TryItRequest } from '@core/types/try-it.types';
11
+ import type { CodeLanguageId } from './code-generators';
12
+ interface CodeSamplesProps {
13
+ request: TryItRequest;
14
+ serverUrl: string;
15
+ selectedLanguage: CodeLanguageId;
16
+ onLanguageChange: (lang: CodeLanguageId) => void;
17
+ xCodeSamples?: XCodeSample[];
18
+ }
19
+ export interface XCodeSample {
20
+ lang: string;
21
+ label?: string;
22
+ source: string;
23
+ }
24
+ export declare function CodeSamples({ request, serverUrl, selectedLanguage, onLanguageChange, xCodeSamples, }: CodeSamplesProps): import("react").JSX.Element;
25
+ export {};
26
+ //# sourceMappingURL=CodeSamples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeSamples.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/TryIt/CodeSamples.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAY5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,UAAU,gBAAgB;IACxB,OAAO,EAAE,YAAY,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB,EAAE,cAAc,CAAA;IAChC,gBAAgB,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAA;IAChD,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;CAC7B;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAWD,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,GACb,EAAE,gBAAgB,+BAwClB"}
@@ -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
+ export interface CustomHeader {
11
+ name: string;
12
+ value: string;
13
+ }
14
+ interface CustomHeadersProps {
15
+ headers: CustomHeader[];
16
+ onChange: (headers: CustomHeader[]) => void;
17
+ }
18
+ /**
19
+ * User-added arbitrary request headers for the Try-It panel ("+ Add header").
20
+ * Included in sent requests and generated code samples.
21
+ */
22
+ export declare function CustomHeaders({ headers, onChange }: CustomHeadersProps): import("react").JSX.Element;
23
+ export {};
24
+ //# sourceMappingURL=CustomHeaders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomHeaders.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/TryIt/CustomHeaders.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,UAAU,kBAAkB;IAC1B,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,IAAI,CAAA;CAC5C;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,kBAAkB,+BAiDtE"}
@@ -0,0 +1,26 @@
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 { TryItPanel } from '@core/components/TryIt/TryItPanel';
11
+ import type { ComponentProps } from 'react';
12
+ type TryItPanelProps = ComponentProps<typeof TryItPanel>;
13
+ /**
14
+ * `tryItLayout: 'inline'` (compact mode only) presentation of the Try-It
15
+ * console: a full-width disclosure rendered BELOW the operation detail, closed
16
+ * by default and revealed by a full-width "Try it" trigger.
17
+ *
18
+ * The wrapped `TryItPanel` stays MOUNTED across collapse/expand — the region is
19
+ * hidden with the `hidden` attribute (display:none), never unmounted — so any
20
+ * entered params, auth, request body, and response survive being hidden. This
21
+ * is deliberately NOT built on `Collapsible`, whose viewport-gated
22
+ * `shouldRender` unmounts its children when closed.
23
+ */
24
+ export declare function InlineTryIt(props: TryItPanelProps): import("react").JSX.Element;
25
+ export {};
26
+ //# sourceMappingURL=InlineTryIt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineTryIt.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/TryIt/InlineTryIt.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C,KAAK,eAAe,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,CAAA;AAExD;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,eAAe,+BA8BjD"}
@@ -0,0 +1,34 @@
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 ParameterDef {
11
+ name: string;
12
+ in: 'path' | 'query' | 'header' | 'cookie';
13
+ required: boolean;
14
+ description?: string;
15
+ type?: string;
16
+ format?: string;
17
+ enum?: string[];
18
+ /** Enum of the array items when the parameter is `type: array` — renders a multi-select. */
19
+ itemsEnum?: string[];
20
+ /** OAS `explode`. For query params the form-style default is true (repeated key=value pairs). */
21
+ explode?: boolean;
22
+ default?: string;
23
+ example?: string;
24
+ }
25
+ /** Delimiter used to store multi-select values inside the single string value model. */
26
+ export declare const MULTI_VALUE_DELIMITER = ",";
27
+ interface ParameterFormProps {
28
+ parameters: ParameterDef[];
29
+ values: Record<string, string>;
30
+ onChange: (name: string, value: string) => void;
31
+ }
32
+ export declare function ParameterForm({ parameters, values, onChange }: ParameterFormProps): import("react").JSX.Element;
33
+ export {};
34
+ //# sourceMappingURL=ParameterForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParameterForm.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/TryIt/ParameterForm.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAA;IAC1C,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,4FAA4F;IAC5F,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,iGAAiG;IACjG,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,wFAAwF;AACxF,eAAO,MAAM,qBAAqB,MAAM,CAAA;AAExC,UAAU,kBAAkB;IAC1B,UAAU,EAAE,YAAY,EAAE,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAChD;AA0DD,wBAAgB,aAAa,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,kBAAkB,+BA2BjF"}
@@ -0,0 +1,34 @@
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 type MultipartFieldValue = string | File | null;
11
+ interface RequestBodyEditorProps {
12
+ value: string;
13
+ onChange: (value: string) => void;
14
+ contentType: string;
15
+ onContentTypeChange?: (contentType: string) => void;
16
+ availableContentTypes?: string[];
17
+ /** JSON schema of the selected content type — drives the multipart form fields. */
18
+ schema?: Record<string, unknown>;
19
+ /** Field values for multipart/form-data mode, keyed by property name. */
20
+ multipartFields?: Record<string, MultipartFieldValue>;
21
+ /** Called when a multipart field changes. */
22
+ onMultipartFieldChange?: (name: string, value: MultipartFieldValue) => void;
23
+ }
24
+ interface MultipartProp {
25
+ name: string;
26
+ isFile: boolean;
27
+ required: boolean;
28
+ description?: string;
29
+ }
30
+ /** Derives the multipart form fields from a schema's properties. */
31
+ export declare function getMultipartProps(schema?: Record<string, unknown>): MultipartProp[];
32
+ export declare function RequestBodyEditor({ value, onChange, contentType, onContentTypeChange, availableContentTypes, schema, multipartFields, onMultipartFieldChange, }: RequestBodyEditorProps): import("react").JSX.Element;
33
+ export {};
34
+ //# sourceMappingURL=RequestBodyEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestBodyEditor.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/TryIt/RequestBodyEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;AAEtD,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,WAAW,EAAE,MAAM,CAAA;IACnB,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAA;IACnD,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAA;IAChC,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,yEAAyE;IACzE,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;IACrD,6CAA6C;IAC7C,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;CAC5E;AAED,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,oEAAoE;AACpE,wBAAgB,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,aAAa,EAAE,CAenF;AA8CD,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,QAAQ,EACR,WAAW,EACX,mBAAmB,EACnB,qBAA4C,EAC5C,MAAM,EACN,eAAoB,EACpB,sBAAsB,GACvB,EAAE,sBAAsB,+BA+ExB"}
@@ -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 { TryItResponse } from '@core/types/try-it.types';
11
+ interface ResponseViewerProps {
12
+ response: TryItResponse | null;
13
+ loading?: boolean;
14
+ error?: string;
15
+ }
16
+ export declare function ResponseViewer({ response, loading, error }: ResponseViewerProps): import("react").JSX.Element | null;
17
+ export {};
18
+ //# sourceMappingURL=ResponseViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResponseViewer.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/TryIt/ResponseViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAO7D,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAA;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AA4DD,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,mBAAmB,sCAyF/E"}
@@ -0,0 +1,38 @@
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 { TryItRequest, TryItResponse } from '@core/types/try-it.types';
11
+ import type { ParameterDef } from './ParameterForm';
12
+ import type { XCodeSample } from './CodeSamples';
13
+ interface TryItPanelProps {
14
+ method: string;
15
+ path: string;
16
+ serverUrl: string;
17
+ parameters?: ParameterDef[];
18
+ requestBodyContentTypes?: string[];
19
+ defaultRequestBody?: string;
20
+ requestBodySchema?: Record<string, unknown>;
21
+ /** Schemas keyed by content type — used to drive per-content-type editors (e.g. multipart form fields). */
22
+ requestBodySchemas?: Record<string, Record<string, unknown> | undefined>;
23
+ /** Security requirement groups (scheme-name lists) — used to block Send until a required scheme is applied. */
24
+ security?: string[][];
25
+ xCodeSamples?: XCodeSample[];
26
+ /**
27
+ * Whether the panel is docked in a side column (`tryItLayout: 'panel'`, the
28
+ * default). Docked panels stick to the viewport and cap their own height. In
29
+ * the inline layout the panel flows full-width below the operation, so pass
30
+ * `docked={false}` to disable the sticky/maxHeight/overflow behavior.
31
+ */
32
+ docked?: boolean;
33
+ onRequest?: (request: TryItRequest) => void;
34
+ onResponse?: (response: TryItResponse) => void;
35
+ }
36
+ export declare function TryItPanel({ method, path, serverUrl, parameters, requestBodyContentTypes, defaultRequestBody, requestBodySchema, requestBodySchemas, security, xCodeSamples, docked, onRequest, onResponse, }: TryItPanelProps): import("react").JSX.Element | null;
37
+ export {};
38
+ //# sourceMappingURL=TryItPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TryItPanel.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/TryIt/TryItPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAK3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAMnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAShD,UAAU,eAAe;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,YAAY,EAAE,CAAA;IAC3B,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAA;IAClC,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC3C,2GAA2G;IAC3G,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,CAAA;IACxE,+GAA+G;IAC/G,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,CAAA;IACrB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAA;IAC3C,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAA;CAC/C;AAED,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,IAAI,EACJ,SAAS,EACT,UAAe,EACf,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,EACR,YAAY,EACZ,MAAa,EACb,SAAS,EACT,UAAU,GACX,EAAE,eAAe,sCA6YjB"}
@@ -0,0 +1,23 @@
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 { TryItRequest } from '@core/types/try-it.types';
11
+ export declare function generateJavaScript(request: TryItRequest, serverUrl: string): string;
12
+ export declare function generatePython(request: TryItRequest, serverUrl: string): string;
13
+ export declare function generateGo(request: TryItRequest, serverUrl: string): string;
14
+ export declare function generateJava(request: TryItRequest, serverUrl: string): string;
15
+ export declare function generateCSharp(request: TryItRequest, serverUrl: string): string;
16
+ export type CodeLanguageId = 'curl' | 'javascript' | 'python' | 'go' | 'java' | 'csharp';
17
+ export interface CodeLanguageOption {
18
+ id: CodeLanguageId;
19
+ label: string;
20
+ prismLanguage: string;
21
+ }
22
+ export declare const CODE_LANGUAGES: CodeLanguageOption[];
23
+ //# sourceMappingURL=code-generators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-generators.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/TryIt/code-generators.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAsB5D,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CA4BnF;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAgC/E;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CA4C3E;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAyC7E;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAiD/E;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,YAAY,GAAG,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAA;AAExF,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,cAAc,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,cAAc,EAAE,kBAAkB,EAO9C,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
+ import type { TryItRequest } from '../../types/try-it.types';
11
+ export declare function generateCurl(request: TryItRequest, serverUrl: string): string;
12
+ //# sourceMappingURL=curl-generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"curl-generator.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/TryIt/curl-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,wBAAgB,YAAY,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAmE7E"}
@@ -0,0 +1,16 @@
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 { TryItPanel } from './TryItPanel';
11
+ export { ParameterForm } from './ParameterForm';
12
+ export type { ParameterDef } from './ParameterForm';
13
+ export { RequestBodyEditor } from './RequestBodyEditor';
14
+ export { ResponseViewer } from './ResponseViewer';
15
+ export { generateCurl } from './curl-generator';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/TryIt/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA"}
@@ -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
+ type HttpMethod = 'get' | 'post' | 'put' | 'delete' | 'patch' | 'options' | 'head';
11
+ interface BadgeProps {
12
+ label: string;
13
+ variant?: 'method' | 'status' | 'protocol' | 'default';
14
+ method?: HttpMethod;
15
+ color?: string;
16
+ }
17
+ export declare function Badge({ label, variant, method, color }: BadgeProps): import("react").JSX.Element;
18
+ export {};
19
+ //# sourceMappingURL=Badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/Badge.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,KAAK,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;AAElF,UAAU,UAAU;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAA;IACtD,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAyBD,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,OAAmB,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,UAAU,+BAW9E"}
@@ -0,0 +1,44 @@
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
+ /**
11
+ * Shared action button.
12
+ *
13
+ * The single source of truth for the `--omnispec-btn-*` action-button styling
14
+ * (toolbar buttons, Try-It/SOAP send, upgrade CTA, etc.). Renders a `<button>`
15
+ * by default, or an `<a>` when `href` is provided (for download / external
16
+ * links that should look identical to a button).
17
+ *
18
+ * Do NOT re-implement `--omnispec-btn-*` styling locally — compose this instead.
19
+ * (Bare icon/toggle buttons with no chrome are a different concern and stay
20
+ * as plain `<button>` elements.)
21
+ */
22
+ import type { ReactNode } from 'react';
23
+ export type ButtonVariant = 'primary' | 'secondary';
24
+ interface ButtonProps {
25
+ /** Visual style. `secondary` (default) is the subtle toolbar button; `primary` is the filled CTA. */
26
+ variant?: ButtonVariant;
27
+ /** Render a secondary button in its "on"/selected state (e.g. an active toggle). */
28
+ active?: boolean;
29
+ /** When set, renders an `<a>` instead of a `<button>`. */
30
+ href?: string;
31
+ download?: boolean;
32
+ target?: string;
33
+ rel?: string;
34
+ type?: 'button' | 'submit' | 'reset';
35
+ onClick?: () => void;
36
+ disabled?: boolean;
37
+ title?: string;
38
+ 'aria-label'?: string;
39
+ className?: string;
40
+ children: ReactNode;
41
+ }
42
+ export declare function Button({ variant, active, href, download, target, rel, type, onClick, disabled, title, 'aria-label': ariaLabel, className, children, }: ButtonProps): import("react").JSX.Element;
43
+ export {};
44
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/Button.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,CAAA;AAEnD,UAAU,WAAW;IACnB,qGAAqG;IACrG,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,oFAAoF;IACpF,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;IACpC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,MAAM,CAAC,EACrB,OAAqB,EACrB,MAAc,EACd,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,GAAG,EACH,IAAe,EACf,OAAO,EACP,QAAQ,EACR,KAAK,EACL,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,QAAQ,GACT,EAAE,WAAW,+BAqCb"}
@@ -0,0 +1,23 @@
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, ReactNode } from 'react';
11
+ interface CollapsibleProps {
12
+ title: ReactNode;
13
+ children: ReactNode;
14
+ defaultOpen?: boolean;
15
+ headerStyle?: CSSProperties;
16
+ /** When set (with expandGeneration), forces open/closed to mirror an "expand all" toggle. */
17
+ expandAll?: boolean;
18
+ /** Bumped on each expand-all toggle so repeated clicks re-apply even after manual toggling. */
19
+ expandGeneration?: number;
20
+ }
21
+ export declare function Collapsible({ title, children, defaultOpen, headerStyle, expandAll, expandGeneration }: CollapsibleProps): import("react").JSX.Element;
22
+ export {};
23
+ //# sourceMappingURL=Collapsible.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/Collapsible.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrD,UAAU,gBAAgB;IACxB,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,EAAE,SAAS,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,aAAa,CAAA;IAC3B,6FAA6F;IAC7F,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,+FAA+F;IAC/F,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAmCD,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAmB,EAAE,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAE,EAAE,gBAAgB,+BA2D/H"}
@@ -0,0 +1,16 @@
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 CopyButtonProps {
11
+ text: string;
12
+ label?: string;
13
+ }
14
+ export declare function CopyButton({ text, label }: CopyButtonProps): import("react").JSX.Element;
15
+ export {};
16
+ //# sourceMappingURL=CopyButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CopyButton.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/CopyButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAgBD,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,KAAc,EAAE,EAAE,eAAe,+BAmBnE"}
@@ -0,0 +1,40 @@
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 { Component } from 'react';
11
+ import type { ErrorInfo, ReactNode } from 'react';
12
+ interface ErrorBoundaryProps {
13
+ children: ReactNode;
14
+ /** Title shown in the fallback UI. */
15
+ title?: string;
16
+ /**
17
+ * Custom fallback. Receives the caught error. When omitted, a themed
18
+ * `ErrorMessage` is rendered so a render-phase crash never takes down the
19
+ * host page (required hardening for the embeddable widget).
20
+ */
21
+ fallback?: (error: Error) => ReactNode;
22
+ /** Optional hook for logging/telemetry when a render crash is caught. */
23
+ onError?: (error: Error, info: ErrorInfo) => void;
24
+ }
25
+ interface ErrorBoundaryState {
26
+ error: Error | null;
27
+ }
28
+ /**
29
+ * Catches render-phase exceptions from any descendant and renders a graceful
30
+ * fallback instead of crashing the whole React tree. React error boundaries
31
+ * must be class components — there is no hooks equivalent.
32
+ */
33
+ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
34
+ constructor(props: ErrorBoundaryProps);
35
+ static getDerivedStateFromError(error: Error): ErrorBoundaryState;
36
+ componentDidCatch(error: Error, info: ErrorInfo): void;
37
+ render(): ReactNode;
38
+ }
39
+ export {};
40
+ //# sourceMappingURL=ErrorBoundary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjD,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,SAAS,CAAA;IACnB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,SAAS,CAAA;IACtC,yEAAyE;IACzE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAA;CAClD;AAED,UAAU,kBAAkB;IAC1B,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;CACpB;AAED;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;gBACtE,KAAK,EAAE,kBAAkB;IAKrC,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,kBAAkB;IAIjE,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI;IAMtD,MAAM,IAAI,SAAS;CAapB"}
@@ -0,0 +1,16 @@
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 ErrorMessageProps {
11
+ title?: string;
12
+ message?: string;
13
+ }
14
+ export declare function ErrorMessage({ title, message, }: ErrorMessageProps): import("react").JSX.Element;
15
+ export {};
16
+ //# sourceMappingURL=ErrorMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/ErrorMessage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,UAAU,iBAAiB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAsC,EACtC,OAAO,GACR,EAAE,iBAAiB,+BAYnB"}
@@ -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
+ export interface NamedExample {
11
+ name: string;
12
+ summary?: string;
13
+ value: unknown;
14
+ }
15
+ interface ExampleSelectorProps {
16
+ examples: NamedExample[];
17
+ selectedName: string;
18
+ onSelect: (name: string) => void;
19
+ }
20
+ export declare function ExampleSelector({ examples, selectedName, onSelect, }: ExampleSelectorProps): import("react").JSX.Element | null;
21
+ export declare function getNamedExamples(media: {
22
+ example?: unknown;
23
+ examples?: Record<string, {
24
+ summary?: string;
25
+ value: unknown;
26
+ }>;
27
+ }): NamedExample[];
28
+ export {};
29
+ //# sourceMappingURL=ExampleSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleSelector.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/common/ExampleSelector.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,OAAO,CAAA;CACf;AAED,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,YAAY,EAAE,CAAA;IACxB,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,YAAY,EACZ,QAAQ,GACT,EAAE,oBAAoB,sCAyBtB;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE;IACL,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;CAChE,GACA,YAAY,EAAE,CAiBhB"}