@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-api-client-app.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/create-api-client-app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;;OAKG;IACH,MAAM,EAAE,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;CACzB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,sBAAsB,CAAC,QAAQ,CAAC,gCAQvE,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,IAAI,WAAW,GAAG,IAAI,EACtB,gBAAgB,cAAc,EAC9B,YAAwB,sBAAsB,SAmB/C,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { createApp as p } from "vue";
2
+ import { createRouter as o, createWebHistory as c, createWebHashHistory as s } from "vue-router";
3
+ import n from "../App.vue.js";
4
+ /* empty css */
5
+ import { ROUTES as a } from "./routes.js";
6
+ const m = (e) => e === "web" ? o({ history: c(), routes: a }) : o({ history: s(), routes: a }), A = (e, i, { layout: r = "desktop" }) => {
7
+ const t = p(n, { workspaceStore: i, layout: r });
8
+ if (t.use(m(r)), !e) {
9
+ console.error(
10
+ "[@scalar/api-client-modal] Could not create the API client.",
11
+ "Invalid HTML element provided.",
12
+ "Read more: https://github.com/scalar/scalar/tree/main/packages/api-client"
13
+ );
14
+ return;
15
+ }
16
+ t.mount(e);
17
+ };
18
+ export {
19
+ A as createApiClientApp,
20
+ m as createAppRouter
21
+ };
@@ -0,0 +1,106 @@
1
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
+ import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
3
+ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
4
+ import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace';
5
+ import type { ClientLayout } from '../../../../v2/types/layout';
6
+ /** These props are provided at the route level */
7
+ export type RouteProps = {
8
+ document: WorkspaceDocument | null;
9
+ eventBus: WorkspaceEventBus;
10
+ layout: ClientLayout;
11
+ environment: XScalarEnvironment;
12
+ workspaceStore: WorkspaceStore;
13
+ };
14
+ /** When in the collections pages */
15
+ export type CollectionProps = RouteProps & ({
16
+ collectionType: 'document';
17
+ document: WorkspaceDocument;
18
+ } | {
19
+ collectionType: 'workspace';
20
+ document: null;
21
+ });
22
+ /** Routes for the API client app and web, the same as modal + workspace routes */
23
+ export declare const ROUTES: ({
24
+ name: string;
25
+ path: string;
26
+ component: () => Promise<typeof import("../../../../v2/components/TempReplaceMe.vue.js")>;
27
+ children?: undefined;
28
+ redirect?: undefined;
29
+ } | {
30
+ path: string;
31
+ children: ({
32
+ path: string;
33
+ children: ({
34
+ name: string;
35
+ path: string;
36
+ component: () => Promise<typeof import("../../../../v2/components/TempReplaceMe.vue.js")>;
37
+ children?: undefined;
38
+ } | {
39
+ name: string;
40
+ path: string;
41
+ component: () => Promise<typeof import("../../../../v2/features/collection/DocumentCollection.vue.js")>;
42
+ children: ({
43
+ name: string;
44
+ path: string;
45
+ redirect: {
46
+ name: string;
47
+ };
48
+ component?: undefined;
49
+ } | {
50
+ name: string;
51
+ path: string;
52
+ component: () => Promise<typeof import("../../../../v2/features/collection/components/Overview.vue.js")>;
53
+ redirect?: undefined;
54
+ } | {
55
+ name: string;
56
+ path: string;
57
+ component: () => Promise<typeof import("../../../../v2/features/collection/components/Servers.vue.js")>;
58
+ redirect?: undefined;
59
+ } | {
60
+ name: string;
61
+ path: string;
62
+ component: () => Promise<typeof import("../../../../v2/features/collection/components/Authentication.vue.js")>;
63
+ redirect?: undefined;
64
+ } | {
65
+ name: string;
66
+ path: string;
67
+ component: () => Promise<typeof import("../../../../v2/features/collection/components/Cookies.vue.js")>;
68
+ redirect?: undefined;
69
+ } | {
70
+ name: string;
71
+ path: string;
72
+ component: () => Promise<typeof import("../../../../v2/features/collection/components/Settings.vue.js")>;
73
+ redirect?: undefined;
74
+ })[];
75
+ })[];
76
+ name?: undefined;
77
+ component?: undefined;
78
+ } | {
79
+ name: string;
80
+ path: string;
81
+ component: () => Promise<typeof import("../../../../v2/features/collection/WorkspaceCollection.vue.js")>;
82
+ children: ({
83
+ name: string;
84
+ path: string;
85
+ component: () => Promise<typeof import("../../../../v2/features/collection/components/Environment.vue.js")>;
86
+ } | {
87
+ name: string;
88
+ path: string;
89
+ component: () => Promise<typeof import("../../../../v2/features/collection/components/Cookies.vue.js")>;
90
+ } | {
91
+ name: string;
92
+ path: string;
93
+ component: () => Promise<typeof import("../../../../v2/features/collection/components/Settings.vue.js")>;
94
+ })[];
95
+ })[];
96
+ name?: undefined;
97
+ component?: undefined;
98
+ redirect?: undefined;
99
+ } | {
100
+ path: string;
101
+ redirect: string;
102
+ name?: undefined;
103
+ component?: undefined;
104
+ children?: undefined;
105
+ })[];
106
+ //# sourceMappingURL=routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAGlF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,kDAAkD;AAClD,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,MAAM,EAAE,YAAY,CAAA;IACpB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,cAAc,EAAE,cAAc,CAAA;CAM/B,CAAA;AAED,oCAAoC;AACpC,MAAM,MAAM,eAAe,GAAG,UAAU,GACtC,CACI;IACE,cAAc,EAAE,UAAU,CAAA;IAC1B,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GACD;IACE,cAAc,EAAE,WAAW,CAAA;IAC3B,QAAQ,EAAE,IAAI,CAAA;CACf,CACJ,CAAA;AAEH,kFAAkF;AAClF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyGS,CAAA"}
@@ -0,0 +1,109 @@
1
+ const e = [
2
+ // Global settings
3
+ {
4
+ name: "settings",
5
+ path: "/settings",
6
+ component: () => import("../../../components/TempReplaceMe.vue.js")
7
+ },
8
+ {
9
+ path: "/workspace/:workspaceSlug",
10
+ children: [
11
+ {
12
+ path: "document/:documentSlug",
13
+ children: [
14
+ // Example page
15
+ {
16
+ name: "example",
17
+ path: "path/:pathEncoded/method/:method/example/:exampleName",
18
+ component: () => import("../../../components/TempReplaceMe.vue.js")
19
+ },
20
+ // Document Page
21
+ {
22
+ name: "document",
23
+ path: "",
24
+ component: () => import("../../collection/DocumentCollection.vue.js"),
25
+ children: [
26
+ // Redirect to overview
27
+ {
28
+ name: "document.redirect",
29
+ path: "",
30
+ redirect: {
31
+ name: "document.overview"
32
+ }
33
+ },
34
+ // Document overview
35
+ {
36
+ name: "document.overview",
37
+ path: "overview",
38
+ component: () => import("../../collection/components/Overview.vue.js")
39
+ },
40
+ // Document servers
41
+ {
42
+ name: "document.servers",
43
+ path: "servers",
44
+ component: () => import("../../collection/components/Servers.vue.js")
45
+ },
46
+ // Document environment
47
+ {
48
+ name: "document.environment",
49
+ path: "environment",
50
+ component: () => import("../../collection/components/Environment.vue.js")
51
+ },
52
+ // Document authentication
53
+ {
54
+ name: "document.authentication",
55
+ path: "authentication",
56
+ component: () => import("../../collection/components/Authentication.vue.js")
57
+ },
58
+ // Document cookies
59
+ {
60
+ name: "document.cookies",
61
+ path: "cookies",
62
+ component: () => import("../../collection/components/Cookies.vue.js")
63
+ },
64
+ // Document settings
65
+ {
66
+ name: "document.settings",
67
+ path: "settings",
68
+ component: () => import("../../collection/components/Settings.vue.js")
69
+ }
70
+ ]
71
+ }
72
+ ]
73
+ },
74
+ // Workspace page
75
+ {
76
+ name: "workspace",
77
+ path: "",
78
+ component: () => import("../../collection/WorkspaceCollection.vue.js"),
79
+ children: [
80
+ // Workspace environment
81
+ {
82
+ name: "workspace.environment",
83
+ path: "environment",
84
+ component: () => import("../../collection/components/Environment.vue.js")
85
+ },
86
+ // Workspace cookies
87
+ {
88
+ name: "workspace.cookies",
89
+ path: "cookies",
90
+ component: () => import("../../collection/components/Cookies.vue.js")
91
+ },
92
+ // Workspace settings
93
+ {
94
+ name: "workspace.settings",
95
+ path: "settings",
96
+ component: () => import("../../collection/components/Settings.vue.js")
97
+ }
98
+ ]
99
+ }
100
+ ]
101
+ },
102
+ {
103
+ path: "/:pathMatch(.*)*",
104
+ redirect: "/workspace/default/document/default/overview"
105
+ }
106
+ ];
107
+ export {
108
+ e as ROUTES
109
+ };
@@ -0,0 +1,2 @@
1
+ export { createApiClientApp } from './helpers/create-api-client-app.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { createApiClientApp as r } from "./helpers/create-api-client-app.js";
2
+ export {
3
+ r as createApiClientApp
4
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DocumentCollection.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentCollection.test.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/collection/DocumentCollection.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import type { RouteProps } from '../../../v2/features/app/helpers/routes.js';
2
+ /**
3
+ * Document Collection Page
4
+ *
5
+ * Displays primary document editing and viewing interface, enabling users to:
6
+ * - Choose a document icon
7
+ * - Edit the document title
8
+ * - Navigate among Overview, Servers, Authentication, Environment, Cookies, and Settings tabs
9
+ */
10
+ declare const _default: import("vue").DefineComponent<RouteProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouteProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
12
+ //# sourceMappingURL=DocumentCollection.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentCollection.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/collection/DocumentCollection.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAMlE;;;;;;;GAOG;;AACH,wBAkQC"}
@@ -0,0 +1,4 @@
1
+ import f from "./DocumentCollection.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,95 @@
1
+ import { defineComponent as p, computed as c, createElementBlock as d, openBlock as r, createElementVNode as t, createVNode as n, withCtx as a, unref as s, createBlock as f, KeepAlive as v, resolveDynamicComponent as x } from "vue";
2
+ import { ScalarButton as w } from "@scalar/components";
3
+ import { LibraryIcon as y } from "@scalar/icons/library";
4
+ import { RouterView as b } from "vue-router";
5
+ import h from "../../../components/IconSelector.vue.js";
6
+ import k from "./components/LabelInput.vue.js";
7
+ import _ from "./components/Tabs.vue.js";
8
+ const B = {
9
+ key: 0,
10
+ class: "w-full md:mx-auto md:max-w-[720px]"
11
+ }, V = ["aria-label"], g = { class: "flex flex-row items-center gap-2" }, S = { class: "group relative ml-1.25" }, C = { class: "px-1.5 pt-8" }, D = {
12
+ key: 1,
13
+ class: "flex w-full flex-1 items-center justify-center"
14
+ }, I = {
15
+ name: "DocumentCollection"
16
+ }, q = /* @__PURE__ */ p({
17
+ ...I,
18
+ props: {
19
+ document: {},
20
+ eventBus: {},
21
+ layout: {},
22
+ environment: {},
23
+ workspaceStore: {}
24
+ },
25
+ setup(u) {
26
+ const i = c(() => u.document?.info?.title || "Untitled Document"), m = c(
27
+ () => u.document?.["x-scalar-client-config-icon"] || "interface-content-folder"
28
+ );
29
+ return (e, o) => e.document ? (r(), d("div", B, [
30
+ t("div", {
31
+ "aria-label": `title: ${i.value}`,
32
+ class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
33
+ }, [
34
+ t("div", g, [
35
+ n(h, {
36
+ modelValue: m.value,
37
+ placement: "bottom-start",
38
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => e.eventBus.emit("document:update:icon", l))
39
+ }, {
40
+ default: a(() => [
41
+ n(s(w), {
42
+ class: "hover:bg-b-2 aspect-square h-7 w-7 cursor-pointer rounded border border-transparent p-0 hover:border-inherit",
43
+ variant: "ghost"
44
+ }, {
45
+ default: a(() => [
46
+ n(s(y), {
47
+ class: "text-c-2 size-5",
48
+ src: m.value,
49
+ "stroke-width": "2"
50
+ }, null, 8, ["src"])
51
+ ]),
52
+ _: 1
53
+ })
54
+ ]),
55
+ _: 1
56
+ }, 8, ["modelValue"])
57
+ ]),
58
+ t("div", S, [
59
+ n(k, {
60
+ class: "text-xl font-bold",
61
+ inputId: "documentName",
62
+ modelValue: i.value,
63
+ "onUpdate:modelValue": o[1] || (o[1] = (l) => e.eventBus.emit("document:update:info", { title: l }))
64
+ }, null, 8, ["modelValue"])
65
+ ])
66
+ ], 8, V),
67
+ n(_, { type: "document" }),
68
+ t("div", C, [
69
+ n(s(b), null, {
70
+ default: a(({ Component: l }) => [
71
+ (r(), f(v, null, [
72
+ (r(), f(x(l), {
73
+ collectionType: "document",
74
+ document: e.document,
75
+ environment: e.environment,
76
+ eventBus: e.eventBus,
77
+ layout: e.layout,
78
+ workspaceStore: e.workspaceStore
79
+ }, null, 8, ["document", "environment", "eventBus", "layout", "workspaceStore"]))
80
+ ], 1024))
81
+ ]),
82
+ _: 1
83
+ })
84
+ ])
85
+ ])) : (r(), d("div", D, [...o[2] || (o[2] = [
86
+ t("div", { class: "flex h-full flex-col items-center justify-center" }, [
87
+ t("h1", { class: "text-2xl font-bold" }, "Document not found"),
88
+ t("p", { class: "text-gray-500" }, " The document you are looking for does not exist. ")
89
+ ], -1)
90
+ ])]));
91
+ }
92
+ });
93
+ export {
94
+ q as default
95
+ };
@@ -0,0 +1,10 @@
1
+ import type { RouteProps } from '../../../v2/features/app/helpers/routes.js';
2
+ /**
3
+ * Document Collection Page
4
+ *
5
+ * Displays primary document editing and viewing interface, enabling users navigate among
6
+ * Overview, Servers, Authentication, Environment, Cookies, and Settings tabs
7
+ */
8
+ declare const _default: import("vue").DefineComponent<RouteProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouteProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
10
+ //# sourceMappingURL=WorkspaceCollection.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkspaceCollection.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/collection/WorkspaceCollection.vue"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAKlE;;;;;GAKG;;AACH,wBAuHC"}
@@ -0,0 +1,4 @@
1
+ import f from "./WorkspaceCollection.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,40 @@
1
+ import { defineComponent as s, createElementBlock as c, openBlock as r, createElementVNode as e, createVNode as t, unref as l, toDisplayString as n } from "vue";
2
+ import { ScalarIconGlobe as p } from "@scalar/icons";
3
+ import { RouterView as i } from "vue-router";
4
+ import m from "./components/Tabs.vue.js";
5
+ const u = { class: "w-full md:mx-auto md:max-w-[720px]" }, f = ["aria-label"], _ = { class: "flex flex-col gap-12 px-1.5 pt-8" }, d = {}, B = /* @__PURE__ */ s({
6
+ ...d,
7
+ __name: "WorkspaceCollection",
8
+ props: {
9
+ document: {},
10
+ eventBus: {},
11
+ layout: {},
12
+ environment: {},
13
+ workspaceStore: {}
14
+ },
15
+ setup(x) {
16
+ const o = "Workspace Title [replace with name]";
17
+ return (a, v) => (r(), c("div", u, [
18
+ e("div", {
19
+ "aria-label": `title: ${o}`,
20
+ class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
21
+ }, [
22
+ t(l(p), { class: "text-c-2 size-6" }),
23
+ e("div", { class: "group relative ml-1.25" }, [
24
+ e("span", { class: "text-c-1 flex h-8 items-center" }, n(o))
25
+ ])
26
+ ], 8, f),
27
+ t(m, { type: "workspace" }),
28
+ e("div", _, [
29
+ t(l(i), {
30
+ eventBus: a.eventBus,
31
+ layout: a.layout,
32
+ type: "workspace"
33
+ }, null, 8, ["eventBus", "layout"])
34
+ ])
35
+ ]));
36
+ }
37
+ });
38
+ export {
39
+ B as default
40
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Authentication.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Authentication.test.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Authentication.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,48 @@
1
+ import type { Environment } from '@scalar/oas-utils/entities/environment';
2
+ import type { OpenApiDocument, SecuritySchemeObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
+ import type { EnvVariable } from '../../../../store/index.js';
4
+ import type { UpdateSecuritySchemeEvent } from '../../../../v2/blocks/scalar-auth-selector-block/event-types';
5
+ type __VLS_Props = {
6
+ /** Should use document security */
7
+ useDocumentSecurity: boolean;
8
+ /** Security requirements for the document */
9
+ security: OpenApiDocument['security'];
10
+ /** Currently selected security requirements */
11
+ selectedSecurity: OpenApiDocument['security'];
12
+ /** Security schemes available in the document */
13
+ securitySchemes: NonNullable<OpenApiDocument['components']>['securitySchemes'];
14
+ /** Currently selected server */
15
+ server: ServerObject | undefined;
16
+ /** TODO: remove when we migrate */
17
+ environment: Environment;
18
+ envVariables: EnvVariable[];
19
+ };
20
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
21
+ "update:selectedScopes": (payload: {
22
+ id: string[];
23
+ name: string;
24
+ scopes: string[];
25
+ }) => any;
26
+ "update:securityScheme": (payload: UpdateSecuritySchemeEvent) => any;
27
+ deleteOperationAuth: (names: string[]) => any;
28
+ "update:selectedSecurity": (payload: {
29
+ value: NonNullable<OpenApiDocument["x-scalar-selected-security"]>;
30
+ create: SecuritySchemeObject[];
31
+ }) => any;
32
+ "update:useDocumentSecurity": (value: boolean) => any;
33
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
34
+ "onUpdate:selectedScopes"?: ((payload: {
35
+ id: string[];
36
+ name: string;
37
+ scopes: string[];
38
+ }) => any) | undefined;
39
+ "onUpdate:securityScheme"?: ((payload: UpdateSecuritySchemeEvent) => any) | undefined;
40
+ onDeleteOperationAuth?: ((names: string[]) => any) | undefined;
41
+ "onUpdate:selectedSecurity"?: ((payload: {
42
+ value: NonNullable<OpenApiDocument["x-scalar-selected-security"]>;
43
+ create: SecuritySchemeObject[];
44
+ }) => any) | undefined;
45
+ "onUpdate:useDocumentSecurity"?: ((value: boolean) => any) | undefined;
46
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
47
+ export default _default;
48
+ //# sourceMappingURL=Authentication.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Authentication.vue"],"names":[],"mappings":"AAoGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAA;AAEnG,KAAK,WAAW,GAAG;IACjB,mCAAmC;IACnC,mBAAmB,EAAE,OAAO,CAAA;IAE5B,6CAA6C;IAC7C,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,+CAA+C;IAC/C,gBAAgB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IAC7C,iDAAiD;IACjD,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAEhC,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;YAWiB,MAAM,EAAE;cAAQ,MAAM;gBAAU,MAAM,EAAE;;;;;eAK9C,WAAW,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC;gBACzD,oBAAoB,EAAE;;;;;YANjB,MAAM,EAAE;cAAQ,MAAM;gBAAU,MAAM,EAAE;;;;;eAK9C,WAAW,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC;gBACzD,oBAAoB,EAAE;;;;AA+IpC,wBAOG"}
@@ -0,0 +1,7 @@
1
+ import t from "./Authentication.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-2ab6a6e3"]]);
5
+ export {
6
+ i as default
7
+ };
@@ -0,0 +1,50 @@
1
+ import { defineComponent as u, createElementBlock as c, openBlock as a, createElementVNode as i, createVNode as o, unref as n } from "vue";
2
+ import { ScalarToggle as d } from "@scalar/components";
3
+ import p from "../../../blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
4
+ const m = { class: "flex flex-col gap-4" }, y = { class: "flex flex-col gap-2" }, S = { class: "flex h-8 items-center justify-between" }, A = /* @__PURE__ */ u({
5
+ __name: "Authentication",
6
+ props: {
7
+ useDocumentSecurity: { type: Boolean },
8
+ security: {},
9
+ selectedSecurity: {},
10
+ securitySchemes: {},
11
+ server: {},
12
+ environment: {},
13
+ envVariables: {}
14
+ },
15
+ emits: ["update:useDocumentSecurity", "deleteOperationAuth", "update:securityScheme", "update:selectedScopes", "update:selectedSecurity"],
16
+ setup(v, { emit: l }) {
17
+ const r = l;
18
+ return (s, e) => (a(), c("div", m, [
19
+ i("div", y, [
20
+ i("div", S, [
21
+ e[5] || (e[5] = i("h3", { class: "font-bold" }, "Authentication", -1)),
22
+ o(n(d), {
23
+ class: "w-4",
24
+ modelValue: s.useDocumentSecurity,
25
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => r("update:useDocumentSecurity", t))
26
+ }, null, 8, ["modelValue"])
27
+ ]),
28
+ e[6] || (e[6] = i("p", { class: "pr-6 text-sm" }, " Added authentication will apply to all requests under this collection. You can override this by specifying another one in the request. ", -1))
29
+ ]),
30
+ o(n(p), {
31
+ class: "scalar-collection-auth",
32
+ envVariables: s.envVariables,
33
+ environment: s.environment,
34
+ layout: "client",
35
+ security: s.security,
36
+ securitySchemes: s.securitySchemes,
37
+ selectedSecurity: s.selectedSecurity,
38
+ server: s.server,
39
+ title: "Authentication",
40
+ onDeleteOperationAuth: e[1] || (e[1] = (t) => r("deleteOperationAuth", t)),
41
+ "onUpdate:securityScheme": e[2] || (e[2] = (t) => r("update:securityScheme", t)),
42
+ "onUpdate:selectedScopes": e[3] || (e[3] = (t) => r("update:selectedScopes", t)),
43
+ "onUpdate:selectedSecurity": e[4] || (e[4] = (t) => r("update:selectedSecurity", t))
44
+ }, null, 8, ["envVariables", "environment", "security", "securitySchemes", "selectedSecurity", "server"])
45
+ ]));
46
+ }
47
+ });
48
+ export {
49
+ A as default
50
+ };
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=Cookies.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cookies.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Cookies.vue"],"names":[],"mappings":";AA4BA,wBAKG"}
@@ -0,0 +1,9 @@
1
+ import e from "../../../../_virtual/_plugin-vue_export-helper.js";
2
+ const o = {};
3
+ function c(t, n) {
4
+ return "This is the cookies component";
5
+ }
6
+ const s = /* @__PURE__ */ e(o, [["render", c]]);
7
+ export {
8
+ s as default
9
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Environment.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Environment.test.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Environment.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ declare const _default: import("vue").DefineComponent<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
2
+ collectionType: "document";
3
+ document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
4
+ }) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
5
+ collectionType: "workspace";
6
+ document: null;
7
+ }), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
8
+ collectionType: "document";
9
+ document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
10
+ }) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
11
+ collectionType: "workspace";
12
+ document: null;
13
+ })> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
15
+ //# sourceMappingURL=Environment.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Environment.vue"],"names":[],"mappings":";;;;;;;;;;;;;AAiJA,wBAMG"}
@@ -0,0 +1,4 @@
1
+ import f from "./Environment.vue2.js";
2
+ export {
3
+ f as default
4
+ };