@scalar/api-client 3.27.0 → 3.27.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 (430) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.js +1 -2
  3. package/dist/assets/computer.ascii_raw.js +1 -2
  4. package/dist/components/HelpfulLink.vue.js +1 -2
  5. package/dist/components/HelpfulLink.vue.js.map +1 -1
  6. package/dist/components/HelpfulLink.vue_vue_type_script_setup_true_lang.js +1 -2
  7. package/dist/components/HttpMethod/HttpMethod.vue.js +1 -2
  8. package/dist/components/HttpMethod/HttpMethod.vue.js.map +1 -1
  9. package/dist/components/HttpMethod/HttpMethod.vue_vue_type_script_setup_true_lang.js +1 -2
  10. package/dist/components/ScalarAsciiArt/ScalarAsciiArt.vue.js +2 -3
  11. package/dist/components/ScalarAsciiArt/ScalarAsciiArt.vue.js.map +1 -1
  12. package/dist/components/ScalarAsciiArt/ScalarAsciiArt.vue_vue_type_script_setup_true_lang.js +1 -2
  13. package/dist/components/SectionFilter.vue.js +2 -3
  14. package/dist/components/SectionFilter.vue.js.map +1 -1
  15. package/dist/components/SectionFilter.vue_vue_type_script_setup_true_lang.js +2 -3
  16. package/dist/components/SectionFilterButton.vue.js +1 -2
  17. package/dist/components/SectionFilterButton.vue.js.map +1 -1
  18. package/dist/components/SectionFilterButton.vue_vue_type_script_setup_true_lang.js +1 -2
  19. package/dist/components/Server/ServerVariablesForm.vue.js +1 -2
  20. package/dist/components/Server/ServerVariablesForm.vue.js.map +1 -1
  21. package/dist/components/Server/ServerVariablesForm.vue_vue_type_script_setup_true_lang.js +1 -2
  22. package/dist/components/Server/ServerVariablesForm.vue_vue_type_script_setup_true_lang.js.map +1 -1
  23. package/dist/components/Server/ServerVariablesSelect.vue.js +1 -2
  24. package/dist/components/Server/ServerVariablesSelect.vue.js.map +1 -1
  25. package/dist/components/Server/ServerVariablesSelect.vue_vue_type_script_setup_true_lang.js +1 -2
  26. package/dist/components/Server/ServerVariablesSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
  27. package/dist/components/Server/ServerVariablesTextbox.vue.js +1 -2
  28. package/dist/components/Server/ServerVariablesTextbox.vue.js.map +1 -1
  29. package/dist/components/Server/ServerVariablesTextbox.vue_vue_type_script_setup_true_lang.js +1 -2
  30. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +1 -2
  31. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js.map +1 -1
  32. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue_vue_type_script_setup_true_lang.js +2 -3
  33. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue_vue_type_script_setup_true_lang.js.map +1 -1
  34. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -2
  35. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js.map +1 -1
  36. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue_vue_type_script_setup_true_lang.js +1 -2
  37. package/dist/components/ViewLayout/ViewLayout.vue.js +1 -2
  38. package/dist/components/ViewLayout/ViewLayout.vue.js.map +1 -1
  39. package/dist/components/ViewLayout/ViewLayout.vue_vue_type_script_setup_true_lang.js +1 -2
  40. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -2
  41. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -2
  42. package/dist/components/ViewLayout/ViewLayoutSection.vue.js.map +1 -1
  43. package/dist/components/ViewLayout/ViewLayoutSection.vue_vue_type_script_setup_true_lang.js +1 -2
  44. package/dist/components/ViewLayout/ViewLayoutSection.vue_vue_type_script_setup_true_lang.js.map +1 -1
  45. package/dist/hooks/use-file-dialog.js +1 -2
  46. package/dist/plugins/posthog/index.js +1 -2
  47. package/dist/plugins/posthog/sanitize-event-payload.js +1 -2
  48. package/dist/style.css +468 -445
  49. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  50. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +1 -2
  51. package/dist/v2/blocks/operation-block/OperationBlock.vue.js.map +1 -1
  52. package/dist/v2/blocks/operation-block/OperationBlock.vue_vue_type_script_setup_true_lang.js +11 -7
  53. package/dist/v2/blocks/operation-block/OperationBlock.vue_vue_type_script_setup_true_lang.js.map +1 -1
  54. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -3
  55. package/dist/v2/blocks/operation-block/components/Header.vue.js.map +1 -1
  56. package/dist/v2/blocks/operation-block/components/Header.vue_vue_type_script_setup_true_lang.js +3 -4
  57. package/dist/v2/blocks/operation-block/components/Header.vue_vue_type_script_setup_true_lang.js.map +1 -1
  58. package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.js +2 -3
  59. package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.js.map +1 -1
  60. package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue_vue_type_script_setup_true_lang.js +1 -2
  61. package/dist/v2/blocks/operation-block/helpers/decode-buffer.js +1 -2
  62. package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.js +1 -2
  63. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.js +1 -2
  64. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.js +1 -2
  65. package/dist/v2/blocks/operation-block/helpers/persist-response-cookies.js +1 -2
  66. package/dist/v2/blocks/operation-block/helpers/persist-script-environment.js +1 -2
  67. package/dist/v2/blocks/operation-block/helpers/response-cache.js +1 -2
  68. package/dist/v2/blocks/operation-block/helpers/send-request.js +1 -2
  69. package/dist/v2/blocks/operation-block/helpers/validate-path-parameters.js +1 -2
  70. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +2 -0
  71. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  72. package/dist/v2/blocks/request-block/RequestBlock.vue.js +3 -4
  73. package/dist/v2/blocks/request-block/RequestBlock.vue.js.map +1 -1
  74. package/dist/v2/blocks/request-block/RequestBlock.vue_vue_type_script_setup_true_lang.js +13 -7
  75. package/dist/v2/blocks/request-block/RequestBlock.vue_vue_type_script_setup_true_lang.js.map +1 -1
  76. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +2 -0
  77. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  78. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +3 -4
  79. package/dist/v2/blocks/request-block/components/RequestBody.vue.js.map +1 -1
  80. package/dist/v2/blocks/request-block/components/RequestBody.vue_vue_type_script_setup_true_lang.js +17 -13
  81. package/dist/v2/blocks/request-block/components/RequestBody.vue_vue_type_script_setup_true_lang.js.map +1 -1
  82. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +1 -2
  83. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js.map +1 -1
  84. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue_vue_type_script_setup_true_lang.js +1 -2
  85. package/dist/v2/blocks/request-block/components/RequestBodyMultipart.vue.d.ts +3 -0
  86. package/dist/v2/blocks/request-block/components/RequestBodyMultipart.vue.d.ts.map +1 -1
  87. package/dist/v2/blocks/request-block/components/RequestBodyMultipart.vue.js +1 -2
  88. package/dist/v2/blocks/request-block/components/RequestBodyMultipart.vue.js.map +1 -1
  89. package/dist/v2/blocks/request-block/components/RequestBodyMultipart.vue_vue_type_script_setup_true_lang.js +9 -4
  90. package/dist/v2/blocks/request-block/components/RequestBodyMultipart.vue_vue_type_script_setup_true_lang.js.map +1 -1
  91. package/dist/v2/blocks/request-block/components/RequestBodyStructured.vue.js +1 -2
  92. package/dist/v2/blocks/request-block/components/RequestBodyStructured.vue.js.map +1 -1
  93. package/dist/v2/blocks/request-block/components/RequestBodyStructured.vue_vue_type_script_setup_true_lang.js +2 -3
  94. package/dist/v2/blocks/request-block/components/RequestBodyViewToggle.vue.js +1 -2
  95. package/dist/v2/blocks/request-block/components/RequestBodyViewToggle.vue.js.map +1 -1
  96. package/dist/v2/blocks/request-block/components/RequestBodyViewToggle.vue_vue_type_script_setup_true_lang.js +1 -2
  97. package/dist/v2/blocks/request-block/components/RequestBodyViewToggle.vue_vue_type_script_setup_true_lang.js.map +1 -1
  98. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
  99. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +1 -2
  100. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js.map +1 -1
  101. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue_vue_type_script_setup_true_lang.js +4 -3
  102. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue_vue_type_script_setup_true_lang.js.map +1 -1
  103. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +1 -2
  104. package/dist/v2/blocks/request-block/components/RequestParams.vue.js.map +1 -1
  105. package/dist/v2/blocks/request-block/components/RequestParams.vue_vue_type_script_setup_true_lang.js +2 -3
  106. package/dist/v2/blocks/request-block/components/RequestParams.vue_vue_type_script_setup_true_lang.js.map +1 -1
  107. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +2 -3
  108. package/dist/v2/blocks/request-block/components/RequestTable.vue.js.map +1 -1
  109. package/dist/v2/blocks/request-block/components/RequestTable.vue_vue_type_script_setup_true_lang.js +3 -4
  110. package/dist/v2/blocks/request-block/components/RequestTableFileList.vue.js +1 -2
  111. package/dist/v2/blocks/request-block/components/RequestTableFileList.vue.js.map +1 -1
  112. package/dist/v2/blocks/request-block/components/RequestTableFileList.vue_vue_type_script_setup_true_lang.js +1 -2
  113. package/dist/v2/blocks/request-block/components/RequestTableFileList.vue_vue_type_script_setup_true_lang.js.map +1 -1
  114. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +1 -2
  115. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js.map +1 -1
  116. package/dist/v2/blocks/request-block/components/RequestTableRow.vue_vue_type_script_setup_true_lang.js +5 -6
  117. package/dist/v2/blocks/request-block/components/RequestTableRow.vue_vue_type_script_setup_true_lang.js.map +1 -1
  118. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +1 -2
  119. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js.map +1 -1
  120. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue_vue_type_script_setup_true_lang.js +2 -3
  121. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue_vue_type_script_setup_true_lang.js.map +1 -1
  122. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +1 -2
  123. package/dist/v2/blocks/request-block/helpers/create-parameter-rows.d.ts +2 -0
  124. package/dist/v2/blocks/request-block/helpers/create-parameter-rows.d.ts.map +1 -1
  125. package/dist/v2/blocks/request-block/helpers/create-parameter-rows.js +6 -3
  126. package/dist/v2/blocks/request-block/helpers/create-parameter-rows.js.map +1 -1
  127. package/dist/v2/blocks/request-block/helpers/files.js +1 -2
  128. package/dist/v2/blocks/request-block/helpers/fold-structured-body-rows.js +1 -2
  129. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +1 -2
  130. package/dist/v2/blocks/request-block/helpers/get-parameter-content.js +1 -2
  131. package/dist/v2/blocks/request-block/helpers/get-parameter-schema.js +1 -2
  132. package/dist/v2/blocks/request-block/helpers/get-structured-body-rows.js +1 -2
  133. package/dist/v2/blocks/request-block/helpers/group-by.js +1 -2
  134. package/dist/v2/blocks/request-block/helpers/group-form-body-files.js +2 -3
  135. package/dist/v2/blocks/request-block/helpers/group-form-body-files.js.map +1 -1
  136. package/dist/v2/blocks/request-block/helpers/group-global-cookies.js +1 -2
  137. package/dist/v2/blocks/request-block/helpers/multipart-body.js +1 -2
  138. package/dist/v2/blocks/request-block/helpers/structured-body-codec.js +1 -2
  139. package/dist/v2/blocks/request-block/helpers/validate-parameter.js +1 -2
  140. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +2 -3
  141. package/dist/v2/blocks/response-block/ResponseBlock.vue.js.map +1 -1
  142. package/dist/v2/blocks/response-block/ResponseBlock.vue_vue_type_script_setup_true_lang.js +4 -5
  143. package/dist/v2/blocks/response-block/ResponseBlock.vue_vue_type_script_setup_true_lang.js.map +1 -1
  144. package/dist/v2/blocks/response-block/components/Headers.vue.js +1 -2
  145. package/dist/v2/blocks/response-block/components/Headers.vue.js.map +1 -1
  146. package/dist/v2/blocks/response-block/components/Headers.vue_vue_type_script_setup_true_lang.js +3 -4
  147. package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +2 -3
  148. package/dist/v2/blocks/response-block/components/ResponseBody.vue.js.map +1 -1
  149. package/dist/v2/blocks/response-block/components/ResponseBody.vue_vue_type_script_setup_true_lang.js +5 -6
  150. package/dist/v2/blocks/response-block/components/ResponseBody.vue_vue_type_script_setup_true_lang.js.map +1 -1
  151. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +1 -2
  152. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js.map +1 -1
  153. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue_vue_type_script_setup_true_lang.js +2 -3
  154. package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.js +1 -2
  155. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js +2 -3
  156. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js.map +1 -1
  157. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue_vue_type_script_setup_true_lang.js +2 -3
  158. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +2 -3
  159. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js.map +1 -1
  160. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue_vue_type_script_setup_true_lang.js +1 -2
  161. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue_vue_type_script_setup_true_lang.js.map +1 -1
  162. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +1 -2
  163. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js.map +1 -1
  164. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue_vue_type_script_setup_true_lang.js +2 -3
  165. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue_vue_type_script_setup_true_lang.js.map +1 -1
  166. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +1 -2
  167. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js.map +1 -1
  168. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue_vue_type_script_setup_true_lang.js +1 -2
  169. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.js +1 -2
  170. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.js.map +1 -1
  171. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue_vue_type_script_setup_true_lang.js +3 -4
  172. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +1 -2
  173. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js.map +1 -1
  174. package/dist/v2/blocks/response-block/components/ResponseCookies.vue_vue_type_script_setup_true_lang.js +2 -3
  175. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +2 -3
  176. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js.map +1 -1
  177. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue_vue_type_script_setup_true_lang.js +3 -4
  178. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue_vue_type_script_setup_true_lang.js.map +1 -1
  179. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +2 -3
  180. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js.map +1 -1
  181. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue_vue_type_script_setup_true_lang.js +1 -2
  182. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue_vue_type_script_setup_true_lang.js.map +1 -1
  183. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +1 -2
  184. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js.map +1 -1
  185. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue_vue_type_script_setup_true_lang.js +2 -3
  186. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue_vue_type_script_setup_true_lang.js.map +1 -1
  187. package/dist/v2/blocks/response-block/helpers/extract-filename.js +1 -2
  188. package/dist/v2/blocks/response-block/helpers/get-content-length.js +1 -2
  189. package/dist/v2/blocks/response-block/helpers/media-types.js +1 -2
  190. package/dist/v2/blocks/response-block/helpers/parse-set-cookie.js +1 -2
  191. package/dist/v2/blocks/response-block/helpers/prettify-jsonc-string.js +1 -2
  192. package/dist/v2/blocks/response-block/helpers/prettify-ndjson.js +1 -2
  193. package/dist/v2/blocks/response-block/helpers/process-response-body.js +1 -2
  194. package/dist/v2/blocks/response-block/helpers/resolve-response-body-handler.js +1 -2
  195. package/dist/v2/blocks/response-block/helpers/resolve-response-content-type.js +1 -2
  196. package/dist/v2/blocks/response-block/helpers/response-stream-multipart.js +1 -2
  197. package/dist/v2/blocks/response-block/helpers/response-stream.js +1 -2
  198. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -3
  199. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js.map +1 -1
  200. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue_vue_type_script_setup_true_lang.js +3 -4
  201. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue_vue_type_script_setup_true_lang.js.map +1 -1
  202. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +2 -3
  203. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js.map +1 -1
  204. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue_vue_type_script_setup_true_lang.js +2 -3
  205. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue_vue_type_script_setup_true_lang.js.map +1 -1
  206. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js +1 -2
  207. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js.map +1 -1
  208. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue_vue_type_script_setup_true_lang.js +1 -2
  209. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue_vue_type_script_setup_true_lang.js.map +1 -1
  210. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +1 -2
  211. package/dist/v2/blocks/scalar-address-bar-block/helpers/is-placeholder-path.js +1 -2
  212. package/dist/v2/blocks/scalar-address-bar-block/helpers/refocus-blur-target.js +1 -2
  213. package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.js +1 -2
  214. package/dist/v2/blocks/scalar-address-bar-block/hooks/use-path-masking.js +1 -2
  215. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -2
  216. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js.map +1 -1
  217. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue_vue_type_script_setup_true_lang.js +3 -4
  218. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue_vue_type_script_setup_true_lang.js.map +1 -1
  219. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +1 -2
  220. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js.map +1 -1
  221. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue_vue_type_script_setup_true_lang.js +1 -2
  222. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +1 -2
  223. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js.map +1 -1
  224. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue_vue_type_script_setup_true_lang.js +4 -5
  225. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue_vue_type_script_setup_true_lang.js.map +1 -1
  226. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2Metadata.vue.js +1 -2
  227. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2Metadata.vue.js.map +1 -1
  228. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2Metadata.vue_vue_type_script_setup_true_lang.js +3 -4
  229. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2Metadata.vue_vue_type_script_setup_true_lang.js.map +1 -1
  230. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +1 -2
  231. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js.map +1 -1
  232. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue_vue_type_script_setup_true_lang.js +2 -3
  233. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue_vue_type_script_setup_true_lang.js.map +1 -1
  234. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +1 -2
  235. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js.map +1 -1
  236. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue_vue_type_script_setup_true_lang.js +2 -3
  237. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  238. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +1 -2
  239. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js.map +1 -1
  240. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue_vue_type_script_setup_true_lang.js +4 -5
  241. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue_vue_type_script_setup_true_lang.js.map +1 -1
  242. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +1 -2
  243. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js.map +1 -1
  244. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue_vue_type_script_setup_true_lang.js +2 -3
  245. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  246. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +1 -2
  247. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js.map +1 -1
  248. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue_vue_type_script_setup_true_lang.js +2 -3
  249. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  250. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +1 -2
  251. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js.map +1 -1
  252. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue_vue_type_script_setup_true_lang.js +7 -8
  253. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue_vue_type_script_setup_true_lang.js.map +1 -1
  254. package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.js +1 -2
  255. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-oauth2-metadata.js +1 -2
  256. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +1 -2
  257. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth-callback.js +1 -2
  258. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth-client-authorization.js +1 -2
  259. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth-device-authorization.js +2 -3
  260. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth-flows.js +1 -2
  261. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -2
  262. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth2-metadata-to-flows.js +1 -2
  263. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +1 -2
  264. package/dist/v2/blocks/scalar-auth-selector-block/helpers/resolve-default-oauth2-redirect-url.js +1 -2
  265. package/dist/v2/blocks/scalar-auth-selector-block/helpers/run-oauth2-authorize.js +1 -2
  266. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +2 -3
  267. package/dist/v2/components/code-input/CodeInput.vue.js +2 -3
  268. package/dist/v2/components/code-input/CodeInput.vue.js.map +1 -1
  269. package/dist/v2/components/code-input/CodeInput.vue_vue_type_script_setup_true_lang.js +2 -3
  270. package/dist/v2/components/code-input/CodeInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  271. package/dist/v2/components/code-input/CodeInputLite.vue.js +2 -3
  272. package/dist/v2/components/code-input/CodeInputLite.vue.js.map +1 -1
  273. package/dist/v2/components/code-input/CodeInputLite.vue_vue_type_script_setup_true_lang.js +4 -5
  274. package/dist/v2/components/code-input/CodeInputLite.vue_vue_type_script_setup_true_lang.js.map +1 -1
  275. package/dist/v2/components/code-input/PillTooltipHost.vue.js +1 -2
  276. package/dist/v2/components/code-input/PillTooltipHost.vue.js.map +1 -1
  277. package/dist/v2/components/code-input/PillTooltipHost.vue_vue_type_script_setup_true_lang.js +1 -2
  278. package/dist/v2/components/code-input/code-variable-widget.js +1 -2
  279. package/dist/v2/components/code-input/helpers/build-pill-context.js +1 -2
  280. package/dist/v2/components/code-input/helpers/lookup-variable-value.js +1 -2
  281. package/dist/v2/components/code-input/helpers/pill-signature.js +1 -2
  282. package/dist/v2/components/code-input/helpers/serialize-value.js +1 -2
  283. package/dist/v2/components/context-menu/ContextMenu.vue.js +1 -2
  284. package/dist/v2/components/context-menu/ContextMenu.vue.js.map +1 -1
  285. package/dist/v2/components/context-menu/ContextMenu.vue_vue_type_script_setup_true_lang.js +1 -2
  286. package/dist/v2/components/data-table/DataTable.vue.js +1 -2
  287. package/dist/v2/components/data-table/DataTable.vue.js.map +1 -1
  288. package/dist/v2/components/data-table/DataTable.vue_vue_type_script_setup_true_lang.js +1 -2
  289. package/dist/v2/components/data-table/DataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  290. package/dist/v2/components/data-table/DataTableCell.vue.js +1 -2
  291. package/dist/v2/components/data-table/DataTableCell.vue.js.map +1 -1
  292. package/dist/v2/components/data-table/DataTableCell.vue_vue_type_script_setup_true_lang.js +1 -2
  293. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +1 -2
  294. package/dist/v2/components/data-table/DataTableCheckbox.vue.js.map +1 -1
  295. package/dist/v2/components/data-table/DataTableCheckbox.vue_vue_type_script_setup_true_lang.js +1 -2
  296. package/dist/v2/components/data-table/DataTableHeader.vue.js +1 -2
  297. package/dist/v2/components/data-table/DataTableHeader.vue.js.map +1 -1
  298. package/dist/v2/components/data-table/DataTableHeader.vue_vue_type_script_setup_true_lang.js +1 -2
  299. package/dist/v2/components/data-table/DataTableInput.vue.js +2 -3
  300. package/dist/v2/components/data-table/DataTableInput.vue.js.map +1 -1
  301. package/dist/v2/components/data-table/DataTableInput.vue_vue_type_script_setup_true_lang.js +3 -4
  302. package/dist/v2/components/data-table/DataTableInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  303. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +1 -2
  304. package/dist/v2/components/data-table/DataTableInputSelect.vue.js.map +1 -1
  305. package/dist/v2/components/data-table/DataTableInputSelect.vue_vue_type_script_setup_true_lang.js +1 -2
  306. package/dist/v2/components/data-table/DataTableInputSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
  307. package/dist/v2/components/data-table/DataTableRow.vue.js +1 -2
  308. package/dist/v2/components/data-table/DataTableText.vue.js +1 -2
  309. package/dist/v2/components/data-table/DataTableText.vue.js.map +1 -1
  310. package/dist/v2/components/data-table/DataTableText.vue_vue_type_script_setup_true_lang.js +1 -2
  311. package/dist/v2/components/data-table/index.js +1 -1
  312. package/dist/v2/components/forms/ConfirmationForm.vue.js +1 -2
  313. package/dist/v2/components/forms/ConfirmationForm.vue.js.map +1 -1
  314. package/dist/v2/components/forms/ConfirmationForm.vue_vue_type_script_setup_true_lang.js +1 -2
  315. package/dist/v2/components/layout/CollapsibleSection.vue.js +1 -2
  316. package/dist/v2/components/layout/CollapsibleSection.vue.js.map +1 -1
  317. package/dist/v2/components/layout/CollapsibleSection.vue_vue_type_script_setup_true_lang.js +1 -2
  318. package/dist/v2/components/layout/CollapsibleSection.vue_vue_type_script_setup_true_lang.js.map +1 -1
  319. package/dist/v2/components/layout/ValueEmitter.vue.js +1 -2
  320. package/dist/v2/components/layout/ValueEmitter.vue.js.map +1 -1
  321. package/dist/v2/components/layout/ValueEmitter.vue_vue_type_script_setup_true_lang.js +0 -1
  322. package/dist/v2/components/layout/collapsible-section-heading-level.js +1 -2
  323. package/dist/v2/components/layout/index.js +1 -1
  324. package/dist/v2/components/modals/DeleteModal.vue.js +1 -2
  325. package/dist/v2/components/modals/DeleteModal.vue.js.map +1 -1
  326. package/dist/v2/components/modals/DeleteModal.vue_vue_type_script_setup_true_lang.js +2 -3
  327. package/dist/v2/components/modals/DeleteModal.vue_vue_type_script_setup_true_lang.js.map +1 -1
  328. package/dist/v2/components/modals/ModalClientContainer.vue.js +2 -3
  329. package/dist/v2/components/modals/ModalClientContainer.vue.js.map +1 -1
  330. package/dist/v2/components/modals/ModalClientContainer.vue_vue_type_script_setup_true_lang.js +1 -2
  331. package/dist/v2/components/resize/Resize.vue.js +2 -3
  332. package/dist/v2/components/resize/Resize.vue.js.map +1 -1
  333. package/dist/v2/components/resize/Resize.vue_vue_type_script_setup_true_lang.js +1 -2
  334. package/dist/v2/components/resize/use-split-resize.js +1 -2
  335. package/dist/v2/components/server/ServerDropdown.vue.js +1 -2
  336. package/dist/v2/components/server/ServerDropdown.vue.js.map +1 -1
  337. package/dist/v2/components/server/ServerDropdown.vue_vue_type_script_setup_true_lang.js +2 -3
  338. package/dist/v2/components/server/ServerDropdown.vue_vue_type_script_setup_true_lang.js.map +1 -1
  339. package/dist/v2/components/server/ServerDropdownItem.vue.js +2 -3
  340. package/dist/v2/components/server/ServerDropdownItem.vue.js.map +1 -1
  341. package/dist/v2/components/server/ServerDropdownItem.vue_vue_type_script_setup_true_lang.js +1 -2
  342. package/dist/v2/components/server/ServerDropdownItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
  343. package/dist/v2/components/sidebar/Sidebar.vue.js +1 -2
  344. package/dist/v2/components/sidebar/Sidebar.vue.js.map +1 -1
  345. package/dist/v2/components/sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +2 -3
  346. package/dist/v2/components/sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js.map +1 -1
  347. package/dist/v2/components/sidebar/SidebarMenu.vue.js +1 -2
  348. package/dist/v2/components/sidebar/SidebarMenu.vue.js.map +1 -1
  349. package/dist/v2/components/sidebar/SidebarMenu.vue_vue_type_script_setup_true_lang.js +1 -2
  350. package/dist/v2/components/sidebar/SidebarToggle.vue.js +2 -3
  351. package/dist/v2/components/sidebar/SidebarToggle.vue.js.map +1 -1
  352. package/dist/v2/components/sidebar/SidebarToggle.vue_vue_type_script_setup_true_lang.js +1 -2
  353. package/dist/v2/components/sidebar/index.js +1 -1
  354. package/dist/v2/constants.js +2 -3
  355. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +1 -2
  356. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js.map +1 -1
  357. package/dist/v2/features/command-palette/components/CommandActionForm.vue_vue_type_script_setup_true_lang.js +1 -2
  358. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +1 -2
  359. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js.map +1 -1
  360. package/dist/v2/features/command-palette/components/CommandActionInput.vue_vue_type_script_setup_true_lang.js +1 -2
  361. package/dist/v2/features/environments/EnvironmentsList.vue.js +1 -2
  362. package/dist/v2/features/environments/EnvironmentsList.vue.js.map +1 -1
  363. package/dist/v2/features/environments/EnvironmentsList.vue_vue_type_script_setup_true_lang.js +2 -3
  364. package/dist/v2/features/environments/components/Environment.vue.js +1 -2
  365. package/dist/v2/features/environments/components/Environment.vue.js.map +1 -1
  366. package/dist/v2/features/environments/components/Environment.vue_vue_type_script_setup_true_lang.js +2 -3
  367. package/dist/v2/features/environments/components/Environment.vue_vue_type_script_setup_true_lang.js.map +1 -1
  368. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -1
  369. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +1 -2
  370. package/dist/v2/features/environments/components/EnvironmentColors.vue.js.map +1 -1
  371. package/dist/v2/features/environments/components/EnvironmentColors.vue_vue_type_script_setup_true_lang.js +9 -10
  372. package/dist/v2/features/environments/components/EnvironmentColors.vue_vue_type_script_setup_true_lang.js.map +1 -1
  373. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +1 -2
  374. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js.map +1 -1
  375. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue_vue_type_script_setup_true_lang.js +2 -3
  376. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue_vue_type_script_setup_true_lang.js.map +1 -1
  377. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +1 -2
  378. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js.map +1 -1
  379. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue_vue_type_script_setup_true_lang.js +1 -2
  380. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +1 -2
  381. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js.map +1 -1
  382. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue_vue_type_script_setup_true_lang.js +1 -2
  383. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue_vue_type_script_setup_true_lang.js.map +1 -1
  384. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +2 -3
  385. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js.map +1 -1
  386. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue_vue_type_script_setup_true_lang.js +2 -3
  387. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  388. package/dist/v2/features/localization/index.js +1 -2
  389. package/dist/v2/features/localization/locales/ar.js +1 -2
  390. package/dist/v2/features/localization/locales/de.js +1 -2
  391. package/dist/v2/features/localization/locales/es.js +1 -2
  392. package/dist/v2/features/localization/locales/fr.js +1 -2
  393. package/dist/v2/features/localization/locales/pt.js +1 -2
  394. package/dist/v2/features/localization/locales/ru.js +1 -2
  395. package/dist/v2/features/localization/locales/zh-cn.js +1 -2
  396. package/dist/v2/features/localization/locales/zh-tw.js +1 -2
  397. package/dist/v2/features/localization/translations.js +1 -2
  398. package/dist/v2/features/modal/Modal.vue.js +1 -2
  399. package/dist/v2/features/modal/Modal.vue.js.map +1 -1
  400. package/dist/v2/features/modal/Modal.vue_vue_type_script_setup_true_lang.js +4 -5
  401. package/dist/v2/features/modal/helpers/create-api-client-modal.js +1 -2
  402. package/dist/v2/features/modal/helpers/map-hidden-clients-config.js +1 -2
  403. package/dist/v2/features/modal/helpers/resolve-route-parameters.js +1 -2
  404. package/dist/v2/features/modal/hooks/use-modal-sidebar.js +1 -2
  405. package/dist/v2/features/modal/index.js +2 -2
  406. package/dist/v2/features/modal/modal-events.js +1 -2
  407. package/dist/v2/features/modal/use-lazy-api-client.js +1 -2
  408. package/dist/v2/features/operation/Operation.vue.js +1 -2
  409. package/dist/v2/features/operation/Operation.vue.js.map +1 -1
  410. package/dist/v2/features/operation/Operation.vue_vue_type_script_setup_true_lang.js +2 -3
  411. package/dist/v2/features/search/components/DocumentSearchModal.vue.js +2 -3
  412. package/dist/v2/features/search/components/DocumentSearchModal.vue.js.map +1 -1
  413. package/dist/v2/features/search/components/DocumentSearchModal.vue_vue_type_script_setup_true_lang.js +1 -2
  414. package/dist/v2/features/search/components/SearchResult.vue.js +1 -2
  415. package/dist/v2/features/search/components/SearchResult.vue.js.map +1 -1
  416. package/dist/v2/features/search/components/SearchResult.vue_vue_type_script_setup_true_lang.js +1 -2
  417. package/dist/v2/features/search/components/SearchResult.vue_vue_type_script_setup_true_lang.js.map +1 -1
  418. package/dist/v2/features/search/helpers/create-fuse-instance.js +1 -2
  419. package/dist/v2/features/search/helpers/create-search-index.js +1 -2
  420. package/dist/v2/features/search/hooks/use-document-search.js +1 -2
  421. package/dist/v2/features/search/hooks/use-search-index.js +1 -2
  422. package/dist/v2/features/search/index.js +1 -1
  423. package/dist/v2/helpers/generate-location-id.js +1 -2
  424. package/dist/v2/helpers/handle-hotkeys.js +1 -2
  425. package/dist/v2/helpers/test-utils.js +1 -2
  426. package/dist/v2/hooks/use-global-hot-keys.js +1 -2
  427. package/dist/v2/hooks/use-scroll-lock.js +1 -2
  428. package/dist/v2/workspace-events.js +1 -2
  429. package/dist/vue-styles.css +130 -130
  430. package/package.json +26 -26
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseBodyStreaming.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_unref","CollapsibleSection","_withCtx","_createElementVNode","_createTextVNode","_toDisplayString","_createElementBlock","_createVNode","_createCommentVNode"],"sources":["../../../../../src/v2/blocks/response-block/components/ResponseBodyStreaming.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { ScalarButton } from '@scalar/components/button'\nimport { ScalarLoading, useLoadingState } from '@scalar/components/loading'\nimport { formatBytes } from '@scalar/helpers/formatters/format-bytes'\nimport { getUtf8ByteLength } from '@scalar/helpers/string/get-utf8-byte-length'\nimport { useClipboard } from '@scalar/use-hooks/useClipboard'\nimport { nextTick, onBeforeUnmount, ref, watch } from 'vue'\n\nimport { CollapsibleSection } from '@/v2/components/layout'\nimport { useLocalization } from '@/v2/features/localization'\n\nimport { createResponseStreamParser } from '../helpers/response-stream'\n\nconst { reader, contentType = 'text/event-stream' } = defineProps<{\n reader: ReadableStreamDefaultReader<Uint8Array>\n contentType?: string\n}>()\n\nconst { translate } = useLocalization()\n\nconst loader = useLoadingState()\nconst textContent = ref('')\nconst receivedBytes = ref(0)\nconst { copyToClipboard } = useClipboard()\nlet downloadUrl: string | undefined\n\nconst clearDownload = (): void => {\n if (downloadUrl) {\n URL.revokeObjectURL(downloadUrl)\n downloadUrl = undefined\n }\n}\n\n/** Export only the bounded displayed transcript, without retaining another raw body. */\nconst downloadText = (): void => {\n clearDownload()\n downloadUrl = URL.createObjectURL(\n new Blob([textContent.value], { type: 'text/plain;charset=utf-8' }),\n )\n const link = document.createElement('a')\n link.href = downloadUrl\n link.download = 'response-stream.txt'\n link.click()\n}\nconst errorRef = ref<Error | null>(null)\nconst contentContainer = ref<HTMLElement | null>(null)\nlet currentReader: ReadableStreamDefaultReader<Uint8Array> | null = null\n\n/** Bound the text retained by a connection that can stay open indefinitely. */\nconst MAX_DISPLAY_SIZE = 16 * 1024 * 1024\n\nwatch(textContent, async () => {\n await nextTick()\n if (contentContainer.value) {\n contentContainer.value.scrollTop = contentContainer.value.scrollHeight\n }\n})\n\nconst cancelReader = (\n streamReader: ReadableStreamDefaultReader<Uint8Array>,\n): void => {\n void Promise.resolve(streamReader.cancel()).catch(() => {\n // A failed or disconnected stream can already be closed when the user cancels.\n })\n}\n\nconst readStream = async (\n streamReader: ReadableStreamDefaultReader<Uint8Array>,\n): Promise<void> => {\n try {\n let displayedBytes = 0\n const parser = createResponseStreamParser(contentType, (text) => {\n displayedBytes += getUtf8ByteLength(text)\n if (displayedBytes > MAX_DISPLAY_SIZE) {\n throw new Error(\n 'Stream display reached its 16 MiB limit. Cancelled further reading.',\n )\n }\n textContent.value += text\n })\n while (currentReader === streamReader) {\n const { done, value } = await streamReader.read()\n if (currentReader !== streamReader) {\n return\n }\n if (done) {\n parser.finish()\n void loader.clear()\n return\n }\n receivedBytes.value += value.byteLength\n parser.push(value)\n }\n } catch (error) {\n if (currentReader === streamReader) {\n console.error('Error reading stream:', error)\n errorRef.value = error instanceof Error ? error : new Error(String(error))\n cancelReader(streamReader)\n void loader.clear()\n }\n } finally {\n streamReader.releaseLock()\n }\n}\n\nconst stopStreaming = (): void => {\n const previous = currentReader\n currentReader = null\n if (previous) {\n cancelReader(previous)\n }\n void loader.clear()\n}\n\nconst startStreaming = (): void => {\n stopStreaming()\n currentReader = reader\n loader.start()\n clearDownload()\n receivedBytes.value = 0\n textContent.value = ''\n errorRef.value = null\n void readStream(reader)\n}\n\nwatch(() => reader, startStreaming, { immediate: true })\nonBeforeUnmount(() => {\n stopStreaming()\n clearDownload()\n})\n</script>\n\n<template>\n <CollapsibleSection class=\"max-h-content overflow-y-hidden\">\n <template #title>\n <div class=\"flex w-full items-center justify-between\">\n <div>\n {{ translate('apiClient.responseBodyStreaming.body') }}\n <span class=\"text-c-2 ml-2 text-xs\">\n {{ formatBytes(receivedBytes) }} received\n </span>\n </div>\n <div\n v-if=\"loader.isLoading\"\n class=\"mr-2 flex items-center gap-2\">\n <ScalarLoading\n :loadingState=\"loader\"\n size=\"xs\" />\n <span class=\"text-c-2\">{{\n translate('apiClient.responseBodyStreaming.listening')\n }}</span>\n </div>\n </div>\n </template>\n <template #actions>\n <ScalarButton\n v-if=\"loader.isLoading\"\n size=\"sm\"\n variant=\"ghost\"\n @click=\"stopStreaming\">\n {{ translate('apiClient.responseBodyStreaming.cancel') }}\n </ScalarButton>\n <ScalarButton\n v-if=\"textContent\"\n size=\"sm\"\n variant=\"ghost\"\n @click=\"copyToClipboard(textContent)\">\n Copy text\n </ScalarButton>\n <ScalarButton\n v-if=\"textContent\"\n size=\"sm\"\n variant=\"ghost\"\n @click=\"downloadText\">\n Download text\n </ScalarButton>\n </template>\n\n <div\n ref=\"contentContainer\"\n class=\"text-xxs font-code h-full overflow-auto leading-6 whitespace-pre-wrap\">\n <template v-if=\"errorRef\">\n <div class=\"text-red bg-b-danger sticky top-0 border-b p-2\">\n {{ errorRef.message }}\n </div>\n </template>\n <template v-if=\"textContent\">\n <div class=\"p-2\">\n {{ textContent }}\n </div>\n </template>\n </div>\n </CollapsibleSection>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,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AM,CAAC,aADfF,UAAA,GAAAC,YAMeC,MAAA,YAAA,GAAA;;MAJb,MAAK;MACL,SAAQ;MACP,SAAO;;MACR,SAAAE,cAAyD,CAAtDE,gBAAAC,gBAAAL,MAAA,SAAA,CAAS,CAAA,wCAAA,CAAA,GAAA,CAAA,C;;;KAGN,YAAA,SADRF,UAAA,GAAAC,YAMeC,MAAA,YAAA,GAAA;;MAJb,MAAK;MACL,SAAQ;MACP,SAAK,OAAA,OAAA,OAAA,MAAA,WAAEA,MAAA,eAAA,CAAe,CAAC,YAAA,KAAW;;MAAG,SAAAE,cAExC,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAFwCE,gBAAA,eAExC,EAAA,C;;;KAEQ,YAAA,SADRN,UAAA,GAAAC,YAMeC,MAAA,YAAA,GAAA;;MAJb,MAAK;MACL,SAAQ;MACP,SAAO;;MAAc,SAAAE,cAExB,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAFwBE,gBAAA,mBAExB,EAAA,C;;;;IAGF,SAAAF,cAaM,CAbNC,mBAaM,OAAA;KAZA,SAAA;KAAJ,KAAI;KACJ,OAAM;I,IACU,SAAA,SACdL,UAAA,GAAAQ,mBAEM,OAFN,YAEMD,gBADD,SAAA,MAAS,OAAO,GAAA,CAAA,K,8BAGP,YAAA,SACdP,UAAA,GAAAQ,mBAEM,OAFN,YAEMD,gBADD,YAAA,KAAW,GAAA,CAAA,K"}
1
+ {"version":3,"file":"ResponseBodyStreaming.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_unref","CollapsibleSection","_withCtx","_createElementVNode","_createTextVNode","_toDisplayString","_createElementBlock","_createVNode"],"sources":["../../../../../src/v2/blocks/response-block/components/ResponseBodyStreaming.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { ScalarButton } from '@scalar/components/button'\nimport { ScalarLoading, useLoadingState } from '@scalar/components/loading'\nimport { formatBytes } from '@scalar/helpers/formatters/format-bytes'\nimport { getUtf8ByteLength } from '@scalar/helpers/string/get-utf8-byte-length'\nimport { useClipboard } from '@scalar/use-hooks/useClipboard'\nimport { nextTick, onBeforeUnmount, ref, watch } from 'vue'\n\nimport { CollapsibleSection } from '@/v2/components/layout'\nimport { useLocalization } from '@/v2/features/localization'\n\nimport { createResponseStreamParser } from '../helpers/response-stream'\n\nconst { reader, contentType = 'text/event-stream' } = defineProps<{\n reader: ReadableStreamDefaultReader<Uint8Array>\n contentType?: string\n}>()\n\nconst { translate } = useLocalization()\n\nconst loader = useLoadingState()\nconst textContent = ref('')\nconst receivedBytes = ref(0)\nconst { copyToClipboard } = useClipboard()\nlet downloadUrl: string | undefined\n\nconst clearDownload = (): void => {\n if (downloadUrl) {\n URL.revokeObjectURL(downloadUrl)\n downloadUrl = undefined\n }\n}\n\n/** Export only the bounded displayed transcript, without retaining another raw body. */\nconst downloadText = (): void => {\n clearDownload()\n downloadUrl = URL.createObjectURL(\n new Blob([textContent.value], { type: 'text/plain;charset=utf-8' }),\n )\n const link = document.createElement('a')\n link.href = downloadUrl\n link.download = 'response-stream.txt'\n link.click()\n}\nconst errorRef = ref<Error | null>(null)\nconst contentContainer = ref<HTMLElement | null>(null)\nlet currentReader: ReadableStreamDefaultReader<Uint8Array> | null = null\n\n/** Bound the text retained by a connection that can stay open indefinitely. */\nconst MAX_DISPLAY_SIZE = 16 * 1024 * 1024\n\nwatch(textContent, async () => {\n await nextTick()\n if (contentContainer.value) {\n contentContainer.value.scrollTop = contentContainer.value.scrollHeight\n }\n})\n\nconst cancelReader = (\n streamReader: ReadableStreamDefaultReader<Uint8Array>,\n): void => {\n void Promise.resolve(streamReader.cancel()).catch(() => {\n // A failed or disconnected stream can already be closed when the user cancels.\n })\n}\n\nconst readStream = async (\n streamReader: ReadableStreamDefaultReader<Uint8Array>,\n): Promise<void> => {\n try {\n let displayedBytes = 0\n const parser = createResponseStreamParser(contentType, (text) => {\n displayedBytes += getUtf8ByteLength(text)\n if (displayedBytes > MAX_DISPLAY_SIZE) {\n throw new Error(\n 'Stream display reached its 16 MiB limit. Cancelled further reading.',\n )\n }\n textContent.value += text\n })\n while (currentReader === streamReader) {\n const { done, value } = await streamReader.read()\n if (currentReader !== streamReader) {\n return\n }\n if (done) {\n parser.finish()\n void loader.clear()\n return\n }\n receivedBytes.value += value.byteLength\n parser.push(value)\n }\n } catch (error) {\n if (currentReader === streamReader) {\n console.error('Error reading stream:', error)\n errorRef.value = error instanceof Error ? error : new Error(String(error))\n cancelReader(streamReader)\n void loader.clear()\n }\n } finally {\n streamReader.releaseLock()\n }\n}\n\nconst stopStreaming = (): void => {\n const previous = currentReader\n currentReader = null\n if (previous) {\n cancelReader(previous)\n }\n void loader.clear()\n}\n\nconst startStreaming = (): void => {\n stopStreaming()\n currentReader = reader\n loader.start()\n clearDownload()\n receivedBytes.value = 0\n textContent.value = ''\n errorRef.value = null\n void readStream(reader)\n}\n\nwatch(() => reader, startStreaming, { immediate: true })\nonBeforeUnmount(() => {\n stopStreaming()\n clearDownload()\n})\n</script>\n\n<template>\n <CollapsibleSection class=\"max-h-content overflow-y-hidden\">\n <template #title>\n <div class=\"flex w-full items-center justify-between\">\n <div>\n {{ translate('apiClient.responseBodyStreaming.body') }}\n <span class=\"text-c-2 ml-2 text-xs\">\n {{ formatBytes(receivedBytes) }} received\n </span>\n </div>\n <div\n v-if=\"loader.isLoading\"\n class=\"mr-2 flex items-center gap-2\">\n <ScalarLoading\n :loadingState=\"loader\"\n size=\"xs\" />\n <span class=\"text-c-2\">{{\n translate('apiClient.responseBodyStreaming.listening')\n }}</span>\n </div>\n </div>\n </template>\n <template #actions>\n <ScalarButton\n v-if=\"loader.isLoading\"\n size=\"sm\"\n variant=\"ghost\"\n @click=\"stopStreaming\">\n {{ translate('apiClient.responseBodyStreaming.cancel') }}\n </ScalarButton>\n <ScalarButton\n v-if=\"textContent\"\n size=\"sm\"\n variant=\"ghost\"\n @click=\"copyToClipboard(textContent)\">\n Copy text\n </ScalarButton>\n <ScalarButton\n v-if=\"textContent\"\n size=\"sm\"\n variant=\"ghost\"\n @click=\"downloadText\">\n Download text\n </ScalarButton>\n </template>\n\n <div\n ref=\"contentContainer\"\n class=\"text-xxs font-code h-full overflow-auto leading-6 whitespace-pre-wrap\">\n <template v-if=\"errorRef\">\n <div class=\"text-red bg-b-danger sticky top-0 border-b p-2\">\n {{ errorRef.message }}\n </div>\n </template>\n <template v-if=\"textContent\">\n <div class=\"p-2\">\n {{ textContent }}\n </div>\n </template>\n </div>\n </CollapsibleSection>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,IAAM,mBAAmB;;;;;;;;EA/BzB,MAAM,EAAE,cAAc,gBAAgB;EAEtC,MAAM,SAAS,gBAAgB;EAC/B,MAAM,cAAc,IAAI,EAAE;EAC1B,MAAM,gBAAgB,IAAI,CAAC;EAC3B,MAAM,EAAE,oBAAoB,aAAa;EACzC,IAAI;EAEJ,MAAM,sBAA4B;GAChC,IAAI,aAAa;IACf,IAAI,gBAAgB,WAAW;IAC/B,cAAc,KAAA;GAChB;EACF;;EAGA,MAAM,qBAA2B;GAC/B,cAAc;GACd,cAAc,IAAI,gBAChB,IAAI,KAAK,CAAC,YAAY,KAAK,GAAG,EAAE,MAAM,2BAA2B,CAAC,CACpE;GACA,MAAM,OAAO,SAAS,cAAc,GAAG;GACvC,KAAK,OAAO;GACZ,KAAK,WAAW;GAChB,KAAK,MAAM;EACb;EACA,MAAM,WAAW,IAAkB,IAAI;EACvC,MAAM,mBAAmB,IAAwB,IAAI;EACrD,IAAI,gBAAgE;;EAKpE,MAAM,aAAa,YAAY;GAC7B,MAAM,SAAS;GACf,IAAI,iBAAiB,OACnB,iBAAiB,MAAM,YAAY,iBAAiB,MAAM;EAE9D,CAAC;EAED,MAAM,gBACJ,iBACS;GACT,QAAa,QAAQ,aAAa,OAAO,CAAC,CAAC,CAAC,YAAY,CAExD,CAAC;EACH;EAEA,MAAM,aAAa,OACjB,iBACkB;GAClB,IAAI;IACF,IAAI,iBAAiB;IACrB,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"}
@@ -1,7 +1,6 @@
1
1
  import ResponseBodyToggle_vue_vue_type_script_setup_true_lang_default from "./ResponseBodyToggle.vue_vue_type_script_setup_true_lang.js";
2
- //#region src/v2/blocks/response-block/components/ResponseBodyToggle.vue
2
+ // src/v2/blocks/response-block/components/ResponseBodyToggle.vue
3
3
  var ResponseBodyToggle_default = ResponseBodyToggle_vue_vue_type_script_setup_true_lang_default;
4
- //#endregion
5
4
  export { ResponseBodyToggle_default as default };
6
5
 
7
6
  //# sourceMappingURL=ResponseBodyToggle.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseBodyToggle.vue.js","names":["_sfc_main"],"sources":["../../../../../src/v2/blocks/response-block/components/ResponseBodyToggle.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { useLocalization } from '@/v2/features/localization'\n\ndefineProps<{\n modelValue: boolean\n}>()\n\ndefineEmits<{\n (e: 'update:modelValue', v: boolean): void\n}>()\n\nconst { translate } = useLocalization()\n</script>\n<template>\n <div\n class=\"text-c-3 text-xxs -my-1 flex justify-center gap-0.5 rounded p-0.5\">\n <button\n class=\"hover:bg-b-3 rounded px-1\"\n :class=\"{ 'bg-b-3 text-c-1 cursor-default': modelValue }\"\n type=\"button\"\n @click.stop=\"$emit('update:modelValue', true)\">\n {{ translate('apiClient.responseBodyToggle.preview') }}\n </button>\n <button\n class=\"hover:bg-b-3 rounded px-1\"\n :class=\"{ 'bg-b-3 text-c-1 cursor-default': !modelValue }\"\n type=\"button\"\n @click.stop=\"$emit('update:modelValue', false)\">\n {{ translate('apiClient.responseBodyToggle.raw') }}\n </button>\n </div>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"ResponseBodyToggle.vue.js","names":[],"sources":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import { useLocalization } from "../../../features/localization/index.js";
2
2
  import { createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, toDisplayString, unref, withModifiers } from "vue";
3
- //#region src/v2/blocks/response-block/components/ResponseBodyToggle.vue?vue&type=script&setup=true&lang.ts
3
+ // src/v2/blocks/response-block/components/ResponseBodyToggle.vue?vue&type=script&setup=true&lang.ts
4
4
  var _hoisted_1 = { class: "text-c-3 text-xxs -my-1 flex justify-center gap-0.5 rounded p-0.5" };
5
5
  var ResponseBodyToggle_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
6
6
  __name: "ResponseBodyToggle",
@@ -21,7 +21,6 @@ var ResponseBodyToggle_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
21
21
  };
22
22
  }
23
23
  });
