@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,23 +1,23 @@
1
- import { defineComponent as t, createElementBlock as o, openBlock as n, normalizeClass as r, renderSlot as s } from "vue";
2
- const l = ["aria-controls", "aria-selected", "tabindex"], p = /* @__PURE__ */ t({
1
+ import { defineComponent as o, createElementBlock as n, openBlock as r, normalizeClass as s, renderSlot as c } from "vue";
2
+ const l = ["aria-controls", "aria-selected", "tabindex"], d = /* @__PURE__ */ o({
3
3
  __name: "SectionFilterButton",
4
4
  props: {
5
5
  selected: { type: Boolean },
6
6
  controls: {}
7
7
  },
8
- setup(a) {
9
- return (e, c) => (n(), o("button", {
8
+ setup(e) {
9
+ return (t, a) => (r(), n("button", {
10
10
  "aria-controls": e.controls ?? "",
11
11
  "aria-selected": !!e.selected,
12
- class: r(["hover:bg-b-2 flex w-fit cursor-pointer items-center rounded p-1 px-2 text-center font-medium whitespace-nowrap has-[:focus-visible]:outline", { "text-c-1 pointer-events-none": e.selected }]),
12
+ class: s(["hover:bg-b-2 flex w-fit cursor-pointer items-center rounded p-1 px-2 text-center font-medium whitespace-nowrap has-[:focus-visible]:outline", { "text-c-1 pointer-events-none": e.selected }]),
13
13
  role: "tab",
14
14
  tabindex: e.selected ? 0 : -1,
15
15
  type: "button"
16
16
  }, [
17
- s(e.$slots, "default")
17
+ c(t.$slots, "default")
18
18
  ], 10, l));
19
19
  }
20
20
  });
21
21
  export {
22
- p as default
22
+ d as default
23
23
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as V, computed as u, watch as z, useTemplateRef as E, createBlock as p, openBlock as o, unref as n, withCtx as v, createVNode as c, createElementBlock as a, Fragment as d, createElementVNode as s, createTextVNode as L, toDisplayString as T, createCommentVNode as g, renderList as h } from "vue";
2
- import { ScalarPopover as W, ScalarButton as q, ScalarIcon as k, ScalarFloatingBackdrop as F, ScalarDropdownDivider as I } from "@scalar/components";
1
+ import { defineComponent as V, computed as u, watch as z, useTemplateRef as E, createBlock as m, openBlock as o, unref as n, withCtx as v, createVNode as c, createElementBlock as a, Fragment as d, createElementVNode as s, createTextVNode as L, toDisplayString as T, createCommentVNode as S, renderList as g } from "vue";
2
+ import { ScalarPopover as W, ScalarButton as q, ScalarIcon as h, ScalarFloatingBackdrop as F, ScalarDropdownDivider as I } from "@scalar/components";
3
3
  import { emitCustomEvent as M } from "@scalar/workspace-store/events";
4
4
  import { useLayout as O } from "../../hooks/useLayout.js";
5
5
  import { useWorkspace as P } from "../../store/store.js";
6
- import w from "./ServerDropdownItem.vue.js";
6
+ import k from "./ServerDropdownItem.vue.js";
7
7
  const $ = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }, X = /* @__PURE__ */ V({
8
8
  __name: "ServerDropdown",
9
9
  props: {
@@ -12,42 +12,42 @@ const $ = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
12
12
  server: {},
13
13
  target: {}
14
14
  },
15
- setup(r) {
16
- const { layout: x } = O(), { servers: m, collectionMutators: y, events: U, serverMutators: C } = P(), f = u(
17
- () => r.operation?.servers?.map((e) => ({
18
- id: e,
19
- label: m[e]?.url ?? "Unknown server"
15
+ setup(e) {
16
+ const { layout: w } = O(), { servers: f, collectionMutators: y, events: U, serverMutators: C } = P(), p = u(
17
+ () => e.operation?.servers?.map((r) => ({
18
+ id: r,
19
+ label: f[r]?.url ?? "Unknown server"
20
20
  }))
21
- ), b = u(
21
+ ), x = u(
22
22
  () => (
23
23
  // Filters out servers already present in the request
24
- r.collection?.servers?.filter((e) => !r.operation?.servers?.includes(e)).map((e) => ({
25
- id: e,
26
- label: m[e]?.url ?? "Unknown server"
24
+ e.collection?.servers?.filter((r) => !e.operation?.servers?.includes(r)).map((r) => ({
25
+ id: r,
26
+ label: f[r]?.url ?? "Unknown server"
27
27
  }))
28
28
  )
29
29
  ), A = u(
30
- () => f.value?.length && b.value?.length
30
+ () => p.value?.length && x.value?.length
31
31
  );
32
- z([() => r.collection, () => r.operation], ([e, t]) => {
33
- if (!e || e.selectedServerUid || t?.selectedServerUid)
32
+ z([() => e.collection, () => e.operation], ([r, t]) => {
33
+ if (!r || r.selectedServerUid || t?.selectedServerUid)
34
34
  return;
35
- const l = r.collection.servers?.[0];
36
- l && y.edit(r.collection.uid, "selectedServerUid", l);
35
+ const l = e.collection.servers?.[0];
36
+ l && y.edit(e.collection.uid, "selectedServerUid", l);
37
37
  });
38
38
  const D = () => U.commandPalette.emit({
39
39
  commandName: "Add Server"
40
- }), B = u(() => r.server?.url?.endsWith("/") ? r.server.url.slice(0, -1) : r.server?.url || ""), S = (e, t) => {
41
- if (!r.server)
40
+ }), B = u(() => e.server?.url?.endsWith("/") ? e.server.url.slice(0, -1) : e.server?.url || ""), b = (r, t) => {
41
+ if (!e.server)
42
42
  return;
43
- const l = r.server.variables || {};
44
- l[e] = { ...l[e], default: t }, C.edit(r.server.uid, "variables", l), M(
43
+ const l = e.server.variables || {};
44
+ l[r] = { ...l[r], default: t }, C.edit(e.server.uid, "variables", l), M(
45
45
  N.value?.$el,
46
46
  "scalar-update-selected-server-variables",
47
- { key: e, value: t }
47
+ { key: r, value: t }
48
48
  );
49
49
  }, N = E("wrapper-ref");
50
- return (e, t) => (o(), p(n(W), {
50
+ return (r, t) => (o(), m(n(W), {
51
51
  ref: "wrapper-ref",
52
52
  class: "max-h-[inherit] p-0 text-base",
53
53
  focus: "",
@@ -62,42 +62,42 @@ const $ = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
62
62
  class: "custom-scroll flex max-h-[inherit] flex-col gap-1 border-t p-1",
63
63
  onClick: l
64
64
  }, [
65
- (o(!0), a(d, null, h(f.value, (i) => (o(), p(w, {
65
+ (o(!0), a(d, null, g(p.value, (i) => (o(), m(k, {
66
66
  key: i.id,
67
67
  collection: e.collection,
68
68
  operation: e.operation,
69
69
  server: e.server,
70
70
  serverOption: i,
71
71
  type: "request",
72
- "onUpdate:variable": S
72
+ "onUpdate:variable": b
73
73
  }, null, 8, ["collection", "operation", "server", "serverOption"]))), 128)),
74
74
  A.value ? (o(), a(d, { key: 0 }, [
75
75
  c(n(I)),
76
76
  t[2] || (t[2] = s("div", { class: "text-xxs text-c-2 px-2.5 py-1" }, "Collection", -1))
77
- ], 64)) : g("", !0),
78
- (o(!0), a(d, null, h(b.value, (i) => (o(), p(w, {
77
+ ], 64)) : S("", !0),
78
+ (o(!0), a(d, null, g(x.value, (i) => (o(), m(k, {
79
79
  key: i.id,
80
80
  collection: e.collection,
81
81
  operation: e.operation,
82
82
  server: e.server,
83
83
  serverOption: i,
84
84
  type: "collection",
85
- "onUpdate:variable": S
85
+ "onUpdate:variable": b
86
86
  }, null, 8, ["collection", "operation", "server", "serverOption"]))), 128)),
87
- n(x) !== "modal" ? (o(), a("button", {
87
+ n(w) !== "modal" ? (o(), a("button", {
88
88
  key: 1,
89
89
  class: "text-xxs hover:bg-b-2 flex cursor-pointer items-center gap-1.5 rounded p-1.75",
90
90
  type: "button",
91
91
  onClick: D
92
92
  }, [
93
93
  s("div", j, [
94
- c(n(k), {
94
+ c(n(h), {
95
95
  icon: "Add",
96
96
  size: "sm"
97
97
  })
98
98
  ]),
99
99
  t[3] || (t[3] = s("span", null, "Add Server", -1))
100
- ])) : g("", !0)
100
+ ])) : S("", !0)
101
101
  ], 8, $)
102
102
  ]),
103
103
  backdrop: v(() => [
@@ -114,7 +114,7 @@ const $ = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
114
114
  L(" " + T(B.value), 1)
115
115
  ], 64)) : (o(), a(d, { key: 1 }, [
116
116
  t[1] || (t[1] = s("span", { class: "sr-only" }, "Add Server", -1)),
117
- c(n(k), {
117
+ c(n(h), {
118
118
  icon: "Add",
119
119
  size: "xs"
120
120
  })
@@ -1,9 +1,9 @@
1
- import { defineComponent as O, useId as U, computed as b, useTemplateRef as C, createElementBlock as a, openBlock as n, normalizeClass as V, createElementVNode as d, createCommentVNode as S, mergeProps as q, unref as s, createVNode as p, toDisplayString as E, withModifiers as M } from "vue";
1
+ import { defineComponent as U, useId as C, computed as S, useTemplateRef as V, createElementBlock as n, openBlock as d, normalizeClass as q, createElementVNode as c, createCommentVNode as x, mergeProps as E, unref as s, createVNode as p, toDisplayString as M, withModifiers as _ } from "vue";
2
2
  import { ScalarListboxCheckbox as I, ScalarMarkdown as N } from "@scalar/components";
3
3
  import { emitCustomEvent as y } from "@scalar/workspace-store/events";
4
4
  import B from "./ServerVariablesForm.vue.js";
5
5
  import { useWorkspace as D } from "../../store/store.js";
6
- const P = ["aria-expanded"], j = { class: "overflow-hidden text-ellipsis whitespace-nowrap" }, z = ["id"], L = { key: 0 }, R = { class: "description text-c-3 px-3 py-1.5" }, G = /* @__PURE__ */ O({
6
+ const P = ["aria-expanded"], j = { class: "overflow-hidden text-ellipsis whitespace-nowrap" }, z = ["id"], L = { key: 0 }, R = { class: "description text-c-3 px-3 py-1.5" }, G = /* @__PURE__ */ U({
7
7
  __name: "ServerDropdownItem",
8
8
  props: {
9
9
  collection: {},
@@ -13,69 +13,69 @@ const P = ["aria-expanded"], j = { class: "overflow-hidden text-ellipsis whitesp
13
13
  type: {}
14
14
  },
15
15
  emits: ["update:variable"],
16
- setup(h, { emit: g }) {
17
- const e = h, k = g, c = U(), { collectionMutators: u, requestMutators: i, servers: v } = D(), x = (r, t) => {
18
- if (f(r) && t?.stopPropagation(), o.value) {
19
- e.operation?.servers?.length && i.edit(e.operation.uid, "selectedServerUid", null), e.type === "collection" ? (u.edit(
16
+ setup(o, { emit: h }) {
17
+ const e = o, g = h, u = C(), { collectionMutators: v, requestMutators: l, servers: f } = D(), k = (t, r) => {
18
+ if (m(t) && r?.stopPropagation(), i.value) {
19
+ e.operation?.servers?.length && l.edit(e.operation.uid, "selectedServerUid", null), e.type === "collection" ? (v.edit(
20
20
  e.collection.uid,
21
21
  "selectedServerUid",
22
22
  void 0
23
- ), y(m.value, "scalar-update-selected-server", {
23
+ ), y(b.value, "scalar-update-selected-server", {
24
24
  value: void 0,
25
25
  options: { disableOldStoreUpdate: !0 }
26
- })) : e.type === "request" && e.operation && i.edit(e.operation.uid, "selectedServerUid", null);
26
+ })) : e.type === "request" && e.operation && l.edit(e.operation.uid, "selectedServerUid", null);
27
27
  return;
28
28
  }
29
- e.type === "collection" && e.collection ? (e.operation?.servers?.length && i.edit(e.operation.uid, "selectedServerUid", null), u.edit(
29
+ e.type === "collection" && e.collection ? (e.operation?.servers?.length && l.edit(e.operation.uid, "selectedServerUid", null), v.edit(
30
30
  e.collection.uid,
31
31
  "selectedServerUid",
32
- r
33
- ), y(m.value, "scalar-update-selected-server", {
34
- value: v[r]?.url,
32
+ t
33
+ ), y(b.value, "scalar-update-selected-server", {
34
+ value: f[t]?.url,
35
35
  options: { disableOldStoreUpdate: !0 }
36
- })) : e.type === "request" && e.operation && i.edit(e.operation.uid, "selectedServerUid", r);
37
- }, o = b(() => e.type === "collection" ? e.collection.selectedServerUid === e.serverOption.id && !e.operation?.selectedServerUid : e.type === "request" && e.operation ? e.operation.selectedServerUid === e.serverOption.id : !1), f = (r) => {
38
- if (!r)
36
+ })) : e.type === "request" && e.operation && l.edit(e.operation.uid, "selectedServerUid", t);
37
+ }, i = S(() => e.type === "collection" ? e.collection.selectedServerUid === e.serverOption.id && !e.operation?.selectedServerUid : e.type === "request" && e.operation ? e.operation.selectedServerUid === e.serverOption.id : !1), m = (t) => {
38
+ if (!t)
39
39
  return !1;
40
- const t = v[r];
41
- return Object.keys(t?.variables ?? {}).length > 0;
42
- }, l = b(
43
- () => o.value && f(e.server?.uid ?? "")
44
- ), w = (r, t) => {
45
- k("update:variable", r, t);
46
- }, m = C("wrapper-ref");
47
- return (r, t) => (n(), a("div", {
40
+ const r = f[t];
41
+ return Object.keys(r?.variables ?? {}).length > 0;
42
+ }, a = S(
43
+ () => i.value && m(e.server?.uid ?? "")
44
+ ), w = (t, r) => {
45
+ g("update:variable", t, r);
46
+ }, b = V("wrapper-ref");
47
+ return (t, r) => (d(), n("div", {
48
48
  ref: "wrapper-ref",
49
- class: V(["group/item flex min-h-fit flex-col rounded border", { "border-transparent": !o.value }])
49
+ class: q(["group/item flex min-h-fit flex-col rounded border", { "border-transparent": !i.value }])
50
50
  }, [
51
- d("button", q(l.value ? { "aria-controls": s(c) } : {}, {
52
- "aria-expanded": l.value,
53
- class: ["flex min-h-8 cursor-pointer items-center gap-1.5 rounded px-1.5", o.value ? "text-c-1 bg-b-2" : "hover:bg-b-2"],
51
+ c("button", E(a.value ? { "aria-controls": s(u) } : {}, {
52
+ "aria-expanded": a.value,
53
+ class: ["flex min-h-8 cursor-pointer items-center gap-1.5 rounded px-1.5", i.value ? "text-c-1 bg-b-2" : "hover:bg-b-2"],
54
54
  type: "button",
55
- onClick: t[0] || (t[0] = (_) => x(r.serverOption.id, _))
55
+ onClick: r[0] || (r[0] = (O) => k(o.serverOption.id, O))
56
56
  }), [
57
- p(s(I), { selected: o.value }, null, 8, ["selected"]),
58
- d("span", j, E(r.serverOption.label), 1)
57
+ p(s(I), { selected: i.value }, null, 8, ["selected"]),
58
+ c("span", j, M(o.serverOption.label), 1)
59
59
  ], 16, P),
60
- l.value ? (n(), a("div", {
60
+ a.value ? (d(), n("div", {
61
61
  key: 0,
62
- id: s(c),
62
+ id: s(u),
63
63
  class: "bg-b-2 divide divide-y rounded-b border-t *:pl-4",
64
- onClick: t[1] || (t[1] = M(() => {
64
+ onClick: r[1] || (r[1] = _(() => {
65
65
  }, ["stop"]))
66
66
  }, [
67
67
  p(B, {
68
- variables: r.server?.variables,
68
+ variables: o.server?.variables,
69
69
  "onUpdate:variable": w
70
70
  }, null, 8, ["variables"]),
71
- r.server?.description ? (n(), a("div", L, [
72
- d("div", R, [
71
+ o.server?.description ? (d(), n("div", L, [
72
+ c("div", R, [
73
73
  p(s(N), {
74
- value: r.server.description
74
+ value: o.server.description
75
75
  }, null, 8, ["value"])
76
76
  ])
77
- ])) : S("", !0)
78
- ], 8, z)) : S("", !0)
77
+ ])) : x("", !0)
78
+ ], 8, z)) : x("", !0)
79
79
  ], 2));
80
80
  }
81
81
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, computed as a, watch as w, createBlock as b, createElementBlock as h, openBlock as v, unref as n, withCtx as f, createVNode as m, createElementVNode as l, toDisplayString as p } from "vue";
1
+ import { defineComponent as x, computed as a, watch as w, createBlock as b, createElementBlock as h, openBlock as v, unref as n, withCtx as f, createVNode as m, createElementVNode as l, toDisplayString as g } from "vue";
2
2
  import { ScalarListbox as y, ScalarButton as k } from "@scalar/components";
3
3
  import { ScalarIconCaretDown as U } from "@scalar/icons";
4
4
  import { useWorkspace as V } from "../../store/store.js";
@@ -13,45 +13,45 @@ const B = { class: "overflow-x-auto" }, W = {
13
13
  target: {}
14
14
  },
15
15
  emits: ["updateServer"],
16
- setup(r, { emit: g }) {
17
- const i = g, { servers: o, collectionMutators: u } = V(), s = a(
18
- () => r.collection?.servers.map((e) => ({
19
- id: e,
20
- label: o[e]?.url ?? "Unknown server"
16
+ setup(t, { emit: p }) {
17
+ const i = p, { servers: o, collectionMutators: u } = V(), s = a(
18
+ () => t.collection?.servers.map((r) => ({
19
+ id: r,
20
+ label: o[r]?.url ?? "Unknown server"
21
21
  }))
22
22
  ), c = a({
23
- get: () => r.server ? s.value.find((e) => e.id === r.server.uid) : void 0,
24
- set: (e) => {
25
- if (!e)
23
+ get: () => t.server ? s.value.find((r) => r.id === t.server.uid) : void 0,
24
+ set: (r) => {
25
+ if (!r)
26
26
  return;
27
27
  u.edit(
28
- r.collection.uid,
28
+ t.collection.uid,
29
29
  "selectedServerUid",
30
- e.id
30
+ r.id
31
31
  );
32
- const t = o[e.id]?.url;
33
- t && i("updateServer", t);
32
+ const e = o[r.id]?.url;
33
+ e && i("updateServer", e);
34
34
  }
35
35
  });
36
36
  w(
37
- () => r.collection,
38
- (e) => {
39
- if (!e || e.selectedServerUid)
37
+ () => t.collection,
38
+ (r) => {
39
+ if (!r || r.selectedServerUid)
40
40
  return;
41
- const t = r.collection.servers?.[0];
42
- t && (u.edit(r.collection.uid, "selectedServerUid", t), o[t]?.url && i("updateServer", o[t].url));
41
+ const e = t.collection.servers?.[0];
42
+ e && (u.edit(t.collection.uid, "selectedServerUid", e), o[e]?.url && i("updateServer", o[e].url));
43
43
  }
44
44
  );
45
- const d = a(() => r.server?.url?.endsWith("/") ? r.server.url.slice(0, -1) : r.server?.url || "");
46
- return (e, t) => s.value.length > 1 ? (v(), b(n(y), {
45
+ const d = a(() => t.server?.url?.endsWith("/") ? t.server.url.slice(0, -1) : t.server?.url || "");
46
+ return (r, e) => s.value.length > 1 ? (v(), b(n(y), {
47
47
  key: 0,
48
48
  modelValue: c.value,
49
- "onUpdate:modelValue": t[0] || (t[0] = (S) => c.value = S),
49
+ "onUpdate:modelValue": e[0] || (e[0] = (S) => c.value = S),
50
50
  options: s.value,
51
51
  placement: "bottom-start",
52
52
  resize: "",
53
- target: e.target,
54
- teleport: `#${e.target}`,
53
+ target: t.target,
54
+ teleport: `#${t.target}`,
55
55
  class: "group"
56
56
  }, {
57
57
  default: f(() => [
@@ -60,8 +60,8 @@ const B = { class: "overflow-x-auto" }, W = {
60
60
  variant: "ghost"
61
61
  }, {
62
62
  default: f(() => [
63
- t[1] || (t[1] = l("span", { class: "sr-only" }, "Server:", -1)),
64
- l("span", B, p(d.value), 1),
63
+ e[1] || (e[1] = l("span", { class: "sr-only" }, "Server:", -1)),
64
+ l("span", B, g(d.value), 1),
65
65
  m(n(U), {
66
66
  weight: "bold",
67
67
  class: "text-c-2 ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100"
@@ -72,8 +72,8 @@ const B = { class: "overflow-x-auto" }, W = {
72
72
  ]),
73
73
  _: 1
74
74
  }, 8, ["modelValue", "options", "target", "teleport"])) : (v(), h("div", W, [
75
- t[2] || (t[2] = l("span", { class: "sr-only" }, "Server:", -1)),
76
- l("span", z, p(d.value), 1)
75
+ e[2] || (e[2] = l("span", { class: "sr-only" }, "Server:", -1)),
76
+ l("span", z, g(d.value), 1)
77
77
  ]));
78
78
  }
79
79
  });
@@ -1,5 +1,5 @@
1
- import { defineComponent as m, useId as v, createElementBlock as c, createCommentVNode as p, openBlock as t, Fragment as g, renderList as h, normalizeClass as y, createElementVNode as k, createBlock as b, unref as a, toDisplayString as $ } from "vue";
2
- import C from "./ServerVariablesSelect.vue.js";
1
+ import { defineComponent as m, useId as v, createElementBlock as u, createCommentVNode as g, openBlock as a, Fragment as h, renderList as y, normalizeClass as k, createElementVNode as $, createBlock as b, unref as o, toDisplayString as C } from "vue";
2
+ import x from "./ServerVariablesSelect.vue.js";
3
3
  import V from "./ServerVariablesTextbox.vue.js";
4
4
  const B = ["for"], F = /* @__PURE__ */ m({
5
5
  __name: "ServerVariablesForm",
@@ -10,38 +10,38 @@ const B = ["for"], F = /* @__PURE__ */ m({
10
10
  layout: { default: "client" }
11
11
  },
12
12
  emits: ["update:variable"],
13
- setup(n, { emit: d }) {
14
- const f = d, o = v();
15
- function s(e, u) {
16
- f("update:variable", e, u);
13
+ setup(t, { emit: d }) {
14
+ const f = d, n = v();
15
+ function i(l, c) {
16
+ f("update:variable", l, c);
17
17
  }
18
- const i = (e) => (n.values?.[e] ?? n.variables?.[e]?.default ?? "").toString();
19
- return (e, u) => e.variables && Object.keys(e.variables ?? {}).length ? (t(!0), c(g, { key: 0 }, h(Object.keys(e.variables), (r) => (t(), c("div", {
20
- key: r,
21
- class: y([
18
+ const s = (l) => (t.values?.[l] ?? t.variables?.[l]?.default ?? "").toString();
19
+ return (l, c) => t.variables && Object.keys(t.variables ?? {}).length ? (a(!0), u(h, { key: 0 }, y(Object.keys(t.variables), (e) => (a(), u("div", {
20
+ key: e,
21
+ class: k([
22
22
  "group/label flex h-8 w-full",
23
- e.layout === "reference" && "items-center border-x border-b last:rounded-b-lg"
23
+ t.layout === "reference" && "items-center border-x border-b last:rounded-b-lg"
24
24
  ])
25
25
  }, [
26
- k("label", {
26
+ $("label", {
27
27
  class: "flex items-center py-2 pl-3 group-has-[input]/label:mr-0 after:content-[':']",
28
- for: `${a(o)}-${r}`
29
- }, $(r), 9, B),
30
- e.variables?.[r]?.enum?.length ? (t(), b(C, {
28
+ for: `${o(n)}-${e}`
29
+ }, C(e), 9, B),
30
+ t.variables?.[e]?.enum?.length ? (a(), b(x, {
31
31
  key: 0,
32
- id: `${a(o)}-${r}`,
33
- controls: e.controls,
34
- enum: e.variables[r]?.enum?.map((l) => `${l}`) ?? [],
35
- value: i(r),
36
- onChange: (l) => s(r, l)
37
- }, null, 8, ["id", "controls", "enum", "value", "onChange"])) : (t(), b(V, {
32
+ id: `${o(n)}-${e}`,
33
+ controls: t.controls,
34
+ enum: t.variables[e]?.enum?.map((r) => `${r}`) ?? [],
35
+ value: s(e),
36
+ onChange: (r) => i(e, r)
37
+ }, null, 8, ["id", "controls", "enum", "value", "onChange"])) : (a(), b(V, {
38
38
  key: 1,
39
- id: `${a(o)}-${r}`,
40
- controls: e.controls,
41
- value: i(r),
42
- onChange: (l) => s(r, l)
39
+ id: `${o(n)}-${e}`,
40
+ controls: t.controls,
41
+ value: s(e),
42
+ onChange: (r) => i(e, r)
43
43
  }, null, 8, ["id", "controls", "value", "onChange"]))
44
- ], 2))), 128)) : p("", !0);
44
+ ], 2))), 128)) : g("", !0);
45
45
  }
46
46
  });
47
47
  export {
@@ -1,10 +1,10 @@
1
- import { defineComponent as f, computed as r, createBlock as v, openBlock as s, unref as t, withCtx as c, createVNode as i, createElementVNode as g, normalizeClass as S, createElementBlock as V, createCommentVNode as b, createTextVNode as h, toDisplayString as C } from "vue";
2
- import { ScalarListbox as k, ScalarButton as x } from "@scalar/components";
1
+ import { defineComponent as f, computed as s, createBlock as v, openBlock as c, unref as a, withCtx as i, createVNode as u, createElementVNode as g, normalizeClass as x, createElementBlock as S, createCommentVNode as V, createTextVNode as b, toDisplayString as h } from "vue";
2
+ import { ScalarListbox as C, ScalarButton as k } from "@scalar/components";
3
3
  import { ScalarIconCaretDown as B } from "@scalar/icons";
4
4
  const N = {
5
5
  key: 0,
6
6
  class: "sr-only"
7
- }, z = /* @__PURE__ */ f({
7
+ }, D = /* @__PURE__ */ f({
8
8
  __name: "ServerVariablesSelect",
9
9
  props: {
10
10
  enum: {},
@@ -12,32 +12,32 @@ const N = {
12
12
  controls: {}
13
13
  },
14
14
  emits: ["change"],
15
- setup(u, { emit: m }) {
16
- const o = u, p = m, a = r(
15
+ setup(t, { emit: m }) {
16
+ const o = t, d = m, n = s(
17
17
  () => o.enum.map((e) => ({ id: e, label: e }))
18
- ), n = r({
19
- get: () => a.value.find((e) => e.id === o.value),
20
- set: (e) => p("change", e?.id ?? "")
18
+ ), l = s({
19
+ get: () => n.value.find((e) => e.id === o.value),
20
+ set: (e) => d("change", e?.id ?? "")
21
21
  });
22
- return (e, l) => (s(), v(t(k), {
23
- modelValue: n.value,
24
- "onUpdate:modelValue": l[0] || (l[0] = (d) => n.value = d),
25
- options: a.value
22
+ return (e, r) => (c(), v(a(C), {
23
+ modelValue: l.value,
24
+ "onUpdate:modelValue": r[0] || (r[0] = (p) => l.value = p),
25
+ options: n.value
26
26
  }, {
27
- default: c(() => [
28
- i(t(x), {
29
- "aria-controls": e.controls,
27
+ default: i(() => [
28
+ u(a(k), {
29
+ "aria-controls": t.controls,
30
30
  class: "group/button h-8 gap-1.5 p-1.5 text-base font-normal",
31
31
  variant: "ghost"
32
32
  }, {
33
- default: c(() => [
33
+ default: i(() => [
34
34
  g("span", {
35
- class: S({ "text-c-1": e.value })
35
+ class: x({ "text-c-1": t.value })
36
36
  }, [
37
- e.value ? (s(), V("span", N, " Selected: ")) : b("", !0),
38
- h(" " + C(e.value || "Select value"), 1)
37
+ t.value ? (c(), S("span", N, " Selected: ")) : V("", !0),
38
+ b(" " + h(t.value || "Select value"), 1)
39
39
  ], 2),
40
- i(t(B), {
40
+ u(a(B), {
41
41
  weight: "bold",
42
42
  class: "mt-0.25 size-3 transition-transform duration-100 group-aria-expanded/button:rotate-180"
43
43
  })
@@ -50,5 +50,5 @@ const N = {
50
50
  }
51
51
  });
52
52
  export {
53
- z as default
53
+ D as default
54
54
  };
@@ -1,29 +1,29 @@
1
- import { defineComponent as p, computed as c, withDirectives as u, createElementBlock as m, openBlock as i, mergeProps as d, vModelText as f } from "vue";
2
- const g = /* @__PURE__ */ p({
1
+ import { defineComponent as c, computed as u, withDirectives as p, createElementBlock as m, openBlock as i, mergeProps as d, vModelText as f } from "vue";
2
+ const x = /* @__PURE__ */ c({
3
3
  __name: "ServerVariablesTextbox",
4
4
  props: {
5
5
  value: {},
6
6
  controls: {}
7
7
  },
8
8
  emits: ["change"],
9
- setup(l, { emit: r }) {
10
- const a = l, n = r, t = c({
9
+ setup(e, { emit: r }) {
10
+ const a = e, n = r, o = u({
11
11
  get: () => a.value,
12
- set: (e) => n("change", e)
12
+ set: (t) => n("change", t)
13
13
  });
14
- return (e, o) => u((i(), m("input", d({
15
- "onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s)
16
- }, e.controls ? { ...e.$attrs, "aria-controls": e.controls } : {}, {
14
+ return (t, l) => p((i(), m("input", d({
15
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => o.value = s)
16
+ }, e.controls ? { ...t.$attrs, "aria-controls": e.controls } : {}, {
17
17
  autocomplete: "off",
18
18
  class: "text-c-1 w-full border-transparent px-1.5 py-1.25 -outline-offset-1 group-last/label:rounded-br-lg",
19
19
  placeholder: "value",
20
20
  spellcheck: "false",
21
21
  type: "text"
22
22
  }), null, 16)), [
23
- [f, t.value]
23
+ [f, o.value]
24
24
  ]);
25
25
  }
26
26
  });
27
27
  export {
28
- g as default
28
+ x as default
29
29
  };
@@ -1,9 +1,10 @@
1
1
  import type { OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
2
+ type ServerVariable = OpenAPIV3.ServerVariableObject | OpenAPIV3_1.ServerVariableObject;
2
3
  export type ServerVariables = {
3
4
  [variable: string]: ServerVariable;
4
5
  };
5
6
  export type ServerVariableValues = {
6
7
  [variable: string]: string;
7
8
  };
8
- export type ServerVariable = OpenAPIV3.ServerVariableObject | OpenAPIV3_1.ServerVariableObject;
9
+ export {};
9
10
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Server/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnE,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC,oBAAoB,GAAG,WAAW,CAAC,oBAAoB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Server/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnE,KAAK,cAAc,GAAG,SAAS,CAAC,oBAAoB,GAAG,WAAW,CAAC,oBAAoB,CAAA;AAEvF,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;CAC3B,CAAA"}