@scalar/api-client 2.8.1 → 2.9.1

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 (444) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/components/AddressBar/AddressBarHistory.vue2.js +9 -10
  3. package/dist/components/CodeInput/CodeInput.vue2.js +5 -5
  4. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
  5. package/dist/components/CommandPalette/CommandActionForm.vue.js +10 -10
  6. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +3 -3
  7. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +3 -3
  8. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +18 -20
  9. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +2 -2
  10. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +1 -1
  11. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +13 -14
  12. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +3 -3
  13. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +3 -3
  14. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +22 -24
  15. package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
  16. package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
  17. package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -9
  18. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -10
  19. package/dist/components/IconSelector.vue.js +1 -1
  20. package/dist/components/ImportCollection/DropEventListener.vue.js +12 -12
  21. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +8 -8
  22. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
  23. package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -16
  24. package/dist/components/ImportCollection/PasteEventListener.vue.js +1 -1
  25. package/dist/components/ImportCollection/PrefetchError.vue.js +2 -2
  26. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +5 -7
  27. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -1
  28. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +3 -3
  30. package/dist/components/OpenApiClientButton.vue2.js +1 -1
  31. package/dist/components/Server/ServerSelector.vue.js +1 -2
  32. package/dist/components/SideNav/SideHelp.vue.js +13 -19
  33. package/dist/components/SideNav/SideNav.vue.js +4 -5
  34. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +4 -5
  35. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  36. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  37. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  38. package/dist/components/TopNav/TopNav.vue.js +8 -10
  39. package/dist/components/TopNav/TopNavItem.vue2.js +8 -12
  40. package/dist/hooks/index.d.ts +0 -1
  41. package/dist/hooks/index.d.ts.map +1 -1
  42. package/dist/hooks/index.js +9 -11
  43. package/dist/hooks/useClientConfig.d.ts +3 -0
  44. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  45. package/dist/index.d.ts +1 -2
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +8 -15
  48. package/dist/layouts/App/create-api-client-app.d.ts +3646 -3645
  49. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  50. package/dist/layouts/App/create-api-client-app.js +24 -18
  51. package/dist/layouts/Modal/create-api-client-modal.d.ts +5 -8089
  52. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  53. package/dist/layouts/Modal/create-api-client-modal.js +28 -46
  54. package/dist/layouts/Modal/index.d.ts +2 -2
  55. package/dist/layouts/Modal/index.d.ts.map +1 -1
  56. package/dist/layouts/Modal/index.js +2 -5
  57. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  58. package/dist/layouts/Web/create-api-client-web.js +15 -12
  59. package/dist/libs/create-client.d.ts +2 -2
  60. package/dist/libs/create-client.d.ts.map +1 -1
  61. package/dist/libs/postman.d.ts +1 -1
  62. package/dist/libs/postman.d.ts.map +1 -1
  63. package/dist/libs/postman.js +12 -12
  64. package/dist/libs/validate-parameters.d.ts +10 -2
  65. package/dist/libs/validate-parameters.d.ts.map +1 -1
  66. package/dist/libs/validate-parameters.js +13 -6
  67. package/dist/routes.d.ts +3 -184
  68. package/dist/routes.d.ts.map +1 -1
  69. package/dist/routes.js +6 -6
  70. package/dist/store/active-entities.d.ts +1 -1
  71. package/dist/store/active-entities.d.ts.map +1 -1
  72. package/dist/store/active-entities.js +2 -2
  73. package/dist/store/router-params.d.ts.map +1 -1
  74. package/dist/style.css +1 -1
  75. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +5 -5
  76. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  77. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  78. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +3 -3
  79. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +3 -4
  80. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +1 -0
  81. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
  82. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -2
  83. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +7 -8
  84. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +44 -55
  85. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +16 -18
  86. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +41 -46
  87. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  88. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +3 -0
  89. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
  90. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
  91. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +201 -187
  92. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
  93. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +8 -10
  94. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +2 -3
  95. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +2 -4
  96. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +14 -16
  97. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +3 -0
  98. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
  99. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
  100. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +87 -85
  101. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +10 -11
  102. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +4 -5
  103. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +1 -1
  104. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +3 -3
  105. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +1 -1
  106. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +5 -5
  107. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +9 -10
  108. package/dist/v2/components/TempReplaceMe.vue.d.ts +3 -0
  109. package/dist/v2/components/TempReplaceMe.vue.d.ts.map +1 -0
  110. package/dist/v2/components/TempReplaceMe.vue.js +12 -0
  111. package/dist/v2/components/code-input/CodeInput.test.d.ts +2 -0
  112. package/dist/v2/components/code-input/CodeInput.test.d.ts.map +1 -0
  113. package/dist/v2/components/code-input/CodeInput.vue.d.ts +140 -0
  114. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -0
  115. package/dist/v2/components/code-input/CodeInput.vue.js +8 -0
  116. package/dist/v2/components/code-input/CodeInput.vue2.js +202 -0
  117. package/dist/v2/components/code-input/code-variable-widget.d.ts +21 -0
  118. package/dist/v2/components/code-input/code-variable-widget.d.ts.map +1 -0
  119. package/dist/v2/components/code-input/code-variable-widget.js +106 -0
  120. package/dist/v2/components/code-input/code-variable-widget.test.d.ts +2 -0
  121. package/dist/v2/components/code-input/code-variable-widget.test.d.ts.map +1 -0
  122. package/dist/v2/components/code-input/index.d.ts +2 -0
  123. package/dist/v2/components/code-input/index.d.ts.map +1 -0
  124. package/dist/v2/components/code-input/index.js +4 -0
  125. package/dist/v2/components/data-table/DataTable.vue.d.ts +22 -0
  126. package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -0
  127. package/dist/v2/components/data-table/DataTable.vue.js +38 -0
  128. package/dist/v2/components/data-table/DataTable.vue2.js +4 -0
  129. package/dist/v2/components/data-table/DataTableCell.vue.d.ts +19 -0
  130. package/dist/v2/components/data-table/DataTableCell.vue.d.ts.map +1 -0
  131. package/dist/v2/components/data-table/DataTableCell.vue.js +26 -0
  132. package/dist/v2/components/data-table/DataTableCell.vue2.js +4 -0
  133. package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts +14 -0
  134. package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts.map +1 -0
  135. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +53 -0
  136. package/dist/v2/components/data-table/DataTableCheckbox.vue2.js +4 -0
  137. package/dist/v2/components/data-table/DataTableHeader.vue.d.ts +13 -0
  138. package/dist/v2/components/data-table/DataTableHeader.vue.d.ts.map +1 -0
  139. package/dist/v2/components/data-table/DataTableHeader.vue.js +18 -0
  140. package/dist/v2/components/data-table/DataTableHeader.vue2.js +4 -0
  141. package/dist/v2/components/data-table/DataTableInput.vue.d.ts +53 -0
  142. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -0
  143. package/dist/v2/components/data-table/DataTableInput.vue.js +7 -0
  144. package/dist/v2/components/data-table/DataTableInput.vue2.js +117 -0
  145. package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +16 -0
  146. package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -0
  147. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +146 -0
  148. package/dist/v2/components/data-table/DataTableInputSelect.vue2.js +4 -0
  149. package/dist/v2/components/data-table/DataTableRow.vue.d.ts +13 -0
  150. package/dist/v2/components/data-table/DataTableRow.vue.d.ts.map +1 -0
  151. package/dist/v2/components/data-table/DataTableRow.vue.js +12 -0
  152. package/dist/v2/components/data-table/DataTableText.vue.d.ts +16 -0
  153. package/dist/v2/components/data-table/DataTableText.vue.d.ts.map +1 -0
  154. package/dist/v2/components/data-table/DataTableText.vue.js +23 -0
  155. package/dist/v2/components/data-table/DataTableText.vue2.js +4 -0
  156. package/dist/v2/components/data-table/index.d.ts +9 -0
  157. package/dist/v2/components/data-table/index.d.ts.map +1 -0
  158. package/dist/v2/components/data-table/index.js +18 -0
  159. package/dist/v2/components/resize/Resize.vue.d.ts +20 -0
  160. package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -0
  161. package/dist/v2/components/resize/Resize.vue.js +8 -0
  162. package/dist/v2/components/resize/Resize.vue2.js +36 -0
  163. package/dist/v2/components/resize/index.d.ts +3 -0
  164. package/dist/v2/components/resize/index.d.ts.map +1 -0
  165. package/dist/v2/components/resize/index.js +4 -0
  166. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +39 -0
  167. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -0
  168. package/dist/v2/components/sidebar/Sidebar.vue.js +95 -0
  169. package/dist/v2/components/sidebar/Sidebar.vue2.js +4 -0
  170. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +13 -0
  171. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -0
  172. package/dist/v2/components/sidebar/SidebarMenu.vue.js +63 -0
  173. package/dist/v2/components/sidebar/SidebarMenu.vue2.js +4 -0
  174. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts +10 -0
  175. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts.map +1 -0
  176. package/dist/v2/components/sidebar/SidebarToggle.vue.js +52 -0
  177. package/dist/v2/components/sidebar/SidebarToggle.vue2.js +4 -0
  178. package/dist/v2/components/sidebar/index.d.ts +4 -0
  179. package/dist/v2/components/sidebar/index.d.ts.map +1 -0
  180. package/dist/v2/components/sidebar/index.js +8 -0
  181. package/dist/v2/features/app/App.test.d.ts +2 -0
  182. package/dist/v2/features/app/App.test.d.ts.map +1 -0
  183. package/dist/v2/features/app/App.vue.d.ts +16 -0
  184. package/dist/v2/features/app/App.vue.d.ts.map +1 -0
  185. package/dist/v2/features/app/App.vue.js +87 -0
  186. package/dist/v2/features/app/App.vue3.js +5 -0
  187. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +30 -0
  188. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -0
  189. package/dist/v2/features/app/components/AppSidebar.vue.js +7 -0
  190. package/dist/v2/features/app/components/AppSidebar.vue2.js +117 -0
  191. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +6 -0
  192. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -0
  193. package/dist/v2/features/app/components/DesktopTabs.vue.js +15 -0
  194. package/dist/v2/features/app/components/DesktopTabs.vue2.js +6 -0
  195. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts +3 -0
  196. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -0
  197. package/dist/v2/features/app/components/DownloadAppButton.vue.js +7 -0
  198. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +19 -0
  199. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +16 -0
  200. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -0
  201. package/dist/v2/features/app/components/WebTopNav.vue.js +28 -0
  202. package/dist/v2/features/app/components/WebTopNav.vue2.js +4 -0
  203. package/dist/v2/features/app/components/index.d.ts +2 -0
  204. package/dist/v2/features/app/components/index.d.ts.map +1 -0
  205. package/dist/v2/features/app/components/index.js +5 -0
  206. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +25 -0
  207. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -0
  208. package/dist/v2/features/app/helpers/create-api-client-app.js +21 -0
  209. package/dist/v2/features/app/helpers/routes.d.ts +106 -0
  210. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -0
  211. package/dist/v2/features/app/helpers/routes.js +109 -0
  212. package/dist/v2/features/app/index.d.ts +2 -0
  213. package/dist/v2/features/app/index.d.ts.map +1 -0
  214. package/dist/v2/features/app/index.js +4 -0
  215. package/dist/v2/features/collection/DocumentCollection.test.d.ts +2 -0
  216. package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +1 -0
  217. package/dist/v2/features/collection/DocumentCollection.vue.d.ts +12 -0
  218. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -0
  219. package/dist/v2/features/collection/DocumentCollection.vue.js +4 -0
  220. package/dist/v2/features/collection/DocumentCollection.vue2.js +95 -0
  221. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +10 -0
  222. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -0
  223. package/dist/v2/features/collection/WorkspaceCollection.vue.js +4 -0
  224. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +40 -0
  225. package/dist/v2/features/collection/components/Authentication.test.d.ts +2 -0
  226. package/dist/v2/features/collection/components/Authentication.test.d.ts.map +1 -0
  227. package/dist/v2/features/collection/components/Authentication.vue.d.ts +48 -0
  228. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -0
  229. package/dist/v2/features/collection/components/Authentication.vue.js +7 -0
  230. package/dist/v2/features/collection/components/Authentication.vue2.js +50 -0
  231. package/dist/v2/features/collection/components/Cookies.vue.d.ts +3 -0
  232. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -0
  233. package/dist/v2/features/collection/components/Cookies.vue.js +9 -0
  234. package/dist/v2/features/collection/components/Environment.test.d.ts +2 -0
  235. package/dist/v2/features/collection/components/Environment.test.d.ts.map +1 -0
  236. package/dist/v2/features/collection/components/Environment.vue.d.ts +15 -0
  237. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -0
  238. package/dist/v2/features/collection/components/Environment.vue.js +4 -0
  239. package/dist/v2/features/collection/components/Environment.vue2.js +29 -0
  240. package/dist/v2/features/collection/components/Form.vue.d.ts +29 -0
  241. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -0
  242. package/dist/v2/features/collection/components/Form.vue.js +83 -0
  243. package/dist/v2/features/collection/components/Form.vue2.js +4 -0
  244. package/dist/v2/features/collection/components/LabelInput.test.d.ts +2 -0
  245. package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +1 -0
  246. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +10 -0
  247. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -0
  248. package/dist/v2/features/collection/components/LabelInput.vue.js +7 -0
  249. package/dist/v2/features/collection/components/LabelInput.vue2.js +29 -0
  250. package/dist/v2/features/collection/components/Overview.test.d.ts +2 -0
  251. package/dist/v2/features/collection/components/Overview.test.d.ts.map +1 -0
  252. package/dist/v2/features/collection/components/Overview.vue.d.ts +15 -0
  253. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -0
  254. package/dist/v2/features/collection/components/Overview.vue.js +7 -0
  255. package/dist/v2/features/collection/components/Overview.vue2.js +89 -0
  256. package/dist/v2/features/collection/components/Servers.test.d.ts +2 -0
  257. package/dist/v2/features/collection/components/Servers.test.d.ts.map +1 -0
  258. package/dist/v2/features/collection/components/Servers.vue.d.ts +33 -0
  259. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -0
  260. package/dist/v2/features/collection/components/Servers.vue.js +4 -0
  261. package/dist/v2/features/collection/components/Servers.vue2.js +120 -0
  262. package/dist/v2/features/collection/components/Settings.test.d.ts +2 -0
  263. package/dist/v2/features/collection/components/Settings.test.d.ts.map +1 -0
  264. package/dist/v2/features/collection/components/Settings.vue.d.ts +17 -0
  265. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -0
  266. package/dist/v2/features/collection/components/Settings.vue.js +7 -0
  267. package/dist/v2/features/collection/components/Settings.vue2.js +100 -0
  268. package/dist/v2/features/collection/components/Tabs.test.d.ts +2 -0
  269. package/dist/v2/features/collection/components/Tabs.test.d.ts.map +1 -0
  270. package/dist/v2/features/collection/components/Tabs.vue.d.ts +6 -0
  271. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -0
  272. package/dist/v2/features/collection/components/Tabs.vue.js +46 -0
  273. package/dist/v2/features/collection/components/Tabs.vue2.js +4 -0
  274. package/dist/v2/features/environments/EnvironmentsList.test.d.ts +2 -0
  275. package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +1 -0
  276. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +9 -0
  277. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -0
  278. package/dist/v2/features/environments/EnvironmentsList.vue.js +66 -0
  279. package/dist/v2/features/environments/EnvironmentsList.vue2.js +4 -0
  280. package/dist/v2/features/environments/components/Environment.test.d.ts +2 -0
  281. package/dist/v2/features/environments/components/Environment.test.d.ts.map +1 -0
  282. package/dist/v2/features/environments/components/Environment.vue.d.ts +16 -0
  283. package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -0
  284. package/dist/v2/features/environments/components/Environment.vue.js +53 -0
  285. package/dist/v2/features/environments/components/Environment.vue2.js +4 -0
  286. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +2 -0
  287. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +1 -0
  288. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts +10 -0
  289. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -0
  290. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +121 -0
  291. package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +4 -0
  292. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +12 -0
  293. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -0
  294. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +85 -0
  295. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +4 -0
  296. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +14 -0
  297. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -0
  298. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +53 -0
  299. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +4 -0
  300. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts +21 -0
  301. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts.map +1 -0
  302. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +109 -0
  303. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue2.js +4 -0
  304. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +2 -0
  305. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +1 -0
  306. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +10 -0
  307. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -0
  308. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +7 -0
  309. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +136 -0
  310. package/dist/v2/features/environments/index.d.ts +2 -0
  311. package/dist/v2/features/environments/index.d.ts.map +1 -0
  312. package/dist/v2/features/environments/index.js +4 -0
  313. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +2 -0
  314. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +1 -0
  315. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +25 -0
  316. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -0
  317. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +7 -0
  318. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +156 -0
  319. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +2 -0
  320. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +1 -0
  321. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +32 -0
  322. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +1 -0
  323. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +7 -0
  324. package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +58 -0
  325. package/dist/v2/features/global-cookies/index.d.ts +2 -0
  326. package/dist/v2/features/global-cookies/index.d.ts.map +1 -0
  327. package/dist/v2/features/global-cookies/index.js +4 -0
  328. package/dist/v2/features/modal/Modal.vue.d.ts +16 -0
  329. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -0
  330. package/dist/v2/features/modal/Modal.vue.js +7 -0
  331. package/dist/v2/features/modal/Modal.vue2.js +81 -0
  332. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +53 -0
  333. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -0
  334. package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -0
  335. package/dist/v2/features/modal/index.d.ts +2 -0
  336. package/dist/v2/features/modal/index.d.ts.map +1 -0
  337. package/dist/v2/features/modal/index.js +4 -0
  338. package/dist/v2/features/operation/Operation.test.d.ts +2 -0
  339. package/dist/v2/features/operation/Operation.test.d.ts.map +1 -0
  340. package/dist/v2/features/operation/Operation.vue.d.ts +79 -0
  341. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -0
  342. package/dist/v2/features/operation/Operation.vue.js +124 -0
  343. package/dist/v2/features/operation/Operation.vue2.js +4 -0
  344. package/dist/v2/features/operation/components/Header.test.d.ts +2 -0
  345. package/dist/v2/features/operation/components/Header.test.d.ts.map +1 -0
  346. package/dist/v2/features/operation/components/Header.vue.d.ts +85 -0
  347. package/dist/v2/features/operation/components/Header.vue.d.ts.map +1 -0
  348. package/dist/v2/features/operation/components/Header.vue.js +7 -0
  349. package/dist/v2/features/operation/components/Header.vue2.js +97 -0
  350. package/dist/v2/features/operation/index.d.ts +3 -0
  351. package/dist/v2/features/operation/index.d.ts.map +1 -0
  352. package/dist/v2/features/operation/index.js +4 -0
  353. package/dist/v2/features/settings/Settings.test.d.ts +2 -0
  354. package/dist/v2/features/settings/Settings.test.d.ts.map +1 -0
  355. package/dist/v2/features/settings/Settings.vue.d.ts +22 -0
  356. package/dist/v2/features/settings/Settings.vue.d.ts.map +1 -0
  357. package/dist/v2/features/settings/Settings.vue.js +268 -0
  358. package/dist/v2/features/settings/Settings.vue2.js +4 -0
  359. package/dist/v2/features/settings/components/Appearance.vue.d.ts +10 -0
  360. package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -0
  361. package/dist/v2/features/settings/components/Appearance.vue.js +88 -0
  362. package/dist/v2/features/settings/components/Appearance.vue2.js +4 -0
  363. package/dist/v2/features/settings/components/Section.vue.d.ts +14 -0
  364. package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -0
  365. package/dist/v2/features/settings/components/Section.vue.js +24 -0
  366. package/dist/v2/features/settings/components/Section.vue2.js +4 -0
  367. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +9 -0
  368. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -0
  369. package/dist/v2/features/settings/helpers/get-theme-colors.js +17 -0
  370. package/dist/v2/features/settings/index.d.ts +2 -0
  371. package/dist/v2/features/settings/index.d.ts.map +1 -0
  372. package/dist/v2/features/settings/index.js +4 -0
  373. package/dist/v2/helpers/test-utils.d.ts +4 -0
  374. package/dist/v2/helpers/test-utils.d.ts.map +1 -0
  375. package/dist/v2/hooks/use-document-watcher.d.ts +28 -0
  376. package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -0
  377. package/dist/v2/hooks/use-document-watcher.test.d.ts +2 -0
  378. package/dist/v2/hooks/use-document-watcher.test.d.ts.map +1 -0
  379. package/dist/v2/hooks/use-workspace-client-events.d.ts +9 -0
  380. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -0
  381. package/dist/v2/hooks/use-workspace-client-events.js +27 -0
  382. package/dist/v2/plugins.d.ts +44 -0
  383. package/dist/v2/plugins.d.ts.map +1 -0
  384. package/dist/v2/types/layout.d.ts +10 -0
  385. package/dist/v2/types/layout.d.ts.map +1 -0
  386. package/dist/views/Collection/Collection.vue2.js +6 -6
  387. package/dist/views/Collection/CollectionCookies.vue2.js +3 -3
  388. package/dist/views/Collection/CollectionEnvironment.vue2.js +12 -13
  389. package/dist/views/Collection/CollectionScripts.vue2.js +3 -3
  390. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
  391. package/dist/views/Collection/CollectionServerForm.vue.js +42 -62
  392. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
  393. package/dist/views/Collection/CollectionServers.vue2.js +43 -50
  394. package/dist/views/Collection/CollectionSettings.vue.js +2 -2
  395. package/dist/views/Collection/CollectionSettings.vue2.js +5 -6
  396. package/dist/views/Collection/CollectionSync.vue2.js +3 -3
  397. package/dist/views/Collection/components/EnvironmentForm.vue2.js +10 -12
  398. package/dist/views/Collection/components/MarkdownInput.vue2.js +2 -4
  399. package/dist/views/Cookies/CookieModal.vue2.js +6 -6
  400. package/dist/views/Cookies/Cookies.vue2.js +6 -6
  401. package/dist/views/Environment/Environment.vue2.js +5 -6
  402. package/dist/views/Environment/EnvironmentModal.vue.js +13 -14
  403. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +8 -9
  404. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  405. package/dist/views/Request/RequestRoot.vue.js +2 -2
  406. package/dist/views/Request/RequestRoot.vue2.js +79 -80
  407. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +10 -11
  408. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -55
  409. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +10 -12
  410. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
  411. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +39 -44
  412. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  413. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  414. package/dist/views/Request/RequestSection/RequestBody.vue2.js +96 -78
  415. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +3 -3
  416. package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -3
  417. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  418. package/dist/views/Request/RequestSection/RequestSection.vue2.js +55 -55
  419. package/dist/views/Request/RequestSection/RequestTable.vue2.js +15 -17
  420. package/dist/views/Request/RequestSidebar.vue2.js +7 -8
  421. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  422. package/dist/views/Request/RequestSidebarItem.vue2.js +31 -32
  423. package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
  424. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -16
  425. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +11 -13
  426. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +4 -5
  427. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -5
  428. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
  429. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
  430. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +4 -4
  431. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +11 -13
  432. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +7 -8
  433. package/dist/views/Request/components/WorkspaceDropdown.vue.js +11 -14
  434. package/dist/views/Request/libs/oauth2.d.ts +1 -1
  435. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  436. package/dist/views/Settings/SettingsGeneral.vue.js +40 -42
  437. package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -11
  438. package/package.json +31 -26
  439. package/dist/hooks/useKeyMap.d.ts +0 -2
  440. package/dist/hooks/useKeyMap.d.ts.map +0 -1
  441. package/dist/hooks/useKeyMap.js +0 -9
  442. package/dist/router.d.ts +0 -8
  443. package/dist/router.d.ts.map +0 -1
  444. package/dist/router.js +0 -20
