@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,7 +1,7 @@
1
- import { defineComponent as g, computed as a, createBlock as y, createElementBlock as C, openBlock as p, unref as t, withCtx as q, createElementVNode as s, normalizeClass as l, toDisplayString as c } from "vue";
2
- import { cva as k, ScalarListbox as w, cx as m } from "@scalar/components";
3
- import { getHttpMethodInfo as f, REQUEST_METHODS as x } from "@scalar/helpers/http/http-info";
4
- const H = /* @__PURE__ */ g({
1
+ import { defineComponent as S, computed as l, createBlock as g, createElementBlock as y, openBlock as m, unref as a, withCtx as C, createElementVNode as s, normalizeClass as n, toDisplayString as f } from "vue";
2
+ import { cva as q, ScalarListbox as k, cx as p } from "@scalar/components";
3
+ import { getHttpMethodInfo as b, REQUEST_METHODS as w } from "@scalar/helpers/http/http-info";
4
+ const H = /* @__PURE__ */ S({
5
5
  __name: "HttpMethod",
6
6
  props: {
7
7
  isSquare: { type: Boolean, default: !1 },
@@ -9,15 +9,15 @@ const H = /* @__PURE__ */ g({
9
9
  isEditable: { type: Boolean, default: !1 }
10
10
  },
11
11
  emits: ["change"],
12
- setup(b, { emit: h }) {
13
- const r = b, v = h, o = a(() => f(r.method)), n = Object.entries(x).map(([e]) => ({
12
+ setup(t, { emit: h }) {
13
+ const i = t, v = h, o = l(() => b(i.method)), r = Object.entries(w).map(([e]) => ({
14
14
  id: e,
15
15
  label: e.toUpperCase(),
16
- color: f(e).colorClass
17
- })), i = a({
18
- get: () => n.find(({ id: e }) => e === r.method),
16
+ color: b(e).colorClass
17
+ })), d = l({
18
+ get: () => r.find(({ id: e }) => e === i.method),
19
19
  set: (e) => e?.id && v("change", e.id)
20
- }), d = k({
20
+ }), c = q({
21
21
  base: "text-center font-code text-3xs justify-center items-center flex",
22
22
  variants: {
23
23
  isSquare: {
@@ -29,32 +29,32 @@ const H = /* @__PURE__ */ g({
29
29
  false: "cursor-auto"
30
30
  }
31
31
  }
32
- }), E = a(() => o.value.short);
33
- return (e, u) => e.isEditable ? (p(), y(t(w), {
32
+ }), E = l(() => o.value.short);
33
+ return (e, u) => t.isEditable ? (m(), g(a(k), {
34
34
  key: 0,
35
- modelValue: i.value,
36
- "onUpdate:modelValue": u[0] || (u[0] = (S) => i.value = S),
35
+ modelValue: d.value,
36
+ "onUpdate:modelValue": u[0] || (u[0] = (x) => d.value = x),
37
37
  class: "font-code scalar-client mt-1 text-sm",
38
- options: t(n)
38
+ options: a(r)
39
39
  }, {
40
- default: q(() => [
40
+ default: C(() => [
41
41
  s("div", {
42
- class: l(["h-full", { "pointer-events-none": !e.isEditable }])
42
+ class: n(["h-full", { "pointer-events-none": !t.isEditable }])
43
43
  }, [
44
44
  s("button", {
45
- class: l(["relative h-full", t(m)(t(d)({ isSquare: e.isSquare, isEditable: e.isEditable }), o.value.colorClass)]),
45
+ class: n(["relative h-full", a(p)(a(c)({ isSquare: t.isSquare, isEditable: t.isEditable }), o.value.colorClass)]),
46
46
  type: "button"
47
47
  }, [
48
- s("span", null, c(E.value), 1)
48
+ s("span", null, f(E.value), 1)
49
49
  ], 2)
50
50
  ], 2)
51
51
  ]),
52
52
  _: 1
53
- }, 8, ["modelValue", "options"])) : (p(), C("div", {
53
+ }, 8, ["modelValue", "options"])) : (m(), y("div", {
54
54
  key: 1,
55
- class: l(["relative gap-1 whitespace-nowrap", t(m)(t(d)({ isSquare: e.isSquare, isEditable: e.isEditable }), o.value.colorClass)]),
55
+ class: n(["relative gap-1 whitespace-nowrap", a(p)(a(c)({ isSquare: t.isSquare, isEditable: t.isEditable }), o.value.colorClass)]),
56
56
  type: "button"
57
- }, c(o.value.short), 3));
57
+ }, f(o.value.short), 3));
58
58
  }
59
59
  });
60
60
  export {
@@ -1,5 +1,5 @@
1
- import { defineComponent as g, computed as V, createBlock as n, openBlock as s, unref as e, withCtx as o, renderSlot as u, createVNode as a, createElementVNode as d, createTextVNode as p, createElementBlock as k, Fragment as y, renderList as _, toDisplayString as w } from "vue";
2
- import { RadioGroup as S, RadioGroupLabel as m, RadioGroupOption as C } from "@headlessui/vue";
1
+ import { defineComponent as g, computed as V, createBlock as u, openBlock as s, unref as e, withCtx as o, renderSlot as d, createVNode as a, createElementVNode as m, createTextVNode as p, createElementBlock as k, Fragment as y, renderList as w, toDisplayString as _ } from "vue";
2
+ import { RadioGroup as S, RadioGroupLabel as i, RadioGroupOption as C } from "@headlessui/vue";
3
3
  import { ScalarPopover as I } from "@scalar/components";
4
4
  import { libraryIcons as h, LibraryIcon as B } from "@scalar/icons/library";
5
5
  const G = { class: "flex text-sm" }, L = { class: "bg-b-1 custom-scroll grid w-dvw max-w-[420px] auto-rows-[32px] grid-cols-[repeat(auto-fill,minmax(32px,1fr))] content-between justify-between rounded border p-1" }, $ = /* @__PURE__ */ g({
@@ -9,35 +9,35 @@ const G = { class: "flex text-sm" }, L = { class: "bg-b-1 custom-scroll grid w-d
9
9
  placement: {}
10
10
  },
11
11
  emits: ["update:modelValue"],
12
- setup(i, { emit: f }) {
13
- const b = i, x = f, c = V({
12
+ setup(c, { emit: f }) {
13
+ const b = c, x = f, n = V({
14
14
  get: () => b.modelValue,
15
15
  set: (l) => x("update:modelValue", l)
16
16
  });
17
- return (l, r) => (s(), n(e(I), {
17
+ return (l, r) => (s(), u(e(I), {
18
18
  class: "bg-b-2 rounded",
19
19
  focus: "",
20
- placement: l.placement ?? "bottom"
20
+ placement: c.placement ?? "bottom"
21
21
  }, {
22
22
  popover: o(({ close: v }) => [
23
23
  a(e(S), {
24
- modelValue: c.value,
25
- "onUpdate:modelValue": r[0] || (r[0] = (t) => c.value = t),
24
+ modelValue: n.value,
25
+ "onUpdate:modelValue": r[0] || (r[0] = (t) => n.value = t),
26
26
  class: "flex flex-col"
27
27
  }, {
28
28
  default: o(() => [
29
- d("div", G, [
30
- a(e(m), { class: "text-c-2 px-1 py-1" }, {
29
+ m("div", G, [
30
+ a(e(i), { class: "text-c-2 px-1 py-1" }, {
31
31
  default: o(() => [
32
- u(l.$slots, "title", {}, () => [
32
+ d(l.$slots, "title", {}, () => [
33
33
  r[1] || (r[1] = p("Select an icon", -1))
34
34
  ])
35
35
  ]),
36
36
  _: 3
37
37
  })
38
38
  ]),
39
- d("ul", L, [
40
- (s(!0), k(y, null, _(e(h), (t) => (s(), n(e(C), {
39
+ m("ul", L, [
40
+ (s(!0), k(y, null, w(e(h), (t) => (s(), u(e(C), {
41
41
  key: t.src,
42
42
  as: "li",
43
43
  class: "text-c-3 hover:text-c-2 hover:bg-b-2 ui-checked:bg-b-3 ui-active:bg-b-2 flex cursor-pointer items-center justify-center rounded p-2",
@@ -45,9 +45,9 @@ const G = { class: "flex text-sm" }, L = { class: "bg-b-1 custom-scroll grid w-d
45
45
  onClick: v
46
46
  }, {
47
47
  default: o(() => [
48
- a(e(m), { class: "sr-only" }, {
48
+ a(e(i), { class: "sr-only" }, {
49
49
  default: o(() => [
50
- p(w(t.src.replaceAll("-", " ")) + " Icon ", 1)
50
+ p(_(t.src.replaceAll("-", " ")) + " Icon ", 1)
51
51
  ]),
52
52
  _: 2
53
53
  }, 1024),
@@ -64,7 +64,7 @@ const G = { class: "flex text-sm" }, L = { class: "bg-b-1 custom-scroll grid w-d
64
64
  }, 1032, ["modelValue"])
65
65
  ]),
66
66
  default: o(() => [
67
- u(l.$slots, "default")
67
+ d(l.$slots, "default")
68
68
  ]),
69
69
  _: 3
70
70
  }, 8, ["placement"]));
@@ -1,4 +1,4 @@
1
- import { defineComponent as F, ref as R, computed as c, watch as y, onMounted as q, onUnmounted as B, createBlock as H, openBlock as l, unref as i, withCtx as W, createElementBlock as a, createCommentVNode as u, createElementVNode as e, normalizeClass as K, Fragment as g, createVNode as d, toDisplayString as G, createTextVNode as k } from "vue";
1
+ import { defineComponent as F, ref as R, computed as c, watch as g, onMounted as q, onUnmounted as B, createBlock as H, openBlock as l, unref as i, withCtx as W, createElementBlock as a, createCommentVNode as u, createElementVNode as e, normalizeClass as K, Fragment as _, createVNode as d, toDisplayString as G, createTextVNode as I } from "vue";
2
2
  import { useModal as J, ScalarModal as Q, ScalarIcon as X } from "@scalar/components";
3
3
  import { isLocalUrl as Y } from "@scalar/oas-utils/helpers";
4
4
  import { normalize as Z } from "@scalar/openapi-parser";
@@ -10,9 +10,9 @@ import { useUrlPrefetcher as re } from "./hooks/useUrlPrefetcher.js";
10
10
  import ie from "./ImportNowButton.vue.js";
11
11
  import le from "./IntegrationLogo.vue.js";
12
12
  import ce from "./PrefetchError.vue.js";
13
- import { getOpenApiVersion as I } from "./utils/get-openapi-version.js";
14
- import { isDocument as L } from "./utils/is-document.js";
15
- import { isUrl as M } from "./utils/is-url.js";
13
+ import { getOpenApiVersion as L } from "./utils/get-openapi-version.js";
14
+ import { isDocument as M } from "./utils/is-document.js";
15
+ import { isUrl as T } from "./utils/is-url.js";
16
16
  import ae from "./WorkspaceSelector.vue.js";
17
17
  import { useActiveEntities as de } from "../../store/active-entities.js";
18
18
  import { useWorkspace as me } from "../../store/store.js";
@@ -36,85 +36,85 @@ const ue = ["innerHTML"], fe = { class: "relative flex h-screen flex-col justify
36
36
  eventType: {}
37
37
  },
38
38
  emits: ["importFinished"],
39
- setup(T, { emit: U }) {
40
- const s = T, A = U, { activeWorkspace: f } = de(), { workspaceMutators: C, events: P } = me(), { prefetchResult: n, prefetchUrl: _, resetPrefetchResult: V } = re(), r = J(), p = R(!0);
39
+ setup(p, { emit: U }) {
40
+ const o = p, A = U, { activeWorkspace: f } = de(), { workspaceMutators: C, events: P } = me(), { prefetchResult: n, prefetchUrl: b, resetPrefetchResult: V } = re(), r = J(), v = R(!0);
41
41
  P.hotKeys.on(() => r.hide());
42
42
  const j = c(() => {
43
43
  try {
44
44
  return Z(
45
- n.content || s.source || ""
45
+ n.content || o.source || ""
46
46
  );
47
47
  } catch {
48
48
  return;
49
49
  }
50
- }), D = c(() => j.value?.info?.title), b = c(
51
- () => I(n.content || s.source || "")
52
- ), { darkLightMode: S } = oe(), { currentRoute: z } = se(), v = c(() => {
50
+ }), D = c(() => j.value?.info?.title), w = c(
51
+ () => L(n.content || o.source || "")
52
+ ), { darkLightMode: S } = oe(), { currentRoute: z } = se(), h = c(() => {
53
53
  try {
54
- const o = z.value.query, t = S.value === "dark" ? o.dark_logo : o.light_logo;
54
+ const s = z.value.query, t = S.value === "dark" ? s.dark_logo : s.light_logo;
55
55
  if (t)
56
56
  return decodeURIComponent(t);
57
57
  } catch {
58
58
  }
59
59
  return null;
60
60
  });
61
- y(
62
- () => s.source,
63
- async (o) => {
64
- if (V(), M(o)) {
65
- if (s.eventType && ["paste", "drop"].includes(s.eventType)) {
66
- const { error: m } = await _(
67
- o,
61
+ g(
62
+ () => o.source,
63
+ async (s) => {
64
+ if (V(), T(s)) {
65
+ if (o.eventType && ["paste", "drop"].includes(o.eventType)) {
66
+ const { error: m } = await b(
67
+ s,
68
68
  f.value?.proxyUrl
69
69
  );
70
70
  m ? r.hide() : r.show();
71
71
  return;
72
72
  }
73
- _(o, f.value?.proxyUrl), r.show();
73
+ b(s, f.value?.proxyUrl), r.show();
74
74
  return;
75
75
  }
76
- o && L(o) && I(o) ? r.show() : r.hide();
76
+ s && M(s) && L(s) ? r.show() : r.hide();
77
77
  }
78
78
  );
79
- const N = c(() => !!s.source && M(s.source)), O = c(() => !!s.source && L(s.source)), h = c(() => n.url && Y(n.url)), x = (o) => {
79
+ const N = c(() => !!o.source && T(o.source)), O = c(() => !!o.source && M(o.source)), x = c(() => n.url && Y(n.url)), y = (s) => {
80
80
  document.body.classList.remove("has-no-import-url"), (N.value || O.value) && r.open ? document.body.classList.add("has-import-url") : document.body.classList.remove("has-import-url");
81
81
  }, $ = () => {
82
82
  document.body.classList.remove("has-import-url"), document.body.classList.add("has-no-import-url");
83
83
  };
84
- y(
84
+ g(
85
85
  () => r.open,
86
- (o) => {
87
- o ? x() : $();
86
+ (s) => {
87
+ s ? y() : $();
88
88
  }
89
- ), y(
90
- () => s.source,
89
+ ), g(
90
+ () => o.source,
91
91
  () => {
92
- x();
92
+ y();
93
93
  }
94
94
  ), q(() => {
95
- x();
95
+ y();
96
96
  }), B(() => {
97
97
  document.body.classList.remove("has-import-url"), document.body.classList.remove("has-no-import-url");
98
98
  });
99
- const w = c(
100
- () => f.value && h.value && s.integration && `<style>${ee(s.integration)}</style>`
99
+ const k = c(
100
+ () => f.value && x.value && o.integration && `<style>${ee(o.integration)}</style>`
101
101
  );
102
102
  function E() {
103
- const o = (m) => te.includes(m), t = s.integration && o(s.integration) ? s.integration : "default";
104
- h.value && C.edit(
103
+ const s = (m) => te.includes(m), t = o.integration && s(o.integration) ? o.integration : "default";
104
+ x.value && C.edit(
105
105
  f.value?.uid,
106
106
  "themeId",
107
107
  t
108
108
  ), A("importFinished");
109
109
  }
110
- return (o, t) => (l(), H(i(Q), {
110
+ return (s, t) => (l(), H(i(Q), {
111
111
  size: "full",
112
112
  state: i(r)
113
113
  }, {
114
114
  default: W(() => [
115
- w.value ? (l(), a("div", {
115
+ k.value ? (l(), a("div", {
116
116
  key: 0,
117
- innerHTML: w.value
117
+ innerHTML: k.value
118
118
  }, null, 8, ue)) : u("", !0),
119
119
  e("div", fe, [
120
120
  t[6] || (t[6] = e("div", { class: "section-flare" }, [
@@ -130,44 +130,44 @@ const ue = ["innerHTML"], fe = { class: "relative flex h-screen flex-col justify
130
130
  e("div", {
131
131
  class: K(["m-auto flex w-full max-w-[380px] flex-col items-center rounded-xl border px-8 py-8 transition-opacity", { "opacity-0": i(n).state === "loading" }])
132
132
  }, [
133
- i(n).error && i(n).state === "idle" && !b.value ? (l(), a(g, { key: 0 }, [
133
+ i(n).error && i(n).state === "idle" && !w.value ? (l(), a(_, { key: 0 }, [
134
134
  t[1] || (t[1] = e("div", { class: "text-md mb-2 line-clamp-1 text-center font-bold" }, " No OpenAPI document found ", -1)),
135
135
  d(ce, {
136
- url: i(n)?.input || s.source
136
+ url: i(n)?.input || o.source
137
137
  }, null, 8, ["url"])
138
- ], 64)) : (l(), a(g, { key: 1 }, [
139
- h.value ? (l(), a("div", pe, [
138
+ ], 64)) : (l(), a(_, { key: 1 }, [
139
+ x.value ? (l(), a("div", pe, [
140
140
  e("div", ve, [
141
- d(le, { integration: o.integration }, null, 8, ["integration"])
141
+ d(le, { integration: p.integration }, null, 8, ["integration"])
142
142
  ])
143
- ])) : v.value ? (l(), a("img", {
143
+ ])) : h.value ? (l(), a("img", {
144
144
  key: 1,
145
145
  alt: "Logo",
146
146
  class: "mb-2 w-full object-contain",
147
- src: v.value
147
+ src: h.value
148
148
  }, null, 8, he)) : u("", !0),
149
- v.value ? u("", !0) : (l(), a("div", xe, G(D.value || "Untitled Collection"), 1)),
149
+ h.value ? u("", !0) : (l(), a("div", xe, G(D.value || "Untitled Collection"), 1)),
150
150
  t[4] || (t[4] = e("div", { class: "text-c-1 text-center text-sm font-medium text-balance" }, " Import the OpenAPI document to instantly send API requests. No signup required. ", -1)),
151
- b.value ? (l(), a(g, { key: 3 }, [
151
+ w.value ? (l(), a(_, { key: 3 }, [
152
152
  e("div", ye, [
153
153
  d(ie, {
154
- source: i(n)?.url ?? i(n)?.content ?? o.source,
154
+ source: i(n)?.url ?? i(n)?.content ?? p.source,
155
155
  variant: "button",
156
- watchMode: p.value,
156
+ watchMode: v.value,
157
157
  onImportFinished: E
158
158
  }, null, 8, ["source", "watchMode"])
159
159
  ]),
160
160
  e("div", ge, [
161
161
  e("div", _e, [
162
- t[2] || (t[2] = k(" Import to: ", -1)),
162
+ t[2] || (t[2] = I(" Import to: ", -1)),
163
163
  d(ae)
164
164
  ])
165
165
  ]),
166
166
  i(n)?.url ? (l(), a("div", be, [
167
167
  e("div", we, [
168
168
  d(ne, {
169
- modelValue: p.value,
170
- "onUpdate:modelValue": t[0] || (t[0] = (m) => p.value = m),
169
+ modelValue: v.value,
170
+ "onUpdate:modelValue": t[0] || (t[0] = (m) => v.value = m),
171
171
  disableToolTip: !0
172
172
  }, null, 8, ["modelValue"])
173
173
  ]),
@@ -193,7 +193,7 @@ const ue = ["innerHTML"], fe = { class: "relative flex h-screen flex-col justify
193
193
  target: "_blank"
194
194
  }, " Download Desktop App "),
195
195
  e("br"),
196
- k(" free · open-source · offline first ")
196
+ I(" free · open-source · offline first ")
197
197
  ], -1))
198
198
  ])
199
199
  ])
@@ -1,8 +1,8 @@
1
- import { defineComponent as C, createElementBlock as h, createCommentVNode as y, openBlock as o, Fragment as v, createBlock as u, unref as a, withCtx as m, createTextVNode as c } from "vue";
2
- import { ScalarButton as p } from "@scalar/components";
3
- import { useToasts as b } from "@scalar/use-toasts";
4
- import { useRouter as g } from "vue-router";
5
- import { useActiveEntities as x } from "../../store/active-entities.js";
1
+ import { defineComponent as C, createElementBlock as h, createCommentVNode as y, openBlock as r, Fragment as v, createBlock as u, unref as a, withCtx as m, createTextVNode as c } from "vue";
2
+ import { ScalarButton as l } from "@scalar/components";
3
+ import { useToasts as x } from "@scalar/use-toasts";
4
+ import { useRouter as b } from "vue-router";
5
+ import { useActiveEntities as g } from "../../store/active-entities.js";
6
6
  import { importCollection as B } from "./utils/import-collection.js";
7
7
  import { useWorkspace as I } from "../../store/store.js";
8
8
  const R = /* @__PURE__ */ C({
@@ -13,46 +13,46 @@ const R = /* @__PURE__ */ C({
13
13
  watchMode: { type: Boolean, default: !0 }
14
14
  },
15
15
  emits: ["importFinished"],
16
- setup(r, { emit: l }) {
17
- const f = l, d = g(), k = I(), { activeWorkspace: n } = x(), { toast: s } = b();
16
+ setup(o, { emit: p }) {
17
+ const f = p, d = b(), k = I(), { activeWorkspace: n } = g(), { toast: s } = x();
18
18
  function i() {
19
19
  B({
20
20
  store: k,
21
21
  workspace: n.value,
22
- source: r.source,
23
- watchMode: r.watchMode,
24
- onSuccess(e) {
25
- e && (w(e), s("Import successful", "info"), f("importFinished"));
22
+ source: o.source,
23
+ watchMode: o.watchMode,
24
+ onSuccess(t) {
25
+ t && (w(t), s("Import successful", "info"), f("importFinished"));
26
26
  },
27
- onError(e) {
28
- console.error("[importCollection]", e);
29
- const t = e?.message || "Unknown error";
30
- s(`Import failed: ${t}`, "error");
27
+ onError(t) {
28
+ console.error("[importCollection]", t);
29
+ const e = t?.message || "Unknown error";
30
+ s(`Import failed: ${e}`, "error");
31
31
  }
32
32
  });
33
33
  }
34
- function w(e) {
35
- e && d.push({
34
+ function w(t) {
35
+ t && d.push({
36
36
  name: "request",
37
37
  params: {
38
38
  workspace: n.value?.uid,
39
- request: e?.requests[0]
39
+ request: t?.requests[0]
40
40
  }
41
41
  });
42
42
  }
43
- return (e, t) => e.source ? (o(), h(v, { key: 0 }, [
44
- e.variant === "button" ? (o(), u(a(p), {
43
+ return (t, e) => o.source ? (r(), h(v, { key: 0 }, [
44
+ o.variant === "button" ? (r(), u(a(l), {
45
45
  key: 0,
46
46
  class: "mt-3 h-fit w-full rounded-lg px-6 py-2.5 font-bold",
47
47
  size: "md",
48
48
  type: "button",
49
49
  onClick: i
50
50
  }, {
51
- default: m(() => [...t[0] || (t[0] = [
51
+ default: m(() => [...e[0] || (e[0] = [
52
52
  c(" Import Collection ", -1)
53
53
  ])]),
54
54
  _: 1
55
- })) : (o(), u(a(p), {
55
+ })) : (r(), u(a(l), {
56
56
  key: 1,
57
57
  class: "h-fit rounded-lg px-6 py-2.5 text-[21px] font-bold",
58
58
  size: "md",
@@ -60,7 +60,7 @@ const R = /* @__PURE__ */ C({
60
60
  variant: "ghost",
61
61
  onClick: i
62
62
  }, {
63
- default: m(() => [...t[1] || (t[1] = [
63
+ default: m(() => [...e[1] || (e[1] = [
64
64
  c(" Try it in the browser ", -1)
65
65
  ])]),
66
66
  _: 1
@@ -1,27 +1,27 @@
1
1
  import { defineComponent as l, createElementBlock as n, openBlock as o, createTextVNode as r, unref as d } from "vue";
2
- import { isUrl as s } from "../../libs/isUrl.js";
3
- const a = { class: "w-full text-center text-sm font-medium break-words" }, u = ["href"], m = {
2
+ import { isUrl as a } from "../../libs/isUrl.js";
3
+ const u = { class: "w-full text-center text-sm font-medium break-words" }, m = ["href"], s = {
4
4
  key: 1,
5
5
  textContent: "OpenAPI document manually"
6
- }, c = /* @__PURE__ */ l({
6
+ }, p = /* @__PURE__ */ l({
7
7
  __name: "PrefetchError",
8
8
  props: {
9
9
  url: {}
10
10
  },
11
- setup(p) {
12
- return (t, e) => (o(), n("div", a, [
11
+ setup(t) {
12
+ return (f, e) => (o(), n("div", u, [
13
13
  e[0] || (e[0] = r(" We couldn't find an OpenAPI document at the provided URL. Please download and import the ", -1)),
14
- t.url && d(s)(t.url) ? (o(), n("a", {
14
+ t.url && d(a)(t.url) ? (o(), n("a", {
15
15
  key: 0,
16
16
  href: t.url,
17
17
  rel: "noopener nofollow",
18
18
  target: "_blank",
19
19
  textContent: "OpenAPI document manually"
20
- }, null, 8, u)) : (o(), n("span", m)),
20
+ }, null, 8, m)) : (o(), n("span", s)),
21
21
  e[1] || (e[1] = r(". ", -1))
22
22
  ]));
23
23
  }
24
24
  });
25
25
  export {
26
- c as default
26
+ p as default
27
27
  };
@@ -1,10 +1,3 @@
1
- export type PrefetchResult = {
2
- state: 'idle' | 'loading';
3
- content: string | null;
4
- input: string | null;
5
- url: string | null;
6
- error: string | null;
7
- };
8
1
  /**
9
2
  * Vue composable for URL prefetching
10
3
  */
@@ -1 +1 @@
1
- {"version":3,"file":"useUrlPrefetcher.d.ts","sourceRoot":"","sources":["../../../../src/components/ImportCollection/hooks/useUrlPrefetcher.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,wBAAgB,gBAAgB;;eAVvB,MAAM,GAAG,SAAS;iBAChB,MAAM,GAAG,IAAI;eACf,MAAM,GAAG,IAAI;aACf,MAAM,GAAG,IAAI;eACX,MAAM,GAAG,IAAI;;yBAsH4B,MAAM,GAAG,IAAI,aAAa,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBjF"}
1
+ {"version":3,"file":"useUrlPrefetcher.d.ts","sourceRoot":"","sources":["../../../../src/components/ImportCollection/hooks/useUrlPrefetcher.ts"],"names":[],"mappings":"AAcA;;GAEG;AACH,wBAAgB,gBAAgB;;eAVvB,MAAM,GAAG,SAAS;iBAChB,MAAM,GAAG,IAAI;eACf,MAAM,GAAG,IAAI;aACf,MAAM,GAAG,IAAI;eACX,MAAM,GAAG,IAAI;;yBAsH4B,MAAM,GAAG,IAAI,aAAa,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBjF"}
@@ -1,33 +1,33 @@
1
- import { defineComponent as d, computed as g, createElementBlock as a, openBlock as i, normalizeClass as h, Fragment as f, renderList as y, normalizeStyle as r, createElementVNode as v, toDisplayString as x } from "vue";
2
- const c = 500, o = 100, k = /* @__PURE__ */ d({
1
+ import { defineComponent as d, computed as g, createElementBlock as a, openBlock as i, normalizeClass as h, Fragment as f, renderList as x, normalizeStyle as c, createElementVNode as y, toDisplayString as v } from "vue";
2
+ const m = 500, l = 100, k = /* @__PURE__ */ d({
3
3
  __name: "ScalarAsciiArt",
4
4
  props: {
5
5
  art: {},
6
6
  animate: { type: Boolean }
7
7
  },
8
- setup(m) {
9
- const p = m, e = g(() => p.art.split(`
10
- `)), u = (t, l) => ({
11
- animationDuration: `${t * o}ms, ${c}ms`,
8
+ setup(o) {
9
+ const p = o, e = g(() => p.art.split(`
10
+ `)), u = (t, s) => ({
11
+ animationDuration: `${t * l}ms, ${m}ms`,
12
12
  animationTimingFunction: `steps(${t}), step-end`,
13
- animationDelay: `${l * o}ms, 0ms`,
14
- animationIterationCount: `1, ${((e.value?.length ?? 0) + (e.value?.[e.value?.length - 1]?.length ?? 0) + 5) * o / c}`
13
+ animationDelay: `${s * l}ms, 0ms`,
14
+ animationIterationCount: `1, ${((e.value?.length ?? 0) + (e.value?.[e.value?.length - 1]?.length ?? 0) + 5) * l / m}`
15
15
  });
16
- return (t, l) => (i(), a("div", {
16
+ return (t, s) => (i(), a("div", {
17
17
  "aria-hidden": "true",
18
- class: h(["ascii-art font-code flex flex-col items-start text-[6px] leading-[7px]", { "ascii-art-animate": t.animate }]),
18
+ class: h(["ascii-art font-code flex flex-col items-start text-[6px] leading-[7px]", { "ascii-art-animate": o.animate }]),
19
19
  role: "presentation",
20
20
  inert: ""
21
21
  }, [
22
- (i(!0), a(f, null, y(e.value, (n, s) => (i(), a("span", {
23
- key: s,
22
+ (i(!0), a(f, null, x(e.value, (n, r) => (i(), a("span", {
23
+ key: r,
24
24
  class: "inline-block",
25
- style: r({ width: `calc(${n.length + 1}ch)` })
25
+ style: c({ width: `calc(${n.length + 1}ch)` })
26
26
  }, [
27
- v("span", {
27
+ y("span", {
28
28
  class: "inline-block whitespace-pre overflow-hidden",
29
- style: r(u(n.length, s))
30
- }, x(n), 5)
29
+ style: c(u(n.length, r))
30
+ }, v(n), 5)
31
31
  ], 4))), 128))
32
32
  ], 2));
33
33
  }
@@ -1,9 +1,9 @@
1
- import { defineComponent as x, mergeModels as p, useModel as h, ref as g, createElementBlock as u, openBlock as i, withKeys as f, createElementVNode as c, Fragment as b, renderList as k, createBlock as y, withCtx as V, createTextVNode as w, toDisplayString as m, createVNode as S, unref as q, nextTick as B } from "vue";
1
+ import { defineComponent as x, mergeModels as h, useModel as g, ref as p, createElementBlock as u, openBlock as r, withKeys as f, createElementVNode as i, Fragment as b, renderList as k, createBlock as y, withCtx as V, createTextVNode as w, toDisplayString as m, createVNode as S, unref as q, nextTick as B } from "vue";
2
2
  import { ScalarIcon as C } from "@scalar/components";
3
3
  import I from "./SectionFilterButton.vue.js";
4
- const _ = { class: "request-section-content request-section-content-filter fade-request-section-content text-c-3 pointer-events-auto relative hidden w-full justify-end gap-[1.5px] rounded py-1.75 text-xs xl:flex" }, $ = { class: "filter-button context-bar-group-hover:text-c-1 absolute -right-[30px] flex items-center" }, F = { class: "context-bar-group-hover:hidden mr-1.5" }, K = /* @__PURE__ */ x({
4
+ const $ = { class: "request-section-content request-section-content-filter fade-request-section-content text-c-3 pointer-events-auto relative hidden w-full justify-end gap-[1.5px] rounded py-1.75 text-xs xl:flex" }, F = { class: "filter-button context-bar-group-hover:text-c-1 absolute -right-[30px] flex items-center" }, M = { class: "context-bar-group-hover:hidden mr-1.5" }, L = /* @__PURE__ */ x({
5
5
  __name: "SectionFilter",
6
- props: /* @__PURE__ */ p({
6
+ props: /* @__PURE__ */ h({
7
7
  filters: { default: () => [] },
8
8
  filterIds: {}
9
9
  }, {
@@ -11,44 +11,44 @@ const _ = { class: "request-section-content request-section-content-filter fade-
11
11
  modelModifiers: {}
12
12
  }),
13
13
  emits: ["update:modelValue"],
14
- setup(n) {
15
- const t = h(n, "modelValue"), s = g(), a = (l) => {
16
- const o = l === "prev" ? -1 : 1, e = t.value ? n.filters.indexOf(t.value) : 0, r = n.filters.length, v = (e + o + r) % r;
17
- t.value = n.filters[v], B(() => {
18
- if (s.value) {
19
- const d = s.value.querySelector(
14
+ setup(t) {
15
+ const o = g(t, "modelValue"), l = p(), c = (a) => {
16
+ const n = a === "prev" ? -1 : 1, e = o.value ? t.filters.indexOf(o.value) : 0, s = t.filters.length, v = (e + n + s) % s;
17
+ o.value = t.filters[v], B(() => {
18
+ if (l.value) {
19
+ const d = l.value.querySelector(
20
20
  'button[aria-selected="true"]'
21
21
  );
22
22
  d && d.focus();
23
23
  }
24
24
  });
25
25
  };
26
- return (l, o) => (i(), u("div", {
26
+ return (a, n) => (r(), u("div", {
27
27
  ref_key: "tablist",
28
- ref: s,
28
+ ref: l,
29
29
  class: "filter-hover context-bar-group ml-auto hidden lg:flex",
30
30
  role: "tablist",
31
31
  onKeydown: [
32
- o[0] || (o[0] = f((e) => a("prev"), ["left"])),
33
- o[1] || (o[1] = f((e) => a("next"), ["right"]))
32
+ n[0] || (n[0] = f((e) => c("prev"), ["left"])),
33
+ n[1] || (n[1] = f((e) => c("next"), ["right"]))
34
34
  ]
35
35
  }, [
36
- c("div", _, [
37
- (i(!0), u(b, null, k(l.filters, (e) => (i(), y(I, {
36
+ i("div", $, [
37
+ (r(!0), u(b, null, k(t.filters, (e) => (r(), y(I, {
38
38
  key: e,
39
39
  class: "filter-hover-item",
40
- controls: l.filterIds?.[e],
40
+ controls: t.filterIds?.[e],
41
41
  role: "tab",
42
- selected: t.value === e,
43
- onClick: (r) => t.value = e
42
+ selected: o.value === e,
43
+ onClick: (s) => o.value = e
44
44
  }, {
45
45
  default: V(() => [
46
46
  w(m(e), 1)
47
47
  ]),
48
48
  _: 2
49
49
  }, 1032, ["controls", "selected", "onClick"]))), 128)),
50
- c("div", $, [
51
- c("span", F, m(t.value), 1),
50
+ i("div", F, [
51
+ i("span", M, m(o.value), 1),
52
52
  S(q(C), {
53
53
  icon: "FilterList",
54
54
  size: "md",
@@ -60,5 +60,5 @@ const _ = { class: "request-section-content request-section-content-filter fade-
60
60
  }
61
61
  });
62
62
  export {
63
- K as default
63
+ L as default
64
64
  };