@scalar/api-client 2.18.0 → 2.18.3

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 (294) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/dist/components/AddressBar/AddressBar.vue2.js +52 -52
  3. package/dist/components/AddressBar/AddressBarHistory.vue2.js +15 -15
  4. package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -33
  5. package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
  6. package/dist/components/AddressBar/httpStatusCodeColors.js +0 -1
  7. package/dist/components/CodeInput/CodeInput.vue2.js +112 -112
  8. package/dist/components/CommandPalette/CommandActionForm.vue.js +18 -18
  9. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +25 -25
  10. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -4
  13. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -1
  14. package/dist/components/CommandPalette/WatchModeToggle.vue.js +14 -14
  15. package/dist/components/DataTable/DataTable.vue.js +17 -17
  16. package/dist/components/DataTable/DataTableCell.vue.js +9 -9
  17. package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
  18. package/dist/components/DataTable/DataTableInput.vue2.js +48 -48
  19. package/dist/components/DataTable/DataTableInputSelect.vue.js +35 -35
  20. package/dist/components/DataTable/DataTableText.vue.js +10 -10
  21. package/dist/components/Form/Form.vue.js +32 -32
  22. package/dist/components/Form/LabelInput.vue2.js +15 -15
  23. package/dist/components/HelpfulLink.vue.js +7 -7
  24. package/dist/components/HttpMethod/HttpMethod.vue2.js +22 -22
  25. package/dist/components/IconSelector.vue.js +16 -16
  26. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +50 -50
  27. package/dist/components/ImportCollection/ImportNowButton.vue.js +23 -23
  28. package/dist/components/ImportCollection/PrefetchError.vue.js +8 -8
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -7
  30. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  31. package/dist/components/ScalarAsciiArt.vue2.js +16 -16
  32. package/dist/components/SectionFilter.vue2.js +21 -21
  33. package/dist/components/SectionFilterButton.vue.js +7 -7
  34. package/dist/components/Server/ServerDropdown.vue.js +32 -32
  35. package/dist/components/Server/ServerDropdownItem.vue2.js +39 -39
  36. package/dist/components/Server/ServerSelector.vue.js +27 -27
  37. package/dist/components/Server/ServerVariablesForm.vue.js +26 -26
  38. package/dist/components/Server/ServerVariablesSelect.vue.js +21 -21
  39. package/dist/components/Server/ServerVariablesTextbox.vue.js +10 -10
  40. package/dist/components/Server/types.d.ts +2 -1
  41. package/dist/components/Server/types.d.ts.map +1 -1
  42. package/dist/components/SideNav/SideNavLink.vue.js +18 -18
  43. package/dist/components/SideNav/SideNavRouterLink.vue.js +13 -13
  44. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +11 -11
  45. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +16 -16
  46. package/dist/components/Sidebar/Sidebar.vue2.js +28 -28
  47. package/dist/components/Sidebar/SidebarButton.vue.js +12 -12
  48. package/dist/components/Sidebar/SidebarListElement.vue2.js +34 -34
  49. package/dist/components/Sidebar/SidebarListElementActions.vue.js +33 -33
  50. package/dist/components/TopNav/TopNavItem.vue2.js +41 -41
  51. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +43 -43
  52. package/dist/data/httpHeaders.d.ts +2 -1
  53. package/dist/data/httpHeaders.d.ts.map +1 -1
  54. package/dist/hooks/useClientConfig.js +1 -1
  55. package/dist/hooks/useLayout.js +1 -1
  56. package/dist/hooks/useSidebar.js +1 -1
  57. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  58. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  59. package/dist/libs/create-client.d.ts.map +1 -1
  60. package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
  61. package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
  62. package/dist/plugins/hooks/usePluginManager.js +5 -5
  63. package/dist/plugins/index.d.ts +1 -1
  64. package/dist/plugins/index.d.ts.map +1 -1
  65. package/dist/plugins/index.js +5 -5
  66. package/dist/plugins/plugin-manager.d.ts +0 -2
  67. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  68. package/dist/routes.d.ts +0 -10
  69. package/dist/routes.d.ts.map +1 -1
  70. package/dist/routes.js +0 -1
  71. package/dist/store/active-entities.js +1 -1
  72. package/dist/store/security-schemes.d.ts.map +1 -1
  73. package/dist/store/store.d.ts.map +1 -1
  74. package/dist/style.css +1 -1
  75. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  76. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
  77. package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
  78. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  79. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
  80. package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +0 -2
  81. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
  82. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
  83. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
  84. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  85. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
  86. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
  87. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  88. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
  89. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
  90. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
  91. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
  92. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  93. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
  94. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  95. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  96. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
  97. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
  98. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  99. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  100. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
  101. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
  102. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
  103. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
  104. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
  105. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
  106. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  107. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
  108. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
  109. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  110. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
  111. package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
  112. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
  113. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  114. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
  115. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
  116. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
  117. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  118. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
  119. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
  120. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
  121. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
  122. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
  123. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
  124. package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
  125. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
  126. package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
  127. package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
  128. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
  129. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
  130. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
  131. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
  132. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
  133. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
  134. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
  135. package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
  136. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
  137. package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
  138. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
  139. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
  140. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
  141. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
  142. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  144. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +83 -82
  145. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
  146. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
  147. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
  148. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
  149. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  150. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +26 -26
  151. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
  152. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
  153. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  154. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +130 -122
  155. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
  156. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  157. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
  158. package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
  159. package/dist/v2/components/data-table/DataTable.vue.js +17 -17
  160. package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
  161. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
  162. package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
  163. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
  164. package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
  165. package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
  166. package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
  167. package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
  168. package/dist/v2/components/resize/Resize.vue2.js +11 -11
  169. package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
  170. package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
  171. package/dist/v2/components/sidebar/Sidebar.vue.js +32 -32
  172. package/dist/v2/components/sidebar/SidebarMenu.vue.js +20 -20
  173. package/dist/v2/features/app/App.vue.js +25 -25
  174. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  175. package/dist/v2/features/app/app-events.js +55 -61
  176. package/dist/v2/features/app/components/AppSidebar.vue2.js +97 -97
  177. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
  178. package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
  179. package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
  180. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
  181. package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
  182. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -5
  183. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  184. package/dist/v2/features/app/helpers/create-api-client-app.js +1 -2
  185. package/dist/v2/features/app/helpers/routes.d.ts +5 -1
  186. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  187. package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
  188. package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
  189. package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
  190. package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
  191. package/dist/v2/features/collection/components/Environment.vue.js +10 -10
  192. package/dist/v2/features/collection/components/Form.vue.js +21 -21
  193. package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
  194. package/dist/v2/features/collection/components/Servers.vue.js +37 -37
  195. package/dist/v2/features/collection/components/Settings.vue.js +22 -22
  196. package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
  197. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
  198. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
  199. package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
  200. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
  201. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
  202. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
  203. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
  204. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
  205. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
  206. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  207. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
  208. package/dist/v2/features/command-palette/types.d.ts +11 -10
  209. package/dist/v2/features/command-palette/types.d.ts.map +1 -1
  210. package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
  211. package/dist/v2/features/environments/components/Environment.vue.js +16 -16
  212. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
  213. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
  214. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
  215. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
  216. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
  217. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
  218. package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
  219. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  220. package/dist/v2/features/modal/Modal.vue.js +1 -1
  221. package/dist/v2/features/modal/Modal.vue2.js +57 -56
  222. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +5 -4
  223. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  224. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
  225. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
  226. package/dist/v2/features/operation/Operation.vue.d.ts +5 -1
  227. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  228. package/dist/v2/features/operation/Operation.vue.js +41 -39
  229. package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
  230. package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
  231. package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
  232. package/dist/v2/features/search/types.d.ts +5 -4
  233. package/dist/v2/features/search/types.d.ts.map +1 -1
  234. package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
  235. package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
  236. package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
  237. package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
  238. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  239. package/dist/v2/helpers/handle-hotkeys.js +0 -2
  240. package/dist/v2/helpers/plugins.d.ts +2 -2
  241. package/dist/v2/helpers/plugins.d.ts.map +1 -1
  242. package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
  243. package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
  244. package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
  245. package/dist/views/Cookies/CookieModal.vue2.js +26 -26
  246. package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
  247. package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
  248. package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
  249. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
  250. package/dist/views/Request/Request.vue2.js +55 -55
  251. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
  252. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
  253. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
  254. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  255. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
  256. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  257. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
  258. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
  259. package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
  260. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
  261. package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
  262. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
  263. package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
  264. package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
  265. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
  266. package/dist/views/Request/RequestSection/index.d.ts +1 -1
  267. package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
  268. package/dist/views/Request/RequestSection/index.js +4 -4
  269. package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
  270. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
  271. package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
  272. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
  273. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
  274. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
  275. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
  276. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
  277. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
  278. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
  279. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
  280. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
  281. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
  282. package/package.json +24 -24
  283. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
  284. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
  285. package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
  286. package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
  287. package/dist/components/ScreenReader.vue.d.ts +0 -20
  288. package/dist/components/ScreenReader.vue.d.ts.map +0 -1
  289. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
  290. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
  291. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
  292. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
  293. package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
  294. package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
