@scalar/api-client 2.8.0 → 2.9.0

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 (418) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/dist/components/AddressBar/AddressBarHistory.vue2.js +9 -10
  3. package/dist/components/CodeInput/CodeInput.vue2.js +5 -5
  4. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
  5. package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
  6. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +3 -3
  7. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +3 -3
  8. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +18 -20
  9. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +2 -2
  10. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +1 -1
  11. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +13 -14
  12. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +3 -3
  13. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +3 -3
  14. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +4 -4
  15. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +22 -24
  16. package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
  17. package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
  18. package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -9
  19. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -10
  20. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  21. package/dist/components/IconSelector.vue.js +1 -1
  22. package/dist/components/ImportCollection/DropEventListener.vue.js +12 -12
  23. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +8 -8
  24. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
  25. package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -16
  26. package/dist/components/ImportCollection/PasteEventListener.vue.js +1 -1
  27. package/dist/components/ImportCollection/PrefetchError.vue.js +2 -2
  28. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +5 -7
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -1
  30. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  31. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +3 -3
  32. package/dist/components/OpenApiClientButton.vue2.js +1 -1
  33. package/dist/components/Server/ServerSelector.vue.js +1 -2
  34. package/dist/components/SideNav/SideHelp.vue.js +13 -19
  35. package/dist/components/SideNav/SideNav.vue.js +4 -5
  36. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +4 -5
  37. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  38. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  39. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  40. package/dist/components/TopNav/TopNav.vue.js +8 -10
  41. package/dist/components/TopNav/TopNavItem.vue2.js +8 -12
  42. package/dist/hooks/index.d.ts +0 -1
  43. package/dist/hooks/index.d.ts.map +1 -1
  44. package/dist/hooks/index.js +9 -11
  45. package/dist/hooks/useClientConfig.d.ts +9 -6
  46. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  47. package/dist/index.d.ts +1 -2
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +8 -15
  50. package/dist/layouts/App/create-api-client-app.d.ts +3644 -3643
  51. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  52. package/dist/layouts/App/create-api-client-app.js +24 -18
  53. package/dist/layouts/Modal/create-api-client-modal.d.ts +5 -8089
  54. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  55. package/dist/layouts/Modal/create-api-client-modal.js +28 -46
  56. package/dist/layouts/Modal/index.d.ts +2 -2
  57. package/dist/layouts/Modal/index.d.ts.map +1 -1
  58. package/dist/layouts/Modal/index.js +2 -5
  59. package/dist/layouts/Web/create-api-client-web.d.ts +20 -20
  60. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  61. package/dist/layouts/Web/create-api-client-web.js +15 -12
  62. package/dist/libs/create-client.d.ts +25 -25
  63. package/dist/libs/create-client.d.ts.map +1 -1
  64. package/dist/libs/create-client.js +23 -23
  65. package/dist/libs/find-request.d.ts +2 -2
  66. package/dist/libs/postman.d.ts +1 -1
  67. package/dist/libs/postman.d.ts.map +1 -1
  68. package/dist/libs/postman.js +12 -12
  69. package/dist/libs/send-request/create-request-operation.js +8 -8
  70. package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
  71. package/dist/libs/validate-parameters.d.ts +10 -2
  72. package/dist/libs/validate-parameters.d.ts.map +1 -1
  73. package/dist/libs/validate-parameters.js +13 -6
  74. package/dist/plugins/plugin-manager.d.ts +1 -1
  75. package/dist/routes.d.ts +3 -184
  76. package/dist/routes.d.ts.map +1 -1
  77. package/dist/routes.js +6 -6
  78. package/dist/store/active-entities.d.ts +3 -3
  79. package/dist/store/active-entities.d.ts.map +1 -1
  80. package/dist/store/active-entities.js +2 -2
  81. package/dist/store/requests.d.ts +22 -22
  82. package/dist/store/router-params.d.ts.map +1 -1
  83. package/dist/store/store.d.ts +20 -20
  84. package/dist/style.css +1 -1
  85. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
  86. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +1 -1
  87. package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
  88. package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
  89. package/dist/v2/blocks/operation-code-sample/index.js +8 -6
  90. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +5 -5
  91. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  92. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  93. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +3 -3
  94. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +3 -4
  95. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +1 -0
  96. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
  97. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -2
  98. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +7 -8
  99. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +44 -55
  100. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +16 -18
  101. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +41 -46
  102. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  103. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +3 -0
  104. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
  105. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
  106. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +201 -187
  107. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
  108. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +8 -10
  109. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +2 -3
  110. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +2 -4
  111. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +14 -16
  112. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +3 -0
  113. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
  114. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
  115. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +87 -85
  116. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +10 -11
  117. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +4 -5
  118. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +1 -1
  119. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +3 -3
  120. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +1 -1
  121. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +5 -5
  122. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +9 -10
  123. package/dist/v2/components/TempReplaceMe.vue.d.ts +3 -0
  124. package/dist/v2/components/TempReplaceMe.vue.d.ts.map +1 -0
  125. package/dist/v2/components/TempReplaceMe.vue.js +12 -0
  126. package/dist/v2/components/resize/Resize.vue.d.ts +20 -0
  127. package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -0
  128. package/dist/v2/components/resize/Resize.vue.js +8 -0
  129. package/dist/v2/components/resize/Resize.vue2.js +36 -0
  130. package/dist/v2/components/resize/index.d.ts +3 -0
  131. package/dist/v2/components/resize/index.d.ts.map +1 -0
  132. package/dist/v2/components/resize/index.js +4 -0
  133. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +39 -0
  134. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -0
  135. package/dist/v2/components/sidebar/Sidebar.vue.js +95 -0
  136. package/dist/v2/components/sidebar/Sidebar.vue2.js +4 -0
  137. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +13 -0
  138. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -0
  139. package/dist/v2/components/sidebar/SidebarMenu.vue.js +63 -0
  140. package/dist/v2/components/sidebar/SidebarMenu.vue2.js +4 -0
  141. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts +10 -0
  142. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts.map +1 -0
  143. package/dist/v2/components/sidebar/SidebarToggle.vue.js +52 -0
  144. package/dist/v2/components/sidebar/SidebarToggle.vue2.js +4 -0
  145. package/dist/v2/components/sidebar/index.d.ts +4 -0
  146. package/dist/v2/components/sidebar/index.d.ts.map +1 -0
  147. package/dist/v2/components/sidebar/index.js +8 -0
  148. package/dist/v2/features/app/App.vue.d.ts +16 -0
  149. package/dist/v2/features/app/App.vue.d.ts.map +1 -0
  150. package/dist/v2/features/app/App.vue.js +72 -0
  151. package/dist/v2/features/app/App.vue3.js +5 -0
  152. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +30 -0
  153. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -0
  154. package/dist/v2/features/app/components/AppSidebar.vue.js +7 -0
  155. package/dist/v2/features/app/components/AppSidebar.vue2.js +117 -0
  156. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +3 -0
  157. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -0
  158. package/dist/v2/features/app/components/DesktopTabs.vue.js +14 -0
  159. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts +3 -0
  160. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -0
  161. package/dist/v2/features/app/components/DownloadAppButton.vue.js +7 -0
  162. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +19 -0
  163. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +16 -0
  164. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -0
  165. package/dist/v2/features/app/components/WebTopNav.vue.js +28 -0
  166. package/dist/v2/features/app/components/WebTopNav.vue2.js +4 -0
  167. package/dist/v2/features/app/components/index.d.ts +2 -0
  168. package/dist/v2/features/app/components/index.d.ts.map +1 -0
  169. package/dist/v2/features/app/components/index.js +5 -0
  170. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +25 -0
  171. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -0
  172. package/dist/v2/features/app/helpers/create-api-client-app.js +21 -0
  173. package/dist/v2/features/app/helpers/routes.d.ts +103 -0
  174. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -0
  175. package/dist/v2/features/app/helpers/routes.js +115 -0
  176. package/dist/v2/features/app/index.d.ts +2 -0
  177. package/dist/v2/features/app/index.d.ts.map +1 -0
  178. package/dist/v2/features/app/index.js +4 -0
  179. package/dist/v2/features/collection/DocumentCollection.test.d.ts +2 -0
  180. package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +1 -0
  181. package/dist/v2/features/collection/DocumentCollection.vue.d.ts +12 -0
  182. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -0
  183. package/dist/v2/features/collection/DocumentCollection.vue.js +4 -0
  184. package/dist/v2/features/collection/DocumentCollection.vue2.js +82 -0
  185. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts +2 -0
  186. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts.map +1 -0
  187. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +10 -0
  188. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -0
  189. package/dist/v2/features/collection/WorkspaceCollection.vue.js +4 -0
  190. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +38 -0
  191. package/dist/v2/features/collection/components/Authentication.test.d.ts +2 -0
  192. package/dist/v2/features/collection/components/Authentication.test.d.ts.map +1 -0
  193. package/dist/v2/features/collection/components/Authentication.vue.d.ts +48 -0
  194. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -0
  195. package/dist/v2/features/collection/components/Authentication.vue.js +7 -0
  196. package/dist/v2/features/collection/components/Authentication.vue2.js +50 -0
  197. package/dist/v2/features/collection/components/Cookies.vue.d.ts +3 -0
  198. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -0
  199. package/dist/v2/features/collection/components/Cookies.vue.js +9 -0
  200. package/dist/v2/features/collection/components/Environment.test.d.ts +2 -0
  201. package/dist/v2/features/collection/components/Environment.test.d.ts.map +1 -0
  202. package/dist/v2/features/collection/components/Environment.vue.d.ts +89 -0
  203. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -0
  204. package/dist/v2/features/collection/components/Environment.vue.js +4 -0
  205. package/dist/v2/features/collection/components/Environment.vue2.js +34 -0
  206. package/dist/v2/features/collection/components/Form.vue.d.ts +29 -0
  207. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -0
  208. package/dist/v2/features/collection/components/Form.vue.js +83 -0
  209. package/dist/v2/features/collection/components/Form.vue2.js +4 -0
  210. package/dist/v2/features/collection/components/LabelInput.test.d.ts +2 -0
  211. package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +1 -0
  212. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +10 -0
  213. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -0
  214. package/dist/v2/features/collection/components/LabelInput.vue.js +7 -0
  215. package/dist/v2/features/collection/components/LabelInput.vue2.js +29 -0
  216. package/dist/v2/features/collection/components/Overview.test.d.ts +2 -0
  217. package/dist/v2/features/collection/components/Overview.test.d.ts.map +1 -0
  218. package/dist/v2/features/collection/components/Overview.vue.d.ts +14 -0
  219. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -0
  220. package/dist/v2/features/collection/components/Overview.vue.js +4 -0
  221. package/dist/v2/features/collection/components/Overview.vue2.js +91 -0
  222. package/dist/v2/features/collection/components/Servers.test.d.ts +2 -0
  223. package/dist/v2/features/collection/components/Servers.test.d.ts.map +1 -0
  224. package/dist/v2/features/collection/components/Servers.vue.d.ts +33 -0
  225. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -0
  226. package/dist/v2/features/collection/components/Servers.vue.js +4 -0
  227. package/dist/v2/features/collection/components/Servers.vue2.js +120 -0
  228. package/dist/v2/features/collection/components/Settings.test.d.ts +2 -0
  229. package/dist/v2/features/collection/components/Settings.test.d.ts.map +1 -0
  230. package/dist/v2/features/collection/components/Settings.vue.d.ts +17 -0
  231. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -0
  232. package/dist/v2/features/collection/components/Settings.vue.js +7 -0
  233. package/dist/v2/features/collection/components/Settings.vue2.js +100 -0
  234. package/dist/v2/features/collection/components/Tabs.test.d.ts +2 -0
  235. package/dist/v2/features/collection/components/Tabs.test.d.ts.map +1 -0
  236. package/dist/v2/features/collection/components/Tabs.vue.d.ts +6 -0
  237. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -0
  238. package/dist/v2/features/collection/components/Tabs.vue.js +46 -0
  239. package/dist/v2/features/collection/components/Tabs.vue2.js +4 -0
  240. package/dist/v2/features/environments/Environments.test.d.ts +2 -0
  241. package/dist/v2/features/environments/Environments.test.d.ts.map +1 -0
  242. package/dist/v2/features/environments/Environments.vue.d.ts +31 -0
  243. package/dist/v2/features/environments/Environments.vue.d.ts.map +1 -0
  244. package/dist/v2/features/environments/Environments.vue.js +65 -0
  245. package/dist/v2/features/environments/Environments.vue2.js +4 -0
  246. package/dist/v2/features/environments/EnvironmentsList.test.d.ts +2 -0
  247. package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +1 -0
  248. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +98 -0
  249. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -0
  250. package/dist/v2/features/environments/EnvironmentsList.vue.js +114 -0
  251. package/dist/v2/features/environments/EnvironmentsList.vue2.js +4 -0
  252. package/dist/v2/features/environments/components/Environment.test.d.ts +2 -0
  253. package/dist/v2/features/environments/components/Environment.test.d.ts.map +1 -0
  254. package/dist/v2/features/environments/components/Environment.vue.d.ts +70 -0
  255. package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -0
  256. package/dist/v2/features/environments/components/Environment.vue.js +104 -0
  257. package/dist/v2/features/environments/components/Environment.vue2.js +4 -0
  258. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts +20 -0
  259. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts.map +1 -0
  260. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.js +48 -0
  261. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue2.js +4 -0
  262. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +2 -0
  263. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +1 -0
  264. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts +10 -0
  265. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -0
  266. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +97 -0
  267. package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +4 -0
  268. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +19 -0
  269. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -0
  270. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +63 -0
  271. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +4 -0
  272. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +14 -0
  273. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -0
  274. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +53 -0
  275. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +4 -0
  276. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts +18 -0
  277. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts.map +1 -0
  278. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.js +35 -0
  279. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue2.js +4 -0
  280. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +2 -0
  281. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +1 -0
  282. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +23 -0
  283. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -0
  284. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +7 -0
  285. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +122 -0
  286. package/dist/v2/features/environments/index.d.ts +5 -0
  287. package/dist/v2/features/environments/index.d.ts.map +1 -0
  288. package/dist/v2/features/environments/index.js +6 -0
  289. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +2 -0
  290. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +1 -0
  291. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +25 -0
  292. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -0
  293. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +7 -0
  294. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +156 -0
  295. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +2 -0
  296. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +1 -0
  297. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +32 -0
  298. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +1 -0
  299. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +7 -0
  300. package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +58 -0
  301. package/dist/v2/features/global-cookies/index.d.ts +2 -0
  302. package/dist/v2/features/global-cookies/index.d.ts.map +1 -0
  303. package/dist/v2/features/global-cookies/index.js +4 -0
  304. package/dist/v2/features/modal/Modal.vue.d.ts +16 -0
  305. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -0
  306. package/dist/v2/features/modal/Modal.vue.js +7 -0
  307. package/dist/v2/features/modal/Modal.vue2.js +81 -0
  308. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +53 -0
  309. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -0
  310. package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -0
  311. package/dist/v2/features/modal/index.d.ts +2 -0
  312. package/dist/v2/features/modal/index.d.ts.map +1 -0
  313. package/dist/v2/features/modal/index.js +4 -0
  314. package/dist/v2/features/operation/Operation.test.d.ts +2 -0
  315. package/dist/v2/features/operation/Operation.test.d.ts.map +1 -0
  316. package/dist/v2/features/operation/Operation.vue.d.ts +79 -0
  317. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -0
  318. package/dist/v2/features/operation/Operation.vue.js +124 -0
  319. package/dist/v2/features/operation/Operation.vue2.js +4 -0
  320. package/dist/v2/features/operation/components/Header.test.d.ts +2 -0
  321. package/dist/v2/features/operation/components/Header.test.d.ts.map +1 -0
  322. package/dist/v2/features/operation/components/Header.vue.d.ts +85 -0
  323. package/dist/v2/features/operation/components/Header.vue.d.ts.map +1 -0
  324. package/dist/v2/features/operation/components/Header.vue.js +7 -0
  325. package/dist/v2/features/operation/components/Header.vue2.js +97 -0
  326. package/dist/v2/features/operation/index.d.ts +3 -0
  327. package/dist/v2/features/operation/index.d.ts.map +1 -0
  328. package/dist/v2/features/operation/index.js +4 -0
  329. package/dist/v2/features/settings/Settings.test.d.ts +2 -0
  330. package/dist/v2/features/settings/Settings.test.d.ts.map +1 -0
  331. package/dist/v2/features/settings/Settings.vue.d.ts +22 -0
  332. package/dist/v2/features/settings/Settings.vue.d.ts.map +1 -0
  333. package/dist/v2/features/settings/Settings.vue.js +268 -0
  334. package/dist/v2/features/settings/Settings.vue2.js +4 -0
  335. package/dist/v2/features/settings/components/Appearance.vue.d.ts +10 -0
  336. package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -0
  337. package/dist/v2/features/settings/components/Appearance.vue.js +88 -0
  338. package/dist/v2/features/settings/components/Appearance.vue2.js +4 -0
  339. package/dist/v2/features/settings/components/Section.vue.d.ts +14 -0
  340. package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -0
  341. package/dist/v2/features/settings/components/Section.vue.js +24 -0
  342. package/dist/v2/features/settings/components/Section.vue2.js +4 -0
  343. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +9 -0
  344. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -0
  345. package/dist/v2/features/settings/helpers/get-theme-colors.js +17 -0
  346. package/dist/v2/features/settings/index.d.ts +2 -0
  347. package/dist/v2/features/settings/index.d.ts.map +1 -0
  348. package/dist/v2/features/settings/index.js +4 -0
  349. package/dist/v2/hooks/use-document-watcher.d.ts +28 -0
  350. package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -0
  351. package/dist/v2/hooks/use-document-watcher.test.d.ts +2 -0
  352. package/dist/v2/hooks/use-document-watcher.test.d.ts.map +1 -0
  353. package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -0
  354. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -0
  355. package/dist/v2/hooks/use-workspace-client-events.js +13 -0
  356. package/dist/v2/plugins.d.ts +44 -0
  357. package/dist/v2/plugins.d.ts.map +1 -0
  358. package/dist/v2/types/layout.d.ts +10 -0
  359. package/dist/v2/types/layout.d.ts.map +1 -0
  360. package/dist/views/Collection/Collection.vue2.js +6 -6
  361. package/dist/views/Collection/CollectionCookies.vue2.js +3 -3
  362. package/dist/views/Collection/CollectionEnvironment.vue2.js +12 -13
  363. package/dist/views/Collection/CollectionScripts.vue2.js +3 -3
  364. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
  365. package/dist/views/Collection/CollectionServerForm.vue.js +42 -62
  366. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
  367. package/dist/views/Collection/CollectionServers.vue2.js +43 -50
  368. package/dist/views/Collection/CollectionSettings.vue.js +2 -2
  369. package/dist/views/Collection/CollectionSettings.vue2.js +5 -6
  370. package/dist/views/Collection/CollectionSync.vue2.js +3 -3
  371. package/dist/views/Collection/components/EnvironmentForm.vue2.js +10 -12
  372. package/dist/views/Collection/components/MarkdownInput.vue2.js +2 -4
  373. package/dist/views/Cookies/CookieModal.vue2.js +6 -6
  374. package/dist/views/Cookies/Cookies.vue2.js +6 -6
  375. package/dist/views/Environment/Environment.vue2.js +5 -6
  376. package/dist/views/Environment/EnvironmentModal.vue.js +13 -14
  377. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +8 -9
  378. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  379. package/dist/views/Request/RequestRoot.vue.js +2 -2
  380. package/dist/views/Request/RequestRoot.vue2.js +79 -80
  381. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +10 -11
  382. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -55
  383. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +10 -12
  384. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
  385. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +39 -44
  386. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  387. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  388. package/dist/views/Request/RequestSection/RequestBody.vue2.js +96 -78
  389. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +3 -3
  390. package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -3
  391. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  392. package/dist/views/Request/RequestSection/RequestSection.vue2.js +55 -55
  393. package/dist/views/Request/RequestSection/RequestTable.vue2.js +15 -17
  394. package/dist/views/Request/RequestSidebar.vue2.js +7 -8
  395. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  396. package/dist/views/Request/RequestSidebarItem.vue2.js +31 -32
  397. package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
  398. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -16
  399. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +11 -13
  400. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +4 -5
  401. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -5
  402. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
  403. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
  404. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +4 -4
  405. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +11 -13
  406. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +7 -8
  407. package/dist/views/Request/components/WorkspaceDropdown.vue.js +11 -14
  408. package/dist/views/Request/libs/oauth2.d.ts +1 -1
  409. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  410. package/dist/views/Settings/SettingsGeneral.vue.js +40 -42
  411. package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -11
  412. package/package.json +52 -27
  413. package/dist/hooks/useKeyMap.d.ts +0 -2
  414. package/dist/hooks/useKeyMap.d.ts.map +0 -1
  415. package/dist/hooks/useKeyMap.js +0 -9
  416. package/dist/router.d.ts +0 -8
  417. package/dist/router.d.ts.map +0 -1
  418. package/dist/router.js +0 -20
