@scalar/api-client 2.18.1 → 2.18.3

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 (277) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/components/AddressBar/AddressBar.vue2.js +52 -52
  3. package/dist/components/AddressBar/AddressBarHistory.vue2.js +15 -15
  4. package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -33
  5. package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
  6. package/dist/components/AddressBar/httpStatusCodeColors.js +0 -1
  7. package/dist/components/CodeInput/CodeInput.vue2.js +112 -112
  8. package/dist/components/CommandPalette/CommandActionForm.vue.js +18 -18
  9. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +25 -25
  10. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -4
  13. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -1
  14. package/dist/components/CommandPalette/WatchModeToggle.vue.js +14 -14
  15. package/dist/components/DataTable/DataTable.vue.js +17 -17
  16. package/dist/components/DataTable/DataTableCell.vue.js +9 -9
  17. package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
  18. package/dist/components/DataTable/DataTableInput.vue2.js +48 -48
  19. package/dist/components/DataTable/DataTableInputSelect.vue.js +35 -35
  20. package/dist/components/DataTable/DataTableText.vue.js +10 -10
  21. package/dist/components/Form/Form.vue.js +32 -32
  22. package/dist/components/Form/LabelInput.vue2.js +15 -15
  23. package/dist/components/HelpfulLink.vue.js +7 -7
  24. package/dist/components/HttpMethod/HttpMethod.vue2.js +22 -22
  25. package/dist/components/IconSelector.vue.js +16 -16
  26. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +50 -50
  27. package/dist/components/ImportCollection/ImportNowButton.vue.js +23 -23
  28. package/dist/components/ImportCollection/PrefetchError.vue.js +8 -8
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -7
  30. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  31. package/dist/components/ScalarAsciiArt.vue2.js +16 -16
  32. package/dist/components/SectionFilter.vue2.js +21 -21
  33. package/dist/components/SectionFilterButton.vue.js +7 -7
  34. package/dist/components/Server/ServerDropdown.vue.js +32 -32
  35. package/dist/components/Server/ServerDropdownItem.vue2.js +39 -39
  36. package/dist/components/Server/ServerSelector.vue.js +27 -27
  37. package/dist/components/Server/ServerVariablesForm.vue.js +26 -26
  38. package/dist/components/Server/ServerVariablesSelect.vue.js +21 -21
  39. package/dist/components/Server/ServerVariablesTextbox.vue.js +10 -10
  40. package/dist/components/Server/types.d.ts +2 -1
  41. package/dist/components/Server/types.d.ts.map +1 -1
  42. package/dist/components/SideNav/SideNavLink.vue.js +18 -18
  43. package/dist/components/SideNav/SideNavRouterLink.vue.js +13 -13
  44. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +11 -11
  45. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +16 -16
  46. package/dist/components/Sidebar/Sidebar.vue2.js +28 -28
  47. package/dist/components/Sidebar/SidebarButton.vue.js +12 -12
  48. package/dist/components/Sidebar/SidebarListElement.vue2.js +34 -34
  49. package/dist/components/Sidebar/SidebarListElementActions.vue.js +33 -33
  50. package/dist/components/TopNav/TopNavItem.vue2.js +41 -41
  51. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +43 -43
  52. package/dist/data/httpHeaders.d.ts +2 -1
  53. package/dist/data/httpHeaders.d.ts.map +1 -1
  54. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  55. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  56. package/dist/libs/create-client.d.ts.map +1 -1
  57. package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
  58. package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
  59. package/dist/plugins/hooks/usePluginManager.js +4 -4
  60. package/dist/plugins/index.d.ts +1 -1
  61. package/dist/plugins/index.d.ts.map +1 -1
  62. package/dist/plugins/index.js +5 -5
  63. package/dist/plugins/plugin-manager.d.ts +0 -2
  64. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  65. package/dist/routes.d.ts +0 -10
  66. package/dist/routes.d.ts.map +1 -1
  67. package/dist/routes.js +0 -1
  68. package/dist/store/security-schemes.d.ts.map +1 -1
  69. package/dist/store/store.d.ts.map +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
  72. package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
  73. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  74. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
  75. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
  76. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
  77. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
  78. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  79. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
  80. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
  81. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  82. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
  83. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
  84. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
  85. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
  86. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  87. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
  88. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  89. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  90. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
  91. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
  92. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  93. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  94. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
  95. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
  96. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
  97. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
  98. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
  99. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
  100. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  101. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
  102. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
  103. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  104. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
  105. package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
  106. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
  107. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  108. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
  109. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
  110. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
  111. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  112. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
  113. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
  114. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
  115. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
  116. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
  117. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
  118. package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
  119. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
  120. package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
  121. package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
  122. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
  123. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
  124. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
  125. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
  126. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
  127. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
  128. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
  129. package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
  130. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
  131. package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
  132. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
  133. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
  134. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
  135. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
  136. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
  137. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +69 -69
  138. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
  139. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
  140. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
  141. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +29 -29
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
  144. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +75 -75
  145. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
  146. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  147. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
  148. package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
  149. package/dist/v2/components/data-table/DataTable.vue.js +17 -17
  150. package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
  151. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
  152. package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
  153. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
  154. package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
  155. package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
  156. package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
  157. package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
  158. package/dist/v2/components/resize/Resize.vue2.js +11 -11
  159. package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
  160. package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
  161. package/dist/v2/components/sidebar/Sidebar.vue.js +32 -32
  162. package/dist/v2/components/sidebar/SidebarMenu.vue.js +20 -20
  163. package/dist/v2/features/app/App.vue.js +25 -25
  164. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  165. package/dist/v2/features/app/app-events.js +55 -61
  166. package/dist/v2/features/app/components/AppSidebar.vue2.js +97 -97
  167. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
  168. package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
  169. package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
  170. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
  171. package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
  172. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -5
  173. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  174. package/dist/v2/features/app/helpers/create-api-client-app.js +1 -2
  175. package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
  176. package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
  177. package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
  178. package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
  179. package/dist/v2/features/collection/components/Environment.vue.js +10 -10
  180. package/dist/v2/features/collection/components/Form.vue.js +21 -21
  181. package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
  182. package/dist/v2/features/collection/components/Servers.vue.js +37 -37
  183. package/dist/v2/features/collection/components/Settings.vue.js +22 -22
  184. package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
  185. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
  186. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
  187. package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
  188. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
  189. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
  190. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
  191. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
  192. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
  193. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
  194. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  195. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
  196. package/dist/v2/features/command-palette/types.d.ts +11 -10
  197. package/dist/v2/features/command-palette/types.d.ts.map +1 -1
  198. package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
  199. package/dist/v2/features/environments/components/Environment.vue.js +16 -16
  200. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
  201. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
  202. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
  203. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
  204. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
  205. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
  206. package/dist/v2/features/modal/Modal.vue2.js +56 -56
  207. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -1
  208. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  209. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
  210. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
  211. package/dist/v2/features/operation/Operation.vue.js +34 -34
  212. package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
  213. package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
  214. package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
  215. package/dist/v2/features/search/types.d.ts +5 -4
  216. package/dist/v2/features/search/types.d.ts.map +1 -1
  217. package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
  218. package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
  219. package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
  220. package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
  221. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  222. package/dist/v2/helpers/handle-hotkeys.js +0 -2
  223. package/dist/v2/helpers/plugins.d.ts +2 -2
  224. package/dist/v2/helpers/plugins.d.ts.map +1 -1
  225. package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
  226. package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
  227. package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
  228. package/dist/views/Cookies/CookieModal.vue2.js +26 -26
  229. package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
  230. package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
  231. package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
  232. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
  233. package/dist/views/Request/Request.vue2.js +55 -55
  234. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
  235. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
  236. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
  237. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  238. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
  239. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  240. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
  241. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
  242. package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
  243. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
  244. package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
  245. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
  246. package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
  247. package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
  248. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
  249. package/dist/views/Request/RequestSection/index.d.ts +1 -1
  250. package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
  251. package/dist/views/Request/RequestSection/index.js +4 -4
  252. package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
  253. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
  254. package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
  255. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
  256. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
  257. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
  258. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
  259. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
  260. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
  261. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
  262. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
  263. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
  264. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
  265. package/package.json +23 -23
  266. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
  267. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
  268. package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
  269. package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
  270. package/dist/components/ScreenReader.vue.d.ts +0 -20
  271. package/dist/components/ScreenReader.vue.d.ts.map +0 -1
  272. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
  273. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
  274. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
  275. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
  276. package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
  277. package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as re, useCssVars as ue, computed as v, ref as de, resolveComponent as pe, createElementBlock as C, createCommentVNode as p, openBlock as u, normalizeClass as g, unref as n, createVNode as c, withCtx as m, createBlock as f, withModifiers as h, createElementVNode as s, toDisplayString as j, createTextVNode as B, renderSlot as L, Fragment as fe, renderList as ce, nextTick as me } from "vue";
