@scalar/api-client 2.2.48 → 2.2.50

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 (217) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts +15 -3
  3. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  5. package/dist/components/AddressBar/AddressBar.vue2.js +102 -94
  6. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +2 -0
  7. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  8. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  9. package/dist/components/AddressBar/AddressBarHistory.vue2.js +54 -58
  10. package/dist/components/CodeInput/CodeInput.vue.d.ts +9 -0
  11. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  12. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  13. package/dist/components/CodeInput/CodeInput.vue2.js +95 -93
  14. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  15. package/dist/components/CodeInput/codeVariableWidget.js +1 -3
  16. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  17. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +26 -22
  18. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  19. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +13 -13
  20. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  21. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +12 -12
  22. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
  23. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +54 -49
  24. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
  25. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +9 -9
  26. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  27. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  28. package/dist/components/DataTable/DataTableCell.vue.js +11 -8
  29. package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -0
  30. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  31. package/dist/components/DataTable/DataTableInput.vue.js +4 -4
  32. package/dist/components/DataTable/DataTableInput.vue2.js +36 -30
  33. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  34. package/dist/components/DataTable/DataTableInputSelect.vue.js +15 -15
  35. package/dist/components/Form/Form.vue.d.ts +3 -1
  36. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  37. package/dist/components/Form/Form.vue.js +30 -25
  38. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  39. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +41 -41
  40. package/dist/components/ImportCollection/ImportNowButton.vue.js +24 -24
  41. package/dist/components/ScreenReader.vue.d.ts.map +1 -1
  42. package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
  43. package/dist/components/Server/ServerDropdown.vue.js +13 -13
  44. package/dist/components/Server/ServerDropdownItem.vue.d.ts +1 -1
  45. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  46. package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
  47. package/dist/components/Server/ServerDropdownItem.vue2.js +19 -19
  48. package/dist/layouts/App/create-api-client-app.d.ts +387 -477
  49. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  50. package/dist/layouts/Modal/create-api-client-modal.d.ts +774 -954
  51. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  52. package/dist/layouts/Web/create-api-client-web.d.ts +387 -477
  53. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  54. package/dist/libs/create-client.d.ts +390 -479
  55. package/dist/libs/create-client.d.ts.map +1 -1
  56. package/dist/libs/create-client.js +3 -15
  57. package/dist/libs/env-helpers.d.ts.map +1 -1
  58. package/dist/libs/find-request.d.ts +7 -7
  59. package/dist/libs/find-request.d.ts.map +1 -1
  60. package/dist/libs/hot-keys.d.ts +3 -1
  61. package/dist/libs/hot-keys.d.ts.map +1 -1
  62. package/dist/libs/hot-keys.js +11 -15
  63. package/dist/libs/hot-keys.test.d.ts +2 -0
  64. package/dist/libs/hot-keys.test.d.ts.map +1 -0
  65. package/dist/libs/index.js +27 -26
  66. package/dist/libs/send-request/build-request-security.d.ts +1 -1
  67. package/dist/libs/send-request/build-request-security.js +19 -16
  68. package/dist/libs/send-request/create-request-operation.test.d.ts +10 -10
  69. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  70. package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
  71. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
  72. package/dist/libs/send-request/set-request-cookies.js +37 -34
  73. package/dist/store/active-entities.d.ts +58 -67
  74. package/dist/store/active-entities.d.ts.map +1 -1
  75. package/dist/store/active-entities.js +61 -74
  76. package/dist/store/collections.d.ts +90 -90
  77. package/dist/store/collections.d.ts.map +1 -1
  78. package/dist/store/collections.js +4 -17
  79. package/dist/store/cookies.d.ts +14 -14
  80. package/dist/store/environment.d.ts +19 -18
  81. package/dist/store/environment.d.ts.map +1 -1
  82. package/dist/store/environment.js +2 -8
  83. package/dist/store/import-spec.d.ts +16 -106
  84. package/dist/store/import-spec.d.ts.map +1 -1
  85. package/dist/store/import-spec.js +9 -14
  86. package/dist/store/request-example.d.ts +25 -25
  87. package/dist/store/request-example.d.ts.map +1 -1
  88. package/dist/store/request-example.js +15 -20
  89. package/dist/store/requests.d.ts +84 -84
  90. package/dist/store/requests.d.ts.map +1 -1
  91. package/dist/store/requests.js +17 -40
  92. package/dist/store/router-params.d.ts +13 -11
  93. package/dist/store/router-params.d.ts.map +1 -1
  94. package/dist/store/router-params.js +5 -5
  95. package/dist/store/security-schemes.d.ts +58 -58
  96. package/dist/store/security-schemes.d.ts.map +1 -1
  97. package/dist/store/security-schemes.js +1 -3
  98. package/dist/store/servers.d.ts +17 -17
  99. package/dist/store/servers.d.ts.map +1 -1
  100. package/dist/store/servers.js +2 -9
  101. package/dist/store/store.d.ts +387 -477
  102. package/dist/store/store.d.ts.map +1 -1
  103. package/dist/store/store.js +2 -4
  104. package/dist/store/tags.d.ts +28 -28
  105. package/dist/store/tags.d.ts.map +1 -1
  106. package/dist/store/tags.js +19 -34
  107. package/dist/store/workspace.d.ts +36 -36
  108. package/dist/store/workspace.d.ts.map +1 -1
  109. package/dist/store/workspace.js +1 -5
  110. package/dist/style.css +1 -1
  111. package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
  112. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  113. package/dist/views/Cookies/CookieForm.vue.js +18 -18
  114. package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
  115. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  116. package/dist/views/Cookies/Cookies.vue2.js +24 -24
  117. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  118. package/dist/views/Environment/Environment.vue2.js +140 -132
  119. package/dist/views/Environment/EnvironmentModal.vue.d.ts +2 -2
  120. package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
  121. package/dist/views/Environment/EnvironmentModal.vue.js +15 -15
  122. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  123. package/dist/views/Request/Request.vue.js +2 -2
  124. package/dist/views/Request/Request.vue2.js +160 -141
  125. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +2 -1
  126. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
  127. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +7 -7
  128. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +6 -2
  129. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  130. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +99 -95
  131. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +4 -0
  132. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  133. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  134. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +70 -64
  135. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +4 -0
  136. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  137. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
  138. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +40 -34
  139. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +6 -0
  140. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  141. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +32 -26
  142. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +4 -0
  143. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  144. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
  145. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +93 -85
  146. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +9 -0
  147. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  148. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  149. package/dist/views/Request/RequestSection/RequestBody.vue2.js +214 -244
  150. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +10 -1
  151. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
  152. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  153. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +77 -80
  154. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +7 -0
  155. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  156. package/dist/views/Request/RequestSection/RequestParams.vue.js +89 -96
  157. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +10 -2
  158. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  159. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +59 -66
  160. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +11 -0
  161. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  162. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  163. package/dist/views/Request/RequestSection/RequestSection.vue2.js +176 -155
  164. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +6 -0
  165. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  166. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  167. package/dist/views/Request/RequestSection/RequestTable.vue2.js +97 -100
  168. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  169. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
  170. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +31 -22
  171. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts +2 -2
  172. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +1 -1
  173. package/dist/views/Request/RequestSection/helpers/getting-started.js +11 -13
  174. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  175. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  176. package/dist/views/Request/RequestSidebar.vue2.js +50 -48
  177. package/dist/views/Request/RequestSidebarItem.vue.d.ts +1 -1
  178. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  179. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  180. package/dist/views/Request/RequestSidebarItem.vue2.js +38 -44
  181. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +10 -0
  182. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  183. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  184. package/dist/views/Request/RequestSubpageHeader.vue2.js +77 -69
  185. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +7 -7
  186. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +4 -1
  187. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  188. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  189. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +41 -39
  190. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -0
  191. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  192. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  193. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +56 -52
  194. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  195. package/dist/views/Request/components/WorkspaceDropdown.vue.js +68 -68
  196. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  197. package/dist/views/Request/handle-drag.d.ts +1 -1
  198. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  199. package/dist/views/Request/handle-drag.js +38 -55
  200. package/dist/views/Request/libs/auth.d.ts +2 -2
  201. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  202. package/dist/views/Request/libs/auth.js +28 -29
  203. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  204. package/dist/views/Request/libs/oauth2.js +42 -65
  205. package/dist/views/Request/libs/request.d.ts +5 -0
  206. package/dist/views/Request/libs/request.d.ts.map +1 -1
  207. package/dist/views/Request/libs/request.js +37 -2
  208. package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
  209. package/dist/views/Request/libs/watch-mode.js +10 -34
  210. package/dist/views/Servers/ServerForm.vue.d.ts +1 -8
  211. package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
  212. package/dist/views/Servers/ServerForm.vue.js +21 -22
  213. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  214. package/dist/views/Servers/Servers.vue2.js +73 -81
  215. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  216. package/dist/views/Settings/SettingsGeneral.vue.js +118 -134
  217. package/package.json +14 -14
