@redocly/api-docs 0.0.2

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 (974) hide show
  1. package/LICENSE.md +1 -0
  2. package/README.md +3 -0
  3. package/lib/.tsbuildinfo +1 -0
  4. package/lib/RedoclyApiDocs.d.ts +22 -0
  5. package/lib/RedoclyApiDocs.js +1 -0
  6. package/lib/RedoclyApiDocsStandalone.d.ts +18 -0
  7. package/lib/RedoclyApiDocsStandalone.js +26 -0
  8. package/lib/adapters/asyncapi/build/context.d.ts +10 -0
  9. package/lib/adapters/asyncapi/build/context.js +1 -0
  10. package/lib/adapters/asyncapi/build/navigation.d.ts +2 -0
  11. package/lib/adapters/asyncapi/build/navigation.js +1 -0
  12. package/lib/adapters/asyncapi/build/utils.d.ts +3 -0
  13. package/lib/adapters/asyncapi/build/utils.js +1 -0
  14. package/lib/adapters/asyncapi/buildContext.d.ts +2 -0
  15. package/lib/adapters/asyncapi/buildContext.js +1 -0
  16. package/lib/adapters/asyncapi/index.d.ts +14 -0
  17. package/lib/adapters/asyncapi/index.js +1 -0
  18. package/lib/adapters/asyncapi/items/channel/content.d.ts +5 -0
  19. package/lib/adapters/asyncapi/items/channel/content.js +1 -0
  20. package/lib/adapters/asyncapi/items/channel/item.d.ts +13 -0
  21. package/lib/adapters/asyncapi/items/channel/item.js +1 -0
  22. package/lib/adapters/asyncapi/items/operation/content.d.ts +4 -0
  23. package/lib/adapters/asyncapi/items/operation/content.js +3 -0
  24. package/lib/adapters/asyncapi/items/operation/item.d.ts +15 -0
  25. package/lib/adapters/asyncapi/items/operation/item.js +1 -0
  26. package/lib/adapters/asyncapi/items/overview/content.d.ts +10 -0
  27. package/lib/adapters/asyncapi/items/overview/content.js +1 -0
  28. package/lib/adapters/asyncapi/items/overview/item.d.ts +16 -0
  29. package/lib/adapters/asyncapi/items/overview/item.js +1 -0
  30. package/lib/adapters/asyncapi/panels/brokers.d.ts +4 -0
  31. package/lib/adapters/asyncapi/panels/brokers.js +1 -0
  32. package/lib/adapters/asyncapi/panels/download.d.ts +3 -0
  33. package/lib/adapters/asyncapi/panels/download.js +1 -0
  34. package/lib/adapters/asyncapi/panels/group.d.ts +16 -0
  35. package/lib/adapters/asyncapi/panels/group.js +1 -0
  36. package/lib/adapters/asyncapi/panels/overview.d.ts +3 -0
  37. package/lib/adapters/asyncapi/panels/overview.js +1 -0
  38. package/lib/adapters/asyncapi/store.d.ts +4 -0
  39. package/lib/adapters/asyncapi/store.js +1 -0
  40. package/lib/adapters/asyncapi/utils/avro-to-json-schema.d.ts +4 -0
  41. package/lib/adapters/asyncapi/utils/avro-to-json-schema.js +1 -0
  42. package/lib/adapters/asyncapi/utils/get-channel-label.d.ts +3 -0
  43. package/lib/adapters/asyncapi/utils/get-channel-label.js +1 -0
  44. package/lib/adapters/asyncapi/utils/get-protocol-labels.d.ts +24 -0
  45. package/lib/adapters/asyncapi/utils/get-protocol-labels.js +1 -0
  46. package/lib/adapters/asyncapi/utils/get-server-host.d.ts +3 -0
  47. package/lib/adapters/asyncapi/utils/get-server-host.js +1 -0
  48. package/lib/adapters/asyncapi/utils/resolve-schema.d.ts +2 -0
  49. package/lib/adapters/asyncapi/utils/resolve-schema.js +1 -0
  50. package/lib/adapters/asyncapi/utils/resolveInDoc.d.ts +2 -0
  51. package/lib/adapters/asyncapi/utils/resolveInDoc.js +1 -0
  52. package/lib/adapters/build.d.ts +31 -0
  53. package/lib/adapters/build.js +1 -0
  54. package/lib/adapters/graphql/build/context.d.ts +9 -0
  55. package/lib/adapters/graphql/build/context.js +1 -0
  56. package/lib/adapters/graphql/buildContext.d.ts +2 -0
  57. package/lib/adapters/graphql/buildContext.js +1 -0
  58. package/lib/adapters/graphql/buildStoreFromSdl.d.ts +2 -0
  59. package/lib/adapters/graphql/buildStoreFromSdl.js +1 -0
  60. package/lib/adapters/graphql/group/custom.d.ts +2 -0
  61. package/lib/adapters/graphql/group/custom.js +1 -0
  62. package/lib/adapters/graphql/group/default.d.ts +2 -0
  63. package/lib/adapters/graphql/group/default.js +1 -0
  64. package/lib/adapters/graphql/group/errors.d.ts +1 -0
  65. package/lib/adapters/graphql/group/errors.js +1 -0
  66. package/lib/adapters/graphql/group/itemBuilders.d.ts +5 -0
  67. package/lib/adapters/graphql/group/itemBuilders.js +1 -0
  68. package/lib/adapters/graphql/group/utils.d.ts +8 -0
  69. package/lib/adapters/graphql/group/utils.js +1 -0
  70. package/lib/adapters/graphql/index.d.ts +10 -0
  71. package/lib/adapters/graphql/index.js +1 -0
  72. package/lib/adapters/graphql/items/directive/content.d.ts +4 -0
  73. package/lib/adapters/graphql/items/directive/content.js +1 -0
  74. package/lib/adapters/graphql/items/directive/item.d.ts +3 -0
  75. package/lib/adapters/graphql/items/directive/item.js +1 -0
  76. package/lib/adapters/graphql/items/enum/content.d.ts +4 -0
  77. package/lib/adapters/graphql/items/enum/content.js +1 -0
  78. package/lib/adapters/graphql/items/enum/item.d.ts +3 -0
  79. package/lib/adapters/graphql/items/enum/item.js +1 -0
  80. package/lib/adapters/graphql/items/input/content.d.ts +4 -0
  81. package/lib/adapters/graphql/items/input/content.js +1 -0
  82. package/lib/adapters/graphql/items/input/item.d.ts +3 -0
  83. package/lib/adapters/graphql/items/input/item.js +1 -0
  84. package/lib/adapters/graphql/items/interface/content.d.ts +4 -0
  85. package/lib/adapters/graphql/items/interface/content.js +1 -0
  86. package/lib/adapters/graphql/items/interface/item.d.ts +3 -0
  87. package/lib/adapters/graphql/items/interface/item.js +1 -0
  88. package/lib/adapters/graphql/items/mutation/content.d.ts +4 -0
  89. package/lib/adapters/graphql/items/mutation/content.js +1 -0
  90. package/lib/adapters/graphql/items/mutation/item.d.ts +3 -0
  91. package/lib/adapters/graphql/items/mutation/item.js +1 -0
  92. package/lib/adapters/graphql/items/object/content.d.ts +4 -0
  93. package/lib/adapters/graphql/items/object/content.js +1 -0
  94. package/lib/adapters/graphql/items/object/item.d.ts +3 -0
  95. package/lib/adapters/graphql/items/object/item.js +1 -0
  96. package/lib/adapters/graphql/items/operation/content.d.ts +7 -0
  97. package/lib/adapters/graphql/items/operation/content.js +1 -0
  98. package/lib/adapters/graphql/items/overview/content.d.ts +11 -0
  99. package/lib/adapters/graphql/items/overview/content.js +1 -0
  100. package/lib/adapters/graphql/items/overview/item.d.ts +4 -0
  101. package/lib/adapters/graphql/items/overview/item.js +1 -0
  102. package/lib/adapters/graphql/items/query/content.d.ts +4 -0
  103. package/lib/adapters/graphql/items/query/content.js +1 -0
  104. package/lib/adapters/graphql/items/query/item.d.ts +3 -0
  105. package/lib/adapters/graphql/items/query/item.js +1 -0
  106. package/lib/adapters/graphql/items/scalar/content.d.ts +4 -0
  107. package/lib/adapters/graphql/items/scalar/content.js +1 -0
  108. package/lib/adapters/graphql/items/scalar/item.d.ts +3 -0
  109. package/lib/adapters/graphql/items/scalar/item.js +1 -0
  110. package/lib/adapters/graphql/items/subscription/content.d.ts +4 -0
  111. package/lib/adapters/graphql/items/subscription/content.js +1 -0
  112. package/lib/adapters/graphql/items/subscription/item.d.ts +3 -0
  113. package/lib/adapters/graphql/items/subscription/item.js +1 -0
  114. package/lib/adapters/graphql/items/types.d.ts +7 -0
  115. package/lib/adapters/graphql/items/types.js +0 -0
  116. package/lib/adapters/graphql/items/union/content.d.ts +4 -0
  117. package/lib/adapters/graphql/items/union/content.js +1 -0
  118. package/lib/adapters/graphql/items/union/item.d.ts +3 -0
  119. package/lib/adapters/graphql/items/union/item.js +1 -0
  120. package/lib/adapters/graphql/panels/download.d.ts +3 -0
  121. package/lib/adapters/graphql/panels/download.js +1 -0
  122. package/lib/adapters/graphql/panels/group-items.d.ts +4 -0
  123. package/lib/adapters/graphql/panels/group-items.js +1 -0
  124. package/lib/adapters/graphql/panels/overview.d.ts +3 -0
  125. package/lib/adapters/graphql/panels/overview.js +1 -0
  126. package/lib/adapters/graphql/serializeType.d.ts +5 -0
  127. package/lib/adapters/graphql/serializeType.js +1 -0
  128. package/lib/adapters/graphql/store.d.ts +3 -0
  129. package/lib/adapters/graphql/store.js +1 -0
  130. package/lib/adapters/graphql/utils/appendGraphqlItemFeedback.d.ts +2 -0
  131. package/lib/adapters/graphql/utils/appendGraphqlItemFeedback.js +1 -0
  132. package/lib/adapters/graphql/utils/configMetadataRows.d.ts +3 -0
  133. package/lib/adapters/graphql/utils/configMetadataRows.js +1 -0
  134. package/lib/adapters/graphql/utils/constants.d.ts +23 -0
  135. package/lib/adapters/graphql/utils/constants.js +1 -0
  136. package/lib/adapters/graphql/utils/createApiItem.d.ts +15 -0
  137. package/lib/adapters/graphql/utils/createApiItem.js +1 -0
  138. package/lib/adapters/graphql/utils/getBadges.d.ts +4 -0
  139. package/lib/adapters/graphql/utils/getBadges.js +1 -0
  140. package/lib/adapters/graphql/utils/ignoreInternalItems.d.ts +3 -0
  141. package/lib/adapters/graphql/utils/ignoreInternalItems.js +1 -0
  142. package/lib/adapters/graphql/utils/isRootType.d.ts +2 -0
  143. package/lib/adapters/graphql/utils/isRootType.js +1 -0
  144. package/lib/adapters/graphql/utils/menuSlashRegex.d.ts +1 -0
  145. package/lib/adapters/graphql/utils/menuSlashRegex.js +1 -0
  146. package/lib/adapters/graphql/utils/normalizeMenu.d.ts +3 -0
  147. package/lib/adapters/graphql/utils/normalizeMenu.js +1 -0
  148. package/lib/adapters/graphql/utils/shouldIncludeItem.d.ts +2 -0
  149. package/lib/adapters/graphql/utils/shouldIncludeItem.js +1 -0
  150. package/lib/adapters/graphql/utils/summary.d.ts +4 -0
  151. package/lib/adapters/graphql/utils/summary.js +1 -0
  152. package/lib/adapters/graphql/utils/validateMenuConfig.d.ts +3 -0
  153. package/lib/adapters/graphql/utils/validateMenuConfig.js +1 -0
  154. package/lib/adapters/helpers.d.ts +47 -0
  155. package/lib/adapters/helpers.js +1 -0
  156. package/lib/adapters/openapi/build/context.d.ts +13 -0
  157. package/lib/adapters/openapi/build/context.js +1 -0
  158. package/lib/adapters/openapi/build-code-sample-source.d.ts +5 -0
  159. package/lib/adapters/openapi/build-code-sample-source.js +1 -0
  160. package/lib/adapters/openapi/buildContext.d.ts +2 -0
  161. package/lib/adapters/openapi/buildContext.js +1 -0
  162. package/lib/adapters/openapi/configure/apply-request-values.d.ts +3 -0
  163. package/lib/adapters/openapi/configure/apply-request-values.js +1 -0
  164. package/lib/adapters/openapi/configure/index.d.ts +3 -0
  165. package/lib/adapters/openapi/configure/index.js +1 -0
  166. package/lib/adapters/openapi/configure/merge-utils.d.ts +32 -0
  167. package/lib/adapters/openapi/configure/merge-utils.js +1 -0
  168. package/lib/adapters/openapi/configure/resolve-request-values.d.ts +17 -0
  169. package/lib/adapters/openapi/configure/resolve-request-values.js +1 -0
  170. package/lib/adapters/openapi/constants.d.ts +4 -0
  171. package/lib/adapters/openapi/constants.js +1 -0
  172. package/lib/adapters/openapi/group/content.d.ts +28 -0
  173. package/lib/adapters/openapi/group/content.js +1 -0
  174. package/lib/adapters/openapi/group/item.d.ts +11 -0
  175. package/lib/adapters/openapi/group/item.js +1 -0
  176. package/lib/adapters/openapi/index.d.ts +13 -0
  177. package/lib/adapters/openapi/index.js +1 -0
  178. package/lib/adapters/openapi/items/mcp/content.d.ts +5 -0
  179. package/lib/adapters/openapi/items/mcp/content.js +1 -0
  180. package/lib/adapters/openapi/items/mcp/item.d.ts +9 -0
  181. package/lib/adapters/openapi/items/mcp/item.js +1 -0
  182. package/lib/adapters/openapi/items/operation/content.d.ts +3 -0
  183. package/lib/adapters/openapi/items/operation/content.js +1 -0
  184. package/lib/adapters/openapi/items/operation/item.d.ts +9 -0
  185. package/lib/adapters/openapi/items/operation/item.js +1 -0
  186. package/lib/adapters/openapi/items/overview/content.d.ts +18 -0
  187. package/lib/adapters/openapi/items/overview/content.js +1 -0
  188. package/lib/adapters/openapi/items/overview/item.d.ts +3 -0
  189. package/lib/adapters/openapi/items/overview/item.js +1 -0
  190. package/lib/adapters/openapi/items/schema/content.d.ts +3 -0
  191. package/lib/adapters/openapi/items/schema/content.js +1 -0
  192. package/lib/adapters/openapi/items/schema/item.d.ts +9 -0
  193. package/lib/adapters/openapi/items/schema/item.js +1 -0
  194. package/lib/adapters/openapi/panels/download.d.ts +3 -0
  195. package/lib/adapters/openapi/panels/download.js +1 -0
  196. package/lib/adapters/openapi/panels/languages.d.ts +3 -0
  197. package/lib/adapters/openapi/panels/languages.js +1 -0
  198. package/lib/adapters/openapi/panels/mcp.d.ts +3 -0
  199. package/lib/adapters/openapi/panels/mcp.js +1 -0
  200. package/lib/adapters/openapi/panels/overview.d.ts +3 -0
  201. package/lib/adapters/openapi/panels/overview.js +1 -0
  202. package/lib/adapters/openapi/panels/servers.d.ts +3 -0
  203. package/lib/adapters/openapi/panels/servers.js +1 -0
  204. package/lib/adapters/openapi/resolve-openapi-example-value.d.ts +3 -0
  205. package/lib/adapters/openapi/resolve-openapi-example-value.js +1 -0
  206. package/lib/adapters/openapi/store.d.ts +4 -0
  207. package/lib/adapters/openapi/store.js +1 -0
  208. package/lib/adapters/openapi/utils/JsonPointer.d.ts +51 -0
  209. package/lib/adapters/openapi/utils/JsonPointer.js +1 -0
  210. package/lib/adapters/openapi/utils/applyIgnoreNamedSchemasDeep.d.ts +1 -0
  211. package/lib/adapters/openapi/utils/applyIgnoreNamedSchemasDeep.js +1 -0
  212. package/lib/adapters/openapi/utils/helpers.d.ts +14 -0
  213. package/lib/adapters/openapi/utils/helpers.js +1 -0
  214. package/lib/adapters/openapi/utils/merge-mock-server.d.ts +15 -0
  215. package/lib/adapters/openapi/utils/merge-mock-server.js +1 -0
  216. package/lib/adapters/openapi/utils/operation.d.ts +23 -0
  217. package/lib/adapters/openapi/utils/operation.js +1 -0
  218. package/lib/adapters/openapi/utils/resolvePathItemRef.d.ts +2 -0
  219. package/lib/adapters/openapi/utils/resolvePathItemRef.js +1 -0
  220. package/lib/adapters/openapi/utils/url.d.ts +2 -0
  221. package/lib/adapters/openapi/utils/url.js +1 -0
  222. package/lib/adapters/rbac-schema-propagation.d.ts +2 -0
  223. package/lib/adapters/rbac-schema-propagation.js +1 -0
  224. package/lib/adapters/scopedContext.d.ts +5 -0
  225. package/lib/adapters/scopedContext.js +1 -0
  226. package/lib/adapters/utils/convertSwagger2OpenAPI.d.ts +2 -0
  227. package/lib/adapters/utils/convertSwagger2OpenAPI.js +1 -0
  228. package/lib/adapters/utils/dompurify.d.ts +5 -0
  229. package/lib/adapters/utils/dompurify.js +1 -0
  230. package/lib/adapters/utils/infoMetadata.d.ts +5 -0
  231. package/lib/adapters/utils/infoMetadata.js +1 -0
  232. package/lib/adapters/utils/isPlainText.d.ts +6 -0
  233. package/lib/adapters/utils/isPlainText.js +1 -0
  234. package/lib/adapters/utils/markdoc.d.ts +38 -0
  235. package/lib/adapters/utils/markdoc.js +1 -0
  236. package/lib/adapters/utils/parseMarkdown.d.ts +8 -0
  237. package/lib/adapters/utils/parseMarkdown.js +1 -0
  238. package/lib/adapters/utils/seo.d.ts +3 -0
  239. package/lib/adapters/utils/seo.js +1 -0
  240. package/lib/adapters/utils/simplifyAstStructure.d.ts +2 -0
  241. package/lib/adapters/utils/simplifyAstStructure.js +1 -0
  242. package/lib/components/AdmonitionItem.d.ts +6 -0
  243. package/lib/components/AdmonitionItem.js +1 -0
  244. package/lib/components/ChannelAddressItem.d.ts +7 -0
  245. package/lib/components/ChannelAddressItem.js +31 -0
  246. package/lib/components/ContainerItem.d.ts +9 -0
  247. package/lib/components/ContainerItem.js +1 -0
  248. package/lib/components/EmptyMessageItem.d.ts +6 -0
  249. package/lib/components/EmptyMessageItem.js +6 -0
  250. package/lib/components/ErrorBoundary.d.ts +18 -0
  251. package/lib/components/ErrorBoundary.js +1 -0
  252. package/lib/components/ExtensionsItem.d.ts +7 -0
  253. package/lib/components/ExtensionsItem.js +1 -0
  254. package/lib/components/ExternalDocsItem.d.ts +8 -0
  255. package/lib/components/ExternalDocsItem.js +1 -0
  256. package/lib/components/FeedbackItem.d.ts +9 -0
  257. package/lib/components/FeedbackItem.js +17 -0
  258. package/lib/components/Header/HeaderItem.d.ts +91 -0
  259. package/lib/components/Header/HeaderItem.js +105 -0
  260. package/lib/components/Header/HeaderResponseCodeTabs.d.ts +8 -0
  261. package/lib/components/Header/HeaderResponseCodeTabs.js +1 -0
  262. package/lib/components/Header/ResponseDeepLinkAnchor.d.ts +9 -0
  263. package/lib/components/Header/ResponseDeepLinkAnchor.js +1 -0
  264. package/lib/components/Header/hooks.d.ts +5 -0
  265. package/lib/components/Header/hooks.js +1 -0
  266. package/lib/components/InfoMetadataItem.d.ts +7 -0
  267. package/lib/components/InfoMetadataItem.js +1 -0
  268. package/lib/components/ItemContent/ItemContentRenderer.d.ts +8 -0
  269. package/lib/components/ItemContent/ItemContentRenderer.js +11 -0
  270. package/lib/components/ItemContent/SectionHeader.d.ts +8 -0
  271. package/lib/components/ItemContent/SectionHeader.js +14 -0
  272. package/lib/components/ItemContent/hooks.d.ts +5 -0
  273. package/lib/components/ItemContent/hooks.js +1 -0
  274. package/lib/components/ItemContent/sections/BodyMimeTypeField.d.ts +12 -0
  275. package/lib/components/ItemContent/sections/BodyMimeTypeField.js +60 -0
  276. package/lib/components/ItemContent/sections/BodySection.d.ts +7 -0
  277. package/lib/components/ItemContent/sections/BodySection.js +13 -0
  278. package/lib/components/ItemContent/sections/CallbacksSection.d.ts +5 -0
  279. package/lib/components/ItemContent/sections/CallbacksSection.js +131 -0
  280. package/lib/components/ItemContent/sections/FieldsSection.d.ts +7 -0
  281. package/lib/components/ItemContent/sections/FieldsSection.js +79 -0
  282. package/lib/components/ItemContent/sections/MessagesSection.d.ts +5 -0
  283. package/lib/components/ItemContent/sections/MessagesSection.js +58 -0
  284. package/lib/components/ItemContent/sections/ParametersSection.d.ts +6 -0
  285. package/lib/components/ItemContent/sections/ParametersSection.js +4 -0
  286. package/lib/components/ItemContent/sections/ResponsesSection.d.ts +5 -0
  287. package/lib/components/ItemContent/sections/ResponsesSection.js +28 -0
  288. package/lib/components/ItemContent/sections/ValuesSection.d.ts +5 -0
  289. package/lib/components/ItemContent/sections/ValuesSection.js +26 -0
  290. package/lib/components/LicenseOverlay.d.ts +6 -0
  291. package/lib/components/LicenseOverlay.js +42 -0
  292. package/lib/components/Mapper.d.ts +25 -0
  293. package/lib/components/Mapper.js +1 -0
  294. package/lib/components/MarkdownItem.d.ts +6 -0
  295. package/lib/components/MarkdownItem.js +1 -0
  296. package/lib/components/Mcp/McpPrompt.d.ts +8 -0
  297. package/lib/components/Mcp/McpPrompt.js +1 -0
  298. package/lib/components/Mcp/McpResource.d.ts +8 -0
  299. package/lib/components/Mcp/McpResource.js +3 -0
  300. package/lib/components/Mcp/McpTool.d.ts +8 -0
  301. package/lib/components/Mcp/McpTool.js +1 -0
  302. package/lib/components/Mcp/styled.d.ts +19 -0
  303. package/lib/components/Mcp/styled.js +22 -0
  304. package/lib/components/Mcp/utils.d.ts +6 -0
  305. package/lib/components/Mcp/utils.js +1 -0
  306. package/lib/components/MessageLinksItem.d.ts +7 -0
  307. package/lib/components/MessageLinksItem.js +30 -0
  308. package/lib/components/RenderHook.d.ts +6 -0
  309. package/lib/components/RenderHook.js +1 -0
  310. package/lib/components/Replay/EmbeddedReplay.d.ts +16 -0
  311. package/lib/components/Replay/EmbeddedReplay.js +10 -0
  312. package/lib/components/Replay/Replay.d.ts +13 -0
  313. package/lib/components/Replay/Replay.js +1 -0
  314. package/lib/components/Replay/adapterToMarkdownParser.d.ts +12 -0
  315. package/lib/components/Replay/adapterToMarkdownParser.js +1 -0
  316. package/lib/components/Replay/index.d.ts +2 -0
  317. package/lib/components/Replay/index.js +1 -0
  318. package/lib/components/Schema/SchemaDescription.d.ts +5 -0
  319. package/lib/components/Schema/SchemaDescription.js +1 -0
  320. package/lib/components/Schema/SchemaView.d.ts +20 -0
  321. package/lib/components/Schema/SchemaView.js +1 -0
  322. package/lib/components/Schema/helpers.d.ts +1 -0
  323. package/lib/components/Schema/helpers.js +1 -0
  324. package/lib/components/Schema/hooks/useSchemaDocument.d.ts +7 -0
  325. package/lib/components/Schema/hooks/useSchemaDocument.js +1 -0
  326. package/lib/components/Schema/hooks/useSchemaFieldDeepLink.d.ts +5 -0
  327. package/lib/components/Schema/hooks/useSchemaFieldDeepLink.js +1 -0
  328. package/lib/components/Schema/hooks/useVariantIndexFromHash.d.ts +1 -0
  329. package/lib/components/Schema/hooks/useVariantIndexFromHash.js +1 -0
  330. package/lib/components/Schema/styled.d.ts +146 -0
  331. package/lib/components/Schema/styled.js +342 -0
  332. package/lib/components/Schema/utils.d.ts +26 -0
  333. package/lib/components/Schema/utils.js +1 -0
  334. package/lib/components/Schema/views/ArrayRenderer.d.ts +13 -0
  335. package/lib/components/Schema/views/ArrayRenderer.js +1 -0
  336. package/lib/components/Schema/views/CollapsibleNestedFields.d.ts +25 -0
  337. package/lib/components/Schema/views/CollapsibleNestedFields.js +1 -0
  338. package/lib/components/Schema/views/DefaultMappingOptionLabel.d.ts +5 -0
  339. package/lib/components/Schema/views/DefaultMappingOptionLabel.js +15 -0
  340. package/lib/components/Schema/views/DiscriminatorPropertyRow.d.ts +13 -0
  341. package/lib/components/Schema/views/DiscriminatorPropertyRow.js +1 -0
  342. package/lib/components/Schema/views/Examples.d.ts +7 -0
  343. package/lib/components/Schema/views/Examples.js +1 -0
  344. package/lib/components/Schema/views/ExpandableExample.d.ts +4 -0
  345. package/lib/components/Schema/views/ExpandableExample.js +3 -0
  346. package/lib/components/Schema/views/ObjectRenderer.d.ts +14 -0
  347. package/lib/components/Schema/views/ObjectRenderer.js +1 -0
  348. package/lib/components/Schema/views/Pattern.d.ts +6 -0
  349. package/lib/components/Schema/views/Pattern.js +1 -0
  350. package/lib/components/Schema/views/PrimitiveRenderer.d.ts +5 -0
  351. package/lib/components/Schema/views/PrimitiveRenderer.js +1 -0
  352. package/lib/components/Schema/views/PropertyFieldRow.d.ts +16 -0
  353. package/lib/components/Schema/views/PropertyFieldRow.js +1 -0
  354. package/lib/components/Schema/views/PropertyRenderer.d.ts +15 -0
  355. package/lib/components/Schema/views/PropertyRenderer.js +1 -0
  356. package/lib/components/Schema/views/SchemaEnumDescriptions.d.ts +9 -0
  357. package/lib/components/Schema/views/SchemaEnumDescriptions.js +5 -0
  358. package/lib/components/Schema/views/SchemaEnumValues.d.ts +8 -0
  359. package/lib/components/Schema/views/SchemaEnumValues.js +1 -0
  360. package/lib/components/Schema/views/SchemaTitleLabel.d.ts +5 -0
  361. package/lib/components/Schema/views/SchemaTitleLabel.js +1 -0
  362. package/lib/components/Schema/views/SchemaVariantSelector.d.ts +11 -0
  363. package/lib/components/Schema/views/SchemaVariantSelector.js +1 -0
  364. package/lib/components/Schema/views/SwitcherRenderer.d.ts +14 -0
  365. package/lib/components/Schema/views/SwitcherRenderer.js +1 -0
  366. package/lib/components/Schema/views/VariantDropdown.d.ts +14 -0
  367. package/lib/components/Schema/views/VariantDropdown.js +99 -0
  368. package/lib/components/SchemaCatalogLink.d.ts +6 -0
  369. package/lib/components/SchemaCatalogLink.js +35 -0
  370. package/lib/components/Security/Divider.d.ts +4 -0
  371. package/lib/components/Security/Divider.js +15 -0
  372. package/lib/components/Security/RequiredScopes.d.ts +4 -0
  373. package/lib/components/Security/RequiredScopes.js +5 -0
  374. package/lib/components/Security/ScopeTagWithTooltip.d.ts +11 -0
  375. package/lib/components/Security/ScopeTagWithTooltip.js +28 -0
  376. package/lib/components/Security/SecurityButtonPanel.d.ts +5 -0
  377. package/lib/components/Security/SecurityButtonPanel.js +1 -0
  378. package/lib/components/Security/SecurityFlowDetail.d.ts +5 -0
  379. package/lib/components/Security/SecurityFlowDetail.js +1 -0
  380. package/lib/components/Security/SecurityModal.d.ts +6 -0
  381. package/lib/components/Security/SecurityModal.js +1 -0
  382. package/lib/components/Security/SecuritySection.d.ts +3 -0
  383. package/lib/components/Security/SecuritySection.js +1 -0
  384. package/lib/components/Security/styled.d.ts +83 -0
  385. package/lib/components/Security/styled.js +219 -0
  386. package/lib/components/Security/types.d.ts +3 -0
  387. package/lib/components/Security/types.js +0 -0
  388. package/lib/components/SideMenu/SideMenu.d.ts +7 -0
  389. package/lib/components/SideMenu/SideMenu.js +4 -0
  390. package/lib/components/SideMenu/buildMenuItems.d.ts +29 -0
  391. package/lib/components/SideMenu/buildMenuItems.js +1 -0
  392. package/lib/components/SideMenu/useMenuItems.d.ts +14 -0
  393. package/lib/components/SideMenu/useMenuItems.js +1 -0
  394. package/lib/components/StickySidebar/SidebarActions.d.ts +1 -0
  395. package/lib/components/StickySidebar/SidebarActions.js +5 -0
  396. package/lib/components/StickySidebar/StickySidebar.d.ts +7 -0
  397. package/lib/components/StickySidebar/StickySidebar.js +22 -0
  398. package/lib/components/common/Badge.d.ts +43 -0
  399. package/lib/components/common/Badge.js +33 -0
  400. package/lib/components/common/Breadcrumbs.d.ts +11 -0
  401. package/lib/components/common/Breadcrumbs.js +43 -0
  402. package/lib/components/common/ContentWrapper.d.ts +25 -0
  403. package/lib/components/common/ContentWrapper.js +106 -0
  404. package/lib/components/common/DeepLinkAnchor.d.ts +20 -0
  405. package/lib/components/common/DeepLinkAnchor.js +32 -0
  406. package/lib/components/common/ExpandAllButton.d.ts +6 -0
  407. package/lib/components/common/ExpandAllButton.js +3 -0
  408. package/lib/components/common/ExternalDocumentation.d.ts +10 -0
  409. package/lib/components/common/ExternalDocumentation.js +10 -0
  410. package/lib/components/common/LazyMount.d.ts +9 -0
  411. package/lib/components/common/LazyMount.js +3 -0
  412. package/lib/components/common/LazySection.d.ts +14 -0
  413. package/lib/components/common/LazySection.js +9 -0
  414. package/lib/components/common/Markdown.d.ts +7 -0
  415. package/lib/components/common/Markdown.js +1 -0
  416. package/lib/components/common/MoreDetailsButton.d.ts +5 -0
  417. package/lib/components/common/MoreDetailsButton.js +12 -0
  418. package/lib/components/common/NestedToggleButton.d.ts +10 -0
  419. package/lib/components/common/NestedToggleButton.js +16 -0
  420. package/lib/components/common/PanelItem.d.ts +70 -0
  421. package/lib/components/common/PanelItem.js +62 -0
  422. package/lib/components/common/ResponseCodeTabs.d.ts +8 -0
  423. package/lib/components/common/ResponseCodeTabs.js +36 -0
  424. package/lib/components/common/Tag.d.ts +1 -0
  425. package/lib/components/common/Tag.js +11 -0
  426. package/lib/components/common/VendorExtensions.d.ts +7 -0
  427. package/lib/components/common/VendorExtensions.js +5 -0
  428. package/lib/components/common/ViewNested.d.ts +14 -0
  429. package/lib/components/common/ViewNested.js +31 -0
  430. package/lib/components/graphql/ArrowIcon.d.ts +9 -0
  431. package/lib/components/graphql/ArrowIcon.js +4 -0
  432. package/lib/components/graphql/GraphQLArgumentsSection.d.ts +10 -0
  433. package/lib/components/graphql/GraphQLArgumentsSection.js +1 -0
  434. package/lib/components/graphql/GraphQLEnumEmbedded.d.ts +5 -0
  435. package/lib/components/graphql/GraphQLEnumEmbedded.js +3 -0
  436. package/lib/components/graphql/GraphQLFieldView.d.ts +12 -0
  437. package/lib/components/graphql/GraphQLFieldView.js +1 -0
  438. package/lib/components/graphql/GraphQLFieldsEmbedded.d.ts +9 -0
  439. package/lib/components/graphql/GraphQLFieldsEmbedded.js +1 -0
  440. package/lib/components/graphql/GraphQLGroupTypeList.d.ts +5 -0
  441. package/lib/components/graphql/GraphQLGroupTypeList.js +11 -0
  442. package/lib/components/graphql/GraphQLHeaderExtras.d.ts +7 -0
  443. package/lib/components/graphql/GraphQLHeaderExtras.js +1 -0
  444. package/lib/components/graphql/GraphQLReturnTypeDetails.d.ts +11 -0
  445. package/lib/components/graphql/GraphQLReturnTypeDetails.js +18 -0
  446. package/lib/components/graphql/GraphQLTypeView.d.ts +9 -0
  447. package/lib/components/graphql/GraphQLTypeView.js +1 -0
  448. package/lib/components/graphql/GraphQLUnionEmbedded.d.ts +5 -0
  449. package/lib/components/graphql/GraphQLUnionEmbedded.js +1 -0
  450. package/lib/components/graphql/RequiresScopesButton.d.ts +9 -0
  451. package/lib/components/graphql/RequiresScopesButton.js +38 -0
  452. package/lib/components/graphql/RequiresScopesModal.d.ts +9 -0
  453. package/lib/components/graphql/RequiresScopesModal.js +88 -0
  454. package/lib/components/graphql/ViewNested.d.ts +14 -0
  455. package/lib/components/graphql/ViewNested.js +46 -0
  456. package/lib/components/graphql/renderDescription.d.ts +2 -0
  457. package/lib/components/graphql/renderDescription.js +1 -0
  458. package/lib/components/graphql/sections/GraphQLArgsSection.d.ts +5 -0
  459. package/lib/components/graphql/sections/GraphQLArgsSection.js +7 -0
  460. package/lib/components/graphql/sections/GraphQLFieldsSection.d.ts +5 -0
  461. package/lib/components/graphql/sections/GraphQLFieldsSection.js +1 -0
  462. package/lib/components/graphql/sections/ImplementedBySection.d.ts +5 -0
  463. package/lib/components/graphql/sections/ImplementedBySection.js +1 -0
  464. package/lib/components/graphql/sections/ImplementsSection.d.ts +5 -0
  465. package/lib/components/graphql/sections/ImplementsSection.js +1 -0
  466. package/lib/components/graphql/sections/PossibleTypesSection.d.ts +5 -0
  467. package/lib/components/graphql/sections/PossibleTypesSection.js +1 -0
  468. package/lib/components/graphql/sections/RequiresScopesSection.d.ts +5 -0
  469. package/lib/components/graphql/sections/RequiresScopesSection.js +1 -0
  470. package/lib/components/graphql/sections/ReturnTypeSection.d.ts +5 -0
  471. package/lib/components/graphql/sections/ReturnTypeSection.js +7 -0
  472. package/lib/components/graphql/styled.d.ts +45 -0
  473. package/lib/components/graphql/styled.js +124 -0
  474. package/lib/components/markdoc/Heading.d.ts +11 -0
  475. package/lib/components/markdoc/Heading.js +6 -0
  476. package/lib/components/markdoc/SchemaDefinition.d.ts +11 -0
  477. package/lib/components/markdoc/SchemaDefinition.js +6 -0
  478. package/lib/components/markdoc/apiDocsMarkdocComponents.d.ts +6 -0
  479. package/lib/components/markdoc/apiDocsMarkdocComponents.js +1 -0
  480. package/lib/components/markdoc/buildMarkdocOptions.d.ts +9 -0
  481. package/lib/components/markdoc/buildMarkdocOptions.js +1 -0
  482. package/lib/components/markdoc/defaultMarkdocConfig.d.ts +14 -0
  483. package/lib/components/markdoc/defaultMarkdocConfig.js +1 -0
  484. package/lib/components/markdoc/markdocAdapter.d.ts +11 -0
  485. package/lib/components/markdoc/markdocAdapter.js +1 -0
  486. package/lib/components/markdoc/markdocParser.d.ts +6 -0
  487. package/lib/components/markdoc/markdocParser.js +1 -0
  488. package/lib/components/markdoc/markdocRenderer.d.ts +8 -0
  489. package/lib/components/markdoc/markdocRenderer.js +3 -0
  490. package/lib/components/markdoc/tags/mcp-tag-schemas.d.ts +2 -0
  491. package/lib/components/markdoc/tags/mcp-tag-schemas.js +1 -0
  492. package/lib/components/markdoc/tags/schema-definition-tag.d.ts +2 -0
  493. package/lib/components/markdoc/tags/schema-definition-tag.js +1 -0
  494. package/lib/components/panels/DownloadPanelItem.d.ts +5 -0
  495. package/lib/components/panels/DownloadPanelItem.js +26 -0
  496. package/lib/components/panels/ExampleItem/CallbackPayloadItem.d.ts +5 -0
  497. package/lib/components/panels/ExampleItem/CallbackPayloadItem.js +5 -0
  498. package/lib/components/panels/ExampleItem/CodeSampleItem.d.ts +5 -0
  499. package/lib/components/panels/ExampleItem/CodeSampleItem.js +1 -0
  500. package/lib/components/panels/ExampleItem/ExamplesPanelItem.d.ts +3 -0
  501. package/lib/components/panels/ExampleItem/ExamplesPanelItem.js +1 -0
  502. package/lib/components/panels/ExampleItem/GraphQLQueryItem.d.ts +5 -0
  503. package/lib/components/panels/ExampleItem/GraphQLQueryItem.js +1 -0
  504. package/lib/components/panels/ExampleItem/GraphQLResponseItem.d.ts +5 -0
  505. package/lib/components/panels/ExampleItem/GraphQLResponseItem.js +1 -0
  506. package/lib/components/panels/ExampleItem/GraphQLTypeSampleItem.d.ts +5 -0
  507. package/lib/components/panels/ExampleItem/GraphQLTypeSampleItem.js +1 -0
  508. package/lib/components/panels/ExampleItem/GraphQLVariablesItem.d.ts +5 -0
  509. package/lib/components/panels/ExampleItem/GraphQLVariablesItem.js +1 -0
  510. package/lib/components/panels/ExampleItem/PayloadExampleItem.d.ts +5 -0
  511. package/lib/components/panels/ExampleItem/PayloadExampleItem.js +4 -0
  512. package/lib/components/panels/ExampleItem/ResponseExampleItem.d.ts +5 -0
  513. package/lib/components/panels/ExampleItem/ResponseExampleItem.js +1 -0
  514. package/lib/components/panels/ExampleItem/ServerDropdown.d.ts +17 -0
  515. package/lib/components/panels/ExampleItem/ServerDropdown.js +11 -0
  516. package/lib/components/panels/ExampleItem/hooks.d.ts +25 -0
  517. package/lib/components/panels/ExampleItem/hooks.js +1 -0
  518. package/lib/components/panels/ExampleItem/selectors.d.ts +36 -0
  519. package/lib/components/panels/ExampleItem/selectors.js +1 -0
  520. package/lib/components/panels/ExampleItem/styled.d.ts +164 -0
  521. package/lib/components/panels/ExampleItem/styled.js +128 -0
  522. package/lib/components/panels/ExampleItem/types.d.ts +9 -0
  523. package/lib/components/panels/ExampleItem/types.js +0 -0
  524. package/lib/components/panels/GroupPanelItem.d.ts +5 -0
  525. package/lib/components/panels/GroupPanelItem.js +116 -0
  526. package/lib/components/panels/LanguageItem/LanguageDropdown.d.ts +15 -0
  527. package/lib/components/panels/LanguageItem/LanguageDropdown.js +1 -0
  528. package/lib/components/panels/LanguageItem/LanguageItem.d.ts +11 -0
  529. package/lib/components/panels/LanguageItem/LanguageItem.js +1 -0
  530. package/lib/components/panels/LanguageItem/LanguageList.d.ts +10 -0
  531. package/lib/components/panels/LanguageItem/LanguageList.js +1 -0
  532. package/lib/components/panels/LanguageItem/LanguageListSkeleton.d.ts +4 -0
  533. package/lib/components/panels/LanguageItem/LanguageListSkeleton.js +22 -0
  534. package/lib/components/panels/LanguageItem/LanguagePanelItem.d.ts +5 -0
  535. package/lib/components/panels/LanguageItem/LanguagePanelItem.js +1 -0
  536. package/lib/components/panels/LanguageItem/constants.d.ts +2 -0
  537. package/lib/components/panels/LanguageItem/constants.js +1 -0
  538. package/lib/components/panels/LanguageItem/styled.d.ts +94 -0
  539. package/lib/components/panels/LanguageItem/styled.js +96 -0
  540. package/lib/components/panels/LocationsPanelItem.d.ts +5 -0
  541. package/lib/components/panels/LocationsPanelItem.js +1 -0
  542. package/lib/components/panels/McpExamplePanelItem.d.ts +5 -0
  543. package/lib/components/panels/McpExamplePanelItem.js +6 -0
  544. package/lib/components/panels/McpPanelItem.d.ts +3 -0
  545. package/lib/components/panels/McpPanelItem.js +54 -0
  546. package/lib/components/panels/OverviewPanelItem.d.ts +3 -0
  547. package/lib/components/panels/OverviewPanelItem.js +17 -0
  548. package/lib/components/panels/PanelMapper.d.ts +5 -0
  549. package/lib/components/panels/PanelMapper.js +1 -0
  550. package/lib/components/panels/PanelNodeProps.d.ts +4 -0
  551. package/lib/components/panels/PanelNodeProps.js +0 -0
  552. package/lib/components/panels/ReferencesPanelItem.d.ts +5 -0
  553. package/lib/components/panels/ReferencesPanelItem.js +19 -0
  554. package/lib/components/panels/ServerItem/ServerDescriptionTooltip.d.ts +4 -0
  555. package/lib/components/panels/ServerItem/ServerDescriptionTooltip.js +1 -0
  556. package/lib/components/panels/ServerItem/ServerItem.d.ts +5 -0
  557. package/lib/components/panels/ServerItem/ServerItem.js +40 -0
  558. package/lib/components/panels/ServerItem/ServerPanelItem.d.ts +5 -0
  559. package/lib/components/panels/ServerItem/ServerPanelItem.js +1 -0
  560. package/lib/components/panels/asyncapi/BrokerItem/BrokerBindingsSection.d.ts +7 -0
  561. package/lib/components/panels/asyncapi/BrokerItem/BrokerBindingsSection.js +1 -0
  562. package/lib/components/panels/asyncapi/BrokerItem/BrokerModal.d.ts +8 -0
  563. package/lib/components/panels/asyncapi/BrokerItem/BrokerModal.js +49 -0
  564. package/lib/components/panels/asyncapi/BrokerItem/BrokerOverviewSection.d.ts +6 -0
  565. package/lib/components/panels/asyncapi/BrokerItem/BrokerOverviewSection.js +25 -0
  566. package/lib/components/panels/asyncapi/BrokerItem/BrokerPanel.styled.d.ts +7 -0
  567. package/lib/components/panels/asyncapi/BrokerItem/BrokerPanel.styled.js +25 -0
  568. package/lib/components/panels/asyncapi/BrokerItem/BrokerPanelItem.d.ts +5 -0
  569. package/lib/components/panels/asyncapi/BrokerItem/BrokerPanelItem.js +48 -0
  570. package/lib/components/panels/asyncapi/ChannelBindingItem/ChannelBindingItem.d.ts +5 -0
  571. package/lib/components/panels/asyncapi/ChannelBindingItem/ChannelBindingItem.js +32 -0
  572. package/lib/components/panels/asyncapi/MessageBindingItem/MessageBindingItem.d.ts +5 -0
  573. package/lib/components/panels/asyncapi/MessageBindingItem/MessageBindingItem.js +1 -0
  574. package/lib/components/panels/asyncapi/MessageReferencesItem/MessageReferencesItem.d.ts +5 -0
  575. package/lib/components/panels/asyncapi/MessageReferencesItem/MessageReferencesItem.js +42 -0
  576. package/lib/components/panels/asyncapi/OperationBindingItem/OperationBindingItem.d.ts +5 -0
  577. package/lib/components/panels/asyncapi/OperationBindingItem/OperationBindingItem.js +1 -0
  578. package/lib/components/panels/asyncapi/common/bindingPanel.d.ts +29 -0
  579. package/lib/components/panels/asyncapi/common/bindingPanel.js +48 -0
  580. package/lib/components/panels/shared-panel-styles.d.ts +8 -0
  581. package/lib/components/panels/shared-panel-styles.js +38 -0
  582. package/lib/components/panels/styled.d.ts +20 -0
  583. package/lib/components/panels/styled.js +28 -0
  584. package/lib/components/pluggable/RedocCodeSample.d.ts +12 -0
  585. package/lib/components/pluggable/RedocCodeSample.js +1 -0
  586. package/lib/components/pluggable/RedocExample.d.ts +8 -0
  587. package/lib/components/pluggable/RedocExample.js +7 -0
  588. package/lib/components/pluggable/RedocResponseSamples.d.ts +9 -0
  589. package/lib/components/pluggable/RedocResponseSamples.js +1 -0
  590. package/lib/components/pluggable/RedocSchema.d.ts +12 -0
  591. package/lib/components/pluggable/RedocSchema.js +1 -0
  592. package/lib/components/pluggable/index.d.ts +6 -0
  593. package/lib/components/pluggable/index.js +1 -0
  594. package/lib/constants/openapi.d.ts +30 -0
  595. package/lib/constants/openapi.js +1 -0
  596. package/lib/constants/rendering.d.ts +8 -0
  597. package/lib/constants/rendering.js +1 -0
  598. package/lib/contexts/markdownAdapter.d.ts +21 -0
  599. package/lib/contexts/markdownAdapter.js +1 -0
  600. package/lib/contexts/telemetry.d.ts +3 -0
  601. package/lib/contexts/telemetry.js +1 -0
  602. package/lib/empty-linkedom.d.ts +1 -0
  603. package/lib/empty-linkedom.js +1 -0
  604. package/lib/empty.d.ts +7 -0
  605. package/lib/empty.js +1 -0
  606. package/lib/events/codeSampleCopy.d.ts +2 -0
  607. package/lib/events/codeSampleCopy.js +1 -0
  608. package/lib/events/creator.d.ts +2 -0
  609. package/lib/events/creator.js +1 -0
  610. package/lib/events/index.d.ts +8 -0
  611. package/lib/events/index.js +1 -0
  612. package/lib/events/languageSwitch.d.ts +2 -0
  613. package/lib/events/languageSwitch.js +1 -0
  614. package/lib/events/panelToggle.d.ts +2 -0
  615. package/lib/events/panelToggle.js +1 -0
  616. package/lib/events/serverSwitch.d.ts +2 -0
  617. package/lib/events/serverSwitch.js +1 -0
  618. package/lib/events/tryItOpen.d.ts +2 -0
  619. package/lib/events/tryItOpen.js +1 -0
  620. package/lib/events/tryItSent.d.ts +2 -0
  621. package/lib/events/tryItSent.js +1 -0
  622. package/lib/events/types.d.ts +9 -0
  623. package/lib/events/types.js +1 -0
  624. package/lib/hoc/withItemId.d.ts +6 -0
  625. package/lib/hoc/withItemId.js +1 -0
  626. package/lib/hoc/withReplayPrefetch.d.ts +14 -0
  627. package/lib/hoc/withReplayPrefetch.js +1 -0
  628. package/lib/hoc/withRouter.d.ts +4 -0
  629. package/lib/hoc/withRouter.js +1 -0
  630. package/lib/hoc/withStoreProvider.d.ts +23 -0
  631. package/lib/hoc/withStoreProvider.js +1 -0
  632. package/lib/hooks/useApiDocsRoutes.d.ts +8 -0
  633. package/lib/hooks/useApiDocsRoutes.js +1 -0
  634. package/lib/hooks/useApiDocsScroll.d.ts +9 -0
  635. package/lib/hooks/useApiDocsScroll.js +1 -0
  636. package/lib/hooks/useBodyScrollLock.d.ts +1 -0
  637. package/lib/hooks/useBodyScrollLock.js +1 -0
  638. package/lib/hooks/useCodeHighlight.d.ts +28 -0
  639. package/lib/hooks/useCodeHighlight.js +1 -0
  640. package/lib/hooks/useCopyCodeTelemetry.d.ts +13 -0
  641. package/lib/hooks/useCopyCodeTelemetry.js +1 -0
  642. package/lib/hooks/useDeepLinkSection.d.ts +16 -0
  643. package/lib/hooks/useDeepLinkSection.js +1 -0
  644. package/lib/hooks/useExpandableSection.d.ts +4 -0
  645. package/lib/hooks/useExpandableSection.js +1 -0
  646. package/lib/hooks/useHashLinkRedirect.d.ts +4 -0
  647. package/lib/hooks/useHashLinkRedirect.js +1 -0
  648. package/lib/hooks/useIsExpanded.d.ts +1 -0
  649. package/lib/hooks/useIsExpanded.js +1 -0
  650. package/lib/hooks/useIsHydrated.d.ts +4 -0
  651. package/lib/hooks/useIsHydrated.js +1 -0
  652. package/lib/hooks/useLicense.d.ts +6 -0
  653. package/lib/hooks/useLicense.js +1 -0
  654. package/lib/hooks/useManualScrollAnchor.d.ts +19 -0
  655. package/lib/hooks/useManualScrollAnchor.js +1 -0
  656. package/lib/hooks/useModalDismiss.d.ts +2 -0
  657. package/lib/hooks/useModalDismiss.js +1 -0
  658. package/lib/hooks/useNormalizeUrl.d.ts +2 -0
  659. package/lib/hooks/useNormalizeUrl.js +1 -0
  660. package/lib/hooks/useRouterHashBridge.d.ts +21 -0
  661. package/lib/hooks/useRouterHashBridge.js +1 -0
  662. package/lib/hooks/useScrollSpyUrlSync.d.ts +3 -0
  663. package/lib/hooks/useScrollSpyUrlSync.js +1 -0
  664. package/lib/hooks/useTelemetry.d.ts +2 -0
  665. package/lib/hooks/useTelemetry.js +1 -0
  666. package/lib/hooks/useTelemetryPageMetrics.d.ts +12 -0
  667. package/lib/hooks/useTelemetryPageMetrics.js +1 -0
  668. package/lib/hooks/useTranslate.d.ts +5 -0
  669. package/lib/hooks/useTranslate.js +1 -0
  670. package/lib/hooks/useUrlHash.d.ts +7 -0
  671. package/lib/hooks/useUrlHash.js +1 -0
  672. package/lib/hooks/useUserScrollIntent.d.ts +18 -0
  673. package/lib/hooks/useUserScrollIntent.js +1 -0
  674. package/lib/hooks/useVisitedChannelsTracker.d.ts +6 -0
  675. package/lib/hooks/useVisitedChannelsTracker.js +1 -0
  676. package/lib/icons/CSharpIcon/CSharpIcon.d.ts +2 -0
  677. package/lib/icons/CSharpIcon/CSharpIcon.js +1 -0
  678. package/lib/icons/CSharpIcon/index.d.ts +1 -0
  679. package/lib/icons/CSharpIcon/index.js +1 -0
  680. package/lib/icons/CurlIcon/CurlIcon.d.ts +4 -0
  681. package/lib/icons/CurlIcon/CurlIcon.js +16 -0
  682. package/lib/icons/CurlIcon/index.d.ts +1 -0
  683. package/lib/icons/CurlIcon/index.js +1 -0
  684. package/lib/icons/DefaultMappingIcon/DefaultMappingIcon.d.ts +4 -0
  685. package/lib/icons/DefaultMappingIcon/DefaultMappingIcon.js +10 -0
  686. package/lib/icons/DefaultMappingIcon/index.d.ts +1 -0
  687. package/lib/icons/DefaultMappingIcon/index.js +1 -0
  688. package/lib/icons/GOIcon/GOIcon.d.ts +2 -0
  689. package/lib/icons/GOIcon/GOIcon.js +1 -0
  690. package/lib/icons/GOIcon/index.d.ts +1 -0
  691. package/lib/icons/GOIcon/index.js +1 -0
  692. package/lib/icons/JavaIcon/JavaIcon.d.ts +2 -0
  693. package/lib/icons/JavaIcon/JavaIcon.js +1 -0
  694. package/lib/icons/JavaIcon/index.d.ts +1 -0
  695. package/lib/icons/JavaIcon/index.js +1 -0
  696. package/lib/icons/JavaScriptIcon/JavaScriptIcon.d.ts +2 -0
  697. package/lib/icons/JavaScriptIcon/JavaScriptIcon.js +1 -0
  698. package/lib/icons/JavaScriptIcon/index.d.ts +1 -0
  699. package/lib/icons/JavaScriptIcon/index.js +1 -0
  700. package/lib/icons/ListIcon/ListIcon.d.ts +14 -0
  701. package/lib/icons/ListIcon/ListIcon.js +10 -0
  702. package/lib/icons/NodeJSIcon/NodeJSIcon.d.ts +2 -0
  703. package/lib/icons/NodeJSIcon/NodeJSIcon.js +1 -0
  704. package/lib/icons/NodeJSIcon/index.d.ts +1 -0
  705. package/lib/icons/NodeJSIcon/index.js +1 -0
  706. package/lib/icons/PHPIcon/PHPIcon.d.ts +2 -0
  707. package/lib/icons/PHPIcon/PHPIcon.js +1 -0
  708. package/lib/icons/PHPIcon/index.d.ts +1 -0
  709. package/lib/icons/PHPIcon/index.js +1 -0
  710. package/lib/icons/PayloadIcon/PayloadIcon.d.ts +2 -0
  711. package/lib/icons/PayloadIcon/PayloadIcon.js +1 -0
  712. package/lib/icons/PayloadIcon/index.d.ts +1 -0
  713. package/lib/icons/PayloadIcon/index.js +1 -0
  714. package/lib/icons/PlusCircleIcon/PlusCircleIcon.d.ts +7 -0
  715. package/lib/icons/PlusCircleIcon/PlusCircleIcon.js +10 -0
  716. package/lib/icons/PythonIcon/PythonIcon.d.ts +2 -0
  717. package/lib/icons/PythonIcon/PythonIcon.js +1 -0
  718. package/lib/icons/PythonIcon/index.d.ts +1 -0
  719. package/lib/icons/PythonIcon/index.js +1 -0
  720. package/lib/icons/RIcon/RIcon.d.ts +2 -0
  721. package/lib/icons/RIcon/RIcon.js +1 -0
  722. package/lib/icons/RIcon/index.d.ts +1 -0
  723. package/lib/icons/RIcon/index.js +1 -0
  724. package/lib/icons/RubyIcon/RubyIcon.d.ts +2 -0
  725. package/lib/icons/RubyIcon/RubyIcon.js +1 -0
  726. package/lib/icons/RubyIcon/index.d.ts +1 -0
  727. package/lib/icons/RubyIcon/index.js +1 -0
  728. package/lib/index.d.ts +60 -0
  729. package/lib/index.js +1 -0
  730. package/lib/jotai/app.d.ts +76 -0
  731. package/lib/jotai/app.js +1 -0
  732. package/lib/jotai/examples.d.ts +5 -0
  733. package/lib/jotai/examples.js +1 -0
  734. package/lib/jotai/graphql.d.ts +10 -0
  735. package/lib/jotai/graphql.js +1 -0
  736. package/lib/jotai/itemStore.d.ts +49 -0
  737. package/lib/jotai/itemStore.js +1 -0
  738. package/lib/jotai/routes.d.ts +4 -0
  739. package/lib/jotai/routes.js +1 -0
  740. package/lib/jotai/schema.d.ts +3 -0
  741. package/lib/jotai/schema.js +1 -0
  742. package/lib/jotai/store.d.ts +25 -0
  743. package/lib/jotai/store.js +1 -0
  744. package/lib/options/constants.d.ts +16 -0
  745. package/lib/options/constants.js +1 -0
  746. package/lib/options/helpers.d.ts +26 -0
  747. package/lib/options/helpers.js +1 -0
  748. package/lib/options/normalizeOptions.d.ts +2 -0
  749. package/lib/options/normalizeOptions.js +1 -0
  750. package/lib/pages/EntryPage.d.ts +25 -0
  751. package/lib/pages/EntryPage.js +5 -0
  752. package/lib/pages/GroupPage.d.ts +1 -0
  753. package/lib/pages/GroupPage.js +47 -0
  754. package/lib/pages/ItemPage.d.ts +1 -0
  755. package/lib/pages/ItemPage.js +26 -0
  756. package/lib/pages/NotFoundPage.d.ts +6 -0
  757. package/lib/pages/NotFoundPage.js +1 -0
  758. package/lib/pages/OverviewPage.d.ts +1 -0
  759. package/lib/pages/OverviewPage.js +11 -0
  760. package/lib/pages/TopLevelEntryView.d.ts +17 -0
  761. package/lib/pages/TopLevelEntryView.js +1 -0
  762. package/lib/services/code-samples/builder.d.ts +38 -0
  763. package/lib/services/code-samples/builder.js +1 -0
  764. package/lib/services/code-samples/constants/try-it-loading-state.d.ts +6 -0
  765. package/lib/services/code-samples/constants/try-it-loading-state.js +1 -0
  766. package/lib/services/code-samples/convertSampleToString.d.ts +3 -0
  767. package/lib/services/code-samples/convertSampleToString.js +17 -0
  768. package/lib/services/code-samples/discriminator.d.ts +39 -0
  769. package/lib/services/code-samples/discriminator.js +1 -0
  770. package/lib/services/code-samples/example-key.d.ts +25 -0
  771. package/lib/services/code-samples/example-key.js +1 -0
  772. package/lib/services/code-samples/generators/csharp-newtonsoft.d.ts +9 -0
  773. package/lib/services/code-samples/generators/csharp-newtonsoft.js +2 -0
  774. package/lib/services/code-samples/generators/csharp.d.ts +9 -0
  775. package/lib/services/code-samples/generators/csharp.js +2 -0
  776. package/lib/services/code-samples/generators/curl.d.ts +8 -0
  777. package/lib/services/code-samples/generators/curl.js +7 -0
  778. package/lib/services/code-samples/generators/go.d.ts +13 -0
  779. package/lib/services/code-samples/generators/go.js +3 -0
  780. package/lib/services/code-samples/generators/helpers/code-builder.d.ts +56 -0
  781. package/lib/services/code-samples/generators/helpers/code-builder.js +3 -0
  782. package/lib/services/code-samples/generators/helpers/mime.d.ts +1 -0
  783. package/lib/services/code-samples/generators/helpers/mime.js +1 -0
  784. package/lib/services/code-samples/generators/helpers/oauth2-snippets.d.ts +21 -0
  785. package/lib/services/code-samples/generators/helpers/oauth2-snippets.js +1 -0
  786. package/lib/services/code-samples/generators/helpers/php-array.d.ts +6 -0
  787. package/lib/services/code-samples/generators/helpers/php-array.js +5 -0
  788. package/lib/services/code-samples/generators/helpers/r-utils.d.ts +7 -0
  789. package/lib/services/code-samples/generators/helpers/r-utils.js +6 -0
  790. package/lib/services/code-samples/generators/helpers/shell.d.ts +8 -0
  791. package/lib/services/code-samples/generators/helpers/shell.js +1 -0
  792. package/lib/services/code-samples/generators/helpers/string-utils.d.ts +4 -0
  793. package/lib/services/code-samples/generators/helpers/string-utils.js +1 -0
  794. package/lib/services/code-samples/generators/helpers/stringify-js.d.ts +11 -0
  795. package/lib/services/code-samples/generators/helpers/stringify-js.js +8 -0
  796. package/lib/services/code-samples/generators/helpers/sub-request.d.ts +2 -0
  797. package/lib/services/code-samples/generators/helpers/sub-request.js +1 -0
  798. package/lib/services/code-samples/generators/helpers/url-helpers.d.ts +17 -0
  799. package/lib/services/code-samples/generators/helpers/url-helpers.js +2 -0
  800. package/lib/services/code-samples/generators/index.d.ts +16 -0
  801. package/lib/services/code-samples/generators/index.js +1 -0
  802. package/lib/services/code-samples/generators/java.d.ts +9 -0
  803. package/lib/services/code-samples/generators/java.js +3 -0
  804. package/lib/services/code-samples/generators/java8.d.ts +9 -0
  805. package/lib/services/code-samples/generators/java8.js +2 -0
  806. package/lib/services/code-samples/generators/javascript.d.ts +9 -0
  807. package/lib/services/code-samples/generators/javascript.js +1 -0
  808. package/lib/services/code-samples/generators/node.d.ts +10 -0
  809. package/lib/services/code-samples/generators/node.js +1 -0
  810. package/lib/services/code-samples/generators/php.d.ts +13 -0
  811. package/lib/services/code-samples/generators/php.js +6 -0
  812. package/lib/services/code-samples/generators/python.d.ts +3 -0
  813. package/lib/services/code-samples/generators/python.js +9 -0
  814. package/lib/services/code-samples/generators/r.d.ts +10 -0
  815. package/lib/services/code-samples/generators/r.js +7 -0
  816. package/lib/services/code-samples/generators/ruby.d.ts +10 -0
  817. package/lib/services/code-samples/generators/ruby.js +1 -0
  818. package/lib/services/code-samples/generators/types.d.ts +6 -0
  819. package/lib/services/code-samples/generators/types.js +0 -0
  820. package/lib/services/code-samples/har.d.ts +45 -0
  821. package/lib/services/code-samples/har.js +0 -0
  822. package/lib/services/code-samples/index.d.ts +8 -0
  823. package/lib/services/code-samples/index.js +1 -0
  824. package/lib/services/code-samples/replay/embedded-replay-converter.d.ts +6 -0
  825. package/lib/services/code-samples/replay/embedded-replay-converter.js +1 -0
  826. package/lib/services/code-samples/replay/from-openapi-document.d.ts +12 -0
  827. package/lib/services/code-samples/replay/from-openapi-document.js +1 -0
  828. package/lib/services/code-samples/replay/har-to-code-sample-har.d.ts +41 -0
  829. package/lib/services/code-samples/replay/har-to-code-sample-har.js +1 -0
  830. package/lib/services/code-samples/replay/index.d.ts +8 -0
  831. package/lib/services/code-samples/replay/index.js +1 -0
  832. package/lib/services/code-samples/replay/map-servers.d.ts +19 -0
  833. package/lib/services/code-samples/replay/map-servers.js +1 -0
  834. package/lib/services/code-samples/replay/merge-configure-into-source.d.ts +17 -0
  835. package/lib/services/code-samples/replay/merge-configure-into-source.js +1 -0
  836. package/lib/services/code-samples/replay/normalize-servers.d.ts +3 -0
  837. package/lib/services/code-samples/replay/normalize-servers.js +1 -0
  838. package/lib/services/code-samples/replay/overlay-converter.d.ts +15 -0
  839. package/lib/services/code-samples/replay/overlay-converter.js +1 -0
  840. package/lib/services/code-samples/replay/replay-adapter.d.ts +5 -0
  841. package/lib/services/code-samples/replay/replay-adapter.js +1 -0
  842. package/lib/services/code-samples/replay/replay-handler.d.ts +5 -0
  843. package/lib/services/code-samples/replay/replay-handler.js +1 -0
  844. package/lib/services/code-samples/replay/replay-predefined-env.d.ts +4 -0
  845. package/lib/services/code-samples/replay/replay-predefined-env.js +1 -0
  846. package/lib/services/code-samples/replay/replay-types.d.ts +75 -0
  847. package/lib/services/code-samples/replay/replay-types.js +0 -0
  848. package/lib/services/code-samples/resolvers.d.ts +5 -0
  849. package/lib/services/code-samples/resolvers.js +1 -0
  850. package/lib/services/code-samples/sample-har.d.ts +41 -0
  851. package/lib/services/code-samples/sample-har.js +0 -0
  852. package/lib/services/code-samples/server-variables.d.ts +11 -0
  853. package/lib/services/code-samples/server-variables.js +1 -0
  854. package/lib/services/code-samples/source.d.ts +107 -0
  855. package/lib/services/code-samples/source.js +0 -0
  856. package/lib/services/code-samples/use-resolvers.d.ts +2 -0
  857. package/lib/services/code-samples/use-resolvers.js +1 -0
  858. package/lib/services/code-samples/utils/map-request-values.d.ts +6 -0
  859. package/lib/services/code-samples/utils/map-request-values.js +1 -0
  860. package/lib/services/license/check.d.ts +14 -0
  861. package/lib/services/license/check.js +1 -0
  862. package/lib/services/operation-samples/index.d.ts +14 -0
  863. package/lib/services/operation-samples/index.js +2 -0
  864. package/lib/services/operation-samples/types.d.ts +37 -0
  865. package/lib/services/operation-samples/types.js +0 -0
  866. package/lib/services/schema/dialects/graphqlSchema.d.ts +1 -0
  867. package/lib/services/schema/dialects/graphqlSchema.js +1 -0
  868. package/lib/services/schema/dialects/jsonSchema.d.ts +3 -0
  869. package/lib/services/schema/dialects/jsonSchema.js +1 -0
  870. package/lib/services/schema/index.d.ts +1 -0
  871. package/lib/services/schema/index.js +1 -0
  872. package/lib/services/schema/propertyBuilder.d.ts +32 -0
  873. package/lib/services/schema/propertyBuilder.js +1 -0
  874. package/lib/services/schema/propertyTreeBuilder.d.ts +21 -0
  875. package/lib/services/schema/propertyTreeBuilder.js +1 -0
  876. package/lib/services/schema/schemaProcessor.d.ts +2 -0
  877. package/lib/services/schema/schemaProcessor.js +1 -0
  878. package/lib/services/schema/variant-label.d.ts +6 -0
  879. package/lib/services/schema/variant-label.js +1 -0
  880. package/lib/telemetry/RedocTelemetry.d.ts +15 -0
  881. package/lib/telemetry/RedocTelemetry.js +1 -0
  882. package/lib/types/asyncapi.d.ts +367 -0
  883. package/lib/types/asyncapi.js +1 -0
  884. package/lib/types/common.d.ts +168 -0
  885. package/lib/types/common.js +1 -0
  886. package/lib/types/content.d.ts +535 -0
  887. package/lib/types/content.js +0 -0
  888. package/lib/types/events.d.ts +75 -0
  889. package/lib/types/events.js +0 -0
  890. package/lib/types/graphql-store.d.ts +60 -0
  891. package/lib/types/graphql-store.js +1 -0
  892. package/lib/types/graphql.d.ts +54 -0
  893. package/lib/types/graphql.js +0 -0
  894. package/lib/types/index.d.ts +10 -0
  895. package/lib/types/index.js +1 -0
  896. package/lib/types/openapi.d.ts +586 -0
  897. package/lib/types/openapi.js +1 -0
  898. package/lib/types/options.d.ts +260 -0
  899. package/lib/types/options.js +0 -0
  900. package/lib/types/pluggable.d.ts +4 -0
  901. package/lib/types/pluggable.js +0 -0
  902. package/lib/types/schema.d.ts +155 -0
  903. package/lib/types/schema.js +1 -0
  904. package/lib/types/store.d.ts +182 -0
  905. package/lib/types/store.js +0 -0
  906. package/lib/utils/calculateMaxLength.d.ts +6 -0
  907. package/lib/utils/calculateMaxLength.js +1 -0
  908. package/lib/utils/compose.d.ts +7 -0
  909. package/lib/utils/compose.js +1 -0
  910. package/lib/utils/cookies.d.ts +7 -0
  911. package/lib/utils/cookies.js +1 -0
  912. package/lib/utils/deep-link.d.ts +146 -0
  913. package/lib/utils/deep-link.js +1 -0
  914. package/lib/utils/environments.d.ts +6 -0
  915. package/lib/utils/environments.js +1 -0
  916. package/lib/utils/expansion.d.ts +3 -0
  917. package/lib/utils/expansion.js +1 -0
  918. package/lib/utils/extract-extensions.d.ts +4 -0
  919. package/lib/utils/extract-extensions.js +1 -0
  920. package/lib/utils/fetch-openapi-definition.d.ts +6 -0
  921. package/lib/utils/fetch-openapi-definition.js +1 -0
  922. package/lib/utils/form-urlencoded.d.ts +6 -0
  923. package/lib/utils/form-urlencoded.js +1 -0
  924. package/lib/utils/graphql-directive-utils.d.ts +6 -0
  925. package/lib/utils/graphql-directive-utils.js +3 -0
  926. package/lib/utils/graphql-reference-map.d.ts +3 -0
  927. package/lib/utils/graphql-reference-map.js +1 -0
  928. package/lib/utils/graphql-samples.d.ts +25 -0
  929. package/lib/utils/graphql-samples.js +17 -0
  930. package/lib/utils/graphql-scopes.d.ts +6 -0
  931. package/lib/utils/graphql-scopes.js +1 -0
  932. package/lib/utils/graphql-type-expansion.d.ts +5 -0
  933. package/lib/utils/graphql-type-expansion.js +1 -0
  934. package/lib/utils/http-methods.d.ts +8 -0
  935. package/lib/utils/http-methods.js +1 -0
  936. package/lib/utils/languages.d.ts +18 -0
  937. package/lib/utils/languages.js +1 -0
  938. package/lib/utils/loadAndBundleSpec.d.ts +4 -0
  939. package/lib/utils/loadAndBundleSpec.js +1 -0
  940. package/lib/utils/logo.d.ts +8 -0
  941. package/lib/utils/logo.js +1 -0
  942. package/lib/utils/media-type.d.ts +7 -0
  943. package/lib/utils/media-type.js +1 -0
  944. package/lib/utils/multipart.d.ts +7 -0
  945. package/lib/utils/multipart.js +1 -0
  946. package/lib/utils/refPointer.d.ts +2 -0
  947. package/lib/utils/refPointer.js +1 -0
  948. package/lib/utils/resolveText.d.ts +2 -0
  949. package/lib/utils/resolveText.js +1 -0
  950. package/lib/utils/routing.d.ts +49 -0
  951. package/lib/utils/routing.js +1 -0
  952. package/lib/utils/scroll-anchoring.d.ts +3 -0
  953. package/lib/utils/scroll-anchoring.js +1 -0
  954. package/lib/utils/security-scope.d.ts +3 -0
  955. package/lib/utils/security-scope.js +1 -0
  956. package/lib/utils/serialize-parameter.d.ts +8 -0
  957. package/lib/utils/serialize-parameter.js +1 -0
  958. package/lib/utils/serialize-querystring.d.ts +6 -0
  959. package/lib/utils/serialize-querystring.js +1 -0
  960. package/lib/utils/session-storage.d.ts +2 -0
  961. package/lib/utils/session-storage.js +1 -0
  962. package/lib/utils/split-badges-by-position.d.ts +5 -0
  963. package/lib/utils/split-badges-by-position.js +1 -0
  964. package/lib/utils/status-code.d.ts +1 -0
  965. package/lib/utils/status-code.js +1 -0
  966. package/lib/utils/string.d.ts +18 -0
  967. package/lib/utils/string.js +1 -0
  968. package/lib/utils/telemetry.d.ts +1 -0
  969. package/lib/utils/telemetry.js +1 -0
  970. package/lib/utils/url.d.ts +9 -0
  971. package/lib/utils/url.js +1 -0
  972. package/lib/utils/xml.d.ts +1 -0
  973. package/lib/utils/xml.js +1 -0
  974. package/package.json +97 -0
