@scalar/api-client 2.2.35 → 2.2.38

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 (164) hide show
  1. package/CHANGELOG.md +61 -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 +107 -116
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +2 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  7. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  8. package/dist/components/AddressBar/AddressBarHistory.vue2.js +96 -76
  9. package/dist/components/AddressBar/AddressBarServer.vue.d.ts +5 -1
  10. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  11. package/dist/components/AddressBar/AddressBarServer.vue.js +92 -86
  12. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +7 -10
  13. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
  14. package/dist/components/AddressBar/AddressBarServerItem.vue.js +5 -52
  15. package/dist/components/AddressBar/AddressBarServerItem.vue2.js +75 -2
  16. package/dist/components/CodeInput/CodeInput.vue.d.ts +5 -0
  17. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  18. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  19. package/dist/components/CodeInput/CodeInput.vue2.js +126 -112
  20. package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -4
  21. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  22. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +1 -0
  23. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
  24. package/dist/components/CommandPalette/CommandActionInput.vue.js +21 -18
  25. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  26. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  27. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +2 -2
  28. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  29. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  30. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +1 -0
  31. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  32. package/dist/components/DataTable/DataTableInputSelect.vue.js +86 -54
  33. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  34. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +22 -21
  35. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  36. package/dist/components/Form/Form.vue.js +3 -3
  37. package/dist/components/Server/ServerVariablesForm.vue.d.ts +14 -0
  38. package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -0
  39. package/dist/components/Server/ServerVariablesForm.vue.js +47 -0
  40. package/dist/components/Server/ServerVariablesForm.vue2.js +4 -0
  41. package/dist/components/Server/ServerVariablesSelect.vue.d.ts +12 -0
  42. package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -0
  43. package/dist/components/Server/ServerVariablesSelect.vue.js +54 -0
  44. package/dist/components/Server/ServerVariablesSelect.vue2.js +4 -0
  45. package/dist/components/Server/ServerVariablesTextbox.vue.d.ts +11 -0
  46. package/dist/components/Server/ServerVariablesTextbox.vue.d.ts.map +1 -0
  47. package/dist/components/Server/ServerVariablesTextbox.vue.js +29 -0
  48. package/dist/components/Server/ServerVariablesTextbox.vue2.js +4 -0
  49. package/dist/components/Server/types.d.ts +9 -0
  50. package/dist/components/Server/types.d.ts.map +1 -0
  51. package/dist/components/SideNav/SideHelp.vue.js +16 -16
  52. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  53. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  54. package/dist/components/Sidebar/Sidebar.vue2.js +11 -10
  55. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  56. package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
  57. package/dist/components/Sidebar/SidebarListElement.vue2.js +10 -9
  58. package/dist/components/TopNav/TopNav.vue.js +27 -27
  59. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +1 -1
  60. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  61. package/dist/layouts/App/create-api-client-app.d.ts +99 -84
  62. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  63. package/dist/layouts/Modal/create-api-client-modal.d.ts +198 -168
  64. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  65. package/dist/layouts/Web/create-api-client-web.d.ts +99 -84
  66. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  67. package/dist/libs/create-client.d.ts +110 -90
  68. package/dist/libs/create-client.d.ts.map +1 -1
  69. package/dist/libs/create-client.js +86 -81
  70. package/dist/libs/find-request.d.ts.map +1 -1
  71. package/dist/libs/importers/curl.js +4 -4
  72. package/dist/libs/index.js +18 -19
  73. package/dist/libs/send-request/index.js +3 -4
  74. package/dist/libs/send-request/send-request.d.ts +0 -14
  75. package/dist/libs/send-request/send-request.d.ts.map +1 -1
  76. package/dist/libs/send-request/send-request.js +120 -142
  77. package/dist/libs/send-request/set-request-cookies.d.ts +27 -0
  78. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -0
  79. package/dist/libs/send-request/set-request-cookies.js +54 -0
  80. package/dist/store/active-entities.d.ts +13 -4
  81. package/dist/store/active-entities.d.ts.map +1 -1
  82. package/dist/store/active-entities.js +15 -12
  83. package/dist/store/collections.d.ts.map +1 -1
  84. package/dist/store/cookies.d.ts +4 -58
  85. package/dist/store/cookies.d.ts.map +1 -1
  86. package/dist/store/cookies.js +5 -17
  87. package/dist/store/import-spec.d.ts.map +1 -1
  88. package/dist/store/request-example.d.ts +52 -2
  89. package/dist/store/request-example.d.ts.map +1 -1
  90. package/dist/store/requests.d.ts +2 -2
  91. package/dist/store/requests.d.ts.map +1 -1
  92. package/dist/store/servers.d.ts +40 -20
  93. package/dist/store/servers.d.ts.map +1 -1
  94. package/dist/store/store.d.ts +99 -86
  95. package/dist/store/store.d.ts.map +1 -1
  96. package/dist/store/store.js +51 -53
  97. package/dist/style.css +1 -1
  98. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  99. package/dist/views/Cookies/CookieForm.vue.js +24 -37
  100. package/dist/views/Cookies/CookieModal.vue.d.ts +21 -0
  101. package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -0
  102. package/dist/views/Cookies/CookieModal.vue.js +7 -0
  103. package/dist/views/Cookies/CookieModal.vue2.js +88 -0
  104. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  105. package/dist/views/Cookies/Cookies.vue2.js +98 -119
  106. package/dist/views/Environment/Environment.vue2.js +1 -1
  107. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  108. package/dist/views/Request/Request.vue.js +2 -2
  109. package/dist/views/Request/Request.vue2.js +88 -89
  110. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  111. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  112. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +87 -88
  113. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +2 -1
  114. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  115. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +3 -3
  116. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +16 -17
  117. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +2 -2
  118. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +1 -1
  119. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  120. package/dist/views/Request/RequestSection/RequestBody.vue2.js +34 -34
  121. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +7 -0
  122. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  123. package/dist/views/Request/RequestSection/RequestParams.vue.js +79 -66
  124. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  125. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +57 -74
  126. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  127. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  128. package/dist/views/Request/RequestSection/RequestSection.vue2.js +91 -64
  129. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +9 -2
  130. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  131. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  132. package/dist/views/Request/RequestSection/RequestTable.vue2.js +168 -129
  133. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  134. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +5 -64
  135. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +46 -2
  136. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  137. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  138. package/dist/views/Request/RequestSidebar.vue2.js +143 -143
  139. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  140. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  141. package/dist/views/Request/RequestSidebarItem.vue2.js +71 -71
  142. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  143. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  144. package/dist/views/Request/RequestSubpageHeader.vue2.js +37 -37
  145. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +19 -17
  146. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  147. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
  148. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +27 -27
  149. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +31 -31
  150. package/dist/views/Request/handle-drag.d.ts +1 -1
  151. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  152. package/dist/views/Request/handle-drag.js +27 -26
  153. package/dist/views/Request/hooks/useOpenApiWatcher.js +1 -1
  154. package/dist/views/Request/libs/request.d.ts +12 -0
  155. package/dist/views/Request/libs/request.d.ts.map +1 -0
  156. package/dist/views/Request/libs/request.js +4 -0
  157. package/dist/views/Request/libs/{live-sync.d.ts → watch-mode.d.ts} +1 -1
  158. package/dist/views/Request/libs/watch-mode.d.ts.map +1 -0
  159. package/dist/views/Request/libs/{live-sync.js → watch-mode.js} +6 -6
  160. package/dist/views/Servers/Servers.vue2.js +29 -29
  161. package/package.json +10 -12
  162. package/dist/views/Cookies/CookieRaw.vue.js +0 -28
  163. package/dist/views/Cookies/CookieRaw.vue2.js +0 -4
  164. package/dist/views/Request/libs/live-sync.d.ts.map +0 -1
