@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,4 +1,4 @@
1
- import { defineComponent as z, useId as K, ref as g, computed as f, createBlock as V, openBlock as u, withCtx as r, createVNode as m, renderSlot as j, unref as s, createElementVNode as i, createElementBlock as h, Fragment as x, createTextVNode as k, toDisplayString as y, createCommentVNode as D, withModifiers as Y, normalizeClass as F } from "vue";
1
+ import { defineComponent as z, useId as K, ref as x, computed as h, createBlock as V, openBlock as u, withCtx as s, createVNode as m, renderSlot as j, unref as i, createElementVNode as r, createElementBlock as y, Fragment as g, createTextVNode as k, toDisplayString as p, createCommentVNode as D, withModifiers as Y, normalizeClass as F } from "vue";
2
2
  import { useModal as H, ScalarComboboxMultiselect as J, ScalarButton as P, ScalarListboxCheckbox as W, ScalarIconButton as G } from "@scalar/components";
3
3
  import { safeLocalStorage as Q, CLIENT_LS_KEYS as X } from "@scalar/helpers/object/local-storage";
4
4
  import { ScalarIconCaretDown as Z, ScalarIconTrash as _ } from "@scalar/icons";
@@ -7,7 +7,7 @@ import te from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
7
  import { useWorkspace as oe } from "../../../../store/store.js";
8
8
  import le from "./DeleteRequestAuthModal.vue.js";
9
9
  import ne from "./RequestAuthDataTable.vue.js";
10
- import { getSecurityRequirements as se, formatComplexScheme as re, formatScheme as ie, getSchemeOptions as ae } from "../../libs/auth.js";
10
+ import { getSecurityRequirements as ie, formatComplexScheme as se, formatScheme as re, getSchemeOptions as ae } from "../../libs/auth.js";
11
11
  const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1 truncate" }, Ce = /* @__PURE__ */ z({
12
12
  __name: "RequestAuth",
13
13
  props: {
@@ -24,102 +24,102 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
24
24
  workspace: {}
25
25
  },
26
26
  emits: ["authorized", "activeSchemes"],