@@ -1,118 +1,118 @@
1
- import { defineComponent as L, ref as P, watch as F, onMounted as K, onBeforeUnmount as j, computed as G, createElementBlock as w, openBlock as l, Fragment as C, createBlock as o, createCommentVNode as r, createVNode as i, unref as n, withCtx as a, withKeys as H, createElementVNode as c, createTextVNode as W, toDisplayString as J } from "vue";
2
- import { useModal as $, ScalarFloating as O, ScalarDropdownMenu as Q, ScalarDropdownButton as p, ScalarIcon as I, ScalarModal as q } from "@scalar/components";
1
+ import { defineComponent as L, ref as P, watch as F, onMounted as K, onBeforeUnmount as j, computed as G, createElementBlock as w, openBlock as l, Fragment as C, createBlock as u, createCommentVNode as r, createVNode as i, unref as t, withCtx as m, withKeys as H, createElementVNode as I, createTextVNode as W, toDisplayString as J } from "vue";
2
+ import { useModal as $, ScalarFloating as O, ScalarDropdownMenu as Q, ScalarDropdownButton as k, ScalarIcon as v, ScalarModal as q } from "@scalar/components";
3
3
  import { useRouter as X } from "vue-router";
4
4
  import b from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
5
5
  import Y from "../../components/Sidebar/Actions/EditSidebarListCollection.vue.js";
6
6
  import Z from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
