@scalar/api-client 2.2.50 → 2.2.52

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 (406) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +30 -30
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  7. package/dist/components/AddressBar/AddressBarHistory.vue2.js +22 -22
  8. package/dist/components/CodeInput/CodeInput.vue.d.ts +4 -2
  9. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  10. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  11. package/dist/components/CodeInput/CodeInput.vue2.js +38 -38
  12. package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
  13. package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
  14. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  15. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +13 -13
  16. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  17. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +143 -114
  18. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
  19. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +59 -51
  20. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
  21. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  22. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  23. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +85 -82
  24. package/dist/components/CommandPalette/WatchModeToggle.vue.js +2 -2
  25. package/dist/components/ContextBar.vue.js +2 -2
  26. package/dist/components/ContextBar.vue2.js +2 -2
  27. package/dist/components/DataTable/DataTable.vue.js +1 -1
  28. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  29. package/dist/components/DataTable/DataTableCell.vue.js +11 -11
  30. package/dist/components/DataTable/DataTableCheckbox.vue.js +3 -3
  31. package/dist/components/DataTable/DataTableInput.vue.d.ts +175 -6
  32. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  33. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  34. package/dist/components/DataTable/DataTableInput.vue2.js +57 -48
  35. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  36. package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -1
  37. package/dist/components/DataTable/DataTableText.vue.js +1 -1
  38. package/dist/components/EmptyState.vue.js +1 -1
  39. package/dist/components/EmptyState.vue2.js +4 -4
  40. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  41. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +13 -13
  42. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  43. package/dist/components/Form/Form.vue.js +56 -36
  44. package/dist/components/Form/LabelInput.vue.d.ts +14 -0
  45. package/dist/components/Form/LabelInput.vue.d.ts.map +1 -0
  46. package/dist/components/Form/LabelInput.vue.js +7 -0
  47. package/dist/components/Form/LabelInput.vue2.js +42 -0
  48. package/dist/components/HelpfulLink.vue.js +1 -1
  49. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +3 -3
  50. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  51. package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
  52. package/dist/components/HttpMethod/HttpMethod.vue2.js +1 -1
  53. package/dist/components/IconSelector.vue.js +3 -3
  54. package/dist/components/ImportCollection/DropEventListener.vue.js +3 -3
  55. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
  56. package/dist/components/ImportCollection/ImportNowButton.vue.js +8 -8
  57. package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -1
  58. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +1 -1
  59. package/dist/components/ImportCollection/PrefetchError.vue.js +1 -1
  60. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
  61. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +15 -15
  62. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  63. package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +2 -2
  64. package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -1
  65. package/dist/components/ImportCurl/ImportCurlModal.vue.js +1 -1
  66. package/dist/components/ImportCurl/ImportCurlModal.vue2.js +13 -13
  67. package/dist/components/ScalarAsciiArt.vue.js +3 -3
  68. package/dist/components/Search/useSearch.d.ts.map +1 -1
  69. package/dist/components/Search/useSearch.js +5 -13
  70. package/dist/components/Server/ServerDropdown.vue.d.ts +0 -1
  71. package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
  72. package/dist/components/Server/ServerDropdown.vue.js +40 -57
  73. package/dist/components/Server/ServerDropdownItem.vue.d.ts +0 -1
  74. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  75. package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
  76. package/dist/components/Server/ServerDropdownItem.vue2.js +19 -20
  77. package/dist/components/Server/ServerSelector.vue.d.ts +12 -0
  78. package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -0
  79. package/dist/components/Server/ServerSelector.vue.js +85 -0
  80. package/dist/components/Server/ServerSelector.vue2.js +4 -0
  81. package/dist/components/Server/ServerVariablesForm.vue.d.ts +1 -1
  82. package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
  83. package/dist/components/Server/ServerVariablesForm.vue.js +1 -1
  84. package/dist/components/Server/ServerVariablesSelect.vue.js +1 -1
  85. package/dist/components/Server/ServerVariablesTextbox.vue.js +1 -1
  86. package/dist/components/Server/index.d.ts +1 -0
  87. package/dist/components/Server/index.d.ts.map +1 -1
  88. package/dist/components/Server/index.js +6 -4
  89. package/dist/components/Server/types.d.ts.map +1 -1
  90. package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -1
  91. package/dist/components/SideNav/DownloadAppButton.vue.js +2 -2
  92. package/dist/components/SideNav/DownloadAppButton.vue2.js +6 -6
  93. package/dist/components/SideNav/SideHelp.vue.js +12 -12
  94. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  95. package/dist/components/SideNav/SideNav.vue.js +73 -58
  96. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  97. package/dist/components/SideNav/SideNavLink.vue.js +3 -3
  98. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +2 -2
  99. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -1
  100. package/dist/components/SideNav/SideNavRouterLink.vue.js +17 -28
  101. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
  102. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +1 -1
  103. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +1 -1
  104. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +12 -12
  105. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +1 -1
  106. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +4 -4
  107. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +2 -2
  108. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +3 -3
  109. package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -4
  110. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  111. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  112. package/dist/components/Sidebar/Sidebar.vue2.js +34 -34
  113. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  114. package/dist/components/Sidebar/SidebarButton.vue.js +6 -6
  115. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +2 -2
  116. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  117. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  118. package/dist/components/Sidebar/SidebarListElement.vue2.js +36 -46
  119. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  120. package/dist/components/Sidebar/SidebarListElementActions.vue.js +7 -7
  121. package/dist/components/Sidebar/SidebarToggle.vue.d.ts +1 -8
  122. package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
  123. package/dist/components/Sidebar/SidebarToggle.vue.js +20 -21
  124. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  125. package/dist/components/TopNav/TopNav.vue.js +104 -85
  126. package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
  127. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  128. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  129. package/dist/components/TopNav/TopNavItem.vue2.js +1 -1
  130. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  131. package/dist/components/ViewLayout/ViewLayout.vue.js +16 -10
  132. package/dist/components/ViewLayout/ViewLayout.vue2.js +4 -0
  133. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  134. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +29 -29
  135. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
  136. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  137. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +20 -13
  138. package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +4 -0
  139. package/dist/constants.d.ts +16 -12
  140. package/dist/constants.d.ts.map +1 -1
  141. package/dist/constants.js +35 -6
  142. package/dist/hooks/index.d.ts +0 -1
  143. package/dist/hooks/index.d.ts.map +1 -1
  144. package/dist/hooks/index.js +5 -7
  145. package/dist/hooks/useFileDialog.d.ts +1 -1
  146. package/dist/hooks/useFileDialog.d.ts.map +1 -1
  147. package/dist/hooks/useFileDialog.js +1 -6
  148. package/dist/hooks/useResponseBody.d.ts.map +1 -1
  149. package/dist/hooks/useResponseBody.js +3 -9
  150. package/dist/hooks/useSidebar.d.ts +19 -2
  151. package/dist/hooks/useSidebar.d.ts.map +1 -1
  152. package/dist/hooks/useSidebar.js +25 -9
  153. package/dist/hooks/useSidebar.test.d.ts +2 -0
  154. package/dist/hooks/useSidebar.test.d.ts.map +1 -0
  155. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  156. package/dist/layouts/App/ApiClientApp.vue.js +41 -35
  157. package/dist/layouts/App/MainLayout.vue.js +4 -4
  158. package/dist/layouts/App/create-api-client-app.d.ts +207 -255
  159. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  160. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  161. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  162. package/dist/layouts/Modal/ApiClientModal.vue2.js +8 -8
  163. package/dist/layouts/Modal/create-api-client-modal.d.ts +414 -510
  164. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  165. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
  166. package/dist/layouts/Web/ApiClientWeb.vue.js +35 -29
  167. package/dist/layouts/Web/create-api-client-web.d.ts +207 -255
  168. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  169. package/dist/libs/create-client.d.ts +200 -248
  170. package/dist/libs/create-client.d.ts.map +1 -1
  171. package/dist/libs/create-client.js +79 -63
  172. package/dist/libs/errors.d.ts.map +1 -1
  173. package/dist/libs/extractAttachmentFilename.d.ts.map +1 -1
  174. package/dist/libs/extractAttachmentFilename.js +1 -3
  175. package/dist/libs/find-request.d.ts.map +1 -1
  176. package/dist/libs/getOpenApiDocumentDetails.d.ts.map +1 -1
  177. package/dist/libs/importers/curl.d.ts.map +1 -1
  178. package/dist/libs/importers/curl.js +2 -12
  179. package/dist/libs/isUrl.d.ts.map +1 -1
  180. package/dist/libs/local-storage.d.ts.map +1 -1
  181. package/dist/libs/local-storage.js +1 -9
  182. package/dist/libs/normalize-headers.d.ts.map +1 -1
  183. package/dist/libs/normalize-headers.js +2 -6
  184. package/dist/libs/parse-curl.d.ts.map +1 -1
  185. package/dist/libs/parse-curl.js +1 -5
  186. package/dist/libs/postman.d.ts.map +1 -1
  187. package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
  188. package/dist/libs/send-request/create-fetch-body.d.ts.map +1 -1
  189. package/dist/libs/send-request/create-fetch-body.js +1 -2
  190. package/dist/libs/send-request/create-fetch-headers.d.ts.map +1 -1
  191. package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
  192. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  193. package/dist/libs/send-request/create-request-operation.js +6 -12
  194. package/dist/libs/send-request/create-request-operation.test.d.ts +0 -3
  195. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  196. package/dist/libs/string-template.d.ts.map +1 -1
  197. package/dist/libs/string-template.js +1 -4
  198. package/dist/router.d.ts.map +1 -1
  199. package/dist/routes.d.ts +62 -14
  200. package/dist/routes.d.ts.map +1 -1
  201. package/dist/routes.js +93 -75
  202. package/dist/store/active-entities.d.ts +32 -32
  203. package/dist/store/active-entities.d.ts.map +1 -1
  204. package/dist/store/active-entities.js +43 -39
  205. package/dist/store/collections.d.ts +164 -164
  206. package/dist/store/collections.d.ts.map +1 -1
  207. package/dist/store/cookies.d.ts +4 -4
  208. package/dist/store/cookies.d.ts.map +1 -1
  209. package/dist/store/cookies.js +1 -5
  210. package/dist/store/environment.d.ts +4 -4
  211. package/dist/store/request-example.d.ts +2 -2
  212. package/dist/store/requests.d.ts +4 -4
  213. package/dist/store/requests.d.ts.map +1 -1
  214. package/dist/store/security-schemes.d.ts +8 -8
  215. package/dist/store/store-context.d.ts.map +1 -1
  216. package/dist/store/store.d.ts +200 -248
  217. package/dist/store/store.d.ts.map +1 -1
  218. package/dist/store/tags.d.ts.map +1 -1
  219. package/dist/store/workspace.d.ts +4 -4
  220. package/dist/style.css +1 -1
  221. package/dist/tailwind/desktop-variants.d.ts.map +1 -1
  222. package/dist/types/vue.d.ts.map +1 -1
  223. package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
  224. package/dist/views/Collection/Collection.vue.js +4 -0
  225. package/dist/views/Collection/Collection.vue2.js +50 -0
  226. package/dist/views/Collection/CollectionAuthentication.vue.d.ts +3 -0
  227. package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -0
  228. package/dist/views/Collection/CollectionAuthentication.vue.js +4 -0
  229. package/dist/views/Collection/CollectionAuthentication.vue2.js +16 -0
  230. package/dist/views/Collection/CollectionCookies.vue.d.ts +3 -0
  231. package/dist/views/Collection/CollectionCookies.vue.d.ts.map +1 -0
  232. package/dist/views/Collection/CollectionCookies.vue.js +4 -0
  233. package/dist/views/Collection/CollectionCookies.vue2.js +16 -0
  234. package/dist/views/Collection/CollectionEnvironment.vue.d.ts +3 -0
  235. package/dist/views/Collection/CollectionEnvironment.vue.d.ts.map +1 -0
  236. package/dist/views/Collection/CollectionEnvironment.vue.js +4 -0
  237. package/dist/views/Collection/CollectionEnvironment.vue2.js +16 -0
  238. package/dist/views/{Servers/Servers.vue.d.ts → Collection/CollectionInfoForm.vue.d.ts} +1 -1
  239. package/dist/views/Collection/CollectionInfoForm.vue.d.ts.map +1 -0
  240. package/dist/views/Collection/CollectionInfoForm.vue.js +7 -0
  241. package/dist/views/Collection/CollectionInfoForm.vue2.js +70 -0
  242. package/dist/views/Collection/CollectionNavigation.vue.d.ts +6 -0
  243. package/dist/views/Collection/CollectionNavigation.vue.d.ts.map +1 -0
  244. package/dist/views/Collection/CollectionNavigation.vue.js +142 -0
  245. package/dist/views/Collection/CollectionNavigation.vue2.js +4 -0
  246. package/dist/views/Collection/CollectionOverview.vue.d.ts +3 -0
  247. package/dist/views/Collection/CollectionOverview.vue.d.ts.map +1 -0
  248. package/dist/views/Collection/CollectionOverview.vue.js +4 -0
  249. package/dist/views/Collection/CollectionOverview.vue2.js +37 -0
  250. package/dist/views/Collection/CollectionScripts.vue.d.ts +3 -0
  251. package/dist/views/Collection/CollectionScripts.vue.d.ts.map +1 -0
  252. package/dist/views/Collection/CollectionScripts.vue.js +4 -0
  253. package/dist/views/Collection/CollectionScripts.vue2.js +16 -0
  254. package/dist/views/Collection/CollectionServerForm.vue.d.ts +10 -0
  255. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -0
  256. package/dist/views/Collection/CollectionServerForm.vue.js +74 -0
  257. package/dist/views/Collection/CollectionServerForm.vue2.js +4 -0
  258. package/dist/views/{Servers/ServerForm.vue.d.ts → Collection/CollectionServers.vue.d.ts} +1 -1
  259. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -0
  260. package/dist/views/Collection/CollectionServers.vue.js +4 -0
  261. package/dist/views/Collection/CollectionServers.vue2.js +124 -0
  262. package/dist/views/Collection/CollectionSettings.vue.d.ts +3 -0
  263. package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -0
  264. package/dist/views/Collection/CollectionSettings.vue.js +7 -0
  265. package/dist/views/Collection/CollectionSettings.vue2.js +124 -0
  266. package/dist/views/Collection/CollectionSync.vue.d.ts +3 -0
  267. package/dist/views/Collection/CollectionSync.vue.d.ts.map +1 -0
  268. package/dist/views/Collection/CollectionSync.vue.js +4 -0
  269. package/dist/views/Collection/CollectionSync.vue2.js +16 -0
  270. package/dist/views/Collection/components/MarkdownInput.vue.d.ts +16 -0
  271. package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -0
  272. package/dist/views/Collection/components/MarkdownInput.vue.js +7 -0
  273. package/dist/views/Collection/components/MarkdownInput.vue2.js +95 -0
  274. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
  275. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +7 -7
  276. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
  277. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +1 -3
  278. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
  279. package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +1 -5
  280. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
  281. package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +1 -5
  282. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  283. package/dist/views/Cookies/CookieForm.vue.js +18 -23
  284. package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -1
  285. package/dist/views/Cookies/CookieModal.vue.js +1 -1
  286. package/dist/views/Cookies/CookieModal.vue2.js +7 -7
  287. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  288. package/dist/views/Cookies/Cookies.vue2.js +96 -78
  289. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  290. package/dist/views/Environment/Environment.vue2.js +125 -112
  291. package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +1 -1
  292. package/dist/views/Environment/EnvironmentColorModal.vue.js +5 -5
  293. package/dist/views/Environment/EnvironmentColors.vue.js +8 -8
  294. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +1 -1
  295. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  296. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +16 -16
  297. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  298. package/dist/views/Request/Request.vue.js +2 -2
  299. package/dist/views/Request/Request.vue2.js +117 -170
  300. package/dist/views/Request/RequestRoot.vue.d.ts +13 -0
  301. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -0
  302. package/dist/views/Request/RequestRoot.vue.js +7 -0
  303. package/dist/views/Request/RequestRoot.vue2.js +78 -0
  304. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -1
  305. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  306. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +9 -9
  307. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -1
  308. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  309. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +5 -5
  310. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  311. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  312. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +104 -89
  313. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +5 -5
  314. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  315. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
  316. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  317. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
  318. package/dist/views/Request/RequestSection/RequestBody.vue2.js +59 -65
  319. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
  320. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +3 -3
  321. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +22 -23
  322. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
  323. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  324. package/dist/views/Request/RequestSection/RequestParams.vue.js +14 -14
  325. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
  326. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  327. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +6 -6
  328. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
  329. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  330. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  331. package/dist/views/Request/RequestSection/RequestSection.vue2.js +38 -38
  332. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
  333. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  334. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  335. package/dist/views/Request/RequestSection/RequestTable.vue2.js +34 -33
  336. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  337. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
  338. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +5 -5
  339. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts.map +1 -1
  340. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +2 -6
  341. package/dist/views/Request/RequestSidebar.vue.d.ts +3 -10
  342. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  343. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  344. package/dist/views/Request/RequestSidebar.vue2.js +186 -188
  345. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  346. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  347. package/dist/views/Request/RequestSidebarItem.vue2.js +290 -173
  348. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  349. package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
  350. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -13
  351. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +1 -4
  352. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  353. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  354. package/dist/views/Request/RequestSubpageHeader.vue2.js +51 -51
  355. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  356. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  357. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +12 -12
  358. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
  359. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -1
  360. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
  361. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
  362. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +2 -2
  363. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  364. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
  365. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +1 -1
  366. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
  367. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +8 -8
  368. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +1 -1
  369. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  370. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  371. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +20 -20
  372. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +25 -26
  373. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
  374. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +3 -3
  375. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +1 -1
  376. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
  377. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +7 -7
  378. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  379. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  380. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +7 -7
  381. package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
  382. package/dist/views/Request/hooks/useOpenApiWatcher.js +12 -37
  383. package/dist/views/Request/libs/request.d.ts +4 -0
  384. package/dist/views/Request/libs/request.d.ts.map +1 -1
  385. package/dist/views/Request/libs/request.js +2 -1
  386. package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
  387. package/dist/views/Request/libs/watch-mode.js +63 -63
  388. package/dist/views/Request/types/sidebar-item.d.ts +1 -1
  389. package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
  390. package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
  391. package/dist/views/Settings/Settings.vue2.js +8 -8
  392. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  393. package/dist/views/Settings/SettingsGeneral.vue.js +9 -11
  394. package/dist/views/Settings/components/SettingsAppearance.vue.js +6 -6
  395. package/dist/vitest.setup.d.ts +16 -0
  396. package/dist/vitest.setup.d.ts.map +1 -0
  397. package/package.json +16 -21
  398. package/dist/views/Servers/ServerForm.vue.d.ts.map +0 -1
  399. package/dist/views/Servers/ServerForm.vue.js +0 -39
  400. package/dist/views/Servers/ServerForm.vue2.js +0 -4
  401. package/dist/views/Servers/Servers.vue.d.ts.map +0 -1
  402. package/dist/views/Servers/Servers.vue.js +0 -4
  403. package/dist/views/Servers/Servers.vue2.js +0 -168
  404. package/dist/views/Servers/index.d.ts +0 -2
  405. package/dist/views/Servers/index.d.ts.map +0 -1
  406. package/dist/views/Servers/index.js +0 -4
