docusaurus-theme-openapi-docs 0.0.0-1000

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 (312) hide show
  1. package/LICENSE +21 -0
  2. package/babel.config.js +35 -0
  3. package/lib/index.d.ts +2 -0
  4. package/lib/index.js +81 -0
  5. package/lib/markdown/createDescription.d.ts +1 -0
  6. package/lib/markdown/createDescription.js +15 -0
  7. package/lib/markdown/schema.d.ts +3 -0
  8. package/lib/markdown/schema.js +149 -0
  9. package/lib/markdown/utils.d.ts +10 -0
  10. package/lib/markdown/utils.js +49 -0
  11. package/lib/markdown/utils.test.d.ts +1 -0
  12. package/lib/markdown/utils.test.js +43 -0
  13. package/lib/theme/ApiExplorer/Accept/index.d.ts +3 -0
  14. package/lib/theme/ApiExplorer/Accept/index.js +38 -0
  15. package/lib/theme/ApiExplorer/Accept/slice.d.ts +11 -0
  16. package/lib/theme/ApiExplorer/Accept/slice.js +22 -0
  17. package/lib/theme/ApiExplorer/ApiCodeBlock/Container/_Container.scss +7 -0
  18. package/lib/theme/ApiExplorer/ApiCodeBlock/Container/index.d.ts +4 -0
  19. package/lib/theme/ApiExplorer/ApiCodeBlock/Container/index.js +35 -0
  20. package/lib/theme/ApiExplorer/ApiCodeBlock/Content/Element.d.ts +3 -0
  21. package/lib/theme/ApiExplorer/ApiCodeBlock/Content/Element.js +41 -0
  22. package/lib/theme/ApiExplorer/ApiCodeBlock/Content/String.d.ts +3 -0
  23. package/lib/theme/ApiExplorer/ApiCodeBlock/Content/String.js +153 -0
  24. package/lib/theme/ApiExplorer/ApiCodeBlock/Content/_Content.scss +91 -0
  25. package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
  26. package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.d.ts +3 -0
  27. package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.js +147 -0
  28. package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
  29. package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.d.ts +6 -0
  30. package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.js +58 -0
  31. package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
  32. package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.d.ts +14 -0
  33. package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.js +248 -0
  34. package/lib/theme/ApiExplorer/ApiCodeBlock/Line/_Line.scss +34 -0
  35. package/lib/theme/ApiExplorer/ApiCodeBlock/Line/index.d.ts +3 -0
  36. package/lib/theme/ApiExplorer/ApiCodeBlock/Line/index.js +59 -0
  37. package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
  38. package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.d.ts +7 -0
  39. package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.js +51 -0
  40. package/lib/theme/ApiExplorer/ApiCodeBlock/index.d.ts +3 -0
  41. package/lib/theme/ApiExplorer/ApiCodeBlock/index.js +110 -0
  42. package/lib/theme/ApiExplorer/Authorization/auth-types.d.ts +3 -0
  43. package/lib/theme/ApiExplorer/Authorization/auth-types.js +28 -0
  44. package/lib/theme/ApiExplorer/Authorization/index.d.ts +3 -0
  45. package/lib/theme/ApiExplorer/Authorization/index.js +160 -0
  46. package/lib/theme/ApiExplorer/Authorization/slice.d.ts +40 -0
  47. package/lib/theme/ApiExplorer/Authorization/slice.js +102 -0
  48. package/lib/theme/ApiExplorer/Body/index.d.ts +10 -0
  49. package/lib/theme/ApiExplorer/Body/index.js +381 -0
  50. package/lib/theme/ApiExplorer/Body/json2xml.js +43 -0
  51. package/lib/theme/ApiExplorer/Body/slice.d.ts +82 -0
  52. package/lib/theme/ApiExplorer/Body/slice.js +97 -0
  53. package/lib/theme/ApiExplorer/CodeSnippets/code-snippets-types.d.ts +21 -0
  54. package/lib/theme/ApiExplorer/CodeSnippets/code-snippets-types.js +8 -0
  55. package/lib/theme/ApiExplorer/CodeSnippets/index.d.ts +10 -0
  56. package/lib/theme/ApiExplorer/CodeSnippets/index.js +389 -0
  57. package/lib/theme/ApiExplorer/CodeSnippets/languages.d.ts +5 -0
  58. package/lib/theme/ApiExplorer/CodeSnippets/languages.js +95 -0
  59. package/lib/theme/ApiExplorer/CodeSnippets/languages.json +1290 -0
  60. package/lib/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +501 -0
  61. package/lib/theme/ApiExplorer/CodeTabs/index.d.ts +15 -0
  62. package/lib/theme/ApiExplorer/CodeTabs/index.js +271 -0
  63. package/lib/theme/ApiExplorer/ContentType/index.d.ts +3 -0
  64. package/lib/theme/ApiExplorer/ContentType/index.js +40 -0
  65. package/lib/theme/ApiExplorer/ContentType/slice.d.ts +11 -0
  66. package/lib/theme/ApiExplorer/ContentType/slice.js +22 -0
  67. package/lib/theme/ApiExplorer/Export/index.d.ts +3 -0
  68. package/lib/theme/ApiExplorer/Export/index.js +57 -0
  69. package/lib/theme/ApiExplorer/FloatingButton/_FloatingButton.scss +27 -0
  70. package/lib/theme/ApiExplorer/FloatingButton/index.d.ts +8 -0
  71. package/lib/theme/ApiExplorer/FloatingButton/index.js +28 -0
  72. package/lib/theme/ApiExplorer/FormFileUpload/_FormFileUpload.scss +74 -0
  73. package/lib/theme/ApiExplorer/FormFileUpload/index.d.ts +7 -0
  74. package/lib/theme/ApiExplorer/FormFileUpload/index.js +173 -0
  75. package/lib/theme/ApiExplorer/FormItem/_FormItem.scss +21 -0
  76. package/lib/theme/ApiExplorer/FormItem/index.d.ts +10 -0
  77. package/lib/theme/ApiExplorer/FormItem/index.js +44 -0
  78. package/lib/theme/ApiExplorer/FormMultiSelect/_FormMultiSelect.scss +30 -0
  79. package/lib/theme/ApiExplorer/FormMultiSelect/index.d.ts +9 -0
  80. package/lib/theme/ApiExplorer/FormMultiSelect/index.js +51 -0
  81. package/lib/theme/ApiExplorer/FormSelect/_FormSelect.scss +43 -0
  82. package/lib/theme/ApiExplorer/FormSelect/index.d.ts +8 -0
  83. package/lib/theme/ApiExplorer/FormSelect/index.js +35 -0
  84. package/lib/theme/ApiExplorer/FormTextInput/_FormTextInput.scss +34 -0
  85. package/lib/theme/ApiExplorer/FormTextInput/index.d.ts +9 -0
  86. package/lib/theme/ApiExplorer/FormTextInput/index.js +73 -0
  87. package/lib/theme/ApiExplorer/LiveEditor/_LiveEditor.scss +15 -0
  88. package/lib/theme/ApiExplorer/LiveEditor/index.d.ts +6 -0
  89. package/lib/theme/ApiExplorer/LiveEditor/index.js +168 -0
  90. package/lib/theme/ApiExplorer/MethodEndpoint/_MethodEndpoint.scss +22 -0
  91. package/lib/theme/ApiExplorer/MethodEndpoint/index.d.ts +8 -0
  92. package/lib/theme/ApiExplorer/MethodEndpoint/index.js +86 -0
  93. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.d.ts +6 -0
  94. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.js +220 -0
  95. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.d.ts +6 -0
  96. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.js +63 -0
  97. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.d.ts +6 -0
  98. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.js +89 -0
  99. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.d.ts +6 -0
  100. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.js +63 -0
  101. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.d.ts +6 -0
  102. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.js +38 -0
  103. package/lib/theme/ApiExplorer/ParamOptions/_ParamOptions.scss +123 -0
  104. package/lib/theme/ApiExplorer/ParamOptions/index.d.ts +7 -0
  105. package/lib/theme/ApiExplorer/ParamOptions/index.js +223 -0
  106. package/lib/theme/ApiExplorer/ParamOptions/slice.d.ts +17 -0
  107. package/lib/theme/ApiExplorer/ParamOptions/slice.js +25 -0
  108. package/lib/theme/ApiExplorer/Request/_Request.scss +129 -0
  109. package/lib/theme/ApiExplorer/Request/index.d.ts +6 -0
  110. package/lib/theme/ApiExplorer/Request/index.js +396 -0
  111. package/lib/theme/ApiExplorer/Request/makeRequest.d.ts +4 -0
  112. package/lib/theme/ApiExplorer/Request/makeRequest.js +222 -0
  113. package/lib/theme/ApiExplorer/Response/_Response.scss +121 -0
  114. package/lib/theme/ApiExplorer/Response/index.d.ts +6 -0
  115. package/lib/theme/ApiExplorer/Response/index.js +193 -0
  116. package/lib/theme/ApiExplorer/Response/slice.d.ts +17 -0
  117. package/lib/theme/ApiExplorer/Response/slice.js +51 -0
  118. package/lib/theme/ApiExplorer/SecuritySchemes/index.d.ts +3 -0
  119. package/lib/theme/ApiExplorer/SecuritySchemes/index.js +380 -0
  120. package/lib/theme/ApiExplorer/Server/_Server.scss +26 -0
  121. package/lib/theme/ApiExplorer/Server/index.d.ts +3 -0
  122. package/lib/theme/ApiExplorer/Server/index.js +199 -0
  123. package/lib/theme/ApiExplorer/Server/slice.d.ts +13 -0
  124. package/lib/theme/ApiExplorer/Server/slice.js +33 -0
  125. package/lib/theme/ApiExplorer/buildPostmanRequest.d.ts +20 -0
  126. package/lib/theme/ApiExplorer/buildPostmanRequest.js +465 -0
  127. package/lib/theme/ApiExplorer/index.d.ts +7 -0
  128. package/lib/theme/ApiExplorer/index.js +41 -0
  129. package/lib/theme/ApiExplorer/persistanceMiddleware.d.ts +3 -0
  130. package/lib/theme/ApiExplorer/persistanceMiddleware.js +54 -0
  131. package/lib/theme/ApiExplorer/storage-utils.d.ts +4 -0
  132. package/lib/theme/ApiExplorer/storage-utils.js +41 -0
  133. package/lib/theme/ApiItem/Layout/index.d.ts +3 -0
  134. package/lib/theme/ApiItem/Layout/index.js +121 -0
  135. package/lib/theme/ApiItem/Layout/styles.module.css +17 -0
  136. package/lib/theme/ApiItem/hooks.d.ts +12 -0
  137. package/lib/theme/ApiItem/hooks.js +13 -0
  138. package/lib/theme/ApiItem/index.d.ts +2 -0
  139. package/lib/theme/ApiItem/index.js +238 -0
  140. package/lib/theme/ApiItem/store.d.ts +46 -0
  141. package/lib/theme/ApiItem/store.js +53 -0
  142. package/lib/theme/ApiLogo/index.d.ts +2 -0
  143. package/lib/theme/ApiLogo/index.js +51 -0
  144. package/lib/theme/ApiTabs/_ApiTabs.scss +142 -0
  145. package/lib/theme/ApiTabs/index.d.ts +7 -0
  146. package/lib/theme/ApiTabs/index.js +270 -0
  147. package/lib/theme/ArrayBrackets/index.d.ts +3 -0
  148. package/lib/theme/ArrayBrackets/index.js +50 -0
  149. package/lib/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +98 -0
  150. package/lib/theme/DiscriminatorTabs/index.d.ts +3 -0
  151. package/lib/theme/DiscriminatorTabs/index.js +258 -0
  152. package/lib/theme/Markdown/Details/_Details.scss +122 -0
  153. package/lib/theme/Markdown/index.js +179 -0
  154. package/lib/theme/MimeTabs/_MimeTabs.scss +70 -0
  155. package/lib/theme/MimeTabs/index.d.ts +6 -0
  156. package/lib/theme/MimeTabs/index.js +286 -0
  157. package/lib/theme/OperationTabs/_OperationTabs.scss +72 -0
  158. package/lib/theme/OperationTabs/index.d.ts +3 -0
  159. package/lib/theme/OperationTabs/index.js +248 -0
  160. package/lib/theme/ParamsDetails/index.d.ts +6 -0
  161. package/lib/theme/ParamsDetails/index.js +85 -0
  162. package/lib/theme/ParamsItem/_ParamsItem.scss +54 -0
  163. package/lib/theme/ParamsItem/index.d.ts +25 -0
  164. package/lib/theme/ParamsItem/index.js +218 -0
  165. package/lib/theme/RequestSchema/index.d.ts +15 -0
  166. package/lib/theme/RequestSchema/index.js +194 -0
  167. package/lib/theme/ResponseExamples/index.d.ts +18 -0
  168. package/lib/theme/ResponseExamples/index.js +193 -0
  169. package/lib/theme/ResponseHeaders/index.d.ts +13 -0
  170. package/lib/theme/ResponseHeaders/index.js +39 -0
  171. package/lib/theme/ResponseSamples/_ResponseSamples.scss +3 -0
  172. package/lib/theme/ResponseSamples/index.d.ts +8 -0
  173. package/lib/theme/ResponseSamples/index.js +27 -0
  174. package/lib/theme/ResponseSchema/index.d.ts +15 -0
  175. package/lib/theme/ResponseSchema/index.js +159 -0
  176. package/lib/theme/Schema/index.d.ts +8 -0
  177. package/lib/theme/Schema/index.js +885 -0
  178. package/lib/theme/SchemaItem/_SchemaItem.scss +89 -0
  179. package/lib/theme/SchemaItem/index.d.ts +12 -0
  180. package/lib/theme/SchemaItem/index.js +213 -0
  181. package/lib/theme/SchemaTabs/_SchemaTabs.scss +61 -0
  182. package/lib/theme/SchemaTabs/index.d.ts +3 -0
  183. package/lib/theme/SchemaTabs/index.js +255 -0
  184. package/lib/theme/SkeletonLoader/index.d.ts +6 -0
  185. package/lib/theme/SkeletonLoader/index.js +20 -0
  186. package/lib/theme/StatusCodes/index.d.ts +9 -0
  187. package/lib/theme/StatusCodes/index.js +81 -0
  188. package/lib/theme/styles.scss +212 -0
  189. package/lib/types.d.ts +157 -0
  190. package/lib/types.js +8 -0
  191. package/package.json +83 -0
  192. package/src/index.ts +85 -0
  193. package/src/markdown/createDescription.ts +13 -0
  194. package/src/markdown/schema.ts +181 -0
  195. package/src/markdown/utils.test.ts +49 -0
  196. package/src/markdown/utils.ts +59 -0
  197. package/src/plugin-content-docs.d.ts +20 -0
  198. package/src/postman-code-generators.d.ts +9 -0
  199. package/src/react-magic-dropzone.d.ts +9 -0
  200. package/src/theme/ApiExplorer/Accept/index.tsx +36 -0
  201. package/src/theme/ApiExplorer/Accept/slice.ts +29 -0
  202. package/src/theme/ApiExplorer/ApiCodeBlock/Container/_Container.scss +7 -0
  203. package/src/theme/ApiExplorer/ApiCodeBlock/Container/index.tsx +32 -0
  204. package/src/theme/ApiExplorer/ApiCodeBlock/Content/Element.tsx +34 -0
  205. package/src/theme/ApiExplorer/ApiCodeBlock/Content/String.tsx +134 -0
  206. package/src/theme/ApiExplorer/ApiCodeBlock/Content/_Content.scss +91 -0
  207. package/src/theme/ApiExplorer/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
  208. package/src/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.tsx +79 -0
  209. package/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
  210. package/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.tsx +55 -0
  211. package/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
  212. package/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.tsx +166 -0
  213. package/src/theme/ApiExplorer/ApiCodeBlock/Line/_Line.scss +34 -0
  214. package/src/theme/ApiExplorer/ApiCodeBlock/Line/index.tsx +48 -0
  215. package/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
  216. package/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.tsx +54 -0
  217. package/src/theme/ApiExplorer/ApiCodeBlock/index.tsx +45 -0
  218. package/src/theme/ApiExplorer/Authorization/auth-types.ts +30 -0
  219. package/src/theme/ApiExplorer/Authorization/index.tsx +158 -0
  220. package/src/theme/ApiExplorer/Authorization/slice.ts +146 -0
  221. package/src/theme/ApiExplorer/Body/index.tsx +376 -0
  222. package/src/theme/ApiExplorer/Body/json2xml.js +43 -0
  223. package/src/theme/ApiExplorer/Body/slice.ts +133 -0
  224. package/src/theme/ApiExplorer/CodeSnippets/code-snippets-types.ts +57 -0
  225. package/src/theme/ApiExplorer/CodeSnippets/index.tsx +338 -0
  226. package/src/theme/ApiExplorer/CodeSnippets/languages.json +1290 -0
  227. package/src/theme/ApiExplorer/CodeSnippets/languages.ts +96 -0
  228. package/src/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +501 -0
  229. package/src/theme/ApiExplorer/CodeTabs/index.tsx +248 -0
  230. package/src/theme/ApiExplorer/ContentType/index.tsx +38 -0
  231. package/src/theme/ApiExplorer/ContentType/slice.ts +29 -0
  232. package/src/theme/ApiExplorer/Export/index.tsx +47 -0
  233. package/src/theme/ApiExplorer/FloatingButton/_FloatingButton.scss +27 -0
  234. package/src/theme/ApiExplorer/FloatingButton/index.tsx +29 -0
  235. package/src/theme/ApiExplorer/FormFileUpload/_FormFileUpload.scss +74 -0
  236. package/src/theme/ApiExplorer/FormFileUpload/index.tsx +119 -0
  237. package/src/theme/ApiExplorer/FormItem/_FormItem.scss +21 -0
  238. package/src/theme/ApiExplorer/FormItem/index.tsx +33 -0
  239. package/src/theme/ApiExplorer/FormMultiSelect/_FormMultiSelect.scss +30 -0
  240. package/src/theme/ApiExplorer/FormMultiSelect/index.tsx +57 -0
  241. package/src/theme/ApiExplorer/FormSelect/_FormSelect.scss +43 -0
  242. package/src/theme/ApiExplorer/FormSelect/index.tsx +38 -0
  243. package/src/theme/ApiExplorer/FormTextInput/_FormTextInput.scss +34 -0
  244. package/src/theme/ApiExplorer/FormTextInput/index.tsx +80 -0
  245. package/src/theme/ApiExplorer/LiveEditor/_LiveEditor.scss +15 -0
  246. package/src/theme/ApiExplorer/LiveEditor/index.tsx +114 -0
  247. package/src/theme/ApiExplorer/MethodEndpoint/_MethodEndpoint.scss +22 -0
  248. package/src/theme/ApiExplorer/MethodEndpoint/index.tsx +91 -0
  249. package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx +175 -0
  250. package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx +64 -0
  251. package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx +86 -0
  252. package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx +65 -0
  253. package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.tsx +38 -0
  254. package/src/theme/ApiExplorer/ParamOptions/_ParamOptions.scss +123 -0
  255. package/src/theme/ApiExplorer/ParamOptions/index.tsx +146 -0
  256. package/src/theme/ApiExplorer/ParamOptions/slice.ts +37 -0
  257. package/src/theme/ApiExplorer/Request/_Request.scss +129 -0
  258. package/src/theme/ApiExplorer/Request/index.tsx +309 -0
  259. package/src/theme/ApiExplorer/Request/makeRequest.ts +254 -0
  260. package/src/theme/ApiExplorer/Response/_Response.scss +121 -0
  261. package/src/theme/ApiExplorer/Response/index.tsx +157 -0
  262. package/src/theme/ApiExplorer/Response/slice.ts +52 -0
  263. package/src/theme/ApiExplorer/SecuritySchemes/index.tsx +287 -0
  264. package/src/theme/ApiExplorer/Server/_Server.scss +26 -0
  265. package/src/theme/ApiExplorer/Server/index.tsx +130 -0
  266. package/src/theme/ApiExplorer/Server/slice.ts +39 -0
  267. package/src/theme/ApiExplorer/buildPostmanRequest.ts +526 -0
  268. package/src/theme/ApiExplorer/index.tsx +41 -0
  269. package/src/theme/ApiExplorer/persistanceMiddleware.ts +71 -0
  270. package/src/theme/ApiExplorer/postman-collection.d.ts +10 -0
  271. package/src/theme/ApiExplorer/react-modal.d.ts +8 -0
  272. package/src/theme/ApiExplorer/storage-utils.ts +39 -0
  273. package/src/theme/ApiItem/Layout/index.tsx +85 -0
  274. package/src/theme/ApiItem/Layout/styles.module.css +17 -0
  275. package/src/theme/ApiItem/hooks.ts +13 -0
  276. package/src/theme/ApiItem/index.tsx +222 -0
  277. package/src/theme/ApiItem/store.ts +51 -0
  278. package/src/theme/ApiLogo/index.tsx +52 -0
  279. package/src/theme/ApiTabs/_ApiTabs.scss +142 -0
  280. package/src/theme/ApiTabs/index.tsx +238 -0
  281. package/src/theme/ArrayBrackets/index.tsx +37 -0
  282. package/src/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +98 -0
  283. package/src/theme/DiscriminatorTabs/index.tsx +229 -0
  284. package/src/theme/Markdown/Details/_Details.scss +122 -0
  285. package/src/theme/Markdown/index.js +179 -0
  286. package/src/theme/MimeTabs/_MimeTabs.scss +70 -0
  287. package/src/theme/MimeTabs/index.tsx +257 -0
  288. package/src/theme/OperationTabs/_OperationTabs.scss +72 -0
  289. package/src/theme/OperationTabs/index.tsx +220 -0
  290. package/src/theme/ParamsDetails/index.tsx +81 -0
  291. package/src/theme/ParamsItem/_ParamsItem.scss +54 -0
  292. package/src/theme/ParamsItem/index.tsx +205 -0
  293. package/src/theme/RequestSchema/index.tsx +157 -0
  294. package/src/theme/ResponseExamples/index.tsx +192 -0
  295. package/src/theme/ResponseHeaders/index.tsx +49 -0
  296. package/src/theme/ResponseSamples/_ResponseSamples.scss +3 -0
  297. package/src/theme/ResponseSamples/index.tsx +31 -0
  298. package/src/theme/ResponseSchema/index.tsx +144 -0
  299. package/src/theme/Schema/index.tsx +939 -0
  300. package/src/theme/SchemaItem/_SchemaItem.scss +89 -0
  301. package/src/theme/SchemaItem/index.tsx +198 -0
  302. package/src/theme/SchemaTabs/_SchemaTabs.scss +61 -0
  303. package/src/theme/SchemaTabs/index.tsx +224 -0
  304. package/src/theme/SkeletonLoader/index.tsx +18 -0
  305. package/src/theme/StatusCodes/index.tsx +72 -0
  306. package/src/theme/styles.scss +212 -0
  307. package/src/theme-classic.d.ts +80 -0
  308. package/src/theme-openapi.d.ts +288 -0
  309. package/src/theme-translations.d.ts +9 -0
  310. package/src/types.ts +182 -0
  311. package/tsconfig.json +16 -0
  312. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,501 @@
