@scalar/api-client 2.9.1 → 2.11.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 (434) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +2 -2
  3. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
  4. package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -0
  5. package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
  6. package/dist/components/Server/ServerVariablesForm.vue.js +6 -6
  7. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  8. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
  9. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +14 -13
  10. package/dist/hooks/useClientConfig.d.ts +3 -3
  11. package/dist/layouts/App/create-api-client-app.d.ts +1 -1
  12. package/dist/layouts/Web/create-api-client-web.d.ts +1 -1
  13. package/dist/libs/create-client.d.ts +1 -1
  14. package/dist/libs/send-request/build-request-security.d.ts.map +1 -1
  15. package/dist/libs/send-request/build-request-security.js +1 -1
  16. package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
  17. package/dist/store/store.d.ts +1 -1
  18. package/dist/style.css +1 -1
  19. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +87 -0
  20. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -0
  21. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +126 -0
  22. package/dist/v2/blocks/operation-block/OperationBlock.vue2.js +4 -0
  23. package/dist/v2/{features/operation → blocks/operation-block}/components/Header.vue.d.ts +10 -32
  24. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -0
  25. package/dist/v2/{features/operation → blocks/operation-block}/components/Header.vue.js +2 -2
  26. package/dist/v2/blocks/operation-block/components/Header.vue2.js +91 -0
  27. package/dist/v2/blocks/operation-block/index.d.ts +2 -0
  28. package/dist/v2/blocks/operation-block/index.d.ts.map +1 -0
  29. package/dist/v2/blocks/operation-block/index.js +4 -0
  30. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
  31. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +11 -10
  32. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +10 -29
  33. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  34. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
  35. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +52 -53
  36. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +15 -34
  37. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  38. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +179 -5
  39. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -169
  40. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +201 -198
  41. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +17 -22
  42. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  43. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +82 -5
  44. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +2 -80
  45. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +3 -13
  46. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  47. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +16 -18
  48. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +134 -144
  49. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +1 -1
  50. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  51. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +47 -45
  52. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +5 -5
  53. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
  54. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +7 -7
  55. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +7 -24
  56. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
  57. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
  58. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +230 -208
  59. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +33 -30
  60. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +1 -1
  61. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
  62. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +138 -99
  63. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +3 -5
  64. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +1 -1
  65. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +35 -35
  66. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +3 -5
  67. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +1 -1
  68. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +1 -1
  69. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +45 -44
  70. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts +2 -5
  71. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +1 -1
  72. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +67 -65
  73. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts +2 -2
  74. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +1 -1
  75. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +9 -9
  76. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +2 -4
  77. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
  78. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
  79. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +39 -38
  80. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +1 -1
  81. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.js +2 -2
  82. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +18 -18
  83. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -1
  84. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.js +14 -14
  85. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -1
  86. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +12 -12
  87. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +1 -1
  88. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +13 -13
  89. package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -1
  90. package/dist/v2/components/data-table/DataTable.vue.js +4 -4
  91. package/dist/v2/components/data-table/DataTableInput.vue.d.ts +5 -7
  92. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
  93. package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
  94. package/dist/v2/components/data-table/DataTableInput.vue2.js +32 -36
  95. package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +25 -0
  96. package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -0
  97. package/dist/v2/components/forms/ConfirmationForm.vue.js +7 -0
  98. package/dist/v2/components/forms/ConfirmationForm.vue2.js +45 -0
  99. package/dist/v2/components/forms/index.d.ts +2 -0
  100. package/dist/v2/components/forms/index.d.ts.map +1 -0
  101. package/dist/v2/components/forms/index.js +4 -0
  102. package/dist/v2/components/layout/CollapsibleSection.vue.d.ts +43 -0
  103. package/dist/v2/components/layout/CollapsibleSection.vue.d.ts.map +1 -0
  104. package/dist/v2/components/layout/CollapsibleSection.vue.js +89 -0
  105. package/dist/v2/components/layout/CollapsibleSection.vue2.js +4 -0
  106. package/dist/v2/components/layout/ValueEmitter.vue.d.ts +23 -0
  107. package/dist/v2/components/layout/ValueEmitter.vue.d.ts.map +1 -0
  108. package/dist/v2/components/layout/ValueEmitter.vue.js +21 -0
  109. package/dist/v2/components/layout/ValueEmitter.vue2.js +4 -0
  110. package/dist/v2/components/layout/index.d.ts +2 -0
  111. package/dist/v2/components/layout/index.d.ts.map +1 -0
  112. package/dist/v2/components/layout/index.js +4 -0
  113. package/dist/v2/components/modals/DeleteModal.vue.d.ts +15 -0
  114. package/dist/v2/components/modals/DeleteModal.vue.d.ts.map +1 -0
  115. package/dist/v2/components/modals/DeleteModal.vue.js +31 -0
  116. package/dist/v2/components/modals/DeleteModal.vue2.js +4 -0
  117. package/dist/v2/components/modals/index.d.ts +2 -0
  118. package/dist/v2/components/modals/index.d.ts.map +1 -0
  119. package/dist/v2/components/modals/index.js +4 -0
  120. package/dist/v2/components/server/ServerDropdown.vue.d.ts +4 -2
  121. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
  122. package/dist/v2/components/server/ServerDropdown.vue.js +31 -31
  123. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +2 -6
  124. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
  125. package/dist/v2/components/server/ServerDropdownItem.vue.js +1 -1
  126. package/dist/v2/components/server/ServerDropdownItem.vue2.js +16 -16
  127. package/dist/v2/components/server/index.d.ts.map +1 -1
  128. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +6 -2
  129. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  130. package/dist/v2/components/sidebar/Sidebar.vue.js +38 -47
  131. package/dist/v2/features/app/App.vue.d.ts +2 -2
  132. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  133. package/dist/v2/features/app/App.vue.js +93 -65
  134. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +7 -3
  135. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  136. package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
  137. package/dist/v2/features/app/components/AppSidebar.vue2.js +50 -47
  138. package/dist/v2/features/app/helpers/routes.d.ts +5 -11
  139. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  140. package/dist/v2/features/app/helpers/routes.js +1 -1
  141. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  142. package/dist/v2/features/collection/DocumentCollection.vue2.js +77 -72
  143. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +15 -12
  144. package/dist/v2/features/collection/components/Authentication.vue.d.ts +13 -46
  145. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  146. package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
  147. package/dist/v2/features/collection/components/Authentication.vue2.js +48 -37
  148. package/dist/v2/features/collection/components/Environment.vue2.js +3 -0
  149. package/dist/v2/features/collection/components/Form.vue.d.ts +3 -7
  150. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
  151. package/dist/v2/features/collection/components/Form.vue.js +28 -33
  152. package/dist/v2/features/collection/components/Overview.vue2.js +24 -21
  153. package/dist/v2/features/collection/components/Servers.vue.d.ts +13 -31
  154. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  155. package/dist/v2/features/collection/components/Servers.vue2.js +103 -82
  156. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
  157. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +3 -3
  158. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  159. package/dist/v2/features/modal/Modal.vue.js +3 -3
  160. package/dist/v2/features/modal/Modal.vue2.js +40 -32
  161. package/dist/v2/features/operation/Operation.vue.d.ts +10 -77
  162. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  163. package/dist/v2/features/operation/Operation.vue.js +50 -114
  164. package/dist/v2/hooks/use-sidebar-state.d.ts +47 -0
  165. package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -0
  166. package/dist/v2/hooks/use-sidebar-state.js +112 -0
  167. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
  168. package/dist/v2/hooks/use-workspace-client-events.js +100 -19
  169. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  170. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  171. package/dist/views/Request/libs/oauth2.js +8 -6
  172. package/package.json +17 -17
  173. package/dist/components/CodeInput/CodeInput.test.d.ts +0 -2
  174. package/dist/components/CodeInput/CodeInput.test.d.ts.map +0 -1
  175. package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts +0 -2
  176. package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts.map +0 -1
  177. package/dist/components/ImportCollection/utils/is-document.test.d.ts +0 -2
  178. package/dist/components/ImportCollection/utils/is-document.test.d.ts.map +0 -1
  179. package/dist/components/ImportCollection/utils/is-url.test.d.ts +0 -2
  180. package/dist/components/ImportCollection/utils/is-url.test.d.ts.map +0 -1
  181. package/dist/components/Search/useSearch.test.d.ts +0 -2
  182. package/dist/components/Search/useSearch.test.d.ts.map +0 -1
  183. package/dist/components/Server/ServerDropdown.test.d.ts +0 -2
  184. package/dist/components/Server/ServerDropdown.test.d.ts.map +0 -1
  185. package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts +0 -2
  186. package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts.map +0 -1
  187. package/dist/hooks/useResponseBody.test.d.ts +0 -2
  188. package/dist/hooks/useResponseBody.test.d.ts.map +0 -1
  189. package/dist/hooks/useSidebar.test.d.ts +0 -2
  190. package/dist/hooks/useSidebar.test.d.ts.map +0 -1
  191. package/dist/layouts/App/create-api-client-app.test.d.ts +0 -2
  192. package/dist/layouts/App/create-api-client-app.test.d.ts.map +0 -1
  193. package/dist/layouts/Modal/create-api-client-modal.test.d.ts +0 -2
  194. package/dist/layouts/Modal/create-api-client-modal.test.d.ts.map +0 -1
  195. package/dist/layouts/Web/create-api-client-web.test.d.ts +0 -2
  196. package/dist/layouts/Web/create-api-client-web.test.d.ts.map +0 -1
  197. package/dist/libs/create-client.test.d.ts +0 -2
  198. package/dist/libs/create-client.test.d.ts.map +0 -1
  199. package/dist/libs/env-helpers.test.d.ts +0 -2
  200. package/dist/libs/env-helpers.test.d.ts.map +0 -1
  201. package/dist/libs/event-bus.test.d.ts +0 -2
  202. package/dist/libs/event-bus.test.d.ts.map +0 -1
  203. package/dist/libs/extractAttachmentFilename.test.d.ts +0 -2
  204. package/dist/libs/extractAttachmentFilename.test.d.ts.map +0 -1
  205. package/dist/libs/find-request.test.d.ts +0 -2
  206. package/dist/libs/find-request.test.d.ts.map +0 -1
  207. package/dist/libs/get-request-uid-by-path-method.test.d.ts +0 -2
  208. package/dist/libs/get-request-uid-by-path-method.test.d.ts.map +0 -1
  209. package/dist/libs/hot-keys.test.d.ts +0 -2
  210. package/dist/libs/hot-keys.test.d.ts.map +0 -1
  211. package/dist/libs/importers/curl.test.d.ts +0 -2
  212. package/dist/libs/importers/curl.test.d.ts.map +0 -1
  213. package/dist/libs/normalize-headers.test.d.ts +0 -2
  214. package/dist/libs/normalize-headers.test.d.ts.map +0 -1
  215. package/dist/libs/parse-curl.test.d.ts +0 -2
  216. package/dist/libs/parse-curl.test.d.ts.map +0 -1
  217. package/dist/libs/send-request/build-request-security.test.d.ts +0 -2
  218. package/dist/libs/send-request/build-request-security.test.d.ts.map +0 -1
  219. package/dist/libs/send-request/create-fetch-auth.test.d.ts +0 -2
  220. package/dist/libs/send-request/create-fetch-auth.test.d.ts.map +0 -1
  221. package/dist/libs/send-request/create-fetch-body.test.d.ts +0 -2
  222. package/dist/libs/send-request/create-fetch-body.test.d.ts.map +0 -1
  223. package/dist/libs/send-request/create-fetch-headers.test.d.ts +0 -2
  224. package/dist/libs/send-request/create-fetch-headers.test.d.ts.map +0 -1
  225. package/dist/libs/send-request/create-fetch-query-params.test.d.ts +0 -2
  226. package/dist/libs/send-request/create-fetch-query-params.test.d.ts.map +0 -1
  227. package/dist/libs/send-request/create-request-operation.test.d.ts +0 -191
  228. package/dist/libs/send-request/create-request-operation.test.d.ts.map +0 -1
  229. package/dist/libs/send-request/decode-buffer.test.d.ts +0 -2
  230. package/dist/libs/send-request/decode-buffer.test.d.ts.map +0 -1
  231. package/dist/libs/send-request/set-request-cookies.test.d.ts +0 -2
  232. package/dist/libs/send-request/set-request-cookies.test.d.ts.map +0 -1
  233. package/dist/libs/string-template.test.d.ts +0 -2
  234. package/dist/libs/string-template.test.d.ts.map +0 -1
  235. package/dist/libs/validate-parameters.test.d.ts +0 -2
  236. package/dist/libs/validate-parameters.test.d.ts.map +0 -1
  237. package/dist/plugins/plugin-manager.test.d.ts +0 -2
  238. package/dist/plugins/plugin-manager.test.d.ts.map +0 -1
  239. package/dist/routes.test.d.ts +0 -2
  240. package/dist/routes.test.d.ts.map +0 -1
  241. package/dist/store/collections.test.d.ts +0 -2
  242. package/dist/store/collections.test.d.ts.map +0 -1
  243. package/dist/store/request.test.d.ts +0 -2
  244. package/dist/store/request.test.d.ts.map +0 -1
  245. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts +0 -2
  246. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts.map +0 -1
  247. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts +0 -2
  248. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts.map +0 -1
  249. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts +0 -2
  250. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts.map +0 -1
  251. package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts +0 -2
  252. package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts.map +0 -1
  253. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts +0 -2
  254. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts.map +0 -1
  255. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts +0 -2
  256. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts.map +0 -1
  257. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts +0 -2
  258. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts.map +0 -1
  259. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts +0 -2
  260. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts.map +0 -1
  261. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts +0 -2
  262. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts.map +0 -1
  263. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts +0 -2
  264. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts.map +0 -1
  265. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts +0 -2
  266. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts.map +0 -1
  267. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts +0 -2
  268. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts.map +0 -1
  269. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts +0 -2
  270. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts.map +0 -1
  271. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts +0 -2
  272. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts.map +0 -1
  273. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts +0 -2
  274. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts.map +0 -1
  275. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts +0 -2
  276. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts.map +0 -1
  277. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts +0 -2
  278. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts.map +0 -1
  279. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts +0 -2
  280. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts.map +0 -1
  281. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts +0 -2
  282. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts.map +0 -1
  283. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts +0 -2
  284. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts.map +0 -1
  285. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +0 -45
  286. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +0 -1
  287. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts +0 -2
  288. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts.map +0 -1
  289. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts +0 -2
  290. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts.map +0 -1
  291. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts +0 -2
  292. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts.map +0 -1
  293. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +0 -29
  294. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +0 -1
  295. package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts +0 -29
  296. package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts.map +0 -1
  297. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts +0 -2
  298. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts.map +0 -1
  299. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts +0 -2
  300. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts.map +0 -1
  301. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts +0 -2
  302. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts.map +0 -1
  303. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts +0 -2
  304. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts.map +0 -1
  305. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts +0 -2
  306. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts.map +0 -1
  307. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts +0 -2
  308. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts.map +0 -1
  309. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts +0 -2
  310. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts.map +0 -1
  311. package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts +0 -2
  312. package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts.map +0 -1
  313. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts +0 -2
  314. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts.map +0 -1
  315. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts +0 -2
  316. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts.map +0 -1
  317. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts +0 -2
  318. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts.map +0 -1
  319. package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts +0 -2
  320. package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts.map +0 -1
  321. package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts +0 -2
  322. package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts.map +0 -1
  323. package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts +0 -2
  324. package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts.map +0 -1
  325. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts +0 -2
  326. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts.map +0 -1
  327. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts +0 -2
  328. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts.map +0 -1
  329. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts +0 -2
  330. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts.map +0 -1
  331. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts +0 -2
  332. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts.map +0 -1
  333. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts +0 -2
  334. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts.map +0 -1
  335. package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts +0 -2
  336. package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts.map +0 -1
  337. package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts +0 -2
  338. package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts.map +0 -1
  339. package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts +0 -2
  340. package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts.map +0 -1
  341. package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts +0 -2
  342. package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts.map +0 -1
  343. package/dist/v2/components/code-input/CodeInput.test.d.ts +0 -2
  344. package/dist/v2/components/code-input/CodeInput.test.d.ts.map +0 -1
  345. package/dist/v2/components/code-input/code-variable-widget.test.d.ts +0 -2
  346. package/dist/v2/components/code-input/code-variable-widget.test.d.ts.map +0 -1
  347. package/dist/v2/components/server/ServerDropdown.test.d.ts +0 -2
  348. package/dist/v2/components/server/ServerDropdown.test.d.ts.map +0 -1
  349. package/dist/v2/components/server/ServerDropdownItem.test.d.ts +0 -2
  350. package/dist/v2/components/server/ServerDropdownItem.test.d.ts.map +0 -1
  351. package/dist/v2/features/app/App.test.d.ts +0 -2
  352. package/dist/v2/features/app/App.test.d.ts.map +0 -1
  353. package/dist/v2/features/collection/DocumentCollection.test.d.ts +0 -2
  354. package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +0 -1
  355. package/dist/v2/features/collection/components/Authentication.test.d.ts +0 -2
  356. package/dist/v2/features/collection/components/Authentication.test.d.ts.map +0 -1
  357. package/dist/v2/features/collection/components/Environment.test.d.ts +0 -2
  358. package/dist/v2/features/collection/components/Environment.test.d.ts.map +0 -1
  359. package/dist/v2/features/collection/components/LabelInput.test.d.ts +0 -2
  360. package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +0 -1
  361. package/dist/v2/features/collection/components/Overview.test.d.ts +0 -2
  362. package/dist/v2/features/collection/components/Overview.test.d.ts.map +0 -1
  363. package/dist/v2/features/collection/components/Servers.test.d.ts +0 -2
  364. package/dist/v2/features/collection/components/Servers.test.d.ts.map +0 -1
  365. package/dist/v2/features/collection/components/Settings.test.d.ts +0 -2
  366. package/dist/v2/features/collection/components/Settings.test.d.ts.map +0 -1
  367. package/dist/v2/features/collection/components/Tabs.test.d.ts +0 -2
  368. package/dist/v2/features/collection/components/Tabs.test.d.ts.map +0 -1
  369. package/dist/v2/features/environments/EnvironmentsList.test.d.ts +0 -2
  370. package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +0 -1
  371. package/dist/v2/features/environments/components/Environment.test.d.ts +0 -2
  372. package/dist/v2/features/environments/components/Environment.test.d.ts.map +0 -1
  373. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +0 -2
  374. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +0 -1
  375. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +0 -2
  376. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +0 -1
  377. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +0 -2
  378. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +0 -1
  379. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +0 -2
  380. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +0 -1
  381. package/dist/v2/features/operation/Operation.test.d.ts +0 -2
  382. package/dist/v2/features/operation/Operation.test.d.ts.map +0 -1
  383. package/dist/v2/features/operation/components/Header.test.d.ts +0 -2
  384. package/dist/v2/features/operation/components/Header.test.d.ts.map +0 -1
  385. package/dist/v2/features/operation/components/Header.vue.d.ts.map +0 -1
  386. package/dist/v2/features/operation/components/Header.vue2.js +0 -97
  387. package/dist/v2/features/settings/Settings.test.d.ts +0 -2
  388. package/dist/v2/features/settings/Settings.test.d.ts.map +0 -1
  389. package/dist/v2/hooks/use-document-watcher.test.d.ts +0 -2
  390. package/dist/v2/hooks/use-document-watcher.test.d.ts.map +0 -1
  391. package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts +0 -2
  392. package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts.map +0 -1
  393. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts +0 -2
  394. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts.map +0 -1
  395. package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts +0 -2
  396. package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts.map +0 -1
  397. package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts +0 -2
  398. package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts.map +0 -1
  399. package/dist/views/Request/RequestRoot.test.d.ts +0 -2
  400. package/dist/views/Request/RequestRoot.test.d.ts.map +0 -1
  401. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts +0 -2
  402. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts.map +0 -1
  403. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts +0 -2
  404. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts.map +0 -1
  405. package/dist/views/Request/RequestSection/RequestBody.test.d.ts +0 -2
  406. package/dist/views/Request/RequestSection/RequestBody.test.d.ts.map +0 -1
  407. package/dist/views/Request/RequestSection/RequestCodeExample.test.d.ts +0 -2
  408. package/dist/views/Request/RequestSection/RequestCodeExample.test.d.ts.map +0 -1
  409. package/dist/views/Request/RequestSection/RequestSection.test.d.ts +0 -2
  410. package/dist/views/Request/RequestSection/RequestSection.test.d.ts.map +0 -1
  411. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts +0 -2
  412. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts.map +0 -1
  413. package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts +0 -2
  414. package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts.map +0 -1
  415. package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts +0 -2
  416. package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts.map +0 -1
  417. package/dist/views/Request/RequestSubpageHeader.test.d.ts +0 -2
  418. package/dist/views/Request/RequestSubpageHeader.test.d.ts.map +0 -1
  419. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts +0 -2
  420. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts.map +0 -1
  421. package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts +0 -2
  422. package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts.map +0 -1
  423. package/dist/views/Request/consts/mediaTypes.test.d.ts +0 -2
  424. package/dist/views/Request/consts/mediaTypes.test.d.ts.map +0 -1
  425. package/dist/views/Request/libs/auth.test.d.ts +0 -2
  426. package/dist/views/Request/libs/auth.test.d.ts.map +0 -1
  427. package/dist/views/Request/libs/oauth2.test.d.ts +0 -2
  428. package/dist/views/Request/libs/oauth2.test.d.ts.map +0 -1
  429. package/dist/views/Request/libs/request.test.d.ts +0 -2
  430. package/dist/views/Request/libs/request.test.d.ts.map +0 -1
  431. package/dist/views/Request/libs/watch-mode.test.d.ts +0 -2
  432. package/dist/views/Request/libs/watch-mode.test.d.ts.map +0 -1
  433. package/dist/vitest.setup.d.ts +0 -34
  434. package/dist/vitest.setup.d.ts.map +0 -1