@@ -1,21 +1,21 @@
1
1
  import { defineComponent as be, useId as ve, reactive as he, ref as Se, watch as K, onMounted as ge, onBeforeUnmount as ke, computed as N, openBlock as r, createElementBlock as g, Fragment as q, withDirectives as L, createVNode as c, unref as o, normalizeClass as p, createSlots as Re, withCtx as m, createElementVNode as n, createBlock as d, createCommentVNode as f, isRef as ye, withKeys as D, withModifiers as b, vShow as U, renderList as H, createTextVNode as O, toDisplayString as we, nextTick as xe } from "vue";
2
- import Ie from "../../assets/rabbit.ascii.js";
3
- import Ce from "../../assets/rabbitjump.ascii.js";
4
- import qe from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
5
- import De from "../../components/HttpMethod/HttpMethod.vue.js";
2
+ import { ScalarIcon as $, ScalarSearchInput as Ie, ScalarSearchResultList as Ce, ScalarSearchResultItem as qe, ScalarButton as De } from "@scalar/components";
3
+ import { LibraryIcon as Oe } from "@scalar/icons";
4
+ import { useToasts as $e } from "@scalar/use-toasts";
5
+ import { useRouter as Me } from "vue-router";
6
+ import Ve from "../../assets/rabbit.ascii.js";
7
+ import Pe from "../../assets/rabbitjump.ascii.js";
8
+ import Te from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
9
+ import Ee from "../../components/HttpMethod/HttpMethod.vue.js";
6
10
  import G from "../../components/ScalarAsciiArt.vue.js";