@@ -1,4 +1,4 @@
1
- import { defineComponent as ee, ref as f, computed as z, watch as te, onMounted as oe, onBeforeUnmount as ne, createBlock as N, openBlock as l, unref as i, withCtx as R, createElementVNode as v, createVNode as k, createElementBlock as c, createTextVNode as U, createCommentVNode as ae, withKeys as A, withModifiers as S, Fragment as T, renderList as V, withDirectives as le, toDisplayString as O, vShow as re, normalizeClass as se, resolveDynamicComponent as me, mergeProps as ie, nextTick as g } from "vue";
1
+ import { defineComponent as ee, ref as f, computed as z, watch as te, onMounted as oe, onBeforeUnmount as ne, createBlock as N, openBlock as l, unref as i, withCtx as R, createElementVNode as v, createVNode as k, createElementBlock as c, createTextVNode as U, createCommentVNode as ae, withKeys as A, withModifiers as S, Fragment as T, renderList as V, withDirectives as le, toDisplayString as O, vShow as re, normalizeClass as se, resolveDynamicComponent as me, mergeProps as ie, nextTick as _ } from "vue";
2
2
  import { Dialog as ce, DialogPanel as ue, DialogTitle as de } from "@headlessui/vue";
3
3
  import { useModal as pe, ScalarIcon as D } from "@scalar/components";