@@ -0,0 +1,260 @@
1
+ import type { AsyncApiConfig, GraphQLConfig, LayoutVariant, RedocConfig } from '@redocly/config';
2
+ import type { ConfigFunction, Node, Schema } from '@markdoc/markdoc';
3
+ import type { MarkdocTagSchema } from '@redocly/theme/markdoc/tags/types';
4
+ import type { UserClaims } from '@redocly/theme/core/types';
5
+ import type { ConfigureRequestValues, ConfigureServerRequestValues } from '@redocly/theme/ext/configure';
6
+ import type { ReactElement } from 'react';
7
+ import type { ComponentType } from 'react';
8
+ import type { ApiSpecType, SidebarLogo } from './common.js';
9
+ import type { ProtocolVariant } from './asyncapi.js';
10
+ import type { GraphQLOptions } from './graphql.js';
11
+ import type { Events } from './events.js';
12
+ import type { OpenAPIInfo, OpenAPIOperation as OpenAPIOperationType, OpenAPIParameter, OpenAPIServer, OpenAPITag } from './openapi.js';
13
+ import type { Referenced } from './common.js';
14
+ export type Operation = {
15
+ id: string;
16
+ path: string;
17
+ httpVerb: string;
18
+ name: string;
19
+ };
20
+ export type DownloadUrl = {
21
+ title?: string;
22
+ url: string;
23
+ };
24
+ export type NormalizedDownloadUrl = DownloadUrl & {
25
+ title: string;
26
+ };
27
+ export type ApiDocsMetadata = {
28
+ title?: string;
29
+ description?: string | Node[] | Node;
30
+ summary?: string;
31
+ version?: string;
32
+ [key: string]: unknown;
33
+ };
34
+ export type MarkdocOptions = {
35
+ tags: Record<string, MarkdocTagSchema>;
36
+ nodes: Record<string, Schema>;
37
+ components: Record<string, ComponentType<any>>;
38
+ variables?: Record<string, unknown>;
39
+ partials?: Record<string, unknown>;
40
+ functions?: Record<string, ConfigFunction>;
41
+ };
42
+ /**
43
+ * Turns a raw markdown string into an AST. api-docs core does not bundle a markdown engine — the
44
+ * host supplies the parser (the standalone build supplies a Markdoc-based one; see
45
+ * `markdocParser`). It is the single seam where markdown text becomes an AST.
46
+ */
47
+ export type MarkdownParser = (markdown: string, sanitizeOptions?: Partial<Pick<ApiDocsOptions, 'sanitize' | 'unstable_hooks'>>) => Node | Node[] | undefined;
48
+ export type ApiDocsOptions = {
49
+ schemaDefinitionsTagName?: string;
50
+ corsProxyUrl?: string;
51
+ jsonSamplesExpandLevel: number;
52
+ generatedSamplesMaxDepth: number;
53
+ hideDownloadButtons: boolean;
54
+ hideInfoMetadata: boolean;
55
+ hideSchemaTitles: boolean;
56
+ hideSchemaPattern: boolean;
57
+ maxDisplayedEnumValues: number;
58
+ hideReplay: boolean;
59
+ oAuth2RedirectURI?: string;
60
+ onlyRequiredInSamples: boolean;
61
+ onDeepLinkClick: ((link: string) => void) | undefined | null;
62
+ schemasExpansionLevel?: number;
63
+ sortRequiredPropsFirst: boolean;
64
+ sanitize: boolean;
65
+ showExtensions: string[] | boolean;
66
+ ignoreNamedSchemas: Set<string>;
67
+ markdocOptions?: MarkdocOptions;
68
+ markdownParser: MarkdownParser;
69
+ codeSamples?: CodeSamplesConfig;
70
+ events: Events;
71
+ unstable_hooks: HooksConfig;
72
+ unstable_skipSamples?: boolean;
73
+ unstable_externalCodeSamples: Unstable_ExternalCodeSample[];
74
+ hidePropertiesPrefix: boolean;
75
+ showSchemaCatalogLinks?: boolean;
76
+ dynamicRequestValues?: ConfigureRequestValues | ConfigureServerRequestValues;
77
+ userClaims?: UserClaims;
78
+ protocol?: ProtocolVariant;
79
+ scrollYOffset: () => number;
80
+ hideLoading: boolean;
81
+ skipBundle: boolean;
82
+ hideSidebar: boolean;
83
+ basePath: string;
84
+ specType: ApiSpecType;
85
+ licenseKey?: string;
86
+ metadata: ApiDocsMetadata;
87
+ downloadUrls?: NormalizedDownloadUrl[];
88
+ layout: LayoutVariant;
89
+ feedback: NonNullable<RedocConfig['feedback']>;
90
+ mockServer?: {
91
+ url: string;
92
+ position: 'first' | 'last' | 'replace' | 'off';
93
+ description: string;
94
+ };
95
+ apiLogo?: SidebarLogo;
96
+ jsonSamplesDepth: number;
97
+ samplesMaxInlineArgs: number;
98
+ fieldExpandLevel: number;
99
+ baseUrlPath?: string;
100
+ } & GraphQLOptions;
101
+ export type RawApiDocsOptions = RedocConfig & AsyncApiConfig & GraphQLConfig & {
102
+ specType: ApiSpecType;
103
+ markdownParser: MarkdownParser;
104
+ basePath?: string;
105
+ hideSchemaPattern?: boolean;
106
+ requiredPropsFirst?: boolean;
107
+ licenseKey?: string;
108
+ protocol?: ProtocolVariant;
109
+ excludeFromSearch?: boolean;
110
+ dynamicRequestValues?: ConfigureRequestValues | ConfigureServerRequestValues;
111
+ userClaims?: UserClaims;
112
+ layout?: RedocConfig['layout'] | AsyncApiConfig['layout'] | GraphQLConfig['layout'];
113
+ };
114
+ export type Languages = 'JavaScript' | 'Node.js' | 'curl' | 'Java8+Apache' | 'Java' | 'Python' | 'Go' | 'PHP' | 'C#' | 'C#+Newtonsoft' | 'Ruby' | 'R';
115
+ export interface BasicLanguageOptions {
116
+ indent?: string;
117
+ withImports?: boolean;
118
+ withComments?: boolean;
119
+ }
120
+ interface CodeSampleBasicConfig {
121
+ lang: Languages | 'Payload';
122
+ label: string;
123
+ key: string;
124
+ options?: BasicLanguageOptions;
125
+ }
126
+ export interface CurlCodeSampleConfig extends CodeSampleBasicConfig {
127
+ lang: 'curl';
128
+ options?: BasicLanguageOptions & {
129
+ binary?: boolean;
130
+ };
131
+ }
132
+ export interface JavaScriptCodeSampleConfig extends CodeSampleBasicConfig {
133
+ lang: 'JavaScript';
134
+ options?: BasicLanguageOptions & {
135
+ credentials?: 'omit' | 'same-origin' | 'include';
136
+ };
137
+ }
138
+ export interface GoCodeSampleConfig extends CodeSampleBasicConfig {
139
+ lang: 'Go';
140
+ }
141
+ export interface NodeJsCodeSampleConfig extends CodeSampleBasicConfig {
142
+ lang: 'Node.js';
143
+ }
144
+ export interface PythonCodeSampleConfig extends CodeSampleBasicConfig {
145
+ lang: 'Python';
146
+ }
147
+ export interface Java8CodeSampleConfig extends CodeSampleBasicConfig {
148
+ lang: 'Java8+Apache';
149
+ }
150
+ export interface JavaCodeSampleConfig extends CodeSampleBasicConfig {
151
+ lang: 'Java';
152
+ }
153
+ export interface CSharpCodeSampleConfig extends CodeSampleBasicConfig {
154
+ lang: 'C#';
155
+ }
156
+ export interface CSharpNewtonsoftCodeSampleConfig extends CodeSampleBasicConfig {
157
+ lang: 'C#+Newtonsoft';
158
+ }
159
+ export interface PHPCodeSampleConfig extends CodeSampleBasicConfig {
160
+ lang: 'PHP';
161
+ }
162
+ export interface RubyCodeSampleConfig extends CodeSampleBasicConfig {
163
+ lang: 'Ruby';
164
+ }
165
+ export interface RCodeSampleConfig extends CodeSampleBasicConfig {
166
+ lang: 'R';
167
+ }
168
+ export interface PayloadCodeSampleConfig extends CodeSampleBasicConfig {
169
+ lang: 'Payload';
170
+ }
171
+ export interface CustomLanguageCodeSampleConfig extends Omit<CodeSampleBasicConfig, 'lang'> {
172
+ lang: string;
173
+ }
174
+ export type CodeSampleConfig = CurlCodeSampleConfig | JavaScriptCodeSampleConfig | NodeJsCodeSampleConfig | PythonCodeSampleConfig | Java8CodeSampleConfig | JavaCodeSampleConfig | CSharpCodeSampleConfig | CSharpNewtonsoftCodeSampleConfig | PHPCodeSampleConfig | GoCodeSampleConfig | RubyCodeSampleConfig | RCodeSampleConfig;
175
+ export interface CodeSamplesConfig {
176
+ languages: (CodeSampleConfig | PayloadCodeSampleConfig | CustomLanguageCodeSampleConfig)[];
177
+ skipOptionalParameters?: boolean;
178
+ withOAuth2Call?: boolean;
179
+ onSampleTabClick?: (label: string) => void;
180
+ }
181
+ export type Normalized<T> = {
182
+ [P in keyof T]-?: T[P];
183
+ };
184
+ export type ExternalLink = ExternalLinkLink | ExternalLinkSeparator;
185
+ export type ExternalLinkLink = {
186
+ label: string;
187
+ link: string;
188
+ target?: string;
189
+ separatorLine?: boolean;
190
+ };
191
+ export type ExternalLinkSeparator = {
192
+ separator?: string;
193
+ separatorLine?: boolean;
194
+ };
195
+ export type MenuItemGroupType = 'group' | 'tag' | 'section' | 'schema' | 'tool' | 'rsrc' | 'prompt';
196
+ export type MenuItemType = MenuItemGroupType | 'operation';
197
+ export type TagInfo = OpenAPITag & {
198
+ operations: ExtendedOpenAPIOperation[];
199
+ used?: boolean;
200
+ schemaRendersInTag?: boolean;
201
+ isSchema?: boolean;
202
+ };
203
+ export type ExtendedOpenAPIOperation = {
204
+ pointer: string;
205
+ pathName: string;
206
+ httpVerb: string;
207
+ pathParameters: Array<Referenced<OpenAPIParameter>>;
208
+ pathServers: Array<OpenAPIServer> | undefined;
209
+ isWebhook: boolean;
210
+ isAdditionalOperation: boolean;
211
+ defaultSampleName?: string | false;
212
+ keywords?: unknown;
213
+ } & OpenAPIOperationType;
214
+ export type TagsInfoMap = Record<string, TagInfo>;
215
+ export type TagGroup = {
216
+ name: string;
217
+ tags: string[];
218
+ };
219
+ export type Unstable_ExternalCodeSample = {
220
+ get: (source: ExternalSource) => string;
221
+ };
222
+ export type ExternalSource = {
223
+ sample: Unstable_ExternalCodeSample;
224
+ operation: unknown;
225
+ exampleName?: string;
226
+ pathParams?: unknown;
227
+ properties?: unknown;
228
+ };
229
+ export type HookRawHtml = {
230
+ html: string;
231
+ };
232
+ type HookResult = ReactElement | HookRawHtml | null;
233
+ export type HookConfig<T> = (props: T) => HookResult;
234
+ export type HooksConfig = {
235
+ AfterApiTitle?: HookConfig<{
236
+ info: OpenAPIInfo;
237
+ }>;
238
+ BeforeOperation?: HookConfig<{
239
+ operation: unknown;
240
+ }>;
241
+ BeforeOperationSummary?: HookConfig<{
242
+ operation: unknown;
243
+ }>;
244
+ AfterOperationSummary?: HookConfig<{
245
+ operation: unknown;
246
+ }>;
247
+ AfterOperation?: HookConfig<{
248
+ operation: unknown;
249
+ }>;
250
+ onInit?: (args: {
251
+ store: Record<string, unknown>;
252
+ }) => void;
253
+ replaceSecurityLink?: (args: {
254
+ securityRequirementId: string;
255
+ }) => string;
256
+ sanitize?: (raw: string) => string;
257
+ MiddlePanelFooter?: HookConfig<undefined>;
258
+ MiddlePanelHeader?: HookConfig<undefined>;
259
+ };
260
+ export {};
File without changes
@@ -0,0 +1,4 @@
1
+ export type OneOfChangeParams = {
2
+ pointer: string;
3
+ index: number;
4
+ };
File without changes
@@ -0,0 +1,155 @@
1
+ import type { Node } from '@markdoc/markdoc';
2
+ import type { AsyncApiDefinition } from './asyncapi';
3
+ import type { ObjectValues } from './common';
4
+ import type { OpenAPIDefinition } from './openapi';
5
+ export type DiscriminatorObject = {
6
+ propertyName?: string;
7
+ mapping?: Record<string, string>;
8
+ defaultMapping?: string;
9
+ 'x-explicitMappingOnly'?: boolean;
10
+ };
11
+ export type SchemaNode = {
12
+ type?: string | string[];
13
+ format?: string;
14
+ title?: string;
15
+ description?: string | Node | Node[];
16
+ pattern?: string;
17
+ default?: unknown;
18
+ example?: unknown;
19
+ const?: unknown;
20
+ enum?: string[];
21
+ deprecated?: boolean;
22
+ nullable?: boolean;
23
+ readOnly?: boolean;
24
+ writeOnly?: boolean;
25
+ minimum?: number;
26
+ maximum?: number;
27
+ exclusiveMinimum?: number | boolean;
28
+ exclusiveMaximum?: number | boolean;
29
+ multipleOf?: number;
30
+ minLength?: number;
31
+ maxLength?: number;
32
+ contentEncoding?: string;
33
+ contentMediaType?: string;
34
+ properties?: Record<string, SchemaNode>;
35
+ additionalProperties?: SchemaNode | boolean;
36
+ unevaluatedProperties?: SchemaNode | boolean;
37
+ patternProperties?: Record<string, SchemaNode>;
38
+ required?: string[];
39
+ minProperties?: number;
40
+ maxProperties?: number;
41
+ items?: SchemaNode | SchemaNode[] | boolean;
42
+ prefixItems?: SchemaNode[];
43
+ additionalItems?: SchemaNode | boolean;
44
+ minItems?: number;
45
+ maxItems?: number;
46
+ uniqueItems?: boolean;
47
+ oneOf?: SchemaNode[];
48
+ anyOf?: SchemaNode[];
49
+ allOf?: SchemaNode[];
50
+ if?: SchemaNode;
51
+ then?: SchemaNode;
52
+ else?: SchemaNode;
53
+ discriminator?: DiscriminatorObject;
54
+ $ref?: string;
55
+ externalDocs?: {
56
+ url?: string;
57
+ description?: string;
58
+ };
59
+ 'x-circular-ref'?: boolean;
60
+ 'x-complex'?: boolean;
61
+ 'x-nullable'?: boolean;
62
+ 'x-original-ref'?: string;
63
+ 'x-badges'?: BadgeType[];
64
+ 'x-enumDescriptions'?: Record<string, string | Node | Node[]>;
65
+ 'x-additionalPropertiesName'?: string;
66
+ 'x-discriminator'?: DiscriminatorObject;
67
+ 'x-displayName'?: string;
68
+ 'x-parentRefs'?: string[];
69
+ 'x-refsStack'?: string[];
70
+ [key: string]: unknown;
71
+ };
72
+ export type AccessMode = 'read-only' | 'write-only' | undefined;
73
+ export type Document = OpenAPIDefinition | AsyncApiDefinition;
74
+ export declare function isSchemaNode(value: unknown): value is SchemaNode;
75
+ export declare function isStructuredExample(example: unknown): example is object;
76
+ export type PropertyType = {
77
+ type: string;
78
+ title?: string;
79
+ schemaName?: string;
80
+ isAdditionalProperty?: boolean;
81
+ isAdditionalItems?: boolean;
82
+ isTupleItem?: boolean;
83
+ isPatternProperty?: boolean;
84
+ isCircular?: boolean;
85
+ isComplex?: boolean;
86
+ isExpandable?: boolean;
87
+ isRequired?: boolean;
88
+ isDeprecated?: boolean;
89
+ description?: string | Node | Node[];
90
+ pattern?: string;
91
+ example?: string | object;
92
+ badges?: BadgeType[];
93
+ default?: string;
94
+ accessMode?: AccessMode;
95
+ enum?: Record<string, string | Node | Node[]> | string[];
96
+ examples?: Record<string, ExampleType>;
97
+ extensions?: Record<string, string>;
98
+ externalDocs?: ExternalDocsType;
99
+ const?: string;
100
+ properties?: Record<string, PropertyType>;
101
+ items?: PropertyType[];
102
+ switcher?: SwitcherType;
103
+ };
104
+ export type BadgeType = {
105
+ name: string;
106
+ position: 'before' | 'after';
107
+ color: string;
108
+ };
109
+ export type ExampleType = {
110
+ summary?: string;
111
+ description?: string;
112
+ value?: string;
113
+ };
114
+ export type ExternalDocsType = {
115
+ description: string;
116
+ url: string;
117
+ };
118
+ export declare const switcherLabel: {
119
+ readonly DISCRIMINATOR: 'Discriminator';
120
+ readonly ONE_OF: 'One of:';
121
+ readonly ANY_OF: 'Any of:';
122
+ };
123
+ export type SwitcherLabel = ObjectValues<typeof switcherLabel>;
124
+ export type SwitcherType = {
125
+ type: 'discriminator' | 'oneOf';
126
+ label: SwitcherLabel;
127
+ propertyName?: string;
128
+ jsonPointer?: string;
129
+ options: Record<string, SwitcherOptionType>;
130
+ };
131
+ export type SwitcherOptionType = {
132
+ isDeprecated: boolean;
133
+ isDefaultMapping: boolean;
134
+ isCircular?: boolean;
135
+ description?: string | Node | Node[];
136
+ constraints?: string[];
137
+ properties?: Record<string, PropertyType>;
138
+ items?: PropertyType[];
139
+ switcher?: SwitcherType;
140
+ typeLabel?: string;
141
+ title?: string;
142
+ schemaName?: string;
143
+ accessMode?: AccessMode;
144
+ enum?: Record<string, string | Node | Node[]> | string[];
145
+ };
146
+ export type SchemaProcessorDialect = {
147
+ readonly id: string;
148
+ process(schema: SchemaNode, document: Document, options?: SchemaProcessorOptions): PropertyType;
149
+ };
150
+ export type SchemaProcessorOptions = {
151
+ dialectId?: string;
152
+ rootJsonPointer?: string;
153
+ exampleSerializer?: (value: unknown) => string;
154
+ sortRequiredPropsFirst?: boolean;
155
+ };
@@ -0,0 +1 @@
1
+ function t(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}function o(r){return typeof r=="object"&&r!==null}const e={DISCRIMINATOR:"Discriminator",ONE_OF:"One of:",ANY_OF:"Any of:"};export{t as isSchemaNode,o as isStructuredExample,e as switcherLabel};
@@ -0,0 +1,182 @@
1
+ import type { ResolvedNavItem, REDOCLY_TEAMS_RBAC } from '@redocly/config';
2
+ import type { DocumentNode } from 'graphql';
3
+ import type { Node } from '@markdoc/markdoc';
4
+ import type { ApiSpecType, Badge, BadgeData, ContentType, ItemVariant, SecuritySchemeIn, SecuritySchemeType, ServerData, SeoData, SidebarLogo } from './common.js';
5
+ import type { McpTool, McpResource, McpPrompt, OpenAPIDefinition } from './openapi.js';
6
+ import type { AsyncApiDefinition } from './asyncapi.js';
7
+ import type { ApiDocsOptions } from './options.js';
8
+ import type { ContentNode } from './content.js';
9
+ import type { SchemaKind } from './common.js';
10
+ import type { GraphqlStoreMeta } from './graphql-store.js';
11
+ export type AdapterBuildContextInput = {
12
+ options: ApiDocsOptions;
13
+ basePath: string;
14
+ };
15
+ export type ApiDocAdapterProps = {
16
+ type: ApiSpecType;
17
+ document: OpenAPIDefinition | AsyncApiDefinition | DocumentNode;
18
+ options: ApiDocsOptions;
19
+ basePath: string;
20
+ };
21
+ export type StoreContext = {
22
+ schemaStore: Record<string, SchemaEntry>;
23
+ exampleStore: Record<string, ExampleEntry>;
24
+ securitySchemeStore: Record<string, SecuritySchemeEntry>;
25
+ hashIndex: Record<string, string>;
26
+ document: Record<string, unknown>;
27
+ };
28
+ export type ApiItemContent = {
29
+ contentType: ContentType;
30
+ seo?: SeoData;
31
+ itemVariant?: ItemVariant;
32
+ meta?: ItemMeta;
33
+ children: ContentNode[];
34
+ showDivider?: boolean;
35
+ };
36
+ export type BreadcrumbItem = {
37
+ label: string;
38
+ };
39
+ export type ItemMeta = {
40
+ sourceId?: string;
41
+ name?: string;
42
+ deprecated?: boolean;
43
+ isWebhook?: boolean;
44
+ hasSamples?: boolean;
45
+ badges?: BadgeData[];
46
+ pointer?: string;
47
+ position?: {
48
+ start: {
49
+ lineNumber: number;
50
+ column: number;
51
+ };
52
+ end?: {
53
+ lineNumber: number;
54
+ column: number;
55
+ };
56
+ };
57
+ protocolTag?: {
58
+ label: string;
59
+ color: string;
60
+ };
61
+ breadcrumbs?: BreadcrumbItem[];
62
+ action?: 'send' | 'receive';
63
+ actionLabel?: string;
64
+ channelBindings?: Record<string, unknown>;
65
+ returnType?: string;
66
+ };
67
+ export type ApiItem = ResolvedNavItem & {
68
+ content: ApiItemContent | null;
69
+ httpVerb?: string;
70
+ };
71
+ export type SchemaEntry = {
72
+ id: string;
73
+ kind: SchemaKind;
74
+ title?: string;
75
+ data: Record<string, unknown>;
76
+ [REDOCLY_TEAMS_RBAC]?: Record<string, string>;
77
+ };
78
+ export type ExampleEntry = {
79
+ id: string;
80
+ value: unknown;
81
+ key?: string;
82
+ summary?: string;
83
+ description?: string;
84
+ mediaType?: string;
85
+ externalValue?: string;
86
+ [REDOCLY_TEAMS_RBAC]?: Record<string, string>;
87
+ };
88
+ export type OAuthFlowEntry = {
89
+ authorizationUrl?: string;
90
+ tokenUrl?: string;
91
+ refreshUrl?: string;
92
+ deviceAuthorizationUrl?: string;
93
+ scopes?: Record<string, string>;
94
+ };
95
+ export type OAuthFlowsData = {
96
+ implicit?: {
97
+ authorizationUrl?: string;
98
+ refreshUrl?: string;
99
+ scopes: Record<string, string>;
100
+ };
101
+ password?: {
102
+ tokenUrl: string;
103
+ refreshUrl?: string;
104
+ scopes: Record<string, string>;
105
+ };
106
+ clientCredentials?: {
107
+ tokenUrl: string;
108
+ refreshUrl?: string;
109
+ scopes: Record<string, string>;
110
+ 'x-assertionType'?: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer';
111
+ };
112
+ authorizationCode?: {
113
+ authorizationUrl: string;
114
+ tokenUrl: string;
115
+ refreshUrl?: string;
116
+ scopes: Record<string, string>;
117
+ 'x-usePkce'?: boolean;
118
+ };
119
+ deviceAuthorization?: {
120
+ deviceAuthorizationUrl: string;
121
+ tokenUrl: string;
122
+ refreshUrl?: string;
123
+ scopes: Record<string, string>;
124
+ 'x-defaultClientId'?: string;
125
+ };
126
+ };
127
+ export type SecuritySchemeCredentials = {
128
+ 'x-defaultAccessToken'?: string;
129
+ 'x-defaultTokenType'?: string;
130
+ 'x-defaultClientId'?: string;
131
+ 'x-defaultClientSecret'?: string;
132
+ 'x-defaultUsername'?: string;
133
+ 'x-defaultPassword'?: string;
134
+ scopes?: string[];
135
+ };
136
+ export type SecuritySchemeEntry = {
137
+ id: string;
138
+ type: SecuritySchemeType;
139
+ scheme?: string;
140
+ bearerFormat?: string;
141
+ description?: string | Node[] | Node;
142
+ in?: SecuritySchemeIn;
143
+ paramName?: string;
144
+ openIdConnectUrl?: string;
145
+ deprecated?: boolean;
146
+ oauth2MetadataUrl?: string;
147
+ 'x-defaultClientId'?: string;
148
+ 'x-defaultAccessToken'?: string;
149
+ 'x-defaultTokenType'?: string;
150
+ 'x-defaultClientSecret'?: string;
151
+ 'x-defaultUsername'?: string;
152
+ 'x-defaultPassword'?: string;
153
+ serverValues?: Record<string, SecuritySchemeCredentials>;
154
+ flows?: OAuthFlowsData;
155
+ [REDOCLY_TEAMS_RBAC]?: Record<string, string>;
156
+ };
157
+ export type GroupItem = {
158
+ title: string;
159
+ summary?: string;
160
+ prefix?: Badge;
161
+ badges?: Badge[];
162
+ link: string;
163
+ deprecated: boolean;
164
+ childTag?: boolean;
165
+ [REDOCLY_TEAMS_RBAC]?: Record<string, string>;
166
+ };
167
+ export type McpData = {
168
+ tools?: McpTool[];
169
+ resources?: McpResource[];
170
+ prompts?: McpPrompt[];
171
+ };
172
+ export type ApiStore = {
173
+ schemaStore: Record<string, SchemaEntry>;
174
+ exampleStore: Record<string, ExampleEntry>;
175
+ securitySchemeStore: Record<string, SecuritySchemeEntry>;
176
+ graphqlMeta?: GraphqlStoreMeta;
177
+ servers?: ServerData[];
178
+ mcp?: McpData;
179
+ schemaCatalogLink?: string;
180
+ /** From OpenAPI `info.x-logo`. Rendered by the standalone sidebar. */
181
+ logo?: SidebarLogo;
182
+ };
File without changes
@@ -0,0 +1,6 @@
1
+ type Breadcrumb = {
2
+ name: string;
3
+ href: string;
4
+ };
5
+ export declare function calculateMaxLength(breadcrumbs: Breadcrumb[], availableWidth: number, isCollapsed: boolean, measureEl: HTMLElement): number;
6
+ export {};
@@ -0,0 +1 @@
1
+ import{trimText as s}from"@redocly/theme/core/openapi";const e=10,m=40;function T(n,l,c,o){if(!n.length||l<=0)return e;const x=Math.max(0,l-(c?m:0));o.textContent="/";const r=o.scrollWidth,W=(n.length-1)*r,d=Math.max(...n.map(t=>t.name.length),e);let h=e,i=d,a=e;for(;h<=i;){const t=Math.floor((h+i)/2);n.reduce((f,g)=>(o.textContent=s(g.name,t),f+o.scrollWidth),0)+W<=x?(a=t,h=t+1):i=t-1}return a}export{T as calculateMaxLength};
@@ -0,0 +1,7 @@
1
+ import type { ComponentType, FC } from 'react';
2
+ type HOC<P> = (Component: ComponentType<P>) => FC<P>;
3
+ export declare function compose<P>(f: HOC<P>): (Component: ComponentType<P>) => FC<P>;
4
+ export declare function compose<P>(f: HOC<P>, g: HOC<P>): (Component: ComponentType<P>) => FC<P>;
5
+ export declare function compose<P>(f: HOC<P>, g: HOC<P>, h: HOC<P>): (Component: ComponentType<P>) => FC<P>;
6
+ export declare function compose<P>(f: HOC<P>, g: HOC<P>, h: HOC<P>, i: HOC<P>): (Component: ComponentType<P>) => FC<P>;
7
+ export {};
@@ -0,0 +1 @@
1
+ function c(...e){return o=>e.reduceRight((r,t)=>t(r),o)}export{c as compose};
@@ -0,0 +1,7 @@
1
+ export declare function setCookie(name: string | number | boolean, value: string, attributes?: {
2
+ [x: string]: string | number | Date | boolean;
3
+ }): string | undefined;
4
+ export declare function getCookie(name: string, serverString?: string): string;
5
+ export declare function removeCookie(name: string, attributes?: {
6
+ [x: string]: string | number | Date | boolean;
7
+ }): void;
@@ -0,0 +1 @@
1
+ import{tryDecodeURIComponent as r}from"./string.js";function s(e,c,o={path:"/"}){if(typeof document>"u")return;typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires instanceof Date?o.expires.toUTCString():o.expires),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,r).replace(/[()]/g,escape);let i="";for(const n in o)o[n]&&(i+="; "+n,o[n]!==!0&&(i+="="+String(o[n]).split(";")[0]));return document.cookie=e+"="+g(c)+i}function u(e,c){const o=typeof document<"u"?document.cookie:c,i=o?o.split("; "):[],n={};for(let p=0;p<i.length;p++){const f=i[p].split("="),d=f.slice(1).join("=");try{const t=r(f[0]);if(t in n||(n[t]=x(d)),e===t)break}catch{}}return e?n[e]:""}function C(e,c={path:"/"}){s(e,"",{...c,expires:-1})}function x(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,r)}function g(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,r)}export{u as getCookie,C as removeCookie,s as setCookie};