@scalar/api-client 2.11.0 → 2.13.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 (491) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue2.js +35 -29
  5. package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
  6. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  7. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +2 -2
  8. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
  9. package/dist/components/CommandPalette/CommandActionForm.vue.js +14 -14
  10. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +38 -38
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
  12. package/dist/components/EmptyState.vue.d.ts.map +1 -1
  13. package/dist/components/EmptyState.vue.js +2 -2
  14. package/dist/components/EmptyState.vue2.js +27 -16
  15. package/dist/components/TopNav/TopNav.vue.js +33 -33
  16. package/dist/hooks/useClientConfig.d.ts +3 -0
  17. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  18. package/dist/layouts/App/create-api-client-app.d.ts +45 -45
  19. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  20. package/dist/layouts/Web/create-api-client-web.d.ts +45 -45
  21. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  22. package/dist/libs/create-client.d.ts +46 -46
  23. package/dist/libs/create-client.d.ts.map +1 -1
  24. package/dist/libs/errors.d.ts +1 -0
  25. package/dist/libs/errors.d.ts.map +1 -1
  26. package/dist/libs/errors.js +2 -1
  27. package/dist/libs/find-request.d.ts +1 -1
  28. package/dist/libs/hot-keys.d.ts +2 -2
  29. package/dist/libs/send-request/create-fetch-body.d.ts +2 -2
  30. package/dist/libs/send-request/create-request-operation.d.ts +4 -4
  31. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  32. package/dist/libs/send-request/create-request-operation.js +60 -51
  33. package/dist/store/active-entities.d.ts +3 -3
  34. package/dist/store/active-entities.d.ts.map +1 -1
  35. package/dist/store/collections.d.ts +4 -4
  36. package/dist/store/collections.d.ts.map +1 -1
  37. package/dist/store/index.d.ts +1 -1
  38. package/dist/store/index.d.ts.map +1 -1
  39. package/dist/store/index.js +8 -8
  40. package/dist/store/request-example.d.ts +12 -12
  41. package/dist/store/requests.d.ts +11 -11
  42. package/dist/store/security-schemes.d.ts.map +1 -1
  43. package/dist/store/store.d.ts +38 -38
  44. package/dist/store/store.d.ts.map +1 -1
  45. package/dist/store/workspace.d.ts +12 -12
  46. package/dist/style.css +1 -1
  47. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +79 -22
  48. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  49. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +52 -48
  50. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +4 -4
  51. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  52. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
  53. package/dist/v2/blocks/operation-block/components/Header.vue2.js +32 -33
  54. package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
  55. package/dist/v2/blocks/{scalar-operation-block/components/OperationBlock.vue.d.ts → request-block/RequestBlock.vue.d.ts} +3 -3
  56. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -0
  57. package/dist/v2/blocks/request-block/RequestBlock.vue.js +7 -0
  58. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +223 -0
  59. package/dist/v2/blocks/{scalar-operation-block/components/OperationBody.vue.d.ts → request-block/components/RequestBody.vue.d.ts} +1 -1
  60. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -0
  61. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +7 -0
  62. package/dist/v2/blocks/{scalar-operation-block/components/OperationBody.vue2.js → request-block/components/RequestBody.vue2.js} +15 -15
  63. package/dist/v2/blocks/{scalar-operation-block/components/OperationParams.vue.d.ts → request-block/components/RequestParams.vue.d.ts} +1 -1
  64. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -0
  65. package/dist/v2/blocks/{scalar-operation-block/components/OperationParams.vue.js → request-block/components/RequestParams.vue.js} +24 -24
  66. package/dist/v2/blocks/request-block/components/RequestParams.vue2.js +4 -0
  67. package/dist/v2/blocks/{scalar-operation-block/components/OperationTable.vue.d.ts → request-block/components/RequestTable.vue.d.ts} +2 -2
  68. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -0
  69. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +7 -0
  70. package/dist/v2/blocks/{scalar-operation-block/components/OperationTable.vue2.js → request-block/components/RequestTable.vue2.js} +8 -8
  71. package/dist/v2/blocks/{scalar-operation-block/components/OperationTableRow.vue.d.ts → request-block/components/RequestTableRow.vue.d.ts} +1 -1
  72. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -0
  73. package/dist/v2/blocks/{scalar-operation-block/components/OperationTableRow.vue.js → request-block/components/RequestTableRow.vue.js} +52 -53
  74. package/dist/v2/blocks/request-block/components/RequestTableRow.vue2.js +4 -0
  75. package/dist/v2/blocks/{scalar-operation-block/components/OperationTableTooltip.vue.d.ts → request-block/components/RequestTableTooltip.vue.d.ts} +1 -1
  76. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -0
  77. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +7 -0
  78. package/dist/v2/blocks/{scalar-operation-block/components/OperationTableTooltip.vue2.js → request-block/components/RequestTableTooltip.vue2.js} +7 -7
  79. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +24 -0
  80. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -0
  81. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +29 -0
  82. package/dist/v2/blocks/request-block/helpers/files.d.ts.map +1 -0
  83. package/dist/v2/blocks/request-block/helpers/get-parameter-content.d.ts.map +1 -0
  84. package/dist/v2/blocks/request-block/helpers/get-parameter-example.d.ts.map +1 -0
  85. package/dist/v2/blocks/request-block/helpers/get-parameter-schema.d.ts.map +1 -0
  86. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -0
  87. package/dist/v2/blocks/request-block/helpers/group-by.d.ts.map +1 -0
  88. package/dist/v2/blocks/request-block/helpers/validate-parameter.d.ts.map +1 -0
  89. package/dist/v2/blocks/request-block/index.d.ts +2 -0
  90. package/dist/v2/blocks/request-block/index.d.ts.map +1 -0
  91. package/dist/v2/blocks/request-block/index.js +4 -0
  92. package/dist/v2/blocks/{scalar-response-block/components → response-block}/ResponseBlock.vue.d.ts +3 -3
  93. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -0
  94. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +7 -0
  95. package/dist/v2/blocks/{scalar-response-block/components → response-block}/ResponseBlock.vue2.js +37 -34
  96. package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -0
  97. package/dist/v2/blocks/response-block/components/ResponseBody.vue.d.ts.map +1 -0
  98. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue.js +2 -2
  99. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue2.js +4 -4
  100. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.d.ts.map +1 -0
  101. package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.d.ts.map +1 -0
  102. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -0
  103. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue.js +1 -1
  104. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -0
  105. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue.js +1 -1
  106. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -0
  107. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +74 -0
  108. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.d.ts.map +1 -0
  109. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -0
  110. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.d.ts.map +1 -0
  111. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue.d.ts +2 -2
  112. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -0
  113. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue.js +1 -1
  114. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue2.js +18 -15
  115. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -0
  116. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +7 -0
  117. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +40 -0
  118. package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue.d.ts +0 -1
  119. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -0
  120. package/dist/v2/blocks/response-block/helpers/extract-filename.d.ts.map +1 -0
  121. package/dist/v2/blocks/response-block/helpers/get-content-length.d.ts.map +1 -0
  122. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -0
  123. package/dist/v2/blocks/response-block/helpers/process-response-body.d.ts.map +1 -0
  124. package/dist/v2/blocks/response-block/index.d.ts +2 -0
  125. package/dist/v2/blocks/response-block/index.d.ts.map +1 -0
  126. package/dist/v2/blocks/response-block/index.js +4 -0
  127. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +4 -3
  128. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  129. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  130. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -67
  131. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
  132. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +205 -0
  133. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -0
  134. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +52 -52
  135. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +1 -1
  136. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
  137. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +205 -0
  138. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -0
  139. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -1
  140. package/dist/v2/components/code-input/CodeInput.vue.d.ts +1 -0
  141. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  142. package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
  143. package/dist/v2/components/code-input/CodeInput.vue2.js +29 -28
  144. package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -1
  145. package/dist/v2/components/resize/Resize.vue.js +2 -2
  146. package/dist/v2/components/server/ServerDropdown.vue.d.ts +5 -5
  147. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
  148. package/dist/v2/components/server/ServerDropdown.vue.js +38 -43
  149. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +1 -1
  150. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
  151. package/dist/v2/components/server/ServerDropdownItem.vue.js +2 -2
  152. package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -29
  153. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +24 -5
  154. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  155. package/dist/v2/components/sidebar/Sidebar.vue.js +54 -49
  156. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +18 -9
  157. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  158. package/dist/v2/components/sidebar/SidebarMenu.vue.js +36 -43
  159. package/dist/v2/features/app/App.vue.d.ts +0 -3
  160. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  161. package/dist/v2/features/app/App.vue.js +150 -90
  162. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +36 -6
  163. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  164. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  165. package/dist/v2/features/app/components/AppSidebar.vue2.js +73 -61
  166. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts +15 -0
  167. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts.map +1 -0
  168. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +56 -0
  169. package/dist/v2/features/app/components/CreateWorkspaceModal.vue2.js +4 -0
  170. package/dist/v2/features/app/components/DesktopTab.vue.d.ts +26 -0
  171. package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +1 -0
  172. package/dist/v2/features/app/components/DesktopTab.vue.js +7 -0
  173. package/dist/v2/features/app/components/DesktopTab.vue2.js +134 -0
  174. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +9 -4
  175. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
  176. package/dist/v2/features/app/components/DesktopTabs.vue.js +47 -13
  177. package/dist/v2/features/app/components/DesktopTabs.vue2.js +2 -4
  178. package/dist/v2/{components/TempReplaceMe.vue.d.ts → features/app/components/SplashScreen.vue.d.ts} +1 -1
  179. package/dist/v2/features/app/components/SplashScreen.vue.d.ts.map +1 -0
  180. package/dist/v2/features/app/components/SplashScreen.vue.js +7 -0
  181. package/dist/v2/features/app/components/SplashScreen.vue2.js +18 -0
  182. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +26 -5
  183. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
  184. package/dist/v2/features/app/components/WebTopNav.vue.js +18 -19
  185. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +1 -2
  186. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  187. package/dist/v2/features/app/helpers/create-api-client-app.js +8 -8
  188. package/dist/v2/features/app/helpers/routes.d.ts +6 -31
  189. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  190. package/dist/v2/features/app/helpers/routes.js +4 -9
  191. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  192. package/dist/v2/features/collection/DocumentCollection.vue2.js +44 -51
  193. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
  194. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +25 -25
  195. package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
  196. package/dist/v2/features/collection/components/Authentication.vue2.js +9 -7
  197. package/dist/v2/features/collection/components/Cookies.vue.d.ts +13 -1
  198. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
  199. package/dist/v2/features/collection/components/Cookies.vue.js +2 -7
  200. package/dist/v2/features/collection/components/Cookies.vue2.js +32 -0
  201. package/dist/v2/features/collection/components/Environment.vue2.js +2 -0
  202. package/dist/v2/features/collection/components/Overview.vue2.js +10 -8
  203. package/dist/v2/features/collection/components/Servers.vue2.js +26 -24
  204. package/dist/v2/features/collection/components/Settings.vue.d.ts +13 -15
  205. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  206. package/dist/v2/features/collection/components/Settings.vue.js +2 -5
  207. package/dist/v2/features/collection/components/Settings.vue2.js +51 -92
  208. package/dist/v2/features/command-palette/components/CommandActionForm.vue.d.ts +61 -0
  209. package/dist/v2/features/command-palette/components/CommandActionForm.vue.d.ts.map +1 -0
  210. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +48 -0
  211. package/dist/v2/features/command-palette/components/CommandActionForm.vue2.js +4 -0
  212. package/dist/v2/features/command-palette/components/CommandActionInput.vue.d.ts +39 -0
  213. package/dist/v2/features/command-palette/components/CommandActionInput.vue.d.ts.map +1 -0
  214. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +52 -0
  215. package/dist/v2/features/command-palette/components/CommandActionInput.vue2.js +4 -0
  216. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts +36 -0
  217. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts.map +1 -0
  218. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.js +78 -0
  219. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue2.js +4 -0
  220. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +30 -0
  221. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -0
  222. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +169 -0
  223. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue2.js +4 -0
  224. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +34 -0
  225. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -0
  226. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +175 -0
  227. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue2.js +4 -0
  228. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts +43 -0
  229. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts.map +1 -0
  230. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js +7 -0
  231. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue2.js +115 -0
  232. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +39 -0
  233. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -0
  234. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +213 -0
  235. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue2.js +4 -0
  236. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +38 -0
  237. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -0
  238. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +89 -0
  239. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue2.js +4 -0
  240. package/dist/v2/features/command-palette/components/TheCommandPalette.vue.d.ts +41 -0
  241. package/dist/v2/features/command-palette/components/TheCommandPalette.vue.d.ts.map +1 -0
  242. package/dist/v2/features/command-palette/components/TheCommandPalette.vue.js +7 -0
  243. package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +172 -0
  244. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts +33 -0
  245. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts.map +1 -0
  246. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +40 -0
  247. package/dist/v2/features/command-palette/components/WatchModeToggle.vue2.js +4 -0
  248. package/dist/v2/features/command-palette/components/index.d.ts +2 -0
  249. package/dist/v2/features/command-palette/components/index.d.ts.map +1 -0
  250. package/dist/v2/features/command-palette/components/index.js +4 -0
  251. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +23 -0
  252. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -0
  253. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js +31 -0
  254. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts +13 -0
  255. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts.map +1 -0
  256. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +12 -0
  257. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts +26 -0
  258. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts.map +1 -0
  259. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +70 -0
  260. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +23 -0
  261. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -0
  262. package/dist/v2/features/command-palette/helpers/get-postman-document-details.js +18 -0
  263. package/dist/v2/features/command-palette/helpers/is-postman-collection.d.ts +11 -0
  264. package/dist/v2/features/command-palette/helpers/is-postman-collection.d.ts.map +1 -0
  265. package/dist/v2/features/command-palette/helpers/is-postman-collection.js +11 -0
  266. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +202 -0
  267. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -0
  268. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +109 -0
  269. package/dist/v2/features/command-palette/types.d.ts +82 -0
  270. package/dist/v2/features/command-palette/types.d.ts.map +1 -0
  271. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +6 -22
  272. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
  273. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +3 -3
  274. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +121 -88
  275. package/dist/v2/features/global-cookies/index.d.ts +1 -1
  276. package/dist/v2/features/global-cookies/index.d.ts.map +1 -1
  277. package/dist/v2/features/global-cookies/index.js +2 -2
  278. package/dist/v2/features/modal/Modal.vue.d.ts +0 -2
  279. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  280. package/dist/v2/features/modal/Modal.vue.js +3 -3
  281. package/dist/v2/features/modal/Modal.vue2.js +28 -61
  282. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  283. package/dist/v2/features/modal/helpers/create-api-client-modal.js +8 -9
  284. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  285. package/dist/v2/features/operation/Operation.vue.js +36 -25
  286. package/dist/v2/features/operation/helpers/get-security-requirements.d.ts +12 -0
  287. package/dist/v2/features/operation/helpers/get-security-requirements.d.ts.map +1 -0
  288. package/dist/v2/features/operation/helpers/get-security-requirements.js +4 -0
  289. package/dist/v2/features/search/components/SearchButton.vue.d.ts +12 -0
  290. package/dist/v2/features/search/components/SearchButton.vue.d.ts.map +1 -0
  291. package/dist/v2/features/search/components/SearchButton.vue.js +71 -0
  292. package/dist/v2/features/search/components/SearchButton.vue2.js +4 -0
  293. package/dist/v2/features/search/components/SearchModal.vue.d.ts +11 -0
  294. package/dist/v2/features/search/components/SearchModal.vue.d.ts.map +1 -0
  295. package/dist/v2/features/search/components/SearchModal.vue.js +7 -0
  296. package/dist/v2/features/search/components/SearchModal.vue2.js +101 -0
  297. package/dist/v2/features/search/components/SearchResult.vue.d.ts +10 -0
  298. package/dist/v2/features/search/components/SearchResult.vue.d.ts.map +1 -0
  299. package/dist/v2/features/search/components/SearchResult.vue.js +80 -0
  300. package/dist/v2/features/search/components/SearchResult.vue2.js +4 -0
  301. package/dist/v2/features/search/helpers/create-fuse-instance.d.ts +9 -0
  302. package/dist/v2/features/search/helpers/create-fuse-instance.d.ts.map +1 -0
  303. package/dist/v2/features/search/helpers/create-fuse-instance.js +43 -0
  304. package/dist/v2/features/search/helpers/create-search-index.d.ts +7 -0
  305. package/dist/v2/features/search/helpers/create-search-index.d.ts.map +1 -0
  306. package/dist/v2/features/search/helpers/create-search-index.js +63 -0
  307. package/dist/v2/features/search/hooks/use-search-index.d.ts +14 -0
  308. package/dist/v2/features/search/hooks/use-search-index.d.ts.map +1 -0
  309. package/dist/v2/features/search/hooks/use-search-index.js +24 -0
  310. package/dist/v2/features/search/index.d.ts +3 -0
  311. package/dist/v2/features/search/index.d.ts.map +1 -0
  312. package/dist/v2/features/search/index.js +6 -0
  313. package/dist/v2/features/search/types.d.ts +24 -0
  314. package/dist/v2/features/search/types.d.ts.map +1 -0
  315. package/dist/v2/features/settings/{Settings.vue.d.ts → CollectionSettings.vue.d.ts} +2 -2
  316. package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -0
  317. package/dist/v2/features/settings/CollectionSettings.vue.js +266 -0
  318. package/dist/v2/features/settings/CollectionSettings.vue2.js +4 -0
  319. package/dist/v2/features/settings/DocumentSettings.vue.d.ts +19 -0
  320. package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -0
  321. package/dist/v2/features/settings/DocumentSettings.vue.js +7 -0
  322. package/dist/v2/features/settings/DocumentSettings.vue2.js +106 -0
  323. package/dist/v2/features/settings/index.d.ts +2 -1
  324. package/dist/v2/features/settings/index.d.ts.map +1 -1
  325. package/dist/v2/features/settings/index.js +4 -2
  326. package/dist/v2/helpers/drag-handle-factory.d.ts +16 -0
  327. package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -0
  328. package/dist/v2/helpers/drag-handle-factory.js +119 -0
  329. package/dist/v2/helpers/get-tab-details.d.ts +43 -0
  330. package/dist/v2/helpers/get-tab-details.d.ts.map +1 -0
  331. package/dist/v2/helpers/get-tab-details.js +34 -0
  332. package/dist/v2/helpers/handle-hotkeys.d.ts +23 -0
  333. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -0
  334. package/dist/v2/helpers/handle-hotkeys.js +56 -0
  335. package/dist/v2/helpers/is-url.d.ts +2 -0
  336. package/dist/v2/helpers/is-url.d.ts.map +1 -0
  337. package/dist/v2/helpers/is-url.js +5 -0
  338. package/dist/v2/helpers/remove-circular.d.ts +15 -0
  339. package/dist/v2/helpers/remove-circular.d.ts.map +1 -0
  340. package/dist/v2/helpers/remove-circular.js +18 -0
  341. package/dist/v2/helpers/slugify.d.ts +9 -0
  342. package/dist/v2/helpers/slugify.d.ts.map +1 -0
  343. package/dist/v2/helpers/slugify.js +4 -0
  344. package/dist/v2/helpers/storage.d.ts +23 -0
  345. package/dist/v2/helpers/storage.d.ts.map +1 -0
  346. package/dist/v2/helpers/storage.js +16 -0
  347. package/dist/v2/hooks/use-color-mode.d.ts +20 -0
  348. package/dist/v2/hooks/use-color-mode.d.ts.map +1 -0
  349. package/dist/v2/hooks/use-color-mode.js +24 -0
  350. package/dist/v2/hooks/use-document-watcher.d.ts +9 -7
  351. package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -1
  352. package/dist/v2/hooks/use-document-watcher.js +66 -0
  353. package/dist/v2/hooks/use-global-hot-keys.d.ts +10 -0
  354. package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -0
  355. package/dist/v2/hooks/use-global-hot-keys.js +9 -0
  356. package/dist/v2/hooks/use-sidebar-state.d.ts +15 -21
  357. package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -1
  358. package/dist/v2/hooks/use-sidebar-state.js +48 -30
  359. package/dist/v2/hooks/use-sync-path.d.ts +11 -0
  360. package/dist/v2/hooks/use-sync-path.d.ts.map +1 -0
  361. package/dist/v2/hooks/use-sync-path.js +51 -0
  362. package/dist/v2/hooks/use-tabs.d.ts +31 -0
  363. package/dist/v2/hooks/use-tabs.d.ts.map +1 -0
  364. package/dist/v2/hooks/use-tabs.js +44 -0
  365. package/dist/v2/hooks/use-workspace-client-events.d.ts +11 -2
  366. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
  367. package/dist/v2/hooks/use-workspace-client-events.js +105 -101
  368. package/dist/v2/hooks/use-workspace-selector.d.ts +28 -0
  369. package/dist/v2/hooks/use-workspace-selector.d.ts.map +1 -0
  370. package/dist/v2/hooks/use-workspace-selector.js +81 -0
  371. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  372. package/dist/views/Request/RequestRoot.vue.js +2 -2
  373. package/dist/views/Request/RequestRoot.vue2.js +86 -77
  374. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  375. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +78 -78
  376. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  377. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  378. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  379. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  380. package/dist/views/Request/RequestSection/RequestBody.vue2.js +29 -24
  381. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +29 -29
  382. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  383. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +2 -2
  384. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +19 -19
  385. package/package.json +139 -48
  386. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +0 -1
  387. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +0 -7
  388. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +0 -262
  389. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +0 -1
  390. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +0 -7
  391. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +0 -1
  392. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue2.js +0 -4
  393. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +0 -1
  394. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +0 -7
  395. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +0 -1
  396. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue2.js +0 -4
  397. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.d.ts.map +0 -1
  398. package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.js +0 -7
  399. package/dist/v2/blocks/scalar-operation-block/helpers/files.d.ts.map +0 -1
  400. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.d.ts.map +0 -1
  401. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.d.ts.map +0 -1
  402. package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.d.ts.map +0 -1
  403. package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.d.ts.map +0 -1
  404. package/dist/v2/blocks/scalar-operation-block/helpers/group-by.d.ts.map +0 -1
  405. package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.d.ts.map +0 -1
  406. package/dist/v2/blocks/scalar-operation-block/index.d.ts +0 -2
  407. package/dist/v2/blocks/scalar-operation-block/index.d.ts.map +0 -1
  408. package/dist/v2/blocks/scalar-operation-block/index.js +0 -4
  409. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +0 -1
  410. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +0 -1
  411. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +0 -7
  412. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +0 -1
  413. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.d.ts.map +0 -1
  414. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.d.ts.map +0 -1
  415. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.d.ts.map +0 -1
  416. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.d.ts.map +0 -1
  417. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +0 -1
  418. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.js +0 -74
  419. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.d.ts.map +0 -1
  420. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +0 -1
  421. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +0 -1
  422. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.d.ts.map +0 -1
  423. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.d.ts.map +0 -1
  424. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.js +0 -7
  425. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +0 -40
  426. package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.d.ts.map +0 -1
  427. package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.d.ts.map +0 -1
  428. package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.d.ts.map +0 -1
  429. package/dist/v2/blocks/scalar-response-block/helpers/media-types.d.ts.map +0 -1
  430. package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.d.ts.map +0 -1
  431. package/dist/v2/blocks/scalar-response-block/index.d.ts +0 -2
  432. package/dist/v2/blocks/scalar-response-block/index.d.ts.map +0 -1
  433. package/dist/v2/blocks/scalar-response-block/index.js +0 -4
  434. package/dist/v2/components/TempReplaceMe.vue.d.ts.map +0 -1
  435. package/dist/v2/components/TempReplaceMe.vue.js +0 -12
  436. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +0 -32
  437. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +0 -1
  438. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +0 -7
  439. package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +0 -58
  440. package/dist/v2/features/settings/Settings.vue.d.ts.map +0 -1
  441. package/dist/v2/features/settings/Settings.vue.js +0 -268
  442. package/dist/v2/features/settings/Settings.vue2.js +0 -4
  443. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/files.d.ts +0 -0
  444. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/files.js +0 -0
  445. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-content.d.ts +0 -0
  446. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-content.js +0 -0
  447. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-example.d.ts +0 -0
  448. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-example.js +0 -0
  449. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-schema.d.ts +0 -0
  450. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-schema.js +0 -0
  451. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-request-body-example.d.ts +0 -0
  452. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-request-body-example.js +0 -0
  453. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/group-by.d.ts +0 -0
  454. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/group-by.js +0 -0
  455. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/validate-parameter.d.ts +0 -0
  456. /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/validate-parameter.js +0 -0
  457. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue.d.ts +0 -0
  458. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue.js +0 -0
  459. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue2.js +0 -0
  460. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue.d.ts +0 -0
  461. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue.d.ts +0 -0
  462. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue.js +0 -0
  463. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue2.js +0 -0
  464. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyInfo.vue.d.ts +0 -0
  465. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyInfo.vue.js +0 -0
  466. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue.d.ts +0 -0
  467. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue2.js +0 -0
  468. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue.d.ts +0 -0
  469. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue2.js +0 -0
  470. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue.d.ts +0 -0
  471. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue2.js +0 -0
  472. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue.d.ts +0 -0
  473. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue.js +0 -0
  474. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue2.js +0 -0
  475. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue.d.ts +0 -0
  476. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue.js +0 -0
  477. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue3.js +0 -0
  478. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue.d.ts +0 -0
  479. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue.js +0 -0
  480. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue2.js +0 -0
  481. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseLoadingOverlay.vue.d.ts +0 -0
  482. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue.js +0 -0
  483. /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue2.js +0 -0
  484. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/extract-filename.d.ts +0 -0
  485. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/extract-filename.js +0 -0
  486. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/get-content-length.d.ts +0 -0
  487. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/get-content-length.js +0 -0
  488. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/media-types.d.ts +0 -0
  489. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/media-types.js +0 -0
  490. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/process-response-body.d.ts +0 -0
  491. /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/process-response-body.js +0 -0