@@ -1,82 +1,4 @@
1
- import { defineComponent as v, ref as f, computed as h, watch as y, createElementBlock as o, openBlock as r, withModifiers as S, createCommentVNode as d, createBlock as x, normalizeClass as n, Fragment as g, renderList as k, createElementVNode as m, toDisplayString as w, unref as V, withCtx as C, createVNode as O } from "vue";
2
- import z from "./RequestAuthTab.vue.js";
3
- import N from "../../../../components/DataTable/DataTable.vue.js";
4
- const j = ["onClick"], B = { class: "relative z-10 font-medium whitespace-nowrap" }, $ = {
5
- key: 0,
6
- class: "absolute inset-x-1 bottom-[var(--scalar-border-width)] left-1/2 z-1 h-px w-full -translate-x-1/2 bg-current"
7
- }, U = /* @__PURE__ */ v({
8
- __name: "RequestAuthDataTable",
9
- props: {
10
- environment: {},
11
- envVariables: {},
12
- layout: { default: "client" },
13
- selectedSchemeOptions: { default: () => [] },
14
- securitySchemes: {},
15
- server: {}
16
- },
17
- emits: ["update:securityScheme", "update:selectedScopes"],
18
- setup(c, { expose: p, emit: b }) {
19
- const u = b, t = f(0), l = h(() => c.selectedSchemeOptions[t.value]);
20
- return y(
21
- () => c.selectedSchemeOptions,
22
- (e) => {
23
- (!e || !e[t.value]) && (t.value = Math.max(0, t.value - 1));
24
- }
25
- ), p({
26
- activeAuthIndex: t,
27
- activeScheme: l
28
- }), (e, s) => (r(), o("form", {
29
- onSubmit: s[2] || (s[2] = S(() => {
30
- }, ["prevent"]))
31
- }, [
32
- e.selectedSchemeOptions.length > 1 ? (r(), o("div", {
33
- key: 0,
34
- class: n(["box-content flex flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", e.layout === "client" && "border-x-0"]),
35
- "data-testid": "auth-tabs"
36
- }, [
37
- (r(!0), o(g, null, k(e.selectedSchemeOptions, (a, i) => (r(), o("div", {
38
- key: Object.keys(a).join(" & "),
39
- class: n(["relative z-1 -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer", [t.value === i ? "text-c-1" : "text-c-3"]])
40
- }, [
41
- m("button", {
42
- class: "floating-bg relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium",
43
- type: "button",
44
- onClick: (A) => t.value = i
45
- }, [
46
- m("span", B, w(a.label), 1)
47
- ], 8, j),
48
- t.value === i ? (r(), o("div", $)) : d("", !0)
49
- ], 2))), 128))
50
- ], 2)) : d("", !0),
51
- l.value ? (r(), x(V(N), {
52
- key: 1,
53
- class: n(["flex-1", e.layout === "reference" && "bg-b-1 rounded-b-lg border border-t-0"]),
54
- columns: [""],
55
- presentational: ""
56
- }, {
57
- default: C(() => [
58
- O(z, {
59
- envVariables: e.envVariables,
60
- environment: e.environment,
61
- layout: e.layout,
62
- securitySchemes: e.securitySchemes ?? {},
63
- selectedSecuritySchema: l.value.value,
64
- server: e.server,
65
- "onUpdate:securityScheme": s[0] || (s[0] = (a) => u("update:securityScheme", a)),
66
- "onUpdate:selectedScopes": s[1] || (s[1] = (a) => u("update:selectedScopes", a))
67
- }, null, 8, ["envVariables", "environment", "layout", "securitySchemes", "selectedSecuritySchema", "server"])
68
- ]),
69
- _: 1
70
- }, 8, ["class"])) : (r(), o("div", {
71
- key: 2,
72
- class: n([
73
- "text-c-3 bg-b-1 flex min-h-16 items-center justify-center border-t px-4 text-sm",
74
- e.layout === "reference" && "min-h-[calc(4rem+0.5px)] rounded-b-lg border"
75
- ])
76
- }, " No authentication selected ", 2))
77
- ], 32));
78
- }
79
- });
1
+ import f from "./RequestAuthDataTable.vue.js";
80
2
  export {
81
- U as default
3
+ f as default
82
4
  };
