@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,88 @@
1
- import { defineComponent as h, computed as i, ref as v, createElementBlock as x, openBlock as a, Fragment as E, createElementVNode as c, createVNode as m, unref as p, withCtx as k, createBlock as s, withDirectives as B, vShow as V, KeepAlive as T, resolveDynamicComponent as W } from "vue";
2
- import { ScalarTeleportRoot as g } from "@scalar/components";
3
- import { getThemeStyles as C } from "@scalar/themes";
4
- import { useColorMode as O } from "@scalar/use-hooks/useColorMode";
5
- import { createWorkspaceEventBus as D } from "@scalar/workspace-store/events";
1
+ import { defineComponent as g, computed as r, ref as f, createElementBlock as B, openBlock as n, Fragment as N, createElementVNode as p, createVNode as c, unref as d, withCtx as k, createBlock as m, withDirectives as V, vShow as C, KeepAlive as T, resolveDynamicComponent as W } from "vue";
2
+ import { ScalarTeleportRoot as M } from "@scalar/components";
3
+ import { isHttpMethod as O } from "@scalar/helpers/http/is-http-method";
4
+ import { getThemeStyles as U } from "@scalar/themes";
5
+ import { useColorMode as D } from "@scalar/use-hooks/useColorMode";
6
+ import { createWorkspaceEventBus as R } from "@scalar/workspace-store/events";
6
7
  import { xScalarEnvironmentSchema as w } from "@scalar/workspace-store/schemas/extensions/document/x-scalar-environments";