24
- //#endregion
25
24
  export { ResponseBodyToggle_vue_vue_type_script_setup_true_lang_default as default };
26
25
 
27
26
  //# sourceMappingURL=ResponseBodyToggle.vue_vue_type_script_setup_true_lang.js.map
@@ -1,8 +1,7 @@
1
1
  import ResponseBodyVirtual_vue_vue_type_script_setup_true_lang_default from "./ResponseBodyVirtual.vue_vue_type_script_setup_true_lang.js";
2
2
  /* empty css */
3
- //#region src/v2/blocks/response-block/components/ResponseBodyVirtual.vue
3
+ // src/v2/blocks/response-block/components/ResponseBodyVirtual.vue
4
4
  var ResponseBodyVirtual_default = ResponseBodyVirtual_vue_vue_type_script_setup_true_lang_default;
5
- //#endregion
6
5
  export { ResponseBodyVirtual_default as default };
7
6
 
8
7
  //# sourceMappingURL=ResponseBodyVirtual.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseBodyVirtual.vue.js","names":["_sfc_main"],"sources":["../../../../../src/v2/blocks/response-block/components/ResponseBodyVirtual.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarVirtualText } from '@scalar/components/virtual-text'\nimport { formatJsonOrYamlString } from '@scalar/oas-utils/helpers'\nimport { computed } from 'vue'\n\nimport { processResponseBody } from '@/v2/blocks/response-block/helpers/process-response-body'\nimport { CollapsibleSection } from '@/v2/components/layout'\nimport { useLocalization } from '@/v2/features/localization'\n\nimport ResponseBodyDownload from './ResponseBodyDownload.vue'\n\nconst { content, data, headers } = defineProps<{\n content: string\n data: unknown\n headers: { name: string; value: string }[]\n}>()\n\nconst { translate } = useLocalization()\n\nconst textContent = computed(() => formatJsonOrYamlString(content))\n\nconst responseBody = computed(() =>\n processResponseBody({\n data,\n headers,\n }),\n)\n</script>\n\n<template>\n <CollapsibleSection class=\"!max-h-100% response-body-virtual overflow-x-auto\">\n <template #title>\n {{ translate('apiClient.responseBodyVirtual.body') }}\n </template>\n <template\n v-if=\"responseBody.dataUrl\"\n #actions>\n <ResponseBodyDownload\n :filename=\"responseBody.attachmentFilename\"\n :href=\"responseBody.dataUrl\"\n :type=\"responseBody.mimeType?.essence\" />\n </template>\n <div class=\"font-code text-xxs rounded-t border-x border-t px-2.5 py-1.5\">\n {{ translate('apiClient.responseBodyVirtual.largeBodyHint') }}\n </div>\n <ScalarVirtualText\n containerClass=\"custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen\"\n contentClass=\"language-plaintext whitespace-pre font-code text-base\"\n :lineHeight=\"20\"\n searchable\n :text=\"textContent\" />\n </CollapsibleSection>\n</template>\n\n<style>\n.response-body-virtual[data-headlessui-state='open'],\n.response-body-virtual[data-headlessui-state='open'] .diclosure-panel {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n}\n</style>\n"],"mappings":""}