1
+ :root {
2
+ --bash-background-color: transparent;
3
+ --bash-border-radius: none;
4
+ --code-tab-logo-width: 24px;
5
+ --code-tab-logo-height: 24px;
6
+ }
7
+
8
+ [data-theme="dark"] {
9
+ --bash-background-color: lightgrey;
10
+ --bash-border-radius: 20px;
11
+ }
12
+
13
+ .openapi-tabs__code-container {
14
+ margin-bottom: 1rem;
15
+
16
+ &:not(.openapi-tabs__code-container-inner) {
17
+ padding: 1rem;
18
+ background-color: var(--ifm-pre-background);
19
+ border-radius: var(--ifm-global-radius);
20
+ border: 1px solid var(--openapi-explorer-border-color);
21
+ box-shadow:
22
+ 0 2px 3px hsla(222, 8%, 43%, 0.1),
23
+ 0 8px 16px -10px hsla(222, 8%, 43%, 0.2);
24
+ transition: 300ms;
25
+
26
+ &:hover {
27
+ box-shadow:
28
+ 0 0 0 2px rgba(38, 53, 61, 0.15),
29
+ 0 2px 3px hsla(222, 8%, 43%, 0.15),
30
+ 0 16px 16px -10px hsla(222, 8%, 43%, 0.2);
31
+ }
32
+ }
33
+
34
+ .openapi-tabs__code-item {
35
+ display: flex;
36
+ flex-direction: column-reverse;
37
+ flex: 0 0 80px;
38
+ align-items: center;
39
+ padding: 0.5rem 0 !important;
40
+ margin-top: 0 !important;
41
+ margin-right: 0.5rem;
42
+ border: 1px solid transparent;
43
+ transition: 300ms;
44
+
45
+ &:not(.active):hover {
46
+ border: 1px solid var(--openapi-code-tab-border-color);
47
+ }
48
+
49
+ &:hover {
50
+ background-color: transparent;
51
+ }
52
+
53
+ span {
54
+ padding-top: 0.5rem;
55
+ color: var(--ifm-font-color-secondary);
56
+ font-size: 10px;
57
+ text-transform: uppercase;
58
+ }
59
+ }
60
+ }
61
+
62
+ .openapi-tabs__code-list-container {
63
+ display: flex;
64
+ justify-content: flex-start;
65
+ padding: 0.25rem;
66
+ padding-bottom: 0.6rem;
67
+ }
68
+
69
+ .openapi-tabs__code-content {
70
+ margin-top: unset !important;
71
+ }
72
+
73
+ .openapi-explorer__code-block code {
74
+ max-height: 200px;
75
+ font-size: var(--openapi-explorer-font-size-code);
76
+ padding-top: var(--ifm-pre-padding);
77
+ }
78
+
79
+ body[class="ReactModal__Body--open"] {
80
+ .openapi-explorer__code-block code {
81
+ max-height: 600px;
82
+ }
83
+ }
84
+
85
+ .openapi-tabs__code-item--variant {
86
+ color: var(--ifm-color-secondary);
87
+
88
+ &.active {
89
+ border-color: var(--ifm-toc-border-color);
90
+ }
91
+ }
92
+
93
+ .openapi-tabs__code-item--variant > span {
94
+ padding-top: unset !important;
95
+ padding-left: 0.5rem !important;
96
+ padding-right: 0.5rem !important;
97
+ }
98
+
99
+ .openapi-tabs__code-item--sample {
100
+ color: var(--ifm-color-secondary);
101
+
102
+ &.active {
103
+ border-color: var(--ifm-toc-border-color);
104
+ }
105
+ }
106
+
107
+ .openapi-tabs__code-item--sample > span {
108
+ padding-top: unset !important;
109
+ padding-left: 0.5rem !important;
110
+ padding-right: 0.5rem !important;
111
+ }
112
+
113
+ .openapi-tabs__code-item--python {
114
+ color: var(--ifm-color-success);
115
+
116
+ &::after {
117
+ content: "";
118
+ width: var(--code-tab-logo-width);
119
+ height: var(--code-tab-logo-height);
120
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg")
121
+ no-repeat;
122
+ margin-block: auto;
123
+ }
124
+
125
+ &.active {
126
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-python);
127
+ border-color: var(--openapi-code-tab-border-color-python);
128
+ }
129
+ }
130
+
131
+ .openapi-tabs__code-item--go {
132
+ color: var(--ifm-color-info);
133
+
134
+ &::after {
135
+ content: "";
136
+ width: var(--code-tab-logo-width);
137
+ height: var(--code-tab-logo-height);
138
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/go/go-original-wordmark.svg")
139
+ no-repeat;
140
+ margin-block: auto;
141
+ }
142
+
143
+ &.active {
144
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-go);
145
+ border-color: var(--openapi-code-tab-border-color-go);
146
+ }
147
+ }
148
+
149
+ .openapi-tabs__code-item--dart {
150
+ color: var(--ifm-color-info);
151
+
152
+ &::after {
153
+ content: "";
154
+ width: var(--code-tab-logo-width);
155
+ height: var(--code-tab-logo-height);
156
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/dart/dart-original.svg")
157
+ no-repeat;
158
+ margin-block: auto;
159
+ }
160
+
161
+ &.active {
162
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-dart);
163
+ border-color: var(--openapi-code-tab-border-color-dart);
164
+ }
165
+ }
166
+
167
+ .openapi-tabs__code-item--javascript {
168
+ color: var(--ifm-color-warning);
169
+
170
+ &::after {
171
+ content: "";
172
+ width: var(--code-tab-logo-width);
173
+ height: var(--code-tab-logo-height);
174
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg")
175
+ no-repeat;
176
+ margin-block: auto;
177
+ }
178
+
179
+ &.active {
180
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-js);
181
+ border-color: var(--openapi-code-tab-border-color-js);
182
+ }
183
+ }
184
+
185
+ .openapi-tabs__code-item--curl {
186
+ color: var(--ifm-color-danger);
187
+
188
+ &::after {
189
+ content: "";
190
+ width: var(--code-tab-logo-width);
191
+ height: var(--code-tab-logo-height);
192
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/bash/bash-plain.svg")
193
+ no-repeat;
194
+ margin-block: auto;
195
+ background-color: var(--bash-background-color);
196
+ border-radius: var(--bash-border-radius);
197
+ }
198
+
199
+ &.active {
200
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-curl);
201
+ border-color: var(--ifm-color-danger);
202
+ }
203
+ }
204
+
205
+ .openapi-tabs__code-item--ruby {
206
+ color: var(--ifm-color-danger);
207
+
208
+ &::after {
209
+ content: "";
210
+ width: var(--code-tab-logo-width);
211
+ height: var(--code-tab-logo-height);
212
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/ruby/ruby-plain.svg")
213
+ no-repeat;
214
+ margin-block: auto;
215
+ }
216
+
217
+ &.active {
218
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-ruby);
219
+ border-color: var(--openapi-code-tab-border-color-ruby);
220
+ }
221
+ }
222
+
223
+ .openapi-tabs__code-item--csharp {
224
+ color: var(--ifm-color-gray-500);
225
+
226
+ &::after {
227
+ content: "";
228
+ width: var(--code-tab-logo-width);
229
+ height: var(--code-tab-logo-height);
230
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/csharp/csharp-original.svg")
231
+ no-repeat;
232
+ margin-block: auto;
233
+ }
234
+
235
+ &.active {
236
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-csharp);
237
+ border-color: var(--openapi-code-tab-border-color-csharp);
238
+ }
239
+ }
240
+
241
+ .openapi-tabs__code-item--r {
242
+ color: var(--ifm-color-gray-500);
243
+
244
+ &::after {
245
+ content: "";
246
+ width: var(--code-tab-logo-width);
247
+ height: var(--code-tab-logo-height);
248
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/r/r-original.svg")
249
+ no-repeat;
250
+ margin-block: auto;
251
+ }
252
+
253
+ &.active {
254
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-r);
255
+ border-color: var(--openapi-code-tab-border-color-r);
256
+ }
257
+ }
258
+
259
+ .openapi-tabs__code-item--swift {
260
+ color: var(--ifm-color-danger);
261
+
262
+ &::after {
263
+ content: "";
264
+ width: var(--code-tab-logo-width);
265
+ height: var(--code-tab-logo-height);
266
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/swift/swift-original.svg")
267
+ no-repeat;
268
+ margin-block: auto;
269
+ }
270
+
271
+ &.active {
272
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-swift);
273
+ border-color: var(--openapi-code-tab-border-color-swift);
274
+ }
275
+ }
276
+
277
+ .openapi-tabs__code-item--c {
278
+ color: var(--ifm-color-info);
279
+
280
+ &::after {
281
+ content: "";
282
+ width: var(--code-tab-logo-width);
283
+ height: var(--code-tab-logo-height);
284
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/c/c-original.svg")
285
+ no-repeat;
286
+ margin-block: auto;
287
+ }
288
+
289
+ &.active {
290
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-c);
291
+ border-color: var(--openapi-code-tab-border-color-c);
292
+ }
293
+ }
294
+
295
+ .openapi-tabs__code-item--objective-c {
296
+ color: var(--ifm-color-info);
297
+
298
+ &::after {
299
+ content: "";
300
+ width: var(--code-tab-logo-width);
301
+ height: var(--code-tab-logo-height);
302
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/objectivec/objectivec-plain.svg")
303
+ no-repeat;
304
+ margin-block: auto;
305
+ }
306
+
307
+ &.active {
308
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-objective-c);
309
+ border-color: var(--openapi-code-tab-border-color-objective-c);
310
+ }
311
+ }
312
+
313
+ .openapi-tabs__code-item--ocaml {
314
+ color: var(--ifm-color-warning);
315
+
316
+ &::after {
317
+ content: "";
318
+ width: var(--code-tab-logo-width);
319
+ height: var(--code-tab-logo-height);
320
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/ocaml/ocaml-original.svg")
321
+ no-repeat;
322
+ margin-block: auto;
323
+ }
324
+
325
+ &.active {
326
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-objective-ocaml);
327
+ border-color: var(--openapi-code-tab-border-color-objective-ocaml);
328
+ }
329
+ }
330
+
331
+ .openapi-tabs__code-item--nodejs {
332
+ color: var(--ifm-color-success);
333
+
334
+ &::after {
335
+ content: "";
336
+ width: var(--code-tab-logo-width);
337
+ height: var(--code-tab-logo-height);
338
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/nodejs/nodejs-original.svg")
339
+ no-repeat;
340
+ margin-block: auto;
341
+ }
342
+
343
+ &.active {
344
+ box-shadow: 0 0 0 3px var(--opeanpi-code-tab-shadow-color-nodejs);
345
+ border-color: var(--openapi-code-tab-border-color-nodejs);
346
+ }
347
+ }
348
+
349
+ .openapi-tabs__code-item--php {
350
+ color: var(--ifm-color-gray-500);
351
+
352
+ &::after {
353
+ content: "";
354
+ width: var(--code-tab-logo-width);
355
+ height: var(--code-tab-logo-height);
356
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/php/php-original.svg")
357
+ no-repeat;
358
+ margin-block: auto;
359
+ }
360
+
361
+ &.active {
362
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-php);
363
+ border-color: var(--openapi-code-tab-border-color-php);
364
+ }
365
+ }
366
+
367
+ .openapi-tabs__code-item--kotlin {
368
+ color: var(--ifm-color-gray-500);
369
+
370
+ &::after {
371
+ content: "";
372
+ width: var(--code-tab-logo-width);
373
+ height: var(--code-tab-logo-height);
374
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/kotlin/kotlin-original.svg")
375
+ no-repeat;
376
+ margin-block: auto;
377
+ }
378
+
379
+ &.active {
380
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-kotlin);
381
+ border-color: var(--openapi-code-tab-border-color-kotlin);
382
+ }
383
+ }
384
+
385
+ .openapi-tabs__code-item--rust {
386
+ color: var(--ifm-color-gray-500);
387
+
388
+ &::after {
389
+ content: "";
390
+ width: var(--code-tab-logo-width);
391
+ height: var(--code-tab-logo-height);
392
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/rust/rust-original.svg")
393
+ no-repeat;
394
+ margin-block: auto;
395
+ }
396
+
397
+ &.active {
398
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-rust);
399
+ border-color: var(--openapi-code-tab-border-color-rust);
400
+ }
401
+ }
402
+
403
+ .openapi-tabs__code-item--java {
404
+ color: var(--ifm-color-warning);
405
+
406
+ &::after {
407
+ content: "";
408
+ width: var(--code-tab-logo-width);
409
+ height: var(--code-tab-logo-height);
410
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/java/java-original.svg")
411
+ no-repeat;
412
+ margin-block: auto;
413
+ }
414
+
415
+ &.active {
416
+ box-shadow: 0 0 0 3px var(--openapi-code-tab-shadow-color-java);
417
+ border-color: var(--openapi-code-tab-border-color-java);
418
+ }
419
+ }
420
+
421
+ .openapi-tabs__code-item--powershell {
422
+ color: var(--ifm-color-info);
423
+
424
+ &::after {
425
+ content: "";
426
+ width: var(--code-tab-logo-width);
427
+ height: var(--code-tab-logo-height);
428
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/windows8/windows8-original.svg")
429
+ no-repeat;
430
+ margin-block: auto;
431
+ }
432
+
433
+ &.active {
434
+ box-shadow: 0 0 0 3px var(--opeanpi-code-tab-shadow-color-powershell);
435
+ border-color: var(--openapi-code-tab-border-color-powershell);
436
+ }
437
+ }
438
+
439
+ .openapi-tabs__code-item--http {
440
+ color: var(--ifm-color-gray-500);
441
+ display: flex;
442
+ align-items: center;
443
+ justify-content: center;
444
+ position: relative;
445
+
446
+ &::after {
447
+ content: "";
448
+ display: inline-block;
449
+ width: 32px; /* Explicitly setting width to 32 pixels */
450
+ height: 32px; /* Explicitly setting height to 32 pixels */
451
+ background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDIyTDggMTZMMTIgMTBNMjAgMjJMMjQgMTZMIDIwIDEwIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=");
452
+ background-size: contain;
453
+ background-repeat: no-repeat;
454
+ background-position: center; /* Center the SVG */
455
+ margin-top: 0.5rem;
456
+ }
457
+
458
+ &.active {
459
+ box-shadow: 0 0 0 3px var(--opeanpi-code-tab-shadow-color-http);
460
+ border-color: var(--openapi-code-tab-border-color-http);
461
+ }
462
+ }
463
+
464
+ .openapi-tabs__code-item--shell {
465
+ color: var(--ifm-color-gray-500);
466
+ display: flex;
467
+ align-items: center;
468
+ justify-content: center;
469
+ position: relative;
470
+
471
+ &::after {
472
+ content: "";
473
+ display: inline-block;
474
+ width: 32px; /* Explicitly setting width to 32 pixels */
475
+ height: 32px; /* Explicitly setting height to 32 pixels */
476
+ background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDIyTDggMTZMMTIgMTBNMjAgMjJMMjQgMTZMIDIwIDEwIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=");
477
+ background-size: contain;
478
+ background-repeat: no-repeat;
479
+ background-position: center; /* Center the SVG */
480
+ margin-top: 0.5rem;
481
+ }
482
+
483
+ &.active {
484
+ box-shadow: 0 0 0 3px var(--opeanpi-code-tab-shadow-color-shell);
485
+ border-color: var(--openapi-code-tab-border-color-shell);
486
+ }
487
+ }
488
+
489
+ @media only screen and (min-width: 768px) and (max-width: 996px) {
490
+ .openapi-tabs__code-list {
491
+ justify-content: space-around;
492
+ }
493
+ }
494
+
495
+ .ReactModal__Body--open {
496
+ overflow: hidden !important;
497
+ }
498
+
499
+ .openapi-modal--open {
500
+ background-color: rgba(0, 0, 0, 0.7) !important;
501
+ }
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { type TabProps } from "@docusaurus/theme-common/internal";
3
+ import { Language } from "@theme/ApiExplorer/CodeSnippets";
4
+ export interface Props {
5
+ action: {
6
+ [key: string]: React.Dispatch<any>;
7
+ };
8
+ currentLanguage: Language;
9
+ languageSet: Language[];
10
+ includeVariant: boolean;
11
+ }
12
+ export interface CodeTabsProps extends Props, TabProps {
13
+ includeSample?: boolean;
14
+ }
15
+ export default function CodeTabs(props: CodeTabsProps & Props): React.JSX.Element;