@@ -1,26 +1,26 @@
1
- import { defineComponent as p, openBlock as e, createBlock as n, withCtx as r, createTextVNode as l, createElementBlock as s, createVNode as m, Fragment as c, renderList as _, toDisplayString as i } from "vue";
2
- import x from "../../../components/DataTable/DataTable.vue.js";
3
- import h from "../../../components/DataTable/DataTableRow.vue.js";
1
+ import { defineComponent as p, openBlock as e, createBlock as n, withCtx as r, createTextVNode as l, createElementBlock as s, createVNode as m, Fragment as i, renderList as _, toDisplayString as c } from "vue";
2
+ import h from "../../../components/DataTable/DataTable.vue.js";
3
+ import x from "../../../components/DataTable/DataTableRow.vue.js";
4
4
  import u from "../../../components/DataTable/DataTableText.vue.js";
5
- import b from "../../../components/HelpfulLink.vue.js";
6
- import y from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
- import { httpHeaders as k } from "../../../data/httpHeaders.js";
8
- const g = {
5
+ import g from "../../../components/HelpfulLink.vue.js";
6
+ import w from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
+ import { httpHeaders as y } from "../../../data/httpHeaders.js";
8
+ const b = {
9
9
  key: 0,
10
- class: "border-t-1/2 border-b-1/2 max-h-[calc(100%-32px)] overflow-y-auto"
11
- }, w = {
10
+ class: "max-h-[calc(100%-32px)] overflow-y-auto border-t"
11
+ }, k = {
12
12
  key: 1,
13
- class: "text-c-3 px-4 text-sm border rounded min-h-12 justify-center flex items-center bg-b-1"
13
+ class: "text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-sm"
14
14
  }, D = /* @__PURE__ */ p({
15
15
  __name: "ResponseHeaders",
16
16
  props: {
17
17
  headers: {}
18
18
  },
19
19
  setup(C) {
20
- const d = (o) => k.find(
20
+ const f = (o) => y.find(
21
21
  (a) => a.name.toLowerCase() === o.toLowerCase()
22
22
  );
23
- return (o, a) => (e(), n(y, {
23
+ return (o, a) => (e(), n(w, {
24
24
  class: "overflow-auto",
25
25
  defaultOpen: !1,
26
26
  itemCount: o.headers.length
@@ -29,40 +29,39 @@ const g = {
29
29
  l("Headers")
30
30
  ])),
31
31
  default: r(() => [
32
- o.headers.length ? (e(), s("div", g, [
33
- m(x, {
34
- class: "!border-0 !mx-0",
32
+ o.headers.length ? (e(), s("div", b, [
33
+ m(h, {
35
34
  columns: ["minmax(auto, min-content)", "minmax(50%, 1fr)"],
36
35
  scroll: ""
37
36
  }, {
38
37
  default: r(() => [
39
- (e(!0), s(c, null, _(o.headers, (t) => (e(), n(h, {
38
+ (e(!0), s(i, null, _(o.headers, (t) => (e(), n(x, {
40
39
  key: t.name,
41
- class: "text-c-1"
40
+ class: "group/row text-c-1"
42
41
  }, {
43
42
  default: r(() => [
44
- m(u, { class: "sticky left-0 z-1 bg-b-1 max-w-48" }, {
43
+ m(u, { class: "z-1 bg-b-1 sticky left-0 max-w-48 group-first/row:border-t-0" }, {
45
44
  default: r(() => {
46
- var f;
45
+ var d;
47
46
  return [
48
- typeof ((f = d(t.name)) == null ? void 0 : f.url) == "string" ? (e(), n(b, {
47
+ typeof ((d = f(t.name)) == null ? void 0 : d.url) == "string" ? (e(), n(g, {
49
48
  key: 0,
50
49
  class: "decoration-c-3",
51
- href: d(t.name).url
50
+ href: f(t.name).url
52
51
  }, {
53
52
  default: r(() => [
54
- l(i(t.name), 1)
53
+ l(c(t.name), 1)
55
54
  ]),
56
55
  _: 2
57
- }, 1032, ["href"])) : (e(), s(c, { key: 1 }, [
58
- l(i(t.name), 1)
56
+ }, 1032, ["href"])) : (e(), s(i, { key: 1 }, [
57
+ l(c(t.name), 1)
59
58
  ], 64))
60
59
  ];
61
60
  }),
62
61
  _: 2
63
62
  }, 1024),
64
63
  m(u, {
65
- class: "z-0",
64
+ class: "z-0 group-first/row:border-t-0",
66
65
  text: t.value
67
66
  }, null, 8, ["text"])
68
67
  ]),
@@ -71,7 +70,7 @@ const g = {
71
70
  ]),
72
71
  _: 1
73
72
  })
74
- ])) : (e(), s("div", w, " No Headers "))
73
+ ])) : (e(), s("div", k, " No Headers "))
75
74
  ]),
76
75
  _: 1
77
76
  }, 8, ["itemCount"]));
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseLoadingOverlay.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseLoadingOverlay.vue"],"names":[],"mappings":";AAuLA,wBAMG"}
1
+ {"version":3,"file":"ResponseLoadingOverlay.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseLoadingOverlay.vue"],"names":[],"mappings":";AAyLA,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseLoadingOverlay.vue2.js";
2
2
  /* empty css */
3
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ef5f83d8"]]);
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-35587f03"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };
@@ -3,7 +3,7 @@ import { useLoadingState as v, ScalarLoading as x, ScalarButton as _ } from "@sc
3
3
  import { useWorkspace as k } from "../../../store/store.js";
4
4
  const L = {
5
5
  key: 0,
6
- class: "absolute inset-0 bg-b-1 flex flex-col gap-6 items-center justify-center"
6
+ class: "bg-b-1 absolute inset-0 flex flex-col items-center justify-center gap-6"
7
7
  }, y = /* @__PURE__ */ u({
8
8
  __name: "ResponseLoadingOverlay",
9
9
  setup(S) {
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseMetaInformation.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseMetaInformation.vue"],"names":[],"mappings":"AAsFA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAQvE,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAAC;;AAsJlD,wBAOG"}
1
+ {"version":3,"file":"ResponseMetaInformation.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseMetaInformation.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAWvE,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAAC;;AAsJlD,wBAOG"}
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as I, ref as m, computed as _, openBlock as o, createElementBlock as r, toDisplayString as n, unref as f, Fragment as v, createElementVNode as a, createTextVNode as p, createCommentVNode as y, createBlock as b, withCtx as w, normalizeStyle as k } from "vue";
2
- import B from "../../../components/HelpfulLink.vue.js";
3
- import { httpStatusCodes as L } from "@scalar/oas-utils/helpers";
4
- import N from "pretty-bytes";
2
+ import { httpStatusCodes as B } from "@scalar/oas-utils/helpers";
3
+ import L from "pretty-bytes";
5
4
  import h from "pretty-ms";
5
+ import N from "../../../components/HelpfulLink.vue.js";
6
6
  import { useWorkspace as V } from "../../../store/store.js";
7
- const x = { class: "flex gap-1.5 text-c-1" }, z = { key: 0 }, D = { key: 0 }, E = { key: 1 }, $ = /* @__PURE__ */ I({
7
+ const x = { class: "text-c-1 flex gap-1.5" }, z = { key: 0 }, D = { key: 0 }, E = { key: 1 }, $ = /* @__PURE__ */ I({
8
8
  __name: "ResponseMetaInformation",
9
9
  props: {
10
10
  response: {}
@@ -20,11 +20,11 @@ const x = { class: "flex gap-1.5 text-c-1" }, z = { key: 0 }, D = { key: 0 }, E
20
20
  ((c = e.headers) == null ? void 0 : c["Content-Length"]) || ((d = e.headers) == null ? void 0 : d["content-length"]) || "0",
21
21
  10
22
22
  );
23
- return t ? N(t) : void 0;
23
+ return t ? L(t) : void 0;
24
24
  }, s = _(() => {
25
25
  const e = C.response.status;
26
26
  if (e)
27
- return L[e] ?? void 0;
27
+ return B[e] ?? void 0;
28
28
  });
29
29
  return (e, t) => (o(), r("div", x, [
30
30
  l.value && u.value ? (o(), r("span", z, n(f(h)(u.value)), 1)) : (o(), r(v, { key: 1 }, [
@@ -38,7 +38,7 @@ const x = { class: "flex gap-1.5 text-c-1" }, z = { key: 0 }, D = { key: 0 }, E
38
38
  ])) : y("", !0),
39
39
  s.value ? (o(), r(v, { key: 1 }, [
40
40
  t[2] || (t[2] = a("span", { class: "sr-only" }, ", Status:", -1)),
41
- s.value.url ? (o(), b(B, {
41
+ s.value.url ? (o(), b(N, {
42
42
  key: 0,
43
43
  class: "flex items-center gap-1.5",
44
44
  href: s.value.url
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AAkNA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AASvE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAA;CACvC,CAAC;;AA2RF,wBAOG"}
1
+ {"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AA6MA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAgBvE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAA;CACvC,CAAC;;AA4RF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ec732740"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-700328ca"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -7,9 +7,9 @@ import q from "./ResponseLoadingOverlay.vue.js";
7
7
  import H from "./ResponseMetaInformation.vue.js";
8
8
  import V from "./ResponseBodyVirtual.vue.js";
9
9
  /* empty css */
10
- import w from "./ResponseCookies.vue.js";
11
- import L from "./ResponseHeaders.vue.js";
12
- const z = { class: "flex items-center flex-1 h-8" }, k = 2e5, U = /* @__PURE__ */ A({
10
+ import $ from "./ResponseCookies.vue.js";
11
+ import w from "./ResponseHeaders.vue.js";
12
+ const z = { class: "flex h-8 flex-1 items-center" }, k = 2e5, U = /* @__PURE__ */ A({
13
13
  __name: "ResponseSection",
14
14
  props: {
15
15
  numWorkspaceRequests: {},
@@ -82,7 +82,7 @@ const z = { class: "flex items-center flex-1 h-8" }, k = 2e5, U = /* @__PURE__ *
82
82
  "aria-live": "polite",
83
83
  class: f(["flex items-center", { "animate-response-heading": e.response }])
84
84
  }, [
85
- t[1] || (t[1] = p("span", { class: "response-heading absolute pointer-events-none" }, " Response ", -1)),
85
+ t[1] || (t[1] = p("span", { class: "response-heading pointer-events-none absolute" }, " Response ", -1)),
86
86
  e.response ? (a(), l(H, {
87
87
  key: 0,
88
88
  class: "animate-response-children",
@@ -100,16 +100,16 @@ const z = { class: "flex items-center flex-1 h-8" }, k = 2e5, U = /* @__PURE__ *
100
100
  var s, i, r;
101
101
  return [
102
102
  p("div", {
103
- class: f(["custom-scroll h-full relative grid justify-stretch", {
103
+ class: f(["custom-scroll relative grid h-full justify-stretch divide-y", {
104
104
  "content-start": e.response
105
105
  }])
106
106
  }, [
107
107
  e.response ? (a(), y(h, { key: 1 }, [
108
- o.value === "All" || o.value === "Cookies" ? (a(), l(w, {
108
+ o.value === "All" || o.value === "Cookies" ? (a(), l($, {
109
109
  key: 0,
110
110
  cookies: x.value
111
111
  }, null, 8, ["cookies"])) : c("", !0),
112
- o.value === "All" || o.value === "Headers" ? (a(), l(L, {
112
+ o.value === "All" || o.value === "Headers" ? (a(), l(w, {
113
113
  key: 1,
114
114
  headers: m.value
115
115
  }, null, 8, ["headers"])) : c("", !0),
@@ -1 +1 @@
1
- {"version":3,"file":"useOpenApiWatcher.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/hooks/useOpenApiWatcher.ts"],"names":[],"mappings":"AAwBA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,YA2I7B,CAAA"}
1
+ {"version":3,"file":"useOpenApiWatcher.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/hooks/useOpenApiWatcher.ts"],"names":[],"mappings":"AAwBA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,YAiH7B,CAAA"}
@@ -9,10 +9,7 @@ import N from "microdiff";
9
9
  import { watch as b } from "vue";
10
10
  import { useWorkspace as P } from "../../../store/store.js";
11
11
  const k = 5 * 1e3, q = 60 * 1e3, J = () => {
12
- const { toast: h } = C(), c = R(), o = P(), { activeCollection: t, activeWorkspace: W } = c, { collectionMutators: n } = o, r = (e) => h(
13
- `[useOpenApiWatcher] Changes to the ${e} were not applied`,
14
- "error"
15
- ), w = (e) => {
12
+ const { toast: h } = C(), c = R(), o = P(), { activeCollection: t, activeWorkspace: W } = c, { collectionMutators: n } = o, r = (e) => h(`[useOpenApiWatcher] Changes to the ${e} were not applied`, "error"), w = (e) => {
16
13
  e.path[0] === "info" || e.path[0] === "security" ? d(e, c, o) || r("collection") : e.path[0] === "components" && e.path[1] === "securitySchemes" ? g(e, c, o) || r("securitySchemes") : e.path[0] === "servers" ? D(e, c, o) || r("servers") : e.path[0] === "tags" ? T(e, c, o) || r("tags") : e.path[0] === "paths" && (M(e, c, o) || r("requests"));
17
14
  }, { pause: p, resume: m } = L(async () => {
18
15
  var l, v;
@@ -20,16 +17,8 @@ const k = 5 * 1e3, q = 60 * 1e3, J = () => {
20
17
  if (!e) return;
21
18
  const s = f[e];
22
19
  try {
23
- const a = await I(
24
- e,
25
- (v = W.value) == null ? void 0 : v.proxyUrl,
26
- !1
27
- ), u = U(a);
28
- if (n.edit(
29
- t.value.uid,
30
- "watchModeStatus",
31
- "WATCHING"
32
- ), s != null && s.hash)
20
+ const a = await I(e, (v = W.value) == null ? void 0 : v.proxyUrl, !1), u = U(a);
21
+ if (n.edit(t.value.uid, "watchModeStatus", "WATCHING"), s != null && s.hash)
33
22
  if (s.hash && s.hash !== u) {
34
23
  const { schema: i } = await O(a), A = N(s.schema, i), y = S(A);
35
24
  try {
@@ -49,35 +38,21 @@ const k = 5 * 1e3, q = 60 * 1e3, J = () => {
49
38
  });
50
39
  }
51
40
  } catch (a) {
52
- console.error("[useOpenApiWatcher] Error:", a), console.info("[useOpenApiWatcher] Pausing watcher for 60 seconds"), p(), n.edit(
53
- t.value.uid,
54
- "watchModeStatus",
55
- "ERROR"
56
- ), h(
57
- "[useOpenApiWatcher] Unable to fetch the spec file, paused the watcher for 60 seconds",
58
- "error"
59
- ), setTimeout(() => {
41
+ console.error("[useOpenApiWatcher] Error:", a), console.info("[useOpenApiWatcher] Pausing watcher for 60 seconds"), p(), n.edit(t.value.uid, "watchModeStatus", "ERROR"), h("[useOpenApiWatcher] Unable to fetch the spec file, paused the watcher for 60 seconds", "error"), setTimeout(() => {
60
42
  console.info("[useOpenApiWatcher] Resuming watcher"), m();
61
43
  }, q);
62
44
  }
63
45
  }, k);
64
46
  b(
65
- [
66
- () => {
67
- var e;
68
- return (e = t.value) == null ? void 0 : e.documentUrl;
69
- },
70
- () => {
71
- var e;
72
- return (e = t.value) == null ? void 0 : e.watchMode;
73
- }
74
- ],
47
+ [() => {
48
+ var e;
49
+ return (e = t.value) == null ? void 0 : e.documentUrl;
50
+ }, () => {
51
+ var e;
52
+ return (e = t.value) == null ? void 0 : e.watchMode;
53
+ }],
75
54
  ([e, s]) => {
76
- e && s ? (console.info(`[useOpenApiWatcher] Watching ${e} …`), m()) : t.value && (p(), n.edit(
77
- t.value.uid,
78
- "watchModeStatus",
79
- "IDLE"
80
- ));
55
+ e && s ? (console.info(`[useOpenApiWatcher] Watching ${e} …`), m()) : t.value && (p(), n.edit(t.value.uid, "watchModeStatus", "IDLE"));
81
56
  },
82
57
  { immediate: !0 }
83
58
  );
@@ -14,4 +14,8 @@ export declare const hasItemProperties: (item: RequestExampleParameter) => boole
14
14
  * Returns an alert message if the value is not in the correct type or format, otherwise false
15
15
  */
16
16
  export declare const parameterIsInvalid: (item: RequestExampleParameter) => import("vue").ComputedRef<string | false>;
17
+ /**
18
+ * Checks if a RequestExampleParameter is required and has an empty value
19
+ */
20
+ export declare const hasEmptyRequiredParameter: (item: RequestExampleParameter) => boolean;
17
21
  //# sourceMappingURL=request.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAG9E;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,SAAU,uBAAuB,YACwC,CAAA;AAEvG;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SAAU,uBAAuB,8CAqD/D,CAAA"}
1
+ {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAG9E;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,SAAU,uBAAuB,YACwC,CAAA;AAEvG;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SAAU,uBAAuB,8CAqD/D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB,SAAU,uBAAuB,YAAgD,CAAA"}
@@ -32,8 +32,9 @@ const m = (e) => !!(e.description || e.type || e.default || e.format || e.minimu
32
32
  }
33
33
  }
34
34
  return !1;
35
- });
35
+ }), s = (e) => !!(e.required && e.value === "");
36
36
  export {
37
+ s as hasEmptyRequiredParameter,
37
38
  m as hasItemProperties,
38
39
  n as parameterIsInvalid
39
40
  };
@@ -1 +1 @@
1
- {"version":3,"file":"watch-mode.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/watch-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAelE,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,SAAS,EAAkB,MAAM,6BAA6B,CAAA;AAEvF,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAK,MAAM,KAAK,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,SAAU,UAAU,EAAE,eAAc,MAAM,EAAE,KAAQ,UAAU,EA+E5F,CAAA;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,GAAI,CAAC,OACvB,MAAM,EAAE,aACF,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,aACjB,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,KAClC,CAAC,GAAG,IAMN,CAAA;AAUD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAAY,SAAS,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAG,SAAS,GAAG,IA8C5F,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,UACjB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,QAC/B,UAAU,KACf;IACD,0DAA0D;IAC1D,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,mGAAmG;IACnG,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACrB,2DAA2D;IAC3D,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;CACzC,GAAG,IAwBH,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,SACzB,UAAU,wBACM,mBAAmB,0BACjB,cAAc,KACrC,OA6BF,CAAA;AAqBD;;GAEG;AACH,eAAO,MAAM,iBAAiB,SACtB,UAAU,wBACM,mBAAmB,SAClC,cAAc,KACpB,OAsIF,CAAA;AAED,mGAAmG;AACnG,eAAO,MAAM,gBAAgB,SACrB,UAAU,wBACM,mBAAmB,+BACZ,cAAc,KAC1C,OAkCF,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,aAAa,SAClB,UAAU,wBACM,mBAAmB,yBAClB,cAAc,KACpC,OAmCF,CAAA;AAED,sCAAsC;AACtC,eAAO,MAAM,iBAAiB,WAAY,SAAS,OAAO,MAAM,SAAS,MAAM,KAAG,SAAS,GAAG,IAgB7F,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,SAC7B,UAAU,wBACM,mBAAmB,+CACI,cAAc,KAC1D,OAkCF,CAAA"}
1
+ {"version":3,"file":"watch-mode.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/watch-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAelE,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,SAAS,EAAkB,MAAM,6BAA6B,CAAA;AAEvF,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAK,MAAM,KAAK,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,SAAU,UAAU,EAAE,eAAc,MAAM,EAAE,KAAQ,UAAU,EA+E5F,CAAA;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,GAAI,CAAC,OACvB,MAAM,EAAE,aACF,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,aACjB,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,KAClC,CAAC,GAAG,IAMN,CAAA;AAWD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAAY,SAAS,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAG,SAAS,GAAG,IA8C5F,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,UACjB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,QAC/B,UAAU,KACf;IACD,0DAA0D;IAC1D,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,mGAAmG;IACnG,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACrB,2DAA2D;IAC3D,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;CACzC,GAAG,IAwBH,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,SACzB,UAAU,wBACM,mBAAmB,0BACjB,cAAc,KACrC,OA6BF,CAAA;AAqBD;;GAEG;AACH,eAAO,MAAM,iBAAiB,SACtB,UAAU,wBACM,mBAAmB,SAClC,cAAc,KACpB,OAsIF,CAAA;AAED,mGAAmG;AACnG,eAAO,MAAM,gBAAgB,SACrB,UAAU,wBACM,mBAAmB,+BACZ,cAAc,KAC1C,OAkCF,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,aAAa,SAClB,UAAU,wBACM,mBAAmB,yBAClB,cAAc,KACpC,OAmCF,CAAA;AAED,sCAAsC;AACtC,eAAO,MAAM,iBAAiB,WAAY,SAAS,OAAO,MAAM,SAAS,MAAM,KAAG,SAAS,GAAG,IAgB7F,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,SAC7B,UAAU,wBACM,mBAAmB,+CACI,cAAc,KAC1D,OAkCF,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { collectionSchema as M, requestSchema as V, serverSchema as q, tagSchema as S, securitySchemeSchema as Z, createExampleFromRequest as H } from "@scalar/oas-utils/entities/spec";
2
2
  import { isHttpMethod as j, schemaModel as R } from "@scalar/oas-utils/helpers";
3
- import { getNestedValue as N } from "@scalar/object-utils/nested";
3
+ import { getNestedValue as D } from "@scalar/object-utils/nested";
4
4
  import x from "microdiff";
5
5
  import { z as i } from "zod";
6
6
  const G = (e, s = []) => {
@@ -11,16 +11,16 @@ const G = (e, s = []) => {
11
11
  a = !1;
12
12
  continue;
13
13
  }
14
- const r = e[u], n = e[u + 1];
15
- if (r) {
14
+ const n = e[u], r = e[u + 1];
15
+ if (n) {
16
16
  if (s.length)
17
- r.path = [...s, ...r.path], n && (n.path = [...s, ...n.path]);
18
- else if (r.path[0] !== "paths") {
19
- t.push(r);
17
+ n.path = [...s, ...n.path], r && (r.path = [...s, ...r.path]);
18
+ else if (n.path[0] !== "paths") {
19
+ t.push(n);
20
20
  continue;
21
21
  }
22
- if (r.type === "REMOVE" && (n == null ? void 0 : n.type) === "CREATE") {
23
- const [, l, p] = r.path, [, o, h] = n.path, c = ["paths", o].filter((f) => typeof f == "string");
22
+ if (n.type === "REMOVE" && (r == null ? void 0 : r.type) === "CREATE") {
23
+ const [, l, p] = n.path, [, o, h] = r.path, c = ["paths", o].filter((f) => typeof f == "string");
24
24
  if (l !== o && t.push({
25
25
  type: "CHANGE",
26
26
  path: ["paths", "path"],
@@ -32,14 +32,14 @@ const G = (e, s = []) => {
32
32
  oldValue: p,
33
33
  value: h
34
34
  }), c.push(h)), s.length === 0) {
35
- const f = x(r.oldValue, n.value);
35
+ const f = x(n.oldValue, r.value);
36
36
  if (f.length) {
37
37
  const g = G(f, c);
38
38
  t.push(...g);
39
39
  }
40
40
  }
41
41
  a = !0;
42
- } else r.type === "CREATE" && r.path.length > 3 && typeof r.path.at(-1) != "number" ? t.push({ ...r, type: "CHANGE", oldValue: void 0 }) : r.type === "REMOVE" && r.path.length > 3 && typeof r.path.at(-1) != "number" ? t.push({ ...r, type: "CHANGE", value: void 0 }) : t.push(r);
42
+ } else n.type === "CREATE" && n.path.length > 3 && typeof n.path.at(-1) != "number" ? t.push({ ...n, type: "CHANGE", oldValue: void 0 }) : n.type === "REMOVE" && n.path.length > 3 && typeof n.path.at(-1) != "number" ? t.push({ ...n, type: "CHANGE", value: void 0 }) : t.push(n);
43
43
  }
44
44
  }
45
45
  return t;
@@ -49,7 +49,7 @@ const G = (e, s = []) => {
49
49
  if (u && t(u)) return u;
50
50
  }
51
51
  return null;
52
- }, d = (e) => e instanceof i.ZodOptional ? d(e.unwrap()) : e instanceof i.ZodDefault ? d(e._def.innerType) : e instanceof i.ZodEffects ? d(e._def.schema) : e, _ = (e, s) => {
52
+ }, d = (e) => e instanceof i.ZodOptional ? d(e.unwrap()) : e instanceof i.ZodDefault ? d(e._def.innerType) : e instanceof i.ZodEffects ? d(e._def.schema) : e instanceof i.ZodCatch ? d(e._def.innerType) : e, _ = (e, s) => {
53
53
  let t = e;
54
54
  for (const a of s) {
55
55
  if (t = d(t), t instanceof i.ZodAny)
@@ -83,11 +83,11 @@ const G = (e, s = []) => {
83
83
  pathMinusOne: u,
84
84
  value: void 0
85
85
  };
86
- const r = R(s.value, t, !1);
87
- return r ? {
86
+ const n = R(s.value, t, !1);
87
+ return n ? {
88
88
  path: a,
89
89
  pathMinusOne: u,
90
- value: r
90
+ value: n
91
91
  } : null;
92
92
  }, L = (e, { activeCollection: s }, { collectionMutators: t }) => {
93
93
  if (!s.value) return !1;
@@ -97,7 +97,7 @@ const G = (e, s = []) => {
97
97
  path: e.path
98
98
  });
99
99
  if (!a) return !1;
100
- const u = [...N(s.value, a.pathMinusOne)];
100
+ const u = [...D(s.value, a.pathMinusOne)];
101
101
  e.type === "CREATE" ? u.push(a.value) : e.type === "REMOVE" && u.pop(), t.edit(s.value.uid, a.pathMinusOne, u);
102
102
  } else {
103
103
  const a = E(M, e);
@@ -105,46 +105,46 @@ const G = (e, s = []) => {
105
105
  t.edit(s.value.uid, a.path, a.value);
106
106
  }
107
107
  return !0;
108
- }, D = (e, s) => {
109
- const { requests: t, requestExamples: a, requestExampleMutators: u } = s, r = t[e];
110
- r == null || r.examples.forEach((n) => {
108
+ }, T = (e, s) => {
109
+ const { requests: t, requestExamples: a, requestExampleMutators: u } = s, n = t[e];
110
+ n == null || n.examples.forEach((r) => {
111
111
  var p;
112
- const l = H(r, ((p = a[n]) == null ? void 0 : p.name) ?? "Default");
112
+ const l = H(n, ((p = a[r]) == null ? void 0 : p.name) ?? "Default");
113
113
  l && u.set({
114
114
  ...l,
115
- uid: n
115
+ uid: r
116
116
  });
117
117
  });
118
118
  }, P = (e, { activeCollection: s }, t) => {
119
119
  if (!s.value) return !1;
120
- const { requests: a, requestMutators: u } = t, [, r, n, ...l] = e.path;
121
- if (r === "path" && e.type === "CHANGE")
120
+ const { requests: a, requestMutators: u } = t, [, n, r, ...l] = e.path;
121
+ if (n === "path" && e.type === "CHANGE")
122
122
  s.value.requests.forEach((p) => {
123
123
  var o;
124
124
  ((o = a[p]) == null ? void 0 : o.path) === e.oldValue && u.edit(p, "path", e.value);
125
125
  });
126
- else if (n === "method" && e.type === "CHANGE")
126
+ else if (r === "method" && e.type === "CHANGE")
127
127
  s.value.requests.forEach((p) => {
128
128
  var o, h;
129
- ((o = a[p]) == null ? void 0 : o.method) === e.oldValue && ((h = a[p]) == null ? void 0 : h.path) === r && u.edit(p, "method", e.value);
129
+ ((o = a[p]) == null ? void 0 : o.method) === e.oldValue && ((h = a[p]) == null ? void 0 : h.path) === n && u.edit(p, "method", e.value);
130
130
  });
131
131
  else if (e.type !== "CHANGE" && typeof l.at(-1) == "number") {
132
132
  const p = v(
133
133
  s.value.requests,
134
134
  a,
135
- (c) => c.path === r && c.method === n
135
+ (c) => c.path === n && c.method === r
136
136
  ), o = E(V, {
137
137
  ...e,
138
138
  path: e.path.slice(3)
139
139
  });
140
140
  if (!p || !o) return !1;
141
- const h = [...N(p, o.pathMinusOne)];
142
- e.type === "CREATE" ? h.push(o.value) : e.type === "REMOVE" && h.pop(), u.edit(p.uid, o.pathMinusOne, h), (e.path[3] === "parameters" || e.path[3] === "requestBody") && D(p.uid, t);
141
+ const h = [...D(p, o.pathMinusOne)];
142
+ e.type === "CREATE" ? h.push(o.value) : e.type === "REMOVE" && h.pop(), u.edit(p.uid, o.pathMinusOne, h), (e.path[3] === "parameters" || e.path[3] === "requestBody") && T(p.uid, t);
143
143
  } else if (e.type === "CREATE") {
144
- const [p] = Object.entries(e.value ?? {}), [o, h] = p ?? [], c = n ? e.value : h, f = n || o, g = q.array().parse(c.servers ?? []), { security: y, ...T } = c, A = {
145
- ...T,
144
+ const [p] = Object.entries(e.value ?? {}), [o, h] = p ?? [], c = r ? e.value : h, f = r || o, g = q.array().parse(c.servers ?? []), { security: y, ...N } = c, A = {
145
+ ...N,
146
146
  method: j(f) ? f : "get",
147
- path: r,
147
+ path: n,
148
148
  parameters: c.parameters ?? [],
149
149
  servers: g.map((m) => m.uid)
150
150
  };
@@ -164,7 +164,7 @@ const G = (e, s = []) => {
164
164
  const p = v(
165
165
  s.value.requests,
166
166
  a,
167
- (o) => o.path === r && o.method === n
167
+ (o) => o.path === n && o.method === r
168
168
  );
169
169
  if (!p) return !1;
170
170
  u.delete(p, s.value.uid);
@@ -172,50 +172,50 @@ const G = (e, s = []) => {
172
172
  const p = v(
173
173
  s.value.requests,
174
174
  a,
175
- (h) => h.path === r && h.method === n
175
+ (h) => h.path === n && h.method === r
176
176
  ), o = E(V, { ...e, path: l });
177
177
  if (!p || !o) return !1;
178
- u.edit(p.uid, o.path, o.value), (e.path[3] === "parameters" || e.path[3] === "requestBody") && D(p.uid, t);
178
+ u.edit(p.uid, o.path, o.value), (e.path[3] === "parameters" || e.path[3] === "requestBody") && T(p.uid, t);
179
179
  }
180
180
  return !0;
181
181
  }, W = (e, { activeCollection: s }, { servers: t, serverMutators: a }) => {
182
182
  if (!s.value) return !1;
183
- const [, u, ...r] = e.path;
184
- if (r != null && r.length) {
185
- const n = s.value.servers[u];
186
- if (!n) return !1;
187
- const l = t[n], p = E(q, { ...e, path: r });
183
+ const [, u, ...n] = e.path;
184
+ if (n != null && n.length) {
185
+ const r = s.value.servers[u];
186
+ if (!r) return !1;
187
+ const l = t[r], p = E(q, { ...e, path: n });
188
188
  if (!l || !p) return !1;
189
- const h = e.type === "REMOVE" && r[r.length - 1] === "variables" ? {} : p.value;
190
- a.edit(n, p.path, h);
189
+ const h = e.type === "REMOVE" && n[n.length - 1] === "variables" ? {} : p.value;
190
+ a.edit(r, p.path, h);
191
191
  } else if (e.type === "REMOVE") {
192
192
  if (!s.value.servers[u]) return !1;
193
193
  a.delete(s.value.servers[u], s.value.uid);
194
194
  } else if (e.type === "CREATE") {
195
- const n = R(e.value, q, !1);
196
- if (!n) return !1;
197
- a.add(n, s.value.uid);
195
+ const r = R(e.value, q, !1);
196
+ if (!r) return !1;
197
+ a.add(r, s.value.uid);
198
198
  }
199
199
  return !0;
200
200
  }, I = (e, { activeCollection: s }, { tags: t, tagMutators: a }) => {
201
201
  if (!s.value) return !1;
202
- const [, u, ...r] = e.path;
203
- if (r != null && r.length) {
204
- const n = s.value.tags[u];
205
- if (!n) return !1;
206
- const l = t[n], p = E(S, { ...e, path: r });
202
+ const [, u, ...n] = e.path;
203
+ if (n != null && n.length) {
204
+ const r = s.value.tags[u];
205
+ if (!r) return !1;
206
+ const l = t[r], p = E(S, { ...e, path: n });
207
207
  if (!l || !p) return !1;
208
- a.edit(n, p.path, p.value);
208
+ a.edit(r, p.path, p.value);
209
209
  } else if (e.type === "REMOVE") {
210
- const n = s.value.tags[u];
211
- if (!n) return !1;
212
- const l = t[n];
210
+ const r = s.value.tags[u];
211
+ if (!r) return !1;
212
+ const l = t[r];
213
213
  if (!l) return !1;
214
214
  a.delete(l, s.value.uid);
215
215
  } else if (e.type === "CREATE") {
216
- const n = R(e.value, S, !1);
217
- if (!n) return !1;
218
- a.add(n, s.value.uid);
216
+ const r = R(e.value, S, !1);
217
+ if (!r) return !1;
218
+ a.add(r, s.value.uid);
219
219
  }
220
220
  return !0;
221
221
  }, w = (e, s, t) => {
@@ -228,21 +228,21 @@ const G = (e, s = []) => {
228
228
  return null;
229
229
  }, J = (e, { activeCollection: s }, { securitySchemes: t, securitySchemeMutators: a }) => {
230
230
  if (!s.value) return !1;
231
- const [, , u, ...r] = e.path, n = t[u] ?? v(
231
+ const [, , u, ...n] = e.path, r = t[u] ?? v(
232
232
  s.value.securitySchemes,
233
233
  t,
234
234
  (l) => l.nameKey === u
235
235
  );
236
- if (r != null && r.length) {
237
- const l = w(Z, "type", (n == null ? void 0 : n.type) ?? "");
238
- if (!l || !n) return !1;
239
- const p = E(l, { ...e, path: r });
236
+ if (n != null && n.length) {
237
+ const l = w(Z, "type", (r == null ? void 0 : r.type) ?? "");
238
+ if (!l || !r) return !1;
239
+ const p = E(l, { ...e, path: n });
240
240
  if (!p) return !1;
241
241
  const o = p.path;
242
- a.edit(n.uid, o, p.value);
242
+ a.edit(r.uid, o, p.value);
243
243
  } else if (e.type === "REMOVE") {
244
- if (!n) return !1;
245
- a.delete(n.uid);
244
+ if (!r) return !1;
245
+ a.delete(r.uid);
246
246
  } else e.type === "CREATE" && a.add(Z.parse(e.value), s.value.uid);
247
247
  return !0;
248
248
  };
@@ -9,7 +9,7 @@ export type SidebarItem = {
9
9
  resourceTitle: string;
10
10
  children: string[];
11
11
  method?: RequestMethod | undefined;
12
- link?: RouteLocationRaw;
12
+ to?: RouteLocationRaw | undefined;
13
13
  warning?: string;
14
14
  icon?: string;
15
15
  edit: (name: string, icon?: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar-item.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/types/sidebar-item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,cAAc,EACd,aAAa,EACb,GAAG,EACJ,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EACF,UAAU,GACV,GAAG,GACH,OAAO,GACP,cAAc,GACd;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;IACpC,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,MAAM,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IAClC,IAAI,CAAC,EAAE,gBAAgB,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,qDAAqD;IACrD,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,iBAAiB,CAAA;IAC7B,8CAA8C;IAC9C,IAAI,EAAE,OAAO,CAAA;CACd,CAAA"}
1
+ {"version":3,"file":"sidebar-item.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/types/sidebar-item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAA;AAC9G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,UAAU,GAAG,GAAG,GAAG,OAAO,GAAG,cAAc,GAAG;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;IACtF,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,MAAM,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IAClC,EAAE,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAA;IACjC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,qDAAqD;IACrD,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,iBAAiB,CAAA;IAC7B,8CAA8C;IAC9C,IAAI,EAAE,OAAO,CAAA;CACd,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Settings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/Settings.vue"],"names":[],"mappings":"AAkCA,OAAO,EAAE,KAAK,eAAe,EAAO,MAAM,KAAK,CAAA;;AAgG/C,wBAMG"}
1
+ {"version":3,"file":"Settings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/Settings.vue"],"names":[],"mappings":"AAiCA,OAAO,EAAO,KAAK,eAAe,EAAE,MAAM,KAAK,CAAA;;AAmG/C,wBAMG"}