@scalar/api-client 2.8.1 → 2.9.1

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 (444) hide show
  1. package/CHANGELOG.md +70 -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 +10 -10
  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/code-input/CodeInput.test.d.ts +2 -0
  112. package/dist/v2/components/code-input/CodeInput.test.d.ts.map +1 -0
  113. package/dist/v2/components/code-input/CodeInput.vue.d.ts +140 -0
  114. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -0
  115. package/dist/v2/components/code-input/CodeInput.vue.js +8 -0
  116. package/dist/v2/components/code-input/CodeInput.vue2.js +202 -0
  117. package/dist/v2/components/code-input/code-variable-widget.d.ts +21 -0
  118. package/dist/v2/components/code-input/code-variable-widget.d.ts.map +1 -0
  119. package/dist/v2/components/code-input/code-variable-widget.js +106 -0
  120. package/dist/v2/components/code-input/code-variable-widget.test.d.ts +2 -0
  121. package/dist/v2/components/code-input/code-variable-widget.test.d.ts.map +1 -0
  122. package/dist/v2/components/code-input/index.d.ts +2 -0
  123. package/dist/v2/components/code-input/index.d.ts.map +1 -0
  124. package/dist/v2/components/code-input/index.js +4 -0
  125. package/dist/v2/components/data-table/DataTable.vue.d.ts +22 -0
  126. package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -0
  127. package/dist/v2/components/data-table/DataTable.vue.js +38 -0
  128. package/dist/v2/components/data-table/DataTable.vue2.js +4 -0
  129. package/dist/v2/components/data-table/DataTableCell.vue.d.ts +19 -0
  130. package/dist/v2/components/data-table/DataTableCell.vue.d.ts.map +1 -0
  131. package/dist/v2/components/data-table/DataTableCell.vue.js +26 -0
  132. package/dist/v2/components/data-table/DataTableCell.vue2.js +4 -0
  133. package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts +14 -0
  134. package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts.map +1 -0
  135. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +53 -0
  136. package/dist/v2/components/data-table/DataTableCheckbox.vue2.js +4 -0
  137. package/dist/v2/components/data-table/DataTableHeader.vue.d.ts +13 -0
  138. package/dist/v2/components/data-table/DataTableHeader.vue.d.ts.map +1 -0
  139. package/dist/v2/components/data-table/DataTableHeader.vue.js +18 -0
  140. package/dist/v2/components/data-table/DataTableHeader.vue2.js +4 -0
  141. package/dist/v2/components/data-table/DataTableInput.vue.d.ts +53 -0
  142. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -0
  143. package/dist/v2/components/data-table/DataTableInput.vue.js +7 -0
  144. package/dist/v2/components/data-table/DataTableInput.vue2.js +117 -0
  145. package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +16 -0
  146. package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -0
  147. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +146 -0
  148. package/dist/v2/components/data-table/DataTableInputSelect.vue2.js +4 -0
  149. package/dist/v2/components/data-table/DataTableRow.vue.d.ts +13 -0
  150. package/dist/v2/components/data-table/DataTableRow.vue.d.ts.map +1 -0
  151. package/dist/v2/components/data-table/DataTableRow.vue.js +12 -0
  152. package/dist/v2/components/data-table/DataTableText.vue.d.ts +16 -0
  153. package/dist/v2/components/data-table/DataTableText.vue.d.ts.map +1 -0
  154. package/dist/v2/components/data-table/DataTableText.vue.js +23 -0
  155. package/dist/v2/components/data-table/DataTableText.vue2.js +4 -0
  156. package/dist/v2/components/data-table/index.d.ts +9 -0
  157. package/dist/v2/components/data-table/index.d.ts.map +1 -0
  158. package/dist/v2/components/data-table/index.js +18 -0
  159. package/dist/v2/components/resize/Resize.vue.d.ts +20 -0
  160. package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -0
  161. package/dist/v2/components/resize/Resize.vue.js +8 -0
  162. package/dist/v2/components/resize/Resize.vue2.js +36 -0
  163. package/dist/v2/components/resize/index.d.ts +3 -0
  164. package/dist/v2/components/resize/index.d.ts.map +1 -0
  165. package/dist/v2/components/resize/index.js +4 -0
  166. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +39 -0
  167. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -0
  168. package/dist/v2/components/sidebar/Sidebar.vue.js +95 -0
  169. package/dist/v2/components/sidebar/Sidebar.vue2.js +4 -0
  170. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +13 -0
  171. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -0
  172. package/dist/v2/components/sidebar/SidebarMenu.vue.js +63 -0
  173. package/dist/v2/components/sidebar/SidebarMenu.vue2.js +4 -0
  174. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts +10 -0
  175. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts.map +1 -0
  176. package/dist/v2/components/sidebar/SidebarToggle.vue.js +52 -0
  177. package/dist/v2/components/sidebar/SidebarToggle.vue2.js +4 -0
  178. package/dist/v2/components/sidebar/index.d.ts +4 -0
  179. package/dist/v2/components/sidebar/index.d.ts.map +1 -0
  180. package/dist/v2/components/sidebar/index.js +8 -0
  181. package/dist/v2/features/app/App.test.d.ts +2 -0
  182. package/dist/v2/features/app/App.test.d.ts.map +1 -0
  183. package/dist/v2/features/app/App.vue.d.ts +16 -0
  184. package/dist/v2/features/app/App.vue.d.ts.map +1 -0
  185. package/dist/v2/features/app/App.vue.js +87 -0
  186. package/dist/v2/features/app/App.vue3.js +5 -0
  187. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +30 -0
  188. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -0
  189. package/dist/v2/features/app/components/AppSidebar.vue.js +7 -0
  190. package/dist/v2/features/app/components/AppSidebar.vue2.js +117 -0
  191. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +6 -0
  192. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -0
  193. package/dist/v2/features/app/components/DesktopTabs.vue.js +15 -0
  194. package/dist/v2/features/app/components/DesktopTabs.vue2.js +6 -0
  195. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts +3 -0
  196. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -0
  197. package/dist/v2/features/app/components/DownloadAppButton.vue.js +7 -0
  198. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +19 -0
  199. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +16 -0
  200. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -0
  201. package/dist/v2/features/app/components/WebTopNav.vue.js +28 -0
  202. package/dist/v2/features/app/components/WebTopNav.vue2.js +4 -0
  203. package/dist/v2/features/app/components/index.d.ts +2 -0
  204. package/dist/v2/features/app/components/index.d.ts.map +1 -0
  205. package/dist/v2/features/app/components/index.js +5 -0
  206. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +25 -0
  207. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -0
  208. package/dist/v2/features/app/helpers/create-api-client-app.js +21 -0
  209. package/dist/v2/features/app/helpers/routes.d.ts +106 -0
  210. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -0
  211. package/dist/v2/features/app/helpers/routes.js +109 -0
  212. package/dist/v2/features/app/index.d.ts +2 -0
  213. package/dist/v2/features/app/index.d.ts.map +1 -0
  214. package/dist/v2/features/app/index.js +4 -0
  215. package/dist/v2/features/collection/DocumentCollection.test.d.ts +2 -0
  216. package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +1 -0
  217. package/dist/v2/features/collection/DocumentCollection.vue.d.ts +12 -0
  218. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -0
  219. package/dist/v2/features/collection/DocumentCollection.vue.js +4 -0
  220. package/dist/v2/features/collection/DocumentCollection.vue2.js +95 -0
  221. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +10 -0
  222. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -0
  223. package/dist/v2/features/collection/WorkspaceCollection.vue.js +4 -0
  224. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +40 -0
  225. package/dist/v2/features/collection/components/Authentication.test.d.ts +2 -0
  226. package/dist/v2/features/collection/components/Authentication.test.d.ts.map +1 -0
  227. package/dist/v2/features/collection/components/Authentication.vue.d.ts +48 -0
  228. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -0
  229. package/dist/v2/features/collection/components/Authentication.vue.js +7 -0
  230. package/dist/v2/features/collection/components/Authentication.vue2.js +50 -0
  231. package/dist/v2/features/collection/components/Cookies.vue.d.ts +3 -0
  232. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -0
  233. package/dist/v2/features/collection/components/Cookies.vue.js +9 -0
  234. package/dist/v2/features/collection/components/Environment.test.d.ts +2 -0
  235. package/dist/v2/features/collection/components/Environment.test.d.ts.map +1 -0
  236. package/dist/v2/features/collection/components/Environment.vue.d.ts +15 -0
  237. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -0
  238. package/dist/v2/features/collection/components/Environment.vue.js +4 -0
  239. package/dist/v2/features/collection/components/Environment.vue2.js +29 -0
  240. package/dist/v2/features/collection/components/Form.vue.d.ts +29 -0
  241. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -0
  242. package/dist/v2/features/collection/components/Form.vue.js +83 -0
  243. package/dist/v2/features/collection/components/Form.vue2.js +4 -0
  244. package/dist/v2/features/collection/components/LabelInput.test.d.ts +2 -0
  245. package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +1 -0
  246. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +10 -0
  247. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -0
  248. package/dist/v2/features/collection/components/LabelInput.vue.js +7 -0
  249. package/dist/v2/features/collection/components/LabelInput.vue2.js +29 -0
  250. package/dist/v2/features/collection/components/Overview.test.d.ts +2 -0
  251. package/dist/v2/features/collection/components/Overview.test.d.ts.map +1 -0
  252. package/dist/v2/features/collection/components/Overview.vue.d.ts +15 -0
  253. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -0
  254. package/dist/v2/features/collection/components/Overview.vue.js +7 -0
  255. package/dist/v2/features/collection/components/Overview.vue2.js +89 -0
  256. package/dist/v2/features/collection/components/Servers.test.d.ts +2 -0
  257. package/dist/v2/features/collection/components/Servers.test.d.ts.map +1 -0
  258. package/dist/v2/features/collection/components/Servers.vue.d.ts +33 -0
  259. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -0
  260. package/dist/v2/features/collection/components/Servers.vue.js +4 -0
  261. package/dist/v2/features/collection/components/Servers.vue2.js +120 -0
  262. package/dist/v2/features/collection/components/Settings.test.d.ts +2 -0
  263. package/dist/v2/features/collection/components/Settings.test.d.ts.map +1 -0
  264. package/dist/v2/features/collection/components/Settings.vue.d.ts +17 -0
  265. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -0
  266. package/dist/v2/features/collection/components/Settings.vue.js +7 -0
  267. package/dist/v2/features/collection/components/Settings.vue2.js +100 -0
  268. package/dist/v2/features/collection/components/Tabs.test.d.ts +2 -0
  269. package/dist/v2/features/collection/components/Tabs.test.d.ts.map +1 -0
  270. package/dist/v2/features/collection/components/Tabs.vue.d.ts +6 -0
  271. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -0
  272. package/dist/v2/features/collection/components/Tabs.vue.js +46 -0
  273. package/dist/v2/features/collection/components/Tabs.vue2.js +4 -0
  274. package/dist/v2/features/environments/EnvironmentsList.test.d.ts +2 -0
  275. package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +1 -0
  276. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +9 -0
  277. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -0
  278. package/dist/v2/features/environments/EnvironmentsList.vue.js +66 -0
  279. package/dist/v2/features/environments/EnvironmentsList.vue2.js +4 -0
  280. package/dist/v2/features/environments/components/Environment.test.d.ts +2 -0
  281. package/dist/v2/features/environments/components/Environment.test.d.ts.map +1 -0
  282. package/dist/v2/features/environments/components/Environment.vue.d.ts +16 -0
  283. package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -0
  284. package/dist/v2/features/environments/components/Environment.vue.js +53 -0
  285. package/dist/v2/features/environments/components/Environment.vue2.js +4 -0
  286. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +2 -0
  287. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +1 -0
  288. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts +10 -0
  289. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -0
  290. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +121 -0
  291. package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +4 -0
  292. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +12 -0
  293. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -0
  294. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +85 -0
  295. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +4 -0
  296. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +14 -0
  297. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -0
  298. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +53 -0
  299. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +4 -0
  300. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts +21 -0
  301. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts.map +1 -0
  302. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +109 -0
  303. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue2.js +4 -0
  304. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +2 -0
  305. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +1 -0
  306. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +10 -0
  307. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -0
  308. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +7 -0
  309. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +136 -0
  310. package/dist/v2/features/environments/index.d.ts +2 -0
  311. package/dist/v2/features/environments/index.d.ts.map +1 -0
  312. package/dist/v2/features/environments/index.js +4 -0
  313. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +2 -0
  314. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +1 -0
  315. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +25 -0
  316. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -0
  317. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +7 -0
  318. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +156 -0
  319. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +2 -0
  320. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +1 -0
  321. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +32 -0
  322. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +1 -0
  323. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +7 -0
  324. package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +58 -0
  325. package/dist/v2/features/global-cookies/index.d.ts +2 -0
  326. package/dist/v2/features/global-cookies/index.d.ts.map +1 -0
  327. package/dist/v2/features/global-cookies/index.js +4 -0
  328. package/dist/v2/features/modal/Modal.vue.d.ts +16 -0
  329. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -0
  330. package/dist/v2/features/modal/Modal.vue.js +7 -0
  331. package/dist/v2/features/modal/Modal.vue2.js +81 -0
  332. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +53 -0
  333. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -0
  334. package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -0
  335. package/dist/v2/features/modal/index.d.ts +2 -0
  336. package/dist/v2/features/modal/index.d.ts.map +1 -0
  337. package/dist/v2/features/modal/index.js +4 -0
  338. package/dist/v2/features/operation/Operation.test.d.ts +2 -0
  339. package/dist/v2/features/operation/Operation.test.d.ts.map +1 -0
  340. package/dist/v2/features/operation/Operation.vue.d.ts +79 -0
  341. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -0
  342. package/dist/v2/features/operation/Operation.vue.js +124 -0
  343. package/dist/v2/features/operation/Operation.vue2.js +4 -0
  344. package/dist/v2/features/operation/components/Header.test.d.ts +2 -0
  345. package/dist/v2/features/operation/components/Header.test.d.ts.map +1 -0
  346. package/dist/v2/features/operation/components/Header.vue.d.ts +85 -0
  347. package/dist/v2/features/operation/components/Header.vue.d.ts.map +1 -0
  348. package/dist/v2/features/operation/components/Header.vue.js +7 -0
  349. package/dist/v2/features/operation/components/Header.vue2.js +97 -0
  350. package/dist/v2/features/operation/index.d.ts +3 -0
  351. package/dist/v2/features/operation/index.d.ts.map +1 -0
  352. package/dist/v2/features/operation/index.js +4 -0
  353. package/dist/v2/features/settings/Settings.test.d.ts +2 -0
  354. package/dist/v2/features/settings/Settings.test.d.ts.map +1 -0
  355. package/dist/v2/features/settings/Settings.vue.d.ts +22 -0
  356. package/dist/v2/features/settings/Settings.vue.d.ts.map +1 -0
  357. package/dist/v2/features/settings/Settings.vue.js +268 -0
  358. package/dist/v2/features/settings/Settings.vue2.js +4 -0
  359. package/dist/v2/features/settings/components/Appearance.vue.d.ts +10 -0
  360. package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -0
  361. package/dist/v2/features/settings/components/Appearance.vue.js +88 -0
  362. package/dist/v2/features/settings/components/Appearance.vue2.js +4 -0
  363. package/dist/v2/features/settings/components/Section.vue.d.ts +14 -0
  364. package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -0
  365. package/dist/v2/features/settings/components/Section.vue.js +24 -0
  366. package/dist/v2/features/settings/components/Section.vue2.js +4 -0
  367. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +9 -0
  368. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -0
  369. package/dist/v2/features/settings/helpers/get-theme-colors.js +17 -0
  370. package/dist/v2/features/settings/index.d.ts +2 -0
  371. package/dist/v2/features/settings/index.d.ts.map +1 -0
  372. package/dist/v2/features/settings/index.js +4 -0
  373. package/dist/v2/helpers/test-utils.d.ts +4 -0
  374. package/dist/v2/helpers/test-utils.d.ts.map +1 -0
  375. package/dist/v2/hooks/use-document-watcher.d.ts +28 -0
  376. package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -0
  377. package/dist/v2/hooks/use-document-watcher.test.d.ts +2 -0
  378. package/dist/v2/hooks/use-document-watcher.test.d.ts.map +1 -0
  379. package/dist/v2/hooks/use-workspace-client-events.d.ts +9 -0
  380. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -0
  381. package/dist/v2/hooks/use-workspace-client-events.js +27 -0
  382. package/dist/v2/plugins.d.ts +44 -0
  383. package/dist/v2/plugins.d.ts.map +1 -0
  384. package/dist/v2/types/layout.d.ts +10 -0
  385. package/dist/v2/types/layout.d.ts.map +1 -0
  386. package/dist/views/Collection/Collection.vue2.js +6 -6
  387. package/dist/views/Collection/CollectionCookies.vue2.js +3 -3
  388. package/dist/views/Collection/CollectionEnvironment.vue2.js +12 -13
  389. package/dist/views/Collection/CollectionScripts.vue2.js +3 -3
  390. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
  391. package/dist/views/Collection/CollectionServerForm.vue.js +42 -62
  392. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
  393. package/dist/views/Collection/CollectionServers.vue2.js +43 -50
  394. package/dist/views/Collection/CollectionSettings.vue.js +2 -2
  395. package/dist/views/Collection/CollectionSettings.vue2.js +5 -6
  396. package/dist/views/Collection/CollectionSync.vue2.js +3 -3
  397. package/dist/views/Collection/components/EnvironmentForm.vue2.js +10 -12
  398. package/dist/views/Collection/components/MarkdownInput.vue2.js +2 -4
  399. package/dist/views/Cookies/CookieModal.vue2.js +6 -6
  400. package/dist/views/Cookies/Cookies.vue2.js +6 -6
  401. package/dist/views/Environment/Environment.vue2.js +5 -6
  402. package/dist/views/Environment/EnvironmentModal.vue.js +13 -14
  403. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +8 -9
  404. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  405. package/dist/views/Request/RequestRoot.vue.js +2 -2
  406. package/dist/views/Request/RequestRoot.vue2.js +79 -80
  407. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +10 -11
  408. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -55
  409. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +10 -12
  410. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
  411. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +39 -44
  412. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  413. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  414. package/dist/views/Request/RequestSection/RequestBody.vue2.js +96 -78
  415. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +3 -3
  416. package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -3
  417. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  418. package/dist/views/Request/RequestSection/RequestSection.vue2.js +55 -55
  419. package/dist/views/Request/RequestSection/RequestTable.vue2.js +15 -17
  420. package/dist/views/Request/RequestSidebar.vue2.js +7 -8
  421. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  422. package/dist/views/Request/RequestSidebarItem.vue2.js +31 -32
  423. package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
  424. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -16
  425. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +11 -13
  426. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +4 -5
  427. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -5
  428. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
  429. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
  430. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +4 -4
  431. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +11 -13
  432. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +7 -8
  433. package/dist/views/Request/components/WorkspaceDropdown.vue.js +11 -14
  434. package/dist/views/Request/libs/oauth2.d.ts +1 -1
  435. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  436. package/dist/views/Settings/SettingsGeneral.vue.js +40 -42
  437. package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -11
  438. package/package.json +31 -26
  439. package/dist/hooks/useKeyMap.d.ts +0 -2
  440. package/dist/hooks/useKeyMap.d.ts.map +0 -1
  441. package/dist/hooks/useKeyMap.js +0 -9
  442. package/dist/router.d.ts +0 -8
  443. package/dist/router.d.ts.map +0 -1
  444. package/dist/router.js +0 -20
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, ref as c, createBlock as d, openBlock as l, Transition as m, withCtx as r, createElementBlock as f, createCommentVNode as p, unref as e, createVNode as i, createTextVNode as g } from "vue";
2
- import { useLoadingState as v, ScalarLoading as _, ScalarButton as x } from "@scalar/components";
2
+ import { useLoadingState as v, ScalarLoading as x, ScalarButton as _ } from "@scalar/components";
3
3
  import { useWorkspace as k } from "../../../store/store.js";
