@scalar/api-client 2.18.1 → 2.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/dist/components/AddressBar/AddressBar.vue2.js +52 -52
  3. package/dist/components/AddressBar/AddressBarHistory.vue2.js +15 -15
  4. package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -33
  5. package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
  6. package/dist/components/AddressBar/httpStatusCodeColors.js +0 -1
  7. package/dist/components/CodeInput/CodeInput.vue2.js +112 -112
  8. package/dist/components/CommandPalette/CommandActionForm.vue.js +18 -18
  9. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +25 -25
  10. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -4
  13. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -1
  14. package/dist/components/CommandPalette/WatchModeToggle.vue.js +14 -14
  15. package/dist/components/DataTable/DataTable.vue.js +17 -17
  16. package/dist/components/DataTable/DataTableCell.vue.js +9 -9
  17. package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
  18. package/dist/components/DataTable/DataTableInput.vue2.js +48 -48
  19. package/dist/components/DataTable/DataTableInputSelect.vue.js +35 -35
  20. package/dist/components/DataTable/DataTableText.vue.js +10 -10
  21. package/dist/components/Form/Form.vue.js +32 -32
  22. package/dist/components/Form/LabelInput.vue2.js +15 -15
  23. package/dist/components/HelpfulLink.vue.js +7 -7
  24. package/dist/components/HttpMethod/HttpMethod.vue2.js +22 -22
  25. package/dist/components/IconSelector.vue.js +16 -16
  26. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +50 -50
  27. package/dist/components/ImportCollection/ImportNowButton.vue.js +23 -23
  28. package/dist/components/ImportCollection/PrefetchError.vue.js +8 -8
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -7
  30. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  31. package/dist/components/ScalarAsciiArt.vue2.js +16 -16
  32. package/dist/components/SectionFilter.vue2.js +21 -21
  33. package/dist/components/SectionFilterButton.vue.js +7 -7
  34. package/dist/components/Server/ServerDropdown.vue.js +32 -32
  35. package/dist/components/Server/ServerDropdownItem.vue2.js +39 -39
  36. package/dist/components/Server/ServerSelector.vue.js +27 -27
  37. package/dist/components/Server/ServerVariablesForm.vue.js +26 -26
  38. package/dist/components/Server/ServerVariablesSelect.vue.js +21 -21
  39. package/dist/components/Server/ServerVariablesTextbox.vue.js +10 -10
  40. package/dist/components/Server/types.d.ts +2 -1
  41. package/dist/components/Server/types.d.ts.map +1 -1
  42. package/dist/components/SideNav/SideNavLink.vue.js +18 -18
  43. package/dist/components/SideNav/SideNavRouterLink.vue.js +13 -13
  44. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +11 -11
  45. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +16 -16
  46. package/dist/components/Sidebar/Sidebar.vue2.js +28 -28
  47. package/dist/components/Sidebar/SidebarButton.vue.js +12 -12
  48. package/dist/components/Sidebar/SidebarListElement.vue2.js +34 -34
  49. package/dist/components/Sidebar/SidebarListElementActions.vue.js +33 -33
  50. package/dist/components/TopNav/TopNavItem.vue2.js +41 -41
  51. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +43 -43
  52. package/dist/data/httpHeaders.d.ts +2 -1
  53. package/dist/data/httpHeaders.d.ts.map +1 -1
  54. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  55. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  56. package/dist/libs/create-client.d.ts.map +1 -1
  57. package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
  58. package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
  59. package/dist/plugins/hooks/usePluginManager.js +4 -4
  60. package/dist/plugins/index.d.ts +1 -1
  61. package/dist/plugins/index.d.ts.map +1 -1
  62. package/dist/plugins/index.js +5 -5
  63. package/dist/plugins/plugin-manager.d.ts +0 -2
  64. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  65. package/dist/routes.d.ts +0 -10
  66. package/dist/routes.d.ts.map +1 -1
  67. package/dist/routes.js +0 -1
  68. package/dist/store/security-schemes.d.ts.map +1 -1
  69. package/dist/store/store.d.ts.map +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
  72. package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
  73. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  74. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
  75. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
  76. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
  77. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
  78. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  79. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
  80. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
  81. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  82. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
  83. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
  84. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
  85. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
  86. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  87. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
  88. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  89. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  90. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
  91. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
  92. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  93. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  94. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
  95. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
  96. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
  97. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
  98. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
  99. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
  100. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  101. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
  102. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
  103. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  104. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
  105. package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
  106. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
  107. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  108. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
  109. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
  110. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
  111. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  112. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
  113. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
  114. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
  115. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
  116. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
  117. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
  118. package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
  119. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
  120. package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
  121. package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
  122. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
  123. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
  124. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
  125. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
  126. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
  127. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
  128. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
  129. package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
  130. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
  131. package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
  132. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
  133. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
  134. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
  135. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
  136. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
  137. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +69 -69
  138. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
  139. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
  140. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
  141. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +29 -29
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
  144. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +75 -75
  145. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
  146. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  147. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
  148. package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
  149. package/dist/v2/components/data-table/DataTable.vue.js +17 -17
  150. package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
  151. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
  152. package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
  153. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
  154. package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
  155. package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
  156. package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
  157. package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
  158. package/dist/v2/components/resize/Resize.vue2.js +11 -11
  159. package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
  160. package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
  161. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -0
  162. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  163. package/dist/v2/components/sidebar/Sidebar.vue.js +39 -34
  164. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +11 -1
  165. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  166. package/dist/v2/components/sidebar/SidebarMenu.vue.js +34 -35
  167. package/dist/v2/features/app/App.vue.d.ts +16 -2
  168. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  169. package/dist/v2/features/app/App.vue.js +50 -45
  170. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  171. package/dist/v2/features/app/app-events.js +55 -61
  172. package/dist/v2/features/app/app-state.d.ts +2 -1
  173. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  174. package/dist/v2/features/app/app-state.js +10 -10
  175. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +11 -1
  176. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  177. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  178. package/dist/v2/features/app/components/AppSidebar.vue2.js +113 -110
  179. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
  180. package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
  181. package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
  182. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
  183. package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
  184. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +3 -60
  185. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  186. package/dist/v2/features/app/helpers/create-api-client-app.js +8 -8
  187. package/dist/v2/features/app/index.d.ts +5 -1
  188. package/dist/v2/features/app/index.d.ts.map +1 -1
  189. package/dist/v2/features/app/index.js +8 -2
  190. package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
  191. package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
  192. package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
  193. package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
  194. package/dist/v2/features/collection/components/Environment.vue.js +10 -10
  195. package/dist/v2/features/collection/components/Form.vue.js +21 -21
  196. package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
  197. package/dist/v2/features/collection/components/Servers.vue.js +37 -37
  198. package/dist/v2/features/collection/components/Settings.vue.js +22 -22
  199. package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
  200. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
  201. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
  202. package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
  203. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
  204. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
  205. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
  206. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
  207. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
  208. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
  209. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  210. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
  211. package/dist/v2/features/command-palette/types.d.ts +11 -10
  212. package/dist/v2/features/command-palette/types.d.ts.map +1 -1
  213. package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
  214. package/dist/v2/features/environments/components/Environment.vue.js +16 -16
  215. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
  216. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
  217. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
  218. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
  219. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
  220. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
  221. package/dist/v2/features/modal/Modal.vue2.js +56 -56
  222. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -1
  223. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  224. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
  225. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
  226. package/dist/v2/features/operation/Operation.vue.js +34 -34
  227. package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
  228. package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
  229. package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
  230. package/dist/v2/features/search/types.d.ts +5 -4
  231. package/dist/v2/features/search/types.d.ts.map +1 -1
  232. package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
  233. package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
  234. package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
  235. package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
  236. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  237. package/dist/v2/helpers/handle-hotkeys.js +0 -2
  238. package/dist/v2/helpers/plugins.d.ts +2 -2
  239. package/dist/v2/helpers/plugins.d.ts.map +1 -1
  240. package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
  241. package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
  242. package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
  243. package/dist/views/Cookies/CookieModal.vue2.js +26 -26
  244. package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
  245. package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
  246. package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
  247. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
  248. package/dist/views/Request/Request.vue2.js +55 -55
  249. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
  250. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
  251. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
  252. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  253. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
  254. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  255. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
  256. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
  257. package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
  258. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
  259. package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
  260. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
  261. package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
  262. package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
  263. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
  264. package/dist/views/Request/RequestSection/index.d.ts +1 -1
  265. package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
  266. package/dist/views/Request/RequestSection/index.js +4 -4
  267. package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
  268. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
  269. package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
  270. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
  271. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
  272. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
  273. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
  274. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
  275. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
  276. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
  277. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
  278. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
  279. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
  280. package/package.json +24 -24
  281. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
  282. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
  283. package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
  284. package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
  285. package/dist/components/ScreenReader.vue.d.ts +0 -20
  286. package/dist/components/ScreenReader.vue.d.ts.map +0 -1
  287. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
  288. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
  289. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
  290. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
  291. package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
  292. package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
