@scalar/api-client 2.43.0 → 3.0.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 (1485) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +82 -74
  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/style.css +6031 -7687
  25. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +4 -1
  26. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  27. package/dist/v2/blocks/operation-block/OperationBlock.vue.js.map +1 -1
  28. package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js +13 -10
  29. package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js.map +1 -1
  30. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +1 -1
  31. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  32. package/dist/v2/blocks/operation-block/components/Header.vue.js +1 -1
  33. package/dist/v2/blocks/operation-block/components/Header.vue.js.map +1 -1
  34. package/dist/v2/blocks/operation-block/components/Header.vue.script.js +2 -2
  35. package/dist/v2/blocks/operation-block/components/Header.vue.script.js.map +1 -1
  36. package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.d.ts.map +1 -0
  37. package/dist/{components → v2/blocks/operation-block/components}/OpenApiClientButton.vue.js +3 -3
  38. package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.js.map +1 -0
  39. package/dist/{components → v2/blocks/operation-block/components}/OpenApiClientButton.vue.script.js +6 -7
  40. package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.script.js.map +1 -0
  41. package/dist/v2/blocks/operation-block/helpers/decode-buffer.js +3 -3
  42. package/dist/v2/blocks/operation-block/helpers/decode-buffer.js.map +1 -1
  43. package/dist/v2/blocks/operation-block/helpers/response-cache.d.ts +1 -1
  44. package/dist/v2/blocks/operation-block/helpers/response-cache.d.ts.map +1 -1
  45. package/dist/v2/blocks/operation-block/helpers/response-cache.js.map +1 -1
  46. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +1 -1
  47. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts.map +1 -1
  48. package/dist/v2/blocks/operation-block/helpers/send-request.js +2 -2
  49. package/dist/v2/blocks/operation-block/helpers/send-request.js.map +1 -1
  50. package/dist/v2/blocks/operation-block/index.d.ts +1 -0
  51. package/dist/v2/blocks/operation-block/index.d.ts.map +1 -1
  52. package/dist/v2/blocks/operation-block/index.js +2 -1
  53. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  54. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +1 -1
  55. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js.map +1 -1
  56. package/dist/{views/Components/CodeSnippet → v2/blocks/operation-code-sample}/helpers/get-snippet.d.ts +1 -1
  57. package/dist/v2/blocks/operation-code-sample/helpers/get-snippet.d.ts.map +1 -0
  58. package/dist/{views/Components/CodeSnippet → v2/blocks/operation-code-sample}/helpers/get-snippet.js +2 -3
  59. package/dist/v2/blocks/operation-code-sample/helpers/get-snippet.js.map +1 -0
  60. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js +1 -1
  61. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +4 -1
  62. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  63. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  64. package/dist/v2/blocks/request-block/RequestBlock.vue.js.map +1 -1
  65. package/dist/v2/blocks/request-block/RequestBlock.vue.script.js +4 -1
  66. package/dist/v2/blocks/request-block/RequestBlock.vue.script.js.map +1 -1
  67. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +1 -1
  68. package/dist/v2/blocks/request-block/components/RequestBody.vue.js.map +1 -1
  69. package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js +2 -2
  70. package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js.map +1 -1
  71. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js.map +1 -1
  72. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.script.js +1 -1
  73. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.script.js.map +1 -1
  74. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
  75. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  76. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +6 -6
  77. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  78. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -1
  79. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  80. package/dist/v2/blocks/request-block/helpers/get-default-headers.js.map +1 -1
  81. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +2 -2
  82. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
  83. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +1 -1
  84. package/dist/v2/blocks/response-block/ResponseBlock.vue.js.map +1 -1
  85. package/dist/v2/blocks/response-block/ResponseBlock.vue.script.js +1 -1
  86. package/dist/v2/blocks/response-block/ResponseBlock.vue.script.js.map +1 -1
  87. package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -1
  88. package/dist/v2/blocks/response-block/components/Headers.vue.js.map +1 -1
  89. package/dist/v2/blocks/response-block/components/Headers.vue.script.js +11 -13
  90. package/dist/v2/blocks/response-block/components/Headers.vue.script.js.map +1 -1
  91. package/dist/v2/blocks/response-block/components/ResponseBody.vue.script.js +1 -1
  92. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js.map +1 -1
  93. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.script.js +1 -1
  94. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.script.js.map +1 -1
  95. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts +1 -1
  96. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -1
  97. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js +1 -1
  98. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js.map +1 -1
  99. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.script.js.map +1 -1
  100. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.script.js +1 -1
  101. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -1
  102. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.js.map +1 -1
  103. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.script.js +2 -1
  104. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.script.js.map +1 -1
  105. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.d.ts.map +1 -1
  106. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js.map +1 -1
  107. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.script.js +9 -9
  108. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.script.js.map +1 -1
  109. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts +3 -3
  110. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
  111. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
  112. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js.map +1 -1
  113. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.script.js.map +1 -1
  114. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts +1 -1
  115. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -1
  116. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js.map +1 -1
  117. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.script.js +1 -1
  118. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.script.js.map +1 -1
  119. package/dist/v2/blocks/response-block/helpers/get-content-length.d.ts +1 -1
  120. package/dist/v2/blocks/response-block/helpers/get-content-length.d.ts.map +1 -1
  121. package/dist/v2/blocks/response-block/helpers/get-content-length.js.map +1 -1
  122. package/dist/v2/blocks/response-block/helpers/media-types.d.ts +1 -1
  123. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
  124. package/dist/v2/blocks/response-block/helpers/media-types.js +10 -1
  125. package/dist/v2/blocks/response-block/helpers/media-types.js.map +1 -1
  126. package/dist/v2/blocks/response-block/helpers/process-response-body.d.ts +1 -2
  127. package/dist/v2/blocks/response-block/helpers/process-response-body.d.ts.map +1 -1
  128. package/dist/v2/blocks/response-block/helpers/process-response-body.js +2 -2
  129. package/dist/v2/blocks/response-block/helpers/process-response-body.js.map +1 -1
  130. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +2 -2
  131. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  132. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
  133. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js.map +1 -1
  134. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js +8 -3
  135. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js.map +1 -1
  136. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +1 -1
  137. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js.map +1 -1
  138. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.script.js +2 -2
  139. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.script.js.map +1 -1
  140. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +3 -0
  141. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js.map +1 -1
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.script.js +4 -1
  144. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.script.js.map +1 -1
  145. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +2 -2
  146. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +31 -6
  147. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  148. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js.map +1 -1
  149. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js +6 -8
  150. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js.map +1 -1
  151. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts.map +1 -1
  152. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +1 -1
  153. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js.map +1 -1
  154. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js +5 -5
  155. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js.map +1 -1
  156. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js.map +1 -1
  157. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js +3 -3
  158. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js.map +1 -1
  159. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js.map +1 -1
  160. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.script.js +1 -1
  161. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.script.js.map +1 -1
  162. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +3 -0
  163. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  164. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js.map +1 -1
  165. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js +6 -3
  166. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js.map +1 -1
  167. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
  168. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +3 -0
  169. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  170. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js.map +1 -1
  171. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js +4 -1
  172. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js.map +1 -1
  173. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +1 -1
  174. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts.map +1 -1
  175. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js.map +1 -1
  176. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +1 -1
  177. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  178. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +3 -3
  179. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js.map +1 -1
  180. package/dist/v2/blocks/scalar-auth-selector-block/helpers/resolve-default-oauth2-redirect-url.d.ts +11 -0
  181. package/dist/v2/blocks/scalar-auth-selector-block/helpers/resolve-default-oauth2-redirect-url.d.ts.map +1 -0
  182. package/dist/v2/blocks/scalar-auth-selector-block/helpers/resolve-default-oauth2-redirect-url.js +18 -0
  183. package/dist/v2/blocks/scalar-auth-selector-block/helpers/resolve-default-oauth2-redirect-url.js.map +1 -0
  184. package/dist/v2/components/code-input/CodeInput.vue.d.ts +4 -3
  185. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  186. package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
  187. package/dist/v2/components/code-input/CodeInput.vue.js.map +1 -1
  188. package/dist/v2/components/code-input/CodeInput.vue.script.js +8 -0
  189. package/dist/v2/components/code-input/CodeInput.vue.script.js.map +1 -1
  190. package/dist/{views/Collection/CollectionNavigation.vue.d.ts → v2/components/code-input/PillTooltipHost.vue.d.ts} +3 -2
  191. package/dist/v2/components/code-input/PillTooltipHost.vue.d.ts.map +1 -0
  192. package/dist/v2/components/code-input/PillTooltipHost.vue.js +7 -0
  193. package/dist/v2/components/code-input/PillTooltipHost.vue.js.map +1 -0
  194. package/dist/v2/components/code-input/PillTooltipHost.vue.script.js +40 -0
  195. package/dist/v2/components/code-input/PillTooltipHost.vue.script.js.map +1 -0
  196. package/dist/v2/components/code-input/code-variable-widget.d.ts +1 -0
  197. package/dist/v2/components/code-input/code-variable-widget.d.ts.map +1 -1
  198. package/dist/v2/components/code-input/code-variable-widget.js +33 -20
  199. package/dist/v2/components/code-input/code-variable-widget.js.map +1 -1
  200. package/dist/v2/components/code-input/pill-context.d.ts +11 -0
  201. package/dist/v2/components/code-input/pill-context.d.ts.map +1 -0
  202. package/dist/v2/components/data-table/DataTableInput.vue.d.ts +3 -3
  203. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
  204. package/dist/v2/components/layout/CollapsibleSection.vue.d.ts.map +1 -1
  205. package/dist/v2/components/layout/CollapsibleSection.vue.js.map +1 -1
  206. package/dist/v2/components/layout/CollapsibleSection.vue.script.js +5 -2
  207. package/dist/v2/components/layout/CollapsibleSection.vue.script.js.map +1 -1
  208. package/dist/v2/components/modals/DeleteModal.vue.d.ts +2 -2
  209. package/dist/v2/components/modals/ModalClientContainer.vue.d.ts +2 -2
  210. package/dist/v2/components/server/ServerDropdown.vue.d.ts +1 -1
  211. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
  212. package/dist/v2/components/server/ServerDropdown.vue.js.map +1 -1
  213. package/dist/v2/components/server/ServerDropdown.vue.script.js.map +1 -1
  214. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  215. package/dist/v2/components/sidebar/Sidebar.vue.js.map +1 -1
  216. package/dist/v2/components/sidebar/Sidebar.vue.script.js +1 -1
  217. package/dist/v2/components/sidebar/Sidebar.vue.script.js.map +1 -1
  218. package/dist/v2/constants.js +1 -1
  219. package/dist/v2/features/app/App.vue.script.js +1 -1
  220. package/dist/v2/features/app/app-state.js +6 -6
  221. package/dist/v2/features/app/components/AppSidebar.vue.script.js +2 -2
  222. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts.map +1 -1
  223. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js.map +1 -1
  224. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js +4 -4
  225. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js.map +1 -1
  226. package/dist/v2/features/app/components/DesktopTab.vue.d.ts +4 -4
  227. package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +1 -1
  228. package/dist/v2/features/app/components/DesktopTab.vue.js +1 -1
  229. package/dist/v2/features/app/components/DesktopTab.vue.js.map +1 -1
  230. package/dist/v2/features/app/components/DesktopTab.vue.script.js +2 -2
  231. package/dist/v2/features/app/components/DesktopTab.vue.script.js.map +1 -1
  232. package/dist/v2/features/app/helpers/routes.d.ts +2 -2
  233. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  234. package/dist/v2/features/app/helpers/routes.js +11 -5
  235. package/dist/v2/features/app/helpers/routes.js.map +1 -1
  236. package/dist/v2/features/app/index.js +2 -2
  237. package/dist/v2/features/collection/DocumentCollection.vue.script.js +1 -1
  238. package/dist/v2/features/collection/OperationCollection.vue.script.js +1 -1
  239. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js +1 -1
  240. package/dist/v2/features/collection/components/Runner/components/Runner.vue.d.ts +16 -0
  241. package/dist/v2/features/collection/components/Runner/components/Runner.vue.d.ts.map +1 -0
  242. package/dist/v2/features/collection/components/Runner/components/Runner.vue.js +7 -0
  243. package/dist/v2/features/collection/components/Runner/components/Runner.vue.js.map +1 -0
  244. package/dist/v2/features/collection/components/Runner/components/Runner.vue.script.js +220 -0
  245. package/dist/v2/features/collection/components/Runner/components/Runner.vue.script.js.map +1 -0
  246. package/dist/{components/Sidebar/SidebarButton.vue.d.ts → v2/features/collection/components/Runner/components/RunnerCard.vue.d.ts} +8 -6
  247. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.d.ts.map +1 -0
  248. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.js +7 -0
  249. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.js.map +1 -0
  250. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.script.js +45 -0
  251. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.script.js.map +1 -0
  252. package/dist/{components/Form/LabelInput.vue.d.ts → v2/features/collection/components/Runner/components/RunnerOrderItem.vue.d.ts} +12 -8
  253. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.d.ts.map +1 -0
  254. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.js +7 -0
  255. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.js.map +1 -0
  256. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.script.js +73 -0
  257. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.script.js.map +1 -0
  258. package/dist/{components/AddressBar/AddressBarHistory.vue.d.ts → v2/features/collection/components/Runner/components/RunnerResultRow.vue.d.ts} +11 -5
  259. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.d.ts.map +1 -0
  260. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.js +7 -0
  261. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.js.map +1 -0
  262. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.script.js +124 -0
  263. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.script.js.map +1 -0
  264. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.d.ts +17 -0
  265. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.d.ts.map +1 -0
  266. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.js +7 -0
  267. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.js.map +1 -0
  268. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.script.js +126 -0
  269. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.script.js.map +1 -0
  270. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.d.ts +18 -0
  271. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.d.ts.map +1 -0
  272. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.js +7 -0
  273. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.js.map +1 -0
  274. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.script.js +180 -0
  275. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.script.js.map +1 -0
  276. package/dist/{components/Sidebar/Actions/EditSidebarListElement.vue.d.ts → v2/features/collection/components/Runner/components/RunnerTreeExample.vue.d.ts} +6 -5
  277. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.d.ts.map +1 -0
  278. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.js +7 -0
  279. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.js.map +1 -0
  280. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.script.js +44 -0
  281. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.script.js.map +1 -0
  282. package/dist/{components/DataTable/DataTableText.vue.d.ts → v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.d.ts} +6 -4
  283. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.d.ts.map +1 -0
  284. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.js +7 -0
  285. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.js.map +1 -0
  286. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.script.js +53 -0
  287. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.script.js.map +1 -0
  288. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.d.ts +23 -0
  289. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.d.ts.map +1 -0
  290. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.js +7 -0
  291. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.js.map +1 -0
  292. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.script.js +75 -0
  293. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.script.js.map +1 -0
  294. package/dist/v2/features/collection/components/Runner/hooks/index.d.ts +3 -0
  295. package/dist/v2/features/collection/components/Runner/hooks/index.d.ts.map +1 -0
  296. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.d.ts +73 -0
  297. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.d.ts.map +1 -0
  298. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.js +190 -0
  299. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.js.map +1 -0
  300. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.d.ts +46 -0
  301. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.d.ts.map +1 -0
  302. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.js +114 -0
  303. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.js.map +1 -0
  304. package/dist/v2/features/collection/components/Runner/index.d.ts +2 -0
  305. package/dist/v2/features/collection/components/Runner/index.d.ts.map +1 -0
  306. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -1
  307. package/dist/v2/features/collection/components/Tabs.vue.js.map +1 -1
  308. package/dist/v2/features/collection/components/Tabs.vue.script.js +3 -2
  309. package/dist/v2/features/collection/components/Tabs.vue.script.js.map +1 -1
  310. package/dist/v2/features/command-palette/TheCommandPalette.vue.script.js +2 -2
  311. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js.map +1 -1
  312. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js +3 -3
  313. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js.map +1 -1
  314. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.script.js +1 -1
  315. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +1 -1
  316. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js.map +1 -1
  317. package/dist/{libs → v2/features/command-palette/helpers}/parse-curl.d.ts +2 -2
  318. package/dist/v2/features/command-palette/helpers/parse-curl.d.ts.map +1 -0
  319. package/dist/{libs → v2/features/command-palette/helpers}/parse-curl.js +1 -1
  320. package/dist/v2/features/command-palette/helpers/parse-curl.js.map +1 -0
  321. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +1 -1
  322. package/dist/v2/features/command-palette/index.d.ts +2 -0
  323. package/dist/v2/features/command-palette/index.d.ts.map +1 -1
  324. package/dist/v2/features/command-palette/index.js +3 -1
  325. package/dist/v2/features/editor/helpers/configure-language-support.js +3 -3
  326. package/dist/v2/features/editor/helpers/configure-language-support.js.map +1 -1
  327. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts +1 -1
  328. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts.map +1 -1
  329. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js +1 -1
  330. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js.map +1 -1
  331. package/dist/v2/features/editor/helpers/json/json-ast.d.ts +1 -1
  332. package/dist/v2/features/editor/helpers/json/json-ast.d.ts.map +1 -1
  333. package/dist/v2/features/editor/helpers/json/json-ast.js +1 -1
  334. package/dist/v2/features/editor/helpers/json/json-ast.js.map +1 -1
  335. package/dist/v2/features/editor/helpers/theme/load-css-variables.d.ts +1 -1
  336. package/dist/v2/features/editor/hooks/use-editor-markers.d.ts.map +1 -1
  337. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -1
  338. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js.map +1 -1
  339. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.script.js +4 -4
  340. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.script.js.map +1 -1
  341. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts +5 -0
  342. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts.map +1 -1
  343. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js.map +1 -1
  344. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.script.js +70 -13
  345. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.script.js.map +1 -1
  346. package/dist/v2/features/modal/Modal.vue.d.ts +8 -3
  347. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  348. package/dist/v2/features/modal/Modal.vue.js.map +1 -1
  349. package/dist/v2/features/modal/Modal.vue.script.js +1 -1
  350. package/dist/v2/features/modal/Modal.vue.script.js.map +1 -1
  351. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +4 -3
  352. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  353. package/dist/v2/features/modal/helpers/create-api-client-modal.js +12 -3
  354. package/dist/v2/features/modal/helpers/create-api-client-modal.js.map +1 -1
  355. package/dist/v2/features/modal/helpers/types.d.ts +8 -0
  356. package/dist/v2/features/modal/helpers/types.d.ts.map +1 -0
  357. package/dist/v2/features/modal/index.d.ts +1 -0
  358. package/dist/v2/features/modal/index.d.ts.map +1 -1
  359. package/dist/v2/features/operation/Operation.vue.d.ts +3 -3
  360. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  361. package/dist/v2/features/operation/Operation.vue.js.map +1 -1
  362. package/dist/v2/features/operation/Operation.vue.script.js +3 -1
  363. package/dist/v2/features/operation/Operation.vue.script.js.map +1 -1
  364. package/dist/v2/features/settings/CollectionSettings.vue.script.js +1 -1
  365. package/dist/v2/features/settings/components/Appearance.vue.d.ts +2 -2
  366. package/dist/v2/helpers/safe-run.d.ts +10 -0
  367. package/dist/v2/helpers/safe-run.d.ts.map +1 -0
  368. package/dist/v2/helpers/safe-run.js +19 -0
  369. package/dist/v2/helpers/safe-run.js.map +1 -0
  370. package/package.json +146 -169
  371. package/dist/assets/keycap.ascii.virtual.js +0 -6
  372. package/dist/assets/keycap.ascii.virtual.js.map +0 -1
  373. package/dist/components/AddressBar/AddressBar.vue.d.ts +0 -20
  374. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +0 -1
  375. package/dist/components/AddressBar/AddressBar.vue.js +0 -9
  376. package/dist/components/AddressBar/AddressBar.vue.js.map +0 -1
  377. package/dist/components/AddressBar/AddressBar.vue.script.js +0 -204
  378. package/dist/components/AddressBar/AddressBar.vue.script.js.map +0 -1
  379. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +0 -1
  380. package/dist/components/AddressBar/AddressBarHistory.vue.js +0 -9
  381. package/dist/components/AddressBar/AddressBarHistory.vue.js.map +0 -1
  382. package/dist/components/AddressBar/AddressBarHistory.vue.script.js +0 -85
  383. package/dist/components/AddressBar/AddressBarHistory.vue.script.js.map +0 -1
  384. package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -22
  385. package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +0 -1
  386. package/dist/components/AddressBar/httpStatusCodeColors.js +0 -20
  387. package/dist/components/AddressBar/httpStatusCodeColors.js.map +0 -1
  388. package/dist/components/AddressBar/index.d.ts +0 -2
  389. package/dist/components/AddressBar/index.d.ts.map +0 -1
  390. package/dist/components/AddressBar/index.js +0 -2
  391. package/dist/components/CodeInput/CodeInput.vue.d.ts +0 -101
  392. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +0 -1
  393. package/dist/components/CodeInput/CodeInput.vue.js +0 -10
  394. package/dist/components/CodeInput/CodeInput.vue.js.map +0 -1
  395. package/dist/components/CodeInput/CodeInput.vue.script.js +0 -294
  396. package/dist/components/CodeInput/CodeInput.vue.script.js.map +0 -1
  397. package/dist/components/CodeInput/codeVariableWidget.d.ts +0 -17
  398. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +0 -1
  399. package/dist/components/CodeInput/codeVariableWidget.js +0 -135
  400. package/dist/components/CodeInput/codeVariableWidget.js.map +0 -1
  401. package/dist/components/CodeInput/index.d.ts +0 -2
  402. package/dist/components/CodeInput/index.d.ts.map +0 -1
  403. package/dist/components/CodeInput/index.js +0 -2
  404. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +0 -31
  405. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +0 -1
  406. package/dist/components/CommandPalette/CommandActionForm.vue.js +0 -7
  407. package/dist/components/CommandPalette/CommandActionForm.vue.js.map +0 -1
  408. package/dist/components/CommandPalette/CommandActionForm.vue.script.js +0 -42
  409. package/dist/components/CommandPalette/CommandActionForm.vue.script.js.map +0 -1
  410. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +0 -15
  411. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +0 -1
  412. package/dist/components/CommandPalette/CommandActionInput.vue.js +0 -7
  413. package/dist/components/CommandPalette/CommandActionInput.vue.js.map +0 -1
  414. package/dist/components/CommandPalette/CommandActionInput.vue.script.js +0 -55
  415. package/dist/components/CommandPalette/CommandActionInput.vue.script.js.map +0 -1
  416. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +0 -10
  417. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +0 -1
  418. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +0 -7
  419. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js.map +0 -1
  420. package/dist/components/CommandPalette/CommandPaletteCollection.vue.script.js +0 -78
  421. package/dist/components/CommandPalette/CommandPaletteCollection.vue.script.js.map +0 -1
  422. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +0 -16
  423. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +0 -1
  424. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +0 -7
  425. package/dist/components/CommandPalette/CommandPaletteExample.vue.js.map +0 -1
  426. package/dist/components/CommandPalette/CommandPaletteExample.vue.script.js +0 -104
  427. package/dist/components/CommandPalette/CommandPaletteExample.vue.script.js.map +0 -1
  428. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +0 -10
  429. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +0 -1
  430. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +0 -7
  431. package/dist/components/CommandPalette/CommandPaletteImport.vue.js.map +0 -1
  432. package/dist/components/CommandPalette/CommandPaletteImport.vue.script.js +0 -181
  433. package/dist/components/CommandPalette/CommandPaletteImport.vue.script.js.map +0 -1
  434. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.d.ts +0 -20
  435. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.d.ts.map +0 -1
  436. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +0 -9
  437. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js.map +0 -1
  438. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.script.js +0 -108
  439. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.script.js.map +0 -1
  440. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +0 -16
  441. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +0 -1
  442. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +0 -7
  443. package/dist/components/CommandPalette/CommandPaletteServer.vue.js.map +0 -1
  444. package/dist/components/CommandPalette/CommandPaletteServer.vue.script.js +0 -108
  445. package/dist/components/CommandPalette/CommandPaletteServer.vue.script.js.map +0 -1
  446. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +0 -10
  447. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +0 -1
  448. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +0 -7
  449. package/dist/components/CommandPalette/CommandPaletteTag.vue.js.map +0 -1
  450. package/dist/components/CommandPalette/CommandPaletteTag.vue.script.js +0 -70
  451. package/dist/components/CommandPalette/CommandPaletteTag.vue.script.js.map +0 -1
  452. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +0 -10
  453. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +0 -1
  454. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +0 -7
  455. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js.map +0 -1
  456. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.script.js +0 -49
  457. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.script.js.map +0 -1
  458. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +0 -217
  459. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +0 -1
  460. package/dist/components/CommandPalette/TheCommandPalette.vue.js +0 -9
  461. package/dist/components/CommandPalette/TheCommandPalette.vue.js.map +0 -1
  462. package/dist/components/CommandPalette/TheCommandPalette.vue.script.js +0 -323
  463. package/dist/components/CommandPalette/TheCommandPalette.vue.script.js.map +0 -1
  464. package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts +0 -14
  465. package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts.map +0 -1
  466. package/dist/components/CommandPalette/WatchModeToggle.vue.js +0 -7
  467. package/dist/components/CommandPalette/WatchModeToggle.vue.js.map +0 -1
  468. package/dist/components/CommandPalette/WatchModeToggle.vue.script.js +0 -40
  469. package/dist/components/CommandPalette/WatchModeToggle.vue.script.js.map +0 -1
  470. package/dist/components/CommandPalette/index.d.ts +0 -2
  471. package/dist/components/CommandPalette/index.d.ts.map +0 -1
  472. package/dist/components/CommandPalette/index.js +0 -2
  473. package/dist/components/DataTable/DataTable.vue.d.ts +0 -23
  474. package/dist/components/DataTable/DataTable.vue.d.ts.map +0 -1
  475. package/dist/components/DataTable/DataTable.vue.js +0 -7
  476. package/dist/components/DataTable/DataTable.vue.js.map +0 -1
  477. package/dist/components/DataTable/DataTable.vue.script.js +0 -30
  478. package/dist/components/DataTable/DataTable.vue.script.js.map +0 -1
  479. package/dist/components/DataTable/DataTableCell.vue.d.ts +0 -20
  480. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +0 -1
  481. package/dist/components/DataTable/DataTableCell.vue.js +0 -7
  482. package/dist/components/DataTable/DataTableCell.vue.js.map +0 -1
  483. package/dist/components/DataTable/DataTableCell.vue.script.js +0 -21
  484. package/dist/components/DataTable/DataTableCell.vue.script.js.map +0 -1
  485. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +0 -15
  486. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +0 -1
  487. package/dist/components/DataTable/DataTableCheckbox.vue.js +0 -7
  488. package/dist/components/DataTable/DataTableCheckbox.vue.js.map +0 -1
  489. package/dist/components/DataTable/DataTableCheckbox.vue.script.js +0 -43
  490. package/dist/components/DataTable/DataTableCheckbox.vue.script.js.map +0 -1
  491. package/dist/components/DataTable/DataTableHeader.vue.d.ts +0 -14
  492. package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +0 -1
  493. package/dist/components/DataTable/DataTableHeader.vue.js +0 -7
  494. package/dist/components/DataTable/DataTableHeader.vue.js.map +0 -1
  495. package/dist/components/DataTable/DataTableHeader.vue.script.js +0 -20
  496. package/dist/components/DataTable/DataTableHeader.vue.script.js.map +0 -1
  497. package/dist/components/DataTable/DataTableInput.vue.d.ts +0 -54
  498. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +0 -1
  499. package/dist/components/DataTable/DataTableInput.vue.js +0 -9
  500. package/dist/components/DataTable/DataTableInput.vue.js.map +0 -1
  501. package/dist/components/DataTable/DataTableInput.vue.script.js +0 -164
  502. package/dist/components/DataTable/DataTableInput.vue.script.js.map +0 -1
  503. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +0 -17
  504. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +0 -1
  505. package/dist/components/DataTable/DataTableInputSelect.vue.js +0 -7
  506. package/dist/components/DataTable/DataTableInputSelect.vue.js.map +0 -1
  507. package/dist/components/DataTable/DataTableInputSelect.vue.script.js +0 -150
  508. package/dist/components/DataTable/DataTableInputSelect.vue.script.js.map +0 -1
  509. package/dist/components/DataTable/DataTableRow.vue.d.ts +0 -14
  510. package/dist/components/DataTable/DataTableRow.vue.d.ts.map +0 -1
  511. package/dist/components/DataTable/DataTableRow.vue.js +0 -13
  512. package/dist/components/DataTable/DataTableRow.vue.js.map +0 -1
  513. package/dist/components/DataTable/DataTableText.vue.d.ts.map +0 -1
  514. package/dist/components/DataTable/DataTableText.vue.js +0 -7
  515. package/dist/components/DataTable/DataTableText.vue.js.map +0 -1
  516. package/dist/components/DataTable/DataTableText.vue.script.js +0 -20
  517. package/dist/components/DataTable/DataTableText.vue.script.js.map +0 -1
  518. package/dist/components/DataTable/index.d.ts +0 -9
  519. package/dist/components/DataTable/index.d.ts.map +0 -1
  520. package/dist/components/DataTable/index.js +0 -9
  521. package/dist/components/EmptyState.vue.d.ts +0 -4
  522. package/dist/components/EmptyState.vue.d.ts.map +0 -1
  523. package/dist/components/EmptyState.vue.js +0 -9
  524. package/dist/components/EmptyState.vue.js.map +0 -1
  525. package/dist/components/EmptyState.vue.script.js +0 -41
  526. package/dist/components/EmptyState.vue.script.js.map +0 -1
  527. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts +0 -4
  528. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +0 -1
  529. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +0 -7
  530. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js.map +0 -1
  531. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.script.js +0 -111
  532. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.script.js.map +0 -1
  533. package/dist/components/Form/Form.vue.d.ts +0 -26
  534. package/dist/components/Form/Form.vue.d.ts.map +0 -1
  535. package/dist/components/Form/Form.vue.js +0 -7
  536. package/dist/components/Form/Form.vue.js.map +0 -1
  537. package/dist/components/Form/Form.vue.script.js +0 -82
  538. package/dist/components/Form/Form.vue.script.js.map +0 -1
  539. package/dist/components/Form/LabelInput.vue.d.ts.map +0 -1
  540. package/dist/components/Form/LabelInput.vue.js +0 -9
  541. package/dist/components/Form/LabelInput.vue.js.map +0 -1
  542. package/dist/components/Form/LabelInput.vue.script.js +0 -39
  543. package/dist/components/Form/LabelInput.vue.script.js.map +0 -1
  544. package/dist/components/HttpMethod/index.js +0 -2
  545. package/dist/components/ImportCollection/DropEventListener.vue.d.ts +0 -8
  546. package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +0 -1
  547. package/dist/components/ImportCollection/DropEventListener.vue.js +0 -7
  548. package/dist/components/ImportCollection/DropEventListener.vue.js.map +0 -1
  549. package/dist/components/ImportCollection/DropEventListener.vue.script.js +0 -91
  550. package/dist/components/ImportCollection/DropEventListener.vue.script.js.map +0 -1
  551. package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts +0 -14
  552. package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +0 -1
  553. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +0 -7
  554. package/dist/components/ImportCollection/ImportCollectionListener.vue.js.map +0 -1
  555. package/dist/components/ImportCollection/ImportCollectionListener.vue.script.js +0 -102
  556. package/dist/components/ImportCollection/ImportCollectionListener.vue.script.js.map +0 -1
  557. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +0 -13
  558. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +0 -1
  559. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +0 -8
  560. package/dist/components/ImportCollection/ImportCollectionModal.vue.js.map +0 -1
  561. package/dist/components/ImportCollection/ImportCollectionModal.vue.script.js +0 -206
  562. package/dist/components/ImportCollection/ImportCollectionModal.vue.script.js.map +0 -1
  563. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts +0 -13
  564. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +0 -1
  565. package/dist/components/ImportCollection/ImportNowButton.vue.js +0 -7
  566. package/dist/components/ImportCollection/ImportNowButton.vue.js.map +0 -1
  567. package/dist/components/ImportCollection/ImportNowButton.vue.script.js +0 -82
  568. package/dist/components/ImportCollection/ImportNowButton.vue.script.js.map +0 -1
  569. package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +0 -8
  570. package/dist/components/ImportCollection/PasteEventListener.vue.d.ts.map +0 -1
  571. package/dist/components/ImportCollection/PasteEventListener.vue.js +0 -7
  572. package/dist/components/ImportCollection/PasteEventListener.vue.js.map +0 -1
  573. package/dist/components/ImportCollection/PasteEventListener.vue.script.js +0 -31
  574. package/dist/components/ImportCollection/PasteEventListener.vue.script.js.map +0 -1
  575. package/dist/components/ImportCollection/PrefetchError.vue.d.ts +0 -7
  576. package/dist/components/ImportCollection/PrefetchError.vue.d.ts.map +0 -1
  577. package/dist/components/ImportCollection/PrefetchError.vue.js +0 -7
  578. package/dist/components/ImportCollection/PrefetchError.vue.js.map +0 -1
  579. package/dist/components/ImportCollection/PrefetchError.vue.script.js +0 -32
  580. package/dist/components/ImportCollection/PrefetchError.vue.script.js.map +0 -1
  581. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +0 -8
  582. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +0 -1
  583. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +0 -7
  584. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js.map +0 -1
  585. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.script.js +0 -21
  586. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.script.js.map +0 -1
  587. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts +0 -4
  588. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +0 -1
  589. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +0 -7
  590. package/dist/components/ImportCollection/WorkspaceSelector.vue.js.map +0 -1
  591. package/dist/components/ImportCollection/WorkspaceSelector.vue.script.js +0 -114
  592. package/dist/components/ImportCollection/WorkspaceSelector.vue.script.js.map +0 -1
  593. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -39
  594. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +0 -1
  595. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +0 -109
  596. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js.map +0 -1
  597. package/dist/components/ImportCollection/index.d.ts +0 -2
  598. package/dist/components/ImportCollection/index.d.ts.map +0 -1
  599. package/dist/components/ImportCollection/index.js +0 -2
  600. package/dist/components/ImportCollection/utils/get-openapi-version.d.ts +0 -5
  601. package/dist/components/ImportCollection/utils/get-openapi-version.d.ts.map +0 -1
  602. package/dist/components/ImportCollection/utils/get-openapi-version.js +0 -26
  603. package/dist/components/ImportCollection/utils/get-openapi-version.js.map +0 -1
  604. package/dist/components/ImportCollection/utils/import-collection.d.ts +0 -12
  605. package/dist/components/ImportCollection/utils/import-collection.d.ts.map +0 -1
  606. package/dist/components/ImportCollection/utils/import-collection.js +0 -23
  607. package/dist/components/ImportCollection/utils/import-collection.js.map +0 -1
  608. package/dist/components/ImportCollection/utils/is-document.d.ts +0 -3
  609. package/dist/components/ImportCollection/utils/is-document.d.ts.map +0 -1
  610. package/dist/components/ImportCollection/utils/is-document.js +0 -12
  611. package/dist/components/ImportCollection/utils/is-document.js.map +0 -1
  612. package/dist/components/ImportCollection/utils/is-url.d.ts +0 -5
  613. package/dist/components/ImportCollection/utils/is-url.d.ts.map +0 -1
  614. package/dist/components/ImportCollection/utils/is-url.js +0 -14
  615. package/dist/components/ImportCollection/utils/is-url.js.map +0 -1
  616. package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts +0 -6
  617. package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts.map +0 -1
  618. package/dist/components/ImportCollection/utils/workspace-store-is-empty.js +0 -13
  619. package/dist/components/ImportCollection/utils/workspace-store-is-empty.js.map +0 -1
  620. package/dist/components/OpenApiClientButton.vue.d.ts.map +0 -1
  621. package/dist/components/OpenApiClientButton.vue.js.map +0 -1
  622. package/dist/components/OpenApiClientButton.vue.script.js.map +0 -1
  623. package/dist/components/Search/useSearch.d.ts +0 -33
  624. package/dist/components/Search/useSearch.d.ts.map +0 -1
  625. package/dist/components/Search/useSearch.js +0 -110
  626. package/dist/components/Search/useSearch.js.map +0 -1
  627. package/dist/components/Server/ServerDropdown.vue.d.ts +0 -12
  628. package/dist/components/Server/ServerDropdown.vue.d.ts.map +0 -1
  629. package/dist/components/Server/ServerDropdown.vue.js +0 -7
  630. package/dist/components/Server/ServerDropdown.vue.js.map +0 -1
  631. package/dist/components/Server/ServerDropdown.vue.script.js +0 -133
  632. package/dist/components/Server/ServerDropdown.vue.script.js.map +0 -1
  633. package/dist/components/Server/ServerDropdownItem.vue.d.ts +0 -19
  634. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +0 -1
  635. package/dist/components/Server/ServerDropdownItem.vue.js +0 -9
  636. package/dist/components/Server/ServerDropdownItem.vue.js.map +0 -1
  637. package/dist/components/Server/ServerDropdownItem.vue.script.js +0 -90
  638. package/dist/components/Server/ServerDropdownItem.vue.script.js.map +0 -1
  639. package/dist/components/Server/ServerSelector.vue.d.ts +0 -17
  640. package/dist/components/Server/ServerSelector.vue.d.ts.map +0 -1
  641. package/dist/components/Server/ServerSelector.vue.js +0 -7
  642. package/dist/components/Server/ServerSelector.vue.js.map +0 -1
  643. package/dist/components/Server/ServerSelector.vue.script.js +0 -87
  644. package/dist/components/Server/ServerSelector.vue.script.js.map +0 -1
  645. package/dist/components/SideNav/DownloadAppButton.vue.d.ts +0 -4
  646. package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +0 -1
  647. package/dist/components/SideNav/DownloadAppButton.vue.js +0 -9
  648. package/dist/components/SideNav/DownloadAppButton.vue.js.map +0 -1
  649. package/dist/components/SideNav/DownloadAppButton.vue.script.js +0 -31
  650. package/dist/components/SideNav/DownloadAppButton.vue.script.js.map +0 -1
  651. package/dist/components/SideNav/SideHelp.vue.d.ts +0 -4
  652. package/dist/components/SideNav/SideHelp.vue.d.ts.map +0 -1
  653. package/dist/components/SideNav/SideHelp.vue.js +0 -7
  654. package/dist/components/SideNav/SideHelp.vue.js.map +0 -1
  655. package/dist/components/SideNav/SideHelp.vue.script.js +0 -102
  656. package/dist/components/SideNav/SideHelp.vue.script.js.map +0 -1
  657. package/dist/components/SideNav/SideNav.vue.d.ts +0 -4
  658. package/dist/components/SideNav/SideNav.vue.d.ts.map +0 -1
  659. package/dist/components/SideNav/SideNav.vue.js +0 -7
  660. package/dist/components/SideNav/SideNav.vue.js.map +0 -1
  661. package/dist/components/SideNav/SideNav.vue.script.js +0 -80
  662. package/dist/components/SideNav/SideNav.vue.script.js.map +0 -1
  663. package/dist/components/SideNav/SideNavGroup.vue.d.ts +0 -14
  664. package/dist/components/SideNav/SideNavGroup.vue.d.ts.map +0 -1
  665. package/dist/components/SideNav/SideNavGroup.vue.js +0 -7
  666. package/dist/components/SideNav/SideNavGroup.vue.js.map +0 -1
  667. package/dist/components/SideNav/SideNavGroup.vue.script.js +0 -16
  668. package/dist/components/SideNav/SideNavGroup.vue.script.js.map +0 -1
  669. package/dist/components/SideNav/SideNavLink.vue.d.ts +0 -23
  670. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +0 -1
  671. package/dist/components/SideNav/SideNavLink.vue.js +0 -7
  672. package/dist/components/SideNav/SideNavLink.vue.js.map +0 -1
  673. package/dist/components/SideNav/SideNavLink.vue.script.js +0 -32
  674. package/dist/components/SideNav/SideNavLink.vue.script.js.map +0 -1
  675. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +0 -21
  676. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +0 -1
  677. package/dist/components/SideNav/SideNavRouterLink.vue.js +0 -7
  678. package/dist/components/SideNav/SideNavRouterLink.vue.js.map +0 -1
  679. package/dist/components/SideNav/SideNavRouterLink.vue.script.js +0 -34
  680. package/dist/components/SideNav/SideNavRouterLink.vue.script.js.map +0 -1
  681. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts +0 -14
  682. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +0 -1
  683. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +0 -7
  684. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js.map +0 -1
  685. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.script.js +0 -56
  686. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.script.js.map +0 -1
  687. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +0 -1
  688. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +0 -7
  689. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js.map +0 -1
  690. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.script.js +0 -31
  691. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.script.js.map +0 -1
  692. package/dist/components/Sidebar/Sidebar.vue.d.ts +0 -23
  693. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +0 -1
  694. package/dist/components/Sidebar/Sidebar.vue.js +0 -9
  695. package/dist/components/Sidebar/Sidebar.vue.js.map +0 -1
  696. package/dist/components/Sidebar/Sidebar.vue.script.js +0 -71
  697. package/dist/components/Sidebar/Sidebar.vue.script.js.map +0 -1
  698. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +0 -1
  699. package/dist/components/Sidebar/SidebarButton.vue.js +0 -7
  700. package/dist/components/Sidebar/SidebarButton.vue.js.map +0 -1
  701. package/dist/components/Sidebar/SidebarButton.vue.script.js +0 -36
  702. package/dist/components/Sidebar/SidebarButton.vue.script.js.map +0 -1
  703. package/dist/components/Sidebar/SidebarList.vue.d.ts +0 -14
  704. package/dist/components/Sidebar/SidebarList.vue.d.ts.map +0 -1
  705. package/dist/components/Sidebar/SidebarList.vue.js +0 -13
  706. package/dist/components/Sidebar/SidebarList.vue.js.map +0 -1
  707. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +0 -44
  708. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +0 -1
  709. package/dist/components/Sidebar/SidebarListElement.vue.js +0 -10
  710. package/dist/components/Sidebar/SidebarListElement.vue.js.map +0 -1
  711. package/dist/components/Sidebar/SidebarListElement.vue.script.js +0 -128
  712. package/dist/components/Sidebar/SidebarListElement.vue.script.js.map +0 -1
  713. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +0 -21
  714. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +0 -1
  715. package/dist/components/Sidebar/SidebarListElementActions.vue.js +0 -7
  716. package/dist/components/Sidebar/SidebarListElementActions.vue.js.map +0 -1
  717. package/dist/components/Sidebar/SidebarListElementActions.vue.script.js +0 -97
  718. package/dist/components/Sidebar/SidebarListElementActions.vue.script.js.map +0 -1
  719. package/dist/components/Sidebar/SidebarToggle.vue.d.ts +0 -4
  720. package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +0 -1
  721. package/dist/components/Sidebar/SidebarToggle.vue.js +0 -7
  722. package/dist/components/Sidebar/SidebarToggle.vue.js.map +0 -1
  723. package/dist/components/Sidebar/SidebarToggle.vue.script.js +0 -47
  724. package/dist/components/Sidebar/SidebarToggle.vue.script.js.map +0 -1
  725. package/dist/components/Sidebar/index.d.ts +0 -2
  726. package/dist/components/Sidebar/index.d.ts.map +0 -1
  727. package/dist/components/Sidebar/index.js +0 -2
  728. package/dist/components/TopNav/TopNav.vue.d.ts +0 -10
  729. package/dist/components/TopNav/TopNav.vue.d.ts.map +0 -1
  730. package/dist/components/TopNav/TopNav.vue.js +0 -7
  731. package/dist/components/TopNav/TopNav.vue.js.map +0 -1
  732. package/dist/components/TopNav/TopNav.vue.script.js +0 -232
  733. package/dist/components/TopNav/TopNav.vue.script.js.map +0 -1
  734. package/dist/components/TopNav/TopNavItem.vue.d.ts +0 -24
  735. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +0 -1
  736. package/dist/components/TopNav/TopNavItem.vue.js +0 -9
  737. package/dist/components/TopNav/TopNavItem.vue.js.map +0 -1
  738. package/dist/components/TopNav/TopNavItem.vue.script.js +0 -129
  739. package/dist/components/TopNav/TopNavItem.vue.script.js.map +0 -1
  740. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +0 -33
  741. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +0 -1
  742. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +0 -7
  743. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js.map +0 -1
  744. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.script.js +0 -84
  745. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.script.js.map +0 -1
  746. package/dist/components/ViewLayout/index.d.ts +0 -2
  747. package/dist/components/ViewLayout/index.d.ts.map +0 -1
  748. package/dist/components/ViewLayout/index.js +0 -2
  749. package/dist/components/index.d.ts +0 -4
  750. package/dist/components/index.d.ts.map +0 -1
  751. package/dist/components/index.js +0 -4
  752. package/dist/constants.d.ts +0 -26
  753. package/dist/constants.d.ts.map +0 -1
  754. package/dist/constants.js +0 -27
  755. package/dist/constants.js.map +0 -1
  756. package/dist/data/httpHeaders.d.ts +0 -7
  757. package/dist/data/httpHeaders.d.ts.map +0 -1
  758. package/dist/data/httpHeaders.js +0 -539
  759. package/dist/data/httpHeaders.js.map +0 -1
  760. package/dist/hooks/index.d.ts +0 -5
  761. package/dist/hooks/index.d.ts.map +0 -1
  762. package/dist/hooks/index.js +0 -5
  763. package/dist/hooks/useClientConfig.d.ts +0 -198
  764. package/dist/hooks/useClientConfig.d.ts.map +0 -1
  765. package/dist/hooks/useClientConfig.js +0 -23
  766. package/dist/hooks/useClientConfig.js.map +0 -1
  767. package/dist/hooks/useFileDialog.d.ts.map +0 -1
  768. package/dist/hooks/useFileDialog.js.map +0 -1
  769. package/dist/hooks/useLayout.d.ts +0 -17
  770. package/dist/hooks/useLayout.d.ts.map +0 -1
  771. package/dist/hooks/useLayout.js +0 -13
  772. package/dist/hooks/useLayout.js.map +0 -1
  773. package/dist/hooks/useResponseBody.d.ts +0 -19
  774. package/dist/hooks/useResponseBody.d.ts.map +0 -1
  775. package/dist/hooks/useResponseBody.js +0 -32
  776. package/dist/hooks/useResponseBody.js.map +0 -1
  777. package/dist/hooks/useSidebar.d.ts +0 -26
  778. package/dist/hooks/useSidebar.d.ts.map +0 -1
  779. package/dist/hooks/useSidebar.js +0 -36
  780. package/dist/hooks/useSidebar.js.map +0 -1
  781. package/dist/layouts/App/ApiClientApp.vue.d.ts +0 -14
  782. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +0 -1
  783. package/dist/layouts/App/ApiClientApp.vue.js +0 -8
  784. package/dist/layouts/App/ApiClientApp.vue.js.map +0 -1
  785. package/dist/layouts/App/ApiClientApp.vue.script.js +0 -80
  786. package/dist/layouts/App/ApiClientApp.vue.script.js.map +0 -1
  787. package/dist/layouts/App/MainLayout.vue.d.ts +0 -14
  788. package/dist/layouts/App/MainLayout.vue.d.ts.map +0 -1
  789. package/dist/layouts/App/MainLayout.vue.js +0 -7
  790. package/dist/layouts/App/MainLayout.vue.js.map +0 -1
  791. package/dist/layouts/App/MainLayout.vue.script.js +0 -22
  792. package/dist/layouts/App/MainLayout.vue.script.js.map +0 -1
  793. package/dist/layouts/App/create-api-client-app.d.ts +0 -4059
  794. package/dist/layouts/App/create-api-client-app.d.ts.map +0 -1
  795. package/dist/layouts/App/create-api-client-app.js +0 -36
  796. package/dist/layouts/App/create-api-client-app.js.map +0 -1
  797. package/dist/layouts/App/hotkeys.d.ts +0 -6
  798. package/dist/layouts/App/hotkeys.d.ts.map +0 -1
  799. package/dist/layouts/App/hotkeys.js +0 -74
  800. package/dist/layouts/App/hotkeys.js.map +0 -1
  801. package/dist/layouts/App/index.d.ts +0 -3
  802. package/dist/layouts/App/index.d.ts.map +0 -1
  803. package/dist/layouts/App/index.js +0 -3
  804. package/dist/layouts/Modal/ApiClientModal.vue.d.ts +0 -4
  805. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +0 -1
  806. package/dist/layouts/Modal/ApiClientModal.vue.js +0 -7
  807. package/dist/layouts/Modal/ApiClientModal.vue.js.map +0 -1
  808. package/dist/layouts/Modal/ApiClientModal.vue.script.js +0 -41
  809. package/dist/layouts/Modal/ApiClientModal.vue.script.js.map +0 -1
  810. package/dist/layouts/Modal/create-api-client-modal.d.ts +0 -12
  811. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +0 -1
  812. package/dist/layouts/Modal/create-api-client-modal.js +0 -34
  813. package/dist/layouts/Modal/create-api-client-modal.js.map +0 -1
  814. package/dist/layouts/Modal/index.d.ts +0 -3
  815. package/dist/layouts/Modal/index.d.ts.map +0 -1
  816. package/dist/layouts/Modal/index.js +0 -2
  817. package/dist/layouts/Web/ApiClientWeb.vue.d.ts +0 -4
  818. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +0 -1
  819. package/dist/layouts/Web/ApiClientWeb.vue.js +0 -8
  820. package/dist/layouts/Web/ApiClientWeb.vue.js.map +0 -1
  821. package/dist/layouts/Web/ApiClientWeb.vue.script.js +0 -68
  822. package/dist/layouts/Web/ApiClientWeb.vue.script.js.map +0 -1
  823. package/dist/layouts/Web/create-api-client-web.d.ts +0 -4056
  824. package/dist/layouts/Web/create-api-client-web.d.ts.map +0 -1
  825. package/dist/layouts/Web/create-api-client-web.js +0 -33
  826. package/dist/layouts/Web/create-api-client-web.js.map +0 -1
  827. package/dist/layouts/Web/index.d.ts +0 -3
  828. package/dist/layouts/Web/index.d.ts.map +0 -1
  829. package/dist/layouts/Web/index.js +0 -3
  830. package/dist/libs/create-client.d.ts +0 -4127
  831. package/dist/libs/create-client.d.ts.map +0 -1
  832. package/dist/libs/create-client.js +0 -178
  833. package/dist/libs/create-client.js.map +0 -1
  834. package/dist/libs/electron.d.ts +0 -5
  835. package/dist/libs/electron.d.ts.map +0 -1
  836. package/dist/libs/electron.js +0 -9
  837. package/dist/libs/electron.js.map +0 -1
  838. package/dist/libs/env-helpers.d.ts +0 -17
  839. package/dist/libs/env-helpers.d.ts.map +0 -1
  840. package/dist/libs/env-helpers.js +0 -9
  841. package/dist/libs/env-helpers.js.map +0 -1
  842. package/dist/libs/environment-parser.d.ts +0 -8
  843. package/dist/libs/environment-parser.d.ts.map +0 -1
  844. package/dist/libs/environment-parser.js +0 -19
  845. package/dist/libs/environment-parser.js.map +0 -1
  846. package/dist/libs/errors.d.ts +0 -23
  847. package/dist/libs/errors.d.ts.map +0 -1
  848. package/dist/libs/errors.js +0 -34
  849. package/dist/libs/errors.js.map +0 -1
  850. package/dist/libs/event-bus.d.ts +0 -41
  851. package/dist/libs/event-bus.d.ts.map +0 -1
  852. package/dist/libs/event-bus.js +0 -43
  853. package/dist/libs/event-bus.js.map +0 -1
  854. package/dist/libs/extractAttachmentFilename.d.ts +0 -5
  855. package/dist/libs/extractAttachmentFilename.d.ts.map +0 -1
  856. package/dist/libs/extractAttachmentFilename.js +0 -23
  857. package/dist/libs/extractAttachmentFilename.js.map +0 -1
  858. package/dist/libs/find-request.d.ts +0 -75
  859. package/dist/libs/find-request.d.ts.map +0 -1
  860. package/dist/libs/find-request.js +0 -40
  861. package/dist/libs/find-request.js.map +0 -1
  862. package/dist/libs/get-request-uid-by-path-method.d.ts +0 -7
  863. package/dist/libs/get-request-uid-by-path-method.d.ts.map +0 -1
  864. package/dist/libs/get-request-uid-by-path-method.js +0 -19
  865. package/dist/libs/get-request-uid-by-path-method.js.map +0 -1
  866. package/dist/libs/getOpenApiDocumentDetails.d.ts +0 -10
  867. package/dist/libs/getOpenApiDocumentDetails.d.ts.map +0 -1
  868. package/dist/libs/getOpenApiDocumentDetails.js +0 -45
  869. package/dist/libs/getOpenApiDocumentDetails.js.map +0 -1
  870. package/dist/libs/hot-keys.d.ts +0 -35
  871. package/dist/libs/hot-keys.d.ts.map +0 -1
  872. package/dist/libs/hot-keys.js +0 -92
  873. package/dist/libs/hot-keys.js.map +0 -1
  874. package/dist/libs/importers/curl.d.ts +0 -27
  875. package/dist/libs/importers/curl.d.ts.map +0 -1
  876. package/dist/libs/importers/curl.js +0 -54
  877. package/dist/libs/importers/curl.js.map +0 -1
  878. package/dist/libs/importers/index.d.ts +0 -2
  879. package/dist/libs/importers/index.d.ts.map +0 -1
  880. package/dist/libs/importers/index.js +0 -2
  881. package/dist/libs/index.d.ts +0 -15
  882. package/dist/libs/index.d.ts.map +0 -1
  883. package/dist/libs/index.js +0 -17
  884. package/dist/libs/isUrl.d.ts +0 -3
  885. package/dist/libs/isUrl.d.ts.map +0 -1
  886. package/dist/libs/isUrl.js +0 -12
  887. package/dist/libs/isUrl.js.map +0 -1
  888. package/dist/libs/local-storage.d.ts +0 -9
  889. package/dist/libs/local-storage.d.ts.map +0 -1
  890. package/dist/libs/local-storage.js +0 -40
  891. package/dist/libs/local-storage.js.map +0 -1
  892. package/dist/libs/normalize-headers.d.ts +0 -14
  893. package/dist/libs/normalize-headers.d.ts.map +0 -1
  894. package/dist/libs/normalize-headers.js +0 -56
  895. package/dist/libs/normalize-headers.js.map +0 -1
  896. package/dist/libs/parse-curl.d.ts.map +0 -1
  897. package/dist/libs/parse-curl.js.map +0 -1
  898. package/dist/libs/postman.d.ts +0 -11
  899. package/dist/libs/postman.d.ts.map +0 -1
  900. package/dist/libs/postman.js +0 -40
  901. package/dist/libs/postman.js.map +0 -1
  902. package/dist/libs/send-request/build-request-security.d.ts +0 -19
  903. package/dist/libs/send-request/build-request-security.d.ts.map +0 -1
  904. package/dist/libs/send-request/build-request-security.js +0 -41
  905. package/dist/libs/send-request/build-request-security.js.map +0 -1
  906. package/dist/libs/send-request/create-fetch-body.d.ts +0 -18
  907. package/dist/libs/send-request/create-fetch-body.d.ts.map +0 -1
  908. package/dist/libs/send-request/create-fetch-body.js +0 -44
  909. package/dist/libs/send-request/create-fetch-body.js.map +0 -1
  910. package/dist/libs/send-request/create-fetch-headers.d.ts +0 -4
  911. package/dist/libs/send-request/create-fetch-headers.d.ts.map +0 -1
  912. package/dist/libs/send-request/create-fetch-headers.js +0 -15
  913. package/dist/libs/send-request/create-fetch-headers.js.map +0 -1
  914. package/dist/libs/send-request/create-fetch-query-params.d.ts +0 -11
  915. package/dist/libs/send-request/create-fetch-query-params.d.ts.map +0 -1
  916. package/dist/libs/send-request/create-fetch-query-params.js +0 -43
  917. package/dist/libs/send-request/create-fetch-query-params.js.map +0 -1
  918. package/dist/libs/send-request/create-request-operation.d.ts +0 -32
  919. package/dist/libs/send-request/create-request-operation.d.ts.map +0 -1
  920. package/dist/libs/send-request/create-request-operation.js +0 -172
  921. package/dist/libs/send-request/create-request-operation.js.map +0 -1
  922. package/dist/libs/send-request/decode-buffer.d.ts +0 -3
  923. package/dist/libs/send-request/decode-buffer.d.ts.map +0 -1
  924. package/dist/libs/send-request/decode-buffer.js +0 -13
  925. package/dist/libs/send-request/decode-buffer.js.map +0 -1
  926. package/dist/libs/send-request/index.d.ts +0 -4
  927. package/dist/libs/send-request/index.d.ts.map +0 -1
  928. package/dist/libs/send-request/index.js +0 -4
  929. package/dist/libs/send-request/set-request-cookies.d.ts +0 -27
  930. package/dist/libs/send-request/set-request-cookies.d.ts.map +0 -1
  931. package/dist/libs/send-request/set-request-cookies.js +0 -82
  932. package/dist/libs/send-request/set-request-cookies.js.map +0 -1
  933. package/dist/libs/string-template.d.ts +0 -21
  934. package/dist/libs/string-template.d.ts.map +0 -1
  935. package/dist/libs/string-template.js +0 -64
  936. package/dist/libs/string-template.js.map +0 -1
  937. package/dist/libs/validate-parameters.d.ts +0 -14
  938. package/dist/libs/validate-parameters.d.ts.map +0 -1
  939. package/dist/libs/validate-parameters.js +0 -35
  940. package/dist/libs/validate-parameters.js.map +0 -1
  941. package/dist/plugins/hooks/usePluginManager.d.ts +0 -8
  942. package/dist/plugins/hooks/usePluginManager.d.ts.map +0 -1
  943. package/dist/plugins/hooks/usePluginManager.js +0 -16
  944. package/dist/plugins/hooks/usePluginManager.js.map +0 -1
  945. package/dist/plugins/index.d.ts +0 -3
  946. package/dist/plugins/index.d.ts.map +0 -1
  947. package/dist/plugins/index.js +0 -3
  948. package/dist/plugins/plugin-manager.d.ts +0 -34
  949. package/dist/plugins/plugin-manager.d.ts.map +0 -1
  950. package/dist/plugins/plugin-manager.js +0 -38
  951. package/dist/plugins/plugin-manager.js.map +0 -1
  952. package/dist/routes.d.ts +0 -19
  953. package/dist/routes.d.ts.map +0 -1
  954. package/dist/routes.js +0 -225
  955. package/dist/routes.js.map +0 -1
  956. package/dist/store/active-entities.d.ts +0 -387
  957. package/dist/store/active-entities.d.ts.map +0 -1
  958. package/dist/store/active-entities.js +0 -139
  959. package/dist/store/active-entities.js.map +0 -1
  960. package/dist/store/collections.d.ts +0 -625
  961. package/dist/store/collections.d.ts.map +0 -1
  962. package/dist/store/collections.js +0 -76
  963. package/dist/store/collections.js.map +0 -1
  964. package/dist/store/cookies.d.ts +0 -69
  965. package/dist/store/cookies.d.ts.map +0 -1
  966. package/dist/store/cookies.js +0 -16
  967. package/dist/store/cookies.js.map +0 -1
  968. package/dist/store/environment.d.ts +0 -75
  969. package/dist/store/environment.d.ts.map +0 -1
  970. package/dist/store/environment.js +0 -38
  971. package/dist/store/environment.js.map +0 -1
  972. package/dist/store/events.d.ts +0 -35
  973. package/dist/store/events.d.ts.map +0 -1
  974. package/dist/store/events.js +0 -17
  975. package/dist/store/events.js.map +0 -1
  976. package/dist/store/import-spec.d.ts +0 -38
  977. package/dist/store/import-spec.d.ts.map +0 -1
  978. package/dist/store/import-spec.js +0 -56
  979. package/dist/store/import-spec.js.map +0 -1
  980. package/dist/store/index.d.ts +0 -3
  981. package/dist/store/index.d.ts.map +0 -1
  982. package/dist/store/index.js +0 -3
  983. package/dist/store/request-example.d.ts +0 -1022
  984. package/dist/store/request-example.d.ts.map +0 -1
  985. package/dist/store/request-example.js +0 -43
  986. package/dist/store/request-example.js.map +0 -1
  987. package/dist/store/requests.d.ts +0 -675
  988. package/dist/store/requests.d.ts.map +0 -1
  989. package/dist/store/requests.js +0 -104
  990. package/dist/store/requests.js.map +0 -1
  991. package/dist/store/router-params.d.ts +0 -18
  992. package/dist/store/router-params.d.ts.map +0 -1
  993. package/dist/store/router-params.js +0 -27
  994. package/dist/store/router-params.js.map +0 -1
  995. package/dist/store/security-schemes.d.ts +0 -942
  996. package/dist/store/security-schemes.d.ts.map +0 -1
  997. package/dist/store/security-schemes.js +0 -45
  998. package/dist/store/security-schemes.js.map +0 -1
  999. package/dist/store/servers.d.ts +0 -122
  1000. package/dist/store/servers.d.ts.map +0 -1
  1001. package/dist/store/servers.js +0 -41
  1002. package/dist/store/servers.js.map +0 -1
  1003. package/dist/store/store-context.d.ts +0 -26
  1004. package/dist/store/store-context.d.ts.map +0 -1
  1005. package/dist/store/store.d.ts +0 -4055
  1006. package/dist/store/store.d.ts.map +0 -1
  1007. package/dist/store/store.js +0 -180
  1008. package/dist/store/store.js.map +0 -1
  1009. package/dist/store/tags.d.ts +0 -176
  1010. package/dist/store/tags.d.ts.map +0 -1
  1011. package/dist/store/tags.js +0 -54
  1012. package/dist/store/tags.js.map +0 -1
  1013. package/dist/store/workspace.d.ts +0 -232
  1014. package/dist/store/workspace.d.ts.map +0 -1
  1015. package/dist/store/workspace.js +0 -57
  1016. package/dist/store/workspace.js.map +0 -1
  1017. package/dist/types/index.d.ts +0 -2
  1018. package/dist/types/index.d.ts.map +0 -1
  1019. package/dist/types/index.js +0 -0
  1020. package/dist/views/Collection/Collection.vue.d.ts +0 -4
  1021. package/dist/views/Collection/Collection.vue.d.ts.map +0 -1
  1022. package/dist/views/Collection/Collection.vue.js +0 -7
  1023. package/dist/views/Collection/Collection.vue.js.map +0 -1
  1024. package/dist/views/Collection/Collection.vue.script.js +0 -46
  1025. package/dist/views/Collection/Collection.vue.script.js.map +0 -1
  1026. package/dist/views/Collection/CollectionAuthentication.vue.d.ts +0 -4
  1027. package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +0 -1
  1028. package/dist/views/Collection/CollectionAuthentication.vue.js +0 -9
  1029. package/dist/views/Collection/CollectionAuthentication.vue.js.map +0 -1
  1030. package/dist/views/Collection/CollectionAuthentication.vue.script.js +0 -52
  1031. package/dist/views/Collection/CollectionAuthentication.vue.script.js.map +0 -1
  1032. package/dist/views/Collection/CollectionCookies.vue.d.ts +0 -4
  1033. package/dist/views/Collection/CollectionCookies.vue.d.ts.map +0 -1
  1034. package/dist/views/Collection/CollectionCookies.vue.js +0 -7
  1035. package/dist/views/Collection/CollectionCookies.vue.js.map +0 -1
  1036. package/dist/views/Collection/CollectionCookies.vue.script.js +0 -18
  1037. package/dist/views/Collection/CollectionCookies.vue.script.js.map +0 -1
  1038. package/dist/views/Collection/CollectionEnvironment.vue.d.ts +0 -4
  1039. package/dist/views/Collection/CollectionEnvironment.vue.d.ts.map +0 -1
  1040. package/dist/views/Collection/CollectionEnvironment.vue.js +0 -8
  1041. package/dist/views/Collection/CollectionEnvironment.vue.js.map +0 -1
  1042. package/dist/views/Collection/CollectionEnvironment.vue.script.js +0 -238
  1043. package/dist/views/Collection/CollectionEnvironment.vue.script.js.map +0 -1
  1044. package/dist/views/Collection/CollectionInfoForm.vue.d.ts +0 -4
  1045. package/dist/views/Collection/CollectionInfoForm.vue.d.ts.map +0 -1
  1046. package/dist/views/Collection/CollectionInfoForm.vue.js +0 -9
  1047. package/dist/views/Collection/CollectionInfoForm.vue.js.map +0 -1
  1048. package/dist/views/Collection/CollectionInfoForm.vue.script.js +0 -73
  1049. package/dist/views/Collection/CollectionInfoForm.vue.script.js.map +0 -1
  1050. package/dist/views/Collection/CollectionNavigation.vue.d.ts.map +0 -1
  1051. package/dist/views/Collection/CollectionNavigation.vue.js +0 -7
  1052. package/dist/views/Collection/CollectionNavigation.vue.js.map +0 -1
  1053. package/dist/views/Collection/CollectionNavigation.vue.script.js +0 -75
  1054. package/dist/views/Collection/CollectionNavigation.vue.script.js.map +0 -1
  1055. package/dist/views/Collection/CollectionOverview.vue.d.ts +0 -4
  1056. package/dist/views/Collection/CollectionOverview.vue.d.ts.map +0 -1
  1057. package/dist/views/Collection/CollectionOverview.vue.js +0 -7
  1058. package/dist/views/Collection/CollectionOverview.vue.js.map +0 -1
  1059. package/dist/views/Collection/CollectionOverview.vue.script.js +0 -42
  1060. package/dist/views/Collection/CollectionOverview.vue.script.js.map +0 -1
  1061. package/dist/views/Collection/CollectionScripts.vue.d.ts +0 -4
  1062. package/dist/views/Collection/CollectionScripts.vue.d.ts.map +0 -1
  1063. package/dist/views/Collection/CollectionScripts.vue.js +0 -7
  1064. package/dist/views/Collection/CollectionScripts.vue.js.map +0 -1
  1065. package/dist/views/Collection/CollectionScripts.vue.script.js +0 -18
  1066. package/dist/views/Collection/CollectionScripts.vue.script.js.map +0 -1
  1067. package/dist/views/Collection/CollectionServerForm.vue.d.ts +0 -11
  1068. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +0 -1
  1069. package/dist/views/Collection/CollectionServerForm.vue.js +0 -7
  1070. package/dist/views/Collection/CollectionServerForm.vue.js.map +0 -1
  1071. package/dist/views/Collection/CollectionServerForm.vue.script.js +0 -76
  1072. package/dist/views/Collection/CollectionServerForm.vue.script.js.map +0 -1
  1073. package/dist/views/Collection/CollectionServers.vue.d.ts +0 -4
  1074. package/dist/views/Collection/CollectionServers.vue.d.ts.map +0 -1
  1075. package/dist/views/Collection/CollectionServers.vue.js +0 -7
  1076. package/dist/views/Collection/CollectionServers.vue.js.map +0 -1
  1077. package/dist/views/Collection/CollectionServers.vue.script.js +0 -95
  1078. package/dist/views/Collection/CollectionServers.vue.script.js.map +0 -1
  1079. package/dist/views/Collection/CollectionSettings.vue.d.ts +0 -4
  1080. package/dist/views/Collection/CollectionSettings.vue.d.ts.map +0 -1
  1081. package/dist/views/Collection/CollectionSettings.vue.js +0 -7
  1082. package/dist/views/Collection/CollectionSettings.vue.js.map +0 -1
  1083. package/dist/views/Collection/CollectionSettings.vue.script.js +0 -87
  1084. package/dist/views/Collection/CollectionSettings.vue.script.js.map +0 -1
  1085. package/dist/views/Collection/CollectionSync.vue.d.ts +0 -4
  1086. package/dist/views/Collection/CollectionSync.vue.d.ts.map +0 -1
  1087. package/dist/views/Collection/CollectionSync.vue.js +0 -7
  1088. package/dist/views/Collection/CollectionSync.vue.js.map +0 -1
  1089. package/dist/views/Collection/CollectionSync.vue.script.js +0 -18
  1090. package/dist/views/Collection/CollectionSync.vue.script.js.map +0 -1
  1091. package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +0 -14
  1092. package/dist/views/Collection/components/EnvironmentForm.vue.d.ts.map +0 -1
  1093. package/dist/views/Collection/components/EnvironmentForm.vue.js +0 -9
  1094. package/dist/views/Collection/components/EnvironmentForm.vue.js.map +0 -1
  1095. package/dist/views/Collection/components/EnvironmentForm.vue.script.js +0 -284
  1096. package/dist/views/Collection/components/EnvironmentForm.vue.script.js.map +0 -1
  1097. package/dist/views/Collection/components/MarkdownInput.vue.d.ts +0 -17
  1098. package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +0 -1
  1099. package/dist/views/Collection/components/MarkdownInput.vue.js +0 -9
  1100. package/dist/views/Collection/components/MarkdownInput.vue.js.map +0 -1
  1101. package/dist/views/Collection/components/MarkdownInput.vue.script.js +0 -92
  1102. package/dist/views/Collection/components/MarkdownInput.vue.script.js.map +0 -1
  1103. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +0 -16
  1104. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +0 -1
  1105. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +0 -7
  1106. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js.map +0 -1
  1107. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.script.js +0 -74
  1108. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.script.js.map +0 -1
  1109. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts +0 -28
  1110. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +0 -1
  1111. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +0 -66
  1112. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js.map +0 -1
  1113. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +0 -16
  1114. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +0 -1
  1115. package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +0 -86
  1116. package/dist/views/Components/CodeSnippet/helpers/get-har-request.js.map +0 -1
  1117. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +0 -1
  1118. package/dist/views/Components/CodeSnippet/helpers/get-snippet.js.map +0 -1
  1119. package/dist/views/Components/CodeSnippet/index.d.ts +0 -5
  1120. package/dist/views/Components/CodeSnippet/index.d.ts.map +0 -1
  1121. package/dist/views/Components/CodeSnippet/index.js +0 -5
  1122. package/dist/views/Cookies/CookieForm.vue.d.ts +0 -4
  1123. package/dist/views/Cookies/CookieForm.vue.d.ts.map +0 -1
  1124. package/dist/views/Cookies/CookieForm.vue.js +0 -7
  1125. package/dist/views/Cookies/CookieForm.vue.js.map +0 -1
  1126. package/dist/views/Cookies/CookieForm.vue.script.js +0 -50
  1127. package/dist/views/Cookies/CookieForm.vue.script.js.map +0 -1
  1128. package/dist/views/Cookies/CookieModal.vue.d.ts +0 -22
  1129. package/dist/views/Cookies/CookieModal.vue.d.ts.map +0 -1
  1130. package/dist/views/Cookies/CookieModal.vue.js +0 -9
  1131. package/dist/views/Cookies/CookieModal.vue.js.map +0 -1
  1132. package/dist/views/Cookies/CookieModal.vue.script.js +0 -83
  1133. package/dist/views/Cookies/CookieModal.vue.script.js.map +0 -1
  1134. package/dist/views/Cookies/CookieRaw.vue.d.ts +0 -4
  1135. package/dist/views/Cookies/CookieRaw.vue.d.ts.map +0 -1
  1136. package/dist/views/Cookies/Cookies.vue.d.ts +0 -4
  1137. package/dist/views/Cookies/Cookies.vue.d.ts.map +0 -1
  1138. package/dist/views/Cookies/Cookies.vue.js +0 -7
  1139. package/dist/views/Cookies/Cookies.vue.js.map +0 -1
  1140. package/dist/views/Cookies/Cookies.vue.script.js +0 -156
  1141. package/dist/views/Cookies/Cookies.vue.script.js.map +0 -1
  1142. package/dist/views/Environment/Environment.vue.d.ts +0 -4
  1143. package/dist/views/Environment/Environment.vue.d.ts.map +0 -1
  1144. package/dist/views/Environment/Environment.vue.js +0 -7
  1145. package/dist/views/Environment/Environment.vue.js.map +0 -1
  1146. package/dist/views/Environment/Environment.vue.script.js +0 -384
  1147. package/dist/views/Environment/Environment.vue.script.js.map +0 -1
  1148. package/dist/views/Environment/EnvironmentColorModal.vue.d.ts +0 -15
  1149. package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +0 -1
  1150. package/dist/views/Environment/EnvironmentColorModal.vue.js +0 -7
  1151. package/dist/views/Environment/EnvironmentColorModal.vue.js.map +0 -1
  1152. package/dist/views/Environment/EnvironmentColorModal.vue.script.js +0 -47
  1153. package/dist/views/Environment/EnvironmentColorModal.vue.script.js.map +0 -1
  1154. package/dist/views/Environment/EnvironmentColors.vue.d.ts +0 -14
  1155. package/dist/views/Environment/EnvironmentColors.vue.d.ts.map +0 -1
  1156. package/dist/views/Environment/EnvironmentColors.vue.js +0 -7
  1157. package/dist/views/Environment/EnvironmentColors.vue.js.map +0 -1
  1158. package/dist/views/Environment/EnvironmentColors.vue.script.js +0 -126
  1159. package/dist/views/Environment/EnvironmentColors.vue.script.js.map +0 -1
  1160. package/dist/views/Environment/EnvironmentModal.vue.d.ts +0 -27
  1161. package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +0 -1
  1162. package/dist/views/Environment/EnvironmentModal.vue.js +0 -7
  1163. package/dist/views/Environment/EnvironmentModal.vue.js.map +0 -1
  1164. package/dist/views/Environment/EnvironmentModal.vue.script.js +0 -122
  1165. package/dist/views/Environment/EnvironmentModal.vue.script.js.map +0 -1
  1166. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +0 -22
  1167. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +0 -1
  1168. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +0 -7
  1169. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js.map +0 -1
  1170. package/dist/views/Environment/EnvironmentVariableDropdown.vue.script.js +0 -133
  1171. package/dist/views/Environment/EnvironmentVariableDropdown.vue.script.js.map +0 -1
  1172. package/dist/views/Environment/handle-drag.d.ts +0 -13
  1173. package/dist/views/Environment/handle-drag.d.ts.map +0 -1
  1174. package/dist/views/Environment/handle-drag.js +0 -38
  1175. package/dist/views/Environment/handle-drag.js.map +0 -1
  1176. package/dist/views/Request/Request.vue.d.ts +0 -21
  1177. package/dist/views/Request/Request.vue.d.ts.map +0 -1
  1178. package/dist/views/Request/Request.vue.js +0 -9
  1179. package/dist/views/Request/Request.vue.js.map +0 -1
  1180. package/dist/views/Request/Request.vue.script.js +0 -117
  1181. package/dist/views/Request/Request.vue.script.js.map +0 -1
  1182. package/dist/views/Request/RequestRoot.vue.d.ts +0 -14
  1183. package/dist/views/Request/RequestRoot.vue.d.ts.map +0 -1
  1184. package/dist/views/Request/RequestRoot.vue.js +0 -9
  1185. package/dist/views/Request/RequestRoot.vue.js.map +0 -1
  1186. package/dist/views/Request/RequestRoot.vue.script.js +0 -158
  1187. package/dist/views/Request/RequestRoot.vue.script.js.map +0 -1
  1188. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +0 -22
  1189. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +0 -1
  1190. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +0 -7
  1191. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js.map +0 -1
  1192. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.script.js +0 -52
  1193. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.script.js.map +0 -1
  1194. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +0 -31
  1195. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +0 -1
  1196. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +0 -7
  1197. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js.map +0 -1
  1198. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.script.js +0 -214
  1199. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.script.js.map +0 -1
  1200. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +0 -10
  1201. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +0 -1
  1202. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +0 -7
  1203. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js.map +0 -1
  1204. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.script.js +0 -106
  1205. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.script.js.map +0 -1
  1206. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +0 -222
  1207. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +0 -1
  1208. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +0 -9
  1209. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js.map +0 -1
  1210. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.script.js +0 -216
  1211. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.script.js.map +0 -1
  1212. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +0 -220
  1213. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +0 -1
  1214. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +0 -9
  1215. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js.map +0 -1
  1216. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.script.js +0 -116
  1217. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.script.js.map +0 -1
  1218. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +0 -43
  1219. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +0 -1
  1220. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +0 -7
  1221. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js.map +0 -1
  1222. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.script.js +0 -73
  1223. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.script.js.map +0 -1
  1224. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +0 -31
  1225. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +0 -1
  1226. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +0 -7
  1227. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js.map +0 -1
  1228. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.script.js +0 -205
  1229. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.script.js.map +0 -1
  1230. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts +0 -9
  1231. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts.map +0 -1
  1232. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.js +0 -39
  1233. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.js.map +0 -1
  1234. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +0 -4
  1235. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +0 -1
  1236. package/dist/views/Request/RequestSection/RequestAuth/index.js +0 -4
  1237. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +0 -16
  1238. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +0 -1
  1239. package/dist/views/Request/RequestSection/RequestBody.vue.js +0 -9
  1240. package/dist/views/Request/RequestSection/RequestBody.vue.js.map +0 -1
  1241. package/dist/views/Request/RequestSection/RequestBody.vue.script.js +0 -477
  1242. package/dist/views/Request/RequestSection/RequestBody.vue.script.js.map +0 -1
  1243. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +0 -15
  1244. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +0 -1
  1245. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +0 -9
  1246. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js.map +0 -1
  1247. package/dist/views/Request/RequestSection/RequestCodeExample.vue.script.js +0 -187
  1248. package/dist/views/Request/RequestSection/RequestCodeExample.vue.script.js.map +0 -1
  1249. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +0 -25
  1250. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +0 -1
  1251. package/dist/views/Request/RequestSection/RequestParams.vue.js +0 -7
  1252. package/dist/views/Request/RequestSection/RequestParams.vue.js.map +0 -1
  1253. package/dist/views/Request/RequestSection/RequestParams.vue.script.js +0 -180
  1254. package/dist/views/Request/RequestSection/RequestParams.vue.script.js.map +0 -1
  1255. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +0 -18
  1256. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +0 -1
  1257. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +0 -7
  1258. package/dist/views/Request/RequestSection/RequestPathParams.vue.js.map +0 -1
  1259. package/dist/views/Request/RequestSection/RequestPathParams.vue.script.js +0 -115
  1260. package/dist/views/Request/RequestSection/RequestPathParams.vue.script.js.map +0 -1
  1261. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +0 -20
  1262. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +0 -1
  1263. package/dist/views/Request/RequestSection/RequestSection.vue.js +0 -9
  1264. package/dist/views/Request/RequestSection/RequestSection.vue.js.map +0 -1
  1265. package/dist/views/Request/RequestSection/RequestSection.vue.script.js +0 -297
  1266. package/dist/views/Request/RequestSection/RequestSection.vue.script.js.map +0 -1
  1267. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +0 -47
  1268. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +0 -1
  1269. package/dist/views/Request/RequestSection/RequestTable.vue.js +0 -9
  1270. package/dist/views/Request/RequestSection/RequestTable.vue.js.map +0 -1
  1271. package/dist/views/Request/RequestSection/RequestTable.vue.script.js +0 -266
  1272. package/dist/views/Request/RequestSection/RequestTable.vue.script.js.map +0 -1
  1273. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts +0 -8
  1274. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +0 -1
  1275. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +0 -9
  1276. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js.map +0 -1
  1277. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.script.js +0 -64
  1278. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.script.js.map +0 -1
  1279. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts +0 -6
  1280. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts.map +0 -1
  1281. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +0 -38
  1282. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js.map +0 -1
  1283. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts +0 -6
  1284. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +0 -1
  1285. package/dist/views/Request/RequestSection/helpers/getting-started.js +0 -17
  1286. package/dist/views/Request/RequestSection/helpers/getting-started.js.map +0 -1
  1287. package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts +0 -8
  1288. package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts.map +0 -1
  1289. package/dist/views/Request/RequestSection/helpers/update-scheme.js +0 -22
  1290. package/dist/views/Request/RequestSection/helpers/update-scheme.js.map +0 -1
  1291. package/dist/views/Request/RequestSection/index.d.ts +0 -3
  1292. package/dist/views/Request/RequestSection/index.d.ts.map +0 -1
  1293. package/dist/views/Request/RequestSection/index.js +0 -3
  1294. package/dist/views/Request/RequestSidebar.vue.d.ts +0 -16
  1295. package/dist/views/Request/RequestSidebar.vue.d.ts.map +0 -1
  1296. package/dist/views/Request/RequestSidebar.vue.js +0 -9
  1297. package/dist/views/Request/RequestSidebar.vue.js.map +0 -1
  1298. package/dist/views/Request/RequestSidebar.vue.script.js +0 -307
  1299. package/dist/views/Request/RequestSidebar.vue.script.js.map +0 -1
  1300. package/dist/views/Request/RequestSidebarItem.vue.d.ts +0 -43
  1301. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +0 -1
  1302. package/dist/views/Request/RequestSidebarItem.vue.js +0 -10
  1303. package/dist/views/Request/RequestSidebarItem.vue.js.map +0 -1
  1304. package/dist/views/Request/RequestSidebarItem.vue.script.js +0 -475
  1305. package/dist/views/Request/RequestSidebarItem.vue.script.js.map +0 -1
  1306. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +0 -16
  1307. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +0 -1
  1308. package/dist/views/Request/RequestSidebarItemMenu.vue.js +0 -9
  1309. package/dist/views/Request/RequestSidebarItemMenu.vue.js.map +0 -1
  1310. package/dist/views/Request/RequestSidebarItemMenu.vue.script.js +0 -222
  1311. package/dist/views/Request/RequestSidebarItemMenu.vue.script.js.map +0 -1
  1312. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +0 -22
  1313. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +0 -1
  1314. package/dist/views/Request/RequestSubpageHeader.vue.js +0 -9
  1315. package/dist/views/Request/RequestSubpageHeader.vue.js.map +0 -1
  1316. package/dist/views/Request/RequestSubpageHeader.vue.script.js +0 -92
  1317. package/dist/views/Request/RequestSubpageHeader.vue.script.js.map +0 -1
  1318. package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts +0 -12
  1319. package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +0 -1
  1320. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +0 -7
  1321. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js.map +0 -1
  1322. package/dist/views/Request/ResponseSection/RequestHeaders.vue.script.js +0 -77
  1323. package/dist/views/Request/ResponseSection/RequestHeaders.vue.script.js.map +0 -1
  1324. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +0 -14
  1325. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +0 -1
  1326. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +0 -9
  1327. package/dist/views/Request/ResponseSection/ResponseBody.vue.js.map +0 -1
  1328. package/dist/views/Request/ResponseSection/ResponseBody.vue.script.js +0 -91
  1329. package/dist/views/Request/ResponseSection/ResponseBody.vue.script.js.map +0 -1
  1330. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +0 -9
  1331. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +0 -1
  1332. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +0 -7
  1333. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js.map +0 -1
  1334. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.script.js +0 -35
  1335. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.script.js.map +0 -1
  1336. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts +0 -14
  1337. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts.map +0 -1
  1338. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +0 -14
  1339. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js.map +0 -1
  1340. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +0 -11
  1341. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +0 -1
  1342. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +0 -9
  1343. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js.map +0 -1
  1344. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.script.js +0 -64
  1345. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.script.js.map +0 -1
  1346. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +0 -9
  1347. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +0 -1
  1348. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +0 -9
  1349. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js.map +0 -1
  1350. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.script.js +0 -54
  1351. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.script.js.map +0 -1
  1352. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.d.ts +0 -7
  1353. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.d.ts.map +0 -1
  1354. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +0 -7
  1355. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js.map +0 -1
  1356. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.script.js +0 -85
  1357. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.script.js.map +0 -1
  1358. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +0 -11
  1359. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts.map +0 -1
  1360. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +0 -7
  1361. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js.map +0 -1
  1362. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.script.js +0 -25
  1363. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.script.js.map +0 -1
  1364. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts +0 -13
  1365. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +0 -1
  1366. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +0 -8
  1367. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js.map +0 -1
  1368. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.script.js +0 -51
  1369. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.script.js.map +0 -1
  1370. package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts +0 -11
  1371. package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts.map +0 -1
  1372. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +0 -7
  1373. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js.map +0 -1
  1374. package/dist/views/Request/ResponseSection/ResponseCookies.vue.script.js +0 -39
  1375. package/dist/views/Request/ResponseSection/ResponseCookies.vue.script.js.map +0 -1
  1376. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +0 -12
  1377. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +0 -1
  1378. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +0 -9
  1379. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js.map +0 -1
  1380. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.script.js +0 -98
  1381. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.script.js.map +0 -1
  1382. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts +0 -12
  1383. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +0 -1
  1384. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +0 -7
  1385. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js.map +0 -1
  1386. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.script.js +0 -77
  1387. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.script.js.map +0 -1
  1388. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts +0 -4
  1389. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +0 -1
  1390. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +0 -9
  1391. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js.map +0 -1
  1392. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.script.js +0 -44
  1393. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.script.js.map +0 -1
  1394. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts +0 -8
  1395. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +0 -1
  1396. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +0 -7
  1397. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js.map +0 -1
  1398. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.script.js +0 -64
  1399. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.script.js.map +0 -1
  1400. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +0 -15
  1401. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +0 -1
  1402. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +0 -9
  1403. package/dist/views/Request/ResponseSection/ResponseSection.vue.js.map +0 -1
  1404. package/dist/views/Request/ResponseSection/ResponseSection.vue.script.js +0 -206
  1405. package/dist/views/Request/ResponseSection/ResponseSection.vue.script.js.map +0 -1
  1406. package/dist/views/Request/ResponseSection/index.d.ts +0 -3
  1407. package/dist/views/Request/ResponseSection/index.d.ts.map +0 -1
  1408. package/dist/views/Request/ResponseSection/index.js +0 -3
  1409. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts +0 -4
  1410. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +0 -1
  1411. package/dist/views/Request/components/WorkspaceDropdown.vue.js +0 -7
  1412. package/dist/views/Request/components/WorkspaceDropdown.vue.js.map +0 -1
  1413. package/dist/views/Request/components/WorkspaceDropdown.vue.script.js +0 -182
  1414. package/dist/views/Request/components/WorkspaceDropdown.vue.script.js.map +0 -1
  1415. package/dist/views/Request/components/index.d.ts +0 -2
  1416. package/dist/views/Request/components/index.d.ts.map +0 -1
  1417. package/dist/views/Request/components/index.js +0 -2
  1418. package/dist/views/Request/consts/index.d.ts +0 -3
  1419. package/dist/views/Request/consts/index.d.ts.map +0 -1
  1420. package/dist/views/Request/consts/index.js +0 -3
  1421. package/dist/views/Request/consts/mediaTypes.d.ts +0 -20
  1422. package/dist/views/Request/consts/mediaTypes.d.ts.map +0 -1
  1423. package/dist/views/Request/consts/mediaTypes.js +0 -231
  1424. package/dist/views/Request/consts/mediaTypes.js.map +0 -1
  1425. package/dist/views/Request/consts/new-auth-options.d.ts +0 -107
  1426. package/dist/views/Request/consts/new-auth-options.d.ts.map +0 -1
  1427. package/dist/views/Request/consts/new-auth-options.js +0 -90
  1428. package/dist/views/Request/consts/new-auth-options.js.map +0 -1
  1429. package/dist/views/Request/handle-drag.d.ts +0 -9
  1430. package/dist/views/Request/handle-drag.d.ts.map +0 -1
  1431. package/dist/views/Request/handle-drag.js +0 -51
  1432. package/dist/views/Request/handle-drag.js.map +0 -1
  1433. package/dist/views/Request/hooks/useOpenApiWatcher.d.ts +0 -9
  1434. package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +0 -1
  1435. package/dist/views/Request/hooks/useOpenApiWatcher.js +0 -96
  1436. package/dist/views/Request/hooks/useOpenApiWatcher.js.map +0 -1
  1437. package/dist/views/Request/libs/auth.d.ts +0 -27
  1438. package/dist/views/Request/libs/auth.d.ts.map +0 -1
  1439. package/dist/views/Request/libs/auth.js +0 -74
  1440. package/dist/views/Request/libs/auth.js.map +0 -1
  1441. package/dist/views/Request/libs/index.d.ts +0 -4
  1442. package/dist/views/Request/libs/index.d.ts.map +0 -1
  1443. package/dist/views/Request/libs/index.js +0 -4
  1444. package/dist/views/Request/libs/oauth2.d.ts +0 -43
  1445. package/dist/views/Request/libs/oauth2.d.ts.map +0 -1
  1446. package/dist/views/Request/libs/oauth2.js +0 -178
  1447. package/dist/views/Request/libs/oauth2.js.map +0 -1
  1448. package/dist/views/Request/libs/request.d.ts +0 -21
  1449. package/dist/views/Request/libs/request.d.ts.map +0 -1
  1450. package/dist/views/Request/libs/request.js +0 -46
  1451. package/dist/views/Request/libs/request.js.map +0 -1
  1452. package/dist/views/Request/libs/watch-mode.d.ts +0 -60
  1453. package/dist/views/Request/libs/watch-mode.d.ts.map +0 -1
  1454. package/dist/views/Request/libs/watch-mode.js +0 -375
  1455. package/dist/views/Request/libs/watch-mode.js.map +0 -1
  1456. package/dist/views/Request/types/index.d.ts +0 -2
  1457. package/dist/views/Request/types/index.d.ts.map +0 -1
  1458. package/dist/views/Request/types/index.js +0 -0
  1459. package/dist/views/Request/types/sidebar-item.d.ts +0 -30
  1460. package/dist/views/Request/types/sidebar-item.d.ts.map +0 -1
  1461. package/dist/views/Settings/Settings.vue.d.ts +0 -5
  1462. package/dist/views/Settings/Settings.vue.d.ts.map +0 -1
  1463. package/dist/views/Settings/Settings.vue.js +0 -7
  1464. package/dist/views/Settings/Settings.vue.js.map +0 -1
  1465. package/dist/views/Settings/Settings.vue.script.js +0 -28
  1466. package/dist/views/Settings/Settings.vue.script.js.map +0 -1
  1467. package/dist/views/Settings/SettingsGeneral.vue.d.ts +0 -4
  1468. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +0 -1
  1469. package/dist/views/Settings/SettingsGeneral.vue.js +0 -7
  1470. package/dist/views/Settings/SettingsGeneral.vue.js.map +0 -1
  1471. package/dist/views/Settings/SettingsGeneral.vue.script.js +0 -241
  1472. package/dist/views/Settings/SettingsGeneral.vue.script.js.map +0 -1
  1473. package/dist/views/Settings/components/SettingsAppearance.vue.d.ts +0 -4
  1474. package/dist/views/Settings/components/SettingsAppearance.vue.d.ts.map +0 -1
  1475. package/dist/views/Settings/components/SettingsAppearance.vue.js +0 -7
  1476. package/dist/views/Settings/components/SettingsAppearance.vue.js.map +0 -1
  1477. package/dist/views/Settings/components/SettingsAppearance.vue.script.js +0 -62
  1478. package/dist/views/Settings/components/SettingsAppearance.vue.script.js.map +0 -1
  1479. package/dist/views/Settings/components/SettingsSection.vue.d.ts +0 -15
  1480. package/dist/views/Settings/components/SettingsSection.vue.d.ts.map +0 -1
  1481. package/dist/views/Settings/components/SettingsSection.vue.js +0 -7
  1482. package/dist/views/Settings/components/SettingsSection.vue.js.map +0 -1
  1483. package/dist/views/Settings/components/SettingsSection.vue.script.js +0 -27
  1484. package/dist/views/Settings/components/SettingsSection.vue.script.js.map +0 -1
  1485. /package/dist/{components → v2/blocks/operation-block/components}/OpenApiClientButton.vue.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"CommandPaletteImport.vue.script.js","names":[],"sources":["../../../../../src/v2/features/command-palette/components/CommandPaletteImport.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * Command Palette Import Component\n *\n * Provides a form for importing OpenAPI descriptions from URL, file, or pasted JSON/YAML.\n * Postman collection JSON and Postman files open {@link CommandPaletteImportPostman}.\n * cURL commands redirect to {@link CommandPaletteImportCurl}.\n *\n * Supports watch mode for URL imports to automatically update when content changes.\n */\nexport default {\n name: 'CommandPaletteImport',\n}\n</script>\n\n<script setup lang=\"ts\">\nimport {\n ScalarButton,\n ScalarCodeBlock,\n ScalarIcon,\n ScalarTooltip,\n useLoadingState,\n} from '@scalar/components'\nimport { isLocalUrl } from '@scalar/helpers/url/is-local-url'\nimport type { LoaderPlugin } from '@scalar/json-magic/bundle'\nimport { useToasts } from '@scalar/use-toasts'\nimport {\n createWorkspaceStore,\n type WorkspaceStore,\n} from '@scalar/workspace-store/client'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { computed, ref, watch } from 'vue'\nimport { useRouter } from 'vue-router'\n\nimport { useFileDialog } from '@/hooks'\nimport { getOpenApiDocumentDetails } from '@/v2/features/command-palette/helpers/get-openapi-document-details'\nimport { importDocumentToWorkspace } from '@/v2/features/command-palette/helpers/import-document-to-workspace'\nimport { isPostmanCollection } from '@/v2/features/command-palette/helpers/is-postman-collection'\nimport {\n loadDocumentFromSource,\n type ImportEventData,\n} from '@/v2/features/command-palette/helpers/load-document-from-source'\nimport { isUrl } from '@/v2/helpers/is-url'\n\nimport CommandActionForm from './CommandActionForm.vue'\nimport CommandActionInput from './CommandActionInput.vue'\nimport WatchModeToggle from './WatchModeToggle.vue'\n\nconst { workspaceStore, eventBus, fileLoader } = defineProps<{\n /** The workspace store for adding documents */\n workspaceStore: WorkspaceStore\n /** Event bus for emitting operation creation events */\n eventBus: WorkspaceEventBus\n /** Loader plugin for file import */\n fileLoader?: LoaderPlugin\n}>()\n\nconst emit = defineEmits<{\n /** Emitted when the import is complete or cancelled */\n (event: 'close'): void\n /** Emitted when user navigates back (e.g., backspace on empty input) */\n (event: 'back', keyboardEvent: KeyboardEvent): void\n}>()\n\ndefineSlots<{\n /** Slot for custom file upload component that can trigger import */\n fileUpload(props: {\n /** Function to trigger import with source content and type */\n import: (source: string, type: 'file' | 'raw') => Promise<void>\n }): void\n}>()\n\nconst { toast } = useToasts()\n\nconst router = useRouter()\nconst loader = useLoadingState()\n\nconst inputContent = ref('')\nconst watchMode = ref(false)\n\n/** Check if the input content is a URL */\nconst isUrlInput = computed<boolean>(() => isUrl(inputContent.value))\nconst isLocalUrlInput = computed<boolean>(\n () => isUrlInput.value && isLocalUrl(inputContent.value),\n)\n\nconst documentDetails = computed(() =>\n getOpenApiDocumentDetails(inputContent.value),\n)\n\n/** Get the document type for syntax highlighting */\nconst documentType = computed<string>(() =>\n documentDetails.value ? documentDetails.value.type : 'json',\n)\n\n/** Check if the form should be disabled (when input is empty) */\nconst isDisabled = computed<boolean>(() => {\n return !inputContent.value.trim()\n})\n\n/**\n * Toggle watchMode based on whether the input is a local URL.\n * Only enables watch mode for local URLs, not for files or pasted content.\n */\nwatch(isLocalUrlInput, (value: boolean) => {\n watchMode.value = value\n})\n\n/**\n * Handles errors during the import process.\n * Shows an error toast, invalidates the loader to show an error state,\n * and closes the command palette modal.\n *\n * @param errorMessage - The error message to display and log\n */\nconst handleImportError = async (errorMessage: string) => {\n // Log the error\n console.error(errorMessage)\n toast(errorMessage, 'error')\n\n // Invalidate the loader to show the error state\n await loader.invalidate()\n\n // Close the command palette\n emit('close')\n}\n\n/**\n * Directly imports a document into the workspace without showing the modal.\n * This is used when there is only one workspace and it is empty.\n */\nconst handleImport = async (\n newSource: string,\n type?: ImportEventData['type'],\n): Promise<void> => {\n loader.start()\n\n const TEMP_DOCUMENT_NAME = 'drafts'\n\n // First load the document into a draft store\n // This is to get the title of the document so we can generate a unique slug for store\n const draftStore = createWorkspaceStore({\n fileLoader,\n meta: {\n /** Ensure we use the active proxy to fetch documents */\n 'x-scalar-active-proxy':\n workspaceStore.workspace['x-scalar-active-proxy'],\n },\n })\n\n const eventType = (() => {\n if (type) {\n return type\n }\n\n if (isUrlInput.value) {\n return 'url'\n }\n\n return 'raw'\n })()\n\n const isSuccessfullyLoaded = await loadDocumentFromSource(\n draftStore,\n { source: newSource, type: eventType },\n TEMP_DOCUMENT_NAME,\n watchMode.value,\n )\n\n if (!isSuccessfullyLoaded) {\n return handleImportError('Failed to import document')\n }\n\n const importResult = await importDocumentToWorkspace({\n workspaceStore,\n workspaceState: draftStore.exportWorkspace(),\n name: TEMP_DOCUMENT_NAME,\n })\n\n if (!importResult.ok) {\n return handleImportError(importResult.error)\n }\n\n // Validate the loader to show the success state\n await loader.validate()\n\n // Navigate to the document overview page\n navigateToDocument(importResult.slug)\n\n // Close the command palette\n emit('close')\n}\n\n/** Navigate to the document overview page after successful import */\nconst navigateToDocument = (documentName: string): void => {\n router.push({\n name: 'document.overview',\n params: { documentSlug: documentName },\n })\n}\n\n/**\n * Handle file selection and import from file dialog.\n * Reads the file as text and imports it as OpenAPI or Postman collection.\n * Shows loading state during the import process.\n */\nconst { open: openSpecFileDialog } = useFileDialog({\n onChange: (files) => {\n const [file] = files ?? []\n\n if (!file) {\n return\n }\n\n loader.start()\n\n const onLoad = async (event: ProgressEvent<FileReader>): Promise<void> => {\n const text = event.target?.result as string\n if (isPostmanCollection(text)) {\n eventBus.emit('ui:open:command-palette', {\n action: 'import-postman-collection',\n payload: {\n inputValue: text,\n },\n })\n await loader.clear()\n return\n }\n await handleImport(text, 'raw')\n }\n\n const reader = new FileReader()\n reader.onload = onLoad\n reader.readAsText(file)\n },\n multiple: false,\n accept: '.json,.yaml,.yml',\n})\n\n/**\n * Handle input changes.\n * Detects cURL commands and redirects to the cURL import command.\n */\nconst handleInput = (value: string): void => {\n const trimmed = value.trim()\n\n if (trimmed.toLowerCase().startsWith('curl')) {\n return eventBus.emit('ui:open:command-palette', {\n action: 'import-curl-command',\n payload: {\n inputValue: value,\n },\n })\n }\n\n if (isPostmanCollection(trimmed)) {\n return eventBus.emit('ui:open:command-palette', {\n action: 'import-postman-collection',\n payload: {\n inputValue: value,\n },\n })\n }\n\n inputContent.value = value\n}\n\n/** Handle back navigation when user presses backspace on empty input */\nconst handleBack = (event: KeyboardEvent): void => {\n emit('back', event)\n}\n</script>\n<template>\n <CommandActionForm\n :disabled=\"isDisabled\"\n :loader\n @submit=\"handleImport(inputContent)\">\n <!-- URL or cURL input mode -->\n <template v-if=\"!documentDetails || isUrlInput\">\n <CommandActionInput\n :modelValue=\"inputContent\"\n placeholder=\"OpenAPI/Swagger/Postman URL or cURL\"\n @delete=\"handleBack\"\n @update:modelValue=\"handleInput\" />\n </template>\n\n <!-- Preview mode for pasted content -->\n <template v-else>\n <!-- Preview header with clear button -->\n <div class=\"flex justify-between\">\n <div class=\"text-c-2 min-h-8 w-full py-2 pl-12 text-center text-xs\">\n Preview\n </div>\n <ScalarButton\n class=\"hover:bg-b-2 relative ml-auto max-h-8 gap-1.5 p-2 text-xs\"\n variant=\"ghost\"\n @click=\"inputContent = ''\">\n Clear\n </ScalarButton>\n </div>\n\n <!-- Code preview with syntax highlighting -->\n <ScalarCodeBlock\n v-if=\"documentDetails && !isUrlInput\"\n class=\"bg-b-2 mt-1 max-h-[40dvh] rounded border px-2 py-1 text-sm\"\n :content=\"inputContent\"\n :copy=\"false\"\n :lang=\"documentType\" />\n </template>\n\n <!-- Actions: File upload and watch mode toggle -->\n <template #options>\n <div class=\"flex w-full flex-row items-center justify-between gap-3\">\n <!-- Custom file upload slot or default button -->\n <slot\n :import=\"handleImport\"\n name=\"fileUpload\">\n <!-- Default file upload button -->\n <ScalarButton\n class=\"hover:bg-b-2 relative max-h-8 gap-1.5 p-2 text-xs\"\n variant=\"outlined\"\n @click=\"openSpecFileDialog\">\n JSON, or YAML File\n <ScalarIcon\n class=\"text-c-3\"\n icon=\"Upload\"\n size=\"md\" />\n </ScalarButton>\n </slot>\n\n <!-- Watch mode toggle (only enabled for URL imports) -->\n <ScalarTooltip\n :content=\"\n isUrlInput\n ? 'Watch mode automatically updates the API client when the OpenAPI URL content changes, ensuring your client remains up-to-date.'\n : 'Watch mode is only available for URL imports. When enabled it automatically updates the API client when the OpenAPI URL content changes.'\n \"\n placement=\"bottom\">\n <WatchModeToggle\n v-model=\"watchMode\"\n :disabled=\"!isUrlInput\" />\n </ScalarTooltip>\n </div>\n </template>\n\n <!-- Dynamic submit button text based on import type -->\n <template #submit>\n Import\n <template v-if=\"isUrlInput\">from URL</template>\n <template v-else-if=\"documentDetails && documentType\">\n <template v-if=\"documentDetails.title\">\n \"{{ documentDetails.title }}\"\n </template>\n <template v-else>\n {{ documentDetails.version }}\n </template>\n </template>\n <template v-else>Collection</template>\n </template>\n </CommandActionForm>\n</template>\n"],"mappings":"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"}
