@scalar/api-client 2.8.1 → 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 (403) hide show
  1. package/CHANGELOG.md +58 -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.vue2.js +22 -24
  15. package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
  16. package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
  17. package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -9
  18. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -10
  19. package/dist/components/IconSelector.vue.js +1 -1
  20. package/dist/components/ImportCollection/DropEventListener.vue.js +12 -12
  21. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +8 -8
  22. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
  23. package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -16
  24. package/dist/components/ImportCollection/PasteEventListener.vue.js +1 -1
  25. package/dist/components/ImportCollection/PrefetchError.vue.js +2 -2
  26. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +5 -7
  27. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -1
  28. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +3 -3
  30. package/dist/components/OpenApiClientButton.vue2.js +1 -1
  31. package/dist/components/Server/ServerSelector.vue.js +1 -2
  32. package/dist/components/SideNav/SideHelp.vue.js +13 -19
  33. package/dist/components/SideNav/SideNav.vue.js +4 -5
  34. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +4 -5
  35. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  36. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  37. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  38. package/dist/components/TopNav/TopNav.vue.js +8 -10
  39. package/dist/components/TopNav/TopNavItem.vue2.js +8 -12
  40. package/dist/hooks/index.d.ts +0 -1
  41. package/dist/hooks/index.d.ts.map +1 -1
  42. package/dist/hooks/index.js +9 -11
  43. package/dist/hooks/useClientConfig.d.ts +3 -0
  44. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  45. package/dist/index.d.ts +1 -2
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +8 -15
  48. package/dist/layouts/App/create-api-client-app.d.ts +3646 -3645
  49. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  50. package/dist/layouts/App/create-api-client-app.js +24 -18
  51. package/dist/layouts/Modal/create-api-client-modal.d.ts +5 -8089
  52. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  53. package/dist/layouts/Modal/create-api-client-modal.js +28 -46
  54. package/dist/layouts/Modal/index.d.ts +2 -2
  55. package/dist/layouts/Modal/index.d.ts.map +1 -1
  56. package/dist/layouts/Modal/index.js +2 -5
  57. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  58. package/dist/layouts/Web/create-api-client-web.js +15 -12
  59. package/dist/libs/create-client.d.ts +2 -2
  60. package/dist/libs/create-client.d.ts.map +1 -1
  61. package/dist/libs/postman.d.ts +1 -1
  62. package/dist/libs/postman.d.ts.map +1 -1
  63. package/dist/libs/postman.js +12 -12
  64. package/dist/libs/validate-parameters.d.ts +10 -2
  65. package/dist/libs/validate-parameters.d.ts.map +1 -1
  66. package/dist/libs/validate-parameters.js +13 -6
  67. package/dist/routes.d.ts +3 -184
  68. package/dist/routes.d.ts.map +1 -1
  69. package/dist/routes.js +6 -6
  70. package/dist/store/active-entities.d.ts +1 -1
  71. package/dist/store/active-entities.d.ts.map +1 -1
  72. package/dist/store/active-entities.js +2 -2
  73. package/dist/store/router-params.d.ts.map +1 -1
  74. package/dist/style.css +1 -1
  75. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +5 -5
  76. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  77. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  78. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +3 -3
  79. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +3 -4
  80. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +1 -0
  81. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
  82. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -2
  83. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +7 -8
  84. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +44 -55
  85. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +16 -18
  86. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +41 -46
  87. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  88. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +3 -0
  89. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
  90. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
  91. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +201 -187
  92. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
  93. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +8 -10
  94. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +2 -3
  95. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +2 -4
  96. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +14 -16
  97. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +3 -0
  98. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
  99. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
  100. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +87 -85
  101. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +10 -11
  102. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +4 -5
  103. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +1 -1
  104. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +3 -3
  105. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +1 -1
  106. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +5 -5
  107. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +9 -10
  108. package/dist/v2/components/TempReplaceMe.vue.d.ts +3 -0
  109. package/dist/v2/components/TempReplaceMe.vue.d.ts.map +1 -0
  110. package/dist/v2/components/TempReplaceMe.vue.js +12 -0
  111. package/dist/v2/components/resize/Resize.vue.d.ts +20 -0
  112. package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -0
  113. package/dist/v2/components/resize/Resize.vue.js +8 -0
  114. package/dist/v2/components/resize/Resize.vue2.js +36 -0
  115. package/dist/v2/components/resize/index.d.ts +3 -0
  116. package/dist/v2/components/resize/index.d.ts.map +1 -0
  117. package/dist/v2/components/resize/index.js +4 -0
  118. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +39 -0
  119. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -0
  120. package/dist/v2/components/sidebar/Sidebar.vue.js +95 -0
  121. package/dist/v2/components/sidebar/Sidebar.vue2.js +4 -0
  122. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +13 -0
  123. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -0
  124. package/dist/v2/components/sidebar/SidebarMenu.vue.js +63 -0
  125. package/dist/v2/components/sidebar/SidebarMenu.vue2.js +4 -0
  126. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts +10 -0
  127. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts.map +1 -0
  128. package/dist/v2/components/sidebar/SidebarToggle.vue.js +52 -0
  129. package/dist/v2/components/sidebar/SidebarToggle.vue2.js +4 -0
  130. package/dist/v2/components/sidebar/index.d.ts +4 -0
  131. package/dist/v2/components/sidebar/index.d.ts.map +1 -0
  132. package/dist/v2/components/sidebar/index.js +8 -0
  133. package/dist/v2/features/app/App.vue.d.ts +16 -0
  134. package/dist/v2/features/app/App.vue.d.ts.map +1 -0
  135. package/dist/v2/features/app/App.vue.js +72 -0
  136. package/dist/v2/features/app/App.vue3.js +5 -0
  137. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +30 -0
  138. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -0
  139. package/dist/v2/features/app/components/AppSidebar.vue.js +7 -0
  140. package/dist/v2/features/app/components/AppSidebar.vue2.js +117 -0
  141. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +3 -0
  142. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -0
  143. package/dist/v2/features/app/components/DesktopTabs.vue.js +14 -0
  144. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts +3 -0
  145. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -0
  146. package/dist/v2/features/app/components/DownloadAppButton.vue.js +7 -0
  147. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +19 -0
  148. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +16 -0
  149. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -0
  150. package/dist/v2/features/app/components/WebTopNav.vue.js +28 -0
  151. package/dist/v2/features/app/components/WebTopNav.vue2.js +4 -0
  152. package/dist/v2/features/app/components/index.d.ts +2 -0
  153. package/dist/v2/features/app/components/index.d.ts.map +1 -0
  154. package/dist/v2/features/app/components/index.js +5 -0
  155. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +25 -0
  156. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -0
  157. package/dist/v2/features/app/helpers/create-api-client-app.js +21 -0
  158. package/dist/v2/features/app/helpers/routes.d.ts +103 -0
  159. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -0
  160. package/dist/v2/features/app/helpers/routes.js +115 -0
  161. package/dist/v2/features/app/index.d.ts +2 -0
  162. package/dist/v2/features/app/index.d.ts.map +1 -0
  163. package/dist/v2/features/app/index.js +4 -0
  164. package/dist/v2/features/collection/DocumentCollection.test.d.ts +2 -0
  165. package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +1 -0
  166. package/dist/v2/features/collection/DocumentCollection.vue.d.ts +12 -0
  167. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -0
  168. package/dist/v2/features/collection/DocumentCollection.vue.js +4 -0
  169. package/dist/v2/features/collection/DocumentCollection.vue2.js +82 -0
  170. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts +2 -0
  171. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts.map +1 -0
  172. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +10 -0
  173. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -0
  174. package/dist/v2/features/collection/WorkspaceCollection.vue.js +4 -0
  175. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +38 -0
  176. package/dist/v2/features/collection/components/Authentication.test.d.ts +2 -0
  177. package/dist/v2/features/collection/components/Authentication.test.d.ts.map +1 -0
  178. package/dist/v2/features/collection/components/Authentication.vue.d.ts +48 -0
  179. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -0
  180. package/dist/v2/features/collection/components/Authentication.vue.js +7 -0
  181. package/dist/v2/features/collection/components/Authentication.vue2.js +50 -0
  182. package/dist/v2/features/collection/components/Cookies.vue.d.ts +3 -0
  183. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -0
  184. package/dist/v2/features/collection/components/Cookies.vue.js +9 -0
  185. package/dist/v2/features/collection/components/Environment.test.d.ts +2 -0
  186. package/dist/v2/features/collection/components/Environment.test.d.ts.map +1 -0
  187. package/dist/v2/features/collection/components/Environment.vue.d.ts +89 -0
  188. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -0
  189. package/dist/v2/features/collection/components/Environment.vue.js +4 -0
  190. package/dist/v2/features/collection/components/Environment.vue2.js +34 -0
  191. package/dist/v2/features/collection/components/Form.vue.d.ts +29 -0
  192. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -0
  193. package/dist/v2/features/collection/components/Form.vue.js +83 -0
  194. package/dist/v2/features/collection/components/Form.vue2.js +4 -0
  195. package/dist/v2/features/collection/components/LabelInput.test.d.ts +2 -0
  196. package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +1 -0
  197. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +10 -0
  198. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -0
  199. package/dist/v2/features/collection/components/LabelInput.vue.js +7 -0
  200. package/dist/v2/features/collection/components/LabelInput.vue2.js +29 -0
  201. package/dist/v2/features/collection/components/Overview.test.d.ts +2 -0
  202. package/dist/v2/features/collection/components/Overview.test.d.ts.map +1 -0
  203. package/dist/v2/features/collection/components/Overview.vue.d.ts +14 -0
  204. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -0
  205. package/dist/v2/features/collection/components/Overview.vue.js +4 -0
  206. package/dist/v2/features/collection/components/Overview.vue2.js +91 -0
  207. package/dist/v2/features/collection/components/Servers.test.d.ts +2 -0
  208. package/dist/v2/features/collection/components/Servers.test.d.ts.map +1 -0
  209. package/dist/v2/features/collection/components/Servers.vue.d.ts +33 -0
  210. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -0
  211. package/dist/v2/features/collection/components/Servers.vue.js +4 -0
  212. package/dist/v2/features/collection/components/Servers.vue2.js +120 -0
  213. package/dist/v2/features/collection/components/Settings.test.d.ts +2 -0
  214. package/dist/v2/features/collection/components/Settings.test.d.ts.map +1 -0
  215. package/dist/v2/features/collection/components/Settings.vue.d.ts +17 -0
  216. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -0
  217. package/dist/v2/features/collection/components/Settings.vue.js +7 -0
  218. package/dist/v2/features/collection/components/Settings.vue2.js +100 -0
  219. package/dist/v2/features/collection/components/Tabs.test.d.ts +2 -0
  220. package/dist/v2/features/collection/components/Tabs.test.d.ts.map +1 -0
  221. package/dist/v2/features/collection/components/Tabs.vue.d.ts +6 -0
  222. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -0
  223. package/dist/v2/features/collection/components/Tabs.vue.js +46 -0
  224. package/dist/v2/features/collection/components/Tabs.vue2.js +4 -0
  225. package/dist/v2/features/environments/Environments.test.d.ts +2 -0
  226. package/dist/v2/features/environments/Environments.test.d.ts.map +1 -0
  227. package/dist/v2/features/environments/Environments.vue.d.ts +31 -0
  228. package/dist/v2/features/environments/Environments.vue.d.ts.map +1 -0
  229. package/dist/v2/features/environments/Environments.vue.js +65 -0
  230. package/dist/v2/features/environments/Environments.vue2.js +4 -0
  231. package/dist/v2/features/environments/EnvironmentsList.test.d.ts +2 -0
  232. package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +1 -0
  233. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +98 -0
  234. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -0
  235. package/dist/v2/features/environments/EnvironmentsList.vue.js +114 -0
  236. package/dist/v2/features/environments/EnvironmentsList.vue2.js +4 -0
  237. package/dist/v2/features/environments/components/Environment.test.d.ts +2 -0
  238. package/dist/v2/features/environments/components/Environment.test.d.ts.map +1 -0
  239. package/dist/v2/features/environments/components/Environment.vue.d.ts +70 -0
  240. package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -0
  241. package/dist/v2/features/environments/components/Environment.vue.js +104 -0
  242. package/dist/v2/features/environments/components/Environment.vue2.js +4 -0
  243. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts +20 -0
  244. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts.map +1 -0
  245. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.js +48 -0
  246. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue2.js +4 -0
  247. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +2 -0
  248. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +1 -0
  249. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts +10 -0
  250. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -0
  251. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +97 -0
  252. package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +4 -0
  253. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +19 -0
  254. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -0
  255. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +63 -0
  256. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +4 -0
  257. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +14 -0
  258. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -0
  259. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +53 -0
  260. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +4 -0
  261. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts +18 -0
  262. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts.map +1 -0
  263. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.js +35 -0
  264. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue2.js +4 -0
  265. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +2 -0
  266. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +1 -0
  267. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +23 -0
  268. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -0
  269. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +7 -0
  270. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +122 -0
  271. package/dist/v2/features/environments/index.d.ts +5 -0
  272. package/dist/v2/features/environments/index.d.ts.map +1 -0
  273. package/dist/v2/features/environments/index.js +6 -0
  274. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +2 -0
  275. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +1 -0
  276. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +25 -0
  277. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -0
  278. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +7 -0
  279. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +156 -0
  280. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +2 -0
  281. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +1 -0
  282. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +32 -0
  283. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +1 -0
  284. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +7 -0
  285. package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +58 -0
  286. package/dist/v2/features/global-cookies/index.d.ts +2 -0
  287. package/dist/v2/features/global-cookies/index.d.ts.map +1 -0
  288. package/dist/v2/features/global-cookies/index.js +4 -0
  289. package/dist/v2/features/modal/Modal.vue.d.ts +16 -0
  290. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -0
  291. package/dist/v2/features/modal/Modal.vue.js +7 -0
  292. package/dist/v2/features/modal/Modal.vue2.js +81 -0
  293. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +53 -0
  294. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -0
  295. package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -0
  296. package/dist/v2/features/modal/index.d.ts +2 -0
  297. package/dist/v2/features/modal/index.d.ts.map +1 -0
  298. package/dist/v2/features/modal/index.js +4 -0
  299. package/dist/v2/features/operation/Operation.test.d.ts +2 -0
  300. package/dist/v2/features/operation/Operation.test.d.ts.map +1 -0
  301. package/dist/v2/features/operation/Operation.vue.d.ts +79 -0
  302. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -0
  303. package/dist/v2/features/operation/Operation.vue.js +124 -0
  304. package/dist/v2/features/operation/Operation.vue2.js +4 -0
  305. package/dist/v2/features/operation/components/Header.test.d.ts +2 -0
  306. package/dist/v2/features/operation/components/Header.test.d.ts.map +1 -0
  307. package/dist/v2/features/operation/components/Header.vue.d.ts +85 -0
  308. package/dist/v2/features/operation/components/Header.vue.d.ts.map +1 -0
  309. package/dist/v2/features/operation/components/Header.vue.js +7 -0
  310. package/dist/v2/features/operation/components/Header.vue2.js +97 -0
  311. package/dist/v2/features/operation/index.d.ts +3 -0
  312. package/dist/v2/features/operation/index.d.ts.map +1 -0
  313. package/dist/v2/features/operation/index.js +4 -0
  314. package/dist/v2/features/settings/Settings.test.d.ts +2 -0
  315. package/dist/v2/features/settings/Settings.test.d.ts.map +1 -0
  316. package/dist/v2/features/settings/Settings.vue.d.ts +22 -0
  317. package/dist/v2/features/settings/Settings.vue.d.ts.map +1 -0
  318. package/dist/v2/features/settings/Settings.vue.js +268 -0
  319. package/dist/v2/features/settings/Settings.vue2.js +4 -0
  320. package/dist/v2/features/settings/components/Appearance.vue.d.ts +10 -0
  321. package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -0
  322. package/dist/v2/features/settings/components/Appearance.vue.js +88 -0
  323. package/dist/v2/features/settings/components/Appearance.vue2.js +4 -0
  324. package/dist/v2/features/settings/components/Section.vue.d.ts +14 -0
  325. package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -0
  326. package/dist/v2/features/settings/components/Section.vue.js +24 -0
  327. package/dist/v2/features/settings/components/Section.vue2.js +4 -0
  328. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +9 -0
  329. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -0
  330. package/dist/v2/features/settings/helpers/get-theme-colors.js +17 -0
  331. package/dist/v2/features/settings/index.d.ts +2 -0
  332. package/dist/v2/features/settings/index.d.ts.map +1 -0
  333. package/dist/v2/features/settings/index.js +4 -0
  334. package/dist/v2/hooks/use-document-watcher.d.ts +28 -0
  335. package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -0
  336. package/dist/v2/hooks/use-document-watcher.test.d.ts +2 -0
  337. package/dist/v2/hooks/use-document-watcher.test.d.ts.map +1 -0
  338. package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -0
  339. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -0
  340. package/dist/v2/hooks/use-workspace-client-events.js +13 -0
  341. package/dist/v2/plugins.d.ts +44 -0
  342. package/dist/v2/plugins.d.ts.map +1 -0
  343. package/dist/v2/types/layout.d.ts +10 -0
  344. package/dist/v2/types/layout.d.ts.map +1 -0
  345. package/dist/views/Collection/Collection.vue2.js +6 -6
  346. package/dist/views/Collection/CollectionCookies.vue2.js +3 -3
  347. package/dist/views/Collection/CollectionEnvironment.vue2.js +12 -13
  348. package/dist/views/Collection/CollectionScripts.vue2.js +3 -3
  349. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
  350. package/dist/views/Collection/CollectionServerForm.vue.js +42 -62
  351. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
  352. package/dist/views/Collection/CollectionServers.vue2.js +43 -50
  353. package/dist/views/Collection/CollectionSettings.vue.js +2 -2
  354. package/dist/views/Collection/CollectionSettings.vue2.js +5 -6
  355. package/dist/views/Collection/CollectionSync.vue2.js +3 -3
  356. package/dist/views/Collection/components/EnvironmentForm.vue2.js +10 -12
  357. package/dist/views/Collection/components/MarkdownInput.vue2.js +2 -4
  358. package/dist/views/Cookies/CookieModal.vue2.js +6 -6
  359. package/dist/views/Cookies/Cookies.vue2.js +6 -6
  360. package/dist/views/Environment/Environment.vue2.js +5 -6
  361. package/dist/views/Environment/EnvironmentModal.vue.js +13 -14
  362. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +8 -9
  363. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  364. package/dist/views/Request/RequestRoot.vue.js +2 -2
  365. package/dist/views/Request/RequestRoot.vue2.js +79 -80
  366. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +10 -11
  367. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -55
  368. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +10 -12
  369. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
  370. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +39 -44
  371. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  372. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  373. package/dist/views/Request/RequestSection/RequestBody.vue2.js +96 -78
  374. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +3 -3
  375. package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -3
  376. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  377. package/dist/views/Request/RequestSection/RequestSection.vue2.js +55 -55
  378. package/dist/views/Request/RequestSection/RequestTable.vue2.js +15 -17
  379. package/dist/views/Request/RequestSidebar.vue2.js +7 -8
  380. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  381. package/dist/views/Request/RequestSidebarItem.vue2.js +31 -32
  382. package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
  383. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -16
  384. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +11 -13
  385. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +4 -5
  386. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -5
  387. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
  388. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
  389. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +4 -4
  390. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +11 -13
  391. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +7 -8
  392. package/dist/views/Request/components/WorkspaceDropdown.vue.js +11 -14
  393. package/dist/views/Request/libs/oauth2.d.ts +1 -1
  394. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  395. package/dist/views/Settings/SettingsGeneral.vue.js +40 -42
  396. package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -11
  397. package/package.json +30 -25
  398. package/dist/hooks/useKeyMap.d.ts +0 -2
  399. package/dist/hooks/useKeyMap.d.ts.map +0 -1
  400. package/dist/hooks/useKeyMap.js +0 -9
  401. package/dist/router.d.ts +0 -8
  402. package/dist/router.d.ts.map +0 -1
  403. package/dist/router.js +0 -20
