@scalar/api-client 2.2.10 → 2.2.11

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.
@@ -1,14 +1,14 @@
1
- import { defineComponent as ne, useCssVars as re, computed as c, ref as le, resolveComponent as ae, openBlock as p, createElementBlock as w, normalizeClass as m, unref as s, createVNode as h, withCtx as g, createBlock as v, withModifiers as k, createElementVNode as l, toDisplayString as I, createCommentVNode as b, createTextVNode as B, renderSlot as oe, Fragment as ue, renderList as de } from "vue";
1
+ import { defineComponent as ne, useCssVars as oe, computed as c, ref as le, resolveComponent as re, openBlock as d, createElementBlock as k, normalizeClass as m, unref as s, createVNode as h, withCtx as g, createBlock as v, withModifiers as w, createElementVNode as l, toDisplayString as M, createCommentVNode as b, createTextVNode as A, renderSlot as ae, Fragment as ue, renderList as de } from "vue";
2
2
  import { useActiveEntities as pe } from "../../store/active-entities.js";
3
3
  import { ScalarButton as q, ScalarIcon as y, ScalarTooltip as fe } from "@scalar/components";
4
- import { Draggable as me } from "@scalar/draggable";
5
- import { useRouter as ce, RouterLink as ge } from "vue-router";
4
+ import { Draggable as ce } from "@scalar/draggable";
5
+ import { useRouter as me, RouterLink as ge } from "vue-router";
6
6
  import { PathId as ve } from "../../routes.js";
7
7
  import be from "../../components/HttpMethod/HttpMethod.vue.js";
8
8
  import { useSidebar as he } from "../../hooks/useSidebar.js";
9
9
  import { getModifiers as ye } from "../../libs/hot-keys.js";
10
10
  import { useWorkspace as xe } from "../../store/store.js";
