@scalar/api-client 3.6.0 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (904) hide show
  1. package/CHANGELOG.md +161 -0
  2. package/dist/components/HttpMethod/HttpMethod.vue.js +1 -1
  3. package/dist/components/HttpMethod/index.js +2 -0
  4. package/dist/components/ScalarAsciiArt/ScalarAsciiArt.vue.d.ts.map +1 -0
  5. package/dist/components/{ScalarAsciiArt.vue.js → ScalarAsciiArt/ScalarAsciiArt.vue.js} +3 -3
  6. package/dist/components/ScalarAsciiArt/ScalarAsciiArt.vue.js.map +1 -0
  7. package/dist/components/{ScalarAsciiArt.vue.script.js → ScalarAsciiArt/ScalarAsciiArt.vue.script.js} +1 -1
  8. package/dist/components/ScalarAsciiArt/ScalarAsciiArt.vue.script.js.map +1 -0
  9. package/dist/components/ScalarAsciiArt/index.d.ts +2 -0
  10. package/dist/components/ScalarAsciiArt/index.d.ts.map +1 -0
  11. package/dist/components/ScalarAsciiArt/index.js +2 -0
  12. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +2 -2
  13. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts +2 -2
  14. package/dist/components/Sidebar/index.d.ts +2 -0
  15. package/dist/components/Sidebar/index.d.ts.map +1 -0
  16. package/dist/components/Sidebar/index.js +2 -0
  17. package/dist/components/ViewLayout/index.d.ts +4 -0
  18. package/dist/components/ViewLayout/index.d.ts.map +1 -0
  19. package/dist/components/ViewLayout/index.js +4 -0
  20. package/dist/plugins/posthog/index.d.ts.map +1 -1
  21. package/dist/plugins/posthog/index.js +21 -12
  22. package/dist/plugins/posthog/index.js.map +1 -1
  23. package/dist/plugins/posthog/sanitize-event-payload.d.ts +25 -0
  24. package/dist/plugins/posthog/sanitize-event-payload.d.ts.map +1 -0
  25. package/dist/plugins/posthog/sanitize-event-payload.js +136 -0
  26. package/dist/plugins/posthog/sanitize-event-payload.js.map +1 -0
  27. package/dist/style.css +218 -1638
  28. package/dist/types/index.d.ts +3 -0
  29. package/dist/types/index.d.ts.map +1 -0
  30. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  31. package/dist/v2/blocks/operation-block/OperationBlock.vue.js.map +1 -1
  32. package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js +72 -32
  33. package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js.map +1 -1
  34. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +2 -2
  35. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  36. package/dist/v2/blocks/operation-block/components/Header.vue.js +1 -1
  37. package/dist/v2/blocks/operation-block/components/Header.vue.js.map +1 -1
  38. package/dist/v2/blocks/operation-block/components/Header.vue.script.js +3 -3
  39. package/dist/v2/blocks/operation-block/components/Header.vue.script.js.map +1 -1
  40. package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.js +1 -1
  41. package/dist/v2/blocks/operation-block/index.d.ts +1 -0
  42. package/dist/v2/blocks/operation-block/index.d.ts.map +1 -1
  43. package/dist/v2/blocks/operation-block/index.js +2 -1
  44. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.script.js +1 -1
  45. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +1 -1
  46. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
  47. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +15 -9
  48. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js.map +1 -1
  49. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
  50. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +9 -7
  51. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js.map +1 -1
  52. package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
  53. package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
  54. package/dist/v2/blocks/operation-code-sample/index.js +2 -1
  55. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  56. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  57. package/dist/v2/blocks/request-block/RequestBlock.vue.js.map +1 -1
  58. package/dist/v2/blocks/request-block/RequestBlock.vue.script.js +30 -17
  59. package/dist/v2/blocks/request-block/RequestBlock.vue.script.js.map +1 -1
  60. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  61. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +1 -1
  62. package/dist/v2/blocks/request-block/components/RequestBody.vue.js.map +1 -1
  63. package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js +43 -10
  64. package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js.map +1 -1
  65. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.script.js +2 -2
  66. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +2 -2
  67. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -2
  68. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +4 -2
  69. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  70. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js.map +1 -1
  71. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.script.js +2 -2
  72. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.script.js.map +1 -1
  73. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -1
  74. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js.map +1 -1
  75. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.script.js +4 -1
  76. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.script.js.map +1 -1
  77. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -1
  78. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  79. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +42 -13
  80. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js.map +1 -1
  81. package/dist/v2/blocks/request-block/helpers/create-parameter-rows.d.ts +14 -0
  82. package/dist/v2/blocks/request-block/helpers/create-parameter-rows.d.ts.map +1 -0
  83. package/dist/v2/blocks/request-block/helpers/create-parameter-rows.js +136 -0
  84. package/dist/v2/blocks/request-block/helpers/create-parameter-rows.js.map +1 -0
  85. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +1 -1
  86. package/dist/v2/blocks/response-block/ResponseBlock.vue.script.js +1 -1
  87. package/dist/v2/blocks/response-block/components/ResponseBody.vue.d.ts.map +1 -1
  88. package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +1 -1
  89. package/dist/v2/blocks/response-block/components/ResponseBody.vue.js.map +1 -1
  90. package/dist/v2/blocks/response-block/components/ResponseBody.vue.script.js +12 -10
  91. package/dist/v2/blocks/response-block/components/ResponseBody.vue.script.js.map +1 -1
  92. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts +2 -0
  93. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -1
  94. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js +1 -1
  95. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js.map +1 -1
  96. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.script.js +17 -4
  97. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.script.js.map +1 -1
  98. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts +3 -1
  99. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -1
  100. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +1 -1
  101. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js.map +1 -1
  102. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.script.js +21 -9
  103. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.script.js.map +1 -1
  104. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts +2 -2
  105. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
  106. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
  107. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js.map +1 -1
  108. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.script.js +2 -2
  109. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.script.js.map +1 -1
  110. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -1
  111. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +1 -1
  112. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js.map +1 -1
  113. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.script.js +1 -0
  114. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.script.js.map +1 -1
  115. package/dist/v2/blocks/response-block/helpers/media-types.d.ts +1 -1
  116. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
  117. package/dist/v2/blocks/response-block/helpers/media-types.js +14 -7
  118. package/dist/v2/blocks/response-block/helpers/media-types.js.map +1 -1
  119. package/dist/v2/blocks/response-block/helpers/prettify-jsonc-string.d.ts +6 -0
  120. package/dist/v2/blocks/response-block/helpers/prettify-jsonc-string.d.ts.map +1 -0
  121. package/dist/v2/blocks/response-block/helpers/prettify-jsonc-string.js +22 -0
  122. package/dist/v2/blocks/response-block/helpers/prettify-jsonc-string.js.map +1 -0
  123. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +2 -2
  124. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  125. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
  126. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js.map +1 -1
  127. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js +124 -91
  128. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js.map +1 -1
  129. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.script.js +1 -1
  130. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +2 -2
  131. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +30 -20
  132. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  133. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js.map +1 -1
  134. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js +43 -21
  135. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js.map +1 -1
  136. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts +15 -2
  137. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts.map +1 -1
  138. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +1 -3
  139. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js.map +1 -1
  140. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js +74 -28
  141. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js.map +1 -1
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +30 -20
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
  144. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js.map +1 -1
  145. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js +190 -72
  146. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js.map +1 -1
  147. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  148. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js.map +1 -1
  149. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js +7 -1
  150. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js.map +1 -1
  151. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +26 -10
  152. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  153. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js.map +1 -1
  154. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js +25 -3
  155. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js.map +1 -1
  156. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  157. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +12 -3
  158. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js.map +1 -1
  159. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +1 -0
  160. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -1
  161. package/dist/v2/components/code-input/CodeInput.vue.d.ts +4 -4
  162. package/dist/v2/components/code-input/CodeInput.vue.script.js +1 -1
  163. package/dist/v2/components/code-input/code-variable-widget.js +1 -1
  164. package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +2 -2
  165. package/dist/v2/components/modals/DeleteModal.vue.d.ts +2 -2
  166. package/dist/v2/components/server/ServerDropdown.vue.d.ts +2 -2
  167. package/dist/v2/components/server/ServerDropdown.vue.js.map +1 -1
  168. package/dist/v2/components/server/ServerDropdown.vue.script.js +1 -1
  169. package/dist/v2/components/server/ServerDropdown.vue.script.js.map +1 -1
  170. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  171. package/dist/v2/components/sidebar/Sidebar.vue.js.map +1 -1
  172. package/dist/v2/components/sidebar/Sidebar.vue.script.js +4 -3
  173. package/dist/v2/components/sidebar/Sidebar.vue.script.js.map +1 -1
  174. package/dist/v2/constants.js +1 -1
  175. package/dist/v2/features/command-palette/components/CommandActionForm.vue.d.ts +2 -2
  176. package/dist/v2/features/command-palette/components/CommandActionInput.vue.d.ts +2 -2
  177. package/dist/v2/features/command-palette/index.d.ts +0 -2
  178. package/dist/v2/features/command-palette/index.d.ts.map +1 -1
  179. package/dist/v2/features/command-palette/index.js +1 -3
  180. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +2 -2
  181. package/dist/v2/features/modal/Modal.vue.d.ts +5 -7
  182. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  183. package/dist/v2/features/modal/Modal.vue.js.map +1 -1
  184. package/dist/v2/features/modal/Modal.vue.script.js +3 -3
  185. package/dist/v2/features/modal/Modal.vue.script.js.map +1 -1
  186. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +1 -1
  187. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  188. package/dist/v2/features/modal/helpers/create-api-client-modal.js +8 -3
  189. package/dist/v2/features/modal/helpers/create-api-client-modal.js.map +1 -1
  190. package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts +5 -1
  191. package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts.map +1 -1
  192. package/dist/v2/features/modal/helpers/resolve-route-parameters.js +15 -4
  193. package/dist/v2/features/modal/helpers/resolve-route-parameters.js.map +1 -1
  194. package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts.map +1 -1
  195. package/dist/v2/features/modal/hooks/use-modal-sidebar.js +5 -1
  196. package/dist/v2/features/modal/hooks/use-modal-sidebar.js.map +1 -1
  197. package/dist/v2/features/modal/index.js +1 -1
  198. package/dist/v2/features/modal/modal-events.d.ts.map +1 -1
  199. package/dist/v2/features/modal/modal-events.js +10 -6
  200. package/dist/v2/features/modal/modal-events.js.map +1 -1
  201. package/dist/v2/features/operation/Operation.vue.d.ts +35 -3
  202. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  203. package/dist/v2/features/operation/Operation.vue.js.map +1 -1
  204. package/dist/v2/features/operation/Operation.vue.script.js +1 -9
  205. package/dist/v2/features/operation/Operation.vue.script.js.map +1 -1
  206. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  207. package/dist/v2/helpers/handle-hotkeys.js +4 -0
  208. package/dist/v2/helpers/handle-hotkeys.js.map +1 -1
  209. package/dist/v2/helpers/test-utils.d.ts +2 -0
  210. package/dist/v2/helpers/test-utils.d.ts.map +1 -1
  211. package/dist/v2/helpers/test-utils.js +18 -0
  212. package/dist/v2/helpers/test-utils.js.map +1 -0
  213. package/dist/v2/hooks/index.d.ts +2 -0
  214. package/dist/v2/hooks/index.d.ts.map +1 -0
  215. package/dist/v2/hooks/index.js +2 -0
  216. package/dist/v2/types/options.d.ts +1 -1
  217. package/dist/v2/types/options.d.ts.map +1 -1
  218. package/dist/v2/workspace-events.d.ts.map +1 -1
  219. package/dist/v2/workspace-events.js +2 -0
  220. package/dist/v2/workspace-events.js.map +1 -1
  221. package/dist/vue-styles.css +108 -658
  222. package/package.json +67 -96
  223. package/dist/components/IconSelector.vue.d.ts +0 -27
  224. package/dist/components/IconSelector.vue.d.ts.map +0 -1
  225. package/dist/components/IconSelector.vue.js +0 -7
  226. package/dist/components/IconSelector.vue.js.map +0 -1
  227. package/dist/components/IconSelector.vue.script.js +0 -65
  228. package/dist/components/IconSelector.vue.script.js.map +0 -1
  229. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts +0 -7
  230. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +0 -1
  231. package/dist/components/ImportCollection/IntegrationLogo.vue.js +0 -7
  232. package/dist/components/ImportCollection/IntegrationLogo.vue.js.map +0 -1
  233. package/dist/components/ImportCollection/IntegrationLogo.vue.script.js +0 -50
  234. package/dist/components/ImportCollection/IntegrationLogo.vue.script.js.map +0 -1
  235. package/dist/components/ScalarAsciiArt.vue.d.ts.map +0 -1
  236. package/dist/components/ScalarAsciiArt.vue.js.map +0 -1
  237. package/dist/components/ScalarAsciiArt.vue.script.js.map +0 -1
  238. package/dist/index.d.ts +0 -2
  239. package/dist/index.d.ts.map +0 -1
  240. package/dist/monacoeditorwork/editor.worker.bundle.js +0 -14319
  241. package/dist/monacoeditorwork/json.worker.bundle.js +0 -22098
  242. package/dist/monacoeditorwork/yaml.worker.bundle.js +0 -38414
  243. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +0 -42
  244. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +0 -1
  245. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +0 -61
  246. package/dist/v2/blocks/request-block/helpers/get-default-headers.js.map +0 -1
  247. package/dist/v2/features/app/App.vue.d.ts +0 -75
  248. package/dist/v2/features/app/App.vue.d.ts.map +0 -1
  249. package/dist/v2/features/app/App.vue.js +0 -8
  250. package/dist/v2/features/app/App.vue.js.map +0 -1
  251. package/dist/v2/features/app/App.vue.script.js +0 -282
  252. package/dist/v2/features/app/App.vue.script.js.map +0 -1
  253. package/dist/v2/features/app/app-events.d.ts +0 -20
  254. package/dist/v2/features/app/app-events.d.ts.map +0 -1
  255. package/dist/v2/features/app/app-events.js +0 -254
  256. package/dist/v2/features/app/app-events.js.map +0 -1
  257. package/dist/v2/features/app/app-state.d.ts +0 -156
  258. package/dist/v2/features/app/app-state.d.ts.map +0 -1
  259. package/dist/v2/features/app/app-state.js +0 -717
  260. package/dist/v2/features/app/app-state.js.map +0 -1
  261. package/dist/v2/features/app/components/AppHeader.vue.d.ts +0 -43
  262. package/dist/v2/features/app/components/AppHeader.vue.d.ts.map +0 -1
  263. package/dist/v2/features/app/components/AppHeader.vue.js +0 -7
  264. package/dist/v2/features/app/components/AppHeader.vue.js.map +0 -1
  265. package/dist/v2/features/app/components/AppHeader.vue.script.js +0 -52
  266. package/dist/v2/features/app/components/AppHeader.vue.script.js.map +0 -1
  267. package/dist/v2/features/app/components/AppHeaderActions.vue.d.ts +0 -32
  268. package/dist/v2/features/app/components/AppHeaderActions.vue.d.ts.map +0 -1
  269. package/dist/v2/features/app/components/AppHeaderActions.vue.js +0 -7
  270. package/dist/v2/features/app/components/AppHeaderActions.vue.js.map +0 -1
  271. package/dist/v2/features/app/components/AppHeaderActions.vue.script.js +0 -170
  272. package/dist/v2/features/app/components/AppHeaderActions.vue.script.js.map +0 -1
  273. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +0 -39
  274. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +0 -1
  275. package/dist/v2/features/app/components/AppSidebar.vue.js +0 -9
  276. package/dist/v2/features/app/components/AppSidebar.vue.js.map +0 -1
  277. package/dist/v2/features/app/components/AppSidebar.vue.script.js +0 -470
  278. package/dist/v2/features/app/components/AppSidebar.vue.script.js.map +0 -1
  279. package/dist/v2/features/app/components/CreateVersionModal.vue.d.ts +0 -28
  280. package/dist/v2/features/app/components/CreateVersionModal.vue.d.ts.map +0 -1
  281. package/dist/v2/features/app/components/CreateVersionModal.vue.js +0 -7
  282. package/dist/v2/features/app/components/CreateVersionModal.vue.js.map +0 -1
  283. package/dist/v2/features/app/components/CreateVersionModal.vue.script.js +0 -84
  284. package/dist/v2/features/app/components/CreateVersionModal.vue.script.js.map +0 -1
  285. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts +0 -16
  286. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts.map +0 -1
  287. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +0 -7
  288. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js.map +0 -1
  289. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js +0 -58
  290. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js.map +0 -1
  291. package/dist/v2/features/app/components/DesktopTab.vue.d.ts +0 -27
  292. package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +0 -1
  293. package/dist/v2/features/app/components/DesktopTab.vue.js +0 -9
  294. package/dist/v2/features/app/components/DesktopTab.vue.js.map +0 -1
  295. package/dist/v2/features/app/components/DesktopTab.vue.script.js +0 -121
  296. package/dist/v2/features/app/components/DesktopTab.vue.script.js.map +0 -1
  297. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +0 -14
  298. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +0 -1
  299. package/dist/v2/features/app/components/DesktopTabs.vue.js +0 -7
  300. package/dist/v2/features/app/components/DesktopTabs.vue.js.map +0 -1
  301. package/dist/v2/features/app/components/DesktopTabs.vue.script.js +0 -75
  302. package/dist/v2/features/app/components/DesktopTabs.vue.script.js.map +0 -1
  303. package/dist/v2/features/app/components/DocumentBreadcrumb.vue.d.ts +0 -25
  304. package/dist/v2/features/app/components/DocumentBreadcrumb.vue.d.ts.map +0 -1
  305. package/dist/v2/features/app/components/DocumentBreadcrumb.vue.js +0 -9
  306. package/dist/v2/features/app/components/DocumentBreadcrumb.vue.js.map +0 -1
  307. package/dist/v2/features/app/components/DocumentBreadcrumb.vue.script.js +0 -345
  308. package/dist/v2/features/app/components/DocumentBreadcrumb.vue.script.js.map +0 -1
  309. package/dist/v2/features/app/components/DocumentSyncIndicator.vue.d.ts +0 -16
  310. package/dist/v2/features/app/components/DocumentSyncIndicator.vue.d.ts.map +0 -1
  311. package/dist/v2/features/app/components/PublishDocumentModal.vue.d.ts +0 -77
  312. package/dist/v2/features/app/components/PublishDocumentModal.vue.d.ts.map +0 -1
  313. package/dist/v2/features/app/components/PublishDocumentModal.vue.js +0 -7
  314. package/dist/v2/features/app/components/PublishDocumentModal.vue.js.map +0 -1
  315. package/dist/v2/features/app/components/PublishDocumentModal.vue.script.js +0 -209
  316. package/dist/v2/features/app/components/PublishDocumentModal.vue.script.js.map +0 -1
  317. package/dist/v2/features/app/components/SidebarDocument.vue.d.ts +0 -45
  318. package/dist/v2/features/app/components/SidebarDocument.vue.d.ts.map +0 -1
  319. package/dist/v2/features/app/components/SidebarDocument.vue.js +0 -7
  320. package/dist/v2/features/app/components/SidebarDocument.vue.js.map +0 -1
  321. package/dist/v2/features/app/components/SidebarDocument.vue.script.js +0 -137
  322. package/dist/v2/features/app/components/SidebarDocument.vue.script.js.map +0 -1
  323. package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts +0 -26
  324. package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts.map +0 -1
  325. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +0 -7
  326. package/dist/v2/features/app/components/SidebarItemMenu.vue.js.map +0 -1
  327. package/dist/v2/features/app/components/SidebarItemMenu.vue.script.js +0 -175
  328. package/dist/v2/features/app/components/SidebarItemMenu.vue.script.js.map +0 -1
  329. package/dist/v2/features/app/components/SplashScreen.vue.d.ts +0 -4
  330. package/dist/v2/features/app/components/SplashScreen.vue.d.ts.map +0 -1
  331. package/dist/v2/features/app/components/SplashScreen.vue.js +0 -9
  332. package/dist/v2/features/app/components/SplashScreen.vue.js.map +0 -1
  333. package/dist/v2/features/app/components/SplashScreen.vue.script.js +0 -20
  334. package/dist/v2/features/app/components/SplashScreen.vue.script.js.map +0 -1
  335. package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.d.ts +0 -18
  336. package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.d.ts.map +0 -1
  337. package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.js +0 -9
  338. package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.js.map +0 -1
  339. package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.script.js +0 -136
  340. package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.script.js.map +0 -1
  341. package/dist/v2/features/app/components/index.d.ts +0 -2
  342. package/dist/v2/features/app/components/index.d.ts.map +0 -1
  343. package/dist/v2/features/app/components/index.js +0 -2
  344. package/dist/v2/features/app/helpers/check-version-conflict.d.ts +0 -54
  345. package/dist/v2/features/app/helpers/check-version-conflict.d.ts.map +0 -1
  346. package/dist/v2/features/app/helpers/check-version-conflict.js +0 -82
  347. package/dist/v2/features/app/helpers/check-version-conflict.js.map +0 -1
  348. package/dist/v2/features/app/helpers/compute-version-status.d.ts +0 -45
  349. package/dist/v2/features/app/helpers/compute-version-status.d.ts.map +0 -1
  350. package/dist/v2/features/app/helpers/compute-version-status.js +0 -18
  351. package/dist/v2/features/app/helpers/compute-version-status.js.map +0 -1
  352. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +0 -59
  353. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +0 -1
  354. package/dist/v2/features/app/helpers/create-api-client-app.js +0 -55
  355. package/dist/v2/features/app/helpers/create-api-client-app.js.map +0 -1
  356. package/dist/v2/features/app/helpers/create-draft-registry-document.d.ts +0 -39
  357. package/dist/v2/features/app/helpers/create-draft-registry-document.d.ts.map +0 -1
  358. package/dist/v2/features/app/helpers/create-draft-registry-document.js +0 -64
  359. package/dist/v2/features/app/helpers/create-draft-registry-document.js.map +0 -1
  360. package/dist/v2/features/app/helpers/create-temp-operation.d.ts +0 -14
  361. package/dist/v2/features/app/helpers/create-temp-operation.d.ts.map +0 -1
  362. package/dist/v2/features/app/helpers/create-temp-operation.js +0 -52
  363. package/dist/v2/features/app/helpers/create-temp-operation.js.map +0 -1
  364. package/dist/v2/features/app/helpers/detect-document-conflicts.d.ts +0 -26
  365. package/dist/v2/features/app/helpers/detect-document-conflicts.d.ts.map +0 -1
  366. package/dist/v2/features/app/helpers/detect-document-conflicts.js +0 -27
  367. package/dist/v2/features/app/helpers/detect-document-conflicts.js.map +0 -1
  368. package/dist/v2/features/app/helpers/filter-workspaces.d.ts +0 -49
  369. package/dist/v2/features/app/helpers/filter-workspaces.d.ts.map +0 -1
  370. package/dist/v2/features/app/helpers/filter-workspaces.js +0 -55
  371. package/dist/v2/features/app/helpers/filter-workspaces.js.map +0 -1
  372. package/dist/v2/features/app/helpers/get-route-param.d.ts +0 -7
  373. package/dist/v2/features/app/helpers/get-route-param.d.ts.map +0 -1
  374. package/dist/v2/features/app/helpers/get-route-param.js +0 -12
  375. package/dist/v2/features/app/helpers/get-route-param.js.map +0 -1
  376. package/dist/v2/features/app/helpers/group-workspaces.d.ts +0 -44
  377. package/dist/v2/features/app/helpers/group-workspaces.d.ts.map +0 -1
  378. package/dist/v2/features/app/helpers/group-workspaces.js +0 -53
  379. package/dist/v2/features/app/helpers/group-workspaces.js.map +0 -1
  380. package/dist/v2/features/app/helpers/load-registry-document.d.ts +0 -24
  381. package/dist/v2/features/app/helpers/load-registry-document.d.ts.map +0 -1
  382. package/dist/v2/features/app/helpers/load-registry-document.js +0 -47
  383. package/dist/v2/features/app/helpers/load-registry-document.js.map +0 -1
  384. package/dist/v2/features/app/helpers/registry-error-messages.d.ts +0 -23
  385. package/dist/v2/features/app/helpers/registry-error-messages.d.ts.map +0 -1
  386. package/dist/v2/features/app/helpers/registry-error-messages.js +0 -63
  387. package/dist/v2/features/app/helpers/registry-error-messages.js.map +0 -1
  388. package/dist/v2/features/app/helpers/routes.d.ts +0 -184
  389. package/dist/v2/features/app/helpers/routes.d.ts.map +0 -1
  390. package/dist/v2/features/app/helpers/routes.js +0 -153
  391. package/dist/v2/features/app/helpers/routes.js.map +0 -1
  392. package/dist/v2/features/app/helpers/version-status-presentation.d.ts +0 -24
  393. package/dist/v2/features/app/helpers/version-status-presentation.d.ts.map +0 -1
  394. package/dist/v2/features/app/helpers/version-status-presentation.js +0 -43
  395. package/dist/v2/features/app/helpers/version-status-presentation.js.map +0 -1
  396. package/dist/v2/features/app/hooks/use-active-document-version.d.ts +0 -42
  397. package/dist/v2/features/app/hooks/use-active-document-version.d.ts.map +0 -1
  398. package/dist/v2/features/app/hooks/use-active-document-version.js +0 -60
  399. package/dist/v2/features/app/hooks/use-active-document-version.js.map +0 -1
  400. package/dist/v2/features/app/hooks/use-document-filter.d.ts +0 -38
  401. package/dist/v2/features/app/hooks/use-document-filter.d.ts.map +0 -1
  402. package/dist/v2/features/app/hooks/use-document-filter.js +0 -63
  403. package/dist/v2/features/app/hooks/use-document-filter.js.map +0 -1
  404. package/dist/v2/features/app/hooks/use-document-sync.d.ts +0 -126
  405. package/dist/v2/features/app/hooks/use-document-sync.d.ts.map +0 -1
  406. package/dist/v2/features/app/hooks/use-document-sync.js +0 -448
  407. package/dist/v2/features/app/hooks/use-document-sync.js.map +0 -1
  408. package/dist/v2/features/app/hooks/use-document-watcher.d.ts +0 -30
  409. package/dist/v2/features/app/hooks/use-document-watcher.d.ts.map +0 -1
  410. package/dist/v2/features/app/hooks/use-document-watcher.js +0 -168
  411. package/dist/v2/features/app/hooks/use-document-watcher.js.map +0 -1
  412. package/dist/v2/features/app/hooks/use-network-status.d.ts +0 -29
  413. package/dist/v2/features/app/hooks/use-network-status.d.ts.map +0 -1
  414. package/dist/v2/features/app/hooks/use-network-status.js +0 -58
  415. package/dist/v2/features/app/hooks/use-network-status.js.map +0 -1
  416. package/dist/v2/features/app/hooks/use-sidebar-context-menu.d.ts +0 -17258
  417. package/dist/v2/features/app/hooks/use-sidebar-context-menu.d.ts.map +0 -1
  418. package/dist/v2/features/app/hooks/use-sidebar-context-menu.js +0 -107
  419. package/dist/v2/features/app/hooks/use-sidebar-context-menu.js.map +0 -1
  420. package/dist/v2/features/app/hooks/use-sidebar-documents.d.ts +0 -119
  421. package/dist/v2/features/app/hooks/use-sidebar-documents.d.ts.map +0 -1
  422. package/dist/v2/features/app/hooks/use-sidebar-documents.js +0 -219
  423. package/dist/v2/features/app/hooks/use-sidebar-documents.js.map +0 -1
  424. package/dist/v2/features/app/hooks/use-theme.d.ts +0 -56
  425. package/dist/v2/features/app/hooks/use-theme.d.ts.map +0 -1
  426. package/dist/v2/features/app/hooks/use-theme.js +0 -94
  427. package/dist/v2/features/app/hooks/use-theme.js.map +0 -1
  428. package/dist/v2/features/app/hooks/use-version-conflict-check.d.ts +0 -35
  429. package/dist/v2/features/app/hooks/use-version-conflict-check.d.ts.map +0 -1
  430. package/dist/v2/features/app/hooks/use-version-conflict-check.js +0 -62
  431. package/dist/v2/features/app/hooks/use-version-conflict-check.js.map +0 -1
  432. package/dist/v2/features/app/index.d.ts +0 -10
  433. package/dist/v2/features/app/index.d.ts.map +0 -1
  434. package/dist/v2/features/app/index.js +0 -8
  435. package/dist/v2/features/collection/DocumentCollection.vue.d.ts +0 -13
  436. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +0 -1
  437. package/dist/v2/features/collection/DocumentCollection.vue.js +0 -8
  438. package/dist/v2/features/collection/DocumentCollection.vue.js.map +0 -1
  439. package/dist/v2/features/collection/DocumentCollection.vue.script.js +0 -112
  440. package/dist/v2/features/collection/DocumentCollection.vue.script.js.map +0 -1
  441. package/dist/v2/features/collection/OperationCollection.vue.d.ts +0 -6
  442. package/dist/v2/features/collection/OperationCollection.vue.d.ts.map +0 -1
  443. package/dist/v2/features/collection/OperationCollection.vue.js +0 -7
  444. package/dist/v2/features/collection/OperationCollection.vue.js.map +0 -1
  445. package/dist/v2/features/collection/OperationCollection.vue.script.js +0 -95
  446. package/dist/v2/features/collection/OperationCollection.vue.script.js.map +0 -1
  447. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +0 -6
  448. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +0 -1
  449. package/dist/v2/features/collection/WorkspaceCollection.vue.js +0 -7
  450. package/dist/v2/features/collection/WorkspaceCollection.vue.js.map +0 -1
  451. package/dist/v2/features/collection/WorkspaceCollection.vue.script.js +0 -74
  452. package/dist/v2/features/collection/WorkspaceCollection.vue.script.js.map +0 -1
  453. package/dist/v2/features/collection/components/Authentication.vue.d.ts +0 -16
  454. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +0 -1
  455. package/dist/v2/features/collection/components/Authentication.vue.js +0 -9
  456. package/dist/v2/features/collection/components/Authentication.vue.js.map +0 -1
  457. package/dist/v2/features/collection/components/Authentication.vue.script.js +0 -174
  458. package/dist/v2/features/collection/components/Authentication.vue.script.js.map +0 -1
  459. package/dist/v2/features/collection/components/Cookies.vue.d.ts +0 -21
  460. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +0 -1
  461. package/dist/v2/features/collection/components/Cookies.vue.js +0 -7
  462. package/dist/v2/features/collection/components/Cookies.vue.js.map +0 -1
  463. package/dist/v2/features/collection/components/Cookies.vue.script.js +0 -58
  464. package/dist/v2/features/collection/components/Cookies.vue.script.js.map +0 -1
  465. package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.d.ts +0 -12
  466. package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.d.ts.map +0 -1
  467. package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.js +0 -9
  468. package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.js.map +0 -1
  469. package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.script.js +0 -174
  470. package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.script.js.map +0 -1
  471. package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts +0 -16
  472. package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts.map +0 -1
  473. package/dist/v2/features/collection/components/Editor/Editor.vue.js +0 -9
  474. package/dist/v2/features/collection/components/Editor/Editor.vue.js.map +0 -1
  475. package/dist/v2/features/collection/components/Editor/Editor.vue.script.js +0 -361
  476. package/dist/v2/features/collection/components/Editor/Editor.vue.script.js.map +0 -1
  477. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.d.ts +0 -19
  478. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.d.ts.map +0 -1
  479. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js +0 -7
  480. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js.map +0 -1
  481. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.script.js +0 -69
  482. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.script.js.map +0 -1
  483. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.d.ts +0 -16
  484. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.d.ts.map +0 -1
  485. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js +0 -7
  486. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js.map +0 -1
  487. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.script.js +0 -91
  488. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.script.js.map +0 -1
  489. package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.d.ts +0 -12
  490. package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.d.ts.map +0 -1
  491. package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js +0 -22
  492. package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js.map +0 -1
  493. package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.d.ts +0 -11
  494. package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.d.ts.map +0 -1
  495. package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js +0 -17
  496. package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js.map +0 -1
  497. package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.d.ts +0 -7
  498. package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.d.ts.map +0 -1
  499. package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js +0 -17
  500. package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js.map +0 -1
  501. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.d.ts +0 -10
  502. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.d.ts.map +0 -1
  503. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js +0 -34
  504. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js.map +0 -1
  505. package/dist/v2/features/collection/components/Editor/helpers/stringify-document.d.ts +0 -10
  506. package/dist/v2/features/collection/components/Editor/helpers/stringify-document.d.ts.map +0 -1
  507. package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js +0 -18
  508. package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js.map +0 -1
  509. package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.d.ts +0 -15
  510. package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.d.ts.map +0 -1
  511. package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js +0 -36
  512. package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js.map +0 -1
  513. package/dist/v2/features/collection/components/Editor/index.d.ts +0 -2
  514. package/dist/v2/features/collection/components/Editor/index.d.ts.map +0 -1
  515. package/dist/v2/features/collection/components/Editor/index.js +0 -2
  516. package/dist/v2/features/collection/components/Environment.vue.d.ts +0 -21
  517. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +0 -1
  518. package/dist/v2/features/collection/components/Environment.vue.js +0 -7
  519. package/dist/v2/features/collection/components/Environment.vue.js.map +0 -1
  520. package/dist/v2/features/collection/components/Environment.vue.script.js +0 -61
  521. package/dist/v2/features/collection/components/Environment.vue.script.js.map +0 -1
  522. package/dist/v2/features/collection/components/Form.vue.d.ts +0 -29
  523. package/dist/v2/features/collection/components/Form.vue.d.ts.map +0 -1
  524. package/dist/v2/features/collection/components/Form.vue.js +0 -7
  525. package/dist/v2/features/collection/components/Form.vue.js.map +0 -1
  526. package/dist/v2/features/collection/components/Form.vue.script.js +0 -78
  527. package/dist/v2/features/collection/components/Form.vue.script.js.map +0 -1
  528. package/dist/v2/features/collection/components/GetStarted.vue.d.ts +0 -21
  529. package/dist/v2/features/collection/components/GetStarted.vue.d.ts.map +0 -1
  530. package/dist/v2/features/collection/components/GetStarted.vue.js +0 -7
  531. package/dist/v2/features/collection/components/GetStarted.vue.js.map +0 -1
  532. package/dist/v2/features/collection/components/GetStarted.vue.script.js +0 -144
  533. package/dist/v2/features/collection/components/GetStarted.vue.script.js.map +0 -1
  534. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +0 -18
  535. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +0 -1
  536. package/dist/v2/features/collection/components/LabelInput.vue.js +0 -9
  537. package/dist/v2/features/collection/components/LabelInput.vue.js.map +0 -1
  538. package/dist/v2/features/collection/components/LabelInput.vue.script.js +0 -38
  539. package/dist/v2/features/collection/components/LabelInput.vue.script.js.map +0 -1
  540. package/dist/v2/features/collection/components/Overview.vue.d.ts +0 -16
  541. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +0 -1
  542. package/dist/v2/features/collection/components/Overview.vue.js +0 -9
  543. package/dist/v2/features/collection/components/Overview.vue.js.map +0 -1
  544. package/dist/v2/features/collection/components/Overview.vue.script.js +0 -204
  545. package/dist/v2/features/collection/components/Overview.vue.script.js.map +0 -1
  546. package/dist/v2/features/collection/components/Runner/components/Runner.vue.d.ts +0 -16
  547. package/dist/v2/features/collection/components/Runner/components/Runner.vue.d.ts.map +0 -1
  548. package/dist/v2/features/collection/components/Runner/components/Runner.vue.js +0 -7
  549. package/dist/v2/features/collection/components/Runner/components/Runner.vue.js.map +0 -1
  550. package/dist/v2/features/collection/components/Runner/components/Runner.vue.script.js +0 -223
  551. package/dist/v2/features/collection/components/Runner/components/Runner.vue.script.js.map +0 -1
  552. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.d.ts +0 -20
  553. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.d.ts.map +0 -1
  554. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.js +0 -7
  555. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.js.map +0 -1
  556. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.script.js +0 -45
  557. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.script.js.map +0 -1
  558. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.d.ts +0 -19
  559. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.d.ts.map +0 -1
  560. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.js +0 -7
  561. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.js.map +0 -1
  562. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.script.js +0 -73
  563. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.script.js.map +0 -1
  564. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.d.ts +0 -16
  565. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.d.ts.map +0 -1
  566. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.js +0 -7
  567. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.js.map +0 -1
  568. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.script.js +0 -124
  569. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.script.js.map +0 -1
  570. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.d.ts +0 -17
  571. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.d.ts.map +0 -1
  572. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.js +0 -7
  573. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.js.map +0 -1
  574. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.script.js +0 -126
  575. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.script.js.map +0 -1
  576. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.d.ts +0 -18
  577. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.d.ts.map +0 -1
  578. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.js +0 -7
  579. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.js.map +0 -1
  580. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.script.js +0 -180
  581. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.script.js.map +0 -1
  582. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.d.ts +0 -14
  583. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.d.ts.map +0 -1
  584. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.js +0 -7
  585. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.js.map +0 -1
  586. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.script.js +0 -44
  587. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.script.js.map +0 -1
  588. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.d.ts +0 -19
  589. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.d.ts.map +0 -1
  590. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.js +0 -7
  591. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.js.map +0 -1
  592. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.script.js +0 -53
  593. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.script.js.map +0 -1
  594. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.d.ts +0 -23
  595. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.d.ts.map +0 -1
  596. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.js +0 -7
  597. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.js.map +0 -1
  598. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.script.js +0 -75
  599. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.script.js.map +0 -1
  600. package/dist/v2/features/collection/components/Runner/hooks/index.d.ts +0 -3
  601. package/dist/v2/features/collection/components/Runner/hooks/index.d.ts.map +0 -1
  602. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.d.ts +0 -75
  603. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.d.ts.map +0 -1
  604. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.js +0 -191
  605. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.js.map +0 -1
  606. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.d.ts +0 -46
  607. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.d.ts.map +0 -1
  608. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.js +0 -114
  609. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.js.map +0 -1
  610. package/dist/v2/features/collection/components/Runner/index.d.ts +0 -2
  611. package/dist/v2/features/collection/components/Runner/index.d.ts.map +0 -1
  612. package/dist/v2/features/collection/components/Scripts.vue.d.ts +0 -16
  613. package/dist/v2/features/collection/components/Scripts.vue.d.ts.map +0 -1
  614. package/dist/v2/features/collection/components/Scripts.vue.js +0 -7
  615. package/dist/v2/features/collection/components/Scripts.vue.js.map +0 -1
  616. package/dist/v2/features/collection/components/Scripts.vue.script.js +0 -49
  617. package/dist/v2/features/collection/components/Scripts.vue.script.js.map +0 -1
  618. package/dist/v2/features/collection/components/Servers.vue.d.ts +0 -16
  619. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +0 -1
  620. package/dist/v2/features/collection/components/Servers.vue.js +0 -7
  621. package/dist/v2/features/collection/components/Servers.vue.js.map +0 -1
  622. package/dist/v2/features/collection/components/Servers.vue.script.js +0 -219
  623. package/dist/v2/features/collection/components/Servers.vue.script.js.map +0 -1
  624. package/dist/v2/features/collection/components/Settings.vue.d.ts +0 -16
  625. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +0 -1
  626. package/dist/v2/features/collection/components/Settings.vue.js +0 -7
  627. package/dist/v2/features/collection/components/Settings.vue.js.map +0 -1
  628. package/dist/v2/features/collection/components/Settings.vue.script.js +0 -81
  629. package/dist/v2/features/collection/components/Settings.vue.script.js.map +0 -1
  630. package/dist/v2/features/collection/components/Tabs.vue.d.ts +0 -8
  631. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +0 -1
  632. package/dist/v2/features/collection/components/Tabs.vue.js +0 -7
  633. package/dist/v2/features/collection/components/Tabs.vue.js.map +0 -1
  634. package/dist/v2/features/collection/components/Tabs.vue.script.js +0 -55
  635. package/dist/v2/features/collection/components/Tabs.vue.script.js.map +0 -1
  636. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts +0 -12
  637. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts.map +0 -1
  638. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +0 -19
  639. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js.map +0 -1
  640. package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts +0 -42
  641. package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts.map +0 -1
  642. package/dist/v2/features/command-palette/TheCommandPalette.vue.js +0 -9
  643. package/dist/v2/features/command-palette/TheCommandPalette.vue.js.map +0 -1
  644. package/dist/v2/features/command-palette/TheCommandPalette.vue.script.js +0 -189
  645. package/dist/v2/features/command-palette/TheCommandPalette.vue.script.js.map +0 -1
  646. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +0 -49
  647. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +0 -1
  648. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +0 -7
  649. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js.map +0 -1
  650. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.script.js +0 -207
  651. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.script.js.map +0 -1
  652. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +0 -53
  653. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +0 -1
  654. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +0 -7
  655. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js.map +0 -1
  656. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js +0 -225
  657. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js.map +0 -1
  658. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts +0 -44
  659. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts.map +0 -1
  660. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js +0 -9
  661. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js.map +0 -1
  662. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.script.js +0 -125
  663. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.script.js.map +0 -1
  664. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.d.ts +0 -30
  665. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.d.ts.map +0 -1
  666. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.js +0 -7
  667. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.js.map +0 -1
  668. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.script.js +0 -156
  669. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.script.js.map +0 -1
  670. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.d.ts +0 -37
  671. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.d.ts.map +0 -1
  672. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.js +0 -7
  673. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.js.map +0 -1
  674. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.script.js +0 -105
  675. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.script.js.map +0 -1
  676. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +0 -48
  677. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +0 -1
  678. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +0 -7
  679. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js.map +0 -1
  680. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.script.js +0 -226
  681. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.script.js.map +0 -1
  682. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +0 -65
  683. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +0 -1
  684. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +0 -7
  685. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js.map +0 -1
  686. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.script.js +0 -126
  687. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.script.js.map +0 -1
  688. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.d.ts +0 -58
  689. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.d.ts.map +0 -1
  690. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.js +0 -9
  691. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.js.map +0 -1
  692. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.script.js +0 -142
  693. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.script.js.map +0 -1
  694. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.d.ts +0 -23
  695. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.d.ts.map +0 -1
  696. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.js +0 -9
  697. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.js.map +0 -1
  698. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.script.js +0 -138
  699. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.script.js.map +0 -1
  700. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts +0 -34
  701. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts.map +0 -1
  702. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +0 -7
  703. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js.map +0 -1
  704. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.script.js +0 -39
  705. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.script.js.map +0 -1
  706. package/dist/v2/features/command-palette/helpers/generate-unique-slug.d.ts +0 -20
  707. package/dist/v2/features/command-palette/helpers/generate-unique-slug.d.ts.map +0 -1
  708. package/dist/v2/features/command-palette/helpers/generate-unique-slug.js +0 -33
  709. package/dist/v2/features/command-palette/helpers/generate-unique-slug.js.map +0 -1
  710. package/dist/v2/features/command-palette/helpers/get-merge-key.d.ts +0 -11
  711. package/dist/v2/features/command-palette/helpers/get-merge-key.d.ts.map +0 -1
  712. package/dist/v2/features/command-palette/helpers/get-merge-key.js +0 -32
  713. package/dist/v2/features/command-palette/helpers/get-merge-key.js.map +0 -1
  714. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +0 -24
  715. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +0 -1
  716. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js +0 -56
  717. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js.map +0 -1
  718. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts +0 -24
  719. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts.map +0 -1
  720. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +0 -22
  721. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js.map +0 -1
  722. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts +0 -26
  723. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts.map +0 -1
  724. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +0 -119
  725. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js.map +0 -1
  726. package/dist/v2/features/command-palette/helpers/get-postman-convert-options.d.ts +0 -14
  727. package/dist/v2/features/command-palette/helpers/get-postman-convert-options.d.ts.map +0 -1
  728. package/dist/v2/features/command-palette/helpers/get-postman-convert-options.js +0 -19
  729. package/dist/v2/features/command-palette/helpers/get-postman-convert-options.js.map +0 -1
  730. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +0 -28
  731. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +0 -1
  732. package/dist/v2/features/command-palette/helpers/get-postman-document-details.js +0 -36
  733. package/dist/v2/features/command-palette/helpers/get-postman-document-details.js.map +0 -1
  734. package/dist/v2/features/command-palette/helpers/import-document-to-workspace.d.ts +0 -30
  735. package/dist/v2/features/command-palette/helpers/import-document-to-workspace.d.ts.map +0 -1
  736. package/dist/v2/features/command-palette/helpers/import-document-to-workspace.js +0 -70
  737. package/dist/v2/features/command-palette/helpers/import-document-to-workspace.js.map +0 -1
  738. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts +0 -20
  739. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts.map +0 -1
  740. package/dist/v2/features/command-palette/helpers/load-document-from-source.js +0 -71
  741. package/dist/v2/features/command-palette/helpers/load-document-from-source.js.map +0 -1
  742. package/dist/v2/features/command-palette/helpers/parse-curl.d.ts +0 -14
  743. package/dist/v2/features/command-palette/helpers/parse-curl.d.ts.map +0 -1
  744. package/dist/v2/features/command-palette/helpers/parse-curl.js +0 -106
  745. package/dist/v2/features/command-palette/helpers/parse-curl.js.map +0 -1
  746. package/dist/v2/features/command-palette/helpers/postman-request-collisions.d.ts +0 -11
  747. package/dist/v2/features/command-palette/helpers/postman-request-collisions.d.ts.map +0 -1
  748. package/dist/v2/features/command-palette/helpers/postman-request-collisions.js +0 -35
  749. package/dist/v2/features/command-palette/helpers/postman-request-collisions.js.map +0 -1
  750. package/dist/v2/features/command-palette/helpers/postman-request-tree.d.ts +0 -41
  751. package/dist/v2/features/command-palette/helpers/postman-request-tree.d.ts.map +0 -1
  752. package/dist/v2/features/command-palette/helpers/postman-request-tree.js +0 -139
  753. package/dist/v2/features/command-palette/helpers/postman-request-tree.js.map +0 -1
  754. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +0 -426
  755. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +0 -1
  756. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -207
  757. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js.map +0 -1
  758. package/dist/v2/features/editor/config.d.ts +0 -16
  759. package/dist/v2/features/editor/config.d.ts.map +0 -1
  760. package/dist/v2/features/editor/config.js +0 -19
  761. package/dist/v2/features/editor/config.js.map +0 -1
  762. package/dist/v2/features/editor/helpers/configure-language-support.d.ts +0 -13
  763. package/dist/v2/features/editor/helpers/configure-language-support.d.ts.map +0 -1
  764. package/dist/v2/features/editor/helpers/configure-language-support.js +0 -48
  765. package/dist/v2/features/editor/helpers/configure-language-support.js.map +0 -1
  766. package/dist/v2/features/editor/helpers/ensure-monaco-environment.d.ts +0 -6
  767. package/dist/v2/features/editor/helpers/ensure-monaco-environment.d.ts.map +0 -1
  768. package/dist/v2/features/editor/helpers/ensure-monaco-environment.js +0 -21
  769. package/dist/v2/features/editor/helpers/ensure-monaco-environment.js.map +0 -1
  770. package/dist/v2/features/editor/helpers/json/create-json-model.d.ts +0 -12
  771. package/dist/v2/features/editor/helpers/json/create-json-model.d.ts.map +0 -1
  772. package/dist/v2/features/editor/helpers/json/create-json-model.js +0 -31
  773. package/dist/v2/features/editor/helpers/json/create-json-model.js.map +0 -1
  774. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts +0 -14
  775. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts.map +0 -1
  776. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js +0 -22
  777. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js.map +0 -1
  778. package/dist/v2/features/editor/helpers/json/json-ast.d.ts +0 -12
  779. package/dist/v2/features/editor/helpers/json/json-ast.d.ts.map +0 -1
  780. package/dist/v2/features/editor/helpers/json/json-ast.js +0 -32
  781. package/dist/v2/features/editor/helpers/json/json-ast.js.map +0 -1
  782. package/dist/v2/features/editor/helpers/json/json-pointer-links.d.ts +0 -15
  783. package/dist/v2/features/editor/helpers/json/json-pointer-links.d.ts.map +0 -1
  784. package/dist/v2/features/editor/helpers/json/json-pointer-links.js +0 -104
  785. package/dist/v2/features/editor/helpers/json/json-pointer-links.js.map +0 -1
  786. package/dist/v2/features/editor/helpers/json/json-pointer-path.d.ts +0 -7
  787. package/dist/v2/features/editor/helpers/json/json-pointer-path.d.ts.map +0 -1
  788. package/dist/v2/features/editor/helpers/json/json-pointer-path.js +0 -27
  789. package/dist/v2/features/editor/helpers/json/json-pointer-path.js.map +0 -1
  790. package/dist/v2/features/editor/helpers/model.d.ts +0 -9
  791. package/dist/v2/features/editor/helpers/model.d.ts.map +0 -1
  792. package/dist/v2/features/editor/helpers/range-to-whole-line.d.ts +0 -14
  793. package/dist/v2/features/editor/helpers/range-to-whole-line.d.ts.map +0 -1
  794. package/dist/v2/features/editor/helpers/range-to-whole-line.js +0 -27
  795. package/dist/v2/features/editor/helpers/range-to-whole-line.js.map +0 -1
  796. package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.d.ts +0 -16
  797. package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.d.ts.map +0 -1
  798. package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.js +0 -84
  799. package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.js.map +0 -1
  800. package/dist/v2/features/editor/helpers/theme/load-css-variables.d.ts +0 -36
  801. package/dist/v2/features/editor/helpers/theme/load-css-variables.d.ts.map +0 -1
  802. package/dist/v2/features/editor/helpers/theme/load-css-variables.js +0 -117
  803. package/dist/v2/features/editor/helpers/theme/load-css-variables.js.map +0 -1
  804. package/dist/v2/features/editor/helpers/yaml/create-yaml-model.d.ts +0 -13
  805. package/dist/v2/features/editor/helpers/yaml/create-yaml-model.d.ts.map +0 -1
  806. package/dist/v2/features/editor/helpers/yaml/create-yaml-model.js +0 -32
  807. package/dist/v2/features/editor/helpers/yaml/create-yaml-model.js.map +0 -1
  808. package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.d.ts +0 -19
  809. package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.d.ts.map +0 -1
  810. package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.js +0 -70
  811. package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.js.map +0 -1
  812. package/dist/v2/features/editor/hooks/use-editor-markers.d.ts +0 -152
  813. package/dist/v2/features/editor/hooks/use-editor-markers.d.ts.map +0 -1
  814. package/dist/v2/features/editor/hooks/use-editor-markers.js +0 -37
  815. package/dist/v2/features/editor/hooks/use-editor-markers.js.map +0 -1
  816. package/dist/v2/features/editor/hooks/use-editor.d.ts +0 -39
  817. package/dist/v2/features/editor/hooks/use-editor.d.ts.map +0 -1
  818. package/dist/v2/features/editor/hooks/use-editor.js +0 -133
  819. package/dist/v2/features/editor/hooks/use-editor.js.map +0 -1
  820. package/dist/v2/features/editor/hooks/use-json-pointer-link-support.d.ts +0 -16
  821. package/dist/v2/features/editor/hooks/use-json-pointer-link-support.d.ts.map +0 -1
  822. package/dist/v2/features/editor/hooks/use-json-pointer-link-support.js +0 -45
  823. package/dist/v2/features/editor/hooks/use-json-pointer-link-support.js.map +0 -1
  824. package/dist/v2/features/editor/hooks/use-three-way-merge-editor.d.ts +0 -77
  825. package/dist/v2/features/editor/hooks/use-three-way-merge-editor.d.ts.map +0 -1
  826. package/dist/v2/features/editor/hooks/use-three-way-merge-editor.js +0 -396
  827. package/dist/v2/features/editor/hooks/use-three-way-merge-editor.js.map +0 -1
  828. package/dist/v2/features/editor/index.d.ts +0 -5
  829. package/dist/v2/features/editor/index.d.ts.map +0 -1
  830. package/dist/v2/features/editor/index.js +0 -5
  831. package/dist/v2/features/editor/schemas/openapi-3.1-schema.json.js +0 -51
  832. package/dist/v2/features/editor/schemas/openapi-3.1-schema.json.js.map +0 -1
  833. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +0 -10
  834. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +0 -1
  835. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +0 -9
  836. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js.map +0 -1
  837. package/dist/v2/features/global-cookies/components/CookiesTable.vue.script.js +0 -188
  838. package/dist/v2/features/global-cookies/components/CookiesTable.vue.script.js.map +0 -1
  839. package/dist/v2/features/global-cookies/index.d.ts +0 -2
  840. package/dist/v2/features/global-cookies/index.d.ts.map +0 -1
  841. package/dist/v2/features/global-cookies/index.js +0 -2
  842. package/dist/v2/features/settings/CollectionSettings.vue.d.ts +0 -28
  843. package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +0 -1
  844. package/dist/v2/features/settings/CollectionSettings.vue.js +0 -7
  845. package/dist/v2/features/settings/CollectionSettings.vue.js.map +0 -1
  846. package/dist/v2/features/settings/CollectionSettings.vue.script.js +0 -229
  847. package/dist/v2/features/settings/CollectionSettings.vue.script.js.map +0 -1
  848. package/dist/v2/features/settings/DocumentSettings.vue.d.ts +0 -20
  849. package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +0 -1
  850. package/dist/v2/features/settings/DocumentSettings.vue.js +0 -7
  851. package/dist/v2/features/settings/DocumentSettings.vue.js.map +0 -1
  852. package/dist/v2/features/settings/DocumentSettings.vue.script.js +0 -92
  853. package/dist/v2/features/settings/DocumentSettings.vue.script.js.map +0 -1
  854. package/dist/v2/features/settings/components/Appearance.vue.d.ts +0 -11
  855. package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +0 -1
  856. package/dist/v2/features/settings/components/Appearance.vue.js +0 -7
  857. package/dist/v2/features/settings/components/Appearance.vue.js.map +0 -1
  858. package/dist/v2/features/settings/components/Appearance.vue.script.js +0 -63
  859. package/dist/v2/features/settings/components/Appearance.vue.script.js.map +0 -1
  860. package/dist/v2/features/settings/components/Section.vue.d.ts +0 -16
  861. package/dist/v2/features/settings/components/Section.vue.d.ts.map +0 -1
  862. package/dist/v2/features/settings/components/Section.vue.js +0 -7
  863. package/dist/v2/features/settings/components/Section.vue.js.map +0 -1
  864. package/dist/v2/features/settings/components/Section.vue.script.js +0 -30
  865. package/dist/v2/features/settings/components/Section.vue.script.js.map +0 -1
  866. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +0 -10
  867. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +0 -1
  868. package/dist/v2/features/settings/helpers/get-theme-colors.js +0 -68
  869. package/dist/v2/features/settings/helpers/get-theme-colors.js.map +0 -1
  870. package/dist/v2/features/settings/index.d.ts +0 -3
  871. package/dist/v2/features/settings/index.d.ts.map +0 -1
  872. package/dist/v2/features/settings/index.js +0 -3
  873. package/dist/v2/helpers/download-document.d.ts +0 -2
  874. package/dist/v2/helpers/download-document.d.ts.map +0 -1
  875. package/dist/v2/helpers/download-document.js +0 -42
  876. package/dist/v2/helpers/download-document.js.map +0 -1
  877. package/dist/v2/helpers/drag-handle-factory.d.ts +0 -16
  878. package/dist/v2/helpers/drag-handle-factory.d.ts.map +0 -1
  879. package/dist/v2/helpers/drag-handle-factory.js +0 -258
  880. package/dist/v2/helpers/drag-handle-factory.js.map +0 -1
  881. package/dist/v2/helpers/get-tab-details.d.ts +0 -43
  882. package/dist/v2/helpers/get-tab-details.d.ts.map +0 -1
  883. package/dist/v2/helpers/get-tab-details.js +0 -54
  884. package/dist/v2/helpers/get-tab-details.js.map +0 -1
  885. package/dist/v2/helpers/is-url.d.ts +0 -2
  886. package/dist/v2/helpers/is-url.d.ts.map +0 -1
  887. package/dist/v2/helpers/is-url.js +0 -9
  888. package/dist/v2/helpers/is-url.js.map +0 -1
  889. package/dist/v2/helpers/safe-run.d.ts +0 -34
  890. package/dist/v2/helpers/safe-run.d.ts.map +0 -1
  891. package/dist/v2/helpers/safe-run.js +0 -43
  892. package/dist/v2/helpers/safe-run.js.map +0 -1
  893. package/dist/v2/helpers/storage.d.ts +0 -31
  894. package/dist/v2/helpers/storage.d.ts.map +0 -1
  895. package/dist/v2/helpers/storage.js +0 -37
  896. package/dist/v2/helpers/storage.js.map +0 -1
  897. package/dist/v2/hooks/use-color-mode.d.ts +0 -20
  898. package/dist/v2/hooks/use-color-mode.d.ts.map +0 -1
  899. package/dist/v2/hooks/use-color-mode.js +0 -72
  900. package/dist/v2/hooks/use-color-mode.js.map +0 -1
  901. package/dist/v2/types/configuration.d.ts +0 -278
  902. package/dist/v2/types/configuration.d.ts.map +0 -1
  903. /package/dist/components/{ScalarAsciiArt.vue.d.ts → ScalarAsciiArt/ScalarAsciiArt.vue.d.ts} +0 -0
  904. /package/dist/{index.js → types/index.js} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"TheCommandPalette.vue.js","names":[],"sources":["../../../../src/v2/features/command-palette/TheCommandPalette.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * The Command Palette Component\n *\n * A keyboard-driven command menu for quick access to common actions like:\n * - Creating documents, requests, tags, and examples\n * - Importing from OpenAPI, Swagger, Postman, or cURL\n * - Navigating to different routes\n *\n * Supports:\n * - Fuzzy search filtering\n * - Keyboard navigation (arrow keys, enter, escape)\n * - Command grouping and organization\n * - Dynamic command components with props\n *\n * @example\n * <TheCommandPalette\n * :paletteState=\"paletteState\"\n * :workspaceStore=\"workspaceStore\"\n * :eventBus=\"eventBus\"\n * />\n */\nexport default {}\n</script>\n\n<script setup lang=\"ts\">\nimport { Dialog, DialogPanel, DialogTitle } from '@headlessui/vue'\nimport { ScalarIconCaretLeft, ScalarIconMagnifyingGlass } from '@scalar/icons'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport type {\n CommandPaletteAction,\n CommandPalettePayload,\n KeyboardEventPayload,\n WorkspaceEventBus,\n} from '@scalar/workspace-store/events'\nimport {\n computed,\n nextTick,\n onBeforeMount,\n onBeforeUnmount,\n ref,\n watch,\n} from 'vue'\nimport { useRouter } from 'vue-router'\n\nimport type {\n CommandPaletteEntry,\n CommandPaletteState,\n} from './hooks/use-command-palette-state'\n\nconst { paletteState, workspaceStore, eventBus } = defineProps<{\n /** The command palette state management hook */\n paletteState: CommandPaletteState\n /** The workspace store for accessing documents and operations */\n workspaceStore: WorkspaceStore\n /** Event bus for emitting workspace events */\n eventBus: WorkspaceEventBus\n}>()\n\n/** Starting index when no search result is selected */\nconst NO_SELECTION_INDEX = -1\n\nconst router = useRouter()\n\nconst selectedSearchResult = ref<number>(NO_SELECTION_INDEX)\nconst commandInputRef = ref<HTMLInputElement | null>(null)\n\n/**\n * Flattens the filtered commands into a single array for keyboard navigation.\n * Makes it easier to track the selected index across all groups.\n */\nconst flattenedCommands = computed<CommandPaletteEntry[]>(() =>\n paletteState.filteredCommands.value.flatMap((group) => group.commands),\n)\n\n/** The currently selected command based on keyboard navigation */\nconst selectedCommand = computed<CommandPaletteEntry | undefined>(\n () => flattenedCommands.value[selectedSearchResult.value],\n)\n\n/**\n * Watch for search query changes and auto-select first result.\n * Resets selection when query is cleared.\n */\nwatch(\n () => paletteState.filterQuery.value,\n (newQuery: string) => {\n selectedSearchResult.value =\n newQuery && flattenedCommands.value.length > 0 ? 0 : NO_SELECTION_INDEX\n },\n)\n\n/**\n * Handle input changes in the search field.\n * Updates the filter query and redirects to cURL import if detected.\n */\nconst handleInput = (value: string): void => {\n paletteState.setFilterQuery(value)\n\n if (value.trim().toLowerCase().startsWith('curl')) {\n paletteState.open('import-curl-command', { inputValue: value })\n }\n}\n\n/**\n * Handle arrow key navigation in the command list.\n * Loops around to the beginning or end when reaching boundaries.\n */\nconst handleArrowKey = (\n direction: 'up' | 'down',\n event: KeyboardEvent,\n): void => {\n if (!paletteState.isOpen.value) {\n return\n }\n event.preventDefault()\n\n const offset = direction === 'up' ? -1 : 1\n const length = flattenedCommands.value.length\n\n selectedSearchResult.value =\n (selectedSearchResult.value + offset + length) % length\n}\n\n/**\n * Handle enter key to execute the selected command.\n * Only works when a command is selected and no active command is open.\n */\nconst handleSelect = (event: KeyboardEvent): void => {\n if (!selectedCommand.value || paletteState.activeCommand.value) {\n return\n }\n event.preventDefault()\n event.stopPropagation()\n handleCommandClick(selectedCommand.value)\n}\n\n/**\n * Handle command selection (via click or enter key).\n * Routes to navigation commands or opens folder commands.\n */\nconst handleCommandClick = (command: CommandPaletteEntry): void => {\n /** Navigate to route commands and close palette */\n if ('to' in command) {\n router.push(command.to)\n closeHandler()\n return\n }\n\n // We are sure that the ids are of type FolderCommandIds because of the type assertion\n paletteState.open(command.id as keyof CommandPalettePayload, {})\n}\n\n/**\n * Handle back navigation from active command.\n * Returns to the main command list and refocuses the search input.\n */\nconst handleBackEvent = (): void => {\n paletteState.reset()\n nextTick(() => commandInputRef.value?.focus())\n}\n\n/** Handle close event from active command components */\nconst handleCloseEvent = (): void => {\n paletteState.close()\n}\n/**\n * Close the command palette and reset state.\n * Resets search results and closes the dialog.\n */\nconst closeHandler = (): void => {\n paletteState.close()\n selectedSearchResult.value = NO_SELECTION_INDEX\n}\n\nconst paletteProps = computed(() => ({\n workspaceStore,\n eventBus,\n ...paletteState.activeCommandProps.value,\n}))\n\nconst onOpen = (\n payload: CommandPaletteAction | KeyboardEventPayload | undefined,\n) => {\n // We want to disable the default behaviour\n if (payload?.event) {\n payload.event.preventDefault()\n }\n\n if (payload && 'action' in payload) {\n paletteState.open(payload.action, payload.payload)\n } else {\n paletteState.open()\n }\n}\n\nonBeforeMount(() => eventBus.on('ui:open:command-palette', onOpen))\nonBeforeUnmount(() => eventBus.off('ui:open:command-palette', onOpen))\n</script>\n<template>\n <Dialog\n :open=\"paletteState.isOpen.value\"\n @close=\"closeHandler\">\n <!-- Backdrop overlay -->\n <div class=\"commandmenu-overlay z-overlay\" />\n\n <DialogPanel class=\"commandmenu z-overlay flex flex-col\">\n <DialogTitle class=\"sr-only\">API Client Command Menu</DialogTitle>\n\n <!-- Main command list view -->\n <div\n v-if=\"!paletteState.activeCommand.value\"\n class=\"custom-scroll max-h-[50dvh] min-h-0 flex-1 rounded-lg p-1.5\">\n <!-- Search input with icon -->\n <div\n class=\"bg-b-2 focus-within:bg-b-1 sticky top-0 flex items-center rounded-md border border-transparent pl-2 shadow-[0_-8px_0_8px_var(--scalar-background-1),0_0_8px_8px_var(--scalar-background-1)] focus-within:border-(--scalar-background-3)\">\n <label for=\"commandmenu\">\n <ScalarIconMagnifyingGlass\n class=\"text-c-2 mr-2.5\"\n size=\"md\"\n thickness=\"1.5\" />\n </label>\n <input\n id=\"commandmenu\"\n ref=\"commandInputRef\"\n autocomplete=\"off\"\n autofocus\n class=\"w-full rounded border-none bg-none py-1.5 text-sm focus:outline-none\"\n placeholder=\"Search commands...\"\n type=\"text\"\n :value=\"paletteState.filterQuery.value\"\n @input=\"handleInput(($event.target as HTMLInputElement).value)\"\n @keydown.down.stop=\"handleArrowKey('down', $event)\"\n @keydown.enter.stop=\"handleSelect\"\n @keydown.up.stop=\"handleArrowKey('up', $event)\" />\n </div>\n\n <!-- Command groups and items -->\n <template\n v-for=\"group in paletteState.filteredCommands.value\"\n :key=\"group.label || '100'\">\n <!-- Group label -->\n <div\n v-show=\"group.commands.length > 0\"\n class=\"text-c-3 mt-2 mb-1 px-2 text-xs font-medium\">\n {{ group.label }}\n </div>\n\n <!-- Command items in the group -->\n <button\n v-for=\"command in group.commands\"\n :id=\"command.id\"\n :key=\"command.id\"\n class=\"commandmenu-item hover:bg-b-2 flex w-full cursor-pointer items-center rounded px-2 py-1.5 text-left text-sm\"\n :class=\"{\n 'bg-b-2': command.id === selectedCommand?.id,\n }\"\n type=\"button\"\n @click=\"handleCommandClick(command)\">\n <component\n :is=\"command.icon\"\n v-if=\"'icon' in command\"\n class=\"text-c-2 mr-2.5\"\n size=\"md\"\n thickness=\"1.5\" />\n {{ command.name }}\n </button>\n </template>\n\n <!-- Empty state when no commands match search -->\n <div\n v-if=\"\n !paletteState.filteredCommands.value.flatMap((p) => p.commands)\n .length\n \"\n class=\"text-c-3 p-2 pt-3 text-center text-sm\">\n No commands found\n </div>\n </div>\n\n <!-- Active command view (specific action form) -->\n <div\n v-else\n class=\"flex-1 p-1.5\">\n <!-- Back button to return to command list -->\n <button\n class=\"hover:bg-b-3 text-c-3 active:text-c-1 absolute z-1 mt-[0.5px] rounded p-1.5\"\n type=\"button\"\n @click=\"handleBackEvent\">\n <ScalarIconCaretLeft size=\"md\" />\n </button>\n\n <!-- Dynamic command component -->\n <component\n :is=\"paletteState.activeCommand.value.component\"\n v-if=\"paletteState.activeCommand.value\"\n v-bind=\"paletteProps\"\n @back=\"handleBackEvent\"\n @close=\"handleCloseEvent\" />\n </div>\n </DialogPanel>\n </Dialog>\n</template>\n<style scoped>\n/**\n * Command Palette Styles\n * Centered dialog with fade-in animation and backdrop overlay\n */\n\n/** Main command menu dialog */\n.commandmenu {\n box-shadow: var(--scalar-shadow-2);\n border-radius: var(--scalar-radius-lg);\n background-color: var(--scalar-background-1);\n max-height: 80dvh;\n width: 100%;\n max-width: 580px;\n margin: 12px;\n position: fixed;\n left: 50%;\n top: 150px;\n opacity: 0;\n transform: translate3d(-50%, 10px, 0);\n animation: fadeincommandmenu ease-in-out 0.3s forwards;\n animation-delay: 0.1s;\n}\n\n/** Backdrop overlay with fade-in */\n.commandmenu-overlay {\n position: fixed;\n inset: 0;\n background: rgba(0, 0, 0, 0.2);\n animation: fadeincommand ease-in-out 0.3s forwards;\n cursor: pointer;\n}\n\n/** Fade-in animation for overlay */\n@keyframes fadeincommand {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n/** Fade-in and slide-up animation for command menu */\n@keyframes fadeincommandmenu {\n 0% {\n opacity: 0;\n transform: translate3d(-50%, 10px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3d(-50%, 0, 0);\n }\n}\n</style>\n"],"mappings":""}
