@scalar/api-client 2.18.1 → 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 (277) hide show
  1. package/CHANGELOG.md +61 -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/layouts/App/create-api-client-app.d.ts.map +1 -1
  55. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  56. package/dist/libs/create-client.d.ts.map +1 -1
  57. package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
  58. package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
  59. package/dist/plugins/hooks/usePluginManager.js +4 -4
  60. package/dist/plugins/index.d.ts +1 -1
  61. package/dist/plugins/index.d.ts.map +1 -1
  62. package/dist/plugins/index.js +5 -5
  63. package/dist/plugins/plugin-manager.d.ts +0 -2
  64. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  65. package/dist/routes.d.ts +0 -10
  66. package/dist/routes.d.ts.map +1 -1
  67. package/dist/routes.js +0 -1
  68. package/dist/store/security-schemes.d.ts.map +1 -1
  69. package/dist/store/store.d.ts.map +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
  72. package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
  73. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  74. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
  75. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
  76. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
  77. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
  78. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  79. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
  80. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
  81. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  82. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
  83. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
  84. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
  85. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
  86. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  87. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
  88. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  89. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  90. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
  91. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
  92. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  93. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  94. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
  95. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
  96. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
  97. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
  98. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
  99. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
  100. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  101. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
  102. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
  103. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  104. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
  105. package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
  106. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
  107. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  108. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
  109. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
  110. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
  111. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  112. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
  113. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
  114. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
  115. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
  116. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
  117. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
  118. package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
  119. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
  120. package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
  121. package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
  122. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
  123. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
  124. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
  125. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
  126. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
  127. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
  128. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
  129. package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
  130. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
  131. package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
  132. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
  133. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
  134. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
  135. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
  136. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
  137. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +69 -69
  138. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
  139. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
  140. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
  141. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +29 -29
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
  144. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +75 -75
  145. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
  146. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  147. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
  148. package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
  149. package/dist/v2/components/data-table/DataTable.vue.js +17 -17
  150. package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
  151. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
  152. package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
  153. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
  154. package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
  155. package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
  156. package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
  157. package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
  158. package/dist/v2/components/resize/Resize.vue2.js +11 -11
  159. package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
  160. package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
  161. package/dist/v2/components/sidebar/Sidebar.vue.js +32 -32
  162. package/dist/v2/components/sidebar/SidebarMenu.vue.js +20 -20
  163. package/dist/v2/features/app/App.vue.js +25 -25
  164. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  165. package/dist/v2/features/app/app-events.js +55 -61
  166. package/dist/v2/features/app/components/AppSidebar.vue2.js +97 -97
  167. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
  168. package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
  169. package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
  170. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
  171. package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
  172. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -5
  173. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  174. package/dist/v2/features/app/helpers/create-api-client-app.js +1 -2
  175. package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
  176. package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
  177. package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
  178. package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
  179. package/dist/v2/features/collection/components/Environment.vue.js +10 -10
  180. package/dist/v2/features/collection/components/Form.vue.js +21 -21
  181. package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
  182. package/dist/v2/features/collection/components/Servers.vue.js +37 -37
  183. package/dist/v2/features/collection/components/Settings.vue.js +22 -22
  184. package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
  185. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
  186. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
  187. package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
  188. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
  189. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
  190. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
  191. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
  192. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
  193. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
  194. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  195. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
  196. package/dist/v2/features/command-palette/types.d.ts +11 -10
  197. package/dist/v2/features/command-palette/types.d.ts.map +1 -1
  198. package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
  199. package/dist/v2/features/environments/components/Environment.vue.js +16 -16
  200. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
  201. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
  202. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
  203. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
  204. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
  205. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
  206. package/dist/v2/features/modal/Modal.vue2.js +56 -56
  207. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -1
  208. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  209. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
  210. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
  211. package/dist/v2/features/operation/Operation.vue.js +34 -34
  212. package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
  213. package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
  214. package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
  215. package/dist/v2/features/search/types.d.ts +5 -4
  216. package/dist/v2/features/search/types.d.ts.map +1 -1
  217. package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
  218. package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
  219. package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
  220. package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
  221. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  222. package/dist/v2/helpers/handle-hotkeys.js +0 -2
  223. package/dist/v2/helpers/plugins.d.ts +2 -2
  224. package/dist/v2/helpers/plugins.d.ts.map +1 -1
  225. package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
  226. package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
  227. package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
  228. package/dist/views/Cookies/CookieModal.vue2.js +26 -26
  229. package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
  230. package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
  231. package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
  232. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
  233. package/dist/views/Request/Request.vue2.js +55 -55
  234. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
  235. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
  236. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
  237. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  238. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
  239. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  240. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
  241. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
  242. package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
  243. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
  244. package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
  245. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
  246. package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
  247. package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
  248. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
  249. package/dist/views/Request/RequestSection/index.d.ts +1 -1
  250. package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
  251. package/dist/views/Request/RequestSection/index.js +4 -4
  252. package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
  253. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
  254. package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
  255. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
  256. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
  257. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
  258. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
  259. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
  260. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
  261. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
  262. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
  263. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
  264. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
  265. package/package.json +23 -23
  266. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
  267. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
  268. package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
  269. package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
  270. package/dist/components/ScreenReader.vue.d.ts +0 -20
  271. package/dist/components/ScreenReader.vue.d.ts.map +0 -1
  272. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
  273. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
  274. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
  275. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
  276. package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
  277. package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent as E, ref as v, computed as I, watch as S, createElementBlock as d, openBlock as t, createCommentVNode as c, Fragment as w, normalizeStyle as f, normalizeClass as s, createBlock as h, unref as m, createElementVNode as n, renderList as j, withDirectives as D, vModelText as V, createVNode as $, nextTick as N } from "vue";
