@scalar/api-client 2.18.0 → 2.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/dist/components/AddressBar/AddressBar.vue2.js +52 -52
  3. package/dist/components/AddressBar/AddressBarHistory.vue2.js +15 -15
  4. package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -33
  5. package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
  6. package/dist/components/AddressBar/httpStatusCodeColors.js +0 -1
  7. package/dist/components/CodeInput/CodeInput.vue2.js +112 -112
  8. package/dist/components/CommandPalette/CommandActionForm.vue.js +18 -18
  9. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +25 -25
  10. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -4
  13. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -1
  14. package/dist/components/CommandPalette/WatchModeToggle.vue.js +14 -14
  15. package/dist/components/DataTable/DataTable.vue.js +17 -17
  16. package/dist/components/DataTable/DataTableCell.vue.js +9 -9
  17. package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
  18. package/dist/components/DataTable/DataTableInput.vue2.js +48 -48
  19. package/dist/components/DataTable/DataTableInputSelect.vue.js +35 -35
  20. package/dist/components/DataTable/DataTableText.vue.js +10 -10
  21. package/dist/components/Form/Form.vue.js +32 -32
  22. package/dist/components/Form/LabelInput.vue2.js +15 -15
  23. package/dist/components/HelpfulLink.vue.js +7 -7
  24. package/dist/components/HttpMethod/HttpMethod.vue2.js +22 -22
  25. package/dist/components/IconSelector.vue.js +16 -16
  26. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +50 -50
  27. package/dist/components/ImportCollection/ImportNowButton.vue.js +23 -23
  28. package/dist/components/ImportCollection/PrefetchError.vue.js +8 -8
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -7
  30. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  31. package/dist/components/ScalarAsciiArt.vue2.js +16 -16
  32. package/dist/components/SectionFilter.vue2.js +21 -21
  33. package/dist/components/SectionFilterButton.vue.js +7 -7
  34. package/dist/components/Server/ServerDropdown.vue.js +32 -32
  35. package/dist/components/Server/ServerDropdownItem.vue2.js +39 -39
  36. package/dist/components/Server/ServerSelector.vue.js +27 -27
  37. package/dist/components/Server/ServerVariablesForm.vue.js +26 -26
  38. package/dist/components/Server/ServerVariablesSelect.vue.js +21 -21
  39. package/dist/components/Server/ServerVariablesTextbox.vue.js +10 -10
  40. package/dist/components/Server/types.d.ts +2 -1
  41. package/dist/components/Server/types.d.ts.map +1 -1
  42. package/dist/components/SideNav/SideNavLink.vue.js +18 -18
  43. package/dist/components/SideNav/SideNavRouterLink.vue.js +13 -13
  44. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +11 -11
  45. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +16 -16
  46. package/dist/components/Sidebar/Sidebar.vue2.js +28 -28
  47. package/dist/components/Sidebar/SidebarButton.vue.js +12 -12
  48. package/dist/components/Sidebar/SidebarListElement.vue2.js +34 -34
  49. package/dist/components/Sidebar/SidebarListElementActions.vue.js +33 -33
  50. package/dist/components/TopNav/TopNavItem.vue2.js +41 -41
  51. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +43 -43
  52. package/dist/data/httpHeaders.d.ts +2 -1
  53. package/dist/data/httpHeaders.d.ts.map +1 -1
  54. package/dist/hooks/useClientConfig.js +1 -1
  55. package/dist/hooks/useLayout.js +1 -1
  56. package/dist/hooks/useSidebar.js +1 -1
  57. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  58. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  59. package/dist/libs/create-client.d.ts.map +1 -1
  60. package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
  61. package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
  62. package/dist/plugins/hooks/usePluginManager.js +5 -5
  63. package/dist/plugins/index.d.ts +1 -1
  64. package/dist/plugins/index.d.ts.map +1 -1
  65. package/dist/plugins/index.js +5 -5
  66. package/dist/plugins/plugin-manager.d.ts +0 -2
  67. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  68. package/dist/routes.d.ts +0 -10
  69. package/dist/routes.d.ts.map +1 -1
  70. package/dist/routes.js +0 -1
  71. package/dist/store/active-entities.js +1 -1
  72. package/dist/store/security-schemes.d.ts.map +1 -1
  73. package/dist/store/store.d.ts.map +1 -1
  74. package/dist/style.css +1 -1
  75. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  76. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
  77. package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
  78. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  79. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
  80. package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +0 -2
  81. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
  82. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
  83. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
  84. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  85. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
  86. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
  87. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  88. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
  89. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
  90. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
  91. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
  92. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  93. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
  94. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  95. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  96. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
  97. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
  98. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  99. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  100. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
  101. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
  102. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
  103. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
  104. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
  105. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
  106. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  107. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
  108. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
  109. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  110. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
  111. package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
  112. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
  113. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  114. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
  115. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
  116. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
  117. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  118. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
  119. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
  120. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
  121. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
  122. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
  123. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
  124. package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
  125. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
  126. package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
  127. package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
  128. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
  129. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
  130. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
  131. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
  132. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
  133. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
  134. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
  135. package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
  136. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
  137. package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
  138. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
  139. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
  140. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
  141. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
  142. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  144. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +83 -82
  145. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
  146. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
  147. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
  148. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
  149. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  150. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +26 -26
  151. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
  152. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
  153. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  154. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +130 -122
  155. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
  156. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  157. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
  158. package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
  159. package/dist/v2/components/data-table/DataTable.vue.js +17 -17
  160. package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
  161. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
  162. package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
  163. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
  164. package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
  165. package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
  166. package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
  167. package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
  168. package/dist/v2/components/resize/Resize.vue2.js +11 -11
  169. package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
  170. package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
  171. package/dist/v2/components/sidebar/Sidebar.vue.js +32 -32
  172. package/dist/v2/components/sidebar/SidebarMenu.vue.js +20 -20
  173. package/dist/v2/features/app/App.vue.js +25 -25
  174. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  175. package/dist/v2/features/app/app-events.js +55 -61
  176. package/dist/v2/features/app/components/AppSidebar.vue2.js +97 -97
  177. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
  178. package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
  179. package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
  180. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
  181. package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
  182. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -5
  183. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  184. package/dist/v2/features/app/helpers/create-api-client-app.js +1 -2
  185. package/dist/v2/features/app/helpers/routes.d.ts +5 -1
  186. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  187. package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
  188. package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
  189. package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
  190. package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
  191. package/dist/v2/features/collection/components/Environment.vue.js +10 -10
  192. package/dist/v2/features/collection/components/Form.vue.js +21 -21
  193. package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
  194. package/dist/v2/features/collection/components/Servers.vue.js +37 -37
  195. package/dist/v2/features/collection/components/Settings.vue.js +22 -22
  196. package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
  197. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
  198. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
  199. package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
  200. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
  201. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
  202. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
  203. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
  204. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
  205. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
  206. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  207. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
  208. package/dist/v2/features/command-palette/types.d.ts +11 -10
  209. package/dist/v2/features/command-palette/types.d.ts.map +1 -1
  210. package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
  211. package/dist/v2/features/environments/components/Environment.vue.js +16 -16
  212. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
  213. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
  214. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
  215. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
  216. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
  217. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
  218. package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
  219. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  220. package/dist/v2/features/modal/Modal.vue.js +1 -1
  221. package/dist/v2/features/modal/Modal.vue2.js +57 -56
  222. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +5 -4
  223. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  224. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
  225. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
  226. package/dist/v2/features/operation/Operation.vue.d.ts +5 -1
  227. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  228. package/dist/v2/features/operation/Operation.vue.js +41 -39
  229. package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
  230. package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
  231. package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
  232. package/dist/v2/features/search/types.d.ts +5 -4
  233. package/dist/v2/features/search/types.d.ts.map +1 -1
  234. package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
  235. package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
  236. package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
  237. package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
  238. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  239. package/dist/v2/helpers/handle-hotkeys.js +0 -2
  240. package/dist/v2/helpers/plugins.d.ts +2 -2
  241. package/dist/v2/helpers/plugins.d.ts.map +1 -1
  242. package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
  243. package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
  244. package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
  245. package/dist/views/Cookies/CookieModal.vue2.js +26 -26
  246. package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
  247. package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
  248. package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
  249. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
  250. package/dist/views/Request/Request.vue2.js +55 -55
  251. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
  252. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
  253. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
  254. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  255. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
  256. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  257. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
  258. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
  259. package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
  260. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
  261. package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
  262. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
  263. package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
  264. package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
  265. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
  266. package/dist/views/Request/RequestSection/index.d.ts +1 -1
  267. package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
  268. package/dist/views/Request/RequestSection/index.js +4 -4
  269. package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
  270. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
  271. package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
  272. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
  273. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
  274. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
  275. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
  276. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
  277. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
  278. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
  279. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
  280. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
  281. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
  282. package/package.json +24 -24
  283. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
  284. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
  285. package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
  286. package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
  287. package/dist/components/ScreenReader.vue.d.ts +0 -20
  288. package/dist/components/ScreenReader.vue.d.ts.map +0 -1
  289. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
  290. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
  291. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
  292. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
  293. package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
  294. package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as S, ref as C, watch as E, nextTick as b, createBlock as i, openBlock as a, unref as n, withCtx as m, createCommentVNode as l, createElementVNode as r, createVNode as u, createTextVNode as c } from "vue";