7
- import { coerceValue as f } from "@scalar/workspace-store/schemas/typebox-coerce";
8
- import { useRoute as M, RouterView as U } from "vue-router";
9
- import { useWorkspaceClientEvents as A } from "../../hooks/use-workspace-client-events.js";
10
- import R from "./components/AppSidebar.vue.js";
11
- import H from "./components/DesktopTabs.vue.js";
12
- import L from "./components/WebTopNav.vue.js";
13
- const N = ["innerHTML"], $ = { class: "flex flex-1" }, j = { class: "bg-b-1 flex flex-1 flex-col" }, F = {}, ee = /* @__PURE__ */ h({
14
- ...F,
8
+ import { coerceValue as S } from "@scalar/workspace-store/schemas/typebox-coerce";
9
+ import { useRoute as A, RouterView as H } from "vue-router";
10
+ import { useWorkspaceClientEvents as I } from "../../hooks/use-workspace-client-events.js";
11
+ import L from "./components/AppSidebar.vue.js";
12
+ import P from "./components/DesktopTabs.vue.js";
13
+ import $ from "./components/WebTopNav.vue.js";
14
+ const j = ["innerHTML"], F = { class: "flex flex-1" }, K = { class: "bg-b-1 flex flex-1 flex-col" }, q = {}, ne = /* @__PURE__ */ g({
15
+ ...q,
15
16
  __name: "App",
16
17
  props: {
17
18
  layout: {},
18
19
  workspaceStore: {}
19
20
  },
20
- setup(r) {
21
- O(), typeof window < "u" && (window.dataDumpWorkspace = () => r.workspaceStore);
22
- const S = i(() => {
23
- const e = r.workspaceStore.workspace["x-scalar-theme"];
24
- return e ? `<style>${C(e)}</style>` : "";
25
- }), n = v("default"), l = v(!0), d = D(), b = M(), u = i(
26
- () => r.workspaceStore.workspace.documents[b.params.documentSlug] ?? Object.values(r.workspaceStore.workspace.documents)[0] ?? null
27
- );
28
- A(d, u, r.workspaceStore);
29
- const y = i(() => {
30
- const e = r.workspaceStore.workspace["x-scalar-active-environment"];
21
+ setup(a) {
22
+ D(), typeof window < "u" && (window.dataDumpWorkspace = () => a.workspaceStore);
23
+ const h = r(() => {
24
+ const e = a.workspaceStore.workspace["x-scalar-theme"];
25
+ return e ? `<style>${U(e)}</style>` : "";
26
+ }), s = f("default"), i = f(!0), v = R(), l = A(), u = r(
27
+ () => a.workspaceStore.workspace.documents[l.params.documentSlug] ?? Object.values(a.workspaceStore.workspace.documents)[0] ?? null
28
+ ), b = r(() => {
29
+ const e = l.params.pathEncoded;
30
+ return e && typeof e == "string" ? decodeURIComponent(e) : void 0;
31
+ }), y = r(() => {
32
+ const e = l.params.method;
33
+ return e && typeof e == "string" && O(e) ? e : void 0;
34
+ }), x = r(() => {
35
+ const e = l.params.exampleName;
36
+ return e && typeof e == "string" ? e : void 0;
37
+ });
38
+ I(v, u, a.workspaceStore);
39
+ const E = r(() => {
40
+ const e = a.workspaceStore.workspace["x-scalar-active-environment"];
31
41
  if (!e)
32
- return f(w, {});
33
- const t = r.workspaceStore.workspace["x-scalar-environments"]?.[e] ?? { variables: [] }, o = u.value?.["x-scalar-environments"]?.[e] ?? { variables: [] };
34
- return f(w, {
42
+ return S(w, {});
43
+ const t = a.workspaceStore.workspace["x-scalar-environments"]?.[e] ?? { variables: [] }, o = u.value?.["x-scalar-environments"]?.[e] ?? { variables: [] };
44
+ return S(w, {
35
45
  ...t,
36
46
  ...o,
37
47
  variables: [...t.variables, ...o.variables]
38
48
  });
39
49
  });
40
- return (e, t) => (a(), x(E, null, [
41
- c("div", { innerHTML: S.value }, null, 8, N),
42
- m(p(g), null, {
50
+ return (e, t) => (n(), B(N, null, [
51
+ p("div", { innerHTML: h.value }, null, 8, j),
52
+ c(d(M), null, {
43
53
  default: k(() => [
44
- e.layout === "desktop" ? (a(), s(H, { key: 0 })) : (a(), s(L, {
54
+ e.layout === "desktop" ? (n(), m(P, { key: 0 })) : (n(), m($, {
45
55
  key: 1,
46
- modelValue: n.value,
47
- "onUpdate:modelValue": t[0] || (t[0] = (o) => n.value = o)
56
+ modelValue: s.value,
57
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => s.value = o)
48
58
  }, null, 8, ["modelValue"])),
49
- c("main", $, [
50
- B(m(R, {
51
- isSidebarOpen: l.value,
52
- "onUpdate:isSidebarOpen": t[1] || (t[1] = (o) => l.value = o),
53
- workspace: n.value,
54
- "onUpdate:workspace": t[2] || (t[2] = (o) => n.value = o),
59
+ p("main", F, [
60
+ V(c(L, {
61
+ isSidebarOpen: i.value,
62
+ "onUpdate:isSidebarOpen": t[1] || (t[1] = (o) => i.value = o),
63
+ workspace: s.value,
64
+ "onUpdate:workspace": t[2] || (t[2] = (o) => s.value = o),
55
65
  documents: e.workspaceStore.workspace.documents,
56
66
  layout: e.layout,
57
67
  sidebarWidth: e.workspaceStore.workspace["x-scalar-sidebar-width"] ?? 288,
58
68
  "onUpdate:sidebarWidth": t[3] || (t[3] = (o) => e.workspaceStore.update("x-scalar-sidebar-width", o))
59
69
  }, null, 8, ["isSidebarOpen", "workspace", "documents", "layout", "sidebarWidth"]), [
60
- [V, l.value]
70
+ [C, i.value]
61
71
  ]),
62
- c("div", j, [
63
- m(p(U), null, {
72
+ p("div", K, [
73
+ c(d(H), null, {
64
74
  default: k(({ Component: o }) => [
65
- (a(), s(T, null, [
66
- (a(), s(W(o), {
75
+ (n(), m(T, null, [
76
+ (n(), m(W(o), {
67
77
  document: u.value,
68
- environment: y.value,
69
- eventBus: p(d),
78
+ environment: E.value,
79
+ eventBus: d(v),
70
80
  layout: e.layout,
71
- workspaceStore: e.workspaceStore
72
- }, null, 8, ["document", "environment", "eventBus", "layout", "workspaceStore"]))
81
+ workspaceStore: e.workspaceStore,
82
+ path: b.value,
83
+ method: y.value,
84
+ exampleName: x.value
85
+ }, null, 8, ["document", "environment", "eventBus", "layout", "workspaceStore", "path", "method", "exampleName"]))
73
86
  ], 1024))
74
87
  ]),
75
88
  _: 1
@@ -83,5 +96,5 @@ const N = ["innerHTML"], $ = { class: "flex flex-1" }, j = { class: "bg-b-1 flex
83
96
  }
84
97
  });
85
98
  export {
86
- ee as default
99
+ ne as default
87
100
  };
@@ -5,7 +5,7 @@ type __VLS_Props = {
5
5
  documents: Record<string, WorkspaceDocument>;
6
6
  };
7
7
  type __VLS_PublicProps = __VLS_Props & {
8
- /** Propogate up the workspace model to the parent */
8
+ /** Propagate up the workspace model to the parent */
9
9
  'workspace': string;
10
10
  /** Controls the visibility of the sidebar */
11
11
  'isSidebarOpen': boolean;
@@ -1,7 +1,7 @@
1
1
  import o from "./AppSidebar.vue2.js";
2
2
  /* empty css */
3
3
  import p from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ p(o, [["__scopeId", "data-v-ac7678e4"]]);
4
+ const m = /* @__PURE__ */ p(o, [["__scopeId", "data-v-0a390d33"]]);
5
5
  export {
6
- e as default
6
+ m as default
7
7
  };
@@ -1,3 +1,4 @@
1
+ import type { HttpMethod } from '@scalar/helpers/http/http-methods';
1
2
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
3
  import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
3
4
  import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
@@ -8,6 +9,9 @@ export type RouteProps = {
8
9
  document: WorkspaceDocument | null;
9
10
  eventBus: WorkspaceEventBus;
10
11
  layout: ClientLayout;
12
+ path?: string;
13
+ method?: HttpMethod;
14
+ exampleName?: string;
11
15
  environment: XScalarEnvironment;
12
16
  workspaceStore: WorkspaceStore;
13
17
  };
@@ -33,7 +37,7 @@ export declare const ROUTES: ({
33
37
  children: ({
34
38
  name: string;
35
39
  path: string;
36
- component: () => Promise<typeof import("../../../../v2/components/TempReplaceMe.vue.js")>;
40
+ component: () => Promise<typeof import("../../../../v2/features/operation/Operation.vue.js")>;
37
41
  children?: undefined;
38
42
  } | {
39
43
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAGlF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,kDAAkD;AAClD,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,MAAM,EAAE,YAAY,CAAA;IACpB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,cAAc,EAAE,cAAc,CAAA;CAM/B,CAAA;AAED,oCAAoC;AACpC,MAAM,MAAM,eAAe,GAAG,UAAU,GACtC,CACI;IACE,cAAc,EAAE,UAAU,CAAA;IAC1B,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GACD;IACE,cAAc,EAAE,WAAW,CAAA;IAC3B,QAAQ,EAAE,IAAI,CAAA;CACf,CACJ,CAAA;AAEH,kFAAkF;AAClF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyGS,CAAA"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAGlF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,kDAAkD;AAClD,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,cAAc,EAAE,cAAc,CAAA;CAG/B,CAAA;AAED,oCAAoC;AACpC,MAAM,MAAM,eAAe,GAAG,UAAU,GACtC,CACI;IACE,cAAc,EAAE,UAAU,CAAA;IAC1B,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GACD;IACE,cAAc,EAAE,WAAW,CAAA;IAC3B,QAAQ,EAAE,IAAI,CAAA;CACf,CACJ,CAAA;AAEH,kFAAkF;AAClF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyGS,CAAA"}
@@ -15,7 +15,7 @@ const e = [
15
15
  {
16
16
  name: "example",
17
17
  path: "path/:pathEncoded/method/:method/example/:exampleName",
18
- component: () => import("../../../components/TempReplaceMe.vue.js")
18
+ component: () => import("../../operation/Operation.vue2.js")
19
19
  },
20
20
  // Document Page
21
21
  {
@@ -1,8 +1,8 @@
1
- import { defineComponent as p, computed as c, createElementBlock as d, openBlock as r, createElementVNode as t, createVNode as n, withCtx as a, unref as s, createBlock as f, KeepAlive as v, resolveDynamicComponent as x } from "vue";
2
- import { ScalarButton as w } from "@scalar/components";
3
- import { LibraryIcon as y } from "@scalar/icons/library";
4
- import { RouterView as b } from "vue-router";
5
- import h from "../../../components/IconSelector.vue.js";
1
+ import { defineComponent as f, computed as c, createElementBlock as d, openBlock as a, createElementVNode as t, createVNode as n, withCtx as r, unref as s, createBlock as p, KeepAlive as v, resolveDynamicComponent as x } from "vue";
2
+ import { ScalarButton as h } from "@scalar/components";
3
+ import { LibraryIcon as w } from "@scalar/icons/library";
4
+ import { RouterView as y } from "vue-router";
5
+ import b from "../../../components/IconSelector.vue.js";
6
6
  import k from "./components/LabelInput.vue.js";
7
7
  import _ from "./components/Tabs.vue.js";
8
8
  const B = {
@@ -11,41 +11,44 @@ const B = {
11
11
  }, V = ["aria-label"], g = { class: "flex flex-row items-center gap-2" }, S = { class: "group relative ml-1.25" }, C = { class: "px-1.5 pt-8" }, D = {
12
12
  key: 1,
13
13
  class: "flex w-full flex-1 items-center justify-center"
14
- }, I = {
14
+ }, N = {
15
15
  name: "DocumentCollection"
16
- }, q = /* @__PURE__ */ p({
17
- ...I,
16
+ }, q = /* @__PURE__ */ f({
17
+ ...N,
18
18
  props: {
19
19
  document: {},
20
20
  eventBus: {},
21
21
  layout: {},
22
+ path: {},
23
+ method: {},
24
+ exampleName: {},
22
25
  environment: {},
23
26
  workspaceStore: {}
24
27
  },
25
28
  setup(u) {
26
- const i = c(() => u.document?.info?.title || "Untitled Document"), m = c(
29
+ const m = c(() => u.document?.info?.title || "Untitled Document"), i = c(
27
30
  () => u.document?.["x-scalar-client-config-icon"] || "interface-content-folder"
28
31
  );
29
- return (e, o) => e.document ? (r(), d("div", B, [
32
+ return (e, o) => e.document ? (a(), d("div", B, [
30
33
  t("div", {
31
- "aria-label": `title: ${i.value}`,
34
+ "aria-label": `title: ${m.value}`,
32
35
  class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
33
36
  }, [
34
37
  t("div", g, [
35
- n(h, {
36
- modelValue: m.value,
38
+ n(b, {
39
+ modelValue: i.value,
37
40
  placement: "bottom-start",
38
41
  "onUpdate:modelValue": o[0] || (o[0] = (l) => e.eventBus.emit("document:update:icon", l))
39
42
  }, {
40
- default: a(() => [
41
- n(s(w), {
43
+ default: r(() => [
44
+ n(s(h), {
42
45
  class: "hover:bg-b-2 aspect-square h-7 w-7 cursor-pointer rounded border border-transparent p-0 hover:border-inherit",
43
46
  variant: "ghost"
44
47
  }, {
45
- default: a(() => [
46
- n(s(y), {
48
+ default: r(() => [
49
+ n(s(w), {
47
50
  class: "text-c-2 size-5",
48
- src: m.value,
51
+ src: i.value,
49
52
  "stroke-width": "2"
50
53
  }, null, 8, ["src"])
51
54
  ]),
@@ -59,17 +62,17 @@ const B = {
59
62
  n(k, {
60
63
  class: "text-xl font-bold",
61
64
  inputId: "documentName",
62
- modelValue: i.value,
65
+ modelValue: m.value,
63
66
  "onUpdate:modelValue": o[1] || (o[1] = (l) => e.eventBus.emit("document:update:info", { title: l }))
64
67
  }, null, 8, ["modelValue"])
65
68
  ])
66
69
  ], 8, V),
67
70
  n(_, { type: "document" }),
68
71
  t("div", C, [
69
- n(s(b), null, {
70
- default: a(({ Component: l }) => [
71
- (r(), f(v, null, [
72
- (r(), f(x(l), {
72
+ n(s(y), null, {
73
+ default: r(({ Component: l }) => [
74
+ (a(), p(v, null, [
75
+ (a(), p(x(l), {
73
76
  collectionType: "document",
74
77
  document: e.document,
75
78
  environment: e.environment,
@@ -82,7 +85,7 @@ const B = {
82
85
  _: 1
83
86
  })
84
87
  ])
85
- ])) : (r(), d("div", D, [...o[2] || (o[2] = [
88
+ ])) : (a(), d("div", D, [...o[2] || (o[2] = [
86
89
  t("div", { class: "flex h-full flex-col items-center justify-center" }, [
87
90
  t("h1", { class: "text-2xl font-bold" }, "Document not found"),
88
91
  t("p", { class: "text-gray-500" }, " The document you are looking for does not exist. ")
@@ -1,14 +1,17 @@
1
- import { defineComponent as s, createElementBlock as c, openBlock as r, createElementVNode as e, createVNode as t, unref as l, toDisplayString as n } from "vue";
2
- import { ScalarIconGlobe as p } from "@scalar/icons";
3
- import { RouterView as i } from "vue-router";
4
- import m from "./components/Tabs.vue.js";
5
- const u = { class: "w-full md:mx-auto md:max-w-[720px]" }, f = ["aria-label"], _ = { class: "flex flex-col gap-12 px-1.5 pt-8" }, d = {}, B = /* @__PURE__ */ s({
6
- ...d,
1
+ import { defineComponent as s, createElementBlock as c, openBlock as r, createElementVNode as e, createVNode as t, unref as l, toDisplayString as p } from "vue";
2
+ import { ScalarIconGlobe as n } from "@scalar/icons";
3
+ import { RouterView as m } from "vue-router";
4
+ import i from "./components/Tabs.vue.js";
5
+ const u = { class: "w-full md:mx-auto md:max-w-[720px]" }, d = ["aria-label"], f = { class: "flex flex-col gap-12 px-1.5 pt-8" }, _ = {}, B = /* @__PURE__ */ s({
6
+ ..._,
7
7
  __name: "WorkspaceCollection",
8
8
  props: {
9
9
  document: {},
10
10
  eventBus: {},
11
11
  layout: {},
12
+ path: {},
13
+ method: {},
14
+ exampleName: {},
12
15
  environment: {},
13
16
  workspaceStore: {}
14
17
  },
@@ -19,14 +22,14 @@ const u = { class: "w-full md:mx-auto md:max-w-[720px]" }, f = ["aria-label"], _
19
22
  "aria-label": `title: ${o}`,
20
23
  class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
21
24
  }, [
22
- t(l(p), { class: "text-c-2 size-6" }),
25
+ t(l(n), { class: "text-c-2 size-6" }),
23
26
  e("div", { class: "group relative ml-1.25" }, [
24
- e("span", { class: "text-c-1 flex h-8 items-center" }, n(o))
27
+ e("span", { class: "text-c-1 flex h-8 items-center" }, p(o))
25
28
  ])
26
- ], 8, f),
27
- t(m, { type: "workspace" }),
28
- e("div", _, [
29
- t(l(i), {
29
+ ], 8, d),
30
+ t(i, { type: "workspace" }),
31
+ e("div", f, [
32
+ t(l(m), {
30
33
  eventBus: a.eventBus,
31
34
  layout: a.layout,
32
35
  type: "workspace"
@@ -1,47 +1,26 @@
1
1
  import type { Environment } from '@scalar/oas-utils/entities/environment';
2
- import type { OpenApiDocument, SecuritySchemeObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
+ import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
3
+ import type { OpenApiDocument, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
4
  import type { EnvVariable } from '../../../../store/index.js';
4
- import type { UpdateSecuritySchemeEvent } from '../../../../v2/blocks/scalar-auth-selector-block/event-types';
5
5
  type __VLS_Props = {
6
6
  /** Should use document security */
7
7
  useDocumentSecurity: boolean;
8
8
  /** Security requirements for the document */
9
9
  security: OpenApiDocument['security'];
10
10
  /** Currently selected security requirements */
11
- selectedSecurity: OpenApiDocument['security'];
11
+ selectedSecurity: OpenApiDocument['x-scalar-selected-security'];
12
12
  /** Security schemes available in the document */
13
13
  securitySchemes: NonNullable<OpenApiDocument['components']>['securitySchemes'];
14
14
  /** Currently selected server */
15
15
  server: ServerObject | undefined;
16
+ eventBus: WorkspaceEventBus;
16
17
  /** TODO: remove when we migrate */
17
18
  environment: Environment;
18
19
  envVariables: EnvVariable[];
19
20
  };
20
21
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
21
- "update:selectedScopes": (payload: {
22
- id: string[];
23
- name: string;
24
- scopes: string[];
25
- }) => any;
26
- "update:securityScheme": (payload: UpdateSecuritySchemeEvent) => any;
27
- deleteOperationAuth: (names: string[]) => any;
28
- "update:selectedSecurity": (payload: {
29
- value: NonNullable<OpenApiDocument["x-scalar-selected-security"]>;
30
- create: SecuritySchemeObject[];
31
- }) => any;
32
22
  "update:useDocumentSecurity": (value: boolean) => any;
33
23
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
34
- "onUpdate:selectedScopes"?: ((payload: {
35
- id: string[];
36
- name: string;
37
- scopes: string[];
38
- }) => any) | undefined;
39
- "onUpdate:securityScheme"?: ((payload: UpdateSecuritySchemeEvent) => any) | undefined;
40
- onDeleteOperationAuth?: ((names: string[]) => any) | undefined;
41
- "onUpdate:selectedSecurity"?: ((payload: {
42
- value: NonNullable<OpenApiDocument["x-scalar-selected-security"]>;
43
- create: SecuritySchemeObject[];
44
- }) => any) | undefined;
45
24
  "onUpdate:useDocumentSecurity"?: ((value: boolean) => any) | undefined;
46
25
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
47
26
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Authentication.vue"],"names":[],"mappings":"AAoGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAA;AAEnG,KAAK,WAAW,GAAG;IACjB,mCAAmC;IACnC,mBAAmB,EAAE,OAAO,CAAA;IAE5B,6CAA6C;IAC7C,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,+CAA+C;IAC/C,gBAAgB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IAC7C,iDAAiD;IACjD,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAEhC,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;YAWiB,MAAM,EAAE;cAAQ,MAAM;gBAAU,MAAM,EAAE;;;;;eAK9C,WAAW,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC;gBACzD,oBAAoB,EAAE;;;;;YANjB,MAAM,EAAE;cAAQ,MAAM;gBAAU,MAAM,EAAE;;;;;eAK9C,WAAW,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC;gBACzD,oBAAoB,EAAE;;;;AA+IpC,wBAOG"}
1
+ {"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Authentication.vue"],"names":[],"mappings":"AA8EA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAG1C,KAAK,WAAW,GAAG;IACjB,mCAAmC;IACnC,mBAAmB,EAAE,OAAO,CAAA;IAE5B,6CAA6C;IAC7C,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,+CAA+C;IAC/C,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,iDAAiD;IACjD,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAEhC,QAAQ,EAAE,iBAAiB,CAAA;IAE3B,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;;AA2HF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./Authentication.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-2ab6a6e3"]]);
4
+ const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-e8b21b10"]]);
5
5
  export {
6
6
  i as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as u, createElementBlock as c, openBlock as a, createElementVNode as i, createVNode as o, unref as n } from "vue";
2
- import { ScalarToggle as d } from "@scalar/components";
3
- import p from "../../../blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
4
- const m = { class: "flex flex-col gap-4" }, y = { class: "flex flex-col gap-2" }, S = { class: "flex h-8 items-center justify-between" }, A = /* @__PURE__ */ u({
1
+ import { defineComponent as u, createElementBlock as c, openBlock as a, createElementVNode as s, createVNode as n, unref as r } from "vue";
2
+ import { ScalarToggle as m } from "@scalar/components";
3
+ import d from "../../../blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
4
+ const p = { class: "flex flex-col gap-4" }, y = { class: "flex flex-col gap-2" }, v = { class: "flex h-8 items-center justify-between" }, b = /* @__PURE__ */ u({
5
5
  __name: "Authentication",
6
6
  props: {
7
7
  useDocumentSecurity: { type: Boolean },
@@ -9,42 +9,41 @@ const m = { class: "flex flex-col gap-4" }, y = { class: "flex flex-col gap-2" }
9
9
  selectedSecurity: {},
10
10
  securitySchemes: {},
11
11
  server: {},
12
+ eventBus: {},
12
13
  environment: {},
13
14
  envVariables: {}
14
15
  },
15
- emits: ["update:useDocumentSecurity", "deleteOperationAuth", "update:securityScheme", "update:selectedScopes", "update:selectedSecurity"],
16
- setup(v, { emit: l }) {
17
- const r = l;
18
- return (s, e) => (a(), c("div", m, [
19
- i("div", y, [
20
- i("div", S, [
21
- e[5] || (e[5] = i("h3", { class: "font-bold" }, "Authentication", -1)),
22
- o(n(d), {
16
+ emits: ["update:useDocumentSecurity"],
17
+ setup(f, { emit: i }) {
18
+ const o = i;
19
+ return (e, t) => (a(), c("div", p, [
20
+ s("div", y, [
21
+ s("div", v, [
22
+ t[1] || (t[1] = s("h3", { class: "font-bold" }, "Authentication", -1)),
23
+ n(r(m), {
23
24
  class: "w-4",
24
- modelValue: s.useDocumentSecurity,
25
- "onUpdate:modelValue": e[0] || (e[0] = (t) => r("update:useDocumentSecurity", t))
25
+ modelValue: e.useDocumentSecurity,
26
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => o("update:useDocumentSecurity", l))
26
27
  }, null, 8, ["modelValue"])
27
28
  ]),
28
- e[6] || (e[6] = i("p", { class: "pr-6 text-sm" }, " Added authentication will apply to all requests under this collection. You can override this by specifying another one in the request. ", -1))
29
+ t[2] || (t[2] = s("p", { class: "pr-6 text-sm" }, " Added authentication will apply to all requests under this collection. You can override this by specifying another one in the request. ", -1))
29
30
  ]),
30
- o(n(p), {
31
+ n(r(d), {
31
32
  class: "scalar-collection-auth",
32
- envVariables: s.envVariables,
33
- environment: s.environment,
33
+ envVariables: e.envVariables,
34
+ environment: e.environment,
34
35
  layout: "client",
35
- security: s.security,
36
- securitySchemes: s.securitySchemes,
37
- selectedSecurity: s.selectedSecurity,
38
- server: s.server,
36
+ security: e.security,
37
+ securitySchemes: e.securitySchemes,
38
+ selectedSecurity: e.selectedSecurity,
39
+ server: e.server,
39
40
  title: "Authentication",
40
- onDeleteOperationAuth: e[1] || (e[1] = (t) => r("deleteOperationAuth", t)),
41
- "onUpdate:securityScheme": e[2] || (e[2] = (t) => r("update:securityScheme", t)),
42
- "onUpdate:selectedScopes": e[3] || (e[3] = (t) => r("update:selectedScopes", t)),
43
- "onUpdate:selectedSecurity": e[4] || (e[4] = (t) => r("update:selectedSecurity", t))
44
- }, null, 8, ["envVariables", "environment", "security", "securitySchemes", "selectedSecurity", "server"])
41
+ eventBus: e.eventBus,
42
+ meta: { type: "document" }
43
+ }, null, 8, ["envVariables", "environment", "security", "securitySchemes", "selectedSecurity", "server", "eventBus"])
45
44
  ]));
46
45
  }
47
46
  });
48
47
  export {
49
- A as default
48
+ b as default
50
49
  };
@@ -6,6 +6,9 @@ const d = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ s({
6
6
  document: {},
7
7
  eventBus: {},
8
8
  layout: {},
9
+ path: {},
10
+ method: {},
11
+ exampleName: {},
9
12
  environment: {},
10
13
  workspaceStore: {},
11
14
  collectionType: {}
@@ -1,8 +1,8 @@
1
- import { defineComponent as g, computed as y, ref as x, useTemplateRef as w, createElementBlock as i, openBlock as t, createElementVNode as o, createBlock as c, createCommentVNode as B, unref as n, withCtx as m, createVNode as d, Fragment as v, nextTick as C } from "vue";
2
- import { ScalarButton as f, ScalarMarkdown as I } from "@scalar/components";
1
+ import { defineComponent as g, computed as x, ref as y, useTemplateRef as w, createElementBlock as i, openBlock as t, createElementVNode as o, createBlock as m, createCommentVNode as h, unref as n, withCtx as c, createVNode as d, Fragment as v, nextTick as B } from "vue";
2
+ import { ScalarButton as f, ScalarMarkdown as C } from "@scalar/components";
3
3
  import { ScalarIconPencil as b } from "@scalar/icons";
4
- import V from "../../../components/code-input/CodeInput.vue.js";
5
- const h = { class: "flex flex-col gap-2" }, z = { class: "flex items-center justify-between gap-2 pl-1.5" }, R = { class: "has-[:focus-visible]:bg-b-1 group rounded-lg" }, S = {
4
+ import I from "../../../components/code-input/CodeInput.vue.js";
5
+ const V = { class: "flex flex-col gap-2" }, z = { class: "flex items-center justify-between gap-2 pl-1.5" }, N = { class: "has-[:focus-visible]:bg-b-1 group rounded-lg" }, R = {
6
6
  key: 1,
7
7
  class: "text-c-3 flex items-center justify-center rounded-lg border p-4"
8
8
  }, j = /* @__PURE__ */ g({
@@ -11,28 +11,31 @@ const h = { class: "flex flex-col gap-2" }, z = { class: "flex items-center just
11
11
  document: {},
12
12
  eventBus: {},
13
13
  layout: {},
14
+ path: {},
15
+ method: {},
16
+ exampleName: {},
14
17
  environment: {},
15
18
  workspaceStore: {},
16
19
  collectionType: {}
17
20
  },
18
21
  setup(k) {
19
- const u = y(
22
+ const u = x(
20
23
  () => k.document?.info?.description ?? ""
21
- ), a = x("preview"), p = w("codeInputRef"), l = async (s) => {
22
- a.value = s, s === "edit" && (await C(), p.value?.focus());
24
+ ), a = y("preview"), p = w("codeInputRef"), r = async (s) => {
25
+ a.value = s, s === "edit" && (await B(), p.value?.focus());
23
26
  };
24
- return (s, e) => (t(), i("div", h, [
27
+ return (s, e) => (t(), i("div", V, [
25
28
  o("div", z, [
26
29
  e[6] || (e[6] = o("h3", { class: "font-bold" }, "Description", -1)),
27
- a.value === "preview" ? (t(), c(n(f), {
30
+ a.value === "preview" ? (t(), m(n(f), {
28
31
  key: 0,
29
32
  class: "text-c-2 hover:text-c-1 flex items-center gap-2",
30
33
  size: "sm",
31
34
  type: "button",
32
35
  variant: "outlined",
33
- onClick: e[0] || (e[0] = (r) => l("edit"))
36
+ onClick: e[0] || (e[0] = (l) => r("edit"))
34
37
  }, {
35
- default: m(() => [
38
+ default: c(() => [
36
39
  d(n(b), {
37
40
  size: "sm",
38
41
  thickness: "1.5"
@@ -40,26 +43,26 @@ const h = { class: "flex flex-col gap-2" }, z = { class: "flex items-center just
40
43
  e[5] || (e[5] = o("span", null, "Edit", -1))
41
44
  ]),
42
45
  _: 1
43
- })) : B("", !0)
46
+ })) : h("", !0)
44
47
  ]),
45
- o("div", R, [
48
+ o("div", N, [
46
49
  a.value === "preview" ? (t(), i(v, { key: 0 }, [
47
50
  u.value.trim().length ? (t(), i(v, { key: 0 }, [
48
- d(n(I), {
51
+ d(n(C), {
49
52
  class: "flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",
50
53
  value: u.value,
51
54
  withImages: "",
52
- onDblclick: e[1] || (e[1] = (r) => l("edit"))
55
+ onDblclick: e[1] || (e[1] = (l) => r("edit"))
53
56
  }, null, 8, ["value"]),
54
57
  e[7] || (e[7] = o("div", { class: "brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden" }, null, -1))
55
- ], 64)) : (t(), i("div", S, [
58
+ ], 64)) : (t(), i("div", R, [
56
59
  d(n(f), {
57
60
  class: "hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",
58
61
  size: "sm",
59
62
  variant: "ghost",
60
- onClick: e[2] || (e[2] = (r) => l("edit"))
63
+ onClick: e[2] || (e[2] = (l) => r("edit"))
61
64
  }, {
62
- default: m(() => [
65
+ default: c(() => [
63
66
  d(n(b), {
64
67
  size: "sm",
65
68
  thickness: "1.5"
@@ -69,7 +72,7 @@ const h = { class: "flex flex-col gap-2" }, z = { class: "flex items-center just
69
72
  _: 1
70
73
  })
71
74
  ]))
72
- ], 64)) : (t(), c(n(V), {
75
+ ], 64)) : (t(), m(n(I), {
73
76
  key: 1,
74
77
  ref_key: "codeInputRef",
75
78
  ref: p,
@@ -77,8 +80,8 @@ const h = { class: "flex flex-col gap-2" }, z = { class: "flex items-center just
77
80
  environment: void 0,
78
81
  layout: s.layout,
79
82
  modelValue: u.value,
80
- onBlur: e[3] || (e[3] = (r) => l("preview")),
81
- "onUpdate:modelValue": e[4] || (e[4] = (r) => s.eventBus.emit("document:update:info", { description: r }))
83
+ onBlur: e[3] || (e[3] = (l) => r("preview")),
84
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => s.eventBus.emit("document:update:info", { description: l }))
82
85
  }, null, 8, ["layout", "modelValue"]))
83
86
  ])
84
87
  ]));