@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,21 +1,21 @@
1
- import { defineComponent as D, computed as v, useId as g, ref as M, watch as S, createBlock as d, openBlock as r, withCtx as c, createElementVNode as y, withDirectives as s, createCommentVNode as k, createElementBlock as f, createVNode as i, unref as l, vShow as m, Fragment as K, renderList as L, resolveDynamicComponent as Q, toDisplayString as $ } from "vue";
2
- import { ScalarErrorBoundary as C } from "@scalar/components";
3
- import { canMethodHaveBody as b, isDefined as j, REGEX as R } from "@scalar/oas-utils/helpers";
4
- import F from "../../../components/SectionFilter.vue.js";
5
- import T from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
6
- import { matchesDomain as W } from "../../../libs/send-request/set-request-cookies.js";
7
- import z from "./RequestBody.vue.js";
8
- import w from "./RequestParams.vue.js";
9
- import G from "./RequestPathParams.vue.js";
10
- import X from "./RequestAuth/RequestAuth.vue.js";
11
- import J from "./RequestCodeExample.vue.js";
12
- import { usePluginManager as Y } from "../../../plugins/hooks/usePluginManager.js";
13
- import { useWorkspace as Z } from "../../../store/store.js";
14
- import { useLayout as x } from "../../../hooks/useLayout.js";
15
- const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, ee = ["for"], ae = ["id", "placeholder", "value"], oe = {
1
+ import { defineComponent as U, computed as v, useId as q, ref as D, watch as g, createBlock as d, openBlock as n, withCtx as f, createElementVNode as k, withDirectives as s, createCommentVNode as b, createElementBlock as h, createVNode as i, unref as l, vShow as m, Fragment as M, renderList as K, resolveDynamicComponent as L, toDisplayString as Q } from "vue";
2
+ import { ScalarErrorBoundary as S } from "@scalar/components";
3
+ import { canMethodHaveBody as p, isDefined as $, REGEX as C } from "@scalar/oas-utils/helpers";
4
+ import j from "../../../components/SectionFilter.vue.js";
5
+ import F from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
6
+ import { matchesDomain as T } from "../../../libs/send-request/set-request-cookies.js";
7
+ import W from "./RequestBody.vue.js";
8
+ import x from "./RequestParams.vue.js";
9
+ import z from "./RequestPathParams.vue.js";
10
+ import G from "./RequestAuth/RequestAuth.vue.js";
11
+ import X from "./RequestCodeExample.vue.js";
12
+ import { usePluginManager as J } from "../../../plugins/hooks/usePluginManager.js";
13
+ import { useWorkspace as Y } from "../../../store/store.js";
14
+ import { useLayout as Z } from "../../../hooks/useLayout.js";
15
+ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, ee = ["for"], ae = ["id", "placeholder", "value"], te = {
16
16
  key: 2,
17
17
  class: "text-c-1 flex h-8 items-center"
18
- }, le = ["id", "role"], be = /* @__PURE__ */ D({
18
+ }, le = ["id", "role"], pe = /* @__PURE__ */ U({
19
19
  __name: "RequestSection",
20
20
  props: {
21
21
  collection: {},
@@ -28,8 +28,8 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
28
28
  server: {},
29
29
  workspace: {}
30
30
  },
31
- setup(o) {
32
- const O = [
31
+ setup(e) {
32
+ const R = [
33
33
  "Auth",
34
34
  "Path Parameters",
35
35
  "Cookies",
@@ -37,80 +37,80 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
37
37
  "Query",
38
38
  "Body"
39
39
  // 'Scripts',
40
- ], { requestMutators: P, cookies: B, securitySchemes: V } = Z(), { layout: u } = x(), A = v(() => {
41
- const e = /* @__PURE__ */ new Set(["All", ...O]);
42
- return o.example.parameters.path.length || e.delete("Path Parameters"), b(o.operation.method ?? "get") || e.delete("Body"), h.value && e.delete("Auth"), [...e];
43
- }), n = v(
40
+ ], { requestMutators: w, cookies: O, securitySchemes: P } = Y(), { layout: u } = Z(), V = v(() => {
41
+ const t = /* @__PURE__ */ new Set(["All", ...R]);
42
+ return e.example.parameters.path.length || t.delete("Path Parameters"), p(e.operation.method ?? "get") || t.delete("Body"), y.value && t.delete("Auth"), [...t];
43
+ }), o = v(
44
44
  () => Object.fromEntries(
45
- A.value.map((e) => [e, g()])
45
+ V.value.map((t) => [t, q()])
46
46
  )
47
- ), h = v(
48
- () => u === "modal" && !o.operation.security && !Object.keys(V ?? {}).length
49
- ), a = M("All");
50
- S(
51
- () => o.operation,
52
- (e) => {
53
- a.value === "Body" && e && !b(e.method) && (a.value = "All");
47
+ ), y = v(
48
+ () => u === "modal" && !e.operation.security && !Object.keys(P ?? {}).length
49
+ ), a = D("All");
50
+ g(
51
+ () => e.operation,
52
+ (t) => {
53
+ a.value === "Body" && t && !p(t.method) && (a.value = "All");
54
54
  }
55
55
  );
56
- const E = (e) => {
57
- const t = e.target;
58
- P.edit(o.operation.uid, "summary", t.value);
59
- }, H = v(
60
- () => (o.workspace.cookies ?? []).map((e) => B[e]).filter(j).filter((e) => e.name).filter(
61
- (e) => W(o.server?.url || o.operation.path, e.domain)
62
- ).map((e) => ({
63
- key: e.name,
64
- value: e.value,
56
+ const B = (t) => {
57
+ const r = t.target;
58
+ w.edit(e.operation.uid, "summary", r.value);
59
+ }, E = v(
60
+ () => (e.workspace.cookies ?? []).map((t) => O[t]).filter($).filter((t) => t.name).filter(
61
+ (t) => T(e.server?.url || e.operation.path, t.domain)
62
+ ).map((t) => ({
63
+ key: t.name,
64
+ value: t.value,
65
65
  route: {
66
66
  name: "cookies",
67
67
  params: {
68
- cookies: e.uid
68
+ cookies: t.uid
69
69
  }
70
70
  },
71
71
  enabled: !0
72
72
  }))
73
- ), N = () => o.operation.summary ? o.operation.summary : o.operation.path.replace(R.PROTOCOL, "") ? o.operation.path.replace(R.PROTOCOL, "") : "Request Name", q = g(), I = Y().getViewComponents("request.section"), U = (e, t) => P.edit(o.operation.uid, e, t);
74
- return S(
75
- () => h.value,
76
- (e) => {
77
- e && a.value === "Auth" && (a.value = "All");
73
+ ), H = () => e.operation.summary ? e.operation.summary : e.operation.path.replace(C.PROTOCOL, "") ? e.operation.path.replace(C.PROTOCOL, "") : "Request Name", A = q(), N = J().getViewComponents("request.section"), I = (t, r) => w.edit(e.operation.uid, t, r);
74
+ return g(
75
+ () => y.value,
76
+ (t) => {
77
+ t && a.value === "Auth" && (a.value = "All");
78
78
  }
79
- ), (e, t) => (r(), d(T, {
79
+ ), (t, r) => (n(), d(F, {
80
80
  "aria-label": `Request: ${e.operation.summary}`
81
81
  }, {
82
- title: c(() => [
83
- y("div", _, [
84
- l(u) !== "modal" ? (r(), f("label", {
82
+ title: f(() => [
83
+ k("div", _, [
84
+ l(u) !== "modal" ? (n(), h("label", {
85
85
  key: 0,
86
86
  class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
87
- for: l(q)
88
- }, null, 8, ee)) : k("", !0),
89
- l(u) !== "modal" ? (r(), f("input", {
87
+ for: l(A)
88
+ }, null, 8, ee)) : b("", !0),
89
+ l(u) !== "modal" ? (n(), h("input", {
90
90
  key: 1,
91
- id: l(q),
91
+ id: l(A),
92
92
  class: "text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",
93
- placeholder: N(),
93
+ placeholder: H(),
94
94
  value: e.operation.summary,
95
- onInput: E
96
- }, null, 40, ae)) : (r(), f("span", oe, $(e.operation.summary), 1))
95
+ onInput: B
96
+ }, null, 40, ae)) : (n(), h("span", te, Q(e.operation.summary), 1))
97
97
  ]),
98
- i(F, {
98
+ i(j, {
99
99
  modelValue: a.value,
100
- "onUpdate:modelValue": t[0] || (t[0] = (p) => a.value = p),
101
- filterIds: n.value,
102
- filters: A.value
100
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => a.value = c),
101
+ filterIds: o.value,
102
+ filters: V.value
103
103
  }, null, 8, ["modelValue", "filterIds", "filters"])
104
104
  ]),
105
- default: c(() => [
106
- y("div", {
107
- id: n.value.All,
105
+ default: f(() => [
106
+ k("div", {
107
+ id: o.value.All,
108
108
  class: "request-section-content custom-scroll relative flex flex-1 flex-col",
109
109
  role: a.value === "All" ? "tabpanel" : "none"
110
110
  }, [
111
- e.collection && e.workspace && (l(u) !== "modal" || Object.keys(l(V) ?? {}).length) ? s((r(), d(X, {
111
+ e.collection && e.workspace && (l(u) !== "modal" || Object.keys(l(P) ?? {}).length) ? s((n(), d(G, {
112
112
  key: 0,
113
- id: n.value.Auth,
113
+ id: o.value.Auth,
114
114
  class: "request-section-content-auth",
115
115
  collection: e.collection,
116
116
  envVariables: e.envVariables,
@@ -126,11 +126,11 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
126
126
  }, null, 8, ["id", "collection", "envVariables", "environment", "isReadOnly", "operation", "role", "selectedSecuritySchemeUids", "server", "workspace"])), [
127
127
  [
128
128
  m,
129
- !h.value && (a.value === "All" || a.value === "Auth")
129
+ !y.value && (a.value === "All" || a.value === "Auth")
130
130
  ]
131
- ]) : k("", !0),
132
- s(i(G, {
133
- id: n.value["Path Parameters"],
131
+ ]) : b("", !0),
132
+ s(i(z, {
133
+ id: o.value["Path Parameters"],
134
134
  class: "request-section-content-path-params",
135
135
  envVariables: e.envVariables,
136
136
  environment: e.environment,
@@ -147,8 +147,8 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
147
147
  (a.value === "All" || a.value === "Path Parameters") && e.example.parameters.path.length
148
148
  ]
149
149
  ]),
150
- s(i(w, {
151
- id: n.value.Cookies,
150
+ s(i(x, {
151
+ id: o.value.Cookies,
152
152
  class: "request-section-content-cookies",
153
153
  envVariables: e.envVariables,
154
154
  environment: e.environment,
@@ -157,15 +157,15 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
157
157
  label: "Cookie",
158
158
  operation: e.operation,
159
159
  paramKey: "cookies",
160
- readOnlyEntries: H.value,
160
+ readOnlyEntries: E.value,
161
161
  role: a.value === "All" ? "none" : "tabpanel",
162
162
  title: "Cookies",
163
163
  workspace: e.workspace
164
164
  }, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "readOnlyEntries", "role", "workspace"]), [
165
165
  [m, a.value === "All" || a.value === "Cookies"]
166
166
  ]),
167
- s(i(w, {
168
- id: n.value.Headers,
167
+ s(i(x, {
168
+ id: o.value.Headers,
169
169
  class: "request-section-content-headers",
170
170
  envVariables: e.envVariables,
171
171
  environment: e.environment,
@@ -180,8 +180,8 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
180
180
  }, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "role", "workspace"]), [
181
181
  [m, a.value === "All" || a.value === "Headers"]
182
182
  ]),
183
- s(i(w, {
184
- id: n.value.Query,
183
+ s(i(x, {
184
+ id: o.value.Query,
185
185
  class: "request-section-content-query",
186
186
  envVariables: e.envVariables,
187
187
  environment: e.environment,
@@ -196,9 +196,9 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
196
196
  }, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "role", "workspace"]), [
197
197
  [m, a.value === "All" || a.value === "Query"]
198
198
  ]),
199
- e.operation.method && (a.value === "All" || a.value === "Body") && l(b)(e.operation.method) ? (r(), d(z, {
199
+ e.operation.method && (a.value === "All" || a.value === "Body") && l(p)(e.operation.method) ? (n(), d(W, {
200
200
  key: 1,
201
- id: n.value.Body,
201
+ id: o.value.Body,
202
202
  class: "request-section-content-body",
203
203
  envVariables: e.envVariables,
204
204
  environment: e.environment,
@@ -207,24 +207,24 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
207
207
  role: a.value === "All" ? "none" : "tabpanel",
208
208
  title: "Body",
209
209
  workspace: e.workspace
210
- }, null, 8, ["id", "envVariables", "environment", "example", "operation", "role", "workspace"])) : k("", !0),
211
- (r(!0), f(K, null, L(l(I), (p) => (r(), d(l(C), {
212
- key: p.component
210
+ }, null, 8, ["id", "envVariables", "environment", "example", "operation", "role", "workspace"])) : b("", !0),
211
+ (n(!0), h(M, null, K(l(N), (c) => (n(), d(l(S), {
212
+ key: c.component
213
213
  }, {
214
- default: c(() => [
215
- s((r(), d(Q(p.component), {
214
+ default: f(() => [
215
+ s((n(), d(L(c.component), {
216
216
  operation: e.operation,
217
- "onUpdate:operation": U
217
+ "onUpdate:operation": I
218
218
  }, null, 40, ["operation"])), [
219
- [m, a.value === "All" || a.value === p.title]
219
+ [m, a.value === "All" || a.value === c.title]
220
220
  ])
221
221
  ]),
222
222
  _: 2
223
223
  }, 1024))), 128)),
224
- t[1] || (t[1] = y("div", { class: "flex flex-grow" }, null, -1)),
225
- i(l(C), null, {
226
- default: c(() => [
227
- i(J, {
224
+ r[1] || (r[1] = k("div", { class: "flex flex-grow" }, null, -1)),
225
+ i(l(S), null, {
226
+ default: f(() => [
227
+ i(X, {
228
228
  class: "request-section-content-code-example -mt-1/2 border-t",
229
229
  collection: e.collection,
230
230
  environment: e.envVariables,
@@ -243,5 +243,5 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
243
243
  }
244
244
  });
245
245
  export {
246
- be as default
246
+ pe as default
247
247
  };
@@ -1,19 +1,19 @@
1
- import { defineComponent as _, createBlock as i, openBlock as u, withCtx as n, createVNode as r, createElementBlock as b, createTextVNode as f, toDisplayString as c, Fragment as g, renderList as z, normalizeClass as v, unref as s, createCommentVNode as k, createElementVNode as p } from "vue";
2
- import { ScalarTooltip as q, ScalarIcon as B, ScalarButton as R } from "@scalar/components";
3
- import { ScalarIconTrash as D } from "@scalar/icons";
4
- import { RouterLink as E } from "vue-router";
1
+ import { defineComponent as z, createBlock as c, openBlock as d, withCtx as t, createVNode as n, createElementBlock as f, createTextVNode as v, toDisplayString as p, Fragment as g, renderList as q, normalizeClass as k, unref as u, createCommentVNode as y, createElementVNode as m } from "vue";
2
+ import { ScalarTooltip as D, ScalarIcon as B, ScalarButton as R } from "@scalar/components";
3
+ import { ScalarIconTrash as E } from "@scalar/icons";
4
+ import { RouterLink as G } from "vue-router";
5
5
  import C from "../../../components/CodeInput/CodeInput.vue.js";
6
- import G from "../../../components/DataTable/DataTable.vue.js";
7
- import y from "../../../components/DataTable/DataTableCell.vue.js";
8
- import N from "../../../components/DataTable/DataTableCheckbox.vue.js";
9
- import V from "../../../components/DataTable/DataTableHeader.vue.js";
6
+ import N from "../../../components/DataTable/DataTable.vue.js";
7
+ import V from "../../../components/DataTable/DataTableCell.vue.js";
8
+ import P from "../../../components/DataTable/DataTableCheckbox.vue.js";
9
+ import h from "../../../components/DataTable/DataTableHeader.vue.js";
10
10
  import $ from "../../../components/DataTable/DataTableRow.vue.js";
11
- import { parameterIsInvalid as P, hasItemProperties as h } from "../libs/request.js";
12
- import j from "./RequestTableTooltip.vue.js";
13
- const K = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify-end overflow-hidden p-1" }, O = ["onClick"], A = {
11
+ import { parameterIsInvalid as j, hasItemProperties as w } from "../libs/request.js";
12
+ import K from "./RequestTableTooltip.vue.js";
13
+ const O = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify-end overflow-hidden p-1" }, A = ["onClick"], L = {
14
14
  key: 1,
15
15
  class: "p-0.5"
16
- }, oe = /* @__PURE__ */ _({
16
+ }, oe = /* @__PURE__ */ z({
17
17
  __name: "RequestTable",
18
18
  props: {
19
19
  items: {},
@@ -28,62 +28,62 @@ const K = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
28
28
  label: {}
29
29
  },
30
30
  emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
31
- setup(x, { emit: F }) {
32
- const m = x, t = F, U = ["", "", "36px"], w = (e, o, l) => {
33
- t("updateRow", e, o, l);
34
- }, S = (e) => {
35
- t("uploadFile", e);
36
- }, T = (e) => Array.isArray(e.default) && e.default.length === 1 ? e.default[0] : e.default, I = (e) => !!(e.key || e.value);
37
- return (e, o) => (u(), i(G, {
31
+ setup(l, { emit: F }) {
32
+ const b = l, s = F, U = ["", "", "36px"], x = (r, o, e) => {
33
+ s("updateRow", r, o, e);
34
+ }, S = (r) => {
35
+ s("uploadFile", r);
36
+ }, T = (r) => Array.isArray(r.default) && r.default.length === 1 ? r.default[0] : r.default, I = (r) => !!(r.key || r.value);
37
+ return (r, o) => (d(), c(N, {
38
38
  class: "group/table flex-1",
39
39
  columns: U
40
40
  }, {
41
- default: n(() => [
42
- r($, { class: "sr-only !block" }, {
43
- default: n(() => [
44
- r(V, null, {
45
- default: n(() => [
46
- f(c(e.label) + " Enabled", 1)
41
+ default: t(() => [
42
+ n($, { class: "sr-only !block" }, {
43
+ default: t(() => [
44
+ n(h, null, {
45
+ default: t(() => [
46
+ v(p(l.label) + " Enabled", 1)
47
47
  ]),
48
48
  _: 1
49
49
  }),
50
- r(V, null, {
51
- default: n(() => [
52
- f(c(e.label) + " Key", 1)
50
+ n(h, null, {
51
+ default: t(() => [
52
+ v(p(l.label) + " Key", 1)
53
53
  ]),
54
54
  _: 1
55
55
  }),
56
- r(V, null, {
57
- default: n(() => [
58
- f(c(e.label) + " Value", 1)
56
+ n(h, null, {
57
+ default: t(() => [
58
+ v(p(l.label) + " Value", 1)
59
59
  ]),
60
60
  _: 1
61
61
  })
62
62
  ]),
63
63
  _: 1
64
64
  }),
65
- (u(!0), b(g, null, z(e.items, (l, d) => (u(), i($, {
66
- id: l.key,
67
- key: d,
68
- class: v({
69
- alert: s(P)(l).value,
70
- error: e.invalidParams && e.invalidParams.has(l.key)
65
+ (d(!0), f(g, null, q(l.items, (e, i) => (d(), c($, {
66
+ id: e.key,
67
+ key: i,
68
+ class: k({
69
+ alert: u(j)(e).value,
70
+ error: l.invalidParams && l.invalidParams.has(e.key)
71
71
  })
72
72
  }, {
73
- default: n(() => [
74
- e.isGlobal ? (u(), i(s(E), {
73
+ default: t(() => [
74
+ l.isGlobal ? (d(), c(u(G), {
75
75
  key: 0,
76
76
  class: "text-c-2 flex items-center justify-center border-t !border-r",
77
- to: l.route ?? {}
77
+ to: e.route ?? {}
78
78
  }, {
79
- default: n(() => [
80
- o[4] || (o[4] = p("span", { class: "sr-only" }, "Global", -1)),
81
- r(s(q), {
79
+ default: t(() => [
80
+ o[4] || (o[4] = m("span", { class: "sr-only" }, "Global", -1)),
81
+ n(u(D), {
82
82
  content: "Global cookies are shared across the whole workspace.",
83
83
  placement: "top"
84
84
  }, {
85
- default: n(() => [
86
- r(s(B), {
85
+ default: t(() => [
86
+ n(u(B), {
87
87
  tabindex: "0",
88
88
  class: "text-c-1",
89
89
  icon: "Globe",
@@ -94,114 +94,114 @@ const K = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
94
94
  })
95
95
  ]),
96
96
  _: 1
97
- }, 8, ["to"])) : (u(), i(N, {
97
+ }, 8, ["to"])) : (d(), c(P, {
98
98
  key: 1,
99
99
  class: "!border-r",
100
- disabled: m.hasCheckboxDisabled,
101
- modelValue: l.enabled,
102
- "onUpdate:modelValue": (a) => t("toggleRow", d, a)
100
+ disabled: b.hasCheckboxDisabled,
101
+ modelValue: e.enabled,
102
+ "onUpdate:modelValue": (a) => s("toggleRow", i, a)
103
103
  }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])),
104
- r(y, null, {
105
- default: n(() => [
106
- r(C, {
107
- "aria-label": `${e.label} Key`,
104
+ n(V, null, {
105
+ default: t(() => [
106
+ n(C, {
107
+ "aria-label": `${l.label} Key`,
108
108
  disableCloseBrackets: "",
109
- disabled: m.isReadOnly,
109
+ disabled: b.isReadOnly,
110
110
  disableEnter: "",
111
111
  disableTabIndent: "",
112
112
  lineWrapping: "",
113
- envVariables: e.envVariables,
114
- environment: e.environment,
115
- modelValue: l.key,
113
+ envVariables: l.envVariables,
114
+ environment: l.environment,
115
+ modelValue: e.key,
116
116
  placeholder: "Key",
117
- required: !!l.required,
118
- workspace: e.workspace,
119
- onBlur: o[0] || (o[0] = (a) => t("inputBlur")),
120
- onFocus: o[1] || (o[1] = (a) => t("inputFocus")),
121
- onSelectVariable: (a) => w(d, "key", a),
122
- "onUpdate:modelValue": (a) => t("updateRow", d, "key", a)
117
+ required: !!e.required,
118
+ workspace: l.workspace,
119
+ onBlur: o[0] || (o[0] = (a) => s("inputBlur")),
120
+ onFocus: o[1] || (o[1] = (a) => s("inputFocus")),
121
+ onSelectVariable: (a) => x(i, "key", a),
122
+ "onUpdate:modelValue": (a) => s("updateRow", i, "key", a)
123
123
  }, null, 8, ["aria-label", "disabled", "envVariables", "environment", "modelValue", "required", "workspace", "onSelectVariable", "onUpdate:modelValue"])
124
124
  ]),
125
125
  _: 2
126
126
  }, 1024),
127
- r(y, null, {
128
- default: n(() => [
129
- r(C, {
130
- "aria-label": `${e.label} Value`,
131
- class: v(
132
- s(h)(l) ? "pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10" : "group-hover:pr-6 group-has-[.cm-focused]:pr-6"
127
+ n(V, null, {
128
+ default: t(() => [
129
+ n(C, {
130
+ "aria-label": `${l.label} Value`,
131
+ class: k(
132
+ u(w)(e) ? "pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10" : "group-hover:pr-6 group-has-[.cm-focused]:pr-6"
133
133
  ),
134
- default: l.default,
134
+ default: e.default,
135
135
  disableCloseBrackets: "",
136
- disabled: m.isReadOnly,
136
+ disabled: b.isReadOnly,
137
137
  disableEnter: "",
138
138
  disableTabIndent: "",
139
139
  lineWrapping: "",
140
- enum: l.enum ?? [],
141
- envVariables: e.envVariables,
142
- environment: e.environment,
143
- examples: l.examples ?? [],
144
- max: l.maximum,
145
- min: l.minimum,
146
- modelValue: l.value,
147
- nullable: !!l.nullable,
140
+ enum: e.enum ?? [],
141
+ envVariables: l.envVariables,
142
+ environment: l.environment,
143
+ examples: e.examples ?? [],
144
+ max: e.maximum,
145
+ min: e.minimum,
146
+ modelValue: e.value,
147
+ nullable: !!e.nullable,
148
148
  placeholder: "Value",
149
- type: l.type,
150
- workspace: e.workspace,
151
- onBlur: o[2] || (o[2] = (a) => t("inputBlur")),
152
- onFocus: o[3] || (o[3] = (a) => t("inputFocus")),
153
- onSelectVariable: (a) => w(d, "value", a),
154
- "onUpdate:modelValue": (a) => t("updateRow", d, "value", a)
149
+ type: e.type,
150
+ workspace: l.workspace,
151
+ onBlur: o[2] || (o[2] = (a) => s("inputBlur")),
152
+ onFocus: o[3] || (o[3] = (a) => s("inputFocus")),
153
+ onSelectVariable: (a) => x(i, "value", a),
154
+ "onUpdate:modelValue": (a) => s("updateRow", i, "value", a)
155
155
  }, {
156
- icon: n(() => [
157
- I(l) && !l.required ? (u(), i(s(R), {
156
+ icon: t(() => [
157
+ I(e) && !e.required ? (d(), c(u(R), {
158
158
  key: 0,
159
- class: v([{
160
- "-mr-0.5": s(h)(l)
159
+ class: k([{
160
+ "-mr-0.5": u(w)(e)
161
161
  }, "text-c-2 hover:text-c-1 hover:bg-b-2 z-context hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex"]),
162
162
  size: "sm",
163
163
  variant: "ghost",
164
- onClick: (a) => t("deleteRow", d)
164
+ onClick: (a) => s("deleteRow", i)
165
165
  }, {
166
- default: n(() => [
167
- r(s(D), { class: "size-3.5" })
166
+ default: t(() => [
167
+ n(u(E), { class: "size-3.5" })
168
168
  ]),
169
169
  _: 1
170
- }, 8, ["class", "onClick"])) : k("", !0),
171
- s(h)(l) ? (u(), i(j, {
170
+ }, 8, ["class", "onClick"])) : y("", !0),
171
+ u(w)(e) ? (d(), c(K, {
172
172
  key: 1,
173
- item: { ...l, default: T(l) }
174
- }, null, 8, ["item"])) : k("", !0)
173
+ item: { ...e, default: T(e) }
174
+ }, null, 8, ["item"])) : y("", !0)
175
175
  ]),
176
176
  _: 2
177
177
  }, 1032, ["aria-label", "class", "default", "disabled", "enum", "envVariables", "environment", "examples", "max", "min", "modelValue", "nullable", "type", "workspace", "onSelectVariable", "onUpdate:modelValue"])
178
178
  ]),
179
179
  _: 2
180
180
  }, 1024),
181
- e.showUploadButton ? (u(), i(y, {
181
+ l.showUploadButton ? (d(), c(V, {
182
182
  key: 2,
183
183
  class: "group/upload flex items-center justify-center whitespace-nowrap"
184
184
  }, {
185
- default: n(() => [
186
- l.file ? (u(), b(g, { key: 0 }, [
187
- p("div", K, [
188
- p("span", null, c(l.file?.name), 1)
185
+ default: t(() => [
186
+ e.file ? (d(), f(g, { key: 0 }, [
187
+ m("div", O, [
188
+ m("span", null, p(e.file?.name), 1)
189
189
  ]),
190
- p("button", {
190
+ m("button", {
191
191
  class: "bg-b-2 centered-x centered-y absolute hidden w-[calc(100%_-_8px)] rounded p-0.5 text-center text-xs font-medium group-hover/upload:block",
192
192
  type: "button",
193
- onClick: (a) => t("removeFile", d)
194
- }, " Delete ", 8, O)
195
- ], 64)) : (u(), b("div", A, [
196
- r(s(R), {
193
+ onClick: (a) => s("removeFile", i)
194
+ }, " Delete ", 8, A)
195
+ ], 64)) : (d(), f("div", L, [
196
+ n(u(R), {
197
197
  class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
198
198
  size: "sm",
199
199
  variant: "outlined",
200
- onClick: (a) => S(d)
200
+ onClick: (a) => S(i)
201
201
  }, {
202
- default: n(() => [
203
- o[5] || (o[5] = p("span", null, "Upload File", -1)),
204
- r(s(B), {
202
+ default: t(() => [
203
+ o[5] || (o[5] = m("span", null, "Upload File", -1)),
204
+ n(u(B), {
205
205
  class: "ml-1",
206
206
  icon: "Upload",
207
207
  size: "xs",
@@ -213,7 +213,7 @@ const K = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
213
213
  ]))
214
214
  ]),
215
215
  _: 2
216
- }, 1024)) : k("", !0)
216
+ }, 1024)) : y("", !0)
217
217
  ]),
218
218
  _: 2
219
219
  }, 1032, ["id", "class"]))), 128))