@scalar/api-client 2.38.1 → 2.38.3

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 (1179) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/AddressBar-CX8xiYoe.js +302 -0
  3. package/dist/AddressBar-CX8xiYoe.js.map +1 -0
  4. package/dist/App-BpNPKHmM.js +533 -0
  5. package/dist/App-BpNPKHmM.js.map +1 -0
  6. package/dist/App-Ckirvnv1.js +2510 -0
  7. package/dist/App-Ckirvnv1.js.map +1 -0
  8. package/dist/CodeInput-BN7uw3Bh.js +694 -0
  9. package/dist/CodeInput-BN7uw3Bh.js.map +1 -0
  10. package/dist/CodeSnippet-D7Heh1nd.js +218 -0
  11. package/dist/CodeSnippet-D7Heh1nd.js.map +1 -0
  12. package/dist/Collection-ChAxs3rz.js +219 -0
  13. package/dist/Collection-ChAxs3rz.js.map +1 -0
  14. package/dist/CollectionAuthentication-BDpvv8cA.js +56 -0
  15. package/dist/CollectionAuthentication-BDpvv8cA.js.map +1 -0
  16. package/dist/CollectionCookies-DyjPPMdt.js +19 -0
  17. package/dist/CollectionCookies-DyjPPMdt.js.map +1 -0
  18. package/dist/CollectionEnvironment-dwisJ-h5.js +514 -0
  19. package/dist/CollectionEnvironment-dwisJ-h5.js.map +1 -0
  20. package/dist/CollectionOverview-CJ9-Vmei.js +131 -0
  21. package/dist/CollectionOverview-CJ9-Vmei.js.map +1 -0
  22. package/dist/CollectionScripts-CMNlBlby.js +19 -0
  23. package/dist/CollectionScripts-CMNlBlby.js.map +1 -0
  24. package/dist/CollectionServers-BWkIGwz4.js +168 -0
  25. package/dist/CollectionServers-BWkIGwz4.js.map +1 -0
  26. package/dist/CollectionSettings-CqUUYOym.js +87 -0
  27. package/dist/CollectionSettings-CqUUYOym.js.map +1 -0
  28. package/dist/CollectionSync-CAflc5yW.js +19 -0
  29. package/dist/CollectionSync-CAflc5yW.js.map +1 -0
  30. package/dist/CommandActionInput-TkcAx6E8.js +97 -0
  31. package/dist/CommandActionInput-TkcAx6E8.js.map +1 -0
  32. package/dist/CommandPalette-BiA0IgO8.js +964 -0
  33. package/dist/CommandPalette-BiA0IgO8.js.map +1 -0
  34. package/dist/CommandPaletteImport-Diu5dDIY.js +622 -0
  35. package/dist/CommandPaletteImport-Diu5dDIY.js.map +1 -0
  36. package/dist/Cookies-CNRSxP8J.js +284 -0
  37. package/dist/Cookies-CNRSxP8J.js.map +1 -0
  38. package/dist/DataTable-BqbZKW3K.js +62 -0
  39. package/dist/DataTable-BqbZKW3K.js.map +1 -0
  40. package/dist/DataTableHeader-DJVB0jCZ.js +21 -0
  41. package/dist/DataTableHeader-DJVB0jCZ.js.map +1 -0
  42. package/dist/DataTableInput-SkIUPlrB.js +166 -0
  43. package/dist/DataTableInput-SkIUPlrB.js.map +1 -0
  44. package/dist/DataTableRow-c3XveEUO.js +57 -0
  45. package/dist/DataTableRow-c3XveEUO.js.map +1 -0
  46. package/dist/DeleteSidebarListElement-C-p87d03.js +78 -0
  47. package/dist/DeleteSidebarListElement-C-p87d03.js.map +1 -0
  48. package/dist/EditSidebarListElement-CodWPnM6.js +32 -0
  49. package/dist/EditSidebarListElement-CodWPnM6.js.map +1 -0
  50. package/dist/Editor-BomsGWHx.js +909 -0
  51. package/dist/Editor-BomsGWHx.js.map +1 -0
  52. package/dist/EmptyState-Cnm7hGW5.js +46 -0
  53. package/dist/EmptyState-Cnm7hGW5.js.map +1 -0
  54. package/dist/Environment-D_CbZk0A.js +416 -0
  55. package/dist/Environment-D_CbZk0A.js.map +1 -0
  56. package/dist/EnvironmentModal-CcyqnPc2.js +288 -0
  57. package/dist/EnvironmentModal-CcyqnPc2.js.map +1 -0
  58. package/dist/Form-bA4bV_oA.js +83 -0
  59. package/dist/Form-bA4bV_oA.js.map +1 -0
  60. package/dist/HttpMethod-rnWEgC3T.js +78 -0
  61. package/dist/HttpMethod-rnWEgC3T.js.map +1 -0
  62. package/dist/IconSelector-BDC_GQXv.js +67 -0
  63. package/dist/IconSelector-BDC_GQXv.js.map +1 -0
  64. package/dist/ImportCollection-BIYMxB9Q.js +804 -0
  65. package/dist/ImportCollection-BIYMxB9Q.js.map +1 -0
  66. package/dist/IntegrationLogo-B9EDW8db.js +51 -0
  67. package/dist/IntegrationLogo-B9EDW8db.js.map +1 -0
  68. package/dist/MainLayout-oMIJ5QXF.js +281 -0
  69. package/dist/MainLayout-oMIJ5QXF.js.map +1 -0
  70. package/dist/Modal-DkOa_KK0.js +67 -0
  71. package/dist/Modal-DkOa_KK0.js.map +1 -0
  72. package/dist/ModalClientContainer-qHsZi4wQ.js +65 -0
  73. package/dist/ModalClientContainer-qHsZi4wQ.js.map +1 -0
  74. package/dist/Request-BWfYWyBa.js +212 -0
  75. package/dist/Request-BWfYWyBa.js.map +1 -0
  76. package/dist/RequestAuth-BU6ubH-c.js +989 -0
  77. package/dist/RequestAuth-BU6ubH-c.js.map +1 -0
  78. package/dist/RequestRoot-7xhK5_qr.js +1611 -0
  79. package/dist/RequestRoot-7xhK5_qr.js.map +1 -0
  80. package/dist/RequestSection-Bx8UHW-k.js +1582 -0
  81. package/dist/RequestSection-Bx8UHW-k.js.map +1 -0
  82. package/dist/ResponseSection-CLrgLMN_.js +949 -0
  83. package/dist/ResponseSection-CLrgLMN_.js.map +1 -0
  84. package/dist/ScalarAsciiArt-BjuSnj8e.js +45 -0
  85. package/dist/ScalarAsciiArt-BjuSnj8e.js.map +1 -0
  86. package/dist/SectionFilter-hrtoRLwj.js +99 -0
  87. package/dist/SectionFilter-hrtoRLwj.js.map +1 -0
  88. package/dist/Server-BS4zjUdO.js +303 -0
  89. package/dist/Server-BS4zjUdO.js.map +1 -0
  90. package/dist/ServerVariablesForm-BRZ9XC8o.js +145 -0
  91. package/dist/ServerVariablesForm-BRZ9XC8o.js.map +1 -0
  92. package/dist/Settings-BuLKHzRY.js +347 -0
  93. package/dist/Settings-BuLKHzRY.js.map +1 -0
  94. package/dist/Sidebar-Xl9_nFXX.js +73 -0
  95. package/dist/Sidebar-Xl9_nFXX.js.map +1 -0
  96. package/dist/SidebarButton-BAagdMDe.js +37 -0
  97. package/dist/SidebarButton-BAagdMDe.js.map +1 -0
  98. package/dist/SidebarListElement-BfTPiihc.js +232 -0
  99. package/dist/SidebarListElement-BfTPiihc.js.map +1 -0
  100. package/dist/TheCommandPalette-Dl9TAeke.js +204 -0
  101. package/dist/TheCommandPalette-Dl9TAeke.js.map +1 -0
  102. package/dist/ValueEmitter-QYkZ9Hdc.js +20 -0
  103. package/dist/ValueEmitter-QYkZ9Hdc.js.map +1 -0
  104. package/dist/ViewLayout-BOXN0IYo.js +17 -0
  105. package/dist/ViewLayout-BOXN0IYo.js.map +1 -0
  106. package/dist/ViewLayoutCollapse-CiTb-Uml.js +86 -0
  107. package/dist/ViewLayoutCollapse-CiTb-Uml.js.map +1 -0
  108. package/dist/ViewLayoutContent-CvMoJYPF.js +13 -0
  109. package/dist/ViewLayoutContent-CvMoJYPF.js.map +1 -0
  110. package/dist/ViewLayoutSection-mUqKbQry.js +23 -0
  111. package/dist/ViewLayoutSection-mUqKbQry.js.map +1 -0
  112. package/dist/WatchModeToggle-D_eAiTWJ.js +41 -0
  113. package/dist/WatchModeToggle-D_eAiTWJ.js.map +1 -0
  114. package/dist/_plugin-vue_export-helper-BmmBcIzD.js +8 -0
  115. package/dist/analytics-BZimCWcw.js +7 -0
  116. package/dist/analytics-BZimCWcw.js.map +1 -0
  117. package/dist/build-request-security-BQjNr2MD.js +41 -0
  118. package/dist/build-request-security-BQjNr2MD.js.map +1 -0
  119. package/dist/code-input-iq-moLxi.js +775 -0
  120. package/dist/code-input-iq-moLxi.js.map +1 -0
  121. package/dist/components/AddressBar/AddressBar.vue.d.ts +1 -1
  122. package/dist/components/AddressBar/index.d.ts +1 -1
  123. package/dist/components/AddressBar/index.js +5 -4
  124. package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
  125. package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -1
  126. package/dist/components/CodeInput/index.d.ts +1 -1
  127. package/dist/components/CodeInput/index.js +2 -4
  128. package/dist/components/CommandPalette/index.d.ts +1 -1
  129. package/dist/components/CommandPalette/index.js +3 -4
  130. package/dist/components/DataTable/DataTableInput.vue.d.ts +2 -2
  131. package/dist/components/DataTable/index.d.ts +8 -8
  132. package/dist/components/DataTable/index.js +6 -18
  133. package/dist/components/Form/LabelInput.vue.d.ts +1 -1
  134. package/dist/components/HttpMethod/index.d.ts +1 -1
  135. package/dist/components/HttpMethod/index.js +2 -4
  136. package/dist/components/ImportCollection/index.d.ts +1 -1
  137. package/dist/components/ImportCollection/index.js +2 -4
  138. package/dist/components/ImportCollection/utils/import-collection.d.ts +1 -1
  139. package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts +1 -1
  140. package/dist/components/Server/ServerVariablesForm.vue.d.ts +1 -1
  141. package/dist/components/Server/index.d.ts +3 -3
  142. package/dist/components/Server/index.js +3 -8
  143. package/dist/components/Sidebar/index.d.ts +1 -1
  144. package/dist/components/Sidebar/index.js +2 -4
  145. package/dist/components/ViewLayout/index.d.ts +1 -1
  146. package/dist/components/ViewLayout/index.js +2 -4
  147. package/dist/components/index.d.ts +3 -3
  148. package/dist/components/index.js +7 -8
  149. package/dist/components-ChixwQhN.js +61 -0
  150. package/dist/components-ChixwQhN.js.map +1 -0
  151. package/dist/components-DfJHvSLM.js +183 -0
  152. package/dist/components-DfJHvSLM.js.map +1 -0
  153. package/dist/computer-D7VW3Ruy.js +562 -0
  154. package/dist/computer-D7VW3Ruy.js.map +1 -0
  155. package/dist/consts-CyGRb9dl.js +318 -0
  156. package/dist/consts-CyGRb9dl.js.map +1 -0
  157. package/dist/curl-nbw1OxbV.js +54 -0
  158. package/dist/curl-nbw1OxbV.js.map +1 -0
  159. package/dist/data-table-PL7e8NRO.js +282 -0
  160. package/dist/data-table-PL7e8NRO.js.map +1 -0
  161. package/dist/editor-BZ_J0eze.js +466 -0
  162. package/dist/editor-BZ_J0eze.js.map +1 -0
  163. package/dist/environments-ByLK9lnC.js +592 -0
  164. package/dist/environments-ByLK9lnC.js.map +1 -0
  165. package/dist/formatters-DOGXZq9R.js +36 -0
  166. package/dist/formatters-DOGXZq9R.js.map +1 -0
  167. package/dist/forms-CZX6cFDS.js +42 -0
  168. package/dist/forms-CZX6cFDS.js.map +1 -0
  169. package/dist/get-active-environment-CkxyQ1dM.js +19 -0
  170. package/dist/get-active-environment-CkxyQ1dM.js.map +1 -0
  171. package/dist/get-resolved-url-SybDPV0U.js +85 -0
  172. package/dist/get-resolved-url-SybDPV0U.js.map +1 -0
  173. package/dist/get-server-url-UVN-dx79.js +32 -0
  174. package/dist/get-server-url-UVN-dx79.js.map +1 -0
  175. package/dist/get-servers-B_WNlQWB.js +106 -0
  176. package/dist/get-servers-B_WNlQWB.js.map +1 -0
  177. package/dist/get-snippet-DBRUSfZ2.js +39 -0
  178. package/dist/get-snippet-DBRUSfZ2.js.map +1 -0
  179. package/dist/global-cookies-D3ZS9ON3.js +184 -0
  180. package/dist/global-cookies-D3ZS9ON3.js.map +1 -0
  181. package/dist/hooks/index.d.ts +4 -4
  182. package/dist/hooks/index.js +3 -11
  183. package/dist/hooks/useSidebar.d.ts +1 -1
  184. package/dist/hooks-BvZxH4XB.js +80 -0
  185. package/dist/hooks-BvZxH4XB.js.map +1 -0
  186. package/dist/index.d.ts +3 -3
  187. package/dist/index.js +8 -12
  188. package/dist/layout-BWiL7dfb.js +81 -0
  189. package/dist/layout-BWiL7dfb.js.map +1 -0
  190. package/dist/layouts/App/create-api-client-app.d.ts +9 -9
  191. package/dist/layouts/App/index.d.ts +2 -2
  192. package/dist/layouts/App/index.js +5 -7
  193. package/dist/layouts/Modal/create-api-client-modal.d.ts +1 -1
  194. package/dist/layouts/Modal/index.d.ts +2 -2
  195. package/dist/layouts/Modal/index.js +3 -4
  196. package/dist/layouts/Web/create-api-client-web.d.ts +9 -9
  197. package/dist/layouts/Web/index.d.ts +2 -2
  198. package/dist/layouts/Web/index.js +101 -6
  199. package/dist/layouts/Web/index.js.map +1 -0
  200. package/dist/libs/create-client.d.ts +9 -9
  201. package/dist/libs/create-client.d.ts.map +1 -1
  202. package/dist/libs/environment-parser.d.ts +1 -1
  203. package/dist/libs/get-request-uid-by-path-method.d.ts +1 -1
  204. package/dist/libs/hot-keys.d.ts +1 -1
  205. package/dist/libs/importers/index.d.ts +1 -1
  206. package/dist/libs/importers/index.js +2 -4
  207. package/dist/libs/index.d.ts +15 -15
  208. package/dist/libs/index.js +6 -45
  209. package/dist/libs/local-storage.d.ts +1 -1
  210. package/dist/libs/send-request/create-request-operation.d.ts +3 -3
  211. package/dist/libs/send-request/index.d.ts +3 -3
  212. package/dist/libs/send-request/index.js +3 -8
  213. package/dist/libs-spbv4P0g.js +249 -0
  214. package/dist/libs-spbv4P0g.js.map +1 -0
  215. package/dist/monacoeditorwork/json.worker.bundle.js +8 -8
  216. package/dist/monacoeditorwork/yaml.worker.bundle.js +151 -151
  217. package/dist/operation-block-DE-hoO03.js +1674 -0
  218. package/dist/operation-block-DE-hoO03.js.map +1 -0
  219. package/dist/operation-code-sample-xgx4qi2H.js +1738 -0
  220. package/dist/operation-code-sample-xgx4qi2H.js.map +1 -0
  221. package/dist/parse-curl-BtypQT3D.js +106 -0
  222. package/dist/parse-curl-BtypQT3D.js.map +1 -0
  223. package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
  224. package/dist/plugins/index.d.ts +2 -2
  225. package/dist/plugins/index.js +2 -7
  226. package/dist/plugins/plugin-manager.d.ts +10 -4
  227. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  228. package/dist/plugins-B52hCIyZ.js +50 -0
  229. package/dist/plugins-B52hCIyZ.js.map +1 -0
  230. package/dist/rabbitjump-CMZXAR6d.js +9 -0
  231. package/dist/rabbitjump-CMZXAR6d.js.map +1 -0
  232. package/dist/request-block-N7dPFyrG.js +1466 -0
  233. package/dist/request-block-N7dPFyrG.js.map +1 -0
  234. package/dist/resize-D2IYvVdh.js +114 -0
  235. package/dist/resize-D2IYvVdh.js.map +1 -0
  236. package/dist/response-block-DmkaDZYs.js +1188 -0
  237. package/dist/response-block-DmkaDZYs.js.map +1 -0
  238. package/dist/scalar-address-bar-block-BbysOhkE.js +425 -0
  239. package/dist/scalar-address-bar-block-BbysOhkE.js.map +1 -0
  240. package/dist/scalar-auth-selector-block-Bs79QOMA.js +1889 -0
  241. package/dist/scalar-auth-selector-block-Bs79QOMA.js.map +1 -0
  242. package/dist/search-CmsQQkjn.js +151 -0
  243. package/dist/search-CmsQQkjn.js.map +1 -0
  244. package/dist/send-request-BsTfRiBC.js +348 -0
  245. package/dist/send-request-BsTfRiBC.js.map +1 -0
  246. package/dist/server-tcI-OCyx.js +140 -0
  247. package/dist/server-tcI-OCyx.js.map +1 -0
  248. package/dist/set-request-cookies-BJJhsU4A.js +88 -0
  249. package/dist/set-request-cookies-BJJhsU4A.js.map +1 -0
  250. package/dist/settings-BKk_1lcH.js +455 -0
  251. package/dist/settings-BKk_1lcH.js.map +1 -0
  252. package/dist/sidebar-ceSbYmnt.js +217 -0
  253. package/dist/sidebar-ceSbYmnt.js.map +1 -0
  254. package/dist/store/collections.d.ts +1 -1
  255. package/dist/store/environment.d.ts +1 -1
  256. package/dist/store/events.d.ts +8 -8
  257. package/dist/store/import-spec.d.ts +2 -2
  258. package/dist/store/index.d.ts +2 -2
  259. package/dist/store/index.js +2 -10
  260. package/dist/store/request-example.d.ts +1 -1
  261. package/dist/store/requests.d.ts +1 -1
  262. package/dist/store/security-schemes.d.ts +1 -1
  263. package/dist/store/servers.d.ts +1 -1
  264. package/dist/store/store.d.ts +7 -7
  265. package/dist/store/tags.d.ts +1 -1
  266. package/dist/store/workspace.d.ts +1 -1
  267. package/dist/store-DaPoVtIS.js +1512 -0
  268. package/dist/store-DaPoVtIS.js.map +1 -0
  269. package/dist/string-template-sS5PtY6T.js +64 -0
  270. package/dist/string-template-sS5PtY6T.js.map +1 -0
  271. package/dist/style.css +10372 -1
  272. package/dist/types/index.js +0 -1
  273. package/dist/use-global-hot-keys-D8Ai8Qbm.js +274 -0
  274. package/dist/use-global-hot-keys-D8Ai8Qbm.js.map +1 -0
  275. package/dist/useSidebar-DLTwHDI-.js +45 -0
  276. package/dist/useSidebar-DLTwHDI-.js.map +1 -0
  277. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +3 -3
  278. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  279. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +2 -2
  280. package/dist/v2/blocks/operation-block/helpers/apply-allow-reserved-to-url.d.ts +6 -0
  281. package/dist/v2/blocks/operation-block/helpers/apply-allow-reserved-to-url.d.ts.map +1 -0
  282. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  283. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts +1 -0
  284. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
  285. package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +2 -2
  286. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +2 -2
  287. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
  288. package/dist/v2/blocks/operation-block/helpers/get-resolved-url.d.ts +2 -1
  289. package/dist/v2/blocks/operation-block/helpers/get-resolved-url.d.ts.map +1 -1
  290. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.d.ts +1 -1
  291. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +1 -1
  292. package/dist/v2/blocks/operation-block/index.d.ts +4 -4
  293. package/dist/v2/blocks/operation-block/index.js +20 -11
  294. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +2 -2
  295. package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts +1 -1
  296. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts +1 -1
  297. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -2
  298. package/dist/v2/blocks/operation-code-sample/helpers/get-clients.d.ts +2 -2
  299. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts +1 -1
  300. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +1 -1
  301. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts +1 -1
  302. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
  303. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts +1 -1
  304. package/dist/v2/blocks/operation-code-sample/index.d.ts +6 -6
  305. package/dist/v2/blocks/operation-code-sample/index.js +2 -16
  306. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +4 -4
  307. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts +1 -1
  308. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +1 -1
  309. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +1 -1
  310. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +1 -1
  311. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +3 -2
  312. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -1
  313. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +1 -1
  314. package/dist/v2/blocks/request-block/index.d.ts +1 -1
  315. package/dist/v2/blocks/request-block/index.js +9 -4
  316. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +1 -1
  317. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts +1 -1
  318. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts +1 -1
  319. package/dist/v2/blocks/response-block/index.d.ts +1 -1
  320. package/dist/v2/blocks/response-block/index.js +6 -4
  321. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +2 -2
  322. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +2 -2
  323. package/dist/v2/blocks/scalar-address-bar-block/index.js +5 -4
  324. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +3 -3
  325. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +1 -1
  326. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +2 -2
  327. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
  328. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +1 -1
  329. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -1
  330. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +1 -1
  331. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +2 -2
  332. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts +1 -1
  333. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
  334. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +4 -4
  335. package/dist/v2/blocks/scalar-auth-selector-block/index.js +6 -8
  336. package/dist/v2/components/code-input/CodeInput.vue.d.ts +1 -1
  337. package/dist/v2/components/code-input/index.d.ts +1 -1
  338. package/dist/v2/components/code-input/index.js +2 -4
  339. package/dist/v2/components/data-table/DataTableInput.vue.d.ts +1 -1
  340. package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +1 -1
  341. package/dist/v2/components/data-table/index.d.ts +8 -8
  342. package/dist/v2/components/data-table/index.js +3 -18
  343. package/dist/v2/components/forms/index.d.ts +1 -1
  344. package/dist/v2/components/forms/index.js +2 -4
  345. package/dist/v2/components/layout/index.d.ts +1 -1
  346. package/dist/v2/components/layout/index.js +2 -4
  347. package/dist/v2/components/modals/index.d.ts +1 -1
  348. package/dist/v2/components/modals/index.js +37 -3
  349. package/dist/v2/components/modals/index.js.map +1 -0
  350. package/dist/v2/components/resize/index.d.ts +2 -2
  351. package/dist/v2/components/resize/index.js +2 -6
  352. package/dist/v2/components/server/ServerDropdown.vue.d.ts +1 -1
  353. package/dist/v2/components/server/index.d.ts +1 -1
  354. package/dist/v2/components/server/index.js +2 -4
  355. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +1 -1
  356. package/dist/v2/components/sidebar/index.d.ts +3 -3
  357. package/dist/v2/components/sidebar/index.js +3 -8
  358. package/dist/v2/constants.d.ts +3 -0
  359. package/dist/v2/constants.d.ts.map +1 -0
  360. package/dist/v2/features/app/App.vue.d.ts +4 -4
  361. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +1 -1
  362. package/dist/v2/features/app/components/index.d.ts +1 -1
  363. package/dist/v2/features/app/components/index.js +10 -5
  364. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +3 -3
  365. package/dist/v2/features/app/helpers/get-route-param.d.ts +1 -1
  366. package/dist/v2/features/app/helpers/routes.d.ts +5 -5
  367. package/dist/v2/features/app/hooks/use-theme.d.ts +1 -1
  368. package/dist/v2/features/app/index.d.ts +8 -8
  369. package/dist/v2/features/app/index.js +3161 -19
  370. package/dist/v2/features/app/index.js.map +1 -0
  371. package/dist/v2/features/collection/DocumentCollection.vue.d.ts +1 -1
  372. package/dist/v2/features/collection/OperationCollection.vue.d.ts +1 -1
  373. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +1 -1
  374. package/dist/v2/features/collection/components/Authentication.vue.d.ts +4 -4
  375. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  376. package/dist/v2/features/collection/components/Cookies.vue.d.ts +4 -4
  377. package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts +4 -4
  378. package/dist/v2/features/collection/components/Editor/index.d.ts +1 -1
  379. package/dist/v2/features/collection/components/Editor/index.js +2 -4
  380. package/dist/v2/features/collection/components/Environment.vue.d.ts +4 -4
  381. package/dist/v2/features/collection/components/Overview.vue.d.ts +4 -4
  382. package/dist/v2/features/collection/components/Servers.vue.d.ts +4 -4
  383. package/dist/v2/features/collection/components/Settings.vue.d.ts +4 -4
  384. package/dist/v2/features/collection/components/Tabs.vue.d.ts +1 -1
  385. package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts +1 -1
  386. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +10 -45
  387. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  388. package/dist/v2/features/command-palette/index.d.ts +2 -2
  389. package/dist/v2/features/command-palette/index.js +3 -6
  390. package/dist/v2/features/editor/helpers/json/create-json-model.d.ts +1 -1
  391. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts +1 -1
  392. package/dist/v2/features/editor/helpers/json/json-pointer-path.d.ts +1 -1
  393. package/dist/v2/features/editor/helpers/yaml/create-yaml-model.d.ts +1 -1
  394. package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.d.ts +1 -1
  395. package/dist/v2/features/editor/hooks/use-editor.d.ts +1 -1
  396. package/dist/v2/features/editor/hooks/use-json-pointer-link-support.d.ts +1 -1
  397. package/dist/v2/features/editor/index.d.ts +4 -4
  398. package/dist/v2/features/editor/index.js +2 -10
  399. package/dist/v2/features/environments/index.d.ts +1 -1
  400. package/dist/v2/features/environments/index.js +4 -4
  401. package/dist/v2/features/global-cookies/index.d.ts +1 -1
  402. package/dist/v2/features/global-cookies/index.js +4 -4
  403. package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
  404. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -2
  405. package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts +1 -1
  406. package/dist/v2/features/modal/index.d.ts +3 -3
  407. package/dist/v2/features/modal/index.js +639 -7
  408. package/dist/v2/features/modal/index.js.map +1 -0
  409. package/dist/v2/features/modal/modal-events.d.ts +1 -1
  410. package/dist/v2/features/operation/Operation.vue.d.ts +2 -2
  411. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  412. package/dist/v2/features/operation/helpers/get-selected-security.d.ts +6 -1
  413. package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -1
  414. package/dist/v2/features/operation/index.d.ts +5 -5
  415. package/dist/v2/features/operation/index.js +19 -12
  416. package/dist/v2/features/search/helpers/create-fuse-instance.d.ts +1 -1
  417. package/dist/v2/features/search/helpers/create-search-index.d.ts +1 -1
  418. package/dist/v2/features/search/index.d.ts +1 -1
  419. package/dist/v2/features/search/index.js +2 -4
  420. package/dist/v2/features/settings/index.d.ts +2 -2
  421. package/dist/v2/features/settings/index.js +2 -6
  422. package/dist/v2/helpers/get-active-proxy-url.d.ts +1 -1
  423. package/dist/v2/helpers/get-tab-details.d.ts +1 -1
  424. package/dist/v2/helpers/handle-hotkeys.d.ts +1 -1
  425. package/dist/v2/helpers/index.d.ts +2 -2
  426. package/dist/v2/helpers/index.js +3 -6
  427. package/dist/v2/hooks/use-global-hot-keys.d.ts +1 -1
  428. package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +1 -1
  429. package/dist/views/Collection/components/MarkdownInput.vue.d.ts +1 -1
  430. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +1 -1
  431. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +1 -1
  432. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +1 -1
  433. package/dist/views/Components/CodeSnippet/index.d.ts +4 -4
  434. package/dist/views/Components/CodeSnippet/index.js +3 -10
  435. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +1 -1
  436. package/dist/views/Environment/handle-drag.d.ts +1 -1
  437. package/dist/views/Request/Request.vue.d.ts +1 -1
  438. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -1
  439. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -1
  440. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -1
  441. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +1 -1
  442. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +2 -2
  443. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +1 -1
  444. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts +1 -1
  445. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +3 -3
  446. package/dist/views/Request/RequestSection/RequestAuth/index.js +4 -8
  447. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
  448. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +1 -1
  449. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
  450. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
  451. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
  452. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
  453. package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts +1 -1
  454. package/dist/views/Request/RequestSection/index.d.ts +2 -2
  455. package/dist/views/Request/RequestSection/index.js +42 -5
  456. package/dist/views/Request/RequestSection/index.js.map +1 -0
  457. package/dist/views/Request/RequestSidebarItem.vue.d.ts +1 -1
  458. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +3 -3
  459. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +1 -1
  460. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +1 -1
  461. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
  462. package/dist/views/Request/ResponseSection/index.d.ts +2 -2
  463. package/dist/views/Request/ResponseSection/index.js +7 -6
  464. package/dist/views/Request/components/index.d.ts +1 -1
  465. package/dist/views/Request/components/index.js +2 -4
  466. package/dist/views/Request/consts/index.d.ts +2 -2
  467. package/dist/views/Request/consts/index.js +2 -10
  468. package/dist/views/Request/handle-drag.d.ts +2 -2
  469. package/dist/views/Request/libs/auth.d.ts +1 -1
  470. package/dist/views/Request/libs/index.d.ts +3 -3
  471. package/dist/views/Request/libs/index.js +3 -22
  472. package/dist/views/Request/libs/oauth2.d.ts +1 -1
  473. package/dist/views/Request/libs/watch-mode.d.ts +2 -2
  474. package/dist/views/Request/types/index.js +0 -1
  475. package/dist/watch-mode-Dbaqd9bG.js +375 -0
  476. package/dist/watch-mode-Dbaqd9bG.js.map +1 -0
  477. package/package.json +29 -33
  478. package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
  479. package/dist/analytics.js +0 -9
  480. package/dist/assets/computer.ascii.js +0 -34
  481. package/dist/assets/keycap.ascii.js +0 -25
  482. package/dist/assets/rabbit.ascii.js +0 -11
  483. package/dist/assets/rabbitjump.ascii.js +0 -11
  484. package/dist/components/AddressBar/AddressBar.vue.js +0 -7
  485. package/dist/components/AddressBar/AddressBar.vue2.js +0 -160
  486. package/dist/components/AddressBar/AddressBarHistory.vue.js +0 -7
  487. package/dist/components/AddressBar/AddressBarHistory.vue2.js +0 -98
  488. package/dist/components/AddressBar/httpStatusCodeColors.js +0 -38
  489. package/dist/components/CodeInput/CodeInput.vue.js +0 -8
  490. package/dist/components/CodeInput/CodeInput.vue2.js +0 -209
  491. package/dist/components/CodeInput/codeVariableWidget.js +0 -111
  492. package/dist/components/CommandPalette/CommandActionForm.vue.js +0 -44
  493. package/dist/components/CommandPalette/CommandActionForm.vue2.js +0 -4
  494. package/dist/components/CommandPalette/CommandActionInput.vue.js +0 -52
  495. package/dist/components/CommandPalette/CommandActionInput.vue2.js +0 -4
  496. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +0 -80
  497. package/dist/components/CommandPalette/CommandPaletteCollection.vue2.js +0 -4
  498. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +0 -116
  499. package/dist/components/CommandPalette/CommandPaletteExample.vue2.js +0 -4
  500. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +0 -217
  501. package/dist/components/CommandPalette/CommandPaletteImport.vue2.js +0 -4
  502. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +0 -7
  503. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +0 -136
  504. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +0 -123
  505. package/dist/components/CommandPalette/CommandPaletteServer.vue2.js +0 -4
  506. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +0 -84
  507. package/dist/components/CommandPalette/CommandPaletteTag.vue2.js +0 -4
  508. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +0 -48
  509. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue2.js +0 -4
  510. package/dist/components/CommandPalette/TheCommandPalette.vue.js +0 -7
  511. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -305
  512. package/dist/components/CommandPalette/WatchModeToggle.vue.js +0 -39
  513. package/dist/components/CommandPalette/WatchModeToggle.vue2.js +0 -4
  514. package/dist/components/DataTable/DataTable.vue.js +0 -38
  515. package/dist/components/DataTable/DataTable.vue2.js +0 -4
  516. package/dist/components/DataTable/DataTableCell.vue.js +0 -26
  517. package/dist/components/DataTable/DataTableCell.vue2.js +0 -4
  518. package/dist/components/DataTable/DataTableCheckbox.vue.js +0 -53
  519. package/dist/components/DataTable/DataTableCheckbox.vue2.js +0 -4
  520. package/dist/components/DataTable/DataTableHeader.vue.js +0 -18
  521. package/dist/components/DataTable/DataTableHeader.vue2.js +0 -4
  522. package/dist/components/DataTable/DataTableInput.vue.js +0 -7
  523. package/dist/components/DataTable/DataTableInput.vue2.js +0 -124
  524. package/dist/components/DataTable/DataTableInputSelect.vue.js +0 -146
  525. package/dist/components/DataTable/DataTableInputSelect.vue2.js +0 -4
  526. package/dist/components/DataTable/DataTableRow.vue.js +0 -12
  527. package/dist/components/DataTable/DataTableText.vue.js +0 -23
  528. package/dist/components/DataTable/DataTableText.vue2.js +0 -4
  529. package/dist/components/EmptyState.vue.js +0 -7
  530. package/dist/components/EmptyState.vue2.js +0 -42
  531. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +0 -113
  532. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue2.js +0 -4
  533. package/dist/components/Form/Form.vue.js +0 -83
  534. package/dist/components/Form/Form.vue2.js +0 -4
  535. package/dist/components/Form/LabelInput.vue.js +0 -7
  536. package/dist/components/Form/LabelInput.vue2.js +0 -42
  537. package/dist/components/HelpfulLink.vue.js +0 -20
  538. package/dist/components/HelpfulLink.vue2.js +0 -4
  539. package/dist/components/HttpMethod/HttpMethod.vue.js +0 -7
  540. package/dist/components/HttpMethod/HttpMethod.vue2.js +0 -62
  541. package/dist/components/IconSelector.vue.js +0 -75
  542. package/dist/components/IconSelector.vue2.js +0 -4
  543. package/dist/components/ImportCollection/DropEventListener.vue.js +0 -81
  544. package/dist/components/ImportCollection/DropEventListener.vue2.js +0 -4
  545. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +0 -77
  546. package/dist/components/ImportCollection/ImportCollectionListener.vue2.js +0 -4
  547. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +0 -208
  548. package/dist/components/ImportCollection/ImportCollectionModal.vue3.js +0 -5
  549. package/dist/components/ImportCollection/ImportNowButton.vue.js +0 -73
  550. package/dist/components/ImportCollection/ImportNowButton.vue2.js +0 -4
  551. package/dist/components/ImportCollection/IntegrationLogo.vue.js +0 -44
  552. package/dist/components/ImportCollection/IntegrationLogo.vue2.js +0 -4
  553. package/dist/components/ImportCollection/PasteEventListener.vue.js +0 -24
  554. package/dist/components/ImportCollection/PasteEventListener.vue2.js +0 -4
  555. package/dist/components/ImportCollection/PrefetchError.vue.js +0 -27
  556. package/dist/components/ImportCollection/PrefetchError.vue2.js +0 -4
  557. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +0 -20
  558. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue2.js +0 -4
  559. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +0 -134
  560. package/dist/components/ImportCollection/WorkspaceSelector.vue2.js +0 -4
  561. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +0 -106
  562. package/dist/components/ImportCollection/utils/get-openapi-version.js +0 -20
  563. package/dist/components/ImportCollection/utils/import-collection.js +0 -29
  564. package/dist/components/ImportCollection/utils/is-document.js +0 -9
  565. package/dist/components/ImportCollection/utils/is-url.js +0 -9
  566. package/dist/components/ImportCollection/utils/workspace-store-is-empty.js +0 -7
  567. package/dist/components/OpenApiClientButton.vue.js +0 -7
  568. package/dist/components/OpenApiClientButton.vue2.js +0 -48
  569. package/dist/components/ScalarAsciiArt.vue.js +0 -7
  570. package/dist/components/ScalarAsciiArt.vue2.js +0 -37
  571. package/dist/components/Search/useSearch.js +0 -78
  572. package/dist/components/SectionFilter.vue.js +0 -7
  573. package/dist/components/SectionFilter.vue2.js +0 -64
  574. package/dist/components/SectionFilterButton.vue.js +0 -23
  575. package/dist/components/SectionFilterButton.vue2.js +0 -4
  576. package/dist/components/Server/ServerDropdown.vue.js +0 -132
  577. package/dist/components/Server/ServerDropdown.vue2.js +0 -4
  578. package/dist/components/Server/ServerDropdownItem.vue.js +0 -7
  579. package/dist/components/Server/ServerDropdownItem.vue2.js +0 -84
  580. package/dist/components/Server/ServerSelector.vue.js +0 -82
  581. package/dist/components/Server/ServerSelector.vue2.js +0 -4
  582. package/dist/components/Server/ServerVariablesForm.vue.js +0 -49
  583. package/dist/components/Server/ServerVariablesForm.vue2.js +0 -4
  584. package/dist/components/Server/ServerVariablesSelect.vue.js +0 -54
  585. package/dist/components/Server/ServerVariablesSelect.vue2.js +0 -4
  586. package/dist/components/Server/ServerVariablesTextbox.vue.js +0 -29
  587. package/dist/components/Server/ServerVariablesTextbox.vue2.js +0 -4
  588. package/dist/components/SideNav/DownloadAppButton.vue.js +0 -7
  589. package/dist/components/SideNav/DownloadAppButton.vue2.js +0 -33
  590. package/dist/components/SideNav/SideHelp.vue.js +0 -127
  591. package/dist/components/SideNav/SideHelp.vue2.js +0 -4
  592. package/dist/components/SideNav/SideNav.vue.js +0 -96
  593. package/dist/components/SideNav/SideNav.vue2.js +0 -4
  594. package/dist/components/SideNav/SideNavGroup.vue.js +0 -16
  595. package/dist/components/SideNav/SideNavGroup.vue2.js +0 -4
  596. package/dist/components/SideNav/SideNavLink.vue.js +0 -39
  597. package/dist/components/SideNav/SideNavLink.vue2.js +0 -4
  598. package/dist/components/SideNav/SideNavRouterLink.vue.js +0 -27
  599. package/dist/components/SideNav/SideNavRouterLink.vue2.js +0 -4
  600. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +0 -30
  601. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue2.js +0 -4
  602. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +0 -58
  603. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue2.js +0 -4
  604. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +0 -29
  605. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue2.js +0 -4
  606. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +0 -46
  607. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +0 -4
  608. package/dist/components/Sidebar/Sidebar.vue.js +0 -7
  609. package/dist/components/Sidebar/Sidebar.vue2.js +0 -63
  610. package/dist/components/Sidebar/SidebarButton.vue.js +0 -33
  611. package/dist/components/Sidebar/SidebarButton.vue2.js +0 -4
  612. package/dist/components/Sidebar/SidebarList.vue.js +0 -12
  613. package/dist/components/Sidebar/SidebarListElement.vue.js +0 -8
  614. package/dist/components/Sidebar/SidebarListElement.vue2.js +0 -94
  615. package/dist/components/Sidebar/SidebarListElementActions.vue.js +0 -86
  616. package/dist/components/Sidebar/SidebarListElementActions.vue2.js +0 -4
  617. package/dist/components/Sidebar/SidebarToggle.vue.js +0 -49
  618. package/dist/components/Sidebar/SidebarToggle.vue2.js +0 -4
  619. package/dist/components/TopNav/TopNav.vue.js +0 -210
  620. package/dist/components/TopNav/TopNav.vue2.js +0 -4
  621. package/dist/components/TopNav/TopNavItem.vue.js +0 -7
  622. package/dist/components/TopNav/TopNavItem.vue2.js +0 -138
  623. package/dist/components/ViewLayout/ViewLayout.vue.js +0 -18
  624. package/dist/components/ViewLayout/ViewLayout.vue2.js +0 -4
  625. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +0 -92
  626. package/dist/components/ViewLayout/ViewLayoutCollapse.vue2.js +0 -4
  627. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +0 -12
  628. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +0 -23
  629. package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +0 -4
  630. package/dist/constants.js +0 -40
  631. package/dist/data/httpHeaders.js +0 -537
  632. package/dist/hooks/useAnalytics.js +0 -11
  633. package/dist/hooks/useClientConfig.js +0 -7
  634. package/dist/hooks/useFileDialog.js +0 -21
  635. package/dist/hooks/useLayout.js +0 -8
  636. package/dist/hooks/useResponseBody.js +0 -20
  637. package/dist/hooks/useSidebar.js +0 -28
  638. package/dist/layouts/App/ApiClientApp.vue.js +0 -70
  639. package/dist/layouts/App/ApiClientApp.vue3.js +0 -5
  640. package/dist/layouts/App/MainLayout.vue.js +0 -26
  641. package/dist/layouts/App/MainLayout.vue2.js +0 -4
  642. package/dist/layouts/App/create-api-client-app.js +0 -35
  643. package/dist/layouts/App/hotkeys.js +0 -21
  644. package/dist/layouts/Modal/ApiClientModal.vue.js +0 -30
  645. package/dist/layouts/Modal/ApiClientModal.vue2.js +0 -4
  646. package/dist/layouts/Modal/create-api-client-modal.js +0 -32
  647. package/dist/layouts/Web/ApiClientWeb.vue.js +0 -64
  648. package/dist/layouts/Web/ApiClientWeb.vue3.js +0 -5
  649. package/dist/layouts/Web/create-api-client-web.js +0 -32
  650. package/dist/libs/create-client.js +0 -189
  651. package/dist/libs/electron.js +0 -4
  652. package/dist/libs/env-helpers.js +0 -6
  653. package/dist/libs/environment-parser.js +0 -18
  654. package/dist/libs/errors.js +0 -16
  655. package/dist/libs/event-bus.js +0 -32
  656. package/dist/libs/extractAttachmentFilename.js +0 -18
  657. package/dist/libs/find-request.js +0 -23
  658. package/dist/libs/formatters.js +0 -10
  659. package/dist/libs/get-request-uid-by-path-method.js +0 -18
  660. package/dist/libs/getOpenApiDocumentDetails.js +0 -40
  661. package/dist/libs/hot-keys.js +0 -44
  662. package/dist/libs/importers/curl.js +0 -53
  663. package/dist/libs/isUrl.js +0 -7
  664. package/dist/libs/local-storage.js +0 -41
  665. package/dist/libs/normalize-headers.js +0 -27
  666. package/dist/libs/parse-curl.js +0 -59
  667. package/dist/libs/postman.js +0 -37
  668. package/dist/libs/send-request/build-request-security.js +0 -35
  669. package/dist/libs/send-request/create-fetch-body.js +0 -25
  670. package/dist/libs/send-request/create-fetch-headers.js +0 -11
  671. package/dist/libs/send-request/create-fetch-query-params.js +0 -33
  672. package/dist/libs/send-request/create-request-operation.js +0 -140
  673. package/dist/libs/send-request/decode-buffer.js +0 -9
  674. package/dist/libs/send-request/set-request-cookies.js +0 -58
  675. package/dist/libs/string-template.js +0 -42
  676. package/dist/libs/validate-parameters.js +0 -16
  677. package/dist/plugins/hooks/usePluginManager.js +0 -10
  678. package/dist/plugins/plugin-manager.js +0 -26
  679. package/dist/routes.js +0 -210
  680. package/dist/store/active-entities.js +0 -118
  681. package/dist/store/collections.js +0 -73
  682. package/dist/store/cookies.js +0 -13
  683. package/dist/store/environment.js +0 -32
  684. package/dist/store/events.js +0 -35
  685. package/dist/store/import-spec.js +0 -55
  686. package/dist/store/request-example.js +0 -43
  687. package/dist/store/requests.js +0 -97
  688. package/dist/store/router-params.js +0 -22
  689. package/dist/store/security-schemes.js +0 -55
  690. package/dist/store/servers.js +0 -39
  691. package/dist/store/store.js +0 -144
  692. package/dist/store/tags.js +0 -45
  693. package/dist/store/workspace.js +0 -52
  694. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +0 -242
  695. package/dist/v2/blocks/operation-block/OperationBlock.vue2.js +0 -4
  696. package/dist/v2/blocks/operation-block/components/Header.vue.js +0 -7
  697. package/dist/v2/blocks/operation-block/components/Header.vue2.js +0 -100
  698. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +0 -40
  699. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +0 -31
  700. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +0 -107
  701. package/dist/v2/blocks/operation-block/helpers/build-request-security.js +0 -46
  702. package/dist/v2/blocks/operation-block/helpers/build-request.js +0 -70
  703. package/dist/v2/blocks/operation-block/helpers/de-serialize-parameter.js +0 -25
  704. package/dist/v2/blocks/operation-block/helpers/decode-buffer.js +0 -9
  705. package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.js +0 -14
  706. package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.js +0 -4
  707. package/dist/v2/blocks/operation-block/helpers/get-environment-variables.js +0 -7
  708. package/dist/v2/blocks/operation-block/helpers/get-example.js +0 -36
  709. package/dist/v2/blocks/operation-block/helpers/get-resolved-url.js +0 -17
  710. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js +0 -4
  711. package/dist/v2/blocks/operation-block/helpers/get-server-url.js +0 -12
  712. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.js +0 -31
  713. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.js +0 -43
  714. package/dist/v2/blocks/operation-block/helpers/response-cache.js +0 -12
  715. package/dist/v2/blocks/operation-block/helpers/send-request.js +0 -122
  716. package/dist/v2/blocks/operation-block/helpers/serialize-parameter.js +0 -49
  717. package/dist/v2/blocks/operation-block/helpers/validate-path-parameters.js +0 -17
  718. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +0 -56
  719. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue2.js +0 -4
  720. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +0 -30
  721. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue2.js +0 -4
  722. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +0 -7
  723. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +0 -227
  724. package/dist/v2/blocks/operation-code-sample/helpers/find-client.js +0 -22
  725. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +0 -27
  726. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +0 -40
  727. package/dist/v2/blocks/operation-code-sample/helpers/get-clients.js +0 -20
  728. package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.js +0 -4
  729. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +0 -302
  730. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +0 -28
  731. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.js +0 -10
  732. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +0 -67
  733. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +0 -66
  734. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -172
  735. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.js +0 -55
  736. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js +0 -18
  737. package/dist/v2/blocks/request-block/RequestBlock.vue.js +0 -7
  738. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +0 -347
  739. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +0 -7
  740. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +0 -191
  741. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +0 -84
  742. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +0 -4
  743. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +0 -135
  744. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue2.js +0 -4
  745. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +0 -78
  746. package/dist/v2/blocks/request-block/components/RequestParams.vue2.js +0 -4
  747. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +0 -7
  748. package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +0 -74
  749. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +0 -204
  750. package/dist/v2/blocks/request-block/components/RequestTableRow.vue2.js +0 -4
  751. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +0 -7
  752. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +0 -63
  753. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +0 -55
  754. package/dist/v2/blocks/request-block/helpers/files.js +0 -7
  755. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +0 -26
  756. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +0 -29
  757. package/dist/v2/blocks/request-block/helpers/get-parameter-content.js +0 -9
  758. package/dist/v2/blocks/request-block/helpers/get-parameter-schema.js +0 -6
  759. package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +0 -16
  760. package/dist/v2/blocks/request-block/helpers/group-by.js +0 -10
  761. package/dist/v2/blocks/request-block/helpers/is-param-disabled.js +0 -7
  762. package/dist/v2/blocks/request-block/helpers/validate-parameter.js +0 -32
  763. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +0 -7
  764. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +0 -180
  765. package/dist/v2/blocks/response-block/components/Headers.vue.js +0 -96
  766. package/dist/v2/blocks/response-block/components/Headers.vue2.js +0 -4
  767. package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +0 -7
  768. package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +0 -87
  769. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +0 -36
  770. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue2.js +0 -4
  771. package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.js +0 -14
  772. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js +0 -7
  773. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +0 -63
  774. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +0 -7
  775. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue2.js +0 -41
  776. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +0 -94
  777. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue2.js +0 -4
  778. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +0 -25
  779. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue2.js +0 -4
  780. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.js +0 -52
  781. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue3.js +0 -5
  782. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +0 -54
  783. package/dist/v2/blocks/response-block/components/ResponseCookies.vue2.js +0 -4
  784. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +0 -7
  785. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +0 -79
  786. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +0 -7
  787. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +0 -46
  788. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +0 -67
  789. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue2.js +0 -4
  790. package/dist/v2/blocks/response-block/helpers/extract-filename.js +0 -18
  791. package/dist/v2/blocks/response-block/helpers/get-content-length.js +0 -12
  792. package/dist/v2/blocks/response-block/helpers/media-types.js +0 -126
  793. package/dist/v2/blocks/response-block/helpers/parse-set-cookie.js +0 -12
  794. package/dist/v2/blocks/response-block/helpers/process-response-body.js +0 -16
  795. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +0 -7
  796. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +0 -208
  797. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +0 -7
  798. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +0 -95
  799. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js +0 -145
  800. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue2.js +0 -4
  801. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -38
  802. package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.js +0 -25
  803. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +0 -184
  804. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +0 -4
  805. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +0 -51
  806. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue2.js +0 -4
  807. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +0 -330
  808. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue2.js +0 -4
  809. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +0 -7
  810. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +0 -76
  811. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +0 -165
  812. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue3.js +0 -5
  813. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +0 -91
  814. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue2.js +0 -4
  815. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +0 -83
  816. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +0 -4
  817. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +0 -46
  818. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue2.js +0 -4
  819. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +0 -244
  820. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue2.js +0 -4
  821. package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.js +0 -97
  822. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +0 -135
  823. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +0 -35
  824. package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.js +0 -7
  825. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +0 -23
  826. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +0 -139
  827. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +0 -27
  828. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +0 -64
  829. package/dist/v2/components/callout/Callout.vue.js +0 -7
  830. package/dist/v2/components/callout/Callout.vue2.js +0 -43
  831. package/dist/v2/components/code-input/CodeInput.vue.js +0 -8
  832. package/dist/v2/components/code-input/CodeInput.vue2.js +0 -213
  833. package/dist/v2/components/code-input/code-variable-widget.js +0 -106
  834. package/dist/v2/components/data-table/DataTable.vue.js +0 -38
  835. package/dist/v2/components/data-table/DataTable.vue2.js +0 -4
  836. package/dist/v2/components/data-table/DataTableCell.vue.js +0 -26
  837. package/dist/v2/components/data-table/DataTableCell.vue2.js +0 -4
  838. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +0 -53
  839. package/dist/v2/components/data-table/DataTableCheckbox.vue2.js +0 -4
  840. package/dist/v2/components/data-table/DataTableHeader.vue.js +0 -18
  841. package/dist/v2/components/data-table/DataTableHeader.vue2.js +0 -4
  842. package/dist/v2/components/data-table/DataTableInput.vue.js +0 -7
  843. package/dist/v2/components/data-table/DataTableInput.vue2.js +0 -121
  844. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +0 -149
  845. package/dist/v2/components/data-table/DataTableInputSelect.vue2.js +0 -4
  846. package/dist/v2/components/data-table/DataTableRow.vue.js +0 -12
  847. package/dist/v2/components/data-table/DataTableText.vue.js +0 -23
  848. package/dist/v2/components/data-table/DataTableText.vue2.js +0 -4
  849. package/dist/v2/components/forms/ConfirmationForm.vue.js +0 -45
  850. package/dist/v2/components/forms/ConfirmationForm.vue2.js +0 -4
  851. package/dist/v2/components/layout/CollapsibleSection.vue.js +0 -89
  852. package/dist/v2/components/layout/CollapsibleSection.vue2.js +0 -4
  853. package/dist/v2/components/layout/ValueEmitter.vue.js +0 -21
  854. package/dist/v2/components/layout/ValueEmitter.vue2.js +0 -4
  855. package/dist/v2/components/modals/DeleteModal.vue.js +0 -31
  856. package/dist/v2/components/modals/DeleteModal.vue2.js +0 -4
  857. package/dist/v2/components/modals/ModalClientContainer.vue.js +0 -7
  858. package/dist/v2/components/modals/ModalClientContainer.vue2.js +0 -60
  859. package/dist/v2/components/resize/Resize.vue.js +0 -8
  860. package/dist/v2/components/resize/Resize.vue2.js +0 -36
  861. package/dist/v2/components/resize/use-split-resize.js +0 -57
  862. package/dist/v2/components/server/ServerDropdown.vue.js +0 -91
  863. package/dist/v2/components/server/ServerDropdown.vue2.js +0 -4
  864. package/dist/v2/components/server/ServerDropdownItem.vue.js +0 -7
  865. package/dist/v2/components/server/ServerDropdownItem.vue2.js +0 -49
  866. package/dist/v2/components/sidebar/Sidebar.vue.js +0 -115
  867. package/dist/v2/components/sidebar/Sidebar.vue2.js +0 -4
  868. package/dist/v2/components/sidebar/SidebarMenu.vue.js +0 -52
  869. package/dist/v2/components/sidebar/SidebarMenu.vue2.js +0 -4
  870. package/dist/v2/components/sidebar/SidebarToggle.vue.js +0 -52
  871. package/dist/v2/components/sidebar/SidebarToggle.vue2.js +0 -4
  872. package/dist/v2/features/app/App.vue.js +0 -152
  873. package/dist/v2/features/app/App.vue3.js +0 -5
  874. package/dist/v2/features/app/app-events.js +0 -251
  875. package/dist/v2/features/app/app-state.js +0 -415
  876. package/dist/v2/features/app/components/AppSidebar.vue.js +0 -7
  877. package/dist/v2/features/app/components/AppSidebar.vue2.js +0 -304
  878. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +0 -56
  879. package/dist/v2/features/app/components/CreateWorkspaceModal.vue2.js +0 -4
  880. package/dist/v2/features/app/components/DesktopTab.vue.js +0 -7
  881. package/dist/v2/features/app/components/DesktopTab.vue2.js +0 -134
  882. package/dist/v2/features/app/components/DesktopTabs.vue.js +0 -56
  883. package/dist/v2/features/app/components/DesktopTabs.vue2.js +0 -4
  884. package/dist/v2/features/app/components/DownloadAppButton.vue.js +0 -7
  885. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +0 -19
  886. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +0 -185
  887. package/dist/v2/features/app/components/SidebarItemMenu.vue2.js +0 -4
  888. package/dist/v2/features/app/components/SplashScreen.vue.js +0 -7
  889. package/dist/v2/features/app/components/SplashScreen.vue2.js +0 -18
  890. package/dist/v2/features/app/helpers/create-api-client-app.js +0 -36
  891. package/dist/v2/features/app/helpers/filter-workspaces.js +0 -5
  892. package/dist/v2/features/app/helpers/get-route-param.js +0 -9
  893. package/dist/v2/features/app/helpers/group-workspaces.js +0 -23
  894. package/dist/v2/features/app/helpers/routes.js +0 -157
  895. package/dist/v2/features/app/hooks/use-document-watcher.js +0 -66
  896. package/dist/v2/features/app/hooks/use-theme.js +0 -48
  897. package/dist/v2/features/collection/DocumentCollection.vue.js +0 -336
  898. package/dist/v2/features/collection/DocumentCollection.vue3.js +0 -5
  899. package/dist/v2/features/collection/OperationCollection.vue.js +0 -86
  900. package/dist/v2/features/collection/OperationCollection.vue2.js +0 -4
  901. package/dist/v2/features/collection/WorkspaceCollection.vue.js +0 -68
  902. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +0 -4
  903. package/dist/v2/features/collection/components/Authentication.vue.js +0 -7
  904. package/dist/v2/features/collection/components/Authentication.vue2.js +0 -154
  905. package/dist/v2/features/collection/components/Cookies.vue.js +0 -52
  906. package/dist/v2/features/collection/components/Cookies.vue2.js +0 -4
  907. package/dist/v2/features/collection/components/Editor/Editor.vue.js +0 -7
  908. package/dist/v2/features/collection/components/Editor/Editor.vue2.js +0 -344
  909. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js +0 -78
  910. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue2.js +0 -4
  911. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js +0 -83
  912. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue2.js +0 -4
  913. package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js +0 -10
  914. package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js +0 -5
  915. package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js +0 -5
  916. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js +0 -21
  917. package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js +0 -5
  918. package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js +0 -25
  919. package/dist/v2/features/collection/components/Environment.vue.js +0 -54
  920. package/dist/v2/features/collection/components/Environment.vue2.js +0 -4
  921. package/dist/v2/features/collection/components/Form.vue.js +0 -78
  922. package/dist/v2/features/collection/components/Form.vue2.js +0 -4
  923. package/dist/v2/features/collection/components/LabelInput.vue.js +0 -7
  924. package/dist/v2/features/collection/components/LabelInput.vue2.js +0 -35
  925. package/dist/v2/features/collection/components/Overview.vue.js +0 -7
  926. package/dist/v2/features/collection/components/Overview.vue2.js +0 -208
  927. package/dist/v2/features/collection/components/Servers.vue.js +0 -210
  928. package/dist/v2/features/collection/components/Servers.vue2.js +0 -4
  929. package/dist/v2/features/collection/components/Settings.vue.js +0 -61
  930. package/dist/v2/features/collection/components/Settings.vue2.js +0 -4
  931. package/dist/v2/features/collection/components/SyncConflictResolutionEditor.vue.js +0 -7
  932. package/dist/v2/features/collection/components/SyncConflictResolutionEditor.vue2.js +0 -136
  933. package/dist/v2/features/collection/components/Tabs.vue.js +0 -44
  934. package/dist/v2/features/collection/components/Tabs.vue2.js +0 -4
  935. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +0 -13
  936. package/dist/v2/features/command-palette/TheCommandPalette.vue.js +0 -7
  937. package/dist/v2/features/command-palette/TheCommandPalette.vue2.js +0 -152
  938. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +0 -48
  939. package/dist/v2/features/command-palette/components/CommandActionForm.vue2.js +0 -4
  940. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +0 -52
  941. package/dist/v2/features/command-palette/components/CommandActionInput.vue2.js +0 -4
  942. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +0 -211
  943. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue2.js +0 -4
  944. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +0 -182
  945. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue2.js +0 -4
  946. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js +0 -7
  947. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue2.js +0 -115
  948. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.js +0 -78
  949. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue2.js +0 -4
  950. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +0 -221
  951. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue2.js +0 -4
  952. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +0 -114
  953. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue2.js +0 -4
  954. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +0 -40
  955. package/dist/v2/features/command-palette/components/WatchModeToggle.vue2.js +0 -4
  956. package/dist/v2/features/command-palette/helpers/generate-unique-slug.js +0 -11
  957. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js +0 -31
  958. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +0 -11
  959. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +0 -76
  960. package/dist/v2/features/command-palette/helpers/get-postman-document-details.js +0 -18
  961. package/dist/v2/features/command-palette/helpers/import-document-to-workspace.js +0 -33
  962. package/dist/v2/features/command-palette/helpers/is-postman-collection.js +0 -11
  963. package/dist/v2/features/command-palette/helpers/load-document-from-source.js +0 -52
  964. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -139
  965. package/dist/v2/features/editor/config.js +0 -16
  966. package/dist/v2/features/editor/helpers/configure-language-support.js +0 -39
  967. package/dist/v2/features/editor/helpers/ensure-monaco-environment.js +0 -20
  968. package/dist/v2/features/editor/helpers/json/create-json-model.js +0 -19
  969. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js +0 -9
  970. package/dist/v2/features/editor/helpers/json/json-ast.js +0 -24
  971. package/dist/v2/features/editor/helpers/json/json-pointer-links.js +0 -72
  972. package/dist/v2/features/editor/helpers/json/json-pointer-path.js +0 -21
  973. package/dist/v2/features/editor/helpers/range-to-whole-line.js +0 -8
  974. package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.js +0 -56
  975. package/dist/v2/features/editor/helpers/theme/load-css-variables.js +0 -21
  976. package/dist/v2/features/editor/helpers/yaml/create-yaml-model.js +0 -19
  977. package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.js +0 -50
  978. package/dist/v2/features/editor/hooks/use-editor-markers.js +0 -34
  979. package/dist/v2/features/editor/hooks/use-editor.js +0 -107
  980. package/dist/v2/features/editor/hooks/use-json-pointer-link-support.js +0 -27
  981. package/dist/v2/features/editor/hooks/use-three-way-merge-editor.js +0 -316
  982. package/dist/v2/features/editor/schemas/openapi-3.1-schema.json.js +0 -25
  983. package/dist/v2/features/environments/EnvironmentsList.vue.js +0 -68
  984. package/dist/v2/features/environments/EnvironmentsList.vue2.js +0 -4
  985. package/dist/v2/features/environments/components/Environment.vue.js +0 -66
  986. package/dist/v2/features/environments/components/Environment.vue2.js +0 -4
  987. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +0 -121
  988. package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +0 -4
  989. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +0 -85
  990. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +0 -4
  991. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +0 -53
  992. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +0 -4
  993. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +0 -109
  994. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue2.js +0 -4
  995. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +0 -7
  996. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +0 -136
  997. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +0 -7
  998. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +0 -189
  999. package/dist/v2/features/modal/Modal.vue.js +0 -122
  1000. package/dist/v2/features/modal/Modal.vue2.js +0 -4
  1001. package/dist/v2/features/modal/helpers/create-api-client-modal.js +0 -89
  1002. package/dist/v2/features/modal/helpers/map-hidden-clients-config.js +0 -36
  1003. package/dist/v2/features/modal/helpers/resolve-route-parameters.js +0 -29
  1004. package/dist/v2/features/modal/helpers/restore-workspace-state.js +0 -36
  1005. package/dist/v2/features/modal/hooks/use-modal-sidebar.js +0 -93
  1006. package/dist/v2/features/modal/modal-events.js +0 -44
  1007. package/dist/v2/features/operation/Operation.vue.js +0 -126
  1008. package/dist/v2/features/operation/Operation.vue2.js +0 -4
  1009. package/dist/v2/features/operation/helpers/combine-params.js +0 -14
  1010. package/dist/v2/features/operation/helpers/get-security-requirements.js +0 -4
  1011. package/dist/v2/features/operation/helpers/get-selected-security.js +0 -18
  1012. package/dist/v2/features/operation/helpers/get-selected-server.js +0 -4
  1013. package/dist/v2/features/search/helpers/create-fuse-instance.js +0 -43
  1014. package/dist/v2/features/search/helpers/create-search-index.js +0 -63
  1015. package/dist/v2/features/search/hooks/use-search-index.js +0 -18
  1016. package/dist/v2/features/settings/CollectionSettings.vue.js +0 -275
  1017. package/dist/v2/features/settings/CollectionSettings.vue2.js +0 -4
  1018. package/dist/v2/features/settings/DocumentSettings.vue.js +0 -115
  1019. package/dist/v2/features/settings/DocumentSettings.vue2.js +0 -4
  1020. package/dist/v2/features/settings/components/Appearance.vue.js +0 -88
  1021. package/dist/v2/features/settings/components/Appearance.vue2.js +0 -4
  1022. package/dist/v2/features/settings/components/Section.vue.js +0 -35
  1023. package/dist/v2/features/settings/components/Section.vue2.js +0 -4
  1024. package/dist/v2/features/settings/helpers/get-theme-colors.js +0 -16
  1025. package/dist/v2/helpers/drag-handle-factory.js +0 -120
  1026. package/dist/v2/helpers/generate-location-id.js +0 -10
  1027. package/dist/v2/helpers/get-active-environment.js +0 -22
  1028. package/dist/v2/helpers/get-active-proxy-url.js +0 -5
  1029. package/dist/v2/helpers/get-servers.js +0 -66
  1030. package/dist/v2/helpers/get-tab-details.js +0 -34
  1031. package/dist/v2/helpers/handle-hotkeys.js +0 -54
  1032. package/dist/v2/helpers/is-url.js +0 -5
  1033. package/dist/v2/helpers/slugify.js +0 -4
  1034. package/dist/v2/helpers/storage.js +0 -16
  1035. package/dist/v2/hooks/use-color-mode.js +0 -24
  1036. package/dist/v2/hooks/use-global-hot-keys.js +0 -11
  1037. package/dist/v2/hooks/use-scroll-lock.js +0 -21
  1038. package/dist/v2/workspace-events.js +0 -252
  1039. package/dist/views/Collection/Collection.vue.js +0 -4
  1040. package/dist/views/Collection/Collection.vue2.js +0 -49
  1041. package/dist/views/Collection/CollectionAuthentication.vue.js +0 -7
  1042. package/dist/views/Collection/CollectionAuthentication.vue2.js +0 -56
  1043. package/dist/views/Collection/CollectionCookies.vue.js +0 -4
  1044. package/dist/views/Collection/CollectionCookies.vue2.js +0 -16
  1045. package/dist/views/Collection/CollectionEnvironment.vue.js +0 -5
  1046. package/dist/views/Collection/CollectionEnvironment.vue2.js +0 -229
  1047. package/dist/views/Collection/CollectionInfoForm.vue.js +0 -7
  1048. package/dist/views/Collection/CollectionInfoForm.vue2.js +0 -63
  1049. package/dist/views/Collection/CollectionNavigation.vue.js +0 -133
  1050. package/dist/views/Collection/CollectionNavigation.vue2.js +0 -4
  1051. package/dist/views/Collection/CollectionOverview.vue.js +0 -4
  1052. package/dist/views/Collection/CollectionOverview.vue2.js +0 -34
  1053. package/dist/views/Collection/CollectionScripts.vue.js +0 -4
  1054. package/dist/views/Collection/CollectionScripts.vue2.js +0 -16
  1055. package/dist/views/Collection/CollectionServerForm.vue.js +0 -75
  1056. package/dist/views/Collection/CollectionServerForm.vue2.js +0 -4
  1057. package/dist/views/Collection/CollectionServers.vue.js +0 -4
  1058. package/dist/views/Collection/CollectionServers.vue2.js +0 -94
  1059. package/dist/views/Collection/CollectionSettings.vue.js +0 -4
  1060. package/dist/views/Collection/CollectionSettings.vue2.js +0 -118
  1061. package/dist/views/Collection/CollectionSync.vue.js +0 -4
  1062. package/dist/views/Collection/CollectionSync.vue2.js +0 -16
  1063. package/dist/views/Collection/components/EnvironmentForm.vue.js +0 -7
  1064. package/dist/views/Collection/components/EnvironmentForm.vue2.js +0 -270
  1065. package/dist/views/Collection/components/MarkdownInput.vue.js +0 -7
  1066. package/dist/views/Collection/components/MarkdownInput.vue2.js +0 -100
  1067. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +0 -50
  1068. package/dist/views/Components/CodeSnippet/CodeSnippet.vue2.js +0 -4
  1069. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +0 -62
  1070. package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +0 -82
  1071. package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +0 -30
  1072. package/dist/views/Cookies/CookieForm.vue.js +0 -34
  1073. package/dist/views/Cookies/CookieForm.vue2.js +0 -4
  1074. package/dist/views/Cookies/CookieModal.vue.js +0 -7
  1075. package/dist/views/Cookies/CookieModal.vue2.js +0 -88
  1076. package/dist/views/Cookies/Cookies.vue.js +0 -4
  1077. package/dist/views/Cookies/Cookies.vue2.js +0 -162
  1078. package/dist/views/Environment/Environment.vue.js +0 -4
  1079. package/dist/views/Environment/Environment.vue2.js +0 -402
  1080. package/dist/views/Environment/EnvironmentColorModal.vue.js +0 -42
  1081. package/dist/views/Environment/EnvironmentColorModal.vue2.js +0 -4
  1082. package/dist/views/Environment/EnvironmentColors.vue.js +0 -118
  1083. package/dist/views/Environment/EnvironmentColors.vue2.js +0 -4
  1084. package/dist/views/Environment/EnvironmentModal.vue.js +0 -131
  1085. package/dist/views/Environment/EnvironmentModal.vue2.js +0 -4
  1086. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +0 -129
  1087. package/dist/views/Environment/EnvironmentVariableDropdown.vue2.js +0 -4
  1088. package/dist/views/Environment/handle-drag.js +0 -32
  1089. package/dist/views/Request/Request.vue.js +0 -7
  1090. package/dist/views/Request/Request.vue2.js +0 -105
  1091. package/dist/views/Request/RequestRoot.vue.js +0 -7
  1092. package/dist/views/Request/RequestRoot.vue2.js +0 -123
  1093. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +0 -52
  1094. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue2.js +0 -4
  1095. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +0 -246
  1096. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue2.js +0 -4
  1097. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +0 -135
  1098. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue2.js +0 -4
  1099. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +0 -7
  1100. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +0 -209
  1101. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +0 -7
  1102. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +0 -116
  1103. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +0 -50
  1104. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue2.js +0 -4
  1105. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +0 -219
  1106. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +0 -4
  1107. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.js +0 -28
  1108. package/dist/views/Request/RequestSection/RequestBody.vue.js +0 -7
  1109. package/dist/views/Request/RequestSection/RequestBody.vue2.js +0 -451
  1110. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +0 -7
  1111. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +0 -170
  1112. package/dist/views/Request/RequestSection/RequestParams.vue.js +0 -162
  1113. package/dist/views/Request/RequestSection/RequestParams.vue2.js +0 -4
  1114. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +0 -96
  1115. package/dist/views/Request/RequestSection/RequestPathParams.vue2.js +0 -4
  1116. package/dist/views/Request/RequestSection/RequestSection.vue.js +0 -7
  1117. package/dist/views/Request/RequestSection/RequestSection.vue2.js +0 -247
  1118. package/dist/views/Request/RequestSection/RequestTable.vue.js +0 -7
  1119. package/dist/views/Request/RequestSection/RequestTable.vue2.js +0 -227
  1120. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +0 -7
  1121. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +0 -61
  1122. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +0 -29
  1123. package/dist/views/Request/RequestSection/helpers/getting-started.js +0 -13
  1124. package/dist/views/Request/RequestSection/helpers/update-scheme.js +0 -16
  1125. package/dist/views/Request/RequestSidebar.vue.js +0 -7
  1126. package/dist/views/Request/RequestSidebar.vue2.js +0 -341
  1127. package/dist/views/Request/RequestSidebarItem.vue.js +0 -8
  1128. package/dist/views/Request/RequestSidebarItem.vue2.js +0 -464
  1129. package/dist/views/Request/RequestSidebarItemMenu.vue.js +0 -7
  1130. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +0 -236
  1131. package/dist/views/Request/RequestSubpageHeader.vue.js +0 -7
  1132. package/dist/views/Request/RequestSubpageHeader.vue2.js +0 -79
  1133. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +0 -96
  1134. package/dist/views/Request/ResponseSection/RequestHeaders.vue2.js +0 -4
  1135. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +0 -7
  1136. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +0 -83
  1137. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +0 -36
  1138. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue2.js +0 -4
  1139. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +0 -14
  1140. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +0 -7
  1141. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +0 -63
  1142. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +0 -7
  1143. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +0 -42
  1144. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +0 -74
  1145. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue2.js +0 -4
  1146. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +0 -25
  1147. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue2.js +0 -4
  1148. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +0 -50
  1149. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue3.js +0 -5
  1150. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +0 -51
  1151. package/dist/views/Request/ResponseSection/ResponseCookies.vue2.js +0 -4
  1152. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +0 -7
  1153. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +0 -103
  1154. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +0 -96
  1155. package/dist/views/Request/ResponseSection/ResponseHeaders.vue2.js +0 -4
  1156. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +0 -7
  1157. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +0 -38
  1158. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +0 -67
  1159. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue2.js +0 -4
  1160. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +0 -7
  1161. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +0 -189
  1162. package/dist/views/Request/components/WorkspaceDropdown.vue.js +0 -182
  1163. package/dist/views/Request/components/WorkspaceDropdown.vue2.js +0 -4
  1164. package/dist/views/Request/consts/mediaTypes.js +0 -131
  1165. package/dist/views/Request/consts/new-auth-options.js +0 -100
  1166. package/dist/views/Request/handle-drag.js +0 -42
  1167. package/dist/views/Request/hooks/useOpenApiWatcher.js +0 -57
  1168. package/dist/views/Request/libs/auth.js +0 -52
  1169. package/dist/views/Request/libs/oauth2.js +0 -127
  1170. package/dist/views/Request/libs/request.js +0 -40
  1171. package/dist/views/Request/libs/watch-mode.js +0 -337
  1172. package/dist/views/Settings/Settings.vue.js +0 -4
  1173. package/dist/views/Settings/Settings.vue2.js +0 -29
  1174. package/dist/views/Settings/SettingsGeneral.vue.js +0 -286
  1175. package/dist/views/Settings/SettingsGeneral.vue2.js +0 -4
  1176. package/dist/views/Settings/components/SettingsAppearance.vue.js +0 -85
  1177. package/dist/views/Settings/components/SettingsAppearance.vue2.js +0 -4
  1178. package/dist/views/Settings/components/SettingsSection.vue.js +0 -24
  1179. package/dist/views/Settings/components/SettingsSection.vue2.js +0 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Editor-BomsGWHx.js","names":[],"sources":["../src/v2/features/editor/helpers/json/json-ast.ts","../src/v2/features/editor/helpers/json/get-json-ast-node-from-path.ts","../src/v2/features/editor/schemas/openapi-3.1-schema.json","../src/v2/features/editor/helpers/configure-language-support.ts","../src/v2/features/editor/helpers/json/create-json-model.ts","../src/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.ts","../src/v2/features/editor/helpers/yaml/create-yaml-model.ts","../src/v2/features/editor/hooks/use-editor-markers.ts","../src/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue","../src/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue","../src/v2/features/collection/components/Editor/components/EditorSavePanel.vue","../src/v2/features/collection/components/Editor/components/EditorSavePanel.vue","../src/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.ts","../src/v2/features/collection/components/Editor/helpers/get-operation-context.ts","../src/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.ts","../src/v2/features/collection/components/Editor/helpers/parse-editor-object.ts","../src/v2/features/collection/components/Editor/helpers/stringify-document.ts","../src/v2/features/collection/components/Editor/hooks/use-editor-state.ts","../src/v2/features/collection/components/Editor/Editor.vue","../src/v2/features/collection/components/Editor/Editor.vue"],"sourcesContent":["import type * as monaco from 'monaco-editor'\n\nexport type JsonPath = readonly (string | number)[]\n\n/**\n * Traverses the AST of a JSON document to find the node at the provided JsonPath.\n * Returns undefined if the path does not exist in the AST.\n *\n * @param node - The root AST node to begin traversal from.\n * @param path - The path to traverse within the AST, as an array of keys/indices.\n * @returns The AST node at the specified path, or undefined if not found.\n */\nexport const getJsonAstNodeAtPath = (\n node: monaco.languages.json.ASTNode | undefined,\n path: JsonPath,\n): monaco.languages.json.ASTNode | undefined => {\n let current = node\n\n for (const segment of path) {\n if (!current) {\n // Path does not exist in the AST.\n return undefined\n }\n\n if (current.type === 'object') {\n // Traverse object properties using the segment as a key.\n const key = String(segment)\n const prop = current.properties.find((p) => p.keyNode.value === key)\n current = prop?.valueNode\n continue\n }\n\n if (current.type === 'array') {\n // Traverse array items using the segment as an index.\n const index = typeof segment === 'number' ? segment : Number.parseInt(String(segment), 10)\n if (!Number.isFinite(index) || index < 0 || index >= current.items.length) {\n // Invalid index or out-of-bounds.\n return undefined\n }\n current = current.items[index]\n continue\n }\n\n // If current node can't have children referenced by the path, return undefined.\n return undefined\n }\n\n // Return the found node or undefined if not found.\n return current\n}\n","import * as monaco from 'monaco-editor'\n\nimport type { JsonPath } from './json-ast'\nimport { getJsonAstNodeAtPath } from './json-ast'\n\n/**\n * Retrieves a JSON AST node from a Monaco editor model at the specified JSON path.\n *\n * Utilizes Monaco's JSON worker to parse the document and returns the AST node\n * located at the given path, or null if not found.\n *\n * @param model - The Monaco editor text model representing the JSON document.\n * @param path - The JSON path to locate the AST node.\n * @returns A promise resolving to the AST node at the path, or null if not found.\n */\nexport const getJsonAstNodeFromPath = async (\n model: monaco.editor.ITextModel,\n path: JsonPath,\n): Promise<monaco.languages.json.ASTNode | null> => {\n const worker = await monaco.languages.json.getWorker()\n const jsonWorker = await worker(model.uri)\n\n // Monaco's JSON worker keeps an internal (incremental) AST; no JSON.parse needed.\n const jsonDocument = await jsonWorker.parseJSONDocument(model.uri.toString())\n if (!jsonDocument?.root) {\n return null\n }\n\n return getJsonAstNodeAtPath(jsonDocument.root, path) ?? null\n}\n","{\n \"$id\": \"https://spec.openapis.org/oas/3.1/schema/2025-11-23\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"description\": \"The description of OpenAPI v3.1.x Documents without Schema Object validation\",\n \"type\": \"object\",\n \"properties\": {\n \"openapi\": {\n \"type\": \"string\",\n \"pattern\": \"^3\\\\.1\\\\.\\\\d+(-.+)?$\"\n },\n \"info\": {\n \"$ref\": \"#/$defs/info\"\n },\n \"jsonSchemaDialect\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\",\n \"default\": \"https://spec.openapis.org/oas/3.1/dialect/2024-11-10\"\n },\n \"servers\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/server\"\n },\n \"default\": [\n {\n \"url\": \"/\"\n }\n ]\n },\n \"paths\": {\n \"$ref\": \"#/$defs/paths\"\n },\n \"webhooks\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/path-item\"\n }\n },\n \"components\": {\n \"$ref\": \"#/$defs/components\"\n },\n \"security\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/security-requirement\"\n }\n },\n \"tags\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/tag\"\n }\n },\n \"externalDocs\": {\n \"$ref\": \"#/$defs/external-documentation\"\n }\n },\n \"required\": [\"openapi\", \"info\"],\n \"anyOf\": [\n {\n \"required\": [\"paths\"]\n },\n {\n \"required\": [\"components\"]\n },\n {\n \"required\": [\"webhooks\"]\n }\n ],\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false,\n \"$defs\": {\n \"info\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#info-object\",\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\"\n },\n \"summary\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"termsOfService\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"contact\": {\n \"$ref\": \"#/$defs/contact\"\n },\n \"license\": {\n \"$ref\": \"#/$defs/license\"\n },\n \"version\": {\n \"type\": \"string\"\n }\n },\n \"required\": [\"title\", \"version\"],\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"contact\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#contact-object\",\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\"\n },\n \"url\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"email\": {\n \"type\": \"string\",\n \"format\": \"email\"\n }\n },\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"license\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#license-object\",\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\"\n },\n \"identifier\": {\n \"type\": \"string\"\n },\n \"url\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n }\n },\n \"required\": [\"name\"],\n \"dependentSchemas\": {\n \"identifier\": {\n \"not\": {\n \"required\": [\"url\"]\n }\n }\n },\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"server\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#server-object\",\n \"type\": \"object\",\n \"properties\": {\n \"url\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"variables\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/server-variable\"\n }\n }\n },\n \"required\": [\"url\"],\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"server-variable\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#server-variable-object\",\n \"type\": \"object\",\n \"properties\": {\n \"enum\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"minItems\": 1\n },\n \"default\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"required\": [\"default\"],\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"components\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#components-object\",\n \"type\": \"object\",\n \"properties\": {\n \"schemas\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$dynamicRef\": \"#meta\"\n }\n },\n \"responses\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/response-or-reference\"\n }\n },\n \"parameters\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/parameter-or-reference\"\n }\n },\n \"examples\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/example-or-reference\"\n }\n },\n \"requestBodies\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/request-body-or-reference\"\n }\n },\n \"headers\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/header-or-reference\"\n }\n },\n \"securitySchemes\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/security-scheme-or-reference\"\n }\n },\n \"links\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/link-or-reference\"\n }\n },\n \"callbacks\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/callbacks-or-reference\"\n }\n },\n \"pathItems\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/path-item\"\n }\n }\n },\n \"patternProperties\": {\n \"^(?:schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$\": {\n \"$comment\": \"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected\",\n \"propertyNames\": {\n \"pattern\": \"^[a-zA-Z0-9._-]+$\"\n }\n }\n },\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"paths\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#paths-object\",\n \"type\": \"object\",\n \"patternProperties\": {\n \"^/\": {\n \"$ref\": \"#/$defs/path-item\"\n },\n \"^x-\": true\n },\n \"additionalProperties\": false\n },\n \"path-item\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#path-item-object\",\n \"type\": \"object\",\n \"properties\": {\n \"$ref\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"summary\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"servers\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/server\"\n }\n },\n \"parameters\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/parameter-or-reference\"\n }\n },\n \"get\": {\n \"$ref\": \"#/$defs/operation\"\n },\n \"put\": {\n \"$ref\": \"#/$defs/operation\"\n },\n \"post\": {\n \"$ref\": \"#/$defs/operation\"\n },\n \"delete\": {\n \"$ref\": \"#/$defs/operation\"\n },\n \"options\": {\n \"$ref\": \"#/$defs/operation\"\n },\n \"head\": {\n \"$ref\": \"#/$defs/operation\"\n },\n \"patch\": {\n \"$ref\": \"#/$defs/operation\"\n },\n \"trace\": {\n \"$ref\": \"#/$defs/operation\"\n }\n },\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"operation\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#operation-object\",\n \"type\": \"object\",\n \"properties\": {\n \"tags\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"summary\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"externalDocs\": {\n \"$ref\": \"#/$defs/external-documentation\"\n },\n \"operationId\": {\n \"type\": \"string\"\n },\n \"parameters\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/parameter-or-reference\"\n }\n },\n \"requestBody\": {\n \"$ref\": \"#/$defs/request-body-or-reference\"\n },\n \"responses\": {\n \"$ref\": \"#/$defs/responses\"\n },\n \"callbacks\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/callbacks-or-reference\"\n }\n },\n \"deprecated\": {\n \"default\": false,\n \"type\": \"boolean\"\n },\n \"security\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/security-requirement\"\n }\n },\n \"servers\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/server\"\n }\n }\n },\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"external-documentation\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#external-documentation-object\",\n \"type\": \"object\",\n \"properties\": {\n \"description\": {\n \"type\": \"string\"\n },\n \"url\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n }\n },\n \"required\": [\"url\"],\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"parameter\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#parameter-object\",\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\"\n },\n \"in\": {\n \"enum\": [\"query\", \"header\", \"path\", \"cookie\"]\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"required\": {\n \"default\": false,\n \"type\": \"boolean\"\n },\n \"deprecated\": {\n \"default\": false,\n \"type\": \"boolean\"\n },\n \"schema\": {\n \"$dynamicRef\": \"#meta\"\n },\n \"content\": {\n \"$ref\": \"#/$defs/content\",\n \"minProperties\": 1,\n \"maxProperties\": 1\n }\n },\n \"required\": [\"name\", \"in\"],\n \"oneOf\": [\n {\n \"required\": [\"schema\"]\n },\n {\n \"required\": [\"content\"]\n }\n ],\n \"if\": {\n \"properties\": {\n \"in\": {\n \"const\": \"query\"\n }\n }\n },\n \"then\": {\n \"properties\": {\n \"allowEmptyValue\": {\n \"default\": false,\n \"type\": \"boolean\"\n }\n }\n },\n \"dependentSchemas\": {\n \"schema\": {\n \"properties\": {\n \"style\": {\n \"type\": \"string\"\n },\n \"explode\": {\n \"type\": \"boolean\"\n }\n },\n \"allOf\": [\n {\n \"$ref\": \"#/$defs/examples\"\n },\n {\n \"$ref\": \"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path\"\n },\n {\n \"$ref\": \"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header\"\n },\n {\n \"$ref\": \"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query\"\n },\n {\n \"$ref\": \"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie\"\n }\n ],\n \"$defs\": {\n \"styles-for-path\": {\n \"if\": {\n \"properties\": {\n \"in\": {\n \"const\": \"path\"\n }\n }\n },\n \"then\": {\n \"properties\": {\n \"name\": {\n \"pattern\": \"^[^{}]+$\"\n },\n \"style\": {\n \"default\": \"simple\",\n \"enum\": [\"matrix\", \"label\", \"simple\"]\n },\n \"required\": {\n \"const\": true\n },\n \"explode\": {\n \"default\": false\n }\n },\n \"required\": [\"required\"]\n }\n },\n \"styles-for-header\": {\n \"if\": {\n \"properties\": {\n \"in\": {\n \"const\": \"header\"\n }\n }\n },\n \"then\": {\n \"properties\": {\n \"style\": {\n \"default\": \"simple\",\n \"const\": \"simple\"\n },\n \"explode\": {\n \"default\": false\n }\n }\n }\n },\n \"styles-for-query\": {\n \"if\": {\n \"properties\": {\n \"in\": {\n \"const\": \"query\"\n }\n }\n },\n \"then\": {\n \"properties\": {\n \"style\": {\n \"default\": \"form\",\n \"enum\": [\"form\", \"spaceDelimited\", \"pipeDelimited\", \"deepObject\"]\n },\n \"allowReserved\": {\n \"default\": false,\n \"type\": \"boolean\"\n }\n },\n \"$ref\": \"#/$defs/explode-for-form\"\n }\n },\n \"styles-for-cookie\": {\n \"if\": {\n \"properties\": {\n \"in\": {\n \"const\": \"cookie\"\n }\n }\n },\n \"then\": {\n \"properties\": {\n \"style\": {\n \"default\": \"form\",\n \"const\": \"form\"\n }\n },\n \"$ref\": \"#/$defs/explode-for-form\"\n }\n }\n }\n }\n },\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"parameter-or-reference\": {\n \"if\": {\n \"type\": \"object\",\n \"required\": [\"$ref\"]\n },\n \"then\": {\n \"$ref\": \"#/$defs/reference\"\n },\n \"else\": {\n \"$ref\": \"#/$defs/parameter\"\n }\n },\n \"request-body\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#request-body-object\",\n \"type\": \"object\",\n \"properties\": {\n \"description\": {\n \"type\": \"string\"\n },\n \"content\": {\n \"$ref\": \"#/$defs/content\"\n },\n \"required\": {\n \"default\": false,\n \"type\": \"boolean\"\n }\n },\n \"required\": [\"content\"],\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"request-body-or-reference\": {\n \"if\": {\n \"type\": \"object\",\n \"required\": [\"$ref\"]\n },\n \"then\": {\n \"$ref\": \"#/$defs/reference\"\n },\n \"else\": {\n \"$ref\": \"#/$defs/request-body\"\n }\n },\n \"content\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#fixed-fields-10\",\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/media-type\"\n },\n \"propertyNames\": {\n \"format\": \"media-range\"\n }\n },\n \"media-type\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#media-type-object\",\n \"type\": \"object\",\n \"properties\": {\n \"schema\": {\n \"$dynamicRef\": \"#meta\"\n },\n \"encoding\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/encoding\"\n }\n }\n },\n \"allOf\": [\n {\n \"$ref\": \"#/$defs/specification-extensions\"\n },\n {\n \"$ref\": \"#/$defs/examples\"\n }\n ],\n \"unevaluatedProperties\": false\n },\n \"encoding\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#encoding-object\",\n \"type\": \"object\",\n \"properties\": {\n \"contentType\": {\n \"type\": \"string\",\n \"format\": \"media-range\"\n },\n \"headers\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/header-or-reference\"\n }\n },\n \"style\": {\n \"enum\": [\"form\", \"spaceDelimited\", \"pipeDelimited\", \"deepObject\"]\n },\n \"explode\": {\n \"type\": \"boolean\"\n },\n \"allowReserved\": {\n \"type\": \"boolean\"\n }\n },\n \"dependentSchemas\": {\n \"style\": {\n \"properties\": {\n \"allowReserved\": {\n \"default\": false\n }\n },\n \"$ref\": \"#/$defs/explode-for-form\"\n },\n \"explode\": {\n \"properties\": {\n \"style\": {\n \"default\": \"form\"\n },\n \"allowReserved\": {\n \"default\": false\n }\n }\n },\n \"allowReserved\": {\n \"properties\": {\n \"style\": {\n \"default\": \"form\"\n }\n },\n \"$ref\": \"#/$defs/explode-for-form\"\n }\n },\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"responses\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#responses-object\",\n \"type\": \"object\",\n \"properties\": {\n \"default\": {\n \"$ref\": \"#/$defs/response-or-reference\"\n }\n },\n \"patternProperties\": {\n \"^[1-5](?:[0-9]{2}|XX)$\": {\n \"$ref\": \"#/$defs/response-or-reference\"\n }\n },\n \"minProperties\": 1,\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false,\n \"if\": {\n \"$comment\": \"either default, or at least one response code property must exist\",\n \"patternProperties\": {\n \"^[1-5](?:[0-9]{2}|XX)$\": false\n }\n },\n \"then\": {\n \"required\": [\"default\"]\n }\n },\n \"response\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#response-object\",\n \"type\": \"object\",\n \"properties\": {\n \"description\": {\n \"type\": \"string\"\n },\n \"headers\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/header-or-reference\"\n }\n },\n \"content\": {\n \"$ref\": \"#/$defs/content\"\n },\n \"links\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/link-or-reference\"\n }\n }\n },\n \"required\": [\"description\"],\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"response-or-reference\": {\n \"if\": {\n \"type\": \"object\",\n \"required\": [\"$ref\"]\n },\n \"then\": {\n \"$ref\": \"#/$defs/reference\"\n },\n \"else\": {\n \"$ref\": \"#/$defs/response\"\n }\n },\n \"callbacks\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#callback-object\",\n \"type\": \"object\",\n \"$ref\": \"#/$defs/specification-extensions\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/path-item\"\n }\n },\n \"callbacks-or-reference\": {\n \"if\": {\n \"type\": \"object\",\n \"required\": [\"$ref\"]\n },\n \"then\": {\n \"$ref\": \"#/$defs/reference\"\n },\n \"else\": {\n \"$ref\": \"#/$defs/callbacks\"\n }\n },\n \"example\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#example-object\",\n \"type\": \"object\",\n \"properties\": {\n \"summary\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"value\": true,\n \"externalValue\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n }\n },\n \"not\": {\n \"required\": [\"value\", \"externalValue\"]\n },\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"example-or-reference\": {\n \"if\": {\n \"type\": \"object\",\n \"required\": [\"$ref\"]\n },\n \"then\": {\n \"$ref\": \"#/$defs/reference\"\n },\n \"else\": {\n \"$ref\": \"#/$defs/example\"\n }\n },\n \"link\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#link-object\",\n \"type\": \"object\",\n \"properties\": {\n \"operationRef\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"operationId\": {\n \"type\": \"string\"\n },\n \"parameters\": {\n \"$ref\": \"#/$defs/map-of-strings\"\n },\n \"requestBody\": true,\n \"description\": {\n \"type\": \"string\"\n },\n \"server\": {\n \"$ref\": \"#/$defs/server\"\n }\n },\n \"oneOf\": [\n {\n \"required\": [\"operationRef\"]\n },\n {\n \"required\": [\"operationId\"]\n }\n ],\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"link-or-reference\": {\n \"if\": {\n \"type\": \"object\",\n \"required\": [\"$ref\"]\n },\n \"then\": {\n \"$ref\": \"#/$defs/reference\"\n },\n \"else\": {\n \"$ref\": \"#/$defs/link\"\n }\n },\n \"header\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#header-object\",\n \"type\": \"object\",\n \"properties\": {\n \"description\": {\n \"type\": \"string\"\n },\n \"required\": {\n \"default\": false,\n \"type\": \"boolean\"\n },\n \"deprecated\": {\n \"default\": false,\n \"type\": \"boolean\"\n },\n \"schema\": {\n \"$dynamicRef\": \"#meta\"\n },\n \"content\": {\n \"$ref\": \"#/$defs/content\",\n \"minProperties\": 1,\n \"maxProperties\": 1\n }\n },\n \"oneOf\": [\n {\n \"required\": [\"schema\"]\n },\n {\n \"required\": [\"content\"]\n }\n ],\n \"dependentSchemas\": {\n \"schema\": {\n \"properties\": {\n \"style\": {\n \"default\": \"simple\",\n \"const\": \"simple\"\n },\n \"explode\": {\n \"default\": false,\n \"type\": \"boolean\"\n }\n },\n \"$ref\": \"#/$defs/examples\"\n }\n },\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"header-or-reference\": {\n \"if\": {\n \"type\": \"object\",\n \"required\": [\"$ref\"]\n },\n \"then\": {\n \"$ref\": \"#/$defs/reference\"\n },\n \"else\": {\n \"$ref\": \"#/$defs/header\"\n }\n },\n \"tag\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#tag-object\",\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"externalDocs\": {\n \"$ref\": \"#/$defs/external-documentation\"\n }\n },\n \"required\": [\"name\"],\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"reference\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#reference-object\",\n \"type\": \"object\",\n \"properties\": {\n \"$ref\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"summary\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n }\n }\n },\n \"schema\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#schema-object\",\n \"$dynamicAnchor\": \"meta\",\n \"type\": [\"object\", \"boolean\"]\n },\n \"security-scheme\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#security-scheme-object\",\n \"type\": \"object\",\n \"properties\": {\n \"type\": {\n \"enum\": [\"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\"]\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"required\": [\"type\"],\n \"allOf\": [\n {\n \"$ref\": \"#/$defs/specification-extensions\"\n },\n {\n \"$ref\": \"#/$defs/security-scheme/$defs/type-apikey\"\n },\n {\n \"$ref\": \"#/$defs/security-scheme/$defs/type-http\"\n },\n {\n \"$ref\": \"#/$defs/security-scheme/$defs/type-http-bearer\"\n },\n {\n \"$ref\": \"#/$defs/security-scheme/$defs/type-oauth2\"\n },\n {\n \"$ref\": \"#/$defs/security-scheme/$defs/type-oidc\"\n }\n ],\n \"unevaluatedProperties\": false,\n \"$defs\": {\n \"type-apikey\": {\n \"if\": {\n \"properties\": {\n \"type\": {\n \"const\": \"apiKey\"\n }\n }\n },\n \"then\": {\n \"properties\": {\n \"name\": {\n \"type\": \"string\"\n },\n \"in\": {\n \"enum\": [\"query\", \"header\", \"cookie\"]\n }\n },\n \"required\": [\"name\", \"in\"]\n }\n },\n \"type-http\": {\n \"if\": {\n \"properties\": {\n \"type\": {\n \"const\": \"http\"\n }\n }\n },\n \"then\": {\n \"properties\": {\n \"scheme\": {\n \"type\": \"string\"\n }\n },\n \"required\": [\"scheme\"]\n }\n },\n \"type-http-bearer\": {\n \"if\": {\n \"properties\": {\n \"type\": {\n \"const\": \"http\"\n },\n \"scheme\": {\n \"type\": \"string\",\n \"pattern\": \"^[Bb][Ee][Aa][Rr][Ee][Rr]$\"\n }\n },\n \"required\": [\"type\", \"scheme\"]\n },\n \"then\": {\n \"properties\": {\n \"bearerFormat\": {\n \"type\": \"string\"\n }\n }\n }\n },\n \"type-oauth2\": {\n \"if\": {\n \"properties\": {\n \"type\": {\n \"const\": \"oauth2\"\n }\n }\n },\n \"then\": {\n \"properties\": {\n \"flows\": {\n \"$ref\": \"#/$defs/oauth-flows\"\n }\n },\n \"required\": [\"flows\"]\n }\n },\n \"type-oidc\": {\n \"if\": {\n \"properties\": {\n \"type\": {\n \"const\": \"openIdConnect\"\n }\n }\n },\n \"then\": {\n \"properties\": {\n \"openIdConnectUrl\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n }\n },\n \"required\": [\"openIdConnectUrl\"]\n }\n }\n }\n },\n \"security-scheme-or-reference\": {\n \"if\": {\n \"type\": \"object\",\n \"required\": [\"$ref\"]\n },\n \"then\": {\n \"$ref\": \"#/$defs/reference\"\n },\n \"else\": {\n \"$ref\": \"#/$defs/security-scheme\"\n }\n },\n \"oauth-flows\": {\n \"type\": \"object\",\n \"properties\": {\n \"implicit\": {\n \"$ref\": \"#/$defs/oauth-flows/$defs/implicit\"\n },\n \"password\": {\n \"$ref\": \"#/$defs/oauth-flows/$defs/password\"\n },\n \"clientCredentials\": {\n \"$ref\": \"#/$defs/oauth-flows/$defs/client-credentials\"\n },\n \"authorizationCode\": {\n \"$ref\": \"#/$defs/oauth-flows/$defs/authorization-code\"\n }\n },\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false,\n \"$defs\": {\n \"implicit\": {\n \"type\": \"object\",\n \"properties\": {\n \"authorizationUrl\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"refreshUrl\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"scopes\": {\n \"$ref\": \"#/$defs/map-of-strings\"\n }\n },\n \"required\": [\"authorizationUrl\", \"scopes\"],\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"password\": {\n \"type\": \"object\",\n \"properties\": {\n \"tokenUrl\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"refreshUrl\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"scopes\": {\n \"$ref\": \"#/$defs/map-of-strings\"\n }\n },\n \"required\": [\"tokenUrl\", \"scopes\"],\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"client-credentials\": {\n \"type\": \"object\",\n \"properties\": {\n \"tokenUrl\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"refreshUrl\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"scopes\": {\n \"$ref\": \"#/$defs/map-of-strings\"\n }\n },\n \"required\": [\"tokenUrl\", \"scopes\"],\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n },\n \"authorization-code\": {\n \"type\": \"object\",\n \"properties\": {\n \"authorizationUrl\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"tokenUrl\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"refreshUrl\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"scopes\": {\n \"$ref\": \"#/$defs/map-of-strings\"\n }\n },\n \"required\": [\"authorizationUrl\", \"tokenUrl\", \"scopes\"],\n \"$ref\": \"#/$defs/specification-extensions\",\n \"unevaluatedProperties\": false\n }\n }\n },\n \"security-requirement\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#security-requirement-object\",\n \"type\": \"object\",\n \"additionalProperties\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n \"specification-extensions\": {\n \"$comment\": \"https://spec.openapis.org/oas/v3.1#specification-extensions\",\n \"patternProperties\": {\n \"^x-\": true\n }\n },\n \"examples\": {\n \"properties\": {\n \"example\": true,\n \"examples\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/$defs/example-or-reference\"\n }\n }\n },\n \"not\": {\n \"required\": [\"example\", \"examples\"]\n }\n },\n \"map-of-strings\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"type\": \"string\"\n }\n },\n \"explode-for-form\": {\n \"$comment\": \"for encoding objects, and query and cookie parameters, style=form is the default\",\n \"if\": {\n \"properties\": {\n \"style\": {\n \"const\": \"form\"\n }\n }\n },\n \"then\": {\n \"properties\": {\n \"explode\": {\n \"default\": true\n }\n }\n },\n \"else\": {\n \"properties\": {\n \"explode\": {\n \"default\": false\n }\n }\n }\n }\n }\n}\n","import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js'\nimport { configureMonacoYaml } from 'monaco-yaml'\n\nimport openApiJsonSchema from './../schemas/openapi-3.1-schema.json'\n\nconst OPENAPI_JSON_SCHEMA_URI = 'inmemory://model/scalar/openapi-json-schema'\n\n/**\n * Configures JSON language support for the given model URI\n *\n * @param globPattern - The glob pattern to match the files to configure language support for\n */\nexport const configureJson = (globPattern: string): void => {\n const defaults = monaco.languages.json.jsonDefaults\n const current = defaults.diagnosticsOptions\n\n const existingSchemas = current.schemas ?? []\n const schemas = [\n ...existingSchemas.filter((s) => s.uri !== OPENAPI_JSON_SCHEMA_URI),\n {\n uri: OPENAPI_JSON_SCHEMA_URI,\n fileMatch: [globPattern],\n schema: openApiJsonSchema,\n },\n ]\n\n defaults.setDiagnosticsOptions({\n ...current,\n validate: true,\n enableSchemaRequest: false,\n schemas,\n })\n}\n\n/**\n * Configures YAML language support for the given model URI\n *\n * @param globPattern - The glob pattern to match the files to configure language support for\n */\nexport const configureYaml = (globPattern: string): void => {\n configureMonacoYaml(monaco, {\n enableSchemaRequest: false,\n validate: true,\n format: true,\n completion: true,\n hover: true,\n schemas: [\n {\n // If YAML file is opened matching this glob\n fileMatch: [globPattern],\n schema: openApiJsonSchema,\n uri: OPENAPI_JSON_SCHEMA_URI,\n },\n ],\n })\n}\n","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","import { isMap, isPair, isScalar, isSeq, parseDocument } from 'yaml'\n\nimport type { Path } from '@/v2/features/editor/helpers/model'\n\ntype YamlNodeRange = {\n startOffset: number\n endOffset: number\n}\n\nconst isValidYamlRange = (range: unknown): range is readonly [number, number, ...unknown[]] =>\n Array.isArray(range) && typeof range[0] === 'number' && typeof range[1] === 'number'\n\nconst safeParseDocument = (yamlText: string) => {\n try {\n return parseDocument(yamlText)\n } catch {\n return null\n }\n}\n\n/**\n * Finds the byte range (offset) in the YAML text corresponding to a JSON path.\n * Given a YAML string and a path (array of segments), parses the document and walks\n * down the tree to find the target node or key, returning its start and end offsets.\n * Will prefer to highlight the \"key\" part for map entries, to avoid highlighting the value which\n * might be offset due to block structure.\n *\n * @param yamlText The YAML string\n * @param path An array representing the path to traverse\n * @returns The byte offsets in the YAML string of the node (or null if not found)\n */\nexport const getYamlNodeRangeFromPath = (yamlText: string, path: Path): YamlNodeRange | null => {\n const doc = safeParseDocument(yamlText)\n if (!doc) {\n return null\n }\n\n let current: unknown = doc.contents\n let lastPair: unknown = null\n\n // Traverse the path, descending through maps and sequences as needed.\n for (const segment of path) {\n if (isMap(current)) {\n const key = String(segment)\n const pair = current.items.find((p) => {\n if (!isPair(p)) {\n return false\n }\n const pairKey = p.key\n return isScalar(pairKey) ? String(pairKey.value) === key : String(pairKey) === key\n })\n\n if (!pair || !isPair(pair)) {\n // Path segment does not exist in this map\n return null\n }\n\n lastPair = pair\n current = pair.value\n continue\n }\n\n if (isSeq(current)) {\n // Ensure we have a valid integer index for arrays\n const index = typeof segment === 'number' ? segment : Number.parseInt(String(segment), 10)\n if (!Number.isFinite(index) || index < 0 || index >= current.items.length) {\n return null\n }\n\n lastPair = null\n current = current.items[index]\n continue\n }\n\n // If current isn't traversable\n return null\n }\n\n // Prefer highlighting the key line for map entries (avoids being off-by-one line for block values).\n if (lastPair && isPair(lastPair)) {\n const keyRange = (lastPair.key as { range?: unknown } | null)?.range\n const valueRange = (lastPair.value as { range?: unknown } | null)?.range\n\n if (!isValidYamlRange(keyRange)) {\n return null\n }\n\n const startOffset = Math.max(0, keyRange[0])\n const endOffset = isValidYamlRange(valueRange)\n ? Math.max(startOffset, valueRange[1])\n : Math.max(startOffset, keyRange[1])\n\n return { startOffset, endOffset }\n }\n\n // For non-map entries, just use the node's own range property if it exists.\n const nodeRange = (current as { range?: unknown } | null)?.range\n if (!isValidYamlRange(nodeRange)) {\n return null\n }\n\n const startOffset = Math.max(0, nodeRange[0])\n const endOffset = Math.max(startOffset, nodeRange[1])\n\n return { startOffset, endOffset }\n}\n","import * as monaco from 'monaco-editor'\n\nimport { configureYaml } from '@/v2/features/editor/helpers/configure-language-support'\nimport type { EditorModel, Path } from '@/v2/features/editor/helpers/model'\nimport { getYamlNodeRangeFromPath } from '@/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path'\n\n/**\n * Creates a YAML model for use in the Monaco editor.\n *\n * @param value - The initial YAML string value for the model.\n * @returns An object containing the Monaco model and a method to get a range from a YAML path.\n *\n * The created model is configured for YAML language support.\n * The `getRangeFromPath` method returns a Monaco Range object indicating the text range\n * that corresponds to a given path in the YAML document, or null if the path is not found.\n */\nexport const createYamlModel = (value?: string): EditorModel => {\n const model = monaco.editor.createModel(value ?? '', 'yaml')\n\n // Configure language support\n configureYaml(model.uri.toString())\n\n return {\n model,\n getRangeFromPath: (path: Path) => {\n const range = getYamlNodeRangeFromPath(model.getValue(), path)\n if (!range) {\n return null\n }\n\n const start = model.getPositionAt(range.startOffset)\n const end = model.getPositionAt(range.endOffset)\n\n return new monaco.Range(start.lineNumber, start.column, end.lineNumber, end.column)\n },\n }\n}\n","import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js'\nimport { type MaybeRefOrGetter, onBeforeUnmount, onMounted, ref, toValue, watch } from 'vue'\n\nexport const useEditorMarkers = (editorRef: MaybeRefOrGetter<monaco.editor.IStandaloneCodeEditor | undefined>) => {\n const markers = ref<monaco.editor.IMarker[]>([])\n\n let dispose: monaco.IDisposable | null = null\n const retryTimeouts: ReturnType<typeof setTimeout>[] = []\n\n const updateMarkers = () => {\n const editor = toValue(editorRef)\n const resource = editor?.getModel()?.uri\n\n if (!resource) {\n markers.value = []\n return\n }\n\n markers.value = monaco.editor\n .getModelMarkers({})\n .filter((marker) => marker.resource.toString() === resource.toString())\n }\n\n const scheduleMarkerReads = () => {\n retryTimeouts.push(setTimeout(updateMarkers, 0), setTimeout(updateMarkers, 80), setTimeout(updateMarkers, 220))\n }\n\n onMounted(() => {\n dispose = monaco.editor.onDidChangeMarkers(() => {\n scheduleMarkerReads()\n })\n\n // initial fetch\n scheduleMarkerReads()\n })\n\n onBeforeUnmount(() => {\n dispose?.dispose()\n retryTimeouts.forEach((timeout) => clearTimeout(timeout))\n })\n\n watch(\n () => toValue(editorRef)?.getModel()?.uri?.toString(),\n () => {\n scheduleMarkerReads()\n },\n { immediate: true },\n )\n\n return {\n markers,\n }\n}\n","<script setup lang=\"ts\">\nimport {\n ScalarIconCaretDown,\n ScalarIconCaretRight,\n ScalarIconWarning,\n ScalarIconXCircle,\n} from '@scalar/icons'\nimport * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js'\n\nconst { expanded, diagnosticCounts, visibleDiagnostics } = defineProps<{\n expanded: boolean\n diagnosticCounts: { errors: number; warnings: number }\n visibleDiagnostics: monaco.editor.IMarker[]\n}>()\n\nconst emit = defineEmits<{\n (e: 'toggle'): void\n (e: 'focusDiagnostic', marker: monaco.editor.IMarker): void\n}>()\n\nconst getMarkerDotClass = (severity: monaco.MarkerSeverity): string =>\n severity === monaco.MarkerSeverity.Error ? 'bg-c-danger' : 'bg-c-alert'\n</script>\n\n<template>\n <div class=\"pointer-events-none absolute right-2 bottom-2 left-2 z-10\">\n <div\n class=\"bg-b-1 shadow-border pointer-events-auto flex flex-col overflow-hidden rounded-lg text-[11px]\">\n <button\n class=\"bg-b-2/30 hover:bg-b-2/50 flex items-center justify-between px-2.5 py-2 text-left\"\n type=\"button\"\n @click=\"emit('toggle')\">\n <span class=\"flex items-center gap-3\">\n <span class=\"text-c-2 font-medium\">Problems</span>\n <span\n class=\"text-c-danger flex items-center gap-1\"\n title=\"Errors\">\n <ScalarIconXCircle class=\"size-3\" />\n <span>{{ diagnosticCounts.errors }}</span>\n </span>\n <span\n class=\"text-c-alert flex items-center gap-1\"\n title=\"Warnings\">\n <ScalarIconWarning class=\"size-3\" />\n <span>{{ diagnosticCounts.warnings }}</span>\n </span>\n </span>\n\n <span class=\"text-c-3\">\n <ScalarIconCaretDown\n v-if=\"expanded\"\n class=\"size-3\" />\n <ScalarIconCaretRight\n v-else\n class=\"size-3\" />\n </span>\n </button>\n\n <template v-if=\"expanded\">\n <div\n v-if=\"visibleDiagnostics.length\"\n class=\"max-h-28 overflow-auto border-t\">\n <button\n v-for=\"(marker, index) in visibleDiagnostics\"\n :key=\"`${marker.owner}-${marker.startLineNumber}-${marker.startColumn}-${index}`\"\n class=\"hover:bg-b-2/40 flex w-full items-start gap-2 px-2.5 py-2 text-left\"\n type=\"button\"\n @click=\"emit('focusDiagnostic', marker)\">\n <span\n class=\"mt-0.5 size-1.5 shrink-0 rounded-full\"\n :class=\"getMarkerDotClass(marker.severity)\" />\n\n <span class=\"min-w-0 flex-1\">\n <span class=\"text-c-1 block truncate\">{{ marker.message }}</span>\n <span class=\"text-c-3 block whitespace-nowrap\">\n Ln {{ marker.startLineNumber }}, Col {{ marker.startColumn }}\n </span>\n </span>\n </button>\n </div>\n <div\n v-else\n class=\"text-c-3 border-t px-2.5 py-2\">\n Errors and warnings from the JSON/YAML language workers will show up\n here.\n </div>\n </template>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport {\n ScalarIconCaretDown,\n ScalarIconCaretRight,\n ScalarIconWarning,\n ScalarIconXCircle,\n} from '@scalar/icons'\nimport * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js'\n\nconst { expanded, diagnosticCounts, visibleDiagnostics } = defineProps<{\n expanded: boolean\n diagnosticCounts: { errors: number; warnings: number }\n visibleDiagnostics: monaco.editor.IMarker[]\n}>()\n\nconst emit = defineEmits<{\n (e: 'toggle'): void\n (e: 'focusDiagnostic', marker: monaco.editor.IMarker): void\n}>()\n\nconst getMarkerDotClass = (severity: monaco.MarkerSeverity): string =>\n severity === monaco.MarkerSeverity.Error ? 'bg-c-danger' : 'bg-c-alert'\n</script>\n\n<template>\n <div class=\"pointer-events-none absolute right-2 bottom-2 left-2 z-10\">\n <div\n class=\"bg-b-1 shadow-border pointer-events-auto flex flex-col overflow-hidden rounded-lg text-[11px]\">\n <button\n class=\"bg-b-2/30 hover:bg-b-2/50 flex items-center justify-between px-2.5 py-2 text-left\"\n type=\"button\"\n @click=\"emit('toggle')\">\n <span class=\"flex items-center gap-3\">\n <span class=\"text-c-2 font-medium\">Problems</span>\n <span\n class=\"text-c-danger flex items-center gap-1\"\n title=\"Errors\">\n <ScalarIconXCircle class=\"size-3\" />\n <span>{{ diagnosticCounts.errors }}</span>\n </span>\n <span\n class=\"text-c-alert flex items-center gap-1\"\n title=\"Warnings\">\n <ScalarIconWarning class=\"size-3\" />\n <span>{{ diagnosticCounts.warnings }}</span>\n </span>\n </span>\n\n <span class=\"text-c-3\">\n <ScalarIconCaretDown\n v-if=\"expanded\"\n class=\"size-3\" />\n <ScalarIconCaretRight\n v-else\n class=\"size-3\" />\n </span>\n </button>\n\n <template v-if=\"expanded\">\n <div\n v-if=\"visibleDiagnostics.length\"\n class=\"max-h-28 overflow-auto border-t\">\n <button\n v-for=\"(marker, index) in visibleDiagnostics\"\n :key=\"`${marker.owner}-${marker.startLineNumber}-${marker.startColumn}-${index}`\"\n class=\"hover:bg-b-2/40 flex w-full items-start gap-2 px-2.5 py-2 text-left\"\n type=\"button\"\n @click=\"emit('focusDiagnostic', marker)\">\n <span\n class=\"mt-0.5 size-1.5 shrink-0 rounded-full\"\n :class=\"getMarkerDotClass(marker.severity)\" />\n\n <span class=\"min-w-0 flex-1\">\n <span class=\"text-c-1 block truncate\">{{ marker.message }}</span>\n <span class=\"text-c-3 block whitespace-nowrap\">\n Ln {{ marker.startLineNumber }}, Col {{ marker.startColumn }}\n </span>\n </span>\n </button>\n </div>\n <div\n v-else\n class=\"text-c-3 border-t px-2.5 py-2\">\n Errors and warnings from the JSON/YAML language workers will show up\n here.\n </div>\n </template>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport {\n ScalarButton,\n ScalarLoading,\n ScalarToggle,\n type LoadingState,\n} from '@scalar/components'\nimport { computed } from 'vue'\n\nconst { isAutoSaveEnabled, isDirty, saveLoader } = defineProps<{\n isAutoSaveEnabled: boolean\n isDirty: boolean\n saveLoader: LoadingState\n}>()\n\nconst emit = defineEmits<{\n (e: 'update:isAutoSaveEnabled', value: boolean): void\n (e: 'saveNow'): void\n}>()\n\nconst editorStatusText = computed(() => {\n if (!isAutoSaveEnabled && isDirty) {\n return 'Unsaved'\n }\n\n if (!saveLoader.isActive) {\n return null\n }\n if (saveLoader.isLoading) {\n return 'Saving…'\n }\n if (saveLoader.isInvalid) {\n return 'Save failed'\n }\n if (saveLoader.isValid) {\n return 'Saved'\n }\n return null\n})\n\nconst shouldShowEditorStatus = computed(() => editorStatusText.value !== null)\n\nconst editorStatusTone = computed<\n 'warning' | 'loading' | 'success' | 'danger' | null\n>(() => {\n if (!shouldShowEditorStatus.value) {\n return null\n }\n\n if (!isAutoSaveEnabled && isDirty) {\n return 'warning'\n }\n\n if (saveLoader.isLoading) {\n return 'loading'\n }\n if (saveLoader.isInvalid) {\n return 'danger'\n }\n if (saveLoader.isValid) {\n return 'success'\n }\n\n return null\n})\n\nconst editorStatusDotClass = computed(() => {\n switch (editorStatusTone.value) {\n case 'warning':\n return 'bg-c-alert'\n case 'success':\n return 'bg-c-accent'\n case 'danger':\n return 'bg-c-danger'\n default:\n return 'bg-b-3'\n }\n})\n\nconst editorStatusTextClass = computed(() => {\n switch (editorStatusTone.value) {\n case 'warning':\n return 'text-c-alert'\n case 'success':\n return 'text-c-accent'\n case 'danger':\n return 'text-c-danger'\n default:\n return 'text-c-2'\n }\n})\n</script>\n\n<template>\n <div\n class=\"bg-b-1 pointer-events-auto flex flex-col items-stretch overflow-hidden rounded-lg border shadow-sm\">\n <div class=\"flex items-center gap-2 px-2 py-1.5\">\n <span class=\"text-c-2 text-[11px] font-medium whitespace-nowrap\">\n Auto-save\n </span>\n <ScalarToggle\n :modelValue=\"isAutoSaveEnabled\"\n @update:modelValue=\"emit('update:isAutoSaveEnabled', $event)\" />\n\n <div class=\"bg-b-3 mx-1 h-4 w-px\" />\n\n <div class=\"min-w-[48px]\">\n <ScalarButton\n v-if=\"!isAutoSaveEnabled\"\n :disabled=\"!isDirty || saveLoader.isLoading\"\n size=\"xs\"\n variant=\"outlined\"\n @click=\"emit('saveNow')\">\n Save\n </ScalarButton>\n <div\n v-else\n class=\"text-c-3 flex h-6 items-center justify-center rounded px-2 text-[11px] whitespace-nowrap\">\n Auto\n </div>\n </div>\n </div>\n\n <div\n v-if=\"shouldShowEditorStatus\"\n class=\"bg-b-2/40 flex items-center gap-2 border-t px-2 py-1 text-[11px]\">\n <ScalarLoading\n v-if=\"saveLoader.isActive\"\n class=\"self-center\"\n :loader=\"saveLoader\"\n size=\"sm\" />\n <span\n v-else\n class=\"size-1.5 rounded-full\"\n :class=\"editorStatusDotClass\" />\n\n <span\n class=\"whitespace-nowrap\"\n :class=\"editorStatusTextClass\">\n {{ editorStatusText }}\n </span>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport {\n ScalarButton,\n ScalarLoading,\n ScalarToggle,\n type LoadingState,\n} from '@scalar/components'\nimport { computed } from 'vue'\n\nconst { isAutoSaveEnabled, isDirty, saveLoader } = defineProps<{\n isAutoSaveEnabled: boolean\n isDirty: boolean\n saveLoader: LoadingState\n}>()\n\nconst emit = defineEmits<{\n (e: 'update:isAutoSaveEnabled', value: boolean): void\n (e: 'saveNow'): void\n}>()\n\nconst editorStatusText = computed(() => {\n if (!isAutoSaveEnabled && isDirty) {\n return 'Unsaved'\n }\n\n if (!saveLoader.isActive) {\n return null\n }\n if (saveLoader.isLoading) {\n return 'Saving…'\n }\n if (saveLoader.isInvalid) {\n return 'Save failed'\n }\n if (saveLoader.isValid) {\n return 'Saved'\n }\n return null\n})\n\nconst shouldShowEditorStatus = computed(() => editorStatusText.value !== null)\n\nconst editorStatusTone = computed<\n 'warning' | 'loading' | 'success' | 'danger' | null\n>(() => {\n if (!shouldShowEditorStatus.value) {\n return null\n }\n\n if (!isAutoSaveEnabled && isDirty) {\n return 'warning'\n }\n\n if (saveLoader.isLoading) {\n return 'loading'\n }\n if (saveLoader.isInvalid) {\n return 'danger'\n }\n if (saveLoader.isValid) {\n return 'success'\n }\n\n return null\n})\n\nconst editorStatusDotClass = computed(() => {\n switch (editorStatusTone.value) {\n case 'warning':\n return 'bg-c-alert'\n case 'success':\n return 'bg-c-accent'\n case 'danger':\n return 'bg-c-danger'\n default:\n return 'bg-b-3'\n }\n})\n\nconst editorStatusTextClass = computed(() => {\n switch (editorStatusTone.value) {\n case 'warning':\n return 'text-c-alert'\n case 'success':\n return 'text-c-accent'\n case 'danger':\n return 'text-c-danger'\n default:\n return 'text-c-2'\n }\n})\n</script>\n\n<template>\n <div\n class=\"bg-b-1 pointer-events-auto flex flex-col items-stretch overflow-hidden rounded-lg border shadow-sm\">\n <div class=\"flex items-center gap-2 px-2 py-1.5\">\n <span class=\"text-c-2 text-[11px] font-medium whitespace-nowrap\">\n Auto-save\n </span>\n <ScalarToggle\n :modelValue=\"isAutoSaveEnabled\"\n @update:modelValue=\"emit('update:isAutoSaveEnabled', $event)\" />\n\n <div class=\"bg-b-3 mx-1 h-4 w-px\" />\n\n <div class=\"min-w-[48px]\">\n <ScalarButton\n v-if=\"!isAutoSaveEnabled\"\n :disabled=\"!isDirty || saveLoader.isLoading\"\n size=\"xs\"\n variant=\"outlined\"\n @click=\"emit('saveNow')\">\n Save\n </ScalarButton>\n <div\n v-else\n class=\"text-c-3 flex h-6 items-center justify-center rounded px-2 text-[11px] whitespace-nowrap\">\n Auto\n </div>\n </div>\n </div>\n\n <div\n v-if=\"shouldShowEditorStatus\"\n class=\"bg-b-2/40 flex items-center gap-2 border-t px-2 py-1 text-[11px]\">\n <ScalarLoading\n v-if=\"saveLoader.isActive\"\n class=\"self-center\"\n :loader=\"saveLoader\"\n size=\"sm\" />\n <span\n v-else\n class=\"size-1.5 rounded-full\"\n :class=\"editorStatusDotClass\" />\n\n <span\n class=\"whitespace-nowrap\"\n :class=\"editorStatusTextClass\">\n {{ editorStatusText }}\n </span>\n </div>\n </div>\n</template>\n","import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js'\n\n/**\n * This function counts the number of error and warning markers in the provided array of Monaco editor markers.\n *\n * @param markers - The array of Monaco editor markers to count the errors and warnings for\n * @returns An object with the number of errors and warnings\n */\nexport const getDiagnosticCounts = (markers: monaco.editor.IMarker[]): { errors: number; warnings: number } => {\n let errors = 0\n let warnings = 0\n\n for (const marker of markers) {\n if (marker.severity === monaco.MarkerSeverity.Error) {\n errors += 1\n } else if (marker.severity === monaco.MarkerSeverity.Warning) {\n warnings += 1\n }\n }\n\n return { errors, warnings }\n}\n","import { isHttpMethod } from '@scalar/helpers/http/is-http-method'\n\ntype OperationContext = {\n path: string\n method: string\n}\n\n/**\n * Returns an OperationContext if both path is provided and method is a valid HTTP method.\n * Returns null otherwise.\n */\nexport const getOperationContext = (path?: string, method?: string): OperationContext | null => {\n if (!path || !isHttpMethod(method)) {\n return null\n }\n\n return { path, method }\n}\n","import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js'\n\nconst isVisibleDiagnostic = (marker: monaco.editor.IMarker): boolean =>\n marker.severity === monaco.MarkerSeverity.Error || marker.severity === monaco.MarkerSeverity.Warning\n\nconst compareDiagnostics = (a: monaco.editor.IMarker, b: monaco.editor.IMarker): number => {\n if (a.severity !== b.severity) {\n return b.severity - a.severity\n }\n if (a.startLineNumber !== b.startLineNumber) {\n return a.startLineNumber - b.startLineNumber\n }\n return a.startColumn - b.startColumn\n}\n\n/**\n * Returns up to `maxVisible` diagnostics from the provided markers array,\n * filtering to only errors and warnings, sorted by severity and position in the document.\n */\nexport const getVisibleDiagnostics = (markers: monaco.editor.IMarker[], maxVisible: number): monaco.editor.IMarker[] =>\n [...markers].filter(isVisibleDiagnostic).sort(compareDiagnostics).slice(0, maxVisible)\n","import { isObject } from '@scalar/helpers/object/is-object'\nimport { parse as parseYaml } from 'yaml'\n\nconst safeParseJson = (value: string): unknown => {\n try {\n return JSON.parse(value)\n } catch {\n return null\n }\n}\n\nconst safeParseYaml = (value: string): unknown => {\n try {\n return parseYaml(value)\n } catch {\n return null\n }\n}\n\n/**\n * Parses the editor value string in either JSON or YAML format.\n * Returns the parsed object if valid and an object, otherwise returns null.\n *\n * @param value - The input string to parse.\n * @param language - The language of the input string, either 'json' or 'yaml'.\n * @returns The parsed object if it's valid, or null.\n */\nexport const parseEditorObject = (value: string, language: 'json' | 'yaml'): Record<string, unknown> | null => {\n const parsed = language === 'yaml' ? safeParseYaml(value) : safeParseJson(value)\n if (!isObject(parsed)) {\n return null\n }\n\n return parsed\n}\n","import { stringify as stringifyYaml } from 'yaml'\n\n/**\n * Stringifies a JavaScript object/document into a formatted string.\n * Uses YAML format if language is 'yaml', otherwise uses JSON.\n *\n * @param document - The JavaScript object to stringify\n * @param language - Output language, expected to be either 'json' or 'yaml'\n * @returns The stringified document in the specified language\n */\nexport const stringifyDocument = (document: unknown, language: 'json' | 'yaml'): string => {\n if (language === 'yaml') {\n return stringifyYaml(document, { indent: 2 })\n }\n\n return JSON.stringify(document, null, 2)\n}\n","import { computed, ref } from 'vue'\n\ntype MonacoEditorLanguage = 'json' | 'yaml'\n\nconst DIAGNOSTICS_COLLAPSED_BOTTOM_PADDING = 46\nconst DIAGNOSTICS_EXPANDED_BOTTOM_PADDING = 155\n\nexport const useEditorState = () => {\n const isAutoSaveEnabled = ref(false)\n const isDirty = ref(false)\n const editorLanguage = ref<MonacoEditorLanguage>('json')\n const isDiagnosticsPaneExpanded = ref(false)\n const isEditorMaximized = ref(false)\n\n const isYamlMode = computed(() => editorLanguage.value === 'yaml')\n const editorBottomPadding = computed(() =>\n isDiagnosticsPaneExpanded.value ? DIAGNOSTICS_EXPANDED_BOTTOM_PADDING : DIAGNOSTICS_COLLAPSED_BOTTOM_PADDING,\n )\n const editorRootClass = computed(() =>\n isEditorMaximized.value ? 'fixed inset-0 z-50 h-screen w-screen border bg-b-1 p-3 mac:pt-12' : '',\n )\n\n const getLanguageToggleClass = (isActive: boolean): string => {\n const base =\n 'rounded-none px-2 py-1 text-[11px] leading-4 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-c-accent/30 focus-visible:ring-offset-1 focus-visible:ring-offset-b-1 first:rounded-md last:rounded-md'\n const active = 'bg-b-2 text-c-1 hover:bg-b-2'\n const inactive = 'text-c-2 hover:bg-b-2/60 hover:text-c-1'\n return `${base} ${isActive ? active : inactive}`\n }\n\n const toggleEditorMaximized = (): void => {\n isEditorMaximized.value = !isEditorMaximized.value\n }\n\n return {\n isAutoSaveEnabled,\n isDirty,\n editorLanguage,\n isDiagnosticsPaneExpanded,\n isEditorMaximized,\n isYamlMode,\n editorBottomPadding,\n editorRootClass,\n getLanguageToggleClass,\n toggleEditorMaximized,\n }\n}\n","<script setup lang=\"ts\">\nimport { ScalarButton, ScalarHotkey, useLoadingState } from '@scalar/components'\nimport { debounce } from '@scalar/helpers/general/debounce'\nimport { isObject } from '@scalar/helpers/object/is-object'\nimport { ScalarIconArrowsIn, ScalarIconArrowsOut } from '@scalar/icons'\nimport * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js'\nimport {\n computed,\n nextTick,\n onBeforeUnmount,\n onMounted,\n ref,\n shallowRef,\n watch,\n} from 'vue'\n\nimport type { CollectionProps } from '@/v2/features/app/helpers/routes'\nimport { useEditor, useJsonPointerLinkSupport } from '@/v2/features/editor'\nimport { createJsonModel } from '@/v2/features/editor/helpers/json/create-json-model'\nimport { createYamlModel } from '@/v2/features/editor/helpers/yaml/create-yaml-model'\nimport { useEditorMarkers } from '@/v2/features/editor/hooks/use-editor-markers'\n\nimport EditorDiagnosticsPanel from './components/EditorDiagnosticsPanel.vue'\nimport EditorSavePanel from './components/EditorSavePanel.vue'\nimport { getDiagnosticCounts } from './helpers/get-diagnostic-counts'\nimport { getOperationContext } from './helpers/get-operation-context'\nimport { getVisibleDiagnostics } from './helpers/get-visible-diagnostics'\nimport { parseEditorObject } from './helpers/parse-editor-object'\nimport { stringifyDocument } from './helpers/stringify-document'\nimport { useEditorState } from './hooks/use-editor-state'\n\nconst { collectionType, documentSlug, method, path, workspaceStore } =\n defineProps<CollectionProps>()\n\nconst MAX_VISIBLE_DIAGNOSTICS = 6\nconst EDITOR_PERSIST_DEBOUNCE_KEY = 'editor:replace-document'\n\nconst monacoEditorRef = ref<HTMLElement>()\nconst editorApi = shallowRef<ReturnType<typeof useEditor>>()\n\nconst saveLoader = useLoadingState()\nconst {\n isAutoSaveEnabled,\n isDirty,\n editorLanguage,\n isDiagnosticsPaneExpanded,\n isEditorMaximized,\n isYamlMode,\n editorBottomPadding,\n editorRootClass,\n getLanguageToggleClass,\n toggleEditorMaximized,\n} = useEditorState()\n\nconst jsonModel = createJsonModel()\nconst yamlModel = createYamlModel()\n\nconst selectedLanguage = ref<'json' | 'yaml'>('json')\n\nconst currentModel = computed(() => {\n return selectedLanguage.value === 'json' ? jsonModel : yamlModel\n})\n\nconst monacoEditorInstance = computed(() => editorApi.value?.editor)\nconst { markers: diagnostics } = useEditorMarkers(monacoEditorInstance)\n\nconst syncEditorBottomPadding = () => {\n editorApi.value?.editor.updateOptions({\n padding: {\n top: 0,\n bottom: editorBottomPadding.value,\n },\n })\n}\n\nconst diagnosticCounts = computed(() => getDiagnosticCounts(diagnostics.value))\nconst visibleDiagnostics = computed(() =>\n getVisibleDiagnostics(diagnostics.value, MAX_VISIBLE_DIAGNOSTICS),\n)\n\nconst focusDiagnostic = (marker: monaco.editor.IMarker) => {\n const editor = editorApi.value?.editor\n if (!editor) {\n return\n }\n editor.setSelection({\n startLineNumber: marker.startLineNumber,\n startColumn: marker.startColumn,\n endLineNumber: marker.endLineNumber,\n endColumn: marker.endColumn,\n })\n editor.revealPositionInCenter({\n lineNumber: marker.startLineNumber,\n column: marker.startColumn,\n })\n}\n\nconst getEditorValue = (): string | null => currentModel.value.model.getValue()\n\n/** Value from the editor for a specific language (use when switching to avoid reading the wrong model). */\nconst getEditorValueForLanguage = (language: 'json' | 'yaml'): string | null =>\n (language === 'json' ? jsonModel : yamlModel).model.getValue()\n\nconst getDocumentValue = async (\n language?: 'json' | 'yaml',\n): Promise<string> => {\n const document = await workspaceStore.getEditableDocument(documentSlug)\n return stringifyDocument(document, language ?? selectedLanguage.value)\n}\n\nconst debouncedPersist = debounce({ delay: 1500 })\n\nconst applyProgrammaticEditorValue = (value: string): void => {\n // Cancel pending auto-save work so synthetic model updates do not persist stale data.\n debouncedPersist.cleanup()\n editorApi.value?.setValue(value, true)\n}\n\nconst loadDocumentIntoEditor = async () => {\n applyProgrammaticEditorValue(await getDocumentValue())\n isDirty.value = false\n await focusOperation()\n}\n\nconst formatDocument = async () => {\n await editorApi.value?.formatDocument()\n}\n\nconst focusOperation = async () => {\n const operationContext = getOperationContext(path, method)\n if (!operationContext) {\n return\n }\n\n await editorApi.value?.focusPath([\n 'paths',\n operationContext.path,\n operationContext.method,\n ])\n}\n\nconst persistEditorToWorkspace = async (value: string) => {\n const parsed = parseEditorObject(value, editorLanguage.value)\n if (!parsed) {\n const firstError = diagnostics.value.find(\n (m) => m.severity === monaco.MarkerSeverity.Error,\n )\n if (firstError) {\n focusDiagnostic(firstError)\n }\n await saveLoader.invalidate()\n return\n }\n\n saveLoader.start()\n await workspaceStore.replaceDocument(documentSlug, parsed)\n isDirty.value = false\n await saveLoader.validate({ duration: 900 })\n}\n\nconst saveNow = async () => {\n const value = getEditorValue()\n if (!value) {\n return\n }\n await persistEditorToWorkspace(value)\n}\n\nconst handleEditorChange = (value: string) => {\n isDirty.value = true\n\n if (!isAutoSaveEnabled.value) {\n return\n }\n\n debouncedPersist.execute(EDITOR_PERSIST_DEBOUNCE_KEY, () =>\n persistEditorToWorkspace(value),\n )\n}\n\nconst focusOperationServers = async () => {\n const operationContext = getOperationContext(path, method)\n if (!operationContext) {\n return\n }\n\n const value = getEditorValue()\n if (!value) {\n return\n }\n\n const parsed = parseEditorObject(value, editorLanguage.value)\n\n if (!parsed || !isObject(parsed.paths)) {\n return\n }\n\n const pathsObject = parsed.paths as Record<string, unknown>\n const operationPathItem = pathsObject[operationContext.path]\n if (!isObject(operationPathItem)) {\n return\n }\n\n const operation = operationPathItem[operationContext.method]\n if (!isObject(operation)) {\n return\n }\n\n // Add default servers if not present\n operation.servers ??= []\n\n // Update the editor value\n editorApi.value?.setValue(stringifyDocument(parsed, editorLanguage.value))\n await editorApi.value?.focusPath([\n 'paths',\n operationContext.path,\n operationContext.method,\n 'servers',\n ])\n}\n\nuseJsonPointerLinkSupport(editorApi, currentModel)\n\nonMounted(() => {\n editorApi.value = useEditor({\n element: monacoEditorRef.value ?? document.createElement('div'),\n onChange: handleEditorChange,\n model: currentModel,\n actions: [\n {\n id: 'scalar.editor.focusOperation',\n label: 'Focus Operation',\n keybindings: [monaco.KeyMod.Alt | monaco.KeyCode.KeyO],\n run: async () => {\n await focusOperation()\n },\n },\n {\n id: 'scalar.editor.focusOperationServers',\n label: 'Focus Operation Servers',\n keybindings: [monaco.KeyMod.Alt | monaco.KeyCode.KeyS],\n run: async () => {\n await focusOperationServers()\n },\n },\n {\n id: 'scalar.editor.formatDocument',\n label: 'Format Document',\n keybindings: [\n monaco.KeyMod.Alt | monaco.KeyMod.Shift | monaco.KeyCode.KeyF,\n ],\n run: async () => {\n await formatDocument()\n },\n },\n ],\n })\n\n syncEditorBottomPadding()\n void loadDocumentIntoEditor()\n})\n\nonBeforeUnmount(() => {\n debouncedPersist.cleanup()\n\n // Persist if there is a pending save\n if (isDirty.value && isAutoSaveEnabled.value) {\n void saveNow()\n }\n editorApi.value?.dispose?.()\n // Dispose models created at setup; useEditor only disposes the editor widget, not external models.\n jsonModel.model.dispose()\n yamlModel.model.dispose()\n})\n\nwatch(() => documentSlug, loadDocumentIntoEditor)\n\nwatch(\n () => [path, method] as const,\n async () => {\n await focusOperation()\n },\n)\n\nwatch(isDiagnosticsPaneExpanded, () => {\n syncEditorBottomPadding()\n})\n\nwatch(editorLanguage, async (nextLanguage, previousLanguage) => {\n const wasDirty = isDirty.value\n // Read from the previous model before switching; getEditorValue() would use currentModel\n // which changes with selectedLanguage, so we would read the (empty) new model otherwise.\n const value = getEditorValueForLanguage(previousLanguage ?? 'json')\n if (!value) {\n selectedLanguage.value = nextLanguage\n await nextTick()\n await focusOperation()\n return\n }\n\n const parsed = parseEditorObject(value, previousLanguage ?? 'json')\n selectedLanguage.value = nextLanguage\n await nextTick()\n if (parsed) {\n applyProgrammaticEditorValue(stringifyDocument(parsed, nextLanguage))\n isDirty.value = wasDirty\n }\n await focusOperation()\n})\n\nwatch(\n isAutoSaveEnabled,\n (isEnabled) => {\n if (!isEnabled) {\n debouncedPersist.cleanup()\n return\n }\n\n if (isDirty.value) {\n const value = getEditorValue()\n if (!value) {\n return\n }\n debouncedPersist.execute(EDITOR_PERSIST_DEBOUNCE_KEY, () =>\n persistEditorToWorkspace(value),\n )\n }\n },\n { flush: 'post' },\n)\n</script>\n\n<template>\n <div\n v-if=\"\n collectionType === 'operation' &&\n getOperationContext(path, method) !== null\n \"\n class=\"flex w-full min-w-0 flex-1 flex-col gap-2\"\n :class=\"editorRootClass\">\n <div\n class=\"grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3\">\n <div\n class=\"flex min-w-0 items-center gap-1 overflow-x-auto whitespace-nowrap\">\n <span class=\"text-c-2 text-xs font-medium whitespace-nowrap\">\n Shortcuts\n </span>\n\n <ScalarButton\n class=\"whitespace-nowrap\"\n size=\"xs\"\n variant=\"ghost\"\n @click=\"focusOperation\">\n <span>Operation</span>\n <span class=\"text-c-3 ml-2 text-[11px]\">\n <ScalarHotkey\n hotkey=\"O\"\n :modifier=\"['Alt']\" />\n </span>\n </ScalarButton>\n\n <ScalarButton\n class=\"whitespace-nowrap\"\n size=\"xs\"\n variant=\"ghost\"\n @click=\"focusOperationServers\">\n <span>Servers</span>\n <span class=\"text-c-3 ml-2 text-[11px]\">\n <ScalarHotkey\n hotkey=\"S\"\n :modifier=\"['Alt']\" />\n </span>\n </ScalarButton>\n </div>\n\n <div\n aria-label=\"Editor language\"\n class=\"bg-b-1 shadow-border flex items-center justify-self-center overflow-hidden rounded-lg p-0.5\"\n role=\"tablist\">\n <ScalarButton\n :aria-selected=\"!isYamlMode\"\n :class=\"getLanguageToggleClass(!isYamlMode)\"\n role=\"tab\"\n size=\"xs\"\n type=\"button\"\n variant=\"ghost\"\n @click=\"editorLanguage = 'json'\">\n JSON\n </ScalarButton>\n <ScalarButton\n :aria-selected=\"isYamlMode\"\n :class=\"getLanguageToggleClass(isYamlMode)\"\n role=\"tab\"\n size=\"xs\"\n type=\"button\"\n variant=\"ghost\"\n @click=\"editorLanguage = 'yaml'\">\n YAML\n </ScalarButton>\n </div>\n\n <div class=\"flex min-w-0 shrink-0 items-center gap-2 justify-self-end\">\n <ScalarButton\n size=\"xs\"\n variant=\"ghost\"\n @click=\"formatDocument\">\n <span>Format {{ isYamlMode ? 'YAML' : 'JSON' }}</span>\n <span class=\"text-c-3 ml-2 text-[11px]\">\n <ScalarHotkey\n hotkey=\"F\"\n :modifier=\"['Alt', 'Shift']\" />\n </span>\n </ScalarButton>\n <ScalarButton\n :aria-label=\"\n isEditorMaximized ? 'Restore editor size' : 'Maximize editor'\n \"\n size=\"xs\"\n variant=\"ghost\"\n @click=\"toggleEditorMaximized\">\n <span>{{ isEditorMaximized ? 'Restore' : 'Maximize' }}</span>\n <span class=\"text-c-3 ml-2 text-[11px]\">\n <ScalarIconArrowsIn\n v-if=\"isEditorMaximized\"\n class=\"size-3.5\" />\n <ScalarIconArrowsOut\n v-else\n class=\"size-3.5\" />\n </span>\n </ScalarButton>\n </div>\n </div>\n\n <div class=\"flex min-h-0 w-full min-w-0 flex-1 rounded-lg border\">\n <div\n class=\"relative w-full min-w-0 flex-1\"\n :class=\"isEditorMaximized ? 'h-full min-h-0' : 'h-[500px]'\">\n <div class=\"pointer-events-none absolute top-2 right-2 z-10\">\n <EditorSavePanel\n :isAutoSaveEnabled=\"isAutoSaveEnabled\"\n :isDirty=\"isDirty\"\n :saveLoader=\"saveLoader\"\n @saveNow=\"saveNow\"\n @update:isAutoSaveEnabled=\"isAutoSaveEnabled = $event\" />\n </div>\n\n <EditorDiagnosticsPanel\n :diagnosticCounts=\"diagnosticCounts\"\n :expanded=\"isDiagnosticsPaneExpanded\"\n :visibleDiagnostics=\"visibleDiagnostics\"\n @focusDiagnostic=\"focusDiagnostic\"\n @toggle=\"isDiagnosticsPaneExpanded = !isDiagnosticsPaneExpanded\" />\n\n <div\n ref=\"monacoEditorRef\"\n class=\"h-full w-full min-w-0 flex-1\" />\n </div>\n </div>\n </div>\n <div v-else>No operation context found</div>\n</template>\n<style scoped>\n.editor-container {\n width: 100%;\n height: 100%;\n}\n\n:deep(.json-path-highlight) {\n background-color: rgba(255, 200, 0, 0.35);\n border-radius: 4px;\n}\n\n:deep(.json-focus-highlight) {\n background-color: color-mix(\n in srgb,\n var(--scalar-color-accent, #24b47e) 18%,\n transparent\n );\n border-radius: 4px;\n}\n</style>\n","<script setup lang=\"ts\">\nimport { ScalarButton, ScalarHotkey, useLoadingState } from '@scalar/components'\nimport { debounce } from '@scalar/helpers/general/debounce'\nimport { isObject } from '@scalar/helpers/object/is-object'\nimport { ScalarIconArrowsIn, ScalarIconArrowsOut } from '@scalar/icons'\nimport * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js'\nimport {\n computed,\n nextTick,\n onBeforeUnmount,\n onMounted,\n ref,\n shallowRef,\n watch,\n} from 'vue'\n\nimport type { CollectionProps } from '@/v2/features/app/helpers/routes'\nimport { useEditor, useJsonPointerLinkSupport } from '@/v2/features/editor'\nimport { createJsonModel } from '@/v2/features/editor/helpers/json/create-json-model'\nimport { createYamlModel } from '@/v2/features/editor/helpers/yaml/create-yaml-model'\nimport { useEditorMarkers } from '@/v2/features/editor/hooks/use-editor-markers'\n\nimport EditorDiagnosticsPanel from './components/EditorDiagnosticsPanel.vue'\nimport EditorSavePanel from './components/EditorSavePanel.vue'\nimport { getDiagnosticCounts } from './helpers/get-diagnostic-counts'\nimport { getOperationContext } from './helpers/get-operation-context'\nimport { getVisibleDiagnostics } from './helpers/get-visible-diagnostics'\nimport { parseEditorObject } from './helpers/parse-editor-object'\nimport { stringifyDocument } from './helpers/stringify-document'\nimport { useEditorState } from './hooks/use-editor-state'\n\nconst { collectionType, documentSlug, method, path, workspaceStore } =\n defineProps<CollectionProps>()\n\nconst MAX_VISIBLE_DIAGNOSTICS = 6\nconst EDITOR_PERSIST_DEBOUNCE_KEY = 'editor:replace-document'\n\nconst monacoEditorRef = ref<HTMLElement>()\nconst editorApi = shallowRef<ReturnType<typeof useEditor>>()\n\nconst saveLoader = useLoadingState()\nconst {\n isAutoSaveEnabled,\n isDirty,\n editorLanguage,\n isDiagnosticsPaneExpanded,\n isEditorMaximized,\n isYamlMode,\n editorBottomPadding,\n editorRootClass,\n getLanguageToggleClass,\n toggleEditorMaximized,\n} = useEditorState()\n\nconst jsonModel = createJsonModel()\nconst yamlModel = createYamlModel()\n\nconst selectedLanguage = ref<'json' | 'yaml'>('json')\n\nconst currentModel = computed(() => {\n return selectedLanguage.value === 'json' ? jsonModel : yamlModel\n})\n\nconst monacoEditorInstance = computed(() => editorApi.value?.editor)\nconst { markers: diagnostics } = useEditorMarkers(monacoEditorInstance)\n\nconst syncEditorBottomPadding = () => {\n editorApi.value?.editor.updateOptions({\n padding: {\n top: 0,\n bottom: editorBottomPadding.value,\n },\n })\n}\n\nconst diagnosticCounts = computed(() => getDiagnosticCounts(diagnostics.value))\nconst visibleDiagnostics = computed(() =>\n getVisibleDiagnostics(diagnostics.value, MAX_VISIBLE_DIAGNOSTICS),\n)\n\nconst focusDiagnostic = (marker: monaco.editor.IMarker) => {\n const editor = editorApi.value?.editor\n if (!editor) {\n return\n }\n editor.setSelection({\n startLineNumber: marker.startLineNumber,\n startColumn: marker.startColumn,\n endLineNumber: marker.endLineNumber,\n endColumn: marker.endColumn,\n })\n editor.revealPositionInCenter({\n lineNumber: marker.startLineNumber,\n column: marker.startColumn,\n })\n}\n\nconst getEditorValue = (): string | null => currentModel.value.model.getValue()\n\n/** Value from the editor for a specific language (use when switching to avoid reading the wrong model). */\nconst getEditorValueForLanguage = (language: 'json' | 'yaml'): string | null =>\n (language === 'json' ? jsonModel : yamlModel).model.getValue()\n\nconst getDocumentValue = async (\n language?: 'json' | 'yaml',\n): Promise<string> => {\n const document = await workspaceStore.getEditableDocument(documentSlug)\n return stringifyDocument(document, language ?? selectedLanguage.value)\n}\n\nconst debouncedPersist = debounce({ delay: 1500 })\n\nconst applyProgrammaticEditorValue = (value: string): void => {\n // Cancel pending auto-save work so synthetic model updates do not persist stale data.\n debouncedPersist.cleanup()\n editorApi.value?.setValue(value, true)\n}\n\nconst loadDocumentIntoEditor = async () => {\n applyProgrammaticEditorValue(await getDocumentValue())\n isDirty.value = false\n await focusOperation()\n}\n\nconst formatDocument = async () => {\n await editorApi.value?.formatDocument()\n}\n\nconst focusOperation = async () => {\n const operationContext = getOperationContext(path, method)\n if (!operationContext) {\n return\n }\n\n await editorApi.value?.focusPath([\n 'paths',\n operationContext.path,\n operationContext.method,\n ])\n}\n\nconst persistEditorToWorkspace = async (value: string) => {\n const parsed = parseEditorObject(value, editorLanguage.value)\n if (!parsed) {\n const firstError = diagnostics.value.find(\n (m) => m.severity === monaco.MarkerSeverity.Error,\n )\n if (firstError) {\n focusDiagnostic(firstError)\n }\n await saveLoader.invalidate()\n return\n }\n\n saveLoader.start()\n await workspaceStore.replaceDocument(documentSlug, parsed)\n isDirty.value = false\n await saveLoader.validate({ duration: 900 })\n}\n\nconst saveNow = async () => {\n const value = getEditorValue()\n if (!value) {\n return\n }\n await persistEditorToWorkspace(value)\n}\n\nconst handleEditorChange = (value: string) => {\n isDirty.value = true\n\n if (!isAutoSaveEnabled.value) {\n return\n }\n\n debouncedPersist.execute(EDITOR_PERSIST_DEBOUNCE_KEY, () =>\n persistEditorToWorkspace(value),\n )\n}\n\nconst focusOperationServers = async () => {\n const operationContext = getOperationContext(path, method)\n if (!operationContext) {\n return\n }\n\n const value = getEditorValue()\n if (!value) {\n return\n }\n\n const parsed = parseEditorObject(value, editorLanguage.value)\n\n if (!parsed || !isObject(parsed.paths)) {\n return\n }\n\n const pathsObject = parsed.paths as Record<string, unknown>\n const operationPathItem = pathsObject[operationContext.path]\n if (!isObject(operationPathItem)) {\n return\n }\n\n const operation = operationPathItem[operationContext.method]\n if (!isObject(operation)) {\n return\n }\n\n // Add default servers if not present\n operation.servers ??= []\n\n // Update the editor value\n editorApi.value?.setValue(stringifyDocument(parsed, editorLanguage.value))\n await editorApi.value?.focusPath([\n 'paths',\n operationContext.path,\n operationContext.method,\n 'servers',\n ])\n}\n\nuseJsonPointerLinkSupport(editorApi, currentModel)\n\nonMounted(() => {\n editorApi.value = useEditor({\n element: monacoEditorRef.value ?? document.createElement('div'),\n onChange: handleEditorChange,\n model: currentModel,\n actions: [\n {\n id: 'scalar.editor.focusOperation',\n label: 'Focus Operation',\n keybindings: [monaco.KeyMod.Alt | monaco.KeyCode.KeyO],\n run: async () => {\n await focusOperation()\n },\n },\n {\n id: 'scalar.editor.focusOperationServers',\n label: 'Focus Operation Servers',\n keybindings: [monaco.KeyMod.Alt | monaco.KeyCode.KeyS],\n run: async () => {\n await focusOperationServers()\n },\n },\n {\n id: 'scalar.editor.formatDocument',\n label: 'Format Document',\n keybindings: [\n monaco.KeyMod.Alt | monaco.KeyMod.Shift | monaco.KeyCode.KeyF,\n ],\n run: async () => {\n await formatDocument()\n },\n },\n ],\n })\n\n syncEditorBottomPadding()\n void loadDocumentIntoEditor()\n})\n\nonBeforeUnmount(() => {\n debouncedPersist.cleanup()\n\n // Persist if there is a pending save\n if (isDirty.value && isAutoSaveEnabled.value) {\n void saveNow()\n }\n editorApi.value?.dispose?.()\n // Dispose models created at setup; useEditor only disposes the editor widget, not external models.\n jsonModel.model.dispose()\n yamlModel.model.dispose()\n})\n\nwatch(() => documentSlug, loadDocumentIntoEditor)\n\nwatch(\n () => [path, method] as const,\n async () => {\n await focusOperation()\n },\n)\n\nwatch(isDiagnosticsPaneExpanded, () => {\n syncEditorBottomPadding()\n})\n\nwatch(editorLanguage, async (nextLanguage, previousLanguage) => {\n const wasDirty = isDirty.value\n // Read from the previous model before switching; getEditorValue() would use currentModel\n // which changes with selectedLanguage, so we would read the (empty) new model otherwise.\n const value = getEditorValueForLanguage(previousLanguage ?? 'json')\n if (!value) {\n selectedLanguage.value = nextLanguage\n await nextTick()\n await focusOperation()\n return\n }\n\n const parsed = parseEditorObject(value, previousLanguage ?? 'json')\n selectedLanguage.value = nextLanguage\n await nextTick()\n if (parsed) {\n applyProgrammaticEditorValue(stringifyDocument(parsed, nextLanguage))\n isDirty.value = wasDirty\n }\n await focusOperation()\n})\n\nwatch(\n isAutoSaveEnabled,\n (isEnabled) => {\n if (!isEnabled) {\n debouncedPersist.cleanup()\n return\n }\n\n if (isDirty.value) {\n const value = getEditorValue()\n if (!value) {\n return\n }\n debouncedPersist.execute(EDITOR_PERSIST_DEBOUNCE_KEY, () =>\n persistEditorToWorkspace(value),\n )\n }\n },\n { flush: 'post' },\n)\n</script>\n\n<template>\n <div\n v-if=\"\n collectionType === 'operation' &&\n getOperationContext(path, method) !== null\n \"\n class=\"flex w-full min-w-0 flex-1 flex-col gap-2\"\n :class=\"editorRootClass\">\n <div\n class=\"grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3\">\n <div\n class=\"flex min-w-0 items-center gap-1 overflow-x-auto whitespace-nowrap\">\n <span class=\"text-c-2 text-xs font-medium whitespace-nowrap\">\n Shortcuts\n </span>\n\n <ScalarButton\n class=\"whitespace-nowrap\"\n size=\"xs\"\n variant=\"ghost\"\n @click=\"focusOperation\">\n <span>Operation</span>\n <span class=\"text-c-3 ml-2 text-[11px]\">\n <ScalarHotkey\n hotkey=\"O\"\n :modifier=\"['Alt']\" />\n </span>\n </ScalarButton>\n\n <ScalarButton\n class=\"whitespace-nowrap\"\n size=\"xs\"\n variant=\"ghost\"\n @click=\"focusOperationServers\">\n <span>Servers</span>\n <span class=\"text-c-3 ml-2 text-[11px]\">\n <ScalarHotkey\n hotkey=\"S\"\n :modifier=\"['Alt']\" />\n </span>\n </ScalarButton>\n </div>\n\n <div\n aria-label=\"Editor language\"\n class=\"bg-b-1 shadow-border flex items-center justify-self-center overflow-hidden rounded-lg p-0.5\"\n role=\"tablist\">\n <ScalarButton\n :aria-selected=\"!isYamlMode\"\n :class=\"getLanguageToggleClass(!isYamlMode)\"\n role=\"tab\"\n size=\"xs\"\n type=\"button\"\n variant=\"ghost\"\n @click=\"editorLanguage = 'json'\">\n JSON\n </ScalarButton>\n <ScalarButton\n :aria-selected=\"isYamlMode\"\n :class=\"getLanguageToggleClass(isYamlMode)\"\n role=\"tab\"\n size=\"xs\"\n type=\"button\"\n variant=\"ghost\"\n @click=\"editorLanguage = 'yaml'\">\n YAML\n </ScalarButton>\n </div>\n\n <div class=\"flex min-w-0 shrink-0 items-center gap-2 justify-self-end\">\n <ScalarButton\n size=\"xs\"\n variant=\"ghost\"\n @click=\"formatDocument\">\n <span>Format {{ isYamlMode ? 'YAML' : 'JSON' }}</span>\n <span class=\"text-c-3 ml-2 text-[11px]\">\n <ScalarHotkey\n hotkey=\"F\"\n :modifier=\"['Alt', 'Shift']\" />\n </span>\n </ScalarButton>\n <ScalarButton\n :aria-label=\"\n isEditorMaximized ? 'Restore editor size' : 'Maximize editor'\n \"\n size=\"xs\"\n variant=\"ghost\"\n @click=\"toggleEditorMaximized\">\n <span>{{ isEditorMaximized ? 'Restore' : 'Maximize' }}</span>\n <span class=\"text-c-3 ml-2 text-[11px]\">\n <ScalarIconArrowsIn\n v-if=\"isEditorMaximized\"\n class=\"size-3.5\" />\n <ScalarIconArrowsOut\n v-else\n class=\"size-3.5\" />\n </span>\n </ScalarButton>\n </div>\n </div>\n\n <div class=\"flex min-h-0 w-full min-w-0 flex-1 rounded-lg border\">\n <div\n class=\"relative w-full min-w-0 flex-1\"\n :class=\"isEditorMaximized ? 'h-full min-h-0' : 'h-[500px]'\">\n <div class=\"pointer-events-none absolute top-2 right-2 z-10\">\n <EditorSavePanel\n :isAutoSaveEnabled=\"isAutoSaveEnabled\"\n :isDirty=\"isDirty\"\n :saveLoader=\"saveLoader\"\n @saveNow=\"saveNow\"\n @update:isAutoSaveEnabled=\"isAutoSaveEnabled = $event\" />\n </div>\n\n <EditorDiagnosticsPanel\n :diagnosticCounts=\"diagnosticCounts\"\n :expanded=\"isDiagnosticsPaneExpanded\"\n :visibleDiagnostics=\"visibleDiagnostics\"\n @focusDiagnostic=\"focusDiagnostic\"\n @toggle=\"isDiagnosticsPaneExpanded = !isDiagnosticsPaneExpanded\" />\n\n <div\n ref=\"monacoEditorRef\"\n class=\"h-full w-full min-w-0 flex-1\" />\n </div>\n </div>\n </div>\n <div v-else>No operation context found</div>\n</template>\n<style scoped>\n.editor-container {\n width: 100%;\n height: 100%;\n}\n\n:deep(.json-path-highlight) {\n background-color: rgba(255, 200, 0, 0.35);\n border-radius: 4px;\n}\n\n:deep(.json-focus-highlight) {\n background-color: color-mix(\n in srgb,\n var(--scalar-color-accent, #24b47e) 18%,\n transparent\n );\n border-radius: 4px;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;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AGjC,YAgBe,MAAA,aAAA,EAAA;KAfZ,cAAyB,MAAA,kBAAiB,GAAA,wBAAA;KAG3C,MAAK;KACL,SAAQ;KACP,SAAO,MAAA,sBAAqB;;4BACgC,CAA7D,mBAA6D,QAAA,MAAA,gBAApD,MAAA,kBAAiB,GAAA,YAAA,WAAA,EAAA,EAAA,EAC1B,mBAOO,QAPP,YAOO,CALG,MAAA,kBAAiB,IAAA,WAAA,EADzB,YAEqB,MAAA,mBAAA,EAAA;;MAAnB,OAAM;yBACR,YAEqB,MAAA,oBAAA,EAAA;;MAAnB,OAAM;;;;OAMhB,mBAwBM,OAxBN,YAwBM,CAvBJ,mBAsBM,OAAA,EArBJ,OAAK,eAAA,CAAC,kCACE,MAAA,kBAAiB,GAAA,mBAAA,YAAA,CAAA,EAAA,EAAA;IACzB,mBAOM,OAPN,aAOM,CANJ,YAK2D,yBAAA;KAJxD,mBAAmB,MAAA,kBAAiB;KACpC,SAAS,MAAA,QAAO;KAChB,YAAY,MAAA,WAAU;KACtB,WAAS;KACT,8BAAwB,OAAA,OAAA,OAAA,MAAA,WAAE,kBAAA,QAAoB;;;;;;IAGnD,YAKqE,gCAAA;KAJlE,kBAAkB,iBAAA;KAClB,UAAU,MAAA,0BAAyB;KACnC,oBAAoB,mBAAA;KACpB,mBAAiB;KACjB,UAAM,OAAA,OAAA,OAAA,MAAA,WAAE,0BAAA,QAAyB,CAAI,MAAA,0BAAyB;;;;;;IAEjE,mBAEyC,OAAA;cADnC;KAAJ,KAAI;KACJ,OAAM;;iCAId,mBAA4C,OAAA,aAAhC,6BAA0B"}
@@ -0,0 +1,46 @@
1
+ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BmmBcIzD.js";
2
+ import { t as ScalarAsciiArt_default } from "./ScalarAsciiArt-BjuSnj8e.js";
3
+ import { createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, unref } from "vue";
4
+ import { ScalarHotkey } from "@scalar/components";
5
+ //#region src/assets/keycap.ascii?raw
6
+ var keycap_default = " .:=+++++=================-\n .--#* :.\n .-:-** -.\n .:-::-+* =:\n .:-:::-=# ::\n .-:::----** ..\n .-:::::---=# ..\n :-::::::----** ..\n.:-::::::::----*= ..\n.-::::::::------+- ..\n..::::::::-------= ..\n .:::::----------++ ..\n .:::----------+**+*++*+*++*+++*++++++++++:.\n ------------+*+=-=======================.\n .----------+*+=========================:.\n :--------+*+=-========================.\n .=------+*+=-========================:.\n .=----+*+=-------=================+-.\n .----+*+=----------================.\n .:=-+*+=----------=-==============-\n .-+*+=----------------===========.\n .-+=------------------====-====:.";
7
+ //#endregion
8
+ //#region src/components/EmptyState.vue?vue&type=script&setup=true&lang.ts
9
+ var _hoisted_1 = { class: "flex-center flex w-full scale-75" };
10
+ var _hoisted_2 = { class: "relative" };
11
+ var _hoisted_3 = { class: "relative -ml-12" };
12
+ var _hoisted_4 = { class: "relative -ml-12" };
13
+ //#endregion
14
+ //#region src/components/EmptyState.vue
15
+ var EmptyState_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
16
+ __name: "EmptyState",
17
+ setup(__props) {
18
+ return (_ctx, _cache) => {
19
+ return openBlock(), createElementBlock("div", _hoisted_1, [
20
+ createElementVNode("div", _hoisted_2, [createVNode(unref(ScalarHotkey), {
21
+ class: "keycap-hotkey right-14 border-transparent py-0 text-xl",
22
+ hotkey: ""
23
+ }), createVNode(ScalarAsciiArt_default, {
24
+ art: unref(keycap_default),
25
+ class: "text-c-3 !leading-[6px]"
26
+ }, null, 8, ["art"])]),
27
+ createElementVNode("div", _hoisted_3, [createVNode(unref(ScalarHotkey), {
28
+ class: "keycap-hotkey right-14 border-transparent py-0 text-xl",
29
+ hotkey: "",
30
+ modifier: ["Shift"]
31
+ }), createVNode(ScalarAsciiArt_default, {
32
+ art: unref(keycap_default),
33
+ class: "keycap-n !leading-[6px]"
34
+ }, null, 8, ["art"])]),
35
+ createElementVNode("div", _hoisted_4, [_cache[0] || (_cache[0] = createElementVNode("div", { class: "keycap-hotkey right-16 text-xl" }, "P", -1)), createVNode(ScalarAsciiArt_default, {
36
+ art: unref(keycap_default),
37
+ class: "keycap-n !leading-[6px]"
38
+ }, null, 8, ["art"])])
39
+ ]);
40
+ };
41
+ }
42
+ }), [["__scopeId", "data-v-b1211b87"]]);
43
+ //#endregion
44
+ export { EmptyState_default as t };
45
+
46
+ //# sourceMappingURL=EmptyState-Cnm7hGW5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyState-Cnm7hGW5.js","names":[],"sources":["../src/assets/keycap.ascii?raw","../src/components/EmptyState.vue","../src/components/EmptyState.vue"],"sourcesContent":["export default \" .:=+++++=================-\\n .--#* :.\\n .-:-** -.\\n .:-::-+* =:\\n .:-:::-=# ::\\n .-:::----** ..\\n .-:::::---=# ..\\n :-::::::----** ..\\n.:-::::::::----*= ..\\n.-::::::::------+- ..\\n..::::::::-------= ..\\n .:::::----------++ ..\\n .:::----------+**+*++*+*++*+++*++++++++++:.\\n ------------+*+=-=======================.\\n .----------+*+=========================:.\\n :--------+*+=-========================.\\n .=------+*+=-========================:.\\n .=----+*+=-------=================+-.\\n .----+*+=----------================.\\n .:=-+*+=----------=-==============-\\n .-+*+=----------------===========.\\n .-+=------------------====-====:.\"","<script setup lang=\"ts\">\nimport { ScalarHotkey } from '@scalar/components'\n\nimport Keycap from '@/assets/keycap.ascii?raw'\n\nimport ScalarAsciiArt from './ScalarAsciiArt.vue'\n</script>\n<template>\n <div class=\"flex-center flex w-full scale-75\">\n <div class=\"relative\">\n <ScalarHotkey\n class=\"keycap-hotkey right-14 border-transparent py-0 text-xl\"\n hotkey=\"\" />\n <ScalarAsciiArt\n :art=\"Keycap\"\n class=\"text-c-3 !leading-[6px]\" />\n </div>\n <div class=\"relative -ml-12\">\n <ScalarHotkey\n class=\"keycap-hotkey right-14 border-transparent py-0 text-xl\"\n hotkey=\"\"\n :modifier=\"['Shift']\" />\n <ScalarAsciiArt\n :art=\"Keycap\"\n class=\"keycap-n !leading-[6px]\" />\n </div>\n <div class=\"relative -ml-12\">\n <div class=\"keycap-hotkey right-16 text-xl\">P</div>\n <ScalarAsciiArt\n :art=\"Keycap\"\n class=\"keycap-n !leading-[6px]\" />\n </div>\n </div>\n</template>\n<style scoped>\n.keycap-n {\n background: -webkit-linear-gradient(\n 5deg,\n transparent 30%,\n var(--scalar-color-3) 50%\n );\n -webkit-background-clip: text;\n background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n\n.keycap-hotkey {\n position: absolute;\n top: 32px;\n line-height: 26px;\n}\n</style>\n","<script setup lang=\"ts\">\nimport { ScalarHotkey } from '@scalar/components'\n\nimport Keycap from '@/assets/keycap.ascii?raw'\n\nimport ScalarAsciiArt from './ScalarAsciiArt.vue'\n</script>\n<template>\n <div class=\"flex-center flex w-full scale-75\">\n <div class=\"relative\">\n <ScalarHotkey\n class=\"keycap-hotkey right-14 border-transparent py-0 text-xl\"\n hotkey=\"\" />\n <ScalarAsciiArt\n :art=\"Keycap\"\n class=\"text-c-3 !leading-[6px]\" />\n </div>\n <div class=\"relative -ml-12\">\n <ScalarHotkey\n class=\"keycap-hotkey right-14 border-transparent py-0 text-xl\"\n hotkey=\"\"\n :modifier=\"['Shift']\" />\n <ScalarAsciiArt\n :art=\"Keycap\"\n class=\"keycap-n !leading-[6px]\" />\n </div>\n <div class=\"relative -ml-12\">\n <div class=\"keycap-hotkey right-16 text-xl\">P</div>\n <ScalarAsciiArt\n :art=\"Keycap\"\n class=\"keycap-n !leading-[6px]\" />\n </div>\n </div>\n</template>\n<style scoped>\n.keycap-n {\n background: -webkit-linear-gradient(\n 5deg,\n transparent 30%,\n var(--scalar-color-3) 50%\n );\n -webkit-background-clip: text;\n background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n\n.keycap-hotkey {\n position: absolute;\n top: 32px;\n line-height: 26px;\n}\n</style>\n"],"mappings":";;;;;AAAA,IAAA,iBAAe;;;;;;;;;;;;;uBEQb,mBAwBM,OAxBN,YAwBM;IAvBJ,mBAOM,OAPN,YAOM,CANJ,YAEc,MAAA,aAAA,EAAA;KADZ,OAAM;KACN,QAAO;QACT,YAEoC,wBAAA;KADjC,KAAK,MAAA,eAAM;KACZ,OAAM;;IAEV,mBAQM,OARN,YAQM,CAPJ,YAG0B,MAAA,aAAA,EAAA;KAFxB,OAAM;KACN,QAAO;KACN,UAAU,CAAA,QAAS;QACtB,YAEoC,wBAAA;KADjC,KAAK,MAAA,eAAM;KACZ,OAAM;;IAEV,mBAKM,OALN,YAKM,CAAA,OAAA,OAAA,OAAA,KAJJ,mBAAmD,OAAA,EAA9C,OAAM,kCAAgC,EAAC,KAAC,GAAA,GAC7C,YAEoC,wBAAA;KADjC,KAAK,MAAA,eAAM;KACZ,OAAM"}