1
+ {"version":3,"file":"CommandPaletteImport.vue.script.js","names":[],"sources":["../../../../../src/v2/features/command-palette/components/CommandPaletteImport.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * Command Palette Import Component\n *\n * Provides a form for importing OpenAPI descriptions from URL, file, or pasted JSON/YAML.\n * Postman collection JSON and Postman files open {@link CommandPaletteImportPostman}.\n * cURL commands redirect to {@link CommandPaletteImportCurl}.\n *\n * Supports watch mode for URL imports to automatically update when content changes.\n */\nexport default {\n name: 'CommandPaletteImport',\n}\n</script>\n\n<script setup lang=\"ts\">\nimport {\n ScalarButton,\n ScalarCodeBlock,\n ScalarIcon,\n ScalarTooltip,\n useLoadingState,\n} from '@scalar/components'\nimport { isLocalUrl } from '@scalar/helpers/url/is-local-url'\nimport type { LoaderPlugin } from '@scalar/json-magic/bundle'\nimport { useToasts } from '@scalar/use-toasts'\nimport {\n createWorkspaceStore,\n type WorkspaceStore,\n} from '@scalar/workspace-store/client'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { computed, ref, watch } from 'vue'\nimport { useRouter } from 'vue-router'\n\nimport { useFileDialog } from '@/hooks/use-file-dialog'\nimport { getOpenApiDocumentDetails } from '@/v2/features/command-palette/helpers/get-openapi-document-details'\nimport { importDocumentToWorkspace } from '@/v2/features/command-palette/helpers/import-document-to-workspace'\nimport { isPostmanCollection } from '@/v2/features/command-palette/helpers/is-postman-collection'\nimport {\n loadDocumentFromSource,\n type ImportEventData,\n} from '@/v2/features/command-palette/helpers/load-document-from-source'\nimport { isUrl } from '@/v2/helpers/is-url'\n\nimport CommandActionForm from './CommandActionForm.vue'\nimport CommandActionInput from './CommandActionInput.vue'\nimport WatchModeToggle from './WatchModeToggle.vue'\n\nconst { workspaceStore, eventBus, fileLoader } = defineProps<{\n /** The workspace store for adding documents */\n workspaceStore: WorkspaceStore\n /** Event bus for emitting operation creation events */\n eventBus: WorkspaceEventBus\n /** Loader plugin for file import */\n fileLoader?: LoaderPlugin\n}>()\n\nconst emit = defineEmits<{\n /** Emitted when the import is complete or cancelled */\n (event: 'close'): void\n /** Emitted when user navigates back (e.g., backspace on empty input) */\n (event: 'back', keyboardEvent: KeyboardEvent): void\n}>()\n\ndefineSlots<{\n /** Slot for custom file upload component that can trigger import */\n fileUpload(props: {\n /** Function to trigger import with source content and type */\n import: (source: string, type: 'file' | 'raw') => Promise<void>\n }): void\n}>()\n\nconst { toast } = useToasts()\n\nconst router = useRouter()\nconst loader = useLoadingState()\n\nconst inputContent = ref('')\nconst watchMode = ref(false)\n\n/** Check if the input content is a URL */\nconst isUrlInput = computed<boolean>(() => isUrl(inputContent.value))\nconst isLocalUrlInput = computed<boolean>(\n () => isUrlInput.value && isLocalUrl(inputContent.value),\n)\n\nconst documentDetails = computed(() =>\n getOpenApiDocumentDetails(inputContent.value),\n)\n\n/** Get the document type for syntax highlighting */\nconst documentType = computed<string>(() =>\n documentDetails.value ? documentDetails.value.type : 'json',\n)\n\n/** Check if the form should be disabled (when input is empty) */\nconst isDisabled = computed<boolean>(() => {\n return !inputContent.value.trim()\n})\n\n/**\n * Toggle watchMode based on whether the input is a local URL.\n * Only enables watch mode for local URLs, not for files or pasted content.\n */\nwatch(isLocalUrlInput, (value: boolean) => {\n watchMode.value = value\n})\n\n/**\n * Handles errors during the import process.\n * Shows an error toast, invalidates the loader to show an error state,\n * and closes the command palette modal.\n *\n * @param errorMessage - The error message to display and log\n */\nconst handleImportError = async (errorMessage: string) => {\n // Log the error\n console.error(errorMessage)\n toast(errorMessage, 'error')\n\n // Invalidate the loader to show the error state\n await loader.invalidate()\n\n // Close the command palette\n emit('close')\n}\n\n/**\n * Directly imports a document into the workspace without showing the modal.\n * This is used when there is only one workspace and it is empty.\n */\nconst handleImport = async (\n newSource: string,\n type?: ImportEventData['type'],\n): Promise<void> => {\n loader.start()\n\n const TEMP_DOCUMENT_NAME = 'drafts'\n\n // First load the document into a draft store\n // This is to get the title of the document so we can generate a unique slug for store\n const draftStore = createWorkspaceStore({\n fileLoader,\n meta: {\n /** Ensure we use the active proxy to fetch documents */\n 'x-scalar-active-proxy':\n workspaceStore.workspace['x-scalar-active-proxy'],\n },\n })\n\n const eventType = (() => {\n if (type) {\n return type\n }\n\n if (isUrlInput.value) {\n return 'url'\n }\n\n return 'raw'\n })()\n\n const isSuccessfullyLoaded = await loadDocumentFromSource(\n draftStore,\n { source: newSource, type: eventType },\n TEMP_DOCUMENT_NAME,\n watchMode.value,\n )\n\n if (!isSuccessfullyLoaded) {\n return handleImportError('Failed to import document')\n }\n\n const importResult = await importDocumentToWorkspace({\n workspaceStore,\n workspaceState: draftStore.exportWorkspace(),\n name: TEMP_DOCUMENT_NAME,\n })\n\n if (!importResult.ok) {\n return handleImportError(importResult.error)\n }\n\n // Validate the loader to show the success state\n await loader.validate()\n\n // Navigate to the document overview page\n navigateToDocument(importResult.slug)\n\n // Close the command palette\n emit('close')\n}\n\n/** Navigate to the document overview page after successful import */\nconst navigateToDocument = (documentName: string): void => {\n router.push({\n name: 'document.overview',\n params: { documentSlug: documentName },\n })\n}\n\n/**\n * Handle file selection and import from file dialog.\n * Reads the file as text and imports it as OpenAPI or Postman collection.\n * Shows loading state during the import process.\n */\nconst { open: openSpecFileDialog } = useFileDialog({\n onChange: (files) => {\n const [file] = files ?? []\n\n if (!file) {\n return\n }\n\n loader.start()\n\n const onLoad = async (event: ProgressEvent<FileReader>): Promise<void> => {\n const text = event.target?.result as string\n if (isPostmanCollection(text)) {\n eventBus.emit('ui:open:command-palette', {\n action: 'import-postman-collection',\n payload: {\n inputValue: text,\n },\n })\n await loader.clear()\n return\n }\n await handleImport(text, 'raw')\n }\n\n const reader = new FileReader()\n reader.onload = onLoad\n reader.readAsText(file)\n },\n multiple: false,\n accept: '.json,.yaml,.yml',\n})\n\n/**\n * Handle input changes.\n * Detects cURL commands and redirects to the cURL import command.\n */\nconst handleInput = (value: string): void => {\n const trimmed = value.trim()\n\n if (trimmed.toLowerCase().startsWith('curl')) {\n return eventBus.emit('ui:open:command-palette', {\n action: 'import-curl-command',\n payload: {\n inputValue: value,\n },\n })\n }\n\n if (isPostmanCollection(trimmed)) {\n return eventBus.emit('ui:open:command-palette', {\n action: 'import-postman-collection',\n payload: {\n inputValue: value,\n },\n })\n }\n\n inputContent.value = value\n}\n\n/** Handle back navigation when user presses backspace on empty input */\nconst handleBack = (event: KeyboardEvent): void => {\n emit('back', event)\n}\n</script>\n<template>\n <CommandActionForm\n :disabled=\"isDisabled\"\n :loader\n @submit=\"handleImport(inputContent)\">\n <!-- URL or cURL input mode -->\n <template v-if=\"!documentDetails || isUrlInput\">\n <CommandActionInput\n :modelValue=\"inputContent\"\n placeholder=\"OpenAPI/Swagger/Postman URL or cURL\"\n @delete=\"handleBack\"\n @update:modelValue=\"handleInput\" />\n </template>\n\n <!-- Preview mode for pasted content -->\n <template v-else>\n <!-- Preview header with clear button -->\n <div class=\"flex justify-between\">\n <div class=\"text-c-2 min-h-8 w-full py-2 pl-12 text-center text-xs\">\n Preview\n </div>\n <ScalarButton\n class=\"hover:bg-b-2 relative ml-auto max-h-8 gap-1.5 p-2 text-xs\"\n variant=\"ghost\"\n @click=\"inputContent = ''\">\n Clear\n </ScalarButton>\n </div>\n\n <!-- Code preview with syntax highlighting -->\n <ScalarCodeBlock\n v-if=\"documentDetails && !isUrlInput\"\n class=\"bg-b-2 mt-1 max-h-[40dvh] rounded border px-2 py-1 text-sm\"\n :content=\"inputContent\"\n :copy=\"false\"\n :lang=\"documentType\" />\n </template>\n\n <!-- Actions: File upload and watch mode toggle -->\n <template #options>\n <div class=\"flex w-full flex-row items-center justify-between gap-3\">\n <!-- Custom file upload slot or default button -->\n <slot\n :import=\"handleImport\"\n name=\"fileUpload\">\n <!-- Default file upload button -->\n <ScalarButton\n class=\"hover:bg-b-2 relative max-h-8 gap-1.5 p-2 text-xs\"\n variant=\"outlined\"\n @click=\"openSpecFileDialog\">\n JSON, or YAML File\n <ScalarIcon\n class=\"text-c-3\"\n icon=\"Upload\"\n size=\"md\" />\n </ScalarButton>\n </slot>\n\n <!-- Watch mode toggle (only enabled for URL imports) -->\n <ScalarTooltip\n :content=\"\n isUrlInput\n ? 'Watch mode automatically updates the API client when the OpenAPI URL content changes, ensuring your client remains up-to-date.'\n : 'Watch mode is only available for URL imports. When enabled it automatically updates the API client when the OpenAPI URL content changes.'\n \"\n placement=\"bottom\">\n <WatchModeToggle\n v-model=\"watchMode\"\n :disabled=\"!isUrlInput\" />\n </ScalarTooltip>\n </div>\n </template>\n\n <!-- Dynamic submit button text based on import type -->\n <template #submit>\n Import\n <template v-if=\"isUrlInput\">from URL</template>\n <template v-else-if=\"documentDetails && documentType\">\n <template v-if=\"documentDetails.title\">\n \"{{ documentDetails.title }}\"\n </template>\n <template v-else>\n {{ documentDetails.version }}\n </template>\n </template>\n <template v-else>Collection</template>\n </template>\n </CommandActionForm>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;CAWE,MAAM;;;;;;;;EA8CR,MAAM,OAAO;EAeb,MAAM,EAAE,UAAU,WAAU;EAE5B,MAAM,SAAS,WAAU;EACzB,MAAM,SAAS,iBAAgB;EAE/B,MAAM,eAAe,IAAI,GAAE;EAC3B,MAAM,YAAY,IAAI,MAAK;;EAG3B,MAAM,aAAa,eAAwB,MAAM,aAAa,MAAM,CAAA;EACpE,MAAM,kBAAkB,eAChB,WAAW,SAAS,WAAW,aAAa,MAAM,CAC1D;EAEA,MAAM,kBAAkB,eACtB,0BAA0B,aAAa,MAAM,CAC/C;;EAGA,MAAM,eAAe,eACnB,gBAAgB,QAAQ,gBAAgB,MAAM,OAAO,OACvD;;EAGA,MAAM,aAAa,eAAwB;AACzC,UAAO,CAAC,aAAa,MAAM,MAAK;IACjC;;;;;AAMD,QAAM,kBAAkB,UAAmB;AACzC,aAAU,QAAQ;IACnB;;;;;;;;EASD,MAAM,oBAAoB,OAAO,iBAAyB;AAExD,WAAQ,MAAM,aAAY;AAC1B,SAAM,cAAc,QAAO;AAG3B,SAAM,OAAO,YAAW;AAGxB,QAAK,QAAO;;;;;;EAOd,MAAM,eAAe,OACnB,WACA,SACkB;AAClB,UAAO,OAAM;GAEb,MAAM,qBAAqB;GAI3B,MAAM,aAAa,qBAAqB;IACtC,YAAS,QAAA;IACT,MAAM,EAEJ,yBACE,QAAA,eAAe,UAAU,0BAC5B;IACF,CAAA;AAqBD,OAAI,CAPyB,MAAM,uBACjC,YACA;IAAE,QAAQ;IAAW,aAdE;AACvB,SAAI,KACF,QAAO;AAGT,SAAI,WAAW,MACb,QAAO;AAGT,YAAO;QACN;IAIqC,EACtC,oBACA,UAAU,MACZ,CAGE,QAAO,kBAAkB,4BAA2B;GAGtD,MAAM,eAAe,MAAM,0BAA0B;IACnD,gBAAa,QAAA;IACb,gBAAgB,WAAW,iBAAiB;IAC5C,MAAM;IACP,CAAA;AAED,OAAI,CAAC,aAAa,GAChB,QAAO,kBAAkB,aAAa,MAAK;AAI7C,SAAM,OAAO,UAAS;AAGtB,sBAAmB,aAAa,KAAI;AAGpC,QAAK,QAAO;;;EAId,MAAM,sBAAsB,iBAA+B;AACzD,UAAO,KAAK;IACV,MAAM;IACN,QAAQ,EAAE,cAAc,cAAc;IACvC,CAAA;;;;;;;EAQH,MAAM,EAAE,MAAM,uBAAuB,cAAc;GACjD,WAAW,UAAU;IACnB,MAAM,CAAC,QAAQ,SAAS,EAAC;AAEzB,QAAI,CAAC,KACH;AAGF,WAAO,OAAM;IAEb,MAAM,SAAS,OAAO,UAAoD;KACxE,MAAM,OAAO,MAAM,QAAQ;AAC3B,SAAI,oBAAoB,KAAK,EAAE;AAC7B,cAAA,SAAS,KAAK,2BAA2B;OACvC,QAAQ;OACR,SAAS,EACP,YAAY,MACb;OACF,CAAA;AACD,YAAM,OAAO,OAAM;AACnB;;AAEF,WAAM,aAAa,MAAM,MAAK;;IAGhC,MAAM,SAAS,IAAI,YAAW;AAC9B,WAAO,SAAS;AAChB,WAAO,WAAW,KAAI;;GAExB,UAAU;GACV,QAAQ;GACT,CAAA;;;;;EAMD,MAAM,eAAe,UAAwB;GAC3C,MAAM,UAAU,MAAM,MAAK;AAE3B,OAAI,QAAQ,aAAa,CAAC,WAAW,OAAO,CAC1C,QAAO,QAAA,SAAS,KAAK,2BAA2B;IAC9C,QAAQ;IACR,SAAS,EACP,YAAY,OACb;IACF,CAAA;AAGH,OAAI,oBAAoB,QAAQ,CAC9B,QAAO,QAAA,SAAS,KAAK,2BAA2B;IAC9C,QAAQ;IACR,SAAS,EACP,YAAY,OACb;IACF,CAAA;AAGH,gBAAa,QAAQ;;;EAIvB,MAAM,cAAc,UAA+B;AACjD,QAAK,QAAQ,MAAK;;;uBAIlB,YAsFoB,2BAAA;IArFjB,UAAU,WAAA;IACV,QAAA,MAAA,OAAM;IACN,UAAM,OAAA,OAAA,OAAA,MAAA,WAAE,aAAa,aAAA,MAAY;;IAmCvB,SAAO,cA+BV,CA9BN,mBA8BM,OA9BN,YA8BM,CA5BJ,WAcO,KAAA,QAAA,cAAA,EAbJ,QAAQ,cAAY,QAahB,CAVL,YASe,MAAA,aAAA,EAAA;KARb,OAAM;KACN,SAAQ;KACP,SAAO,MAAA,mBAAkB;;4BAE1B,CAAA,OAAA,OAAA,OAAA,KAAA,gBAF4B,wBAE5B,GAAA,GAAA,YAGc,MAAA,WAAA,EAAA;MAFZ,OAAM;MACN,MAAK;MACL,MAAK;;;0BAKX,YAUgB,MAAA,cAAA,EAAA;KATb,SAAsB,WAAA,QAAA,mIAAA;KAKvB,WAAU;;4BAGkB,CAF5B,YAE4B,yBAAA;kBADjB,UAAA;6EAAS,QAAA;MACjB,UAAQ,CAAG,WAAA;;;;IAMT,QAAM,cAEf,CAAA,OAAA,OAAA,OAAA,KAAA,gBAFgB,YAEhB,GAAA,GAAgB,WAAA,SAAA,WAAA,EAAhB,mBAA+C,UAAA,EAAA,KAAA,GAAA,EAAA,CAAA,gBAAnB,WAAQ,CAAA,EAAA,GAAA,IACf,gBAAA,SAAmB,aAAA,SAAA,WAAA,EAAxC,mBAOW,UAAA,EAAA,KAAA,GAAA,EAAA,CANO,gBAAA,MAAgB,SAAA,WAAA,EAAhC,mBAEW,UAAA,EAAA,KAAA,GAAA,EAAA,CAAA,gBAF4B,QACpC,gBAAG,gBAAA,MAAgB,MAAK,GAAG,OAC9B,EAAA,CAAA,EAAA,GAAA,KAAA,WAAA,EACA,mBAEW,UAAA,EAAA,KAAA,GAAA,EAAA,CAAA,gBAAA,gBADN,gBAAA,MAAgB,QAAO,EAAA,EAAA,CAAA,EAAA,GAAA,EAAA,EAAA,GAAA,KAAA,WAAA,EAG9B,mBAAsC,UAAA,EAAA,KAAA,GAAA,EAAA,CAAA,gBAArB,aAAU,CAAA,EAAA,GAAA,EAAA,CAAA;2BAzElB,CAAA,CANM,gBAAA,SAAmB,WAAA,SAAA,WAAA,EAClC,YAIqC,4BAAA;;KAHlC,YAAY,aAAA;KACb,aAAY;KACX,UAAQ;KACR,uBAAmB;iDAIxB,mBAqBW,UAAA,EAAA,KAAA,GAAA,EAAA,CAnBT,mBAUM,OAVN,YAUM,CAAA,OAAA,OAAA,OAAA,KATJ,mBAEM,OAAA,EAFD,OAAM,0DAAwD,EAAC,aAEpE,GAAA,GACA,YAKe,MAAA,aAAA,EAAA;KAJb,OAAM;KACN,SAAQ;KACP,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,aAAA,QAAY;;4BAEtB,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,gBAF6B,WAE7B,GAAA,CAAA,EAAA,CAAA;;UAKM,gBAAA,SAAe,CAAK,WAAA,SAAA,WAAA,EAD5B,YAKyB,MAAA,gBAAA,EAAA;;KAHvB,OAAM;KACL,SAAS,aAAA;KACT,MAAM;KACN,MAAM,aAAA"}
@@ -1,6 +1,6 @@
1
- import IconSelector_default from "../../../../components/IconSelector.vue.js";
2
1
  import CommandActionForm_default from "./CommandActionForm.vue.js";
3
2
  import CommandActionInput_default from "./CommandActionInput.vue.js";
3
+ import IconSelector_default from "../../../../components/IconSelector.vue.js";
4
4
  import { computed, createBlock, createTextVNode, createVNode, defineComponent, openBlock, ref, unref, withCtx } from "vue";
5
5
  import { ScalarButton } from "@scalar/components";
6
6
  import { useRouter } from "vue-router";
@@ -1,4 +1,4 @@
1
- import { parseCurlCommand } from "../../../../libs/parse-curl.js";
1
+ import { parseCurlCommand } from "./parse-curl.js";
2
2
  //#region src/v2/features/command-palette/helpers/get-operation-from-curl.ts
3
3
  /**
4
4
  * Parses request body data from a string.
@@ -1 +1 @@
1
- {"version":3,"file":"get-operation-from-curl.js","names":[],"sources":["../../../../../src/v2/features/command-palette/helpers/get-operation-from-curl.ts"],"sourcesContent":["import type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type {\n OperationObject,\n ParameterObject,\n SchemaObject,\n ServerObject,\n} from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\n\nimport { parseCurlCommand } from '@/libs'\n\n/**\n * Represents the result of parsing a cURL command into an OpenAPI operation.\n */\ntype CurlOperationResult = {\n /** The URL path extracted from the cURL command. */\n path: string\n /** The HTTP method (GET, POST, etc.). */\n method: HttpMethod\n /** The OpenAPI operation object with parameters, body, and servers. */\n operation: OperationObject\n}\n\n/**\n * Represents data that can be either JSON or form-encoded key-value pairs.\n */\ntype ParsedData = Record<string, unknown>\n\n/**\n * Parses request body data from a string.\n * Attempts JSON parsing first, then falls back to form-encoded parsing.\n *\n * Form-encoded data is expected in the format: key1=value1&key2=value2\n */\nconst parseRequestBodyData = (data: string): ParsedData => {\n try {\n // Try parsing as JSON first\n return JSON.parse(data) as ParsedData\n } catch {\n // If JSON parsing fails, parse as form-encoded data (key=value&key2=value2)\n const result: Record<string, string> = {}\n\n data.split('&').forEach((pair) => {\n const [key, value] = pair.split('=')\n if (key && value) {\n result[decodeURIComponent(key)] = decodeURIComponent(value)\n }\n })\n\n return result\n }\n}\n\n/**\n * Determines the content type based on the request body structure.\n * Returns form-encoded if the body looks like form data, JSON if the body looks like JSON,\n * otherwise uses the header value.\n */\nconst detectContentType = (body: string, headers: Record<string, string>): string => {\n // If Content-Type header is explicitly provided, use it\n if (headers['Content-Type']) {\n return headers['Content-Type']\n }\n\n // Check if body looks like JSON (starts with { or [)\n const trimmedBody = body.trim()\n const isJson = trimmedBody.startsWith('{') || trimmedBody.startsWith('[')\n\n if (isJson) {\n return 'application/json'\n }\n\n // Check if body looks like form-encoded data (contains = but does not start with {)\n const isFormEncoded = body.includes('=') && !trimmedBody.startsWith('{')\n\n return isFormEncoded ? 'application/x-www-form-urlencoded' : ''\n}\n\n/**\n * Infers a JSON Schema type from a JavaScript value.\n * Maps JavaScript typeof results to JSON Schema primitive types.\n */\nconst inferSchemaType = (value: unknown): string => {\n const jsType = typeof value\n\n // Map JavaScript types to JSON Schema types\n if (jsType === 'string') {\n return 'string'\n }\n if (jsType === 'number') {\n return 'number'\n }\n if (jsType === 'boolean') {\n return 'boolean'\n }\n if (value === null) {\n return 'null'\n }\n if (Array.isArray(value)) {\n return 'array'\n }\n if (jsType === 'object') {\n return 'object'\n }\n\n // Default fallback for any other types\n return 'string'\n}\n\n/**\n * Creates query and header parameters from parsed cURL data.\n * Each parameter includes a schema with inferred type and an example value.\n */\nconst createParameters = (\n queryParameters: Array<{ key: string; value: string }>,\n headers: Record<string, string>,\n exampleKey: string,\n): ParameterObject[] => {\n const queryParams = Array.isArray(queryParameters)\n ? queryParameters.map(({ key, value }) => ({\n name: key,\n in: 'query' as const,\n schema: { type: inferSchemaType(value) },\n examples: {\n [exampleKey]: { value },\n },\n }))\n : []\n\n const headerParams = Object.entries(headers || {}).map(([key, value]) => ({\n name: key,\n in: 'header' as const,\n schema: { type: inferSchemaType(value) },\n examples: {\n [exampleKey]: { value },\n },\n }))\n\n return [...queryParams, ...headerParams]\n}\n\n/**\n * Creates a request body schema from parsed data.\n * Generates an object schema with properties inferred from the data structure.\n */\nconst createRequestBodySchema = (data: ParsedData): SchemaObject => {\n const properties = Object.fromEntries(\n Object.entries(data).map(([key, value]) => [key, { type: inferSchemaType(value) } as SchemaObject]),\n )\n\n return {\n type: 'object',\n properties,\n }\n}\n\n/** Don't want to throw for invalid URLs */\nconst safePathname = (url: string) => {\n try {\n return new URL(url).pathname\n } catch {\n return '/'\n }\n}\n\n/**\n * Converts a cURL command string into an OpenAPI operation object.\n *\n * This function parses a cURL command and extracts all relevant information\n * (path, method, headers, query parameters, request body) to create a complete\n * OpenAPI operation that can be used to populate a request in the API client.\n *\n * The exampleKey is used to namespace the example values in the operation object,\n * allowing multiple examples to coexist if needed.\n */\nexport const getOperationFromCurl = (curl: string, exampleKey = 'curl'): CurlOperationResult => {\n const parsedCurl = parseCurlCommand(curl)\n\n const { method = 'get', url, body = '', headers = {}, servers = [], queryParameters = [] } = parsedCurl\n\n const path = safePathname(url)\n const contentType = detectContentType(body, headers)\n const requestBodyData = body ? parseRequestBodyData(body) : {}\n\n const parameters = createParameters(queryParameters, headers, exampleKey)\n\n const serverObjects: ServerObject[] = servers.map((server) => ({\n url: server,\n }))\n\n return {\n path,\n method,\n operation: {\n parameters,\n requestBody: {\n content: {\n [contentType]: {\n schema: createRequestBodySchema(requestBodyData),\n examples: {\n [exampleKey]: { value: requestBodyData },\n },\n },\n },\n 'x-scalar-selected-content-type': {\n [exampleKey]: contentType,\n },\n },\n servers: serverObjects.length ? serverObjects : undefined,\n },\n }\n}\n"],"mappings":";;;;;;;;AAiCA,IAAM,wBAAwB,SAA6B;AACzD,KAAI;AAEF,SAAO,KAAK,MAAM,KAAK;SACjB;EAEN,MAAM,SAAiC,EAAE;AAEzC,OAAK,MAAM,IAAI,CAAC,SAAS,SAAS;GAChC,MAAM,CAAC,KAAK,SAAS,KAAK,MAAM,IAAI;AACpC,OAAI,OAAO,MACT,QAAO,mBAAmB,IAAI,IAAI,mBAAmB,MAAM;IAE7D;AAEF,SAAO;;;;;;;;AASX,IAAM,qBAAqB,MAAc,YAA4C;AAEnF,KAAI,QAAQ,gBACV,QAAO,QAAQ;CAIjB,MAAM,cAAc,KAAK,MAAM;AAG/B,KAFe,YAAY,WAAW,IAAI,IAAI,YAAY,WAAW,IAAI,CAGvE,QAAO;AAMT,QAFsB,KAAK,SAAS,IAAI,IAAI,CAAC,YAAY,WAAW,IAAI,GAEjD,sCAAsC;;;;;;AAO/D,IAAM,mBAAmB,UAA2B;CAClD,MAAM,SAAS,OAAO;AAGtB,KAAI,WAAW,SACb,QAAO;AAET,KAAI,WAAW,SACb,QAAO;AAET,KAAI,WAAW,UACb,QAAO;AAET,KAAI,UAAU,KACZ,QAAO;AAET,KAAI,MAAM,QAAQ,MAAM,CACtB,QAAO;AAET,KAAI,WAAW,SACb,QAAO;AAIT,QAAO;;;;;;AAOT,IAAM,oBACJ,iBACA,SACA,eACsB;CACtB,MAAM,cAAc,MAAM,QAAQ,gBAAgB,GAC9C,gBAAgB,KAAK,EAAE,KAAK,aAAa;EACvC,MAAM;EACN,IAAI;EACJ,QAAQ,EAAE,MAAM,gBAAgB,MAAM,EAAE;EACxC,UAAU,GACP,aAAa,EAAE,OAAO,EACxB;EACF,EAAE,GACH,EAAE;CAEN,MAAM,eAAe,OAAO,QAAQ,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,YAAY;EACxE,MAAM;EACN,IAAI;EACJ,QAAQ,EAAE,MAAM,gBAAgB,MAAM,EAAE;EACxC,UAAU,GACP,aAAa,EAAE,OAAO,EACxB;EACF,EAAE;AAEH,QAAO,CAAC,GAAG,aAAa,GAAG,aAAa;;;;;;AAO1C,IAAM,2BAA2B,SAAmC;AAKlE,QAAO;EACL,MAAM;EACN,YANiB,OAAO,YACxB,OAAO,QAAQ,KAAK,CAAC,KAAK,CAAC,KAAK,WAAW,CAAC,KAAK,EAAE,MAAM,gBAAgB,MAAM,EAAE,CAAiB,CAAC,CACpG;EAKA;;;AAIH,IAAM,gBAAgB,QAAgB;AACpC,KAAI;AACF,SAAO,IAAI,IAAI,IAAI,CAAC;SACd;AACN,SAAO;;;;;;;;;;;;;AAcX,IAAa,wBAAwB,MAAc,aAAa,WAAgC;CAG9F,MAAM,EAAE,SAAS,OAAO,KAAK,OAAO,IAAI,UAAU,EAAE,EAAE,UAAU,EAAE,EAAE,kBAAkB,EAAE,KAFrE,iBAAiB,KAAK;CAIzC,MAAM,OAAO,aAAa,IAAI;CAC9B,MAAM,cAAc,kBAAkB,MAAM,QAAQ;CACpD,MAAM,kBAAkB,OAAO,qBAAqB,KAAK,GAAG,EAAE;CAE9D,MAAM,aAAa,iBAAiB,iBAAiB,SAAS,WAAW;CAEzE,MAAM,gBAAgC,QAAQ,KAAK,YAAY,EAC7D,KAAK,QACN,EAAE;AAEH,QAAO;EACL;EACA;EACA,WAAW;GACT;GACA,aAAa;IACX,SAAS,GACN,cAAc;KACb,QAAQ,wBAAwB,gBAAgB;KAChD,UAAU,GACP,aAAa,EAAE,OAAO,iBAAiB,EACzC;KACF,EACF;IACD,kCAAkC,GAC/B,aAAa,aACf;IACF;GACD,SAAS,cAAc,SAAS,gBAAgB,KAAA;GACjD;EACF"}
1
+ {"version":3,"file":"get-operation-from-curl.js","names":[],"sources":["../../../../../src/v2/features/command-palette/helpers/get-operation-from-curl.ts"],"sourcesContent":["import type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type {\n OperationObject,\n ParameterObject,\n SchemaObject,\n ServerObject,\n} from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\n\nimport { parseCurlCommand } from './parse-curl'\n\n/**\n * Represents the result of parsing a cURL command into an OpenAPI operation.\n */\ntype CurlOperationResult = {\n /** The URL path extracted from the cURL command. */\n path: string\n /** The HTTP method (GET, POST, etc.). */\n method: HttpMethod\n /** The OpenAPI operation object with parameters, body, and servers. */\n operation: OperationObject\n}\n\n/**\n * Represents data that can be either JSON or form-encoded key-value pairs.\n */\ntype ParsedData = Record<string, unknown>\n\n/**\n * Parses request body data from a string.\n * Attempts JSON parsing first, then falls back to form-encoded parsing.\n *\n * Form-encoded data is expected in the format: key1=value1&key2=value2\n */\nconst parseRequestBodyData = (data: string): ParsedData => {\n try {\n // Try parsing as JSON first\n return JSON.parse(data) as ParsedData\n } catch {\n // If JSON parsing fails, parse as form-encoded data (key=value&key2=value2)\n const result: Record<string, string> = {}\n\n data.split('&').forEach((pair) => {\n const [key, value] = pair.split('=')\n if (key && value) {\n result[decodeURIComponent(key)] = decodeURIComponent(value)\n }\n })\n\n return result\n }\n}\n\n/**\n * Determines the content type based on the request body structure.\n * Returns form-encoded if the body looks like form data, JSON if the body looks like JSON,\n * otherwise uses the header value.\n */\nconst detectContentType = (body: string, headers: Record<string, string>): string => {\n // If Content-Type header is explicitly provided, use it\n if (headers['Content-Type']) {\n return headers['Content-Type']\n }\n\n // Check if body looks like JSON (starts with { or [)\n const trimmedBody = body.trim()\n const isJson = trimmedBody.startsWith('{') || trimmedBody.startsWith('[')\n\n if (isJson) {\n return 'application/json'\n }\n\n // Check if body looks like form-encoded data (contains = but does not start with {)\n const isFormEncoded = body.includes('=') && !trimmedBody.startsWith('{')\n\n return isFormEncoded ? 'application/x-www-form-urlencoded' : ''\n}\n\n/**\n * Infers a JSON Schema type from a JavaScript value.\n * Maps JavaScript typeof results to JSON Schema primitive types.\n */\nconst inferSchemaType = (value: unknown): string => {\n const jsType = typeof value\n\n // Map JavaScript types to JSON Schema types\n if (jsType === 'string') {\n return 'string'\n }\n if (jsType === 'number') {\n return 'number'\n }\n if (jsType === 'boolean') {\n return 'boolean'\n }\n if (value === null) {\n return 'null'\n }\n if (Array.isArray(value)) {\n return 'array'\n }\n if (jsType === 'object') {\n return 'object'\n }\n\n // Default fallback for any other types\n return 'string'\n}\n\n/**\n * Creates query and header parameters from parsed cURL data.\n * Each parameter includes a schema with inferred type and an example value.\n */\nconst createParameters = (\n queryParameters: Array<{ key: string; value: string }>,\n headers: Record<string, string>,\n exampleKey: string,\n): ParameterObject[] => {\n const queryParams = Array.isArray(queryParameters)\n ? queryParameters.map(({ key, value }) => ({\n name: key,\n in: 'query' as const,\n schema: { type: inferSchemaType(value) },\n examples: {\n [exampleKey]: { value },\n },\n }))\n : []\n\n const headerParams = Object.entries(headers || {}).map(([key, value]) => ({\n name: key,\n in: 'header' as const,\n schema: { type: inferSchemaType(value) },\n examples: {\n [exampleKey]: { value },\n },\n }))\n\n return [...queryParams, ...headerParams]\n}\n\n/**\n * Creates a request body schema from parsed data.\n * Generates an object schema with properties inferred from the data structure.\n */\nconst createRequestBodySchema = (data: ParsedData): SchemaObject => {\n const properties = Object.fromEntries(\n Object.entries(data).map(([key, value]) => [key, { type: inferSchemaType(value) } as SchemaObject]),\n )\n\n return {\n type: 'object',\n properties,\n }\n}\n\n/** Don't want to throw for invalid URLs */\nconst safePathname = (url: string) => {\n try {\n return new URL(url).pathname\n } catch {\n return '/'\n }\n}\n\n/**\n * Converts a cURL command string into an OpenAPI operation object.\n *\n * This function parses a cURL command and extracts all relevant information\n * (path, method, headers, query parameters, request body) to create a complete\n * OpenAPI operation that can be used to populate a request in the API client.\n *\n * The exampleKey is used to namespace the example values in the operation object,\n * allowing multiple examples to coexist if needed.\n */\nexport const getOperationFromCurl = (curl: string, exampleKey = 'curl'): CurlOperationResult => {\n const parsedCurl = parseCurlCommand(curl)\n\n const { method = 'get', url, body = '', headers = {}, servers = [], queryParameters = [] } = parsedCurl\n\n const path = safePathname(url)\n const contentType = detectContentType(body, headers)\n const requestBodyData = body ? parseRequestBodyData(body) : {}\n\n const parameters = createParameters(queryParameters, headers, exampleKey)\n\n const serverObjects: ServerObject[] = servers.map((server) => ({\n url: server,\n }))\n\n return {\n path,\n method,\n operation: {\n parameters,\n requestBody: {\n content: {\n [contentType]: {\n schema: createRequestBodySchema(requestBodyData),\n examples: {\n [exampleKey]: { value: requestBodyData },\n },\n },\n },\n 'x-scalar-selected-content-type': {\n [exampleKey]: contentType,\n },\n },\n servers: serverObjects.length ? serverObjects : undefined,\n },\n }\n}\n"],"mappings":";;;;;;;;AAiCA,IAAM,wBAAwB,SAA6B;AACzD,KAAI;AAEF,SAAO,KAAK,MAAM,KAAK;SACjB;EAEN,MAAM,SAAiC,EAAE;AAEzC,OAAK,MAAM,IAAI,CAAC,SAAS,SAAS;GAChC,MAAM,CAAC,KAAK,SAAS,KAAK,MAAM,IAAI;AACpC,OAAI,OAAO,MACT,QAAO,mBAAmB,IAAI,IAAI,mBAAmB,MAAM;IAE7D;AAEF,SAAO;;;;;;;;AASX,IAAM,qBAAqB,MAAc,YAA4C;AAEnF,KAAI,QAAQ,gBACV,QAAO,QAAQ;CAIjB,MAAM,cAAc,KAAK,MAAM;AAG/B,KAFe,YAAY,WAAW,IAAI,IAAI,YAAY,WAAW,IAAI,CAGvE,QAAO;AAMT,QAFsB,KAAK,SAAS,IAAI,IAAI,CAAC,YAAY,WAAW,IAAI,GAEjD,sCAAsC;;;;;;AAO/D,IAAM,mBAAmB,UAA2B;CAClD,MAAM,SAAS,OAAO;AAGtB,KAAI,WAAW,SACb,QAAO;AAET,KAAI,WAAW,SACb,QAAO;AAET,KAAI,WAAW,UACb,QAAO;AAET,KAAI,UAAU,KACZ,QAAO;AAET,KAAI,MAAM,QAAQ,MAAM,CACtB,QAAO;AAET,KAAI,WAAW,SACb,QAAO;AAIT,QAAO;;;;;;AAOT,IAAM,oBACJ,iBACA,SACA,eACsB;CACtB,MAAM,cAAc,MAAM,QAAQ,gBAAgB,GAC9C,gBAAgB,KAAK,EAAE,KAAK,aAAa;EACvC,MAAM;EACN,IAAI;EACJ,QAAQ,EAAE,MAAM,gBAAgB,MAAM,EAAE;EACxC,UAAU,GACP,aAAa,EAAE,OAAO,EACxB;EACF,EAAE,GACH,EAAE;CAEN,MAAM,eAAe,OAAO,QAAQ,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,YAAY;EACxE,MAAM;EACN,IAAI;EACJ,QAAQ,EAAE,MAAM,gBAAgB,MAAM,EAAE;EACxC,UAAU,GACP,aAAa,EAAE,OAAO,EACxB;EACF,EAAE;AAEH,QAAO,CAAC,GAAG,aAAa,GAAG,aAAa;;;;;;AAO1C,IAAM,2BAA2B,SAAmC;AAKlE,QAAO;EACL,MAAM;EACN,YANiB,OAAO,YACxB,OAAO,QAAQ,KAAK,CAAC,KAAK,CAAC,KAAK,WAAW,CAAC,KAAK,EAAE,MAAM,gBAAgB,MAAM,EAAE,CAAiB,CAAC,CACpG;EAKA;;;AAIH,IAAM,gBAAgB,QAAgB;AACpC,KAAI;AACF,SAAO,IAAI,IAAI,IAAI,CAAC;SACd;AACN,SAAO;;;;;;;;;;;;;AAcX,IAAa,wBAAwB,MAAc,aAAa,WAAgC;CAG9F,MAAM,EAAE,SAAS,OAAO,KAAK,OAAO,IAAI,UAAU,EAAE,EAAE,UAAU,EAAE,EAAE,kBAAkB,EAAE,KAFrE,iBAAiB,KAAK;CAIzC,MAAM,OAAO,aAAa,IAAI;CAC9B,MAAM,cAAc,kBAAkB,MAAM,QAAQ;CACpD,MAAM,kBAAkB,OAAO,qBAAqB,KAAK,GAAG,EAAE;CAE9D,MAAM,aAAa,iBAAiB,iBAAiB,SAAS,WAAW;CAEzE,MAAM,gBAAgC,QAAQ,KAAK,YAAY,EAC7D,KAAK,QACN,EAAE;AAEH,QAAO;EACL;EACA;EACA,WAAW;GACT;GACA,aAAa;IACX,SAAS,GACN,cAAc;KACb,QAAQ,wBAAwB,gBAAgB;KAChD,UAAU,GACP,aAAa,EAAE,OAAO,iBAAiB,EACzC;KACF,EACF;IACD,kCAAkC,GAC/B,aAAa,aACf;IACF;GACD,SAAS,cAAc,SAAS,gBAAgB,KAAA;GACjD;EACF"}
@@ -1,8 +1,8 @@
1
- import type { RequestMethod } from '@scalar/oas-utils/entities/spec';
1
+ import type { HttpMethod } from '@scalar/helpers/http/http-methods';
2
2
  /** Parse and normalize a curl command */
3
3
  export declare function parseCurlCommand(curlCommand: string): {
4
4
  url: string;
5
- method?: RequestMethod;
5
+ method?: HttpMethod;
6
6
  headers?: Record<string, string>;
7
7
  body?: string;
8
8
  queryParameters?: Array<{
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-curl.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/helpers/parse-curl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAInE,yCAAyC;AACzC,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM;SAW3C,MAAM;aACF,UAAU;cACT,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;WACzB,MAAM;sBACK,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;cAC7C,MAAM,EAAE;EA6CrB"}
@@ -1,6 +1,6 @@
1
1
  import { encode } from "js-base64";
2
2
  import { parse } from "shell-quote";
3
- //#region src/libs/parse-curl.ts
3
+ //#region src/v2/features/command-palette/helpers/parse-curl.ts
4
4
  /** Parse and normalize a curl command */
5
5
  function parseCurlCommand(curlCommand) {
6
6
  const args = parse(curlCommand).map((arg) => {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-curl.js","names":[],"sources":["../../../../../src/v2/features/command-palette/helpers/parse-curl.ts"],"sourcesContent":["import type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport { encode } from 'js-base64'\nimport { parse as parseShellCommand } from 'shell-quote'\n\n/** Parse and normalize a curl command */\nexport function parseCurlCommand(curlCommand: string) {\n const args = parseShellCommand(curlCommand)\n .map((arg) => {\n if (typeof arg === 'object' && 'op' in arg && arg.op === 'glob') {\n return arg.pattern.trim()\n }\n return typeof arg === 'string' ? arg.trim() : arg\n })\n .filter((arg) => arg !== '')\n\n const result: {\n url: string\n method?: HttpMethod\n headers?: Record<string, string>\n body?: string\n queryParameters?: Array<{ key: string; value: string }>\n servers?: string[]\n } = { url: '' }\n\n const iterator = args[Symbol.iterator]()\n let arg = iterator.next().value\n\n while (arg) {\n if (arg === '-X' || arg === '--request') {\n // Extract method e.g curl -X POST\n parseMethod(iterator as Iterator<string>, result)\n } else if (arg === '--url') {\n // Extract URL e.g curl https://example.com\n parseUrl(iterator as Iterator<string>, result)\n } else if (arg === '-H' || arg === '--header') {\n // Extract headers e.g -H 'Content-Type: application/json'\n parseHeader(iterator as Iterator<string>, result)\n } else if (\n arg === '--data' ||\n arg === '-d' ||\n arg === '--data-raw' ||\n arg === '--data-urlencode' ||\n arg === '--data-binary' ||\n arg === '--data-ascii'\n ) {\n parseData(iterator as Iterator<string>, result, curlCommand)\n } else if (typeof arg === 'string' && !result.url && (arg.startsWith('http') || arg.startsWith('www.'))) {\n // Extract URL e.g curl https://example.com\n parseUrl([arg][Symbol.iterator]() as Iterator<string>, result)\n } else if (arg === '-P') {\n // Extract path variables e.g -P 'foo=bar'\n parsePathVariables(iterator as Iterator<string>, result)\n } else if (typeof arg === 'string' && arg.toLowerCase().includes('content-type')) {\n // Extract Content-Type header e.g -H 'Content-Type: application/json'\n parseContentType(arg, result)\n } else if (arg === '-u' || arg === '--user') {\n // Extract Authorization header e.g -u 'username:password'\n parseAuth(iterator as Iterator<string>, result)\n } else if (arg === '-b' || arg === '--cookie') {\n // Extract Cookie header e.g -b 'foo=bar'\n parseCookie(iterator as Iterator<string>, result)\n }\n arg = iterator.next().value\n }\n\n return result\n}\n\n/** Get the method from a curl command */\nfunction parseMethod(iterator: Iterator<string>, result: any) {\n result.method = iterator.next().value.toLowerCase()\n}\n\n/** Get the URL from a curl command */\nfunction parseUrl(iterator: Iterator<string>, result: any) {\n const url = new URL(iterator.next().value.replace(/['\"]/g, ''))\n result.servers = [url.origin]\n result.path = url.pathname !== '/' ? url.pathname : ''\n result.url = result.servers[0] + result.path\n\n // Merge existing query parameters with those from the URL\n const urlQueryParameters = parseQueryParameters(url.search)\n result.queryParameters = result.queryParameters\n ? [...result.queryParameters, ...urlQueryParameters]\n : urlQueryParameters\n}\n\n/** Get the headers from a curl command */\nfunction parseHeader(iterator: Iterator<string>, result: any) {\n const header = iterator.next().value.split(/:(.*)/)\n result.headers = result.headers || {}\n if (header[1] !== undefined) {\n result.headers[header[0].trim()] = header[1].trim()\n } else {\n result.headers[header[0].trim()] = ''\n }\n}\n\n/** Get the {query} parameters from a curl command */\nfunction parsePathVariables(iterator: Iterator<string>, result: any) {\n const param = iterator.next().value.replace(/['\"]/g, '').split('=')\n result.pathVariables = result.pathVariables || {}\n if (param[1] !== undefined) {\n result.pathVariables[param[0].trim()] = param[1].trim()\n } else {\n result.pathVariables[param[0].trim()] = ''\n }\n}\n\n/** Get the ?query=parameters from a curl command */\nfunction parseQueryParameters(url: string) {\n const queryParameters: Array<{ key: string; value: string }> = []\n // Base URL is required for relative URLs\n const urlObj = new URL(url, 'http://example.com')\n\n urlObj.searchParams.forEach((value, key) => {\n queryParameters.push({ key, value })\n })\n\n return queryParameters\n}\n\n/** Get the Content-Type header from a curl command */\nfunction parseContentType(arg: string, result: any) {\n const header = arg.replace(/['\"]/g, '').split(/:(.+)/)\n result.headers = result.headers || {}\n\n if (!header[0]) {\n return\n }\n\n if (header[1] !== undefined) {\n result.headers[header[0].trim()] = header[1].trim()\n } else {\n result.headers[header[0].trim()] = ''\n }\n}\n\n/** Get the Authorization header from a curl command */\nfunction parseAuth(iterator: Iterator<string>, result: any) {\n const auth = iterator.next().value\n\n try {\n const encodedAuth = encode(auth)\n\n result.headers = result.headers || {}\n\n result.headers['Authorization'] = `Basic ${encodedAuth}`\n } catch (error) {\n console.warn('Could not base64 encode these HTTP basic auth credentials:', auth, error)\n }\n}\n\n/** Get the Cookie header from a curl command */\nfunction parseCookie(iterator: Iterator<string>, result: any) {\n const cookie = iterator.next().value\n result.headers = result.headers || {}\n if (result.headers['Cookie']) {\n result.headers['Cookie'] += `; ${cookie}`\n } else {\n result.headers['Cookie'] = cookie.replace(/;$/, '') // Remove trailing semicolon if present\n }\n}\n\n/** Parse data from a curl command */\nfunction parseData(iterator: Iterator<string>, result: any, curlCommand: string) {\n const nextArg = iterator.next().value\n if (typeof nextArg === 'string') {\n if (nextArg.startsWith('@')) {\n // Mock reading data from file\n result.body = ''\n } else {\n result.body = nextArg\n }\n // Parse query parameters from body if URL is not present\n if (!result.url || curlCommand.includes('-G')) {\n const newQueryParams = parseQueryParameters(`?${result.body}`)\n result.queryParameters = result.queryParameters ? [...result.queryParameters, ...newQueryParams] : newQueryParams\n }\n }\n}\n"],"mappings":"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"}
@@ -1,5 +1,5 @@
1
- import CommandPaletteExample_default from "../components/CommandPaletteExample.vue.js";
2
1
  import CommandPaletteImport_default from "../components/CommandPaletteImport.vue.js";
2
+ import CommandPaletteExample_default from "../components/CommandPaletteExample.vue.js";
3
3
  import CommandPaletteImportCurl_default from "../components/CommandPaletteImportCurl.vue.js";
4
4
  import CommandPaletteImportPostman_default from "../components/CommandPaletteImportPostman.vue.js";
5
5
  import CommandPaletteOpenApiDocument_default from "../components/CommandPaletteOpenApiDocument.vue.js";
@@ -1,3 +1,5 @@
1
+ export { default as CommandActionForm } from './components/CommandActionForm.vue.js';
2
+ export { default as CommandActionInput } from './components/CommandActionInput.vue.js';
1
3
  export { default as CommandPaletteImport } from './components/CommandPaletteImport.vue.js';
2
4
  export { default as TheCommandPalette } from './TheCommandPalette.vue.js';
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/command-palette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AACvF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/command-palette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,oCAAoC,CAAA;AACjF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AACvF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -1,3 +1,5 @@
1
+ import CommandActionForm_default from "./components/CommandActionForm.vue.js";
2
+ import CommandActionInput_default from "./components/CommandActionInput.vue.js";
1
3
  import CommandPaletteImport_default from "./components/CommandPaletteImport.vue.js";
2
4
  import TheCommandPalette_default from "./TheCommandPalette.vue.js";
3
- export { CommandPaletteImport_default as CommandPaletteImport, TheCommandPalette_default as TheCommandPalette };
5
+ export { CommandActionForm_default as CommandActionForm, CommandActionInput_default as CommandActionInput, CommandPaletteImport_default as CommandPaletteImport, TheCommandPalette_default as TheCommandPalette };
@@ -1,5 +1,5 @@
1
1
  import openapi_3_1_schema_default from "../schemas/openapi-3.1-schema.json.js";
2
- import * as monaco from "monaco-editor/esm/vs/editor/editor.api.js";
2
+ import * as monaco from "monaco-editor";
3
3
  import { configureMonacoYaml } from "monaco-yaml";
4
4
  //#region src/v2/features/editor/helpers/configure-language-support.ts
5
5
  var OPENAPI_JSON_SCHEMA_URI = "inmemory://model/scalar/openapi-json-schema";
@@ -9,9 +9,9 @@ var OPENAPI_JSON_SCHEMA_URI = "inmemory://model/scalar/openapi-json-schema";
9
9
  * @param globPattern - The glob pattern to match the files to configure language support for
10
10
  */
11
11
  var configureJson = (globPattern) => {
12
- const defaults = monaco.languages.json.jsonDefaults;
12
+ const defaults = monaco.json.jsonDefaults;
13
13
  const current = defaults.diagnosticsOptions;
14
- const schemas = [...(current.schemas ?? []).filter((s) => s.uri !== OPENAPI_JSON_SCHEMA_URI), {
14
+ const schemas = [...(current.schemas ?? []).filter((schema) => schema.uri !== OPENAPI_JSON_SCHEMA_URI), {
15
15
  uri: OPENAPI_JSON_SCHEMA_URI,
16
16
  fileMatch: [globPattern],
17
17
  schema: openapi_3_1_schema_default
@@ -1 +1 @@
1
- {"version":3,"file":"configure-language-support.js","names":[],"sources":["../../../../../src/v2/features/editor/helpers/configure-language-support.ts"],"sourcesContent":["import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js'\nimport { configureMonacoYaml } from 'monaco-yaml'\n\nimport openApiJsonSchema from './../schemas/openapi-3.1-schema.json'\n\nconst OPENAPI_JSON_SCHEMA_URI = 'inmemory://model/scalar/openapi-json-schema'\n\n/**\n * Configures JSON language support for the given model URI\n *\n * @param globPattern - The glob pattern to match the files to configure language support for\n */\nexport const configureJson = (globPattern: string): void => {\n const defaults = monaco.languages.json.jsonDefaults\n const current = defaults.diagnosticsOptions\n\n const existingSchemas = current.schemas ?? []\n const schemas = [\n ...existingSchemas.filter((s) => s.uri !== OPENAPI_JSON_SCHEMA_URI),\n {\n uri: OPENAPI_JSON_SCHEMA_URI,\n fileMatch: [globPattern],\n schema: openApiJsonSchema,\n },\n ]\n\n defaults.setDiagnosticsOptions({\n ...current,\n validate: true,\n enableSchemaRequest: false,\n schemas,\n })\n}\n\n/**\n * Configures YAML language support for the given model URI\n *\n * @param globPattern - The glob pattern to match the files to configure language support for\n */\nexport const configureYaml = (globPattern: string): void => {\n configureMonacoYaml(monaco, {\n enableSchemaRequest: false,\n validate: true,\n format: true,\n completion: true,\n hover: true,\n schemas: [\n {\n // If YAML file is opened matching this glob\n fileMatch: [globPattern],\n schema: openApiJsonSchema,\n uri: OPENAPI_JSON_SCHEMA_URI,\n },\n ],\n })\n}\n"],"mappings":";;;;AAKA,IAAM,0BAA0B;;;;;;AAOhC,IAAa,iBAAiB,gBAA8B;CAC1D,MAAM,WAAW,OAAO,UAAU,KAAK;CACvC,MAAM,UAAU,SAAS;CAGzB,MAAM,UAAU,CACd,IAFsB,QAAQ,WAAW,EAAE,EAExB,QAAQ,MAAM,EAAE,QAAQ,wBAAwB,EACnE;EACE,KAAK;EACL,WAAW,CAAC,YAAY;EACxB,QAAQ;EACT,CACF;AAED,UAAS,sBAAsB;EAC7B,GAAG;EACH,UAAU;EACV,qBAAqB;EACrB;EACD,CAAC;;;;;;;AAQJ,IAAa,iBAAiB,gBAA8B;AAC1D,qBAAoB,QAAQ;EAC1B,qBAAqB;EACrB,UAAU;EACV,QAAQ;EACR,YAAY;EACZ,OAAO;EACP,SAAS,CACP;GAEE,WAAW,CAAC,YAAY;GACxB,QAAQ;GACR,KAAK;GACN,CACF;EACF,CAAC"}
1
+ {"version":3,"file":"configure-language-support.js","names":[],"sources":["../../../../../src/v2/features/editor/helpers/configure-language-support.ts"],"sourcesContent":["import * as monaco from 'monaco-editor'\nimport { configureMonacoYaml } from 'monaco-yaml'\n\nimport openApiJsonSchema from './../schemas/openapi-3.1-schema.json'\n\nconst OPENAPI_JSON_SCHEMA_URI = 'inmemory://model/scalar/openapi-json-schema'\n\n/**\n * Configures JSON language support for the given model URI\n *\n * @param globPattern - The glob pattern to match the files to configure language support for\n */\nexport const configureJson = (globPattern: string): void => {\n const defaults = monaco.json.jsonDefaults\n const current = defaults.diagnosticsOptions\n\n const existingSchemas = current.schemas ?? []\n const schemas = [\n ...existingSchemas.filter((schema) => schema.uri !== OPENAPI_JSON_SCHEMA_URI),\n {\n uri: OPENAPI_JSON_SCHEMA_URI,\n fileMatch: [globPattern],\n schema: openApiJsonSchema,\n },\n ]\n\n defaults.setDiagnosticsOptions({\n ...current,\n validate: true,\n enableSchemaRequest: false,\n schemas,\n })\n}\n\n/**\n * Configures YAML language support for the given model URI\n *\n * @param globPattern - The glob pattern to match the files to configure language support for\n */\nexport const configureYaml = (globPattern: string): void => {\n configureMonacoYaml(monaco, {\n enableSchemaRequest: false,\n validate: true,\n format: true,\n completion: true,\n hover: true,\n schemas: [\n {\n // If YAML file is opened matching this glob\n fileMatch: [globPattern],\n schema: openApiJsonSchema,\n uri: OPENAPI_JSON_SCHEMA_URI,\n },\n ],\n })\n}\n"],"mappings":";;;;AAKA,IAAM,0BAA0B;;;;;;AAOhC,IAAa,iBAAiB,gBAA8B;CAC1D,MAAM,WAAW,OAAO,KAAK;CAC7B,MAAM,UAAU,SAAS;CAGzB,MAAM,UAAU,CACd,IAFsB,QAAQ,WAAW,EAAE,EAExB,QAAQ,WAAW,OAAO,QAAQ,wBAAwB,EAC7E;EACE,KAAK;EACL,WAAW,CAAC,YAAY;EACxB,QAAQ;EACT,CACF;AAED,UAAS,sBAAsB;EAC7B,GAAG;EACH,UAAU;EACV,qBAAqB;EACrB;EACD,CAAC;;;;;;;AAQJ,IAAa,iBAAiB,gBAA8B;AAC1D,qBAAoB,QAAQ;EAC1B,qBAAqB;EACrB,UAAU;EACV,QAAQ;EACR,YAAY;EACZ,OAAO;EACP,SAAS,CACP;GAEE,WAAW,CAAC,YAAY;GACxB,QAAQ;GACR,KAAK;GACN,CACF;EACF,CAAC"}
@@ -10,5 +10,5 @@ import type { JsonPath } from './json-ast.js';
10
10
  * @param path - The JSON path to locate the AST node.
11
11
  * @returns A promise resolving to the AST node at the path, or null if not found.
12
12
  */
13
- export declare const getJsonAstNodeFromPath: (model: monaco.editor.ITextModel, path: JsonPath) => Promise<monaco.languages.json.ASTNode | null>;
13
+ export declare const getJsonAstNodeFromPath: (model: monaco.editor.ITextModel, path: JsonPath) => Promise<monaco.json.ASTNode | null>;
14
14
  //# sourceMappingURL=get-json-ast-node-from-path.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-json-ast-node-from-path.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/features/editor/helpers/json/get-json-ast-node-from-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAG1C;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,EAC/B,MAAM,QAAQ,KACb,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAW9C,CAAA"}
1
+ {"version":3,"file":"get-json-ast-node-from-path.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/features/editor/helpers/json/get-json-ast-node-from-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAG1C;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,EAC/B,MAAM,QAAQ,KACb,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAWpC,CAAA"}
@@ -12,7 +12,7 @@ import * as monaco from "monaco-editor";
12
12
  * @returns A promise resolving to the AST node at the path, or null if not found.
13
13
  */
14
14
  var getJsonAstNodeFromPath = async (model, path) => {
15
- const jsonDocument = await (await (await monaco.languages.json.getWorker())(model.uri)).parseJSONDocument(model.uri.toString());
15
+ const jsonDocument = await (await (await monaco.json.getWorker())(model.uri)).parseJSONDocument(model.uri.toString());
16
16
  if (!jsonDocument?.root) return null;
17
17
  return getJsonAstNodeAtPath(jsonDocument.root, path) ?? null;
18
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"get-json-ast-node-from-path.js","names":[],"sources":["../../../../../../src/v2/features/editor/helpers/json/get-json-ast-node-from-path.ts"],"sourcesContent":["import * as monaco from 'monaco-editor'\n\nimport type { JsonPath } from './json-ast'\nimport { getJsonAstNodeAtPath } from './json-ast'\n\n/**\n * Retrieves a JSON AST node from a Monaco editor model at the specified JSON path.\n *\n * Utilizes Monaco's JSON worker to parse the document and returns the AST node\n * located at the given path, or null if not found.\n *\n * @param model - The Monaco editor text model representing the JSON document.\n * @param path - The JSON path to locate the AST node.\n * @returns A promise resolving to the AST node at the path, or null if not found.\n */\nexport const getJsonAstNodeFromPath = async (\n model: monaco.editor.ITextModel,\n path: JsonPath,\n): Promise<monaco.languages.json.ASTNode | null> => {\n const worker = await monaco.languages.json.getWorker()\n const jsonWorker = await worker(model.uri)\n\n // Monaco's JSON worker keeps an internal (incremental) AST; no JSON.parse needed.\n const jsonDocument = await jsonWorker.parseJSONDocument(model.uri.toString())\n if (!jsonDocument?.root) {\n return null\n }\n\n return getJsonAstNodeAtPath(jsonDocument.root, path) ?? null\n}\n"],"mappings":";;;;;;;;;;;;;AAeA,IAAa,yBAAyB,OACpC,OACA,SACkD;CAKlD,MAAM,eAAe,OAHF,OADJ,MAAM,OAAO,UAAU,KAAK,WAAW,EACtB,MAAM,IAAI,EAGJ,kBAAkB,MAAM,IAAI,UAAU,CAAC;AAC7E,KAAI,CAAC,cAAc,KACjB,QAAO;AAGT,QAAO,qBAAqB,aAAa,MAAM,KAAK,IAAI"}
1
+ {"version":3,"file":"get-json-ast-node-from-path.js","names":[],"sources":["../../../../../../src/v2/features/editor/helpers/json/get-json-ast-node-from-path.ts"],"sourcesContent":["import * as monaco from 'monaco-editor'\n\nimport type { JsonPath } from './json-ast'\nimport { getJsonAstNodeAtPath } from './json-ast'\n\n/**\n * Retrieves a JSON AST node from a Monaco editor model at the specified JSON path.\n *\n * Utilizes Monaco's JSON worker to parse the document and returns the AST node\n * located at the given path, or null if not found.\n *\n * @param model - The Monaco editor text model representing the JSON document.\n * @param path - The JSON path to locate the AST node.\n * @returns A promise resolving to the AST node at the path, or null if not found.\n */\nexport const getJsonAstNodeFromPath = async (\n model: monaco.editor.ITextModel,\n path: JsonPath,\n): Promise<monaco.json.ASTNode | null> => {\n const worker = await monaco.json.getWorker()\n const jsonWorker = await worker(model.uri)\n\n // Monaco's JSON worker keeps an internal (incremental) AST; no JSON.parse needed.\n const jsonDocument = await jsonWorker.parseJSONDocument(model.uri.toString())\n if (!jsonDocument?.root) {\n return null\n }\n\n return getJsonAstNodeAtPath(jsonDocument.root, path) ?? null\n}\n"],"mappings":";;;;;;;;;;;;;AAeA,IAAa,yBAAyB,OACpC,OACA,SACwC;CAKxC,MAAM,eAAe,OAHF,OADJ,MAAM,OAAO,KAAK,WAAW,EACZ,MAAM,IAAI,EAGJ,kBAAkB,MAAM,IAAI,UAAU,CAAC;AAC7E,KAAI,CAAC,cAAc,KACjB,QAAO;AAGT,QAAO,qBAAqB,aAAa,MAAM,KAAK,IAAI"}
@@ -8,5 +8,5 @@ export type JsonPath = readonly (string | number)[];
8
8
  * @param path - The path to traverse within the AST, as an array of keys/indices.
9
9
  * @returns The AST node at the specified path, or undefined if not found.
10
10
  */
11
- export declare const getJsonAstNodeAtPath: (node: monaco.languages.json.ASTNode | undefined, path: JsonPath) => monaco.languages.json.ASTNode | undefined;
11
+ export declare const getJsonAstNodeAtPath: (node: monaco.json.ASTNode | undefined, path: JsonPath) => monaco.json.ASTNode | undefined;
12
12
  //# sourceMappingURL=json-ast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"json-ast.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/features/editor/helpers/json/json-ast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAE5C,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;AAEnD;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAC/B,MAAM,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,GAAG,SAAS,EAC/C,MAAM,QAAQ,KACb,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,GAAG,SAkClC,CAAA"}
1
+ {"version":3,"file":"json-ast.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/features/editor/helpers/json/json-ast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAE5C,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;AAEnD;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAC/B,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG,SAAS,EACrC,MAAM,QAAQ,KACb,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG,SAkCxB,CAAA"}
@@ -13,7 +13,7 @@ var getJsonAstNodeAtPath = (node, path) => {
13
13
  if (!current) return;
14
14
  if (current.type === "object") {
15
15
  const key = String(segment);
16
- current = current.properties.find((p) => p.keyNode.value === key)?.valueNode;
16
+ current = current.properties.find((property) => property.keyNode.value === key)?.valueNode;
17
17
  continue;
18
18
  }
19
19
  if (current.type === "array") {
@@ -1 +1 @@
1
- {"version":3,"file":"json-ast.js","names":[],"sources":["../../../../../../src/v2/features/editor/helpers/json/json-ast.ts"],"sourcesContent":["import type * as monaco from 'monaco-editor'\n\nexport type JsonPath = readonly (string | number)[]\n\n/**\n * Traverses the AST of a JSON document to find the node at the provided JsonPath.\n * Returns undefined if the path does not exist in the AST.\n *\n * @param node - The root AST node to begin traversal from.\n * @param path - The path to traverse within the AST, as an array of keys/indices.\n * @returns The AST node at the specified path, or undefined if not found.\n */\nexport const getJsonAstNodeAtPath = (\n node: monaco.languages.json.ASTNode | undefined,\n path: JsonPath,\n): monaco.languages.json.ASTNode | undefined => {\n let current = node\n\n for (const segment of path) {\n if (!current) {\n // Path does not exist in the AST.\n return undefined\n }\n\n if (current.type === 'object') {\n // Traverse object properties using the segment as a key.\n const key = String(segment)\n const prop = current.properties.find((p) => p.keyNode.value === key)\n current = prop?.valueNode\n continue\n }\n\n if (current.type === 'array') {\n // Traverse array items using the segment as an index.\n const index = typeof segment === 'number' ? segment : Number.parseInt(String(segment), 10)\n if (!Number.isFinite(index) || index < 0 || index >= current.items.length) {\n // Invalid index or out-of-bounds.\n return undefined\n }\n current = current.items[index]\n continue\n }\n\n // If current node can't have children referenced by the path, return undefined.\n return undefined\n }\n\n // Return the found node or undefined if not found.\n return current\n}\n"],"mappings":";;;;;;;;;AAYA,IAAa,wBACX,MACA,SAC8C;CAC9C,IAAI,UAAU;AAEd,MAAK,MAAM,WAAW,MAAM;AAC1B,MAAI,CAAC,QAEH;AAGF,MAAI,QAAQ,SAAS,UAAU;GAE7B,MAAM,MAAM,OAAO,QAAQ;AAE3B,aADa,QAAQ,WAAW,MAAM,MAAM,EAAE,QAAQ,UAAU,IAAI,EACpD;AAChB;;AAGF,MAAI,QAAQ,SAAS,SAAS;GAE5B,MAAM,QAAQ,OAAO,YAAY,WAAW,UAAU,OAAO,SAAS,OAAO,QAAQ,EAAE,GAAG;AAC1F,OAAI,CAAC,OAAO,SAAS,MAAM,IAAI,QAAQ,KAAK,SAAS,QAAQ,MAAM,OAEjE;AAEF,aAAU,QAAQ,MAAM;AACxB;;AAIF;;AAIF,QAAO"}
1
+ {"version":3,"file":"json-ast.js","names":[],"sources":["../../../../../../src/v2/features/editor/helpers/json/json-ast.ts"],"sourcesContent":["import type * as monaco from 'monaco-editor'\n\nexport type JsonPath = readonly (string | number)[]\n\n/**\n * Traverses the AST of a JSON document to find the node at the provided JsonPath.\n * Returns undefined if the path does not exist in the AST.\n *\n * @param node - The root AST node to begin traversal from.\n * @param path - The path to traverse within the AST, as an array of keys/indices.\n * @returns The AST node at the specified path, or undefined if not found.\n */\nexport const getJsonAstNodeAtPath = (\n node: monaco.json.ASTNode | undefined,\n path: JsonPath,\n): monaco.json.ASTNode | undefined => {\n let current = node\n\n for (const segment of path) {\n if (!current) {\n // Path does not exist in the AST.\n return undefined\n }\n\n if (current.type === 'object') {\n // Traverse object properties using the segment as a key.\n const key = String(segment)\n const prop = current.properties.find((property) => property.keyNode.value === key)\n current = prop?.valueNode\n continue\n }\n\n if (current.type === 'array') {\n // Traverse array items using the segment as an index.\n const index = typeof segment === 'number' ? segment : Number.parseInt(String(segment), 10)\n if (!Number.isFinite(index) || index < 0 || index >= current.items.length) {\n // Invalid index or out-of-bounds.\n return undefined\n }\n current = current.items[index]\n continue\n }\n\n // If current node can't have children referenced by the path, return undefined.\n return undefined\n }\n\n // Return the found node or undefined if not found.\n return current\n}\n"],"mappings":";;;;;;;;;AAYA,IAAa,wBACX,MACA,SACoC;CACpC,IAAI,UAAU;AAEd,MAAK,MAAM,WAAW,MAAM;AAC1B,MAAI,CAAC,QAEH;AAGF,MAAI,QAAQ,SAAS,UAAU;GAE7B,MAAM,MAAM,OAAO,QAAQ;AAE3B,aADa,QAAQ,WAAW,MAAM,aAAa,SAAS,QAAQ,UAAU,IAAI,EAClE;AAChB;;AAGF,MAAI,QAAQ,SAAS,SAAS;GAE5B,MAAM,QAAQ,OAAO,YAAY,WAAW,UAAU,OAAO,SAAS,OAAO,QAAQ,EAAE,GAAG;AAC1F,OAAI,CAAC,OAAO,SAAS,MAAM,IAAI,QAAQ,KAAK,SAAS,QAAQ,MAAM,OAEjE;AAEF,aAAU,QAAQ,MAAM;AACxB;;AAIF;;AAIF,QAAO"}
@@ -2,7 +2,7 @@
2
2
  * Maps a comma-separated selector list to the theme modes it applies to.
3
3
  * Only **exact** `.light-mode` or `.dark-mode` selectors match (no compound selectors like `.light-mode .foo`).
4
4
  */
5
- export declare const getColorModesFromSelectors: (text: string) => ("dark" | "light")[];
5
+ export declare const getColorModesFromSelectors: (text: string) => ("light" | "dark")[];
6
6
  /**
7
7
  * Parses a single custom property value from the stylesheet into a normalized form:
8
8
  * - `#RRGGBB` / `#RRGGBBAA` (uppercase)
@@ -1 +1 @@
1
- {"version":3,"file":"use-editor-markers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/editor/hooks/use-editor-markers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,2CAA2C,CAAA;AACnE,OAAO,EAAE,KAAK,gBAAgB,EAAmD,MAAM,KAAK,CAAA;AAE5F,eAAO,MAAM,gBAAgB,GAAI,WAAW,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,qBAAqB,GAAG,SAAS,CAAC;;;;;;;;;;;sBAkD0iJ,CAAC;yBAA2B,CAAC;oBAA6B,CAAC;qBAA8B,CAAC;wBAAiC,CAAC;;;;;;;;;;;;;;;;0BAA5H,CAAC;6BAA2B,CAAC;wBAA6B,CAAC;yBAA8B,CAAC;4BAAiC,CAAC;;;;;;;;;;;;;;;;;;;;;;0BAA5H,CAAC;6BAA2B,CAAC;wBAA6B,CAAC;yBAA8B,CAAC;4BAAiC,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAA5H,CAAC;yBAA2B,CAAC;oBAA6B,CAAC;qBAA8B,CAAC;wBAAiC,CAAC;;;;;;;;;;;;;;;;0BAA5H,CAAC;6BAA2B,CAAC;wBAA6B,CAAC;yBAA8B,CAAC;4BAAiC,CAAC;;;;;;;;;;;;;;;;;;;;;;0BAA5H,CAAC;6BAA2B,CAAC;wBAA6B,CAAC;yBAA8B,CAAC;4BAAiC,CAAC;;;;;;;;;;;;;;CADlxJ,CAAA"}
1
+ {"version":3,"file":"use-editor-markers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/editor/hooks/use-editor-markers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,2CAA2C,CAAA;AACnE,OAAO,EAAE,KAAK,gBAAgB,EAAmD,MAAM,KAAK,CAAA;AAE5F,eAAO,MAAM,gBAAgB,GAAI,WAAW,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,qBAAqB,GAAG,SAAS,CAAC;;;;;;;;;;;sBAkDs5H,CAAC;yBAAqB,CAAC;oBAAuB,CAAC;qBAAwB,CAAC;wBAA2B,CAAC;;;;;;;;;;;;;;;;0BAApG,CAAC;6BAAqB,CAAC;wBAAuB,CAAC;yBAAwB,CAAC;4BAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;0BAApG,CAAC;6BAAqB,CAAC;wBAAuB,CAAC;yBAAwB,CAAC;4BAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAApG,CAAC;yBAAqB,CAAC;oBAAuB,CAAC;qBAAwB,CAAC;wBAA2B,CAAC;;;;;;;;;;;;;;;;0BAApG,CAAC;6BAAqB,CAAC;wBAAuB,CAAC;yBAAwB,CAAC;4BAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;0BAApG,CAAC;6BAAqB,CAAC;wBAAuB,CAAC;yBAAwB,CAAC;4BAA2B,CAAC;;;;;;;;;;;;;;CADtmI,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentCreateModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentCreateModal.vue"],"names":[],"mappings":"AAgJA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2EAA2E,CAAA;AAQpH,KAAK,WAAW,GAAG;IACf,YAAY,EAAE,WAAW,CAAC,mBAAmB,CAAC,uBAAuB,CAAC,CAAC,CAAA;IACvE,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAA;IACtC,KAAK,EAAE,UAAU,CAAA;IACjB,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GAAG,cAAc,CAAC;AA4MrB,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"EnvironmentCreateModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentCreateModal.vue"],"names":[],"mappings":"AAkJA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2EAA2E,CAAA;AAUpH,KAAK,WAAW,GAAG;IACf,YAAY,EAAE,WAAW,CAAC,mBAAmB,CAAC,uBAAuB,CAAC,CAAC,CAAA;IACvE,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAA;IACtC,KAAK,EAAE,UAAU,CAAA;IACjB,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GAAG,cAAc,CAAC;AAkNrB,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -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":""}