@scalar/api-client 3.6.1 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (905) hide show
  1. package/CHANGELOG.md +157 -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 +214 -1651
  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/AuthSelector.vue.script.js.map +1 -1
  131. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +2 -2
  132. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +30 -20
  133. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  134. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js.map +1 -1
  135. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js +43 -21
  136. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js.map +1 -1
  137. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts +15 -2
  138. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts.map +1 -1
  139. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +1 -3
  140. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js.map +1 -1
  141. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js +74 -28
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js.map +1 -1
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +30 -20
  144. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
  145. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js.map +1 -1
  146. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js +190 -72
  147. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js.map +1 -1
  148. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  149. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js.map +1 -1
  150. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js +7 -1
  151. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js.map +1 -1
  152. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +26 -10
  153. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  154. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js.map +1 -1
  155. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js +25 -3
  156. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js.map +1 -1
  157. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  158. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +12 -3
  159. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js.map +1 -1
  160. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +1 -0
  161. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -1
  162. package/dist/v2/components/code-input/CodeInput.vue.d.ts +4 -4
  163. package/dist/v2/components/code-input/CodeInput.vue.script.js +1 -1
  164. package/dist/v2/components/code-input/code-variable-widget.js +1 -1
  165. package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +2 -2
  166. package/dist/v2/components/modals/DeleteModal.vue.d.ts +2 -2
  167. package/dist/v2/components/server/ServerDropdown.vue.d.ts +2 -2
  168. package/dist/v2/components/server/ServerDropdown.vue.js.map +1 -1
  169. package/dist/v2/components/server/ServerDropdown.vue.script.js +1 -1
  170. package/dist/v2/components/server/ServerDropdown.vue.script.js.map +1 -1
  171. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  172. package/dist/v2/components/sidebar/Sidebar.vue.js.map +1 -1
  173. package/dist/v2/components/sidebar/Sidebar.vue.script.js +4 -3
  174. package/dist/v2/components/sidebar/Sidebar.vue.script.js.map +1 -1
  175. package/dist/v2/constants.js +1 -1
  176. package/dist/v2/features/command-palette/components/CommandActionForm.vue.d.ts +2 -2
  177. package/dist/v2/features/command-palette/components/CommandActionInput.vue.d.ts +2 -2
  178. package/dist/v2/features/command-palette/index.d.ts +0 -2
  179. package/dist/v2/features/command-palette/index.d.ts.map +1 -1
  180. package/dist/v2/features/command-palette/index.js +1 -3
  181. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +2 -2
  182. package/dist/v2/features/modal/Modal.vue.d.ts +5 -7
  183. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  184. package/dist/v2/features/modal/Modal.vue.js.map +1 -1
  185. package/dist/v2/features/modal/Modal.vue.script.js +3 -3
  186. package/dist/v2/features/modal/Modal.vue.script.js.map +1 -1
  187. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +1 -1
  188. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  189. package/dist/v2/features/modal/helpers/create-api-client-modal.js +8 -3
  190. package/dist/v2/features/modal/helpers/create-api-client-modal.js.map +1 -1
  191. package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts +5 -1
  192. package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts.map +1 -1
  193. package/dist/v2/features/modal/helpers/resolve-route-parameters.js +15 -4
  194. package/dist/v2/features/modal/helpers/resolve-route-parameters.js.map +1 -1
  195. package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts.map +1 -1
  196. package/dist/v2/features/modal/hooks/use-modal-sidebar.js +5 -1
  197. package/dist/v2/features/modal/hooks/use-modal-sidebar.js.map +1 -1
  198. package/dist/v2/features/modal/index.js +1 -1
  199. package/dist/v2/features/modal/modal-events.d.ts.map +1 -1
  200. package/dist/v2/features/modal/modal-events.js +10 -6
  201. package/dist/v2/features/modal/modal-events.js.map +1 -1
  202. package/dist/v2/features/operation/Operation.vue.d.ts +35 -3
  203. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  204. package/dist/v2/features/operation/Operation.vue.js.map +1 -1
  205. package/dist/v2/features/operation/Operation.vue.script.js +1 -9
  206. package/dist/v2/features/operation/Operation.vue.script.js.map +1 -1
  207. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  208. package/dist/v2/helpers/handle-hotkeys.js +4 -0
  209. package/dist/v2/helpers/handle-hotkeys.js.map +1 -1
  210. package/dist/v2/helpers/test-utils.d.ts +2 -0
  211. package/dist/v2/helpers/test-utils.d.ts.map +1 -1
  212. package/dist/v2/helpers/test-utils.js +18 -0
  213. package/dist/v2/helpers/test-utils.js.map +1 -0
  214. package/dist/v2/hooks/index.d.ts +2 -0
  215. package/dist/v2/hooks/index.d.ts.map +1 -0
  216. package/dist/v2/hooks/index.js +2 -0
  217. package/dist/v2/types/options.d.ts +1 -1
  218. package/dist/v2/types/options.d.ts.map +1 -1
  219. package/dist/v2/workspace-events.d.ts.map +1 -1
  220. package/dist/v2/workspace-events.js +2 -0
  221. package/dist/v2/workspace-events.js.map +1 -1
  222. package/dist/vue-styles.css +108 -658
  223. package/package.json +68 -97
  224. package/dist/components/IconSelector.vue.d.ts +0 -27
  225. package/dist/components/IconSelector.vue.d.ts.map +0 -1
  226. package/dist/components/IconSelector.vue.js +0 -7
  227. package/dist/components/IconSelector.vue.js.map +0 -1
  228. package/dist/components/IconSelector.vue.script.js +0 -65
  229. package/dist/components/IconSelector.vue.script.js.map +0 -1
  230. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts +0 -7
  231. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +0 -1
  232. package/dist/components/ImportCollection/IntegrationLogo.vue.js +0 -7
  233. package/dist/components/ImportCollection/IntegrationLogo.vue.js.map +0 -1
  234. package/dist/components/ImportCollection/IntegrationLogo.vue.script.js +0 -50
  235. package/dist/components/ImportCollection/IntegrationLogo.vue.script.js.map +0 -1
  236. package/dist/components/ScalarAsciiArt.vue.d.ts.map +0 -1
  237. package/dist/components/ScalarAsciiArt.vue.js.map +0 -1
  238. package/dist/components/ScalarAsciiArt.vue.script.js.map +0 -1
  239. package/dist/index.d.ts +0 -2
  240. package/dist/index.d.ts.map +0 -1
  241. package/dist/monacoeditorwork/editor.worker.bundle.js +0 -14319
  242. package/dist/monacoeditorwork/json.worker.bundle.js +0 -22098
  243. package/dist/monacoeditorwork/yaml.worker.bundle.js +0 -38414
  244. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +0 -42
  245. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +0 -1
  246. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +0 -61
  247. package/dist/v2/blocks/request-block/helpers/get-default-headers.js.map +0 -1
  248. package/dist/v2/features/app/App.vue.d.ts +0 -75
  249. package/dist/v2/features/app/App.vue.d.ts.map +0 -1
  250. package/dist/v2/features/app/App.vue.js +0 -8
  251. package/dist/v2/features/app/App.vue.js.map +0 -1
  252. package/dist/v2/features/app/App.vue.script.js +0 -284
  253. package/dist/v2/features/app/App.vue.script.js.map +0 -1
  254. package/dist/v2/features/app/app-events.d.ts +0 -20
  255. package/dist/v2/features/app/app-events.d.ts.map +0 -1
  256. package/dist/v2/features/app/app-events.js +0 -254
  257. package/dist/v2/features/app/app-events.js.map +0 -1
  258. package/dist/v2/features/app/app-state.d.ts +0 -156
  259. package/dist/v2/features/app/app-state.d.ts.map +0 -1
  260. package/dist/v2/features/app/app-state.js +0 -717
  261. package/dist/v2/features/app/app-state.js.map +0 -1
  262. package/dist/v2/features/app/components/AppHeader.vue.d.ts +0 -43
  263. package/dist/v2/features/app/components/AppHeader.vue.d.ts.map +0 -1
  264. package/dist/v2/features/app/components/AppHeader.vue.js +0 -7
  265. package/dist/v2/features/app/components/AppHeader.vue.js.map +0 -1
  266. package/dist/v2/features/app/components/AppHeader.vue.script.js +0 -53
  267. package/dist/v2/features/app/components/AppHeader.vue.script.js.map +0 -1
  268. package/dist/v2/features/app/components/AppHeaderActions.vue.d.ts +0 -32
  269. package/dist/v2/features/app/components/AppHeaderActions.vue.d.ts.map +0 -1
  270. package/dist/v2/features/app/components/AppHeaderActions.vue.js +0 -7
  271. package/dist/v2/features/app/components/AppHeaderActions.vue.js.map +0 -1
  272. package/dist/v2/features/app/components/AppHeaderActions.vue.script.js +0 -172
  273. package/dist/v2/features/app/components/AppHeaderActions.vue.script.js.map +0 -1
  274. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +0 -37
  275. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +0 -1
  276. package/dist/v2/features/app/components/AppSidebar.vue.js +0 -9
  277. package/dist/v2/features/app/components/AppSidebar.vue.js.map +0 -1
  278. package/dist/v2/features/app/components/AppSidebar.vue.script.js +0 -466
  279. package/dist/v2/features/app/components/AppSidebar.vue.script.js.map +0 -1
  280. package/dist/v2/features/app/components/CreateVersionModal.vue.d.ts +0 -28
  281. package/dist/v2/features/app/components/CreateVersionModal.vue.d.ts.map +0 -1
  282. package/dist/v2/features/app/components/CreateVersionModal.vue.js +0 -7
  283. package/dist/v2/features/app/components/CreateVersionModal.vue.js.map +0 -1
  284. package/dist/v2/features/app/components/CreateVersionModal.vue.script.js +0 -84
  285. package/dist/v2/features/app/components/CreateVersionModal.vue.script.js.map +0 -1
  286. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts +0 -16
  287. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts.map +0 -1
  288. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +0 -7
  289. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js.map +0 -1
  290. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js +0 -58
  291. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js.map +0 -1
  292. package/dist/v2/features/app/components/DesktopTab.vue.d.ts +0 -27
  293. package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +0 -1
  294. package/dist/v2/features/app/components/DesktopTab.vue.js +0 -9
  295. package/dist/v2/features/app/components/DesktopTab.vue.js.map +0 -1
  296. package/dist/v2/features/app/components/DesktopTab.vue.script.js +0 -121
  297. package/dist/v2/features/app/components/DesktopTab.vue.script.js.map +0 -1
  298. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +0 -14
  299. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +0 -1
  300. package/dist/v2/features/app/components/DesktopTabs.vue.js +0 -7
  301. package/dist/v2/features/app/components/DesktopTabs.vue.js.map +0 -1
  302. package/dist/v2/features/app/components/DesktopTabs.vue.script.js +0 -75
  303. package/dist/v2/features/app/components/DesktopTabs.vue.script.js.map +0 -1
  304. package/dist/v2/features/app/components/DocumentBreadcrumb.vue.d.ts +0 -25
  305. package/dist/v2/features/app/components/DocumentBreadcrumb.vue.d.ts.map +0 -1
  306. package/dist/v2/features/app/components/DocumentBreadcrumb.vue.js +0 -9
  307. package/dist/v2/features/app/components/DocumentBreadcrumb.vue.js.map +0 -1
  308. package/dist/v2/features/app/components/DocumentBreadcrumb.vue.script.js +0 -345
  309. package/dist/v2/features/app/components/DocumentBreadcrumb.vue.script.js.map +0 -1
  310. package/dist/v2/features/app/components/DocumentSyncIndicator.vue.d.ts +0 -16
  311. package/dist/v2/features/app/components/DocumentSyncIndicator.vue.d.ts.map +0 -1
  312. package/dist/v2/features/app/components/PublishDocumentModal.vue.d.ts +0 -77
  313. package/dist/v2/features/app/components/PublishDocumentModal.vue.d.ts.map +0 -1
  314. package/dist/v2/features/app/components/PublishDocumentModal.vue.js +0 -7
  315. package/dist/v2/features/app/components/PublishDocumentModal.vue.js.map +0 -1
  316. package/dist/v2/features/app/components/PublishDocumentModal.vue.script.js +0 -209
  317. package/dist/v2/features/app/components/PublishDocumentModal.vue.script.js.map +0 -1
  318. package/dist/v2/features/app/components/SidebarDocument.vue.d.ts +0 -45
  319. package/dist/v2/features/app/components/SidebarDocument.vue.d.ts.map +0 -1
  320. package/dist/v2/features/app/components/SidebarDocument.vue.js +0 -7
  321. package/dist/v2/features/app/components/SidebarDocument.vue.js.map +0 -1
  322. package/dist/v2/features/app/components/SidebarDocument.vue.script.js +0 -137
  323. package/dist/v2/features/app/components/SidebarDocument.vue.script.js.map +0 -1
  324. package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts +0 -26
  325. package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts.map +0 -1
  326. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +0 -7
  327. package/dist/v2/features/app/components/SidebarItemMenu.vue.js.map +0 -1
  328. package/dist/v2/features/app/components/SidebarItemMenu.vue.script.js +0 -175
  329. package/dist/v2/features/app/components/SidebarItemMenu.vue.script.js.map +0 -1
  330. package/dist/v2/features/app/components/SplashScreen.vue.d.ts +0 -4
  331. package/dist/v2/features/app/components/SplashScreen.vue.d.ts.map +0 -1
  332. package/dist/v2/features/app/components/SplashScreen.vue.js +0 -9
  333. package/dist/v2/features/app/components/SplashScreen.vue.js.map +0 -1
  334. package/dist/v2/features/app/components/SplashScreen.vue.script.js +0 -20
  335. package/dist/v2/features/app/components/SplashScreen.vue.script.js.map +0 -1
  336. package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.d.ts +0 -18
  337. package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.d.ts.map +0 -1
  338. package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.js +0 -9
  339. package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.js.map +0 -1
  340. package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.script.js +0 -136
  341. package/dist/v2/features/app/components/SyncConflictResolutionEditor.vue.script.js.map +0 -1
  342. package/dist/v2/features/app/components/index.d.ts +0 -2
  343. package/dist/v2/features/app/components/index.d.ts.map +0 -1
  344. package/dist/v2/features/app/components/index.js +0 -2
  345. package/dist/v2/features/app/helpers/check-version-conflict.d.ts +0 -54
  346. package/dist/v2/features/app/helpers/check-version-conflict.d.ts.map +0 -1
  347. package/dist/v2/features/app/helpers/check-version-conflict.js +0 -82
  348. package/dist/v2/features/app/helpers/check-version-conflict.js.map +0 -1
  349. package/dist/v2/features/app/helpers/compute-version-status.d.ts +0 -45
  350. package/dist/v2/features/app/helpers/compute-version-status.d.ts.map +0 -1
  351. package/dist/v2/features/app/helpers/compute-version-status.js +0 -18
  352. package/dist/v2/features/app/helpers/compute-version-status.js.map +0 -1
  353. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +0 -59
  354. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +0 -1
  355. package/dist/v2/features/app/helpers/create-api-client-app.js +0 -55
  356. package/dist/v2/features/app/helpers/create-api-client-app.js.map +0 -1
  357. package/dist/v2/features/app/helpers/create-draft-registry-document.d.ts +0 -39
  358. package/dist/v2/features/app/helpers/create-draft-registry-document.d.ts.map +0 -1
  359. package/dist/v2/features/app/helpers/create-draft-registry-document.js +0 -64
  360. package/dist/v2/features/app/helpers/create-draft-registry-document.js.map +0 -1
  361. package/dist/v2/features/app/helpers/create-temp-operation.d.ts +0 -14
  362. package/dist/v2/features/app/helpers/create-temp-operation.d.ts.map +0 -1
  363. package/dist/v2/features/app/helpers/create-temp-operation.js +0 -52
  364. package/dist/v2/features/app/helpers/create-temp-operation.js.map +0 -1
  365. package/dist/v2/features/app/helpers/detect-document-conflicts.d.ts +0 -26
  366. package/dist/v2/features/app/helpers/detect-document-conflicts.d.ts.map +0 -1
  367. package/dist/v2/features/app/helpers/detect-document-conflicts.js +0 -27
  368. package/dist/v2/features/app/helpers/detect-document-conflicts.js.map +0 -1
  369. package/dist/v2/features/app/helpers/filter-workspaces.d.ts +0 -49
  370. package/dist/v2/features/app/helpers/filter-workspaces.d.ts.map +0 -1
  371. package/dist/v2/features/app/helpers/filter-workspaces.js +0 -55
  372. package/dist/v2/features/app/helpers/filter-workspaces.js.map +0 -1
  373. package/dist/v2/features/app/helpers/get-route-param.d.ts +0 -7
  374. package/dist/v2/features/app/helpers/get-route-param.d.ts.map +0 -1
  375. package/dist/v2/features/app/helpers/get-route-param.js +0 -12
  376. package/dist/v2/features/app/helpers/get-route-param.js.map +0 -1
  377. package/dist/v2/features/app/helpers/group-workspaces.d.ts +0 -44
  378. package/dist/v2/features/app/helpers/group-workspaces.d.ts.map +0 -1
  379. package/dist/v2/features/app/helpers/group-workspaces.js +0 -53
  380. package/dist/v2/features/app/helpers/group-workspaces.js.map +0 -1
  381. package/dist/v2/features/app/helpers/load-registry-document.d.ts +0 -24
  382. package/dist/v2/features/app/helpers/load-registry-document.d.ts.map +0 -1
  383. package/dist/v2/features/app/helpers/load-registry-document.js +0 -47
  384. package/dist/v2/features/app/helpers/load-registry-document.js.map +0 -1
  385. package/dist/v2/features/app/helpers/registry-error-messages.d.ts +0 -23
  386. package/dist/v2/features/app/helpers/registry-error-messages.d.ts.map +0 -1
  387. package/dist/v2/features/app/helpers/registry-error-messages.js +0 -63
  388. package/dist/v2/features/app/helpers/registry-error-messages.js.map +0 -1
  389. package/dist/v2/features/app/helpers/routes.d.ts +0 -184
  390. package/dist/v2/features/app/helpers/routes.d.ts.map +0 -1
  391. package/dist/v2/features/app/helpers/routes.js +0 -153
  392. package/dist/v2/features/app/helpers/routes.js.map +0 -1
  393. package/dist/v2/features/app/helpers/version-status-presentation.d.ts +0 -24
  394. package/dist/v2/features/app/helpers/version-status-presentation.d.ts.map +0 -1
  395. package/dist/v2/features/app/helpers/version-status-presentation.js +0 -43
  396. package/dist/v2/features/app/helpers/version-status-presentation.js.map +0 -1
  397. package/dist/v2/features/app/hooks/use-active-document-version.d.ts +0 -42
  398. package/dist/v2/features/app/hooks/use-active-document-version.d.ts.map +0 -1
  399. package/dist/v2/features/app/hooks/use-active-document-version.js +0 -60
  400. package/dist/v2/features/app/hooks/use-active-document-version.js.map +0 -1
  401. package/dist/v2/features/app/hooks/use-document-filter.d.ts +0 -38
  402. package/dist/v2/features/app/hooks/use-document-filter.d.ts.map +0 -1
  403. package/dist/v2/features/app/hooks/use-document-filter.js +0 -63
  404. package/dist/v2/features/app/hooks/use-document-filter.js.map +0 -1
  405. package/dist/v2/features/app/hooks/use-document-sync.d.ts +0 -126
  406. package/dist/v2/features/app/hooks/use-document-sync.d.ts.map +0 -1
  407. package/dist/v2/features/app/hooks/use-document-sync.js +0 -448
  408. package/dist/v2/features/app/hooks/use-document-sync.js.map +0 -1
  409. package/dist/v2/features/app/hooks/use-document-watcher.d.ts +0 -30
  410. package/dist/v2/features/app/hooks/use-document-watcher.d.ts.map +0 -1
  411. package/dist/v2/features/app/hooks/use-document-watcher.js +0 -168
  412. package/dist/v2/features/app/hooks/use-document-watcher.js.map +0 -1
  413. package/dist/v2/features/app/hooks/use-network-status.d.ts +0 -29
  414. package/dist/v2/features/app/hooks/use-network-status.d.ts.map +0 -1
  415. package/dist/v2/features/app/hooks/use-network-status.js +0 -58
  416. package/dist/v2/features/app/hooks/use-network-status.js.map +0 -1
  417. package/dist/v2/features/app/hooks/use-sidebar-context-menu.d.ts +0 -17258
  418. package/dist/v2/features/app/hooks/use-sidebar-context-menu.d.ts.map +0 -1
  419. package/dist/v2/features/app/hooks/use-sidebar-context-menu.js +0 -107
  420. package/dist/v2/features/app/hooks/use-sidebar-context-menu.js.map +0 -1
  421. package/dist/v2/features/app/hooks/use-sidebar-documents.d.ts +0 -119
  422. package/dist/v2/features/app/hooks/use-sidebar-documents.d.ts.map +0 -1
  423. package/dist/v2/features/app/hooks/use-sidebar-documents.js +0 -219
  424. package/dist/v2/features/app/hooks/use-sidebar-documents.js.map +0 -1
  425. package/dist/v2/features/app/hooks/use-theme.d.ts +0 -56
  426. package/dist/v2/features/app/hooks/use-theme.d.ts.map +0 -1
  427. package/dist/v2/features/app/hooks/use-theme.js +0 -94
  428. package/dist/v2/features/app/hooks/use-theme.js.map +0 -1
  429. package/dist/v2/features/app/hooks/use-version-conflict-check.d.ts +0 -35
  430. package/dist/v2/features/app/hooks/use-version-conflict-check.d.ts.map +0 -1
  431. package/dist/v2/features/app/hooks/use-version-conflict-check.js +0 -62
  432. package/dist/v2/features/app/hooks/use-version-conflict-check.js.map +0 -1
  433. package/dist/v2/features/app/index.d.ts +0 -10
  434. package/dist/v2/features/app/index.d.ts.map +0 -1
  435. package/dist/v2/features/app/index.js +0 -8
  436. package/dist/v2/features/collection/DocumentCollection.vue.d.ts +0 -13
  437. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +0 -1
  438. package/dist/v2/features/collection/DocumentCollection.vue.js +0 -8
  439. package/dist/v2/features/collection/DocumentCollection.vue.js.map +0 -1
  440. package/dist/v2/features/collection/DocumentCollection.vue.script.js +0 -112
  441. package/dist/v2/features/collection/DocumentCollection.vue.script.js.map +0 -1
  442. package/dist/v2/features/collection/OperationCollection.vue.d.ts +0 -6
  443. package/dist/v2/features/collection/OperationCollection.vue.d.ts.map +0 -1
  444. package/dist/v2/features/collection/OperationCollection.vue.js +0 -7
  445. package/dist/v2/features/collection/OperationCollection.vue.js.map +0 -1
  446. package/dist/v2/features/collection/OperationCollection.vue.script.js +0 -95
  447. package/dist/v2/features/collection/OperationCollection.vue.script.js.map +0 -1
  448. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +0 -6
  449. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +0 -1
  450. package/dist/v2/features/collection/WorkspaceCollection.vue.js +0 -7
  451. package/dist/v2/features/collection/WorkspaceCollection.vue.js.map +0 -1
  452. package/dist/v2/features/collection/WorkspaceCollection.vue.script.js +0 -74
  453. package/dist/v2/features/collection/WorkspaceCollection.vue.script.js.map +0 -1
  454. package/dist/v2/features/collection/components/Authentication.vue.d.ts +0 -16
  455. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +0 -1
  456. package/dist/v2/features/collection/components/Authentication.vue.js +0 -9
  457. package/dist/v2/features/collection/components/Authentication.vue.js.map +0 -1
  458. package/dist/v2/features/collection/components/Authentication.vue.script.js +0 -174
  459. package/dist/v2/features/collection/components/Authentication.vue.script.js.map +0 -1
  460. package/dist/v2/features/collection/components/Cookies.vue.d.ts +0 -21
  461. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +0 -1
  462. package/dist/v2/features/collection/components/Cookies.vue.js +0 -7
  463. package/dist/v2/features/collection/components/Cookies.vue.js.map +0 -1
  464. package/dist/v2/features/collection/components/Cookies.vue.script.js +0 -58
  465. package/dist/v2/features/collection/components/Cookies.vue.script.js.map +0 -1
  466. package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.d.ts +0 -12
  467. package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.d.ts.map +0 -1
  468. package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.js +0 -9
  469. package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.js.map +0 -1
  470. package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.script.js +0 -174
  471. package/dist/v2/features/collection/components/DocumentScriptsEditors.vue.script.js.map +0 -1
  472. package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts +0 -16
  473. package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts.map +0 -1
  474. package/dist/v2/features/collection/components/Editor/Editor.vue.js +0 -9
  475. package/dist/v2/features/collection/components/Editor/Editor.vue.js.map +0 -1
  476. package/dist/v2/features/collection/components/Editor/Editor.vue.script.js +0 -361
  477. package/dist/v2/features/collection/components/Editor/Editor.vue.script.js.map +0 -1
  478. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.d.ts +0 -19
  479. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.d.ts.map +0 -1
  480. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js +0 -7
  481. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js.map +0 -1
  482. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.script.js +0 -69
  483. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.script.js.map +0 -1
  484. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.d.ts +0 -16
  485. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.d.ts.map +0 -1
  486. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js +0 -7
  487. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js.map +0 -1
  488. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.script.js +0 -91
  489. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.script.js.map +0 -1
  490. package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.d.ts +0 -12
  491. package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.d.ts.map +0 -1
  492. package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js +0 -22
  493. package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js.map +0 -1
  494. package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.d.ts +0 -11
  495. package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.d.ts.map +0 -1
  496. package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js +0 -17
  497. package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js.map +0 -1
  498. package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.d.ts +0 -7
  499. package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.d.ts.map +0 -1
  500. package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js +0 -17
  501. package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js.map +0 -1
  502. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.d.ts +0 -10
  503. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.d.ts.map +0 -1
  504. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js +0 -34
  505. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js.map +0 -1
  506. package/dist/v2/features/collection/components/Editor/helpers/stringify-document.d.ts +0 -10
  507. package/dist/v2/features/collection/components/Editor/helpers/stringify-document.d.ts.map +0 -1
  508. package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js +0 -18
  509. package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js.map +0 -1
  510. package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.d.ts +0 -15
  511. package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.d.ts.map +0 -1
  512. package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js +0 -36
  513. package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js.map +0 -1
  514. package/dist/v2/features/collection/components/Editor/index.d.ts +0 -2
  515. package/dist/v2/features/collection/components/Editor/index.d.ts.map +0 -1
  516. package/dist/v2/features/collection/components/Editor/index.js +0 -2
  517. package/dist/v2/features/collection/components/Environment.vue.d.ts +0 -21
  518. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +0 -1
  519. package/dist/v2/features/collection/components/Environment.vue.js +0 -7
  520. package/dist/v2/features/collection/components/Environment.vue.js.map +0 -1
  521. package/dist/v2/features/collection/components/Environment.vue.script.js +0 -61
  522. package/dist/v2/features/collection/components/Environment.vue.script.js.map +0 -1
  523. package/dist/v2/features/collection/components/Form.vue.d.ts +0 -29
  524. package/dist/v2/features/collection/components/Form.vue.d.ts.map +0 -1
  525. package/dist/v2/features/collection/components/Form.vue.js +0 -7
  526. package/dist/v2/features/collection/components/Form.vue.js.map +0 -1
  527. package/dist/v2/features/collection/components/Form.vue.script.js +0 -78
  528. package/dist/v2/features/collection/components/Form.vue.script.js.map +0 -1
  529. package/dist/v2/features/collection/components/GetStarted.vue.d.ts +0 -21
  530. package/dist/v2/features/collection/components/GetStarted.vue.d.ts.map +0 -1
  531. package/dist/v2/features/collection/components/GetStarted.vue.js +0 -7
  532. package/dist/v2/features/collection/components/GetStarted.vue.js.map +0 -1
  533. package/dist/v2/features/collection/components/GetStarted.vue.script.js +0 -144
  534. package/dist/v2/features/collection/components/GetStarted.vue.script.js.map +0 -1
  535. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +0 -18
  536. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +0 -1
  537. package/dist/v2/features/collection/components/LabelInput.vue.js +0 -9
  538. package/dist/v2/features/collection/components/LabelInput.vue.js.map +0 -1
  539. package/dist/v2/features/collection/components/LabelInput.vue.script.js +0 -38
  540. package/dist/v2/features/collection/components/LabelInput.vue.script.js.map +0 -1
  541. package/dist/v2/features/collection/components/Overview.vue.d.ts +0 -16
  542. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +0 -1
  543. package/dist/v2/features/collection/components/Overview.vue.js +0 -9
  544. package/dist/v2/features/collection/components/Overview.vue.js.map +0 -1
  545. package/dist/v2/features/collection/components/Overview.vue.script.js +0 -204
  546. package/dist/v2/features/collection/components/Overview.vue.script.js.map +0 -1
  547. package/dist/v2/features/collection/components/Runner/components/Runner.vue.d.ts +0 -16
  548. package/dist/v2/features/collection/components/Runner/components/Runner.vue.d.ts.map +0 -1
  549. package/dist/v2/features/collection/components/Runner/components/Runner.vue.js +0 -7
  550. package/dist/v2/features/collection/components/Runner/components/Runner.vue.js.map +0 -1
  551. package/dist/v2/features/collection/components/Runner/components/Runner.vue.script.js +0 -223
  552. package/dist/v2/features/collection/components/Runner/components/Runner.vue.script.js.map +0 -1
  553. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.d.ts +0 -20
  554. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.d.ts.map +0 -1
  555. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.js +0 -7
  556. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.js.map +0 -1
  557. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.script.js +0 -45
  558. package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.script.js.map +0 -1
  559. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.d.ts +0 -19
  560. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.d.ts.map +0 -1
  561. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.js +0 -7
  562. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.js.map +0 -1
  563. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.script.js +0 -73
  564. package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.script.js.map +0 -1
  565. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.d.ts +0 -16
  566. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.d.ts.map +0 -1
  567. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.js +0 -7
  568. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.js.map +0 -1
  569. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.script.js +0 -124
  570. package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.script.js.map +0 -1
  571. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.d.ts +0 -17
  572. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.d.ts.map +0 -1
  573. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.js +0 -7
  574. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.js.map +0 -1
  575. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.script.js +0 -126
  576. package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.script.js.map +0 -1
  577. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.d.ts +0 -18
  578. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.d.ts.map +0 -1
  579. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.js +0 -7
  580. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.js.map +0 -1
  581. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.script.js +0 -180
  582. package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.script.js.map +0 -1
  583. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.d.ts +0 -14
  584. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.d.ts.map +0 -1
  585. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.js +0 -7
  586. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.js.map +0 -1
  587. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.script.js +0 -44
  588. package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.script.js.map +0 -1
  589. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.d.ts +0 -19
  590. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.d.ts.map +0 -1
  591. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.js +0 -7
  592. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.js.map +0 -1
  593. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.script.js +0 -53
  594. package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.script.js.map +0 -1
  595. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.d.ts +0 -23
  596. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.d.ts.map +0 -1
  597. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.js +0 -7
  598. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.js.map +0 -1
  599. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.script.js +0 -75
  600. package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.script.js.map +0 -1
  601. package/dist/v2/features/collection/components/Runner/hooks/index.d.ts +0 -3
  602. package/dist/v2/features/collection/components/Runner/hooks/index.d.ts.map +0 -1
  603. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.d.ts +0 -75
  604. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.d.ts.map +0 -1
  605. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.js +0 -191
  606. package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.js.map +0 -1
  607. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.d.ts +0 -46
  608. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.d.ts.map +0 -1
  609. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.js +0 -114
  610. package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.js.map +0 -1
  611. package/dist/v2/features/collection/components/Runner/index.d.ts +0 -2
  612. package/dist/v2/features/collection/components/Runner/index.d.ts.map +0 -1
  613. package/dist/v2/features/collection/components/Scripts.vue.d.ts +0 -16
  614. package/dist/v2/features/collection/components/Scripts.vue.d.ts.map +0 -1
  615. package/dist/v2/features/collection/components/Scripts.vue.js +0 -7
  616. package/dist/v2/features/collection/components/Scripts.vue.js.map +0 -1
  617. package/dist/v2/features/collection/components/Scripts.vue.script.js +0 -49
  618. package/dist/v2/features/collection/components/Scripts.vue.script.js.map +0 -1
  619. package/dist/v2/features/collection/components/Servers.vue.d.ts +0 -16
  620. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +0 -1
  621. package/dist/v2/features/collection/components/Servers.vue.js +0 -7
  622. package/dist/v2/features/collection/components/Servers.vue.js.map +0 -1
  623. package/dist/v2/features/collection/components/Servers.vue.script.js +0 -219
  624. package/dist/v2/features/collection/components/Servers.vue.script.js.map +0 -1
  625. package/dist/v2/features/collection/components/Settings.vue.d.ts +0 -16
  626. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +0 -1
  627. package/dist/v2/features/collection/components/Settings.vue.js +0 -7
  628. package/dist/v2/features/collection/components/Settings.vue.js.map +0 -1
  629. package/dist/v2/features/collection/components/Settings.vue.script.js +0 -81
  630. package/dist/v2/features/collection/components/Settings.vue.script.js.map +0 -1
  631. package/dist/v2/features/collection/components/Tabs.vue.d.ts +0 -8
  632. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +0 -1
  633. package/dist/v2/features/collection/components/Tabs.vue.js +0 -7
  634. package/dist/v2/features/collection/components/Tabs.vue.js.map +0 -1
  635. package/dist/v2/features/collection/components/Tabs.vue.script.js +0 -55
  636. package/dist/v2/features/collection/components/Tabs.vue.script.js.map +0 -1
  637. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts +0 -12
  638. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts.map +0 -1
  639. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +0 -19
  640. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js.map +0 -1
  641. package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts +0 -42
  642. package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts.map +0 -1
  643. package/dist/v2/features/command-palette/TheCommandPalette.vue.js +0 -9
  644. package/dist/v2/features/command-palette/TheCommandPalette.vue.js.map +0 -1
  645. package/dist/v2/features/command-palette/TheCommandPalette.vue.script.js +0 -189
  646. package/dist/v2/features/command-palette/TheCommandPalette.vue.script.js.map +0 -1
  647. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +0 -49
  648. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +0 -1
  649. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +0 -7
  650. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js.map +0 -1
  651. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.script.js +0 -225
  652. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.script.js.map +0 -1
  653. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +0 -53
  654. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +0 -1
  655. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +0 -7
  656. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js.map +0 -1
  657. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js +0 -227
  658. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js.map +0 -1
  659. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts +0 -44
  660. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts.map +0 -1
  661. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js +0 -9
  662. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js.map +0 -1
  663. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.script.js +0 -137
  664. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.script.js.map +0 -1
  665. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.d.ts +0 -30
  666. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.d.ts.map +0 -1
  667. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.js +0 -7
  668. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.js.map +0 -1
  669. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.script.js +0 -156
  670. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.script.js.map +0 -1
  671. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.d.ts +0 -37
  672. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.d.ts.map +0 -1
  673. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.js +0 -7
  674. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.js.map +0 -1
  675. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.script.js +0 -105
  676. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.script.js.map +0 -1
  677. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +0 -48
  678. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +0 -1
  679. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +0 -7
  680. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js.map +0 -1
  681. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.script.js +0 -228
  682. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.script.js.map +0 -1
  683. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +0 -65
  684. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +0 -1
  685. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +0 -7
  686. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js.map +0 -1
  687. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.script.js +0 -142
  688. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.script.js.map +0 -1
  689. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.d.ts +0 -58
  690. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.d.ts.map +0 -1
  691. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.js +0 -9
  692. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.js.map +0 -1
  693. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.script.js +0 -142
  694. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.script.js.map +0 -1
  695. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.d.ts +0 -23
  696. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.d.ts.map +0 -1
  697. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.js +0 -9
  698. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.js.map +0 -1
  699. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.script.js +0 -138
  700. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.script.js.map +0 -1
  701. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts +0 -34
  702. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts.map +0 -1
  703. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +0 -7
  704. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js.map +0 -1
  705. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.script.js +0 -39
  706. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.script.js.map +0 -1
  707. package/dist/v2/features/command-palette/helpers/generate-unique-slug.d.ts +0 -20
  708. package/dist/v2/features/command-palette/helpers/generate-unique-slug.d.ts.map +0 -1
  709. package/dist/v2/features/command-palette/helpers/generate-unique-slug.js +0 -33
  710. package/dist/v2/features/command-palette/helpers/generate-unique-slug.js.map +0 -1
  711. package/dist/v2/features/command-palette/helpers/get-merge-key.d.ts +0 -11
  712. package/dist/v2/features/command-palette/helpers/get-merge-key.d.ts.map +0 -1
  713. package/dist/v2/features/command-palette/helpers/get-merge-key.js +0 -32
  714. package/dist/v2/features/command-palette/helpers/get-merge-key.js.map +0 -1
  715. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +0 -24
  716. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +0 -1
  717. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js +0 -56
  718. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js.map +0 -1
  719. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts +0 -24
  720. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts.map +0 -1
  721. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +0 -22
  722. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js.map +0 -1
  723. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts +0 -26
  724. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts.map +0 -1
  725. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +0 -119
  726. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js.map +0 -1
  727. package/dist/v2/features/command-palette/helpers/get-postman-convert-options.d.ts +0 -14
  728. package/dist/v2/features/command-palette/helpers/get-postman-convert-options.d.ts.map +0 -1
  729. package/dist/v2/features/command-palette/helpers/get-postman-convert-options.js +0 -19
  730. package/dist/v2/features/command-palette/helpers/get-postman-convert-options.js.map +0 -1
  731. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +0 -28
  732. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +0 -1
  733. package/dist/v2/features/command-palette/helpers/get-postman-document-details.js +0 -36
  734. package/dist/v2/features/command-palette/helpers/get-postman-document-details.js.map +0 -1
  735. package/dist/v2/features/command-palette/helpers/import-document-to-workspace.d.ts +0 -30
  736. package/dist/v2/features/command-palette/helpers/import-document-to-workspace.d.ts.map +0 -1
  737. package/dist/v2/features/command-palette/helpers/import-document-to-workspace.js +0 -70
  738. package/dist/v2/features/command-palette/helpers/import-document-to-workspace.js.map +0 -1
  739. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts +0 -20
  740. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts.map +0 -1
  741. package/dist/v2/features/command-palette/helpers/load-document-from-source.js +0 -72
  742. package/dist/v2/features/command-palette/helpers/load-document-from-source.js.map +0 -1
  743. package/dist/v2/features/command-palette/helpers/parse-curl.d.ts +0 -14
  744. package/dist/v2/features/command-palette/helpers/parse-curl.d.ts.map +0 -1
  745. package/dist/v2/features/command-palette/helpers/parse-curl.js +0 -106
  746. package/dist/v2/features/command-palette/helpers/parse-curl.js.map +0 -1
  747. package/dist/v2/features/command-palette/helpers/postman-request-collisions.d.ts +0 -11
  748. package/dist/v2/features/command-palette/helpers/postman-request-collisions.d.ts.map +0 -1
  749. package/dist/v2/features/command-palette/helpers/postman-request-collisions.js +0 -35
  750. package/dist/v2/features/command-palette/helpers/postman-request-collisions.js.map +0 -1
  751. package/dist/v2/features/command-palette/helpers/postman-request-tree.d.ts +0 -41
  752. package/dist/v2/features/command-palette/helpers/postman-request-tree.d.ts.map +0 -1
  753. package/dist/v2/features/command-palette/helpers/postman-request-tree.js +0 -139
  754. package/dist/v2/features/command-palette/helpers/postman-request-tree.js.map +0 -1
  755. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +0 -426
  756. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +0 -1
  757. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -207
  758. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js.map +0 -1
  759. package/dist/v2/features/editor/config.d.ts +0 -16
  760. package/dist/v2/features/editor/config.d.ts.map +0 -1
  761. package/dist/v2/features/editor/config.js +0 -19
  762. package/dist/v2/features/editor/config.js.map +0 -1
  763. package/dist/v2/features/editor/helpers/configure-language-support.d.ts +0 -13
  764. package/dist/v2/features/editor/helpers/configure-language-support.d.ts.map +0 -1
  765. package/dist/v2/features/editor/helpers/configure-language-support.js +0 -48
  766. package/dist/v2/features/editor/helpers/configure-language-support.js.map +0 -1
  767. package/dist/v2/features/editor/helpers/ensure-monaco-environment.d.ts +0 -6
  768. package/dist/v2/features/editor/helpers/ensure-monaco-environment.d.ts.map +0 -1
  769. package/dist/v2/features/editor/helpers/ensure-monaco-environment.js +0 -21
  770. package/dist/v2/features/editor/helpers/ensure-monaco-environment.js.map +0 -1
  771. package/dist/v2/features/editor/helpers/json/create-json-model.d.ts +0 -12
  772. package/dist/v2/features/editor/helpers/json/create-json-model.d.ts.map +0 -1
  773. package/dist/v2/features/editor/helpers/json/create-json-model.js +0 -31
  774. package/dist/v2/features/editor/helpers/json/create-json-model.js.map +0 -1
  775. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts +0 -14
  776. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts.map +0 -1
  777. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js +0 -22
  778. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js.map +0 -1
  779. package/dist/v2/features/editor/helpers/json/json-ast.d.ts +0 -12
  780. package/dist/v2/features/editor/helpers/json/json-ast.d.ts.map +0 -1
  781. package/dist/v2/features/editor/helpers/json/json-ast.js +0 -32
  782. package/dist/v2/features/editor/helpers/json/json-ast.js.map +0 -1
  783. package/dist/v2/features/editor/helpers/json/json-pointer-links.d.ts +0 -15
  784. package/dist/v2/features/editor/helpers/json/json-pointer-links.d.ts.map +0 -1
  785. package/dist/v2/features/editor/helpers/json/json-pointer-links.js +0 -104
  786. package/dist/v2/features/editor/helpers/json/json-pointer-links.js.map +0 -1
  787. package/dist/v2/features/editor/helpers/json/json-pointer-path.d.ts +0 -7
  788. package/dist/v2/features/editor/helpers/json/json-pointer-path.d.ts.map +0 -1
  789. package/dist/v2/features/editor/helpers/json/json-pointer-path.js +0 -27
  790. package/dist/v2/features/editor/helpers/json/json-pointer-path.js.map +0 -1
  791. package/dist/v2/features/editor/helpers/model.d.ts +0 -9
  792. package/dist/v2/features/editor/helpers/model.d.ts.map +0 -1
  793. package/dist/v2/features/editor/helpers/range-to-whole-line.d.ts +0 -14
  794. package/dist/v2/features/editor/helpers/range-to-whole-line.d.ts.map +0 -1
  795. package/dist/v2/features/editor/helpers/range-to-whole-line.js +0 -27
  796. package/dist/v2/features/editor/helpers/range-to-whole-line.js.map +0 -1
  797. package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.d.ts +0 -16
  798. package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.d.ts.map +0 -1
  799. package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.js +0 -84
  800. package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.js.map +0 -1
  801. package/dist/v2/features/editor/helpers/theme/load-css-variables.d.ts +0 -36
  802. package/dist/v2/features/editor/helpers/theme/load-css-variables.d.ts.map +0 -1
  803. package/dist/v2/features/editor/helpers/theme/load-css-variables.js +0 -117
  804. package/dist/v2/features/editor/helpers/theme/load-css-variables.js.map +0 -1
  805. package/dist/v2/features/editor/helpers/yaml/create-yaml-model.d.ts +0 -13
  806. package/dist/v2/features/editor/helpers/yaml/create-yaml-model.d.ts.map +0 -1
  807. package/dist/v2/features/editor/helpers/yaml/create-yaml-model.js +0 -32
  808. package/dist/v2/features/editor/helpers/yaml/create-yaml-model.js.map +0 -1
  809. package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.d.ts +0 -19
  810. package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.d.ts.map +0 -1
  811. package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.js +0 -70
  812. package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.js.map +0 -1
  813. package/dist/v2/features/editor/hooks/use-editor-markers.d.ts +0 -152
  814. package/dist/v2/features/editor/hooks/use-editor-markers.d.ts.map +0 -1
  815. package/dist/v2/features/editor/hooks/use-editor-markers.js +0 -37
  816. package/dist/v2/features/editor/hooks/use-editor-markers.js.map +0 -1
  817. package/dist/v2/features/editor/hooks/use-editor.d.ts +0 -39
  818. package/dist/v2/features/editor/hooks/use-editor.d.ts.map +0 -1
  819. package/dist/v2/features/editor/hooks/use-editor.js +0 -133
  820. package/dist/v2/features/editor/hooks/use-editor.js.map +0 -1
  821. package/dist/v2/features/editor/hooks/use-json-pointer-link-support.d.ts +0 -16
  822. package/dist/v2/features/editor/hooks/use-json-pointer-link-support.d.ts.map +0 -1
  823. package/dist/v2/features/editor/hooks/use-json-pointer-link-support.js +0 -45
  824. package/dist/v2/features/editor/hooks/use-json-pointer-link-support.js.map +0 -1
  825. package/dist/v2/features/editor/hooks/use-three-way-merge-editor.d.ts +0 -77
  826. package/dist/v2/features/editor/hooks/use-three-way-merge-editor.d.ts.map +0 -1
  827. package/dist/v2/features/editor/hooks/use-three-way-merge-editor.js +0 -396
  828. package/dist/v2/features/editor/hooks/use-three-way-merge-editor.js.map +0 -1
  829. package/dist/v2/features/editor/index.d.ts +0 -5
  830. package/dist/v2/features/editor/index.d.ts.map +0 -1
  831. package/dist/v2/features/editor/index.js +0 -5
  832. package/dist/v2/features/editor/schemas/openapi-3.1-schema.json.js +0 -51
  833. package/dist/v2/features/editor/schemas/openapi-3.1-schema.json.js.map +0 -1
  834. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +0 -10
  835. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +0 -1
  836. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +0 -9
  837. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js.map +0 -1
  838. package/dist/v2/features/global-cookies/components/CookiesTable.vue.script.js +0 -188
  839. package/dist/v2/features/global-cookies/components/CookiesTable.vue.script.js.map +0 -1
  840. package/dist/v2/features/global-cookies/index.d.ts +0 -2
  841. package/dist/v2/features/global-cookies/index.d.ts.map +0 -1
  842. package/dist/v2/features/global-cookies/index.js +0 -2
  843. package/dist/v2/features/settings/CollectionSettings.vue.d.ts +0 -28
  844. package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +0 -1
  845. package/dist/v2/features/settings/CollectionSettings.vue.js +0 -7
  846. package/dist/v2/features/settings/CollectionSettings.vue.js.map +0 -1
  847. package/dist/v2/features/settings/CollectionSettings.vue.script.js +0 -229
  848. package/dist/v2/features/settings/CollectionSettings.vue.script.js.map +0 -1
  849. package/dist/v2/features/settings/DocumentSettings.vue.d.ts +0 -20
  850. package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +0 -1
  851. package/dist/v2/features/settings/DocumentSettings.vue.js +0 -7
  852. package/dist/v2/features/settings/DocumentSettings.vue.js.map +0 -1
  853. package/dist/v2/features/settings/DocumentSettings.vue.script.js +0 -92
  854. package/dist/v2/features/settings/DocumentSettings.vue.script.js.map +0 -1
  855. package/dist/v2/features/settings/components/Appearance.vue.d.ts +0 -11
  856. package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +0 -1
  857. package/dist/v2/features/settings/components/Appearance.vue.js +0 -7
  858. package/dist/v2/features/settings/components/Appearance.vue.js.map +0 -1
  859. package/dist/v2/features/settings/components/Appearance.vue.script.js +0 -63
  860. package/dist/v2/features/settings/components/Appearance.vue.script.js.map +0 -1
  861. package/dist/v2/features/settings/components/Section.vue.d.ts +0 -16
  862. package/dist/v2/features/settings/components/Section.vue.d.ts.map +0 -1
  863. package/dist/v2/features/settings/components/Section.vue.js +0 -7
  864. package/dist/v2/features/settings/components/Section.vue.js.map +0 -1
  865. package/dist/v2/features/settings/components/Section.vue.script.js +0 -30
  866. package/dist/v2/features/settings/components/Section.vue.script.js.map +0 -1
  867. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +0 -10
  868. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +0 -1
  869. package/dist/v2/features/settings/helpers/get-theme-colors.js +0 -68
  870. package/dist/v2/features/settings/helpers/get-theme-colors.js.map +0 -1
  871. package/dist/v2/features/settings/index.d.ts +0 -3
  872. package/dist/v2/features/settings/index.d.ts.map +0 -1
  873. package/dist/v2/features/settings/index.js +0 -3
  874. package/dist/v2/helpers/download-document.d.ts +0 -2
  875. package/dist/v2/helpers/download-document.d.ts.map +0 -1
  876. package/dist/v2/helpers/download-document.js +0 -42
  877. package/dist/v2/helpers/download-document.js.map +0 -1
  878. package/dist/v2/helpers/drag-handle-factory.d.ts +0 -16
  879. package/dist/v2/helpers/drag-handle-factory.d.ts.map +0 -1
  880. package/dist/v2/helpers/drag-handle-factory.js +0 -258
  881. package/dist/v2/helpers/drag-handle-factory.js.map +0 -1
  882. package/dist/v2/helpers/get-tab-details.d.ts +0 -43
  883. package/dist/v2/helpers/get-tab-details.d.ts.map +0 -1
  884. package/dist/v2/helpers/get-tab-details.js +0 -54
  885. package/dist/v2/helpers/get-tab-details.js.map +0 -1
  886. package/dist/v2/helpers/is-url.d.ts +0 -2
  887. package/dist/v2/helpers/is-url.d.ts.map +0 -1
  888. package/dist/v2/helpers/is-url.js +0 -10
  889. package/dist/v2/helpers/is-url.js.map +0 -1
  890. package/dist/v2/helpers/safe-run.d.ts +0 -34
  891. package/dist/v2/helpers/safe-run.d.ts.map +0 -1
  892. package/dist/v2/helpers/safe-run.js +0 -43
  893. package/dist/v2/helpers/safe-run.js.map +0 -1
  894. package/dist/v2/helpers/storage.d.ts +0 -31
  895. package/dist/v2/helpers/storage.d.ts.map +0 -1
  896. package/dist/v2/helpers/storage.js +0 -37
  897. package/dist/v2/helpers/storage.js.map +0 -1
  898. package/dist/v2/hooks/use-color-mode.d.ts +0 -20
  899. package/dist/v2/hooks/use-color-mode.d.ts.map +0 -1
  900. package/dist/v2/hooks/use-color-mode.js +0 -72
  901. package/dist/v2/hooks/use-color-mode.js.map +0 -1
  902. package/dist/v2/types/configuration.d.ts +0 -278
  903. package/dist/v2/types/configuration.d.ts.map +0 -1
  904. /package/dist/components/{ScalarAsciiArt.vue.d.ts → ScalarAsciiArt/ScalarAsciiArt.vue.d.ts} +0 -0
  905. /package/dist/{index.js → types/index.js} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-command-palette-state.js","names":[],"sources":["../../../../../src/v2/features/command-palette/hooks/use-command-palette-state.ts"],"sourcesContent":["import { useModal } from '@scalar/components'\nimport {\n ScalarIconArrowSquareIn,\n ScalarIconArrowUpRight,\n ScalarIconBracketsCurly,\n ScalarIconCookie,\n ScalarIconFolder,\n ScalarIconPackage,\n ScalarIconPuzzlePiece,\n ScalarIconSlidersHorizontal,\n} from '@scalar/icons'\nimport type { ScalarIconComponent } from '@scalar/icons/types'\nimport type { CommandPalettePayload } from '@scalar/workspace-store/events'\nimport Fuse from 'fuse.js'\nimport {\n type Component,\n type ComputedRef,\n type MaybeRefOrGetter,\n type Ref,\n type ShallowRef,\n computed,\n ref,\n shallowRef,\n toValue,\n} from 'vue'\nimport type { RouteLocationRaw } from 'vue-router'\n\nimport CommandPaletteExample from '../components/CommandPaletteExample.vue'\nimport CommandPaletteImport from '../components/CommandPaletteImport.vue'\nimport CommandPaletteImportCurl from '../components/CommandPaletteImportCurl.vue'\nimport CommandPaletteImportPostman from '../components/CommandPaletteImportPostman.vue'\nimport CommandPaletteOpenApiDocument from '../components/CommandPaletteOpenApiDocument.vue'\nimport CommandPaletteRequest from '../components/CommandPaletteRequest.vue'\nimport CommandPaletteTag from '../components/CommandPaletteTag.vue'\n\n/**\n * Command IDs that map to UI components (folder and hidden-folder types)\n *\n * For base app commands they are defined by their action payload\n */\ntype UiCommandIds = keyof CommandPalettePayload\n\n/** Map the the prop definitons to the prop value */\ntype CommandPaletteActionProps<K extends UiCommandIds> = CommandPalettePayload[K]\n\n/**\n * Type for the open function in the command palette.\n * Supports two usage patterns:\n * - open() - Opens the palette without a specific command\n * - open(commandId) - Opens a command that does not require props\n * - open(commandId, props) - Opens a command with required props\n */\ntype OpenCommand = {\n (): void\n <T extends UiCommandIds>(commandId: T, props: CommandPaletteActionProps<T>): void\n}\n\n/** Route enntry for the palette list */\nexport type CommandPaletteRoute = {\n id: string\n type: 'route'\n icon: ScalarIconComponent\n name: string\n to: RouteLocationRaw\n}\n\n/** Command entry for the palette list */\ntype BaseCommandPaletteAction = {\n id: keyof CommandPalettePayload\n name: string\n icon?: ScalarIconComponent\n component: Component\n hidden?: boolean\n}\n\nexport type CommandPaletteAction = Omit<BaseCommandPaletteAction, 'id'> & {\n id: string\n}\n\nexport type CommandPaletteEntry = CommandPaletteAction | CommandPaletteRoute\n\n// ---------------------------------------------------------------------------\n\n/**\n * Return type for the useCommandPaletteState composable.\n * Provides reactive state and methods to control the command palette.\n */\nexport type CommandPaletteState = {\n /** Whether the command palette is currently open */\n isOpen: Ref<boolean>\n /** The currently active command, or null if showing the main list */\n activeCommand: ShallowRef<CommandPaletteAction | null>\n /** Properties passed to the active command component */\n activeCommandProps: Ref<Record<string, unknown> | null>\n /** Current filter/search query for filtering commands */\n filterQuery: Ref<string>\n /** Grouped actions and routes to be rendered */\n filteredCommands: ComputedRef<\n {\n label?: string\n commands: (CommandPaletteAction | CommandPaletteRoute)[]\n }[]\n >\n /**\n * Opens the command palette, optionally with a specific command active.\n * When opening a command, props are required only if the command defines them.\n */\n open: OpenCommand\n /** Closes the command palette and resets state */\n close: () => void\n /** Updates the filter query for searching commands */\n setFilterQuery: (query: string) => void\n /** Resets all state to initial values */\n reset: () => void\n}\n\n/**\n * Composable for managing command palette state.\n *\n * Centralizes all state management for the command palette including:\n * - Open/closed state\n * - Filter/search query\n * - Command filtering logic\n *\n * @example\n * const palette = useCommandPaletteState()\n *\n * // Open the palette\n * palette.open()\n *\n * // Open with a specific command\n * palette.open('create-openapi-document')\n *\n * // Open with command props\n * palette.open('import-curl-command', { inputValue: 'curl https://api.example.com' })\n *\n * // Update filter query (automatically filters commands)\n * palette.setFilterQuery('import')\n *\n * // Access filtered results\n * console.log(palette.filteredCommands.value)\n *\n * // Close and reset\n * palette.close()\n */\nexport const useCommandPaletteState = (\n actions: MaybeRefOrGetter<CommandPaletteAction[]> = baseClientActions,\n routes: MaybeRefOrGetter<CommandPaletteRoute[]> = baseRoutes,\n): CommandPaletteState => {\n const modalState = useModal()\n\n const filterQuery = ref('')\n const activeCommand = shallowRef<CommandPaletteAction | null>(null)\n const activeCommandProps = ref<Record<string, unknown> | null>(null)\n\n /** Whether the command palette is currently open */\n const isOpen = computed<boolean>(() => modalState.open)\n\n const fuseActions = computed(\n () =>\n new Fuse(toValue(actions), {\n keys: ['name'],\n threshold: 0.2,\n }),\n )\n\n const fuseRoutes = computed(\n () =>\n new Fuse(toValue(routes), {\n keys: ['name'],\n threshold: 0.2,\n }),\n )\n\n /**\n * Filtered commands based on the current search query.\n * When no query is present, returns all visible commands (excluding hidden-folder).\n * When a query exists, filters commands by name (case-insensitive) and excludes hidden-folder.\n * Empty groups are excluded from the results.\n */\n const filteredActions = computed<CommandPaletteAction[]>(() => {\n const query = filterQuery.value.toLowerCase().trim()\n\n // Filter commands by name when query exists\n const base = query ? fuseActions.value.search(query).map((a) => a.item) : toValue(actions)\n\n // Always exclude hidden folders\n return base.filter((a) => !a.hidden)\n })\n\n const filteredRoutes = computed<CommandPaletteRoute[]>(() => {\n const query = filterQuery.value.toLowerCase().trim()\n\n return query ? fuseRoutes.value.search(query).map((a) => a.item) : toValue(routes)\n })\n\n /**\n * Opens the command palette, optionally with a specific command active.\n * If a commandId is provided, that command will be opened immediately.\n * Props are type-safe and checked against the command's expected props.\n */\n const open: OpenCommand = (commandId?: UiCommandIds, ...args: unknown[]): void => {\n if (commandId) {\n activeCommand.value = toValue(actions).find((a) => a.id === commandId) ?? null\n activeCommandProps.value = (args[0] as Record<string, unknown>) ?? null\n }\n modalState.show()\n }\n\n /** Closes the command palette and resets all state */\n const close = (): void => {\n modalState.hide()\n reset()\n }\n\n /** Updates the filter query for searching commands */\n const setFilterQuery = (query: string): void => {\n filterQuery.value = query\n }\n\n /** Resets all internal state to initial values */\n const reset = (): void => {\n filterQuery.value = ''\n activeCommand.value = null\n activeCommandProps.value = null\n }\n\n return {\n isOpen,\n activeCommand,\n activeCommandProps,\n filterQuery,\n filteredCommands: computed(() => [\n {\n label: '',\n commands: filteredActions.value,\n },\n {\n label: 'Pages',\n commands: filteredRoutes.value,\n },\n ]),\n open,\n close,\n setFilterQuery,\n reset,\n }\n}\n\n// ---------------------------------------------------------------------------\n// Base commands\n\n/**\n * The base naviation routes used in the command palette.\n * This object can be extended and passed to the useCommandPaletteState hook to add custom routes\n */\nexport const baseRoutes: CommandPaletteRoute[] = [\n {\n type: 'route',\n id: 'environment',\n name: 'Environment',\n icon: ScalarIconBracketsCurly,\n to: {\n name: 'workspace.environment',\n },\n },\n {\n type: 'route',\n id: 'cookies',\n name: 'Cookies',\n icon: ScalarIconCookie,\n to: {\n name: 'workspace.cookies',\n },\n },\n {\n type: 'route',\n id: 'settings',\n name: 'Settings',\n icon: ScalarIconSlidersHorizontal,\n to: {\n name: 'workspace.settings',\n },\n },\n]\n\n/**\n * The internal client command palette actions\n * This object can be extended and passed to the useCommandPaletteState hook to add custom actions\n */\nexport const baseClientActions = [\n {\n id: 'import-from-openapi-swagger-postman-curl',\n name: 'Import from OpenAPI/Swagger/cURL',\n component: CommandPaletteImport,\n icon: ScalarIconArrowSquareIn,\n },\n {\n id: 'import-postman-collection',\n name: 'Import Postman Collection',\n component: CommandPaletteImportPostman,\n icon: ScalarIconArrowSquareIn,\n hidden: true,\n },\n {\n id: 'create-openapi-document',\n name: 'Create OpenAPI Document',\n component: CommandPaletteOpenApiDocument,\n icon: ScalarIconPackage,\n },\n {\n id: 'add-tag',\n name: 'Add Tag',\n component: CommandPaletteTag,\n icon: ScalarIconFolder,\n },\n {\n id: 'create-request',\n name: 'Create Request',\n component: CommandPaletteRequest,\n icon: ScalarIconArrowUpRight,\n },\n {\n id: 'add-example',\n name: 'Add Example',\n component: CommandPaletteExample,\n icon: ScalarIconPuzzlePiece,\n },\n {\n id: 'import-curl-command',\n name: 'Import cURL Command',\n hidden: true,\n component: CommandPaletteImportCurl,\n },\n {\n id: 'edit-tag',\n name: 'Edit Tag',\n hidden: true,\n component: CommandPaletteTag,\n },\n {\n id: 'edit-example',\n name: 'Edit Example',\n hidden: true,\n component: CommandPaletteExample,\n },\n] as const satisfies BaseCommandPaletteAction[]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiJA,IAAa,0BACX,UAAoD,mBACpD,SAAkD,eAC1B;CACxB,MAAM,aAAa,UAAU;CAE7B,MAAM,cAAc,IAAI,GAAG;CAC3B,MAAM,gBAAgB,WAAwC,KAAK;CACnE,MAAM,qBAAqB,IAAoC,KAAK;;CAGpE,MAAM,SAAS,eAAwB,WAAW,KAAK;CAEvD,MAAM,cAAc,eAEhB,IAAI,KAAK,QAAQ,QAAQ,EAAE;EACzB,MAAM,CAAC,OAAO;EACd,WAAW;EACZ,CAAC,CACL;CAED,MAAM,aAAa,eAEf,IAAI,KAAK,QAAQ,OAAO,EAAE;EACxB,MAAM,CAAC,OAAO;EACd,WAAW;EACZ,CAAC,CACL;;;;;;;CAQD,MAAM,kBAAkB,eAAuC;EAC7D,MAAM,QAAQ,YAAY,MAAM,aAAa,CAAC,MAAM;AAMpD,UAHa,QAAQ,YAAY,MAAM,OAAO,MAAM,CAAC,KAAK,MAAM,EAAE,KAAK,GAAG,QAAQ,QAAQ,EAG9E,QAAQ,MAAM,CAAC,EAAE,OAAO;GACpC;CAEF,MAAM,iBAAiB,eAAsC;EAC3D,MAAM,QAAQ,YAAY,MAAM,aAAa,CAAC,MAAM;AAEpD,SAAO,QAAQ,WAAW,MAAM,OAAO,MAAM,CAAC,KAAK,MAAM,EAAE,KAAK,GAAG,QAAQ,OAAO;GAClF;;;;;;CAOF,MAAM,QAAqB,WAA0B,GAAG,SAA0B;AAChF,MAAI,WAAW;AACb,iBAAc,QAAQ,QAAQ,QAAQ,CAAC,MAAM,MAAM,EAAE,OAAO,UAAU,IAAI;AAC1E,sBAAmB,QAAS,KAAK,MAAkC;;AAErE,aAAW,MAAM;;;CAInB,MAAM,cAAoB;AACxB,aAAW,MAAM;AACjB,SAAO;;;CAIT,MAAM,kBAAkB,UAAwB;AAC9C,cAAY,QAAQ;;;CAItB,MAAM,cAAoB;AACxB,cAAY,QAAQ;AACpB,gBAAc,QAAQ;AACtB,qBAAmB,QAAQ;;AAG7B,QAAO;EACL;EACA;EACA;EACA;EACA,kBAAkB,eAAe,CAC/B;GACE,OAAO;GACP,UAAU,gBAAgB;GAC3B,EACD;GACE,OAAO;GACP,UAAU,eAAe;GAC1B,CACF,CAAC;EACF;EACA;EACA;EACA;EACD;;;;;;AAUH,IAAa,aAAoC;CAC/C;EACE,MAAM;EACN,IAAI;EACJ,MAAM;EACN,MAAM;EACN,IAAI,EACF,MAAM,yBACP;EACF;CACD;EACE,MAAM;EACN,IAAI;EACJ,MAAM;EACN,MAAM;EACN,IAAI,EACF,MAAM,qBACP;EACF;CACD;EACE,MAAM;EACN,IAAI;EACJ,MAAM;EACN,MAAM;EACN,IAAI,EACF,MAAM,sBACP;EACF;CACF;;;;;AAMD,IAAa,oBAAoB;CAC/B;EACE,IAAI;EACJ,MAAM;EACN,WAAW;EACX,MAAM;EACP;CACD;EACE,IAAI;EACJ,MAAM;EACN,WAAW;EACX,MAAM;EACN,QAAQ;EACT;CACD;EACE,IAAI;EACJ,MAAM;EACN,WAAW;EACX,MAAM;EACP;CACD;EACE,IAAI;EACJ,MAAM;EACN,WAAW;EACX,MAAM;EACP;CACD;EACE,IAAI;EACJ,MAAM;EACN,WAAW;EACX,MAAM;EACP;CACD;EACE,IAAI;EACJ,MAAM;EACN,WAAW;EACX,MAAM;EACP;CACD;EACE,IAAI;EACJ,MAAM;EACN,QAAQ;EACR,WAAW;EACZ;CACD;EACE,IAAI;EACJ,MAAM;EACN,QAAQ;EACR,WAAW;EACZ;CACD;EACE,IAAI;EACJ,MAAM;EACN,QAAQ;EACR,WAAW;EACZ;CACF"}
