@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,9 +1,9 @@
1
- import { defineComponent as K, computed as y, ref as Q, watch as L, createBlock as b, openBlock as f, withCtx as d, createVNode as s, createCommentVNode as Z, unref as c, createElementVNode as g, toDisplayString as k, createElementBlock as V, Fragment as I, createTextVNode as M, nextTick as _ } from "vue";
1
+ import { defineComponent as K, computed as y, ref as Q, watch as L, createBlock as b, openBlock as f, withCtx as d, createVNode as u, createCommentVNode as Z, unref as c, createElementVNode as h, toDisplayString as k, createElementBlock as V, Fragment as I, createTextVNode as M, nextTick as _ } from "vue";
2
2
  import { ScalarListbox as W, ScalarButton as w, ScalarIcon as F } from "@scalar/components";
3
3
  import { requestExampleParametersSchema as z } from "@scalar/oas-utils/entities/spec";
4
4
  import { canMethodHaveBody as ee } from "@scalar/oas-utils/helpers";
5
- import ae from "../../../components/CodeInput/CodeInput.vue.js";
6
- import te from "../../../components/DataTable/DataTable.vue.js";
5
+ import te from "../../../components/CodeInput/CodeInput.vue.js";
6
+ import ae from "../../../components/DataTable/DataTable.vue.js";
7
7
  import ne from "../../../components/DataTable/DataTableHeader.vue.js";
8
8
  import R from "../../../components/DataTable/DataTableRow.vue.js";
9
9
  import oe from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
@@ -26,14 +26,14 @@ const ie = {
26
26
  workspace: {},
27
27
  title: {}
28
28
  },