7
- import { PathId as u } from "../../routes.js";
7
+ import { PathId as d } from "../../routes.js";
8
8
  import { useActiveEntities as _ } from "../../store/active-entities.js";
9
9
  import { createInitialRequest as ee } from "../../store/requests.js";
10
10
  import { useWorkspace as te } from "../../store/store.js";
11
- const fe = /* @__PURE__ */ L({
11
+ const ce = /* @__PURE__ */ L({
12
12
  __name: "RequestSidebarItemMenu",
13
13
  props: {
14
14
  menuItem: {}
15
15
  },
16
16
  emits: ["closeMenu", "toggleWatchMode", "clearDrafts"],
17
- setup(x, { emit: z }) {
18
- const s = x, M = z, { replace: k } = X(), {
17
+ setup(n, { emit: z }) {
18
+ const s = n, M = z, { replace: g } = X(), {
19
19
  activeRouterParams: E,
20
20
  activeWorkspaceCollections: y,
21
21
  activeWorkspaceRequests: N
22
- } = _(), { events: S, requestMutators: T } = te(), d = $(), v = $(), g = $(), A = () => S.commandPalette.emit({
22
+ } = _(), { events: S, requestMutators: T } = te(), c = $(), x = $(), p = $(), A = () => S.commandPalette.emit({
23
23
  commandName: "Add Example",
24
24
  metaData: {
25
25
  itemUid: s.menuItem.item?.entity.uid
26
26
  }
27
- }), R = (t, e) => {
28
- s.menuItem.item?.edit(t, e), d.hide();
27
+ }), R = (a, e) => {
28
+ s.menuItem.item?.edit(a, e), c.hide();
29
29
  }, B = () => {
30
30
  if (s.menuItem.item?.delete(), !N.value.length) {
31
- const { request: t } = ee(), e = y.value.find(
32
- (m) => m.info?.title === "Drafts"
31
+ const { request: a } = ee(), e = y.value.find(
32
+ (o) => o.info?.title === "Drafts"
33
33
  );
34
- e && (T.add(t, e.uid), k({
34
+ e && (T.add(a, e.uid), g({
35
35
  name: "request",
36
36
  params: {
37
- [u.Request]: t.uid
37
+ [d.Request]: a.uid
38
38
  }
39
39
  }));
40
40
  }
41
- if (E.value[u.Request] === s.menuItem.item?.entity.uid && k({
41
+ if (E.value[d.Request] === s.menuItem.item?.entity.uid && g({
42
42
  name: "request",
43
43
  params: {
44
- [u.Request]: "default"
44
+ [d.Request]: "default"
45
45
  }
46
- }), E.value[u.Examples] === s.menuItem.item?.entity.uid && k({
46
+ }), E.value[d.Examples] === s.menuItem.item?.entity.uid && g({
47
47
  name: "request",
48
48
  params: {
49
- [u.Request]: "default"
49
+ [d.Request]: "default"
50
50
  }
51
51
  }), y.value[0]) {
52
- const t = y.value[0].requests[0];
53
- k({
52
+ const a = y.value[0].requests[0];
53
+ g({
54
54
  name: "request",
55
55
  params: {
56
- [u.Request]: t
56
+ [d.Request]: a
57
57
  }
58
58
  });
59
59
  }
60
- v.hide();
60
+ x.hide();
61
61
  }, f = P(null);
62
- F([() => s.menuItem.open, f], ([t]) => {
63
- t && f.value?.$parent?.$el && f.value.$parent.$el.focus();
62
+ F([() => s.menuItem.open, f], ([a]) => {
63
+ a && f.value?.$parent?.$el && f.value.$parent.$el.focus();
64
64
  });
65
65
  const h = () => s.menuItem.open && M("closeMenu");
66
66
  K(() => window.addEventListener("click", h)), j(() => window.removeEventListener("click", h));
67
67
  const U = () => {
68
68
  M("toggleWatchMode", s.menuItem.item);
69
69
  }, V = () => {
70
- M("clearDrafts"), g.hide();
70
+ M("clearDrafts"), p.hide();
71
71
  }, D = G(() => s.menuItem.item?.title === "Drafts");
72
- return (t, e) => (l(), w(C, null, [
73
- t.menuItem.targetRef && t.menuItem.open ? (l(), o(n(O), {
72
+ return (a, e) => (l(), w(C, null, [
73
+ n.menuItem.targetRef && n.menuItem.open ? (l(), u(t(O), {
74
74
  key: 0,
75
75
  placement: "right-start",
76
- target: t.menuItem.targetRef,
76
+ target: n.menuItem.targetRef,
77
77
  teleport: ""
78
78
  }, {
79
- floating: a(() => [
80
- i(n(Q), {
81
- onKeydown: e[3] || (e[3] = H((m) => t.$emit("closeMenu"), ["escape"]))
79
+ floating: m(() => [
80
+ i(t(Q), {
81
+ onKeydown: e[3] || (e[3] = H((o) => a.$emit("closeMenu"), ["escape"]))
82
82
  }, {
83
- default: a(() => [
84
- t.menuItem.item?.entity.type === "request" ? (l(), o(n(p), {
83
+ default: m(() => [
84
+ n.menuItem.item?.entity.type === "request" ? (l(), u(t(k), {
85
85
  key: 0,
86
86
  class: "flex items-center gap-2",
87
87
  onClick: A
88
88
  }, {
89
- default: a(() => [
90
- i(n(I), {
89
+ default: m(() => [
90
+ i(t(v), {
91
91
  class: "inline-flex",
92
92
  icon: "Example",
93
93
  size: "md",
94
94
  thickness: "1.5"
95
95
  }),
96
- e[8] || (e[8] = c("span", null, "Add Example", -1))
96
+ e[8] || (e[8] = I("span", null, "Add Example", -1))
97
97
  ]),
98
98
  _: 1
99
99
  })) : r("", !0),
100
- D.value ? r("", !0) : (l(), o(n(p), {
100
+ D.value ? r("", !0) : (l(), u(t(k), {
101
101
  key: 1,
102
102
  ref_key: "menuRef",
103
103
  ref: f,
104
104
  class: "flex items-center gap-2",
105
- onClick: e[0] || (e[0] = (m) => n(d).show())
105
+ onClick: e[0] || (e[0] = (o) => t(c).show())
106
106
  }, {
107
- default: a(() => [
108
- i(n(I), {
107
+ default: m(() => [
108
+ i(t(v), {
109
109
  class: "inline-flex",
110
110
  icon: "Edit",
111
111
  size: "md",
112
112
  thickness: "1.5"
113
113
  }),
114
- c("span", null, [
115
- t.menuItem.item?.entity.type === "collection" ? (l(), w(C, { key: 0 }, [
114
+ I("span", null, [
115
+ n.menuItem.item?.entity.type === "collection" ? (l(), w(C, { key: 0 }, [
116
116
  W(" Edit ")
117
117
  ], 64)) : (l(), w(C, { key: 1 }, [
118
118
  W(" Rename ")
@@ -121,53 +121,53 @@ const fe = /* @__PURE__ */ L({
121
121
  ]),
122
122
  _: 1
123
123
  }, 512)),
124
- t.menuItem.item?.documentUrl ? (l(), o(n(p), {
124
+ n.menuItem.item?.documentUrl ? (l(), u(t(k), {
125
125
  key: 2,
126
126
  ref_key: "menuRef",
127
127
  ref: f,
128
128
  class: "flex items-center gap-2",
129
129
  onClick: U
130
130
  }, {
131
- default: a(() => [
132
- i(n(I), {
131
+ default: m(() => [
132
+ i(t(v), {
133
133
  class: "inline-flex",
134
- icon: t.menuItem.item?.watchMode ? "Unwatch" : "Watch",
134
+ icon: n.menuItem.item?.watchMode ? "Unwatch" : "Watch",
135
135
  size: "md",
136
136
  thickness: "1.5"
137
137
  }, null, 8, ["icon"]),
138
- c("span", null, J(t.menuItem.item?.watchMode ? "Disable Watch Mode" : "Enable Watch Mode"), 1)
138
+ I("span", null, J(n.menuItem.item?.watchMode ? "Disable Watch Mode" : "Enable Watch Mode"), 1)
139
139
  ]),
140
140
  _: 1
141
141
  }, 512)) : r("", !0),
142
- D.value ? r("", !0) : (l(), o(n(p), {
142
+ D.value ? r("", !0) : (l(), u(t(k), {
143
143
  key: 3,
144
144
  class: "flex items-center gap-2",
145
- onClick: e[1] || (e[1] = (m) => n(v).show())
145
+ onClick: e[1] || (e[1] = (o) => t(x).show())
146
146
  }, {
147
- default: a(() => [
148
- i(n(I), {
147
+ default: m(() => [
148
+ i(t(v), {
149
149
  class: "inline-flex",
150
150
  icon: "Delete",
151
151
  size: "md",
152
152
  thickness: "1.5"
153
153
  }),
154
- e[9] || (e[9] = c("span", null, "Delete", -1))
154
+ e[9] || (e[9] = I("span", null, "Delete", -1))
155
155
  ]),
156
156
  _: 1
157
157
  })),
158
- D.value ? (l(), o(n(p), {
158
+ D.value ? (l(), u(t(k), {
159
159
  key: 4,
160
160
  class: "flex items-center gap-2",
161
- onClick: e[2] || (e[2] = (m) => n(g).show())
161
+ onClick: e[2] || (e[2] = (o) => t(p).show())
162
162
  }, {
163
- default: a(() => [
164
- i(n(I), {
163
+ default: m(() => [
164
+ i(t(v), {
165
165
  class: "inline-flex",
166
166
  icon: "Delete",
167
167
  size: "md",
168
168
  thickness: "1.5"
169
169
  }),
170
- e[10] || (e[10] = c("span", null, "Clear Drafts", -1))
170
+ e[10] || (e[10] = I("span", null, "Clear Drafts", -1))
171
171
  ]),
172
172
  _: 1
173
173
  })) : r("", !0)
@@ -177,52 +177,52 @@ const fe = /* @__PURE__ */ L({
177
177
  ]),
178
178
  _: 1
179
179
  }, 8, ["target"])) : r("", !0),
180
- i(n(q), {
180
+ i(t(q), {
181
181
  size: "xxs",
182
- state: n(v),
183
- title: `Delete ${t.menuItem.item?.resourceTitle}`
182
+ state: t(x),
183
+ title: `Delete ${n.menuItem.item?.resourceTitle}`
184
184
  }, {
185
- default: a(() => [
185
+ default: m(() => [
186
186
  i(b, {
187
- variableName: t.menuItem.item?.title ?? "",
188
- warningMessage: t.menuItem.item?.warning,
189
- onClose: e[4] || (e[4] = (m) => n(v).hide()),
187
+ variableName: n.menuItem.item?.title ?? "",
188
+ warningMessage: n.menuItem.item?.warning,
189
+ onClose: e[4] || (e[4] = (o) => t(x).hide()),
190
190
  onDelete: B
191
191
  }, null, 8, ["variableName", "warningMessage"])
192
192
  ]),
193
193
  _: 1
194
194
  }, 8, ["state", "title"]),
195
- i(n(q), {
195
+ i(t(q), {
196
196
  size: "xxs",
197
- state: n(d),
198
- title: `Edit ${t.menuItem.item?.resourceTitle}`
197
+ state: t(c),
198
+ title: `Edit ${n.menuItem.item?.resourceTitle}`
199
199
  }, {
200
- default: a(() => [
201
- t.menuItem.item?.resourceTitle === "Collection" ? (l(), o(Y, {
200
+ default: m(() => [
201
+ n.menuItem.item?.resourceTitle === "Collection" ? (l(), u(Y, {
202
202
  key: 0,
203
- icon: t.menuItem.item?.icon || "interface-content-folder",
204
- name: t.menuItem.item?.title,
205
- onClose: e[5] || (e[5] = (m) => n(d).hide()),
203
+ icon: n.menuItem.item?.icon || "interface-content-folder",
204
+ name: n.menuItem.item?.title,
205
+ onClose: e[5] || (e[5] = (o) => t(c).hide()),
206
206
  onEdit: R
207
- }, null, 8, ["icon", "name"])) : (l(), o(Z, {
207
+ }, null, 8, ["icon", "name"])) : (l(), u(Z, {
208
208
  key: 1,
209
- name: t.menuItem.item?.title ?? "",
210
- onClose: e[6] || (e[6] = (m) => n(d).hide()),
209
+ name: n.menuItem.item?.title ?? "",
210
+ onClose: e[6] || (e[6] = (o) => t(c).hide()),
211
211
  onEdit: R
212
212
  }, null, 8, ["name"]))
213
213
  ]),
214
214
  _: 1
215
215
  }, 8, ["state", "title"]),
216
- i(n(q), {
216
+ i(t(q), {
217
217
  size: "xxs",
218
- state: n(g),
218
+ state: t(p),
219
219
  title: "Clear Drafts"
220
220
  }, {
221
- default: a(() => [
221
+ default: m(() => [
222
222
  i(b, {
223
223
  variableName: "All Drafts",
224
224
  warningMessage: "This action will clear all drafts. This cannot be undone.",
225
- onClose: e[7] || (e[7] = (m) => n(g).hide()),
225
+ onClose: e[7] || (e[7] = (o) => t(p).hide()),
226
226
  onDelete: V
227
227
  })
228
228
  ]),
@@ -232,5 +232,5 @@ const fe = /* @__PURE__ */ L({
232
232
  }
233
233
  });
234
234
  export {
235
- fe as default
235
+ ce as default
236
236
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as g, createElementBlock as l, openBlock as r, createElementVNode as i, createVNode as m, createCommentVNode as s, unref as o, normalizeClass as k, createBlock as v } from "vue";
2
- import { ScalarIcon as p } from "@scalar/components";
3
- import { useRouter as C } from "vue-router";
4
- import w from "../../components/AddressBar/AddressBar.vue.js";
1
+ import { defineComponent as k, createElementBlock as l, openBlock as n, createElementVNode as i, createVNode as c, createCommentVNode as s, unref as e, normalizeClass as v, createBlock as C } from "vue";
2
+ import { ScalarIcon as u } from "@scalar/components";
3
+ import { useRouter as w } from "vue-router";
4
+ import x from "../../components/AddressBar/AddressBar.vue.js";
5
5
  import { useLayout as y } from "../../hooks/useLayout.js";
6
6
  import { useSidebar as h } from "../../hooks/useSidebar.js";
7
7
  import V from "../../components/OpenApiClientButton.vue.js";
8
8
  import { useWorkspace as z } from "../../store/store.js";
9
- const B = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center border-b p-2 pt-2 lg:p-1 lg:pt-1" }, S = { class: "mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1" }, $ = { class: "mb-2 flex w-1/2 flex-row items-center justify-end gap-1 lg:mb-0 lg:flex-1 lg:px-2.5" }, O = /* @__PURE__ */ g({
9
+ const B = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center border-b p-2 pt-2 lg:p-1 lg:pt-1" }, S = { class: "mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1" }, $ = { class: "mb-2 flex w-1/2 flex-row items-center justify-end gap-1 lg:mb-0 lg:flex-1 lg:px-2.5" }, O = /* @__PURE__ */ k({
10
10
  __name: "RequestSubpageHeader",
11
11
  props: {
12
12
  collection: {},
@@ -17,58 +17,58 @@ const B = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap i
17
17
  workspace: {}
18
18
  },
19
19
  emits: ["hideModal", "importCurl"],
20
- setup(x) {
21
- const { hideClientButton: u, showSidebar: d, integration: c } = z(), { isSidebarOpen: f } = h(), { layout: n } = y(), { currentRoute: b } = C();
22
- return (e, t) => (r(), l("div", B, [
20
+ setup(t) {
21
+ const { hideClientButton: d, showSidebar: p, integration: f } = z(), { isSidebarOpen: b } = h(), { layout: r } = y(), { currentRoute: g } = w();
22
+ return (a, o) => (n(), l("div", B, [
23
23
  i("div", S, [
24
- o(d) ? (r(), l("div", {
24
+ e(p) ? (n(), l("div", {
25
25
  key: 0,
26
- class: k(["size-8", { hidden: o(n) === "modal" && !o(f) }])
26
+ class: v(["size-8", { hidden: e(r) === "modal" && !e(b) }])
27
27
  }, null, 2)) : s("", !0)
28
28
  ]),
29
- m(w, {
30
- collection: e.collection,
31
- envVariables: e.envVariables,
32
- environment: e.environment,
33
- operation: e.operation,
34
- server: e.server,
35
- workspace: e.workspace,
36
- onImportCurl: t[0] || (t[0] = (a) => e.$emit("importCurl", a))
29
+ c(x, {
30
+ collection: t.collection,
31
+ envVariables: t.envVariables,
32
+ environment: t.environment,
33
+ operation: t.operation,
34
+ server: t.server,
35
+ workspace: t.workspace,
36
+ onImportCurl: o[0] || (o[0] = (m) => a.$emit("importCurl", m))
37
37
  }, null, 8, ["collection", "envVariables", "environment", "operation", "server", "workspace"]),
38
38
  i("div", $, [
39
- o(n) === "modal" && e.collection.documentUrl && !o(u) ? (r(), v(o(V), {
39
+ e(r) === "modal" && t.collection.documentUrl && !e(d) ? (n(), C(e(V), {
40
40
  key: 0,
41
41
  buttonSource: "modal",
42
42
  class: "!w-fit lg:-mr-1",
43
- integration: o(c) ?? e.collection.integration ?? null,
44
- source: o(b).query.source === "gitbook" ? "gitbook" : "api-reference",
45
- url: e.collection.documentUrl
43
+ integration: e(f) ?? t.collection.integration ?? null,
44
+ source: e(g).query.source === "gitbook" ? "gitbook" : "api-reference",
45
+ url: t.collection.documentUrl
46
46
  }, null, 8, ["integration", "source", "url"])) : s("", !0),
47
- o(n) === "modal" ? (r(), l("button", {
47
+ e(r) === "modal" ? (n(), l("button", {
48
48
  key: 1,
49
49
  class: "app-exit-button gitbook-hidden zoomed:static zoomed:p-1 fixed top-2 right-2 rounded-full p-2",
50
50
  type: "button",
51
- onClick: t[1] || (t[1] = (a) => e.$emit("hideModal"))
51
+ onClick: o[1] || (o[1] = (m) => a.$emit("hideModal"))
52
52
  }, [
53
- m(o(p), {
53
+ c(e(u), {
54
54
  icon: "Close",
55
55
  size: "lg",
56
56
  thickness: "2"
57
57
  }),
58
- t[3] || (t[3] = i("span", { class: "sr-only" }, "Close Client", -1))
58
+ o[3] || (o[3] = i("span", { class: "sr-only" }, "Close Client", -1))
59
59
  ])) : s("", !0),
60
- o(n) === "modal" ? (r(), l("button", {
60
+ e(r) === "modal" ? (n(), l("button", {
61
61
  key: 2,
62
62
  class: "text-c-1 hover:bg-b-2 active:text-c-1 gitbook-show -mr-1.5 rounded p-2",
63
63
  type: "button",
64
- onClick: t[2] || (t[2] = (a) => e.$emit("hideModal"))
64
+ onClick: o[2] || (o[2] = (m) => a.$emit("hideModal"))
65
65
  }, [
66
- m(o(p), {
66
+ c(e(u), {
67
67
  icon: "Close",
68
68
  size: "md",
69
69
  thickness: "1.75"
70
70
  }),
71
- t[4] || (t[4] = i("span", { class: "sr-only" }, "Close Client", -1))
71
+ o[4] || (o[4] = i("span", { class: "sr-only" }, "Close Client", -1))
72
72
  ])) : s("", !0)
73
73
  ])
74
74
  ]));
@@ -1,50 +1,50 @@
1
- import { defineComponent as x, createBlock as f, openBlock as r, withCtx as e, createElementBlock as l, createVNode as a, unref as u, createTextVNode as n, Fragment as d, renderList as y, toDisplayString as i } from "vue";
2
- import b from "../../../components/DataTable/DataTable.vue.js";
3
- import c from "../../../components/DataTable/DataTableRow.vue.js";
4
- import p from "../../../components/DataTable/DataTableText.vue.js";
5
- import g from "../../../components/HelpfulLink.vue.js";
6
- import k from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
- import { httpHeaders as w } from "../../../data/httpHeaders.js";
8
- import _ from "../../../components/DataTable/DataTableHeader.vue.js";
9
- const h = {
1
+ import { defineComponent as y, createBlock as f, openBlock as r, withCtx as e, createElementBlock as s, createVNode as a, unref as d, createTextVNode as n, Fragment as i, renderList as b, toDisplayString as c } from "vue";
2
+ import g from "../../../components/DataTable/DataTable.vue.js";
3
+ import p from "../../../components/DataTable/DataTableRow.vue.js";
4
+ import _ from "../../../components/DataTable/DataTableText.vue.js";
5
+ import k from "../../../components/HelpfulLink.vue.js";
6
+ import w from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
+ import { httpHeaders as h } from "../../../data/httpHeaders.js";
8
+ import x from "../../../components/DataTable/DataTableHeader.vue.js";
9
+ const H = {
10
10
  key: 0,
11
11
  class: "max-h-[calc(100%-32px)] overflow-y-auto"
12
- }, H = {
12
+ }, C = {
13
13
  key: 1,
14
14
  class: "text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-base"
15
- }, z = /* @__PURE__ */ x({
15
+ }, z = /* @__PURE__ */ y({
16
16
  __name: "RequestHeaders",
17
17
  props: {
18
18
  headers: {}
19
19
  },
20
- setup(C) {
21
- const m = (s) => w.find(
22
- (t) => t.name.toLowerCase() === s.toLowerCase()
20
+ setup(l) {
21
+ const m = (u) => h.find(
22
+ (t) => t.name.toLowerCase() === u.toLowerCase()
23
23
  );
24
- return (s, t) => (r(), f(k, {
24
+ return (u, t) => (r(), f(w, {
25
25
  class: "overflow-auto",
26
26
  defaultOpen: !1,
27
- itemCount: s.headers.length
27
+ itemCount: l.headers.length
28
28
  }, {
29
29
  title: e(() => [...t[0] || (t[0] = [
30
30
  n("Request Headers", -1)
31
31
  ])]),
32
32
  default: e(() => [
33
- s.headers.length ? (r(), l("div", h, [
34
- a(b, {
33
+ l.headers.length ? (r(), s("div", H, [
34
+ a(g, {
35
35
  columns: ["minmax(auto, min-content)", "minmax(50%, 1fr)"],
36
36
  scroll: ""
37
37
  }, {
38
38
  default: e(() => [
39
- a(c, { class: "sr-only !block" }, {
39
+ a(p, { class: "sr-only !block" }, {
40
40
  default: e(() => [
41
- a(u(_), null, {
41
+ a(d(x), null, {
42
42
  default: e(() => [...t[1] || (t[1] = [
43
43
  n("Header Key", -1)
44
44
  ])]),
45
45
  _: 1
46
46
  }),
47
- a(u(_), null, {
47
+ a(d(x), null, {
48
48
  default: e(() => [...t[2] || (t[2] = [
49
49
  n("Header Value", -1)
50
50
  ])]),
@@ -53,29 +53,29 @@ const h = {
53
53
  ]),
54
54
  _: 1
55
55
  }),
56
- (r(!0), l(d, null, y(s.headers, (o) => (r(), f(c, {
56
+ (r(!0), s(i, null, b(l.headers, (o) => (r(), f(p, {
57
57
  key: o.name,
58
58
  class: "group/row text-c-1"
59
59
  }, {
60
60
  default: e(() => [
61
- a(p, { class: "bg-b-1 sticky left-0 z-1 max-w-full group-first/row:border-t-0" }, {
61
+ a(_, { class: "bg-b-1 sticky left-0 z-1 max-w-full group-first/row:border-t-0" }, {
62
62
  default: e(() => [
63
- typeof m(o.name)?.url == "string" ? (r(), f(g, {
63
+ typeof m(o.name)?.url == "string" ? (r(), f(k, {
64
64
  key: 0,
65
65
  class: "decoration-c-3",
66
66
  href: m(o.name).url
67
67
  }, {
68
68
  default: e(() => [
69
- n(i(o.name), 1)
69
+ n(c(o.name), 1)
70
70
  ]),
71
71
  _: 2
72
- }, 1032, ["href"])) : (r(), l(d, { key: 1 }, [
73
- n(i(o.name), 1)
72
+ }, 1032, ["href"])) : (r(), s(i, { key: 1 }, [
73
+ n(c(o.name), 1)
74
74
  ], 64))
75
75
  ]),
76
76
  _: 2
77
77
  }, 1024),
78
- a(p, {
78
+ a(_, {
79
79
  class: "z-0 group-first/row:border-t-0",
80
80
  text: o.value
81
81
  }, null, 8, ["text"])
@@ -85,7 +85,7 @@ const h = {
85
85
  ]),
86
86
  _: 1
87
87
  })
88
- ])) : (r(), l("div", H, " No Headers "))
88
+ ])) : (r(), s("div", C, " No Headers "))
89
89
  ]),
90
90
  _: 1
91
91
  }, 8, ["itemCount"]));
@@ -1,16 +1,16 @@
1
- import { defineComponent as B, ref as R, computed as m, toRef as f, createBlock as n, openBlock as t, createSlots as V, withCtx as d, createElementBlock as b, createCommentVNode as r, createElementVNode as v, toDisplayString as y, unref as a, createTextVNode as h, createVNode as C } from "vue";
2
- import N from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
3
- import { useResponseBody as T } from "../../../hooks/useResponseBody.js";
4
- import $ from "./ResponseBodyDownload.vue.js";
5
- import E from "./ResponseBodyInfo.vue.js";
6
- import P from "./ResponseBodyPreview.vue.js";
7
- import S from "./ResponseBodyRaw.vue.js";
8
- import U from "./ResponseBodyToggle.vue.js";
9
- import { getMediaTypeConfig as j } from "../consts/mediaTypes.js";
10
- const D = {
1
+ import { defineComponent as B, ref as R, computed as m, toRef as p, createBlock as n, openBlock as o, createSlots as V, withCtx as d, createElementBlock as _, createCommentVNode as r, createElementVNode as v, toDisplayString as y, unref as t, createTextVNode as h, createVNode as b } from "vue";
2
+ import C from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
3
+ import { useResponseBody as N } from "../../../hooks/useResponseBody.js";
4
+ import T from "./ResponseBodyDownload.vue.js";
5
+ import $ from "./ResponseBodyInfo.vue.js";
6
+ import E from "./ResponseBodyPreview.vue.js";
7
+ import P from "./ResponseBodyRaw.vue.js";
8
+ import S from "./ResponseBodyToggle.vue.js";
9
+ import { getMediaTypeConfig as U } from "../consts/mediaTypes.js";
10
+ const j = {
11
11
  key: 0,
12
12
  class: "bg-b-1 flex max-h-[calc(100%-32px)] flex-col overflow-hidden"
13
- }, F = { class: "box-content flex min-h-8 items-center justify-between border-y px-3" }, I = { class: "text-xxs font-code leading-3" }, O = /* @__PURE__ */ B({
13
+ }, D = { class: "box-content flex min-h-8 items-center justify-between border-y px-3" }, F = { class: "text-xxs font-code leading-3" }, O = /* @__PURE__ */ B({
14
14
  __name: "ResponseBody",
15
15
  props: {
16
16
  title: {},
@@ -18,43 +18,43 @@ const D = {
18
18
  data: {},
19
19
  headers: {}
20
20
  },
21
- setup(w) {
22
- const c = w, s = R(!0), p = m(
21
+ setup(a) {
22
+ const f = a, s = R(!0), c = m(
23
23
  () => !!(e.value?.raw && e.value.preview)
24
- ), g = m(() => s.value || !p.value), _ = m(() => !s.value || !p.value), { mimeType: i, attachmentFilename: x, dataUrl: o } = T({
25
- data: f(c, "data"),
26
- headers: f(c, "headers")
27
- }), e = m(() => j(i.value.essence));
28
- return (l, u) => (t(), n(N, {
24
+ ), w = m(() => s.value || !c.value), g = m(() => !s.value || !c.value), { mimeType: i, attachmentFilename: x, dataUrl: l } = N({
25
+ data: p(f, "data"),
26
+ headers: p(f, "headers")
27
+ }), e = m(() => U(i.value.essence));
28
+ return (I, u) => (o(), n(C, {
29
29
  class: "max-h-content overflow-y-hidden",
30
- layout: l.layout
30
+ layout: a.layout
31
31
  }, V({
32
32
  title: d(() => [
33
- h(y(l.title), 1)
33
+ h(y(a.title), 1)
34
34
  ]),
35
35
  default: d(() => [
36
- l.data ? (t(), b("div", D, [
37
- v("div", F, [
38
- v("span", I, y(a(i).essence), 1),
39
- p.value ? (t(), n(U, {
36
+ a.data ? (o(), _("div", j, [
37
+ v("div", D, [
38
+ v("span", F, y(t(i).essence), 1),
39
+ c.value ? (o(), n(S, {
40
40
  key: 0,
41
41
  modelValue: s.value,
42
42
  "onUpdate:modelValue": u[0] || (u[0] = (k) => s.value = k)
43
43
  }, null, 8, ["modelValue"])) : r("", !0)
44
44
  ]),
45
- e.value?.raw && _.value ? (t(), n(S, {
46
- key: a(o),
47
- content: l.data,
45
+ e.value?.raw && g.value ? (o(), n(P, {
46
+ key: t(l),
47
+ content: a.data,
48
48
  language: e.value.language
49
49
  }, null, 8, ["content", "language"])) : r("", !0),
50
- e.value?.preview && g.value ? (t(), n(P, {
51
- key: a(o),
50
+ e.value?.preview && w.value ? (o(), n(E, {
51
+ key: t(l),
52
52
  alpha: e.value.alpha,
53
53
  mode: e.value.preview,
54
- src: a(o),
55
- type: a(i).essence
54
+ src: t(l),
55
+ type: t(i).essence
56
56
  }, null, 8, ["alpha", "mode", "src", "type"])) : r("", !0),
57
- !e.value?.raw && !e.value?.preview ? (t(), n(E, { key: 2 }, {
57
+ !e.value?.raw && !e.value?.preview ? (o(), n($, { key: 2 }, {
58
58
  default: d(() => [...u[1] || (u[1] = [
59
59
  h(" Binary file ", -1)
60
60
  ])]),
@@ -64,13 +64,13 @@ const D = {
64
64
  ]),
65
65
  _: 2
66
66
  }, [
67
- l.data && a(o) ? {
67
+ a.data && t(l) ? {
68
68
  name: "actions",
69
69
  fn: d(() => [
70
- C($, {
71
- filename: a(x),
72
- href: a(o),
73
- type: a(i).essence
70
+ b(T, {
71
+ filename: t(x),
72
+ href: t(l),
73
+ type: t(i).essence
74
74
  }, null, 8, ["filename", "href", "type"])
75
75
  ]),
76
76
  key: "0"