@@ -1,60 +1,60 @@
1
- import { defineComponent as me, useId as fe, reactive as be, ref as ve, watch as K, onMounted as he, onBeforeUnmount as Se, computed as ge, openBlock as r, createElementBlock as k, Fragment as O, withDirectives as N, createVNode as m, unref as t, normalizeClass as f, createSlots as ke, withCtx as c, createElementVNode as n, createBlock as d, createCommentVNode as b, isRef as Re, withKeys as $, withModifiers as v, vShow as L, renderList as U, createTextVNode as D, toDisplayString as ye, nextTick as we } from "vue";
2
- import xe from "../../assets/rabbit.ascii.js";
3
- import Ie from "../../assets/rabbitjump.ascii.js";
4
- import Ce from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
5
- import Oe from "../../components/HttpMethod/HttpMethod.vue.js";
1
+ import { defineComponent as me, useId as pe, reactive as fe, ref as be, watch as K, onMounted as ve, onBeforeUnmount as he, computed as Se, openBlock as r, createElementBlock as k, Fragment as $, withDirectives as N, createVNode as p, unref as t, normalizeClass as f, createSlots as ge, withCtx as c, createElementVNode as n, createBlock as u, createCommentVNode as b, isRef as ke, withKeys as D, withModifiers as v, vShow as L, renderList as U, createTextVNode as O, toDisplayString as Re, nextTick as ye } from "vue";
2
+ import we from "../../assets/rabbit.ascii.js";
3
+ import xe from "../../assets/rabbitjump.ascii.js";
4
+ import Ie from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
5
+ import Ce from "../../components/HttpMethod/HttpMethod.vue.js";
6
6
  import H from "../../components/ScalarAsciiArt.vue.js";
