@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 f, computed as d, createElementBlock as s, openBlock as a, withModifiers as y, createCommentVNode as m, createBlock as x, normalizeClass as n, Fragment as g, renderList as k, createElementVNode as u, toDisplayString as w, unref as B, withCtx as U, createVNode as C } from "vue";
1
+ import { defineComponent as f, computed as d, createElementBlock as c, openBlock as a, withModifiers as y, createCommentVNode as m, createBlock as g, normalizeClass as s, Fragment as p, renderList as k, createElementVNode as u, toDisplayString as w, unref as B, withCtx as U, createVNode as C } from "vue";
2
2
  import A from "./RequestAuthTab.vue.js";
3
3
  import z from "../../../components/data-table/DataTable.vue.js";
4
4
  const N = ["onClick"], O = { class: "relative z-10 font-medium whitespace-nowrap" }, T = {
@@ -17,47 +17,47 @@ const N = ["onClick"], O = { class: "relative z-10 font-medium whitespace-nowrap
17
17
  eventBus: {},
18
18
  meta: {}
19
19
  },
20
- setup(t, { expose: h }) {
20
+ setup(e, { expose: h }) {
21
21
  const r = d(
22
- () => t.selectedSchemeOptions[t.activeAuthIndex]
23
- ), v = d(() => t.selectedSchemeOptions.length > 1), b = (e) => t.eventBus.emit("auth:update:active-index", {
24
- index: e,
25
- meta: t.meta
26
- }), p = (e) => t.eventBus.emit("auth:update:security-scheme", {
27
- payload: e,
28
- name: r.value?.id ?? ""
29
- }), S = (e) => t.eventBus.emit("auth:update:selected-scopes", {
30
- ...e,
31
- meta: t.meta
32
- }), c = (e) => t.activeAuthIndex === e;
22
+ () => e.selectedSchemeOptions[e.activeAuthIndex]
23
+ ), b = d(() => e.selectedSchemeOptions.length > 1), v = (t) => e.eventBus.emit("auth:update:active-index", {
24
+ index: t,
25
+ meta: e.meta
26
+ }), x = (t, n) => e.eventBus.emit("auth:update:security-scheme", {
27
+ payload: t,
28
+ name: n
29
+ }), S = (t) => e.eventBus.emit("auth:update:selected-scopes", {
30
+ ...t,
31
+ meta: e.meta
32
+ }), o = (t) => e.activeAuthIndex === t;
33
33
  return h({
34
34
  activeScheme: r
35
- }), (e, o) => (a(), s("form", {
36
- onSubmit: o[0] || (o[0] = y(() => {
35
+ }), (t, n) => (a(), c("form", {
36
+ onSubmit: n[0] || (n[0] = y(() => {
37
37
  }, ["prevent"]))
38
38
  }, [
39
- v.value ? (a(), s("div", {
39
+ b.value ? (a(), c("div", {
40
40
  key: 0,
41
- class: n(["box-content flex flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", { "border-x-0": !e.isStatic }]),
41
+ class: s(["box-content flex flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", { "border-x-0": !e.isStatic }]),
42
42
  "data-testid": "auth-tabs"
43
43
  }, [
44
- (a(!0), s(g, null, k(e.selectedSchemeOptions, (l, i) => (a(), s("div", {
44
+ (a(!0), c(p, null, k(e.selectedSchemeOptions, (l, i) => (a(), c("div", {
45
45
  key: l.id,
46
46
  class: "relative z-1 -mb-[var(--scalar-border-width)] flex h-8"
47
47
  }, [
48
48
  u("button", {
49
- class: n(["floating-bg relative cursor-pointer border-b border-transparent py-1 text-sm font-medium transition-colors", c(i) ? "text-c-1" : "text-c-3"]),
49
+ class: s(["floating-bg relative cursor-pointer border-b border-transparent py-1 text-sm font-medium transition-colors", o(i) ? "text-c-1" : "text-c-3"]),
50
50
  type: "button",
51
- onClick: (I) => b(i)
51
+ onClick: (I) => v(i)
52
52
  }, [
53
53
  u("span", O, w(l.label), 1)
54
54
  ], 10, N),
55
- c(i) ? (a(), s("div", T)) : m("", !0)
55
+ o(i) ? (a(), c("div", T)) : m("", !0)
56
56
  ]))), 128))
57
57
  ], 2)) : m("", !0),
58
- r.value ? (a(), x(B(z), {
58
+ r.value ? (a(), g(B(z), {
59
59
  key: 1,
60
- class: n(["flex-1", { "bg-b-1 rounded-b-lg border border-t-0": e.isStatic }]),
60
+ class: s(["flex-1", { "bg-b-1 rounded-b-lg border border-t-0": e.isStatic }]),
61
61
  columns: [""],
62
62
  presentational: ""
63
63
  }, {
@@ -69,14 +69,14 @@ const N = ["onClick"], O = { class: "relative z-10 font-medium whitespace-nowrap
69
69
  securitySchemes: e.securitySchemes,
70
70
  selectedSecuritySchemas: r.value.value,
71
71
  server: e.server,
72
- "onUpdate:securityScheme": p,
72
+ "onUpdate:securityScheme": x,
73
73
  "onUpdate:selectedScopes": S
74
74
  }, null, 8, ["environment", "isStatic", "proxyUrl", "securitySchemes", "selectedSecuritySchemas", "server"])
75
75
  ]),
76
76
  _: 1
77
- }, 8, ["class"])) : (a(), s("div", {
77
+ }, 8, ["class"])) : (a(), c("div", {
78
78
  key: 2,
79
- class: n(["bg-b-1 text-c-3 flex min-h-16 items-center justify-center border-t px-4 text-sm", { "min-h-[calc(4rem+0.5px)] rounded-b-lg border": e.isStatic }])
79
+ class: s(["bg-b-1 text-c-3 flex min-h-16 items-center justify-center border-t px-4 text-sm", { "min-h-[calc(4rem+0.5px)] rounded-b-lg border": e.isStatic }])
80
80
  }, " No authentication selected ", 2))
81
81
  ], 32));
82
82
  }
@@ -1,8 +1,8 @@
1
- import { defineComponent as p, mergeModels as u, useModel as f, useId as V, createBlock as y, openBlock as v, unref as o, mergeProps as C, withCtx as d, renderSlot as s, createElementVNode as B } from "vue";
2
- import b from "../../../components/data-table/DataTableInput.vue.js";
3
- const q = ["for"], $ = /* @__PURE__ */ p({
1
+ import { defineComponent as f, mergeModels as d, useModel as p, useId as V, createBlock as y, openBlock as c, unref as a, mergeProps as v, withCtx as i, renderSlot as s, createElementVNode as C } from "vue";
2
+ import B from "../../../components/data-table/DataTableInput.vue.js";
3
+ const b = ["for"], O = /* @__PURE__ */ f({
4
4
  __name: "RequestAuthDataTableInput",
5
- props: /* @__PURE__ */ u({
5
+ props: /* @__PURE__ */ d({
6
6
  containerClass: {},
7
7
  environment: {},
8
8
  readOnly: { type: Boolean, default: !1 },
@@ -12,35 +12,35 @@ const q = ["for"], $ = /* @__PURE__ */ p({
12
12
  modelValue: { default: "", required: !0 },
13
13
  modelModifiers: {}
14
14
  }),
15
- emits: /* @__PURE__ */ u(["inputFocus", "inputBlur", "selectVariable"], ["update:modelValue"]),
16
- setup(i, { emit: m }) {
17
- const t = m, r = f(i, "modelValue"), a = V();
18
- return (e, n) => (v(), y(o(b), C({ id: o(a) }, e.$attrs, {
19
- modelValue: r.value,
20
- "onUpdate:modelValue": n[0] || (n[0] = (l) => r.value = l),
21
- canAddCustomEnumValue: !e.readOnly,
22
- containerClass: e.containerClass,
23
- environment: e.environment,
15
+ emits: /* @__PURE__ */ d(["inputFocus", "inputBlur", "selectVariable"], ["update:modelValue"]),
16
+ setup(t, { emit: m }) {
17
+ const l = m, u = p(t, "modelValue"), r = V();
18
+ return (o, e) => (c(), y(a(B), v({ id: a(r) }, o.$attrs, {
19
+ modelValue: u.value,
20
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => u.value = n),
21
+ canAddCustomEnumValue: !t.readOnly,
22
+ containerClass: t.containerClass,
23
+ environment: t.environment,
24
24
  lineWrapping: "",
25
- readOnly: e.readOnly,
26
- required: e.required,
27
- type: e.type,
28
- onInputBlur: n[1] || (n[1] = (l) => t("inputBlur")),
29
- onInputFocus: n[2] || (n[2] = (l) => t("inputFocus")),
30
- onSelectVariable: n[3] || (n[3] = (l) => t("selectVariable", l))
25
+ readOnly: t.readOnly,
26
+ required: t.required,
27
+ type: t.type,
28
+ onInputBlur: e[1] || (e[1] = (n) => l("inputBlur")),
29
+ onInputFocus: e[2] || (e[2] = (n) => l("inputFocus")),
30
+ onSelectVariable: e[3] || (e[3] = (n) => l("selectVariable", n))
31
31
  }), {
32
- default: d(() => [
33
- B("label", { for: o(a) }, [
34
- s(e.$slots, "default")
35
- ], 8, q)
32
+ default: i(() => [
33
+ C("label", { for: a(r) }, [
34
+ s(o.$slots, "default")
35
+ ], 8, b)
36
36
  ]),
37
- icon: d(() => [
38
- s(e.$slots, "icon")
37
+ icon: i(() => [
38
+ s(o.$slots, "icon")
39
39
  ]),
40
40
  _: 3
41
41
  }, 16, ["id", "modelValue", "canAddCustomEnumValue", "containerClass", "environment", "readOnly", "required", "type"]));
42
42
  }
43
43
  });
44
44
  export {
45
- $ as default
45
+ O as default
46
46
  };
@@ -108,7 +108,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
108
108
  'x-scalar-credentials-location'?: "header" | "body" | undefined;
109
109
  } | undefined;
110
110
  } | undefined;
111
- })) => any;
111
+ }), name: string) => any;
112
112
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
113
113
  "onUpdate:selectedScopes"?: ((payload: Omit<{
114
114
  id: string[];
@@ -208,7 +208,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
208
208
  'x-scalar-credentials-location'?: "header" | "body" | undefined;
209
209
  } | undefined;
210
210
  } | undefined;
211
- })) => any) | undefined;
211
+ }), name: string) => any) | undefined;
212
212
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
213
213
  export default _default;
214
214
  //# sourceMappingURL=RequestAuthTab.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue"],"names":[],"mappings":"AAmTA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,yBAAyB,EAEzB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,yFAAyF;IACzF,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,uBAAuB,EAAE,yBAAyB,CAAA;IAClD,eAAe,EAAE,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACjE,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;CAC5B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmiBF,wBAOG"}
1
+ {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue"],"names":[],"mappings":"AA8TA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,yBAAyB,EAEzB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,yFAAyF;IACzF,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,uBAAuB,EAAE,yBAAyB,CAAA;IAClD,eAAe,EAAE,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACjE,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;CAC5B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8iBF,wBAOG"}
@@ -1,11 +1,11 @@
1
- import { defineComponent as A, computed as N, ref as P, createElementBlock as s, openBlock as o, Fragment as d, renderList as U, createBlock as v, createCommentVNode as m, unref as i, withCtx as l, createVNode as n, createElementVNode as k, toDisplayString as R, createTextVNode as y, normalizeClass as z, capitalize as Q } from "vue";
2
- import { ScalarMarkdownSummary as q } from "@scalar/components";
3
- import { getResolvedRef as D } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
- import E from "./OAuth2.vue.js";
1
+ import { defineComponent as A, computed as N, ref as P, createElementBlock as u, openBlock as l, Fragment as c, renderList as g, createBlock as y, createCommentVNode as f, unref as d, withCtx as r, createVNode as i, createElementVNode as V, toDisplayString as R, createTextVNode as v, normalizeClass as z, capitalize as Q } from "vue";
2
+ import { ScalarMarkdownSummary as _ } from "@scalar/components";
3
+ import { getResolvedRef as q } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
+ import D from "./OAuth2.vue.js";
5
5
  import b from "./RequestAuthDataTableInput.vue.js";
6
- import c from "../../../components/data-table/DataTableRow.vue.js";
6
+ import m from "../../../components/data-table/DataTableRow.vue.js";
7
7
  import I from "../../../components/data-table/DataTableCell.vue.js";
8
- const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none" }, L = { class: "flex min-h-8 border-t text-base" }, G = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, J = ["onClick"], W = { class: "relative z-10" }, oe = /* @__PURE__ */ A({
8
+ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none" }, H = { class: "flex min-h-8 border-t text-base" }, L = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, G = ["onClick"], J = { class: "relative z-10" }, le = /* @__PURE__ */ A({
9
9
  __name: "RequestAuthTab",
10
10
  props: {
11
11
  environment: {},
@@ -16,203 +16,211 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
16
16
  server: {}
17
17
  },
18
18
  emits: ["update:securityScheme", "update:selectedScopes"],
19
- setup(f, { emit: K }) {
20
- const x = K, C = N(
21
- () => Object.entries(f.selectedSecuritySchemas).map(([r, e = []]) => ({
22
- scheme: D(f.securitySchemes[r]),
23
- name: r,
24
- scopes: e
19
+ setup(n, { emit: K }) {
20
+ const x = K, $ = N(
21
+ () => Object.entries(n.selectedSecuritySchemas).map(([o, t = []]) => ({
22
+ scheme: q(n.securitySchemes[o]),
23
+ name: o,
24
+ scopes: t
25
25
  }))
26
- ), w = P(""), h = N(() => C.value.length > 1), F = (r, e) => {
27
- const t = Q(r), u = e.description ? `: ${e.description}` : "";
28
- switch (e.type) {
26
+ ), w = P(""), C = N(() => $.value.length > 1), F = (o, t) => {
27
+ const e = Q(o), a = t.description ? `: ${t.description}` : "";
28
+ switch (t.type) {
29
29
  case "apiKey":
30
- return `${t}${u || `: ${e.in}`}`;
30
+ return `${e}${a || `: ${t.in}`}`;
31
31
  case "oauth2": {
32
- const V = Object.keys(e.flows ?? {})[0], a = w.value || V;
33
- return `${t}: ${a}${u}`;
32
+ const k = Object.keys(t.flows ?? {})[0], s = w.value || k;
33
+ return `${e}: ${s}${a}`;
34
34
  }
35
35
  case "http":
36
- return `${t}: ${e.scheme}${u}`;
36
+ return `${e}: ${t.scheme}${a}`;
37
37
  default:
38
- return `${t}${u || `: ${e.type}`}`;
38
+ return `${e}${a || `: ${t.type}`}`;
39
39
  }
40
- }, T = (r, e) => w.value === r || e === 0 && !w.value, B = () => f.isStatic && "border-t", g = (r, e) => x("update:securityScheme", {
41
- type: "http",
42
- [r]: e
43
- }), j = (r, e) => x("update:securityScheme", {
44
- type: "apiKey",
45
- [r]: e
46
- }), M = (r, e) => {
40
+ }, T = (o, t) => w.value === o || t === 0 && !w.value, B = () => n.isStatic && "border-t", h = (o, t, e) => x(
41
+ "update:securityScheme",
42
+ {
43
+ type: "http",
44
+ [o]: t
45
+ },
46
+ e
47
+ ), j = (o, t, e) => x(
48
+ "update:securityScheme",
49
+ {
50
+ type: "apiKey",
51
+ [o]: t
52
+ },
53
+ e
54
+ ), M = (o, t) => {
47
55
  x("update:selectedScopes", {
48
- id: Object.keys(f.selectedSecuritySchemas),
49
- name: r,
50
- ...e
56
+ id: Object.keys(n.selectedSecuritySchemas),
57
+ name: o,
58
+ ...t
51
59
  });
52
- }, O = (r, e) => {
53
- const t = "floating-bg text-c-3 relative cursor-pointer border-b border-transparent py-1 text-base font-medium";
54
- return T(r, e) ? `${t} !text-c-1 !rounded-none border-b !border-current ${f.isStatic ? "opacity-100" : ""}` : t;
60
+ }, O = (o, t) => {
61
+ const e = "floating-bg text-c-3 relative cursor-pointer border-b border-transparent py-1 text-base font-medium";
62
+ return T(o, t) ? `${e} !text-c-1 !rounded-none border-b !border-current ${n.isStatic ? "opacity-100" : ""}` : e;
55
63
  };
56
- return (r, e) => (o(!0), s(d, null, U(C.value, ({ scheme: t, name: u, scopes: V }) => (o(), s(d, { key: u }, [
57
- h.value && t ? (o(), v(i(c), { key: 0 }, {
58
- default: l(() => [
59
- n(i(I), {
60
- "aria-label": F(u, t),
64
+ return (o, t) => (l(!0), u(c, null, g($.value, ({ scheme: e, name: a, scopes: k }) => (l(), u(c, { key: a }, [
65
+ C.value && e ? (l(), y(d(m), { key: 0 }, {
66
+ default: r(() => [
67
+ i(d(I), {
68
+ "aria-label": F(a, e),
61
69
  class: "text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"
62
70
  }, {
63
- default: l(() => [
64
- k("p", H, R(F(u, t)), 1)
71
+ default: r(() => [
72
+ V("p", E, R(F(a, e)), 1)
65
73
  ]),
66
74
  _: 2
67
75
  }, 1032, ["aria-label"])
68
76
  ]),
69
77
  _: 2
70
- }, 1024)) : m("", !0),
71
- t?.description && !h.value ? (o(), v(i(c), { key: 1 }, {
72
- default: l(() => [
73
- n(i(I), {
74
- "aria-label": t.description,
78
+ }, 1024)) : f("", !0),
79
+ e?.description && !C.value ? (l(), y(d(m), { key: 1 }, {
80
+ default: r(() => [
81
+ i(d(I), {
82
+ "aria-label": e.description,
75
83
  class: "max-h-[auto]"
76
84
  }, {
77
- default: l(() => [
78
- n(i(q), {
85
+ default: r(() => [
86
+ i(d(_), {
79
87
  class: "auth-description bg-b-1 text-c-2 min-w-0 flex-1 px-3 py-1.25",
80
- value: t.description
88
+ value: e.description
81
89
  }, null, 8, ["value"])
82
90
  ]),
83
91
  _: 2
84
92
  }, 1032, ["aria-label"])
85
93
  ]),
86
94
  _: 2
87
- }, 1024)) : m("", !0),
88
- t?.type === "http" ? (o(), s(d, { key: 2 }, [
89
- t.scheme === "bearer" ? (o(), v(i(c), { key: 0 }, {
90
- default: l(() => [
91
- n(b, {
95
+ }, 1024)) : f("", !0),
96
+ e?.type === "http" ? (l(), u(c, { key: 2 }, [
97
+ e.scheme === "bearer" ? (l(), y(d(m), { key: 0 }, {
98
+ default: r(() => [
99
+ i(b, {
92
100
  containerClass: B(),
93
- environment: r.environment,
94
- modelValue: t["x-scalar-secret-token"],
101
+ environment: n.environment,
102
+ modelValue: e["x-scalar-secret-token"],
95
103
  placeholder: "Token",
96
104
  type: "password",
97
- "onUpdate:modelValue": e[0] || (e[0] = (a) => g("x-scalar-secret-token", a))
105
+ "onUpdate:modelValue": (s) => h("x-scalar-secret-token", s, a)
98
106
  }, {
99
- default: l(() => [...e[6] || (e[6] = [
100
- y(" Bearer Token ", -1)
107
+ default: r(() => [...t[0] || (t[0] = [
108
+ v(" Bearer Token ", -1)
101
109
  ])]),
102
110
  _: 1
103
- }, 8, ["containerClass", "environment", "modelValue"])
111
+ }, 8, ["containerClass", "environment", "modelValue", "onUpdate:modelValue"])
104
112
  ]),
105
113
  _: 2
106
- }, 1024)) : t?.scheme === "basic" ? (o(), s(d, { key: 1 }, [
107
- n(i(c), null, {
108
- default: l(() => [
109
- n(b, {
114
+ }, 1024)) : e?.scheme === "basic" ? (l(), u(c, { key: 1 }, [
115
+ i(d(m), null, {
116
+ default: r(() => [
117
+ i(b, {
110
118
  class: "text-c-2",
111
- environment: r.environment,
112
- modelValue: t["x-scalar-secret-username"],
119
+ environment: n.environment,
120
+ modelValue: e["x-scalar-secret-username"],
113
121
  placeholder: "janedoe",
114
122
  required: "",
115
- "onUpdate:modelValue": e[1] || (e[1] = (a) => g("x-scalar-secret-username", a))
123
+ "onUpdate:modelValue": (s) => h("x-scalar-secret-username", s, a)
116
124
  }, {
117
- default: l(() => [...e[7] || (e[7] = [
118
- y(" Username ", -1)
125
+ default: r(() => [...t[1] || (t[1] = [
126
+ v(" Username ", -1)
119
127
  ])]),
120
128
  _: 1
121
- }, 8, ["environment", "modelValue"])
129
+ }, 8, ["environment", "modelValue", "onUpdate:modelValue"])
122
130
  ]),
123
131
  _: 2
124
132
  }, 1024),
125
- n(i(c), null, {
126
- default: l(() => [
127
- n(b, {
128
- environment: r.environment,
129
- modelValue: t["x-scalar-secret-password"],
133
+ i(d(m), null, {
134
+ default: r(() => [
135
+ i(b, {
136
+ environment: n.environment,
137
+ modelValue: e["x-scalar-secret-password"],
130
138
  placeholder: "********",
131
139
  type: "password",
132
- "onUpdate:modelValue": e[2] || (e[2] = (a) => g("x-scalar-secret-password", a))
140
+ "onUpdate:modelValue": (s) => h("x-scalar-secret-password", s, a)
133
141
  }, {
134
- default: l(() => [...e[8] || (e[8] = [
135
- y(" Password ", -1)
142
+ default: r(() => [...t[2] || (t[2] = [
143
+ v(" Password ", -1)
136
144
  ])]),
137
145
  _: 1
138
- }, 8, ["environment", "modelValue"])
146
+ }, 8, ["environment", "modelValue", "onUpdate:modelValue"])
139
147
  ]),
140
148
  _: 2
141
149
  }, 1024)
142
- ], 64)) : m("", !0)
143
- ], 64)) : t?.type === "apiKey" ? (o(), s(d, { key: 3 }, [
144
- n(i(c), null, {
145
- default: l(() => [
146
- n(b, {
150
+ ], 64)) : f("", !0)
151
+ ], 64)) : e?.type === "apiKey" ? (l(), u(c, { key: 3 }, [
152
+ i(d(m), null, {
153
+ default: r(() => [
154
+ i(b, {
147
155
  containerClass: B(),
148
- environment: r.environment,
149
- modelValue: t.name,
156
+ environment: n.environment,
157
+ modelValue: e.name,
150
158
  placeholder: "api-key",
151
- "onUpdate:modelValue": e[3] || (e[3] = (a) => j("name", a))
159
+ "onUpdate:modelValue": (s) => j("name", s, a)
152
160
  }, {
153
- default: l(() => [...e[9] || (e[9] = [
154
- y(" Name ", -1)
161
+ default: r(() => [...t[3] || (t[3] = [
162
+ v(" Name ", -1)
155
163
  ])]),
156
164
  _: 1
157
- }, 8, ["containerClass", "environment", "modelValue"])
165
+ }, 8, ["containerClass", "environment", "modelValue", "onUpdate:modelValue"])
158
166
  ]),
159
167
  _: 2
160
168
  }, 1024),
161
- n(i(c), null, {
162
- default: l(() => [
163
- n(b, {
164
- environment: r.environment,
165
- modelValue: t["x-scalar-secret-token"],
169
+ i(d(m), null, {
170
+ default: r(() => [
171
+ i(b, {
172
+ environment: n.environment,
173
+ modelValue: e["x-scalar-secret-token"],
166
174
  placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
167
175
  type: "password",
168
- "onUpdate:modelValue": e[4] || (e[4] = (a) => j("x-scalar-secret-token", a))
176
+ "onUpdate:modelValue": (s) => j("x-scalar-secret-token", s, a)
169
177
  }, {
170
- default: l(() => [...e[10] || (e[10] = [
171
- y(" Value ", -1)
178
+ default: r(() => [...t[4] || (t[4] = [
179
+ v(" Value ", -1)
172
180
  ])]),
173
181
  _: 1
174
- }, 8, ["environment", "modelValue"])
182
+ }, 8, ["environment", "modelValue", "onUpdate:modelValue"])
175
183
  ]),
176
184
  _: 2
177
185
  }, 1024)
178
- ], 64)) : t?.type === "oauth2" ? (o(), s(d, { key: 4 }, [
179
- Object.keys(t.flows).length > 1 ? (o(), v(i(c), { key: 0 }, {
180
- default: l(() => [
181
- k("div", L, [
182
- k("div", G, [
183
- (o(!0), s(d, null, U(t.flows, (a, p, $) => (o(), s("button", {
186
+ ], 64)) : e?.type === "oauth2" ? (l(), u(c, { key: 4 }, [
187
+ Object.keys(e.flows).length > 1 ? (l(), y(d(m), { key: 0 }, {
188
+ default: r(() => [
189
+ V("div", H, [
190
+ V("div", L, [
191
+ (l(!0), u(c, null, g(e.flows, (s, p, U) => (l(), u("button", {
184
192
  key: p,
185
- class: z(O(p, $)),
193
+ class: z(O(p, U)),
186
194
  type: "button",
187
195
  onClick: (S) => w.value = p
188
196
  }, [
189
- k("span", W, R(p), 1)
190
- ], 10, J))), 128))
197
+ V("span", J, R(p), 1)
198
+ ], 10, G))), 128))
191
199
  ])
192
200
  ])
193
201
  ]),
194
202
  _: 2
195
- }, 1024)) : m("", !0),
196
- (o(!0), s(d, null, U(t.flows, (a, p, $) => (o(), s(d, { key: p }, [
197
- T(p, $) ? (o(), v(E, {
203
+ }, 1024)) : f("", !0),
204
+ (l(!0), u(c, null, g(e.flows, (s, p, U) => (l(), u(c, { key: p }, [
205
+ T(p, U) ? (l(), y(D, {
198
206
  key: 0,
199
- environment: r.environment,
200
- flows: t.flows,
201
- proxyUrl: r.proxyUrl,
202
- selectedScopes: V,
203
- server: r.server,
207
+ environment: n.environment,
208
+ flows: e.flows,
209
+ proxyUrl: n.proxyUrl,
210
+ selectedScopes: k,
211
+ server: n.server,
204
212
  type: p,
205
- "onUpdate:securityScheme": e[5] || (e[5] = (S) => x("update:securityScheme", S)),
206
- "onUpdate:selectedScopes": (S) => M(u, S)
207
- }, null, 8, ["environment", "flows", "proxyUrl", "selectedScopes", "server", "type", "onUpdate:selectedScopes"])) : m("", !0)
213
+ "onUpdate:securityScheme": (S) => x("update:securityScheme", S, a),
214
+ "onUpdate:selectedScopes": (S) => M(a, S)
215
+ }, null, 8, ["environment", "flows", "proxyUrl", "selectedScopes", "server", "type", "onUpdate:securityScheme", "onUpdate:selectedScopes"])) : f("", !0)
208
216
  ], 64))), 128))
209
- ], 64)) : t?.type === "openIdConnect" ? (o(), s("div", {
217
+ ], 64)) : e?.type === "openIdConnect" ? (l(), u("div", {
210
218
  key: 5,
211
- class: z(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": r.isStatic }])
212
- }, " Coming soon ", 2)) : m("", !0)
219
+ class: z(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": n.isStatic }])
220
+ }, " Coming soon ", 2)) : f("", !0)
213
221
  ], 64))), 128));
214
222
  }
215
223
  });
216
224
  export {
217
- oe as default
225
+ le as default
218
226
  };
@@ -1,16 +1,5 @@
1
1
  import type { OAuthFlowsObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  import type { ErrorResponse } from '../../../../libs/errors.js';
3
- /** Oauth2 security schemes which are not implicit */
4
- type NonImplicitFlows = Omit<OAuthFlowsObject, 'implicit'>;
5
- type PKCEState = {
6
- codeVerifier: string;
7
- codeChallenge: string;
8
- codeChallengeMethod: string;
9
- };
10
- /**
11
- * Creates a code challenge from the code verifier
12
- */
13
- export declare const generateCodeChallenge: (verifier: string, encoding: "SHA-256" | "plain") => Promise<string>;
14
3
  /**
15
4
  * Authorize oauth2 flow
16
5
  *
@@ -21,14 +10,4 @@ export declare const authorizeOauth2: (flows: OAuthFlowsObject, type: keyof OAut
21
10
  activeServer: ServerObject | null,
22
11
  /** If we want to use the proxy */
23
12
  proxyUrl: string) => Promise<ErrorResponse<string>>;
24
- /**
25
- * Makes the BE authorization call to grab the token server to server
26
- * Used for clientCredentials and authorizationCode
27
- */
28
- export declare const authorizeServers: (flows: NonImplicitFlows, type: keyof NonImplicitFlows, scopes: string, { code, pkce, proxyUrl, }: {
29
- code?: string;
30
- pkce?: PKCEState | null;
31
- proxyUrl?: string;
32
- } | undefined, activeServer: ServerObject | null) => Promise<ErrorResponse<string>>;
33
- export {};
34
13
  //# sourceMappingURL=oauth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAE1D,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAkB3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY,GAAG,IAAI;AACjC,kCAAkC;AAClC,UAAU,MAAM,KACf,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAiL/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,QAAQ,MAAM,EACd,2BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,YAAK,EACN,cAAc,YAAY,GAAG,IAAI,KAChC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAwF/B,CAAA"}
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAgDlD;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY,GAAG,IAAI;AACjC,kCAAkC;AAClC,UAAU,MAAM,KACf,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAiL/B,CAAA"}
@@ -124,7 +124,5 @@ const S = () => {
124
124
  }
125
125
  };
126
126
  export {
127
- L as authorizeOauth2,
128
- U as authorizeServers,
129
- z as generateCodeChallenge
127
+ L as authorizeOauth2
130
128
  };