@scalar/api-client 2.10.0 → 2.12.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 (443) hide show
  1. package/CHANGELOG.md +69 -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/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
  6. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
  7. package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -0
  8. package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
  9. package/dist/components/Server/ServerVariablesForm.vue.js +6 -6
  10. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  11. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
  12. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +14 -13
  13. package/dist/hooks/useClientConfig.d.ts +6 -3
  14. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  15. package/dist/layouts/App/create-api-client-app.d.ts +18 -18
  16. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  17. package/dist/layouts/Web/create-api-client-web.d.ts +18 -18
  18. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  19. package/dist/libs/create-client.d.ts +19 -19
  20. package/dist/libs/create-client.d.ts.map +1 -1
  21. package/dist/libs/errors.d.ts +1 -0
  22. package/dist/libs/errors.d.ts.map +1 -1
  23. package/dist/libs/errors.js +2 -1
  24. package/dist/libs/find-request.d.ts +1 -1
  25. package/dist/libs/send-request/create-request-operation.d.ts +4 -4
  26. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  27. package/dist/libs/send-request/create-request-operation.js +60 -51
  28. package/dist/store/active-entities.d.ts +1 -1
  29. package/dist/store/active-entities.d.ts.map +1 -1
  30. package/dist/store/collections.d.ts.map +1 -1
  31. package/dist/store/requests.d.ts +11 -11
  32. package/dist/store/security-schemes.d.ts.map +1 -1
  33. package/dist/store/store.d.ts +11 -11
  34. package/dist/store/store.d.ts.map +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +82 -26
  37. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  38. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +65 -65
  39. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +5 -8
  40. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  41. package/dist/v2/blocks/operation-block/components/Header.vue.js +3 -3
  42. package/dist/v2/blocks/operation-block/components/Header.vue2.js +33 -36
  43. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
  44. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +11 -10
  45. package/dist/v2/blocks/{scalar-operation-block/components/OperationBlock.vue.d.ts → request-block/RequestBlock.vue.d.ts} +5 -19
  46. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -0
  47. package/dist/v2/blocks/request-block/RequestBlock.vue.js +7 -0
  48. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +223 -0
  49. package/dist/v2/blocks/{scalar-operation-block/components/OperationBody.vue.d.ts → request-block/components/RequestBody.vue.d.ts} +4 -6
  50. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -0
  51. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +7 -0
  52. package/dist/v2/blocks/{scalar-operation-block/components/OperationBody.vue2.js → request-block/components/RequestBody.vue2.js} +86 -90
  53. package/dist/v2/blocks/{scalar-operation-block/components/OperationParams.vue.d.ts → request-block/components/RequestParams.vue.d.ts} +3 -6
  54. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -0
  55. package/dist/v2/blocks/{scalar-operation-block/components/OperationParams.vue.js → request-block/components/RequestParams.vue.js} +26 -28
  56. package/dist/v2/blocks/request-block/components/RequestParams.vue2.js +4 -0
  57. package/dist/v2/blocks/{scalar-operation-block/components/OperationTable.vue.d.ts → request-block/components/RequestTable.vue.d.ts} +4 -7
  58. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -0
  59. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +7 -0
  60. package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +86 -0
  61. package/dist/v2/blocks/{scalar-operation-block/components/OperationTableRow.vue.d.ts → request-block/components/RequestTableRow.vue.d.ts} +3 -6
  62. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -0
  63. package/dist/v2/blocks/{scalar-operation-block/components/OperationTableRow.vue.js → request-block/components/RequestTableRow.vue.js} +63 -67
  64. package/dist/v2/blocks/request-block/components/RequestTableRow.vue2.js +4 -0
  65. package/dist/v2/blocks/{scalar-operation-block/components/OperationTableTooltip.vue.d.ts → request-block/components/RequestTableTooltip.vue.d.ts} +1 -1
  66. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -0
  67. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +7 -0
  68. package/dist/v2/blocks/{scalar-operation-block/components/OperationTableTooltip.vue2.js → request-block/components/RequestTableTooltip.vue2.js} +7 -7
  69. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +24 -0
  70. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -0
  71. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +29 -0
  72. package/dist/v2/blocks/request-block/helpers/files.d.ts.map +1 -0
  73. package/dist/v2/blocks/request-block/helpers/get-parameter-content.d.ts.map +1 -0
  74. package/dist/v2/blocks/request-block/helpers/get-parameter-example.d.ts.map +1 -0
  75. package/dist/v2/blocks/request-block/helpers/get-parameter-schema.d.ts.map +1 -0
  76. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -0
  77. package/dist/v2/blocks/request-block/helpers/group-by.d.ts.map +1 -0
  78. package/dist/v2/blocks/request-block/helpers/validate-parameter.d.ts.map +1 -0
  79. package/dist/v2/blocks/request-block/index.d.ts +2 -0
  80. package/dist/v2/blocks/request-block/index.d.ts.map +1 -0
  81. package/dist/v2/blocks/request-block/index.js +4 -0
  82. package/dist/v2/blocks/{scalar-response-block/components → response-block}/ResponseBlock.vue.d.ts +3 -3
  83. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -0
  84. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +7 -0
  85. package/dist/v2/blocks/{scalar-response-block/components → response-block}/ResponseBlock.vue2.js +25 -25
  86. package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue.d.ts +2 -2
  87. package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -0
  88. package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue.js +9 -9
  89. package/dist/v2/blocks/response-block/components/ResponseBody.vue.d.ts.map +1 -0
  90. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue.js +2 -2
  91. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue2.js +22 -22
  92. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.d.ts.map +1 -0
  93. package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.d.ts.map +1 -0
  94. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -0
  95. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue.js +1 -1
  96. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -0
  97. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue.js +1 -1
  98. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -0
  99. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue.js +14 -14
  100. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.d.ts.map +1 -0
  101. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -0
  102. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue.js +12 -12
  103. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.d.ts.map +1 -0
  104. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue.js +13 -13
  105. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -0
  106. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue.js +2 -2
  107. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -0
  108. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +7 -0
  109. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue.d.ts +0 -1
  110. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -0
  111. package/dist/v2/blocks/response-block/helpers/extract-filename.d.ts.map +1 -0
  112. package/dist/v2/blocks/response-block/helpers/get-content-length.d.ts.map +1 -0
  113. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -0
  114. package/dist/v2/blocks/response-block/helpers/process-response-body.d.ts.map +1 -0
  115. package/dist/v2/blocks/response-block/index.d.ts +2 -0
  116. package/dist/v2/blocks/response-block/index.d.ts.map +1 -0
  117. package/dist/v2/blocks/response-block/index.js +4 -0
  118. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +6 -8
  119. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  120. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  121. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +68 -70
  122. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +11 -9
  123. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  124. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +179 -5
  125. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -179
  126. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +201 -198
  127. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +11 -6
  128. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  129. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +82 -5
  130. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +2 -85
  131. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +3 -13
  132. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  133. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +16 -18
  134. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +133 -142
  135. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +1 -1
  136. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  137. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -1
  138. package/dist/v2/components/code-input/CodeInput.vue.d.ts +1 -0
  139. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  140. package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
  141. package/dist/v2/components/code-input/CodeInput.vue2.js +29 -28
  142. package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -1
  143. package/dist/v2/components/data-table/DataTable.vue.js +4 -4
  144. package/dist/v2/components/data-table/DataTableInput.vue.d.ts +5 -7
  145. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
  146. package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
  147. package/dist/v2/components/data-table/DataTableInput.vue2.js +32 -36
  148. package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +25 -0
  149. package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -0
  150. package/dist/v2/components/forms/ConfirmationForm.vue.js +7 -0
  151. package/dist/v2/components/forms/ConfirmationForm.vue2.js +45 -0
  152. package/dist/v2/components/forms/index.d.ts +2 -0
  153. package/dist/v2/components/forms/index.d.ts.map +1 -0
  154. package/dist/v2/components/forms/index.js +4 -0
  155. package/dist/v2/components/layout/CollapsibleSection.vue.d.ts +43 -0
  156. package/dist/v2/components/layout/CollapsibleSection.vue.d.ts.map +1 -0
  157. package/dist/v2/components/layout/CollapsibleSection.vue.js +89 -0
  158. package/dist/v2/components/layout/CollapsibleSection.vue2.js +4 -0
  159. package/dist/v2/components/layout/ValueEmitter.vue.d.ts +23 -0
  160. package/dist/v2/components/layout/ValueEmitter.vue.d.ts.map +1 -0
  161. package/dist/v2/components/layout/ValueEmitter.vue.js +21 -0
  162. package/dist/v2/components/layout/ValueEmitter.vue2.js +4 -0
  163. package/dist/v2/components/layout/index.d.ts +2 -0
  164. package/dist/v2/components/layout/index.d.ts.map +1 -0
  165. package/dist/v2/components/layout/index.js +4 -0
  166. package/dist/v2/components/modals/DeleteModal.vue.d.ts +15 -0
  167. package/dist/v2/components/modals/DeleteModal.vue.d.ts.map +1 -0
  168. package/dist/v2/components/modals/DeleteModal.vue.js +31 -0
  169. package/dist/v2/components/modals/DeleteModal.vue2.js +4 -0
  170. package/dist/v2/components/modals/index.d.ts +2 -0
  171. package/dist/v2/components/modals/index.d.ts.map +1 -0
  172. package/dist/v2/components/modals/index.js +4 -0
  173. package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -1
  174. package/dist/v2/components/resize/Resize.vue.js +2 -2
  175. package/dist/v2/components/server/ServerDropdown.vue.d.ts +7 -5
  176. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
  177. package/dist/v2/components/server/ServerDropdown.vue.js +44 -49
  178. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +3 -7
  179. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
  180. package/dist/v2/components/server/ServerDropdownItem.vue.js +2 -2
  181. package/dist/v2/components/server/ServerDropdownItem.vue2.js +24 -26
  182. package/dist/v2/components/server/index.d.ts.map +1 -1
  183. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +30 -6
  184. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  185. package/dist/v2/components/sidebar/Sidebar.vue.js +57 -62
  186. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +18 -9
  187. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  188. package/dist/v2/components/sidebar/SidebarMenu.vue.js +36 -43
  189. package/dist/v2/features/app/App.vue.d.ts +2 -5
  190. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  191. package/dist/v2/features/app/App.vue.js +134 -82
  192. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +42 -6
  193. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  194. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  195. package/dist/v2/features/app/components/AppSidebar.vue2.js +76 -64
  196. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts +15 -0
  197. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts.map +1 -0
  198. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +56 -0
  199. package/dist/v2/features/app/components/CreateWorkspaceModal.vue2.js +4 -0
  200. package/dist/v2/{components/TempReplaceMe.vue.d.ts → features/app/components/SplashScreen.vue.d.ts} +1 -1
  201. package/dist/v2/features/app/components/SplashScreen.vue.d.ts.map +1 -0
  202. package/dist/v2/features/app/components/SplashScreen.vue.js +7 -0
  203. package/dist/v2/features/app/components/SplashScreen.vue2.js +18 -0
  204. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +26 -5
  205. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
  206. package/dist/v2/features/app/components/WebTopNav.vue.js +18 -19
  207. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +1 -2
  208. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  209. package/dist/v2/features/app/helpers/create-api-client-app.js +8 -8
  210. package/dist/v2/features/app/helpers/routes.d.ts +6 -41
  211. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  212. package/dist/v2/features/app/helpers/routes.js +4 -9
  213. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  214. package/dist/v2/features/collection/DocumentCollection.vue2.js +69 -74
  215. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
  216. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +25 -25
  217. package/dist/v2/features/collection/components/Authentication.vue.d.ts +13 -25
  218. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  219. package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
  220. package/dist/v2/features/collection/components/Authentication.vue2.js +49 -35
  221. package/dist/v2/features/collection/components/Cookies.vue.d.ts +13 -1
  222. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
  223. package/dist/v2/features/collection/components/Cookies.vue.js +2 -7
  224. package/dist/v2/features/collection/components/Cookies.vue2.js +32 -0
  225. package/dist/v2/features/collection/components/Environment.vue2.js +2 -0
  226. package/dist/v2/features/collection/components/Form.vue.d.ts +3 -7
  227. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
  228. package/dist/v2/features/collection/components/Form.vue.js +28 -33
  229. package/dist/v2/features/collection/components/Overview.vue2.js +10 -8
  230. package/dist/v2/features/collection/components/Servers.vue.d.ts +13 -31
  231. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  232. package/dist/v2/features/collection/components/Servers.vue2.js +105 -82
  233. package/dist/v2/features/collection/components/Settings.vue.d.ts +13 -15
  234. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  235. package/dist/v2/features/collection/components/Settings.vue.js +2 -5
  236. package/dist/v2/features/collection/components/Settings.vue2.js +51 -92
  237. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
  238. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +3 -3
  239. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +6 -22
  240. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
  241. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +3 -3
  242. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +121 -88
  243. package/dist/v2/features/global-cookies/index.d.ts +1 -1
  244. package/dist/v2/features/global-cookies/index.d.ts.map +1 -1
  245. package/dist/v2/features/global-cookies/index.js +2 -2
  246. package/dist/v2/features/modal/Modal.vue.d.ts +0 -2
  247. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  248. package/dist/v2/features/modal/Modal.vue.js +2 -2
  249. package/dist/v2/features/modal/Modal.vue2.js +28 -53
  250. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  251. package/dist/v2/features/modal/helpers/create-api-client-modal.js +8 -9
  252. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  253. package/dist/v2/features/operation/Operation.vue.js +35 -34
  254. package/dist/v2/features/operation/helpers/get-security-requirements.d.ts +12 -0
  255. package/dist/v2/features/operation/helpers/get-security-requirements.d.ts.map +1 -0
  256. package/dist/v2/features/operation/helpers/get-security-requirements.js +4 -0
  257. package/dist/v2/features/search/components/SearchButton.vue.d.ts +12 -0
  258. package/dist/v2/features/search/components/SearchButton.vue.d.ts.map +1 -0
  259. package/dist/v2/features/search/components/SearchButton.vue.js +71 -0
  260. package/dist/v2/features/search/components/SearchButton.vue2.js +4 -0
  261. package/dist/v2/features/search/components/SearchModal.vue.d.ts +11 -0
  262. package/dist/v2/features/search/components/SearchModal.vue.d.ts.map +1 -0
  263. package/dist/v2/features/search/components/SearchModal.vue.js +7 -0
  264. package/dist/v2/features/search/components/SearchModal.vue2.js +101 -0
  265. package/dist/v2/features/search/components/SearchResult.vue.d.ts +10 -0
  266. package/dist/v2/features/search/components/SearchResult.vue.d.ts.map +1 -0
  267. package/dist/v2/features/search/components/SearchResult.vue.js +80 -0
  268. package/dist/v2/features/search/components/SearchResult.vue2.js +4 -0
  269. package/dist/v2/features/search/helpers/create-fuse-instance.d.ts +9 -0
  270. package/dist/v2/features/search/helpers/create-fuse-instance.d.ts.map +1 -0
  271. package/dist/v2/features/search/helpers/create-fuse-instance.js +43 -0
  272. package/dist/v2/features/search/helpers/create-search-index.d.ts +7 -0
  273. package/dist/v2/features/search/helpers/create-search-index.d.ts.map +1 -0
  274. package/dist/v2/features/search/helpers/create-search-index.js +63 -0
  275. package/dist/v2/features/search/hooks/use-search-index.d.ts +14 -0
  276. package/dist/v2/features/search/hooks/use-search-index.d.ts.map +1 -0
  277. package/dist/v2/features/search/hooks/use-search-index.js +24 -0
  278. package/dist/v2/features/search/index.d.ts +3 -0
  279. package/dist/v2/features/search/index.d.ts.map +1 -0
  280. package/dist/v2/features/search/index.js +6 -0
  281. package/dist/v2/features/search/types.d.ts +24 -0
  282. package/dist/v2/features/search/types.d.ts.map +1 -0
  283. package/dist/v2/features/settings/{Settings.vue.d.ts → CollectionSettings.vue.d.ts} +2 -2
  284. package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -0
  285. package/dist/v2/features/settings/CollectionSettings.vue.js +266 -0
  286. package/dist/v2/features/settings/CollectionSettings.vue2.js +4 -0
  287. package/dist/v2/features/settings/DocumentSettings.vue.d.ts +19 -0
  288. package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -0
  289. package/dist/v2/features/settings/DocumentSettings.vue.js +7 -0
  290. package/dist/v2/features/settings/DocumentSettings.vue2.js +106 -0
  291. package/dist/v2/features/settings/index.d.ts +2 -1
  292. package/dist/v2/features/settings/index.d.ts.map +1 -1
  293. package/dist/v2/features/settings/index.js +4 -2
  294. package/dist/v2/helpers/drag-handle-factory.d.ts +17 -0
  295. package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -0
  296. package/dist/v2/helpers/drag-handle-factory.js +135 -0
  297. package/dist/v2/helpers/handle-hotkeys.d.ts +23 -0
  298. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -0
  299. package/dist/v2/helpers/handle-hotkeys.js +56 -0
  300. package/dist/v2/helpers/slugify.d.ts +9 -0
  301. package/dist/v2/helpers/slugify.d.ts.map +1 -0
  302. package/dist/v2/helpers/slugify.js +4 -0
  303. package/dist/v2/helpers/storage.d.ts +25 -0
  304. package/dist/v2/helpers/storage.d.ts.map +1 -0
  305. package/dist/v2/helpers/storage.js +20 -0
  306. package/dist/v2/hooks/use-color-mode.d.ts +20 -0
  307. package/dist/v2/hooks/use-color-mode.d.ts.map +1 -0
  308. package/dist/v2/hooks/use-color-mode.js +24 -0
  309. package/dist/v2/hooks/use-document-watcher.d.ts +9 -7
  310. package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -1
  311. package/dist/v2/hooks/use-document-watcher.js +66 -0
  312. package/dist/v2/hooks/use-global-hot-keys.d.ts +10 -0
  313. package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -0
  314. package/dist/v2/hooks/use-global-hot-keys.js +9 -0
  315. package/dist/v2/hooks/use-sidebar-state.d.ts +48 -0
  316. package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -0
  317. package/dist/v2/hooks/use-sidebar-state.js +128 -0
  318. package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -2
  319. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
  320. package/dist/v2/hooks/use-workspace-client-events.js +52 -135
  321. package/dist/v2/hooks/use-workspace-selector.d.ts +18 -0
  322. package/dist/v2/hooks/use-workspace-selector.d.ts.map +1 -0
  323. package/dist/v2/hooks/use-workspace-selector.js +87 -0
  324. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  325. package/dist/views/Request/RequestRoot.vue.js +2 -2
  326. package/dist/views/Request/RequestRoot.vue2.js +86 -77
  327. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  328. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  329. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  330. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  331. package/dist/views/Request/RequestSection/RequestBody.vue2.js +29 -24
  332. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  333. package/package.json +29 -28
  334. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +0 -45
  335. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +0 -1
  336. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +0 -29
  337. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +0 -1
  338. package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts +0 -29
  339. package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts.map +0 -1
  340. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +0 -1
  341. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +0 -7
  342. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +0 -289
  343. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +0 -1
  344. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +0 -7
  345. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +0 -1
  346. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue2.js +0 -4
  347. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +0 -1
  348. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +0 -7
  349. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +0 -88
  350. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +0 -1
  351. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue2.js +0 -4
  352. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.d.ts.map +0 -1
  353. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.js +0 -7
  354. package/dist/v2/blocks/scalar-operation-block/helpers/files.d.ts.map +0 -1
  355. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.d.ts.map +0 -1
  356. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.d.ts.map +0 -1
  357. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.d.ts.map +0 -1
  358. package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.d.ts.map +0 -1
  359. package/dist/v2/blocks/scalar-operation-block/helpers/group-by.d.ts.map +0 -1
  360. package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.d.ts.map +0 -1
  361. package/dist/v2/blocks/scalar-operation-block/index.d.ts +0 -2
  362. package/dist/v2/blocks/scalar-operation-block/index.d.ts.map +0 -1
  363. package/dist/v2/blocks/scalar-operation-block/index.js +0 -4
  364. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +0 -1
  365. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +0 -1
  366. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +0 -7
  367. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +0 -1
  368. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.d.ts.map +0 -1
  369. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.d.ts.map +0 -1
  370. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.d.ts.map +0 -1
  371. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.d.ts.map +0 -1
  372. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +0 -1
  373. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.d.ts.map +0 -1
  374. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +0 -1
  375. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +0 -1
  376. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.d.ts.map +0 -1
  377. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.d.ts.map +0 -1
  378. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.js +0 -7
  379. package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.d.ts.map +0 -1
  380. package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.d.ts.map +0 -1
  381. package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.d.ts.map +0 -1
  382. package/dist/v2/blocks/scalar-response-block/helpers/media-types.d.ts.map +0 -1
  383. package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.d.ts.map +0 -1
  384. package/dist/v2/blocks/scalar-response-block/index.d.ts +0 -2
  385. package/dist/v2/blocks/scalar-response-block/index.d.ts.map +0 -1
  386. package/dist/v2/blocks/scalar-response-block/index.js +0 -4
  387. package/dist/v2/components/TempReplaceMe.vue.d.ts.map +0 -1
  388. package/dist/v2/components/TempReplaceMe.vue.js +0 -12
  389. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +0 -32
  390. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +0 -1
  391. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +0 -7
  392. package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +0 -58
  393. package/dist/v2/features/settings/Settings.vue.d.ts.map +0 -1
  394. package/dist/v2/features/settings/Settings.vue.js +0 -268
  395. package/dist/v2/features/settings/Settings.vue2.js +0 -4
  396. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/files.d.ts +0 -0
  397. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/files.js +0 -0
  398. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-content.d.ts +0 -0
  399. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-content.js +0 -0
  400. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-example.d.ts +0 -0
  401. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-example.js +0 -0
  402. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-schema.d.ts +0 -0
  403. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-schema.js +0 -0
  404. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-request-body-example.d.ts +0 -0
  405. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-request-body-example.js +0 -0
  406. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/group-by.d.ts +0 -0
  407. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/group-by.js +0 -0
  408. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/validate-parameter.d.ts +0 -0
  409. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/validate-parameter.js +0 -0
  410. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue2.js +0 -0
  411. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue.d.ts +0 -0
  412. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue.d.ts +0 -0
  413. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue.js +0 -0
  414. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue2.js +0 -0
  415. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyInfo.vue.d.ts +0 -0
  416. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyInfo.vue.js +0 -0
  417. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue.d.ts +0 -0
  418. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue2.js +0 -0
  419. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue.d.ts +0 -0
  420. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue2.js +0 -0
  421. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue.d.ts +0 -0
  422. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue2.js +0 -0
  423. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue.d.ts +0 -0
  424. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue.js +0 -0
  425. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue2.js +0 -0
  426. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue.d.ts +0 -0
  427. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue3.js +0 -0
  428. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue.d.ts +0 -0
  429. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue2.js +0 -0
  430. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue.d.ts +0 -0
  431. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue2.js +0 -0
  432. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseLoadingOverlay.vue.d.ts +0 -0
  433. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseLoadingOverlay.vue2.js +0 -0
  434. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue.js +0 -0
  435. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue2.js +0 -0
  436. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/extract-filename.d.ts +0 -0
  437. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/extract-filename.js +0 -0
  438. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/get-content-length.d.ts +0 -0
  439. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/get-content-length.js +0 -0
  440. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/media-types.d.ts +0 -0
  441. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/media-types.js +0 -0
  442. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/process-response-body.d.ts +0 -0
  443. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/process-response-body.js +0 -0
