@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
@@ -0,0 +1,205 @@
1
+ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
2
+ import type { ApiKeyObject, ComponentsObject, HttpObject, SecurityRequirementObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
+ type __VLS_Props = {
4
+ environment: XScalarEnvironment;
5
+ /** Controls the display of certain borders which are used when we are non-collapsible */
6
+ isStatic: boolean;
7
+ selectedSecuritySchemas: SecurityRequirementObject;
8
+ securitySchemes: NonNullable<ComponentsObject['securitySchemes']>;
9
+ server: ServerObject | undefined;
10
+ };
11
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
+ "update:selectedScopes": (payload: Omit<{
13
+ id: string[];
14
+ name: string;
15
+ scopes: string[];
16
+ meta: import("@scalar/workspace-store/mutators").AuthMeta;
17
+ }, "meta">) => any;
18
+ "update:securityScheme": (payload: ({
19
+ type: "http";
20
+ } & Partial<Omit<HttpObject, "type">>) | ({
21
+ type: "apiKey";
22
+ } & Partial<Omit<ApiKeyObject, "type">>) | ({
23
+ type: "oauth2";
24
+ } & {
25
+ description?: string | undefined;
26
+ 'x-default-scopes'?: string[] | undefined;
27
+ flows?: {
28
+ implicit?: {
29
+ refreshUrl?: string | undefined;
30
+ scopes?: {
31
+ [x: string]: string | undefined;
32
+ } | undefined;
33
+ 'x-scalar-secret-client-id'?: string | undefined;
34
+ 'x-scalar-secret-token'?: string | undefined;
35
+ 'x-scalar-security-query'?: {
36
+ [x: string]: string | undefined;
37
+ } | undefined;
38
+ 'x-scalar-security-body'?: {
39
+ [x: string]: string | undefined;
40
+ } | undefined;
41
+ 'x-tokenName'?: string | undefined;
42
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
43
+ authorizationUrl?: string | undefined;
44
+ 'x-scalar-secret-redirect-uri'?: string | undefined;
45
+ } | undefined;
46
+ password?: {
47
+ refreshUrl?: string | undefined;
48
+ scopes?: {
49
+ [x: string]: string | undefined;
50
+ } | undefined;
51
+ 'x-scalar-secret-client-id'?: string | undefined;
52
+ 'x-scalar-secret-token'?: string | undefined;
53
+ 'x-scalar-security-query'?: {
54
+ [x: string]: string | undefined;
55
+ } | undefined;
56
+ 'x-scalar-security-body'?: {
57
+ [x: string]: string | undefined;
58
+ } | undefined;
59
+ 'x-tokenName'?: string | undefined;
60
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
61
+ tokenUrl?: string | undefined;
62
+ 'x-scalar-secret-username'?: string | undefined;
63
+ 'x-scalar-secret-password'?: string | undefined;
64
+ 'x-scalar-secret-client-secret'?: string | undefined;
65
+ } | undefined;
66
+ clientCredentials?: {
67
+ refreshUrl?: string | undefined;
68
+ scopes?: {
69
+ [x: string]: string | undefined;
70
+ } | undefined;
71
+ 'x-scalar-secret-client-id'?: string | undefined;
72
+ 'x-scalar-secret-token'?: string | undefined;
73
+ 'x-scalar-security-query'?: {
74
+ [x: string]: string | undefined;
75
+ } | undefined;
76
+ 'x-scalar-security-body'?: {
77
+ [x: string]: string | undefined;
78
+ } | undefined;
79
+ 'x-tokenName'?: string | undefined;
80
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
81
+ tokenUrl?: string | undefined;
82
+ 'x-scalar-secret-client-secret'?: string | undefined;
83
+ } | undefined;
84
+ authorizationCode?: {
85
+ refreshUrl?: string | undefined;
86
+ scopes?: {
87
+ [x: string]: string | undefined;
88
+ } | undefined;
89
+ 'x-scalar-secret-client-id'?: string | undefined;
90
+ 'x-scalar-secret-token'?: string | undefined;
91
+ 'x-scalar-security-query'?: {
92
+ [x: string]: string | undefined;
93
+ } | undefined;
94
+ 'x-scalar-security-body'?: {
95
+ [x: string]: string | undefined;
96
+ } | undefined;
97
+ 'x-tokenName'?: string | undefined;
98
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
99
+ authorizationUrl?: string | undefined;
100
+ tokenUrl?: string | undefined;
101
+ 'x-scalar-secret-client-secret'?: string | undefined;
102
+ 'x-scalar-secret-redirect-uri'?: string | undefined;
103
+ 'x-usePkce'?: "SHA-256" | "plain" | "no" | undefined;
104
+ } | undefined;
105
+ } | undefined;
106
+ })) => any;
107
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
108
+ "onUpdate:selectedScopes"?: ((payload: Omit<{
109
+ id: string[];
110
+ name: string;
111
+ scopes: string[];
112
+ meta: import("@scalar/workspace-store/mutators").AuthMeta;
113
+ }, "meta">) => any) | undefined;
114
+ "onUpdate:securityScheme"?: ((payload: ({
115
+ type: "http";
116
+ } & Partial<Omit<HttpObject, "type">>) | ({
117
+ type: "apiKey";
118
+ } & Partial<Omit<ApiKeyObject, "type">>) | ({
119
+ type: "oauth2";
120
+ } & {
121
+ description?: string | undefined;
122
+ 'x-default-scopes'?: string[] | undefined;
123
+ flows?: {
124
+ implicit?: {
125
+ refreshUrl?: string | undefined;
126
+ scopes?: {
127
+ [x: string]: string | undefined;
128
+ } | undefined;
129
+ 'x-scalar-secret-client-id'?: string | undefined;
130
+ 'x-scalar-secret-token'?: string | undefined;
131
+ 'x-scalar-security-query'?: {
132
+ [x: string]: string | undefined;
133
+ } | undefined;
134
+ 'x-scalar-security-body'?: {
135
+ [x: string]: string | undefined;
136
+ } | undefined;
137
+ 'x-tokenName'?: string | undefined;
138
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
139
+ authorizationUrl?: string | undefined;
140
+ 'x-scalar-secret-redirect-uri'?: string | undefined;
141
+ } | undefined;
142
+ password?: {
143
+ refreshUrl?: string | undefined;
144
+ scopes?: {
145
+ [x: string]: string | undefined;
146
+ } | undefined;
147
+ 'x-scalar-secret-client-id'?: string | undefined;
148
+ 'x-scalar-secret-token'?: string | undefined;
149
+ 'x-scalar-security-query'?: {
150
+ [x: string]: string | undefined;
151
+ } | undefined;
152
+ 'x-scalar-security-body'?: {
153
+ [x: string]: string | undefined;
154
+ } | undefined;
155
+ 'x-tokenName'?: string | undefined;
156
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
157
+ tokenUrl?: string | undefined;
158
+ 'x-scalar-secret-username'?: string | undefined;
159
+ 'x-scalar-secret-password'?: string | undefined;
160
+ 'x-scalar-secret-client-secret'?: string | undefined;
161
+ } | undefined;
162
+ clientCredentials?: {
163
+ refreshUrl?: string | undefined;
164
+ scopes?: {
165
+ [x: string]: string | undefined;
166
+ } | undefined;
167
+ 'x-scalar-secret-client-id'?: string | undefined;
168
+ 'x-scalar-secret-token'?: string | undefined;
169
+ 'x-scalar-security-query'?: {
170
+ [x: string]: string | undefined;
171
+ } | undefined;
172
+ 'x-scalar-security-body'?: {
173
+ [x: string]: string | undefined;
174
+ } | undefined;
175
+ 'x-tokenName'?: string | undefined;
176
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
177
+ tokenUrl?: string | undefined;
178
+ 'x-scalar-secret-client-secret'?: string | undefined;
179
+ } | undefined;
180
+ authorizationCode?: {
181
+ refreshUrl?: string | undefined;
182
+ scopes?: {
183
+ [x: string]: string | undefined;
184
+ } | undefined;
185
+ 'x-scalar-secret-client-id'?: string | undefined;
186
+ 'x-scalar-secret-token'?: string | undefined;
187
+ 'x-scalar-security-query'?: {
188
+ [x: string]: string | undefined;
189
+ } | undefined;
190
+ 'x-scalar-security-body'?: {
191
+ [x: string]: string | undefined;
192
+ } | undefined;
193
+ 'x-tokenName'?: string | undefined;
194
+ 'x-scalar-credentials-location'?: "header" | "body" | undefined;
195
+ authorizationUrl?: string | undefined;
196
+ tokenUrl?: string | undefined;
197
+ 'x-scalar-secret-client-secret'?: string | undefined;
198
+ 'x-scalar-secret-redirect-uri'?: string | undefined;
199
+ 'x-usePkce'?: "SHA-256" | "plain" | "no" | undefined;
200
+ } | undefined;
201
+ } | undefined;
202
+ })) => any) | undefined;
203
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
204
+ export default _default;
205
+ //# sourceMappingURL=RequestAuthTab.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue"],"names":[],"mappings":"AAiTA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,yBAAyB,EAEzB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,yFAAyF;IACzF,QAAQ,EAAE,OAAO,CAAA;IACjB,uBAAuB,EAAE,yBAAyB,CAAA;IAClD,eAAe,EAAE,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACjE,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;CACjC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkiBF,wBAOG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA"}
@@ -56,6 +56,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
56
56
  handleFieldSubmit?: (value: string) => void;
57
57
  }, {
58
58
  focus: () => void | undefined;
59
+ isFocused: Ref<boolean, boolean>;
59
60
  handleChange: (value: string) => void;
60
61
  handleSubmit: (value: string) => void;
61
62
  handleBlur: (value: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/code-input/CodeInput.vue"],"names":[],"mappings":"AAumBA,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACf,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAEnH,OAAO,EAAyC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAIrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;;gBAcvC,MAAM,GAAG,MAAM;IAC3B,6FAA6F;iBAChF,kBAAkB,GAAG,SAAS;IAC3C,mEAAmE;WAC5D,MAAM,GAAG,MAAM,EAAE;IACxB,sCAAsC;eAC3B,OAAO;IAClB,yBAAyB;YACjB,OAAO;IACf,kDAAkD;aACzC,YAAY;IACrB,mDAAmD;WAC5C,MAAM,EAAE;IACf,2CAA2C;eAChC,MAAM,EAAE;IACnB,2CAA2C;cACjC,MAAM,GAAG,MAAM;IACzB,2CAA2C;eAChC,OAAO;IAClB,uCAAuC;kBACzB,MAAM;IACpB,8BAA8B;eACnB,OAAO;IAClB,oCAAoC;kBACtB,OAAO;IACrB,kCAAkC;kBACpB,OAAO;IACrB,qBAAqB;WACd,OAAO;IACd,2BAA2B;mBACZ,OAAO;IACtB,+BAA+B;eACpB,kBAAkB;IAC7B,uCAAuC;iBAC1B,SAAS,EAAE;IACxB,sCAAsC;uBACnB,OAAO;IAC1B,wBAAwB;mBACT,OAAO;IACtB,wCAAwC;2BACjB,OAAO;IAC9B,gCAAgC;iBACnB,OAAO;IACpB,wCAAwC;oBACxB,OAAO;IACvB,oCAAoC;iBACvB,OAAO;IACpB,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAC3C,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;;;0BAyFhB,MAAM,KAAG,IAAI;0BAiCb,MAAM,KAAG,IAAI;wBAWf,MAAM,KAAG,IAAI;;;;;;;;;;;gBAvL1B,MAAM,GAAG,MAAM;IAC3B,6FAA6F;iBAChF,kBAAkB,GAAG,SAAS;IAC3C,mEAAmE;WAC5D,MAAM,GAAG,MAAM,EAAE;IACxB,sCAAsC;eAC3B,OAAO;IAClB,yBAAyB;YACjB,OAAO;IACf,kDAAkD;aACzC,YAAY;IACrB,mDAAmD;WAC5C,MAAM,EAAE;IACf,2CAA2C;eAChC,MAAM,EAAE;IACnB,2CAA2C;cACjC,MAAM,GAAG,MAAM;IACzB,2CAA2C;eAChC,OAAO;IAClB,uCAAuC;kBACzB,MAAM;IACpB,8BAA8B;eACnB,OAAO;IAClB,oCAAoC;kBACtB,OAAO;IACrB,kCAAkC;kBACpB,OAAO;IACrB,qBAAqB;WACd,OAAO;IACd,2BAA2B;mBACZ,OAAO;IACtB,+BAA+B;eACpB,kBAAkB;IAC7B,uCAAuC;iBAC1B,SAAS,EAAE;IACxB,sCAAsC;uBACnB,OAAO;IAC1B,wBAAwB;mBACT,OAAO;IACtB,wCAAwC;2BACjB,OAAO;IAC9B,gCAAgC;iBACnB,OAAO;IACpB,wCAAwC;oBACxB,OAAO;IACvB,oCAAoC;iBACvB,OAAO;IACpB,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAC3C,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;;;;;;;;cA6kB/B,CAAC,KAAK,IAAiB,KAAK,GAAG;;WAClC,CAAC,KAAK,IAAiB,KAAK,GAAG;;AAxoB1C,wBA4rBC;AAOD,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/v2/components/code-input/CodeInput.vue"],"names":[],"mappings":"AAwmBA,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACf,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAEnH,OAAO,EAAyC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAIrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;;gBAcvC,MAAM,GAAG,MAAM;IAC3B,6FAA6F;iBAChF,kBAAkB,GAAG,SAAS;IAC3C,mEAAmE;WAC5D,MAAM,GAAG,MAAM,EAAE;IACxB,sCAAsC;eAC3B,OAAO;IAClB,yBAAyB;YACjB,OAAO;IACf,kDAAkD;aACzC,YAAY;IACrB,mDAAmD;WAC5C,MAAM,EAAE;IACf,2CAA2C;eAChC,MAAM,EAAE;IACnB,2CAA2C;cACjC,MAAM,GAAG,MAAM;IACzB,2CAA2C;eAChC,OAAO;IAClB,uCAAuC;kBACzB,MAAM;IACpB,8BAA8B;eACnB,OAAO;IAClB,oCAAoC;kBACtB,OAAO;IACrB,kCAAkC;kBACpB,OAAO;IACrB,qBAAqB;WACd,OAAO;IACd,2BAA2B;mBACZ,OAAO;IACtB,+BAA+B;eACpB,kBAAkB;IAC7B,uCAAuC;iBAC1B,SAAS,EAAE;IACxB,sCAAsC;uBACnB,OAAO;IAC1B,wBAAwB;mBACT,OAAO;IACtB,wCAAwC;2BACjB,OAAO;IAC9B,gCAAgC;iBACnB,OAAO;IACpB,wCAAwC;oBACxB,OAAO;IACvB,oCAAoC;iBACvB,OAAO;IACpB,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAC3C,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;;;;0BAyFhB,MAAM,KAAG,IAAI;0BAiCb,MAAM,KAAG,IAAI;wBAWf,MAAM,KAAG,IAAI;;;;;;;;;;;gBAvL1B,MAAM,GAAG,MAAM;IAC3B,6FAA6F;iBAChF,kBAAkB,GAAG,SAAS;IAC3C,mEAAmE;WAC5D,MAAM,GAAG,MAAM,EAAE;IACxB,sCAAsC;eAC3B,OAAO;IAClB,yBAAyB;YACjB,OAAO;IACf,kDAAkD;aACzC,YAAY;IACrB,mDAAmD;WAC5C,MAAM,EAAE;IACf,2CAA2C;eAChC,MAAM,EAAE;IACnB,2CAA2C;cACjC,MAAM,GAAG,MAAM;IACzB,2CAA2C;eAChC,OAAO;IAClB,uCAAuC;kBACzB,MAAM;IACpB,8BAA8B;eACnB,OAAO;IAClB,oCAAoC;kBACtB,OAAO;IACrB,kCAAkC;kBACpB,OAAO;IACrB,qBAAqB;WACd,OAAO;IACd,2BAA2B;mBACZ,OAAO;IACtB,+BAA+B;eACpB,kBAAkB;IAC7B,uCAAuC;iBAC1B,SAAS,EAAE;IACxB,sCAAsC;uBACnB,OAAO;IAC1B,wBAAwB;mBACT,OAAO;IACtB,wCAAwC;2BACjB,OAAO;IAC9B,gCAAgC;iBACnB,OAAO;IACpB,wCAAwC;oBACxB,OAAO;IACvB,oCAAoC;iBACvB,OAAO;IACpB,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAC3C,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;;;;;;;;cA8kB/B,CAAC,KAAK,IAAiB,KAAK,GAAG;;WAClC,CAAC,KAAK,IAAiB,KAAK,GAAG;;AAzoB1C,wBA6rBC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d30c143b"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fb7ca3f4"]]);
