@redocly/openapi-docs 0.74.2-pingfed.3 → 0.81.2-rc.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 (1841) hide show
  1. package/dist/redocly-openapi-docs.min.js +10620 -8618
  2. package/lib/components/ApiInfo/ApiInfo.d.ts +3 -3
  3. package/lib/components/ApiInfo/ApiInfo.js +2 -2
  4. package/lib/components/ApiInfo/Metadata.d.ts +2 -2
  5. package/lib/components/ApiInfo/Metadata.js +1 -1
  6. package/lib/components/ApiInfo/styled.js +4 -1
  7. package/lib/components/CallbackSamples/CallbackSamples.d.ts +4 -4
  8. package/lib/components/CallbackSamples/CallbackSamples.js +15 -1
  9. package/lib/components/Callbacks/CallbackDetails.d.ts +2 -2
  10. package/lib/components/Callbacks/CallbackDetails.js +18 -2
  11. package/lib/components/Callbacks/CallbackOperation.d.ts +4 -2
  12. package/lib/components/Callbacks/CallbackOperation.js +14 -1
  13. package/lib/components/Callbacks/CallbackSummary.d.ts +3 -3
  14. package/lib/components/Callbacks/CallbackSummary.js +18 -1
  15. package/lib/components/Callbacks/CallbacksList.d.ts +5 -3
  16. package/lib/components/Callbacks/CallbacksList.js +1 -1
  17. package/lib/components/Callbacks/styled.js +1 -0
  18. package/lib/components/Content/Content.d.ts +8 -0
  19. package/lib/components/Content/Content.js +2 -0
  20. package/lib/components/Content/index.d.ts +1 -0
  21. package/lib/components/Content/index.js +2 -0
  22. package/lib/components/Content/useAutoScroll.d.ts +1 -0
  23. package/lib/components/Content/useAutoScroll.js +2 -0
  24. package/lib/components/ContentItem/ContentItem.d.ts +3 -3
  25. package/lib/components/ContentItem/ContentItem.js +1 -1
  26. package/lib/components/ContentItem/useIsExpanded.d.ts +5 -0
  27. package/lib/components/ContentItem/useIsExpanded.js +2 -0
  28. package/lib/components/ContentItems/ContentItems.d.ts +3 -3
  29. package/lib/components/ContentItems/ContentItems.js +1 -1
  30. package/lib/components/ContentItems/helpers.d.ts +0 -8
  31. package/lib/components/ContentItems/helpers.js +1 -1
  32. package/lib/components/Discriminator/Discriminator.d.ts +9 -0
  33. package/lib/components/Discriminator/Discriminator.js +6 -0
  34. package/lib/components/Discriminator/index.d.ts +1 -0
  35. package/lib/components/Discriminator/index.js +2 -0
  36. package/lib/components/Download/DownloadSpecification.d.ts +4 -0
  37. package/lib/components/Download/DownloadSpecification.js +40 -0
  38. package/lib/components/Download/index.d.ts +1 -3
  39. package/lib/components/Download/index.js +1 -1
  40. package/lib/components/Download/types.d.ts +10 -14
  41. package/lib/components/Download/useDownloadInfo.d.ts +1 -1
  42. package/lib/components/Download/useDownloadInfo.js +1 -1
  43. package/lib/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
  44. package/lib/components/ErrorBoundary/ErrorBoundary.js +2 -2
  45. package/lib/components/ExpandAllButton/ExpandAllButton.d.ts +6 -0
  46. package/lib/components/ExpandAllButton/ExpandAllButton.js +4 -0
  47. package/lib/components/ExpandAllButton/getAllNestedSchema.d.ts +8 -0
  48. package/lib/components/ExpandAllButton/getAllNestedSchema.js +2 -0
  49. package/lib/components/ExpandAllButton/index.d.ts +2 -0
  50. package/lib/components/ExpandAllButton/index.js +2 -0
  51. package/lib/components/ExpandAllButton/useUpdateExpandedFields.d.ts +2 -0
  52. package/lib/components/ExpandAllButton/useUpdateExpandedFields.js +2 -0
  53. package/lib/components/ExternalDocumentation/ExternalDocumentation.d.ts +2 -2
  54. package/lib/components/ExternalDocumentation/ExternalDocumentation.js +4 -4
  55. package/lib/components/Language/LanguageDropdown.d.ts +15 -0
  56. package/lib/components/Language/LanguageDropdown.js +2 -0
  57. package/lib/components/Language/LanguageItem.d.ts +11 -0
  58. package/lib/components/Language/LanguageItem.js +2 -0
  59. package/lib/components/Language/LanguageList.d.ts +11 -0
  60. package/lib/components/Language/LanguageList.js +2 -0
  61. package/lib/components/Language/_tests_/LanguageDropdown.test.d.ts +1 -0
  62. package/lib/components/Language/_tests_/LanguageDropdown.test.js +2 -0
  63. package/lib/components/Language/constants.d.ts +1 -0
  64. package/lib/components/Language/constants.js +2 -0
  65. package/lib/components/Language/index.d.ts +3 -0
  66. package/lib/components/Language/index.js +2 -0
  67. package/lib/components/Language/styled.d.ts +30 -0
  68. package/lib/components/Language/styled.js +76 -0
  69. package/lib/components/Markdown/Markdown.d.ts +2 -2
  70. package/lib/components/Markdown/Markdown.js +1 -1
  71. package/lib/components/Markdown/index.d.ts +0 -1
  72. package/lib/components/Markdown/index.js +1 -1
  73. package/lib/components/Markdown/types.d.ts +3 -2
  74. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +5 -5
  75. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
  76. package/lib/components/OperationItem/Description.d.ts +10 -0
  77. package/lib/components/OperationItem/Description.js +2 -0
  78. package/lib/components/OperationItem/OperationItem.d.ts +2 -2
  79. package/lib/components/OperationItem/OperationItem.js +20 -12
  80. package/lib/components/OperationItem/_tests_/OperationItem.test.d.ts +1 -0
  81. package/lib/components/OperationItem/_tests_/OperationItem.test.js +2 -0
  82. package/lib/components/Overlay.d.ts +2 -2
  83. package/lib/components/Overlay.js +1 -1
  84. package/lib/components/Overview/Overview.d.ts +4 -0
  85. package/lib/components/Overview/Overview.js +2 -0
  86. package/lib/components/Overview/index.d.ts +1 -0
  87. package/lib/components/Overview/index.js +2 -0
  88. package/lib/components/PageFooter/PageFooter.d.ts +3 -14
  89. package/lib/components/PageFooter/PageFooter.js +1 -1
  90. package/lib/components/Panel/ContentPanel.d.ts +2 -4
  91. package/lib/components/Panel/ResponsePanel.d.ts +3 -8
  92. package/lib/components/Panel/ResponsePanel.js +7 -8
  93. package/lib/components/Panel/index.d.ts +0 -4
  94. package/lib/components/Panel/index.js +1 -1
  95. package/lib/components/PanelItem/PanelItem.d.ts +9 -0
  96. package/lib/components/PanelItem/PanelItem.js +2 -0
  97. package/lib/components/PanelItem/index.d.ts +2 -0
  98. package/lib/components/PanelItem/index.js +2 -0
  99. package/lib/components/PanelItem/styled.d.ts +17 -0
  100. package/lib/components/PanelItem/styled.js +53 -0
  101. package/lib/components/PayloadSamples/Example.d.ts +2 -2
  102. package/lib/components/PayloadSamples/Example.js +1 -1
  103. package/lib/components/PayloadSamples/ExampleValue.d.ts +1 -1
  104. package/lib/components/PayloadSamples/ExampleValue.js +1 -1
  105. package/lib/components/PayloadSamples/ExternalExample.d.ts +2 -2
  106. package/lib/components/PayloadSamples/ExternalExample.js +1 -1
  107. package/lib/components/PayloadSamples/MediaTypeSamples.d.ts +2 -2
  108. package/lib/components/PayloadSamples/MediaTypeSamples.js +3 -1
  109. package/lib/components/PayloadSamples/PayloadSamples.d.ts +2 -2
  110. package/lib/components/PayloadSamples/PayloadSamples.js +1 -1
  111. package/lib/components/PayloadSamples/styled.d.ts +4 -3
  112. package/lib/components/PayloadSamples/styled.js +10 -5
  113. package/lib/components/PayloadSamples/types.d.ts +0 -1
  114. package/lib/components/PropertyDetails/DescriptionEnums.d.ts +4 -0
  115. package/lib/components/PropertyDetails/DescriptionEnums.js +10 -0
  116. package/lib/components/PropertyDetails/EnumValues.d.ts +3 -0
  117. package/lib/components/PropertyDetails/EnumValues.js +2 -0
  118. package/lib/components/PropertyDetails/Examples.d.ts +5 -0
  119. package/lib/components/PropertyDetails/Examples.js +2 -0
  120. package/lib/components/PropertyDetails/Extensions.d.ts +3 -0
  121. package/lib/components/PropertyDetails/Extensions.js +4 -0
  122. package/lib/components/PropertyDetails/FieldDetail.d.ts +7 -0
  123. package/lib/components/PropertyDetails/FieldDetail.js +8 -0
  124. package/lib/components/PropertyDetails/FieldDetails.d.ts +3 -0
  125. package/lib/components/PropertyDetails/FieldDetails.js +43 -0
  126. package/lib/components/PropertyDetails/Pattern.d.ts +6 -0
  127. package/lib/components/PropertyDetails/Pattern.js +2 -0
  128. package/lib/components/PropertyDetails/PlusCircleIcon.d.ts +7 -0
  129. package/lib/components/PropertyDetails/PlusCircleIcon.js +11 -0
  130. package/lib/components/PropertyDetails/PropertyDetails.d.ts +3 -0
  131. package/lib/components/PropertyDetails/PropertyDetails.js +17 -0
  132. package/lib/components/PropertyDetails/SchemaTypeInfo.d.ts +6 -0
  133. package/lib/components/PropertyDetails/SchemaTypeInfo.js +16 -0
  134. package/lib/components/PropertyDetails/SimpleEnums.d.ts +4 -0
  135. package/lib/components/PropertyDetails/SimpleEnums.js +8 -0
  136. package/lib/components/PropertyDetails/cycleColorsByLevel.d.ts +1 -0
  137. package/lib/components/PropertyDetails/cycleColorsByLevel.js +2 -0
  138. package/lib/components/PropertyDetails/index.d.ts +3 -0
  139. package/lib/components/PropertyDetails/index.js +2 -0
  140. package/lib/components/PropertyDetails/styled.d.ts +11 -0
  141. package/lib/components/PropertyDetails/styled.js +23 -0
  142. package/lib/components/PropertyDetails/types.d.ts +42 -0
  143. package/lib/components/RedoclyOpenAPIDocs/Providers.d.ts +4 -6
  144. package/lib/components/RedoclyOpenAPIDocs/Providers.js +1 -1
  145. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +3 -4
  146. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +1 -1
  147. package/lib/components/RedoclyOpenAPIDocs/index.d.ts +2 -2
  148. package/lib/components/RedoclyOpenAPIDocs/index.js +1 -1
  149. package/lib/components/RedoclyOpenAPIDocs/styled.d.ts +0 -6
  150. package/lib/components/RedoclyOpenAPIDocs/styled.js +23 -89
  151. package/lib/components/RedoclyOpenAPIDocs/types.d.ts +12 -30
  152. package/lib/components/RedoclyOpenAPIDocs/utils.d.ts +1 -3
  153. package/lib/components/RedoclyOpenAPIDocs/utils.js +1 -1
  154. package/lib/components/RenderHook/RenderHook.d.ts +3 -3
  155. package/lib/components/RenderHook/RenderHook.js +1 -1
  156. package/lib/components/Replay/EmbeddedReplay.d.ts +11 -0
  157. package/lib/components/Replay/EmbeddedReplay.js +11 -0
  158. package/lib/components/Replay/Replay.d.ts +10 -0
  159. package/lib/components/Replay/Replay.js +14 -0
  160. package/lib/components/Replay/index.d.ts +2 -0
  161. package/lib/components/Replay/index.js +2 -0
  162. package/lib/components/Replay/utils.d.ts +14 -0
  163. package/lib/components/Replay/utils.js +2 -0
  164. package/lib/components/Request/RequestDetails.d.ts +3 -0
  165. package/lib/components/Request/RequestDetails.js +2 -0
  166. package/lib/components/Request/types.d.ts +6 -0
  167. package/lib/components/RequestParameters/Body.d.ts +10 -0
  168. package/lib/components/RequestParameters/Body.js +2 -0
  169. package/lib/components/RequestParameters/ParametersGroup.d.ts +9 -0
  170. package/lib/components/RequestParameters/ParametersGroup.js +21 -0
  171. package/lib/components/RequestParameters/RequestParameters.d.ts +9 -0
  172. package/lib/components/RequestParameters/RequestParameters.js +2 -0
  173. package/lib/components/RequestParameters/index.d.ts +2 -0
  174. package/lib/components/RequestParameters/index.js +2 -0
  175. package/lib/components/RequestSamples/CodeSample.d.ts +3 -4
  176. package/lib/components/RequestSamples/CodeSample.js +9 -1
  177. package/lib/components/RequestSamples/Example.d.ts +3 -4
  178. package/lib/components/RequestSamples/Example.js +1 -1
  179. package/lib/components/RequestSamples/RequestSamples.d.ts +4 -9
  180. package/lib/components/RequestSamples/RequestSamples.js +6 -1
  181. package/lib/components/RequestSamples/useCodeSamples.d.ts +1 -1
  182. package/lib/components/RequestSamples/useCodeSamples.js +1 -1
  183. package/lib/components/ResponseSamples/ResponseSamples.d.ts +5 -3
  184. package/lib/components/ResponseSamples/ResponseSamples.js +1 -1
  185. package/lib/components/ResponseSamples/Summary.d.ts +5 -0
  186. package/lib/components/ResponseSamples/Summary.js +2 -0
  187. package/lib/components/Responses/OperationResponseList.d.ts +8 -2
  188. package/lib/components/Responses/OperationResponseList.js +4 -1
  189. package/lib/components/Responses/ResponseDetails.d.ts +2 -2
  190. package/lib/components/Responses/ResponseDetails.js +1 -3
  191. package/lib/components/Responses/ResponseHeaders.d.ts +2 -2
  192. package/lib/components/Responses/ResponseHeaders.js +1 -1
  193. package/lib/components/Responses/index.d.ts +0 -3
  194. package/lib/components/Responses/index.js +1 -1
  195. package/lib/components/Responses/styled.d.ts +6 -3
  196. package/lib/components/Responses/styled.js +21 -12
  197. package/lib/components/Responses/types.d.ts +5 -7
  198. package/lib/components/RightPanel/RightPanel.d.ts +5 -0
  199. package/lib/components/RightPanel/RightPanel.js +2 -0
  200. package/lib/components/RightPanel/index.d.ts +1 -0
  201. package/lib/components/RightPanel/index.js +2 -0
  202. package/lib/components/Samples/ExampleSwitch.d.ts +2 -3
  203. package/lib/components/Samples/ExampleSwitch.js +1 -1
  204. package/lib/components/Samples/index.d.ts +0 -2
  205. package/lib/components/Samples/index.js +1 -1
  206. package/lib/components/Samples/use-example-key.d.ts +1 -2
  207. package/lib/components/Samples/use-example-key.js +1 -1
  208. package/lib/components/Schema/ArraySchema.d.ts +3 -2
  209. package/lib/components/Schema/ArraySchema.js +33 -3
  210. package/lib/components/Schema/ObjectSchema.d.ts +2 -2
  211. package/lib/components/Schema/ObjectSchema.js +1 -1
  212. package/lib/components/Schema/OneOfSchema.d.ts +2 -2
  213. package/lib/components/Schema/OneOfSchema.js +9 -1
  214. package/lib/components/Schema/RecursiveSchema.d.ts +2 -2
  215. package/lib/components/Schema/RecursiveSchema.js +1 -1
  216. package/lib/components/Schema/Schema.d.ts +2 -2
  217. package/lib/components/Schema/Schema.js +4 -1
  218. package/lib/components/Schema/SubSchema.d.ts +13 -0
  219. package/lib/components/Schema/SubSchema.js +2 -0
  220. package/lib/components/Schema/helpers.d.ts +5 -0
  221. package/lib/components/Schema/helpers.js +2 -0
  222. package/lib/components/Schema/types.d.ts +9 -1
  223. package/lib/components/SchemaDefinition/SchemaDefinition.d.ts +2 -2
  224. package/lib/components/SchemaDefinition/SchemaDefinition.js +1 -4
  225. package/lib/components/SectionContent/SectionContent.d.ts +2 -10
  226. package/lib/components/SectionContent/SectionContent.js +24 -1
  227. package/lib/components/SectionItem/SectionItem.d.ts +2 -2
  228. package/lib/components/SectionItem/SectionItem.js +1 -1
  229. package/lib/components/Security/Divider.d.ts +3 -0
  230. package/lib/components/Security/Divider.js +15 -0
  231. package/lib/components/Security/OAuthFlow.d.ts +6 -0
  232. package/lib/components/Security/OAuthFlow.js +4 -0
  233. package/lib/components/Security/Security.d.ts +7 -0
  234. package/lib/components/Security/Security.js +2 -0
  235. package/lib/components/Security/SecurityButton.d.ts +10 -0
  236. package/lib/components/Security/SecurityButton.js +28 -0
  237. package/lib/components/Security/SecurityFlow.d.ts +5 -0
  238. package/lib/components/Security/SecurityFlow.js +21 -0
  239. package/lib/components/Security/SecurityModal.d.ts +8 -0
  240. package/lib/components/Security/SecurityModal.js +45 -0
  241. package/lib/components/Security/SecuritySchemeItem.d.ts +7 -0
  242. package/lib/components/Security/SecuritySchemeItem.js +20 -0
  243. package/lib/components/Security/helper.d.ts +2 -0
  244. package/lib/components/Security/helper.js +2 -0
  245. package/lib/components/Security/index.d.ts +1 -0
  246. package/lib/components/Security/index.js +2 -0
  247. package/lib/components/Security/styled.d.ts +2 -0
  248. package/lib/components/Security/styled.js +14 -0
  249. package/lib/components/SelectOrLabel/SelectOrLabel.d.ts +7 -0
  250. package/lib/components/SelectOrLabel/SelectOrLabel.js +8 -0
  251. package/lib/components/SelectOrLabel/index.d.ts +1 -0
  252. package/lib/components/SelectOrLabel/index.js +2 -0
  253. package/lib/components/ServerList/ServerList.d.ts +3 -0
  254. package/lib/components/ServerList/ServerList.js +60 -0
  255. package/lib/components/ServerList/index.d.ts +1 -0
  256. package/lib/components/ServerList/index.js +2 -0
  257. package/lib/components/ServerList/types.d.ts +2 -0
  258. package/lib/components/ServerListDropdown/ServerListDropdown.d.ts +7 -0
  259. package/lib/components/ServerListDropdown/ServerListDropdown.js +2 -0
  260. package/lib/components/ServerListDropdown/index.d.ts +1 -0
  261. package/lib/components/ServerListDropdown/index.js +2 -0
  262. package/lib/components/ServerListDropdown/styled.d.ts +16 -0
  263. package/lib/components/ServerListDropdown/styled.js +23 -0
  264. package/lib/components/SideMenu/SideMenu.d.ts +3 -2
  265. package/lib/components/SideMenu/SideMenu.js +3 -1
  266. package/lib/components/SideMenu/hooks/useMenuItems.d.ts +1 -3
  267. package/lib/components/SideMenu/hooks/useMenuItems.js +1 -1
  268. package/lib/components/SideMenu/index.d.ts +0 -3
  269. package/lib/components/SideMenu/index.js +1 -1
  270. package/lib/components/SideMenu/types.d.ts +1 -15
  271. package/lib/components/StickySidebar/SidebarActions.d.ts +1 -0
  272. package/lib/components/StickySidebar/SidebarActions.js +6 -0
  273. package/lib/components/StickySidebar/StickyResponsiveSidebar.d.ts +2 -3
  274. package/lib/components/StickySidebar/StickyResponsiveSidebar.js +12 -26
  275. package/lib/components/Tabs/Tabs.d.ts +8 -0
  276. package/lib/components/Tabs/Tabs.js +35 -0
  277. package/lib/components/Tabs/index.d.ts +2 -5
  278. package/lib/components/Tabs/index.js +1 -1
  279. package/lib/components/Tabs/useTabsState.d.ts +11 -0
  280. package/lib/components/Tabs/useTabsState.js +2 -0
  281. package/lib/components/TagItem/OperationsNavigation.d.ts +9 -0
  282. package/lib/components/TagItem/OperationsNavigation.js +46 -0
  283. package/lib/components/TagItem/TagItem.d.ts +8 -2
  284. package/lib/components/TagItem/TagItem.js +22 -1
  285. package/lib/components/UnsupportedFeatureScreen/UnsupportedFeatureScreen.d.ts +1 -0
  286. package/lib/components/UnsupportedFeatureScreen/UnsupportedFeatureScreen.js +18 -0
  287. package/lib/components/UnsupportedFeatureScreen/index.d.ts +1 -0
  288. package/lib/components/UnsupportedFeatureScreen/index.js +2 -0
  289. package/lib/components/ViewNested/ViewNested.d.ts +13 -0
  290. package/lib/components/ViewNested/ViewNested.js +31 -0
  291. package/lib/components/ViewNested/index.d.ts +1 -0
  292. package/lib/components/ViewNested/index.js +2 -0
  293. package/lib/components/common/BodyContent/BodyContent.d.ts +12 -0
  294. package/lib/components/common/BodyContent/BodyContent.js +28 -0
  295. package/lib/components/common/BodyContent/index.d.ts +1 -0
  296. package/lib/components/common/BodyContent/index.js +2 -0
  297. package/lib/components/common/ClearButton/ClearButton.d.ts +2 -2
  298. package/lib/components/common/ClearButton/ClearButton.js +1 -1
  299. package/lib/components/common/ClearButton/types.d.ts +2 -2
  300. package/lib/components/common/CodeBlockPanel.d.ts +2 -0
  301. package/lib/components/common/CodeBlockPanel.js +6 -0
  302. package/lib/components/common/ConstraintsView.d.ts +5 -0
  303. package/lib/components/common/ConstraintsView.js +4 -0
  304. package/lib/components/common/Dropdown/Dropdown.d.ts +15 -3
  305. package/lib/components/common/Dropdown/Dropdown.js +26 -15
  306. package/lib/components/common/Dropdown/index.d.ts +2 -2
  307. package/lib/components/common/Dropdown/index.js +1 -1
  308. package/lib/components/common/Extensions.d.ts +7 -0
  309. package/lib/components/common/Extensions.js +4 -0
  310. package/lib/components/common/Fields/fields-layout.js +12 -13
  311. package/lib/components/common/Fields/fields.d.ts +33 -16
  312. package/lib/components/common/Fields/fields.js +45 -64
  313. package/lib/components/common/LinkToField.d.ts +3 -9
  314. package/lib/components/common/LinkToField.js +14 -8
  315. package/lib/components/common/OperationItemTitle.d.ts +2 -0
  316. package/lib/components/common/OperationItemTitle.js +33 -0
  317. package/lib/components/common/SchemaSelection/SchemaSelection.d.ts +12 -0
  318. package/lib/components/common/SchemaSelection/SchemaSelection.js +2 -0
  319. package/lib/components/common/SchemaSelection/index.d.ts +1 -0
  320. package/lib/components/common/SchemaSelection/index.js +2 -0
  321. package/lib/components/common/Select/Select.d.ts +3 -0
  322. package/lib/components/common/Select/Select.js +2 -0
  323. package/lib/components/common/Select/index.d.ts +2 -0
  324. package/lib/components/common/Select/index.js +2 -0
  325. package/lib/components/common/Select/styled.d.ts +23 -0
  326. package/lib/components/common/Select/styled.js +111 -0
  327. package/lib/components/common/Select/types.d.ts +20 -0
  328. package/lib/components/common/Skeleton/LanguageListSkeleton.d.ts +4 -0
  329. package/lib/components/common/Skeleton/LanguageListSkeleton.js +23 -0
  330. package/lib/components/common/Skeleton/Skeleton.d.ts +5 -2
  331. package/lib/components/common/Skeleton/Skeleton.js +7 -5
  332. package/lib/components/common/headers.d.ts +0 -1
  333. package/lib/components/common/headers.js +2 -6
  334. package/lib/components/common/index.d.ts +5 -7
  335. package/lib/components/common/index.js +1 -1
  336. package/lib/components/common/linkify.d.ts +4 -3
  337. package/lib/components/common/linkify.js +12 -3
  338. package/lib/components/common/panels.d.ts +5 -1
  339. package/lib/components/common/panels.js +61 -40
  340. package/lib/components/common/schema.d.ts +4 -3
  341. package/lib/components/common/schema.js +26 -20
  342. package/lib/components/common/styled.d.ts +4 -0
  343. package/lib/components/common/styled.js +27 -0
  344. package/lib/components/index.d.ts +5 -13
  345. package/lib/components/index.js +1 -1
  346. package/lib/components/pluggable/RedocExample.d.ts +2 -2
  347. package/lib/components/pluggable/RedocExample.js +1 -1
  348. package/lib/components/pluggable/RedocSchema.d.ts +2 -2
  349. package/lib/components/pluggable/RedocSchema.js +1 -1
  350. package/lib/components/pluggable/index.d.ts +0 -3
  351. package/lib/components/pluggable/index.js +1 -1
  352. package/lib/components/pluggable/styled.components.d.ts +1 -0
  353. package/lib/components/pluggable/styled.components.js +1 -1
  354. package/lib/constants.d.ts +5 -3
  355. package/lib/constants.js +1 -1
  356. package/lib/events/codeSampleCopy.js +1 -1
  357. package/lib/events/index.d.ts +0 -1
  358. package/lib/events/index.js +1 -1
  359. package/lib/events/types.d.ts +1 -8
  360. package/lib/events/types.js +1 -1
  361. package/lib/hoc/types.d.ts +3 -10
  362. package/lib/hoc/utils.d.ts +2 -2
  363. package/lib/hoc/withRouter.d.ts +2 -2
  364. package/lib/hoc/withRouter.js +1 -1
  365. package/lib/hoc/withStore.d.ts +2 -2
  366. package/lib/hoc/withStore.js +1 -1
  367. package/lib/hooks/index.d.ts +2 -0
  368. package/lib/hooks/index.js +1 -1
  369. package/lib/hooks/useActiveWithFallback.d.ts +3 -0
  370. package/lib/hooks/useActiveWithFallback.js +2 -0
  371. package/lib/hooks/useContentItems.js +1 -1
  372. package/lib/hooks/useRouter.d.ts +3 -3
  373. package/lib/hooks/useUppercase2LowercaseRedirect.d.ts +1 -0
  374. package/lib/hooks/useUppercase2LowercaseRedirect.js +2 -0
  375. package/lib/icons/CSharpIcon/CSharpIcon.d.ts +4 -0
  376. package/lib/icons/CSharpIcon/CSharpIcon.js +2 -0
  377. package/lib/icons/CSharpIcon/index.d.ts +1 -0
  378. package/lib/icons/CSharpIcon/index.js +2 -0
  379. package/lib/icons/CurlIcon/CurlIcon.d.ts +4 -0
  380. package/lib/icons/CurlIcon/CurlIcon.js +2 -0
  381. package/lib/icons/CurlIcon/index.d.ts +1 -0
  382. package/lib/icons/CurlIcon/index.js +2 -0
  383. package/lib/icons/GOIcon/GOIcon.d.ts +4 -0
  384. package/lib/icons/GOIcon/GOIcon.js +2 -0
  385. package/lib/icons/GOIcon/index.d.ts +1 -0
  386. package/lib/icons/GOIcon/index.js +2 -0
  387. package/lib/icons/JavaIcon/JavaIcon.d.ts +4 -0
  388. package/lib/icons/JavaIcon/JavaIcon.js +2 -0
  389. package/lib/icons/JavaIcon/index.d.ts +1 -0
  390. package/lib/icons/JavaIcon/index.js +2 -0
  391. package/lib/icons/JavaScriptIcon/JavaScriptIcon.d.ts +4 -0
  392. package/lib/icons/JavaScriptIcon/JavaScriptIcon.js +2 -0
  393. package/lib/icons/JavaScriptIcon/index.d.ts +1 -0
  394. package/lib/icons/JavaScriptIcon/index.js +2 -0
  395. package/lib/icons/NodeJSIcon/NodeJSIcon.d.ts +4 -0
  396. package/lib/icons/NodeJSIcon/NodeJSIcon.js +2 -0
  397. package/lib/icons/NodeJSIcon/index.d.ts +1 -0
  398. package/lib/icons/NodeJSIcon/index.js +2 -0
  399. package/lib/icons/PHPIcon/PHPIcon.d.ts +4 -0
  400. package/lib/icons/PHPIcon/PHPIcon.js +2 -0
  401. package/lib/icons/PHPIcon/index.d.ts +1 -0
  402. package/lib/icons/PHPIcon/index.js +2 -0
  403. package/lib/icons/PayloadIcon/PayloadIcon.d.ts +4 -0
  404. package/lib/icons/PayloadIcon/PayloadIcon.js +2 -0
  405. package/lib/icons/PayloadIcon/index.d.ts +1 -0
  406. package/lib/icons/PayloadIcon/index.js +2 -0
  407. package/lib/icons/PythonIcon/PythonIcon.d.ts +4 -0
  408. package/lib/icons/PythonIcon/PythonIcon.js +2 -0
  409. package/lib/icons/PythonIcon/index.d.ts +1 -0
  410. package/lib/icons/PythonIcon/index.js +2 -0
  411. package/lib/icons/RIcon/RIcon.d.ts +4 -0
  412. package/lib/icons/RIcon/RIcon.js +2 -0
  413. package/lib/icons/RIcon/index.d.ts +1 -0
  414. package/lib/icons/RIcon/index.js +2 -0
  415. package/lib/icons/RubyIcon/RubyIcon.d.ts +4 -0
  416. package/lib/icons/RubyIcon/RubyIcon.js +2 -0
  417. package/lib/icons/RubyIcon/index.d.ts +1 -0
  418. package/lib/icons/RubyIcon/index.js +2 -0
  419. package/lib/index.d.ts +7 -6
  420. package/lib/index.js +1 -1
  421. package/lib/jotai/app.d.ts +34 -22
  422. package/lib/jotai/app.js +1 -1
  423. package/lib/jotai/operation.d.ts +27 -3
  424. package/lib/jotai/operation.js +1 -1
  425. package/lib/jotai/replay.d.ts +3 -0
  426. package/lib/jotai/replay.js +2 -0
  427. package/lib/jotai/store.d.ts +5 -10
  428. package/lib/jotai/store.js +1 -1
  429. package/lib/models/code-sample-options.d.ts +1 -4
  430. package/lib/models/group.d.ts +2 -2
  431. package/lib/models/group.js +1 -1
  432. package/lib/models/index.d.ts +0 -1
  433. package/lib/models/index.js +1 -1
  434. package/lib/models/mediaContent.js +1 -1
  435. package/lib/models/mediaType.js +1 -1
  436. package/lib/models/operation.js +1 -1
  437. package/lib/models/response.js +1 -1
  438. package/lib/models/schema.js +1 -1
  439. package/lib/models/tab.d.ts +4 -0
  440. package/lib/models/tab.js +2 -0
  441. package/lib/models/types.d.ts +11 -14
  442. package/lib/services/OpenAPIParser.d.ts +1 -2
  443. package/lib/services/OpenAPIParser.js +1 -1
  444. package/lib/services/code-samples/constants.d.ts +2 -0
  445. package/lib/services/code-samples/constants.js +2 -0
  446. package/lib/services/code-samples/generator.d.ts +3 -3
  447. package/lib/services/code-samples/generator.js +1 -1
  448. package/lib/services/code-samples/httpsnippet/helpers/code-builder.d.ts +2 -1
  449. package/lib/services/code-samples/httpsnippet/helpers/code-helpers.js +1 -1
  450. package/lib/services/code-samples/httpsnippet/index.d.ts +1 -1
  451. package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.js +1 -1
  452. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  453. package/lib/services/code-samples/httpsnippet/targets/index.d.ts +1 -1
  454. package/lib/services/code-samples/httpsnippet/targets/javascript/index.d.ts +1 -1
  455. package/lib/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
  456. package/lib/services/code-samples/types.d.ts +5 -2
  457. package/lib/services/config-options/helpers.d.ts +3 -0
  458. package/lib/services/config-options/helpers.js +2 -0
  459. package/lib/services/config-options/normalizeOptions.js +2 -0
  460. package/lib/services/config-options/types.d.ts +100 -0
  461. package/lib/services/history/helpers.d.ts +1 -0
  462. package/lib/services/history/helpers.js +1 -1
  463. package/lib/services/index.d.ts +1 -5
  464. package/lib/services/index.js +1 -1
  465. package/lib/services/menu/builder.d.ts +1 -1
  466. package/lib/services/menu/builder.js +1 -1
  467. package/lib/services/menu/markdown.d.ts +1 -4
  468. package/lib/services/menu/markdown.js +1 -1
  469. package/lib/services/menu/operation.d.ts +2 -5
  470. package/lib/services/menu/operation.js +1 -1
  471. package/lib/services/menu/tags.d.ts +1 -1
  472. package/lib/services/menu/tags.js +1 -1
  473. package/lib/services/types.d.ts +4 -50
  474. package/lib/services/types.js +1 -1
  475. package/lib/services/utils.d.ts +0 -7
  476. package/lib/services/utils.js +1 -1
  477. package/lib/setupTests.js +1 -1
  478. package/lib/standalone.d.ts +2 -6
  479. package/lib/standalone.js +1 -1
  480. package/lib/testProviders.d.ts +2 -6
  481. package/lib/testProviders.js +1 -1
  482. package/lib/types/index.d.ts +0 -1
  483. package/lib/types/index.js +1 -1
  484. package/lib/types/open-api.d.ts +10 -4
  485. package/lib/utils/argValuesHelpers.d.ts +1 -1
  486. package/lib/utils/argValuesHelpers.js +1 -1
  487. package/lib/utils/cookies.d.ts +7 -0
  488. package/lib/utils/cookies.js +2 -0
  489. package/lib/utils/dom.d.ts +0 -1
  490. package/lib/utils/dom.js +1 -1
  491. package/lib/utils/environments.d.ts +4 -0
  492. package/lib/utils/environments.js +2 -0
  493. package/lib/utils/helpers.d.ts +0 -3
  494. package/lib/utils/helpers.js +1 -1
  495. package/lib/utils/index.d.ts +2 -2
  496. package/lib/utils/index.js +1 -1
  497. package/lib/utils/isMobile.d.ts +5 -0
  498. package/lib/utils/isMobile.js +2 -0
  499. package/lib/utils/loadAndBundleSpec.js +1 -1
  500. package/lib/utils/local-storage.js +1 -1
  501. package/lib/utils/object.d.ts +1 -0
  502. package/lib/utils/object.js +1 -1
  503. package/lib/utils/openapi.d.ts +2 -5
  504. package/lib/utils/openapi.js +1 -1
  505. package/lib/utils/path.d.ts +0 -2
  506. package/lib/utils/path.js +1 -1
  507. package/lib/utils/replaceVariables.d.ts +2 -0
  508. package/lib/utils/replaceVariables.js +2 -0
  509. package/lib/utils/saveTextBeforeHeading.d.ts +1 -1
  510. package/lib/utils/saveTextBeforeHeading.js +1 -1
  511. package/lib/utils/security-details.d.ts +1 -5
  512. package/lib/utils/security-details.js +1 -1
  513. package/lib/utils/session-storage.js +1 -1
  514. package/lib/utils/string.d.ts +1 -0
  515. package/lib/utils/string.js +1 -1
  516. package/lib-esm/components/ApiInfo/ApiInfo.d.ts +3 -3
  517. package/lib-esm/components/ApiInfo/ApiInfo.js +2 -2
  518. package/lib-esm/components/ApiInfo/Metadata.d.ts +2 -2
  519. package/lib-esm/components/ApiInfo/Metadata.js +1 -1
  520. package/lib-esm/components/ApiInfo/styled.js +5 -2
  521. package/lib-esm/components/CallbackSamples/CallbackSamples.d.ts +4 -4
  522. package/lib-esm/components/CallbackSamples/CallbackSamples.js +15 -1
  523. package/lib-esm/components/Callbacks/CallbackDetails.d.ts +2 -2
  524. package/lib-esm/components/Callbacks/CallbackDetails.js +18 -2
  525. package/lib-esm/components/Callbacks/CallbackOperation.d.ts +4 -2
  526. package/lib-esm/components/Callbacks/CallbackOperation.js +14 -1
  527. package/lib-esm/components/Callbacks/CallbackSummary.d.ts +3 -3
  528. package/lib-esm/components/Callbacks/CallbackSummary.js +18 -1
  529. package/lib-esm/components/Callbacks/CallbacksList.d.ts +5 -3
  530. package/lib-esm/components/Callbacks/CallbacksList.js +1 -1
  531. package/lib-esm/components/Callbacks/styled.js +1 -0
  532. package/lib-esm/components/Content/Content.d.ts +8 -0
  533. package/lib-esm/components/Content/Content.js +2 -0
  534. package/lib-esm/components/Content/index.d.ts +1 -0
  535. package/lib-esm/components/Content/index.js +2 -0
  536. package/lib-esm/components/Content/useAutoScroll.d.ts +1 -0
  537. package/lib-esm/components/Content/useAutoScroll.js +2 -0
  538. package/lib-esm/components/ContentItem/ContentItem.d.ts +3 -3
  539. package/lib-esm/components/ContentItem/ContentItem.js +1 -1
  540. package/lib-esm/components/ContentItem/useIsExpanded.d.ts +5 -0
  541. package/lib-esm/components/ContentItem/useIsExpanded.js +2 -0
  542. package/lib-esm/components/ContentItems/ContentItems.d.ts +3 -3
  543. package/lib-esm/components/ContentItems/ContentItems.js +1 -1
  544. package/lib-esm/components/ContentItems/helpers.d.ts +0 -8
  545. package/lib-esm/components/ContentItems/helpers.js +1 -1
  546. package/lib-esm/components/Discriminator/Discriminator.d.ts +9 -0
  547. package/lib-esm/components/Discriminator/Discriminator.js +6 -0
  548. package/lib-esm/components/Discriminator/index.d.ts +1 -0
  549. package/lib-esm/components/Discriminator/index.js +2 -0
  550. package/lib-esm/components/Download/DownloadSpecification.d.ts +4 -0
  551. package/lib-esm/components/Download/DownloadSpecification.js +40 -0
  552. package/lib-esm/components/Download/index.d.ts +1 -3
  553. package/lib-esm/components/Download/index.js +1 -1
  554. package/lib-esm/components/Download/types.d.ts +10 -14
  555. package/lib-esm/components/Download/useDownloadInfo.d.ts +1 -1
  556. package/lib-esm/components/Download/useDownloadInfo.js +1 -1
  557. package/lib-esm/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
  558. package/lib-esm/components/ErrorBoundary/ErrorBoundary.js +2 -2
  559. package/lib-esm/components/ExpandAllButton/ExpandAllButton.d.ts +6 -0
  560. package/lib-esm/components/ExpandAllButton/ExpandAllButton.js +4 -0
  561. package/lib-esm/components/ExpandAllButton/getAllNestedSchema.d.ts +8 -0
  562. package/lib-esm/components/ExpandAllButton/getAllNestedSchema.js +2 -0
  563. package/lib-esm/components/ExpandAllButton/index.d.ts +2 -0
  564. package/lib-esm/components/ExpandAllButton/index.js +2 -0
  565. package/lib-esm/components/ExpandAllButton/useUpdateExpandedFields.d.ts +2 -0
  566. package/lib-esm/components/ExpandAllButton/useUpdateExpandedFields.js +2 -0
  567. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.d.ts +2 -2
  568. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.js +4 -4
  569. package/lib-esm/components/Language/LanguageDropdown.d.ts +15 -0
  570. package/lib-esm/components/Language/LanguageDropdown.js +2 -0
  571. package/lib-esm/components/Language/LanguageItem.d.ts +11 -0
  572. package/lib-esm/components/Language/LanguageItem.js +2 -0
  573. package/lib-esm/components/Language/LanguageList.d.ts +11 -0
  574. package/lib-esm/components/Language/LanguageList.js +2 -0
  575. package/lib-esm/components/Language/_tests_/LanguageDropdown.test.d.ts +1 -0
  576. package/lib-esm/components/Language/_tests_/LanguageDropdown.test.js +2 -0
  577. package/lib-esm/components/Language/constants.d.ts +1 -0
  578. package/lib-esm/components/Language/constants.js +2 -0
  579. package/lib-esm/components/Language/index.d.ts +3 -0
  580. package/lib-esm/components/Language/index.js +2 -0
  581. package/lib-esm/components/Language/styled.d.ts +30 -0
  582. package/lib-esm/components/Language/styled.js +76 -0
  583. package/lib-esm/components/Markdown/Markdown.d.ts +2 -2
  584. package/lib-esm/components/Markdown/Markdown.js +1 -1
  585. package/lib-esm/components/Markdown/index.d.ts +0 -1
  586. package/lib-esm/components/Markdown/index.js +1 -1
  587. package/lib-esm/components/Markdown/types.d.ts +3 -2
  588. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +5 -5
  589. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
  590. package/lib-esm/components/OperationItem/Description.d.ts +10 -0
  591. package/lib-esm/components/OperationItem/Description.js +2 -0
  592. package/lib-esm/components/OperationItem/OperationItem.d.ts +2 -2
  593. package/lib-esm/components/OperationItem/OperationItem.js +19 -11
  594. package/lib-esm/components/OperationItem/_tests_/OperationItem.test.d.ts +1 -0
  595. package/lib-esm/components/OperationItem/_tests_/OperationItem.test.js +2 -0
  596. package/lib-esm/components/Overlay.d.ts +2 -2
  597. package/lib-esm/components/Overlay.js +1 -1
  598. package/lib-esm/components/Overview/Overview.d.ts +4 -0
  599. package/lib-esm/components/Overview/Overview.js +2 -0
  600. package/lib-esm/components/Overview/index.d.ts +1 -0
  601. package/lib-esm/components/Overview/index.js +2 -0
  602. package/lib-esm/components/PageFooter/PageFooter.d.ts +3 -14
  603. package/lib-esm/components/PageFooter/PageFooter.js +1 -1
  604. package/lib-esm/components/Panel/ContentPanel.d.ts +2 -4
  605. package/lib-esm/components/Panel/ResponsePanel.d.ts +3 -8
  606. package/lib-esm/components/Panel/ResponsePanel.js +7 -8
  607. package/lib-esm/components/Panel/index.d.ts +0 -4
  608. package/lib-esm/components/Panel/index.js +1 -1
  609. package/lib-esm/components/PanelItem/PanelItem.d.ts +9 -0
  610. package/lib-esm/components/PanelItem/PanelItem.js +2 -0
  611. package/lib-esm/components/PanelItem/index.d.ts +2 -0
  612. package/lib-esm/components/PanelItem/index.js +2 -0
  613. package/lib-esm/components/PanelItem/styled.d.ts +17 -0
  614. package/lib-esm/components/PanelItem/styled.js +53 -0
  615. package/lib-esm/components/PayloadSamples/Example.d.ts +2 -2
  616. package/lib-esm/components/PayloadSamples/Example.js +1 -1
  617. package/lib-esm/components/PayloadSamples/ExampleValue.d.ts +1 -1
  618. package/lib-esm/components/PayloadSamples/ExampleValue.js +1 -1
  619. package/lib-esm/components/PayloadSamples/ExternalExample.d.ts +2 -2
  620. package/lib-esm/components/PayloadSamples/ExternalExample.js +1 -1
  621. package/lib-esm/components/PayloadSamples/MediaTypeSamples.d.ts +2 -2
  622. package/lib-esm/components/PayloadSamples/MediaTypeSamples.js +3 -1
  623. package/lib-esm/components/PayloadSamples/PayloadSamples.d.ts +2 -2
  624. package/lib-esm/components/PayloadSamples/PayloadSamples.js +1 -1
  625. package/lib-esm/components/PayloadSamples/styled.d.ts +4 -3
  626. package/lib-esm/components/PayloadSamples/styled.js +10 -5
  627. package/lib-esm/components/PayloadSamples/types.d.ts +0 -1
  628. package/lib-esm/components/PropertyDetails/DescriptionEnums.d.ts +4 -0
  629. package/lib-esm/components/PropertyDetails/DescriptionEnums.js +10 -0
  630. package/lib-esm/components/PropertyDetails/EnumValues.d.ts +3 -0
  631. package/lib-esm/components/PropertyDetails/EnumValues.js +2 -0
  632. package/lib-esm/components/PropertyDetails/Examples.d.ts +5 -0
  633. package/lib-esm/components/PropertyDetails/Examples.js +2 -0
  634. package/lib-esm/components/PropertyDetails/Extensions.d.ts +3 -0
  635. package/lib-esm/components/PropertyDetails/Extensions.js +4 -0
  636. package/lib-esm/components/PropertyDetails/FieldDetail.d.ts +7 -0
  637. package/lib-esm/components/PropertyDetails/FieldDetail.js +8 -0
  638. package/lib-esm/components/PropertyDetails/FieldDetails.d.ts +3 -0
  639. package/lib-esm/components/PropertyDetails/FieldDetails.js +43 -0
  640. package/lib-esm/components/PropertyDetails/Pattern.d.ts +6 -0
  641. package/lib-esm/components/PropertyDetails/Pattern.js +2 -0
  642. package/lib-esm/components/PropertyDetails/PlusCircleIcon.d.ts +7 -0
  643. package/lib-esm/components/PropertyDetails/PlusCircleIcon.js +11 -0
  644. package/lib-esm/components/PropertyDetails/PropertyDetails.d.ts +3 -0
  645. package/lib-esm/components/PropertyDetails/PropertyDetails.js +17 -0
  646. package/lib-esm/components/PropertyDetails/SchemaTypeInfo.d.ts +6 -0
  647. package/lib-esm/components/PropertyDetails/SchemaTypeInfo.js +16 -0
  648. package/lib-esm/components/PropertyDetails/SimpleEnums.d.ts +4 -0
  649. package/lib-esm/components/PropertyDetails/SimpleEnums.js +8 -0
  650. package/lib-esm/components/PropertyDetails/cycleColorsByLevel.d.ts +1 -0
  651. package/lib-esm/components/PropertyDetails/cycleColorsByLevel.js +2 -0
  652. package/lib-esm/components/PropertyDetails/index.d.ts +3 -0
  653. package/lib-esm/components/PropertyDetails/index.js +2 -0
  654. package/lib-esm/components/PropertyDetails/styled.d.ts +11 -0
  655. package/lib-esm/components/PropertyDetails/styled.js +23 -0
  656. package/lib-esm/components/PropertyDetails/types.d.ts +42 -0
  657. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.d.ts +4 -6
  658. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.js +1 -1
  659. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +3 -4
  660. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +1 -1
  661. package/lib-esm/components/RedoclyOpenAPIDocs/index.d.ts +2 -2
  662. package/lib-esm/components/RedoclyOpenAPIDocs/index.js +1 -1
  663. package/lib-esm/components/RedoclyOpenAPIDocs/styled.d.ts +0 -6
  664. package/lib-esm/components/RedoclyOpenAPIDocs/styled.js +23 -89
  665. package/lib-esm/components/RedoclyOpenAPIDocs/types.d.ts +12 -30
  666. package/lib-esm/components/RedoclyOpenAPIDocs/utils.d.ts +1 -3
  667. package/lib-esm/components/RedoclyOpenAPIDocs/utils.js +1 -1
  668. package/lib-esm/components/RenderHook/RenderHook.d.ts +3 -3
  669. package/lib-esm/components/RenderHook/RenderHook.js +1 -1
  670. package/lib-esm/components/Replay/EmbeddedReplay.d.ts +11 -0
  671. package/lib-esm/components/Replay/EmbeddedReplay.js +11 -0
  672. package/lib-esm/components/Replay/Replay.d.ts +10 -0
  673. package/lib-esm/components/Replay/Replay.js +14 -0
  674. package/lib-esm/components/Replay/index.d.ts +2 -0
  675. package/lib-esm/components/Replay/index.js +2 -0
  676. package/lib-esm/components/Replay/utils.d.ts +14 -0
  677. package/lib-esm/components/Replay/utils.js +2 -0
  678. package/lib-esm/components/Request/RequestDetails.d.ts +3 -0
  679. package/lib-esm/components/Request/RequestDetails.js +2 -0
  680. package/lib-esm/components/Request/types.d.ts +6 -0
  681. package/lib-esm/components/RequestParameters/Body.d.ts +10 -0
  682. package/lib-esm/components/RequestParameters/Body.js +2 -0
  683. package/lib-esm/components/RequestParameters/ParametersGroup.d.ts +9 -0
  684. package/lib-esm/components/RequestParameters/ParametersGroup.js +21 -0
  685. package/lib-esm/components/RequestParameters/RequestParameters.d.ts +9 -0
  686. package/lib-esm/components/RequestParameters/RequestParameters.js +2 -0
  687. package/lib-esm/components/RequestParameters/index.d.ts +2 -0
  688. package/lib-esm/components/RequestParameters/index.js +2 -0
  689. package/lib-esm/components/RequestSamples/CodeSample.d.ts +3 -4
  690. package/lib-esm/components/RequestSamples/CodeSample.js +9 -1
  691. package/lib-esm/components/RequestSamples/Example.d.ts +3 -4
  692. package/lib-esm/components/RequestSamples/Example.js +1 -1
  693. package/lib-esm/components/RequestSamples/RequestSamples.d.ts +4 -9
  694. package/lib-esm/components/RequestSamples/RequestSamples.js +6 -1
  695. package/lib-esm/components/RequestSamples/useCodeSamples.d.ts +1 -1
  696. package/lib-esm/components/RequestSamples/useCodeSamples.js +1 -1
  697. package/lib-esm/components/ResponseSamples/ResponseSamples.d.ts +5 -3
  698. package/lib-esm/components/ResponseSamples/ResponseSamples.js +1 -1
  699. package/lib-esm/components/ResponseSamples/Summary.d.ts +5 -0
  700. package/lib-esm/components/ResponseSamples/Summary.js +2 -0
  701. package/lib-esm/components/Responses/OperationResponseList.d.ts +8 -2
  702. package/lib-esm/components/Responses/OperationResponseList.js +4 -1
  703. package/lib-esm/components/Responses/ResponseDetails.d.ts +2 -2
  704. package/lib-esm/components/Responses/ResponseDetails.js +1 -3
  705. package/lib-esm/components/Responses/ResponseHeaders.d.ts +2 -2
  706. package/lib-esm/components/Responses/ResponseHeaders.js +1 -1
  707. package/lib-esm/components/Responses/index.d.ts +0 -3
  708. package/lib-esm/components/Responses/index.js +1 -1
  709. package/lib-esm/components/Responses/styled.d.ts +6 -3
  710. package/lib-esm/components/Responses/styled.js +21 -12
  711. package/lib-esm/components/Responses/types.d.ts +5 -7
  712. package/lib-esm/components/RightPanel/RightPanel.d.ts +5 -0
  713. package/lib-esm/components/RightPanel/RightPanel.js +2 -0
  714. package/lib-esm/components/RightPanel/index.d.ts +1 -0
  715. package/lib-esm/components/RightPanel/index.js +2 -0
  716. package/lib-esm/components/Samples/ExampleSwitch.d.ts +2 -3
  717. package/lib-esm/components/Samples/ExampleSwitch.js +1 -1
  718. package/lib-esm/components/Samples/index.d.ts +0 -2
  719. package/lib-esm/components/Samples/index.js +1 -1
  720. package/lib-esm/components/Samples/use-example-key.d.ts +1 -2
  721. package/lib-esm/components/Samples/use-example-key.js +1 -1
  722. package/lib-esm/components/Schema/ArraySchema.d.ts +3 -2
  723. package/lib-esm/components/Schema/ArraySchema.js +33 -3
  724. package/lib-esm/components/Schema/ObjectSchema.d.ts +2 -2
  725. package/lib-esm/components/Schema/ObjectSchema.js +1 -1
  726. package/lib-esm/components/Schema/OneOfSchema.d.ts +2 -2
  727. package/lib-esm/components/Schema/OneOfSchema.js +9 -1
  728. package/lib-esm/components/Schema/RecursiveSchema.d.ts +2 -2
  729. package/lib-esm/components/Schema/RecursiveSchema.js +1 -1
  730. package/lib-esm/components/Schema/Schema.d.ts +2 -2
  731. package/lib-esm/components/Schema/Schema.js +4 -1
  732. package/lib-esm/components/Schema/SubSchema.d.ts +13 -0
  733. package/lib-esm/components/Schema/SubSchema.js +2 -0
  734. package/lib-esm/components/Schema/helpers.d.ts +5 -0
  735. package/lib-esm/components/Schema/helpers.js +2 -0
  736. package/lib-esm/components/Schema/types.d.ts +9 -1
  737. package/lib-esm/components/SchemaDefinition/SchemaDefinition.d.ts +2 -2
  738. package/lib-esm/components/SchemaDefinition/SchemaDefinition.js +1 -4
  739. package/lib-esm/components/SectionContent/SectionContent.d.ts +2 -10
  740. package/lib-esm/components/SectionContent/SectionContent.js +24 -1
  741. package/lib-esm/components/SectionItem/SectionItem.d.ts +2 -2
  742. package/lib-esm/components/SectionItem/SectionItem.js +1 -1
  743. package/lib-esm/components/Security/Divider.d.ts +3 -0
  744. package/lib-esm/components/Security/Divider.js +15 -0
  745. package/lib-esm/components/Security/OAuthFlow.d.ts +6 -0
  746. package/lib-esm/components/Security/OAuthFlow.js +4 -0
  747. package/lib-esm/components/Security/Security.d.ts +7 -0
  748. package/lib-esm/components/Security/Security.js +2 -0
  749. package/lib-esm/components/Security/SecurityButton.d.ts +10 -0
  750. package/lib-esm/components/Security/SecurityButton.js +28 -0
  751. package/lib-esm/components/Security/SecurityFlow.d.ts +5 -0
  752. package/lib-esm/components/Security/SecurityFlow.js +21 -0
  753. package/lib-esm/components/Security/SecurityModal.d.ts +8 -0
  754. package/lib-esm/components/Security/SecurityModal.js +45 -0
  755. package/lib-esm/components/Security/SecuritySchemeItem.d.ts +7 -0
  756. package/lib-esm/components/Security/SecuritySchemeItem.js +20 -0
  757. package/lib-esm/components/Security/helper.d.ts +2 -0
  758. package/lib-esm/components/Security/helper.js +2 -0
  759. package/lib-esm/components/Security/index.d.ts +1 -0
  760. package/lib-esm/components/Security/index.js +2 -0
  761. package/lib-esm/components/Security/styled.d.ts +2 -0
  762. package/lib-esm/components/Security/styled.js +14 -0
  763. package/lib-esm/components/SelectOrLabel/SelectOrLabel.d.ts +7 -0
  764. package/lib-esm/components/SelectOrLabel/SelectOrLabel.js +8 -0
  765. package/lib-esm/components/SelectOrLabel/index.d.ts +1 -0
  766. package/lib-esm/components/SelectOrLabel/index.js +2 -0
  767. package/lib-esm/components/ServerList/ServerList.d.ts +3 -0
  768. package/lib-esm/components/ServerList/ServerList.js +60 -0
  769. package/lib-esm/components/ServerList/index.d.ts +1 -0
  770. package/lib-esm/components/ServerList/index.js +2 -0
  771. package/lib-esm/components/ServerList/types.d.ts +2 -0
  772. package/lib-esm/components/ServerListDropdown/ServerListDropdown.d.ts +7 -0
  773. package/lib-esm/components/ServerListDropdown/ServerListDropdown.js +2 -0
  774. package/lib-esm/components/ServerListDropdown/index.d.ts +1 -0
  775. package/lib-esm/components/ServerListDropdown/index.js +2 -0
  776. package/lib-esm/components/ServerListDropdown/styled.d.ts +16 -0
  777. package/lib-esm/components/ServerListDropdown/styled.js +23 -0
  778. package/lib-esm/components/SideMenu/SideMenu.d.ts +3 -2
  779. package/lib-esm/components/SideMenu/SideMenu.js +3 -1
  780. package/lib-esm/components/SideMenu/hooks/useMenuItems.d.ts +1 -3
  781. package/lib-esm/components/SideMenu/hooks/useMenuItems.js +1 -1
  782. package/lib-esm/components/SideMenu/index.d.ts +0 -3
  783. package/lib-esm/components/SideMenu/index.js +1 -1
  784. package/lib-esm/components/SideMenu/types.d.ts +1 -15
  785. package/lib-esm/components/StickySidebar/SidebarActions.d.ts +1 -0
  786. package/lib-esm/components/StickySidebar/SidebarActions.js +6 -0
  787. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.d.ts +2 -3
  788. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.js +12 -26
  789. package/lib-esm/components/Tabs/Tabs.d.ts +8 -0
  790. package/lib-esm/components/Tabs/Tabs.js +35 -0
  791. package/lib-esm/components/Tabs/index.d.ts +2 -5
  792. package/lib-esm/components/Tabs/index.js +1 -1
  793. package/lib-esm/components/Tabs/useTabsState.d.ts +11 -0
  794. package/lib-esm/components/Tabs/useTabsState.js +2 -0
  795. package/lib-esm/components/TagItem/OperationsNavigation.d.ts +9 -0
  796. package/lib-esm/components/TagItem/OperationsNavigation.js +46 -0
  797. package/lib-esm/components/TagItem/TagItem.d.ts +8 -2
  798. package/lib-esm/components/TagItem/TagItem.js +22 -1
  799. package/lib-esm/components/UnsupportedFeatureScreen/UnsupportedFeatureScreen.d.ts +1 -0
  800. package/lib-esm/components/UnsupportedFeatureScreen/UnsupportedFeatureScreen.js +18 -0
  801. package/lib-esm/components/UnsupportedFeatureScreen/index.d.ts +1 -0
  802. package/lib-esm/components/UnsupportedFeatureScreen/index.js +2 -0
  803. package/lib-esm/components/ViewNested/ViewNested.d.ts +13 -0
  804. package/lib-esm/components/ViewNested/ViewNested.js +31 -0
  805. package/lib-esm/components/ViewNested/index.d.ts +1 -0
  806. package/lib-esm/components/ViewNested/index.js +2 -0
  807. package/lib-esm/components/common/BodyContent/BodyContent.d.ts +12 -0
  808. package/lib-esm/components/common/BodyContent/BodyContent.js +28 -0
  809. package/lib-esm/components/common/BodyContent/index.d.ts +1 -0
  810. package/lib-esm/components/common/BodyContent/index.js +2 -0
  811. package/lib-esm/components/common/ClearButton/ClearButton.d.ts +2 -2
  812. package/lib-esm/components/common/ClearButton/ClearButton.js +1 -1
  813. package/lib-esm/components/common/ClearButton/types.d.ts +2 -2
  814. package/lib-esm/components/common/CodeBlockPanel.d.ts +2 -0
  815. package/lib-esm/components/common/CodeBlockPanel.js +6 -0
  816. package/lib-esm/components/common/ConstraintsView.d.ts +5 -0
  817. package/lib-esm/components/common/ConstraintsView.js +4 -0
  818. package/lib-esm/components/common/Dropdown/Dropdown.d.ts +15 -3
  819. package/lib-esm/components/common/Dropdown/Dropdown.js +26 -15
  820. package/lib-esm/components/common/Dropdown/index.d.ts +2 -2
  821. package/lib-esm/components/common/Dropdown/index.js +1 -1
  822. package/lib-esm/components/common/Extensions.d.ts +7 -0
  823. package/lib-esm/components/common/Extensions.js +4 -0
  824. package/lib-esm/components/common/Fields/fields-layout.js +12 -13
  825. package/lib-esm/components/common/Fields/fields.d.ts +33 -16
  826. package/lib-esm/components/common/Fields/fields.js +45 -64
  827. package/lib-esm/components/common/LinkToField.d.ts +3 -9
  828. package/lib-esm/components/common/LinkToField.js +14 -8
  829. package/lib-esm/components/common/OperationItemTitle.d.ts +2 -0
  830. package/lib-esm/components/common/OperationItemTitle.js +33 -0
  831. package/lib-esm/components/common/SchemaSelection/SchemaSelection.d.ts +12 -0
  832. package/lib-esm/components/common/SchemaSelection/SchemaSelection.js +2 -0
  833. package/lib-esm/components/common/SchemaSelection/index.d.ts +1 -0
  834. package/lib-esm/components/common/SchemaSelection/index.js +2 -0
  835. package/lib-esm/components/common/Select/Select.d.ts +3 -0
  836. package/lib-esm/components/common/Select/Select.js +2 -0
  837. package/lib-esm/components/common/Select/index.d.ts +2 -0
  838. package/lib-esm/components/common/Select/index.js +2 -0
  839. package/lib-esm/components/common/Select/styled.d.ts +23 -0
  840. package/lib-esm/components/common/Select/styled.js +111 -0
  841. package/lib-esm/components/common/Select/types.d.ts +20 -0
  842. package/lib-esm/components/common/Skeleton/LanguageListSkeleton.d.ts +4 -0
  843. package/lib-esm/components/common/Skeleton/LanguageListSkeleton.js +23 -0
  844. package/lib-esm/components/common/Skeleton/Skeleton.d.ts +5 -2
  845. package/lib-esm/components/common/Skeleton/Skeleton.js +7 -5
  846. package/lib-esm/components/common/headers.d.ts +0 -1
  847. package/lib-esm/components/common/headers.js +2 -6
  848. package/lib-esm/components/common/index.d.ts +5 -7
  849. package/lib-esm/components/common/index.js +1 -1
  850. package/lib-esm/components/common/linkify.d.ts +4 -3
  851. package/lib-esm/components/common/linkify.js +13 -4
  852. package/lib-esm/components/common/panels.d.ts +5 -1
  853. package/lib-esm/components/common/panels.js +65 -44
  854. package/lib-esm/components/common/schema.d.ts +4 -3
  855. package/lib-esm/components/common/schema.js +25 -19
  856. package/lib-esm/components/common/styled.d.ts +4 -0
  857. package/lib-esm/components/common/styled.js +27 -0
  858. package/lib-esm/components/index.d.ts +5 -13
  859. package/lib-esm/components/index.js +1 -1
  860. package/lib-esm/components/pluggable/RedocExample.d.ts +2 -2
  861. package/lib-esm/components/pluggable/RedocExample.js +1 -1
  862. package/lib-esm/components/pluggable/RedocSchema.d.ts +2 -2
  863. package/lib-esm/components/pluggable/RedocSchema.js +1 -1
  864. package/lib-esm/components/pluggable/index.d.ts +0 -3
  865. package/lib-esm/components/pluggable/index.js +1 -1
  866. package/lib-esm/components/pluggable/styled.components.d.ts +1 -0
  867. package/lib-esm/components/pluggable/styled.components.js +1 -1
  868. package/lib-esm/constants.d.ts +5 -3
  869. package/lib-esm/constants.js +1 -1
  870. package/lib-esm/events/codeSampleCopy.js +1 -1
  871. package/lib-esm/events/index.d.ts +0 -1
  872. package/lib-esm/events/index.js +1 -1
  873. package/lib-esm/events/types.d.ts +1 -8
  874. package/lib-esm/events/types.js +1 -1
  875. package/lib-esm/hoc/types.d.ts +3 -10
  876. package/lib-esm/hoc/utils.d.ts +2 -2
  877. package/lib-esm/hoc/withRouter.d.ts +2 -2
  878. package/lib-esm/hoc/withRouter.js +1 -1
  879. package/lib-esm/hoc/withStore.d.ts +2 -2
  880. package/lib-esm/hoc/withStore.js +1 -1
  881. package/lib-esm/hooks/index.d.ts +2 -0
  882. package/lib-esm/hooks/index.js +1 -1
  883. package/lib-esm/hooks/useActiveWithFallback.d.ts +3 -0
  884. package/lib-esm/hooks/useActiveWithFallback.js +2 -0
  885. package/lib-esm/hooks/useContentItems.js +1 -1
  886. package/lib-esm/hooks/useRouter.d.ts +3 -3
  887. package/lib-esm/hooks/useUppercase2LowercaseRedirect.d.ts +1 -0
  888. package/lib-esm/hooks/useUppercase2LowercaseRedirect.js +2 -0
  889. package/lib-esm/icons/CSharpIcon/CSharpIcon.d.ts +4 -0
  890. package/lib-esm/icons/CSharpIcon/CSharpIcon.js +2 -0
  891. package/lib-esm/icons/CSharpIcon/index.d.ts +1 -0
  892. package/lib-esm/icons/CSharpIcon/index.js +2 -0
  893. package/lib-esm/icons/CurlIcon/CurlIcon.d.ts +4 -0
  894. package/lib-esm/icons/CurlIcon/CurlIcon.js +2 -0
  895. package/lib-esm/icons/CurlIcon/index.d.ts +1 -0
  896. package/lib-esm/icons/CurlIcon/index.js +2 -0
  897. package/lib-esm/icons/GOIcon/GOIcon.d.ts +4 -0
  898. package/lib-esm/icons/GOIcon/GOIcon.js +2 -0
  899. package/lib-esm/icons/GOIcon/index.d.ts +1 -0
  900. package/lib-esm/icons/GOIcon/index.js +2 -0
  901. package/lib-esm/icons/JavaIcon/JavaIcon.d.ts +4 -0
  902. package/lib-esm/icons/JavaIcon/JavaIcon.js +2 -0
  903. package/lib-esm/icons/JavaIcon/index.d.ts +1 -0
  904. package/lib-esm/icons/JavaIcon/index.js +2 -0
  905. package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.d.ts +4 -0
  906. package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.js +2 -0
  907. package/lib-esm/icons/JavaScriptIcon/index.d.ts +1 -0
  908. package/lib-esm/icons/JavaScriptIcon/index.js +2 -0
  909. package/lib-esm/icons/NodeJSIcon/NodeJSIcon.d.ts +4 -0
  910. package/lib-esm/icons/NodeJSIcon/NodeJSIcon.js +2 -0
  911. package/lib-esm/icons/NodeJSIcon/index.d.ts +1 -0
  912. package/lib-esm/icons/NodeJSIcon/index.js +2 -0
  913. package/lib-esm/icons/PHPIcon/PHPIcon.d.ts +4 -0
  914. package/lib-esm/icons/PHPIcon/PHPIcon.js +2 -0
  915. package/lib-esm/icons/PHPIcon/index.d.ts +1 -0
  916. package/lib-esm/icons/PHPIcon/index.js +2 -0
  917. package/lib-esm/icons/PayloadIcon/PayloadIcon.d.ts +4 -0
  918. package/lib-esm/icons/PayloadIcon/PayloadIcon.js +2 -0
  919. package/lib-esm/icons/PayloadIcon/index.d.ts +1 -0
  920. package/lib-esm/icons/PayloadIcon/index.js +2 -0
  921. package/lib-esm/icons/PythonIcon/PythonIcon.d.ts +4 -0
  922. package/lib-esm/icons/PythonIcon/PythonIcon.js +2 -0
  923. package/lib-esm/icons/PythonIcon/index.d.ts +1 -0
  924. package/lib-esm/icons/PythonIcon/index.js +2 -0
  925. package/lib-esm/icons/RIcon/RIcon.d.ts +4 -0
  926. package/lib-esm/icons/RIcon/RIcon.js +2 -0
  927. package/lib-esm/icons/RIcon/index.d.ts +1 -0
  928. package/lib-esm/icons/RIcon/index.js +2 -0
  929. package/lib-esm/icons/RubyIcon/RubyIcon.d.ts +4 -0
  930. package/lib-esm/icons/RubyIcon/RubyIcon.js +2 -0
  931. package/lib-esm/icons/RubyIcon/index.d.ts +1 -0
  932. package/lib-esm/icons/RubyIcon/index.js +2 -0
  933. package/lib-esm/index.d.ts +7 -6
  934. package/lib-esm/index.js +1 -1
  935. package/lib-esm/jotai/app.d.ts +34 -22
  936. package/lib-esm/jotai/app.js +1 -1
  937. package/lib-esm/jotai/operation.d.ts +27 -3
  938. package/lib-esm/jotai/operation.js +1 -1
  939. package/lib-esm/jotai/replay.d.ts +3 -0
  940. package/lib-esm/jotai/replay.js +2 -0
  941. package/lib-esm/jotai/store.d.ts +5 -10
  942. package/lib-esm/jotai/store.js +1 -1
  943. package/lib-esm/models/code-sample-options.d.ts +1 -4
  944. package/lib-esm/models/group.d.ts +2 -2
  945. package/lib-esm/models/group.js +1 -1
  946. package/lib-esm/models/index.d.ts +0 -1
  947. package/lib-esm/models/index.js +1 -1
  948. package/lib-esm/models/mediaContent.js +1 -1
  949. package/lib-esm/models/mediaType.js +1 -1
  950. package/lib-esm/models/operation.js +1 -1
  951. package/lib-esm/models/response.js +1 -1
  952. package/lib-esm/models/schema.js +1 -1
  953. package/lib-esm/models/tab.d.ts +4 -0
  954. package/lib-esm/models/tab.js +2 -0
  955. package/lib-esm/models/types.d.ts +11 -14
  956. package/lib-esm/services/OpenAPIParser.d.ts +1 -2
  957. package/lib-esm/services/OpenAPIParser.js +1 -1
  958. package/lib-esm/services/code-samples/constants.d.ts +2 -0
  959. package/lib-esm/services/code-samples/constants.js +2 -0
  960. package/lib-esm/services/code-samples/generator.d.ts +3 -3
  961. package/lib-esm/services/code-samples/generator.js +1 -1
  962. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.d.ts +2 -1
  963. package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.js +1 -1
  964. package/lib-esm/services/code-samples/httpsnippet/index.d.ts +1 -1
  965. package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.js +1 -1
  966. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  967. package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +1 -1
  968. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.d.ts +1 -1
  969. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
  970. package/lib-esm/services/code-samples/types.d.ts +5 -2
  971. package/lib-esm/services/config-options/helpers.d.ts +3 -0
  972. package/lib-esm/services/config-options/helpers.js +2 -0
  973. package/lib-esm/services/config-options/normalizeOptions.js +2 -0
  974. package/lib-esm/services/config-options/types.d.ts +100 -0
  975. package/lib-esm/services/history/helpers.d.ts +1 -0
  976. package/lib-esm/services/history/helpers.js +1 -1
  977. package/lib-esm/services/index.d.ts +1 -5
  978. package/lib-esm/services/index.js +1 -1
  979. package/lib-esm/services/menu/builder.d.ts +1 -1
  980. package/lib-esm/services/menu/builder.js +1 -1
  981. package/lib-esm/services/menu/markdown.d.ts +1 -4
  982. package/lib-esm/services/menu/markdown.js +1 -1
  983. package/lib-esm/services/menu/operation.d.ts +2 -5
  984. package/lib-esm/services/menu/operation.js +1 -1
  985. package/lib-esm/services/menu/tags.d.ts +1 -1
  986. package/lib-esm/services/menu/tags.js +1 -1
  987. package/lib-esm/services/types.d.ts +4 -50
  988. package/lib-esm/services/types.js +1 -1
  989. package/lib-esm/services/utils.d.ts +0 -7
  990. package/lib-esm/services/utils.js +1 -1
  991. package/lib-esm/setupTests.js +1 -1
  992. package/lib-esm/standalone.d.ts +2 -6
  993. package/lib-esm/standalone.js +1 -1
  994. package/lib-esm/testProviders.d.ts +2 -6
  995. package/lib-esm/testProviders.js +1 -1
  996. package/lib-esm/types/index.d.ts +0 -1
  997. package/lib-esm/types/index.js +1 -1
  998. package/lib-esm/types/open-api.d.ts +10 -4
  999. package/lib-esm/utils/argValuesHelpers.d.ts +1 -1
  1000. package/lib-esm/utils/argValuesHelpers.js +1 -1
  1001. package/lib-esm/utils/cookies.d.ts +7 -0
  1002. package/lib-esm/utils/cookies.js +2 -0
  1003. package/lib-esm/utils/dom.d.ts +0 -1
  1004. package/lib-esm/utils/dom.js +1 -1
  1005. package/lib-esm/utils/environments.d.ts +4 -0
  1006. package/lib-esm/utils/environments.js +2 -0
  1007. package/lib-esm/utils/helpers.d.ts +0 -3
  1008. package/lib-esm/utils/helpers.js +1 -1
  1009. package/lib-esm/utils/index.d.ts +2 -2
  1010. package/lib-esm/utils/index.js +1 -1
  1011. package/lib-esm/utils/isMobile.d.ts +5 -0
  1012. package/lib-esm/utils/isMobile.js +2 -0
  1013. package/lib-esm/utils/loadAndBundleSpec.js +1 -1
  1014. package/lib-esm/utils/local-storage.js +1 -1
  1015. package/lib-esm/utils/object.d.ts +1 -0
  1016. package/lib-esm/utils/object.js +1 -1
  1017. package/lib-esm/utils/openapi.d.ts +2 -5
  1018. package/lib-esm/utils/openapi.js +1 -1
  1019. package/lib-esm/utils/path.d.ts +0 -2
  1020. package/lib-esm/utils/path.js +1 -1
  1021. package/lib-esm/utils/replaceVariables.d.ts +2 -0
  1022. package/lib-esm/utils/replaceVariables.js +2 -0
  1023. package/lib-esm/utils/saveTextBeforeHeading.d.ts +1 -1
  1024. package/lib-esm/utils/saveTextBeforeHeading.js +1 -1
  1025. package/lib-esm/utils/security-details.d.ts +1 -5
  1026. package/lib-esm/utils/security-details.js +1 -1
  1027. package/lib-esm/utils/session-storage.js +1 -1
  1028. package/lib-esm/utils/string.d.ts +1 -0
  1029. package/lib-esm/utils/string.js +1 -1
  1030. package/package.json +19 -33
  1031. package/dist/console.redocly-openapi-docs.min.js +0 -423
  1032. package/dist/oauth2-redirect.html +0 -7
  1033. package/dist/oauth2-redirect.js +0 -9
  1034. package/lib/components/ApiInfo/types.d.ts +0 -9
  1035. package/lib/components/CallbackSamples/CallbackReqSamples.d.ts +0 -7
  1036. package/lib/components/CallbackSamples/CallbackReqSamples.js +0 -4
  1037. package/lib/components/ContentItems/useAutoScroll.d.ts +0 -1
  1038. package/lib/components/ContentItems/useAutoScroll.js +0 -2
  1039. package/lib/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +0 -11
  1040. package/lib/components/DiscriminatorDropdown/DiscriminatorDropdown.js +0 -2
  1041. package/lib/components/DiscriminatorDropdown/index.d.ts +0 -1
  1042. package/lib/components/DiscriminatorDropdown/index.js +0 -2
  1043. package/lib/components/Download/DownloadButtonWithLabel.d.ts +0 -3
  1044. package/lib/components/Download/DownloadButtonWithLabel.js +0 -13
  1045. package/lib/components/Download/DownloadLink.d.ts +0 -3
  1046. package/lib/components/Download/DownloadLink.js +0 -4
  1047. package/lib/components/DropdownOrLabel/DropdownOrLabel.d.ts +0 -7
  1048. package/lib/components/DropdownOrLabel/DropdownOrLabel.js +0 -8
  1049. package/lib/components/DropdownOrLabel/index.d.ts +0 -1
  1050. package/lib/components/DropdownOrLabel/index.js +0 -2
  1051. package/lib/components/Endpoint/Endpoint.d.ts +0 -3
  1052. package/lib/components/Endpoint/Endpoint.js +0 -2
  1053. package/lib/components/Endpoint/ServerList.d.ts +0 -3
  1054. package/lib/components/Endpoint/ServerList.js +0 -2
  1055. package/lib/components/Endpoint/Summary.d.ts +0 -3
  1056. package/lib/components/Endpoint/Summary.js +0 -2
  1057. package/lib/components/Endpoint/api-client.d.ts +0 -7
  1058. package/lib/components/Endpoint/api-client.js +0 -2
  1059. package/lib/components/Endpoint/index.d.ts +0 -2
  1060. package/lib/components/Endpoint/index.js +0 -2
  1061. package/lib/components/Endpoint/styled.d.ts +0 -9
  1062. package/lib/components/Endpoint/styled.js +0 -49
  1063. package/lib/components/Endpoint/types.d.ts +0 -21
  1064. package/lib/components/Fields/ConstraintsView.d.ts +0 -5
  1065. package/lib/components/Fields/ConstraintsView.js +0 -2
  1066. package/lib/components/Fields/DescriptionEnums.d.ts +0 -4
  1067. package/lib/components/Fields/DescriptionEnums.js +0 -5
  1068. package/lib/components/Fields/EnumValues.d.ts +0 -3
  1069. package/lib/components/Fields/EnumValues.js +0 -2
  1070. package/lib/components/Fields/Examples.d.ts +0 -6
  1071. package/lib/components/Fields/Examples.js +0 -2
  1072. package/lib/components/Fields/Extensions.d.ts +0 -3
  1073. package/lib/components/Fields/Extensions.js +0 -4
  1074. package/lib/components/Fields/Field.d.ts +0 -5
  1075. package/lib/components/Fields/Field.js +0 -2
  1076. package/lib/components/Fields/FieldDetail.d.ts +0 -8
  1077. package/lib/components/Fields/FieldDetail.js +0 -2
  1078. package/lib/components/Fields/FieldDetails.d.ts +0 -3
  1079. package/lib/components/Fields/FieldDetails.js +0 -2
  1080. package/lib/components/Fields/SimpleEnums.d.ts +0 -4
  1081. package/lib/components/Fields/SimpleEnums.js +0 -2
  1082. package/lib/components/Fields/index.d.ts +0 -4
  1083. package/lib/components/Fields/index.js +0 -2
  1084. package/lib/components/Fields/styled.d.ts +0 -11
  1085. package/lib/components/Fields/styled.js +0 -30
  1086. package/lib/components/Fields/types.d.ts +0 -40
  1087. package/lib/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +0 -10
  1088. package/lib/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +0 -2
  1089. package/lib/components/GenericChildrenSwitcher/index.d.ts +0 -1
  1090. package/lib/components/GenericChildrenSwitcher/index.js +0 -2
  1091. package/lib/components/Loading/Loading.d.ts +0 -5
  1092. package/lib/components/Loading/Loading.js +0 -9
  1093. package/lib/components/Loading/index.d.ts +0 -1
  1094. package/lib/components/Loading/index.js +0 -2
  1095. package/lib/components/Markdown/styled.d.ts +0 -4
  1096. package/lib/components/Markdown/styled.js +0 -2
  1097. package/lib/components/NextSectionButton/NextSectionButton.d.ts +0 -9
  1098. package/lib/components/NextSectionButton/NextSectionButton.js +0 -2
  1099. package/lib/components/NextSectionButton/index.d.ts +0 -1
  1100. package/lib/components/NextSectionButton/index.js +0 -2
  1101. package/lib/components/OperationParameters/OperationParameters.d.ts +0 -3
  1102. package/lib/components/OperationParameters/OperationParameters.js +0 -2
  1103. package/lib/components/OperationParameters/index.d.ts +0 -1
  1104. package/lib/components/OperationParameters/index.js +0 -2
  1105. package/lib/components/OperationParameters/types.d.ts +0 -13
  1106. package/lib/components/OperationParameters/types.js +0 -2
  1107. package/lib/components/OperationParameters/utils.d.ts +0 -8
  1108. package/lib/components/OperationParameters/utils.js +0 -2
  1109. package/lib/components/Panel/Accordion.d.ts +0 -5
  1110. package/lib/components/Panel/Accordion.js +0 -2
  1111. package/lib/components/Panel/CodeHeader.d.ts +0 -2
  1112. package/lib/components/Panel/CodeHeader.js +0 -15
  1113. package/lib/components/Panel/CodePanel.d.ts +0 -4
  1114. package/lib/components/Panel/CodePanel.js +0 -2
  1115. package/lib/components/Panel/MiddlePanelWrapper.d.ts +0 -1
  1116. package/lib/components/Panel/MiddlePanelWrapper.js +0 -22
  1117. package/lib/components/Parameters/BodyContent.d.ts +0 -9
  1118. package/lib/components/Parameters/BodyContent.js +0 -4
  1119. package/lib/components/Parameters/DropdownWithinHeader.d.ts +0 -5
  1120. package/lib/components/Parameters/DropdownWithinHeader.js +0 -7
  1121. package/lib/components/Parameters/Parameters.d.ts +0 -7
  1122. package/lib/components/Parameters/Parameters.js +0 -2
  1123. package/lib/components/Parameters/ParametersGroup.d.ts +0 -9
  1124. package/lib/components/Parameters/ParametersGroup.js +0 -16
  1125. package/lib/components/Parameters/index.d.ts +0 -2
  1126. package/lib/components/Parameters/index.js +0 -2
  1127. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.d.ts +0 -3
  1128. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.js +0 -2
  1129. package/lib/components/Responses/Response.d.ts +0 -3
  1130. package/lib/components/Responses/Response.js +0 -2
  1131. package/lib/components/Responses/ResponseSummary.d.ts +0 -3
  1132. package/lib/components/Responses/ResponseSummary.js +0 -15
  1133. package/lib/components/Responses/ResponsesList.d.ts +0 -3
  1134. package/lib/components/Responses/ResponsesList.js +0 -2
  1135. package/lib/components/Samples/LoadingWrapper.d.ts +0 -1
  1136. package/lib/components/Samples/LoadingWrapper.js +0 -8
  1137. package/lib/components/Samples/SamplesTabs.d.ts +0 -14
  1138. package/lib/components/Samples/SamplesTabs.js +0 -2
  1139. package/lib/components/Search/MenuItemSearch.d.ts +0 -3
  1140. package/lib/components/Search/MenuItemSearch.js +0 -2
  1141. package/lib/components/Search/Search.d.ts +0 -3
  1142. package/lib/components/Search/Search.js +0 -2
  1143. package/lib/components/Search/SearchBox.d.ts +0 -3
  1144. package/lib/components/Search/SearchBox.js +0 -2
  1145. package/lib/components/Search/SearchField.d.ts +0 -10
  1146. package/lib/components/Search/SearchField.js +0 -2
  1147. package/lib/components/Search/index.d.ts +0 -3
  1148. package/lib/components/Search/index.js +0 -2
  1149. package/lib/components/Search/styled.d.ts +0 -24
  1150. package/lib/components/Search/styled.js +0 -145
  1151. package/lib/components/Search/types.d.ts +0 -42
  1152. package/lib/components/Search/utils.d.ts +0 -11
  1153. package/lib/components/Search/utils.js +0 -2
  1154. package/lib/components/SecurityRequirement/PanelDescription.d.ts +0 -3
  1155. package/lib/components/SecurityRequirement/PanelDescription.js +0 -4
  1156. package/lib/components/SecurityRequirement/RequiredScopesRow.d.ts +0 -4
  1157. package/lib/components/SecurityRequirement/RequiredScopesRow.js +0 -2
  1158. package/lib/components/SecurityRequirement/RequirementElement.d.ts +0 -3
  1159. package/lib/components/SecurityRequirement/RequirementElement.js +0 -24
  1160. package/lib/components/SecurityRequirement/SecurityDefs.d.ts +0 -2
  1161. package/lib/components/SecurityRequirement/SecurityDefs.js +0 -4
  1162. package/lib/components/SecurityRequirement/SecurityRequirement.d.ts +0 -3
  1163. package/lib/components/SecurityRequirement/SecurityRequirement.js +0 -24
  1164. package/lib/components/SecurityRequirement/constants.d.ts +0 -6
  1165. package/lib/components/SecurityRequirement/constants.js +0 -2
  1166. package/lib/components/SecurityRequirement/index.d.ts +0 -3
  1167. package/lib/components/SecurityRequirement/index.js +0 -2
  1168. package/lib/components/SecurityRequirement/styled.d.ts +0 -1
  1169. package/lib/components/SecurityRequirement/styled.js +0 -4
  1170. package/lib/components/SecurityRequirement/types.d.ts +0 -19
  1171. package/lib/components/SecurityRequirement/useSecurityRequirements.d.ts +0 -3
  1172. package/lib/components/SecurityRequirement/useSecurityRequirements.js +0 -2
  1173. package/lib/components/SecuritySchemes/OAuthFlow.d.ts +0 -3
  1174. package/lib/components/SecuritySchemes/OAuthFlow.js +0 -2
  1175. package/lib/components/SecuritySchemes/helpers.d.ts +0 -34
  1176. package/lib/components/SecuritySchemes/helpers.js +0 -2
  1177. package/lib/components/SecuritySchemes/index.d.ts +0 -2
  1178. package/lib/components/SecuritySchemes/index.js +0 -2
  1179. package/lib/components/SecuritySchemes/types.d.ts +0 -5
  1180. package/lib/components/SecuritySchemes/types.js +0 -2
  1181. package/lib/components/SeeMore/SeeMore.d.ts +0 -7
  1182. package/lib/components/SeeMore/SeeMore.js +0 -10
  1183. package/lib/components/SeeMore/index.d.ts +0 -1
  1184. package/lib/components/SeeMore/index.js +0 -2
  1185. package/lib/components/SideMenu/Actions.d.ts +0 -2
  1186. package/lib/components/SideMenu/Actions.js +0 -5
  1187. package/lib/components/SideMenu/MenuItem.d.ts +0 -13
  1188. package/lib/components/SideMenu/MenuItem.js +0 -2
  1189. package/lib/components/SideMenu/MenuItemEternalLink.d.ts +0 -5
  1190. package/lib/components/SideMenu/MenuItemEternalLink.js +0 -2
  1191. package/lib/components/SideMenu/MenuItemLink.d.ts +0 -3
  1192. package/lib/components/SideMenu/MenuItemLink.js +0 -2
  1193. package/lib/components/SideMenu/MenuItems.d.ts +0 -3
  1194. package/lib/components/SideMenu/MenuItems.js +0 -2
  1195. package/lib/components/SideMenu/MenuOperationItemContent.d.ts +0 -9
  1196. package/lib/components/SideMenu/MenuOperationItemContent.js +0 -8
  1197. package/lib/components/SideMenu/hooks/index.d.ts +0 -2
  1198. package/lib/components/SideMenu/hooks/index.js +0 -2
  1199. package/lib/components/SideMenu/hooks/useMenuItemExpanded.d.ts +0 -3
  1200. package/lib/components/SideMenu/hooks/useMenuItemExpanded.js +0 -2
  1201. package/lib/components/SideMenu/styled.d.ts +0 -29
  1202. package/lib/components/SideMenu/styled.js +0 -97
  1203. package/lib/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +0 -3
  1204. package/lib/components/SourceCodeWithFile/SourceCodeWithFile.js +0 -2
  1205. package/lib/components/SourceCodeWithFile/index.d.ts +0 -1
  1206. package/lib/components/SourceCodeWithFile/index.js +0 -2
  1207. package/lib/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +0 -2
  1208. package/lib/components/Tabs/CollapsingTabs/CollapsingTab.js +0 -11
  1209. package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +0 -2
  1210. package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.js +0 -12
  1211. package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +0 -3
  1212. package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.js +0 -2
  1213. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +0 -19
  1214. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +0 -2
  1215. package/lib/components/Tabs/CollapsingTabs/index.d.ts +0 -4
  1216. package/lib/components/Tabs/CollapsingTabs/index.js +0 -2
  1217. package/lib/components/Tabs/Tab.d.ts +0 -2
  1218. package/lib/components/Tabs/Tab.js +0 -28
  1219. package/lib/components/Tabs/TabList.d.ts +0 -2
  1220. package/lib/components/Tabs/TabList.js +0 -7
  1221. package/lib/components/Tabs/TabPanel.d.ts +0 -2
  1222. package/lib/components/Tabs/TabPanel.js +0 -11
  1223. package/lib/components/TagItems/TagItems.d.ts +0 -14
  1224. package/lib/components/TagItems/TagItems.js +0 -2
  1225. package/lib/components/TagItems/index.d.ts +0 -1
  1226. package/lib/components/TagItems/index.js +0 -2
  1227. package/lib/components/VersionSwitcher.d.ts +0 -9
  1228. package/lib/components/VersionSwitcher.js +0 -7
  1229. package/lib/components/common/Checkbox.d.ts +0 -10
  1230. package/lib/components/common/Checkbox.js +0 -31
  1231. package/lib/components/common/CheckboxList.d.ts +0 -14
  1232. package/lib/components/common/CheckboxList.js +0 -8
  1233. package/lib/components/common/Dropdown/styled.d.ts +0 -28
  1234. package/lib/components/common/Dropdown/styled.js +0 -133
  1235. package/lib/components/common/Dropdown/types.d.ts +0 -25
  1236. package/lib/components/common/Dropdown/types.js +0 -2
  1237. package/lib/components/common/FileUpload/FileUpload.d.ts +0 -9
  1238. package/lib/components/common/FileUpload/FileUpload.js +0 -2
  1239. package/lib/components/common/FileUpload/helper.d.ts +0 -11
  1240. package/lib/components/common/FileUpload/helper.js +0 -2
  1241. package/lib/components/common/FileUpload/index.d.ts +0 -1
  1242. package/lib/components/common/FileUpload/index.js +0 -2
  1243. package/lib/components/common/LinearProgress.d.ts +0 -2
  1244. package/lib/components/common/LinearProgress.js +0 -104
  1245. package/lib/components/common/Portal/Portal.d.ts +0 -7
  1246. package/lib/components/common/Portal/Portal.js +0 -2
  1247. package/lib/components/common/Portal/index.d.ts +0 -1
  1248. package/lib/components/common/Portal/index.js +0 -2
  1249. package/lib/components/common/TextField.d.ts +0 -35
  1250. package/lib/components/common/TextField.js +0 -50
  1251. package/lib/components/common/form.d.ts +0 -17
  1252. package/lib/components/common/form.js +0 -64
  1253. package/lib/components/common/perfect-scrollbar.d.ts +0 -18
  1254. package/lib/components/common/perfect-scrollbar.js +0 -4
  1255. package/lib/components/common/shelfs.d.ts +0 -3
  1256. package/lib/components/common/shelfs.js +0 -23
  1257. package/lib/components/icons/CrossIcon.d.ts +0 -5
  1258. package/lib/components/icons/CrossIcon.js +0 -11
  1259. package/lib/components/icons/FileIcon.d.ts +0 -5
  1260. package/lib/components/icons/FileIcon.js +0 -9
  1261. package/lib/components/icons/LinkIcon.d.ts +0 -5
  1262. package/lib/components/icons/LinkIcon.js +0 -11
  1263. package/lib/components/icons/LockIcon.d.ts +0 -3
  1264. package/lib/components/icons/LockIcon.js +0 -12
  1265. package/lib/components/icons/SearchIcon.d.ts +0 -6
  1266. package/lib/components/icons/SearchIcon.js +0 -11
  1267. package/lib/components/icons/ShelfIcon.d.ts +0 -3
  1268. package/lib/components/icons/ShelfIcon.js +0 -12
  1269. package/lib/components/icons/Spinner.d.ts +0 -3
  1270. package/lib/components/icons/Spinner.js +0 -19
  1271. package/lib/components/icons/index.d.ts +0 -8
  1272. package/lib/components/icons/index.js +0 -2
  1273. package/lib/components/icons/types.d.ts +0 -10
  1274. package/lib/components/icons/types.js +0 -2
  1275. package/lib/components/pluggable/PullRight.d.ts +0 -4
  1276. package/lib/components/pluggable/PullRight.js +0 -7
  1277. package/lib/components/pluggable/RedocRequestBody.d.ts +0 -7
  1278. package/lib/components/pluggable/RedocRequestBody.js +0 -2
  1279. package/lib/components/pluggable/RedocResponse.d.ts +0 -6
  1280. package/lib/components/pluggable/RedocResponse.js +0 -2
  1281. package/lib/components/rightPanel/ActionPanel.d.ts +0 -11
  1282. package/lib/components/rightPanel/ActionPanel.js +0 -4
  1283. package/lib/components/rightPanel/AuthPanel/AuthPanel.d.ts +0 -3
  1284. package/lib/components/rightPanel/AuthPanel/AuthPanel.js +0 -2
  1285. package/lib/components/rightPanel/AuthPanel/index.d.ts +0 -2
  1286. package/lib/components/rightPanel/AuthPanel/index.js +0 -2
  1287. package/lib/components/rightPanel/AuthPanel/types.d.ts +0 -11
  1288. package/lib/components/rightPanel/AuthPanel/types.js +0 -2
  1289. package/lib/components/rightPanel/CodemirrorInput/CodemirrorInput.d.ts +0 -4
  1290. package/lib/components/rightPanel/CodemirrorInput/CodemirrorInput.js +0 -2
  1291. package/lib/components/rightPanel/CodemirrorInput/helpers.d.ts +0 -6
  1292. package/lib/components/rightPanel/CodemirrorInput/helpers.js +0 -2
  1293. package/lib/components/rightPanel/CodemirrorInput/index.d.ts +0 -1
  1294. package/lib/components/rightPanel/CodemirrorInput/index.js +0 -2
  1295. package/lib/components/rightPanel/CodemirrorInput/styled.d.ts +0 -2
  1296. package/lib/components/rightPanel/CodemirrorInput/styled.js +0 -53
  1297. package/lib/components/rightPanel/CodemirrorInput/types.d.ts +0 -11
  1298. package/lib/components/rightPanel/CodemirrorInput/types.js +0 -2
  1299. package/lib/components/rightPanel/Console/Console.d.ts +0 -3
  1300. package/lib/components/rightPanel/Console/Console.js +0 -2
  1301. package/lib/components/rightPanel/Console/ConsoleLazy.d.ts +0 -3
  1302. package/lib/components/rightPanel/Console/ConsoleLazy.js +0 -2
  1303. package/lib/components/rightPanel/Console/ConsoleWrapper.d.ts +0 -9
  1304. package/lib/components/rightPanel/Console/ConsoleWrapper.js +0 -2
  1305. package/lib/components/rightPanel/Console/Request.d.ts +0 -3
  1306. package/lib/components/rightPanel/Console/Request.js +0 -2
  1307. package/lib/components/rightPanel/Console/index.d.ts +0 -1
  1308. package/lib/components/rightPanel/Console/index.js +0 -2
  1309. package/lib/components/rightPanel/Console/shallowCopyForTryIt.d.ts +0 -2
  1310. package/lib/components/rightPanel/Console/shallowCopyForTryIt.js +0 -2
  1311. package/lib/components/rightPanel/Console/types.d.ts +0 -26
  1312. package/lib/components/rightPanel/Console/types.js +0 -2
  1313. package/lib/components/rightPanel/ConsoleTabs/ConsoleTabs.d.ts +0 -7
  1314. package/lib/components/rightPanel/ConsoleTabs/ConsoleTabs.js +0 -2
  1315. package/lib/components/rightPanel/ConsoleTabs/index.d.ts +0 -2
  1316. package/lib/components/rightPanel/ConsoleTabs/index.js +0 -2
  1317. package/lib/components/rightPanel/ConsoleTabs/styled.d.ts +0 -5
  1318. package/lib/components/rightPanel/ConsoleTabs/styled.js +0 -38
  1319. package/lib/components/rightPanel/OAuth2Flow/Error.d.ts +0 -8
  1320. package/lib/components/rightPanel/OAuth2Flow/Error.js +0 -2
  1321. package/lib/components/rightPanel/OAuth2Flow/OAuth2Flow.d.ts +0 -3
  1322. package/lib/components/rightPanel/OAuth2Flow/OAuth2Flow.js +0 -2
  1323. package/lib/components/rightPanel/OAuth2Flow/index.d.ts +0 -2
  1324. package/lib/components/rightPanel/OAuth2Flow/index.js +0 -2
  1325. package/lib/components/rightPanel/OAuth2Flow/styled.d.ts +0 -4
  1326. package/lib/components/rightPanel/OAuth2Flow/styled.js +0 -14
  1327. package/lib/components/rightPanel/OAuth2Flow/types.d.ts +0 -17
  1328. package/lib/components/rightPanel/OAuth2Flow/types.js +0 -2
  1329. package/lib/components/rightPanel/OAuth2TokenInput.d.ts +0 -16
  1330. package/lib/components/rightPanel/OAuth2TokenInput.js +0 -2
  1331. package/lib/components/rightPanel/OpenIDConnect.d.ts +0 -15
  1332. package/lib/components/rightPanel/OpenIDConnect.js +0 -2
  1333. package/lib/components/rightPanel/ParameterArray.d.ts +0 -10
  1334. package/lib/components/rightPanel/ParameterArray.js +0 -30
  1335. package/lib/components/rightPanel/ParameterDropdown.d.ts +0 -8
  1336. package/lib/components/rightPanel/ParameterDropdown.js +0 -2
  1337. package/lib/components/rightPanel/RequestBody/Body.d.ts +0 -3
  1338. package/lib/components/rightPanel/RequestBody/Body.js +0 -2
  1339. package/lib/components/rightPanel/RequestBody/RequestBody.d.ts +0 -3
  1340. package/lib/components/rightPanel/RequestBody/RequestBody.js +0 -2
  1341. package/lib/components/rightPanel/RequestBody/index.d.ts +0 -2
  1342. package/lib/components/rightPanel/RequestBody/index.js +0 -2
  1343. package/lib/components/rightPanel/RequestBody/types.d.ts +0 -16
  1344. package/lib/components/rightPanel/RequestBody/types.js +0 -2
  1345. package/lib/components/rightPanel/RequestBodyForm.d.ts +0 -9
  1346. package/lib/components/rightPanel/RequestBodyForm.js +0 -10
  1347. package/lib/components/rightPanel/RequestMimeLabel.d.ts +0 -1
  1348. package/lib/components/rightPanel/RequestMimeLabel.js +0 -5
  1349. package/lib/components/rightPanel/ResponseBody.d.ts +0 -5
  1350. package/lib/components/rightPanel/ResponseBody.js +0 -2
  1351. package/lib/components/rightPanel/ResponseHeadersList.d.ts +0 -4
  1352. package/lib/components/rightPanel/ResponseHeadersList.js +0 -10
  1353. package/lib/components/rightPanel/ResponsePanel.d.ts +0 -10
  1354. package/lib/components/rightPanel/ResponsePanel.js +0 -18
  1355. package/lib/components/rightPanel/Scope.d.ts +0 -7
  1356. package/lib/components/rightPanel/Scope.js +0 -2
  1357. package/lib/components/rightPanel/ServerVariable.d.ts +0 -11
  1358. package/lib/components/rightPanel/ServerVariable.js +0 -5
  1359. package/lib/components/rightPanel/ServersDropdown/ServersDropdown.d.ts +0 -3
  1360. package/lib/components/rightPanel/ServersDropdown/ServersDropdown.js +0 -4
  1361. package/lib/components/rightPanel/ServersDropdown/index.d.ts +0 -1
  1362. package/lib/components/rightPanel/ServersDropdown/index.js +0 -2
  1363. package/lib/components/rightPanel/ServersDropdown/types.d.ts +0 -6
  1364. package/lib/components/rightPanel/ServersDropdown/types.js +0 -2
  1365. package/lib/components/rightPanel/TryItPanel.d.ts +0 -7
  1366. package/lib/components/rightPanel/TryItPanel.js +0 -14
  1367. package/lib/components/rightPanel/styled.d.ts +0 -16
  1368. package/lib/components/rightPanel/styled.js +0 -76
  1369. package/lib/components/rightPanel/types.d.ts +0 -10
  1370. package/lib/components/rightPanel/types.js +0 -2
  1371. package/lib/components/rightPanel/utils.d.ts +0 -28
  1372. package/lib/components/rightPanel/utils.js +0 -2
  1373. package/lib/components/shared/HttpVerb.d.ts +0 -2
  1374. package/lib/components/shared/HttpVerb.js +0 -4
  1375. package/lib/components/shared/MimeLabel.d.ts +0 -1
  1376. package/lib/components/shared/MimeLabel.js +0 -12
  1377. package/lib/components/shared/NoSampleLabel.d.ts +0 -2
  1378. package/lib/components/shared/NoSampleLabel.js +0 -10
  1379. package/lib/components/shared/index.d.ts +0 -3
  1380. package/lib/components/shared/index.js +0 -2
  1381. package/lib/events/serverSwitch.d.ts +0 -2
  1382. package/lib/events/serverSwitch.js +0 -2
  1383. package/lib/models/file-upload.d.ts +0 -11
  1384. package/lib/models/file-upload.js +0 -2
  1385. package/lib/oauth2-redirect-page/handler/helpers.d.ts +0 -6
  1386. package/lib/oauth2-redirect-page/handler/helpers.js +0 -2
  1387. package/lib/oauth2-redirect-page/handler/oauth2-redirect-handler.d.ts +0 -1
  1388. package/lib/oauth2-redirect-page/handler/oauth2-redirect-handler.js +0 -2
  1389. package/lib/oauth2-redirect-page/index.d.ts +0 -1
  1390. package/lib/oauth2-redirect-page/index.js +0 -2
  1391. package/lib/services/MarkerService.d.ts +0 -11
  1392. package/lib/services/MarkerService.js +0 -2
  1393. package/lib/services/OAuth2.d.ts +0 -43
  1394. package/lib/services/OAuth2.js +0 -2
  1395. package/lib/services/OpenIDConnect.d.ts +0 -38
  1396. package/lib/services/OpenIDConnect.js +0 -2
  1397. package/lib/services/Options/helpers.d.ts +0 -8
  1398. package/lib/services/Options/helpers.js +0 -2
  1399. package/lib/services/Options/normalizeOptions.js +0 -2
  1400. package/lib/services/Options/types.d.ts +0 -279
  1401. package/lib/services/Options/types.js +0 -2
  1402. package/lib/services/labels/LabelsService.d.ts +0 -3
  1403. package/lib/services/labels/LabelsService.js +0 -2
  1404. package/lib/services/labels/index.d.ts +0 -2
  1405. package/lib/services/labels/index.js +0 -2
  1406. package/lib/services/labels/types.d.ts +0 -29
  1407. package/lib/services/labels/types.js +0 -2
  1408. package/lib/services/menu/helpers.d.ts +0 -6
  1409. package/lib/services/menu/helpers.js +0 -2
  1410. package/lib/services/search/DeepSearchStore.d.ts +0 -19
  1411. package/lib/services/search/DeepSearchStore.js +0 -2
  1412. package/lib/services/search/RemoteSearch.d.ts +0 -17
  1413. package/lib/services/search/RemoteSearch.js +0 -2
  1414. package/lib/services/search/SearchStore.d.ts +0 -14
  1415. package/lib/services/search/SearchStore.js +0 -2
  1416. package/lib/services/search/SearchWorker.worker.d.ts +0 -17
  1417. package/lib/services/search/SearchWorker.worker.js +0 -2
  1418. package/lib/services/search/index.d.ts +0 -4
  1419. package/lib/services/search/index.js +0 -2
  1420. package/lib/services/search/types.d.ts +0 -15
  1421. package/lib/services/search/types.js +0 -2
  1422. package/lib/services/search/useSearch.d.ts +0 -13
  1423. package/lib/services/search/useSearch.js +0 -2
  1424. package/lib/types/server.d.ts +0 -7
  1425. package/lib/types/server.js +0 -2
  1426. package/lib/utils/media-css.d.ts +0 -8
  1427. package/lib/utils/media-css.js +0 -2
  1428. package/lib/utils/typeGuards.d.ts +0 -5
  1429. package/lib/utils/typeGuards.js +0 -2
  1430. package/lib-esm/components/ApiInfo/types.d.ts +0 -9
  1431. package/lib-esm/components/CallbackSamples/CallbackReqSamples.d.ts +0 -7
  1432. package/lib-esm/components/CallbackSamples/CallbackReqSamples.js +0 -4
  1433. package/lib-esm/components/ContentItems/useAutoScroll.d.ts +0 -1
  1434. package/lib-esm/components/ContentItems/useAutoScroll.js +0 -2
  1435. package/lib-esm/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +0 -11
  1436. package/lib-esm/components/DiscriminatorDropdown/DiscriminatorDropdown.js +0 -2
  1437. package/lib-esm/components/DiscriminatorDropdown/index.d.ts +0 -1
  1438. package/lib-esm/components/DiscriminatorDropdown/index.js +0 -2
  1439. package/lib-esm/components/Download/DownloadButtonWithLabel.d.ts +0 -3
  1440. package/lib-esm/components/Download/DownloadButtonWithLabel.js +0 -13
  1441. package/lib-esm/components/Download/DownloadLink.d.ts +0 -3
  1442. package/lib-esm/components/Download/DownloadLink.js +0 -4
  1443. package/lib-esm/components/DropdownOrLabel/DropdownOrLabel.d.ts +0 -7
  1444. package/lib-esm/components/DropdownOrLabel/DropdownOrLabel.js +0 -8
  1445. package/lib-esm/components/DropdownOrLabel/index.d.ts +0 -1
  1446. package/lib-esm/components/DropdownOrLabel/index.js +0 -2
  1447. package/lib-esm/components/Endpoint/Endpoint.d.ts +0 -3
  1448. package/lib-esm/components/Endpoint/Endpoint.js +0 -2
  1449. package/lib-esm/components/Endpoint/ServerList.d.ts +0 -3
  1450. package/lib-esm/components/Endpoint/ServerList.js +0 -2
  1451. package/lib-esm/components/Endpoint/Summary.d.ts +0 -3
  1452. package/lib-esm/components/Endpoint/Summary.js +0 -2
  1453. package/lib-esm/components/Endpoint/api-client.d.ts +0 -7
  1454. package/lib-esm/components/Endpoint/api-client.js +0 -2
  1455. package/lib-esm/components/Endpoint/index.d.ts +0 -2
  1456. package/lib-esm/components/Endpoint/index.js +0 -2
  1457. package/lib-esm/components/Endpoint/styled.d.ts +0 -9
  1458. package/lib-esm/components/Endpoint/styled.js +0 -49
  1459. package/lib-esm/components/Endpoint/types.d.ts +0 -21
  1460. package/lib-esm/components/Fields/ConstraintsView.d.ts +0 -5
  1461. package/lib-esm/components/Fields/ConstraintsView.js +0 -2
  1462. package/lib-esm/components/Fields/DescriptionEnums.d.ts +0 -4
  1463. package/lib-esm/components/Fields/DescriptionEnums.js +0 -5
  1464. package/lib-esm/components/Fields/EnumValues.d.ts +0 -3
  1465. package/lib-esm/components/Fields/EnumValues.js +0 -2
  1466. package/lib-esm/components/Fields/Examples.d.ts +0 -6
  1467. package/lib-esm/components/Fields/Examples.js +0 -2
  1468. package/lib-esm/components/Fields/Extensions.d.ts +0 -3
  1469. package/lib-esm/components/Fields/Extensions.js +0 -4
  1470. package/lib-esm/components/Fields/Field.d.ts +0 -5
  1471. package/lib-esm/components/Fields/Field.js +0 -2
  1472. package/lib-esm/components/Fields/FieldDetail.d.ts +0 -8
  1473. package/lib-esm/components/Fields/FieldDetail.js +0 -2
  1474. package/lib-esm/components/Fields/FieldDetails.d.ts +0 -3
  1475. package/lib-esm/components/Fields/FieldDetails.js +0 -2
  1476. package/lib-esm/components/Fields/SimpleEnums.d.ts +0 -4
  1477. package/lib-esm/components/Fields/SimpleEnums.js +0 -2
  1478. package/lib-esm/components/Fields/index.d.ts +0 -4
  1479. package/lib-esm/components/Fields/index.js +0 -2
  1480. package/lib-esm/components/Fields/styled.d.ts +0 -11
  1481. package/lib-esm/components/Fields/styled.js +0 -30
  1482. package/lib-esm/components/Fields/types.d.ts +0 -40
  1483. package/lib-esm/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +0 -10
  1484. package/lib-esm/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +0 -2
  1485. package/lib-esm/components/GenericChildrenSwitcher/index.d.ts +0 -1
  1486. package/lib-esm/components/GenericChildrenSwitcher/index.js +0 -2
  1487. package/lib-esm/components/Loading/Loading.d.ts +0 -5
  1488. package/lib-esm/components/Loading/Loading.js +0 -9
  1489. package/lib-esm/components/Loading/index.d.ts +0 -1
  1490. package/lib-esm/components/Loading/index.js +0 -2
  1491. package/lib-esm/components/Markdown/styled.d.ts +0 -4
  1492. package/lib-esm/components/Markdown/styled.js +0 -2
  1493. package/lib-esm/components/NextSectionButton/NextSectionButton.d.ts +0 -9
  1494. package/lib-esm/components/NextSectionButton/NextSectionButton.js +0 -2
  1495. package/lib-esm/components/NextSectionButton/index.d.ts +0 -1
  1496. package/lib-esm/components/NextSectionButton/index.js +0 -2
  1497. package/lib-esm/components/OperationParameters/OperationParameters.d.ts +0 -3
  1498. package/lib-esm/components/OperationParameters/OperationParameters.js +0 -2
  1499. package/lib-esm/components/OperationParameters/index.d.ts +0 -1
  1500. package/lib-esm/components/OperationParameters/index.js +0 -2
  1501. package/lib-esm/components/OperationParameters/types.d.ts +0 -13
  1502. package/lib-esm/components/OperationParameters/types.js +0 -2
  1503. package/lib-esm/components/OperationParameters/utils.d.ts +0 -8
  1504. package/lib-esm/components/OperationParameters/utils.js +0 -2
  1505. package/lib-esm/components/Panel/Accordion.d.ts +0 -5
  1506. package/lib-esm/components/Panel/Accordion.js +0 -2
  1507. package/lib-esm/components/Panel/CodeHeader.d.ts +0 -2
  1508. package/lib-esm/components/Panel/CodeHeader.js +0 -15
  1509. package/lib-esm/components/Panel/CodePanel.d.ts +0 -4
  1510. package/lib-esm/components/Panel/CodePanel.js +0 -2
  1511. package/lib-esm/components/Panel/MiddlePanelWrapper.d.ts +0 -1
  1512. package/lib-esm/components/Panel/MiddlePanelWrapper.js +0 -22
  1513. package/lib-esm/components/Parameters/BodyContent.d.ts +0 -9
  1514. package/lib-esm/components/Parameters/BodyContent.js +0 -4
  1515. package/lib-esm/components/Parameters/DropdownWithinHeader.d.ts +0 -5
  1516. package/lib-esm/components/Parameters/DropdownWithinHeader.js +0 -7
  1517. package/lib-esm/components/Parameters/Parameters.d.ts +0 -7
  1518. package/lib-esm/components/Parameters/Parameters.js +0 -2
  1519. package/lib-esm/components/Parameters/ParametersGroup.d.ts +0 -9
  1520. package/lib-esm/components/Parameters/ParametersGroup.js +0 -16
  1521. package/lib-esm/components/Parameters/index.d.ts +0 -2
  1522. package/lib-esm/components/Parameters/index.js +0 -2
  1523. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.d.ts +0 -3
  1524. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.js +0 -2
  1525. package/lib-esm/components/Responses/Response.d.ts +0 -3
  1526. package/lib-esm/components/Responses/Response.js +0 -2
  1527. package/lib-esm/components/Responses/ResponseSummary.d.ts +0 -3
  1528. package/lib-esm/components/Responses/ResponseSummary.js +0 -15
  1529. package/lib-esm/components/Responses/ResponsesList.d.ts +0 -3
  1530. package/lib-esm/components/Responses/ResponsesList.js +0 -2
  1531. package/lib-esm/components/Samples/LoadingWrapper.d.ts +0 -1
  1532. package/lib-esm/components/Samples/LoadingWrapper.js +0 -8
  1533. package/lib-esm/components/Samples/SamplesTabs.d.ts +0 -14
  1534. package/lib-esm/components/Samples/SamplesTabs.js +0 -2
  1535. package/lib-esm/components/Search/MenuItemSearch.d.ts +0 -3
  1536. package/lib-esm/components/Search/MenuItemSearch.js +0 -2
  1537. package/lib-esm/components/Search/Search.d.ts +0 -3
  1538. package/lib-esm/components/Search/Search.js +0 -2
  1539. package/lib-esm/components/Search/SearchBox.d.ts +0 -3
  1540. package/lib-esm/components/Search/SearchBox.js +0 -2
  1541. package/lib-esm/components/Search/SearchField.d.ts +0 -10
  1542. package/lib-esm/components/Search/SearchField.js +0 -2
  1543. package/lib-esm/components/Search/index.d.ts +0 -3
  1544. package/lib-esm/components/Search/index.js +0 -2
  1545. package/lib-esm/components/Search/styled.d.ts +0 -24
  1546. package/lib-esm/components/Search/styled.js +0 -145
  1547. package/lib-esm/components/Search/types.d.ts +0 -42
  1548. package/lib-esm/components/Search/utils.d.ts +0 -11
  1549. package/lib-esm/components/Search/utils.js +0 -2
  1550. package/lib-esm/components/SecurityRequirement/PanelDescription.d.ts +0 -3
  1551. package/lib-esm/components/SecurityRequirement/PanelDescription.js +0 -4
  1552. package/lib-esm/components/SecurityRequirement/RequiredScopesRow.d.ts +0 -4
  1553. package/lib-esm/components/SecurityRequirement/RequiredScopesRow.js +0 -2
  1554. package/lib-esm/components/SecurityRequirement/RequirementElement.d.ts +0 -3
  1555. package/lib-esm/components/SecurityRequirement/RequirementElement.js +0 -24
  1556. package/lib-esm/components/SecurityRequirement/SecurityDefs.d.ts +0 -2
  1557. package/lib-esm/components/SecurityRequirement/SecurityDefs.js +0 -4
  1558. package/lib-esm/components/SecurityRequirement/SecurityRequirement.d.ts +0 -3
  1559. package/lib-esm/components/SecurityRequirement/SecurityRequirement.js +0 -24
  1560. package/lib-esm/components/SecurityRequirement/constants.d.ts +0 -6
  1561. package/lib-esm/components/SecurityRequirement/constants.js +0 -2
  1562. package/lib-esm/components/SecurityRequirement/index.d.ts +0 -3
  1563. package/lib-esm/components/SecurityRequirement/index.js +0 -2
  1564. package/lib-esm/components/SecurityRequirement/styled.d.ts +0 -1
  1565. package/lib-esm/components/SecurityRequirement/styled.js +0 -4
  1566. package/lib-esm/components/SecurityRequirement/types.d.ts +0 -19
  1567. package/lib-esm/components/SecurityRequirement/useSecurityRequirements.d.ts +0 -3
  1568. package/lib-esm/components/SecurityRequirement/useSecurityRequirements.js +0 -2
  1569. package/lib-esm/components/SecuritySchemes/OAuthFlow.d.ts +0 -3
  1570. package/lib-esm/components/SecuritySchemes/OAuthFlow.js +0 -2
  1571. package/lib-esm/components/SecuritySchemes/helpers.d.ts +0 -34
  1572. package/lib-esm/components/SecuritySchemes/helpers.js +0 -2
  1573. package/lib-esm/components/SecuritySchemes/index.d.ts +0 -2
  1574. package/lib-esm/components/SecuritySchemes/index.js +0 -2
  1575. package/lib-esm/components/SecuritySchemes/types.d.ts +0 -5
  1576. package/lib-esm/components/SecuritySchemes/types.js +0 -2
  1577. package/lib-esm/components/SeeMore/SeeMore.d.ts +0 -7
  1578. package/lib-esm/components/SeeMore/SeeMore.js +0 -10
  1579. package/lib-esm/components/SeeMore/index.d.ts +0 -1
  1580. package/lib-esm/components/SeeMore/index.js +0 -2
  1581. package/lib-esm/components/SideMenu/Actions.d.ts +0 -2
  1582. package/lib-esm/components/SideMenu/Actions.js +0 -5
  1583. package/lib-esm/components/SideMenu/MenuItem.d.ts +0 -13
  1584. package/lib-esm/components/SideMenu/MenuItem.js +0 -2
  1585. package/lib-esm/components/SideMenu/MenuItemEternalLink.d.ts +0 -5
  1586. package/lib-esm/components/SideMenu/MenuItemEternalLink.js +0 -2
  1587. package/lib-esm/components/SideMenu/MenuItemLink.d.ts +0 -3
  1588. package/lib-esm/components/SideMenu/MenuItemLink.js +0 -2
  1589. package/lib-esm/components/SideMenu/MenuItems.d.ts +0 -3
  1590. package/lib-esm/components/SideMenu/MenuItems.js +0 -2
  1591. package/lib-esm/components/SideMenu/MenuOperationItemContent.d.ts +0 -9
  1592. package/lib-esm/components/SideMenu/MenuOperationItemContent.js +0 -8
  1593. package/lib-esm/components/SideMenu/hooks/index.d.ts +0 -2
  1594. package/lib-esm/components/SideMenu/hooks/index.js +0 -2
  1595. package/lib-esm/components/SideMenu/hooks/useMenuItemExpanded.d.ts +0 -3
  1596. package/lib-esm/components/SideMenu/hooks/useMenuItemExpanded.js +0 -2
  1597. package/lib-esm/components/SideMenu/styled.d.ts +0 -29
  1598. package/lib-esm/components/SideMenu/styled.js +0 -97
  1599. package/lib-esm/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +0 -3
  1600. package/lib-esm/components/SourceCodeWithFile/SourceCodeWithFile.js +0 -2
  1601. package/lib-esm/components/SourceCodeWithFile/index.d.ts +0 -1
  1602. package/lib-esm/components/SourceCodeWithFile/index.js +0 -2
  1603. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +0 -2
  1604. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.js +0 -11
  1605. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +0 -2
  1606. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.js +0 -12
  1607. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +0 -3
  1608. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.js +0 -2
  1609. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +0 -19
  1610. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +0 -2
  1611. package/lib-esm/components/Tabs/CollapsingTabs/index.d.ts +0 -4
  1612. package/lib-esm/components/Tabs/CollapsingTabs/index.js +0 -2
  1613. package/lib-esm/components/Tabs/Tab.d.ts +0 -2
  1614. package/lib-esm/components/Tabs/Tab.js +0 -28
  1615. package/lib-esm/components/Tabs/TabList.d.ts +0 -2
  1616. package/lib-esm/components/Tabs/TabList.js +0 -7
  1617. package/lib-esm/components/Tabs/TabPanel.d.ts +0 -2
  1618. package/lib-esm/components/Tabs/TabPanel.js +0 -11
  1619. package/lib-esm/components/TagItems/TagItems.d.ts +0 -14
  1620. package/lib-esm/components/TagItems/TagItems.js +0 -2
  1621. package/lib-esm/components/TagItems/index.d.ts +0 -1
  1622. package/lib-esm/components/TagItems/index.js +0 -2
  1623. package/lib-esm/components/VersionSwitcher.d.ts +0 -9
  1624. package/lib-esm/components/VersionSwitcher.js +0 -7
  1625. package/lib-esm/components/common/Checkbox.d.ts +0 -10
  1626. package/lib-esm/components/common/Checkbox.js +0 -31
  1627. package/lib-esm/components/common/CheckboxList.d.ts +0 -14
  1628. package/lib-esm/components/common/CheckboxList.js +0 -8
  1629. package/lib-esm/components/common/Dropdown/styled.d.ts +0 -28
  1630. package/lib-esm/components/common/Dropdown/styled.js +0 -133
  1631. package/lib-esm/components/common/Dropdown/types.d.ts +0 -25
  1632. package/lib-esm/components/common/Dropdown/types.js +0 -2
  1633. package/lib-esm/components/common/FileUpload/FileUpload.d.ts +0 -9
  1634. package/lib-esm/components/common/FileUpload/FileUpload.js +0 -2
  1635. package/lib-esm/components/common/FileUpload/helper.d.ts +0 -11
  1636. package/lib-esm/components/common/FileUpload/helper.js +0 -2
  1637. package/lib-esm/components/common/FileUpload/index.d.ts +0 -1
  1638. package/lib-esm/components/common/FileUpload/index.js +0 -2
  1639. package/lib-esm/components/common/LinearProgress.d.ts +0 -2
  1640. package/lib-esm/components/common/LinearProgress.js +0 -104
  1641. package/lib-esm/components/common/Portal/Portal.d.ts +0 -7
  1642. package/lib-esm/components/common/Portal/Portal.js +0 -2
  1643. package/lib-esm/components/common/Portal/index.d.ts +0 -1
  1644. package/lib-esm/components/common/Portal/index.js +0 -2
  1645. package/lib-esm/components/common/TextField.d.ts +0 -35
  1646. package/lib-esm/components/common/TextField.js +0 -79
  1647. package/lib-esm/components/common/form.d.ts +0 -17
  1648. package/lib-esm/components/common/form.js +0 -64
  1649. package/lib-esm/components/common/perfect-scrollbar.d.ts +0 -18
  1650. package/lib-esm/components/common/perfect-scrollbar.js +0 -4
  1651. package/lib-esm/components/common/shelfs.d.ts +0 -3
  1652. package/lib-esm/components/common/shelfs.js +0 -23
  1653. package/lib-esm/components/icons/CrossIcon.d.ts +0 -5
  1654. package/lib-esm/components/icons/CrossIcon.js +0 -11
  1655. package/lib-esm/components/icons/FileIcon.d.ts +0 -5
  1656. package/lib-esm/components/icons/FileIcon.js +0 -9
  1657. package/lib-esm/components/icons/LinkIcon.d.ts +0 -5
  1658. package/lib-esm/components/icons/LinkIcon.js +0 -11
  1659. package/lib-esm/components/icons/LockIcon.d.ts +0 -3
  1660. package/lib-esm/components/icons/LockIcon.js +0 -12
  1661. package/lib-esm/components/icons/SearchIcon.d.ts +0 -6
  1662. package/lib-esm/components/icons/SearchIcon.js +0 -11
  1663. package/lib-esm/components/icons/ShelfIcon.d.ts +0 -3
  1664. package/lib-esm/components/icons/ShelfIcon.js +0 -12
  1665. package/lib-esm/components/icons/Spinner.d.ts +0 -3
  1666. package/lib-esm/components/icons/Spinner.js +0 -19
  1667. package/lib-esm/components/icons/index.d.ts +0 -8
  1668. package/lib-esm/components/icons/index.js +0 -2
  1669. package/lib-esm/components/icons/types.d.ts +0 -10
  1670. package/lib-esm/components/icons/types.js +0 -2
  1671. package/lib-esm/components/pluggable/PullRight.d.ts +0 -4
  1672. package/lib-esm/components/pluggable/PullRight.js +0 -7
  1673. package/lib-esm/components/pluggable/RedocRequestBody.d.ts +0 -7
  1674. package/lib-esm/components/pluggable/RedocRequestBody.js +0 -2
  1675. package/lib-esm/components/pluggable/RedocResponse.d.ts +0 -6
  1676. package/lib-esm/components/pluggable/RedocResponse.js +0 -2
  1677. package/lib-esm/components/rightPanel/ActionPanel.d.ts +0 -11
  1678. package/lib-esm/components/rightPanel/ActionPanel.js +0 -4
  1679. package/lib-esm/components/rightPanel/AuthPanel/AuthPanel.d.ts +0 -3
  1680. package/lib-esm/components/rightPanel/AuthPanel/AuthPanel.js +0 -2
  1681. package/lib-esm/components/rightPanel/AuthPanel/index.d.ts +0 -2
  1682. package/lib-esm/components/rightPanel/AuthPanel/index.js +0 -2
  1683. package/lib-esm/components/rightPanel/AuthPanel/types.d.ts +0 -11
  1684. package/lib-esm/components/rightPanel/AuthPanel/types.js +0 -2
  1685. package/lib-esm/components/rightPanel/CodemirrorInput/CodemirrorInput.d.ts +0 -4
  1686. package/lib-esm/components/rightPanel/CodemirrorInput/CodemirrorInput.js +0 -2
  1687. package/lib-esm/components/rightPanel/CodemirrorInput/helpers.d.ts +0 -6
  1688. package/lib-esm/components/rightPanel/CodemirrorInput/helpers.js +0 -2
  1689. package/lib-esm/components/rightPanel/CodemirrorInput/index.d.ts +0 -1
  1690. package/lib-esm/components/rightPanel/CodemirrorInput/index.js +0 -2
  1691. package/lib-esm/components/rightPanel/CodemirrorInput/styled.d.ts +0 -2
  1692. package/lib-esm/components/rightPanel/CodemirrorInput/styled.js +0 -53
  1693. package/lib-esm/components/rightPanel/CodemirrorInput/types.d.ts +0 -11
  1694. package/lib-esm/components/rightPanel/CodemirrorInput/types.js +0 -2
  1695. package/lib-esm/components/rightPanel/Console/Console.d.ts +0 -3
  1696. package/lib-esm/components/rightPanel/Console/Console.js +0 -2
  1697. package/lib-esm/components/rightPanel/Console/ConsoleLazy.d.ts +0 -3
  1698. package/lib-esm/components/rightPanel/Console/ConsoleLazy.js +0 -2
  1699. package/lib-esm/components/rightPanel/Console/ConsoleWrapper.d.ts +0 -9
  1700. package/lib-esm/components/rightPanel/Console/ConsoleWrapper.js +0 -2
  1701. package/lib-esm/components/rightPanel/Console/Request.d.ts +0 -3
  1702. package/lib-esm/components/rightPanel/Console/Request.js +0 -2
  1703. package/lib-esm/components/rightPanel/Console/index.d.ts +0 -1
  1704. package/lib-esm/components/rightPanel/Console/index.js +0 -2
  1705. package/lib-esm/components/rightPanel/Console/shallowCopyForTryIt.d.ts +0 -2
  1706. package/lib-esm/components/rightPanel/Console/shallowCopyForTryIt.js +0 -2
  1707. package/lib-esm/components/rightPanel/Console/types.d.ts +0 -26
  1708. package/lib-esm/components/rightPanel/Console/types.js +0 -2
  1709. package/lib-esm/components/rightPanel/ConsoleTabs/ConsoleTabs.d.ts +0 -7
  1710. package/lib-esm/components/rightPanel/ConsoleTabs/ConsoleTabs.js +0 -2
  1711. package/lib-esm/components/rightPanel/ConsoleTabs/index.d.ts +0 -2
  1712. package/lib-esm/components/rightPanel/ConsoleTabs/index.js +0 -2
  1713. package/lib-esm/components/rightPanel/ConsoleTabs/styled.d.ts +0 -5
  1714. package/lib-esm/components/rightPanel/ConsoleTabs/styled.js +0 -38
  1715. package/lib-esm/components/rightPanel/OAuth2Flow/Error.d.ts +0 -8
  1716. package/lib-esm/components/rightPanel/OAuth2Flow/Error.js +0 -2
  1717. package/lib-esm/components/rightPanel/OAuth2Flow/OAuth2Flow.d.ts +0 -3
  1718. package/lib-esm/components/rightPanel/OAuth2Flow/OAuth2Flow.js +0 -2
  1719. package/lib-esm/components/rightPanel/OAuth2Flow/index.d.ts +0 -2
  1720. package/lib-esm/components/rightPanel/OAuth2Flow/index.js +0 -2
  1721. package/lib-esm/components/rightPanel/OAuth2Flow/styled.d.ts +0 -4
  1722. package/lib-esm/components/rightPanel/OAuth2Flow/styled.js +0 -14
  1723. package/lib-esm/components/rightPanel/OAuth2Flow/types.d.ts +0 -17
  1724. package/lib-esm/components/rightPanel/OAuth2Flow/types.js +0 -2
  1725. package/lib-esm/components/rightPanel/OAuth2TokenInput.d.ts +0 -16
  1726. package/lib-esm/components/rightPanel/OAuth2TokenInput.js +0 -2
  1727. package/lib-esm/components/rightPanel/OpenIDConnect.d.ts +0 -15
  1728. package/lib-esm/components/rightPanel/OpenIDConnect.js +0 -2
  1729. package/lib-esm/components/rightPanel/ParameterArray.d.ts +0 -10
  1730. package/lib-esm/components/rightPanel/ParameterArray.js +0 -30
  1731. package/lib-esm/components/rightPanel/ParameterDropdown.d.ts +0 -8
  1732. package/lib-esm/components/rightPanel/ParameterDropdown.js +0 -2
  1733. package/lib-esm/components/rightPanel/RequestBody/Body.d.ts +0 -3
  1734. package/lib-esm/components/rightPanel/RequestBody/Body.js +0 -2
  1735. package/lib-esm/components/rightPanel/RequestBody/RequestBody.d.ts +0 -3
  1736. package/lib-esm/components/rightPanel/RequestBody/RequestBody.js +0 -2
  1737. package/lib-esm/components/rightPanel/RequestBody/index.d.ts +0 -2
  1738. package/lib-esm/components/rightPanel/RequestBody/index.js +0 -2
  1739. package/lib-esm/components/rightPanel/RequestBody/types.d.ts +0 -16
  1740. package/lib-esm/components/rightPanel/RequestBody/types.js +0 -2
  1741. package/lib-esm/components/rightPanel/RequestBodyForm.d.ts +0 -9
  1742. package/lib-esm/components/rightPanel/RequestBodyForm.js +0 -10
  1743. package/lib-esm/components/rightPanel/RequestMimeLabel.d.ts +0 -1
  1744. package/lib-esm/components/rightPanel/RequestMimeLabel.js +0 -5
  1745. package/lib-esm/components/rightPanel/ResponseBody.d.ts +0 -5
  1746. package/lib-esm/components/rightPanel/ResponseBody.js +0 -2
  1747. package/lib-esm/components/rightPanel/ResponseHeadersList.d.ts +0 -4
  1748. package/lib-esm/components/rightPanel/ResponseHeadersList.js +0 -10
  1749. package/lib-esm/components/rightPanel/ResponsePanel.d.ts +0 -10
  1750. package/lib-esm/components/rightPanel/ResponsePanel.js +0 -18
  1751. package/lib-esm/components/rightPanel/Scope.d.ts +0 -7
  1752. package/lib-esm/components/rightPanel/Scope.js +0 -2
  1753. package/lib-esm/components/rightPanel/ServerVariable.d.ts +0 -11
  1754. package/lib-esm/components/rightPanel/ServerVariable.js +0 -5
  1755. package/lib-esm/components/rightPanel/ServersDropdown/ServersDropdown.d.ts +0 -3
  1756. package/lib-esm/components/rightPanel/ServersDropdown/ServersDropdown.js +0 -4
  1757. package/lib-esm/components/rightPanel/ServersDropdown/index.d.ts +0 -1
  1758. package/lib-esm/components/rightPanel/ServersDropdown/index.js +0 -2
  1759. package/lib-esm/components/rightPanel/ServersDropdown/types.d.ts +0 -6
  1760. package/lib-esm/components/rightPanel/ServersDropdown/types.js +0 -2
  1761. package/lib-esm/components/rightPanel/TryItPanel.d.ts +0 -7
  1762. package/lib-esm/components/rightPanel/TryItPanel.js +0 -14
  1763. package/lib-esm/components/rightPanel/styled.d.ts +0 -16
  1764. package/lib-esm/components/rightPanel/styled.js +0 -76
  1765. package/lib-esm/components/rightPanel/types.d.ts +0 -10
  1766. package/lib-esm/components/rightPanel/types.js +0 -2
  1767. package/lib-esm/components/rightPanel/utils.d.ts +0 -28
  1768. package/lib-esm/components/rightPanel/utils.js +0 -2
  1769. package/lib-esm/components/shared/HttpVerb.d.ts +0 -2
  1770. package/lib-esm/components/shared/HttpVerb.js +0 -4
  1771. package/lib-esm/components/shared/MimeLabel.d.ts +0 -1
  1772. package/lib-esm/components/shared/MimeLabel.js +0 -12
  1773. package/lib-esm/components/shared/NoSampleLabel.d.ts +0 -2
  1774. package/lib-esm/components/shared/NoSampleLabel.js +0 -10
  1775. package/lib-esm/components/shared/index.d.ts +0 -3
  1776. package/lib-esm/components/shared/index.js +0 -2
  1777. package/lib-esm/events/serverSwitch.d.ts +0 -2
  1778. package/lib-esm/events/serverSwitch.js +0 -2
  1779. package/lib-esm/models/file-upload.d.ts +0 -11
  1780. package/lib-esm/models/file-upload.js +0 -2
  1781. package/lib-esm/oauth2-redirect-page/handler/helpers.d.ts +0 -6
  1782. package/lib-esm/oauth2-redirect-page/handler/helpers.js +0 -2
  1783. package/lib-esm/oauth2-redirect-page/handler/oauth2-redirect-handler.d.ts +0 -1
  1784. package/lib-esm/oauth2-redirect-page/handler/oauth2-redirect-handler.js +0 -2
  1785. package/lib-esm/oauth2-redirect-page/index.d.ts +0 -1
  1786. package/lib-esm/oauth2-redirect-page/index.js +0 -2
  1787. package/lib-esm/services/MarkerService.d.ts +0 -11
  1788. package/lib-esm/services/MarkerService.js +0 -2
  1789. package/lib-esm/services/OAuth2.d.ts +0 -43
  1790. package/lib-esm/services/OAuth2.js +0 -2
  1791. package/lib-esm/services/OpenIDConnect.d.ts +0 -38
  1792. package/lib-esm/services/OpenIDConnect.js +0 -2
  1793. package/lib-esm/services/Options/helpers.d.ts +0 -8
  1794. package/lib-esm/services/Options/helpers.js +0 -2
  1795. package/lib-esm/services/Options/normalizeOptions.js +0 -2
  1796. package/lib-esm/services/Options/types.d.ts +0 -279
  1797. package/lib-esm/services/Options/types.js +0 -2
  1798. package/lib-esm/services/labels/LabelsService.d.ts +0 -3
  1799. package/lib-esm/services/labels/LabelsService.js +0 -2
  1800. package/lib-esm/services/labels/index.d.ts +0 -2
  1801. package/lib-esm/services/labels/index.js +0 -2
  1802. package/lib-esm/services/labels/types.d.ts +0 -29
  1803. package/lib-esm/services/labels/types.js +0 -2
  1804. package/lib-esm/services/menu/helpers.d.ts +0 -6
  1805. package/lib-esm/services/menu/helpers.js +0 -2
  1806. package/lib-esm/services/search/DeepSearchStore.d.ts +0 -19
  1807. package/lib-esm/services/search/DeepSearchStore.js +0 -2
  1808. package/lib-esm/services/search/RemoteSearch.d.ts +0 -17
  1809. package/lib-esm/services/search/RemoteSearch.js +0 -2
  1810. package/lib-esm/services/search/SearchStore.d.ts +0 -14
  1811. package/lib-esm/services/search/SearchStore.js +0 -2
  1812. package/lib-esm/services/search/SearchWorker.worker.d.ts +0 -17
  1813. package/lib-esm/services/search/SearchWorker.worker.js +0 -2
  1814. package/lib-esm/services/search/index.d.ts +0 -4
  1815. package/lib-esm/services/search/index.js +0 -2
  1816. package/lib-esm/services/search/types.d.ts +0 -15
  1817. package/lib-esm/services/search/types.js +0 -2
  1818. package/lib-esm/services/search/useSearch.d.ts +0 -13
  1819. package/lib-esm/services/search/useSearch.js +0 -2
  1820. package/lib-esm/types/server.d.ts +0 -7
  1821. package/lib-esm/types/server.js +0 -2
  1822. package/lib-esm/utils/media-css.d.ts +0 -8
  1823. package/lib-esm/utils/media-css.js +0 -2
  1824. package/lib-esm/utils/typeGuards.d.ts +0 -5
  1825. package/lib-esm/utils/typeGuards.js +0 -2
  1826. /package/lib/components/{ApiInfo → PropertyDetails}/types.js +0 -0
  1827. /package/lib/components/{Endpoint → Request}/types.js +0 -0
  1828. /package/lib/components/{Fields → ServerList}/types.js +0 -0
  1829. /package/lib/components/{Search → common/Select}/types.js +0 -0
  1830. /package/lib/services/{Options → config-options}/index.d.ts +0 -0
  1831. /package/lib/services/{Options → config-options}/index.js +0 -0
  1832. /package/lib/services/{Options → config-options}/normalizeOptions.d.ts +0 -0
  1833. /package/lib/{components/SecurityRequirement → services/config-options}/types.js +0 -0
  1834. /package/lib-esm/components/{ApiInfo → PropertyDetails}/types.js +0 -0
  1835. /package/lib-esm/components/{Endpoint → Request}/types.js +0 -0
  1836. /package/lib-esm/components/{Fields → ServerList}/types.js +0 -0
  1837. /package/lib-esm/components/{Search → common/Select}/types.js +0 -0
  1838. /package/lib-esm/services/{Options → config-options}/index.d.ts +0 -0
  1839. /package/lib-esm/services/{Options → config-options}/index.js +0 -0
  1840. /package/lib-esm/services/{Options → config-options}/normalizeOptions.d.ts +0 -0
  1841. /package/lib-esm/{components/SecurityRequirement → services/config-options}/types.js +0 -0
