@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,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 g, ref as p, computed as B, createBlock as s, openBlock as a, normalizeClass as $, withCtx as I, createElementBlock as u, createCommentVNode as d, createElementVNode as O, renderSlot as m, createTextVNode as S, Fragment as E, mergeProps as v, unref as i } from "vue";
2
- import { ScalarIconButton as c } from "@scalar/components";
3
- import { ScalarIconX as h, ScalarIconEye as A, ScalarIconEyeSlash as W } from "@scalar/icons";
4
- import q from "../CodeInput/CodeInput.vue.js";
5
- import F from "./DataTableCell.vue.js";
6
- import T from "./DataTableInputSelect.vue.js";
7
- const N = ["for"], P = { class: "relative flex min-w-0 flex-1" }, D = ["readOnly", "type", "value"], U = {
1
+ import { defineComponent as g, ref as c, computed as x, createBlock as d, openBlock as n, normalizeClass as B, withCtx as $, createElementBlock as s, createCommentVNode as m, createElementVNode as I, renderSlot as f, createTextVNode as O, Fragment as S, mergeProps as v, unref as r } from "vue";
2
+ import { ScalarIconButton as V } from "@scalar/components";
3
+ import { ScalarIconX as E, ScalarIconEye as h, ScalarIconEyeSlash as A } from "@scalar/icons";
4
+ import W from "../CodeInput/CodeInput.vue.js";
5
+ import q from "./DataTableCell.vue.js";
6
+ import F from "./DataTableInputSelect.vue.js";
7
+ const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly", "type", "value"], D = {
8
8
  key: 1,
9
9
  class: "centered-y text-orange absolute right-7 text-xs"
10
- }, J = /* @__PURE__ */ g({
10
+ }, G = /* @__PURE__ */ g({
11
11
  inheritAttrs: !1,
12
12
  __name: "DataTableInput",
13
13
  props: {
@@ -27,36 +27,36 @@ const N = ["for"], P = { class: "relative flex min-w-0 flex-1" }, D = ["readOnly
27
27
  lineWrapping: { type: Boolean, default: !1 }
28
28
  },
29
29
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
30
- setup(V, { emit: w }) {
31
- const n = V, t = w, r = p(!0), k = p(!1), f = p(null), b = () => {
32
- k.value || t("inputBlur");
33
- }, y = B(
34
- () => n.type === "password" ? "text" : n.type ?? "text"
30
+ setup(e, { emit: w }) {
31
+ const t = e, i = w, u = c(!0), k = c(!1), p = c(null), b = () => {
32
+ k.value || i("inputBlur");
33
+ }, y = x(
34
+ () => t.type === "password" ? "text" : t.type ?? "text"
35
35
  ), C = () => {
36
- !n.enum?.length && !n.readOnly && f.value?.focus();
36
+ !t.enum?.length && !t.readOnly && p.value?.focus();
37
37
  };
38
- return (e, l) => (a(), s(F, {
39
- class: $(["relative flex", e.containerClass])
38
+ return (a, l) => (n(), d(q, {
39
+ class: B(["relative flex", e.containerClass])
40
40
  }, {
41
- default: I(() => [
42
- e.$slots.default ? (a(), u("div", {
41
+ default: $(() => [
42
+ a.$slots.default ? (n(), s("div", {
43
43
  key: 0,
44
44
  class: "text-c-1 flex items-center pr-0 pl-3",
45
45
  for: e.id ?? "",
46
46
  onClick: C
47
47
  }, [
48
- m(e.$slots, "default", {}, void 0, !0),
49
- l[6] || (l[6] = S(": ", -1))
50
- ], 8, N)) : d("", !0),
51
- O("div", P, [
52
- n.enum && n.enum.length ? (a(), s(T, {
48
+ f(a.$slots, "default", {}, void 0, !0),
49
+ l[6] || (l[6] = O(": ", -1))
50
+ ], 8, T)) : m("", !0),
51
+ I("div", N, [
52
+ t.enum && t.enum.length ? (n(), d(F, {
53
53
  key: 0,
54
- canAddCustomValue: n.canAddCustomEnumValue,
55
- modelValue: n.modelValue,
56
- value: n.enum,
57
- "onUpdate:modelValue": l[0] || (l[0] = (o) => t("update:modelValue", o))
58
- }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (a(), u(E, { key: 1 }, [
59
- r.value && e.type === "password" ? (a(), u("input", v({ key: 0 }, e.id ? { ...e.$attrs, id: e.id } : e.$attrs, {
54
+ canAddCustomValue: t.canAddCustomEnumValue,
55
+ modelValue: t.modelValue,
56
+ value: t.enum,
57
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => i("update:modelValue", o))
58
+ }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (n(), s(S, { key: 1 }, [
59
+ u.value && e.type === "password" ? (n(), s("input", v({ key: 0 }, e.id ? { ...a.$attrs, id: e.id } : a.$attrs, {
60
60
  autocomplete: "off",
61
61
  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" }],
62
62
  "data-1p-ignore": "",
@@ -64,14 +64,14 @@ const N = ["for"], P = { class: "relative flex min-w-0 flex-1" }, D = ["readOnly
64
64
  spellcheck: "false",
65
65
  type: y.value,
66
66
  value: e.modelValue,
67
- onInput: l[1] || (l[1] = (o) => t(
67
+ onInput: l[1] || (l[1] = (o) => i(
68
68
  "update:modelValue",
69
69
  o.target.value ?? ""
70
70
  ))
71
- }), null, 16, D)) : (a(), s(q, v({ key: 1 }, e.$attrs, {
71
+ }), null, 16, P)) : (n(), d(W, v({ key: 1 }, a.$attrs, {
72
72
  id: e.id,
73
73
  ref_key: "codeInput",
74
- ref: f,
74
+ ref: p,
75
75
  class: ["text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none -outline-offset-1", [
76
76
  e.type === "password" && e.description && "pr-12",
77
77
  e.description && "pr-8",
@@ -91,34 +91,34 @@ const N = ["for"], P = { class: "relative flex min-w-0 flex-1" }, D = ["readOnly
91
91
  spellcheck: "false",
92
92
  type: y.value,
93
93
  onBlur: b,
94
- onFocus: l[2] || (l[2] = (o) => t("inputFocus")),
95
- "onUpdate:modelValue": l[3] || (l[3] = (o) => t("update:modelValue", o))
94
+ onFocus: l[2] || (l[2] = (o) => i("inputFocus")),
95
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => i("update:modelValue", o))
96
96
  }), null, 16, ["id", "class", "description", "envVariables", "environment", "lineWrapping", "max", "min", "modelValue", "readOnly", "required", "type"]))
97
97
  ], 64))
98
98
  ]),
99
- e.$slots.warning ? (a(), u("div", U, [
100
- m(e.$slots, "warning", {}, void 0, !0)
101
- ])) : d("", !0),
102
- m(e.$slots, "icon", {}, void 0, !0),
103
- e.modelValue ? (a(), s(i(c), {
99
+ a.$slots.warning ? (n(), s("div", D, [
100
+ f(a.$slots, "warning", {}, void 0, !0)
101
+ ])) : m("", !0),
102
+ f(a.$slots, "icon", {}, void 0, !0),
103
+ e.modelValue ? (n(), d(r(V), {
104
104
  key: 2,
105
105
  class: "-ml-.25 h-6 w-6 self-center p-1.25",
106
- icon: i(h),
106
+ icon: r(E),
107
107
  label: "Clear Value",
108
- onClick: l[4] || (l[4] = (o) => t("update:modelValue", ""))
109
- }, null, 8, ["icon"])) : d("", !0),
110
- e.type === "password" ? (a(), s(i(c), {
108
+ onClick: l[4] || (l[4] = (o) => i("update:modelValue", ""))
109
+ }, null, 8, ["icon"])) : m("", !0),
110
+ e.type === "password" ? (n(), d(r(V), {
111
111
  key: 3,
112
112
  class: "-ml-.5 mr-1.25 h-6 w-6 self-center p-1.25",
113
- icon: r.value ? i(A) : i(W),
114
- label: r.value ? "Show Password" : "Hide Password",
115
- onClick: l[5] || (l[5] = (o) => r.value = !r.value)
116
- }, null, 8, ["icon", "label"])) : d("", !0)
113
+ icon: u.value ? r(h) : r(A),
114
+ label: u.value ? "Show Password" : "Hide Password",
115
+ onClick: l[5] || (l[5] = (o) => u.value = !u.value)
116
+ }, null, 8, ["icon", "label"])) : m("", !0)
117
117
  ]),
118
118
  _: 3
119
119
  }, 8, ["class"]));
120
120
  }
121
121
  });
122
122
  export {
123
- J as default
123
+ G as default
124
124
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as T, computed as m, ref as V, watch as S, nextTick as E, createElementBlock as f, openBlock as o, createBlock as v, withDirectives as K, unref as a, withCtx as s, createVNode as n, createElementVNode as i, toDisplayString as y, withKeys as M, vModelText as R, createCommentVNode as C, Fragment as _, renderList as U, normalizeClass as $ } from "vue";
2
- import { ScalarComboboxMultiselect as F, ScalarButton as b, ScalarIcon as h, ScalarDropdown as L, ScalarDropdownItem as D, ScalarDropdownDivider as W } from "@scalar/components";
1
+ import { defineComponent as T, computed as m, ref as x, watch as C, nextTick as E, createElementBlock as f, openBlock as o, createBlock as v, withDirectives as K, unref as a, withCtx as s, createVNode as n, createElementVNode as i, toDisplayString as y, withKeys as M, vModelText as R, createCommentVNode as _, Fragment as b, renderList as U, normalizeClass as $ } from "vue";
2
+ import { ScalarComboboxMultiselect as F, ScalarButton as D, ScalarIcon as h, ScalarDropdown as L, ScalarDropdownItem as z, ScalarDropdownDivider as W } from "@scalar/components";
3
3
  const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline" }, G = { class: "text-c-1 whitespace-nowrap" }, H = { class: "text-c-1 overflow-hidden text-ellipsis" }, J = { class: "overflow-hidden text-ellipsis" }, P = { class: "flex h-4 w-4 items-center justify-center" }, Z = /* @__PURE__ */ T({
4
4
  __name: "DataTableInputSelect",
5
5
  props: {
@@ -10,47 +10,47 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
10
10
  type: {}
11
11
  },
12
12
  emits: ["update:modelValue"],
13
- setup(z, { emit: B }) {
14
- const u = z, c = B, p = m(() => u.value ?? []), d = V(!1), r = V(""), x = V(null);
15
- S(r, (e) => {
13
+ setup(w, { emit: B }) {
14
+ const u = w, c = B, p = m(() => u.value ?? []), d = x(!1), r = x(""), g = x(null);
15
+ C(r, (e) => {
16
16
  c("update:modelValue", e);
17
17
  });
18
- const g = (e) => {
18
+ const k = (e) => {
19
19
  c("update:modelValue", e), d.value = !1;
20
20
  }, j = () => {
21
- r.value.trim() && g(r.value);
21
+ r.value.trim() && k(r.value);
22
22
  }, A = () => {
23
23
  r.value.trim() || c("update:modelValue", ""), d.value = !1;
24
24
  }, I = (e) => u.modelValue.toString() === e;
25
- S(d, (e) => {
25
+ C(d, (e) => {
26
26
  e && E(() => {
27
- x.value?.focus();
27
+ g.value?.focus();
28
28
  });
29
29
  });
30
- const k = m(() => u.modelValue !== void 0 ? u.modelValue : u.default), w = m(() => {
30
+ const S = m(() => u.modelValue !== void 0 ? u.modelValue : u.default), V = m(() => {
31
31
  const e = new Set(u.modelValue.toString().split(", "));
32
- return p.value.filter((l) => e.has(l)).map((l) => ({ id: l, label: l, value: l }));
32
+ return p.value.filter((t) => e.has(t)).map((t) => ({ id: t, label: t, value: t }));
33
33
  }), N = m(
34
34
  () => p.value.map((e) => ({ id: e, label: e, value: e }))
35
35
  ), O = (e) => {
36
- const l = e.map((t) => t.value);
37
- c("update:modelValue", l.join(", "));
36
+ const t = e.map((l) => l.value);
37
+ c("update:modelValue", t.join(", "));
38
38
  };
39
- return (e, l) => (o(), f("div", q, [
40
- e.type === "array" ? (o(), v(a(F), {
39
+ return (e, t) => (o(), f("div", q, [
40
+ w.type === "array" ? (o(), v(a(F), {
41
41
  key: 0,
42
- modelValue: w.value,
42
+ modelValue: V.value,
43
43
  options: N.value,
44
44
  "onUpdate:modelValue": O
45
45
  }, {
46
46
  default: s(() => [
47
- n(a(b), {
47
+ n(a(D), {
48
48
  class: "custom-scroll h-full justify-start gap-1.5 px-2 py-1.5 pr-6 font-normal outline-none",
49
49
  fullWidth: "",
50
50
  variant: "ghost"
51
51
  }, {
52
52
  default: s(() => [
53
- i("span", G, y(w.value.length > 0 ? w.value.map((t) => t.label).join(", ") : "Select a value"), 1),
53
+ i("span", G, y(V.value.length > 0 ? V.value.map((l) => l.label).join(", ") : "Select a value"), 1),
54
54
  n(a(h), {
55
55
  icon: "ChevronDown",
56
56
  size: "md",
@@ -64,8 +64,8 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
64
64
  }, 8, ["modelValue", "options"])) : d.value ? K((o(), f("input", {
65
65
  key: 1,
66
66
  ref_key: "inputRef",
67
- ref: x,
68
- "onUpdate:modelValue": l[0] || (l[0] = (t) => r.value = t),
67
+ ref: g,
68
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => r.value = l),
69
69
  class: "text-c-1 w-full min-w-0 border-none px-2 py-1.5 outline-none",
70
70
  placeholder: "Value",
71
71
  type: "text",
@@ -76,20 +76,20 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
76
76
  ]) : (o(), v(a(L), {
77
77
  key: 2,
78
78
  resize: "",
79
- value: k.value
79
+ value: S.value
80
80
  }, {
81
81
  items: s(() => [
82
- (o(!0), f(_, null, U(p.value, (t) => (o(), v(a(D), {
83
- key: t,
82
+ (o(!0), f(b, null, U(p.value, (l) => (o(), v(a(z), {
83
+ key: l,
84
84
  class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
85
- value: t,
86
- onClick: (Q) => g(t)
85
+ value: l,
86
+ onClick: (Q) => k(l)
87
87
  }, {
88
88
  default: s(() => [
89
89
  i("div", {
90
90
  class: $([
91
91
  "flex h-4 w-4 items-center justify-center rounded-full p-[3px]",
92
- I(t) ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
92
+ I(l) ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
93
93
  ])
94
94
  }, [
95
95
  n(a(h), {
@@ -98,15 +98,15 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
98
98
  thickness: "3"
99
99
  })
100
100
  ], 2),
101
- i("span", J, y(t), 1)
101
+ i("span", J, y(l), 1)
102
102
  ]),
103
103
  _: 2
104
104
  }, 1032, ["value", "onClick"]))), 128)),
105
- e.canAddCustomValue ? (o(), f(_, { key: 0 }, [
106
- p.value.length ? (o(), v(a(W), { key: 0 })) : C("", !0),
107
- n(a(D), {
105
+ w.canAddCustomValue ? (o(), f(b, { key: 0 }, [
106
+ p.value.length ? (o(), v(a(W), { key: 0 })) : _("", !0),
107
+ n(a(z), {
108
108
  class: "flex items-center gap-1.5",
109
- onClick: l[1] || (l[1] = (t) => d.value = !0)
109
+ onClick: t[1] || (t[1] = (l) => d.value = !0)
110
110
  }, {
111
111
  default: s(() => [
112
112
  i("div", P, [
@@ -115,19 +115,19 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
115
115
  size: "sm"
116
116
  })
117
117
  ]),
118
- l[2] || (l[2] = i("span", null, "Add value", -1))
118
+ t[2] || (t[2] = i("span", null, "Add value", -1))
119
119
  ]),
120
120
  _: 1
121
121
  })
122
- ], 64)) : C("", !0)
122
+ ], 64)) : _("", !0)
123
123
  ]),
124
124
  default: s(() => [
125
- n(a(b), {
125
+ n(a(D), {
126
126
  class: "size-full justify-start gap-1.5 overflow-auto px-2 py-1.5 font-normal whitespace-nowrap outline-none",
127
127
  variant: "ghost"
128
128
  }, {
129
129
  default: s(() => [
130
- i("span", H, y(k.value || "Select a value"), 1),
130
+ i("span", H, y(S.value || "Select a value"), 1),
131
131
  n(a(h), {
132
132
  icon: "ChevronDown",
133
133
  size: "md"
@@ -1,16 +1,16 @@
1
- import { defineComponent as t, createBlock as a, openBlock as o, withCtx as r, createElementVNode as s, renderSlot as n, createTextVNode as p, toDisplayString as l } from "vue";
2
- import c from "./DataTableCell.vue.js";
3
- const i = { class: "flex-1 px-2 py-1.5 whitespace-nowrap" }, x = /* @__PURE__ */ t({
1
+ import { defineComponent as a, createBlock as o, openBlock as r, withCtx as s, createElementVNode as n, renderSlot as l, createTextVNode as c, toDisplayString as p } from "vue";
2
+ import i from "./DataTableCell.vue.js";
3
+ const f = { class: "flex-1 px-2 py-1.5 whitespace-nowrap" }, d = /* @__PURE__ */ a({
4
4
  __name: "DataTableText",
5
5
  props: {
6
6
  text: {}
7
7
  },
8
- setup(_) {
9
- return (e, f) => (o(), a(c, { class: "relative flex" }, {
10
- default: r(() => [
11
- s("span", i, [
12
- n(e.$slots, "default", {}, () => [
13
- p(l(e.text), 1)
8
+ setup(e) {
9
+ return (t, _) => (r(), o(i, { class: "relative flex" }, {
10
+ default: s(() => [
11
+ n("span", f, [
12
+ l(t.$slots, "default", {}, () => [
13
+ c(p(e.text), 1)
14
14
  ])
15
15
  ])
16
16
  ]),
@@ -19,5 +19,5 @@ const i = { class: "flex-1 px-2 py-1.5 whitespace-nowrap" }, x = /* @__PURE__ */
19
19
  }
20
20
  });
21
21
  export {
22
- x as default
22
+ d as default
23
23
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as b, useId as v, createBlock as r, openBlock as l, createSlots as c, withCtx as o, createElementVNode as n, createCommentVNode as y, unref as t, createElementBlock as m, Fragment as h, renderList as g, normalizeClass as V, createVNode as p, toDisplayString as u, renderSlot as w } from "vue";
1
+ import { defineComponent as y, useId as h, createBlock as n, openBlock as o, createSlots as m, withCtx as a, createElementVNode as r, createCommentVNode as g, unref as t, createElementBlock as u, Fragment as V, renderList as _, normalizeClass as w, createVNode as f, toDisplayString as p, renderSlot as x } from "vue";
2
2
  import { ScalarIcon as E } from "@scalar/components";
3
3
  import C from "../DataTable/DataTable.vue.js";
4
4
  import S from "../DataTable/DataTableInput.vue.js";
5
5
  import U from "../DataTable/DataTableRow.vue.js";
6
6
  import $ from "../ViewLayout/ViewLayoutSection.vue.js";
7
7
  import { useActiveEntities as z } from "../../store/active-entities.js";
8
- const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"], I = { class: "centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5" }, q = /* @__PURE__ */ b({
8
+ const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"], I = { class: "centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5" }, R = /* @__PURE__ */ y({
9
9
  __name: "Form",
10
10
  props: {
11
11
  title: {},
@@ -13,43 +13,43 @@ const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"]
13
13
  data: {},
14
14
  onUpdate: { type: Function }
15
15
  },
16
- setup(N) {
17
- const { activeEnvVariables: f, activeEnvironment: k, activeWorkspace: s } = z(), i = v();
18
- return (e, T) => (l(), r($, { class: "last:rounded-b-lg" }, c({
19
- default: o(() => [
20
- n("div", D, [
21
- Object.keys(e.data).length > 0 && t(s) ? (l(), r(C, {
16
+ setup(e) {
17
+ const { activeEnvVariables: k, activeEnvironment: b, activeWorkspace: i } = z(), s = h();
18
+ return (c, N) => (o(), n($, { class: "last:rounded-b-lg" }, m({
19
+ default: a(() => [
20
+ r("div", D, [
21
+ Object.keys(e.data).length > 0 && t(i) ? (o(), n(C, {
22
22
  key: 0,
23
23
  columns: [""],
24
24
  class: "rounded-b-lg"
25
25
  }, {
26
- default: o(() => [
27
- (l(!0), m(h, null, g(e.options, (a, d) => (l(), r(U, {
26
+ default: a(() => [
27
+ (o(!0), u(V, null, _(e.options, (l, d) => (o(), n(U, {
28
28
  key: d,
29
- class: V({ "border-t": d === 0 })
29
+ class: w({ "border-t": d === 0 })
30
30
  }, {
31
- default: o(() => [
32
- p(S, {
31
+ default: a(() => [
32
+ f(S, {
33
33
  class: "pr-9",
34
34
  lineWrapping: "",
35
- id: t(i),
36
- envVariables: t(f),
37
- environment: t(k),
38
- modelValue: e.data[a.key] ?? "",
39
- placeholder: a.placeholder,
40
- workspace: t(s),
41
- "onUpdate:modelValue": (_) => e.onUpdate(a.key, _)
42
- }, c({
43
- default: o(() => [
44
- n("label", { for: t(i) }, u(a.label), 9, F)
35
+ id: t(s),
36
+ envVariables: t(k),
37
+ environment: t(b),
38
+ modelValue: e.data[l.key] ?? "",
39
+ placeholder: l.placeholder,
40
+ workspace: t(i),
41
+ "onUpdate:modelValue": (v) => e.onUpdate(l.key, v)
42
+ }, m({
43
+ default: a(() => [
44
+ r("label", { for: t(s) }, p(l.label), 9, F)
45
45
  ]),
46
46
  _: 2
47
47
  }, [
48
- a.key === "description" ? {
48
+ l.key === "description" ? {
49
49
  name: "icon",
50
- fn: o(() => [
51
- n("div", I, [
52
- p(t(E), {
50
+ fn: a(() => [
51
+ r("div", I, [
52
+ f(t(E), {
53
53
  icon: "Markdown",
54
54
  size: "lg"
55
55
  })
@@ -63,15 +63,15 @@ const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"]
63
63
  }, 1032, ["class"]))), 128))
64
64
  ]),
65
65
  _: 1
66
- })) : y("", !0)
66
+ })) : g("", !0)
67
67
  ])
68
68
  ]),
69
69
  _: 2
70
70
  }, [
71
- e.title || e.$slots.title ? {
71
+ e.title || c.$slots.title ? {
72
72
  name: "title",
73
- fn: o(() => [
74
- e.title ? (l(), m("span", B, u(e.title), 1)) : w(e.$slots, "title", { key: 1 })
73
+ fn: a(() => [
74
+ e.title ? (o(), u("span", B, p(e.title), 1)) : x(c.$slots, "title", { key: 1 })
75
75
  ]),
76
76
  key: "0"
77
77
  } : void 0
@@ -79,5 +79,5 @@ const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"]
79
79
  }
80
80
  });
81
81
  export {
82
- q as default
82
+ R as default
83
83
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as c, createElementBlock as l, openBlock as n, normalizeProps as u, guardReactiveProps as m, unref as o, Fragment as f, createElementVNode as p, mergeProps as r, toDisplayString as v } from "vue";
2
- import { useBindCx as h } from "@scalar/components";
3
- const g = ["for"], y = ["id", "placeholder", "value"], b = /* @__PURE__ */ c({
1
+ import { defineComponent as m, createElementBlock as o, openBlock as n, normalizeProps as i, guardReactiveProps as f, unref as l, Fragment as v, createElementVNode as c, mergeProps as a, toDisplayString as h } from "vue";
2
+ import { useBindCx as x } from "@scalar/components";
3
+ const g = ["for"], y = ["id", "placeholder", "value"], k = /* @__PURE__ */ m({
4
4
  __name: "LabelInput",
5
5
  props: {
6
6
  inputId: {},
@@ -9,21 +9,21 @@ const g = ["for"], y = ["id", "placeholder", "value"], b = /* @__PURE__ */ c({
9
9
  layout: {}
10
10
  },
11
11
  emits: ["updateValue"],
12
- setup(_, { emit: i }) {
13
- const s = i, { cx: t } = h(), d = (e) => {
14
- const a = e.target;
15
- s("updateValue", a.value);
12
+ setup(e, { emit: p }) {
13
+ const s = p, { cx: t } = x(), d = (u) => {
14
+ const r = u.target;
15
+ s("updateValue", r.value);
16
16
  };
17
- return (e, a) => (n(), l("div", u(m(o(t)("flex-1 flex gap-1 items-center pointer-events-none group"))), [
18
- e.layout !== "modal" ? (n(), l(f, { key: 0 }, [
19
- p("label", r(
20
- o(t)(
17
+ return (u, r) => (n(), o("div", i(f(l(t)("flex-1 flex gap-1 items-center pointer-events-none group"))), [
18
+ e.layout !== "modal" ? (n(), o(v, { key: 0 }, [
19
+ c("label", a(
20
+ l(t)(
21
21
  "absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text"
22
22
  ),
23
23
  { for: e.inputId }
24
24
  ), null, 16, g),
25
- p("input", r(
26
- o(t)(
25
+ c("input", a(
26
+ l(t)(
27
27
  "flex-1 text-c-1 rounded pointer-events-auto relative w-full pl-1.25 -ml-0.5 md:-ml-1.25 h-8 group-hover-input has-[:focus-visible]:outline z-10"
28
28
  ),
29
29
  {
@@ -33,10 +33,10 @@ const g = ["for"], y = ["id", "placeholder", "value"], b = /* @__PURE__ */ c({
33
33
  onInput: d
34
34
  }
35
35
  ), null, 16, y)
36
- ], 64)) : (n(), l("span", u(r({ key: 1 }, o(t)("flex items-center text-c-1 h-8"))), v(e.value), 17))
36
+ ], 64)) : (n(), o("span", i(a({ key: 1 }, l(t)("flex items-center text-c-1 h-8"))), h(e.value), 17))
37
37
  ], 16));
38
38
  }
39
39
  });
40
40
  export {
41
- b as default
41
+ k as default
42
42
  };
@@ -1,20 +1,20 @@
1
- import { defineComponent as r, createElementBlock as n, openBlock as o, renderSlot as t } from "vue";
2
- const l = ["href"], p = /* @__PURE__ */ r({
1
+ import { defineComponent as n, createElementBlock as o, openBlock as t, renderSlot as l } from "vue";
2
+ const f = ["href"], c = /* @__PURE__ */ n({
3
3
  __name: "HelpfulLink",
4
4
  props: {
5
5
  href: {}
6
6
  },
7
- setup(s) {
8
- return (e, f) => (o(), n("a", {
7
+ setup(e) {
8
+ return (r, s) => (t(), o("a", {
9
9
  class: "decoration-c-3 cursor-help underline underline-offset-2",
10
10
  href: e.href,
11
11
  rel: "noopener noreferrer",
12
12
  target: "_blank"
13
13
  }, [
14
- t(e.$slots, "default")
15
- ], 8, l));
14
+ l(r.$slots, "default")
15
+ ], 8, f));
16
16
  }
17
17
  });
18
18
  export {
19
- p as default
19
+ c as default
20
20
  };