@@ -1,19 +1,18 @@
1
- import { defineComponent as S, computed as i, ref as I, useId as E, createBlock as a, openBlock as o, withCtx as d, createElementVNode as m, normalizeClass as V, createElementBlock as y, createVNode as A, Fragment as k, createCommentVNode as u, createTextVNode as g, renderList as O, unref as B, withDirectives as z, resolveDynamicComponent as M, mergeProps as N, vShow as L } from "vue";
1
+ import { defineComponent as I, computed as i, ref as P, useId as S, createBlock as r, openBlock as n, withCtx as u, createElementVNode as m, normalizeClass as A, createElementBlock as y, createVNode as B, Fragment as k, createCommentVNode as d, createTextVNode as V, renderList as E, unref as O, withDirectives as z, resolveDynamicComponent as N, vShow as L } from "vue";
2
2
  import { ScalarErrorBoundary as j } from "@scalar/components";
3
- import D from "../../../../components/SectionFilter.vue.js";
4
- import F from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
5
- import C from "./Headers.vue.js";
6
- import { textMediaTypes as w } from "../helpers/media-types.js";
7
- import U from "./ResponseBody.vue.js";
8
- import K from "./ResponseBodyStreaming.vue.js";
9
- import Z from "./ResponseBodyVirtual.vue.js";
3
+ import w from "../../../../components/SectionFilter.vue.js";
4
+ import D from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
5
+ import b from "./Headers.vue.js";
6
+ import { textMediaTypes as F } from "../helpers/media-types.js";
7
+ import M from "./ResponseBody.vue.js";
8
+ import U from "./ResponseBodyStreaming.vue.js";
9
+ import K from "./ResponseBodyVirtual.vue.js";
10
10
  /* empty css */
