@scalar/api-client 2.9.1 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +2 -2
  3. package/dist/libs/send-request/build-request-security.d.ts.map +1 -1
  4. package/dist/libs/send-request/build-request-security.js +1 -1
  5. package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
  6. package/dist/style.css +1 -1
  7. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +89 -0
  8. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -0
  9. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +129 -0
  10. package/dist/v2/blocks/operation-block/OperationBlock.vue2.js +4 -0
  11. package/dist/v2/{features/operation → blocks/operation-block}/components/Header.vue.d.ts +8 -27
  12. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -0
  13. package/dist/v2/blocks/operation-block/components/Header.vue.js +7 -0
  14. package/dist/v2/blocks/operation-block/components/Header.vue2.js +93 -0
  15. package/dist/v2/blocks/operation-block/index.d.ts +2 -0
  16. package/dist/v2/blocks/operation-block/index.d.ts.map +1 -0
  17. package/dist/v2/blocks/operation-block/index.js +4 -0
  18. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +8 -24
  19. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  20. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  21. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +60 -59
  22. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +7 -28
  23. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  24. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
  25. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +97 -87
  26. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +7 -17
  27. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  28. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +1 -1
  29. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +46 -41
  30. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +1 -1
  31. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  32. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +4 -5
  33. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  34. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +47 -45
  35. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +5 -5
  36. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
  37. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +7 -7
  38. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +6 -9
  39. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
  40. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
  41. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +255 -206
  42. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +30 -25
  43. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +1 -1
  44. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
  45. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +140 -97
  46. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +1 -0
  47. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +1 -1
  48. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +31 -29
  49. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +1 -0
  50. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +1 -1
  51. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +2 -2
  52. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +32 -29
  53. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +1 -1
  54. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +56 -51
  55. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +2 -4
  56. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
  57. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
  58. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +39 -38
  59. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  60. package/dist/v2/components/sidebar/Sidebar.vue.js +43 -42
  61. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  62. package/dist/v2/features/app/App.vue.js +62 -49
  63. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +1 -1
  64. package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
  65. package/dist/v2/features/app/helpers/routes.d.ts +5 -1
  66. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  67. package/dist/v2/features/app/helpers/routes.js +1 -1
  68. package/dist/v2/features/collection/DocumentCollection.vue2.js +27 -24
  69. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +15 -12
  70. package/dist/v2/features/collection/components/Authentication.vue.d.ts +4 -25
  71. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  72. package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
  73. package/dist/v2/features/collection/components/Authentication.vue2.js +27 -28
  74. package/dist/v2/features/collection/components/Environment.vue2.js +3 -0
  75. package/dist/v2/features/collection/components/Overview.vue2.js +24 -21
  76. package/dist/v2/features/operation/Operation.vue.d.ts +10 -77
  77. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  78. package/dist/v2/features/operation/Operation.vue.js +56 -114
  79. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
  80. package/dist/v2/hooks/use-workspace-client-events.js +131 -18
  81. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  82. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  83. package/dist/views/Request/libs/oauth2.js +8 -6
  84. package/package.json +17 -17
  85. package/dist/components/CodeInput/CodeInput.test.d.ts +0 -2
  86. package/dist/components/CodeInput/CodeInput.test.d.ts.map +0 -1
  87. package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts +0 -2
  88. package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts.map +0 -1
  89. package/dist/components/ImportCollection/utils/is-document.test.d.ts +0 -2
  90. package/dist/components/ImportCollection/utils/is-document.test.d.ts.map +0 -1
  91. package/dist/components/ImportCollection/utils/is-url.test.d.ts +0 -2
  92. package/dist/components/ImportCollection/utils/is-url.test.d.ts.map +0 -1
  93. package/dist/components/Search/useSearch.test.d.ts +0 -2
  94. package/dist/components/Search/useSearch.test.d.ts.map +0 -1
  95. package/dist/components/Server/ServerDropdown.test.d.ts +0 -2
  96. package/dist/components/Server/ServerDropdown.test.d.ts.map +0 -1
  97. package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts +0 -2
  98. package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts.map +0 -1
  99. package/dist/hooks/useResponseBody.test.d.ts +0 -2
  100. package/dist/hooks/useResponseBody.test.d.ts.map +0 -1
  101. package/dist/hooks/useSidebar.test.d.ts +0 -2
  102. package/dist/hooks/useSidebar.test.d.ts.map +0 -1
  103. package/dist/layouts/App/create-api-client-app.test.d.ts +0 -2
  104. package/dist/layouts/App/create-api-client-app.test.d.ts.map +0 -1
  105. package/dist/layouts/Modal/create-api-client-modal.test.d.ts +0 -2
  106. package/dist/layouts/Modal/create-api-client-modal.test.d.ts.map +0 -1
  107. package/dist/layouts/Web/create-api-client-web.test.d.ts +0 -2
  108. package/dist/layouts/Web/create-api-client-web.test.d.ts.map +0 -1
  109. package/dist/libs/create-client.test.d.ts +0 -2
  110. package/dist/libs/create-client.test.d.ts.map +0 -1
  111. package/dist/libs/env-helpers.test.d.ts +0 -2
  112. package/dist/libs/env-helpers.test.d.ts.map +0 -1
  113. package/dist/libs/event-bus.test.d.ts +0 -2
  114. package/dist/libs/event-bus.test.d.ts.map +0 -1
  115. package/dist/libs/extractAttachmentFilename.test.d.ts +0 -2
  116. package/dist/libs/extractAttachmentFilename.test.d.ts.map +0 -1
  117. package/dist/libs/find-request.test.d.ts +0 -2
  118. package/dist/libs/find-request.test.d.ts.map +0 -1
  119. package/dist/libs/get-request-uid-by-path-method.test.d.ts +0 -2
  120. package/dist/libs/get-request-uid-by-path-method.test.d.ts.map +0 -1
  121. package/dist/libs/hot-keys.test.d.ts +0 -2
  122. package/dist/libs/hot-keys.test.d.ts.map +0 -1
  123. package/dist/libs/importers/curl.test.d.ts +0 -2
  124. package/dist/libs/importers/curl.test.d.ts.map +0 -1
  125. package/dist/libs/normalize-headers.test.d.ts +0 -2
  126. package/dist/libs/normalize-headers.test.d.ts.map +0 -1
  127. package/dist/libs/parse-curl.test.d.ts +0 -2
  128. package/dist/libs/parse-curl.test.d.ts.map +0 -1
  129. package/dist/libs/send-request/build-request-security.test.d.ts +0 -2
  130. package/dist/libs/send-request/build-request-security.test.d.ts.map +0 -1
  131. package/dist/libs/send-request/create-fetch-auth.test.d.ts +0 -2
  132. package/dist/libs/send-request/create-fetch-auth.test.d.ts.map +0 -1
  133. package/dist/libs/send-request/create-fetch-body.test.d.ts +0 -2
  134. package/dist/libs/send-request/create-fetch-body.test.d.ts.map +0 -1
  135. package/dist/libs/send-request/create-fetch-headers.test.d.ts +0 -2
  136. package/dist/libs/send-request/create-fetch-headers.test.d.ts.map +0 -1
  137. package/dist/libs/send-request/create-fetch-query-params.test.d.ts +0 -2
  138. package/dist/libs/send-request/create-fetch-query-params.test.d.ts.map +0 -1
  139. package/dist/libs/send-request/create-request-operation.test.d.ts +0 -191
  140. package/dist/libs/send-request/create-request-operation.test.d.ts.map +0 -1
  141. package/dist/libs/send-request/decode-buffer.test.d.ts +0 -2
  142. package/dist/libs/send-request/decode-buffer.test.d.ts.map +0 -1
  143. package/dist/libs/send-request/set-request-cookies.test.d.ts +0 -2
  144. package/dist/libs/send-request/set-request-cookies.test.d.ts.map +0 -1
  145. package/dist/libs/string-template.test.d.ts +0 -2
  146. package/dist/libs/string-template.test.d.ts.map +0 -1
  147. package/dist/libs/validate-parameters.test.d.ts +0 -2
  148. package/dist/libs/validate-parameters.test.d.ts.map +0 -1
  149. package/dist/plugins/plugin-manager.test.d.ts +0 -2
  150. package/dist/plugins/plugin-manager.test.d.ts.map +0 -1
  151. package/dist/routes.test.d.ts +0 -2
  152. package/dist/routes.test.d.ts.map +0 -1
  153. package/dist/store/collections.test.d.ts +0 -2
  154. package/dist/store/collections.test.d.ts.map +0 -1
  155. package/dist/store/request.test.d.ts +0 -2
  156. package/dist/store/request.test.d.ts.map +0 -1
  157. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts +0 -2
  158. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts.map +0 -1
  159. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts +0 -2
  160. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts.map +0 -1
  161. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts +0 -2
  162. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts.map +0 -1
  163. package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts +0 -2
  164. package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts.map +0 -1
  165. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts +0 -2
  166. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts.map +0 -1
  167. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts +0 -2
  168. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts.map +0 -1
  169. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts +0 -2
  170. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts.map +0 -1
  171. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts +0 -2
  172. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts.map +0 -1
  173. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts +0 -2
  174. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts.map +0 -1
  175. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts +0 -2
  176. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts.map +0 -1
  177. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts +0 -2
  178. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts.map +0 -1
  179. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts +0 -2
  180. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts.map +0 -1
  181. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts +0 -2
  182. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts.map +0 -1
  183. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts +0 -2
  184. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts.map +0 -1
  185. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts +0 -2
  186. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts.map +0 -1
  187. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts +0 -2
  188. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts.map +0 -1
  189. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts +0 -2
  190. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts.map +0 -1
  191. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts +0 -2
  192. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts.map +0 -1
  193. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts +0 -2
  194. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts.map +0 -1
  195. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts +0 -2
  196. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts.map +0 -1
  197. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts +0 -2
  198. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts.map +0 -1
  199. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts +0 -2
  200. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts.map +0 -1
  201. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts +0 -2
  202. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts.map +0 -1
  203. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts +0 -2
  204. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts.map +0 -1
  205. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts +0 -2
  206. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts.map +0 -1
  207. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts +0 -2
  208. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts.map +0 -1
  209. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts +0 -2
  210. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts.map +0 -1
  211. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts +0 -2
  212. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts.map +0 -1
  213. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts +0 -2
  214. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts.map +0 -1
  215. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts +0 -2
  216. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts.map +0 -1
  217. package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts +0 -2
  218. package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts.map +0 -1
  219. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts +0 -2
  220. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts.map +0 -1
  221. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts +0 -2
  222. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts.map +0 -1
  223. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts +0 -2
  224. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts.map +0 -1
  225. package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts +0 -2
  226. package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts.map +0 -1
  227. package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts +0 -2
  228. package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts.map +0 -1
  229. package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts +0 -2
  230. package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts.map +0 -1
  231. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts +0 -2
  232. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts.map +0 -1
  233. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts +0 -2
  234. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts.map +0 -1
  235. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts +0 -2
  236. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts.map +0 -1
  237. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts +0 -2
  238. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts.map +0 -1
  239. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts +0 -2
  240. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts.map +0 -1
  241. package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts +0 -2
  242. package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts.map +0 -1
  243. package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts +0 -2
  244. package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts.map +0 -1
  245. package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts +0 -2
  246. package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts.map +0 -1
  247. package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts +0 -2
  248. package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts.map +0 -1
  249. package/dist/v2/components/code-input/CodeInput.test.d.ts +0 -2
  250. package/dist/v2/components/code-input/CodeInput.test.d.ts.map +0 -1
  251. package/dist/v2/components/code-input/code-variable-widget.test.d.ts +0 -2
  252. package/dist/v2/components/code-input/code-variable-widget.test.d.ts.map +0 -1
  253. package/dist/v2/components/server/ServerDropdown.test.d.ts +0 -2
  254. package/dist/v2/components/server/ServerDropdown.test.d.ts.map +0 -1
  255. package/dist/v2/components/server/ServerDropdownItem.test.d.ts +0 -2
  256. package/dist/v2/components/server/ServerDropdownItem.test.d.ts.map +0 -1
  257. package/dist/v2/features/app/App.test.d.ts +0 -2
  258. package/dist/v2/features/app/App.test.d.ts.map +0 -1
  259. package/dist/v2/features/collection/DocumentCollection.test.d.ts +0 -2
  260. package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +0 -1
  261. package/dist/v2/features/collection/components/Authentication.test.d.ts +0 -2
  262. package/dist/v2/features/collection/components/Authentication.test.d.ts.map +0 -1
  263. package/dist/v2/features/collection/components/Environment.test.d.ts +0 -2
  264. package/dist/v2/features/collection/components/Environment.test.d.ts.map +0 -1
  265. package/dist/v2/features/collection/components/LabelInput.test.d.ts +0 -2
  266. package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +0 -1
  267. package/dist/v2/features/collection/components/Overview.test.d.ts +0 -2
  268. package/dist/v2/features/collection/components/Overview.test.d.ts.map +0 -1
  269. package/dist/v2/features/collection/components/Servers.test.d.ts +0 -2
  270. package/dist/v2/features/collection/components/Servers.test.d.ts.map +0 -1
  271. package/dist/v2/features/collection/components/Settings.test.d.ts +0 -2
  272. package/dist/v2/features/collection/components/Settings.test.d.ts.map +0 -1
  273. package/dist/v2/features/collection/components/Tabs.test.d.ts +0 -2
  274. package/dist/v2/features/collection/components/Tabs.test.d.ts.map +0 -1
  275. package/dist/v2/features/environments/EnvironmentsList.test.d.ts +0 -2
  276. package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +0 -1
  277. package/dist/v2/features/environments/components/Environment.test.d.ts +0 -2
  278. package/dist/v2/features/environments/components/Environment.test.d.ts.map +0 -1
  279. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +0 -2
  280. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +0 -1
  281. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +0 -2
  282. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +0 -1
  283. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +0 -2
  284. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +0 -1
  285. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +0 -2
  286. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +0 -1
  287. package/dist/v2/features/operation/Operation.test.d.ts +0 -2
  288. package/dist/v2/features/operation/Operation.test.d.ts.map +0 -1
  289. package/dist/v2/features/operation/components/Header.test.d.ts +0 -2
  290. package/dist/v2/features/operation/components/Header.test.d.ts.map +0 -1
  291. package/dist/v2/features/operation/components/Header.vue.d.ts.map +0 -1
  292. package/dist/v2/features/operation/components/Header.vue.js +0 -7
  293. package/dist/v2/features/operation/components/Header.vue2.js +0 -97
  294. package/dist/v2/features/settings/Settings.test.d.ts +0 -2
  295. package/dist/v2/features/settings/Settings.test.d.ts.map +0 -1
  296. package/dist/v2/hooks/use-document-watcher.test.d.ts +0 -2
  297. package/dist/v2/hooks/use-document-watcher.test.d.ts.map +0 -1
  298. package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts +0 -2
  299. package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts.map +0 -1
  300. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts +0 -2
  301. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts.map +0 -1
  302. package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts +0 -2
  303. package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts.map +0 -1
  304. package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts +0 -2
  305. package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts.map +0 -1
  306. package/dist/views/Request/RequestRoot.test.d.ts +0 -2
  307. package/dist/views/Request/RequestRoot.test.d.ts.map +0 -1
  308. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts +0 -2
  309. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts.map +0 -1
  310. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts +0 -2
  311. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts.map +0 -1
  312. package/dist/views/Request/RequestSection/RequestBody.test.d.ts +0 -2
  313. package/dist/views/Request/RequestSection/RequestBody.test.d.ts.map +0 -1
  314. package/dist/views/Request/RequestSection/RequestCodeExample.test.d.ts +0 -2
  315. package/dist/views/Request/RequestSection/RequestCodeExample.test.d.ts.map +0 -1
  316. package/dist/views/Request/RequestSection/RequestSection.test.d.ts +0 -2
  317. package/dist/views/Request/RequestSection/RequestSection.test.d.ts.map +0 -1
  318. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts +0 -2
  319. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts.map +0 -1
  320. package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts +0 -2
  321. package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts.map +0 -1
  322. package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts +0 -2
  323. package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts.map +0 -1
  324. package/dist/views/Request/RequestSubpageHeader.test.d.ts +0 -2
  325. package/dist/views/Request/RequestSubpageHeader.test.d.ts.map +0 -1
  326. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts +0 -2
  327. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts.map +0 -1
  328. package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts +0 -2
  329. package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts.map +0 -1
  330. package/dist/views/Request/consts/mediaTypes.test.d.ts +0 -2
  331. package/dist/views/Request/consts/mediaTypes.test.d.ts.map +0 -1
  332. package/dist/views/Request/libs/auth.test.d.ts +0 -2
  333. package/dist/views/Request/libs/auth.test.d.ts.map +0 -1
  334. package/dist/views/Request/libs/oauth2.test.d.ts +0 -2
  335. package/dist/views/Request/libs/oauth2.test.d.ts.map +0 -1
  336. package/dist/views/Request/libs/request.test.d.ts +0 -2
  337. package/dist/views/Request/libs/request.test.d.ts.map +0 -1
  338. package/dist/views/Request/libs/watch-mode.test.d.ts +0 -2
  339. package/dist/views/Request/libs/watch-mode.test.d.ts.map +0 -1
  340. package/dist/vitest.setup.d.ts +0 -34
  341. package/dist/vitest.setup.d.ts.map +0 -1