4
4
  const L = {
5
5
  key: 0,
@@ -13,20 +13,19 @@ const L = {
13
13
  }), (s, o) => (l(), d(m, null, {
14
14
  default: r(() => [
15
15
  e(t).isLoading ? (l(), f("div", L, [
16
- i(e(_), {
16
+ i(e(x), {
17
17
  class: "text-c-3",
18
18
  loadingState: e(t),
19
19
  size: "3xl"
20
20
  }, null, 8, ["loadingState"]),
21
- i(e(x), {
21
+ i(e(_), {
22
22
  variant: "ghost",
23
23
  onClick: o[0] || (o[0] = (C) => e(n).cancelRequest.emit())
24
24
  }, {
25
- default: r(() => o[1] || (o[1] = [
26
- g(" Cancel ")
27
- ])),
28
- _: 1,
29
- __: [1]
25
+ default: r(() => [...o[1] || (o[1] = [
26
+ g(" Cancel ", -1)
27
+ ])]),
28
+ _: 1
30
29
  })
31
30
  ])) : p("", !0)
32
31
  ]),
@@ -8,14 +8,14 @@ import { useWorkspace as H } from "../../../store/store.js";
8
8
  const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-0 flex items-center gap-1.5 font-bold" }, Q = { class: "line-clamp-1 text-left" }, X = { class: "overflow-hidden text-ellipsis" }, Z = { class: "flex h-4 w-4 items-center justify-center" }, re = /* @__PURE__ */ A({
9
9
  __name: "WorkspaceDropdown",
10
10
  setup(ee) {
11
- const { activeWorkspace: c } = G(), { workspaces: r, workspaceMutators: w, events: E } = H(), { push: _ } = F(), T = (o) => {
12
- o !== c.value?.uid && _({
11
+ const { activeWorkspace: c } = G(), { workspaces: r, workspaceMutators: w, events: E } = H(), { push: x } = F(), T = (o) => {
12
+ o !== c.value?.uid && x({
13
13
  name: "workspace",
14
14
  params: {
15
15
  workspace: o
16
16
  }
17
17
  });
18
- }, x = L(() => Object.keys(r).length === 1), j = () => E.commandPalette.emit({ commandName: "Create Workspace" }), d = W(""), i = W(""), u = S(), p = S(), g = (o) => {
18
+ }, _ = L(() => Object.keys(r).length === 1), j = () => E.commandPalette.emit({ commandName: "Create Workspace" }), d = W(""), i = W(""), u = S(), p = S(), g = (o) => {
19
19
  const t = r[o];
20
20
  t && (d.value = t.name, i.value = o, u.show());
21
21
  }, B = (o) => {
@@ -24,11 +24,11 @@ const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-
24
24
  const t = r[o];
25
25
  t && (d.value = t.name, i.value = o, p.show());
26
26
  }, R = async () => {
27
- if (!x.value) {
27
+ if (!_.value) {
28
28
  const o = c.value?.uid === i.value, t = { ...r };
29
29
  if (delete t[i.value], w.delete(i.value), o) {
30
30
  const a = Object.keys(t)[0];
31
- await _({
31
+ await x({
32
32
  name: "workspace",
33
33
  params: {
34
34
  workspace: a
@@ -71,10 +71,9 @@ const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-
71
71
  }),
72
72
  t[2] || (t[2] = l("span", null, "Rename", -1))
73
73
  ]),
74
- _: 2,
75
- __: [2]
76
- }, 1032, ["onMousedown", "onTouchend"]),
77
- x.value ? O("", !0) : (f(), D(e(h), {
74
+ _: 1
75
+ }, 8, ["onMousedown", "onTouchend"]),
76
+ _.value ? O("", !0) : (f(), D(e(h), {
78
77
  key: 0,
79
78
  class: "flex gap-2",
80
79
  onMousedown: v((m) => b(a.uid), ["prevent"]),
@@ -89,9 +88,8 @@ const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-
89
88
  }),
90
89
  t[3] || (t[3] = l("span", null, "Delete", -1))
91
90
  ]),
92
- _: 2,
93
- __: [3]
94
- }, 1032, ["onMousedown", "onTouchend"]))
91
+ _: 1
92
+ }, 8, ["onMousedown", "onTouchend"]))
95
93
  ]),
96
94
  default: n(() => [
97
95
  s(e(N), {
@@ -128,8 +126,7 @@ const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-
128
126
  ]),
129
127
  t[4] || (t[4] = l("span", null, "Create Workspace", -1))
130
128
  ]),
131
- _: 1,
132
- __: [4]
129
+ _: 1
133
130
  })
134
131
  ]),
135
132
  default: n(() => [
@@ -1,5 +1,5 @@
1
- import type { ErrorResponse } from '../../../libs/errors.js';
2
1
  import type { Oauth2Flow, Server } from '@scalar/oas-utils/entities/spec';
2
+ import type { ErrorResponse } from '../../../libs/errors.js';
3
3
  /** Oauth2 security schemes which are not implicit */
4
4
  type NonImplicitFlow = Exclude<Oauth2Flow, {
5
5
  type: 'implicit';
@@ -1 +1 @@
1
- {"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAIzE,qDAAqD;AACrD,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAA;AAEhE,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAY3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,MAAM,UAAU;AAChB,wEAAwE;AACxE,cAAc,MAAM;AACpB,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA8J/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,MAAM,eAAe,EACrB,QAAQ,MAAM,EACd,4BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACzB,KACL,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA0F/B,CAAA"}
1
+ {"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAIzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAA;AAEhE,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAY3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,MAAM,UAAU;AAChB,wEAAwE;AACxE,cAAc,MAAM;AACpB,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA+J/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,MAAM,eAAe,EACrB,QAAQ,MAAM,EACd,4BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACzB,KACL,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA0F/B,CAAA"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as E, createElementBlock as _, openBlock as c, createElementVNode as r, createVNode as a, withCtx as l, createBlock as u, createCommentVNode as p, unref as e, normalizeClass as i, createTextVNode as n, toDisplayString as w, Fragment as z, renderList as $, normalizeStyle as C } from "vue";
1
+ import { defineComponent as E, createElementBlock as w, openBlock as c, createElementVNode as r, createVNode as a, withCtx as l, createBlock as u, createCommentVNode as p, unref as e, normalizeClass as i, createTextVNode as n, toDisplayString as C, Fragment as z, renderList as $, normalizeStyle as _ } from "vue";
2
2
  import { cva as L, ScalarButton as x, cx as m, ScalarIcon as b } from "@scalar/components";
3
3
  import { themeLabels as j } from "@scalar/themes";
4
4
  import N from "../../components/ImportCollection/IntegrationLogo.vue.js";
@@ -43,31 +43,31 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
43
43
  }
44
44
  }
45
45
  }), h = (d) => U.edit(o.value?.uid, "proxyUrl", d);
46
- return (d, t) => (c(), _("div", W, [
46
+ return (d, t) => (c(), w("div", W, [
47
47
  r("div", F, [
48
48
  r("div", O, [
49
49
  t[13] || (t[13] = r("div", null, [
50
50
  r("h2", { class: "mt-10 text-xl font-bold" }, "Settings")
51
51
  ], -1)),
52
52
  a(y, null, {
53
- title: l(() => t[3] || (t[3] = [
54
- n(" CORS Proxy ")
55
- ])),
56
- description: l(() => t[4] || (t[4] = [
57
- n(" Browsers block cross-origin requests for security. We provide a public proxy to "),
53
+ title: l(() => [...t[3] || (t[3] = [
54
+ n(" CORS Proxy ", -1)
55
+ ])]),
56
+ description: l(() => [...t[4] || (t[4] = [
57
+ n(" Browsers block cross-origin requests for security. We provide a public proxy to ", -1),
58
58
  r("a", {
59
59
  class: "hover:text-c-1 underline-offset-2",
60
60
  href: "https://en.wikipedia.org/wiki/Cross-origin_resource_sharing",
61
61
  target: "_blank"
62
62
  }, " bypass CORS issues ", -1),
63
- n(" . Check the "),
63
+ n(" . Check the ", -1),
64
64
  r("a", {
65
65
  class: "hover:text-c-1 underline-offset-2",
66
66
  href: "https://github.com/scalar/scalar/tree/main/examples/proxy-server",
67
67
  target: "_blank"
68
68
  }, " source code on GitHub ", -1),
69
- n(" . ")
70
- ])),
69
+ n(" . ", -1)
70
+ ])]),
71
71
  default: l(() => [
72
72
  r("div", D, [
73
73
  a(e(x), {
@@ -93,10 +93,9 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
93
93
  thickness: "3.5"
94
94
  })) : p("", !0)
95
95
  ], 2),
96
- t[5] || (t[5] = n(" Use proxy.scalar.com (default) "))
96
+ t[5] || (t[5] = n(" Use proxy.scalar.com (default) ", -1))
97
97
  ]),
98
- _: 1,
99
- __: [5]
98
+ _: 1
100
99
  }, 8, ["class"]),
101
100
  e(f) && e(f) !== g ? (c(), u(e(x), {
102
101
  key: 0,
@@ -122,7 +121,7 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
122
121
  thickness: "3.5"
123
122
  })) : p("", !0)
124
123
  ], 2),
125
- n(" Use custom proxy (" + w(e(f)) + ") ", 1)
124
+ n(" Use custom proxy (" + C(e(f)) + ") ", 1)
126
125
  ]),
127
126
  _: 1
128
127
  }, 8, ["class"])) : p("", !0),
@@ -144,26 +143,25 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
144
143
  thickness: "3.5"
145
144
  }))
