@scalar/api-client 2.2.51 → 2.2.53

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 (404) hide show
  1. package/CHANGELOG.md +66 -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 +3 -1
  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 +1 -1
  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 +39 -33
  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 +37 -35
  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 +1 -1
  299. package/dist/views/Request/Request.vue2.js +114 -171
  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/components/SettingsAppearance.vue.js +6 -6
  393. package/dist/vitest.setup.d.ts +16 -0
  394. package/dist/vitest.setup.d.ts.map +1 -0
  395. package/package.json +16 -21
  396. package/dist/views/Servers/ServerForm.vue.d.ts.map +0 -1
  397. package/dist/views/Servers/ServerForm.vue.js +0 -39
  398. package/dist/views/Servers/ServerForm.vue2.js +0 -4
  399. package/dist/views/Servers/Servers.vue.d.ts.map +0 -1
  400. package/dist/views/Servers/Servers.vue.js +0 -4
  401. package/dist/views/Servers/Servers.vue2.js +0 -168
  402. package/dist/views/Servers/index.d.ts +0 -2
  403. package/dist/views/Servers/index.d.ts.map +0 -1
  404. package/dist/views/Servers/index.js +0 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,71 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.2.53
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [4db5161]
8
+ - @scalar/oas-utils@0.2.109
9
+ - @scalar/types@0.0.36
10
+ - @scalar/import@0.2.29
11
+ - @scalar/postman-to-openapi@0.1.32
12
+ - @scalar/openapi-parser@0.10.9
13
+ - @scalar/themes@0.9.70
14
+ - @scalar/components@0.13.27
15
+ - @scalar/use-codemirror@0.11.72
16
+ - @scalar/use-hooks@0.1.24
17
+
18
+ ## 2.2.52
19
+
20
+ ### Patch Changes
21
+
22
+ - 7833331: fix: updates address bar background style
23
+ - f61e986: fix(components): set the submenu z-index above the menu
24
+ - 8173889: feat: moved sidebar state into factory function, initialize at app instantiation
25
+ - 8d9a2c0: feat: adds request required empty parameter error
26
+ - 8d9a2c0: feat: adds request parameter value validation alert
27
+ - 2be8986: fix: request history
28
+ - 7017639: fix: updates overall border style
29
+ - 143d2a9: fix: updates file upload row content and logic
30
+ - e52ecd2: feat: rely less on localStorage
31
+ - c10bbf5: chore: code style
32
+ - eed78eb: fix: updates command palette routing
33
+ - 875ee2c: fix(api-reference): use listbox for server selector
34
+ - 4a0e6b7: fix: sets whitespace to disabled address bar path
35
+ - 5a46f1c: feat: collection page
36
+ - a89510b: fix: updates response section border layout
37
+ - 48f24c9: fix: when importing a collection we navigate to the collection page
38
+ - Updated dependencies [f61e986]
39
+ - Updated dependencies [c9a8fd8]
40
+ - Updated dependencies [8d9a2c0]
41
+ - Updated dependencies [9fc97da]
42
+ - Updated dependencies [946a5df]
43
+ - Updated dependencies [12088f1]
44
+ - Updated dependencies [c10bbf5]
45
+ - Updated dependencies [0d58572]
46
+ - Updated dependencies [bd70ab6]
47
+ - Updated dependencies [cf14cbb]
48
+ - Updated dependencies [7dc4415]
49
+ - Updated dependencies [9251b22]
50
+ - Updated dependencies [e55bfd2]
51
+ - Updated dependencies [8d9a2c0]
52
+ - @scalar/components@0.13.26
53
+ - @scalar/themes@0.9.69
54
+ - @scalar/oas-utils@0.2.108
55
+ - @scalar/types@0.0.35
56
+ - @scalar/openapi-parser@0.10.9
57
+ - @scalar/openapi-types@0.1.9
58
+ - @scalar/draggable@0.1.11
59
+ - @scalar/snippetz@0.2.15
60
+ - @scalar/use-codemirror@0.11.71
61
+ - @scalar/use-hooks@0.1.23
62
+ - @scalar/import@0.2.28
63
+ - @scalar/postman-to-openapi@0.1.31
64
+ - @scalar/icons@0.1.3
65
+ - @scalar/object-utils@1.1.13
66
+ - @scalar/use-toasts@0.7.9
67
+ - @scalar/use-tooltip@1.0.6
68
+
3
69
  ## 2.2.51
4
70
 
5
71
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":"AAuVA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAQrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;;;;;AA6ZJ,wBAQG"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":"AAqVA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAQrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;;;;;AAgaJ,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b4d63e6c"]]);
4
+ const s = /* @__PURE__ */ r(o, [["__scopeId", "data-v-c8bfbadd"]]);
5
5
  export {
6
- d as default
6
+ s as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as S, useId as V, ref as i, watch as z, openBlock as b, createElementBlock as I, unref as a, createElementVNode as o, normalizeClass as L, normalizeStyle as U, createVNode as d, createBlock as M, createCommentVNode as A, withCtx as H } from "vue";
1
+ import { defineComponent as S, useId as V, ref as i, watch as z, openBlock as b, createElementBlock as I, unref as r, createElementVNode as l, normalizeClass as L, normalizeStyle as U, createVNode as d, createBlock as M, createCommentVNode as A, withCtx as H } from "vue";
2
2
  import { ScalarButton as N, ScalarIcon as T } from "@scalar/components";