1
+ {"version":3,"file":"ResponseBodyVirtual.vue.js","names":[],"sources":[],"mappings":""}
@@ -1,11 +1,11 @@
1
- import { useLocalization } from "../../../features/localization/index.js";
2
- import CollapsibleSection_default from "../../../components/layout/CollapsibleSection.vue.js";
3
1
  import { processResponseBody } from "../helpers/process-response-body.js";
2
+ import CollapsibleSection_default from "../../../components/layout/CollapsibleSection.vue.js";
3
+ import { useLocalization } from "../../../features/localization/index.js";
4
4
  import ResponseBodyDownload_default from "./ResponseBodyDownload.vue.js";
5
5
  import { computed, createBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, openBlock, toDisplayString, unref, withCtx } from "vue";
6
6
  import { formatJsonOrYamlString } from "@scalar/oas-utils/helpers";
7
7
  import { ScalarVirtualText } from "@scalar/components/virtual-text";
8
- //#region src/v2/blocks/response-block/components/ResponseBodyVirtual.vue?vue&type=script&setup=true&lang.ts
8
+ // src/v2/blocks/response-block/components/ResponseBodyVirtual.vue?vue&type=script&setup=true&lang.ts
9
9
  var _hoisted_1 = { class: "font-code text-xxs rounded-t border-x border-t px-2.5 py-1.5" };
