@scalar/api-client 2.11.0 → 2.13.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 (491) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue2.js +35 -29
  5. package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
  6. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  7. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +2 -2
  8. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
  9. package/dist/components/CommandPalette/CommandActionForm.vue.js +14 -14
  10. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +38 -38
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
  12. package/dist/components/EmptyState.vue.d.ts.map +1 -1
  13. package/dist/components/EmptyState.vue.js +2 -2
  14. package/dist/components/EmptyState.vue2.js +27 -16
  15. package/dist/components/TopNav/TopNav.vue.js +33 -33
  16. package/dist/hooks/useClientConfig.d.ts +3 -0
  17. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  18. package/dist/layouts/App/create-api-client-app.d.ts +45 -45
  19. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  20. package/dist/layouts/Web/create-api-client-web.d.ts +45 -45
  21. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  22. package/dist/libs/create-client.d.ts +46 -46
  23. package/dist/libs/create-client.d.ts.map +1 -1
  24. package/dist/libs/errors.d.ts +1 -0
  25. package/dist/libs/errors.d.ts.map +1 -1
  26. package/dist/libs/errors.js +2 -1
  27. package/dist/libs/find-request.d.ts +1 -1
  28. package/dist/libs/hot-keys.d.ts +2 -2
  29. package/dist/libs/send-request/create-fetch-body.d.ts +2 -2
  30. package/dist/libs/send-request/create-request-operation.d.ts +4 -4
  31. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  32. package/dist/libs/send-request/create-request-operation.js +60 -51
  33. package/dist/store/active-entities.d.ts +3 -3
  34. package/dist/store/active-entities.d.ts.map +1 -1
  35. package/dist/store/collections.d.ts +4 -4
  36. package/dist/store/collections.d.ts.map +1 -1
  37. package/dist/store/index.d.ts +1 -1
  38. package/dist/store/index.d.ts.map +1 -1
  39. package/dist/store/index.js +8 -8
  40. package/dist/store/request-example.d.ts +12 -12
  41. package/dist/store/requests.d.ts +11 -11
  42. package/dist/store/security-schemes.d.ts.map +1 -1
  43. package/dist/store/store.d.ts +38 -38
  44. package/dist/store/store.d.ts.map +1 -1
  45. package/dist/store/workspace.d.ts +12 -12
  46. package/dist/style.css +1 -1
  47. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +79 -22
  48. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  49. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +52 -48
  50. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +4 -4
  51. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  52. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
  53. package/dist/v2/blocks/operation-block/components/Header.vue2.js +32 -33
  54. package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
  55. package/dist/v2/blocks/{scalar-operation-block/components/OperationBlock.vue.d.ts → request-block/RequestBlock.vue.d.ts} +3 -3
  56. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -0
  57. package/dist/v2/blocks/request-block/RequestBlock.vue.js +7 -0
  58. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +223 -0
  59. package/dist/v2/blocks/{scalar-operation-block/components/OperationBody.vue.d.ts → request-block/components/RequestBody.vue.d.ts} +1 -1
  60. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -0
  61. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +7 -0
  62. package/dist/v2/blocks/{scalar-operation-block/components/OperationBody.vue2.js → request-block/components/RequestBody.vue2.js} +15 -15
  63. package/dist/v2/blocks/{scalar-operation-block/components/OperationParams.vue.d.ts → request-block/components/RequestParams.vue.d.ts} +1 -1
  64. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -0
  65. package/dist/v2/blocks/{scalar-operation-block/components/OperationParams.vue.js → request-block/components/RequestParams.vue.js} +24 -24
  66. package/dist/v2/blocks/request-block/components/RequestParams.vue2.js +4 -0
  67. package/dist/v2/blocks/{scalar-operation-block/components/OperationTable.vue.d.ts → request-block/components/RequestTable.vue.d.ts} +2 -2
  68. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -0
  69. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +7 -0
  70. package/dist/v2/blocks/{scalar-operation-block/components/OperationTable.vue2.js → request-block/components/RequestTable.vue2.js} +8 -8
  71. package/dist/v2/blocks/{scalar-operation-block/components/OperationTableRow.vue.d.ts → request-block/components/RequestTableRow.vue.d.ts} +1 -1
  72. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -0
  73. package/dist/v2/blocks/{scalar-operation-block/components/OperationTableRow.vue.js → request-block/components/RequestTableRow.vue.js} +52 -53
  74. package/dist/v2/blocks/request-block/components/RequestTableRow.vue2.js +4 -0
  75. package/dist/v2/blocks/{scalar-operation-block/components/OperationTableTooltip.vue.d.ts → request-block/components/RequestTableTooltip.vue.d.ts} +1 -1
  76. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -0
  77. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +7 -0
  78. package/dist/v2/blocks/{scalar-operation-block/components/OperationTableTooltip.vue2.js → request-block/components/RequestTableTooltip.vue2.js} +7 -7
  79. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +24 -0
  80. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -0
  81. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +29 -0
  82. package/dist/v2/blocks/request-block/helpers/files.d.ts.map +1 -0
  83. package/dist/v2/blocks/request-block/helpers/get-parameter-content.d.ts.map +1 -0
  84. package/dist/v2/blocks/request-block/helpers/get-parameter-example.d.ts.map +1 -0
  85. package/dist/v2/blocks/request-block/helpers/get-parameter-schema.d.ts.map +1 -0
  86. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -0
  87. package/dist/v2/blocks/request-block/helpers/group-by.d.ts.map +1 -0
  88. package/dist/v2/blocks/request-block/helpers/validate-parameter.d.ts.map +1 -0
  89. package/dist/v2/blocks/request-block/index.d.ts +2 -0
  90. package/dist/v2/blocks/request-block/index.d.ts.map +1 -0
  91. package/dist/v2/blocks/request-block/index.js +4 -0
  92. package/dist/v2/blocks/{scalar-response-block/components → response-block}/ResponseBlock.vue.d.ts +3 -3
  93. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -0
  94. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +7 -0
  95. package/dist/v2/blocks/{scalar-response-block/components → response-block}/ResponseBlock.vue2.js +37 -34
  96. package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -0
  97. package/dist/v2/blocks/response-block/components/ResponseBody.vue.d.ts.map +1 -0
  98. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue.js +2 -2
  99. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue2.js +4 -4
  100. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.d.ts.map +1 -0
  101. package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.d.ts.map +1 -0
  102. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -0
  103. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue.js +1 -1
  104. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -0
  105. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue.js +1 -1
  106. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -0
  107. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +74 -0
  108. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.d.ts.map +1 -0
  109. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -0
  110. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.d.ts.map +1 -0
  111. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue.d.ts +2 -2
  112. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -0
  113. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue.js +1 -1
  114. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue2.js +18 -15
  115. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -0
  116. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +7 -0
  117. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +40 -0
  118. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue.d.ts +0 -1
  119. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -0
  120. package/dist/v2/blocks/response-block/helpers/extract-filename.d.ts.map +1 -0
  121. package/dist/v2/blocks/response-block/helpers/get-content-length.d.ts.map +1 -0
  122. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -0
  123. package/dist/v2/blocks/response-block/helpers/process-response-body.d.ts.map +1 -0
  124. package/dist/v2/blocks/response-block/index.d.ts +2 -0
  125. package/dist/v2/blocks/response-block/index.d.ts.map +1 -0
  126. package/dist/v2/blocks/response-block/index.js +4 -0
  127. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +4 -3
  128. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  129. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  130. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -67
  131. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
  132. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +205 -0
  133. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -0
  134. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +52 -52
  135. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +1 -1
  136. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
  137. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +205 -0
  138. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -0
  139. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -1
  140. package/dist/v2/components/code-input/CodeInput.vue.d.ts +1 -0
  141. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  142. package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
  143. package/dist/v2/components/code-input/CodeInput.vue2.js +29 -28
  144. package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -1
  145. package/dist/v2/components/resize/Resize.vue.js +2 -2
  146. package/dist/v2/components/server/ServerDropdown.vue.d.ts +5 -5
  147. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
  148. package/dist/v2/components/server/ServerDropdown.vue.js +38 -43
  149. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +1 -1
  150. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
  151. package/dist/v2/components/server/ServerDropdownItem.vue.js +2 -2
  152. package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -29
  153. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +24 -5
  154. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  155. package/dist/v2/components/sidebar/Sidebar.vue.js +54 -49
  156. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +18 -9
  157. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  158. package/dist/v2/components/sidebar/SidebarMenu.vue.js +36 -43
  159. package/dist/v2/features/app/App.vue.d.ts +0 -3
  160. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  161. package/dist/v2/features/app/App.vue.js +150 -90
  162. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +36 -6
  163. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  164. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  165. package/dist/v2/features/app/components/AppSidebar.vue2.js +73 -61
  166. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts +15 -0
  167. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts.map +1 -0
  168. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +56 -0
  169. package/dist/v2/features/app/components/CreateWorkspaceModal.vue2.js +4 -0
  170. package/dist/v2/features/app/components/DesktopTab.vue.d.ts +26 -0
  171. package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +1 -0
  172. package/dist/v2/features/app/components/DesktopTab.vue.js +7 -0
  173. package/dist/v2/features/app/components/DesktopTab.vue2.js +134 -0
  174. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +9 -4
  175. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
  176. package/dist/v2/features/app/components/DesktopTabs.vue.js +47 -13
  177. package/dist/v2/features/app/components/DesktopTabs.vue2.js +2 -4
  178. package/dist/v2/{components/TempReplaceMe.vue.d.ts → features/app/components/SplashScreen.vue.d.ts} +1 -1
  179. package/dist/v2/features/app/components/SplashScreen.vue.d.ts.map +1 -0
  180. package/dist/v2/features/app/components/SplashScreen.vue.js +7 -0
  181. package/dist/v2/features/app/components/SplashScreen.vue2.js +18 -0
  182. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +26 -5
  183. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
  184. package/dist/v2/features/app/components/WebTopNav.vue.js +18 -19
  185. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +1 -2
  186. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  187. package/dist/v2/features/app/helpers/create-api-client-app.js +8 -8
  188. package/dist/v2/features/app/helpers/routes.d.ts +6 -31
  189. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  190. package/dist/v2/features/app/helpers/routes.js +4 -9
  191. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  192. package/dist/v2/features/collection/DocumentCollection.vue2.js +44 -51
  193. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
  194. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +25 -25
  195. package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
  196. package/dist/v2/features/collection/components/Authentication.vue2.js +9 -7
  197. package/dist/v2/features/collection/components/Cookies.vue.d.ts +13 -1
  198. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
  199. package/dist/v2/features/collection/components/Cookies.vue.js +2 -7
  200. package/dist/v2/features/collection/components/Cookies.vue2.js +32 -0
  201. package/dist/v2/features/collection/components/Environment.vue2.js +2 -0
  202. package/dist/v2/features/collection/components/Overview.vue2.js +10 -8
  203. package/dist/v2/features/collection/components/Servers.vue2.js +26 -24
  204. package/dist/v2/features/collection/components/Settings.vue.d.ts +13 -15
  205. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  206. package/dist/v2/features/collection/components/Settings.vue.js +2 -5
  207. package/dist/v2/features/collection/components/Settings.vue2.js +51 -92
  208. package/dist/v2/features/command-palette/components/CommandActionForm.vue.d.ts +61 -0
  209. package/dist/v2/features/command-palette/components/CommandActionForm.vue.d.ts.map +1 -0
  210. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +48 -0
  211. package/dist/v2/features/command-palette/components/CommandActionForm.vue2.js +4 -0
  212. package/dist/v2/features/command-palette/components/CommandActionInput.vue.d.ts +39 -0
  213. package/dist/v2/features/command-palette/components/CommandActionInput.vue.d.ts.map +1 -0
  214. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +52 -0
  215. package/dist/v2/features/command-palette/components/CommandActionInput.vue2.js +4 -0
  216. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts +36 -0
  217. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts.map +1 -0
  218. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.js +78 -0
  219. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue2.js +4 -0
  220. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +30 -0
  221. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -0
  222. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +169 -0
  223. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue2.js +4 -0
  224. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +34 -0
  225. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -0
  226. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +175 -0
  227. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue2.js +4 -0
  228. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts +43 -0
  229. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts.map +1 -0
  230. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js +7 -0
  231. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue2.js +115 -0
  232. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +39 -0
  233. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -0
  234. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +213 -0
  235. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue2.js +4 -0
  236. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +38 -0
  237. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -0
  238. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +89 -0
  239. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue2.js +4 -0
  240. package/dist/v2/features/command-palette/components/TheCommandPalette.vue.d.ts +41 -0
  241. package/dist/v2/features/command-palette/components/TheCommandPalette.vue.d.ts.map +1 -0
  242. package/dist/v2/features/command-palette/components/TheCommandPalette.vue.js +7 -0
  243. package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +172 -0
  244. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts +33 -0
  245. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts.map +1 -0
  246. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +40 -0
  247. package/dist/v2/features/command-palette/components/WatchModeToggle.vue2.js +4 -0
  248. package/dist/v2/features/command-palette/components/index.d.ts +2 -0
  249. package/dist/v2/features/command-palette/components/index.d.ts.map +1 -0
  250. package/dist/v2/features/command-palette/components/index.js +4 -0
  251. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +23 -0
  252. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -0
  253. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js +31 -0
  254. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts +13 -0
  255. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts.map +1 -0
  256. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +12 -0
  257. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts +26 -0
  258. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts.map +1 -0
  259. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +70 -0
  260. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +23 -0
  261. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -0
  262. package/dist/v2/features/command-palette/helpers/get-postman-document-details.js +18 -0
  263. package/dist/v2/features/command-palette/helpers/is-postman-collection.d.ts +11 -0
  264. package/dist/v2/features/command-palette/helpers/is-postman-collection.d.ts.map +1 -0
  265. package/dist/v2/features/command-palette/helpers/is-postman-collection.js +11 -0
  266. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +202 -0
  267. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -0
  268. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +109 -0
  269. package/dist/v2/features/command-palette/types.d.ts +82 -0
  270. package/dist/v2/features/command-palette/types.d.ts.map +1 -0
  271. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +6 -22
  272. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
  273. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +3 -3
  274. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +121 -88
  275. package/dist/v2/features/global-cookies/index.d.ts +1 -1
  276. package/dist/v2/features/global-cookies/index.d.ts.map +1 -1
  277. package/dist/v2/features/global-cookies/index.js +2 -2
  278. package/dist/v2/features/modal/Modal.vue.d.ts +0 -2
  279. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  280. package/dist/v2/features/modal/Modal.vue.js +3 -3
  281. package/dist/v2/features/modal/Modal.vue2.js +28 -61
  282. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  283. package/dist/v2/features/modal/helpers/create-api-client-modal.js +8 -9
  284. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  285. package/dist/v2/features/operation/Operation.vue.js +36 -25
  286. package/dist/v2/features/operation/helpers/get-security-requirements.d.ts +12 -0
  287. package/dist/v2/features/operation/helpers/get-security-requirements.d.ts.map +1 -0
  288. package/dist/v2/features/operation/helpers/get-security-requirements.js +4 -0
  289. package/dist/v2/features/search/components/SearchButton.vue.d.ts +12 -0
  290. package/dist/v2/features/search/components/SearchButton.vue.d.ts.map +1 -0
  291. package/dist/v2/features/search/components/SearchButton.vue.js +71 -0
  292. package/dist/v2/features/search/components/SearchButton.vue2.js +4 -0
  293. package/dist/v2/features/search/components/SearchModal.vue.d.ts +11 -0
  294. package/dist/v2/features/search/components/SearchModal.vue.d.ts.map +1 -0
  295. package/dist/v2/features/search/components/SearchModal.vue.js +7 -0
  296. package/dist/v2/features/search/components/SearchModal.vue2.js +101 -0
  297. package/dist/v2/features/search/components/SearchResult.vue.d.ts +10 -0
  298. package/dist/v2/features/search/components/SearchResult.vue.d.ts.map +1 -0
  299. package/dist/v2/features/search/components/SearchResult.vue.js +80 -0
  300. package/dist/v2/features/search/components/SearchResult.vue2.js +4 -0
  301. package/dist/v2/features/search/helpers/create-fuse-instance.d.ts +9 -0
  302. package/dist/v2/features/search/helpers/create-fuse-instance.d.ts.map +1 -0
  303. package/dist/v2/features/search/helpers/create-fuse-instance.js +43 -0
  304. package/dist/v2/features/search/helpers/create-search-index.d.ts +7 -0
  305. package/dist/v2/features/search/helpers/create-search-index.d.ts.map +1 -0
  306. package/dist/v2/features/search/helpers/create-search-index.js +63 -0
  307. package/dist/v2/features/search/hooks/use-search-index.d.ts +14 -0
  308. package/dist/v2/features/search/hooks/use-search-index.d.ts.map +1 -0
  309. package/dist/v2/features/search/hooks/use-search-index.js +24 -0
  310. package/dist/v2/features/search/index.d.ts +3 -0
  311. package/dist/v2/features/search/index.d.ts.map +1 -0
  312. package/dist/v2/features/search/index.js +6 -0
  313. package/dist/v2/features/search/types.d.ts +24 -0
  314. package/dist/v2/features/search/types.d.ts.map +1 -0
  315. package/dist/v2/features/settings/{Settings.vue.d.ts → CollectionSettings.vue.d.ts} +2 -2
  316. package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -0
  317. package/dist/v2/features/settings/CollectionSettings.vue.js +266 -0
  318. package/dist/v2/features/settings/CollectionSettings.vue2.js +4 -0
  319. package/dist/v2/features/settings/DocumentSettings.vue.d.ts +19 -0
  320. package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -0
  321. package/dist/v2/features/settings/DocumentSettings.vue.js +7 -0
  322. package/dist/v2/features/settings/DocumentSettings.vue2.js +106 -0
  323. package/dist/v2/features/settings/index.d.ts +2 -1
  324. package/dist/v2/features/settings/index.d.ts.map +1 -1
  325. package/dist/v2/features/settings/index.js +4 -2
  326. package/dist/v2/helpers/drag-handle-factory.d.ts +16 -0
  327. package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -0
  328. package/dist/v2/helpers/drag-handle-factory.js +119 -0
  329. package/dist/v2/helpers/get-tab-details.d.ts +43 -0
  330. package/dist/v2/helpers/get-tab-details.d.ts.map +1 -0
  331. package/dist/v2/helpers/get-tab-details.js +34 -0
  332. package/dist/v2/helpers/handle-hotkeys.d.ts +23 -0
  333. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -0
  334. package/dist/v2/helpers/handle-hotkeys.js +56 -0
  335. package/dist/v2/helpers/is-url.d.ts +2 -0
  336. package/dist/v2/helpers/is-url.d.ts.map +1 -0
  337. package/dist/v2/helpers/is-url.js +5 -0
  338. package/dist/v2/helpers/remove-circular.d.ts +15 -0
  339. package/dist/v2/helpers/remove-circular.d.ts.map +1 -0
  340. package/dist/v2/helpers/remove-circular.js +18 -0
  341. package/dist/v2/helpers/slugify.d.ts +9 -0
  342. package/dist/v2/helpers/slugify.d.ts.map +1 -0
  343. package/dist/v2/helpers/slugify.js +4 -0
  344. package/dist/v2/helpers/storage.d.ts +23 -0
  345. package/dist/v2/helpers/storage.d.ts.map +1 -0
  346. package/dist/v2/helpers/storage.js +16 -0
  347. package/dist/v2/hooks/use-color-mode.d.ts +20 -0
  348. package/dist/v2/hooks/use-color-mode.d.ts.map +1 -0
  349. package/dist/v2/hooks/use-color-mode.js +24 -0
  350. package/dist/v2/hooks/use-document-watcher.d.ts +9 -7
  351. package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -1
  352. package/dist/v2/hooks/use-document-watcher.js +66 -0
  353. package/dist/v2/hooks/use-global-hot-keys.d.ts +10 -0
  354. package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -0
  355. package/dist/v2/hooks/use-global-hot-keys.js +9 -0
  356. package/dist/v2/hooks/use-sidebar-state.d.ts +15 -21
  357. package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -1
  358. package/dist/v2/hooks/use-sidebar-state.js +48 -30
  359. package/dist/v2/hooks/use-sync-path.d.ts +11 -0
  360. package/dist/v2/hooks/use-sync-path.d.ts.map +1 -0
  361. package/dist/v2/hooks/use-sync-path.js +51 -0
  362. package/dist/v2/hooks/use-tabs.d.ts +31 -0
  363. package/dist/v2/hooks/use-tabs.d.ts.map +1 -0
  364. package/dist/v2/hooks/use-tabs.js +44 -0
  365. package/dist/v2/hooks/use-workspace-client-events.d.ts +11 -2
  366. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
  367. package/dist/v2/hooks/use-workspace-client-events.js +105 -101
  368. package/dist/v2/hooks/use-workspace-selector.d.ts +28 -0
  369. package/dist/v2/hooks/use-workspace-selector.d.ts.map +1 -0
  370. package/dist/v2/hooks/use-workspace-selector.js +81 -0
  371. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  372. package/dist/views/Request/RequestRoot.vue.js +2 -2
  373. package/dist/views/Request/RequestRoot.vue2.js +86 -77
  374. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  375. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +78 -78
  376. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  377. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  378. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  379. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  380. package/dist/views/Request/RequestSection/RequestBody.vue2.js +29 -24
  381. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +29 -29
  382. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  383. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +2 -2
  384. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +19 -19
  385. package/package.json +139 -48
  386. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +0 -1
  387. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +0 -7
  388. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +0 -262
  389. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +0 -1
  390. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +0 -7
  391. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +0 -1
  392. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue2.js +0 -4
  393. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +0 -1
  394. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +0 -7
  395. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +0 -1
  396. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue2.js +0 -4
  397. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.d.ts.map +0 -1
  398. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.js +0 -7
  399. package/dist/v2/blocks/scalar-operation-block/helpers/files.d.ts.map +0 -1
  400. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.d.ts.map +0 -1
  401. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.d.ts.map +0 -1
  402. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.d.ts.map +0 -1
  403. package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.d.ts.map +0 -1
  404. package/dist/v2/blocks/scalar-operation-block/helpers/group-by.d.ts.map +0 -1
  405. package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.d.ts.map +0 -1
  406. package/dist/v2/blocks/scalar-operation-block/index.d.ts +0 -2
  407. package/dist/v2/blocks/scalar-operation-block/index.d.ts.map +0 -1
  408. package/dist/v2/blocks/scalar-operation-block/index.js +0 -4
  409. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +0 -1
  410. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +0 -1
  411. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +0 -7
  412. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +0 -1
  413. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.d.ts.map +0 -1
  414. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.d.ts.map +0 -1
  415. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.d.ts.map +0 -1
  416. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.d.ts.map +0 -1
  417. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +0 -1
  418. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.js +0 -74
  419. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.d.ts.map +0 -1
  420. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +0 -1
  421. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +0 -1
  422. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.d.ts.map +0 -1
  423. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.d.ts.map +0 -1
  424. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.js +0 -7
  425. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +0 -40
  426. package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.d.ts.map +0 -1
  427. package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.d.ts.map +0 -1
  428. package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.d.ts.map +0 -1
  429. package/dist/v2/blocks/scalar-response-block/helpers/media-types.d.ts.map +0 -1
  430. package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.d.ts.map +0 -1
  431. package/dist/v2/blocks/scalar-response-block/index.d.ts +0 -2
  432. package/dist/v2/blocks/scalar-response-block/index.d.ts.map +0 -1
  433. package/dist/v2/blocks/scalar-response-block/index.js +0 -4
  434. package/dist/v2/components/TempReplaceMe.vue.d.ts.map +0 -1
  435. package/dist/v2/components/TempReplaceMe.vue.js +0 -12
  436. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +0 -32
  437. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +0 -1
  438. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +0 -7
  439. package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +0 -58
  440. package/dist/v2/features/settings/Settings.vue.d.ts.map +0 -1
  441. package/dist/v2/features/settings/Settings.vue.js +0 -268
  442. package/dist/v2/features/settings/Settings.vue2.js +0 -4
  443. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/files.d.ts +0 -0
  444. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/files.js +0 -0
  445. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-content.d.ts +0 -0
  446. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-content.js +0 -0
  447. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-example.d.ts +0 -0
  448. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-example.js +0 -0
  449. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-schema.d.ts +0 -0
  450. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-schema.js +0 -0
  451. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-request-body-example.d.ts +0 -0
  452. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-request-body-example.js +0 -0
  453. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/group-by.d.ts +0 -0
  454. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/group-by.js +0 -0
  455. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/validate-parameter.d.ts +0 -0
  456. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/validate-parameter.js +0 -0
  457. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue.d.ts +0 -0
  458. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue.js +0 -0
  459. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue2.js +0 -0
  460. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue.d.ts +0 -0
  461. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue.d.ts +0 -0
  462. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue.js +0 -0
  463. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue2.js +0 -0
  464. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyInfo.vue.d.ts +0 -0
  465. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyInfo.vue.js +0 -0
  466. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue.d.ts +0 -0
  467. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue2.js +0 -0
  468. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue.d.ts +0 -0
  469. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue2.js +0 -0
  470. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue.d.ts +0 -0
  471. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue2.js +0 -0
  472. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue.d.ts +0 -0
  473. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue.js +0 -0
  474. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue2.js +0 -0
  475. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue.d.ts +0 -0
  476. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue.js +0 -0
  477. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue3.js +0 -0
  478. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue.d.ts +0 -0
  479. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue.js +0 -0
  480. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue2.js +0 -0
  481. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseLoadingOverlay.vue.d.ts +0 -0
  482. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue.js +0 -0
  483. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue2.js +0 -0
  484. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/extract-filename.d.ts +0 -0
  485. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/extract-filename.js +0 -0
  486. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/get-content-length.d.ts +0 -0
  487. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/get-content-length.js +0 -0
  488. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/media-types.d.ts +0 -0
  489. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/media-types.js +0 -0
  490. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/process-response-body.d.ts +0 -0
  491. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/process-response-body.js +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,91 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#7431](https://github.com/scalar/scalar/pull/7431) [`61c980c`](https://github.com/scalar/scalar/commit/61c980cebef219685a05f3a4cb1e379984922cd4) Thanks [@DemonHa](https://github.com/DemonHa)! - feat: implememnt command palette
