@redocly/reference-docs 2.14.1 → 3.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (575) hide show
  1. package/lib/components/Endpoint/CopyLink.d.ts +1 -1
  2. package/lib/components/Endpoint/CopyLink.js +1 -1
  3. package/lib/components/Endpoint/Path.d.ts +2 -3
  4. package/lib/components/Endpoint/Path.js +1 -1
  5. package/lib/components/Endpoint/ServerItem.d.ts +1 -1
  6. package/lib/components/Endpoint/ServerItem.js +1 -1
  7. package/lib/components/Endpoint/ServerUrl.d.ts +1 -1
  8. package/lib/components/Endpoint/ServerUrl.js +1 -1
  9. package/lib/components/Endpoint/Summary.js +1 -1
  10. package/lib/components/NextSectionButton.d.ts +4 -2
  11. package/lib/components/NextSectionButton.js +1 -1
  12. package/lib/components/Overlay.js +1 -1
  13. package/lib/components/Panel/CallbackPanel.d.ts +1 -1
  14. package/lib/components/Panel/CallbackPanel.js +1 -1
  15. package/lib/components/Panel/CodeHeader.d.ts +1 -1
  16. package/lib/components/Panel/CodeHeader.js +1 -1
  17. package/lib/components/Panel/CodePanel.d.ts +1 -1
  18. package/lib/components/Panel/CodePanel.js +1 -1
  19. package/lib/components/Panel/ContentPanel.d.ts +1 -1
  20. package/lib/components/Panel/ContentPanel.js +1 -1
  21. package/lib/components/Panel/DarkHeader.d.ts +1 -1
  22. package/lib/components/Panel/DarkHeader.js +1 -1
  23. package/lib/components/Panel/Header.d.ts +1 -1
  24. package/lib/components/Panel/Header.js +1 -1
  25. package/lib/components/Panel/Panel.d.ts +1 -1
  26. package/lib/components/Panel/Panel.js +1 -1
  27. package/lib/components/Panel/PanelBody.d.ts +1 -1
  28. package/lib/components/Panel/PanelBody.js +1 -1
  29. package/lib/components/Panel/ResponsePanel.d.ts +1 -1
  30. package/lib/components/Panel/ResponsePanel.js +1 -1
  31. package/lib/components/Panel/ScrollableContentPanel.d.ts +1 -1
  32. package/lib/components/Panel/ScrollableContentPanel.js +1 -1
  33. package/lib/components/Panel/Title.d.ts +1 -1
  34. package/lib/components/Panel/Title.js +1 -1
  35. package/lib/components/Panel/Trigger.d.ts +1 -1
  36. package/lib/components/Panel/Trigger.js +1 -1
  37. package/lib/components/ProProviders.d.ts +2 -8
  38. package/lib/components/ProProviders.js +1 -1
  39. package/lib/components/RedoclyReferenceDocs.d.ts +1 -1
  40. package/lib/components/RedoclyReferenceDocs.js +1 -1
  41. package/lib/components/Samples/ExampleSwitch.d.ts +2 -1
  42. package/lib/components/Samples/ExampleSwitch.js +1 -1
  43. package/lib/components/Samples/LoadingWrapper.d.ts +1 -1
  44. package/lib/components/Samples/LoadingWrapper.js +1 -1
  45. package/lib/components/Search/MenuItemProSearch.d.ts +1 -1
  46. package/lib/components/Search/MenuItemProSearch.js +1 -1
  47. package/lib/components/Search/styled.d.ts +10 -10
  48. package/lib/components/Search/styled.js +1 -1
  49. package/lib/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +1 -1
  50. package/lib/components/Tabs/CollapsingTabs/CollapsingTab.js +1 -1
  51. package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +1 -1
  52. package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.js +1 -1
  53. package/lib/components/Tabs/Tab.d.ts +1 -1
  54. package/lib/components/Tabs/Tab.js +1 -1
  55. package/lib/components/Tabs/TabList.d.ts +1 -1
  56. package/lib/components/Tabs/TabList.js +1 -1
  57. package/lib/components/Tabs/TabPanel.d.ts +1 -1
  58. package/lib/components/Tabs/TabPanel.js +1 -1
  59. package/lib/components/Tabs/index.d.ts +0 -1
  60. package/lib/components/Tabs/index.js +1 -1
  61. package/lib/components/VersionSwitcher.js +1 -1
  62. package/lib/components/common/Checkbox.d.ts +1 -1
  63. package/lib/components/common/Checkbox.js +1 -1
  64. package/lib/components/common/CheckboxList.js +1 -1
  65. package/lib/components/common/Dropdown/Dropdown.js +1 -1
  66. package/lib/components/common/Dropdown/styled.d.ts +9 -8
  67. package/lib/components/common/Dropdown/styled.js +1 -1
  68. package/lib/components/common/LinearProgress.js +1 -1
  69. package/lib/components/common/TextField.d.ts +5 -2
  70. package/lib/components/common/TextField.js +1 -1
  71. package/lib/components/common/form.d.ts +12 -12
  72. package/lib/components/common/form.js +1 -1
  73. package/lib/components/console/ActionPanel.js +1 -1
  74. package/lib/components/console/AuthPanel/AuthPanel.d.ts +13 -0
  75. package/lib/components/console/AuthPanel/AuthPanel.js +2 -0
  76. package/lib/components/console/AuthPanel/index.d.ts +2 -0
  77. package/lib/components/console/AuthPanel/index.js +2 -0
  78. package/lib/components/console/AuthPanel/types.d.ts +14 -0
  79. package/lib/components/console/AuthPanel/types.js +2 -0
  80. package/lib/components/console/CodemirrorInput.js +1 -1
  81. package/lib/components/console/Console.js +1 -1
  82. package/lib/components/console/ConsoleLazy.js +1 -1
  83. package/lib/components/console/ConsoleTabs/ConsoleTabs.d.ts +7 -0
  84. package/lib/components/console/ConsoleTabs/ConsoleTabs.js +2 -0
  85. package/lib/components/console/ConsoleTabs/index.d.ts +2 -0
  86. package/lib/components/console/ConsoleTabs/index.js +2 -0
  87. package/lib/components/console/ConsoleTabs/styled.d.ts +5 -0
  88. package/lib/components/console/ConsoleTabs/styled.js +2 -0
  89. package/lib/components/console/OAuth2Flow.js +1 -1
  90. package/lib/components/console/OAuth2TokenInput.js +1 -1
  91. package/lib/components/console/OpenIDConnect.js +1 -1
  92. package/lib/components/console/OperationParameters.js +1 -1
  93. package/lib/components/console/ParameterDropdown.js +1 -1
  94. package/lib/components/console/RequestBody.js +1 -1
  95. package/lib/components/console/RequestBodyForm.js +1 -1
  96. package/lib/components/console/RequestMimeLabel.d.ts +1 -1
  97. package/lib/components/console/RequestMimeLabel.js +1 -1
  98. package/lib/components/console/ResponseBody.js +1 -1
  99. package/lib/components/console/ResponsePanel.d.ts +2 -2
  100. package/lib/components/console/ResponsePanel.js +1 -1
  101. package/lib/components/console/ServerDropdown.js +1 -1
  102. package/lib/components/console/ServerVariable.js +1 -1
  103. package/lib/components/console/styled.d.ts +16 -0
  104. package/lib/components/console/styled.js +2 -0
  105. package/lib/components/console/utils.d.ts +3 -1
  106. package/lib/components/console/utils.js +1 -1
  107. package/lib/components/index.d.ts +0 -2
  108. package/lib/components/index.js +1 -1
  109. package/lib/components/pluggable/PullRight.d.ts +2 -4
  110. package/lib/components/pluggable/PullRight.js +1 -1
  111. package/lib/components/pluggable/RedocRequestBody.js +1 -1
  112. package/lib/components/pluggable/RedocResponse.js +1 -1
  113. package/lib/components/pluggable/styled.components.d.ts +3 -4
  114. package/lib/components/pluggable/styled.components.js +1 -1
  115. package/lib/components/shared/HttpVerb.d.ts +1 -1
  116. package/lib/components/shared/HttpVerb.js +1 -1
  117. package/lib/components/shared/MimeLabel.d.ts +1 -1
  118. package/lib/components/shared/MimeLabel.js +1 -1
  119. package/lib/components/shared/NoSampleLabel.d.ts +2 -2
  120. package/lib/components/shared/NoSampleLabel.js +1 -1
  121. package/lib/components/shared/SelectOnClick.js +1 -1
  122. package/lib/components/shared/index.d.ts +0 -3
  123. package/lib/components/shared/index.js +1 -1
  124. package/lib/components/styled.elements.d.ts +7 -9
  125. package/lib/components/styled.elements.js +1 -1
  126. package/lib/components/types.d.ts +15 -0
  127. package/lib/components/types.js +2 -0
  128. package/lib/constants.d.ts +2 -0
  129. package/lib/constants.js +2 -0
  130. package/lib/redoc-lib/src/common-elements/Download.js +1 -1
  131. package/lib/redoc-lib/src/common-elements/LinkToField.d.ts +1 -1
  132. package/lib/redoc-lib/src/common-elements/LinkToField.js +1 -1
  133. package/lib/redoc-lib/src/common-elements/fields-layout.d.ts +9 -9
  134. package/lib/redoc-lib/src/common-elements/fields-layout.js +1 -1
  135. package/lib/redoc-lib/src/common-elements/fields.d.ts +13 -13
  136. package/lib/redoc-lib/src/common-elements/fields.js +1 -1
  137. package/lib/redoc-lib/src/common-elements/headers.d.ts +5 -6
  138. package/lib/redoc-lib/src/common-elements/headers.js +1 -1
  139. package/lib/redoc-lib/src/common-elements/icons.d.ts +14 -12
  140. package/lib/redoc-lib/src/common-elements/icons.js +1 -1
  141. package/lib/redoc-lib/src/common-elements/index.d.ts +0 -2
  142. package/lib/redoc-lib/src/common-elements/index.js +1 -1
  143. package/lib/redoc-lib/src/common-elements/linkify.js +1 -1
  144. package/lib/redoc-lib/src/common-elements/mixins.js +1 -1
  145. package/lib/redoc-lib/src/common-elements/panels.d.ts +4 -5
  146. package/lib/redoc-lib/src/common-elements/panels.js +1 -1
  147. package/lib/redoc-lib/src/common-elements/perfect-scrollbar.js +1 -1
  148. package/lib/redoc-lib/src/common-elements/schema.d.ts +7 -7
  149. package/lib/redoc-lib/src/common-elements/schema.js +1 -1
  150. package/lib/redoc-lib/src/common-elements/shelfs.d.ts +2 -2
  151. package/lib/redoc-lib/src/common-elements/shelfs.js +1 -1
  152. package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.js +1 -1
  153. package/lib/redoc-lib/src/components/ApiInfo/styled.elements.d.ts +5 -5
  154. package/lib/redoc-lib/src/components/ApiInfo/styled.elements.js +1 -1
  155. package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +1 -1
  156. package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +1 -1
  157. package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +0 -1
  158. package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +1 -1
  159. package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.js +1 -1
  160. package/lib/redoc-lib/src/components/Callbacks/CallbackSummary.js +1 -1
  161. package/lib/redoc-lib/src/components/Callbacks/CallbackTitle.d.ts +1 -1
  162. package/lib/redoc-lib/src/components/Callbacks/CallbackTitle.js +1 -1
  163. package/lib/redoc-lib/src/components/ContentItems/ContentItems.d.ts +1 -1
  164. package/lib/redoc-lib/src/components/ContentItems/ContentItems.js +1 -1
  165. package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.js +1 -1
  166. package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +1 -1
  167. package/lib/redoc-lib/src/components/ErrorBoundary.js +1 -1
  168. package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +1 -1
  169. package/lib/redoc-lib/src/components/Fields/EnumValues.js +1 -1
  170. package/lib/redoc-lib/src/components/Fields/Extensions.js +1 -1
  171. package/lib/redoc-lib/src/components/Fields/FieldContstraints.d.ts +1 -3
  172. package/lib/redoc-lib/src/components/Fields/FieldContstraints.js +1 -1
  173. package/lib/redoc-lib/src/components/Fields/FieldDetails.js +1 -1
  174. package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +1 -1
  175. package/lib/redoc-lib/src/components/Loading/Loading.d.ts +2 -4
  176. package/lib/redoc-lib/src/components/Loading/Loading.js +1 -1
  177. package/lib/redoc-lib/src/components/Loading/Spinner.svg.d.ts +4 -2
  178. package/lib/redoc-lib/src/components/Loading/Spinner.svg.js +1 -1
  179. package/lib/redoc-lib/src/components/Markdown/styled.elements.d.ts +6 -7
  180. package/lib/redoc-lib/src/components/Markdown/styled.elements.js +1 -1
  181. package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
  182. package/lib/redoc-lib/src/components/Operation/Operation.js +1 -1
  183. package/lib/redoc-lib/src/components/Parameters/Parameters.js +1 -1
  184. package/lib/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +1 -1
  185. package/lib/redoc-lib/src/components/Parameters/ParametersGroup.js +1 -1
  186. package/lib/redoc-lib/src/components/PayloadSamples/Example.js +1 -1
  187. package/lib/redoc-lib/src/components/PayloadSamples/ExampleValue.d.ts +1 -1
  188. package/lib/redoc-lib/src/components/PayloadSamples/ExampleValue.js +1 -1
  189. package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +1 -1
  190. package/lib/redoc-lib/src/components/PayloadSamples/styled.d.ts +3 -0
  191. package/lib/redoc-lib/src/components/PayloadSamples/styled.js +2 -0
  192. package/lib/redoc-lib/src/components/RequestSamples/CodeSample.js +1 -1
  193. package/lib/redoc-lib/src/components/Responses/ResponseDetails.js +1 -1
  194. package/lib/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +1 -1
  195. package/lib/redoc-lib/src/components/Responses/ResponseHeaders.js +1 -1
  196. package/lib/redoc-lib/src/components/Responses/styled.elements.d.ts +1 -1
  197. package/lib/redoc-lib/src/components/Responses/styled.elements.js +1 -1
  198. package/lib/redoc-lib/src/components/Schema/ArraySchema.js +1 -1
  199. package/lib/redoc-lib/src/components/Schema/OneOfSchema.js +1 -1
  200. package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +1 -1
  201. package/lib/redoc-lib/src/components/SearchBox/SearchBox.js +1 -1
  202. package/lib/redoc-lib/src/components/SearchBox/styled.d.ts +6 -0
  203. package/lib/redoc-lib/src/components/SearchBox/styled.js +2 -0
  204. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +1 -1
  205. package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +1 -1
  206. package/lib/redoc-lib/src/components/SideMenu/MenuItem.d.ts +2 -2
  207. package/lib/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
  208. package/lib/redoc-lib/src/components/SideMenu/styled.elements.d.ts +7 -7
  209. package/lib/redoc-lib/src/components/SideMenu/styled.elements.js +1 -1
  210. package/lib/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +3 -0
  211. package/lib/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.js +2 -0
  212. package/lib/redoc-lib/src/components/StickySidebar/ChevronSvg.js +1 -1
  213. package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.js +1 -1
  214. package/lib/redoc-lib/src/components/index.d.ts +2 -4
  215. package/lib/redoc-lib/src/components/index.js +1 -1
  216. package/lib/redoc-lib/src/index.d.ts +3 -4
  217. package/lib/redoc-lib/src/index.js +1 -1
  218. package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +13 -5
  219. package/lib/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
  220. package/lib/redoc-lib/src/services/index.d.ts +0 -1
  221. package/lib/redoc-lib/src/services/index.js +1 -1
  222. package/lib/redoc-lib/src/services/models/ApiInfo.d.ts +2 -1
  223. package/lib/redoc-lib/src/services/models/ApiInfo.js +1 -1
  224. package/lib/redoc-lib/src/theme.d.ts +0 -229
  225. package/lib/redoc-lib/src/theme.js +1 -1
  226. package/lib/redoc-lib/src/types/open-api.d.ts +7 -0
  227. package/lib/redoc-lib/src/utils/css-variables.d.ts +2 -0
  228. package/lib/redoc-lib/src/utils/css-variables.js +2 -0
  229. package/lib/redoc-lib/src/utils/index.d.ts +3 -0
  230. package/lib/redoc-lib/src/utils/index.js +1 -1
  231. package/lib/redoc-lib/src/utils/media-css.d.ts +7 -0
  232. package/lib/redoc-lib/src/utils/media-css.js +1 -1
  233. package/lib/redoc-lib/src/utils/theme-helpers.d.ts +3 -0
  234. package/lib/redoc-lib/src/utils/theme-helpers.js +2 -0
  235. package/lib/services/ProStore.d.ts +10 -4
  236. package/lib/services/ProStore.js +1 -1
  237. package/lib/services/code-samples/httpsnippet/targets/index.d.ts +1 -1
  238. package/lib/services/code-samples/httpsnippet/targets/javascript/index.d.ts +1 -1
  239. package/lib/services/types.d.ts +0 -3
  240. package/lib-esm/components/Endpoint/CopyLink.d.ts +1 -1
  241. package/lib-esm/components/Endpoint/CopyLink.js +1 -1
  242. package/lib-esm/components/Endpoint/Path.d.ts +2 -3
  243. package/lib-esm/components/Endpoint/Path.js +1 -1
  244. package/lib-esm/components/Endpoint/ServerItem.d.ts +1 -1
  245. package/lib-esm/components/Endpoint/ServerItem.js +1 -1
  246. package/lib-esm/components/Endpoint/ServerUrl.d.ts +1 -1
  247. package/lib-esm/components/Endpoint/ServerUrl.js +1 -1
  248. package/lib-esm/components/Endpoint/Summary.js +1 -1
  249. package/lib-esm/components/NextSectionButton.d.ts +4 -2
  250. package/lib-esm/components/NextSectionButton.js +1 -1
  251. package/lib-esm/components/Overlay.js +1 -1
  252. package/lib-esm/components/Panel/CallbackPanel.d.ts +1 -1
  253. package/lib-esm/components/Panel/CallbackPanel.js +1 -1
  254. package/lib-esm/components/Panel/CodeHeader.d.ts +1 -1
  255. package/lib-esm/components/Panel/CodeHeader.js +1 -1
  256. package/lib-esm/components/Panel/CodePanel.d.ts +1 -1
  257. package/lib-esm/components/Panel/CodePanel.js +1 -1
  258. package/lib-esm/components/Panel/ContentPanel.d.ts +1 -1
  259. package/lib-esm/components/Panel/ContentPanel.js +1 -1
  260. package/lib-esm/components/Panel/DarkHeader.d.ts +1 -1
  261. package/lib-esm/components/Panel/DarkHeader.js +1 -1
  262. package/lib-esm/components/Panel/Header.d.ts +1 -1
  263. package/lib-esm/components/Panel/Header.js +1 -1
  264. package/lib-esm/components/Panel/Panel.d.ts +1 -1
  265. package/lib-esm/components/Panel/Panel.js +1 -1
  266. package/lib-esm/components/Panel/PanelBody.d.ts +1 -1
  267. package/lib-esm/components/Panel/PanelBody.js +1 -1
  268. package/lib-esm/components/Panel/ResponsePanel.d.ts +1 -1
  269. package/lib-esm/components/Panel/ResponsePanel.js +1 -1
  270. package/lib-esm/components/Panel/ScrollableContentPanel.d.ts +1 -1
  271. package/lib-esm/components/Panel/ScrollableContentPanel.js +1 -1
  272. package/lib-esm/components/Panel/Title.d.ts +1 -1
  273. package/lib-esm/components/Panel/Title.js +1 -1
  274. package/lib-esm/components/Panel/Trigger.d.ts +1 -1
  275. package/lib-esm/components/Panel/Trigger.js +1 -1
  276. package/lib-esm/components/ProProviders.d.ts +2 -8
  277. package/lib-esm/components/ProProviders.js +1 -1
  278. package/lib-esm/components/RedoclyReferenceDocs.d.ts +1 -1
  279. package/lib-esm/components/RedoclyReferenceDocs.js +1 -1
  280. package/lib-esm/components/Samples/ExampleSwitch.d.ts +2 -1
  281. package/lib-esm/components/Samples/ExampleSwitch.js +1 -1
  282. package/lib-esm/components/Samples/LoadingWrapper.d.ts +1 -1
  283. package/lib-esm/components/Samples/LoadingWrapper.js +1 -1
  284. package/lib-esm/components/Search/MenuItemProSearch.d.ts +1 -1
  285. package/lib-esm/components/Search/MenuItemProSearch.js +1 -1
  286. package/lib-esm/components/Search/styled.d.ts +10 -10
  287. package/lib-esm/components/Search/styled.js +1 -1
  288. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +1 -1
  289. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.js +1 -1
  290. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +1 -1
  291. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.js +1 -1
  292. package/lib-esm/components/Tabs/Tab.d.ts +1 -1
  293. package/lib-esm/components/Tabs/Tab.js +1 -1
  294. package/lib-esm/components/Tabs/TabList.d.ts +1 -1
  295. package/lib-esm/components/Tabs/TabList.js +1 -1
  296. package/lib-esm/components/Tabs/TabPanel.d.ts +1 -1
  297. package/lib-esm/components/Tabs/TabPanel.js +1 -1
  298. package/lib-esm/components/Tabs/index.d.ts +0 -1
  299. package/lib-esm/components/Tabs/index.js +1 -1
  300. package/lib-esm/components/VersionSwitcher.js +1 -1
  301. package/lib-esm/components/common/Checkbox.d.ts +1 -1
  302. package/lib-esm/components/common/Checkbox.js +1 -1
  303. package/lib-esm/components/common/CheckboxList.js +1 -1
  304. package/lib-esm/components/common/Dropdown/Dropdown.js +1 -1
  305. package/lib-esm/components/common/Dropdown/styled.d.ts +9 -8
  306. package/lib-esm/components/common/Dropdown/styled.js +1 -1
  307. package/lib-esm/components/common/LinearProgress.js +1 -1
  308. package/lib-esm/components/common/TextField.d.ts +5 -2
  309. package/lib-esm/components/common/TextField.js +1 -1
  310. package/lib-esm/components/common/form.d.ts +12 -12
  311. package/lib-esm/components/common/form.js +1 -1
  312. package/lib-esm/components/console/ActionPanel.js +1 -1
  313. package/lib-esm/components/console/AuthPanel/AuthPanel.d.ts +13 -0
  314. package/lib-esm/components/console/AuthPanel/AuthPanel.js +2 -0
  315. package/lib-esm/components/console/AuthPanel/index.d.ts +2 -0
  316. package/lib-esm/components/console/AuthPanel/index.js +2 -0
  317. package/lib-esm/components/console/AuthPanel/types.d.ts +14 -0
  318. package/lib-esm/components/console/AuthPanel/types.js +2 -0
  319. package/lib-esm/components/console/CodemirrorInput.js +1 -1
  320. package/lib-esm/components/console/Console.js +1 -1
  321. package/lib-esm/components/console/ConsoleLazy.js +1 -1
  322. package/lib-esm/components/console/ConsoleTabs/ConsoleTabs.d.ts +7 -0
  323. package/lib-esm/components/console/ConsoleTabs/ConsoleTabs.js +2 -0
  324. package/lib-esm/components/console/ConsoleTabs/index.d.ts +2 -0
  325. package/lib-esm/components/console/ConsoleTabs/index.js +2 -0
  326. package/lib-esm/components/console/ConsoleTabs/styled.d.ts +5 -0
  327. package/lib-esm/components/console/ConsoleTabs/styled.js +2 -0
  328. package/lib-esm/components/console/OAuth2Flow.js +1 -1
  329. package/lib-esm/components/console/OAuth2TokenInput.js +1 -1
  330. package/lib-esm/components/console/OpenIDConnect.js +1 -1
  331. package/lib-esm/components/console/OperationParameters.js +1 -1
  332. package/lib-esm/components/console/ParameterDropdown.js +1 -1
  333. package/lib-esm/components/console/RequestBody.js +1 -1
  334. package/lib-esm/components/console/RequestBodyForm.js +1 -1
  335. package/lib-esm/components/console/RequestMimeLabel.d.ts +1 -1
  336. package/lib-esm/components/console/RequestMimeLabel.js +1 -1
  337. package/lib-esm/components/console/ResponseBody.js +1 -1
  338. package/lib-esm/components/console/ResponsePanel.d.ts +2 -2
  339. package/lib-esm/components/console/ResponsePanel.js +1 -1
  340. package/lib-esm/components/console/ServerDropdown.js +1 -1
  341. package/lib-esm/components/console/ServerVariable.js +1 -1
  342. package/lib-esm/components/console/styled.d.ts +16 -0
  343. package/lib-esm/components/console/styled.js +2 -0
  344. package/lib-esm/components/console/utils.d.ts +3 -1
  345. package/lib-esm/components/console/utils.js +1 -1
  346. package/lib-esm/components/index.d.ts +0 -2
  347. package/lib-esm/components/index.js +1 -1
  348. package/lib-esm/components/pluggable/PullRight.d.ts +2 -4
  349. package/lib-esm/components/pluggable/PullRight.js +1 -1
  350. package/lib-esm/components/pluggable/RedocRequestBody.js +1 -1
  351. package/lib-esm/components/pluggable/RedocResponse.js +1 -1
  352. package/lib-esm/components/pluggable/styled.components.d.ts +3 -4
  353. package/lib-esm/components/pluggable/styled.components.js +1 -1
  354. package/lib-esm/components/shared/HttpVerb.d.ts +1 -1
  355. package/lib-esm/components/shared/HttpVerb.js +1 -1
  356. package/lib-esm/components/shared/MimeLabel.d.ts +1 -1
  357. package/lib-esm/components/shared/MimeLabel.js +1 -1
  358. package/lib-esm/components/shared/NoSampleLabel.d.ts +2 -2
  359. package/lib-esm/components/shared/NoSampleLabel.js +1 -1
  360. package/lib-esm/components/shared/SelectOnClick.js +1 -1
  361. package/lib-esm/components/shared/index.d.ts +0 -3
  362. package/lib-esm/components/shared/index.js +1 -1
  363. package/lib-esm/components/styled.elements.d.ts +7 -9
  364. package/lib-esm/components/styled.elements.js +1 -1
  365. package/lib-esm/components/types.d.ts +15 -0
  366. package/lib-esm/components/types.js +2 -0
  367. package/lib-esm/constants.d.ts +2 -0
  368. package/lib-esm/constants.js +2 -0
  369. package/lib-esm/redoc-lib/src/common-elements/Download.js +1 -1
  370. package/lib-esm/redoc-lib/src/common-elements/LinkToField.d.ts +1 -1
  371. package/lib-esm/redoc-lib/src/common-elements/LinkToField.js +1 -1
  372. package/lib-esm/redoc-lib/src/common-elements/fields-layout.d.ts +9 -9
  373. package/lib-esm/redoc-lib/src/common-elements/fields-layout.js +1 -1
  374. package/lib-esm/redoc-lib/src/common-elements/fields.d.ts +13 -13
  375. package/lib-esm/redoc-lib/src/common-elements/fields.js +1 -1
  376. package/lib-esm/redoc-lib/src/common-elements/headers.d.ts +5 -6
  377. package/lib-esm/redoc-lib/src/common-elements/headers.js +1 -1
  378. package/lib-esm/redoc-lib/src/common-elements/icons.d.ts +14 -12
  379. package/lib-esm/redoc-lib/src/common-elements/icons.js +1 -1
  380. package/lib-esm/redoc-lib/src/common-elements/index.d.ts +0 -2
  381. package/lib-esm/redoc-lib/src/common-elements/index.js +1 -1
  382. package/lib-esm/redoc-lib/src/common-elements/linkify.js +1 -1
  383. package/lib-esm/redoc-lib/src/common-elements/mixins.js +1 -1
  384. package/lib-esm/redoc-lib/src/common-elements/panels.d.ts +4 -5
  385. package/lib-esm/redoc-lib/src/common-elements/panels.js +1 -1
  386. package/lib-esm/redoc-lib/src/common-elements/perfect-scrollbar.js +1 -1
  387. package/lib-esm/redoc-lib/src/common-elements/schema.d.ts +7 -7
  388. package/lib-esm/redoc-lib/src/common-elements/schema.js +1 -1
  389. package/lib-esm/redoc-lib/src/common-elements/shelfs.d.ts +2 -2
  390. package/lib-esm/redoc-lib/src/common-elements/shelfs.js +1 -1
  391. package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.js +1 -1
  392. package/lib-esm/redoc-lib/src/components/ApiInfo/styled.elements.d.ts +5 -5
  393. package/lib-esm/redoc-lib/src/components/ApiInfo/styled.elements.js +1 -1
  394. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +1 -1
  395. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +1 -1
  396. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +0 -1
  397. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +1 -1
  398. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.js +1 -1
  399. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackSummary.js +1 -1
  400. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackTitle.d.ts +1 -1
  401. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackTitle.js +1 -1
  402. package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.d.ts +1 -1
  403. package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.js +1 -1
  404. package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.js +1 -1
  405. package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +1 -1
  406. package/lib-esm/redoc-lib/src/components/ErrorBoundary.js +1 -1
  407. package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +1 -1
  408. package/lib-esm/redoc-lib/src/components/Fields/EnumValues.js +1 -1
  409. package/lib-esm/redoc-lib/src/components/Fields/Extensions.js +1 -1
  410. package/lib-esm/redoc-lib/src/components/Fields/FieldContstraints.d.ts +1 -3
  411. package/lib-esm/redoc-lib/src/components/Fields/FieldContstraints.js +1 -1
  412. package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.js +1 -1
  413. package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +1 -1
  414. package/lib-esm/redoc-lib/src/components/Loading/Loading.d.ts +2 -4
  415. package/lib-esm/redoc-lib/src/components/Loading/Loading.js +1 -1
  416. package/lib-esm/redoc-lib/src/components/Loading/Spinner.svg.d.ts +4 -2
  417. package/lib-esm/redoc-lib/src/components/Loading/Spinner.svg.js +1 -1
  418. package/lib-esm/redoc-lib/src/components/Markdown/styled.elements.d.ts +6 -7
  419. package/lib-esm/redoc-lib/src/components/Markdown/styled.elements.js +1 -1
  420. package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
  421. package/lib-esm/redoc-lib/src/components/Operation/Operation.js +1 -1
  422. package/lib-esm/redoc-lib/src/components/Parameters/Parameters.js +1 -1
  423. package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +1 -1
  424. package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.js +1 -1
  425. package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.js +1 -1
  426. package/lib-esm/redoc-lib/src/components/PayloadSamples/ExampleValue.d.ts +1 -1
  427. package/lib-esm/redoc-lib/src/components/PayloadSamples/ExampleValue.js +1 -1
  428. package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +1 -1
  429. package/lib-esm/redoc-lib/src/components/PayloadSamples/styled.d.ts +3 -0
  430. package/lib-esm/redoc-lib/src/components/PayloadSamples/styled.js +2 -0
  431. package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.js +1 -1
  432. package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.js +1 -1
  433. package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +1 -1
  434. package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.js +1 -1
  435. package/lib-esm/redoc-lib/src/components/Responses/styled.elements.d.ts +1 -1
  436. package/lib-esm/redoc-lib/src/components/Responses/styled.elements.js +1 -1
  437. package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.js +1 -1
  438. package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.js +1 -1
  439. package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +1 -1
  440. package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.js +1 -1
  441. package/lib-esm/redoc-lib/src/components/SearchBox/styled.d.ts +6 -0
  442. package/lib-esm/redoc-lib/src/components/SearchBox/styled.js +2 -0
  443. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +1 -1
  444. package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +1 -1
  445. package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.d.ts +2 -2
  446. package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
  447. package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.d.ts +7 -7
  448. package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.js +1 -1
  449. package/lib-esm/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +3 -0
  450. package/lib-esm/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.js +2 -0
  451. package/lib-esm/redoc-lib/src/components/StickySidebar/ChevronSvg.js +1 -1
  452. package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.js +1 -1
  453. package/lib-esm/redoc-lib/src/components/index.d.ts +2 -4
  454. package/lib-esm/redoc-lib/src/components/index.js +1 -1
  455. package/lib-esm/redoc-lib/src/index.d.ts +3 -4
  456. package/lib-esm/redoc-lib/src/index.js +1 -1
  457. package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +13 -5
  458. package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
  459. package/lib-esm/redoc-lib/src/services/index.d.ts +0 -1
  460. package/lib-esm/redoc-lib/src/services/index.js +1 -1
  461. package/lib-esm/redoc-lib/src/services/models/ApiInfo.d.ts +2 -1
  462. package/lib-esm/redoc-lib/src/services/models/ApiInfo.js +1 -1
  463. package/lib-esm/redoc-lib/src/theme.d.ts +0 -229
  464. package/lib-esm/redoc-lib/src/theme.js +1 -1
  465. package/lib-esm/redoc-lib/src/types/open-api.d.ts +7 -0
  466. package/lib-esm/redoc-lib/src/utils/css-variables.d.ts +2 -0
  467. package/lib-esm/redoc-lib/src/utils/css-variables.js +2 -0
  468. package/lib-esm/redoc-lib/src/utils/index.d.ts +3 -0
  469. package/lib-esm/redoc-lib/src/utils/index.js +1 -1
  470. package/lib-esm/redoc-lib/src/utils/media-css.d.ts +7 -0
  471. package/lib-esm/redoc-lib/src/utils/media-css.js +1 -1
  472. package/lib-esm/redoc-lib/src/utils/theme-helpers.d.ts +3 -0
  473. package/lib-esm/redoc-lib/src/utils/theme-helpers.js +2 -0
  474. package/lib-esm/services/ProStore.d.ts +10 -4
  475. package/lib-esm/services/ProStore.js +1 -1
  476. package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +1 -1
  477. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.d.ts +1 -1
  478. package/lib-esm/services/types.d.ts +0 -3
  479. package/package.json +3 -2
  480. package/bin/cli/assets/redoc-fast-scroll.js +0 -23
  481. package/bin/cli/assets/template.hbs +0 -24
  482. package/bin/cli/commands/redocly-docs-cli.min.js +0 -2997
  483. package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +0 -367
  484. package/dist/console.redocly-reference-docs.min.js +0 -514
  485. package/dist/oauth2-redirect.html +0 -7
  486. package/dist/oauth2-redirect.js +0 -9
  487. package/dist/redocly-reference-docs.min.js +0 -3368
  488. package/lib/components/Tabs/SmallTab.d.ts +0 -4
  489. package/lib/components/Tabs/SmallTab.js +0 -2
  490. package/lib/components/console/AuthPanel.d.ts +0 -27
  491. package/lib/components/console/AuthPanel.js +0 -2
  492. package/lib/components/console/ConsoleBadges.d.ts +0 -9
  493. package/lib/components/console/ConsoleBadges.js +0 -2
  494. package/lib/components/console/styled.components.d.ts +0 -8
  495. package/lib/components/console/styled.components.js +0 -2
  496. package/lib/components/shared/Button.d.ts +0 -11
  497. package/lib/components/shared/Button.js +0 -2
  498. package/lib/components/shared/CopyButton.d.ts +0 -5
  499. package/lib/components/shared/CopyButton.js +0 -2
  500. package/lib/redoc-lib/src/common-elements/CopyButtonWrapper.d.ts +0 -16
  501. package/lib/redoc-lib/src/common-elements/CopyButtonWrapper.js +0 -2
  502. package/lib/redoc-lib/src/common-elements/PrismDiv.d.ts +0 -1
  503. package/lib/redoc-lib/src/common-elements/PrismDiv.js +0 -2
  504. package/lib/redoc-lib/src/common-elements/Tooltip.d.ts +0 -9
  505. package/lib/redoc-lib/src/common-elements/Tooltip.js +0 -2
  506. package/lib/redoc-lib/src/common-elements/samples.d.ts +0 -4
  507. package/lib/redoc-lib/src/common-elements/samples.js +0 -2
  508. package/lib/redoc-lib/src/components/ApiLogo/ApiLogo.d.ts +0 -7
  509. package/lib/redoc-lib/src/components/ApiLogo/ApiLogo.js +0 -2
  510. package/lib/redoc-lib/src/components/ApiLogo/styled.elements.d.ts +0 -7
  511. package/lib/redoc-lib/src/components/ApiLogo/styled.elements.js +0 -2
  512. package/lib/redoc-lib/src/components/JsonViewer/JsonViewer.d.ts +0 -21
  513. package/lib/redoc-lib/src/components/JsonViewer/JsonViewer.js +0 -2
  514. package/lib/redoc-lib/src/components/JsonViewer/index.d.ts +0 -1
  515. package/lib/redoc-lib/src/components/JsonViewer/index.js +0 -2
  516. package/lib/redoc-lib/src/components/JsonViewer/style.d.ts +0 -1
  517. package/lib/redoc-lib/src/components/JsonViewer/style.js +0 -2
  518. package/lib/redoc-lib/src/components/PayloadSamples/styled.elements.d.ts +0 -3
  519. package/lib/redoc-lib/src/components/PayloadSamples/styled.elements.js +0 -2
  520. package/lib/redoc-lib/src/components/SearchBox/styled.elements.d.ts +0 -12
  521. package/lib/redoc-lib/src/components/SearchBox/styled.elements.js +0 -2
  522. package/lib/redoc-lib/src/components/SourceCode/SourceCode.d.ts +0 -13
  523. package/lib/redoc-lib/src/components/SourceCode/SourceCode.js +0 -2
  524. package/lib/redoc-lib/src/services/ClipboardService.d.ts +0 -8
  525. package/lib/redoc-lib/src/services/ClipboardService.js +0 -2
  526. package/lib/redoc-lib/src/styled-components.d.ts +0 -9
  527. package/lib/redoc-lib/src/styled-components.js +0 -2
  528. package/lib/redoc-lib/src/utils/jsonToHtml.d.ts +0 -1
  529. package/lib/redoc-lib/src/utils/jsonToHtml.js +0 -2
  530. package/lib/services/extendTheme.d.ts +0 -65
  531. package/lib/services/extendTheme.js +0 -2
  532. package/lib-esm/components/Tabs/SmallTab.d.ts +0 -4
  533. package/lib-esm/components/Tabs/SmallTab.js +0 -2
  534. package/lib-esm/components/console/AuthPanel.d.ts +0 -27
  535. package/lib-esm/components/console/AuthPanel.js +0 -2
  536. package/lib-esm/components/console/ConsoleBadges.d.ts +0 -9
  537. package/lib-esm/components/console/ConsoleBadges.js +0 -2
  538. package/lib-esm/components/console/styled.components.d.ts +0 -8
  539. package/lib-esm/components/console/styled.components.js +0 -2
  540. package/lib-esm/components/shared/Button.d.ts +0 -11
  541. package/lib-esm/components/shared/Button.js +0 -2
  542. package/lib-esm/components/shared/CopyButton.d.ts +0 -5
  543. package/lib-esm/components/shared/CopyButton.js +0 -2
  544. package/lib-esm/redoc-lib/src/common-elements/CopyButtonWrapper.d.ts +0 -16
  545. package/lib-esm/redoc-lib/src/common-elements/CopyButtonWrapper.js +0 -2
  546. package/lib-esm/redoc-lib/src/common-elements/PrismDiv.d.ts +0 -1
  547. package/lib-esm/redoc-lib/src/common-elements/PrismDiv.js +0 -2
  548. package/lib-esm/redoc-lib/src/common-elements/Tooltip.d.ts +0 -9
  549. package/lib-esm/redoc-lib/src/common-elements/Tooltip.js +0 -2
  550. package/lib-esm/redoc-lib/src/common-elements/samples.d.ts +0 -4
  551. package/lib-esm/redoc-lib/src/common-elements/samples.js +0 -2
  552. package/lib-esm/redoc-lib/src/components/ApiLogo/ApiLogo.d.ts +0 -7
  553. package/lib-esm/redoc-lib/src/components/ApiLogo/ApiLogo.js +0 -2
  554. package/lib-esm/redoc-lib/src/components/ApiLogo/styled.elements.d.ts +0 -7
  555. package/lib-esm/redoc-lib/src/components/ApiLogo/styled.elements.js +0 -2
  556. package/lib-esm/redoc-lib/src/components/JsonViewer/JsonViewer.d.ts +0 -21
  557. package/lib-esm/redoc-lib/src/components/JsonViewer/JsonViewer.js +0 -2
  558. package/lib-esm/redoc-lib/src/components/JsonViewer/index.d.ts +0 -1
  559. package/lib-esm/redoc-lib/src/components/JsonViewer/index.js +0 -2
  560. package/lib-esm/redoc-lib/src/components/JsonViewer/style.d.ts +0 -1
  561. package/lib-esm/redoc-lib/src/components/JsonViewer/style.js +0 -2
  562. package/lib-esm/redoc-lib/src/components/PayloadSamples/styled.elements.d.ts +0 -3
  563. package/lib-esm/redoc-lib/src/components/PayloadSamples/styled.elements.js +0 -2
  564. package/lib-esm/redoc-lib/src/components/SearchBox/styled.elements.d.ts +0 -12
  565. package/lib-esm/redoc-lib/src/components/SearchBox/styled.elements.js +0 -2
  566. package/lib-esm/redoc-lib/src/components/SourceCode/SourceCode.d.ts +0 -13
  567. package/lib-esm/redoc-lib/src/components/SourceCode/SourceCode.js +0 -2
  568. package/lib-esm/redoc-lib/src/services/ClipboardService.d.ts +0 -8
  569. package/lib-esm/redoc-lib/src/services/ClipboardService.js +0 -2
  570. package/lib-esm/redoc-lib/src/styled-components.d.ts +0 -9
  571. package/lib-esm/redoc-lib/src/styled-components.js +0 -2
  572. package/lib-esm/redoc-lib/src/utils/jsonToHtml.d.ts +0 -1
  573. package/lib-esm/redoc-lib/src/utils/jsonToHtml.js +0 -2
  574. package/lib-esm/services/extendTheme.d.ts +0 -65
  575. package/lib-esm/services/extendTheme.js +0 -2