@@ -1,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";
3
- import { ScalarIconPlus as Y, ScalarIconDotsThree as Q, ScalarIconGlobe as X } from "@scalar/icons";
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, renderSlot as F, createElementVNode as d, normalizeClass as H, nextTick as L } from "vue";
2
+ import { useModal as U, ScalarSidebarItem as I, ScalarIconButton as J, ScalarButton as $, ScalarModal as Y } from "@scalar/components";
3
+ import { ScalarIconPlus as Q, ScalarIconDotsThree as X, ScalarIconGlobe as Z } from "@scalar/icons";
4
4
  import { getParentEntry as w } from "@scalar/workspace-store/navigation";
5
- import Z from "../../../../assets/rabbit.ascii.js";
6
- import _ from "../../../../assets/rabbitjump.ascii.js";
7
- import $ from "../../../../components/ScalarAsciiArt.vue.js";
8
- import ee from "../../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
9
- import te from "./SidebarItemMenu.vue.js";
10
- import { dragHandleFactory as ae } from "../../../helpers/drag-handle-factory.js";
11
- import oe from "../../../components/sidebar/Sidebar.vue.js";
12
- const ne = { class: "flex" }, se = {
5
+ import _ from "../../../../assets/rabbit.ascii.js";
6
+ import ee from "../../../../assets/rabbitjump.ascii.js";
7
+ import E from "../../../../components/ScalarAsciiArt.vue.js";
8
+ import te from "../../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
9
+ import ae from "./SidebarItemMenu.vue.js";
10
+ import { dragHandleFactory as oe } from "../../../helpers/drag-handle-factory.js";
11
+ import ne from "../../../components/sidebar/Sidebar.vue.js";
12
+ const ie = { class: "flex" }, se = {
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
+ }, re = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, le = { class: "gap-1.5 p-2" }, Se = /* @__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,130 @@ 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(
37
- () => ae({
38
- store: i.store,
39
- sidebarState: i.sidebarState
34
+ emits: /* @__PURE__ */ x(["click:workspace", "selectItem", "select:workspace", "create:workspace"], ["update:isSidebarOpen", "update:sidebarWidth"]),
35
+ setup(o, { emit: O }) {
36
+ const p = O, D = b(() => V(o.activeWorkspace.label)), B = C(o, "isSidebarOpen"), M = C(o, "sidebarWidth"), S = b(() => o.sidebarState.items.value.length <= 1), h = b(
37
+ () => oe({
38
+ store: o.store,
39
+ sidebarState: o.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
+ ), A = (a, e) => h.value.handleDragEnd(a, e), N = (a, e) => h.value.isDroppable(a, e), s = G(null), v = U(), T = b(() => {
42
+ const a = s.value?.item;
43
+ return a?.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 ${a?.type ?? "item"}? This action cannot be undone.`;
44
44
  }), z = () => {
45
- const t = s.value?.item;
46
- if (!t)
45
+ const a = s.value?.item;
46
+ if (!a)
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 = o.sidebarState.getEntryById(a.id), t = w("document", e), n = w("operation", e);
49
+ if (t) {
50
+ if (a.type === "document")
51
+ o.eventBus.emit("document:delete:document", { name: t.name });
52
+ else if (a.type === "tag")
53
+ o.eventBus.emit("tag:delete:tag", {
54
+ documentName: t.name,
55
+ name: a.name
56
56
  });
57
- else if (t.type === "operation") {
58
- if (!o)
57
+ else if (a.type === "operation") {
58
+ if (!n)
59
59
  return;
60
- i.eventBus.emit("operation:delete:operation", {
60
+ o.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 (a.type === "example") {
68
+ if (!n)
69
69
  return;
70
- i.eventBus.emit("operation:delete:example", {
70
+ o.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: a.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 (a, 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 = a.currentTarget;
85
+ s.value = { item: e, el: t, showMenu: !0 }, await L();
86
+ const n = a instanceof MouseEvent ? new MouseEvent(a.type, a) : new KeyboardEvent(a.type, a);
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 = (a) => {
91
+ const e = o.sidebarState.getEntryById(a.id), t = w("document", e), n = w("tag", e);
92
+ o.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 (a, e) => (m(), W("div", ie, [
101
+ l(i(ne), {
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: o.activeWorkspace,
107
+ documents: Object.values(o.store.workspace.documents),
108
+ eventBus: o.eventBus,
109
+ isDroppable: N,
110
+ layout: o.layout,
111
+ sidebarState: o.sidebarState,
112
+ workspaces: o.workspaces,
113
+ "onCreate:workspace": e[5] || (e[5] = (t) => p("create:workspace")),
114
+ onReorder: e[6] || (e[6] = (t, n) => A(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
+ "sidebar-menu-actions": r(() => [
119
+ F(a.$slots, "sidebarMenuActions", {}, void 0, !0)
120
+ ]),
118
121
  workspaceButton: r(() => [
119
- l(n(E), {
122
+ l(i(I), {
120
123
  is: "button",
121
- active: t.isWorkspaceOpen,
122
- icon: n(X),
123
- onClick: e[0] || (e[0] = (a) => c("click:workspace"))
124
+ active: o.isWorkspaceOpen,
125
+ icon: i(Z),
126
+ onClick: e[0] || (e[0] = (t) => p("click:workspace"))
124
127
  }, {
125
128
  default: r(() => [
126
- y(j(N.value), 1)
129
+ y(j(D.value), 1)
127
130
  ]),
128
131
  _: 1
129
132
  }, 8, ["active", "icon"])
130
133
  ]),
131
- decorator: r(({ item: a }) => [
132
- l(n(U), {
134
+ decorator: r(({ item: t }) => [
135
+ l(i(J), {
133
136
  "aria-expanded": "false",
134
137
  "aria-haspopup": "menu",
135
- icon: n(Q),
138
+ icon: i(X),
136
139
  label: "More options",
137
140
  size: "sm",
138
141
  weight: "bold",
139
- onClick: p((o) => u(o, a), ["stop"]),
142
+ onClick: c((n) => u(n, t), ["stop"]),
140
143
  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"])
144
+ k(c((n) => u(n, t), ["stop"]), ["down"]),
145
+ k(c((n) => u(n, t), ["stop"]), ["enter"]),
146
+ k(c((n) => u(n, t), ["stop"]), ["space"]),
147
+ k(c((n) => u(n, t), ["stop"]), ["up"])
145
148
  ]
146
149
  }, null, 8, ["icon", "onClick", "onKeydown"])
147
150
  ]),
148
- empty: r(({ item: a }) => [
149
- l(n(E), {
151
+ empty: r(({ item: t }) => [
152
+ l(i(I), {
150
153
  is: "button",
151
- onClick: (o) => P(a)
154
+ onClick: (n) => P(t)
152
155
  }, {
153
156
  icon: r(() => [
154
- l(n(Y))
157
+ l(i(Q))
155
158
  ]),
156
159
  default: r(() => [...e[11] || (e[11] = [
157
160
  y("Add operation", -1)
@@ -161,22 +164,22 @@ const ne = { class: "flex" }, se = {
161
164
  ]),
162
165
  _: 2
163
166
  }, [
164
- t.layout !== "modal" ? {
167
+ o.layout !== "modal" ? {
165
168
  name: "footer",
166
169
  fn: r(() => [
167
170
  d("div", {
168
- class: F({
171
+ class: H({
169
172
  "empty-sidebar-item border-t": S.value
170
173
  })
171
174
  }, [
172
- S.value ? (m(), I("div", se, [
173
- d("div", ie, [
174
- l($, {
175
- art: n(Z),
175
+ S.value ? (m(), W("div", se, [
176
+ d("div", re, [
177
+ l(E, {
178
+ art: i(_),
176
179
  class: "rabbitsit font-bold"
177
180
  }, null, 8, ["art"]),
178
- l($, {
179
- art: n(_),
181
+ l(E, {
182
+ art: i(ee),
180
183
  class: "rabbitjump absolute top-0 left-0 font-bold"
181
184
  }, null, 8, ["art"])
182
185
  ]),
@@ -185,12 +188,12 @@ const ne = { class: "flex" }, se = {
185
188
  d("p", { class: "mt-2 leading-3" }, " Create request, folder, collection or import from OpenAPI/Postman ")
186
189
  ], -1))
187
190
  ])) : f("", !0),
188
- d("div", re, [
189
- S.value ? (m(), g(n(O), {
191
+ d("div", le, [
192
+ S.value ? (m(), g(i($), {
190
193
  key: 0,
191
194
  class: "w-full",
192
195
  size: "sm",
193
- onClick: e[1] || (e[1] = (a) => t.eventBus.emit("ui:open:command-palette", {
196
+ onClick: e[1] || (e[1] = (t) => o.eventBus.emit("ui:open:command-palette", {
194
197
  action: "import-from-openapi-swagger-postman-curl",
195
198
  payload: void 0
196
199
  }))
@@ -200,12 +203,12 @@ const ne = { class: "flex" }, se = {
200
203
  ])]),
201
204
  _: 1
202
205
  })) : f("", !0),
203
- l(n(O), {
206
+ l(i($), {
204
207
  class: "w-full",
205
208
  hotkey: "K",
206
209
  size: "sm",
207
210
  variant: "outlined",
208
- onClick: e[2] || (e[2] = (a) => t.eventBus.emit("ui:open:command-palette"))
211
+ onClick: e[2] || (e[2] = (t) => o.eventBus.emit("ui:open:command-palette"))
209
212
  }, {
210
213
  default: r(() => [...e[14] || (e[14] = [
211
214
  y(" Add Item ", -1)
@@ -218,26 +221,26 @@ const ne = { class: "flex" }, se = {
218
221
  key: "0"
219
222
  } : void 0
220
223
  ]), 1032, ["isSidebarOpen", "sidebarWidth", "activeWorkspace", "documents", "eventBus", "layout", "sidebarState", "workspaces"]),
221
- s.value?.showMenu ? (m(), g(te, {
224
+ s.value?.showMenu ? (m(), g(ae, {
222
225
  key: 0,
223
- eventBus: t.eventBus,
226
+ eventBus: o.eventBus,
224
227
  item: s.value.item,
225
- sidebarState: t.sidebarState,
228
+ sidebarState: o.sidebarState,
226
229
  target: s.value.el,
227
230
  onCloseMenu: K,
228
- onShowDeleteModal: e[9] || (e[9] = (a) => n(v).show())
231
+ onShowDeleteModal: e[9] || (e[9] = (t) => i(v).show())
229
232
  }, null, 8, ["eventBus", "item", "sidebarState", "target"])) : f("", !0),
230
- s.value ? (m(), g(n(J), {
233
+ s.value ? (m(), g(i(Y), {
231
234
  key: 1,
232
235
  size: "xxs",
233
- state: n(v),
236
+ state: i(v),
234
237
  title: `Delete ${s.value.item.title}`
235
238
  }, {
236
239
  default: r(() => [
237
- l(ee, {
240
+ l(te, {
238
241
  variableName: s.value.item.title,
239
- warningMessage: x.value,
240
- onClose: e[10] || (e[10] = (a) => n(v).hide()),
242
+ warningMessage: T.value,
243
+ onClose: e[10] || (e[10] = (t) => i(v).hide()),
241
244
  onDelete: z
242
245
  }, null, 8, ["variableName", "warningMessage"])
243
246
  ]),
@@ -247,5 +250,5 @@ const ne = { class: "flex" }, se = {
247
250
  }
248
251
  });
249
252
  export {
250
- we as default
253
+ Se as default
251
254
  };
@@ -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
  };