@scalar/api-client 2.15.0 → 2.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/CHANGELOG.md +166 -0
  2. package/dist/hooks/useResponseBody.js +6 -6
  3. package/dist/libs/errors.d.ts +1 -0
  4. package/dist/libs/errors.d.ts.map +1 -1
  5. package/dist/libs/errors.js +1 -0
  6. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  7. package/dist/libs/send-request/create-request-operation.js +41 -35
  8. package/dist/style.css +1 -1
  9. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +28 -38
  10. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  11. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +84 -45
  12. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +1 -11
  13. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  14. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
  15. package/dist/v2/blocks/operation-block/components/Header.vue2.js +28 -35
  16. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts +10 -0
  17. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -0
  18. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +22 -0
  19. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts +31 -0
  20. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts.map +1 -0
  21. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +31 -0
  22. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts +3 -9
  23. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
  24. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +56 -0
  25. package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +10 -3
  26. package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts.map +1 -1
  27. package/dist/v2/blocks/operation-block/helpers/build-request-security.js +46 -0
  28. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +45 -0
  29. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -0
  30. package/dist/v2/blocks/operation-block/helpers/build-request.js +66 -0
  31. package/dist/v2/blocks/operation-block/helpers/decode-buffer.js +9 -0
  32. package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.d.ts +16 -0
  33. package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.d.ts.map +1 -0
  34. package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.js +4 -0
  35. package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +17 -0
  36. package/dist/v2/blocks/operation-block/helpers/get-example.d.ts +9 -3
  37. package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
  38. package/dist/v2/blocks/operation-block/helpers/get-example.js +21 -0
  39. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +53 -0
  40. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts.map +1 -0
  41. package/dist/v2/blocks/operation-block/helpers/send-request.js +120 -0
  42. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts +1 -1
  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/OperationCodeSample.vue.d.ts.map +1 -1
  45. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +1 -1
  46. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +89 -110
  47. package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts +2 -2
  48. package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts.map +1 -1
  49. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts +8 -13
  50. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts.map +1 -1
  51. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +22 -28
  52. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +19 -8
  53. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  54. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +30 -24
  55. package/dist/v2/blocks/operation-code-sample/helpers/get-clients.d.ts +12 -0
  56. package/dist/v2/blocks/operation-code-sample/helpers/get-clients.d.ts.map +1 -0
  57. package/dist/v2/blocks/operation-code-sample/helpers/get-clients.js +20 -0
  58. package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.d.ts +10 -0
  59. package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.d.ts.map +1 -0
  60. package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.js +4 -0
  61. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts +14 -12
  62. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts.map +1 -1
  63. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +191 -169
  64. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
  65. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +10 -10
  66. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts +2 -1
  67. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
  68. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +15 -19
  69. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +2 -2
  70. package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -1
  71. package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
  72. package/dist/v2/blocks/operation-code-sample/types.d.ts +16 -0
  73. package/dist/v2/blocks/operation-code-sample/types.d.ts.map +1 -1
  74. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +15 -10
  75. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  76. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  77. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +158 -125
  78. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  79. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  80. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +59 -50
  81. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts +8 -0
  82. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -0
  83. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +127 -0
  84. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue2.js +4 -0
  85. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  86. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +24 -23
  87. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +1 -0
  88. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  89. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +148 -149
  90. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts +1 -0
  91. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -1
  92. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +1 -1
  93. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +28 -27
  94. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -2
  95. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
  96. package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +13 -3
  97. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +4 -4
  98. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
  99. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +3 -3
  100. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +41 -45
  101. package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -1
  102. package/dist/v2/blocks/response-block/components/Headers.vue.js +27 -27
  103. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +1 -1
  104. package/dist/v2/blocks/response-block/helpers/parse-set-cookie.d.ts +18 -0
  105. package/dist/v2/blocks/response-block/helpers/parse-set-cookie.d.ts.map +1 -0
  106. package/dist/v2/blocks/response-block/helpers/parse-set-cookie.js +12 -0
  107. package/dist/v2/blocks/response-block/helpers/process-response-body.js +2 -2
  108. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +0 -2
  109. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  110. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  111. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +97 -87
  112. package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.d.ts +19 -0
  113. package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.d.ts.map +1 -0
  114. package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.js +24 -0
  115. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +3 -2
  116. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  117. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +59 -56
  118. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +1 -1
  119. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  120. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +3 -1
  121. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  122. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +26 -24
  123. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -1
  124. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  125. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +44 -43
  126. package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.d.ts +4 -0
  127. package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.d.ts.map +1 -0
  128. package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.js +7 -0
  129. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +4 -4
  130. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  131. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +2 -2
  132. package/dist/v2/components/code-input/CodeInput.vue.d.ts +7 -6
  133. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  134. package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
  135. package/dist/v2/components/code-input/CodeInput.vue2.js +61 -59
  136. package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +2 -2
  137. package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -1
  138. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +44 -44
  139. package/dist/v2/components/resize/index.d.ts +0 -1
  140. package/dist/v2/components/resize/index.d.ts.map +1 -1
  141. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +5 -5
  142. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  143. package/dist/v2/components/sidebar/Sidebar.vue.js +49 -47
  144. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +1 -1
  145. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  146. package/dist/v2/features/app/App.vue.d.ts +3 -0
  147. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  148. package/dist/v2/features/app/App.vue.js +128 -139
  149. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +3 -3
  150. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  151. package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
  152. package/dist/v2/features/app/components/AppSidebar.vue2.js +137 -105
  153. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +1 -1
  154. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
  155. package/dist/v2/features/app/components/{ItemDecorator.vue.d.ts → SidebarItemMenu.vue.d.ts} +1 -1
  156. package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts.map +1 -0
  157. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +129 -0
  158. package/dist/v2/features/app/components/SidebarItemMenu.vue2.js +4 -0
  159. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +1 -1
  160. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
  161. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -2
  162. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  163. package/dist/v2/features/app/helpers/create-api-client-app.js +8 -8
  164. package/dist/v2/features/app/helpers/routes.d.ts +32 -6
  165. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  166. package/dist/v2/features/app/helpers/routes.js +25 -16
  167. package/dist/v2/{hooks/use-sidebar-state.d.ts → features/app/hooks/use-app-sidebar.d.ts} +10 -11
  168. package/dist/v2/features/app/hooks/use-app-sidebar.d.ts.map +1 -0
  169. package/dist/v2/{hooks/use-sidebar-state.js → features/app/hooks/use-app-sidebar.js} +19 -19
  170. package/dist/v2/features/app/hooks/use-document-watcher.d.ts.map +1 -0
  171. package/dist/v2/{hooks → features/app/hooks}/use-sync-path.d.ts +2 -2
  172. package/dist/v2/features/app/hooks/use-sync-path.d.ts.map +1 -0
  173. package/dist/v2/features/app/hooks/use-sync-path.js +52 -0
  174. package/dist/v2/{hooks → features/app/hooks}/use-tabs.d.ts +2 -2
  175. package/dist/v2/features/app/hooks/use-tabs.d.ts.map +1 -0
  176. package/dist/v2/{hooks → features/app/hooks}/use-tabs.js +1 -1
  177. package/dist/v2/{hooks/use-workspace-client-events.d.ts → features/app/hooks/use-workspace-client-app-events.d.ts} +5 -5
  178. package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts.map +1 -0
  179. package/dist/v2/{hooks/use-workspace-client-events.js → features/app/hooks/use-workspace-client-app-events.js} +48 -45
  180. package/dist/v2/features/app/hooks/use-workspace-selector.d.ts.map +1 -0
  181. package/dist/v2/{hooks → features/app/hooks}/use-workspace-selector.js +1 -1
  182. package/dist/v2/features/collection/DocumentCollection.vue.js +92 -2
  183. package/dist/v2/features/collection/DocumentCollection.vue2.js +2 -91
  184. package/dist/v2/features/collection/WorkspaceCollection.vue.js +42 -2
  185. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +2 -41
  186. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  187. package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
  188. package/dist/v2/features/collection/components/Authentication.vue2.js +14 -12
  189. package/dist/v2/features/collection/components/Cookies.vue.js +30 -1
  190. package/dist/v2/features/collection/components/Cookies.vue2.js +1 -29
  191. package/dist/v2/features/collection/components/Environment.vue.js +32 -1
  192. package/dist/v2/features/collection/components/Environment.vue2.js +1 -31
  193. package/dist/v2/features/collection/components/Overview.vue2.js +5 -4
  194. package/dist/v2/features/collection/components/Servers.vue.js +142 -2
  195. package/dist/v2/features/collection/components/Servers.vue2.js +2 -141
  196. package/dist/v2/features/collection/components/Settings.vue.js +58 -2
  197. package/dist/v2/features/collection/components/Settings.vue2.js +2 -57
  198. package/dist/v2/features/modal/Modal.vue.d.ts +23 -1
  199. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  200. package/dist/v2/features/modal/Modal.vue.js +1 -1
  201. package/dist/v2/features/modal/Modal.vue2.js +118 -31
  202. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +18 -32
  203. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  204. package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -26
  205. package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts +55 -0
  206. package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts.map +1 -0
  207. package/dist/v2/features/modal/helpers/resolve-route-parameters.js +29 -0
  208. package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts +42 -0
  209. package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts.map +1 -0
  210. package/dist/v2/features/modal/hooks/use-modal-sidebar.js +93 -0
  211. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts +18 -0
  212. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -0
  213. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +30 -0
  214. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  215. package/dist/v2/features/operation/Operation.vue.js +59 -28
  216. package/dist/v2/features/operation/helpers/get-operation-header.d.ts +17 -0
  217. package/dist/v2/features/operation/helpers/get-operation-header.d.ts.map +1 -0
  218. package/dist/v2/features/operation/helpers/get-operation-header.js +12 -0
  219. package/dist/v2/features/operation/helpers/get-security-requirements.d.ts +1 -1
  220. package/dist/v2/features/operation/helpers/get-security-requirements.d.ts.map +1 -1
  221. package/dist/v2/features/operation/helpers/get-selected-security.d.ts +7 -0
  222. package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -0
  223. package/dist/v2/features/operation/helpers/get-selected-security.js +19 -0
  224. package/dist/v2/features/operation/index.d.ts +0 -1
  225. package/dist/v2/features/operation/index.d.ts.map +1 -1
  226. package/dist/v2/features/search/components/SearchModal.vue.d.ts.map +1 -1
  227. package/dist/v2/features/search/components/SearchModal.vue.js +3 -3
  228. package/dist/v2/features/search/components/SearchModal.vue2.js +45 -44
  229. package/dist/v2/helpers/generate-location-id.d.ts +19 -0
  230. package/dist/v2/helpers/generate-location-id.d.ts.map +1 -0
  231. package/dist/v2/helpers/generate-location-id.js +10 -0
  232. package/dist/v2/helpers/get-active-environment.d.ts +5 -0
  233. package/dist/v2/helpers/get-active-environment.d.ts.map +1 -0
  234. package/dist/v2/helpers/get-active-environment.js +22 -0
  235. package/dist/v2/helpers/get-tab-details.d.ts +2 -2
  236. package/dist/v2/helpers/get-tab-details.d.ts.map +1 -1
  237. package/dist/v2/helpers/handle-hotkeys.js +1 -1
  238. package/dist/v2/helpers/plugins.d.ts +59 -0
  239. package/dist/v2/helpers/plugins.d.ts.map +1 -0
  240. package/dist/v2/helpers/plugins.js +11 -0
  241. package/dist/v2/hooks/use-scroll-lock.d.ts +28 -0
  242. package/dist/v2/hooks/use-scroll-lock.d.ts.map +1 -0
  243. package/dist/v2/hooks/use-scroll-lock.js +21 -0
  244. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +2 -0
  245. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
  246. package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +1 -1
  247. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +0 -1
  248. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -1
  249. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  250. package/package.json +20 -20
  251. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.d.ts +0 -7
  252. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.d.ts.map +0 -1
  253. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.js +0 -28
  254. package/dist/v2/blocks/request-block/helpers/get-parameter-example.d.ts +0 -6
  255. package/dist/v2/blocks/request-block/helpers/get-parameter-example.d.ts.map +0 -1
  256. package/dist/v2/blocks/request-block/helpers/get-parameter-example.js +0 -12
  257. package/dist/v2/features/app/components/ItemDecorator.vue.d.ts.map +0 -1
  258. package/dist/v2/features/app/components/ItemDecorator.vue.js +0 -138
  259. package/dist/v2/features/app/components/ItemDecorator.vue2.js +0 -4
  260. package/dist/v2/hooks/use-document-watcher.d.ts.map +0 -1
  261. package/dist/v2/hooks/use-sidebar-state.d.ts.map +0 -1
  262. package/dist/v2/hooks/use-sync-path.d.ts.map +0 -1
  263. package/dist/v2/hooks/use-sync-path.js +0 -51
  264. package/dist/v2/hooks/use-tabs.d.ts.map +0 -1
  265. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +0 -1
  266. package/dist/v2/hooks/use-workspace-selector.d.ts.map +0 -1
  267. package/dist/v2/plugins.d.ts +0 -44
  268. package/dist/v2/plugins.d.ts.map +0 -1
  269. /package/dist/v2/{hooks → features/app/hooks}/use-document-watcher.d.ts +0 -0
  270. /package/dist/v2/{hooks → features/app/hooks}/use-document-watcher.js +0 -0
  271. /package/dist/v2/{hooks → features/app/hooks}/use-workspace-selector.d.ts +0 -0