146
145
  ], 2),
147
- t[6] || (t[6] = n(" Skip the proxy "))
146
+ t[6] || (t[6] = n(" Skip the proxy ", -1))
148
147
  ]),
149
- _: 1,
150
- __: [6]
148
+ _: 1
151
149
  }, 8, ["class"])
152
150
  ])
153
151
  ]),
154
152
  _: 1
155
153
  }),
156
154
  a(y, null, {
157
- title: l(() => t[7] || (t[7] = [
158
- n(" Themes ")
159
- ])),
160
- description: l(() => t[8] || (t[8] = [
161
- n(" We've got a whole rainbow of themes for you to play with: ")
162
- ])),
155
+ title: l(() => [...t[7] || (t[7] = [
156
+ n(" Themes ", -1)
157
+ ])]),
158
+ description: l(() => [...t[8] || (t[8] = [
159
+ n(" We've got a whole rainbow of themes for you to play with: ", -1)
160
+ ])]),
163
161
  default: l(() => [
164
162
  r("div", G, [
165
163
  r("div", q, [
166
- (c(), _(z, null, $(T, (s) => a(e(x), {
164
+ (c(), w(z, null, $(T, (s) => a(e(x), {
167
165
  key: s,
168
166
  class: i(
169
167
  e(m)(
@@ -188,24 +186,24 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
188
186
  thickness: "3.5"
189
187
  })) : p("", !0)
190
188
  ], 2),
191
- n(" " + w(e(j)[s]), 1)
189
+ n(" " + C(e(j)[s]), 1)
192
190
  ]),
193
191
  r("div", M, [
194
192
  r("span", {
195
193
  class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
196
- style: C({
194
+ style: _({
197
195
  backgroundColor: v(s).light
198
196
  })
199
197
  }, null, 4),
200
198
  r("span", {
201
199
  class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
202
- style: C({
200
+ style: _({
203
201
  backgroundColor: v(s).dark
204
202
  })
205
203
  }, null, 4),
206
204
  r("span", {
207
205
  class: "border-c-3 inline-block h-5 w-5 rounded-full",
208
- style: C({
206
+ style: _({
209
207
  backgroundColor: v(s).accent
210
208
  })
211
209
  }, null, 4)
@@ -219,15 +217,15 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
219
217
  _: 1
220
218
  }),
221
219
  a(y, null, {
222
- title: l(() => t[9] || (t[9] = [
223
- n(" Framework Themes ")
224
- ])),
225
- description: l(() => t[10] || (t[10] = [
226
- n(" Are you a real fan? Show your support by using your favorite framework's theme! ")
227
- ])),
220
+ title: l(() => [...t[9] || (t[9] = [
221
+ n(" Framework Themes ", -1)
222
+ ])]),
223
+ description: l(() => [...t[10] || (t[10] = [
224
+ n(" Are you a real fan? Show your support by using your favorite framework's theme! ", -1)
225
+ ])]),
228
226
  default: l(() => [
229
227
  r("div", X, [
230
- (c(), _(z, null, $(B, (s) => a(e(x), {
228
+ (c(), w(z, null, $(B, (s) => a(e(x), {
231
229
  key: s,
232
230
  class: i(
233
231
  e(m)(
@@ -252,7 +250,7 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
252
250
  thickness: "3.5"
253
251
  })) : p("", !0)
254
252
  ], 2),
255
- n(" " + w(e(j)[s]), 1)
253
+ n(" " + C(e(j)[s]), 1)
256
254
  ]),
257
255
  r("div", J, [
258
256
  r("div", K, [
@@ -267,12 +265,12 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
267
265
  _: 1
268
266
  }),
269
267
  a(y, null, {
270
- title: l(() => t[11] || (t[11] = [
271
- n(" Appearance ")
272
- ])),
273
- description: l(() => t[12] || (t[12] = [
274
- n(" Choose between light, dark, or system-based appearance for your workspace. ")
275
- ])),
268
+ title: l(() => [...t[11] || (t[11] = [
269
+ n(" Appearance ", -1)
270
+ ])]),
271
+ description: l(() => [...t[12] || (t[12] = [
272
+ n(" Choose between light, dark, or system-based appearance for your workspace. ", -1)
273
+ ])]),
276
274
  default: l(() => [
277
275
  a(R)
278
276
  ]),
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as x, createElementBlock as y, openBlock as o, createVNode as l, unref as e, normalizeClass as s, withCtx as c, createElementVNode as i, createTextVNode as d, createBlock as u, createCommentVNode as f } from "vue";
2
2
  import { cva as g, ScalarButton as m, cx as p, ScalarIcon as k } from "@scalar/components";
3
3
  import { useColorMode as v } from "@scalar/use-hooks/useColorMode";
4
- const C = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ x({
4
+ const C = { class: "flex flex-col gap-2" }, z = /* @__PURE__ */ x({
5
5
  __name: "SettingsAppearance",
6
6
  setup(h) {
7
7
  const { colorMode: r, setColorMode: n } = v(), a = g({
@@ -31,10 +31,9 @@ const C = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ x({
31
31
  thickness: "3.5"
32
32
  })) : f("", !0)
33
33
  ], 2),
34
- t[3] || (t[3] = d(" System Preference (default) "))
34
+ t[3] || (t[3] = d(" System Preference (default) ", -1))
35
35
  ]),
36
- _: 1,
37
- __: [3]
36
+ _: 1
38
37
  }, 8, ["class"]),
39
38
  l(e(m), {
40
39
  class: s(e(p)(e(a)({ active: e(r) === "light" }))),
@@ -53,10 +52,9 @@ const C = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ x({
53
52
  thickness: "3.5"
54
53
  })) : f("", !0)
55
54
  ], 2),
56
- t[4] || (t[4] = d(" Light Mode Always "))
55
+ t[4] || (t[4] = d(" Light Mode Always ", -1))
57
56
  ]),
58
- _: 1,
59
- __: [4]
57
+ _: 1
60
58
  }, 8, ["class"]),
61
59
  l(e(m), {
62
60
  class: s(e(p)(e(a)({ active: e(r) === "dark" }))),
@@ -75,14 +73,13 @@ const C = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ x({
75
73
  thickness: "3.5"
76
74
  })) : f("", !0)
77
75
  ], 2),
78
- t[5] || (t[5] = d(" Dark Mode Always "))
76
+ t[5] || (t[5] = d(" Dark Mode Always ", -1))
79
77
  ]),
80
- _: 1,
81
- __: [5]
78
+ _: 1
82
79
  }, 8, ["class"])
83
80
  ]));
84
81
  }
85
82
  });
86
83
  export {
87
- j as default
84
+ z as default
88
85
  };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.8.1",
21
+ "version": "2.9.1",
22
22
  "engines": {
23
23
  "node": ">=20"
24
24
  },
@@ -226,44 +226,46 @@
226
226
  "pretty-ms": "^8.0.0",
227
227
  "shell-quote": "^1.8.1",
228
228
  "type-fest": "5.0.0",
229
- "vue": "^3.5.17",
230
- "vue-router": "^4.3.0",
229
+ "vue": "^3.5.21",
230
+ "vue-router": "4.6.2",
231
231
  "whatwg-mimetype": "^4.0.0",
232
232
  "yaml": "2.8.0",
233
233
  "zod": "4.1.11",
234
234
  "@scalar/analytics-client": "1.0.0",
235
- "@scalar/draggable": "0.2.0",
236
- "@scalar/components": "0.15.1",
237
- "@scalar/helpers": "0.0.12",
238
- "@scalar/icons": "0.4.7",
239
- "@scalar/import": "0.4.31",
240
- "@scalar/json-magic": "0.6.1",
241
- "@scalar/object-utils": "1.2.8",
242
- "@scalar/oas-utils": "0.5.2",
243
- "@scalar/openapi-parser": "0.22.3",
244
- "@scalar/themes": "0.13.22",
245
- "@scalar/postman-to-openapi": "0.3.40",
246
- "@scalar/types": "0.3.2",
247
- "@scalar/snippetz": "0.5.1",
248
- "@scalar/openapi-types": "0.5.0",
249
- "@scalar/use-hooks": "0.2.5",
250
- "@scalar/use-toasts": "0.8.0",
251
- "@scalar/workspace-store": "0.17.1",
252
- "@scalar/use-codemirror": "0.12.43"
235
+ "@scalar/draggable": "0.3.0",
236
+ "@scalar/components": "0.16.1",
237
+ "@scalar/import": "0.4.32",
238
+ "@scalar/icons": "0.5.0",
239
+ "@scalar/helpers": "0.0.13",
240
+ "@scalar/oas-utils": "0.6.1",
241
+ "@scalar/json-magic": "0.7.0",
242
+ "@scalar/object-utils": "1.2.9",
243
+ "@scalar/openapi-parser": "0.23.0",
244
+ "@scalar/postman-to-openapi": "0.3.42",
245
+ "@scalar/sidebar": "0.2.1",
246
+ "@scalar/snippetz": "0.5.2",
247
+ "@scalar/openapi-types": "0.5.1",
248
+ "@scalar/themes": "0.13.23",
249
+ "@scalar/use-codemirror": "0.12.45",
250
+ "@scalar/types": "0.4.0",
251
+ "@scalar/use-hooks": "0.3.0",
252
+ "@scalar/use-toasts": "0.9.0",
253
+ "@scalar/workspace-store": "0.18.1"
253
254
  },
254
255
  "devDependencies": {
255
256
  "@tailwindcss/vite": "^4.1.7",
256
257
  "@types/shell-quote": "^1.7.5",
257
258
  "@types/whatwg-mimetype": "^3.0.2",
258
259
  "@vitejs/plugin-vue": "6.0.1",
259
- "@vue/test-utils": "^2.4.1",
260
+ "@vue/test-utils": "2.4.6",
261
+ "fastify": "^5.3.3",
260
262
  "jsdom": "^22.1.0",
261
263
  "tailwindcss": "^4.1.7",
262
- "vite": "7.1.5",
263
- "vite-svg-loader": "^5.1.0",
264
+ "vite": "7.1.11",
265
+ "vite-svg-loader": "5.1.0",
264
266
  "vitest": "3.2.4",
265
- "@scalar/build-tooling": "0.2.7",
266
- "@scalar/galaxy": "0.5.9"
267
+ "@scalar/galaxy": "0.5.9",
268
+ "@scalar/build-tooling": "0.2.8"
267
269
  },
268
270
  "scripts": {
269
271
  "build": "scalar-build-vite",
@@ -272,6 +274,9 @@
272
274
  "lint:fix": "eslint . --fix",
273
275
  "playground:app": "vite ./playground/app -c ./vite.config.ts",
274
276
  "playground:modal": "vite ./playground/modal -c ./vite.config.ts",
277
+ "playground:v2:app": "vite ./playground/v2/app -c ./vite.config.ts",
278
+ "playground:v2:modal": "vite ./playground/v2/modal -c ./vite.config.ts",
279
+ "playground:v2:web": "vite ./playground/v2/web -c ./vite.config.ts",
275
280
  "playground:web": "vite ./playground/web -c ./vite.config.ts",
276
281
  "preview": "vite preview",
277
282
  "test": "vitest",
@@ -1,2 +0,0 @@
1
- export declare function keyMap(): Map<string, string>;
2
- //# sourceMappingURL=useKeyMap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useKeyMap.d.ts","sourceRoot":"","sources":["../../src/hooks/useKeyMap.ts"],"names":[],"mappings":"AAAA,wBAAgB,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAK5C"}
@@ -1,9 +0,0 @@
1
- function e() {
2
- return /* @__PURE__ */ new Map([
3
- ["↵", "enter"],
4
- ["N", "n"]
5
- ]);
6
- }
7
- export {
8
- e as keyMap
9
- };
package/dist/router.d.ts DELETED
@@ -1,8 +0,0 @@
1
- export { PathId, saveActiveWorkspace } from './routes.js';
2
- /** Router for the API client app */
3
- export declare const createWebHistoryRouter: () => import("vue-router").Router;
4
- /** Router factory for the API client app (but using hash history) */
5
- export declare const createWebHashRouter: () => import("vue-router").Router;
6
- /** Router factory for the API Client modal */
7
- export declare const createModalRouter: () => import("vue-router").Router;
8
- //# sourceMappingURL=router.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAEtD,oCAAoC;AACpC,eAAO,MAAM,sBAAsB,mCAI/B,CAAA;AAEJ,qEAAqE;AACrE,eAAO,MAAM,mBAAmB,mCAI5B,CAAA;AAEJ,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,mCAI1B,CAAA"}
package/dist/router.js DELETED
@@ -1,20 +0,0 @@
1
- import { modalRoutes as r, routes as t } from "./routes.js";
2
- import { PathId as p, saveActiveWorkspace as R } from "./routes.js";
3
- import { createRouter as e, createMemoryHistory as o, createWebHashHistory as s, createWebHistory as a } from "vue-router";
4
- const y = () => e({
5
- history: a(),
6
- routes: t
7
- }), m = () => e({
8
- history: s(),
9
- routes: t
10
- }), u = () => e({
11
- history: o(),
12
- routes: r
13
- });
14
- export {
15
- p as PathId,
16
- u as createModalRouter,
17
- m as createWebHashRouter,
18
- y as createWebHistoryRouter,
19
- R as saveActiveWorkspace
20
- };