@scalar/api-client 2.18.1 → 2.18.4

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 (292) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/dist/components/AddressBar/AddressBar.vue2.js +52 -52
  3. package/dist/components/AddressBar/AddressBarHistory.vue2.js +15 -15
  4. package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -33
  5. package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
  6. package/dist/components/AddressBar/httpStatusCodeColors.js +0 -1
  7. package/dist/components/CodeInput/CodeInput.vue2.js +112 -112
  8. package/dist/components/CommandPalette/CommandActionForm.vue.js +18 -18
  9. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +25 -25
  10. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -4
  13. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -1
  14. package/dist/components/CommandPalette/WatchModeToggle.vue.js +14 -14
  15. package/dist/components/DataTable/DataTable.vue.js +17 -17
  16. package/dist/components/DataTable/DataTableCell.vue.js +9 -9
  17. package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
  18. package/dist/components/DataTable/DataTableInput.vue2.js +48 -48
  19. package/dist/components/DataTable/DataTableInputSelect.vue.js +35 -35
  20. package/dist/components/DataTable/DataTableText.vue.js +10 -10
  21. package/dist/components/Form/Form.vue.js +32 -32
  22. package/dist/components/Form/LabelInput.vue2.js +15 -15
  23. package/dist/components/HelpfulLink.vue.js +7 -7
  24. package/dist/components/HttpMethod/HttpMethod.vue2.js +22 -22
  25. package/dist/components/IconSelector.vue.js +16 -16
  26. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +50 -50
  27. package/dist/components/ImportCollection/ImportNowButton.vue.js +23 -23
  28. package/dist/components/ImportCollection/PrefetchError.vue.js +8 -8
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -7
  30. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  31. package/dist/components/ScalarAsciiArt.vue2.js +16 -16
  32. package/dist/components/SectionFilter.vue2.js +21 -21
  33. package/dist/components/SectionFilterButton.vue.js +7 -7
  34. package/dist/components/Server/ServerDropdown.vue.js +32 -32
  35. package/dist/components/Server/ServerDropdownItem.vue2.js +39 -39
  36. package/dist/components/Server/ServerSelector.vue.js +27 -27
  37. package/dist/components/Server/ServerVariablesForm.vue.js +26 -26
  38. package/dist/components/Server/ServerVariablesSelect.vue.js +21 -21
  39. package/dist/components/Server/ServerVariablesTextbox.vue.js +10 -10
  40. package/dist/components/Server/types.d.ts +2 -1
  41. package/dist/components/Server/types.d.ts.map +1 -1
  42. package/dist/components/SideNav/SideNavLink.vue.js +18 -18
  43. package/dist/components/SideNav/SideNavRouterLink.vue.js +13 -13
  44. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +11 -11
  45. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +16 -16
  46. package/dist/components/Sidebar/Sidebar.vue2.js +28 -28
  47. package/dist/components/Sidebar/SidebarButton.vue.js +12 -12
  48. package/dist/components/Sidebar/SidebarListElement.vue2.js +34 -34
  49. package/dist/components/Sidebar/SidebarListElementActions.vue.js +33 -33
  50. package/dist/components/TopNav/TopNavItem.vue2.js +41 -41
  51. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +43 -43
  52. package/dist/data/httpHeaders.d.ts +2 -1
  53. package/dist/data/httpHeaders.d.ts.map +1 -1
  54. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  55. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  56. package/dist/libs/create-client.d.ts.map +1 -1
  57. package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
  58. package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
  59. package/dist/plugins/hooks/usePluginManager.js +4 -4
  60. package/dist/plugins/index.d.ts +1 -1
  61. package/dist/plugins/index.d.ts.map +1 -1
  62. package/dist/plugins/index.js +5 -5
  63. package/dist/plugins/plugin-manager.d.ts +0 -2
  64. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  65. package/dist/routes.d.ts +0 -10
  66. package/dist/routes.d.ts.map +1 -1
  67. package/dist/routes.js +0 -1
  68. package/dist/store/security-schemes.d.ts.map +1 -1
  69. package/dist/store/store.d.ts.map +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
  72. package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
  73. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  74. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
  75. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
  76. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
  77. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
  78. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  79. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
  80. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
  81. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  82. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
  83. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
  84. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
  85. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
  86. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  87. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
  88. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  89. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  90. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
  91. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
  92. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  93. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  94. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
  95. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
  96. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
  97. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
  98. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
  99. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
  100. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  101. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
  102. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
  103. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  104. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
  105. package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
  106. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
  107. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  108. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
  109. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
  110. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
  111. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  112. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
  113. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
  114. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
  115. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
  116. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
  117. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
  118. package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
  119. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
  120. package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
  121. package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
  122. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
  123. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
  124. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
  125. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
  126. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
  127. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
  128. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
  129. package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
  130. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
  131. package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
  132. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
  133. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
  134. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
  135. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
  136. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
  137. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +69 -69
  138. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
  139. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
  140. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
  141. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +29 -29
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
  144. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +75 -75
  145. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
  146. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  147. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
  148. package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
  149. package/dist/v2/components/data-table/DataTable.vue.js +17 -17
  150. package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
  151. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
  152. package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
  153. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
  154. package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
  155. package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
  156. package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
  157. package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
  158. package/dist/v2/components/resize/Resize.vue2.js +11 -11
  159. package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
  160. package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
  161. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -0
  162. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  163. package/dist/v2/components/sidebar/Sidebar.vue.js +39 -34
  164. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +11 -1
  165. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  166. package/dist/v2/components/sidebar/SidebarMenu.vue.js +34 -35
  167. package/dist/v2/features/app/App.vue.d.ts +16 -2
  168. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  169. package/dist/v2/features/app/App.vue.js +50 -45
  170. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  171. package/dist/v2/features/app/app-events.js +55 -61
  172. package/dist/v2/features/app/app-state.d.ts +2 -1
  173. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  174. package/dist/v2/features/app/app-state.js +10 -10
  175. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +11 -1
  176. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  177. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  178. package/dist/v2/features/app/components/AppSidebar.vue2.js +113 -110
  179. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
  180. package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
  181. package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
  182. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
  183. package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
  184. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +3 -60
  185. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  186. package/dist/v2/features/app/helpers/create-api-client-app.js +8 -8
  187. package/dist/v2/features/app/index.d.ts +5 -1
  188. package/dist/v2/features/app/index.d.ts.map +1 -1
  189. package/dist/v2/features/app/index.js +8 -2
  190. package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
  191. package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
  192. package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
  193. package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
  194. package/dist/v2/features/collection/components/Environment.vue.js +10 -10
  195. package/dist/v2/features/collection/components/Form.vue.js +21 -21
  196. package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
  197. package/dist/v2/features/collection/components/Servers.vue.js +37 -37
  198. package/dist/v2/features/collection/components/Settings.vue.js +22 -22
  199. package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
  200. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
  201. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
  202. package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
  203. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
  204. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
  205. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
  206. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
  207. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
  208. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
  209. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  210. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
  211. package/dist/v2/features/command-palette/types.d.ts +11 -10
  212. package/dist/v2/features/command-palette/types.d.ts.map +1 -1
  213. package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
  214. package/dist/v2/features/environments/components/Environment.vue.js +16 -16
  215. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
  216. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
  217. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
  218. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
  219. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
  220. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
  221. package/dist/v2/features/modal/Modal.vue2.js +56 -56
  222. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -1
  223. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  224. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
  225. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
  226. package/dist/v2/features/operation/Operation.vue.js +34 -34
  227. package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
  228. package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
  229. package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
  230. package/dist/v2/features/search/types.d.ts +5 -4
  231. package/dist/v2/features/search/types.d.ts.map +1 -1
  232. package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
  233. package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
  234. package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
  235. package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
  236. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  237. package/dist/v2/helpers/handle-hotkeys.js +0 -2
  238. package/dist/v2/helpers/plugins.d.ts +2 -2
  239. package/dist/v2/helpers/plugins.d.ts.map +1 -1
  240. package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
  241. package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
  242. package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
  243. package/dist/views/Cookies/CookieModal.vue2.js +26 -26
  244. package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
  245. package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
  246. package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
  247. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
  248. package/dist/views/Request/Request.vue2.js +55 -55
  249. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
  250. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
  251. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
  252. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  253. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
  254. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  255. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
  256. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
  257. package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
  258. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
  259. package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
  260. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
  261. package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
  262. package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
  263. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
  264. package/dist/views/Request/RequestSection/index.d.ts +1 -1
  265. package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
  266. package/dist/views/Request/RequestSection/index.js +4 -4
  267. package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
  268. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
  269. package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
  270. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
  271. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
  272. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
  273. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
  274. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
  275. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
  276. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
  277. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
  278. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
  279. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
  280. package/package.json +24 -24
  281. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
  282. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
  283. package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
  284. package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
  285. package/dist/components/ScreenReader.vue.d.ts +0 -20
  286. package/dist/components/ScreenReader.vue.d.ts.map +0 -1
  287. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
  288. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
  289. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
  290. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
  291. package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
  292. package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