10
10
  var ResponseBodyVirtual_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
11
11
  __name: "ResponseBodyVirtual",
@@ -48,7 +48,6 @@ var ResponseBodyVirtual_vue_vue_type_script_setup_true_lang_default = /*@__PURE_
48
48
  };
49
49
  }
50
50
  });
51
- //#endregion
52
51
  export { ResponseBodyVirtual_vue_vue_type_script_setup_true_lang_default as default };
53
52
 
54
53
  //# sourceMappingURL=ResponseBodyVirtual.vue_vue_type_script_setup_true_lang.js.map
@@ -1,7 +1,6 @@
1
1
  import ResponseCookies_vue_vue_type_script_setup_true_lang_default from "./ResponseCookies.vue_vue_type_script_setup_true_lang.js";
2
- //#region src/v2/blocks/response-block/components/ResponseCookies.vue
2
+ // src/v2/blocks/response-block/components/ResponseCookies.vue
3
3
  var ResponseCookies_default = ResponseCookies_vue_vue_type_script_setup_true_lang_default;
4
- //#endregion
5
4
  export { ResponseCookies_default as default };
6
5
 
7
6
  //# sourceMappingURL=ResponseCookies.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseCookies.vue.js","names":["_sfc_main"],"sources":["../../../../../src/v2/blocks/response-block/components/ResponseCookies.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n DataTable,\n DataTableHeader,\n DataTableRow,\n DataTableText,\n} from '@/v2/components/data-table'\nimport { CollapsibleSection } from '@/v2/components/layout'\nimport { useLocalization } from '@/v2/features/localization'\n\ndefineProps<{\n cookies: { name: string; value: string }[]\n}>()\n\nconst { translate } = useLocalization()\n</script>\n<template>\n <CollapsibleSection\n class=\"overflow-auto\"\n :defaultOpen=\"false\"\n :itemCount=\"cookies.length\">\n <template #title>\n {{ translate('apiClient.responseCookies.cookies') }}\n </template>\n <div\n v-if=\"cookies.length\"\n class=\"max-h-[calc(100%-32px)] overflow-y-auto\">\n <DataTable\n :columns=\"['minmax(auto, min-content)', 'minmax(50%, 1fr)']\"\n scroll>\n <DataTableRow class=\"sr-only !block\">\n <DataTableHeader>\n {{ translate('apiClient.responseCookies.cookieName') }}\n </DataTableHeader>\n <DataTableHeader>\n {{ translate('apiClient.responseCookies.cookieValue') }}\n </DataTableHeader>\n </DataTableRow>\n <DataTableRow\n v-for=\"(item, index) in cookies\"\n :key=\"item.name\"\n class=\"group/row text-c-1\">\n <DataTableText\n class=\"bg-b-1 sticky left-0 z-1 max-w-full\"\n :class=\"{ 'border-t-0': index === 0 }\"\n :text=\"item.name\" />\n <DataTableText\n class=\"z-0\"\n :class=\"{ 'border-t-0': index === 0 }\"\n :text=\"item.value\" />\n </DataTableRow>\n </DataTable>\n </div>\n <!-- Empty state -->\n <div\n v-else\n class=\"text-c-3 bg-b-1 flex min-h-[64px] items-center justify-center border-t px-4 text-sm\">\n {{ translate('apiClient.responseCookies.noCookies') }}\n </div>\n </CollapsibleSection>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"ResponseCookies.vue.js","names":[],"sources":[],"mappings":""}
@@ -1,11 +1,11 @@
1
- import { useLocalization } from "../../../features/localization/index.js";
2
1
  import DataTable_default from "../../../components/data-table/DataTable.vue.js";
3
2
  import DataTableHeader_default from "../../../components/data-table/DataTableHeader.vue.js";
4
3
  import DataTableRow_default from "../../../components/data-table/DataTableRow.vue.js";
5
4
  import DataTableText_default from "../../../components/data-table/DataTableText.vue.js";
6
5
  import CollapsibleSection_default from "../../../components/layout/CollapsibleSection.vue.js";
6
+ import { useLocalization } from "../../../features/localization/index.js";
7
7
  import { Fragment, createBlock, createElementBlock, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, renderList, toDisplayString, unref, withCtx } from "vue";
8
- //#region src/v2/blocks/response-block/components/ResponseCookies.vue?vue&type=script&setup=true&lang.ts
8
+ // src/v2/blocks/response-block/components/ResponseCookies.vue?vue&type=script&setup=true&lang.ts
9
9
  var _hoisted_1 = {
10
10
  key: 0,
11
11
  class: "max-h-[calc(100%-32px)] overflow-y-auto"
@@ -61,7 +61,6 @@ var ResponseCookies_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
61
61
  };
62
62
  }
63
63
  });
64
- //#endregion
65
64
  export { ResponseCookies_vue_vue_type_script_setup_true_lang_default as default };
66
65
 
67
66
  //# sourceMappingURL=ResponseCookies.vue_vue_type_script_setup_true_lang.js.map
@@ -1,9 +1,8 @@
1
- import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
2
1
  import ResponseEmpty_vue_vue_type_script_setup_true_lang_default from "./ResponseEmpty.vue_vue_type_script_setup_true_lang.js";
3
2
  /* empty css */
