@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,9 +1,9 @@
1
- import { defineComponent as W, useAttrs as j, ref as i, computed as d, toRef as r, watch as H, createElementBlock as u, openBlock as n, Fragment as Q, createBlock as c, createCommentVNode as p, normalizeClass as G, unref as h, createElementVNode as w, toDisplayString as J, mergeProps as X, withKeys as b, withModifiers as $, createTextVNode as V, renderSlot as q } from "vue";
1
+ import { defineComponent as W, useAttrs as j, ref as d, computed as p, toRef as s, watch as H, createElementBlock as i, openBlock as a, Fragment as Q, createBlock as b, createCommentVNode as f, normalizeClass as G, unref as w, createElementVNode as V, toDisplayString as J, mergeProps as X, withKeys as y, withModifiers as q, createTextVNode as x, renderSlot as R } from "vue";
2
2
  import { useCodeMirror as Y, useDropdown as Z, colorPicker as _ } from "@scalar/use-codemirror";
3
3
  import { nanoid as ee } from "nanoid";
4
- import oe from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
5
- import x from "../DataTable/DataTableInputSelect.vue.js";
6
- import { pillPlugin as le, backspaceCommand as te } from "./codeVariableWidget.js";
4
+ import te from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
5
+ import B from "../DataTable/DataTableInputSelect.vue.js";
6
+ import { pillPlugin as oe, backspaceCommand as le } from "./codeVariableWidget.js";
7
7
  import { useLayout as ne } from "../../hooks/useLayout.js";
