@scalar/api-client 2.8.0 → 2.9.0

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 (418) hide show
  1. package/CHANGELOG.md +90 -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 +2 -2
  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.vue.d.ts +4 -4
  15. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +22 -24
  16. package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
  17. package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
  18. package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -9
  19. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -10
  20. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  21. package/dist/components/IconSelector.vue.js +1 -1
  22. package/dist/components/ImportCollection/DropEventListener.vue.js +12 -12
  23. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +8 -8
  24. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
  25. package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -16
  26. package/dist/components/ImportCollection/PasteEventListener.vue.js +1 -1
  27. package/dist/components/ImportCollection/PrefetchError.vue.js +2 -2
  28. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +5 -7
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -1
  30. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  31. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +3 -3
  32. package/dist/components/OpenApiClientButton.vue2.js +1 -1
  33. package/dist/components/Server/ServerSelector.vue.js +1 -2
  34. package/dist/components/SideNav/SideHelp.vue.js +13 -19
  35. package/dist/components/SideNav/SideNav.vue.js +4 -5
  36. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +4 -5
  37. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  38. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  39. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  40. package/dist/components/TopNav/TopNav.vue.js +8 -10
  41. package/dist/components/TopNav/TopNavItem.vue2.js +8 -12
  42. package/dist/hooks/index.d.ts +0 -1
  43. package/dist/hooks/index.d.ts.map +1 -1
  44. package/dist/hooks/index.js +9 -11
  45. package/dist/hooks/useClientConfig.d.ts +9 -6
  46. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  47. package/dist/index.d.ts +1 -2
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +8 -15
  50. package/dist/layouts/App/create-api-client-app.d.ts +3644 -3643
  51. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  52. package/dist/layouts/App/create-api-client-app.js +24 -18
  53. package/dist/layouts/Modal/create-api-client-modal.d.ts +5 -8089
  54. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  55. package/dist/layouts/Modal/create-api-client-modal.js +28 -46
  56. package/dist/layouts/Modal/index.d.ts +2 -2
  57. package/dist/layouts/Modal/index.d.ts.map +1 -1
  58. package/dist/layouts/Modal/index.js +2 -5
  59. package/dist/layouts/Web/create-api-client-web.d.ts +20 -20
  60. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  61. package/dist/layouts/Web/create-api-client-web.js +15 -12
  62. package/dist/libs/create-client.d.ts +25 -25
  63. package/dist/libs/create-client.d.ts.map +1 -1
  64. package/dist/libs/create-client.js +23 -23
  65. package/dist/libs/find-request.d.ts +2 -2
  66. package/dist/libs/postman.d.ts +1 -1
  67. package/dist/libs/postman.d.ts.map +1 -1
  68. package/dist/libs/postman.js +12 -12
  69. package/dist/libs/send-request/create-request-operation.js +8 -8
  70. package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
  71. package/dist/libs/validate-parameters.d.ts +10 -2
  72. package/dist/libs/validate-parameters.d.ts.map +1 -1
  73. package/dist/libs/validate-parameters.js +13 -6
  74. package/dist/plugins/plugin-manager.d.ts +1 -1
  75. package/dist/routes.d.ts +3 -184
  76. package/dist/routes.d.ts.map +1 -1
  77. package/dist/routes.js +6 -6
  78. package/dist/store/active-entities.d.ts +3 -3
  79. package/dist/store/active-entities.d.ts.map +1 -1
  80. package/dist/store/active-entities.js +2 -2
  81. package/dist/store/requests.d.ts +22 -22
  82. package/dist/store/router-params.d.ts.map +1 -1
  83. package/dist/store/store.d.ts +20 -20
  84. package/dist/style.css +1 -1
  85. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
  86. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +1 -1
  87. package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
  88. package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
  89. package/dist/v2/blocks/operation-code-sample/index.js +8 -6
  90. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +5 -5
  91. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  92. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  93. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +3 -3
  94. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +3 -4
  95. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +1 -0
  96. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
  97. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -2
  98. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +7 -8
  99. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +44 -55
  100. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +16 -18
  101. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +41 -46
  102. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  103. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +3 -0
  104. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
  105. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
  106. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +201 -187
  107. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
  108. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +8 -10
  109. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +2 -3
  110. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +2 -4
  111. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +14 -16
  112. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +3 -0
  113. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
  114. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
  115. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +87 -85
  116. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +10 -11
  117. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +4 -5
  118. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +1 -1
  119. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +3 -3
  120. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +1 -1
  121. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +5 -5
  122. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +9 -10
  123. package/dist/v2/components/TempReplaceMe.vue.d.ts +3 -0
  124. package/dist/v2/components/TempReplaceMe.vue.d.ts.map +1 -0
  125. package/dist/v2/components/TempReplaceMe.vue.js +12 -0
  126. package/dist/v2/components/resize/Resize.vue.d.ts +20 -0
  127. package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -0
  128. package/dist/v2/components/resize/Resize.vue.js +8 -0
  129. package/dist/v2/components/resize/Resize.vue2.js +36 -0
  130. package/dist/v2/components/resize/index.d.ts +3 -0
  131. package/dist/v2/components/resize/index.d.ts.map +1 -0
  132. package/dist/v2/components/resize/index.js +4 -0
  133. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +39 -0
  134. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -0
  135. package/dist/v2/components/sidebar/Sidebar.vue.js +95 -0
  136. package/dist/v2/components/sidebar/Sidebar.vue2.js +4 -0
  137. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +13 -0
  138. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -0
  139. package/dist/v2/components/sidebar/SidebarMenu.vue.js +63 -0
  140. package/dist/v2/components/sidebar/SidebarMenu.vue2.js +4 -0
  141. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts +10 -0
  142. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts.map +1 -0
  143. package/dist/v2/components/sidebar/SidebarToggle.vue.js +52 -0
  144. package/dist/v2/components/sidebar/SidebarToggle.vue2.js +4 -0
  145. package/dist/v2/components/sidebar/index.d.ts +4 -0
  146. package/dist/v2/components/sidebar/index.d.ts.map +1 -0
  147. package/dist/v2/components/sidebar/index.js +8 -0
  148. package/dist/v2/features/app/App.vue.d.ts +16 -0
  149. package/dist/v2/features/app/App.vue.d.ts.map +1 -0
  150. package/dist/v2/features/app/App.vue.js +72 -0
  151. package/dist/v2/features/app/App.vue3.js +5 -0
  152. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +30 -0
  153. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -0
  154. package/dist/v2/features/app/components/AppSidebar.vue.js +7 -0
  155. package/dist/v2/features/app/components/AppSidebar.vue2.js +117 -0
  156. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +3 -0
  157. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -0
  158. package/dist/v2/features/app/components/DesktopTabs.vue.js +14 -0
  159. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts +3 -0
  160. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -0
  161. package/dist/v2/features/app/components/DownloadAppButton.vue.js +7 -0
  162. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +19 -0
  163. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +16 -0
  164. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -0
  165. package/dist/v2/features/app/components/WebTopNav.vue.js +28 -0
  166. package/dist/v2/features/app/components/WebTopNav.vue2.js +4 -0
  167. package/dist/v2/features/app/components/index.d.ts +2 -0
  168. package/dist/v2/features/app/components/index.d.ts.map +1 -0
  169. package/dist/v2/features/app/components/index.js +5 -0
  170. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +25 -0
  171. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -0
  172. package/dist/v2/features/app/helpers/create-api-client-app.js +21 -0
  173. package/dist/v2/features/app/helpers/routes.d.ts +103 -0
  174. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -0
  175. package/dist/v2/features/app/helpers/routes.js +115 -0
  176. package/dist/v2/features/app/index.d.ts +2 -0
  177. package/dist/v2/features/app/index.d.ts.map +1 -0
  178. package/dist/v2/features/app/index.js +4 -0
  179. package/dist/v2/features/collection/DocumentCollection.test.d.ts +2 -0
  180. package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +1 -0
  181. package/dist/v2/features/collection/DocumentCollection.vue.d.ts +12 -0
  182. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -0
  183. package/dist/v2/features/collection/DocumentCollection.vue.js +4 -0
  184. package/dist/v2/features/collection/DocumentCollection.vue2.js +82 -0
  185. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts +2 -0
  186. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts.map +1 -0
  187. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +10 -0
  188. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -0
  189. package/dist/v2/features/collection/WorkspaceCollection.vue.js +4 -0
  190. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +38 -0
  191. package/dist/v2/features/collection/components/Authentication.test.d.ts +2 -0
  192. package/dist/v2/features/collection/components/Authentication.test.d.ts.map +1 -0
  193. package/dist/v2/features/collection/components/Authentication.vue.d.ts +48 -0
  194. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -0
  195. package/dist/v2/features/collection/components/Authentication.vue.js +7 -0
  196. package/dist/v2/features/collection/components/Authentication.vue2.js +50 -0
  197. package/dist/v2/features/collection/components/Cookies.vue.d.ts +3 -0
  198. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -0
  199. package/dist/v2/features/collection/components/Cookies.vue.js +9 -0
  200. package/dist/v2/features/collection/components/Environment.test.d.ts +2 -0
  201. package/dist/v2/features/collection/components/Environment.test.d.ts.map +1 -0
  202. package/dist/v2/features/collection/components/Environment.vue.d.ts +89 -0
  203. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -0
  204. package/dist/v2/features/collection/components/Environment.vue.js +4 -0
  205. package/dist/v2/features/collection/components/Environment.vue2.js +34 -0
  206. package/dist/v2/features/collection/components/Form.vue.d.ts +29 -0
  207. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -0
  208. package/dist/v2/features/collection/components/Form.vue.js +83 -0
  209. package/dist/v2/features/collection/components/Form.vue2.js +4 -0
  210. package/dist/v2/features/collection/components/LabelInput.test.d.ts +2 -0
  211. package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +1 -0
  212. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +10 -0
  213. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -0
  214. package/dist/v2/features/collection/components/LabelInput.vue.js +7 -0
  215. package/dist/v2/features/collection/components/LabelInput.vue2.js +29 -0
  216. package/dist/v2/features/collection/components/Overview.test.d.ts +2 -0
  217. package/dist/v2/features/collection/components/Overview.test.d.ts.map +1 -0
  218. package/dist/v2/features/collection/components/Overview.vue.d.ts +14 -0
  219. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -0
  220. package/dist/v2/features/collection/components/Overview.vue.js +4 -0
  221. package/dist/v2/features/collection/components/Overview.vue2.js +91 -0
  222. package/dist/v2/features/collection/components/Servers.test.d.ts +2 -0
  223. package/dist/v2/features/collection/components/Servers.test.d.ts.map +1 -0
  224. package/dist/v2/features/collection/components/Servers.vue.d.ts +33 -0
  225. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -0
  226. package/dist/v2/features/collection/components/Servers.vue.js +4 -0
  227. package/dist/v2/features/collection/components/Servers.vue2.js +120 -0
  228. package/dist/v2/features/collection/components/Settings.test.d.ts +2 -0
  229. package/dist/v2/features/collection/components/Settings.test.d.ts.map +1 -0
  230. package/dist/v2/features/collection/components/Settings.vue.d.ts +17 -0
  231. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -0
  232. package/dist/v2/features/collection/components/Settings.vue.js +7 -0
  233. package/dist/v2/features/collection/components/Settings.vue2.js +100 -0
  234. package/dist/v2/features/collection/components/Tabs.test.d.ts +2 -0
  235. package/dist/v2/features/collection/components/Tabs.test.d.ts.map +1 -0
  236. package/dist/v2/features/collection/components/Tabs.vue.d.ts +6 -0
  237. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -0
  238. package/dist/v2/features/collection/components/Tabs.vue.js +46 -0
  239. package/dist/v2/features/collection/components/Tabs.vue2.js +4 -0
  240. package/dist/v2/features/environments/Environments.test.d.ts +2 -0
  241. package/dist/v2/features/environments/Environments.test.d.ts.map +1 -0
  242. package/dist/v2/features/environments/Environments.vue.d.ts +31 -0
  243. package/dist/v2/features/environments/Environments.vue.d.ts.map +1 -0
  244. package/dist/v2/features/environments/Environments.vue.js +65 -0
  245. package/dist/v2/features/environments/Environments.vue2.js +4 -0
  246. package/dist/v2/features/environments/EnvironmentsList.test.d.ts +2 -0
  247. package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +1 -0
  248. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +98 -0
  249. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -0
  250. package/dist/v2/features/environments/EnvironmentsList.vue.js +114 -0
  251. package/dist/v2/features/environments/EnvironmentsList.vue2.js +4 -0
  252. package/dist/v2/features/environments/components/Environment.test.d.ts +2 -0
  253. package/dist/v2/features/environments/components/Environment.test.d.ts.map +1 -0
  254. package/dist/v2/features/environments/components/Environment.vue.d.ts +70 -0
  255. package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -0
  256. package/dist/v2/features/environments/components/Environment.vue.js +104 -0
  257. package/dist/v2/features/environments/components/Environment.vue2.js +4 -0
  258. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts +20 -0
  259. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts.map +1 -0
  260. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.js +48 -0
  261. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue2.js +4 -0
  262. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +2 -0
  263. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +1 -0
  264. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts +10 -0
  265. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -0
  266. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +97 -0
  267. package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +4 -0
  268. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +19 -0
  269. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -0
  270. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +63 -0
  271. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +4 -0
  272. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +14 -0
  273. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -0
  274. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +53 -0
  275. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +4 -0
  276. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts +18 -0
  277. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts.map +1 -0
  278. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.js +35 -0
  279. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue2.js +4 -0
  280. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +2 -0
  281. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +1 -0
  282. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +23 -0
  283. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -0
  284. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +7 -0
  285. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +122 -0
  286. package/dist/v2/features/environments/index.d.ts +5 -0
  287. package/dist/v2/features/environments/index.d.ts.map +1 -0
  288. package/dist/v2/features/environments/index.js +6 -0
  289. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +2 -0
  290. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +1 -0
  291. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +25 -0
  292. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -0
  293. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +7 -0
  294. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +156 -0
  295. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +2 -0
  296. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +1 -0
  297. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +32 -0
  298. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +1 -0
  299. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +7 -0
  300. package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +58 -0
  301. package/dist/v2/features/global-cookies/index.d.ts +2 -0
  302. package/dist/v2/features/global-cookies/index.d.ts.map +1 -0
  303. package/dist/v2/features/global-cookies/index.js +4 -0
  304. package/dist/v2/features/modal/Modal.vue.d.ts +16 -0
  305. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -0
  306. package/dist/v2/features/modal/Modal.vue.js +7 -0
  307. package/dist/v2/features/modal/Modal.vue2.js +81 -0
  308. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +53 -0
  309. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -0
  310. package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -0
  311. package/dist/v2/features/modal/index.d.ts +2 -0
  312. package/dist/v2/features/modal/index.d.ts.map +1 -0
  313. package/dist/v2/features/modal/index.js +4 -0
  314. package/dist/v2/features/operation/Operation.test.d.ts +2 -0
  315. package/dist/v2/features/operation/Operation.test.d.ts.map +1 -0
  316. package/dist/v2/features/operation/Operation.vue.d.ts +79 -0
  317. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -0
  318. package/dist/v2/features/operation/Operation.vue.js +124 -0
  319. package/dist/v2/features/operation/Operation.vue2.js +4 -0
  320. package/dist/v2/features/operation/components/Header.test.d.ts +2 -0
  321. package/dist/v2/features/operation/components/Header.test.d.ts.map +1 -0
  322. package/dist/v2/features/operation/components/Header.vue.d.ts +85 -0
  323. package/dist/v2/features/operation/components/Header.vue.d.ts.map +1 -0
  324. package/dist/v2/features/operation/components/Header.vue.js +7 -0
  325. package/dist/v2/features/operation/components/Header.vue2.js +97 -0
  326. package/dist/v2/features/operation/index.d.ts +3 -0
  327. package/dist/v2/features/operation/index.d.ts.map +1 -0
  328. package/dist/v2/features/operation/index.js +4 -0
  329. package/dist/v2/features/settings/Settings.test.d.ts +2 -0
  330. package/dist/v2/features/settings/Settings.test.d.ts.map +1 -0
  331. package/dist/v2/features/settings/Settings.vue.d.ts +22 -0
  332. package/dist/v2/features/settings/Settings.vue.d.ts.map +1 -0
  333. package/dist/v2/features/settings/Settings.vue.js +268 -0
  334. package/dist/v2/features/settings/Settings.vue2.js +4 -0
  335. package/dist/v2/features/settings/components/Appearance.vue.d.ts +10 -0
  336. package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -0
  337. package/dist/v2/features/settings/components/Appearance.vue.js +88 -0
  338. package/dist/v2/features/settings/components/Appearance.vue2.js +4 -0
  339. package/dist/v2/features/settings/components/Section.vue.d.ts +14 -0
  340. package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -0
  341. package/dist/v2/features/settings/components/Section.vue.js +24 -0
  342. package/dist/v2/features/settings/components/Section.vue2.js +4 -0
  343. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +9 -0
  344. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -0
  345. package/dist/v2/features/settings/helpers/get-theme-colors.js +17 -0
  346. package/dist/v2/features/settings/index.d.ts +2 -0
  347. package/dist/v2/features/settings/index.d.ts.map +1 -0
  348. package/dist/v2/features/settings/index.js +4 -0
  349. package/dist/v2/hooks/use-document-watcher.d.ts +28 -0
  350. package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -0
  351. package/dist/v2/hooks/use-document-watcher.test.d.ts +2 -0
  352. package/dist/v2/hooks/use-document-watcher.test.d.ts.map +1 -0
  353. package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -0
  354. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -0
  355. package/dist/v2/hooks/use-workspace-client-events.js +13 -0
  356. package/dist/v2/plugins.d.ts +44 -0
  357. package/dist/v2/plugins.d.ts.map +1 -0
  358. package/dist/v2/types/layout.d.ts +10 -0
  359. package/dist/v2/types/layout.d.ts.map +1 -0
  360. package/dist/views/Collection/Collection.vue2.js +6 -6
  361. package/dist/views/Collection/CollectionCookies.vue2.js +3 -3
  362. package/dist/views/Collection/CollectionEnvironment.vue2.js +12 -13
  363. package/dist/views/Collection/CollectionScripts.vue2.js +3 -3
  364. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
  365. package/dist/views/Collection/CollectionServerForm.vue.js +42 -62
  366. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
  367. package/dist/views/Collection/CollectionServers.vue2.js +43 -50
  368. package/dist/views/Collection/CollectionSettings.vue.js +2 -2
  369. package/dist/views/Collection/CollectionSettings.vue2.js +5 -6
  370. package/dist/views/Collection/CollectionSync.vue2.js +3 -3
  371. package/dist/views/Collection/components/EnvironmentForm.vue2.js +10 -12
  372. package/dist/views/Collection/components/MarkdownInput.vue2.js +2 -4
  373. package/dist/views/Cookies/CookieModal.vue2.js +6 -6
  374. package/dist/views/Cookies/Cookies.vue2.js +6 -6
  375. package/dist/views/Environment/Environment.vue2.js +5 -6
  376. package/dist/views/Environment/EnvironmentModal.vue.js +13 -14
  377. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +8 -9
  378. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  379. package/dist/views/Request/RequestRoot.vue.js +2 -2
  380. package/dist/views/Request/RequestRoot.vue2.js +79 -80
  381. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +10 -11
  382. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -55
  383. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +10 -12
  384. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
  385. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +39 -44
  386. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  387. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  388. package/dist/views/Request/RequestSection/RequestBody.vue2.js +96 -78
  389. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +3 -3
  390. package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -3
  391. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  392. package/dist/views/Request/RequestSection/RequestSection.vue2.js +55 -55
  393. package/dist/views/Request/RequestSection/RequestTable.vue2.js +15 -17
  394. package/dist/views/Request/RequestSidebar.vue2.js +7 -8
  395. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  396. package/dist/views/Request/RequestSidebarItem.vue2.js +31 -32
  397. package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
  398. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -16
  399. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +11 -13
  400. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +4 -5
  401. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -5
  402. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
  403. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
  404. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +4 -4
  405. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +11 -13
  406. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +7 -8
  407. package/dist/views/Request/components/WorkspaceDropdown.vue.js +11 -14
  408. package/dist/views/Request/libs/oauth2.d.ts +1 -1
  409. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  410. package/dist/views/Settings/SettingsGeneral.vue.js +40 -42
  411. package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -11
  412. package/package.json +52 -27
  413. package/dist/hooks/useKeyMap.d.ts +0 -2
  414. package/dist/hooks/useKeyMap.d.ts.map +0 -1
  415. package/dist/hooks/useKeyMap.js +0 -9
  416. package/dist/router.d.ts +0 -8
  417. package/dist/router.d.ts.map +0 -1
  418. package/dist/router.js +0 -20