4
- //#region src/v2/blocks/response-block/components/ResponseEmpty.vue
3
+ import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ // src/v2/blocks/response-block/components/ResponseEmpty.vue
5
5
  var ResponseEmpty_default = /*#__PURE__*/ _plugin_vue_export_helper_default(ResponseEmpty_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-8ed574de"]]);
6
- //#endregion
7
6
  export { ResponseEmpty_default as default };
8
7
 
9
8
  //# sourceMappingURL=ResponseEmpty.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseEmpty.vue.js","names":["_sfc_main"],"sources":["../../../../../src/v2/blocks/response-block/components/ResponseEmpty.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarHotkey } from '@scalar/components/hotkey'\n\nimport Computer from '@/assets/computer.ascii?raw'\nimport { ScalarAsciiArt } from '@/components/ScalarAsciiArt'\nimport { useLocalization } from '@/v2/features/localization'\nimport type { ClientLayout } from '@/v2/types/layout'\n\nconst { totalPerformedRequests, layout, appVersion } = defineProps<{\n /** Wait for the selected external request example before sending. */\n executionDisabled?: boolean\n /** Client layout */\n layout: ClientLayout\n /** Total number of performed requests */\n totalPerformedRequests: number\n /** Application version */\n appVersion: string\n}>()\n\nconst emits = defineEmits<{\n (e: 'addRequest'): void\n (e: 'sendRequest'): void\n (e: 'openCommandPalette'): void\n}>()\n\nconst { translate } = useLocalization()\n</script>\n<template>\n <div class=\"flex-center relative flex flex-1 flex-col gap-6 p-2 capitalize\">\n <div\n class=\"flex h-[calc(100%_-_50px)] flex-col items-center justify-center\"\n :class=\"{\n 'hidden opacity-0': totalPerformedRequests > 0 && layout !== 'modal',\n }\">\n <div\n v-if=\"layout !== 'modal'\"\n class=\"scalar-version-number\">\n {{\n translate('apiClient.responseEmpty.version', { version: appVersion })\n }}\n <div class=\"mt-2\">\n <a\n href=\"https://github.com/scalar/scalar/issues/2669\"\n target=\"_blank\"\n >{{ translate('apiClient.responseEmpty.roadmap') }}</a\n >\n </div>\n </div>\n <a\n class=\"gitbook-show scalar-version-number\"\n href=\"https://www.scalar.com\"\n target=\"_blank\"\n >{{ translate('apiClient.responseEmpty.poweredByScalarcom') }}</a\n >\n <ScalarAsciiArt\n :art=\"Computer\"\n class=\"text-c-3\" />\n </div>\n\n <div\n class=\"text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm\">\n <button\n v-if=\"layout !== 'modal'\"\n class=\"flex items-center gap-1.5\"\n type=\"button\"\n @click=\"emits('openCommandPalette')\">\n {{ translate('apiClient.responseEmpty.getStarted')\n }}<ScalarHotkey\n hotkey=\"k\"\n :modifier=\"['default']\" />\n </button>\n <button\n v-if=\"layout === 'desktop'\"\n class=\"flex items-center gap-1.5\"\n type=\"button\"\n @click=\"emits('addRequest')\">\n {{ translate('apiClient.responseEmpty.newRequest')\n }}<ScalarHotkey hotkey=\"N\" />\n </button>\n <button\n class=\"flex items-center gap-1.5\"\n :disabled=\"executionDisabled\"\n type=\"button\"\n @click=\"emits('sendRequest')\">\n {{ translate('apiClient.responseEmpty.sendRequest')\n }}<ScalarHotkey hotkey=\"↵\" />\n </button>\n </div>\n </div>\n</template>\n<style scoped>\n.scalar-version-number {\n transform: skew(0deg, 13deg);\n width: 76px;\n height: 76px;\n position: absolute;\n margin-left: -36px;\n font-size: 8px;\n font-family: var(--scalar-font-code);\n line-height: 11px;\n margin-top: -113px;\n border-radius: 9px 9px 16px 12px;\n box-shadow: inset 2px 0px 0 2px var(--scalar-background-2);\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-transform: initial;\n text-decoration-color: var(--scalar-color-3);\n}\n.scalar-version-number a {\n font-weight: bold;\n font-weight: bold;\n background: var(--scalar-background-2);\n padding: 2px 4px;\n border-radius: 3px;\n text-decoration: none;\n border: 0.5px solid var(--scalar-border-color);\n}\n\n.gitbook-show {\n display: none;\n}\n</style>\n"],"mappings":""}
1
+ {"version":3,"file":"ResponseEmpty.vue.js","names":[],"sources":[],"mappings":""}
@@ -1,9 +1,9 @@
1
- import { useLocalization } from "../../../features/localization/index.js";
2
- import ScalarAsciiArt_default from "../../../../components/ScalarAsciiArt/ScalarAsciiArt.vue.js";
3
1
  import computer_default from "../../../../assets/computer.ascii_raw.js";
2
+ import ScalarAsciiArt_default from "../../../../components/ScalarAsciiArt/ScalarAsciiArt.vue.js";
3
+ import { useLocalization } from "../../../features/localization/index.js";
4
4
  import { createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, toDisplayString, unref } from "vue";
5
5
  import { ScalarHotkey } from "@scalar/components/hotkey";
6
- //#region src/v2/blocks/response-block/components/ResponseEmpty.vue?vue&type=script&setup=true&lang.ts
6
+ // src/v2/blocks/response-block/components/ResponseEmpty.vue?vue&type=script&setup=true&lang.ts
7
7
  var _hoisted_1 = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitalize" };
8
8
  var _hoisted_2 = {
9
9
  key: 0,
@@ -71,7 +71,6 @@ var ResponseEmpty_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
71
71
  };
72
72
  }
73
73
  });
74
- //#endregion
75
74
  export { ResponseEmpty_vue_vue_type_script_setup_true_lang_default as default };
76
75
 
77
76
  //# sourceMappingURL=ResponseEmpty.vue_vue_type_script_setup_true_lang.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseEmpty.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createElementVNode","_normalizeClass","_createTextVNode","_toDisplayString","_unref","_createCommentVNode","_createVNode","ScalarAsciiArt","Computer"],"sources":["../../../../../src/v2/blocks/response-block/components/ResponseEmpty.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarHotkey } from '@scalar/components/hotkey'\n\nimport Computer from '@/assets/computer.ascii?raw'\nimport { ScalarAsciiArt } from '@/components/ScalarAsciiArt'\nimport { useLocalization } from '@/v2/features/localization'\nimport type { ClientLayout } from '@/v2/types/layout'\n\nconst { totalPerformedRequests, layout, appVersion } = defineProps<{\n /** Wait for the selected external request example before sending. */\n executionDisabled?: boolean\n /** Client layout */\n layout: ClientLayout\n /** Total number of performed requests */\n totalPerformedRequests: number\n /** Application version */\n appVersion: string\n}>()\n\nconst emits = defineEmits<{\n (e: 'addRequest'): void\n (e: 'sendRequest'): void\n (e: 'openCommandPalette'): void\n}>()\n\nconst { translate } = useLocalization()\n</script>\n<template>\n <div class=\"flex-center relative flex flex-1 flex-col gap-6 p-2 capitalize\">\n <div\n class=\"flex h-[calc(100%_-_50px)] flex-col items-center justify-center\"\n :class=\"{\n 'hidden opacity-0': totalPerformedRequests > 0 && layout !== 'modal',\n }\">\n <div\n v-if=\"layout !== 'modal'\"\n class=\"scalar-version-number\">\n {{\n translate('apiClient.responseEmpty.version', { version: appVersion })\n }}\n <div class=\"mt-2\">\n <a\n href=\"https://github.com/scalar/scalar/issues/2669\"\n target=\"_blank\"\n >{{ translate('apiClient.responseEmpty.roadmap') }}</a\n >\n </div>\n </div>\n <a\n class=\"gitbook-show scalar-version-number\"\n href=\"https://www.scalar.com\"\n target=\"_blank\"\n >{{ translate('apiClient.responseEmpty.poweredByScalarcom') }}</a\n >\n <ScalarAsciiArt\n :art=\"Computer\"\n class=\"text-c-3\" />\n </div>\n\n <div\n class=\"text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm\">\n <button\n v-if=\"layout !== 'modal'\"\n class=\"flex items-center gap-1.5\"\n type=\"button\"\n @click=\"emits('openCommandPalette')\">\n {{ translate('apiClient.responseEmpty.getStarted')\n }}<ScalarHotkey\n hotkey=\"k\"\n :modifier=\"['default']\" />\n </button>\n <button\n v-if=\"layout === 'desktop'\"\n class=\"flex items-center gap-1.5\"\n type=\"button\"\n @click=\"emits('addRequest')\">\n {{ translate('apiClient.responseEmpty.newRequest')\n }}<ScalarHotkey hotkey=\"N\" />\n </button>\n <button\n class=\"flex items-center gap-1.5\"\n :disabled=\"executionDisabled\"\n type=\"button\"\n @click=\"emits('sendRequest')\">\n {{ translate('apiClient.responseEmpty.sendRequest')\n }}<ScalarHotkey hotkey=\"↵\" />\n </button>\n </div>\n </div>\n</template>\n<style scoped>\n.scalar-version-number {\n transform: skew(0deg, 13deg);\n width: 76px;\n height: 76px;\n position: absolute;\n margin-left: -36px;\n font-size: 8px;\n font-family: var(--scalar-font-code);\n line-height: 11px;\n margin-top: -113px;\n border-radius: 9px 9px 16px 12px;\n box-shadow: inset 2px 0px 0 2px var(--scalar-background-2);\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-transform: initial;\n text-decoration-color: var(--scalar-color-3);\n}\n.scalar-version-number a {\n font-weight: bold;\n font-weight: bold;\n background: var(--scalar-background-2);\n padding: 2px 4px;\n border-radius: 3px;\n text-decoration: none;\n border: 0.5px solid var(--scalar-border-color);\n}\n\n.gitbook-show {\n display: none;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBA,MAAM,QAAQ;EAMd,MAAM,EAAE,cAAc,gBAAgB;;GAGpC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OAAA,OAAA,OAAA,MAAA,WAAE,MAAK,aAAA;I,IACVE,gBAAAC,gBAAAC,MAAA,SAAA,CAAS,CAAA,qCAAA,CAAA,GAAA,CAAA,GACVE,YAA2BF,MAAA,YAAA,GAAA,EAAb,QAAO,IAAG,CAAA,C"}