27
- setup(n, { emit: E }) {
27
+ setup(l, { emit: E }) {
28
28
  const C = E, {
29
29
  securitySchemes: d,
30
30
  securitySchemeMutators: $,
31
31
  requestMutators: B,
32
32
  collectionMutators: I
33
- } = oe(), A = K(), v = g(null), p = H(), S = g(
33
+ } = oe(), A = K(), v = x(null), f = H(), S = x(
34
34
  null
35
- ), R = g(!1), q = f(() => {
36
- const t = se(n.operation, n.collection);
37
- return { filteredRequirements: t.filter((o) => Object.keys(o).length), requirements: t };
38
- }), b = f(() => {
39
- const { filteredRequirements: t, requirements: e } = q.value;
35
+ ), R = x(!1), q = h(() => {
36
+ const o = ie(l.operation, l.collection);
37
+ return { filteredRequirements: o.filter((t) => Object.keys(t).length), requirements: o };
38
+ }), b = h(() => {
39
+ const { filteredRequirements: o, requirements: e } = q.value;
40
40
  if (!e.length)
41
41
  return null;
42
- const l = !e.some(
42
+ const n = !e.some(
43
43
  (N) => Object.keys(N).length > 1
44
- ) && t.length < e.length;
45
- return { icon: l ? "Unlock" : "Lock", text: l ? "Optional" : "Required" };
46
- }), a = f(
47
- () => n.selectedSecuritySchemeUids.map((t) => {
48
- if (Array.isArray(t))
49
- return re(t, d);
50
- const e = d[t ?? ""];
44
+ ) && o.length < e.length;
45
+ return { icon: n ? "Unlock" : "Lock", text: n ? "Optional" : "Required" };
46
+ }), a = h(
47
+ () => l.selectedSecuritySchemeUids.map((o) => {
48
+ if (Array.isArray(o))
49
+ return se(o, d);
50
+ const e = d[o ?? ""];
51
51
  if (e)
52
- return ie(e);
52
+ return re(e);
53
53
  }).filter(ee)
54
54
  );
55
- function M(t) {
56
- const e = t.find((l) => l.payload), o = t.filter((l) => !l.payload).map(({ id: l }) => {
57
- const c = l.split(",");
58
- return c.length > 1 ? c : l;
55
+ function M(o) {
56
+ const e = o.find((n) => n.payload), t = o.filter((n) => !n.payload).map(({ id: n }) => {
57
+ const c = n.split(",");
58
+ return c.length > 1 ? c : n;
59
59
  });
60
60
  if (e?.payload) {
61
- const l = $.add(
61
+ const n = $.add(
62
62
  e.payload,
63
- n.collection?.uid
63
+ l.collection?.uid
64
64
  );
65
- l && o.push(l.uid);
65
+ n && t.push(n.uid);
66
66
  }
67
- w(o);
67
+ w(t);
68
68
  }
69
- const w = (t) => {
70
- if (n.collection.useCollectionSecurity) {
71
- if (I.edit(n.collection.uid, "selectedSecuritySchemeUids", t), !n.persistAuth)
69
+ const w = (o) => {
70
+ if (l.collection.useCollectionSecurity) {
71
+ if (I.edit(l.collection.uid, "selectedSecuritySchemeUids", o), !l.persistAuth)
72
72
  return;
73
- const e = t.map((o) => Array.isArray(o) ? o.map((l) => d[l]?.nameKey) : d[o]?.nameKey);
73
+ const e = o.map((t) => Array.isArray(t) ? t.map((n) => d[n]?.nameKey) : d[t]?.nameKey);
74
74
  Q().setItem(
75
75
  X.SELECTED_SECURITY_SCHEMES,
76
76
  JSON.stringify(e)
77
77
  );
78
- } else n.operation?.uid && B.edit(n.operation.uid, "selectedSecuritySchemeUids", t);
78
+ } else l.operation?.uid && B.edit(l.operation.uid, "selectedSecuritySchemeUids", o);
79
79
  };
80
- function O({ id: t, label: e }) {
81
- S.value = { id: t, label: e }, p.show();
80
+ function O({ id: o, label: e }) {
81
+ S.value = { id: o, label: e }, f.show();
82
82
  }
83
- const T = (t) => {
84
- if (!t)
83
+ const T = (o) => {
84
+ if (!o)
85
85
  return;
86
- const e = n.selectedSecuritySchemeUids.filter((o) => {
87
- const l = t.split(",");
88
- return l.length > 1 && Array.isArray(o) && l.length === o.length ? o.every((c) => !l.includes(c)) : o !== t;
86
+ const e = l.selectedSecuritySchemeUids.filter((t) => {
87
+ const n = o.split(",");
88
+ return n.length > 1 && Array.isArray(t) && n.length === t.length ? t.every((c) => !n.includes(c)) : t !== o;
89
89
  });
90
- w(e), v.value?.$el.focus(), p.hide();
91
- }, U = f(
90
+ w(e), v.value?.$el.focus(), f.hide();
91
+ }, U = h(
92
92
  () => ae(
93
93
  q.value.filteredRequirements,
94
- n.collection?.securitySchemes ?? [],
94
+ l.collection?.securitySchemes ?? [],
95
95
  d,
96
- n.isReadOnly
96
+ l.isReadOnly
97
97
  )
98
- ), L = (t) => {
99
- R.value && t.stopPropagation(), v.value?.$el.click();
98
+ ), L = (o) => {
99
+ R.value && o.stopPropagation(), v.value?.$el.click();
100
100
  };
101
- return (t, e) => (u(), V(te, {
101
+ return (o, e) => (u(), V(te, {
102
102
  class: "group/params relative",
103
103
  itemCount: a.value.length,
104
- layout: t.layout,
105
- "onUpdate:modelValue": e[4] || (e[4] = (o) => R.value = o)
104
+ layout: l.layout,
105
+ "onUpdate:modelValue": e[4] || (e[4] = (t) => R.value = t)
106
106
  }, {
107
- title: r(() => [
108
- i("div", {
109
- id: s(A),
107
+ title: s(() => [
108
+ r("div", {
109
+ id: i(A),
110
110
  class: "inline-flex items-center gap-0.5 leading-[20px]"
111
111
  }, [
112
- i("span", null, y(t.title), 1),
113
- b.value ? (u(), h("span", {
112
+ r("span", null, p(l.title), 1),
113
+ b.value ? (u(), y("span", {
114
114
  key: 0,
115
115
  class: F(["text-c-3 hover:bg-b-3 hover:text-c-1 -mr-1 cursor-pointer rounded px-1 py-0.5 text-xs leading-[normal]", { "text-c-1": b.value.text === "Required" }]),
116
116
  onClick: L
117
- }, y(b.value.text), 3)) : D("", !0)
117
+ }, p(b.value.text), 3)) : D("", !0)
118
118
  ], 8, ce)
119
119
  ]),
120
- actions: r(() => [
121
- i("div", ue, [
122
- m(s(J), {
120
+ actions: s(() => [
121
+ r("div", ue, [
122
+ m(i(J), {
123
123
  class: "w-72 text-xs",
124
124
  modelValue: a.value,
125
125
  multiple: "",
@@ -129,41 +129,41 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
129
129
  onDelete: O,
130
130
  "onUpdate:modelValue": M
131
131
  }, {
132
- option: r(({ option: o, selected: l }) => [
133
- m(s(W), {
132
+ option: s(({ option: t, selected: n }) => [
133
+ m(i(W), {
134
134
  multiselect: "",
135
- selected: l
135
+ selected: n
136
136
  }, null, 8, ["selected"]),
137
- i("div", me, y(o.label), 1),
138
- o.isDeletable ?? !t.isReadOnly ? (u(), V(s(G), {
137
+ r("div", me, p(t.label), 1),
138
+ t.isDeletable ?? !l.isReadOnly ? (u(), V(i(G), {
139
139
  key: 0,
140
140
  class: "-m-0.5 shrink-0 p-0.5 opacity-0 group-hover/item:opacity-100",
141
- icon: s(_),
142
- label: `Delete ${o.label}`,
141
+ icon: i(_),
142
+ label: `Delete ${t.label}`,
143
143
  size: "xs",
144
- onClick: Y((c) => O(o), ["stop"])
144
+ onClick: Y((c) => O(t), ["stop"])
145
145
  }, null, 8, ["icon", "label", "onClick"])) : D("", !0)
146
146
  ]),
147
- default: r(() => [
148
- m(s(P), {
147
+ default: s(() => [
148
+ m(i(P), {
149
149
  ref_key: "comboboxButtonRef",
150
150
  ref: v,
151
- "aria-describedby": s(A),
151
+ "aria-describedby": i(A),
152
152
  class: "group/combobox-button hover:text-c-1 text-c-2 flex h-fit w-full items-center gap-1 px-0.75 py-0.25 text-base font-normal transition-transform",
153
153
  variant: "ghost"
154
154
  }, {
155
- default: r(() => [
156
- a.value.length === 1 ? (u(), h(x, { key: 0 }, [
157
- e[5] || (e[5] = i("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
158
- k(" " + y(a.value[0]?.label), 1)
159
- ], 64)) : a.value.length > 1 ? (u(), h(x, { key: 1 }, [
155
+ default: s(() => [
156
+ a.value.length === 1 ? (u(), y(g, { key: 0 }, [
157
+ e[5] || (e[5] = r("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
158
+ k(" " + p(a.value[0]?.label), 1)
159
+ ], 64)) : a.value.length > 1 ? (u(), y(g, { key: 1 }, [
160
160
  e[6] || (e[6] = k(" Multiple ", -1)),
161
- e[7] || (e[7] = i("span", { class: "sr-only" }, "Auth Types Selected", -1))
162
- ], 64)) : (u(), h(x, { key: 2 }, [
163
- e[8] || (e[8] = i("span", { class: "sr-only" }, "Select", -1)),
161
+ e[7] || (e[7] = r("span", { class: "sr-only" }, "Auth Types Selected", -1))
162
+ ], 64)) : (u(), y(g, { key: 2 }, [
163
+ e[8] || (e[8] = r("span", { class: "sr-only" }, "Select", -1)),
164
164
  e[9] || (e[9] = k(" Auth Type ", -1))
165
165
  ], 64)),
166
- m(s(Z), {
166
+ m(i(Z), {
167
167
  class: "size-3 shrink-0 transition-transform duration-100 group-aria-expanded/combobox-button:rotate-180",
168
168
  weight: "bold"
169
169
  })
@@ -175,29 +175,29 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
175
175
  }, 8, ["modelValue", "options"])
176
176
  ])
177
177
  ]),
178
- default: r(() => [
178
+ default: s(() => [
179
179
  m(ne, {
180
- collection: t.collection,
181
- envVariables: t.envVariables,
182
- environment: t.environment,
183
- layout: t.layout,
184
- persistAuth: t.persistAuth,
180
+ collection: l.collection,
181
+ envVariables: l.envVariables,
182
+ environment: l.environment,
183
+ layout: l.layout,
184
+ persistAuth: l.persistAuth,
185
185
  selectedSchemeOptions: a.value,
186
- server: t.server,
187
- workspace: t.workspace,
188
- onActiveSchemes: e[0] || (e[0] = (o) => C("activeSchemes", o)),
189
- onAuthorized: e[1] || (e[1] = (o) => C("authorized"))
186
+ server: l.server,
187
+ workspace: l.workspace,
188
+ onActiveSchemes: e[0] || (e[0] = (t) => C("activeSchemes", t)),
189
+ onAuthorized: e[1] || (e[1] = (t) => C("authorized"))
190
190
  }, {
191
- "oauth-actions": r(() => [
192
- j(t.$slots, "oauth-actions", {}, void 0, !0)
191
+ "oauth-actions": s(() => [
192
+ j(o.$slots, "oauth-actions", {}, void 0, !0)
193
193
  ]),
194
194
  _: 3
195
195
  }, 8, ["collection", "envVariables", "environment", "layout", "persistAuth", "selectedSchemeOptions", "server", "workspace"]),
196
196
  m(le, {
197
197
  scheme: S.value,
198
- state: s(p),
199
- onClose: e[2] || (e[2] = (o) => s(p).hide()),
200
- onDelete: e[3] || (e[3] = (o) => T(S.value?.id))
198
+ state: i(f),
199
+ onClose: e[2] || (e[2] = (t) => i(f).hide()),
200
+ onDelete: e[3] || (e[3] = (t) => T(S.value?.id))
201
201
  }, null, 8, ["scheme", "state"])
202
202
  ]),
203
203
  _: 3
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AA+PA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,WAAW,EAAE,OAAO,CAAA;IACpB,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAkBF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;CAChC,CAAC;AAwQF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAsBk0B,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;oBAA6D,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAA17E,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;oBAA6D,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;;;kFAf/wG,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AA+PA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,WAAW,EAAE,OAAO,CAAA;IACpB,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAkBF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;CAChC,CAAC;AAwQF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAsB03B,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;oBAA6D,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAA17E,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;oBAA6D,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;;;kFAfv0G,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, ref as h, computed as p, watch as v, createElementBlock as s, openBlock as o, withModifiers as z, createCommentVNode as f, createBlock as C, createVNode as b, normalizeClass as a, Fragment as V, renderList as $, createElementVNode as y, toDisplayString as O, unref as u, withCtx as S, renderSlot as B } from "vue";
1
+ import { defineComponent as A, ref as h, computed as v, watch as f, createElementBlock as l, openBlock as n, withModifiers as z, createCommentVNode as b, createBlock as C, createVNode as x, normalizeClass as a, Fragment as V, renderList as $, createElementVNode as y, toDisplayString as O, unref as u, withCtx as p, renderSlot as B } from "vue";
2
2
  import { useModal as M } from "@scalar/components";
3
3
  import { isDefined as N } from "@scalar/helpers/array/is-defined";
4
4
  import D from "./DeleteRequestAuthModal.vue.js";
@@ -21,64 +21,64 @@ const q = ["onClick"], F = { class: "relative z-10 font-medium whitespace-nowrap
21
21
  workspace: {}
22
22
  },
23
23
  emits: ["authorized", "activeSchemes"],
24
- setup(n, { emit: k }) {
25
- const m = k, { securitySchemes: g } = j(), d = M(), w = h(
24
+ setup(e, { emit: S }) {
25
+ const m = S, { securitySchemes: k } = j(), d = M(), g = h(
26
26
  null
27
- ), r = h(0), i = p(() => {
28
- if (!n.selectedSchemeOptions || n.selectedSchemeOptions.length === 0)
27
+ ), o = h(0), i = v(() => {
28
+ if (!e.selectedSchemeOptions || e.selectedSchemeOptions.length === 0)
29
29
  return [];
30
- const e = n.selectedSchemeOptions[r.value];
31
- if (!e)
30
+ const r = e.selectedSchemeOptions[o.value];
31
+ if (!r)
32
32
  return [];
33
- const t = e.id.split(",").filter(Boolean);
34
- return t.length > 1 ? t : [e.id];
33
+ const t = r.id.split(",").filter(Boolean);
34
+ return t.length > 1 ? t : [r.id];
35
35
  });
36
- v(
36
+ f(
37
37
  i,
38
- (e) => {
38
+ (r) => {
39
39
  m(
40
40
  "activeSchemes",
41
- e.map((t) => g[t]).filter(N)
41
+ r.map((t) => k[t]).filter(N)
42
42
  );
43
43
  },
44
44
  { immediate: !0 }
45
45
  );
46
- const x = p(() => i.value.length > 0);
47
- return v(
48
- () => n.selectedSchemeOptions,
49
- (e) => {
50
- (!e || !e[r.value]) && (r.value = Math.max(0, r.value - 1));
46
+ const w = v(() => i.value.length > 0);
47
+ return f(
48
+ () => e.selectedSchemeOptions,
49
+ (r) => {
50
+ (!r || !r[o.value]) && (o.value = Math.max(0, o.value - 1));
51
51
  }
52
- ), (e, t) => (o(), s("form", {
52
+ ), (r, t) => (n(), l("form", {
53
53
  onSubmit: t[2] || (t[2] = z(() => {
54
54
  }, ["prevent"]))
55
55
  }, [
56
- e.selectedSchemeOptions.length > 1 ? (o(), s("div", {
56
+ e.selectedSchemeOptions.length > 1 ? (n(), l("div", {
57
57
  key: 0,
58
58
  class: a(["box-content flex flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", e.layout === "client" && "border-x-0"])
59
59
  }, [
60
- (o(!0), s(V, null, $(e.selectedSchemeOptions, (l, c) => (o(), s("div", {
61
- key: l.id,
62
- class: a(["relative z-1 -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer", [r.value === c ? "text-c-1" : "text-c-3"]])
60
+ (n(!0), l(V, null, $(e.selectedSchemeOptions, (s, c) => (n(), l("div", {
61
+ key: s.id,
62
+ class: a(["relative z-1 -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer", [o.value === c ? "text-c-1" : "text-c-3"]])
63
63
  }, [
64
64
  y("button", {
65
65
  class: "floating-bg relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium",
66
66
  type: "button",
67
- onClick: (L) => r.value = c
67
+ onClick: (L) => o.value = c
68
68
  }, [
69
- y("span", F, O(l.label), 1)
69
+ y("span", F, O(s.label), 1)
70
70
  ], 8, q),
71
- r.value === c ? (o(), s("div", I)) : f("", !0)
71
+ o.value === c ? (n(), l("div", I)) : b("", !0)
72
72
  ], 2))), 128))
73
- ], 2)) : f("", !0),
74
- x.value ? (o(), C(u(U), {
73
+ ], 2)) : b("", !0),
74
+ w.value ? (n(), C(u(U), {
75
75
  key: 1,
76
76
  class: a(["flex-1", e.layout === "reference" && "bg-b-1 rounded-b-lg border border-t-0"]),
77
77
  columns: [""],
78
78
  presentational: ""
79
79
  }, {
80
- default: S(() => [
81
- b(E, {
80
+ default: p(() => [
81
+ x(E, {
82
82
  collection: e.collection,
83
83
  envVariables: e.envVariables,
84
84
  environment: e.environment,
@@ -87,26 +87,26 @@ const q = ["onClick"], F = { class: "relative z-10 font-medium whitespace-nowrap
87
87
  securitySchemeUids: i.value,
88
88
  server: e.server,
89
89
  workspace: e.workspace,
90
- onAuthorized: t[0] || (t[0] = (l) => m("authorized"))
90
+ onAuthorized: t[0] || (t[0] = (s) => m("authorized"))
91
91
  }, {
92
- "oauth-actions": S(() => [
93
- B(e.$slots, "oauth-actions", {}, void 0, !0)
92
+ "oauth-actions": p(() => [
93
+ B(r.$slots, "oauth-actions", {}, void 0, !0)
94
94
  ]),
95
95
  _: 3
96
96
  }, 8, ["collection", "envVariables", "environment", "layout", "persistAuth", "securitySchemeUids", "server", "workspace"])
97
97
  ]),
98
98
  _: 3
99
- }, 8, ["class"])) : (o(), s("div", {
99
+ }, 8, ["class"])) : (n(), l("div", {
100
100
  key: 2,
101
101
  class: a([
102
102
  "text-c-3 bg-b-1 flex min-h-16 items-center justify-center border-t px-4 text-sm",
103
103
  e.layout === "reference" && "min-h-[calc(4rem+0.5px)] rounded-b-lg border"
104
104
  ])
105
105
  }, " No authentication selected ", 2)),
106
- b(D, {
107
- scheme: w.value,
106
+ x(D, {
107
+ scheme: g.value,
108
108
  state: u(d),
109
- onClose: t[1] || (t[1] = (l) => u(d).hide())
109
+ onClose: t[1] || (t[1] = (s) => u(d).hide())
110
110
  }, null, 8, ["scheme", "state"])
111
111
  ], 32));
112
112
  }