@scalar/api-client 2.43.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1540) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +119 -70
  3. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +3 -3
  4. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  5. package/dist/components/HttpMethod/HttpMethod.vue.js +1 -1
  6. package/dist/components/HttpMethod/HttpMethod.vue.js.map +1 -1
  7. package/dist/components/HttpMethod/HttpMethod.vue.script.js +3 -2
  8. package/dist/components/HttpMethod/HttpMethod.vue.script.js.map +1 -1
  9. package/dist/components/IconSelector.vue.script.js +1 -1
  10. package/dist/components/Server/index.d.ts +0 -2
  11. package/dist/components/Server/index.d.ts.map +1 -1
  12. package/dist/components/Server/index.js +1 -3
  13. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +2 -2
  14. package/dist/hooks/{useFileDialog.d.ts → use-file-dialog.d.ts} +3 -2
  15. package/dist/hooks/use-file-dialog.d.ts.map +1 -0
  16. package/dist/hooks/{useFileDialog.js → use-file-dialog.js} +2 -2
  17. package/dist/hooks/use-file-dialog.js.map +1 -0
  18. package/dist/index.d.ts +0 -3
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +0 -5
  21. package/dist/monacoeditorwork/editor.worker.bundle.js +222 -366
  22. package/dist/monacoeditorwork/json.worker.bundle.js +388 -501
  23. package/dist/monacoeditorwork/yaml.worker.bundle.js +14567 -22937
  24. package/dist/plugins/posthog/index.d.ts +23 -0
  25. package/dist/plugins/posthog/index.d.ts.map +1 -0
  26. package/dist/plugins/posthog/index.js +58 -0
  27. package/dist/plugins/posthog/index.js.map +1 -0
  28. package/dist/style.css +6093 -7689
  29. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +4 -1
  30. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  31. package/dist/v2/blocks/operation-block/OperationBlock.vue.js.map +1 -1
  32. package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js +27 -22
  33. package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js.map +1 -1
  34. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +1 -1
  35. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  36. package/dist/v2/blocks/operation-block/components/Header.vue.js +1 -1
  37. package/dist/v2/blocks/operation-block/components/Header.vue.js.map +1 -1
  38. package/dist/v2/blocks/operation-block/components/Header.vue.script.js +2 -2
  39. package/dist/v2/blocks/operation-block/components/Header.vue.script.js.map +1 -1
  40. package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.d.ts.map +1 -0
  41. package/dist/{components → v2/blocks/operation-block/components}/OpenApiClientButton.vue.js +3 -3
  42. package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.js.map +1 -0
  43. package/dist/{components → v2/blocks/operation-block/components}/OpenApiClientButton.vue.script.js +6 -7
  44. package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.script.js.map +1 -0
  45. package/dist/v2/blocks/operation-block/helpers/decode-buffer.d.ts +5 -2
  46. package/dist/v2/blocks/operation-block/helpers/decode-buffer.d.ts.map +1 -1
  47. package/dist/v2/blocks/operation-block/helpers/decode-buffer.js +8 -5
  48. package/dist/v2/blocks/operation-block/helpers/decode-buffer.js.map +1 -1
  49. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.d.ts +8 -9
  50. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.d.ts.map +1 -1
  51. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.js +8 -10
  52. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.js.map +1 -1
  53. package/dist/v2/blocks/operation-block/helpers/response-cache.d.ts +3 -2
  54. package/dist/v2/blocks/operation-block/helpers/response-cache.d.ts.map +1 -1
  55. package/dist/v2/blocks/operation-block/helpers/response-cache.js.map +1 -1
  56. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +8 -4
  57. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts.map +1 -1
  58. package/dist/v2/blocks/operation-block/helpers/send-request.js +21 -14
  59. package/dist/v2/blocks/operation-block/helpers/send-request.js.map +1 -1
  60. package/dist/v2/blocks/operation-block/index.d.ts +1 -0
  61. package/dist/v2/blocks/operation-block/index.d.ts.map +1 -1
  62. package/dist/v2/blocks/operation-block/index.js +2 -1
  63. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  64. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +1 -1
  65. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js.map +1 -1
  66. package/dist/{views/Components/CodeSnippet → v2/blocks/operation-code-sample}/helpers/get-snippet.d.ts +1 -1
  67. package/dist/v2/blocks/operation-code-sample/helpers/get-snippet.d.ts.map +1 -0
  68. package/dist/{views/Components/CodeSnippet → v2/blocks/operation-code-sample}/helpers/get-snippet.js +2 -3
  69. package/dist/v2/blocks/operation-code-sample/helpers/get-snippet.js.map +1 -0
  70. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js +1 -1
  71. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +4 -1
  72. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  73. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  74. package/dist/v2/blocks/request-block/RequestBlock.vue.js.map +1 -1
  75. package/dist/v2/blocks/request-block/RequestBlock.vue.script.js +5 -2
  76. package/dist/v2/blocks/request-block/RequestBlock.vue.script.js.map +1 -1
  77. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +1 -1
  78. package/dist/v2/blocks/request-block/components/RequestBody.vue.js.map +1 -1
  79. package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js +2 -2
  80. package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js.map +1 -1
  81. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js.map +1 -1
  82. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.script.js +1 -1
  83. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.script.js.map +1 -1
  84. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
  85. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  86. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +6 -6
  87. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  88. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -1
  89. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +2 -2
  90. package/dist/v2/blocks/request-block/helpers/get-default-headers.js.map +1 -1
  91. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +5 -4
  92. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
  93. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +1 -1
  94. package/dist/v2/blocks/response-block/ResponseBlock.vue.js.map +1 -1
  95. package/dist/v2/blocks/response-block/ResponseBlock.vue.script.js +13 -7
  96. package/dist/v2/blocks/response-block/ResponseBlock.vue.script.js.map +1 -1
  97. package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -1
  98. package/dist/v2/blocks/response-block/components/Headers.vue.js.map +1 -1
  99. package/dist/v2/blocks/response-block/components/Headers.vue.script.js +11 -13
  100. package/dist/v2/blocks/response-block/components/Headers.vue.script.js.map +1 -1
  101. package/dist/v2/blocks/response-block/components/ResponseBody.vue.d.ts +2 -0
  102. package/dist/v2/blocks/response-block/components/ResponseBody.vue.d.ts.map +1 -1
  103. package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +1 -1
  104. package/dist/v2/blocks/response-block/components/ResponseBody.vue.js.map +1 -1
  105. package/dist/v2/blocks/response-block/components/ResponseBody.vue.script.js +35 -15
  106. package/dist/v2/blocks/response-block/components/ResponseBody.vue.script.js.map +1 -1
  107. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js.map +1 -1
  108. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.script.js +1 -1
  109. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.script.js.map +1 -1
  110. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts +1 -1
  111. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -1
  112. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js +1 -1
  113. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js.map +1 -1
  114. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.script.js.map +1 -1
  115. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.script.js +1 -1
  116. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -1
  117. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.js.map +1 -1
  118. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.script.js +2 -1
  119. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.script.js.map +1 -1
  120. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.d.ts.map +1 -1
  121. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js.map +1 -1
  122. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.script.js +9 -9
  123. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.script.js.map +1 -1
  124. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts +3 -3
  125. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
  126. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
  127. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js.map +1 -1
  128. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.script.js.map +1 -1
  129. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts +1 -1
  130. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -1
  131. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js.map +1 -1
  132. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.script.js +1 -1
  133. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.script.js.map +1 -1
  134. package/dist/v2/blocks/response-block/helpers/get-content-length.d.ts +1 -1
  135. package/dist/v2/blocks/response-block/helpers/get-content-length.d.ts.map +1 -1
  136. package/dist/v2/blocks/response-block/helpers/get-content-length.js.map +1 -1
  137. package/dist/v2/blocks/response-block/helpers/media-types.d.ts +1 -1
  138. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
  139. package/dist/v2/blocks/response-block/helpers/media-types.js +10 -1
  140. package/dist/v2/blocks/response-block/helpers/media-types.js.map +1 -1
  141. package/dist/v2/blocks/response-block/helpers/process-response-body.d.ts +1 -2
  142. package/dist/v2/blocks/response-block/helpers/process-response-body.d.ts.map +1 -1
  143. package/dist/v2/blocks/response-block/helpers/process-response-body.js +2 -3
  144. package/dist/v2/blocks/response-block/helpers/process-response-body.js.map +1 -1
  145. package/dist/v2/blocks/response-block/helpers/resolve-response-body-handler.d.ts +11 -0
  146. package/dist/v2/blocks/response-block/helpers/resolve-response-body-handler.d.ts.map +1 -0
  147. package/dist/v2/blocks/response-block/helpers/resolve-response-body-handler.js +44 -0
  148. package/dist/v2/blocks/response-block/helpers/resolve-response-body-handler.js.map +1 -0
  149. package/dist/v2/blocks/response-block/helpers/resolve-response-content-type.d.ts +14 -0
  150. package/dist/v2/blocks/response-block/helpers/resolve-response-content-type.d.ts.map +1 -0
  151. package/dist/v2/blocks/response-block/helpers/resolve-response-content-type.js +13 -0
  152. package/dist/v2/blocks/response-block/helpers/resolve-response-content-type.js.map +1 -0
  153. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +2 -2
  154. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  155. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
  156. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js.map +1 -1
  157. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js +8 -3
  158. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js.map +1 -1
  159. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +1 -1
  160. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js.map +1 -1
  161. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.script.js +2 -2
  162. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.script.js.map +1 -1
  163. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +3 -0
  164. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  165. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js.map +1 -1
  166. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.script.js +4 -1
  167. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.script.js.map +1 -1
  168. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +2 -2
  169. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +31 -6
  170. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  171. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js.map +1 -1
  172. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js +6 -8
  173. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js.map +1 -1
  174. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts.map +1 -1
  175. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +1 -1
  176. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js.map +1 -1
  177. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js +5 -5
  178. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js.map +1 -1
  179. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js.map +1 -1
  180. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js +3 -3
  181. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js.map +1 -1
  182. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js.map +1 -1
  183. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.script.js +1 -1
  184. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.script.js.map +1 -1
  185. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +3 -0
  186. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  187. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js.map +1 -1
  188. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js +6 -3
  189. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js.map +1 -1
  190. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
  191. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +3 -0
  192. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  193. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js.map +1 -1
  194. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js +4 -1
  195. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js.map +1 -1
  196. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +1 -1
  197. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts.map +1 -1
  198. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js.map +1 -1
  199. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +1 -1
  200. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  201. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +3 -3
  202. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js.map +1 -1
  203. package/dist/v2/blocks/scalar-auth-selector-block/helpers/resolve-default-oauth2-redirect-url.d.ts +11 -0
  204. package/dist/v2/blocks/scalar-auth-selector-block/helpers/resolve-default-oauth2-redirect-url.d.ts.map +1 -0
  205. package/dist/v2/blocks/scalar-auth-selector-block/helpers/resolve-default-oauth2-redirect-url.js +18 -0
  206. package/dist/v2/blocks/scalar-auth-selector-block/helpers/resolve-default-oauth2-redirect-url.js.map +1 -0
  207. package/dist/v2/components/code-input/CodeInput.vue.d.ts +4 -3
  208. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  209. package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
  210. package/dist/v2/components/code-input/CodeInput.vue.js.map +1 -1
  211. package/dist/v2/components/code-input/CodeInput.vue.script.js +8 -0
  212. package/dist/v2/components/code-input/CodeInput.vue.script.js.map +1 -1
  213. package/dist/{views/Collection/CollectionNavigation.vue.d.ts → v2/components/code-input/PillTooltipHost.vue.d.ts} +3 -2
  214. package/dist/v2/components/code-input/PillTooltipHost.vue.d.ts.map +1 -0
  215. package/dist/v2/components/code-input/PillTooltipHost.vue.js +7 -0
  216. package/dist/v2/components/code-input/PillTooltipHost.vue.js.map +1 -0
  217. package/dist/v2/components/code-input/PillTooltipHost.vue.script.js +40 -0
  218. package/dist/v2/components/code-input/PillTooltipHost.vue.script.js.map +1 -0
  219. package/dist/v2/components/code-input/code-variable-widget.d.ts +1 -0
  220. package/dist/v2/components/code-input/code-variable-widget.d.ts.map +1 -1
  221. package/dist/v2/components/code-input/code-variable-widget.js +33 -20
  222. package/dist/v2/components/code-input/code-variable-widget.js.map +1 -1
  223. package/dist/v2/components/code-input/pill-context.d.ts +11 -0
  224. package/dist/v2/components/code-input/pill-context.d.ts.map +1 -0
  225. package/dist/v2/components/data-table/DataTableInput.vue.d.ts +3 -3
  226. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
  227. package/dist/v2/components/layout/CollapsibleSection.vue.d.ts.map +1 -1
  228. package/dist/v2/components/layout/CollapsibleSection.vue.js.map +1 -1
  229. package/dist/v2/components/layout/CollapsibleSection.vue.script.js +5 -2
  230. package/dist/v2/components/layout/CollapsibleSection.vue.script.js.map +1 -1
  231. package/dist/v2/components/modals/DeleteModal.vue.d.ts +2 -2
  232. package/dist/v2/components/modals/ModalClientContainer.vue.d.ts +2 -2
  233. package/dist/v2/components/server/ServerDropdown.vue.d.ts +1 -1
  234. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
  235. package/dist/v2/components/server/ServerDropdown.vue.js.map +1 -1
  236. package/dist/v2/components/server/ServerDropdown.vue.script.js.map +1 -1
  237. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  238. package/dist/v2/components/sidebar/Sidebar.vue.js.map +1 -1
  239. package/dist/v2/components/sidebar/Sidebar.vue.script.js +1 -1
  240. package/dist/v2/components/sidebar/Sidebar.vue.script.js.map +1 -1
  241. package/dist/v2/constants.js +1 -1
  242. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  243. package/dist/v2/features/app/App.vue.js.map +1 -1
  244. package/dist/v2/features/app/App.vue.script.js +16 -4
  245. package/dist/v2/features/app/App.vue.script.js.map +1 -1
  246. package/dist/v2/features/app/app-state.js +6 -6
  247. package/dist/v2/features/app/components/AppSidebar.vue.script.js +2 -2
  248. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts.map +1 -1
  249. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js.map +1 -1
  250. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js +4 -4
  251. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js.map +1 -1
  252. package/dist/v2/features/app/components/DesktopTab.vue.d.ts +4 -4
  253. package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +1 -1
  254. package/dist/v2/features/app/components/DesktopTab.vue.js +1 -1
  255. package/dist/v2/features/app/components/DesktopTab.vue.js.map +1 -1
  256. package/dist/v2/features/app/components/DesktopTab.vue.script.js +2 -2
  257. package/dist/v2/features/app/components/DesktopTab.vue.script.js.map +1 -1
  258. package/dist/v2/features/app/helpers/create-temp-operation.d.ts.map +1 -1
  259. package/dist/v2/features/app/helpers/create-temp-operation.js +4 -1
  260. package/dist/v2/features/app/helpers/create-temp-operation.js.map +1 -1
  261. package/dist/v2/features/app/helpers/routes.d.ts +2 -2
  262. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  263. package/dist/v2/features/app/helpers/routes.js +11 -5
  264. package/dist/v2/features/app/helpers/routes.js.map +1 -1
  265. package/dist/v2/features/app/index.js +2 -2
  266. package/dist/v2/features/collection/DocumentCollection.vue.script.js +1 -1
  267. package/dist/v2/features/collection/OperationCollection.vue.script.js +1 -1
  268. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js +1 -1
  269. package/dist/v2/features/collection/components/Runner/components/Runner.vue.d.ts +16 -0
  270. package/dist/v2/features/collection/components/Runner/components/Runner.vue.d.ts.map +1 -0
  271. package/dist/v2/features/collection/components/Runner/components/Runner.vue.js +7 -0
  272. package/dist/v2/features/collection/components/Runner/components/Runner.vue.js.map +1 -0
  273. package/dist/v2/features/collection/components/Runner/components/Runner.vue.script.js +220 -0
  274. package/dist/v2/features/collection/components/Runner/components/Runner.vue.script.js.map +1 -0
  275. package/dist/{components/Sidebar/SidebarButton.vue.d.ts → v2/features/collection/components/Runner/components/RunnerCard.vue.d.ts} +8 -6
  276. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.d.ts.map +1 -0
  277. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.js +7 -0
  278. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.js.map +1 -0
  279. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.script.js +45 -0
  280. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.script.js.map +1 -0
  281. package/dist/{components/Form/LabelInput.vue.d.ts → v2/features/collection/components/Runner/components/RunnerOrderItem.vue.d.ts} +12 -8
  282. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.d.ts.map +1 -0
  283. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.js +7 -0
  284. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.js.map +1 -0
  285. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.script.js +73 -0
  286. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.script.js.map +1 -0
  287. package/dist/{components/AddressBar/AddressBarHistory.vue.d.ts → v2/features/collection/components/Runner/components/RunnerResultRow.vue.d.ts} +11 -5
  288. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.d.ts.map +1 -0
  289. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.js +7 -0
  290. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.js.map +1 -0
  291. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.script.js +124 -0
  292. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.script.js.map +1 -0
  293. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.d.ts +17 -0
  294. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.d.ts.map +1 -0
  295. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.js +7 -0
  296. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.js.map +1 -0
  297. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.script.js +126 -0
  298. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.script.js.map +1 -0
  299. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.d.ts +18 -0
  300. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.d.ts.map +1 -0
  301. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.js +7 -0
  302. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.js.map +1 -0
  303. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.script.js +180 -0
  304. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.script.js.map +1 -0
  305. package/dist/{components/Sidebar/Actions/EditSidebarListElement.vue.d.ts → v2/features/collection/components/Runner/components/RunnerTreeExample.vue.d.ts} +6 -5
  306. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.d.ts.map +1 -0
  307. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.js +7 -0
  308. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.js.map +1 -0
  309. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.script.js +44 -0
  310. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.script.js.map +1 -0
  311. package/dist/{components/DataTable/DataTableText.vue.d.ts → v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.d.ts} +6 -4
  312. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.d.ts.map +1 -0
  313. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.js +7 -0
  314. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.js.map +1 -0
  315. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.script.js +53 -0
  316. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.script.js.map +1 -0
  317. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.d.ts +23 -0
  318. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.d.ts.map +1 -0
  319. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.js +7 -0
  320. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.js.map +1 -0
  321. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.script.js +75 -0
  322. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.script.js.map +1 -0
  323. package/dist/v2/features/collection/components/Runner/hooks/index.d.ts +3 -0
  324. package/dist/v2/features/collection/components/Runner/hooks/index.d.ts.map +1 -0
  325. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.d.ts +73 -0
  326. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.d.ts.map +1 -0
  327. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.js +190 -0
  328. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.js.map +1 -0
  329. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.d.ts +46 -0
  330. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.d.ts.map +1 -0
  331. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.js +114 -0
  332. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.js.map +1 -0
  333. package/dist/v2/features/collection/components/Runner/index.d.ts +2 -0
  334. package/dist/v2/features/collection/components/Runner/index.d.ts.map +1 -0
  335. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -1
  336. package/dist/v2/features/collection/components/Tabs.vue.js.map +1 -1
  337. package/dist/v2/features/collection/components/Tabs.vue.script.js +3 -2
  338. package/dist/v2/features/collection/components/Tabs.vue.script.js.map +1 -1
  339. package/dist/v2/features/command-palette/TheCommandPalette.vue.script.js +2 -2
  340. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -1
  341. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js.map +1 -1
  342. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js +4 -4
  343. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js.map +1 -1
  344. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.d.ts.map +1 -1
  345. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.js.map +1 -1
  346. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.script.js +26 -21
  347. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.script.js.map +1 -1
  348. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.script.js +1 -1
  349. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.js +1 -1
  350. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.js.map +1 -1
  351. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.script.js +1 -1
  352. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.script.js.map +1 -1
  353. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +1 -1
  354. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js.map +1 -1
  355. package/dist/v2/features/command-palette/helpers/get-postman-convert-options.d.ts +14 -0
  356. package/dist/v2/features/command-palette/helpers/get-postman-convert-options.d.ts.map +1 -0
  357. package/dist/v2/features/command-palette/helpers/get-postman-convert-options.js +19 -0
  358. package/dist/v2/features/command-palette/helpers/get-postman-convert-options.js.map +1 -0
  359. package/dist/v2/features/command-palette/helpers/get-postman-document-details.js +1 -1
  360. package/dist/v2/features/command-palette/helpers/get-postman-document-details.js.map +1 -1
  361. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts.map +1 -1
  362. package/dist/v2/features/command-palette/helpers/load-document-from-source.js +1 -1
  363. package/dist/v2/features/command-palette/helpers/load-document-from-source.js.map +1 -1
  364. package/dist/{libs → v2/features/command-palette/helpers}/parse-curl.d.ts +2 -2
  365. package/dist/v2/features/command-palette/helpers/parse-curl.d.ts.map +1 -0
  366. package/dist/{libs → v2/features/command-palette/helpers}/parse-curl.js +1 -1
  367. package/dist/v2/features/command-palette/helpers/parse-curl.js.map +1 -0
  368. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +1 -1
  369. package/dist/v2/features/command-palette/index.d.ts +2 -0
  370. package/dist/v2/features/command-palette/index.d.ts.map +1 -1
  371. package/dist/v2/features/command-palette/index.js +3 -1
  372. package/dist/v2/features/editor/helpers/configure-language-support.js +3 -3
  373. package/dist/v2/features/editor/helpers/configure-language-support.js.map +1 -1
  374. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts +1 -1
  375. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts.map +1 -1
  376. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js +1 -1
  377. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js.map +1 -1
  378. package/dist/v2/features/editor/helpers/json/json-ast.d.ts +1 -1
  379. package/dist/v2/features/editor/helpers/json/json-ast.d.ts.map +1 -1
  380. package/dist/v2/features/editor/helpers/json/json-ast.js +1 -1
  381. package/dist/v2/features/editor/helpers/json/json-ast.js.map +1 -1
  382. package/dist/v2/features/editor/helpers/theme/load-css-variables.d.ts +1 -1
  383. package/dist/v2/features/editor/hooks/use-editor-markers.d.ts.map +1 -1
  384. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -1
  385. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js.map +1 -1
  386. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.script.js +4 -4
  387. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.script.js.map +1 -1
  388. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts +5 -0
  389. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts.map +1 -1
  390. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js.map +1 -1
  391. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.script.js +70 -13
  392. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.script.js.map +1 -1
  393. package/dist/v2/features/modal/Modal.vue.d.ts +8 -3
  394. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  395. package/dist/v2/features/modal/Modal.vue.js.map +1 -1
  396. package/dist/v2/features/modal/Modal.vue.script.js +1 -1
  397. package/dist/v2/features/modal/Modal.vue.script.js.map +1 -1
  398. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +4 -3
  399. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  400. package/dist/v2/features/modal/helpers/create-api-client-modal.js +23 -3
  401. package/dist/v2/features/modal/helpers/create-api-client-modal.js.map +1 -1
  402. package/dist/v2/features/modal/helpers/types.d.ts +8 -0
  403. package/dist/v2/features/modal/helpers/types.d.ts.map +1 -0
  404. package/dist/v2/features/modal/index.d.ts +1 -0
  405. package/dist/v2/features/modal/index.d.ts.map +1 -1
  406. package/dist/v2/features/operation/Operation.vue.d.ts +3 -3
  407. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  408. package/dist/v2/features/operation/Operation.vue.js.map +1 -1
  409. package/dist/v2/features/operation/Operation.vue.script.js +3 -1
  410. package/dist/v2/features/operation/Operation.vue.script.js.map +1 -1
  411. package/dist/v2/features/settings/CollectionSettings.vue.script.js +1 -1
  412. package/dist/v2/features/settings/components/Appearance.vue.d.ts +2 -2
  413. package/dist/v2/helpers/safe-run.d.ts +10 -0
  414. package/dist/v2/helpers/safe-run.d.ts.map +1 -0
  415. package/dist/v2/helpers/safe-run.js +19 -0
  416. package/dist/v2/helpers/safe-run.js.map +1 -0
  417. package/package.json +151 -169
  418. package/dist/assets/keycap.ascii.virtual.js +0 -6
  419. package/dist/assets/keycap.ascii.virtual.js.map +0 -1
  420. package/dist/components/AddressBar/AddressBar.vue.d.ts +0 -20
  421. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +0 -1
  422. package/dist/components/AddressBar/AddressBar.vue.js +0 -9
  423. package/dist/components/AddressBar/AddressBar.vue.js.map +0 -1
  424. package/dist/components/AddressBar/AddressBar.vue.script.js +0 -204
  425. package/dist/components/AddressBar/AddressBar.vue.script.js.map +0 -1
  426. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +0 -1
  427. package/dist/components/AddressBar/AddressBarHistory.vue.js +0 -9
  428. package/dist/components/AddressBar/AddressBarHistory.vue.js.map +0 -1
  429. package/dist/components/AddressBar/AddressBarHistory.vue.script.js +0 -85
  430. package/dist/components/AddressBar/AddressBarHistory.vue.script.js.map +0 -1
  431. package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -22
  432. package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +0 -1
  433. package/dist/components/AddressBar/httpStatusCodeColors.js +0 -20
  434. package/dist/components/AddressBar/httpStatusCodeColors.js.map +0 -1
  435. package/dist/components/AddressBar/index.d.ts +0 -2
  436. package/dist/components/AddressBar/index.d.ts.map +0 -1
  437. package/dist/components/AddressBar/index.js +0 -2
  438. package/dist/components/CodeInput/CodeInput.vue.d.ts +0 -101
  439. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +0 -1
  440. package/dist/components/CodeInput/CodeInput.vue.js +0 -10
  441. package/dist/components/CodeInput/CodeInput.vue.js.map +0 -1
  442. package/dist/components/CodeInput/CodeInput.vue.script.js +0 -294
  443. package/dist/components/CodeInput/CodeInput.vue.script.js.map +0 -1
  444. package/dist/components/CodeInput/codeVariableWidget.d.ts +0 -17
  445. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +0 -1
  446. package/dist/components/CodeInput/codeVariableWidget.js +0 -135
  447. package/dist/components/CodeInput/codeVariableWidget.js.map +0 -1
  448. package/dist/components/CodeInput/index.d.ts +0 -2
  449. package/dist/components/CodeInput/index.d.ts.map +0 -1
  450. package/dist/components/CodeInput/index.js +0 -2
  451. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +0 -31
  452. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +0 -1
  453. package/dist/components/CommandPalette/CommandActionForm.vue.js +0 -7
  454. package/dist/components/CommandPalette/CommandActionForm.vue.js.map +0 -1
  455. package/dist/components/CommandPalette/CommandActionForm.vue.script.js +0 -42
  456. package/dist/components/CommandPalette/CommandActionForm.vue.script.js.map +0 -1
  457. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +0 -15
  458. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +0 -1
  459. package/dist/components/CommandPalette/CommandActionInput.vue.js +0 -7
  460. package/dist/components/CommandPalette/CommandActionInput.vue.js.map +0 -1
  461. package/dist/components/CommandPalette/CommandActionInput.vue.script.js +0 -55
  462. package/dist/components/CommandPalette/CommandActionInput.vue.script.js.map +0 -1
  463. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +0 -10
  464. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +0 -1
  465. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +0 -7
  466. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js.map +0 -1
  467. package/dist/components/CommandPalette/CommandPaletteCollection.vue.script.js +0 -78
  468. package/dist/components/CommandPalette/CommandPaletteCollection.vue.script.js.map +0 -1
  469. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +0 -16
  470. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +0 -1
  471. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +0 -7
  472. package/dist/components/CommandPalette/CommandPaletteExample.vue.js.map +0 -1
  473. package/dist/components/CommandPalette/CommandPaletteExample.vue.script.js +0 -104
  474. package/dist/components/CommandPalette/CommandPaletteExample.vue.script.js.map +0 -1
  475. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +0 -10
  476. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +0 -1
  477. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +0 -7
  478. package/dist/components/CommandPalette/CommandPaletteImport.vue.js.map +0 -1
  479. package/dist/components/CommandPalette/CommandPaletteImport.vue.script.js +0 -181
  480. package/dist/components/CommandPalette/CommandPaletteImport.vue.script.js.map +0 -1
  481. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.d.ts +0 -20
  482. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.d.ts.map +0 -1
  483. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +0 -9
  484. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js.map +0 -1
  485. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.script.js +0 -108
  486. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.script.js.map +0 -1
  487. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +0 -16
  488. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +0 -1
  489. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +0 -7
  490. package/dist/components/CommandPalette/CommandPaletteServer.vue.js.map +0 -1
  491. package/dist/components/CommandPalette/CommandPaletteServer.vue.script.js +0 -108
  492. package/dist/components/CommandPalette/CommandPaletteServer.vue.script.js.map +0 -1
  493. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +0 -10
  494. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +0 -1
  495. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +0 -7
  496. package/dist/components/CommandPalette/CommandPaletteTag.vue.js.map +0 -1
  497. package/dist/components/CommandPalette/CommandPaletteTag.vue.script.js +0 -70
  498. package/dist/components/CommandPalette/CommandPaletteTag.vue.script.js.map +0 -1
  499. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +0 -10
  500. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +0 -1
  501. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +0 -7
  502. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js.map +0 -1
  503. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.script.js +0 -49
  504. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.script.js.map +0 -1
  505. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +0 -217
  506. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +0 -1
  507. package/dist/components/CommandPalette/TheCommandPalette.vue.js +0 -9
  508. package/dist/components/CommandPalette/TheCommandPalette.vue.js.map +0 -1
  509. package/dist/components/CommandPalette/TheCommandPalette.vue.script.js +0 -323
  510. package/dist/components/CommandPalette/TheCommandPalette.vue.script.js.map +0 -1
  511. package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts +0 -14
  512. package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts.map +0 -1
  513. package/dist/components/CommandPalette/WatchModeToggle.vue.js +0 -7
  514. package/dist/components/CommandPalette/WatchModeToggle.vue.js.map +0 -1
  515. package/dist/components/CommandPalette/WatchModeToggle.vue.script.js +0 -40
  516. package/dist/components/CommandPalette/WatchModeToggle.vue.script.js.map +0 -1
  517. package/dist/components/CommandPalette/index.d.ts +0 -2
  518. package/dist/components/CommandPalette/index.d.ts.map +0 -1
  519. package/dist/components/CommandPalette/index.js +0 -2
  520. package/dist/components/DataTable/DataTable.vue.d.ts +0 -23
  521. package/dist/components/DataTable/DataTable.vue.d.ts.map +0 -1
  522. package/dist/components/DataTable/DataTable.vue.js +0 -7
  523. package/dist/components/DataTable/DataTable.vue.js.map +0 -1
  524. package/dist/components/DataTable/DataTable.vue.script.js +0 -30
  525. package/dist/components/DataTable/DataTable.vue.script.js.map +0 -1
  526. package/dist/components/DataTable/DataTableCell.vue.d.ts +0 -20
  527. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +0 -1
  528. package/dist/components/DataTable/DataTableCell.vue.js +0 -7
  529. package/dist/components/DataTable/DataTableCell.vue.js.map +0 -1
  530. package/dist/components/DataTable/DataTableCell.vue.script.js +0 -21
  531. package/dist/components/DataTable/DataTableCell.vue.script.js.map +0 -1
  532. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +0 -15
  533. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +0 -1
  534. package/dist/components/DataTable/DataTableCheckbox.vue.js +0 -7
  535. package/dist/components/DataTable/DataTableCheckbox.vue.js.map +0 -1
  536. package/dist/components/DataTable/DataTableCheckbox.vue.script.js +0 -43
  537. package/dist/components/DataTable/DataTableCheckbox.vue.script.js.map +0 -1
  538. package/dist/components/DataTable/DataTableHeader.vue.d.ts +0 -14
  539. package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +0 -1
  540. package/dist/components/DataTable/DataTableHeader.vue.js +0 -7
  541. package/dist/components/DataTable/DataTableHeader.vue.js.map +0 -1
  542. package/dist/components/DataTable/DataTableHeader.vue.script.js +0 -20
  543. package/dist/components/DataTable/DataTableHeader.vue.script.js.map +0 -1
  544. package/dist/components/DataTable/DataTableInput.vue.d.ts +0 -54
  545. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +0 -1
  546. package/dist/components/DataTable/DataTableInput.vue.js +0 -9
  547. package/dist/components/DataTable/DataTableInput.vue.js.map +0 -1
  548. package/dist/components/DataTable/DataTableInput.vue.script.js +0 -164
  549. package/dist/components/DataTable/DataTableInput.vue.script.js.map +0 -1
  550. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +0 -17
  551. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +0 -1
  552. package/dist/components/DataTable/DataTableInputSelect.vue.js +0 -7
  553. package/dist/components/DataTable/DataTableInputSelect.vue.js.map +0 -1
  554. package/dist/components/DataTable/DataTableInputSelect.vue.script.js +0 -150
  555. package/dist/components/DataTable/DataTableInputSelect.vue.script.js.map +0 -1
  556. package/dist/components/DataTable/DataTableRow.vue.d.ts +0 -14
  557. package/dist/components/DataTable/DataTableRow.vue.d.ts.map +0 -1
  558. package/dist/components/DataTable/DataTableRow.vue.js +0 -13
  559. package/dist/components/DataTable/DataTableRow.vue.js.map +0 -1
  560. package/dist/components/DataTable/DataTableText.vue.d.ts.map +0 -1
  561. package/dist/components/DataTable/DataTableText.vue.js +0 -7
  562. package/dist/components/DataTable/DataTableText.vue.js.map +0 -1
  563. package/dist/components/DataTable/DataTableText.vue.script.js +0 -20
  564. package/dist/components/DataTable/DataTableText.vue.script.js.map +0 -1
  565. package/dist/components/DataTable/index.d.ts +0 -9
  566. package/dist/components/DataTable/index.d.ts.map +0 -1
  567. package/dist/components/DataTable/index.js +0 -9
  568. package/dist/components/EmptyState.vue.d.ts +0 -4
  569. package/dist/components/EmptyState.vue.d.ts.map +0 -1
  570. package/dist/components/EmptyState.vue.js +0 -9
  571. package/dist/components/EmptyState.vue.js.map +0 -1
  572. package/dist/components/EmptyState.vue.script.js +0 -41
  573. package/dist/components/EmptyState.vue.script.js.map +0 -1
  574. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts +0 -4
  575. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +0 -1
  576. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +0 -7
  577. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js.map +0 -1
  578. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.script.js +0 -111
  579. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.script.js.map +0 -1
  580. package/dist/components/Form/Form.vue.d.ts +0 -26
  581. package/dist/components/Form/Form.vue.d.ts.map +0 -1
  582. package/dist/components/Form/Form.vue.js +0 -7
  583. package/dist/components/Form/Form.vue.js.map +0 -1
  584. package/dist/components/Form/Form.vue.script.js +0 -82
  585. package/dist/components/Form/Form.vue.script.js.map +0 -1
  586. package/dist/components/Form/LabelInput.vue.d.ts.map +0 -1
  587. package/dist/components/Form/LabelInput.vue.js +0 -9
  588. package/dist/components/Form/LabelInput.vue.js.map +0 -1
  589. package/dist/components/Form/LabelInput.vue.script.js +0 -39
  590. package/dist/components/Form/LabelInput.vue.script.js.map +0 -1
  591. package/dist/components/HttpMethod/index.js +0 -2
  592. package/dist/components/ImportCollection/DropEventListener.vue.d.ts +0 -8
  593. package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +0 -1
  594. package/dist/components/ImportCollection/DropEventListener.vue.js +0 -7
  595. package/dist/components/ImportCollection/DropEventListener.vue.js.map +0 -1
  596. package/dist/components/ImportCollection/DropEventListener.vue.script.js +0 -91
  597. package/dist/components/ImportCollection/DropEventListener.vue.script.js.map +0 -1
  598. package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts +0 -14
  599. package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +0 -1
  600. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +0 -7
  601. package/dist/components/ImportCollection/ImportCollectionListener.vue.js.map +0 -1
  602. package/dist/components/ImportCollection/ImportCollectionListener.vue.script.js +0 -102
  603. package/dist/components/ImportCollection/ImportCollectionListener.vue.script.js.map +0 -1
  604. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +0 -13
  605. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +0 -1
  606. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +0 -8
  607. package/dist/components/ImportCollection/ImportCollectionModal.vue.js.map +0 -1
  608. package/dist/components/ImportCollection/ImportCollectionModal.vue.script.js +0 -206
  609. package/dist/components/ImportCollection/ImportCollectionModal.vue.script.js.map +0 -1
  610. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts +0 -13
  611. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +0 -1
  612. package/dist/components/ImportCollection/ImportNowButton.vue.js +0 -7
  613. package/dist/components/ImportCollection/ImportNowButton.vue.js.map +0 -1
  614. package/dist/components/ImportCollection/ImportNowButton.vue.script.js +0 -82
  615. package/dist/components/ImportCollection/ImportNowButton.vue.script.js.map +0 -1
  616. package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +0 -8
  617. package/dist/components/ImportCollection/PasteEventListener.vue.d.ts.map +0 -1
  618. package/dist/components/ImportCollection/PasteEventListener.vue.js +0 -7
  619. package/dist/components/ImportCollection/PasteEventListener.vue.js.map +0 -1
  620. package/dist/components/ImportCollection/PasteEventListener.vue.script.js +0 -31
  621. package/dist/components/ImportCollection/PasteEventListener.vue.script.js.map +0 -1
  622. package/dist/components/ImportCollection/PrefetchError.vue.d.ts +0 -7
  623. package/dist/components/ImportCollection/PrefetchError.vue.d.ts.map +0 -1
  624. package/dist/components/ImportCollection/PrefetchError.vue.js +0 -7
  625. package/dist/components/ImportCollection/PrefetchError.vue.js.map +0 -1
  626. package/dist/components/ImportCollection/PrefetchError.vue.script.js +0 -32
  627. package/dist/components/ImportCollection/PrefetchError.vue.script.js.map +0 -1
  628. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +0 -8
  629. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +0 -1
  630. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +0 -7
  631. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js.map +0 -1
  632. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.script.js +0 -21
  633. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.script.js.map +0 -1
  634. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts +0 -4
  635. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +0 -1
  636. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +0 -7
  637. package/dist/components/ImportCollection/WorkspaceSelector.vue.js.map +0 -1
  638. package/dist/components/ImportCollection/WorkspaceSelector.vue.script.js +0 -114
  639. package/dist/components/ImportCollection/WorkspaceSelector.vue.script.js.map +0 -1
  640. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -39
  641. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +0 -1
  642. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +0 -109
  643. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js.map +0 -1
  644. package/dist/components/ImportCollection/index.d.ts +0 -2
  645. package/dist/components/ImportCollection/index.d.ts.map +0 -1
  646. package/dist/components/ImportCollection/index.js +0 -2
  647. package/dist/components/ImportCollection/utils/get-openapi-version.d.ts +0 -5
  648. package/dist/components/ImportCollection/utils/get-openapi-version.d.ts.map +0 -1
  649. package/dist/components/ImportCollection/utils/get-openapi-version.js +0 -26
  650. package/dist/components/ImportCollection/utils/get-openapi-version.js.map +0 -1
  651. package/dist/components/ImportCollection/utils/import-collection.d.ts +0 -12
  652. package/dist/components/ImportCollection/utils/import-collection.d.ts.map +0 -1
  653. package/dist/components/ImportCollection/utils/import-collection.js +0 -23
  654. package/dist/components/ImportCollection/utils/import-collection.js.map +0 -1
  655. package/dist/components/ImportCollection/utils/is-document.d.ts +0 -3
  656. package/dist/components/ImportCollection/utils/is-document.d.ts.map +0 -1
  657. package/dist/components/ImportCollection/utils/is-document.js +0 -12
  658. package/dist/components/ImportCollection/utils/is-document.js.map +0 -1
  659. package/dist/components/ImportCollection/utils/is-url.d.ts +0 -5
  660. package/dist/components/ImportCollection/utils/is-url.d.ts.map +0 -1
  661. package/dist/components/ImportCollection/utils/is-url.js +0 -14
  662. package/dist/components/ImportCollection/utils/is-url.js.map +0 -1
  663. package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts +0 -6
  664. package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts.map +0 -1
  665. package/dist/components/ImportCollection/utils/workspace-store-is-empty.js +0 -13
  666. package/dist/components/ImportCollection/utils/workspace-store-is-empty.js.map +0 -1
  667. package/dist/components/OpenApiClientButton.vue.d.ts.map +0 -1
  668. package/dist/components/OpenApiClientButton.vue.js.map +0 -1
  669. package/dist/components/OpenApiClientButton.vue.script.js.map +0 -1
  670. package/dist/components/Search/useSearch.d.ts +0 -33
  671. package/dist/components/Search/useSearch.d.ts.map +0 -1
  672. package/dist/components/Search/useSearch.js +0 -110
  673. package/dist/components/Search/useSearch.js.map +0 -1
  674. package/dist/components/Server/ServerDropdown.vue.d.ts +0 -12
  675. package/dist/components/Server/ServerDropdown.vue.d.ts.map +0 -1
  676. package/dist/components/Server/ServerDropdown.vue.js +0 -7
  677. package/dist/components/Server/ServerDropdown.vue.js.map +0 -1
  678. package/dist/components/Server/ServerDropdown.vue.script.js +0 -133
  679. package/dist/components/Server/ServerDropdown.vue.script.js.map +0 -1
  680. package/dist/components/Server/ServerDropdownItem.vue.d.ts +0 -19
  681. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +0 -1
  682. package/dist/components/Server/ServerDropdownItem.vue.js +0 -9
  683. package/dist/components/Server/ServerDropdownItem.vue.js.map +0 -1
  684. package/dist/components/Server/ServerDropdownItem.vue.script.js +0 -90
  685. package/dist/components/Server/ServerDropdownItem.vue.script.js.map +0 -1
  686. package/dist/components/Server/ServerSelector.vue.d.ts +0 -17
  687. package/dist/components/Server/ServerSelector.vue.d.ts.map +0 -1
  688. package/dist/components/Server/ServerSelector.vue.js +0 -7
  689. package/dist/components/Server/ServerSelector.vue.js.map +0 -1
  690. package/dist/components/Server/ServerSelector.vue.script.js +0 -87
  691. package/dist/components/Server/ServerSelector.vue.script.js.map +0 -1
  692. package/dist/components/SideNav/DownloadAppButton.vue.d.ts +0 -4
  693. package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +0 -1
  694. package/dist/components/SideNav/DownloadAppButton.vue.js +0 -9
  695. package/dist/components/SideNav/DownloadAppButton.vue.js.map +0 -1
  696. package/dist/components/SideNav/DownloadAppButton.vue.script.js +0 -31
  697. package/dist/components/SideNav/DownloadAppButton.vue.script.js.map +0 -1
  698. package/dist/components/SideNav/SideHelp.vue.d.ts +0 -4
  699. package/dist/components/SideNav/SideHelp.vue.d.ts.map +0 -1
  700. package/dist/components/SideNav/SideHelp.vue.js +0 -7
  701. package/dist/components/SideNav/SideHelp.vue.js.map +0 -1
  702. package/dist/components/SideNav/SideHelp.vue.script.js +0 -102
  703. package/dist/components/SideNav/SideHelp.vue.script.js.map +0 -1
  704. package/dist/components/SideNav/SideNav.vue.d.ts +0 -4
  705. package/dist/components/SideNav/SideNav.vue.d.ts.map +0 -1
  706. package/dist/components/SideNav/SideNav.vue.js +0 -7
  707. package/dist/components/SideNav/SideNav.vue.js.map +0 -1
  708. package/dist/components/SideNav/SideNav.vue.script.js +0 -80
  709. package/dist/components/SideNav/SideNav.vue.script.js.map +0 -1
  710. package/dist/components/SideNav/SideNavGroup.vue.d.ts +0 -14
  711. package/dist/components/SideNav/SideNavGroup.vue.d.ts.map +0 -1
  712. package/dist/components/SideNav/SideNavGroup.vue.js +0 -7
  713. package/dist/components/SideNav/SideNavGroup.vue.js.map +0 -1
  714. package/dist/components/SideNav/SideNavGroup.vue.script.js +0 -16
  715. package/dist/components/SideNav/SideNavGroup.vue.script.js.map +0 -1
  716. package/dist/components/SideNav/SideNavLink.vue.d.ts +0 -23
  717. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +0 -1
  718. package/dist/components/SideNav/SideNavLink.vue.js +0 -7
  719. package/dist/components/SideNav/SideNavLink.vue.js.map +0 -1
  720. package/dist/components/SideNav/SideNavLink.vue.script.js +0 -32
  721. package/dist/components/SideNav/SideNavLink.vue.script.js.map +0 -1
  722. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +0 -21
  723. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +0 -1
  724. package/dist/components/SideNav/SideNavRouterLink.vue.js +0 -7
  725. package/dist/components/SideNav/SideNavRouterLink.vue.js.map +0 -1
  726. package/dist/components/SideNav/SideNavRouterLink.vue.script.js +0 -34
  727. package/dist/components/SideNav/SideNavRouterLink.vue.script.js.map +0 -1
  728. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts +0 -14
  729. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +0 -1
  730. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +0 -7
  731. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js.map +0 -1
  732. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.script.js +0 -56
  733. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.script.js.map +0 -1
  734. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +0 -1
  735. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +0 -7
  736. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js.map +0 -1
  737. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.script.js +0 -31
  738. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.script.js.map +0 -1
  739. package/dist/components/Sidebar/Sidebar.vue.d.ts +0 -23
  740. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +0 -1
  741. package/dist/components/Sidebar/Sidebar.vue.js +0 -9
  742. package/dist/components/Sidebar/Sidebar.vue.js.map +0 -1
  743. package/dist/components/Sidebar/Sidebar.vue.script.js +0 -71
  744. package/dist/components/Sidebar/Sidebar.vue.script.js.map +0 -1
  745. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +0 -1
  746. package/dist/components/Sidebar/SidebarButton.vue.js +0 -7
  747. package/dist/components/Sidebar/SidebarButton.vue.js.map +0 -1
  748. package/dist/components/Sidebar/SidebarButton.vue.script.js +0 -36
  749. package/dist/components/Sidebar/SidebarButton.vue.script.js.map +0 -1
  750. package/dist/components/Sidebar/SidebarList.vue.d.ts +0 -14
  751. package/dist/components/Sidebar/SidebarList.vue.d.ts.map +0 -1
  752. package/dist/components/Sidebar/SidebarList.vue.js +0 -13
  753. package/dist/components/Sidebar/SidebarList.vue.js.map +0 -1
  754. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +0 -44
  755. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +0 -1
  756. package/dist/components/Sidebar/SidebarListElement.vue.js +0 -10
  757. package/dist/components/Sidebar/SidebarListElement.vue.js.map +0 -1
  758. package/dist/components/Sidebar/SidebarListElement.vue.script.js +0 -128
  759. package/dist/components/Sidebar/SidebarListElement.vue.script.js.map +0 -1
  760. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +0 -21
  761. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +0 -1
  762. package/dist/components/Sidebar/SidebarListElementActions.vue.js +0 -7
  763. package/dist/components/Sidebar/SidebarListElementActions.vue.js.map +0 -1
  764. package/dist/components/Sidebar/SidebarListElementActions.vue.script.js +0 -97
  765. package/dist/components/Sidebar/SidebarListElementActions.vue.script.js.map +0 -1
  766. package/dist/components/Sidebar/SidebarToggle.vue.d.ts +0 -4
  767. package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +0 -1
  768. package/dist/components/Sidebar/SidebarToggle.vue.js +0 -7
  769. package/dist/components/Sidebar/SidebarToggle.vue.js.map +0 -1
  770. package/dist/components/Sidebar/SidebarToggle.vue.script.js +0 -47
  771. package/dist/components/Sidebar/SidebarToggle.vue.script.js.map +0 -1
  772. package/dist/components/Sidebar/index.d.ts +0 -2
  773. package/dist/components/Sidebar/index.d.ts.map +0 -1
  774. package/dist/components/Sidebar/index.js +0 -2
  775. package/dist/components/TopNav/TopNav.vue.d.ts +0 -10
  776. package/dist/components/TopNav/TopNav.vue.d.ts.map +0 -1
  777. package/dist/components/TopNav/TopNav.vue.js +0 -7
  778. package/dist/components/TopNav/TopNav.vue.js.map +0 -1
  779. package/dist/components/TopNav/TopNav.vue.script.js +0 -232
  780. package/dist/components/TopNav/TopNav.vue.script.js.map +0 -1
  781. package/dist/components/TopNav/TopNavItem.vue.d.ts +0 -24
  782. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +0 -1
  783. package/dist/components/TopNav/TopNavItem.vue.js +0 -9
  784. package/dist/components/TopNav/TopNavItem.vue.js.map +0 -1
  785. package/dist/components/TopNav/TopNavItem.vue.script.js +0 -129
  786. package/dist/components/TopNav/TopNavItem.vue.script.js.map +0 -1
  787. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +0 -33
  788. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +0 -1
  789. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +0 -7
  790. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js.map +0 -1
  791. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.script.js +0 -84
  792. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.script.js.map +0 -1
  793. package/dist/components/ViewLayout/index.d.ts +0 -2
  794. package/dist/components/ViewLayout/index.d.ts.map +0 -1
  795. package/dist/components/ViewLayout/index.js +0 -2
  796. package/dist/components/index.d.ts +0 -4
  797. package/dist/components/index.d.ts.map +0 -1
  798. package/dist/components/index.js +0 -4
  799. package/dist/constants.d.ts +0 -26
  800. package/dist/constants.d.ts.map +0 -1
  801. package/dist/constants.js +0 -27
  802. package/dist/constants.js.map +0 -1
  803. package/dist/data/httpHeaders.d.ts +0 -7
  804. package/dist/data/httpHeaders.d.ts.map +0 -1
  805. package/dist/data/httpHeaders.js +0 -539
  806. package/dist/data/httpHeaders.js.map +0 -1
  807. package/dist/hooks/index.d.ts +0 -5
  808. package/dist/hooks/index.d.ts.map +0 -1
  809. package/dist/hooks/index.js +0 -5
  810. package/dist/hooks/useClientConfig.d.ts +0 -198
  811. package/dist/hooks/useClientConfig.d.ts.map +0 -1
  812. package/dist/hooks/useClientConfig.js +0 -23
  813. package/dist/hooks/useClientConfig.js.map +0 -1
  814. package/dist/hooks/useFileDialog.d.ts.map +0 -1
  815. package/dist/hooks/useFileDialog.js.map +0 -1
  816. package/dist/hooks/useLayout.d.ts +0 -17
  817. package/dist/hooks/useLayout.d.ts.map +0 -1
  818. package/dist/hooks/useLayout.js +0 -13
  819. package/dist/hooks/useLayout.js.map +0 -1
  820. package/dist/hooks/useResponseBody.d.ts +0 -19
  821. package/dist/hooks/useResponseBody.d.ts.map +0 -1
  822. package/dist/hooks/useResponseBody.js +0 -32
  823. package/dist/hooks/useResponseBody.js.map +0 -1
  824. package/dist/hooks/useSidebar.d.ts +0 -26
  825. package/dist/hooks/useSidebar.d.ts.map +0 -1
  826. package/dist/hooks/useSidebar.js +0 -36
  827. package/dist/hooks/useSidebar.js.map +0 -1
  828. package/dist/layouts/App/ApiClientApp.vue.d.ts +0 -14
  829. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +0 -1
  830. package/dist/layouts/App/ApiClientApp.vue.js +0 -8
  831. package/dist/layouts/App/ApiClientApp.vue.js.map +0 -1
  832. package/dist/layouts/App/ApiClientApp.vue.script.js +0 -80
  833. package/dist/layouts/App/ApiClientApp.vue.script.js.map +0 -1
  834. package/dist/layouts/App/MainLayout.vue.d.ts +0 -14
  835. package/dist/layouts/App/MainLayout.vue.d.ts.map +0 -1
  836. package/dist/layouts/App/MainLayout.vue.js +0 -7
  837. package/dist/layouts/App/MainLayout.vue.js.map +0 -1
  838. package/dist/layouts/App/MainLayout.vue.script.js +0 -22
  839. package/dist/layouts/App/MainLayout.vue.script.js.map +0 -1
  840. package/dist/layouts/App/create-api-client-app.d.ts +0 -4059
  841. package/dist/layouts/App/create-api-client-app.d.ts.map +0 -1
  842. package/dist/layouts/App/create-api-client-app.js +0 -36
  843. package/dist/layouts/App/create-api-client-app.js.map +0 -1
  844. package/dist/layouts/App/hotkeys.d.ts +0 -6
  845. package/dist/layouts/App/hotkeys.d.ts.map +0 -1
  846. package/dist/layouts/App/hotkeys.js +0 -74
  847. package/dist/layouts/App/hotkeys.js.map +0 -1
  848. package/dist/layouts/App/index.d.ts +0 -3
  849. package/dist/layouts/App/index.d.ts.map +0 -1
  850. package/dist/layouts/App/index.js +0 -3
  851. package/dist/layouts/Modal/ApiClientModal.vue.d.ts +0 -4
  852. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +0 -1
  853. package/dist/layouts/Modal/ApiClientModal.vue.js +0 -7
  854. package/dist/layouts/Modal/ApiClientModal.vue.js.map +0 -1
  855. package/dist/layouts/Modal/ApiClientModal.vue.script.js +0 -41
  856. package/dist/layouts/Modal/ApiClientModal.vue.script.js.map +0 -1
  857. package/dist/layouts/Modal/create-api-client-modal.d.ts +0 -12
  858. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +0 -1
  859. package/dist/layouts/Modal/create-api-client-modal.js +0 -34
  860. package/dist/layouts/Modal/create-api-client-modal.js.map +0 -1
  861. package/dist/layouts/Modal/index.d.ts +0 -3
  862. package/dist/layouts/Modal/index.d.ts.map +0 -1
  863. package/dist/layouts/Modal/index.js +0 -2
  864. package/dist/layouts/Web/ApiClientWeb.vue.d.ts +0 -4
  865. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +0 -1
  866. package/dist/layouts/Web/ApiClientWeb.vue.js +0 -8
  867. package/dist/layouts/Web/ApiClientWeb.vue.js.map +0 -1
  868. package/dist/layouts/Web/ApiClientWeb.vue.script.js +0 -68
  869. package/dist/layouts/Web/ApiClientWeb.vue.script.js.map +0 -1
  870. package/dist/layouts/Web/create-api-client-web.d.ts +0 -4056
  871. package/dist/layouts/Web/create-api-client-web.d.ts.map +0 -1
  872. package/dist/layouts/Web/create-api-client-web.js +0 -33
  873. package/dist/layouts/Web/create-api-client-web.js.map +0 -1
  874. package/dist/layouts/Web/index.d.ts +0 -3
  875. package/dist/layouts/Web/index.d.ts.map +0 -1
  876. package/dist/layouts/Web/index.js +0 -3
  877. package/dist/libs/create-client.d.ts +0 -4127
  878. package/dist/libs/create-client.d.ts.map +0 -1
  879. package/dist/libs/create-client.js +0 -178
  880. package/dist/libs/create-client.js.map +0 -1
  881. package/dist/libs/electron.d.ts +0 -5
  882. package/dist/libs/electron.d.ts.map +0 -1
  883. package/dist/libs/electron.js +0 -9
  884. package/dist/libs/electron.js.map +0 -1
  885. package/dist/libs/env-helpers.d.ts +0 -17
  886. package/dist/libs/env-helpers.d.ts.map +0 -1
  887. package/dist/libs/env-helpers.js +0 -9
  888. package/dist/libs/env-helpers.js.map +0 -1
  889. package/dist/libs/environment-parser.d.ts +0 -8
  890. package/dist/libs/environment-parser.d.ts.map +0 -1
  891. package/dist/libs/environment-parser.js +0 -19
  892. package/dist/libs/environment-parser.js.map +0 -1
  893. package/dist/libs/errors.d.ts +0 -23
  894. package/dist/libs/errors.d.ts.map +0 -1
  895. package/dist/libs/errors.js +0 -34
  896. package/dist/libs/errors.js.map +0 -1
  897. package/dist/libs/event-bus.d.ts +0 -41
  898. package/dist/libs/event-bus.d.ts.map +0 -1
  899. package/dist/libs/event-bus.js +0 -43
  900. package/dist/libs/event-bus.js.map +0 -1
  901. package/dist/libs/extractAttachmentFilename.d.ts +0 -5
  902. package/dist/libs/extractAttachmentFilename.d.ts.map +0 -1
  903. package/dist/libs/extractAttachmentFilename.js +0 -23
  904. package/dist/libs/extractAttachmentFilename.js.map +0 -1
  905. package/dist/libs/find-request.d.ts +0 -75
  906. package/dist/libs/find-request.d.ts.map +0 -1
  907. package/dist/libs/find-request.js +0 -40
  908. package/dist/libs/find-request.js.map +0 -1
  909. package/dist/libs/get-request-uid-by-path-method.d.ts +0 -7
  910. package/dist/libs/get-request-uid-by-path-method.d.ts.map +0 -1
  911. package/dist/libs/get-request-uid-by-path-method.js +0 -19
  912. package/dist/libs/get-request-uid-by-path-method.js.map +0 -1
  913. package/dist/libs/getOpenApiDocumentDetails.d.ts +0 -10
  914. package/dist/libs/getOpenApiDocumentDetails.d.ts.map +0 -1
  915. package/dist/libs/getOpenApiDocumentDetails.js +0 -45
  916. package/dist/libs/getOpenApiDocumentDetails.js.map +0 -1
  917. package/dist/libs/hot-keys.d.ts +0 -35
  918. package/dist/libs/hot-keys.d.ts.map +0 -1
  919. package/dist/libs/hot-keys.js +0 -92
  920. package/dist/libs/hot-keys.js.map +0 -1
  921. package/dist/libs/importers/curl.d.ts +0 -27
  922. package/dist/libs/importers/curl.d.ts.map +0 -1
  923. package/dist/libs/importers/curl.js +0 -54
  924. package/dist/libs/importers/curl.js.map +0 -1
  925. package/dist/libs/importers/index.d.ts +0 -2
  926. package/dist/libs/importers/index.d.ts.map +0 -1
  927. package/dist/libs/importers/index.js +0 -2
  928. package/dist/libs/index.d.ts +0 -15
  929. package/dist/libs/index.d.ts.map +0 -1
  930. package/dist/libs/index.js +0 -17
  931. package/dist/libs/isUrl.d.ts +0 -3
  932. package/dist/libs/isUrl.d.ts.map +0 -1
  933. package/dist/libs/isUrl.js +0 -12
  934. package/dist/libs/isUrl.js.map +0 -1
  935. package/dist/libs/local-storage.d.ts +0 -9
  936. package/dist/libs/local-storage.d.ts.map +0 -1
  937. package/dist/libs/local-storage.js +0 -40
  938. package/dist/libs/local-storage.js.map +0 -1
  939. package/dist/libs/normalize-headers.d.ts +0 -14
  940. package/dist/libs/normalize-headers.d.ts.map +0 -1
  941. package/dist/libs/normalize-headers.js +0 -56
  942. package/dist/libs/normalize-headers.js.map +0 -1
  943. package/dist/libs/parse-curl.d.ts.map +0 -1
  944. package/dist/libs/parse-curl.js.map +0 -1
  945. package/dist/libs/postman.d.ts +0 -11
  946. package/dist/libs/postman.d.ts.map +0 -1
  947. package/dist/libs/postman.js +0 -40
  948. package/dist/libs/postman.js.map +0 -1
  949. package/dist/libs/send-request/build-request-security.d.ts +0 -19
  950. package/dist/libs/send-request/build-request-security.d.ts.map +0 -1
  951. package/dist/libs/send-request/build-request-security.js +0 -41
  952. package/dist/libs/send-request/build-request-security.js.map +0 -1
  953. package/dist/libs/send-request/create-fetch-body.d.ts +0 -18
  954. package/dist/libs/send-request/create-fetch-body.d.ts.map +0 -1
  955. package/dist/libs/send-request/create-fetch-body.js +0 -44
  956. package/dist/libs/send-request/create-fetch-body.js.map +0 -1
  957. package/dist/libs/send-request/create-fetch-headers.d.ts +0 -4
  958. package/dist/libs/send-request/create-fetch-headers.d.ts.map +0 -1
  959. package/dist/libs/send-request/create-fetch-headers.js +0 -15
  960. package/dist/libs/send-request/create-fetch-headers.js.map +0 -1
  961. package/dist/libs/send-request/create-fetch-query-params.d.ts +0 -11
  962. package/dist/libs/send-request/create-fetch-query-params.d.ts.map +0 -1
  963. package/dist/libs/send-request/create-fetch-query-params.js +0 -43
  964. package/dist/libs/send-request/create-fetch-query-params.js.map +0 -1
  965. package/dist/libs/send-request/create-request-operation.d.ts +0 -32
  966. package/dist/libs/send-request/create-request-operation.d.ts.map +0 -1
  967. package/dist/libs/send-request/create-request-operation.js +0 -172
  968. package/dist/libs/send-request/create-request-operation.js.map +0 -1
  969. package/dist/libs/send-request/decode-buffer.d.ts +0 -3
  970. package/dist/libs/send-request/decode-buffer.d.ts.map +0 -1
  971. package/dist/libs/send-request/decode-buffer.js +0 -13
  972. package/dist/libs/send-request/decode-buffer.js.map +0 -1
  973. package/dist/libs/send-request/index.d.ts +0 -4
  974. package/dist/libs/send-request/index.d.ts.map +0 -1
  975. package/dist/libs/send-request/index.js +0 -4
  976. package/dist/libs/send-request/set-request-cookies.d.ts +0 -27
  977. package/dist/libs/send-request/set-request-cookies.d.ts.map +0 -1
  978. package/dist/libs/send-request/set-request-cookies.js +0 -82
  979. package/dist/libs/send-request/set-request-cookies.js.map +0 -1
  980. package/dist/libs/string-template.d.ts +0 -21
  981. package/dist/libs/string-template.d.ts.map +0 -1
  982. package/dist/libs/string-template.js +0 -64
  983. package/dist/libs/string-template.js.map +0 -1
  984. package/dist/libs/validate-parameters.d.ts +0 -14
  985. package/dist/libs/validate-parameters.d.ts.map +0 -1
  986. package/dist/libs/validate-parameters.js +0 -35
  987. package/dist/libs/validate-parameters.js.map +0 -1
  988. package/dist/plugins/hooks/usePluginManager.d.ts +0 -8
  989. package/dist/plugins/hooks/usePluginManager.d.ts.map +0 -1
  990. package/dist/plugins/hooks/usePluginManager.js +0 -16
  991. package/dist/plugins/hooks/usePluginManager.js.map +0 -1
  992. package/dist/plugins/index.d.ts +0 -3
  993. package/dist/plugins/index.d.ts.map +0 -1
  994. package/dist/plugins/index.js +0 -3
  995. package/dist/plugins/plugin-manager.d.ts +0 -34
  996. package/dist/plugins/plugin-manager.d.ts.map +0 -1
  997. package/dist/plugins/plugin-manager.js +0 -38
  998. package/dist/plugins/plugin-manager.js.map +0 -1
  999. package/dist/routes.d.ts +0 -19
  1000. package/dist/routes.d.ts.map +0 -1
  1001. package/dist/routes.js +0 -225
  1002. package/dist/routes.js.map +0 -1
  1003. package/dist/store/active-entities.d.ts +0 -387
  1004. package/dist/store/active-entities.d.ts.map +0 -1
  1005. package/dist/store/active-entities.js +0 -139
  1006. package/dist/store/active-entities.js.map +0 -1
  1007. package/dist/store/collections.d.ts +0 -625
  1008. package/dist/store/collections.d.ts.map +0 -1
  1009. package/dist/store/collections.js +0 -76
  1010. package/dist/store/collections.js.map +0 -1
  1011. package/dist/store/cookies.d.ts +0 -69
  1012. package/dist/store/cookies.d.ts.map +0 -1
  1013. package/dist/store/cookies.js +0 -16
  1014. package/dist/store/cookies.js.map +0 -1
  1015. package/dist/store/environment.d.ts +0 -75
  1016. package/dist/store/environment.d.ts.map +0 -1
  1017. package/dist/store/environment.js +0 -38
  1018. package/dist/store/environment.js.map +0 -1
  1019. package/dist/store/events.d.ts +0 -35
  1020. package/dist/store/events.d.ts.map +0 -1
  1021. package/dist/store/events.js +0 -17
  1022. package/dist/store/events.js.map +0 -1
  1023. package/dist/store/import-spec.d.ts +0 -38
  1024. package/dist/store/import-spec.d.ts.map +0 -1
  1025. package/dist/store/import-spec.js +0 -56
  1026. package/dist/store/import-spec.js.map +0 -1
  1027. package/dist/store/index.d.ts +0 -3
  1028. package/dist/store/index.d.ts.map +0 -1
  1029. package/dist/store/index.js +0 -3
  1030. package/dist/store/request-example.d.ts +0 -1022
  1031. package/dist/store/request-example.d.ts.map +0 -1
  1032. package/dist/store/request-example.js +0 -43
  1033. package/dist/store/request-example.js.map +0 -1
  1034. package/dist/store/requests.d.ts +0 -675
  1035. package/dist/store/requests.d.ts.map +0 -1
  1036. package/dist/store/requests.js +0 -104
  1037. package/dist/store/requests.js.map +0 -1
  1038. package/dist/store/router-params.d.ts +0 -18
  1039. package/dist/store/router-params.d.ts.map +0 -1
  1040. package/dist/store/router-params.js +0 -27
  1041. package/dist/store/router-params.js.map +0 -1
  1042. package/dist/store/security-schemes.d.ts +0 -942
  1043. package/dist/store/security-schemes.d.ts.map +0 -1
  1044. package/dist/store/security-schemes.js +0 -45
  1045. package/dist/store/security-schemes.js.map +0 -1
  1046. package/dist/store/servers.d.ts +0 -122
  1047. package/dist/store/servers.d.ts.map +0 -1
  1048. package/dist/store/servers.js +0 -41
  1049. package/dist/store/servers.js.map +0 -1
  1050. package/dist/store/store-context.d.ts +0 -26
  1051. package/dist/store/store-context.d.ts.map +0 -1
  1052. package/dist/store/store.d.ts +0 -4055
  1053. package/dist/store/store.d.ts.map +0 -1
  1054. package/dist/store/store.js +0 -180
  1055. package/dist/store/store.js.map +0 -1
  1056. package/dist/store/tags.d.ts +0 -176
  1057. package/dist/store/tags.d.ts.map +0 -1
  1058. package/dist/store/tags.js +0 -54
  1059. package/dist/store/tags.js.map +0 -1
  1060. package/dist/store/workspace.d.ts +0 -232
  1061. package/dist/store/workspace.d.ts.map +0 -1
  1062. package/dist/store/workspace.js +0 -57
  1063. package/dist/store/workspace.js.map +0 -1
  1064. package/dist/types/index.d.ts +0 -2
  1065. package/dist/types/index.d.ts.map +0 -1
  1066. package/dist/types/index.js +0 -0
  1067. package/dist/v2/features/command-palette/helpers/is-postman-collection.d.ts +0 -11
  1068. package/dist/v2/features/command-palette/helpers/is-postman-collection.d.ts.map +0 -1
  1069. package/dist/v2/features/command-palette/helpers/is-postman-collection.js +0 -24
  1070. package/dist/v2/features/command-palette/helpers/is-postman-collection.js.map +0 -1
  1071. package/dist/v2/posthog.d.ts +0 -3
  1072. package/dist/v2/posthog.d.ts.map +0 -1
  1073. package/dist/v2/posthog.js +0 -20
  1074. package/dist/v2/posthog.js.map +0 -1
  1075. package/dist/views/Collection/Collection.vue.d.ts +0 -4
  1076. package/dist/views/Collection/Collection.vue.d.ts.map +0 -1
  1077. package/dist/views/Collection/Collection.vue.js +0 -7
  1078. package/dist/views/Collection/Collection.vue.js.map +0 -1
  1079. package/dist/views/Collection/Collection.vue.script.js +0 -46
  1080. package/dist/views/Collection/Collection.vue.script.js.map +0 -1
  1081. package/dist/views/Collection/CollectionAuthentication.vue.d.ts +0 -4
  1082. package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +0 -1
  1083. package/dist/views/Collection/CollectionAuthentication.vue.js +0 -9
  1084. package/dist/views/Collection/CollectionAuthentication.vue.js.map +0 -1
  1085. package/dist/views/Collection/CollectionAuthentication.vue.script.js +0 -52
  1086. package/dist/views/Collection/CollectionAuthentication.vue.script.js.map +0 -1
  1087. package/dist/views/Collection/CollectionCookies.vue.d.ts +0 -4
  1088. package/dist/views/Collection/CollectionCookies.vue.d.ts.map +0 -1
  1089. package/dist/views/Collection/CollectionCookies.vue.js +0 -7
  1090. package/dist/views/Collection/CollectionCookies.vue.js.map +0 -1
  1091. package/dist/views/Collection/CollectionCookies.vue.script.js +0 -18
  1092. package/dist/views/Collection/CollectionCookies.vue.script.js.map +0 -1
  1093. package/dist/views/Collection/CollectionEnvironment.vue.d.ts +0 -4
  1094. package/dist/views/Collection/CollectionEnvironment.vue.d.ts.map +0 -1
  1095. package/dist/views/Collection/CollectionEnvironment.vue.js +0 -8
  1096. package/dist/views/Collection/CollectionEnvironment.vue.js.map +0 -1
  1097. package/dist/views/Collection/CollectionEnvironment.vue.script.js +0 -238
  1098. package/dist/views/Collection/CollectionEnvironment.vue.script.js.map +0 -1
  1099. package/dist/views/Collection/CollectionInfoForm.vue.d.ts +0 -4
  1100. package/dist/views/Collection/CollectionInfoForm.vue.d.ts.map +0 -1
  1101. package/dist/views/Collection/CollectionInfoForm.vue.js +0 -9
  1102. package/dist/views/Collection/CollectionInfoForm.vue.js.map +0 -1
  1103. package/dist/views/Collection/CollectionInfoForm.vue.script.js +0 -73
  1104. package/dist/views/Collection/CollectionInfoForm.vue.script.js.map +0 -1
  1105. package/dist/views/Collection/CollectionNavigation.vue.d.ts.map +0 -1
  1106. package/dist/views/Collection/CollectionNavigation.vue.js +0 -7
  1107. package/dist/views/Collection/CollectionNavigation.vue.js.map +0 -1
  1108. package/dist/views/Collection/CollectionNavigation.vue.script.js +0 -75
  1109. package/dist/views/Collection/CollectionNavigation.vue.script.js.map +0 -1
  1110. package/dist/views/Collection/CollectionOverview.vue.d.ts +0 -4
  1111. package/dist/views/Collection/CollectionOverview.vue.d.ts.map +0 -1
  1112. package/dist/views/Collection/CollectionOverview.vue.js +0 -7
  1113. package/dist/views/Collection/CollectionOverview.vue.js.map +0 -1
  1114. package/dist/views/Collection/CollectionOverview.vue.script.js +0 -42
  1115. package/dist/views/Collection/CollectionOverview.vue.script.js.map +0 -1
  1116. package/dist/views/Collection/CollectionScripts.vue.d.ts +0 -4
  1117. package/dist/views/Collection/CollectionScripts.vue.d.ts.map +0 -1
  1118. package/dist/views/Collection/CollectionScripts.vue.js +0 -7
  1119. package/dist/views/Collection/CollectionScripts.vue.js.map +0 -1
  1120. package/dist/views/Collection/CollectionScripts.vue.script.js +0 -18
  1121. package/dist/views/Collection/CollectionScripts.vue.script.js.map +0 -1
  1122. package/dist/views/Collection/CollectionServerForm.vue.d.ts +0 -11
  1123. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +0 -1
  1124. package/dist/views/Collection/CollectionServerForm.vue.js +0 -7
  1125. package/dist/views/Collection/CollectionServerForm.vue.js.map +0 -1
  1126. package/dist/views/Collection/CollectionServerForm.vue.script.js +0 -76
  1127. package/dist/views/Collection/CollectionServerForm.vue.script.js.map +0 -1
  1128. package/dist/views/Collection/CollectionServers.vue.d.ts +0 -4
  1129. package/dist/views/Collection/CollectionServers.vue.d.ts.map +0 -1
  1130. package/dist/views/Collection/CollectionServers.vue.js +0 -7
  1131. package/dist/views/Collection/CollectionServers.vue.js.map +0 -1
  1132. package/dist/views/Collection/CollectionServers.vue.script.js +0 -95
  1133. package/dist/views/Collection/CollectionServers.vue.script.js.map +0 -1
  1134. package/dist/views/Collection/CollectionSettings.vue.d.ts +0 -4
  1135. package/dist/views/Collection/CollectionSettings.vue.d.ts.map +0 -1
  1136. package/dist/views/Collection/CollectionSettings.vue.js +0 -7
  1137. package/dist/views/Collection/CollectionSettings.vue.js.map +0 -1
  1138. package/dist/views/Collection/CollectionSettings.vue.script.js +0 -87
  1139. package/dist/views/Collection/CollectionSettings.vue.script.js.map +0 -1
  1140. package/dist/views/Collection/CollectionSync.vue.d.ts +0 -4
  1141. package/dist/views/Collection/CollectionSync.vue.d.ts.map +0 -1
  1142. package/dist/views/Collection/CollectionSync.vue.js +0 -7
  1143. package/dist/views/Collection/CollectionSync.vue.js.map +0 -1
  1144. package/dist/views/Collection/CollectionSync.vue.script.js +0 -18
  1145. package/dist/views/Collection/CollectionSync.vue.script.js.map +0 -1
  1146. package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +0 -14
  1147. package/dist/views/Collection/components/EnvironmentForm.vue.d.ts.map +0 -1
  1148. package/dist/views/Collection/components/EnvironmentForm.vue.js +0 -9
  1149. package/dist/views/Collection/components/EnvironmentForm.vue.js.map +0 -1
  1150. package/dist/views/Collection/components/EnvironmentForm.vue.script.js +0 -284
  1151. package/dist/views/Collection/components/EnvironmentForm.vue.script.js.map +0 -1
  1152. package/dist/views/Collection/components/MarkdownInput.vue.d.ts +0 -17
  1153. package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +0 -1
  1154. package/dist/views/Collection/components/MarkdownInput.vue.js +0 -9
  1155. package/dist/views/Collection/components/MarkdownInput.vue.js.map +0 -1
  1156. package/dist/views/Collection/components/MarkdownInput.vue.script.js +0 -92
  1157. package/dist/views/Collection/components/MarkdownInput.vue.script.js.map +0 -1
  1158. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +0 -16
  1159. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +0 -1
  1160. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +0 -7
  1161. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js.map +0 -1
  1162. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.script.js +0 -74
  1163. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.script.js.map +0 -1
  1164. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts +0 -28
  1165. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +0 -1
  1166. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +0 -66
  1167. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js.map +0 -1
  1168. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +0 -16
  1169. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +0 -1
  1170. package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +0 -86
  1171. package/dist/views/Components/CodeSnippet/helpers/get-har-request.js.map +0 -1
  1172. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +0 -1
  1173. package/dist/views/Components/CodeSnippet/helpers/get-snippet.js.map +0 -1
  1174. package/dist/views/Components/CodeSnippet/index.d.ts +0 -5
  1175. package/dist/views/Components/CodeSnippet/index.d.ts.map +0 -1
  1176. package/dist/views/Components/CodeSnippet/index.js +0 -5
  1177. package/dist/views/Cookies/CookieForm.vue.d.ts +0 -4
  1178. package/dist/views/Cookies/CookieForm.vue.d.ts.map +0 -1
  1179. package/dist/views/Cookies/CookieForm.vue.js +0 -7
  1180. package/dist/views/Cookies/CookieForm.vue.js.map +0 -1
  1181. package/dist/views/Cookies/CookieForm.vue.script.js +0 -50
  1182. package/dist/views/Cookies/CookieForm.vue.script.js.map +0 -1
  1183. package/dist/views/Cookies/CookieModal.vue.d.ts +0 -22
  1184. package/dist/views/Cookies/CookieModal.vue.d.ts.map +0 -1
  1185. package/dist/views/Cookies/CookieModal.vue.js +0 -9
  1186. package/dist/views/Cookies/CookieModal.vue.js.map +0 -1
  1187. package/dist/views/Cookies/CookieModal.vue.script.js +0 -83
  1188. package/dist/views/Cookies/CookieModal.vue.script.js.map +0 -1
  1189. package/dist/views/Cookies/CookieRaw.vue.d.ts +0 -4
  1190. package/dist/views/Cookies/CookieRaw.vue.d.ts.map +0 -1
  1191. package/dist/views/Cookies/Cookies.vue.d.ts +0 -4
  1192. package/dist/views/Cookies/Cookies.vue.d.ts.map +0 -1
  1193. package/dist/views/Cookies/Cookies.vue.js +0 -7
  1194. package/dist/views/Cookies/Cookies.vue.js.map +0 -1
  1195. package/dist/views/Cookies/Cookies.vue.script.js +0 -156
  1196. package/dist/views/Cookies/Cookies.vue.script.js.map +0 -1
  1197. package/dist/views/Environment/Environment.vue.d.ts +0 -4
  1198. package/dist/views/Environment/Environment.vue.d.ts.map +0 -1
  1199. package/dist/views/Environment/Environment.vue.js +0 -7
  1200. package/dist/views/Environment/Environment.vue.js.map +0 -1
  1201. package/dist/views/Environment/Environment.vue.script.js +0 -384
  1202. package/dist/views/Environment/Environment.vue.script.js.map +0 -1
  1203. package/dist/views/Environment/EnvironmentColorModal.vue.d.ts +0 -15
  1204. package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +0 -1
  1205. package/dist/views/Environment/EnvironmentColorModal.vue.js +0 -7
  1206. package/dist/views/Environment/EnvironmentColorModal.vue.js.map +0 -1
  1207. package/dist/views/Environment/EnvironmentColorModal.vue.script.js +0 -47
  1208. package/dist/views/Environment/EnvironmentColorModal.vue.script.js.map +0 -1
  1209. package/dist/views/Environment/EnvironmentColors.vue.d.ts +0 -14
  1210. package/dist/views/Environment/EnvironmentColors.vue.d.ts.map +0 -1
  1211. package/dist/views/Environment/EnvironmentColors.vue.js +0 -7
  1212. package/dist/views/Environment/EnvironmentColors.vue.js.map +0 -1
  1213. package/dist/views/Environment/EnvironmentColors.vue.script.js +0 -126
  1214. package/dist/views/Environment/EnvironmentColors.vue.script.js.map +0 -1
  1215. package/dist/views/Environment/EnvironmentModal.vue.d.ts +0 -27
  1216. package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +0 -1
  1217. package/dist/views/Environment/EnvironmentModal.vue.js +0 -7
  1218. package/dist/views/Environment/EnvironmentModal.vue.js.map +0 -1
  1219. package/dist/views/Environment/EnvironmentModal.vue.script.js +0 -122
  1220. package/dist/views/Environment/EnvironmentModal.vue.script.js.map +0 -1
  1221. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +0 -22
  1222. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +0 -1
  1223. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +0 -7
  1224. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js.map +0 -1
  1225. package/dist/views/Environment/EnvironmentVariableDropdown.vue.script.js +0 -133
  1226. package/dist/views/Environment/EnvironmentVariableDropdown.vue.script.js.map +0 -1
  1227. package/dist/views/Environment/handle-drag.d.ts +0 -13
  1228. package/dist/views/Environment/handle-drag.d.ts.map +0 -1
  1229. package/dist/views/Environment/handle-drag.js +0 -38
  1230. package/dist/views/Environment/handle-drag.js.map +0 -1
  1231. package/dist/views/Request/Request.vue.d.ts +0 -21
  1232. package/dist/views/Request/Request.vue.d.ts.map +0 -1
  1233. package/dist/views/Request/Request.vue.js +0 -9
  1234. package/dist/views/Request/Request.vue.js.map +0 -1
  1235. package/dist/views/Request/Request.vue.script.js +0 -117
  1236. package/dist/views/Request/Request.vue.script.js.map +0 -1
  1237. package/dist/views/Request/RequestRoot.vue.d.ts +0 -14
  1238. package/dist/views/Request/RequestRoot.vue.d.ts.map +0 -1
  1239. package/dist/views/Request/RequestRoot.vue.js +0 -9
  1240. package/dist/views/Request/RequestRoot.vue.js.map +0 -1
  1241. package/dist/views/Request/RequestRoot.vue.script.js +0 -158
  1242. package/dist/views/Request/RequestRoot.vue.script.js.map +0 -1
  1243. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +0 -22
  1244. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +0 -1
  1245. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +0 -7
  1246. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js.map +0 -1
  1247. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.script.js +0 -52
  1248. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.script.js.map +0 -1
  1249. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +0 -31
  1250. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +0 -1
  1251. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +0 -7
  1252. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js.map +0 -1
  1253. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.script.js +0 -214
  1254. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.script.js.map +0 -1
  1255. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +0 -10
  1256. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +0 -1
  1257. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +0 -7
  1258. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js.map +0 -1
  1259. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.script.js +0 -106
  1260. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.script.js.map +0 -1
  1261. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +0 -222
  1262. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +0 -1
  1263. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +0 -9
  1264. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js.map +0 -1
  1265. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.script.js +0 -216
  1266. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.script.js.map +0 -1
  1267. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +0 -220
  1268. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +0 -1
  1269. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +0 -9
  1270. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js.map +0 -1
  1271. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.script.js +0 -116
  1272. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.script.js.map +0 -1
  1273. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +0 -43
  1274. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +0 -1
  1275. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +0 -7
  1276. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js.map +0 -1
  1277. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.script.js +0 -73
  1278. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.script.js.map +0 -1
  1279. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +0 -31
  1280. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +0 -1
  1281. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +0 -7
  1282. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js.map +0 -1
  1283. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.script.js +0 -205
  1284. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.script.js.map +0 -1
  1285. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts +0 -9
  1286. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts.map +0 -1
  1287. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.js +0 -39
  1288. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.js.map +0 -1
  1289. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +0 -4
  1290. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +0 -1
  1291. package/dist/views/Request/RequestSection/RequestAuth/index.js +0 -4
  1292. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +0 -16
  1293. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +0 -1
  1294. package/dist/views/Request/RequestSection/RequestBody.vue.js +0 -9
  1295. package/dist/views/Request/RequestSection/RequestBody.vue.js.map +0 -1
  1296. package/dist/views/Request/RequestSection/RequestBody.vue.script.js +0 -477
  1297. package/dist/views/Request/RequestSection/RequestBody.vue.script.js.map +0 -1
  1298. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +0 -15
  1299. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +0 -1
  1300. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +0 -9
  1301. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js.map +0 -1
  1302. package/dist/views/Request/RequestSection/RequestCodeExample.vue.script.js +0 -187
  1303. package/dist/views/Request/RequestSection/RequestCodeExample.vue.script.js.map +0 -1
  1304. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +0 -25
  1305. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +0 -1
  1306. package/dist/views/Request/RequestSection/RequestParams.vue.js +0 -7
  1307. package/dist/views/Request/RequestSection/RequestParams.vue.js.map +0 -1
  1308. package/dist/views/Request/RequestSection/RequestParams.vue.script.js +0 -180
  1309. package/dist/views/Request/RequestSection/RequestParams.vue.script.js.map +0 -1
  1310. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +0 -18
  1311. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +0 -1
  1312. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +0 -7
  1313. package/dist/views/Request/RequestSection/RequestPathParams.vue.js.map +0 -1
  1314. package/dist/views/Request/RequestSection/RequestPathParams.vue.script.js +0 -115
  1315. package/dist/views/Request/RequestSection/RequestPathParams.vue.script.js.map +0 -1
  1316. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +0 -20
  1317. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +0 -1
  1318. package/dist/views/Request/RequestSection/RequestSection.vue.js +0 -9
  1319. package/dist/views/Request/RequestSection/RequestSection.vue.js.map +0 -1
  1320. package/dist/views/Request/RequestSection/RequestSection.vue.script.js +0 -297
  1321. package/dist/views/Request/RequestSection/RequestSection.vue.script.js.map +0 -1
  1322. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +0 -47
  1323. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +0 -1
  1324. package/dist/views/Request/RequestSection/RequestTable.vue.js +0 -9
  1325. package/dist/views/Request/RequestSection/RequestTable.vue.js.map +0 -1
  1326. package/dist/views/Request/RequestSection/RequestTable.vue.script.js +0 -266
  1327. package/dist/views/Request/RequestSection/RequestTable.vue.script.js.map +0 -1
  1328. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts +0 -8
  1329. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +0 -1
  1330. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +0 -9
  1331. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js.map +0 -1
  1332. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.script.js +0 -64
  1333. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.script.js.map +0 -1
  1334. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts +0 -6
  1335. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts.map +0 -1
  1336. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +0 -38
  1337. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js.map +0 -1
  1338. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts +0 -6
  1339. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +0 -1
  1340. package/dist/views/Request/RequestSection/helpers/getting-started.js +0 -17
  1341. package/dist/views/Request/RequestSection/helpers/getting-started.js.map +0 -1
  1342. package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts +0 -8
  1343. package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts.map +0 -1
  1344. package/dist/views/Request/RequestSection/helpers/update-scheme.js +0 -22
  1345. package/dist/views/Request/RequestSection/helpers/update-scheme.js.map +0 -1
  1346. package/dist/views/Request/RequestSection/index.d.ts +0 -3
  1347. package/dist/views/Request/RequestSection/index.d.ts.map +0 -1
  1348. package/dist/views/Request/RequestSection/index.js +0 -3
  1349. package/dist/views/Request/RequestSidebar.vue.d.ts +0 -16
  1350. package/dist/views/Request/RequestSidebar.vue.d.ts.map +0 -1
  1351. package/dist/views/Request/RequestSidebar.vue.js +0 -9
  1352. package/dist/views/Request/RequestSidebar.vue.js.map +0 -1
  1353. package/dist/views/Request/RequestSidebar.vue.script.js +0 -307
  1354. package/dist/views/Request/RequestSidebar.vue.script.js.map +0 -1
  1355. package/dist/views/Request/RequestSidebarItem.vue.d.ts +0 -43
  1356. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +0 -1
  1357. package/dist/views/Request/RequestSidebarItem.vue.js +0 -10
  1358. package/dist/views/Request/RequestSidebarItem.vue.js.map +0 -1
  1359. package/dist/views/Request/RequestSidebarItem.vue.script.js +0 -475
  1360. package/dist/views/Request/RequestSidebarItem.vue.script.js.map +0 -1
  1361. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +0 -16
  1362. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +0 -1
  1363. package/dist/views/Request/RequestSidebarItemMenu.vue.js +0 -9
  1364. package/dist/views/Request/RequestSidebarItemMenu.vue.js.map +0 -1
  1365. package/dist/views/Request/RequestSidebarItemMenu.vue.script.js +0 -222
  1366. package/dist/views/Request/RequestSidebarItemMenu.vue.script.js.map +0 -1
  1367. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +0 -22
  1368. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +0 -1
  1369. package/dist/views/Request/RequestSubpageHeader.vue.js +0 -9
  1370. package/dist/views/Request/RequestSubpageHeader.vue.js.map +0 -1
  1371. package/dist/views/Request/RequestSubpageHeader.vue.script.js +0 -92
  1372. package/dist/views/Request/RequestSubpageHeader.vue.script.js.map +0 -1
  1373. package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts +0 -12
  1374. package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +0 -1
  1375. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +0 -7
  1376. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js.map +0 -1
  1377. package/dist/views/Request/ResponseSection/RequestHeaders.vue.script.js +0 -77
  1378. package/dist/views/Request/ResponseSection/RequestHeaders.vue.script.js.map +0 -1
  1379. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +0 -14
  1380. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +0 -1
  1381. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +0 -9
  1382. package/dist/views/Request/ResponseSection/ResponseBody.vue.js.map +0 -1
  1383. package/dist/views/Request/ResponseSection/ResponseBody.vue.script.js +0 -91
  1384. package/dist/views/Request/ResponseSection/ResponseBody.vue.script.js.map +0 -1
  1385. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +0 -9
  1386. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +0 -1
  1387. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +0 -7
  1388. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js.map +0 -1
  1389. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.script.js +0 -35
  1390. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.script.js.map +0 -1
  1391. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts +0 -14
  1392. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts.map +0 -1
  1393. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +0 -14
  1394. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js.map +0 -1
  1395. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +0 -11
  1396. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +0 -1
  1397. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +0 -9
  1398. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js.map +0 -1
  1399. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.script.js +0 -64
  1400. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.script.js.map +0 -1
  1401. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +0 -9
  1402. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +0 -1
  1403. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +0 -9
  1404. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js.map +0 -1
  1405. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.script.js +0 -54
  1406. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.script.js.map +0 -1
  1407. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.d.ts +0 -7
  1408. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.d.ts.map +0 -1
  1409. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +0 -7
  1410. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js.map +0 -1
  1411. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.script.js +0 -85
  1412. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.script.js.map +0 -1
  1413. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +0 -11
  1414. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts.map +0 -1
  1415. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +0 -7
  1416. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js.map +0 -1
  1417. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.script.js +0 -25
  1418. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.script.js.map +0 -1
  1419. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts +0 -13
  1420. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +0 -1
  1421. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +0 -8
  1422. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js.map +0 -1
  1423. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.script.js +0 -51
  1424. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.script.js.map +0 -1
  1425. package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts +0 -11
  1426. package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts.map +0 -1
  1427. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +0 -7
  1428. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js.map +0 -1
  1429. package/dist/views/Request/ResponseSection/ResponseCookies.vue.script.js +0 -39
  1430. package/dist/views/Request/ResponseSection/ResponseCookies.vue.script.js.map +0 -1
  1431. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +0 -12
  1432. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +0 -1
  1433. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +0 -9
  1434. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js.map +0 -1
  1435. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.script.js +0 -98
  1436. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.script.js.map +0 -1
  1437. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts +0 -12
  1438. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +0 -1
  1439. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +0 -7
  1440. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js.map +0 -1
  1441. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.script.js +0 -77
  1442. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.script.js.map +0 -1
  1443. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts +0 -4
  1444. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +0 -1
  1445. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +0 -9
  1446. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js.map +0 -1
  1447. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.script.js +0 -44
  1448. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.script.js.map +0 -1
  1449. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts +0 -8
  1450. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +0 -1
  1451. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +0 -7
  1452. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js.map +0 -1
  1453. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.script.js +0 -64
  1454. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.script.js.map +0 -1
  1455. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +0 -15
  1456. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +0 -1
  1457. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +0 -9
  1458. package/dist/views/Request/ResponseSection/ResponseSection.vue.js.map +0 -1
  1459. package/dist/views/Request/ResponseSection/ResponseSection.vue.script.js +0 -206
  1460. package/dist/views/Request/ResponseSection/ResponseSection.vue.script.js.map +0 -1
  1461. package/dist/views/Request/ResponseSection/index.d.ts +0 -3
  1462. package/dist/views/Request/ResponseSection/index.d.ts.map +0 -1
  1463. package/dist/views/Request/ResponseSection/index.js +0 -3
  1464. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts +0 -4
  1465. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +0 -1
  1466. package/dist/views/Request/components/WorkspaceDropdown.vue.js +0 -7
  1467. package/dist/views/Request/components/WorkspaceDropdown.vue.js.map +0 -1
  1468. package/dist/views/Request/components/WorkspaceDropdown.vue.script.js +0 -182
  1469. package/dist/views/Request/components/WorkspaceDropdown.vue.script.js.map +0 -1
  1470. package/dist/views/Request/components/index.d.ts +0 -2
  1471. package/dist/views/Request/components/index.d.ts.map +0 -1
  1472. package/dist/views/Request/components/index.js +0 -2
  1473. package/dist/views/Request/consts/index.d.ts +0 -3
  1474. package/dist/views/Request/consts/index.d.ts.map +0 -1
  1475. package/dist/views/Request/consts/index.js +0 -3
  1476. package/dist/views/Request/consts/mediaTypes.d.ts +0 -20
  1477. package/dist/views/Request/consts/mediaTypes.d.ts.map +0 -1
  1478. package/dist/views/Request/consts/mediaTypes.js +0 -231
  1479. package/dist/views/Request/consts/mediaTypes.js.map +0 -1
  1480. package/dist/views/Request/consts/new-auth-options.d.ts +0 -107
  1481. package/dist/views/Request/consts/new-auth-options.d.ts.map +0 -1
  1482. package/dist/views/Request/consts/new-auth-options.js +0 -90
  1483. package/dist/views/Request/consts/new-auth-options.js.map +0 -1
  1484. package/dist/views/Request/handle-drag.d.ts +0 -9
  1485. package/dist/views/Request/handle-drag.d.ts.map +0 -1
  1486. package/dist/views/Request/handle-drag.js +0 -51
  1487. package/dist/views/Request/handle-drag.js.map +0 -1
  1488. package/dist/views/Request/hooks/useOpenApiWatcher.d.ts +0 -9
  1489. package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +0 -1
  1490. package/dist/views/Request/hooks/useOpenApiWatcher.js +0 -96
  1491. package/dist/views/Request/hooks/useOpenApiWatcher.js.map +0 -1
  1492. package/dist/views/Request/libs/auth.d.ts +0 -27
  1493. package/dist/views/Request/libs/auth.d.ts.map +0 -1
  1494. package/dist/views/Request/libs/auth.js +0 -74
  1495. package/dist/views/Request/libs/auth.js.map +0 -1
  1496. package/dist/views/Request/libs/index.d.ts +0 -4
  1497. package/dist/views/Request/libs/index.d.ts.map +0 -1
  1498. package/dist/views/Request/libs/index.js +0 -4
  1499. package/dist/views/Request/libs/oauth2.d.ts +0 -43
  1500. package/dist/views/Request/libs/oauth2.d.ts.map +0 -1
  1501. package/dist/views/Request/libs/oauth2.js +0 -178
  1502. package/dist/views/Request/libs/oauth2.js.map +0 -1
  1503. package/dist/views/Request/libs/request.d.ts +0 -21
  1504. package/dist/views/Request/libs/request.d.ts.map +0 -1
  1505. package/dist/views/Request/libs/request.js +0 -46
  1506. package/dist/views/Request/libs/request.js.map +0 -1
  1507. package/dist/views/Request/libs/watch-mode.d.ts +0 -60
  1508. package/dist/views/Request/libs/watch-mode.d.ts.map +0 -1
  1509. package/dist/views/Request/libs/watch-mode.js +0 -375
  1510. package/dist/views/Request/libs/watch-mode.js.map +0 -1
  1511. package/dist/views/Request/types/index.d.ts +0 -2
  1512. package/dist/views/Request/types/index.d.ts.map +0 -1
  1513. package/dist/views/Request/types/index.js +0 -0
  1514. package/dist/views/Request/types/sidebar-item.d.ts +0 -30
  1515. package/dist/views/Request/types/sidebar-item.d.ts.map +0 -1
  1516. package/dist/views/Settings/Settings.vue.d.ts +0 -5
  1517. package/dist/views/Settings/Settings.vue.d.ts.map +0 -1
  1518. package/dist/views/Settings/Settings.vue.js +0 -7
  1519. package/dist/views/Settings/Settings.vue.js.map +0 -1
  1520. package/dist/views/Settings/Settings.vue.script.js +0 -28
  1521. package/dist/views/Settings/Settings.vue.script.js.map +0 -1
  1522. package/dist/views/Settings/SettingsGeneral.vue.d.ts +0 -4
  1523. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +0 -1
  1524. package/dist/views/Settings/SettingsGeneral.vue.js +0 -7
  1525. package/dist/views/Settings/SettingsGeneral.vue.js.map +0 -1
  1526. package/dist/views/Settings/SettingsGeneral.vue.script.js +0 -241
  1527. package/dist/views/Settings/SettingsGeneral.vue.script.js.map +0 -1
  1528. package/dist/views/Settings/components/SettingsAppearance.vue.d.ts +0 -4
  1529. package/dist/views/Settings/components/SettingsAppearance.vue.d.ts.map +0 -1
  1530. package/dist/views/Settings/components/SettingsAppearance.vue.js +0 -7
  1531. package/dist/views/Settings/components/SettingsAppearance.vue.js.map +0 -1
  1532. package/dist/views/Settings/components/SettingsAppearance.vue.script.js +0 -62
  1533. package/dist/views/Settings/components/SettingsAppearance.vue.script.js.map +0 -1
  1534. package/dist/views/Settings/components/SettingsSection.vue.d.ts +0 -15
  1535. package/dist/views/Settings/components/SettingsSection.vue.d.ts.map +0 -1
  1536. package/dist/views/Settings/components/SettingsSection.vue.js +0 -7
  1537. package/dist/views/Settings/components/SettingsSection.vue.js.map +0 -1
  1538. package/dist/views/Settings/components/SettingsSection.vue.script.js +0 -27
  1539. package/dist/views/Settings/components/SettingsSection.vue.script.js.map +0 -1
  1540. /package/dist/{components → v2/blocks/operation-block/components}/OpenApiClientButton.vue.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentCreateModal.vue.js","names":[],"sources":["../../../../../src/v2/features/environments/components/EnvironmentCreateModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarModal, type ModalState } from '@scalar/components'\nimport type {\n CollectionType,\n WorkspaceEventBus,\n} from '@scalar/workspace-store/events'\nimport type { XScalarEnvironments } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport { computed, ref, watch } from 'vue'\n\nimport CommandActionForm from '@/components/CommandPalette/CommandActionForm.vue'\nimport CommandActionInput from '@/components/CommandPalette/CommandActionInput.vue'\n\nimport EnvironmentColors from './EnvironmentColors.vue'\n\nconst {\n state,\n eventBus,\n collectionType,\n environments,\n selectedEnvironmentName,\n} = defineProps<\n {\n environments: NonNullable<XScalarEnvironments['x-scalar-environments']>\n selectedEnvironmentName: string | null\n state: ModalState\n eventBus: WorkspaceEventBus\n } & CollectionType\n>()\n\n/** Default color for new environments. */\nconst DEFAULT_COLOR = '#FFFFFF'\n\nconst name = ref('')\nconst selectedColor = ref(DEFAULT_COLOR)\n\n/** Ensure [re]set the form on open */\nwatch(\n () => state.open,\n (isOpen) => {\n if (isOpen) {\n const environment = environments[selectedEnvironmentName ?? '']\n\n // We are editing so lets fill in the form with the existing data\n if (selectedEnvironmentName && environment) {\n name.value = selectedEnvironmentName\n selectedColor.value = environment.color\n }\n\n // We are adding a new environment so lets clear the form\n else {\n name.value = ''\n selectedColor.value = DEFAULT_COLOR\n }\n }\n },\n)\n\n/**\n * Handle color selection from the color picker.\n * Updates the selected color for the new environment.\n */\nconst handleColorSelect = (color: string): void => {\n selectedColor.value = color\n}\n\n/** Emits an event to create the environment with the provided name and color. */\nconst handleSubmit = (): void => {\n // Editing an existing environment\n if (selectedEnvironmentName) {\n eventBus.emit('environment:upsert:environment', {\n oldEnvironmentName: selectedEnvironmentName,\n payload: {\n color: selectedColor.value,\n },\n environmentName: name.value.trim(),\n collectionType,\n })\n }\n // Adding a new environment\n else {\n eventBus.emit('environment:upsert:environment', {\n environmentName: name.value.trim(),\n payload: {\n color: selectedColor.value,\n },\n collectionType,\n })\n }\n\n state.hide()\n}\n\n/** Check if the environment name is a duplicate */\nconst isDuplicateName = computed(() => {\n if (selectedEnvironmentName) {\n return (\n name.value !== selectedEnvironmentName &&\n Object.keys(environments).includes(name.value)\n )\n }\n\n return Object.keys(environments).includes(name.value)\n})\n</script>\n\n<template>\n <ScalarModal\n bodyClass=\"border-t-0 rounded-t-lg\"\n size=\"xs\"\n :state=\"state\">\n <CommandActionForm\n :disabled=\"!name.trim() || isDuplicateName\"\n @submit=\"handleSubmit\">\n <div class=\"flex items-start gap-2\">\n <!-- Color picker for environment -->\n <EnvironmentColors\n :activeColor=\"selectedColor\"\n class=\"peer\"\n @select=\"handleColorSelect\" />\n\n <!-- Environment name input, hidden when color selector is expanded -->\n <CommandActionInput\n v-model=\"name\"\n class=\"-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden\"\n placeholder=\"Environment name\" />\n </div>\n\n <!-- Error message -->\n <div\n v-if=\"isDuplicateName\"\n class=\"text-red text-xs\">\n This environment name is already in use.\n </div>\n\n <!-- Submit button -->\n <template #submit>\n {{ selectedEnvironmentName ? 'Update' : 'Add' }} Environment\n </template>\n </CommandActionForm>\n </ScalarModal>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"EnvironmentCreateModal.vue.js","names":[],"sources":["../../../../../src/v2/features/environments/components/EnvironmentCreateModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarModal, type ModalState } from '@scalar/components'\nimport type {\n CollectionType,\n WorkspaceEventBus,\n} from '@scalar/workspace-store/events'\nimport type { XScalarEnvironments } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport { computed, ref, watch } from 'vue'\n\nimport {\n CommandActionForm,\n CommandActionInput,\n} from '@/v2/features/command-palette'\n\nimport EnvironmentColors from './EnvironmentColors.vue'\n\nconst {\n state,\n eventBus,\n collectionType,\n environments,\n selectedEnvironmentName,\n} = defineProps<\n {\n environments: NonNullable<XScalarEnvironments['x-scalar-environments']>\n selectedEnvironmentName: string | null\n state: ModalState\n eventBus: WorkspaceEventBus\n } & CollectionType\n>()\n\n/** Default color for new environments. */\nconst DEFAULT_COLOR = '#FFFFFF'\n\nconst name = ref('')\nconst selectedColor = ref(DEFAULT_COLOR)\n\n/** Ensure [re]set the form on open */\nwatch(\n () => state.open,\n (isOpen) => {\n if (isOpen) {\n const environment = environments[selectedEnvironmentName ?? '']\n\n // We are editing so lets fill in the form with the existing data\n if (selectedEnvironmentName && environment) {\n name.value = selectedEnvironmentName\n selectedColor.value = environment.color\n }\n\n // We are adding a new environment so lets clear the form\n else {\n name.value = ''\n selectedColor.value = DEFAULT_COLOR\n }\n }\n },\n)\n\n/**\n * Handle color selection from the color picker.\n * Updates the selected color for the new environment.\n */\nconst handleColorSelect = (color: string): void => {\n selectedColor.value = color\n}\n\n/** Emits an event to create the environment with the provided name and color. */\nconst handleSubmit = (): void => {\n // Editing an existing environment\n if (selectedEnvironmentName) {\n eventBus.emit('environment:upsert:environment', {\n oldEnvironmentName: selectedEnvironmentName,\n payload: {\n color: selectedColor.value,\n },\n environmentName: name.value.trim(),\n collectionType,\n })\n }\n // Adding a new environment\n else {\n eventBus.emit('environment:upsert:environment', {\n environmentName: name.value.trim(),\n payload: {\n color: selectedColor.value,\n },\n collectionType,\n })\n }\n\n state.hide()\n}\n\n/** Check if the environment name is a duplicate */\nconst isDuplicateName = computed(() => {\n if (selectedEnvironmentName) {\n return (\n name.value !== selectedEnvironmentName &&\n Object.keys(environments).includes(name.value)\n )\n }\n\n return Object.keys(environments).includes(name.value)\n})\n</script>\n\n<template>\n <ScalarModal\n bodyClass=\"border-t-0 rounded-t-lg\"\n size=\"xs\"\n :state=\"state\">\n <CommandActionForm\n :disabled=\"!name.trim() || isDuplicateName\"\n @submit=\"handleSubmit\">\n <div class=\"flex items-start gap-2\">\n <!-- Color picker for environment -->\n <EnvironmentColors\n :activeColor=\"selectedColor\"\n class=\"peer\"\n @select=\"handleColorSelect\" />\n\n <!-- Environment name input, hidden when color selector is expanded -->\n <CommandActionInput\n v-model=\"name\"\n class=\"-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden\"\n placeholder=\"Environment name\" />\n </div>\n\n <!-- Error message -->\n <div\n v-if=\"isDuplicateName\"\n class=\"text-red text-xs\">\n This environment name is already in use.\n </div>\n\n <!-- Submit button -->\n <template #submit>\n {{ selectedEnvironmentName ? 'Update' : 'Add' }} Environment\n </template>\n </CommandActionForm>\n </ScalarModal>\n</template>\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
- import CommandActionForm_default from "../../../../components/CommandPalette/CommandActionForm.vue.js";
2
- import CommandActionInput_default from "../../../../components/CommandPalette/CommandActionInput.vue.js";
1
+ import CommandActionForm_default from "../../command-palette/components/CommandActionForm.vue.js";
2
+ import CommandActionInput_default from "../../command-palette/components/CommandActionInput.vue.js";
3
3
  import EnvironmentColors_default from "./EnvironmentColors.vue.js";
4
4
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, toDisplayString, unref, watch, withCtx } from "vue";
5
5
  import { ScalarModal } from "@scalar/components";
@@ -69,7 +69,7 @@ var EnvironmentCreateModal_vue_vue_type_script_setup_true_lang_default = /* @__P
69
69
  size: "xs",
70
70
  state: __props.state
71
71
  }, {
72
- default: withCtx(() => [createVNode(CommandActionForm_default, {
72
+ default: withCtx(() => [createVNode(unref(CommandActionForm_default), {
73
73
  disabled: !name.value.trim() || isDuplicateName.value,
74
74
  onSubmit: handleSubmit
75
75
  }, {
@@ -78,7 +78,7 @@ var EnvironmentCreateModal_vue_vue_type_script_setup_true_lang_default = /* @__P
78
78
  activeColor: selectedColor.value,
79
79
  class: "peer",
80
80
  onSelect: handleColorSelect
81
- }, null, 8, ["activeColor"]), createVNode(CommandActionInput_default, {
81
+ }, null, 8, ["activeColor"]), createVNode(unref(CommandActionInput_default), {
82
82
  modelValue: name.value,
83
83
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => name.value = $event),
84
84
  class: "-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden",
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentCreateModal.vue.script.js","names":[],"sources":["../../../../../src/v2/features/environments/components/EnvironmentCreateModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarModal, type ModalState } from '@scalar/components'\nimport type {\n CollectionType,\n WorkspaceEventBus,\n} from '@scalar/workspace-store/events'\nimport type { XScalarEnvironments } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport { computed, ref, watch } from 'vue'\n\nimport CommandActionForm from '@/components/CommandPalette/CommandActionForm.vue'\nimport CommandActionInput from '@/components/CommandPalette/CommandActionInput.vue'\n\nimport EnvironmentColors from './EnvironmentColors.vue'\n\nconst {\n state,\n eventBus,\n collectionType,\n environments,\n selectedEnvironmentName,\n} = defineProps<\n {\n environments: NonNullable<XScalarEnvironments['x-scalar-environments']>\n selectedEnvironmentName: string | null\n state: ModalState\n eventBus: WorkspaceEventBus\n } & CollectionType\n>()\n\n/** Default color for new environments. */\nconst DEFAULT_COLOR = '#FFFFFF'\n\nconst name = ref('')\nconst selectedColor = ref(DEFAULT_COLOR)\n\n/** Ensure [re]set the form on open */\nwatch(\n () => state.open,\n (isOpen) => {\n if (isOpen) {\n const environment = environments[selectedEnvironmentName ?? '']\n\n // We are editing so lets fill in the form with the existing data\n if (selectedEnvironmentName && environment) {\n name.value = selectedEnvironmentName\n selectedColor.value = environment.color\n }\n\n // We are adding a new environment so lets clear the form\n else {\n name.value = ''\n selectedColor.value = DEFAULT_COLOR\n }\n }\n },\n)\n\n/**\n * Handle color selection from the color picker.\n * Updates the selected color for the new environment.\n */\nconst handleColorSelect = (color: string): void => {\n selectedColor.value = color\n}\n\n/** Emits an event to create the environment with the provided name and color. */\nconst handleSubmit = (): void => {\n // Editing an existing environment\n if (selectedEnvironmentName) {\n eventBus.emit('environment:upsert:environment', {\n oldEnvironmentName: selectedEnvironmentName,\n payload: {\n color: selectedColor.value,\n },\n environmentName: name.value.trim(),\n collectionType,\n })\n }\n // Adding a new environment\n else {\n eventBus.emit('environment:upsert:environment', {\n environmentName: name.value.trim(),\n payload: {\n color: selectedColor.value,\n },\n collectionType,\n })\n }\n\n state.hide()\n}\n\n/** Check if the environment name is a duplicate */\nconst isDuplicateName = computed(() => {\n if (selectedEnvironmentName) {\n return (\n name.value !== selectedEnvironmentName &&\n Object.keys(environments).includes(name.value)\n )\n }\n\n return Object.keys(environments).includes(name.value)\n})\n</script>\n\n<template>\n <ScalarModal\n bodyClass=\"border-t-0 rounded-t-lg\"\n size=\"xs\"\n :state=\"state\">\n <CommandActionForm\n :disabled=\"!name.trim() || isDuplicateName\"\n @submit=\"handleSubmit\">\n <div class=\"flex items-start gap-2\">\n <!-- Color picker for environment -->\n <EnvironmentColors\n :activeColor=\"selectedColor\"\n class=\"peer\"\n @select=\"handleColorSelect\" />\n\n <!-- Environment name input, hidden when color selector is expanded -->\n <CommandActionInput\n v-model=\"name\"\n class=\"-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden\"\n placeholder=\"Environment name\" />\n </div>\n\n <!-- Error message -->\n <div\n v-if=\"isDuplicateName\"\n class=\"text-red text-xs\">\n This environment name is already in use.\n </div>\n\n <!-- Submit button -->\n <template #submit>\n {{ selectedEnvironmentName ? 'Update' : 'Add' }} Environment\n </template>\n </CommandActionForm>\n </ScalarModal>\n</template>\n"],"mappings":";;;;;;;;;;;AA8BA,IAAM,gBAAgB;;;;;;;;;;;;EAEtB,MAAM,OAAO,IAAI,GAAE;EACnB,MAAM,gBAAgB,IAAI,cAAa;;AAGvC,cACQ,QAAA,MAAM,OACX,WAAW;AACV,OAAI,QAAQ;IACV,MAAM,cAAc,QAAA,aAAa,QAAA,2BAA2B;AAG5D,QAAI,QAAA,2BAA2B,aAAa;AAC1C,UAAK,QAAQ,QAAA;AACb,mBAAc,QAAQ,YAAY;WAI/B;AACH,UAAK,QAAQ;AACb,mBAAc,QAAQ;;;IAI9B;;;;;EAMA,MAAM,qBAAqB,UAAwB;AACjD,iBAAc,QAAQ;;;EAIxB,MAAM,qBAA2B;AAE/B,OAAI,QAAA,wBACF,SAAA,SAAS,KAAK,kCAAkC;IAC9C,oBAAoB,QAAA;IACpB,SAAS,EACP,OAAO,cAAc,OACtB;IACD,iBAAiB,KAAK,MAAM,MAAM;IAClC,gBAAa,QAAA;IACd,CAAA;OAID,SAAA,SAAS,KAAK,kCAAkC;IAC9C,iBAAiB,KAAK,MAAM,MAAM;IAClC,SAAS,EACP,OAAO,cAAc,OACtB;IACD,gBAAa,QAAA;IACd,CAAA;AAGH,WAAA,MAAM,MAAK;;;EAIb,MAAM,kBAAkB,eAAe;AACrC,OAAI,QAAA,wBACF,QACE,KAAK,UAAU,QAAA,2BACf,OAAO,KAAK,QAAA,aAAa,CAAC,SAAS,KAAK,MAAK;AAIjD,UAAO,OAAO,KAAK,QAAA,aAAa,CAAC,SAAS,KAAK,MAAK;IACrD;;uBAIC,YAiCc,MAAA,YAAA,EAAA;IAhCZ,WAAU;IACV,MAAK;IACJ,OAAO,QAAA;;2BA6BY,CA5BpB,YA4BoB,2BAAA;KA3BjB,UAAQ,CAAG,KAAA,MAAK,MAAI,IAAM,gBAAA;KAC1B,UAAQ;;KAuBE,QAAM,cACiC,CAAA,gBAAA,gBAA7C,QAAA,0BAAuB,WAAA,MAAA,GAAsB,iBAClD,EAAA,CAAA,CAAA;4BAZM,CAZN,mBAYM,OAZN,YAYM,CAVJ,YAGgC,2BAAA;MAF7B,aAAa,cAAA;MACd,OAAM;MACL,UAAQ;mCAGX,YAGmC,4BAAA;kBAFxB,KAAA;wEAAI,QAAA;MACb,OAAM;MACN,aAAY;oCAKR,gBAAA,SAAA,WAAA,EADR,mBAIM,OAJN,YAE2B,6CAE3B,IAAA,mBAAA,IAAA,KAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"EnvironmentCreateModal.vue.script.js","names":[],"sources":["../../../../../src/v2/features/environments/components/EnvironmentCreateModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarModal, type ModalState } from '@scalar/components'\nimport type {\n CollectionType,\n WorkspaceEventBus,\n} from '@scalar/workspace-store/events'\nimport type { XScalarEnvironments } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport { computed, ref, watch } from 'vue'\n\nimport {\n CommandActionForm,\n CommandActionInput,\n} from '@/v2/features/command-palette'\n\nimport EnvironmentColors from './EnvironmentColors.vue'\n\nconst {\n state,\n eventBus,\n collectionType,\n environments,\n selectedEnvironmentName,\n} = defineProps<\n {\n environments: NonNullable<XScalarEnvironments['x-scalar-environments']>\n selectedEnvironmentName: string | null\n state: ModalState\n eventBus: WorkspaceEventBus\n } & CollectionType\n>()\n\n/** Default color for new environments. */\nconst DEFAULT_COLOR = '#FFFFFF'\n\nconst name = ref('')\nconst selectedColor = ref(DEFAULT_COLOR)\n\n/** Ensure [re]set the form on open */\nwatch(\n () => state.open,\n (isOpen) => {\n if (isOpen) {\n const environment = environments[selectedEnvironmentName ?? '']\n\n // We are editing so lets fill in the form with the existing data\n if (selectedEnvironmentName && environment) {\n name.value = selectedEnvironmentName\n selectedColor.value = environment.color\n }\n\n // We are adding a new environment so lets clear the form\n else {\n name.value = ''\n selectedColor.value = DEFAULT_COLOR\n }\n }\n },\n)\n\n/**\n * Handle color selection from the color picker.\n * Updates the selected color for the new environment.\n */\nconst handleColorSelect = (color: string): void => {\n selectedColor.value = color\n}\n\n/** Emits an event to create the environment with the provided name and color. */\nconst handleSubmit = (): void => {\n // Editing an existing environment\n if (selectedEnvironmentName) {\n eventBus.emit('environment:upsert:environment', {\n oldEnvironmentName: selectedEnvironmentName,\n payload: {\n color: selectedColor.value,\n },\n environmentName: name.value.trim(),\n collectionType,\n })\n }\n // Adding a new environment\n else {\n eventBus.emit('environment:upsert:environment', {\n environmentName: name.value.trim(),\n payload: {\n color: selectedColor.value,\n },\n collectionType,\n })\n }\n\n state.hide()\n}\n\n/** Check if the environment name is a duplicate */\nconst isDuplicateName = computed(() => {\n if (selectedEnvironmentName) {\n return (\n name.value !== selectedEnvironmentName &&\n Object.keys(environments).includes(name.value)\n )\n }\n\n return Object.keys(environments).includes(name.value)\n})\n</script>\n\n<template>\n <ScalarModal\n bodyClass=\"border-t-0 rounded-t-lg\"\n size=\"xs\"\n :state=\"state\">\n <CommandActionForm\n :disabled=\"!name.trim() || isDuplicateName\"\n @submit=\"handleSubmit\">\n <div class=\"flex items-start gap-2\">\n <!-- Color picker for environment -->\n <EnvironmentColors\n :activeColor=\"selectedColor\"\n class=\"peer\"\n @select=\"handleColorSelect\" />\n\n <!-- Environment name input, hidden when color selector is expanded -->\n <CommandActionInput\n v-model=\"name\"\n class=\"-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden\"\n placeholder=\"Environment name\" />\n </div>\n\n <!-- Error message -->\n <div\n v-if=\"isDuplicateName\"\n class=\"text-red text-xs\">\n This environment name is already in use.\n </div>\n\n <!-- Submit button -->\n <template #submit>\n {{ selectedEnvironmentName ? 'Update' : 'Add' }} Environment\n </template>\n </CommandActionForm>\n </ScalarModal>\n</template>\n"],"mappings":";;;;;;;;;;;AAgCA,IAAM,gBAAgB;;;;;;;;;;;;EAEtB,MAAM,OAAO,IAAI,GAAE;EACnB,MAAM,gBAAgB,IAAI,cAAa;;AAGvC,cACQ,QAAA,MAAM,OACX,WAAW;AACV,OAAI,QAAQ;IACV,MAAM,cAAc,QAAA,aAAa,QAAA,2BAA2B;AAG5D,QAAI,QAAA,2BAA2B,aAAa;AAC1C,UAAK,QAAQ,QAAA;AACb,mBAAc,QAAQ,YAAY;WAI/B;AACH,UAAK,QAAQ;AACb,mBAAc,QAAQ;;;IAI9B;;;;;EAMA,MAAM,qBAAqB,UAAwB;AACjD,iBAAc,QAAQ;;;EAIxB,MAAM,qBAA2B;AAE/B,OAAI,QAAA,wBACF,SAAA,SAAS,KAAK,kCAAkC;IAC9C,oBAAoB,QAAA;IACpB,SAAS,EACP,OAAO,cAAc,OACtB;IACD,iBAAiB,KAAK,MAAM,MAAM;IAClC,gBAAa,QAAA;IACd,CAAA;OAID,SAAA,SAAS,KAAK,kCAAkC;IAC9C,iBAAiB,KAAK,MAAM,MAAM;IAClC,SAAS,EACP,OAAO,cAAc,OACtB;IACD,gBAAa,QAAA;IACd,CAAA;AAGH,WAAA,MAAM,MAAK;;;EAIb,MAAM,kBAAkB,eAAe;AACrC,OAAI,QAAA,wBACF,QACE,KAAK,UAAU,QAAA,2BACf,OAAO,KAAK,QAAA,aAAa,CAAC,SAAS,KAAK,MAAK;AAIjD,UAAO,OAAO,KAAK,QAAA,aAAa,CAAC,SAAS,KAAK,MAAK;IACrD;;uBAIC,YAiCc,MAAA,YAAA,EAAA;IAhCZ,WAAU;IACV,MAAK;IACJ,OAAO,QAAA;;2BA6BY,CA5BpB,YA4BoB,MAAA,0BAAA,EAAA;KA3BjB,UAAQ,CAAG,KAAA,MAAK,MAAI,IAAM,gBAAA;KAC1B,UAAQ;;KAuBE,QAAM,cACiC,CAAA,gBAAA,gBAA7C,QAAA,0BAAuB,WAAA,MAAA,GAAsB,iBAClD,EAAA,CAAA,CAAA;4BAZM,CAZN,mBAYM,OAZN,YAYM,CAVJ,YAGgC,2BAAA;MAF7B,aAAa,cAAA;MACd,OAAM;MACL,UAAQ;mCAGX,YAGmC,MAAA,2BAAA,EAAA;kBAFxB,KAAA;wEAAI,QAAA;MACb,OAAM;MACN,aAAY;oCAKR,gBAAA,SAAA,WAAA,EADR,mBAIM,OAJN,YAE2B,6CAE3B,IAAA,mBAAA,IAAA,KAAA,CAAA,CAAA"}
@@ -6,6 +6,11 @@ type __VLS_Props = {
6
6
  left: number;
7
7
  top: number;
8
8
  };
9
+ /** Runtime placeholders such as `{{$guid}}`, shown with environment variables */
10
+ contextFunctionItems?: {
11
+ key: string;
12
+ description: string;
13
+ }[];
9
14
  };
10
15
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
11
16
  handleArrowKey: (direction: "up" | "down") => void;
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentVariablesDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesDropdown.vue"],"names":[],"mappings":"AAmKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAKnH,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;AAsSF,QAAA,MAAM,YAAY;gCAhPiB,IAAI,GAAG,MAAM;;;;;;;;kFAoP9C,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"EnvironmentVariablesDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesDropdown.vue"],"names":[],"mappings":"AA6PA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AASnH,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;IAChD,iFAAiF;IACjF,oBAAoB,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;AAqYF,QAAA,MAAM,YAAY;gCAnQiB,IAAI,GAAG,MAAM;;;;;;;;kFAuQ9C,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentVariablesDropdown.vue.js","names":[],"sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesDropdown.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton, ScalarTeleport } from '@scalar/components'\nimport { ScalarIconPlus } from '@scalar/icons'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport { onClickOutside } from '@vueuse/core'\nimport Fuse from 'fuse.js'\nimport { computed, onMounted, ref, type CSSProperties } from 'vue'\n\nconst { query, environment, dropdownPosition } = defineProps<{\n query: string\n environment: XScalarEnvironment\n dropdownPosition?: { left: number; top: number }\n}>()\n\nconst emit = defineEmits<{\n (e: 'select', variable: string): void\n (e: 'redirect'): void\n}>()\n\nconst isOpen = ref(true)\nconst dropdownRef = ref<HTMLElement | null>(null)\nconst selectedVariableIndex = ref(0)\n\nconst redirectToEnvironment = () => {\n emit('redirect')\n isOpen.value = false\n}\n\n/** Normalize the variables to have a name and value */\nconst normalizedVariables = computed(() =>\n environment.variables.map((v) => ({\n key: v.name,\n value: typeof v.value === 'string' ? v.value : v.value.default,\n })),\n)\n\nconst fuse = new Fuse(normalizedVariables.value, {\n keys: ['key', 'value'],\n})\n\nconst filteredVariables = computed(() => {\n if (!query) {\n /** return the last 4 environment variables on first display */\n return normalizedVariables.value\n .slice(-4)\n .filter(({ key, value }) => key !== '' || value !== '')\n }\n\n /** filter environment variables by name */\n const result = fuse.search(query, { limit: 10 })\n if (result.length > 0) {\n return result\n .map((res) => res.item)\n .filter(({ key, value }) => key !== '' || value !== '')\n }\n\n return []\n})\n\nconst selectVariable = (variableKey: string) => {\n emit('select', variableKey)\n}\n\nconst handleArrowKey = (direction: 'up' | 'down') => {\n const offset = direction === 'up' ? -1 : 1\n const length = filteredVariables.value.length\n\n if (length === 0) {\n return\n }\n\n selectedVariableIndex.value =\n (selectedVariableIndex.value + offset + length) % length\n}\n\nconst handleSelect = () => {\n if (selectedVariableIndex.value >= 0) {\n const selectedVariable =\n filteredVariables.value[selectedVariableIndex.value]\n if (selectedVariable) {\n selectVariable(selectedVariable.key)\n }\n }\n}\n\ndefineExpose({\n handleArrowKey,\n handleSelect,\n})\n\nonMounted(() => {\n // Reset selected index to the first item when dropdown opens\n selectedVariableIndex.value = 0\n})\n\nconst dropdownStyle = computed<CSSProperties>(() => {\n return {\n left: (dropdownPosition?.left ?? 0) + 'px',\n // Add a 5px offset from the editor\n top: (dropdownPosition?.top ?? 0) + 5 + 'px',\n }\n})\n\nonClickOutside(\n dropdownRef,\n () => {\n isOpen.value = false\n },\n { ignore: [dropdownRef] },\n)\n</script>\n<template>\n <ScalarTeleport\n v-if=\"isOpen\"\n class=\"scalar-client\">\n <div\n ref=\"dropdownRef\"\n class=\"custom-scroll z-context fixed top-0 left-0 flex max-h-[60svh] w-56 flex-col rounded border p-0.75\"\n :style=\"dropdownStyle\">\n <ul\n v-if=\"filteredVariables.length\"\n class=\"gap-1/2 flex flex-col\">\n <template\n v-for=\"(item, index) in filteredVariables\"\n :key=\"item.key\">\n <li\n class=\"font-code text-xxs hover:bg-b-2 flex h-8 cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150\"\n :class=\"{ 'bg-b-2': index === selectedVariableIndex }\"\n @click=\"selectVariable(item.key)\">\n <div class=\"flex items-center gap-2 whitespace-nowrap\">\n <span\n class=\"h-2.25 w-2.25 min-w-2.25 rounded-full\"\n :style=\"{\n backgroundColor: environment.color,\n }\"></span>\n {{ item.key }}\n </div>\n <span\n class=\"w-20 overflow-hidden text-right text-ellipsis whitespace-nowrap\">\n {{ item.value }}\n </span>\n </li>\n </template>\n </ul>\n <ScalarButton\n v-else\n class=\"font-code text-xxs bg-b-inherit hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150\"\n variant=\"outlined\"\n @click=\"redirectToEnvironment\">\n <ScalarIconPlus class=\"size-3\" />\n Add Variable\n </ScalarButton>\n <!-- Backdrop for the dropdown -->\n <div\n class=\"bg-b-1 brightness-lifted absolute inset-0 -z-1 rounded shadow-lg\" />\n </div>\n </ScalarTeleport>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"EnvironmentVariablesDropdown.vue.js","names":[],"sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesDropdown.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton, ScalarTeleport } from '@scalar/components'\nimport { ScalarIconPlus } from '@scalar/icons'\nimport { POPULAR_CONTEXT_FUNCTION_KEYS } from '@scalar/workspace-store/request-example'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport { onClickOutside } from '@vueuse/core'\nimport Fuse from 'fuse.js'\nimport { computed, onMounted, ref, type CSSProperties } from 'vue'\n\ntype DropdownRow =\n | { kind: 'env'; key: string; secondary: string }\n | { kind: 'context'; key: string; secondary: string }\n\nconst {\n query,\n environment,\n dropdownPosition,\n contextFunctionItems = [],\n} = defineProps<{\n query: string\n environment: XScalarEnvironment\n dropdownPosition?: { left: number; top: number }\n /** Runtime placeholders such as `{{$guid}}`, shown with environment variables */\n contextFunctionItems?: { key: string; description: string }[]\n}>()\n\nconst emit = defineEmits<{\n (e: 'select', variable: string): void\n (e: 'redirect'): void\n}>()\n\nconst isOpen = ref(true)\nconst dropdownRef = ref<HTMLElement | null>(null)\nconst selectedVariableIndex = ref(0)\n\nconst redirectToEnvironment = () => {\n emit('redirect')\n isOpen.value = false\n}\n\n/** Normalize the variables to have a name and value */\nconst normalizedVariables = computed(() =>\n environment.variables.map((v) => ({\n key: v.name,\n value: typeof v.value === 'string' ? v.value : v.value.default,\n })),\n)\n\nconst contextRows = computed((): DropdownRow[] =>\n contextFunctionItems.map((item) => ({\n kind: 'context',\n key: item.key,\n secondary: item.description,\n })),\n)\n\nconst envRows = computed((): DropdownRow[] =>\n normalizedVariables.value\n .filter(({ key, value }) => key !== '' || value !== '')\n .map(({ key, value }) => ({\n kind: 'env' as const,\n key,\n secondary: value,\n })),\n)\n\ntype FuseRow = DropdownRow & { fuseText: string }\n\nconst envFuseSource = computed((): FuseRow[] =>\n envRows.value.map((row) => ({\n ...row,\n fuseText: `${row.key} ${row.secondary}`,\n })),\n)\n\nconst contextFuseSource = computed((): FuseRow[] =>\n contextRows.value.map((row) => ({\n ...row,\n fuseText: `${row.key} ${row.secondary}`,\n })),\n)\n\nconst fuseEnv = computed(\n () =>\n new Fuse(envFuseSource.value, {\n keys: ['fuseText'],\n threshold: 0.35,\n }),\n)\n\nconst fuseContext = computed(\n () =>\n new Fuse(contextFuseSource.value, {\n keys: ['fuseText'],\n threshold: 0.35,\n }),\n)\n\nconst popularContextRows = computed((): DropdownRow[] => {\n const byKey = new Map(contextFunctionItems.map((c) => [c.key, c]))\n return POPULAR_CONTEXT_FUNCTION_KEYS.flatMap((key) => {\n const item = byKey.get(key)\n return item\n ? [\n {\n kind: 'context' as const,\n key: item.key,\n secondary: item.description,\n },\n ]\n : []\n })\n})\n\nconst DROPDOWN_LIMIT = 12\n\nconst filteredVariables = computed((): DropdownRow[] => {\n if (!query.trim()) {\n const envSlice = envRows.value.slice(-4)\n return [...envSlice, ...popularContextRows.value]\n }\n\n const q = query.trim()\n const envMatches = fuseEnv.value\n .search(q, { limit: DROPDOWN_LIMIT })\n .map((res) => {\n const { kind, key, secondary } = res.item\n return { kind, key, secondary }\n })\n\n const remaining = DROPDOWN_LIMIT - envMatches.length\n const contextMatches =\n remaining > 0\n ? fuseContext.value.search(q, { limit: remaining }).map((res) => {\n const { kind, key, secondary } = res.item\n return { kind, key, secondary }\n })\n : []\n\n return [...envMatches, ...contextMatches]\n})\n\nconst selectVariable = (variableKey: string): void => {\n emit('select', variableKey)\n}\n\nconst handleArrowKey = (direction: 'up' | 'down') => {\n const offset = direction === 'up' ? -1 : 1\n const length = filteredVariables.value.length\n\n if (length === 0) {\n return\n }\n\n selectedVariableIndex.value =\n (selectedVariableIndex.value + offset + length) % length\n}\n\nconst handleSelect = () => {\n if (selectedVariableIndex.value >= 0) {\n const selectedVariable =\n filteredVariables.value[selectedVariableIndex.value]\n if (selectedVariable) {\n selectVariable(selectedVariable.key)\n }\n }\n}\n\ndefineExpose({\n handleArrowKey,\n handleSelect,\n})\n\nonMounted(() => {\n // Reset selected index to the first item when dropdown opens\n selectedVariableIndex.value = 0\n})\n\nconst dropdownStyle = computed<CSSProperties>(() => {\n return {\n left: (dropdownPosition?.left ?? 0) + 'px',\n // Add a 5px offset from the editor\n top: (dropdownPosition?.top ?? 0) + 5 + 'px',\n }\n})\n\nonClickOutside(\n dropdownRef,\n () => {\n isOpen.value = false\n },\n { ignore: [dropdownRef] },\n)\n</script>\n<template>\n <ScalarTeleport\n v-if=\"isOpen\"\n class=\"scalar-client\">\n <div\n ref=\"dropdownRef\"\n class=\"custom-scroll z-context fixed top-0 left-0 flex max-h-[60svh] w-56 flex-col rounded border p-0.75\"\n :style=\"dropdownStyle\">\n <ul\n v-if=\"filteredVariables.length\"\n class=\"gap-1/2 flex flex-col\">\n <template\n v-for=\"(item, index) in filteredVariables\"\n :key=\"`${item.kind}-${item.key}`\">\n <li\n class=\"font-code text-xxs hover:bg-b-2 flex h-8 cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150\"\n :class=\"{ 'bg-b-2': index === selectedVariableIndex }\"\n @click=\"selectVariable(item.key)\">\n <div class=\"flex items-center gap-2 whitespace-nowrap\">\n <span\n v-if=\"item.kind === 'env'\"\n class=\"h-2.25 w-2.25 min-w-2.25 rounded-full\"\n :style=\"{\n backgroundColor: environment.color,\n }\" />\n <span\n v-else\n class=\"text-c-3 bg-b-3 flex h-4.5 min-w-4.5 items-center justify-center rounded px-0.5 font-sans text-[9px] font-semibold\">\n fn\n </span>\n {{ item.key }}\n </div>\n <span\n class=\"max-w-[9rem] overflow-hidden text-right text-ellipsis whitespace-nowrap\">\n {{ item.secondary }}\n </span>\n </li>\n </template>\n </ul>\n <ScalarButton\n v-else\n class=\"font-code text-xxs bg-b-inherit hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150\"\n variant=\"outlined\"\n @click=\"redirectToEnvironment\">\n <ScalarIconPlus class=\"size-3\" />\n Add Variable\n </ScalarButton>\n <!-- Backdrop for the dropdown -->\n <div\n class=\"bg-b-1 brightness-lifted absolute inset-0 -z-1 rounded shadow-lg\" />\n </div>\n </ScalarTeleport>\n</template>\n"],"mappings":""}
@@ -1,6 +1,7 @@
1
1
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, toDisplayString, unref, withCtx } from "vue";
2
2
  import { ScalarButton, ScalarTeleport } from "@scalar/components";
3
3
  import { ScalarIconPlus } from "@scalar/icons";
4
+ import { POPULAR_CONTEXT_FUNCTION_KEYS } from "@scalar/workspace-store/request-example";
4
5
  import { onClickOutside } from "@vueuse/core";
5
6
  import Fuse from "fuse.js";
6
7
  //#region src/v2/features/environments/components/EnvironmentVariablesDropdown.vue?vue&type=script&setup=true&lang.ts
@@ -10,13 +11,19 @@ var _hoisted_1 = {
10
11
  };
11
12
  var _hoisted_2 = ["onClick"];
12
13
  var _hoisted_3 = { class: "flex items-center gap-2 whitespace-nowrap" };
13
- var _hoisted_4 = { class: "w-20 overflow-hidden text-right text-ellipsis whitespace-nowrap" };
14
+ var _hoisted_4 = {
15
+ key: 1,
16
+ class: "text-c-3 bg-b-3 flex h-4.5 min-w-4.5 items-center justify-center rounded px-0.5 font-sans text-[9px] font-semibold"
17
+ };
18
+ var _hoisted_5 = { class: "max-w-[9rem] overflow-hidden text-right text-ellipsis whitespace-nowrap" };
19
+ var DROPDOWN_LIMIT = 12;
14
20
  var EnvironmentVariablesDropdown_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
15
21
  __name: "EnvironmentVariablesDropdown",
16
22
  props: {
17
23
  query: {},
18
24
  environment: {},
19
- dropdownPosition: {}
25
+ dropdownPosition: {},
26
+ contextFunctionItems: { default: () => [] }
20
27
  },
21
28
  emits: ["select", "redirect"],
22
29
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -33,15 +40,64 @@ var EnvironmentVariablesDropdown_vue_vue_type_script_setup_true_lang_default = /
33
40
  key: v.name,
34
41
  value: typeof v.value === "string" ? v.value : v.value.default
35
42
  })));
