@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,11 +1,11 @@
1
- import { defineComponent as $, createElementBlock as x, openBlock as a, createVNode as n, withCtx as l, createElementVNode as s, createBlock as u, createCommentVNode as p, unref as r, normalizeClass as c, createTextVNode as i, toDisplayString as g, Fragment as U, renderList as w, normalizeStyle as h } from "vue";
2
- import { cva as M, ScalarButton as m, cx as y, ScalarIcon as k } from "@scalar/components";
1
+ import { defineComponent as $, createElementBlock as p, openBlock as a, createVNode as n, withCtx as l, createElementVNode as s, createBlock as u, createCommentVNode as f, unref as t, normalizeClass as c, createTextVNode as i, toDisplayString as g, Fragment as U, renderList as w, normalizeStyle as h } from "vue";
2
+ import { cva as M, ScalarButton as x, cx as y, ScalarIcon as k } from "@scalar/components";
3
3
  import { themeLabels as P } from "@scalar/themes";
4
4
  import B from "../../../components/ImportCollection/IntegrationLogo.vue.js";
5
5
  import L from "./components/Appearance.vue.js";
6
6
  import b from "./components/Section.vue.js";
7
7
  import { getThemeColors as C } from "./helpers/get-theme-colors.js";
8
- const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }, V = { class: "bg-c-accent text-b-1 flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] border-transparent p-1" }, A = { class: "flex flex-col gap-2" }, E = { class: "grid grid-cols-2 gap-2" }, F = { class: "flex items-center gap-2" }, O = { class: "flex items-center gap-1" }, D = { class: "grid grid-cols-2 gap-2" }, W = { class: "flex items-center gap-2" }, _ = { class: "flex items-center gap-1" }, q = { class: "size-7 rounded-xl" }, v = "https://proxy.scalar.com", I = /* @__PURE__ */ $({
8
+ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }, V = { class: "bg-c-accent text-b-1 flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] border-transparent p-1" }, A = { class: "flex flex-col gap-2" }, E = { class: "grid grid-cols-2 gap-2" }, F = { class: "flex items-center gap-2" }, O = { class: "flex items-center gap-1" }, D = { class: "grid grid-cols-2 gap-2" }, W = { class: "flex items-center gap-2" }, q = { class: "flex items-center gap-1" }, G = { class: "size-7 rounded-xl" }, v = "https://proxy.scalar.com", _ = /* @__PURE__ */ $({
9
9
  __name: "CollectionSettings",
10
10
  props: {
11
11
  activeProxyUrl: {},
@@ -14,7 +14,7 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
14
14
  colorMode: {}
15
15
  },
16
16
  emits: ["update:proxyUrl", "update:themeId", "update:colorMode"],
17
- setup(G, { emit: T }) {
17
+ setup(o, { emit: T }) {
18
18
  const d = T, S = [
19
19
  "default",
20
20
  "alternate",
@@ -22,7 +22,7 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
22
22
  "solarized",
23
23
  "saturn",
24
24
  "kepler"
25
- ], z = ["elysiajs", "fastify"], f = M({
25
+ ], z = ["elysiajs", "fastify"], m = M({
26
26
  base: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",
27
27
  variants: {
28
28
  active: {
@@ -31,7 +31,7 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
31
31
  }
32
32
  }
33
33
  });
34
- return (o, e) => (a(), x("div", N, [
34
+ return (H, e) => (a(), p("div", N, [
35
35
  n(b, null, {
36
36
  title: l(() => [...e[4] || (e[4] = [
37
37
  i(" CORS Proxy ", -1)
@@ -53,15 +53,15 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
53
53
  ])]),
54
54
  default: l(() => [
55
55
  s("div", R, [
56
- n(r(m), {
56
+ n(t(x), {
57
57
  class: c(
58
- r(y)(
59
- r(f)({
58
+ t(y)(
59
+ t(m)({
60
60
  active: o.activeProxyUrl === v
61
61
  })
62
62
  )
63
63
  ),
64
- onClick: e[0] || (e[0] = (t) => d("update:proxyUrl", v))
64
+ onClick: e[0] || (e[0] = (r) => d("update:proxyUrl", v))
65
65
  }, {
66
66
  default: l(() => [
67
67
  s("div", {
@@ -69,44 +69,44 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
69
69
  "bg-c-accent text-b-1 border-transparent": o.activeProxyUrl === v
70
70
  }])
71
71
  }, [
72
- o.activeProxyUrl === v ? (a(), u(r(k), {
72
+ o.activeProxyUrl === v ? (a(), u(t(k), {
73
73
  key: 0,
74
74
  icon: "Checkmark",
75
75
  size: "xs",
76
76
  thickness: "3.5"
77
- })) : p("", !0)
77
+ })) : f("", !0)
78
78
  ], 2),
79
79
  e[6] || (e[6] = i(" Use proxy.scalar.com (default) ", -1))
80
80
  ]),
81
81
  _: 1
82
82
  }, 8, ["class"]),
83
- o.customProxyUrl && o.customProxyUrl !== v ? (a(), u(r(m), {
83
+ o.customProxyUrl && o.customProxyUrl !== v ? (a(), u(t(x), {
84
84
  key: 0,
85
85
  class: c(
86
- r(y)(
87
- r(f)({
86
+ t(y)(
87
+ t(m)({
88
88
  active: o.activeProxyUrl === o.customProxyUrl
89
89
  })
90
90
  )
91
91
  ),
92
- onClick: e[1] || (e[1] = (t) => d("update:proxyUrl", o.customProxyUrl))
92
+ onClick: e[1] || (e[1] = (r) => d("update:proxyUrl", o.customProxyUrl))
93
93
  }, {
94
94
  default: l(() => [
95
95
  s("div", V, [
96
- o.customProxyUrl === o.activeProxyUrl ? (a(), u(r(k), {
96
+ o.customProxyUrl === o.activeProxyUrl ? (a(), u(t(k), {
97
97
  key: 0,
98
98
  icon: "Checkmark",
99
99
  size: "xs",
100
100
  thickness: "3.5"
101
- })) : p("", !0)
101
+ })) : f("", !0)
102
102
  ]),
103
103
  i(" Use custom proxy (" + g(o.customProxyUrl) + ") ", 1)
104
104
  ]),
105
105
  _: 1
106
- }, 8, ["class"])) : p("", !0),
107
- n(r(m), {
108
- class: c(r(y)(r(f)({ active: !o.activeProxyUrl }))),
109
- onClick: e[2] || (e[2] = (t) => d("update:proxyUrl", null))
106
+ }, 8, ["class"])) : f("", !0),
107
+ n(t(x), {
108
+ class: c(t(y)(t(m)({ active: !o.activeProxyUrl }))),
109
+ onClick: e[2] || (e[2] = (r) => d("update:proxyUrl", null))
110
110
  }, {
111
111
  default: l(() => [
112
112
  s("div", {
@@ -115,7 +115,7 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
115
115
  !o.activeProxyUrl && "bg-c-accent text-b-1 border-transparent"
116
116
  ])
117
117
  }, [
118
- o.activeProxyUrl ? p("", !0) : (a(), u(r(k), {
118
+ o.activeProxyUrl ? f("", !0) : (a(), u(t(k), {
119
119
  key: 0,
120
120
  icon: "Checkmark",
121
121
  size: "xs",
@@ -140,50 +140,50 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
140
140
  default: l(() => [
141
141
  s("div", A, [
142
142
  s("div", E, [
143
- (a(), x(U, null, w(S, (t) => n(r(m), {
144
- key: t,
143
+ (a(), p(U, null, w(S, (r) => n(t(x), {
144
+ key: r,
145
145
  class: c(
146
- r(y)(
147
- r(f)({
148
- active: o.activeThemeId === t
146
+ t(y)(
147
+ t(m)({
148
+ active: o.activeThemeId === r
149
149
  })
150
150
  )
151
151
  ),
152
- onClick: (j) => d("update:themeId", t)
152
+ onClick: (j) => d("update:themeId", r)
153
153
  }, {
154
154
  default: l(() => [
155
155
  s("div", F, [
156
156
  s("div", {
157
157
  class: c(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
158
- "bg-c-accent text-b-1 border-transparent": o.activeThemeId === t
158
+ "bg-c-accent text-b-1 border-transparent": o.activeThemeId === r
159
159
  }])
160
160
  }, [
161
- o.activeThemeId === t ? (a(), u(r(k), {
161
+ o.activeThemeId === r ? (a(), u(t(k), {
162
162
  key: 0,
163
163
  icon: "Checkmark",
164
164
  size: "xs",
165
165
  thickness: "3.5"
166
- })) : p("", !0)
166
+ })) : f("", !0)
167
167
  ], 2),
168
- i(" " + g(r(P)[t]), 1)
168
+ i(" " + g(t(P)[r]), 1)
169
169
  ]),
170
170
  s("div", O, [
171
171
  s("span", {
172
172
  class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
173
173
  style: h({
174
- backgroundColor: r(C)(t).light
174
+ backgroundColor: t(C)(r).light
175
175
  })
176
176
  }, null, 4),
177
177
  s("span", {
178
178
  class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
179
179
  style: h({
180
- backgroundColor: r(C)(t).dark
180
+ backgroundColor: t(C)(r).dark
181
181
  })
182
182
  }, null, 4),
183
183
  s("span", {
184
184
  class: "border-c-3 inline-block h-5 w-5 rounded-full",
185
185
  style: h({
186
- backgroundColor: r(C)(t).accent
186
+ backgroundColor: t(C)(r).accent
187
187
  })
188
188
  }, null, 4)
189
189
  ])
@@ -204,36 +204,36 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
204
204
  ])]),
205
205
  default: l(() => [
206
206
  s("div", D, [
207
- (a(), x(U, null, w(z, (t) => n(r(m), {
208
- key: t,
207
+ (a(), p(U, null, w(z, (r) => n(t(x), {
208
+ key: r,
209
209
  class: c(
210
- r(y)(
211
- r(f)({
212
- active: o.activeThemeId === t
210
+ t(y)(
211
+ t(m)({
212
+ active: o.activeThemeId === r
213
213
  })
214
214
  )
215
215
  ),
216
- onClick: (j) => d("update:themeId", t)
216
+ onClick: (j) => d("update:themeId", r)
217
217
  }, {
218
218
  default: l(() => [
219
219
  s("div", W, [
220
220
  s("div", {
221
221
  class: c(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
222
- "bg-c-accent text-b-1 border-transparent": o.activeThemeId === t
222
+ "bg-c-accent text-b-1 border-transparent": o.activeThemeId === r
223
223
  }])
224
224
  }, [
225
- o.activeThemeId === t ? (a(), u(r(k), {
225
+ o.activeThemeId === r ? (a(), u(t(k), {
226
226
  key: 0,
227
227
  icon: "Checkmark",
228
228
  size: "xs",
229
229
  thickness: "3.5"
230
- })) : p("", !0)
230
+ })) : f("", !0)
231
231
  ], 2),
232
- i(" " + g(r(P)[t]), 1)
232
+ i(" " + g(t(P)[r]), 1)
233
233
  ]),
234
- s("div", _, [
235
- s("div", q, [
236
- n(B, { integration: t }, null, 8, ["integration"])
234
+ s("div", q, [
235
+ s("div", G, [
236
+ n(B, { integration: r }, null, 8, ["integration"])
237
237
  ])
238
238
  ])
239
239
  ]),
@@ -253,7 +253,7 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
253
253
  default: l(() => [
254
254
  n(L, {
255
255
  colorMode: o.colorMode,
256
- "onUpdate:colorMode": e[3] || (e[3] = (t) => d("update:colorMode", t))
256
+ "onUpdate:colorMode": e[3] || (e[3] = (r) => d("update:colorMode", r))
257
257
  }, null, 8, ["colorMode"])
258
258
  ]),
259
259
  _: 1
@@ -262,5 +262,5 @@ const N = { class: "flex flex-col gap-4" }, R = { class: "flex flex-col gap-2" }
262
262
  }
263
263
  });
264
264
  export {
265
- I as default
265
+ _ as default
266
266
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as v, createElementBlock as d, openBlock as a, Fragment as i, createElementVNode as e, createVNode as n, unref as o, createTextVNode as u, toDisplayString as w, withCtx as m } from "vue";
2
- import { useModal as x, ScalarToggle as D, ScalarIcon as f, ScalarButton as y, ScalarModal as k } from "@scalar/components";
3
- import M from "../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
4
- const U = { class: "flex flex-col gap-12" }, C = { class: "flex flex-col gap-2" }, N = { class: "bg-b-2 rounded-lg border text-sm" }, S = { class: "bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3" }, B = { class: "text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap" }, V = { class: "flex items-center" }, T = ["href"], z = { class: "flex flex-col gap-4" }, A = { class: "flex items-center justify-between rounded-lg border p-3 text-sm" }, O = /* @__PURE__ */ v({
1
+ import { defineComponent as p, createElementBlock as d, openBlock as a, Fragment as i, createElementVNode as e, createVNode as n, unref as o, createTextVNode as u, toDisplayString as h, withCtx as m } from "vue";
2
+ import { useModal as v, ScalarToggle as w, ScalarIcon as f, ScalarButton as D, ScalarModal as y } from "@scalar/components";
3
+ import k from "../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
4
+ const M = { class: "flex flex-col gap-12" }, U = { class: "flex flex-col gap-2" }, C = { class: "bg-b-2 rounded-lg border text-sm" }, N = { class: "bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3" }, S = { class: "text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap" }, B = { class: "flex items-center" }, V = ["href"], T = { class: "flex flex-col gap-4" }, z = { class: "flex items-center justify-between rounded-lg border p-3 text-sm" }, O = /* @__PURE__ */ p({
5
5
  __name: "DocumentSettings",
6
6
  props: {
7
7
  documentUrl: {},
@@ -10,33 +10,33 @@ const U = { class: "flex flex-col gap-12" }, C = { class: "flex flex-col gap-2"
10
10
  isDraftDocument: { type: Boolean, default: !1 }
11
11
  },
12
12
  emits: ["delete:document", "update:watchMode"],
13
- setup(p, { emit: g }) {
14
- const r = g, s = x(), b = () => {
15
- p.isDraftDocument || s.show();
16
- }, h = () => {
13
+ setup(l, { emit: x }) {
14
+ const r = x, s = v(), g = () => {
15
+ l.isDraftDocument || s.show();
16
+ }, b = () => {
17
17
  r("delete:document"), s.hide();
18
18
  };
19
- return (l, t) => (a(), d(i, null, [
20
- e("div", U, [
21
- e("div", C, [
19
+ return (A, t) => (a(), d(i, null, [
20
+ e("div", M, [
21
+ e("div", U, [
22
22
  t[5] || (t[5] = e("div", { class: "flex h-8 items-center" }, [
23
23
  e("h3", { class: "font-bold" }, "Features")
24
24
  ], -1)),
25
- e("div", N, [
26
- e("div", S, [
25
+ e("div", C, [
26
+ e("div", N, [
27
27
  t[2] || (t[2] = e("div", null, [
28
28
  e("h4", null, "Watch Mode"),
29
29
  e("p", { class: "text-c-2 mt-1" }, " When enabled, the OpenAPI document will be polled for changes. The collection will be updated automatically. ")
30
30
  ], -1)),
31
- n(o(D), {
31
+ n(o(w), {
32
32
  class: "w-4",
33
33
  disabled: !l.documentUrl,
34
34
  modelValue: l.watchMode ?? !1,
35
35
  "onUpdate:modelValue": t[0] || (t[0] = (c) => r("update:watchMode", c))
36
36
  }, null, 8, ["disabled", "modelValue"])
37
37
  ]),
38
- e("div", B, [
39
- e("div", V, [
38
+ e("div", S, [
39
+ e("div", B, [
40
40
  l.documentUrl ? (a(), d(i, { key: 0 }, [
41
41
  t[3] || (t[3] = e("span", { class: "bg-b-2 sticky left-0 pr-2 pl-3" }, "Source", -1)),
42
42
  e("a", {
@@ -44,12 +44,12 @@ const U = { class: "flex flex-col gap-12" }, C = { class: "flex flex-col gap-2"
44
44
  href: l.documentUrl,
45
45
  target: "_blank"
46
46
  }, [
47
- u(w(l.documentUrl) + " ", 1),
47
+ u(h(l.documentUrl) + " ", 1),
48
48
  n(o(f), {
49
49
  class: "ml-1 hidden w-2.5 group-hover:inline",
50
50
  icon: "ExternalLink"
51
51
  })
52
- ], 8, T)
52
+ ], 8, V)
53
53
  ], 64)) : (a(), d(i, { key: 1 }, [
54
54
  n(o(f), {
55
55
  class: "text-c-2 mr-2 ml-3 w-4",
@@ -62,18 +62,18 @@ const U = { class: "flex flex-col gap-12" }, C = { class: "flex flex-col gap-2"
62
62
  ])
63
63
  ])
64
64
  ]),
65
- e("div", z, [
65
+ e("div", T, [
66
66
  t[8] || (t[8] = e("h3", { class: "font-bold" }, "Danger Zone", -1)),
67
- e("div", A, [
67
+ e("div", z, [
68
68
  t[7] || (t[7] = e("div", null, [
69
69
  e("h4", null, "Delete Collection"),
70
70
  e("p", { class: "text-c-2 mt-1" }, " Be careful, my friend. Once deleted, there is no way to recover the collection. ")
71
71
  ], -1)),
72
- n(o(y), {
72
+ n(o(D), {
73
73
  disabled: l.isDraftDocument,
74
74
  size: "sm",
75
75
  variant: "danger",
76
- onClick: b
76
+ onClick: g
77
77
  }, {
78
78
  default: m(() => [...t[6] || (t[6] = [
79
79
  u(" Delete Collection ", -1)
@@ -83,17 +83,17 @@ const U = { class: "flex flex-col gap-12" }, C = { class: "flex flex-col gap-2"
83
83
  ])
84
84
  ])
85
85
  ]),
86
- n(o(k), {
86
+ n(o(y), {
87
87
  size: "xxs",
88
88
  state: o(s),
89
89
  title: `Delete ${l.title}`
90
90
  }, {
91
91
  default: m(() => [
92
- n(M, {
92
+ n(k, {
93
93
  variableName: l.title ?? "",
94
94
  warningMessage: "This action cannot be undone.",
95
95
  onClose: t[1] || (t[1] = (c) => o(s).hide()),
96
- onDelete: h
96
+ onDelete: b
97
97
  }, null, 8, ["variableName"])
98
98
  ]),
99
99
  _: 1
@@ -1,13 +1,13 @@
1
- import { defineComponent as M, createElementBlock as v, openBlock as s, createVNode as n, unref as t, normalizeClass as r, withCtx as d, createElementVNode as c, createTextVNode as i, createBlock as u, createCommentVNode as p } from "vue";
2
- import { cva as g, ScalarButton as m, cx as f, ScalarIcon as k } from "@scalar/components";
3
- const x = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ M({
1
+ import { defineComponent as M, createElementBlock as v, openBlock as l, createVNode as c, unref as t, normalizeClass as r, withCtx as n, createElementVNode as d, createTextVNode as i, createBlock as u, createCommentVNode as m } from "vue";
2
+ import { cva as g, ScalarButton as f, cx as k, ScalarIcon as b } from "@scalar/components";
3
+ const p = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ M({
4
4
  __name: "Appearance",
5
5
  props: {
6
6
  colorMode: {}
7
7
  },
8
8
  emits: ["update:colorMode"],
9
- setup(C, { emit: y }) {
10
- const l = y, a = g({
9
+ setup(o, { emit: y }) {
10
+ const s = y, a = g({
11
11
  base: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",
12
12
  variants: {
13
13
  active: {
@@ -16,65 +16,65 @@ const x = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ M({
16
16
  }
17
17
  }
18
18
  });
19
- return (o, e) => (s(), v("div", x, [
20
- n(t(m), {
21
- class: r(t(f)(t(a)({ active: o.colorMode === "system" }))),
22
- onClick: e[0] || (e[0] = (b) => l("update:colorMode", "system"))
19
+ return (C, e) => (l(), v("div", p, [
20
+ c(t(f), {
21
+ class: r(t(k)(t(a)({ active: o.colorMode === "system" }))),
22
+ onClick: e[0] || (e[0] = (x) => s("update:colorMode", "system"))
23
23
  }, {
24
- default: d(() => [
25
- c("div", {
24
+ default: n(() => [
25
+ d("div", {
26
26
  class: r(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
27
27
  "bg-c-accent text-b-1 border-transparent": o.colorMode === "system"
28
28
  }])
29
29
  }, [
30
- o.colorMode === "system" ? (s(), u(t(k), {
30
+ o.colorMode === "system" ? (l(), u(t(b), {
31
31
  key: 0,
32
32
  icon: "Checkmark",
33
33
  size: "xs",
34
34
  thickness: "3.5"
35
- })) : p("", !0)
35
+ })) : m("", !0)
36
36
  ], 2),
37
37
  e[3] || (e[3] = i(" System Preference (default) ", -1))
38
38
  ]),
39
39
  _: 1
40
40
  }, 8, ["class"]),
41
- n(t(m), {
42
- class: r(t(f)(t(a)({ active: o.colorMode === "light" }))),
43
- onClick: e[1] || (e[1] = (b) => l("update:colorMode", "light"))
41
+ c(t(f), {
42
+ class: r(t(k)(t(a)({ active: o.colorMode === "light" }))),
43
+ onClick: e[1] || (e[1] = (x) => s("update:colorMode", "light"))
44
44
  }, {
45
- default: d(() => [
46
- c("div", {
45
+ default: n(() => [
46
+ d("div", {
47
47
  class: r(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
48
48
  "bg-c-accent text-b-1 border-transparent": o.colorMode === "light"
49
49
  }])
50
50
  }, [
51
- o.colorMode === "light" ? (s(), u(t(k), {
51
+ o.colorMode === "light" ? (l(), u(t(b), {
52
52
  key: 0,
53
53
  icon: "Checkmark",
54
54
  size: "xs",
55
55
  thickness: "3.5"
56
- })) : p("", !0)
56
+ })) : m("", !0)
57
57
  ], 2),
58
58
  e[4] || (e[4] = i(" Light Mode Always ", -1))
59
59
  ]),
60
60
  _: 1
61
61
  }, 8, ["class"]),
62
- n(t(m), {
63
- class: r(t(f)(t(a)({ active: o.colorMode === "dark" }))),
64
- onClick: e[2] || (e[2] = (b) => l("update:colorMode", "dark"))
62
+ c(t(f), {
63
+ class: r(t(k)(t(a)({ active: o.colorMode === "dark" }))),
64
+ onClick: e[2] || (e[2] = (x) => s("update:colorMode", "dark"))
65
65
  }, {
66
- default: d(() => [
67
- c("div", {
66
+ default: n(() => [
67
+ d("div", {
68
68
  class: r(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
69
69
  "bg-c-accent text-b-1 border-transparent": o.colorMode === "dark"
70
70
  }])
71
71
  }, [
72
- o.colorMode === "dark" ? (s(), u(t(k), {
72
+ o.colorMode === "dark" ? (l(), u(t(b), {
73
73
  key: 0,
74
74
  icon: "Checkmark",
75
75
  size: "xs",
76
76
  thickness: "3.5"
77
- })) : p("", !0)
77
+ })) : m("", !0)
78
78
  ], 2),
79
79
  e[5] || (e[5] = i(" Dark Mode Always ", -1))
80
80
  ]),
@@ -1,15 +1,5 @@
1
- import type { ApiReferenceEvents, WorkspaceEventBus } from '@scalar/workspace-store/events';
1
+ import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
2
2
  import type { ClientLayout } from '../../v2/types/layout';
3
- type HotKeyModifiers = ('altKey' | 'ctrlKey' | 'shiftKey' | 'metaKey' | 'default')[];
4
- /** Hotkey configuration */
5
- export type HotKeyConfig = Record<string | number, {
6
- event: keyof ApiReferenceEvents;
7
- modifiers: HotKeyModifiers;
8
- }>;
9
- /** Default hotkeys available in most contexts */
10
- export declare const DEFAULT_HOTKEYS: HotKeyConfig;
11
- /** Hotkey map by layout, we can allow the user to override this later */
12
- export declare const HOTKEYS: Record<ClientLayout, HotKeyConfig>;
13
3
  /**
14
4
  * Handles global keyboard shortcuts.
15
5
  * Checks modifier keys and input context before emitting events.
@@ -19,5 +9,4 @@ export declare const HOTKEYS: Record<ClientLayout, HotKeyConfig>;
19
9
  * @param layout - client layout
20
10
  */
21
11
  export declare const handleHotkeys: (event: KeyboardEvent, eventBus: WorkspaceEventBus, layout: ClientLayout) => void;
22
- export {};
23
12
  //# sourceMappingURL=handle-hotkeys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handle-hotkeys.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/handle-hotkeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,KAAK,eAAe,GAAG,CAAC,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC,EAAE,CAAA;AAEpF,2BAA2B;AAC3B,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;IAAC,SAAS,EAAE,eAAe,CAAA;CAAE,CAAC,CAAA;AAEnH,iDAAiD;AACjD,eAAO,MAAM,eAAe,EAAE,YAK7B,CAAA;AAED,yEAAyE;AACzE,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,YAAY,EAAE,YAAY,CA2BtD,CAAA;AAkCD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,aAAa,EAAE,UAAU,iBAAiB,EAAE,QAAQ,YAAY,KAAG,IA6BvG,CAAA"}
1
+ {"version":3,"file":"handle-hotkeys.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/handle-hotkeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AA6ErD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,aAAa,EAAE,UAAU,iBAAiB,EAAE,QAAQ,YAAY,KAAG,IA6BvG,CAAA"}
@@ -50,7 +50,5 @@ const r = {
50
50
  l(t, i) || a.emit(s.event, o, { skipUnpackProxy: !0 });
51
51
  };
52
52
  export {
53
- r as DEFAULT_HOTKEYS,
54
- n as HOTKEYS,
55
53
  m as handleHotkeys
56
54
  };
@@ -1,7 +1,7 @@
1
1
  import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/operation';
2
2
  import type { Component } from 'vue';
3
3
  /** A type representing the hooks that a client plugin can define */
4
- export type ClientPluginHooks = {
4
+ type ClientPluginHooks = {
5
5
  beforeRequest: (payload: {
6
6
  request: Request;
7
7
  }) => {
@@ -16,7 +16,7 @@ export type ClientPluginHooks = {
16
16
  }) => void | Promise<void>;
17
17
  };
18
18
  /** A type representing the components that a client plugin can define */
19
- export type ClientPluginComponents = {
19
+ type ClientPluginComponents = {
20
20
  request: Component;
21
21
  response: Component;
22
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAC5F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,oEAAoE;AACpE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,aAAa,EAAE,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;IACtG,gBAAgB,EAAE,CAAC,OAAO,EAAE;QAC1B,QAAQ,EAAE,QAAQ,CAAA;QAClB,OAAO,EAAE,OAAO,CAAA;QAChB,SAAS,EAAE,eAAe,CAAA;KAC3B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3B,CAAA;AAED,yEAAyE;AACzE,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,SAAS,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAA;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAA;CAC7C,CAAA;AAED;;;;GAIG;AACH,KAAK,cAAc,GAAG;KACnB,CAAC,IAAI,MAAM,iBAAiB,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACpE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAU,CAAC,SAAS,MAAM,cAAc,EAC9D,SAAS,cAAc,CAAC,CAAC,CAAC,EAC1B,UAAU,CAAC,EACX,SAAS,YAAY,EAAE,KACtB,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAY3B,CAAA"}
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAC5F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,oEAAoE;AACpE,KAAK,iBAAiB,GAAG;IACvB,aAAa,EAAE,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;IACtG,gBAAgB,EAAE,CAAC,OAAO,EAAE;QAC1B,QAAQ,EAAE,QAAQ,CAAA;QAClB,OAAO,EAAE,OAAO,CAAA;QAChB,SAAS,EAAE,eAAe,CAAA;KAC3B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3B,CAAA;AAED,yEAAyE;AACzE,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,SAAS,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAA;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAA;CAC7C,CAAA;AAED;;;;GAIG;AACH,KAAK,cAAc,GAAG;KACnB,CAAC,IAAI,MAAM,iBAAiB,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACpE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAU,CAAC,SAAS,MAAM,cAAc,EAC9D,SAAS,cAAc,CAAC,CAAC,CAAC,EAC1B,UAAU,CAAC,EACX,SAAS,YAAY,EAAE,KACtB,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAY3B,CAAA"}
@@ -1,6 +1,6 @@
1
- import { defineComponent as x, computed as v, createElementBlock as s, openBlock as o, createVNode as m, createElementVNode as i, normalizeClass as a, createCommentVNode as h, unref as t, toDisplayString as d, Fragment as y, renderList as w, createBlock as b, withCtx as k } from "vue";
2
- import { LibraryIcon as _ } from "@scalar/icons/library";
3
- import { useRouter as g, RouterLink as C } from "vue-router";
1
+ import { defineComponent as x, computed as v, createElementBlock as a, openBlock as o, createVNode as m, createElementVNode as i, normalizeClass as s, createCommentVNode as h, unref as t, toDisplayString as d, Fragment as y, renderList as w, createBlock as b, withCtx as k } from "vue";
2
+ import { LibraryIcon as g } from "@scalar/icons/library";
3
+ import { useRouter as C, RouterLink as _ } from "vue-router";
4
4
  import { PathId as n } from "../../routes.js";
5
5
  import N from "./CollectionInfoForm.vue.js";
6
6
  import { useActiveEntities as S } from "../../store/active-entities.js";
@@ -12,8 +12,8 @@ const B = { class: "bg-b-1 sticky -top-[104px] z-10 mx-auto w-full" }, E = {
12
12
  props: {
13
13
  isSticky: { type: Boolean }
14
14
  },
15
- setup(I) {
16
- const { currentRoute: c } = g(), { activeCollection: e } = S(), p = v(() => [
15
+ setup(r) {
16
+ const { currentRoute: c } = C(), { activeCollection: e } = S(), u = v(() => [
17
17
  {
18
18
  displayName: "Overview",
19
19
  // icon: 'Collection',
@@ -89,16 +89,16 @@ const B = { class: "bg-b-1 sticky -top-[104px] z-10 mx-auto w-full" }, E = {
89
89
  }
90
90
  }
91
91
  ]);
92
- return (r, L) => (o(), s("div", B, [
92
+ return (I, L) => (o(), a("div", B, [
93
93
  m(N),
94
94
  i("div", {
95
- class: a([
95
+ class: s([
96
96
  "items-center text-sm font-medium",
97
97
  r.isSticky ? "h-fit border-b md:grid md:grid-cols-[1fr_720px_1fr] md:px-4" : "flex md:mx-auto md:max-w-[720px]"
98
98
  ])
99
99
  }, [
100
- r.isSticky ? (o(), s("div", E, [
101
- m(t(_), {
100
+ r.isSticky ? (o(), a("div", E, [
101
+ m(t(g), {
102
102
  class: "text-c-2 hidden size-3.5 md:block",
103
103
  src: t(e)?.["x-scalar-icon"] || "interface-content-folder",
104
104
  "stroke-width": "2"
@@ -106,20 +106,20 @@ const B = { class: "bg-b-1 sticky -top-[104px] z-10 mx-auto w-full" }, E = {
106
106
  i("span", z, d(t(e)?.info?.title), 1)
107
107
  ])) : h("", !0),
108
108
  i("div", {
109
- class: a(["flex w-full max-w-[720px] gap-2 pl-1.5 md:ml-1.5 md:pl-0", !r.isSticky && "border-b"])
109
+ class: s(["flex w-full max-w-[720px] gap-2 pl-1.5 md:ml-1.5 md:pl-0", !r.isSticky && "border-b"])
110
110
  }, [
111
- (o(!0), s(y, null, w(p.value, ({ to: l, displayName: u }, f) => (o(), b(t(C), {
111
+ (o(!0), a(y, null, w(u.value, ({ to: l, displayName: p }, f) => (o(), b(t(_), {
112
112
  key: f,
113
113
  class: "-ml-2 flex h-10 cursor-pointer items-center px-2 text-center text-sm font-medium whitespace-nowrap no-underline -outline-offset-1 has-[:focus-visible]:outline",
114
114
  to: l
115
115
  }, {
116
116
  default: k(() => [
117
117
  i("span", {
118
- class: a([
118
+ class: s([
119
119
  "flex-center h-full w-full border-b",
120
120
  typeof l.name == "string" && typeof t(c).name == "string" && t(c).name?.startsWith(l.name) ? "text-c-1 border-c-1" : "text-c-2 hover:text-c-1 border-transparent"
121
121
  ])
122
- }, d(u), 3)
122
+ }, d(p), 3)
123
123
  ]),
124
124
  _: 2
125
125
  }, 1032, ["to"]))), 128))