6
6
  export {
7
7
  a as default
8
8
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as W, useAttrs as j, ref as d, computed as s, toRef as r, watch as H, createElementBlock as i, openBlock as n, Fragment as Q, createBlock as c, createCommentVNode as f, normalizeClass as G, createElementVNode as v, toDisplayString as J, mergeProps as X, unref as T, withKeys as b, withModifiers as D, createTextVNode as w, renderSlot as $ } from "vue";
1
+ import { defineComponent as W, useAttrs as j, ref as d, computed as s, toRef as r, watch as H, createElementBlock as i, openBlock as n, Fragment as Q, createBlock as c, createCommentVNode as f, normalizeClass as G, createElementVNode as w, toDisplayString as J, mergeProps as X, unref as T, withKeys as b, withModifiers as D, createTextVNode as V, renderSlot as $ } from "vue";
2
2
  import { useCodeMirror as Y, useDropdown as Z, colorPicker as _ } from "@scalar/use-codemirror";
3
3
  import { nanoid as ee } from "nanoid";
4
- import V from "../data-table/DataTableInputSelect.vue.js";
4
+ import B from "../data-table/DataTableInputSelect.vue.js";
5
5
  import te from "../../features/environments/components/EnvironmentVariablesDropdown.vue.js";
6
6
  import { pillPlugin as le, backspaceCommand as ne } from "./code-variable-widget.js";