@@ -1,2 +1,2 @@
1
- var _a;import{__assign,__awaiter,__decorate,__generator}from"tslib";import{action,makeObservable,observable,observe}from"mobx";import{bundle,Config}from"@redocly/openapi-core";import{bind,debounce}from"decko";import{createParsedDocument,IS_BROWSER,MarkerService,RedocNormalizedOptions,SCHEMA_DEFINITION_JSX_NAME,SchemaDefinition,ScrollService,SECURITY_DEFINITIONS_COMPONENT_NAME,SECURITY_DEFINITIONS_JSX_NAME,SecurityDefs,SpecStore}from"../redoc-lib";import{FakeHistoryService,ProHashHistoryService,PushStateHistoryService}from"./history";import{ProMenu}from"./ProMenu";import{DeepSearchStore,DEFAULT_SEARCH_MAX_DEPTH,RemoteSearch}from"./SearchStore";import{extendTheme}from"./extendTheme";import{PullRight,RedocResponse}from"../components/pluggable";import{VersionedSpecStore}from"./VersionedSpecStore";import parseToken from"./check";import{normalizePath}from"./utils";import{fromLocalStorage,fromSessionStorage,setGlobalStore,toLocalStorage,toSessionStorage}from"../utils";import{LayoutVariant}from"./store-types";import{SideNavStyle}from"./types";var global="undefined"==typeof window?{__REDOCLY_SEARCH_URL:void 0}:window,NestingGroup=function(){function e(e,t,i,o){var n=this;Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"absoluteIdx",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"linkable",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"items",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"externalDocs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"active",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"expanded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"depth",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"level",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),makeObservable(this),this.id="section/"+e,this.type="nesting-group",this.name=i||"",this.level=1,this.depth=1,this.description="",this.parent=void 0,this.expanded=!1,this.items=t,this.linkable=!!o,t.forEach((function(e){return e.parent=n})),increaseDepthDeep(t)}return Object.defineProperty(e.prototype,"activate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.active=!0}}),Object.defineProperty(e.prototype,"expand",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!0,this.parent&&this.parent.expand()}}),Object.defineProperty(e.prototype,"collapse",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!1}}),Object.defineProperty(e.prototype,"deactivate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.active=!1}}),__decorate([observable],e.prototype,"active",void 0),__decorate([observable],e.prototype,"expanded",void 0),__decorate([action],e.prototype,"activate",null),__decorate([action],e.prototype,"expand",null),__decorate([action],e.prototype,"collapse",null),__decorate([action],e.prototype,"deactivate",null),e}();export{NestingGroup};function increaseDepthDeep(e){Array.isArray(e)&&e.forEach((function(e){e.depth++,e.parent&&"group"===e.parent.type&&(e.depth=e.parent.depth),increaseDepthDeep(e.items)}))}var ProStore=function(){function e(e,t,i,o){var n=this;void 0===i&&(i={}),void 0===o&&(o=!0),Object.defineProperty(this,"rawOptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"menu",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"definition",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"marker",{enumerable:!0,configurable:!0,writable:!0,value:new MarkerService}),Object.defineProperty(this,"scroll",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"disposer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"search",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tryItOperation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showRightPanel",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"layout",{enumerable:!0,configurable:!0,writable:!0,value:LayoutVariant.THREE_PANEL}),Object.defineProperty(this,"activeSampleLanguage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isLoading",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"l",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),makeObservable(this),this.initProOptions(i),IS_BROWSER&&(this.l=parseToken(i.licenseKey),this.l.then((function(e){e.valid&&e.allowed&&!e.expired||e.local||(n.menu.items=[],n.menu.flatItems=n.menu.flatItems.slice(0,1),n.menu.renderItems=[])})));var r="object"==typeof e&&"versions"in e,a=this.options.disableSidebar?new FakeHistoryService(this.options):"browser"===this.options.routingStrategy?new PushStateHistoryService(this.options,r):new ProHashHistoryService(this.options,r);this.definition=r?new VersionedSpecStore(e,this.options,a.currentId.split("/")[0]):new SpecStore(e,t,this.options),i.downloadDefinitionUrl&&(this.definition.info.downloadFileName=""),this.scroll=new ScrollService(this.options),this.options.disableSidebar||ProMenu.updateOnHistory(a.currentId,this.scroll),this.menu=new ProMenu(this.definition,this.scroll,this.options,a),this.menu.initOnHistory(),this.options.disableSearch||this.initSearch(this.options,o),this.disposer=observe(this.menu,"none"===this.options.pagination?"activeItemIdx":"activeRenderItemIdx",(function(e){setTimeout((function(){return n.updateMarkOnMenu(e.newValue)}))})),setGlobalStore(this)}return Object.defineProperty(e.prototype,"initProOptions",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,i,o,n,r;e=deepClone(e),this.rawOptions=extendTheme(e),this.options=new RedocNormalizedOptions(this.rawOptions,DEFAULT_OPTIONS),this.options.showConsole=null===(t=this.rawOptions.showConsole)||void 0===t||t,this.options.hideRightPanel=null!==(i=this.rawOptions.hideRightPanel)&&void 0!==i&&i,this.showRightPanel=!this.options.hideRightPanel,this.options.showRightPanelToggle=null===(o=this.rawOptions.showRightPanelToggle)||void 0===o||o,this.options.showChangeLayoutButton=null===(n=this.rawOptions.showChangeLayoutButton)||void 0===n||n,this.options.layout=this.rawOptions.layout||LayoutVariant.THREE_PANEL,this.options.defaultSampleLanguage=this.rawOptions.defaultSampleLanguage||"",this.options.deepLinkSeparator=this.rawOptions.deepLinkSeparator||"/",this.options.deepLinkPrefix=this.rawOptions.deepLinkPrefix||"!",this.options.disableDeepLinks=this.rawOptions.disableDeepLinks||!1,this.options.sideNavStyle=this.rawOptions.sideNavStyle||SideNavStyle.SummaryOnly,this.options.whiteLabel=!!this.rawOptions.whiteLabel,this.options.hideLogo=!!this.rawOptions.hideLogo,this.options.hideInfoSection=!!this.rawOptions.hideInfoSection,this.options.oAuth2RedirectURI=this.rawOptions.oAuth2RedirectURI||null,this.options.oAuth2RedirectURI=this.rawOptions.oAuth2RedirectURI||null,this.options.events=this.rawOptions.events||{},this.options.corsProxyUrl=this.rawOptions.corsProxyUrl?addTrailingSlash(this.rawOptions.corsProxyUrl):null,this.options.authCorsProxyUrl=this.rawOptions.authCorsProxyUrl?addTrailingSlash(this.rawOptions.authCorsProxyUrl):null,this.options.theme.scrollYOffset=this.options.scrollYOffset,this.options.linkForId=this.rawOptions.linkForId||null,this.options.generateDeepLink=this.rawOptions.generateDeepLink||null,this.options.onDeepLinkClick=this.rawOptions.onDeepLinkClick||null,this.options.requestInterceptor=this.rawOptions.requestInterceptor||null,this.options.sidebarLinks=this.rawOptions.sidebarLinks||{};var a="object"==typeof this.rawOptions.layout?this.rawOptions.layout:null;if(this.options.pagination=this.rawOptions.pagination||"none",this.options.routingStrategy="none"===this.options.pagination?"hash":"browser",!(null===(r=this.rawOptions)||void 0===r?void 0:r.pagination)&&(null==a?void 0:a.scope))switch(console.warn('"layout.scope" and "routingStrategy" settings are deprecated. Please, use "pagination" instead.'),null==a?void 0:a.scope){case"all":default:this.options.pagination="none",this.options.routingStrategy="hash";break;case"section":this.options.pagination="section",this.options.routingStrategy="browser";break;case"item":this.options.pagination="item",this.options.routingStrategy="browser"}this.options.markdownItemsPagination="none",!1!==this.rawOptions.showNextButton&&(this.options.showNextButton=!0),this.options.disableSidebar=!!e.disableSidebar,this.options.disableSidebar&&(this.options.theme.sidebar.width="0px"),this.options.skipBundleAndConvert=!!e.skipBundleAndConvert,this.options.routingBasePath=e.routingBasePath&&normalizePath(e.routingBasePath)||"",this.options.searchAutoExpand=!1!==e.searchAutoExpand,this.options.searchMode=e.searchMode||"default",this.options.ctrlFHijack=void 0===e.ctrlFHijack||e.ctrlFHijack,this.options.disablePaginationLoadingAnimation=!!e.disablePaginationLoadingAnimation||"none"===this.options.pagination,this.options.showConsole,this.options.generateCodeSamples=e.generateCodeSamples||{languages:[]},this.options.searchMaxDepth=this.rawOptions.searchMaxDepth||DEFAULT_SEARCH_MAX_DEPTH}}),Object.defineProperty(e.prototype,"initSearch",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var i=this;global.__REDOCLY_SEARCH_URL?this.search=new RemoteSearch(global.__REDOCLY_SEARCH_URL):this.search=new DeepSearchStore(e),t&&setTimeout((function(){var e;return null===(e=i.search)||void 0===e?void 0:e.indexItems(i.menu.items)}),50),this.definition instanceof VersionedSpecStore&&observe(this.definition,"activeVersionIdx",(function(t){var o,n,r=i.definition;null===(o=i.search)||void 0===o||o.dispose(),i.search=new DeepSearchStore(e);var a=r.versions[t.newValue]._searchIndexName;if(IS_BROWSER&&a){var s=r.versions[t.newValue]._searchIndexName,l=new URL(window.location.href);l.pathname=joinURLs(i.options.routingBasePath,s),null===(n=i.search)||void 0===n||n.fromExternalJS(l.toString(),__redoc_state.searchIndexExport),i.observeAllAndRemark()}else setTimeout((function(){var e;null===(e=i.search)||void 0===e||e.indexItems(i.menu.items)}),0)})),IS_BROWSER&&this.observeAllAndRemark()}}),Object.defineProperty(e.prototype,"onDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.menu.updateOnHistory(),this.updateMarkOnMenu(this.menu.activeItemIdx),this.layout=fromLocalStorage("layoutVariant")||this.options.layout||this.layout,this.activeSampleLanguage=fromLocalStorage("activeSampleLanguage")||this.options.defaultSampleLanguage,this.options.showRightPanelToggle){var e=fromSessionStorage("showRightPanelToggleState");e&&(this.showRightPanel="true"===e)}}}),Object.defineProperty(e.prototype,"toggleRightPanel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.showRightPanel=null!=e?e:!this.showRightPanel,toSessionStorage("showRightPanelToggleState",JSON.stringify(this.showRightPanel))}}),Object.defineProperty(e.prototype,"toggleLayout",{enumerable:!1,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=LayoutVariant.THREE_PANEL),this.layout=e,toLocalStorage("layoutVariant",e)}}),Object.defineProperty(e.prototype,"disableConsole",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.options.showConsole=!1}}),Object.defineProperty(e.prototype,"enableConsole",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.options.showConsole=!0}}),Object.defineProperty(e.prototype,"tryItOut",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.tryItOperation=e}}),Object.defineProperty(e.prototype,"setActiveSampleLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this.activeSampleLanguage===e)return this.stopLoader();this.activeSampleLanguage=e,toLocalStorage("activeSampleLanguage",e)}}),Object.defineProperty(e.prototype,"activateSampleLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.setActiveSampleLanguage(e)}}),Object.defineProperty(e.prototype,"startLoader",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isLoading||(this.isLoading=!0)}}),Object.defineProperty(e.prototype,"stopLoader",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isLoading&&(this.isLoading=!1)}}),Object.defineProperty(e.prototype,"dereferenceSpecForTryIt",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,i,o,n;return __awaiter(this,void 0,void 0,(function(){var r,a,s,l,p,u,c;return __generator(this,(function(h){switch(h.label){case 0:return r=this.definition.parser.definition,a=JSON.parse(JSON.stringify(r)),s=__assign(__assign({},getSpecVersionObj(a)),{components:a.components,paths:(u={},u[e.path]=(c={},c[e.httpVerb]=null===(i=null===(t=a.paths)||void 0===t?void 0:t[e.path])||void 0===i?void 0:i[e.httpVerb],c.parameters=null===(n=null===(o=a.paths)||void 0===o?void 0:o[e.path])||void 0===n?void 0:n.parameters,c),u)}),l=new Config({}),p=createParsedDocument(s),[4,bundle({config:l,doc:p,dereference:!0})];case 1:return h.sent(),[2,a]}}))}))}}),Object.defineProperty(e.prototype,"observeAllAndRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=function(i){for(var o=0,n=i;o<n.length;o++){var r=n[o];if("operation"===r.type)for(var a=0,s=r.responses;a<s.length;a++){var l=s[a];observe(l,"expanded",(function(t){return e.remark(t)}))}else"tag"===r.type&&t(r.items||[])}};t(this.menu.renderItems),"none"!==this.options.pagination&&observe(this.menu,"renderItems",(function(){return t(e.menu.renderItems)}))}}),Object.defineProperty(e.prototype,"remark",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;e.newValue&&setTimeout((function(){return t.marker.mark()}),0)}}),Object.defineProperty(e,"fromJS",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var i,o=new e(t.definition.data,t.definition.url,t.options,!1);setGlobalStore(o),o.menu.activeItemIdx=void 0!==t.menu.activeItemIdx?t.menu.activeItemIdx:-1,o.definition instanceof VersionedSpecStore&&t.definition.activeVersionIdx&&(o.definition.activeVersionIdx=t.definition.activeVersionIdx||0);var n=o.menu.flatItems[o.menu.activeItemIdx];if(n&&o.menu.activate(n,!1),!o.options.disableSearch){var r=new URL(window.location.href);r.pathname=t.searchIndexPath&&t.searchIndexPath.startsWith("/")?t.searchIndexPath:r.pathname+(r.pathname.endsWith("/")?"":"/")+t.searchIndexPath,null===(i=o.search)||void 0===i||i.fromExternalJS(r.toString(),t.searchIndexExport)}return t.tryItOperationId&&(o.tryItOperation=o.menu.flatItems.find((function(e){return e.id===t.tryItOperationId}))),setTimeout((function(){return o.observeAllAndRemark()}),0),o}}),Object.defineProperty(e.prototype,"toJS",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e;return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(o){switch(o.label){case 0:return i={menu:{activeItemIdx:this.menu.activeItemIdx},definition:this.definition instanceof VersionedSpecStore?{url:void 0,data:this.definition.toJS()}:{url:this.definition.parser.definitionUrl,data:this.definition.parser.definition}},this.search?[4,this.search.toJS()]:[3,2];case 1:return t=o.sent(),[3,3];case 2:t=void 0,o.label=3;case 3:return[2,(i.searchIndex=t,i.options=this.rawOptions,i.tryItOperationId=null===(e=this.tryItOperation)||void 0===e?void 0:e.id,i)]}}))}))}}),Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.scroll.dispose(),this.menu.dispose(),this.search&&this.search.dispose(),this.disposer()}}),Object.defineProperty(e.prototype,"updateMarkOnMenu",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=Math.max(0,e),i=Math.min(this.menu.flatItems.length,t+5),o=[],n=t;n<i;n++){(r=this.menu.getElementAt(n))&&(r&&o.push(r))}if("item"===this.options.pagination){var r,a=(this.menu.flatItems[e]||{}).parent;if(null==a?void 0:a.absoluteIdx)(r=this.menu.getElementAt(a.absoluteIdx))&&o.push(r)}this.marker.addOnly(o),this.marker.mark()}}),__decorate([observable],e.prototype,"search",void 0),__decorate([observable],e.prototype,"tryItOperation",void 0),__decorate([observable],e.prototype,"showRightPanel",void 0),__decorate([observable],e.prototype,"layout",void 0),__decorate([observable],e.prototype,"activeSampleLanguage",void 0),__decorate([observable],e.prototype,"isLoading",void 0),__decorate([action],e.prototype,"onDidMount",null),__decorate([action],e.prototype,"toggleRightPanel",null),__decorate([action],e.prototype,"toggleLayout",null),__decorate([action],e.prototype,"disableConsole",null),__decorate([action],e.prototype,"enableConsole",null),__decorate([action],e.prototype,"tryItOut",null),__decorate([action],e.prototype,"setActiveSampleLanguage",null),__decorate([bind,debounce(500)],e.prototype,"activateSampleLanguage",null),__decorate([action],e.prototype,"startLoader",null),__decorate([action],e.prototype,"stopLoader",null),e}();export{ProStore};var DEFAULT_OPTIONS={ignoreNamedSchemas:["java.io.ObjectStreamField"],allowedMdComponents:(_a={RedocResponse:{component:RedocResponse,propsSelector:function(e){return{store:e}}},PullRight:{component:PullRight,propsSelector:function(){return{}}}},_a[SECURITY_DEFINITIONS_COMPONENT_NAME]={component:SecurityDefs,propsSelector:function(e){return{securitySchemes:e.definition.securitySchemes}}},_a[SECURITY_DEFINITIONS_JSX_NAME]={component:SecurityDefs,propsSelector:function(e){return{securitySchemes:e.definition.securitySchemes}}},_a[SCHEMA_DEFINITION_JSX_NAME]={component:SchemaDefinition,propsSelector:function(e){return{parser:e.definition.parser,options:e.options,layout:e.layout,showRightPanel:e.showRightPanel}}},_a)};function joinURLs(e,t){return e.endsWith("/")&&(e=e.slice(0,-1)),t.startsWith("/")&&(t=t.substring(1)),e+"/"+t}function addTrailingSlash(e){return e.endsWith("/")?e:e+"/"}function getSpecVersionObj(e){return e.openapi?{openapi:e.openapi}:e.swagger?{swagger:e.swagger}:void 0}function deepClone(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e){var o=e[i];t[i]=deepClone(o)}return t}
1
+ var _a;import{__assign,__awaiter,__decorate,__generator}from"tslib";import{action,makeObservable,observable,observe}from"mobx";import{bundle,Config}from"@redocly/openapi-core";import{bind,debounce}from"decko";import{IS_BROWSER,ScrollService,SecurityDefs,SECURITY_DEFINITIONS_COMPONENT_NAME,SECURITY_DEFINITIONS_JSX_NAME,SCHEMA_DEFINITION_JSX_NAME,SchemaDefinition,createParsedDocument}from"../redoc-lib";import{MarkerService}from"../redoc-lib/src/services/MarkerService";import{RedocNormalizedOptions}from"../redoc-lib/src/services/RedocNormalizedOptions";import{SpecStore}from"../redoc-lib/src/services/SpecStore";import{FakeHistoryService,ProHashHistoryService,PushStateHistoryService}from"./history";import{ProMenu}from"./ProMenu";import{DeepSearchStore,DEFAULT_SEARCH_MAX_DEPTH,RemoteSearch}from"./SearchStore";import{PullRight,RedocResponse}from"../components/pluggable";import{VersionedSpecStore}from"./VersionedSpecStore";import parseToken from"./check";import{normalizePath}from"./utils";import{fromLocalStorage,fromSessionStorage,setGlobalStore,toLocalStorage,toSessionStorage}from"../utils";import{LayoutVariant}from"./store-types";import{SideNavStyle}from"./types";import{defaultTheme}from"../constants";var global="undefined"==typeof window?{__REDOCLY_SEARCH_URL:void 0}:window,NestingGroup=function(){function e(e,t,i,o){var n=this;Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"absoluteIdx",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"linkable",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"items",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"externalDocs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"active",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"expanded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"depth",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"level",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),makeObservable(this),this.id="section/"+e,this.type="nesting-group",this.name=i||"",this.level=1,this.depth=1,this.description="",this.parent=void 0,this.expanded=!1,this.items=t,this.linkable=!!o,t.forEach((function(e){return e.parent=n})),increaseDepthDeep(t)}return Object.defineProperty(e.prototype,"activate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.active=!0}}),Object.defineProperty(e.prototype,"expand",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!0,this.parent&&this.parent.expand()}}),Object.defineProperty(e.prototype,"collapse",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!1}}),Object.defineProperty(e.prototype,"deactivate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.active=!1}}),__decorate([observable],e.prototype,"active",void 0),__decorate([observable],e.prototype,"expanded",void 0),__decorate([action],e.prototype,"activate",null),__decorate([action],e.prototype,"expand",null),__decorate([action],e.prototype,"collapse",null),__decorate([action],e.prototype,"deactivate",null),e}();export{NestingGroup};function increaseDepthDeep(e){Array.isArray(e)&&e.forEach((function(e){e.depth++,e.parent&&"group"===e.parent.type&&(e.depth=e.parent.depth),increaseDepthDeep(e.items)}))}var ProStore=function(){function e(e,t,i,o){var n=this;void 0===i&&(i={}),void 0===o&&(o=!0),Object.defineProperty(this,"rawOptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"menu",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"definition",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"marker",{enumerable:!0,configurable:!0,writable:!0,value:new MarkerService}),Object.defineProperty(this,"scroll",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"disposer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"search",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tryItOperation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showRightPanel",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"layout",{enumerable:!0,configurable:!0,writable:!0,value:LayoutVariant.THREE_PANEL}),Object.defineProperty(this,"activeSampleLanguage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isLoading",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"l",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),makeObservable(this),this.initProOptions(i),IS_BROWSER&&(this.l=parseToken(i.licenseKey),this.l.then((function(e){e.valid&&e.allowed&&!e.expired||e.local||(n.menu.items=[],n.menu.flatItems=n.menu.flatItems.slice(0,1),n.menu.renderItems=[])})));var r="object"==typeof e&&"versions"in e,a=this.options.disableSidebar?new FakeHistoryService(this.options):"browser"===this.options.routingStrategy?new PushStateHistoryService(this.options,r):new ProHashHistoryService(this.options,r);this.definition=r?new VersionedSpecStore(e,this.options,a.currentId.split("/")[0]):new SpecStore(e,t,this.options),i.downloadDefinitionUrl&&(this.definition.info.downloadFileName=""),this.scroll=new ScrollService(this.options),this.options.disableSidebar||ProMenu.updateOnHistory(a.currentId,this.scroll),this.menu=new ProMenu(this.definition,this.scroll,this.options,a),this.menu.initOnHistory(),this.options.disableSearch||this.initSearch(this.options,o),this.disposer=observe(this.menu,"none"===this.options.pagination?"activeItemIdx":"activeRenderItemIdx",(function(e){setTimeout((function(){return n.updateMarkOnMenu(e.newValue)}))})),setGlobalStore(this)}return Object.defineProperty(e.prototype,"initProOptions",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,i,o,n,r;e=deepClone(e),this.rawOptions=e,this.options=new RedocNormalizedOptions(this.rawOptions,DEFAULT_OPTIONS),this.options.showConsole=null===(t=this.rawOptions.showConsole)||void 0===t||t,this.options.hideRightPanel=null!==(i=this.rawOptions.hideRightPanel)&&void 0!==i&&i,this.showRightPanel=!this.options.hideRightPanel,this.options.showRightPanelToggle=null===(o=this.rawOptions.showRightPanelToggle)||void 0===o||o,this.options.showChangeLayoutButton=null===(n=this.rawOptions.showChangeLayoutButton)||void 0===n||n,this.options.layout=this.rawOptions.layout||LayoutVariant.THREE_PANEL,this.options.defaultSampleLanguage=this.rawOptions.defaultSampleLanguage||"",this.options.deepLinkSeparator=this.rawOptions.deepLinkSeparator||"/",this.options.deepLinkPrefix=this.rawOptions.deepLinkPrefix||"!",this.options.disableDeepLinks=this.rawOptions.disableDeepLinks||!1,this.options.sideNavStyle=this.rawOptions.sideNavStyle||SideNavStyle.SummaryOnly,this.options.whiteLabel=!!this.rawOptions.whiteLabel,this.options.hideLogo=!!this.rawOptions.hideLogo,this.options.hideInfoSection=!!this.rawOptions.hideInfoSection,this.options.oAuth2RedirectURI=this.rawOptions.oAuth2RedirectURI||null,this.options.oAuth2RedirectURI=this.rawOptions.oAuth2RedirectURI||null,this.options.events=this.rawOptions.events||{},this.options.corsProxyUrl=this.rawOptions.corsProxyUrl?addTrailingSlash(this.rawOptions.corsProxyUrl):null,this.options.authCorsProxyUrl=this.rawOptions.authCorsProxyUrl?addTrailingSlash(this.rawOptions.authCorsProxyUrl):null,this.options.linkForId=this.rawOptions.linkForId||null,this.options.generateDeepLink=this.rawOptions.generateDeepLink||null,this.options.onDeepLinkClick=this.rawOptions.onDeepLinkClick||null,this.options.requestInterceptor=this.rawOptions.requestInterceptor||null,this.options.sidebarLinks=this.rawOptions.sidebarLinks||{};var a="object"==typeof this.rawOptions.layout?this.rawOptions.layout:null;if(this.options.pagination=this.rawOptions.pagination||"none",this.options.routingStrategy="none"===this.options.pagination?"hash":"browser",!(null===(r=this.rawOptions)||void 0===r?void 0:r.pagination)&&(null==a?void 0:a.scope))switch(console.warn('"layout.scope" and "routingStrategy" settings are deprecated. Please, use "pagination" instead.'),null==a?void 0:a.scope){case"all":default:this.options.pagination="none",this.options.routingStrategy="hash";break;case"section":this.options.pagination="section",this.options.routingStrategy="browser";break;case"item":this.options.pagination="item",this.options.routingStrategy="browser"}this.options.markdownItemsPagination="none",!1!==this.rawOptions.showNextButton&&(this.options.showNextButton=!0),this.options.disableSidebar=!!e.disableSidebar,this.options.skipBundleAndConvert=!!e.skipBundleAndConvert,this.options.routingBasePath=e.routingBasePath&&normalizePath(e.routingBasePath)||"",this.options.searchAutoExpand=!1!==e.searchAutoExpand,this.options.searchMode=e.searchMode||"default",this.options.ctrlFHijack=void 0===e.ctrlFHijack||e.ctrlFHijack,this.options.disablePaginationLoadingAnimation=!!e.disablePaginationLoadingAnimation||"none"===this.options.pagination,this.options.showConsole,this.options.generateCodeSamples=e.generateCodeSamples||{languages:[]},this.options.searchMaxDepth=this.rawOptions.searchMaxDepth||DEFAULT_SEARCH_MAX_DEPTH,this.options.searchMaxDepth=this.rawOptions.searchMaxDepth||DEFAULT_SEARCH_MAX_DEPTH}}),Object.defineProperty(e.prototype,"initSearch",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var i=this;global.__REDOCLY_SEARCH_URL?this.search=new RemoteSearch(global.__REDOCLY_SEARCH_URL):this.search=new DeepSearchStore(e),t&&setTimeout((function(){var e;return null===(e=i.search)||void 0===e?void 0:e.indexItems(i.menu.items)}),50),this.definition instanceof VersionedSpecStore&&observe(this.definition,"activeVersionIdx",(function(t){var o,n,r=i.definition;null===(o=i.search)||void 0===o||o.dispose(),i.search=new DeepSearchStore(e);var a=r.versions[t.newValue]._searchIndexName;if(IS_BROWSER&&a){var s=r.versions[t.newValue]._searchIndexName,l=new URL(window.location.href);l.pathname=joinURLs(i.options.routingBasePath,s),null===(n=i.search)||void 0===n||n.fromExternalJS(l.toString(),__redoc_state.searchIndexExport),i.observeAllAndRemark()}else setTimeout((function(){var e;null===(e=i.search)||void 0===e||e.indexItems(i.menu.items)}),0)})),IS_BROWSER&&this.observeAllAndRemark()}}),Object.defineProperty(e.prototype,"onDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.menu.updateOnHistory(),this.updateMarkOnMenu(this.menu.activeItemIdx),this.layout=fromLocalStorage("layoutVariant")||this.options.layout||this.layout,this.activeSampleLanguage=fromLocalStorage("activeSampleLanguage")||this.options.defaultSampleLanguage,this.options.showRightPanelToggle){var e=fromSessionStorage("showRightPanelToggleState");e&&(this.showRightPanel="true"===e)}}}),Object.defineProperty(e.prototype,"toggleRightPanel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.showRightPanel=null!=e?e:!this.showRightPanel,toSessionStorage("showRightPanelToggleState",JSON.stringify(this.showRightPanel))}}),Object.defineProperty(e.prototype,"toggleLayout",{enumerable:!1,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=LayoutVariant.THREE_PANEL),this.layout=e,toLocalStorage("layoutVariant",e)}}),Object.defineProperty(e.prototype,"disableConsole",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.options.showConsole=!1}}),Object.defineProperty(e.prototype,"enableConsole",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.options.showConsole=!0}}),Object.defineProperty(e.prototype,"tryItOut",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.tryItOperation=e}}),Object.defineProperty(e.prototype,"setActiveSampleLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this.activeSampleLanguage===e)return this.stopLoader();this.activeSampleLanguage=e,toLocalStorage("activeSampleLanguage",e)}}),Object.defineProperty(e.prototype,"activateSampleLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.setActiveSampleLanguage(e)}}),Object.defineProperty(e.prototype,"startLoader",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isLoading||(this.isLoading=!0)}}),Object.defineProperty(e.prototype,"stopLoader",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isLoading&&(this.isLoading=!1)}}),Object.defineProperty(e.prototype,"dereferenceSpecForTryIt",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,i,o,n;return __awaiter(this,void 0,void 0,(function(){var r,a,s,l,p,u,c;return __generator(this,(function(h){switch(h.label){case 0:return r=this.definition.parser.definition,a=JSON.parse(JSON.stringify(r)),s=__assign(__assign({},getSpecVersionObj(a)),{components:a.components,paths:(u={},u[e.path]=(c={},c[e.httpVerb]=null===(i=null===(t=a.paths)||void 0===t?void 0:t[e.path])||void 0===i?void 0:i[e.httpVerb],c.parameters=null===(n=null===(o=a.paths)||void 0===o?void 0:o[e.path])||void 0===n?void 0:n.parameters,c),u)}),l=new Config({}),p=createParsedDocument(s),[4,bundle({config:l,doc:p,dereference:!0})];case 1:return h.sent(),[2,a]}}))}))}}),Object.defineProperty(e.prototype,"observeAllAndRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=function(i){for(var o=0,n=i;o<n.length;o++){var r=n[o];if("operation"===r.type)for(var a=0,s=r.responses;a<s.length;a++){var l=s[a];observe(l,"expanded",(function(t){return e.remark(t)}))}else"tag"===r.type&&t(r.items||[])}};t(this.menu.renderItems),"none"!==this.options.pagination&&observe(this.menu,"renderItems",(function(){return t(e.menu.renderItems)}))}}),Object.defineProperty(e.prototype,"remark",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;e.newValue&&setTimeout((function(){return t.marker.mark()}),0)}}),Object.defineProperty(e,"fromJS",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var i,o=new e(t.definition.data,t.definition.url,t.options,!1);setGlobalStore(o),o.menu.activeItemIdx=void 0!==t.menu.activeItemIdx?t.menu.activeItemIdx:-1,o.definition instanceof VersionedSpecStore&&t.definition.activeVersionIdx&&(o.definition.activeVersionIdx=t.definition.activeVersionIdx||0);var n=o.menu.flatItems[o.menu.activeItemIdx];if(n&&o.menu.activate(n,!1),!o.options.disableSearch){var r=new URL(window.location.href);r.pathname=t.searchIndexPath&&t.searchIndexPath.startsWith("/")?t.searchIndexPath:r.pathname+(r.pathname.endsWith("/")?"":"/")+t.searchIndexPath,null===(i=o.search)||void 0===i||i.fromExternalJS(r.toString(),t.searchIndexExport)}return t.tryItOperationId&&(o.tryItOperation=o.menu.flatItems.find((function(e){return e.id===t.tryItOperationId}))),setTimeout((function(){return o.observeAllAndRemark()}),0),o}}),Object.defineProperty(e.prototype,"toJS",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e;return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(o){switch(o.label){case 0:return i={menu:{activeItemIdx:this.menu.activeItemIdx},definition:this.definition instanceof VersionedSpecStore?{url:void 0,data:this.definition.toJS()}:{url:this.definition.parser.definitionUrl,data:this.definition.parser.definition}},this.search?[4,this.search.toJS()]:[3,2];case 1:return t=o.sent(),[3,3];case 2:t=void 0,o.label=3;case 3:return[2,(i.searchIndex=t,i.options=this.rawOptions,i.tryItOperationId=null===(e=this.tryItOperation)||void 0===e?void 0:e.id,i)]}}))}))}}),Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.scroll.dispose(),this.menu.dispose(),this.search&&this.search.dispose(),this.disposer()}}),Object.defineProperty(e.prototype,"updateMarkOnMenu",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=Math.max(0,e),i=Math.min(this.menu.flatItems.length,t+5),o=[],n=t;n<i;n++){(r=this.menu.getElementAt(n))&&(r&&o.push(r))}if("item"===this.options.pagination){var r,a=(this.menu.flatItems[e]||{}).parent;if(null==a?void 0:a.absoluteIdx)(r=this.menu.getElementAt(a.absoluteIdx))&&o.push(r)}this.marker.addOnly(o),this.marker.mark()}}),__decorate([observable],e.prototype,"search",void 0),__decorate([observable],e.prototype,"tryItOperation",void 0),__decorate([observable],e.prototype,"showRightPanel",void 0),__decorate([observable],e.prototype,"layout",void 0),__decorate([observable],e.prototype,"activeSampleLanguage",void 0),__decorate([observable],e.prototype,"isLoading",void 0),__decorate([action],e.prototype,"onDidMount",null),__decorate([action],e.prototype,"toggleRightPanel",null),__decorate([action],e.prototype,"toggleLayout",null),__decorate([action],e.prototype,"disableConsole",null),__decorate([action],e.prototype,"enableConsole",null),__decorate([action],e.prototype,"tryItOut",null),__decorate([action],e.prototype,"setActiveSampleLanguage",null),__decorate([bind,debounce(500)],e.prototype,"activateSampleLanguage",null),__decorate([action],e.prototype,"startLoader",null),__decorate([action],e.prototype,"stopLoader",null),e}();export{ProStore};var DEFAULT_OPTIONS={ignoreNamedSchemas:["java.io.ObjectStreamField"],breakpoints:defaultTheme.breakpoints,showAtBreakpoint:defaultTheme.showAtBreakpoint,allowedMdComponents:(_a={RedocResponse:{component:RedocResponse,propsSelector:function(e){return{store:e}}},PullRight:{component:PullRight,propsSelector:function(){return{}}}},_a[SECURITY_DEFINITIONS_COMPONENT_NAME]={component:SecurityDefs,propsSelector:function(e){return{securitySchemes:e.definition.securitySchemes}}},_a[SECURITY_DEFINITIONS_JSX_NAME]={component:SecurityDefs,propsSelector:function(e){return{securitySchemes:e.definition.securitySchemes}}},_a[SCHEMA_DEFINITION_JSX_NAME]={component:SchemaDefinition,propsSelector:function(e){return{parser:e.definition.parser,options:e.options,layout:e.layout,showRightPanel:e.showRightPanel}}},_a)};function joinURLs(e,t){return e.endsWith("/")&&(e=e.slice(0,-1)),t.startsWith("/")&&(t=t.substring(1)),e+"/"+t}function addTrailingSlash(e){return e.endsWith("/")?e:e+"/"}function getSpecVersionObj(e){return e.openapi?{openapi:e.openapi}:e.swagger?{swagger:e.swagger}:void 0}function deepClone(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e){var o=e[i];t[i]=deepClone(o)}return t}
2
2
  //# sourceMappingURL=ProStore.js.map