@@ -0,0 +1,2 @@
1
+ "use strict";function setCookie(e,o,t={path:"/"}){if("undefined"==typeof document)return;"number"==typeof t.expires&&(t.expires=new Date(Date.now()+864e5*t.expires)),t.expires&&(t.expires=t.expires instanceof Date?t.expires.toUTCString():t.expires),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);let n="";for(const e in t)t[e]&&(n+="; "+e,!0!==t[e]&&(n+="="+String(t[e]).split(";")[0]));return document.cookie=e+"="+encode(o)+n}function getCookie(e,o){const t="undefined"!=typeof document?document.cookie:o,n=t?t.split("; "):[],i={};for(let o=0;o<n.length;o++){const t=n[o].split("="),r=t.slice(1).join("=");try{const o=decodeURIComponent(t[0]);if(o in i||(i[o]=decode(r)),e===o)break}catch(e){}}return e?i[e]:i}function removeCookie(e,o={path:"/"}){setCookie(e,"",Object.assign(Object.assign({},o),{expires:-1}))}function decode(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)}function encode(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.removeCookie=exports.getCookie=exports.setCookie=void 0,exports.setCookie=setCookie,exports.getCookie=getCookie,exports.removeCookie=removeCookie;
2
+ //# sourceMappingURL=cookies.js.map
@@ -1,4 +1,3 @@
1
- export declare const IS_BROWSER: boolean;
2
1
  export declare function querySelector(selector: string): Element | null;
3
2
  /**
4
3
  * Drop everything inside <...> (i.e., tags/elements), and keep the text.
package/lib/utils/dom.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";function querySelector(e){return"undefined"!=typeof document?document.querySelector(e):null}function html2Str(e){return e.split(/<[^>]+>/).map((e=>e.trim())).filter((e=>e.length>0)).join(" ")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.html2Str=exports.querySelector=exports.IS_BROWSER=void 0,exports.IS_BROWSER="undefined"!=typeof window&&"HTMLElement"in window,exports.querySelector=querySelector,exports.html2Str=html2Str,"undefined"==typeof Element||Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(e){e=0===arguments.length||!!e;const t=this.parentNode,o=window.getComputedStyle(t,void 0),r=parseInt(o.getPropertyValue("border-top-width"),10),i=parseInt(o.getPropertyValue("border-left-width"),10),l=this.offsetTop-t.offsetTop<t.scrollTop,f=this.offsetTop-t.offsetTop+this.clientHeight-r>t.scrollTop+t.clientHeight,s=this.offsetLeft-t.offsetLeft<t.scrollLeft,n=this.offsetLeft-t.offsetLeft+this.clientWidth-i>t.scrollLeft+t.clientWidth,p=l&&!f;(l||f)&&e&&(t.scrollTop=this.offsetTop-t.offsetTop-t.clientHeight/2-r+this.clientHeight/2),(s||n)&&e&&(t.scrollLeft=this.offsetLeft-t.offsetLeft-t.clientWidth/2-i+this.clientWidth/2),(l||f||s||n)&&!e&&this.scrollIntoView(p)});
1
+ "use strict";function querySelector(t){return"undefined"!=typeof document?document.querySelector(t):null}function html2Str(t){return t.split(/<[^>]+>/).map((t=>t.trim())).filter((t=>t.length>0)).join(" ")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.html2Str=exports.querySelector=void 0,exports.querySelector=querySelector,exports.html2Str=html2Str,"undefined"==typeof Element||Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(t){t=0===arguments.length||!!t;const e=this.parentNode,o=window.getComputedStyle(e,void 0),l=parseInt(o.getPropertyValue("border-top-width"),10),r=parseInt(o.getPropertyValue("border-left-width"),10),i=this.offsetTop-e.offsetTop<e.scrollTop,f=this.offsetTop-e.offsetTop+this.clientHeight-l>e.scrollTop+e.clientHeight,s=this.offsetLeft-e.offsetLeft<e.scrollLeft,n=this.offsetLeft-e.offsetLeft+this.clientWidth-r>e.scrollLeft+e.clientWidth,c=i&&!f;(i||f)&&t&&(e.scrollTop=this.offsetTop-e.offsetTop-e.clientHeight/2-l+this.clientHeight/2),(s||n)&&t&&(e.scrollLeft=this.offsetLeft-e.offsetLeft-e.clientWidth/2-r+this.clientWidth/2),(i||f||s||n)&&!t&&this.scrollIntoView(c)});
2
2
  //# sourceMappingURL=dom.js.map
@@ -0,0 +1,4 @@
1
+ import type { OpenAPIServer } from '../types';
2
+ export type EnvironmentData = Record<string, Record<string, string>>;
3
+ export declare function mergeEnvData(env1: EnvironmentData, env2?: EnvironmentData): EnvironmentData;
4
+ export declare function getServerEnvName(server: OpenAPIServer): string;
@@ -0,0 +1,2 @@
1
+ "use strict";function mergeEnvData(e,r){if(!r)return e;return Array.from(new Set([...Object.keys(e),...Object.keys(r)])).reduce(((t,n)=>(t[n]=Object.assign(Object.assign({},e[n]),r[n]),t)),{})}function getServerEnvName(e){return e.description||e.url}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getServerEnvName=exports.mergeEnvData=void 0,exports.mergeEnvData=mergeEnvData,exports.getServerEnvName=getServerEnvName;
2
+ //# sourceMappingURL=environments.js.map
@@ -20,8 +20,6 @@ export declare function flattenByProp<T extends GenericObject, P extends keyof T
20
20
  export declare function stripTrailingSlash(path: string): string;
21
21
  export declare function isNumeric(value: unknown): value is number;
22
22
  export declare function appendToMdHeading(md: string, heading: string, content: string): string;
23
- export declare const mergeObjects: (target: GenericObject, ...sources: GenericObject[]) => GenericObject;
24
- export declare const isObject: (item: unknown) => item is "object";
25
23
  export declare const isArrayOfObjects: (items: unknown) => items is [];
26
24
  export declare const deleteEmptyArrayItem: (items: unknown[]) => unknown[];
27
25
  export declare const isMergeableObject: (item: unknown) => boolean;
@@ -31,7 +29,6 @@ export declare function isAbsoluteUrl(url: string): boolean;
31
29
  * e.g. resolveUrl('http://test.com:{port}', 'path') results in http://test.com:{port}/path
32
30
  */
33
31
  export declare function resolveUrl(url: string, to: string): string;
34
- export declare function getBasePath(serverUrl: string): string;
35
32
  export declare function titleize(text: string): string;
36
33
  export declare function removeQueryStringAndHash(serverUrl: string): string;
37
34
  export declare function escapeHTMLAttrChars(str: string): string;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isLastProperty=exports.isLastInArray=exports.getValueFromMdParsedExtension=exports.normalizeText=exports.getJsUrl=exports.getWindowReferenceOptions=exports.dottedString=exports.joinStringFactory=exports.get=exports.useSchemaTitle=exports.sanitizeItemId=exports.unescapeHTMLChars=exports.escapeHTMLAttrChars=exports.removeQueryStringAndHash=exports.titleize=exports.getBasePath=exports.resolveUrl=exports.isAbsoluteUrl=exports.isMergeableObject=exports.deleteEmptyArrayItem=exports.isArrayOfObjects=exports.isObject=exports.mergeObjects=exports.appendToMdHeading=exports.isNumeric=exports.stripTrailingSlash=exports.flattenByProp=exports.mapValues=exports.mapWithLast=void 0;const url_1=require("url"),media_css_1=require("./media-css"),openapi_1=require("./openapi"),JsonPointer_1=require("./JsonPointer"),dom_1=require("./dom"),typeGuards_1=require("./typeGuards");function mapWithLast(e,t){const r=[];for(let s=0;s<e.length-1;s++)r.push(t(e[s],!1));return 0!==e.length&&r.push(t(e[e.length-1],!0)),r}function mapValues(e,t){const r={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=t(e[s],s,e));return r}function flattenByProp(e,t){const r=[],s=e=>{for(const n of e)r.push(n),n[t]&&s(n[t])};return s(e),r}function stripTrailingSlash(e){return e.endsWith("/")?e.substring(0,e.length-1):e}function isNumeric(e){return!isNaN(parseFloat(e))&&isFinite(e)}function appendToMdHeading(e,t,r){const s=new RegExp(`(^|\\n)#\\s?${t}\\s*\\n`,"i"),n=new RegExp(`((\\n|^)#\\s*${t}\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)`,"i");if(s.test(e))return e.replace(n,`$1\n\n${r}\n$4`);{const s=""===e||e.endsWith("\n\n")?"":e.endsWith("\n")?"\n":"\n\n";return`${e}${s}# ${t}\n\n${r}`}}exports.mapWithLast=mapWithLast,exports.mapValues=mapValues,exports.flattenByProp=flattenByProp,exports.stripTrailingSlash=stripTrailingSlash,exports.isNumeric=isNumeric,exports.appendToMdHeading=appendToMdHeading;const mergeObjects=(e,...t)=>{if(!t.length)return e;const r=t.shift();return void 0===r?e:((0,exports.isMergeableObject)(e)&&(0,exports.isMergeableObject)(r)&&Object.keys(r).forEach((t=>{(0,exports.isMergeableObject)(r[t])?(e[t]||(e[t]={}),["string","number"].includes(typeof e[t])&&(r[t][media_css_1.ZERO_BREAKPOINT]||0===r[t][media_css_1.ZERO_BREAKPOINT]||console.warn(`Theme resolver: using default value of "${e[t]}" for "${t}". This is not recommended. Prefer adding default value by providing "${media_css_1.ZERO_BREAKPOINT}" property to ${JSON.stringify(r[t])}.`),e[t]={[media_css_1.ZERO_BREAKPOINT]:e[t]}),(0,exports.mergeObjects)(e[t],r[t])):e[t]=r[t]})),(0,exports.mergeObjects)(e,...t))};exports.mergeObjects=mergeObjects;const isObject=e=>null!==e&&"object"==typeof e;exports.isObject=isObject;const isArrayOfObjects=e=>Array.isArray(e)&&e.some((e=>(0,exports.isObject)(e)));exports.isArrayOfObjects=isArrayOfObjects;const deleteEmptyArrayItem=e=>e.filter((e=>!!e));exports.deleteEmptyArrayItem=deleteEmptyArrayItem;const isMergeableObject=e=>(0,exports.isObject)(e)&&!Array.isArray(e);function isAbsoluteUrl(e){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e)}function resolveUrl(e,t){let r;if(t.startsWith("//")){const{protocol:s}=(0,url_1.parse)(e);r=`${s||"https:"}${t}`}else if(isAbsoluteUrl(t))r=t;else if(t.startsWith("/")){const s=(0,url_1.parse)(e);r=(0,url_1.format)(Object.assign(Object.assign({},s),{pathname:t}))}else r=stripTrailingSlash(e)+"/"+t;return stripTrailingSlash(r)}function getBasePath(e){try{return parseURL(e).pathname}catch(t){return e}}function titleize(e){return e.charAt(0).toUpperCase()+e.slice(1)}function removeQueryStringAndHash(e){try{const t=parseURL(e);return t.search="",t.hash="",t.toString()}catch(t){return e}}function parseURL(e){return"undefined"==typeof URL?new(require("url").URL)(e):new URL(e)}function escapeHTMLAttrChars(e){return e.replace(/["\\]/g,"\\$&")}function unescapeHTMLChars(e){return e.replace(/&#(\d+);/g,((e,t)=>String.fromCharCode(parseInt(t,10)))).replace(/&amp;/g,"&").replace(/&quot;/g,'"')}function sanitizeItemId(e){return e&&e.replace(/#/g,"_")}function useSchemaTitle(e,t){return t||(0,openapi_1.isNamedDefinition)(e)&&JsonPointer_1.JsonPointer.baseName(e)||""}function get(e={},t,r){return"string"==typeof t&&(t=t.split(".")),t.reduce(((e,t)=>e&&e[t]?e[t]:r),e)}function joinStringFactory(e){return(...t)=>t.filter(Boolean).join(e)}function getWindowReferenceOptions(e){var t;return dom_1.IS_BROWSER?null===(t=null===window||void 0===window?void 0:window.REFERENCE_DOCS_OPTIONS)||void 0===t?void 0:t[e]:null}function getJsUrl(){var e;if(!dom_1.IS_BROWSER)return"";const t=+new Date+Math.random();try{return document.currentScript&&(document.currentScript.async||document.currentScript.defer)||document.write(`<script id="dummy${t}"><\/script>`),(null===(e=document.getElementById("dummy"+t))||void 0===e?void 0:e.previousSibling).src}catch(e){return""}}exports.isMergeableObject=isMergeableObject,exports.isAbsoluteUrl=isAbsoluteUrl,exports.resolveUrl=resolveUrl,exports.getBasePath=getBasePath,exports.titleize=titleize,exports.removeQueryStringAndHash=removeQueryStringAndHash,exports.escapeHTMLAttrChars=escapeHTMLAttrChars,exports.unescapeHTMLChars=unescapeHTMLChars,exports.sanitizeItemId=sanitizeItemId,exports.useSchemaTitle=useSchemaTitle,exports.get=get,exports.joinStringFactory=joinStringFactory,exports.dottedString=joinStringFactory("."),exports.getWindowReferenceOptions=getWindowReferenceOptions,exports.getJsUrl=getJsUrl;const normalizeText=e=>(0,typeGuards_1.isString)(e)?e:null==e?void 0:e.raw;exports.normalizeText=normalizeText;const getValueFromMdParsedExtension=(e,t)=>{const r=e[`x-parsed-md-${t}`]||e[t];if("x-enumDescriptions"!==t)return r;let s={};for(const e in r)e.startsWith("x-parsed-md")||(s[e]=r[`x-parsed-md-${e}`]||r[e]);return Object.keys(s).length?s:r};function isLastInArray(e,t){return t===e.length-1}function isLastProperty(e,t){const r=Object.keys(e);return r.indexOf(t)===r.length-1}exports.getValueFromMdParsedExtension=getValueFromMdParsedExtension,exports.isLastInArray=isLastInArray,exports.isLastProperty=isLastProperty;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isLastProperty=exports.isLastInArray=exports.getValueFromMdParsedExtension=exports.normalizeText=exports.getJsUrl=exports.getWindowReferenceOptions=exports.dottedString=exports.joinStringFactory=exports.get=exports.useSchemaTitle=exports.sanitizeItemId=exports.unescapeHTMLChars=exports.escapeHTMLAttrChars=exports.removeQueryStringAndHash=exports.titleize=exports.resolveUrl=exports.isAbsoluteUrl=exports.isMergeableObject=exports.deleteEmptyArrayItem=exports.isArrayOfObjects=exports.appendToMdHeading=exports.isNumeric=exports.stripTrailingSlash=exports.flattenByProp=exports.mapValues=exports.mapWithLast=void 0;const url_1=require("url"),theme_1=require("@redocly/theme"),openapi_1=require("./openapi"),JsonPointer_1=require("./JsonPointer");function mapWithLast(e,t){const r=[];for(let s=0;s<e.length-1;s++)r.push(t(e[s],!1));return 0!==e.length&&r.push(t(e[e.length-1],!0)),r}function mapValues(e,t){const r={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=t(e[s],s,e));return r}function flattenByProp(e,t){const r=[],s=e=>{for(const n of e)r.push(n),n[t]&&s(n[t])};return s(e),r}function stripTrailingSlash(e){return e.endsWith("/")?e.substring(0,e.length-1):e}function isNumeric(e){return!isNaN(parseFloat(e))&&isFinite(e)}function appendToMdHeading(e,t,r){const s=new RegExp(`(^|\\n)#\\s?${t}\\s*\\n`,"i"),n=new RegExp(`((\\n|^)#\\s*${t}\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)`,"i");if(s.test(e))return e.replace(n,`$1\n\n${r}\n$4`);{const s=""===e||e.endsWith("\n\n")?"":e.endsWith("\n")?"\n":"\n\n";return`${e}${s}# ${t}\n\n${r}`}}exports.mapWithLast=mapWithLast,exports.mapValues=mapValues,exports.flattenByProp=flattenByProp,exports.stripTrailingSlash=stripTrailingSlash,exports.isNumeric=isNumeric,exports.appendToMdHeading=appendToMdHeading;const isArrayOfObjects=e=>Array.isArray(e)&&e.some((e=>(0,theme_1.isObject)(e)));exports.isArrayOfObjects=isArrayOfObjects;const deleteEmptyArrayItem=e=>e.filter((e=>!!e));exports.deleteEmptyArrayItem=deleteEmptyArrayItem;const isMergeableObject=e=>(0,theme_1.isObject)(e)&&!Array.isArray(e);function isAbsoluteUrl(e){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e)}function resolveUrl(e,t){let r;if(t.startsWith("//")){const{protocol:s}=(0,url_1.parse)(e);r=`${s||"https:"}${t}`}else if(isAbsoluteUrl(t))r=t;else if(t.startsWith("/")){const s=(0,url_1.parse)(e);r=(0,url_1.format)(Object.assign(Object.assign({},s),{pathname:t}))}else r=stripTrailingSlash(e)+"/"+t;return stripTrailingSlash(r)}function titleize(e){return e.charAt(0).toUpperCase()+e.slice(1)}function removeQueryStringAndHash(e){try{const t=parseURL(e);return t.search="",t.hash="",t.toString()}catch(t){return e}}function parseURL(e){return"undefined"==typeof URL?new(require("url").URL)(e):new URL(e)}function escapeHTMLAttrChars(e){return e.replace(/["\\]/g,"\\$&")}function unescapeHTMLChars(e){return e.replace(/&#(\d+);/g,((e,t)=>String.fromCharCode(parseInt(t,10)))).replace(/&amp;/g,"&").replace(/&quot;/g,'"')}function sanitizeItemId(e){return e&&e.replace(/#/g,"_").toLowerCase()}function useSchemaTitle(e,t){return t||(0,openapi_1.isNamedDefinition)(e)&&JsonPointer_1.JsonPointer.baseName(e)||""}function get(e={},t,r){return"string"==typeof t&&(t=t.split(".")),t.reduce(((e,t)=>e&&e[t]?e[t]:r),e)}function joinStringFactory(e){return(...t)=>t.filter(Boolean).join(e)}function getWindowReferenceOptions(e){var t;return theme_1.IS_BROWSER?null===(t=null===window||void 0===window?void 0:window.REFERENCE_DOCS_OPTIONS)||void 0===t?void 0:t[e]:null}function getJsUrl(){var e;if(!theme_1.IS_BROWSER)return"";const t=+new Date+Math.random();try{return document.currentScript&&(document.currentScript.async||document.currentScript.defer)||document.write(`<script id="dummy${t}"><\/script>`),(null===(e=document.getElementById("dummy"+t))||void 0===e?void 0:e.previousSibling).src}catch(e){return""}}exports.isMergeableObject=isMergeableObject,exports.isAbsoluteUrl=isAbsoluteUrl,exports.resolveUrl=resolveUrl,exports.titleize=titleize,exports.removeQueryStringAndHash=removeQueryStringAndHash,exports.escapeHTMLAttrChars=escapeHTMLAttrChars,exports.unescapeHTMLChars=unescapeHTMLChars,exports.sanitizeItemId=sanitizeItemId,exports.useSchemaTitle=useSchemaTitle,exports.get=get,exports.joinStringFactory=joinStringFactory,exports.dottedString=joinStringFactory("."),exports.getWindowReferenceOptions=getWindowReferenceOptions,exports.getJsUrl=getJsUrl;const normalizeText=e=>(0,theme_1.isString)(e)?e:null==e?void 0:e.raw;exports.normalizeText=normalizeText;const getValueFromMdParsedExtension=(e,t)=>{const r=e[`x-parsed-md-${t}`]||e[t];if("x-enumDescriptions"!==t)return r;let s={};for(const e in r)e.startsWith("x-parsed-md")||(s[e]=r[`x-parsed-md-${e}`]||r[e]);return Object.keys(s).length?s:r};function isLastInArray(e,t){return t===e.length-1}function isLastProperty(e,t){const r=Object.keys(e);return r.indexOf(t)===r.length-1}exports.getValueFromMdParsedExtension=getValueFromMdParsedExtension,exports.isLastInArray=isLastInArray,exports.isLastProperty=isLastProperty;
2
2
  //# sourceMappingURL=helpers.js.map
@@ -6,7 +6,6 @@ export * from './dom';
6
6
  export * from './debug';
7
7
  export * from './sort';
8
8
  export * from './argValuesHelpers';
9
- export * from './media-css';
10
9
  export * from './theme-helpers';
11
10
  export * from './debounce';
12
11
  export * from './security-details';
@@ -15,8 +14,9 @@ export * from './local-storage';
15
14
  export * from './parameters';
16
15
  export * from './string';
17
16
  export * from './test-utils';
18
- export * from './typeGuards';
19
17
  export * from './compose';
20
18
  export * from './saveTextBeforeHeading';
21
19
  export * from './path';
22
20
  export * from './queryString';
21
+ export * from './isMobile';
22
+ export * from './replaceVariables';
@@ -1,2 +1,2 @@
1
- "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,o){void 0===o&&(o=t);var p=Object.getOwnPropertyDescriptor(r,t);p&&!("get"in p?!r.__esModule:p.writable||p.configurable)||(p={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,o,p)}:function(e,r,t,o){void 0===o&&(o=t),e[o]=r[t]}),__exportStar=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||__createBinding(r,e,t)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./JsonPointer"),exports),__exportStar(require("./openapi"),exports),__exportStar(require("./helpers"),exports),__exportStar(require("./highlight"),exports),__exportStar(require("./dom"),exports),__exportStar(require("./debug"),exports),__exportStar(require("./sort"),exports),__exportStar(require("./argValuesHelpers"),exports),__exportStar(require("./media-css"),exports),__exportStar(require("./theme-helpers"),exports),__exportStar(require("./debounce"),exports),__exportStar(require("./security-details"),exports),__exportStar(require("./session-storage"),exports),__exportStar(require("./local-storage"),exports),__exportStar(require("./parameters"),exports),__exportStar(require("./string"),exports),__exportStar(require("./test-utils"),exports),__exportStar(require("./typeGuards"),exports),__exportStar(require("./compose"),exports),__exportStar(require("./saveTextBeforeHeading"),exports),__exportStar(require("./path"),exports),__exportStar(require("./queryString"),exports);
1
+ "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,o){void 0===o&&(o=t);var p=Object.getOwnPropertyDescriptor(r,t);p&&!("get"in p?!r.__esModule:p.writable||p.configurable)||(p={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,o,p)}:function(e,r,t,o){void 0===o&&(o=t),e[o]=r[t]}),__exportStar=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||__createBinding(r,e,t)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./JsonPointer"),exports),__exportStar(require("./openapi"),exports),__exportStar(require("./helpers"),exports),__exportStar(require("./highlight"),exports),__exportStar(require("./dom"),exports),__exportStar(require("./debug"),exports),__exportStar(require("./sort"),exports),__exportStar(require("./argValuesHelpers"),exports),__exportStar(require("./theme-helpers"),exports),__exportStar(require("./debounce"),exports),__exportStar(require("./security-details"),exports),__exportStar(require("./session-storage"),exports),__exportStar(require("./local-storage"),exports),__exportStar(require("./parameters"),exports),__exportStar(require("./string"),exports),__exportStar(require("./test-utils"),exports),__exportStar(require("./compose"),exports),__exportStar(require("./saveTextBeforeHeading"),exports),__exportStar(require("./path"),exports),__exportStar(require("./queryString"),exports),__exportStar(require("./isMobile"),exports),__exportStar(require("./replaceVariables"),exports);
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,5 @@
1
+ interface MobileOptions {
2
+ tablet?: boolean;
3
+ }
4
+ export declare function isMobile(opts?: MobileOptions): boolean;
5
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";function isMobile(e={}){const i=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/CrOS/.test(navigator.userAgent),o=e.tablet&&/android|ipad|playbook|silk/i.test(navigator.userAgent),a=e.tablet&&navigator.maxTouchPoints>1&&-1!==navigator.userAgent.indexOf("Macintosh")&&-1!==navigator.userAgent.indexOf("Safari");return!!(i||o||a)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isMobile=void 0,exports.isMobile=isMobile;
2
+ //# sourceMappingURL=isMobile.js.map
@@ -1,2 +1,2 @@
1
- "use strict";var __awaiter=this&&this.__awaiter||function(e,n,o,r){return new(o||(o=Promise))((function(t,i){function c(e){try{d(r.next(e))}catch(e){i(e)}}function a(e){try{d(r.throw(e))}catch(e){i(e)}}function d(e){var n;e.done?t(e.value):(n=e.value,n instanceof o?n:new o((function(e){e(n)}))).then(c,a)}d((r=r.apply(e,n||[])).next())}))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.convertSwagger2OpenAPI=exports.loadAndBundleDefinition=void 0;const bundle_1=require("@redocly/openapi-core/lib/bundle"),config_1=require("@redocly/openapi-core/lib/config/config"),swagger2openapi_1=require("swagger2openapi"),createParsedDocument_1=require("./createParsedDocument"),dom_1=require("./dom");function loadAndBundleDefinition(e){return __awaiter(this,void 0,void 0,(function*(){const n=new config_1.Config({}),o={config:n,base:dom_1.IS_BROWSER?window.location.href:process.cwd()};dom_1.IS_BROWSER&&(n.resolve.http.customFetch=global.fetch),"object"==typeof e&&null!==e?o.doc=(0,createParsedDocument_1.createParsedDocument)(e):o.ref=e;const{bundle:{parsed:r}}=yield(0,bundle_1.bundle)(o);return void 0!==r.swagger?convertSwagger2OpenAPI(r):r}))}function convertSwagger2OpenAPI(e){return e.paths||(e.paths={}),new Promise(((n,o)=>(0,swagger2openapi_1.convertObj)(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},((e,r)=>{if(e)return o(e);n(null==r?void 0:r.openapi)}))))}exports.loadAndBundleDefinition=loadAndBundleDefinition,exports.convertSwagger2OpenAPI=convertSwagger2OpenAPI;
1
+ "use strict";var __awaiter=this&&this.__awaiter||function(e,n,t,o){return new(t||(t=Promise))((function(r,i){function c(e){try{u(o.next(e))}catch(e){i(e)}}function a(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}u((o=o.apply(e,n||[])).next())}))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.convertSwagger2OpenAPI=exports.loadAndBundleDefinition=void 0;const bundle_1=require("@redocly/openapi-core/lib/bundle"),config_1=require("@redocly/openapi-core/lib/config/config"),swagger2openapi_1=require("swagger2openapi"),theme_1=require("@redocly/theme"),createParsedDocument_1=require("./createParsedDocument");function loadAndBundleDefinition(e){return __awaiter(this,void 0,void 0,(function*(){const n=new config_1.Config({}),t={config:n,base:theme_1.IS_BROWSER?window.location.href:process.cwd()};theme_1.IS_BROWSER&&(n.resolve.http.customFetch=global.fetch),"object"==typeof e&&null!==e?t.doc=(0,createParsedDocument_1.createParsedDocument)(e):t.ref=e;const{bundle:{parsed:o}}=yield(0,bundle_1.bundle)(t);return void 0!==o.swagger?convertSwagger2OpenAPI(o):o}))}function convertSwagger2OpenAPI(e){return e.paths||(e.paths={}),new Promise(((n,t)=>(0,swagger2openapi_1.convertObj)(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},((e,o)=>{if(e)return t(e);n(null==o?void 0:o.openapi)}))))}exports.loadAndBundleDefinition=loadAndBundleDefinition,exports.convertSwagger2OpenAPI=convertSwagger2OpenAPI;
2
2
  //# sourceMappingURL=loadAndBundleSpec.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fromLocalStorage=exports.toLocalStorage=void 0;const dom_1=require("./dom");function toLocalStorage(o,e){dom_1.IS_BROWSER&&window.localStorage.setItem("redoc."+o,e)}function fromLocalStorage(o){return dom_1.IS_BROWSER&&window.localStorage.getItem("redoc."+o)||""}exports.toLocalStorage=toLocalStorage,exports.fromLocalStorage=fromLocalStorage;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fromLocalStorage=exports.toLocalStorage=void 0;const theme_1=require("@redocly/theme");function toLocalStorage(o,e){theme_1.IS_BROWSER&&window.localStorage.setItem("redoc."+o,e)}function fromLocalStorage(o){return theme_1.IS_BROWSER&&window.localStorage.getItem("redoc."+o)||""}exports.toLocalStorage=toLocalStorage,exports.fromLocalStorage=fromLocalStorage;