7
- import { useSearch as Oe } from "../../components/Search/useSearch.js";
8
- import $e from "../../components/Sidebar/SidebarButton.vue.js";
9
- import Me from "../../components/Sidebar/SidebarToggle.vue.js";
11
+ import { useSearch as We } from "../../components/Search/useSearch.js";
12
+ import ze from "../../components/Sidebar/SidebarButton.vue.js";
13
+ import Ae from "../../components/Sidebar/SidebarToggle.vue.js";
10
14
  import { PathId as j } from "../../routes.js";
11
- import { useActiveEntities as Ve } from "../../store/active-entities.js";
12
- import { createInitialRequest as Pe } from "../../store/requests.js";
13
- import Te from "./RequestSidebarItemMenu.vue.js";
14
- import { dragHandlerFactory as Ee } from "./handle-drag.js";
15
- import { ScalarIcon as $, ScalarSearchInput as We, ScalarSearchResultList as ze, ScalarSearchResultItem as Ae, ScalarButton as Be } from "@scalar/components";
16
- import { LibraryIcon as Fe } from "@scalar/icons";
17
- import { useToasts as Ke } from "@scalar/use-toasts";
18
- import { useRouter as Ne } from "vue-router";
15
+ import { useActiveEntities as Be } from "../../store/active-entities.js";
16
+ import { createInitialRequest as Fe } from "../../store/requests.js";
17
+ import { dragHandlerFactory as Ke } from "./handle-drag.js";
18
+ import Ne from "./RequestSidebarItemMenu.vue.js";
19
19
  import { isGettingStarted as Le } from "./RequestSection/helpers/getting-started.js";
20
20
  import Ue from "./RequestSidebarItem.vue.js";
21
21
  import He from "../../components/Sidebar/Sidebar.vue.js";
@@ -23,16 +23,16 @@ import Ge from "./components/WorkspaceDropdown.vue.js";
23
23
  import { useLayout as je } from "../../hooks/useLayout.js";
24
24
  import { useWorkspace as Je } from "../../store/store.js";
25
25
  import { useSidebar as Qe } from "../../hooks/useSidebar.js";
