@scalar/api-client 2.9.0 → 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 (436) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +2 -2
  3. package/dist/components/CommandPalette/CommandActionForm.vue.js +9 -9
  4. package/dist/libs/send-request/build-request-security.d.ts.map +1 -1
  5. package/dist/libs/send-request/build-request-security.js +1 -1
  6. package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
  7. package/dist/style.css +1 -1
  8. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +89 -0
  9. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -0
  10. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +129 -0
  11. package/dist/v2/blocks/operation-block/OperationBlock.vue2.js +4 -0
  12. package/dist/v2/{features/operation → blocks/operation-block}/components/Header.vue.d.ts +8 -27
  13. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -0
  14. package/dist/v2/blocks/operation-block/components/Header.vue.js +7 -0
  15. package/dist/v2/blocks/operation-block/components/Header.vue2.js +93 -0
  16. package/dist/v2/blocks/operation-block/index.d.ts +2 -0
  17. package/dist/v2/blocks/operation-block/index.d.ts.map +1 -0
  18. package/dist/v2/blocks/operation-block/index.js +4 -0
  19. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +8 -24
  20. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  21. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  22. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +60 -59
  23. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +7 -28
  24. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  25. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
  26. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +97 -87
  27. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +7 -17
  28. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  29. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +1 -1
  30. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +46 -41
  31. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +1 -1
  32. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  33. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +4 -5
  34. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  35. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +47 -45
  36. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +5 -5
  37. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
  38. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +7 -7
  39. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +6 -9
  40. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
  41. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
  42. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +255 -206
  43. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +30 -25
  44. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +1 -1
  45. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
  46. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +140 -97
  47. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +1 -0
  48. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +1 -1
  49. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +31 -29
  50. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +1 -0
  51. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +1 -1
  52. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +2 -2
  53. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +32 -29
  54. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +1 -1
  55. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +56 -51
  56. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +2 -4
  57. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
  58. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
  59. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +39 -38
  60. package/dist/v2/components/code-input/CodeInput.vue.d.ts +140 -0
  61. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -0
  62. package/dist/v2/components/code-input/CodeInput.vue.js +8 -0
  63. package/dist/v2/components/code-input/CodeInput.vue2.js +202 -0
  64. package/dist/v2/components/code-input/code-variable-widget.d.ts +21 -0
  65. package/dist/v2/components/code-input/code-variable-widget.d.ts.map +1 -0
  66. package/dist/v2/components/code-input/code-variable-widget.js +106 -0
  67. package/dist/v2/components/code-input/index.d.ts +2 -0
  68. package/dist/v2/components/code-input/index.d.ts.map +1 -0
  69. package/dist/v2/components/code-input/index.js +4 -0
  70. package/dist/v2/components/data-table/DataTable.vue.d.ts +22 -0
  71. package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -0
  72. package/dist/v2/components/data-table/DataTable.vue.js +38 -0
  73. package/dist/v2/components/data-table/DataTable.vue2.js +4 -0
  74. package/dist/v2/components/data-table/DataTableCell.vue.d.ts +19 -0
  75. package/dist/v2/components/data-table/DataTableCell.vue.d.ts.map +1 -0
  76. package/dist/v2/components/data-table/DataTableCell.vue.js +26 -0
  77. package/dist/v2/components/data-table/DataTableCell.vue2.js +4 -0
  78. package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts +14 -0
  79. package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts.map +1 -0
  80. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +53 -0
  81. package/dist/v2/components/data-table/DataTableCheckbox.vue2.js +4 -0
  82. package/dist/v2/components/data-table/DataTableHeader.vue.d.ts +13 -0
  83. package/dist/v2/components/data-table/DataTableHeader.vue.d.ts.map +1 -0
  84. package/dist/v2/components/data-table/DataTableHeader.vue.js +18 -0
  85. package/dist/v2/components/data-table/DataTableHeader.vue2.js +4 -0
  86. package/dist/v2/components/data-table/DataTableInput.vue.d.ts +53 -0
  87. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -0
  88. package/dist/v2/components/data-table/DataTableInput.vue.js +7 -0
  89. package/dist/v2/components/data-table/DataTableInput.vue2.js +117 -0
  90. package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +16 -0
  91. package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -0
  92. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +146 -0
  93. package/dist/v2/components/data-table/DataTableInputSelect.vue2.js +4 -0
  94. package/dist/v2/components/data-table/DataTableRow.vue.d.ts +13 -0
  95. package/dist/v2/components/data-table/DataTableRow.vue.d.ts.map +1 -0
  96. package/dist/v2/components/data-table/DataTableRow.vue.js +12 -0
  97. package/dist/v2/components/data-table/DataTableText.vue.d.ts +16 -0
  98. package/dist/v2/components/data-table/DataTableText.vue.d.ts.map +1 -0
  99. package/dist/v2/components/data-table/DataTableText.vue.js +23 -0
  100. package/dist/v2/components/data-table/DataTableText.vue2.js +4 -0
  101. package/dist/v2/components/data-table/index.d.ts +9 -0
  102. package/dist/v2/components/data-table/index.d.ts.map +1 -0
  103. package/dist/v2/components/data-table/index.js +18 -0
  104. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  105. package/dist/v2/components/sidebar/Sidebar.vue.js +43 -42
  106. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  107. package/dist/v2/features/app/App.vue.js +72 -44
  108. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +1 -1
  109. package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
  110. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +3 -0
  111. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
  112. package/dist/v2/features/app/components/DesktopTabs.vue.js +8 -7
  113. package/dist/v2/features/app/components/DesktopTabs.vue2.js +6 -0
  114. package/dist/v2/features/app/helpers/routes.d.ts +17 -10
  115. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  116. package/dist/v2/features/app/helpers/routes.js +1 -7
  117. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  118. package/dist/v2/features/collection/DocumentCollection.vue2.js +61 -45
  119. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
  120. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +19 -14
  121. package/dist/v2/features/collection/components/Authentication.vue.d.ts +4 -25
  122. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  123. package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
  124. package/dist/v2/features/collection/components/Authentication.vue2.js +27 -28
  125. package/dist/v2/features/collection/components/Environment.vue.d.ts +13 -87
  126. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
  127. package/dist/v2/features/collection/components/Environment.vue2.js +23 -25
  128. package/dist/v2/features/collection/components/Overview.vue.d.ts +13 -12
  129. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
  130. package/dist/v2/features/collection/components/Overview.vue.js +5 -2
  131. package/dist/v2/features/collection/components/Overview.vue2.js +68 -67
  132. package/dist/v2/features/collection/components/Tabs.vue.js +8 -8
  133. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +6 -95
  134. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -1
  135. package/dist/v2/features/environments/EnvironmentsList.vue.js +50 -98
  136. package/dist/v2/features/environments/components/Environment.vue.d.ts +9 -63
  137. package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -1
  138. package/dist/v2/features/environments/components/Environment.vue.js +41 -92
  139. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -1
  140. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +105 -81
  141. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +7 -14
  142. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -1
  143. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +61 -39
  144. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +1 -1
  145. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -1
  146. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +3 -3
  147. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts +21 -0
  148. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts.map +1 -0
  149. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +109 -0
  150. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue2.js +4 -0
  151. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +7 -20
  152. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
  153. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +3 -3
  154. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +85 -71
  155. package/dist/v2/features/environments/index.d.ts +0 -3
  156. package/dist/v2/features/environments/index.d.ts.map +1 -1
  157. package/dist/v2/features/environments/index.js +2 -4
  158. package/dist/v2/features/operation/Operation.vue.d.ts +10 -77
  159. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  160. package/dist/v2/features/operation/Operation.vue.js +56 -114
  161. package/dist/v2/helpers/test-utils.d.ts +4 -0
  162. package/dist/v2/helpers/test-utils.d.ts.map +1 -0
  163. package/dist/v2/hooks/use-workspace-client-events.d.ts +2 -1
  164. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
  165. package/dist/v2/hooks/use-workspace-client-events.js +137 -10
  166. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  167. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  168. package/dist/views/Request/libs/oauth2.js +8 -6
  169. package/package.json +16 -16
  170. package/dist/components/CodeInput/CodeInput.test.d.ts +0 -2
  171. package/dist/components/CodeInput/CodeInput.test.d.ts.map +0 -1
  172. package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts +0 -2
  173. package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts.map +0 -1
  174. package/dist/components/ImportCollection/utils/is-document.test.d.ts +0 -2
  175. package/dist/components/ImportCollection/utils/is-document.test.d.ts.map +0 -1
  176. package/dist/components/ImportCollection/utils/is-url.test.d.ts +0 -2
  177. package/dist/components/ImportCollection/utils/is-url.test.d.ts.map +0 -1
  178. package/dist/components/Search/useSearch.test.d.ts +0 -2
  179. package/dist/components/Search/useSearch.test.d.ts.map +0 -1
  180. package/dist/components/Server/ServerDropdown.test.d.ts +0 -2
  181. package/dist/components/Server/ServerDropdown.test.d.ts.map +0 -1
  182. package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts +0 -2
  183. package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts.map +0 -1
  184. package/dist/hooks/useResponseBody.test.d.ts +0 -2
  185. package/dist/hooks/useResponseBody.test.d.ts.map +0 -1
  186. package/dist/hooks/useSidebar.test.d.ts +0 -2
  187. package/dist/hooks/useSidebar.test.d.ts.map +0 -1
  188. package/dist/layouts/App/create-api-client-app.test.d.ts +0 -2
  189. package/dist/layouts/App/create-api-client-app.test.d.ts.map +0 -1
  190. package/dist/layouts/Modal/create-api-client-modal.test.d.ts +0 -2
  191. package/dist/layouts/Modal/create-api-client-modal.test.d.ts.map +0 -1
  192. package/dist/layouts/Web/create-api-client-web.test.d.ts +0 -2
  193. package/dist/layouts/Web/create-api-client-web.test.d.ts.map +0 -1
  194. package/dist/libs/create-client.test.d.ts +0 -2
  195. package/dist/libs/create-client.test.d.ts.map +0 -1
  196. package/dist/libs/env-helpers.test.d.ts +0 -2
  197. package/dist/libs/env-helpers.test.d.ts.map +0 -1
  198. package/dist/libs/event-bus.test.d.ts +0 -2
  199. package/dist/libs/event-bus.test.d.ts.map +0 -1
  200. package/dist/libs/extractAttachmentFilename.test.d.ts +0 -2
  201. package/dist/libs/extractAttachmentFilename.test.d.ts.map +0 -1
  202. package/dist/libs/find-request.test.d.ts +0 -2
  203. package/dist/libs/find-request.test.d.ts.map +0 -1
  204. package/dist/libs/get-request-uid-by-path-method.test.d.ts +0 -2
  205. package/dist/libs/get-request-uid-by-path-method.test.d.ts.map +0 -1
  206. package/dist/libs/hot-keys.test.d.ts +0 -2
  207. package/dist/libs/hot-keys.test.d.ts.map +0 -1
  208. package/dist/libs/importers/curl.test.d.ts +0 -2
  209. package/dist/libs/importers/curl.test.d.ts.map +0 -1
  210. package/dist/libs/normalize-headers.test.d.ts +0 -2
  211. package/dist/libs/normalize-headers.test.d.ts.map +0 -1
  212. package/dist/libs/parse-curl.test.d.ts +0 -2
  213. package/dist/libs/parse-curl.test.d.ts.map +0 -1
  214. package/dist/libs/send-request/build-request-security.test.d.ts +0 -2
  215. package/dist/libs/send-request/build-request-security.test.d.ts.map +0 -1
  216. package/dist/libs/send-request/create-fetch-auth.test.d.ts +0 -2
  217. package/dist/libs/send-request/create-fetch-auth.test.d.ts.map +0 -1
  218. package/dist/libs/send-request/create-fetch-body.test.d.ts +0 -2
  219. package/dist/libs/send-request/create-fetch-body.test.d.ts.map +0 -1
  220. package/dist/libs/send-request/create-fetch-headers.test.d.ts +0 -2
  221. package/dist/libs/send-request/create-fetch-headers.test.d.ts.map +0 -1
  222. package/dist/libs/send-request/create-fetch-query-params.test.d.ts +0 -2
  223. package/dist/libs/send-request/create-fetch-query-params.test.d.ts.map +0 -1
  224. package/dist/libs/send-request/create-request-operation.test.d.ts +0 -191
  225. package/dist/libs/send-request/create-request-operation.test.d.ts.map +0 -1
  226. package/dist/libs/send-request/decode-buffer.test.d.ts +0 -2
  227. package/dist/libs/send-request/decode-buffer.test.d.ts.map +0 -1
  228. package/dist/libs/send-request/set-request-cookies.test.d.ts +0 -2
  229. package/dist/libs/send-request/set-request-cookies.test.d.ts.map +0 -1
  230. package/dist/libs/string-template.test.d.ts +0 -2
  231. package/dist/libs/string-template.test.d.ts.map +0 -1
  232. package/dist/libs/validate-parameters.test.d.ts +0 -2
  233. package/dist/libs/validate-parameters.test.d.ts.map +0 -1
  234. package/dist/plugins/plugin-manager.test.d.ts +0 -2
  235. package/dist/plugins/plugin-manager.test.d.ts.map +0 -1
  236. package/dist/routes.test.d.ts +0 -2
  237. package/dist/routes.test.d.ts.map +0 -1
  238. package/dist/store/collections.test.d.ts +0 -2
  239. package/dist/store/collections.test.d.ts.map +0 -1
  240. package/dist/store/request.test.d.ts +0 -2
  241. package/dist/store/request.test.d.ts.map +0 -1
  242. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts +0 -2
  243. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts.map +0 -1
  244. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts +0 -2
  245. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts.map +0 -1
  246. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts +0 -2
  247. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts.map +0 -1
  248. package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts +0 -2
  249. package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts.map +0 -1
  250. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts +0 -2
  251. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts.map +0 -1
  252. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts +0 -2
  253. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts.map +0 -1
  254. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts +0 -2
  255. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts.map +0 -1
  256. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts +0 -2
  257. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts.map +0 -1
  258. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts +0 -2
  259. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts.map +0 -1
  260. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts +0 -2
  261. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts.map +0 -1
  262. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts +0 -2
  263. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts.map +0 -1
  264. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts +0 -2
  265. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts.map +0 -1
  266. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts +0 -2
  267. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts.map +0 -1
  268. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts +0 -2
  269. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts.map +0 -1
  270. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts +0 -2
  271. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts.map +0 -1
  272. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts +0 -2
  273. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts.map +0 -1
  274. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts +0 -2
  275. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts.map +0 -1
  276. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts +0 -2
  277. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts.map +0 -1
  278. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts +0 -2
  279. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts.map +0 -1
  280. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts +0 -2
  281. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts.map +0 -1
  282. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts +0 -2
  283. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts.map +0 -1
  284. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts +0 -2
  285. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts.map +0 -1
  286. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts +0 -2
  287. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts.map +0 -1
  288. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts +0 -2
  289. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts.map +0 -1
  290. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts +0 -2
  291. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts.map +0 -1
  292. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts +0 -2
  293. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts.map +0 -1
  294. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts +0 -2
  295. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts.map +0 -1
  296. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts +0 -2
  297. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts.map +0 -1
  298. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts +0 -2
  299. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts.map +0 -1
  300. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts +0 -2
  301. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts.map +0 -1
  302. package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts +0 -2
  303. package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts.map +0 -1
  304. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts +0 -2
  305. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts.map +0 -1
  306. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts +0 -2
  307. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts.map +0 -1
  308. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts +0 -2
  309. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts.map +0 -1
  310. package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts +0 -2
  311. package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts.map +0 -1
  312. package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts +0 -2
  313. package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts.map +0 -1
  314. package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts +0 -2
  315. package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts.map +0 -1
  316. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts +0 -2
  317. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts.map +0 -1
  318. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts +0 -2
  319. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts.map +0 -1
  320. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts +0 -2
  321. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts.map +0 -1
  322. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts +0 -2
  323. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts.map +0 -1
  324. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts +0 -2
  325. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts.map +0 -1
  326. package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts +0 -2
  327. package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts.map +0 -1
  328. package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts +0 -2
  329. package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts.map +0 -1
  330. package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts +0 -2
  331. package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts.map +0 -1
  332. package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts +0 -2
  333. package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts.map +0 -1
  334. package/dist/v2/components/server/ServerDropdown.test.d.ts +0 -2
  335. package/dist/v2/components/server/ServerDropdown.test.d.ts.map +0 -1
  336. package/dist/v2/components/server/ServerDropdownItem.test.d.ts +0 -2
  337. package/dist/v2/components/server/ServerDropdownItem.test.d.ts.map +0 -1
  338. package/dist/v2/features/collection/DocumentCollection.test.d.ts +0 -2
  339. package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +0 -1
  340. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts +0 -2
  341. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts.map +0 -1
  342. package/dist/v2/features/collection/components/Authentication.test.d.ts +0 -2
  343. package/dist/v2/features/collection/components/Authentication.test.d.ts.map +0 -1
  344. package/dist/v2/features/collection/components/Environment.test.d.ts +0 -2
  345. package/dist/v2/features/collection/components/Environment.test.d.ts.map +0 -1
  346. package/dist/v2/features/collection/components/LabelInput.test.d.ts +0 -2
  347. package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +0 -1
  348. package/dist/v2/features/collection/components/Overview.test.d.ts +0 -2
  349. package/dist/v2/features/collection/components/Overview.test.d.ts.map +0 -1
  350. package/dist/v2/features/collection/components/Servers.test.d.ts +0 -2
  351. package/dist/v2/features/collection/components/Servers.test.d.ts.map +0 -1
  352. package/dist/v2/features/collection/components/Settings.test.d.ts +0 -2
  353. package/dist/v2/features/collection/components/Settings.test.d.ts.map +0 -1
  354. package/dist/v2/features/collection/components/Tabs.test.d.ts +0 -2
  355. package/dist/v2/features/collection/components/Tabs.test.d.ts.map +0 -1
  356. package/dist/v2/features/environments/Environments.test.d.ts +0 -2
  357. package/dist/v2/features/environments/Environments.test.d.ts.map +0 -1
  358. package/dist/v2/features/environments/Environments.vue.d.ts +0 -31
  359. package/dist/v2/features/environments/Environments.vue.d.ts.map +0 -1
  360. package/dist/v2/features/environments/Environments.vue.js +0 -65
  361. package/dist/v2/features/environments/Environments.vue2.js +0 -4
  362. package/dist/v2/features/environments/EnvironmentsList.test.d.ts +0 -2
  363. package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +0 -1
  364. package/dist/v2/features/environments/components/Environment.test.d.ts +0 -2
  365. package/dist/v2/features/environments/components/Environment.test.d.ts.map +0 -1
  366. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts +0 -20
  367. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts.map +0 -1
  368. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.js +0 -48
  369. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue2.js +0 -4
  370. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +0 -2
  371. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +0 -1
  372. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts +0 -18
  373. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts.map +0 -1
  374. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.js +0 -35
  375. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue2.js +0 -4
  376. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +0 -2
  377. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +0 -1
  378. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +0 -2
  379. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +0 -1
  380. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +0 -2
  381. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +0 -1
  382. package/dist/v2/features/operation/Operation.test.d.ts +0 -2
  383. package/dist/v2/features/operation/Operation.test.d.ts.map +0 -1
  384. package/dist/v2/features/operation/components/Header.test.d.ts +0 -2
  385. package/dist/v2/features/operation/components/Header.test.d.ts.map +0 -1
  386. package/dist/v2/features/operation/components/Header.vue.d.ts.map +0 -1
  387. package/dist/v2/features/operation/components/Header.vue.js +0 -7
  388. package/dist/v2/features/operation/components/Header.vue2.js +0 -97
  389. package/dist/v2/features/settings/Settings.test.d.ts +0 -2
  390. package/dist/v2/features/settings/Settings.test.d.ts.map +0 -1
  391. package/dist/v2/hooks/use-document-watcher.test.d.ts +0 -2
  392. package/dist/v2/hooks/use-document-watcher.test.d.ts.map +0 -1
  393. package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts +0 -2
  394. package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts.map +0 -1
  395. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts +0 -2
  396. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts.map +0 -1
  397. package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts +0 -2
  398. package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts.map +0 -1
  399. package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts +0 -2
  400. package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts.map +0 -1
  401. package/dist/views/Request/RequestRoot.test.d.ts +0 -2
  402. package/dist/views/Request/RequestRoot.test.d.ts.map +0 -1
  403. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts +0 -2
  404. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts.map +0 -1
  405. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts +0 -2
  406. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts.map +0 -1
  407. package/dist/views/Request/RequestSection/RequestBody.test.d.ts +0 -2
  408. package/dist/views/Request/RequestSection/RequestBody.test.d.ts.map +0 -1
  409. package/dist/views/Request/RequestSection/RequestCodeExample.test.d.ts +0 -2
  410. package/dist/views/Request/RequestSection/RequestCodeExample.test.d.ts.map +0 -1
  411. package/dist/views/Request/RequestSection/RequestSection.test.d.ts +0 -2
  412. package/dist/views/Request/RequestSection/RequestSection.test.d.ts.map +0 -1
  413. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts +0 -2
  414. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts.map +0 -1
  415. package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts +0 -2
  416. package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts.map +0 -1
  417. package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts +0 -2
  418. package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts.map +0 -1
  419. package/dist/views/Request/RequestSubpageHeader.test.d.ts +0 -2
  420. package/dist/views/Request/RequestSubpageHeader.test.d.ts.map +0 -1
  421. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts +0 -2
  422. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts.map +0 -1
  423. package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts +0 -2
  424. package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts.map +0 -1
  425. package/dist/views/Request/consts/mediaTypes.test.d.ts +0 -2
  426. package/dist/views/Request/consts/mediaTypes.test.d.ts.map +0 -1
  427. package/dist/views/Request/libs/auth.test.d.ts +0 -2
  428. package/dist/views/Request/libs/auth.test.d.ts.map +0 -1
  429. package/dist/views/Request/libs/oauth2.test.d.ts +0 -2
  430. package/dist/views/Request/libs/oauth2.test.d.ts.map +0 -1
  431. package/dist/views/Request/libs/request.test.d.ts +0 -2
  432. package/dist/views/Request/libs/request.test.d.ts.map +0 -1
  433. package/dist/views/Request/libs/watch-mode.test.d.ts +0 -2
  434. package/dist/views/Request/libs/watch-mode.test.d.ts.map +0 -1
  435. package/dist/vitest.setup.d.ts +0 -34
  436. package/dist/vitest.setup.d.ts.map +0 -1