@@ -1,7 +1,7 @@
1
1
  import o from "./OperationBlock.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6c469e03"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a58f7b6a"]]);
5
5
  export {
6
- c as default
6
+ f as default
7
7
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as g, ref as D, computed as f, useId as q, watch as O, createBlock as U, openBlock as y, withCtx as k, withDirectives as p, createVNode as s, unref as o, vShow as m, createElementVNode as T, createElementBlock as b, createCommentVNode as N, toDisplayString as H } from "vue";
2
- import { canMethodHaveBody as V, REGEX as K } from "@scalar/oas-utils/helpers";
3
- import { getResolvedRef as R } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
- import I from "../../../../components/SectionFilter.vue.js";
5
- import E from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
6
- import P from "./OperationBody.vue.js";
7
- import v from "./OperationParams.vue.js";
8
- import { groupBy as Q } from "../helpers/group-by.js";
9
- import $ from "../../scalar-auth-selector-block/components/AuthSelector.vue.js";
10
- const j = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, z = ["for"], F = ["id", "placeholder", "value"], L = {
1
+ import { defineComponent as E, ref as T, computed as b, useId as K, watch as N, resolveComponent as H, createBlock as V, openBlock as s, withCtx as S, withDirectives as m, createElementBlock as v, createVNode as i, unref as l, vShow as y, Fragment as I, renderList as P, createCommentVNode as R, resolveDynamicComponent as Q, createElementVNode as F, toDisplayString as L } from "vue";
2
+ import { canMethodHaveBody as A, REGEX as C } from "@scalar/oas-utils/helpers";
3
+ import { getResolvedRef as h } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
+ import $ from "../../../../components/SectionFilter.vue.js";
5
+ import j from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
6
+ import z from "./OperationBody.vue.js";
7
+ import f from "./OperationParams.vue.js";
8
+ import { groupBy as G } from "../helpers/group-by.js";
9
+ import M from "../../scalar-auth-selector-block/components/AuthSelector.vue.js";
10
+ const X = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, J = ["for"], W = ["id", "placeholder", "value"], Y = {
11
11
  key: 2,
12
12
  class: "text-c-1 flex h-8 items-center"
13
- }, _ = /* @__PURE__ */ g({
13
+ }, le = /* @__PURE__ */ E({
14
14
  __name: "OperationBlock",
15
15
  props: {
16
16
  method: {},
@@ -23,13 +23,14 @@ const j = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
23
23
  security: {},
24
24
  server: {},
25
25
  layout: {},
26
+ plugins: {},
26
27
  environment: {},
27
28
  envVariables: {}
28
29
  },
29
30
  emits: ["operation:update:requestName", "auth:delete", "auth:update:securityScheme", "auth:update:selectedScopes", "auth:update:selectedSecurity", "parameters:add", "parameters:update", "parameters:delete", "parameters:deleteAll", "requestBody:update:contentType", "requestBody:update:value", "requestBody:add:formRow", "requestBody:update:formRow"],
30
- setup(l, { emit: h }) {
31
- const a = h, i = Q(
32
- l.operation.parameters?.map((r) => R(r)) ?? [],
31
+ setup(o, { emit: g }) {
32
+ const a = g, d = G(
33
+ o.operation.parameters?.map((r) => h(r)) ?? [],
33
34
  "in"
34
35
  ), w = [
35
36
  "Auth",
@@ -38,189 +39,202 @@ const j = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
38
39
  "Headers",
39
40
  "Query",
40
41
  "Body"
41
- ], d = D("All"), A = f(() => {
42
+ ], u = T("All"), B = b(() => {
42
43
  const r = /* @__PURE__ */ new Set(["All", ...w]);
43
- return i.path?.length || r.delete("Variables"), V(l.method) || r.delete("Body"), S.value && r.delete("Auth"), [...r];
44
- }), n = f(
44
+ return d.path?.length || r.delete("Variables"), A(o.method) || r.delete("Body"), q.value && r.delete("Auth"), [...r];
45
+ }), n = b(
45
46
  () => Object.fromEntries(
46
- A.value.map((r) => [r, q()])
47
+ B.value.map((r) => [r, K()])
47
48
  )
48
49
  );
49
- O(
50
- () => l.method,
50
+ N(
51
+ () => o.method,
51
52
  (r) => {
52
- d.value === "Body" && !V(r) && (d.value = "All");
53
+ u.value === "Body" && !A(r) && (u.value = "All");
53
54
  }
54
55
  );
55
- const S = f(
56
- () => l.layout === "modal" && !l.operation.security && !Object.keys(l.securitySchemes ?? {}).length
57
- ), C = () => l.operation.summary ? l.operation.summary : l.path.replace(K.PROTOCOL, "") ? l.path.replace(K.PROTOCOL, "") : "Request Name", u = (r) => d.value === "All" || d.value === r, B = q();
58
- return (r, e) => (y(), U(E, {
59
- "aria-label": `Request: ${r.operation.summary}`
60
- }, {
61
- title: k(() => [
62
- T("div", j, [
63
- r.layout !== "modal" ? (y(), b("label", {
64
- key: 0,
65
- class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
66
- for: o(B)
67
- }, null, 8, z)) : N("", !0),
68
- r.layout !== "modal" ? (y(), b("input", {
69
- key: 1,
70
- id: o(B),
71
- class: "text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",
72
- placeholder: C(),
73
- value: r.operation.summary,
74
- onInput: e[0] || (e[0] = (t) => a("operation:update:requestName", {
75
- name: t.target.value
76
- }))
77
- }, null, 40, F)) : (y(), b("span", L, H(r.operation.summary), 1))
78
- ]),
79
- s(I, {
80
- modelValue: d.value,
81
- "onUpdate:modelValue": e[1] || (e[1] = (t) => d.value = t),
82
- filterIds: n.value,
83
- filters: A.value
84
- }, null, 8, ["modelValue", "filterIds", "filters"])
85
- ]),
86
- default: k(() => [
87
- p(s(o($), {
88
- id: n.value.Auth,
89
- envVariables: r.envVariables,
90
- environment: r.environment,
91
- layout: "client",
92
- security: r.security,
93
- securitySchemes: r.securitySchemes,
94
- selectedSecurity: r.selectedSecurity,
95
- server: r.server,
96
- title: "Authorization",
97
- onDeleteOperationAuth: e[2] || (e[2] = (t) => a("auth:delete", t)),
98
- "onUpdate:securityScheme": e[3] || (e[3] = (t) => a("auth:update:securityScheme", t)),
99
- "onUpdate:selectedScopes": e[4] || (e[4] = (t) => a("auth:update:selectedScopes", t)),
100
- "onUpdate:selectedSecurity": e[5] || (e[5] = (t) => a("auth:update:selectedSecurity", t))
101
- }, null, 8, ["id", "envVariables", "environment", "security", "securitySchemes", "selectedSecurity", "server"]), [
102
- [m, u("Auth") && !S.value]
103
- ]),
104
- p(s(v, {
105
- id: n.value.Variables,
106
- envVariables: r.envVariables,
107
- environment: r.environment,
108
- exampleKey: r.exampleKey,
109
- parameters: o(i).path ?? [],
110
- title: "Variables",
111
- onAdd: e[6] || (e[6] = (t) => a("parameters:add", {
112
- type: "path",
113
- payload: t
114
- })),
115
- onDelete: e[7] || (e[7] = (t) => a("parameters:delete", {
116
- type: "path",
117
- ...t
118
- })),
119
- onDeleteAll: e[8] || (e[8] = () => a("parameters:deleteAll", {
120
- type: "path"
121
- })),
122
- onUpdate: e[9] || (e[9] = (t) => a("parameters:update", {
123
- type: "path",
124
- ...t
125
- }))
126
- }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
127
- [m, u("Variables") && o(i).path?.length]
128
- ]),
129
- p(s(v, {
130
- id: n.value.Cookies,
131
- envVariables: r.envVariables,
132
- environment: r.environment,
133
- exampleKey: r.exampleKey,
134
- parameters: o(i).cookie ?? [],
135
- title: "Cookies",
136
- onAdd: e[10] || (e[10] = (t) => a("parameters:add", {
137
- type: "cookie",
138
- payload: t
139
- })),
140
- onDelete: e[11] || (e[11] = (t) => a("parameters:delete", {
141
- type: "cookie",
142
- ...t
143
- })),
144
- onDeleteAll: e[12] || (e[12] = () => a("parameters:deleteAll", {
145
- type: "cookie"
146
- })),
147
- onUpdate: e[13] || (e[13] = (t) => a("parameters:update", {
148
- type: "cookie",
149
- ...t
150
- }))
151
- }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
152
- [m, u("Cookies")]
153
- ]),
154
- p(s(v, {
155
- id: n.value.Headers,
156
- envVariables: r.envVariables,
157
- environment: r.environment,
158
- exampleKey: r.exampleKey,
159
- parameters: o(i).header ?? [],
160
- title: "Headers",
161
- onAdd: e[14] || (e[14] = (t) => a("parameters:add", {
162
- type: "header",
163
- payload: t
164
- })),
165
- onDelete: e[15] || (e[15] = (t) => a("parameters:delete", {
166
- type: "header",
167
- ...t
168
- })),
169
- onDeleteAll: e[16] || (e[16] = () => a("parameters:deleteAll", {
170
- type: "header"
171
- })),
172
- onUpdate: e[17] || (e[17] = (t) => a("parameters:update", {
173
- type: "header",
174
- ...t
175
- }))
176
- }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
177
- [m, u("Headers")]
56
+ const q = b(
57
+ () => o.layout === "modal" && !o.operation.security && !Object.keys(o.securitySchemes ?? {}).length
58
+ ), D = () => o.operation.summary ? o.operation.summary : o.path.replace(C.PROTOCOL, "") ? o.path.replace(C.PROTOCOL, "") : "Request Name", p = (r) => u.value === "All" || u.value === r, k = K();
59
+ return (r, e) => {
60
+ const O = H("ScalarErrorBoundary");
61
+ return s(), V(j, {
62
+ "aria-label": `Request: ${r.operation.summary}`
63
+ }, {
64
+ title: S(() => [
65
+ F("div", X, [
66
+ r.layout !== "modal" ? (s(), v("label", {
67
+ key: 0,
68
+ class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
69
+ for: l(k)
70
+ }, null, 8, J)) : R("", !0),
71
+ r.layout !== "modal" ? (s(), v("input", {
72
+ key: 1,
73
+ id: l(k),
74
+ class: "text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",
75
+ placeholder: D(),
76
+ value: r.operation.summary,
77
+ onInput: e[0] || (e[0] = (t) => a("operation:update:requestName", {
78
+ name: t.target.value
79
+ }))
80
+ }, null, 40, W)) : (s(), v("span", Y, L(r.operation.summary), 1))
81
+ ]),
82
+ i($, {
83
+ modelValue: u.value,
84
+ "onUpdate:modelValue": e[1] || (e[1] = (t) => u.value = t),
85
+ filterIds: n.value,
86
+ filters: B.value
87
+ }, null, 8, ["modelValue", "filterIds", "filters"])
178
88
  ]),
179
- p(s(v, {
180
- id: n.value.Query,
181
- envVariables: r.envVariables,
182
- environment: r.environment,
183
- exampleKey: r.exampleKey,
184
- parameters: o(i).query ?? [],
185
- title: "Query Parameters",
186
- onAdd: e[18] || (e[18] = (t) => a("parameters:add", {
187
- type: "query",
188
- payload: t
189
- })),
190
- onDelete: e[19] || (e[19] = (t) => a("parameters:delete", {
191
- type: "query",
192
- ...t
193
- })),
194
- onDeleteAll: e[20] || (e[20] = () => a("parameters:deleteAll", {
195
- type: "query"
196
- })),
197
- onUpdate: e[21] || (e[21] = (t) => a("parameters:update", {
198
- type: "query",
199
- ...t
200
- }))
201
- }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
202
- [m, u("Query")]
89
+ default: S(() => [
90
+ m(i(l(M), {
91
+ id: n.value.Auth,
92
+ envVariables: r.envVariables,
93
+ environment: r.environment,
94
+ layout: "client",
95
+ security: r.security,
96
+ securitySchemes: r.securitySchemes,
97
+ selectedSecurity: r.selectedSecurity,
98
+ server: r.server,
99
+ title: "Authorization",
100
+ onDeleteOperationAuth: e[2] || (e[2] = (t) => a("auth:delete", t)),
101
+ "onUpdate:securityScheme": e[3] || (e[3] = (t) => a("auth:update:securityScheme", t)),
102
+ "onUpdate:selectedScopes": e[4] || (e[4] = (t) => a("auth:update:selectedScopes", t)),
103
+ "onUpdate:selectedSecurity": e[5] || (e[5] = (t) => a("auth:update:selectedSecurity", t))
104
+ }, null, 8, ["id", "envVariables", "environment", "security", "securitySchemes", "selectedSecurity", "server"]), [
105
+ [y, p("Auth") && !q.value]
106
+ ]),
107
+ m(i(f, {
108
+ id: n.value.Variables,
109
+ envVariables: r.envVariables,
110
+ environment: r.environment,
111
+ exampleKey: r.exampleKey,
112
+ parameters: l(d).path ?? [],
113
+ title: "Variables",
114
+ onAdd: e[6] || (e[6] = (t) => a("parameters:add", {
115
+ type: "path",
116
+ payload: t
117
+ })),
118
+ onDelete: e[7] || (e[7] = (t) => a("parameters:delete", {
119
+ type: "path",
120
+ ...t
121
+ })),
122
+ onDeleteAll: e[8] || (e[8] = () => a("parameters:deleteAll", {
123
+ type: "path"
124
+ })),
125
+ onUpdate: e[9] || (e[9] = (t) => a("parameters:update", {
126
+ type: "path",
127
+ ...t
128
+ }))
129
+ }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
130
+ [y, p("Variables") && l(d).path?.length]
131
+ ]),
132
+ m(i(f, {
133
+ id: n.value.Cookies,
134
+ envVariables: r.envVariables,
135
+ environment: r.environment,
136
+ exampleKey: r.exampleKey,
137
+ parameters: l(d).cookie ?? [],
138
+ title: "Cookies",
139
+ onAdd: e[10] || (e[10] = (t) => a("parameters:add", {
140
+ type: "cookie",
141
+ payload: t
142
+ })),
143
+ onDelete: e[11] || (e[11] = (t) => a("parameters:delete", {
144
+ type: "cookie",
145
+ ...t
146
+ })),
147
+ onDeleteAll: e[12] || (e[12] = () => a("parameters:deleteAll", {
148
+ type: "cookie"
149
+ })),
150
+ onUpdate: e[13] || (e[13] = (t) => a("parameters:update", {
151
+ type: "cookie",
152
+ ...t
153
+ }))
154
+ }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
155
+ [y, p("Cookies")]
156
+ ]),
157
+ m(i(f, {
158
+ id: n.value.Headers,
159
+ envVariables: r.envVariables,
160
+ environment: r.environment,
161
+ exampleKey: r.exampleKey,
162
+ parameters: l(d).header ?? [],
163
+ title: "Headers",
164
+ onAdd: e[14] || (e[14] = (t) => a("parameters:add", {
165
+ type: "header",
166
+ payload: t
167
+ })),
168
+ onDelete: e[15] || (e[15] = (t) => a("parameters:delete", {
169
+ type: "header",
170
+ ...t
171
+ })),
172
+ onDeleteAll: e[16] || (e[16] = () => a("parameters:deleteAll", {
173
+ type: "header"
174
+ })),
175
+ onUpdate: e[17] || (e[17] = (t) => a("parameters:update", {
176
+ type: "header",
177
+ ...t
178
+ }))
179
+ }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
180
+ [y, p("Headers")]
181
+ ]),
182
+ m(i(f, {
183
+ id: n.value.Query,
184
+ envVariables: r.envVariables,
185
+ environment: r.environment,
186
+ exampleKey: r.exampleKey,
187
+ parameters: l(d).query ?? [],
188
+ title: "Query Parameters",
189
+ onAdd: e[18] || (e[18] = (t) => a("parameters:add", {
190
+ type: "query",
191
+ payload: t
192
+ })),
193
+ onDelete: e[19] || (e[19] = (t) => a("parameters:delete", {
194
+ type: "query",
195
+ ...t
196
+ })),
197
+ onDeleteAll: e[20] || (e[20] = () => a("parameters:deleteAll", {
198
+ type: "query"
199
+ })),
200
+ onUpdate: e[21] || (e[21] = (t) => a("parameters:update", {
201
+ type: "query",
202
+ ...t
203
+ }))
204
+ }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
205
+ [y, p("Query")]
206
+ ]),
207
+ m(i(z, {
208
+ id: n.value.Body,
209
+ envVariables: r.envVariables,
210
+ environment: r.environment,
211
+ exampleKey: r.exampleKey,
212
+ requestBody: l(h)(r.operation.requestBody),
213
+ selectedContentType: r.selectedContentType ?? "other",
214
+ title: "Request Body",
215
+ "onAdd:formRow": e[22] || (e[22] = (t) => a("requestBody:add:formRow", t)),
216
+ "onUpdate:contentType": e[23] || (e[23] = (t) => a("requestBody:update:contentType", t)),
217
+ "onUpdate:formRow": e[24] || (e[24] = (t) => a("requestBody:update:formRow", t)),
218
+ "onUpdate:value": e[25] || (e[25] = (t) => a("requestBody:update:value", t))
219
+ }, null, 8, ["id", "envVariables", "environment", "exampleKey", "requestBody", "selectedContentType"]), [
220
+ [y, p("Body") && l(A)(r.method)]
221
+ ]),
222
+ (s(!0), v(I, null, P(r.plugins, (t, U) => (s(), V(O, { key: U }, {
223
+ default: S(() => [
224
+ t?.components?.request ? (s(), V(Q(t.components.request), {
225
+ key: 0,
226
+ operation: r.operation,
227
+ selectedExample: r.exampleKey
228
+ }, null, 8, ["operation", "selectedExample"])) : R("", !0)
229
+ ]),
230
+ _: 2
231
+ }, 1024))), 128))
203
232
  ]),
204
- p(s(P, {
205
- id: n.value.Body,
206
- envVariables: r.envVariables,
207
- environment: r.environment,
208
- exampleKey: r.exampleKey,
209
- requestBody: o(R)(r.operation.requestBody),
210
- selectedContentType: r.selectedContentType ?? "other",
211
- title: "Request Body",
212
- "onAdd:formRow": e[22] || (e[22] = (t) => a("requestBody:add:formRow", t)),
213
- "onUpdate:contentType": e[23] || (e[23] = (t) => a("requestBody:update:contentType", t)),
214
- "onUpdate:formRow": e[24] || (e[24] = (t) => a("requestBody:update:formRow", t)),
215
- "onUpdate:value": e[25] || (e[25] = (t) => a("requestBody:update:value", t))
216
- }, null, 8, ["id", "envVariables", "environment", "exampleKey", "requestBody", "selectedContentType"]), [
217
- [m, u("Body") && o(V)(r.method)]
218
- ])
219
- ]),
220
- _: 1
221
- }, 8, ["aria-label"]));
233
+ _: 1
234
+ }, 8, ["aria-label"]);
235
+ };
222
236
  }
223
237
  });
224
238
  export {
225
- _ as default
239
+ le as default
226
240
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./OperationBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-24f1e4f2"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ff76e2a1"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };
@@ -52,7 +52,7 @@ const L = {
52
52
  });
53
53
  function w(t) {
54
54
  const { open: e } = E({
55
- onChange: async (n) => {
55
+ onChange: (n) => {
56
56
  const o = n?.[0];
57
57
  o && t(o);
58
58
  },
@@ -105,9 +105,9 @@ const L = {
105
105
  }),
106
106
  r(D, null, {
107
107
  default: a(() => [
108
- t.selectedContentType === "none" ? (i(), c("div", L, e[5] || (e[5] = [
108
+ t.selectedContentType === "none" ? (i(), c("div", L, [...e[5] || (e[5] = [
109
109
  m("span", null, "No Body", -1)
110
- ]))) : t.selectedContentType === "application/octet-stream" ? (i(), c("div", M, [
110
+ ])])) : t.selectedContentType === "application/octet-stream" ? (i(), c("div", M, [
111
111
  l(C)(s.value?.value) !== void 0 ? (i(), c(F, { key: 0 }, [
112
112
  m("span", z, f(l(C)(s.value?.value)), 1),
113
113
  r(l(y), {
@@ -116,11 +116,10 @@ const L = {
116
116
  variant: "outlined",
117
117
  onClick: e[1] || (e[1] = (n) => p("update:value", { value: void 0 }))
118
118
  }, {
119
- default: a(() => e[6] || (e[6] = [
120
- T(" Delete ")
121
- ])),
122
- _: 1,
123
- __: [6]
119
+ default: a(() => [...e[6] || (e[6] = [
120
+ T(" Delete ", -1)
121
+ ])]),
122
+ _: 1
124
123
  })
125
124
  ], 64)) : (i(), u(l(y), {
126
125
  key: 1,
@@ -140,8 +139,7 @@ const L = {
140
139
  thickness: "2.5"
141
140
  })
142
141
  ]),
143
- _: 1,
144
- __: [7]
142
+ _: 1
145
143
  }))
146
144
  ])) : t.selectedContentType === "multipart/form-data" ? (i(), u(V, {
147
145
  key: 2,
@@ -53,11 +53,10 @@ const k = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
53
53
  onClick: t[0] || (t[0] = w((a) => n("deleteAll"), ["stop"]))
54
54
  }, {
55
55
  default: l(() => [
56
- t[4] || (t[4] = u(" Clear ")),
56
+ t[4] || (t[4] = u(" Clear ", -1)),
57
57
  p("span", A, "All " + v(e.title), 1)
58
58
  ]),
59
- _: 1,
60
- __: [4]
59
+ _: 1
61
60
  })
62
61
  ]),
63
62
  _: 1
@@ -70,8 +70,7 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
70
70
  _: 1
71
71
  })
72
72
  ]),
73
- _: 1,
74
- __: [8]
73
+ _: 1
75
74
  }, 8, ["to"])) : (s(), u(t(j), {
76
75
  key: 1,
77
76
  class: "!border-r",
@@ -175,8 +174,7 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
175
174
  thickness: "2.5"
176
175
  })
177
176
  ]),
178
- _: 1,
179
- __: [9]
177
+ _: 1
180
178
  })
181
179
  ]))
182
180
  ]),
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as x, createBlock as f, openBlock as t, withCtx as e, createElementBlock as s, createVNode as n, unref as d, createTextVNode as l, Fragment as u, renderList as y, toDisplayString as i, renderSlot as h } from "vue";
2
2
  import b from "../../../../components/DataTable/DataTable.vue.js";
