@scalar/api-client 2.2.56 → 2.2.57

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 (84) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBarHistory.vue2.js +53 -54
  5. package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
  6. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  7. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +3 -19
  8. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  9. package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
  10. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +154 -129
  11. package/dist/components/DataTable/DataTableInput.vue.d.ts +4 -4
  12. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  13. package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
  14. package/dist/components/Sidebar/SidebarToggle.vue.js +17 -16
  15. package/dist/layouts/App/create-api-client-app.d.ts +62 -52
  16. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  17. package/dist/layouts/Modal/create-api-client-modal.d.ts +120 -100
  18. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  19. package/dist/layouts/Modal/create-api-client-modal.js +1 -2
  20. package/dist/layouts/Web/create-api-client-web.d.ts +62 -52
  21. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  22. package/dist/libs/create-client.d.ts +64 -58
  23. package/dist/libs/create-client.d.ts.map +1 -1
  24. package/dist/libs/create-client.js +82 -80
  25. package/dist/libs/extractAttachmentFilename.d.ts.map +1 -1
  26. package/dist/libs/extractAttachmentFilename.js +8 -7
  27. package/dist/libs/find-request.d.ts +1 -1
  28. package/dist/libs/find-request.d.ts.map +1 -1
  29. package/dist/libs/hot-keys.d.ts +1 -1
  30. package/dist/libs/hot-keys.d.ts.map +1 -1
  31. package/dist/libs/hot-keys.js +9 -8
  32. package/dist/libs/send-request/create-request-operation.test.d.ts +3 -2
  33. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  34. package/dist/store/active-entities.d.ts +4 -3
  35. package/dist/store/active-entities.d.ts.map +1 -1
  36. package/dist/store/import-spec.d.ts +3 -3
  37. package/dist/store/import-spec.d.ts.map +1 -1
  38. package/dist/store/import-spec.js +4 -1
  39. package/dist/store/request-example.d.ts +22 -12
  40. package/dist/store/request-example.d.ts.map +1 -1
  41. package/dist/store/requests.d.ts +13 -13
  42. package/dist/store/requests.d.ts.map +1 -1
  43. package/dist/store/security-schemes.d.ts +6 -6
  44. package/dist/store/store.d.ts +92 -67
  45. package/dist/store/store.d.ts.map +1 -1
  46. package/dist/store/store.js +12 -12
  47. package/dist/store/workspace.d.ts +12 -12
  48. package/dist/store/workspace.d.ts.map +1 -1
  49. package/dist/style.css +1 -1
  50. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  51. package/dist/views/Request/Request.vue.js +2 -2
  52. package/dist/views/Request/RequestRoot.test.d.ts +2 -0
  53. package/dist/views/Request/RequestRoot.test.d.ts.map +1 -0
  54. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  55. package/dist/views/Request/RequestRoot.vue.js +2 -2
  56. package/dist/views/Request/RequestRoot.vue2.js +72 -60
  57. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +1 -1
  58. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  59. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  60. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  61. package/dist/views/Request/RequestSection/RequestBody.vue2.js +113 -107
  62. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  63. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  64. package/dist/views/Request/RequestSection/RequestSection.vue2.js +37 -37
  65. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  66. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  67. package/dist/views/Request/RequestSection/RequestTable.vue2.js +55 -51
  68. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  69. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  70. package/dist/views/Request/RequestSidebar.vue2.js +171 -166
  71. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  72. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  73. package/dist/views/Request/RequestSidebarItem.vue2.js +187 -180
  74. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  75. package/dist/views/Request/RequestSubpageHeader.vue.js +2 -2
  76. package/dist/views/Request/RequestSubpageHeader.vue2.js +41 -49
  77. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  78. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
  79. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +62 -45
  80. package/package.json +12 -12
  81. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +0 -15
  82. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +0 -1
  83. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +0 -176
  84. package/dist/components/CommandPalette/CommandPaletteRequest.vue2.js +0 -4