7
7
  const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
@@ -52,7 +52,7 @@ const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
52
52
  },
53
53
  emits: ["update:modelValue", "submit", "blur", "curl", "redirectToEnvironment"],
54
54
  setup(t, { expose: M, emit: R }) {
55
- const u = R, B = j(), q = B.id || `id-${ee()}`, k = d(!1), A = s(() => t.enum?.length ? !1 : t.type === "boolean" || Array.isArray(t.type) && t.type.includes("boolean")), x = s(() => t.nullable ? ["true", "false", "null"] : ["true", "false"]), I = s(() => Array.isArray(t.type) ? t.type.find((e) => e !== "null") ?? "string" : t.type), C = (e) => {
55
+ const u = R, k = j(), q = k.id || `id-${ee()}`, p = d(!1), A = s(() => t.enum?.length ? !1 : t.type === "boolean" || Array.isArray(t.type) && t.type.includes("boolean")), x = s(() => t.nullable ? ["true", "false", "null"] : ["true", "false"]), I = s(() => Array.isArray(t.type) ? t.type.find((e) => e !== "null") ?? "string" : t.type), C = (e) => {
56
56
  if (e !== t.modelValue) {
57
57
  if (t.importCurl && e.trim().toLowerCase().startsWith("curl")) {
58
58
  u("curl", e), o.value && o.value.dispatch({
@@ -66,11 +66,11 @@ const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
66
66
  }
67
67
  t.handleFieldChange ? t.handleFieldChange(e) : u("update:modelValue", e);
68
68
  }
69
- }, p = (e) => {
69
+ }, y = (e) => {
70
70
  t.handleFieldSubmit ? t.handleFieldSubmit(e) : u("submit", e);
71
71
  }, S = (e) => {
72
- k.value = !1, t.emitOnBlur && t.modelValue && p(e), u("blur", e);
73
- }, y = (e) => {
72
+ p.value = !1, t.emitOnBlur && t.modelValue && y(e), u("blur", e);
73
+ }, g = (e) => {
74
74
  u("update:modelValue", e);
75
75
  }, N = () => {
76
76
  const e = [...t.extensions];
@@ -90,7 +90,7 @@ const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
90
90
  C(e), L();
91
91
  },
92
92
  onFocus: () => {
93
- k.value = !0;
93
+ p.value = !0;
94
94
  },
95
95
  onBlur: S,
96
96
  codeMirrorRef: E,
@@ -104,24 +104,25 @@ const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
104
104
  placeholder: r(() => t.placeholder)
105
105
  });
106
106
  H(o, () => {
107
- o.value && Object.hasOwn(B, "autofocus") && o.value.focus();
107
+ o.value && Object.hasOwn(k, "autofocus") && o.value.focus();
108
108
  });
109
- const g = d(!1), F = d(""), P = d({ left: 0, top: 0 }), h = d(null), { handleDropdownSelect: K, updateDropdownVisibility: L } = Z({
109
+ const h = d(!1), F = d(""), P = d({ left: 0, top: 0 }), v = d(null), { handleDropdownSelect: K, updateDropdownVisibility: L } = Z({
110
110
  codeMirror: o,
111
111
  query: F,
112
- showDropdown: g,
112
+ showDropdown: h,
113
113
  dropdownPosition: P
114
- }), U = s(() => g.value && t.withVariables && t.layout !== "modal" && !!t.environment), m = (e, l) => {
115
- if (g.value) {
116
- e === "down" || e === "up" ? (l.preventDefault(), h.value?.handleArrowKey(e)) : e === "enter" && (l.preventDefault(), h.value?.handleSelect());
114
+ }), U = s(() => h.value && t.withVariables && t.layout !== "modal" && !!t.environment), m = (e, l) => {
115
+ if (h.value) {
116
+ e === "down" || e === "up" ? (l.preventDefault(), v.value?.handleArrowKey(e)) : e === "enter" && (l.preventDefault(), v.value?.handleSelect());
117
117
  return;
118
118
  }
119
- e === "escape" && !t.disableTabIndent && l.stopPropagation(), e === "enter" && l.target instanceof HTMLDivElement && p(l.target.textContent ?? "");
119
+ e === "escape" && !t.disableTabIndent && l.stopPropagation(), e === "enter" && l.target instanceof HTMLDivElement && y(l.target.textContent ?? "");
120
120
  };
121
121
  return M({
122
122
  focus: () => o.value?.focus(),
123
+ isFocused: p,
123
124
  handleChange: C,
124
- handleSubmit: p,
125
+ handleSubmit: y,
125
126
  handleBlur: S,
126
127
  booleanOptions: x,
127
128
  codeMirror: o,
@@ -132,26 +133,26 @@ const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
132
133
  class: G(["text-c-2 flex cursor-default items-center justify-center", e.layout === "modal" ? "font-code pr-2 pl-1 text-base" : "px-2"]),
133
134
  "data-testid": "code-input-disabled"
134
135
  }, [
135
- v("span", oe, J(e.modelValue), 1)
136
- ], 2)) : t.enum?.length ? (n(), c(V, {
136
+ w("span", oe, J(e.modelValue), 1)
137
+ ], 2)) : t.enum?.length ? (n(), c(B, {
137
138
  key: 1,
138
139
  default: t.default,
139
140
  modelValue: e.modelValue,
140
141
  type: I.value,
141
142
  value: t.enum,
142
- "onUpdate:modelValue": y
143
- }, null, 8, ["default", "modelValue", "type", "value"])) : A.value ? (n(), c(V, {
143
+ "onUpdate:modelValue": g
144
+ }, null, 8, ["default", "modelValue", "type", "value"])) : A.value ? (n(), c(B, {
144
145
  key: 2,
145
146
  default: t.default,
146
147
  modelValue: e.modelValue,
147
148
  value: x.value,
148
- "onUpdate:modelValue": y
149
- }, null, 8, ["default", "modelValue", "value"])) : e.examples?.length ? (n(), c(V, {
149
+ "onUpdate:modelValue": g
150
+ }, null, 8, ["default", "modelValue", "value"])) : e.examples?.length ? (n(), c(B, {
150
151
  key: 3,
151
152
  default: t.default,
152
153
  modelValue: e.modelValue,
153
154
  value: e.examples,
154
- "onUpdate:modelValue": y
155
+ "onUpdate:modelValue": g
155
156
  }, null, 8, ["default", "modelValue", "value"])) : (n(), i("div", X({
156
157
  key: 4,
157
158
  id: T(q)
@@ -170,11 +171,11 @@ const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
170
171
  ]
171
172
  }), [
172
173
  e.disableTabIndent ? f("", !0) : (n(), i("div", re, [...l[5] || (l[5] = [
173
- w(" Press ", -1),
174
- v("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Esc", -1),
175
- w(" then ", -1),
176
- v("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Tab", -1),
177
- w(" to exit ", -1)
174
+ V(" Press ", -1),
175
+ w("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Esc", -1),
176
+ V(" then ", -1),
177
+ w("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Tab", -1),
178
+ V(" to exit ", -1)
178
179
  ])]))
179
180
  ], 16, ae)),
180
181
  e.$slots.warning ? (n(), i("div", ie, [
@@ -187,7 +188,7 @@ const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
187
188
  U.value && e.environment ? (n(), c(te, {
188
189
  key: 8,
189
190
  ref_key: "dropdownRef",
190
- ref: h,
191
+ ref: v,
191
192
  dropdownPosition: P.value,
192
193
  environment: e.environment,
193
194
  query: F.value,
@@ -1 +1 @@
1
- {"version":3,"file":"Resize.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/resize/Resize.vue"],"names":[],"mappings":"AA2GA,KAAK,WAAW,GAAG;IACjB,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAQF,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,IAAI,OAAO,CAAA;CACpB,CAAC;AA4FF,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Resize.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/resize/Resize.vue"],"names":[],"mappings":"AA4GA,KAAK,WAAW,GAAG;IACjB,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAQF,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,IAAI,OAAO,CAAA;CACpB,CAAC;AA4FF,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import o from "./Resize.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
5
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bbcd6c0c"]]);
5
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e2c54c18"]]);
6
6
  export {
7
- e as default
7
+ c as default
8
8
  };
@@ -4,32 +4,32 @@ type __VLS_Props = {
4
4
  /** List of servers that are available for the operation/document level */
5
5
  servers: ServerObject[];
6
6
  /** Currently selected server */
7
- server: ServerObject | undefined;
7
+ server: ServerObject | null;
8
8
  /** The id of the target to use for the popover (e.g. address bar) */
9
9
  target: string;
10
10
  /** Client layout */
11
11
  layout: ClientLayout;
12
12
  };
13
13
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
- addServer: () => any;
15
14
  "update:variable": (payload: {
16
15
  index: number;
17
16
  key: string;
18
17
  value: string;
19
18
  }) => any;
20
19
  "update:selectedServer": (payload: {
21
- index: number;
20
+ url: string;
22
21
  }) => any;
22
+ "update:servers": () => any;
23
23
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
24
- onAddServer?: (() => any) | undefined;
25
24
  "onUpdate:variable"?: ((payload: {
26
25
  index: number;
27
26
  key: string;
28
27
  value: string;
29
28
  }) => any) | undefined;
30
29
  "onUpdate:selectedServer"?: ((payload: {
31
- index: number;
30
+ url: string;
32
31
  }) => any) | undefined;
32
+ "onUpdate:servers"?: (() => any) | undefined;
33
33
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
34
  export default _default;
35
35
  //# sourceMappingURL=ServerDropdown.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdown.vue"],"names":[],"mappings":"AA0HA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,0EAA0E;IAC1E,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;CACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;AAmPF,wBAOG"}
1
+ {"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdown.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,0EAA0E;IAC1E,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;CACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;AAkPF,wBAOG"}
@@ -1,7 +1,8 @@
1
- import { defineComponent as h, computed as m, createBlock as f, openBlock as t, unref as o, withCtx as l, createVNode as n, createElementBlock as d, Fragment as p, createElementVNode as s, createTextVNode as w, toDisplayString as C, createCommentVNode as U, renderList as B } from "vue";
2
- import { ScalarPopover as z, ScalarButton as A, ScalarIcon as b, ScalarFloatingBackdrop as N } from "@scalar/components";
3
- import V from "./ServerDropdownItem.vue.js";
4
- const D = ["onClick"], $ = { class: "flex h-4 w-4 items-center justify-center" }, I = /* @__PURE__ */ h({
1
+ import { defineComponent as y, computed as v, createBlock as m, openBlock as t, unref as s, withCtx as n, createVNode as d, createElementBlock as i, Fragment as p, createElementVNode as a, createTextVNode as h, toDisplayString as U, createCommentVNode as w, renderList as C } from "vue";
2
+ import { ScalarPopover as B, ScalarButton as z, ScalarFloatingBackdrop as N } from "@scalar/components";
3
+ import { ScalarIconPlus as V, ScalarIconPencilSimple as D } from "@scalar/icons";
4
+ import I from "./ServerDropdownItem.vue.js";
5
+ const P = ["onClick"], $ = { class: "flex items-center justify-center" }, W = /* @__PURE__ */ y({
5
6
  __name: "ServerDropdown",
6
7
  props: {
7
8
  servers: {},
@@ -9,15 +10,15 @@ const D = ["onClick"], $ = { class: "flex h-4 w-4 items-center justify-center" }
9
10
  target: {},
10
11
  layout: {}
11
12
  },
12
- emits: ["update:selectedServer", "update:variable", "addServer"],
13
- setup(a, { emit: S }) {
14
- const i = S, g = m(
15
- () => a.servers.map((e) => ({
13
+ emits: ["update:selectedServer", "update:variable", "update:servers"],
14
+ setup(o, { emit: f }) {
15
+ const u = f, b = v(
16
+ () => o.servers.map((e) => ({
16
17
  id: e.url,
17
18
  label: e.url ?? "Unknown server"
18
19
  }))
19
- ), k = m(() => a.server?.url?.endsWith("/") ? a.server.url.slice(0, -1) : a.server?.url || "");
20
- return (e, r) => (t(), f(o(z), {
20
+ ), S = v(() => o.server?.url?.endsWith("/") ? o.server.url.slice(0, -1) : o.server?.url || "");
21
+ return (e, r) => (t(), m(s(B), {
21
22
  class: "max-h-[inherit] p-0 text-base",
22
23
  focus: "",
23
24
  offset: 0,
@@ -26,53 +27,47 @@ const D = ["onClick"], $ = { class: "flex h-4 w-4 items-center justify-center" }
26
27
  target: e.target,
27
28
  teleport: `#${e.target}`
28
29
  }, {
29
- popover: l(({ close: x }) => [
30
- s("div", {
30
+ popover: n(({ close: g }) => [
31
+ a("div", {
31
32
  class: "custom-scroll flex max-h-[inherit] flex-col gap-1 border-t p-1",
32
- onClick: x
33
+ onClick: g
33
34
  }, [
34
- (t(!0), d(p, null, B(g.value, (u, v) => (t(), f(V, {
35
- key: u.id,
35
+ (t(!0), i(p, null, C(b.value, (l, k) => (t(), m(I, {
36
+ key: l.id,
36
37
  server: e.server,
37
- serverOption: u,
38
+ serverOption: l,
38
39
  type: "request",
39
- "onUpdate:selectedServer": (c) => i("update:selectedServer", { index: v }),
40
- "onUpdate:variable": (c, y) => i("update:variable", { index: v, key: c, value: y })
40
+ "onUpdate:selectedServer": (c) => u("update:selectedServer", { url: l.id }),
41
+ "onUpdate:variable": (c, x) => u("update:variable", { index: k, key: c, value: x })
41
42
  }, null, 8, ["server", "serverOption", "onUpdate:selectedServer", "onUpdate:variable"]))), 128)),
42
- e.layout !== "modal" ? (t(), d("button", {
43
+ e.layout !== "modal" ? (t(), i("button", {
43
44
  key: 0,
44
45
  class: "text-xxs hover:bg-b-2 flex cursor-pointer items-center gap-1.5 rounded p-1.75",
45
46
  type: "button",
46
- onClick: r[0] || (r[0] = (u) => i("addServer"))
47
+ onClick: r[0] || (r[0] = (l) => u("update:servers"))
47
48
  }, [
48
- s("div", $, [
49
- n(o(b), {
50
- icon: "Add",
51
- size: "sm"
52
- })
49
+ a("div", $, [
50
+ d(s(D), { class: "size-4" })
53
51
  ]),
54
- r[3] || (r[3] = s("span", null, "Add Server", -1))
55
- ])) : U("", !0)
56
- ], 8, D)
52
+ r[3] || (r[3] = a("span", null, "Update Servers", -1))
53
+ ])) : w("", !0)
54
+ ], 8, P)
57
55
  ]),
58
- backdrop: l(() => [
59
- n(o(N), { class: "-top-(--scalar-address-bar-height) rounded-lg" })
56
+ backdrop: n(() => [
57
+ d(s(N), { class: "-top-(--scalar-address-bar-height) rounded-lg" })
60
58
  ]),
61
- default: l(() => [
62
- n(o(A), {
59
+ default: n(() => [
60
+ d(s(z), {
63
61
  class: "z-context-plus hover:bg-b-2 font-code text-c-2 ml-0.75 h-auto gap-0.75 rounded border px-1.5 text-base whitespace-nowrap",
64
62
  variant: "ghost"
65
63
  }, {
66
- default: l(() => [
67
- e.server ? (t(), d(p, { key: 0 }, [
68
- r[1] || (r[1] = s("span", { class: "sr-only" }, "Server:", -1)),
69
- w(" " + C(k.value), 1)
70
- ], 64)) : (t(), d(p, { key: 1 }, [
71
- r[2] || (r[2] = s("span", { class: "sr-only" }, "Add Server", -1)),
72
- n(o(b), {
73
- icon: "Add",
74
- size: "xs"
75
- })
64
+ default: n(() => [
65
+ e.server ? (t(), i(p, { key: 0 }, [
66
+ r[1] || (r[1] = a("span", { class: "sr-only" }, "Server:", -1)),
67
+ h(" " + U(S.value), 1)
68
+ ], 64)) : (t(), i(p, { key: 1 }, [
69
+ r[2] || (r[2] = a("span", { class: "sr-only" }, "Add Server", -1)),
70
+ d(s(V), { class: "size-3" })
76
71
  ], 64))
77
72
  ]),
78
73
  _: 1
@@ -83,5 +78,5 @@ const D = ["onClick"], $ = { class: "flex h-4 w-4 items-center justify-center" }
83
78
  }
84
79
  });
85
80
  export {
86
- I as default
81
+ W as default
87
82
  };
@@ -1,6 +1,6 @@
1
1
  import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
- server: ServerObject | undefined;
3
+ server: ServerObject | null;
4
4
  serverOption: {
5
5
  id: string;
6
6
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ServerDropdownItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdownItem.vue"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAKhG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,YAAY,EAAE;QACZ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAC;;;;;;;;AAiKF,wBAOG"}
1
+ {"version":3,"file":"ServerDropdownItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdownItem.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAKhG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,YAAY,EAAE;QACZ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAC;;;;;;;;AA6JF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ServerDropdownItem.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b503e183"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1b7a32a4"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };