@scalar/api-client 2.6.1 → 2.8.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 (271) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/README.md +1 -1
  3. package/dist/analytics.d.ts +2 -18
  4. package/dist/analytics.d.ts.map +1 -1
  5. package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
  6. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  7. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +66 -42
  8. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  9. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  10. package/dist/components/DataTable/DataTableInputSelect.vue.js +21 -22
  11. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  12. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +4 -5
  13. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  14. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
  15. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +13 -14
  16. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  17. package/dist/components/Sidebar/SidebarButton.vue.js +0 -1
  18. package/dist/hooks/useAnalytics.d.ts +2 -18
  19. package/dist/hooks/useAnalytics.d.ts.map +1 -1
  20. package/dist/hooks/useClientConfig.d.ts +114 -120
  21. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  22. package/dist/hooks/useResponseBody.js +6 -6
  23. package/dist/layouts/App/create-api-client-app.d.ts +1379 -1307
  24. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  25. package/dist/layouts/Modal/create-api-client-modal.d.ts +2754 -2610
  26. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  27. package/dist/layouts/Web/create-api-client-web.d.ts +1379 -1307
  28. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  29. package/dist/libs/create-client.d.ts +1379 -1307
  30. package/dist/libs/create-client.d.ts.map +1 -1
  31. package/dist/libs/find-request.d.ts +17 -17
  32. package/dist/libs/find-request.d.ts.map +1 -1
  33. package/dist/libs/hot-keys.d.ts +1 -1
  34. package/dist/libs/local-storage.d.ts.map +1 -1
  35. package/dist/libs/send-request/build-request-security.d.ts +1 -1
  36. package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
  37. package/dist/libs/send-request/create-request-operation.d.ts +2 -2
  38. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  39. package/dist/libs/send-request/create-request-operation.js +19 -19
  40. package/dist/libs/send-request/create-request-operation.test.d.ts +82 -82
  41. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  42. package/dist/plugins/plugin-manager.d.ts +3 -3
  43. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  44. package/dist/store/active-entities.d.ts +118 -118
  45. package/dist/store/active-entities.d.ts.map +1 -1
  46. package/dist/store/collections.d.ts +127 -127
  47. package/dist/store/collections.d.ts.map +1 -1
  48. package/dist/store/cookies.d.ts +14 -14
  49. package/dist/store/environment.d.ts +23 -23
  50. package/dist/store/request-example.d.ts +546 -546
  51. package/dist/store/request-example.d.ts.map +1 -1
  52. package/dist/store/requests.d.ts +194 -194
  53. package/dist/store/requests.d.ts.map +1 -1
  54. package/dist/store/security-schemes.d.ts +281 -281
  55. package/dist/store/security-schemes.d.ts.map +1 -1
  56. package/dist/store/servers.d.ts +45 -45
  57. package/dist/store/servers.d.ts.map +1 -1
  58. package/dist/store/store.d.ts +1379 -1307
  59. package/dist/store/store.d.ts.map +1 -1
  60. package/dist/store/store.js +18 -18
  61. package/dist/store/tags.d.ts +35 -35
  62. package/dist/store/tags.d.ts.map +1 -1
  63. package/dist/store/workspace.d.ts +47 -47
  64. package/dist/store/workspace.d.ts.map +1 -1
  65. package/dist/style.css +1 -1
  66. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
  67. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +2 -3
  68. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts +2 -0
  69. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts.map +1 -0
  70. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.d.ts +25 -0
  71. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.d.ts.map +1 -0
  72. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +30 -0
  73. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue2.js +4 -0
  74. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
  75. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +3 -3
  76. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +104 -98
  77. package/dist/v2/blocks/operation-code-sample/helpers/find-client.js +16 -14
  78. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +31 -2
  79. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts +6 -1
  80. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts.map +1 -1
  81. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +198 -131
  82. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts +2 -0
  83. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts.map +1 -0
  84. package/dist/v2/blocks/operation-code-sample/index.d.ts +4 -1
  85. package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
  86. package/dist/v2/blocks/operation-code-sample/index.js +10 -4
  87. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  88. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
  89. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +31 -32
  90. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +2 -6
  91. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
  92. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts +2 -0
  93. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts.map +1 -0
  94. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +39 -0
  95. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -0
  96. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +7 -0
  97. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +226 -0
  98. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +66 -0
  99. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +1 -0
  100. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +7 -0
  101. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +200 -0
  102. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts +2 -0
  103. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts.map +1 -0
  104. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +51 -0
  105. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +1 -0
  106. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +89 -0
  107. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue2.js +4 -0
  108. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts +2 -0
  109. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts.map +1 -0
  110. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +46 -0
  111. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +1 -0
  112. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +7 -0
  113. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +85 -0
  114. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts +2 -0
  115. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts.map +1 -0
  116. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts +43 -0
  117. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +1 -0
  118. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +193 -0
  119. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue2.js +4 -0
  120. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts +2 -0
  121. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts.map +1 -0
  122. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.d.ts +8 -0
  123. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.d.ts.map +1 -0
  124. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.js +7 -0
  125. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue2.js +62 -0
  126. package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts +2 -0
  127. package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts.map +1 -0
  128. package/dist/v2/blocks/scalar-operation-block/helpers/files.d.ts +5 -0
  129. package/dist/v2/blocks/scalar-operation-block/helpers/files.d.ts.map +1 -0
  130. package/dist/v2/blocks/scalar-operation-block/helpers/files.js +7 -0
  131. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.d.ts +8 -0
  132. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.d.ts.map +1 -0
  133. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.js +9 -0
  134. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts +2 -0
  135. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts.map +1 -0
  136. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.d.ts +6 -0
  137. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.d.ts.map +1 -0
  138. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.js +12 -0
  139. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts +2 -0
  140. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts.map +1 -0
  141. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.d.ts +6 -0
  142. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.d.ts.map +1 -0
  143. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.js +6 -0
  144. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts +2 -0
  145. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts.map +1 -0
  146. package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.d.ts +3 -0
  147. package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.d.ts.map +1 -0
  148. package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.js +5 -0
  149. package/dist/v2/blocks/scalar-operation-block/helpers/group-by.d.ts +5 -0
  150. package/dist/v2/blocks/scalar-operation-block/helpers/group-by.d.ts.map +1 -0
  151. package/dist/v2/blocks/scalar-operation-block/helpers/group-by.js +7 -0
  152. package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts +2 -0
  153. package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts.map +1 -0
  154. package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.d.ts +11 -0
  155. package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.d.ts.map +1 -0
  156. package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.js +32 -0
  157. package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts +2 -0
  158. package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts.map +1 -0
  159. package/dist/v2/blocks/scalar-operation-block/index.d.ts +2 -0
  160. package/dist/v2/blocks/scalar-operation-block/index.d.ts.map +1 -0
  161. package/dist/v2/blocks/scalar-operation-block/index.js +4 -0
  162. package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts +2 -0
  163. package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts.map +1 -0
  164. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts +20 -0
  165. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +1 -0
  166. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +98 -0
  167. package/dist/v2/blocks/scalar-response-block/components/Headers.vue2.js +4 -0
  168. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts +2 -0
  169. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts.map +1 -0
  170. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +47 -0
  171. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -0
  172. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +7 -0
  173. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +182 -0
  174. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts +12 -0
  175. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +1 -0
  176. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.js +7 -0
  177. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +88 -0
  178. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts +2 -0
  179. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts.map +1 -0
  180. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.d.ts +8 -0
  181. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.d.ts.map +1 -0
  182. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.js +36 -0
  183. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue2.js +4 -0
  184. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.d.ts +13 -0
  185. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.d.ts.map +1 -0
  186. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.js +14 -0
  187. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts +2 -0
  188. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts.map +1 -0
  189. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.d.ts +10 -0
  190. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -0
  191. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.js +7 -0
  192. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +64 -0
  193. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.d.ts +8 -0
  194. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -0
  195. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.js +7 -0
  196. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue2.js +41 -0
  197. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts +2 -0
  198. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts.map +1 -0
  199. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts +6 -0
  200. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -0
  201. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.js +74 -0
  202. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue2.js +4 -0
  203. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.d.ts +10 -0
  204. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.d.ts.map +1 -0
  205. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.js +25 -0
  206. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue2.js +4 -0
  207. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts +11 -0
  208. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -0
  209. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +52 -0
  210. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue3.js +5 -0
  211. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts +2 -0
  212. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts.map +1 -0
  213. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts +9 -0
  214. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +1 -0
  215. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +54 -0
  216. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue2.js +4 -0
  217. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.d.ts +23 -0
  218. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.d.ts.map +1 -0
  219. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +7 -0
  220. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +88 -0
  221. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.d.ts +8 -0
  222. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -0
  223. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.js +7 -0
  224. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +41 -0
  225. package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.d.ts +10 -0
  226. package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -0
  227. package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.js +61 -0
  228. package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue2.js +4 -0
  229. package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.d.ts +5 -0
  230. package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.d.ts.map +1 -0
  231. package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.js +18 -0
  232. package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts +2 -0
  233. package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts.map +1 -0
  234. package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.d.ts +4 -0
  235. package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.d.ts.map +1 -0
  236. package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.js +12 -0
  237. package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts +2 -0
  238. package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts.map +1 -0
  239. package/dist/v2/blocks/scalar-response-block/helpers/media-types.d.ts +20 -0
  240. package/dist/v2/blocks/scalar-response-block/helpers/media-types.d.ts.map +1 -0
  241. package/dist/v2/blocks/scalar-response-block/helpers/media-types.js +127 -0
  242. package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts +2 -0
  243. package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts.map +1 -0
  244. package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.d.ts +17 -0
  245. package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.d.ts.map +1 -0
  246. package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.js +16 -0
  247. package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts +2 -0
  248. package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts.map +1 -0
  249. package/dist/v2/blocks/scalar-response-block/index.d.ts +2 -0
  250. package/dist/v2/blocks/scalar-response-block/index.d.ts.map +1 -0
  251. package/dist/v2/blocks/scalar-response-block/index.js +4 -0
  252. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +54 -54
  253. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  254. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  255. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +31 -32
  256. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +54 -54
  257. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  258. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  259. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  260. package/dist/views/Request/RequestSection/RequestBody.vue2.js +0 -1
  261. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
  262. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  263. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +13 -14
  264. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  265. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  266. package/dist/views/Request/components/WorkspaceDropdown.vue.js +5 -6
  267. package/dist/views/Request/libs/auth.d.ts +2 -2
  268. package/dist/views/Request/libs/watch-mode.d.ts +4 -4
  269. package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
  270. package/dist/views/Request/libs/watch-mode.js +241 -186
  271. package/package.json +21 -16
