docusaurus-theme-openapi-docs 0.0.0-619 → 0.0.0-685

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 (390) hide show
  1. package/lib/index.d.ts +2 -0
  2. package/lib/index.js +53 -27
  3. package/lib/markdown/createDescription.d.ts +1 -0
  4. package/lib/markdown/createDescription.js +8 -11
  5. package/lib/markdown/schema.d.ts +3 -0
  6. package/lib/markdown/schema.js +138 -139
  7. package/lib/markdown/utils.d.ts +8 -0
  8. package/lib/markdown/utils.js +36 -42
  9. package/lib/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/index.js +165 -0
  10. package/lib/theme/ApiDemoPanel/ApiCodeBlock/Line/_Line.scss +46 -0
  11. package/lib/theme/ApiExplorer/Accept/index.d.ts +3 -0
  12. package/lib/theme/ApiExplorer/Accept/index.js +38 -0
  13. package/lib/theme/ApiExplorer/Accept/slice.d.ts +11 -0
  14. package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/Accept/slice.js +7 -5
  15. package/lib/theme/ApiExplorer/ApiCodeBlock/Container/_Container.scss +7 -0
  16. package/lib/theme/ApiExplorer/ApiCodeBlock/Container/index.js +29 -0
  17. package/lib/theme/ApiExplorer/ApiCodeBlock/Content/Element.js +30 -0
  18. package/lib/theme/ApiExplorer/ApiCodeBlock/Content/String.js +134 -0
  19. package/lib/theme/ApiExplorer/ApiCodeBlock/Content/_Content.scss +91 -0
  20. package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
  21. package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.js +74 -0
  22. package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
  23. package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.js +47 -0
  24. package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
  25. package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.js +156 -0
  26. package/lib/theme/ApiExplorer/ApiCodeBlock/Line/_Line.scss +46 -0
  27. package/lib/theme/ApiExplorer/ApiCodeBlock/Line/index.js +47 -0
  28. package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
  29. package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.js +44 -0
  30. package/lib/theme/ApiExplorer/ApiCodeBlock/index.js +40 -0
  31. package/lib/theme/ApiExplorer/Authorization/auth-types.d.ts +3 -0
  32. package/lib/theme/{ApiDemoPanel → ApiExplorer}/Authorization/auth-types.js +4 -10
  33. package/lib/theme/ApiExplorer/Authorization/index.d.ts +3 -0
  34. package/lib/theme/ApiExplorer/Authorization/index.js +157 -0
  35. package/lib/theme/ApiExplorer/Authorization/slice.d.ts +40 -0
  36. package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/Authorization/slice.js +23 -16
  37. package/lib/theme/ApiExplorer/Body/index.d.ts +10 -0
  38. package/lib/theme/ApiExplorer/Body/index.js +363 -0
  39. package/lib/theme/ApiExplorer/Body/slice.d.ts +82 -0
  40. package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/Body/slice.js +21 -12
  41. package/lib/theme/ApiExplorer/CodeSnippets/index.d.ts +20 -0
  42. package/lib/theme/ApiExplorer/CodeSnippets/index.js +406 -0
  43. package/lib/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +291 -0
  44. package/lib/theme/ApiExplorer/CodeTabs/index.js +174 -0
  45. package/lib/theme/ApiExplorer/ContentType/index.d.ts +3 -0
  46. package/lib/theme/ApiExplorer/ContentType/index.js +40 -0
  47. package/lib/theme/ApiExplorer/ContentType/slice.d.ts +11 -0
  48. package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/ContentType/slice.js +7 -5
  49. package/lib/theme/ApiExplorer/Export/index.d.ts +3 -0
  50. package/lib/theme/ApiExplorer/Export/index.js +57 -0
  51. package/lib/theme/ApiExplorer/FloatingButton/_FloatingButton.scss +25 -0
  52. package/lib/theme/ApiExplorer/FloatingButton/index.d.ts +8 -0
  53. package/lib/theme/ApiExplorer/FloatingButton/index.js +28 -0
  54. package/{lib-next/theme/ApiDemoPanel/FormFileUpload/styles.module.css → lib/theme/ApiExplorer/FormFileUpload/_FormFileUpload.scss} +32 -35
  55. package/lib/theme/ApiExplorer/FormFileUpload/index.d.ts +7 -0
  56. package/lib/theme/ApiExplorer/FormFileUpload/index.js +161 -0
  57. package/lib/theme/ApiExplorer/FormItem/_FormItem.scss +21 -0
  58. package/lib/theme/ApiExplorer/FormItem/index.d.ts +10 -0
  59. package/lib/theme/ApiExplorer/FormItem/index.js +44 -0
  60. package/lib/theme/ApiExplorer/FormMultiSelect/_FormMultiSelect.scss +30 -0
  61. package/lib/theme/ApiExplorer/FormMultiSelect/index.d.ts +9 -0
  62. package/lib/theme/ApiExplorer/FormMultiSelect/index.js +51 -0
  63. package/{src/theme/ApiDemoPanel/FormSelect/styles.module.css → lib/theme/ApiExplorer/FormSelect/_FormSelect.scss} +15 -23
  64. package/lib/theme/ApiExplorer/FormSelect/index.d.ts +8 -0
  65. package/lib/theme/ApiExplorer/FormSelect/index.js +35 -0
  66. package/lib/theme/ApiExplorer/FormTextInput/_FormTextInput.scss +34 -0
  67. package/lib/theme/ApiExplorer/FormTextInput/index.d.ts +9 -0
  68. package/lib/theme/ApiExplorer/FormTextInput/index.js +73 -0
  69. package/lib/theme/ApiExplorer/LiveEditor/_LiveEditor.scss +15 -0
  70. package/lib/theme/ApiExplorer/LiveEditor/index.d.ts +6 -0
  71. package/lib/theme/ApiExplorer/LiveEditor/index.js +154 -0
  72. package/lib/theme/ApiExplorer/MethodEndpoint/_MethodEndpoint.scss +22 -0
  73. package/lib/theme/ApiExplorer/MethodEndpoint/index.d.ts +7 -0
  74. package/lib/theme/ApiExplorer/MethodEndpoint/index.js +83 -0
  75. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.d.ts +6 -0
  76. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.js +194 -0
  77. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.d.ts +6 -0
  78. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.js +63 -0
  79. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.d.ts +6 -0
  80. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.js +89 -0
  81. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.d.ts +6 -0
  82. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.js +63 -0
  83. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.d.ts +6 -0
  84. package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.js +38 -0
  85. package/{src/theme/ApiDemoPanel/ParamOptions/styles.module.css → lib/theme/ApiExplorer/ParamOptions/_ParamOptions.scss} +38 -92
  86. package/lib/theme/ApiExplorer/ParamOptions/index.d.ts +7 -0
  87. package/lib/theme/ApiExplorer/ParamOptions/index.js +210 -0
  88. package/lib/theme/ApiExplorer/ParamOptions/slice.d.ts +17 -0
  89. package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/ParamOptions/slice.js +7 -5
  90. package/lib/theme/ApiExplorer/Request/_Request.scss +122 -0
  91. package/lib/theme/ApiExplorer/Request/index.d.ts +6 -0
  92. package/lib/theme/ApiExplorer/Request/index.js +365 -0
  93. package/lib/theme/ApiExplorer/Request/makeRequest.d.ts +4 -0
  94. package/{lib-next/theme/ApiDemoPanel/Execute → lib/theme/ApiExplorer/Request}/makeRequest.js +10 -9
  95. package/lib/theme/ApiExplorer/Response/_Response.scss +119 -0
  96. package/lib/theme/ApiExplorer/Response/index.d.ts +6 -0
  97. package/lib/theme/ApiExplorer/Response/index.js +190 -0
  98. package/lib/theme/ApiExplorer/Response/slice.d.ts +17 -0
  99. package/lib/theme/ApiExplorer/Response/slice.js +51 -0
  100. package/lib/theme/ApiExplorer/SecuritySchemes/index.d.ts +3 -0
  101. package/lib/theme/ApiExplorer/SecuritySchemes/index.js +380 -0
  102. package/{src/theme/ApiDemoPanel/Request/styles.module.css → lib/theme/ApiExplorer/Server/_Server.scss} +15 -7
  103. package/lib/theme/ApiExplorer/Server/index.d.ts +3 -0
  104. package/lib/theme/ApiExplorer/Server/index.js +187 -0
  105. package/lib/theme/ApiExplorer/Server/slice.d.ts +13 -0
  106. package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/Server/slice.js +10 -5
  107. package/lib/theme/ApiExplorer/buildPostmanRequest.d.ts +20 -0
  108. package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/buildPostmanRequest.js +27 -40
  109. package/lib/theme/ApiExplorer/index.d.ts +7 -0
  110. package/lib/theme/ApiExplorer/index.js +37 -0
  111. package/lib/theme/ApiExplorer/persistanceMiddleware.d.ts +3 -0
  112. package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/persistanceMiddleware.js +11 -14
  113. package/lib/theme/ApiExplorer/storage-utils.d.ts +4 -0
  114. package/lib/theme/{ApiDemoPanel → ApiExplorer}/storage-utils.js +14 -13
  115. package/lib/theme/ApiItem/Layout/index.d.ts +4 -0
  116. package/lib/theme/ApiItem/Layout/index.js +78 -56
  117. package/lib/theme/ApiItem/hooks.d.ts +12 -0
  118. package/lib/theme/ApiItem/hooks.js +5 -10
  119. package/lib/theme/ApiItem/index.d.ts +4 -0
  120. package/lib/theme/ApiItem/index.js +141 -118
  121. package/lib/theme/ApiItem/store.d.ts +46 -0
  122. package/lib/theme/ApiItem/store.js +44 -34
  123. package/lib/theme/ApiLogo/index.d.ts +2 -0
  124. package/lib/theme/ApiLogo/index.js +34 -32
  125. package/lib/theme/ApiTabs/_ApiTabs.scss +140 -0
  126. package/lib/theme/ApiTabs/index.js +105 -190
  127. package/lib/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +97 -0
  128. package/lib/theme/DiscriminatorTabs/index.js +102 -189
  129. package/lib/theme/Markdown/Details/_Details.scss +119 -0
  130. package/lib/theme/MimeTabs/_MimeTabs.scss +69 -0
  131. package/lib/theme/MimeTabs/index.js +125 -199
  132. package/lib/theme/ParamsItem/_ParamsItem.scss +54 -0
  133. package/lib/theme/ParamsItem/index.js +9 -8
  134. package/lib/theme/ResponseSamples/_ResponseSamples.scss +3 -0
  135. package/lib/theme/ResponseSamples/index.js +2 -7
  136. package/lib/theme/SchemaItem/_SchemaItem.scss +89 -0
  137. package/lib/theme/SchemaItem/index.js +31 -22
  138. package/lib/theme/SchemaTabs/_SchemaTabs.scss +64 -0
  139. package/lib/theme/SchemaTabs/index.js +97 -185
  140. package/lib/theme/styles.scss +160 -0
  141. package/lib/types.d.ts +157 -0
  142. package/lib/types.js +8 -1
  143. package/package.json +17 -23
  144. package/src/index.ts +33 -3
  145. package/src/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/index.js +165 -0
  146. package/src/theme/ApiDemoPanel/ApiCodeBlock/Line/_Line.scss +46 -0
  147. package/src/theme/{ApiDemoPanel → ApiExplorer}/Accept/index.tsx +2 -2
  148. package/src/theme/ApiExplorer/ApiCodeBlock/Container/_Container.scss +7 -0
  149. package/src/theme/ApiExplorer/ApiCodeBlock/Container/index.js +29 -0
  150. package/src/theme/ApiExplorer/ApiCodeBlock/Content/Element.js +30 -0
  151. package/src/theme/ApiExplorer/ApiCodeBlock/Content/String.js +134 -0
  152. package/src/theme/ApiExplorer/ApiCodeBlock/Content/_Content.scss +91 -0
  153. package/src/theme/ApiExplorer/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
  154. package/src/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.js +74 -0
  155. package/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
  156. package/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.js +47 -0
  157. package/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
  158. package/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.js +156 -0
  159. package/src/theme/ApiExplorer/ApiCodeBlock/Line/_Line.scss +46 -0
  160. package/src/theme/ApiExplorer/ApiCodeBlock/Line/index.js +47 -0
  161. package/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
  162. package/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.js +44 -0
  163. package/src/theme/ApiExplorer/ApiCodeBlock/index.js +40 -0
  164. package/src/theme/{ApiDemoPanel → ApiExplorer}/Authorization/index.tsx +3 -3
  165. package/src/theme/{ApiDemoPanel → ApiExplorer}/Authorization/slice.ts +1 -1
  166. package/src/theme/{ApiDemoPanel → ApiExplorer}/Body/index.tsx +64 -41
  167. package/src/theme/{ApiDemoPanel/Curl → ApiExplorer/CodeSnippets}/index.tsx +94 -34
  168. package/src/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +291 -0
  169. package/src/theme/ApiExplorer/CodeTabs/index.js +174 -0
  170. package/src/theme/{ApiDemoPanel → ApiExplorer}/ContentType/index.tsx +2 -2
  171. package/src/theme/ApiExplorer/FloatingButton/_FloatingButton.scss +25 -0
  172. package/src/theme/{ApiDemoPanel → ApiExplorer}/FloatingButton/index.tsx +1 -3
  173. package/src/theme/{ApiDemoPanel/FormFileUpload/styles.module.css → ApiExplorer/FormFileUpload/_FormFileUpload.scss} +32 -35
  174. package/src/theme/{ApiDemoPanel → ApiExplorer}/FormFileUpload/index.tsx +10 -6
  175. package/src/theme/ApiExplorer/FormItem/_FormItem.scss +21 -0
  176. package/src/theme/{ApiDemoPanel → ApiExplorer}/FormItem/index.tsx +8 -12
  177. package/src/theme/ApiExplorer/FormMultiSelect/_FormMultiSelect.scss +30 -0
  178. package/src/theme/{ApiDemoPanel → ApiExplorer}/FormMultiSelect/index.tsx +6 -3
  179. package/{lib/theme/ApiDemoPanel/FormSelect/styles.module.css → src/theme/ApiExplorer/FormSelect/_FormSelect.scss} +15 -23
  180. package/src/theme/{ApiDemoPanel → ApiExplorer}/FormSelect/index.tsx +5 -3
  181. package/src/theme/ApiExplorer/FormTextInput/_FormTextInput.scss +34 -0
  182. package/src/theme/ApiExplorer/FormTextInput/index.tsx +80 -0
  183. package/src/theme/ApiExplorer/LiveEditor/_LiveEditor.scss +15 -0
  184. package/src/theme/ApiExplorer/LiveEditor/index.tsx +112 -0
  185. package/src/theme/ApiExplorer/MethodEndpoint/_MethodEndpoint.scss +22 -0
  186. package/src/theme/ApiExplorer/MethodEndpoint/index.tsx +87 -0
  187. package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx +156 -0
  188. package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx +64 -0
  189. package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx +86 -0
  190. package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx +65 -0
  191. package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.tsx +38 -0
  192. package/{lib-next/theme/ApiDemoPanel/ParamOptions/styles.module.css → src/theme/ApiExplorer/ParamOptions/_ParamOptions.scss} +38 -92
  193. package/src/theme/ApiExplorer/ParamOptions/index.tsx +145 -0
  194. package/src/theme/ApiExplorer/Request/_Request.scss +122 -0
  195. package/src/theme/ApiExplorer/Request/index.tsx +286 -0
  196. package/src/theme/{ApiDemoPanel/Execute → ApiExplorer/Request}/makeRequest.ts +9 -6
  197. package/src/theme/ApiExplorer/Response/_Response.scss +119 -0
  198. package/src/theme/ApiExplorer/Response/index.tsx +154 -0
  199. package/src/theme/{ApiDemoPanel → ApiExplorer}/Response/slice.ts +22 -1
  200. package/src/theme/{ApiDemoPanel → ApiExplorer}/SecuritySchemes/index.tsx +5 -3
  201. package/{lib/theme/ApiDemoPanel/Request/styles.module.css → src/theme/ApiExplorer/Server/_Server.scss} +15 -7
  202. package/src/theme/{ApiDemoPanel → ApiExplorer}/Server/index.tsx +13 -17
  203. package/src/theme/{ApiDemoPanel → ApiExplorer}/buildPostmanRequest.ts +2 -2
  204. package/src/theme/{ApiDemoPanel → ApiExplorer}/index.tsx +14 -17
  205. package/src/theme/{ApiDemoPanel → ApiExplorer}/persistanceMiddleware.ts +1 -1
  206. package/src/theme/ApiItem/index.tsx +7 -7
  207. package/src/theme/ApiItem/store.ts +7 -7
  208. package/src/theme/ApiTabs/_ApiTabs.scss +140 -0
  209. package/src/theme/ApiTabs/index.js +105 -190
  210. package/src/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +97 -0
  211. package/src/theme/DiscriminatorTabs/index.js +102 -189
  212. package/src/theme/Markdown/Details/_Details.scss +119 -0
  213. package/src/theme/MimeTabs/_MimeTabs.scss +69 -0
  214. package/src/theme/MimeTabs/index.js +125 -199
  215. package/src/theme/ParamsItem/_ParamsItem.scss +54 -0
  216. package/src/theme/ParamsItem/index.js +9 -8
  217. package/src/theme/ResponseSamples/_ResponseSamples.scss +3 -0
  218. package/src/theme/ResponseSamples/index.js +2 -7
  219. package/src/theme/SchemaItem/_SchemaItem.scss +89 -0
  220. package/src/theme/SchemaItem/index.js +31 -22
  221. package/src/theme/SchemaTabs/_SchemaTabs.scss +64 -0
  222. package/src/theme/SchemaTabs/index.js +97 -185
  223. package/src/theme/styles.scss +160 -0
  224. package/src/theme-openapi.d.ts +90 -47
  225. package/tsconfig.json +6 -3
  226. package/lib/postman-code-generators.d.ts +0 -9
  227. package/lib/react-magic-dropzone.d.ts +0 -9
  228. package/lib/theme/ApiDemoPanel/Accept/index.js +0 -32
  229. package/lib/theme/ApiDemoPanel/Accept/slice.js +0 -31
  230. package/lib/theme/ApiDemoPanel/Authorization/index.js +0 -107
  231. package/lib/theme/ApiDemoPanel/Authorization/slice.js +0 -123
  232. package/lib/theme/ApiDemoPanel/Body/index.js +0 -256
  233. package/lib/theme/ApiDemoPanel/Body/slice.js +0 -102
  234. package/lib/theme/ApiDemoPanel/CodeTabs/index.js +0 -161
  235. package/lib/theme/ApiDemoPanel/CodeTabs/styles.module.css +0 -17
  236. package/lib/theme/ApiDemoPanel/ContentType/index.js +0 -32
  237. package/lib/theme/ApiDemoPanel/ContentType/slice.js +0 -31
  238. package/lib/theme/ApiDemoPanel/Curl/index.js +0 -240
  239. package/lib/theme/ApiDemoPanel/Curl/styles.module.css +0 -84
  240. package/lib/theme/ApiDemoPanel/Execute/index.js +0 -151
  241. package/lib/theme/ApiDemoPanel/Execute/makeRequest.js +0 -181
  242. package/lib/theme/ApiDemoPanel/Export/index.js +0 -47
  243. package/lib/theme/ApiDemoPanel/FloatingButton/index.js +0 -30
  244. package/lib/theme/ApiDemoPanel/FloatingButton/styles.module.css +0 -26
  245. package/lib/theme/ApiDemoPanel/FormFileUpload/index.js +0 -83
  246. package/lib/theme/ApiDemoPanel/FormFileUpload/styles.module.css +0 -75
  247. package/lib/theme/ApiDemoPanel/FormItem/index.js +0 -38
  248. package/lib/theme/ApiDemoPanel/FormItem/styles.module.css +0 -12
  249. package/lib/theme/ApiDemoPanel/FormMultiSelect/index.js +0 -45
  250. package/lib/theme/ApiDemoPanel/FormMultiSelect/styles.module.css +0 -38
  251. package/lib/theme/ApiDemoPanel/FormSelect/index.js +0 -34
  252. package/lib/theme/ApiDemoPanel/FormTextInput/index.js +0 -28
  253. package/lib/theme/ApiDemoPanel/FormTextInput/styles.module.css +0 -21
  254. package/lib/theme/ApiDemoPanel/LiveEditor/index.js +0 -62
  255. package/lib/theme/ApiDemoPanel/LiveEditor/styles.module.css +0 -35
  256. package/lib/theme/ApiDemoPanel/MethodEndpoint/index.js +0 -56
  257. package/lib/theme/ApiDemoPanel/ParamOptions/index.js +0 -216
  258. package/lib/theme/ApiDemoPanel/ParamOptions/slice.js +0 -34
  259. package/lib/theme/ApiDemoPanel/ParamOptions/styles.module.css +0 -176
  260. package/lib/theme/ApiDemoPanel/Request/index.js +0 -67
  261. package/lib/theme/ApiDemoPanel/Response/index.js +0 -66
  262. package/lib/theme/ApiDemoPanel/Response/slice.js +0 -36
  263. package/lib/theme/ApiDemoPanel/SecuritySchemes/index.js +0 -257
  264. package/lib/theme/ApiDemoPanel/Server/index.js +0 -104
  265. package/lib/theme/ApiDemoPanel/Server/slice.js +0 -40
  266. package/lib/theme/ApiDemoPanel/Server/styles.module.css +0 -56
  267. package/lib/theme/ApiDemoPanel/buildPostmanRequest.js +0 -303
  268. package/lib/theme/ApiDemoPanel/index.js +0 -41
  269. package/lib/theme/ApiDemoPanel/persistanceMiddleware.js +0 -59
  270. package/lib/theme/ApiDemoPanel/postman-collection.d.ts +0 -10
  271. package/lib/theme/ApiDemoPanel/react-modal.d.ts +0 -8
  272. package/lib/theme/ApiTabs/styles.module.css +0 -120
  273. package/lib/theme/DiscriminatorTabs/styles.module.css +0 -119
  274. package/lib/theme/MimeTabs/styles.module.css +0 -126
  275. package/lib/theme/ParamsItem/styles.module.css +0 -24
  276. package/lib/theme/ResponseSamples/styles.module.css +0 -7
  277. package/lib/theme/SchemaItem/styles.module.css +0 -38
  278. package/lib/theme/SchemaTabs/styles.module.css +0 -110
  279. package/lib/theme/styles.css +0 -520
  280. package/lib/theme-classic.d.ts +0 -13
  281. package/lib/theme-openapi.d.ts +0 -234
  282. package/lib/theme-translations.d.ts +0 -9
  283. package/lib-next/index.js +0 -29
  284. package/lib-next/markdown/createDescription.js +0 -13
  285. package/lib-next/markdown/schema.js +0 -153
  286. package/lib-next/markdown/utils.js +0 -44
  287. package/lib-next/postman-code-generators.d.ts +0 -9
  288. package/lib-next/react-magic-dropzone.d.ts +0 -9
  289. package/lib-next/theme/ApiDemoPanel/Accept/index.js +0 -30
  290. package/lib-next/theme/ApiDemoPanel/Authorization/auth-types.js +0 -29
  291. package/lib-next/theme/ApiDemoPanel/Authorization/index.js +0 -142
  292. package/lib-next/theme/ApiDemoPanel/Body/index.js +0 -324
  293. package/lib-next/theme/ApiDemoPanel/CodeTabs/index.js +0 -201
  294. package/lib-next/theme/ApiDemoPanel/CodeTabs/styles.module.css +0 -17
  295. package/lib-next/theme/ApiDemoPanel/ContentType/index.js +0 -30
  296. package/lib-next/theme/ApiDemoPanel/Curl/index.js +0 -283
  297. package/lib-next/theme/ApiDemoPanel/Curl/styles.module.css +0 -84
  298. package/lib-next/theme/ApiDemoPanel/Execute/index.js +0 -167
  299. package/lib-next/theme/ApiDemoPanel/Export/index.js +0 -45
  300. package/lib-next/theme/ApiDemoPanel/FloatingButton/index.js +0 -22
  301. package/lib-next/theme/ApiDemoPanel/FloatingButton/styles.module.css +0 -26
  302. package/lib-next/theme/ApiDemoPanel/FormFileUpload/index.js +0 -106
  303. package/lib-next/theme/ApiDemoPanel/FormItem/index.js +0 -36
  304. package/lib-next/theme/ApiDemoPanel/FormItem/styles.module.css +0 -12
  305. package/lib-next/theme/ApiDemoPanel/FormMultiSelect/index.js +0 -45
  306. package/lib-next/theme/ApiDemoPanel/FormMultiSelect/styles.module.css +0 -38
  307. package/lib-next/theme/ApiDemoPanel/FormSelect/index.js +0 -26
  308. package/lib-next/theme/ApiDemoPanel/FormSelect/styles.module.css +0 -51
  309. package/lib-next/theme/ApiDemoPanel/FormTextInput/index.js +0 -24
  310. package/lib-next/theme/ApiDemoPanel/FormTextInput/styles.module.css +0 -21
  311. package/lib-next/theme/ApiDemoPanel/LiveEditor/index.js +0 -59
  312. package/lib-next/theme/ApiDemoPanel/LiveEditor/styles.module.css +0 -35
  313. package/lib-next/theme/ApiDemoPanel/MethodEndpoint/index.js +0 -53
  314. package/lib-next/theme/ApiDemoPanel/ParamOptions/index.js +0 -292
  315. package/lib-next/theme/ApiDemoPanel/Request/index.js +0 -60
  316. package/lib-next/theme/ApiDemoPanel/Request/styles.module.css +0 -18
  317. package/lib-next/theme/ApiDemoPanel/Response/index.js +0 -67
  318. package/lib-next/theme/ApiDemoPanel/Response/slice.js +0 -23
  319. package/lib-next/theme/ApiDemoPanel/SecuritySchemes/index.js +0 -274
  320. package/lib-next/theme/ApiDemoPanel/Server/index.js +0 -132
  321. package/lib-next/theme/ApiDemoPanel/Server/styles.module.css +0 -56
  322. package/lib-next/theme/ApiDemoPanel/index.js +0 -28
  323. package/lib-next/theme/ApiDemoPanel/storage-utils.js +0 -33
  324. package/lib-next/theme/ApiItem/Layout/index.js +0 -68
  325. package/lib-next/theme/ApiItem/Layout/styles.module.css +0 -17
  326. package/lib-next/theme/ApiItem/hooks.js +0 -10
  327. package/lib-next/theme/ApiItem/index.js +0 -155
  328. package/lib-next/theme/ApiItem/store.js +0 -38
  329. package/lib-next/theme/ApiLogo/index.js +0 -48
  330. package/lib-next/theme/ApiTabs/index.js +0 -277
  331. package/lib-next/theme/ApiTabs/styles.module.css +0 -120
  332. package/lib-next/theme/DiscriminatorTabs/index.js +0 -272
  333. package/lib-next/theme/DiscriminatorTabs/styles.module.css +0 -119
  334. package/lib-next/theme/MimeTabs/index.js +0 -295
  335. package/lib-next/theme/MimeTabs/styles.module.css +0 -126
  336. package/lib-next/theme/ParamsItem/index.js +0 -135
  337. package/lib-next/theme/ParamsItem/styles.module.css +0 -24
  338. package/lib-next/theme/ResponseSamples/index.js +0 -27
  339. package/lib-next/theme/ResponseSamples/styles.module.css +0 -7
  340. package/lib-next/theme/SchemaItem/index.js +0 -114
  341. package/lib-next/theme/SchemaItem/styles.module.css +0 -38
  342. package/lib-next/theme/SchemaTabs/index.js +0 -270
  343. package/lib-next/theme/SchemaTabs/styles.module.css +0 -110
  344. package/lib-next/theme/styles.css +0 -520
  345. package/lib-next/theme-classic.d.ts +0 -13
  346. package/lib-next/theme-openapi.d.ts +0 -234
  347. package/lib-next/theme-translations.d.ts +0 -9
  348. package/lib-next/types.js +0 -1
  349. package/src/theme/ApiDemoPanel/Body/json2xml.js +0 -43
  350. package/src/theme/ApiDemoPanel/CodeTabs/index.tsx +0 -239
  351. package/src/theme/ApiDemoPanel/CodeTabs/styles.module.css +0 -17
  352. package/src/theme/ApiDemoPanel/Curl/languages.json +0 -1386
  353. package/src/theme/ApiDemoPanel/Curl/styles.module.css +0 -84
  354. package/src/theme/ApiDemoPanel/Execute/index.tsx +0 -189
  355. package/src/theme/ApiDemoPanel/FloatingButton/styles.module.css +0 -26
  356. package/src/theme/ApiDemoPanel/FormItem/styles.module.css +0 -12
  357. package/src/theme/ApiDemoPanel/FormMultiSelect/styles.module.css +0 -38
  358. package/src/theme/ApiDemoPanel/FormTextInput/index.tsx +0 -34
  359. package/src/theme/ApiDemoPanel/FormTextInput/styles.module.css +0 -21
  360. package/src/theme/ApiDemoPanel/LiveEditor/index.tsx +0 -75
  361. package/src/theme/ApiDemoPanel/LiveEditor/styles.module.css +0 -35
  362. package/src/theme/ApiDemoPanel/MethodEndpoint/index.tsx +0 -62
  363. package/src/theme/ApiDemoPanel/ParamOptions/index.tsx +0 -326
  364. package/src/theme/ApiDemoPanel/Request/index.tsx +0 -71
  365. package/src/theme/ApiDemoPanel/Response/index.tsx +0 -75
  366. package/src/theme/ApiDemoPanel/Server/styles.module.css +0 -56
  367. package/src/theme/ApiDemoPanel/postman-collection.d.ts +0 -10
  368. package/src/theme/ApiDemoPanel/react-modal.d.ts +0 -8
  369. package/src/theme/ApiTabs/styles.module.css +0 -120
  370. package/src/theme/DiscriminatorTabs/styles.module.css +0 -119
  371. package/src/theme/MimeTabs/styles.module.css +0 -126
  372. package/src/theme/ParamsItem/styles.module.css +0 -24
  373. package/src/theme/ResponseSamples/styles.module.css +0 -7
  374. package/src/theme/SchemaItem/styles.module.css +0 -38
  375. package/src/theme/SchemaTabs/styles.module.css +0 -110
  376. package/src/theme/styles.css +0 -520
  377. /package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/Body/json2xml.js +0 -0
  378. /package/{lib-next/theme/ApiDemoPanel/Curl → lib/theme/ApiExplorer/CodeSnippets}/languages.json +0 -0
  379. /package/src/theme/{ApiDemoPanel → ApiExplorer}/Accept/slice.ts +0 -0
  380. /package/src/theme/{ApiDemoPanel → ApiExplorer}/Authorization/auth-types.ts +0 -0
  381. /package/{lib/theme/ApiDemoPanel → src/theme/ApiExplorer}/Body/json2xml.js +0 -0
  382. /package/src/theme/{ApiDemoPanel → ApiExplorer}/Body/slice.ts +0 -0
  383. /package/{lib/theme/ApiDemoPanel/Curl → src/theme/ApiExplorer/CodeSnippets}/languages.json +0 -0
  384. /package/src/theme/{ApiDemoPanel → ApiExplorer}/ContentType/slice.ts +0 -0
  385. /package/src/theme/{ApiDemoPanel → ApiExplorer}/Export/index.tsx +0 -0
  386. /package/src/theme/{ApiDemoPanel → ApiExplorer}/ParamOptions/slice.ts +0 -0
  387. /package/src/theme/{ApiDemoPanel → ApiExplorer}/Server/slice.ts +0 -0
  388. /package/{lib-next/theme/ApiDemoPanel → src/theme/ApiExplorer}/postman-collection.d.ts +0 -0
  389. /package/{lib-next/theme/ApiDemoPanel → src/theme/ApiExplorer}/react-modal.d.ts +0 -0
  390. /package/src/theme/{ApiDemoPanel → ApiExplorer}/storage-utils.ts +0 -0