1
+ {"version":3,"file":"ResponseEmpty.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createElementVNode","_normalizeClass","_createTextVNode","_toDisplayString","_unref","_createVNode","ScalarAsciiArt","Computer"],"sources":["../../../../../src/v2/blocks/response-block/components/ResponseEmpty.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarHotkey } from '@scalar/components/hotkey'\n\nimport Computer from '@/assets/computer.ascii?raw'\nimport { ScalarAsciiArt } from '@/components/ScalarAsciiArt'\nimport { useLocalization } from '@/v2/features/localization'\nimport type { ClientLayout } from '@/v2/types/layout'\n\nconst { totalPerformedRequests, layout, appVersion } = defineProps<{\n /** Wait for the selected external request example before sending. */\n executionDisabled?: boolean\n /** Client layout */\n layout: ClientLayout\n /** Total number of performed requests */\n totalPerformedRequests: number\n /** Application version */\n appVersion: string\n}>()\n\nconst emits = defineEmits<{\n (e: 'addRequest'): void\n (e: 'sendRequest'): void\n (e: 'openCommandPalette'): void\n}>()\n\nconst { translate } = useLocalization()\n</script>\n<template>\n <div class=\"flex-center relative flex flex-1 flex-col gap-6 p-2 capitalize\">\n <div\n class=\"flex h-[calc(100%_-_50px)] flex-col items-center justify-center\"\n :class=\"{\n 'hidden opacity-0': totalPerformedRequests > 0 && layout !== 'modal',\n }\">\n <div\n v-if=\"layout !== 'modal'\"\n class=\"scalar-version-number\">\n {{\n translate('apiClient.responseEmpty.version', { version: appVersion })\n }}\n <div class=\"mt-2\">\n <a\n href=\"https://github.com/scalar/scalar/issues/2669\"\n target=\"_blank\"\n >{{ translate('apiClient.responseEmpty.roadmap') }}</a\n >\n </div>\n </div>\n <a\n class=\"gitbook-show scalar-version-number\"\n href=\"https://www.scalar.com\"\n target=\"_blank\"\n >{{ translate('apiClient.responseEmpty.poweredByScalarcom') }}</a\n >\n <ScalarAsciiArt\n :art=\"Computer\"\n class=\"text-c-3\" />\n </div>\n\n <div\n class=\"text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm\">\n <button\n v-if=\"layout !== 'modal'\"\n class=\"flex items-center gap-1.5\"\n type=\"button\"\n @click=\"emits('openCommandPalette')\">\n {{ translate('apiClient.responseEmpty.getStarted')\n }}<ScalarHotkey\n hotkey=\"k\"\n :modifier=\"['default']\" />\n </button>\n <button\n v-if=\"layout === 'desktop'\"\n class=\"flex items-center gap-1.5\"\n type=\"button\"\n @click=\"emits('addRequest')\">\n {{ translate('apiClient.responseEmpty.newRequest')\n }}<ScalarHotkey hotkey=\"N\" />\n </button>\n <button\n class=\"flex items-center gap-1.5\"\n :disabled=\"executionDisabled\"\n type=\"button\"\n @click=\"emits('sendRequest')\">\n {{ translate('apiClient.responseEmpty.sendRequest')\n }}<ScalarHotkey hotkey=\"↵\" />\n </button>\n </div>\n </div>\n</template>\n<style scoped>\n.scalar-version-number {\n transform: skew(0deg, 13deg);\n width: 76px;\n height: 76px;\n position: absolute;\n margin-left: -36px;\n font-size: 8px;\n font-family: var(--scalar-font-code);\n line-height: 11px;\n margin-top: -113px;\n border-radius: 9px 9px 16px 12px;\n box-shadow: inset 2px 0px 0 2px var(--scalar-background-2);\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-transform: initial;\n text-decoration-color: var(--scalar-color-3);\n}\n.scalar-version-number a {\n font-weight: bold;\n font-weight: bold;\n background: var(--scalar-background-2);\n padding: 2px 4px;\n border-radius: 3px;\n text-decoration: none;\n border: 0.5px solid var(--scalar-border-color);\n}\n\n.gitbook-show {\n display: none;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBA,MAAM,QAAQ;EAMd,MAAM,EAAE,cAAc,gBAAgB;;GAGpC,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AAA,OAAA,OAAA,MAAA,WAAE,MAAK,aAAA;I,IACVE,gBAAAC,gBAAAC,MAAA,SAAA,CAAS,CAAA,qCAAA,CAAA,GAAA,CAAA,GACVC,YAA2BD,MAAA,YAAA,GAAA,EAAb,QAAO,IAAG,CAAA,C"}
@@ -1,9 +1,8 @@
1
- import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
2
1
  import ResponseLoadingOverlay_vue_vue_type_script_setup_true_lang_default from "./ResponseLoadingOverlay.vue_vue_type_script_setup_true_lang.js";
3
2
  /* empty css */