8
+
9
+ - [#7455](https://github.com/scalar/scalar/pull/7455) [`1bc2b45`](https://github.com/scalar/scalar/commit/1bc2b45b6eabd5c5045e77d67f59d202ab04d3fb) Thanks [@DemonHa](https://github.com/DemonHa)! - feat: tabs support on the store
10
+
11
+ - [#7463](https://github.com/scalar/scalar/pull/7463) [`1eafcbe`](https://github.com/scalar/scalar/commit/1eafcbeeaad3e611b9c8f365ce2961772b8e9494) Thanks [@DemonHa](https://github.com/DemonHa)! - feat: rebuild the sidebar when a new example is created
12
+
13
+ ### Patch Changes
14
+
15
+ - [#7465](https://github.com/scalar/scalar/pull/7465) [`9342adc`](https://github.com/scalar/scalar/commit/9342adcd76e26a8e5eff75c1a2abee2c207b1487) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix: ensure `@scalar/workspace-store` consumers rely only on public exports
16
+
17
+ - [#7460](https://github.com/scalar/scalar/pull/7460) [`62b5210`](https://github.com/scalar/scalar/commit/62b521092bafeb8e83e79222e13378c4a19defc8) Thanks [@hwkr](https://github.com/hwkr)! - feat(components): update and polish ScalarLoading
18
+
19
+ - [#7387](https://github.com/scalar/scalar/pull/7387) [`bfd814a`](https://github.com/scalar/scalar/commit/bfd814a4219660face190041cc4845182b56ab03) Thanks [@geoffgscott](https://github.com/geoffgscott)! - hotfix: patch exports from build tooling bug
20
+
21
+ - [#7416](https://github.com/scalar/scalar/pull/7416) [`86f028d`](https://github.com/scalar/scalar/commit/86f028deb0b456f923edd261f5f4b0fa9b616b7d) Thanks [@amritk](https://github.com/amritk)! - feat: add update method to client v2
22
+
23
+ - Updated dependencies [[`5aa0380`](https://github.com/scalar/scalar/commit/5aa0380adfcd173e58659fb5dd57df363d985583), [`61c980c`](https://github.com/scalar/scalar/commit/61c980cebef219685a05f3a4cb1e379984922cd4), [`1bc2b45`](https://github.com/scalar/scalar/commit/1bc2b45b6eabd5c5045e77d67f59d202ab04d3fb), [`9342adc`](https://github.com/scalar/scalar/commit/9342adcd76e26a8e5eff75c1a2abee2c207b1487), [`fa361d2`](https://github.com/scalar/scalar/commit/fa361d2799e358d582fbb224a7b93d5b6e832c0e), [`62b5210`](https://github.com/scalar/scalar/commit/62b521092bafeb8e83e79222e13378c4a19defc8), [`e04879c`](https://github.com/scalar/scalar/commit/e04879c65602dfb65393876754f5344751b8953d), [`a164d76`](https://github.com/scalar/scalar/commit/a164d76f21437b3a35210d62a996b6c9d483e5a4), [`dd8e9dc`](https://github.com/scalar/scalar/commit/dd8e9dc118d3ae98180e2a93bd6ba11e982abbf8), [`ea13cd2`](https://github.com/scalar/scalar/commit/ea13cd2a44ff1ba7f19abcfcad1e51c9e7a0b75d), [`bfd814a`](https://github.com/scalar/scalar/commit/bfd814a4219660face190041cc4845182b56ab03), [`ea13cd2`](https://github.com/scalar/scalar/commit/ea13cd2a44ff1ba7f19abcfcad1e51c9e7a0b75d), [`612eb05`](https://github.com/scalar/scalar/commit/612eb05f61ad97272206f1b7ff85a725131ca917), [`35af6bf`](https://github.com/scalar/scalar/commit/35af6bfce4bc4ae3d0fc5783ea36e0165e964361), [`86f028d`](https://github.com/scalar/scalar/commit/86f028deb0b456f923edd261f5f4b0fa9b616b7d), [`294f9fc`](https://github.com/scalar/scalar/commit/294f9fc6cfd43cdab110deb1c851883509bc2b84), [`af54a80`](https://github.com/scalar/scalar/commit/af54a80349269a4269a68f6a372f837177a3537c)]:
24
+ - @scalar/components@0.16.5
25
+ - @scalar/sidebar@0.5.0
26
+ - @scalar/workspace-store@0.22.0
27
+ - @scalar/snippetz@0.5.4
28
+ - @scalar/json-magic@0.8.3
29
+ - @scalar/openapi-types@0.5.2
30
+ - @scalar/use-toasts@0.9.1
31
+ - @scalar/helpers@0.1.3
32
+ - @scalar/types@0.5.1
33
+ - @scalar/import@0.4.36
34
+ - @scalar/themes@0.13.25
35
+ - @scalar/use-codemirror@0.12.49
36
+ - @scalar/oas-utils@0.6.5
37
+ - @scalar/analytics-client@1.0.0
38
+ - @scalar/draggable@0.3.0
39
+ - @scalar/icons@0.5.0
40
+ - @scalar/object-utils@1.2.13
41
+ - @scalar/openapi-parser@0.23.4
42
+ - @scalar/postman-to-openapi@0.3.46
43
+ - @scalar/use-hooks@0.3.1
44
+
45
+ ## 2.12.0
46
+
47
+ ### Minor Changes
48
+
49
+ - [#7310](https://github.com/scalar/scalar/pull/7310) [`6e1cb89`](https://github.com/scalar/scalar/commit/6e1cb89f71770601a5059449d68b409ffc87d332) Thanks [@DemonHa](https://github.com/DemonHa)! - feat: workspace selector
50
+
51
+ - [#7366](https://github.com/scalar/scalar/pull/7366) [`1fbd809`](https://github.com/scalar/scalar/commit/1fbd809197bfaef77d7d3cb8cf7b657f397232a7) Thanks [@DemonHa](https://github.com/DemonHa)! - feat: sidebar reordering and worksapce docuements search
52
+
53
+ - [#7384](https://github.com/scalar/scalar/pull/7384) [`3ebff92`](https://github.com/scalar/scalar/commit/3ebff92f29d8d03d626d4000e8323528e794e755) Thanks [@DemonHa](https://github.com/DemonHa)! - feat: collection and document settings and cookies page
54
+
55
+ ### Patch Changes
56
+
57
+ - [#7329](https://github.com/scalar/scalar/pull/7329) [`4cda566`](https://github.com/scalar/scalar/commit/4cda566c2dc2cf306e4e3597e292ae1c2dadd78c) Thanks [@DemonHa](https://github.com/DemonHa)! - fix: setting nested proxies directly cases problems
58
+
59
+ - [#7311](https://github.com/scalar/scalar/pull/7311) [`a35f5cf`](https://github.com/scalar/scalar/commit/a35f5cf3bce49b0ffda758e95bd31c77109e3c5b) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix(api-client): abort request on modal close
60
+
61
+ - [#7365](https://github.com/scalar/scalar/pull/7365) [`4059e68`](https://github.com/scalar/scalar/commit/4059e68375d31ec0142a8019b385bc3ac82055fc) Thanks [@amritk](https://github.com/amritk)! - feat: added hot keys to client v2
62
+
63
+ - [#7368](https://github.com/scalar/scalar/pull/7368) [`0486728`](https://github.com/scalar/scalar/commit/04867286af9156c4d8ffb688c2d200f1b5a7d752) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix(api-client): use timeouts instead of interval in `use-document-watcher`
64
+
65
+ - [#7304](https://github.com/scalar/scalar/pull/7304) [`cc9d90b`](https://github.com/scalar/scalar/commit/cc9d90b1a268a6c294adcb32f7ae8559c1dcc77e) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix(api-client): handle `onBeforeRequest` hook error
66
+
67
+ - Updated dependencies [[`d86f1d6`](https://github.com/scalar/scalar/commit/d86f1d6911ecbca70b011a2a0efb6d6e0eca59bb), [`6e1cb89`](https://github.com/scalar/scalar/commit/6e1cb89f71770601a5059449d68b409ffc87d332), [`1fbd809`](https://github.com/scalar/scalar/commit/1fbd809197bfaef77d7d3cb8cf7b657f397232a7), [`44aeef0`](https://github.com/scalar/scalar/commit/44aeef01073801165e339163462378b7b62ff68d), [`dd5c518`](https://github.com/scalar/scalar/commit/dd5c518a422dddc7948c0253861101cf741b6af0), [`0519a33`](https://github.com/scalar/scalar/commit/0519a33c7d3f3cf65b93b37392c51d3c0586cbab), [`a68b1af`](https://github.com/scalar/scalar/commit/a68b1afc54b2aa95a224fee89c3266bffed57215), [`cbedfab`](https://github.com/scalar/scalar/commit/cbedfab576502069be27ceacbea145a917214e47), [`a68b1af`](https://github.com/scalar/scalar/commit/a68b1afc54b2aa95a224fee89c3266bffed57215), [`5a108fc`](https://github.com/scalar/scalar/commit/5a108fcbc52ae7957731c23689896ba353b83d3b), [`4cda566`](https://github.com/scalar/scalar/commit/4cda566c2dc2cf306e4e3597e292ae1c2dadd78c), [`1fbd809`](https://github.com/scalar/scalar/commit/1fbd809197bfaef77d7d3cb8cf7b657f397232a7), [`cded2d6`](https://github.com/scalar/scalar/commit/cded2d6c087418c3c44731d344d0827a87b78b74), [`cbedfab`](https://github.com/scalar/scalar/commit/cbedfab576502069be27ceacbea145a917214e47), [`3ebff92`](https://github.com/scalar/scalar/commit/3ebff92f29d8d03d626d4000e8323528e794e755), [`4059e68`](https://github.com/scalar/scalar/commit/4059e68375d31ec0142a8019b385bc3ac82055fc)]:
68
+ - @scalar/workspace-store@0.21.0
69
+ - @scalar/json-magic@0.8.2
70
+ - @scalar/helpers@0.1.2
71
+ - @scalar/sidebar@0.4.0
72
+ - @scalar/types@0.5.0
73
+ - @scalar/oas-utils@0.6.4
74
+ - @scalar/object-utils@1.2.12
75
+ - @scalar/components@0.16.4
76
+ - @scalar/themes@0.13.24
77
+ - @scalar/openapi-parser@0.23.3
78
+ - @scalar/import@0.4.35
79
+ - @scalar/postman-to-openapi@0.3.45
80
+ - @scalar/snippetz@0.5.3
81
+ - @scalar/analytics-client@1.0.0
82
+ - @scalar/draggable@0.3.0
83
+ - @scalar/icons@0.5.0
84
+ - @scalar/openapi-types@0.5.1
85
+ - @scalar/use-codemirror@0.12.48
86
+ - @scalar/use-hooks@0.3.0
87
+ - @scalar/use-toasts@0.9.0
88
+
3
89
  ## 2.11.0
4
90
 
5
91
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":"AAqXA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAQrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;;;;;AAoeJ,wBAOG"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":"AA0XA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAOrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;;;;;AAqeJ,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-78c9dbb9"]]);
4
+ const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cb2a35da"]]);
5
5
  export {
6
6
  d as default
7
7
  };
@@ -1,6 +1,7 @@
1
- import { defineComponent as E, useId as I, ref as i, watch as z, createElementBlock as L, openBlock as x, unref as a, createElementVNode as t, createVNode as d, normalizeStyle as U, createBlock as $, createCommentVNode as A, withCtx as M, toDisplayString as h } from "vue";
2
- import { ScalarButton as H, ScalarIcon as N } from "@scalar/components";
3
- import { REQUEST_METHODS as T } from "@scalar/oas-utils/helpers";
1
+ import { defineComponent as E, useId as I, ref as i, watch as z, createElementBlock as L, openBlock as w, unref as a, createElementVNode as t, createVNode as u, normalizeStyle as U, createBlock as $, createCommentVNode as A, withCtx as M, toDisplayString as h } from "vue";
2
+ import { ScalarButton as H } from "@scalar/components";
3
+ import { REQUEST_METHODS as N } from "@scalar/helpers/http/http-info";
4
+ import { ScalarIconPlay as T } from "@scalar/icons";
4
5
  import D from "../CodeInput/CodeInput.vue.js";
5
6
  import O from "../HttpMethod/HttpMethod.vue.js";
6
7
  import P from "./AddressBarHistory.vue.js";
@@ -10,7 +11,7 @@ import { useLayout as W } from "../../hooks/useLayout.js";
10
11
  const j = ["id"], F = { class: "address-bar-bg-states text-xxs group relative order-last flex w-full max-w-[calc(100dvw-24px)] flex-1 flex-row items-stretch rounded-lg p-0.75 lg:order-none lg:max-w-[580px] lg:min-w-[580px] xl:max-w-[720px] xl:min-w-[720px]" }, G = { class: "pointer-events-none absolute top-0 left-0 block h-full w-full overflow-hidden rounded-lg border" }, J = { class: "z-context-plus flex gap-1" }, X = { class: "scroll-timeline-x scroll-timeline-x-hidden z-context-plus relative flex w-full bg-blend-normal" }, Y = {
11
12
  "aria-hidden": "true",
12
13
  class: "inline-flex items-center gap-1"
13
- }, Z = { class: "sr-only" }, ie = /* @__PURE__ */ E({
14
+ }, Z = { class: "sr-only" }, ue = /* @__PURE__ */ E({
14
15
  __name: "AddressBar",
15
16
  props: {
16
17
  collection: {},
@@ -22,13 +23,13 @@ const j = ["id"], F = { class: "address-bar-bg-states text-xxs group relative or
22
23
  },
23
24
  emits: ["importCurl"],
24
25
  setup(n) {
25
- const c = I(), { requestMutators: f, events: u } = Q(), { layout: p } = W(), m = i(null), g = i(null), w = (e) => {
26
- n.operation.path !== e && f.edit(n.operation.uid, "path", e);
26
+ const f = I(), { requestMutators: c, events: d } = Q(), { layout: p } = W(), m = i(null), g = i(null), x = (e) => {
27
+ n.operation.path !== e && c.edit(n.operation.uid, "path", e);
27
28
  };
28
29
  z(
29
30
  () => n.operation.path,
30
31
  (e) => {
31
- e && w(e);
32
+ e && x(e);
32
33
  }
33
34
  );
34
35
  const o = i(100), b = i(0), l = i(!1), s = i();
@@ -44,29 +45,34 @@ const j = ["id"], F = { class: "address-bar-bg-states text-xxs group relative or
44
45
  function C() {
45
46
  clearInterval(s.value), s.value = void 0, o.value = 100, l.value = !1;
46
47
  }
47
- u.requestStatus.on((e) => {
48
- e === "start" && B(), e === "stop" && y(), e === "abort" && C();
49
- }), u.focusAddressBar.on(() => {
48
+ d.requestStatus.on((e) => {
49
+ if (e === "start")
50
+ return B();
51
+ if (e === "stop")
52
+ return y();
53
+ if (e === "abort")
54
+ return C();
55
+ }), d.focusAddressBar.on(() => {
50
56
  p === "modal" ? g.value?.$el?.focus() : m.value?.focus();
51
57
  });
52
58
  function R(e) {
53
- f.edit(n.operation.uid, "method", e);
59
+ c.edit(n.operation.uid, "method", e);
54
60
  }
55
61
  function q() {
56
62
  const { method: e } = n.operation;
57
- return T[e].colorVar;
63
+ return N[e].colorVar;
58
64
  }
59
65
  function v() {
60
- l.value || (l.value = !0, u.executeRequest.emit({ requestUid: n.operation.uid }));
66
+ l.value || (l.value = !0, d.executeRequest.emit({ requestUid: n.operation.uid }));
61
67
  }
62
- u.hotKeys.on((e) => {
68
+ d.hotKeys.on((e) => {
63
69
  e?.focusAddressBar && m.value?.focus(), e?.executeRequest && v();
64
70
  });
65
71
  function S(e) {
66
- f.edit(n.operation.uid, "path", e);
72
+ c.edit(n.operation.uid, "path", e);
67
73
  }
68
- return (e, r) => (x(), L("div", {
69
- id: a(c),
74
+ return (e, r) => (w(), L("div", {
75
+ id: a(f),
70
76
  class: "scalar-address-bar order-last flex h-(--scalar-address-bar-height) w-full [--scalar-address-bar-height:32px] lg:order-none lg:w-auto"
71
77
  }, [
72
78
  t("div", F, [
@@ -80,7 +86,7 @@ const j = ["id"], F = { class: "address-bar-bg-states text-xxs group relative or
80
86
  }, null, 4)
81
87
  ]),
82
88
  t("div", J, [
83
- d(O, {
89
+ u(O, {
84
90
  isEditable: a(p) !== "modal",
85
91
  isSquare: "",
86
92
  method: e.operation.method,
@@ -89,16 +95,16 @@ const j = ["id"], F = { class: "address-bar-bg-states text-xxs group relative or
89
95
  }, null, 8, ["isEditable", "method"])
90
96
  ]),
91
97
  t("div", X, [
92
- e.collection.servers.length ? (x(), $(a(K), {
98
+ e.collection.servers.length ? (w(), $(a(K), {
93
99
  key: 0,
94
100
  collection: e.collection,
95
101
  layout: "client",
96
102
  operation: e.operation,
97
103
  server: e.server,
98
- target: a(c)
104
+ target: a(f)
99
105
  }, null, 8, ["collection", "operation", "server", "target"])) : A("", !0),
100
106
  r[1] || (r[1] = t("div", { class: "fade-left" }, null, -1)),
101
- d(D, {
107
+ u(D, {
102
108
  ref_key: "addressBarRef",
103
109
  ref: m,
104
110
  "aria-label": "Path",
@@ -121,11 +127,11 @@ const j = ["id"], F = { class: "address-bar-bg-states text-xxs group relative or
121
127
  }, null, 8, ["disabled", "envVariables", "environment", "modelValue", "placeholder", "workspace"]),
122
128
  r[2] || (r[2] = t("div", { class: "fade-right" }, null, -1))
123
129
  ]),
124
- d(P, {
130
+ u(P, {
125
131
  operation: e.operation,
126
- target: a(c)
132
+ target: a(f)
127
133
  }, null, 8, ["operation", "target"]),
128
- d(a(H), {
134
+ u(a(H), {
129
135
  ref_key: "sendButtonRef",
130
136
  ref: g,
131
137
  class: "z-context-plus relative h-auto shrink-0 overflow-hidden py-1 pr-2.5 pl-2 font-bold",
@@ -134,10 +140,10 @@ const j = ["id"], F = { class: "address-bar-bg-states text-xxs group relative or
134
140
  }, {
135
141
  default: M(() => [
136
142
  t("span", Y, [
137
- d(a(N), {
138
- class: "relative shrink-0 fill-current",
139
- icon: "Play",
140
- size: "xs"
143
+ u(a(T), {
144
+ class: "relative shrink-0",
145
+ size: "xs",
146
+ weight: "fill"
141
147
  }),
142
148
  r[3] || (r[3] = t("span", { class: "text-xxs hidden lg:flex" }, "Send", -1))
143
149
  ]),
@@ -150,5 +156,5 @@ const j = ["id"], F = { class: "address-bar-bg-states text-xxs group relative or
150
156
  }
151
157
  });
152
158
  export {
153
- ie as default
159
+ ue as default
154
160
  };
@@ -76,8 +76,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
76
76
  onBlur?: ((v: string) => any) | undefined;
77
77
  onCurl?: ((v: string) => any) | undefined;
78
78
  }>, {
79
- nullable: boolean;
80
79
  disabled: boolean;
80
+ nullable: boolean;
81
81
  colorPicker: boolean;
82
82
  emitOnBlur: boolean;
83
83
  extensions: Extension[];
@@ -1 +1 @@
1
- {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AA2eA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACf,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAyC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAGrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;;kBAUxC,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;iBACP,SAAS,EAAE;kBACV,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;mBACZ,OAAO;;IAiMxB,0BAA0B;;0BArJC,MAAM;0BA0BN,MAAM;wBAOR,MAAM;;;;;;;;;;kBAtGf,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;iBACP,SAAS,EAAE;kBACV,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;mBACZ,OAAO;;;;;;;cANX,OAAO;cAlBP,OAAO;iBADJ,OAAO;gBAIR,OAAO;gBACP,SAAS,EAAE;sBAGL,OAAO;kBAMX,OAAO;0BACC,OAAO;mBAKd,OAAO;kBAKR,OAAO;;cAkhBZ,CAAC,KAAK,IAAiB,KAAK,GAAG;;WAClC,CAAC,KAAK,IAAiB,KAAK,GAAG;;AA9iB1C,wBAmmBC;AAYD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AA2eA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACf,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAyC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAGrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;;kBAUxC,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;iBACP,SAAS,EAAE;kBACV,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;mBACZ,OAAO;;IAiMxB,0BAA0B;;0BArJC,MAAM;0BA0BN,MAAM;wBAOR,MAAM;;;;;;;;;;kBAtGf,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;iBACP,SAAS,EAAE;kBACV,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;mBACZ,OAAO;;;;;;;cAxBX,OAAO;cAkBP,OAAO;iBAnBJ,OAAO;gBAIR,OAAO;gBACP,SAAS,EAAE;sBAGL,OAAO;kBAMX,OAAO;0BACC,OAAO;mBAKd,OAAO;kBAKR,OAAO;;cAkhBZ,CAAC,KAAK,IAAiB,KAAK,GAAG;;WAClC,CAAC,KAAK,IAAiB,KAAK,GAAG;;AA9iB1C,wBAmmBC;AAYD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,6 +1,6 @@
1
- import { type useLoadingState } from '@scalar/components';
1
+ import { type LoadingState } from '@scalar/components';
2
2
  type __VLS_Props = {
3
- loading?: ReturnType<typeof useLoadingState>;
3
+ loader?: LoadingState;
4
4
  disabled?: boolean;
5
5
  };
6
6
  declare var __VLS_1: {}, __VLS_3: {}, __VLS_9: {};
@@ -1 +1 @@
1
- {"version":3,"file":"CommandActionForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandActionForm.vue"],"names":[],"mappings":"AA4CA,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,oBAAoB,CAAA;AAE3B,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAwEF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC9D,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAsB9C,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"}
1
+ {"version":3,"file":"CommandActionForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandActionForm.vue"],"names":[],"mappings":"AAwCA,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAE/E,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAwEF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC9D,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAsB9C,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"}
@@ -1,31 +1,31 @@
1
- import { defineComponent as d, createElementBlock as a, openBlock as r, withModifiers as l, withKeys as m, createElementVNode as t, normalizeProps as p, guardReactiveProps as f, unref as i, renderSlot as s, createVNode as u, withCtx as b, createTextVNode as x } from "vue";
2
- import { useBindCx as c, ScalarButton as g } from "@scalar/components";
3
- const v = { class: "flex gap-2" }, w = { class: "flex max-h-8 flex-1" }, h = /* @__PURE__ */ d({
1
+ import { defineComponent as i, createElementBlock as n, openBlock as r, withModifiers as l, withKeys as m, createElementVNode as t, normalizeProps as p, guardReactiveProps as f, unref as d, renderSlot as s, createVNode as u, withCtx as b, createTextVNode as x } from "vue";
2
+ import { useBindCx as c, ScalarButton as v } from "@scalar/components";
3
+ const w = { class: "flex gap-2" }, B = { class: "flex max-h-8 flex-1" }, h = /* @__PURE__ */ i({
4
4
  __name: "CommandActionForm",
5
5
  props: {
6
- loading: {},
6
+ loader: {},
7
7
  disabled: { type: Boolean, default: !1 }
8
8
  },
9
9
  emits: ["submit", "cancel", "back"],
10
- setup(B) {
11
- const { cx: n } = c();
12
- return (e, o) => (r(), a("form", {
10
+ setup(C) {
11
+ const { cx: a } = c();
12
+ return (e, o) => (r(), n("form", {
13
13
  class: "flex w-full flex-col gap-3",
14
14
  onKeydown: o[0] || (o[0] = m(l(() => {
15
15
  }, ["stop"]), ["enter"])),
16
- onSubmit: o[1] || (o[1] = l((C) => !e.disabled && e.$emit("submit"), ["prevent", "stop"]))
16
+ onSubmit: o[1] || (o[1] = l(($) => !e.disabled && e.$emit("submit"), ["prevent", "stop"]))
17
17
  }, [
18
- t("div", p(f(i(n)("relative flex min-h-20 flex-col rounded"))), [
18
+ t("div", p(f(d(a)("relative flex min-h-20 flex-col rounded"))), [
19
19
  s(e.$slots, "default")
20
20
  ], 16),
21
- t("div", v, [
22
- t("div", w, [
21
+ t("div", w, [
22
+ t("div", B, [
23
23
  s(e.$slots, "options")
24
24
  ]),
25
- u(i(g), {
25
+ u(d(v), {
26
26
  class: "max-h-8 px-3 text-xs",
27
27
  disabled: e.disabled,
28
- loading: e.loading,
28
+ loader: e.loader,
29
29
  type: "submit"
30
30
  }, {
31
31
  default: b(() => [
@@ -34,7 +34,7 @@ const v = { class: "flex gap-2" }, w = { class: "flex max-h-8 flex-1" }, h = /*
34
34
  ])
35
35
  ]),
36
36
  _: 3
37
- }, 8, ["disabled", "loading"])
37
+ }, 8, ["disabled", "loader"])
38
38
  ])
39
39
  ], 32));
40
40
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as J, ref as L, computed as x, watch as A, createBlock as I, openBlock as l, unref as r, withCtx as p, createElementBlock as d, Fragment as v, createElementVNode as U, createCommentVNode as Y, createVNode as w, createTextVNode as c, toDisplayString as R } from "vue";
1
+ import { defineComponent as J, ref as A, computed as x, watch as L, createBlock as I, openBlock as l, unref as r, withCtx as p, createElementBlock as d, Fragment as v, createElementVNode as U, createCommentVNode as Y, createVNode as g, createTextVNode as u, toDisplayString as R } from "vue";
2
2
  import { useLoadingState as q, ScalarButton as D, ScalarCodeBlock as G, ScalarIcon as H, ScalarTooltip as K } from "@scalar/components";
3
3
  import { useToasts as Q } from "@scalar/use-toasts";
4
4
  import { useRouter as X } from "vue-router";
@@ -13,14 +13,14 @@ import { getOpenApiDocumentDetails as re } from "../../libs/getOpenApiDocumentDe
13
13
  import { isUrl as h } from "../../libs/isUrl.js";
14
14
  import { useFileDialog as ne } from "../../hooks/useFileDialog.js";
15
15
  import { useWorkspace as ie } from "../../store/store.js";
16
- const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-row items-center justify-between gap-3" }, Pe = /* @__PURE__ */ J({
16
+ const se = { class: "flex justify-between" }, ce = { class: "flex w-full flex-row items-center justify-between gap-3" }, Pe = /* @__PURE__ */ J({
17
17
  __name: "CommandPaletteImport",
18
18
  emits: ["close", "back"],
19
- setup(ce, { emit: T }) {
20
- const C = T, _ = X(), { activeWorkspace: n, activeCollection: F } = ee(), { importSpecFile: k, importSpecFromUrl: W, events: N } = ie(), { toast: i } = Q(), s = q(), o = L(""), f = L(!0), a = x(() => P(o.value) ? le(o.value) : re(o.value)), S = x(
19
+ setup(ue, { emit: T }) {
20
+ const C = T, _ = X(), { activeWorkspace: n, activeCollection: F } = ee(), { importSpecFile: k, importSpecFromUrl: W, events: N } = ie(), { toast: i } = Q(), s = q(), o = A(""), f = A(!0), a = x(() => P(o.value) ? le(o.value) : re(o.value)), S = x(
21
21
  () => a.value ? a.value.type : "json"
22
22
  );
23
- function g(e) {
23
+ function w(e) {
24
24
  e && _.push({
25
25
  name: "collection",
26
26
  params: {
@@ -33,8 +33,8 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
33
33
  onChange: (e) => {
34
34
  const t = e?.[0];
35
35
  if (t) {
36
- const u = new FileReader();
37
- u.onload = async (E) => {
36
+ const c = new FileReader();
37
+ c.onload = async (E) => {
38
38
  const b = E.target?.result;
39
39
  try {
40
40
  if (P(b)) {
@@ -42,13 +42,13 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
42
42
  V(b),
43
43
  n.value?.uid ?? ""
44
44
  );
45
- g(m?.collection);
45
+ w(m?.collection);
46
46
  } else {
47
47
  const m = await k(
48
48
  b,
49
49
  n.value?.uid ?? ""
50
50
  );
51
- g(m?.collection);
51
+ w(m?.collection);
52
52
  }
53
53
  i("Import successful", "info"), C("close");
54
54
  } catch (m) {
@@ -56,20 +56,20 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
56
56
  const z = m?.message || "Unknown error";
57
57
  i(`Import failed: ${z}`, "error");
58
58
  }
59
- }, u.readAsText(t);
59
+ }, c.readAsText(t);
60
60
  }
61
61
  },
62
62
  multiple: !1,
63
63
  accept: ".json,.yaml,.yml"
64
64
  });
65
- A(y, (e) => {
65
+ L(y, (e) => {
66
66
  e || (f.value = !1);
67
- }), A(o, (e) => {
67
+ }), L(o, (e) => {
68
68
  h(e) || (f.value = !1);
69
69
  });
70
70
  async function M() {
71
71
  if (!(!o.value || s.isLoading)) {
72
- s.startLoading();
72
+ s.start();
73
73
  try {
74
74
  if (y.value) {
75
75
  const [e, t] = await W(
@@ -80,12 +80,12 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
80
80
  watchMode: f.value
81
81
  }
82
82
  );
83
- if (g(t?.collection), e) {
83
+ if (w(t?.collection), e) {
84
84
  i(
85
85
  "There was a possible CORS error while importing your spec, please make sure this server is allowed in the CORS policy of your OpenAPI document.",
86
86
  "error",
87
87
  { timeout: 5e3 }
88
- ), s.invalidate(2e3, !0);
88
+ ), await s.invalidate();
89
89
  return;
90
90
  }
91
91
  } else if ($.value)
@@ -94,23 +94,23 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
94
94
  V(o.value),
95
95
  n.value?.uid ?? ""
96
96
  );
97
- g(e?.collection), i("Successfully converted Postman collection", "info");
97
+ w(e?.collection), i("Successfully converted Postman collection", "info");
98
98
  } else {
99
99
  const e = await k(
100
100
  o.value,
101
101
  n.value?.uid ?? ""
102
102
  );
103
- g(e?.collection);
103
+ w(e?.collection);
104
104
  }
105
105
  else {
106
- i("Import failed: Invalid URL or OpenAPI document", "error"), s.invalidate(2e3, !0);
106
+ i("Import failed: Invalid URL or OpenAPI document", "error"), await s.invalidate();
107
107
  return;
108
108
  }
109
- s.clear(), C("close"), i("Import successful", "info");
109
+ await s.clear(), C("close"), i("Import successful", "info");
110
110
  } catch (e) {
111
111
  console.error("[importCollection]", e);
112
112
  const t = e?.message || "Unknown error";
113
- s.invalidate(2e3, !0), i(`Import failed: ${t}`, "error");
113
+ await s.invalidate(), i(`Import failed: ${t}`, "error");
114
114
  }
115
115
  }
116
116
  }
@@ -129,19 +129,19 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
129
129
  };
130
130
  return (e, t) => (l(), I(te, {
131
131
  disabled: !o.value.trim(),
132
- loading: r(s),
132
+ loader: r(s),
133
133
  onSubmit: M
134
134
  }, {
135
135
  options: p(() => [
136
- U("div", ue, [
137
- w(r(D), {
136
+ U("div", ce, [
137
+ g(r(D), {
138
138
  class: "hover:bg-b-2 relative max-h-8 gap-1.5 p-2 text-xs",
139
139
  variant: "outlined",
140
140
  onClick: r(B)
141
141
  }, {
142
142
  default: p(() => [
143
- t[5] || (t[5] = c(" JSON, or YAML File ", -1)),
144
- w(r(H), {
143
+ t[5] || (t[5] = u(" JSON, or YAML File ", -1)),
144
+ g(r(H), {
145
145
  class: "text-c-3",
146
146
  icon: "Upload",
147
147
  size: "md"
@@ -149,14 +149,14 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
149
149
  ]),
150
150
  _: 1
151
151
  }, 8, ["onClick"]),
152
- w(r(K), {
152
+ g(r(K), {
153
153
  content: y.value ? "Watch mode automatically updates the API client when the OpenAPI URL content changes, ensuring your client remains up-to-date." : "Watch mode is only available for URL imports. When enabled it automatically updates the API client when the OpenAPI URL content changes.",
154
154
  placement: "bottom"
155
155
  }, {
156
156
  default: p(() => [
157
- w(ae, {
157
+ g(ae, {
158
158
  modelValue: f.value,
159
- "onUpdate:modelValue": t[2] || (t[2] = (u) => f.value = u),
159
+ "onUpdate:modelValue": t[2] || (t[2] = (c) => f.value = c),
160
160
  disabled: !y.value
161
161
  }, null, 8, ["modelValue", "disabled"])
162
162
  ]),
@@ -165,17 +165,17 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
165
165
  ])
166
166
  ]),
167
167
  submit: p(() => [
168
- t[6] || (t[6] = c(" Import ", -1)),
168
+ t[6] || (t[6] = u(" Import ", -1)),
169
169
  y.value ? (l(), d(v, { key: 0 }, [
170
- c(" from URL ")
170
+ u(" from URL ")
171
171
  ], 64)) : a.value && S.value ? (l(), d(v, { key: 1 }, [
172
172
  a.value.title ? (l(), d(v, { key: 0 }, [
173
- c(' "' + R(a.value.title) + '" ', 1)
173
+ u(' "' + R(a.value.title) + '" ', 1)
174
174
  ], 64)) : (l(), d(v, { key: 1 }, [
175
- c(R(a.value.version), 1)
175
+ u(R(a.value.version), 1)
176
176
  ], 64))
177
177
  ], 64)) : (l(), d(v, { key: 2 }, [
178
- c(" Collection ")
178
+ u(" Collection ")
179
179
  ], 64))
180
180
  ]),
181
181
  default: p(() => [
@@ -183,18 +183,18 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
183
183
  key: 0,
184
184
  modelValue: o.value,
185
185
  placeholder: "OpenAPI/Swagger/Postman URL or cURL",
186
- onOnDelete: t[0] || (t[0] = (u) => C("back", u)),
186
+ onOnDelete: t[0] || (t[0] = (c) => C("back", c)),
187
187
  "onUpdate:modelValue": j
188
188
  }, null, 8, ["modelValue"])) : (l(), d(v, { key: 1 }, [
189
189
  U("div", se, [
190
190
  t[4] || (t[4] = U("div", { class: "text-c-2 min-h-8 w-full py-2 pl-12 text-center text-xs" }, " Preview ", -1)),
191
- w(r(D), {
191
+ g(r(D), {
192
192
  class: "hover:bg-b-2 relative ml-auto max-h-8 gap-1.5 p-2 text-xs",
193
193
  variant: "ghost",
194
- onClick: t[1] || (t[1] = (u) => o.value = "")
194
+ onClick: t[1] || (t[1] = (c) => o.value = "")
195
195
  }, {
196
196
  default: p(() => [...t[3] || (t[3] = [
197
- c(" Clear ", -1)
197
+ u(" Clear ", -1)
198
198
  ])]),
199
199
  _: 1
200
200
  })
@@ -209,7 +209,7 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
209
209
  ], 64))
210
210
  ]),
211
211
  _: 1
212
- }, 8, ["disabled", "loading"]));
212
+ }, 8, ["disabled", "loader"]));
213
213
  }
214
214
  });
215
215
  export {
@@ -117,7 +117,7 @@ export declare const PaletteComponents: {
117
117
  lang?: string | undefined;
118
118
  label?: string | undefined;
119
119
  }[] | undefined;
120
- 'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
120
+ 'x-scalar-stability'?: import("@scalar/types/legacy").XScalarStability | undefined;
121
121
  type?: "request" | undefined;
122
122
  uid?: string | undefined;
123
123
  path?: string | undefined;
@@ -185,7 +185,7 @@ export declare const PaletteComponents: {
185
185
  lang?: string | undefined;
186
186
  label?: string | undefined;
187
187
  }[] | undefined;
188
- 'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
188
+ 'x-scalar-stability'?: import("@scalar/types/legacy").XScalarStability | undefined;
189
189
  type?: "request" | undefined;
190
190
  uid?: string | undefined;
191
191
  path?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyState.vue.d.ts","sourceRoot":"","sources":["../../src/components/EmptyState.vue"],"names":[],"mappings":";AAkJA,wBAKG"}
1
+ {"version":3,"file":"EmptyState.vue.d.ts","sourceRoot":"","sources":["../../src/components/EmptyState.vue"],"names":[],"mappings":";AA+LA,wBAKG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./EmptyState.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-45a9fc44"]]);
4
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b1211b87"]]);
5
5
  export {
6
- r as default
6
+ a as default
7
7
  };