@@ -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
  };
@@ -1,89 +1,15 @@
1
- import type { Environment as EntitiesEnvironment } from '@scalar/oas-utils/entities/environment';
2
- import type { EnvVariable } from '../../../../store/index.js';
3
- import { type Environment, type EnvironmentVariable } from '../../../../v2/features/environments/index.js';
4
- type __VLS_Props = {
5
- /** Current selected document name or when null it means workspace level environments */
6
- documentName: string | null;
7
- /** List of all available environments for the selected document */
8
- environments: Environment[];
9
- /** TODO: remove when we migrate to the new store */
10
- environment: EntitiesEnvironment;
11
- envVariables: EnvVariable[];
12
- };
13
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
- "environment:reorder": (payload: {
15
- draggingItem: {
16
- id: string;
17
- };
18
- hoveredItem: {
19
- id: string;
20
- };
21
- }) => any;
22
- "environment:add": (payload: {
23
- environment: Environment;
24
- }) => any;
25
- "environment:update": (payload: {
26
- environmentName: string;
27
- environment: Partial<Environment>;
28
- }) => any;
29
- "environment:delete": (payload: {
30
- environmentName: string;
31
- }) => any;
32
- "environment:add:variable": (payload: {
33
- environmentName: string;
34
- environmentVariable: Partial<EnvironmentVariable>;
35
- }) => any;
36
- "environment:update:variable": (payload: {
37
- /** Row number */
38
- id: number;
39
- /** Environment name */
40
- environmentName: string;
41
- /** Payload */
42
- environmentVariable: Partial<EnvironmentVariable>;
43
- }) => any;
44
- "environment:delete:variable": (payload: {
45
- /** Environment name */
46
- environmentName: string;
47
- /** Row number */
48
- id: number;
49
- }) => any;
50
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
51
- "onEnvironment:reorder"?: ((payload: {
52
- draggingItem: {
53
- id: string;
54
- };
55
- hoveredItem: {
56
- id: string;
57
- };
58
- }) => any) | undefined;
59
- "onEnvironment:add"?: ((payload: {
60
- environment: Environment;
61
- }) => any) | undefined;
62
- "onEnvironment:update"?: ((payload: {
63
- environmentName: string;
64
- environment: Partial<Environment>;
65
- }) => any) | undefined;
66
- "onEnvironment:delete"?: ((payload: {
67
- environmentName: string;
68
- }) => any) | undefined;
69
- "onEnvironment:add:variable"?: ((payload: {
70
- environmentName: string;
71
- environmentVariable: Partial<EnvironmentVariable>;
72
- }) => any) | undefined;
73
- "onEnvironment:update:variable"?: ((payload: {
74
- /** Row number */
75
- id: number;
76
- /** Environment name */
77
- environmentName: string;
78
- /** Payload */
79
- environmentVariable: Partial<EnvironmentVariable>;
80
- }) => any) | undefined;
81
- "onEnvironment:delete:variable"?: ((payload: {
82
- /** Environment name */
83
- environmentName: string;
84
- /** Row number */
85
- id: number;
86
- }) => any) | undefined;
87
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1
+ declare const _default: import("vue").DefineComponent<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
2
+ collectionType: "document";
3
+ document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
4
+ }) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
5
+ collectionType: "workspace";
6
+ document: null;
7
+ }), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
8
+ collectionType: "document";
9
+ document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
10
+ }) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
11
+ collectionType: "workspace";
12
+ document: null;
13
+ })> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
88
14
  export default _default;