2
- import { ScalarIcon as p } from "@scalar/components";
1
+ import { defineComponent as E, ref as f, computed as I, watch as S, createElementBlock as v, openBlock as t, createCommentVNode as n, Fragment as w, normalizeStyle as m, normalizeClass as r, createBlock as x, unref as C, createElementVNode as a, renderList as j, withDirectives as D, vModelText as V, createVNode as $, nextTick as N } from "vue";
2
+ import { ScalarIcon as k } from "@scalar/components";
3
3
  const R = ["onClick"], T = ["placeholder"], U = /* @__PURE__ */ E({
4
4
  __name: "EnvironmentColors",
5
5
  props: {
@@ -7,8 +7,8 @@ const R = ["onClick"], T = ["placeholder"], U = /* @__PURE__ */ E({
7
7
  selector: { type: Boolean, default: !1 }
8
8
  },
9
9
  emits: ["select"],
10
- setup(x, { emit: F }) {
11
- const e = x, z = F, o = v(""), C = v(null), a = v(!1), u = v(!1), k = [
10
+ setup(c, { emit: F }) {
11
+ const e = c, z = F, l = f(""), h = f(null), u = f(!1), i = f(!1), b = [
12
12
  { color: "#FFFFFF" },
13
13
  { color: "#EF0006" },
14
14
  { color: "#EDBE20" },
@@ -17,99 +17,99 @@ const R = ["onClick"], T = ["placeholder"], U = /* @__PURE__ */ E({
17
17
  { color: "#0082D0" },
18
18
  { color: "#5203D1" },
19
19
  { color: "#FFC0CB" }
20
- ], b = I(() => e.activeColor && !k.some((l) => l.color === e.activeColor) || o.value ? `background-color: ${e.activeColor || o.value};` : "background: linear-gradient(to right, rgb(235, 87, 87), rgb(242, 201, 76), rgb(76, 183, 130), rgb(78, 167, 252), rgb(250, 96, 122));"), y = () => {
21
- a.value = !a.value, e.selector && (u.value = !1), N(() => {
22
- C.value && C.value.focus();
20
+ ], y = I(() => e.activeColor && !b.some((s) => s.color === e.activeColor) || l.value ? `background-color: ${e.activeColor || l.value};` : "background: linear-gradient(to right, rgb(235, 87, 87), rgb(242, 201, 76), rgb(76, 183, 130), rgb(78, 167, 252), rgb(250, 96, 122));"), p = () => {
21
+ u.value = !u.value, e.selector && (i.value = !1), N(() => {
22
+ h.value && h.value.focus();
23
23
  });
24
24
  };
25
- S(o, (l) => {
26
- l && !l.startsWith("#") && (o.value = `#${l}`), a.value = !0;
25
+ S(l, (s) => {
26
+ s && !s.startsWith("#") && (l.value = `#${s}`), u.value = !0;
27
27
  });
28
28
  const B = () => {
29
- e.selector && (u.value = !u.value);
30
- }, g = (l) => {
31
- z("select", l), e.selector && (u.value = !1);
29
+ e.selector && (i.value = !i.value);
30
+ }, g = (s) => {
31
+ z("select", s), e.selector && (i.value = !1);
32
32
  };
33
- return (l, i) => (t(), d("div", null, [
34
- a.value ? c("", !0) : (t(), d(w, { key: 0 }, [
35
- e.selector && !u.value ? (t(), d("div", {
33
+ return (s, d) => (t(), v("div", null, [
34
+ u.value ? n("", !0) : (t(), v(w, { key: 0 }, [
35
+ e.selector && !i.value ? (t(), v("div", {
36
36
  key: 0,
37
- class: s(["flex cursor-pointer items-center justify-center rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
38
- style: f({ backgroundColor: l.activeColor }),
37
+ class: r(["flex cursor-pointer items-center justify-center rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
38
+ style: m({ backgroundColor: c.activeColor }),
39
39
  onClick: B
40
40
  }, [
41
- l.activeColor ? (t(), h(m(p), {
41
+ c.activeColor ? (t(), x(C(k), {
42
42
  key: 0,
43
- class: s(["text-c-btn", e.selector && "p-0.5"]),
43
+ class: r(["text-c-btn", e.selector && "p-0.5"]),
44
44
  icon: "Checkmark",
45
45
  size: "xs"
46
- }, null, 8, ["class"])) : c("", !0)
47
- ], 6)) : c("", !0),
48
- u.value || !e.selector ? (t(), d("div", {
46
+ }, null, 8, ["class"])) : n("", !0)
47
+ ], 6)) : n("", !0),
48
+ i.value || !e.selector ? (t(), v("div", {
49
49
  key: 1,
50
- class: s(["color-selector flex flex-row items-center justify-between gap-1.5 space-x-1", e.selector ? "h-4" : "min-h-10 min-w-[296px]"])
50
+ class: r(["color-selector flex flex-row items-center justify-between gap-1.5 space-x-1", e.selector ? "h-4" : "min-h-10 min-w-[296px]"])
51
51
  }, [
52
- (t(), d(w, null, j(k, (r) => n("div", {
53
- key: r.color,
54
- class: s(["flex cursor-pointer items-center justify-center rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
55
- style: f({ backgroundColor: r.color }),
56
- onClick: (L) => g(r.color)
52
+ (t(), v(w, null, j(b, (o) => a("div", {
53
+ key: o.color,
54
+ class: r(["flex cursor-pointer items-center justify-center rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
55
+ style: m({ backgroundColor: o.color }),
56
+ onClick: (L) => g(o.color)
57
57
  }, [
58
- l.activeColor === r.color && !o.value ? (t(), h(m(p), {
58
+ c.activeColor === o.color && !l.value ? (t(), x(C(k), {
59
59
  key: 0,
60
- class: s(["text-c-btn", e.selector && "p-0.5"]),
60
+ class: r(["text-c-btn", e.selector && "p-0.5"]),
61
61
  icon: "Checkmark",
62
62
  size: "xs"
63
- }, null, 8, ["class"])) : c("", !0)
63
+ }, null, 8, ["class"])) : n("", !0)
64
64
  ], 14, R)), 64)),
65
- i[2] || (i[2] = n("hr", { class: "border-ghost h-5 w-0.5 border-l" }, null, -1)),
66
- n("label", {
67
- class: s(["z-10 flex cursor-pointer flex-row items-center justify-center gap-2 rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
68
- style: f(b.value),
69
- onClick: y
65
+ d[2] || (d[2] = a("hr", { class: "border-ghost h-5 w-0.5 border-l" }, null, -1)),
66
+ a("label", {
67
+ class: r(["z-10 flex cursor-pointer flex-row items-center justify-center gap-2 rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
68
+ style: m(y.value),
69
+ onClick: p
70
70
  }, [
71
- !a.value && (l.activeColor === o.value || l.activeColor && !k.some((r) => r.color === l.activeColor)) ? (t(), h(m(p), {
71
+ !u.value && (c.activeColor === l.value || c.activeColor && !b.some((o) => o.color === c.activeColor)) ? (t(), x(C(k), {
72
72
  key: 0,
73
73
  class: "text-c-btn",
74
74
  icon: "Checkmark",
75
75
  size: "xs"
76
- })) : c("", !0)
76
+ })) : n("", !0)
77
77
  ], 6)
78
- ], 2)) : c("", !0)
78
+ ], 2)) : n("", !0)
79
79
  ], 64)),
80
- a.value ? (t(), d("div", {
80
+ u.value ? (t(), v("div", {
81
81
  key: 1,
82
- class: s(["color-selector flex flex-1 items-center gap-2 rounded", e.selector ? "h-4" : "min-h-10"])
82
+ class: r(["color-selector flex flex-1 items-center gap-2 rounded", e.selector ? "h-4" : "min-h-10"])
83
83
  }, [
84
- n("span", {
85
- class: s(["absolute rounded-full border border-dashed", e.selector ? "h-4 w-4" : "h-5 w-5"])
84
+ a("span", {
85
+ class: r(["absolute rounded-full border border-dashed", e.selector ? "h-4 w-4" : "h-5 w-5"])
86
86
  }, null, 2),
87
- n("span", {
88
- class: s(["z-[1] rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
89
- style: f(b.value)
87
+ a("span", {
88
+ class: r(["z-[1] rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
89
+ style: m(y.value)
90
90
  }, null, 6),
91
- D(n("input", {
91
+ D(a("input", {
92
92
  ref_key: "customColorInputRef",
93
- ref: C,
94
- "onUpdate:modelValue": i[0] || (i[0] = (r) => o.value = r),
93
+ ref: h,
94
+ "onUpdate:modelValue": d[0] || (d[0] = (o) => l.value = o),
95
95
  class: "w-full flex-1 border-transparent text-sm outline-none",
96
- placeholder: l.activeColor || "#000000",
96
+ placeholder: c.activeColor || "#000000",
97
97
  type: "text",
98
- onInput: i[1] || (i[1] = (r) => g(o.value))
98
+ onInput: d[1] || (d[1] = (o) => g(l.value))
99
99
  }, null, 40, T), [
100
- [V, o.value]
100
+ [V, l.value]
101
101
  ]),
102
- n("button", {
102
+ a("button", {
103
103
  class: "text-c-3 hover:bg-b-2 rounded-lg p-1.5",
104
104
  type: "button",
105
- onClick: y
105
+ onClick: p
106
106
  }, [
107
- $(m(p), {
107
+ $(C(k), {
108
108
  icon: "Checkmark",
109
109
  size: "xs"
110
110
  })
111
111
  ])
112
- ], 2)) : c("", !0)
112
+ ], 2)) : n("", !0)
113
113
  ]));
114
114
  }
115
115
  });
@@ -1,5 +1,5 @@
1
- import { defineComponent as y, ref as m, computed as _, watch as h, createBlock as u, openBlock as v, unref as i, withCtx as o, createVNode as s, createElementVNode as p, createTextVNode as w, normalizeClass as I, toDisplayString as E } from "vue";
2
- import { ScalarModal as N, ScalarListbox as T, ScalarButton as C, ScalarIcon as $ } from "@scalar/components";
1
+ import { defineComponent as y, ref as m, computed as h, watch as _, createBlock as u, openBlock as v, unref as i, withCtx as o, createVNode as s, createElementVNode as p, createTextVNode as w, normalizeClass as I, toDisplayString as E } from "vue";
2
+ import { ScalarModal as N, ScalarListbox as T, ScalarButton as x, ScalarIcon as $ } from "@scalar/components";
3
3
  import { useToasts as z } from "@scalar/use-toasts";
4
4
  import B from "../../components/CommandPalette/CommandActionForm.vue.js";
5
5
  import D from "../../components/CommandPalette/CommandActionInput.vue.js";
@@ -13,35 +13,35 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ y({
13
13
  collectionId: {}
14
14
  },
15
15
  emits: ["cancel", "submit"],
16
- setup(x, { emit: g }) {
17
- const a = x, f = g, { events: F } = U(), n = m(""), r = m("#FFFFFF"), c = _(() => [
18
- ...a.activeWorkspaceCollections.filter((t) => t.info?.title !== "Drafts").map((t) => ({
19
- id: t.uid,
20
- label: t.info?.title ?? "Untitled Collection"
16
+ setup(f, { emit: g }) {
17
+ const a = f, b = g, { events: F } = U(), n = m(""), r = m("#FFFFFF"), c = h(() => [
18
+ ...a.activeWorkspaceCollections.filter((l) => l.info?.title !== "Drafts").map((l) => ({
19
+ id: l.uid,
20
+ label: l.info?.title ?? "Untitled Collection"
21
21
  }))
22
22
  ]), e = m(
23
- c.value.find((t) => t.id === a.collectionId)
24
- ), { toast: b } = z(), S = (t) => {
25
- r.value = t;
23
+ c.value.find((l) => l.id === a.collectionId)
24
+ ), { toast: C } = z(), S = (l) => {
25
+ r.value = l;
26
26
  };
27
- h(
27
+ _(
28
28
  () => a.state.open,
29
- (t) => {
30
- t && (n.value = "", r.value = "#FFFFFF", a.collectionId ? e.value = c.value.find(
31
- (l) => l.id === a.collectionId
29
+ (l) => {
30
+ l && (n.value = "", r.value = "#FFFFFF", a.collectionId ? e.value = c.value.find(
31
+ (t) => t.id === a.collectionId
32
32
  ) : e.value = void 0);
33
33
  }
34
34
  );
35
35
  const V = () => {
36
36
  if (!n.value.trim()) {
37
- b("Please enter a name before adding an environment.", "error");
37
+ C("Please enter a name before adding an environment.", "error");
38
38
  return;
39
39
  }
40
40
  if (!e.value?.id) {
41
- b("Please select a collection before adding an environment.", "error");
41
+ C("Please select a collection before adding an environment.", "error");
42
42
  return;
43
43
  }
44
- f("submit", {
44
+ b("submit", {
45
45
  name: n.value,
46
46
  color: r.value,
47
47
  type: e.value?.id === "global" ? "global" : "collection",
@@ -50,26 +50,26 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ y({
50
50
  }, k = () => {
51
51
  a.state.hide(), F.commandPalette.emit({ commandName: "Create Collection" });
52
52
  };
53
- return (t, l) => (v(), u(i(N), {
53
+ return (l, t) => (v(), u(i(N), {
54
54
  bodyClass: "border-t-0 rounded-t-lg",
55
55
  size: "xs",
56
- state: t.state
56
+ state: f.state
57
57
  }, {
58
58
  default: o(() => [
59
59
  s(B, {
60
60
  disabled: !e.value || !n.value.trim(),
61
- onCancel: l[2] || (l[2] = (d) => f("cancel")),
61
+ onCancel: t[2] || (t[2] = (d) => b("cancel")),
62
62
  onSubmit: V
63
63
  }, {
64
64
  options: o(() => [
65
65
  s(i(T), {
66
66
  modelValue: e.value,
67
- "onUpdate:modelValue": l[1] || (l[1] = (d) => e.value = d),
67
+ "onUpdate:modelValue": t[1] || (t[1] = (d) => e.value = d),
68
68
  options: c.value,
69
69
  placeholder: "Select Type"
70
70
  }, {
71
71
  default: o(() => [
72
- c.value.length > 0 ? (v(), u(i(C), {
72
+ c.value.length > 0 ? (v(), u(i(x), {
73
73
  key: 0,
74
74
  class: "hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",
75
75
  variant: "outlined"
@@ -85,13 +85,13 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ y({
85
85
  })
86
86
  ]),
87
87
  _: 1
88
- })) : (v(), u(i(C), {
88
+ })) : (v(), u(i(x), {
89
89
  key: 1,
90
90
  class: "hover:bg-b-2 max-h-8 justify-between gap-1 p-2 text-xs",
91
91
  variant: "outlined",
92
92
  onClick: k
93
93
  }, {
94
- default: o(() => [...l[3] || (l[3] = [
94
+ default: o(() => [...t[3] || (t[3] = [
95
95
  p("span", { class: "text-c-1" }, "Create Collection", -1)
96
96
  ])]),
97
97
  _: 1
@@ -100,7 +100,7 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ y({
100
100
  _: 1
101
101
  }, 8, ["modelValue", "options"])
102
102
  ]),
103
- submit: o(() => [...l[4] || (l[4] = [
103
+ submit: o(() => [...t[4] || (t[4] = [
104
104
  w(" Add Environment ", -1)
105
105
  ])]),
106
106
  default: o(() => [
@@ -113,7 +113,7 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ y({
113
113
  }, null, 8, ["activeColor"]),
114
114
  s(D, {
115
115
  modelValue: n.value,
116
- "onUpdate:modelValue": l[0] || (l[0] = (d) => n.value = d),
116
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => n.value = d),
117
117
  class: "-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden",
118
118
  placeholder: "Environment name"
119
119
  }, null, 8, ["modelValue"])
@@ -1,11 +1,11 @@
1
- import { defineComponent as B, ref as v, computed as w, onMounted as R, createBlock as h, createCommentVNode as y, openBlock as n, unref as l, withCtx as k, createElementVNode as c, normalizeStyle as x, createElementBlock as u, Fragment as D, renderList as T, normalizeClass as j, createTextVNode as g, toDisplayString as V, createVNode as q } from "vue";
1
+ import { defineComponent as B, ref as h, computed as w, onMounted as R, createBlock as b, createCommentVNode as y, openBlock as n, unref as l, withCtx as k, createElementVNode as c, normalizeStyle as g, createElementBlock as u, Fragment as D, renderList as T, normalizeClass as j, createTextVNode as V, toDisplayString as C, createVNode as q } from "vue";
2
2
  import { ScalarTeleport as F, ScalarButton as G } from "@scalar/components";
3
3
  import { ScalarIconGlobe as K, ScalarIconPlus as O } from "@scalar/icons";
4
4
  import { onClickOutside as L } from "@vueuse/core";
5
5
  import M from "fuse.js";
6
6
  import { useRouter as Q } from "vue-router";
7
7
  import { getEnvColor as W } from "../../libs/env-helpers.js";
8
- import { PathId as C } from "../../routes.js";
8
+ import { PathId as S } from "../../routes.js";
9
9
  import { useActiveEntities as $ } from "../../store/active-entities.js";
10
10
  import { parseEnvVariables as _ } from "../../libs/environment-parser.js";
11
11
  const H = {
@@ -20,22 +20,22 @@ const H = {
20
20
  dropdownPosition: {}
21
21
  },
22
22
  emits: ["select"],
23
- setup(S, { expose: E, emit: z }) {
24
- const s = S, I = z, d = v(!0), p = v(null), r = v(0), f = Q(), { activeCollection: m } = $(), N = () => {
25
- if (!f)
23
+ setup(d, { expose: E, emit: z }) {
24
+ const s = d, I = z, f = h(!0), p = h(null), r = h(0), m = Q(), { activeCollection: v } = $(), N = () => {
25
+ if (!m)
26
26
  return;
27
- const { currentRoute: t, push: o } = f, e = t.value.params.workspace;
28
- !m.value || m.value.info?.title === "Drafts" ? o({
27
+ const { currentRoute: t, push: o } = m, e = t.value.params.workspace;
28
+ !v.value || v.value.info?.title === "Drafts" ? o({
29
29
  name: "environment.default",
30
30
  params: {
31
- [C.Workspace]: e
31
+ [S.Workspace]: e
32
32
  }
33
33
  }) : o({
34
34
  name: "collection.environment",
35
35
  params: {
36
- [C.Collection]: m.value.uid
36
+ [S.Collection]: v.value.uid
37
37
  }
38
- }), d.value = !1;
38
+ }), f.value = !1;
39
39
  }, P = new M(_(s.envVariables), {
40
40
  keys: ["key", "value"]
41
41
  }), i = w(() => {
@@ -44,7 +44,7 @@ const H = {
44
44
  return _(s.envVariables).slice(-4).filter(({ key: e, value: a }) => e !== "" || a !== "");
45
45
  const o = P.search(t, { limit: 10 });
46
46
  return o.length > 0 ? o.map((e) => e.item).filter(({ key: e, value: a }) => e !== "" || a !== "") : [];
47
- }), b = (t) => {
47
+ }), x = (t) => {
48
48
  I("select", t);
49
49
  };
50
50
  E({
@@ -55,7 +55,7 @@ const H = {
55
55
  handleSelect: () => {
56
56
  if (r.value >= 0) {
57
57
  const t = i.value[r.value];
58
- t && b(t.key);
58
+ t && x(t.key);
59
59
  }
60
60
  }
61
61
  }), R(() => {
@@ -69,10 +69,10 @@ const H = {
69
69
  return L(
70
70
  p,
71
71
  () => {
72
- d.value = !1;
72
+ f.value = !1;
73
73
  },
74
74
  { ignore: [p] }
75
- ), (t, o) => d.value ? (n(), h(l(F), {
75
+ ), (t, o) => f.value ? (n(), b(l(F), {
76
76
  key: 0,
77
77
  class: "scalar-client"
78
78
  }, {
@@ -81,31 +81,31 @@ const H = {
81
81
  ref_key: "dropdownRef",
82
82
  ref: p,
83
83
  class: "custom-scroll fixed top-0 left-0 flex max-h-[60svh] w-56 flex-col rounded border p-0.75",
84
- style: x(A.value)
84
+ style: g(A.value)
85
85
  }, [
86
86
  i.value.length ? (n(), u("ul", H, [
87
87
  (n(!0), u(D, null, T(i.value, (e, a) => (n(), u("li", {
88
88
  key: e.key,
89
89
  class: j(["font-code text-xxs hover:bg-b-2 flex h-8 cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150", { "bg-b-2": a === r.value }]),
90
- onClick: (ee) => b(e.key)
90
+ onClick: (ee) => x(e.key)
91
91
  }, [
92
92
  c("div", U, [
93
- e.source === "collection" && t.environment.name !== "No Environment" ? (n(), u("span", {
93
+ e.source === "collection" && d.environment.name !== "No Environment" ? (n(), u("span", {
94
94
  key: 0,
95
95
  class: "h-2.25 w-2.25 min-w-2.25 rounded-full",
96
- style: x({
97
- backgroundColor: l(W)(t.environment)
96
+ style: g({
97
+ backgroundColor: l(W)(d.environment)
98
98
  })
99
- }, null, 4)) : (n(), h(l(K), {
99
+ }, null, 4)) : (n(), b(l(K), {
100
100
  key: 1,
101
101
  class: "-ml-0.25 size-2.5",
102
102
  icon: "Globe"
103
103
  })),
104
- g(" " + V(e.key), 1)
104
+ V(" " + C(e.key), 1)
105
105
  ]),
106
- c("span", X, V(e.value), 1)
106
+ c("span", X, C(e.value), 1)
107
107
  ], 10, J))), 128))
108
- ])) : l(f) ? (n(), h(l(G), {
108
+ ])) : l(m) ? (n(), b(l(G), {
109
109
  key: 1,
110
110
  class: "font-code text-xxs bg-b-inherit hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150",
111
111
  variant: "outlined",
@@ -113,7 +113,7 @@ const H = {
113
113
  }, {
114
114
  default: k(() => [
115
115
  q(l(O), { class: "size-3" }),
116
- o[0] || (o[0] = g(" Add Variable ", -1))
116
+ o[0] || (o[0] = V(" Add Variable ", -1))
117
117
  ]),
118
118
  _: 1
119
119
  })) : y("", !0),
@@ -1,19 +1,19 @@
1
- import { defineComponent as E, computed as U, createElementBlock as v, createBlock as m, unref as e, openBlock as r, normalizeClass as f, createElementVNode as P, createVNode as n, isRef as W, withCtx as k, createCommentVNode as H } from "vue";
2
- import y from "../../components/EmptyState.vue.js";
3
- import N from "../../components/ViewLayout/ViewLayout.vue.js";
4
- import g from "../../components/ViewLayout/ViewLayoutContent.vue.js";
5
- import { useSidebar as B } from "../../hooks/useSidebar.js";
6
- import { importCurlCommand as I } from "../../libs/importers/curl.js";
7
- import { useActiveEntities as L } from "../../store/active-entities.js";
8
- import z from "./RequestSection/RequestSection.vue.js";
9
- import A from "./RequestSubpageHeader.vue.js";
10
- import D from "./ResponseSection/ResponseSection.vue.js";
11
- import { useWorkspace as S } from "../../store/store.js";
12
- import { useLayout as M } from "../../hooks/useLayout.js";
13
- const O = { class: "flex h-full" }, T = {
1
+ import { defineComponent as _, computed as P, createElementBlock as f, createBlock as u, unref as e, openBlock as o, normalizeClass as k, createElementVNode as W, createVNode as n, isRef as H, withCtx as y, createCommentVNode as N } from "vue";
2
+ import S from "../../components/EmptyState.vue.js";
3
+ import g from "../../components/ViewLayout/ViewLayout.vue.js";
4
+ import B from "../../components/ViewLayout/ViewLayoutContent.vue.js";
5
+ import { useSidebar as I } from "../../hooks/useSidebar.js";
6
+ import { importCurlCommand as L } from "../../libs/importers/curl.js";
7
+ import { useActiveEntities as z } from "../../store/active-entities.js";
8
+ import A from "./RequestSection/RequestSection.vue.js";
9
+ import D from "./RequestSubpageHeader.vue.js";
10
+ import M from "./ResponseSection/ResponseSection.vue.js";
11
+ import { useWorkspace as x } from "../../store/store.js";
12
+ import { useLayout as O } from "../../hooks/useLayout.js";
13
+ const T = { class: "flex h-full" }, $ = {
14
14
  key: 0,
15
15
  class: "flex h-full flex-1 flex-col"
16
- }, re = /* @__PURE__ */ E({
16
+ }, re = /* @__PURE__ */ _({
17
17
  __name: "Request",
18
18
  props: {
19
19
  invalidParams: {},
@@ -21,83 +21,83 @@ const O = { class: "flex h-full" }, T = {
21
21
  requestResult: {}
22
22
  },
23
23
  emits: ["newTab"],
24
- setup($) {
25
- const { events: b } = S(), { isSidebarOpen: s } = B(), R = S(), { layout: q } = M(), {
24
+ setup(c) {
25
+ const { events: b } = x(), { isSidebarOpen: r } = I(), R = x(), { layout: q } = O(), {
26
26
  activeCollection: t,
27
- activeExample: c,
27
+ activeExample: m,
28
28
  activeRequest: a,
29
- activeWorkspace: l,
30
- activeServer: u,
29
+ activeWorkspace: s,
30
+ activeServer: d,
31
31
  activeEnvVariables: p,
32
- activeEnvironment: d,
32
+ activeEnvironment: v,
33
33
  activeWorkspaceRequests: h
34
- } = L(), { modalState: x, requestHistory: C } = R, V = U(
35
- () => [...C].reverse().find((o) => o.request.uid === c.value?.uid)
34
+ } = z(), { modalState: C, requestHistory: V } = R, w = P(
35
+ () => [...V].reverse().find((l) => l.request.uid === m.value?.uid)
36
36
  );
37
- function w(o) {
37
+ function E(l) {
38
38
  b.commandPalette.emit({
39
39
  commandName: "Import from cURL",
40
40
  metaData: {
41
- parsedCurl: I(o),
41
+ parsedCurl: L(l),
42
42
  collectionUid: t.value?.uid
43
43
  }
44
44
  });
45
45
  }
46
- return (o, i) => e(t) && e(l) ? (r(), v("div", {
46
+ return (l, i) => e(t) && e(s) ? (o(), f("div", {
47
47
  key: 0,
48
- class: f(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
48
+ class: k(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
49
49
  "!mr-0 !mb-0 !border-0": e(q) === "modal"
50
50
  }])
51
51
  }, [
52
- P("div", O, [
53
- e(a) ? (r(), v("div", T, [
54
- n(A, {
55
- modelValue: e(s),
56
- "onUpdate:modelValue": i[0] || (i[0] = (_) => W(s) ? s.value = _ : null),
52
+ W("div", T, [
53
+ e(a) ? (o(), f("div", $, [
54
+ n(D, {
55
+ modelValue: e(r),
56
+ "onUpdate:modelValue": i[0] || (i[0] = (U) => H(r) ? r.value = U : null),
57
57
  collection: e(t),
58
58
  envVariables: e(p),
59
- environment: e(d),
59
+ environment: e(v),
60
60
  operation: e(a),
61
- server: e(u),
62
- workspace: e(l),
63
- onHideModal: i[1] || (i[1] = () => e(x).hide()),
64
- onImportCurl: w
61
+ server: e(d),
62
+ workspace: e(s),
63
+ onHideModal: i[1] || (i[1] = () => e(C).hide()),
64
+ onImportCurl: E
65
65
  }, null, 8, ["modelValue", "collection", "envVariables", "environment", "operation", "server", "workspace"]),
66
- n(N, null, {
67
- default: k(() => [
68
- e(c) ? (r(), m(g, {
66
+ n(g, null, {
67
+ default: y(() => [
68
+ e(m) ? (o(), u(B, {
69
69
  key: 0,
70
- class: f(["flex-1", [e(s) ? "sidebar-active-hide-layout" : ""]])
70
+ class: k(["flex-1", [e(r) ? "sidebar-active-hide-layout" : ""]])
71
71
  }, {
72
- default: k(() => [
73
- n(z, {
72
+ default: y(() => [
73
+ n(A, {
74
74
  collection: e(t),
75
75
  envVariables: e(p),
76
- environment: e(d),
77
- example: e(c),
78
- invalidParams: o.invalidParams,
76
+ environment: e(v),
77
+ example: e(m),
78
+ invalidParams: c.invalidParams,
79
79
  operation: e(a),
80
- selectedSecuritySchemeUids: o.selectedSecuritySchemeUids,
81
- server: e(u),
82
- workspace: e(l)
80
+ selectedSecuritySchemeUids: c.selectedSecuritySchemeUids,
81
+ server: e(d),
82
+ workspace: e(s)
83
83
  }, null, 8, ["collection", "envVariables", "environment", "example", "invalidParams", "operation", "selectedSecuritySchemeUids", "server", "workspace"]),
84
- n(D, {
84
+ n(M, {
85
85
  collection: e(t),
86
86
  numWorkspaceRequests: e(h).length,
87
87
  operation: e(a),
88
- requestResult: o.requestResult,
89
- response: V.value?.response,
90
- workspace: e(l)
88
+ requestResult: c.requestResult,
89
+ response: w.value?.response,
90
+ workspace: e(s)
91
91
  }, null, 8, ["collection", "numWorkspaceRequests", "operation", "requestResult", "response", "workspace"])
92
92
  ]),
93
93
  _: 1
94
- }, 8, ["class"])) : H("", !0)
94
+ }, 8, ["class"])) : N("", !0)
95
95
  ]),
96
96
  _: 1
97
97
  })
98
- ])) : (r(), m(y, { key: 1 }))
98
+ ])) : (o(), u(S, { key: 1 }))
99
99
  ])
100
- ], 2)) : (r(), m(y, { key: 1 }));
100
+ ], 2)) : (o(), u(S, { key: 1 }));
101
101
  }
102
102
  });
103
103
  export {