2
2
  import { ScalarDropdown as M, ScalarDropdownItem as s, ScalarIcon as y, ScalarDropdownDivider as T } from "@scalar/components";
3
- import { getParentEntry as p } from "@scalar/workspace-store/navigation";
3
+ import { getParentEntry as I } from "@scalar/workspace-store/navigation";
4
4
  const z = { class: "flex items-center gap-2" }, N = { class: "flex items-center gap-2" }, V = { class: "flex items-center gap-2" }, $ = { class: "text-red flex items-center gap-2" }, W = /* @__PURE__ */ S({
5
5
  __name: "SidebarItemMenu",
6
6
  props: {
@@ -10,8 +10,8 @@ const z = { class: "flex items-center gap-2" }, N = { class: "flex items-center
10
10
  target: {}
11
11
  },
12
12
  emits: ["closeMenu", "showDeleteModal"],
13
- setup(e, { emit: I }) {
14
- const g = I, f = C(!1);
13
+ setup(e, { emit: p }) {
14
+ const g = p, f = C(!1);
15
15
  E(f, async (d, t) => {
16
16
  !d && t && (await b(), g("closeMenu"));
17
17
  });
@@ -26,7 +26,7 @@ const z = { class: "flex items-center gap-2" }, N = { class: "flex items-center
26
26
  e.eventBus.emit("ui:open:command-palette", {
27
27
  action: "create-request",
28
28
  payload: {
29
- documentId: p("document", d)?.id,
29
+ documentId: I("document", d)?.id,
30
30
  tagId: e.item.name
31
31
  }
32
32
  });
@@ -44,7 +44,7 @@ const z = { class: "flex items-center gap-2" }, N = { class: "flex items-center
44
44
  e.eventBus.emit("ui:open:command-palette", {
45
45
  action: "add-example",
46
46
  payload: {
47
- documentId: p("document", d)?.id,
47
+ documentId: I("document", d)?.id,
48
48
  operationId: e.item.id
49
49
  }
50
50
  });
@@ -54,7 +54,7 @@ const z = { class: "flex items-center gap-2" }, N = { class: "flex items-center
54
54
  open: f.value,
55
55
  "onUpdate:open": t[4] || (t[4] = (o) => f.value = o),
56
56
  placement: "bottom-end",
57
- target: d.target,
57
+ target: e.target,
58
58
  teleport: ""
59
59
  }, {
60
60
  items: m(() => [
@@ -1,7 +1,7 @@
1
- import { defineComponent as p, createElementBlock as c, openBlock as n, createVNode as s, unref as i } from "vue";
1
+ import { defineComponent as c, createElementBlock as p, openBlock as n, createVNode as s, unref as i } from "vue";
2
2
  import k from "./DownloadAppButton.vue.js";
3
3
  import m from "../../../components/sidebar/SidebarMenu.vue.js";
4
- const l = { class: "flex h-12 items-center justify-between border-b p-2" }, w = {}, v = /* @__PURE__ */ p({
4
+ const l = { class: "flex h-12 items-center justify-between border-b p-2" }, w = {}, v = /* @__PURE__ */ c({
5
5
  ...w,
6
6
  __name: "WebTopNav",
7
7
  props: {
@@ -9,14 +9,14 @@ const l = { class: "flex h-12 items-center justify-between border-b p-2" }, w =
9
9
  workspaces: {}
10
10
  },
11
11
  emits: ["create:workspace", "select:workspace"],
12
- setup(f, { emit: a }) {
13
- const o = a;
14
- return (t, e) => (n(), c("nav", l, [
12
+ setup(o, { emit: a }) {
13
+ const t = a;
14
+ return (f, e) => (n(), p("nav", l, [
15
15
  s(i(m), {
16
- activeWorkspace: t.activeWorkspace,
17
- workspaces: t.workspaces,
18
- "onCreate:workspace": e[0] || (e[0] = (r) => o("create:workspace")),
19
- "onSelect:workspace": e[1] || (e[1] = (r) => o("select:workspace", r))
16
+ activeWorkspace: o.activeWorkspace,
17
+ workspaces: o.workspaces,
18
+ "onCreate:workspace": e[0] || (e[0] = (r) => t("create:workspace")),
19
+ "onSelect:workspace": e[1] || (e[1] = (r) => t("select:workspace", r))
20
20
  }, null, 8, ["activeWorkspace", "workspaces"]),
21
21
  s(k)
22
22
  ]));
@@ -1,6 +1,6 @@
1
1
  import type { ClientPlugin } from '../../../../v2/helpers/plugins.js';
2
2
  import type { ClientLayout } from '../../../../v2/types/layout';
3
- export type CreateApiClientOptions = {
3
+ type CreateApiClientOptions = {
4
4
  /**
5
5
  * The layout of the client, limited to web or desktop in app
6
6
  * @see {@link ClientLayout}
@@ -13,10 +13,6 @@ export type CreateApiClientOptions = {
13
13
  */
14
14
  plugins?: ClientPlugin[];
15
15
  };
16
- /**
17
- * Creates the appropriate router with the appropriate routes based on the layout
18
- */
19
- export declare const createAppRouter: (layout: CreateApiClientOptions["layout"]) => import("vue-router").Router;
20
16
  /**
21
17
  * Create the API Client with router and passes in the workspace store as a prop
22
18
  */
@@ -82,4 +78,5 @@ export declare const createApiClientApp: (el: HTMLElement | null, { layout, plug
82
78
  document: import("vue").ComputedRef<import("@scalar/workspace-store/schemas").WorkspaceDocument | null>;
83
79
  };
84
80
  } | undefined;
81
+ export {};
85
82
  //# sourceMappingURL=create-api-client-app.d.ts.map
@@ -1 +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":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,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,GAAI,IAAI,WAAW,GAAG,IAAI,EAAE,qBAAiC,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA4B21K,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;aAD78K,CAAA"}
1
+ {"version":3,"file":"create-api-client-app.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/create-api-client-app.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,KAAK,sBAAsB,GAAG;IAC5B;;;;;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,kBAAkB,GAAI,IAAI,WAAW,GAAG,IAAI,EAAE,qBAAiC,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA4By2K,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;aAD39K,CAAA"}
@@ -20,6 +20,5 @@ const f = (e) => e === "web" ? i({ history: n(), routes: p }) : i({ history: m()
20
20
  };
21
21
  };
22
22
  export {
23
- v as createApiClientApp,
24
- f as createAppRouter
23
+ v as createApiClientApp
25
24
  };
@@ -41,7 +41,11 @@ export declare const ROUTES: ({
41
41
  children: ({
42
42
  name: string;
43
43
  path: string;
44
- component: import("vue").DefineComponent<RouteProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouteProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
+ component: import("vue").DefineComponent<RouteProps & {
45
+ hideClientButton?: boolean;
46
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouteProps & {
47
+ hideClientButton?: boolean;
48
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
49
  children?: undefined;
46
50
  } | {
47
51
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,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,qBAAqB,EAAE,MAAM,kEAAkE,CAAA;AAU7G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,kDAAkD;AAClD,MAAM,MAAM,UAAU,GAAG;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,eAAe,EAAE,qBAAqB,CAAA;IACtC,cAAc,EAAE,cAAc,CAAA;IAC9B,eAAe,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IAC9C,OAAO,EAAE,YAAY,EAAE,CAAA;CAGxB,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,MAAM,MAAM,0BAA0B,GAAG,eAAe,GAAG,cAAc,GAAG,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAA;AAEpH,kFAAkF;AAClF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;oCAZK,UAAU;8BAChB,iBAAiB;;oCAGX,WAAW;8BACjB,IAAI;;oCALE,UAAU;8BAChB,iBAAiB;;oCAGX,WAAW;8BACjB,IAAI;;;;;;;;;;;;;;;gCALE,UAAU;0BAChB,iBAAiB;;gCAGX,WAAW;0BACjB,IAAI;;gCALE,UAAU;0BAChB,iBAAiB;;gCAGX,WAAW;0BACjB,IAAI;;;;;;;;;IA0GM,CAAA"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,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,qBAAqB,EAAE,MAAM,kEAAkE,CAAA;AAU7G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,kDAAkD;AAClD,MAAM,MAAM,UAAU,GAAG;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,eAAe,EAAE,qBAAqB,CAAA;IACtC,cAAc,EAAE,cAAc,CAAA;IAC9B,eAAe,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IAC9C,OAAO,EAAE,YAAY,EAAE,CAAA;CAGxB,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,MAAM,MAAM,0BAA0B,GAAG,eAAe,GAAG,cAAc,GAAG,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAA;AAEpH,kFAAkF;AAClF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAZK,UAAU;8BAChB,iBAAiB;;oCAGX,WAAW;8BACjB,IAAI;;oCALE,UAAU;8BAChB,iBAAiB;;oCAGX,WAAW;8BACjB,IAAI;;;;;;;;;;;;;;;gCALE,UAAU;0BAChB,iBAAiB;;gCAGX,WAAW;0BACjB,IAAI;;gCALE,UAAU;0BAChB,iBAAiB;;gCAGX,WAAW;0BACjB,IAAI;;;;;;;;;IA0GM,CAAA"}
@@ -1,20 +1,20 @@
1
- import { defineComponent as f, computed as d, createElementBlock as r, openBlock as n, createElementVNode as e, createVNode as o, withCtx as c, unref as m, createBlock as x, resolveDynamicComponent as v, mergeProps as _ } from "vue";
1
+ import { defineComponent as f, computed as d, createElementBlock as c, openBlock as s, createElementVNode as e, createVNode as o, withCtx as r, unref as m, createBlock as p, resolveDynamicComponent as x, mergeProps as v } from "vue";
2
2
  import { ScalarButton as h } from "@scalar/components";
3
- import { LibraryIcon as b } from "@scalar/icons/library";
4
- import { RouterView as y } from "vue-router";
5
- import w from "../../../components/IconSelector.vue.js";
6
- import g from "./components/LabelInput.vue.js";
7
- import k from "./components/Tabs.vue.js";
8
- const V = { class: "custom-scroll h-full" }, B = {
3
+ import { LibraryIcon as _ } from "@scalar/icons/library";
4
+ import { RouterView as b } from "vue-router";
5
+ import y from "../../../components/IconSelector.vue.js";
6
+ import w from "./components/LabelInput.vue.js";
7
+ import g from "./components/Tabs.vue.js";
8
+ const k = { class: "custom-scroll h-full" }, V = {
9
9
  key: 0,
10
10
  class: "w-full md:mx-auto md:max-w-[720px]"
11
- }, C = ["aria-label"], D = { class: "flex flex-row items-center gap-2" }, N = { class: "group relative ml-1.25" }, S = { class: "px-1.5 py-8" }, I = {
11
+ }, B = ["aria-label"], C = { class: "flex flex-row items-center gap-2" }, D = { class: "group relative ml-1.25" }, N = { class: "px-1.5 py-8" }, S = {
12
12
  key: 1,
13
13
  class: "flex w-full flex-1 items-center justify-center"
14
- }, U = {
14
+ }, I = {
15
15
  name: "DocumentCollection"
16
16
  }, P = /* @__PURE__ */ f({
17
- ...U,
17
+ ...I,
18
18
  props: {
19
19
  documentSlug: {},
20
20
  document: {},
@@ -29,29 +29,29 @@ const V = { class: "custom-scroll h-full" }, B = {
29
29
  activeWorkspace: {},
30
30
  plugins: {}
31
31
  },
32
- setup(p) {
33
- const s = p, u = d(() => s.document?.info?.title || "Untitled Document"), i = d(
34
- () => s.document?.["x-scalar-icon"] || "interface-content-folder"
32
+ setup(n) {
33
+ const a = n, u = d(() => a.document?.info?.title || "Untitled Document"), i = d(
34
+ () => a.document?.["x-scalar-icon"] || "interface-content-folder"
35
35
  );
36
- return (a, t) => (n(), r("div", V, [
37
- a.document ? (n(), r("div", B, [
36
+ return (U, t) => (s(), c("div", k, [
37
+ n.document ? (s(), c("div", V, [
38
38
  e("div", {
39
39
  "aria-label": `title: ${u.value}`,
40
40
  class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
41
41
  }, [
42
- e("div", D, [
43
- o(w, {
42
+ e("div", C, [
43
+ o(y, {
44
44
  modelValue: i.value,
45
45
  placement: "bottom-start",
46
- "onUpdate:modelValue": t[0] || (t[0] = (l) => a.eventBus.emit("document:update:icon", l))
46
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => n.eventBus.emit("document:update:icon", l))
47
47
  }, {
48
- default: c(() => [
48
+ default: r(() => [
49
49
  o(m(h), {
50
50
  class: "hover:bg-b-2 aspect-square h-7 w-7 cursor-pointer rounded border border-transparent p-0 hover:border-inherit",
51
51
  variant: "ghost"
52
52
  }, {
53
- default: c(() => [
54
- o(m(b), {
53
+ default: r(() => [
54
+ o(m(_), {
55
55
  class: "text-c-2 size-5",
56
56
  src: i.value,
57
57
  "stroke-width": "2"
@@ -63,25 +63,25 @@ const V = { class: "custom-scroll h-full" }, B = {
63
63
  _: 1
64
64
  }, 8, ["modelValue"])
65
65
  ]),
66
- e("div", N, [
67
- o(g, {
66
+ e("div", D, [
67
+ o(w, {
68
68
  class: "text-xl font-bold",
69
69
  inputId: "documentName",
70
70
  modelValue: u.value,
71
- "onUpdate:modelValue": t[1] || (t[1] = (l) => a.eventBus.emit("document:update:info", { title: l }))
71
+ "onUpdate:modelValue": t[1] || (t[1] = (l) => n.eventBus.emit("document:update:info", { title: l }))
72
72
  }, null, 8, ["modelValue"])
73
73
  ])
74
- ], 8, C),
75
- o(k, { type: "document" }),
76
- e("div", S, [
77
- o(m(y), null, {
78
- default: c(({ Component: l }) => [
79
- (n(), x(v(l), _(s, { collectionType: "document" }), null, 16))
74
+ ], 8, B),
75
+ o(g, { type: "document" }),
76
+ e("div", N, [
77
+ o(m(b), null, {
78
+ default: r(({ Component: l }) => [
79
+ (s(), p(x(l), v(a, { collectionType: "document" }), null, 16))
80
80
  ]),
81
81
  _: 1
82
82
  })
83
83
  ])
84
- ])) : (n(), r("div", I, [...t[2] || (t[2] = [
84
+ ])) : (s(), c("div", S, [...t[2] || (t[2] = [
85
85
  e("div", { class: "flex h-full flex-col items-center justify-center" }, [
86
86
  e("h1", { class: "text-2xl font-bold" }, "Document not found"),
87
87
  e("p", { class: "text-gray-500" }, " The document you are looking for does not exist. ")
@@ -1,9 +1,9 @@
1
- import { defineComponent as l, createElementBlock as r, openBlock as i, createElementVNode as e, createVNode as t, unref as s, toDisplayString as n, mergeProps as p } from "vue";
1
+ import { defineComponent as a, createElementBlock as l, openBlock as r, createElementVNode as e, createVNode as o, unref as c, toDisplayString as i, mergeProps as n } from "vue";
2
2
  import { ScalarIconGlobe as m } from "@scalar/icons";
3
- import { RouterView as d } from "vue-router";
4
- import u from "./components/Tabs.vue.js";
5
- const _ = { class: "custom-scroll h-full" }, f = { class: "w-full md:mx-auto md:max-w-[720px]" }, x = ["aria-label"], h = { class: "group relative ml-1.25" }, v = { class: "text-c-1 flex h-8 items-center" }, k = { class: "px-1.5 py-8" }, w = {}, B = /* @__PURE__ */ l({
6
- ...w,
3
+ import { RouterView as p } from "vue-router";
4
+ import d from "./components/Tabs.vue.js";
5
+ const u = { class: "custom-scroll h-full" }, _ = { class: "w-full md:mx-auto md:max-w-[720px]" }, f = ["aria-label"], x = { class: "group relative ml-1.25" }, h = { class: "text-c-1 flex h-8 items-center" }, v = { class: "px-1.5 py-8" }, k = {}, B = /* @__PURE__ */ a({
6
+ ...k,
7
7
  __name: "WorkspaceCollection",
8
8
  props: {
9
9
  documentSlug: {},
@@ -19,22 +19,22 @@ const _ = { class: "custom-scroll h-full" }, f = { class: "w-full md:mx-auto md:
19
19
  activeWorkspace: {},
20
20
  plugins: {}
21
21
  },
22
- setup(a) {
23
- const c = a;
24
- return (o, b) => (i(), r("div", _, [
25
- e("div", f, [
22
+ setup(t) {
23
+ const s = t;
24
+ return (w, b) => (r(), l("div", u, [
25
+ e("div", _, [
26
26
  e("div", {
27
- "aria-label": `title: ${o.activeWorkspace.label}`,
27
+ "aria-label": `title: ${t.activeWorkspace.label}`,
28
28
  class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
29
29
  }, [
30
- t(s(m), { class: "text-c-2 size-6" }),
31
- e("div", h, [
32
- e("span", v, n(o.activeWorkspace.label), 1)
30
+ o(c(m), { class: "text-c-2 size-6" }),
31
+ e("div", x, [
32
+ e("span", h, i(t.activeWorkspace.label), 1)
33
33
  ])
34
- ], 8, x),
35
- t(u, { type: "workspace" }),
36
- e("div", k, [
37
- t(s(d), p(c, { collectionType: "workspace" }), null, 16)
34
+ ], 8, f),
35
+ o(d, { type: "workspace" }),
36
+ e("div", v, [
37
+ o(c(p), n(s, { collectionType: "workspace" }), null, 16)
38
38
  ])
39
39
  ])
40
40
  ]));
@@ -1,7 +1,7 @@
1
- import { defineComponent as u, computed as l, createElementBlock as m, openBlock as d, createElementVNode as n, createVNode as r, unref as i, normalizeClass as a } from "vue";
2
- import { ScalarToggle as p } from "@scalar/components";
3
- import v from "../../../blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
4
- const y = { class: "flex flex-col gap-4" }, f = { class: "flex flex-col gap-2" }, h = { class: "flex h-8 items-center justify-between" }, b = /* @__PURE__ */ u({
1
+ import { defineComponent as u, computed as s, createElementBlock as m, openBlock as d, createElementVNode as n, createVNode as c, unref as i, normalizeClass as a } from "vue";
2
+ import { ScalarToggle as v } from "@scalar/components";
3
+ import y from "../../../blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
4
+ const f = { class: "flex flex-col gap-4" }, p = { class: "flex flex-col gap-2" }, h = { class: "flex h-8 items-center justify-between" }, b = /* @__PURE__ */ u({
5
5
  __name: "Authentication",
6
6
  props: {
7
7
  documentSlug: {},
@@ -18,33 +18,33 @@ const y = { class: "flex flex-col gap-4" }, f = { class: "flex flex-col gap-2" }
18
18
  plugins: {},
19
19
  collectionType: {}
20
20
  },
21
- setup(o) {
22
- const s = l(
23
- () => o.document?.["x-scalar-set-operation-security"] ?? !1
24
- ), c = l(
25
- () => o.document?.servers?.find(
26
- ({ url: e }) => e === o.document?.["x-scalar-selected-server"]
21
+ setup(e) {
22
+ const l = s(
23
+ () => e.document?.["x-scalar-set-operation-security"] ?? !1
24
+ ), r = s(
25
+ () => e.document?.servers?.find(
26
+ ({ url: o }) => o === e.document?.["x-scalar-selected-server"]
27
27
  ) ?? null
28
28
  );
29
- return (e, t) => (d(), m("div", y, [
30
- n("div", f, [
29
+ return (o, t) => (d(), m("div", f, [
30
+ n("div", p, [
31
31
  n("div", h, [
32
32
  t[1] || (t[1] = n("h3", { class: "font-bold" }, "Authentication", -1)),
33
- r(i(p), {
33
+ c(i(v), {
34
34
  class: "w-4",
35
- modelValue: s.value,
35
+ modelValue: l.value,
36
36
  "onUpdate:modelValue": t[0] || (t[0] = () => e.eventBus.emit("document:toggle:security"))
37
37
  }, null, 8, ["modelValue"])
38
38
  ]),
39
39
  t[2] || (t[2] = n("p", { class: "pr-6 text-sm" }, " If enabled, all selected authentication will apply to all operations in this document. You can override this by disabling the toggle and authentication will then be applied at the operation level. ", -1))
40
40
  ]),
41
41
  n("div", {
42
- class: a(!s.value && "cursor-not-allowed")
42
+ class: a(!l.value && "cursor-not-allowed")
43
43
  }, [
44
- r(i(v), {
44
+ c(i(y), {
45
45
  class: a([
46
46
  "scalar-collection-auth !border-none",
47
- !s.value && "pointer-events-none opacity-50 mix-blend-luminosity"
47
+ !l.value && "pointer-events-none opacity-50 mix-blend-luminosity"
48
48
  ]),
49
49
  environment: e.environment,
50
50
  eventBus: e.eventBus,
@@ -54,7 +54,7 @@ const y = { class: "flex flex-col gap-4" }, f = { class: "flex flex-col gap-2" }
54
54
  securityRequirements: e.document?.security ?? [],
55
55
  securitySchemes: e.securitySchemes,
56
56
  selectedSecurity: e.document?.["x-scalar-selected-security"],
57
- server: c.value,
57
+ server: r.value,
58
58
  title: "Authentication"
59
59
  }, null, 8, ["class", "environment", "eventBus", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "server"])
60
60
  ], 2)
@@ -1,6 +1,6 @@
1
- import { defineComponent as c, computed as n, createElementBlock as l, openBlock as a, createStaticVNode as i, createVNode as r, unref as u } from "vue";
2
- import d from "../../global-cookies/components/CookiesTable.vue.js";
3
- const p = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ c({
1
+ import { defineComponent as s, computed as c, createElementBlock as n, openBlock as l, createStaticVNode as a, createVNode as i, unref as r } from "vue";
2
+ import u from "../../global-cookies/components/CookiesTable.vue.js";
3
+ const d = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ s({
4
4
  __name: "Cookies",
5
5
  props: {
6
6
  documentSlug: {},
@@ -18,13 +18,13 @@ const p = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ c({
18
18
  collectionType: {}
19
19
  },
20
20
  setup(e) {
21
- const s = n(() => (e.collectionType === "document" ? e.document["x-scalar-cookies"] : e.workspaceStore.workspace["x-scalar-cookies"]) ?? []);
22
- return (o, t) => (a(), l("div", p, [
23
- t[0] || (t[0] = i('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Cookies</h3></div><p class="text-c-2 mb-4 text-sm"> Manage your collection&#39;s cookies here.<br>Cookies allow you to store and send key-value data with your API requests—often used for things like session tokens, authentication, and saving user preferences.<br></p></div></div>', 1)),
24
- r(u(d), {
25
- cookies: s.value,
26
- eventBus: o.eventBus,
27
- collectionType: o.collectionType
21
+ const t = c(() => (e.collectionType === "document" ? e.document["x-scalar-cookies"] : e.workspaceStore.workspace["x-scalar-cookies"]) ?? []);
22
+ return (m, o) => (l(), n("div", d, [
23
+ o[0] || (o[0] = a('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Cookies</h3></div><p class="text-c-2 mb-4 text-sm"> Manage your collection&#39;s cookies here.<br>Cookies allow you to store and send key-value data with your API requests—often used for things like session tokens, authentication, and saving user preferences.<br></p></div></div>', 1)),
24
+ i(r(u), {
25
+ cookies: t.value,
26
+ eventBus: e.eventBus,
27
+ collectionType: e.collectionType
28
28
  }, null, 8, ["cookies", "eventBus", "collectionType"])
29
29
  ]));
30
30
  }
@@ -1,6 +1,6 @@
1
- import { defineComponent as s, computed as c, createElementBlock as l, openBlock as a, createStaticVNode as i, createVNode as r, unref as m } from "vue";
2
- import v from "../../environments/EnvironmentsList.vue.js";
3
- const d = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ s({
1
+ import { defineComponent as o, computed as c, createElementBlock as s, openBlock as l, createStaticVNode as a, createVNode as i, unref as r } from "vue";
2
+ import m from "../../environments/EnvironmentsList.vue.js";
3
+ const v = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ o({
4
4
  __name: "Environment",
5
5
  props: {
6
6
  documentSlug: {},
@@ -18,15 +18,15 @@ const d = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ s({
18
18
  collectionType: {}
19
19
  },
20
20
  setup(e) {
21
- const o = c(
21
+ const n = c(
22
22
  () => (e.collectionType === "document" ? e.document["x-scalar-environments"] : e.workspaceStore.workspace["x-scalar-environments"]) ?? {}
23
23
  );
24
- return (t, n) => (a(), l("div", d, [
25
- n[0] || (n[0] = i('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Environment Variables</h3></div><p class="text-c-2 mb-4 text-sm"> Set environment variables at your collection level. Use <code class="font-code text-c-2"> {{ variable }} </code> to add / search among the selected environment&#39;s variables in your request inputs. </p></div></div>', 1)),
26
- r(m(v), {
27
- collectionType: t.collectionType,
28
- environments: o.value,
29
- eventBus: t.eventBus
24
+ return (d, t) => (l(), s("div", v, [
25
+ t[0] || (t[0] = a('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Environment Variables</h3></div><p class="text-c-2 mb-4 text-sm"> Set environment variables at your collection level. Use <code class="font-code text-c-2"> {{ variable }} </code> to add / search among the selected environment&#39;s variables in your request inputs. </p></div></div>', 1)),
26
+ i(r(m), {
27
+ collectionType: e.collectionType,
28
+ environments: n.value,
29
+ eventBus: e.eventBus
30
30
  }, null, 8, ["collectionType", "environments", "eventBus"])
31
31
  ]));
32
32
  }
@@ -1,10 +1,10 @@
1
- import { defineComponent as f, useId as k, createBlock as n, openBlock as l, createSlots as s, withCtx as t, createElementVNode as a, createCommentVNode as y, createElementBlock as i, Fragment as _, renderList as h, createVNode as m, unref as r, toDisplayString as c, renderSlot as b } from "vue";
2
- import { ScalarIcon as g } from "@scalar/components";
3
- import v from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
- import V from "../../../components/data-table/DataTable.vue.js";
1
+ import { defineComponent as p, useId as y, createBlock as o, openBlock as n, createSlots as c, withCtx as t, createElementVNode as a, createCommentVNode as h, createElementBlock as s, Fragment as b, renderList as g, createVNode as m, unref as r, toDisplayString as u, renderSlot as v } from "vue";
2
+ import { ScalarIcon as V } from "@scalar/components";
3
+ import x from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
+ import _ from "../../../components/data-table/DataTable.vue.js";
5
5
  import S from "../../../components/data-table/DataTableInput.vue.js";
6
6
  import U from "../../../components/data-table/DataTableRow.vue.js";
7
- const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"], C = { class: "centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5" }, L = /* @__PURE__ */ f({
7
+ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"], C = { class: "centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5" }, j = /* @__PURE__ */ p({
8
8
  __name: "Form",
9
9
  props: {
10
10
  title: {},
@@ -13,38 +13,38 @@ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"]
13
13
  onUpdate: { type: Function },
14
14
  environment: {}
15
15
  },
16
- setup(D) {
17
- const d = k();
18
- return (e, F) => (l(), n(v, { class: "last:rounded-b-lg" }, s({
16
+ setup(e) {
17
+ const d = y();
18
+ return (i, D) => (n(), o(x, { class: "last:rounded-b-lg" }, c({
19
19
  default: t(() => [
20
20
  a("div", w, [
21
- Object.keys(e.data).length > 0 ? (l(), n(V, {
21
+ Object.keys(e.data).length > 0 ? (n(), o(_, {
22
22
  key: 0,
23
23
  class: "rounded-b-lg",
24
24
  columns: [""]
25
25
  }, {
26
26
  default: t(() => [
27
- (l(!0), i(_, null, h(e.options, (o, p) => (l(), n(U, { key: p }, {
27
+ (n(!0), s(b, null, g(e.options, (l, f) => (n(), o(U, { key: f }, {
28
28
  default: t(() => [
29
29
  m(S, {
30
30
  id: r(d),
31
31
  class: "pr-9",
32
32
  environment: e.environment,
33
33
  lineWrapping: "",
34
- modelValue: e.data[o.key] ?? "",
35
- placeholder: o.placeholder,
36
- "onUpdate:modelValue": (u) => e.onUpdate(o.key, u)
37
- }, s({
34
+ modelValue: e.data[l.key] ?? "",
35
+ placeholder: l.placeholder,
36
+ "onUpdate:modelValue": (k) => e.onUpdate(l.key, k)
37
+ }, c({
38
38
  default: t(() => [
39
- a("label", { for: r(d) }, c(o.label), 9, B)
39
+ a("label", { for: r(d) }, u(l.label), 9, B)
40
40
  ]),
41
41
  _: 2
42
42
  }, [
43
- o.key === "description" ? {
43
+ l.key === "description" ? {
44
44
  name: "icon",
45
45
  fn: t(() => [
46
46
  a("div", C, [
47
- m(r(g), {
47
+ m(r(V), {
48
48
  icon: "Markdown",
49
49
  size: "lg"
50
50
  })
@@ -58,15 +58,15 @@ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"]
58
58
  }, 1024))), 128))
59
59
  ]),
60
60
  _: 1
61
- })) : y("", !0)
61
+ })) : h("", !0)
62
62
  ])
63
63
  ]),
64
64
  _: 2
65
65
  }, [
66
- e.title || e.$slots.title ? {
66
+ e.title || i.$slots.title ? {
67
67
  name: "title",
68
68
  fn: t(() => [
69
- e.title ? (l(), i("span", $, c(e.title), 1)) : b(e.$slots, "title", { key: 1 })
69
+ e.title ? (n(), s("span", $, u(e.title), 1)) : v(i.$slots, "title", { key: 1 })
70
70
  ]),
71
71
  key: "0"
72
72
  } : void 0
@@ -74,5 +74,5 @@ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"]
74
74
  }
75
75
  });
76
76
  export {
77
- L as default
77
+ j as default
78
78
  };