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

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,303 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _postmanCollection = _interopRequireDefault(require("@paloaltonetworks/postman-collection"));
8
- var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- /* ============================================================================
11
- * Copyright (c) Palo Alto Networks
12
- *
13
- * This source code is licensed under the MIT license found in the
14
- * LICENSE file in the root directory of this source tree.
15
- * ========================================================================== */
16
-
17
- function setQueryParams(postman, queryParams) {
18
- postman.url.query.clear();
19
- const qp = queryParams.map(param => {
20
- if (!param.value) {
21
- return undefined;
22
- }
23
- if (Array.isArray(param.value)) {
24
- return new _postmanCollection.default.QueryParam({
25
- key: param.name,
26
- value: param.value.join(",")
27
- });
28
- }
29
-
30
- // Parameter allows empty value: "/hello?extended"
31
- if (param.allowEmptyValue) {
32
- if (param.value === "true") {
33
- return new _postmanCollection.default.QueryParam({
34
- key: param.name,
35
- value: null
36
- });
37
- }
38
- return undefined;
39
- }
40
- return new _postmanCollection.default.QueryParam({
41
- key: param.name,
42
- value: param.value
43
- });
44
- }).filter(item => item !== undefined);
45
- if (qp.length > 0) {
46
- postman.addQueryParams(qp);
47
- }
48
- }
49
- function setPathParams(postman, queryParams) {
50
- const source = queryParams.map(param => {
51
- return new _postmanCollection.default.Variable({
52
- key: param.name,
53
- value: param.value || `:${param.name}`
54
- });
55
- });
56
- postman.url.variables.assimilate(source, false);
57
- }
58
- function buildCookie(cookieParams) {
59
- const cookies = cookieParams.map(param => {
60
- if (param.value && !Array.isArray(param.value)) {
61
- return new _postmanCollection.default.Cookie({
62
- // TODO: Is this right?
63
- path: "",
64
- domain: "",
65
- key: param.name,
66
- value: param.value
67
- });
68
- }
69
- return undefined;
70
- }).filter(item => item !== undefined);
71
- const list = new _postmanCollection.default.CookieList(null, cookies);
72
- return list.toString();
73
- }
74
- function setHeaders(postman, contentType, accept, cookie, headerParams, other) {
75
- postman.headers.clear();
76
- if (contentType) {
77
- postman.addHeader({
78
- key: "Content-Type",
79
- value: contentType
80
- });
81
- }
82
- if (accept) {
83
- postman.addHeader({
84
- key: "Accept",
85
- value: accept
86
- });
87
- }
88
- headerParams.forEach(param => {
89
- if (param.value && !Array.isArray(param.value)) {
90
- postman.addHeader({
91
- key: param.name,
92
- value: param.value
93
- });
94
- }
95
- });
96
- other.forEach(header => {
97
- postman.addHeader(header);
98
- });
99
- if (cookie) {
100
- postman.addHeader({
101
- key: "Cookie",
102
- value: cookie
103
- });
104
- }
105
- }
106
-
107
- // TODO: this is all a bit hacky
108
- function setBody(clonedPostman, body) {
109
- var _body$content;
110
- if (clonedPostman.body === undefined) {
111
- return;
112
- }
113
- if (body.type === "empty") {
114
- clonedPostman.body = undefined;
115
- return;
116
- }
117
- if (body.type === "raw" && ((_body$content = body.content) === null || _body$content === void 0 ? void 0 : _body$content.type) === "file") {
118
- // treat it like file.
119
- clonedPostman.body.mode = "file";
120
- clonedPostman.body.file = {
121
- src: body.content.value.src
122
- };
123
- return;
124
- }
125
- switch (clonedPostman.body.mode) {
126
- case "raw":
127
- {
128
- var _body$content2, _body$content$value, _body$content3;
129
- // check file even though it should already be set from above
130
- if (body.type !== "raw" || ((_body$content2 = body.content) === null || _body$content2 === void 0 ? void 0 : _body$content2.type) === "file") {
131
- clonedPostman.body = undefined;
132
- return;
133
- }
134
- clonedPostman.body.raw = (_body$content$value = (_body$content3 = body.content) === null || _body$content3 === void 0 ? void 0 : _body$content3.value) !== null && _body$content$value !== void 0 ? _body$content$value : "";
135
- return;
136
- }
137
- case "formdata":
138
- {
139
- var _clonedPostman$body$f, _clonedPostman$body$f2;
140
- (_clonedPostman$body$f = clonedPostman.body.formdata) === null || _clonedPostman$body$f === void 0 ? void 0 : _clonedPostman$body$f.clear();
141
- if (body.type !== "form") {
142
- var _body$content4;
143
- // treat it like raw.
144
- clonedPostman.body.mode = "raw";
145
- clonedPostman.body.raw = `${(_body$content4 = body.content) === null || _body$content4 === void 0 ? void 0 : _body$content4.value}`;
146
- return;
147
- }
148
- const params = Object.entries(body.content).filter(entry => !!entry[1]).map(([key, content]) => {
149
- if (content.type === "file") {
150
- return new _postmanCollection.default.FormParam({
151
- key: key,
152
- ...content
153
- });
154
- }
155
- return new _postmanCollection.default.FormParam({
156
- key: key,
157
- value: content.value
158
- });
159
- });
160
- (_clonedPostman$body$f2 = clonedPostman.body.formdata) === null || _clonedPostman$body$f2 === void 0 ? void 0 : _clonedPostman$body$f2.assimilate(params, false);
161
- return;
162
- }
163
- case "urlencoded":
164
- {
165
- var _clonedPostman$body$u, _clonedPostman$body$u2;
166
- (_clonedPostman$body$u = clonedPostman.body.urlencoded) === null || _clonedPostman$body$u === void 0 ? void 0 : _clonedPostman$body$u.clear();
167
- if (body.type !== "form") {
168
- var _body$content5;
169
- // treat it like raw.
170
- clonedPostman.body.mode = "raw";
171
- clonedPostman.body.raw = `${(_body$content5 = body.content) === null || _body$content5 === void 0 ? void 0 : _body$content5.value}`;
172
- return;
173
- }
174
- const params = Object.entries(body.content).filter(entry => !!entry[1]).map(([key, content]) => {
175
- if (content.type !== "file" && content.value) {
176
- return new _postmanCollection.default.QueryParam({
177
- key: key,
178
- value: content.value
179
- });
180
- }
181
- return undefined;
182
- }).filter(item => item !== undefined);
183
- (_clonedPostman$body$u2 = clonedPostman.body.urlencoded) === null || _clonedPostman$body$u2 === void 0 ? void 0 : _clonedPostman$body$u2.assimilate(params, false);
184
- return;
185
- }
186
- default:
187
- return;
188
- }
189
- }
190
-
191
- // TODO: finish these types
192
-
193
- function buildPostmanRequest(postman, {
194
- queryParams,
195
- pathParams,
196
- cookieParams,
197
- contentType,
198
- accept,
199
- headerParams,
200
- body,
201
- server,
202
- auth
203
- }) {
204
- const clonedPostman = (0, _cloneDeep.default)(postman);
205
- clonedPostman.url.protocol = undefined;
206
- clonedPostman.url.host = [window.location.origin];
207
- if (server) {
208
- let url = server.url.replace(/\/$/, "");
209
- const variables = server.variables;
210
- if (variables) {
211
- Object.keys(variables).forEach(variable => {
212
- url = url.replace(`{${variable}}`, variables[variable].default);
213
- });
214
- }
215
- clonedPostman.url.host = [url];
216
- }
217
- setQueryParams(clonedPostman, queryParams);
218
- setPathParams(clonedPostman, pathParams);
219
- const cookie = buildCookie(cookieParams);
220
- let otherHeaders = [];
221
- let selectedAuth = [];
222
- if (auth.selected !== undefined) {
223
- selectedAuth = auth.options[auth.selected];
224
- }
225
- for (const a of selectedAuth) {
226
- // Bearer Auth
227
- if (a.type === "http" && a.scheme === "bearer") {
228
- const {
229
- token
230
- } = auth.data[a.key];
231
- if (token === undefined) {
232
- otherHeaders.push({
233
- key: "Authorization",
234
- value: "Bearer <TOKEN>"
235
- });
236
- continue;
237
- }
238
- otherHeaders.push({
239
- key: "Authorization",
240
- value: `Bearer ${token}`
241
- });
242
- continue;
243
- }
244
- if (a.type === "oauth2") {
245
- let token;
246
- if (auth.data[a.key]) {
247
- token = auth.data[a.key].token;
248
- }
249
- if (token === undefined) {
250
- otherHeaders.push({
251
- key: "Authorization",
252
- value: "Bearer <TOKEN>"
253
- });
254
- continue;
255
- }
256
- otherHeaders.push({
257
- key: "Authorization",
258
- value: `Bearer ${token}`
259
- });
260
- continue;
261
- }
262
-
263
- // Basic Auth
264
- if (a.type === "http" && a.scheme === "basic") {
265
- const {
266
- username,
267
- password
268
- } = auth.data[a.key];
269
- if (username === undefined || password === undefined) {
270
- continue;
271
- }
272
- otherHeaders.push({
273
- key: "Authorization",
274
- value: `Basic ${window.btoa(`${username}:${password}`)}`
275
- });
276
- continue;
277
- }
278
-
279
- // API Key
280
- if (a.type === "apiKey" && a.in === "header") {
281
- const {
282
- apiKey
283
- } = auth.data[a.key];
284
- if (apiKey === undefined) {
285
- otherHeaders.push({
286
- key: a.name,
287
- value: "<API_KEY_VALUE>"
288
- });
289
- continue;
290
- }
291
- otherHeaders.push({
292
- key: a.name,
293
- value: apiKey
294
- });
295
- continue;
296
- }
297
- }
298
- setHeaders(clonedPostman, contentType, accept, cookie, headerParams, otherHeaders);
299
- setBody(clonedPostman, body);
300
- return clonedPostman;
301
- }
302
- var _default = buildPostmanRequest;
303
- exports.default = _default;
@@ -1,41 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _postmanCollection = _interopRequireDefault(require("@paloaltonetworks/postman-collection"));
9
- var _Curl = _interopRequireDefault(require("@theme/ApiDemoPanel/Curl"));
10
- var _MethodEndpoint = _interopRequireDefault(require("@theme/ApiDemoPanel/MethodEndpoint"));
11
- var _Request = _interopRequireDefault(require("@theme/ApiDemoPanel/Request"));
12
- var _Response = _interopRequireDefault(require("@theme/ApiDemoPanel/Response"));
13
- var _SecuritySchemes = _interopRequireDefault(require("@theme/ApiDemoPanel/SecuritySchemes"));
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
- /* ============================================================================
16
- * Copyright (c) Palo Alto Networks
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- * ========================================================================== */
21
-
22
- function ApiDemoPanel({
23
- item,
24
- infoPath
25
- }) {
26
- var _xCodeSamples;
27
- const postman = new _postmanCollection.default.Request(item.postman);
28
- const {
29
- path,
30
- method
31
- } = item;
32
- return <div>
33
- <_MethodEndpoint.default method={method} path={path} />
34
- <_SecuritySchemes.default infoPath={infoPath} />
35
- <_Request.default item={item} />
36
- <_Response.default />
37
- <_Curl.default postman={postman} codeSamples={(_xCodeSamples = item["x-code-samples"]) !== null && _xCodeSamples !== void 0 ? _xCodeSamples : []} />
38
- </div>;
39
- }
40
- var _default = ApiDemoPanel;
41
- exports.default = _default;
@@ -1,59 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.createPersistanceMiddleware = createPersistanceMiddleware;
7
- var _slice = require("@theme/ApiDemoPanel/Authorization/slice");
8
- var _storageUtils = require("./storage-utils");
9
- /* ============================================================================
10
- * Copyright (c) Palo Alto Networks
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- * ========================================================================== */
15
-
16
- function createPersistanceMiddleware(options) {
17
- const persistanceMiddleware = storeAPI => next => action => {
18
- const result = next(action);
19
- const state = storeAPI.getState();
20
- const storage = (0, _storageUtils.createStorage)("sessionStorage");
21
- if (action.type === _slice.setAuthData.type) {
22
- for (const [key, value] of Object.entries(state.auth.data)) {
23
- if (Object.values(value).filter(Boolean).length > 0) {
24
- storage.setItem(key, JSON.stringify(value));
25
- } else {
26
- storage.removeItem(key);
27
- }
28
- }
29
- }
30
- if (action.type === _slice.setSelectedAuth.type) {
31
- if (state.auth.selected) {
32
- storage.setItem((0, _storageUtils.hashArray)(Object.keys(state.auth.options)), state.auth.selected);
33
- }
34
- }
35
-
36
- // TODO: determine way to rehydrate without flashing
37
- // if (action.type === "contentType/setContentType") {
38
- // storage.setItem("contentType", action.payload);
39
- // }
40
-
41
- // if (action.type === "accept/setAccept") {
42
- // storage.setItem("accept", action.payload);
43
- // }
44
-
45
- if (action.type === "server/setServer") {
46
- storage.setItem("server", action.payload);
47
- }
48
- if (action.type === "server/setServerVariable") {
49
- var _storage$getItem;
50
- const server = (_storage$getItem = storage.getItem("server")) !== null && _storage$getItem !== void 0 ? _storage$getItem : "{}";
51
- const variables = JSON.parse(action.payload);
52
- let serverObject = JSON.parse(server);
53
- serverObject.variables[variables.key].default = variables.value;
54
- storage.setItem("server", JSON.stringify(serverObject));
55
- }
56
- return result;
57
- };
58
- return persistanceMiddleware;
59
- }
@@ -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
- declare module "@paloaltonetworks/postman-collection" {
9
- export = Request.sdk;
10
- }
@@ -1,8 +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
- declare module "react-modal";
@@ -1,120 +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
- .tabItem {
9
- display: flex;
10
- align-items: center;
11
- justify-content: center;
12
- height: 2.5rem;
13
- margin-top: 0 !important;
14
- margin-right: 0.5rem;
15
- border: 1px solid var(--ifm-color-primary);
16
- border-radius: var(--ifm-global-radius);
17
- color: var(--ifm-color-primary);
18
- font-weight: var(--ifm-font-weight-normal);
19
- }
20
-
21
- .tabItem:not(.active) {
22
- opacity: 0.65;
23
- }
24
-
25
- .tabItem:hover {
26
- opacity: 1;
27
- }
28
-
29
- .tabItem:last-child {
30
- margin-right: 0 !important;
31
- }
32
-
33
- /* Open API Response Code Tabs */
34
- .responseTabsTopSection {
35
- margin-top: 2rem;
36
- display: flex;
37
- justify-content: space-between;
38
- align-items: center;
39
- }
40
-
41
- .responseTabsContainer {
42
- display: flex;
43
- align-items: center;
44
- max-width: 390px;
45
- padding-left: 1rem;
46
- overflow: hidden;
47
- }
48
-
49
- .responseTabsListContainer {
50
- padding: 0 0.25rem;
51
- overflow-y: hidden;
52
- overflow-x: scroll;
53
- scroll-behavior: smooth;
54
- }
55
-
56
- .responseTabsListContainer::-webkit-scrollbar {
57
- display: none;
58
- }
59
-
60
- /* Response Code Tabs - Colored Dots */
61
- .responseTabDot {
62
- width: 12.5px;
63
- height: 12.5px;
64
- margin-right: 5px;
65
- border-radius: 50%;
66
- }
67
-
68
- .responseStatusSuccess > .responseTabDot {
69
- background-color: var(--ifm-color-success);
70
- }
71
-
72
- .responseStatusDanger > .responseTabDot {
73
- background-color: var(--ifm-color-danger);
74
- }
75
-
76
- .responseStatusInfo > .responseTabDot {
77
- background-color: var(--ifm-color-info);
78
- }
79
-
80
- .active {
81
- background-color: var(--ifm-color-emphasis-100);
82
- }
83
-
84
- .responseSchemaContainer {
85
- max-width: 600px;
86
- }
87
-
88
- /* Tab Arrows */
89
- .tabArrow {
90
- content: "";
91
- height: 1.25rem;
92
- width: 1.25rem;
93
- border: none;
94
- min-width: 1.25rem;
95
- background: var(--ifm-menu-link-sublist-icon) 50% / 2rem 2rem;
96
- filter: var(--ifm-menu-link-sublist-icon-filter);
97
- }
98
-
99
- .tabArrow:hover {
100
- cursor: pointer;
101
- }
102
- .tabArrowLeft {
103
- transform: rotate(270deg);
104
- }
105
- .tabArrowRight {
106
- transform: rotate(90deg);
107
- }
108
-
109
- @media screen and (max-width: 500px) {
110
- .responseTabsTopSection {
111
- flex-direction: column;
112
- align-items: flex-start;
113
- }
114
-
115
- .responseTabsContainer {
116
- width: 100%;
117
- margin-top: var(--ifm-spacing-vertical);
118
- padding: 0;
119
- }
120
- }
@@ -1,119 +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
- .tabItem {
9
- display: flex;
10
- align-items: center;
11
- justify-content: center;
12
- height: 1.8rem;
13
- margin-top: 0 !important;
14
- margin-right: 0.5rem;
15
- border: 1px solid var(--ifm-color-primary);
16
- border-radius: var(--ifm-global-radius);
17
- color: var(--ifm-color-primary);
18
- font-size: 12px;
19
- }
20
-
21
- .tabItem:not(.discriminatorTabActive) {
22
- opacity: 0.65;
23
- }
24
-
25
- .tabItem:hover {
26
- opacity: 1;
27
- background-color: var(--ifm-color-emphasis-100);
28
- }
29
-
30
- .tabItem:last-child {
31
- margin-right: 0 !important;
32
- }
33
-
34
- /* Open API Schema Tabs */
35
- .discriminatorTabs {
36
- margin-left: -20px !important;
37
- }
38
-
39
- .discriminatorTabsTopSection {
40
- margin-top: 1rem;
41
- margin-left: 1rem;
42
- display: flex;
43
- justify-content: space-between;
44
- align-items: center;
45
- }
46
-
47
- .discriminatorTabsTopSection + hr {
48
- display: none;
49
- }
50
-
51
- .discriminatorTabsContainer {
52
- display: flex;
53
- align-items: center;
54
- max-width: 390px;
55
- padding-left: 3px;
56
- overflow: hidden;
57
- }
58
-
59
- .discriminatorTabsListContainer {
60
- padding: 0 0.25rem;
61
- overflow-y: hidden;
62
- overflow-x: scroll;
63
- scroll-behavior: smooth;
64
- }
65
-
66
- .discriminatorTabsListContainer::-webkit-scrollbar {
67
- display: none;
68
- }
69
-
70
- .tabItem.discriminatorTabActive {
71
- background-color: var(--ifm-color-emphasis-100);
72
- }
73
-
74
- .discriminatorTabLabel {
75
- white-space: nowrap;
76
- }
77
-
78
- .discriminatorTabsContainer {
79
- max-width: 600px;
80
- }
81
-
82
- /* Tab Arrows */
83
- .tabArrow {
84
- content: "";
85
- height: 1.25rem;
86
- width: 1.25rem;
87
- padding: 0 0.75rem;
88
- border: none;
89
- min-width: 1.25rem;
90
- background: var(--ifm-menu-link-sublist-icon) 50% / 2rem 2rem;
91
- filter: var(--ifm-menu-link-sublist-icon-filter);
92
- }
93
-
94
- .tabArrow:hover {
95
- cursor: pointer;
96
- }
97
-
98
- .tabArrowLeft {
99
- transform: rotate(270deg);
100
- }
101
-
102
- .tabArrowRight {
103
- transform: rotate(90deg);
104
- }
105
-
106
- @media screen and (max-width: 500px) {
107
- .discriminatorTabsTopSection {
108
- flex-direction: column;
109
- align-items: flex-start;
110
- }
111
-
112
- .discriminatorTabsContainer {
113
- width: 100%;
114
- }
115
-
116
- .tabItem {
117
- height: 100%;
118
- }
119
- }