89
15
  //# sourceMappingURL=Environment.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Environment.vue"],"names":[],"mappings":"AA8GA,OAAO,KAAK,EAAE,WAAW,IAAI,mBAAmB,EAAE,MAAM,wCAAwC,CAAA;AAEhG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACzB,MAAM,4BAA4B,CAAA;AAEnC,KAAK,WAAW,GAAG;IACjB,wFAAwF;IACxF,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B,mEAAmE;IACnE,YAAY,EAAE,WAAW,EAAE,CAAA;IAE3B,oDAAoD;IACpD,WAAW,EAAE,mBAAmB,CAAA;IAChC,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;sBAQkB;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;qBACf;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;;;qBAGgB,WAAW;;;yBAG5B,MAAM;qBAAe,OAAO,CAAC,WAAW,CAAC;;;yBAEjB,MAAM;;;yBAMvC,MAAM;6BACF,OAAO,CAAC,mBAAmB,CAAC;;;QAMjD,iBAAiB;YACb,MAAM;QACV,uBAAuB;yBACN,MAAM;QACvB,cAAc;6BACO,OAAO,CAAC,mBAAmB,CAAC;;;QAMjD,uBAAuB;yBACN,MAAM;QACvB,iBAAiB;YACb,MAAM;;;;sBApCI;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;qBACf;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;;;qBAGgB,WAAW;;;yBAG5B,MAAM;qBAAe,OAAO,CAAC,WAAW,CAAC;;;yBAEjB,MAAM;;;yBAMvC,MAAM;6BACF,OAAO,CAAC,mBAAmB,CAAC;;;QAMjD,iBAAiB;YACb,MAAM;QACV,uBAAuB;yBACN,MAAM;QACvB,cAAc;6BACO,OAAO,CAAC,mBAAmB,CAAC;;;QAMjD,uBAAuB;yBACN,MAAM;QACvB,iBAAiB;YACb,MAAM;;;AAiIhB,wBAOG"}
