@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,15 +1,15 @@
1
- import { defineComponent as Q, useAttrs as G, ref as u, computed as d, toRef as r, watch as X, createElementBlock as i, openBlock as a, Fragment as Y, createBlock as y, createCommentVNode as f, normalizeClass as Z, createElementVNode as V, toDisplayString as _, mergeProps as ee, unref as O, withKeys as b, withModifiers as $, createTextVNode as B, renderSlot as I } from "vue";
1
+ import { defineComponent as Q, useAttrs as G, ref as d, computed as s, toRef as r, watch as X, createElementBlock as i, openBlock as o, Fragment as Y, createBlock as y, createCommentVNode as c, normalizeClass as Z, createElementVNode as V, toDisplayString as _, mergeProps as ee, unref as O, withKeys as b, withModifiers as $, createTextVNode as p, renderSlot as I } from "vue";
2
2
  import { isDefined as te } from "@scalar/helpers/array/is-defined";
3
- import { useCodeMirror as ne, useDropdown as le, colorPicker as oe } from "@scalar/use-codemirror";
4
- import { nanoid as ae } from "nanoid";
5
- import k from "../data-table/DataTableInputSelect.vue.js";
3
+ import { useCodeMirror as ne, useDropdown as le, colorPicker as ae } from "@scalar/use-codemirror";
4
+ import { nanoid as oe } from "nanoid";
5
+ import B from "../data-table/DataTableInputSelect.vue.js";
6
6
  import re from "../../features/environments/components/EnvironmentVariablesDropdown.vue.js";
