@scalar/api-client 2.18.0 → 2.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/dist/components/AddressBar/AddressBar.vue2.js +52 -52
  3. package/dist/components/AddressBar/AddressBarHistory.vue2.js +15 -15
  4. package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -33
  5. package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
  6. package/dist/components/AddressBar/httpStatusCodeColors.js +0 -1
  7. package/dist/components/CodeInput/CodeInput.vue2.js +112 -112
  8. package/dist/components/CommandPalette/CommandActionForm.vue.js +18 -18
  9. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +25 -25
  10. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -4
  13. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -1
  14. package/dist/components/CommandPalette/WatchModeToggle.vue.js +14 -14
  15. package/dist/components/DataTable/DataTable.vue.js +17 -17
  16. package/dist/components/DataTable/DataTableCell.vue.js +9 -9
  17. package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
  18. package/dist/components/DataTable/DataTableInput.vue2.js +48 -48
  19. package/dist/components/DataTable/DataTableInputSelect.vue.js +35 -35
  20. package/dist/components/DataTable/DataTableText.vue.js +10 -10
  21. package/dist/components/Form/Form.vue.js +32 -32
  22. package/dist/components/Form/LabelInput.vue2.js +15 -15
  23. package/dist/components/HelpfulLink.vue.js +7 -7
  24. package/dist/components/HttpMethod/HttpMethod.vue2.js +22 -22
  25. package/dist/components/IconSelector.vue.js +16 -16
  26. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +50 -50
  27. package/dist/components/ImportCollection/ImportNowButton.vue.js +23 -23
  28. package/dist/components/ImportCollection/PrefetchError.vue.js +8 -8
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -7
  30. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  31. package/dist/components/ScalarAsciiArt.vue2.js +16 -16
  32. package/dist/components/SectionFilter.vue2.js +21 -21
  33. package/dist/components/SectionFilterButton.vue.js +7 -7
  34. package/dist/components/Server/ServerDropdown.vue.js +32 -32
  35. package/dist/components/Server/ServerDropdownItem.vue2.js +39 -39
  36. package/dist/components/Server/ServerSelector.vue.js +27 -27
  37. package/dist/components/Server/ServerVariablesForm.vue.js +26 -26
  38. package/dist/components/Server/ServerVariablesSelect.vue.js +21 -21
  39. package/dist/components/Server/ServerVariablesTextbox.vue.js +10 -10
  40. package/dist/components/Server/types.d.ts +2 -1
  41. package/dist/components/Server/types.d.ts.map +1 -1
  42. package/dist/components/SideNav/SideNavLink.vue.js +18 -18
  43. package/dist/components/SideNav/SideNavRouterLink.vue.js +13 -13
  44. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +11 -11
  45. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +16 -16
  46. package/dist/components/Sidebar/Sidebar.vue2.js +28 -28
  47. package/dist/components/Sidebar/SidebarButton.vue.js +12 -12
  48. package/dist/components/Sidebar/SidebarListElement.vue2.js +34 -34
  49. package/dist/components/Sidebar/SidebarListElementActions.vue.js +33 -33
  50. package/dist/components/TopNav/TopNavItem.vue2.js +41 -41
  51. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +43 -43
  52. package/dist/data/httpHeaders.d.ts +2 -1
  53. package/dist/data/httpHeaders.d.ts.map +1 -1
  54. package/dist/hooks/useClientConfig.js +1 -1
  55. package/dist/hooks/useLayout.js +1 -1
  56. package/dist/hooks/useSidebar.js +1 -1
  57. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  58. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  59. package/dist/libs/create-client.d.ts.map +1 -1
  60. package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
  61. package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
  62. package/dist/plugins/hooks/usePluginManager.js +5 -5
  63. package/dist/plugins/index.d.ts +1 -1
  64. package/dist/plugins/index.d.ts.map +1 -1
  65. package/dist/plugins/index.js +5 -5
  66. package/dist/plugins/plugin-manager.d.ts +0 -2
  67. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  68. package/dist/routes.d.ts +0 -10
  69. package/dist/routes.d.ts.map +1 -1
  70. package/dist/routes.js +0 -1
  71. package/dist/store/active-entities.js +1 -1
  72. package/dist/store/security-schemes.d.ts.map +1 -1
  73. package/dist/store/store.d.ts.map +1 -1
  74. package/dist/style.css +1 -1
  75. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  76. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
  77. package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
  78. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  79. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
  80. package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +0 -2
  81. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
  82. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
  83. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
  84. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  85. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
  86. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
  87. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  88. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
  89. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
  90. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
  91. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
  92. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  93. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
  94. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  95. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  96. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
  97. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
  98. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  99. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  100. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
  101. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
  102. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
  103. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
  104. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
  105. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
  106. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  107. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
  108. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
  109. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  110. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
  111. package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
  112. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
  113. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  114. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
  115. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
  116. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
  117. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  118. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
  119. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
  120. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
  121. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
  122. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
  123. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
  124. package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
  125. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
  126. package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
  127. package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
  128. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
  129. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
  130. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
  131. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
  132. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
  133. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
  134. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
  135. package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
  136. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
  137. package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
  138. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
  139. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
  140. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
  141. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
  142. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  144. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +83 -82
  145. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
  146. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
  147. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
  148. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
  149. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  150. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +26 -26
  151. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
  152. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
  153. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  154. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +130 -122
  155. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
  156. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  157. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
  158. package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
  159. package/dist/v2/components/data-table/DataTable.vue.js +17 -17
  160. package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
  161. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
  162. package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
  163. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
  164. package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
  165. package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
  166. package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
  167. package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
  168. package/dist/v2/components/resize/Resize.vue2.js +11 -11
  169. package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
  170. package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
  171. package/dist/v2/components/sidebar/Sidebar.vue.js +32 -32
  172. package/dist/v2/components/sidebar/SidebarMenu.vue.js +20 -20
  173. package/dist/v2/features/app/App.vue.js +25 -25
  174. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  175. package/dist/v2/features/app/app-events.js +55 -61
  176. package/dist/v2/features/app/components/AppSidebar.vue2.js +97 -97
  177. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
  178. package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
  179. package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
  180. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
  181. package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
  182. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -5
  183. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  184. package/dist/v2/features/app/helpers/create-api-client-app.js +1 -2
  185. package/dist/v2/features/app/helpers/routes.d.ts +5 -1
  186. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  187. package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
  188. package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
  189. package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
  190. package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
  191. package/dist/v2/features/collection/components/Environment.vue.js +10 -10
  192. package/dist/v2/features/collection/components/Form.vue.js +21 -21
  193. package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
  194. package/dist/v2/features/collection/components/Servers.vue.js +37 -37
  195. package/dist/v2/features/collection/components/Settings.vue.js +22 -22
  196. package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
  197. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
  198. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
  199. package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
  200. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
  201. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
  202. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
  203. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
  204. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
  205. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
  206. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  207. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
  208. package/dist/v2/features/command-palette/types.d.ts +11 -10
  209. package/dist/v2/features/command-palette/types.d.ts.map +1 -1
  210. package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
  211. package/dist/v2/features/environments/components/Environment.vue.js +16 -16
  212. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
  213. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
  214. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
  215. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
  216. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
  217. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
  218. package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
  219. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  220. package/dist/v2/features/modal/Modal.vue.js +1 -1
  221. package/dist/v2/features/modal/Modal.vue2.js +57 -56
  222. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +5 -4
  223. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  224. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
  225. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
  226. package/dist/v2/features/operation/Operation.vue.d.ts +5 -1
  227. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  228. package/dist/v2/features/operation/Operation.vue.js +41 -39
  229. package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
  230. package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
  231. package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
  232. package/dist/v2/features/search/types.d.ts +5 -4
  233. package/dist/v2/features/search/types.d.ts.map +1 -1
  234. package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
  235. package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
  236. package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
  237. package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
  238. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  239. package/dist/v2/helpers/handle-hotkeys.js +0 -2
  240. package/dist/v2/helpers/plugins.d.ts +2 -2
  241. package/dist/v2/helpers/plugins.d.ts.map +1 -1
  242. package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
  243. package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
  244. package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
  245. package/dist/views/Cookies/CookieModal.vue2.js +26 -26
  246. package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
  247. package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
  248. package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
  249. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
  250. package/dist/views/Request/Request.vue2.js +55 -55
  251. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
  252. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
  253. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
  254. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  255. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
  256. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  257. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
  258. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
  259. package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
  260. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
  261. package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
  262. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
  263. package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
  264. package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
  265. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
  266. package/dist/views/Request/RequestSection/index.d.ts +1 -1
  267. package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
  268. package/dist/views/Request/RequestSection/index.js +4 -4
  269. package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
  270. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
  271. package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
  272. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
  273. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
  274. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
  275. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
  276. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
  277. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
  278. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
  279. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
  280. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
  281. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
  282. package/package.json +24 -24
  283. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
  284. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
  285. package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
  286. package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
  287. package/dist/components/ScreenReader.vue.d.ts +0 -20
  288. package/dist/components/ScreenReader.vue.d.ts.map +0 -1
  289. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
  290. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
  291. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
  292. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
  293. package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
  294. package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