@@ -1,43 +1,44 @@
1
- import { defineComponent as p, computed as d, createElementBlock as s, openBlock as a, withModifiers as y, createCommentVNode as m, createBlock as x, normalizeClass as r, Fragment as g, renderList as k, createElementVNode as u, toDisplayString as w, unref as B, withCtx as C, createVNode as A } from "vue";
2
- import z from "./RequestAuthTab.vue.js";
3
- import N from "../../../components/data-table/DataTable.vue.js";
4
- const O = ["onClick"], T = { class: "relative z-10 font-medium whitespace-nowrap" }, U = {
1
+ import { defineComponent as f, computed as d, createElementBlock as s, openBlock as a, withModifiers as y, createCommentVNode as m, createBlock as x, normalizeClass as n, Fragment as g, renderList as k, createElementVNode as u, toDisplayString as w, unref as B, withCtx as U, createVNode as C } from "vue";
2
+ import A from "./RequestAuthTab.vue.js";
3
+ import z from "../../../components/data-table/DataTable.vue.js";
4
+ const N = ["onClick"], O = { class: "relative z-10 font-medium whitespace-nowrap" }, T = {
5
5
  key: 0,
6
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
- }, E = /* @__PURE__ */ p({
7
+ }, E = /* @__PURE__ */ f({
8
8
  __name: "RequestAuthDataTable",
9
9
  props: {
10
10
  environment: {},
11
11
  isStatic: { type: Boolean },
12
12
  selectedSchemeOptions: {},
13
13
  activeAuthIndex: {},
14
+ proxyUrl: {},
14
15
  securitySchemes: { default: () => ({}) },
15
16
  server: {},
16
17
  eventBus: {},
17
18
  meta: {}
18
19
  },
19
20
  setup(t, { expose: h }) {
20
- const n = d(
21
+ const r = d(
21
22
  () => t.selectedSchemeOptions[t.activeAuthIndex]
22
23
  ), v = d(() => t.selectedSchemeOptions.length > 1), b = (e) => t.eventBus.emit("auth:update:active-index", {
23
24
  index: e,
24
25
  meta: t.meta
25
- }), S = (e) => t.eventBus.emit("auth:update:security-scheme", {
26
+ }), p = (e) => t.eventBus.emit("auth:update:security-scheme", {
26
27
  payload: e,
27
- name: n.value?.id ?? ""
28
- }), f = (e) => t.eventBus.emit("auth:update:selected-scopes", {
28
+ name: r.value?.id ?? ""
29
+ }), S = (e) => t.eventBus.emit("auth:update:selected-scopes", {
29
30
  ...e,
30
31
  meta: t.meta
31
32
  }), c = (e) => t.activeAuthIndex === e;
32
33
  return h({
33
- activeScheme: n
34
+ activeScheme: r
34
35
  }), (e, o) => (a(), s("form", {
35
36
  onSubmit: o[0] || (o[0] = y(() => {
36
37
  }, ["prevent"]))
37
38
  }, [
38
39
  v.value ? (a(), s("div", {
39
40
  key: 0,
40
- class: r(["box-content flex flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", { "border-x-0": !e.isStatic }]),
41
+ class: n(["box-content flex flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", { "border-x-0": !e.isStatic }]),
41
42
  "data-testid": "auth-tabs"
42
43
  }, [
43
44
  (a(!0), s(g, null, k(e.selectedSchemeOptions, (l, i) => (a(), s("div", {
@@ -45,36 +46,37 @@ const O = ["onClick"], T = { class: "relative z-10 font-medium whitespace-nowrap
45
46
  class: "relative z-1 -mb-[var(--scalar-border-width)] flex h-8"
46
47
  }, [
47
48
  u("button", {
48
- class: r(["floating-bg relative cursor-pointer border-b border-transparent py-1 text-sm font-medium transition-colors", c(i) ? "text-c-1" : "text-c-3"]),
49
+ class: n(["floating-bg relative cursor-pointer border-b border-transparent py-1 text-sm font-medium transition-colors", c(i) ? "text-c-1" : "text-c-3"]),
49
50
  type: "button",
50
51
  onClick: (I) => b(i)
51
52
  }, [
52
- u("span", T, w(l.label), 1)
53
- ], 10, O),
54
- c(i) ? (a(), s("div", U)) : m("", !0)
53
+ u("span", O, w(l.label), 1)
54
+ ], 10, N),
55
+ c(i) ? (a(), s("div", T)) : m("", !0)
55
56
  ]))), 128))
56
57
  ], 2)) : m("", !0),
57
- n.value ? (a(), x(B(N), {
58
+ r.value ? (a(), x(B(z), {
58
59
  key: 1,
59
- class: r(["flex-1", { "bg-b-1 rounded-b-lg border border-t-0": e.isStatic }]),
60
+ class: n(["flex-1", { "bg-b-1 rounded-b-lg border border-t-0": e.isStatic }]),
60
61
  columns: [""],
61
62
  presentational: ""
62
63
  }, {
63
- default: C(() => [
64
- A(z, {
64
+ default: U(() => [
65
+ C(A, {
65
66
  environment: e.environment,
66
67
  isStatic: e.isStatic,
68
+ proxyUrl: e.proxyUrl,
67
69
  securitySchemes: e.securitySchemes,
68
- selectedSecuritySchemas: n.value.value,
70
+ selectedSecuritySchemas: r.value.value,
69
71
  server: e.server,
70
- "onUpdate:securityScheme": S,
71
- "onUpdate:selectedScopes": f
72
- }, null, 8, ["environment", "isStatic", "securitySchemes", "selectedSecuritySchemas", "server"])
72
+ "onUpdate:securityScheme": p,
73
+ "onUpdate:selectedScopes": S
74
+ }, null, 8, ["environment", "isStatic", "proxyUrl", "securitySchemes", "selectedSecuritySchemas", "server"])
73
75
  ]),
74
76
  _: 1
75
77
  }, 8, ["class"])) : (a(), s("div", {
76
78
  key: 2,
77
- class: r(["bg-b-1 text-c-3 flex min-h-16 items-center justify-center border-t px-4 text-sm", { "min-h-[calc(4rem+0.5px)] rounded-b-lg border": e.isStatic }])
79
+ class: n(["bg-b-1 text-c-3 flex min-h-16 items-center justify-center border-t px-4 text-sm", { "min-h-[calc(4rem+0.5px)] rounded-b-lg border": e.isStatic }])
78
80
  }, " No authentication selected ", 2))
79
81
  ], 32));
80
82
  }
@@ -4,9 +4,10 @@ type __VLS_Props = {
4
4
  environment: XScalarEnvironment;
5
5
  /** Controls the display of certain borders which are used when we are non-collapsible */
6
6
  isStatic: boolean;
7
+ proxyUrl: string;
7
8
  selectedSecuritySchemas: SecurityRequirementObject;
8
9
  securitySchemes: NonNullable<ComponentsObject['securitySchemes']>;
9
- server: ServerObject | undefined;
10
+ server: ServerObject | null;
10
11
  };
11
12
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
13
  "update:selectedScopes": (payload: Omit<{
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue"],"names":[],"mappings":"AAiTA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,yBAAyB,EAEzB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,yFAAyF;IACzF,QAAQ,EAAE,OAAO,CAAA;IACjB,uBAAuB,EAAE,yBAAyB,CAAA;IAClD,eAAe,EAAE,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACjE,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;CACjC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkiBF,wBAOG"}
1
+ {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue"],"names":[],"mappings":"AAmTA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,yBAAyB,EAEzB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,yFAAyF;IACzF,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,uBAAuB,EAAE,yBAAyB,CAAA;IAClD,eAAe,EAAE,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACjE,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;CAC5B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmiBF,wBAOG"}
@@ -1,29 +1,30 @@
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";
1
+ import { defineComponent as A, computed as N, ref as P, createElementBlock as s, openBlock as o, Fragment as d, renderList as U, 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
2
  import { ScalarMarkdownSummary as q } from "@scalar/components";
3
3
  import { getResolvedRef as D } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
4
  import E from "./OAuth2.vue.js";
5
5
  import b from "./RequestAuthDataTableInput.vue.js";
6
6
  import c from "../../../components/data-table/DataTableRow.vue.js";
7
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({
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" }, G = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, J = ["onClick"], W = { class: "relative z-10" }, oe = /* @__PURE__ */ A({
9
9
  __name: "RequestAuthTab",
10
10
  props: {
11
11
  environment: {},
12
12
  isStatic: { type: Boolean },
13
+ proxyUrl: {},
13
14
  selectedSecuritySchemas: {},
14
15
  securitySchemes: {},
15
16
  server: {}
16
17
  },
17
18
  emits: ["update:securityScheme", "update:selectedScopes"],
18
19
  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,
20
+ const x = K, C = N(
21
+ () => Object.entries(f.selectedSecuritySchemas).map(([r, e = []]) => ({
22
+ scheme: D(f.securitySchemes[r]),
23
+ name: r,
23
24
  scopes: e
24
25
  }))
25
- ), w = P(""), h = N(() => U.value.length > 1), F = (o, e) => {
26
- const t = Q(o), u = e.description ? `: ${e.description}` : "";
26
+ ), w = P(""), h = N(() => C.value.length > 1), F = (r, e) => {
27
+ const t = Q(r), u = e.description ? `: ${e.description}` : "";
27
28
  switch (e.type) {
28
29
  case "apiKey":
29
30
  return `${t}${u || `: ${e.in}`}`;
@@ -36,24 +37,24 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
36
37
  default:
37
38
  return `${t}${u || `: ${e.type}`}`;
38
39
  }
39
- }, T = (o, e) => w.value === o || e === 0 && !w.value, B = () => f.isStatic && "border-t", g = (o, e) => x("update:securityScheme", {
40
+ }, T = (r, e) => w.value === r || e === 0 && !w.value, B = () => f.isStatic && "border-t", g = (r, e) => x("update:securityScheme", {
40
41
  type: "http",
41
- [o]: e
42
- }), j = (o, e) => x("update:securityScheme", {
42
+ [r]: e
43
+ }), j = (r, e) => x("update:securityScheme", {
43
44
  type: "apiKey",
44
- [o]: e
45
- }), M = (o, e) => {
45
+ [r]: e
46
+ }), M = (r, e) => {
46
47
  x("update:selectedScopes", {
47
48
  id: Object.keys(f.selectedSecuritySchemas),
48
- name: o,
49
+ name: r,
49
50
  ...e
50
51
  });
51
- }, O = (o, e) => {
52
+ }, O = (r, e) => {
52
53
  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;
54
+ return T(r, e) ? `${t} !text-c-1 !rounded-none border-b !border-current ${f.isStatic ? "opacity-100" : ""}` : t;
54
55
  };
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 }, {
56
+ return (r, e) => (o(!0), s(d, null, U(C.value, ({ scheme: t, name: u, scopes: V }) => (o(), s(d, { key: u }, [
57
+ h.value && t ? (o(), v(i(c), { key: 0 }, {
57
58
  default: l(() => [
58
59
  n(i(I), {
59
60
  "aria-label": F(u, t),
@@ -67,7 +68,7 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
67
68
  ]),
68
69
  _: 2
69
70
  }, 1024)) : m("", !0),
70
- t?.description && !h.value ? (r(), v(i(c), { key: 1 }, {
71
+ t?.description && !h.value ? (o(), v(i(c), { key: 1 }, {
71
72
  default: l(() => [
72
73
  n(i(I), {
73
74
  "aria-label": t.description,
@@ -84,12 +85,12 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
84
85
  ]),
85
86
  _: 2
86
87
  }, 1024)) : m("", !0),
87
- t?.type === "http" ? (r(), s(d, { key: 2 }, [
88
- t.scheme === "bearer" ? (r(), v(i(c), { key: 0 }, {
88
+ t?.type === "http" ? (o(), s(d, { key: 2 }, [
89
+ t.scheme === "bearer" ? (o(), v(i(c), { key: 0 }, {
89
90
  default: l(() => [
90
91
  n(b, {
91
92
  containerClass: B(),
92
- environment: o.environment,
93
+ environment: r.environment,
93
94
  modelValue: t["x-scalar-secret-token"],
94
95
  placeholder: "Token",
95
96
  type: "password",
@@ -102,12 +103,12 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
102
103
  }, 8, ["containerClass", "environment", "modelValue"])
103
104
  ]),
104
105
  _: 2
105
- }, 1024)) : t?.scheme === "basic" ? (r(), s(d, { key: 1 }, [
106
+ }, 1024)) : t?.scheme === "basic" ? (o(), s(d, { key: 1 }, [
106
107
  n(i(c), null, {
107
108
  default: l(() => [
108
109
  n(b, {
109
110
  class: "text-c-2",
110
- environment: o.environment,
111
+ environment: r.environment,
111
112
  modelValue: t["x-scalar-secret-username"],
112
113
  placeholder: "janedoe",
113
114
  required: "",
@@ -124,7 +125,7 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
124
125
  n(i(c), null, {
125
126
  default: l(() => [
126
127
  n(b, {
127
- environment: o.environment,
128
+ environment: r.environment,
128
129
  modelValue: t["x-scalar-secret-password"],
129
130
  placeholder: "********",
130
131
  type: "password",
@@ -139,12 +140,12 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
139
140
  _: 2
140
141
  }, 1024)
141
142
  ], 64)) : m("", !0)
142
- ], 64)) : t?.type === "apiKey" ? (r(), s(d, { key: 3 }, [
143
+ ], 64)) : t?.type === "apiKey" ? (o(), s(d, { key: 3 }, [
143
144
  n(i(c), null, {
144
145
  default: l(() => [
145
146
  n(b, {
146
147
  containerClass: B(),
147
- environment: o.environment,
148
+ environment: r.environment,
148
149
  modelValue: t.name,
149
150
  placeholder: "api-key",
150
151
  "onUpdate:modelValue": e[3] || (e[3] = (a) => j("name", a))
@@ -160,7 +161,7 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
160
161
  n(i(c), null, {
161
162
  default: l(() => [
162
163
  n(b, {
163
- environment: o.environment,
164
+ environment: r.environment,
164
165
  modelValue: t["x-scalar-secret-token"],
165
166
  placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
166
167
  type: "password",
@@ -174,44 +175,44 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
174
175
  ]),
175
176
  _: 2
176
177
  }, 1024)
177
- ], 64)) : t?.type === "oauth2" ? (r(), s(d, { key: 4 }, [
178
- Object.keys(t.flows).length > 1 ? (r(), v(i(c), { key: 0 }, {
178
+ ], 64)) : t?.type === "oauth2" ? (o(), s(d, { key: 4 }, [
179
+ Object.keys(t.flows).length > 1 ? (o(), v(i(c), { key: 0 }, {
179
180
  default: l(() => [
180
181
  k("div", L, [
181
- k("div", _, [
182
- (r(!0), s(d, null, C(t.flows, (a, p, $) => (r(), s("button", {
182
+ k("div", G, [
183
+ (o(!0), s(d, null, U(t.flows, (a, p, $) => (o(), s("button", {
183
184
  key: p,
184
185
  class: z(O(p, $)),
185
186
  type: "button",
186
187
  onClick: (S) => w.value = p
187
188
  }, [
188
- k("span", J, R(p), 1)
189
- ], 10, G))), 128))
189
+ k("span", W, R(p), 1)
190
+ ], 10, J))), 128))
190
191
  ])
191
192
  ])
192
193
  ]),
193
194
  _: 2
194
195
  }, 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, {
196
+ (o(!0), s(d, null, U(t.flows, (a, p, $) => (o(), s(d, { key: p }, [
197
+ T(p, $) ? (o(), v(E, {
197
198
  key: 0,
198
- environment: o.environment,
199
+ environment: r.environment,
199
200
  flows: t.flows,
200
- proxyUrl: "",
201
+ proxyUrl: r.proxyUrl,
201
202
  selectedScopes: V,
202
- server: o.server,
203
+ server: r.server,
203
204
  type: p,
204
205
  "onUpdate:securityScheme": e[5] || (e[5] = (S) => x("update:securityScheme", S)),
205
206
  "onUpdate:selectedScopes": (S) => M(u, S)
206
- }, null, 8, ["environment", "flows", "selectedScopes", "server", "type", "onUpdate:selectedScopes"])) : m("", !0)
207
+ }, null, 8, ["environment", "flows", "proxyUrl", "selectedScopes", "server", "type", "onUpdate:selectedScopes"])) : m("", !0)
207
208
  ], 64))), 128))
208
- ], 64)) : t?.type === "openIdConnect" ? (r(), s("div", {
209
+ ], 64)) : t?.type === "openIdConnect" ? (o(), s("div", {
209
210
  key: 5,
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
+ 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": r.isStatic }])
211
212
  }, " Coming soon ", 2)) : m("", !0)
212
213
  ], 64))), 128));
213
214
  }
214
215
  });
215
216
  export {
216
- re as default
217
+ oe as default
217
218
  };
@@ -0,0 +1,4 @@
1
+ import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
+ /** Determines if the authentication is optional */
3
+ export declare const isAuthOptional: (securityRequirements: NonNullable<OpenApiDocument["security"]>) => boolean;
4
+ //# sourceMappingURL=is-auth-optional.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-auth-optional.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAEnG,mDAAmD;AACnD,eAAO,MAAM,cAAc,GAAI,sBAAsB,WAAW,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,KAAG,OAK/F,CAAA"}
@@ -0,0 +1,7 @@
1
+ const o = (t) => {
2
+ const n = t.some((e) => Object.keys(e).length > 1);
3
+ return t.some((e) => Object.keys(e).length === 0) && !n;
4
+ };
5
+ export {
6
+ o as isAuthOptional
7
+ };
@@ -18,9 +18,9 @@ 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 | undefined,
21
+ activeServer: ServerObject | null,
22
22
  /** If we want to use the proxy */
23
- proxyUrl?: string) => Promise<ErrorResponse<string>>;
23
+ proxyUrl: string) => Promise<ErrorResponse<string>>;
24
24
  /**
25
25
  * Makes the BE authorization call to grab the token server to server
26
26
  * Used for clientCredentials and authorizationCode
@@ -28,7 +28,7 @@ proxyUrl?: string) => Promise<ErrorResponse<string>>;
28
28
  export declare const authorizeServers: (flows: NonImplicitFlow, type: keyof NonImplicitFlow, scopes: string, { code, pkce, proxyUrl, }: {
29
29
  code?: string;
30
30
  pkce?: PKCEState | null;
31
- proxyUrl?: string | undefined;
32
- } | undefined, activeServer: ServerObject | undefined) => Promise<ErrorResponse<string>>;
31
+ proxyUrl?: string;
32
+ } | undefined, activeServer: ServerObject | null) => Promise<ErrorResponse<string>>;
33
33
  export {};
34
34
  //# sourceMappingURL=oauth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AAEA,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,CAmL/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,eAAe,EACtB,MAAM,MAAM,eAAe,EAC3B,QAAQ,MAAM,EACd,2BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA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,MAAM,CAAA;CAClB,YAAK,EACN,cAAc,YAAY,GAAG,IAAI,KAChC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA+F/B,CAAA"}
@@ -7,13 +7,13 @@ export declare const formatScheme: ({ name, type, value, }: {
7
7
  }) => {
8
8
  id: string;
9
9
  label: string;
10
- value: SecurityRequirementObject;
10
+ value: Partial<Record<string, string[]>>;
11
11
  };
12
12
  /** Formats complex security schemes */
13
13
  export declare const formatComplexScheme: (scheme: NonNullable<OpenApiDocument["security"]>[number]) => {
14
14
  id: string;
15
15
  label: string;
16
- value: SecurityRequirementObject;
16
+ value: Partial<Record<string, string[]>>;
17
17
  };
18
18
  export type SecuritySchemeOption = {
19
19
  id: string;
@@ -3,7 +3,7 @@ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensi
3
3
  import { type Ref } from 'vue';
4
4
  import type { ClientLayout } from '../../../v2/types/layout';
5
5
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
6
- modelValue: string | number;
6
+ modelValue: string | number | boolean;
7
7
  /** Environment for variable substitution. Pass undefined to disable environment variables */
8
8
  environment: XScalarEnvironment | undefined;
9
9
  /** Type of the input value, affects rendering mode for booleans */
@@ -19,7 +19,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
19
19
  /** Example values, triggers select mode */
20
20
  examples?: string[];
21
21
  /** Default value to show in select mode */
22
- default?: string | number;
22
+ default?: string | number | boolean;
23
23
  /** Allow null in boolean select options */
24
24
  nullable?: boolean;
25
25
  /** Placeholder text for empty input */
@@ -62,14 +62,15 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
62
62
  *
63
63
  * @param cursorAtEnd boolean place the cursor at the end of the input
64
64
  */
65
- focus: (cursorAtEnd?: boolean) => void;
65
+ focus: (position?: "start" | "end" | number) => void;
66
66
  isFocused: Ref<boolean, boolean>;
67
67
  handleChange: (value: string) => void;
68
68
  handleSubmit: (value: string) => void;
69
69
  handleBlur: (value: string) => void;
70
70
  booleanOptions: import("vue").ComputedRef<string[]>;
71
71
  codeMirror: Ref<import("@codemirror/view").EditorView | null, import("@codemirror/view").EditorView | null>;
72
- modelValue: string | number;
72
+ modelValue: string | number | boolean;
73
+ cursorPosition: () => number | undefined;
73
74
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
74
75
  submit: (value: string) => any;
75
76
  redirectToEnvironment: () => any;
@@ -77,7 +78,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
77
78
  blur: (value: string) => any;
78
79
  curl: (value: string) => any;
79
80
  }, string, import("vue").PublicProps, Readonly<{
80
- modelValue: string | number;
81
+ modelValue: string | number | boolean;
81
82
  /** Environment for variable substitution. Pass undefined to disable environment variables */
82
83
  environment: XScalarEnvironment | undefined;
83
84
  /** Type of the input value, affects rendering mode for booleans */
@@ -93,7 +94,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
93
94
  /** Example values, triggers select mode */
94
95
  examples?: string[];
95
96
  /** Default value to show in select mode */
96
- default?: string | number;
97
+ default?: string | number | boolean;
97
98
  /** Allow null in boolean select options */
98
99
  nullable?: boolean;
99
100
  /** Placeholder text for empty input */
@@ -1 +1 @@
1
- {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/code-input/CodeInput.vue"],"names":[],"mappings":"AAgoBA,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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ACnB,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,sDAAsD;uBACnC,OAAO;IAC1B,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAC3C,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;;;;;;;;cAomB/B,CAAC,KAAK,IAAiB,KAAK,GAAG;;WAClC,CAAC,KAAK,IAAiB,KAAK,GAAG;;AAjqB1C,wBAqtBC;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":"AA4oBA,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,GAAG,OAAO;IACrC,6FAA6F;iBAChF,kBAAkB,GAAG,SAAS;IAC3C,mEAAmE;WAC5D,MAAM,GAAG,MAAM,EAAE;IACxB,sCAAsC;eAC3B,OAAO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AAoC;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,sDAAsD;uBACnC,OAAO;IAC1B,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAC3C,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;;;;;;;;cA8mB/B,CAAC,KAAK,IAAiB,KAAK,GAAG;;WAClC,CAAC,KAAK,IAAiB,KAAK,GAAG;;AA3qB1C,wBA+tBC;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-802d60c5"]]);
5
+ const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bd9d3fab"]]);
6
6
  export {
7
- a as default
7
+ d as default
8
8
  };