8
8
  const ae = { class: "whitespace-nowrap" }, re = ["id"], se = {
9
9
  key: 0,
@@ -52,155 +52,155 @@ const ae = { class: "whitespace-nowrap" }, re = ["id"], se = {
52
52
  lineWrapping: { type: Boolean, default: !1 }
53
53
  },
54
54
  emits: ["submit", "update:modelValue", "curl", "blur"],
55
- setup(R, { expose: A, emit: I }) {
56
- const o = R, s = I, B = j(), M = B.id || `id-${ee()}`, k = i(!1), y = i(!1), C = i(""), S = i({ left: 0, top: 0 }), f = i(null), { layout: g } = ne();
57
- function D(e) {
58
- return e === o.modelValue ? null : o.importCurl && e.trim().toLowerCase().startsWith("curl") ? (s("curl", e), a.value?.dispatch({
55
+ setup(l, { expose: A, emit: I }) {
56
+ const e = l, u = I, k = j(), M = k.id || `id-${ee()}`, C = d(!1), g = d(!1), S = d(""), D = d({ left: 0, top: 0 }), m = d(null), { layout: v } = ne();
57
+ function P(t) {
58
+ return t === e.modelValue ? null : e.importCurl && t.trim().toLowerCase().startsWith("curl") ? (u("curl", t), r.value?.dispatch({
59
59
  changes: {
60
60
  from: 0,
61
- to: a.value.state.doc.length,
62
- insert: String(o.modelValue)
61
+ to: r.value.state.doc.length,
62
+ insert: String(e.modelValue)
63
63
  }
64
- }), null) : o.handleFieldChange ? o.handleFieldChange(e) : s("update:modelValue", e);
64
+ }), null) : e.handleFieldChange ? e.handleFieldChange(t) : u("update:modelValue", t);
65
65
  }
66
- function v(e) {
67
- return o.handleFieldSubmit ? o.handleFieldSubmit(e) : s("submit", e);
66
+ function h(t) {
67
+ return e.handleFieldSubmit ? e.handleFieldSubmit(t) : u("submit", t);
68
68
  }
69
- function P(e) {
70
- k.value = !1, o.emitOnBlur && o.modelValue && v(e), s("blur", e);
69
+ function E(t) {
70
+ C.value = !1, e.emitOnBlur && e.modelValue && h(t), u("blur", t);
71
71
  }
72
- const E = [...o.extensions];
73
- o.colorPicker && E.push(_);
74
- const N = d(
75
- () => le({
76
- environment: o.environment,
77
- envVariables: o.envVariables,
78
- isReadOnly: g === "modal"
72
+ const F = [...e.extensions];
73
+ e.colorPicker && F.push(_);
74
+ const N = p(
75
+ () => oe({
76
+ environment: e.environment,
77
+ envVariables: e.envVariables,
78
+ isReadOnly: v === "modal"
79
79
  })
80
- ), O = d(() => [
81
- ...E,
80
+ ), O = p(() => [
81
+ ...F,
82
82
  N.value,
83
- te
84
- ]), F = i(null), { codeMirror: a } = Y({
85
- content: r(
86
- () => o.modelValue !== void 0 ? String(o.modelValue) : ""
83
+ le
84
+ ]), T = d(null), { codeMirror: r } = Y({
85
+ content: s(
86
+ () => e.modelValue !== void 0 ? String(e.modelValue) : ""
87
87
  ),
88
- onChange: (e) => {
89
- D(e), z();
88
+ onChange: (t) => {
89
+ P(t), z();
90
90
  },
91
- onFocus: () => k.value = !0,
92
- onBlur: (e) => P(e),
93
- codeMirrorRef: F,
94
- disableTabIndent: r(() => o.disableTabIndent),
95
- disableEnter: r(() => o.disableEnter),
96
- disableCloseBrackets: r(() => o.disableCloseBrackets),
97
- lineNumbers: r(() => o.lineNumbers),
98
- language: r(() => o.language),
99
- lint: r(() => o.lint),
91
+ onFocus: () => C.value = !0,
92
+ onBlur: (t) => E(t),
93
+ codeMirrorRef: T,
94
+ disableTabIndent: s(() => e.disableTabIndent),
95
+ disableEnter: s(() => e.disableEnter),
96
+ disableCloseBrackets: s(() => e.disableCloseBrackets),
97
+ lineNumbers: s(() => e.lineNumbers),
98
+ language: s(() => e.language),
99
+ lint: s(() => e.lint),
100
100
  extensions: O,
101
- placeholder: r(() => o.placeholder)
101
+ placeholder: s(() => e.placeholder)
102
102
  });
103
- a.value?.focus(), H(a, () => {
104
- a.value && Object.hasOwn(B, "autofocus") && a.value.focus();
103
+ r.value?.focus(), H(r, () => {
104
+ r.value && Object.hasOwn(k, "autofocus") && r.value.focus();
105
105
  });
106
106
  const { handleDropdownSelect: K, updateDropdownVisibility: z } = Z({
107
- codeMirror: a,
108
- query: C,
109
- showDropdown: y,
110
- dropdownPosition: S
111
- }), T = d(
112
- () => o.nullable ? ["true", "false", "null"] : ["true", "false"]
113
- ), m = (e, l) => {
114
- y.value ? e === "down" ? (l.preventDefault(), f.value?.handleArrowKey("down")) : e === "up" ? (l.preventDefault(), f.value?.handleArrowKey("up")) : e === "enter" && (l.preventDefault(), f.value?.handleSelect()) : e === "escape" ? o.disableTabIndent || l.stopPropagation() : e === "enter" && l.target instanceof HTMLDivElement && v(l.target.textContent ?? "");
115
- }, L = d(() => Array.isArray(o.type) ? (
107
+ codeMirror: r,
108
+ query: S,
109
+ showDropdown: g,
110
+ dropdownPosition: D
111
+ }), $ = p(
112
+ () => e.nullable ? ["true", "false", "null"] : ["true", "false"]
113
+ ), c = (t, o) => {
114
+ g.value ? t === "down" ? (o.preventDefault(), m.value?.handleArrowKey("down")) : t === "up" ? (o.preventDefault(), m.value?.handleArrowKey("up")) : t === "enter" && (o.preventDefault(), m.value?.handleSelect()) : t === "escape" ? e.disableTabIndent || o.stopPropagation() : t === "enter" && o.target instanceof HTMLDivElement && h(o.target.textContent ?? "");
115
+ }, L = p(() => Array.isArray(e.type) ? (
116
116
  // Find the first type, that's not 'null'
117
- o.type.find((e) => e !== "null") ?? "string"
117
+ e.type.find((t) => t !== "null") ?? "string"
118
118
  ) : (
119
119
  // If it's not an array, just return the type
120
- o.type
121
- )), U = d(
122
- () => y.value && o.withVariables && g !== "modal" && o.environment
120
+ e.type
121
+ )), U = p(
122
+ () => g.value && e.withVariables && v !== "modal" && e.environment
123
123
  );
124
124
  return A({
125
125
  /** Expose focus method */
126
126
  focus: () => {
127
- a.value?.focus();
127
+ r.value?.focus();
128
128
  },
129
129
  // Expose these methods for testing
130
- handleChange: D,
131
- handleSubmit: v,
132
- handleBlur: P,
133
- booleanOptions: T,
134
- codeMirror: a,
135
- modelValue: o.modelValue
136
- }), (e, l) => (n(), u(Q, null, [
137
- e.disabled ? (n(), u("div", {
130
+ handleChange: P,
131
+ handleSubmit: h,
132
+ handleBlur: E,
133
+ booleanOptions: $,
134
+ codeMirror: r,
135
+ modelValue: e.modelValue
136
+ }), (t, o) => (a(), i(Q, null, [
137
+ l.disabled ? (a(), i("div", {
138
138
  key: 0,
139
- class: G(["text-c-2 flex cursor-default items-center justify-center", h(g) === "modal" ? "font-code pr-2 pl-1 text-base" : "px-2"]),
139
+ class: G(["text-c-2 flex cursor-default items-center justify-center", w(v) === "modal" ? "font-code pr-2 pl-1 text-base" : "px-2"]),
140
140
  "data-testid": "code-input-disabled"
141
141
  }, [
142
- w("span", ae, J(e.modelValue), 1)
143
- ], 2)) : o.enum && o.enum.length ? (n(), c(x, {
142
+ V("span", ae, J(l.modelValue), 1)
143
+ ], 2)) : e.enum && e.enum.length ? (a(), b(B, {
144
144
  key: 1,
145
- default: o.default,
146
- modelValue: e.modelValue,
145
+ default: e.default,
146
+ modelValue: l.modelValue,
147
147
  type: L.value,
148
- value: o.enum,
149
- "onUpdate:modelValue": l[0] || (l[0] = (t) => s("update:modelValue", t))
150
- }, null, 8, ["default", "modelValue", "type", "value"])) : e.type === "boolean" || e.type?.includes("boolean") ? (n(), c(x, {
148
+ value: e.enum,
149
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => u("update:modelValue", n))
150
+ }, null, 8, ["default", "modelValue", "type", "value"])) : l.type === "boolean" || l.type?.includes("boolean") ? (a(), b(B, {
151
151
  key: 2,
152
- default: o.default,
153
- modelValue: e.modelValue,
154
- value: T.value,
155
- "onUpdate:modelValue": l[1] || (l[1] = (t) => s("update:modelValue", t))
156
- }, null, 8, ["default", "modelValue", "value"])) : o.examples && o.examples.length ? (n(), c(x, {
152
+ default: e.default,
153
+ modelValue: l.modelValue,
154
+ value: $.value,
155
+ "onUpdate:modelValue": o[1] || (o[1] = (n) => u("update:modelValue", n))
156
+ }, null, 8, ["default", "modelValue", "value"])) : e.examples && e.examples.length ? (a(), b(B, {
157
157
  key: 3,
158
- default: o.default,
159
- modelValue: o.modelValue,
160
- value: o.examples,
161
- "onUpdate:modelValue": l[2] || (l[2] = (t) => s("update:modelValue", t))
162
- }, null, 8, ["default", "modelValue", "value"])) : (n(), u("div", X({
158
+ default: e.default,
159
+ modelValue: e.modelValue,
160
+ value: e.examples,
161
+ "onUpdate:modelValue": o[2] || (o[2] = (n) => u("update:modelValue", n))
162
+ }, null, 8, ["default", "modelValue", "value"])) : (a(), i("div", X({
163
163
  key: 4,
164
- id: h(M)
165
- }, e.$attrs, {
164
+ id: w(M)
165
+ }, t.$attrs, {
166
166
  ref_key: "codeMirrorRef",
167
- ref: F,
167
+ ref: T,
168
168
  class: ["group/input group-[.alert]:outline-orange group-[.error]:outline-red font-code peer relative w-full overflow-hidden text-xs leading-[1.44] whitespace-nowrap -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline", {
169
- "line-wrapping has-[:focus-visible]:bg-b-1 has-[:focus-visible]:absolute has-[:focus-visible]:z-1": e.lineWrapping,
170
- "flow-code-input--error": e.error
169
+ "line-wrapping has-[:focus-visible]:bg-b-1 has-[:focus-visible]:absolute has-[:focus-visible]:z-1": l.lineWrapping,
170
+ "flow-code-input--error": l.error
171
171
  }],
172
172
  onKeydown: [
173
- l[3] || (l[3] = b($((t) => m("down", t), ["stop"]), ["down"])),
174
- l[4] || (l[4] = b((t) => m("enter", t), ["enter"])),
175
- l[5] || (l[5] = b((t) => m("escape", t), ["escape"])),
176
- l[6] || (l[6] = b($((t) => m("up", t), ["stop"]), ["up"]))
173
+ o[3] || (o[3] = y(q((n) => c("down", n), ["stop"]), ["down"])),
174
+ o[4] || (o[4] = y((n) => c("enter", n), ["enter"])),
175
+ o[5] || (o[5] = y((n) => c("escape", n), ["escape"])),
176
+ o[6] || (o[6] = y(q((n) => c("up", n), ["stop"]), ["up"]))
177
177
  ]
178
178
  }), [
179
- e.disableTabIndent ? p("", !0) : (n(), u("div", se, [...l[7] || (l[7] = [
180
- V(" Press ", -1),
181
- w("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Esc", -1),
182
- V(" then ", -1),
183
- w("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Tab", -1),
184
- V(" to exit ", -1)
179
+ l.disableTabIndent ? f("", !0) : (a(), i("div", se, [...o[7] || (o[7] = [
180
+ x(" Press ", -1),
181
+ V("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Esc", -1),
182
+ x(" then ", -1),
183
+ V("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Tab", -1),
184
+ x(" to exit ", -1)
185
185
  ])]))
186
186
  ], 16, re)),
187
- e.$slots.warning ? (n(), u("div", ue, [
188
- q(e.$slots, "warning", {}, void 0, !0)
189
- ])) : p("", !0),
190
- e.$slots.icon ? (n(), u("div", ie, [
191
- q(e.$slots, "icon", {}, void 0, !0)
192
- ])) : p("", !0),
193
- e.required ? (n(), u("div", de, " Required ")) : p("", !0),
194
- U.value ? (n(), c(oe, {
187
+ t.$slots.warning ? (a(), i("div", ue, [
188
+ R(t.$slots, "warning", {}, void 0, !0)
189
+ ])) : f("", !0),
190
+ t.$slots.icon ? (a(), i("div", ie, [
191
+ R(t.$slots, "icon", {}, void 0, !0)
192
+ ])) : f("", !0),
193
+ l.required ? (a(), i("div", de, " Required ")) : f("", !0),
194
+ U.value ? (a(), b(te, {
195
195
  key: 8,
196
196
  ref_key: "dropdownRef",
197
- ref: f,
198
- dropdownPosition: S.value,
199
- envVariables: e.envVariables,
200
- environment: e.environment,
201
- query: C.value,
202
- onSelect: h(K)
203
- }, null, 8, ["dropdownPosition", "envVariables", "environment", "query", "onSelect"])) : p("", !0)
197
+ ref: m,
198
+ dropdownPosition: D.value,
199
+ envVariables: l.envVariables,
200
+ environment: l.environment,
201
+ query: S.value,
202
+ onSelect: w(K)
203
+ }, null, 8, ["dropdownPosition", "envVariables", "environment", "query", "onSelect"])) : f("", !0)
204
204
  ], 64));
205
205
  }
206
206
  });
@@ -1,36 +1,36 @@
1
- import { defineComponent as i, createElementBlock as n, openBlock as r, withModifiers as l, withKeys as m, createElementVNode as t, normalizeProps as p, guardReactiveProps as f, unref as d, renderSlot as s, createVNode as u, withCtx as b, createTextVNode as x } from "vue";
2
- import { useBindCx as c, ScalarButton as v } from "@scalar/components";
3
- const w = { class: "flex gap-2" }, B = { class: "flex max-h-8 flex-1" }, h = /* @__PURE__ */ i({
1
+ import { defineComponent as n, createElementBlock as r, openBlock as m, withModifiers as d, withKeys as f, createElementVNode as l, normalizeProps as u, guardReactiveProps as p, unref as a, renderSlot as s, createVNode as x, withCtx as b, createTextVNode as c } from "vue";
2
+ import { useBindCx as v, ScalarButton as w } from "@scalar/components";
3
+ const B = { class: "flex gap-2" }, C = { class: "flex max-h-8 flex-1" }, h = /* @__PURE__ */ n({
4
4
  __name: "CommandActionForm",
5
5
  props: {
6
6
  loader: {},
7
7
  disabled: { type: Boolean, default: !1 }
8
8
  },
9
9
  emits: ["submit", "cancel", "back"],
10
- setup(C) {
11
- const { cx: a } = c();
12
- return (e, o) => (r(), n("form", {
10
+ setup(o) {
11
+ const { cx: i } = v();
12
+ return (t, e) => (m(), r("form", {
13
13
  class: "flex w-full flex-col gap-3",
14
- onKeydown: o[0] || (o[0] = m(l(() => {
14
+ onKeydown: e[0] || (e[0] = f(d(() => {
15
15
  }, ["stop"]), ["enter"])),
16
- onSubmit: o[1] || (o[1] = l(($) => !e.disabled && e.$emit("submit"), ["prevent", "stop"]))
16
+ onSubmit: e[1] || (e[1] = d(($) => !o.disabled && t.$emit("submit"), ["prevent", "stop"]))
17
17
  }, [
18
- t("div", p(f(d(a)("relative flex min-h-20 flex-col rounded"))), [
19
- s(e.$slots, "default")
18
+ l("div", u(p(a(i)("relative flex min-h-20 flex-col rounded"))), [
19
+ s(t.$slots, "default")
20
20
  ], 16),
21
- t("div", w, [
22
- t("div", B, [
23
- s(e.$slots, "options")
21
+ l("div", B, [
22
+ l("div", C, [
23
+ s(t.$slots, "options")
24
24
  ]),
25
- u(d(v), {
25
+ x(a(w), {
26
26
  class: "max-h-8 px-3 text-xs",
27
- disabled: e.disabled,
28
- loader: e.loader,
27
+ disabled: o.disabled,
28
+ loader: o.loader,
29
29
  type: "submit"
30
30
  }, {
31
31
  default: b(() => [
32
- s(e.$slots, "submit", {}, () => [
33
- o[2] || (o[2] = x("Continue", -1))
32
+ s(t.$slots, "submit", {}, () => [
33
+ e[2] || (e[2] = c("Continue", -1))
34
34
  ])
35
35
  ]),
36
36
  _: 3
@@ -1,11 +1,11 @@
1
- import { defineComponent as I, ref as D, computed as B, useTemplateRef as O, createElementBlock as V, openBlock as W, Fragment as L, createElementVNode as r, createVNode as o, withCtx as i, toDisplayString as m, unref as c, normalizeClass as M } from "vue";
1
+ import { defineComponent as I, ref as x, computed as B, useTemplateRef as O, createElementBlock as V, openBlock as W, Fragment as L, createElementVNode as r, createVNode as o, withCtx as i, toDisplayString as m, unref as c, normalizeClass as M } from "vue";
2
2
  import { ScalarListbox as P, ScalarButton as j, ScalarIcon as z } from "@scalar/components";
3
3
  import { REGEX as F } from "@scalar/oas-utils/helpers";
4
4
  import { emitCustomEvent as N } from "@scalar/workspace-store/events";
5
5
  import { useRouter as T } from "vue-router";
6
6
  import $ from "./CommandActionForm.vue.js";
7
7
  import A from "../HttpMethod/HttpMethod.vue.js";
8
- import { PathId as p } from "../../routes.js";
8
+ import { PathId as f } from "../../routes.js";
9
9
  import { useActiveEntities as G } from "../../store/active-entities.js";
10
10
  import { useWorkspace as H } from "../../store/store.js";
11
11
  const X = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px] text-sm" }, J = { class: "flex h-full" }, K = { class: "scroll-timeline-x whitespace-nowrap" }, Q = { class: "flex" }, ie = /* @__PURE__ */ I({
@@ -14,35 +14,35 @@ const X = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px]
14
14
  metaData: {}
15
15
  },
16
16
  emits: ["close", "back"],
17
- setup(e, { emit: x }) {
18
- const w = x, b = H(), { activeWorkspaceCollections: f, activeCollection: S, activeWorkspace: v } = G(), { requestMutators: k, serverMutators: q, servers: R } = b, d = D(""), U = T(), n = B(
19
- () => f.value.map((t) => ({
20
- id: t.uid,
21
- label: t.info?.title ?? "Unititled Collection"
17
+ setup(e, { emit: D }) {
18
+ const w = D, b = H(), { activeWorkspaceCollections: p, activeCollection: S, activeWorkspace: v } = G(), { requestMutators: k, serverMutators: q, servers: R } = b, d = x(""), U = T(), n = B(
19
+ () => p.value.map((a) => ({
20
+ id: a.uid,
21
+ label: a.info?.title ?? "Unititled Collection"
22
22
  }))
23
- ), l = D(
23
+ ), l = x(
24
24
  e.metaData.collectionUid ? n.value.find(
25
- (t) => t.id === e.metaData.collectionUid
25
+ (a) => a.id === e.metaData.collectionUid
26
26
  ) : n.value.find(
27
- (t) => t.id === S.value?.uid
27
+ (a) => a.id === S.value?.uid
28
28
  )
29
29
  );
30
- function g({ collectionUid: t }) {
30
+ function g({ collectionUid: a }) {
31
31
  if (!e.metaData.parsedCurl)
32
32
  return;
33
- const a = f.value.find(
34
- (u) => u.uid === t
33
+ const t = p.value.find(
34
+ (u) => u.uid === a
35
35
  );
36
- if (!a)
36
+ if (!t)
37
37
  return;
38
- const s = a?.info?.title === "Drafts";
38
+ const s = t?.info?.title === "Drafts";
39
39
  if (!s && e.metaData.parsedCurl.servers) {
40
40
  const u = Object.values(R).find(
41
41
  (y) => y.url === e.metaData.parsedCurl?.servers?.[0]
42
42
  );
43
43
  u ? d.value = u.uid : (d.value = q.add(
44
44
  { url: e.metaData.parsedCurl.servers[0] ?? "/" },
45
- a.uid
45
+ t.uid
46
46
  ).uid, N(E.value?.$el, "scalar-add-server", {
47
47
  server: { url: e.metaData.parsedCurl.servers[0] ?? "/" },
48
48
  options: {
@@ -59,14 +59,14 @@ const X = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px]
59
59
  selectedServerUid: s ? void 0 : d.value,
60
60
  requestBody: e.metaData.parsedCurl?.requestBody
61
61
  },
62
- a.uid
62
+ t.uid
63
63
  );
64
64
  h && v.value?.uid && U.push({
65
65
  name: "request",
66
66
  params: {
67
- [p.Workspace]: v.value.uid,
68
- [p.Collection]: a.uid,
69
- [p.Request]: h.uid
67
+ [f.Workspace]: v.value.uid,
68
+ [f.Collection]: t.uid,
69
+ [f.Request]: h.uid
70
70
  }
71
71
  }), w("close");
72
72
  }
@@ -75,8 +75,8 @@ const X = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px]
75
75
  collectionUid: l.value?.id ?? ""
76
76
  });
77
77
  }, E = O("wrapper-ref");
78
- return (t, a) => (W(), V(L, null, [
79
- a[1] || (a[1] = r("div", { class: "text-c-2 flex-center py-1.5 text-sm" }, "Import cURL", -1)),
78
+ return (a, t) => (W(), V(L, null, [
79
+ t[1] || (t[1] = r("div", { class: "text-c-2 flex-center py-1.5 text-sm" }, "Import cURL", -1)),
80
80
  o($, {
81
81
  ref: "wrapper-ref",
82
82
  class: "mt-1.5 min-h-fit",
@@ -86,7 +86,7 @@ const X = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px]
86
86
  r("div", Q, [
87
87
  o(c(P), {
88
88
  modelValue: l.value,
89
- "onUpdate:modelValue": a[0] || (a[0] = (s) => l.value = s),
89
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => l.value = s),
90
90
  options: n.value
91
91
  }, {
92
92
  default: i(() => [
@@ -120,10 +120,10 @@ const X = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px]
120
120
  o(A, {
121
121
  isEditable: !1,
122
122
  isSquare: "",
123
- method: t.metaData.parsedCurl?.method || "get"
123
+ method: e.metaData.parsedCurl?.method || "get"
124
124
  }, null, 8, ["method"])
125
125
  ]),
126
- r("span", K, m(t.metaData.parsedCurl?.servers?.[0] || "") + m(t.metaData.parsedCurl?.path || ""), 1)
126
+ r("span", K, m(e.metaData.parsedCurl?.servers?.[0] || "") + m(e.metaData.parsedCurl?.path || ""), 1)
127
127
  ])
128
128
  ]),
129
129
  _: 1
@@ -5,7 +5,7 @@
5
5
  */
6
6
  declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
7
  export default _default;
8
- export declare const PaletteComponents: {
8
+ declare const PaletteComponents: {
9
9
  readonly 'Import from OpenAPI/Swagger/Postman/cURL': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
10
  close: () => any;
11
11
  back: (e: KeyboardEvent) => any;
@@ -206,7 +206,7 @@ export declare const PaletteComponents: {
206
206
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
207
207
  };
208
208
  /** Infer the types from the commands */
209
- export type CommandNames = keyof typeof PaletteComponents;
209
+ type CommandNames = keyof typeof PaletteComponents;
210
210
  export type CommandPaletteEvent = {
211
211
  /** The command name which matches with the command palette */
212
212
  commandName?: CommandNames;
@@ -1 +1 @@
1
- {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAqfA;;;;GAIG;;AACH,wBA8lBI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;mBA7nB9B,CA5TmB;qBA4TnB,CA3Ta;;;;;;;mBA2Tb,CA5TmB;qBA4TnB,CA3Ta;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAi8BH,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
1
+ {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAqfA;;;;GAIG;;AACH,wBA8lBI;AAEJ,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;mBA7nBvB,CA3TI;qBA2TJ,CA3T2B;;;;;;;mBA2T3B,CA3TI;qBA2TJ,CA3T2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAi8BjB,CAAA;AAEV,yCAAyC;AACzC,KAAK,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAElD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
@@ -1,9 +1,7 @@
1
1
  import o from "./TheCommandPalette.vue2.js";
2
- import { PaletteComponents as s } from "./TheCommandPalette.vue2.js";
3
2
  /* empty css */
4
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f2bbd082"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dd90fe74"]]);
6
5
  export {
7
- s as PaletteComponents,
8
- a as default
6
+ r as default
9
7
  };
@@ -301,6 +301,5 @@ const Ie = {
301
301
  }
302
302
  });
303
303
  export {
304
- We as PaletteComponents,
305
304
  Ye as default
306
305
  };
@@ -1,35 +1,35 @@
1
- import { defineComponent as c, computed as p, createElementBlock as i, openBlock as f, normalizeClass as a, createElementVNode as V, createVNode as d, createTextVNode as g, unref as s } from "vue";
1
+ import { defineComponent as r, computed as i, createElementBlock as p, openBlock as f, normalizeClass as d, createElementVNode as V, createVNode as n, createTextVNode as g, unref as s } from "vue";
2
2
  import { ScalarIcon as x, ScalarToggle as b } from "@scalar/components";
3
- const N = /* @__PURE__ */ c({
3
+ const N = /* @__PURE__ */ r({
4
4
  __name: "WatchModeToggle",
5
5
  props: {
6
6
  modelValue: { type: Boolean },
7
7
  disabled: { type: Boolean, default: !1 }
8
8
  },
9
9
  emits: ["update:modelValue"],
10
- setup(n, { emit: m }) {
11
- const r = n, l = m, o = p({
12
- get: () => r.modelValue,
13
- set: (e) => l("update:modelValue", e)
10
+ setup(t, { emit: m }) {
11
+ const u = t, l = m, o = i({
12
+ get: () => u.modelValue,
13
+ set: (a) => l("update:modelValue", a)
14
14
  });
15
- return (e, t) => (f(), i("label", {
16
- class: a(["text-c-2 flex items-center gap-2 rounded p-3 py-1.5 text-sm select-none", e.disabled ? "cursor-default" : "cursor-pointer"]),
15
+ return (a, e) => (f(), p("label", {
16
+ class: d(["text-c-2 flex items-center gap-2 rounded p-3 py-1.5 text-sm select-none", t.disabled ? "cursor-default" : "cursor-pointer"]),
17
17
  for: "watch-toggle"
18
18
  }, [
19
19
  V("span", {
20
- class: a(["text-c-1 flex items-center gap-1 text-xs font-medium", { "text-c-3": !o.value }])
20
+ class: d(["text-c-1 flex items-center gap-1 text-xs font-medium", { "text-c-3": !o.value }])
21
21
  }, [
22
- d(s(x), {
22
+ n(s(x), {
23
23
  icon: "Watch",
24
24
  size: "sm"
25
25
  }),
26
- t[1] || (t[1] = g(" Watch Mode ", -1))
26
+ e[1] || (e[1] = g(" Watch Mode ", -1))
27
27
  ], 2),
28
- d(s(b), {
28
+ n(s(b), {
29
29
  id: "watch-toggle",
30
- disabled: !!e.disabled,
30
+ disabled: !!t.disabled,
31
31
  modelValue: o.value,
32
- "onUpdate:modelValue": t[0] || (t[0] = (u) => l("update:modelValue", u))
32
+ "onUpdate:modelValue": e[0] || (e[0] = (c) => l("update:modelValue", c))
33
33
  }, null, 8, ["disabled", "modelValue"])
34
34
  ], 2));
35
35
  }
@@ -1,38 +1,38 @@
1
- import { defineComponent as r, createElementBlock as o, openBlock as l, normalizeProps as n, guardReactiveProps as i, unref as m, createElementVNode as p, normalizeStyle as c, normalizeClass as u, createCommentVNode as d, renderSlot as t } from "vue";
2
- import { useBindCx as f } from "@scalar/components";
3
- const b = ["role"], y = {
1
+ import { defineComponent as r, createElementBlock as t, openBlock as l, normalizeProps as c, guardReactiveProps as i, unref as m, createElementVNode as u, normalizeStyle as d, normalizeClass as p, createCommentVNode as f, renderSlot as a } from "vue";
2
+ import { useBindCx as b } from "@scalar/components";
3
+ const y = ["role"], v = {
4
4
  key: 0,
5
5
  class: "sr-only"
6
- }, _ = /* @__PURE__ */ r({
6
+ }, h = /* @__PURE__ */ r({
7
7
  __name: "DataTable",
8
8
  props: {
9
9
  columns: {},
10
10
  scroll: { type: Boolean },
11
11
  presentational: { type: Boolean }
12
12
  },
13
- setup(v) {
14
- const { cx: a } = f();
15
- return (e, w) => (l(), o("div", n(i(
16
- m(a)(
13
+ setup(e) {
14
+ const { cx: n } = b();
15
+ return (o, w) => (l(), t("div", c(i(
16
+ m(n)(
17
17
  e.scroll ? "overflow-x-auto custom-scroll" : "overflow-visible",
18
18
  "scalar-data-table"
19
19
  )
20
20
  )), [
21
- p("table", {
22
- class: u(["mb-0 grid min-h-8 auto-rows-auto", { "w-max min-w-full": e.scroll }]),
21
+ u("table", {
22
+ class: p(["mb-0 grid min-h-8 auto-rows-auto", { "w-max min-w-full": e.scroll }]),
23
23
  role: e.presentational ? "presentation" : "table",
24
- style: c({
24
+ style: d({
25
25
  gridTemplateColumns: e.columns.map((s) => s || "1fr").join(" ")
26
26
  })
27
27
  }, [
28
- e.$slots.caption ? (l(), o("caption", y, [
29
- t(e.$slots, "caption")
30
- ])) : d("", !0),
31
- t(e.$slots, "default")
32
- ], 14, b)
28
+ o.$slots.caption ? (l(), t("caption", v, [
29
+ a(o.$slots, "caption")
30
+ ])) : f("", !0),
31
+ a(o.$slots, "default")
32
+ ], 14, y)
33
33
  ], 16));
34
34
  }
35
35
  });
36
36
  export {
37
- _ as default
37
+ h as default
38
38
  };