@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":"AppSidebar.vue.js","names":[],"sources":["../../../../../src/v2/features/app/components/AppSidebar.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n ScalarIconButton,\n ScalarModal,\n ScalarSidebar,\n ScalarSidebarButton,\n ScalarSidebarItems,\n ScalarSidebarSearchInput,\n ScalarSidebarSection,\n useModal,\n} from '@scalar/components'\nimport {\n ScalarIconFolderDashed,\n ScalarIconFunnel,\n ScalarIconGearSix,\n ScalarIconPlus,\n} from '@scalar/icons'\nimport type { DraggingItem, HoveredItem } from '@scalar/sidebar'\nimport { useToasts } from '@scalar/use-toasts'\nimport { getParentEntry } from '@scalar/workspace-store/navigation'\nimport type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation'\nimport { computed, onBeforeMount, onBeforeUnmount, ref } from 'vue'\n\nimport DeleteSidebarListElement from '@/components/Sidebar/Actions/DeleteSidebarListElement.vue'\nimport { Resize } from '@/v2/components/resize'\nimport type { AppState } from '@/v2/features/app'\nimport SidebarDocument from '@/v2/features/app/components/SidebarDocument.vue'\nimport SidebarItemMenu from '@/v2/features/app/components/SidebarItemMenu.vue'\nimport { createTempOperation } from '@/v2/features/app/helpers/create-temp-operation'\nimport { loadRegistryDocument } from '@/v2/features/app/helpers/load-registry-document'\nimport { useDocumentFilter } from '@/v2/features/app/hooks/use-document-filter'\nimport { useSidebarContextMenu } from '@/v2/features/app/hooks/use-sidebar-context-menu'\nimport {\n useSidebarDocuments,\n type SidebarDocumentItem,\n} from '@/v2/features/app/hooks/use-sidebar-documents'\nimport { DocumentSearchModal } from '@/v2/features/search'\nimport { dragHandleFactory } from '@/v2/helpers/drag-handle-factory'\nimport { safeRun } from '@/v2/helpers/safe-run'\nimport type {\n ImportDocumentFromRegistry,\n RegistryDocumentsState,\n} from '@/v2/types/configuration'\n\nconst {\n app,\n indent = 20,\n registryDocuments = { status: 'success', documents: [] },\n fetchRegistryDocument,\n} = defineProps<{\n /** The app state from @scalar/api-client. */\n app: AppState\n /** Horizontal indent applied to nested sidebar items, in pixels. */\n indent?: number\n /**\n * The list of all available registry documents, wrapped in a loading state\n * so the sidebar can render skeleton placeholders while the registry is\n * still being fetched.\n */\n registryDocuments?: RegistryDocumentsState\n /** A function to fetch a registry document */\n fetchRegistryDocument?: ImportDocumentFromRegistry\n}>()\n\nconst { toast } = useToasts()\n\n/**\n * Whether the caller is still fetching the list of registry documents. We\n * only surface the loading state on team workspaces because local workspaces\n * never consult the registry\n */\nconst isLoadingRegistry = computed(\n () =>\n registryDocuments.status === 'loading' &&\n app.workspace.isTeamWorkspace.value,\n)\n\nconst { pinned, rest } = useSidebarDocuments({\n app,\n managedDocs: () => registryDocuments.documents ?? [],\n})\n\n/**\n * Whether the workspace truly has no documents to show. Distinct from the\n * filter producing no results: we only surface the \"No APIs yet\" empty state\n * when the workspace is genuinely empty so users see a clear call-to-action\n * instead of a confusing blank space.\n */\nconst isEmpty = computed(\n () => !isLoadingRegistry.value && rest.value.length === 0,\n)\n\n/**\n * Fuzzy filter over the top-level documents. Owns its own input visibility,\n * query string and Fuse index. See `use-document-filter.ts` for details.\n */\nconst {\n isVisible: isFilterVisible,\n query: filterQuery,\n filteredItems: filteredRest,\n toggle: toggleFilter,\n} = useDocumentFilter(rest)\n\nconst sidebarState = app.sidebar.state\n\n/** Which registry documents are currently being fetched. */\nconst loadingKeys = ref<Record<string, boolean>>({})\n\n/**\n * Check if the given {@link SidebarDocumentItem} is the currently active document (from the sidebar state).\n */\nconst isDocActive = (item: SidebarDocumentItem) => {\n if (!item.navigation) {\n return false\n }\n\n return (\n sidebarState.selectedItem.value === item.navigation.id ||\n Boolean(sidebarState.selectedItems.value[item.navigation.id])\n )\n}\n\nconst handleDocumentClick = async (item: SidebarDocumentItem) => {\n if (item.navigation) {\n app.sidebar.handleSelectItem(item.navigation.id)\n return\n }\n\n // Capture the narrowed values into locals so the closure passed to\n // `safeRun` keeps the non-nullable types without needing assertions, and\n // so a later mutation to `item.registry` or `app.store.value` cannot\n // change what we end up loading mid-flight.\n const { registry } = item\n const workspaceStore = app.store.value\n if (!registry || !workspaceStore) {\n console.warn('Document does not have a sidebar navigation, skipping...')\n return\n }\n\n if (!fetchRegistryDocument) {\n console.warn(\n 'You need to provide a fetchRegistryDocument function to load registry documents',\n )\n return\n }\n\n if (loadingKeys.value[item.key]) {\n return\n }\n\n loadingKeys.value[item.key] = true\n\n // Registry items expose every version they advertise on `versions`, ordered\n // with the latest first. Until we surface a version picker on the parent\n // row we always load whichever version is at the top of the list, which is\n // the latest one. Falling back to `undefined` lets the loader default to\n // the registry's `latest` alias when the entry was synthesized from a\n // workspace document that has no advertised versions yet.\n const targetVersion = item.versions?.[0]\n\n // The loader can throw on network errors or malformed payloads. `safeRun`\n // converts a rejection into an `{ ok: false, error }` result so a single\n // failure cannot leave the row's spinner running forever and block\n // subsequent clicks on the same item.\n const outcome = await safeRun(() =>\n loadRegistryDocument({\n fetcher: fetchRegistryDocument,\n workspaceStore,\n namespace: registry.namespace,\n slug: registry.slug,\n version: targetVersion?.version,\n }),\n )\n\n loadingKeys.value[item.key] = false\n\n if (!outcome.ok) {\n toast(outcome.error, 'error')\n return\n }\n\n const result = outcome.data\n if (!result.ok) {\n toast(result.error, 'error')\n return\n }\n\n // After loading, route to the document overview. `syncSidebar` will then\n // mark the document as selected and the template's `:open=\"isDocActive\"`\n // binding drills the sidebar in automatically — no local state needed.\n app.eventBus.emit('ui:navigate', {\n page: 'document',\n path: 'overview',\n documentSlug: result.documentName,\n })\n}\n\nconst isSelected = (id: string) => sidebarState.isSelected(id)\nconst isExpanded = (id: string) => sidebarState.isExpanded(id)\n\nconst handleSelectItem = (id: string) => {\n app.sidebar.handleSelectItem(id)\n}\n\nconst handleToggleGroup = (id: string) => {\n sidebarState.setExpanded(id, !sidebarState.isExpanded(id))\n}\n\n/**\n * Drag-and-drop handlers for sidebar items. The factory reads from the live\n * workspace store and shared sidebar state, so it reflects the latest\n * navigation tree on every drag. Mirrors the behaviour of the old\n * `AppSidebar.vue` (documents, tags, and operations can be reordered, and\n * operations can be moved between tags/documents).\n */\nconst dragHandlers = computed(() =>\n dragHandleFactory({\n store: app.store,\n sidebarState,\n }),\n)\n\nconst handleDragEnd = (\n draggingItem: DraggingItem,\n hoveredItem: HoveredItem,\n): boolean => dragHandlers.value.handleDragEnd(draggingItem, hoveredItem)\n\nconst isDroppable = (\n draggingItem: DraggingItem,\n hoveredItem: HoveredItem,\n): boolean => dragHandlers.value.isDroppable(draggingItem, hoveredItem)\n\n/**\n * Contextual \"more\" dropdown for tags, operations and examples, together\n * with the shared delete-confirmation modal it triggers.\n */\nconst {\n menuTarget,\n deleteModalState,\n deleteMessage,\n openMenu,\n closeMenu,\n handleDelete,\n} = useSidebarContextMenu({\n eventBus: app.eventBus,\n sidebarState,\n})\n\n/**\n * Create a new operation from an empty folder slot inside a tag or document.\n * If the entry is a tag, the new operation inherits that tag so it stays\n * grouped under the same folder.\n */\nconst handleAddEmptyFolder = (item: TraversedEntry) => {\n const itemWithParent = sidebarState.getEntryById(item.id)\n const documentName = getParentEntry('document', itemWithParent)?.name\n const tagName = getParentEntry('tag', itemWithParent)?.name\n const store = app.store.value\n\n if (!documentName || !store) {\n console.error('Document name not found')\n return\n }\n\n createTempOperation(documentName, {\n existingPaths: new Set(\n Object.keys(store.workspace.documents[documentName]?.paths ?? {}),\n ),\n eventBus: app.eventBus,\n tags: tagName ? [tagName] : undefined,\n })\n}\n\nconst handleCreate = () => {\n app.eventBus.emit('ui:open:command-palette', {\n action: 'create-openapi-document',\n payload: undefined,\n })\n}\n\n/**\n * Create a new operation inside the given document and immediately navigate to\n * it. Uses `createTempOperation` so the operation gets a unique `/temp…` path,\n * then the sidebar focuses the new example and the address bar is focused so\n * the user can start typing the real path right away.\n */\nconst handleCreateOperation = (item: SidebarDocumentItem) => {\n const documentName = item.documentName\n const store = app.store.value\n\n if (!documentName || !store) {\n console.warn('Cannot create an operation: no document loaded')\n return\n }\n\n createTempOperation(documentName, {\n existingPaths: new Set(\n Object.keys(store.workspace.documents[documentName]?.paths ?? {}),\n ),\n eventBus: app.eventBus,\n })\n}\n\n/**\n * Navigates back to the workspace \"Get started\" page.\n */\nconst handleBack = () => {\n app.eventBus.emit('ui:navigate', {\n page: 'workspace',\n path: 'get-started',\n })\n}\n\n/**\n * True when the user is currently viewing a document (any of its subpages).\n * When inside a document, the sidebar actions are scoped to that document:\n * the gear icon opens the document (collection) settings and the filter icon\n * becomes a search icon that focuses the search input.\n */\nconst isOnDocumentPage = computed(() =>\n Boolean(app.activeEntities.documentSlug.value),\n)\n\nconst handleOpenSettings = () => {\n if (isOnDocumentPage.value) {\n app.eventBus.emit('ui:navigate', {\n page: 'document',\n path: 'settings',\n documentSlug: app.activeEntities.documentSlug.value,\n })\n return\n }\n\n app.eventBus.emit('ui:navigate', {\n page: 'workspace',\n path: 'settings',\n })\n}\n\n/**\n * Controls the per-document search modal. Only used when the user is drilled\n * into a single document and clicks the magnifying-glass icon.\n */\nconst searchModal = useModal()\n\n/**\n * The OpenAPI document currently selected in the workspace. The search modal\n * scopes its Fuse index to this document so results never leak across\n * collections.\n */\nconst activeDocument = computed(() => app.store.value?.workspace.activeDocument)\n\nconst handleFilterOrSearch = () => {\n // Inside a document, this icon opens a modal search that is scoped to that\n // single document (similar to the reference search modal), so users can jump\n // to any operation / tag / heading without noise from other documents.\n if (isOnDocumentPage.value) {\n searchModal.show()\n return\n }\n\n // At the top-level documents view, the icon toggles a lightweight filter\n // that narrows the visible documents by title.\n toggleFilter()\n}\n\n/**\n * Handle the `ui:focus:search` event. Dispatch is driven by the shared\n * `handleHotkeys` helper (Cmd/Ctrl+J) or by programmatic callers such as the\n * workspace \"Get started\" page. When a `KeyboardEvent` is included we\n * preventDefault to override the browser's Cmd+J (downloads panel), then\n * delegate to `handleFilterOrSearch`, which already branches on whether the\n * user is viewing a document or the workspace root.\n */\nconst handleSearchHotkey = (payload: { event: KeyboardEvent } | undefined) => {\n payload?.event.preventDefault()\n handleFilterOrSearch()\n}\n\n/**\n * Handle the `ui:open:settings` event (Cmd/Ctrl+I). Same delegation model as\n * `handleSearchHotkey`: preventDefault on the originating keyboard event (if\n * any) and hand off to `handleOpenSettings`, which routes to the document-\n * level settings page when a document is active and the workspace-level\n * settings page otherwise.\n */\nconst handleSettingsHotkey = (\n payload: { event: KeyboardEvent } | undefined,\n) => {\n payload?.event.preventDefault()\n handleOpenSettings()\n}\n\nonBeforeMount(() => {\n app.eventBus.on('ui:focus:search', handleSearchHotkey)\n app.eventBus.on('ui:open:settings', handleSettingsHotkey)\n})\nonBeforeUnmount(() => {\n app.eventBus.off('ui:focus:search', handleSearchHotkey)\n app.eventBus.off('ui:open:settings', handleSettingsHotkey)\n})\n\n/**\n * Navigate to the selected search result. `scroll-to:nav-item` is already\n * wired up through the app event bus to update the sidebar + route, matching\n * the behaviour used elsewhere in the app.\n */\nconst handleSearchSelect = (id: string) => {\n app.eventBus.emit('scroll-to:nav-item', { id })\n}\n\n/** Controls the width of the sidebar */\nconst sidebarWidth = defineModel<number>('sidebarWidth', {\n required: true,\n default: 288,\n})\n</script>\n\n<template>\n <Resize\n v-model:width=\"sidebarWidth\"\n class=\"flex flex-col max-md:inset-y-0 max-md:z-2 max-md:w-full!\"\n :class=\"{\n 'max-md:absolute! max-md:flex!': app.sidebar.isOpen.value,\n 'max-md:hidden!': !app.sidebar.isOpen.value,\n }\">\n <template #default>\n <div class=\"flex flex-1\">\n <ScalarSidebar\n class=\"flex min-h-0 flex-1 flex-col max-md:pt-12\"\n :style=\"{ '--scalar-sidebar-indent': indent + 'px' }\">\n <!-- Top-level sidebar header -->\n <div\n v-if=\"!isOnDocumentPage\"\n class=\"flex flex-col gap-1.5 p-(--scalar-sidebar-padding)\">\n <div class=\"flex items-center gap-1\">\n <ScalarSidebarButton\n is=\"div\"\n class=\"text-sidebar-c-1 font-sidebar-active flex-1\"\n disabled>\n All Documents\n </ScalarSidebarButton>\n <ScalarIconButton\n :icon=\"ScalarIconGearSix\"\n label=\"Workspace settings\"\n size=\"sm\"\n @click=\"handleOpenSettings\" />\n <ScalarIconButton\n :icon=\"ScalarIconFunnel\"\n label=\"Filter documents\"\n size=\"sm\"\n @click=\"handleFilterOrSearch\" />\n <ScalarIconButton\n class=\"rounded-full border\"\n :icon=\"ScalarIconPlus\"\n label=\"Add document\"\n size=\"sm\"\n @click=\"handleCreate\" />\n </div>\n <ScalarSidebarSearchInput\n v-if=\"isFilterVisible\"\n v-model=\"filterQuery\"\n autofocus />\n </div>\n\n <!-- Document list (top-level) -->\n <div class=\"custom-scroll flex flex-1 flex-col\">\n <!--\n Empty state: no documents in the workspace yet. Matches the\n minimal `empty folder` appearance.\n -->\n <div\n v-if=\"isEmpty && !isOnDocumentPage\"\n class=\"text-c-3 flex flex-1 flex-col items-center justify-center gap-2 p-6 text-center select-none\">\n <ScalarIconFolderDashed\n class=\"size-10\"\n weight=\"light\" />\n <p class=\"text-sm font-medium\">Nothing added yet</p>\n </div>\n <ScalarSidebarItems v-else>\n <!-- Show pinned documents after we add support for it -->\n <ScalarSidebarSection v-if=\"pinned.length\">\n <template\n v-if=\"pinned.length && rest.length\"\n #default>\n Pinned\n </template>\n <template #items>\n <SidebarDocument\n v-for=\"item in pinned\"\n :key=\"item.key\"\n :active=\"isDocActive(item)\"\n :isDroppable=\"isDroppable\"\n :isExpanded=\"isExpanded\"\n :isSelected=\"isSelected\"\n :item=\"item\"\n :loading=\"loadingKeys[item.key]\"\n :open=\"isDocActive(item)\"\n @addEmptyFolder=\"handleAddEmptyFolder\"\n @back=\"handleBack\"\n @click=\"handleDocumentClick(item)\"\n @createOperation=\"handleCreateOperation\"\n @dragEnd=\"handleDragEnd\"\n @openMenu=\"openMenu\"\n @openSettings=\"handleOpenSettings\"\n @search=\"handleFilterOrSearch\"\n @selectItem=\"handleSelectItem\"\n @toggleGroup=\"handleToggleGroup\" />\n </template>\n </ScalarSidebarSection>\n\n <ScalarSidebarSection>\n <template\n v-if=\"pinned.length && rest.length\"\n #default>\n All documents\n </template>\n <template #items>\n <!--\n Skeleton rows shown while the caller is still fetching\n the registry document list. We only render skeletons in\n the top-level view (when no document is drilled-in) so\n the collection view is never masked by placeholders.\n -->\n <template v-if=\"isLoadingRegistry && !isOnDocumentPage\">\n <li\n v-for=\"n in 4\"\n :key=\"`registry-skeleton-${n}`\"\n aria-hidden=\"true\"\n class=\"sidebar-skeleton-row px-(--scalar-sidebar-padding) py-1\">\n <span class=\"bg-b-3 block h-6 rounded-md\" />\n </li>\n </template>\n <SidebarDocument\n v-for=\"item in filteredRest\"\n :key=\"item.key\"\n :active=\"isDocActive(item)\"\n :isDroppable=\"isDroppable\"\n :isExpanded=\"isExpanded\"\n :isSelected=\"isSelected\"\n :item=\"item\"\n :loading=\"loadingKeys[item.key]\"\n :open=\"isDocActive(item)\"\n @addEmptyFolder=\"handleAddEmptyFolder\"\n @back=\"handleBack\"\n @click=\"handleDocumentClick(item)\"\n @createOperation=\"handleCreateOperation\"\n @dragEnd=\"handleDragEnd\"\n @openMenu=\"openMenu\"\n @openSettings=\"handleOpenSettings\"\n @search=\"handleFilterOrSearch\"\n @selectItem=\"handleSelectItem\"\n @toggleGroup=\"handleToggleGroup\" />\n </template>\n </ScalarSidebarSection>\n </ScalarSidebarItems>\n </div>\n\n <slot name=\"footer\" />\n </ScalarSidebar>\n </div>\n <DocumentSearchModal\n :document=\"activeDocument\"\n :modalState=\"searchModal\"\n @select=\"handleSearchSelect\" />\n <!--\n Contextual dropdown menu for tags, operations and examples. Rendered\n once for the whole sidebar and re-anchored to the triggering icon via\n `menuTarget.el`, so we do not create a dropdown per item.\n -->\n <SidebarItemMenu\n v-if=\"app.store.value && menuTarget?.showMenu\"\n :eventBus=\"app.eventBus\"\n :item=\"menuTarget.item\"\n :sidebarState=\"sidebarState\"\n :target=\"menuTarget.el\"\n :workspaceStore=\"app.store.value\"\n @closeMenu=\"closeMenu\"\n @showDeleteModal=\"deleteModalState.show()\" />\n <!-- Delete confirmation modal, triggered from the dropdown menu above. -->\n <ScalarModal\n v-if=\"menuTarget\"\n size=\"xxs\"\n :state=\"deleteModalState\"\n :title=\"`Delete ${menuTarget.item.title}`\">\n <DeleteSidebarListElement\n :variableName=\"menuTarget.item.title\"\n :warningMessage=\"deleteMessage\"\n @close=\"deleteModalState.hide()\"\n @delete=\"handleDelete\" />\n </ScalarModal>\n </template>\n </Resize>\n</template>\n\n<style scoped>\n/*\n * Gentle pulse for the registry loading skeletons. Matches the existing\n * `LoadingSkeleton.vue` easing/duration used in `@scalar/api-reference` so\n * any skeleton in the app feels consistent.\n */\n.sidebar-skeleton-row > span {\n animation: sidebar-skeleton-pulse 1.5s infinite alternate;\n}\n\n@keyframes sidebar-skeleton-pulse {\n from {\n opacity: 1;\n }\n to {\n opacity: 0.33;\n }\n}\n</style>\n"],"mappings":""}
@@ -1,470 +0,0 @@
1
- import Resize_default from "../../../components/resize/Resize.vue.js";
2
- import DocumentSearchModal_default from "../../search/components/DocumentSearchModal.vue.js";
3
- import DeleteSidebarListElement_default from "../../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
4
- import SidebarDocument_default from "./SidebarDocument.vue.js";
5
- import { createTempOperation } from "../helpers/create-temp-operation.js";
6
- import SidebarItemMenu_default from "./SidebarItemMenu.vue.js";
7
- import { loadRegistryDocument } from "../helpers/load-registry-document.js";
8
- import { useDocumentFilter } from "../hooks/use-document-filter.js";
9
- import { useSidebarContextMenu } from "../hooks/use-sidebar-context-menu.js";
10
- import { useSidebarDocuments } from "../hooks/use-sidebar-documents.js";
11
- import { dragHandleFactory } from "../../../helpers/drag-handle-factory.js";
12
- import { safeRun } from "../../../helpers/safe-run.js";
13
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, isRef, mergeModels, normalizeClass, normalizeStyle, onBeforeMount, onBeforeUnmount, openBlock, ref, renderList, renderSlot, unref, useModel, withCtx } from "vue";
14
- import { ScalarIconButton, ScalarModal, ScalarSidebar, ScalarSidebarButton, ScalarSidebarItems, ScalarSidebarSearchInput, ScalarSidebarSection, useModal } from "@scalar/components";
15
- import { ScalarIconFolderDashed, ScalarIconFunnel, ScalarIconGearSix, ScalarIconPlus } from "@scalar/icons";
16
- import { useToasts } from "@scalar/use-toasts";
17
- import { getParentEntry } from "@scalar/workspace-store/navigation";
18
- //#region src/v2/features/app/components/AppSidebar.vue?vue&type=script&setup=true&lang.ts
19
- var _hoisted_1 = { class: "flex flex-1" };
20
- var _hoisted_2 = {
21
- key: 0,
22
- class: "flex flex-col gap-1.5 p-(--scalar-sidebar-padding)"
23
- };
24
- var _hoisted_3 = { class: "flex items-center gap-1" };
25
- var _hoisted_4 = { class: "custom-scroll flex flex-1 flex-col" };
26
- var _hoisted_5 = {
27
- key: 0,
28
- class: "text-c-3 flex flex-1 flex-col items-center justify-center gap-2 p-6 text-center select-none"
29
- };
30
- var AppSidebar_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
31
- __name: "AppSidebar",
32
- props: /* @__PURE__ */ mergeModels({
33
- app: {},
34
- indent: { default: 20 },
35
- registryDocuments: { default: () => ({
36
- status: "success",
37
- documents: []
38
- }) },
39
- fetchRegistryDocument: { type: Function }
40
- }, {
41
- "sidebarWidth": {
42
- required: true,
43
- default: 288
44
- },
45
- "sidebarWidthModifiers": {}
46
- }),
47
- emits: ["update:sidebarWidth"],
48
- setup(__props) {
49
- const { toast } = useToasts();
50
- /**
51
- * Whether the caller is still fetching the list of registry documents. We
52
- * only surface the loading state on team workspaces because local workspaces
53
- * never consult the registry
54
- */
55
- const isLoadingRegistry = computed(() => __props.registryDocuments.status === "loading" && __props.app.workspace.isTeamWorkspace.value);
56
- const { pinned, rest } = useSidebarDocuments({
57
- app: __props.app,
58
- managedDocs: () => __props.registryDocuments.documents ?? []
59
- });
60
- /**
61
- * Whether the workspace truly has no documents to show. Distinct from the
62
- * filter producing no results: we only surface the "No APIs yet" empty state
63
- * when the workspace is genuinely empty so users see a clear call-to-action
64
- * instead of a confusing blank space.
65
- */
66
- const isEmpty = computed(() => !isLoadingRegistry.value && rest.value.length === 0);
67
- /**
68
- * Fuzzy filter over the top-level documents. Owns its own input visibility,
69
- * query string and Fuse index. See `use-document-filter.ts` for details.
70
- */
71
- const { isVisible: isFilterVisible, query: filterQuery, filteredItems: filteredRest, toggle: toggleFilter } = useDocumentFilter(rest);
72
- const sidebarState = __props.app.sidebar.state;
73
- /** Which registry documents are currently being fetched. */
74
- const loadingKeys = ref({});
75
- /**
76
- * Check if the given {@link SidebarDocumentItem} is the currently active document (from the sidebar state).
77
- */
78
- const isDocActive = (item) => {
79
- if (!item.navigation) return false;
80
- return sidebarState.selectedItem.value === item.navigation.id || Boolean(sidebarState.selectedItems.value[item.navigation.id]);
81
- };
82
- const handleDocumentClick = async (item) => {
83
- if (item.navigation) {
84
- __props.app.sidebar.handleSelectItem(item.navigation.id);
85
- return;
86
- }
87
- const { registry } = item;
88
- const workspaceStore = __props.app.store.value;
89
- if (!registry || !workspaceStore) {
90
- console.warn("Document does not have a sidebar navigation, skipping...");
91
- return;
92
- }
93
- if (!__props.fetchRegistryDocument) {
94
- console.warn("You need to provide a fetchRegistryDocument function to load registry documents");
95
- return;
96
- }
97
- if (loadingKeys.value[item.key]) return;
98
- loadingKeys.value[item.key] = true;
99
- const targetVersion = item.versions?.[0];
100
- const outcome = await safeRun(() => loadRegistryDocument({
101
- fetcher: __props.fetchRegistryDocument,
102
- workspaceStore,
103
- namespace: registry.namespace,
104
- slug: registry.slug,
105
- version: targetVersion?.version
106
- }));
107
- loadingKeys.value[item.key] = false;
108
- if (!outcome.ok) {
109
- toast(outcome.error, "error");
110
- return;
111
- }
112
- const result = outcome.data;
113
- if (!result.ok) {
114
- toast(result.error, "error");
115
- return;
116
- }
117
- __props.app.eventBus.emit("ui:navigate", {
118
- page: "document",
119
- path: "overview",
120
- documentSlug: result.documentName
121
- });
122
- };
123
- const isSelected = (id) => sidebarState.isSelected(id);
124
- const isExpanded = (id) => sidebarState.isExpanded(id);
125
- const handleSelectItem = (id) => {
126
- __props.app.sidebar.handleSelectItem(id);
127
- };
128
- const handleToggleGroup = (id) => {
129
- sidebarState.setExpanded(id, !sidebarState.isExpanded(id));
130
- };
131
- /**
132
- * Drag-and-drop handlers for sidebar items. The factory reads from the live
133
- * workspace store and shared sidebar state, so it reflects the latest
134
- * navigation tree on every drag. Mirrors the behaviour of the old
135
- * `AppSidebar.vue` (documents, tags, and operations can be reordered, and
136
- * operations can be moved between tags/documents).
137
- */
138
- const dragHandlers = computed(() => dragHandleFactory({
139
- store: __props.app.store,
140
- sidebarState
141
- }));
142
- const handleDragEnd = (draggingItem, hoveredItem) => dragHandlers.value.handleDragEnd(draggingItem, hoveredItem);
143
- const isDroppable = (draggingItem, hoveredItem) => dragHandlers.value.isDroppable(draggingItem, hoveredItem);
144
- /**
145
- * Contextual "more" dropdown for tags, operations and examples, together
146
- * with the shared delete-confirmation modal it triggers.
147
- */
148
- const { menuTarget, deleteModalState, deleteMessage, openMenu, closeMenu, handleDelete } = useSidebarContextMenu({
149
- eventBus: __props.app.eventBus,
150
- sidebarState
151
- });
152
- /**
153
- * Create a new operation from an empty folder slot inside a tag or document.
154
- * If the entry is a tag, the new operation inherits that tag so it stays
155
- * grouped under the same folder.
156
- */
157
- const handleAddEmptyFolder = (item) => {
158
- const itemWithParent = sidebarState.getEntryById(item.id);
159
- const documentName = getParentEntry("document", itemWithParent)?.name;
160
- const tagName = getParentEntry("tag", itemWithParent)?.name;
161
- const store = __props.app.store.value;
162
- if (!documentName || !store) {
163
- console.error("Document name not found");
164
- return;
165
- }
166
- createTempOperation(documentName, {
167
- existingPaths: new Set(Object.keys(store.workspace.documents[documentName]?.paths ?? {})),
168
- eventBus: __props.app.eventBus,
169
- tags: tagName ? [tagName] : void 0
170
- });
171
- };
172
- const handleCreate = () => {
173
- __props.app.eventBus.emit("ui:open:command-palette", {
174
- action: "create-openapi-document",
175
- payload: void 0
176
- });
177
- };
178
- /**
179
- * Create a new operation inside the given document and immediately navigate to
180
- * it. Uses `createTempOperation` so the operation gets a unique `/temp…` path,
181
- * then the sidebar focuses the new example and the address bar is focused so
182
- * the user can start typing the real path right away.
183
- */
184
- const handleCreateOperation = (item) => {
185
- const documentName = item.documentName;
186
- const store = __props.app.store.value;
187
- if (!documentName || !store) {
188
- console.warn("Cannot create an operation: no document loaded");
189
- return;
190
- }
191
- createTempOperation(documentName, {
192
- existingPaths: new Set(Object.keys(store.workspace.documents[documentName]?.paths ?? {})),
193
- eventBus: __props.app.eventBus
194
- });
195
- };
196
- /**
197
- * Navigates back to the workspace "Get started" page.
198
- */
199
- const handleBack = () => {
200
- __props.app.eventBus.emit("ui:navigate", {
201
- page: "workspace",
202
- path: "get-started"
203
- });
204
- };
205
- /**
206
- * True when the user is currently viewing a document (any of its subpages).
207
- * When inside a document, the sidebar actions are scoped to that document:
208
- * the gear icon opens the document (collection) settings and the filter icon
209
- * becomes a search icon that focuses the search input.
210
- */
211
- const isOnDocumentPage = computed(() => Boolean(__props.app.activeEntities.documentSlug.value));
212
- const handleOpenSettings = () => {
213
- if (isOnDocumentPage.value) {
214
- __props.app.eventBus.emit("ui:navigate", {
215
- page: "document",
216
- path: "settings",
217
- documentSlug: __props.app.activeEntities.documentSlug.value
218
- });
219
- return;
220
- }
221
- __props.app.eventBus.emit("ui:navigate", {
222
- page: "workspace",
223
- path: "settings"
224
- });
225
- };
226
- /**
227
- * Controls the per-document search modal. Only used when the user is drilled
228
- * into a single document and clicks the magnifying-glass icon.
229
- */
230
- const searchModal = useModal();
231
- /**
232
- * The OpenAPI document currently selected in the workspace. The search modal
233
- * scopes its Fuse index to this document so results never leak across
234
- * collections.
235
- */
236
- const activeDocument = computed(() => __props.app.store.value?.workspace.activeDocument);
237
- const handleFilterOrSearch = () => {
238
- if (isOnDocumentPage.value) {
239
- searchModal.show();
240
- return;
241
- }
242
- toggleFilter();
243
- };
244
- /**
245
- * Handle the `ui:focus:search` event. Dispatch is driven by the shared
246
- * `handleHotkeys` helper (Cmd/Ctrl+J) or by programmatic callers such as the
247
- * workspace "Get started" page. When a `KeyboardEvent` is included we
248
- * preventDefault to override the browser's Cmd+J (downloads panel), then
249
- * delegate to `handleFilterOrSearch`, which already branches on whether the
250
- * user is viewing a document or the workspace root.
251
- */
252
- const handleSearchHotkey = (payload) => {
253
- payload?.event.preventDefault();
254
- handleFilterOrSearch();
255
- };
256
- /**
257
- * Handle the `ui:open:settings` event (Cmd/Ctrl+I). Same delegation model as
258
- * `handleSearchHotkey`: preventDefault on the originating keyboard event (if
259
- * any) and hand off to `handleOpenSettings`, which routes to the document-
260
- * level settings page when a document is active and the workspace-level
261
- * settings page otherwise.
262
- */
263
- const handleSettingsHotkey = (payload) => {
264
- payload?.event.preventDefault();
265
- handleOpenSettings();
266
- };
267
- onBeforeMount(() => {
268
- __props.app.eventBus.on("ui:focus:search", handleSearchHotkey);
269
- __props.app.eventBus.on("ui:open:settings", handleSettingsHotkey);
270
- });
271
- onBeforeUnmount(() => {
272
- __props.app.eventBus.off("ui:focus:search", handleSearchHotkey);
273
- __props.app.eventBus.off("ui:open:settings", handleSettingsHotkey);
274
- });
275
- /**
276
- * Navigate to the selected search result. `scroll-to:nav-item` is already
277
- * wired up through the app event bus to update the sidebar + route, matching
278
- * the behaviour used elsewhere in the app.
279
- */
280
- const handleSearchSelect = (id) => {
281
- __props.app.eventBus.emit("scroll-to:nav-item", { id });
282
- };
283
- /** Controls the width of the sidebar */
284
- const sidebarWidth = useModel(__props, "sidebarWidth");
285
- return (_ctx, _cache) => {
286
- return openBlock(), createBlock(unref(Resize_default), {
287
- width: sidebarWidth.value,
288
- "onUpdate:width": _cache[3] || (_cache[3] = ($event) => sidebarWidth.value = $event),
289
- class: normalizeClass(["flex flex-col max-md:inset-y-0 max-md:z-2 max-md:w-full!", {
290
- "max-md:absolute! max-md:flex!": __props.app.sidebar.isOpen.value,
291
- "max-md:hidden!": !__props.app.sidebar.isOpen.value
292
- }])
293
- }, {
294
- default: withCtx(() => [
295
- createElementVNode("div", _hoisted_1, [createVNode(unref(ScalarSidebar), {
296
- class: "flex min-h-0 flex-1 flex-col max-md:pt-12",
297
- style: normalizeStyle({ "--scalar-sidebar-indent": __props.indent + "px" })
298
- }, {
299
- default: withCtx(() => [
300
- !isOnDocumentPage.value ? (openBlock(), createElementBlock("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [
301
- createVNode(unref(ScalarSidebarButton), {
302
- is: "div",
303
- class: "text-sidebar-c-1 font-sidebar-active flex-1",
304
- disabled: ""
305
- }, {
306
- default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode(" All Documents ", -1)])]),
307
- _: 1
308
- }),
309
- createVNode(unref(ScalarIconButton), {
310
- icon: unref(ScalarIconGearSix),
311
- label: "Workspace settings",
312
- size: "sm",
313
- onClick: handleOpenSettings
314
- }, null, 8, ["icon"]),
315
- createVNode(unref(ScalarIconButton), {
316
- icon: unref(ScalarIconFunnel),
317
- label: "Filter documents",
318
- size: "sm",
319
- onClick: handleFilterOrSearch
320
- }, null, 8, ["icon"]),
321
- createVNode(unref(ScalarIconButton), {
322
- class: "rounded-full border",
323
- icon: unref(ScalarIconPlus),
324
- label: "Add document",
325
- size: "sm",
326
- onClick: handleCreate
327
- }, null, 8, ["icon"])
328
- ]), unref(isFilterVisible) ? (openBlock(), createBlock(unref(ScalarSidebarSearchInput), {
329
- key: 0,
330
- modelValue: unref(filterQuery),
331
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(filterQuery) ? filterQuery.value = $event : null),
332
- autofocus: ""
333
- }, null, 8, ["modelValue"])) : createCommentVNode("", true)])) : createCommentVNode("", true),
334
- createElementVNode("div", _hoisted_4, [isEmpty.value && !isOnDocumentPage.value ? (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(unref(ScalarIconFolderDashed), {
335
- class: "size-10",
336
- weight: "light"
337
- }), _cache[5] || (_cache[5] = createElementVNode("p", { class: "text-sm font-medium" }, "Nothing added yet", -1))])) : (openBlock(), createBlock(unref(ScalarSidebarItems), { key: 1 }, {
338
- default: withCtx(() => [unref(pinned).length ? (openBlock(), createBlock(unref(ScalarSidebarSection), { key: 0 }, createSlots({
339
- items: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pinned), (item) => {
340
- return openBlock(), createBlock(SidebarDocument_default, {
341
- key: item.key,
342
- active: isDocActive(item),
343
- isDroppable,
344
- isExpanded,
345
- isSelected,
346
- item,
347
- loading: loadingKeys.value[item.key],
348
- open: isDocActive(item),
349
- onAddEmptyFolder: handleAddEmptyFolder,
350
- onBack: handleBack,
351
- onClick: ($event) => handleDocumentClick(item),
352
- onCreateOperation: handleCreateOperation,
353
- onDragEnd: handleDragEnd,
354
- onOpenMenu: unref(openMenu),
355
- onOpenSettings: handleOpenSettings,
356
- onSearch: handleFilterOrSearch,
357
- onSelectItem: handleSelectItem,
358
- onToggleGroup: handleToggleGroup
359
- }, null, 8, [
360
- "active",
361
- "item",
362
- "loading",
363
- "open",
364
- "onClick",
365
- "onOpenMenu"
366
- ]);
367
- }), 128))]),
368
- _: 2
369
- }, [unref(pinned).length && unref(rest).length ? {
370
- name: "default",
371
- fn: withCtx(() => [_cache[6] || (_cache[6] = createTextVNode(" Pinned ", -1))]),
372
- key: "0"
373
- } : void 0]), 1024)) : createCommentVNode("", true), createVNode(unref(ScalarSidebarSection), null, createSlots({
374
- items: withCtx(() => [isLoadingRegistry.value && !isOnDocumentPage.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, renderList(4, (n) => {
375
- return createElementVNode("li", {
376
- key: `registry-skeleton-${n}`,
377
- "aria-hidden": "true",
378
- class: "sidebar-skeleton-row px-(--scalar-sidebar-padding) py-1"
379
- }, [..._cache[8] || (_cache[8] = [createElementVNode("span", { class: "bg-b-3 block h-6 rounded-md" }, null, -1)])]);
380
- }), 64)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(unref(filteredRest), (item) => {
381
- return openBlock(), createBlock(SidebarDocument_default, {
382
- key: item.key,
383
- active: isDocActive(item),
384
- isDroppable,
385
- isExpanded,
386
- isSelected,
387
- item,
388
- loading: loadingKeys.value[item.key],
389
- open: isDocActive(item),
390
- onAddEmptyFolder: handleAddEmptyFolder,
391
- onBack: handleBack,
392
- onClick: ($event) => handleDocumentClick(item),
393
- onCreateOperation: handleCreateOperation,
394
- onDragEnd: handleDragEnd,
395
- onOpenMenu: unref(openMenu),
396
- onOpenSettings: handleOpenSettings,
397
- onSearch: handleFilterOrSearch,
398
- onSelectItem: handleSelectItem,
399
- onToggleGroup: handleToggleGroup
400
- }, null, 8, [
401
- "active",
402
- "item",
403
- "loading",
404
- "open",
405
- "onClick",
406
- "onOpenMenu"
407
- ]);
408
- }), 128))]),
409
- _: 2
410
- }, [unref(pinned).length && unref(rest).length ? {
411
- name: "default",
412
- fn: withCtx(() => [_cache[7] || (_cache[7] = createTextVNode(" All documents ", -1))]),
413
- key: "0"
414
- } : void 0]), 1024)]),
415
- _: 1
416
- }))]),
417
- renderSlot(_ctx.$slots, "footer", {}, void 0, true)
418
- ]),
419
- _: 3
420
- }, 8, ["style"])]),
421
- createVNode(unref(DocumentSearchModal_default), {
422
- document: activeDocument.value,
423
- modalState: unref(searchModal),
424
- onSelect: handleSearchSelect
425
- }, null, 8, ["document", "modalState"]),
426
- __props.app.store.value && unref(menuTarget)?.showMenu ? (openBlock(), createBlock(SidebarItemMenu_default, {
427
- key: 0,
428
- eventBus: __props.app.eventBus,
429
- item: unref(menuTarget).item,
430
- sidebarState: unref(sidebarState),
431
- target: unref(menuTarget).el,
432
- workspaceStore: __props.app.store.value,
433
- onCloseMenu: unref(closeMenu),
434
- onShowDeleteModal: _cache[1] || (_cache[1] = ($event) => unref(deleteModalState).show())
435
- }, null, 8, [
436
- "eventBus",
437
- "item",
438
- "sidebarState",
439
- "target",
440
- "workspaceStore",
441
- "onCloseMenu"
442
- ])) : createCommentVNode("", true),
443
- unref(menuTarget) ? (openBlock(), createBlock(unref(ScalarModal), {
444
- key: 1,
445
- size: "xxs",
446
- state: unref(deleteModalState),
447
- title: `Delete ${unref(menuTarget).item.title}`
448
- }, {
449
- default: withCtx(() => [createVNode(DeleteSidebarListElement_default, {
450
- variableName: unref(menuTarget).item.title,
451
- warningMessage: unref(deleteMessage),
452
- onClose: _cache[2] || (_cache[2] = ($event) => unref(deleteModalState).hide()),
453
- onDelete: unref(handleDelete)
454
- }, null, 8, [
455
- "variableName",
456
- "warningMessage",
457
- "onDelete"
458
- ])]),
459
- _: 1
460
- }, 8, ["state", "title"])) : createCommentVNode("", true)
461
- ]),
462
- _: 3
463
- }, 8, ["width", "class"]);
464
- };
465
- }
466
- });
467
- //#endregion
468
- export { AppSidebar_vue_vue_type_script_setup_true_lang_default as default };
469
-
470
- //# sourceMappingURL=AppSidebar.vue.script.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppSidebar.vue.script.js","names":[],"sources":["../../../../../src/v2/features/app/components/AppSidebar.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n ScalarIconButton,\n ScalarModal,\n ScalarSidebar,\n ScalarSidebarButton,\n ScalarSidebarItems,\n ScalarSidebarSearchInput,\n ScalarSidebarSection,\n useModal,\n} from '@scalar/components'\nimport {\n ScalarIconFolderDashed,\n ScalarIconFunnel,\n ScalarIconGearSix,\n ScalarIconPlus,\n} from '@scalar/icons'\nimport type { DraggingItem, HoveredItem } from '@scalar/sidebar'\nimport { useToasts } from '@scalar/use-toasts'\nimport { getParentEntry } from '@scalar/workspace-store/navigation'\nimport type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation'\nimport { computed, onBeforeMount, onBeforeUnmount, ref } from 'vue'\n\nimport DeleteSidebarListElement from '@/components/Sidebar/Actions/DeleteSidebarListElement.vue'\nimport { Resize } from '@/v2/components/resize'\nimport type { AppState } from '@/v2/features/app'\nimport SidebarDocument from '@/v2/features/app/components/SidebarDocument.vue'\nimport SidebarItemMenu from '@/v2/features/app/components/SidebarItemMenu.vue'\nimport { createTempOperation } from '@/v2/features/app/helpers/create-temp-operation'\nimport { loadRegistryDocument } from '@/v2/features/app/helpers/load-registry-document'\nimport { useDocumentFilter } from '@/v2/features/app/hooks/use-document-filter'\nimport { useSidebarContextMenu } from '@/v2/features/app/hooks/use-sidebar-context-menu'\nimport {\n useSidebarDocuments,\n type SidebarDocumentItem,\n} from '@/v2/features/app/hooks/use-sidebar-documents'\nimport { DocumentSearchModal } from '@/v2/features/search'\nimport { dragHandleFactory } from '@/v2/helpers/drag-handle-factory'\nimport { safeRun } from '@/v2/helpers/safe-run'\nimport type {\n ImportDocumentFromRegistry,\n RegistryDocumentsState,\n} from '@/v2/types/configuration'\n\nconst {\n app,\n indent = 20,\n registryDocuments = { status: 'success', documents: [] },\n fetchRegistryDocument,\n} = defineProps<{\n /** The app state from @scalar/api-client. */\n app: AppState\n /** Horizontal indent applied to nested sidebar items, in pixels. */\n indent?: number\n /**\n * The list of all available registry documents, wrapped in a loading state\n * so the sidebar can render skeleton placeholders while the registry is\n * still being fetched.\n */\n registryDocuments?: RegistryDocumentsState\n /** A function to fetch a registry document */\n fetchRegistryDocument?: ImportDocumentFromRegistry\n}>()\n\nconst { toast } = useToasts()\n\n/**\n * Whether the caller is still fetching the list of registry documents. We\n * only surface the loading state on team workspaces because local workspaces\n * never consult the registry\n */\nconst isLoadingRegistry = computed(\n () =>\n registryDocuments.status === 'loading' &&\n app.workspace.isTeamWorkspace.value,\n)\n\nconst { pinned, rest } = useSidebarDocuments({\n app,\n managedDocs: () => registryDocuments.documents ?? [],\n})\n\n/**\n * Whether the workspace truly has no documents to show. Distinct from the\n * filter producing no results: we only surface the \"No APIs yet\" empty state\n * when the workspace is genuinely empty so users see a clear call-to-action\n * instead of a confusing blank space.\n */\nconst isEmpty = computed(\n () => !isLoadingRegistry.value && rest.value.length === 0,\n)\n\n/**\n * Fuzzy filter over the top-level documents. Owns its own input visibility,\n * query string and Fuse index. See `use-document-filter.ts` for details.\n */\nconst {\n isVisible: isFilterVisible,\n query: filterQuery,\n filteredItems: filteredRest,\n toggle: toggleFilter,\n} = useDocumentFilter(rest)\n\nconst sidebarState = app.sidebar.state\n\n/** Which registry documents are currently being fetched. */\nconst loadingKeys = ref<Record<string, boolean>>({})\n\n/**\n * Check if the given {@link SidebarDocumentItem} is the currently active document (from the sidebar state).\n */\nconst isDocActive = (item: SidebarDocumentItem) => {\n if (!item.navigation) {\n return false\n }\n\n return (\n sidebarState.selectedItem.value === item.navigation.id ||\n Boolean(sidebarState.selectedItems.value[item.navigation.id])\n )\n}\n\nconst handleDocumentClick = async (item: SidebarDocumentItem) => {\n if (item.navigation) {\n app.sidebar.handleSelectItem(item.navigation.id)\n return\n }\n\n // Capture the narrowed values into locals so the closure passed to\n // `safeRun` keeps the non-nullable types without needing assertions, and\n // so a later mutation to `item.registry` or `app.store.value` cannot\n // change what we end up loading mid-flight.\n const { registry } = item\n const workspaceStore = app.store.value\n if (!registry || !workspaceStore) {\n console.warn('Document does not have a sidebar navigation, skipping...')\n return\n }\n\n if (!fetchRegistryDocument) {\n console.warn(\n 'You need to provide a fetchRegistryDocument function to load registry documents',\n )\n return\n }\n\n if (loadingKeys.value[item.key]) {\n return\n }\n\n loadingKeys.value[item.key] = true\n\n // Registry items expose every version they advertise on `versions`, ordered\n // with the latest first. Until we surface a version picker on the parent\n // row we always load whichever version is at the top of the list, which is\n // the latest one. Falling back to `undefined` lets the loader default to\n // the registry's `latest` alias when the entry was synthesized from a\n // workspace document that has no advertised versions yet.\n const targetVersion = item.versions?.[0]\n\n // The loader can throw on network errors or malformed payloads. `safeRun`\n // converts a rejection into an `{ ok: false, error }` result so a single\n // failure cannot leave the row's spinner running forever and block\n // subsequent clicks on the same item.\n const outcome = await safeRun(() =>\n loadRegistryDocument({\n fetcher: fetchRegistryDocument,\n workspaceStore,\n namespace: registry.namespace,\n slug: registry.slug,\n version: targetVersion?.version,\n }),\n )\n\n loadingKeys.value[item.key] = false\n\n if (!outcome.ok) {\n toast(outcome.error, 'error')\n return\n }\n\n const result = outcome.data\n if (!result.ok) {\n toast(result.error, 'error')\n return\n }\n\n // After loading, route to the document overview. `syncSidebar` will then\n // mark the document as selected and the template's `:open=\"isDocActive\"`\n // binding drills the sidebar in automatically — no local state needed.\n app.eventBus.emit('ui:navigate', {\n page: 'document',\n path: 'overview',\n documentSlug: result.documentName,\n })\n}\n\nconst isSelected = (id: string) => sidebarState.isSelected(id)\nconst isExpanded = (id: string) => sidebarState.isExpanded(id)\n\nconst handleSelectItem = (id: string) => {\n app.sidebar.handleSelectItem(id)\n}\n\nconst handleToggleGroup = (id: string) => {\n sidebarState.setExpanded(id, !sidebarState.isExpanded(id))\n}\n\n/**\n * Drag-and-drop handlers for sidebar items. The factory reads from the live\n * workspace store and shared sidebar state, so it reflects the latest\n * navigation tree on every drag. Mirrors the behaviour of the old\n * `AppSidebar.vue` (documents, tags, and operations can be reordered, and\n * operations can be moved between tags/documents).\n */\nconst dragHandlers = computed(() =>\n dragHandleFactory({\n store: app.store,\n sidebarState,\n }),\n)\n\nconst handleDragEnd = (\n draggingItem: DraggingItem,\n hoveredItem: HoveredItem,\n): boolean => dragHandlers.value.handleDragEnd(draggingItem, hoveredItem)\n\nconst isDroppable = (\n draggingItem: DraggingItem,\n hoveredItem: HoveredItem,\n): boolean => dragHandlers.value.isDroppable(draggingItem, hoveredItem)\n\n/**\n * Contextual \"more\" dropdown for tags, operations and examples, together\n * with the shared delete-confirmation modal it triggers.\n */\nconst {\n menuTarget,\n deleteModalState,\n deleteMessage,\n openMenu,\n closeMenu,\n handleDelete,\n} = useSidebarContextMenu({\n eventBus: app.eventBus,\n sidebarState,\n})\n\n/**\n * Create a new operation from an empty folder slot inside a tag or document.\n * If the entry is a tag, the new operation inherits that tag so it stays\n * grouped under the same folder.\n */\nconst handleAddEmptyFolder = (item: TraversedEntry) => {\n const itemWithParent = sidebarState.getEntryById(item.id)\n const documentName = getParentEntry('document', itemWithParent)?.name\n const tagName = getParentEntry('tag', itemWithParent)?.name\n const store = app.store.value\n\n if (!documentName || !store) {\n console.error('Document name not found')\n return\n }\n\n createTempOperation(documentName, {\n existingPaths: new Set(\n Object.keys(store.workspace.documents[documentName]?.paths ?? {}),\n ),\n eventBus: app.eventBus,\n tags: tagName ? [tagName] : undefined,\n })\n}\n\nconst handleCreate = () => {\n app.eventBus.emit('ui:open:command-palette', {\n action: 'create-openapi-document',\n payload: undefined,\n })\n}\n\n/**\n * Create a new operation inside the given document and immediately navigate to\n * it. Uses `createTempOperation` so the operation gets a unique `/temp…` path,\n * then the sidebar focuses the new example and the address bar is focused so\n * the user can start typing the real path right away.\n */\nconst handleCreateOperation = (item: SidebarDocumentItem) => {\n const documentName = item.documentName\n const store = app.store.value\n\n if (!documentName || !store) {\n console.warn('Cannot create an operation: no document loaded')\n return\n }\n\n createTempOperation(documentName, {\n existingPaths: new Set(\n Object.keys(store.workspace.documents[documentName]?.paths ?? {}),\n ),\n eventBus: app.eventBus,\n })\n}\n\n/**\n * Navigates back to the workspace \"Get started\" page.\n */\nconst handleBack = () => {\n app.eventBus.emit('ui:navigate', {\n page: 'workspace',\n path: 'get-started',\n })\n}\n\n/**\n * True when the user is currently viewing a document (any of its subpages).\n * When inside a document, the sidebar actions are scoped to that document:\n * the gear icon opens the document (collection) settings and the filter icon\n * becomes a search icon that focuses the search input.\n */\nconst isOnDocumentPage = computed(() =>\n Boolean(app.activeEntities.documentSlug.value),\n)\n\nconst handleOpenSettings = () => {\n if (isOnDocumentPage.value) {\n app.eventBus.emit('ui:navigate', {\n page: 'document',\n path: 'settings',\n documentSlug: app.activeEntities.documentSlug.value,\n })\n return\n }\n\n app.eventBus.emit('ui:navigate', {\n page: 'workspace',\n path: 'settings',\n })\n}\n\n/**\n * Controls the per-document search modal. Only used when the user is drilled\n * into a single document and clicks the magnifying-glass icon.\n */\nconst searchModal = useModal()\n\n/**\n * The OpenAPI document currently selected in the workspace. The search modal\n * scopes its Fuse index to this document so results never leak across\n * collections.\n */\nconst activeDocument = computed(() => app.store.value?.workspace.activeDocument)\n\nconst handleFilterOrSearch = () => {\n // Inside a document, this icon opens a modal search that is scoped to that\n // single document (similar to the reference search modal), so users can jump\n // to any operation / tag / heading without noise from other documents.\n if (isOnDocumentPage.value) {\n searchModal.show()\n return\n }\n\n // At the top-level documents view, the icon toggles a lightweight filter\n // that narrows the visible documents by title.\n toggleFilter()\n}\n\n/**\n * Handle the `ui:focus:search` event. Dispatch is driven by the shared\n * `handleHotkeys` helper (Cmd/Ctrl+J) or by programmatic callers such as the\n * workspace \"Get started\" page. When a `KeyboardEvent` is included we\n * preventDefault to override the browser's Cmd+J (downloads panel), then\n * delegate to `handleFilterOrSearch`, which already branches on whether the\n * user is viewing a document or the workspace root.\n */\nconst handleSearchHotkey = (payload: { event: KeyboardEvent } | undefined) => {\n payload?.event.preventDefault()\n handleFilterOrSearch()\n}\n\n/**\n * Handle the `ui:open:settings` event (Cmd/Ctrl+I). Same delegation model as\n * `handleSearchHotkey`: preventDefault on the originating keyboard event (if\n * any) and hand off to `handleOpenSettings`, which routes to the document-\n * level settings page when a document is active and the workspace-level\n * settings page otherwise.\n */\nconst handleSettingsHotkey = (\n payload: { event: KeyboardEvent } | undefined,\n) => {\n payload?.event.preventDefault()\n handleOpenSettings()\n}\n\nonBeforeMount(() => {\n app.eventBus.on('ui:focus:search', handleSearchHotkey)\n app.eventBus.on('ui:open:settings', handleSettingsHotkey)\n})\nonBeforeUnmount(() => {\n app.eventBus.off('ui:focus:search', handleSearchHotkey)\n app.eventBus.off('ui:open:settings', handleSettingsHotkey)\n})\n\n/**\n * Navigate to the selected search result. `scroll-to:nav-item` is already\n * wired up through the app event bus to update the sidebar + route, matching\n * the behaviour used elsewhere in the app.\n */\nconst handleSearchSelect = (id: string) => {\n app.eventBus.emit('scroll-to:nav-item', { id })\n}\n\n/** Controls the width of the sidebar */\nconst sidebarWidth = defineModel<number>('sidebarWidth', {\n required: true,\n default: 288,\n})\n</script>\n\n<template>\n <Resize\n v-model:width=\"sidebarWidth\"\n class=\"flex flex-col max-md:inset-y-0 max-md:z-2 max-md:w-full!\"\n :class=\"{\n 'max-md:absolute! max-md:flex!': app.sidebar.isOpen.value,\n 'max-md:hidden!': !app.sidebar.isOpen.value,\n }\">\n <template #default>\n <div class=\"flex flex-1\">\n <ScalarSidebar\n class=\"flex min-h-0 flex-1 flex-col max-md:pt-12\"\n :style=\"{ '--scalar-sidebar-indent': indent + 'px' }\">\n <!-- Top-level sidebar header -->\n <div\n v-if=\"!isOnDocumentPage\"\n class=\"flex flex-col gap-1.5 p-(--scalar-sidebar-padding)\">\n <div class=\"flex items-center gap-1\">\n <ScalarSidebarButton\n is=\"div\"\n class=\"text-sidebar-c-1 font-sidebar-active flex-1\"\n disabled>\n All Documents\n </ScalarSidebarButton>\n <ScalarIconButton\n :icon=\"ScalarIconGearSix\"\n label=\"Workspace settings\"\n size=\"sm\"\n @click=\"handleOpenSettings\" />\n <ScalarIconButton\n :icon=\"ScalarIconFunnel\"\n label=\"Filter documents\"\n size=\"sm\"\n @click=\"handleFilterOrSearch\" />\n <ScalarIconButton\n class=\"rounded-full border\"\n :icon=\"ScalarIconPlus\"\n label=\"Add document\"\n size=\"sm\"\n @click=\"handleCreate\" />\n </div>\n <ScalarSidebarSearchInput\n v-if=\"isFilterVisible\"\n v-model=\"filterQuery\"\n autofocus />\n </div>\n\n <!-- Document list (top-level) -->\n <div class=\"custom-scroll flex flex-1 flex-col\">\n <!--\n Empty state: no documents in the workspace yet. Matches the\n minimal `empty folder` appearance.\n -->\n <div\n v-if=\"isEmpty && !isOnDocumentPage\"\n class=\"text-c-3 flex flex-1 flex-col items-center justify-center gap-2 p-6 text-center select-none\">\n <ScalarIconFolderDashed\n class=\"size-10\"\n weight=\"light\" />\n <p class=\"text-sm font-medium\">Nothing added yet</p>\n </div>\n <ScalarSidebarItems v-else>\n <!-- Show pinned documents after we add support for it -->\n <ScalarSidebarSection v-if=\"pinned.length\">\n <template\n v-if=\"pinned.length && rest.length\"\n #default>\n Pinned\n </template>\n <template #items>\n <SidebarDocument\n v-for=\"item in pinned\"\n :key=\"item.key\"\n :active=\"isDocActive(item)\"\n :isDroppable=\"isDroppable\"\n :isExpanded=\"isExpanded\"\n :isSelected=\"isSelected\"\n :item=\"item\"\n :loading=\"loadingKeys[item.key]\"\n :open=\"isDocActive(item)\"\n @addEmptyFolder=\"handleAddEmptyFolder\"\n @back=\"handleBack\"\n @click=\"handleDocumentClick(item)\"\n @createOperation=\"handleCreateOperation\"\n @dragEnd=\"handleDragEnd\"\n @openMenu=\"openMenu\"\n @openSettings=\"handleOpenSettings\"\n @search=\"handleFilterOrSearch\"\n @selectItem=\"handleSelectItem\"\n @toggleGroup=\"handleToggleGroup\" />\n </template>\n </ScalarSidebarSection>\n\n <ScalarSidebarSection>\n <template\n v-if=\"pinned.length && rest.length\"\n #default>\n All documents\n </template>\n <template #items>\n <!--\n Skeleton rows shown while the caller is still fetching\n the registry document list. We only render skeletons in\n the top-level view (when no document is drilled-in) so\n the collection view is never masked by placeholders.\n -->\n <template v-if=\"isLoadingRegistry && !isOnDocumentPage\">\n <li\n v-for=\"n in 4\"\n :key=\"`registry-skeleton-${n}`\"\n aria-hidden=\"true\"\n class=\"sidebar-skeleton-row px-(--scalar-sidebar-padding) py-1\">\n <span class=\"bg-b-3 block h-6 rounded-md\" />\n </li>\n </template>\n <SidebarDocument\n v-for=\"item in filteredRest\"\n :key=\"item.key\"\n :active=\"isDocActive(item)\"\n :isDroppable=\"isDroppable\"\n :isExpanded=\"isExpanded\"\n :isSelected=\"isSelected\"\n :item=\"item\"\n :loading=\"loadingKeys[item.key]\"\n :open=\"isDocActive(item)\"\n @addEmptyFolder=\"handleAddEmptyFolder\"\n @back=\"handleBack\"\n @click=\"handleDocumentClick(item)\"\n @createOperation=\"handleCreateOperation\"\n @dragEnd=\"handleDragEnd\"\n @openMenu=\"openMenu\"\n @openSettings=\"handleOpenSettings\"\n @search=\"handleFilterOrSearch\"\n @selectItem=\"handleSelectItem\"\n @toggleGroup=\"handleToggleGroup\" />\n </template>\n </ScalarSidebarSection>\n </ScalarSidebarItems>\n </div>\n\n <slot name=\"footer\" />\n </ScalarSidebar>\n </div>\n <DocumentSearchModal\n :document=\"activeDocument\"\n :modalState=\"searchModal\"\n @select=\"handleSearchSelect\" />\n <!--\n Contextual dropdown menu for tags, operations and examples. Rendered\n once for the whole sidebar and re-anchored to the triggering icon via\n `menuTarget.el`, so we do not create a dropdown per item.\n -->\n <SidebarItemMenu\n v-if=\"app.store.value && menuTarget?.showMenu\"\n :eventBus=\"app.eventBus\"\n :item=\"menuTarget.item\"\n :sidebarState=\"sidebarState\"\n :target=\"menuTarget.el\"\n :workspaceStore=\"app.store.value\"\n @closeMenu=\"closeMenu\"\n @showDeleteModal=\"deleteModalState.show()\" />\n <!-- Delete confirmation modal, triggered from the dropdown menu above. -->\n <ScalarModal\n v-if=\"menuTarget\"\n size=\"xxs\"\n :state=\"deleteModalState\"\n :title=\"`Delete ${menuTarget.item.title}`\">\n <DeleteSidebarListElement\n :variableName=\"menuTarget.item.title\"\n :warningMessage=\"deleteMessage\"\n @close=\"deleteModalState.hide()\"\n @delete=\"handleDelete\" />\n </ScalarModal>\n </template>\n </Resize>\n</template>\n\n<style scoped>\n/*\n * Gentle pulse for the registry loading skeletons. Matches the existing\n * `LoadingSkeleton.vue` easing/duration used in `@scalar/api-reference` so\n * any skeleton in the app feels consistent.\n */\n.sidebar-skeleton-row > span {\n animation: sidebar-skeleton-pulse 1.5s infinite alternate;\n}\n\n@keyframes sidebar-skeleton-pulse {\n from {\n opacity: 1;\n }\n to {\n opacity: 0.33;\n }\n}\n</style>\n"],"mappings":"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"}
@@ -1,28 +0,0 @@
1
- import { type ModalState } from '@scalar/components';
2
- type __VLS_Props = {
3
- /** Modal lifecycle state from `useModal()`. */
4
- state: ModalState;
5
- /**
6
- * Versions already loaded into the workspace store for the active document
7
- * group. Submitting a duplicate would silently collide with an existing
8
- * workspace document, so we reject it up front. Versions that exist only on
9
- * the registry (not loaded locally) are intentionally allowed - that is the
10
- * conflict-resolution path the create-draft flow opts into.
11
- */
12
- existingVersions: string[];
13
- /**
14
- * Version the new draft will be branched from. Surfaced to the user so it
15
- * is obvious which document the draft inherits its body from before they
16
- * commit to a new version string. Optional because the modal can be
17
- * reused in flows that do not branch from an existing version.
18
- */
19
- sourceVersion?: string;
20
- };
21
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
22
- create: (version: string) => any;
23
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
24
- onCreate?: ((version: string) => any) | undefined;
25
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
- declare const _default: typeof __VLS_export;
27
- export default _default;
28
- //# sourceMappingURL=CreateVersionModal.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateVersionModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/CreateVersionModal.vue"],"names":[],"mappings":"AAqHA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAQjE,KAAK,WAAW,GAAG;IACjB,+CAA+C;IAC/C,KAAK,EAAE,UAAU,CAAA;IACjB;;;;;;OAMG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAC1B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAC;AA2KF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +0,0 @@
1
- import CreateVersionModal_vue_vue_type_script_setup_true_lang_default from "./CreateVersionModal.vue.script.js";
2
- //#region src/v2/features/app/components/CreateVersionModal.vue
3
- var CreateVersionModal_default = CreateVersionModal_vue_vue_type_script_setup_true_lang_default;
4
- //#endregion
5
- export { CreateVersionModal_default as default };
6
-
7
- //# sourceMappingURL=CreateVersionModal.vue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateVersionModal.vue.js","names":[],"sources":["../../../../../src/v2/features/app/components/CreateVersionModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarModal, type ModalState } from '@scalar/components'\nimport { computed, ref, watch, type ComputedRef, type Ref } from 'vue'\n\nimport {\n CommandActionForm,\n CommandActionInput,\n} from '@/v2/features/command-palette'\n\nconst { state, existingVersions, sourceVersion } = defineProps<{\n /** Modal lifecycle state from `useModal()`. */\n state: ModalState\n /**\n * Versions already loaded into the workspace store for the active document\n * group. Submitting a duplicate would silently collide with an existing\n * workspace document, so we reject it up front. Versions that exist only on\n * the registry (not loaded locally) are intentionally allowed - that is the\n * conflict-resolution path the create-draft flow opts into.\n */\n existingVersions: string[]\n /**\n * Version the new draft will be branched from. Surfaced to the user so it\n * is obvious which document the draft inherits its body from before they\n * commit to a new version string. Optional because the modal can be\n * reused in flows that do not branch from an existing version.\n */\n sourceVersion?: string\n}>()\n\nconst emit = defineEmits<{\n /** Fired after the user submits a non-empty, non-duplicate version string. */\n (event: 'create', version: string): void\n}>()\n\n/** Raw input value for the version field. */\nconst version: Ref<string> = ref('')\n\n/** Trimmed input. The form treats whitespace-only input as empty. */\nconst trimmed: ComputedRef<string> = computed(() => version.value.trim())\n\n/**\n * Validation message surfaced under the input.\n *\n * Resolves to `null` when the form is valid; otherwise to a human-readable\n * reason that doubles as the disabled-state explanation.\n */\nconst errorMessage: ComputedRef<string | null> = computed(() => {\n if (trimmed.value.length === 0) {\n // Empty input is the default state, so we keep the field free of error\n // styling and only block submission via `isDisabled` below.\n return null\n }\n if (existingVersions.includes(trimmed.value)) {\n return `Version \"${trimmed.value}\" is already loaded in the workspace.`\n }\n return null\n})\n\n/** Submit is blocked while the input is empty or the version already exists locally. */\nconst isDisabled: ComputedRef<boolean> = computed(\n () => trimmed.value.length === 0 || errorMessage.value !== null,\n)\n\n/** Reset the field whenever the modal opens so stale input never leaks across sessions. */\nwatch(\n () => state.open,\n (isOpen) => {\n if (isOpen) {\n version.value = ''\n }\n },\n)\n\nconst handleSubmit = (): void => {\n if (isDisabled.value) {\n return\n }\n emit('create', trimmed.value)\n state.hide()\n}\n</script>\n\n<template>\n <ScalarModal\n bodyClass=\"border-t-0 rounded-t-lg\"\n size=\"xs\"\n :state=\"state\"\n title=\"Create new version\">\n <CommandActionForm\n :disabled=\"isDisabled\"\n @submit=\"handleSubmit\">\n <CommandActionInput\n v-model=\"version\"\n class=\"-mt-[.5px] !p-0\"\n placeholder=\"Version (e.g. 2.1.0)\" />\n\n <p\n v-if=\"sourceVersion\"\n class=\"text-c-2 text-xs\">\n Branching from version\n <span class=\"text-c-1 font-medium\">{{ sourceVersion }}</span>\n </p>\n\n <p\n v-if=\"errorMessage\"\n class=\"text-red text-xs\"\n role=\"alert\">\n {{ errorMessage }}\n </p>\n\n <template #submit>Create version</template>\n </CommandActionForm>\n </ScalarModal>\n</template>\n"],"mappings":""}