@@ -1,18 +1,8 @@
1
- import type { Environment } from '@scalar/oas-utils/entities/environment';
2
- import { type MaybeRefOrGetter } from 'vue';
3
- import type { EnvVariable } from '../../../../store/index.js';
4
- /**
5
- * Vue class prop type
6
- *
7
- * Vue seems to just use any behind the scenes
8
- *
9
- * @see https://vuejs.org/guide/essentials/class-and-style.html#class-and-style-bindings
10
- */
11
- export type VueClassProp = MaybeRefOrGetter<string | Record<string, boolean> | (string | Record<string, boolean>)[] | false>;
1
+ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
2
+ import type { VueClassProp } from '../../../../types/vue';
12
3
  type __VLS_Props = {
13
4
  containerClass?: VueClassProp;
14
- environment: Environment;
15
- envVariables: EnvVariable[];
5
+ environment: XScalarEnvironment;
16
6
  readOnly?: boolean;
17
7
  required?: boolean;
18
8
  type?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAAS,KAAK,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAGlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,gBAAgB,CACvC,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACvB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,GACpC,KAAK,CACR,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,cAAc,CAAC,EAAE,YAAY,CAAA;IAC7B,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAC;AAyBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,EAAE,MAAM,CAAC;CAClB,CAAC;AA2EF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAyB7C,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":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAGnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG/C,KAAK,WAAW,GAAG;IACjB,cAAc,CAAC,EAAE,YAAY,CAAA;IAC7B,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAC;AAwBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,EAAE,MAAM,CAAC;CAClB,CAAC;AAyEF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAyB7C,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,11 +1,10 @@
1
- import { defineComponent as p, mergeModels as u, useModel as V, useId as f, createBlock as v, openBlock as y, unref as t, mergeProps as b, withCtx as s, renderSlot as i, createElementVNode as C } from "vue";
2
- import B from "../../../../components/DataTable/DataTableInput.vue.js";
1
+ import { defineComponent as p, mergeModels as u, useModel as f, useId as V, createBlock as y, openBlock as v, unref as o, mergeProps as C, withCtx as d, renderSlot as s, createElementVNode as B } from "vue";
2
+ import b from "../../../components/data-table/DataTableInput.vue.js";
3
3
  const q = ["for"], $ = /* @__PURE__ */ p({
4
4
  __name: "RequestAuthDataTableInput",
5
5
  props: /* @__PURE__ */ u({
6
6
  containerClass: {},
7
7
  environment: {},
8
- envVariables: {},
9
8
  readOnly: { type: Boolean, default: !1 },
10
9
  required: { type: Boolean, default: !1 },
11
10
  type: {}
@@ -14,33 +13,32 @@ const q = ["for"], $ = /* @__PURE__ */ p({
14
13
  modelModifiers: {}
15
14
  }),
16
15
  emits: /* @__PURE__ */ u(["inputFocus", "inputBlur", "selectVariable"], ["update:modelValue"]),
17
- setup(d, { emit: m }) {
18
- const a = m, o = V(d, "modelValue"), r = f();
19
- return (e, n) => (y(), v(t(B), b({ id: t(r) }, e.$attrs, {
20
- modelValue: o.value,
21
- "onUpdate:modelValue": n[0] || (n[0] = (l) => o.value = l),
16
+ setup(i, { emit: m }) {
17
+ const t = m, r = f(i, "modelValue"), a = V();
18
+ return (e, n) => (v(), y(o(b), C({ id: o(a) }, e.$attrs, {
19
+ modelValue: r.value,
20
+ "onUpdate:modelValue": n[0] || (n[0] = (l) => r.value = l),
22
21
  canAddCustomEnumValue: !e.readOnly,
23
22
  containerClass: e.containerClass,
24
- envVariables: e.envVariables,
25
23
  environment: e.environment,
26
24
  lineWrapping: "",
27
25
  readOnly: e.readOnly,
28
26
  required: e.required,
29
27
  type: e.type,
30
- onInputBlur: n[1] || (n[1] = (l) => a("inputBlur")),
31
- onInputFocus: n[2] || (n[2] = (l) => a("inputFocus")),
32
- onSelectVariable: n[3] || (n[3] = (l) => a("selectVariable", l))
28
+ onInputBlur: n[1] || (n[1] = (l) => t("inputBlur")),
29
+ onInputFocus: n[2] || (n[2] = (l) => t("inputFocus")),
30
+ onSelectVariable: n[3] || (n[3] = (l) => t("selectVariable", l))
33
31
  }), {
34
- default: s(() => [
35
- C("label", { for: t(r) }, [
36
- i(e.$slots, "default")
32
+ default: d(() => [
33
+ B("label", { for: o(a) }, [
34
+ s(e.$slots, "default")
37
35
  ], 8, q)
38
36
  ]),
39
- icon: s(() => [
40
- i(e.$slots, "icon")
37
+ icon: d(() => [
38
+ s(e.$slots, "icon")
41
39
  ]),
42
40
  _: 3
43
- }, 16, ["id", "modelValue", "canAddCustomEnumValue", "containerClass", "envVariables", "environment", "readOnly", "required", "type"]));
41
+ }, 16, ["id", "modelValue", "canAddCustomEnumValue", "containerClass", "environment", "readOnly", "required", "type"]));
44
42
  }
45
43
  });
46
44
  export {
@@ -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: {},
17
- selectedSecuritySchema: {},
12
+ isStatic: { type: Boolean },
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.selectedSecuritySchema).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,158 +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
- scheme: t,
203
- selectedScopes: U,
204
- server: l.server,
205
- type: d,
206
- "onUpdate:securityScheme": (g) => c("update:securityScheme", {
207
- type: "oauth2",
208
- flow: d,
209
- payload: g
210
- }),
211
- "onUpdate:selectedScopes": (g) => c("update:selectedScopes", {
212
- id: Object.keys(l.selectedSecuritySchema),
213
- name: m,
214
- ...g
215
- })
216
- }), null, 16, ["flows", "scheme", "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)
217
207
  ], 64))), 128))
218
- ], 64)) : t?.type === "openIdConnect" ? (r(), u("div", {
208
+ ], 64)) : t?.type === "openIdConnect" ? (r(), s("div", {
219
209
  key: 5,
220
- 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" }])
221
- }, " 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)
222
212
  ], 64))), 128));
223
213
  }
224
214
  });
225
215
  export {
226
- Y as default
216
+ re as default
227
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,CAY3G,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"}