@@ -1,10 +1,10 @@
1
- import { defineComponent as f, useId as k, createBlock as n, openBlock as l, createSlots as s, withCtx as t, createElementVNode as a, createCommentVNode as y, createElementBlock as i, Fragment as _, renderList as h, createVNode as m, unref as r, toDisplayString as c, renderSlot as b } from "vue";
2
- import { ScalarIcon as g } from "@scalar/components";
3
- import v from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
- import V from "../../../components/data-table/DataTable.vue.js";
1
+ import { defineComponent as p, useId as y, createBlock as o, openBlock as n, createSlots as c, withCtx as t, createElementVNode as a, createCommentVNode as h, createElementBlock as s, Fragment as b, renderList as g, createVNode as m, unref as r, toDisplayString as u, renderSlot as v } from "vue";
2
+ import { ScalarIcon as V } from "@scalar/components";
3
+ import x from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
+ import _ from "../../../components/data-table/DataTable.vue.js";
5
5
  import S from "../../../components/data-table/DataTableInput.vue.js";
6
6
  import U from "../../../components/data-table/DataTableRow.vue.js";
7
- const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"], C = { class: "centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5" }, L = /* @__PURE__ */ f({
7
+ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"], C = { class: "centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5" }, j = /* @__PURE__ */ p({
8
8
  __name: "Form",