@@ -7,7 +7,7 @@ declare const targets: {
7
7
  default: string;
8
8
  };
9
9
  fetch: import("..").LanguageHandler<(import("../..").BasicLanguageOptions & {
10
- credentials?: "omit" | "same-origin" | "include" | undefined;
10
+ credentials?: "same-origin" | "omit" | "include" | undefined;
11
11
  }) | undefined>;
12
12
  };
13
13
  node: {
@@ -6,7 +6,7 @@ declare const _default: {
6
6
  default: string;
7
7
  };
8
8
  fetch: import("../..").LanguageHandler<(import("../../..").BasicLanguageOptions & {
9
- credentials?: "omit" | "same-origin" | "include" | undefined;
9
+ credentials?: "same-origin" | "omit" | "include" | undefined;
10
10
  }) | undefined>;
11
11
  };
12
12
  export default _default;
@@ -1,11 +1,8 @@
1
- import type { RedocRawOptions } from '../redoc-lib';
2
- import type { ThemeExtension } from './extendTheme';
3
1
  export declare enum SideNavStyle {
4
2
  SummaryOnly = "summary-only",
5
3
  PathFirst = "path-first",
6
4
  IdOnly = "id-only"
7
5
  }
8
- export declare type RedocProTheme = RedocRawOptions['theme'] & ThemeExtension;
9
6
  export declare type Normalized<T> = {
10
7
  [P in keyof T]-?: T[P];
11
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/reference-docs",
3
- "version": "2.14.1",
3
+ "version": "3.0.0-alpha.0",
4
4
  "description": "Redocly Reference Docs",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",
@@ -39,7 +39,6 @@
39
39
  "openapi-sampler": "^1.2.3",
40
40
  "path-browserify": "^1.0.1",
41
41
  "perfect-scrollbar": "^1.5.5",
42
- "polished": "^3.6.5",
43
42
  "prismjs": "^1.22.0",
44
43
  "prop-types": "^15.7.2",
45
44
  "query-string": "^6.13.6",
@@ -89,6 +88,7 @@
89
88
  "pre-commit": "pretty-quick --staged && npm run lint"
90
89
  },