2
2
  //# sourceMappingURL=local-storage.js.map
@@ -1,2 +1,3 @@
1
1
  export declare function objectHas(object: GenericObject, path: string | Array<string>): boolean;
2
2
  export declare function objectSet(object: GenericObject, path: string | Array<string>, value: unknown): void;
3
+ export declare function mapObject<T, P>(obj: Record<string, T>, fn: (v: T, k: string) => P): Record<string, P>;
@@ -1,2 +1,2 @@
1
- "use strict";function objectHas(t,e){let o=e;return"string"==typeof e&&(o=e.split(".")),o.every((e=>"object"==typeof t&&null!==t&&e in t&&(t=t[e],!0)))}function objectSet(t,e,o){var s;let c=e;"string"==typeof e&&(c=e.split("."));const r=c.length-1;for(let e=0;e<r;++e){const o=c[e];t=null!==(s=t[o])&&void 0!==s?s:t[o]={}}t[c[r]]=o}Object.defineProperty(exports,"__esModule",{value:!0}),exports.objectSet=exports.objectHas=void 0,exports.objectHas=objectHas,exports.objectSet=objectSet;
1
+ "use strict";function objectHas(t,e){let o=e;return"string"==typeof e&&(o=e.split(".")),o.every((e=>"object"==typeof t&&null!==t&&e in t&&(t=t[e],!0)))}function objectSet(t,e,o){var c;let r=e;"string"==typeof e&&(r=e.split("."));const s=r.length-1;for(let e=0;e<s;++e){const o=r[e];t=null!==(c=t[o])&&void 0!==c?c:t[o]={}}t[r[s]]=o}function mapObject(t,e){return Object.fromEntries(Object.entries(t).map((([t,o])=>[t,e(o,t)])))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.mapObject=exports.objectSet=exports.objectHas=void 0,exports.objectHas=objectHas,exports.objectSet=objectSet,exports.mapObject=mapObject;
2
2
  //# sourceMappingURL=object.js.map
@@ -2,16 +2,16 @@ import type { OpenAPIEncoding, OpenAPIMediaType, OpenAPIParameterStyle, OpenAPIR
2
2
  import type { ExtendedOpenAPIOperation, OpenAPIParser } from '../services';
3
3
  import type { FieldModel, GroupModel } from '../models';
4
4
  import { OpenAPIParameter } from '../types';
5
- import { Pagination } from '../services';
6
5
  export declare function isStatusCode(statusCode: string): boolean;
7
6
  export declare function getStatusCodeType(statusCode: string | number, defaultAsError?: boolean): string;
8
7
  export declare function isOperationName(key: string): boolean;
9
8
  export declare function getOperationName(operation: ExtendedOpenAPIOperation): string;
10
- export declare function getOperationId(operation: ExtendedOpenAPIOperation, pagination: Pagination, parent?: GroupModel): string;
9
+ export declare function getOperationId(operation: ExtendedOpenAPIOperation, parent?: GroupModel): string;
11
10
  export declare function detectType(schema: OpenAPISchema): string;
12
11
  export declare function isPrimitiveType(schema: OpenAPISchema, type?: string | string[] | undefined): boolean;
13
12
  export declare function isJsonLike(contentType: string): boolean;
14
13
  export declare function isFormUrlEncoded(contentType: string): boolean;
14
+ export declare function isMultipartFormData(contentType: string): boolean;
15
15
  export declare function urlFormEncodePayload(payload: GenericObject, encoding?: {
16
16
  [field: string]: OpenAPIEncoding;
17
17
  }): string;
@@ -24,7 +24,6 @@ export declare function getDefinitionName(pointer?: string): string | undefined;
24
24
  export declare function humanizeNumberRange(schema: OpenAPISchema): string | undefined;
25
25
  export declare function humanizeConstraints(schema: OpenAPISchema): string[];
26
26
  export declare function sortByRequired(fields: FieldModel[], order?: string[]): Array<FieldModel>;
27
- export declare function sortByField(fields: FieldModel[], param: keyof Pick<FieldModel, 'name' | 'kind'>): Array<FieldModel>;
28
27
  export declare function mergeParams(parser: OpenAPIParser, pathParams: Referenced<OpenAPIParameter>[] | undefined, operationParams: Referenced<OpenAPIParameter>[] | undefined, { pathPointer, operationPointer }: {
29
28
  pathPointer: any;
30
29
  operationPointer: any;
@@ -32,8 +31,6 @@ export declare function mergeParams(parser: OpenAPIParser, pathParams: Reference
32
31
  paramOrRef: Referenced<OpenAPIParameter>;
33
32
  pointer: string;
34
33
  }>;
35
- export declare function mergeSimilarMediaTypes(types: Record<string, OpenAPIMediaType>): Record<string, OpenAPIMediaType>;
36
- export declare function expandDefaultServerVariables(url: string, variables?: GenericObject): string;
37
34
  export declare function normalizeServers(specUrl: string | undefined, servers: OpenAPIServer[]): OpenAPIServer[];
38
35
  export declare const shortenHTTPVerb: (verb: string) => string;
39
36
  export declare function isRedocExtension(key: string): boolean;
@@ -1,2 +1,2 @@
1
- "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getContentWithLegacyExamples=exports.pluralizeType=exports.extractExtensions=exports.isRedocExtension=exports.shortenHTTPVerb=exports.normalizeServers=exports.expandDefaultServerVariables=exports.mergeSimilarMediaTypes=exports.mergeParams=exports.sortByField=exports.sortByRequired=exports.humanizeConstraints=exports.humanizeNumberRange=exports.getDefinitionName=exports.isNamedDefinition=exports.langFromMime=exports.serializeParameterValue=exports.serializeParameterValueWithMime=exports.serializeQueryParameter=exports.urlFormEncodePayload=exports.isFormUrlEncoded=exports.isJsonLike=exports.isPrimitiveType=exports.detectType=exports.getOperationId=exports.getOperationName=exports.isOperationName=exports.getStatusCodeType=exports.isStatusCode=void 0;const path_1=require("path"),url_template_1=__importDefault(require("url-template")),dom_1=require("./dom"),helpers_1=require("./helpers"),constants_1=require("../constants"),JsonPointer_1=require("./JsonPointer"),services_1=require("../services");function isWildcardStatusCode(e){return"string"==typeof e&&/\dxx/i.test(e)}function isStatusCode(e){return"default"===e||(0,helpers_1.isNumeric)(e)||isWildcardStatusCode(e)}function getStatusCodeType(e,r=!1){if("default"===e)return r?"error":"success";let t="string"==typeof e?parseInt(e,10):e;if(isWildcardStatusCode(e)&&(t*=100),t<100||t>599)throw new Error("invalid HTTP code");let i="success";return t>=300&&t<400?i="redirect":t>=400?i="error":t<200&&(i="info"),i}exports.isStatusCode=isStatusCode,exports.getStatusCodeType=getStatusCodeType;const operationNames={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0,$ref:!0};function isOperationName(e){return e in operationNames}function getOperationName(e){const{operationId:r,pathName:t}=e,i=(0,helpers_1.normalizeText)((0,helpers_1.getValueFromMdParsedExtension)(e,"description"));return(0,helpers_1.normalizeText)((0,helpers_1.getValueFromMdParsedExtension)(e,"summary"))||r||i&&i.substring(0,50)||t||"<no summary>"}function getOperationId(e,r,t){var i;return r===services_1.Pagination.None&&(null==t?void 0:t.id)?(0,services_1.joinWithSeparator)(t.id,(0,helpers_1.sanitizeItemId)(e.operationId?e.operationId:pointerToId(e.pointer))):(null===(i=e.tags)||void 0===i?void 0:i.length)?(0,helpers_1.sanitizeItemId)(e.operationId?e.operationId:pointerToId(e.pointer)):(0,helpers_1.sanitizeItemId)(e.operationId?(0,services_1.joinWithSeparator)(constants_1.DEFAULT_TAG_SLUG,e.operationId):pointerToId(e.pointer))}function pointerToId(e){return(null==e?void 0:e.startsWith("/"))?e.slice(1,e.length):e}exports.isOperationName=isOperationName,exports.getOperationName=getOperationName,exports.getOperationId=getOperationId;const schemaKeywordTypes={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",contentEncoding:"string",contentMediaType:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",unevaluatedProperties:"object",patternProperties:"object",properties:"object"};function detectType(e){if(void 0!==e.type&&!Array.isArray(e.type))return e.type;const r=Object.keys(schemaKeywordTypes);for(const t of r){const r=schemaKeywordTypes[t];if(void 0!==e[t])return r}return"any"}function isPrimitiveType(e,r=e.type){if(e["x-circular-ref"])return!0;if(void 0!==e.oneOf||void 0!==e.anyOf)return!1;if(e.if&&e.then||e.if&&e.else)return!1;let t=!0;const i=Array.isArray(r);return("object"===r||i&&(null==r?void 0:r.includes("object")))&&(t=void 0!==e.properties?0===Object.keys(e.properties).length:void 0===e.additionalProperties&&void 0===e.unevaluatedProperties&&void 0===e.patternProperties),!Array.isArray(e.items)&&!Array.isArray(e.prefixItems)&&(void 0!==e.items&&"boolean"!=typeof e.items&&("array"===r||i&&(null==r?void 0:r.includes("array")))&&(t=isPrimitiveType(e.items,e.items.type)),t)}function isJsonLike(e){return-1!==e.search(/json/i)}function isFormUrlEncoded(e){return e===constants_1.MediaTypes.URL_ENCODED}function delimitedEncodeField(e,r,t){return Array.isArray(e)?e.map((e=>e.toString())).join(t):"object"==typeof e?Object.keys(e).map((r=>`${r}${t}${e[r]}`)).join(t):r+"="+e.toString()}function deepObjectEncodeField(e,r){return Array.isArray(e)?(console.warn("deepObject style cannot be used with array value:"+e.toString()),""):"object"==typeof e?Object.keys(e).map((t=>e[t]?`${r}[${t}]=${e[t]}`:void 0)).filter(Boolean).join("&"):(console.warn("deepObject style cannot be used with non-object value:"+e.toString()),"")}function serializeFormValue(e,r,t){const i="__redoc_param_name__",n=r?"*":"";return url_template_1.default.parse(`{?${i}${n}}`).expand({[i]:t}).substring(1).replace(/__redoc_param_name__/g,e)}function serializeSimpleValue(e,r){const t=e?"*":"",i="__redoc_param_name__",n=url_template_1.default.parse(`{${i}${t}}`);return decodeURIComponent(n.expand({[i]:r}))}function urlFormEncodePayload(e,r={}){if(Array.isArray(e))throw new Error("Payload must have fields: "+e.toString());return Object.keys(e).map((t=>{const i=e[t],{style:n="form",explode:o=!0}=r[t]||{};switch(n){case"form":return serializeFormValue(t,o,i);case"spaceDelimited":return delimitedEncodeField(i,t,"%20");case"pipeDelimited":return delimitedEncodeField(i,t,"|");case"deepObject":return deepObjectEncodeField(i,t);default:return console.warn("Incorrect or unsupported encoding style: "+n),""}})).join("&")}function serializePathParameter(e,r,t,i){const n=t?"*":"";let o="";"label"===r?o=".":"matrix"===r&&(o=";");const a="__redoc_param_name__";return url_template_1.default.parse(`{${o}${a}${n}}`).expand({[a]:i}).replace(/__redoc_param_name__/g,e)}function serializeQueryParameter(e,r,t,i){const n=n=>{switch(r){case"form":return serializeFormValue(e,t,n);case"spaceDelimited":return Array.isArray(n)?t?serializeFormValue(e,t,n):`${e}=${n.join("%20")}`:(console.warn("The style spaceDelimited is only applicable to arrays"),"");case"pipeDelimited":return Array.isArray(n)?t?serializeFormValue(e,t,n):`${e}=${n.join("|")}`:(console.warn("The style pipeDelimited is only applicable to arrays"),"");case"deepObject":return!t||Array.isArray(n)||"object"!=typeof n?(console.warn("The style deepObject is only applicable for objects with explode=true"),""):deepObjectEncodeField(n,e);case"simple":return serializeSimpleValue(t,i);default:return console.warn("Unexpected style for query: "+r),""}};return(0,helpers_1.isArrayOfObjects)(i)&&(i=(0,helpers_1.deleteEmptyArrayItem)(i).map((e=>n(e)))),n(i)}function serializeHeaderParameter(e,r,t){return"simple"===e?serializeSimpleValue(r,t):(console.warn("Unexpected style for header: "+e),"")}function serializeCookieParameter(e,r,t,i){return"form"===r?serializeFormValue(e,t,i):(console.warn("Unexpected style for cookie: "+r),"")}function serializeParameterValueWithMime(e,r){return isJsonLike(r)?JSON.stringify(e):(console.warn(`Parameter serialization as ${r} is not supported`),"")}function serializeParameterValue(e,r){const{name:t,style:i,explode:n=!1,serializationMime:o}=e;if(o)switch(e.in){case"path":case"header":return serializeParameterValueWithMime(r,o);case"cookie":case"query":return`${t}=${serializeParameterValueWithMime(r,o)}`;default:return console.warn("Unexpected parameter location: "+e.in),""}if(!i)return console.warn(`Missing style attribute or content for parameter ${t}`),"";switch(e.in){case"path":return serializePathParameter(t,i,n,r);case"query":return serializeQueryParameter(t,i,n,r);case"header":return serializeHeaderParameter(i,n,r);case"cookie":return serializeCookieParameter(t,i,n,r);default:return console.warn("Unexpected parameter location: "+e.in),""}}function langFromMime(e){return-1!==e.search(/xml/i)?"xml":"clike"}exports.detectType=detectType,exports.isPrimitiveType=isPrimitiveType,exports.isJsonLike=isJsonLike,exports.isFormUrlEncoded=isFormUrlEncoded,exports.urlFormEncodePayload=urlFormEncodePayload,exports.serializeQueryParameter=serializeQueryParameter,exports.serializeParameterValueWithMime=serializeParameterValueWithMime,exports.serializeParameterValue=serializeParameterValue,exports.langFromMime=langFromMime;const DEFINITION_NAME_REGEX=/^#\/components\/(schemas|pathItems)\/([^/]+)$/;function isNamedDefinition(e){return DEFINITION_NAME_REGEX.test(e||"")}function getDefinitionName(e){var r;return null===(r=null==e?void 0:e.match(DEFINITION_NAME_REGEX))||void 0===r?void 0:r.pop()}function humanizeMultipleOfConstraint(e){if(void 0===e)return;const r=e.toString(10);return/^0\.0*1$/.test(r)?`decimal places <= ${r.split(".")[1].length}`:`multiple of ${r}`}function humanizeRangeConstraint(e,r,t){let i;return void 0!==r&&void 0!==t?i=r===t?`= ${r} ${e}`:`[ ${r} .. ${t} ] ${e}`:void 0!==t?i=`<= ${t} ${e}`:void 0!==r&&(i=1===r?"non-empty":`>= ${r} ${e}`),i}function humanizeNumberRange(e){var r,t;const i="number"==typeof e.exclusiveMinimum?Math.min(e.exclusiveMinimum,null!==(r=e.minimum)&&void 0!==r?r:1/0):e.minimum,n="number"==typeof e.exclusiveMaximum?Math.max(e.exclusiveMaximum,null!==(t=e.maximum)&&void 0!==t?t:-1/0):e.maximum,o="number"==typeof e.exclusiveMinimum||e.exclusiveMinimum,a="number"==typeof e.exclusiveMaximum||e.exclusiveMaximum;return void 0!==i&&void 0!==n?`${o?"( ":"[ "}${i} .. ${n}${a?" )":" ]"}`:void 0!==n?`${a?"< ":"<= "}${n}`:void 0!==i?`${o?"> ":">= "}${i}`:void 0}function humanizeConstraints(e){const r=[],t=humanizeRangeConstraint("characters",e.minLength,e.maxLength);void 0!==t&&r.push(t);const i=humanizeRangeConstraint("items",e.minItems,e.maxItems);void 0!==i&&r.push(i);const n=humanizeRangeConstraint(1===e.minProperties&&1===e.maxProperties?"property":"properties",e.minProperties,e.maxProperties);void 0!==n&&r.push(n);const o=humanizeMultipleOfConstraint(e.multipleOf);void 0!==o&&r.push(o);const a=humanizeNumberRange(e);return void 0!==a&&r.push(a),e.uniqueItems&&r.push("unique"),r}function sortByRequired(e,r=[]){const t=[],i=[],n=[];return e.forEach((e=>{e.required?r.includes(e.name)?i.push(e):n.push(e):t.push(e)})),i.sort(((e,t)=>r.indexOf(e.name)-r.indexOf(t.name))),[...i,...n,...t]}function sortByField(e,r){return[...e].sort(((e,t)=>e[r].localeCompare(t[r])))}function mergeParams(e,r=[],t=[],{pathPointer:i,operationPointer:n}){const o={};t.forEach((r=>{({resolved:r}=e.deref(r)),o[r.name+"_"+r.in]=!0}));return[...r.map(((e,r)=>({paramOrRef:e,pointer:JsonPointer_1.JsonPointer.join(i,["parameters",String(r)])}))).filter((({paramOrRef:r})=>(({resolved:r}=e.deref(r)),!o[r.name+"_"+r.in]))),...t.map(((e,r)=>({paramOrRef:e,pointer:JsonPointer_1.JsonPointer.join(n,["parameters",String(r)])})))]}function mergeSimilarMediaTypes(e){const r={};return Object.keys(e).forEach((t=>{const i=e[t],n=t.split(";")[0].trim();r[n]?r[n]=Object.assign(Object.assign({},r[n]),i):r[n]=i})),r}function expandDefaultServerVariables(e,r={}){return e.replace(/(?:{)([\w-.]+)(?:})/g,((e,t)=>r[t]&&r[t].default||e))}function normalizeServers(e,r){const t=void 0===e?(0,helpers_1.removeQueryStringAndHash)((()=>{if(!dom_1.IS_BROWSER)return globalThis.SSR_HOSTNAME||"";const e=window.location.href;return e.endsWith(".html")?(0,path_1.dirname)(e):e})()):(0,path_1.dirname)(e);return 0===r.length&&(r=[{url:"/"}]),r.map((e=>{return Object.assign(Object.assign({},e),{url:(r=e.url,(0,helpers_1.resolveUrl)(t,r)),description:e.description||""});var r}))}exports.isNamedDefinition=isNamedDefinition,exports.getDefinitionName=getDefinitionName,exports.humanizeNumberRange=humanizeNumberRange,exports.humanizeConstraints=humanizeConstraints,exports.sortByRequired=sortByRequired,exports.sortByField=sortByField,exports.mergeParams=mergeParams,exports.mergeSimilarMediaTypes=mergeSimilarMediaTypes,exports.expandDefaultServerVariables=expandDefaultServerVariables,exports.normalizeServers=normalizeServers;const shortenHTTPVerb=e=>({delete:"del",options:"opts"}[e]||e);function isRedocExtension(e){return e in{"x-circular-ref":!0,"x-parentRefs":!0,"x-refsStack":!0,"x-code-samples":!0,"x-codeSamples":!0,"x-displayName":!0,"x-examples":!0,"x-ignoredHeaderParameters":!0,"x-logo":!0,"x-nullable":!0,"x-servers":!0,"x-tagGroups":!0,"x-traitTag":!0,"x-additionalPropertiesName":!0,"x-explicitMappingOnly":!0,"x-enumDescriptions":!0,"x-hideTryItPanel":!0,"x-tokenEndpointAuthMethod":!0,"x-feedback":!0}||e.startsWith("x-parsed-md-")}function extractExtensions(e,r){return Object.keys(e).filter((e=>!0===r?e.startsWith("x-")&&!isRedocExtension(e):e.startsWith("x-")&&r.indexOf(e)>-1)).reduce(((r,t)=>(r[t]=e[t],r)),{})}function pluralizeType(e){return e.split(" or ").map((e=>e.replace(/^(string|object|number|integer|array|boolean)s?( ?.*)/,"$1s$2"))).join(" or ")}function getContentWithLegacyExamples(e){let r=e.content;const t=e["x-examples"],i=e["x-example"];if(t){r=Object.assign({},r);for(const e of Object.keys(t)){const i=t[e];r[e]=Object.assign(Object.assign({},r[e]),{examples:i})}}else if(i){r=Object.assign({},r);for(const e of Object.keys(i)){const t=i[e];r[e]=Object.assign(Object.assign({},r[e]),{example:t})}}return r}exports.shortenHTTPVerb=shortenHTTPVerb,exports.isRedocExtension=isRedocExtension,exports.extractExtensions=extractExtensions,exports.pluralizeType=pluralizeType,exports.getContentWithLegacyExamples=getContentWithLegacyExamples;
1
+ "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getContentWithLegacyExamples=exports.pluralizeType=exports.extractExtensions=exports.isRedocExtension=exports.shortenHTTPVerb=exports.normalizeServers=exports.mergeParams=exports.sortByRequired=exports.humanizeConstraints=exports.humanizeNumberRange=exports.getDefinitionName=exports.isNamedDefinition=exports.langFromMime=exports.serializeParameterValue=exports.serializeParameterValueWithMime=exports.serializeQueryParameter=exports.urlFormEncodePayload=exports.isMultipartFormData=exports.isFormUrlEncoded=exports.isJsonLike=exports.isPrimitiveType=exports.detectType=exports.getOperationId=exports.getOperationName=exports.isOperationName=exports.getStatusCodeType=exports.isStatusCode=void 0;const path_1=require("path"),url_template_1=__importDefault(require("url-template")),theme_1=require("@redocly/theme"),helpers_1=require("./helpers"),constants_1=require("../constants"),JsonPointer_1=require("./JsonPointer"),services_1=require("../services");function isWildcardStatusCode(e){return"string"==typeof e&&/\dxx/i.test(e)}function isStatusCode(e){return"default"===e||(0,helpers_1.isNumeric)(e)||isWildcardStatusCode(e)}function getStatusCodeType(e,r=!1){if("default"===e)return r?"error":"success";let t="string"==typeof e?parseInt(e,10):e;if(isWildcardStatusCode(e)&&(t*=100),t<100||t>599)throw new Error("invalid HTTP code");let i="success";return t>=300&&t<400?i="redirect":t>=400?i="error":t<200&&(i="info"),i}exports.isStatusCode=isStatusCode,exports.getStatusCodeType=getStatusCodeType;const operationNames={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0,$ref:!0};function isOperationName(e){return e in operationNames}function getOperationName(e){const{operationId:r,pathName:t}=e,i=(0,helpers_1.normalizeText)((0,helpers_1.getValueFromMdParsedExtension)(e,"description"));return(0,helpers_1.normalizeText)((0,helpers_1.getValueFromMdParsedExtension)(e,"summary"))||r||i&&i.substring(0,50)||t||"<no summary>"}function getOperationId(e,r){var t;return(null==r?void 0:r.id)?(0,services_1.joinWithSeparator)(r.id,(0,helpers_1.sanitizeItemId)(e.operationId?e.operationId:pointerToId(e.pointer))).toLowerCase():(null===(t=e.tags)||void 0===t?void 0:t.length)?(0,helpers_1.sanitizeItemId)(e.operationId?e.operationId:pointerToId(e.pointer)):(0,helpers_1.sanitizeItemId)(e.operationId?(0,services_1.joinWithSeparator)(constants_1.DEFAULT_TAG_SLUG,e.operationId):pointerToId(e.pointer))}function pointerToId(e){return(null==e?void 0:e.startsWith("/"))?e.slice(1,e.length):e}exports.isOperationName=isOperationName,exports.getOperationName=getOperationName,exports.getOperationId=getOperationId;const schemaKeywordTypes={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",contentEncoding:"string",contentMediaType:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",unevaluatedProperties:"object",patternProperties:"object",properties:"object"};function detectType(e){if(void 0!==e.type&&!Array.isArray(e.type))return e.type;const r=Object.keys(schemaKeywordTypes);for(const t of r){const r=schemaKeywordTypes[t];if(void 0!==e[t])return r}return"any"}function isPrimitiveType(e,r=e.type){if(e["x-circular-ref"])return!0;if(void 0!==e.oneOf||void 0!==e.anyOf)return!1;if(e.if&&e.then||e.if&&e.else)return!1;let t=!0;const i=Array.isArray(r);return("object"===r||i&&(null==r?void 0:r.includes("object")))&&(t=void 0!==e.properties?0===Object.keys(e.properties).length:void 0===e.additionalProperties&&void 0===e.unevaluatedProperties&&void 0===e.patternProperties),!Array.isArray(e.items)&&!Array.isArray(e.prefixItems)&&(void 0!==e.items&&"boolean"!=typeof e.items&&("array"===r||i&&(null==r?void 0:r.includes("array")))&&(t=isPrimitiveType(e.items,e.items.type)),t)}function isJsonLike(e){return-1!==e.search(/json/i)}function isFormUrlEncoded(e){return e===constants_1.MediaTypes.URL_ENCODED}function isMultipartFormData(e){return e===constants_1.MediaTypes.MULTIPART}function delimitedEncodeField(e,r,t){return Array.isArray(e)?e.map((e=>e.toString())).join(t):"object"==typeof e?Object.keys(e).map((r=>`${r}${t}${e[r]}`)).join(t):r+"="+e.toString()}function deepObjectEncodeField(e,r){return Array.isArray(e)?(console.warn("deepObject style cannot be used with array value:"+e.toString()),""):"object"==typeof e?Object.keys(e).map((t=>e[t]?`${r}[${t}]=${e[t]}`:void 0)).filter(Boolean).join("&"):(console.warn("deepObject style cannot be used with non-object value:"+e.toString()),"")}function serializeFormValue(e,r,t){const i="__redoc_param_name__",n=r?"*":"";return url_template_1.default.parse(`{?${i}${n}}`).expand({[i]:t}).substring(1).replace(/__redoc_param_name__/g,e)}function serializeSimpleValue(e,r){const t=e?"*":"",i="__redoc_param_name__",n=url_template_1.default.parse(`{${i}${t}}`);return decodeURIComponent(n.expand({[i]:r}))}function urlFormEncodePayload(e,r={}){if(Array.isArray(e))throw new Error("Payload must have fields: "+e.toString());return Object.keys(e).map((t=>{const i=e[t],{style:n="form",explode:o=!0}=r[t]||{};switch(n){case"form":return serializeFormValue(t,o,i);case"spaceDelimited":return delimitedEncodeField(i,t,"%20");case"pipeDelimited":return delimitedEncodeField(i,t,"|");case"deepObject":return deepObjectEncodeField(i,t);default:return console.warn("Incorrect or unsupported encoding style: "+n),""}})).join("&")}function serializePathParameter(e,r,t,i){const n=t?"*":"";let o="";"label"===r?o=".":"matrix"===r&&(o=";");const a="__redoc_param_name__";return url_template_1.default.parse(`{${o}${a}${n}}`).expand({[a]:i}).replace(/__redoc_param_name__/g,e)}function serializeQueryParameter(e,r,t,i){const n=n=>{switch(r){case"form":return serializeFormValue(e,t,n);case"spaceDelimited":return Array.isArray(n)||"object"==typeof n?t?serializeFormValue(e,t,n):delimitedEncodeField(i,e,"%20"):(console.warn("The style spaceDelimited is applicable to arrays or objects"),"");case"pipeDelimited":return Array.isArray(n)||"object"==typeof n?t?serializeFormValue(e,t,n):delimitedEncodeField(i,e,"|"):(console.warn("The style pipeDelimited is applicable to arrays or objects"),"");case"deepObject":return!t||Array.isArray(n)||"object"!=typeof n?(console.warn("The style deepObject is only applicable for objects with explode=true"),""):deepObjectEncodeField(n,e);case"simple":return serializeSimpleValue(t,i);default:return console.warn("Unexpected style for query: "+r),""}};return(0,helpers_1.isArrayOfObjects)(i)&&(i=(0,helpers_1.deleteEmptyArrayItem)(i).map((e=>n(e)))),n(i)}function serializeHeaderParameter(e,r,t){return"simple"===e?serializeSimpleValue(r,t):(console.warn("Unexpected style for header: "+e),"")}function serializeCookieParameter(e,r,t,i){return"form"===r?serializeFormValue(e,t,i):(console.warn("Unexpected style for cookie: "+r),"")}function serializeParameterValueWithMime(e,r){return isJsonLike(r)?JSON.stringify(e):(console.warn(`Parameter serialization as ${r} is not supported`),"")}function serializeParameterValue(e,r){const{name:t,style:i,explode:n=!1,serializationMime:o}=e;if(o)switch(e.in){case"path":case"header":return serializeParameterValueWithMime(r,o);case"cookie":case"query":return`${t}=${serializeParameterValueWithMime(r,o)}`;default:return console.warn("Unexpected parameter location: "+e.in),""}if(!i)return console.warn(`Missing style attribute or content for parameter ${t}`),"";switch(e.in){case"path":return serializePathParameter(t,i,n,r);case"query":return serializeQueryParameter(t,i,n,r);case"header":return serializeHeaderParameter(i,n,r);case"cookie":return serializeCookieParameter(t,i,n,r);default:return console.warn("Unexpected parameter location: "+e.in),""}}function langFromMime(e){return-1!==e.search(/xml/i)?"xml":"clike"}exports.detectType=detectType,exports.isPrimitiveType=isPrimitiveType,exports.isJsonLike=isJsonLike,exports.isFormUrlEncoded=isFormUrlEncoded,exports.isMultipartFormData=isMultipartFormData,exports.urlFormEncodePayload=urlFormEncodePayload,exports.serializeQueryParameter=serializeQueryParameter,exports.serializeParameterValueWithMime=serializeParameterValueWithMime,exports.serializeParameterValue=serializeParameterValue,exports.langFromMime=langFromMime;const DEFINITION_NAME_REGEX=/^#\/components\/(schemas|pathItems)\/([^/]+)$/;function isNamedDefinition(e){return DEFINITION_NAME_REGEX.test(e||"")}function getDefinitionName(e){var r;return null===(r=null==e?void 0:e.match(DEFINITION_NAME_REGEX))||void 0===r?void 0:r.pop()}function humanizeMultipleOfConstraint(e){if(void 0===e)return;const r=e.toString(10);return/^0\.0*1$/.test(r)?`decimal places <= ${r.split(".")[1].length}`:`multiple of ${r}`}function humanizeRangeConstraint(e,r,t){let i;return void 0!==r&&void 0!==t?i=r===t?`= ${r} ${e}`:`[ ${r} .. ${t} ] ${e}`:void 0!==t?i=`<= ${t} ${e}`:void 0!==r&&(i=1===r?"non-empty":`>= ${r} ${e}`),i}function humanizeNumberRange(e){var r,t;const i="number"==typeof e.exclusiveMinimum?Math.min(e.exclusiveMinimum,null!==(r=e.minimum)&&void 0!==r?r:1/0):e.minimum,n="number"==typeof e.exclusiveMaximum?Math.max(e.exclusiveMaximum,null!==(t=e.maximum)&&void 0!==t?t:-1/0):e.maximum,o="number"==typeof e.exclusiveMinimum||e.exclusiveMinimum,a="number"==typeof e.exclusiveMaximum||e.exclusiveMaximum;return void 0!==i&&void 0!==n?`${o?"( ":"[ "}${i} .. ${n}${a?" )":" ]"}`:void 0!==n?`${a?"< ":"<= "}${n}`:void 0!==i?`${o?"> ":">= "}${i}`:void 0}function humanizeConstraints(e){const r=[],t=humanizeRangeConstraint("characters",e.minLength,e.maxLength);void 0!==t&&r.push(t);const i=humanizeRangeConstraint("items",e.minItems,e.maxItems);void 0!==i&&r.push(i);const n=humanizeRangeConstraint(1===e.minProperties&&1===e.maxProperties?"property":"properties",e.minProperties,e.maxProperties);void 0!==n&&r.push(n);const o=humanizeMultipleOfConstraint(e.multipleOf);void 0!==o&&r.push(o);const a=humanizeNumberRange(e);return void 0!==a&&r.push(a),e.uniqueItems&&r.push("unique"),r}function sortByRequired(e,r=[]){const t=[],i=[],n=[];return e.forEach((e=>{e.required?r.includes(e.name)?i.push(e):n.push(e):t.push(e)})),i.sort(((e,t)=>r.indexOf(e.name)-r.indexOf(t.name))),[...i,...n,...t]}function mergeParams(e,r=[],t=[],{pathPointer:i,operationPointer:n}){const o={};t.forEach((r=>{({resolved:r}=e.deref(r)),o[r.name+"_"+r.in]=!0}));return[...r.map(((e,r)=>({paramOrRef:e,pointer:JsonPointer_1.JsonPointer.join(i,["parameters",String(r)])}))).filter((({paramOrRef:r})=>(({resolved:r}=e.deref(r)),!o[r.name+"_"+r.in]))),...t.map(((e,r)=>({paramOrRef:e,pointer:JsonPointer_1.JsonPointer.join(n,["parameters",String(r)])})))]}function normalizeServers(e,r){const t=void 0===e?(0,helpers_1.removeQueryStringAndHash)((()=>{if(!theme_1.IS_BROWSER)return globalThis.SSR_HOSTNAME||"";const e=window.location.href;return e.endsWith(".html")?(0,path_1.dirname)(e):e})()):(0,path_1.dirname)(e);return 0===r.length&&(r=[{url:"/"}]),r.map((e=>{return Object.assign(Object.assign({},e),{url:(r=e.url,(0,helpers_1.resolveUrl)(t,r)),description:e.description||""});var r}))}exports.isNamedDefinition=isNamedDefinition,exports.getDefinitionName=getDefinitionName,exports.humanizeNumberRange=humanizeNumberRange,exports.humanizeConstraints=humanizeConstraints,exports.sortByRequired=sortByRequired,exports.mergeParams=mergeParams,exports.normalizeServers=normalizeServers;const shortenHTTPVerb=e=>({delete:"del",options:"opts"}[e]||e);function isRedocExtension(e){return e in{"x-circular-ref":!0,"x-parentRefs":!0,"x-refsStack":!0,"x-code-samples":!0,"x-codeSamples":!0,"x-displayName":!0,"x-examples":!0,"x-ignoredHeaderParameters":!0,"x-logo":!0,"x-nullable":!0,"x-servers":!0,"x-tagGroups":!0,"x-traitTag":!0,"x-additionalPropertiesName":!0,"x-explicitMappingOnly":!0,"x-enumDescriptions":!0,"x-tokenEndpointAuthMethod":!0,"x-feedback":!0,"x-badges":!0}||e.startsWith("x-parsed-md-")}function extractExtensions(e,r){return Object.keys(e).filter((e=>!0===r?e.startsWith("x-")&&!isRedocExtension(e):e.startsWith("x-")&&r.indexOf(e)>-1)).reduce(((r,t)=>(r[t]=e[t],r)),{})}function pluralizeType(e){return e.split(" or ").map((e=>e.replace(/^(string|object|number|integer|array|boolean)s?( ?.*)/,"$1s$2"))).join(" or ")}function getContentWithLegacyExamples(e){let r=e.content;const t=e["x-examples"],i=e["x-example"];if(t){r=Object.assign({},r);for(const e of Object.keys(t)){const i=t[e];r[e]=Object.assign(Object.assign({},r[e]),{examples:i})}}else if(i){r=Object.assign({},r);for(const e of Object.keys(i)){const t=i[e];r[e]=Object.assign(Object.assign({},r[e]),{example:t})}}return r}exports.shortenHTTPVerb=shortenHTTPVerb,exports.isRedocExtension=isRedocExtension,exports.extractExtensions=extractExtensions,exports.pluralizeType=pluralizeType,exports.getContentWithLegacyExamples=getContentWithLegacyExamples;
2
2
  //# sourceMappingURL=openapi.js.map
@@ -2,5 +2,3 @@ import type { Location } from 'react-router-dom';
2
2
  export declare function pathIncludesLink(location: Location, link?: string): boolean;
3
3
  export declare function pathMatchedLink(location: Location, link?: string): boolean;
4
4
  export declare function normalizePath(path: string): string;
5
- export declare function normalizeHashPath(path: string): string;
6
- export declare function normalizeRoutePath(path: string): string;
package/lib/utils/path.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";function pathIncludesLink(t,e){return!!e&&decodeURIComponent(t.pathname+t.hash).includes(e)}function pathMatchedLink(t,e=""){return decodeURIComponent(t.pathname)===e||decodeURIComponent(t.hash)===e||decodeURIComponent(t.pathname+t.hash)===e}function normalizePath(t){return t.startsWith("/")||(t="/"+t),t.endsWith("/")&&(t=t.slice(0,-1)),t}function normalizeHashPath(t){return t.startsWith("#")?normalizePath(t):t}function normalizeRoutePath(t){return t.startsWith("/")?t.slice(1):t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.normalizeRoutePath=exports.normalizeHashPath=exports.normalizePath=exports.pathMatchedLink=exports.pathIncludesLink=void 0,exports.pathIncludesLink=pathIncludesLink,exports.pathMatchedLink=pathMatchedLink,exports.normalizePath=normalizePath,exports.normalizeHashPath=normalizeHashPath,exports.normalizeRoutePath=normalizeRoutePath;
1
+ "use strict";function pathIncludesLink(e,t){return!!t&&decodeURIComponent(e.pathname+e.hash).includes(decodeURIComponent(t.toLowerCase()))}function pathMatchedLink(e,t=""){const n=decodeURIComponent(t.toLowerCase());return decodeURIComponent(e.pathname)===n||decodeURIComponent(e.hash)===n||decodeURIComponent(e.pathname+e.hash)===n}function normalizePath(e){return e.startsWith("/")||(e="/"+e),e.endsWith("/")&&(e=e.slice(0,-1)),e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.normalizePath=exports.pathMatchedLink=exports.pathIncludesLink=void 0,exports.pathIncludesLink=pathIncludesLink,exports.pathMatchedLink=pathMatchedLink,exports.normalizePath=normalizePath;
2
2
  //# sourceMappingURL=path.js.map
@@ -0,0 +1,2 @@
1
+ import type { OpenAPIServer } from '../types';
2
+ export declare function replaceVariables(server: OpenAPIServer): string;
@@ -0,0 +1,2 @@
1
+ "use strict";function replaceVariables(e){let{url:r,variables:a}=e;if(a)for(const e in a){const l=a[e];if(l.default){const a=new RegExp(`{${e}}`,"g");r=r.replace(a,l.default)}}return r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.replaceVariables=void 0,exports.replaceVariables=replaceVariables;
2
+ //# sourceMappingURL=replaceVariables.js.map
@@ -1 +1 @@
1
- export declare function saveTextBeforeHeading(description: string | GenericObject, markdownHeadingsAnchorLevel: number): any;
1
+ export declare function saveTextBeforeHeading(description: string | GenericObject): any;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.saveTextBeforeHeading=void 0;const markdoc_1=require("@markdoc/markdoc"),typeGuards_1=require("./typeGuards"),utils_1=require("../services/utils");function saveTextBeforeHeading(e,r){if(!(0,typeGuards_1.isString)(e)&&(null==e?void 0:e.result)){const i=(0,utils_1.deepClone)(e),t=markdoc_1.Ast.fromJSON(JSON.stringify(null==i?void 0:i.result));if(Array.isArray(t))for(const e of t)modifyNodeByHeading(e,r);else modifyNodeByHeading(t,r);return i.result=JSON.stringify(t),i.raw=saveTextBeforeHeading(i.raw,r),i}const i=new RegExp(`^#{1,${r}}?\\s+`,"m"),t=e.search(i);return t>-1?e.substring(0,t):e}function modifyNodeByHeading(e,r){if(!Array.isArray(e.children))return;const i=e.children.findIndex((e=>"heading"===e.type&&e.attributes.level<=r));return-1===i||(e.children=e.children.slice(0,i)),e}exports.saveTextBeforeHeading=saveTextBeforeHeading;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.saveTextBeforeHeading=void 0;const markdoc_1=require("@markdoc/markdoc"),theme_1=require("@redocly/theme"),utils_1=require("../services/utils");function saveTextBeforeHeading(e){if(!(0,theme_1.isString)(e)&&(null==e?void 0:e.result)){const r=(0,utils_1.deepClone)(e),i=markdoc_1.Ast.fromJSON(JSON.stringify(null==r?void 0:r.result));if(Array.isArray(i))for(const e of i)modifyNodeByHeading(e);else modifyNodeByHeading(i);return r.result=JSON.stringify(i),r.raw=saveTextBeforeHeading(r.raw),r}const r=new RegExp("^#{1,6}?\\s+","m"),i=e.search(r);return i>-1?e.substring(0,i):e}function modifyNodeByHeading(e){if(!Array.isArray(e.children))return;const r=e.children.findIndex((e=>"heading"===e.type));return-1===r||(e.children=e.children.slice(0,r)),e}exports.saveTextBeforeHeading=saveTextBeforeHeading;
2
2
  //# sourceMappingURL=saveTextBeforeHeading.js.map
@@ -3,11 +3,7 @@ export declare function setSecurityDetailsVariants(name: string, variants: {
3
3
  label: string;
4
4
  details: SecurityDetails | string;
5
5
  }[]): void;
6
- export declare function getSecurityDetails(name: string): SecurityDetails & {
6
+ export declare function getSecurityDetails(name: string, environment?: Record<string, string>): SecurityDetails & {
7
7
  raw: string;
8
8
  };
9
9
  export declare function setSecurityDetails(name: string, details: SecurityDetails | string): void;
10
- export declare function getSecurityDetailsOptions(name: string, fieldName: string): Array<{
11
- label: string;
12
- value: string;
13
- }> | null;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSecurityDetailsOptions=exports.setSecurityDetails=exports.getSecurityDetails=exports.setSecurityDetailsVariants=void 0;const string_1=require("./string"),session_storage_1=require("./session-storage");function setSecurityDetailsVariants(s,e){s=(0,string_1.escapeFormId)(s),(0,session_storage_1.toSessionStorage)(`auth.${s}.variants`,JSON.stringify(e))}function getSecurityDetails(s){s=(0,string_1.escapeFormId)(s);const e=(0,session_storage_1.fromSessionStorage)(`auth.${s}`),t=(0,session_storage_1.fromSessionStorage)(`auth.${s}.token`);return{raw:e,password:(0,session_storage_1.fromSessionStorage)(`auth.${s}.password`),username:(0,session_storage_1.fromSessionStorage)(`auth.${s}.username`),token:t&&JSON.parse(t)||null,client_id:(0,session_storage_1.fromSessionStorage)(`auth.${s}.client_id`),client_secret:(0,session_storage_1.fromSessionStorage)(`auth.${s}.client_secret`),scopes:(0,session_storage_1.fromSessionStorage)(`auth.${s}.scopes`)}}function setSecurityDetails(s,e){s=(0,string_1.escapeFormId)(s),"string"==typeof e?(0,session_storage_1.toSessionStorage)("auth."+s,e):e&&((0,session_storage_1.toSessionStorage)(`auth.${s}.password`,e.password||""),(0,session_storage_1.toSessionStorage)(`auth.${s}.username`,e.username||""),(0,session_storage_1.toSessionStorage)(`auth.${s}.token`,e.token&&JSON.stringify(e.token)||""),(0,session_storage_1.toSessionStorage)(`auth.${s}.client_id`,e.client_id||""),(0,session_storage_1.toSessionStorage)(`auth.${s}.client_secret`,e.client_secret||""),(0,session_storage_1.toSessionStorage)(`auth.${s}.scopes`,e.scopes&&JSON.stringify(e.scopes)||""))}function getSecurityDetailsOptions(s,e){s=(0,string_1.escapeFormId)(s);const t=(0,session_storage_1.fromSessionStorage)(`auth.${s}.variants`);if(!t)return null;const o=JSON.parse(t);return o&&Array.isArray(o)?o.map((s=>s.details?""===e&&s.details&&"string"==typeof s.details?{label:s.label,value:s.details}:"object"==typeof s.details?{label:s.label,value:s.details[e]}:null:null)).filter(notNull):null}function notNull(s){return null!==s}exports.setSecurityDetailsVariants=setSecurityDetailsVariants,exports.getSecurityDetails=getSecurityDetails,exports.setSecurityDetails=setSecurityDetails,exports.getSecurityDetailsOptions=getSecurityDetailsOptions;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setSecurityDetails=exports.getSecurityDetails=exports.setSecurityDetailsVariants=void 0;const theme_1=require("@redocly/theme"),string_1=require("./string"),session_storage_1=require("./session-storage");function setSecurityDetailsVariants(e,s){e=(0,string_1.escapeFormId)(e),(0,session_storage_1.toSessionStorage)(`auth.${e}.variants`,JSON.stringify(s))}function getSecurityDetails(e,s={}){return{raw:s[e+theme_1.SecurityVariablesEnvSuffix.APIKey],password:s[e+theme_1.SecurityVariablesEnvSuffix.BasicAuthPassword],username:s[e+theme_1.SecurityVariablesEnvSuffix.BasicAuthUsername],token:s[e+theme_1.SecurityVariablesEnvSuffix.OAuth2Token]?{access_token:s[e+theme_1.SecurityVariablesEnvSuffix.OAuth2Token]}:void 0,client_id:s[e+theme_1.SecurityVariablesEnvSuffix.OAuth2ClientId],client_secret:s[e+theme_1.SecurityVariablesEnvSuffix.OAuth2ClientSecret],scopes:(0,session_storage_1.fromSessionStorage)(`auth.${e}.scopes`)}}function setSecurityDetails(e,s){e=(0,string_1.escapeFormId)(e),"string"==typeof s?(0,session_storage_1.toSessionStorage)("auth."+e,s):s&&((0,session_storage_1.toSessionStorage)(`auth.${e}.password`,s.password||""),(0,session_storage_1.toSessionStorage)(`auth.${e}.username`,s.username||""),(0,session_storage_1.toSessionStorage)(`auth.${e}.token`,s.token&&JSON.stringify(s.token)||""),(0,session_storage_1.toSessionStorage)(`auth.${e}.client_id`,s.client_id||""),(0,session_storage_1.toSessionStorage)(`auth.${e}.client_secret`,s.client_secret||""),(0,session_storage_1.toSessionStorage)(`auth.${e}.scopes`,s.scopes&&JSON.stringify(s.scopes)||""))}exports.setSecurityDetailsVariants=setSecurityDetailsVariants,exports.getSecurityDetails=getSecurityDetails,exports.setSecurityDetails=setSecurityDetails;
2
2
  //# sourceMappingURL=security-details.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fromSessionStorage=exports.toSessionStorage=void 0;const dom_1=require("./dom");function toSessionStorage(o,e){dom_1.IS_BROWSER&&window.sessionStorage.setItem("redoc."+o,e)}function fromSessionStorage(o){return dom_1.IS_BROWSER&&window.sessionStorage.getItem("redoc."+o)||""}exports.toSessionStorage=toSessionStorage,exports.fromSessionStorage=fromSessionStorage;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fromSessionStorage=exports.toSessionStorage=void 0;const theme_1=require("@redocly/theme");function toSessionStorage(e,o){theme_1.IS_BROWSER&&window.sessionStorage.setItem("redoc."+e,o)}function fromSessionStorage(e){return theme_1.IS_BROWSER&&window.sessionStorage.getItem("redoc."+e)||""}exports.toSessionStorage=toSessionStorage,exports.fromSessionStorage=fromSessionStorage;
2
2
  //# sourceMappingURL=session-storage.js.map
@@ -8,3 +8,4 @@ export declare function encodeBackSlashes(str: string): string;
8
8
  * the regex codes are referenced with https://gist.github.com/mathewbyrne/1280286
9
9
  */
10
10
  export declare function safeSlugify(value: string): string;
11
+ export declare function safeJsonParse<T = unknown>(str: string, fallback?: any): T;
@@ -1,2 +1,2 @@
1
- "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.safeSlugify=exports.encodeBackSlashes=exports.unescapeFormId=exports.escapeFormId=exports.strikethroughText=void 0;const slugify_1=__importDefault(require("slugify"));function strikethroughText(e){return e.split("").map((e=>e+"̵")).join("")}function escapeFormId(e){return e.replace(/[.[\]]/g,(e=>({".":"%2e","[":"%5b","]":"%5d"}[e]||"")))}function unescapeFormId(e){return e.replace(/%2e|%5b|%5d/g,(e=>({"%2e":".","%5b":"[","%5d":"]"}[e]||"")))}function encodeBackSlashes(e){return e.replace(/\\/g,"%5C")}function safeSlugify(e){return(0,slugify_1.default)(e)||e.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}exports.strikethroughText=strikethroughText,exports.escapeFormId=escapeFormId,exports.unescapeFormId=unescapeFormId,exports.encodeBackSlashes=encodeBackSlashes,exports.safeSlugify=safeSlugify;
1
+ "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.safeJsonParse=exports.safeSlugify=exports.encodeBackSlashes=exports.unescapeFormId=exports.escapeFormId=exports.strikethroughText=void 0;const slugify_1=__importDefault(require("slugify"));function strikethroughText(e){return e.split("").map((e=>e+"̵")).join("")}function escapeFormId(e){return e.replace(/[.[\]]/g,(e=>({".":"%2e","[":"%5b","]":"%5d"}[e]||"")))}function unescapeFormId(e){return e.replace(/%2e|%5b|%5d/g,(e=>({"%2e":".","%5b":"[","%5d":"]"}[e]||"")))}function encodeBackSlashes(e){return e.replace(/\\/g,"%5C")}function safeSlugify(e){return(0,slugify_1.default)(e)||e.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function safeJsonParse(e,r={}){try{return JSON.parse(e)}catch(e){return r}}exports.strikethroughText=strikethroughText,exports.escapeFormId=escapeFormId,exports.unescapeFormId=unescapeFormId,exports.encodeBackSlashes=encodeBackSlashes,exports.safeSlugify=safeSlugify,exports.safeJsonParse=safeJsonParse;
2
2
  //# sourceMappingURL=string.js.map
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import type { ReactElement } from 'react';
2
2
  import type { GroupModel } from '../../models';
3
- export declare function ApiInfo({ item: { infoDefinition: info }, }: {
3
+ export declare function ApiInfo({ item }: {
4
4
  item: GroupModel;
5
- }): JSX.Element | null;
5
+ }): ReactElement | null;
@@ -1,4 +1,4 @@
1
- import React from"react";import styled from"styled-components";import{useAtomValue}from"jotai";import{AfterOpenApiTitle,MarkdownWrapper}from"@redocly/theme";import{layoutAtom,showRightPanelToggleAtom}from"../../jotai/app";import{SamplesMiddlePanel,Row,Section,SamplesPanel}from"../common";import{ExternalDocumentation}from"../ExternalDocumentation";import{Markdown}from"../Markdown";import{DownloadButtonWithLabel}from"../Download";import{ApiHeader,InfoSpan,InfoSpanBox,InfoSpanBoxWrap}from"./styled";import{globalStoreAtom}from"../../jotai/store";import{saveTextBeforeHeading}from"../../utils/saveTextBeforeHeading";import{getValueFromMdParsedExtension}from"../../utils/helpers";import{ServerList}from"../Endpoint/ServerList";import{CodePanel}from"../Panel/CodePanel";import{normalizeServers}from"../../utils/openapi";import{mergeInMockServer}from"../../models/operation";import{RenderHook}from"../RenderHook";import{Metadata}from"./Metadata";export function ApiInfo({item:{infoDefinition:e}}){const{options:{markdownHeadingsAnchorLevel:t,hooks:a,hideDownloadButton:o,expandDefaultServerVariables:n,mockServer:r,hideInfoSection:l,hideInfoDescription:i,showMetadata:m},parser:{definition:c,definitionUrl:s}}=useAtomValue(globalStoreAtom),p=useAtomValue(showRightPanelToggleAtom),d=useAtomValue(layoutAtom);if(!e||l)return null;const f=i?null:saveTextBeforeHeading(getValueFromMdParsedExtension(e,"description")||"",t),u=getValueFromMdParsedExtension(e,"summary")||void 0,R=null==c?void 0:c.externalDocs,S=normalizeServers(s,mergeInMockServer(c.servers||[],r)),E=e.license&&React.createElement(InfoSpan,null,"License:"," ",e.license.identifier?e.license.identifier:React.createElement("a",{href:e.license.url},e.license.name))||null,v=e.contact&&e.contact.url&&React.createElement(InfoSpan,null,"URL: ",React.createElement("a",{href:e.contact.url},e.contact.url))||null,h=e.contact&&e.contact.email&&React.createElement(InfoSpan,null,e.contact.name||"E-mail",":"," ",React.createElement("a",{href:"mailto:"+e.contact.email},e.contact.email))||null,x=e.termsOfService&&React.createElement(InfoSpan,null,React.createElement("a",{href:e.termsOfService},"Terms of Service"))||null,A=e.version&&React.createElement("span",null,"(",e.version,")")||null;return React.createElement(Section,null,React.createElement(Row,{layout:d},React.createElement(SamplesMiddlePanel,{className:"api-info"},React.createElement(ApiHeader,null,e.title," ",A),React.createElement(RenderHook,{Hook:AfterOpenApiTitle||(null==a?void 0:a.AfterApiTitle),props:{info:e}}),!o&&React.createElement(DownloadButtonWithLabel,{wrapped:!0}),React.createElement(MarkdownWrapper,null,(e.license||e.contact||e.termsOfService)&&React.createElement(InfoSpanBoxWrap,null,React.createElement(InfoSpanBox,null,h," ",v," ",E," ",x))||null),u&&React.createElement(Markdown,{source:u,"data-role":"redoc-summary"}),f&&React.createElement(Markdown,{source:f,"data-role":"redoc-description"}),R&&React.createElement(ExternalDocumentation,{externalDocs:R}),m&&React.createElement(Metadata,{metadata:e["x-metadata"]})),p&&S.length?React.createElement(InfoSamplesPanel,{"data-cy":"samples-block"},React.createElement(CodePanel,{className:"panel-try-it",header:"Servers",expanded:!0},React.createElement(ServerList,{servers:S,path:"/",expandVariables:Boolean(n),hideHostname:!1}))):null))}const InfoSamplesPanel=styled(SamplesPanel)`
2
- margin-top: calc(var(--h1-font-size) * 1.5);
1
+ import{jsxs as _jsxs,jsx as _jsx}from"react/jsx-runtime";import{useAtomValue}from"jotai";import{AfterOpenApiTitle,LayoutVariant}from"@redocly/theme";import styled from"styled-components";import{layoutAtom}from"../../jotai/app";import{SamplesMiddlePanel,Row,SamplesPanel}from"../common";import{ExternalDocumentation}from"../ExternalDocumentation";import{Markdown}from"../Markdown";import{ApiHeader}from"./styled";import{globalStoreAtom}from"../../jotai/store";import{saveTextBeforeHeading}from"../../utils/saveTextBeforeHeading";import{getValueFromMdParsedExtension}from"../../utils/helpers";import{RenderHook}from"../RenderHook";import{Metadata}from"./Metadata";import{RightPanel}from"../RightPanel/RightPanel";export function ApiInfo({item:e}){const{options:{unstable_hooks:o,hideInfoMetadata:t},parser:{definition:a}}=useAtomValue(globalStoreAtom),r=useAtomValue(layoutAtom),i=e.infoDefinition;if(!i)return null;const n=saveTextBeforeHeading(getValueFromMdParsedExtension(i,"description")||""),s=getValueFromMdParsedExtension(i,"summary")||void 0,l=null==a?void 0:a.externalDocs,m=i.version&&_jsxs("span",{children:["(",i.version,")"]})||null,d=r===LayoutVariant.STACKED;return _jsxs(Row,{layout:r,children:[_jsxs(SamplesMiddlePanel,{fullWidth:!0,className:"api-info",isStacked:d,children:[_jsxs(ApiHeader,{children:[i.title," ",m]}),_jsx(RenderHook,{Hook:AfterOpenApiTitle||(null==o?void 0:o.AfterApiTitle),props:{info:i}}),s&&_jsx(Markdown,{source:s,"data-role":"redoc-summary"}),n&&_jsx(Markdown,{source:n,"data-role":"redoc-description"}),l&&_jsx(ExternalDocumentation,{externalDocs:l}),!t&&_jsx(Metadata,{metadata:i["x-metadata"]})]}),d&&_jsx(RightPanelContainer,{isStacked:d,children:_jsx(RightPanel,{item:e})})]})}const RightPanelContainer=styled(SamplesPanel)`
2
+ position: static;
3
3
  `;
4
4
  //# sourceMappingURL=ApiInfo.js.map
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import type { ReactElement } from 'react';
2
2
  import type { OpenAPIInfo } from '../../types';
3
3
  interface MetadataProps {
4
4
  metadata: OpenAPIInfo['x-metadata'];
5
5
  }
6
- export declare function Metadata({ metadata }: MetadataProps): JSX.Element | null;
6
+ export declare function Metadata({ metadata }: MetadataProps): ReactElement | null;
7
7
  export {};
@@ -1,2 +1,2 @@
1
- import React,{useMemo}from"react";import{MarkdownWrapper,H3}from"@redocly/theme";import{isNotNull}from"../../utils";const FILTER_OUT_KEYS=["title","description"];function metadataMap([e,t]){return FILTER_OUT_KEYS.includes(e)?null:Array.isArray(t)?{key:e,value:t.filter((e=>"object"!=typeof e)).join(", ")}:"object"==typeof t?null:{key:e,value:t}}export function Metadata({metadata:e}){const t=useMemo((()=>Object.entries(e||{}).map(metadataMap).filter(isNotNull)),[e]);return e?React.createElement(MarkdownWrapper,null,React.createElement(H3,null,"Metadata"),React.createElement("table",{className:"md"},React.createElement("thead",null,React.createElement("tr",null,React.createElement("th",{scope:"col"},"Key"),React.createElement("th",{scope:"col"},"Value"))),React.createElement("tbody",null,t.map((({key:e,value:t})=>React.createElement("tr",{key:e},React.createElement("td",null,e),React.createElement("td",null,`${t}`))))))):null}
1
+ import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{useMemo}from"react";import{Markdown as MarkdownWrapper,H3,isNotNull}from"@redocly/theme";const FILTER_OUT_KEYS=["title","description"];function metadataMap([e,t]){return FILTER_OUT_KEYS.includes(e)?null:Array.isArray(t)?{key:e,value:t.filter((e=>"object"!=typeof e)).join(", ")}:"object"==typeof t?null:{key:e,value:t}}export function Metadata({metadata:e}){const t=useMemo((()=>Object.entries(e||{}).map(metadataMap).filter(isNotNull)),[e]);return e?_jsxs(MarkdownWrapper,{children:[_jsx(H3,{children:"Metadata"}),_jsxs("table",{className:"md",children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{scope:"col",children:"Key"}),_jsx("th",{scope:"col",children:"Value"})]})}),_jsx("tbody",{children:t.map((({key:e,value:t})=>_jsxs("tr",{children:[_jsx("td",{children:e}),_jsx("td",{children:`${t}`})]},e)))})]})]}):null}
2
2
  //# sourceMappingURL=Metadata.js.map
@@ -1,6 +1,9 @@
1
- import styled from"styled-components";import{H1}from"@redocly/theme";const delimiterWidth=15;export const ApiHeader=styled(H1)`
1
+ import styled from"styled-components";import{H1,Markdown}from"@redocly/theme";const delimiterWidth=15;export const ApiHeader=styled(H1)`
2
2
  margin-top: 0;
3
- margin-bottom: 0.5em;
3
+ margin-bottom: 0;
4
+ & + ${Markdown} {
5
+ margin-top: var(--h1-margin-bottom);
6
+ }
4
7
  `;export const InfoSpan=styled.span`
5
8
  &::before {
6
9
  content: '|';
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import type { CallbackModel } from '../../models';
1
+ /// <reference types="react" />
2
+ import type { OperationModel } from '../../models';
3
3
  export interface CallbackSamplesProps {
4
- callbacks: CallbackModel[];
4
+ callback: OperationModel;
5
5
  }
6
- export declare const CallbackSamples: React.NamedExoticComponent<CallbackSamplesProps>;
6
+ export declare const CallbackSamples: import("react").NamedExoticComponent<CallbackSamplesProps>;
@@ -1,2 +1,16 @@
1
- import React,{memo}from"react";import{MimeLabel}from"../shared";import{CodePanel}from"../Panel";import{GenericChildrenSwitcher}from"../GenericChildrenSwitcher";import{DropdownOrLabel}from"../DropdownOrLabel";import{Dropdown}from"../common";import{DropdownWrapper}from"../../components";import{CallbackPayloadSample}from"./CallbackReqSamples";function CallbackSamplesComponent({callbacks:e}){if(!e||0===e.length)return null;const a=e.map((e=>e.operations.map((e=>e)))).reduce(((e,a)=>e.concat(a)),[]);if(!a.some((e=>e.hasSamples)))return null;const l=a.map(((e,a)=>({value:`${e.httpVerb.toUpperCase()}: ${e.name}`,idx:a})));return React.createElement(CodePanel,{className:"panel-callback-samples",header:"Callback payload samples"},React.createElement(GenericChildrenSwitcher,{items:a,renderDropdown:e=>React.createElement(DropdownWrapper,null,React.createElement(DropdownOrLabel,Object.assign({Label:MimeLabel,Dropdown:Dropdown,fullWidth:!0,variant:"dark"},e))),options:l},(e=>React.createElement(CallbackPayloadSample,{key:"callbackPayloadSample",callback:e}))))}export const CallbackSamples=memo(CallbackSamplesComponent);
1
+ import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{memo}from"react";import{PanelHeader}from"@redocly/theme";import styled from"styled-components";import{PayloadSamples}from"../PayloadSamples";import{ServerListDropdown}from"../ServerListDropdown";import{CodeBlockPanel}from"../common";function CallbackSamplesComponent({callback:e}){var o;if(!(null==e?void 0:e.hasSamples))return null;return _jsx(CodeBlockPanel,{className:"panel-callback-samples",header:()=>_jsxs(StyledPanelHeader,{isExpandable:!1,children:[_jsx(StyledServerListDropdown,{operation:e}),_jsx(PayloadTitle,{children:"Payload"})]}),isExpandable:!1,children:(null===(o=null==e?void 0:e.payload)||void 0===o?void 0:o.requestBodyContent)&&_jsx(PayloadSamples,{content:e.payload.requestBodyContent})})}export const CallbackSamples=memo(CallbackSamplesComponent);const PayloadTitle=styled.div`
2
+ font-size: var(--font-size-sm);
3
+ font-style: normal;
4
+ font-weight: var(--font-weight-regular);
5
+ line-height: var(--line-height-sm);
6
+ padding: 0 var(--spacing-xs);
7
+ border-radius: var(--border-radius);
8
+ background: var(--dropdown-bg-color);
9
+ color: var(--dropdown-text-color);
10
+ `,StyledPanelHeader=styled(PanelHeader)`
11
+ flex-wrap: nowrap;
12
+ `,StyledServerListDropdown=styled(ServerListDropdown)`
13
+ padding-right: var(--spacing-base);
14
+ min-width: 0;
15
+ `;
2
16
  //# sourceMappingURL=CallbackSamples.js.map
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import type { OperationModel } from '../../models';
3
3
  export interface CallbackDetailsProps {
4
4
  operation: OperationModel;
5
5
  }
6
- export declare const CallbackDetails: React.NamedExoticComponent<CallbackDetailsProps>;
6
+ export declare const CallbackDetails: import("react").NamedExoticComponent<CallbackDetailsProps>;
@@ -1,4 +1,20 @@
1
- import React,{memo}from"react";import styled from"styled-components";import{ExternalDocumentation}from"../ExternalDocumentation";import{Extensions}from"../Fields";import{Markdown}from"../Markdown";import{Parameters}from"../Parameters";import{ResponsesList}from"../Responses";import{SecurityRequirements}from"../SecurityRequirement";import{l}from"../../services";import{ContentPanel}from"../Panel";import{Endpoint}from"../Endpoint";function CallbackDetailsComponent({operation:e}){var t,n;const{description:r,externalDocs:o}=e,a=!(!r&&!o);return React.createElement(React.Fragment,null,a&&React.createElement(Description,null,void 0!==r&&React.createElement(Markdown,{source:r}),o&&React.createElement(ExternalDocumentation,{externalDocs:o})),React.createElement(Endpoint,{operation:e,compact:!0}),Object.keys(e.extensions||{}).length?React.createElement(Extensions,{extensions:e.extensions}):null,React.createElement(SecurityRequirements,{securities:e.security}),(null===(t=e.parameters)||void 0===t?void 0:t.length)||e.requestBody?React.createElement(ContentPanel,{className:"panel-request-schemas",header:l("request")},React.createElement(Parameters,{parameters:e.parameters,body:e.requestBody})):null,(null===(n=e.responses)||void 0===n?void 0:n.length)?React.createElement(ContentPanel,{className:"panel-response-schemas",header:l("callbackResponses")},React.createElement(ResponsesList,{responses:e.responses})):null)}export const CallbackDetails=memo(CallbackDetailsComponent);const Description=styled.div`
2
- margin-bottom: calc(var(--spacing-unit) * 3);
1
+ import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from"react/jsx-runtime";import{memo,useCallback}from"react";import styled from"styled-components";import{LinkIcon}from"@redocly/theme";import{OperationResponseList}from"../Responses";import{RequestDetails}from"../Request/RequestDetails";import{LinkToField}from"../common/LinkToField";import{makeDeepLink}from"../../services";function CallbackDetailsComponent({operation:e}){var i;const t=useCallback((i=>_jsxs(Title,{children:[_jsx(LinkToField,{to:makeDeepLink(e.id,`${e.callbackId}/callback-response&c=${i.key}`)}),"Callback Response"]})),[e.callbackId,e.id]);return _jsxs(_Fragment,{children:[_jsx(RequestDetails,{operation:e,title:_jsxs(_Fragment,{children:[_jsx(LinkToField,{to:makeDeepLink(e.id,`${e.callbackId}/callback-request`)}),"Callback Request"]})}),(null===(i=e.responses)||void 0===i?void 0:i.length)?_jsx(OperationResponseList,{responses:e.responses,operationId:e.id,operationPointer:e.pointer,callbackId:e.callbackId,renderTitle:t}):null]})}export const CallbackDetails=memo(CallbackDetailsComponent);const Title=styled.h4`
2
+ position: relative;
3
+ font-size: var(--font-size-lg);
4
+ font-weight: var(--h4-font-weight);
5
+ line-height: var(--h4-line-height);
6
+ padding: 0;
7
+ color: var(--h4-text-color);
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: space-between;
11
+ margin: 0 var(--spacing-sm) 0 0;
12
+
13
+ :hover {
14
+ ${LinkIcon} {
15
+ opacity: 1;
16
+ visibility: visible;
17
+ }
18
+ }
3
19
  `;
4
20
  //# sourceMappingURL=CallbackDetails.js.map
@@ -1,6 +1,8 @@
1
- /// <reference types="react" />
1
+ import type { ReactElement } from 'react';
2
2
  import type { OperationModel } from '../../models';
3
3
  export interface CallbackOperationProps {
4
4
  operation: OperationModel;
5
+ onExpand: (a: OperationModel | null) => void;
6
+ selectedCallback: OperationModel | null;
5
7
  }
6
- export declare const CallbackOperation: ({ operation }: CallbackOperationProps) => JSX.Element;
8
+ export declare const CallbackOperation: ({ operation, operation: { callbackId }, onExpand, selectedCallback, }: CallbackOperationProps) => ReactElement;
@@ -1,2 +1,15 @@
1
- import React from"react";import{useLocation}from"react-router-dom";import{CallbackPanel}from"../Panel";import{CallbackDetails}from"./CallbackDetails";import{CallbackSummary}from"./CallbackSummary";import{pathIncludesLink}from"../../utils";export const CallbackOperation=({operation:a})=>{const e=useLocation(),l=pathIncludesLink(e,`cb=${a.callbackId}`);return React.createElement(CallbackPanel,{header:({expanded:e,toggle:l})=>React.createElement(CallbackSummary,{operation:a,toggle:l,expanded:e}),expanded:Boolean(l),className:"panel-response-callback"},React.createElement(CallbackDetails,{operation:a}))};
1
+ import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import styled from"styled-components";import{useLocation}from"react-router-dom";import{CallbackPanel}from"../Panel";import{CallbackDetails}from"./CallbackDetails";import{CallbackSummary}from"./CallbackSummary";import{pathIncludesLink}from"../../utils";export const CallbackOperation=({operation:a,operation:{callbackId:l},onExpand:e,selectedCallback:o})=>{const t=useLocation();return _jsx(CallbackPanel,{header:({expanded:l,toggle:o})=>_jsx(CallbackSummary,{callback:a,toggle:t=>{null==o||o(t),null==e||e(l?null:a)},expanded:l}),expanded:(null==o?void 0:o.callbackId)===l||pathIncludesLink(t,l),className:"panel-response-callback",children:_jsxs(CallbackDetailsWrap,{children:[_jsx(CallbackDetails,{operation:a}),_jsx(LeftBorder,{})]})})};const CallbackDetailsWrap=styled.div`
2
+ position: relative;
3
+ .property:last-child {
4
+ border-bottom: none;
5
+ padding-bottom: 0;
6
+ }
7
+ `,LeftBorder=styled.div`
8
+ position: absolute;
9
+ height: calc(100% + 14px);
10
+ border-left: 1px solid var(--border-color-primary);
11
+ top: -14px;
12
+ left: -12px;
13
+ z-index: 0;
14
+ `;
2
15
  //# sourceMappingURL=CallbackOperation.js.map
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import type { ReactElement } from 'react';
2
2
  import type { PanelHeaderProps } from '@redocly/theme';
3
3
  import type { OperationModel } from '../../models';
4
4
  export interface CallbackTitleProps extends PanelHeaderProps {
5
- operation: OperationModel;
5
+ callback: OperationModel;
6
6
  }
7
- export declare function CallbackSummary({ expanded, toggle, operation: { name, httpVerb, deprecated }, }: CallbackTitleProps): JSX.Element;
7
+ export declare function CallbackSummary({ expanded, toggle, callback: { name, httpVerb, deprecated, callbackId, id }, }: CallbackTitleProps): ReactElement;