@scalar/api-client 2.18.0 → 2.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/CHANGELOG.md +85 -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/hooks/useClientConfig.js +1 -1
  55. package/dist/hooks/useLayout.js +1 -1
  56. package/dist/hooks/useSidebar.js +1 -1
  57. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  58. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  59. package/dist/libs/create-client.d.ts.map +1 -1
  60. package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
  61. package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
  62. package/dist/plugins/hooks/usePluginManager.js +5 -5
  63. package/dist/plugins/index.d.ts +1 -1
  64. package/dist/plugins/index.d.ts.map +1 -1
  65. package/dist/plugins/index.js +5 -5
  66. package/dist/plugins/plugin-manager.d.ts +0 -2
  67. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  68. package/dist/routes.d.ts +0 -10
  69. package/dist/routes.d.ts.map +1 -1
  70. package/dist/routes.js +0 -1
  71. package/dist/store/active-entities.js +1 -1
  72. package/dist/store/security-schemes.d.ts.map +1 -1
  73. package/dist/store/store.d.ts.map +1 -1
  74. package/dist/style.css +1 -1
  75. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  76. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
  77. package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
  78. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  79. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
  80. package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +0 -2
  81. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
  82. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
  83. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
  84. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  85. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
  86. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
  87. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  88. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
  89. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
  90. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
  91. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
  92. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  93. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
  94. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  95. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  96. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
  97. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
  98. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  99. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  100. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
  101. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
  102. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
  103. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
  104. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
  105. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
  106. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  107. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
  108. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
  109. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  110. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
  111. package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
  112. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
  113. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  114. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
  115. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
  116. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
  117. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  118. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
  119. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
  120. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
  121. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
  122. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
  123. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
  124. package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
  125. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
  126. package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
  127. package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
  128. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
  129. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
  130. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
  131. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
  132. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
  133. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
  134. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
  135. package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
  136. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
  137. package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
  138. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
  139. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
  140. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
  141. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
  142. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  144. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +83 -82
  145. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
  146. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
  147. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
  148. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
  149. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  150. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +26 -26
  151. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
  152. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
  153. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  154. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +130 -122
  155. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
  156. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  157. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
  158. package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
  159. package/dist/v2/components/data-table/DataTable.vue.js +17 -17
  160. package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
  161. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
  162. package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
  163. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
  164. package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
  165. package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
  166. package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
  167. package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
  168. package/dist/v2/components/resize/Resize.vue2.js +11 -11
  169. package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
  170. package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
  171. package/dist/v2/components/sidebar/Sidebar.vue.js +32 -32
  172. package/dist/v2/components/sidebar/SidebarMenu.vue.js +20 -20
  173. package/dist/v2/features/app/App.vue.js +25 -25
  174. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  175. package/dist/v2/features/app/app-events.js +55 -61
  176. package/dist/v2/features/app/components/AppSidebar.vue2.js +97 -97
  177. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
  178. package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
  179. package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
  180. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
  181. package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
  182. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -5
  183. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  184. package/dist/v2/features/app/helpers/create-api-client-app.js +1 -2
  185. package/dist/v2/features/app/helpers/routes.d.ts +5 -1
  186. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  187. package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
  188. package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
  189. package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
  190. package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
  191. package/dist/v2/features/collection/components/Environment.vue.js +10 -10
  192. package/dist/v2/features/collection/components/Form.vue.js +21 -21
  193. package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
  194. package/dist/v2/features/collection/components/Servers.vue.js +37 -37
  195. package/dist/v2/features/collection/components/Settings.vue.js +22 -22
  196. package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
  197. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
  198. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
  199. package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
  200. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
  201. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
  202. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
  203. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
  204. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
  205. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
  206. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  207. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
  208. package/dist/v2/features/command-palette/types.d.ts +11 -10
  209. package/dist/v2/features/command-palette/types.d.ts.map +1 -1
  210. package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
  211. package/dist/v2/features/environments/components/Environment.vue.js +16 -16
  212. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
  213. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
  214. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
  215. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
  216. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
  217. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
  218. package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
  219. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  220. package/dist/v2/features/modal/Modal.vue.js +1 -1
  221. package/dist/v2/features/modal/Modal.vue2.js +57 -56
  222. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +5 -4
  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.d.ts +5 -1
  227. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  228. package/dist/v2/features/operation/Operation.vue.js +41 -39
  229. package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
  230. package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
  231. package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
  232. package/dist/v2/features/search/types.d.ts +5 -4
  233. package/dist/v2/features/search/types.d.ts.map +1 -1
  234. package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
  235. package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
  236. package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
  237. package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
  238. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  239. package/dist/v2/helpers/handle-hotkeys.js +0 -2
  240. package/dist/v2/helpers/plugins.d.ts +2 -2
  241. package/dist/v2/helpers/plugins.d.ts.map +1 -1
  242. package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
  243. package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
  244. package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
  245. package/dist/views/Cookies/CookieModal.vue2.js +26 -26
  246. package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
  247. package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
  248. package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
  249. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
  250. package/dist/views/Request/Request.vue2.js +55 -55
  251. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
  252. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
  253. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
  254. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  255. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
  256. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  257. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
  258. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
  259. package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
  260. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
  261. package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
  262. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
  263. package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
  264. package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
  265. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
  266. package/dist/views/Request/RequestSection/index.d.ts +1 -1
  267. package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
  268. package/dist/views/Request/RequestSection/index.js +4 -4
  269. package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
  270. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
  271. package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
  272. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
  273. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
  274. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
  275. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
  276. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
  277. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
  278. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
  279. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
  280. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
  281. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
  282. package/package.json +24 -24
  283. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
  284. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
  285. package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
  286. package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
  287. package/dist/components/ScreenReader.vue.d.ts +0 -20
  288. package/dist/components/ScreenReader.vue.d.ts.map +0 -1
  289. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
  290. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
  291. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
  292. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
  293. package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
  294. package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent as T, computed as p, ref as w, watch as b, nextTick as E, createElementBlock as m, openBlock as o, createBlock as f, withDirectives as K, unref as a, withCtx as n, createVNode as s, createElementVNode as i, toDisplayString as V, withKeys as M, vModelText as R, createCommentVNode as C, Fragment as _, renderList as U, normalizeClass as $ } from "vue";