@@ -1,67 +1,80 @@
1
- import { defineComponent as R, computed as N, ref as P, createElementBlock as u, openBlock as r, Fragment as i, renderList as C, createBlock as k, createCommentVNode as b, unref as s, withCtx as o, createVNode as a, createElementVNode as _, toDisplayString as F, mergeProps as v, createTextVNode as x, normalizeClass as j, capitalize as $ } from "vue";
2
- import { ScalarMarkdownSummary as z } from "@scalar/components";
3
- import { getResolvedRef as K } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
- import O from "./OAuth2.vue.js";
5
- import w from "./RequestAuthDataTableInput.vue.js";
6
- import f from "../../../../components/DataTable/DataTableRow.vue.js";
7
- import B from "../../../../components/DataTable/DataTableCell.vue.js";
8
- const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none" }, M = {
9
- key: 0,
10
- class: "flex min-h-8 border-t text-base"
11
- }, Q = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, q = ["onClick"], D = { class: "relative z-10" }, Y = /* @__PURE__ */ R({
1
+ import { defineComponent as A, computed as N, ref as P, createElementBlock as s, openBlock as r, Fragment as d, renderList as C, createBlock as v, createCommentVNode as m, unref as i, withCtx as l, createVNode as n, createElementVNode as k, toDisplayString as R, createTextVNode as y, normalizeClass as z, capitalize as Q } from "vue";
2
+ import { ScalarMarkdownSummary as q } from "@scalar/components";
3
+ import { getResolvedRef as D } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
+ import E from "./OAuth2.vue.js";
5
+ import b from "./RequestAuthDataTableInput.vue.js";
6
+ import c from "../../../components/data-table/DataTableRow.vue.js";
7
+ import I from "../../../components/data-table/DataTableCell.vue.js";
8
+ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none" }, L = { class: "flex min-h-8 border-t text-base" }, _ = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, G = ["onClick"], J = { class: "relative z-10" }, re = /* @__PURE__ */ A({
12
9
  __name: "RequestAuthTab",
13
10
  props: {
14
11
  environment: {},
15
- envVariables: {},
16
- layout: {},
12
+ isStatic: { type: Boolean },
17
13
  selectedSecuritySchemas: {},
18
14
  securitySchemes: {},
19
15
  server: {}
20
16
  },
21
17
  emits: ["update:securityScheme", "update:selectedScopes"],
22
- setup(S, { emit: I }) {
23
- const c = I, h = N(
24
- () => Object.entries(S.selectedSecuritySchemas).map(([l, e]) => ({
25
- scheme: K(S.securitySchemes[l]),
26
- name: l,
18
+ setup(f, { emit: K }) {
19
+ const x = K, U = N(
20
+ () => Object.entries(f.selectedSecuritySchemas).map(([o, e]) => ({
21
+ scheme: D(f.securitySchemes[o]),
22
+ name: o,
27
23
  scopes: e
28
24
  }))
29
- ), p = P(""), T = (l, e) => {
30
- const t = e.description ? `: ${e.description}` : "", m = `${$(l)}${t || `: ${e.type}`}`;
31
- if (e.type === "apiKey")
32
- return `${$(l)}${t || `: ${e.in}`}`;
33
- if (e.type === "oauth2") {
34
- const U = Object.keys(e.flows ?? {})[0];
35
- return `${$(l)}: ${p.value ? p.value : U}${t}`;
25
+ ), w = P(""), h = N(() => U.value.length > 1), F = (o, e) => {
26
+ const t = Q(o), u = e.description ? `: ${e.description}` : "";
27
+ switch (e.type) {
28
+ case "apiKey":
29
+ return `${t}${u || `: ${e.in}`}`;
30
+ case "oauth2": {
31
+ const V = Object.keys(e.flows ?? {})[0], a = w.value || V;
32
+ return `${t}: ${a}${u}`;
33
+ }
34
+ case "http":
35
+ return `${t}: ${e.scheme}${u}`;
36
+ default:
37
+ return `${t}${u || `: ${e.type}`}`;
36
38
  }
37
- return e.type === "http" ? `${$(l)}: ${e.scheme}${t}` : `${m}${t}`;
38
- }, y = {
39
- environment: S.environment,
40
- envVariables: S.envVariables
39
+ }, T = (o, e) => w.value === o || e === 0 && !w.value, B = () => f.isStatic && "border-t", g = (o, e) => x("update:securityScheme", {
40
+ type: "http",
41
+ [o]: e
42
+ }), j = (o, e) => x("update:securityScheme", {
43
+ type: "apiKey",
44
+ [o]: e
45
+ }), M = (o, e) => {
46
+ x("update:selectedScopes", {
47
+ id: Object.keys(f.selectedSecuritySchemas),
48
+ name: o,
49
+ ...e
50
+ });
51
+ }, O = (o, e) => {
52
+ const t = "floating-bg text-c-3 relative cursor-pointer border-b border-transparent py-1 text-base font-medium";
53
+ return T(o, e) ? `${t} !text-c-1 !rounded-none border-b !border-current ${f.isStatic ? "opacity-100" : ""}` : t;
41
54
  };
42
- return (l, e) => (r(!0), u(i, null, C(h.value, ({ scheme: t, name: m, scopes: U }) => (r(), u(i, { key: m }, [
43
- h.value.length > 1 && t ? (r(), k(s(f), { key: 0 }, {
44
- default: o(() => [
45
- a(s(B), {
46
- "aria-label": T(m, t),
55
+ return (o, e) => (r(!0), s(d, null, C(U.value, ({ scheme: t, name: u, scopes: V }) => (r(), s(d, { key: u }, [
56
+ h.value && t ? (r(), v(i(c), { key: 0 }, {
57
+ default: l(() => [
58
+ n(i(I), {
59
+ "aria-label": F(u, t),
47
60
  class: "text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"
48
61
  }, {
49
- default: o(() => [
50
- _("p", L, F(T(m, t)), 1)
62
+ default: l(() => [
63
+ k("p", H, R(F(u, t)), 1)
51
64
  ]),
52
65
  _: 2
53
66
  }, 1032, ["aria-label"])
54
67
  ]),
55
68
  _: 2
56
- }, 1024)) : b("", !0),
57
- t?.description && h.value.length <= 1 ? (r(), k(s(f), { key: 1 }, {
58
- default: o(() => [
59
- a(s(B), {
69
+ }, 1024)) : m("", !0),
70
+ t?.description && !h.value ? (r(), v(i(c), { key: 1 }, {
71
+ default: l(() => [
72
+ n(i(I), {
60
73
  "aria-label": t.description,
61
74
  class: "max-h-[auto]"
62
75
  }, {
63
- default: o(() => [
64
- a(s(z), {
76
+ default: l(() => [
77
+ n(i(q), {
65
78
  class: "auth-description bg-b-1 text-c-2 min-w-0 flex-1 px-3 py-1.25",
66
79
  value: t.description
67
80
  }, null, 8, ["value"])
@@ -70,157 +83,135 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
70
83
  }, 1032, ["aria-label"])
71
84
  ]),
72
85
  _: 2
73
- }, 1024)) : b("", !0),
74
- t?.type === "http" ? (r(), u(i, { key: 2 }, [
75
- t.scheme === "bearer" ? (r(), k(s(f), { key: 0 }, {
76
- default: o(() => [
77
- a(w, v({ ref_for: !0 }, y, {
78
- containerClass: l.layout === "reference" && "border-t",
86
+ }, 1024)) : m("", !0),
87
+ t?.type === "http" ? (r(), s(d, { key: 2 }, [
88
+ t.scheme === "bearer" ? (r(), v(i(c), { key: 0 }, {
89
+ default: l(() => [
90
+ n(b, {
91
+ containerClass: B(),
92
+ environment: o.environment,
79
93
  modelValue: t["x-scalar-secret-token"],
80
94
  placeholder: "Token",
81
95
  type: "password",
82
- "onUpdate:modelValue": e[0] || (e[0] = (n) => c("update:securityScheme", {
83
- type: "http",
84
- payload: { token: n }
85
- }))
86
- }), {
87
- default: o(() => [...e[5] || (e[5] = [
88
- x(" Bearer Token ", -1)
96
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => g("x-scalar-secret-token", a))
97
+ }, {
98
+ default: l(() => [...e[6] || (e[6] = [
99
+ y(" Bearer Token ", -1)
89
100
  ])]),
90
101
  _: 1
91
- }, 16, ["containerClass", "modelValue"])
102
+ }, 8, ["containerClass", "environment", "modelValue"])
92
103
  ]),
93
104
  _: 2
94
- }, 1024)) : t?.scheme === "basic" ? (r(), u(i, { key: 1 }, [
95
- a(s(f), null, {
96
- default: o(() => [
97
- a(w, v({ ref_for: !0 }, y, {
105
+ }, 1024)) : t?.scheme === "basic" ? (r(), s(d, { key: 1 }, [
106
+ n(i(c), null, {
107
+ default: l(() => [
108
+ n(b, {
98
109
  class: "text-c-2",
110
+ environment: o.environment,
99
111
  modelValue: t["x-scalar-secret-username"],
100
112
  placeholder: "janedoe",
101
113
  required: "",
102
- "onUpdate:modelValue": e[1] || (e[1] = (n) => c("update:securityScheme", {
103
- type: "http",
104
- payload: { username: n }
105
- }))
106
- }), {
107
- default: o(() => [...e[6] || (e[6] = [
108
- x(" Username ", -1)
114
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => g("x-scalar-secret-username", a))
115
+ }, {
116
+ default: l(() => [...e[7] || (e[7] = [
117
+ y(" Username ", -1)
109
118
  ])]),
110
119
  _: 1
111
- }, 16, ["modelValue"])
120
+ }, 8, ["environment", "modelValue"])
112
121
  ]),
113
122
  _: 2
114
123
  }, 1024),
115
- a(s(f), null, {
116
- default: o(() => [
117
- a(w, v({ ref_for: !0 }, y, {
124
+ n(i(c), null, {
125
+ default: l(() => [
126
+ n(b, {
127
+ environment: o.environment,
118
128
  modelValue: t["x-scalar-secret-password"],
119
129
  placeholder: "********",
120
130
  type: "password",
121
- "onUpdate:modelValue": e[2] || (e[2] = (n) => c("update:securityScheme", {
122
- type: "http",
123
- payload: { password: n }
124
- }))
125
- }), {
126
- default: o(() => [...e[7] || (e[7] = [
127
- x(" Password ", -1)
131
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => g("x-scalar-secret-password", a))
132
+ }, {
133
+ default: l(() => [...e[8] || (e[8] = [
134
+ y(" Password ", -1)
128
135
  ])]),
129
136
  _: 1
130
- }, 16, ["modelValue"])
137
+ }, 8, ["environment", "modelValue"])
131
138
  ]),
132
139
  _: 2
133
140
  }, 1024)
134
- ], 64)) : b("", !0)
135
- ], 64)) : t?.type === "apiKey" ? (r(), u(i, { key: 3 }, [
136
- a(s(f), null, {
137
- default: o(() => [
138
- a(w, v({ ref_for: !0 }, y, {
139
- containerClass: l.layout === "reference" && "border-t",
141
+ ], 64)) : m("", !0)
142
+ ], 64)) : t?.type === "apiKey" ? (r(), s(d, { key: 3 }, [
143
+ n(i(c), null, {
144
+ default: l(() => [
145
+ n(b, {
146
+ containerClass: B(),
147
+ environment: o.environment,
140
148
  modelValue: t.name,
141
149
  placeholder: "api-key",
142
- "onUpdate:modelValue": e[3] || (e[3] = (n) => c("update:securityScheme", {
143
- type: "apiKey",
144
- payload: { name: n }
145
- }))
146
- }), {
147
- default: o(() => [...e[8] || (e[8] = [
148
- x(" Name ", -1)
150
+ "onUpdate:modelValue": e[3] || (e[3] = (a) => j("name", a))
151
+ }, {
152
+ default: l(() => [...e[9] || (e[9] = [
153
+ y(" Name ", -1)
149
154
  ])]),
150
155
  _: 1
151
- }, 16, ["containerClass", "modelValue"])
156
+ }, 8, ["containerClass", "environment", "modelValue"])
152
157
  ]),
153
158
  _: 2
154
159
  }, 1024),
155
- a(s(f), null, {
156
- default: o(() => [
157
- a(w, v({ ref_for: !0 }, y, {
160
+ n(i(c), null, {
161
+ default: l(() => [
162
+ n(b, {
163
+ environment: o.environment,
158
164
  modelValue: t["x-scalar-secret-token"],
159
165
  placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
160
166
  type: "password",
161
- "onUpdate:modelValue": e[4] || (e[4] = (n) => c("update:securityScheme", {
162
- type: "apiKey",
163
- payload: { value: n }
164
- }))
165
- }), {
166
- default: o(() => [...e[9] || (e[9] = [
167
- x(" Value ", -1)
167
+ "onUpdate:modelValue": e[4] || (e[4] = (a) => j("x-scalar-secret-token", a))
168
+ }, {
169
+ default: l(() => [...e[10] || (e[10] = [
170
+ y(" Value ", -1)
168
171
  ])]),
169
172
  _: 1
170
- }, 16, ["modelValue"])
173
+ }, 8, ["environment", "modelValue"])
171
174
  ]),
172
175
  _: 2
173
176
  }, 1024)
174
- ], 64)) : t?.type === "oauth2" ? (r(), u(i, { key: 4 }, [
175
- a(s(f), null, {
176
- default: o(() => [
177
- Object.keys(t.flows).length > 1 ? (r(), u("div", M, [
178
- _("div", Q, [
179
- (r(!0), u(i, null, C(t?.flows, (n, d, V) => (r(), u("button", {
180
- key: d,
181
- class: j(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium", {
182
- "!text-c-1 !rounded-none border-b-[1px] !border-current": l.layout !== "reference" && (p.value === d || V === 0 && !p.value),
183
- "!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": l.layout === "reference" && (p.value === d || V === 0 && !p.value)
184
- }]),
177
+ ], 64)) : t?.type === "oauth2" ? (r(), s(d, { key: 4 }, [
178
+ Object.keys(t.flows).length > 1 ? (r(), v(i(c), { key: 0 }, {
179
+ default: l(() => [
180
+ k("div", L, [
181
+ k("div", _, [
182
+ (r(!0), s(d, null, C(t.flows, (a, p, $) => (r(), s("button", {
183
+ key: p,
184
+ class: z(O(p, $)),
185
185
  type: "button",
186
- onClick: (g) => p.value = d
186
+ onClick: (S) => w.value = p
187
187
  }, [
188
- _("span", D, F(d), 1)
189
- ], 10, q))), 128))
188
+ k("span", J, R(p), 1)
189
+ ], 10, G))), 128))
190
190
  ])
191
- ])) : b("", !0)
191
+ ])
192
192
  ]),
193
193
  _: 2
194
- }, 1024),
195
- (r(!0), u(i, null, C(t.flows, (n, d, V) => (r(), u(i, { key: d }, [
196
- p.value === d || V === 0 && !p.value ? (r(), k(O, v({
194
+ }, 1024)) : m("", !0),
195
+ (r(!0), s(d, null, C(t.flows, (a, p, $) => (r(), s(d, { key: p }, [
196
+ T(p, $) ? (r(), v(E, {
197
197
  key: 0,
198
- ref_for: !0
199
- }, y, {
198
+ environment: o.environment,
200
199
  flows: t.flows,
201
200
  proxyUrl: "",
202
- selectedScopes: U,
203
- server: l.server,
204
- type: d,
205
- "onUpdate:securityScheme": (g) => c("update:securityScheme", {
206
- type: "oauth2",
207
- flow: d,
208
- payload: g
209
- }),
210
- "onUpdate:selectedScopes": (g) => c("update:selectedScopes", {
211
- id: Object.keys(l.selectedSecuritySchemas),
212
- name: m,
213
- ...g
214
- })
215
- }), null, 16, ["flows", "selectedScopes", "server", "type", "onUpdate:securityScheme", "onUpdate:selectedScopes"])) : b("", !0)
201
+ selectedScopes: V,
202
+ server: o.server,
203
+ type: p,
204
+ "onUpdate:securityScheme": e[5] || (e[5] = (S) => x("update:securityScheme", S)),
205
+ "onUpdate:selectedScopes": (S) => M(u, S)
206
+ }, null, 8, ["environment", "flows", "selectedScopes", "server", "type", "onUpdate:selectedScopes"])) : m("", !0)
216
207
  ], 64))), 128))
217
- ], 64)) : t?.type === "openIdConnect" ? (r(), u("div", {
208
+ ], 64)) : t?.type === "openIdConnect" ? (r(), s("div", {
218
209
  key: 5,
219
- class: j(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": l.layout === "reference" }])
220
- }, " Coming soon ", 2)) : b("", !0)
210
+ class: z(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": o.isStatic }])
211
+ }, " Coming soon ", 2)) : m("", !0)
221
212
  ], 64))), 128));
222
213
  }
223
214
  });
224
215
  export {
225
- Y as default
216
+ re as default
226
217
  };
@@ -18,7 +18,7 @@ export declare const generateCodeChallenge: (verifier: string, encoding: "SHA-25
18
18
  */
19
19
  export declare const authorizeOauth2: (flows: OAuthFlowsObject, type: keyof OAuthFlowsObject, selectedScopes: string[],
20
20
  /** We use the active server to set a base for relative redirect uris */
21
- activeServer: ServerObject,
21
+ activeServer: ServerObject | undefined,
22
22
  /** If we want to use the proxy */
23
23
  proxyUrl?: string) => Promise<ErrorResponse<string>>;
24
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAEzD,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAkB3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY;AAC1B,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAkK/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,eAAe,EACtB,MAAM,MAAM,eAAe,EAC3B,QAAQ,MAAM,EACd,4BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACzB,KACL,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA8F/B,CAAA"}
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAEzD,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAkB3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY,GAAG,SAAS;AACtC,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAkK/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,eAAe,EACtB,MAAM,MAAM,eAAe,EAC3B,QAAQ,MAAM,EACd,4BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACzB,KACL,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA8F/B,CAAA"}
@@ -37,7 +37,7 @@ const C = () => {
37
37
  }
38
38
  const w = a[t];
39
39
  if (w["x-scalar-secret-redirect-uri"].startsWith("/")) {
40
- const s = f.url || window.location.origin + window.location.pathname, n = new URL(w["x-scalar-secret-redirect-uri"], s).toString();
40
+ const s = f?.url || window.location.origin + window.location.pathname, n = new URL(w["x-scalar-secret-redirect-uri"], s).toString();
41
41
  c.searchParams.set("redirect_uri", n);
42
42
  } else
43
43
  c.searchParams.set("redirect_uri", w["x-scalar-secret-redirect-uri"]);
@@ -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":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/data-table/DataTable.vue"],"names":[],"mappings":"AAwCA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;IAC/B,0BAA0B;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AA8CF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,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,CAAC;AAoB/C,QAAA,MAAM,eAAe,kSAMnB,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":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/data-table/DataTable.vue"],"names":[],"mappings":"AAwCA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;IAC/B,0BAA0B;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AA6CF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,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,CAAC;AAoB/C,QAAA,MAAM,eAAe,kSAMnB,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,9 +1,9 @@
1
- import { defineComponent as s, createElementBlock as o, openBlock as l, normalizeProps as n, guardReactiveProps as i, unref as m, createElementVNode as p, normalizeStyle as c, normalizeClass as u, createCommentVNode as d, renderSlot as t } from "vue";
1
+ import { defineComponent as r, createElementBlock as o, openBlock as l, normalizeProps as n, guardReactiveProps as i, unref as m, createElementVNode as p, normalizeStyle as c, normalizeClass as u, createCommentVNode as d, renderSlot as t } from "vue";
2
2
  import { useBindCx as f } from "@scalar/components";
3
3
  const b = ["role"], y = {
4
4
  key: 0,
5
5
  class: "sr-only"
6
- }, _ = /* @__PURE__ */ s({
6
+ }, _ = /* @__PURE__ */ r({
7
7
  __name: "DataTable",
8
8
  props: {
9
9
  columns: {},
@@ -19,10 +19,10 @@ const b = ["role"], y = {
19
19
  )
20
20
  )), [
21
21
  p("table", {
22
- class: u(["mb-0 grid min-h-8 auto-rows-auto border-t", { "w-max min-w-full": e.scroll }]),
22
+ class: u(["mb-0 grid min-h-8 auto-rows-auto", { "w-max min-w-full": e.scroll }]),
23
23
  role: e.presentational ? "presentation" : "table",
24
24
  style: c({
25
- gridTemplateColumns: e.columns.map((r) => r || "1fr").join(" ")
25
+ gridTemplateColumns: e.columns.map((s) => s || "1fr").join(" ")
26
26
  })
27
27
  }, [
28
28
  e.$slots.caption ? (l(), o("caption", y, [
@@ -1,5 +1,4 @@
1
- import type { Environment } from '@scalar/oas-utils/entities/environment';
2
- import type { EnvVariable } from '../../../store/active-entities.js';
1
+ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
3
2
  import type { VueClassProp } from '../../../types/vue';
4
3
  type __VLS_Props = {
5
4
  id?: string;
@@ -14,18 +13,17 @@ type __VLS_Props = {
14
13
  enum?: string[];
15
14
  min?: number;
16
15
  max?: number;
17
- environment: Environment;
18
- envVariables: EnvVariable[];
16
+ environment: XScalarEnvironment;
19
17
  description?: string | undefined;
20
18
  lineWrapping?: boolean;
21
19
  };
22
- declare var __VLS_5: {}, __VLS_25: {}, __VLS_27: {};
20
+ declare var __VLS_5: {}, __VLS_26: {}, __VLS_28: {};
23
21
  type __VLS_Slots = {} & {
24
22
  default?: (props: typeof __VLS_5) => any;
25
23
  } & {
26
- warning?: (props: typeof __VLS_25) => any;
24
+ warning?: (props: typeof __VLS_26) => any;
27
25
  } & {
28
- icon?: (props: typeof __VLS_27) => any;
26
+ icon?: (props: typeof __VLS_28) => any;
29
27
  };
30
28
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
31
29
  selectVariable: (value: string) => any;