@@ -0,0 +1,82 @@
1
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
+ import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
3
+ import type { AllowedComponentProps, Component, VNodeProps } from 'vue';
4
+ import type { CommandPropsMap, OpenCommandEvent, UiCommandIds } from '../../../v2/features/command-palette/hooks/use-command-palette-state.js';
5
+ /**
6
+ * Default props that all command components receive.
7
+ * These are injected automatically by the command palette.
8
+ */
9
+ export type DefaultCommandProps = {
10
+ /** The workspace store for accessing documents and operations */
11
+ workspaceStore: WorkspaceStore;
12
+ /** Event bus for emitting workspace events */
13
+ eventBus: WorkspaceEventBus;
14
+ /** Function to open a command */
15
+ 'onOpen-command': OpenCommandEvent;
16
+ };
17
+ /** Helper type to make all properties writable */
18
+ export type Writable<T> = {
19
+ -readonly [K in keyof T]: T[K];
20
+ };
21
+ /**
22
+ * Extracts the props type from a Vue component.
23
+ * Strips out VNode and Vue-specific props to get only user-defined props.
24
+ */
25
+ export type ComponentProps<C extends Component> = C extends new (...args: any) => {
26
+ $props: infer P;
27
+ } ? Omit<P, keyof VNodeProps | keyof AllowedComponentProps> : never;
28
+ /**
29
+ * Maps command IDs to their actual component props.
30
+ * Used for validating that components accept the correct props.
31
+ */
32
+ export type CommandComponentPropsMap<T extends Record<string, Component>> = {
33
+ [K in keyof T]: ComponentProps<T[K]>;
34
+ };
35
+ /**
36
+ * Maps command IDs to their expected props (default props + command-specific props).
37
+ * This is what each command component should accept.
38
+ */
39
+ export type ExpectedCommandComponentPropsMap = {
40
+ [K in UiCommandIds]: DefaultCommandProps & (CommandPropsMap[K] extends undefined ? unknown : CommandPropsMap[K]);
41
+ };
42
+ /** Helper type to flatten and display complex types in IDE tooltips */
43
+ export type Prettify<T> = {
44
+ [K in keyof T]: T[K];
45
+ } & {};
46
+ /**
47
+ * Type-level assertion that compares actual component props with expected props.
48
+ * Returns 'valid' if they match, otherwise returns a detailed debug object.
49
+ *
50
+ * Using literals prevents union collapse (true | never = true, but 'valid' | object stays distinct).
51
+ */
52
+ export type AssertPropsMatch<Actual, Expected> = [Actual] extends [Expected] ? 'valid' : {
53
+ status: 'invalid';
54
+ actual: Prettify<Actual>;
55
+ expected: Prettify<Expected>;
56
+ missingProps: Prettify<Exclude<keyof Expected, keyof Actual>>;
57
+ };
58
+ /**
59
+ * Validates that all command components have the correct props.
60
+ * This type is used at the type-checking level to ensure type safety.
61
+ */
62
+ export type CommandComponentPropsCheck<T extends Record<string, Component>> = {
63
+ [K in UiCommandIds]: AssertPropsMatch<Writable<CommandComponentPropsMap<T>[K]>, Partial<ExpectedCommandComponentPropsMap[K]>>;
64
+ };
65
+ /** All validation results for command components */
66
+ export type PropsCheckResults<T extends Record<string, Component>> = CommandComponentPropsCheck<T>[keyof CommandComponentPropsCheck<T>];
67
+ /**
68
+ * Filter to show only invalid components.
69
+ * Makes error messages clearer by excluding valid components.
70
+ */
71
+ export type InvalidComponents<T extends Record<string, Component>> = {
72
+ [K in keyof CommandComponentPropsCheck<T> as CommandComponentPropsCheck<T>[K] extends 'valid' ? never : K]: CommandComponentPropsCheck<T>[K];
73
+ };
74
+ /**
75
+ * Final assertion type that shows only errors.
76
+ * If all components are valid, evaluates to 'valid'.
77
+ * If any component is invalid, shows only the invalid ones.
78
+ */
79
+ export type AssertAllValid<T extends Record<string, Component>> = PropsCheckResults<T> extends 'valid' ? PropsCheckResults<T> extends {
80
+ status: 'invalid';
81
+ } ? Prettify<InvalidComponents<T>> : PropsCheckResults<T> : Prettify<InvalidComponents<T>>;
82
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/command-palette/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAEvE,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,YAAY,EACb,MAAM,+DAA+D,CAAA;AAEtE;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,iEAAiE;IACjE,cAAc,EAAE,cAAc,CAAA;IAC9B,8CAA8C;IAC9C,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,iCAAiC;IACjC,gBAAgB,EAAE,gBAAgB,CAAA;CACnC,CAAA;AAED,kDAAkD;AAClD,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;IAAE,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAA;AAE5D;;;GAGG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,SAAS,IAAI,CAAC,SAAS,KAC1D,GAAG,IAAI,EAAE,GAAG,KACT;IACH,MAAM,EAAE,MAAM,CAAC,CAAA;CAChB,GACG,IAAI,CAAC,CAAC,EAAE,MAAM,UAAU,GAAG,MAAM,qBAAqB,CAAC,GACvD,KAAK,CAAA;AAET;;;GAGG;AACH,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI;KACzE,CAAC,IAAI,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACrC,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,gCAAgC,GAAG;KAC5C,CAAC,IAAI,YAAY,GAAG,mBAAmB,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,SAAS,GAAG,OAAO,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;CACjH,CAAA;AAED,uEAAuE;AACvE,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,EAAE,CAAA;AAEvD;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,CAAC,MAAM,EAAE,QAAQ,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,GACxE,OAAO,GACP;IACE,MAAM,EAAE,SAAS,CAAA;IACjB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IACxB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAA;IAC5B,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,MAAM,MAAM,CAAC,CAAC,CAAA;CAC9D,CAAA;AAEL;;;GAGG;AACH,MAAM,MAAM,0BAA0B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI;KAC3E,CAAC,IAAI,YAAY,GAAG,gBAAgB,CACnC,QAAQ,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EACxC,OAAO,CAAC,gCAAgC,CAAC,CAAC,CAAC,CAAC,CAC7C;CACF,CAAA;AAED,oDAAoD;AACpD,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,IAC/D,0BAA0B,CAAC,CAAC,CAAC,CAAC,MAAM,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAA;AAEpE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI;KAClE,CAAC,IAAI,MAAM,0BAA0B,CAAC,CAAC,CAAC,IAAI,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,OAAO,GACzF,KAAK,GACL,CAAC,GAAG,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACzC,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,iBAAiB,CAAC,CAAC,CAAC,SAAS,OAAO,GAClG,iBAAiB,CAAC,CAAC,CAAC,SAAS;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE,GAChD,QAAQ,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,GAC9B,iBAAiB,CAAC,CAAC,CAAC,GACtB,QAAQ,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA"}
@@ -1,25 +1,9 @@
1
- import type { Environment } from '@scalar/oas-utils/entities/environment';
2
- import type { EnvVariable } from '../../../../store/index.js';
3
- type TableRow = {
4
- name: string;
5
- value: string;
6
- domain: string;
7
- isDisabled?: boolean;
8
- };
1
+ import type { CollectionType, WorkspaceEventBus } from '@scalar/workspace-store/events';
2
+ import type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
9
3
  type __VLS_Props = {
10
- data: TableRow[];
11
- /** TODO: remove once we migrate */
12
- environment: Environment;
13
- envVariables: EnvVariable[];
14
- };
15
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
16
- updateRow: (index: number, payload: Partial<TableRow>) => any;
17
- addRow: (payload: Partial<TableRow>) => any;
18
- deleteRow: (index: number) => any;
19
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
- onUpdateRow?: ((index: number, payload: Partial<TableRow>) => any) | undefined;
21
- onAddRow?: ((payload: Partial<TableRow>) => any) | undefined;
22
- onDeleteRow?: ((index: number) => any) | undefined;
23
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ cookies: XScalarCookie[];
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>;
24
8
  export default _default;