@@ -1,115 +1,118 @@
1
- import { defineComponent as ve, useId as he, reactive as be, ref as ge, watch as K, onMounted as Se, onBeforeUnmount as ke, computed as L, openBlock as r, createElementBlock as S, Fragment as q, withDirectives as N, createVNode as m, unref as e, normalizeClass as f, createSlots as Re, withCtx as d, createElementVNode as n, createBlock as u, createCommentVNode as p, isRef as xe, withKeys as D, withModifiers as v, vShow as B, renderList as H, createTextVNode as M, toDisplayString as ye, nextTick as we } from "vue";
2
- import { ScalarIcon as $, ScalarSearchInput as Ie, ScalarSearchResultList as Ce, ScalarSearchResultItem as qe, ScalarButton as De } from "@scalar/components";
3
- import { LibraryIcon as Me } from "@scalar/icons";
4
- import { useToasts as $e } from "@scalar/use-toasts";
1
+ import { defineComponent as ve, useId as be, reactive as ge, ref as Se, watch as W, onMounted as ke, onBeforeUnmount as Re, computed as A, openBlock as l, createElementBlock as k, Fragment as D, withDirectives as H, createVNode as p, unref as t, normalizeClass as v, createSlots as ye, withCtx as d, createElementVNode as n, createBlock as u, createCommentVNode as b, toDisplayString as K, isRef as xe, withKeys as $, withModifiers as g, vShow as B, renderList as U, createTextVNode as q, nextTick as we } from "vue";
2
+ import { ScalarIcon as M, ScalarSearchInput as Ie, ScalarSearchResultList as Ce, ScalarSearchResultItem as De, ScalarButton as $e } from "@scalar/components";
3
+ import { LibraryIcon as qe } from "@scalar/icons";
4
+ import { useToasts as Me } from "@scalar/use-toasts";
5
5
  import { useRouter as Pe } from "vue-router";
6
6
  import Te from "../../assets/rabbit.ascii.js";
7
7
  import _e from "../../assets/rabbitjump.ascii.js";
