@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,20 +1,20 @@
1
- import { defineComponent as q, mergeModels as C, computed as b, capitalize as V, useModel as W, ref as G, createElementBlock as I, openBlock as m, createVNode as l, createBlock as g, createCommentVNode as f, unref as n, createSlots as R, withCtx as r, createTextVNode as y, withKeys as k, withModifiers as p, toDisplayString as j, createElementVNode as d, normalizeClass as F, nextTick as H } from "vue";
2
- import { useModal as L, ScalarSidebarItem as E, ScalarIconButton as U, ScalarButton as O, ScalarModal as J } from "@scalar/components";
1
+ import { defineComponent as q, mergeModels as x, computed as b, capitalize as V, useModel as C, ref as G, createElementBlock as W, openBlock as m, createVNode as l, createBlock as g, createCommentVNode as f, unref as i, createSlots as R, withCtx as r, createTextVNode as y, withKeys as k, withModifiers as c, toDisplayString as j, createElementVNode as d, normalizeClass as F, nextTick as H } from "vue";
2
+ import { useModal as L, ScalarSidebarItem as I, ScalarIconButton as U, ScalarButton as E, ScalarModal as J } from "@scalar/components";
3
3
  import { ScalarIconPlus as Y, ScalarIconDotsThree as Q, ScalarIconGlobe as X } from "@scalar/icons";
4
4
  import { getParentEntry as w } from "@scalar/workspace-store/navigation";
5
5
  import Z from "../../../../assets/rabbit.ascii.js";
6
6
  import _ from "../../../../assets/rabbitjump.ascii.js";
7
- import $ from "../../../../components/ScalarAsciiArt.vue.js";
7
+ import O from "../../../../components/ScalarAsciiArt.vue.js";
8
8
  import ee from "../../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
9
9
  import te from "./SidebarItemMenu.vue.js";
10
10
  import { dragHandleFactory as ae } from "../../../helpers/drag-handle-factory.js";
11
11
  import oe from "../../../components/sidebar/Sidebar.vue.js";