25
9
  //# sourceMappingURL=CookiesTable.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CookiesTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/global-cookies/components/CookiesTable.vue"],"names":[],"mappings":"AAwJA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAWzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAEhB,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;;;;;;AA6XF,wBAOG"}
1
+ {"version":3,"file":"CookiesTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/global-cookies/components/CookiesTable.vue"],"names":[],"mappings":"AAsPA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AAYxG,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GAAG,cAAc,CAAC;;AAmcrB,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./CookiesTable.vue2.js";
2
2
  /* empty css */
3
- import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ed778005"]]);
3
+ import f from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ f(o, [["__scopeId", "data-v-6fc24fdf"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -1,156 +1,189 @@
1
- import { defineComponent as w, computed as D, createBlock as v, openBlock as f, unref as e, withCtx as o, createVNode as a, createElementBlock as U, createTextVNode as d, Fragment as x, renderList as y } from "vue";
2
- import { ScalarButton as R } from "@scalar/components";
3
- import { ScalarIconTrash as T } from "@scalar/icons";
4
- import B from "../../../../components/DataTable/DataTable.vue.js";
5
- import c from "../../../../components/DataTable/DataTableRow.vue.js";
6
- import i from "../../../../components/DataTable/DataTableHeader.vue.js";
7
- import $ from "../../../../components/DataTable/DataTableCheckbox.vue.js";
8
- import p from "../../../../components/DataTable/DataTableCell.vue.js";
9
- import b from "../../../../components/CodeInput/CodeInput.vue.js";
10
- const j = /* @__PURE__ */ w({
1
+ import { defineComponent as y, computed as T, createBlock as p, openBlock as c, unref as a, withCtx as n, createVNode as o, createElementBlock as D, createTextVNode as s, Fragment as h, renderList as B, createCommentVNode as N } from "vue";
2
+ import { ScalarButton as U } from "@scalar/components";
3
+ import { ScalarIconTrash as I } from "@scalar/icons";
4
+ import $ from "../../../components/data-table/DataTable.vue.js";
5
+ import b from "../../../components/data-table/DataTableRow.vue.js";
6
+ import m from "../../../components/data-table/DataTableHeader.vue.js";
7
+ import R from "../../../components/data-table/DataTableCheckbox.vue.js";
8
+ import f from "../../../components/data-table/DataTableCell.vue.js";
9
+ import k from "../../../components/code-input/CodeInput.vue.js";
10
+ const M = /* @__PURE__ */ y({
11
11
  __name: "CookiesTable",
12
12
  props: {
13
- data: {},
14
- environment: {},
15
- envVariables: {}
13
+ cookies: {},
14
+ eventBus: {},
15
+ collectionType: {}
16
16
  },
17
- emits: ["addRow", "updateRow", "deleteRow"],
18
- setup(m, { emit: C }) {
19
- const V = C, g = D(() => {
20
- const l = m.data.at(-1);
21
- return !l || l.name !== "" || l.value !== "" || l.domain !== "" ? [...m.data, { name: "", value: "", domain: "", isDisabled: !0 }] : m.data;
22
- }), u = ({
23
- index: l,
24
- payload: n
25
- }) => {
26
- if (l >= m.data.length) {
27
- V("addRow", n);
28
- return;
17
+ setup(u) {
18
+ const v = ["32px", "1fr", "1fr", "1fr", "36px"], V = T(() => {
19
+ const d = u.cookies.map((t) => ({
20
+ name: t.name,
21
+ value: t.value,
22
+ domain: t.domain ?? "",
23
+ isDisabled: t.isDisabled ?? !1
24
+ })), l = u.cookies.at(-1), e = l && (l.name !== "" || l.value !== "" || l.domain !== "");
25
+ return !l || e ? [
26
+ ...d,
27
+ { name: "", value: "", domain: "", isDisabled: !0 }
28
+ ] : d;
29
+ }), r = (d, l, e, t, i) => {
30
+ const g = i >= u.cookies.length;
31
+ if (!(!d && g)) {
32
+ if (i >= u.cookies.length) {
33
+ u.eventBus.emit("cookie:upsert:cookie", {
34
+ payload: { name: d, value: l, domain: e, isDisabled: !1 },
35
+ collectionType: u.collectionType
36
+ });
37
+ return;
38
+ }
39
+ u.eventBus.emit("cookie:upsert:cookie", {
40
+ payload: { name: d, value: l, domain: e, isDisabled: t },
41
+ collectionType: u.collectionType,
42
+ index: i
43
+ });
29
44
  }
30
- V("updateRow", l, n);
31
- }, k = ["32px", "1fr", "1fr", "1fr", "36px"];
32
- return (l, n) => (f(), v(e(B), {
45
+ }, C = (d) => u.eventBus.emit("cookie:delete:cookie", {
46
+ cookieName: u.cookies[d]?.name ?? "",
47
+ index: d,
48
+ collectionType: u.collectionType
49
+ });
50
+ return (d, l) => (c(), p(a($), {
33
51
  class: "group/table data-table h-min flex-1 rounded border",
34
- columns: k
52
+ columns: v
35
53
  }, {
36
- default: o(() => [
37
- a(e(c), { class: "sr-only !block" }, {
38
- default: o(() => [
39
- a(e(i), null, {
40
- default: o(() => [...n[0] || (n[0] = [
41
- d("Enabled", -1)
54
+ default: n(() => [
55
+ o(a(b), { class: "sr-only !block" }, {
56
+ default: n(() => [
57
+ o(a(m), null, {
58
+ default: n(() => [...l[0] || (l[0] = [
59
+ s("Enabled", -1)
42
60
  ])]),
43
61
  _: 1
44
62
  }),
45
- a(e(i), null, {
46
- default: o(() => [...n[1] || (n[1] = [
47
- d("Name", -1)
63
+ o(a(m), null, {
64
+ default: n(() => [...l[1] || (l[1] = [
65
+ s("Name", -1)
48
66
  ])]),
49
67
  _: 1
50
68
  }),
51
- a(e(i), null, {
52
- default: o(() => [...n[2] || (n[2] = [
53
- d("Value", -1)
69
+ o(a(m), null, {
70
+ default: n(() => [...l[2] || (l[2] = [
71
+ s("Value", -1)
54
72
  ])]),
55
73
  _: 1
56
74
  }),
57
- a(e(i), null, {
58
- default: o(() => [...n[3] || (n[3] = [
59
- d("Domain", -1)
75
+ o(a(m), null, {
76
+ default: n(() => [...l[3] || (l[3] = [
77
+ s("Domain", -1)
60
78
  ])]),
61
79
  _: 1
62
80
  }),
63
- a(e(i), null, {
64
- default: o(() => [...n[4] || (n[4] = [
65
- d("Actions", -1)
81
+ o(a(m), null, {
82
+ default: n(() => [...l[4] || (l[4] = [
83
+ s("Actions", -1)
66
84
  ])]),
67
85
  _: 1
68
86
  })
69
87
  ]),
70
88
  _: 1
71
89
  }),
72
- (f(!0), U(x, null, y(g.value, (s, r) => (f(), v(e(c), {
73
- id: r,
74
- key: r,
90
+ (c(!0), D(h, null, B(V.value, (e, t) => (c(), p(a(b), {
91
+ key: t,
75
92
  class: "group/row"
76
93
  }, {
77
- default: o(() => [
78
- a(e($), {
94
+ default: n(() => [
95
+ o(a(R), {
79
96
  class: "!border-r",
80
- modelValue: !s.isDisabled,
81
- "onUpdate:modelValue": (t) => u({ index: r, payload: { isDisabled: !t } })
97
+ modelValue: !e.isDisabled,
98
+ "onUpdate:modelValue": (i) => r(e.name, e.value, e.domain, !i, t)
82
99
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
83
- a(e(p), null, {
84
- default: o(() => [
85
- a(e(b), {
100
+ o(a(f), null, {
101
+ default: n(() => [
102
+ o(a(k), {
86
103
  "aria-label": "Cookie Name",
87
104
  disableCloseBrackets: "",
88
105
  disableTabIndent: "",
89
- envVariables: l.envVariables,
90
- environment: l.environment,
106
+ environment: void 0,
91
107
  lineWrapping: "",
92
- modelValue: s.name,
108
+ modelValue: e.name,
93
109
  placeholder: "Name",
94
- "onUpdate:modelValue": (t) => u({ index: r, payload: { name: t } })
95
- }, null, 8, ["envVariables", "environment", "modelValue", "onUpdate:modelValue"])
110
+ "onUpdate:modelValue": (i) => r(
111
+ i,
112
+ e.value,
113
+ e.domain,
114
+ e.isDisabled,
115
+ t
116
+ )
117
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
96
118
  ]),
97
119
  _: 2
98
120
  }, 1024),
99
- a(e(p), null, {
100
- default: o(() => [
101
- a(e(b), {
121
+ o(a(f), null, {
122
+ default: n(() => [
123
+ o(a(k), {
102
124
  "aria-label": "Cookie Value",
103
125
  disableTabIndent: "",
104
- envVariables: l.envVariables,
105
- environment: l.environment,
126
+ environment: void 0,
106
127
  lineWrapping: "",
107
- modelValue: s.value,
128
+ modelValue: e.value,
108
129
  placeholder: "Value",
109
- "onUpdate:modelValue": (t) => u({ index: r, payload: { value: t } })
110
- }, null, 8, ["envVariables", "environment", "modelValue", "onUpdate:modelValue"])
130
+ "onUpdate:modelValue": (i) => r(
131
+ e.name,
132
+ i,
133
+ e.domain,
134
+ e.isDisabled,
135
+ t
136
+ )
137
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
111
138
  ]),
112
139
  _: 2
113
140
  }, 1024),
114
- a(e(p), null, {
115
- default: o(() => [
116
- a(e(b), {
141
+ o(a(f), null, {
142
+ default: n(() => [
143
+ o(a(k), {
117
144
  "aria-label": "Cookie Domain",
118
145
  disableCloseBrackets: "",
119
146
  disableTabIndent: "",
120
- envVariables: l.envVariables,
121
- environment: l.environment,
147
+ environment: void 0,
122
148
  lineWrapping: "",
123
- modelValue: s.domain,
149
+ modelValue: e.domain,
124
150
  placeholder: "Domain",
125
- "onUpdate:modelValue": (t) => u({ index: r, payload: { domain: t } })
126
- }, null, 8, ["envVariables", "environment", "modelValue", "onUpdate:modelValue"])
151
+ "onUpdate:modelValue": (i) => r(
152
+ e.name,
153
+ e.value,
154
+ i,
155
+ e.isDisabled,
156
+ t
157
+ )
158
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
127
159
  ]),
128
160
  _: 2
129
161
  }, 1024),
130
- a(e(p), { class: "flex items-center justify-center" }, {
131
- default: o(() => [
132
- a(e(R), {
133
- class: "text-c-2 hover:text-c-1 hover:bg-b-2 hidden h-fit rounded p-1 group-hover/row:flex",
162
+ o(a(f), { class: "flex items-center justify-center" }, {
163
+ default: n(() => [
164
+ t < d.cookies.length ? (c(), p(a(U), {
165
+ key: 0,
166
+ class: "text-c-2 hover:text-c-1 hover:bg-b-2 hidden h-fit rounded p-1 group-focus-within:flex group-hover/row:flex",
134
167
  size: "sm",
135
168
  variant: "ghost",
136
- onClick: (t) => l.$emit("deleteRow", r)
169
+ onClick: (i) => C(t)
137
170
  }, {
138
- default: o(() => [
139
- a(e(T), { class: "size-3.5" })
171
+ default: n(() => [
172
+ o(a(I), { class: "size-3.5" })
140
173
  ]),
141
174
  _: 1
142
- }, 8, ["onClick"])
175
+ }, 8, ["onClick"])) : N("", !0)
143
176
  ]),
144
177
  _: 2
145
178
  }, 1024)
146
179
  ]),
147
180
  _: 2
148
- }, 1032, ["id"]))), 128))
181
+ }, 1024))), 128))
149
182
  ]),
150
183
  _: 1
151
184
  }));
152
185
  }
153
186
  });
154
187
  export {
155
- j as default
188
+ M as default
156
189
  };
@@ -1,2 +1,2 @@
1
- export { default as GlobalCookies } from './components/GlobalCookies.vue.js';
1
+ export { default as CookiesTable } from './components/CookiesTable.vue.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/global-cookies/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,gCAAgC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/global-cookies/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA"}
@@ -1,4 +1,4 @@
1
- import { default as e } from "./components/GlobalCookies.vue.js";
1
+ import { default as a } from "./components/CookiesTable.vue.js";
2
2
  export {
3
- e as GlobalCookies
3
+ a as CookiesTable
4
4
  };
@@ -1,8 +1,6 @@
1
1
  import { type ModalState } from '@scalar/components';
2
2
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
3
- import type { ActiveEntities } from '../../../v2/features/modal/helpers/create-api-client-modal.js';
4
3
  export type ModalProps = {
5
- activeEntities: ActiveEntities;
6
4
  workspaceStore: WorkspaceStore;
7
5
  modalState: ModalState;
8
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"AA6RA,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAapE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAA;AAIzF,MAAM,MAAM,UAAU,GAAG;IACvB,cAAc,EAAE,cAAc,CAAA;IAC9B,cAAc,EAAE,cAAc,CAAA;IAC9B,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED;;;;GAIG;;AACH,wBA6OC"}
1
+ {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"AAgRA,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAYpE,MAAM,MAAM,UAAU,GAAG;IAEvB,cAAc,EAAE,cAAc,CAAA;IAC9B,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED;;;;GAIG;;AACH,wBAmLC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Modal.vue2.js";
2
2
  /* empty css */
3
- import d from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ d(o, [["__scopeId", "data-v-ddfe1d6d"]]);
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-86f0c0fb"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,44 +1,31 @@
1
- import { defineComponent as k, ref as m, useId as h, watch as b, nextTick as E, onBeforeMount as y, onBeforeUnmount as g, withDirectives as u, createElementBlock as T, openBlock as x, createElementVNode as o, unref as r, createVNode as l, withCtx as C, vShow as S } from "vue";
2
- import { addScalarClassesToHeadless as F, ScalarTeleportRoot as O } from "@scalar/components";
3
- import { useFocusTrap as B } from "@vueuse/integrations/useFocusTrap";
4
- import U from "../../components/TempReplaceMe.vue.js";
5
- import { useSidebarState as L } from "../../hooks/use-sidebar-state.js";
6
- import M from "../../components/sidebar/Sidebar.vue.js";
7
- const N = { class: "scalar scalar-app" }, W = { class: "scalar-container" }, _ = ["id"], $ = { class: "flex flex-1 flex-row" }, I = {}, j = /* @__PURE__ */ k({
8
- ...I,
1
+ import { defineComponent as m, ref as p, useId as u, watch as f, nextTick as v, onBeforeMount as w, onBeforeUnmount as k, withDirectives as _, createElementBlock as h, openBlock as S, createElementVNode as a, unref as c, createVNode as x, withCtx as y, vShow as E } from "vue";
2
+ import { addScalarClassesToHeadless as C, ScalarTeleportRoot as T } from "@scalar/components";
3
+ import { useFocusTrap as F } from "@vueuse/integrations/useFocusTrap";
4
+ const B = { class: "scalar scalar-app" }, b = { class: "scalar-container" }, I = ["id"], L = {}, U = /* @__PURE__ */ m({
5
+ ...L,
9
6
  __name: "Modal",
10
7
  props: {
11
- activeEntities: {},
12
8
  workspaceStore: {},
13
9
  modalState: {}
14
10
  },
15
- setup(s) {
16
- const n = m(null), d = h(), { activate: f, deactivate: w } = B(n, {
11
+ setup(o) {
12
+ const n = p(null), l = u(), { activate: i, deactivate: d } = F(n, {
17
13
  allowOutsideClick: !0,
18
- fallbackFocus: `#${d}`
19
- }), { sidebarState: v } = L({
20
- workspaceStore: s.workspaceStore,
21
- workspaceSlug: "default",
22
- documentSlug: "",
23
- exampleName: "",
24
- method: "get",
25
- path: ""
26
- }), c = (e) => e.key === "Escape" && s.modalState.hide(), p = () => {
27
- window.removeEventListener("keydown", c), document.documentElement.style.removeProperty("overflow"), w();
14
+ fallbackFocus: `#${l}`
15
+ }), s = (e) => e.key === "Escape" && o.modalState.hide(), r = () => {
16
+ window.removeEventListener("keydown", s), document.documentElement.style.removeProperty("overflow"), d();
28
17
  };
29
- b(
30
- () => s.modalState.open,
18
+ return f(
19
+ () => o.modalState.open,
31
20
  (e) => {
32
- e ? (window.addEventListener("keydown", c), document.documentElement.style.overflow = "hidden", f({ checkCanFocusTrap: () => E() })) : p();
21
+ e ? (window.addEventListener("keydown", s), document.documentElement.style.overflow = "hidden", i({ checkCanFocusTrap: () => v() })) : r();
33
22
  }
34
- ), y(() => F()), g(() => {
35
- p();
36
- });
37
- const i = m(!0);
38
- return (e, t) => u((x(), T("div", N, [
39
- o("div", W, [
40
- o("div", {
41
- id: r(d),
23
+ ), w(() => C()), k(() => {
24
+ r();
25
+ }), (e, t) => _((S(), h("div", B, [
26
+ a("div", b, [
27
+ a("div", {
28
+ id: c(l),
42
29
  ref_key: "client",
43
30
  ref: n,
44
31
  "aria-label": "API Client",
@@ -47,43 +34,23 @@ const N = { class: "scalar scalar-app" }, W = { class: "scalar-container" }, _ =
47
34
  role: "dialog",
48
35
  tabindex: "-1"
49
36
  }, [
50
- l(r(O), null, {
51
- default: C(() => [
52
- o("main", $, [
53
- u(l(r(M), {
54
- isSidebarOpen: i.value,
55
- "onUpdate:isSidebarOpen": t[0] || (t[0] = (a) => i.value = a),
56
- sidebarState: r(v),
57
- layout: "modal",
58
- sidebarWidth: e.workspaceStore.workspace["x-scalar-sidebar-width"] ?? 288,
59
- "onUpdate:sidebarWidth": t[1] || (t[1] = (a) => e.workspaceStore.update("x-scalar-sidebar-width", a))
60
- }, null, 8, ["isSidebarOpen", "sidebarState", "sidebarWidth"]), [
61
- [S, i.value]
62
- ]),
63
- l(U, {
64
- documentSlug: e.activeEntities.documentSlug,
65
- example: e.activeEntities.example,
66
- layout: "modal",
67
- method: e.activeEntities.method,
68
- path: e.activeEntities.path,
69
- workspaceStore: e.workspaceStore,
70
- workspaceSlug: "default"
71
- }, null, 8, ["documentSlug", "example", "method", "path", "workspaceStore"])
72
- ])
73
- ]),
37
+ x(c(T), null, {
38
+ default: y(() => [...t[1] || (t[1] = [
39
+ a("main", { class: "flex flex-1 flex-row" }, " Insert operation page here ", -1)
40
+ ])]),
74
41
  _: 1
75
42
  })
76
- ], 8, _),
77
- o("div", {
43
+ ], 8, I),
44
+ a("div", {
78
45
  class: "scalar-app-exit",
79
- onClick: t[2] || (t[2] = (a) => e.modalState.hide())
46
+ onClick: t[0] || (t[0] = (g) => e.modalState.hide())
80
47
  })
81
48
  ])
82
49
  ], 512)), [
83
- [S, e.modalState.open]
50
+ [E, e.modalState.open]
84
51
  ]);
85
52
  }
86
53
  });
87
54
  export {
88
- j as default
55
+ U as default
89
56
  };
@@ -1 +1 @@
1
- {"version":3,"file":"create-api-client-modal.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/modal/helpers/create-api-client-modal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAKpE,MAAM,MAAM,2BAA2B,GAAG;IACxC,2CAA2C;IAC3C,EAAE,EAAE,WAAW,GAAG,IAAI,CAAA;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,4DAA4D;IAC5D,cAAc,EAAE,cAAc,CAAA;CAC/B,CAAA;AAED,2DAA2D;AAC3D,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAA;AAEnD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,2CAAkD,2BAA2B;IA6C9G,+DAA+D;;IAE/D,mEAAmE;qBAClD,YAAY;IAM7B,0CAA0C;;IAE1C,wDAAwD;qBAdlC,YAAY;;;;;;;;;;;IAgBlC,2CAA2C;;;;;;CAG9C,CAAA"}
1
+ {"version":3,"file":"create-api-client-modal.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/modal/helpers/create-api-client-modal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAKpE,MAAM,MAAM,2BAA2B,GAAG;IACxC,2CAA2C;IAC3C,EAAE,EAAE,WAAW,GAAG,IAAI,CAAA;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,4DAA4D;IAC5D,cAAc,EAAE,cAAc,CAAA;CAC/B,CAAA;AAED,2DAA2D;AAC3D,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAA;AAEnD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,2CAAkD,2BAA2B;IA4C9G,+DAA+D;;IAE/D,mEAAmE;qBAClD,YAAY;IAM7B,0CAA0C;;IAE1C,wDAAwD;qBAdlC,YAAY;;;;;;;;;;;IAgBlC,2CAA2C;;;;;;CAG9C,CAAA"}