@scalar/api-client 2.18.3 → 2.19.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 (240) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/components/AddressBar/AddressBar.vue2.js +5 -5
  3. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +6 -6
  4. package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +1 -1
  5. package/dist/components/ImportCollection/DropEventListener.vue.js +26 -28
  6. package/dist/components/ImportCollection/utils/get-openapi-version.d.ts.map +1 -1
  7. package/dist/components/ImportCollection/utils/import-collection.d.ts +1 -1
  8. package/dist/components/ImportCollection/utils/import-collection.d.ts.map +1 -1
  9. package/dist/components/Search/useSearch.d.ts.map +1 -1
  10. package/dist/components/Search/useSearch.js +16 -16
  11. package/dist/components/Server/index.d.ts +1 -1
  12. package/dist/components/Server/index.d.ts.map +1 -1
  13. package/dist/components/Server/index.js +6 -6
  14. package/dist/components/SideNav/SideNav.vue.js +3 -3
  15. package/dist/components/Sidebar/index.d.ts +1 -2
  16. package/dist/components/Sidebar/index.d.ts.map +1 -1
  17. package/dist/components/index.d.ts +2 -2
  18. package/dist/components/index.d.ts.map +1 -1
  19. package/dist/hooks/index.d.ts +2 -2
  20. package/dist/hooks/index.d.ts.map +1 -1
  21. package/dist/hooks/useResponseBody.d.ts +1 -1
  22. package/dist/hooks/useResponseBody.d.ts.map +1 -1
  23. package/dist/hooks/useResponseBody.js +4 -4
  24. package/dist/hooks/useSidebar.d.ts +1 -1
  25. package/dist/hooks/useSidebar.d.ts.map +1 -1
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/layouts/App/ApiClientApp.vue.js +5 -5
  29. package/dist/layouts/App/MainLayout.vue.js +4 -4
  30. package/dist/layouts/App/create-api-client-app.d.ts +12 -12
  31. package/dist/layouts/App/index.d.ts +1 -1
  32. package/dist/layouts/App/index.d.ts.map +1 -1
  33. package/dist/layouts/Web/ApiClientWeb.vue.js +6 -6
  34. package/dist/layouts/Web/create-api-client-web.d.ts +12 -12
  35. package/dist/layouts/Web/index.d.ts +1 -1
  36. package/dist/layouts/Web/index.d.ts.map +1 -1
  37. package/dist/libs/create-client.d.ts +12 -12
  38. package/dist/libs/get-request-uid-by-path-method.d.ts +1 -1
  39. package/dist/libs/get-request-uid-by-path-method.d.ts.map +1 -1
  40. package/dist/libs/hot-keys.d.ts +2 -2
  41. package/dist/libs/hot-keys.d.ts.map +1 -1
  42. package/dist/libs/importers/curl.d.ts.map +1 -1
  43. package/dist/libs/index.d.ts +14 -15
  44. package/dist/libs/index.d.ts.map +1 -1
  45. package/dist/libs/index.js +33 -33
  46. package/dist/libs/parse-curl.js +4 -4
  47. package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
  48. package/dist/libs/send-request/create-fetch-body.d.ts.map +1 -1
  49. package/dist/libs/send-request/create-fetch-body.js +1 -1
  50. package/dist/libs/send-request/create-fetch-headers.d.ts.map +1 -1
  51. package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
  52. package/dist/libs/send-request/create-fetch-query-params.js +2 -1
  53. package/dist/libs/send-request/index.d.ts +1 -1
  54. package/dist/libs/send-request/index.d.ts.map +1 -1
  55. package/dist/libs/send-request/index.js +4 -4
  56. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
  57. package/dist/libs/send-request/set-request-cookies.js +4 -4
  58. package/dist/store/active-entities.d.ts +1 -1
  59. package/dist/store/collections.d.ts +1 -1
  60. package/dist/store/collections.d.ts.map +1 -1
  61. package/dist/store/collections.js +4 -4
  62. package/dist/store/environment.d.ts +1 -1
  63. package/dist/store/environment.d.ts.map +1 -1
  64. package/dist/store/environment.js +4 -4
  65. package/dist/store/import-spec.d.ts +2 -2
  66. package/dist/store/import-spec.d.ts.map +1 -1
  67. package/dist/store/index.d.ts +1 -1
  68. package/dist/store/index.d.ts.map +1 -1
  69. package/dist/store/request-example.d.ts +1 -1
  70. package/dist/store/request-example.d.ts.map +1 -1
  71. package/dist/store/request-example.js +6 -6
  72. package/dist/store/requests.d.ts +1 -1
  73. package/dist/store/requests.d.ts.map +1 -1
  74. package/dist/store/requests.js +8 -8
  75. package/dist/store/security-schemes.d.ts +1 -1
  76. package/dist/store/security-schemes.d.ts.map +1 -1
  77. package/dist/store/security-schemes.js +4 -4
  78. package/dist/store/servers.d.ts +1 -1
  79. package/dist/store/servers.d.ts.map +1 -1
  80. package/dist/store/servers.js +4 -4
  81. package/dist/store/store.d.ts +12 -12
  82. package/dist/store/tags.d.ts +1 -1
  83. package/dist/store/tags.d.ts.map +1 -1
  84. package/dist/store/tags.js +5 -5
  85. package/dist/store/workspace.d.ts +13 -13
  86. package/dist/store/workspace.d.ts.map +1 -1
  87. package/dist/store/workspace.js +7 -7
  88. package/dist/style.css +1 -1
  89. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +4 -5
  90. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  91. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +17 -16
  92. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts +3 -3
  93. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts.map +1 -1
  94. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +22 -22
  95. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
  96. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +14 -13
  97. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
  98. package/dist/v2/blocks/operation-block/helpers/build-request.js +43 -41
  99. package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.d.ts +14 -0
  100. package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.d.ts.map +1 -0
  101. package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.js +14 -0
  102. package/dist/v2/blocks/operation-block/helpers/get-resolved-url.d.ts +25 -0
  103. package/dist/v2/blocks/operation-block/helpers/get-resolved-url.d.ts.map +1 -0
  104. package/dist/v2/blocks/operation-block/helpers/get-resolved-url.js +17 -0
  105. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +10 -0
  106. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
  107. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +1 -1
  108. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +29 -25
  109. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +6 -1
  110. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  111. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +27 -23
  112. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +10 -1
  113. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
  114. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +48 -39
  115. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  116. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +49 -46
  117. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts +1 -1
  118. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts.map +1 -1
  119. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js +1 -1
  120. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +6 -2
  121. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  122. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  123. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +200 -115
  124. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +4 -4
  125. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
  126. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +21 -17
  127. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +16 -10
  128. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  129. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +32 -45
  130. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +16 -13
  131. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  132. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +4 -4
  133. package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +32 -33
  134. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +33 -18
  135. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  136. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +106 -106
  137. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +10 -5
  138. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  139. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +60 -31
  140. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +41 -0
  141. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -0
  142. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +25 -0
  143. package/dist/v2/blocks/request-block/helpers/group-by.d.ts +1 -1
  144. package/dist/v2/blocks/request-block/helpers/group-by.d.ts.map +1 -1
  145. package/dist/v2/blocks/request-block/helpers/group-by.js +6 -3
  146. package/dist/v2/blocks/request-block/helpers/is-param-disabled.d.ts +13 -0
  147. package/dist/v2/blocks/request-block/helpers/is-param-disabled.d.ts.map +1 -0
  148. package/dist/v2/blocks/request-block/helpers/is-param-disabled.js +7 -0
  149. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  150. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
  151. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +61 -63
  152. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +1 -2
  153. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  154. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +2 -2
  155. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +2 -2
  156. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +1 -2
  157. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  158. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
  159. package/dist/v2/components/code-input/CodeInput.vue.d.ts +2 -0
  160. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  161. package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
  162. package/dist/v2/components/code-input/CodeInput.vue2.js +57 -51
  163. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -0
  164. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  165. package/dist/v2/components/sidebar/Sidebar.vue.js +31 -26
  166. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +11 -1
  167. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  168. package/dist/v2/components/sidebar/SidebarMenu.vue.js +31 -32
  169. package/dist/v2/features/app/App.vue.d.ts +16 -2
  170. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  171. package/dist/v2/features/app/App.vue.js +53 -48
  172. package/dist/v2/features/app/app-events.d.ts +5 -9
  173. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  174. package/dist/v2/features/app/app-events.js +146 -120
  175. package/dist/v2/features/app/app-state.d.ts +2 -1
  176. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  177. package/dist/v2/features/app/app-state.js +77 -79
  178. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +11 -1
  179. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  180. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  181. package/dist/v2/features/app/components/AppSidebar.vue2.js +78 -75
  182. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +5 -59
  183. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  184. package/dist/v2/features/app/helpers/create-api-client-app.js +9 -8
  185. package/dist/v2/features/app/index.d.ts +5 -1
  186. package/dist/v2/features/app/index.d.ts.map +1 -1
  187. package/dist/v2/features/app/index.js +8 -2
  188. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  189. package/dist/v2/features/modal/Modal.vue.js +1 -1
  190. package/dist/v2/features/modal/Modal.vue2.js +21 -22
  191. package/dist/v2/features/modal/index.d.ts +1 -1
  192. package/dist/v2/features/modal/index.d.ts.map +1 -1
  193. package/dist/v2/features/modal/index.js +4 -4
  194. package/dist/v2/features/modal/modal-events.d.ts +13 -0
  195. package/dist/v2/features/modal/modal-events.d.ts.map +1 -0
  196. package/dist/v2/features/modal/modal-events.js +31 -0
  197. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  198. package/dist/v2/features/operation/Operation.vue.js +30 -43
  199. package/dist/v2/workspace-events.d.ts +25 -0
  200. package/dist/v2/workspace-events.d.ts.map +1 -0
  201. package/dist/v2/workspace-events.js +202 -0
  202. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
  203. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +1 -1
  204. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
  205. package/dist/views/Cookies/Cookies.vue2.js +3 -3
  206. package/dist/views/Environment/handle-drag.d.ts +1 -1
  207. package/dist/views/Environment/handle-drag.d.ts.map +1 -1
  208. package/dist/views/Request/RequestRoot.vue2.js +9 -9
  209. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +4 -4
  210. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +4 -4
  211. package/dist/views/Request/RequestSection/RequestSection.vue2.js +5 -5
  212. package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts.map +1 -1
  213. package/dist/views/Request/RequestSidebar.vue2.js +6 -6
  214. package/dist/views/Request/RequestSidebarItem.vue2.js +6 -6
  215. package/dist/views/Request/RequestSubpageHeader.vue2.js +4 -4
  216. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  217. package/dist/views/Request/ResponseSection/index.d.ts +1 -1
  218. package/dist/views/Request/ResponseSection/index.d.ts.map +1 -1
  219. package/dist/views/Request/ResponseSection/index.js +4 -4
  220. package/dist/views/Request/consts/index.d.ts +2 -3
  221. package/dist/views/Request/consts/index.d.ts.map +1 -1
  222. package/dist/views/Request/consts/new-auth-options.d.ts +1 -1
  223. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  224. package/dist/views/Request/handle-drag.d.ts +1 -1
  225. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  226. package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
  227. package/dist/views/Request/hooks/useOpenApiWatcher.js +14 -14
  228. package/dist/views/Request/libs/auth.d.ts +1 -1
  229. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  230. package/dist/views/Request/libs/index.d.ts +3 -3
  231. package/dist/views/Request/libs/index.d.ts.map +1 -1
  232. package/dist/views/Request/libs/oauth2.js +1 -1
  233. package/dist/views/Request/libs/watch-mode.js +6 -6
  234. package/dist/views/Request/types/index.d.ts +1 -1
  235. package/dist/views/Request/types/index.d.ts.map +1 -1
  236. package/package.json +14 -14
  237. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts +0 -18
  238. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +0 -1
  239. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +0 -39
  240. package/dist/v2/features/operation/helpers/get-operation-header.js +0 -12
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/Sidebar.vue"],"names":[],"mappings":"AAsJA,OAAO,EAAoB,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAE/E,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,YAAY,EAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAKhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAIrD,KAAK,WAAW,GAAG;IACjB,iDAAiD;IACjD,YAAY,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;IAC1C,4BAA4B;IAC5B,MAAM,EAAE,YAAY,CAAA;IACpB,qCAAqC;IACrC,eAAe,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/B,2CAA2C;IAC3C,UAAU,EAAE,mBAAmB,EAAE,CAAA;IACjC,kEAAkE;IAClE,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,+CAA+C;IAC/C,SAAS,EAAE,iBAAiB,EAAE,CAAA;IAC9B;;;;OAIG;IACH,WAAW,CAAC,EACR,OAAO,GACP,CAAC,CAAC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,KAAK,OAAO,CAAC,CAAA;CACxE,CAAC;AAeF,KAAK,WAAW,GAAG;IACjB,uCAAuC;IACvC,eAAe,CAAC,IAAI,OAAO,CAAA;IAC3B,sDAAsD;IACtD,SAAS,CAAC,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,GAAG,OAAO,CAAA;I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AE,mBAAmB,EAAE,CAAA;IACjC,kEAAkE;IAClE,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,+CAA+C;IAC/C,SAAS,EAAE,iBAAiB,EAAE,CAAA;IAC9B;;;;OAIG;IACH,WAAW,CAAC,EACR,OAAO,GACP,CAAC,CAAC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,KAAK,OAAO,CAAC,CAAA;CACxE,CAAC;AAeF,KAAK,WAAW,GAAG;IACjB,uCAAuC;IACvC,eAAe,CAAC,IAAI,OAAO,CAAA;IAC3B,sDAAsD;IACtD,SAAS,CAAC,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,GAAG,OAAO,CAAA;IACpD,mDAAmD;IACnD,MAAM,CAAC,IAAI,OAAO,CAAA;IAClB,yDAAyD;IACzD,KAAK,CAAC,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,GAAG,OAAO,CAAA;IAChD,oEAAoE;IACpE,kBAAkB,CAAC,IAAI,OAAO,CAAA;CAC/B,CAAC;AAiBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;CACtB,CAAC;AA2NF,QAAA,MAAM,eAAe;;;;;;;;;;;;;kFAOnB,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,9 +1,9 @@
1
- import { defineComponent as y, mergeModels as f, useSlots as g, ref as x, useModel as B, createBlock as d, openBlock as a, unref as r, withCtx as s, createVNode as W, createSlots as $, renderSlot as n, normalizeProps as b, guardReactiveProps as p, createElementVNode as k, createCommentVNode as m, createElementBlock as D } from "vue";
2
- import { ScalarIconButton as C } from "@scalar/components";
3
- import { ScalarIconMagnifyingGlass as E } from "@scalar/icons";
4
- import { ScalarSidebar as I } from "@scalar/sidebar";
5
- import h from "./SidebarMenu.vue.js";
6
- import M from "../resize/Resize.vue.js";
1
+ import { defineComponent as y, mergeModels as f, useSlots as g, ref as B, useModel as x, createBlock as n, openBlock as r, unref as i, withCtx as s, createVNode as W, createSlots as $, renderSlot as l, normalizeProps as b, guardReactiveProps as p, createElementVNode as k, createCommentVNode as u, createElementBlock as D } from "vue";
2
+ import { ScalarIconButton as M } from "@scalar/components";
3
+ import { ScalarIconMagnifyingGlass as C } from "@scalar/icons";
4
+ import { ScalarSidebar as E } from "@scalar/sidebar";
5
+ import I from "./SidebarMenu.vue.js";
6
+ import h from "../resize/Resize.vue.js";
7
7
  import V from "../../features/search/components/SearchButton.vue.js";
