@scalar/api-client 2.2.22 → 2.2.23

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