@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,10 +1,10 @@
1
- import { defineComponent as b, computed as x, watch as B, createElementBlock as y, openBlock as m, Fragment as V, createVNode as a, unref as o, withCtx as l, createTextVNode as d, createElementVNode as U, createBlock as f, createCommentVNode as v } from "vue";
1
+ import { defineComponent as b, computed as w, watch as B, createElementBlock as x, openBlock as c, Fragment as y, createVNode as r, unref as o, withCtx as t, createTextVNode as s, createElementVNode as U, createBlock as f, createCommentVNode as v } from "vue";
2
2
  import { useLoadingState as L, ScalarButton as S } from "@scalar/components";
3
3
  import { pkceOptions as P } from "@scalar/oas-utils/entities/spec";
4
4
  import { useToasts as R } from "@scalar/use-toasts";
5
5
  import F from "./OAuthScopesInput.vue.js";
6
6
  import { authorizeOauth2 as O } from "../helpers/oauth.js";
7
- import i from "./RequestAuthDataTableInput.vue.js";
7
+ import m from "./RequestAuthDataTableInput.vue.js";
8
8
  import u from "../../../../components/DataTable/DataTableRow.vue.js";
9
9
  const A = { class: "flex h-8 items-center justify-end gap-2 border-t" }, I = { class: "flex h-8 w-full items-center justify-end border-t" }, K = /* @__PURE__ */ b({
10
10
  __name: "OAuth2",
@@ -17,70 +17,70 @@ const A = { class: "flex h-8 items-center justify-end gap-2 border-t" }, I = { c
17
17
  proxyUrl: {}
18
18
  },
19
19
  emits: ["update:securityScheme", "update:selectedScopes"],
20
- setup(p, { emit: g }) {
21
- const k = g, c = L(), { toast: C } = R(), r = x(() => p.flows[p.type]), w = x(
22
- () => p.selectedScopes.filter((t) => t in (r.value.scopes ?? {}))
23
- ), s = (t) => k("update:securityScheme", {
20
+ setup(a, { emit: g }) {
21
+ const V = g, p = L(), { toast: C } = R(), l = w(() => a.flows[a.type]), k = w(
22
+ () => a.selectedScopes.filter((i) => i in (l.value.scopes ?? {}))
23
+ ), d = (i) => V("update:securityScheme", {
24
24
  type: "oauth2",
25
25
  flows: {
26
- [p.type]: t
26
+ [a.type]: i
27
27
  }
28
28
  });
29
29
  B(
30
- () => r.value["x-scalar-secret-redirect-uri"],
31
- (t) => {
32
- t || typeof window > "u" || !("x-scalar-secret-redirect-uri" in r.value) || s({
30
+ () => l.value["x-scalar-secret-redirect-uri"],
31
+ (i) => {
32
+ i || typeof window > "u" || !("x-scalar-secret-redirect-uri" in l.value) || d({
33
33
  "x-scalar-secret-redirect-uri": window.location.origin + window.location.pathname
34
34
  });
35
35
  },
36
36
  { immediate: !0 }
37
37
  );
38
38
  const T = async () => {
39
- if (c.isLoading)
39
+ if (p.isLoading)
40
40
  return;
41
- c.start();
42
- const [t, e] = await O(
43
- p.flows,
44
- p.type,
45
- w.value,
46
- p.server,
47
- p.proxyUrl
41
+ p.start();
42
+ const [i, e] = await O(
43
+ a.flows,
44
+ a.type,
45
+ k.value,
46
+ a.server,
47
+ a.proxyUrl
48
48
  );
49
- await c.clear(), e ? s({ "x-scalar-secret-token": e }) : (console.error(t), C(t?.message ?? "Failed to authorize", "error"));
50
- }, z = (t) => s({
51
- "x-scalar-credentials-location": t === "body" ? "body" : "header"
49
+ await p.clear(), e ? d({ "x-scalar-secret-token": e }) : (console.error(i), C(i?.message ?? "Failed to authorize", "error"));
50
+ }, z = (i) => d({
51
+ "x-scalar-credentials-location": i === "body" ? "body" : "header"
52
52
  });
53
- return (t, e) => r.value["x-scalar-secret-token"] ? (m(), y(V, { key: 0 }, [
54
- a(o(u), null, {
55
- default: l(() => [
56
- a(i, {
53
+ return (i, e) => l.value["x-scalar-secret-token"] ? (c(), x(y, { key: 0 }, [
54
+ r(o(u), null, {
55
+ default: t(() => [
56
+ r(m, {
57
57
  class: "border-r-transparent",
58
- environment: t.environment,
59
- modelValue: r.value["x-scalar-secret-token"],
58
+ environment: a.environment,
59
+ modelValue: l.value["x-scalar-secret-token"],
60
60
  placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
61
61
  type: "password",
62
- "onUpdate:modelValue": e[0] || (e[0] = (n) => s({ "x-scalar-secret-token": n }))
62
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => d({ "x-scalar-secret-token": n }))
63
63
  }, {
64
- default: l(() => [...e[12] || (e[12] = [
65
- d(" Access Token ", -1)
64
+ default: t(() => [...e[12] || (e[12] = [
65
+ s(" Access Token ", -1)
66
66
  ])]),
67
67
  _: 1
68
68
  }, 8, ["environment", "modelValue"])
69
69
  ]),
70
70
  _: 1
71
71
  }),
72
- a(o(u), { class: "min-w-full" }, {
73
- default: l(() => [
72
+ r(o(u), { class: "min-w-full" }, {
73
+ default: t(() => [
74
74
  U("div", A, [
75
- a(o(S), {
75
+ r(o(S), {
76
76
  class: "mr-1 p-0 px-2 py-0.5",
77
- loader: o(c),
77
+ loader: o(p),
78
78
  size: "sm",
79
79
  variant: "outlined",
80
- onClick: e[1] || (e[1] = () => s({ "x-scalar-secret-token": "" }))
80
+ onClick: e[1] || (e[1] = () => d({ "x-scalar-secret-token": "" }))
81
81
  }, {
82
- default: l(() => [...e[13] || (e[13] = [
83
- d(" Clear ", -1)
82
+ default: t(() => [...e[13] || (e[13] = [
83
+ s(" Clear ", -1)
84
84
  ])]),
85
85
  _: 1
86
86
  }, 8, ["loader"])
@@ -88,82 +88,82 @@ const A = { class: "flex h-8 items-center justify-end gap-2 border-t" }, I = { c
88
88
  ]),
89
89
  _: 1
90
90
  })
91
- ], 64)) : (m(), y(V, { key: 1 }, [
92
- a(o(u), null, {
93
- default: l(() => [
94
- "authorizationUrl" in r.value ? (m(), f(i, {
91
+ ], 64)) : (c(), x(y, { key: 1 }, [
92
+ r(o(u), null, {
93
+ default: t(() => [
94
+ "authorizationUrl" in l.value ? (c(), f(m, {
95
95
  key: 0,
96
96
  containerClass: "border-r-0",
97
- environment: t.environment,
98
- modelValue: r.value.authorizationUrl,
97
+ environment: a.environment,
98
+ modelValue: l.value.authorizationUrl,
99
99
  placeholder: "https://galaxy.scalar.com/authorize",
100
- "onUpdate:modelValue": e[2] || (e[2] = (n) => s({ authorizationUrl: n }))
100
+ "onUpdate:modelValue": e[2] || (e[2] = (n) => d({ authorizationUrl: n }))
101
101
  }, {
102
- default: l(() => [...e[14] || (e[14] = [
103
- d(" Auth URL ", -1)
102
+ default: t(() => [...e[14] || (e[14] = [
103
+ s(" Auth URL ", -1)
104
104
  ])]),
105
105
  _: 1
106
106
  }, 8, ["environment", "modelValue"])) : v("", !0),
107
- "tokenUrl" in r.value ? (m(), f(i, {
107
+ "tokenUrl" in l.value ? (c(), f(m, {
108
108
  key: 1,
109
- environment: t.environment,
110
- modelValue: r.value.tokenUrl,
109
+ environment: a.environment,
110
+ modelValue: l.value.tokenUrl,
111
111
  placeholder: "https://galaxy.scalar.com/token",
112
- "onUpdate:modelValue": e[3] || (e[3] = (n) => s({ tokenUrl: n }))
112
+ "onUpdate:modelValue": e[3] || (e[3] = (n) => d({ tokenUrl: n }))
113
113
  }, {
114
- default: l(() => [...e[15] || (e[15] = [
115
- d(" Token URL ", -1)
114
+ default: t(() => [...e[15] || (e[15] = [
115
+ s(" Token URL ", -1)
116
116
  ])]),
117
117
  _: 1
118
118
  }, 8, ["environment", "modelValue"])) : v("", !0)
119
119
  ]),
120
120
  _: 1
121
121
  }),
122
- "x-scalar-secret-redirect-uri" in r.value ? (m(), f(o(u), { key: 0 }, {
123
- default: l(() => [
124
- a(i, {
125
- environment: t.environment,
126
- modelValue: r.value["x-scalar-secret-redirect-uri"],
122
+ "x-scalar-secret-redirect-uri" in l.value ? (c(), f(o(u), { key: 0 }, {
123
+ default: t(() => [
124
+ r(m, {
125
+ environment: a.environment,
126
+ modelValue: l.value["x-scalar-secret-redirect-uri"],
127
127
  placeholder: "https://galaxy.scalar.com/callback",
128
- "onUpdate:modelValue": e[4] || (e[4] = (n) => s({ "x-scalar-secret-redirect-uri": n }))
128
+ "onUpdate:modelValue": e[4] || (e[4] = (n) => d({ "x-scalar-secret-redirect-uri": n }))
129
129
  }, {
130
- default: l(() => [...e[16] || (e[16] = [
131
- d(" Redirect URL ", -1)
130
+ default: t(() => [...e[16] || (e[16] = [
131
+ s(" Redirect URL ", -1)
132
132
  ])]),
133
133
  _: 1
134
134
  }, 8, ["environment", "modelValue"])
135
135
  ]),
136
136
  _: 1
137
137
  })) : v("", !0),
138
- "x-scalar-secret-username" in r.value && "x-scalar-secret-password" in r.value ? (m(), y(V, { key: 1 }, [
139
- a(o(u), null, {
140
- default: l(() => [
141
- a(i, {
138
+ "x-scalar-secret-username" in l.value && "x-scalar-secret-password" in l.value ? (c(), x(y, { key: 1 }, [
139
+ r(o(u), null, {
140
+ default: t(() => [
141
+ r(m, {
142
142
  class: "text-c-2",
143
- environment: t.environment,
144
- modelValue: r.value["x-scalar-secret-username"],
143
+ environment: a.environment,
144
+ modelValue: l.value["x-scalar-secret-username"],
145
145
  placeholder: "janedoe",
146
- "onUpdate:modelValue": e[5] || (e[5] = (n) => s({ "x-scalar-secret-username": n }))
146
+ "onUpdate:modelValue": e[5] || (e[5] = (n) => d({ "x-scalar-secret-username": n }))
147
147
  }, {
148
- default: l(() => [...e[17] || (e[17] = [
149
- d(" Username ", -1)
148
+ default: t(() => [...e[17] || (e[17] = [
149
+ s(" Username ", -1)
150
150
  ])]),
151
151
  _: 1
152
152
  }, 8, ["environment", "modelValue"])
153
153
  ]),
154
154
  _: 1
155
155
  }),
156
- a(o(u), null, {
157
- default: l(() => [
158
- a(i, {
159
- environment: t.environment,
160
- modelValue: r.value["x-scalar-secret-password"],
156
+ r(o(u), null, {
157
+ default: t(() => [
158
+ r(m, {
159
+ environment: a.environment,
160
+ modelValue: l.value["x-scalar-secret-password"],
161
161
  placeholder: "********",
162
162
  type: "password",
163
- "onUpdate:modelValue": e[6] || (e[6] = (n) => s({ "x-scalar-secret-password": n }))
163
+ "onUpdate:modelValue": e[6] || (e[6] = (n) => d({ "x-scalar-secret-password": n }))
164
164
  }, {
165
- default: l(() => [...e[18] || (e[18] = [
166
- d(" Password ", -1)
165
+ default: t(() => [...e[18] || (e[18] = [
166
+ s(" Password ", -1)
167
167
  ])]),
168
168
  _: 1
169
169
  }, 8, ["environment", "modelValue"])
@@ -171,99 +171,99 @@ const A = { class: "flex h-8 items-center justify-end gap-2 border-t" }, I = { c
171
171
  _: 1
172
172
  })
173
173
  ], 64)) : v("", !0),
174
- a(o(u), null, {
175
- default: l(() => [
176
- a(i, {
177
- environment: t.environment,
178
- modelValue: r.value["x-scalar-secret-client-id"],
174
+ r(o(u), null, {
175
+ default: t(() => [
176
+ r(m, {
177
+ environment: a.environment,
178
+ modelValue: l.value["x-scalar-secret-client-id"],
179
179
  placeholder: "12345",
180
- "onUpdate:modelValue": e[7] || (e[7] = (n) => s({ "x-scalar-secret-client-id": n }))
180
+ "onUpdate:modelValue": e[7] || (e[7] = (n) => d({ "x-scalar-secret-client-id": n }))
181
181
  }, {
182
- default: l(() => [...e[19] || (e[19] = [
183
- d(" Client ID ", -1)
182
+ default: t(() => [...e[19] || (e[19] = [
183
+ s(" Client ID ", -1)
184
184
  ])]),
185
185
  _: 1
186
186
  }, 8, ["environment", "modelValue"])
187
187
  ]),
188
188
  _: 1
189
189
  }),
190
- "x-scalar-secret-client-secret" in r.value ? (m(), f(o(u), { key: 2 }, {
191
- default: l(() => [
192
- a(i, {
193
- environment: t.environment,
194
- modelValue: r.value["x-scalar-secret-client-secret"],
190
+ "x-scalar-secret-client-secret" in l.value ? (c(), f(o(u), { key: 2 }, {
191
+ default: t(() => [
192
+ r(m, {
193
+ environment: a.environment,
194
+ modelValue: l.value["x-scalar-secret-client-secret"],
195
195
  placeholder: "XYZ123",
196
196
  type: "password",
197
- "onUpdate:modelValue": e[8] || (e[8] = (n) => s({ "x-scalar-secret-client-secret": n }))
197
+ "onUpdate:modelValue": e[8] || (e[8] = (n) => d({ "x-scalar-secret-client-secret": n }))
198
198
  }, {
199
- default: l(() => [...e[20] || (e[20] = [
200
- d(" Client Secret ", -1)
199
+ default: t(() => [...e[20] || (e[20] = [
200
+ s(" Client Secret ", -1)
201
201
  ])]),
202
202
  _: 1
203
203
  }, 8, ["environment", "modelValue"])
204
204
  ]),
205
205
  _: 1
206
206
  })) : v("", !0),
207
- "x-usePkce" in r.value ? (m(), f(o(u), { key: 3 }, {
208
- default: l(() => [
209
- a(i, {
207
+ "x-usePkce" in l.value ? (c(), f(o(u), { key: 3 }, {
208
+ default: t(() => [
209
+ r(m, {
210
210
  enum: o(P),
211
- environment: t.environment,
212
- modelValue: r.value["x-usePkce"],
211
+ environment: a.environment,
212
+ modelValue: l.value["x-usePkce"],
213
213
  readOnly: "",
214
- "onUpdate:modelValue": e[9] || (e[9] = (n) => s({
214
+ "onUpdate:modelValue": e[9] || (e[9] = (n) => d({
215
215
  "x-usePkce": n
216
216
  }))
217
217
  }, {
218
- default: l(() => [...e[21] || (e[21] = [
219
- d(" Use PKCE ", -1)
218
+ default: t(() => [...e[21] || (e[21] = [
219
+ s(" Use PKCE ", -1)
220
220
  ])]),
221
221
  _: 1
222
222
  }, 8, ["enum", "environment", "modelValue"])
223
223
  ]),
224
224
  _: 1
225
225
  })) : v("", !0),
226
- t.type !== "implicit" ? (m(), f(o(u), { key: 4 }, {
227
- default: l(() => [
228
- a(i, {
226
+ a.type !== "implicit" ? (c(), f(o(u), { key: 4 }, {
227
+ default: t(() => [
228
+ r(m, {
229
229
  enum: ["header", "body"],
230
- environment: t.environment,
231
- modelValue: r.value["x-scalar-credentials-location"] || "header",
230
+ environment: a.environment,
231
+ modelValue: l.value["x-scalar-credentials-location"] || "header",
232
232
  placeholder: "header",
233
233
  readOnly: "",
234
234
  "onUpdate:modelValue": e[10] || (e[10] = (n) => z(n))
235
235
  }, {
236
- default: l(() => [...e[22] || (e[22] = [
237
- d(" Credentials Location ", -1)
236
+ default: t(() => [...e[22] || (e[22] = [
237
+ s(" Credentials Location ", -1)
238
238
  ])]),
239
239
  _: 1
240
240
  }, 8, ["environment", "modelValue"])
241
241
  ]),
242
242
  _: 1
243
243
  })) : v("", !0),
244
- a(o(u), null, {
245
- default: l(() => [
246
- a(F, {
247
- flow: r.value,
248
- flowType: t.type,
249
- selectedScopes: w.value,
250
- "onUpdate:selectedScopes": e[11] || (e[11] = (n) => k("update:selectedScopes", n))
244
+ r(o(u), null, {
245
+ default: t(() => [
246
+ r(F, {
247
+ flow: l.value,
248
+ flowType: a.type,
249
+ selectedScopes: k.value,
250
+ "onUpdate:selectedScopes": e[11] || (e[11] = (n) => V("update:selectedScopes", n))
251
251
  }, null, 8, ["flow", "flowType", "selectedScopes"])
252
252
  ]),
253
253
  _: 1
254
254
  }),
255
- a(o(u), { class: "min-w-full" }, {
256
- default: l(() => [
255
+ r(o(u), { class: "min-w-full" }, {
256
+ default: t(() => [
257
257
  U("div", I, [
258
- a(o(S), {
258
+ r(o(S), {
259
259
  class: "mr-0.75 p-0 px-2 py-0.5",
260
- loader: o(c),
260
+ loader: o(p),
261
261
  size: "sm",
262
262
  variant: "outlined",
263
263
  onClick: T
264
264
  }, {
265
- default: l(() => [...e[23] || (e[23] = [
266
- d(" Authorize ", -1)
265
+ default: t(() => [...e[23] || (e[23] = [
266
+ s(" Authorize ", -1)
267
267
  ])]),
268
268
  _: 1
269
269
  }, 8, ["loader"])
@@ -1,35 +1,35 @@
1
- import { defineComponent as c, ref as v, watch as V, createBlock as b, openBlock as x, unref as S, withCtx as o, createVNode as l, createElementVNode as m, createTextVNode as n } from "vue";
1
+ import { defineComponent as f, ref as v, watch as x, createBlock as V, openBlock as b, unref as S, withCtx as o, createVNode as l, createElementVNode as m, createTextVNode as n } from "vue";
2
2
  import { ScalarModal as A } from "@scalar/components";
3
3
  import { useToasts as N } from "@scalar/use-toasts";
4
4
  import g from "../../../../components/CommandPalette/CommandActionForm.vue.js";
5
5
  import r from "../../../../components/CommandPalette/CommandActionInput.vue.js";
6
- const C = { class: "flex h-8 items-start gap-2 text-sm" }, $ = { class: "flex h-8 items-start gap-2 text-sm" }, T = /* @__PURE__ */ c({
6
+ const C = { class: "flex h-8 items-start gap-2 text-sm" }, $ = { class: "flex h-8 items-start gap-2 text-sm" }, T = /* @__PURE__ */ f({
7
7
  __name: "OAuthScopesAddModal",
8
8
  props: {
9
9
  state: {},
10
10
  scopes: {}
11
11
  },
12
12
  emits: ["cancel", "submit"],
13
- setup(d, { emit: u }) {
14
- const i = u, t = v({
13
+ setup(a, { emit: u }) {
14
+ const d = u, t = v({
15
15
  name: "",
16
16
  description: ""
17
- }), { toast: p } = N(), f = () => {
17
+ }), { toast: p } = N(), c = () => {
18
18
  if (!t.value.name) {
19
19
  p("Please fill in the name before adding a scope.", "error");
20
20
  return;
21
21
  }
22
- i("submit", t.value), d.state.hide();
22
+ d("submit", t.value), a.state.hide();
23
23
  };
24
- return V(
25
- () => d.state.open,
26
- (a) => {
27
- a && (t.value = {
24
+ return x(
25
+ () => a.state.open,
26
+ (i) => {
27
+ i && (t.value = {
28
28
  name: "",
29
29
  description: ""
30
30
  });
31
31
  }
32
- ), (a, e) => (x(), b(S(A), {
32
+ ), (i, e) => (b(), V(S(A), {
33
33
  size: "xs",
34
34
  state: a.state,
35
35
  title: "Add Scope"
@@ -37,8 +37,8 @@ const C = { class: "flex h-8 items-start gap-2 text-sm" }, $ = { class: "flex h-
37
37
  default: o(() => [
38
38
  l(g, {
39
39
  disabled: !t.value.name || a.scopes.includes(t.value.name),
40
- onCancel: e[2] || (e[2] = (s) => i("cancel")),
41
- onSubmit: f
40
+ onCancel: e[2] || (e[2] = (s) => d("cancel")),
41
+ onSubmit: c
42
42
  }, {
43
43
  submit: o(() => [...e[5] || (e[5] = [
44
44
  n("Add Scope", -1)
@@ -1,14 +1,14 @@
1
- import { defineComponent as T, computed as y, createBlock as p, openBlock as a, unref as s, withCtx as l, createElementVNode as r, createVNode as c, normalizeClass as j, toDisplayString as d, createCommentVNode as u, withModifiers as m, createTextVNode as f, createElementBlock as b, Fragment as z, renderList as B } from "vue";
1
+ import { defineComponent as T, computed as y, createBlock as r, openBlock as a, unref as s, withCtx as l, createElementVNode as i, createVNode as c, normalizeClass as j, toDisplayString as u, createCommentVNode as p, withModifiers as m, createTextVNode as f, createElementBlock as b, Fragment as z, renderList as B } from "vue";
2
2
  import { Disclosure as N, DisclosureButton as M, DisclosurePanel as $ } from "@headlessui/vue";
3
3
  import { useModal as E, ScalarButton as S, ScalarIcon as I } from "@scalar/components";
4
4
  import P from "./OAuthScopesAddModal.vue.js";
5
5
  import C from "../../../../components/DataTable/DataTableCell.vue.js";
6
6
  import R from "../../../../components/DataTable/DataTableRow.vue.js";
7
7
  import U from "../../../../components/DataTable/DataTableCheckbox.vue.js";
8
- const F = { class: "flex h-fit w-full" }, L = { class: "flex-1" }, _ = { class: "flex items-center gap-1.75" }, q = {
8
+ const F = { class: "flex h-fit w-full" }, L = { class: "flex-1" }, q = { class: "flex items-center gap-1.75" }, G = {
9
9
  class: "grid auto-rows-auto",
10
10
  style: { gridTemplateColumns: "1fr auto" }
11
- }, G = { class: "font-code text-xs" }, H = { key: 0 }, ee = /* @__PURE__ */ T({
11
+ }, H = { class: "font-code text-xs" }, J = { key: 0 }, ee = /* @__PURE__ */ T({
12
12
  __name: "OAuthScopesInput",
13
13
  props: {
14
14
  flowType: {},
@@ -16,30 +16,30 @@ const F = { class: "flex h-fit w-full" }, L = { class: "flex-1" }, _ = { class:
16
16
  selectedScopes: {}
17
17
  },
18
18
  emits: ["update:selectedScopes"],
19
- setup(n, { emit: A }) {
20
- const i = A, V = y(
21
- () => Object.entries(n.flow?.scopes ?? {}).map(([t, e]) => ({
22
- id: t,
23
- label: t,
19
+ setup(t, { emit: A }) {
20
+ const d = A, V = y(
21
+ () => Object.entries(t.flow?.scopes ?? {}).map(([n, e]) => ({
22
+ id: n,
23
+ label: n,
24
24
  description: e
25
25
  }))
26
- ), h = y(
27
- () => n.selectedScopes.length === Object.keys(n.flow?.scopes ?? {}).length
26
+ ), x = y(
27
+ () => t.selectedScopes.length === Object.keys(t.flow?.scopes ?? {}).length
28
28
  );
29
- function w(t, e) {
29
+ function h(n, e) {
30
30
  if (e)
31
- return i("update:selectedScopes", {
32
- scopes: Array.from(/* @__PURE__ */ new Set([...n.selectedScopes, t]))
31
+ return d("update:selectedScopes", {
32
+ scopes: Array.from(/* @__PURE__ */ new Set([...t.selectedScopes, n]))
33
33
  });
34
- i("update:selectedScopes", {
35
- scopes: n.selectedScopes.filter((o) => o !== t)
34
+ d("update:selectedScopes", {
35
+ scopes: t.selectedScopes.filter((o) => o !== n)
36
36
  });
37
37
  }
38
- const D = () => i("update:selectedScopes", { scopes: Object.keys(n.flow?.scopes ?? {}) }), O = () => i("update:selectedScopes", { scopes: [] }), v = E();
39
- return (t, e) => (a(), p(s(C), { class: "h-auto !max-h-[initial] min-h-8 items-center" }, {
38
+ const D = () => d("update:selectedScopes", { scopes: Object.keys(t.flow?.scopes ?? {}) }), O = () => d("update:selectedScopes", { scopes: [] }), w = E();
39
+ return (n, e) => (a(), r(s(C), { class: "h-auto !max-h-[initial] min-h-8 items-center" }, {
40
40
  default: l(() => [
41
- r("div", F, [
42
- e[5] || (e[5] = r("div", { class: "text-c-1 h-full items-center" }, null, -1)),
41
+ i("div", F, [
42
+ e[5] || (e[5] = i("div", { class: "text-c-1 h-full items-center" }, null, -1)),
43
43
  c(s(N), {
44
44
  as: "div",
45
45
  class: "bl flex w-full flex-col"
@@ -52,20 +52,20 @@ const F = { class: "flex h-fit w-full" }, L = { class: "flex-1" }, _ = { class:
52
52
  ])
53
53
  }, {
54
54
  default: l(({ open: o }) => [
55
- r("div", L, " Scopes Selected " + d(t.selectedScopes.length || 0) + " / " + d(Object.keys(t.flow?.scopes ?? {}).length || 0), 1),
56
- r("div", _, [
55
+ i("div", L, " Scopes Selected " + u(t.selectedScopes.length || 0) + " / " + u(Object.keys(t.flow?.scopes ?? {}).length || 0), 1),
56
+ i("div", q, [
57
57
  c(s(S), {
58
58
  class: "pr-0.75 pl-1 transition-none",
59
59
  size: "sm",
60
60
  variant: "ghost",
61
- onClick: e[0] || (e[0] = m((g) => s(v).show(), ["stop"]))
61
+ onClick: e[0] || (e[0] = m((v) => s(w).show(), ["stop"]))
62
62
  }, {
63
63
  default: l(() => [...e[2] || (e[2] = [
64
64
  f(" Add Scope ", -1)
65
65
  ])]),
66
66
  _: 1
67
67
  }),
68
- h.value ? (a(), p(s(S), {
68
+ x.value ? (a(), r(s(S), {
69
69
  key: 0,
70
70
  class: "pr-0.75 pl-1 transition-none",
71
71
  size: "sm",
@@ -76,8 +76,8 @@ const F = { class: "flex h-fit w-full" }, L = { class: "flex-1" }, _ = { class:
76
76
  f(" Deselect All ", -1)
77
77
  ])]),
78
78
  _: 1
79
- })) : u("", !0),
80
- h.value ? u("", !0) : (a(), p(s(S), {
79
+ })) : p("", !0),
80
+ x.value ? p("", !0) : (a(), r(s(S), {
81
81
  key: 1,
82
82
  class: "pr-0.75 pl-1 transition-none",
83
83
  size: "sm",
@@ -100,23 +100,23 @@ const F = { class: "flex h-fit w-full" }, L = { class: "flex-1" }, _ = { class:
100
100
  }, 8, ["class"]),
101
101
  c(s($), { as: "template" }, {
102
102
  default: l(() => [
103
- r("table", q, [
104
- (a(!0), b(z, null, B(V.value, ({ id: o, label: g, description: x }) => (a(), p(s(R), {
103
+ i("table", G, [
104
+ (a(!0), b(z, null, B(V.value, ({ id: o, label: v, description: g }) => (a(), r(s(R), {
105
105
  key: o,
106
106
  class: "text-c-2",
107
- onClick: (k) => w(o, !t.selectedScopes.includes(o))
107
+ onClick: (k) => h(o, !t.selectedScopes.includes(o))
108
108
  }, {
109
109
  default: l(() => [
110
110
  c(s(C), { class: "hover:text-c-1 box-border !max-h-[initial] w-full cursor-pointer px-3 py-1.5" }, {
111
111
  default: l(() => [
112
- r("span", G, d(g), 1),
113
- x ? (a(), b("span", H, "   – " + d(x), 1)) : u("", !0)
112
+ i("span", H, u(v), 1),
113
+ g ? (a(), b("span", J, "   – " + u(g), 1)) : p("", !0)
114
114
  ]),
115
115
  _: 2
116
116
  }, 1024),
117
117
  c(s(U), {
118
118
  modelValue: t.selectedScopes.includes(o),
119
- "onUpdate:modelValue": (k) => w(o, k)
119
+ "onUpdate:modelValue": (k) => h(o, k)
120
120
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
121
121
  ]),
122
122
  _: 2
@@ -131,8 +131,8 @@ const F = { class: "flex h-fit w-full" }, L = { class: "flex-1" }, _ = { class:
131
131
  ]),
132
132
  c(P, {
133
133
  scopes: Object.keys(t.flow.scopes ?? {}),
134
- state: s(v),
135
- onSubmit: e[1] || (e[1] = (o) => i("update:selectedScopes", {
134
+ state: s(w),
135
+ onSubmit: e[1] || (e[1] = (o) => d("update:selectedScopes", {
136
136
  scopes: t.selectedScopes,
137
137
  newScopePayload: { ...o, flowType: t.flowType }
138
138
  }))
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue"],"names":[],"mappings":"AAuJA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAA;AAK1G,KAAK,WAAW,GAAG;IACjB,4CAA4C;IAC5C,WAAW,EAAE,kBAAkB,CAAA;IAC/B,mEAAmE;IACnE,QAAQ,EAAE,OAAO,CAAA;IACjB,8CAA8C;IAC9C,qBAAqB,EAAE,oBAAoB,EAAE,CAAA;IAC7C,uDAAuD;IACvD,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,0CAA0C;IAC1C,eAAe,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAA;IACpD,mCAAmC;IACnC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,2CAA2C;IAC3C,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,0CAA0C;IAC1C,IAAI,EAAE,QAAQ,CAAA;CACf,CAAC;;;;AA0OF,wBAOG"}
1
+ {"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue"],"names":[],"mappings":"AAwJA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAA;AAK1G,KAAK,WAAW,GAAG;IACjB,4CAA4C;IAC5C,WAAW,EAAE,kBAAkB,CAAA;IAC/B,mEAAmE;IACnE,QAAQ,EAAE,OAAO,CAAA;IACjB,8CAA8C;IAC9C,qBAAqB,EAAE,oBAAoB,EAAE,CAAA;IAC7C,uDAAuD;IACvD,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,0CAA0C;IAC1C,eAAe,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAA;IACpD,mCAAmC;IACnC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,2CAA2C;IAC3C,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,0CAA0C;IAC1C,IAAI,EAAE,QAAQ,CAAA;CACf,CAAC;;;;AA2OF,wBAOG"}