4
- //#region src/v2/blocks/response-block/components/ResponseLoadingOverlay.vue
3
+ import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ // src/v2/blocks/response-block/components/ResponseLoadingOverlay.vue
5
5
  var ResponseLoadingOverlay_default = /*#__PURE__*/ _plugin_vue_export_helper_default(ResponseLoadingOverlay_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-28d73262"]]);
6
- //#endregion
7
6
  export { ResponseLoadingOverlay_default as default };
8
7
 
9
8
  //# sourceMappingURL=ResponseLoadingOverlay.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseLoadingOverlay.vue.js","names":["_sfc_main"],"sources":["../../../../../src/v2/blocks/response-block/components/ResponseLoadingOverlay.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton } from '@scalar/components/button'\nimport { ScalarLoading, useLoadingState } from '@scalar/components/loading'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { onBeforeUnmount, onMounted, ref } from 'vue'\n\nimport { useLocalization } from '@/v2/features/localization'\n\nconst { eventBus } = defineProps<{\n /** Workspace event bus */\n eventBus: WorkspaceEventBus\n}>()\n\nconst { translate } = useLocalization()\n\nconst loader = useLoadingState()\nconst timeout = ref<ReturnType<typeof setTimeout>>()\n\nconst startLoading = () => {\n // Replace any pending delayed start so overlapping `hooks:on:request:sent` events\n // (rapid send, navigation, double submit) cannot leave an orphaned timer that\n // calls `loader.start()` after the matching request already completed.\n clearTimeout(timeout.value)\n timeout.value = setTimeout(() => loader.start(), 1000)\n}\n\nconst stopLoading = () => {\n clearTimeout(timeout.value)\n timeout.value = undefined\n void loader.clear()\n}\n\nonMounted(() => {\n eventBus.on('hooks:on:request:sent', startLoading)\n eventBus.on('hooks:on:request:complete', stopLoading)\n})\n\nonBeforeUnmount(() => {\n eventBus.off('hooks:on:request:sent', startLoading)\n eventBus.off('hooks:on:request:complete', stopLoading)\n stopLoading()\n})\n</script>\n<template>\n <Transition>\n <div\n v-if=\"loader.isActive\"\n class=\"bg-b-1 z-overlay absolute inset-0 flex flex-col items-center justify-center gap-6\">\n <ScalarLoading\n class=\"text-c-3\"\n :loader\n size=\"3xl\" />\n <ScalarButton\n variant=\"ghost\"\n @click=\"eventBus.emit('operation:cancel:request')\">\n {{ translate('apiClient.responseLoadingOverlay.cancel') }}\n </ScalarButton>\n </div>\n </Transition>\n</template>\n<style scoped>\n.v-enter-active {\n transition: opacity 0.5s ease;\n}\n\n.v-enter-from {\n opacity: 0;\n}\n</style>\n"],"mappings":""}
1
+ {"version":3,"file":"ResponseLoadingOverlay.vue.js","names":[],"sources":[],"mappings":""}
@@ -2,7 +2,7 @@ import { useLocalization } from "../../../features/localization/index.js";
2
2
  import { Transition, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, onBeforeUnmount, onMounted, openBlock, ref, toDisplayString, unref, withCtx } from "vue";
3
3
  import { ScalarButton } from "@scalar/components/button";
4
4
  import { ScalarLoading, useLoadingState } from "@scalar/components/loading";
5
- //#region src/v2/blocks/response-block/components/ResponseLoadingOverlay.vue?vue&type=script&setup=true&lang.ts
5
+ // src/v2/blocks/response-block/components/ResponseLoadingOverlay.vue?vue&type=script&setup=true&lang.ts
6
6
  var _hoisted_1 = {
7
7
  key: 0,
8
8
  class: "bg-b-1 z-overlay absolute inset-0 flex flex-col items-center justify-center gap-6"
@@ -50,7 +50,6 @@ var ResponseLoadingOverlay_vue_vue_type_script_setup_true_lang_default = /*@__PU
50
50
  };
51
51
  }
52
52
  });
53
- //#endregion
54
53
  export { ResponseLoadingOverlay_vue_vue_type_script_setup_true_lang_default as default };
55
54
 
56
55
  //# sourceMappingURL=ResponseLoadingOverlay.vue_vue_type_script_setup_true_lang.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseLoadingOverlay.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_Transition","_withCtx","_unref","_createElementBlock","_createVNode","_createTextVNode","_toDisplayString","_createCommentVNode"],"sources":["../../../../../src/v2/blocks/response-block/components/ResponseLoadingOverlay.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton } from '@scalar/components/button'\nimport { ScalarLoading, useLoadingState } from '@scalar/components/loading'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { onBeforeUnmount, onMounted, ref } from 'vue'\n\nimport { useLocalization } from '@/v2/features/localization'\n\nconst { eventBus } = defineProps<{\n /** Workspace event bus */\n eventBus: WorkspaceEventBus\n}>()\n\nconst { translate } = useLocalization()\n\nconst loader = useLoadingState()\nconst timeout = ref<ReturnType<typeof setTimeout>>()\n\nconst startLoading = () => {\n // Replace any pending delayed start so overlapping `hooks:on:request:sent` events\n // (rapid send, navigation, double submit) cannot leave an orphaned timer that\n // calls `loader.start()` after the matching request already completed.\n clearTimeout(timeout.value)\n timeout.value = setTimeout(() => loader.start(), 1000)\n}\n\nconst stopLoading = () => {\n clearTimeout(timeout.value)\n timeout.value = undefined\n void loader.clear()\n}\n\nonMounted(() => {\n eventBus.on('hooks:on:request:sent', startLoading)\n eventBus.on('hooks:on:request:complete', stopLoading)\n})\n\nonBeforeUnmount(() => {\n eventBus.off('hooks:on:request:sent', startLoading)\n eventBus.off('hooks:on:request:complete', stopLoading)\n stopLoading()\n})\n</script>\n<template>\n <Transition>\n <div\n v-if=\"loader.isActive\"\n class=\"bg-b-1 z-overlay absolute inset-0 flex flex-col items-center justify-center gap-6\">\n <ScalarLoading\n class=\"text-c-3\"\n :loader\n size=\"3xl\" />\n <ScalarButton\n variant=\"ghost\"\n @click=\"eventBus.emit('operation:cancel:request')\">\n {{ translate('apiClient.responseLoadingOverlay.cancel') }}\n </ScalarButton>\n </div>\n </Transition>\n</template>\n<style scoped>\n.v-enter-active {\n transition: opacity 0.5s ease;\n}\n\n.v-enter-from {\n opacity: 0;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;EAaA,MAAM,EAAE,cAAc,gBAAgB;EAEtC,MAAM,SAAS,gBAAgB;EAC/B,MAAM,UAAU,IAAmC;EAEnD,MAAM,qBAAqB;GAIzB,aAAa,QAAQ,KAAK;GAC1B,QAAQ,QAAQ,iBAAiB,OAAO,MAAM,GAAG,GAAI;EACvD;EAEA,MAAM,oBAAoB;GACxB,aAAa,QAAQ,KAAK;GAC1B,QAAQ,QAAQ,KAAA;GAChB,OAAY,MAAM;EACpB;EAEA,gBAAgB;GACd,QAAA,SAAS,GAAG,yBAAyB,YAAY;GACjD,QAAA,SAAS,GAAG,6BAA6B,WAAW;EACtD,CAAC;EAED,sBAAsB;GACpB,QAAA,SAAS,IAAI,yBAAyB,YAAY;GAClD,QAAA,SAAS,IAAI,6BAA6B,WAAW;GACrD,YAAY;EACd,CAAC;;GAGC,OAAAA,UAAA,GAAAC,YAcaC,YAAA,MAAA;IAbX,SAAAC,cAYM,CAXEC,MAAA,MAAA,CAAM,CAAC,YADfJ,UAAA,GAAAK,mBAYM,OAZN,YAYM,CATJC,YAGeF,MAAA,aAAA,GAAA;KAFb,OAAM;KACL,QAAAA,MAAA,MAAA;KACD,MAAK;I,yBACPE,YAIeF,MAAA,YAAA,GAAA;KAHb,SAAQ;KACP,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,QAAA,SAAS,KAAI,0BAAA;;KACrB,SAAAD,cAA0D,CAAvDI,gBAAAC,gBAAAJ,MAAA,SAAA,CAAS,CAAA,yCAAA,CAAA,GAAA,CAAA,C"}
1
+ {"version":3,"file":"ResponseLoadingOverlay.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createBlock","_Transition","_withCtx","_unref","_createElementBlock","_createVNode","_createTextVNode","_toDisplayString"],"sources":["../../../../../src/v2/blocks/response-block/components/ResponseLoadingOverlay.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton } from '@scalar/components/button'\nimport { ScalarLoading, useLoadingState } from '@scalar/components/loading'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { onBeforeUnmount, onMounted, ref } from 'vue'\n\nimport { useLocalization } from '@/v2/features/localization'\n\nconst { eventBus } = defineProps<{\n /** Workspace event bus */\n eventBus: WorkspaceEventBus\n}>()\n\nconst { translate } = useLocalization()\n\nconst loader = useLoadingState()\nconst timeout = ref<ReturnType<typeof setTimeout>>()\n\nconst startLoading = () => {\n // Replace any pending delayed start so overlapping `hooks:on:request:sent` events\n // (rapid send, navigation, double submit) cannot leave an orphaned timer that\n // calls `loader.start()` after the matching request already completed.\n clearTimeout(timeout.value)\n timeout.value = setTimeout(() => loader.start(), 1000)\n}\n\nconst stopLoading = () => {\n clearTimeout(timeout.value)\n timeout.value = undefined\n void loader.clear()\n}\n\nonMounted(() => {\n eventBus.on('hooks:on:request:sent', startLoading)\n eventBus.on('hooks:on:request:complete', stopLoading)\n})\n\nonBeforeUnmount(() => {\n eventBus.off('hooks:on:request:sent', startLoading)\n eventBus.off('hooks:on:request:complete', stopLoading)\n stopLoading()\n})\n</script>\n<template>\n <Transition>\n <div\n v-if=\"loader.isActive\"\n class=\"bg-b-1 z-overlay absolute inset-0 flex flex-col items-center justify-center gap-6\">\n <ScalarLoading\n class=\"text-c-3\"\n :loader\n size=\"3xl\" />\n <ScalarButton\n variant=\"ghost\"\n @click=\"eventBus.emit('operation:cancel:request')\">\n {{ translate('apiClient.responseLoadingOverlay.cancel') }}\n </ScalarButton>\n </div>\n </Transition>\n</template>\n<style scoped>\n.v-enter-active {\n transition: opacity 0.5s ease;\n}\n\n.v-enter-from {\n opacity: 0;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;EAaA,MAAM,EAAE,cAAc,gBAAgB;EAEtC,MAAM,SAAS,gBAAgB;EAC/B,MAAM,UAAU,IAAmC;EAEnD,MAAM,qBAAqB;GAIzB,aAAa,QAAQ,KAAK;GAC1B,QAAQ,QAAQ,iBAAiB,OAAO,MAAM,GAAG,GAAI;EACvD;EAEA,MAAM,oBAAoB;GACxB,aAAa,QAAQ,KAAK;GAC1B,QAAQ,QAAQ,KAAA;GAChB,OAAY,MAAM;EACpB;EAEA,gBAAgB;GACd,QAAA,SAAS,GAAG,yBAAyB,YAAY;GACjD,QAAA,SAAS,GAAG,6BAA6B,WAAW;EACtD,CAAC;EAED,sBAAsB;GACpB,QAAA,SAAS,IAAI,yBAAyB,YAAY;GAClD,QAAA,SAAS,IAAI,6BAA6B,WAAW;GACrD,YAAY;EACd,CAAC;;GAGC,OAAAA,UAAA,GAAAC,YAcaC,YAAA,MAAA;IAbX,SAAAC,cAYM,CAXEC,MAAA,MAAA,CAAM,CAAC,YADfJ,UAAA,GAAAK,mBAYM,OAZN,YAYM,CATJC,YAGeF,MAAA,aAAA,GAAA;KAFb,OAAM;KACL,QAAAA,MAAA,MAAA;KACD,MAAK;I,yBACPE,YAIeF,MAAA,YAAA,GAAA;KAHb,SAAQ;KACP,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,QAAA,SAAS,KAAI,0BAAA;;KACrB,SAAAD,cAA0D,CAAvDI,gBAAAC,gBAAAJ,MAAA,SAAA,CAAS,CAAA,yCAAA,CAAA,GAAA,CAAA,C"}
@@ -1,7 +1,6 @@
1
1
  import ResponseMetaInformation_vue_vue_type_script_setup_true_lang_default from "./ResponseMetaInformation.vue_vue_type_script_setup_true_lang.js";
2
- //#region src/v2/blocks/response-block/components/ResponseMetaInformation.vue
2
+ // src/v2/blocks/response-block/components/ResponseMetaInformation.vue
3
3
  var ResponseMetaInformation_default = ResponseMetaInformation_vue_vue_type_script_setup_true_lang_default;
4
- //#endregion
5
4
  export { ResponseMetaInformation_default as default };
6
5
 
7
6
  //# sourceMappingURL=ResponseMetaInformation.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseMetaInformation.vue.js","names":["_sfc_main"],"sources":["../../../../../src/v2/blocks/response-block/components/ResponseMetaInformation.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport {\n httpStatusCodes,\n type HttpStatusCode,\n} from '@scalar/helpers/http/http-status-codes'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport prettyMilliseconds from 'pretty-ms'\nimport { computed, onBeforeUnmount, onMounted, ref } from 'vue'\n\nimport HelpfulLink from '@/components/HelpfulLink.vue'\nimport type { ResponseInstance } from '@/v2/blocks/operation-block/helpers/send-request'\nimport { getContentLength } from '@/v2/blocks/response-block/helpers/get-content-length'\nimport { useLocalization } from '@/v2/features/localization'\n\nconst { response, eventBus } = defineProps<{\n /** Response */\n response: ResponseInstance\n /** Workspace event bus */\n eventBus: WorkspaceEventBus\n}>()\n\nconst { translate } = useLocalization()\n\nconst interval = ref<ReturnType<typeof setInterval>>()\nconst stopwatch = ref(0)\n\nconst stopStopwatch = () => {\n clearInterval(interval.value)\n interval.value = undefined\n stopwatch.value = 0\n}\n\nconst startStopwatch = () => {\n interval.value = setInterval(() => (stopwatch.value += 1000), 1000)\n}\n\nonMounted(() => {\n eventBus.on('hooks:on:request:sent', startStopwatch)\n eventBus.on('hooks:on:request:complete', stopStopwatch)\n})\n\nonBeforeUnmount(() => {\n eventBus.off('hooks:on:request:sent', startStopwatch)\n eventBus.off('hooks:on:request:complete', stopStopwatch)\n stopStopwatch()\n})\n\n/** Status text for the response */\nconst statusCodeInformation = computed((): HttpStatusCode | undefined => {\n const responseStatusCode = response?.status\n\n if (!responseStatusCode) {\n return undefined\n }\n\n return httpStatusCodes[responseStatusCode] ?? undefined\n})\n</script>\n<template>\n <div class=\"text-c-1 flex gap-1.5\">\n <span v-if=\"interval && stopwatch\">{{\n prettyMilliseconds(stopwatch)\n }}</span>\n <template v-else>\n <span>\n <span class=\"sr-only\">{{\n translate('apiClient.responseMetaInformation.duration')\n }}</span>\n {{ prettyMilliseconds(response.duration) }}\n </span>\n <span v-if=\"getContentLength(response)\">\n <span class=\"sr-only\">{{\n translate('apiClient.responseMetaInformation.size')\n }}</span>\n {{ getContentLength(response) }}\n </span>\n <template v-if=\"statusCodeInformation\">\n <span class=\"sr-only\">{{\n translate('apiClient.responseMetaInformation.status')\n }}</span>\n <HelpfulLink\n v-if=\"statusCodeInformation.url\"\n class=\"flex items-center gap-1.5\"\n :href=\"statusCodeInformation.url\">\n {{ response.status }} {{ statusCodeInformation.name }}\n <span\n class=\"block h-1.5 w-1.5 rounded-full\"\n :style=\"{ backgroundColor: statusCodeInformation.color }\" />\n </HelpfulLink>\n <span v-else>\n {{ response.status }} {{ statusCodeInformation.name }}\n <span\n class=\"block h-1.5 w-1.5 rounded-full\"\n :style=\"{ backgroundColor: statusCodeInformation.color }\" />\n </span>\n </template>\n </template>\n </div>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"ResponseMetaInformation.vue.js","names":[],"sources":[],"mappings":""}
@@ -1,10 +1,10 @@
1
- import { useLocalization } from "../../../features/localization/index.js";
2
1
  import HelpfulLink_default from "../../../../components/HelpfulLink.vue.js";
3
2
  import { getContentLength } from "../helpers/get-content-length.js";
3
+ import { useLocalization } from "../../../features/localization/index.js";
4
4
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, toDisplayString, unref, withCtx } from "vue";
5
5
  import { httpStatusCodes } from "@scalar/helpers/http/http-status-codes";
6
6
  import prettyMilliseconds from "pretty-ms";
7
- //#region src/v2/blocks/response-block/components/ResponseMetaInformation.vue?vue&type=script&setup=true&lang.ts
7
+ // src/v2/blocks/response-block/components/ResponseMetaInformation.vue?vue&type=script&setup=true&lang.ts
8
8
  var _hoisted_1 = { class: "text-c-1 flex gap-1.5" };
9
9
  var _hoisted_2 = { key: 0 };
10
10
  var _hoisted_3 = { class: "sr-only" };
@@ -67,7 +67,6 @@ var ResponseMetaInformation_vue_vue_type_script_setup_true_lang_default = /*@__P
67
67
  };
68
68
  }
69
69
  });
70
- //#endregion
71
70
  export { ResponseMetaInformation_vue_vue_type_script_setup_true_lang_default as default };
72
71
 
73
72
  //# sourceMappingURL=ResponseMetaInformation.vue_vue_type_script_setup_true_lang.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseMetaInformation.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_toDisplayString","_unref","_Fragment","_createElementVNode","_createTextVNode","_createCommentVNode","_createBlock","HelpfulLink","_withCtx","_normalizeStyle"],"sources":["../../../../../src/v2/blocks/response-block/components/ResponseMetaInformation.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport {\n httpStatusCodes,\n type HttpStatusCode,\n} from '@scalar/helpers/http/http-status-codes'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport prettyMilliseconds from 'pretty-ms'\nimport { computed, onBeforeUnmount, onMounted, ref } from 'vue'\n\nimport HelpfulLink from '@/components/HelpfulLink.vue'\nimport type { ResponseInstance } from '@/v2/blocks/operation-block/helpers/send-request'\nimport { getContentLength } from '@/v2/blocks/response-block/helpers/get-content-length'\nimport { useLocalization } from '@/v2/features/localization'\n\nconst { response, eventBus } = defineProps<{\n /** Response */\n response: ResponseInstance\n /** Workspace event bus */\n eventBus: WorkspaceEventBus\n}>()\n\nconst { translate } = useLocalization()\n\nconst interval = ref<ReturnType<typeof setInterval>>()\nconst stopwatch = ref(0)\n\nconst stopStopwatch = () => {\n clearInterval(interval.value)\n interval.value = undefined\n stopwatch.value = 0\n}\n\nconst startStopwatch = () => {\n interval.value = setInterval(() => (stopwatch.value += 1000), 1000)\n}\n\nonMounted(() => {\n eventBus.on('hooks:on:request:sent', startStopwatch)\n eventBus.on('hooks:on:request:complete', stopStopwatch)\n})\n\nonBeforeUnmount(() => {\n eventBus.off('hooks:on:request:sent', startStopwatch)\n eventBus.off('hooks:on:request:complete', stopStopwatch)\n stopStopwatch()\n})\n\n/** Status text for the response */\nconst statusCodeInformation = computed((): HttpStatusCode | undefined => {\n const responseStatusCode = response?.status\n\n if (!responseStatusCode) {\n return undefined\n }\n\n return httpStatusCodes[responseStatusCode] ?? undefined\n})\n</script>\n<template>\n <div class=\"text-c-1 flex gap-1.5\">\n <span v-if=\"interval && stopwatch\">{{\n prettyMilliseconds(stopwatch)\n }}</span>\n <template v-else>\n <span>\n <span class=\"sr-only\">{{\n translate('apiClient.responseMetaInformation.duration')\n }}</span>\n {{ prettyMilliseconds(response.duration) }}\n </span>\n <span v-if=\"getContentLength(response)\">\n <span class=\"sr-only\">{{\n translate('apiClient.responseMetaInformation.size')\n }}</span>\n {{ getContentLength(response) }}\n </span>\n <template v-if=\"statusCodeInformation\">\n <span class=\"sr-only\">{{\n translate('apiClient.responseMetaInformation.status')\n }}</span>\n <HelpfulLink\n v-if=\"statusCodeInformation.url\"\n class=\"flex items-center gap-1.5\"\n :href=\"statusCodeInformation.url\">\n {{ response.status }} {{ statusCodeInformation.name }}\n <span\n class=\"block h-1.5 w-1.5 rounded-full\"\n :style=\"{ backgroundColor: statusCodeInformation.color }\" />\n </HelpfulLink>\n <span v-else>\n {{ response.status }} {{ statusCodeInformation.name }}\n <span\n class=\"block h-1.5 w-1.5 rounded-full\"\n :style=\"{ backgroundColor: statusCodeInformation.color }\" />\n </span>\n </template>\n </template>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EAqBA,MAAM,EAAE,cAAc,gBAAgB;EAEtC,MAAM,WAAW,IAAoC;EACrD,MAAM,YAAY,IAAI,CAAC;EAEvB,MAAM,sBAAsB;GAC1B,cAAc,SAAS,KAAK;GAC5B,SAAS,QAAQ,KAAA;GACjB,UAAU,QAAQ;EACpB;EAEA,MAAM,uBAAuB;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,CAAS,CAAA,0CAAA,CAAA,GAAA,CAAA,GAGH,sBAAA,MAAsB,OAD9BH,UAAA,GAAAQ,YAQcC,qBAAA;;KANZ,OAAM;KACL,MAAM,sBAAA,MAAsB;;KAC7B,SAAAC,cAAqB,CAAlBJ,gBAAAJ,gBAAA,QAAA,SAAS,MAAM,IAAG,MAACA,gBAAG,sBAAA,MAAsB,IAAI,IAAG,KACtD,CAAA,GAAAG,mBAE8D,QAAA;MAD5D,OAAM;MACL,OAAKM,eAAA,EAAA,iBAAqB,sBAAA,MAAsB,MAAK,CAAA;;;I,oBAE1DX,UAAA,GAAAC,mBAKO,QAAA,YAAA,CAJFK,gBAAAJ,gBAAA,QAAA,SAAS,MAAM,IAAG,MAACA,gBAAG,sBAAA,MAAsB,IAAI,IAAG,KACtD,CAAA,GAAAG,mBAE8D,QAAA;KAD5D,OAAM;KACL,OAAKM,eAAA,EAAA,iBAAqB,sBAAA,MAAsB,MAAK,CAAA"}