2
- import { ScalarComboboxMultiselect as F, ScalarButton as B, ScalarIcon as v, ScalarDropdown as L, ScalarDropdownItem as D, ScalarDropdownDivider as W } from "@scalar/components";
1
+ import { defineComponent as T, computed as p, ref as V, watch as C, nextTick as E, createElementBlock as m, openBlock as o, createBlock as f, withDirectives as K, unref as a, withCtx as n, createVNode as s, createElementVNode as i, toDisplayString as x, withKeys as M, vModelText as R, createCommentVNode as _, Fragment as B, renderList as U, normalizeClass as $ } from "vue";
2
+ import { ScalarComboboxMultiselect as F, ScalarButton as D, ScalarIcon as v, ScalarDropdown as L, ScalarDropdownItem as j, ScalarDropdownDivider as W } from "@scalar/components";
3
3
  const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline" }, G = { class: "text-c-1 whitespace-nowrap" }, H = { class: "text-c-1 overflow-hidden text-ellipsis" }, J = { class: "overflow-hidden text-ellipsis" }, P = { class: "flex h-4 w-4 items-center justify-center" }, Z = /* @__PURE__ */ T({
4
4
  __name: "DataTableInputSelect",
5
5
  props: {
@@ -10,50 +10,50 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
10
10
  type: {}
11
11
  },
12
12
  emits: ["update:modelValue"],