@@ -22,69 +22,67 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
22
22
  authorized: () => any;
23
23
  activeSchemes: (schemes: ({
24
24
  type: "apiKey";
25
- value: string;
26
25
  name: string;
27
- uid: string & import("zod").BRAND<"securityScheme">;
28
- nameKey: string;
29
26
  in: "cookie" | "query" | "header";
27
+ uid: string & import("zod").$brand<"securityScheme">;
28
+ nameKey: string;
29
+ value: string;
30
30
  description?: string | undefined;
31
31
  } | {
32
32
  type: "http";
33
- uid: string & import("zod").BRAND<"securityScheme">;
34
- nameKey: string;
35
33
  scheme: "basic" | "bearer";
36
34
  bearerFormat: string;
35
+ uid: string & import("zod").$brand<"securityScheme">;
36
+ nameKey: string;
37
37
  username: string;
38
38
  password: string;
39
39
  token: string;
40
40
  description?: string | undefined;
41
41
  } | {
42
42
  type: "openIdConnect";
43
- uid: string & import("zod").BRAND<"securityScheme">;
44
- nameKey: string;
45
43
  openIdConnectUrl: string;
44
+ uid: string & import("zod").$brand<"securityScheme">;
45
+ nameKey: string;
46
46
  description?: string | undefined;
47
47
  } | {
48
48
  type: "oauth2";
49
- uid: string & import("zod").BRAND<"securityScheme">;
50
- nameKey: string;
51
49
  flows: {
52
- password?: {
53
- type: "password";
54
- username: string;
55
- password: string;
56
- token: string;
50
+ implicit?: {
57
51
  refreshUrl: string;
58
52
  scopes: Record<string, string>;
59
53
  selectedScopes: string[];
60
54
  "x-scalar-client-id": string;
61
- tokenUrl: string;
62
- clientSecret: string;
55
+ token: string;
56
+ type: "implicit";
57
+ authorizationUrl: string;
58
+ "x-scalar-redirect-uri": string;
63
59
  "x-scalar-security-query"?: Record<string, string> | undefined;
64
60
  "x-scalar-security-body"?: Record<string, string> | undefined;
65
61
  "x-tokenName"?: string | undefined;
66
- "x-scalar-credentials-location"?: "header" | "body" | undefined;
67
62
  } | undefined;
68
- implicit?: {
69
- type: "implicit";
70
- token: string;
63
+ password?: {
71
64
  refreshUrl: string;
72
65
  scopes: Record<string, string>;
73
66
  selectedScopes: string[];
74
67
  "x-scalar-client-id": string;
75
- authorizationUrl: string;
76
- "x-scalar-redirect-uri": string;
68
+ token: string;
69
+ type: "password";
70
+ tokenUrl: string;
71
+ clientSecret: string;
72
+ username: string;
73
+ password: string;
77
74
  "x-scalar-security-query"?: Record<string, string> | undefined;
78
75
  "x-scalar-security-body"?: Record<string, string> | undefined;
79
76
  "x-tokenName"?: string | undefined;
77
+ "x-scalar-credentials-location"?: "header" | "body" | undefined;
80
78
  } | undefined;
81
79
  clientCredentials?: {
82
- type: "clientCredentials";
83
- token: string;
84
80
  refreshUrl: string;
85
81
  scopes: Record<string, string>;
86
82
  selectedScopes: string[];
87
83
  "x-scalar-client-id": string;
84
+ token: string;
85
+ type: "clientCredentials";
88
86
  tokenUrl: string;
89
87
  clientSecret: string;
90
88
  "x-scalar-security-query"?: Record<string, string> | undefined;
@@ -93,23 +91,25 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
93
91
  "x-scalar-credentials-location"?: "header" | "body" | undefined;
94
92
  } | undefined;
95
93
  authorizationCode?: {
96
- type: "authorizationCode";
97
- token: string;
98
94
  refreshUrl: string;
99
95
  scopes: Record<string, string>;
100
96
  selectedScopes: string[];
101
97
  "x-scalar-client-id": string;
98
+ token: string;
99
+ type: "authorizationCode";
102
100
  authorizationUrl: string;
101
+ "x-usePkce": "SHA-256" | "plain" | "no";
103
102
  "x-scalar-redirect-uri": string;
104
103
  tokenUrl: string;
105
104
  clientSecret: string;
106
- "x-usePkce": "SHA-256" | "plain" | "no";
107
105
  "x-scalar-security-query"?: Record<string, string> | undefined;
108
106
  "x-scalar-security-body"?: Record<string, string> | undefined;
109
107
  "x-tokenName"?: string | undefined;
110
108
  "x-scalar-credentials-location"?: "header" | "body" | undefined;
111
109
  } | undefined;
112
110
  };
111
+ uid: string & import("zod").$brand<"securityScheme">;
112
+ nameKey: string;
113
113
  description?: string | undefined;
114
114
  'x-default-scopes'?: string[] | undefined;
115
115
  })[]) => any;
@@ -117,69 +117,67 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
117
117
  onAuthorized?: (() => any) | undefined;
118
118
  onActiveSchemes?: ((schemes: ({
119
119
  type: "apiKey";
120
- value: string;
121
120
  name: string;
122
- uid: string & import("zod").BRAND<"securityScheme">;
123
- nameKey: string;
124
121
  in: "cookie" | "query" | "header";
122
+ uid: string & import("zod").$brand<"securityScheme">;
123
+ nameKey: string;
124
+ value: string;
125
125
  description?: string | undefined;
126
126
  } | {
127
127
  type: "http";
128
- uid: string & import("zod").BRAND<"securityScheme">;
129
- nameKey: string;
130
128
  scheme: "basic" | "bearer";
131
129
  bearerFormat: string;
130
+ uid: string & import("zod").$brand<"securityScheme">;
131
+ nameKey: string;
132
132
  username: string;
133
133
  password: string;
134
134
  token: string;
135
135
  description?: string | undefined;
136
136
  } | {
137
137
  type: "openIdConnect";
138
- uid: string & import("zod").BRAND<"securityScheme">;
139
- nameKey: string;
140
138
  openIdConnectUrl: string;
139
+ uid: string & import("zod").$brand<"securityScheme">;
140
+ nameKey: string;
141
141
  description?: string | undefined;
142
142
  } | {
143
143
  type: "oauth2";
144
- uid: string & import("zod").BRAND<"securityScheme">;
145
- nameKey: string;
146
144
  flows: {
147
- password?: {
148
- type: "password";
149
- username: string;
150
- password: string;
151
- token: string;
145
+ implicit?: {
152
146
  refreshUrl: string;
153
147
  scopes: Record<string, string>;
154
148
  selectedScopes: string[];
155
149
  "x-scalar-client-id": string;
156
- tokenUrl: string;
157
- clientSecret: string;
150
+ token: string;
151
+ type: "implicit";
152
+ authorizationUrl: string;
153
+ "x-scalar-redirect-uri": string;
158
154
  "x-scalar-security-query"?: Record<string, string> | undefined;
159
155
  "x-scalar-security-body"?: Record<string, string> | undefined;
160
156
  "x-tokenName"?: string | undefined;
161
- "x-scalar-credentials-location"?: "header" | "body" | undefined;
162
157
  } | undefined;
163
- implicit?: {
164
- type: "implicit";
165
- token: string;
158
+ password?: {
166
159
  refreshUrl: string;
167
160
  scopes: Record<string, string>;
168
161
  selectedScopes: string[];
169
162
  "x-scalar-client-id": string;
170
- authorizationUrl: string;
171
- "x-scalar-redirect-uri": string;
163
+ token: string;
164
+ type: "password";
165
+ tokenUrl: string;
166
+ clientSecret: string;
167
+ username: string;
168
+ password: string;
172
169
  "x-scalar-security-query"?: Record<string, string> | undefined;
173
170
  "x-scalar-security-body"?: Record<string, string> | undefined;
174
171
  "x-tokenName"?: string | undefined;
172
+ "x-scalar-credentials-location"?: "header" | "body" | undefined;
175
173
  } | undefined;
176
174
  clientCredentials?: {
177
- type: "clientCredentials";
178
- token: string;
179
175
  refreshUrl: string;
180
176
  scopes: Record<string, string>;
181
177
  selectedScopes: string[];
182
178
  "x-scalar-client-id": string;
179
+ token: string;
180
+ type: "clientCredentials";
183
181
  tokenUrl: string;
184
182
  clientSecret: string;
185
183
  "x-scalar-security-query"?: Record<string, string> | undefined;
@@ -188,23 +186,25 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
188
186
  "x-scalar-credentials-location"?: "header" | "body" | undefined;
189
187
  } | undefined;
190
188
  authorizationCode?: {
191
- type: "authorizationCode";
192
- token: string;
193
189
  refreshUrl: string;
194
190
  scopes: Record<string, string>;
195
191
  selectedScopes: string[];
196
192
  "x-scalar-client-id": string;
193
+ token: string;
194
+ type: "authorizationCode";
197
195
  authorizationUrl: string;
196
+ "x-usePkce": "SHA-256" | "plain" | "no";
198
197
  "x-scalar-redirect-uri": string;
199
198
  tokenUrl: string;
200
199
  clientSecret: string;
201
- "x-usePkce": "SHA-256" | "plain" | "no";
202
200
  "x-scalar-security-query"?: Record<string, string> | undefined;
203
201
  "x-scalar-security-body"?: Record<string, string> | undefined;
204
202
  "x-tokenName"?: string | undefined;
205
203
  "x-scalar-credentials-location"?: "header" | "body" | undefined;
206
204
  } | undefined;
207
205
  };
206
+ uid: string & import("zod").$brand<"securityScheme">;
207
+ nameKey: string;
208
208
  description?: string | undefined;
209
209
  'x-default-scopes'?: string[] | undefined;
210
210
  })[]) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AA+PA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,WAAW,EAAE,OAAO,CAAA;IACpB,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAkBF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;CAChC,CAAC;AAwQF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAsB+xlE,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;oBAAwE,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;6BAAsE,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAA17E,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;oBAAwE,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;6BAAsE,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;kFAf5uqE,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":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AA+PA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,WAAW,EAAE,OAAO,CAAA;IACpB,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,M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AAsoBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAarE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAI1D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AA88BJ,wBAMG"}
1
+ {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAqoBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAarE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAI1D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AA48BJ,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a4d93a6f"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fac9ef96"]]);
5
5
  export {
6
- f as default
6
+ a as default
7
7
  };
@@ -282,7 +282,6 @@ const ie = {
282
282
  default: d(() => [
283
283
  s(c(k), {
284
284
  class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-3 font-normal",
285
- fullWidth: "",
286
285
  variant: "ghost"
287
286
  }, {
288
287
  default: d(() => [
@@ -1 +1 @@
1
- {"version":3,"file":"RequestCodeExample.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestCodeExample.vue"],"names":[],"mappings":"AAgSA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EAEd,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAOrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAItD,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,YAAY,CAAA;CAC1B,CAAC;;AAoYF,wBAMG"}
1
+ {"version":3,"file":"RequestCodeExample.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestCodeExample.vue"],"names":[],"mappings":"AA+RA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EAEd,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAOrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAItD,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,YAAY,CAAA;CAC1B,CAAC;;AAkYF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestCodeExample.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-73c4a2cf"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2891f052"]]);
5
5
  export {
6
- p as default
6
+ r as default
7
7
  };
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as $, computed as a, ref as E, createElementBlock as B, openBlock as y, createVNode as i, withCtx as c, createElementVNode as x, createBlock as K, unref as u, toDisplayString as V, createTextVNode as H } from "vue";
2
2
  import { ScalarCodeBlock as U, ScalarCombobox as j, ScalarButton as D, ScalarIcon as N } from "@scalar/components";
3
3
  import { snippetz as T } from "@scalar/snippetz";
4
- import W from "../../../components/DataTable/DataTable.vue.js";
5
- import z from "../../../components/DataTable/DataTableRow.vue.js";
6
- import I from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
- import O from "../../Components/CodeSnippet/CodeSnippet.vue.js";
8
- import { useWorkspace as R } from "../../../store/store.js";
4
+ import z from "../../../components/DataTable/DataTable.vue.js";
5
+ import I from "../../../components/DataTable/DataTableRow.vue.js";
6
+ import O from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
+ import R from "../../Components/CodeSnippet/CodeSnippet.vue.js";
8
+ import { useWorkspace as W } from "../../../store/store.js";
9
9
  const q = { class: "w-full" }, M = { class: "flex flex-1" }, P = { class: "bg-b-1 flex items-center justify-center overflow-hidden border-t" }, Z = /* @__PURE__ */ $({
10
10
  __name: "RequestCodeExample",
11
11
  props: {
@@ -17,7 +17,7 @@ const q = { class: "w-full" }, M = { class: "flex flex-1" }, P = { class: "bg-b-
17
17
  environment: {}
18
18
  },
19
19
  setup(n) {
20
- const { securitySchemes: b, workspaceMutators: h } = R(), f = a(() => m.value.targetKey === "custom" && d.value?.some(
20
+ const { securitySchemes: b, workspaceMutators: S } = W(), f = a(() => m.value.targetKey === "custom" && d.value?.some(
21
21
  (t) => t.lang === m.value.clientKey
22
22
  ) ? m.value : {
23
23
  targetKey: n.workspace.selectedHttpClient?.targetKey ?? "js",
@@ -32,7 +32,7 @@ const q = { class: "w-full" }, M = { class: "flex flex-1" }, P = { class: "bg-b-
32
32
  targetKey: n.workspace.selectedHttpClient?.targetKey ?? "js",
33
33
  clientKey: n.workspace.selectedHttpClient?.clientKey ?? "fetch"
34
34
  }
35
- ), S = a(() => (n.operation.selectedSecuritySchemeUids || n.collection.selectedSecuritySchemeUids || []).flat().map((t) => b[t]).filter((t) => !!t)), v = a(() => {
35
+ ), h = a(() => (n.operation.selectedSecuritySchemeUids || n.collection.selectedSecuritySchemeUids || []).flat().map((t) => b[t]).filter((t) => !!t)), v = a(() => {
36
36
  const e = {}, t = T().clients().map((l) => ({
37
37
  label: l.title,
38
38
  options: l.clients.map((p) => (e[`${l.key},${p.client}`] = p.title, {
@@ -84,7 +84,7 @@ const q = { class: "w-full" }, M = { class: "flex flex-1" }, P = { class: "bg-b-
84
84
  !o || !r || (m.value = {
85
85
  targetKey: o,
86
86
  clientKey: r
87
- }, o !== "custom" && h.edit(n.workspace.uid, "selectedHttpClient", {
87
+ }, o !== "custom" && S.edit(n.workspace.uid, "selectedHttpClient", {
88
88
  targetKey: o,
89
89
  clientKey: r
90
90
  }));
@@ -95,7 +95,7 @@ const q = { class: "w-full" }, M = { class: "flex flex-1" }, P = { class: "bg-b-
95
95
  return d.value?.find((o) => o.lang === e)?.source;
96
96
  });
97
97
  return (e, t) => (y(), B("div", q, [
98
- i(I, {
98
+ i(O, {
99
99
  class: "group/preview w-full border-b-0",
100
100
  defaultOpen: !1
101
101
  }, {
@@ -113,7 +113,6 @@ const q = { class: "w-full" }, M = { class: "flex flex-1" }, P = { class: "bg-b-
113
113
  default: c(() => [
114
114
  i(u(D), {
115
115
  class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-1.25 py-0.75 font-normal",
116
- fullWidth: "",
117
116
  variant: "ghost"
118
117
  }, {
119
118
  default: c(() => [
@@ -131,24 +130,24 @@ const q = { class: "w-full" }, M = { class: "flex flex-1" }, P = { class: "bg-b-
131
130
  ])
132
131
  ]),
133
132
  default: c(() => [
134
- i(W, {
133
+ i(z, {
135
134
  columns: [""],
136
135
  presentational: ""
137
136
  }, {
138
137
  default: c(() => [
139
- i(z, null, {
138
+ i(I, null, {
140
139
  default: c(() => [
141
140
  x("div", P, [
142
141
  g.value ? (y(), K(u(U), {
143
142
  key: 0,
144
143
  content: g.value,
145
144
  lang: s.value.id.split(",")[1] ?? "plaintext"
146
- }, null, 8, ["content", "lang"])) : (y(), K(u(O), {
145
+ }, null, 8, ["content", "lang"])) : (y(), K(u(R), {
147
146
  key: 1,
148
147
  client: k.value,
149
148
  example: e.example,
150
149
  operation: e.operation,
151
- securitySchemes: S.value,
150
+ securitySchemes: h.value,
152
151
  server: e.server,
153
152
  target: C.value,
154
153
  environment: e.environment
@@ -33,7 +33,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
33
33
  }));
34
34
  }, f = (o) => {
35
35
  o?.createNew && g.name === "request" && d();
36
- }, v = "2.6.1";
36
+ }, v = "2.8.0";
37
37
  return q(() => a.hotKeys.on(f)), R(() => a.hotKeys.off(f)), (o, e) => (i(), l("div", W, [
38
38
  s("div", {
39
39
  class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AAguBA,wBAKG"}
1
+ {"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AA6tBA,wBAKG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, computed as L, ref as M, createElementBlock as y, openBlock as f, createElementVNode as l, createVNode as s, unref as e, withCtx as n, toDisplayString as C, Fragment as V, renderList as I, createBlock as D, withModifiers as v, createCommentVNode as O } from "vue";
1
+ import { defineComponent as A, computed as L, ref as W, createElementBlock as y, openBlock as f, createElementVNode as l, createVNode as s, unref as e, withCtx as n, toDisplayString as C, Fragment as V, renderList as I, createBlock as D, withModifiers as v, createCommentVNode as O } from "vue";
2
2
  import { useModal as S, ScalarDropdown as $, ScalarButton as N, ScalarDropdownItem as h, ScalarListboxCheckbox as U, ScalarIcon as k, ScalarDropdownDivider as q, ScalarModal as z } from "@scalar/components";
3
3
  import { useRouter as F } from "vue-router";
4
4
  import P from "../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
@@ -15,7 +15,7 @@ const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-
15
15
  workspace: o
16
16
  }
17
17
  });
18
- }, x = L(() => Object.keys(r).length === 1), j = () => E.commandPalette.emit({ commandName: "Create Workspace" }), d = M(""), i = M(""), u = S(), p = S(), g = (o) => {
18
+ }, x = L(() => Object.keys(r).length === 1), j = () => E.commandPalette.emit({ commandName: "Create Workspace" }), d = W(""), i = W(""), u = S(), p = S(), g = (o) => {
19
19
  const t = r[o];
20
20
  t && (d.value = t.name, i.value = o, u.show());
21
21
  }, B = (o) => {
@@ -42,14 +42,14 @@ const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-
42
42
  l("div", J, [
43
43
  s(e($), null, {
44
44
  items: n(() => [
45
- (f(!0), y(V, null, I(e(r), (a, W) => (f(), D(e(h), {
46
- key: W,
45
+ (f(!0), y(V, null, I(e(r), (a, M) => (f(), D(e(h), {
46
+ key: M,
47
47
  class: "group/item flex w-full items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
48
48
  onClick: v((m) => T(a.uid), ["stop"])
49
49
  }, {
50
50
  default: n(() => [
51
51
  s(e(U), {
52
- selected: e(c)?.uid === W
52
+ selected: e(c)?.uid === M
53
53
  }, null, 8, ["selected"]),
54
54
  l("span", X, C(a.name), 1),
55
55
  s(e($), {
@@ -135,7 +135,6 @@ const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-
135
135
  default: n(() => [
136
136
  s(e(N), {
137
137
  class: "text-c-1 hover:bg-b-2 line-clamp-1 h-full w-fit justify-start px-1.5 py-1.5 font-normal",
138
- fullWidth: "",
139
138
  variant: "ghost"
140
139
  }, {
141
140
  default: n(() => [
@@ -7,12 +7,12 @@ type DisplayScheme = {
7
7
  };
8
8
  /** Format a scheme object into a display object */
9
9
  export declare const formatScheme: (s: DisplayScheme) => {
10
- id: string & import("zod").BRAND<"securityScheme">;
10
+ id: string & import("zod").$brand<"securityScheme">;
11
11
  label: string;
12
12
  };
13
13
  /** Formats complex security schemes */
14
14
  export declare const formatComplexScheme: (uids: string[], securitySchemes: Record<string, DisplayScheme>) => {
15
- id: string & import("zod").BRAND<"securityScheme">;
15
+ id: string & import("zod").$brand<"securityScheme">;
16
16
  label: string;
17
17
  };
18
18
  /** Compute what the security requirements should be for a request */
@@ -1,8 +1,8 @@
1
- import type { WorkspaceStore } from '../../../store/index.js';
2
- import type { ActiveEntitiesStore } from '../../../store/active-entities.js';
3
1
  import { type Path, type PathValue } from '@scalar/object-utils/nested';
4
2
  import { type Difference } from 'microdiff';
5
- import { type ZodSchema, type ZodTypeDef } from 'zod';
3
+ import { type ZodSchema } from 'zod';
4
+ import type { WorkspaceStore } from '../../../store/index.js';
5
+ import type { ActiveEntitiesStore } from '../../../store/active-entities.js';
6
6
  /**
7
7
  * Combine Rename Diffs
8
8
  * Rename diffs show up as a delete and an add.
@@ -25,7 +25,7 @@ export declare const traverseZodSchema: (schema: ZodSchema, path: (string | numb
25
25
  *
26
26
  * We return a tuple to make it easier to pass into the mutators
27
27
  */
28
- export declare const parseDiff: <T>(schema: ZodSchema<T, ZodTypeDef, any>, diff: Difference) => {
28
+ export declare const parseDiff: <T>(schema: ZodSchema<T, any>, diff: Difference) => {
29
29
  /** Typed path as it has been checked agains the schema */
30
30
  path: Path<T>;
31
31
  /** Path without the last item, used for getting the whole array instead of an item of the array */
@@ -1 +1 @@
1
- {"version":3,"file":"watch-mode.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/watch-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAelE,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,SAAS,EAAkB,MAAM,6BAA6B,CAAA;AAEvF,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAK,MAAM,KAAK,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,UAAU,EAAE,EAAE,aAAY,MAAM,EAAO,KAAG,UAAU,EAmF5F,CAAA;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,GAAI,CAAC,EAC5B,KAAK,MAAM,EAAE,EACb,WAAW,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,EAC5B,WAAW,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,KAClC,CAAC,GAAG,IAQN,CAAA;AAmBD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,QAAQ,SAAS,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAG,SAAS,GAAG,IA8C5F,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,EACzB,QAAQ,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,EACrC,MAAM,UAAU,KACf;IACD,0DAA0D;IAC1D,IAAI,EAAE,IAAI,CAAC,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