91
90
  "peerDependencies": {
91
+ "@redocly/theme": "^0.1.10",
92
92
  "core-js": "^3.1.4",
93
93
  "mobx": "^6.3.2",
94
94
  "react": "^16.8.4 || ^17.0.0",
@@ -98,6 +98,7 @@
98
98
  "devDependencies": {
99
99
  "@percy/cli": "^1.0.0-beta.68",
100
100
  "@percy/cypress": "^3.1.1",
101
+ "@redocly/theme": "^0.1.10",
101
102
  "@testing-library/jest-dom": "^5.15.1",
102
103
  "@testing-library/react": "^11.1.0",
103
104
  "@testing-library/user-event": "^12.1.10",
@@ -1,23 +0,0 @@
1
- (function() {
2
- try {
3
- var menu = document.querySelector('[role=menuitem].active:not([type="group"])');
4
- if (menu) {
5
- if (menu.scrollIntoViewIfNeeded) {
6
- menu.scrollIntoViewIfNeeded();
7
- } else {
8
- menu.parentElement.scrollIntoView();
9
- }
10
- }
11
-
12
- var hash = (window.location.hash || '').substring(1);
13
- var path = window.location.pathname.substring(1);
14
- if (path[path.length - 1] === '/')
15
- path = path.substring(0, path.length - 1);
16
-
17
- var el =
18
- document.querySelector('[data-section-id="' + hash + '"]') ||
19
- document.querySelector('[data-section-id="' + path + '/' + hash + '"]');
20
-
21
- if (el) el.scrollIntoView();
22
- } catch (e) {}
23
- })();
@@ -1,24 +0,0 @@
1
- <html lang='en'>
2
- <head>
3
- <meta charset='utf8' />
4
- <title>{{title}}</title>
5
- {{#if favicon}}
6
- <link rel='icon' type='image/png' href='{{favicon}}' />
7
- {{/if}}
8
- <!-- needed for adaptive design -->
9
- <meta name='viewport' content='width=device-width, initial-scale=1' />
10
- <style>
11
- body { padding: 0; margin: 0; }
12
- </style>
13
- {{{redocHead}}}
14
- <link
15
- href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600|Source+Code+Pro:400:700'
16
- rel='stylesheet'
17
- />
18
- </head>
19
-
20
- <body>
21
- {{{redocHTML}}}
22
- </body>
23
-
24
- </html>