4
4
  import { useRouter as fe } from "vue-router";
@@ -8,9 +8,9 @@ import { PathId as L } from "../../routes.js";
8
8
  import { useActiveEntities as he } from "../../store/active-entities.js";
9
9
  import ke from "./CommandPaletteCollection.vue.js";
10
10
  import xe from "./CommandPaletteExample.vue.js";
11
- import _e from "./CommandPaletteImport.vue.js";
12
- import ye from "./CommandPaletteImportCurl.vue.js";
13
- import ge from "./CommandPaletteServer.vue.js";
11
+ import ye from "./CommandPaletteImport.vue.js";
12
+ import ge from "./CommandPaletteImportCurl.vue.js";
13
+ import _e from "./CommandPaletteServer.vue.js";
14
14
  import be from "./CommandPaletteTag.vue.js";
15
15
  import we from "./CommandPaletteWorkspace.vue.js";
16
16
  import { useWorkspace as Pe } from "../../store/store.js";
@@ -26,14 +26,14 @@ const Ie = {
26
26
  }, Ee = {
27
27
  name: "TheCommandPalette"
28
28
  }, We = {
29
- "Import from OpenAPI/Swagger/Postman/cURL": _e,
29
+ "Import from OpenAPI/Swagger/Postman/cURL": ye,
30
30
  "Create Request": "",
31
31
  "Create Workspace": we,
32
32
  "Add Tag": be,
33
- "Add Server": ge,
33
+ "Add Server": _e,
34
34
  "Create Collection": ke,
35
35
  "Add Example": xe,
36
- "Import from cURL": ye
36
+ "Import from cURL": ge
37
37
  }, Ye = /* @__PURE__ */ ee({
38
38
  ...Ee,
39
39
  setup(qe) {
@@ -121,7 +121,7 @@ const Ie = {
121
121
  ), d = () => {
122
122
  C.hide(), r.value = "", s.value = null, m.value = -1;
123
123
  }, j = (e) => {
124
- r.value !== "" && e?.preventDefault(), s.value = null, g(() => _.value?.focus());
124
+ r.value !== "" && e?.preventDefault(), s.value = null, _(() => y.value?.focus());
125
125
  }, q = (e) => {
126
126
  if ("path" in e)
127
127
  b.push(e.path), d();
@@ -137,7 +137,7 @@ const Ie = {
137
137
  workspace: x.value?.uid,
138
138
  request: o.uid
139
139
  }
140
- }), d(), g(() => {
140
+ }), d(), _(() => {
141
141
  u.hotKeys.emit({
142
142
  focusAddressBar: new KeyboardEvent("keydown", { key: "l" })
143
143
  });
@@ -146,11 +146,11 @@ const Ie = {
146
146
  d();
147
147
  } else
148
148
  s.value = e.name;
149
- }, _ = f(), M = ({
149
+ }, y = f(), M = ({
150
150
  commandName: e,
151
151
  metaData: t
152
152
  } = {}) => {
153
- s.value = e ?? null, w.value = t, C.show(), g(() => _.value?.focus());
153
+ s.value = e ?? null, w.value = t, C.show(), _(() => y.value?.focus());
154
154
  };
155
155
  te(r, (e) => {
156
156
  e && h.value.length > 0 && (m.value = 0);
@@ -159,8 +159,8 @@ const Ie = {
159
159
  if (!C.open) return;
160
160
  t.preventDefault();
161
161
  const o = e === "up" ? -1 : 1, n = h.value.length;
162
- m.value = (m.value + o + n) % n, g(() => {
163
- const a = _.value?.closest(".custom-scroll");
162
+ m.value = (m.value + o + n) % n, _(() => {
163
+ const a = y.value?.closest(".custom-scroll");
164
164
  if (!a) return;
165
165
  if (m.value === 0) {
166
166
  a.scrollTop = 0;
@@ -168,8 +168,8 @@ const Ie = {
168
168
  }
169
169
  const p = W.value[m.value];
170
170
  if (!p) return;
171
- const y = (a.querySelector(".sticky")?.clientHeight || 0) + 16, K = 6, I = p.offsetTop, $ = I + p.clientHeight, Y = a.scrollTop + y, Z = a.scrollTop + a.clientHeight - K;
172
- I < Y ? a.scrollTop = I - y : $ > Z && (a.scrollTop = $ - a.clientHeight + K);
171
+ const g = (a.querySelector(".sticky")?.clientHeight || 0) + 16, K = 6, I = p.offsetTop, $ = I + p.clientHeight, Y = a.scrollTop + g, Z = a.scrollTop + a.clientHeight - K;
172
+ I < Y ? a.scrollTop = I - g : $ > Z && (a.scrollTop = $ - a.clientHeight + K);
173
173
  });
174
174
  }, P = z(
175
175
  () => h.value[m.value]
@@ -203,11 +203,10 @@ const Ie = {
203
203
  k(i(ue), { class: "commandmenu z-overlay flex flex-col" }, {
204
204
  default: R(() => [
205
205
  k(i(de), { class: "sr-only" }, {
206
- default: R(() => t[6] || (t[6] = [
207
- U("API Client Command Menu")
208
- ])),
209
- _: 1,
210
- __: [6]
206
+ default: R(() => [...t[6] || (t[6] = [
207
+ U("API Client Command Menu", -1)
208
+ ])]),
209
+ _: 1
211
210
  }),
212
211
  s.value ? (l(), c("div", Le, [
213
212
  v("button", {
@@ -238,7 +237,7 @@ const Ie = {
238
237
  v("input", {
239
238
  id: "commandmenu",
240
239
  ref_key: "commandInputRef",
241
- ref: _,
240
+ ref: y,
242
241
  autocomplete: "off",
243
242
  autofocus: "",
244
243
  class: "w-full rounded border-none bg-none py-1.5 text-sm focus:outline-none",
@@ -272,7 +271,7 @@ const Ie = {
272
271
  ref: (a) => {
273
272
  if (a) {
274
273
  const p = h.value.findIndex(
275
- (y) => y.name === n.name
274
+ (g) => g.name === n.name
276
275
  );
277
276
  p !== -1 && (W.value[p] = a);
278
277
  }
@@ -297,8 +296,7 @@ const Ie = {
297
296
  _: 1
298
297
  })
299
298
  ]),
300
- _: 1,
301
- __: [7]
299
+ _: 1
302
300
  }, 8, ["open"]));
303
301
  }
304
302
  });
@@ -23,7 +23,7 @@ const N = /* @__PURE__ */ c({
23
23
  icon: "Watch",
24
24
  size: "sm"
25
25
  }),
26
- t[1] || (t[1] = g(" Watch Mode "))
26
+ t[1] || (t[1] = g(" Watch Mode ", -1))
27
27
  ], 2),
28
28
  d(s(b), {
29
29
  id: "watch-toggle",
@@ -46,7 +46,7 @@ const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly
46
46
  onClick: b
47
47
  }, [
48
48
  p(e.$slots, "default", {}, void 0, !0),
49
- l[5] || (l[5] = O(": "))
49
+ l[5] || (l[5] = O(": ", -1))
50
50
  ], 8, T)) : u("", !0),
51
51
  I("div", N, [
52
52
  n.enum && n.enum.length ? (a(), s(F, {
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, computed as m, ref as V, watch as _, nextTick as E, createElementBlock as f, openBlock as o, createBlock as v, withDirectives as K, unref as a, withCtx as s, createVNode as n, createElementVNode as i, toDisplayString as y, withKeys as M, vModelText as R, createCommentVNode as S, Fragment as C, renderList as U, normalizeClass as $ } from "vue";
1
+ import { defineComponent as T, computed as m, ref as V, watch as S, nextTick as E, createElementBlock as f, openBlock as o, createBlock as v, withDirectives as K, unref as a, withCtx as s, createVNode as n, createElementVNode as i, toDisplayString as y, withKeys as M, vModelText as R, createCommentVNode as C, Fragment as _, renderList as U, normalizeClass as $ } from "vue";
2
2
  import { ScalarComboboxMultiselect as F, ScalarButton as b, ScalarIcon as h, ScalarDropdown as L, ScalarDropdownItem as D, ScalarDropdownDivider as W } from "@scalar/components";
3
3
  const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline" }, G = { class: "text-c-1 whitespace-nowrap" }, H = { class: "text-c-1 overflow-hidden text-ellipsis" }, J = { class: "overflow-hidden text-ellipsis" }, P = { class: "flex h-4 w-4 items-center justify-center" }, Z = /* @__PURE__ */ T({
4
4
  __name: "DataTableInputSelect",
@@ -12,7 +12,7 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
12
12
  emits: ["update:modelValue"],
13
13
  setup(z, { emit: B }) {
14
14
  const u = z, c = B, p = m(() => u.value ?? []), d = V(!1), r = V(""), x = V(null);
15
- _(r, (e) => {
15
+ S(r, (e) => {
16
16
  c("update:modelValue", e);
17
17
  });
18
18
  const g = (e) => {
@@ -22,7 +22,7 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
22
22
  }, A = () => {
23
23
  r.value.trim() || c("update:modelValue", ""), d.value = !1;
24
24
  }, I = (e) => u.modelValue.toString() === e;
25
- _(d, (e) => {
25
+ S(d, (e) => {
26
26
  e && E(() => {
27
27
  x.value?.focus();
28
28
  });
@@ -79,7 +79,7 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
79
79
  value: k.value
80
80
  }, {
81
81
  items: s(() => [
82
- (o(!0), f(C, null, U(p.value, (t) => (o(), v(a(D), {
82
+ (o(!0), f(_, null, U(p.value, (t) => (o(), v(a(D), {
83
83
  key: t,
84
84
  class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
85
85
  value: t,
@@ -102,8 +102,8 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
102
102
  ]),
103
103
  _: 2
104
104
  }, 1032, ["value", "onClick"]))), 128)),
105
- e.canAddCustomValue ? (o(), f(C, { key: 0 }, [
106
- p.value.length ? (o(), v(a(W), { key: 0 })) : S("", !0),
105
+ e.canAddCustomValue ? (o(), f(_, { key: 0 }, [
106
+ p.value.length ? (o(), v(a(W), { key: 0 })) : C("", !0),
107
107
  n(a(D), {
108
108
  class: "flex items-center gap-1.5",
109
109
  onClick: l[1] || (l[1] = (t) => d.value = !0)
@@ -117,10 +117,9 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
117
117
  ]),
118
118
  l[2] || (l[2] = i("span", null, "Add value", -1))
119
119
  ]),
120
- _: 1,
121
- __: [2]
120
+ _: 1
122
121
  })
123
- ], 64)) : S("", !0)
122
+ ], 64)) : C("", !0)
124
123
  ]),
125
124
  default: s(() => [
126
125
  n(a(b), {
@@ -1,5 +1,5 @@
1
- import { defineComponent as B, computed as E, watch as h, onMounted as D, createBlock as v, openBlock as s, unref as n, withCtx as r, createVNode as l, createElementVNode as d, toDisplayString as g, createElementBlock as L, createCommentVNode as M, Fragment as V, renderList as j, withModifiers as w, createTextVNode as _ } from "vue";
2
- import { ScalarDropdown as W, ScalarButton as T, ScalarDropdownItem as p, ScalarListboxCheckbox as k, ScalarDropdownDivider as $, ScalarIcon as z } from "@scalar/components";
1
+ import { defineComponent as B, computed as E, watch as h, onMounted as D, createBlock as v, openBlock as s, unref as n, withCtx as r, createVNode as l, createElementVNode as d, toDisplayString as g, createElementBlock as L, createCommentVNode as M, Fragment as V, renderList as j, withModifiers as w, createTextVNode as k } from "vue";
2
+ import { ScalarDropdown as W, ScalarButton as T, ScalarDropdownItem as p, ScalarListboxCheckbox as _, ScalarDropdownDivider as $, ScalarIcon as z } from "@scalar/components";
3
3
  import { useRouter as A } from "vue-router";
4
4
  import { PathId as F } from "../../routes.js";
5
5
  import { useActiveEntities as O } from "../../store/active-entities.js";
@@ -56,10 +56,10 @@ const q = { class: "m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"
56
56
  onClick: w((x) => m(a.uid), ["stop"])
57
57
  }, {
58
58
  default: r(() => [
59
- l(n(k), {
59
+ l(n(_), {
60
60
  selected: n(o)?.["x-scalar-active-environment"] === a.uid
61
61
  }, null, 8, ["selected"]),
62
- _(" " + g(a.name), 1)
62
+ k(" " + g(a.name), 1)
63
63
  ]),
64
64
  _: 2
65
65
  }, 1032, ["onClick"]))), 128)),
@@ -68,13 +68,12 @@ const q = { class: "m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"
68
68
  onClick: e[0] || (e[0] = w((a) => m(""), ["stop"]))
69
69
  }, {
70
70
  default: r(() => [
71
- l(n(k), {
71
+ l(n(_), {
72
72
  selected: n(c)?.uid === "" && n(o)?.["x-scalar-active-environment"] === "" || n(c)?.name === "No Environment"
73
73
  }, null, 8, ["selected"]),
74
- e[1] || (e[1] = _(" No Environment "))
74
+ e[1] || (e[1] = k(" No Environment ", -1))
75
75
  ]),
76
- _: 1,
77
- __: [1]
76
+ _: 1
78
77
  }),
79
78
  l(n($)),
80
79
  n(C) !== "modal" ? (s(), v(n(p), {
@@ -91,8 +90,7 @@ const q = { class: "m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"
91
90
  ]),
92
91
  e[2] || (e[2] = d("span", { class: "leading-none" }, "Manage Environments", -1))
93
92
  ]),
94
- _: 1,
95
- __: [2]
93
+ _: 1
96
94
  })) : M("", !0)
97
95
  ]),
98
96
  default: r(() => [
@@ -4,9 +4,9 @@ type __VLS_Props = {
4
4
  isEditable?: boolean;
5
5
  };
6
6
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
- change: (value: "delete" | "get" | "connect" | "head" | "options" | "patch" | "post" | "put" | "trace") => any;
7
+ change: (value: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace") => any;
8
8
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- onChange?: ((value: "delete" | "get" | "connect" | "head" | "options" | "patch" | "post" | "put" | "trace") => any) | undefined;
9
+ onChange?: ((value: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace") => any) | undefined;
10
10
  }>, {
11
11
  isEditable: boolean;
12
12
  isSquare: boolean;
@@ -30,7 +30,7 @@ const G = { class: "flex text-sm" }, L = { class: "bg-b-1 custom-scroll grid w-d
30
30
  a(e(m), { class: "text-c-2 px-1 py-1" }, {
31
31
  default: o(() => [
32
32
  u(l.$slots, "title", {}, () => [
33
- r[1] || (r[1] = p("Select an icon"))
33
+ r[1] || (r[1] = p("Select an icon", -1))
34
34
  ])
35
35
  ]),
36
36
  _: 3
@@ -10,30 +10,30 @@ const A = {
10
10
  const l = v, a = y(!1);
11
11
  let o = 0;
12
12
  x(() => {
13
- document.addEventListener("dragenter", m), document.addEventListener("dragleave", f), document.addEventListener("dragover", u), document.addEventListener("drop", c);
13
+ document.addEventListener("dragenter", m), document.addEventListener("dragleave", f), document.addEventListener("dragover", c), document.addEventListener("drop", u);
14
14
  }), h(() => {
15
- document.removeEventListener("dragenter", m), document.removeEventListener("dragover", u), document.removeEventListener("dragleave", f), document.removeEventListener("drop", c);
15
+ document.removeEventListener("dragenter", m), document.removeEventListener("dragover", c), document.removeEventListener("dragleave", f), document.removeEventListener("drop", u);
16
16
  });
17
17
  function d(e) {
18
18
  return e.dataTransfer?.types.includes("text/html") ?? !1;
19
19
  }
20
- async function c(e) {
20
+ function u(e) {
21
21
  if (e.preventDefault(), a.value = !1, o = 0, !d(e) && e.dataTransfer) {
22
22
  const t = e.dataTransfer.getData("text").replace(/^blob:/, "");
23
23
  if (t)
24
24
  l("input", t, null, "drop");
25
25
  else if (e.dataTransfer.files.length > 0) {
26
- const r = e.dataTransfer.files[0];
27
- if (!r)
26
+ const n = e.dataTransfer.files[0];
27
+ if (!n)
28
28
  return;
29
- const n = new FileReader();
30
- n.onload = async (i) => {
29
+ const r = new FileReader();
30
+ r.onload = (i) => {
31
31
  i.target && typeof i.target.result == "string" && l("input", i.target.result, null, "drop");
32
- }, n.readAsText(r);
32
+ }, r.readAsText(n);
33
33
  }
34
34
  }
35
35
  }
36
- function u(e) {
36
+ function c(e) {
37
37
  e.preventDefault();
38
38
  }
39
39
  function f(e) {
@@ -43,9 +43,9 @@ const A = {
43
43
  if (e.preventDefault(), o++, !d(e)) {
44
44
  if (e.dataTransfer) {
45
45
  const t = e.dataTransfer.items;
46
- for (let r = 0; r < t.length; r++) {
47
- const n = t[r];
48
- if (n?.kind === "string" || n?.type?.includes("json") || n?.type?.includes("yml") || n?.type?.includes("yaml")) {
46
+ for (let n = 0; n < t.length; n++) {
47
+ const r = t[n];
48
+ if (r?.kind === "string" || r?.type?.includes("json") || r?.type?.includes("yml") || r?.type?.includes("yaml")) {
49
49
  a.value = !0;
50
50
  return;
51
51
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as I, ref as u, createElementBlock as k, openBlock as y, Fragment as w, createVNode as r, renderSlot as g, nextTick as h } from "vue";
1
+ import { defineComponent as I, ref as u, createElementBlock as k, openBlock as w, Fragment as y, createVNode as r, renderSlot as g, nextTick as h } from "vue";
2
2
  import { useToasts as C } from "@scalar/use-toasts";
3
3
  import { useRouter as T } from "vue-router";
4
4
  import { workspaceStoreIsEmpty as $ } from "./utils/workspace-store-is-empty.js";
@@ -26,7 +26,7 @@ const J = /* @__PURE__ */ I({
26
26
  n.value = e, s.value = t, i.value = o;
27
27
  }
28
28
  const f = T(), { activeWorkspace: p } = q(), { toast: l } = C();
29
- async function d(e) {
29
+ function d(e) {
30
30
  return e ? new Promise((t) => {
31
31
  B({
32
32
  store: c,
@@ -36,20 +36,20 @@ const J = /* @__PURE__ */ I({
36
36
  watchMode: !0,
37
37
  onSuccess(o) {
38
38
  if (o) {
39
- _(o), l("Import successful", "info"), t(!0);
39
+ v(o), l("Import successful", "info"), t(!0);
40
40
  return;
41
41
  }
42
42
  l("Import failed: No collection was created", "error"), t(!1);
43
43
  },
44
44
  onError(o) {
45
45
  console.error("[importCollection]", o);
46
- const v = o?.message || "Unknown error";
47
- l(`Import failed: ${v}`, "error"), t(!1);
46
+ const _ = o?.message || "Unknown error";
47
+ l(`Import failed: ${_}`, "error"), t(!1);
48
48
  }
49
49
  });
50
- }) : !1;
50
+ }) : Promise.resolve(!1);
51
51
  }
52
- function _(e) {
52
+ function v(e) {
53
53
  e && f.push({
54
54
  name: "request",
55
55
  params: {
@@ -58,7 +58,7 @@ const J = /* @__PURE__ */ I({
58
58
  }
59
59
  });
60
60
  }
61
- return (e, t) => (y(), k(w, null, [
61
+ return (e, t) => (w(), k(y, null, [
62
62
  r(F, {
63
63
  eventType: i.value,
64
64
  integration: s.value,
@@ -159,7 +159,7 @@ const ue = ["innerHTML"], fe = { class: "relative flex h-screen flex-col justify
159
159
  ]),
160
160
  e("div", ge, [
161
161
  e("div", _e, [
162
- t[2] || (t[2] = k(" Import to: ")),
162
+ t[2] || (t[2] = k(" Import to: ", -1)),
163
163
  d(ae)
164
164
  ])
165
165
  ]),
@@ -1,11 +1,11 @@
1
- import { defineComponent as y, createElementBlock as C, createCommentVNode as h, openBlock as o, Fragment as v, createBlock as u, unref as a, withCtx as m, createTextVNode as c } from "vue";
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
2
  import { ScalarButton as p } from "@scalar/components";
3
3
  import { useToasts as b } from "@scalar/use-toasts";
4
4
  import { useRouter as g } from "vue-router";
5
5
  import { useActiveEntities as x } 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
- const z = /* @__PURE__ */ y({
8
+ const R = /* @__PURE__ */ C({
9
9
  __name: "ImportNowButton",
10
10
  props: {
11
11
  source: {},
@@ -15,7 +15,7 @@ const z = /* @__PURE__ */ y({
15
15
  emits: ["importFinished"],
16
16
  setup(r, { emit: l }) {
17
17
  const f = l, d = g(), k = I(), { activeWorkspace: n } = x(), { toast: s } = b();
18
- async function i() {
18
+ function i() {
19
19
  B({
20
20
  store: k,
21
21
  workspace: n.value,
@@ -40,7 +40,7 @@ const z = /* @__PURE__ */ y({
40
40
  }
41
41
  });
42
42
  }
43
- return (e, t) => e.source ? (o(), C(v, { key: 0 }, [
43
+ return (e, t) => e.source ? (o(), h(v, { key: 0 }, [
44
44
  e.variant === "button" ? (o(), u(a(p), {
45
45
  key: 0,
46
46
  class: "mt-3 h-fit w-full rounded-lg px-6 py-2.5 font-bold",
@@ -48,11 +48,10 @@ const z = /* @__PURE__ */ y({
48
48
  type: "button",
49
49
  onClick: i
50
50
  }, {
51
- default: m(() => t[0] || (t[0] = [
52
- c(" Import Collection ")
53
- ])),
54
- _: 1,
55
- __: [0]
51
+ default: m(() => [...t[0] || (t[0] = [
52
+ c(" Import Collection ", -1)
53
+ ])]),
54
+ _: 1
56
55
  })) : (o(), u(a(p), {
57
56
  key: 1,
58
57
  class: "h-fit rounded-lg px-6 py-2.5 text-[21px] font-bold",
@@ -61,15 +60,14 @@ const z = /* @__PURE__ */ y({
61
60
  variant: "ghost",
62
61
  onClick: i
63
62
  }, {
64
- default: m(() => t[1] || (t[1] = [
65
- c(" Try it in the browser ")
66
- ])),
67
- _: 1,
68
- __: [1]
63
+ default: m(() => [...t[1] || (t[1] = [
64
+ c(" Try it in the browser ", -1)
65
+ ])]),
66
+ _: 1
69
67
  }))
70
- ], 64)) : h("", !0);
68
+ ], 64)) : y("", !0);
71
69
  }
72
70
  });
73
71
  export {
74
- z as default
72
+ R as default
75
73
  };
@@ -9,7 +9,7 @@ const p = /* @__PURE__ */ r({
9
9
  }), m(() => {
10
10
  document.removeEventListener("paste", n);
11
11
  });
12
- async function n(e) {
12
+ function n(e) {
13
13
  const t = e.target, i = !!document.activeElement?.classList.contains("cm-content");
14
14
  if (!(t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable || i)) && e.clipboardData) {
15
15
  const a = e.clipboardData.getData("text");
@@ -10,7 +10,7 @@ const a = { class: "w-full text-center text-sm font-medium break-words" }, u = [
10
10
  },
11
11
  setup(p) {
12
12
  return (t, e) => (o(), n("div", a, [
13
- e[0] || (e[0] = r(" We couldn't find an OpenAPI document at the provided URL. Please download and import the ")),
13
+ e[0] || (e[0] = r(" We couldn't find an OpenAPI document at the provided URL. Please download and import the ", -1)),
14
14
  t.url && d(s)(t.url) ? (o(), n("a", {
15
15
  key: 0,
16
16
  href: t.url,
@@ -18,7 +18,7 @@ const a = { class: "w-full text-center text-sm font-medium break-words" }, u = [
18
18
  target: "_blank",
19
19
  textContent: "OpenAPI document manually"
20
20
  }, null, 8, u)) : (o(), n("span", m)),
21
- e[1] || (e[1] = r(". "))
21
+ e[1] || (e[1] = r(". ", -1))
22
22
  ]));
23
23
  }
24
24
  });
@@ -69,8 +69,7 @@ const P = { class: "flex w-[inherit] items-center text-base" }, R = { class: "m-
69
69
  ]),
70
70
  a[2] || (a[2] = t("span", null, "New Workspace", -1))
71
71
  ]),
72
- _: 1,
73
- __: [2]
72
+ _: 1
74
73
  })
75
74
  ]),
76
75
  default: o(() => [
@@ -118,11 +117,10 @@ const P = { class: "flex w-[inherit] items-center text-base" }, R = { class: "m-
118
117
  disabled: !r.value.trim(),
119
118
  type: "submit"
120
119
  }, {
121
- default: o(() => a[3] || (a[3] = [
122
- V(" Continue ")
123
- ])),
124
- _: 1,
125
- __: [3]
120
+ default: o(() => [...a[3] || (a[3] = [
121
+ V(" Continue ", -1)
122
+ ])]),
123
+ _: 1
126
124
  }, 8, ["disabled"])
127
125
  ], 32)
128
126
  ]),
@@ -41,6 +41,6 @@ export declare function useUrlPrefetcher(): {
41
41
  input: string;
42
42
  error: any;
43
43
  }>;
44
- resetPrefetchResult: () => Promise<void>;
44
+ resetPrefetchResult: () => void;
45
45
  };
46
46
  //# sourceMappingURL=useUrlPrefetcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUrlPrefetcher.d.ts","sourceRoot":"","sources":["../../../../src/components/ImportCollection/hooks/useUrlPrefetcher.ts"],"names":[],"mappings":"AAKA,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":"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"}
@@ -2,7 +2,7 @@ import { resolve as i } from "@scalar/import";
2
2
  import { redirectToProxy as f, fetchWithProxyFallback as d } from "@scalar/oas-utils/helpers";
3
3
  import { reactive as h } from "vue";
4
4
  import { isUrl as m } from "../../../libs/isUrl.js";
5
- function b() {
5
+ function v() {
6
6
  const n = h({
7
7
  state: "idle",
8
8
  content: null,
@@ -10,7 +10,7 @@ function b() {
10
10
  input: null,
11
11
  error: null
12
12
  });
13
- async function u() {
13
+ function u() {
14
14
  Object.assign(n, {
15
15
  state: "idle",
16
16
  content: null,
@@ -101,5 +101,5 @@ function b() {
101
101
  };
102
102
  }
103
103
  export {
104
- b as useUrlPrefetcher
104
+ v as useUrlPrefetcher
105
105
  };
@@ -39,7 +39,7 @@ const k = ["href"], L = /* @__PURE__ */ i({
39
39
  size: "xs",
40
40
  thickness: "2.5"
41
41
  }),
42
- o[0] || (o[0] = f(" Open API Client "))
42
+ o[0] || (o[0] = f(" Open API Client ", -1))
43
43
  ], 8, k)) : m("", !0);
44
44
  }
45
45
  });
@@ -67,8 +67,7 @@ const B = { class: "overflow-x-auto" }, W = {
67
67
  class: "text-c-2 ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100"
68
68
  })
69
69
  ]),
70
- _: 1,
71
- __: [1]
70
+ _: 1
72
71
  })
73
72
  ]),
74
73
  _: 1