11
- const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relative" }, qe = { class: "flex items-start" }, Ue = ["aria-expanded"], De = { class: "flex h-5 items-center justify-center max-w-[14px]" }, Ce = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, Re = { class: "relative flex h-fit" }, Me = { 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" }, Te = { class: "flex items-center text-c-2" }, Ie = { class: "text-pretty break-all" }, Ee = { key: 2 }, j = "hover:bg-sidebar-active-b indent-padding-left", We = /* @__PURE__ */ ne({
11
+ const ke = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, we = { class: "flex flex-row gap-1 items-center" }, qe = { class: "relative" }, Ue = { class: "flex items-start" }, De = ["aria-expanded"], Ce = { class: "flex h-5 items-center justify-center max-w-[14px]" }, Re = { class: "flex flex-1 flex-row justify-between" }, Te = { class: "break-all line-clamp-1 font-medium text-left w-full" }, Ie = { class: "relative flex justify-end h-fit" }, Me = { 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" }, Ee = { class: "flex items-center text-c-2" }, $e = { class: "text-pretty break-all" }, ze = { key: 2 }, B = "hover:bg-sidebar-active-b indent-padding-left", Ye = /* @__PURE__ */ ne({
12
12
  __name: "RequestSidebarItem",
13
13
  props: {
14
14
  isDraggable: { type: Boolean, default: !1 },
@@ -19,14 +19,14 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
19
19
  },
20
20
  emits: ["onDragEnd", "newTab", "openMenu"],
21
21
  setup(V, { emit: W }) {
22
- re((e) => ({
23
- f13c722a: Q.value,
24
- "04637a1a": X.value
22
+ oe((e) => ({
23
+ b4d0afaa: Q.value,
24
+ c4444c9a: X.value
25
25
  }));
26
26
  const n = V, F = W, { activeCollection: Y, activeRequest: E, activeRouterParams: H, activeWorkspace: U } = pe(), {
27
27
  collections: D,
28
28
  tags: L,
29
- isReadOnly: u,
29
+ isReadOnly: f,
30
30
  requests: $,
31
31
  requestExamples: C,
32
32
  collectionMutators: R,
@@ -34,11 +34,11 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
34
34
  requestMutators: S,
35
35
  requestExampleMutators: N,
36
36
  events: G
37
- } = xe(), J = ce(), { collapsedSidebarFolders: M, toggleSidebarFolder: K } = he(), i = c(() => {
38
- var r, f;
39
- const e = D[n.uid], t = L[n.uid], a = $[n.uid], o = C[n.uid];
37
+ } = xe(), J = me(), { collapsedSidebarFolders: T, toggleSidebarFolder: K } = he(), i = c(() => {
38
+ var o, p;
39
+ const e = D[n.uid], t = L[n.uid], r = $[n.uid], a = C[n.uid];
40
40
  return e ? {
41
- title: ((r = e.info) == null ? void 0 : r.title) ?? "Unknown title",
41
+ title: ((o = e.info) == null ? void 0 : o.title) ?? "Unknown title",
42
42
  entity: e,
43
43
  resourceTitle: "Collection",
44
44
  children: e.children,
@@ -46,8 +46,8 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
46
46
  documentUrl: e.documentUrl,
47
47
  watchMode: e.watchMode,
48
48
  warning: "This cannot be undone. You’re about to delete the collection and all folders and requests inside it.",
49
- edit: (d, x) => {
50
- R.edit(e.uid, "info.title", d), x && R.edit(e.uid, "x-scalar-icon", x);
49
+ edit: (u, x) => {
50
+ R.edit(e.uid, "info.title", u), x && R.edit(e.uid, "x-scalar-icon", x);
51
51
  },
52
52
  delete: () => R.delete(e, U.value)
53
53
  } : t ? {
@@ -56,63 +56,63 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
56
56
  resourceTitle: "Tag",
57
57
  children: t.children,
58
58
  warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
59
- edit: (d) => z.edit(t.uid, "name", d),
59
+ edit: (u) => z.edit(t.uid, "name", u),
60
60
  delete: () => z.delete(t, n.parentUids[0])
61
- } : a ? {
62
- title: a.summary ?? a.path,
61
+ } : r ? {
62
+ title: r.summary ?? r.path,
63
63
  link: {
64
64
  name: "request",
65
65
  params: {
66
66
  workspace: U.value.uid,
67
- request: a.uid
67
+ request: r.uid
68
68
  }
69
69
  },
70
- method: a.method,
71
- entity: a,
70
+ method: r.method,
71
+ entity: r,
72
72
  resourceTitle: "Request",
73
73
  warning: "This cannot be undone. You’re about to delete the request.",
74
- children: a.examples.slice(1),
75
- edit: (d) => S.edit(a.uid, "summary", d),
76
- delete: () => S.delete(a, n.parentUids[0])
74
+ children: r.examples.slice(1),
75
+ edit: (u) => S.edit(r.uid, "summary", u),
76
+ delete: () => S.delete(r, n.parentUids[0])
77
77
  } : {
78
- title: o.name,
78
+ title: a.name,
79
79
  link: {
80
80
  name: "request.examples",
81
81
  params: {
82
82
  workspace: U.value.uid,
83
- request: o.requestUid,
84
- examples: o.uid
83
+ request: a.requestUid,
84
+ examples: a.uid
85
85
  }
86
86
  },
87
- method: (f = $[o.requestUid]) == null ? void 0 : f.method,
88
- entity: o,
87
+ method: (p = $[a.requestUid]) == null ? void 0 : p.method,
88
+ entity: a,
89
89
  resourceTitle: "Example",
90
90
  warning: "This cannot be undone. You’re about to delete the example from the request.",
91
91
  children: [],
92
- edit: (d) => N.edit(o.uid, "name", d),
93
- delete: () => N.delete(o)
92
+ edit: (u) => N.edit(a.uid, "name", u),
93
+ delete: () => N.delete(a)
94
94
  };
95
95
  }), O = c(
96
96
  () => i.value.entity.type === "collection" && i.value.title === "Drafts"
97
- ), Q = c(() => n.parentUids.length ? u ? `${(n.parentUids.length - 1) * 12}px` : `${n.parentUids.length * 12}px` : "12px"), X = c(() => n.parentUids.length ? u ? `${(n.parentUids.length - 1) * 12}px` : `${n.parentUids.length * 12}px` : "0px"), Z = c(
97
+ ), Q = c(() => n.parentUids.length ? f ? `${(n.parentUids.length - 1) * 12}px` : `${n.parentUids.length * 12}px` : "12px"), X = c(() => n.parentUids.length ? f ? `${(n.parentUids.length - 1) * 12}px` : `${n.parentUids.length * 12}px` : "0px"), Z = c(
98
98
  () => {
99
99
  var e;
100
- return M[n.uid] || ((e = E.value) == null ? void 0 : e.uid) === n.uid && i.value.entity.examples.length > 1;
100
+ return T[n.uid] || ((e = E.value) == null ? void 0 : e.uid) === n.uid && i.value.entity.examples.length > 1;
101
101
  }
102
102
  ), _ = c(
103
103
  () => {
104
104
  var e;
105
105
  return H.value[ve.Request] === "default" && ((e = E.value) == null ? void 0 : e.uid) === n.uid;
106
106
  }
107
- ), T = le(null), P = c(() => {
107
+ ), I = le(null), P = c(() => {
108
108
  let e = 0.5, t = 0.5;
109
- if (!T.value) return { ceiling: e, floor: t };
110
- const { draggingItem: a } = T.value;
111
- return !D[a == null ? void 0 : a.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 };
112
- }), ee = (e, t) => !(u || C[t.id] || D[e.id]), te = (e, t) => {
113
- e && (ye(["default"]).some((r) => e[r]) ? F("newTab", t.title || "", t.entity.uid) : t.link && J.push(t.link));
109
+ if (!I.value) return { ceiling: e, floor: t };
110
+ const { draggingItem: r } = I.value;
111
+ return !D[r == null ? void 0 : r.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 };
112
+ }), ee = (e, t) => !(f || C[t.id] || D[e.id]), te = (e, t) => {
113
+ e && (ye(["default"]).some((o) => e[o]) ? F("newTab", t.title || "", t.entity.uid) : t.link && J.push(t.link));
114
114
  };
115
- function A() {
115
+ function j() {
116
116
  G.commandPalette.emit({
117
117
  commandName: "Create Request",
118
118
  metaData: {
@@ -124,63 +124,59 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
124
124
  const ie = c(() => {
125
125
  const { uid: e, watchModeStatus: t } = Y.value || {};
126
126
  return e !== i.value.entity.uid ? "text-c-3" : t === "WATCHING" ? "text-c-1" : t === "ERROR" ? "text-red" : "text-c-3";
127
- }), se = c(() => i.value.title == "Drafts" && !u && i.value.children.length > 0);
127
+ }), se = c(() => i.value.title == "Drafts" && !f && i.value.children.length > 0);
128
128
  return (e, t) => {
129
- const a = ae("RequestSidebarItem", !0);
130
- return p(), w("li", {
129
+ const r = re("RequestSidebarItem", !0);
130
+ return d(), k("li", {
131
131
  class: m(["relative flex flex-row", [
132
- s(u) && e.parentUids.length > 1 || !s(u) && 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" : ""
132
+ s(f) && e.parentUids.length > 1 || !s(f) && 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" : ""
133
133
  ]])
134
134
  }, [
135
- h(s(me), {
135
+ h(s(ce), {
136
136
  id: i.value.entity.uid,
137
137
  ref_key: "draggableRef",
138
- ref: T,
138
+ ref: I,
139
139
  ceiling: P.value.ceiling,
140
140
  class: "flex flex-1 flex-col gap-[.5px] text-sm",
141
141
  floor: P.value.floor,
142
142
  isDraggable: e.isDraggable,
143
143
  isDroppable: e.isDroppable,
144
144
  parentIds: e.parentUids,
145
- onOnDragEnd: t[9] || (t[9] = (...o) => e.$emit("onDragEnd", ...o))
145
+ onOnDragEnd: t[9] || (t[9] = (...a) => e.$emit("onDragEnd", ...a))
146
146
  }, {
147
147
  default: g(() => {
148
- var o;
148
+ var a;
149
149
  return [
150
- i.value.link ? (p(), v(s(ge), {
150
+ i.value.link ? (d(), v(s(ge), {
151
151
  key: 0,
152
152
  class: "group no-underline",
153
153
  to: i.value.link,
154
- onClick: t[1] || (t[1] = k(
155
- (r) => te(r, i.value),
154
+ onClick: t[1] || (t[1] = w(
155
+ (o) => te(o, i.value),
156
156
  ["prevent"]
157
157
  ))
158
158
  }, {
159
- default: g(({ isExactActive: r }) => {
160
- var f, d;
159
+ default: g(({ isExactActive: o }) => {
160
+ var p, u;
161
161
  return [
162
162
  l("div", {
163
- class: m(["relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover w-full", [
164
- j,
165
- r || _.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
163
+ class: m(["relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-0.5 py-1.5 pr-2 rounded w-full", [
164
+ B,
165
+ o || _.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
166
166
  ]])
167
167
  }, [
168
- l("span", {
169
- class: m(["line-clamp-3 font-medium w-full pl-2 word-break-break-word", {
170
- "editable-sidebar-hover-item": !s(u)
171
- }])
172
- }, I(i.value.title), 3),
168
+ l("span", ke, M(i.value.title), 1),
173
169
  l("div", we, [
174
- l("div", ke, [
175
- s(u) ? b("", !0) : (p(), v(s(q), {
170
+ l("div", qe, [
171
+ s(f) ? b("", !0) : (d(), v(s(q), {
176
172
  key: 0,
177
- class: m(["px-0.5 py-0 hover:bg-b-3 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
178
- flex: ((d = (f = e.menuItem) == null ? void 0 : f.item) == null ? void 0 : d.entity.uid) === i.value.entity.uid && e.menuItem.open
173
+ class: m(["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", {
174
+ flex: ((u = (p = e.menuItem) == null ? void 0 : p.item) == null ? void 0 : u.entity.uid) === i.value.entity.uid && e.menuItem.open
179
175
  }]),
180
176
  size: "sm",
181
177
  type: "button",
182
178
  variant: "ghost",
183
- onClick: t[0] || (t[0] = k(
179
+ onClick: t[0] || (t[0] = w(
184
180
  (x) => e.$emit("openMenu", {
185
181
  item: i.value,
186
182
  parentUids: e.parentUids,
@@ -199,10 +195,10 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
199
195
  _: 1
200
196
  }, 8, ["class"]))
201
197
  ]),
202
- l("span", qe, [
203
- t[10] || (t[10] = B("   ")),
198
+ l("span", Ue, [
199
+ t[10] || (t[10] = A("   ")),
204
200
  t[11] || (t[11] = l("span", { class: "sr-only" }, "HTTP Method:", -1)),
205
- i.value.method ? (p(), v(s(be), {
201
+ i.value.method ? (d(), v(s(be), {
206
202
  key: 0,
207
203
  class: "font-bold",
208
204
  method: i.value.method
@@ -213,18 +209,18 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
213
209
  ];
214
210
  }),
215
211
  _: 1
216
- }, 8, ["to"])) : !s(u) || e.parentUids.length ? (p(), w("button", {
212
+ }, 8, ["to"])) : !s(f) || e.parentUids.length ? (d(), k("button", {
217
213
  key: 1,
218
- "aria-expanded": s(M)[i.value.entity.uid],
219
- class: m(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", j]),
214
+ "aria-expanded": s(T)[i.value.entity.uid],
215
+ class: m(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", [B]]),
220
216
  type: "button",
221
- onClick: t[4] || (t[4] = (r) => s(K)(i.value.entity.uid))
217
+ onClick: t[4] || (t[4] = (o) => s(K)(i.value.entity.uid))
222
218
  }, [
223
- l("span", De, [
224
- oe(e.$slots, "leftIcon", {}, () => [
219
+ l("span", Ce, [
220
+ ae(e.$slots, "leftIcon", {}, () => [
225
221
  l("div", {
226
222
  class: m({
227
- "rotate-90": s(M)[i.value.entity.uid]
223
+ "rotate-90": s(T)[i.value.entity.uid]
228
224
  })
229
225
  }, [
230
226
  h(s(y), {
@@ -234,31 +230,27 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
234
230
  })
235
231
  ], 2)
236
232
  ], !0),
237
- t[12] || (t[12] = B("   "))
233
+ t[12] || (t[12] = A("   "))
238
234
  ]),
239
- l("div", Ce, [
240
- l("span", {
241
- class: m(["line-clamp-3 font-medium text-left w-full word-break-break-word", {
242
- "editable-sidebar-hover-item": !s(u)
243
- }])
244
- }, I(i.value.title), 3),
245
- l("div", Re, [
235
+ l("div", Re, [
236
+ l("span", Te, M(i.value.title), 1),
237
+ l("div", Ie, [
246
238
  l("div", {
247
- class: m(["flex items-center opacity-0 gap-px group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 absolute -translate-y-1/2 -right-px inset-y-2/4", {
248
- flex: ((o = e.menuItem.item) == null ? void 0 : o.entity.uid) === i.value.entity.uid && e.menuItem.open,
249
- "!right-5": i.value.watchMode
239
+ class: m(["items-center opacity-0 gap-px group-hover:opacity-100 group-hover:flex group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
240
+ flex: e.menuItem.open,
241
+ hidden: !e.menuItem.open || ((a = e.menuItem.item) == null ? void 0 : a.entity.uid) !== i.value.entity.uid
250
242
  }])
251
243
  }, [
252
- !s(u) && !O.value || O.value && se.value ? (p(), v(s(q), {
244
+ !s(f) && !O.value || O.value && se.value ? (d(), v(s(q), {
253
245
  key: 0,
254
- class: "px-0.5 py-0 hover:bg-b-3 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 aspect-square h-fit",
246
+ 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",
255
247
  size: "sm",
256
248
  variant: "ghost",
257
- onClick: t[2] || (t[2] = k(
258
- (r) => e.$emit("openMenu", {
249
+ onClick: t[2] || (t[2] = w(
250
+ (o) => e.$emit("openMenu", {
259
251
  item: i.value,
260
252
  parentUids: e.parentUids,
261
- targetRef: r.currentTarget.parentNode,
253
+ targetRef: o.currentTarget.parentNode,
262
254
  open: !0
263
255
  }),
264
256
  ["stop", "prevent"]
@@ -272,12 +264,12 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
272
264
  ]),
273
265
  _: 1
274
266
  })) : b("", !0),
275
- s(u) ? b("", !0) : (p(), v(s(q), {
267
+ s(f) ? b("", !0) : (d(), v(s(q), {
276
268
  key: 1,
277
- class: "px-0.5 py-0 hover:bg-b-3 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 aspect-square h-fit",
269
+ 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",
278
270
  size: "sm",
279
271
  variant: "ghost",
280
- onClick: t[3] || (t[3] = k((r) => A(), ["stop", "prevent"]))
272
+ onClick: t[3] || (t[3] = w((o) => j(), ["stop", "prevent"]))
281
273
  }, {
282
274
  default: g(() => [
283
275
  h(s(y), {
@@ -289,14 +281,14 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
289
281
  _: 1
290
282
  }))
291
283
  ], 2),
292
- i.value.watchMode ? (p(), v(s(fe), {
284
+ i.value.watchMode ? (d(), v(s(fe), {
293
285
  key: 0,
294
286
  side: "right",
295
287
  sideOffset: 12
296
288
  }, {
297
289
  trigger: g(() => [
298
290
  h(s(y), {
299
- class: m(["text-sm", ie.value]),
291
+ class: m(["ml-0.5 text-sm", ie.value]),
300
292
  icon: "Watch",
301
293
  size: "md",
302
294
  thickness: "2"
@@ -304,8 +296,8 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
304
296
  ]),
305
297
  content: g(() => [
306
298
  l("div", Me, [
307
- l("div", Te, [
308
- l("p", Ie, " Watching: " + I(i.value.documentUrl), 1)
299
+ l("div", Ee, [
300
+ l("p", $e, " Watching: " + M(i.value.documentUrl), 1)
309
301
  ])
310
302
  ])
311
303
  ]),
@@ -314,28 +306,28 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
314
306
  t[13] || (t[13] = l("span", null, " ", -1))
315
307
  ])
316
308
  ])
317
- ], 8, Ue)) : b("", !0),
318
- Z.value ? (p(), w("ul", Ee, [
319
- (p(!0), w(ue, null, de(i.value.children, (r) => (p(), v(a, {
320
- key: r,
321
- isDraggable: !s(C)[r],
309
+ ], 10, De)) : b("", !0),
310
+ Z.value ? (d(), k("ul", ze, [
311
+ (d(!0), k(ue, null, de(i.value.children, (o) => (d(), v(r, {
312
+ key: o,
313
+ isDraggable: !s(C)[o],
322
314
  isDroppable: ee,
323
315
  menuItem: e.menuItem,
324
316
  parentUids: [...e.parentUids, e.uid],
325
- uid: r,
326
- onNewTab: t[5] || (t[5] = (f, d) => e.$emit("newTab", f, d)),
327
- onOnDragEnd: t[6] || (t[6] = (...f) => e.$emit("onDragEnd", ...f)),
328
- onOpenMenu: t[7] || (t[7] = (f) => e.$emit("openMenu", f))
317
+ uid: o,
318
+ onNewTab: t[5] || (t[5] = (p, u) => e.$emit("newTab", p, u)),
319
+ onOnDragEnd: t[6] || (t[6] = (...p) => e.$emit("onDragEnd", ...p)),
320
+ onOpenMenu: t[7] || (t[7] = (p) => e.$emit("openMenu", p))
329
321
  }, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
330
- i.value.children.length === 0 ? (p(), v(s(q), {
322
+ i.value.children.length === 0 ? (d(), v(s(q), {
331
323
  key: 0,
332
324
  class: m(["mb-[.5px] 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" : ""]),
333
325
  variant: "ghost",
334
- onClick: t[8] || (t[8] = (r) => A())
326
+ onClick: t[8] || (t[8] = (o) => j())
335
327
  }, {
336
328
  default: g(() => [
337
329
  h(s(y), {
338
- class: "ml-0.5 h-2.5 w-2.5",
330
+ class: "mx-0.5 h-2.5 w-2.5",
339
331
  icon: "Add",
340
332
  thickness: "3"
341
333
  }),
@@ -353,5 +345,5 @@ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relativ
353
345
  }
354
346
  });
355
347
  export {
356
- We as default
348
+ Ye as default
357
349
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseEmpty.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bc56cd7e"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-78a00890"]]);
5
5
  export {
6
- r as default
6
+ s as default
7
7
  };
@@ -17,7 +17,7 @@ const K = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, A = {
17
17
  a.commandPalette.emit({ commandName: "Create Request" });
18
18
  }, y = (i) => {
19
19
  i != null && i.createNew && v.name === "request" && f();
20
- }, h = "2.2.10";
20
+ }, h = "2.2.11";
21
21
  return R(() => a.hotKeys.on(y)), C(() => a.hotKeys.off(y)), (i, e) => (r(), l("div", K, [
22
22
  o("div", {
23
23
  class: k(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
@@ -79,23 +79,23 @@ const K = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, A = {
79
79
  e[5] || (e[5] = c(" Get Started ")),
80
80
  s(p, { hotkey: "k" })
81
81
  ])) : m("", !0),
82
- o("button", {
83
- class: "flex items-center gap-1.5",
84
- type: "button",
85
- onClick: e[1] || (e[1] = (b) => t(a).executeRequest.emit())
86
- }, [
87
- e[6] || (e[6] = c(" Send Request ")),
88
- s(p, { hotkey: "↵" })
89
- ]),
90
82
  t(n) === "desktop" ? (r(), l("button", {
91
83
  key: 1,
92
84
  class: "flex items-center gap-1.5",
93
85
  type: "button",
94
86
  onClick: f
95
87
  }, [
96
- e[7] || (e[7] = c(" New Request ")),
88
+ e[6] || (e[6] = c(" New Request ")),
97
89
  s(p, { hotkey: "N" })
98
- ])) : m("", !0)
90
+ ])) : m("", !0),
91
+ o("button", {
92
+ class: "flex items-center gap-1.5",
93
+ type: "button",
94
+ onClick: e[1] || (e[1] = (b) => t(a).executeRequest.emit())
95
+ }, [
96
+ e[7] || (e[7] = c(" Send Request ")),
97
+ s(p, { hotkey: "↵" })
98
+ ])
99
99
  ])
100
100
  ]));
101
101
  }
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.2.10",
21
+ "version": "2.2.11",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -170,20 +170,20 @@
170
170
  "yaml": "^2.4.5",
171
171
  "zod": "^3.23.8",
172
172
  "@scalar/components": "0.13.4",
173
- "@scalar/oas-utils": "0.2.86",
174
- "@scalar/object-utils": "1.1.12",
175
173
  "@scalar/draggable": "0.1.7",
176
- "@scalar/import": "0.2.5",
174
+ "@scalar/icons": "0.1.2",
175
+ "@scalar/import": "0.2.6",
176
+ "@scalar/object-utils": "1.1.12",
177
177
  "@scalar/openapi-parser": "0.9.0",
178
178
  "@scalar/openapi-types": "0.1.5",
179
- "@scalar/icons": "0.1.2",
180
- "@scalar/postman-to-openapi": "0.1.9",
179
+ "@scalar/oas-utils": "0.2.87",
181
180
  "@scalar/themes": "0.9.54",
182
181
  "@scalar/types": "0.0.23",
183
- "@scalar/use-codemirror": "0.11.48",
182
+ "@scalar/postman-to-openapi": "0.1.10",
184
183
  "@scalar/use-hooks": "0.1.7",
185
- "@scalar/use-tooltip": "1.0.4",
186
- "@scalar/use-toasts": "0.7.7"
184
+ "@scalar/use-codemirror": "0.11.48",
185
+ "@scalar/use-toasts": "0.7.7",
186
+ "@scalar/use-tooltip": "1.0.4"
187
187
  },
188
188
  "devDependencies": {
189
189
  "@types/js-cookie": "^3.0.6",