1
+ {"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Environment.vue"],"names":[],"mappings":";;;;;;;;;;;;;AAiJA,wBAMG"}
@@ -1,34 +1,32 @@
1
- import { defineComponent as i, createElementBlock as a, openBlock as m, createStaticVNode as v, createVNode as d, unref as l } from "vue";
2
- import s from "../../environments/EnvironmentsList.vue.js";
3
- const p = { class: "flex flex-col gap-4" }, E = /* @__PURE__ */ i({
1
+ import { defineComponent as s, computed as c, createElementBlock as l, openBlock as a, createStaticVNode as i, createVNode as r, unref as m } from "vue";
2
+ import v from "../../environments/EnvironmentsList.vue.js";
3
+ const d = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ s({
4
4
  __name: "Environment",
5
5
  props: {
6
- documentName: {},
7
- environments: {},
6
+ document: {},
7
+ eventBus: {},
8
+ layout: {},
9
+ path: {},
10
+ method: {},
11
+ exampleName: {},
8
12
  environment: {},
9
- envVariables: {}
13
+ workspaceStore: {},
14
+ collectionType: {}
10
15
  },
11
- emits: ["environment:reorder", "environment:add", "environment:update", "environment:delete", "environment:add:variable", "environment:update:variable", "environment:delete:variable"],
12
- setup(u, { emit: o }) {
13
- const t = o;
14
- return (r, e) => (m(), a("div", p, [
15
- e[7] || (e[7] = v('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Environment Variables</h3></div><p class="text-c-2 mb-4 text-sm"> Set environment variables at your collection level. Use <code class="font-code text-c-2"> {{ variable }} </code> to add / search among the selected environment&#39;s variables in your request inputs. </p></div></div>', 1)),
16
- d(l(s), {
17
- documentName: r.documentName,
18
- envVariables: r.envVariables,
19
- environment: r.environment,
20
- environments: r.environments,
21
- "onEnvironment:add": e[0] || (e[0] = (n) => t("environment:add", n)),
22
- "onEnvironment:add:variable": e[1] || (e[1] = (n) => t("environment:add:variable", n)),
23
- "onEnvironment:delete": e[2] || (e[2] = (n) => t("environment:delete", n)),
24
- "onEnvironment:delete:variable": e[3] || (e[3] = (n) => t("environment:delete:variable", n)),
25
- "onEnvironment:reorder": e[4] || (e[4] = (n) => t("environment:reorder", n)),
26
- "onEnvironment:update": e[5] || (e[5] = (n) => t("environment:update", n)),
27
- "onEnvironment:update:variable": e[6] || (e[6] = (n) => t("environment:update:variable", n))
28
- }, null, 8, ["documentName", "envVariables", "environment", "environments"])
16
+ setup(e) {
17
+ const o = c(
18
+ () => (e.collectionType === "document" ? e.document["x-scalar-environments"] : e.workspaceStore.workspace["x-scalar-environments"]) ?? {}
19
+ );
20
+ return (t, n) => (a(), l("div", d, [
21
+ n[0] || (n[0] = i('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Environment Variables</h3></div><p class="text-c-2 mb-4 text-sm"> Set environment variables at your collection level. Use <code class="font-code text-c-2"> {{ variable }} </code> to add / search among the selected environment&#39;s variables in your request inputs. </p></div></div>', 1)),
22
+ r(m(v), {
23
+ collectionType: t.collectionType,
24
+ environments: o.value,
25
+ eventBus: t.eventBus
26
+ }, null, 8, ["collectionType", "environments", "eventBus"])
29
27
  ]));
30
28
  }
31
29
  });
32
30
  export {
33
- E as default
31
+ f as default
34
32
  };
@@ -1,14 +1,15 @@
1
- import type { Environment } from '@scalar/oas-utils/entities/environment';
2
- import type { EnvVariable } from '../../../../store/index.js';
3
- type __VLS_Props = {
4
- description: string;
5
- environment: Environment;
6
- envVariables: EnvVariable[];
7
- };
8
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
- "overview:update:description": (value: string) => any;
10
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- "onOverview:update:description"?: ((value: string) => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1
+ declare const _default: import("vue").DefineComponent<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
2
+ collectionType: "document";
3
+ document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
4
+ }) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
5
+ collectionType: "workspace";
6
+ document: null;
7
+ }), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
8
+ collectionType: "document";
9
+ document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
10
+ }) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
11
+ collectionType: "workspace";
12
+ document: null;
13
+ })> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
14
  export default _default;