@@ -0,0 +1,63 @@
1
+ import { defineComponent as f, ref as i, createBlock as v, openBlock as F, unref as C, withCtx as a, createVNode as n, createElementVNode as b, createTextVNode as _ } from "vue";
2
+ import { ScalarModal as x } from "@scalar/components";
3
+ import V from "../../../../components/CommandPalette/CommandActionForm.vue.js";
4
+ import S from "../../../../components/CommandPalette/CommandActionInput.vue.js";
5
+ import E from "./EnvironmentColors.vue.js";
6
+ const N = { class: "flex items-start gap-2" }, M = /* @__PURE__ */ f({
7
+ __name: "EnvironmentCreateModal",
8
+ props: {
9
+ state: {}
10
+ },
11
+ emits: ["cancel", "submit"],
12
+ setup(d, { emit: u }) {
13
+ const r = u, e = i(""), o = i("#FFFFFF"), s = () => {
14
+ e.value = "", o.value = "#FFFFFF";
15
+ }, m = () => {
16
+ r("cancel"), s();
17
+ }, c = () => {
18
+ e.value.trim() && (r("submit", {
19
+ name: e.value.trim(),
20
+ color: o.value
21
+ }), s(), d.state.hide());
22
+ };
23
+ return (p, t) => (F(), v(C(x), {
24
+ bodyClass: "border-t-0 rounded-t-lg",
25
+ size: "xs",
26
+ state: p.state,
27
+ onClose: m
28
+ }, {
29
+ default: a(() => [
30
+ n(V, {
31
+ disabled: !e.value.trim(),
32
+ onCancel: m,
33
+ onSubmit: c
34
+ }, {
35
+ submit: a(() => [...t[2] || (t[2] = [
36
+ _("Add Environment", -1)
37
+ ])]),
38
+ default: a(() => [
39
+ b("div", N, [
40
+ n(E, {
41
+ activeColor: o.value,
42
+ class: "peer",
43
+ selector: "",
44
+ onSelect: t[0] || (t[0] = (l) => o.value = l)
45
+ }, null, 8, ["activeColor"]),
46
+ n(S, {
47
+ modelValue: e.value,
48
+ "onUpdate:modelValue": t[1] || (t[1] = (l) => e.value = l),
49
+ class: "-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden",
50
+ placeholder: "Environment name"
51
+ }, null, 8, ["modelValue"])
52
+ ])
53
+ ]),
54
+ _: 1
55
+ }, 8, ["disabled"])
56
+ ]),
57
+ _: 1
58
+ }, 8, ["state"]));
59
+ }
60
+ });
61
+ export {
62
+ M as default
63
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EnvironmentCreateModal.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,14 @@
1
+ import { type ModalState } from '@scalar/components';
2
+ type __VLS_Props = {
3
+ state: ModalState;
4
+ name: string;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
+ submit: () => any;
8
+ cancel: () => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onSubmit?: (() => any) | undefined;
11
+ onCancel?: (() => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
14
+ //# sourceMappingURL=EnvironmentDeleteModal.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnvironmentDeleteModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentDeleteModal.vue"],"names":[],"mappings":"AAoDA,OAAO,EAA6B,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAE/E,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACb,CAAC;;;;;;;;AAwHF,wBAOG"}
@@ -0,0 +1,53 @@
1
+ import { defineComponent as m, createBlock as u, openBlock as f, unref as n, withCtx as o, createElementVNode as a, createVNode as l, createTextVNode as i } from "vue";
2
+ import { ScalarModal as p, ScalarButton as r } from "@scalar/components";
3
+ const x = { class: "flex justify-between" }, y = /* @__PURE__ */ m({
4
+ __name: "EnvironmentDeleteModal",
5
+ props: {
6
+ state: {},
7
+ name: {}
8
+ },
9
+ emits: ["cancel", "submit"],
10
+ setup(b, { emit: d }) {
11
+ const s = d;
12
+ return (t, e) => (f(), u(n(p), {
13
+ bodyClass: "border-t-0 rounded-t-lg flex flex-col gap-4",
14
+ size: "xxs",
15
+ state: t.state,
16
+ title: `Delete ${t.name}`
17
+ }, {
18
+ default: o(() => [
19
+ e[4] || (e[4] = a("p", { class: "text-c-2 text-sm leading-normal text-pretty" }, " Are you sure you want to delete this environment? This action cannot be undone. ", -1)),
20
+ a("div", x, [
21
+ l(n(r), {
22
+ size: "sm",
23
+ variant: "outlined",
24
+ onClick: e[0] || (e[0] = () => {
25
+ s("cancel"), t.state.hide();
26
+ })
27
+ }, {
28
+ default: o(() => [...e[2] || (e[2] = [
29
+ i(" Cancel ", -1)
30
+ ])]),
31
+ _: 1
32
+ }),
33
+ l(n(r), {
34
+ size: "sm",
35
+ variant: "danger",
36
+ onClick: e[1] || (e[1] = () => {
37
+ s("submit"), t.state.hide();
38
+ })
39
+ }, {
40
+ default: o(() => [...e[3] || (e[3] = [
41
+ i(" Delete Environment ", -1)
42
+ ])]),
43
+ _: 1
44
+ })
45
+ ])
46
+ ]),
47
+ _: 1
48
+ }, 8, ["state", "title"]));
49
+ }
50
+ });
51
+ export {
52
+ y as default
53
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EnvironmentDeleteModal.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,18 @@
1
+ import { type ModalState } from '@scalar/components';
2
+ type __VLS_Props = {
3
+ state: ModalState;
4
+ name: string;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
+ submit: (payload: {
8
+ name: string;
9
+ }) => any;
10
+ cancel: () => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onSubmit?: ((payload: {
13
+ name: string;
14
+ }) => any) | undefined;
15
+ onCancel?: (() => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
18
+ //# sourceMappingURL=EnvironmentNameUpdateModal.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnvironmentNameUpdateModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentNameUpdateModal.vue"],"names":[],"mappings":"AAuCA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAIjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACb,CAAC;;;cAKmC,MAAM;;;;;cAAN,MAAM;;;;AAiF3C,wBAOG"}
@@ -0,0 +1,35 @@
1
+ import { defineComponent as o, createBlock as i, openBlock as s, unref as r, withCtx as l, createVNode as p } from "vue";
2
+ import { ScalarModal as d } from "@scalar/components";
3
+ import f from "../../../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
4
+ const b = /* @__PURE__ */ o({
5
+ __name: "EnvironmentNameUpdateModal",
6
+ props: {
7
+ state: {},
8
+ name: {}
9
+ },
10
+ emits: ["cancel", "submit"],
11
+ setup(u, { emit: a }) {
12
+ const n = a;
13
+ return (e, t) => (s(), i(r(d), {
14
+ size: "xxs",
15
+ state: e.state,
16
+ title: `Edit ${e.name}`
17
+ }, {
18
+ default: l(() => [
19
+ p(f, {
20
+ name: e.name,
21
+ onClose: t[0] || (t[0] = () => {
22
+ n("cancel"), e.state.hide();
23
+ }),
24
+ onEdit: t[1] || (t[1] = (m) => {
25
+ n("submit", { name: m }), e.state.hide();
26
+ })
27
+ }, null, 8, ["name"])
28
+ ]),
29
+ _: 1
30
+ }, 8, ["state", "title"]));
31
+ }
32
+ });
33
+ export {
34
+ b as default
35
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EnvironmentNameUpdateModal.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=EnvironmentVariablesTable.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnvironmentVariablesTable.test.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesTable.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ import type { Environment } from '@scalar/oas-utils/entities/environment';
2
+ import type { EnvVariable } from '../../../../store/index.js';
3
+ type TableRow = {
4
+ name: string;
5
+ value: string;
6
+ };
7
+ type __VLS_Props = {
8
+ data: TableRow[];
9
+ /** TODO: remove once we migrate */
10
+ environment: Environment;
11
+ envVariables: EnvVariable[];
12
+ };
13
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
+ updateRow: (index: number, payload: Partial<TableRow>) => any;
15
+ addRow: (payload: Partial<TableRow>) => any;
16
+ deleteRow: (index: number) => any;
17
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onUpdateRow?: ((index: number, payload: Partial<TableRow>) => any) | undefined;
19
+ onAddRow?: ((payload: Partial<TableRow>) => any) | undefined;
20
+ onDeleteRow?: ((index: number) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ export default _default;
23
+ //# sourceMappingURL=EnvironmentVariablesTable.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnvironmentVariablesTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesTable.vue"],"names":[],"mappings":"AAyJA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAUzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAEhB,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;;;;;;AAqTF,wBAOG"}
@@ -0,0 +1,7 @@
1
+ import o from "./EnvironmentVariablesTable.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-265cc80b"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,122 @@
1
+ import { defineComponent as h, computed as x, createBlock as b, openBlock as u, unref as e, withCtx as n, createVNode as l, createElementBlock as C, createTextVNode as m, Fragment as R, renderList as T } from "vue";
2
+ import { ScalarButton as _ } from "@scalar/components";
3
+ import { ScalarIconTrash as y } from "@scalar/icons";
4
+ import B from "../../../../components/DataTable/DataTable.vue.js";
5
+ import v from "../../../../components/DataTable/DataTableRow.vue.js";
6
+ import s from "../../../../components/DataTable/DataTableHeader.vue.js";
7
+ import f from "../../../../components/DataTable/DataTableCell.vue.js";
8
+ import V from "../../../../components/CodeInput/CodeInput.vue.js";
9
+ const S = /* @__PURE__ */ h({
10
+ __name: "EnvironmentVariablesTable",
11
+ props: {
12
+ data: {},
13
+ environment: {},
14
+ envVariables: {}
15
+ },
16
+ emits: ["addRow", "updateRow", "deleteRow"],
17
+ setup(r, { emit: g }) {
18
+ const i = g, k = x(() => {
19
+ const a = r.data.at(-1);
20
+ return !a || a.name !== "" || a.value !== "" ? [...r.data, { name: "", value: "", domain: "", isDisabled: !0 }] : r.data;
21
+ }), p = ({
22
+ index: a,
23
+ payload: t
24
+ }) => {
25
+ if (a >= r.data.length) {
26
+ i("addRow", t);
27
+ return;
28
+ }
29
+ i("updateRow", a, t);
30
+ }, w = ["1fr", "1fr", "36px"];
31
+ return (a, t) => (u(), b(e(B), {
32
+ class: "group/table data-table h-min flex-1 rounded border",
33
+ columns: w
34
+ }, {
35
+ default: n(() => [
36
+ l(e(v), { class: "sr-only !block" }, {
37
+ default: n(() => [
38
+ l(e(s), null, {
39
+ default: n(() => [...t[0] || (t[0] = [
40
+ m("Name", -1)
41
+ ])]),
42
+ _: 1
43
+ }),
44
+ l(e(s), null, {
45
+ default: n(() => [...t[1] || (t[1] = [
46
+ m("Value", -1)
47
+ ])]),
48
+ _: 1
49
+ }),
50
+ l(e(s), null, {
51
+ default: n(() => [...t[2] || (t[2] = [
52
+ m("Actions", -1)
53
+ ])]),
54
+ _: 1
55
+ })
56
+ ]),
57
+ _: 1
58
+ }),
59
+ (u(!0), C(R, null, T(k.value, (c, o) => (u(), b(e(v), {
60
+ id: o,
61
+ key: o,
62
+ class: "group/row"
63
+ }, {
64
+ default: n(() => [
65
+ l(e(f), null, {
66
+ default: n(() => [
67
+ l(e(V), {
68
+ "aria-label": "Cookie Name",
69
+ disableCloseBrackets: "",
70
+ disableTabIndent: "",
71
+ envVariables: a.envVariables,
72
+ environment: a.environment,
73
+ lineWrapping: "",
74
+ modelValue: c.name,
75
+ placeholder: "Name",
76
+ "onUpdate:modelValue": (d) => p({ index: o, payload: { name: d } })
77
+ }, null, 8, ["envVariables", "environment", "modelValue", "onUpdate:modelValue"])
78
+ ]),
79
+ _: 2
80
+ }, 1024),
81
+ l(e(f), null, {
82
+ default: n(() => [
83
+ l(e(V), {
84
+ "aria-label": "Cookie Value",
85
+ disableTabIndent: "",
86
+ envVariables: a.envVariables,
87
+ environment: a.environment,
88
+ lineWrapping: "",
89
+ modelValue: c.value,
90
+ placeholder: "Value",
91
+ "onUpdate:modelValue": (d) => p({ index: o, payload: { value: d } })
92
+ }, null, 8, ["envVariables", "environment", "modelValue", "onUpdate:modelValue"])
93
+ ]),
94
+ _: 2
95
+ }, 1024),
96
+ l(e(f), { class: "flex items-center justify-center" }, {
97
+ default: n(() => [
98
+ l(e(_), {
99
+ class: "text-c-2 hover:text-c-1 hover:bg-b-2 hidden h-fit rounded p-1 group-focus-within:flex group-hover/row:flex",
100
+ size: "sm",
101
+ variant: "ghost",
102
+ onClick: (d) => i("deleteRow", o)
103
+ }, {
104
+ default: n(() => [
105
+ l(e(y), { class: "size-3.5" })
106
+ ]),
107
+ _: 1
108
+ }, 8, ["onClick"])
109
+ ]),
110
+ _: 2
111
+ }, 1024)
112
+ ]),
113
+ _: 2
114
+ }, 1032, ["id"]))), 128))
115
+ ]),
116
+ _: 1
117
+ }));
118
+ }
119
+ });
120
+ export {
121
+ S as default
122
+ };
@@ -0,0 +1,5 @@
1
+ /** biome-ignore-all lint/performance/noBarrelFile: It's an entry point for this feature */
2
+ export type { Environment, EnvironmentVariable } from './components/Environment.vue.js';
3
+ export { default as Environments } from './Environments.vue.js';
4
+ export { default as EnvironmentsList } from './EnvironmentsList.vue.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/environments/index.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAE3F,YAAY,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACpF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { default as n } from "./Environments.vue.js";
2
+ import { default as r } from "./EnvironmentsList.vue.js";
3
+ export {
4
+ n as Environments,
5
+ r as EnvironmentsList
6
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CookiesTable.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CookiesTable.test.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/global-cookies/components/CookiesTable.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ import type { Environment } from '@scalar/oas-utils/entities/environment';
2
+ import type { EnvVariable } from '../../../../store/index.js';
3
+ type TableRow = {
4
+ name: string;
5
+ value: string;
6
+ domain: string;
7
+ isDisabled?: boolean;
8
+ };
9
+ type __VLS_Props = {
10
+ data: TableRow[];
11
+ /** TODO: remove once we migrate */
12
+ environment: Environment;
13
+ envVariables: EnvVariable[];
14
+ };
15
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
16
+ updateRow: (index: number, payload: Partial<TableRow>) => any;
17
+ addRow: (payload: Partial<TableRow>) => any;
18
+ deleteRow: (index: number) => any;
19
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ onUpdateRow?: ((index: number, payload: Partial<TableRow>) => any) | undefined;
21
+ onAddRow?: ((payload: Partial<TableRow>) => any) | undefined;
22
+ onDeleteRow?: ((index: number) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ export default _default;
25
+ //# sourceMappingURL=CookiesTable.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CookiesTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/global-cookies/components/CookiesTable.vue"],"names":[],"mappings":"AAwJA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAWzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAEhB,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;;;;;;AA6XF,wBAOG"}
@@ -0,0 +1,7 @@
1
+ import o from "./CookiesTable.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ed778005"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,156 @@
1
+ import { defineComponent as w, computed as D, createBlock as v, openBlock as f, unref as e, withCtx as o, createVNode as a, createElementBlock as U, createTextVNode as d, Fragment as x, renderList as y } from "vue";
2
+ import { ScalarButton as R } from "@scalar/components";
3
+ import { ScalarIconTrash as T } from "@scalar/icons";
4
+ import B from "../../../../components/DataTable/DataTable.vue.js";
5
+ import c from "../../../../components/DataTable/DataTableRow.vue.js";
6
+ import i from "../../../../components/DataTable/DataTableHeader.vue.js";
7
+ import $ from "../../../../components/DataTable/DataTableCheckbox.vue.js";
8
+ import p from "../../../../components/DataTable/DataTableCell.vue.js";
9
+ import b from "../../../../components/CodeInput/CodeInput.vue.js";
10
+ const j = /* @__PURE__ */ w({
11
+ __name: "CookiesTable",
12
+ props: {
13
+ data: {},
14
+ environment: {},
15
+ envVariables: {}
16
+ },
17
+ emits: ["addRow", "updateRow", "deleteRow"],
18
+ setup(m, { emit: C }) {
19
+ const V = C, g = D(() => {
20
+ const l = m.data.at(-1);
21
+ return !l || l.name !== "" || l.value !== "" || l.domain !== "" ? [...m.data, { name: "", value: "", domain: "", isDisabled: !0 }] : m.data;
22
+ }), u = ({
23
+ index: l,
24
+ payload: n
25
+ }) => {
26
+ if (l >= m.data.length) {
27
+ V("addRow", n);
28
+ return;
29
+ }
30
+ V("updateRow", l, n);
31
+ }, k = ["32px", "1fr", "1fr", "1fr", "36px"];
32
+ return (l, n) => (f(), v(e(B), {
33
+ class: "group/table data-table h-min flex-1 rounded border",
34
+ columns: k
35
+ }, {
36
+ default: o(() => [
37
+ a(e(c), { class: "sr-only !block" }, {
38
+ default: o(() => [
39
+ a(e(i), null, {
40
+ default: o(() => [...n[0] || (n[0] = [
41
+ d("Enabled", -1)
42
+ ])]),
43
+ _: 1
44
+ }),
45
+ a(e(i), null, {
46
+ default: o(() => [...n[1] || (n[1] = [
47
+ d("Name", -1)
48
+ ])]),
49
+ _: 1
50
+ }),
51
+ a(e(i), null, {
52
+ default: o(() => [...n[2] || (n[2] = [
53
+ d("Value", -1)
54
+ ])]),
55
+ _: 1
56
+ }),
57
+ a(e(i), null, {
58
+ default: o(() => [...n[3] || (n[3] = [
59
+ d("Domain", -1)
60
+ ])]),
61
+ _: 1
62
+ }),
63
+ a(e(i), null, {
64
+ default: o(() => [...n[4] || (n[4] = [
65
+ d("Actions", -1)
66
+ ])]),
67
+ _: 1
68
+ })
69
+ ]),
70
+ _: 1
71
+ }),
72
+ (f(!0), U(x, null, y(g.value, (s, r) => (f(), v(e(c), {
73
+ id: r,
74
+ key: r,
75
+ class: "group/row"
76
+ }, {
77
+ default: o(() => [
78
+ a(e($), {
79
+ class: "!border-r",
80
+ modelValue: !s.isDisabled,
81
+ "onUpdate:modelValue": (t) => u({ index: r, payload: { isDisabled: !t } })
82
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]),
83
+ a(e(p), null, {
84
+ default: o(() => [
85
+ a(e(b), {
86
+ "aria-label": "Cookie Name",
87
+ disableCloseBrackets: "",
88
+ disableTabIndent: "",
89
+ envVariables: l.envVariables,
90
+ environment: l.environment,
91
+ lineWrapping: "",
92
+ modelValue: s.name,
93
+ placeholder: "Name",
94
+ "onUpdate:modelValue": (t) => u({ index: r, payload: { name: t } })
95
+ }, null, 8, ["envVariables", "environment", "modelValue", "onUpdate:modelValue"])
96
+ ]),
97
+ _: 2
98
+ }, 1024),
99
+ a(e(p), null, {
100
+ default: o(() => [
101
+ a(e(b), {
102
+ "aria-label": "Cookie Value",
103
+ disableTabIndent: "",
104
+ envVariables: l.envVariables,
105
+ environment: l.environment,
106
+ lineWrapping: "",
107
+ modelValue: s.value,
108
+ placeholder: "Value",
109
+ "onUpdate:modelValue": (t) => u({ index: r, payload: { value: t } })
110
+ }, null, 8, ["envVariables", "environment", "modelValue", "onUpdate:modelValue"])
111
+ ]),
112
+ _: 2
113
+ }, 1024),
114
+ a(e(p), null, {
115
+ default: o(() => [
116
+ a(e(b), {
117
+ "aria-label": "Cookie Domain",
118
+ disableCloseBrackets: "",
119
+ disableTabIndent: "",
120
+ envVariables: l.envVariables,
121
+ environment: l.environment,
122
+ lineWrapping: "",
123
+ modelValue: s.domain,
124
+ placeholder: "Domain",
125
+ "onUpdate:modelValue": (t) => u({ index: r, payload: { domain: t } })
126
+ }, null, 8, ["envVariables", "environment", "modelValue", "onUpdate:modelValue"])
127
+ ]),
128
+ _: 2
129
+ }, 1024),
130
+ a(e(p), { class: "flex items-center justify-center" }, {
131
+ default: o(() => [
132
+ a(e(R), {
133
+ class: "text-c-2 hover:text-c-1 hover:bg-b-2 hidden h-fit rounded p-1 group-hover/row:flex",
134
+ size: "sm",
135
+ variant: "ghost",
136
+ onClick: (t) => l.$emit("deleteRow", r)
137
+ }, {
138
+ default: o(() => [
139
+ a(e(T), { class: "size-3.5" })
140
+ ]),
141
+ _: 1
142
+ }, 8, ["onClick"])
143
+ ]),
144
+ _: 2
145
+ }, 1024)
146
+ ]),
147
+ _: 2
148
+ }, 1032, ["id"]))), 128))
149
+ ]),
150
+ _: 1
151
+ }));
152
+ }
153
+ });
154
+ export {
155
+ j as default
156
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=GlobalCookies.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalCookies.test.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/global-cookies/components/GlobalCookies.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import type { Environment } from '@scalar/oas-utils/entities/environment';
2
+ import type { EnvVariable } from '../../../../store/index.js';
3
+ type Cookie = {
4
+ name: string;
5
+ value: string;
6
+ domain: string;
7
+ isDisabled?: boolean;
8
+ };
9
+ type __VLS_Props = {
10
+ /** Current selected document name or when null it means workspace level cookies */
11
+ documentName: string | null;
12
+ /** List of all cookies for the current document or workspace */
13
+ cookies: Cookie[];
14
+ /** TODO: remove when we migrate to the new store */
15
+ environment: Environment;
16
+ envVariables: EnvVariable[];
17
+ };
18
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
19
+ "navigation:update:selection": (value: string | null) => any;
20
+ "navigation:update:sidebarWidth": (value: number) => any;
21
+ "cookie:add": (payload: Partial<Cookie>) => any;
22
+ "cookie:update": (index: number, payload: Partial<Cookie>) => any;
23
+ "cookie:delete": (index: number) => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ "onNavigation:update:selection"?: ((value: string | null) => any) | undefined;
26
+ "onNavigation:update:sidebarWidth"?: ((value: number) => any) | undefined;
27
+ "onCookie:add"?: ((payload: Partial<Cookie>) => any) | undefined;
28
+ "onCookie:update"?: ((index: number, payload: Partial<Cookie>) => any) | undefined;
29
+ "onCookie:delete"?: ((index: number) => any) | undefined;
30
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
+ export default _default;
32
+ //# sourceMappingURL=GlobalCookies.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalCookies.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/global-cookies/components/GlobalCookies.vue"],"names":[],"mappings":"AAmGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAKzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAG1C,KAAK,MAAM,GAAG;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,mFAAmF;IACnF,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,gEAAgE;IAChE,OAAO,EAAE,MAAM,EAAE,CAAA;IAEjB,oDAAoD;IACpD,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;;;;;;;;;;AAiKF,wBAOG"}
@@ -0,0 +1,7 @@
1
+ import o from "./GlobalCookies.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-675b20d5"]]);
5
+ export {
6
+ p as default
7
+ };