1
+ {"version":3,"file":"ResponseMetaInformation.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_toDisplayString","_unref","_Fragment","_createElementVNode","_createTextVNode","_createBlock","HelpfulLink","_withCtx","_normalizeStyle"],"sources":["../../../../../src/v2/blocks/response-block/components/ResponseMetaInformation.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport {\n httpStatusCodes,\n type HttpStatusCode,\n} from '@scalar/helpers/http/http-status-codes'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport prettyMilliseconds from 'pretty-ms'\nimport { computed, onBeforeUnmount, onMounted, ref } from 'vue'\n\nimport HelpfulLink from '@/components/HelpfulLink.vue'\nimport type { ResponseInstance } from '@/v2/blocks/operation-block/helpers/send-request'\nimport { getContentLength } from '@/v2/blocks/response-block/helpers/get-content-length'\nimport { useLocalization } from '@/v2/features/localization'\n\nconst { response, eventBus } = defineProps<{\n /** Response */\n response: ResponseInstance\n /** Workspace event bus */\n eventBus: WorkspaceEventBus\n}>()\n\nconst { translate } = useLocalization()\n\nconst interval = ref<ReturnType<typeof setInterval>>()\nconst stopwatch = ref(0)\n\nconst stopStopwatch = () => {\n clearInterval(interval.value)\n interval.value = undefined\n stopwatch.value = 0\n}\n\nconst startStopwatch = () => {\n interval.value = setInterval(() => (stopwatch.value += 1000), 1000)\n}\n\nonMounted(() => {\n eventBus.on('hooks:on:request:sent', startStopwatch)\n eventBus.on('hooks:on:request:complete', stopStopwatch)\n})\n\nonBeforeUnmount(() => {\n eventBus.off('hooks:on:request:sent', startStopwatch)\n eventBus.off('hooks:on:request:complete', stopStopwatch)\n stopStopwatch()\n})\n\n/** Status text for the response */\nconst statusCodeInformation = computed((): HttpStatusCode | undefined => {\n const responseStatusCode = response?.status\n\n if (!responseStatusCode) {\n return undefined\n }\n\n return httpStatusCodes[responseStatusCode] ?? undefined\n})\n</script>\n<template>\n <div class=\"text-c-1 flex gap-1.5\">\n <span v-if=\"interval && stopwatch\">{{\n prettyMilliseconds(stopwatch)\n }}</span>\n <template v-else>\n <span>\n <span class=\"sr-only\">{{\n translate('apiClient.responseMetaInformation.duration')\n }}</span>\n {{ prettyMilliseconds(response.duration) }}\n </span>\n <span v-if=\"getContentLength(response)\">\n <span class=\"sr-only\">{{\n translate('apiClient.responseMetaInformation.size')\n }}</span>\n {{ getContentLength(response) }}\n </span>\n <template v-if=\"statusCodeInformation\">\n <span class=\"sr-only\">{{\n translate('apiClient.responseMetaInformation.status')\n }}</span>\n <HelpfulLink\n v-if=\"statusCodeInformation.url\"\n class=\"flex items-center gap-1.5\"\n :href=\"statusCodeInformation.url\">\n {{ response.status }} {{ statusCodeInformation.name }}\n <span\n class=\"block h-1.5 w-1.5 rounded-full\"\n :style=\"{ backgroundColor: statusCodeInformation.color }\" />\n </HelpfulLink>\n <span v-else>\n {{ response.status }} {{ statusCodeInformation.name }}\n <span\n class=\"block h-1.5 w-1.5 rounded-full\"\n :style=\"{ backgroundColor: statusCodeInformation.color }\" />\n </span>\n </template>\n </template>\n </div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,SAAA,CAAS,CAAA,wCAAA,CAAA,GAAA,CAAA,GACFG,gBAAA,MACTJ,gBAAGC,MAAA,gBAAA,CAAgB,CAAC,QAAA,QAAQ,CAAA,GAAA,CAAA,C;IAEd,sBAAA,SAAhBH,UAAA,GAAAC,mBAmBWG,UAAA,EAAA,KAAA,EAAA,GAAA,CAlBTC,mBAES,QAFT,YAESH,gBADPC,MAAA,SAAA,CAAS,CAAA,0CAAA,CAAA,GAAA,CAAA,GAGH,sBAAA,MAAsB,OAD9BH,UAAA,GAAAO,YAQcC,qBAAA;;KANZ,OAAM;KACL,MAAM,sBAAA,MAAsB;;KAC7B,SAAAC,cAAqB,CAAlBH,gBAAAJ,gBAAA,QAAA,SAAS,MAAM,IAAG,MAACA,gBAAG,sBAAA,MAAsB,IAAI,IAAG,KACtD,CAAA,GAAAG,mBAE8D,QAAA;MAD5D,OAAM;MACL,OAAKK,eAAA,EAAA,iBAAqB,sBAAA,MAAsB,MAAK,CAAA;;;I,oBAE1DV,UAAA,GAAAC,mBAKO,QAAA,YAAA,CAJFK,gBAAAJ,gBAAA,QAAA,SAAS,MAAM,IAAG,MAACA,gBAAG,sBAAA,MAAsB,IAAI,IAAG,KACtD,CAAA,GAAAG,mBAE8D,QAAA;KAD5D,OAAM;KACL,OAAKK,eAAA,EAAA,iBAAqB,sBAAA,MAAsB,MAAK,CAAA"}
@@ -1,4 +1,4 @@
1
- //#region src/v2/blocks/response-block/helpers/extract-filename.ts
1
+ // src/v2/blocks/response-block/helpers/extract-filename.ts
2
2
  /**
3
3
  * Safely decode a URI component, returning the original string if decoding fails
4
4
  */
@@ -20,7 +20,6 @@ function extractFilename(contentDisposition) {
20
20
  }
21
21
  return filename;
22
22
  }
23
- //#endregion
24
23
  export { extractFilename };
25
24
 
26
25
  //# sourceMappingURL=extract-filename.js.map
@@ -1,12 +1,11 @@
1
1
  import { formatBytes } from "@scalar/helpers/formatters/format-bytes";
2
- //#region src/v2/blocks/response-block/helpers/get-content-length.ts
2
+ // src/v2/blocks/response-block/helpers/get-content-length.ts
3
3
  /** Extract content length from headers */
4
4
  var getContentLength = (response) => {
5
5
  const contentLength = Number.parseInt(response.headers?.["Content-Length"] || response.headers?.["content-length"] || "0", 10);
6
6
  if (isNaN(contentLength) || contentLength <= 0) return;
7
7
  return formatBytes(contentLength);
8
8
  };
9
- //#endregion
10
9
  export { getContentLength };
11
10
 
12
11
  //# sourceMappingURL=get-content-length.js.map
@@ -1,4 +1,4 @@
1
- //#region src/v2/blocks/response-block/helpers/media-types.ts
1
+ // src/v2/blocks/response-block/helpers/media-types.ts
2
2
  /** Media Type (MIME Type) Definitions */
3
3
  var mediaTypes = {
4
4
  "application/epub+zip": { extension: ".epub" },
@@ -254,7 +254,6 @@ function getMediaTypeConfig(type) {
254
254
  function isTextMediaType(type) {
255
255
  return !!getMediaTypeConfig(type)?.raw;
256
256
  }
257
- //#endregion
258
257
  export { getMediaTypeConfig, isTextMediaType, textMediaTypes };
259
258
 
260
259
  //# sourceMappingURL=media-types.js.map
@@ -1,4 +1,4 @@
1
- //#region src/v2/blocks/response-block/helpers/parse-set-cookie.ts
1
+ // src/v2/blocks/response-block/helpers/parse-set-cookie.ts
2
2
  /**
3
3
  * Parse a Set-Cookie header value into name and value.
4
4
  *
@@ -24,7 +24,6 @@ var parseSetCookie = (setCookieValue) => {
24
24
  value
25
25
  };
26
26
  };
27
- //#endregion
28
27
  export { parseSetCookie };
29
28
 
30
29
  //# sourceMappingURL=parse-set-cookie.js.map
@@ -1,5 +1,5 @@
1
1
  import { applyEdits, format } from "jsonc-parser";
2
- //#region src/v2/blocks/response-block/helpers/prettify-jsonc-string.ts
2
+ // src/v2/blocks/response-block/helpers/prettify-jsonc-string.ts
3
3
  var jsoncFormatOptions = {
4
4
  tabSize: 2,
5
5
  insertSpaces: true,
@@ -16,7 +16,6 @@ function prettifyJsoncString(content) {
16
16
  } catch {}
17
17
  return content;
18
18
  }
19
- //#endregion
20
19
  export { prettifyJsoncString };
21
20
 
22
21
  //# sourceMappingURL=prettify-jsonc-string.js.map
@@ -1,5 +1,5 @@
1
1
  import { prettifyJsoncString } from "./prettify-jsonc-string.js";
2
- //#region src/v2/blocks/response-block/helpers/prettify-ndjson.ts
2
+ // src/v2/blocks/response-block/helpers/prettify-ndjson.ts
3
3
  /**
4
4
  * Pretty-print newline-delimited JSON (NDJSON) for preview.
5
5
  *
@@ -13,7 +13,6 @@ import { prettifyJsoncString } from "./prettify-jsonc-string.js";
13
13
  function prettifyNdjson(content) {
14
14
  return content.split("\n").map((line) => line.trim()).filter((line) => line.length > 0).map((line) => prettifyJsoncString(line)).join("\n\n");
15
15
  }
16
- //#endregion
17
16
  export { prettifyNdjson };
18
17
 
19
18
  //# sourceMappingURL=prettify-ndjson.js.map
@@ -1,6 +1,6 @@
1
1
  import { resolveResponseMimeType } from "./resolve-response-content-type.js";
2
2
  import { extractFilename } from "./extract-filename.js";
3
- //#region src/v2/blocks/response-block/helpers/process-response-body.ts
3
+ // src/v2/blocks/response-block/helpers/process-response-body.ts
4
4
  var isBlob = (b) => b instanceof Blob;
5
5
  /**
6
6
  * Processes the response body of an HTTP request.
@@ -20,7 +20,6 @@ function processResponseBody({ data, headers }) {
20
20
  })()
21
21
  };
22
22
  }
23
- //#endregion
24
23
  export { processResponseBody };
25
24
 
26
25
  //# sourceMappingURL=process-response-body.js.map
@@ -1,4 +1,4 @@
1
- //#region src/v2/blocks/response-block/helpers/resolve-response-body-handler.ts
1
+ // src/v2/blocks/response-block/helpers/resolve-response-body-handler.ts
2
2
  /**
3
3
  * Find the first plugin response body handler that matches a given MIME type.
4
4
  * Plugins are checked in order — first match wins, allowing users to override native behavior.
@@ -38,7 +38,6 @@ var matchesMimeType = (actual, patterns) => {
38
38
  }
39
39
  return false;
40
40
  };
41
- //#endregion
42
41
  export { resolveResponseBodyHandler };
43
42
 
44
43
  //# sourceMappingURL=resolve-response-body-handler.js.map
@@ -1,5 +1,5 @@
1
1
  import { parseMimeType } from "@scalar/helpers/http/mime-type";
2
- //#region src/v2/blocks/response-block/helpers/resolve-response-content-type.ts
2
+ // src/v2/blocks/response-block/helpers/resolve-response-content-type.ts
3
3
  /**
4
4
  * Browser fetch uses text/plain;charset=UTF-8 as the default body type
5
5
  * when the response does not include a Content-Type header.
@@ -13,7 +13,6 @@ var resolveResponseContentType = (contentType) => contentType ?? "text/plain;cha
13
13
  * Parse the effective response MIME type using the fallback content type.
14
14
  */
15
15
  var resolveResponseMimeType = (contentType) => parseMimeType(resolveResponseContentType(contentType));
16
- //#endregion
17
16
  export { DEFAULT_RESPONSE_CONTENT_TYPE, resolveResponseContentType, resolveResponseMimeType };
18
17
 
19
18
  //# sourceMappingURL=resolve-response-content-type.js.map
@@ -1,5 +1,5 @@
1
1
  import { parseMimeType } from "@scalar/helpers/http/mime-type";
2
- //#region src/v2/blocks/response-block/helpers/response-stream-multipart.ts
2
+ // src/v2/blocks/response-block/helpers/response-stream-multipart.ts
3
3
  var MAX_PART_SIZE = 8388608;
4
4
  var MAX_NESTING = 8;
5
5
  /** Preserve every byte until MIME boundaries identify a complete part. */
@@ -94,7 +94,6 @@ var createMultipartParser = (contentType, emit, nesting = 0, prefix = "") => {
94
94
  finish: () => drain(true)
95
95
  };
96
96
  };
97
- //#endregion
98
97
  export { createMultipartParser };
99
98
 
100
99
  //# sourceMappingURL=response-stream-multipart.js.map
@@ -2,7 +2,7 @@ import { createMultipartParser } from "./response-stream-multipart.js";
2
2
  import { parseMimeType } from "@scalar/helpers/http/mime-type";
3
3
  import { isStreamingContentType } from "@scalar/helpers/http/is-streaming-content-type";
4
4
  import { getUtf8ByteLength } from "@scalar/helpers/string/get-utf8-byte-length";
5
- //#region src/v2/blocks/response-block/helpers/response-stream.ts
5
+ // src/v2/blocks/response-block/helpers/response-stream.ts
6
6
  /** Only opt recognized streaming media types into the reader path. */
7
7
  var getResponseStreamFormat = (contentType) => {
8
8
  if (!isStreamingContentType(contentType)) return;
@@ -91,7 +91,6 @@ var createResponseStreamParser = (contentType, emit) => {
91
91
  }
92
92
  };
93
93
  };
94
- //#endregion
95
94
  export { createResponseStreamParser, getResponseStreamFormat };
96
95
 
97
96
  //# sourceMappingURL=response-stream.js.map
@@ -1,9 +1,8 @@
1
- import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
2
1
  import AddressBar_vue_vue_type_script_setup_true_lang_default from "./AddressBar.vue_vue_type_script_setup_true_lang.js";
3
2
  /* empty css */
4
- //#region src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue
3
+ import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ // src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue
5
5
  var AddressBar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(AddressBar_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-b5b0a654"]]);
6
- //#endregion
7
6
  export { AddressBar_default as default };
8
7
 
9
8
  //# sourceMappingURL=AddressBar.vue.js.map