@@ -1,16 +0,0 @@
1
- import { type MaybeRefOrGetter } from 'vue';
2
- import 'monaco-editor/esm/vs/language/json/monaco.contribution';
3
- import 'monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution';
4
- import 'monaco-editor/esm/vs/editor/contrib/folding/browser/folding';
5
- import 'monaco-editor/esm/vs/editor/contrib/folding/browser/folding.css';
6
- import 'monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.css';
7
- /**
8
- * Configures the Monaco editor with custom Scala theme settings.
9
- * Applies the theme whenever the theme or dark mode value changes.
10
- * In development mode, ensures Monaco environment is configured (worker setup handled by Vite config).
11
- */
12
- export declare const useMonacoEditorConfiguration: ({ theme, darkMode, }: {
13
- theme: MaybeRefOrGetter<string>;
14
- darkMode: MaybeRefOrGetter<boolean>;
15
- }) => void;
16
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/editor/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAkB,MAAM,KAAK,CAAA;AAK3D,OAAO,wDAAwD,CAAA;AAC/D,OAAO,6DAA6D,CAAA;AACpE,OAAO,6DAA6D,CAAA;AACpE,OAAO,iEAAiE,CAAA;AACxE,OAAO,mEAAmE,CAAA;AAE1E;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,GAAI,sBAG1C;IACD,KAAK,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAC/B,QAAQ,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;CACpC,KAAG,IAUH,CAAA"}
@@ -1,19 +0,0 @@
1
- import { ensureMonacoEnvironment } from "./helpers/ensure-monaco-environment.js";
2
- import { applyScalarTheme } from "./helpers/theme/apply-scalar-theme.js";
3
- import { toValue, watch } from "vue";
4
- import "monaco-editor/esm/vs/editor/contrib/folding/browser/folding.css";
5
- import "monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.css";
6
- //#region src/v2/features/editor/config.ts
7
- /**
8
- * Configures the Monaco editor with custom Scala theme settings.
9
- * Applies the theme whenever the theme or dark mode value changes.
10
- * In development mode, ensures Monaco environment is configured (worker setup handled by Vite config).
11
- */
12
- var useMonacoEditorConfiguration = ({ theme, darkMode }) => {
13
- ensureMonacoEnvironment();
14
- watch([() => toValue(theme), () => toValue(darkMode)], ([theme, darkMode]) => applyScalarTheme(theme, darkMode), { immediate: true });
15
- };
16
- //#endregion
17
- export { useMonacoEditorConfiguration };
18
-
19
- //# sourceMappingURL=config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.js","names":[],"sources":["../../../../src/v2/features/editor/config.ts"],"sourcesContent":["import { type MaybeRefOrGetter, toValue, watch } from 'vue'\n\nimport { ensureMonacoEnvironment } from './helpers/ensure-monaco-environment'\nimport { applyScalarTheme } from './helpers/theme/apply-scalar-theme'\n\nimport 'monaco-editor/esm/vs/language/json/monaco.contribution'\nimport 'monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution'\nimport 'monaco-editor/esm/vs/editor/contrib/folding/browser/folding'\nimport 'monaco-editor/esm/vs/editor/contrib/folding/browser/folding.css'\nimport 'monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.css'\n\n/**\n * Configures the Monaco editor with custom Scala theme settings.\n * Applies the theme whenever the theme or dark mode value changes.\n * In development mode, ensures Monaco environment is configured (worker setup handled by Vite config).\n */\nexport const useMonacoEditorConfiguration = ({\n theme,\n darkMode,\n}: {\n theme: MaybeRefOrGetter<string>\n darkMode: MaybeRefOrGetter<boolean>\n}): void => {\n // Ensure Monaco environment only in production to prevent worker misconfiguration.\n if (!import.meta.env.DEV) {\n ensureMonacoEnvironment()\n }\n\n // Watch for changes to theme or darkMode and apply the Scalar theme immediately.\n watch([() => toValue(theme), () => toValue(darkMode)], ([theme, darkMode]) => applyScalarTheme(theme, darkMode), {\n immediate: true,\n })\n}\n"],"mappings":";;;;;;;;;;;AAgBA,IAAa,gCAAgC,EAC3C,OACA,eAIU;AAGR,0BAAyB;AAI3B,OAAM,OAAO,QAAQ,MAAM,QAAQ,QAAQ,SAAS,CAAC,GAAG,CAAC,OAAO,cAAc,iBAAiB,OAAO,SAAS,EAAE,EAC/G,WAAW,MACZ,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Configures JSON language support for the given model URI
3
- *
4
- * @param globPattern - The glob pattern to match the files to configure language support for
5
- */
6
- export declare const configureJson: (globPattern: string) => void;
7
- /**
8
- * Configures YAML language support for the given model URI
9
- *
10
- * @param globPattern - The glob pattern to match the files to configure language support for
11
- */
12
- export declare const configureYaml: (globPattern: string) => void;
13
- //# sourceMappingURL=configure-language-support.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configure-language-support.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/editor/helpers/configure-language-support.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,aAAa,MAAM,KAAG,IAoBnD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,aAAa,MAAM,KAAG,IAgBnD,CAAA"}
@@ -1,48 +0,0 @@
1
- import openapi_3_1_schema_default from "../schemas/openapi-3.1-schema.json.js";
2
- import * as monaco from "monaco-editor";
3
- import { configureMonacoYaml } from "monaco-yaml";
4
- //#region src/v2/features/editor/helpers/configure-language-support.ts
5
- var OPENAPI_JSON_SCHEMA_URI = "inmemory://model/scalar/openapi-json-schema";
6
- /**
7
- * Configures JSON language support for the given model URI
8
- *
9
- * @param globPattern - The glob pattern to match the files to configure language support for
10
- */
11
- var configureJson = (globPattern) => {
12
- const defaults = monaco.json.jsonDefaults;
13
- const current = defaults.diagnosticsOptions;
14
- const schemas = [...(current.schemas ?? []).filter((schema) => schema.uri !== OPENAPI_JSON_SCHEMA_URI), {
15
- uri: OPENAPI_JSON_SCHEMA_URI,
16
- fileMatch: [globPattern],
17
- schema: openapi_3_1_schema_default
18
- }];
19
- defaults.setDiagnosticsOptions({
20
- ...current,
21
- validate: true,
22
- enableSchemaRequest: false,
23
- schemas
24
- });
25
- };
26
- /**
27
- * Configures YAML language support for the given model URI
28
- *
29
- * @param globPattern - The glob pattern to match the files to configure language support for
30
- */
31
- var configureYaml = (globPattern) => {
32
- configureMonacoYaml(monaco, {
33
- enableSchemaRequest: false,
34
- validate: true,
35
- format: true,
36
- completion: true,
37
- hover: true,
38
- schemas: [{
39
- fileMatch: [globPattern],
40
- schema: openapi_3_1_schema_default,
41
- uri: OPENAPI_JSON_SCHEMA_URI
42
- }]
43
- });
44
- };
45
- //#endregion
46
- export { configureJson, configureYaml };
47
-
48
- //# sourceMappingURL=configure-language-support.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configure-language-support.js","names":[],"sources":["../../../../../src/v2/features/editor/helpers/configure-language-support.ts"],"sourcesContent":["import * as monaco from 'monaco-editor'\nimport { configureMonacoYaml } from 'monaco-yaml'\n\nimport openApiJsonSchema from './../schemas/openapi-3.1-schema.json'\n\nconst OPENAPI_JSON_SCHEMA_URI = 'inmemory://model/scalar/openapi-json-schema'\n\n/**\n * Configures JSON language support for the given model URI\n *\n * @param globPattern - The glob pattern to match the files to configure language support for\n */\nexport const configureJson = (globPattern: string): void => {\n const defaults = monaco.json.jsonDefaults\n const current = defaults.diagnosticsOptions\n\n const existingSchemas = current.schemas ?? []\n const schemas = [\n ...existingSchemas.filter((schema) => schema.uri !== OPENAPI_JSON_SCHEMA_URI),\n {\n uri: OPENAPI_JSON_SCHEMA_URI,\n fileMatch: [globPattern],\n schema: openApiJsonSchema,\n },\n ]\n\n defaults.setDiagnosticsOptions({\n ...current,\n validate: true,\n enableSchemaRequest: false,\n schemas,\n })\n}\n\n/**\n * Configures YAML language support for the given model URI\n *\n * @param globPattern - The glob pattern to match the files to configure language support for\n */\nexport const configureYaml = (globPattern: string): void => {\n configureMonacoYaml(monaco, {\n enableSchemaRequest: false,\n validate: true,\n format: true,\n completion: true,\n hover: true,\n schemas: [\n {\n // If YAML file is opened matching this glob\n fileMatch: [globPattern],\n schema: openApiJsonSchema,\n uri: OPENAPI_JSON_SCHEMA_URI,\n },\n ],\n })\n}\n"],"mappings":";;;;AAKA,IAAM,0BAA0B;;;;;;AAOhC,IAAa,iBAAiB,gBAA8B;CAC1D,MAAM,WAAW,OAAO,KAAK;CAC7B,MAAM,UAAU,SAAS;CAGzB,MAAM,UAAU,CACd,IAFsB,QAAQ,WAAW,EAAE,EAExB,QAAQ,WAAW,OAAO,QAAQ,wBAAwB,EAC7E;EACE,KAAK;EACL,WAAW,CAAC,YAAY;EACxB,QAAQ;EACT,CACF;AAED,UAAS,sBAAsB;EAC7B,GAAG;EACH,UAAU;EACV,qBAAqB;EACrB;EACD,CAAC;;;;;;;AAQJ,IAAa,iBAAiB,gBAA8B;AAC1D,qBAAoB,QAAQ;EAC1B,qBAAqB;EACrB,UAAU;EACV,QAAQ;EACR,YAAY;EACZ,OAAO;EACP,SAAS,CACP;GAEE,WAAW,CAAC,YAAY;GACxB,QAAQ;GACR,KAAK;GACN,CACF;EACF,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * This function ensures that the Monaco Editor's global environment is configured
3
- * to provide the correct web worker for each language (json, yaml, or the default editor).
4
- */
5
- export declare const ensureMonacoEnvironment: () => void;
6
- //# sourceMappingURL=ensure-monaco-environment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ensure-monaco-environment.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/editor/helpers/ensure-monaco-environment.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAO,IAc1C,CAAA"}
@@ -1,21 +0,0 @@
1
- import EditorWorker from "monaco-editor/esm/vs/editor/editor.worker.js?worker";
2
- import JsonWorker from "monaco-editor/esm/vs/language/json/json.worker.js?worker";
3
- import YamlWorker from "monaco-yaml/yaml.worker.js?worker";
4
- //#region src/v2/features/editor/helpers/ensure-monaco-environment.ts
5
- /**
6
- * This function ensures that the Monaco Editor's global environment is configured
7
- * to provide the correct web worker for each language (json, yaml, or the default editor).
8
- */
9
- var ensureMonacoEnvironment = () => {
10
- globalThis.MonacoEnvironment ??= { getWorker(_workerId, label) {
11
- switch (label) {
12
- case "json": return new JsonWorker();
13
- case "yaml": return new YamlWorker();
14
- default: return new EditorWorker();
15
- }
16
- } };
17
- };
18
- //#endregion
19
- export { ensureMonacoEnvironment };
20
-
21
- //# sourceMappingURL=ensure-monaco-environment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ensure-monaco-environment.js","names":[],"sources":["../../../../../src/v2/features/editor/helpers/ensure-monaco-environment.ts"],"sourcesContent":["import EditorWorker from 'monaco-editor/esm/vs/editor/editor.worker.js?worker'\nimport JsonWorker from 'monaco-editor/esm/vs/language/json/json.worker.js?worker'\nimport YamlWorker from 'monaco-yaml/yaml.worker.js?worker'\n\n/**\n * This function ensures that the Monaco Editor's global environment is configured\n * to provide the correct web worker for each language (json, yaml, or the default editor).\n */\nexport const ensureMonacoEnvironment = (): void => {\n // Set the MonacoEnvironment on the global scope if it hasn't already been set\n globalThis.MonacoEnvironment ??= {\n getWorker(_workerId: string, label: string): Worker {\n switch (label) {\n case 'json':\n return new JsonWorker()\n case 'yaml':\n return new YamlWorker()\n default:\n return new EditorWorker()\n }\n },\n }\n}\n"],"mappings":";;;;;;;;AAQA,IAAa,gCAAsC;AAEjD,YAAW,sBAAsB,EAC/B,UAAU,WAAmB,OAAuB;AAClD,UAAQ,OAAR;GACE,KAAK,OACH,QAAO,IAAI,YAAY;GACzB,KAAK,OACH,QAAO,IAAI,YAAY;GACzB,QACE,QAAO,IAAI,cAAc;;IAGhC"}
@@ -1,12 +0,0 @@
1
- import type { EditorModel } from '../../../../../v2/features/editor/helpers/model';
2
- /**
3
- * Creates a JSON Monaco editor model with enhanced language support.
4
- *
5
- * @param value - The initial JSON content for the model.
6
- * @returns An object containing the Monaco model and a function to get a range from a JSON path.
7
- *
8
- * The returned `getRangeFromPath` function asynchronously finds the AST node for a JSON path,
9
- * converts its offset and length to a Monaco Range, or returns null if not found.
10
- */
11
- export declare const createJsonModel: (value?: string) => EditorModel;
12
- //# sourceMappingURL=create-json-model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-json-model.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/features/editor/helpers/json/create-json-model.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAQ,MAAM,oCAAoC,CAAA;AAI3E;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,KAAG,WAqBhD,CAAA"}
@@ -1,31 +0,0 @@
1
- import { getJsonAstNodeFromPath } from "./get-json-ast-node-from-path.js";
2
- import { configureJson } from "../configure-language-support.js";
3
- import * as monaco from "monaco-editor";
4
- //#region src/v2/features/editor/helpers/json/create-json-model.ts
5
- /**
6
- * Creates a JSON Monaco editor model with enhanced language support.
7
- *
8
- * @param value - The initial JSON content for the model.
9
- * @returns An object containing the Monaco model and a function to get a range from a JSON path.
10
- *
11
- * The returned `getRangeFromPath` function asynchronously finds the AST node for a JSON path,
12
- * converts its offset and length to a Monaco Range, or returns null if not found.
13
- */
14
- var createJsonModel = (value) => {
15
- const model = monaco.editor.createModel(value ?? "", "json");
16
- configureJson(model.uri.toString());
17
- return {
18
- model,
19
- getRangeFromPath: async (path) => {
20
- const node = await getJsonAstNodeFromPath(model, path);
21
- if (!node) return null;
22
- const start = model.getPositionAt(node.offset);
23
- const end = model.getPositionAt(node.offset + node.length);
24
- return new monaco.Range(start.lineNumber, start.column, end.lineNumber, end.column);
25
- }
26
- };
27
- };
28
- //#endregion
29
- export { createJsonModel };
30
-
31
- //# sourceMappingURL=create-json-model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-json-model.js","names":[],"sources":["../../../../../../src/v2/features/editor/helpers/json/create-json-model.ts"],"sourcesContent":["import * as monaco from 'monaco-editor'\n\nimport { getJsonAstNodeFromPath } from '@/v2/features/editor/helpers/json/get-json-ast-node-from-path'\nimport type { EditorModel, Path } from '@/v2/features/editor/helpers/model'\n\nimport { configureJson } from '../configure-language-support'\n\n/**\n * Creates a JSON Monaco editor model with enhanced language support.\n *\n * @param value - The initial JSON content for the model.\n * @returns An object containing the Monaco model and a function to get a range from a JSON path.\n *\n * The returned `getRangeFromPath` function asynchronously finds the AST node for a JSON path,\n * converts its offset and length to a Monaco Range, or returns null if not found.\n */\nexport const createJsonModel = (value?: string): EditorModel => {\n const model = monaco.editor.createModel(value ?? '', 'json')\n\n // Configure language support\n configureJson(model.uri.toString())\n\n return {\n model,\n getRangeFromPath: async (path: Path) => {\n const node = await getJsonAstNodeFromPath(model, path)\n if (!node) {\n return null\n }\n\n // Convert the AST node to a range\n const start = model.getPositionAt(node.offset)\n const end = model.getPositionAt(node.offset + node.length)\n\n return new monaco.Range(start.lineNumber, start.column, end.lineNumber, end.column)\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAgBA,IAAa,mBAAmB,UAAgC;CAC9D,MAAM,QAAQ,OAAO,OAAO,YAAY,SAAS,IAAI,OAAO;AAG5D,eAAc,MAAM,IAAI,UAAU,CAAC;AAEnC,QAAO;EACL;EACA,kBAAkB,OAAO,SAAe;GACtC,MAAM,OAAO,MAAM,uBAAuB,OAAO,KAAK;AACtD,OAAI,CAAC,KACH,QAAO;GAIT,MAAM,QAAQ,MAAM,cAAc,KAAK,OAAO;GAC9C,MAAM,MAAM,MAAM,cAAc,KAAK,SAAS,KAAK,OAAO;AAE1D,UAAO,IAAI,OAAO,MAAM,MAAM,YAAY,MAAM,QAAQ,IAAI,YAAY,IAAI,OAAO;;EAEtF"}
@@ -1,14 +0,0 @@
1
- import * as monaco from 'monaco-editor';
2
- import type { JsonPath } from './json-ast.js';
3
- /**
4
- * Retrieves a JSON AST node from a Monaco editor model at the specified JSON path.
5
- *
6
- * Utilizes Monaco's JSON worker to parse the document and returns the AST node
7
- * located at the given path, or null if not found.
8
- *
9
- * @param model - The Monaco editor text model representing the JSON document.
10
- * @param path - The JSON path to locate the AST node.
11
- * @returns A promise resolving to the AST node at the path, or null if not found.
12
- */
13
- export declare const getJsonAstNodeFromPath: (model: monaco.editor.ITextModel, path: JsonPath) => Promise<monaco.json.ASTNode | null>;
14
- //# sourceMappingURL=get-json-ast-node-from-path.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-json-ast-node-from-path.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/features/editor/helpers/json/get-json-ast-node-from-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAG1C;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,EAC/B,MAAM,QAAQ,KACb,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAWpC,CAAA"}
@@ -1,22 +0,0 @@
1
- import { getJsonAstNodeAtPath } from "./json-ast.js";
2
- import * as monaco from "monaco-editor";
3
- //#region src/v2/features/editor/helpers/json/get-json-ast-node-from-path.ts
4
- /**
5
- * Retrieves a JSON AST node from a Monaco editor model at the specified JSON path.
6
- *
7
- * Utilizes Monaco's JSON worker to parse the document and returns the AST node
8
- * located at the given path, or null if not found.
9
- *
10
- * @param model - The Monaco editor text model representing the JSON document.
11
- * @param path - The JSON path to locate the AST node.
12
- * @returns A promise resolving to the AST node at the path, or null if not found.
13
- */
14
- var getJsonAstNodeFromPath = async (model, path) => {
15
- const jsonDocument = await (await (await monaco.json.getWorker())(model.uri)).parseJSONDocument(model.uri.toString());
16
- if (!jsonDocument?.root) return null;
17
- return getJsonAstNodeAtPath(jsonDocument.root, path) ?? null;
18
- };
19
- //#endregion
20
- export { getJsonAstNodeFromPath };
21
-
22
- //# sourceMappingURL=get-json-ast-node-from-path.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-json-ast-node-from-path.js","names":[],"sources":["../../../../../../src/v2/features/editor/helpers/json/get-json-ast-node-from-path.ts"],"sourcesContent":["import * as monaco from 'monaco-editor'\n\nimport type { JsonPath } from './json-ast'\nimport { getJsonAstNodeAtPath } from './json-ast'\n\n/**\n * Retrieves a JSON AST node from a Monaco editor model at the specified JSON path.\n *\n * Utilizes Monaco's JSON worker to parse the document and returns the AST node\n * located at the given path, or null if not found.\n *\n * @param model - The Monaco editor text model representing the JSON document.\n * @param path - The JSON path to locate the AST node.\n * @returns A promise resolving to the AST node at the path, or null if not found.\n */\nexport const getJsonAstNodeFromPath = async (\n model: monaco.editor.ITextModel,\n path: JsonPath,\n): Promise<monaco.json.ASTNode | null> => {\n const worker = await monaco.json.getWorker()\n const jsonWorker = await worker(model.uri)\n\n // Monaco's JSON worker keeps an internal (incremental) AST; no JSON.parse needed.\n const jsonDocument = await jsonWorker.parseJSONDocument(model.uri.toString())\n if (!jsonDocument?.root) {\n return null\n }\n\n return getJsonAstNodeAtPath(jsonDocument.root, path) ?? null\n}\n"],"mappings":";;;;;;;;;;;;;AAeA,IAAa,yBAAyB,OACpC,OACA,SACwC;CAKxC,MAAM,eAAe,OAHF,OADJ,MAAM,OAAO,KAAK,WAAW,EACZ,MAAM,IAAI,EAGJ,kBAAkB,MAAM,IAAI,UAAU,CAAC;AAC7E,KAAI,CAAC,cAAc,KACjB,QAAO;AAGT,QAAO,qBAAqB,aAAa,MAAM,KAAK,IAAI"}
@@ -1,12 +0,0 @@
1
- import type * as monaco from 'monaco-editor';
2
- export type JsonPath = readonly (string | number)[];
3
- /**
4
- * Traverses the AST of a JSON document to find the node at the provided JsonPath.
5
- * Returns undefined if the path does not exist in the AST.
6
- *
7
- * @param node - The root AST node to begin traversal from.
8
- * @param path - The path to traverse within the AST, as an array of keys/indices.
9
- * @returns The AST node at the specified path, or undefined if not found.
10
- */
11
- export declare const getJsonAstNodeAtPath: (node: monaco.json.ASTNode | undefined, path: JsonPath) => monaco.json.ASTNode | undefined;
12
- //# sourceMappingURL=json-ast.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json-ast.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/features/editor/helpers/json/json-ast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAE5C,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;AAEnD;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAC/B,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG,SAAS,EACrC,MAAM,QAAQ,KACb,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG,SAkCxB,CAAA"}
@@ -1,32 +0,0 @@
1
- //#region src/v2/features/editor/helpers/json/json-ast.ts
2
- /**
3
- * Traverses the AST of a JSON document to find the node at the provided JsonPath.
4
- * Returns undefined if the path does not exist in the AST.
5
- *
6
- * @param node - The root AST node to begin traversal from.
7
- * @param path - The path to traverse within the AST, as an array of keys/indices.
8
- * @returns The AST node at the specified path, or undefined if not found.
9
- */
10
- var getJsonAstNodeAtPath = (node, path) => {
11
- let current = node;
12
- for (const segment of path) {
13
- if (!current) return;
14
- if (current.type === "object") {
15
- const key = String(segment);
16
- current = current.properties.find((property) => property.keyNode.value === key)?.valueNode;
17
- continue;
18
- }
19
- if (current.type === "array") {
20
- const index = typeof segment === "number" ? segment : Number.parseInt(String(segment), 10);
21
- if (!Number.isFinite(index) || index < 0 || index >= current.items.length) return;
22
- current = current.items[index];
23
- continue;
24
- }
25
- return;
26
- }
27
- return current;
28
- };
29
- //#endregion
30
- export { getJsonAstNodeAtPath };
31
-
32
- //# sourceMappingURL=json-ast.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json-ast.js","names":[],"sources":["../../../../../../src/v2/features/editor/helpers/json/json-ast.ts"],"sourcesContent":["import type * as monaco from 'monaco-editor'\n\nexport type JsonPath = readonly (string | number)[]\n\n/**\n * Traverses the AST of a JSON document to find the node at the provided JsonPath.\n * Returns undefined if the path does not exist in the AST.\n *\n * @param node - The root AST node to begin traversal from.\n * @param path - The path to traverse within the AST, as an array of keys/indices.\n * @returns The AST node at the specified path, or undefined if not found.\n */\nexport const getJsonAstNodeAtPath = (\n node: monaco.json.ASTNode | undefined,\n path: JsonPath,\n): monaco.json.ASTNode | undefined => {\n let current = node\n\n for (const segment of path) {\n if (!current) {\n // Path does not exist in the AST.\n return undefined\n }\n\n if (current.type === 'object') {\n // Traverse object properties using the segment as a key.\n const key = String(segment)\n const prop = current.properties.find((property) => property.keyNode.value === key)\n current = prop?.valueNode\n continue\n }\n\n if (current.type === 'array') {\n // Traverse array items using the segment as an index.\n const index = typeof segment === 'number' ? segment : Number.parseInt(String(segment), 10)\n if (!Number.isFinite(index) || index < 0 || index >= current.items.length) {\n // Invalid index or out-of-bounds.\n return undefined\n }\n current = current.items[index]\n continue\n }\n\n // If current node can't have children referenced by the path, return undefined.\n return undefined\n }\n\n // Return the found node or undefined if not found.\n return current\n}\n"],"mappings":";;;;;;;;;AAYA,IAAa,wBACX,MACA,SACoC;CACpC,IAAI,UAAU;AAEd,MAAK,MAAM,WAAW,MAAM;AAC1B,MAAI,CAAC,QAEH;AAGF,MAAI,QAAQ,SAAS,UAAU;GAE7B,MAAM,MAAM,OAAO,QAAQ;AAE3B,aADa,QAAQ,WAAW,MAAM,aAAa,SAAS,QAAQ,UAAU,IAAI,EAClE;AAChB;;AAGF,MAAI,QAAQ,SAAS,SAAS;GAE5B,MAAM,QAAQ,OAAO,YAAY,WAAW,UAAU,OAAO,SAAS,OAAO,QAAQ,EAAE,GAAG;AAC1F,OAAI,CAAC,OAAO,SAAS,MAAM,IAAI,QAAQ,KAAK,SAAS,QAAQ,MAAM,OAEjE;AAEF,aAAU,QAAQ,MAAM;AACxB;;AAIF;;AAIF,QAAO"}
@@ -1,15 +0,0 @@
1
- import * as monaco from 'monaco-editor';
2
- /**
3
- * Enables clickable JSON Pointer links in Monaco JSON editor.
4
- *
5
- * - Scans for "#/" inside JSON string values, but only within properly quoted, unescaped strings.
6
- * - When a valid JSON Pointer is found, highlights it (excluding quotes) as a clickable link.
7
- * - Clicking the link invokes the provided `navigate` function with the decoded pointer.
8
- *
9
- * @param navigate Callback to execute on pointer link click.
10
- */
11
- export declare const ensureJsonPointerLinkSupport: (navigate: (pointer: string) => Promise<void> | void) => {
12
- linkOpener: monaco.IDisposable;
13
- dispose: () => void;
14
- };
15
- //# sourceMappingURL=json-pointer-links.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json-pointer-links.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/features/editor/helpers/json/json-pointer-links.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAmEvC;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,GAAI,UAAU,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;;;CA2E/F,CAAA"}
@@ -1,104 +0,0 @@
1
- import { parseJsonPointerPath } from "./json-pointer-path.js";
2
- import * as monaco from "monaco-editor";
3
- //#region src/v2/features/editor/helpers/json/json-pointer-links.ts
4
- var JSON_POINTER_LINK_SCHEME = "scalar-json-pointer";
5
- /**
6
- * Checks if the quote at the given index in the text is an unescaped double quote.
7
- * An unescaped quote is one not preceded by an odd number of backslashes.
8
- *
9
- * @param text - The text string to check within.
10
- * @param index - The index of the character in text to check.
11
- * @returns True if the quote is unescaped, false otherwise.
12
- */
13
- var isUnescapedQuote = (text, index) => {
14
- if (text[index] !== "\"") return false;
15
- let backslashes = 0;
16
- for (let i = index - 1; i >= 0 && text[i] === "\\"; i--) backslashes++;
17
- return backslashes % 2 === 0;
18
- };
19
- /**
20
- * Finds the bounds (indices) of the nearest quoted string around a given index on the same line.
21
- * Only considers unescaped double quotes (").
22
- * Returns the left (opening) and right (closing) quote indices if both are found, or null otherwise.
23
- *
24
- * @param line - The string line in which to search.
25
- * @param index - The index around which to search for the quoted string.
26
- * @returns An object with `left` and `right` indices, or null if not found.
27
- */
28
- var findQuotedStringBounds = (line, index) => {
29
- let left = -1;
30
- for (let i = index; i >= 0; i--) if (isUnescapedQuote(line, i)) {
31
- left = i;
32
- break;
33
- }
34
- if (left === -1) return null;
35
- let right = -1;
36
- for (let i = Math.max(left + 1, index); i < line.length; i++) if (isUnescapedQuote(line, i)) {
37
- right = i;
38
- break;
39
- }
40
- if (right === -1 || right <= left) return null;
41
- return {
42
- left,
43
- right
44
- };
45
- };
46
- /**
47
- * Enables clickable JSON Pointer links in Monaco JSON editor.
48
- *
49
- * - Scans for "#/" inside JSON string values, but only within properly quoted, unescaped strings.
50
- * - When a valid JSON Pointer is found, highlights it (excluding quotes) as a clickable link.
51
- * - Clicking the link invokes the provided `navigate` function with the decoded pointer.
52
- *
53
- * @param navigate Callback to execute on pointer link click.
54
- */
55
- var ensureJsonPointerLinkSupport = (navigate) => {
56
- monaco.languages.registerLinkProvider("json", { provideLinks(textModel) {
57
- const links = [];
58
- const lineCount = textModel.getLineCount();
59
- for (let lineNumber = 1; lineNumber <= lineCount; lineNumber++) {
60
- const line = textModel.getLineContent(lineNumber);
61
- let fromIndex = 0;
62
- while (true) {
63
- const idx = line.indexOf("#/", fromIndex);
64
- if (idx === -1) break;
65
- const bounds = findQuotedStringBounds(line, idx);
66
- if (!bounds) {
67
- fromIndex = idx + 2;
68
- continue;
69
- }
70
- const value = line.slice(bounds.left + 1, bounds.right);
71
- if (!parseJsonPointerPath(value)) {
72
- fromIndex = bounds.right + 1;
73
- continue;
74
- }
75
- const range = new monaco.Range(lineNumber, bounds.left + 2, lineNumber, bounds.right + 1);
76
- links.push({
77
- range,
78
- url: monaco.Uri.parse(`${JSON_POINTER_LINK_SCHEME}:${encodeURIComponent(value)}`),
79
- tooltip: "Follow link"
80
- });
81
- fromIndex = bounds.right + 1;
82
- }
83
- }
84
- return { links };
85
- } });
86
- const linkOpener = monaco.editor.registerLinkOpener({ open(resource) {
87
- if (resource.scheme !== JSON_POINTER_LINK_SCHEME) return false;
88
- const encoded = (resource.path || "").replace(/^\//, "");
89
- const pointer = decodeURIComponent(encoded);
90
- if (!pointer) return false;
91
- return Promise.resolve(navigate(pointer)).then(() => true);
92
- } });
93
- const dispose = () => {
94
- linkOpener.dispose();
95
- };
96
- return {
97
- linkOpener,
98
- dispose
99
- };
100
- };
101
- //#endregion
102
- export { ensureJsonPointerLinkSupport };
103
-
104
- //# sourceMappingURL=json-pointer-links.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json-pointer-links.js","names":[],"sources":["../../../../../../src/v2/features/editor/helpers/json/json-pointer-links.ts"],"sourcesContent":["import * as monaco from 'monaco-editor'\n\nimport { parseJsonPointerPath } from './json-pointer-path'\n\nconst JSON_POINTER_LINK_SCHEME = 'scalar-json-pointer'\n\n/**\n * Checks if the quote at the given index in the text is an unescaped double quote.\n * An unescaped quote is one not preceded by an odd number of backslashes.\n *\n * @param text - The text string to check within.\n * @param index - The index of the character in text to check.\n * @returns True if the quote is unescaped, false otherwise.\n */\nconst isUnescapedQuote = (text: string, index: number): boolean => {\n if (text[index] !== '\"') {\n return false\n }\n\n let backslashes = 0\n // Count consecutive backslashes immediately before the quote\n for (let i = index - 1; i >= 0 && text[i] === '\\\\'; i--) {\n backslashes++\n }\n // If even number of backslashes, quote is unescaped\n return backslashes % 2 === 0\n}\n\n/**\n * Finds the bounds (indices) of the nearest quoted string around a given index on the same line.\n * Only considers unescaped double quotes (\").\n * Returns the left (opening) and right (closing) quote indices if both are found, or null otherwise.\n *\n * @param line - The string line in which to search.\n * @param index - The index around which to search for the quoted string.\n * @returns An object with `left` and `right` indices, or null if not found.\n */\nconst findQuotedStringBounds = (line: string, index: number): { left: number; right: number } | null => {\n // Find the nearest unescaped quote to the left (including the current index)\n let left = -1\n for (let i = index; i >= 0; i--) {\n if (isUnescapedQuote(line, i)) {\n left = i\n break\n }\n }\n if (left === -1) {\n // No opening quote found\n return null\n }\n\n // Find the nearest unescaped quote to the right after the opening quote\n let right = -1\n for (let i = Math.max(left + 1, index); i < line.length; i++) {\n if (isUnescapedQuote(line, i)) {\n right = i\n break\n }\n }\n // If there is no closing quote or it appears before the opening, return null\n if (right === -1 || right <= left) {\n return null\n }\n\n return { left, right }\n}\n\n/**\n * Enables clickable JSON Pointer links in Monaco JSON editor.\n *\n * - Scans for \"#/\" inside JSON string values, but only within properly quoted, unescaped strings.\n * - When a valid JSON Pointer is found, highlights it (excluding quotes) as a clickable link.\n * - Clicking the link invokes the provided `navigate` function with the decoded pointer.\n *\n * @param navigate Callback to execute on pointer link click.\n */\nexport const ensureJsonPointerLinkSupport = (navigate: (pointer: string) => Promise<void> | void) => {\n monaco.languages.registerLinkProvider('json', {\n provideLinks(textModel) {\n const links: monaco.languages.ILink[] = []\n\n const lineCount = textModel.getLineCount()\n for (let lineNumber = 1; lineNumber <= lineCount; lineNumber++) {\n const line = textModel.getLineContent(lineNumber)\n let fromIndex = 0\n\n while (true) {\n // Look for JSON Pointer prefix in the line starting from fromIndex\n const idx = line.indexOf('#/', fromIndex)\n if (idx === -1) {\n break\n }\n\n // Try to find quoted string bounds around found #/\n const bounds = findQuotedStringBounds(line, idx)\n if (!bounds) {\n fromIndex = idx + 2\n continue\n }\n\n // Extract the value inside quotes\n const value = line.slice(bounds.left + 1, bounds.right)\n // Only create a link if this is a valid JSON Pointer\n if (!parseJsonPointerPath(value)) {\n fromIndex = bounds.right + 1\n continue\n }\n\n // Exclude string quotes when creating the link's range\n const range = new monaco.Range(lineNumber, bounds.left + 2, lineNumber, bounds.right + 1)\n\n // Add the link to the collection\n links.push({\n range,\n url: monaco.Uri.parse(`${JSON_POINTER_LINK_SCHEME}:${encodeURIComponent(value)}`),\n tooltip: 'Follow link',\n })\n\n // Advance search past the string we just handled\n fromIndex = bounds.right + 1\n }\n }\n\n return { links }\n },\n })\n\n const linkOpener = monaco.editor.registerLinkOpener({\n open(resource) {\n // Only handle our special JSON pointer link scheme\n if (resource.scheme !== JSON_POINTER_LINK_SCHEME) {\n return false\n }\n\n // Remove leading slash from resource path, if any\n const encoded = (resource.path || '').replace(/^\\//, '')\n const pointer = decodeURIComponent(encoded)\n if (!pointer) {\n return false\n }\n\n // Invoke the navigate callback, resolve to true on successful navigation\n return Promise.resolve(navigate(pointer)).then(() => true)\n },\n })\n\n const dispose = () => {\n linkOpener.dispose()\n }\n\n return { linkOpener, dispose }\n}\n"],"mappings":";;;AAIA,IAAM,2BAA2B;;;;;;;;;AAUjC,IAAM,oBAAoB,MAAc,UAA2B;AACjE,KAAI,KAAK,WAAW,KAClB,QAAO;CAGT,IAAI,cAAc;AAElB,MAAK,IAAI,IAAI,QAAQ,GAAG,KAAK,KAAK,KAAK,OAAO,MAAM,IAClD;AAGF,QAAO,cAAc,MAAM;;;;;;;;;;;AAY7B,IAAM,0BAA0B,MAAc,UAA0D;CAEtG,IAAI,OAAO;AACX,MAAK,IAAI,IAAI,OAAO,KAAK,GAAG,IAC1B,KAAI,iBAAiB,MAAM,EAAE,EAAE;AAC7B,SAAO;AACP;;AAGJ,KAAI,SAAS,GAEX,QAAO;CAIT,IAAI,QAAQ;AACZ,MAAK,IAAI,IAAI,KAAK,IAAI,OAAO,GAAG,MAAM,EAAE,IAAI,KAAK,QAAQ,IACvD,KAAI,iBAAiB,MAAM,EAAE,EAAE;AAC7B,UAAQ;AACR;;AAIJ,KAAI,UAAU,MAAM,SAAS,KAC3B,QAAO;AAGT,QAAO;EAAE;EAAM;EAAO;;;;;;;;;;;AAYxB,IAAa,gCAAgC,aAAwD;AACnG,QAAO,UAAU,qBAAqB,QAAQ,EAC5C,aAAa,WAAW;EACtB,MAAM,QAAkC,EAAE;EAE1C,MAAM,YAAY,UAAU,cAAc;AAC1C,OAAK,IAAI,aAAa,GAAG,cAAc,WAAW,cAAc;GAC9D,MAAM,OAAO,UAAU,eAAe,WAAW;GACjD,IAAI,YAAY;AAEhB,UAAO,MAAM;IAEX,MAAM,MAAM,KAAK,QAAQ,MAAM,UAAU;AACzC,QAAI,QAAQ,GACV;IAIF,MAAM,SAAS,uBAAuB,MAAM,IAAI;AAChD,QAAI,CAAC,QAAQ;AACX,iBAAY,MAAM;AAClB;;IAIF,MAAM,QAAQ,KAAK,MAAM,OAAO,OAAO,GAAG,OAAO,MAAM;AAEvD,QAAI,CAAC,qBAAqB,MAAM,EAAE;AAChC,iBAAY,OAAO,QAAQ;AAC3B;;IAIF,MAAM,QAAQ,IAAI,OAAO,MAAM,YAAY,OAAO,OAAO,GAAG,YAAY,OAAO,QAAQ,EAAE;AAGzF,UAAM,KAAK;KACT;KACA,KAAK,OAAO,IAAI,MAAM,GAAG,yBAAyB,GAAG,mBAAmB,MAAM,GAAG;KACjF,SAAS;KACV,CAAC;AAGF,gBAAY,OAAO,QAAQ;;;AAI/B,SAAO,EAAE,OAAO;IAEnB,CAAC;CAEF,MAAM,aAAa,OAAO,OAAO,mBAAmB,EAClD,KAAK,UAAU;AAEb,MAAI,SAAS,WAAW,yBACtB,QAAO;EAIT,MAAM,WAAW,SAAS,QAAQ,IAAI,QAAQ,OAAO,GAAG;EACxD,MAAM,UAAU,mBAAmB,QAAQ;AAC3C,MAAI,CAAC,QACH,QAAO;AAIT,SAAO,QAAQ,QAAQ,SAAS,QAAQ,CAAC,CAAC,WAAW,KAAK;IAE7D,CAAC;CAEF,MAAM,gBAAgB;AACpB,aAAW,SAAS;;AAGtB,QAAO;EAAE;EAAY;EAAS"}
@@ -1,7 +0,0 @@
1
- import type { JsonPath } from './json-ast.js';
2
- /**
3
- * Parses a JSON Pointer (RFC 6901) and returns a "JSON path" compatible with this editor.
4
- * Supports raw pointers ("/paths/...") and URI fragments ("#/paths/...").
5
- */
6
- export declare const parseJsonPointerPath: (pointer: string) => JsonPath | null;
7
- //# sourceMappingURL=json-pointer-path.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json-pointer-path.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/features/editor/helpers/json/json-pointer-path.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AA0B1C;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,KAAG,QAAQ,GAAG,IAOjE,CAAA"}
@@ -1,27 +0,0 @@
1
- import { parseJsonPointerSegments } from "@scalar/helpers/json/parse-json-pointer-segments";
2
- //#region src/v2/features/editor/helpers/json/json-pointer-path.ts
3
- var extractPointer = (input) => {
4
- const trimmed = input.trim();
5
- if (trimmed.startsWith("/")) return trimmed;
6
- if (trimmed.startsWith("#")) {
7
- const fragment = trimmed.slice(1);
8
- return fragment.startsWith("/") ? fragment : null;
9
- }
10
- const hashIndex = trimmed.indexOf("#");
11
- if (hashIndex === -1) return null;
12
- const fragment = trimmed.slice(hashIndex + 1);
13
- return fragment.startsWith("/") ? fragment : null;
14
- };
15
- /**
16
- * Parses a JSON Pointer (RFC 6901) and returns a "JSON path" compatible with this editor.
17
- * Supports raw pointers ("/paths/...") and URI fragments ("#/paths/...").
18
- */
19
- var parseJsonPointerPath = (pointer) => {
20
- const extracted = extractPointer(pointer);
21
- if (!extracted) return null;
22
- return parseJsonPointerSegments(extracted);
23
- };
24
- //#endregion
25
- export { parseJsonPointerPath };
26
-
27
- //# sourceMappingURL=json-pointer-path.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json-pointer-path.js","names":[],"sources":["../../../../../../src/v2/features/editor/helpers/json/json-pointer-path.ts"],"sourcesContent":["import { parseJsonPointerSegments } from '@scalar/helpers/json/parse-json-pointer-segments'\n\nimport type { JsonPath } from './json-ast'\n\nconst extractPointer = (input: string): string | null => {\n const trimmed = input.trim()\n\n // Pure RFC6901 pointers\n if (trimmed.startsWith('/')) {\n return trimmed\n }\n\n // URI fragments like \"#/paths/...\"\n if (trimmed.startsWith('#')) {\n const fragment = trimmed.slice(1)\n return fragment.startsWith('/') ? fragment : null\n }\n\n // URIs with fragments like \"file.json#/paths/...\"\n const hashIndex = trimmed.indexOf('#')\n if (hashIndex === -1) {\n return null\n }\n\n const fragment = trimmed.slice(hashIndex + 1)\n return fragment.startsWith('/') ? fragment : null\n}\n\n/**\n * Parses a JSON Pointer (RFC 6901) and returns a \"JSON path\" compatible with this editor.\n * Supports raw pointers (\"/paths/...\") and URI fragments (\"#/paths/...\").\n */\nexport const parseJsonPointerPath = (pointer: string): JsonPath | null => {\n const extracted = extractPointer(pointer)\n if (!extracted) {\n return null\n }\n\n return parseJsonPointerSegments(extracted)\n}\n"],"mappings":";;AAIA,IAAM,kBAAkB,UAAiC;CACvD,MAAM,UAAU,MAAM,MAAM;AAG5B,KAAI,QAAQ,WAAW,IAAI,CACzB,QAAO;AAIT,KAAI,QAAQ,WAAW,IAAI,EAAE;EAC3B,MAAM,WAAW,QAAQ,MAAM,EAAE;AACjC,SAAO,SAAS,WAAW,IAAI,GAAG,WAAW;;CAI/C,MAAM,YAAY,QAAQ,QAAQ,IAAI;AACtC,KAAI,cAAc,GAChB,QAAO;CAGT,MAAM,WAAW,QAAQ,MAAM,YAAY,EAAE;AAC7C,QAAO,SAAS,WAAW,IAAI,GAAG,WAAW;;;;;;AAO/C,IAAa,wBAAwB,YAAqC;CACxE,MAAM,YAAY,eAAe,QAAQ;AACzC,KAAI,CAAC,UACH,QAAO;AAGT,QAAO,yBAAyB,UAAU"}
@@ -1,9 +0,0 @@
1
- import type * as monaco from 'monaco-editor';
2
- type MaybePromise<T> = T | Promise<T>;
3
- export type Path = readonly (string | number)[];
4
- export type EditorModel = {
5
- model: monaco.editor.ITextModel;
6
- getRangeFromPath: (path: Path) => MaybePromise<monaco.Range | null>;
7
- };
8
- export {};
9
- //# sourceMappingURL=model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/editor/helpers/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAE5C,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;AAErC,MAAM,MAAM,IAAI,GAAG,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;AAE/C,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAA;IAC/B,gBAAgB,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,YAAY,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,CAAA;CACpE,CAAA"}
@@ -1,14 +0,0 @@
1
- import * as monaco from 'monaco-editor';
2
- /**
3
- * Expands a given range to cover whole lines within a Monaco editor model.
4
- *
5
- * Given a text model and an input range, this function calculates the smallest
6
- * and largest lines touched by the range and returns a new range that starts at
7
- * the beginning of the first touched line and ends at the end of the last touched line.
8
- *
9
- * @param model The Monaco editor text model.
10
- * @param range The Monaco Range to expand.
11
- * @returns A new Monaco Range covering the whole lines spanned by the given range.
12
- */
13
- export declare const rangeToWholeLine: (model: monaco.editor.ITextModel, range: monaco.Range) => monaco.Range;
14
- //# sourceMappingURL=range-to-whole-line.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"range-to-whole-line.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/editor/helpers/range-to-whole-line.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,MAAM,CAAC,KAAK,KAAG,MAAM,CAAC,KAS9F,CAAA"}
@@ -1,27 +0,0 @@
1
- import * as monaco from "monaco-editor";
2
- //#region src/v2/features/editor/helpers/range-to-whole-line.ts
3
- /**
4
- * Expands a given range to cover whole lines within a Monaco editor model.
5
- *
6
- * Given a text model and an input range, this function calculates the smallest
7
- * and largest lines touched by the range and returns a new range that starts at
8
- * the beginning of the first touched line and ends at the end of the last touched line.
9
- *
10
- * @param model The Monaco editor text model.
11
- * @param range The Monaco Range to expand.
12
- * @returns A new Monaco Range covering the whole lines spanned by the given range.
13
- */
14
- var rangeToWholeLine = (model, range) => {
15
- const startOffset = model.getOffsetAt(range.getStartPosition());
16
- const endOffset = model.getOffsetAt(range.getEndPosition());
17
- const start = model.getPositionAt(startOffset);
18
- const inclusiveEndOffset = Math.max(startOffset, endOffset - 1);
19
- const end = model.getPositionAt(inclusiveEndOffset);
20
- const startLine = Math.max(1, start.lineNumber);
21
- const endLine = Math.max(startLine, end.lineNumber);
22
- return new monaco.Range(startLine, 1, endLine, model.getLineMaxColumn(endLine));
23
- };
24
- //#endregion
25
- export { rangeToWholeLine };
26
-
27
- //# sourceMappingURL=range-to-whole-line.js.map