@@ -1,75 +1,80 @@
1
- import { defineComponent as v, ref as f, computed as h, watch as y, createElementBlock as o, openBlock as r, withModifiers as S, createCommentVNode as d, createBlock as x, normalizeClass as n, Fragment as g, renderList as k, createElementVNode as m, toDisplayString as w, unref as V, withCtx as C, createVNode as O } from "vue";
2
- import z from "./RequestAuthTab.vue.js";
3
- import N from "../../../../components/DataTable/DataTable.vue.js";
4
- const j = ["onClick"], B = { class: "relative z-10 font-medium whitespace-nowrap" }, $ = {
1
+ import { defineComponent as v, computed as b, createElementBlock as n, openBlock as t, withModifiers as p, createCommentVNode as u, createBlock as h, normalizeClass as i, Fragment as f, renderList as y, createElementVNode as d, toDisplayString as S, unref as x, withCtx as g, createVNode as k } from "vue";
2
+ import w from "./RequestAuthTab.vue.js";
3
+ import A from "../../../../components/DataTable/DataTable.vue.js";
4
+ const B = ["onClick"], V = { class: "relative z-10 font-medium whitespace-nowrap" }, C = {
5
5
  key: 0,
6
6
  class: "absolute inset-x-1 bottom-[var(--scalar-border-width)] left-1/2 z-1 h-px w-full -translate-x-1/2 bg-current"
7
- }, U = /* @__PURE__ */ v({
7
+ }, O = /* @__PURE__ */ v({
8
8
  __name: "RequestAuthDataTable",
9
9
  props: {
10
10
  environment: {},
11
11
  envVariables: {},
12
12
  layout: { default: "client" },
13
13
  selectedSchemeOptions: { default: () => [] },
14
+ activeAuthIndex: {},
14
15
  securitySchemes: {},
15
- server: {}
16
+ server: {},
17
+ eventBus: {},
18
+ meta: {}
16
19
  },
17
- emits: ["update:securityScheme", "update:selectedScopes"],
18
- setup(c, { expose: p, emit: b }) {
19
- const u = b, t = f(0), l = h(() => c.selectedSchemeOptions[t.value]);
20
- return y(
21
- () => c.selectedSchemeOptions,
22
- (e) => {
23
- (!e || !e[t.value]) && (t.value = Math.max(0, t.value - 1));
24
- }
25
- ), p({
26
- activeAuthIndex: t,
27
- activeScheme: l
28
- }), (e, s) => (r(), o("form", {
29
- onSubmit: s[2] || (s[2] = S(() => {
20
+ setup(l, { expose: c }) {
21
+ const o = b(() => l.selectedSchemeOptions[l.activeAuthIndex]);
22
+ return c({
23
+ activeAuthIndex: l.activeAuthIndex,
24
+ activeScheme: o
25
+ }), (e, r) => (t(), n("form", {
26
+ onSubmit: r[2] || (r[2] = p(() => {
30
27
  }, ["prevent"]))
31
28
  }, [
32
- e.selectedSchemeOptions.length > 1 ? (r(), o("div", {
29
+ e.selectedSchemeOptions.length > 1 ? (t(), n("div", {
33
30
  key: 0,
34
- class: n(["box-content flex flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", e.layout === "client" && "border-x-0"]),
31
+ class: i(["box-content flex flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", e.layout === "client" && "border-x-0"]),
35
32
  "data-testid": "auth-tabs"
36
33
  }, [
37
- (r(!0), o(g, null, k(e.selectedSchemeOptions, (a, i) => (r(), o("div", {
38
- key: Object.keys(a).join(" & "),
39
- class: n(["relative z-1 -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer", [t.value === i ? "text-c-1" : "text-c-3"]])
34
+ (t(!0), n(f, null, y(e.selectedSchemeOptions, (a, s) => (t(), n("div", {
35
+ key: a.id,
36
+ class: i(["relative z-1 -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer", [e.activeAuthIndex === s ? "text-c-1" : "text-c-3"]])
40
37
  }, [
41
- m("button", {
38
+ d("button", {
42
39
  class: "floating-bg relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium",
43
40
  type: "button",
44
- onClick: (A) => t.value = i
41
+ onClick: () => e.eventBus.emit("auth:update:active-index", { index: s, meta: e.meta })
45
42
  }, [
46
- m("span", B, w(a.label), 1)
47
- ], 8, j),
48
- t.value === i ? (r(), o("div", $)) : d("", !0)
43
+ d("span", V, S(a.label), 1)
44
+ ], 8, B),
45
+ e.activeAuthIndex === s ? (t(), n("div", C)) : u("", !0)
49
46
  ], 2))), 128))
50
- ], 2)) : d("", !0),
51
- l.value ? (r(), x(V(N), {
47
+ ], 2)) : u("", !0),
48
+ o.value ? (t(), h(x(A), {
52
49
  key: 1,
53
- class: n(["flex-1", e.layout === "reference" && "bg-b-1 rounded-b-lg border border-t-0"]),
50
+ class: i(["flex-1", e.layout === "reference" && "bg-b-1 rounded-b-lg border border-t-0"]),
54
51
  columns: [""],
55
52
  presentational: ""
56
53
  }, {
57
- default: C(() => [
58
- O(z, {
54
+ default: g(() => [
55
+ k(w, {
59
56
  envVariables: e.envVariables,
60
57
  environment: e.environment,
61
58
  layout: e.layout,
62
59
  securitySchemes: e.securitySchemes ?? {},
63
- selectedSecuritySchema: l.value.value,
60
+ selectedSecuritySchemas: o.value.value,
64
61
  server: e.server,
65
- "onUpdate:securityScheme": s[0] || (s[0] = (a) => u("update:securityScheme", a)),
66
- "onUpdate:selectedScopes": s[1] || (s[1] = (a) => u("update:selectedScopes", a))
67
- }, null, 8, ["envVariables", "environment", "layout", "securitySchemes", "selectedSecuritySchema", "server"])
62
+ "onUpdate:securityScheme": r[0] || (r[0] = (a) => e.eventBus.emit("auth:update:security-scheme", {
63
+ data: a,
64
+ name: o.value?.id ?? ""
65
+ })),
66
+ "onUpdate:selectedScopes": r[1] || (r[1] = ({ id: a, name: s, scopes: m }) => e.eventBus.emit("auth:update:selected-scopes", {
67
+ id: a,
68
+ name: s,
69
+ scopes: m,
70
+ meta: e.meta
71
+ }))
72
+ }, null, 8, ["envVariables", "environment", "layout", "securitySchemes", "selectedSecuritySchemas", "server"])
68
73
  ]),
69
74
  _: 1
70
- }, 8, ["class"])) : (r(), o("div", {
75
+ }, 8, ["class"])) : (t(), n("div", {
71
76
  key: 2,
72
- class: n([
77
+ class: i([
73
78
  "text-c-3 bg-b-1 flex min-h-16 items-center justify-center border-t px-4 text-sm",
74
79
  e.layout === "reference" && "min-h-[calc(4rem+0.5px)] rounded-b-lg border"
75
80
  ])
@@ -78,5 +83,5 @@ const j = ["onClick"], B = { class: "relative z-10 font-medium whitespace-nowrap
78
83
  }
79
84
  });
80
85
  export {
81
- U as default
86
+ O as default
82
87
  };
@@ -6,7 +6,7 @@ type __VLS_Props = {
6
6
  environment: Environment;
7
7
  envVariables: EnvVariable[];
8
8
  layout: 'client' | 'reference';
9
- selectedSecuritySchema: NonNullable<OpenApiDocument['x-scalar-selected-security']>[number];
9
+ selectedSecuritySchemas: NonNullable<OpenApiDocument['x-scalar-selected-security']>['x-schemes'][number];
10
10
  securitySchemes: NonNullable<ComponentsObject['securitySchemes']>;
11
11
  server: ServerObject | undefined;
12
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue"],"names":[],"mappings":"AAwRA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAEzE,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EAEf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAIrE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAA;AAInG,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,sBAAsB,EAAE,WAAW,CACjC,eAAe,CAAC,4BAA4B,CAAC,CAC9C,CAAC,MAAM,CAAC,CAAA;IACT,eAAe,EAAE,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACjE,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;CACjC,CAAC;;;YAciB,MAAM,EAAE;cAAQ,MAAM;gBAAU,MAAM,EAAE;;;;;YAAxC,MAAM,EAAE;cAAQ,MAAM;gBAAU,MAAM,EAAE;;;;AAuhB3D,wBAOG"}
1
+ {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue"],"names":[],"mappings":"AAuRA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAEzE,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EAEf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAIrE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAA;AAInG,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,uBAAuB,EAAE,WAAW,CAClC,eAAe,CAAC,4BAA4B,CAAC,CAC9C,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;IACtB,eAAe,EAAE,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACjE,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;CACjC,CAAC;;;YAciB,MAAM,EAAE;cAAQ,MAAM;gBAAU,MAAM,EAAE;;;;;YAAxC,MAAM,EAAE;cAAQ,MAAM;gBAAU,MAAM,EAAE;;;;AAqhB3D,wBAOG"}
@@ -14,14 +14,14 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
14
14
  environment: {},
15
15
  envVariables: {},
16
16
  layout: {},
17
- selectedSecuritySchema: {},
17
+ selectedSecuritySchemas: {},
18
18
  securitySchemes: {},
19
19
  server: {}
20
20
  },
21
21
  emits: ["update:securityScheme", "update:selectedScopes"],
22
22
  setup(S, { emit: I }) {
23
23
  const c = I, h = N(
24
- () => Object.entries(S.selectedSecuritySchema).map(([l, e]) => ({
24
+ () => Object.entries(S.selectedSecuritySchemas).map(([l, e]) => ({
25
25
  scheme: K(S.securitySchemes[l]),
26
26
  name: l,
27
27
  scopes: e
@@ -199,7 +199,6 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
199
199
  }, y, {
200
200
  flows: t.flows,
201
201
  proxyUrl: "",
202
- scheme: t,
203
202
  selectedScopes: U,
204
203
  server: l.server,
205
204
  type: d,
@@ -209,11 +208,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
209
208
  payload: g
210
209
  }),
211
210
  "onUpdate:selectedScopes": (g) => c("update:selectedScopes", {
212
- id: Object.keys(l.selectedSecuritySchema),
211
+ id: Object.keys(l.selectedSecuritySchemas),
213
212
  name: m,
214
213
  ...g
215
214
  })
216
- }), null, 16, ["flows", "scheme", "selectedScopes", "server", "type", "onUpdate:securityScheme", "onUpdate:selectedScopes"])) : b("", !0)
215
+ }), null, 16, ["flows", "selectedScopes", "server", "type", "onUpdate:securityScheme", "onUpdate:selectedScopes"])) : b("", !0)
217
216
  ], 64))), 128))
218
217
  ], 64)) : t?.type === "openIdConnect" ? (r(), u("div", {
219
218
  key: 5,
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAEzD,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAY3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY;AAC1B,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAkK/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,eAAe,EACtB,MAAM,MAAM,eAAe,EAC3B,QAAQ,MAAM,EACd,4BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACzB,KACL,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA8F/B,CAAA"}
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAEzD,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAkB3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY;AAC1B,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAkK/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,eAAe,EACtB,MAAM,MAAM,eAAe,EAC3B,QAAQ,MAAM,EACd,4BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACzB,KACL,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA8F/B,CAAA"}
@@ -1,105 +1,107 @@
1
1
  import { shouldUseProxy as U } from "@scalar/oas-utils/helpers";
2
2
  import { encode as A, fromUint8Array as S } from "js-base64";
3
3
  const C = () => {
4
- const s = new Uint8Array(32);
5
- return crypto.getRandomValues(s), S(s, !0);
6
- }, E = async (s, r) => {
7
- if (r === "plain")
8
- return s;
9
- const f = new TextEncoder().encode(s), h = await crypto.subtle.digest("SHA-256", f);
4
+ const a = new Uint8Array(32);
5
+ return crypto.getRandomValues(a), S(a, !0);
6
+ }, E = async (a, t) => {
7
+ if (t === "plain")
8
+ return a;
9
+ if (typeof crypto?.subtle?.digest != "function")
10
+ return console.warn("SHA-256 is only supported when using https, using a plain text code challenge instead."), a;
11
+ const f = new TextEncoder().encode(a), h = await crypto.subtle.digest("SHA-256", f);
10
12
  return S(new Uint8Array(h), !0);
11
- }, z = async (s, r, m, f, h) => {
12
- const i = s[r];
13
+ }, z = async (a, t, m, f, h) => {
14
+ const i = a[t];
13
15
  try {
14
16
  if (!i)
15
17
  return [new Error("Flow not found"), null];
16
18
  const e = m.join(" ");
17
- if (r === "clientCredentials" || r === "password")
18
- return k(s, r, e, {
19
+ if (t === "clientCredentials" || t === "password")
20
+ return k(a, t, e, {
19
21
  proxyUrl: h
20
22
  });
21
- const t = (Math.random() + 1).toString(36).substring(2, 10), c = new URL(s[r].authorizationUrl);
23
+ const r = (Math.random() + 1).toString(36).substring(2, 10), c = new URL(a[t].authorizationUrl);
22
24
  let o = null;
23
- if (r === "implicit")
25
+ if (t === "implicit")
24
26
  c.searchParams.set("response_type", "token");
25
- else if (r === "authorizationCode") {
26
- const a = s[r];
27
- if (c.searchParams.set("response_type", "code"), a["x-usePkce"] !== "no") {
28
- const n = C(), l = await E(n, a["x-usePkce"]);
27
+ else if (t === "authorizationCode") {
28
+ const s = a[t];
29
+ if (c.searchParams.set("response_type", "code"), s["x-usePkce"] !== "no") {
30
+ const n = C(), l = await E(n, s["x-usePkce"]);
29
31
  o = {
30
32
  codeVerifier: n,
31
33
  codeChallenge: l,
32
- codeChallengeMethod: a["x-usePkce"] === "SHA-256" ? "S256" : "plain"
34
+ codeChallengeMethod: s["x-usePkce"] === "SHA-256" ? "S256" : "plain"
33
35
  }, c.searchParams.set("code_challenge", l), c.searchParams.set("code_challenge_method", o.codeChallengeMethod);
34
36
  }
35
37
  }
36
- const w = s[r];
38
+ const w = a[t];
37
39
  if (w["x-scalar-secret-redirect-uri"].startsWith("/")) {
38
- const a = f.url || window.location.origin + window.location.pathname, n = new URL(w["x-scalar-secret-redirect-uri"], a).toString();
40
+ const s = f.url || window.location.origin + window.location.pathname, n = new URL(w["x-scalar-secret-redirect-uri"], s).toString();
39
41
  c.searchParams.set("redirect_uri", n);
40
42
  } else
41
43
  c.searchParams.set("redirect_uri", w["x-scalar-secret-redirect-uri"]);
42
- i["x-scalar-security-query"] && Object.keys(i["x-scalar-security-query"]).forEach((a) => {
43
- const n = i["x-scalar-security-query"]?.[a];
44
- n && c.searchParams.set(a, n);
45
- }), c.searchParams.set("client_id", i["x-scalar-secret-client-id"]), c.searchParams.set("state", t), e && c.searchParams.set("scope", e);
44
+ i["x-scalar-security-query"] && Object.keys(i["x-scalar-security-query"]).forEach((s) => {
45
+ const n = i["x-scalar-security-query"]?.[s];
46
+ n && c.searchParams.set(s, n);
47
+ }), c.searchParams.set("client_id", i["x-scalar-secret-client-id"]), c.searchParams.set("state", r), e && c.searchParams.set("scope", e);
46
48
  const d = window.open(c, "openAuth2Window", "left=100,top=100,width=800,height=600");
47
- return d ? new Promise((a) => {
49
+ return d ? new Promise((s) => {
48
50
  const n = setInterval(() => {
49
- let l = null, g = null, x = null, _ = null;
51
+ let l = null, g = null, x = null, p = null;
50
52
  try {
51
53
  const u = new URL(d.location.href).searchParams, y = i["x-tokenName"] || "access_token";
52
- l = u.get(y), g = u.get("code"), x = u.get("error"), _ = u.get("error_description");
53
- const p = new URLSearchParams(d.location.href.split("#")[1]);
54
- l ||= p.get(y), g ||= p.get("code"), x ||= p.get("error"), _ ||= p.get("error_description");
54
+ l = u.get(y), g = u.get("code"), x = u.get("error"), p = u.get("error_description");
55
+ const _ = new URLSearchParams(d.location.href.split("#")[1]);
56
+ l ||= _.get(y), g ||= _.get("code"), x ||= _.get("error"), p ||= _.get("error_description");
55
57
  } catch {
56
58
  }
57
59
  if (d.closed || l || g || x)
58
60
  if (clearInterval(n), d.close(), x)
59
- a([new Error(`OAuth error: ${x}${_ ? ` (${_})` : ""}`), null]);
61
+ s([new Error(`OAuth error: ${x}${p ? ` (${p})` : ""}`), null]);
60
62
  else if (l) {
61
63
  const u = d.location.href.match(/state=([^&]*)/)?.[1];
62
- a(u === t ? [null, l] : [new Error("State mismatch"), null]);
63
- } else g && r === "authorizationCode" ? new URL(d.location.href).searchParams.get("state") === t ? k(s, r, e, {
64
+ s(u === r ? [null, l] : [new Error("State mismatch"), null]);
65
+ } else g && t === "authorizationCode" ? new URL(d.location.href).searchParams.get("state") === r ? k(a, t, e, {
64
66
  code: g,
65
67
  pkce: o,
66
68
  proxyUrl: h
67
- }).then(a) : a([new Error("State mismatch"), null]) : (clearInterval(n), a([new Error("Window was closed without granting authorization"), null]));
69
+ }).then(s) : s([new Error("State mismatch"), null]) : (clearInterval(n), s([new Error("Window was closed without granting authorization"), null]));
68
70
  }, 200);
69
71
  }) : [new Error("Failed to open auth window"), null];
70
72
  } catch {
71
73
  return [new Error("Failed to authorize oauth2 flow"), null];
72
74
  }
73
- }, k = async (s, r, m, {
75
+ }, k = async (a, t, m, {
74
76
  code: f,
75
77
  pkce: h,
76
78
  proxyUrl: i
77
79
  } = {}) => {
78
- const e = s[r];
80
+ const e = a[t];
79
81
  if (!e)
80
82
  return [new Error("OAuth2 flow was not defined"), null];
81
- const t = new URLSearchParams();
82
- if (t.set("client_id", e["x-scalar-secret-client-id"]), m && (r === "clientCredentials" || r === "password") && t.set("scope", m), e["x-scalar-secret-client-secret"] && (!e["x-scalar-credentials-location"] || e["x-scalar-credentials-location"] === "body") && t.set("client_secret", e["x-scalar-secret-client-secret"]), "x-scalar-secret-redirect-uri" in e && e["x-scalar-secret-redirect-uri"] && t.set("redirect_uri", e["x-scalar-secret-redirect-uri"]), f)
83
- t.set("code", f), t.set("grant_type", "authorization_code"), h && t.set("code_verifier", h.codeVerifier);
84
- else if (r === "password") {
85
- const o = s[r];
86
- t.set("grant_type", "password"), t.set("username", o["x-scalar-secret-username"]), t.set("password", o["x-scalar-secret-password"]);
83
+ const r = new URLSearchParams();
84
+ if (r.set("client_id", e["x-scalar-secret-client-id"]), m && (t === "clientCredentials" || t === "password") && r.set("scope", m), e["x-scalar-secret-client-secret"] && (!e["x-scalar-credentials-location"] || e["x-scalar-credentials-location"] === "body") && r.set("client_secret", e["x-scalar-secret-client-secret"]), "x-scalar-secret-redirect-uri" in e && e["x-scalar-secret-redirect-uri"] && r.set("redirect_uri", e["x-scalar-secret-redirect-uri"]), f)
85
+ r.set("code", f), r.set("grant_type", "authorization_code"), h && r.set("code_verifier", h.codeVerifier);
86
+ else if (t === "password") {
87
+ const o = a[t];
88
+ r.set("grant_type", "password"), r.set("username", o["x-scalar-secret-username"]), r.set("password", o["x-scalar-secret-password"]);
87
89
  } else
88
- t.set("grant_type", "client_credentials");
90
+ r.set("grant_type", "client_credentials");
89
91
  e["x-scalar-security-body"] && Object.entries(e["x-scalar-security-body"]).forEach(([o, w]) => {
90
- w && t.set(o, w);
92
+ w && r.set(o, w);
91
93
  });
92
94
  try {
93
95
  const o = {
94
96
  "Content-Type": "application/x-www-form-urlencoded"
95
97
  };
96
98
  e["x-scalar-secret-client-secret"] && (!e["x-scalar-credentials-location"] || e["x-scalar-credentials-location"] === "header") && (o.Authorization = `Basic ${A(`${e["x-scalar-secret-client-id"]}:${e["x-scalar-secret-client-secret"]}`)}`);
97
- const P = U(i, e.tokenUrl) ? `${i}?${new URLSearchParams([["scalar_url", e.tokenUrl]]).toString()}` : e.tokenUrl, a = await (await fetch(P, {
99
+ const P = U(i, e.tokenUrl) ? `${i}?${new URLSearchParams([["scalar_url", e.tokenUrl]]).toString()}` : e.tokenUrl, s = await (await fetch(P, {
98
100
  method: "POST",
99
101
  headers: o,
100
- body: t
102
+ body: r
101
103
  })).json(), n = e["x-tokenName"] || "access_token";
102
- return [null, a[n]];
104
+ return [null, s[n]];
103
105
  } catch {
104
106
  return [new Error("Failed to get an access token. Please check your credentials."), null];
105
107
  }
@@ -1,24 +1,24 @@
1
- import type { ComponentsObject, OpenApiDocument, SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
1
+ import type { ComponentsObject, OpenApiDocument, SecurityRequirementObject, SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  /** Format a scheme object into a display object */
3
3
  export declare const formatScheme: ({ name, type, value, }: {
4
4
  name: string;
5
5
  type: SecuritySchemeObject["type"] | "complex";
6
- value: NonNullable<OpenApiDocument["x-scalar-selected-security"]>[number];
6
+ value: SecurityRequirementObject;
7
7
  }) => {
8
8
  id: string;
9
9
  label: string;
10
- value: import("@scalar/workspace-store/schemas/v3.1/strict/security-requirement").SecurityRequirementObject;
10
+ value: SecurityRequirementObject;
11
11
  };
12
12
  /** Formats complex security schemes */
13
13
  export declare const formatComplexScheme: (scheme: NonNullable<OpenApiDocument["security"]>[number]) => {
14
14
  id: string;
15
15
  label: string;
16
- value: import("@scalar/workspace-store/schemas/v3.1/strict/security-requirement").SecurityRequirementObject;
16
+ value: SecurityRequirementObject;
17
17
  };
18
18
  export type SecuritySchemeOption = {
19
19
  id: string;
20
20
  label: string;
21
- value: NonNullable<OpenApiDocument['x-scalar-selected-security']>[number];
21
+ value: SecurityRequirementObject;
22
22
  isDeletable?: boolean;
23
23
  payload?: SecuritySchemeObject;
24
24
  };
@@ -1 +1 @@
1
- {"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACrB,MAAM,8DAA8D,CAAA;AAIrE,mDAAmD;AACnD,eAAO,MAAM,YAAY,GAAI,wBAI1B;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;IAC9C,KAAK,EAAE,WAAW,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;CAC1E;;;;CAIC,CAAA;AAEF,uCAAuC;AACvC,eAAO,MAAM,mBAAmB,GAAI,QAAQ,WAAW,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC;;;;CASzF,CAAA;AAEH,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,WAAW,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;IACzE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,oBAAoB,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,oBAAoB,EAAE,CAAA;CAChC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,WAAW,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,EAClD,iBAAiB,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,EACjE,aAAY,OAAe,KAC1B,oBAAoB,EAAE,GAAG,mBAAmB,EA6D9C,CAAA"}
1
+ {"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,8DAA8D,CAAA;AAIrE,mDAAmD;AACnD,eAAO,MAAM,YAAY,GAAI,wBAI1B;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;IAC9C,KAAK,EAAE,yBAAyB,CAAA;CACjC;;;;CAIC,CAAA;AAEF,uCAAuC;AACvC,eAAO,MAAM,mBAAmB,GAAI,QAAQ,WAAW,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC;;;;CASzF,CAAA;AAEH,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,yBAAyB,CAAA;IAChC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,oBAAoB,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,oBAAoB,EAAE,CAAA;CAChC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,WAAW,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,EAClD,iBAAiB,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,EACjE,aAAY,OAAe,KAC1B,oBAAoB,EAAE,GAAG,mBAAmB,EA6D9C,CAAA"}
@@ -1,5 +1,5 @@
1
- import { isDefined as c } from "@scalar/oas-utils/helpers";
2
- import { getResolvedRef as u } from "@scalar/workspace-store/helpers/get-resolved-ref";
1
+ import { isDefined as u } from "@scalar/oas-utils/helpers";
2
+ import { getResolvedRef as c } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
3
  import { authOptions as d } from "./auth-options.js";
4
4
  const l = ({
5
5
  name: o,
@@ -21,21 +21,21 @@ const l = ({
21
21
  if (t.length > 1)
22
22
  return m(e);
23
23
  if (t[0]) {
24
- const p = u(n[t[0]]);
24
+ const p = c(n[t[0]]);
25
25
  return p ? l({ name: t[0], type: p.type, value: e }) : void 0;
26
26
  }
27
- }).filter(c), s = Object.keys(n).filter((e) => !r.some((t) => t.id === e)).map((e) => {
28
- const t = u(n[e]);
27
+ }).filter(u), s = Object.keys(n).filter((e) => !r.some((t) => t.id === e)).map((e) => {
28
+ const t = c(n[e]);
29
29
  if (t)
30
30
  return l({ name: e, type: t.type, value: { [e]: [] } });
31
- }).filter(c), a = [
31
+ }).filter(u), a = [
32
32
  { label: "Required authentication", options: r },
33
33
  { label: "Available authentication", options: s }
34
34
  ];
35
35
  return i ? r.length ? a : s : (a.push({
36
36
  label: "Add new authentication",
37
37
  options: Object.entries(d).map(([e, t]) => ({
38
- id: e,
38
+ id: `@unique/${e}`,
39
39
  label: t.label,
40
40
  value: { [e]: [] },
41
41
  payload: t.payload,
@@ -1,5 +1,7 @@
1
1
  import type { HttpMethod } from '@scalar/helpers/http/http-methods';
2
2
  import type { Environment } from '@scalar/oas-utils/entities/environment';
3
+ import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
4
+ import type { AuthMeta } from '@scalar/workspace-store/mutators';
3
5
  import type { OpenApiDocument, OperationObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
4
6
  import type { ClientLayout } from '../../../../hooks/index.js';
5
7
  import type { EnvVariable } from '../../../../store/index.js';
@@ -11,10 +13,10 @@ type __VLS_Props = {
11
13
  path: string;
12
14
  /** Operation object */
13
15
  operation: OperationObject;
16
+ /** Meta information for the auth update */
17
+ authMeta?: AuthMeta;
14
18
  /** Currently selected example key for the current operation */
15
19
  exampleKey: string;
16
- /** Currently selected content type for the current operation example */
17
- selectedContentType?: string;
18
20
  /** Document defined security schemes */
19
21
  securitySchemes: NonNullable<OpenApiDocument['components']>['securitySchemes'];
20
22
  /** Currently selected security for the current operation */
@@ -27,16 +29,11 @@ type __VLS_Props = {
27
29
  layout: ClientLayout;
28
30
  /** Registered app plugins */
29
31
  plugins?: ClientPlugin[];
32
+ eventBus: WorkspaceEventBus;
30
33
  /** TODO: remove when we migrate */
31
34
  environment: Environment;
32
35
  envVariables: EnvVariable[];
33
36
  };
34
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
- [x: string]: any;
36
- } & {
37
- [x: string]: any;
38
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
39
- [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
40
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
38
  export default _default;
42
39
  //# sourceMappingURL=OperationBlock.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationBlock.vue"],"names":[],"mappings":"AAidA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAGzE,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EAGf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAM1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhD,KAAK,WAAW,GAAG;IACjB,uBAAuB;IACvB,MAAM,EAAE,UAAU,CAAA;IAClB,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,uBAAuB;IACvB,SAAS,EAAE,eAAe,CAAA;IAC1B,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAA;IAClB,wEAAwE;IACxE,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,wCAAwC;IACxC,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,4DAA4D;IAC5D,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,mDAAmD;IACnD,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,6EAA6E;IAC7E,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IAExB,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;;;;AAkqBF,wBAOG"}
1
+ {"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationBlock.vue"],"names":[],"mappings":"AAucA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAEzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAK1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhD,KAAK,WAAW,GAAG;IACjB,uBAAuB;IACvB,MAAM,EAAE,UAAU,CAAA;IAClB,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,uBAAuB;IACvB,SAAS,EAAE,eAAe,CAAA;IAC1B,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAA;IAClB,wCAAwC;IACxC,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,4DAA4D;IAC5D,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,mDAAmD;IACnD,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,6EAA6E;IAC7E,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IAExB,QAAQ,EAAE,iBAAiB,CAAA;IAE3B,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;AAuoBF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./OperationBlock.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a58f7b6a"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6ab70e2e"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };