@scalar/api-client 2.18.1 → 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 (277) hide show
  1. package/CHANGELOG.md +61 -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/layouts/App/create-api-client-app.d.ts.map +1 -1
  55. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  56. package/dist/libs/create-client.d.ts.map +1 -1
  57. package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
  58. package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
  59. package/dist/plugins/hooks/usePluginManager.js +4 -4
  60. package/dist/plugins/index.d.ts +1 -1
  61. package/dist/plugins/index.d.ts.map +1 -1
  62. package/dist/plugins/index.js +5 -5
  63. package/dist/plugins/plugin-manager.d.ts +0 -2
  64. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  65. package/dist/routes.d.ts +0 -10
  66. package/dist/routes.d.ts.map +1 -1
  67. package/dist/routes.js +0 -1
  68. package/dist/store/security-schemes.d.ts.map +1 -1
  69. package/dist/store/store.d.ts.map +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
  72. package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
  73. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  74. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
  75. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
  76. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
  77. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
  78. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  79. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
  80. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
  81. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  82. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
  83. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
  84. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
  85. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
  86. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  87. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
  88. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  89. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  90. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
  91. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
  92. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  93. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  94. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
  95. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
  96. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
  97. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
  98. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
  99. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
  100. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  101. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
  102. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
  103. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  104. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
  105. package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
  106. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
  107. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  108. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
  109. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
  110. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
  111. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  112. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
  113. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
  114. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
  115. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
  116. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
  117. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
  118. package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
  119. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
  120. package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
  121. package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
  122. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
  123. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
  124. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
  125. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
  126. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
  127. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
  128. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
  129. package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
  130. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
  131. package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
  132. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
  133. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
  134. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
  135. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
  136. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
  137. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +69 -69
  138. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
  139. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
  140. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
  141. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +29 -29
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
  144. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +75 -75
  145. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
  146. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  147. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
  148. package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
  149. package/dist/v2/components/data-table/DataTable.vue.js +17 -17
  150. package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
  151. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
  152. package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
  153. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
  154. package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
  155. package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
  156. package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
  157. package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
  158. package/dist/v2/components/resize/Resize.vue2.js +11 -11
  159. package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
  160. package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
  161. package/dist/v2/components/sidebar/Sidebar.vue.js +32 -32
  162. package/dist/v2/components/sidebar/SidebarMenu.vue.js +20 -20
  163. package/dist/v2/features/app/App.vue.js +25 -25
  164. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  165. package/dist/v2/features/app/app-events.js +55 -61
  166. package/dist/v2/features/app/components/AppSidebar.vue2.js +97 -97
  167. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
  168. package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
  169. package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
  170. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
  171. package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
  172. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -5
  173. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  174. package/dist/v2/features/app/helpers/create-api-client-app.js +1 -2
  175. package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
  176. package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
  177. package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
  178. package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
  179. package/dist/v2/features/collection/components/Environment.vue.js +10 -10
  180. package/dist/v2/features/collection/components/Form.vue.js +21 -21
  181. package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
  182. package/dist/v2/features/collection/components/Servers.vue.js +37 -37
  183. package/dist/v2/features/collection/components/Settings.vue.js +22 -22
  184. package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
  185. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
  186. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
  187. package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
  188. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
  189. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
  190. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
  191. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
  192. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
  193. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
  194. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  195. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
  196. package/dist/v2/features/command-palette/types.d.ts +11 -10
  197. package/dist/v2/features/command-palette/types.d.ts.map +1 -1
  198. package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
  199. package/dist/v2/features/environments/components/Environment.vue.js +16 -16
  200. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
  201. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
  202. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
  203. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
  204. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
  205. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
  206. package/dist/v2/features/modal/Modal.vue2.js +56 -56
  207. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -1
  208. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  209. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
  210. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
  211. package/dist/v2/features/operation/Operation.vue.js +34 -34
  212. package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
  213. package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
  214. package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
  215. package/dist/v2/features/search/types.d.ts +5 -4
  216. package/dist/v2/features/search/types.d.ts.map +1 -1
  217. package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
  218. package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
  219. package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
  220. package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
  221. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  222. package/dist/v2/helpers/handle-hotkeys.js +0 -2
  223. package/dist/v2/helpers/plugins.d.ts +2 -2
  224. package/dist/v2/helpers/plugins.d.ts.map +1 -1
  225. package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
  226. package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
  227. package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
  228. package/dist/views/Cookies/CookieModal.vue2.js +26 -26
  229. package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
  230. package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
  231. package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
  232. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
  233. package/dist/views/Request/Request.vue2.js +55 -55
  234. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
  235. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
  236. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
  237. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  238. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
  239. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  240. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
  241. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
  242. package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
  243. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
  244. package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
  245. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
  246. package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
  247. package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
  248. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
  249. package/dist/views/Request/RequestSection/index.d.ts +1 -1
  250. package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
  251. package/dist/views/Request/RequestSection/index.js +4 -4
  252. package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
  253. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
  254. package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
  255. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
  256. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
  257. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
  258. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
  259. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
  260. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
  261. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
  262. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
  263. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
  264. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
  265. package/package.json +23 -23
  266. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
  267. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
  268. package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
  269. package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
  270. package/dist/components/ScreenReader.vue.d.ts +0 -20
  271. package/dist/components/ScreenReader.vue.d.ts.map +0 -1
  272. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
  273. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
  274. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
  275. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
  276. package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
  277. package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
@@ -1,33 +1,33 @@
1
- import { defineComponent as r, createBlock as a, openBlock as i, resolveDynamicComponent as m, normalizeClass as s, unref as o, withCtx as l, renderSlot as t, createElementVNode as c, createVNode as d } from "vue";
2
- import { ScalarIcon as p } from "@scalar/components";
3
- import { useLayout as u } from "../../hooks/useLayout.js";
4
- const v = /* @__PURE__ */ r({
1
+ import { defineComponent as r, createBlock as c, openBlock as i, resolveDynamicComponent as m, normalizeClass as t, unref as e, withCtx as l, renderSlot as a, createElementVNode as d, createVNode as u } from "vue";
2
+ import { ScalarIcon as f } from "@scalar/components";
3
+ import { useLayout as p } from "../../hooks/useLayout.js";
4
+ const h = /* @__PURE__ */ r({
5
5
  __name: "SideNavLink",
6
6
  props: {
7
7
  is: {},
8
8
  active: { type: Boolean },
9
9
  icon: {}
10
10
  },
11
- setup(f) {
12
- const { layout: n } = u();
13
- return (e, b) => (i(), a(m(e.is ?? "a"), {
14
- class: s(["hover:bg-b-3 hover:dark:bg-b-2 flex max-w-[37px] min-w-[37px] items-center justify-center rounded-lg p-2 no-underline", {
15
- "bg-b-3 dark:bg-b-2 text-c-1 transition-none hover:cursor-default": e.active,
16
- "sm:max-w-max sm:min-w-max sm:rounded sm:py-1.5": o(n) === "web"
11
+ setup(n) {
12
+ const { layout: o } = p();
13
+ return (s, b) => (i(), c(m(n.is ?? "a"), {
14
+ class: t(["hover:bg-b-3 hover:dark:bg-b-2 flex max-w-[37px] min-w-[37px] items-center justify-center rounded-lg p-2 no-underline", {
15
+ "bg-b-3 dark:bg-b-2 text-c-1 transition-none hover:cursor-default": n.active,
16
+ "sm:max-w-max sm:min-w-max sm:rounded sm:py-1.5": e(o) === "web"
17
17
  }])
18
18
  }, {
19
19
  default: l(() => [
20
- t(e.$slots, "icon", {}, () => [
21
- d(o(p), {
22
- class: s(o(n) === "web" ? "sm:hidden" : ""),
23
- icon: e.icon,
20
+ a(s.$slots, "icon", {}, () => [
21
+ u(e(f), {
22
+ class: t(e(o) === "web" ? "sm:hidden" : ""),
23
+ icon: n.icon,
24
24
  thickness: "1.5"
25
25
  }, null, 8, ["class", "icon"])
26
26
  ]),
27
- c("span", {
28
- class: s(["sr-only text-sm font-medium", { "sm:not-sr-only": o(n) === "web" }])
27
+ d("span", {
28
+ class: t(["sr-only text-sm font-medium", { "sm:not-sr-only": e(o) === "web" }])
29
29
  }, [
30
- t(e.$slots, "default")
30
+ a(s.$slots, "default")
31
31
  ], 2)
32
32
  ]),
33
33
  _: 3
@@ -35,5 +35,5 @@ const v = /* @__PURE__ */ r({
35
35
  }
36
36
  });
37
37
  export {
38
- v as default
38
+ h as default
39
39
  };
@@ -1,27 +1,27 @@
1
- import { defineComponent as e, createBlock as t, openBlock as i, unref as n, withCtx as r, renderSlot as a } from "vue";
2
- import { RouterLink as c } from "vue-router";
3
- import p from "./SideNavLink.vue.js";
4
- const _ = /* @__PURE__ */ e({
1
+ import { defineComponent as t, createBlock as i, openBlock as n, unref as a, withCtx as c, renderSlot as r } from "vue";
2
+ import { RouterLink as f } from "vue-router";
3
+ import m from "./SideNavLink.vue.js";
4
+ const p = /* @__PURE__ */ t({
5
5
  __name: "SideNavRouterLink",
6
6
  props: {
7
7
  icon: {},
8
8
  to: {},
9
9
  active: { type: Boolean }
10
10
  },
11
- setup(s) {
12
- return (o, f) => (i(), t(p, {
13
- is: n(c),
14
- active: !!o.active,
15
- icon: o.icon,
16
- to: o.to
11
+ setup(e) {
12
+ return (o, l) => (n(), i(m, {
13
+ is: a(f),
14
+ active: !!e.active,
15
+ icon: e.icon,
16
+ to: e.to
17
17
  }, {
18
- default: r(() => [
19
- a(o.$slots, "default")
18
+ default: c(() => [
19
+ r(o.$slots, "default")
20
20
  ]),
21
21
  _: 3
22
22
  }, 8, ["is", "active", "icon", "to"]));
23
23
  }
24
24
  });
25
25
  export {
26
- _ as default
26
+ p as default
27
27
  };
@@ -1,25 +1,25 @@
1
- import { defineComponent as m, computed as c, createBlock as p, openBlock as r, withCtx as d, createElementBlock as u, createCommentVNode as g, toDisplayString as b } from "vue";
2
- import f from "./SidebarListElementForm.vue.js";
3
- const v = {
1
+ import { defineComponent as s, computed as m, createBlock as c, openBlock as r, withCtx as d, createElementBlock as u, createCommentVNode as g, toDisplayString as p } from "vue";
2
+ import b from "./SidebarListElementForm.vue.js";
3
+ const f = {
4
4
  key: 0,
5
5
  class: "text-c-2 text-sm leading-normal text-pretty"
6
- }, k = /* @__PURE__ */ m({
6
+ }, k = /* @__PURE__ */ s({
7
7
  __name: "DeleteSidebarListElement",
8
8
  props: {
9
9
  variableName: {},
10
10
  warningMessage: {}
11
11
  },
12
12
  emits: ["close", "delete"],
13
- setup(l, { emit: o }) {
14
- const t = l, a = o, s = c(() => t.variableName.length > 18 ? t.variableName.slice(0, 18) + "…" : t.variableName);
15
- return (n, e) => (r(), p(f, {
13
+ setup(t, { emit: l }) {
14
+ const a = t, n = l, o = m(() => a.variableName.length > 18 ? a.variableName.slice(0, 18) + "…" : a.variableName);
15
+ return (v, e) => (r(), c(b, {
16
16
  danger: "",
17
- label: `Delete ${s.value}`,
18
- onCancel: e[0] || (e[0] = (i) => a("close")),
19
- onSubmit: e[1] || (e[1] = (i) => a("delete"))
17
+ label: `Delete ${o.value}`,
18
+ onCancel: e[0] || (e[0] = (i) => n("close")),
19
+ onSubmit: e[1] || (e[1] = (i) => n("delete"))
20
20
  }, {
21
21
  default: d(() => [
22
- n.warningMessage ? (r(), u("p", v, b(n.warningMessage), 1)) : g("", !0)
22
+ t.warningMessage ? (r(), u("p", f, p(t.warningMessage), 1)) : g("", !0)
23
23
  ]),
24
24
  _: 1
25
25
  }, 8, ["label"]));
@@ -1,39 +1,39 @@
1
- import { defineComponent as d, createElementBlock as u, openBlock as p, withModifiers as f, renderSlot as b, createElementVNode as c, createVNode as o, unref as a, withCtx as i, createTextVNode as r, toDisplayString as v } from "vue";
2
- import { ScalarButton as s } from "@scalar/components";
3
- const g = { class: "flex justify-between gap-10" }, B = /* @__PURE__ */ d({
1
+ import { defineComponent as u, createElementBlock as f, openBlock as b, withModifiers as p, renderSlot as c, createElementVNode as v, createVNode as a, unref as i, withCtx as o, createTextVNode as l, toDisplayString as x } from "vue";
2
+ import { ScalarButton as r } from "@scalar/components";
3
+ const g = { class: "flex justify-between gap-10" }, B = /* @__PURE__ */ u({
4
4
  __name: "SidebarListElementForm",
5
5
  props: {
6
6
  danger: { type: Boolean },
7
7
  label: {}
8
8
  },
9
9
  emits: ["cancel", "submit"],
10
- setup(S, { emit: l }) {
11
- const n = l;
12
- return (t, e) => (p(), u("form", {
10
+ setup(t, { emit: s }) {
11
+ const n = s;
12
+ return (m, e) => (b(), f("form", {
13
13
  class: "flex flex-col gap-4 text-base",
14
- onSubmit: e[1] || (e[1] = f((m) => n("submit"), ["prevent"]))
14
+ onSubmit: e[1] || (e[1] = p((d) => n("submit"), ["prevent"]))
15
15
  }, [
16
- b(t.$slots, "default"),
17
- c("div", g, [
18
- o(a(s), {
16
+ c(m.$slots, "default"),
17
+ v("div", g, [
18
+ a(i(r), {
19
19
  size: "sm",
20
20
  type: "button",
21
21
  variant: "outlined",
22
- onClick: e[0] || (e[0] = (m) => n("cancel"))
22
+ onClick: e[0] || (e[0] = (d) => n("cancel"))
23
23
  }, {
24
- default: i(() => [...e[2] || (e[2] = [
25
- r(" Cancel ", -1)
24
+ default: o(() => [...e[2] || (e[2] = [
25
+ l(" Cancel ", -1)
26
26
  ])]),
27
27
  _: 1
28
28
  }),
29
- o(a(s), {
29
+ a(i(r), {
30
30
  "data-testid": "sidebar-list-element-form-submit-button",
31
31
  size: "sm",
32
32
  type: "submit",
33
33
  variant: t.danger ? "danger" : "solid"
34
34
  }, {
35
- default: i(() => [
36
- r(v(t.label ?? "Save"), 1)
35
+ default: o(() => [
36
+ l(x(t.label ?? "Save"), 1)
37
37
  ]),
38
38
  _: 1
39
39
  }, 8, ["variant"])
@@ -1,60 +1,60 @@
1
- import { defineComponent as E, ref as g, withDirectives as S, createElementBlock as l, openBlock as m, normalizeStyle as _, normalizeClass as h, unref as t, renderSlot as r, createCommentVNode as u, createElementVNode as n, toDisplayString as D, Fragment as L, vShow as N } from "vue";
2
- import { useBreakpoints as W } from "@scalar/use-hooks/useBreakpoints";
3
- import { useLayout as $ } from "../../hooks/useLayout.js";
4
- import { useSidebar as z } from "../../hooks/useSidebar.js";
5
- import { useWorkspace as C } from "../../store/store.js";
6
- const B = {
1
+ import { defineComponent as S, ref as h, withDirectives as D, createElementBlock as l, openBlock as m, normalizeStyle as L, normalizeClass as y, unref as t, renderSlot as r, createCommentVNode as u, createElementVNode as n, toDisplayString as _, Fragment as N, vShow as W } from "vue";
2
+ import { useBreakpoints as $ } from "@scalar/use-hooks/useBreakpoints";
3
+ import { useLayout as z } from "../../hooks/useLayout.js";
4
+ import { useSidebar as C } from "../../hooks/useSidebar.js";
5
+ import { useWorkspace as B } from "../../store/store.js";
6
+ const I = {
7
7
  key: 0,
8
8
  class: "xl:min-h-header flex min-h-12 items-center justify-between px-3 py-1.5 text-sm md:px-[18px] md:py-2.5"
9
- }, I = { class: "m-0 text-sm font-medium whitespace-nowrap" }, X = { class: "bg-b-1 sticky bottom-0 z-10 w-[inherit] pt-0 has-[.empty-sidebar-item]:border-t md:px-2.5 md:pb-2.5" }, q = /* @__PURE__ */ E({
9
+ }, X = { class: "m-0 text-sm font-medium whitespace-nowrap" }, R = { class: "bg-b-1 sticky bottom-0 z-10 w-[inherit] pt-0 has-[.empty-sidebar-item]:border-t md:px-2.5 md:pb-2.5" }, q = /* @__PURE__ */ S({
10
10
  __name: "Sidebar",
11
11
  props: {
12
12
  title: {}
13
13
  },
14
- setup(R) {
15
- const { isSidebarOpen: y } = z(), { sidebarWidth: o, setSidebarWidth: i } = C(), { layout: c } = $(), a = g(!1), p = g(null), { breakpoints: d } = W(), w = (e) => {
14
+ setup(c) {
15
+ const { isSidebarOpen: w } = C(), { sidebarWidth: o, setSidebarWidth: i } = B(), { layout: p } = z(), a = h(!1), f = h(null), { breakpoints: d } = $(), x = (e) => {
16
16
  e.preventDefault();
17
- const f = e.clientX, x = Number.parseInt(
18
- getComputedStyle(p.value).width || o.value,
17
+ const b = e.clientX, k = Number.parseInt(
18
+ getComputedStyle(f.value).width || o.value,
19
19
  10
20
- ), b = (k) => {
20
+ ), v = (E) => {
21
21
  a.value = !0, document.body.classList.add("dragging");
22
- let s = x + k.clientX - f;
22
+ let s = k + E.clientX - b;
23
23
  s > 420 && (s = 420 + (s - 420) * 0.2), s < 240 && (s = 240), i(`${s}px`);
24
- }, v = () => {
25
- a.value = !1, document.body.classList.remove("dragging"), document.documentElement.removeEventListener("mousemove", b, !1), document.documentElement.removeEventListener("mouseup", v, !1), Number.parseInt(o.value, 10) > 420 ? i("360px") : Number.parseInt(o.value, 10) < 240 && i("240px");
24
+ }, g = () => {
25
+ a.value = !1, document.body.classList.remove("dragging"), document.documentElement.removeEventListener("mousemove", v, !1), document.documentElement.removeEventListener("mouseup", g, !1), Number.parseInt(o.value, 10) > 420 ? i("360px") : Number.parseInt(o.value, 10) < 240 && i("240px");
26
26
  };
27
- document.documentElement.addEventListener("mousemove", b, !1), document.documentElement.addEventListener("mouseup", v, !1);
27
+ document.documentElement.addEventListener("mousemove", v, !1), document.documentElement.addEventListener("mouseup", g, !1);
28
28
  };
29
- return (e, f) => S((m(), l("aside", {
29
+ return (e, b) => D((m(), l("aside", {
30
30
  ref_key: "sidebarRef",
31
- ref: p,
32
- class: h(["sidebar bg-b-1 relative flex min-w-full flex-1 flex-col overflow-hidden leading-3 md:min-w-fit md:flex-none md:border-r md:border-b-0", { dragging: a.value }]),
33
- style: _({ width: t(d).lg ? t(o) : "100%" })
31
+ ref: f,
32
+ class: y(["sidebar bg-b-1 relative flex min-w-full flex-1 flex-col overflow-hidden leading-3 md:min-w-fit md:flex-none md:border-r md:border-b-0", { dragging: a.value }]),
33
+ style: L({ width: t(d).lg ? t(o) : "100%" })
34
34
  }, [
35
35
  r(e.$slots, "header", {}, void 0, !0),
36
- t(c) !== "modal" && e.title ? (m(), l("div", B, [
37
- n("h2", I, D(e.title), 1),
36
+ t(p) !== "modal" && c.title ? (m(), l("div", I, [
37
+ n("h2", X, _(c.title), 1),
38
38
  t(d).lg ? u("", !0) : r(e.$slots, "button", { key: 0 }, void 0, !0)
39
39
  ])) : u("", !0),
40
40
  n("div", {
41
- class: h(["custom-scroll sidebar-height w-[inherit] pb-0 md:pb-[37px]", {
42
- "sidebar-mask": t(c) !== "modal"
41
+ class: y(["custom-scroll sidebar-height w-[inherit] pb-0 md:pb-[37px]", {
42
+ "sidebar-mask": t(p) !== "modal"
43
43
  }])
44
44
  }, [
45
45
  r(e.$slots, "content", {}, void 0, !0)
46
46
  ], 2),
47
- t(d).lg ? (m(), l(L, { key: 1 }, [
48
- n("div", X, [
47
+ t(d).lg ? (m(), l(N, { key: 1 }, [
48
+ n("div", R, [
49
49
  r(e.$slots, "button", {}, void 0, !0)
50
50
  ]),
51
51
  n("div", {
52
52
  class: "resizer",
53
- onMousedown: w
53
+ onMousedown: x
54
54
  }, null, 32)
55
55
  ], 64)) : u("", !0)
56
56
  ], 6)), [
57
- [N, t(y)]
57
+ [W, t(w)]
58
58
  ]);
59
59
  }
60
60
  });
@@ -1,24 +1,24 @@
1
- import { defineComponent as u, createBlock as o, openBlock as r, unref as e, withCtx as i, renderSlot as p, createCommentVNode as s } from "vue";
2
- import { ScalarButton as d, ScalarHotkey as k } from "@scalar/components";
3
- import { useLayout as m } from "../../hooks/useLayout.js";
4
- const g = /* @__PURE__ */ u({
1
+ import { defineComponent as u, createBlock as o, openBlock as r, unref as e, withCtx as i, renderSlot as d, createCommentVNode as s } from "vue";
2
+ import { ScalarButton as k, ScalarHotkey as m } from "@scalar/components";
3
+ import { useLayout as p } from "../../hooks/useLayout.js";
4
+ const x = /* @__PURE__ */ u({
5
5
  __name: "SidebarButton",
6
6
  props: {
7
7
  click: { type: Function },
8
8
  hotkey: {}
9
9
  },
10
- setup(a) {
11
- const l = a, { layout: n } = m(), c = () => {
12
- l.click();
10
+ setup(t) {
11
+ const a = t, { layout: c } = p(), l = () => {
12
+ a.click();
13
13
  };
14
- return (t, h) => (r(), o(e(d), {
14
+ return (n, h) => (r(), o(e(k), {
15
15
  class: "bg-b-1 text-c-1 hover:bg-b-2 group relative h-auto w-auto border px-2 py-1 md:w-full md:p-1.5",
16
16
  variant: "outlined",
17
- onClick: c
17
+ onClick: l
18
18
  }, {
19
19
  default: i(() => [
20
- p(t.$slots, "title"),
21
- t.hotkey && e(n) === "desktop" ? (r(), o(e(k), {
20
+ d(n.$slots, "title"),
21
+ t.hotkey && e(c) === "desktop" ? (r(), o(e(m), {
22
22
  key: 0,
23
23
  class: "text-c-2 add-item-hotkey absolute right-2 hidden group-hover:opacity-80 md:flex",
24
24
  hotkey: t.hotkey
@@ -29,5 +29,5 @@ const g = /* @__PURE__ */ u({
29
29
  }
30
30
  });
31
31
  export {
32
- g as default
32
+ x as default
33
33
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as C, ref as B, computed as h, resolveComponent as w, createElementBlock as b, openBlock as n, createVNode as r, unref as p, withCtx as d, withModifiers as R, normalizeClass as M, createCommentVNode as m, createBlock as E, createElementVNode as g, normalizeStyle as I, toDisplayString as N } from "vue";
2
- import { ScalarIcon as S } from "@scalar/components";
3
- import { Draggable as z } from "@scalar/draggable";
4
- import { useRouter as V } from "vue-router";
5
- import $ from "./SidebarListElementActions.vue.js";
6
- const O = { class: "empty-variable-name line-clamp-1 text-sm break-all group-hover:pr-5" }, q = /* @__PURE__ */ C({
1
+ import { defineComponent as B, ref as p, computed as h, resolveComponent as w, createElementBlock as b, openBlock as t, createVNode as i, unref as c, withCtx as d, withModifiers as x, normalizeClass as R, createCommentVNode as m, createBlock as M, createElementVNode as g, normalizeStyle as E, toDisplayString as I } from "vue";
2
+ import { ScalarIcon as N } from "@scalar/components";
3
+ import { Draggable as S } from "@scalar/draggable";
4
+ import { useRouter as z } from "vue-router";
5
+ import V from "./SidebarListElementActions.vue.js";
6
+ const $ = { class: "empty-variable-name line-clamp-1 text-sm break-all group-hover:pr-5" }, j = /* @__PURE__ */ B({
7
7
  __name: "SidebarListElement",
8
8
  props: {
9
9
  variable: {},
@@ -17,67 +17,67 @@ const O = { class: "empty-variable-name line-clamp-1 text-sm break-all group-hov
17
17
  collectionId: {}
18
18
  },
19
19
  emits: ["delete", "colorModal", "rename", "onDragEnd"],
20
- setup(i, { emit: u }) {
21
- const o = u, t = V(), f = (e) => {
22
- e.metaKey ? window.open(t.resolve(i.to).href, "_blank") : t.push(i.to);
23
- }, c = (e) => {
24
- o("delete", e);
25
- }, v = (e) => {
26
- o("colorModal", e);
27
- }, D = (e) => {
28
- o("rename", e);
29
- }, y = B(null), s = h(() => ({
20
+ setup(e, { emit: u }) {
21
+ const n = u, r = z(), f = (l) => {
22
+ l.metaKey ? window.open(r.resolve(e.to).href, "_blank") : r.push(e.to);
23
+ }, v = (l) => {
24
+ n("delete", l);
25
+ }, D = (l) => {
26
+ n("colorModal", l);
27
+ }, y = (l) => {
28
+ n("rename", l);
29
+ }, k = p(null), s = h(() => ({
30
30
  ceiling: 0.5,
31
31
  floor: 0.5
32
32
  }));
33
- return (e, l) => {
34
- const k = w("router-link");
35
- return n(), b("li", null, [
36
- r(p(z), {
33
+ return (l, a) => {
34
+ const C = w("router-link");
35
+ return t(), b("li", null, [
36
+ i(c(S), {
37
37
  id: e.variable.uid,
38
38
  ref_key: "draggableRef",
39
- ref: y,
39
+ ref: k,
40
40
  ceiling: s.value.ceiling,
41
41
  floor: s.value.floor,
42
42
  isDraggable: e.isDraggable,
43
43
  isDroppable: e.isDroppable,
44
44
  parentIds: e.collectionId ? [e.collectionId] : [],
45
- onOnDragEnd: l[2] || (l[2] = (...a) => e.$emit("onDragEnd", ...a))
45
+ onOnDragEnd: a[2] || (a[2] = (...o) => l.$emit("onDragEnd", ...o))
46
46
  }, {
47
47
  default: d(() => [
48
- r(k, {
49
- class: M(["text-c-2 hover:bg-b-2 group relative flex h-8 items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline", [e.variable.color ? "pl-5" : "pl-1.5"]]),
48
+ i(C, {
49
+ class: R(["text-c-2 hover:bg-b-2 group relative flex h-8 items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline", [e.variable.color ? "pl-5" : "pl-1.5"]]),
50
50
  exactActiveClass: "bg-b-2 !text-c-1",
51
51
  role: "button",
52
52
  to: e.to,
53
- onClick: l[1] || (l[1] = R((a) => f(a), ["prevent"]))
53
+ onClick: a[1] || (a[1] = x((o) => f(o), ["prevent"]))
54
54
  }, {
55
55
  default: d(() => [
56
- e.variable.color ? (n(), b("button", {
56
+ e.variable.color ? (t(), b("button", {
57
57
  key: 0,
58
58
  class: "hover:bg-b-3 rounded p-1.5",
59
59
  type: "button",
60
- onClick: l[0] || (l[0] = (a) => v(e.variable.uid))
60
+ onClick: a[0] || (a[0] = (o) => D(e.variable.uid))
61
61
  }, [
62
62
  g("div", {
63
63
  class: "h-2.5 w-2.5 rounded-xl",
64
- style: I({ backgroundColor: e.variable.color })
64
+ style: E({ backgroundColor: e.variable.color })
65
65
  }, null, 4)
66
66
  ])) : m("", !0),
67
- e.variable.icon ? (n(), E(p(S), {
67
+ e.variable.icon ? (t(), M(c(N), {
68
68
  key: 1,
69
69
  class: "text-sidebar-c-2 size-3.5 stroke-[2.25]",
70
70
  icon: e.variable.icon
71
71
  }, null, 8, ["icon"])) : m("", !0),
72
- g("span", O, N(e.variable.name), 1),
73
- r($, {
72
+ g("span", $, I(e.variable.name), 1),
73
+ i(V, {
74
74
  isCopyable: !!e.isCopyable,
75
75
  isDeletable: !!e.isDeletable,
76
76
  isRenameable: !!e.isRenameable,
77
77
  variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
78
78
  warningMessage: e.warningMessage,
79
- onDelete: c,
80
- onRename: D
79
+ onDelete: v,
80
+ onRename: y
81
81
  }, null, 8, ["isCopyable", "isDeletable", "isRenameable", "variable", "warningMessage"])
82
82
  ]),
83
83
  _: 1
@@ -90,5 +90,5 @@ const O = { class: "empty-variable-name line-clamp-1 text-sm break-all group-hov
90
90
  }
91
91
  });
92
92
  export {
93
- q as default
93
+ j as default
94
94
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as g, ref as C, createElementBlock as l, openBlock as n, Fragment as h, createElementVNode as w, createVNode as i, createCommentVNode as r, unref as a, withModifiers as k, withCtx as M, createBlock as D } from "vue";
2
- import { useModal as N, ScalarIcon as m, ScalarModal as $ } from "@scalar/components";
3
- import { useClipboard as B } from "@scalar/use-hooks/useClipboard";
4
- import x from "./Actions/DeleteSidebarListElement.vue.js";
1
+ import { defineComponent as g, ref as C, createElementBlock as i, openBlock as o, Fragment as x, createElementVNode as h, createVNode as r, createCommentVNode as s, unref as n, withModifiers as w, withCtx as k, createBlock as M } from "vue";
2
+ import { useModal as D, ScalarIcon as m, ScalarModal as N } from "@scalar/components";
3
+ import { useClipboard as $ } from "@scalar/use-hooks/useClipboard";
4
+ import B from "./Actions/DeleteSidebarListElement.vue.js";
5
5
  const E = { class: "absolute right-1 flex opacity-0 group-hover:opacity-100" }, R = /* @__PURE__ */ g({
6
6
  __name: "SidebarListElementActions",
7
7
  props: {
@@ -12,69 +12,69 @@ const E = { class: "absolute right-1 flex opacity-0 group-hover:opacity-100" },
12
12
  isRenameable: { type: Boolean }
13
13
  },
14
14
  emits: ["delete", "rename"],
15
- setup(d, { emit: p }) {
16
- const b = p, o = C({ action: "None", name: "" }), s = N(), { copyToClipboard: v } = B();
17
- function f(e) {
18
- o.value = { action: e, name: d.variable.name }, s.show();
15
+ setup(e, { emit: v }) {
16
+ const b = v, a = C({ action: "None", name: "" }), c = D(), { copyToClipboard: f } = $();
17
+ function p(l) {
18
+ a.value = { action: l, name: e.variable.name }, c.show();
19
19
  }
20
- function c() {
21
- s.hide(), o.value = { action: "None", name: "" };
20
+ function d() {
21
+ c.hide(), a.value = { action: "None", name: "" };
22
22
  }
23
- function y(e) {
24
- b("delete", e), c();
23
+ function y(l) {
24
+ b("delete", l), d();
25
25
  }
26
- return (e, t) => (n(), l(h, null, [
27
- w("div", E, [
28
- e.isCopyable ? (n(), l("button", {
26
+ return (l, t) => (o(), i(x, null, [
27
+ h("div", E, [
28
+ e.isCopyable ? (o(), i("button", {
29
29
  key: 0,
30
30
  class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",
31
31
  type: "button",
32
- onClick: t[0] || (t[0] = (u) => a(v)(e.variable.name))
32
+ onClick: t[0] || (t[0] = (u) => n(f)(e.variable.name))
33
33
  }, [
34
- i(a(m), {
34
+ r(n(m), {
35
35
  class: "h-3 w-3",
36
36
  icon: "Clipboard"
37
37
  })
38
- ])) : r("", !0),
39
- e.isRenameable ? (n(), l("button", {
38
+ ])) : s("", !0),
39
+ e.isRenameable ? (o(), i("button", {
40
40
  key: 1,
41
41
  class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",
42
42
  type: "button",
43
43
  onClick: t[1] || (t[1] = (u) => b("rename", e.variable.uid))
44
44
  }, [
45
- i(a(m), {
45
+ r(n(m), {
46
46
  class: "h-3 w-3",
47
47
  icon: "Edit"
48
48
  })
49
- ])) : r("", !0),
50
- !e.variable.isDefault && e.isDeletable ? (n(), l("button", {
49
+ ])) : s("", !0),
50
+ !e.variable.isDefault && e.isDeletable ? (o(), i("button", {
51
51
  key: 2,
52
52
  class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",
53
53
  type: "button",
54
- onClick: t[2] || (t[2] = k((u) => f(
54
+ onClick: t[2] || (t[2] = w((u) => p(
55
55
  "Delete"
56
56
  /* Delete */
57
57
  ), ["prevent"]))
58
58
  }, [
59
- i(a(m), {
59
+ r(n(m), {
60
60
  class: "h-3.5 w-3.5",
61
61
  icon: "Close"
62
62
  })
63
- ])) : r("", !0)
63
+ ])) : s("", !0)
64
64
  ]),
65
- i(a($), {
65
+ r(n(N), {
66
66
  size: "sm",
67
- state: a(s),
68
- title: `${o.value.action} ${o.value.name}`
67
+ state: n(c),
68
+ title: `${a.value.action} ${a.value.name}`
69
69
  }, {
70
- default: M(() => [
71
- o.value.action === "Delete" ? (n(), D(x, {
70
+ default: k(() => [
71
+ a.value.action === "Delete" ? (o(), M(B, {
72
72
  key: 0,
73
- variableName: o.value.name,
73
+ variableName: a.value.name,
74
74
  warningMessage: e.warningMessage,
75
- onClose: c,
75
+ onClose: d,
76
76
  onDelete: t[3] || (t[3] = (u) => y(e.variable.uid))
77
- }, null, 8, ["variableName", "warningMessage"])) : r("", !0)
77
+ }, null, 8, ["variableName", "warningMessage"])) : s("", !0)
78
78
  ]),
79
79
  _: 1
80
80
  }, 8, ["state", "title"])