29
- setup(l) {
29
+ setup(a) {
30
30
  const { requestExampleMutators: i } = le(), $ = {
31
31
  json: "json",
32
32
  xml: "xml",
33
33
  yaml: "yaml",
34
34
  edn: "edn",
35
35
  other: "html"
36
- }, h = Object.entries({
36
+ }, x = Object.entries({
37
37
  multipartForm: "Multipart Form",
38
38
  formUrlEncoded: "Form URL Encoded",
39
39
  binaryFile: "Binary File",
@@ -43,78 +43,78 @@ const ie = {
43
43
  edn: "EDN",
44
44
  other: "Other",
45
45
  none: "None"
46
- }).map(([e, a]) => ({
46
+ }).map(([e, t]) => ({
47
47
  id: e,
48
- label: a
48
+ label: t
49
49
  })), B = y(() => {
50
- const { activeBody: e, formData: a, raw: t } = l.example.body;
51
- return e === "formData" ? a?.encoding === "urlencoded" ? "formUrlEncoded" : "multipartForm" : e === "binary" ? "binaryFile" : e === "raw" && t?.encoding ? t.encoding === "html" || t.encoding === "text" ? "other" : t.encoding : Object.keys(l.operation.requestBody?.content || {})[0] || "none";
52
- }), u = y({
53
- get: () => h.find(
50
+ const { activeBody: e, formData: t, raw: n } = a.example.body;
51
+ return e === "formData" ? t?.encoding === "urlencoded" ? "formUrlEncoded" : "multipartForm" : e === "binary" ? "binaryFile" : e === "raw" && n?.encoding ? n.encoding === "html" || n.encoding === "text" ? "other" : n.encoding : Object.keys(a.operation.requestBody?.content || {})[0] || "none";
52
+ }), s = y({
53
+ get: () => x.find(
54
54
  (e) => e.id === B.value
55
- ) ?? h[h.length - 1] ?? h[0],
55
+ ) ?? x[x.length - 1] ?? x[0],
56
56
  set: (e) => {
57
57
  e?.id && N(e.id);
58
58
  }
59
- }), x = Q(null), H = y(() => {
60
- const e = u.value?.id;
59
+ }), g = Q(null), H = y(() => {
60
+ const e = s.value?.id;
61
61
  return $[e] ?? "plaintext";
62
62
  }), C = (e) => {
63
- const a = m.value;
64
- if (a.length > e) {
65
- const t = [...a];
66
- t.splice(e, 1), i.edit(
67
- l.example.uid,
63
+ const t = m.value;
64
+ if (t.length > e) {
65
+ const n = [...t];
66
+ n.splice(e, 1), i.edit(
67
+ a.example.uid,
68
68
  "body.formData.value",
69
- t
69
+ n
70
70
  );
71
71
  }
72
- }, U = (e, a, t) => {
73
- const o = m.value;
74
- if (o.length > e) {
75
- const n = [...o];
76
- n[e] = {
77
- ...n[e],
78
- value: n[e]?.value || "",
79
- key: n[e]?.key || "",
80
- enabled: n[e]?.enabled ?? !1,
81
- [a]: t || ""
82
- }, (n[e]?.key !== "" || n[e]?.value !== "") && (n[e].enabled = !0), n[e]?.key === "" && n[e]?.value === "" && n.splice(e, 1), i.edit(
83
- l.example.uid,
72
+ }, U = (e, t, n) => {
73
+ const l = m.value;
74
+ if (l.length > e) {
75
+ const o = [...l];
76
+ o[e] = {
77
+ ...o[e],
78
+ value: o[e]?.value || "",
79
+ key: o[e]?.key || "",
80
+ enabled: o[e]?.enabled ?? !1,
81
+ [t]: n || ""
82
+ }, (o[e]?.key !== "" || o[e]?.value !== "") && (o[e].enabled = !0), o[e]?.key === "" && o[e]?.value === "" && o.splice(e, 1), i.edit(
83
+ a.example.uid,
84
84
  "body.formData.value",
85
- n
85
+ o
86
86
  );
87
87
  } else {
88
- const n = [z.parse({ [a]: t })];
89
- i.edit(l.example.uid, "body.formData.value", n), _(() => {
90
- if (!x.value)
88
+ const o = [z.parse({ [t]: n })];
89
+ i.edit(a.example.uid, "body.formData.value", o), _(() => {
90
+ if (!g.value)
91
91
  return;
92
- x.value.querySelectorAll("input")[a === "key" ? 0 : 1]?.focus();
92
+ g.value.querySelectorAll("input")[t === "key" ? 0 : 1]?.focus();
93
93
  });
94
94
  }
95
- e === o.length - 1 && j();
96
- }, m = y(() => l.example.body.formData?.value ?? []), D = () => {
95
+ e === l.length - 1 && j();
96
+ }, m = y(() => a.example.body.formData?.value ?? []), D = () => {
97
97
  const e = m.value[m.value.length - 1];
98
98
  (!e || e.key !== "" || e.value !== "") && j();
99
99
  }, j = () => {
100
100
  const e = z.parse({
101
101
  enabled: !1
102
- }), a = [...m.value, e];
103
- l.example.body.formData ? i.edit(l.example.uid, "body.formData.value", a) : i.edit(l.example.uid, "body.formData", {
104
- value: a,
102
+ }), t = [...m.value, e];
103
+ a.example.body.formData ? i.edit(a.example.uid, "body.formData.value", t) : i.edit(a.example.uid, "body.formData", {
104
+ value: t,
105
105
  encoding: "form-data"
106
106
  });
107
- }, E = (e, a) => {
108
- const t = m.value;
109
- if (t.length > e) {
110
- const o = [...t];
111
- o[e] && (o[e].enabled = a), i.edit(
112
- l.example.uid,
107
+ }, E = (e, t) => {
108
+ const n = m.value;
109
+ if (n.length > e) {
110
+ const l = [...n];
111
+ l[e] && (l[e].enabled = t), i.edit(
112
+ a.example.uid,
113
113
  "body.formData.value",
114
- o
114
+ l
115
115
  );
116
116
  }
117
- }, P = (e) => i.edit(l.example.uid, "body.raw.value", e), O = (e) => {
117
+ }, P = (e) => i.edit(a.example.uid, "body.raw.value", e), O = (e) => {
118
118
  if (e === "multipartForm")
119
119
  return {
120
120
  activeBody: "formData",
@@ -137,7 +137,7 @@ const ie = {
137
137
  return {
138
138
  activeBody: "raw",
139
139
  encoding: "json",
140
- header: Object.keys(l.operation.requestBody?.content ?? {}).find((o) => o.includes("json") || o.endsWith("+json")) || "application/json"
140
+ header: Object.keys(a.operation.requestBody?.content ?? {}).find((l) => l.includes("json") || l.endsWith("+json")) || "application/json"
141
141
  };
142
142
  if (e === "xml")
143
143
  return {
@@ -158,62 +158,62 @@ const ie = {
158
158
  header: "application/edn"
159
159
  };
160
160
  if (e === "other") {
161
- const t = Object.keys(l.operation.requestBody?.content ?? {}).find((o) => o.startsWith("text/"));
161
+ const n = Object.keys(a.operation.requestBody?.content ?? {}).find((l) => l.startsWith("text/"));
162
162
  return {
163
163
  activeBody: "raw",
164
- encoding: t ? "text" : "html",
165
- header: t ?? "application/html"
164
+ encoding: n ? "text" : "html",
165
+ header: n ?? "application/html"
166
166
  };
167
167
  }
168
168
  return { activeBody: "raw", encoding: void 0, header: void 0 };
169
169
  }, N = (e) => {
170
- const { activeBody: a, encoding: t, header: o } = O(e);
171
- if (i.edit(l.example.uid, "body.activeBody", a), t && a === "raw")
172
- i.edit(l.example.uid, "body.raw", {
173
- encoding: t,
174
- value: l.example.body.raw?.value ?? ""
170
+ const { activeBody: t, encoding: n, header: l } = O(e);
171
+ if (i.edit(a.example.uid, "body.activeBody", t), n && t === "raw")
172
+ i.edit(a.example.uid, "body.raw", {
173
+ encoding: n,
174
+ value: a.example.body.raw?.value ?? ""
175
175
  });
176
- else if (t && a === "formData")
177
- i.edit(l.example.uid, "body.formData", {
178
- encoding: t,
179
- value: l.example.body.formData?.value ?? []
176
+ else if (n && t === "formData")
177
+ i.edit(a.example.uid, "body.formData", {
178
+ encoding: n,
179
+ value: a.example.body.formData?.value ?? []
180
180
  });
181
- else if (!t && a !== "binary") {
182
- const { raw: p, ...G } = l.example.body;
183
- i.edit(l.example.uid, "body", G);
181
+ else if (!n && t !== "binary") {
182
+ const { raw: v, ...G } = a.example.body;
183
+ i.edit(a.example.uid, "body", G);
184
184
  }
185
- const n = [...l.example.parameters.headers], r = n.findIndex(
186
- (p) => p.key.toLowerCase() === "content-type"
185
+ const o = [...a.example.parameters.headers], r = o.findIndex(
186
+ (v) => v.key.toLowerCase() === "content-type"
187
187
  );
188
188
  if (r >= 0)
189
- o && n[r] ? n[r].value = o : n[r] && (a !== "raw" || e === "none") && n.splice(r, 1);
190
- else if (o) {
191
- const p = n[n.length - 1];
192
- p && p.key === "" && p.value === "" ? n.splice(n.length - 1, 0, {
189
+ l && o[r] ? o[r].value = l : o[r] && (t !== "raw" || e === "none") && o.splice(r, 1);
190
+ else if (l) {
191
+ const v = o[o.length - 1];
192
+ v && v.key === "" && v.value === "" ? o.splice(o.length - 1, 0, {
193
193
  key: "Content-Type",
194
- value: o,
194
+ value: l,
195
195
  enabled: !0
196
- }) : n.push({
196
+ }) : o.push({
197
197
  key: "Content-Type",
198
- value: o,
198
+ value: l,
199
199
  enabled: !0
200
200
  });
201
201
  }
202
- i.edit(l.example.uid, "parameters.headers", n);
202
+ i.edit(a.example.uid, "parameters.headers", o);
203
203
  }, S = (e) => {
204
- const { open: a } = A({
205
- onChange: (t) => {
206
- const o = t?.[0];
207
- if (o) {
204
+ const { open: t } = A({
205
+ onChange: (n) => {
206
+ const l = n?.[0];
207
+ if (l) {
208
208
  const r = [...m.value];
209
209
  r[e] = {
210
210
  ...r[e],
211
- file: o,
212
- value: r[e]?.value || o.name,
213
- key: r[e]?.key || o.name,
211
+ file: l,
212
+ value: r[e]?.value || l.name,
213
+ key: r[e]?.key || l.name,
214
214
  enabled: !0
215
215
  }, i.edit(
216
- l.example.uid,
216
+ a.example.uid,
217
217
  "body.formData.value",
218
218
  r
219
219
  ), D();
@@ -222,17 +222,17 @@ const ie = {
222
222
  multiple: !1,
223
223
  accept: "*/*"
224
224
  });
225
- a();
226
- }, X = () => i.edit(l.example.uid, "body.binary", void 0);
225
+ t();
226
+ }, X = () => i.edit(a.example.uid, "body.binary", void 0);
227
227
  function q(e) {
228
- const a = m.value, t = [...a], o = a[e], n = o?.file;
229
- a.length > 1 && (!o?.key && !o?.value || n && o?.key === n.name && o?.value === n.name) ? t.splice(e, 1) : t[e] && (t[e].file = void 0), i.edit(l.example.uid, "body.formData.value", t);
228
+ const t = m.value, n = [...t], l = t[e], o = l?.file;
229
+ t.length > 1 && (!l?.key && !l?.value || o && l?.key === o.name && l?.value === o.name) ? n.splice(e, 1) : n[e] && (n[e].file = void 0), i.edit(a.example.uid, "body.formData.value", n);
230
230
  }
231
231
  function Y() {
232
232
  const { open: e } = A({
233
- onChange: (a) => {
234
- const t = a?.[0];
235
- t && i.edit(l.example.uid, "body.binary", t);
233
+ onChange: (t) => {
234
+ const n = t?.[0];
235
+ n && i.edit(a.example.uid, "body.binary", n);
236
236
  },
237
237
  multiple: !1,
238
238
  accept: "*/*"
@@ -240,78 +240,78 @@ const ie = {
240
240
  e();
241
241
  }
242
242
  L(
243
- u,
243
+ s,
244
244
  (e) => {
245
245
  ["multipartForm", "formUrlEncoded"].includes(e?.id || "") && D();
246
246
  },
247
247
  { immediate: !0 }
248
248
  ), L(
249
- () => l.example.uid,
249
+ () => a.example.uid,
250
250
  () => {
251
- l.operation.method && ee(l.operation.method) && N(B.value), ["multipartForm", "formUrlEncoded"].includes(
251
+ a.operation.method && ee(a.operation.method) && N(B.value), ["multipartForm", "formUrlEncoded"].includes(
252
252
  B.value
253
253
  ) && D();
254
254
  },
255
255
  { immediate: !0 }
256
256
  );
257
- const v = y(() => {
258
- const e = u.value?.id, { header: a } = O(e), t = l.operation.requestBody?.content || {}, o = a ? t[a]?.examples || {} : {};
259
- return Object.entries(o).map(([n, r]) => ({
260
- id: n,
261
- label: n,
257
+ const p = y(() => {
258
+ const e = s.value?.id, { header: t } = O(e), n = a.operation.requestBody?.content || {}, l = t ? n[t]?.examples || {} : {};
259
+ return Object.entries(l).map(([o, r]) => ({
260
+ id: o,
261
+ label: o,
262
262
  value: r
263
263
  }));
264
264
  }), T = y({
265
265
  get: () => {
266
- const e = l.example.body.raw?.value ?? "{}";
266
+ const e = a.example.body.raw?.value ?? "{}";
267
267
  try {
268
- const a = JSON.parse(e);
269
- return v.value.find((o) => {
270
- const n = o.value;
271
- return JSON.stringify(n.value) === JSON.stringify(a);
272
- }) ?? v.value[0];
268
+ const t = JSON.parse(e);
269
+ return p.value.find((l) => {
270
+ const o = l.value;
271
+ return JSON.stringify(o.value) === JSON.stringify(t);
272
+ }) ?? p.value[0];
273
273
  } catch {
274
- return v.value[0];
274
+ return p.value[0];
275
275
  }
276
276
  },
277
277
  set: (e) => {
278
278
  if (e?.id) {
279
- const a = v.value.find((t) => t.id === e.id);
280
- if (a) {
281
- const t = a.value;
282
- P(JSON.stringify(t.value, null, 2));
279
+ const t = p.value.find((n) => n.id === e.id);
280
+ if (t) {
281
+ const n = t.value;
282
+ P(JSON.stringify(n.value, null, 2));
283
283
  }
284
284
  }
285
285
  }
286
286
  });
287
- return (e, a) => (f(), b(oe, null, {
287
+ return (e, t) => (f(), b(oe, null, {
288
288
  title: d(() => [
289
- M(k(e.title), 1)
289
+ M(k(a.title), 1)
290
290
  ]),
291
291
  default: d(() => [
292
- s(te, {
292
+ u(ae, {
293
293
  columns: [""],
294
294
  presentational: ""
295
295
  }, {
296
296
  default: d(() => [
297
- s(R, null, {
297
+ u(R, null, {
298
298
  default: d(() => [
299
- s(ne, { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between !p-0" }, {
299
+ u(ne, { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between !p-0" }, {
300
300
  default: d(() => [
301
- s(c(W), {
302
- modelValue: u.value,
303
- "onUpdate:modelValue": a[0] || (a[0] = (t) => u.value = t),
304
- options: c(h),
301
+ u(c(W), {
302
+ modelValue: s.value,
303
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => s.value = n),
304
+ options: c(x),
305
305
  teleport: ""
306
306
  }, {
307
307
  default: d(() => [
308
- s(c(w), {
308
+ u(c(w), {
309
309
  class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-3 font-normal",
310
310
  variant: "ghost"
311
311
  }, {
312
312
  default: d(() => [
313
- g("span", null, k(u.value?.label), 1),
314
- s(c(F), {
313
+ h("span", null, k(s.value?.label), 1),
314
+ u(c(F), {
315
315
  icon: "ChevronDown",
316
316
  size: "md"
317
317
  })
@@ -321,23 +321,23 @@ const ie = {
321
321
  ]),
322
322
  _: 1
323
323
  }, 8, ["modelValue", "options"]),
324
- v.value.length > 0 ? (f(), b(c(W), {
324
+ p.value.length > 0 ? (f(), b(c(W), {
325
325
  key: 0,
326
326
  modelValue: T.value,
327
- "onUpdate:modelValue": a[1] || (a[1] = (t) => T.value = t),
328
- options: v.value,
327
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => T.value = n),
328
+ options: p.value,
329
329
  side: "left",
330
330
  teleport: ""
331
331
  }, {
332
332
  default: d(() => [
333
- s(c(w), {
333
+ u(c(w), {
334
334
  class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-2 font-normal",
335
335
  fullWidth: "",
336
336
  variant: "ghost"
337
337
  }, {
338
338
  default: d(() => [
339
- g("span", null, k(T.value?.label), 1),
340
- s(c(F), {
339
+ h("span", null, k(T.value?.label), 1),
340
+ u(c(F), {
341
341
  icon: "ChevronDown",
342
342
  size: "md"
343
343
  })
@@ -353,20 +353,20 @@ const ie = {
353
353
  ]),
354
354
  _: 1
355
355
  }),
356
- s(R, null, {
356
+ u(R, null, {
357
357
  default: d(() => [
358
- u.value?.id === "none" ? (f(), V("div", ie, [...a[2] || (a[2] = [
359
- g("span", null, "No Body", -1)
360
- ])])) : u.value?.id === "binaryFile" ? (f(), V("div", re, [
361
- e.example.body.binary ? (f(), V(I, { key: 0 }, [
362
- g("span", de, k(e.example.body.binary.name), 1),
363
- s(c(w), {
358
+ s.value?.id === "none" ? (f(), V("div", ie, [...t[2] || (t[2] = [
359
+ h("span", null, "No Body", -1)
360
+ ])])) : s.value?.id === "binaryFile" ? (f(), V("div", re, [
361
+ a.example.body.binary ? (f(), V(I, { key: 0 }, [
362
+ h("span", de, k(a.example.body.binary.name), 1),
363
+ u(c(w), {
364
364
  class: "bg-b-2 hover:bg-b-3 text-c-2 ml-1 border-0 shadow-none",
365
365
  size: "sm",
366
366
  variant: "outlined",
367
367
  onClick: X
368
368
  }, {
369
- default: d(() => [...a[3] || (a[3] = [
369
+ default: d(() => [...t[3] || (t[3] = [
370
370
  M(" Delete ", -1)
371
371
  ])]),
372
372
  _: 1
@@ -379,8 +379,8 @@ const ie = {
379
379
  onClick: Y
380
380
  }, {
381
381
  default: d(() => [
382
- a[4] || (a[4] = g("span", null, "Upload File", -1)),
383
- s(c(F), {
382
+ t[4] || (t[4] = h("span", null, "Upload File", -1)),
383
+ u(c(F), {
384
384
  class: "ml-1",
385
385
  icon: "Upload",
386
386
  size: "xs",
@@ -389,55 +389,55 @@ const ie = {
389
389
  ]),
390
390
  _: 1
391
391
  }))
392
- ])) : u.value?.id == "multipartForm" ? (f(), b(J, {
392
+ ])) : s.value?.id == "multipartForm" ? (f(), b(J, {
393
393
  key: 2,
394
394
  ref_key: "tableWrapperRef",
395
- ref: x,
395
+ ref: g,
396
396
  class: "!m-0 rounded-t-none border-t-0 border-r-0 border-b-0 border-l-0 shadow-none",
397
397
  columns: ["32px", "", "", "104px"],
398
- envVariables: e.envVariables,
399
- environment: e.environment,
398
+ envVariables: a.envVariables,
399
+ environment: a.environment,
400
400
  items: m.value,
401
401
  showUploadButton: "",
402
- workspace: e.workspace,
402
+ workspace: a.workspace,
403
403
  onDeleteRow: C,
404
404
  onRemoveFile: q,
405
405
  onToggleRow: E,
406
406
  onUpdateRow: U,
407
407
  onUploadFile: S
408
- }, null, 8, ["envVariables", "environment", "items", "workspace"])) : u.value?.id == "formUrlEncoded" ? (f(), b(J, {
408
+ }, null, 8, ["envVariables", "environment", "items", "workspace"])) : s.value?.id == "formUrlEncoded" ? (f(), b(J, {
409
409
  key: 3,
410
410
  ref_key: "tableWrapperRef",
411
- ref: x,
411
+ ref: g,
412
412
  class: "!m-0 rounded-t-none border-t-0 border-r-0 border-b-0 border-l-0 shadow-none",
413
413
  columns: ["32px", "", "", "104px"],
414
- envVariables: e.envVariables,
415
- environment: e.environment,
414
+ envVariables: a.envVariables,
415
+ environment: a.environment,
416
416
  items: m.value,
417
417
  showUploadButton: "",
418
- workspace: e.workspace,
418
+ workspace: a.workspace,
419
419
  onDeleteRow: C,
420
420
  onRemoveFile: q,
421
421
  onToggleRow: E,
422
422
  onUpdateRow: U,
423
423
  onUploadFile: S
424
- }, null, 8, ["envVariables", "environment", "items", "workspace"])) : (f(), b(ae, {
424
+ }, null, 8, ["envVariables", "environment", "items", "workspace"])) : (f(), b(te, {
425
425
  key: 4,
426
426
  class: "border-t px-3",
427
427
  content: "",
428
- envVariables: e.envVariables,
429
- environment: e.environment,
428
+ envVariables: a.envVariables,
429
+ environment: a.environment,
430
430
  language: H.value,
431
431
  lineNumbers: "",
432
432
  lint: "",
433
- modelValue: e.example.body?.raw?.value ?? "",
434
- workspace: e.workspace,
433
+ modelValue: a.example.body?.raw?.value ?? "",
434
+ workspace: a.workspace,
435
435
  "onUpdate:modelValue": P
436
436
  }, null, 8, ["envVariables", "environment", "language", "modelValue", "workspace"]))
437
437
  ]),
438
438
  _: 1
439
439
  }),
440
- s(R)
440
+ u(R)
441
441
  ]),
442
442
  _: 1
443
443
  })