3
3
  import { REQUEST_METHODS as $ } from "@scalar/oas-utils/helpers";
4
4
  import O from "../CodeInput/CodeInput.vue.js";
@@ -7,7 +7,7 @@ import D from "./AddressBarHistory.vue.js";
7
7
  import K from "../Server/ServerDropdown.vue.js";
8
8
  import { useWorkspace as Q } from "../../store/store.js";
9
9
  import { useLayout as W } from "../../hooks/useLayout.js";
10
- const j = ["id"], F = { class: "m-auto flex flex-row items-center" }, G = { class: "addressbar-bg-states text-xxs p-0.75 group relative order-last flex w-full max-w-[calc(100dvw-24px)] flex-1 flex-row items-stretch rounded-lg lg:order-none lg:min-w-[580px] lg:max-w-[580px] xl:min-w-[720px] xl:max-w-[720px]" }, J = { class: "pointer-events-none absolute left-0 top-0 block h-full w-full overflow-hidden rounded-lg border" }, X = { class: "z-context-plus flex gap-1" }, Y = { class: "codemirror-bg-switcher scroll-timeline-x scroll-timeline-x-hidden z-context-plus relative flex w-full" }, Z = {
10
+ const j = ["id"], F = { class: "m-auto flex flex-row items-center" }, G = { class: "address-bar-bg-states text-xxs p-0.75 group relative order-last flex w-full max-w-[calc(100dvw-24px)] flex-1 flex-row items-stretch rounded-lg lg:order-none lg:min-w-[580px] lg:max-w-[580px] xl:min-w-[720px] xl:max-w-[720px]" }, J = { class: "pointer-events-none absolute left-0 top-0 block h-full w-full overflow-hidden rounded-lg border" }, X = { class: "z-context-plus flex gap-1" }, Y = { class: "scroll-timeline-x scroll-timeline-x-hidden z-context-plus relative flex w-full bg-blend-normal" }, Z = {
11
11
  "aria-hidden": "true",
12
12
  class: "inline-flex items-center gap-1"
13
13
  }, ie = /* @__PURE__ */ S({
@@ -31,18 +31,18 @@ const j = ["id"], F = { class: "m-auto flex flex-row items-center" }, G = { clas
31
31
  e && x(e);
32
32
  }
33
33
  );
34
- const l = i(100), h = i(0), r = i(!1), s = i();
34
+ const o = i(100), h = i(0), a = i(!1), s = i();
35
35
  function w() {
36
- r.value ? l.value -= (l.value - 15) / 60 : l.value -= h.value / 20, l.value <= 0 && (clearInterval(s.value), s.value = void 0, l.value = 100, r.value = !1);
36
+ a.value ? o.value -= (o.value - 15) / 60 : o.value -= h.value / 20, o.value <= 0 && (clearInterval(s.value), s.value = void 0, o.value = 100, a.value = !1);
37
37
  }
38
38
  function k() {
39
- s.value || (r.value = !0, s.value = setInterval(w, 20));
39
+ s.value || (a.value = !0, s.value = setInterval(w, 20));
40
40
  }
41
41
  function C() {
42
- h.value = l.value, r.value = !1;
42
+ h.value = o.value, a.value = !1;
43
43
  }
44
44
  function y() {
45
- clearInterval(s.value), s.value = void 0, l.value = 100, r.value = !1;
45
+ clearInterval(s.value), s.value = void 0, o.value = 100, a.value = !1;
46
46
  }
47
47
  f.requestStatus.on((e) => {
48
48
  e === "start" && k(), e === "stop" && C(), e === "abort" && y();
@@ -55,7 +55,7 @@ const j = ["id"], F = { class: "m-auto flex flex-row items-center" }, G = { clas
55
55
  return $[e].backgroundColor;
56
56
  }
57
57
  function m() {
58
- r.value || (r.value = !0, f.executeRequest.emit({ requestUid: n.operation.uid }));
58
+ a.value || (a.value = !0, f.executeRequest.emit({ requestUid: n.operation.uid }));
59
59
  }
60
60
  f.hotKeys.on((e) => {
61
61
  var t;
@@ -67,43 +67,43 @@ const j = ["id"], F = { class: "m-auto flex flex-row items-center" }, G = { clas
67
67
  return (e, t) => {
68
68
  var g;
69
69
  return b(), I("div", {
70
- id: a(u),
70
+ id: r(u),
71
71
  class: "scalar-address-bar order-last h-[--scalar-address-bar-height] w-full [--scalar-address-bar-height:32px] lg:order-none lg:w-auto"
72
72
  }, [
73
- o("div", F, [
74
- o("div", G, [
75
- o("div", J, [
76
- o("div", {
77
- class: L(["bg-mix-transparent bg-mix-amount-90 z-context absolute left-0 top-0 h-full w-full", q()]),
78
- style: U({ transform: `translate3d(-${l.value}%,0,0)` })
73
+ l("div", F, [
74
+ l("div", G, [
75
+ l("div", J, [
76
+ l("div", {
77
+ class: L(["bg-mix-transparent bg-mix-amount-90 absolute left-0 top-0 z-[1002] h-full w-full", q()]),
78
+ style: U({ transform: `translate3d(-${o.value}%,0,0)` })
79
79
  }, null, 6)
80
80
  ]),
81
- o("div", X, [
81
+ l("div", X, [
82
82
  d(P, {
83
- isEditable: a(p) !== "modal",
83
+ isEditable: r(p) !== "modal",
84
84
  isSquare: "",
85
85
  method: e.operation.method,
86
86
  teleport: "",
87
87
  onChange: B
88
88
  }, null, 8, ["isEditable", "method"])
89
89
  ]),
90
- o("div", Y, [
91
- e.collection.servers.length ? (b(), M(a(K), {
90
+ l("div", Y, [
91
+ e.collection.servers.length ? (b(), M(r(K), {
92
92
  key: 0,
93
93
  collection: e.collection,
94
94
  layout: "client",
95
95
  operation: e.operation,
96
96
  server: e.server,
97
- target: a(u)
97
+ target: r(u)
98
98
  }, null, 8, ["collection", "operation", "server", "target"])) : A("", !0),
99
- t[1] || (t[1] = o("div", { class: "fade-left" }, null, -1)),
99
+ t[1] || (t[1] = l("div", { class: "fade-left" }, null, -1)),
100
100
  d(O, {
101
101
  ref_key: "addressBarRef",
102
102
  ref: v,
103
103
  "aria-label": "Path",
104
104
  class: "min-w-fit outline-none",
105
105
  disableCloseBrackets: "",
106
- disabled: a(p) === "modal",
106
+ disabled: r(p) === "modal",
107
107
  disableEnter: "",
108
108
  disableTabIndent: "",
109
109
  emitOnBlur: !1,
@@ -118,27 +118,27 @@ const j = ["id"], F = { class: "m-auto flex flex-row items-center" }, G = { clas
118
118
  onSubmit: m,
119
119
  "onUpdate:modelValue": R
120
120
  }, null, 8, ["disabled", "envVariables", "environment", "modelValue", "placeholder", "workspace"]),
121
- t[2] || (t[2] = o("div", { class: "fade-right" }, null, -1))
121
+ t[2] || (t[2] = l("div", { class: "fade-right" }, null, -1))
122
122
  ]),
123
123
  d(D, {
124
124
  operation: e.operation,
125
- target: a(u)
125
+ target: r(u)
126
126
  }, null, 8, ["operation", "target"]),
127
- d(a(N), {
127
+ d(r(N), {
128
128
  class: "z-context-plus relative h-auto shrink-0 overflow-hidden py-1 pl-2 pr-2.5 font-bold",
129
- disabled: r.value,
129
+ disabled: a.value,
130
130
  onClick: m
131
131
  }, {
132
132
  default: H(() => [
133
- o("span", Z, [
134
- d(a(T), {
133
+ l("span", Z, [
134
+ d(r(T), {
135
135
  class: "relative shrink-0 fill-current",
136
136
  icon: "Play",
137
137
  size: "xs"
138
138
  }),
139
- t[3] || (t[3] = o("span", { class: "text-xxs hidden lg:flex" }, "Send", -1))
139
+ t[3] || (t[3] = l("span", { class: "text-xxs hidden lg:flex" }, "Send", -1))
140
140
  ]),
141
- t[4] || (t[4] = o("span", { class: "sr-only" }, " Send Request ", -1))
141
+ t[4] || (t[4] = l("span", { class: "sr-only" }, " Send Request ", -1))
142
142
  ]),
143
143
  _: 1
144
144
  }, 8, ["disabled"])
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBarHistory.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarHistory.vue"],"names":[],"mappings":"AA8KA,OAAO,KAAK,EAAE,SAAS,EAAgB,MAAM,iCAAiC,CAAA;AAU9E,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAA;IACpB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;AA0QF,wBAOG"}
1
+ {"version":3,"file":"AddressBarHistory.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarHistory.vue"],"names":[],"mappings":"AA6JA,OAAO,KAAK,EAAE,SAAS,EAAgB,MAAM,iCAAiC,CAAA;AAc9E,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAA;IACpB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;AAmQF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBarHistory.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a323ca24"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-113be377"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -1,24 +1,24 @@
1
1
  import { defineComponent as y, ref as S, computed as _, openBlock as n, createBlock as i, unref as e, withCtx as r, createVNode as u, createSlots as B, createElementVNode as a, createCommentVNode as k, normalizeStyle as H, createElementBlock as V, Fragment as w, renderList as z, toDisplayString as d, normalizeClass as L } from "vue";
2
- import { formatMs as U } from "../../libs/formatters.js";
2
+ import { Listbox as U, ListboxButton as E, ListboxOptions as F, ListboxOption as I } from "@headlessui/vue";
3
+ import { ScalarFloating as M, ScalarIcon as N, ScalarFloatingBackdrop as R } from "@scalar/components";
4
+ import { httpStatusCodes as O } from "@scalar/oas-utils/helpers";
5
+ import { useRouter as W } from "vue-router";
6
+ import { formatMs as A } from "../../libs/formatters.js";
3
7
  import { PathId as v } from "../../routes.js";
4
- import { Listbox as E, ListboxButton as F, ListboxOptions as I, ListboxOption as M } from "@headlessui/vue";
5
- import { ScalarFloating as N, ScalarIcon as R, ScalarFloatingBackdrop as O } from "@scalar/components";
6
- import { httpStatusCodes as W } from "@scalar/oas-utils/helpers";
7
- import { useRouter as A } from "vue-router";
8
8
  import D from "../HttpMethod/HttpMethod.vue.js";
9
9
  import { getStatusCodeColor as P } from "./httpStatusCodeColors.js";
10
10
  import { useWorkspace as $ } from "../../store/store.js";
11
- const j = { class: "min-w-0" }, G = { class: "min-w-0 truncate text-c-1" }, se = /* @__PURE__ */ y({
11
+ const j = { class: "min-w-0" }, G = { class: "text-c-1 min-w-0 truncate" }, se = /* @__PURE__ */ y({
12
12
  __name: "AddressBarHistory",
13
13
  props: {
14
14
  operation: {},
15
15
  target: {}
16
16
  },
17
17
  setup(p) {
18
- const { requestHistory: f, requestExampleMutators: b } = $(), x = A(), g = S(f[0] ?? null), h = _(
18
+ const { requestHistory: f, requestExampleMutators: q } = $(), x = W(), g = S(f[0] ?? null), h = _(
19
19
  () => f.filter((o) => o.request.requestUid === p.operation.uid).slice().reverse()
20
20
  );
21
- function q(o) {
21
+ function b(o) {
22
22
  const s = x.currentRoute.value.params.workspace;
23
23
  p.operation.uid !== o.request.requestUid && x.push({
24
24
  name: "request",
@@ -26,14 +26,14 @@ const j = { class: "min-w-0" }, G = { class: "min-w-0 truncate text-c-1" }, se =
26
26
  [v.Workspace]: s,
27
27
  [v.Request]: o.request.requestUid
28
28
  }
29
- }), b.set({ ...o.request });
29
+ }), q.set({ ...o.request });
30
30
  }
31
- return (o, s) => (n(), i(e(E), {
31
+ return (o, s) => (n(), i(e(U), {
32
32
  modelValue: g.value,
33
33
  "onUpdate:modelValue": s[0] || (s[0] = (m) => g.value = m)
34
34
  }, {
35
35
  default: r(({ open: m }) => [
36
- u(e(N), {
36
+ u(e(M), {
37
37
  offset: 0,
38
38
  resize: "",
39
39
  target: o.target
@@ -41,12 +41,12 @@ const j = { class: "min-w-0" }, G = { class: "min-w-0 truncate text-c-1" }, se =
41
41
  default: r(() => {
42
42
  var l;
43
43
  return [
44
- (l = h.value) != null && l.length ? (n(), i(e(F), {
44
+ (l = h.value) != null && l.length ? (n(), i(e(E), {
45
45
  key: 0,
46
- class: "addressbar-history-button z-context-plus mr-1 rounded-lg p-1.5 text-c-3 focus:text-c-1"
46
+ class: "address-bar-history-button z-context-plus text-c-3 focus:text-c-1 mr-1 rounded-lg p-1.5"
47
47
  }, {
48
48
  default: r(() => [
49
- u(e(R), {
49
+ u(e(N), {
50
50
  icon: "History",
51
51
  size: "sm",
52
52
  thickness: "2.25"
@@ -62,16 +62,16 @@ const j = { class: "min-w-0" }, G = { class: "min-w-0 truncate text-c-1" }, se =
62
62
  m ? {
63
63
  name: "floating",
64
64
  fn: r(({ width: l }) => [
65
- u(e(I), {
66
- class: "address-bg-states border-t custom-scroll max-h-[inherit] p-0.75 grid grid-cols-[44px,1fr,repeat(3,auto)] items-center",
65
+ u(e(F), {
66
+ class: "custom-scroll p-0.75 grid max-h-[inherit] grid-cols-[44px,1fr,repeat(3,auto)] items-center border-t",
67
67
  style: H({ width: l })
68
68
  }, {
69
69
  default: r(() => [
70
- (n(!0), V(w, null, z(h.value, (t, C) => (n(), i(e(M), {
70
+ (n(!0), V(w, null, z(h.value, (t, C) => (n(), i(e(I), {
71
71
  key: t.timestamp,
72
- class: "contents font-code text-sm *:rounded-none first:*:rounded-l last:*:rounded-r *:h-8 *:ui-active:bg-b-2 *:flex *:items-center *:cursor-pointer *:px-1.5 text-c-2 font-medium",
72
+ class: "font-code *:ui-active:bg-b-2 text-c-2 contents text-sm font-medium *:flex *:h-8 *:cursor-pointer *:items-center *:rounded-none *:px-1.5 first:*:rounded-l last:*:rounded-r",
73
73
  value: C,
74
- onClick: (c) => q(t)
74
+ onClick: (c) => b(t)
75
75
  }, {
76
76
  default: r(() => {
77
77
  var c;
@@ -84,11 +84,11 @@ const j = { class: "min-w-0" }, G = { class: "min-w-0 truncate text-c-1" }, se =
84
84
  a("div", j, [
85
85
  a("div", G, d(t.response.path), 1)
86
86
  ]),
87
- a("div", null, d(e(U)(t.response.duration)), 1),
87
+ a("div", null, d(e(A)(t.response.duration)), 1),
88
88
  a("div", {
89
89
  class: L([e(P)(t.response.status).color])
90
90
  }, d(t.response.status), 3),
91
- a("div", null, d((c = e(W)[t.response.status]) == null ? void 0 : c.name), 1)
91
+ a("div", null, d((c = e(O)[t.response.status]) == null ? void 0 : c.name), 1)
92
92
  ];
93
93
  }),
94
94
  _: 2
@@ -96,7 +96,7 @@ const j = { class: "min-w-0" }, G = { class: "min-w-0 truncate text-c-1" }, se =
96
96
  ]),
97
97
  _: 2
98
98
  }, 1032, ["style"]),
99
- u(e(O), { class: "-top-[--scalar-address-bar-height] rounded-lg" })
99
+ u(e(R), { class: "-top-[--scalar-address-bar-height] rounded-lg" })
100
100
  ]),
101
101
  key: "0"
102
102
  } : void 0
@@ -34,6 +34,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
34
34
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
35
35
  submit: (v: string) => any;
36
36
  "update:modelValue": (v: string) => any;
37
+ blur: (v: string) => any;
37
38
  curl: (v: string) => any;
38
39
  }, string, import("vue").PublicProps, Readonly<{
39
40
  colorPicker?: boolean;
@@ -65,12 +66,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
65
66
  }> & Readonly<{
66
67
  onSubmit?: (v: string) => any;
67
68
  "onUpdate:modelValue"?: (v: string) => any;
69
+ onBlur?: (v: string) => any;
68
70
  onCurl?: (v: string) => any;
69
71
  }>, {
70
72
  disabled: boolean;
71
- emitOnBlur: boolean;
72
73
  nullable: boolean;
73
74
  colorPicker: boolean;
75
+ emitOnBlur: boolean;
74
76
  disableTabIndent: boolean;
75
77
  disableEnter: boolean;
76
78
  disableCloseBrackets: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAgfA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAEzE,OAAO,EAIL,KAAK,kBAAkB,EAExB,MAAM,wBAAwB,CAAA;AAM/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;;kBAYxC,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;eAChB,SAAS;;;;;;;;kBAzBN,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;eAChB,SAAS;;;;;;cAxBT,OAAO;gBAGL,OAAO;cAcT,OAAO;iBAlBJ,OAAO;sBAOF,OAAO;kBAMX,OAAO;0BACC,OAAO;mBAKd,OAAO;gBAEV,OAAO;;qBAqdM,GAAG;kBACN,GAAG;;AA9e9B,wBAyiBC;AAeD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAkfA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAEzE,OAAO,EAIL,KAAK,kBAAkB,EAExB,MAAM,wBAAwB,CAAA;AAM/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;;kBAYxC,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;eAChB,SAAS;;;;;;;;;kBAzBN,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;eAChB,SAAS;;;;;;;cAxBT,OAAO;cAiBP,OAAO;iBAlBJ,OAAO;gBAIR,OAAO;sBAGD,OAAO;kBAMX,OAAO;0BACC,OAAO;mBAKd,OAAO;gBAEV,OAAO;;qBA4dM,GAAG;kBACN,GAAG;;AArf9B,wBAgjBC;AAeD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4d46a9ea"]]);
5
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-18f34311"]]);
6
6
  export {
7
- e as default
7
+ _ as default
8
8
  };
@@ -1,26 +1,26 @@
1
- import { defineComponent as j, useAttrs as H, ref as d, toRef as r, watch as J, computed as $, openBlock as n, createElementBlock as i, Fragment as Q, normalizeClass as W, unref as u, createElementVNode as g, toDisplayString as G, createBlock as f, mergeProps as X, withKeys as V, withModifiers as q, createVNode as Y, createCommentVNode as c, renderSlot as R } from "vue";
1
+ import { defineComponent as j, useAttrs as H, ref as d, toRef as r, watch as J, computed as $, openBlock as n, createElementBlock as i, Fragment as Q, normalizeClass as W, unref as u, createElementVNode as w, toDisplayString as G, createBlock as f, mergeProps as X, withKeys as h, withModifiers as q, createVNode as Y, createCommentVNode as c, renderSlot as R } from "vue";
2
2
  import { ScalarIcon as Z } from "@scalar/components";
3
3
  import { prettyPrintJson as _ } from "@scalar/oas-utils/helpers";
4
4
  import { useCodeMirror as ee, useDropdown as oe, colorPicker as le } from "@scalar/use-codemirror";
5
5
  import { useClipboard as te } from "@scalar/use-hooks/useClipboard";
6
6
  import { nanoid as ne } from "nanoid";
7
7
  import ae from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
8
- import h from "../DataTable/DataTableInputSelect.vue.js";
9
- import { pillPlugin as re, backspaceCommand as ue } from "./codeVariableWidget.js";
10
- import { useLayout as se } from "../../hooks/useLayout.js";
11
- const de = ["id"], ie = {
8
+ import V from "../DataTable/DataTableInputSelect.vue.js";
9
+ import { pillPlugin as re, backspaceCommand as se } from "./codeVariableWidget.js";
10
+ import { useLayout as ue } from "../../hooks/useLayout.js";
11
+ const de = { class: "whitespace-nowrap" }, ie = ["id"], pe = {
12
12
  key: 0,
13
13
  class: "scalar-code-copy z-context"
14
- }, pe = {
14
+ }, me = {
15
15
  key: 5,
16
16
  class: "centered-y text-orange absolute right-7 text-xs"
17
- }, me = {
18
- key: 6,
19
- class: "required centered-y text-xxs text-c-3 bg-b-1 pointer-events-none absolute right-0 pr-2 pt-px opacity-100 shadow-[-8px_0_4px_var(--scalar-background-1)] transition-opacity duration-150 group-[.alert]:bg-transparent group-[.alert]:shadow-none peer-has-[.cm-focused]:opacity-0"
20
17
  }, fe = {
18
+ key: 6,
19
+ class: "required centered-y text-xxs text-c-3 group-[.error]:text-red bg-b-1 pointer-events-none absolute right-0 pr-2 pt-px opacity-100 shadow-[-8px_0_4px_var(--scalar-background-1)] transition-opacity duration-150 group-[.alert]:bg-transparent group-[.error]:bg-transparent group-[.alert]:shadow-none group-[.error]:shadow-none peer-has-[.cm-focused]:opacity-0"
20
+ }, ce = {
21
21
  inheritAttrs: !1
22
- }, ke = /* @__PURE__ */ j({
23
- ...fe,
22
+ }, Se = /* @__PURE__ */ j({
23
+ ...ce,
24
24
  __name: "CodeInput",
25
25
  props: {
26
26
  colorPicker: { type: Boolean, default: !1 },
@@ -50,10 +50,10 @@ const de = ["id"], ie = {
50
50
  envVariables: {},
51
51
  workspace: {}
52
52
  },
53
- emits: ["submit", "update:modelValue", "curl"],
53
+ emits: ["submit", "update:modelValue", "curl", "blur"],
54
54
  setup(A, { expose: E, emit: M }) {
55
- var x;
56
- const o = A, s = M, C = H(), N = C.id || `id-${ne()}`, B = d(!1), y = d(!1), k = d(""), S = d({ left: 0, top: 0 }), m = d(null), { layout: b } = se(), { copyToClipboard: O } = te();
55
+ var P;
56
+ const o = A, s = M, C = H(), N = C.id || `id-${ne()}`, B = d(!1), y = d(!1), k = d(""), S = d({ left: 0, top: 0 }), m = d(null), { layout: b } = ue(), { copyToClipboard: O } = te();
57
57
  function T(e) {
58
58
  var l;
59
59
  return e === o.modelValue ? null : o.importCurl && e.trim().toLowerCase().startsWith("curl") ? (s("curl", e), (l = a.value) == null || l.dispatch({
@@ -64,11 +64,11 @@ const de = ["id"], ie = {
64
64
  }
65
65
  }), null) : o.handleFieldChange ? o.handleFieldChange(e) : s("update:modelValue", e);
66
66
  }
67
- function D(e) {
67
+ function x(e) {
68
68
  return o.handleFieldSubmit ? o.handleFieldSubmit(e) : s("submit", e);
69
69
  }
70
70
  function I(e) {
71
- B.value = !1, o.emitOnBlur && o.modelValue && D(e);
71
+ B.value = !1, o.emitOnBlur && o.modelValue && x(e), s("blur", e);
72
72
  }
73
73
  const v = [];
74
74
  o.colorPicker && v.push(le), v.push(
@@ -78,9 +78,9 @@ const de = ["id"], ie = {
78
78
  workspace: o.workspace,
79
79
  isReadOnly: b === "modal"
80
80
  }),
81
- ue
81
+ se
82
82
  );
83
- const P = d(null), { codeMirror: a } = ee({
83
+ const D = d(null), { codeMirror: a } = ee({
84
84
  content: r(
85
85
  () => o.modelValue !== void 0 ? String(o.modelValue) : ""
86
86
  ),
@@ -89,7 +89,7 @@ const de = ["id"], ie = {
89
89
  },
90
90
  onFocus: () => B.value = !0,
91
91
  onBlur: (e) => I(e),
92
- codeMirrorRef: P,
92
+ codeMirrorRef: D,
93
93
  disableTabIndent: r(() => o.disableTabIndent),
94
94
  disableEnter: r(() => o.disableEnter),
95
95
  disableCloseBrackets: r(() => o.disableCloseBrackets),
@@ -99,7 +99,7 @@ const de = ["id"], ie = {
99
99
  extensions: v,
100
100
  placeholder: r(() => o.placeholder)
101
101
  });
102
- (x = a.value) == null || x.focus(), J(a, () => {
102
+ (P = a.value) == null || P.focus(), J(a, () => {
103
103
  a.value && Object.prototype.hasOwnProperty.call(C, "autofocus") && a.value.focus();
104
104
  });
105
105
  const { handleDropdownSelect: K, updateDropdownVisibility: z } = oe({
@@ -117,9 +117,9 @@ const de = ["id"], ie = {
117
117
  (e = a.value) == null || e.focus();
118
118
  }
119
119
  });
120
- const w = (e, l) => {
120
+ const g = (e, l) => {
121
121
  var p, t, F;
122
- y.value ? e === "down" ? (l.preventDefault(), (p = m.value) == null || p.handleArrowKey("down")) : e === "up" ? (l.preventDefault(), (t = m.value) == null || t.handleArrowKey("up")) : e === "enter" && (l.preventDefault(), (F = m.value) == null || F.handleSelect()) : e === "enter" && l.target instanceof HTMLDivElement && D(l.target.textContent ?? "");
122
+ y.value ? e === "down" ? (l.preventDefault(), (p = m.value) == null || p.handleArrowKey("down")) : e === "up" ? (l.preventDefault(), (t = m.value) == null || t.handleArrowKey("up")) : e === "enter" && (l.preventDefault(), (F = m.value) == null || F.handleSelect()) : e === "enter" && l.target instanceof HTMLDivElement && x(l.target.textContent ?? "");
123
123
  }, U = $(() => Array.isArray(o.type) ? (
124
124
  // Find the first type, that’s not 'null'
125
125
  o.type.find((e) => e !== "null") ?? "string"
@@ -134,21 +134,21 @@ const de = ["id"], ie = {
134
134
  key: 0,
135
135
  class: W(["text-c-2 flex cursor-default items-center justify-center", u(b) === "modal" ? "font-code pl-1 pr-2 text-sm" : "px-2"])
136
136
  }, [
137
- g("span", null, G(e.modelValue), 1)
138
- ], 2)) : o.enum && o.enum.length ? (n(), f(h, {
137
+ w("span", de, G(e.modelValue), 1)
138
+ ], 2)) : o.enum && o.enum.length ? (n(), f(V, {
139
139
  key: 1,
140
140
  default: o.default,
141
141
  modelValue: e.modelValue,
142
142
  type: U.value,
143
143
  value: o.enum,
144
144
  "onUpdate:modelValue": l[0] || (l[0] = (t) => s("update:modelValue", t))
145
- }, null, 8, ["default", "modelValue", "type", "value"])) : e.type === "boolean" || (p = e.type) != null && p.includes("boolean") ? (n(), f(h, {
145
+ }, null, 8, ["default", "modelValue", "type", "value"])) : e.type === "boolean" || (p = e.type) != null && p.includes("boolean") ? (n(), f(V, {
146
146
  key: 2,
147
147
  default: o.default,
148
148
  modelValue: e.modelValue,
149
149
  value: L.value,
150
150
  "onUpdate:modelValue": l[1] || (l[1] = (t) => s("update:modelValue", t))
151
- }, null, 8, ["default", "modelValue", "value"])) : o.examples && o.examples.length ? (n(), f(h, {
151
+ }, null, 8, ["default", "modelValue", "value"])) : o.examples && o.examples.length ? (n(), f(V, {
152
152
  key: 3,
153
153
  default: o.default,
154
154
  modelValue: o.modelValue,
@@ -159,35 +159,35 @@ const de = ["id"], ie = {
159
159
  id: u(N)
160
160
  }, e.$attrs, {
161
161
  ref_key: "codeMirrorRef",
162
- ref: P,
163
- class: ["group-[.alert]:outline-orange font-code peer relative w-full overflow-hidden whitespace-nowrap text-xs leading-[1.44] -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline", {
162
+ ref: D,
163
+ class: ["group-[.alert]:outline-orange group-[.error]:outline-red font-code peer relative w-full overflow-hidden whitespace-nowrap text-xs leading-[1.44] -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline", {
164
164
  "flow-code-input--error": e.error
165
165
  }],
166
166
  onKeydown: [
167
- l[4] || (l[4] = V(q((t) => w("down", t), ["stop"]), ["down"])),
168
- l[5] || (l[5] = V((t) => w("enter", t), ["enter"])),
169
- l[6] || (l[6] = V(q((t) => w("up", t), ["stop"]), ["up"]))
167
+ l[4] || (l[4] = h(q((t) => g("down", t), ["stop"]), ["down"])),
168
+ l[5] || (l[5] = h((t) => g("enter", t), ["enter"])),
169
+ l[6] || (l[6] = h(q((t) => g("up", t), ["stop"]), ["up"]))
170
170
  ]
171
171
  }), [
172
- e.isCopyable ? (n(), i("div", ie, [
173
- g("button", {
172
+ e.isCopyable ? (n(), i("div", pe, [
173
+ w("button", {
174
174
  class: "copy-button",
175
175
  type: "button",
176
176
  onClick: l[3] || (l[3] = (t) => u(O)(u(_)(e.modelValue)))
177
177
  }, [
178
- l[7] || (l[7] = g("span", { class: "sr-only" }, "Copy content", -1)),
178
+ l[7] || (l[7] = w("span", { class: "sr-only" }, "Copy content", -1)),
179
179
  Y(u(Z), {
180
180
  icon: "Clipboard",
181
181
  size: "md"
182
182
  })
183
183
  ])
184
184
  ])) : c("", !0)
185
- ], 16, de)),
186
- e.$slots.warning ? (n(), i("div", pe, [
185
+ ], 16, ie)),
186
+ e.$slots.warning ? (n(), i("div", me, [
187
187
  R(e.$slots, "warning", {}, void 0, !0)
188
188
  ])) : c("", !0),
189
189
  R(e.$slots, "icon", {}, void 0, !0),
190
- e.required ? (n(), i("div", me, " Required ")) : c("", !0),
190
+ e.required ? (n(), i("div", fe, " Required ")) : c("", !0),
191
191
  y.value && e.withVariables && u(b) !== "modal" && e.environment ? (n(), f(ae, {
192
192
  key: 7,
193
193
  ref_key: "dropdownRef",
@@ -203,5 +203,5 @@ const de = ["id"], ie = {
203
203
  }
204
204
  });
205
205
  export {
206
- ke as default
206
+ Se as default
207
207
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as n, openBlock as i, createElementBlock as d, withKeys as a, withModifiers as l, createElementVNode as o, renderSlot as s, createVNode as r, unref as m, withCtx as f, createTextVNode as p } from "vue";
2
2
  import { ScalarButton as u } from "@scalar/components";
3
- const b = { class: "flex flex-col rounded min-h-20 relative" }, x = { class: "flex gap-2" }, c = { class: "flex flex-1 max-h-8" }, h = /* @__PURE__ */ n({
3
+ const b = { class: "relative flex min-h-20 flex-col rounded" }, x = { class: "flex gap-2" }, c = { class: "flex max-h-8 flex-1" }, h = /* @__PURE__ */ n({
4
4
  __name: "CommandActionForm",
5
5
  props: {
6
6
  loading: {},
@@ -22,7 +22,7 @@ const b = { class: "flex flex-col rounded min-h-20 relative" }, x = { class: "fl
22
22
  s(e.$slots, "options")
23
23
  ]),
24
24
  r(m(u), {
25
- class: "max-h-8 text-xs p-0 px-3",
25
+ class: "max-h-8 p-0 px-3 text-xs",
26
26
  disabled: e.disabled,
27
27
  loading: e.loading,
28
28
  type: "submit"
@@ -34,7 +34,7 @@ const E = ["placeholder"], b = /* @__PURE__ */ f({
34
34
  ref_key: "input",
35
35
  ref: a,
36
36
  "onUpdate:modelValue": t[0] || (t[0] = (o) => l.value = o),
37
- class: "border-none outline-none flex-1 w-full pl-8 text-sm min-h-8 py-1.5 resize-none",
37
+ class: "min-h-8 w-full flex-1 resize-none border-none py-1.5 pl-8 text-sm outline-none",
38
38
  placeholder: n.placeholder ?? "",
39
39
  wrap: "hard"
40
40
  }, e.$attrs, {
@@ -1 +1 @@
1
- {"version":3,"file":"CommandPaletteExample.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteExample.vue"],"names":[],"mappings":"AAqJA,KAAK,WAAW,GAAG;IACjB,oCAAoC;IACpC,QAAQ,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAC/B,CAAC;;;;;;;;AA4RF,wBAOG"}
1
+ {"version":3,"file":"CommandPaletteExample.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteExample.vue"],"names":[],"mappings":"AAuJA,KAAK,WAAW,GAAG;IACjB,oCAAoC;IACpC,QAAQ,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAC/B,CAAC;;;;;;;;AA4RF,wBAOG"}