11
- import G from "./ResponseCookies.vue.js";
12
- import J from "./ResponseEmpty.vue.js";
13
- import Q from "./ResponseLoadingOverlay.vue.js";
14
- import W from "./ResponseMetaInformation.vue.js";
15
- import { usePluginManager as X } from "../../../../plugins/hooks/usePluginManager.js";
16
- const Y = { class: "flex h-8 flex-1 items-center" }, x = ["id", "role"], b = 2e5, ce = /* @__PURE__ */ S({
11
+ import Z from "./ResponseCookies.vue.js";
12
+ import G from "./ResponseEmpty.vue.js";
13
+ import J from "./ResponseLoadingOverlay.vue.js";
14
+ import Q from "./ResponseMetaInformation.vue.js";
15
+ const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"], C = 2e5, pe = /* @__PURE__ */ I({
17
16
  __name: "ResponseBlock",
18
17
  props: {
19
18
  response: {},
@@ -21,11 +20,12 @@ const Y = { class: "flex h-8 flex-1 items-center" }, x = ["id", "role"], b = 2e5
21
20
  layout: {},
22
21
  totalPerformedRequests: {},
23
22
  appVersion: {},
23
+ plugins: {},
24
24
  events: {}
25
25
  },
26
26
  emits: ["addRequest", "sendRequest", "openCommandPalette"],
27
- setup(t, { expose: H, emit: P }) {
28
- const f = P, T = X().getViewComponents("response.section"), p = i(() => {
27
+ setup(t, { expose: H, emit: T }) {
28
+ const v = T, p = i(() => {
29
29
  const e = t.response?.headers;
30
30
  return e ? Object.keys(e).map((s) => ({
31
31
  name: s,
@@ -39,144 +39,146 @@ const Y = { class: "flex h-8 flex-1 items-center" }, x = ["id", "role"], b = 2e5
39
39
  value: s
40
40
  } : [];
41
41
  }) ?? []
42
- ), $ = ["Cookies", "Headers", "Body"], n = I("All"), v = i(() => ["All", ...$]), l = i(
42
+ ), $ = ["Cookies", "Headers", "Body"], o = P("All"), f = i(() => ["All", ...$]), a = i(
43
43
  () => Object.fromEntries(
44
- v.value.map((e) => [e, E()])
44
+ f.value.map((e) => [e, S()])
45
45
  )
46
- ), h = i(() => {
46
+ ), q = i(() => {
47
47
  if (!t.response || !("size" in t.response))
48
48
  return !1;
49
49
  const e = t.response.headers?.["content-type"] || t.response.headers?.["Content-Type"];
50
- return !e || (t.response.size ?? 0) <= b || e.includes("text/html") ? !1 : w.some((r) => e.includes(r)) && (t.response.size ?? 0) > b;
51
- }), q = i(
50
+ return !e || (t.response.size ?? 0) <= C || e.includes("text/html") ? !1 : F.some((l) => e.includes(l)) && (t.response.size ?? 0) > C;
51
+ }), h = i(
52
52
  () => t.request?.headers ? [...t.request.headers].map((e) => ({
53
53
  name: e[0],
54
54
  value: e[1],
55
55
  required: !1
56
56
  })) : []
57
- ), c = (e) => e === "All" || n.value === e;
57
+ ), c = (e) => e === "All" || o.value === e;
58
58
  return H({
59
59
  responseHeaders: p,
60
60
  responseCookies: R,
61
- requestHeaders: q,
62
- shouldVirtualize: h,
63
- activeFilter: n,
64
- filters: v
65
- }), (e, s) => (o(), a(F, { "aria-label": "Response" }, {
66
- title: d(() => [
67
- m("div", Y, [
61
+ requestHeaders: h,
62
+ shouldVirtualize: q,
63
+ activeFilter: o,
64
+ filters: f
65
+ }), (e, s) => (n(), r(D, { "aria-label": "Response" }, {
66
+ title: u(() => [
67
+ m("div", W, [
68
68
  m("div", {
69
69
  "aria-live": "polite",
70
- class: V(["flex items-center", { "animate-response-heading": e.response }])
70
+ class: A(["flex items-center", { "animate-response-heading": e.response }])
71
71
  }, [
72
72
  s[4] || (s[4] = m("span", { class: "response-heading pointer-events-none absolute" }, " Response ", -1)),
73
- e.response ? (o(), a(W, {
73
+ e.response ? (n(), r(Q, {
74
74
  key: 0,
75
75
  class: "animate-response-children",
76
76
  events: e.events,
77
77
  response: e.response
78
- }, null, 8, ["events", "response"])) : u("", !0)
78
+ }, null, 8, ["events", "response"])) : d("", !0)
79
79
  ], 2),
80
- A(D, {
81
- modelValue: n.value,
82
- "onUpdate:modelValue": s[0] || (s[0] = (r) => n.value = r),
83
- filterIds: l.value,
84
- filters: v.value
80
+ B(w, {
81
+ modelValue: o.value,
82
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => o.value = l),
83
+ filterIds: a.value,
84
+ filters: f.value
85
85
  }, null, 8, ["modelValue", "filterIds", "filters"])
86
86
  ])
87
87
  ]),
88
- default: d(() => [
88
+ default: u(() => [
89
89
  m("div", {
90
- id: l.value.All,
91
- class: V(["custom-scroll response-section-content relative grid h-full justify-stretch", {
90
+ id: a.value.All,
91
+ class: A(["custom-scroll response-section-content relative grid h-full justify-stretch", {
92
92
  "content-start": e.response
93
93
  }]),
94
- role: n.value === "All" && e.response ? "tabpanel" : "none"
94
+ role: o.value === "All" && e.response ? "tabpanel" : "none"
95
95
  }, [
96
- e.response ? (o(), y(k, { key: 1 }, [
97
- c("Cookies") ? (o(), a(G, {
96
+ e.response ? (n(), y(k, { key: 1 }, [
97
+ c("Cookies") ? (n(), r(Z, {
98
98
  key: 0,
99
- id: l.value.Cookies,
99
+ id: a.value.Cookies,
100
100
  class: "response-section-content-cookies",
101
101
  cookies: R.value,
102
- role: n.value === "All" ? "none" : "tabpanel"
103
- }, null, 8, ["id", "cookies", "role"])) : u("", !0),
104
- c("Headers") ? (o(), a(C, {
102
+ role: o.value === "All" ? "none" : "tabpanel"
103
+ }, null, 8, ["id", "cookies", "role"])) : d("", !0),
104
+ c("Headers") ? (n(), r(b, {
105
105
  key: 1,
106
- id: l.value.Headers,
106
+ id: a.value.Headers,
107
107
  class: "response-section-content-headers",
108
- headers: q.value,
109
- role: n.value === "All" ? "none" : "tabpanel"
108
+ headers: h.value,
109
+ role: o.value === "All" ? "none" : "tabpanel"
110
110
  }, {
111
- title: d(() => s[5] || (s[5] = [
112
- g("Request Headers")
113
- ])),
111
+ title: u(() => [...s[5] || (s[5] = [
112
+ V("Request Headers", -1)
113
+ ])]),
114
114
  _: 1
115
- }, 8, ["id", "headers", "role"])) : u("", !0),
116
- c("Headers") ? (o(), a(C, {
115
+ }, 8, ["id", "headers", "role"])) : d("", !0),
116
+ c("Headers") ? (n(), r(b, {
117
117
  key: 2,
118
- id: l.value.Headers,
118
+ id: a.value.Headers,
119
119
  class: "response-section-content-headers",
120
120
  headers: p.value,
121
- role: n.value === "All" ? "none" : "tabpanel"
121
+ role: o.value === "All" ? "none" : "tabpanel"
122
122
  }, {
123
- title: d(() => s[6] || (s[6] = [
124
- g("Response Headers")
125
- ])),
123
+ title: u(() => [...s[6] || (s[6] = [
124
+ V("Response Headers", -1)
125
+ ])]),
126
126
  _: 1
127
- }, 8, ["id", "headers", "role"])) : u("", !0),
128
- (o(!0), y(k, null, O(B(T), (r) => (o(), a(B(j), {
129
- key: r.component
130
- }, {
131
- default: d(() => [
132
- z((o(), a(M(r.component), N({ ref_for: !0 }, r.props ?? {}), null, 16)), [
133
- [L, n.value === "All" || n.value === r.title]
134
- ])
127
+ }, 8, ["id", "headers", "role"])) : d("", !0),
128
+ (n(!0), y(k, null, E(e.plugins, (l, g) => (n(), r(O(j), { key: g }, {
129
+ default: u(() => [
130
+ l.components?.response ? z((n(), r(N(l.components.response), {
131
+ key: 0,
132
+ response: e.response,
133
+ request: e.request
134
+ }, null, 8, ["response", "request"])), [
135
+ [L, o.value === "All"]
136
+ ]) : d("", !0)
135
137
  ]),
136
138
  _: 2
137
139
  }, 1024))), 128)),
138
- n.value === "All" || n.value === "Body" ? (o(), y(k, { key: 3 }, [
139
- "reader" in e.response ? (o(), a(K, {
140
+ o.value === "All" || o.value === "Body" ? (n(), y(k, { key: 3 }, [
141
+ "reader" in e.response ? (n(), r(U, {
140
142
  key: 0,
141
- id: l.value.Body,
143
+ id: a.value.Body,
142
144
  class: "response-section-content-body",
143
145
  reader: e.response.reader
144
- }, null, 8, ["id", "reader"])) : h.value && typeof e.response?.data == "string" ? (o(), a(Z, {
146
+ }, null, 8, ["id", "reader"])) : q.value && typeof e.response?.data == "string" ? (n(), r(K, {
145
147
  key: 1,
146
- id: l.value.Body,
148
+ id: a.value.Body,
147
149
  content: e.response.data,
148
150
  data: e.response?.data,
149
151
  headers: p.value,
150
- role: n.value === "All" ? "none" : "tabpanel"
151
- }, null, 8, ["id", "content", "data", "headers", "role"])) : (o(), a(U, {
152
+ role: o.value === "All" ? "none" : "tabpanel"
153
+ }, null, 8, ["id", "content", "data", "headers", "role"])) : (n(), r(M, {
152
154
  key: 2,
153
- id: l.value.Body,
155
+ id: a.value.Body,
154
156
  active: !0,
155
157
  class: "response-section-content-body",
156
158
  data: e.response?.data,
157
159
  headers: p.value,
158
160
  layout: "client",
159
- role: n.value === "All" ? "none" : "tabpanel",
161
+ role: o.value === "All" ? "none" : "tabpanel",
160
162
  title: "Body"
161
163
  }, null, 8, ["id", "data", "headers", "role"]))
162
- ], 64)) : u("", !0)
163
- ], 64)) : (o(), a(J, {
164
+ ], 64)) : d("", !0)
165
+ ], 64)) : (n(), r(G, {
164
166
  key: 0,
165
167
  appVersion: e.appVersion,
166
168
  events: e.events,
167
169
  layout: e.layout,
168
170
  totalPerformedRequests: e.totalPerformedRequests,
169
- onAddRequest: s[1] || (s[1] = (r) => f("addRequest")),
170
- onOpenCommandPalette: s[2] || (s[2] = (r) => f("openCommandPalette")),
171
- onSendRequest: s[3] || (s[3] = (r) => f("sendRequest"))
171
+ onAddRequest: s[1] || (s[1] = (l) => v("addRequest")),
172
+ onOpenCommandPalette: s[2] || (s[2] = (l) => v("openCommandPalette")),
173
+ onSendRequest: s[3] || (s[3] = (l) => v("sendRequest"))
172
174
  }, null, 8, ["appVersion", "events", "layout", "totalPerformedRequests"])),
173
- A(Q, { events: e.events }, null, 8, ["events"])
174
- ], 10, x)
175
+ B(J, { events: e.events }, null, 8, ["events"])
176
+ ], 10, X)
175
177
  ]),
176
178
  _: 1
177
179
  }));
178
180
  }
179
181
  });
180
182
  export {
181
- ce as default
183
+ pe as default
182
184
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as w, ref as g, computed as l, createBlock as n, openBlock as t, createSlots as _, withCtx as i, createElementBlock as x, createCommentVNode as r, createElementVNode as p, toDisplayString as v, createTextVNode as c, createVNode as B } from "vue";
2
- import k from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
1
+ import { defineComponent as w, ref as g, computed as l, createBlock as n, openBlock as t, createSlots as x, withCtx as i, createElementBlock as B, createCommentVNode as r, createElementVNode as p, toDisplayString as v, createTextVNode as c, createVNode as k } from "vue";
2
+ import _ from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
3
3
  import { processResponseBody as R } from "../helpers/process-response-body.js";
4
4
  import { getMediaTypeConfig as T } from "../helpers/media-types.js";
5
5
  import V from "./ResponseBodyDownload.vue.js";
@@ -29,15 +29,15 @@ const $ = {
29
29
  ), a = l(
30
30
  () => T(e.value.mimeType?.essence ?? "")
31
31
  );
32
- return (o, u) => (t(), n(k, {
32
+ return (o, u) => (t(), n(_, {
33
33
  class: "max-h-content overflow-y-hidden",
34
34
  layout: o.layout
35
- }, _({
35
+ }, x({
36
36
  title: i(() => [
37
37
  c(v(o.title), 1)
38
38
  ]),
39
39
  default: i(() => [
40
- o.data ? (t(), x("div", $, [
40
+ o.data ? (t(), B("div", $, [
41
41
  p("div", E, [
42
42
  p("span", P, v(e.value.mimeType?.essence), 1),
43
43
  m.value ? (t(), n(N, {
@@ -59,11 +59,10 @@ const $ = {
59
59
  type: e.value.mimeType?.essence ?? ""
60
60
  }, null, 8, ["alpha", "mode", "src", "type"])) : r("", !0),
61
61
  !a.value?.raw && !a.value?.preview ? (t(), n(U, { key: 2 }, {
62
- default: i(() => u[1] || (u[1] = [
63
- c(" Binary file ")
64
- ])),
65
- _: 1,
66
- __: [1]
62
+ default: i(() => [...u[1] || (u[1] = [
63
+ c(" Binary file ", -1)
64
+ ])]),
65
+ _: 1
67
66
  })) : r("", !0)
68
67
  ])) : r("", !0)
69
68
  ]),
@@ -72,7 +71,7 @@ const $ = {
72
71
  o.data && e.value.dataUrl ? {
73
72
  name: "actions",
74
73
  fn: i(() => [
75
- B(V, {
74
+ k(V, {
76
75
  filename: e.value.attachmentFilename,
77
76
  href: e.value.dataUrl,
78
77
  type: e.value.mimeType?.essence
@@ -51,11 +51,10 @@ const c = ["src"], k = ["src", "type"], w = ["src", "type"], B = ["data", "type"
51
51
  onError: o[3] || (o[3] = (t) => r.value = !0)
52
52
  }, null, 40, B))
53
53
  ], 2)) : (s(), y(v, { key: 1 }, {
54
- default: f(() => o[4] || (o[4] = [
55
- m("Preview unavailable")
56
- ])),
57
- _: 1,
58
- __: [4]
54
+ default: f(() => [...o[4] || (o[4] = [
55
+ m("Preview unavailable", -1)
56
+ ])]),
57
+ _: 1
59
58
  }));
60
59
  }
61
60
  });
@@ -20,7 +20,7 @@ const S = /* @__PURE__ */ l({
20
20
  );
21
21
  return (b, t) => (d(), i(h, { class: "!max-h-100% response-body-virtual overflow-x-auto" }, m({
22
22
  title: a(() => [
23
- t[0] || (t[0] = p("Body"))
23
+ t[0] || (t[0] = p("Body", -1))
24
24
  ]),
25
25
  default: a(() => [
26
26
  t[1] || (t[1] = c("div", { class: "font-code text-xxs rounded-t border border-b-0 px-2.5 py-1.5" }, " This response body is massive! Syntax highlighting won't work here. ", -1)),
@@ -16,9 +16,9 @@ const d = {
16
16
  defaultOpen: !1,
17
17
  itemCount: o.cookies.length
18
18
  }, {
19
- title: t(() => l[0] || (l[0] = [
20
- u("Cookies")
21
- ])),
19
+ title: t(() => [...l[0] || (l[0] = [
20
+ u("Cookies", -1)
21
+ ])]),
22
22
  default: t(() => [
23
23
  (e(), s(i, { key: 0 }, [
24
24
  o.cookies.length ? (e(), r(p, {
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseEmpty.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-88f22a84"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dc5b68d4"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -22,7 +22,7 @@ const C = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
22
22
  return v(() => u.events.hotKeys.on(p)), b(() => u.events.hotKeys.off(p)), (t, e) => (a(), s("div", C, [
23
23
  o("div", {
24
24
  class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
25
- "hidden opacity-0": t.totalPerformedRequests <= 1 && t.layout !== "modal"
25
+ "hidden opacity-0": t.totalPerformedRequests < 1 && t.layout !== "modal"
26
26
  }])
27
27
  }, [
28
28
  t.layout !== "modal" ? (a(), s("div", w, [
@@ -47,7 +47,7 @@ const C = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
47
47
  t.layout !== "modal" ? (a(), s("div", {
48
48
  key: 0,
49
49
  class: y(["hidden h-[calc(100%_-_50px)] items-center justify-center pb-5", {
50
- "!flex opacity-100": t.totalPerformedRequests == 1
50
+ "!flex opacity-100": t.totalPerformedRequests == 0
51
51
  }])
52
52
  }, [
53
53
  l(g)
@@ -59,7 +59,7 @@ const C = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
59
59
  type: "button",
60
60
  onClick: e[0] || (e[0] = (f) => n("openCommandPalette"))
61
61
  }, [
62
- e[5] || (e[5] = i(" Get Started ")),
62
+ e[5] || (e[5] = i(" Get Started ", -1)),
63
63
  l(m(d), { hotkey: "k" })
64
64
  ])) : r("", !0),
65
65
  t.layout === "desktop" ? (a(), s("button", {
@@ -68,7 +68,7 @@ const C = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
68
68
  type: "button",
69
69
  onClick: e[1] || (e[1] = (f) => n("addRequest"))
70
70
  }, [
71
- e[6] || (e[6] = i(" New Request ")),
71
+ e[6] || (e[6] = i(" New Request ", -1)),
72
72
  l(m(d), { hotkey: "N" })
73
73
  ])) : r("", !0),
74
74
  o("button", {
@@ -76,7 +76,7 @@ const C = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
76
76
  type: "button",
77
77
  onClick: e[2] || (e[2] = (f) => n("sendRequest"))
78
78
  }, [
79
- e[7] || (e[7] = i(" Send Request ")),
79
+ e[7] || (e[7] = i(" Send Request ", -1)),
80
80
  l(m(d), { hotkey: "↵" })
81
81
  ])
82
82
  ])
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as u, ref as c, createBlock as d, openBlock as s, Transition as m, withCtx as l, createElementBlock as f, createCommentVNode as g, unref as o, createVNode as i, createTextVNode as v } from "vue";
2
- import { useLoadingState as p, ScalarLoading as x, ScalarButton as _ } from "@scalar/components";
3
- const L = {
2
+ import { useLoadingState as p, ScalarLoading as x, ScalarButton as L } from "@scalar/components";
3
+ const S = {
4
4
  key: 0,
5
5
  class: "bg-b-1 z-overlay absolute inset-0 flex flex-col items-center justify-center gap-6"
6
6
  }, y = /* @__PURE__ */ u({
@@ -14,21 +14,20 @@ const L = {
14
14
  n === "start" ? a.value = setTimeout(() => e.startLoading(), 1e3) : (clearTimeout(a.value), a.value = void 0, e.stopLoading());
15
15
  }), (n, t) => (s(), d(m, null, {
16
16
  default: l(() => [
17
- o(e).isLoading ? (s(), f("div", L, [
17
+ o(e).isLoading ? (s(), f("div", S, [
18
18
  i(o(x), {
19
19
  class: "text-c-3",
20
20
  loadingState: o(e),
21
21
  size: "3xl"
22
22
  }, null, 8, ["loadingState"]),
23
- i(o(_), {
23
+ i(o(L), {
24
24
  variant: "ghost",
25
- onClick: t[0] || (t[0] = (S) => n.events.cancelRequest.emit())
25
+ onClick: t[0] || (t[0] = (k) => n.events.cancelRequest.emit())
26
26
  }, {
27
- default: l(() => t[1] || (t[1] = [
28
- v(" Cancel ")
29
- ])),
30
- _: 1,
31
- __: [1]
27
+ default: l(() => [...t[1] || (t[1] = [
28
+ v(" Cancel ", -1)
29
+ ])]),
30
+ _: 1
32
31
  })
33
32
  ])) : g("", !0)
34
33
  ]),
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=TempReplaceMe.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TempReplaceMe.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/components/TempReplaceMe.vue"],"names":[],"mappings":";AAuCA,wBAKG"}
@@ -0,0 +1,12 @@
1
+ import { createElementBlock as t, openBlock as r, createElementVNode as n } from "vue";
2
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const c = {};
4
+ function l(m, e) {
5
+ return r(), t("div", null, [...e[0] || (e[0] = [
6
+ n("h1", null, "This is just a dummy page", -1)
7
+ ])]);
8
+ }
9
+ const a = /* @__PURE__ */ o(c, [["render", l]]);
10
+ export {
11
+ a as default
12
+ };
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ /** Provided resizable child width */
3
+ width: number;
4
+ };
5
+ type __VLS_Slots = {
6
+ default?(): unknown;
7
+ };
8
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
+ "update:width": (value: number) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ "onUpdate:width"?: ((value: number) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
20
+ //# sourceMappingURL=Resize.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Resize.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/resize/Resize.vue"],"names":[],"mappings":"AA2GA,KAAK,WAAW,GAAG;IACjB,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAQF,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,IAAI,OAAO,CAAA;CACpB,CAAC;AA4FF,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,8 @@
1
+ import o from "./Resize.vue2.js";
2
+ /* empty css */
3
+ /* empty css */
4
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
5
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bbcd6c0c"]]);
6
+ export {
7
+ e as default
8
+ };
@@ -0,0 +1,36 @@
1
+ import { defineComponent as f, ref as v, createElementBlock as h, openBlock as g, normalizeStyle as p, renderSlot as w, createElementVNode as E } from "vue";
2
+ const l = "scalar-dragging", D = /* @__PURE__ */ f({
3
+ __name: "Resize",
4
+ props: {
5
+ width: {}
6
+ },
7
+ emits: ["update:width"],
8
+ setup(n, { emit: m }) {
9
+ const s = m, o = v(!1), r = (t) => {
10
+ t.preventDefault();
11
+ const d = t.clientX, c = n.width, a = (u) => {
12
+ o.value = !0, document.body.classList.add(l);
13
+ let e = c + u.clientX - d;
14
+ e > 420 && (e = 420 + (e - 420) * 0.2), e < 240 && (e = 240), s("update:width", e);
15
+ }, i = () => {
16
+ o.value = !1, document.body.classList.remove(l), document.documentElement.removeEventListener("mousemove", a, !1), document.documentElement.removeEventListener("mouseup", i, !1), n.width > 420 ? s("update:width", 360) : n.width < 240 && s("update:width", 240);
17
+ };
18
+ document.documentElement.addEventListener("mousemove", a, !1), document.documentElement.addEventListener("mouseup", i, !1);
19
+ };
20
+ return (t, d) => (g(), h("div", {
21
+ class: "relative",
22
+ style: p({
23
+ width: `${t.width}px`
24
+ })
25
+ }, [
26
+ w(t.$slots, "default", {}, void 0, !0),
27
+ E("div", {
28
+ class: "resizer",
29
+ onMousedown: r
30
+ }, null, 32)
31
+ ], 4));
32
+ }
33
+ });
34
+ export {
35
+ D as default
36
+ };
@@ -0,0 +1,3 @@
1
+ /** biome-ignore-all lint/performance/noBarrelFile: Component entry point */
2
+ export { default as Resize } from './Resize.vue.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/resize/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as f } from "./Resize.vue.js";
2
+ export {
3
+ f as Resize
4
+ };
@@ -0,0 +1,39 @@
1
+ import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace';
2
+ import type { ClientLayout } from '../../../v2/types/layout';
3
+ type __VLS_Props = {
4
+ /** All documents to display sidebar items for */
5
+ documents: Record<string, WorkspaceDocument>;
6
+ /** Layout for the client */
7
+ layout: ClientLayout;
8
+ };
9
+ type __VLS_Slots = {
10
+ /** Slot to add the workspace button */
11
+ workspaceButton?(): unknown;
12
+ /** Slot to add additional content to the footer */
13
+ footer?(): unknown;
14
+ };
15
+ type __VLS_PublicProps = __VLS_Props & {
16
+ /** Propagate up the workspace model to the parent */
17
+ 'workspace'?: string;
18
+ /** Controls the visibility of the sidebar */
19
+ 'isSidebarOpen': boolean;
20
+ /** Controls the width of the sidebar */
21
+ 'sidebarWidth': number;
22
+ };
23
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
+ "update:workspace": (value: string) => any;
25
+ "update:isSidebarOpen": (value: boolean) => any;
26
+ "update:sidebarWidth": (value: number) => any;
27
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
+ "onUpdate:workspace"?: ((value: string) => any) | undefined;
29
+ "onUpdate:isSidebarOpen"?: ((value: boolean) => any) | undefined;
30
+ "onUpdate:sidebarWidth"?: ((value: number) => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
33
+ export default _default;
34
+ type __VLS_WithSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
39
+ //# sourceMappingURL=Sidebar.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/Sidebar.vue"],"names":[],"mappings":"AA0HA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAIlF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAKrD,KAAK,WAAW,GAAG;IACjB,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;IAC5C,4BAA4B;IAC5B,MAAM,EAAE,YAAY,CAAA;CACrB,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,uCAAuC;IACvC,eAAe,CAAC,IAAI,OAAO,CAAA;IAC3B,mDAAmD;IACnD,MAAM,CAAC,IAAI,OAAO,CAAA;CACnB,CAAC;AA+CF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;CACtB,CAAC;AAkLF,QAAA,MAAM,eAAe;;;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}