@@ -1,189 +0,0 @@
1
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, onBeforeMount, onBeforeUnmount, openBlock, ref, renderList, resolveDynamicComponent, toDisplayString, unref, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
2
- import { ScalarIconCaretLeft, ScalarIconMagnifyingGlass } from "@scalar/icons";
3
- import { Dialog, DialogPanel, DialogTitle } from "@headlessui/vue";
4
- import { useRouter } from "vue-router";
5
- //#region src/v2/features/command-palette/TheCommandPalette.vue?vue&type=script&setup=true&lang.ts
6
- var _hoisted_1 = {
7
- key: 0,
8
- class: "custom-scroll max-h-[50dvh] min-h-0 flex-1 rounded-lg p-1.5"
9
- };
10
- var _hoisted_2 = { class: "bg-b-2 focus-within:bg-b-1 sticky top-0 flex items-center rounded-md border border-transparent pl-2 shadow-[0_-8px_0_8px_var(--scalar-background-1),0_0_8px_8px_var(--scalar-background-1)] focus-within:border-(--scalar-background-3)" };
11
- var _hoisted_3 = { for: "commandmenu" };
12
- var _hoisted_4 = ["value", "onKeydown"];
13
- var _hoisted_5 = ["id", "onClick"];
14
- var _hoisted_6 = {
15
- key: 0,
16
- class: "text-c-3 p-2 pt-3 text-center text-sm"
17
- };
18
- var _hoisted_7 = {
19
- key: 1,
20
- class: "flex-1 p-1.5"
21
- };
22
- var TheCommandPalette_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
23
- __name: "TheCommandPalette",
24
- props: {
25
- paletteState: {},
26
- workspaceStore: {},
27
- eventBus: {}
28
- },
29
- setup(__props) {
30
- /** Starting index when no search result is selected */
31
- const NO_SELECTION_INDEX = -1;
32
- const router = useRouter();
33
- const selectedSearchResult = ref(NO_SELECTION_INDEX);
34
- const commandInputRef = ref(null);
35
- /**
36
- * Flattens the filtered commands into a single array for keyboard navigation.
37
- * Makes it easier to track the selected index across all groups.
38
- */
39
- const flattenedCommands = computed(() => __props.paletteState.filteredCommands.value.flatMap((group) => group.commands));
40
- /** The currently selected command based on keyboard navigation */
41
- const selectedCommand = computed(() => flattenedCommands.value[selectedSearchResult.value]);
42
- /**
43
- * Watch for search query changes and auto-select first result.
44
- * Resets selection when query is cleared.
45
- */
46
- watch(() => __props.paletteState.filterQuery.value, (newQuery) => {
47
- selectedSearchResult.value = newQuery && flattenedCommands.value.length > 0 ? 0 : NO_SELECTION_INDEX;
48
- });
49
- /**
50
- * Handle input changes in the search field.
51
- * Updates the filter query and redirects to cURL import if detected.
52
- */
53
- const handleInput = (value) => {
54
- __props.paletteState.setFilterQuery(value);
55
- if (value.trim().toLowerCase().startsWith("curl")) __props.paletteState.open("import-curl-command", { inputValue: value });
56
- };
57
- /**
58
- * Handle arrow key navigation in the command list.
59
- * Loops around to the beginning or end when reaching boundaries.
60
- */
61
- const handleArrowKey = (direction, event) => {
62
- if (!__props.paletteState.isOpen.value) return;
63
- event.preventDefault();
64
- const offset = direction === "up" ? -1 : 1;
65
- const length = flattenedCommands.value.length;
66
- selectedSearchResult.value = (selectedSearchResult.value + offset + length) % length;
67
- };
68
- /**
69
- * Handle enter key to execute the selected command.
70
- * Only works when a command is selected and no active command is open.
71
- */
72
- const handleSelect = (event) => {
73
- if (!selectedCommand.value || __props.paletteState.activeCommand.value) return;
74
- event.preventDefault();
75
- event.stopPropagation();
76
- handleCommandClick(selectedCommand.value);
77
- };
78
- /**
79
- * Handle command selection (via click or enter key).
80
- * Routes to navigation commands or opens folder commands.
81
- */
82
- const handleCommandClick = (command) => {
83
- /** Navigate to route commands and close palette */
84
- if ("to" in command) {
85
- router.push(command.to);
86
- closeHandler();
87
- return;
88
- }
89
- __props.paletteState.open(command.id, {});
90
- };
91
- /**
92
- * Handle back navigation from active command.
93
- * Returns to the main command list and refocuses the search input.
94
- */
95
- const handleBackEvent = () => {
96
- __props.paletteState.reset();
97
- nextTick(() => commandInputRef.value?.focus());
98
- };
99
- /** Handle close event from active command components */
100
- const handleCloseEvent = () => {
101
- __props.paletteState.close();
102
- };
103
- /**
104
- * Close the command palette and reset state.
105
- * Resets search results and closes the dialog.
106
- */
107
- const closeHandler = () => {
108
- __props.paletteState.close();
109
- selectedSearchResult.value = NO_SELECTION_INDEX;
110
- };
111
- const paletteProps = computed(() => ({
112
- workspaceStore: __props.workspaceStore,
113
- eventBus: __props.eventBus,
114
- ...__props.paletteState.activeCommandProps.value
115
- }));
116
- const onOpen = (payload) => {
117
- if (payload?.event) payload.event.preventDefault();
118
- if (payload && "action" in payload) __props.paletteState.open(payload.action, payload.payload);
119
- else __props.paletteState.open();
120
- };
121
- onBeforeMount(() => __props.eventBus.on("ui:open:command-palette", onOpen));
122
- onBeforeUnmount(() => __props.eventBus.off("ui:open:command-palette", onOpen));
123
- return (_ctx, _cache) => {
124
- return openBlock(), createBlock(unref(Dialog), {
125
- open: __props.paletteState.isOpen.value,
126
- onClose: closeHandler
127
- }, {
128
- default: withCtx(() => [_cache[4] || (_cache[4] = createElementVNode("div", { class: "commandmenu-overlay z-overlay" }, null, -1)), createVNode(unref(DialogPanel), { class: "commandmenu z-overlay flex flex-col" }, {
129
- default: withCtx(() => [createVNode(unref(DialogTitle), { class: "sr-only" }, {
130
- default: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode("API Client Command Menu", -1)])]),
131
- _: 1
132
- }), !__props.paletteState.activeCommand.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
133
- createElementVNode("div", _hoisted_2, [createElementVNode("label", _hoisted_3, [createVNode(unref(ScalarIconMagnifyingGlass), {
134
- class: "text-c-2 mr-2.5",
135
- size: "md",
136
- thickness: "1.5"
137
- })]), createElementVNode("input", {
138
- id: "commandmenu",
139
- ref_key: "commandInputRef",
140
- ref: commandInputRef,
141
- autocomplete: "off",
142
- autofocus: "",
143
- class: "w-full rounded border-none bg-none py-1.5 text-sm focus:outline-none",
144
- placeholder: "Search commands...",
145
- type: "text",
146
- value: __props.paletteState.filterQuery.value,
147
- onInput: _cache[0] || (_cache[0] = ($event) => handleInput($event.target.value)),
148
- onKeydown: [
149
- _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => handleArrowKey("down", $event), ["stop"]), ["down"])),
150
- withKeys(withModifiers(handleSelect, ["stop"]), ["enter"]),
151
- _cache[2] || (_cache[2] = withKeys(withModifiers(($event) => handleArrowKey("up", $event), ["stop"]), ["up"]))
152
- ]
153
- }, null, 40, _hoisted_4)]),
154
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.paletteState.filteredCommands.value, (group) => {
155
- return openBlock(), createElementBlock(Fragment, { key: group.label || "100" }, [withDirectives(createElementVNode("div", { class: "text-c-3 mt-2 mb-1 px-2 text-xs font-medium" }, toDisplayString(group.label), 513), [[vShow, group.commands.length > 0]]), (openBlock(true), createElementBlock(Fragment, null, renderList(group.commands, (command) => {
156
- return openBlock(), createElementBlock("button", {
157
- id: command.id,
158
- key: command.id,
159
- class: normalizeClass(["commandmenu-item hover:bg-b-2 flex w-full cursor-pointer items-center rounded px-2 py-1.5 text-left text-sm", { "bg-b-2": command.id === selectedCommand.value?.id }]),
160
- type: "button",
161
- onClick: ($event) => handleCommandClick(command)
162
- }, ["icon" in command ? (openBlock(), createBlock(resolveDynamicComponent(command.icon), {
163
- key: 0,
164
- class: "text-c-2 mr-2.5",
165
- size: "md",
166
- thickness: "1.5"
167
- })) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(command.name), 1)], 10, _hoisted_5);
168
- }), 128))], 64);
169
- }), 128)),
170
- !__props.paletteState.filteredCommands.value.flatMap((p) => p.commands).length ? (openBlock(), createElementBlock("div", _hoisted_6, " No commands found ")) : createCommentVNode("", true)
171
- ])) : (openBlock(), createElementBlock("div", _hoisted_7, [createElementVNode("button", {
172
- class: "hover:bg-b-3 text-c-3 active:text-c-1 absolute z-1 mt-[0.5px] rounded p-1.5",
173
- type: "button",
174
- onClick: handleBackEvent
175
- }, [createVNode(unref(ScalarIconCaretLeft), { size: "md" })]), __props.paletteState.activeCommand.value ? (openBlock(), createBlock(resolveDynamicComponent(__props.paletteState.activeCommand.value.component), mergeProps({ key: 0 }, paletteProps.value, {
176
- onBack: handleBackEvent,
177
- onClose: handleCloseEvent
178
- }), null, 16)) : createCommentVNode("", true)]))]),
179
- _: 1
180
- })]),
181
- _: 1
182
- }, 8, ["open"]);
183
- };
184
- }
185
- });
186
- //#endregion
187
- export { TheCommandPalette_vue_vue_type_script_setup_true_lang_default as default };
188
-
189
- //# sourceMappingURL=TheCommandPalette.vue.script.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TheCommandPalette.vue.script.js","names":[],"sources":["../../../../src/v2/features/command-palette/TheCommandPalette.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * The Command Palette Component\n *\n * A keyboard-driven command menu for quick access to common actions like:\n * - Creating documents, requests, tags, and examples\n * - Importing from OpenAPI, Swagger, Postman, or cURL\n * - Navigating to different routes\n *\n * Supports:\n * - Fuzzy search filtering\n * - Keyboard navigation (arrow keys, enter, escape)\n * - Command grouping and organization\n * - Dynamic command components with props\n *\n * @example\n * <TheCommandPalette\n * :paletteState=\"paletteState\"\n * :workspaceStore=\"workspaceStore\"\n * :eventBus=\"eventBus\"\n * />\n */\nexport default {}\n</script>\n\n<script setup lang=\"ts\">\nimport { Dialog, DialogPanel, DialogTitle } from '@headlessui/vue'\nimport { ScalarIconCaretLeft, ScalarIconMagnifyingGlass } from '@scalar/icons'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport type {\n CommandPaletteAction,\n CommandPalettePayload,\n KeyboardEventPayload,\n WorkspaceEventBus,\n} from '@scalar/workspace-store/events'\nimport {\n computed,\n nextTick,\n onBeforeMount,\n onBeforeUnmount,\n ref,\n watch,\n} from 'vue'\nimport { useRouter } from 'vue-router'\n\nimport type {\n CommandPaletteEntry,\n CommandPaletteState,\n} from './hooks/use-command-palette-state'\n\nconst { paletteState, workspaceStore, eventBus } = defineProps<{\n /** The command palette state management hook */\n paletteState: CommandPaletteState\n /** The workspace store for accessing documents and operations */\n workspaceStore: WorkspaceStore\n /** Event bus for emitting workspace events */\n eventBus: WorkspaceEventBus\n}>()\n\n/** Starting index when no search result is selected */\nconst NO_SELECTION_INDEX = -1\n\nconst router = useRouter()\n\nconst selectedSearchResult = ref<number>(NO_SELECTION_INDEX)\nconst commandInputRef = ref<HTMLInputElement | null>(null)\n\n/**\n * Flattens the filtered commands into a single array for keyboard navigation.\n * Makes it easier to track the selected index across all groups.\n */\nconst flattenedCommands = computed<CommandPaletteEntry[]>(() =>\n paletteState.filteredCommands.value.flatMap((group) => group.commands),\n)\n\n/** The currently selected command based on keyboard navigation */\nconst selectedCommand = computed<CommandPaletteEntry | undefined>(\n () => flattenedCommands.value[selectedSearchResult.value],\n)\n\n/**\n * Watch for search query changes and auto-select first result.\n * Resets selection when query is cleared.\n */\nwatch(\n () => paletteState.filterQuery.value,\n (newQuery: string) => {\n selectedSearchResult.value =\n newQuery && flattenedCommands.value.length > 0 ? 0 : NO_SELECTION_INDEX\n },\n)\n\n/**\n * Handle input changes in the search field.\n * Updates the filter query and redirects to cURL import if detected.\n */\nconst handleInput = (value: string): void => {\n paletteState.setFilterQuery(value)\n\n if (value.trim().toLowerCase().startsWith('curl')) {\n paletteState.open('import-curl-command', { inputValue: value })\n }\n}\n\n/**\n * Handle arrow key navigation in the command list.\n * Loops around to the beginning or end when reaching boundaries.\n */\nconst handleArrowKey = (\n direction: 'up' | 'down',\n event: KeyboardEvent,\n): void => {\n if (!paletteState.isOpen.value) {\n return\n }\n event.preventDefault()\n\n const offset = direction === 'up' ? -1 : 1\n const length = flattenedCommands.value.length\n\n selectedSearchResult.value =\n (selectedSearchResult.value + offset + length) % length\n}\n\n/**\n * Handle enter key to execute the selected command.\n * Only works when a command is selected and no active command is open.\n */\nconst handleSelect = (event: KeyboardEvent): void => {\n if (!selectedCommand.value || paletteState.activeCommand.value) {\n return\n }\n event.preventDefault()\n event.stopPropagation()\n handleCommandClick(selectedCommand.value)\n}\n\n/**\n * Handle command selection (via click or enter key).\n * Routes to navigation commands or opens folder commands.\n */\nconst handleCommandClick = (command: CommandPaletteEntry): void => {\n /** Navigate to route commands and close palette */\n if ('to' in command) {\n router.push(command.to)\n closeHandler()\n return\n }\n\n // We are sure that the ids are of type FolderCommandIds because of the type assertion\n paletteState.open(command.id as keyof CommandPalettePayload, {})\n}\n\n/**\n * Handle back navigation from active command.\n * Returns to the main command list and refocuses the search input.\n */\nconst handleBackEvent = (): void => {\n paletteState.reset()\n nextTick(() => commandInputRef.value?.focus())\n}\n\n/** Handle close event from active command components */\nconst handleCloseEvent = (): void => {\n paletteState.close()\n}\n/**\n * Close the command palette and reset state.\n * Resets search results and closes the dialog.\n */\nconst closeHandler = (): void => {\n paletteState.close()\n selectedSearchResult.value = NO_SELECTION_INDEX\n}\n\nconst paletteProps = computed(() => ({\n workspaceStore,\n eventBus,\n ...paletteState.activeCommandProps.value,\n}))\n\nconst onOpen = (\n payload: CommandPaletteAction | KeyboardEventPayload | undefined,\n) => {\n // We want to disable the default behaviour\n if (payload?.event) {\n payload.event.preventDefault()\n }\n\n if (payload && 'action' in payload) {\n paletteState.open(payload.action, payload.payload)\n } else {\n paletteState.open()\n }\n}\n\nonBeforeMount(() => eventBus.on('ui:open:command-palette', onOpen))\nonBeforeUnmount(() => eventBus.off('ui:open:command-palette', onOpen))\n</script>\n<template>\n <Dialog\n :open=\"paletteState.isOpen.value\"\n @close=\"closeHandler\">\n <!-- Backdrop overlay -->\n <div class=\"commandmenu-overlay z-overlay\" />\n\n <DialogPanel class=\"commandmenu z-overlay flex flex-col\">\n <DialogTitle class=\"sr-only\">API Client Command Menu</DialogTitle>\n\n <!-- Main command list view -->\n <div\n v-if=\"!paletteState.activeCommand.value\"\n class=\"custom-scroll max-h-[50dvh] min-h-0 flex-1 rounded-lg p-1.5\">\n <!-- Search input with icon -->\n <div\n class=\"bg-b-2 focus-within:bg-b-1 sticky top-0 flex items-center rounded-md border border-transparent pl-2 shadow-[0_-8px_0_8px_var(--scalar-background-1),0_0_8px_8px_var(--scalar-background-1)] focus-within:border-(--scalar-background-3)\">\n <label for=\"commandmenu\">\n <ScalarIconMagnifyingGlass\n class=\"text-c-2 mr-2.5\"\n size=\"md\"\n thickness=\"1.5\" />\n </label>\n <input\n id=\"commandmenu\"\n ref=\"commandInputRef\"\n autocomplete=\"off\"\n autofocus\n class=\"w-full rounded border-none bg-none py-1.5 text-sm focus:outline-none\"\n placeholder=\"Search commands...\"\n type=\"text\"\n :value=\"paletteState.filterQuery.value\"\n @input=\"handleInput(($event.target as HTMLInputElement).value)\"\n @keydown.down.stop=\"handleArrowKey('down', $event)\"\n @keydown.enter.stop=\"handleSelect\"\n @keydown.up.stop=\"handleArrowKey('up', $event)\" />\n </div>\n\n <!-- Command groups and items -->\n <template\n v-for=\"group in paletteState.filteredCommands.value\"\n :key=\"group.label || '100'\">\n <!-- Group label -->\n <div\n v-show=\"group.commands.length > 0\"\n class=\"text-c-3 mt-2 mb-1 px-2 text-xs font-medium\">\n {{ group.label }}\n </div>\n\n <!-- Command items in the group -->\n <button\n v-for=\"command in group.commands\"\n :id=\"command.id\"\n :key=\"command.id\"\n class=\"commandmenu-item hover:bg-b-2 flex w-full cursor-pointer items-center rounded px-2 py-1.5 text-left text-sm\"\n :class=\"{\n 'bg-b-2': command.id === selectedCommand?.id,\n }\"\n type=\"button\"\n @click=\"handleCommandClick(command)\">\n <component\n :is=\"command.icon\"\n v-if=\"'icon' in command\"\n class=\"text-c-2 mr-2.5\"\n size=\"md\"\n thickness=\"1.5\" />\n {{ command.name }}\n </button>\n </template>\n\n <!-- Empty state when no commands match search -->\n <div\n v-if=\"\n !paletteState.filteredCommands.value.flatMap((p) => p.commands)\n .length\n \"\n class=\"text-c-3 p-2 pt-3 text-center text-sm\">\n No commands found\n </div>\n </div>\n\n <!-- Active command view (specific action form) -->\n <div\n v-else\n class=\"flex-1 p-1.5\">\n <!-- Back button to return to command list -->\n <button\n class=\"hover:bg-b-3 text-c-3 active:text-c-1 absolute z-1 mt-[0.5px] rounded p-1.5\"\n type=\"button\"\n @click=\"handleBackEvent\">\n <ScalarIconCaretLeft size=\"md\" />\n </button>\n\n <!-- Dynamic command component -->\n <component\n :is=\"paletteState.activeCommand.value.component\"\n v-if=\"paletteState.activeCommand.value\"\n v-bind=\"paletteProps\"\n @back=\"handleBackEvent\"\n @close=\"handleCloseEvent\" />\n </div>\n </DialogPanel>\n </Dialog>\n</template>\n<style scoped>\n/**\n * Command Palette Styles\n * Centered dialog with fade-in animation and backdrop overlay\n */\n\n/** Main command menu dialog */\n.commandmenu {\n box-shadow: var(--scalar-shadow-2);\n border-radius: var(--scalar-radius-lg);\n background-color: var(--scalar-background-1);\n max-height: 80dvh;\n width: 100%;\n max-width: 580px;\n margin: 12px;\n position: fixed;\n left: 50%;\n top: 150px;\n opacity: 0;\n transform: translate3d(-50%, 10px, 0);\n animation: fadeincommandmenu ease-in-out 0.3s forwards;\n animation-delay: 0.1s;\n}\n\n/** Backdrop overlay with fade-in */\n.commandmenu-overlay {\n position: fixed;\n inset: 0;\n background: rgba(0, 0, 0, 0.2);\n animation: fadeincommand ease-in-out 0.3s forwards;\n cursor: pointer;\n}\n\n/** Fade-in animation for overlay */\n@keyframes fadeincommand {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n/** Fade-in and slide-up animation for command menu */\n@keyframes fadeincommandmenu {\n 0% {\n opacity: 0;\n transform: translate3d(-50%, 10px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3d(-50%, 0, 0);\n }\n}\n</style>\n"],"mappings":"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"}
@@ -1,49 +0,0 @@
1
- import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
- import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
3
- import type { TraversedExample } from '@scalar/workspace-store/schemas/navigation';
4
- /**
5
- * Command Palette Example Component
6
- *
7
- * Provides a form for creating a new example for an API operation.
8
- * Users can name the example, select a document (collection), and choose an operation.
9
- * Automatically navigates to the example route which creates the example.
10
- *
11
- * @example
12
- * <CommandPaletteExample
13
- * :workspaceStore="workspaceStore"
14
- * @close="handleClose"
15
- * @back="handleBack"
16
- * />
17
- */
18
- declare const _default: typeof __VLS_export;
19
- export default _default;
20
- declare const __VLS_export: import("vue").DefineComponent<{
21
- /** The workspace store for accessing documents and operations */
22
- workspaceStore: WorkspaceStore;
23
- /** Event bus for emitting operation creation events */
24
- eventBus: WorkspaceEventBus;
25
- /** Document id to create the example for */
26
- documentName?: string;
27
- /** Preselected path and method to create the example for */
28
- operationId?: string;
29
- /** Existing example for edit mode */
30
- example?: TraversedExample;
31
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
32
- close: () => any;
33
- back: (keyboardEvent: KeyboardEvent) => any;
34
- }, string, import("vue").PublicProps, Readonly<{
35
- /** The workspace store for accessing documents and operations */
36
- workspaceStore: WorkspaceStore;
37
- /** Event bus for emitting operation creation events */
38
- eventBus: WorkspaceEventBus;
39
- /** Document id to create the example for */
40
- documentName?: string;
41
- /** Preselected path and method to create the example for */
42
- operationId?: string;
43
- /** Existing example for edit mode */
44
- example?: TraversedExample;
45
- }> & Readonly<{
46
- onClose?: (() => any) | undefined;
47
- onBack?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
48
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
49
- //# sourceMappingURL=CommandPaletteExample.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommandPaletteExample.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/components/CommandPaletteExample.vue"],"names":[],"mappings":"AAgWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAEV,gBAAgB,EAEjB,MAAM,4CAA4C,CAAA;AASnD;;;;;;;;;;;;;GAaG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAKzC,QAAA,MAAM,YAAY;IAEd,iEAAiE;oBACjD,cAAc;IAC9B,uDAAuD;cAC7C,iBAAiB;IAC3B,4CAA4C;mBAC7B,MAAM;IACrB,4DAA4D;kBAC9C,MAAM;IACpB,qCAAqC;cAC3B,gBAAgB;;;;;IAT1B,iEAAiE;oBACjD,cAAc;IAC9B,uDAAuD;cAC7C,iBAAiB;IAC3B,4CAA4C;mBAC7B,MAAM;IACrB,4DAA4D;kBAC9C,MAAM;IACpB,qCAAqC;cAC3B,gBAAgB;;;;kFA0hB1B,CAAC"}
@@ -1,7 +0,0 @@
1
- import CommandPaletteExample_vue_vue_type_script_setup_true_lang_default from "./CommandPaletteExample.vue.script.js";
2
- //#region src/v2/features/command-palette/components/CommandPaletteExample.vue
3
- var CommandPaletteExample_default = CommandPaletteExample_vue_vue_type_script_setup_true_lang_default;
4
- //#endregion
5
- export { CommandPaletteExample_default as default };
6
-
7
- //# sourceMappingURL=CommandPaletteExample.vue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommandPaletteExample.vue.js","names":[],"sources":["../../../../../src/v2/features/command-palette/components/CommandPaletteExample.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * Command Palette Example Component\n *\n * Provides a form for creating a new example for an API operation.\n * Users can name the example, select a document (collection), and choose an operation.\n * Automatically navigates to the example route which creates the example.\n *\n * @example\n * <CommandPaletteExample\n * :workspaceStore=\"workspaceStore\"\n * @close=\"handleClose\"\n * @back=\"handleBack\"\n * />\n */\nexport default {\n name: 'CommandPaletteExample',\n}\n</script>\n\n<script setup lang=\"ts\">\nimport {\n ScalarButton,\n ScalarDropdown,\n ScalarDropdownItem,\n ScalarIcon,\n ScalarListbox,\n} from '@scalar/components'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport type {\n TraversedEntry,\n TraversedExample,\n TraversedOperation,\n} from '@scalar/workspace-store/schemas/navigation'\nimport { computed, ref, watch } from 'vue'\n\nimport HttpMethodBadge from '@/v2/blocks/operation-code-sample/components/HttpMethod.vue'\n\nimport CommandActionForm from './CommandActionForm.vue'\nimport CommandActionInput from './CommandActionInput.vue'\n\nconst { workspaceStore, eventBus, documentName, operationId, example } =\n defineProps<{\n /** The workspace store for accessing documents and operations */\n workspaceStore: WorkspaceStore\n /** Event bus for emitting operation creation events */\n eventBus: WorkspaceEventBus\n /** Document id to create the example for */\n documentName?: string\n /** Preselected path and method to create the example for */\n operationId?: string\n /** Existing example for edit mode */\n example?: TraversedExample\n }>()\n\nconst emit = defineEmits<{\n /** Emitted when the example is created successfully */\n (event: 'close'): void\n /** Emitted when user navigates back (e.g., backspace on empty input) */\n (event: 'back', keyboardEvent: KeyboardEvent): void\n}>()\n\n/** Operation option type for selectors */\ntype OperationOption = {\n id: string\n label: string\n path: string\n method: HttpMethod\n exampleNames: string[]\n}\n\nconst isEditMode = computed(() => example !== undefined)\n\nconst exampleName = ref(example?.name ?? '')\nconst exampleNameTrimmed = computed(() => exampleName.value.trim())\n\n/** All available documents (collections) in the workspace */\nconst availableDocuments = computed(() =>\n Object.entries(workspaceStore.workspace.documents).map(\n ([name, document]) => ({\n id: name,\n label: document.info.title || name,\n }),\n ),\n)\n\nconst selectedDocument = ref<{ id: string; label: string } | undefined>(\n documentName\n ? availableDocuments.value.find((document) => document.id === documentName)\n : (availableDocuments.value[0] ?? undefined),\n)\n\n/**\n * Recursively traverse navigation entries to find all operations.\n * Operations can be nested under tags or at the document level.\n */\nconst getAllOperations = (entries: TraversedEntry[]): TraversedOperation[] => {\n const operations: TraversedOperation[] = []\n\n for (const entry of entries) {\n if (entry.type === 'operation') {\n operations.push(entry)\n }\n\n /** Recursively traverse child entries if they exist */\n if ('children' in entry && entry.children) {\n operations.push(...getAllOperations(entry.children))\n }\n }\n\n return operations\n}\n\n/** All available operations for the selected document */\nconst availableOperations = computed(() => {\n if (!selectedDocument.value) {\n return []\n }\n\n const document = workspaceStore.workspace.documents[selectedDocument.value.id]\n if (!document || !document['x-scalar-navigation']) {\n return []\n }\n\n const navigation = document['x-scalar-navigation']\n const operations = getAllOperations(navigation.children ?? [])\n\n return operations.map((operation) => ({\n id: operation.id,\n label: `${operation.method.toUpperCase()} ${operation.path}`,\n path: operation.path,\n method: operation.method,\n exampleNames:\n operation.children\n ?.filter((child): child is TraversedExample => child.type === 'example')\n .map((child) => child.name) ?? [],\n }))\n})\n\nconst selectedOperation = ref<OperationOption | undefined>(\n operationId\n ? availableOperations.value.find(\n (operation) => operation.id === operationId,\n )\n : undefined,\n)\n\n/** Reset operation selection when document changes */\nwatch(\n selectedDocument,\n () => {\n selectedOperation.value = operationId\n ? availableOperations.value.find(\n (operation) => operation.id === operationId,\n )\n : (availableOperations.value[0] ?? undefined)\n },\n { immediate: true },\n)\n\n/** Handle operation selection from dropdown */\nconst handleSelect = (operation: OperationOption | undefined): void => {\n if (operation) {\n selectedOperation.value = operation\n }\n}\n\n/**\n * Check if the form should be disabled.\n * Disabled when any required field is missing or empty.\n */\nconst isDisabled = computed<boolean>(() => {\n if (\n !exampleNameTrimmed.value ||\n !selectedDocument.value ||\n !selectedOperation.value\n ) {\n return true\n }\n\n if (isEditMode.value && example) {\n if (exampleNameTrimmed.value === example.name) {\n return true\n }\n }\n\n if (\n selectedOperation.value.exampleNames.some(\n (name) => name === exampleNameTrimmed.value && name !== example?.name,\n )\n ) {\n return true\n }\n\n return false\n})\n\n/**\n * Navigate to the example route which will create it automatically.\n * The route handler will create the example with the provided details.\n */\nconst handleSubmit = (): void => {\n if (isDisabled.value || !selectedDocument.value || !selectedOperation.value) {\n return\n }\n\n if (isEditMode.value && example) {\n eventBus.emit('operation:rename:example', {\n documentName: selectedDocument.value.id,\n meta: {\n path: selectedOperation.value.path,\n method: selectedOperation.value.method,\n exampleKey: example.name,\n },\n payload: {\n name: exampleNameTrimmed.value,\n },\n })\n emit('close')\n return\n }\n\n eventBus.emit('operation:create:draft-example', {\n documentName: selectedDocument.value.id,\n meta: {\n path: selectedOperation.value.path,\n method: selectedOperation.value.method,\n },\n exampleName: exampleNameTrimmed.value,\n })\n\n emit('close')\n}\n\n/** Handle back navigation when user presses backspace on empty input */\nconst handleBack = (event: KeyboardEvent): void => {\n if (isEditMode.value) {\n return\n }\n\n emit('back', event)\n}\n\n/** Handle cancel action in edit mode */\nconst handleCancel = (): void => {\n emit('close')\n}\n</script>\n<template>\n <CommandActionForm\n :disabled=\"isDisabled\"\n @submit=\"handleSubmit\">\n <CommandActionInput\n v-model=\"exampleName\"\n label=\"Example Name\"\n placeholder=\"Example Name\"\n @delete=\"handleBack\" />\n\n <!-- Selectors for document and operation -->\n <template #options>\n <div\n v-if=\"!isEditMode\"\n class=\"flex flex-1 gap-1\">\n <!-- Document (collection) selector -->\n <ScalarListbox\n v-model=\"selectedDocument\"\n :options=\"availableDocuments\">\n <ScalarButton\n class=\"hover:bg-b-2 max-h-8 w-[150px] min-w-[150px] justify-between gap-1 p-2 text-xs\"\n variant=\"outlined\">\n <span :class=\"selectedDocument ? 'text-c-1 truncate' : 'text-c-3'\">\n {{\n selectedDocument ? selectedDocument.label : 'Select Document'\n }}\n </span>\n <ScalarIcon\n class=\"text-c-3\"\n icon=\"ChevronDown\"\n size=\"md\" />\n </ScalarButton>\n </ScalarListbox>\n\n <!-- Operation selector (path + method) -->\n <ScalarDropdown\n placement=\"bottom\"\n resize>\n <ScalarButton\n class=\"hover:bg-b-2 max-h-8 w-full justify-between gap-1 p-2 text-xs\"\n :disabled=\"!availableOperations.length\"\n variant=\"outlined\">\n <span\n v-if=\"selectedOperation\"\n class=\"text-c-1 truncate\">\n {{ selectedOperation.path }}\n </span>\n <span\n v-else\n class=\"text-c-3\">\n Select Operation\n </span>\n <div class=\"flex items-center gap-2\">\n <HttpMethodBadge\n v-if=\"selectedOperation\"\n :method=\"selectedOperation.method\" />\n <ScalarIcon\n class=\"text-c-3\"\n icon=\"ChevronDown\"\n size=\"md\" />\n </div>\n </ScalarButton>\n\n <!-- Dropdown list of all operations -->\n <template #items>\n <div class=\"custom-scroll max-h-40\">\n <ScalarDropdownItem\n v-for=\"operation in availableOperations\"\n :key=\"operation.id\"\n class=\"flex h-7 w-full items-center justify-between px-1 pr-[26px]\"\n @click=\"handleSelect(operation)\">\n <span class=\"truncate\">{{ operation.path }}</span>\n <HttpMethodBadge :method=\"operation.method\" />\n </ScalarDropdownItem>\n </div>\n </template>\n </ScalarDropdown>\n </div>\n\n <ScalarButton\n v-else\n class=\"max-h-8 px-3 text-xs\"\n variant=\"outlined\"\n @click=\"handleCancel\">\n Cancel\n </ScalarButton>\n </template>\n\n <template #submit>{{ isEditMode ? 'Save' : 'Create Example' }}</template>\n </CommandActionForm>\n</template>\n"],"mappings":""}
@@ -1,207 +0,0 @@
1
- import HttpMethod_default from "../../../blocks/operation-code-sample/components/HttpMethod.vue.js";
2
- import CommandActionForm_default from "./CommandActionForm.vue.js";
3
- import CommandActionInput_default from "./CommandActionInput.vue.js";
4
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, toDisplayString, unref, watch, withCtx } from "vue";
5
- import { ScalarButton, ScalarDropdown, ScalarDropdownItem, ScalarIcon, ScalarListbox } from "@scalar/components";
6
- //#region src/v2/features/command-palette/components/CommandPaletteExample.vue?vue&type=script&setup=true&lang.ts
7
- var _hoisted_1 = {
8
- key: 0,
9
- class: "flex flex-1 gap-1"
10
- };
11
- var _hoisted_2 = {
12
- key: 0,
13
- class: "text-c-1 truncate"
14
- };
15
- var _hoisted_3 = {
16
- key: 1,
17
- class: "text-c-3"
18
- };
19
- var _hoisted_4 = { class: "flex items-center gap-2" };
20
- var _hoisted_5 = { class: "custom-scroll max-h-40" };
21
- var _hoisted_6 = { class: "truncate" };
22
- var CommandPaletteExample_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
23
- name: "CommandPaletteExample",
24
- props: {
25
- workspaceStore: {},
26
- eventBus: {},
27
- documentName: {},
28
- operationId: {},
29
- example: {}
30
- },
31
- emits: ["close", "back"],
32
- setup(__props, { emit: __emit }) {
33
- const emit = __emit;
34
- /** Operation option type for selectors */
35
- const isEditMode = computed(() => __props.example !== void 0);
36
- const exampleName = ref(__props.example?.name ?? "");
37
- const exampleNameTrimmed = computed(() => exampleName.value.trim());
38
- /** All available documents (collections) in the workspace */
39
- const availableDocuments = computed(() => Object.entries(__props.workspaceStore.workspace.documents).map(([name, document]) => ({
40
- id: name,
41
- label: document.info.title || name
42
- })));
43
- const selectedDocument = ref(__props.documentName ? availableDocuments.value.find((document) => document.id === __props.documentName) : availableDocuments.value[0] ?? void 0);
44
- /**
45
- * Recursively traverse navigation entries to find all operations.
46
- * Operations can be nested under tags or at the document level.
47
- */
48
- const getAllOperations = (entries) => {
49
- const operations = [];
50
- for (const entry of entries) {
51
- if (entry.type === "operation") operations.push(entry);
52
- /** Recursively traverse child entries if they exist */
53
- if ("children" in entry && entry.children) operations.push(...getAllOperations(entry.children));
54
- }
55
- return operations;
56
- };
57
- /** All available operations for the selected document */
58
- const availableOperations = computed(() => {
59
- if (!selectedDocument.value) return [];
60
- const document = __props.workspaceStore.workspace.documents[selectedDocument.value.id];
61
- if (!document || !document["x-scalar-navigation"]) return [];
62
- const navigation = document["x-scalar-navigation"];
63
- return getAllOperations(navigation.children ?? []).map((operation) => ({
64
- id: operation.id,
65
- label: `${operation.method.toUpperCase()} ${operation.path}`,
66
- path: operation.path,
67
- method: operation.method,
68
- exampleNames: operation.children?.filter((child) => child.type === "example").map((child) => child.name) ?? []
69
- }));
70
- });
71
- const selectedOperation = ref(__props.operationId ? availableOperations.value.find((operation) => operation.id === __props.operationId) : void 0);
72
- /** Reset operation selection when document changes */
73
- watch(selectedDocument, () => {
74
- selectedOperation.value = __props.operationId ? availableOperations.value.find((operation) => operation.id === __props.operationId) : availableOperations.value[0] ?? void 0;
75
- }, { immediate: true });
76
- /** Handle operation selection from dropdown */
77
- const handleSelect = (operation) => {
78
- if (operation) selectedOperation.value = operation;
79
- };
80
- /**
81
- * Check if the form should be disabled.
82
- * Disabled when any required field is missing or empty.
83
- */
84
- const isDisabled = computed(() => {
85
- if (!exampleNameTrimmed.value || !selectedDocument.value || !selectedOperation.value) return true;
86
- if (isEditMode.value && __props.example) {
87
- if (exampleNameTrimmed.value === __props.example.name) return true;
88
- }
89
- if (selectedOperation.value.exampleNames.some((name) => name === exampleNameTrimmed.value && name !== __props.example?.name)) return true;
90
- return false;
91
- });
92
- /**
93
- * Navigate to the example route which will create it automatically.
94
- * The route handler will create the example with the provided details.
95
- */
96
- const handleSubmit = () => {
97
- if (isDisabled.value || !selectedDocument.value || !selectedOperation.value) return;
98
- if (isEditMode.value && __props.example) {
99
- __props.eventBus.emit("operation:rename:example", {
100
- documentName: selectedDocument.value.id,
101
- meta: {
102
- path: selectedOperation.value.path,
103
- method: selectedOperation.value.method,
104
- exampleKey: __props.example.name
105
- },
106
- payload: { name: exampleNameTrimmed.value }
107
- });
108
- emit("close");
109
- return;
110
- }
111
- __props.eventBus.emit("operation:create:draft-example", {
112
- documentName: selectedDocument.value.id,
113
- meta: {
114
- path: selectedOperation.value.path,
115
- method: selectedOperation.value.method
116
- },
117
- exampleName: exampleNameTrimmed.value
118
- });
119
- emit("close");
120
- };
121
- /** Handle back navigation when user presses backspace on empty input */
122
- const handleBack = (event) => {
123
- if (isEditMode.value) return;
124
- emit("back", event);
125
- };
126
- /** Handle cancel action in edit mode */
127
- const handleCancel = () => {
128
- emit("close");
129
- };
130
- return (_ctx, _cache) => {
131
- return openBlock(), createBlock(CommandActionForm_default, {
132
- disabled: isDisabled.value,
133
- onSubmit: handleSubmit
134
- }, {
135
- options: withCtx(() => [!isEditMode.value ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(ScalarListbox), {
136
- modelValue: selectedDocument.value,
137
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedDocument.value = $event),
138
- options: availableDocuments.value
139
- }, {
140
- default: withCtx(() => [createVNode(unref(ScalarButton), {
141
- class: "hover:bg-b-2 max-h-8 w-[150px] min-w-[150px] justify-between gap-1 p-2 text-xs",
142
- variant: "outlined"
143
- }, {
144
- default: withCtx(() => [createElementVNode("span", { class: normalizeClass(selectedDocument.value ? "text-c-1 truncate" : "text-c-3") }, toDisplayString(selectedDocument.value ? selectedDocument.value.label : "Select Document"), 3), createVNode(unref(ScalarIcon), {
145
- class: "text-c-3",
146
- icon: "ChevronDown",
147
- size: "md"
148
- })]),
149
- _: 1
150
- })]),
151
- _: 1
152
- }, 8, ["modelValue", "options"]), createVNode(unref(ScalarDropdown), {
153
- placement: "bottom",
154
- resize: ""
155
- }, {
156
- items: withCtx(() => [createElementVNode("div", _hoisted_5, [(openBlock(true), createElementBlock(Fragment, null, renderList(availableOperations.value, (operation) => {
157
- return openBlock(), createBlock(unref(ScalarDropdownItem), {
158
- key: operation.id,
159
- class: "flex h-7 w-full items-center justify-between px-1 pr-[26px]",
160
- onClick: ($event) => handleSelect(operation)
161
- }, {
162
- default: withCtx(() => [createElementVNode("span", _hoisted_6, toDisplayString(operation.path), 1), createVNode(HttpMethod_default, { method: operation.method }, null, 8, ["method"])]),
163
- _: 2
164
- }, 1032, ["onClick"]);
165
- }), 128))])]),
166
- default: withCtx(() => [createVNode(unref(ScalarButton), {
167
- class: "hover:bg-b-2 max-h-8 w-full justify-between gap-1 p-2 text-xs",
168
- disabled: !availableOperations.value.length,
169
- variant: "outlined"
170
- }, {
171
- default: withCtx(() => [selectedOperation.value ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(selectedOperation.value.path), 1)) : (openBlock(), createElementBlock("span", _hoisted_3, " Select Operation ")), createElementVNode("div", _hoisted_4, [selectedOperation.value ? (openBlock(), createBlock(HttpMethod_default, {
172
- key: 0,
173
- method: selectedOperation.value.method
174
- }, null, 8, ["method"])) : createCommentVNode("", true), createVNode(unref(ScalarIcon), {
175
- class: "text-c-3",
176
- icon: "ChevronDown",
177
- size: "md"
178
- })])]),
179
- _: 1
180
- }, 8, ["disabled"])]),
181
- _: 1
182
- })])) : (openBlock(), createBlock(unref(ScalarButton), {
183
- key: 1,
184
- class: "max-h-8 px-3 text-xs",
185
- variant: "outlined",
186
- onClick: handleCancel
187
- }, {
188
- default: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode(" Cancel ", -1)])]),
189
- _: 1
190
- }))]),
191
- submit: withCtx(() => [createTextVNode(toDisplayString(isEditMode.value ? "Save" : "Create Example"), 1)]),
192
- default: withCtx(() => [createVNode(CommandActionInput_default, {
193
- modelValue: exampleName.value,
194
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => exampleName.value = $event),
195
- label: "Example Name",
196
- placeholder: "Example Name",
197
- onDelete: handleBack
198
- }, null, 8, ["modelValue"])]),
199
- _: 1
200
- }, 8, ["disabled"]);
201
- };
202
- }
203
- });
204
- //#endregion
205
- export { CommandPaletteExample_vue_vue_type_script_setup_true_lang_default as default };
206
-
207
- //# sourceMappingURL=CommandPaletteExample.vue.script.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommandPaletteExample.vue.script.js","names":[],"sources":["../../../../../src/v2/features/command-palette/components/CommandPaletteExample.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * Command Palette Example Component\n *\n * Provides a form for creating a new example for an API operation.\n * Users can name the example, select a document (collection), and choose an operation.\n * Automatically navigates to the example route which creates the example.\n *\n * @example\n * <CommandPaletteExample\n * :workspaceStore=\"workspaceStore\"\n * @close=\"handleClose\"\n * @back=\"handleBack\"\n * />\n */\nexport default {\n name: 'CommandPaletteExample',\n}\n</script>\n\n<script setup lang=\"ts\">\nimport {\n ScalarButton,\n ScalarDropdown,\n ScalarDropdownItem,\n ScalarIcon,\n ScalarListbox,\n} from '@scalar/components'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport type {\n TraversedEntry,\n TraversedExample,\n TraversedOperation,\n} from '@scalar/workspace-store/schemas/navigation'\nimport { computed, ref, watch } from 'vue'\n\nimport HttpMethodBadge from '@/v2/blocks/operation-code-sample/components/HttpMethod.vue'\n\nimport CommandActionForm from './CommandActionForm.vue'\nimport CommandActionInput from './CommandActionInput.vue'\n\nconst { workspaceStore, eventBus, documentName, operationId, example } =\n defineProps<{\n /** The workspace store for accessing documents and operations */\n workspaceStore: WorkspaceStore\n /** Event bus for emitting operation creation events */\n eventBus: WorkspaceEventBus\n /** Document id to create the example for */\n documentName?: string\n /** Preselected path and method to create the example for */\n operationId?: string\n /** Existing example for edit mode */\n example?: TraversedExample\n }>()\n\nconst emit = defineEmits<{\n /** Emitted when the example is created successfully */\n (event: 'close'): void\n /** Emitted when user navigates back (e.g., backspace on empty input) */\n (event: 'back', keyboardEvent: KeyboardEvent): void\n}>()\n\n/** Operation option type for selectors */\ntype OperationOption = {\n id: string\n label: string\n path: string\n method: HttpMethod\n exampleNames: string[]\n}\n\nconst isEditMode = computed(() => example !== undefined)\n\nconst exampleName = ref(example?.name ?? '')\nconst exampleNameTrimmed = computed(() => exampleName.value.trim())\n\n/** All available documents (collections) in the workspace */\nconst availableDocuments = computed(() =>\n Object.entries(workspaceStore.workspace.documents).map(\n ([name, document]) => ({\n id: name,\n label: document.info.title || name,\n }),\n ),\n)\n\nconst selectedDocument = ref<{ id: string; label: string } | undefined>(\n documentName\n ? availableDocuments.value.find((document) => document.id === documentName)\n : (availableDocuments.value[0] ?? undefined),\n)\n\n/**\n * Recursively traverse navigation entries to find all operations.\n * Operations can be nested under tags or at the document level.\n */\nconst getAllOperations = (entries: TraversedEntry[]): TraversedOperation[] => {\n const operations: TraversedOperation[] = []\n\n for (const entry of entries) {\n if (entry.type === 'operation') {\n operations.push(entry)\n }\n\n /** Recursively traverse child entries if they exist */\n if ('children' in entry && entry.children) {\n operations.push(...getAllOperations(entry.children))\n }\n }\n\n return operations\n}\n\n/** All available operations for the selected document */\nconst availableOperations = computed(() => {\n if (!selectedDocument.value) {\n return []\n }\n\n const document = workspaceStore.workspace.documents[selectedDocument.value.id]\n if (!document || !document['x-scalar-navigation']) {\n return []\n }\n\n const navigation = document['x-scalar-navigation']\n const operations = getAllOperations(navigation.children ?? [])\n\n return operations.map((operation) => ({\n id: operation.id,\n label: `${operation.method.toUpperCase()} ${operation.path}`,\n path: operation.path,\n method: operation.method,\n exampleNames:\n operation.children\n ?.filter((child): child is TraversedExample => child.type === 'example')\n .map((child) => child.name) ?? [],\n }))\n})\n\nconst selectedOperation = ref<OperationOption | undefined>(\n operationId\n ? availableOperations.value.find(\n (operation) => operation.id === operationId,\n )\n : undefined,\n)\n\n/** Reset operation selection when document changes */\nwatch(\n selectedDocument,\n () => {\n selectedOperation.value = operationId\n ? availableOperations.value.find(\n (operation) => operation.id === operationId,\n )\n : (availableOperations.value[0] ?? undefined)\n },\n { immediate: true },\n)\n\n/** Handle operation selection from dropdown */\nconst handleSelect = (operation: OperationOption | undefined): void => {\n if (operation) {\n selectedOperation.value = operation\n }\n}\n\n/**\n * Check if the form should be disabled.\n * Disabled when any required field is missing or empty.\n */\nconst isDisabled = computed<boolean>(() => {\n if (\n !exampleNameTrimmed.value ||\n !selectedDocument.value ||\n !selectedOperation.value\n ) {\n return true\n }\n\n if (isEditMode.value && example) {\n if (exampleNameTrimmed.value === example.name) {\n return true\n }\n }\n\n if (\n selectedOperation.value.exampleNames.some(\n (name) => name === exampleNameTrimmed.value && name !== example?.name,\n )\n ) {\n return true\n }\n\n return false\n})\n\n/**\n * Navigate to the example route which will create it automatically.\n * The route handler will create the example with the provided details.\n */\nconst handleSubmit = (): void => {\n if (isDisabled.value || !selectedDocument.value || !selectedOperation.value) {\n return\n }\n\n if (isEditMode.value && example) {\n eventBus.emit('operation:rename:example', {\n documentName: selectedDocument.value.id,\n meta: {\n path: selectedOperation.value.path,\n method: selectedOperation.value.method,\n exampleKey: example.name,\n },\n payload: {\n name: exampleNameTrimmed.value,\n },\n })\n emit('close')\n return\n }\n\n eventBus.emit('operation:create:draft-example', {\n documentName: selectedDocument.value.id,\n meta: {\n path: selectedOperation.value.path,\n method: selectedOperation.value.method,\n },\n exampleName: exampleNameTrimmed.value,\n })\n\n emit('close')\n}\n\n/** Handle back navigation when user presses backspace on empty input */\nconst handleBack = (event: KeyboardEvent): void => {\n if (isEditMode.value) {\n return\n }\n\n emit('back', event)\n}\n\n/** Handle cancel action in edit mode */\nconst handleCancel = (): void => {\n emit('close')\n}\n</script>\n<template>\n <CommandActionForm\n :disabled=\"isDisabled\"\n @submit=\"handleSubmit\">\n <CommandActionInput\n v-model=\"exampleName\"\n label=\"Example Name\"\n placeholder=\"Example Name\"\n @delete=\"handleBack\" />\n\n <!-- Selectors for document and operation -->\n <template #options>\n <div\n v-if=\"!isEditMode\"\n class=\"flex flex-1 gap-1\">\n <!-- Document (collection) selector -->\n <ScalarListbox\n v-model=\"selectedDocument\"\n :options=\"availableDocuments\">\n <ScalarButton\n class=\"hover:bg-b-2 max-h-8 w-[150px] min-w-[150px] justify-between gap-1 p-2 text-xs\"\n variant=\"outlined\">\n <span :class=\"selectedDocument ? 'text-c-1 truncate' : 'text-c-3'\">\n {{\n selectedDocument ? selectedDocument.label : 'Select Document'\n }}\n </span>\n <ScalarIcon\n class=\"text-c-3\"\n icon=\"ChevronDown\"\n size=\"md\" />\n </ScalarButton>\n </ScalarListbox>\n\n <!-- Operation selector (path + method) -->\n <ScalarDropdown\n placement=\"bottom\"\n resize>\n <ScalarButton\n class=\"hover:bg-b-2 max-h-8 w-full justify-between gap-1 p-2 text-xs\"\n :disabled=\"!availableOperations.length\"\n variant=\"outlined\">\n <span\n v-if=\"selectedOperation\"\n class=\"text-c-1 truncate\">\n {{ selectedOperation.path }}\n </span>\n <span\n v-else\n class=\"text-c-3\">\n Select Operation\n </span>\n <div class=\"flex items-center gap-2\">\n <HttpMethodBadge\n v-if=\"selectedOperation\"\n :method=\"selectedOperation.method\" />\n <ScalarIcon\n class=\"text-c-3\"\n icon=\"ChevronDown\"\n size=\"md\" />\n </div>\n </ScalarButton>\n\n <!-- Dropdown list of all operations -->\n <template #items>\n <div class=\"custom-scroll max-h-40\">\n <ScalarDropdownItem\n v-for=\"operation in availableOperations\"\n :key=\"operation.id\"\n class=\"flex h-7 w-full items-center justify-between px-1 pr-[26px]\"\n @click=\"handleSelect(operation)\">\n <span class=\"truncate\">{{ operation.path }}</span>\n <HttpMethodBadge :method=\"operation.method\" />\n </ScalarDropdownItem>\n </div>\n </template>\n </ScalarDropdown>\n </div>\n\n <ScalarButton\n v-else\n class=\"max-h-8 px-3 text-xs\"\n variant=\"outlined\"\n @click=\"handleCancel\">\n Cancel\n </ScalarButton>\n </template>\n\n <template #submit>{{ isEditMode ? 'Save' : 'Create Example' }}</template>\n </CommandActionForm>\n</template>\n"],"mappings":"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"}
@@ -1,53 +0,0 @@
1
- import type { LoaderPlugin } from '@scalar/json-magic/bundle';
2
- import { type WorkspaceStore } from '@scalar/workspace-store/client';
3
- import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
4
- /**
5
- * Command Palette Import Component
6
- *
7
- * Provides a form for importing OpenAPI descriptions from URL, file, or pasted JSON/YAML.
8
- * Postman collection JSON and Postman files open {@link CommandPaletteImportPostman}.
9
- * cURL commands redirect to {@link CommandPaletteImportCurl}.
10
- *
11
- * Supports watch mode for URL imports to automatically update when content changes.
12
- */
13
- declare const _default: typeof __VLS_export;
14
- export default _default;
15
- declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
16
- /** The workspace store for adding documents */
17
- workspaceStore: WorkspaceStore;
18
- /** Event bus for emitting operation creation events */
19
- eventBus: WorkspaceEventBus;
20
- /** Loader plugin for file import */
21
- fileLoader?: LoaderPlugin;
22
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
23
- close: () => any;
24
- back: (keyboardEvent: KeyboardEvent) => any;
25
- }, string, import("vue").PublicProps, Readonly<{
26
- /** The workspace store for adding documents */
27
- workspaceStore: WorkspaceStore;
28
- /** Event bus for emitting operation creation events */
29
- eventBus: WorkspaceEventBus;
30
- /** Loader plugin for file import */
31
- fileLoader?: LoaderPlugin;
32
- }> & Readonly<{
33
- onClose?: (() => any) | undefined;
34
- onBack?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
35
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
36
- /**
37
- * Slot for custom file upload component that can trigger import.
38
- *
39
- * The provided `import` function automatically detects Postman collections
40
- * and routes them to the Postman import modal, matching the behavior of the
41
- * default file picker.
42
- */
43
- fileUpload(props: {
44
- /** Function to trigger import with source content and type */
45
- import: (source: string, type: "file" | "raw") => Promise<void>;
46
- }): void;
47
- }>;
48
- type __VLS_WithSlots<T, S> = T & {
49
- new (): {
50
- $slots: S;
51
- };
52
- };
53
- //# sourceMappingURL=CommandPaletteImport.vue.d.ts.map