9
9
  props: {
10
10
  title: {},
@@ -13,38 +13,38 @@ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"]
13
13
  onUpdate: { type: Function },
14
14
  environment: {}
15
15
  },
16
- setup(D) {
17
- const d = k();
18
- return (e, F) => (l(), n(v, { class: "last:rounded-b-lg" }, s({
16
+ setup(e) {
17
+ const d = y();
18
+ return (i, D) => (n(), o(x, { class: "last:rounded-b-lg" }, c({
19
19
  default: t(() => [
20
20
  a("div", w, [
21
- Object.keys(e.data).length > 0 ? (l(), n(V, {
21
+ Object.keys(e.data).length > 0 ? (n(), o(_, {
22
22
  key: 0,
23
23
  class: "rounded-b-lg",
24
24
  columns: [""]
25
25
  }, {
26
26
  default: t(() => [
27
- (l(!0), i(_, null, h(e.options, (o, p) => (l(), n(U, { key: p }, {
27
+ (n(!0), s(b, null, g(e.options, (l, f) => (n(), o(U, { key: f }, {
28
28
  default: t(() => [
29
29
  m(S, {
30
30
  id: r(d),
31
31
  class: "pr-9",
32
32
  environment: e.environment,
33
33
  lineWrapping: "",
34
- modelValue: e.data[o.key] ?? "",
35
- placeholder: o.placeholder,
36
- "onUpdate:modelValue": (u) => e.onUpdate(o.key, u)
37
- }, s({
34
+ modelValue: e.data[l.key] ?? "",
35
+ placeholder: l.placeholder,
36
+ "onUpdate:modelValue": (k) => e.onUpdate(l.key, k)
37
+ }, c({
38
38
  default: t(() => [
39
- a("label", { for: r(d) }, c(o.label), 9, B)
39
+ a("label", { for: r(d) }, u(l.label), 9, B)
40
40
  ]),
41
41
  _: 2
42
42
  }, [
43
- o.key === "description" ? {
43
+ l.key === "description" ? {
44
44
  name: "icon",
45
45
  fn: t(() => [
46
46
  a("div", C, [
47
- m(r(g), {
47
+ m(r(V), {
48
48
  icon: "Markdown",
49
49
  size: "lg"
50
50
  })
@@ -58,15 +58,15 @@ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"]
58
58
  }, 1024))), 128))
59
59
  ]),
60
60
  _: 1
61
- })) : y("", !0)
61
+ })) : h("", !0)
62
62
  ])
63
63
  ]),
64
64
  _: 2
65
65
  }, [
66
- e.title || e.$slots.title ? {
66
+ e.title || i.$slots.title ? {
67
67
  name: "title",
68
68
  fn: t(() => [
69
- e.title ? (l(), i("span", $, c(e.title), 1)) : b(e.$slots, "title", { key: 1 })
69
+ e.title ? (n(), s("span", $, u(e.title), 1)) : v(i.$slots, "title", { key: 1 })
70
70
  ]),
71
71
  key: "0"
72
72
  } : void 0
@@ -74,5 +74,5 @@ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"]
74
74
  }
75
75
  });
76
76
  export {
77
- L as default
77
+ j as default
78
78
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as k, computed as y, ref as x, useTemplateRef as w, createElementBlock as i, openBlock as t, createElementVNode as o, createBlock as c, createCommentVNode as h, unref as n, withCtx as m, createVNode as d, Fragment as v, nextTick as B } from "vue";
2
- import { ScalarButton as f, ScalarMarkdown as C } from "@scalar/components";
3
- import { ScalarIconPencil as b } from "@scalar/icons";
1
+ import { defineComponent as k, computed as x, ref as y, useTemplateRef as w, createElementBlock as i, openBlock as t, createElementVNode as o, createBlock as m, createCommentVNode as h, unref as n, withCtx as v, createVNode as r, Fragment as f, nextTick as B } from "vue";
2
+ import { ScalarButton as b, ScalarMarkdown as C } from "@scalar/components";
3
+ import { ScalarIconPencil as g } from "@scalar/icons";
4
4
  import I from "../../../components/code-input/CodeInput.vue.js";
5
5
  const S = { class: "flex flex-col gap-2" }, V = { class: "flex items-center justify-between gap-2 pl-1.5" }, z = { class: "has-[:focus-visible]:bg-b-1 group rounded-lg" }, N = {
6
6
  key: 1,
@@ -22,25 +22,25 @@ const S = { class: "flex flex-col gap-2" }, V = { class: "flex items-center just
22
22
  plugins: {},
23
23
  collectionType: {}
24
24
  },
25
- setup(g) {
26
- const u = y(
27
- () => g.document?.info?.description ?? ""
28
- ), a = x("preview"), p = w("codeInputRef"), r = async (s) => {
29
- a.value = s, s === "edit" && (await B(), p.value?.focus());
25
+ setup(d) {
26
+ const u = x(
27
+ () => d.document?.info?.description ?? ""
28
+ ), a = y("preview"), p = w("codeInputRef"), l = async (c) => {
29
+ a.value = c, c === "edit" && (await B(), p.value?.focus());
30
30
  };
31
- return (s, e) => (t(), i("div", S, [
31
+ return (c, e) => (t(), i("div", S, [
32
32
  o("div", V, [
33
33
  e[6] || (e[6] = o("h3", { class: "font-bold" }, "Description", -1)),
34
- a.value === "preview" ? (t(), c(n(f), {
34
+ a.value === "preview" ? (t(), m(n(b), {
35
35
  key: 0,
36
36
  class: "text-c-2 hover:text-c-1 flex items-center gap-2",
37
37
  size: "sm",
38
38
  type: "button",
39
39
  variant: "outlined",
40
- onClick: e[0] || (e[0] = (l) => r("edit"))
40
+ onClick: e[0] || (e[0] = (s) => l("edit"))
41
41
  }, {
42
- default: m(() => [
43
- d(n(b), {
42
+ default: v(() => [
43
+ r(n(g), {
44
44
  size: "sm",
45
45
  thickness: "1.5"
46
46
  }),
@@ -50,24 +50,24 @@ const S = { class: "flex flex-col gap-2" }, V = { class: "flex items-center just
50
50
  })) : h("", !0)
51
51
  ]),
52
52
  o("div", z, [
53
- a.value === "preview" ? (t(), i(v, { key: 0 }, [
54
- u.value.trim().length ? (t(), i(v, { key: 0 }, [
55
- d(n(C), {
53
+ a.value === "preview" ? (t(), i(f, { key: 0 }, [
54
+ u.value.trim().length ? (t(), i(f, { key: 0 }, [
55
+ r(n(C), {
56
56
  class: "flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",
57
57
  value: u.value,
58
58
  withImages: "",
59
- onDblclick: e[1] || (e[1] = (l) => r("edit"))
59
+ onDblclick: e[1] || (e[1] = (s) => l("edit"))
60
60
  }, null, 8, ["value"]),
61
61
  e[7] || (e[7] = o("div", { class: "brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden" }, null, -1))
62
62
  ], 64)) : (t(), i("div", N, [
63
- d(n(f), {
63
+ r(n(b), {
64
64
  class: "hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",
65
65
  size: "sm",
66
66
  variant: "ghost",
67
- onClick: e[2] || (e[2] = (l) => r("edit"))
67
+ onClick: e[2] || (e[2] = (s) => l("edit"))
68
68
  }, {
69
- default: m(() => [
70
- d(n(b), {
69
+ default: v(() => [
70
+ r(n(g), {
71
71
  size: "sm",
72
72
  thickness: "1.5"
73
73
  }),
@@ -76,16 +76,16 @@ const S = { class: "flex flex-col gap-2" }, V = { class: "flex items-center just
76
76
  _: 1
77
77
  })
78
78
  ]))
79
- ], 64)) : (t(), c(n(I), {
79
+ ], 64)) : (t(), m(n(I), {
80
80
  key: 1,
81
81
  ref_key: "codeInputRef",
82
82
  ref: p,
83
83
  class: "border px-0.5 py-0",
84
84
  environment: void 0,
85
- layout: s.layout,
85
+ layout: d.layout,
86
86
  modelValue: u.value,
87
- onBlur: e[3] || (e[3] = (l) => r("preview")),
88
- "onUpdate:modelValue": e[4] || (e[4] = (l) => s.eventBus.emit("document:update:info", { description: l }))
87
+ onBlur: e[3] || (e[3] = (s) => l("preview")),
88
+ "onUpdate:modelValue": e[4] || (e[4] = (s) => d.eventBus.emit("document:update:info", { description: s }))
89
89
  }, null, 8, ["layout", "modelValue"]))
90
90
  ])
91
91
  ]));
@@ -1,4 +1,4 @@
1
- import { defineComponent as M, ref as A, computed as x, createElementBlock as u, openBlock as c, Fragment as S, createElementVNode as a, createVNode as l, createTextVNode as g, renderList as I, createBlock as y, unref as r, toDisplayString as T, withCtx as f, createCommentVNode as V } from "vue";
1
+ import { defineComponent as M, ref as A, computed as x, createElementBlock as u, openBlock as c, Fragment as S, createElementVNode as s, createVNode as o, createTextVNode as g, renderList as I, createBlock as y, unref as r, toDisplayString as T, withCtx as f, createCommentVNode as V } from "vue";
2
2
  import { useModal as P, ScalarMarkdown as z, ScalarButton as k, ScalarModal as L } from "@scalar/components";
3
3
  import { debounce as O } from "@scalar/helpers/general/debounce";
4
4
  import { ScalarIconTrash as R, ScalarIconPlus as j } from "@scalar/icons";
@@ -25,10 +25,10 @@ const Y = { class: "flex flex-col gap-4" }, q = { class: "flex flex-col gap-4" }
25
25
  plugins: {},
26
26
  collectionType: {}
27
27
  },
28
- setup(o) {
28
+ setup(l) {
29
29
  const v = P(), n = A(-1), _ = x(
30
- () => o.document?.servers?.[n.value]
31
- ), $ = x(() => o.document?.servers ?? []), B = [
30
+ () => l.document?.servers?.[n.value]
31
+ ), $ = x(() => l.document?.servers ?? []), B = [
32
32
  {
33
33
  label: "URL",
34
34
  key: "url",
@@ -44,91 +44,91 @@ const Y = { class: "flex flex-col gap-4" }, q = { class: "flex flex-col gap-4" }
44
44
  }, p = () => {
45
45
  v.hide(), n.value = -1;
46
46
  }, N = () => {
47
- n.value < 0 || (o.eventBus.emit("server:delete:server", { index: n.value }), p());
48
- }, { execute: h } = O({ delay: 328, maxWait: 1e3 }), U = (t, e, s) => h(
47
+ n.value < 0 || (l.eventBus.emit("server:delete:server", { index: n.value }), p());
48
+ }, { execute: h } = O({ delay: 328, maxWait: 1e3 }), U = (t, e, a) => h(
49
49
  `${t}-${e}`,
50
- () => o.eventBus.emit("server:update:server", {
50
+ () => l.eventBus.emit("server:update:server", {
51
51
  index: t,
52
- server: { [e]: s }
52
+ server: { [e]: a }
53
53
  })
54
- ), C = (t, e, s) => h(
54
+ ), C = (t, e, a) => h(
55
55
  `${t}-${e}`,
56
- () => o.eventBus.emit("server:update:variables", {
56
+ () => l.eventBus.emit("server:update:variables", {
57
57
  index: t,
58
58
  key: e,
59
- value: s
59
+ value: a
60
60
  })
61
- ), D = () => o.eventBus.emit("server:add:server"), b = (t, e = 0) => t?.description || `Server ${e + 1}`;
61
+ ), D = () => l.eventBus.emit("server:add:server"), b = (t, e = 0) => t?.description || `Server ${e + 1}`;
62
62
  return (t, e) => (c(), u(S, null, [
63
- a("div", Y, [
64
- e[1] || (e[1] = a("div", { class: "flex flex-col gap-2" }, [
65
- a("h3", { class: "font-bold" }, "Servers"),
66
- a("p", { class: "text-sm" }, [
63
+ s("div", Y, [
64
+ e[1] || (e[1] = s("div", { class: "flex flex-col gap-2" }, [
65
+ s("h3", { class: "font-bold" }, "Servers"),
66
+ s("p", { class: "text-sm" }, [
67
67
  g(" Add different base URLs for your API. You can use "),
68
- a("code", { class: "font-code text-c-2" }, "{variables}"),
68
+ s("code", { class: "font-code text-c-2" }, "{variables}"),
69
69
  g(" for dynamic parts. ")
70
70
  ])
71
71
  ], -1)),
72
- a("div", q, [
73
- (c(!0), u(S, null, I($.value, (s, d) => (c(), u("div", {
72
+ s("div", q, [
73
+ (c(!0), u(S, null, I($.value, (a, d) => (c(), u("div", {
74
74
  key: d,
75
75
  class: "rounded-lg border"
76
76
  }, [
77
- a("div", G, [
78
- s.description ? (c(), y(r(z), {
77
+ s("div", G, [
78
+ a.description ? (c(), y(r(z), {
79
79
  key: 0,
80
80
  class: "self-center",
81
- value: s.description
82
- }, null, 8, ["value"])) : (c(), u("span", H, T(b(s, d)), 1)),
83
- l(r(k), {
81
+ value: a.description
82
+ }, null, 8, ["value"])) : (c(), u("span", H, T(b(a, d)), 1)),
83
+ o(r(k), {
84
84
  class: "hover:bg-b-3 hover:text-c-1 h-fit p-1.25",
85
85
  "data-testid": "delete-server-button",
86
86
  variant: "ghost",
87
87
  onClick: (i) => w(d)
88
88
  }, {
89
89
  default: f(() => [
90
- l(r(R), { class: "size-3.5" })
90
+ o(r(R), { class: "size-3.5" })
91
91
  ]),
92
92
  _: 1
93
93
  }, 8, ["onClick"])
94
94
  ]),
95
- a("div", J, [
96
- l(F, {
97
- data: s,
98
- environment: t.environment,
95
+ s("div", J, [
96
+ o(F, {
97
+ data: a,
98
+ environment: l.environment,
99
99
  onUpdate: (i, m) => U(d, i, m),
100
100
  options: B
101
101
  }, null, 8, ["data", "environment", "onUpdate"]),
102
- s.variables ? (c(), y(r(W), {
102
+ a.variables ? (c(), y(r(W), {
103
103
  key: 0,
104
- variables: s.variables,
104
+ variables: a.variables,
105
105
  "onUpdate:variable": (i, m) => C(d, i, m)
106
106
  }, null, 8, ["variables", "onUpdate:variable"])) : V("", !0)
107
107
  ])
108
108
  ]))), 128))
109
109
  ]),
110
- a("div", K, [
111
- l(r(k), {
110
+ s("div", K, [
111
+ o(r(k), {
112
112
  class: "hover:bg-b-2 hover:text-c-1 flex items-center gap-2",
113
113
  size: "sm",
114
114
  variant: "ghost",
115
115
  onClick: D
116
116
  }, {
117
117
  default: f(() => [
118
- l(r(j)),
119
- e[0] || (e[0] = a("span", null, "Add Server", -1))
118
+ o(r(j)),
119
+ e[0] || (e[0] = s("span", null, "Add Server", -1))
120
120
  ]),
121
121
  _: 1
122
122
  })
123
123
  ])
124
124
  ]),
125
- l(r(L), {
125
+ o(r(L), {
126
126
  size: "xxs",
127
127
  state: r(v),
128
128
  title: `Delete ${b(_.value, n.value)}`
129
129
  }, {
130
130
  default: f(() => [
131
- l(E, {
131
+ o(E, {
132
132
  variableName: "Server",
133
133
  warningMessage: "Are you sure you want to delete this server? This action cannot be undone.",
134
134
  onClose: p,
@@ -1,8 +1,8 @@
1
- import { defineComponent as u, createBlock as t, openBlock as a, unref as c } from "vue";
1
+ import { defineComponent as s, createBlock as o, openBlock as c, unref as a } from "vue";
2
2
  import { useRouter as i } from "vue-router";
3
- import p from "../../settings/DocumentSettings.vue.js";
4
- import h from "../../settings/CollectionSettings.vue.js";
5
- const U = /* @__PURE__ */ u({
3
+ import h from "../../settings/DocumentSettings.vue.js";
4
+ import k from "../../settings/CollectionSettings.vue.js";
5
+ const y = /* @__PURE__ */ s({
6
6
  __name: "Settings",
7
7
  props: {
8
8
  documentSlug: {},
@@ -19,32 +19,32 @@ const U = /* @__PURE__ */ u({
19
19
  plugins: {},
20
20
  collectionType: {}
21
21
  },
22
- setup(o) {
23
- const r = (e) => {
24
- o.eventBus.emit("document:update:watch-mode", e);
25
- }, n = (e) => {
26
- o.eventBus.emit("workspace:update:theme", e);
27
- }, m = (e) => {
28
- o.eventBus.emit("workspace:update:active-proxy", e);
29
- }, d = (e) => {
30
- o.eventBus.emit("workspace:update:color-mode", e);
31
- }, l = i(), s = () => {
32
- o.workspaceStore.deleteDocument(o.documentSlug), l.push({
22
+ setup(e) {
23
+ const n = (t) => {
24
+ e.eventBus.emit("document:update:watch-mode", t);
25
+ }, r = (t) => {
26
+ e.eventBus.emit("workspace:update:theme", t);
27
+ }, m = (t) => {
28
+ e.eventBus.emit("workspace:update:active-proxy", t);
29
+ }, d = (t) => {
30
+ e.eventBus.emit("workspace:update:color-mode", t);
31
+ }, l = i(), u = () => {
32
+ e.workspaceStore.deleteDocument(e.documentSlug), l.push({
33
33
  name: "workspace.environment",
34
34
  params: {
35
- workspaceSlug: o.activeWorkspace.id
35
+ workspaceSlug: e.activeWorkspace.id
36
36
  }
37
37
  });
38
38
  };
39
- return (e, k) => e.collectionType === "document" ? (a(), t(c(p), {
39
+ return (t, p) => e.collectionType === "document" ? (c(), o(a(h), {
40
40
  key: 0,
41
41
  documentUrl: e.document?.["x-scalar-original-source-url"],
42
42
  isDraftDocument: e.documentSlug === "drafts",
43
43
  title: e.document?.info.title ?? "",
44
44
  watchMode: e.document?.["x-scalar-watch-mode"] ?? !0,
45
- "onDelete:document": s,
46
- "onUpdate:watchMode": r
47
- }, null, 8, ["documentUrl", "isDraftDocument", "title", "watchMode"])) : (a(), t(c(h), {
45
+ "onDelete:document": u,
46
+ "onUpdate:watchMode": n
47
+ }, null, 8, ["documentUrl", "isDraftDocument", "title", "watchMode"])) : (c(), o(a(k), {
48
48
  key: 1,
49
49
  activeProxyUrl: e.workspaceStore.workspace["x-scalar-active-proxy"],
50
50
  activeThemeId: e.workspaceStore.workspace["x-scalar-theme"] ?? "default",
@@ -52,10 +52,10 @@ const U = /* @__PURE__ */ u({
52
52
  customProxyUrl: e.workspaceStore.config["x-scalar-reference-config"].settings.proxyUrl,
53
53
  "onUpdate:colorMode": d,
54
54
  "onUpdate:proxyUrl": m,
55
- "onUpdate:themeId": n
55
+ "onUpdate:themeId": r
56
56
  }, null, 8, ["activeProxyUrl", "activeThemeId", "colorMode", "customProxyUrl"]));
57
57
  }
58
58
  });
59
59
  export {
60
- U as default
60
+ y as default
61
61
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as m, computed as p, createElementBlock as o, openBlock as t, Fragment as u, renderList as d, createBlock as f, unref as h, withCtx as x, createElementVNode as n, normalizeClass as k, toDisplayString as v, capitalize as _ } from "vue";
2
- import { RouterLink as b } from "vue-router";
3
- const w = { class: "flex w-full gap-2 border-b pl-1.5 md:ml-1.5 md:pl-0" }, g = ["href", "onClick"], z = /* @__PURE__ */ m({
1
+ import { defineComponent as a, computed as m, createElementBlock as n, openBlock as t, Fragment as p, renderList as u, createBlock as d, unref as f, withCtx as x, createElementVNode as r, normalizeClass as h, toDisplayString as k, capitalize as v } from "vue";
2
+ import { RouterLink as _ } from "vue-router";
3
+ const b = { class: "flex w-full gap-2 border-b pl-1.5 md:ml-1.5 md:pl-0" }, w = ["href", "onClick"], z = /* @__PURE__ */ a({
4
4
  __name: "Tabs",
5
5
  props: {
6
6
  type: {}
7
7
  },
8
- setup(r) {
9
- const s = p(
10
- () => r.type === "workspace" ? ["environment", "cookies", "settings"] : [
8
+ setup(o) {
9
+ const s = m(
10
+ () => o.type === "workspace" ? ["environment", "cookies", "settings"] : [
11
11
  "overview",
12
12
  "servers",
13
13
  "authentication",
@@ -16,25 +16,25 @@ const w = { class: "flex w-full gap-2 border-b pl-1.5 md:ml-1.5 md:pl-0" }, g =
16
16
  "settings"
17
17
  ]
18
18
  );
19
- return (c, y) => (t(), o("div", w, [
20
- (t(!0), o(u, null, d(s.value, (e) => (t(), f(h(b), {
19
+ return (g, y) => (t(), n("div", b, [
20
+ (t(!0), n(p, null, u(s.value, (e) => (t(), d(f(_), {
21
21
  key: e,
22
22
  custom: "",
23
- to: { name: `${c.type}.${e}` }
23
+ to: { name: `${o.type}.${e}` }
24
24
  }, {
25
- default: x(({ isActive: i, href: l, navigate: a }) => [
26
- n("a", {
25
+ default: x(({ isActive: c, href: i, navigate: l }) => [
26
+ r("a", {
27
27
  class: "-ml-2 flex h-10 cursor-pointer items-center px-2 text-center text-sm font-medium whitespace-nowrap no-underline -outline-offset-1 has-[:focus-visible]:outline",
28
- href: l,
29
- onClick: a
28
+ href: i,
29
+ onClick: l
30
30
  }, [
31
- n("span", {
32
- class: k([
31
+ r("span", {
32
+ class: h([
33
33
  "flex-center hover:text-c-1 h-full border-b",
34
- i ? "text-c-1 border-c-1" : "text-c-2 hover:text-c-1 border-transparent"
34
+ c ? "text-c-1 border-c-1" : "text-c-2 hover:text-c-1 border-transparent"
35
35
  ])
36
- }, v(_(e)), 3)
37
- ], 8, g)
36
+ }, k(v(e)), 3)
37
+ ], 8, w)
38
38
  ]),
39
39
  _: 2
40
40
  }, 1032, ["to"]))), 128))
@@ -1,40 +1,40 @@
1
- import { defineComponent as f, createElementBlock as u, openBlock as p, withModifiers as l, withKeys as c, createElementVNode as o, normalizeProps as x, guardReactiveProps as b, unref as a, renderSlot as s, createVNode as h, withCtx as v, createTextVNode as w } from "vue";
1
+ import { defineComponent as f, createElementBlock as u, openBlock as c, withModifiers as a, withKeys as p, createElementVNode as s, normalizeProps as x, guardReactiveProps as b, unref as d, renderSlot as l, createVNode as h, withCtx as v, createTextVNode as w } from "vue";
2
2
  import { useBindCx as B, ScalarButton as C } from "@scalar/components";
3
- const y = { class: "flex gap-2" }, S = { class: "flex max-h-8 flex-1" }, _ = {
3
+ const y = { class: "flex gap-2" }, S = { class: "flex max-h-8 flex-1" }, g = {
4
4
  name: "CommandActionForm"
5
- }, N = /* @__PURE__ */ f({
6
- ..._,
5
+ }, V = /* @__PURE__ */ f({
6
+ ...g,
7
7
  props: {
8
8
  loader: {},
9
9
  disabled: { type: Boolean, default: !1 }
10
10
  },
11
11
  emits: ["submit", "cancel", "back"],
12
- setup(d, { emit: i }) {
12
+ setup(t, { emit: i }) {
13
13
  const n = i, { cx: r } = B(), m = () => {
14
- d.disabled || n("submit");
14
+ t.disabled || n("submit");
15
15
  };
16
- return (e, t) => (p(), u("form", {
16
+ return (o, e) => (c(), u("form", {
17
17
  class: "flex w-full flex-col gap-3",
18
- onKeydown: t[0] || (t[0] = c(l(() => {
18
+ onKeydown: e[0] || (e[0] = p(a(() => {
19
19
  }, ["stop"]), ["enter"])),
20
- onSubmit: l(m, ["prevent", "stop"])
20
+ onSubmit: a(m, ["prevent", "stop"])
21
21
  }, [
22
- o("div", x(b(a(r)("relative flex min-h-20 flex-col rounded"))), [
23
- s(e.$slots, "default")
22
+ s("div", x(b(d(r)("relative flex min-h-20 flex-col rounded"))), [
23
+ l(o.$slots, "default")
24
24
  ], 16),
25
- o("div", y, [
26
- o("div", S, [
27
- s(e.$slots, "options")
25
+ s("div", y, [
26
+ s("div", S, [
27
+ l(o.$slots, "options")
28
28
  ]),
29
- h(a(C), {
29
+ h(d(C), {
30
30
  class: "max-h-8 px-3 text-xs",
31
- disabled: e.disabled,
32
- loader: e.loader,
31
+ disabled: t.disabled,
32
+ loader: t.loader,
33
33
  type: "submit"
34
34
  }, {
35
35
  default: v(() => [
36
- s(e.$slots, "submit", {}, () => [
37
- t[1] || (t[1] = w("Continue", -1))
36
+ l(o.$slots, "submit", {}, () => [
37
+ e[1] || (e[1] = w("Continue", -1))
38
38
  ])
39
39
  ]),
40
40
  _: 3
@@ -44,5 +44,5 @@ const y = { class: "flex gap-2" }, S = { class: "flex max-h-8 flex-1" }, _ = {
44
44
  }
45
45
  });
46
46
  export {
47
- N as default
47
+ V as default
48
48
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as c, ref as p, computed as m, onMounted as f, nextTick as h, withDirectives as b, createElementBlock as g, openBlock as v, mergeProps as w, withKeys as u, vModelText as y } from "vue";
2
- const x = ["placeholder"], E = {
1
+ import { defineComponent as c, ref as m, computed as p, onMounted as f, nextTick as h, withDirectives as b, createElementBlock as g, openBlock as v, mergeProps as w, withKeys as u, vModelText as x } from "vue";
2
+ const y = ["placeholder"], E = {
3
3
  name: "CommandActionInput"
4
- }, _ = /* @__PURE__ */ c({
4
+ }, k = /* @__PURE__ */ c({
5
5
  ...E,
6
6
  inheritAttrs: !1,
7
7
  props: {
@@ -10,43 +10,43 @@ const x = ["placeholder"], E = {
10
10
  autofocus: { type: Boolean, default: !0 }
11
11
  },
12
12
  emits: ["update:modelValue", "delete"],
13
- setup(l, { emit: s }) {
14
- const a = s, r = p(null), o = m({
15
- get: () => l.modelValue ?? "",
13
+ setup(o, { emit: d }) {
14
+ const a = d, r = m(null), n = p({
15
+ get: () => o.modelValue ?? "",
16
16
  set: (e) => a("update:modelValue", e)
17
17
  });
18
18
  f(() => {
19
19
  h(() => {
20
- l.autofocus && r.value?.focus();
20
+ o.autofocus && r.value?.focus();
21
21
  });
22
22
  });
23
- const d = (e) => {
23
+ const s = (e) => {
24
24
  if (e.shiftKey || !e.target)
25
25
  return;
26
26
  e.preventDefault();
27
- const t = e.target, n = new Event("submit", { cancelable: !0 });
28
- t.form?.dispatchEvent(n);
27
+ const t = e.target, l = new Event("submit", { cancelable: !0 });
28
+ t.form?.dispatchEvent(l);
29
29
  }, i = (e) => {
30
- o.value === "" && (e.preventDefault(), e.stopPropagation(), a("delete", e));
30
+ n.value === "" && (e.preventDefault(), e.stopPropagation(), a("delete", e));
31
31
  };
32
32
  return (e, t) => b((v(), g("textarea", w({
33
33
  id: "command-action-input",
34
34
  ref_key: "input",
35
35
  ref: r,
36
- "onUpdate:modelValue": t[0] || (t[0] = (n) => o.value = n),
36
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => n.value = l),
37
37
  class: "min-h-8 w-full flex-1 resize-none border border-transparent py-1.5 pl-8.5 text-sm outline-none focus:border-b-1",
38
- placeholder: e.placeholder ?? "",
38
+ placeholder: o.placeholder ?? "",
39
39
  wrap: "hard"
40
40
  }, e.$attrs, {
41
41
  onKeydown: [
42
42
  u(i, ["delete"]),
43
- u(d, ["enter"])
43
+ u(s, ["enter"])
44
44
  ]
45
- }), null, 16, x)), [
46
- [y, o.value]
45
+ }), null, 16, y)), [
46
+ [x, n.value]
47
47
  ]);
48
48
  }
49
49
  });
50
50
  export {
51
- _ as default
51
+ k as default
52
52
  };