12
- const ne = { class: "flex" }, se = {
12
+ const ne = { class: "flex" }, ie = {
13
13
  key: 0,
14
14
  class: "empty-sidebar-item-content overflow-hidden px-2.5 py-2.5"
15
- }, ie = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, re = { class: "gap-1.5 p-2" }, we = /* @__PURE__ */ q({
15
+ }, se = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, re = { class: "gap-1.5 p-2" }, we = /* @__PURE__ */ q({
16
16
  __name: "AppSidebar",
17
- props: /* @__PURE__ */ C({
17
+ props: /* @__PURE__ */ x({
18
18
  layout: {},
19
19
  sidebarState: {},
20
20
  isWorkspaceOpen: { type: Boolean },
@@ -31,127 +31,127 @@ const ne = { class: "flex" }, se = {
31
31
  },
32
32
  sidebarWidthModifiers: {}
33
33
  }),
34
- emits: /* @__PURE__ */ C(["click:workspace", "selectItem", "select:workspace", "create:workspace"], ["update:isSidebarOpen", "update:sidebarWidth"]),
35
- setup(i, { emit: D }) {
36
- const c = D, N = b(() => V(i.activeWorkspace.label)), B = W(i, "isSidebarOpen"), M = W(i, "sidebarWidth"), S = b(() => i.sidebarState.items.value.length <= 1), h = b(
34
+ emits: /* @__PURE__ */ x(["click:workspace", "selectItem", "select:workspace", "create:workspace"], ["update:isSidebarOpen", "update:sidebarWidth"]),
35
+ setup(a, { emit: $ }) {
36
+ const p = $, D = b(() => V(a.activeWorkspace.label)), B = C(a, "isSidebarOpen"), M = C(a, "sidebarWidth"), S = b(() => a.sidebarState.items.value.length <= 1), h = b(
37
37
  () => ae({
38
- store: i.store,
39
- sidebarState: i.sidebarState
38
+ store: a.store,
39
+ sidebarState: a.sidebarState
40
40
  })
41
- ), A = (t, e) => h.value.handleDragEnd(t, e), T = (t, e) => h.value.isDroppable(t, e), s = G(null), v = L(), x = b(() => {
42
- const t = s.value?.item;
43
- return t?.type === "document" ? "This cannot be undone. You're about to delete the document and all tags and operations inside it." : `Are you sure you want to delete this ${t?.type ?? "item"}? This action cannot be undone.`;
41
+ ), N = (o, e) => h.value.handleDragEnd(o, e), A = (o, e) => h.value.isDroppable(o, e), s = G(null), v = L(), T = b(() => {
42
+ const o = s.value?.item;
43
+ return o?.type === "document" ? "This cannot be undone. You're about to delete the document and all tags and operations inside it." : `Are you sure you want to delete this ${o?.type ?? "item"}? This action cannot be undone.`;
44
44
  }), z = () => {
45
- const t = s.value?.item;
46
- if (!t)
45
+ const o = s.value?.item;
46
+ if (!o)
47
47
  return;
48
- const e = i.sidebarState.getEntryById(t.id), a = w("document", e), o = w("operation", e);
49
- if (a) {
50
- if (t.type === "document")
51
- i.eventBus.emit("document:delete:document", { name: a.name });
52
- else if (t.type === "tag")
53
- i.eventBus.emit("tag:delete:tag", {
54
- documentName: a.name,
55
- name: t.name
48
+ const e = a.sidebarState.getEntryById(o.id), t = w("document", e), n = w("operation", e);
49
+ if (t) {
50
+ if (o.type === "document")
51
+ a.eventBus.emit("document:delete:document", { name: t.name });
52
+ else if (o.type === "tag")
53
+ a.eventBus.emit("tag:delete:tag", {
54
+ documentName: t.name,
55
+ name: o.name
56
56
  });
57
- else if (t.type === "operation") {
58
- if (!o)
57
+ else if (o.type === "operation") {
58
+ if (!n)
59
59
  return;
60
- i.eventBus.emit("operation:delete:operation", {
60
+ a.eventBus.emit("operation:delete:operation", {
61
61
  meta: {
62
- method: o.method,
63
- path: o.path
62
+ method: n.method,
63
+ path: n.path
64
64
  },
65
- documentName: a.name
65
+ documentName: t.name
66
66
  });
67
- } else if (t.type === "example") {
68
- if (!o)
67
+ } else if (o.type === "example") {
68
+ if (!n)
69
69
  return;
70
- i.eventBus.emit("operation:delete:example", {
70
+ a.eventBus.emit("operation:delete:example", {
71
71
  meta: {
72
- method: o.method,
73
- path: o.path,
74
- exampleKey: t.name
72
+ method: n.method,
73
+ path: n.path,
74
+ exampleKey: o.name
75
75
  },
76
- documentName: a.name
76
+ documentName: t.name
77
77
  });
78
78
  }
79
79
  v.hide(), s.value = null;
80
80
  }
81
- }, u = async (t, e) => {
81
+ }, u = async (o, e) => {
82
82
  if (s.value?.showMenu)
83
83
  return;
84
- const a = t.currentTarget;
85
- s.value = { item: e, el: a, showMenu: !0 }, await H();
86
- const o = t instanceof MouseEvent ? new MouseEvent(t.type, t) : new KeyboardEvent(t.type, t);
87
- s.value?.el.dispatchEvent(o);
84
+ const t = o.currentTarget;
85
+ s.value = { item: e, el: t, showMenu: !0 }, await H();
86
+ const n = o instanceof MouseEvent ? new MouseEvent(o.type, o) : new KeyboardEvent(o.type, o);
87
+ s.value?.el.dispatchEvent(n);
88
88
  }, K = () => {
89
89
  s.value && (s.value.showMenu = !1);
90
- }, P = (t) => {
91
- const e = i.sidebarState.getEntryById(t.id), a = w("document", e), o = w("tag", e);
92
- i.eventBus.emit("ui:open:command-palette", {
90
+ }, P = (o) => {
91
+ const e = a.sidebarState.getEntryById(o.id), t = w("document", e), n = w("tag", e);
92
+ a.eventBus.emit("ui:open:command-palette", {
93
93
  action: "create-request",
94
94
  payload: {
95
- documentId: a?.id,
96
- tagId: o?.name
95
+ documentId: t?.id,
96
+ tagId: n?.name
97
97
  }
98
98
  });
99
99
  };
100
- return (t, e) => (m(), I("div", ne, [
101
- l(n(oe), {
100
+ return (o, e) => (m(), W("div", ne, [
101
+ l(i(oe), {
102
102
  isSidebarOpen: B.value,
103
- "onUpdate:isSidebarOpen": e[3] || (e[3] = (a) => B.value = a),
103
+ "onUpdate:isSidebarOpen": e[3] || (e[3] = (t) => B.value = t),
104
104
  sidebarWidth: M.value,
105
- "onUpdate:sidebarWidth": e[4] || (e[4] = (a) => M.value = a),
106
- activeWorkspace: t.activeWorkspace,
107
- documents: Object.values(t.store.workspace.documents),
108
- eventBus: t.eventBus,
109
- isDroppable: T,
110
- layout: t.layout,
111
- sidebarState: t.sidebarState,
112
- workspaces: t.workspaces,
113
- "onCreate:workspace": e[5] || (e[5] = (a) => c("create:workspace")),
114
- onReorder: e[6] || (e[6] = (a, o) => A(a, o)),
115
- "onSelect:workspace": e[7] || (e[7] = (a) => c("select:workspace", a)),
116
- onSelectItem: e[8] || (e[8] = (a) => c("selectItem", a))
105
+ "onUpdate:sidebarWidth": e[4] || (e[4] = (t) => M.value = t),
106
+ activeWorkspace: a.activeWorkspace,
107
+ documents: Object.values(a.store.workspace.documents),
108
+ eventBus: a.eventBus,
109
+ isDroppable: A,
110
+ layout: a.layout,
111
+ sidebarState: a.sidebarState,
112
+ workspaces: a.workspaces,
113
+ "onCreate:workspace": e[5] || (e[5] = (t) => p("create:workspace")),
114
+ onReorder: e[6] || (e[6] = (t, n) => N(t, n)),
115
+ "onSelect:workspace": e[7] || (e[7] = (t) => p("select:workspace", t)),
116
+ onSelectItem: e[8] || (e[8] = (t) => p("selectItem", t))
117
117
  }, R({
118
118
  workspaceButton: r(() => [
119
- l(n(E), {
119
+ l(i(I), {
120
120
  is: "button",
121
- active: t.isWorkspaceOpen,
122
- icon: n(X),
123
- onClick: e[0] || (e[0] = (a) => c("click:workspace"))
121
+ active: a.isWorkspaceOpen,
122
+ icon: i(X),
123
+ onClick: e[0] || (e[0] = (t) => p("click:workspace"))
124
124
  }, {
125
125
  default: r(() => [
126
- y(j(N.value), 1)
126
+ y(j(D.value), 1)
127
127
  ]),
128
128
  _: 1
129
129
  }, 8, ["active", "icon"])
130
130
  ]),
131
- decorator: r(({ item: a }) => [
132
- l(n(U), {
131
+ decorator: r(({ item: t }) => [
132
+ l(i(U), {
133
133
  "aria-expanded": "false",
134
134
  "aria-haspopup": "menu",
135
- icon: n(Q),
135
+ icon: i(Q),
136
136
  label: "More options",
137
137
  size: "sm",
138
138
  weight: "bold",
139
- onClick: p((o) => u(o, a), ["stop"]),
139
+ onClick: c((n) => u(n, t), ["stop"]),
140
140
  onKeydown: [
141
- k(p((o) => u(o, a), ["stop"]), ["down"]),
142
- k(p((o) => u(o, a), ["stop"]), ["enter"]),
143
- k(p((o) => u(o, a), ["stop"]), ["space"]),
144
- k(p((o) => u(o, a), ["stop"]), ["up"])
141
+ k(c((n) => u(n, t), ["stop"]), ["down"]),
142
+ k(c((n) => u(n, t), ["stop"]), ["enter"]),
143
+ k(c((n) => u(n, t), ["stop"]), ["space"]),
144
+ k(c((n) => u(n, t), ["stop"]), ["up"])
145
145
  ]
146
146
  }, null, 8, ["icon", "onClick", "onKeydown"])
147
147
  ]),
148
- empty: r(({ item: a }) => [
149
- l(n(E), {
148
+ empty: r(({ item: t }) => [
149
+ l(i(I), {
150
150
  is: "button",
151
- onClick: (o) => P(a)
151
+ onClick: (n) => P(t)
152
152
  }, {
153
153
  icon: r(() => [
154
- l(n(Y))
154
+ l(i(Y))
155
155
  ]),
156
156
  default: r(() => [...e[11] || (e[11] = [
157
157
  y("Add operation", -1)
@@ -161,7 +161,7 @@ const ne = { class: "flex" }, se = {
161
161
  ]),
162
162
  _: 2
163
163
  }, [
164
- t.layout !== "modal" ? {
164
+ a.layout !== "modal" ? {
165
165
  name: "footer",
166
166
  fn: r(() => [
167
167
  d("div", {
@@ -169,14 +169,14 @@ const ne = { class: "flex" }, se = {
169
169
  "empty-sidebar-item border-t": S.value
170
170
  })
171
171
  }, [
172
- S.value ? (m(), I("div", se, [
173
- d("div", ie, [
174
- l($, {
175
- art: n(Z),
172
+ S.value ? (m(), W("div", ie, [
173
+ d("div", se, [
174
+ l(O, {
175
+ art: i(Z),
176
176
  class: "rabbitsit font-bold"
177
177
  }, null, 8, ["art"]),
178
- l($, {
179
- art: n(_),
178
+ l(O, {
179
+ art: i(_),
180
180
  class: "rabbitjump absolute top-0 left-0 font-bold"
181
181
  }, null, 8, ["art"])
182
182
  ]),
@@ -186,11 +186,11 @@ const ne = { class: "flex" }, se = {
186
186
  ], -1))
187
187
  ])) : f("", !0),
188
188
  d("div", re, [
189
- S.value ? (m(), g(n(O), {
189
+ S.value ? (m(), g(i(E), {
190
190
  key: 0,
191
191
  class: "w-full",
192
192
  size: "sm",
193
- onClick: e[1] || (e[1] = (a) => t.eventBus.emit("ui:open:command-palette", {
193
+ onClick: e[1] || (e[1] = (t) => a.eventBus.emit("ui:open:command-palette", {
194
194
  action: "import-from-openapi-swagger-postman-curl",
195
195
  payload: void 0
196
196
  }))
@@ -200,12 +200,12 @@ const ne = { class: "flex" }, se = {
200
200
  ])]),
201
201
  _: 1
202
202
  })) : f("", !0),
203
- l(n(O), {
203
+ l(i(E), {
204
204
  class: "w-full",
205
205
  hotkey: "K",
206
206
  size: "sm",
207
207
  variant: "outlined",
208
- onClick: e[2] || (e[2] = (a) => t.eventBus.emit("ui:open:command-palette"))
208
+ onClick: e[2] || (e[2] = (t) => a.eventBus.emit("ui:open:command-palette"))
209
209
  }, {
210
210
  default: r(() => [...e[14] || (e[14] = [
211
211
  y(" Add Item ", -1)
@@ -220,24 +220,24 @@ const ne = { class: "flex" }, se = {
220
220
  ]), 1032, ["isSidebarOpen", "sidebarWidth", "activeWorkspace", "documents", "eventBus", "layout", "sidebarState", "workspaces"]),
221
221
  s.value?.showMenu ? (m(), g(te, {
222
222
  key: 0,
223
- eventBus: t.eventBus,
223
+ eventBus: a.eventBus,
224
224
  item: s.value.item,
225
- sidebarState: t.sidebarState,
225
+ sidebarState: a.sidebarState,
226
226
  target: s.value.el,
227
227
  onCloseMenu: K,
228
- onShowDeleteModal: e[9] || (e[9] = (a) => n(v).show())
228
+ onShowDeleteModal: e[9] || (e[9] = (t) => i(v).show())
229
229
  }, null, 8, ["eventBus", "item", "sidebarState", "target"])) : f("", !0),
230
- s.value ? (m(), g(n(J), {
230
+ s.value ? (m(), g(i(J), {
231
231
  key: 1,
232
232
  size: "xxs",
233
- state: n(v),
233
+ state: i(v),
234
234
  title: `Delete ${s.value.item.title}`
235
235
  }, {
236
236
  default: r(() => [
237
237
  l(ee, {
238
238
  variableName: s.value.item.title,
239
- warningMessage: x.value,
240
- onClose: e[10] || (e[10] = (a) => n(v).hide()),
239
+ warningMessage: T.value,
240
+ onClose: e[10] || (e[10] = (t) => i(v).hide()),
241
241
  onDelete: z
242
242
  }, null, 8, ["variableName", "warningMessage"])
243
243
  ]),
@@ -1,43 +1,43 @@
1
- import { defineComponent as p, ref as f, computed as s, watch as b, createBlock as v, openBlock as k, unref as x, withCtx as r, createVNode as m, createTextVNode as V } from "vue";
2
- import { ScalarModal as _ } from "@scalar/components";
3
- import w from "../../../../components/CommandPalette/CommandActionForm.vue.js";
4
- import C from "../../../../components/CommandPalette/CommandActionInput.vue.js";
1
+ import { defineComponent as p, ref as f, computed as s, watch as b, createBlock as v, openBlock as k, unref as x, withCtx as l, createVNode as m, createTextVNode as V } from "vue";
2
+ import { ScalarModal as w } from "@scalar/components";
3
+ import C from "../../../../components/CommandPalette/CommandActionForm.vue.js";
4
+ import _ from "../../../../components/CommandPalette/CommandActionInput.vue.js";
5
5
  const g = /* @__PURE__ */ p({
6
6
  __name: "CreateWorkspaceModal",
7
7
  props: {
8
8
  state: {}
9
9
  },
10
10
  emits: ["create:workspace"],
11
- setup(l, { emit: d }) {
12
- const n = d, e = f(""), a = s(() => e.value.trim()), i = s(
13
- () => a.value.length === 0
11
+ setup(a, { emit: d }) {
12
+ const n = d, e = f(""), o = s(() => e.value.trim()), i = s(
13
+ () => o.value.length === 0
14
14
  );
15
15
  b(
16
- () => l.state.open,
17
- (o) => {
18
- o && (e.value = "");
16
+ () => a.state.open,
17
+ (r) => {
18
+ r && (e.value = "");
19
19
  }
20
20
  );
21
21
  const u = () => {
22
- a.value && (n("create:workspace", {
23
- name: a.value
24
- }), l.state.hide());
22
+ o.value && (n("create:workspace", {
23
+ name: o.value
24
+ }), a.state.hide());
25
25
  };
26
- return (o, t) => (k(), v(x(_), {
26
+ return (r, t) => (k(), v(x(w), {
27
27
  bodyClass: "border-t-0 rounded-t-lg",
28
28
  size: "xs",
29
- state: o.state
29
+ state: a.state
30
30
  }, {
31
- default: r(() => [
32
- m(w, {
31
+ default: l(() => [
32
+ m(C, {
33
33
  disabled: i.value,
34
34
  onSubmit: u
35
35
  }, {
36
- submit: r(() => [...t[1] || (t[1] = [
36
+ submit: l(() => [...t[1] || (t[1] = [
37
37
  V("Add Workspace", -1)
38
38
  ])]),
39
- default: r(() => [
40
- m(C, {
39
+ default: l(() => [
40
+ m(_, {
41
41
  modelValue: e.value,
42
42
  "onUpdate:modelValue": t[0] || (t[0] = (c) => e.value = c),
43
43
  class: "-mt-[.5px] !p-0",
@@ -1,8 +1,8 @@
1
- import { defineComponent as I, computed as d, createBlock as i, openBlock as l, unref as t, withCtx as a, createVNode as n, createElementBlock as k, createCommentVNode as u, createTextVNode as m, resolveDynamicComponent as s, Fragment as D, createElementVNode as b, normalizeClass as f, toDisplayString as $ } from "vue";
2
- import { ScalarContextMenu as B, ScalarFloating as N, ScalarDropdownMenu as O, ScalarDropdownButton as p, ScalarHotkey as v, ScalarDropdownDivider as U, ScalarTooltip as V } from "@scalar/components";
3
- import { isMacOS as q } from "@scalar/helpers/general/is-mac-os";
4
- import { ScalarIconPlusSquare as F, ScalarIconLinkSimple as M, ScalarIconXSquare as E, ScalarIconTabs as L, ScalarIconFolderSimple as P, ScalarIconArrowUpRight as R, ScalarIconX as X } from "@scalar/icons";
5
- const K = /* @__PURE__ */ I({
1
+ import { defineComponent as x, computed as k, createBlock as i, openBlock as a, unref as t, withCtx as n, createVNode as o, createElementBlock as v, createCommentVNode as b, createTextVNode as m, resolveDynamicComponent as s, Fragment as I, createElementVNode as f, normalizeClass as g, toDisplayString as D } from "vue";
2
+ import { ScalarContextMenu as $, ScalarFloating as B, ScalarDropdownMenu as N, ScalarDropdownButton as u, ScalarHotkey as y, ScalarDropdownDivider as O, ScalarTooltip as U } from "@scalar/components";
3
+ import { isMacOS as V } from "@scalar/helpers/general/is-mac-os";
4
+ import { ScalarIconPlusSquare as q, ScalarIconLinkSimple as F, ScalarIconXSquare as M, ScalarIconTabs as E, ScalarIconFolderSimple as L, ScalarIconArrowUpRight as P, ScalarIconX as R } from "@scalar/icons";
5
+ const H = /* @__PURE__ */ x({
6
6
  __name: "DesktopTab",
7
7
  props: {
8
8
  hotkey: {},
@@ -11,108 +11,108 @@ const K = /* @__PURE__ */ I({
11
11
  tab: {}
12
12
  },
13
13
  emits: ["click", "close", "newTab", "copyUrl", "closeOtherTabs"],
14
- setup(g, { emit: y }) {
15
- const r = y, S = {
16
- request: R,
17
- document: P
18
- }, T = d(() => q() ? "⌘" : "^"), C = d(
19
- () => g.hotkey ? `${T.value} ${g.hotkey}` : ""
20
- ), w = (o) => {
21
- o.stopPropagation(), r("close");
14
+ setup(l, { emit: T }) {
15
+ const c = T, S = {
16
+ request: P,
17
+ document: L
18
+ }, C = k(() => V() ? "⌘" : "^"), p = k(
19
+ () => l.hotkey ? `${C.value} ${l.hotkey}` : ""
20
+ ), w = (d) => {
21
+ d.stopPropagation(), c("close");
22
22
  };
23
- return (o, e) => (l(), i(t(B), { triggerClass: `overflow-hidden w-full flex-1 select-none
23
+ return (d, e) => (a(), i(t($), { triggerClass: `overflow-hidden w-full flex-1 select-none
24
24
  ` }, {
25
- trigger: a(() => [
26
- (l(), i(s(o.isSingleTab ? "div" : t(V)), {
27
- content: C.value,
25
+ trigger: n(() => [
26
+ (a(), i(s(l.isSingleTab ? "div" : t(U)), {
27
+ content: p.value,
28
28
  placement: "bottom"
29
29
  }, {
30
- default: a(() => [
31
- b("div", {
32
- class: f(["app-no-drag-region", [
33
- o.isSingleTab ? "nav-single-tab" : "nav-item",
34
- { "nav-item__active": o.active && !o.isSingleTab }
30
+ default: n(() => [
31
+ f("div", {
32
+ class: g(["app-no-drag-region", [
33
+ l.isSingleTab ? "nav-single-tab" : "nav-item",
34
+ { "nav-item__active": l.active && !l.isSingleTab }
35
35
  ]]),
36
- onClick: e[0] || (e[0] = (c) => !o.isSingleTab && r("click"))
36
+ onClick: e[0] || (e[0] = (r) => !l.isSingleTab && c("click"))
37
37
  }, [
38
- b("div", {
39
- class: f([
38
+ f("div", {
39
+ class: g([
40
40
  "flex items-center justify-center gap-1.5",
41
- o.isSingleTab ? "custom-scroll h-full w-full whitespace-nowrap" : "nav-item-icon-copy flex-1"
41
+ l.isSingleTab ? "custom-scroll h-full w-full whitespace-nowrap" : "nav-item-icon-copy flex-1"
42
42
  ])
43
43
  }, [
44
- o.tab.icon && S[o.tab.icon] ? (l(), i(s(S[o.tab.icon]), { key: 0 })) : u("", !0),
45
- b("span", {
46
- class: f([
47
- o.isSingleTab ? "" : "custom-scroll nav-item-copy",
44
+ l.tab.icon && S[l.tab.icon] ? (a(), i(s(S[l.tab.icon]), { key: 0 })) : b("", !0),
45
+ f("span", {
46
+ class: g([
47
+ l.isSingleTab ? "" : "custom-scroll nav-item-copy",
48
48
  "text-sm"
49
49
  ])
50
- }, $(o.tab.title), 3)
50
+ }, D(l.tab.title), 3)
51
51
  ], 2),
52
- o.isSingleTab ? u("", !0) : (l(), k("button", {
52
+ l.isSingleTab ? b("", !0) : (a(), v("button", {
53
53
  key: 0,
54
54
  class: "nav-item-close",
55
55
  type: "button",
56
56
  onClick: w
57
57
  }, [
58
- (l(), i(s(t(X))))
58
+ (a(), i(s(t(R))))
59
59
  ]))
60
60
  ], 2)
61
61
  ]),
62
62
  _: 1
63
63
  }, 8, ["content"]))
64
64
  ]),
65
- content: a(() => [
66
- n(t(N), { placement: "right-start" }, {
67
- floating: a(() => [
68
- n(t(O), { class: "scalar-app scalar-client" }, {
69
- default: a(() => [
70
- n(t(p), {
65
+ content: n(() => [
66
+ o(t(B), { placement: "right-start" }, {
67
+ floating: n(() => [
68
+ o(t(N), { class: "scalar-app scalar-client" }, {
69
+ default: n(() => [
70
+ o(t(u), {
71
71
  class: "flex items-center gap-1.5",
72
- onClick: e[1] || (e[1] = (c) => r("newTab"))
72
+ onClick: e[1] || (e[1] = (r) => c("newTab"))
73
73
  }, {
74
- default: a(() => [
75
- (l(), i(s(t(F)))),
74
+ default: n(() => [
75
+ (a(), i(s(t(q)))),
76
76
  e[5] || (e[5] = m(" New Tab ", -1)),
77
- n(t(v), {
77
+ o(t(y), {
78
78
  class: "bg-b-2 ml-auto",
79
79
  hotkey: "T"
80
80
  })
81
81
  ]),
82
82
  _: 1
83
83
  }),
84
- n(t(p), {
84
+ o(t(u), {
85
85
  class: "flex items-center gap-1.5",
86
- onClick: e[2] || (e[2] = (c) => r("copyUrl"))
86
+ onClick: e[2] || (e[2] = (r) => c("copyUrl"))
87
87
  }, {
88
- default: a(() => [
89
- (l(), i(s(t(M)))),
88
+ default: n(() => [
89
+ (a(), i(s(t(F)))),
90
90
  e[6] || (e[6] = m(" Copy URL ", -1))
91
91
  ]),
92
92
  _: 1
93
93
  }),
94
- o.isSingleTab ? u("", !0) : (l(), k(D, { key: 0 }, [
95
- n(t(U)),
96
- n(t(p), {
94
+ l.isSingleTab ? b("", !0) : (a(), v(I, { key: 0 }, [
95
+ o(t(O)),
96
+ o(t(u), {
97
97
  class: "flex items-center gap-1.5",
98
- onClick: e[3] || (e[3] = (c) => r("close"))
98
+ onClick: e[3] || (e[3] = (r) => c("close"))
99
99
  }, {
100
- default: a(() => [
101
- (l(), i(s(t(E)))),
100
+ default: n(() => [
101
+ (a(), i(s(t(M)))),
102
102
  e[7] || (e[7] = m(" Close Tab ", -1)),
103
- n(t(v), {
103
+ o(t(y), {
104
104
  class: "bg-b-2 ml-auto",
105
105
  hotkey: "W"
106
106
  })
107
107
  ]),
108
108
  _: 1
109
109
  }),
110
- n(t(p), {
110
+ o(t(u), {
111
111
  class: "flex items-center gap-1.5",
112
- onClick: e[4] || (e[4] = (c) => r("closeOtherTabs"))
112
+ onClick: e[4] || (e[4] = (r) => c("closeOtherTabs"))
113
113
  }, {
114
- default: a(() => [
115
- (l(), i(s(t(L)))),
114
+ default: n(() => [
115
+ (a(), i(s(t(E)))),
116
116
  e[8] || (e[8] = m(" Close Other Tabs ", -1))
117
117
  ]),
118
118
  _: 1
@@ -130,5 +130,5 @@ const K = /* @__PURE__ */ I({
130
130
  }
131
131
  });
132
132
  export {
133
- K as default
133
+ H as default
134
134
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, computed as d, createElementBlock as c, openBlock as o, createElementVNode as h, Fragment as p, renderList as T, createBlock as C, createVNode as k, unref as g } from "vue";
1
+ import { defineComponent as v, computed as d, createElementBlock as l, openBlock as n, createElementVNode as h, Fragment as T, renderList as p, createBlock as C, createVNode as k, unref as g } from "vue";
2
2
  import { ScalarIcon as f } from "@scalar/components";
3
3
  import B from "./DesktopTab.vue.js";
4
4
  const y = { class: "mac:pl-[72px] t-app__top-nav flex h-10 items-center gap-2 px-2" }, U = /* @__PURE__ */ v({
@@ -8,29 +8,29 @@ const y = { class: "mac:pl-[72px] t-app__top-nav flex h-10 items-center gap-2 px
8
8
  activeTabIndex: {},
9
9
  eventBus: {}
10
10
  },
11
- setup(a) {
12
- const n = d(() => a.tabs.length === 1), s = () => {
13
- a.eventBus.emit("tabs:add:tab", void 0);
14
- }, r = (e) => {
15
- a.eventBus.emit("tabs:focus:tab", { index: e });
16
- }, b = (e) => {
17
- a.eventBus.emit("tabs:close:tab", { index: e });
18
- }, i = (e) => {
19
- a.eventBus.emit("tabs:close:other-tabs", { index: e });
20
- }, u = (e) => {
21
- a.eventBus.emit("tabs:copy:url", { index: e });
11
+ setup(e) {
12
+ const o = d(() => e.tabs.length === 1), s = () => {
13
+ e.eventBus.emit("tabs:add:tab", void 0);
14
+ }, b = (t) => {
15
+ e.eventBus.emit("tabs:focus:tab", { index: t });
16
+ }, r = (t) => {
17
+ e.eventBus.emit("tabs:close:tab", { index: t });
18
+ }, i = (t) => {
19
+ e.eventBus.emit("tabs:close:other-tabs", { index: t });
20
+ }, u = (t) => {
21
+ e.eventBus.emit("tabs:copy:url", { index: t });
22
22
  };
23
- return (e, S) => (o(), c("nav", y, [
24
- (o(!0), c(p, null, T(e.tabs, (m, t) => (o(), C(B, {
25
- key: t,
26
- active: t === e.activeTabIndex,
27
- hotkey: !n.value && t < 9 ? String(t + 1) : void 0,
28
- isSingleTab: n.value,
23
+ return (t, S) => (n(), l("nav", y, [
24
+ (n(!0), l(T, null, p(e.tabs, (m, a) => (n(), C(B, {
25
+ key: a,
26
+ active: a === e.activeTabIndex,
27
+ hotkey: !o.value && a < 9 ? String(a + 1) : void 0,
28
+ isSingleTab: o.value,
29
29
  tab: m,
30
- onClick: (l) => r(t),
31
- onClose: (l) => b(t),
32
- onCloseOtherTabs: (l) => i(t),
33
- onCopyUrl: () => u(t),
30
+ onClick: (c) => b(a),
31
+ onClose: (c) => r(a),
32
+ onCloseOtherTabs: (c) => i(a),
33
+ onCopyUrl: () => u(a),
34
34
  onNewTab: s
35
35
  }, null, 8, ["active", "hotkey", "isSingleTab", "tab", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]))), 128)),
36
36
  h("button", {