14
15
  //# sourceMappingURL=Overview.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Overview.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Overview.vue"],"names":[],"mappings":"AA0GA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAIzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,CAAA;IAGnB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;;AAwSF,wBAOG"}
1
+ {"version":3,"file":"Overview.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Overview.vue"],"names":[],"mappings":";;;;;;;;;;;;;AA6ZA,wBAMG"}
@@ -1,4 +1,7 @@
1
- import f from "./Overview.vue2.js";
1
+ import o from "./Overview.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7c1a2f6c"]]);
2
5
  export {
3
- f as default
6
+ e as default
4
7
  };
@@ -1,91 +1,92 @@
1
- import { defineComponent as x, ref as h, useTemplateRef as w, createElementBlock as d, openBlock as n, createElementVNode as i, createBlock as u, createCommentVNode as a, unref as o, withCtx as f, createVNode as p, Fragment as m, nextTick as y } from "vue";
2
- import { ScalarButton as c, ScalarMarkdown as V } 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 z from "../../../../components/CodeInput/CodeInput.vue.js";
5
- const C = { class: "flex flex-col gap-2" }, I = { class: "flex min-h-8 items-center justify-between gap-2 pl-1.5" }, B = { class: "has-[:focus-visible]:bg-b-1 group relative z-1 flex flex-col rounded-lg" }, R = { class: "flex h-full min-h-[calc(1rem*4)] flex-col" }, $ = {
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
- class: "text-c-3 flex h-full items-center justify-center rounded-lg border p-4"
8
- }, T = /* @__PURE__ */ x({
7
+ class: "text-c-3 flex items-center justify-center rounded-lg border p-4"
8
+ }, j = /* @__PURE__ */ g({
9
9
  __name: "Overview",
10
10
  props: {
11
- description: {},
11
+ document: {},
12
+ eventBus: {},
13
+ layout: {},
14
+ path: {},
15
+ method: {},
16
+ exampleName: {},
12
17
  environment: {},
13
- envVariables: {}
18
+ workspaceStore: {},
19
+ collectionType: {}
14
20
  },
15
- emits: ["overview:update:description"],
16
- setup(E, { emit: k }) {
17
- const g = k, s = h("preview"), l = async (t) => {
18
- s.value = t, t === "edit" && await y(() => {
19
- v.value?.focus();
20
- });
21
- }, v = w("codeInputRef");
22
- return (t, e) => (n(), d("div", C, [
23
- i("div", I, [
24
- e[6] || (e[6] = i("h3", { class: "font-bold" }, "Description", -1)),
25
- s.value === "preview" ? (n(), u(o(c), {
21
+ setup(k) {
22
+ const u = x(
23
+ () => k.document?.info?.description ?? ""
24
+ ), a = y("preview"), p = w("codeInputRef"), r = async (s) => {
25
+ a.value = s, s === "edit" && (await B(), p.value?.focus());
26
+ };
27
+ return (s, e) => (t(), i("div", V, [
28
+ o("div", z, [
29
+ e[6] || (e[6] = o("h3", { class: "font-bold" }, "Description", -1)),
30
+ a.value === "preview" ? (t(), m(n(f), {
26
31
  key: 0,
27
32
  class: "text-c-2 hover:text-c-1 flex items-center gap-2",
28
33
  size: "sm",
29
34
  type: "button",
30
35
  variant: "outlined",
31
- onClick: e[0] || (e[0] = (r) => l("edit"))
36
+ onClick: e[0] || (e[0] = (l) => r("edit"))
32
37
  }, {
33
- default: f(() => [
34
- p(o(b), {
38
+ default: c(() => [
39
+ d(n(b), {
35
40
  size: "sm",
36
41
  thickness: "1.5"
37
42
  }),
38
- e[5] || (e[5] = i("span", null, "Edit", -1))
43
+ e[5] || (e[5] = o("span", null, "Edit", -1))
39
44
  ]),
40
45
  _: 1
41
- })) : a("", !0)
46
+ })) : h("", !0)
42
47
  ]),
43
- i("div", B, [
44
- i("div", R, [
45
- s.value === "preview" ? (n(), d(m, { key: 0 }, [
46
- t.description && t.description.trim().length ? (n(), d(m, { key: 0 }, [
47
- t.description ? (n(), u(o(V), {
48
- key: 0,
49
- class: "h-full flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",
50
- value: t.description,
51
- withImages: "",
52
- onDblclick: e[1] || (e[1] = (r) => l("edit"))
53
- }, null, 8, ["value"])) : a("", !0),
54
- e[7] || (e[7] = i("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)) : (n(), d("div", $, [
56
- p(o(c), {
57
- class: "hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",
58
- size: "sm",
59
- variant: "ghost",
60
- onClick: e[2] || (e[2] = (r) => l("edit"))
61
- }, {
62
- default: f(() => [
63
- p(o(b), {
64
- size: "sm",
65
- thickness: "1.5"
66
- }),
67
- e[8] || (e[8] = i("span", null, "Write a description", -1))
68
- ]),
69
- _: 1
70
- })
71
- ]))
72
- ], 64)) : a("", !0),
73
- s.value === "edit" ? (n(), u(o(z), {
74
- key: 1,
75
- ref_key: "codeInputRef",
76
- ref: v,
77
- class: "h-full flex-1 border px-0.5 py-0",
78
- envVariables: t.envVariables,
79
- environment: t.environment,
80
- modelValue: t.description,
81
- onBlur: e[3] || (e[3] = (r) => l("preview")),
82
- "onUpdate:modelValue": e[4] || (e[4] = (r) => g("overview:update:description", r))
83
- }, null, 8, ["envVariables", "environment", "modelValue"])) : a("", !0)
84
- ])
48
+ o("div", N, [
49
+ a.value === "preview" ? (t(), i(v, { key: 0 }, [
50
+ u.value.trim().length ? (t(), i(v, { key: 0 }, [
51
+ d(n(C), {
52
+ class: "flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",
53
+ value: u.value,
54
+ withImages: "",
55
+ onDblclick: e[1] || (e[1] = (l) => r("edit"))
56
+ }, null, 8, ["value"]),
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))
58
+ ], 64)) : (t(), i("div", R, [
59
+ d(n(f), {
60
+ class: "hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",
61
+ size: "sm",
62
+ variant: "ghost",
63
+ onClick: e[2] || (e[2] = (l) => r("edit"))
64
+ }, {
65
+ default: c(() => [
66
+ d(n(b), {
67
+ size: "sm",
68
+ thickness: "1.5"
69
+ }),
70
+ e[8] || (e[8] = o("span", null, "Write a description", -1))
71
+ ]),
72
+ _: 1
73
+ })
74
+ ]))
75
+ ], 64)) : (t(), m(n(I), {
76
+ key: 1,
77
+ ref_key: "codeInputRef",
78
+ ref: p,
79
+ class: "border px-0.5 py-0",
80
+ environment: void 0,
81
+ layout: s.layout,
82
+ modelValue: u.value,
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 }))
85
+ }, null, 8, ["layout", "modelValue"]))
85
86
  ])
86
87
  ]));
87
88
  }
88
89
  });
89
90
  export {
90
- T as default
91
+ j as default
91
92
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as m, computed as p, createElementBlock as o, openBlock as t, Fragment as u, renderList as d, createBlock as f, unref as h, withCtx as v, createElementVNode as r, normalizeClass as x, toDisplayString as k, capitalize as _ } from "vue";
1
+ import { defineComponent as m, computed as p, createElementBlock as o, openBlock as t, Fragment as u, renderList as d, createBlock as f, unref as h, withCtx as x, createElementVNode as n, normalizeClass as k, toDisplayString as v, capitalize as _ } from "vue";
2
2
  import { RouterLink as b } from "vue-router";
3
3
  const w = { class: "flex w-full gap-2 border-b pl-1.5 md:ml-1.5 md:pl-0" }, g = ["href", "onClick"], z = /* @__PURE__ */ m({
4
4
  __name: "Tabs",
5
5
  props: {
6
6
  type: {}
7
7
  },
8
- setup(n) {
8
+ setup(r) {
9
9
  const s = p(
10
- () => n.type === "workspace" ? ["overview", "environment", "cookies", "settings"] : [
10
+ () => r.type === "workspace" ? ["environment", "cookies", "settings"] : [
11
11
  "overview",
12
12
  "servers",
13
13
  "authentication",
@@ -22,18 +22,18 @@ const w = { class: "flex w-full gap-2 border-b pl-1.5 md:ml-1.5 md:pl-0" }, g =
22
22
  custom: "",
23
23
  to: { name: `${c.type}.${e}` }
24
24
  }, {
25
- default: v(({ isActive: i, href: l, navigate: a }) => [
26
- r("a", {
25
+ default: x(({ isActive: i, href: l, navigate: a }) => [
26
+ n("a", {
27
27
  class: "-ml-2 flex h-10 cursor-pointer items-center px-2 text-center text-sm font-medium whitespace-nowrap no-underline -outline-offset-1 has-[:focus-visible]:outline",
28
28
  href: l,
29
29
  onClick: a
30
30
  }, [
31
- r("span", {
32
- class: x([
31
+ n("span", {
32
+ class: k([
33
33
  "flex-center hover:text-c-1 h-full border-b",
34
34
  i ? "text-c-1 border-c-1" : "text-c-2 hover:text-c-1 border-transparent"
35
35
  ])
36
- }, k(_(e)), 3)
36
+ }, v(_(e)), 3)
37
37
  ], 8, g)
38
38
  ]),
39
39
  _: 2
@@ -1,98 +1,9 @@
1
- import type { Environment as EntitiesEnvironment } from '@scalar/oas-utils/entities/environment';
2
- import type { EnvVariable } from '../../../store/index.js';
3
- import { type Environment, type EnvironmentVariable } from './components/Environment.vue.js';
1
+ import type { CollectionType, WorkspaceEventBus } from '@scalar/workspace-store/events';
2
+ import type { XScalarEnvironments } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
4
3
  type __VLS_Props = {
5
- /** Current selected document name or when null it means workspace level environments */
6
- documentName: string | null;
7
- /** List of all available environments for the selected document */
8
- environments: Environment[];
9
- /** TODO: remove when we migrate to the new store */
10
- environment: EntitiesEnvironment;
11
- envVariables: EnvVariable[];
12
- };
13
- type __VLS_Slots = {
14
- icon: () => unknown;
15
- };
16
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
- "environment:reorder": (payload: {
18
- draggingItem: {
19
- id: string;
20
- };
21
- hoveredItem: {
22
- id: string;
23
- };
24
- }) => any;
25
- "environment:add": (payload: {
26
- environment: Environment;
27
- }) => any;
28
- "environment:update": (payload: {
29
- environmentName: string;
30
- environment: Partial<Environment>;
31
- }) => any;
32
- "environment:delete": (payload: {
33
- environmentName: string;
34
- }) => any;
35
- "environment:add:variable": (payload: {
36
- environmentName: string;
37
- environmentVariable: Partial<EnvironmentVariable>;
38
- }) => any;
39
- "environment:update:variable": (payload: {
40
- /** Row number */
41
- id: number;
42
- /** Environment name */
43
- environmentName: string;
44
- /** Payload */
45
- environmentVariable: Partial<EnvironmentVariable>;
46
- }) => any;
47
- "environment:delete:variable": (payload: {
48
- /** Environment name */
49
- environmentName: string;
50
- /** Row number */
51
- id: number;
52
- }) => any;
53
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
54
- "onEnvironment:reorder"?: ((payload: {
55
- draggingItem: {
56
- id: string;
57
- };
58
- hoveredItem: {
59
- id: string;
60
- };
61
- }) => any) | undefined;
62
- "onEnvironment:add"?: ((payload: {
63
- environment: Environment;
64
- }) => any) | undefined;
65
- "onEnvironment:update"?: ((payload: {
66
- environmentName: string;
67
- environment: Partial<Environment>;
68
- }) => any) | undefined;
69
- "onEnvironment:delete"?: ((payload: {
70
- environmentName: string;
71
- }) => any) | undefined;
72
- "onEnvironment:add:variable"?: ((payload: {
73
- environmentName: string;
74
- environmentVariable: Partial<EnvironmentVariable>;
75
- }) => any) | undefined;
76
- "onEnvironment:update:variable"?: ((payload: {
77
- /** Row number */
78
- id: number;
79
- /** Environment name */
80
- environmentName: string;
81
- /** Payload */
82
- environmentVariable: Partial<EnvironmentVariable>;
83
- }) => any) | undefined;
84
- "onEnvironment:delete:variable"?: ((payload: {
85
- /** Environment name */
86
- environmentName: string;
87
- /** Row number */
88
- id: number;
89
- }) => any) | undefined;
90
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
91
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
4
+ environments: NonNullable<XScalarEnvironments['x-scalar-environments']>;
5
+ eventBus: WorkspaceEventBus;
6
+ } & CollectionType;
7
+ 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>;
92
8
  export default _default;
93
- type __VLS_WithSlots<T, S> = T & {
94
- new (): {
95
- $slots: S;
96
- };
97
- };
98
9
  //# sourceMappingURL=EnvironmentsList.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/environments/EnvironmentsList.vue"],"names":[],"mappings":"AA+MA,OAAO,KAAK,EAAE,WAAW,IAAI,mBAAmB,EAAE,MAAM,wCAAwC,CAAA;AAGhG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAM1C,OAA6B,EAC3B,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACzB,MAAM,8BAA8B,CAAA;AAErC,KAAK,WAAW,GAAG;IACjB,wFAAwF;IACxF,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B,mEAAmE;IACnE,YAAY,EAAE,WAAW,EAAE,CAAA;IAE3B,oDAAoD;IACpD,WAAW,EAAE,mBAAmB,CAAA;IAChC,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;AAkDF,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,OAAO,CAAA;CACpB,CAAC;AAwSF,QAAA,MAAM,eAAe;;sBApVD;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;qBACf;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;;;qBAGgB,WAAW;;;yBAG5B,MAAM;qBAAe,OAAO,CAAC,WAAW,CAAC;;;yBAEjB,MAAM;;;yBAMvC,MAAM;6BACF,OAAO,CAAC,mBAAmB,CAAC;;;QAMjD,iBAAiB;YACb,MAAM;QACV,uBAAuB;yBACN,MAAM;QACvB,cAAc;6BACO,OAAO,CAAC,mBAAmB,CAAC;;;QAMjD,uBAAuB;yBACN,MAAM;QACvB,iBAAiB;YACb,MAAM;;;;sBApCI;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;qBACf;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;;;qBAGgB,WAAW;;;yBAG5B,MAAM;qBAAe,OAAO,CAAC,WAAW,CAAC;;;yBAEjB,MAAM;;;yBAMvC,MAAM;6BACF,OAAO,CAAC,mBAAmB,CAAC;;;QAMjD,iBAAiB;YACb,MAAM;QACV,uBAAuB;yBACN,MAAM;QACvB,cAAc;6BACO,OAAO,CAAC,mBAAmB,CAAC;;;QAMjD,uBAAuB;yBACN,MAAM;QACvB,iBAAiB;YACb,MAAM;;kFAuTd,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"EnvironmentsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/environments/EnvironmentsList.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2EAA2E,CAAA;AAQpH,KAAK,WAAW,GAAG;IACf,YAAY,EAAE,WAAW,CAAC,mBAAmB,CAAC,uBAAuB,CAAC,CAAC,CAAA;IACvE,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GAAG,cAAc,CAAC;;AAoLrB,wBAMG"}