26
- const Xe = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Ye = {
26
+ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye = {
27
27
  key: 1,
28
28
  class: "text-c-3"
29
29
  }, Ze = {
30
- class: "search-button-fade sticky px-3 py-2.5 z-10 pt-0 top-12 focus-within:z-20",
30
+ class: "search-button-fade sticky top-12 z-10 px-3 py-2.5 pt-0 focus-within:z-20",
31
31
  role: "search"
32
32
  }, _e = {
33
33
  key: 1,
34
34
  class: "contents"
35
- }, et = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, tt = { class: "w-[60px] h-[68px] m-auto rabbit-ascii mt-2 relative" }, qt = /* @__PURE__ */ be({
35
+ }, et = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, tt = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, qt = /* @__PURE__ */ be({
36
36
  __name: "RequestSidebar",
37
37
  props: {
38
38
  isSidebarOpen: { type: Boolean }
@@ -44,14 +44,14 @@ const Xe = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Ye
44
44
  activeRequest: Y,
45
45
  activeWorkspaceRequests: P,
46
46
  activeWorkspace: Z
47
- } = Ve(), { findRequestParents: _, events: k, requestMutators: T, requests: y } = V, { handleDragEnd: ee, isDroppable: te } = Ee(
47
+ } = Be(), { findRequestParents: _, events: k, requestMutators: T, requests: y } = V, { handleDragEnd: ee, isDroppable: te } = Ke(
48
48
  Z,
49
49
  V
50
- ), { collapsedSidebarFolders: oe, setCollapsedSidebarFolder: se } = Qe(), { replace: E } = Ne(), ae = () => {
50
+ ), { collapsedSidebarFolders: oe, setCollapsedSidebarFolder: se } = Qe(), { replace: E } = Me(), ae = () => {
51
51
  k.commandPalette.emit({
52
52
  commandName: "Import from OpenAPI/Swagger/Postman"
53
53
  });
54
- }, W = ve(), { toast: re } = Ke(), v = he({ open: !1 }), h = Se(!1);
54
+ }, W = ve(), { toast: re } = $e(), v = he({ open: !1 }), h = Se(!1);
55
55
  K(
56
56
  Y,
57
57
  (s) => {
@@ -71,7 +71,7 @@ const Xe = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Ye
71
71
  searchResultRefs: le,
72
72
  navigateSearchResults: z,
73
73
  selectSearchResult: de
74
- } = Oe(), A = (s) => {
74
+ } = We(), A = (s) => {
75
75
  var e;
76
76
  s && (s.toggleSidebar && M("update:isSidebarOpen", X.isSidebarOpen), s.focusRequestSearch && ((e = I.value) == null || e.focus()));
77
77
  };
@@ -125,7 +125,7 @@ const Xe = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Ye
125
125
  }
126
126
  });
127
127
  } else {
128
- const { request: t } = Pe();
128
+ const { request: t } = Fe();
129
129
  s && (T.add(t, s.uid), E({
130
130
  name: "request",
131
131
  params: {
@@ -138,11 +138,13 @@ const Xe = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Ye
138
138
  var s;
139
139
  (s = I.value) == null || s.focus();
140
140
  }), h.value = !h.value;
141
- }, C = N(() => Le(
142
- u.value,
143
- P.value,
144
- y
145
- ));
141
+ }, C = N(
142
+ () => Le(
143
+ u.value,
144
+ P.value,
145
+ y
146
+ )
147
+ );
146
148
  return (s, e) => (r(), g(q, null, [
147
149
  L(c(o(He), {
148
150
  class: p([s.isSidebarOpen ? "sidebar-active-width" : ""]),
@@ -151,27 +153,27 @@ const Xe = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Ye
151
153
  }, Re({
152
154
  content: m(() => [
153
155
  n("div", Xe, [
154
- c(Me, {
156
+ c(Ae, {
155
157
  class: p(["xl:hidden", [{ "!flex": o(l) === "modal" }]]),
156
158
  modelValue: s.isSidebarOpen,
157
159
  "onUpdate:modelValue": e[0] || (e[0] = (t) => s.$emit("update:isSidebarOpen", t))
158
160
  }, null, 8, ["class", "modelValue"]),
159
161
  o(l) !== "modal" ? (r(), d(o(Ge), { key: 0 })) : f("", !0),
160
162
  o(l) !== "modal" ? (r(), g("span", Ye, " / ")) : f("", !0),
161
- o(l) !== "modal" ? (r(), d(qe, { key: 2 })) : f("", !0),
163
+ o(l) !== "modal" ? (r(), d(Te, { key: 2 })) : f("", !0),
162
164
  n("button", {
163
165
  class: "ml-auto",
164
166
  type: "button",
165
167
  onClick: pe
166
168
  }, [
167
169
  c(o($), {
168
- class: "text-c-3 text-sm hover:bg-b-2 p-1.75 rounded-lg max-w-8 max-h-8",
170
+ class: "text-c-3 hover:bg-b-2 p-1.75 max-h-8 max-w-8 rounded-lg text-sm",
169
171
  icon: "Search"
170
172
  })
171
173
  ])
172
174
  ]),
173
175
  L(n("div", Ze, [
174
- c(o(We), {
176
+ c(o(Ie), {
175
177
  ref_key: "searchInputRef",
176
178
  ref: I,
177
179
  modelValue: o(S),
@@ -203,7 +205,7 @@ const Xe = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Ye
203
205
  onDragover: e[8] || (e[8] = b(() => {
204
206
  }, ["prevent"]))
205
207
  }, [
206
- o(S) ? (r(), d(o(ze), {
208
+ o(S) ? (r(), d(o(Ce), {
207
209
  key: 0,
208
210
  id: o(W),
209
211
  "aria-label": "Search Results",
@@ -211,7 +213,7 @@ const Xe = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Ye
211
213
  noResults: !o(w).length
212
214
  }, {
213
215
  default: m(() => [
214
- (r(!0), g(q, null, H(o(w), (t, a) => (r(), d(o(Ae), {
216
+ (r(!0), g(q, null, H(o(w), (t, a) => (r(), d(o(qe), {
215
217
  id: `#search-input-${t.item.id}`,
216
218
  key: t.refIndex,
217
219
  ref_for: !0,
@@ -224,7 +226,7 @@ const Xe = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Ye
224
226
  }, {
225
227
  addon: m(() => [
226
228
  e[11] || (e[11] = n("span", { class: "sr-only" }, "HTTP Method:", -1)),
227
- c(De, {
229
+ c(Ee, {
228
230
  class: "font-bold",
229
231
  method: t.item.httpVerb ?? "get"
230
232
  }, null, 8, ["method"])
@@ -258,9 +260,9 @@ const Xe = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Ye
258
260
  class: "text-sidebar-c-2 group-hover:hidden",
259
261
  icon: "Scribble",
260
262
  thickness: "2.25"
261
- })) : (r(), d(o(Fe), {
263
+ })) : (r(), d(o(Oe), {
262
264
  key: 1,
263
- class: "min-w-3.5 text-sidebar-c-2 size-3.5 stroke-2 group-hover:hidden",
265
+ class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
264
266
  src: t["x-scalar-icon"] || "interface-content-folder"
265
267
  }, null, 8, ["src"])),
266
268
  n("div", {
@@ -269,7 +271,7 @@ const Xe = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Ye
269
271
  })
270
272
  }, [
271
273
  c(o($), {
272
- class: "text-c-3 hidden text-sm group-hover:block hover:text-c-1",
274
+ class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
273
275
  icon: "ChevronRight",
274
276
  size: "md"
275
277
  })
@@ -291,22 +293,22 @@ const Xe = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Ye
291
293
  n("div", et, [
292
294
  n("div", tt, [
293
295
  c(G, {
294
- art: o(Ie),
295
- class: "font-bold rabbitsit"
296
+ art: o(Ve),
297
+ class: "rabbitsit font-bold"
296
298
  }, null, 8, ["art"]),
297
299
  c(G, {
298
- art: o(Ce),
299
- class: "font-bold absolute top-0 left-0 rabbitjump"
300
+ art: o(Pe),
301
+ class: "rabbitjump absolute left-0 top-0 font-bold"
300
302
  }, null, 8, ["art"])
301
303
  ]),
302
- e[12] || (e[12] = n("div", { class: "text-center text-balance text-sm mb-2 mt-2" }, [
304
+ e[12] || (e[12] = n("div", { class: "mb-2 mt-2 text-balance text-center text-sm" }, [
303
305
  n("b", { class: "font-medium" }, "Let's Get Started"),
304
306
  n("p", { class: "mt-2" }, " Create request, folder, collection or import from OpenAPI/Postman ")
305
307
  ], -1))
306
308
  ]),
307
- o(l) !== "modal" ? (r(), d(o(Be), {
309
+ o(l) !== "modal" ? (r(), d(o(De), {
308
310
  key: 0,
309
- class: p(["mb-1.5 w-full h-fit hidden opacity-0 p-1.5", {
311
+ class: p(["mb-1.5 hidden h-fit w-full p-1.5 opacity-0", {
310
312
  "flex opacity-100": C.value
311
313
  }]),
312
314
  onClick: ae
@@ -316,13 +318,13 @@ const Xe = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Ye
316
318
  ])),
317
319
  _: 1
318
320
  }, 8, ["class"])) : f("", !0),
319
- o(l) !== "modal" ? (r(), d($e, {
321
+ o(l) !== "modal" ? (r(), d(ze, {
320
322
  key: 1,
321
323
  click: o(k).commandPalette.emit,
322
324
  hotkey: "K"
323
325
  }, {
324
326
  title: m(() => e[14] || (e[14] = [
325
- O("Add Item")
327
+ O(" Add Item ")
326
328
  ])),
327
329
  _: 1
328
330
  }, 8, ["click"])) : f("", !0)
@@ -338,7 +340,7 @@ const Xe = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Ye
338
340
  ]), 1032, ["class", "isSidebarOpen"]), [
339
341
  [U, s.isSidebarOpen]
340
342
  ]),
341
- o(l) !== "modal" && v ? (r(), d(Te, {
343
+ o(l) !== "modal" && v ? (r(), d(Ne, {
342
344
  key: 0,
343
345
  menuItem: v,
344
346
  onClearDrafts: ce,
@@ -1,5 +1,5 @@
1
- import type { SidebarMenuItem } from '../../views/Request/types';
2
1
  import { type DraggableProps, type DraggingItem, type HoveredItem } from '@scalar/draggable';
2
+ import type { SidebarMenuItem } from '../../views/Request/types';
3
3
  type __VLS_Props = {
4
4
  /**
5
5
  * Toggle dragging on and off
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AAwhBA,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAOzE,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAQ1B,KAAK,WAAW,GAAG;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AAsRF,iBAAS,cAAc;WA+fT,OAAO,IAA6B;;oBAnwBpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA/DlB,KAte0C;;;;;;;oCAse1C,KAjegB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqyBsC,GAAG,8CAC3C,GAAG,yBAEd,GAAD,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAggBvC;AAmCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AAuhBA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAY1B,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAIzE,KAAK,WAAW,GAAG;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AAoRF,iBAAS,cAAc;WA+fT,OAAO,IAA6B;;oBAjwBpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAhElB,KApe6B;;;;;;;oCAoe7B,KA/dG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAiyBH,GAAG,8CACkB,GAAG,yBAAyB,GAAG,6DAAmC,GACtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkgBA;AAmCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import o from "../../_virtual/_plugin-vue_export-helper.js";
5
- const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-2a9cb6c7"]]);
5
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-682d438e"]]);
6
6
  export {
7
- p as default
7
+ a as default
8
8
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as ae, useCssVars as re, computed as m, ref as ue, resolveComponent as de, openBlock as u, createElementBlock as U, normalizeClass as h, unref as n, createVNode as y, withCtx as c, createBlock as g, withModifiers as q, createElementVNode as a, toDisplayString as S, createCommentVNode as p, createTextVNode as W, renderSlot as fe, Fragment as me, renderList as pe } from "vue";
2
- import { useActiveEntities as ce } from "../../store/active-entities.js";
3
- import { ScalarButton as D, ScalarIcon as x, ScalarSidebarGroupToggle as ge, ScalarTooltip as ve } from "@scalar/components";
4
- import { Draggable as be } from "@scalar/draggable";
1
+ import { defineComponent as re, useCssVars as ae, computed as m, ref as ue, resolveComponent as de, openBlock as u, createElementBlock as U, normalizeClass as h, unref as n, createVNode as y, withCtx as c, createBlock as g, withModifiers as q, createElementVNode as a, toDisplayString as E, createCommentVNode as p, createTextVNode as W, renderSlot as fe, Fragment as me, renderList as pe } from "vue";
2
+ import { ScalarButton as D, ScalarIcon as x, ScalarSidebarGroupToggle as ce, ScalarTooltip as ge } from "@scalar/components";
3
+ import { Draggable as ve } from "@scalar/draggable";
5
4
  import { shouldIgnoreEntity as F } from "@scalar/oas-utils/helpers";
6
- import { useRouter as he, RouterLink as ye } from "vue-router";
5
+ import { useRouter as be, RouterLink as he } from "vue-router";
6
+ import { useActiveEntities as ye } from "../../store/active-entities.js";
7
7
  import { PathId as xe } from "../../routes.js";
8
8
  import ke from "../../components/HttpMethod/HttpMethod.vue.js";
9
9
  import { useSidebar as we } from "../../hooks/useSidebar.js";
10
10
  import { getModifiers as Ue } from "../../libs/hot-keys.js";
11
11
  import { useWorkspace as qe } from "../../store/store.js";
12
12
  import { useLayout as De } from "../../hooks/useLayout.js";
13
- const Te = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { class: "flex flex-row gap-1 items-center" }, Ie = { class: "relative" }, Re = { class: "flex items-start" }, Me = ["aria-expanded"], Ee = { class: "flex h-5 items-center justify-center max-w-[14px]" }, Se = { class: "flex flex-1 flex-row justify-between" }, $e = { class: "break-all line-clamp-1 font-medium text-left w-full" }, ze = { class: "relative flex justify-end h-fit" }, Ne = { class: "grid gap-1.5 pointer-events-none max-w-10 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, Be = { class: "flex items-center text-c-2" }, Oe = { class: "text-pretty break-all" }, Pe = { key: 2 }, Y = "hover:bg-sidebar-active-b indent-padding-left", Xe = /* @__PURE__ */ ae({
13
+ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, Ce = { class: "flex flex-row items-center gap-1" }, Ie = { class: "relative" }, Re = { class: "flex items-start" }, Me = ["aria-expanded"], Se = { class: "flex h-5 max-w-[14px] items-center justify-center" }, Ee = { class: "flex flex-1 flex-row justify-between" }, $e = { class: "line-clamp-1 w-full break-all text-left font-medium" }, ze = { class: "relative flex h-fit justify-end" }, Ne = { class: "w-content bg-b-1 z-100 text-xxs text-c-1 pointer-events-none z-10 grid max-w-10 gap-1.5 rounded p-2 leading-5 shadow-lg" }, Be = { class: "text-c-2 flex items-center" }, Oe = { class: "text-pretty break-all" }, Pe = { key: 2 }, Y = "hover:bg-sidebar-active-b indent-padding-left", Xe = /* @__PURE__ */ re({
14
14
  __name: "RequestSidebarItem",
15
15
  props: {
16
16
  isDraggable: { type: Boolean, default: !1 },
@@ -21,11 +21,11 @@ const Te = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { c
21
21
  },
22
22
  emits: ["onDragEnd", "newTab", "openMenu"],
23
23
  setup(l, { emit: H }) {
24
- re((e) => ({
25
- b5b40d1e: Z.value,
26
- "1efc8aa6": _.value
24
+ ae((e) => ({
25
+ "0ff55690": Z.value,
26
+ ecb155a4: _.value
27
27
  }));
28
- const L = H, { activeCollection: G, activeRequest: $, activeRouterParams: J, activeWorkspace: k } = ce(), {
28
+ const L = H, { activeCollection: G, activeRequest: $, activeRouterParams: J, activeWorkspace: k } = ye(), {
29
29
  collections: T,
30
30
  tags: z,
31
31
  requests: C,
@@ -35,7 +35,7 @@ const Te = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { c
35
35
  requestMutators: B,
36
36
  requestExampleMutators: O,
37
37
  events: K
38
- } = qe(), Q = he(), { collapsedSidebarFolders: M, toggleSidebarFolder: X } = we(), { layout: f } = De(), i = m(() => {
38
+ } = qe(), Q = be(), { collapsedSidebarFolders: M, toggleSidebarFolder: X } = we(), { layout: f } = De(), i = m(() => {
39
39
  var o, d, v, w;
40
40
  const e = T[l.uid], t = z[l.uid], s = C[l.uid], r = I[l.uid];
41
41
  return e ? {
@@ -60,9 +60,7 @@ const Te = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { c
60
60
  children: t.children,
61
61
  warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
62
62
  edit: (b) => N.edit(t.uid, "name", b),
63
- delete: () => {
64
- l.parentUids[0] && N.delete(t, l.parentUids[0]);
65
- }
63
+ delete: () => l.parentUids[0] && N.delete(t, l.parentUids[0])
66
64
  } : s ? {
67
65
  title: s.summary ?? s.path,
68
66
  link: {
@@ -78,10 +76,8 @@ const Te = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { c
78
76
  warning: "This cannot be undone. You’re about to delete the request.",
79
77
  children: s.examples.slice(1),
80
78
  edit: (b) => B.edit(s.uid, "summary", b),
81
- delete: () => {
82
- l.parentUids[0] && B.delete(s, l.parentUids[0]);
83
- }
84
- } : r ? {
79
+ delete: () => l.parentUids[0] && B.delete(s, l.parentUids[0])
80
+ } : r != null && r.requestUid ? {
85
81
  title: r.name,
86
82
  link: {
87
83
  name: "request.examples",
@@ -106,10 +102,8 @@ const Te = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { c
106
102
  },
107
103
  resourceTitle: "Unknown",
108
104
  children: [],
109
- edit: () => {
110
- },
111
- delete: () => {
112
- }
105
+ edit: () => null,
106
+ delete: () => null
113
107
  };
114
108
  }), P = m(
115
109
  () => i.value.entity.type === "collection" && i.value.title === "Drafts"
@@ -123,10 +117,10 @@ const Te = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { c
123
117
  var e;
124
118
  return J.value[xe.Request] === "default" && ((e = $.value) == null ? void 0 : e.uid) === l.uid;
125
119
  }
126
- ), E = ue(null), j = m(() => {
120
+ ), S = ue(null), j = m(() => {
127
121
  let e = 0.5, t = 0.5;
128
- if (!E.value) return { ceiling: e, floor: t };
129
- const { draggingItem: s } = E.value;
122
+ if (!S.value) return { ceiling: e, floor: t };
123
+ const { draggingItem: s } = S.value;
130
124
  return !T[s == null ? void 0 : s.id] && i.value.entity.type === "collection" ? (e = 1, t = 0) : i.value.entity.type === "tag" && (e = 0.8, t = 0.2), { ceiling: e, floor: t };
131
125
  }), ie = (e, t) => !(f === "modal" || I[t.id] || T[e.id]), ne = (e, t) => {
132
126
  e && (Ue(["default"]).some((o) => e[o]) ? L("newTab", t.title || "", t.entity.uid) : t.link && Q.push(t.link));
@@ -154,15 +148,15 @@ const Te = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { c
154
148
  return se.value ? (u(), U("li", {
155
149
  key: 0,
156
150
  class: h(["relative flex flex-row", [
157
- n(f) === "modal" && e.parentUids.length > 1 || n(f) !== "modal" && e.parentUids.length ? "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset" : ""
151
+ n(f) === "modal" && e.parentUids.length > 1 || n(f) !== "modal" && e.parentUids.length ? "before:bg-border before:z-1 indent-border-line-offset mb-[.5px] before:pointer-events-none before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full" : ""
158
152
  ]])
159
153
  }, [
160
- y(n(be), {
154
+ y(n(ve), {
161
155
  id: i.value.entity.uid,
162
156
  ref_key: "draggableRef",
163
- ref: E,
157
+ ref: S,
164
158
  ceiling: j.value.ceiling,
165
- class: "flex flex-1 flex-col gap-1/2 text-sm",
159
+ class: "gap-1/2 flex flex-1 flex-col text-sm",
166
160
  floor: j.value.floor,
167
161
  isDraggable: e.isDraggable,
168
162
  isDroppable: e.isDroppable,
@@ -172,7 +166,7 @@ const Te = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { c
172
166
  default: c(() => {
173
167
  var r;
174
168
  return [
175
- i.value.link ? (u(), g(n(ye), {
169
+ i.value.link ? (u(), g(n(he), {
176
170
  key: 0,
177
171
  class: "group no-underline",
178
172
  to: i.value.link,
@@ -185,17 +179,17 @@ const Te = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { c
185
179
  var d, v;
186
180
  return [
187
181
  a("div", {
188
- class: h(["relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-0.5 py-1.5 pr-2 rounded w-full", [
182
+ class: h(["relative flex min-h-8 w-full cursor-pointer flex-row items-start justify-between gap-0.5 rounded py-1.5 pr-2", [
189
183
  Y,
190
184
  o || te.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
191
185
  ]])
192
186
  }, [
193
- a("span", Te, S(i.value.title), 1),
187
+ a("span", Te, E(i.value.title), 1),
194
188
  a("div", Ce, [
195
189
  a("div", Ie, [
196
190
  n(f) !== "modal" ? (u(), g(n(D), {
197
191
  key: 0,
198
- class: h(["hidden px-0.5 py-0 hover:bg-b-3 opacity-0 group-hover:opacity-100 group-hover:flex group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 aspect-square h-fit", {
192
+ class: h(["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", {
199
193
  flex: ((v = (d = e.menuItem) == null ? void 0 : d.item) == null ? void 0 : v.entity.uid) === i.value.entity.uid && e.menuItem.open
200
194
  }]),
201
195
  size: "sm",
@@ -241,27 +235,27 @@ const Te = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { c
241
235
  type: "button",
242
236
  onClick: t[4] || (t[4] = (o) => n(X)(i.value.entity.uid))
243
237
  }, [
244
- a("span", Ee, [
238
+ a("span", Se, [
245
239
  fe(e.$slots, "leftIcon", {}, () => [
246
- y(n(ge), {
247
- class: "text-c-3 shrink-0 hover:text-c-1",
240
+ y(n(ce), {
241
+ class: "text-c-3 hover:text-c-1 shrink-0",
248
242
  open: !!n(M)[i.value.entity.uid]
249
243
  }, null, 8, ["open"])
250
244
  ], !0),
251
245
  t[12] || (t[12] = W("   "))
252
246
  ]),
253
- a("div", Se, [
254
- a("span", $e, S(i.value.title), 1),
247
+ a("div", Ee, [
248
+ a("span", $e, E(i.value.title), 1),
255
249
  a("div", ze, [
256
250
  a("div", {
257
- class: h(["items-center opacity-0 gap-px group-hover:opacity-100 group-hover:flex group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
251
+ class: h(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
258
252
  flex: e.menuItem.open,
259
253
  hidden: !e.menuItem.open || ((r = e.menuItem.item) == null ? void 0 : r.entity.uid) !== i.value.entity.uid
260
254
  }])
261
255
  }, [
262
256
  n(f) !== "modal" && !P.value || P.value && oe.value ? (u(), g(n(D), {
263
257
  key: 0,
264
- class: "px-0.5 py-0 hover:bg-b-3 hover:text-c-1 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 aspect-square h-fit",
258
+ 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",
265
259
  size: "sm",
266
260
  variant: "ghost",
267
261
  onClick: t[2] || (t[2] = q(
@@ -284,7 +278,7 @@ const Te = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { c
284
278
  })) : p("", !0),
285
279
  n(f) !== "modal" ? (u(), g(n(D), {
286
280
  key: 1,
287
- class: "px-0.5 py-0 hover:bg-b-3 hover:text-c-1 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 aspect-square h-fit",
281
+ 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",
288
282
  size: "sm",
289
283
  variant: "ghost",
290
284
  onClick: t[3] || (t[3] = q((o) => A(), ["stop", "prevent"]))
@@ -299,7 +293,7 @@ const Te = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { c
299
293
  _: 1
300
294
  })) : p("", !0)
301
295
  ], 2),
302
- i.value.watchMode ? (u(), g(n(ve), {
296
+ i.value.watchMode ? (u(), g(n(ge), {
303
297
  key: 0,
304
298
  side: "right",
305
299
  sideOffset: 12
@@ -315,7 +309,7 @@ const Te = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { c
315
309
  content: c(() => [
316
310
  a("div", Ne, [
317
311
  a("div", Be, [
318
- a("p", Oe, " Watching: " + S(i.value.documentUrl), 1)
312
+ a("p", Oe, " Watching: " + E(i.value.documentUrl), 1)
319
313
  ])
320
314
  ])
321
315
  ]),
@@ -339,7 +333,7 @@ const Te = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ce = { c
339
333
  }, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
340
334
  i.value.children.length === 0 ? (u(), g(n(D), {
341
335
  key: 0,
342
- class: h(["flex gap-1.5 h-8 text-c-1 py-0 justify-start text-xs w-full hover:bg-b-2", e.parentUids.length ? "pl-9" : ""]),
336
+ class: h(["text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 text-xs", e.parentUids.length ? "pl-9" : ""]),
343
337
  variant: "ghost",
344
338
  onClick: t[8] || (t[8] = (o) => A())
345
339
  }, {
@@ -1,4 +1,14 @@
1
+ import type { EnvVariable } from '../../store/active-entities';
2
+ import type { Environment } from '@scalar/oas-utils/entities/environment';
3
+ import type { Collection, Operation, Server } from '@scalar/oas-utils/entities/spec';
4
+ import type { Workspace } from '@scalar/oas-utils/entities/workspace';
1
5
  type __VLS_Props = {
6
+ collection: Collection;
7
+ operation: Operation;
8
+ server: Server | undefined;
9
+ environment: Environment;
10
+ envVariables: EnvVariable[];
11
+ workspace: Workspace;
2
12
  modelValue: boolean;
3
13
  };
4
14
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSubpageHeader.vue"],"names":[],"mappings":"AA+GA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;;;;;AA+OF,wBAQG"}
1
+ {"version":3,"file":"RequestSubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSubpageHeader.vue"],"names":[],"mappings":"AAiIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;;;;;AAkPF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import e from "./RequestSubpageHeader.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-82582505"]]);
4
+ const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-cac03082"]]);
5
5
  export {
6
6
  p as default
7
7
  };