3
3
  import c from "../../../../components/DataTable/DataTableRow.vue.js";
4
- import _ from "../../../../components/DataTable/DataTableText.vue.js";
4
+ import p from "../../../../components/DataTable/DataTableText.vue.js";
5
5
  import g from "../../../../components/HelpfulLink.vue.js";
6
6
  import k from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
7
  import { httpHeaders as w } from "../../../../data/httpHeaders.js";
8
- import p from "../../../../components/DataTable/DataTableHeader.vue.js";
8
+ import _ from "../../../../components/DataTable/DataTableHeader.vue.js";
9
9
  const C = {
10
10
  key: 0,
11
11
  class: "max-h-[calc(100%-32px)] overflow-y-auto"
@@ -38,19 +38,17 @@ const C = {
38
38
  default: e(() => [
39
39
  n(c, { class: "sr-only !block" }, {
40
40
  default: e(() => [
41
- n(d(p), null, {
42
- default: e(() => o[0] || (o[0] = [
43
- l("Header Key")
44
- ])),
45
- _: 1,
46
- __: [0]
41
+ n(d(_), null, {
42
+ default: e(() => [...o[0] || (o[0] = [
43
+ l("Header Key", -1)
44
+ ])]),
45
+ _: 1
47
46
  }),
48
- n(d(p), null, {
49
- default: e(() => o[1] || (o[1] = [
50
- l("Header Value")
51
- ])),
52
- _: 1,
53
- __: [1]
47
+ n(d(_), null, {
48
+ default: e(() => [...o[1] || (o[1] = [
49
+ l("Header Value", -1)
50
+ ])]),
51
+ _: 1
54
52
  })
55
53
  ]),
56
54
  _: 1
@@ -60,7 +58,7 @@ const C = {
60
58
  class: "group/row text-c-1"
61
59
  }, {
62
60
  default: e(() => [
63
- n(_, { class: "bg-b-1 sticky left-0 z-1 max-w-full group-first/row:border-t-0" }, {
61
+ n(p, { class: "bg-b-1 sticky left-0 z-1 max-w-full group-first/row:border-t-0" }, {
64
62
  default: e(() => [
65
63
  typeof m(a.name)?.url == "string" ? (t(), f(g, {
66
64
  key: 0,
@@ -77,7 +75,7 @@ const C = {
77
75
  ]),
78
76
  _: 2
79
77
  }, 1024),
80
- n(_, {
78
+ n(p, {
81
79
  class: "z-0 group-first/row:border-t-0",
82
80
  text: a.value
83
81
  }, null, 8, ["text"])
@@ -1,6 +1,7 @@
1
1
  import type { ResponseInstance } from '@scalar/oas-utils/entities/spec';
2
2
  import type { ClientLayout } from '../../../../hooks/index.js';
3
3
  import type { createStoreEvents } from '../../../../store/events.js';
4
+ import type { ClientPlugin } from '../../../../v2/plugins';
4
5
  type __VLS_Props = {
5
6
  /** Preprocessed response */
6
7
  response?: ResponseInstance;
@@ -12,6 +13,8 @@ type __VLS_Props = {
12
13
  totalPerformedRequests: number;
13
14
  /** Application version */
14
15
  appVersion: string;
16
+ /** Registered app plugins */
17
+ plugins?: ClientPlugin[];
15
18
  /** Event bus */
16
19
  events: ReturnType<typeof createStoreEvents>;
17
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBlock.vue"],"names":[],"mappings":"AA+RA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAKvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAYvD,KAAK,WAAW,GAAG;IACjB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAC3B,gCAAgC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,yCAAyC;IACzC,sBAAsB,EAAE,MAAM,CAAA;IAC9B,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB;IAChB,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;CAC7C,CAAC;AAwCF,QAAA,MAAM,gBAAgB,yCAA0C,CAAA;AAChE,KAAK,MAAM,GAAG,KAAK,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyYvD,wBAQG"}
1
+ {"version":3,"file":"ResponseBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBlock.vue"],"names":[],"mappings":"AA+RA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAKvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAGvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAUhD,KAAK,WAAW,GAAG;IACjB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAC3B,gCAAgC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,yCAAyC;IACzC,sBAAsB,EAAE,MAAM,CAAA;IAC9B,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAA;IAElB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IAExB,gBAAgB;IAChB,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;CAC7C,CAAC;AAqCF,QAAA,MAAM,gBAAgB,yCAA0C,CAAA;AAChE,KAAK,MAAM,GAAG,KAAK,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8YvD,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseBlock.vue2.js";
2
2
  /* empty css */
3
- import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0b01684f"]]);
3
+ import e from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-1f4cee6d"]]);
5
5
  export {
6
- e as default
6
+ s as default
7
7
  };