8
- import Ee from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
9
- import Ve from "../../components/HttpMethod/HttpMethod.vue.js";
10
- import U from "../../components/ScalarAsciiArt.vue.js";
11
- import { useSearch as Oe } from "../../components/Search/useSearch.js";
12
- import We from "../../components/Sidebar/SidebarButton.vue.js";
13
- import ze from "../../components/Sidebar/SidebarToggle.vue.js";
14
- import { useLayout as Ae } from "../../hooks/useLayout.js";
15
- import { useSidebar as Fe } from "../../hooks/useSidebar.js";
16
- import { PathId as G } from "../../routes.js";
17
- import { useActiveEntities as Ke } from "../../store/active-entities.js";
18
- import { createInitialRequest as Le } from "../../store/requests.js";
19
- import { dragHandlerFactory as Ne } from "./handle-drag.js";
20
- import Be from "./RequestSidebarItemMenu.vue.js";
21
- import { isGettingStarted as He } from "./RequestSection/helpers/getting-started.js";
22
- import Ue from "./RequestSidebarItem.vue.js";
23
- import Ge from "../../components/Sidebar/Sidebar.vue.js";
24
- import je from "./components/WorkspaceDropdown.vue.js";
25
- import { useWorkspace as Je } from "../../store/store.js";
26
- const Qe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Xe = {
8
+ import Ve from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
9
+ import Ee from "../../components/HttpMethod/HttpMethod.vue.js";
10
+ import G from "../../components/ScalarAsciiArt.vue.js";
11
+ import { useSearch as Le } from "../../components/Search/useSearch.js";
12
+ import Ne from "../../components/Sidebar/SidebarButton.vue.js";
13
+ import { useLayout as Oe } from "../../hooks/useLayout.js";
14
+ import { useSidebar as ze } from "../../hooks/useSidebar.js";
15
+ import { PathId as j } from "../../routes.js";
16
+ import { useActiveEntities as Fe } from "../../store/active-entities.js";
17
+ import { createInitialRequest as We } from "../../store/requests.js";
18
+ import { dragHandlerFactory as Ae } from "./handle-drag.js";
19
+ import He from "./RequestSidebarItemMenu.vue.js";
20
+ import { isGettingStarted as Ke } from "./RequestSection/helpers/getting-started.js";
21
+ import Be from "./RequestSidebarItem.vue.js";
22
+ import Ue from "../../components/Sidebar/Sidebar.vue.js";
23
+ import Ge from "./components/WorkspaceDropdown.vue.js";
24
+ import { useWorkspace as je } from "../../store/store.js";
25
+ const Je = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Qe = {
27
26
  key: 1,
28
27
  class: "text-c-3"
29
- }, Ye = {
28
+ }, Xe = ["aria-pressed"], Ye = { class: "sr-only" }, Ze = {
30
29
  class: "search-button-fade sticky top-12 z-10 px-3 py-2.5 pt-0 focus-within:z-20",
31
30
  role: "search"
32
- }, Ze = {
31
+ }, et = {
33
32
  key: 1,
34
33
  class: "contents"
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]" }, Dt = /* @__PURE__ */ ve({
34
+ }, tt = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, ot = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, $t = /* @__PURE__ */ ve({
36
35
  __name: "RequestSidebar",
37
36
  emits: ["newTab", "clearDrafts"],
38
- setup(ot, { emit: j }) {
39
- const J = j, {
40
- collapsedSidebarFolders: Q,
37
+ setup(st, { emit: J }) {
38
+ const Q = J, {
39
+ collapsedSidebarFolders: X,
41
40
  isSidebarOpen: P,
42
- setCollapsedSidebarFolder: X,
43
- toggleSidebarOpen: Y
44
- } = Fe(), { layout: i } = Ae(), T = Je(), {
41
+ setCollapsedSidebarFolder: Y,
42
+ toggleSidebarOpen: Z
43
+ } = ze(), { layout: i } = Oe(), T = je(), {
45
44
  activeWorkspaceCollections: c,
46
- activeRequest: Z,
45
+ activeRequest: ee,
47
46
  activeWorkspaceRequests: _,
48
- activeWorkspace: ee
49
- } = Ke(), { findRequestParents: te, events: k, requestMutators: E, requests: x } = T, { handleDragEnd: oe, isDroppable: se } = Ne(
50
- ee,
47
+ activeWorkspace: te
48
+ } = Fe(), { findRequestParents: oe, events: R, requestMutators: V, requests: y } = T, { handleDragEnd: se, isDroppable: ae } = Ae(
49
+ te,
51
50
  T
52
- ), { replace: V } = Pe(), ae = () => {
53
- k.commandPalette.emit({
51
+ ), { replace: E } = Pe(), re = () => {
52
+ R.commandPalette.emit({
54
53
  commandName: "Import from OpenAPI/Swagger/Postman/cURL"
55
54
  });
56
- }, O = he(), { toast: re } = $e(), h = be({ open: !1 }), b = ge(!1);
57
- K(
58
- Z,
55
+ }, L = be(), { toast: le } = Me(), S = ge({ open: !1 }), m = Se(!1);
56
+ W(
57
+ ee,
59
58
  (s) => {
60
- s && te(s).forEach(
61
- (t) => X(t, !0)
59
+ s && oe(s).forEach(
60
+ (e) => Y(e, !0)
62
61
  );
63
62
  },
64
63
  { immediate: !0 }
65
64
  );
66
65
  const {
67
- searchText: g,
68
- searchResultsWithPlaceholderResults: y,
66
+ searchText: h,
67
+ searchResultsWithPlaceholderResults: x,
69
68
  selectedSearchResult: w,
70
- onSearchResultClick: le,
71
- fuseSearch: ne,
69
+ onSearchResultClick: ne,
70
+ fuseSearch: ie,
72
71
  searchInputRef: I,
73
- searchResultRefs: ie,
74
- navigateSearchResults: W,
75
- selectSearchResult: ue
76
- } = Oe(), z = (s) => {
77
- var t;
78
- s && (s.toggleSidebar && Y(), s.focusRequestSearch && ((t = I.value) == null || t.focus()));
72
+ searchResultRefs: ue,
73
+ navigateSearchResults: N,
74
+ selectSearchResult: ce
75
+ } = Le(), O = (s) => {
76
+ var e;
77
+ s && (s.toggleSidebar && Z(), s.focusRequestSearch && ((e = I.value) == null || e.focus()));
79
78
  };
80
- Se(() => k.hotKeys.on(z)), ke(() => {
81
- k.hotKeys.off(z);
79
+ ke(() => R.hotKeys.on(O)), Re(() => {
80
+ R.hotKeys.off(O);
82
81
  });
83
- const ce = (s) => {
82
+ const de = (s) => {
84
83
  if (s != null && s.documentUrl) {
85
84
  s.watchMode = !s.watchMode;
86
- const t = c.value.find(
85
+ const e = c.value.find(
87
86
  (o) => o.uid === s.entity.uid
88
87
  );
89
- t && (t.watchMode = s.watchMode);
88
+ e && (e.watchMode = s.watchMode);
90
89
  }
91
90
  };
92
- K(
91
+ W(
93
92
  () => c.value.map(
94
93
  (s) => s.watchMode
95
94
  ),
96
- (s, t) => {
95
+ (s, e) => {
97
96
  s.forEach((o, a) => {
98
- var l, R, A;
99
- if (i !== "modal" && o !== t[a] && ((R = (l = c.value[a]) == null ? void 0 : l.info) == null ? void 0 : R.title) !== "Drafts" && c.value[a]) {
97
+ var r, f, z;
98
+ if (i !== "modal" && o !== e[a] && ((f = (r = c.value[a]) == null ? void 0 : r.info) == null ? void 0 : f.title) !== "Drafts" && c.value[a]) {
100
99
  const F = c.value[a];
101
100
  if (!F) return;
102
- const pe = `${(A = F.info) == null ? void 0 : A.title}: Watch Mode ${o ? "enabled" : "disabled"}`;
103
- re(pe, "info");
101
+ const he = `${(z = F.info) == null ? void 0 : z.title}: Watch Mode ${o ? "enabled" : "disabled"}`;
102
+ le(he, "info");
104
103
  }
105
104
  });
106
105
  }
107
106
  );
108
- const de = L(() => {
109
- var t;
110
- const s = y.value[w.value];
111
- return (t = s == null ? void 0 : s.item) != null && t.id ? `#search-input-${s.item.id}` : void 0;
112
- }), me = () => {
107
+ const me = A(() => {
108
+ var f;
109
+ const s = x.value;
110
+ if (!s.length) return "No results found";
111
+ const e = (f = s[w.value]) == null ? void 0 : f.item;
112
+ if (!e) return "No result selected";
113
+ const o = h.value.length ? `${s.length} result${s.length === 1 ? "" : "s"} found, ` : "", a = `, HTTP Method ${e.httpVerb}, Path ${e.path}`, r = `${e.title} ${a}`;
114
+ return `${o}Selected: ${r}`;
115
+ }), fe = () => {
113
116
  const s = c.value.find(
114
117
  (o) => {
115
118
  var a;
@@ -117,158 +120,160 @@ const Qe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Xe
117
120
  }
118
121
  );
119
122
  if (s && s.requests.forEach((o) => {
120
- x[o] && E.delete(x[o], s.uid);
123
+ y[o] && V.delete(y[o], s.uid);
121
124
  }), _.value.length) {
122
125
  const o = c.value[0], a = o == null ? void 0 : o.requests[0];
123
- a && V({
126
+ a && E({
124
127
  name: "request",
125
128
  params: {
126
- [G.Request]: a
129
+ [j.Request]: a
127
130
  }
128
131
  });
129
132
  } else {
130
- const { request: o } = Le();
131
- s && (E.add(o, s.uid), V({
133
+ const { request: o } = We();
134
+ s && (V.add(o, s.uid), E({
132
135
  name: "request",
133
136
  params: {
134
- [G.Request]: o.uid
137
+ [j.Request]: o.uid
135
138
  }
136
139
  }));
137
140
  }
138
- }, fe = () => {
139
- b.value || (g.value = ""), b.value && we(() => {
141
+ }, pe = () => {
142
+ m.value = !m.value, m.value || (h.value = ""), m.value && we(() => {
140
143
  var s;
141
- (s = I.value) == null || s.focus();
142
- }), b.value = !b.value;
143
- }, C = L(
144
- () => He(
144
+ return (s = I.value) == null ? void 0 : s.focus();
145
+ });
146
+ }, C = A(
147
+ () => Ke(
145
148
  c.value,
146
149
  _.value,
147
- x
150
+ y
148
151
  )
149
152
  );
150
- return (s, t) => (r(), S(q, null, [
151
- N(m(e(Ge), {
152
- class: f([e(P) ? "sidebar-active-width" : ""])
153
- }, Re({
153
+ return (s, e) => (l(), k(D, null, [
154
+ H(p(t(Ue), {
155
+ class: v([t(P) ? "sidebar-active-width" : ""])
156
+ }, ye({
154
157
  content: d(() => [
155
- n("div", Qe, [
156
- m(ze, {
157
- class: f(["xl:hidden", [{ "!flex": e(i) === "modal" }]])
158
- }, null, 8, ["class"]),
159
- e(i) !== "modal" ? (r(), u(e(je), { key: 0 })) : p("", !0),
160
- e(i) !== "modal" ? (r(), S("span", Xe, " / ")) : p("", !0),
161
- e(i) !== "modal" ? (r(), u(Ee, { key: 2 })) : p("", !0),
158
+ n("div", Je, [
159
+ n("div", {
160
+ class: v(["size-8", { "xl:hidden": t(i) !== "modal" }])
161
+ }, null, 2),
162
+ t(i) !== "modal" ? (l(), u(t(Ge), { key: 0 })) : b("", !0),
163
+ t(i) !== "modal" ? (l(), k("span", Qe, " / ")) : b("", !0),
164
+ t(i) !== "modal" ? (l(), u(Ve, { key: 2 })) : b("", !0),
162
165
  n("button", {
166
+ "aria-pressed": m.value,
163
167
  class: "ml-auto",
164
168
  type: "button",
165
- onClick: fe
169
+ onClick: pe
166
170
  }, [
167
- m(e($), {
171
+ n("span", Ye, K(m.value ? "Hide" : "Show") + " search ", 1),
172
+ p(t(M), {
168
173
  class: "text-c-3 hover:bg-b-2 p-1.75 max-h-8 max-w-8 rounded-lg text-sm",
169
174
  icon: "Search"
170
175
  })
171
- ])
176
+ ], 8, Xe)
172
177
  ]),
173
- N(n("div", Ye, [
174
- m(e(Ie), {
178
+ H(n("div", Ze, [
179
+ p(t(Ie), {
175
180
  ref_key: "searchInputRef",
176
181
  ref: I,
177
- modelValue: e(g),
178
- "onUpdate:modelValue": t[0] || (t[0] = (o) => xe(g) ? g.value = o : null),
179
- "aria-activedescendant": de.value,
180
- "aria-controls": e(O),
182
+ modelValue: t(h),
183
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => xe(h) ? h.value = o : null),
184
+ "aria-controls": t(L),
185
+ label: me.value,
181
186
  sidebar: "",
182
- onInput: e(ne),
187
+ onInput: t(ie),
183
188
  onKeydown: [
184
- t[1] || (t[1] = D(v((o) => e(W)("down"), ["stop"]), ["down"])),
185
- t[2] || (t[2] = D(v((o) => e(ue)(), ["stop"]), ["enter"])),
186
- t[3] || (t[3] = D(v((o) => e(W)("up"), ["stop"]), ["up"]))
189
+ e[1] || (e[1] = $(g((o) => t(N)("down"), ["stop"]), ["down"])),
190
+ e[2] || (e[2] = $(g((o) => t(ce)(), ["stop"]), ["enter"])),
191
+ e[3] || (e[3] = $(g((o) => t(N)("up"), ["stop"]), ["up"]))
187
192
  ]
188
- }, null, 8, ["modelValue", "aria-activedescendant", "aria-controls", "onInput"])
193
+ }, null, 8, ["modelValue", "aria-controls", "label", "onInput"])
189
194
  ], 512), [
190
- [B, b.value]
195
+ [B, m.value]
191
196
  ]),
192
197
  n("div", {
193
- class: f(["gap-1/2 flex flex-1 flex-col overflow-visible overflow-y-auto px-3 pb-3 pt-0", [
198
+ class: v(["gap-1/2 flex flex-1 flex-col overflow-visible overflow-y-auto px-3 pb-3 pt-0", [
194
199
  {
195
- "pb-14": e(i) !== "modal"
200
+ "pb-14": t(i) !== "modal"
196
201
  },
197
202
  {
198
203
  "h-[calc(100%-273.5px)]": C.value
199
204
  }
200
205
  ]]),
201
- onDragenter: t[6] || (t[6] = v(() => {
206
+ onDragenter: e[6] || (e[6] = g(() => {
202
207
  }, ["prevent"])),
203
- onDragover: t[7] || (t[7] = v(() => {
208
+ onDragover: e[7] || (e[7] = g(() => {
204
209
  }, ["prevent"]))
205
210
  }, [
206
- e(g) ? (r(), u(e(Ce), {
211
+ t(h) ? (l(), u(t(Ce), {
207
212
  key: 0,
208
- id: e(O),
213
+ id: t(L),
209
214
  "aria-label": "Search Results",
210
215
  class: "gap-px",
211
- noResults: !e(y).length
216
+ noResults: !t(x).length
212
217
  }, {
213
218
  default: d(() => [
214
- (r(!0), S(q, null, H(e(y), (o, a) => (r(), u(e(qe), {
219
+ (l(!0), k(D, null, U(t(x), (o, a) => (l(), u(t(De), {
215
220
  id: `#search-input-${o.item.id}`,
216
221
  key: o.refIndex,
217
222
  ref_for: !0,
218
- ref: (l) => e(ie)[a] = l,
219
- active: e(w) === a,
223
+ ref: (r) => t(ue)[a] = r,
224
+ active: t(w) === a,
220
225
  class: "px-2",
221
226
  href: o.item.link,
222
- onClick: v((l) => e(le)(o), ["prevent"]),
223
- onFocus: (l) => w.value = a
227
+ onClick: g((r) => t(ne)(o), ["prevent"]),
228
+ onFocus: (r) => w.value = a
224
229
  }, {
225
230
  addon: d(() => [
226
- t[9] || (t[9] = n("span", { class: "sr-only" }, "HTTP Method:", -1)),
227
- m(Ve, {
231
+ e[9] || (e[9] = n("span", { class: "sr-only" }, "HTTP Method:", -1)),
232
+ p(Ee, {
228
233
  class: "font-bold",
229
234
  method: o.item.httpVerb ?? "get"
230
235
  }, null, 8, ["method"])
231
236
  ]),
232
237
  default: d(() => [
233
- M(ye(o.item.title) + " ", 1)
238
+ q(K(o.item.title) + " ", 1)
234
239
  ]),
235
240
  _: 2
236
241
  }, 1032, ["id", "active", "href", "onClick", "onFocus"]))), 128))
237
242
  ]),
238
243
  _: 1
239
- }, 8, ["id", "noResults"])) : (r(), S("nav", Ze, [
240
- (r(!0), S(q, null, H(e(c), (o) => {
244
+ }, 8, ["id", "noResults"])) : (l(), k("nav", et, [
245
+ (l(!0), k(D, null, U(t(c), (o) => {
241
246
  var a;
242
- return r(), u(Ue, {
247
+ return l(), u(Be, {
243
248
  key: o.uid,
244
- isDraggable: e(i) !== "modal" && ((a = o.info) == null ? void 0 : a.title) !== "Drafts",
245
- isDroppable: e(se),
246
- menuItem: h,
249
+ isDraggable: t(i) !== "modal" && ((a = o.info) == null ? void 0 : a.title) !== "Drafts",
250
+ isDroppable: t(ae),
251
+ menuItem: S,
247
252
  parentUids: [],
248
253
  uid: o.uid,
249
- onNewTab: t[4] || (t[4] = (l, R) => J("newTab", { name: l, uid: R })),
250
- onOnDragEnd: e(oe),
251
- onOpenMenu: t[5] || (t[5] = (l) => Object.assign(h, l))
254
+ onNewTab: e[4] || (e[4] = (r, f) => Q("newTab", { name: r, uid: f })),
255
+ onOnDragEnd: t(se),
256
+ onOpenMenu: e[5] || (e[5] = (r) => Object.assign(S, r))
252
257
  }, {
253
258
  leftIcon: d(() => {
254
- var l;
259
+ var r;
255
260
  return [
256
- ((l = o.info) == null ? void 0 : l.title) === "Drafts" ? (r(), u(e($), {
261
+ ((r = o.info) == null ? void 0 : r.title) === "Drafts" ? (l(), u(t(M), {
257
262
  key: 0,
258
263
  class: "text-sidebar-c-2 group-hover:hidden",
259
264
  icon: "Scribble",
260
265
  thickness: "2.25"
261
- })) : (r(), u(e(Me), {
266
+ })) : (l(), u(t(qe), {
262
267
  key: 1,
263
268
  class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
264
269
  src: o["x-scalar-icon"] || "interface-content-folder"
265
270
  }, null, 8, ["src"])),
266
271
  n("div", {
267
- class: f({
268
- "rotate-90": e(Q)[o.uid]
272
+ class: v({
273
+ "rotate-90": t(X)[o.uid]
269
274
  })
270
275
  }, [
271
- m(e($), {
276
+ p(t(M), {
272
277
  class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
273
278
  icon: "ChevronRight",
274
279
  size: "md"
@@ -284,70 +289,70 @@ const Qe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Xe
284
289
  ]),
285
290
  button: d(() => [
286
291
  n("div", {
287
- class: f({
292
+ class: v({
288
293
  "empty-sidebar-item": C.value
289
294
  })
290
295
  }, [
291
- n("div", et, [
292
- n("div", tt, [
293
- m(U, {
294
- art: e(Te),
296
+ n("div", tt, [
297
+ n("div", ot, [
298
+ p(G, {
299
+ art: t(Te),
295
300
  class: "rabbitsit font-bold"
296
301
  }, null, 8, ["art"]),
297
- m(U, {
298
- art: e(_e),
302
+ p(G, {
303
+ art: t(_e),
299
304
  class: "rabbitjump absolute left-0 top-0 font-bold"
300
305
  }, null, 8, ["art"])
301
306
  ]),
302
- t[10] || (t[10] = n("div", { class: "mb-2 mt-2 text-balance text-center text-sm" }, [
307
+ e[10] || (e[10] = n("div", { class: "mb-2 mt-2 text-balance text-center text-sm" }, [
303
308
  n("b", { class: "font-medium" }, "Let's Get Started"),
304
309
  n("p", { class: "mt-2" }, " Create request, folder, collection or import from OpenAPI/Postman ")
305
310
  ], -1))
306
311
  ]),
307
- e(i) !== "modal" ? (r(), u(e(De), {
312
+ t(i) !== "modal" ? (l(), u(t($e), {
308
313
  key: 0,
309
- class: f(["mb-1.5 hidden h-fit w-full p-1.5 opacity-0", {
314
+ class: v(["mb-1.5 hidden h-fit w-full p-1.5 opacity-0", {
310
315
  "flex opacity-100": C.value
311
316
  }]),
312
- onClick: ae
317
+ onClick: re
313
318
  }, {
314
- default: d(() => t[11] || (t[11] = [
315
- M(" Import Collection ")
319
+ default: d(() => e[11] || (e[11] = [
320
+ q(" Import Collection ")
316
321
  ])),
317
322
  _: 1
318
- }, 8, ["class"])) : p("", !0),
319
- e(i) !== "modal" ? (r(), u(We, {
323
+ }, 8, ["class"])) : b("", !0),
324
+ t(i) !== "modal" ? (l(), u(Ne, {
320
325
  key: 1,
321
- click: e(k).commandPalette.emit,
326
+ click: t(R).commandPalette.emit,
322
327
  hotkey: "K"
323
328
  }, {
324
- title: d(() => t[12] || (t[12] = [
325
- M(" Add Item ")
329
+ title: d(() => e[12] || (e[12] = [
330
+ q(" Add Item ")
326
331
  ])),
327
332
  _: 1
328
- }, 8, ["click"])) : p("", !0)
333
+ }, 8, ["click"])) : b("", !0)
329
334
  ], 2)
330
335
  ]),
331
336
  _: 2
332
337
  }, [
333
- e(i) !== "modal" ? {
338
+ t(i) !== "modal" ? {
334
339
  name: "header",
335
340
  fn: d(() => []),
336
341
  key: "0"
337
342
  } : void 0
338
343
  ]), 1032, ["class"]), [
339
- [B, e(P)]
344
+ [B, t(P)]
340
345
  ]),
341
- e(i) !== "modal" && h ? (r(), u(Be, {
346
+ t(i) !== "modal" && S ? (l(), u(He, {
342
347
  key: 0,
343
- menuItem: h,
344
- onClearDrafts: me,
345
- onCloseMenu: t[8] || (t[8] = (o) => h.open = !1),
346
- onToggleWatchMode: ce
347
- }, null, 8, ["menuItem"])) : p("", !0)
348
+ menuItem: S,
349
+ onClearDrafts: fe,
350
+ onCloseMenu: e[8] || (e[8] = (o) => S.open = !1),
351
+ onToggleWatchMode: de
352
+ }, null, 8, ["menuItem"])) : b("", !0)
348
353
  ], 64));
349
354
  }
350
355
  });
351
356
  export {
352
- Dt as default
357
+ $t as default
353
358
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AAwpBA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAa1B,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;AAgSF,iBAAS,cAAc;WA0xBT,OAAO,IAA6B;;oBAxiCpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAjElB,KArmB6B;;;;;;;oCAqmB7B,KAhmBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAyvBK,GAAG,8CAA8C,GACzD,yBACQ,GAAA,6DACU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAk9BpB;AAqCD,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":"AA8qBA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAa1B,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;AAsTF,iBAAS,cAAc;WA0xBT,OAAO,IAA6B;;oBA9jCpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAjElB,KA3nB6B;;;;;;;oCA2nB7B,KAtnBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA2vBW,GAAG,8CACqB,GAAG,yBAAyB,GAClE,6DAIM,GAAH;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAy/BF;AAqCD,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-ffb875b7"]]);
5
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b1c0a5a2"]]);
6
6
  export {
7
7
  p as default
8
8
  };