@@ -1,11 +1,11 @@
1
- import { defineComponent as W, ref as m, computed as h, watch as R, onMounted as $, createBlock as b, openBlock as f, withCtx as i, createVNode as c, createElementBlock as D, createTextVNode as E, Fragment as O, renderList as j, normalizeClass as F, createSlots as A, unref as V, createCommentVNode as J, withModifiers as L, nextTick as g } from "vue";
1
+ import { defineComponent as W, ref as m, computed as h, watch as I, onMounted as $, createBlock as b, openBlock as f, withCtx as s, createVNode as c, createElementBlock as D, createTextVNode as R, Fragment as O, renderList as j, normalizeClass as F, createSlots as A, unref as V, createCommentVNode as J, withModifiers as L, nextTick as g } from "vue";
2
2
  import { ScalarButton as q } from "@scalar/components";
3
3
  import { ScalarIconWarning as G, ScalarIconTrash as H } from "@scalar/icons";
4
- import K from "../../../components/CodeInput/CodeInput.vue.js";
4
+ import E from "../../../components/CodeInput/CodeInput.vue.js";
5
5
  import P from "../../../components/DataTable/DataTable.vue.js";
6
- import T from "../../../components/DataTable/DataTableCell.vue.js";
7
- import U from "../../../components/DataTable/DataTableHeader.vue.js";
8
- import z from "../../../components/DataTable/DataTableRow.vue.js";
6
+ import K from "../../../components/DataTable/DataTableCell.vue.js";
7
+ import T from "../../../components/DataTable/DataTableHeader.vue.js";
8
+ import U from "../../../components/DataTable/DataTableRow.vue.js";
9
9
  import { useWorkspace as Q } from "../../../store/store.js";