36
- const fuse = new Fuse(normalizedVariables.value, { keys: ["key", "value"] });
43
+ const contextRows = computed(() => __props.contextFunctionItems.map((item) => ({
44
+ kind: "context",
45
+ key: item.key,
46
+ secondary: item.description
47
+ })));
48
+ const envRows = computed(() => normalizedVariables.value.filter(({ key, value }) => key !== "" || value !== "").map(({ key, value }) => ({
49
+ kind: "env",
50
+ key,
51
+ secondary: value
52
+ })));
53
+ const envFuseSource = computed(() => envRows.value.map((row) => ({
54
+ ...row,
55
+ fuseText: `${row.key} ${row.secondary}`
56
+ })));
57
+ const contextFuseSource = computed(() => contextRows.value.map((row) => ({
58
+ ...row,
59
+ fuseText: `${row.key} ${row.secondary}`
60
+ })));
61
+ const fuseEnv = computed(() => new Fuse(envFuseSource.value, {
62
+ keys: ["fuseText"],
63
+ threshold: .35
64
+ }));
65
+ const fuseContext = computed(() => new Fuse(contextFuseSource.value, {
66
+ keys: ["fuseText"],
67
+ threshold: .35
68
+ }));
69
+ const popularContextRows = computed(() => {
70
+ const byKey = new Map(__props.contextFunctionItems.map((c) => [c.key, c]));
71
+ return POPULAR_CONTEXT_FUNCTION_KEYS.flatMap((key) => {
72
+ const item = byKey.get(key);
73
+ return item ? [{
74
+ kind: "context",
75
+ key: item.key,
76
+ secondary: item.description
77
+ }] : [];
78
+ });
79
+ });
37
80
  const filteredVariables = computed(() => {
38
- if (!__props.query)
39
- /** return the last 4 environment variables on first display */
40
- return normalizedVariables.value.slice(-4).filter(({ key, value }) => key !== "" || value !== "");
41
- /** filter environment variables by name */
42
- const result = fuse.search(__props.query, { limit: 10 });
43
- if (result.length > 0) return result.map((res) => res.item).filter(({ key, value }) => key !== "" || value !== "");
44
- return [];
81
+ if (!__props.query.trim()) return [...envRows.value.slice(-4), ...popularContextRows.value];
82
+ const q = __props.query.trim();
83
+ const envMatches = fuseEnv.value.search(q, { limit: DROPDOWN_LIMIT }).map((res) => {
84
+ const { kind, key, secondary } = res.item;
85
+ return {
86
+ kind,
87
+ key,
88
+ secondary
89
+ };
90
+ });
91
+ const remaining = DROPDOWN_LIMIT - envMatches.length;
92
+ const contextMatches = remaining > 0 ? fuseContext.value.search(q, { limit: remaining }).map((res) => {
93
+ const { kind, key, secondary } = res.item;
94
+ return {
95
+ kind,
96
+ key,
97
+ secondary
98
+ };
99
+ }) : [];
100
+ return [...envMatches, ...contextMatches];
45
101
  });