1
+ import { defineComponent as re, useCssVars as ue, computed as v, ref as de, resolveComponent as ce, createElementBlock as C, createCommentVNode as c, openBlock as u, normalizeClass as g, unref as l, createVNode as m, withCtx as p, createBlock as f, withModifiers as h, createElementVNode as o, toDisplayString as j, createTextVNode as B, renderSlot as L, Fragment as fe, renderList as me, nextTick as pe } from "vue";
2
2
  import { ScalarButton as k, ScalarIcon as b, ScalarSidebarGroupToggle as G, ScalarTooltip as K } from "@scalar/components";
3
3
  import { Draggable as ve } from "@scalar/draggable";
4
4
  import { shouldIgnoreEntity as J } from "@scalar/oas-utils/helpers";
@@ -26,10 +26,10 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
26
26
  menuItem: {}
27
27
  },
28
28
  emits: ["onDragEnd", "newTab", "openMenu"],
29
- setup(o, { emit: X }) {
30
- ue((t) => ({
31
- "0bed2d4e": te.value,
32
- "57ee1db0": ie.value
29
+ setup(t, { emit: X }) {
30
+ ue((n) => ({
31
+ v0bed2d4e: te.value,
32
+ v57ee1db0: ie.value
33
33
  }));
34
34
  const Z = X, { activeCollection: _, activeRequest: A, activeRouterParams: ee, activeWorkspace: x } = he(), {
35
35
  collections: q,
@@ -42,28 +42,28 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
42
42
  requestExampleMutators: O,
43
43
  events: P
44
44
  } = we(), y = ge(), { collapsedSidebarFolders: w, toggleSidebarFolder: V } = ye(), { layout: d } = be(), i = v(() => {
45
- const t = q[o.uid], e = U[o.uid], r = T[o.uid], l = M[o.uid];
46
- return t ? {
47
- title: t.info?.title || "Untitled Collection",
48
- entity: t,
45
+ const n = q[t.uid], e = U[t.uid], r = T[t.uid], a = M[t.uid];
46
+ return n ? {
47
+ title: n.info?.title || "Untitled Collection",
48
+ entity: n,
49
49
  resourceTitle: "Collection",
50
- children: t.children,
51
- icon: t["x-scalar-icon"],
52
- documentUrl: t.documentUrl,
53
- watchMode: t.watchMode,
54
- to: t.uid && t?.info?.title !== "Drafts" ? {
50
+ children: n.children,
51
+ icon: n["x-scalar-icon"],
52
+ documentUrl: n.documentUrl,
53
+ watchMode: n.watchMode,
54
+ to: n.uid && n?.info?.title !== "Drafts" ? {
55
55
  name: "collection",
56
56
  params: {
57
57
  [R.Workspace]: x.value?.uid,
58
- [R.Collection]: t.uid
58
+ [R.Collection]: n.uid
59
59
  }
60
60
  } : void 0,
61
61
  warning: "This cannot be undone. You're about to delete the collection and all folders and requests inside it.",
62
- edit: (a, I) => {
63
- E.edit(t.uid, "info.title", a), I && E.edit(t.uid, "x-scalar-icon", I);
62
+ edit: (s, I) => {
63
+ E.edit(n.uid, "info.title", s), I && E.edit(n.uid, "x-scalar-icon", I);
64
64
  },
65
65
  delete: () => {
66
- x.value && E.delete(t, x.value);
66
+ x.value && E.delete(n, x.value);
67
67
  }
68
68
  } : e ? {
69
69
  title: e.name,
@@ -71,8 +71,8 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
71
71
  resourceTitle: "Tag",
72
72
  children: e.children,
73
73
  warning: "This cannot be undone. You're about to delete the tag and all requests inside it",
74
- edit: (a) => N.edit(e.uid, "name", a),
75
- delete: () => o.parentUids[0] && N.delete(e, o.parentUids[0])
74
+ edit: (s) => N.edit(e.uid, "name", s),
75
+ delete: () => t.parentUids[0] && N.delete(e, t.parentUids[0])
76
76
  } : r ? {
77
77
  title: r.summary ?? r.path,
78
78
  to: {
@@ -87,25 +87,25 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
87
87
  resourceTitle: "Request",
88
88
  warning: "This cannot be undone. You're about to delete the request.",
89
89
  children: r.examples.slice(1),
90
- edit: (a) => $.edit(r.uid, "summary", a),
91
- delete: () => o.parentUids[0] && $.delete(r, o.parentUids[0])
92
- } : l?.requestUid ? {
93
- title: l.name,
90
+ edit: (s) => $.edit(r.uid, "summary", s),
91
+ delete: () => t.parentUids[0] && $.delete(r, t.parentUids[0])
92
+ } : a?.requestUid ? {
93
+ title: a.name,
94
94
  to: {
95
95
  name: "request.examples",
96
96
  params: {
97
97
  workspace: x.value?.uid,
98
- request: l.requestUid,
99
- examples: l.uid
98
+ request: a.requestUid,
99
+ examples: a.uid
100
100
  }
101
101
  },
102
- method: T[l.requestUid]?.method,
103
- entity: l,
102
+ method: T[a.requestUid]?.method,
103
+ entity: a,
104
104
  resourceTitle: "Example",
105
105
  warning: "This cannot be undone. You're about to delete the example from the request.",
106
106
  children: [],
107
- edit: (a) => O.edit(l.uid, "name", a),
108
- delete: () => O.delete(l)
107
+ edit: (s) => O.edit(a.uid, "name", s),
108
+ delete: () => O.delete(a)
109
109
  } : {
110
110
  title: "Unknown",
111
111
  entity: {
@@ -119,53 +119,53 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
119
119
  };
120
120
  }), D = v(
121
121
  () => i.value.entity.type === "collection" && i.value.title === "Drafts"
122
- ), te = v(() => o.parentUids.length ? d === "modal" ? `${(o.parentUids.length - 1) * 12}px` : `${o.parentUids.length * 12}px` : "12px"), ie = v(() => o.parentUids.length ? d === "modal" ? `${(o.parentUids.length - 1) * 12}px` : `${o.parentUids.length * 12}px` : "0px"), ne = v(
123
- () => w[o.uid] || A.value?.uid === o.uid && i.value.entity.examples.length > 1
122
+ ), te = v(() => t.parentUids.length ? d === "modal" ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), ie = v(() => t.parentUids.length ? d === "modal" ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), ne = v(
123
+ () => w[t.uid] || A.value?.uid === t.uid && i.value.entity.examples.length > 1
124
124
  ), le = v(
125
- () => typeof y.currentRoute.value.name == "string" && y.currentRoute.value.name.startsWith("request") && ee.value[R.Request] === "default" && A.value?.uid === o.uid
125
+ () => typeof y.currentRoute.value.name == "string" && y.currentRoute.value.name.startsWith("request") && ee.value[R.Request] === "default" && A.value?.uid === t.uid
126
126
  ), z = de(null), F = v(() => {
127
- let t = 0.5, e = 0.5;
127
+ let n = 0.5, e = 0.5;
128
128
  if (!z.value)
129
- return { ceiling: t, floor: e };
129
+ return { ceiling: n, floor: e };
130
130
  const { draggingItem: r } = z.value;
131
- return !q[r?.id] && i.value.entity.type === "collection" ? (t = 1, e = 0) : i.value.entity.type === "tag" && (t = 0.8, e = 0.2), { ceiling: t, floor: e };
132
- }), oe = (t, e) => !(d === "modal" || M[e.id] || q[t.id]), se = (t, e) => {
133
- t && (ke(["default"]).some((a) => t[a]) ? Z("newTab", e.title || "", e.entity.uid) : e.to && y.push(e.to), me(() => P.focusAddressBar.emit()));
131
+ return !q[r?.id] && i.value.entity.type === "collection" ? (n = 1, e = 0) : i.value.entity.type === "tag" && (n = 0.8, e = 0.2), { ceiling: n, floor: e };
132
+ }), ae = (n, e) => !(d === "modal" || M[e.id] || q[n.id]), oe = (n, e) => {
133
+ n && (ke(["default"]).some((s) => n[s]) ? Z("newTab", e.title || "", e.entity.uid) : e.to && y.push(e.to), pe(() => P.focusAddressBar.emit()));
134
134
  };
135
- function S(t) {
136
- const e = o.parentUids[0] ? q[o.parentUids[0]]?.uid || "" : t, r = o.parentUids[0] && U[t]?.name ? { tags: [U[t].name] } : {}, l = $.add(
135
+ function S(n) {
136
+ const e = t.parentUids[0] ? q[t.parentUids[0]]?.uid || "" : n, r = t.parentUids[0] && U[n]?.name ? { tags: [U[n].name] } : {}, a = $.add(
137
137
  r,
138
138
  e
139
139
  );
140
- l && (y.push({
140
+ a && (y.push({
141
141
  name: "request",
142
142
  params: {
143
143
  workspace: x.value?.uid,
144
- request: l.uid
144
+ request: a.uid
145
145
  }
146
146
  }), P.hotKeys.emit({
147
147
  focusAddressBar: new KeyboardEvent("keydown", { key: "l" })
148
148
  }));
149
149
  }
150
150
  const Y = v(() => {
151
- const { uid: t, watchModeStatus: e } = _.value || {};
152
- return t !== i.value.entity.uid ? "text-c-3" : e === "WATCHING" ? "text-c-1" : e === "ERROR" ? "text-red" : "text-c-3";
153
- }), H = v(() => i.value.title === "Drafts" && d !== "modal" && i.value.children.length > 0), ae = v(() => {
154
- const t = T[o.uid];
155
- if (t)
156
- return !J(t);
157
- const e = U[o.uid];
151
+ const { uid: n, watchModeStatus: e } = _.value || {};
152
+ return n !== i.value.entity.uid ? "text-c-3" : e === "WATCHING" ? "text-c-1" : e === "ERROR" ? "text-red" : "text-c-3";
153
+ }), H = v(() => i.value.title === "Drafts" && d !== "modal" && i.value.children.length > 0), se = v(() => {
154
+ const n = T[t.uid];
155
+ if (n)
156
+ return !J(n);
157
+ const e = U[t.uid];
158
158
  return e ? !J(e) : !0;
159
159
  });
160
- return (t, e) => {
161
- const r = pe("RequestSidebarItem", !0);
162
- return ae.value ? (u(), C("li", {
160
+ return (n, e) => {
161
+ const r = ce("RequestSidebarItem", !0);
162
+ return se.value ? (u(), C("li", {
163
163
  key: 0,
164
164
  class: g(["relative flex flex-row", [
165
- n(d) === "modal" && t.parentUids.length > 1 || n(d) !== "modal" && t.parentUids.length ? "before:bg-border indent-border-line-offset mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-[calc(.75rem_+_.5px)] before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full" : ""
165
+ l(d) === "modal" && t.parentUids.length > 1 || l(d) !== "modal" && t.parentUids.length ? "before:bg-border indent-border-line-offset mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-[calc(.75rem_+_.5px)] before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full" : ""
166
166
  ]])
167
167
  }, [
168
- c(n(ve), {
168
+ m(l(ve), {
169
169
  id: i.value.entity.uid,
170
170
  ref_key: "draggableRef",
171
171
  ref: z,
@@ -175,29 +175,29 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
175
175
  isDraggable: t.isDraggable,
176
176
  isDroppable: t.isDroppable,
177
177
  parentIds: t.parentUids,
178
- onOnDragEnd: e[12] || (e[12] = (...l) => t.$emit("onDragEnd", ...l))
178
+ onOnDragEnd: e[12] || (e[12] = (...a) => n.$emit("onDragEnd", ...a))
179
179
  }, {
180
- default: m(() => [
181
- (i.value.entity.type === "request" || i.value.entity.type === "requestExample") && i.value.to ? (u(), f(n(Q), {
180
+ default: p(() => [
181
+ (i.value.entity.type === "request" || i.value.entity.type === "requestExample") && i.value.to ? (u(), f(l(Q), {
182
182
  key: 0,
183
183
  class: "group no-underline",
184
184
  to: i.value.to,
185
185
  onClick: e[1] || (e[1] = h(
186
- (l) => se(l, i.value),
186
+ (a) => oe(a, i.value),
187
187
  ["prevent"]
188
188
  ))
189
189
  }, {
190
- default: m(({ isExactActive: l }) => [
191
- s("div", {
190
+ default: p(({ isExactActive: a }) => [
191
+ o("div", {
192
192
  class: g(["relative flex min-h-8 w-full cursor-pointer flex-row items-start justify-between gap-0.5 rounded py-1.5 pr-2", [
193
193
  W,
194
- l || le.value ? "bg-sidebar-b-active text-sidebar-c-active font-medium transition-none" : "text-sidebar-c-2"
194
+ a || le.value ? "bg-sidebar-b-active text-sidebar-c-active font-medium transition-none" : "text-sidebar-c-2"
195
195
  ]])
196
196
  }, [
197
- s("span", qe, j(i.value.title || "Untitled"), 1),
198
- s("div", Ue, [
199
- s("div", De, [
200
- n(d) !== "modal" ? (u(), f(n(k), {
197
+ o("span", qe, j(i.value.title || "Untitled"), 1),
198
+ o("div", Ue, [
199
+ o("div", De, [
200
+ l(d) !== "modal" ? (u(), f(l(k), {
201
201
  key: 0,
202
202
  class: g(["hover:bg-b-3 hidden aspect-square h-fit px-0.5 py-0 opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
203
203
  flex: t.menuItem?.item?.entity.uid === i.value.entity.uid && t.menuItem.open
@@ -206,120 +206,120 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
206
206
  type: "button",
207
207
  variant: "ghost",
208
208
  onClick: e[0] || (e[0] = h(
209
- (a) => t.$emit("openMenu", {
209
+ (s) => n.$emit("openMenu", {
210
210
  item: i.value,
211
211
  parentUids: t.parentUids,
212
- targetRef: a.currentTarget,
212
+ targetRef: s.currentTarget,
213
213
  open: !t.menuItem.open
214
214
  }),
215
215
  ["stop", "prevent"]
216
216
  ))
217
217
  }, {
218
- default: m(() => [
219
- c(n(b), {
218
+ default: p(() => [
219
+ m(l(b), {
220
220
  icon: "Ellipses",
221
221
  size: "md"
222
222
  })
223
223
  ]),
224
224
  _: 1
225
- }, 8, ["class"])) : p("", !0)
225
+ }, 8, ["class"])) : c("", !0)
226
226
  ]),
227
- s("span", Ie, [
227
+ o("span", Ie, [
228
228
  e[13] || (e[13] = B("   ", -1)),
229
- e[14] || (e[14] = s("span", { class: "sr-only" }, "HTTP Method:", -1)),
230
- i.value.method ? (u(), f(n(xe), {
229
+ e[14] || (e[14] = o("span", { class: "sr-only" }, "HTTP Method:", -1)),
230
+ i.value.method ? (u(), f(l(xe), {
231
231
  key: 0,
232
232
  class: "font-bold",
233
233
  method: i.value.method
234
- }, null, 8, ["method"])) : p("", !0)
234
+ }, null, 8, ["method"])) : c("", !0)
235
235
  ])
236
236
  ])
237
237
  ], 2)
238
238
  ]),
239
239
  _: 1
240
- }, 8, ["to"])) : (n(d) !== "modal" || t.parentUids.length) && i.value.entity.type === "collection" && i.value.to ? (u(), f(n(Q), {
240
+ }, 8, ["to"])) : (l(d) !== "modal" || t.parentUids.length) && i.value.entity.type === "collection" && i.value.to ? (u(), f(l(Q), {
241
241
  key: 1,
242
- "aria-expanded": !!n(w)[i.value.entity.uid],
242
+ "aria-expanded": !!l(w)[i.value.entity.uid],
243
243
  class: g(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 no-underline focus-visible:z-10", [
244
244
  W,
245
245
  {
246
- "bg-sidebar-b-active text-sidebar-c-active transition-none": typeof n(y).currentRoute.value.name == "string" && n(y).currentRoute.value.name.startsWith("collection") && n(y).currentRoute.value.params[n(R).Collection] === i.value.entity.uid,
246
+ "bg-sidebar-b-active text-sidebar-c-active transition-none": typeof l(y).currentRoute.value.name == "string" && l(y).currentRoute.value.name.startsWith("collection") && l(y).currentRoute.value.params[l(R).Collection] === i.value.entity.uid,
247
247
  "text-c-2": i.value.title === "Untitled Collection"
248
248
  }
249
249
  ]]),
250
250
  to: i.value.to
251
251
  }, {
252
- default: m(() => [
253
- s("span", {
252
+ default: p(() => [
253
+ o("span", {
254
254
  class: "flex h-5 max-w-[14px] cursor-pointer items-center justify-center",
255
- onClick: e[2] || (e[2] = h((l) => n(V)(i.value.entity.uid), ["stop", "prevent"]))
255
+ onClick: e[2] || (e[2] = h((a) => l(V)(i.value.entity.uid), ["stop", "prevent"]))
256
256
  }, [
257
- L(t.$slots, "leftIcon", {}, () => [
258
- c(n(G), {
257
+ L(n.$slots, "leftIcon", {}, () => [
258
+ m(l(G), {
259
259
  class: "text-c-3 shrink-0",
260
- open: !!n(w)[i.value.entity.uid]
260
+ open: !!l(w)[i.value.entity.uid]
261
261
  }, null, 8, ["open"])
262
262
  ], !0),
263
263
  e[15] || (e[15] = B("   ", -1))
264
264
  ]),
265
- s("div", Ce, [
266
- s("span", Re, j(i.value.title), 1),
267
- s("div", Te, [
268
- s("div", {
265
+ o("div", Ce, [
266
+ o("span", Re, j(i.value.title), 1),
267
+ o("div", Te, [
268
+ o("div", {
269
269
  class: g(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
270
270
  flex: t.menuItem.open,
271
271
  hidden: !t.menuItem.open || t.menuItem.item?.entity.uid !== i.value.entity.uid
272
272
  }])
273
273
  }, [
274
- n(d) !== "modal" && !D.value || D.value && H.value ? (u(), f(n(k), {
274
+ l(d) !== "modal" && !D.value || D.value && H.value ? (u(), f(l(k), {
275
275
  key: 0,
276
276
  class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
277
277
  size: "sm",
278
278
  variant: "ghost",
279
279
  onClick: e[3] || (e[3] = h(
280
- (l) => t.$emit("openMenu", {
280
+ (a) => n.$emit("openMenu", {
281
281
  item: i.value,
282
282
  parentUids: t.parentUids,
283
- targetRef: l.currentTarget.parentNode,
283
+ targetRef: a.currentTarget.parentNode,
284
284
  open: !0
285
285
  }),
286
286
  ["stop", "prevent"]
287
287
  ))
288
288
  }, {
289
- default: m(() => [
290
- c(n(b), {
289
+ default: p(() => [
290
+ m(l(b), {
291
291
  icon: "Ellipses",
292
292
  size: "md"
293
293
  })
294
294
  ]),
295
295
  _: 1
296
- })) : p("", !0),
297
- n(d) !== "modal" ? (u(), f(n(k), {
296
+ })) : c("", !0),
297
+ l(d) !== "modal" ? (u(), f(l(k), {
298
298
  key: 1,
299
299
  class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
300
300
  size: "sm",
301
301
  variant: "ghost",
302
- onClick: e[4] || (e[4] = h((l) => S(i.value.entity.uid), ["stop", "prevent"]))
302
+ onClick: e[4] || (e[4] = h((a) => S(i.value.entity.uid), ["stop", "prevent"]))
303
303
  }, {
304
- default: m(() => [
305
- c(n(b), {
304
+ default: p(() => [
305
+ m(l(b), {
306
306
  icon: "Add",
307
307
  size: "md",
308
308
  thickness: "2"
309
309
  })
310
310
  ]),
311
311
  _: 1
312
- })) : p("", !0)
312
+ })) : c("", !0)
313
313
  ], 2),
314
- i.value.watchMode ? (u(), f(n(K), {
314
+ i.value.watchMode ? (u(), f(l(K), {
315
315
  key: 0,
316
316
  placement: "right",
317
317
  offset: 12,
318
318
  content: `Watching: ${i.value.documentUrl}`
319
319
  }, {
320
- default: m(() => [
321
- s("button", Me, [
322
- c(n(b), {
320
+ default: p(() => [
321
+ o("button", Me, [
322
+ m(l(b), {
323
323
  class: g(["ml-0.5 text-sm", Y.value]),
324
324
  icon: "Watch",
325
325
  size: "md",
@@ -328,86 +328,86 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
328
328
  ])
329
329
  ]),
330
330
  _: 1
331
- }, 8, ["content"])) : p("", !0),
332
- e[16] || (e[16] = s("span", null, " ", -1))
331
+ }, 8, ["content"])) : c("", !0),
332
+ e[16] || (e[16] = o("span", null, " ", -1))
333
333
  ])
334
334
  ])
335
335
  ]),
336
336
  _: 3
337
- }, 8, ["aria-expanded", "class", "to"])) : n(d) !== "modal" || t.parentUids.length ? (u(), C("button", {
337
+ }, 8, ["aria-expanded", "class", "to"])) : l(d) !== "modal" || t.parentUids.length ? (u(), C("button", {
338
338
  key: 2,
339
- "aria-expanded": !!n(w)[i.value.entity.uid],
339
+ "aria-expanded": !!l(w)[i.value.entity.uid],
340
340
  class: g(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", [W]]),
341
341
  type: "button",
342
- onClick: e[7] || (e[7] = (l) => n(V)(i.value.entity.uid))
342
+ onClick: e[7] || (e[7] = (a) => l(V)(i.value.entity.uid))
343
343
  }, [
344
- s("span", $e, [
345
- L(t.$slots, "leftIcon", {}, () => [
346
- c(n(G), {
344
+ o("span", $e, [
345
+ L(n.$slots, "leftIcon", {}, () => [
346
+ m(l(G), {
347
347
  class: "text-c-3 hover:text-c-1 shrink-0",
348
- open: !!n(w)[i.value.entity.uid]
348
+ open: !!l(w)[i.value.entity.uid]
349
349
  }, null, 8, ["open"])
350
350
  ], !0),
351
351
  e[17] || (e[17] = B("   ", -1))
352
352
  ]),
353
- s("div", ze, [
354
- s("span", Se, j(i.value.title), 1),
355
- s("div", je, [
356
- s("div", {
353
+ o("div", ze, [
354
+ o("span", Se, j(i.value.title), 1),
355
+ o("div", je, [
356
+ o("div", {
357
357
  class: g(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
358
358
  flex: t.menuItem.open,
359
359
  hidden: !t.menuItem.open || t.menuItem.item?.entity.uid !== i.value.entity.uid
360
360
  }])
361
361
  }, [
362
- n(d) !== "modal" && !D.value || D.value && H.value ? (u(), f(n(k), {
362
+ l(d) !== "modal" && !D.value || D.value && H.value ? (u(), f(l(k), {
363
363
  key: 0,
364
364
  class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
365
365
  size: "sm",
366
366
  variant: "ghost",
367
367
  onClick: e[5] || (e[5] = h(
368
- (l) => t.$emit("openMenu", {
368
+ (a) => n.$emit("openMenu", {
369
369
  item: i.value,
370
370
  parentUids: t.parentUids,
371
- targetRef: l.currentTarget.parentNode,
371
+ targetRef: a.currentTarget.parentNode,
372
372
  open: !0
373
373
  }),
374
374
  ["stop", "prevent"]
375
375
  ))
376
376
  }, {
377
- default: m(() => [
378
- c(n(b), {
377
+ default: p(() => [
378
+ m(l(b), {
379
379
  icon: "Ellipses",
380
380
  size: "md"
381
381
  })
382
382
  ]),
383
383
  _: 1
384
- })) : p("", !0),
385
- n(d) !== "modal" ? (u(), f(n(k), {
384
+ })) : c("", !0),
385
+ l(d) !== "modal" ? (u(), f(l(k), {
386
386
  key: 1,
387
387
  class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
388
388
  size: "sm",
389
389
  variant: "ghost",
390
- onClick: e[6] || (e[6] = h((l) => S(i.value.entity.uid), ["stop", "prevent"]))
390
+ onClick: e[6] || (e[6] = h((a) => S(i.value.entity.uid), ["stop", "prevent"]))
391
391
  }, {
392
- default: m(() => [
393
- c(n(b), {
392
+ default: p(() => [
393
+ m(l(b), {
394
394
  icon: "Add",
395
395
  size: "md",
396
396
  thickness: "2"
397
397
  })
398
398
  ]),
399
399
  _: 1
400
- })) : p("", !0)
400
+ })) : c("", !0)
401
401
  ], 2),
402
- i.value.watchMode ? (u(), f(n(K), {
402
+ i.value.watchMode ? (u(), f(l(K), {
403
403
  key: 0,
404
404
  content: "Watching: {{ item.documentUrl }}",
405
405
  placement: "right",
406
406
  offset: 12
407
407
  }, {
408
- default: m(() => [
409
- s("button", Be, [
410
- c(n(b), {
408
+ default: p(() => [
409
+ o("button", Be, [
410
+ m(l(b), {
411
411
  class: g(["ml-0.5 text-sm", Y.value]),
412
412
  icon: "Watch",
413
413
  size: "md",
@@ -416,43 +416,43 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
416
416
  ])
417
417
  ]),
418
418
  _: 1
419
- })) : p("", !0),
420
- e[18] || (e[18] = s("span", null, " ", -1))
419
+ })) : c("", !0),
420
+ e[18] || (e[18] = o("span", null, " ", -1))
421
421
  ])
422
422
  ])
423
- ], 10, Ee)) : p("", !0),
423
+ ], 10, Ee)) : c("", !0),
424
424
  ne.value ? (u(), C("ul", We, [
425
- (u(!0), C(fe, null, ce(i.value.children, (l) => (u(), f(r, {
426
- key: l,
427
- isDraggable: !n(M)[l],
428
- isDroppable: oe,
425
+ (u(!0), C(fe, null, me(i.value.children, (a) => (u(), f(r, {
426
+ key: a,
427
+ isDraggable: !l(M)[a],
428
+ isDroppable: ae,
429
429
  menuItem: t.menuItem,
430
430
  parentUids: [...t.parentUids, t.uid],
431
- uid: l,
432
- onNewTab: e[8] || (e[8] = (a, I) => t.$emit("newTab", a, I)),
433
- onOnDragEnd: e[9] || (e[9] = (...a) => t.$emit("onDragEnd", ...a)),
434
- onOpenMenu: e[10] || (e[10] = (a) => t.$emit("openMenu", a))
431
+ uid: a,
432
+ onNewTab: e[8] || (e[8] = (s, I) => n.$emit("newTab", s, I)),
433
+ onOnDragEnd: e[9] || (e[9] = (...s) => n.$emit("onDragEnd", ...s)),
434
+ onOpenMenu: e[10] || (e[10] = (s) => n.$emit("openMenu", s))
435
435
  }, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
436
- i.value.children.length === 0 ? (u(), f(n(k), {
436
+ i.value.children.length === 0 ? (u(), f(l(k), {
437
437
  key: 0,
438
438
  class: g(["text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 text-xs", t.parentUids.length ? "pl-9" : ""]),
439
439
  variant: "ghost",
440
- onClick: e[11] || (e[11] = (l) => S(i.value.entity.uid))
440
+ onClick: e[11] || (e[11] = (a) => S(i.value.entity.uid))
441
441
  }, {
442
- default: m(() => [
443
- c(n(b), {
442
+ default: p(() => [
443
+ m(l(b), {
444
444
  icon: "Add",
445
445
  size: "sm"
446
446
  }),
447
- e[19] || (e[19] = s("span", null, "Add Request", -1))
447
+ e[19] || (e[19] = o("span", null, "Add Request", -1))
448
448
  ]),
449
449
  _: 1
450
- }, 8, ["class"])) : p("", !0)
451
- ])) : p("", !0)
450
+ }, 8, ["class"])) : c("", !0)
451
+ ])) : c("", !0)
452
452
  ]),
453
453
  _: 3
454
454
  }, 8, ["id", "ceiling", "floor", "isDraggable", "isDroppable", "parentIds"])
455
- ], 2)) : p("", !0);
455
+ ], 2)) : c("", !0);
456
456
  };
457
457
  }
458
458
  });