7
7
  import { useSearch as $e } from "../../components/Search/useSearch.js";
8
8
  import De from "../../components/Sidebar/SidebarButton.vue.js";
9
- import qe from "../../components/Sidebar/SidebarToggle.vue.js";
10
- import { useActiveEntities as Me } from "../../store/active-entities.js";
11
- import { createInitialRequest as Ve } from "../../store/requests.js";
12
- import Te from "./RequestSidebarItemMenu.vue.js";
13
- import { dragHandlerFactory as Pe } from "./handle-drag.js";
14
- import { ScalarIcon as q, ScalarSearchInput as Ee, ScalarSearchResultList as We, ScalarSearchResultItem as ze, ScalarButton as Ae } from "@scalar/components";
15
- import { LibraryIcon as Be } from "@scalar/icons";
16
- import { useToasts as Fe } from "@scalar/use-toasts";
17
- import { useRouter as Ke } from "vue-router";
18
- import Ne from "./RequestSidebarItem.vue.js";
19
- import Le from "../../components/Sidebar/Sidebar.vue.js";
20
- import Ue from "./components/WorkspaceDropdown.vue.js";
21
- import { useLayout as He } from "../../hooks/useLayout.js";
22
- import { useWorkspace as je } from "../../store/store.js";
23
- import { useSidebar as Ge } from "../../hooks/useSidebar.js";
24
- const Je = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Qe = {
9
+ import Oe from "../../components/Sidebar/SidebarToggle.vue.js";
10
+ import { useActiveEntities as qe } from "../../store/active-entities.js";
11
+ import { createInitialRequest as Me } from "../../store/requests.js";
12
+ import Ve from "./RequestSidebarItemMenu.vue.js";
13
+ import { dragHandlerFactory as Te } from "./handle-drag.js";
14
+ import { ScalarIcon as q, ScalarSearchInput as Pe, ScalarSearchResultList as Ee, ScalarSearchResultItem as We, ScalarButton as ze } from "@scalar/components";
15
+ import { LibraryIcon as Ae } from "@scalar/icons";
16
+ import { useToasts as Be } from "@scalar/use-toasts";
17
+ import { useRouter as Fe } from "vue-router";
18
+ import Ke from "./RequestSidebarItem.vue.js";
19
+ import Ne from "../../components/Sidebar/Sidebar.vue.js";
20
+ import Le from "./components/WorkspaceDropdown.vue.js";
21
+ import { useLayout as Ue } from "../../hooks/useLayout.js";
22
+ import { useWorkspace as He } from "../../store/store.js";
23
+ import { useSidebar as je } from "../../hooks/useSidebar.js";
24
+ const Ge = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Je = {
25
25
  key: 1,
26
26
  class: "text-c-3"
27
- }, Xe = {
27
+ }, Qe = {
28
28
  class: "search-button-fade sticky px-3 py-2.5 z-10 pt-0 top-12 focus-within:z-20",
29
29
  role: "search"
30
- }, Ye = {
30
+ }, Xe = {
31
31
  key: 1,
32
32
  class: "contents"
33
- }, Ze = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, _e = { class: "w-[60px] h-[68px] m-auto rabbit-ascii mt-2 relative" }, wt = /* @__PURE__ */ me({
33
+ }, Ye = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, Ze = { class: "w-[60px] h-[68px] m-auto rabbit-ascii mt-2 relative" }, yt = /* @__PURE__ */ me({
34
34
  __name: "RequestSidebar",
35
35
  props: {
36
36
  isSidebarOpen: { type: Boolean }
37
37
  },
38
38
  emits: ["update:modelValue", "update:isSidebarOpen", "newTab", "clearDrafts"],
39
39
  setup(j, { emit: G }) {
40
- const J = j, M = G, { layout: Q } = He(), V = je(), {
41
- activeWorkspaceCollections: p,
42
- activeRequest: X,
40
+ const J = j, M = G, { layout: l } = Ue(), V = He(), {
41
+ activeWorkspaceCollections: m,
42
+ activeRequest: Q,
43
43
  activeWorkspaceRequests: y,
44
44
  activeWorkspace: w
45
- } = Me(), { findRequestParents: Y, isReadOnly: l, events: R, requestMutators: T, requests: P } = V, { handleDragEnd: Z, isDroppable: _ } = Pe(
45
+ } = qe(), { findRequestParents: X, events: R, requestMutators: T, requests: P } = V, { handleDragEnd: Y, isDroppable: Z } = Te(
46
46
  w,
47
47
  V
48
- ), { collapsedSidebarFolders: ee, setCollapsedSidebarFolder: te } = Ge(), { replace: E } = Ke(), se = () => {
48
+ ), { collapsedSidebarFolders: _, setCollapsedSidebarFolder: ee } = je(), { replace: E } = Fe(), te = () => {
49
49
  R.commandPalette.emit({
50
50
  commandName: "Import from OpenAPI/Swagger/Postman"
51
51
  });
52
- }, W = fe(), { toast: oe } = Fe(), h = be({ open: !1 }), S = ve(!1);
52
+ }, W = pe(), { toast: oe } = Be(), h = fe({ open: !1 }), S = be(!1);
53
53
  K(
54
- X,
55
- (s) => {
56
- s && Y(s).forEach(
57
- (e) => te(e, !0)
54
+ Q,
55
+ (o) => {
56
+ o && X(o).forEach(
57
+ (e) => ee(e, !0)
58
58
  );
59
59
  },
60
60
  { immediate: !0 }
@@ -63,114 +63,114 @@ const Je = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Qe
63
63
  searchText: g,
64
64
  searchResultsWithPlaceholderResults: x,
65
65
  selectedSearchResult: I,
66
- onSearchResultClick: ae,
67
- fuseSearch: re,
66
+ onSearchResultClick: se,
67
+ fuseSearch: ae,
68
68
  searchInputRef: C,
69
- searchResultRefs: ie,
69
+ searchResultRefs: re,
70
70
  navigateSearchResults: z,
71
- selectSearchResult: ne
72
- } = $e(), A = (s) => {
71
+ selectSearchResult: ie
72
+ } = $e(), A = (o) => {
73
73
  var e;
74
- s && (s.toggleSidebar && M("update:isSidebarOpen", J.isSidebarOpen), s.focusRequestSearch && ((e = C.value) == null || e.focus()));
74
+ o && (o.toggleSidebar && M("update:isSidebarOpen", J.isSidebarOpen), o.focusRequestSearch && ((e = C.value) == null || e.focus()));
75
75
  };
76
- he(() => R.hotKeys.on(A)), Se(() => {
76
+ ve(() => R.hotKeys.on(A)), he(() => {
77
77
  R.hotKeys.off(A);
78
78
  });
79
- const le = (s) => {
80
- if (s != null && s.documentUrl) {
81
- s.watchMode = !s.watchMode;
82
- const e = p.value.find(
83
- (o) => o.uid === s.entity.uid
79
+ const ne = (o) => {
80
+ if (o != null && o.documentUrl) {
81
+ o.watchMode = !o.watchMode;
82
+ const e = m.value.find(
83
+ (s) => s.uid === o.entity.uid
84
84
  );
85
- e && (e.watchMode = s.watchMode);
85
+ e && (e.watchMode = o.watchMode);
86
86
  }
87
87
  };
88
88
  K(
89
- () => p.value.map(
90
- (s) => s.watchMode
89
+ () => m.value.map(
90
+ (o) => o.watchMode
91
91
  ),
92
- (s, e) => {
93
- s.forEach((o, i) => {
94
- var a, u, B;
95
- if (!l && o !== e[i] && ((u = (a = p.value[i]) == null ? void 0 : a.info) == null ? void 0 : u.title) !== "Drafts" && p.value[i]) {
96
- const F = p.value[i];
92
+ (o, e) => {
93
+ o.forEach((s, i) => {
94
+ var a, d, B;
95
+ if (l !== "modal" && s !== e[i] && ((d = (a = m.value[i]) == null ? void 0 : a.info) == null ? void 0 : d.title) !== "Drafts" && m.value[i]) {
96
+ const F = m.value[i];
97
97
  if (!F) return;
98
- const pe = `${(B = F.info) == null ? void 0 : B.title}: Watch Mode ${o ? "enabled" : "disabled"}`;
99
- oe(pe, "info");
98
+ const ce = `${(B = F.info) == null ? void 0 : B.title}: Watch Mode ${s ? "enabled" : "disabled"}`;
99
+ oe(ce, "info");
100
100
  }
101
101
  });
102
102
  }
103
103
  );
104
- const ue = ge(() => {
104
+ const le = Se(() => {
105
105
  var e;
106
- const s = x.value[I.value];
107
- return (e = s == null ? void 0 : s.item) != null && e.id ? `#search-input-${s.item.id}` : void 0;
106
+ const o = x.value[I.value];
107
+ return (e = o == null ? void 0 : o.item) != null && e.id ? `#search-input-${o.item.id}` : void 0;
108
108
  }), de = () => {
109
- var o, i;
110
- const s = p.value.find(
109
+ var s, i;
110
+ const o = m.value.find(
111
111
  (a) => {
112
- var u;
113
- return ((u = a.info) == null ? void 0 : u.title) === "Drafts";
112
+ var d;
113
+ return ((d = a.info) == null ? void 0 : d.title) === "Drafts";
114
114
  }
115
115
  );
116
- if (s && s.requests.forEach((a) => {
117
- P[a] && T.delete(P[a], s.uid);
116
+ if (o && o.requests.forEach((a) => {
117
+ P[a] && T.delete(P[a], o.uid);
118
118
  }), y.value.length) {
119
- const a = p.value[0], u = a == null ? void 0 : a.requests[0];
120
- u && E(
121
- `/workspace/${(i = w.value) == null ? void 0 : i.uid}/request/${u}`
119
+ const a = m.value[0], d = a == null ? void 0 : a.requests[0];
120
+ d && E(
121
+ `/workspace/${(i = w.value) == null ? void 0 : i.uid}/request/${d}`
122
122
  );
123
123
  } else {
124
- const { request: a } = Ve();
125
- s && (T.add(a, s.uid), E(`/workspace/${(o = w.value) == null ? void 0 : o.uid}/request/${a.uid}`));
124
+ const { request: a } = Me();
125
+ o && (T.add(a, o.uid), E(`/workspace/${(s = w.value) == null ? void 0 : s.uid}/request/${a.uid}`));
126
126
  }
127
- }, ce = () => {
128
- S.value || (g.value = ""), S.value && we(() => {
129
- var s;
130
- (s = C.value) == null || s.focus();
127
+ }, ue = () => {
128
+ S.value || (g.value = ""), S.value && ye(() => {
129
+ var o;
130
+ (o = C.value) == null || o.focus();
131
131
  }), S.value = !S.value;
132
132
  };
133
- return (s, e) => (r(), k(O, null, [
134
- N(m(t(Le), {
135
- class: f([s.isSidebarOpen ? "sidebar-active-width" : ""]),
136
- isSidebarOpen: s.isSidebarOpen,
137
- "onUpdate:isSidebarOpen": e[9] || (e[9] = (o) => s.$emit("update:isSidebarOpen", o))
138
- }, ke({
133
+ return (o, e) => (r(), k($, null, [
134
+ N(p(t(Ne), {
135
+ class: f([o.isSidebarOpen ? "sidebar-active-width" : ""]),
136
+ isSidebarOpen: o.isSidebarOpen,
137
+ "onUpdate:isSidebarOpen": e[9] || (e[9] = (s) => o.$emit("update:isSidebarOpen", s))
138
+ }, ge({
139
139
  content: c(() => [
140
- n("div", Je, [
141
- m(qe, {
142
- class: f(["xl:hidden", [{ "!flex": t(Q) === "modal" }]]),
143
- modelValue: s.isSidebarOpen,
144
- "onUpdate:modelValue": e[0] || (e[0] = (o) => s.$emit("update:isSidebarOpen", o))
140
+ n("div", Ge, [
141
+ p(Oe, {
142
+ class: f(["xl:hidden", [{ "!flex": t(l) === "modal" }]]),
143
+ modelValue: o.isSidebarOpen,
144
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => o.$emit("update:isSidebarOpen", s))
145
145
  }, null, 8, ["class", "modelValue"]),
146
- t(l) ? b("", !0) : (r(), d(t(Ue), { key: 0 })),
147
- t(l) ? b("", !0) : (r(), k("span", Qe, " / ")),
148
- t(l) ? b("", !0) : (r(), d(Ce, { key: 2 })),
146
+ t(l) !== "modal" ? (r(), u(t(Le), { key: 0 })) : b("", !0),
147
+ t(l) !== "modal" ? (r(), k("span", Je, " / ")) : b("", !0),
148
+ t(l) !== "modal" ? (r(), u(Ie, { key: 2 })) : b("", !0),
149
149
  n("button", {
150
150
  class: "ml-auto",
151
151
  type: "button",
152
- onClick: ce
152
+ onClick: ue
153
153
  }, [
154
- m(t(q), {
154
+ p(t(q), {
155
155
  class: "text-c-3 text-sm hover:bg-b-2 p-1.75 rounded-lg max-w-8 max-h-8",
156
156
  icon: "Search"
157
157
  })
158
158
  ])
159
159
  ]),
160
- N(n("div", Xe, [
161
- m(t(Ee), {
160
+ N(n("div", Qe, [
161
+ p(t(Pe), {
162
162
  ref_key: "searchInputRef",
163
163
  ref: C,
164
164
  modelValue: t(g),
165
- "onUpdate:modelValue": e[1] || (e[1] = (o) => Re(g) ? g.value = o : null),
166
- "aria-activedescendant": ue.value,
165
+ "onUpdate:modelValue": e[1] || (e[1] = (s) => ke(g) ? g.value = s : null),
166
+ "aria-activedescendant": le.value,
167
167
  "aria-controls": t(W),
168
168
  sidebar: "",
169
- onInput: t(re),
169
+ onInput: t(ae),
170
170
  onKeydown: [
171
- e[2] || (e[2] = $(v((o) => t(z)("down"), ["stop"]), ["down"])),
172
- e[3] || (e[3] = $(v((o) => t(ne)(), ["stop"]), ["enter"])),
173
- e[4] || (e[4] = $(v((o) => t(z)("up"), ["stop"]), ["up"]))
171
+ e[2] || (e[2] = D(v((s) => t(z)("down"), ["stop"]), ["down"])),
172
+ e[3] || (e[3] = D(v((s) => t(ie)(), ["stop"]), ["enter"])),
173
+ e[4] || (e[4] = D(v((s) => t(z)("up"), ["stop"]), ["up"]))
174
174
  ]
175
175
  }, null, 8, ["modelValue", "aria-activedescendant", "aria-controls", "onInput"])
176
176
  ], 512), [
@@ -178,14 +178,14 @@ const Je = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Qe
178
178
  ]),
179
179
  n("div", {
180
180
  class: f(["gap-1/2 flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
181
- "pb-14": !t(l)
181
+ "pb-14": t(l) !== "modal"
182
182
  }]),
183
183
  onDragenter: e[7] || (e[7] = v(() => {
184
184
  }, ["prevent"])),
185
185
  onDragover: e[8] || (e[8] = v(() => {
186
186
  }, ["prevent"]))
187
187
  }, [
188
- t(g) ? (r(), d(t(We), {
188
+ t(g) ? (r(), u(t(Ee), {
189
189
  key: 0,
190
190
  id: t(W),
191
191
  "aria-label": "Search Results",
@@ -193,64 +193,64 @@ const Je = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Qe
193
193
  noResults: !t(x).length
194
194
  }, {
195
195
  default: c(() => [
196
- (r(!0), k(O, null, U(t(x), (o, i) => (r(), d(t(ze), {
197
- id: `#search-input-${o.item.id}`,
198
- key: o.refIndex,
196
+ (r(!0), k($, null, U(t(x), (s, i) => (r(), u(t(We), {
197
+ id: `#search-input-${s.item.id}`,
198
+ key: s.refIndex,
199
199
  ref_for: !0,
200
- ref: (a) => t(ie)[i] = a,
200
+ ref: (a) => t(re)[i] = a,
201
201
  active: t(I) === i,
202
202
  class: "px-2",
203
- href: o.item.link,
204
- onClick: v((a) => t(ae)(o), ["prevent"]),
203
+ href: s.item.link,
204
+ onClick: v((a) => t(se)(s), ["prevent"]),
205
205
  onFocus: (a) => I.value = i
206
206
  }, {
207
207
  addon: c(() => [
208
208
  e[11] || (e[11] = n("span", { class: "sr-only" }, "HTTP Method:", -1)),
209
- m(Oe, {
209
+ p(Ce, {
210
210
  class: "font-bold",
211
- method: o.item.httpVerb ?? "get"
211
+ method: s.item.httpVerb ?? "get"
212
212
  }, null, 8, ["method"])
213
213
  ]),
214
214
  default: c(() => [
215
- D(ye(o.item.title) + " ", 1)
215
+ O(Re(s.item.title) + " ", 1)
216
216
  ]),
217
217
  _: 2
218
218
  }, 1032, ["id", "active", "href", "onClick", "onFocus"]))), 128))
219
219
  ]),
220
220
  _: 1
221
- }, 8, ["id", "noResults"])) : (r(), k("nav", Ye, [
222
- (r(!0), k(O, null, U(t(p), (o) => {
221
+ }, 8, ["id", "noResults"])) : (r(), k("nav", Xe, [
222
+ (r(!0), k($, null, U(t(m), (s) => {
223
223
  var i;
224
- return r(), d(Ne, {
225
- key: o.uid,
226
- isDraggable: !t(l) && ((i = o.info) == null ? void 0 : i.title) !== "Drafts",
227
- isDroppable: t(_),
224
+ return r(), u(Ke, {
225
+ key: s.uid,
226
+ isDraggable: t(l) !== "modal" && ((i = s.info) == null ? void 0 : i.title) !== "Drafts",
227
+ isDroppable: t(Z),
228
228
  menuItem: h,
229
229
  parentUids: [],
230
- uid: o.uid,
231
- onNewTab: e[5] || (e[5] = (a, u) => M("newTab", { name: a, uid: u })),
232
- onOnDragEnd: t(Z),
230
+ uid: s.uid,
231
+ onNewTab: e[5] || (e[5] = (a, d) => M("newTab", { name: a, uid: d })),
232
+ onOnDragEnd: t(Y),
233
233
  onOpenMenu: e[6] || (e[6] = (a) => Object.assign(h, a))
234
234
  }, {
235
235
  leftIcon: c(() => {
236
236
  var a;
237
237
  return [
238
- ((a = o.info) == null ? void 0 : a.title) === "Drafts" ? (r(), d(t(q), {
238
+ ((a = s.info) == null ? void 0 : a.title) === "Drafts" ? (r(), u(t(q), {
239
239
  key: 0,
240
240
  class: "text-sidebar-c-2 group-hover:hidden",
241
241
  icon: "Scribble",
242
242
  thickness: "2.25"
243
- })) : (r(), d(t(Be), {
243
+ })) : (r(), u(t(Ae), {
244
244
  key: 1,
245
245
  class: "min-w-3.5 text-sidebar-c-2 size-3.5 stroke-2 group-hover:hidden",
246
- src: o["x-scalar-icon"] || "interface-content-folder"
246
+ src: s["x-scalar-icon"] || "interface-content-folder"
247
247
  }, null, 8, ["src"])),
248
248
  n("div", {
249
249
  class: f({
250
- "rotate-90": t(ee)[o.uid]
250
+ "rotate-90": t(_)[s.uid]
251
251
  })
252
252
  }, [
253
- m(t(q), {
253
+ p(t(q), {
254
254
  class: "text-c-3 hidden text-sm group-hover:block",
255
255
  icon: "ChevronRight",
256
256
  size: "md"
@@ -270,14 +270,14 @@ const Je = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Qe
270
270
  "empty-sidebar-item": t(y).length <= 1
271
271
  })
272
272
  }, [
273
- n("div", Ze, [
274
- n("div", _e, [
275
- m(H, {
276
- art: t(xe),
273
+ n("div", Ye, [
274
+ n("div", Ze, [
275
+ p(H, {
276
+ art: t(we),
277
277
  class: "font-bold rabbitsit"
278
278
  }, null, 8, ["art"]),
279
- m(H, {
280
- art: t(Ie),
279
+ p(H, {
280
+ art: t(xe),
281
281
  class: "font-bold absolute top-0 left-0 rabbitjump"
282
282
  }, null, 8, ["art"])
283
283
  ]),
@@ -286,50 +286,50 @@ const Je = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Qe
286
286
  n("p", { class: "mt-2" }, " Create request, folder, collection or import from OpenAPI/Postman ")
287
287
  ], -1))
288
288
  ]),
289
- t(l) ? b("", !0) : (r(), d(t(Ae), {
289
+ t(l) !== "modal" ? (r(), u(t(ze), {
290
290
  key: 0,
291
291
  class: f(["mb-1.5 w-full h-fit hidden opacity-0 p-1.5", {
292
292
  "flex opacity-100": t(y).length <= 1
293
293
  }]),
294
- onClick: se
294
+ onClick: te
295
295
  }, {
296
296
  default: c(() => e[13] || (e[13] = [
297
- D(" Import Collection ")
297
+ O(" Import Collection ")
298
298
  ])),
299
299
  _: 1
300
- }, 8, ["class"])),
301
- t(l) ? b("", !0) : (r(), d(De, {
300
+ }, 8, ["class"])) : b("", !0),
301
+ t(l) !== "modal" ? (r(), u(De, {
302
302
  key: 1,
303
303
  click: t(R).commandPalette.emit,
304
304
  hotkey: "K"
305
305
  }, {
306
306
  title: c(() => e[14] || (e[14] = [
307
- D("Add Item")
307
+ O("Add Item")
308
308
  ])),
309
309
  _: 1
310
- }, 8, ["click"]))
310
+ }, 8, ["click"])) : b("", !0)
311
311
  ], 2)
312
312
  ]),
313
313
  _: 2
314
314
  }, [
315
- t(l) ? void 0 : {
315
+ t(l) !== "modal" ? {
316
316
  name: "header",
317
317
  fn: c(() => []),
318
318
  key: "0"
319
- }
319
+ } : void 0
320
320
  ]), 1032, ["class", "isSidebarOpen"]), [
321
- [L, s.isSidebarOpen]
321
+ [L, o.isSidebarOpen]
322
322
  ]),
323
- !t(l) && h ? (r(), d(Te, {
323
+ t(l) !== "modal" && h ? (r(), u(Ve, {
324
324
  key: 0,
325
325
  menuItem: h,
326
326
  onClearDrafts: de,
327
- onCloseMenu: e[10] || (e[10] = (o) => h.open = !1),
328
- onToggleWatchMode: le
327
+ onCloseMenu: e[10] || (e[10] = (s) => h.open = !1),
328
+ onToggleWatchMode: ne
329
329
  }, null, 8, ["menuItem"])) : b("", !0)
330
330
  ], 64));
331
331
  }
332
332
  });
333
333
  export {
334
- wt as default
334
+ yt as default
335
335
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AAuhBA,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEzE,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAQ1B,KAAK,WAAW,GAAG;IACf;;;;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;AAmRJ,iBAAS,cAAc;WAqgBT,OAAO,IAA6B;;oBA1wBpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAtDlB,KA7e2B;;;;;;;oCA6e3B,KAxemD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA8xBvB,GAC5B,8CAC0C,GAAG,yBACnC,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4gBlD;AAmCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;iBA90BH,OAAO;6EAs1BvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,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,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEzE,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAQ1B,KAAK,WAAW,GAAG;IACf;;;;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;AAmRJ,iBAAS,cAAc;WAqgBT,OAAO,IAA6B;;oBA1wBpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAtDlB,KA7egB;;;;;;;oCA6ehB,KAxewC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4xBmB,GAAE,8CAA8C,GAAG,yBACpG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAghBlD;AAmCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;iBA90BH,OAAO;6EAs1BvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,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 a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-c8c242e6"]]);
5
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9737fcc6"]]);
6
6
  export {
7
7
  a as default
8
8
  };