@@ -1,274 +0,0 @@
1
- /* ============================================================================
2
- * Copyright (c) Palo Alto Networks
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- * ========================================================================== */
7
-
8
- import React from "react";
9
- import Link from "@docusaurus/Link";
10
- import { useTypedSelector } from "@theme/ApiItem/hooks";
11
- function SecuritySchemes(props) {
12
- const options = useTypedSelector((state) => state.auth.options);
13
- const selected = useTypedSelector((state) => state.auth.selected);
14
- const infoAuthPath = `/${props.infoPath}#authentication`;
15
- if (selected === undefined) return null;
16
- if (options[selected]?.[0]?.type === undefined) {
17
- return null;
18
- }
19
- const selectedAuth = options[selected];
20
- return (
21
- <details className={`details__demo-panel`} open={false}>
22
- <summary className={`details__request-summary`}>
23
- <h4>Authorization</h4>
24
- </summary>
25
- {selectedAuth.map((auth) => {
26
- const isHttp = auth.type === "http";
27
- const isApiKey = auth.type === "apiKey";
28
- const isOauth2 = auth.type === "oauth2";
29
- const isOpenId = auth.type === "openIdConnect";
30
- if (isHttp) {
31
- if (auth.scheme === "bearer") {
32
- const { name, key, type, scopes, ...rest } = auth;
33
- return (
34
- <React.Fragment key={auth.key}>
35
- <pre
36
- style={{
37
- display: "flex",
38
- flexDirection: "column",
39
- background: "var(--openapi-card-background-color)",
40
- }}
41
- >
42
- <span>
43
- <strong>name:</strong>{" "}
44
- <Link to={infoAuthPath}>{name ?? key}</Link>
45
- </span>
46
- <span>
47
- <strong>type: </strong>
48
- {type}
49
- </span>
50
- {scopes && scopes.length > 0 && (
51
- <span>
52
- <strong>scopes: </strong>
53
- <code>
54
- {auth.scopes.length > 0 ? auth.scopes.toString() : "[]"}
55
- </code>
56
- </span>
57
- )}
58
- {Object.keys(rest).map((k, i) => {
59
- return (
60
- <span key={k}>
61
- <strong>{k}: </strong>
62
- {typeof rest[k] === "object"
63
- ? JSON.stringify(rest[k], null, 2)
64
- : String(rest[k])}
65
- </span>
66
- );
67
- })}
68
- </pre>
69
- </React.Fragment>
70
- );
71
- }
72
- if (auth.scheme === "basic") {
73
- const { name, key, type, scopes, ...rest } = auth;
74
- return (
75
- <React.Fragment key={auth.key}>
76
- <pre
77
- style={{
78
- display: "flex",
79
- flexDirection: "column",
80
- background: "var(--openapi-card-background-color)",
81
- }}
82
- >
83
- <span>
84
- <strong>name:</strong>{" "}
85
- <Link to={infoAuthPath}>{name ?? key}</Link>
86
- </span>
87
- <span>
88
- <strong>type: </strong>
89
- {type}
90
- </span>
91
- {scopes && scopes.length > 0 && (
92
- <span>
93
- <strong>scopes: </strong>
94
- <code>
95
- {auth.scopes.length > 0 ? auth.scopes.toString() : "[]"}
96
- </code>
97
- </span>
98
- )}
99
- {Object.keys(rest).map((k, i) => {
100
- return (
101
- <span key={k}>
102
- <strong>{k}: </strong>
103
- {typeof rest[k] === "object"
104
- ? JSON.stringify(rest[k], null, 2)
105
- : String(rest[k])}
106
- </span>
107
- );
108
- })}
109
- </pre>
110
- </React.Fragment>
111
- );
112
- }
113
- return (
114
- <React.Fragment key={auth.key}>
115
- <pre
116
- style={{
117
- display: "flex",
118
- flexDirection: "column",
119
- background: "var(--openapi-card-background-color)",
120
- }}
121
- >
122
- <span>
123
- <strong>name:</strong>{" "}
124
- <Link to={infoAuthPath}>{auth.name ?? auth.key}</Link>
125
- </span>
126
- <span>
127
- <strong>type: </strong>
128
- {auth.type}
129
- </span>
130
- <span>
131
- <strong>in: </strong>
132
- {auth.in}
133
- </span>
134
- </pre>
135
- </React.Fragment>
136
- );
137
- }
138
- if (isApiKey) {
139
- const { name, key, type, scopes, ...rest } = auth;
140
- return (
141
- <React.Fragment key={auth.key}>
142
- <pre
143
- style={{
144
- display: "flex",
145
- flexDirection: "column",
146
- background: "var(--openapi-card-background-color)",
147
- }}
148
- >
149
- <span>
150
- <strong>name:</strong>{" "}
151
- <Link to={infoAuthPath}>{name ?? key}</Link>
152
- </span>
153
- <span>
154
- <strong>type: </strong>
155
- {type}
156
- </span>
157
- {scopes && scopes.length > 0 && (
158
- <span>
159
- <strong>scopes: </strong>
160
- <code>
161
- {auth.scopes.length > 0 ? auth.scopes.toString() : "[]"}
162
- </code>
163
- </span>
164
- )}
165
- {Object.keys(rest).map((k, i) => {
166
- return (
167
- <span key={k}>
168
- <strong>{k}: </strong>
169
- {typeof rest[k] === "object"
170
- ? JSON.stringify(rest[k], null, 2)
171
- : String(rest[k])}
172
- </span>
173
- );
174
- })}
175
- </pre>
176
- </React.Fragment>
177
- );
178
- }
179
- if (isOauth2) {
180
- const { name, key, type, scopes, flows, ...rest } = auth;
181
- return (
182
- <React.Fragment key={selected}>
183
- <pre
184
- style={{
185
- display: "flex",
186
- flexDirection: "column",
187
- background: "var(--openapi-card-background-color)",
188
- }}
189
- >
190
- <span>
191
- <strong>name:</strong>{" "}
192
- <Link to={infoAuthPath}>{name ?? key}</Link>
193
- </span>
194
- <span>
195
- <strong>type: </strong>
196
- {type}
197
- </span>
198
- {scopes && scopes.length > 0 && (
199
- <span>
200
- <strong>scopes: </strong>
201
- <code>
202
- {auth.scopes.length > 0 ? auth.scopes.toString() : "[]"}
203
- </code>
204
- </span>
205
- )}
206
- {Object.keys(rest).map((k, i) => {
207
- return (
208
- <span key={k}>
209
- <strong>{k}: </strong>
210
- {typeof rest[k] === "object"
211
- ? JSON.stringify(rest[k], null, 2)
212
- : String(rest[k])}
213
- </span>
214
- );
215
- })}
216
- {flows && (
217
- <span>
218
- <code>
219
- <strong>flows: </strong>
220
- {JSON.stringify(flows, null, 2)}
221
- </code>
222
- </span>
223
- )}
224
- </pre>
225
- </React.Fragment>
226
- );
227
- }
228
- if (isOpenId) {
229
- const { name, key, scopes, type, ...rest } = auth;
230
- return (
231
- <React.Fragment key={auth.key}>
232
- <pre
233
- style={{
234
- display: "flex",
235
- flexDirection: "column",
236
- background: "var(--openapi-card-background-color)",
237
- }}
238
- >
239
- <span>
240
- <strong>name:</strong>{" "}
241
- <Link to={infoAuthPath}>{name ?? key}</Link>
242
- </span>
243
- <span>
244
- <strong>type: </strong>
245
- {type}
246
- </span>
247
- {scopes && scopes.length > 0 && (
248
- <span>
249
- <strong>scopes: </strong>
250
- <code>
251
- {auth.scopes.length > 0 ? auth.scopes.toString() : "[]"}
252
- </code>
253
- </span>
254
- )}
255
- {Object.keys(rest).map((k, i) => {
256
- return (
257
- <span key={k}>
258
- <strong>{k}: </strong>
259
- {typeof rest[k] === "object"
260
- ? JSON.stringify(rest[k], null, 2)
261
- : String(rest[k])}
262
- </span>
263
- );
264
- })}
265
- </pre>
266
- </React.Fragment>
267
- );
268
- }
269
- return undefined;
270
- })}
271
- </details>
272
- );
273
- }
274
- export default SecuritySchemes;
@@ -1,132 +0,0 @@
1
- /* ============================================================================
2
- * Copyright (c) Palo Alto Networks
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- * ========================================================================== */
7
-
8
- import React, { useState } from "react";
9
- import FloatingButton from "@theme/ApiDemoPanel/FloatingButton";
10
- import FormItem from "@theme/ApiDemoPanel/FormItem";
11
- import FormSelect from "@theme/ApiDemoPanel/FormSelect";
12
- import FormTextInput from "@theme/ApiDemoPanel/FormTextInput";
13
- import { useTypedDispatch, useTypedSelector } from "@theme/ApiItem/hooks";
14
- import { setServer, setServerVariable } from "./slice";
15
- import styles from "./styles.module.css";
16
- function Server() {
17
- const [isEditing, setIsEditing] = useState(false);
18
- const value = useTypedSelector((state) => state.server.value);
19
- const options = useTypedSelector((state) => state.server.options);
20
- const dispatch = useTypedDispatch();
21
- if (options.length <= 0) {
22
- return null;
23
- }
24
- if (options.length < 1 && value?.variables === undefined) {
25
- return null;
26
- }
27
- if (!value) {
28
- const defaultOption = options[0];
29
- dispatch(setServer(JSON.stringify(defaultOption)));
30
- }
31
-
32
- // Default to first option when existing server state is mismatched
33
- if (value) {
34
- const urlExists = options.find((s) => s.url === value.url);
35
- if (!urlExists) {
36
- const defaultOption = options[0];
37
- dispatch(setServer(JSON.stringify(defaultOption)));
38
- }
39
- }
40
- if (!isEditing) {
41
- let url = "";
42
- if (value) {
43
- url = value.url.replace(/\/$/, "");
44
- if (value.variables) {
45
- Object.keys(value.variables).forEach((variable) => {
46
- url = url.replace(
47
- `{${variable}}`,
48
- value.variables?.[variable].default ?? ""
49
- );
50
- });
51
- }
52
- }
53
- return (
54
- <FloatingButton onClick={() => setIsEditing(true)} label="Edit">
55
- <FormItem label="Base URL">
56
- <pre
57
- style={{
58
- background: "var(--openapi-card-background-color)",
59
- paddingLeft: "0px",
60
- }}
61
- >
62
- <code title={url}>{url}</code>
63
- </pre>
64
- </FormItem>
65
- </FloatingButton>
66
- );
67
- }
68
- return (
69
- <div className={styles.optionsPanel}>
70
- <FloatingButton onClick={() => setIsEditing(false)} label="Hide">
71
- <FormItem label="Base URL">
72
- <FormSelect
73
- options={options.map((s) => s.url)}
74
- onChange={(e) => {
75
- dispatch(
76
- setServer(
77
- JSON.stringify(
78
- options.filter((s) => s.url === e.target.value)[0]
79
- )
80
- )
81
- );
82
- }}
83
- value={value?.url}
84
- />
85
- <small>{value?.description}</small>
86
- </FormItem>
87
- {value?.variables &&
88
- Object.keys(value.variables).map((key) => {
89
- if (value.variables?.[key].enum !== undefined) {
90
- return (
91
- <FormItem label={key}>
92
- <FormSelect
93
- options={value.variables[key].enum}
94
- onChange={(e) => {
95
- dispatch(
96
- setServerVariable(
97
- JSON.stringify({
98
- key,
99
- value: e.target.value,
100
- })
101
- )
102
- );
103
- }}
104
- value={value?.variables[key].default}
105
- />
106
- </FormItem>
107
- );
108
- }
109
- return (
110
- <FormItem label={key}>
111
- <FormTextInput
112
- placeholder={value.variables?.[key].default}
113
- onChange={(e) => {
114
- dispatch(
115
- setServerVariable(
116
- JSON.stringify({
117
- key,
118
- value: e.target.value,
119
- })
120
- )
121
- );
122
- }}
123
- value={value?.variables?.[key].default}
124
- />
125
- </FormItem>
126
- );
127
- })}
128
- </FloatingButton>
129
- </div>
130
- );
131
- }
132
- export default Server;
@@ -1,56 +0,0 @@
1
- .showMoreButton {
2
- -webkit-appearance: none;
3
- -moz-appearance: none;
4
- appearance: none;
5
-
6
- cursor: pointer;
7
- font-size: var(--ifm-code-font-size);
8
- /* font-weight: var(--ifm-button-font-weight); */
9
- /* line-height: 1.5; */
10
-
11
- padding: 0;
12
-
13
- user-select: none;
14
- white-space: nowrap;
15
-
16
- border: 0px solid transparent;
17
-
18
- display: block;
19
- /* width: 100%; */
20
-
21
- background-color: transparent;
22
-
23
- color: var(--ifm-color-primary);
24
- cursor: pointer;
25
- margin-top: var(--ifm-pre-padding);
26
- margin-bottom: 0;
27
- text-align: left;
28
- display: block;
29
- }
30
-
31
- .showMoreButton:hover {
32
- /* text-decoration: underline; */
33
- /* background-color: red; */
34
- color: var(--ifm-color-primary-hover);
35
- }
36
-
37
- .showMoreButton:first-child {
38
- margin-top: 0;
39
- }
40
-
41
- .optionsPanel:empty {
42
- display: none;
43
- }
44
-
45
- .optionsPanel {
46
- background: var(--openapi-card-background-color);
47
- border-radius: var(--openapi-card-border-radius);
48
- color: var(--ifm-pre-color);
49
- line-height: var(--ifm-pre-line-height);
50
- margin-bottom: var(--ifm-spacing-vertical);
51
- margin-top: 0;
52
- overflow: auto;
53
-
54
- /* hack for view calculation when monaco is hidden */
55
- position: relative;
56
- }
@@ -1,28 +0,0 @@
1
- /* ============================================================================
2
- * Copyright (c) Palo Alto Networks
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- * ========================================================================== */
7
-
8
- import React from "react";
9
- import sdk from "@paloaltonetworks/postman-collection";
10
- import Curl from "@theme/ApiDemoPanel/Curl";
11
- import MethodEndpoint from "@theme/ApiDemoPanel/MethodEndpoint";
12
- import Request from "@theme/ApiDemoPanel/Request";
13
- import Response from "@theme/ApiDemoPanel/Response";
14
- import SecuritySchemes from "@theme/ApiDemoPanel/SecuritySchemes";
15
- function ApiDemoPanel({ item, infoPath }) {
16
- const postman = new sdk.Request(item.postman);
17
- const { path, method } = item;
18
- return (
19
- <div>
20
- <MethodEndpoint method={method} path={path} />
21
- <SecuritySchemes infoPath={infoPath} />
22
- <Request item={item} />
23
- <Response />
24
- <Curl postman={postman} codeSamples={item["x-code-samples"] ?? []} />
25
- </div>
26
- );
27
- }
28
- export default ApiDemoPanel;
@@ -1,33 +0,0 @@
1
- /* ============================================================================
2
- * Copyright (c) Palo Alto Networks
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- * ========================================================================== */
7
-
8
- import crypto from "crypto-js";
9
- export function hashArray(arr) {
10
- function hash(message) {
11
- return crypto.SHA1(message).toString();
12
- }
13
- const hashed = arr.map((item) => hash(item));
14
- hashed.sort();
15
- const res = hashed.join();
16
- return hash(res);
17
- }
18
- export function createStorage(persistance) {
19
- if (persistance === false) {
20
- return {
21
- getItem: () => null,
22
- setItem: () => {},
23
- clear: () => {},
24
- key: () => null,
25
- removeItem: () => {},
26
- length: 0,
27
- };
28
- }
29
- if (persistance === "sessionStorage") {
30
- return sessionStorage;
31
- }
32
- return localStorage;
33
- }
@@ -1,68 +0,0 @@
1
- /* ============================================================================
2
- * Copyright (c) Palo Alto Networks
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- * ========================================================================== */
7
-
8
- import React from "react";
9
- import { useWindowSize } from "@docusaurus/theme-common";
10
- import { useDoc } from "@docusaurus/theme-common/internal";
11
- import DocBreadcrumbs from "@theme/DocBreadcrumbs";
12
- import DocItemContent from "@theme/DocItem/Content";
13
- import DocItemFooter from "@theme/DocItem/Footer";
14
- import DocItemPaginator from "@theme/DocItem/Paginator";
15
- import DocItemTOCDesktop from "@theme/DocItem/TOC/Desktop";
16
- import DocItemTOCMobile from "@theme/DocItem/TOC/Mobile";
17
- import DocVersionBadge from "@theme/DocVersionBadge";
18
- import DocVersionBanner from "@theme/DocVersionBanner";
19
- import clsx from "clsx";
20
- import styles from "./styles.module.css";
21
-
22
- /**
23
- * Decide if the toc should be rendered, on mobile or desktop viewports
24
- */
25
- function useDocTOC() {
26
- const { frontMatter, toc } = useDoc();
27
- const windowSize = useWindowSize();
28
- const hidden = frontMatter.hide_table_of_contents;
29
- const canRender = !hidden && toc.length > 0;
30
- const mobile = canRender ? <DocItemTOCMobile /> : undefined;
31
- const desktop =
32
- canRender && (windowSize === "desktop" || windowSize === "ssr") ? (
33
- <DocItemTOCDesktop />
34
- ) : undefined;
35
- return {
36
- hidden,
37
- mobile,
38
- desktop,
39
- };
40
- }
41
- export default function DocItemLayout({ children }) {
42
- const docTOC = useDocTOC();
43
- const {
44
- frontMatter: { api },
45
- } = useDoc();
46
- return (
47
- <div className="row">
48
- <div className={clsx("col", !docTOC.hidden && styles.docItemCol)}>
49
- <DocVersionBanner />
50
- <div className={styles.docItemContainer}>
51
- <article>
52
- <DocBreadcrumbs />
53
- <DocVersionBadge />
54
- {docTOC.mobile}
55
- <DocItemContent>{children}</DocItemContent>
56
- <div className={clsx("col", api ? "col--7" : "col--12")}>
57
- <DocItemFooter />
58
- </div>
59
- </article>
60
- <div className={clsx("col", api ? "col--7" : "col--12")}>
61
- <DocItemPaginator />
62
- </div>
63
- </div>
64
- </div>
65
- {docTOC.desktop && <div className="col col--3">{docTOC.desktop}</div>}
66
- </div>
67
- );
68
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- .docItemContainer header + *,
9
- .docItemContainer article > *:first-child {
10
- margin-top: 0;
11
- }
12
-
13
- @media (min-width: 997px) {
14
- .docItemCol {
15
- max-width: 75% !important;
16
- }
17
- }
@@ -1,10 +0,0 @@
1
- /* ============================================================================
2
- * Copyright (c) Palo Alto Networks
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- * ========================================================================== */
7
-
8
- import { useDispatch, useSelector } from "react-redux";
9
- export const useTypedDispatch = () => useDispatch();
10
- export const useTypedSelector = useSelector;