10
10
  const oe = /* @__PURE__ */ W({
11
11
  __name: "EnvironmentForm",
@@ -15,85 +15,85 @@ const oe = /* @__PURE__ */ W({
15
15
  workspace: {},
16
16
  envVariables: {}
17
17
  },
18
- setup(l) {
19
- const { collectionMutators: d } = Q(), o = m([]), y = m(/* @__PURE__ */ new Set()), k = m(/* @__PURE__ */ new Map()), u = m(!1), M = h(() => {
20
- if (!l.environment?.value)
18
+ setup(t) {
19
+ const { collectionMutators: d } = Q(), o = m([]), y = m(/* @__PURE__ */ new Set()), k = m(/* @__PURE__ */ new Map()), u = m(!1), z = h(() => {
20
+ if (!t.environment?.value)
21
21
  return [{ key: "", value: "" }];
22
22
  try {
23
- const e = JSON.parse(l.environment.value), a = Object.entries(e).map(([t, n]) => ({
24
- key: t,
25
- value: String(n)
23
+ const n = JSON.parse(t.environment.value), a = Object.entries(n).map(([l, e]) => ({
24
+ key: l,
25
+ value: String(e)
26
26
  }));
27
27
  return a.length === 0 ? [{ key: "", value: "" }] : a;
28
28
  } catch {
29
29
  return [{ key: "", value: "" }];
30
30
  }
31
- }), x = h(() => {
32
- const e = o.value[o.value.length - 1];
33
- return e ? e.key || e.value ? [...o.value, { key: "", value: "" }] : o.value : [{ key: "", value: "" }];
31
+ }), M = h(() => {
32
+ const n = o.value[o.value.length - 1];
33
+ return n ? n.key || n.value ? [...o.value, { key: "", value: "" }] : o.value : [{ key: "", value: "" }];
34
34
  }), p = h(() => {
35
- const e = /* @__PURE__ */ new Map();
36
- return o.value.forEach((a, t) => {
35
+ const n = /* @__PURE__ */ new Map();
36
+ return o.value.forEach((a, l) => {
37
37
  if (a.key) {
38
- const n = e.get(a.key) || [];
39
- n.push(t), e.set(a.key, n);
38
+ const e = n.get(a.key) || [];
39
+ e.push(l), n.set(a.key, e);
40
40
  }
41
- }), k.value.forEach((a, t) => {
41
+ }), k.value.forEach((a, l) => {
42
42
  if (a) {
43
- const n = e.get(a) || [];
44
- n.push(t), e.set(a, n);
43
+ const e = n.get(a) || [];
44
+ e.push(l), n.set(a, e);
45
45
  }
46
- }), Array.from(e.values()).filter((a) => a.length > 1).flat();
46
+ }), Array.from(n.values()).filter((a) => a.length > 1).flat();
47
47
  });
48
- R(
49
- M,
50
- (e) => {
51
- o.value = [...e], y.value = new Set(e.map((a) => a.key).filter(Boolean));
48
+ I(
49
+ z,
50
+ (n) => {
51
+ o.value = [...n], y.value = new Set(n.map((a) => a.key).filter(Boolean));
52
52
  },
53
53
  { immediate: !0 }
54
54
  );
55
- const C = async (e, a, t) => {
55
+ const x = async (n, a, l) => {
56
56
  if (!u.value) {
57
57
  if (a === "key") {
58
- k.value.set(e, t);
59
- const n = new Set(y.value), r = o.value[e];
60
- if (r && n.delete(r.key), n.has(t))
58
+ k.value.set(n, l);
59
+ const e = new Set(y.value), r = o.value[n];
60
+ if (r && e.delete(r.key), e.has(l))
61
61
  return;
62
62
  }
63
63
  u.value = !0;
64
64
  try {
65
- const n = [...o.value], r = n[e];
65
+ const e = [...o.value], r = e[n];
66
66
  if (!r)
67
67
  return;
68
- n[e] = {
69
- key: a === "key" ? t : r.key,
70
- value: a === "value" ? t : r.value
71
- }, !n[e].key && !n[e].value && e !== n.length - 1 && n.splice(e, 1);
72
- const v = n.reduce(
73
- (s, { key: B, value: I }) => ((B || I) && (s[B] = I), s),
68
+ e[n] = {
69
+ key: a === "key" ? l : r.key,
70
+ value: a === "value" ? l : r.value
71
+ }, !e[n].key && !e[n].value && n !== e.length - 1 && e.splice(n, 1);
72
+ const v = e.reduce(
73
+ (i, { key: S, value: B }) => ((S || B) && (i[S] = B), i),
74
74
  {}
75
75
  );
76
- if (l.collection) {
77
- const s = {
78
- ...l.collection["x-scalar-environments"],
79
- [l.environment.name]: {
80
- ...l.collection["x-scalar-environments"]?.[l.environment.name],
76
+ if (t.collection) {
77
+ const i = {
78
+ ...t.collection["x-scalar-environments"],
79
+ [t.environment.name]: {
80
+ ...t.collection["x-scalar-environments"]?.[t.environment.name],
81
81
  variables: v
82
82
  }
83
83
  };
84
84
  await d.edit(
85
- l.collection.uid,
85
+ t.collection.uid,
86
86
  "x-scalar-environments",
87
- s
87
+ i
88
88
  );
89
89
  }
90
- if (e === o.value.length - 1) {
91
- const s = n[n.length - 1];
92
- s && (s.key || s.value) && await w();
90
+ if (n === o.value.length - 1) {
91
+ const i = e[e.length - 1];
92
+ i && (i.key || i.value) && await w();
93
93
  }
94
- await g(), o.value = n, a === "key" && (y.value = new Set(
95
- n.map((s) => s.key).filter(Boolean)
96
- ), k.value.delete(e));
94
+ await g(), o.value = e, a === "key" && (y.value = new Set(
95
+ e.map((i) => i.key).filter(Boolean)
96
+ ), k.value.delete(n));
97
97
  } finally {
98
98
  u.value = !1;
99
99
  }
@@ -102,51 +102,51 @@ const oe = /* @__PURE__ */ W({
102
102
  if (!u.value) {
103
103
  u.value = !0;
104
104
  try {
105
- const e = [...o.value, { key: "", value: "" }], a = e.reduce(
106
- (t, { key: n, value: r }) => ((n || r) && (t[n] = r), t),
105
+ const n = [...o.value, { key: "", value: "" }], a = n.reduce(
106
+ (l, { key: e, value: r }) => ((e || r) && (l[e] = r), l),
107
107
  {}
108
108
  );
109
- if (l.collection) {
110
- const t = {
111
- ...l.collection["x-scalar-environments"],
112
- [l.environment.name]: {
113
- ...l.collection["x-scalar-environments"]?.[l.environment.name],
109
+ if (t.collection) {
110
+ const l = {
111
+ ...t.collection["x-scalar-environments"],
112
+ [t.environment.name]: {
113
+ ...t.collection["x-scalar-environments"]?.[t.environment.name],
114
114
  variables: a
115
115
  }
116
116
  };
117
117
  await d.edit(
118
- l.collection.uid,
118
+ t.collection.uid,
119
119
  "x-scalar-environments",
120
- t
120
+ l
121
121
  );
122
122
  }
123
- await g(), o.value = e;
123
+ await g(), o.value = n;
124
124
  } finally {
125
125
  u.value = !1;
126
126
  }
127
127
  }
128
- }, N = async (e) => {
128
+ }, N = async (n) => {
129
129
  if (!u.value) {
130
130
  u.value = !0;
131
131
  try {
132
132
  const a = [...o.value];
133
- a.splice(e, 1);
134
- const t = a.reduce(
135
- (n, { key: r, value: v }) => ((r || v) && (n[r] = v), n),
133
+ a.splice(n, 1);
134
+ const l = a.reduce(
135
+ (e, { key: r, value: v }) => ((r || v) && (e[r] = v), e),
136
136
  {}
137
137
  );
138
- if (l.collection) {
139
- const n = {
140
- ...l.collection["x-scalar-environments"],
141
- [l.environment.name]: {
142
- ...l.collection["x-scalar-environments"]?.[l.environment.name],
143
- variables: t
138
+ if (t.collection) {
139
+ const e = {
140
+ ...t.collection["x-scalar-environments"],
141
+ [t.environment.name]: {
142
+ ...t.collection["x-scalar-environments"]?.[t.environment.name],
143
+ variables: l
144
144
  }
145
145
  };
146
146
  await d.edit(
147
- l.collection.uid,
147
+ t.collection.uid,
148
148
  "x-scalar-environments",
149
- n
149
+ e
150
150
  );
151
151
  }
152
152
  await g(), o.value = a;
@@ -154,67 +154,67 @@ const oe = /* @__PURE__ */ W({
154
154
  u.value = !1;
155
155
  }
156
156
  }
157
- }, S = async () => {
157
+ }, C = async () => {
158
158
  if (o.value.length === 0)
159
159
  await w();
160
160
  else if (o.value.length >= 1) {
161
- const e = o.value[o.value.length - 1];
162
- e && (e.key || e.value) && await w();
161
+ const n = o.value[o.value.length - 1];
162
+ n && (n.key || n.value) && await w();
163
163
  }
164
164
  };
165
165
  return $(() => {
166
- S();
167
- }), R(
166
+ C();
167
+ }), I(
168
168
  () => o.value,
169
169
  () => {
170
- S();
170
+ C();
171
171
  }
172
- ), (e, a) => (f(), b(P, {
172
+ ), (n, a) => (f(), b(P, {
173
173
  class: "group/table flex-1",
174
174
  columns: ["", ""]
175
175
  }, {
176
- default: i(() => [
177
- c(z, { class: "sr-only !block" }, {
178
- default: i(() => [
179
- c(U, null, {
180
- default: i(() => [...a[0] || (a[0] = [
181
- E("Key", -1)
176
+ default: s(() => [
177
+ c(U, { class: "sr-only !block" }, {
178
+ default: s(() => [
179
+ c(T, null, {
180
+ default: s(() => [...a[0] || (a[0] = [
181
+ R("Key", -1)
182
182
  ])]),
183
183
  _: 1
184
184
  }),
185
- c(U, null, {
186
- default: i(() => [...a[1] || (a[1] = [
187
- E("Value", -1)
185
+ c(T, null, {
186
+ default: s(() => [...a[1] || (a[1] = [
187
+ R("Value", -1)
188
188
  ])]),
189
189
  _: 1
190
190
  })
191
191
  ]),
192
192
  _: 1
193
193
  }),
194
- (f(!0), D(O, null, j(x.value, (t, n) => (f(), b(z, {
195
- key: n,
194
+ (f(!0), D(O, null, j(M.value, (l, e) => (f(), b(U, {
195
+ key: e,
196
196
  class: F({
197
- error: p.value.includes(n)
197
+ error: p.value.includes(e)
198
198
  })
199
199
  }, {
200
- default: i(() => [
201
- c(T, null, {
202
- default: i(() => [
203
- c(K, {
200
+ default: s(() => [
201
+ c(K, null, {
202
+ default: s(() => [
203
+ c(E, {
204
204
  disableCloseBrackets: "",
205
205
  disableEnter: "",
206
206
  disableTabIndent: "",
207
207
  lineWrapping: "",
208
- environment: e.environment,
209
- envVariables: e.envVariables,
210
- modelValue: t.key,
208
+ environment: t.environment,
209
+ envVariables: t.envVariables,
210
+ modelValue: l.key,
211
211
  placeholder: "Key",
212
- workspace: e.workspace,
213
- "onUpdate:modelValue": (r) => C(n, "key", r)
212
+ workspace: t.workspace,
213
+ "onUpdate:modelValue": (r) => x(e, "key", r)
214
214
  }, A({ _: 2 }, [
215
- p.value.includes(n) ? {
215
+ p.value.includes(e) ? {
216
216
  name: "icon",
217
- fn: i(() => [
217
+ fn: s(() => [
218
218
  c(V(G), { class: "text-red mr-0.75 size-3.5 brightness-[.9]" })
219
219
  ]),
220
220
  key: "0"
@@ -223,30 +223,30 @@ const oe = /* @__PURE__ */ W({
223
223
  ]),
224
224
  _: 2
225
225
  }, 1024),
226
- c(T, null, {
227
- default: i(() => [
228
- c(K, {
226
+ c(K, null, {
227
+ default: s(() => [
228
+ c(E, {
229
229
  class: "pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10",
230
230
  disableCloseBrackets: "",
231
231
  disableEnter: "",
232
232
  disableTabIndent: "",
233
233
  lineWrapping: "",
234
- environment: e.environment,
235
- envVariables: e.envVariables,
236
- modelValue: t.value,
234
+ environment: t.environment,
235
+ envVariables: t.envVariables,
236
+ modelValue: l.value,
237
237
  placeholder: "Value",
238
- workspace: e.workspace,
239
- "onUpdate:modelValue": (r) => C(n, "value", r)
238
+ workspace: t.workspace,
239
+ "onUpdate:modelValue": (r) => x(e, "value", r)
240
240
  }, {
241
- icon: i(() => [
242
- t.key || t.value ? (f(), b(V(q), {
241
+ icon: s(() => [
242
+ l.key || l.value ? (f(), b(V(q), {
243
243
  key: 0,
244
244
  class: "text-c-2 hover:text-c-1 hover:bg-b-2 z-context hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex",
245
245
  size: "sm",
246
246
  variant: "ghost",
247
- onClick: L((r) => N(n), ["stop"])
247
+ onClick: L((r) => N(e), ["stop"])
248
248
  }, {
249
- default: i(() => [
249
+ default: s(() => [
250
250
  c(V(H), { class: "size-3.5" })
251
251
  ]),
252
252
  _: 1
@@ -1,7 +1,7 @@
1
- import { defineComponent as h, ref as p, watch as w, nextTick as x, createElementBlock as i, openBlock as o, createElementVNode as n, createBlock as u, createCommentVNode as a, unref as r, withCtx as v, createVNode as d, Fragment as f } from "vue";
2
- import { ScalarButton as c, ScalarIcon as b, ScalarMarkdown as y } from "@scalar/components";
3
- import z from "../../../components/CodeInput/CodeInput.vue.js";
4
- const B = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "flex min-h-8 items-center justify-between gap-2 pl-1.5" }, I = { class: "has-[:focus-visible]:bg-b-1 group relative z-1 flex flex-col rounded-lg" }, E = { class: "flex h-full min-h-[calc(1rem*4)] flex-col" }, N = {
1
+ import { defineComponent as h, ref as v, watch as w, nextTick as y, createElementBlock as s, openBlock as n, createElementVNode as o, createBlock as u, createCommentVNode as a, unref as r, withCtx as f, createVNode as d, Fragment as p } from "vue";
2
+ import { ScalarButton as b, ScalarIcon as k, ScalarMarkdown as z } from "@scalar/components";
3
+ import B from "../../../components/CodeInput/CodeInput.vue.js";
4
+ const C = { class: "flex h-full w-full flex-col gap-2 pt-8" }, I = { class: "flex min-h-8 items-center justify-between gap-2 pl-1.5" }, E = { class: "has-[:focus-visible]:bg-b-1 group relative z-1 flex flex-col rounded-lg" }, N = { class: "flex h-full min-h-[calc(1rem*4)] flex-col" }, S = {
5
5
  key: 1,
6
6
  class: "text-c-3 flex h-full items-center justify-center rounded-lg border p-4"
7
7
  }, F = /* @__PURE__ */ h({
@@ -13,10 +13,10 @@ const B = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "fle
13
13
  workspace: {}
14
14
  },
15
15
  emits: ["update:modelValue"],
16
- setup(S, { emit: k }) {
17
- const g = k, t = p("preview"), m = p(null);
18
- w(t, (l) => {
19
- l === "edit" && x(() => {
16
+ setup(l, { emit: x }) {
17
+ const g = x, t = v("preview"), m = v(null);
18
+ w(t, (c) => {
19
+ c === "edit" && y(() => {
20
20
  m.value?.focus();
21
21
  });
22
22
  });
@@ -25,60 +25,60 @@ const B = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "fle
25
25
  t.value = "preview";
26
26
  });
27
27
  };
28
- return (l, e) => (o(), i("div", B, [
29
- n("div", C, [
30
- e[5] || (e[5] = n("h3", { class: "font-bold" }, "Description", -1)),
31
- t.value === "preview" ? (o(), u(r(c), {
28
+ return (c, e) => (n(), s("div", C, [
29
+ o("div", I, [
30
+ e[5] || (e[5] = o("h3", { class: "font-bold" }, "Description", -1)),
31
+ t.value === "preview" ? (n(), u(r(b), {
32
32
  key: 0,
33
33
  class: "text-c-2 hover:text-c-1 flex items-center gap-2",
34
34
  size: "sm",
35
35
  type: "button",
36
36
  variant: "outlined",
37
- onClick: e[0] || (e[0] = (s) => t.value = "edit")
37
+ onClick: e[0] || (e[0] = (i) => t.value = "edit")
38
38
  }, {
39
- default: v(() => [
40
- d(r(b), {
39
+ default: f(() => [
40
+ d(r(k), {
41
41
  icon: "Pencil",
42
42
  size: "sm",
43
43
  thickness: "1.5"
44
44
  }),
45
- e[4] || (e[4] = n("span", null, "Edit", -1))
45
+ e[4] || (e[4] = o("span", null, "Edit", -1))
46
46
  ]),
47
47
  _: 1
48
48
  })) : a("", !0)
49
49
  ]),
50
- n("div", I, [
51
- n("div", E, [
52
- t.value === "preview" ? (o(), i(f, { key: 0 }, [
53
- l.modelValue && l.modelValue.trim().length ? (o(), i(f, { key: 0 }, [
54
- l.modelValue ? (o(), u(r(y), {
50
+ o("div", E, [
51
+ o("div", N, [
52
+ t.value === "preview" ? (n(), s(p, { key: 0 }, [
53
+ l.modelValue && l.modelValue.trim().length ? (n(), s(p, { key: 0 }, [
54
+ l.modelValue ? (n(), u(r(z), {
55
55
  key: 0,
56
56
  class: "h-full flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",
57
57
  value: l.modelValue,
58
58
  withImages: "",
59
- onDblclick: e[1] || (e[1] = (s) => t.value = "edit")
59
+ onDblclick: e[1] || (e[1] = (i) => t.value = "edit")
60
60
  }, null, 8, ["value"])) : a("", !0),
61
- e[6] || (e[6] = n("div", { class: "brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden" }, null, -1))
62
- ], 64)) : (o(), i("div", N, [
63
- d(r(c), {
61
+ e[6] || (e[6] = o("div", { class: "brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden" }, null, -1))
62
+ ], 64)) : (n(), s("div", S, [
63
+ d(r(b), {
64
64
  class: "hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",
65
65
  size: "sm",
66
66
  variant: "ghost",
67
- onClick: e[2] || (e[2] = (s) => t.value = "edit")
67
+ onClick: e[2] || (e[2] = (i) => t.value = "edit")
68
68
  }, {
69
- default: v(() => [
70
- d(r(b), {
69
+ default: f(() => [
70
+ d(r(k), {
71
71
  icon: "Pencil",
72
72
  size: "sm",
73
73
  thickness: "1.5"
74
74
  }),
75
- e[7] || (e[7] = n("span", null, "Write a description", -1))
75
+ e[7] || (e[7] = o("span", null, "Write a description", -1))
76
76
  ]),
77
77
  _: 1
78
78
  })
79
79
  ]))
80
80
  ], 64)) : a("", !0),
81
- t.value === "edit" ? (o(), u(z, {
81
+ t.value === "edit" ? (n(), u(B, {
82
82
  key: 1,
83
83
  ref_key: "codeInputRef",
84
84
  ref: m,
@@ -88,7 +88,7 @@ const B = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "fle
88
88
  modelValue: l.modelValue,
89
89
  workspace: l.workspace,
90
90
  onBlur: V,
91
- "onUpdate:modelValue": e[3] || (e[3] = (s) => g("update:modelValue", s))
91
+ "onUpdate:modelValue": e[3] || (e[3] = (i) => g("update:modelValue", i))
92
92
  }, null, 8, ["envVariables", "environment", "modelValue", "workspace"])) : a("", !0)
93
93
  ])
94
94
  ])
@@ -1,75 +1,75 @@
1
- import { defineComponent as V, ref as c, watch as x, createBlock as b, openBlock as k, unref as C, withCtx as m, createVNode as t, createElementVNode as i, createTextVNode as l } from "vue";
1
+ import { defineComponent as V, ref as c, watch as x, createBlock as b, openBlock as k, unref as C, withCtx as s, createVNode as o, createElementVNode as m, createTextVNode as l } from "vue";
2
2
  import { ScalarModal as g } from "@scalar/components";
3
3
  import { useToasts as N } from "@scalar/use-toasts";
4
4
  import S from "../../components/CommandPalette/CommandActionForm.vue.js";
5
- import n from "../../components/CommandPalette/CommandActionInput.vue.js";
6
- const U = { class: "flex h-8 items-start gap-2 text-sm" }, $ = { class: "flex h-8 items-start gap-2 text-sm" }, w = { class: "flex h-8 items-start gap-2 text-sm" }, _ = /* @__PURE__ */ V({
5
+ import i from "../../components/CommandPalette/CommandActionInput.vue.js";
6
+ const U = { class: "flex h-8 items-start gap-2 text-sm" }, $ = { class: "flex h-8 items-start gap-2 text-sm" }, w = { class: "flex h-8 items-start gap-2 text-sm" }, y = /* @__PURE__ */ V({
7
7
  __name: "CookieModal",
8
8
  props: {
9
9
  state: {}
10
10
  },
11
11
  emits: ["cancel", "submit"],
12
- setup(r, { emit: p }) {
13
- const u = r, d = p, a = c({
12
+ setup(n, { emit: f }) {
13
+ const u = n, d = f, a = c({
14
14
  name: "",
15
15
  value: "",
16
16
  domain: ""
17
- }), { toast: f } = N(), v = () => {
17
+ }), { toast: p } = N(), v = () => {
18
18
  if (!a.value.name || !a.value.value) {
19
- f("Please fill in all fields before adding a cookie.", "error");
19
+ p("Please fill in all fields before adding a cookie.", "error");
20
20
  return;
21
21
  }
22
22
  d("submit", a.value), u.state.hide();
23
23
  };
24
24
  return x(
25
25
  () => u.state.open,
26
- (s) => {
27
- s && (a.value = {
26
+ (r) => {
27
+ r && (a.value = {
28
28
  name: "",
29
29
  value: "",
30
30
  domain: ""
31
31
  });
32
32
  }
33
- ), (s, e) => (k(), b(C(g), {
33
+ ), (r, e) => (k(), b(C(g), {
34
34
  size: "xs",
35
- state: s.state,
35
+ state: n.state,
36
36
  title: "Add Cookie"
37
37
  }, {
38
- default: m(() => [
39
- t(S, {
38
+ default: s(() => [
39
+ o(S, {
40
40
  disabled: !a.value.name || !a.value.value,
41
- onCancel: e[3] || (e[3] = (o) => d("cancel")),
41
+ onCancel: e[3] || (e[3] = (t) => d("cancel")),
42
42
  onSubmit: v
43
43
  }, {
44
- submit: m(() => [...e[7] || (e[7] = [
44
+ submit: s(() => [...e[7] || (e[7] = [
45
45
  l("Add Cookie", -1)
46
46
  ])]),
47
- default: m(() => [
48
- i("div", U, [
47
+ default: s(() => [
48
+ m("div", U, [
49
49
  e[4] || (e[4] = l(" Name: ", -1)),
50
- t(n, {
50
+ o(i, {
51
51
  modelValue: a.value.name,
52
- "onUpdate:modelValue": e[0] || (e[0] = (o) => a.value.name = o),
52
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => a.value.name = t),
53
53
  autofocus: "",
54
54
  class: "!p-0",
55
55
  placeholder: "session_id"
56
56
  }, null, 8, ["modelValue"])
57
57
  ]),
58
- i("div", $, [
58
+ m("div", $, [
59
59
  e[5] || (e[5] = l(" Value: ", -1)),
60
- t(n, {
60
+ o(i, {
61
61
  modelValue: a.value.value,
62
- "onUpdate:modelValue": e[1] || (e[1] = (o) => a.value.value = o),
62
+ "onUpdate:modelValue": e[1] || (e[1] = (t) => a.value.value = t),
63
63
  autofocus: "",
64
64
  class: "!p-0",
65
65
  placeholder: "my-cookie-session-id"
66
66
  }, null, 8, ["modelValue"])
67
67
  ]),
68
- i("div", w, [
68
+ m("div", w, [
69
69
  e[6] || (e[6] = l(" Domain: ", -1)),
70
- t(n, {
70
+ o(i, {
71
71
  modelValue: a.value.domain,
72
- "onUpdate:modelValue": e[2] || (e[2] = (o) => a.value.domain = o),
72
+ "onUpdate:modelValue": e[2] || (e[2] = (t) => a.value.domain = t),
73
73
  autofocus: "",
74
74
  class: "!p-0",
75
75
  placeholder: "example.com"
@@ -84,5 +84,5 @@ const U = { class: "flex h-8 items-start gap-2 text-sm" }, $ = { class: "flex h-
84
84
  }
85
85
  });
86
86
  export {
87
- _ as default
87
+ y as default
88
88
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as m, ref as u, createBlock as f, openBlock as d, unref as p, withCtx as C, createElementVNode as v, createVNode as n } from "vue";
1
+ import { defineComponent as m, ref as u, createBlock as f, openBlock as d, unref as p, withCtx as C, createElementVNode as v, createVNode as a } from "vue";
2
2
  import { ScalarModal as _ } from "@scalar/components";
3
3
  import x from "../../components/Sidebar/Actions/SidebarListElementForm.vue.js";
4
4
  import S from "./EnvironmentColors.vue.js";
@@ -9,26 +9,26 @@ const b = { class: "flex flex-col gap-4" }, B = /* @__PURE__ */ m({
9
9
  selectedColor: {}
10
10
  },
11
11
  emits: ["cancel", "submit"],
12
- setup(a, { emit: r }) {
13
- const s = a, o = r, e = u(""), c = (t) => {
14
- e.value = t;
12
+ setup(t, { emit: r }) {
13
+ const c = t, o = r, e = u(""), s = (l) => {
14
+ e.value = l;
15
15
  }, i = () => {
16
16
  o("submit", e.value), e.value = "";
17
17
  };
18
- return (t, l) => (d(), f(p(_), {
18
+ return (l, n) => (d(), f(p(_), {
19
19
  size: "xxs",
20
20
  state: t.state,
21
21
  title: "Edit Environment Color"
22
22
  }, {
23
23
  default: C(() => [
24
24
  v("div", b, [
25
- n(S, {
26
- activeColor: e.value || s.selectedColor,
25
+ a(S, {
26
+ activeColor: e.value || c.selectedColor,
27
27
  class: "w-full p-1",
28
- onSelect: c
28
+ onSelect: s
29
29
  }, null, 8, ["activeColor"]),
30
- n(x, {
31
- onCancel: l[0] || (l[0] = (E) => o("cancel")),
30
+ a(x, {
31
+ onCancel: n[0] || (n[0] = (E) => o("cancel")),
32
32
  onSubmit: i
33
33
  })
34
34
  ])