46
102
  const selectVariable = (variableKey) => {
47
103
  emit("select", variableKey);
@@ -86,13 +142,14 @@ var EnvironmentVariablesDropdown_vue_vue_type_script_setup_true_lang_default = /
86
142
  style: normalizeStyle(dropdownStyle.value)
87
143
  }, [filteredVariables.value.length ? (openBlock(), createElementBlock("ul", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(filteredVariables.value, (item, index) => {
88
144
  return openBlock(), createElementBlock("li", {
89
- key: item.key,
145
+ key: `${item.kind}-${item.key}`,
90
146
  class: normalizeClass(["font-code text-xxs hover:bg-b-2 flex h-8 cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150", { "bg-b-2": index === selectedVariableIndex.value }]),
91
147
  onClick: ($event) => selectVariable(item.key)
92
- }, [createElementVNode("div", _hoisted_3, [createElementVNode("span", {
148
+ }, [createElementVNode("div", _hoisted_3, [item.kind === "env" ? (openBlock(), createElementBlock("span", {
149
+ key: 0,
93
150
  class: "h-2.25 w-2.25 min-w-2.25 rounded-full",
94
151
  style: normalizeStyle({ backgroundColor: __props.environment.color })
95
- }, null, 4), createTextVNode(" " + toDisplayString(item.key), 1)]), createElementVNode("span", _hoisted_4, toDisplayString(item.value), 1)], 10, _hoisted_2);
152
+ }, null, 4)) : (openBlock(), createElementBlock("span", _hoisted_4, " fn ")), createTextVNode(" " + toDisplayString(item.key), 1)]), createElementVNode("span", _hoisted_5, toDisplayString(item.secondary), 1)], 10, _hoisted_2);
96
153
  }), 128))])) : (openBlock(), createBlock(unref(ScalarButton), {
97
154
  key: 1,
98
155
  class: "font-code text-xxs bg-b-inherit hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150",
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentVariablesDropdown.vue.script.js","names":[],"sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesDropdown.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton, ScalarTeleport } from '@scalar/components'\nimport { ScalarIconPlus } from '@scalar/icons'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport { onClickOutside } from '@vueuse/core'\nimport Fuse from 'fuse.js'\nimport { computed, onMounted, ref, type CSSProperties } from 'vue'\n\nconst { query, environment, dropdownPosition } = defineProps<{\n query: string\n environment: XScalarEnvironment\n dropdownPosition?: { left: number; top: number }\n}>()\n\nconst emit = defineEmits<{\n (e: 'select', variable: string): void\n (e: 'redirect'): void\n}>()\n\nconst isOpen = ref(true)\nconst dropdownRef = ref<HTMLElement | null>(null)\nconst selectedVariableIndex = ref(0)\n\nconst redirectToEnvironment = () => {\n emit('redirect')\n isOpen.value = false\n}\n\n/** Normalize the variables to have a name and value */\nconst normalizedVariables = computed(() =>\n environment.variables.map((v) => ({\n key: v.name,\n value: typeof v.value === 'string' ? v.value : v.value.default,\n })),\n)\n\nconst fuse = new Fuse(normalizedVariables.value, {\n keys: ['key', 'value'],\n})\n\nconst filteredVariables = computed(() => {\n if (!query) {\n /** return the last 4 environment variables on first display */\n return normalizedVariables.value\n .slice(-4)\n .filter(({ key, value }) => key !== '' || value !== '')\n }\n\n /** filter environment variables by name */\n const result = fuse.search(query, { limit: 10 })\n if (result.length > 0) {\n return result\n .map((res) => res.item)\n .filter(({ key, value }) => key !== '' || value !== '')\n }\n\n return []\n})\n\nconst selectVariable = (variableKey: string) => {\n emit('select', variableKey)\n}\n\nconst handleArrowKey = (direction: 'up' | 'down') => {\n const offset = direction === 'up' ? -1 : 1\n const length = filteredVariables.value.length\n\n if (length === 0) {\n return\n }\n\n selectedVariableIndex.value =\n (selectedVariableIndex.value + offset + length) % length\n}\n\nconst handleSelect = () => {\n if (selectedVariableIndex.value >= 0) {\n const selectedVariable =\n filteredVariables.value[selectedVariableIndex.value]\n if (selectedVariable) {\n selectVariable(selectedVariable.key)\n }\n }\n}\n\ndefineExpose({\n handleArrowKey,\n handleSelect,\n})\n\nonMounted(() => {\n // Reset selected index to the first item when dropdown opens\n selectedVariableIndex.value = 0\n})\n\nconst dropdownStyle = computed<CSSProperties>(() => {\n return {\n left: (dropdownPosition?.left ?? 0) + 'px',\n // Add a 5px offset from the editor\n top: (dropdownPosition?.top ?? 0) + 5 + 'px',\n }\n})\n\nonClickOutside(\n dropdownRef,\n () => {\n isOpen.value = false\n },\n { ignore: [dropdownRef] },\n)\n</script>\n<template>\n <ScalarTeleport\n v-if=\"isOpen\"\n class=\"scalar-client\">\n <div\n ref=\"dropdownRef\"\n class=\"custom-scroll z-context fixed top-0 left-0 flex max-h-[60svh] w-56 flex-col rounded border p-0.75\"\n :style=\"dropdownStyle\">\n <ul\n v-if=\"filteredVariables.length\"\n class=\"gap-1/2 flex flex-col\">\n <template\n v-for=\"(item, index) in filteredVariables\"\n :key=\"item.key\">\n <li\n class=\"font-code text-xxs hover:bg-b-2 flex h-8 cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150\"\n :class=\"{ 'bg-b-2': index === selectedVariableIndex }\"\n @click=\"selectVariable(item.key)\">\n <div class=\"flex items-center gap-2 whitespace-nowrap\">\n <span\n class=\"h-2.25 w-2.25 min-w-2.25 rounded-full\"\n :style=\"{\n backgroundColor: environment.color,\n }\"></span>\n {{ item.key }}\n </div>\n <span\n class=\"w-20 overflow-hidden text-right text-ellipsis whitespace-nowrap\">\n {{ item.value }}\n </span>\n </li>\n </template>\n </ul>\n <ScalarButton\n v-else\n class=\"font-code text-xxs bg-b-inherit hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150\"\n variant=\"outlined\"\n @click=\"redirectToEnvironment\">\n <ScalarIconPlus class=\"size-3\" />\n Add Variable\n </ScalarButton>\n <!-- Backdrop for the dropdown -->\n <div\n class=\"bg-b-1 brightness-lifted absolute inset-0 -z-1 rounded shadow-lg\" />\n </div>\n </ScalarTeleport>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;EAcA,MAAM,OAAO;EAKb,MAAM,SAAS,IAAI,KAAI;EACvB,MAAM,cAAc,IAAwB,KAAI;EAChD,MAAM,wBAAwB,IAAI,EAAC;EAEnC,MAAM,8BAA8B;AAClC,QAAK,WAAU;AACf,UAAO,QAAQ;;;EAIjB,MAAM,sBAAsB,eAC1B,QAAA,YAAY,UAAU,KAAK,OAAO;GAChC,KAAK,EAAE;GACP,OAAO,OAAO,EAAE,UAAU,WAAW,EAAE,QAAQ,EAAE,MAAM;GACxD,EAAE,CACL;EAEA,MAAM,OAAO,IAAI,KAAK,oBAAoB,OAAO,EAC/C,MAAM,CAAC,OAAO,QAAQ,EACvB,CAAA;EAED,MAAM,oBAAoB,eAAe;AACvC,OAAI,CAAC,QAAA;;AAEH,UAAO,oBAAoB,MACxB,MAAM,GAAE,CACR,QAAQ,EAAE,KAAK,YAAY,QAAQ,MAAM,UAAU,GAAE;;GAI1D,MAAM,SAAS,KAAK,OAAO,QAAA,OAAO,EAAE,OAAO,IAAI,CAAA;AAC/C,OAAI,OAAO,SAAS,EAClB,QAAO,OACJ,KAAK,QAAQ,IAAI,KAAI,CACrB,QAAQ,EAAE,KAAK,YAAY,QAAQ,MAAM,UAAU,GAAE;AAG1D,UAAO,EAAC;IACT;EAED,MAAM,kBAAkB,gBAAwB;AAC9C,QAAK,UAAU,YAAW;;EAG5B,MAAM,kBAAkB,cAA6B;GACnD,MAAM,SAAS,cAAc,OAAO,KAAK;GACzC,MAAM,SAAS,kBAAkB,MAAM;AAEvC,OAAI,WAAW,EACb;AAGF,yBAAsB,SACnB,sBAAsB,QAAQ,SAAS,UAAU;;EAGtD,MAAM,qBAAqB;AACzB,OAAI,sBAAsB,SAAS,GAAG;IACpC,MAAM,mBACJ,kBAAkB,MAAM,sBAAsB;AAChD,QAAI,iBACF,gBAAe,iBAAiB,IAAG;;;AAKzC,WAAa;GACX;GACA;GACD,CAAA;AAED,kBAAgB;AAEd,yBAAsB,QAAQ;IAC/B;EAED,MAAM,gBAAgB,eAA8B;AAClD,UAAO;IACL,OAAO,QAAA,kBAAkB,QAAQ,KAAK;IAEtC,MAAM,QAAA,kBAAkB,OAAO,KAAK,IAAI;IAC1C;IACD;AAED,iBACE,mBACM;AACJ,UAAO,QAAQ;KAEjB,EAAE,QAAQ,CAAC,YAAY,EAAE,CAC3B;;UAIU,OAAA,SAAA,WAAA,EADR,YA4CiB,MAAA,eAAA,EAAA;;IA1Cf,OAAM;;2BAyCA,CAxCN,mBAwCM,OAAA;cAvCA;KAAJ,KAAI;KACJ,OAAM;KACL,OAAK,eAAE,cAAA,MAAa;QAEb,kBAAA,MAAkB,UAAA,WAAA,EAD1B,mBAwBK,MAxBL,YAwBK,EAAA,UAAA,KAAA,EArBH,mBAoBW,UAAA,MAAA,WAnBe,kBAAA,QAAhB,MAAM,UAAK;yBAEnB,mBAgBK,MAAA;WAjBC,KAAK;MAET,OAAK,eAAA,CAAC,6IAA2I,EAAA,UAC7H,UAAU,sBAAA,OAAqB,CAAA,CAAA;MAClD,UAAK,WAAE,eAAe,KAAK,IAAG;SAC/B,mBAOM,OAPN,YAOM,CANJ,mBAIY,QAAA;MAHV,OAAM;MACL,OAAK,eAAA,EAAA,iBAAuC,QAAA,YAAY,OAAA,CAAA;kCAE/C,MACZ,gBAAG,KAAK,IAAG,EAAA,EAAA,CAAA,CAAA,EAEb,mBAGO,QAHP,YAGO,gBADF,KAAK,MAAK,EAAA,EAAA,CAAA,EAAA,IAAA,WAAA;iCAKrB,YAOe,MAAA,aAAA,EAAA;;KALb,OAAM;KACN,SAAQ;KACP,SAAO;;4BACyB,CAAjC,YAAiC,MAAA,eAAA,EAAA,EAAjB,OAAM,UAAQ,CAAA,EAAA,OAAA,OAAA,OAAA,KAAA,gBAAG,kBAEnC,GAAA,EAAA,CAAA;;mCAEA,mBAC6E,OAAA,EAA3E,OAAM,oEAAkE,EAAA,MAAA,GAAA,EAAA,EAAA,EAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"EnvironmentVariablesDropdown.vue.script.js","names":[],"sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesDropdown.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton, ScalarTeleport } from '@scalar/components'\nimport { ScalarIconPlus } from '@scalar/icons'\nimport { POPULAR_CONTEXT_FUNCTION_KEYS } from '@scalar/workspace-store/request-example'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport { onClickOutside } from '@vueuse/core'\nimport Fuse from 'fuse.js'\nimport { computed, onMounted, ref, type CSSProperties } from 'vue'\n\ntype DropdownRow =\n | { kind: 'env'; key: string; secondary: string }\n | { kind: 'context'; key: string; secondary: string }\n\nconst {\n query,\n environment,\n dropdownPosition,\n contextFunctionItems = [],\n} = defineProps<{\n query: string\n environment: XScalarEnvironment\n dropdownPosition?: { left: number; top: number }\n /** Runtime placeholders such as `{{$guid}}`, shown with environment variables */\n contextFunctionItems?: { key: string; description: string }[]\n}>()\n\nconst emit = defineEmits<{\n (e: 'select', variable: string): void\n (e: 'redirect'): void\n}>()\n\nconst isOpen = ref(true)\nconst dropdownRef = ref<HTMLElement | null>(null)\nconst selectedVariableIndex = ref(0)\n\nconst redirectToEnvironment = () => {\n emit('redirect')\n isOpen.value = false\n}\n\n/** Normalize the variables to have a name and value */\nconst normalizedVariables = computed(() =>\n environment.variables.map((v) => ({\n key: v.name,\n value: typeof v.value === 'string' ? v.value : v.value.default,\n })),\n)\n\nconst contextRows = computed((): DropdownRow[] =>\n contextFunctionItems.map((item) => ({\n kind: 'context',\n key: item.key,\n secondary: item.description,\n })),\n)\n\nconst envRows = computed((): DropdownRow[] =>\n normalizedVariables.value\n .filter(({ key, value }) => key !== '' || value !== '')\n .map(({ key, value }) => ({\n kind: 'env' as const,\n key,\n secondary: value,\n })),\n)\n\ntype FuseRow = DropdownRow & { fuseText: string }\n\nconst envFuseSource = computed((): FuseRow[] =>\n envRows.value.map((row) => ({\n ...row,\n fuseText: `${row.key} ${row.secondary}`,\n })),\n)\n\nconst contextFuseSource = computed((): FuseRow[] =>\n contextRows.value.map((row) => ({\n ...row,\n fuseText: `${row.key} ${row.secondary}`,\n })),\n)\n\nconst fuseEnv = computed(\n () =>\n new Fuse(envFuseSource.value, {\n keys: ['fuseText'],\n threshold: 0.35,\n }),\n)\n\nconst fuseContext = computed(\n () =>\n new Fuse(contextFuseSource.value, {\n keys: ['fuseText'],\n threshold: 0.35,\n }),\n)\n\nconst popularContextRows = computed((): DropdownRow[] => {\n const byKey = new Map(contextFunctionItems.map((c) => [c.key, c]))\n return POPULAR_CONTEXT_FUNCTION_KEYS.flatMap((key) => {\n const item = byKey.get(key)\n return item\n ? [\n {\n kind: 'context' as const,\n key: item.key,\n secondary: item.description,\n },\n ]\n : []\n })\n})\n\nconst DROPDOWN_LIMIT = 12\n\nconst filteredVariables = computed((): DropdownRow[] => {\n if (!query.trim()) {\n const envSlice = envRows.value.slice(-4)\n return [...envSlice, ...popularContextRows.value]\n }\n\n const q = query.trim()\n const envMatches = fuseEnv.value\n .search(q, { limit: DROPDOWN_LIMIT })\n .map((res) => {\n const { kind, key, secondary } = res.item\n return { kind, key, secondary }\n })\n\n const remaining = DROPDOWN_LIMIT - envMatches.length\n const contextMatches =\n remaining > 0\n ? fuseContext.value.search(q, { limit: remaining }).map((res) => {\n const { kind, key, secondary } = res.item\n return { kind, key, secondary }\n })\n : []\n\n return [...envMatches, ...contextMatches]\n})\n\nconst selectVariable = (variableKey: string): void => {\n emit('select', variableKey)\n}\n\nconst handleArrowKey = (direction: 'up' | 'down') => {\n const offset = direction === 'up' ? -1 : 1\n const length = filteredVariables.value.length\n\n if (length === 0) {\n return\n }\n\n selectedVariableIndex.value =\n (selectedVariableIndex.value + offset + length) % length\n}\n\nconst handleSelect = () => {\n if (selectedVariableIndex.value >= 0) {\n const selectedVariable =\n filteredVariables.value[selectedVariableIndex.value]\n if (selectedVariable) {\n selectVariable(selectedVariable.key)\n }\n }\n}\n\ndefineExpose({\n handleArrowKey,\n handleSelect,\n})\n\nonMounted(() => {\n // Reset selected index to the first item when dropdown opens\n selectedVariableIndex.value = 0\n})\n\nconst dropdownStyle = computed<CSSProperties>(() => {\n return {\n left: (dropdownPosition?.left ?? 0) + 'px',\n // Add a 5px offset from the editor\n top: (dropdownPosition?.top ?? 0) + 5 + 'px',\n }\n})\n\nonClickOutside(\n dropdownRef,\n () => {\n isOpen.value = false\n },\n { ignore: [dropdownRef] },\n)\n</script>\n<template>\n <ScalarTeleport\n v-if=\"isOpen\"\n class=\"scalar-client\">\n <div\n ref=\"dropdownRef\"\n class=\"custom-scroll z-context fixed top-0 left-0 flex max-h-[60svh] w-56 flex-col rounded border p-0.75\"\n :style=\"dropdownStyle\">\n <ul\n v-if=\"filteredVariables.length\"\n class=\"gap-1/2 flex flex-col\">\n <template\n v-for=\"(item, index) in filteredVariables\"\n :key=\"`${item.kind}-${item.key}`\">\n <li\n class=\"font-code text-xxs hover:bg-b-2 flex h-8 cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150\"\n :class=\"{ 'bg-b-2': index === selectedVariableIndex }\"\n @click=\"selectVariable(item.key)\">\n <div class=\"flex items-center gap-2 whitespace-nowrap\">\n <span\n v-if=\"item.kind === 'env'\"\n class=\"h-2.25 w-2.25 min-w-2.25 rounded-full\"\n :style=\"{\n backgroundColor: environment.color,\n }\" />\n <span\n v-else\n class=\"text-c-3 bg-b-3 flex h-4.5 min-w-4.5 items-center justify-center rounded px-0.5 font-sans text-[9px] font-semibold\">\n fn\n </span>\n {{ item.key }}\n </div>\n <span\n class=\"max-w-[9rem] overflow-hidden text-right text-ellipsis whitespace-nowrap\">\n {{ item.secondary }}\n </span>\n </li>\n </template>\n </ul>\n <ScalarButton\n v-else\n class=\"font-code text-xxs bg-b-inherit hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150\"\n variant=\"outlined\"\n @click=\"redirectToEnvironment\">\n <ScalarIconPlus class=\"size-3\" />\n Add Variable\n </ScalarButton>\n <!-- Backdrop for the dropdown -->\n <div\n class=\"bg-b-1 brightness-lifted absolute inset-0 -z-1 rounded shadow-lg\" />\n </div>\n </ScalarTeleport>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;AAkHA,IAAM,iBAAiB;;;;;;;;;;;EAxFvB,MAAM,OAAO;EAKb,MAAM,SAAS,IAAI,KAAI;EACvB,MAAM,cAAc,IAAwB,KAAI;EAChD,MAAM,wBAAwB,IAAI,EAAC;EAEnC,MAAM,8BAA8B;AAClC,QAAK,WAAU;AACf,UAAO,QAAQ;;;EAIjB,MAAM,sBAAsB,eAC1B,QAAA,YAAY,UAAU,KAAK,OAAO;GAChC,KAAK,EAAE;GACP,OAAO,OAAO,EAAE,UAAU,WAAW,EAAE,QAAQ,EAAE,MAAM;GACxD,EAAE,CACL;EAEA,MAAM,cAAc,eAClB,QAAA,qBAAqB,KAAK,UAAU;GAClC,MAAM;GACN,KAAK,KAAK;GACV,WAAW,KAAK;GACjB,EAAE,CACL;EAEA,MAAM,UAAU,eACd,oBAAoB,MACjB,QAAQ,EAAE,KAAK,YAAY,QAAQ,MAAM,UAAU,GAAE,CACrD,KAAK,EAAE,KAAK,aAAa;GACxB,MAAM;GACN;GACA,WAAW;GACZ,EAAE,CACP;EAIA,MAAM,gBAAgB,eACpB,QAAQ,MAAM,KAAK,SAAS;GAC1B,GAAG;GACH,UAAU,GAAG,IAAI,IAAI,GAAG,IAAI;GAC7B,EAAE,CACL;EAEA,MAAM,oBAAoB,eACxB,YAAY,MAAM,KAAK,SAAS;GAC9B,GAAG;GACH,UAAU,GAAG,IAAI,IAAI,GAAG,IAAI;GAC7B,EAAE,CACL;EAEA,MAAM,UAAU,eAEZ,IAAI,KAAK,cAAc,OAAO;GAC5B,MAAM,CAAC,WAAW;GAClB,WAAW;GACZ,CAAC,CACN;EAEA,MAAM,cAAc,eAEhB,IAAI,KAAK,kBAAkB,OAAO;GAChC,MAAM,CAAC,WAAW;GAClB,WAAW;GACZ,CAAC,CACN;EAEA,MAAM,qBAAqB,eAA8B;GACvD,MAAM,QAAQ,IAAI,IAAI,QAAA,qBAAqB,KAAK,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjE,UAAO,8BAA8B,SAAS,QAAQ;IACpD,MAAM,OAAO,MAAM,IAAI,IAAG;AAC1B,WAAO,OACH,CACE;KACE,MAAM;KACN,KAAK,KAAK;KACV,WAAW,KAAK;KACjB,CACH,GACA,EAAC;KACN;IACF;EAID,MAAM,oBAAoB,eAA8B;AACtD,OAAI,CAAC,QAAA,MAAM,MAAM,CAEf,QAAO,CAAC,GADS,QAAQ,MAAM,MAAM,GAAE,EAClB,GAAG,mBAAmB,MAAK;GAGlD,MAAM,IAAI,QAAA,MAAM,MAAK;GACrB,MAAM,aAAa,QAAQ,MACxB,OAAO,GAAG,EAAE,OAAO,gBAAgB,CAAA,CACnC,KAAK,QAAQ;IACZ,MAAM,EAAE,MAAM,KAAK,cAAc,IAAI;AACrC,WAAO;KAAE;KAAM;KAAK;KAAU;KAC/B;GAEH,MAAM,YAAY,iBAAiB,WAAW;GAC9C,MAAM,iBACJ,YAAY,IACR,YAAY,MAAM,OAAO,GAAG,EAAE,OAAO,WAAW,CAAC,CAAC,KAAK,QAAQ;IAC7D,MAAM,EAAE,MAAM,KAAK,cAAc,IAAI;AACrC,WAAO;KAAE;KAAM;KAAK;KAAU;KAC/B,GACD,EAAC;AAEP,UAAO,CAAC,GAAG,YAAY,GAAG,eAAc;IACzC;EAED,MAAM,kBAAkB,gBAA8B;AACpD,QAAK,UAAU,YAAW;;EAG5B,MAAM,kBAAkB,cAA6B;GACnD,MAAM,SAAS,cAAc,OAAO,KAAK;GACzC,MAAM,SAAS,kBAAkB,MAAM;AAEvC,OAAI,WAAW,EACb;AAGF,yBAAsB,SACnB,sBAAsB,QAAQ,SAAS,UAAU;;EAGtD,MAAM,qBAAqB;AACzB,OAAI,sBAAsB,SAAS,GAAG;IACpC,MAAM,mBACJ,kBAAkB,MAAM,sBAAsB;AAChD,QAAI,iBACF,gBAAe,iBAAiB,IAAG;;;AAKzC,WAAa;GACX;GACA;GACD,CAAA;AAED,kBAAgB;AAEd,yBAAsB,QAAQ;IAC/B;EAED,MAAM,gBAAgB,eAA8B;AAClD,UAAO;IACL,OAAO,QAAA,kBAAkB,QAAQ,KAAK;IAEtC,MAAM,QAAA,kBAAkB,OAAO,KAAK,IAAI;IAC1C;IACD;AAED,iBACE,mBACM;AACJ,UAAO,QAAQ;KAEjB,EAAE,QAAQ,CAAC,YAAY,EAAE,CAC3B;;UAIU,OAAA,SAAA,WAAA,EADR,YAkDiB,MAAA,eAAA,EAAA;;IAhDf,OAAM;;2BA+CA,CA9CN,mBA8CM,OAAA;cA7CA;KAAJ,KAAI;KACJ,OAAM;KACL,OAAK,eAAE,cAAA,MAAa;QAEb,kBAAA,MAAkB,UAAA,WAAA,EAD1B,mBA8BK,MA9BL,YA8BK,EAAA,UAAA,KAAA,EA3BH,mBA0BW,UAAA,MAAA,WAzBe,kBAAA,QAAhB,MAAM,UAAK;yBAEnB,mBAsBK,MAAA;cAvBI,KAAK,KAAI,GAAI,KAAK;MAEzB,OAAK,eAAA,CAAC,6IAA2I,EAAA,UAC7H,UAAU,sBAAA,OAAqB,CAAA,CAAA;MAClD,UAAK,WAAE,eAAe,KAAK,IAAG;SAC/B,mBAaM,OAbN,YAaM,CAXI,KAAK,SAAI,SAAA,WAAA,EADjB,mBAKO,QAAA;;MAHL,OAAM;MACL,OAAK,eAAA,EAAA,iBAAuC,QAAA,YAAY,OAAA,CAAA;kCAG3D,mBAIO,QAJP,YAE6H,OAE7H,GAAA,gBAAO,MACP,gBAAG,KAAK,IAAG,EAAA,EAAA,CAAA,CAAA,EAEb,mBAGO,QAHP,YAGO,gBADF,KAAK,UAAS,EAAA,EAAA,CAAA,EAAA,IAAA,WAAA;iCAKzB,YAOe,MAAA,aAAA,EAAA;;KALb,OAAM;KACN,SAAQ;KACP,SAAO;;4BACyB,CAAjC,YAAiC,MAAA,eAAA,EAAA,EAAjB,OAAM,UAAQ,CAAA,EAAA,OAAA,OAAA,OAAA,KAAA,gBAAG,kBAEnC,GAAA,EAAA,CAAA;;mCAEA,mBAC6E,OAAA,EAA3E,OAAM,oEAAkE,EAAA,MAAA,GAAA,EAAA,EAAA,EAAA,CAAA,CAAA"}
@@ -6,6 +6,7 @@ import type { WorkspaceStore } from '@scalar/workspace-store/client';
6
6
  import { type WorkspaceEventBus } from '@scalar/workspace-store/events';
7
7
  import type { WorkspaceDocument } from '@scalar/workspace-store/schemas';
8
8
  import { type ComputedRef, type MaybeRefOrGetter, type Ref } from 'vue';
9
+ import type { ApiClientModalOptionsRef } from '../../../v2/features/modal/helpers/types';
9
10
  import { type UseModalSidebarReturn } from '../../../v2/features/modal/hooks/use-modal-sidebar.js';
10
11
  export type ModalProps = {
11
12
  /** The workspace store must be initialized and passed in */
@@ -29,7 +30,7 @@ export type ModalProps = {
29
30
  /** Api client plugins to include in the modal */
30
31
  plugins: ClientPlugin[];
31
32
  /** Subset of the configuration options for the modal */
32
- options: MaybeRefOrGetter<Partial<Pick<ApiReferenceConfigurationRaw, 'authentication' | 'baseServerURL' | 'hideClientButton' | 'hiddenClients' | 'servers'>>>;
33
+ options: MaybeRefOrGetter<Partial<Pick<ApiReferenceConfigurationRaw, 'authentication' | 'baseServerURL' | 'hideClientButton' | 'hiddenClients' | 'oauth2RedirectUri' | 'servers'>>>;
33
34
  };
34
35
  /**
35
36
  * Scalar Api Client Modal
@@ -38,8 +39,12 @@ export type ModalProps = {
38
39
  */
39
40
  declare const _default: typeof __VLS_export;
40
41
  export default _default;
41
- declare const __VLS_export: import("vue").DefineComponent<ModalProps, {
42
+ declare const __VLS_export: import("vue").DefineComponent<Omit<ModalProps, "options"> & {
43
+ options: ApiClientModalOptionsRef;
44
+ }, {
42
45
  sidebarWidth: ComputedRef<number>;
43
46
  environment: ComputedRef<import("@scalar/workspace-store/schemas/extensions/document/x-scalar-environments").XScalarEnvironment>;
44
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ModalProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
47
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Omit<ModalProps, "options"> & {
48
+ options: ApiClientModalOptionsRef;
49
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
50
  //# sourceMappingURL=Modal.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"AAqNA,OAAO,EAAE,KAAK,UAAU,EAA4B,MAAM,oBAAoB,CAAA;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,EAKL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,GAAG,EACT,MAAM,KAAK,CAAA;AAIZ,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,6CAA6C,CAAA;AAOxF,MAAM,MAAM,UAAU,GAAG;IACvB,4DAA4D;IAC5D,cAAc,EAAE,cAAc,CAAA;IAC9B,qDAAqD;IACrD,QAAQ,EAAE,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC/C,iDAAiD;IACjD,IAAI,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACrC,4CAA4C;IAC5C,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,mDAAmD;IACnD,MAAM,EAAE,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;IAC3C,yDAAyD;IACzD,WAAW,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC5C,sEAAsE;IACtE,+BAA+B,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAC5D,2CAA2C;IAC3C,UAAU,EAAE,UAAU,CAAA;IACtB,0DAA0D;IAC1D,YAAY,EAAE,qBAAqB,CAAA;IACnC,iDAAiD;IACjD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,wDAAwD;IACxD,OAAO,EAAE,gBAAgB,CACvB,OAAO,CACL,IAAI,CACF,4BAA4B,EAC1B,gBAAgB,GAChB,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,SAAS,CACZ,CACF,CACF,CAAA;CACF,CAAA;AAED;;;;GAIG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAGzC,QAAA,MAAM,YAAY;;;mPAuQd,CAAC"}
1
+ {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"AAyNA,OAAO,EAAE,KAAK,UAAU,EAA4B,MAAM,oBAAoB,CAAA;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,EAKL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,GAAG,EACT,MAAM,KAAK,CAAA;AAIZ,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AACjF,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,6CAA6C,CAAA;AAOxF,MAAM,MAAM,UAAU,GAAG;IACvB,4DAA4D;IAC5D,cAAc,EAAE,cAAc,CAAA;IAC9B,qDAAqD;IACrD,QAAQ,EAAE,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC/C,iDAAiD;IACjD,IAAI,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACrC,4CAA4C;IAC5C,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,mDAAmD;IACnD,MAAM,EAAE,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;IAC3C,yDAAyD;IACzD,WAAW,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC5C,sEAAsE;IACtE,+BAA+B,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAC5D,2CAA2C;IAC3C,UAAU,EAAE,UAAU,CAAA;IACtB,0DAA0D;IAC1D,YAAY,EAAE,qBAAqB,CAAA;IACnC,iDAAiD;IACjD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,wDAAwD;IACxD,OAAO,EAAE,gBAAgB,CACvB,OAAO,CACL,IAAI,CACF,4BAA4B,EAC1B,gBAAgB,GAChB,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,mBAAmB,GACnB,SAAS,CACZ,CACF,CACF,CAAA;CACF,CAAA;AAED;;;;GAIG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAGzC,QAAA,MAAM,YAAY;aAC0C,wBAAwB;;;;;aAAxB,wBAAwB;iGAwQhF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.vue.js","names":[],"sources":["../../../../src/v2/features/modal/Modal.vue"],"sourcesContent":["<script lang=\"ts\">\nexport type ModalProps = {\n /** The workspace store must be initialized and passed in */\n workspaceStore: WorkspaceStore\n /** The document must be initialized and passed in */\n document: ComputedRef<WorkspaceDocument | null>\n /** The path must be initialized and passed in */\n path: ComputedRef<string | undefined>\n /** The event bus for handling all events */\n eventBus: WorkspaceEventBus\n /** The method must be initialized and passed in */\n method: ComputedRef<HttpMethod | undefined>\n /** The example name must be initialized and passed in */\n exampleName: ComputedRef<string | undefined>\n /** Selected anyOf/oneOf request-body variants keyed by schema path */\n requestBodyCompositionSelection: Ref<Record<string, number>>\n /** Controls the visibility of the modal */\n modalState: ModalState\n /** The sidebar state must be initialized and passed in */\n sidebarState: UseModalSidebarReturn\n /** Api client plugins to include in the modal */\n plugins: ClientPlugin[]\n /** Subset of the configuration options for the modal */\n options: MaybeRefOrGetter<\n Partial<\n Pick<\n ApiReferenceConfigurationRaw,\n | 'authentication'\n | 'baseServerURL'\n | 'hideClientButton'\n | 'hiddenClients'\n | 'servers'\n >\n >\n >\n}\n\n/**\n * Scalar Api Client Modal\n *\n * This component is used to render the API Client Modal\n */\nexport default {}\n</script>\n\n<script setup lang=\"ts\">\nimport { type ModalState, type ScalarListboxOption } from '@scalar/components'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type { ClientPlugin } from '@scalar/oas-utils/helpers'\nimport type { ApiReferenceConfigurationRaw } from '@scalar/types/api-reference'\nimport { ScalarToasts } from '@scalar/use-toasts'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport { type WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { getActiveEnvironment } from '@scalar/workspace-store/request-example'\nimport type { WorkspaceDocument } from '@scalar/workspace-store/schemas'\nimport {\n computed,\n onBeforeUnmount,\n ref,\n watch,\n type ComputedRef,\n type MaybeRefOrGetter,\n type Ref,\n} from 'vue'\n\nimport ModalClientContainer from '@/v2/components/modals/ModalClientContainer.vue'\nimport { Sidebar, SidebarToggle } from '@/v2/components/sidebar'\nimport { type UseModalSidebarReturn } from '@/v2/features/modal/hooks/use-modal-sidebar'\nimport { initializeModalEvents } from '@/v2/features/modal/modal-events'\nimport Operation from '@/v2/features/operation/Operation.vue'\nimport { useGlobalHotKeys } from '@/v2/hooks/use-global-hot-keys'\nimport { useScrollLock } from '@/v2/hooks/use-scroll-lock'\n\nconst {\n document,\n eventBus,\n modalState,\n options,\n plugins,\n requestBodyCompositionSelection,\n sidebarState,\n workspaceStore,\n} = defineProps<ModalProps>()\n\nconst activeWorkspace: ScalarListboxOption = {\n label: 'default',\n id: 'default',\n}\n\n/** Controls the visibility of the sidebar. */\nconst isSidebarOpen = ref(false)\n\n/** Initialize modal events */\ninitializeModalEvents({\n eventBus,\n isSidebarOpen,\n requestBodyCompositionSelection,\n sidebarState,\n modalState,\n store: workspaceStore,\n})\n\n/** Register global hotkeys for the app, passing the workspace event bus and layout state */\nuseGlobalHotKeys(eventBus, 'modal', () => !modalState.open)\n\n/** Clean up on close */\nconst cleanUp = () => {\n eventBus.emit('operation:cancel:request')\n}\n\nconst isLocked = useScrollLock(() => {\n if (typeof window !== 'undefined') {\n return window.document.body\n }\n return null\n})\n\nwatch(\n () => modalState.open,\n (open) => {\n // Make sure scrolling is locked or unlocked when the modal is opened or closed\n isLocked.value = open\n\n if (!open) {\n cleanUp()\n }\n },\n)\n\n// Ensure we add our scalar wrapper class to the headless ui root\nonBeforeUnmount(() => cleanUp())\n\n/** Default sidebar width in pixels. */\nconst DEFAULT_SIDEBAR_WIDTH = 288\n\n/** Width of the sidebar, with fallback to default. */\nconst sidebarWidth = computed(\n () =>\n workspaceStore?.workspace?.['x-scalar-sidebar-width'] ??\n DEFAULT_SIDEBAR_WIDTH,\n)\n\n/** Handler for sidebar width changes. */\nconst handleSidebarWidthUpdate = (width: number) =>\n workspaceStore?.update('x-scalar-sidebar-width', width)\n\n/**\n * Merged environment variables from workspace and document levels.\n * Variables from both sources are combined, with document variables\n * taking precedence in case of naming conflicts.\n */\nconst environment = computed(\n () => getActiveEnvironment(workspaceStore, document.value).environment,\n)\n\ndefineExpose({\n sidebarWidth,\n environment,\n})\n</script>\n\n<template>\n <ModalClientContainer :modalState>\n <!-- Toasts -->\n <ScalarToasts />\n\n <!-- If we have a document, path and method, render the operation -->\n <main\n v-if=\"document.value && path?.value && method?.value\"\n class=\"relative flex h-full min-h-0 w-full flex-1\">\n <SidebarToggle\n v-model=\"isSidebarOpen\"\n class=\"absolute top-2 left-3 z-2\" />\n <Sidebar\n v-show=\"isSidebarOpen\"\n v-model:sidebarWidth=\"sidebarWidth\"\n :activeWorkspace=\"activeWorkspace\"\n class=\"h-full max-md:absolute! max-md:w-full!\"\n :documents=\"[document.value]\"\n :eventBus\n :isDroppable=\"() => false\"\n layout=\"modal\"\n :sidebarState=\"sidebarState.state\"\n :workspaces=\"[]\"\n @selectItem=\"sidebarState.handleSelectItem\"\n @update:sidebarWidth=\"handleSidebarWidthUpdate\" />\n <Operation\n :activeWorkspace=\"activeWorkspace\"\n class=\"flex-1\"\n :document=\"document.value\"\n :documentSlug=\"document.value['x-scalar-navigation']?.id ?? ''\"\n :environment\n :eventBus\n :exampleName=\"exampleName?.value\"\n layout=\"modal\"\n :method=\"method?.value\"\n :options\n :path=\"path?.value\"\n :plugins\n :requestBodyCompositionSelection=\"requestBodyCompositionSelection.value\"\n :workspaceStore />\n </main>\n <!-- Empty state -->\n <div\n v-else\n class=\"flex h-full w-full items-center justify-center\">\n <span class=\"text-c-3\">No document selected</span>\n </div>\n </ModalClientContainer>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"Modal.vue.js","names":[],"sources":["../../../../src/v2/features/modal/Modal.vue"],"sourcesContent":["<script lang=\"ts\">\nexport type ModalProps = {\n /** The workspace store must be initialized and passed in */\n workspaceStore: WorkspaceStore\n /** The document must be initialized and passed in */\n document: ComputedRef<WorkspaceDocument | null>\n /** The path must be initialized and passed in */\n path: ComputedRef<string | undefined>\n /** The event bus for handling all events */\n eventBus: WorkspaceEventBus\n /** The method must be initialized and passed in */\n method: ComputedRef<HttpMethod | undefined>\n /** The example name must be initialized and passed in */\n exampleName: ComputedRef<string | undefined>\n /** Selected anyOf/oneOf request-body variants keyed by schema path */\n requestBodyCompositionSelection: Ref<Record<string, number>>\n /** Controls the visibility of the modal */\n modalState: ModalState\n /** The sidebar state must be initialized and passed in */\n sidebarState: UseModalSidebarReturn\n /** Api client plugins to include in the modal */\n plugins: ClientPlugin[]\n /** Subset of the configuration options for the modal */\n options: MaybeRefOrGetter<\n Partial<\n Pick<\n ApiReferenceConfigurationRaw,\n | 'authentication'\n | 'baseServerURL'\n | 'hideClientButton'\n | 'hiddenClients'\n | 'oauth2RedirectUri'\n | 'servers'\n >\n >\n >\n}\n\n/**\n * Scalar Api Client Modal\n *\n * This component is used to render the API Client Modal\n */\nexport default {}\n</script>\n\n<script setup lang=\"ts\">\nimport { type ModalState, type ScalarListboxOption } from '@scalar/components'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type { ClientPlugin } from '@scalar/oas-utils/helpers'\nimport type { ApiReferenceConfigurationRaw } from '@scalar/types/api-reference'\nimport { ScalarToasts } from '@scalar/use-toasts'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport { type WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { getActiveEnvironment } from '@scalar/workspace-store/request-example'\nimport type { WorkspaceDocument } from '@scalar/workspace-store/schemas'\nimport {\n computed,\n onBeforeUnmount,\n ref,\n watch,\n type ComputedRef,\n type MaybeRefOrGetter,\n type Ref,\n} from 'vue'\n\nimport ModalClientContainer from '@/v2/components/modals/ModalClientContainer.vue'\nimport { Sidebar, SidebarToggle } from '@/v2/components/sidebar'\nimport type { ApiClientModalOptionsRef } from '@/v2/features/modal/helpers/types'\nimport { type UseModalSidebarReturn } from '@/v2/features/modal/hooks/use-modal-sidebar'\nimport { initializeModalEvents } from '@/v2/features/modal/modal-events'\nimport Operation from '@/v2/features/operation/Operation.vue'\nimport { useGlobalHotKeys } from '@/v2/hooks/use-global-hot-keys'\nimport { useScrollLock } from '@/v2/hooks/use-scroll-lock'\n\nconst {\n document,\n eventBus,\n modalState,\n options,\n plugins,\n requestBodyCompositionSelection,\n sidebarState,\n workspaceStore,\n} = defineProps<\n Omit<ModalProps, 'options'> & { options: ApiClientModalOptionsRef }\n>()\n\nconst activeWorkspace: ScalarListboxOption = {\n label: 'default',\n id: 'default',\n}\n\n/** Controls the visibility of the sidebar. */\nconst isSidebarOpen = ref(false)\n\n/** Initialize modal events */\ninitializeModalEvents({\n eventBus,\n isSidebarOpen,\n requestBodyCompositionSelection,\n sidebarState,\n modalState,\n store: workspaceStore,\n})\n\n/** Register global hotkeys for the app, passing the workspace event bus and layout state */\nuseGlobalHotKeys(eventBus, 'modal', () => !modalState.open)\n\n/** Clean up on close */\nconst cleanUp = () => {\n eventBus.emit('operation:cancel:request')\n}\n\nconst isLocked = useScrollLock(() => {\n if (typeof window !== 'undefined') {\n return window.document.body\n }\n return null\n})\n\nwatch(\n () => modalState.open,\n (open) => {\n // Make sure scrolling is locked or unlocked when the modal is opened or closed\n isLocked.value = open\n\n if (!open) {\n cleanUp()\n }\n },\n)\n\n// Ensure we add our scalar wrapper class to the headless ui root\nonBeforeUnmount(() => cleanUp())\n\n/** Default sidebar width in pixels. */\nconst DEFAULT_SIDEBAR_WIDTH = 288\n\n/** Width of the sidebar, with fallback to default. */\nconst sidebarWidth = computed(\n () =>\n workspaceStore?.workspace?.['x-scalar-sidebar-width'] ??\n DEFAULT_SIDEBAR_WIDTH,\n)\n\n/** Handler for sidebar width changes. */\nconst handleSidebarWidthUpdate = (width: number) =>\n workspaceStore?.update('x-scalar-sidebar-width', width)\n\n/**\n * Merged environment variables from workspace and document levels.\n * Variables from both sources are combined, with document variables\n * taking precedence in case of naming conflicts.\n */\nconst environment = computed(\n () => getActiveEnvironment(workspaceStore, document.value).environment,\n)\n\ndefineExpose({\n sidebarWidth,\n environment,\n})\n</script>\n\n<template>\n <ModalClientContainer :modalState>\n <!-- Toasts -->\n <ScalarToasts />\n\n <!-- If we have a document, path and method, render the operation -->\n <main\n v-if=\"document.value && path?.value && method?.value\"\n class=\"relative flex h-full min-h-0 w-full flex-1\">\n <SidebarToggle\n v-model=\"isSidebarOpen\"\n class=\"absolute top-2 left-3 z-2\" />\n <Sidebar\n v-show=\"isSidebarOpen\"\n v-model:sidebarWidth=\"sidebarWidth\"\n :activeWorkspace=\"activeWorkspace\"\n class=\"h-full max-md:absolute! max-md:w-full!\"\n :documents=\"[document.value]\"\n :eventBus\n :isDroppable=\"() => false\"\n layout=\"modal\"\n :sidebarState=\"sidebarState.state\"\n :workspaces=\"[]\"\n @selectItem=\"sidebarState.handleSelectItem\"\n @update:sidebarWidth=\"handleSidebarWidthUpdate\" />\n <Operation\n :activeWorkspace=\"activeWorkspace\"\n class=\"flex-1\"\n :document=\"document.value\"\n :documentSlug=\"document.value['x-scalar-navigation']?.id ?? ''\"\n :environment\n :eventBus\n :exampleName=\"exampleName?.value\"\n layout=\"modal\"\n :method=\"method?.value\"\n :options\n :path=\"path?.value\"\n :plugins\n :requestBodyCompositionSelection=\"requestBodyCompositionSelection.value\"\n :workspaceStore />\n </main>\n <!-- Empty state -->\n <div\n v-else\n class=\"flex h-full w-full items-center justify-center\">\n <span class=\"text-c-3\">No document selected</span>\n </div>\n </ModalClientContainer>\n</template>\n"],"mappings":""}
@@ -1,8 +1,8 @@
1
- import ModalClientContainer_default from "../../components/modals/ModalClientContainer.vue.js";
2
1
  import Sidebar_default from "../../components/sidebar/Sidebar.vue.js";
3
2
  import SidebarToggle_default from "../../components/sidebar/SidebarToggle.vue.js";
4
3
  import { useGlobalHotKeys } from "../../hooks/use-global-hot-keys.js";
5
4
  import Operation_default from "../operation/Operation.vue.js";
5
+ import ModalClientContainer_default from "../../components/modals/ModalClientContainer.vue.js";
6
6
  import { initializeModalEvents } from "./modal-events.js";
7
7
  import { useScrollLock } from "../../hooks/use-scroll-lock.js";
8
8
  import { computed, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, onBeforeUnmount, openBlock, ref, unref, vShow, watch, withCtx, withDirectives } from "vue";
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.vue.script.js","names":[],"sources":["../../../../src/v2/features/modal/Modal.vue"],"sourcesContent":["<script lang=\"ts\">\nexport type ModalProps = {\n /** The workspace store must be initialized and passed in */\n workspaceStore: WorkspaceStore\n /** The document must be initialized and passed in */\n document: ComputedRef<WorkspaceDocument | null>\n /** The path must be initialized and passed in */\n path: ComputedRef<string | undefined>\n /** The event bus for handling all events */\n eventBus: WorkspaceEventBus\n /** The method must be initialized and passed in */\n method: ComputedRef<HttpMethod | undefined>\n /** The example name must be initialized and passed in */\n exampleName: ComputedRef<string | undefined>\n /** Selected anyOf/oneOf request-body variants keyed by schema path */\n requestBodyCompositionSelection: Ref<Record<string, number>>\n /** Controls the visibility of the modal */\n modalState: ModalState\n /** The sidebar state must be initialized and passed in */\n sidebarState: UseModalSidebarReturn\n /** Api client plugins to include in the modal */\n plugins: ClientPlugin[]\n /** Subset of the configuration options for the modal */\n options: MaybeRefOrGetter<\n Partial<\n Pick<\n ApiReferenceConfigurationRaw,\n | 'authentication'\n | 'baseServerURL'\n | 'hideClientButton'\n | 'hiddenClients'\n | 'servers'\n >\n >\n >\n}\n\n/**\n * Scalar Api Client Modal\n *\n * This component is used to render the API Client Modal\n */\nexport default {}\n</script>\n\n<script setup lang=\"ts\">\nimport { type ModalState, type ScalarListboxOption } from '@scalar/components'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type { ClientPlugin } from '@scalar/oas-utils/helpers'\nimport type { ApiReferenceConfigurationRaw } from '@scalar/types/api-reference'\nimport { ScalarToasts } from '@scalar/use-toasts'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport { type WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { getActiveEnvironment } from '@scalar/workspace-store/request-example'\nimport type { WorkspaceDocument } from '@scalar/workspace-store/schemas'\nimport {\n computed,\n onBeforeUnmount,\n ref,\n watch,\n type ComputedRef,\n type MaybeRefOrGetter,\n type Ref,\n} from 'vue'\n\nimport ModalClientContainer from '@/v2/components/modals/ModalClientContainer.vue'\nimport { Sidebar, SidebarToggle } from '@/v2/components/sidebar'\nimport { type UseModalSidebarReturn } from '@/v2/features/modal/hooks/use-modal-sidebar'\nimport { initializeModalEvents } from '@/v2/features/modal/modal-events'\nimport Operation from '@/v2/features/operation/Operation.vue'\nimport { useGlobalHotKeys } from '@/v2/hooks/use-global-hot-keys'\nimport { useScrollLock } from '@/v2/hooks/use-scroll-lock'\n\nconst {\n document,\n eventBus,\n modalState,\n options,\n plugins,\n requestBodyCompositionSelection,\n sidebarState,\n workspaceStore,\n} = defineProps<ModalProps>()\n\nconst activeWorkspace: ScalarListboxOption = {\n label: 'default',\n id: 'default',\n}\n\n/** Controls the visibility of the sidebar. */\nconst isSidebarOpen = ref(false)\n\n/** Initialize modal events */\ninitializeModalEvents({\n eventBus,\n isSidebarOpen,\n requestBodyCompositionSelection,\n sidebarState,\n modalState,\n store: workspaceStore,\n})\n\n/** Register global hotkeys for the app, passing the workspace event bus and layout state */\nuseGlobalHotKeys(eventBus, 'modal', () => !modalState.open)\n\n/** Clean up on close */\nconst cleanUp = () => {\n eventBus.emit('operation:cancel:request')\n}\n\nconst isLocked = useScrollLock(() => {\n if (typeof window !== 'undefined') {\n return window.document.body\n }\n return null\n})\n\nwatch(\n () => modalState.open,\n (open) => {\n // Make sure scrolling is locked or unlocked when the modal is opened or closed\n isLocked.value = open\n\n if (!open) {\n cleanUp()\n }\n },\n)\n\n// Ensure we add our scalar wrapper class to the headless ui root\nonBeforeUnmount(() => cleanUp())\n\n/** Default sidebar width in pixels. */\nconst DEFAULT_SIDEBAR_WIDTH = 288\n\n/** Width of the sidebar, with fallback to default. */\nconst sidebarWidth = computed(\n () =>\n workspaceStore?.workspace?.['x-scalar-sidebar-width'] ??\n DEFAULT_SIDEBAR_WIDTH,\n)\n\n/** Handler for sidebar width changes. */\nconst handleSidebarWidthUpdate = (width: number) =>\n workspaceStore?.update('x-scalar-sidebar-width', width)\n\n/**\n * Merged environment variables from workspace and document levels.\n * Variables from both sources are combined, with document variables\n * taking precedence in case of naming conflicts.\n */\nconst environment = computed(\n () => getActiveEnvironment(workspaceStore, document.value).environment,\n)\n\ndefineExpose({\n sidebarWidth,\n environment,\n})\n</script>\n\n<template>\n <ModalClientContainer :modalState>\n <!-- Toasts -->\n <ScalarToasts />\n\n <!-- If we have a document, path and method, render the operation -->\n <main\n v-if=\"document.value && path?.value && method?.value\"\n class=\"relative flex h-full min-h-0 w-full flex-1\">\n <SidebarToggle\n v-model=\"isSidebarOpen\"\n class=\"absolute top-2 left-3 z-2\" />\n <Sidebar\n v-show=\"isSidebarOpen\"\n v-model:sidebarWidth=\"sidebarWidth\"\n :activeWorkspace=\"activeWorkspace\"\n class=\"h-full max-md:absolute! max-md:w-full!\"\n :documents=\"[document.value]\"\n :eventBus\n :isDroppable=\"() => false\"\n layout=\"modal\"\n :sidebarState=\"sidebarState.state\"\n :workspaces=\"[]\"\n @selectItem=\"sidebarState.handleSelectItem\"\n @update:sidebarWidth=\"handleSidebarWidthUpdate\" />\n <Operation\n :activeWorkspace=\"activeWorkspace\"\n class=\"flex-1\"\n :document=\"document.value\"\n :documentSlug=\"document.value['x-scalar-navigation']?.id ?? ''\"\n :environment\n :eventBus\n :exampleName=\"exampleName?.value\"\n layout=\"modal\"\n :method=\"method?.value\"\n :options\n :path=\"path?.value\"\n :plugins\n :requestBodyCompositionSelection=\"requestBodyCompositionSelection.value\"\n :workspaceStore />\n </main>\n <!-- Empty state -->\n <div\n v-else\n class=\"flex h-full w-full items-center justify-center\">\n <span class=\"text-c-3\">No document selected</span>\n </div>\n </ModalClientContainer>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoFA,MAAM,kBAAuC;GAC3C,OAAO;GACP,IAAI;GACN;;EAGA,MAAM,gBAAgB,IAAI,MAAK;;AAG/B,wBAAsB;GACpB,UAAO,QAAA;GACP;GACA,iCAA8B,QAAA;GAC9B,cAAW,QAAA;GACX,YAAS,QAAA;GACT,OAAO,QAAA;GACR,CAAA;;AAGD,mBAAiB,QAAA,UAAU,eAAe,CAAC,QAAA,WAAW,KAAI;;EAG1D,MAAM,gBAAgB;AACpB,WAAA,SAAS,KAAK,2BAA0B;;EAG1C,MAAM,WAAW,oBAAoB;AACnC,OAAI,OAAO,WAAW,YACpB,QAAO,OAAO,SAAS;AAEzB,UAAO;IACR;AAED,cACQ,QAAA,WAAW,OAChB,SAAS;AAER,YAAS,QAAQ;AAEjB,OAAI,CAAC,KACH,UAAQ;IAGd;AAGA,wBAAsB,SAAS,CAAA;;EAG/B,MAAM,wBAAwB;;EAG9B,MAAM,eAAe,eAEjB,QAAA,gBAAgB,YAAY,6BAC5B,sBACJ;;EAGA,MAAM,4BAA4B,UAChC,QAAA,gBAAgB,OAAO,0BAA0B,MAAK;;;;;;EAOxD,MAAM,cAAc,eACZ,qBAAqB,QAAA,gBAAgB,QAAA,SAAS,MAAM,CAAC,YAC7D;AAEA,WAAa;GACX;GACA;GACD,CAAA;;uBAIC,YA8CuB,8BAAA,EA9CA,YAAA,QAAA,YAAU,EAAA;2BAEf,CAAhB,YAAgB,MAAA,aAAA,CAAA,EAIR,QAAA,SAAS,SAAS,QAAA,MAAM,SAAS,QAAA,QAAQ,SAAA,WAAA,EADjD,mBAkCO,QAlCP,YAkCO;KA/BL,YAEsC,MAAA,sBAAA,EAAA;kBAD3B,cAAA;iFAAa,QAAA;MACtB,OAAM;;oBACR,YAYoD,MAAA,gBAAA,EAAA;MAV1C,cAAc,aAAA;mFAAY,QAAA,SAUZ,yBAAA;MATJ;MAClB,OAAM;MACL,WAAS,CAAG,QAAA,SAAS,MAAK;MAC1B,UAAA,QAAA;MACA,mBAAa;MACd,QAAO;MACN,cAAc,QAAA,aAAa;MAC3B,YAAY,EAAE;MACd,cAAY,QAAA,aAAa;;;;;;;kBAVlB,cAAA,MAAa,CAAA,CAAA;KAYvB,YAcoB,mBAAA;MAbA;MAClB,OAAM;MACL,UAAU,QAAA,SAAS;MACnB,cAAc,QAAA,SAAS,MAAK,wBAAyB,MAAE;MACvD,aAAA,YAAA;MACA,UAAA,QAAA;MACA,aAAa,QAAA,aAAa;MAC3B,QAAO;MACN,QAAQ,QAAA,QAAQ;MAChB,SAAA,QAAA;MACA,MAAM,QAAA,MAAM;MACZ,SAAA,QAAA;MACA,iCAAiC,QAAA,gCAAgC;MACjE,gBAAA,QAAA;;;;;;;;;;;;;;wBAGL,mBAIM,OAJN,YAIM,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CADJ,mBAAkD,QAAA,EAA5C,OAAM,YAAU,EAAC,wBAAoB,GAAA,CAAA,EAAA,CAAA,EAAA,CAAA"}
1
+ {"version":3,"file":"Modal.vue.script.js","names":[],"sources":["../../../../src/v2/features/modal/Modal.vue"],"sourcesContent":["<script lang=\"ts\">\nexport type ModalProps = {\n /** The workspace store must be initialized and passed in */\n workspaceStore: WorkspaceStore\n /** The document must be initialized and passed in */\n document: ComputedRef<WorkspaceDocument | null>\n /** The path must be initialized and passed in */\n path: ComputedRef<string | undefined>\n /** The event bus for handling all events */\n eventBus: WorkspaceEventBus\n /** The method must be initialized and passed in */\n method: ComputedRef<HttpMethod | undefined>\n /** The example name must be initialized and passed in */\n exampleName: ComputedRef<string | undefined>\n /** Selected anyOf/oneOf request-body variants keyed by schema path */\n requestBodyCompositionSelection: Ref<Record<string, number>>\n /** Controls the visibility of the modal */\n modalState: ModalState\n /** The sidebar state must be initialized and passed in */\n sidebarState: UseModalSidebarReturn\n /** Api client plugins to include in the modal */\n plugins: ClientPlugin[]\n /** Subset of the configuration options for the modal */\n options: MaybeRefOrGetter<\n Partial<\n Pick<\n ApiReferenceConfigurationRaw,\n | 'authentication'\n | 'baseServerURL'\n | 'hideClientButton'\n | 'hiddenClients'\n | 'oauth2RedirectUri'\n | 'servers'\n >\n >\n >\n}\n\n/**\n * Scalar Api Client Modal\n *\n * This component is used to render the API Client Modal\n */\nexport default {}\n</script>\n\n<script setup lang=\"ts\">\nimport { type ModalState, type ScalarListboxOption } from '@scalar/components'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type { ClientPlugin } from '@scalar/oas-utils/helpers'\nimport type { ApiReferenceConfigurationRaw } from '@scalar/types/api-reference'\nimport { ScalarToasts } from '@scalar/use-toasts'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport { type WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { getActiveEnvironment } from '@scalar/workspace-store/request-example'\nimport type { WorkspaceDocument } from '@scalar/workspace-store/schemas'\nimport {\n computed,\n onBeforeUnmount,\n ref,\n watch,\n type ComputedRef,\n type MaybeRefOrGetter,\n type Ref,\n} from 'vue'\n\nimport ModalClientContainer from '@/v2/components/modals/ModalClientContainer.vue'\nimport { Sidebar, SidebarToggle } from '@/v2/components/sidebar'\nimport type { ApiClientModalOptionsRef } from '@/v2/features/modal/helpers/types'\nimport { type UseModalSidebarReturn } from '@/v2/features/modal/hooks/use-modal-sidebar'\nimport { initializeModalEvents } from '@/v2/features/modal/modal-events'\nimport Operation from '@/v2/features/operation/Operation.vue'\nimport { useGlobalHotKeys } from '@/v2/hooks/use-global-hot-keys'\nimport { useScrollLock } from '@/v2/hooks/use-scroll-lock'\n\nconst {\n document,\n eventBus,\n modalState,\n options,\n plugins,\n requestBodyCompositionSelection,\n sidebarState,\n workspaceStore,\n} = defineProps<\n Omit<ModalProps, 'options'> & { options: ApiClientModalOptionsRef }\n>()\n\nconst activeWorkspace: ScalarListboxOption = {\n label: 'default',\n id: 'default',\n}\n\n/** Controls the visibility of the sidebar. */\nconst isSidebarOpen = ref(false)\n\n/** Initialize modal events */\ninitializeModalEvents({\n eventBus,\n isSidebarOpen,\n requestBodyCompositionSelection,\n sidebarState,\n modalState,\n store: workspaceStore,\n})\n\n/** Register global hotkeys for the app, passing the workspace event bus and layout state */\nuseGlobalHotKeys(eventBus, 'modal', () => !modalState.open)\n\n/** Clean up on close */\nconst cleanUp = () => {\n eventBus.emit('operation:cancel:request')\n}\n\nconst isLocked = useScrollLock(() => {\n if (typeof window !== 'undefined') {\n return window.document.body\n }\n return null\n})\n\nwatch(\n () => modalState.open,\n (open) => {\n // Make sure scrolling is locked or unlocked when the modal is opened or closed\n isLocked.value = open\n\n if (!open) {\n cleanUp()\n }\n },\n)\n\n// Ensure we add our scalar wrapper class to the headless ui root\nonBeforeUnmount(() => cleanUp())\n\n/** Default sidebar width in pixels. */\nconst DEFAULT_SIDEBAR_WIDTH = 288\n\n/** Width of the sidebar, with fallback to default. */\nconst sidebarWidth = computed(\n () =>\n workspaceStore?.workspace?.['x-scalar-sidebar-width'] ??\n DEFAULT_SIDEBAR_WIDTH,\n)\n\n/** Handler for sidebar width changes. */\nconst handleSidebarWidthUpdate = (width: number) =>\n workspaceStore?.update('x-scalar-sidebar-width', width)\n\n/**\n * Merged environment variables from workspace and document levels.\n * Variables from both sources are combined, with document variables\n * taking precedence in case of naming conflicts.\n */\nconst environment = computed(\n () => getActiveEnvironment(workspaceStore, document.value).environment,\n)\n\ndefineExpose({\n sidebarWidth,\n environment,\n})\n</script>\n\n<template>\n <ModalClientContainer :modalState>\n <!-- Toasts -->\n <ScalarToasts />\n\n <!-- If we have a document, path and method, render the operation -->\n <main\n v-if=\"document.value && path?.value && method?.value\"\n class=\"relative flex h-full min-h-0 w-full flex-1\">\n <SidebarToggle\n v-model=\"isSidebarOpen\"\n class=\"absolute top-2 left-3 z-2\" />\n <Sidebar\n v-show=\"isSidebarOpen\"\n v-model:sidebarWidth=\"sidebarWidth\"\n :activeWorkspace=\"activeWorkspace\"\n class=\"h-full max-md:absolute! max-md:w-full!\"\n :documents=\"[document.value]\"\n :eventBus\n :isDroppable=\"() => false\"\n layout=\"modal\"\n :sidebarState=\"sidebarState.state\"\n :workspaces=\"[]\"\n @selectItem=\"sidebarState.handleSelectItem\"\n @update:sidebarWidth=\"handleSidebarWidthUpdate\" />\n <Operation\n :activeWorkspace=\"activeWorkspace\"\n class=\"flex-1\"\n :document=\"document.value\"\n :documentSlug=\"document.value['x-scalar-navigation']?.id ?? ''\"\n :environment\n :eventBus\n :exampleName=\"exampleName?.value\"\n layout=\"modal\"\n :method=\"method?.value\"\n :options\n :path=\"path?.value\"\n :plugins\n :requestBodyCompositionSelection=\"requestBodyCompositionSelection.value\"\n :workspaceStore />\n </main>\n <!-- Empty state -->\n <div\n v-else\n class=\"flex h-full w-full items-center justify-center\">\n <span class=\"text-c-3\">No document selected</span>\n </div>\n </ModalClientContainer>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwFA,MAAM,kBAAuC;GAC3C,OAAO;GACP,IAAI;GACN;;EAGA,MAAM,gBAAgB,IAAI,MAAK;;AAG/B,wBAAsB;GACpB,UAAO,QAAA;GACP;GACA,iCAA8B,QAAA;GAC9B,cAAW,QAAA;GACX,YAAS,QAAA;GACT,OAAO,QAAA;GACR,CAAA;;AAGD,mBAAiB,QAAA,UAAU,eAAe,CAAC,QAAA,WAAW,KAAI;;EAG1D,MAAM,gBAAgB;AACpB,WAAA,SAAS,KAAK,2BAA0B;;EAG1C,MAAM,WAAW,oBAAoB;AACnC,OAAI,OAAO,WAAW,YACpB,QAAO,OAAO,SAAS;AAEzB,UAAO;IACR;AAED,cACQ,QAAA,WAAW,OAChB,SAAS;AAER,YAAS,QAAQ;AAEjB,OAAI,CAAC,KACH,UAAQ;IAGd;AAGA,wBAAsB,SAAS,CAAA;;EAG/B,MAAM,wBAAwB;;EAG9B,MAAM,eAAe,eAEjB,QAAA,gBAAgB,YAAY,6BAC5B,sBACJ;;EAGA,MAAM,4BAA4B,UAChC,QAAA,gBAAgB,OAAO,0BAA0B,MAAK;;;;;;EAOxD,MAAM,cAAc,eACZ,qBAAqB,QAAA,gBAAgB,QAAA,SAAS,MAAM,CAAC,YAC7D;AAEA,WAAa;GACX;GACA;GACD,CAAA;;uBAIC,YA8CuB,8BAAA,EA9CA,YAAA,QAAA,YAAU,EAAA;2BAEf,CAAhB,YAAgB,MAAA,aAAA,CAAA,EAIR,QAAA,SAAS,SAAS,QAAA,MAAM,SAAS,QAAA,QAAQ,SAAA,WAAA,EADjD,mBAkCO,QAlCP,YAkCO;KA/BL,YAEsC,MAAA,sBAAA,EAAA;kBAD3B,cAAA;iFAAa,QAAA;MACtB,OAAM;;oBACR,YAYoD,MAAA,gBAAA,EAAA;MAV1C,cAAc,aAAA;mFAAY,QAAA,SAUZ,yBAAA;MATJ;MAClB,OAAM;MACL,WAAS,CAAG,QAAA,SAAS,MAAK;MAC1B,UAAA,QAAA;MACA,mBAAa;MACd,QAAO;MACN,cAAc,QAAA,aAAa;MAC3B,YAAY,EAAE;MACd,cAAY,QAAA,aAAa;;;;;;;kBAVlB,cAAA,MAAa,CAAA,CAAA;KAYvB,YAcoB,mBAAA;MAbA;MAClB,OAAM;MACL,UAAU,QAAA,SAAS;MACnB,cAAc,QAAA,SAAS,MAAK,wBAAyB,MAAE;MACvD,aAAA,YAAA;MACA,UAAA,QAAA;MACA,aAAa,QAAA,aAAa;MAC3B,QAAO;MACN,QAAQ,QAAA,QAAQ;MAChB,SAAA,QAAA;MACA,MAAM,QAAA,MAAM;MACZ,SAAA,QAAA;MACA,iCAAiC,QAAA,gCAAgC;MACjE,gBAAA,QAAA;;;;;;;;;;;;;;wBAGL,mBAIM,OAJN,YAIM,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CADJ,mBAAkD,QAAA,EAA5C,OAAM,YAAU,EAAC,wBAAoB,GAAA,CAAA,EAAA,CAAA,EAAA,CAAA"}
@@ -2,9 +2,9 @@ import { type ModalState } from '@scalar/components';
2
2
  import type { ClientPlugin } from '@scalar/oas-utils/helpers';
3
3
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
4
4
  import { type WorkspaceEventBus } from '@scalar/workspace-store/events';
5
- import { type App } from 'vue';
5
+ import { type App, type MaybeRefOrGetter } from 'vue';
6
6
  import { type RoutePayload } from '../../../../v2/features/modal/helpers/resolve-route-parameters.js';
7
- import { type ModalProps } from '../../../../v2/features/modal/Modal.vue.js';
7
+ import type { ApiClientModalOptions } from '../../../../v2/features/modal/helpers/types';
8
8
  type CreateApiClientModalOptions = {
9
9
  /** Element to mount the client modal to. */
10
10
  el: HTMLElement | null;
@@ -20,13 +20,14 @@ type CreateApiClientModalOptions = {
20
20
  /** Api client plugins to include in the modal */
21
21
  plugins?: ClientPlugin[];
22
22
  /** Subset of the configuration options for the modal, if you want it to be reactive ensure its a ref */
23
- options?: ModalProps['options'];
23
+ options?: MaybeRefOrGetter<ApiClientModalOptions>;
24
24
  };
25
25
  export type ApiClientModal = {
26
26
  app: App;
27
27
  open: (payload?: RoutePayload) => void;
28
28
  mount: (mountingEl: HTMLElement | null) => void;
29
29
  route: (payload: RoutePayload) => void;
30
+ updateOptions: (nextOptions: ApiClientModalOptions, overwrite?: boolean) => void;
30
31
  modalState: ModalState;
31
32
  };
32
33
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"create-api-client-modal.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/modal/helpers/create-api-client-modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAY,MAAM,oBAAoB,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,gCAAgC,CAAA;AAChG,OAAO,EAAE,KAAK,GAAG,EAA6C,MAAM,KAAK,CAAA;AAEzE,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,sDAAsD,CAAA;AAE7D,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAEtE,KAAK,2BAA2B,GAAG;IACjC,4CAA4C;IAC5C,EAAE,EAAE,WAAW,GAAG,IAAI,CAAA;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,kFAAkF;IAClF,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,6DAA6D;IAC7D,cAAc,EAAE,cAAc,CAAA;IAC9B,iDAAiD;IACjD,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,wGAAwG;IACxG,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,YAAY,KAAK,IAAI,CAAA;IACtC,KAAK,EAAE,CAAC,UAAU,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;IAC/C,KAAK,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAA;IACtC,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,wEASlC,2BAA2B,KAAG,cAmGhC,CAAA"}
1
+ {"version":3,"file":"create-api-client-modal.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/modal/helpers/create-api-client-modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAY,MAAM,oBAAoB,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,gCAAgC,CAAA;AAChG,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,gBAAgB,EAA6D,MAAM,KAAK,CAAA;AAEhH,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,sDAAsD,CAAA;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAA4B,MAAM,mCAAmC,CAAA;AAIxG,KAAK,2BAA2B,GAAG;IACjC,4CAA4C;IAC5C,EAAE,EAAE,WAAW,GAAG,IAAI,CAAA;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,kFAAkF;IAClF,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,6DAA6D;IAC7D,cAAc,EAAE,cAAc,CAAA;IAC9B,iDAAiD;IACjD,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,wGAAwG;IACxG,OAAO,CAAC,EAAE,gBAAgB,CAAC,qBAAqB,CAAC,CAAA;CAClD,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,YAAY,KAAK,IAAI,CAAA;IACtC,KAAK,EAAE,CAAC,UAAU,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;IAC/C,KAAK,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAA;IACtC,aAAa,EAAE,CAAC,WAAW,EAAE,qBAAqB,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAChF,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,wEASlC,2BAA2B,KAAG,cAiJhC,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { resolveRouteParameters } from "./resolve-route-parameters.js";
2
2
  import { useModalSidebar } from "../hooks/use-modal-sidebar.js";
3
3
  import Modal_default from "../Modal.vue.js";
4
- import { computed, createApp, reactive, ref, watch } from "vue";
4
+ import { computed, createApp, isRef, reactive, ref, toValue, watch } from "vue";
5
5
  import { useModal } from "@scalar/components";
6
6
  import { createWorkspaceEventBus } from "@scalar/workspace-store/events";
7
7
  //#region src/v2/features/modal/helpers/create-api-client-modal.ts
@@ -13,6 +13,8 @@ import { createWorkspaceEventBus } from "@scalar/workspace-store/events";
13
13
  */
14
14
  var createApiClientModal = ({ el, eventBus = createWorkspaceEventBus({ debug: false }), mountOnInitialize = true, plugins = [], workspaceStore, options = {} }) => {
15
15
  const requestBodyCompositionSelection = ref({});
16
+ /** This is to ensure that the options are a ref if they are not already, useful for react */
17
+ const optionsRef = isRef(options) ? options : ref(toValue(options));
16
18
  const defaultEntities = {
17
19
  path: "default",
18
20
  method: "default",
@@ -53,13 +55,25 @@ var createApiClientModal = ({ el, eventBus = createWorkspaceEventBus({ debug: fa
53
55
  requestBodyCompositionSelection,
54
56
  sidebarState,
55
57
  workspaceStore,
56
- options
58
+ options: optionsRef
57
59
  });
58
60
  /** Restore the workspace store when the modal is closed. */
59
61
  const handleModalClose = () => {
60
62
  requestBodyCompositionSelection.value = {};
61
63
  };
64
+ /** Initialize plugins and subscribe to event bus events */
65
+ const pluginUnsubscribes = [];
66
+ for (const plugin of plugins) {
67
+ plugin.lifecycle?.onInit?.();
68
+ if (plugin.on) for (const [event, handler] of Object.entries(plugin.on)) pluginUnsubscribes.push(eventBus.on(event, handler));
69
+ }
70
+ /** Clean up plugin lifecycle and event bus subscriptions when the app is unmounted */
71
+ app.onUnmount(() => {
72
+ for (const unsub of pluginUnsubscribes) unsub();
73
+ for (const plugin of plugins) plugin.lifecycle?.onDestroy?.();
74
+ });
62
75
  watch(() => modalState.open, (open) => open ? null : handleModalClose());
76
+ watch(() => toValue(optionsRef).proxyUrl, (newProxyUrl) => workspaceStore.update("x-scalar-active-proxy", newProxyUrl), { immediate: true });
63
77
  app.config.idPrefix = "scalar-client";
64
78
  /** Mount the modal to a given element. */
65
79
  const mount = (mountingEl = el) => {
@@ -78,7 +92,13 @@ var createApiClientModal = ({ el, eventBus = createWorkspaceEventBus({ debug: fa
78
92
  },
79
93
  mount,
80
94
  route,
81
- modalState
95
+ modalState,
96
+ updateOptions: (newOptions, overwrite = false) => {
97
+ optionsRef.value = overwrite ? newOptions : {
98
+ ...optionsRef.value,
99
+ ...newOptions
100
+ };
101
+ }
82
102
  };
83
103
  };
84
104
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"create-api-client-modal.js","names":[],"sources":["../../../../../src/v2/features/modal/helpers/create-api-client-modal.ts"],"sourcesContent":["import { type ModalState, useModal } from '@scalar/components'\nimport type { ClientPlugin } from '@scalar/oas-utils/helpers'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport { type WorkspaceEventBus, createWorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { type App, computed, createApp, reactive, ref, watch } from 'vue'\n\nimport {\n type DefaultEntities,\n type RoutePayload,\n resolveRouteParameters,\n} from '@/v2/features/modal/helpers/resolve-route-parameters'\nimport { useModalSidebar } from '@/v2/features/modal/hooks/use-modal-sidebar'\nimport Modal, { type ModalProps } from '@/v2/features/modal/Modal.vue'\n\ntype CreateApiClientModalOptions = {\n /** Element to mount the client modal to. */\n el: HTMLElement | null\n /**\n * Will attempt to mount the references immediately.\n * For SSR this may need to be disabled and handled manually on the client side.\n */\n mountOnInitialize?: boolean\n /** You can pass in an event bus if you have one already, or we will create one */\n eventBus?: WorkspaceEventBus\n /** The workspace store must be initialized and passed in. */\n workspaceStore: WorkspaceStore\n /** Api client plugins to include in the modal */\n plugins?: ClientPlugin[]\n /** Subset of the configuration options for the modal, if you want it to be reactive ensure its a ref */\n options?: ModalProps['options']\n}\n\nexport type ApiClientModal = {\n app: App\n open: (payload?: RoutePayload) => void\n mount: (mountingEl: HTMLElement | null) => void\n route: (payload: RoutePayload) => void\n modalState: ModalState\n}\n\n/**\n * Creates the API Client Modal.\n *\n * The modal does not require a router. Instead, navigation is handled by setting\n * active entities directly through the returned `route` function.\n */\nexport const createApiClientModal = ({\n el,\n eventBus = createWorkspaceEventBus({\n debug: import.meta.env.DEV,\n }),\n mountOnInitialize = true,\n plugins = [],\n workspaceStore,\n options = {},\n}: CreateApiClientModalOptions): ApiClientModal => {\n const requestBodyCompositionSelection = ref<Record<string, number>>({})\n\n const defaultEntities: DefaultEntities = {\n path: 'default',\n method: 'default',\n example: 'default',\n documentSlug: workspaceStore.workspace['x-scalar-active-document'] || 'default',\n }\n\n const parameters = reactive<DefaultEntities>({ ...defaultEntities })\n\n /** Navigate to the specified path, method, and example. */\n const route = (payload: RoutePayload): void => {\n Object.assign(parameters, defaultEntities, payload)\n }\n\n /** Resolved parameters from the workspace store. */\n const resolvedParameters = computed(() => resolveRouteParameters(workspaceStore, parameters))\n const documentSlug = computed(() => resolvedParameters.value.documentSlug)\n const path = computed(() => resolvedParameters.value.path)\n const method = computed(() => resolvedParameters.value.method)\n const exampleName = computed(() => resolvedParameters.value.example)\n /** The document from the workspace store. */\n const document = computed(() => workspaceStore.workspace.documents[documentSlug.value ?? ''] ?? null)\n\n /** Sidebar state and selection handling. */\n const sidebarState = useModalSidebar({\n workspaceStore,\n documentSlug: documentSlug,\n path: path,\n method: method,\n exampleName: exampleName,\n route,\n })\n\n const modalState = useModal()\n\n const app = createApp(Modal, {\n document,\n eventBus,\n exampleName,\n method,\n modalState,\n path,\n plugins,\n requestBodyCompositionSelection,\n sidebarState,\n workspaceStore,\n options,\n } satisfies ModalProps)\n\n /** Restore the workspace store when the modal is closed. */\n const handleModalClose = () => {\n requestBodyCompositionSelection.value = {}\n }\n\n watch(\n () => modalState.open,\n (open) => (open ? null : handleModalClose()),\n )\n\n // Use a unique id prefix to prevent collisions with other Vue apps on the page\n app.config.idPrefix = 'scalar-client'\n\n /** Mount the modal to a given element. */\n const mount = (mountingEl: HTMLElement | null = el): void => {\n if (!mountingEl) {\n console.error(\n '[@scalar/api-client] Could not create the API client Modal.',\n 'Invalid HTML element provided.',\n 'Read more: https://github.com/scalar/scalar/tree/main/packages/api-client',\n )\n return\n }\n app.mount(mountingEl)\n }\n\n if (mountOnInitialize) {\n mount()\n }\n\n return {\n /** The Vue app instance for the modal. Use with caution. */\n app,\n /** Open the modal and optionally navigate to a specific route. */\n open: (payload?: RoutePayload): void => {\n modalState.open = true\n if (payload) {\n route(payload)\n }\n },\n /** Mount the modal to a given element. */\n mount,\n /** Navigate to the specified path, method, and example. */\n route,\n /** Controls the visibility of the modal. */\n modalState,\n }\n}\n"],"mappings":";;;;;;;;;;;;;AA8CA,IAAa,wBAAwB,EACnC,IACA,WAAW,wBAAwB,EACjC,OAAA,OACD,CAAC,EACF,oBAAoB,MACpB,UAAU,EAAE,EACZ,gBACA,UAAU,EAAE,OACqC;CACjD,MAAM,kCAAkC,IAA4B,EAAE,CAAC;CAEvE,MAAM,kBAAmC;EACvC,MAAM;EACN,QAAQ;EACR,SAAS;EACT,cAAc,eAAe,UAAU,+BAA+B;EACvE;CAED,MAAM,aAAa,SAA0B,EAAE,GAAG,iBAAiB,CAAC;;CAGpE,MAAM,SAAS,YAAgC;AAC7C,SAAO,OAAO,YAAY,iBAAiB,QAAQ;;;CAIrD,MAAM,qBAAqB,eAAe,uBAAuB,gBAAgB,WAAW,CAAC;CAC7F,MAAM,eAAe,eAAe,mBAAmB,MAAM,aAAa;CAC1E,MAAM,OAAO,eAAe,mBAAmB,MAAM,KAAK;CAC1D,MAAM,SAAS,eAAe,mBAAmB,MAAM,OAAO;CAC9D,MAAM,cAAc,eAAe,mBAAmB,MAAM,QAAQ;;CAEpE,MAAM,WAAW,eAAe,eAAe,UAAU,UAAU,aAAa,SAAS,OAAO,KAAK;;CAGrG,MAAM,eAAe,gBAAgB;EACnC;EACc;EACR;EACE;EACK;EACb;EACD,CAAC;CAEF,MAAM,aAAa,UAAU;CAE7B,MAAM,MAAM,UAAU,eAAO;EAC3B;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAsB;;CAGvB,MAAM,yBAAyB;AAC7B,kCAAgC,QAAQ,EAAE;;AAG5C,aACQ,WAAW,OAChB,SAAU,OAAO,OAAO,kBAAkB,CAC5C;AAGD,KAAI,OAAO,WAAW;;CAGtB,MAAM,SAAS,aAAiC,OAAa;AAC3D,MAAI,CAAC,YAAY;AACf,WAAQ,MACN,+DACA,kCACA,4EACD;AACD;;AAEF,MAAI,MAAM,WAAW;;AAGvB,KAAI,kBACF,QAAO;AAGT,QAAO;EAEL;EAEA,OAAO,YAAiC;AACtC,cAAW,OAAO;AAClB,OAAI,QACF,OAAM,QAAQ;;EAIlB;EAEA;EAEA;EACD"}
1
+ {"version":3,"file":"create-api-client-modal.js","names":[],"sources":["../../../../../src/v2/features/modal/helpers/create-api-client-modal.ts"],"sourcesContent":["import { type ModalState, useModal } from '@scalar/components'\nimport type { ClientPlugin } from '@scalar/oas-utils/helpers'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport { type WorkspaceEventBus, createWorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { type App, type MaybeRefOrGetter, computed, createApp, isRef, reactive, ref, toValue, watch } from 'vue'\n\nimport {\n type DefaultEntities,\n type RoutePayload,\n resolveRouteParameters,\n} from '@/v2/features/modal/helpers/resolve-route-parameters'\nimport type { ApiClientModalOptions, ApiClientModalOptionsRef } from '@/v2/features/modal/helpers/types'\nimport { useModalSidebar } from '@/v2/features/modal/hooks/use-modal-sidebar'\nimport Modal, { type ModalProps } from '@/v2/features/modal/Modal.vue'\n\ntype CreateApiClientModalOptions = {\n /** Element to mount the client modal to. */\n el: HTMLElement | null\n /**\n * Will attempt to mount the references immediately.\n * For SSR this may need to be disabled and handled manually on the client side.\n */\n mountOnInitialize?: boolean\n /** You can pass in an event bus if you have one already, or we will create one */\n eventBus?: WorkspaceEventBus\n /** The workspace store must be initialized and passed in. */\n workspaceStore: WorkspaceStore\n /** Api client plugins to include in the modal */\n plugins?: ClientPlugin[]\n /** Subset of the configuration options for the modal, if you want it to be reactive ensure its a ref */\n options?: MaybeRefOrGetter<ApiClientModalOptions>\n}\n\nexport type ApiClientModal = {\n app: App\n open: (payload?: RoutePayload) => void\n mount: (mountingEl: HTMLElement | null) => void\n route: (payload: RoutePayload) => void\n updateOptions: (nextOptions: ApiClientModalOptions, overwrite?: boolean) => void\n modalState: ModalState\n}\n\n/**\n * Creates the API Client Modal.\n *\n * The modal does not require a router. Instead, navigation is handled by setting\n * active entities directly through the returned `route` function.\n */\nexport const createApiClientModal = ({\n el,\n eventBus = createWorkspaceEventBus({\n debug: import.meta.env.DEV,\n }),\n mountOnInitialize = true,\n plugins = [],\n workspaceStore,\n options = {},\n}: CreateApiClientModalOptions): ApiClientModal => {\n const requestBodyCompositionSelection = ref<Record<string, number>>({})\n\n /** This is to ensure that the options are a ref if they are not already, useful for react */\n const optionsRef = (isRef(options) ? options : ref(toValue(options))) as ApiClientModalOptionsRef\n\n const defaultEntities: DefaultEntities = {\n path: 'default',\n method: 'default',\n example: 'default',\n documentSlug: workspaceStore.workspace['x-scalar-active-document'] || 'default',\n }\n\n const parameters = reactive<DefaultEntities>({ ...defaultEntities })\n\n /** Navigate to the specified path, method, and example. */\n const route = (payload: RoutePayload): void => {\n Object.assign(parameters, defaultEntities, payload)\n }\n\n /** Resolved parameters from the workspace store. */\n const resolvedParameters = computed(() => resolveRouteParameters(workspaceStore, parameters))\n const documentSlug = computed(() => resolvedParameters.value.documentSlug)\n const path = computed(() => resolvedParameters.value.path)\n const method = computed(() => resolvedParameters.value.method)\n const exampleName = computed(() => resolvedParameters.value.example)\n /** The document from the workspace store. */\n const document = computed(() => workspaceStore.workspace.documents[documentSlug.value ?? ''] ?? null)\n\n /** Sidebar state and selection handling. */\n const sidebarState = useModalSidebar({\n workspaceStore,\n documentSlug: documentSlug,\n path: path,\n method: method,\n exampleName: exampleName,\n route,\n })\n\n const modalState = useModal()\n\n const app = createApp(Modal, {\n document,\n eventBus,\n exampleName,\n method,\n modalState,\n path,\n plugins,\n requestBodyCompositionSelection,\n sidebarState,\n workspaceStore,\n options: optionsRef,\n } satisfies ModalProps)\n\n /** Restore the workspace store when the modal is closed. */\n const handleModalClose = () => {\n requestBodyCompositionSelection.value = {}\n }\n\n /** Initialize plugins and subscribe to event bus events */\n const pluginUnsubscribes: (() => void)[] = []\n for (const plugin of plugins) {\n plugin.lifecycle?.onInit?.()\n\n if (plugin.on) {\n for (const [event, handler] of Object.entries(plugin.on)) {\n pluginUnsubscribes.push(eventBus.on(event as any, handler as any))\n }\n }\n }\n\n /** Clean up plugin lifecycle and event bus subscriptions when the app is unmounted */\n app.onUnmount(() => {\n for (const unsub of pluginUnsubscribes) {\n unsub()\n }\n for (const plugin of plugins) {\n plugin.lifecycle?.onDestroy?.()\n }\n })\n\n watch(\n () => modalState.open,\n (open) => (open ? null : handleModalClose()),\n )\n\n // Update the active proxy when the proxyUrl changes\n watch(\n () => toValue(optionsRef).proxyUrl,\n (newProxyUrl) => workspaceStore.update('x-scalar-active-proxy', newProxyUrl),\n { immediate: true },\n )\n\n // Use a unique id prefix to prevent collisions with other Vue apps on the page\n app.config.idPrefix = 'scalar-client'\n\n /** Mount the modal to a given element. */\n const mount = (mountingEl: HTMLElement | null = el): void => {\n if (!mountingEl) {\n console.error(\n '[@scalar/api-client] Could not create the API client Modal.',\n 'Invalid HTML element provided.',\n 'Read more: https://github.com/scalar/scalar/tree/main/packages/api-client',\n )\n return\n }\n app.mount(mountingEl)\n }\n\n if (mountOnInitialize) {\n mount()\n }\n\n return {\n /** The Vue app instance for the modal. Use with caution. */\n app,\n /** Open the modal and optionally navigate to a specific route. */\n open: (payload?: RoutePayload): void => {\n modalState.open = true\n if (payload) {\n route(payload)\n }\n },\n /** Mount the modal to a given element. */\n mount,\n /** Navigate to the specified path, method, and example. */\n route,\n /** Controls the visibility of the modal. */\n modalState,\n /**\n * Merge new options into the current modal options.\n *\n * @param newOptions - The new options to merge into the current modal options.\n * @param overwrite - Whether to overwrite the current modal options with the new options. If false, the new options will be merged with the current options.\n */\n updateOptions: (newOptions: ApiClientModalOptions, overwrite = false): void => {\n optionsRef.value = overwrite\n ? newOptions\n : {\n ...optionsRef.value,\n ...newOptions,\n }\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAgDA,IAAa,wBAAwB,EACnC,IACA,WAAW,wBAAwB,EACjC,OAAA,OACD,CAAC,EACF,oBAAoB,MACpB,UAAU,EAAE,EACZ,gBACA,UAAU,EAAE,OACqC;CACjD,MAAM,kCAAkC,IAA4B,EAAE,CAAC;;CAGvE,MAAM,aAAc,MAAM,QAAQ,GAAG,UAAU,IAAI,QAAQ,QAAQ,CAAC;CAEpE,MAAM,kBAAmC;EACvC,MAAM;EACN,QAAQ;EACR,SAAS;EACT,cAAc,eAAe,UAAU,+BAA+B;EACvE;CAED,MAAM,aAAa,SAA0B,EAAE,GAAG,iBAAiB,CAAC;;CAGpE,MAAM,SAAS,YAAgC;AAC7C,SAAO,OAAO,YAAY,iBAAiB,QAAQ;;;CAIrD,MAAM,qBAAqB,eAAe,uBAAuB,gBAAgB,WAAW,CAAC;CAC7F,MAAM,eAAe,eAAe,mBAAmB,MAAM,aAAa;CAC1E,MAAM,OAAO,eAAe,mBAAmB,MAAM,KAAK;CAC1D,MAAM,SAAS,eAAe,mBAAmB,MAAM,OAAO;CAC9D,MAAM,cAAc,eAAe,mBAAmB,MAAM,QAAQ;;CAEpE,MAAM,WAAW,eAAe,eAAe,UAAU,UAAU,aAAa,SAAS,OAAO,KAAK;;CAGrG,MAAM,eAAe,gBAAgB;EACnC;EACc;EACR;EACE;EACK;EACb;EACD,CAAC;CAEF,MAAM,aAAa,UAAU;CAE7B,MAAM,MAAM,UAAU,eAAO;EAC3B;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,SAAS;EACV,CAAsB;;CAGvB,MAAM,yBAAyB;AAC7B,kCAAgC,QAAQ,EAAE;;;CAI5C,MAAM,qBAAqC,EAAE;AAC7C,MAAK,MAAM,UAAU,SAAS;AAC5B,SAAO,WAAW,UAAU;AAE5B,MAAI,OAAO,GACT,MAAK,MAAM,CAAC,OAAO,YAAY,OAAO,QAAQ,OAAO,GAAG,CACtD,oBAAmB,KAAK,SAAS,GAAG,OAAc,QAAe,CAAC;;;AAMxE,KAAI,gBAAgB;AAClB,OAAK,MAAM,SAAS,mBAClB,QAAO;AAET,OAAK,MAAM,UAAU,QACnB,QAAO,WAAW,aAAa;GAEjC;AAEF,aACQ,WAAW,OAChB,SAAU,OAAO,OAAO,kBAAkB,CAC5C;AAGD,aACQ,QAAQ,WAAW,CAAC,WACzB,gBAAgB,eAAe,OAAO,yBAAyB,YAAY,EAC5E,EAAE,WAAW,MAAM,CACpB;AAGD,KAAI,OAAO,WAAW;;CAGtB,MAAM,SAAS,aAAiC,OAAa;AAC3D,MAAI,CAAC,YAAY;AACf,WAAQ,MACN,+DACA,kCACA,4EACD;AACD;;AAEF,MAAI,MAAM,WAAW;;AAGvB,KAAI,kBACF,QAAO;AAGT,QAAO;EAEL;EAEA,OAAO,YAAiC;AACtC,cAAW,OAAO;AAClB,OAAI,QACF,OAAM,QAAQ;;EAIlB;EAEA;EAEA;EAOA,gBAAgB,YAAmC,YAAY,UAAgB;AAC7E,cAAW,QAAQ,YACf,aACA;IACE,GAAG,WAAW;IACd,GAAG;IACJ;;EAER"}