8
8
  const z = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, N = { class: "flex items-center justify-between" }, R = { key: 1 }, H = /* @__PURE__ */ y({
9
9
  __name: "Sidebar",
@@ -24,14 +24,14 @@ const z = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, N =
24
24
  }),
25
25
  emits: /* @__PURE__ */ f(["selectItem", "select:workspace", "create:workspace", "reorder"], ["update:sidebarWidth"]),
26
26
  setup(e, { emit: v }) {
27
- const i = v, w = g(), c = x(!1), u = B(e, "sidebarWidth");
28
- return (l, o) => (a(), d(r(M), {
29
- width: u.value,
30
- "onUpdate:width": o[5] || (o[5] = (t) => u.value = t),
27
+ const d = v, w = g(), c = B(!1), m = x(e, "sidebarWidth");
28
+ return (a, o) => (r(), n(i(h), {
29
+ width: m.value,
30
+ "onUpdate:width": o[5] || (o[5] = (t) => m.value = t),
31
31
  class: "flex flex-col"
32
32
  }, {
33
33
  default: s(() => [
34
- W(r(I), {
34
+ W(i(E), {
35
35
  class: "flex w-auto flex-1 pt-2",
36
36
  indent: 15,
37
37
  isDraggable: e.layout !== "modal",
@@ -40,48 +40,53 @@ const z = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, N =
40
40
  isSelected: e.sidebarState.isSelected,
41
41
  items: e.sidebarState.items.value,
42
42
  layout: "client",
43
- onReorder: o[3] || (o[3] = (t, S) => i("reorder", t, S)),
44
- onSelectItem: o[4] || (o[4] = (t) => i("selectItem", t))
43
+ onReorder: o[3] || (o[3] = (t, S) => d("reorder", t, S)),
44
+ onSelectItem: o[4] || (o[4] = (t) => d("selectItem", t))
45
45
  }, $({
46
46
  header: s(() => [
47
47
  k("div", z, [
48
48
  k("div", N, [
49
- e.layout === "desktop" ? (a(), d(h, {
49
+ e.layout === "desktop" ? (r(), n(I, {
50
50
  key: 0,
51
51
  activeWorkspace: e.activeWorkspace,
52
52
  workspaces: e.workspaces,
53
- "onCreate:workspace": o[0] || (o[0] = (t) => i("create:workspace")),
54
- "onSelect:workspace": o[1] || (o[1] = (t) => i("select:workspace", t))
55
- }, null, 8, ["activeWorkspace", "workspaces"])) : e.layout === "modal" ? (a(), D("div", R)) : m("", !0),
56
- e.layout !== "web" ? (a(), d(r(C), {
53
+ "onCreate:workspace": o[0] || (o[0] = (t) => d("create:workspace")),
54
+ "onSelect:workspace": o[1] || (o[1] = (t) => d("select:workspace", t))
55
+ }, {
56
+ sidebarMenuActions: s(() => [
57
+ l(a.$slots, "sidebarMenuActions")
58
+ ]),
59
+ _: 3
60
+ }, 8, ["activeWorkspace", "workspaces"])) : e.layout === "modal" ? (r(), D("div", R)) : u("", !0),
61
+ e.layout !== "web" ? (r(), n(i(M), {
57
62
  key: 2,
58
- icon: r(E),
63
+ icon: i(C),
59
64
  label: "Search",
60
65
  onClick: o[2] || (o[2] = (t) => c.value = !c.value)
61
- }, null, 8, ["icon"])) : m("", !0)
66
+ }, null, 8, ["icon"])) : u("", !0)
62
67
  ]),
63
- c.value || e.layout === "web" ? (a(), d(r(V), {
68
+ c.value || e.layout === "web" ? (r(), n(i(V), {
64
69
  key: 0,
65
70
  documents: e.documents,
66
71
  eventBus: e.eventBus
67
- }, null, 8, ["documents", "eventBus"])) : m("", !0)
72
+ }, null, 8, ["documents", "eventBus"])) : u("", !0)
68
73
  ])
69
74
  ]),
70
75
  decorator: s((t) => [
71
- n(l.$slots, "decorator", b(p(t)))
76
+ l(a.$slots, "decorator", b(p(t)))
72
77
  ]),
73
78
  before: s(() => [
74
- n(l.$slots, "workspaceButton")
79
+ l(a.$slots, "workspaceButton")
75
80
  ]),
76
81
  footer: s(() => [
77
- n(l.$slots, "footer")
82
+ l(a.$slots, "footer")
78
83
  ]),
79
84
  _: 2
80
85
  }, [
81
86
  w.empty ? {
82
87
  name: "empty",
83
88
  fn: s((t) => [
84
- n(l.$slots, "empty", b(p(t)))
89
+ l(a.$slots, "empty", b(p(t)))
85
90
  ]),
86
91
  key: "0"
87
92
  } : void 0
@@ -13,12 +13,22 @@ type __VLS_Props = {
13
13
  */
14
14
  workspaces: ScalarListboxOption[];
15
15
  };
16
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
16
+ type __VLS_Slots = {
17
+ /** Slot for customizing the actions section of the sidebar menu. */
18
+ sidebarMenuActions?(): unknown;
19
+ };
20
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
21
  "create:workspace": () => any;
18
22
  "select:workspace": (id?: string | undefined) => any;
19
23
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
24
  "onCreate:workspace"?: (() => any) | undefined;
21
25
  "onSelect:workspace"?: ((id?: string | undefined) => any) | undefined;
22
26
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
23
28
  export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
24
34
  //# sourceMappingURL=SidebarMenu.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/SidebarMenu.vue"],"names":[],"mappings":"AA2EA,OAAO,EAOL,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAA;AAI3B,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,eAAe,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/B;;;OAGG;IACH,UAAU,EAAE,mBAAmB,EAAE,CAAA;CAClC,CAAC;;;;;;;;AAwIF,wBAOG"}
1
+ {"version":3,"file":"SidebarMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/SidebarMenu.vue"],"names":[],"mappings":"AAoEA,OAAO,EAOL,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAA;AAI3B,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,eAAe,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/B;;;OAGG;IACH,UAAU,EAAE,mBAAmB,EAAE,CAAA;CAClC,CAAC;AAWF,KAAK,WAAW,GAAG;IACjB,oEAAoE;IACpE,kBAAkB,CAAC,IAAI,OAAO,CAAA;CAC/B,CAAC;AA8HF,QAAA,MAAM,eAAe;;;;;;kFAOnB,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,7 +1,7 @@
1
- import { defineComponent as p, createBlock as u, openBlock as k, unref as o, withCtx as t, createVNode as r, createTextVNode as i } from "vue";
2
- import { ScalarMenu as m, ScalarMenuSection as d, ScalarMenuWorkspacePicker as S, ScalarMenuLink as f, ScalarMenuResources as w, ScalarMenuSupport as M } from "@scalar/components";
3
- import { ScalarIconGear as C } from "@scalar/icons";
4
- import { RouterLink as V } from "vue-router";
1
+ import { defineComponent as p, createBlock as u, openBlock as k, unref as o, withCtx as t, createVNode as r, renderSlot as m, createTextVNode as d } from "vue";
2
+ import { ScalarMenu as S, ScalarMenuSection as f, ScalarMenuWorkspacePicker as w, ScalarMenuLink as M, ScalarMenuResources as C, ScalarMenuSupport as V } from "@scalar/components";
3
+ import { ScalarIconGear as W } from "@scalar/icons";
4
+ import { RouterLink as v } from "vue-router";
5
5
  const L = /* @__PURE__ */ p({
6
6
  __name: "SidebarMenu",
7
7
  props: {
@@ -9,40 +9,39 @@ const L = /* @__PURE__ */ p({
9
9
  workspaces: {}
10
10
  },
11
11
  emits: ["create:workspace", "select:workspace"],
12
- setup(a, { emit: l }) {
13
- const n = l;
14
- return (x, e) => (k(), u(o(m), null, {
12
+ setup(a, { emit: i }) {
13
+ const n = i;
14
+ return (c, e) => (k(), u(o(S), null, {
15
15
  products: t(() => [...e[2] || (e[2] = [])]),
16
- sections: t(({ close: c }) => [
17
- r(o(d), null, {
18
- title: t(() => [...e[3] || (e[3] = [
19
- i("Team", -1)
20
- ])]),
16
+ sections: t(({ close: l }) => [
17
+ r(o(f), null, {
21
18
  default: t(() => [
22
- r(o(S), {
23
- modelValue: a.activeWorkspace.id,
24
- workspaceOptions: a.workspaces,
25
- onCreateWorkspace: e[0] || (e[0] = (s) => n("create:workspace")),
26
- "onUpdate:modelValue": e[1] || (e[1] = (s) => n("select:workspace", s))
27
- }, null, 8, ["modelValue", "workspaceOptions"]),
28
- r(o(f), {
29
- is: o(V),
30
- icon: o(C),
31
- to: "/settings",
32
- onClick: c
33
- }, {
34
- default: t(() => [...e[4] || (e[4] = [
35
- i(" Settings ", -1)
36
- ])]),
37
- _: 1
38
- }, 8, ["is", "icon", "onClick"])
19
+ m(c.$slots, "sidebarMenuActions", {}, () => [
20
+ r(o(w), {
21
+ modelValue: a.activeWorkspace.id,
22
+ workspaceOptions: a.workspaces,
23
+ onCreateWorkspace: e[0] || (e[0] = (s) => n("create:workspace")),
24
+ "onUpdate:modelValue": e[1] || (e[1] = (s) => n("select:workspace", s))
25
+ }, null, 8, ["modelValue", "workspaceOptions"]),
26
+ r(o(M), {
27
+ is: o(v),
28
+ icon: o(W),
29
+ to: "/settings",
30
+ onClick: l
31
+ }, {
32
+ default: t(() => [...e[3] || (e[3] = [
33
+ d(" Settings ", -1)
34
+ ])]),
35
+ _: 1
36
+ }, 8, ["is", "icon", "onClick"])
37
+ ])
39
38
  ]),
40
39
  _: 2
41
40
  }, 1024),
42
- r(o(w)),
43
- r(o(M))
41
+ r(o(C)),
42
+ r(o(V))
44
43
  ]),
45
- _: 1
44
+ _: 3
46
45
  }));
47
46
  }
48
47
  });
@@ -1,16 +1,30 @@
1
1
  import type { ClientPlugin } from '../../../v2/helpers/plugins.js';
2
2
  import type { ClientLayout } from '../../../v2/types/layout';
3
+ import { type AppState } from './app-state.js';
3
4
  /**
4
5
  * Main entry point for the API client for electron and web.
5
6
  *
6
7
  * This component handles all events and store business logic for the application.
7
8
  */
8
- declare const _default: import("vue").DefineComponent<{
9
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
9
10
  layout: Exclude<ClientLayout, "modal">;
10
11
  plugins?: ClientPlugin[];
12
+ getAppState: () => AppState;
11
13
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
12
14
  layout: Exclude<ClientLayout, "modal">;
13
15
  plugins?: ClientPlugin[];
14
- }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ getAppState: () => AppState;
17
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
18
+ /**
19
+ * Slot for customizing the actions section of the sidebar menu.
20
+ * This slot is used to render custom actions or components within the actions section.
21
+ */
22
+ 'sidebar-menu-actions': [];
23
+ }>;
15
24
  export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
16
30
  //# sourceMappingURL=App.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/App.vue"],"names":[],"mappings":"AA0MA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAQrD;;;;GAIG;;YAGO,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;;YADhB,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;;AAH1B,wBAmTC"}
1
+ {"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/App.vue"],"names":[],"mappings":"AA2NA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAA;AAM3C;;;;GAIG;;YAGO,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;iBACX,MAAM,QAAQ;;YAFnB,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;iBACX,MAAM,QAAQ;;IAS3B;;;OAGG;4BACqB,EAAE;;AAjB5B,wBAuUC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,111 +1,116 @@
1
- import { defineComponent as k, computed as u, createElementBlock as w, createBlock as c, unref as t, openBlock as n, Fragment as S, createElementVNode as p, createVNode as o, withCtx as f, normalizeProps as b, guardReactiveProps as h } from "vue";
2
- import { useModal as W, ScalarTeleportRoot as T } from "@scalar/components";
3
- import { getThemeStyles as y } from "@scalar/themes";
1
+ import { defineComponent as w, computed as p, createElementBlock as S, createBlock as c, unref as t, openBlock as i, Fragment as f, createElementVNode as u, createVNode as s, withCtx as m, renderSlot as b, normalizeProps as h, guardReactiveProps as W } from "vue";
2
+ import { useModal as y, ScalarTeleportRoot as T } from "@scalar/components";
3
+ import { getThemeStyles as g } from "@scalar/themes";
4
4
  import { ScalarToasts as B } from "@scalar/use-toasts";
5
- import { extensions as g } from "@scalar/workspace-store/schemas/extensions";
6
- import { RouterView as x } from "vue-router";
7
- import C from "./components/CreateWorkspaceModal.vue.js";
8
- import E from "./components/SplashScreen.vue.js";
9
- import { useDocumentWatcher as _ } from "./hooks/use-document-watcher.js";
10
- import O from "../command-palette/components/TheCommandPalette.vue.js";
11
- import { useColorMode as I } from "../../hooks/use-color-mode.js";
12
- import { useGlobalHotKeys as U } from "../../hooks/use-global-hot-keys.js";
13
- import { useAppState as M } from "./app-state.js";
14
- import A from "./components/AppSidebar.vue.js";
5
+ import { extensions as C } from "@scalar/workspace-store/schemas/extensions";
6
+ import { RouterView as E } from "vue-router";
7
+ import x from "./components/CreateWorkspaceModal.vue.js";
8
+ import O from "./components/SplashScreen.vue.js";
9
+ import { useDocumentWatcher as I } from "./hooks/use-document-watcher.js";
10
+ import _ from "../command-palette/components/TheCommandPalette.vue.js";
11
+ import { useColorMode as A } from "../../hooks/use-color-mode.js";
12
+ import { useGlobalHotKeys as M } from "../../hooks/use-global-hot-keys.js";
13
+ import U from "./components/AppSidebar.vue.js";
15
14
  import D from "./components/DesktopTabs.vue.js";
16
15
  import N from "./components/WebTopNav.vue.js";
17
- const L = ["innerHTML"], $ = { class: "flex min-h-0 flex-1" }, H = { class: "bg-b-1 flex-1" }, P = {}, se = /* @__PURE__ */ k({
16
+ const $ = ["innerHTML"], L = { class: "flex min-h-0 flex-1" }, H = { class: "bg-b-1 flex-1" }, P = {}, oe = /* @__PURE__ */ w({
18
17
  ...P,
19
18
  __name: "App",
20
19
  props: {
21
20
  layout: {},
22
- plugins: { default: () => [] }
21
+ plugins: { default: () => [] },
22
+ getAppState: { type: Function }
23
23
  },
24
- setup(s) {
25
- const e = M();
26
- typeof window < "u" && (window.dataDumpWorkspace = () => e.store.value, window.dumpAppState = () => e), I({ workspaceStore: e.store }), U(e.eventBus, s.layout), _({
27
- documentName: () => e.store.value?.workspace[g.workspace.activeDocument],
24
+ setup(o) {
25
+ const e = o.getAppState();
26
+ typeof window < "u" && (window.dataDumpWorkspace = () => e.store.value, window.dumpAppState = () => e), A({ workspaceStore: e.store }), M(e.eventBus, o.layout), I({
27
+ documentName: () => e.store.value?.workspace[C.workspace.activeDocument],
28
28
  store: e.store,
29
29
  initialTimeout: 5e3
30
30
  });
31
- const m = u(() => {
31
+ const d = p(() => {
32
32
  if (e.store.value === null)
33
33
  return "";
34
- const l = e.store.value.workspace["x-scalar-theme"];
35
- return l ? `<style>${y(l)}</style>` : "";
36
- }), d = () => e.router.value?.push({
34
+ const n = e.store.value.workspace["x-scalar-theme"];
35
+ return n ? `<style>${g(n)}</style>` : "";
36
+ }), v = () => e.router.value?.push({
37
37
  name: "workspace.environment",
38
38
  params: {
39
39
  workspaceSlug: e.activeEntities.workspaceSlug.value
40
40
  }
41
- }), i = W(), v = u(() => ({
41
+ }), l = y(), k = p(() => ({
42
42
  documentSlug: e.activeEntities.documentSlug.value ?? "",
43
43
  document: e.store.value?.workspace.activeDocument ?? null,
44
44
  environment: e.environment.value,
45
45
  eventBus: e.eventBus,
46
46
  exampleName: e.activeEntities.exampleName.value,
47
- layout: s.layout,
47
+ layout: o.layout,
48
48
  method: e.activeEntities.method.value,
49
49
  path: e.activeEntities.path.value,
50
50
  workspaceStore: e.store.value,
51
51
  activeWorkspace: e.workspace.activeWorkspace.value,
52
- plugins: s.plugins,
52
+ plugins: o.plugins,
53
53
  securitySchemes: e.document.value?.components?.securitySchemes ?? {}
54
54
  }));
55
- return (l, a) => t(e).store.value !== null && t(e).workspace.activeWorkspace.value !== null && !t(e).loading.value ? (n(), w(S, { key: 0 }, [
56
- p("div", { innerHTML: m.value }, null, 8, L),
57
- o(t(T), null, {
58
- default: f(() => [
59
- o(t(B)),
60
- s.layout === "desktop" ? (n(), c(D, {
55
+ return (n, a) => t(e).store.value !== null && t(e).workspace.activeWorkspace.value !== null && !t(e).loading.value ? (i(), S(f, { key: 0 }, [
56
+ u("div", { innerHTML: d.value }, null, 8, $),
57
+ s(t(T), null, {
58
+ default: m(() => [
59
+ s(t(B)),
60
+ o.layout === "desktop" ? (i(), c(D, {
61
61
  key: 0,
62
62
  activeTabIndex: t(e).tabs.activeTabIndex.value,
63
63
  eventBus: t(e).eventBus,
64
64
  tabs: t(e).tabs.state.value
65
- }, null, 8, ["activeTabIndex", "eventBus", "tabs"])) : (n(), c(N, {
65
+ }, null, 8, ["activeTabIndex", "eventBus", "tabs"])) : (i(), c(N, {
66
66
  key: 1,
67
67
  activeWorkspace: t(e).workspace.activeWorkspace.value,
68
68
  workspaces: t(e).workspace.workspaceList.value,
69
- "onCreate:workspace": a[0] || (a[0] = (r) => t(i).show()),
69
+ "onCreate:workspace": a[0] || (a[0] = (r) => t(l).show()),
70
70
  "onSelect:workspace": t(e).workspace.setId
71
71
  }, null, 8, ["activeWorkspace", "workspaces", "onSelect:workspace"])),
72
- p("main", $, [
73
- o(A, {
72
+ u("main", L, [
73
+ s(U, {
74
74
  isSidebarOpen: t(e).sidebar.isOpen.value,
75
75
  "onUpdate:isSidebarOpen": a[1] || (a[1] = (r) => t(e).sidebar.isOpen.value = r),
76
76
  activeWorkspace: t(e).workspace.activeWorkspace.value,
77
77
  eventBus: t(e).eventBus,
78
78
  isWorkspaceOpen: t(e).workspace.isOpen.value,
79
- layout: s.layout,
79
+ layout: o.layout,
80
80
  sidebarState: t(e).sidebar.state,
81
81
  sidebarWidth: t(e).sidebar.width.value,
82
82
  store: t(e).store.value,
83
83
  workspaces: t(e).workspace.workspaceList.value,
84
- "onClick:workspace": d,
85
- "onCreate:workspace": a[2] || (a[2] = (r) => t(i).show()),
84
+ "onClick:workspace": v,
85
+ "onCreate:workspace": a[2] || (a[2] = (r) => t(l).show()),
86
86
  "onSelect:workspace": t(e).workspace.setId,
87
87
  onSelectItem: t(e).sidebar.handleSelectItem,
88
88
  "onUpdate:sidebarWidth": t(e).sidebar.handleSidebarWidthUpdate
89
- }, null, 8, ["isSidebarOpen", "activeWorkspace", "eventBus", "isWorkspaceOpen", "layout", "sidebarState", "sidebarWidth", "store", "workspaces", "onSelect:workspace", "onSelectItem", "onUpdate:sidebarWidth"]),
90
- o(C, {
91
- state: t(i),
89
+ }, {
90
+ sidebarMenuActions: m(() => [
91
+ b(n.$slots, "sidebar-menu-actions")
92
+ ]),
93
+ _: 3
94
+ }, 8, ["isSidebarOpen", "activeWorkspace", "eventBus", "isWorkspaceOpen", "layout", "sidebarState", "sidebarWidth", "store", "workspaces", "onSelect:workspace", "onSelectItem", "onUpdate:sidebarWidth"]),
95
+ s(x, {
96
+ state: t(l),
92
97
  "onCreate:workspace": a[3] || (a[3] = (r) => t(e).workspace.create(r))
93
98
  }, null, 8, ["state"]),
94
- o(O, {
99
+ s(_, {
95
100
  eventBus: t(e).eventBus,
96
101
  paletteState: t(e).commandPalette,
97
102
  workspaceStore: t(e).store.value
98
103
  }, null, 8, ["eventBus", "paletteState", "workspaceStore"]),
99
- p("div", H, [
100
- o(t(x), b(h(v.value)), null, 16)
104
+ u("div", H, [
105
+ s(t(E), h(W(k.value)), null, 16)
101
106
  ])
102
107
  ])
103
108
  ]),
104
- _: 1
109
+ _: 3
105
110
  })
106
- ], 64)) : (n(), c(E, { key: 1 }));
111
+ ], 64)) : (i(), c(O, { key: 1 }));
107
112
  }
108
113
  });
109
114
  export {
110
- se as default
115
+ oe as default
111
116
  };
@@ -1,18 +1,14 @@
1
1
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
- import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
3
- import { type OperationExampleMeta } from '@scalar/workspace-store/mutators';
4
- import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace';
5
- import { type ComputedRef, type ShallowRef } from 'vue';
2
+ import type { OperationExampleMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
3
+ import { type ShallowRef } from 'vue';
6
4
  import type { Router } from 'vue-router';
7
5
  import type { OpenCommand } from '../command-palette/hooks/use-command-palette-state.js';
8
- export declare function initializeAppEventHandlers({ eventBus, getStore, document, router, rebuildSidebar, navigateToCurrentTab, onSelectSidebarItem, onAfterExampleCreation, onOpenCommandPalette, onCopyTabUrl, onToggleSidebar, }: {
6
+ export declare function initializeAppEventHandlers({ eventBus, store, router, rebuildSidebar, navigateToCurrentTab, onSelectSidebarItem, onAfterExampleCreation, onOpenCommandPalette, onCopyTabUrl, onToggleSidebar, }: {
9
7
  eventBus: WorkspaceEventBus;
10
- getStore: () => WorkspaceStore | null;
11
- /** Current active document */
12
- document: ComputedRef<WorkspaceDocument | null>;
8
+ store: ShallowRef<WorkspaceStore | null>;
13
9
  router: ShallowRef<Router | null>;
14
- navigateToCurrentTab: () => Promise<void>;
15
10
  rebuildSidebar: (documentName?: string) => void;
11
+ navigateToCurrentTab: () => Promise<void>;
16
12
  onSelectSidebarItem: (id: string) => void;
17
13
  onAfterExampleCreation: (o: OperationExampleMeta) => void;
18
14
  onOpenCommandPalette: OpenCommand;
@@ -1 +1 @@
1
- {"version":3,"file":"app-events.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/app-events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAwC,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE7G,OAAO,EACL,KAAK,oBAAoB,EA8C1B,MAAM,kCAAkC,CAAA;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA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