7
- import { pillPlugin as ie, backspaceCommand as se } from "./code-variable-widget.js";
8
- const ue = { class: "whitespace-nowrap" }, de = ["id"], fe = {
7
+ import { pillPlugin as ie, backspaceCommand as ue } from "./code-variable-widget.js";
8
+ const de = { class: "whitespace-nowrap" }, se = ["id"], ce = {
9
9
  key: 0,
10
10
  class: "z-context text-c-2 absolute right-1.5 bottom-1 hidden font-sans group-has-[:focus-visible]/input:block",
11
11
  role: "alert"
12
- }, ce = {
12
+ }, fe = {
13
13
  key: 5,
14
14
  class: "centered-y text-orange absolute right-7 text-xs"
15
15
  }, me = {
@@ -20,7 +20,7 @@ const ue = { class: "whitespace-nowrap" }, de = ["id"], fe = {
20
20
  class: "required centered-y text-xxs text-c-3 group-[.error]:text-red bg-b-1 pointer-events-none absolute right-0 mr-0.5 pt-px pr-2 opacity-100 shadow-[-8px_0_4px_var(--scalar-background-1)] transition-opacity duration-150 group-[.alert]:bg-transparent group-[.alert]:shadow-none group-[.error]:bg-transparent group-[.error]:shadow-none peer-has-[.cm-focused]:opacity-0"
21
21
  }, be = {
22
22
  inheritAttrs: !1
23
- }, xe = /* @__PURE__ */ Q({
23
+ }, ke = /* @__PURE__ */ Q({
24
24
  ...be,
25
25
  __name: "CodeInput",
26
26
  props: {
@@ -53,83 +53,83 @@ const ue = { class: "whitespace-nowrap" }, de = ["id"], fe = {
53
53
  handleFieldSubmit: { type: Function }
54
54
  },
55
55
  emits: ["update:modelValue", "submit", "blur", "curl", "redirectToEnvironment"],
56
- setup(t, { expose: M, emit: N }) {
57
- const s = N, x = G(), R = x.id || `id-${ae()}`, h = u(!1), q = d(() => t.enum?.length ? !1 : t.type === "boolean" || Array.isArray(t.type) && t.type.includes("boolean")), C = d(() => t.nullable ? ["true", "false", "null"] : ["true", "false"]), z = d(() => Array.isArray(t.type) ? t.type.find((e) => e !== "null") ?? "string" : t.type), E = (e) => {
58
- if (!t.alwaysEmitChange && e === c(t.modelValue))
56
+ setup(e, { expose: M, emit: N }) {
57
+ const u = N, k = G(), R = k.id || `id-${oe()}`, h = d(!1), q = s(() => e.enum?.length ? !1 : e.type === "boolean" || Array.isArray(e.type) && e.type.includes("boolean")), C = s(() => e.nullable ? ["true", "false", "null"] : ["true", "false"]), z = s(() => Array.isArray(e.type) ? e.type.find((t) => t !== "null") ?? "string" : e.type), E = (t) => {
58
+ if (!e.alwaysEmitChange && t === f(e.modelValue))
59
59
  return;
60
- if (typeof e == "string" && t.importCurl && e.trim().toLowerCase().startsWith("curl")) {
61
- s("curl", e), l.value && l.value.dispatch({
60
+ if (typeof t == "string" && e.importCurl && t.trim().toLowerCase().startsWith("curl")) {
61
+ u("curl", t), l.value && l.value.dispatch({
62
62
  changes: {
63
63
  from: 0,
64
64
  to: l.value.state.doc.length,
65
- insert: c(t.modelValue)
65
+ insert: f(e.modelValue)
66
66
  }
67
67
  });
68
68
  return;
69
69
  }
70
- const n = T(e);
71
- t.handleFieldChange ? t.handleFieldChange(n) : s("update:modelValue", n);
72
- }, g = (e) => {
73
- t.handleFieldSubmit ? t.handleFieldSubmit(e) : s("submit", e);
74
- }, S = (e) => {
75
- h.value = !1, t.emitOnBlur && t.modelValue && g(e), s("blur", e);
76
- }, p = (e) => {
77
- s("update:modelValue", e);
70
+ const n = T(t);
71
+ e.handleFieldChange ? e.handleFieldChange(n) : u("update:modelValue", n);
72
+ }, g = (t) => {
73
+ e.handleFieldSubmit ? e.handleFieldSubmit(t) : u("submit", t);
74
+ }, S = (t) => {
75
+ h.value = !1, e.emitOnBlur && e.modelValue && g(t), u("blur", t);
76
+ }, v = (t) => {
77
+ u("update:modelValue", t);
78
78
  }, W = () => {
79
- const e = [...t.extensions];
80
- return t.colorPicker && e.push(oe), e;
81
- }, K = d(
79
+ const t = [...e.extensions];
80
+ return e.colorPicker && t.push(ae), t;
81
+ }, K = s(
82
82
  () => ie({
83
- environment: t.environment,
84
- isReadOnly: t.layout === "modal"
83
+ environment: e.environment,
84
+ isReadOnly: e.layout === "modal"
85
85
  })
86
- ), L = d(() => [
86
+ ), L = s(() => [
87
87
  ...W(),
88
88
  K.value,
89
- se
90
- ]), P = u(null), c = (e) => typeof e == "object" ? JSON.stringify(e) : String(e ?? ""), T = (e) => {
91
- const n = e.trim(), o = n.startsWith("[") || n.startsWith("{"), F = typeof t.modelValue;
92
- if (Array.isArray(t.modelValue) && !o && n.includes(","))
89
+ ue
90
+ ]), P = d(null), f = (t) => typeof t == "object" ? JSON.stringify(t) : String(t ?? ""), T = (t) => {
91
+ const n = t.trim(), a = n.startsWith("[") || n.startsWith("{"), F = typeof e.modelValue;
92
+ if (Array.isArray(e.modelValue) && !a && n.includes(","))
93
93
  return n.split(",").map((H) => H.trim());
94
- if (o || F === "number" || F === "boolean")
94
+ if (a || F === "number" || F === "boolean")
95
95
  try {
96
- return JSON.parse(e);
96
+ return JSON.parse(t);
97
97
  } catch {
98
98
  }
99
- return e;
99
+ return t;
100
100
  }, { codeMirror: l } = ne({
101
- content: r(() => c(t.modelValue)),
102
- onChange: (e) => {
103
- E(e), J();
101
+ content: r(() => f(e.modelValue)),
102
+ onChange: (t) => {
103
+ E(t), J();
104
104
  },
105
105
  onFocus: () => {
106
106
  h.value = !0;
107
107
  },
108
108
  onBlur: S,
109
109
  codeMirrorRef: P,
110
- disableTabIndent: r(() => t.disableTabIndent),
111
- disableEnter: r(() => t.disableEnter),
112
- disableCloseBrackets: r(() => t.disableCloseBrackets),
113
- lineNumbers: r(() => t.lineNumbers),
114
- language: r(() => t.language),
115
- lint: r(() => t.lint),
110
+ disableTabIndent: r(() => e.disableTabIndent),
111
+ disableEnter: r(() => e.disableEnter),
112
+ disableCloseBrackets: r(() => e.disableCloseBrackets),
113
+ lineNumbers: r(() => e.lineNumbers),
114
+ language: r(() => e.language),
115
+ lint: r(() => e.lint),
116
116
  extensions: L,
117
- placeholder: r(() => t.placeholder)
117
+ placeholder: r(() => e.placeholder)
118
118
  });
119
119
  X(l, () => {
120
- l.value && Object.hasOwn(x, "autofocus") && l.value.focus();
120
+ l.value && Object.hasOwn(k, "autofocus") && l.value.focus();
121
121
  });
122
- const v = u(!1), A = u(""), D = u({ left: 0, top: 0 }), w = u(null), { handleDropdownSelect: j, updateDropdownVisibility: J } = le({
122
+ const w = d(!1), A = d(""), D = d({ left: 0, top: 0 }), x = d(null), { handleDropdownSelect: j, updateDropdownVisibility: J } = le({
123
123
  codeMirror: l,
124
124
  query: A,
125
- showDropdown: v,
125
+ showDropdown: w,
126
126
  dropdownPosition: D
127
- }), U = d(() => v.value && t.withVariables && t.layout !== "modal" && !!t.environment), m = (e, n) => {
128
- if (v.value) {
129
- e === "down" || e === "up" ? (n.preventDefault(), w.value?.handleArrowKey(e)) : e === "enter" && (n.preventDefault(), w.value?.handleSelect());
127
+ }), U = s(() => w.value && e.withVariables && e.layout !== "modal" && !!e.environment), m = (t, n) => {
128
+ if (w.value) {
129
+ t === "down" || t === "up" ? (n.preventDefault(), x.value?.handleArrowKey(t)) : t === "enter" && (n.preventDefault(), x.value?.handleSelect());
130
130
  return;
131
131
  }
132
- e === "escape" && !t.disableTabIndent && n.stopPropagation(), e === "enter" && n.target instanceof HTMLDivElement && g(n.target.textContent ?? "");
132
+ t === "escape" && !e.disableTabIndent && n.stopPropagation(), t === "enter" && n.target instanceof HTMLDivElement && g(n.target.textContent ?? "");
133
133
  };
134
134
  return M({
135
135
  /**
@@ -137,10 +137,10 @@ const ue = { class: "whitespace-nowrap" }, de = ["id"], fe = {
137
137
  *
138
138
  * @param cursorAtEnd boolean place the cursor at the end of the input
139
139
  */
140
- focus: (e) => {
141
- if (!l.value || (l.value.focus(), !te(e)))
140
+ focus: (t) => {
141
+ if (!l.value || (l.value.focus(), !te(t)))
142
142
  return;
143
- const n = e === "start" ? 0 : e === "end" ? l.value.state.doc.length : e;
143
+ const n = t === "start" ? 0 : t === "end" ? l.value.state.doc.length : t;
144
144
  l.value.dispatch({
145
145
  selection: { anchor: n },
146
146
  scrollIntoView: !0
@@ -152,40 +152,40 @@ const ue = { class: "whitespace-nowrap" }, de = ["id"], fe = {
152
152
  handleBlur: S,
153
153
  booleanOptions: C,
154
154
  codeMirror: l,
155
- modelValue: t.modelValue,
155
+ modelValue: e.modelValue,
156
156
  cursorPosition: () => l.value?.state.selection.main.head,
157
- serializeValue: c,
157
+ serializeValue: f,
158
158
  deserializeValue: T
159
- }), (e, n) => (a(), i(Y, null, [
160
- e.disabled ? (a(), i("div", {
159
+ }), (t, n) => (o(), i(Y, null, [
160
+ e.disabled ? (o(), i("div", {
161
161
  key: 0,
162
162
  class: Z(["text-c-2 flex cursor-default items-center justify-center", e.layout === "modal" ? "font-code pr-2 pl-1 text-base" : "px-2"]),
163
163
  "data-testid": "code-input-disabled"
164
164
  }, [
165
- V("span", ue, _(e.modelValue), 1)
166
- ], 2)) : t.enum?.length ? (a(), y(k, {
165
+ V("span", de, _(e.modelValue), 1)
166
+ ], 2)) : e.enum?.length ? (o(), y(B, {
167
167
  key: 1,
168
- default: t.default,
168
+ default: e.default,
169
169
  modelValue: e.modelValue,
170
170
  type: z.value,
171
- value: t.enum,
172
- "onUpdate:modelValue": p
173
- }, null, 8, ["default", "modelValue", "type", "value"])) : q.value ? (a(), y(k, {
171
+ value: e.enum,
172
+ "onUpdate:modelValue": v
173
+ }, null, 8, ["default", "modelValue", "type", "value"])) : q.value ? (o(), y(B, {
174
174
  key: 2,
175
- default: t.default,
175
+ default: e.default,
176
176
  modelValue: e.modelValue,
177
177
  value: C.value,
178
- "onUpdate:modelValue": p
179
- }, null, 8, ["default", "modelValue", "value"])) : e.examples?.length ? (a(), y(k, {
178
+ "onUpdate:modelValue": v
179
+ }, null, 8, ["default", "modelValue", "value"])) : e.examples?.length ? (o(), y(B, {
180
180
  key: 3,
181
- default: t.default,
181
+ default: e.default,
182
182
  modelValue: e.modelValue,
183
183
  value: e.examples,
184
- "onUpdate:modelValue": p
185
- }, null, 8, ["default", "modelValue", "value"])) : (a(), i("div", ee({
184
+ "onUpdate:modelValue": v
185
+ }, null, 8, ["default", "modelValue", "value"])) : (o(), i("div", ee({
186
186
  key: 4,
187
187
  id: O(R)
188
- }, e.$attrs, {
188
+ }, t.$attrs, {
189
189
  ref_key: "codeMirrorRef",
190
190
  ref: P,
191
191
  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", {
@@ -193,40 +193,40 @@ const ue = { class: "whitespace-nowrap" }, de = ["id"], fe = {
193
193
  "flow-code-input--error": e.error
194
194
  }],
195
195
  onKeydown: [
196
- n[0] || (n[0] = b($((o) => m("down", o), ["stop"]), ["down"])),
197
- n[1] || (n[1] = b((o) => m("enter", o), ["enter"])),
198
- n[2] || (n[2] = b((o) => m("escape", o), ["escape"])),
199
- n[3] || (n[3] = b($((o) => m("up", o), ["stop"]), ["up"]))
196
+ n[0] || (n[0] = b($((a) => m("down", a), ["stop"]), ["down"])),
197
+ n[1] || (n[1] = b((a) => m("enter", a), ["enter"])),
198
+ n[2] || (n[2] = b((a) => m("escape", a), ["escape"])),
199
+ n[3] || (n[3] = b($((a) => m("up", a), ["stop"]), ["up"]))
200
200
  ]
201
201
  }), [
202
- e.disableTabIndent ? f("", !0) : (a(), i("div", fe, [...n[5] || (n[5] = [
203
- B(" Press ", -1),
202
+ e.disableTabIndent ? c("", !0) : (o(), i("div", ce, [...n[5] || (n[5] = [
203
+ p(" Press ", -1),
204
204
  V("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Esc", -1),
205
- B(" then ", -1),
205
+ p(" then ", -1),
206
206
  V("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Tab", -1),
207
- B(" to exit ", -1)
207
+ p(" to exit ", -1)
208
208
  ])]))
209
- ], 16, de)),
210
- e.$slots.warning ? (a(), i("div", ce, [
211
- I(e.$slots, "warning", {}, void 0, !0)
212
- ])) : f("", !0),
213
- e.$slots.icon ? (a(), i("div", me, [
214
- I(e.$slots, "icon", {}, void 0, !0)
215
- ])) : f("", !0),
216
- e.required ? (a(), i("div", ye, " Required ")) : f("", !0),
217
- U.value && e.environment ? (a(), y(re, {
209
+ ], 16, se)),
210
+ t.$slots.warning ? (o(), i("div", fe, [
211
+ I(t.$slots, "warning", {}, void 0, !0)
212
+ ])) : c("", !0),
213
+ t.$slots.icon ? (o(), i("div", me, [
214
+ I(t.$slots, "icon", {}, void 0, !0)
215
+ ])) : c("", !0),
216
+ e.required ? (o(), i("div", ye, " Required ")) : c("", !0),
217
+ U.value && e.environment ? (o(), y(re, {
218
218
  key: 8,
219
219
  ref_key: "dropdownRef",
220
- ref: w,
220
+ ref: x,
221
221
  dropdownPosition: D.value,
222
222
  environment: e.environment,
223
223
  query: A.value,
224
- onRedirect: n[4] || (n[4] = (o) => s("redirectToEnvironment")),
224
+ onRedirect: n[4] || (n[4] = (a) => u("redirectToEnvironment")),
225
225
  onSelect: O(j)
226
- }, null, 8, ["dropdownPosition", "environment", "query", "onSelect"])) : f("", !0)
226
+ }, null, 8, ["dropdownPosition", "environment", "query", "onSelect"])) : c("", !0)
227
227
  ], 64));
228
228
  }
229
229
  });
230
230
  export {
231
- xe as default
231
+ ke as default
232
232
  };
@@ -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
  };
@@ -1,21 +1,21 @@
1
- import { defineComponent as t, createBlock as o, openBlock as a, resolveDynamicComponent as n, mergeProps as s, unref as l, withCtx as p, renderSlot as b } from "vue";
2
- import { useBindCx as d } from "@scalar/components";
3
- const f = /* @__PURE__ */ t({
1
+ import { defineComponent as o, createBlock as a, openBlock as n, resolveDynamicComponent as l, mergeProps as s, unref as b, withCtx as d, renderSlot as p } from "vue";
2
+ import { useBindCx as i } from "@scalar/components";
3
+ const f = /* @__PURE__ */ o({
4
4
  inheritAttrs: !1,
5
5
  __name: "DataTableCell",
6
6
  props: {
7
7
  is: { default: "td" }
8
8
  },
9
- setup(i) {
10
- const { cx: r } = d();
11
- return (e, m) => (a(), o(n(e.is), s(
12
- l(r)(
9
+ setup(e) {
10
+ const { cx: r } = i();
11
+ return (t, m) => (n(), a(l(e.is), s(
12
+ b(r)(
13
13
  "box-content max-h-8 min-h-8 min-w-8 border-l-0 border-t border-b-0 border-r flex text-base last:border-r-0 group-last:border-b-transparent p-0 m-0 relative"
14
14
  ),
15
15
  { class: "group-[.alert]:bg-b-alert group-[.error]:bg-b-danger" }
16
16
  ), {
17
- default: p(() => [
18
- b(e.$slots, "default")
17
+ default: d(() => [
18
+ p(t.$slots, "default")
19
19
  ]),
20
20
  _: 3
21
21
  }, 16));
@@ -1,7 +1,7 @@
1
- import { defineComponent as c, createBlock as n, openBlock as i, withCtx as d, createElementVNode as a, normalizeClass as t, unref as l, createVNode as u } from "vue";
2
- import { cva as p, ScalarIcon as m } from "@scalar/components";
3
- import b from "./DataTableCell.vue.js";
4
- const f = ["checked", "disabled"], y = /* @__PURE__ */ c({
1
+ import { defineComponent as i, createBlock as r, openBlock as d, withCtx as u, createElementVNode as t, normalizeClass as l, unref as o, createVNode as m } from "vue";
2
+ import { cva as p, ScalarIcon as b } from "@scalar/components";
3
+ import f from "./DataTableCell.vue.js";
4
+ const h = ["checked", "disabled"], x = /* @__PURE__ */ i({
5
5
  __name: "DataTableCheckbox",
6
6
  props: {
7
7
  modelValue: { type: Boolean },
@@ -9,8 +9,8 @@ const f = ["checked", "disabled"], y = /* @__PURE__ */ c({
9
9
  align: { default: "center" }
10
10
  },
11
11
  emits: ["update:modelValue"],
12
- setup(h) {
13
- const s = p({
12
+ setup(e) {
13
+ const c = p({
14
14
  base: "w-8 h-8 flex items-center justify-center text-border peer-checked:text-c-1 pointer-events-none absolute",
15
15
  variants: {
16
16
  align: {
@@ -19,25 +19,25 @@ const f = ["checked", "disabled"], y = /* @__PURE__ */ c({
19
19
  }
20
20
  }
21
21
  });
22
- return (e, o) => (i(), n(b, { class: "group/cell relative flex min-w-8" }, {
23
- default: d(() => [
24
- a("input", {
22
+ return (n, a) => (d(), r(f, { class: "group/cell relative flex min-w-8" }, {
23
+ default: u(() => [
24
+ t("input", {
25
25
  checked: e.modelValue,
26
26
  class: "peer absolute inset-0 cursor-pointer opacity-0 disabled:cursor-default",
27
27
  disabled: !!e.disabled,
28
28
  type: "checkbox",
29
- onChange: o[0] || (o[0] = (r) => e.$emit("update:modelValue", r.target.checked))
30
- }, null, 40, f),
31
- a("div", {
32
- class: t(l(s)({ align: e.align }))
29
+ onChange: a[0] || (a[0] = (s) => n.$emit("update:modelValue", s.target.checked))
30
+ }, null, 40, h),
31
+ t("div", {
32
+ class: l(o(c)({ align: e.align }))
33
33
  }, [
34
- a("div", {
35
- class: t([
34
+ t("div", {
35
+ class: l([
36
36
  "absolute m-auto size-3/4 rounded border-[1px] opacity-0",
37
37
  !e.disabled && "group-has-[:focus-visible]/cell:border-c-accent group-hover/cell:opacity-100 group-has-[:focus-visible]/cell:opacity-100"
38
38
  ])
39
39
  }, null, 2),
40
- u(l(m), {
40
+ m(o(b), {
41
41
  icon: "Checkmark",
42
42
  size: "xs",
43
43
  thickness: "2.5"
@@ -49,5 +49,5 @@ const f = ["checked", "disabled"], y = /* @__PURE__ */ c({
49
49
  }
50
50
  });
51
51
  export {
52
- y as default
52
+ x as default
53
53
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as b, ref as y, useTemplateRef as B, computed as $, createBlock as d, openBlock as n, normalizeClass as I, withCtx as O, createElementBlock as u, createCommentVNode as i, createElementVNode as S, renderSlot as p, createTextVNode as E, Fragment as h, mergeProps as c, unref as s } from "vue";
2
- import { ScalarIconButton as v } from "@scalar/components";
3
- import { ScalarIconX as A, ScalarIconEye as T, ScalarIconEyeSlash as W } from "@scalar/icons";
4
- import q from "./DataTableCell.vue.js";
5
- import F from "./DataTableInputSelect.vue.js";
6
- import N from "../code-input/CodeInput.vue.js";
7
- const P = ["for"], D = { class: "relative flex min-w-0 flex-1" }, U = ["readOnly", "type", "value"], z = {
1
+ import { defineComponent as b, ref as y, useTemplateRef as x, computed as B, createBlock as s, openBlock as a, normalizeClass as $, withCtx as I, createElementBlock as r, createCommentVNode as m, createElementVNode as O, renderSlot as c, createTextVNode as S, Fragment as E, mergeProps as v, unref as u } from "vue";
2
+ import { ScalarIconButton as V } from "@scalar/components";
3
+ import { ScalarIconX as h, ScalarIconEye as A, ScalarIconEyeSlash as T } from "@scalar/icons";
4
+ import W from "./DataTableCell.vue.js";
5
+ import q from "./DataTableInputSelect.vue.js";
6
+ import F from "../code-input/CodeInput.vue.js";
7
+ const N = ["for"], P = { class: "relative flex min-w-0 flex-1" }, D = ["readOnly", "type", "value"], U = {
8
8
  key: 1,
9
9
  class: "centered-y text-orange absolute right-7 text-xs"
10
- }, J = /* @__PURE__ */ b({
10
+ }, G = /* @__PURE__ */ b({
11
11
  inheritAttrs: !1,
12
12
  __name: "DataTableInput",
13
13
  props: {
@@ -26,49 +26,49 @@ const P = ["for"], D = { class: "relative flex min-w-0 flex-1" }, U = ["readOnly
26
26
  lineWrapping: { type: Boolean, default: !1 }
27
27
  },
28
28
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
29
- setup(V, { emit: w }) {
30
- const a = V, t = w, r = y(!0), k = y(!1), m = B("codeInput"), g = () => !k.value && t("inputBlur"), f = $(
31
- () => a.type === "password" ? "text" : a.type ?? "text"
29
+ setup(e, { emit: w }) {
30
+ const t = e, d = w, i = y(!0), k = y(!1), f = x("codeInput"), g = () => !k.value && d("inputBlur"), p = B(
31
+ () => t.type === "password" ? "text" : t.type ?? "text"
32
32
  ), C = () => {
33
- !a.enum?.length && !a.readOnly && m.value?.focus();
33
+ !t.enum?.length && !t.readOnly && f.value?.focus();
34
34
  };
35
- return (e, l) => (n(), d(q, {
36
- class: I(["relative flex", e.containerClass])
35
+ return (n, l) => (a(), s(W, {
36
+ class: $(["relative flex", e.containerClass])
37
37
  }, {
38
- default: O(() => [
39
- e.$slots.default ? (n(), u("div", {
38
+ default: I(() => [
39
+ n.$slots.default ? (a(), r("div", {
40
40
  key: 0,
41
41
  class: "text-c-1 flex items-center pr-0 pl-3",
42
42
  for: e.id ?? "",
43
43
  onClick: C
44
44
  }, [
45
- p(e.$slots, "default", {}, void 0, !0),
46
- l[6] || (l[6] = E(": ", -1))
47
- ], 8, P)) : i("", !0),
48
- S("div", D, [
49
- a.enum && a.enum.length ? (n(), d(F, {
45
+ c(n.$slots, "default", {}, void 0, !0),
46
+ l[6] || (l[6] = S(": ", -1))
47
+ ], 8, N)) : m("", !0),
48
+ O("div", P, [
49
+ t.enum && t.enum.length ? (a(), s(q, {
50
50
  key: 0,
51
- canAddCustomValue: a.canAddCustomEnumValue,
52
- modelValue: a.modelValue,
53
- value: a.enum,
54
- "onUpdate:modelValue": l[0] || (l[0] = (o) => t("update:modelValue", o))
55
- }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (n(), u(h, { key: 1 }, [
56
- r.value && e.type === "password" ? (n(), u("input", c({ key: 0 }, e.id ? { ...e.$attrs, id: e.id } : e.$attrs, {
51
+ canAddCustomValue: t.canAddCustomEnumValue,
52
+ modelValue: t.modelValue,
53
+ value: t.enum,
54
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => d("update:modelValue", o))
55
+ }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (a(), r(E, { key: 1 }, [
56
+ i.value && e.type === "password" ? (a(), r("input", v({ key: 0 }, e.id ? { ...n.$attrs, id: e.id } : n.$attrs, {
57
57
  autocomplete: "off",
58
58
  class: ["text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none px-2 py-1.25 -outline-offset-1", { "scalar-password-input": e.type === "password" }],
59
59
  "data-1p-ignore": "",
60
60
  readOnly: e.readOnly,
61
61
  spellcheck: "false",
62
- type: f.value,
62
+ type: p.value,
63
63
  value: e.modelValue,
64
- onInput: l[1] || (l[1] = (o) => t(
64
+ onInput: l[1] || (l[1] = (o) => d(
65
65
  "update:modelValue",
66
66
  o.target.value ?? ""
67
67
  ))
68
- }), null, 16, U)) : (n(), d(s(N), c({ key: 1 }, e.$attrs, {
68
+ }), null, 16, D)) : (a(), s(u(F), v({ key: 1 }, n.$attrs, {
69
69
  id: e.id,
70
70
  ref_key: "codeInput",
71
- ref: m,
71
+ ref: f,
72
72
  class: ["text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none -outline-offset-1", [
73
73
  e.type === "password" && e.description && "pr-12",
74
74
  e.description && "pr-8",
@@ -85,37 +85,37 @@ const P = ["for"], D = { class: "relative flex min-w-0 flex-1" }, U = ["readOnly
85
85
  readOnly: e.readOnly,
86
86
  required: !!e.required,
87
87
  spellcheck: "false",
88
- type: f.value,
88
+ type: p.value,
89
89
  onBlur: g,
90
- onFocus: l[2] || (l[2] = (o) => t("inputFocus")),
91
- "onUpdate:modelValue": l[3] || (l[3] = (o) => t("update:modelValue", o))
90
+ onFocus: l[2] || (l[2] = (o) => d("inputFocus")),
91
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => d("update:modelValue", o))
92
92
  }), null, 16, ["id", "class", "description", "environment", "lineWrapping", "max", "min", "modelValue", "readOnly", "required", "type"]))
93
93
  ], 64))
94
94
  ]),
95
- e.$slots.warning ? (n(), u("div", z, [
96
- p(e.$slots, "warning", {}, void 0, !0)
97
- ])) : i("", !0),
98
- p(e.$slots, "icon", {}, void 0, !0),
99
- e.modelValue ? (n(), d(s(v), {
95
+ n.$slots.warning ? (a(), r("div", U, [
96
+ c(n.$slots, "warning", {}, void 0, !0)
97
+ ])) : m("", !0),
98
+ c(n.$slots, "icon", {}, void 0, !0),
99
+ e.modelValue ? (a(), s(u(V), {
100
100
  key: 2,
101
101
  class: "-ml-.25 h-6 w-6 self-center p-1.25",
102
- icon: s(A),
102
+ icon: u(h),
103
103
  label: "Clear Value",
104
- onClick: l[4] || (l[4] = (o) => t("update:modelValue", ""))
105
- }, null, 8, ["icon"])) : i("", !0),
106
- e.type === "password" ? (n(), d(s(v), {
104
+ onClick: l[4] || (l[4] = (o) => d("update:modelValue", ""))
105
+ }, null, 8, ["icon"])) : m("", !0),
106
+ e.type === "password" ? (a(), s(u(V), {
107
107
  key: 3,
108
108
  class: "-ml-.5 mr-1.25 h-6 w-6 self-center p-1.25",
109
109
  "data-testid": "data-table-password-toggle",
110
- icon: r.value ? s(T) : s(W),
111
- label: r.value ? "Show Password" : "Hide Password",
112
- onClick: l[5] || (l[5] = (o) => r.value = !r.value)
113
- }, null, 8, ["icon", "label"])) : i("", !0)
110
+ icon: i.value ? u(A) : u(T),
111
+ label: i.value ? "Show Password" : "Hide Password",
112
+ onClick: l[5] || (l[5] = (o) => i.value = !i.value)
113
+ }, null, 8, ["icon", "label"])) : m("", !0)
114
114
  ]),
115
115
  _: 3
116
116
  }, 8, ["class"]));
117
117
  }
118
118
  });
119
119
  export {
120
- J as default
120
+ G as default
121
121
  };