13
- setup(j, { emit: z }) {
14
- const u = j, c = z, h = p(() => u.value ?? []), d = w(!1), r = w(""), x = w(null);
15
- b(r, (e) => {
16
- c("update:modelValue", e);
13
+ setup(h, { emit: z }) {
14
+ const u = h, d = z, y = p(() => u.value ?? []), c = V(!1), r = V(""), g = V(null);
15
+ C(r, (e) => {
16
+ d("update:modelValue", e);
17
17
  });
18
- const g = (e) => {
19
- c("update:modelValue", e), d.value = !1;
18
+ const S = (e) => {
19
+ d("update:modelValue", e), c.value = !1;
20
20
  }, A = () => {
21
- r.value.trim() && g(r.value);
21
+ r.value.trim() && S(r.value);
22
22
  }, N = () => {
23
- r.value.trim() || c("update:modelValue", ""), d.value = !1;
23
+ r.value.trim() || d("update:modelValue", ""), c.value = !1;
24
24
  }, O = (e) => u.modelValue.toString() === e;
25
- b(d, (e) => {
25
+ C(c, (e) => {
26
26
  e && E(() => {
27
- x.value?.focus();
27
+ g.value?.focus();
28
28
  });
29
29
  });
30
- const S = p(() => u.modelValue !== void 0 ? u.modelValue : u.default), k = p(
31
- () => h.value.map((e) => {
30
+ const k = p(() => u.modelValue !== void 0 ? u.modelValue : u.default), b = p(
31
+ () => y.value.map((e) => {
32
32
  const t = e.toString();
33
33
  return { id: t, label: t, value: t };
34
34
  })
35
- ), y = p(() => {
35
+ ), w = p(() => {
36
36
  const e = new Set(u.modelValue.toString().split(","));
37
- return k.value.filter((t) => e.has(t.id));
37
+ return b.value.filter((t) => e.has(t.id));
38
38
  }), I = (e) => {
39
39
  const t = e.map((l) => l.value);
40
- c("update:modelValue", t.join(","));
40
+ d("update:modelValue", t.join(","));
41
41
  };
42
42
  return (e, t) => (o(), m("div", q, [
43
- e.type === "array" ? (o(), f(a(F), {
43
+ h.type === "array" ? (o(), f(a(F), {
44
44
  key: 0,
45
- modelValue: y.value,
46
- options: k.value,
45
+ modelValue: w.value,
46
+ options: b.value,
47
47
  "onUpdate:modelValue": I
48
48
  }, {
49
49
  default: n(() => [
50
- s(a(B), {
50
+ s(a(D), {
51
51
  class: "custom-scroll h-full justify-start gap-1.5 px-2 py-1.5 pr-6 font-normal outline-none",
52
52
  fullWidth: "",
53
53
  variant: "ghost"
54
54
  }, {
55
55
  default: n(() => [
56
- i("span", G, V(y.value.length > 0 ? y.value.map((l) => l.label).join(", ") : "Select a value"), 1),
56
+ i("span", G, x(w.value.length > 0 ? w.value.map((l) => l.label).join(", ") : "Select a value"), 1),
57
57
  s(a(v), {
58
58
  class: "min-w-4",
59
59
  icon: "ChevronDown",
@@ -64,10 +64,10 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
64
64
  })
65
65
  ]),
66
66
  _: 1
67
- }, 8, ["modelValue", "options"])) : d.value ? K((o(), m("input", {
67
+ }, 8, ["modelValue", "options"])) : c.value ? K((o(), m("input", {
68
68
  key: 1,
69
69
  ref_key: "inputRef",
70
- ref: x,
70
+ ref: g,
71
71
  "onUpdate:modelValue": t[0] || (t[0] = (l) => r.value = l),
72
72
  class: "text-c-1 w-full min-w-0 border-none px-2 py-1.5 outline-none",
73
73
  placeholder: "Value",
@@ -79,14 +79,14 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
79
79
  ]) : (o(), f(a(L), {
80
80
  key: 2,
81
81
  resize: "",
82
- value: S.value
82
+ value: k.value
83
83
  }, {
84
84
  items: n(() => [
85
- (o(!0), m(_, null, U(h.value, (l) => (o(), f(a(D), {
85
+ (o(!0), m(B, null, U(y.value, (l) => (o(), f(a(j), {
86
86
  key: l,
87
87
  class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
88
88
  value: l,
89
- onClick: (Q) => g(l)
89
+ onClick: (Q) => S(l)
90
90
  }, {
91
91
  default: n(() => [
92
92
  i("div", {
@@ -101,15 +101,15 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
101
101
  thickness: "3"
102
102
  })
103
103
  ], 2),
104
- i("span", J, V(l), 1)
104
+ i("span", J, x(l), 1)
105
105
  ]),
106
106
  _: 2
107
107
  }, 1032, ["value", "onClick"]))), 128)),
108
- e.canAddCustomValue ? (o(), m(_, { key: 0 }, [
109
- h.value.length ? (o(), f(a(W), { key: 0 })) : C("", !0),
110
- s(a(D), {
108
+ h.canAddCustomValue ? (o(), m(B, { key: 0 }, [
109
+ y.value.length ? (o(), f(a(W), { key: 0 })) : _("", !0),
110
+ s(a(j), {
111
111
  class: "flex items-center gap-1.5",
112
- onClick: t[1] || (t[1] = (l) => d.value = !0)
112
+ onClick: t[1] || (t[1] = (l) => c.value = !0)
113
113
  }, {
114
114
  default: n(() => [
115
115
  i("div", P, [
@@ -122,15 +122,15 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
122
122
  ]),
123
123
  _: 1
124
124
  })
125
- ], 64)) : C("", !0)
125
+ ], 64)) : _("", !0)
126
126
  ]),
127
127
  default: n(() => [
128
- s(a(B), {
128
+ s(a(D), {
129
129
  class: "size-full justify-start gap-1.5 overflow-auto px-2 py-1.5 font-normal whitespace-nowrap outline-none",
130
130
  variant: "ghost"
131
131
  }, {
132
132
  default: n(() => [
133
- i("span", H, V(S.value ?? "Select a value"), 1),
133
+ i("span", H, x(k.value ?? "Select a value"), 1),
134
134
  s(a(v), {
135
135
  icon: "ChevronDown",
136
136
  size: "md"
@@ -1,16 +1,16 @@
1
- import { defineComponent as t, createBlock as a, openBlock as o, withCtx as r, createElementVNode as s, renderSlot as n, createTextVNode as p, toDisplayString as l } from "vue";
2
- import c from "./DataTableCell.vue.js";
3
- const i = { class: "flex-1 px-2 py-1.5 whitespace-nowrap" }, x = /* @__PURE__ */ t({
1
+ import { defineComponent as a, createBlock as o, openBlock as r, withCtx as s, createElementVNode as n, renderSlot as l, createTextVNode as c, toDisplayString as p } from "vue";
2
+ import i from "./DataTableCell.vue.js";
3
+ const f = { class: "flex-1 px-2 py-1.5 whitespace-nowrap" }, d = /* @__PURE__ */ a({
4
4
  __name: "DataTableText",
5
5
  props: {
6
6
  text: {}
7
7
  },
8
- setup(_) {
9
- return (e, f) => (o(), a(c, { class: "relative flex" }, {
10
- default: r(() => [
11
- s("span", i, [
12
- n(e.$slots, "default", {}, () => [
13
- p(l(e.text), 1)
8
+ setup(e) {
9
+ return (t, _) => (r(), o(i, { class: "relative flex" }, {
10
+ default: s(() => [
11
+ n("span", f, [
12
+ l(t.$slots, "default", {}, () => [
13
+ c(p(e.text), 1)
14
14
  ])
15
15
  ])
16
16
  ]),
@@ -19,5 +19,5 @@ const i = { class: "flex-1 px-2 py-1.5 whitespace-nowrap" }, x = /* @__PURE__ */
19
19
  }
20
20
  });
21
21
  export {
22
- x as default
22
+ d as default
23
23
  };
@@ -1,38 +1,38 @@
1
- import { defineComponent as f, createElementBlock as u, openBlock as d, withModifiers as p, renderSlot as v, createElementVNode as b, createVNode as o, unref as a, withCtx as i, createTextVNode as l, toDisplayString as c } from "vue";
1
+ import { defineComponent as u, createElementBlock as d, openBlock as p, withModifiers as c, renderSlot as v, createElementVNode as b, createVNode as a, unref as i, withCtx as o, createTextVNode as l, toDisplayString as x } from "vue";
2
2
  import { ScalarButton as r } from "@scalar/components";
3
- const x = { class: "flex justify-between gap-10" }, g = /* @__PURE__ */ f({
3
+ const C = { class: "flex justify-between gap-10" }, g = /* @__PURE__ */ u({
4
4
  __name: "ConfirmationForm",
5
5
  props: {
6
6
  label: { default: "Save" },
7
7
  variant: { default: "solid" }
8
8
  },
9
9
  emits: ["cancel", "submit"],
10
- setup(C, { emit: s }) {
10
+ setup(t, { emit: s }) {
11
11
  const n = s;
12
- return (t, e) => (d(), u("form", {
12
+ return (m, e) => (p(), d("form", {
13
13
  class: "flex flex-col gap-4 text-base",
14
- onSubmit: e[1] || (e[1] = p((m) => n("submit"), ["prevent"]))
14
+ onSubmit: e[1] || (e[1] = c((f) => n("submit"), ["prevent"]))
15
15
  }, [
16
- v(t.$slots, "default"),
17
- b("div", x, [
18
- o(a(r), {
16
+ v(m.$slots, "default"),
17
+ b("div", C, [
18
+ a(i(r), {
19
19
  size: "sm",
20
20
  type: "button",
21
21
  variant: "outlined",
22
- onClick: e[0] || (e[0] = (m) => n("cancel"))
22
+ onClick: e[0] || (e[0] = (f) => n("cancel"))
23
23
  }, {
24
- default: i(() => [...e[2] || (e[2] = [
24
+ default: o(() => [...e[2] || (e[2] = [
25
25
  l(" Cancel ", -1)
26
26
  ])]),
27
27
  _: 1
28
28
  }),
29
- o(a(r), {
29
+ a(i(r), {
30
30
  size: "sm",
31
31
  type: "submit",
32
32
  variant: t.variant
33
33
  }, {
34
- default: i(() => [
35
- l(c(t.label), 1)
34
+ default: o(() => [
35
+ l(x(t.label), 1)
36
36
  ]),
37
37
  _: 1
38
38
  }, 8, ["variant"])
@@ -1,84 +1,84 @@
1
- import { defineComponent as x, useId as y, createBlock as f, openBlock as o, unref as s, normalizeClass as i, withCtx as n, createVNode as r, createElementVNode as l, createElementBlock as d, createCommentVNode as a, renderSlot as c, createTextVNode as C, toDisplayString as m, mergeProps as _ } from "vue";
2
- import { Disclosure as S, DisclosureButton as v, DisclosurePanel as k } from "@headlessui/vue";
3
- import { ScalarIcon as B } from "@scalar/components";
4
- import V from "./ValueEmitter.vue.js";
5
- const $ = ["aria-labelledby"], w = { class: "text-c-1 m-0 flex flex-1 items-center gap-1.5 leading-[20px]" }, D = ["id"], I = {
1
+ import { defineComponent as y, useId as C, createBlock as p, openBlock as l, unref as s, normalizeClass as n, withCtx as c, createVNode as d, createElementVNode as a, createElementBlock as r, createCommentVNode as i, renderSlot as u, createTextVNode as S, toDisplayString as b, mergeProps as v } from "vue";
2
+ import { Disclosure as k, DisclosureButton as B, DisclosurePanel as V } from "@headlessui/vue";
3
+ import { ScalarIcon as $ } from "@scalar/components";
4
+ import w from "./ValueEmitter.vue.js";
5
+ const D = ["aria-labelledby"], I = { class: "text-c-1 m-0 flex flex-1 items-center gap-1.5 leading-[20px]" }, N = ["id"], O = {
6
6
  key: 0,
7
7
  class: "sr-only"
8
- }, N = {
8
+ }, z = {
9
9
  key: 0,
10
10
  class: "bg-b-2 text-c-2 inline-flex h-5 w-5 items-center justify-center rounded-full border text-xs font-semibold"
11
- }, O = { class: "sr-only" }, z = {
11
+ }, E = { class: "sr-only" }, P = {
12
12
  key: 0,
13
13
  class: "ui-not-open:hidden flex items-center gap-2 pr-0.75"
14
- }, E = {
14
+ }, _ = {
15
15
  name: "CollapsibleSection"
16
- }, A = /* @__PURE__ */ x({
17
- ...E,
16
+ }, A = /* @__PURE__ */ y({
17
+ ..._,
18
18
  props: {
19
19
  defaultOpen: { type: Boolean, default: !0 },
20
20
  itemCount: { default: 0 },
21
21
  isStatic: { type: Boolean }
22
22
  },
23
23
  emits: ["update:modelValue"],
24
- setup(P, { emit: b }) {
25
- const h = b, u = y();
26
- return (e, p) => (o(), f(s(S), {
24
+ setup(e, { emit: x }) {
25
+ const h = x, f = C();
26
+ return (o, m) => (l(), p(s(k), {
27
27
  as: "div",
28
- class: i(["group/collapse text-c-2 focus-within:text-c-1 last:ui-open:border-b-0 border-b", e.isStatic && "last-of-type:first-of-type:border-b-0"]),
28
+ class: n(["group/collapse text-c-2 focus-within:text-c-1 last:ui-open:border-b-0 border-b", e.isStatic && "last-of-type:first-of-type:border-b-0"]),
29
29
  defaultOpen: e.defaultOpen,
30
30
  static: e.isStatic
31
31
  }, {
32
- default: n(({ open: t }) => [
33
- r(V, {
32
+ default: c(({ open: t }) => [
33
+ d(w, {
34
34
  value: t,
35
- onChange: p[0] || (p[0] = (g) => h("update:modelValue", g))
35
+ onChange: m[0] || (m[0] = (g) => h("update:modelValue", g))
36
36
  }, null, 8, ["value"]),
37
- l("section", {
38
- "aria-labelledby": s(u),
37
+ a("section", {
38
+ "aria-labelledby": s(f),
39
39
  class: "contents"
40
40
  }, [
41
- l("div", {
42
- class: i(["bg-b-2 flex items-center", e.isStatic && "rounded-t-lg border border-b-0"])
41
+ a("div", {
42
+ class: n(["bg-b-2 flex items-center", e.isStatic && "rounded-t-lg border border-b-0"])
43
43
  }, [
44
- r(s(v), {
45
- class: i(["hover:text-c-1 group box-content flex max-h-8 flex-1 items-center gap-2.5 overflow-hidden px-1 py-1.5 text-base font-medium outline-none md:px-1.5 xl:pr-0.5 xl:pl-2", e.isStatic && "!pl-3"]),
44
+ d(s(B), {
45
+ class: n(["hover:text-c-1 group box-content flex max-h-8 flex-1 items-center gap-2.5 overflow-hidden px-1 py-1.5 text-base font-medium outline-none md:px-1.5 xl:pr-0.5 xl:pl-2", e.isStatic && "!pl-3"]),
46
46
  disabled: e.isStatic
47
47
  }, {
48
- default: n(() => [
49
- e.isStatic ? a("", !0) : (o(), f(s(B), {
48
+ default: c(() => [
49
+ e.isStatic ? i("", !0) : (l(), p(s($), {
50
50
  key: 0,
51
51
  class: "text-c-3 group-hover:text-c-1 rounded-px ui-open:rotate-90 ui-not-open:rotate-0 outline-offset-2 group-focus-visible:outline",
52
52
  icon: "ChevronRight",
53
53
  size: "md"
54
54
  })),
55
- l("h2", w, [
56
- l("span", {
57
- id: s(u),
55
+ a("h2", I, [
56
+ a("span", {
57
+ id: s(f),
58
58
  class: "contents"
59
59
  }, [
60
- c(e.$slots, "title", { open: t }),
61
- t ? a("", !0) : (o(), d("span", I, " (Collapsed) "))
62
- ], 8, D),
63
- !t && e.itemCount ? (o(), d("span", N, [
64
- C(m(e.itemCount) + " ", 1),
65
- l("span", O, "Item" + m(e.itemCount === 1 ? "" : "s"), 1)
66
- ])) : a("", !0)
60
+ u(o.$slots, "title", { open: t }),
61
+ t ? i("", !0) : (l(), r("span", O, " (Collapsed) "))
62
+ ], 8, N),
63
+ !t && e.itemCount ? (l(), r("span", z, [
64
+ S(b(e.itemCount) + " ", 1),
65
+ a("span", E, "Item" + b(e.itemCount === 1 ? "" : "s"), 1)
66
+ ])) : i("", !0)
67
67
  ])
68
68
  ]),
69
69
  _: 2
70
70
  }, 1032, ["class", "disabled"]),
71
- e.$slots.actions ? (o(), d("div", z, [
72
- c(e.$slots, "actions", { open: t })
73
- ])) : a("", !0)
71
+ o.$slots.actions ? (l(), r("div", P, [
72
+ u(o.$slots, "actions", { open: t })
73
+ ])) : i("", !0)
74
74
  ], 2),
75
- r(s(k), _(e.$attrs, { class: "diclosure-panel h-full max-h-fit rounded-b" }), {
76
- default: n(() => [
77
- c(e.$slots, "default", { open: t })
75
+ d(s(V), v(o.$attrs, { class: "diclosure-panel h-full max-h-fit rounded-b" }), {
76
+ default: c(() => [
77
+ u(o.$slots, "default", { open: t })
78
78
  ]),
79
79
  _: 2
80
80
  }, 1040)
81
- ], 8, $)
81
+ ], 8, D)
82
82
  ]),
83
83
  _: 3
84
84
  }, 8, ["class", "defaultOpen", "static"]));
@@ -1,31 +1,31 @@
1
- import { defineComponent as s, computed as i, createBlock as c, openBlock as a, unref as p, withCtx as d, createElementBlock as u, createCommentVNode as f, toDisplayString as g } from "vue";
2
- import { truncate as _ } from "@scalar/helpers/string/truncate";
3
- import k from "../forms/ConfirmationForm.vue.js";
4
- const v = {
1
+ import { defineComponent as m, computed as s, createBlock as i, openBlock as a, unref as c, withCtx as d, createElementBlock as u, createCommentVNode as f, toDisplayString as g } from "vue";
2
+ import { truncate as p } from "@scalar/helpers/string/truncate";
3
+ import x from "../forms/ConfirmationForm.vue.js";
4
+ const k = {
5
5
  key: 0,
6
6
  class: "text-c-2 text-sm leading-normal text-pretty"
7
- }, M = /* @__PURE__ */ s({
7
+ }, $ = /* @__PURE__ */ m({
8
8
  __name: "DeleteModal",
9
9
  props: {
10
10
  name: {},
11
11
  warningMessage: {}
12
12
  },
13
13
  emits: ["close", "delete"],
14
- setup(o, { emit: r }) {
15
- const t = r, l = i(() => _(o.name));
16
- return (n, e) => (a(), c(p(k), {
17
- label: `Delete ${l.value}`,
14
+ setup(t, { emit: o }) {
15
+ const n = o, r = s(() => p(t.name));
16
+ return (v, e) => (a(), i(c(x), {
17
+ label: `Delete ${r.value}`,
18
18
  variant: "danger",
19
- onCancel: e[0] || (e[0] = (m) => t("close")),
20
- onSubmit: e[1] || (e[1] = (m) => t("delete"))
19
+ onCancel: e[0] || (e[0] = (l) => n("close")),
20
+ onSubmit: e[1] || (e[1] = (l) => n("delete"))
21
21
  }, {
22
22
  default: d(() => [
23
- n.warningMessage ? (a(), u("p", v, g(n.warningMessage), 1)) : f("", !0)
23
+ t.warningMessage ? (a(), u("p", k, g(t.warningMessage), 1)) : f("", !0)
24
24
  ]),
25
25
  _: 1
26
26
  }, 8, ["label"]));
27
27
  }
28
28
  });
29
29
  export {
30
- M as default
30
+ $ as default
31
31
  };
@@ -1,29 +1,29 @@
1
- import { defineComponent as f, ref as v, createElementBlock as h, openBlock as g, normalizeStyle as p, renderSlot as w, createElementVNode as E } from "vue";
1
+ import { defineComponent as f, ref as v, createElementBlock as h, openBlock as g, normalizeStyle as w, renderSlot as p, createElementVNode as E } from "vue";
2
2
  const l = "scalar-dragging", D = /* @__PURE__ */ f({
3
3
  __name: "Resize",
4
4
  props: {
5
5
  width: {}
6
6
  },
7
7
  emits: ["update:width"],
8
- setup(n, { emit: m }) {
9
- const s = m, o = v(!1), r = (t) => {
10
- t.preventDefault();
11
- const d = t.clientX, c = n.width, a = (u) => {
12
- o.value = !0, document.body.classList.add(l);
13
- let e = c + u.clientX - d;
8
+ setup(t, { emit: m }) {
9
+ const s = m, d = v(!1), r = (n) => {
10
+ n.preventDefault();
11
+ const o = n.clientX, c = t.width, a = (u) => {
12
+ d.value = !0, document.body.classList.add(l);
13
+ let e = c + u.clientX - o;
14
14
  e > 420 && (e = 420 + (e - 420) * 0.2), e < 240 && (e = 240), s("update:width", e);
15
15
  }, i = () => {
16
- o.value = !1, document.body.classList.remove(l), document.documentElement.removeEventListener("mousemove", a, !1), document.documentElement.removeEventListener("mouseup", i, !1), n.width > 420 ? s("update:width", 360) : n.width < 240 && s("update:width", 240);
16
+ d.value = !1, document.body.classList.remove(l), document.documentElement.removeEventListener("mousemove", a, !1), document.documentElement.removeEventListener("mouseup", i, !1), t.width > 420 ? s("update:width", 360) : t.width < 240 && s("update:width", 240);
17
17
  };
18
18
  document.documentElement.addEventListener("mousemove", a, !1), document.documentElement.addEventListener("mouseup", i, !1);
19
19
  };
20
- return (t, d) => (g(), h("div", {
20
+ return (n, o) => (g(), h("div", {
21
21
  class: "relative",
22
- style: p({
22
+ style: w({
23
23
  width: `${t.width}px`
24
24
  })
25
25
  }, [
26
- w(t.$slots, "default", {}, void 0, !0),
26
+ p(n.$slots, "default", {}, void 0, !0),
27
27
  E("div", {
28
28
  class: "resizer",
29
29
  onMousedown: r
@@ -1,4 +1,4 @@
1
- import { defineComponent as y, computed as v, createBlock as m, openBlock as t, unref as s, withCtx as n, createVNode as d, createElementBlock as i, Fragment as p, createElementVNode as a, createTextVNode as h, toDisplayString as U, createCommentVNode as w, renderList as C } from "vue";
1
+ import { defineComponent as y, computed as p, createBlock as m, openBlock as t, unref as a, withCtx as o, createVNode as n, createElementBlock as d, Fragment as c, createElementVNode as s, createTextVNode as h, toDisplayString as U, createCommentVNode as w, renderList as C } from "vue";
2
2
  import { ScalarPopover as B, ScalarButton as z, ScalarFloatingBackdrop as N } from "@scalar/components";
3
3
  import { ScalarIconPlus as V, ScalarIconPencilSimple as D } from "@scalar/icons";
4
4
  import I from "./ServerDropdownItem.vue.js";
@@ -11,14 +11,14 @@ const P = ["onClick"], $ = { class: "flex items-center justify-center" }, W = /*
11
11
  layout: {}
12
12
  },
13
13
  emits: ["update:selectedServer", "update:variable", "update:servers"],
14
- setup(o, { emit: f }) {
15
- const u = f, b = v(
16
- () => o.servers.map((e) => ({
17
- id: e.url,
18
- label: e.url ?? "Unknown server"
14
+ setup(e, { emit: f }) {
15
+ const i = f, b = p(
16
+ () => e.servers.map((u) => ({
17
+ id: u.url,
18
+ label: u.url ?? "Unknown server"
19
19
  }))
20
- ), S = v(() => o.server?.url?.endsWith("/") ? o.server.url.slice(0, -1) : o.server?.url || "");
21
- return (e, r) => (t(), m(s(B), {
20
+ ), x = p(() => e.server?.url?.endsWith("/") ? e.server.url.slice(0, -1) : e.server?.url || "");
21
+ return (u, r) => (t(), m(a(B), {
22
22
  class: "max-h-[inherit] p-0 text-base",
23
23
  focus: "",
24
24
  offset: 0,
@@ -27,47 +27,47 @@ const P = ["onClick"], $ = { class: "flex items-center justify-center" }, W = /*
27
27
  target: e.target,
28
28
  teleport: `#${e.target}`
29
29
  }, {
30
- popover: n(({ close: g }) => [
31
- a("div", {
30
+ popover: o(({ close: S }) => [
31
+ s("div", {
32
32
  class: "custom-scroll flex max-h-[inherit] flex-col gap-1 border-t p-1",
33
- onClick: g
33
+ onClick: S
34
34
  }, [
35
- (t(!0), i(p, null, C(b.value, (l, k) => (t(), m(I, {
35
+ (t(!0), d(c, null, C(b.value, (l, g) => (t(), m(I, {
36
36
  key: l.id,
37
37
  server: e.server,
38
38
  serverOption: l,
39
39
  type: "request",
40
- "onUpdate:selectedServer": (c) => u("update:selectedServer", { url: l.id }),
41
- "onUpdate:variable": (c, x) => u("update:variable", { index: k, key: c, value: x })
40
+ "onUpdate:selectedServer": (v) => i("update:selectedServer", { url: l.id }),
41
+ "onUpdate:variable": (v, k) => i("update:variable", { index: g, key: v, value: k })
42
42
  }, null, 8, ["server", "serverOption", "onUpdate:selectedServer", "onUpdate:variable"]))), 128)),
43
- e.layout !== "modal" ? (t(), i("button", {
43
+ e.layout !== "modal" ? (t(), d("button", {
44
44
  key: 0,
45
45
  class: "text-xxs hover:bg-b-2 flex cursor-pointer items-center gap-1.5 rounded p-1.75",
46
46
  type: "button",
47
- onClick: r[0] || (r[0] = (l) => u("update:servers"))
47
+ onClick: r[0] || (r[0] = (l) => i("update:servers"))
48
48
  }, [
49
- a("div", $, [
50
- d(s(D), { class: "size-4" })
49
+ s("div", $, [
50
+ n(a(D), { class: "size-4" })
51
51
  ]),
52
- r[3] || (r[3] = a("span", null, "Update Servers", -1))
52
+ r[3] || (r[3] = s("span", null, "Update Servers", -1))
53
53
  ])) : w("", !0)
54
54
  ], 8, P)
55
55
  ]),
56
- backdrop: n(() => [
57
- d(s(N), { class: "-top-(--scalar-address-bar-height) rounded-lg" })
56
+ backdrop: o(() => [
57
+ n(a(N), { class: "-top-(--scalar-address-bar-height) rounded-lg" })
58
58
  ]),
59
- default: n(() => [
60
- d(s(z), {
59
+ default: o(() => [
60
+ n(a(z), {
61
61
  class: "z-context-plus hover:bg-b-2 font-code text-c-2 ml-0.75 h-auto gap-0.75 rounded border px-1.5 text-base whitespace-nowrap",
62
62
  variant: "ghost"
63
63
  }, {
64
- default: n(() => [
65
- e.server ? (t(), i(p, { key: 0 }, [
66
- r[1] || (r[1] = a("span", { class: "sr-only" }, "Server:", -1)),
67
- h(" " + U(S.value), 1)
68
- ], 64)) : (t(), i(p, { key: 1 }, [
69
- r[2] || (r[2] = a("span", { class: "sr-only" }, "Add Server", -1)),
70
- d(s(V), { class: "size-3" })
64
+ default: o(() => [
65
+ e.server ? (t(), d(c, { key: 0 }, [
66
+ r[1] || (r[1] = s("span", { class: "sr-only" }, "Server:", -1)),
67
+ h(" " + U(x.value), 1)
68
+ ], 64)) : (t(), d(c, { key: 1 }, [
69
+ r[2] || (r[2] = s("span", { class: "sr-only" }, "Add Server", -1)),
70
+ n(a(V), { class: "size-3" })
71
71
  ], 64))
72
72
  ]),
73
73
  _: 1
@@ -1,49 +1,49 @@
1
- import { defineComponent as h, useId as k, computed as c, createElementBlock as a, openBlock as n, normalizeClass as g, createElementVNode as l, createCommentVNode as m, mergeProps as S, unref as s, createVNode as d, toDisplayString as y, withModifiers as w } from "vue";
2
- import { ScalarListboxCheckbox as C, ScalarMarkdown as O } from "@scalar/components";
3
- import V from "../../../components/Server/ServerVariablesForm.vue.js";
4
- const _ = ["aria-expanded"], E = { class: "overflow-hidden text-ellipsis whitespace-nowrap" }, I = ["id"], N = { key: 0 }, B = { class: "description text-c-3 px-3 py-1.5" }, j = /* @__PURE__ */ h({
1
+ import { defineComponent as x, useId as h, computed as u, createElementBlock as o, openBlock as a, normalizeClass as k, createElementVNode as n, createCommentVNode as p, mergeProps as g, unref as s, createVNode as l, toDisplayString as S, withModifiers as y } from "vue";
2
+ import { ScalarListboxCheckbox as w, ScalarMarkdown as C } from "@scalar/components";
3
+ import O from "../../../components/Server/ServerVariablesForm.vue.js";
4
+ const V = ["aria-expanded"], E = { class: "overflow-hidden text-ellipsis whitespace-nowrap" }, I = ["id"], N = { key: 0 }, B = { class: "description text-c-3 px-3 py-1.5" }, z = /* @__PURE__ */ x({
5
5
  __name: "ServerDropdownItem",
6
6
  props: {
7
7
  server: {},
8
8
  serverOption: {}
9
9
  },
10
10
  emits: ["update:variable", "update:selectedServer"],
11
- setup(o, { emit: b }) {
12
- const v = b, p = k(), f = () => Object.keys(o.server?.variables ?? {}).length > 0, r = c(() => o.serverOption.id === o.server?.url), i = c(() => r.value && f());
13
- return (t, e) => (n(), a("div", {
14
- class: g(["group/item flex min-h-fit flex-col rounded border", { "border-transparent": !r.value }])
11
+ setup(e, { emit: m }) {
12
+ const d = m, v = h(), b = () => Object.keys(e.server?.variables ?? {}).length > 0, t = u(() => e.serverOption.id === e.server?.url), i = u(() => t.value && b());
13
+ return (D, r) => (a(), o("div", {
14
+ class: k(["group/item flex min-h-fit flex-col rounded border", { "border-transparent": !t.value }])
15
15
  }, [
16
- l("button", S(i.value ? { "aria-controls": s(p) } : {}, {
16
+ n("button", g(i.value ? { "aria-controls": s(v) } : {}, {
17
17
  "aria-expanded": i.value,
18
- class: ["flex min-h-8 cursor-pointer items-center gap-1.5 rounded px-1.5", r.value ? "text-c-1 bg-b-2" : "hover:bg-b-2"],
18
+ class: ["flex min-h-8 cursor-pointer items-center gap-1.5 rounded px-1.5", t.value ? "text-c-1 bg-b-2" : "hover:bg-b-2"],
19
19
  type: "button",
20
- onClick: e[0] || (e[0] = (u) => v("update:selectedServer"))
20
+ onClick: r[0] || (r[0] = (c) => d("update:selectedServer"))
21
21
  }), [
22
- d(s(C), { selected: r.value }, null, 8, ["selected"]),
23
- l("span", E, y(t.serverOption.label), 1)
24
- ], 16, _),
25
- i.value ? (n(), a("div", {
22
+ l(s(w), { selected: t.value }, null, 8, ["selected"]),
23
+ n("span", E, S(e.serverOption.label), 1)
24
+ ], 16, V),
25
+ i.value ? (a(), o("div", {
26
26
  key: 0,
27
- id: s(p),
27
+ id: s(v),
28
28
  class: "bg-b-2 divide divide-y rounded-b border-t *:pl-4",
29
- onClick: e[2] || (e[2] = w(() => {
29
+ onClick: r[2] || (r[2] = y(() => {
30
30
  }, ["stop"]))
31
31
  }, [
32
- d(V, {
33
- variables: t.server?.variables,
34
- "onUpdate:variable": e[1] || (e[1] = (u, x) => v("update:variable", u, x))
32
+ l(O, {
33
+ variables: e.server?.variables,
34
+ "onUpdate:variable": r[1] || (r[1] = (c, f) => d("update:variable", c, f))
35
35
  }, null, 8, ["variables"]),
36
- t.server?.description ? (n(), a("div", N, [
37
- l("div", B, [
38
- d(s(O), {
39
- value: t.server.description
36
+ e.server?.description ? (a(), o("div", N, [
37
+ n("div", B, [
38
+ l(s(C), {
39
+ value: e.server.description
40
40
  }, null, 8, ["value"])
41
41
  ])
42
- ])) : m("", !0)
43
- ], 8, I)) : m("", !0)
42
+ ])) : p("", !0)
43
+ ], 8, I)) : p("", !0)
44
44
  ], 2));
45
45
  }
46
46
  });
47
47
  export {
48
- j as default
48
+ z as default
49
49
  };