@scalar/api-client 2.3.19 → 2.3.21

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 (52) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  3. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  4. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +138 -125
  5. package/dist/hooks/useClientConfig.d.ts +3 -3
  6. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  7. package/dist/layouts/App/create-api-client-app.d.ts +10 -10
  8. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  9. package/dist/layouts/Modal/create-api-client-modal.d.ts +20 -20
  10. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  11. package/dist/layouts/Web/create-api-client-web.d.ts +10 -10
  12. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  13. package/dist/libs/create-client.d.ts +10 -10
  14. package/dist/libs/create-client.d.ts.map +1 -1
  15. package/dist/store/active-entities.d.ts +1 -1
  16. package/dist/store/active-entities.d.ts.map +1 -1
  17. package/dist/store/store.d.ts +10 -10
  18. package/dist/store/store.d.ts.map +1 -1
  19. package/dist/store/workspace.d.ts +10 -10
  20. package/dist/store/workspace.d.ts.map +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
  23. package/dist/views/Collection/CollectionAuthentication.vue.js +2 -2
  24. package/dist/views/Collection/CollectionAuthentication.vue2.js +22 -19
  25. package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
  26. package/dist/views/Collection/CollectionSettings.vue.js +1 -1
  27. package/dist/views/Collection/CollectionSettings.vue2.js +1 -1
  28. package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -1
  29. package/dist/views/Collection/components/MarkdownInput.vue.js +2 -2
  30. package/dist/views/Collection/components/MarkdownInput.vue2.js +11 -11
  31. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  32. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
  33. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +29 -30
  34. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  35. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +3 -3
  36. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +33 -32
  37. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  38. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
  39. package/dist/views/Request/RequestSection/RequestBody.vue2.js +129 -126
  40. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  41. package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
  42. package/dist/views/Request/RequestSidebarItem.vue2.js +235 -241
  43. package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +1 -1
  44. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +12 -12
  45. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  46. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +1 -1
  47. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  48. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
  49. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +9 -9
  50. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  51. package/dist/views/Settings/SettingsGeneral.vue.js +2 -0
  52. package/package.json +12 -12
@@ -1,16 +1,16 @@
1
- import { defineComponent as ve, useCssVars as ge, computed as b, ref as be, resolveComponent as ye, openBlock as u, createElementBlock as C, normalizeClass as y, unref as n, createVNode as v, withCtx as c, createBlock as f, withModifiers as U, createElementVNode as s, toDisplayString as D, createCommentVNode as m, createTextVNode as E, renderSlot as Z, Fragment as _, renderList as he, nextTick as xe } from "vue";
2
- import { ScalarButton as R, ScalarIcon as h, ScalarSidebarGroupToggle as ee, ScalarTooltip as te } from "@scalar/components";
3
- import { Draggable as ke } from "@scalar/draggable";
4
- import { shouldIgnoreEntity as ie } from "@scalar/oas-utils/helpers";
5
- import { useRouter as we, RouterLink as ne } from "vue-router";
1
+ import { defineComponent as me, useCssVars as ve, computed as b, ref as ge, resolveComponent as be, openBlock as d, createElementBlock as M, normalizeClass as h, unref as n, createVNode as v, withCtx as c, createBlock as f, withModifiers as k, createElementVNode as s, toDisplayString as C, createCommentVNode as m, createTextVNode as N, renderSlot as Z, Fragment as he, renderList as ye, nextTick as xe } from "vue";
2
+ import { ScalarButton as q, ScalarIcon as y, ScalarSidebarGroupToggle as _, ScalarTooltip as ee } from "@scalar/components";
3
+ import { Draggable as we } from "@scalar/draggable";
4
+ import { shouldIgnoreEntity as te } from "@scalar/oas-utils/helpers";
5
+ import { useRouter as ke, RouterLink as ie } from "vue-router";
6
6
  import { useLayout as Ue } from "../../hooks/useLayout.js";
7
7
  import { useSidebar as qe } from "../../hooks/useSidebar.js";
8
- import { useActiveEntities as Ce } from "../../store/active-entities.js";
9
- import { PathId as S } from "../../routes.js";
10
- import De from "../../components/HttpMethod/HttpMethod.vue.js";
8
+ import { useActiveEntities as De } from "../../store/active-entities.js";
9
+ import { PathId as $ } from "../../routes.js";
10
+ import Ce from "../../components/HttpMethod/HttpMethod.vue.js";
11
11
  import { getModifiers as Re } from "../../libs/hot-keys.js";
12
12
  import { useWorkspace as Ie } from "../../store/store.js";
13
- const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { class: "flex flex-row items-center gap-1" }, Me = { class: "relative" }, $e = { class: "flex items-start" }, Ee = ["aria-expanded"], Se = { class: "flex flex-1 flex-row justify-between font-medium" }, Be = { class: "line-clamp-1 w-full break-all text-left" }, je = { class: "relative flex h-fit justify-end" }, We = { class: "w-content bg-b-1 z-100 text-xxs text-c-1 pointer-events-none z-10 grid max-w-10 gap-1.5 rounded p-2 leading-5 shadow-lg" }, Ae = { class: "text-c-2 flex items-center" }, Ne = { class: "text-pretty break-all" }, Oe = ["aria-expanded"], Pe = { class: "flex h-5 max-w-[14px] items-center justify-center" }, Ve = { class: "flex flex-1 flex-row justify-between" }, Fe = { class: "line-clamp-1 w-full break-all text-left font-medium" }, Ye = { class: "relative flex h-fit justify-end" }, He = { class: "w-content bg-b-1 z-100 text-xxs text-c-1 pointer-events-none z-10 grid max-w-10 gap-1.5 rounded p-2 leading-5 shadow-lg" }, Le = { class: "text-c-2 flex items-center" }, Ge = { class: "text-pretty break-all" }, Ke = { key: 3 }, P = "hover:bg-sidebar-active-b indent-padding-left", at = /* @__PURE__ */ ve({
13
+ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { class: "flex flex-row items-center gap-1" }, Me = { class: "relative" }, $e = { class: "flex items-start" }, Ee = { class: "flex flex-1 flex-row justify-between font-medium" }, Se = { class: "line-clamp-1 w-full break-all text-left" }, Be = { class: "relative flex h-fit justify-end" }, je = { class: "w-content bg-b-1 z-100 text-xxs text-c-1 pointer-events-none z-10 grid max-w-10 gap-1.5 rounded p-2 leading-5 shadow-lg" }, We = { class: "text-c-2 flex items-center" }, Ae = { class: "text-pretty break-all" }, Ne = ["aria-expanded"], Oe = { class: "flex h-5 max-w-[14px] items-center justify-center" }, Pe = { class: "flex flex-1 flex-row justify-between" }, Ve = { class: "line-clamp-1 w-full break-all text-left font-medium" }, Fe = { class: "relative flex h-fit justify-end" }, Ye = { class: "w-content bg-b-1 z-100 text-xxs text-c-1 pointer-events-none z-10 grid max-w-10 gap-1.5 rounded p-2 leading-5 shadow-lg" }, He = { class: "text-c-2 flex items-center" }, Le = { class: "text-pretty break-all" }, Ge = { key: 3 }, O = "hover:bg-sidebar-active-b indent-padding-left", lt = /* @__PURE__ */ me({
14
14
  __name: "RequestSidebarItem",
15
15
  props: {
16
16
  isDraggable: { type: Boolean, default: !1 },
@@ -20,45 +20,45 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
20
20
  menuItem: {}
21
21
  },
22
22
  emits: ["onDragEnd", "newTab", "openMenu"],
23
- setup(o, { emit: se }) {
24
- ge((e) => ({
25
- "0b708c94": re.value,
26
- "59b14f70": ue.value
23
+ setup(l, { emit: ne }) {
24
+ ve((e) => ({
25
+ "57af6a02": ae.value,
26
+ "6f52565f": re.value
27
27
  }));
28
- const oe = se, { activeCollection: le, activeRequest: V, activeRouterParams: ae, activeWorkspace: q } = Ce(), {
29
- collections: T,
30
- tags: z,
31
- requests: B,
32
- requestExamples: j,
33
- collectionMutators: W,
34
- tagMutators: F,
35
- requestMutators: A,
36
- requestExampleMutators: Y,
37
- events: H
38
- } = Ie(), x = we(), { collapsedSidebarFolders: I, toggleSidebarFolder: L } = qe(), { layout: p } = Ue(), i = b(() => {
39
- var g, l, d, k, $, Q;
40
- const e = T[o.uid], t = z[o.uid], r = B[o.uid], a = j[o.uid];
28
+ const se = ne, { activeCollection: oe, activeRequest: P, activeRouterParams: le, activeWorkspace: U } = De(), {
29
+ collections: R,
30
+ tags: I,
31
+ requests: E,
32
+ requestExamples: S,
33
+ collectionMutators: B,
34
+ tagMutators: V,
35
+ requestMutators: j,
36
+ requestExampleMutators: F,
37
+ events: Y
38
+ } = Ie(), x = ke(), { collapsedSidebarFolders: D, toggleSidebarFolder: H } = qe(), { layout: p } = Ue(), i = b(() => {
39
+ var o, u, g, z, J, Q;
40
+ const e = R[l.uid], t = I[l.uid], r = E[l.uid], a = S[l.uid];
41
41
  return e ? {
42
- title: ((g = e.info) == null ? void 0 : g.title) || "Untitled Collection",
42
+ title: ((o = e.info) == null ? void 0 : o.title) || "Untitled Collection",
43
43
  entity: e,
44
44
  resourceTitle: "Collection",
45
45
  children: e.children,
46
46
  icon: e["x-scalar-icon"],
47
47
  documentUrl: e.documentUrl,
48
48
  watchMode: e.watchMode,
49
- to: e.uid && ((l = e == null ? void 0 : e.info) == null ? void 0 : l.title) !== "Drafts" ? {
49
+ to: e.uid && ((u = e == null ? void 0 : e.info) == null ? void 0 : u.title) !== "Drafts" ? {
50
50
  name: "collection",
51
51
  params: {
52
- [S.Workspace]: (d = q.value) == null ? void 0 : d.uid,
53
- [S.Collection]: e.uid
52
+ [$.Workspace]: (g = U.value) == null ? void 0 : g.uid,
53
+ [$.Collection]: e.uid
54
54
  }
55
55
  } : void 0,
56
56
  warning: "This cannot be undone. You’re about to delete the collection and all folders and requests inside it.",
57
57
  edit: (w, X) => {
58
- W.edit(e.uid, "info.title", w), X && W.edit(e.uid, "x-scalar-icon", X);
58
+ B.edit(e.uid, "info.title", w), X && B.edit(e.uid, "x-scalar-icon", X);
59
59
  },
60
60
  delete: () => {
61
- q.value && W.delete(e, q.value);
61
+ U.value && B.delete(e, U.value);
62
62
  }
63
63
  } : t ? {
64
64
  title: t.name,
@@ -66,14 +66,14 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
66
66
  resourceTitle: "Tag",
67
67
  children: t.children,
68
68
  warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
69
- edit: (w) => F.edit(t.uid, "name", w),
70
- delete: () => o.parentUids[0] && F.delete(t, o.parentUids[0])
69
+ edit: (w) => V.edit(t.uid, "name", w),
70
+ delete: () => l.parentUids[0] && V.delete(t, l.parentUids[0])
71
71
  } : r ? {
72
72
  title: r.summary ?? r.path,
73
73
  to: {
74
74
  name: "request",
75
75
  params: {
76
- workspace: (k = q.value) == null ? void 0 : k.uid,
76
+ workspace: (z = U.value) == null ? void 0 : z.uid,
77
77
  request: r.uid
78
78
  }
79
79
  },
@@ -82,25 +82,25 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
82
82
  resourceTitle: "Request",
83
83
  warning: "This cannot be undone. You’re about to delete the request.",
84
84
  children: r.examples.slice(1),
85
- edit: (w) => A.edit(r.uid, "summary", w),
86
- delete: () => o.parentUids[0] && A.delete(r, o.parentUids[0])
85
+ edit: (w) => j.edit(r.uid, "summary", w),
86
+ delete: () => l.parentUids[0] && j.delete(r, l.parentUids[0])
87
87
  } : a != null && a.requestUid ? {
88
88
  title: a.name,
89
89
  to: {
90
90
  name: "request.examples",
91
91
  params: {
92
- workspace: ($ = q.value) == null ? void 0 : $.uid,
92
+ workspace: (J = U.value) == null ? void 0 : J.uid,
93
93
  request: a.requestUid,
94
94
  examples: a.uid
95
95
  }
96
96
  },
97
- method: (Q = B[a.requestUid]) == null ? void 0 : Q.method,
97
+ method: (Q = E[a.requestUid]) == null ? void 0 : Q.method,
98
98
  entity: a,
99
99
  resourceTitle: "Example",
100
100
  warning: "This cannot be undone. You’re about to delete the example from the request.",
101
101
  children: [],
102
- edit: (w) => Y.edit(a.uid, "name", w),
103
- delete: () => Y.delete(a)
102
+ edit: (w) => F.edit(a.uid, "name", w),
103
+ delete: () => F.delete(a)
104
104
  } : {
105
105
  title: "Unknown",
106
106
  entity: {
@@ -112,117 +112,117 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
112
112
  edit: () => null,
113
113
  delete: () => null
114
114
  };
115
- }), M = b(
115
+ }), T = b(
116
116
  () => i.value.entity.type === "collection" && i.value.title === "Drafts"
117
- ), re = b(() => o.parentUids.length ? p === "modal" ? `${(o.parentUids.length - 1) * 12}px` : `${o.parentUids.length * 12}px` : "12px"), ue = b(() => o.parentUids.length ? p === "modal" ? `${(o.parentUids.length - 1) * 12}px` : `${o.parentUids.length * 12}px` : "0px"), de = b(
117
+ ), ae = b(() => l.parentUids.length ? p === "modal" ? `${(l.parentUids.length - 1) * 12}px` : `${l.parentUids.length * 12}px` : "12px"), re = b(() => l.parentUids.length ? p === "modal" ? `${(l.parentUids.length - 1) * 12}px` : `${l.parentUids.length * 12}px` : "0px"), ue = b(
118
118
  () => {
119
119
  var e;
120
- return I[o.uid] || ((e = V.value) == null ? void 0 : e.uid) === o.uid && i.value.entity.examples.length > 1;
120
+ return D[l.uid] || ((e = P.value) == null ? void 0 : e.uid) === l.uid && i.value.entity.examples.length > 1;
121
121
  }
122
- ), pe = b(
122
+ ), de = b(
123
123
  () => {
124
124
  var e;
125
- return typeof x.currentRoute.value.name == "string" && x.currentRoute.value.name.startsWith("request") && ae.value[S.Request] === "default" && ((e = V.value) == null ? void 0 : e.uid) === o.uid;
125
+ return typeof x.currentRoute.value.name == "string" && x.currentRoute.value.name.startsWith("request") && le.value[$.Request] === "default" && ((e = P.value) == null ? void 0 : e.uid) === l.uid;
126
126
  }
127
- ), N = be(null), G = b(() => {
127
+ ), W = ge(null), L = b(() => {
128
128
  let e = 0.5, t = 0.5;
129
- if (!N.value)
129
+ if (!W.value)
130
130
  return { ceiling: e, floor: t };
131
- const { draggingItem: r } = N.value;
132
- return !T[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 };
133
- }), ce = (e, t) => !(p === "modal" || j[t.id] || T[e.id]), fe = (e, t) => {
134
- e && (Re(["default"]).some((g) => e[g]) ? oe("newTab", t.title || "", t.entity.uid) : t.to && x.push(t.to), xe(() => H.focusAddressBar.emit()));
131
+ const { draggingItem: r } = W.value;
132
+ return !R[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 };
133
+ }), pe = (e, t) => !(p === "modal" || S[t.id] || R[e.id]), ce = (e, t) => {
134
+ e && (Re(["default"]).some((o) => e[o]) ? se("newTab", t.title || "", t.entity.uid) : t.to && x.push(t.to), xe(() => Y.focusAddressBar.emit()));
135
135
  };
136
- function O(e) {
137
- var g, l, d;
138
- const t = o.parentUids[0] ? ((g = T[o.parentUids[0]]) == null ? void 0 : g.uid) || "" : e, r = o.parentUids[0] && ((l = z[e]) != null && l.name) ? { tags: [z[e].name] } : {}, a = A.add(
136
+ function A(e) {
137
+ var o, u, g;
138
+ const t = l.parentUids[0] ? ((o = R[l.parentUids[0]]) == null ? void 0 : o.uid) || "" : e, r = l.parentUids[0] && ((u = I[e]) != null && u.name) ? { tags: [I[e].name] } : {}, a = j.add(
139
139
  r,
140
140
  t
141
141
  );
142
142
  a && (x.push({
143
143
  name: "request",
144
144
  params: {
145
- workspace: (d = q.value) == null ? void 0 : d.uid,
145
+ workspace: (g = U.value) == null ? void 0 : g.uid,
146
146
  request: a.uid
147
147
  }
148
- }), H.hotKeys.emit({
148
+ }), Y.hotKeys.emit({
149
149
  focusAddressBar: new KeyboardEvent("keydown", { key: "l" })
150
150
  }));
151
151
  }
152
- const K = b(() => {
153
- const { uid: e, watchModeStatus: t } = le.value || {};
152
+ const G = b(() => {
153
+ const { uid: e, watchModeStatus: t } = oe.value || {};
154
154
  return e !== i.value.entity.uid ? "text-c-3" : t === "WATCHING" ? "text-c-1" : t === "ERROR" ? "text-red" : "text-c-3";
155
- }), J = b(() => i.value.title === "Drafts" && p !== "modal" && i.value.children.length > 0), me = b(() => {
156
- const e = B[o.uid];
155
+ }), K = b(() => i.value.title === "Drafts" && p !== "modal" && i.value.children.length > 0), fe = b(() => {
156
+ const e = E[l.uid];
157
157
  if (e)
158
- return !ie(e);
159
- const t = z[o.uid];
160
- return t ? !ie(t) : !0;
158
+ return !te(e);
159
+ const t = I[l.uid];
160
+ return t ? !te(t) : !0;
161
161
  });
162
162
  return (e, t) => {
163
- const r = ye("RequestSidebarItem", !0);
164
- return me.value ? (u(), C("li", {
163
+ const r = be("RequestSidebarItem", !0);
164
+ return fe.value ? (d(), M("li", {
165
165
  key: 0,
166
- class: y(["relative flex flex-row", [
166
+ class: h(["relative flex flex-row", [
167
167
  n(p) === "modal" && e.parentUids.length > 1 || n(p) !== "modal" && e.parentUids.length ? "before:bg-border indent-border-line-offset before:z-1 mb-[.5px] before:pointer-events-none before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full" : ""
168
168
  ]])
169
169
  }, [
170
- v(n(ke), {
170
+ v(n(we), {
171
171
  id: i.value.entity.uid,
172
172
  ref_key: "draggableRef",
173
- ref: N,
174
- ceiling: G.value.ceiling,
173
+ ref: W,
174
+ ceiling: L.value.ceiling,
175
175
  class: "gap-1/2 flex flex-1 flex-col text-sm",
176
- floor: G.value.floor,
176
+ floor: L.value.floor,
177
177
  isDraggable: e.isDraggable,
178
178
  isDroppable: e.isDroppable,
179
179
  parentIds: e.parentUids,
180
- onOnDragEnd: t[13] || (t[13] = (...a) => e.$emit("onDragEnd", ...a))
180
+ onOnDragEnd: t[12] || (t[12] = (...a) => e.$emit("onDragEnd", ...a))
181
181
  }, {
182
182
  default: c(() => {
183
- var a, g;
183
+ var a;
184
184
  return [
185
- (i.value.entity.type === "request" || i.value.entity.type === "requestExample") && i.value.to ? (u(), f(n(ne), {
185
+ (i.value.entity.type === "request" || i.value.entity.type === "requestExample") && i.value.to ? (d(), f(n(ie), {
186
186
  key: 0,
187
187
  class: "group no-underline",
188
188
  to: i.value.to,
189
- onClick: t[1] || (t[1] = U(
190
- (l) => fe(l, i.value),
189
+ onClick: t[1] || (t[1] = k(
190
+ (o) => ce(o, i.value),
191
191
  ["prevent"]
192
192
  ))
193
193
  }, {
194
- default: c(({ isExactActive: l }) => {
195
- var d, k;
194
+ default: c(({ isExactActive: o }) => {
195
+ var u, g;
196
196
  return [
197
197
  s("div", {
198
- class: y(["relative flex min-h-8 w-full cursor-pointer flex-row items-start justify-between gap-0.5 rounded py-1.5 pr-2", [
199
- P,
200
- l || pe.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
198
+ class: h(["relative flex min-h-8 w-full cursor-pointer flex-row items-start justify-between gap-0.5 rounded py-1.5 pr-2", [
199
+ O,
200
+ o || de.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
201
201
  ]])
202
202
  }, [
203
- s("span", Te, D(i.value.title || "Untitled"), 1),
203
+ s("span", Te, C(i.value.title || "Untitled"), 1),
204
204
  s("div", ze, [
205
205
  s("div", Me, [
206
- n(p) !== "modal" ? (u(), f(n(R), {
206
+ n(p) !== "modal" ? (d(), f(n(q), {
207
207
  key: 0,
208
- class: y(["hover:bg-b-3 hidden aspect-square h-fit px-0.5 py-0 opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
209
- flex: ((k = (d = e.menuItem) == null ? void 0 : d.item) == null ? void 0 : k.entity.uid) === i.value.entity.uid && e.menuItem.open
208
+ class: h(["hover:bg-b-3 hidden aspect-square h-fit px-0.5 py-0 opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
209
+ flex: ((g = (u = e.menuItem) == null ? void 0 : u.item) == null ? void 0 : g.entity.uid) === i.value.entity.uid && e.menuItem.open
210
210
  }]),
211
211
  size: "sm",
212
212
  type: "button",
213
213
  variant: "ghost",
214
- onClick: t[0] || (t[0] = U(
215
- ($) => e.$emit("openMenu", {
214
+ onClick: t[0] || (t[0] = k(
215
+ (z) => e.$emit("openMenu", {
216
216
  item: i.value,
217
217
  parentUids: e.parentUids,
218
- targetRef: $.currentTarget,
218
+ targetRef: z.currentTarget,
219
219
  open: !e.menuItem.open
220
220
  }),
221
221
  ["stop", "prevent"]
222
222
  ))
223
223
  }, {
224
224
  default: c(() => [
225
- v(n(h), {
225
+ v(n(y), {
226
226
  icon: "Ellipses",
227
227
  size: "md"
228
228
  })
@@ -231,9 +231,9 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
231
231
  }, 8, ["class"])) : m("", !0)
232
232
  ]),
233
233
  s("span", $e, [
234
- t[14] || (t[14] = E("   ")),
235
- t[15] || (t[15] = s("span", { class: "sr-only" }, "HTTP Method:", -1)),
236
- i.value.method ? (u(), f(n(De), {
234
+ t[13] || (t[13] = N("   ")),
235
+ t[14] || (t[14] = s("span", { class: "sr-only" }, "HTTP Method:", -1)),
236
+ i.value.method ? (d(), f(n(Ce), {
237
237
  key: 0,
238
238
  class: "font-bold",
239
239
  method: i.value.method
@@ -244,173 +244,167 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
244
244
  ];
245
245
  }),
246
246
  _: 1
247
- }, 8, ["to"])) : (n(p) !== "modal" || e.parentUids.length) && i.value.entity.type === "collection" ? (u(), C("div", {
247
+ }, 8, ["to"])) : (n(p) !== "modal" || e.parentUids.length) && i.value.entity.type === "collection" && i.value.to ? (d(), f(n(ie), {
248
248
  key: 1,
249
- "aria-expanded": !!n(I)[i.value.entity.uid],
250
- class: y(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", [
251
- P,
249
+ "aria-expanded": !!n(D)[i.value.entity.uid],
250
+ class: h(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 no-underline focus-visible:z-10", [
251
+ O,
252
252
  {
253
- "bg-sidebar-active-b text-sidebar-active-c transition-none": typeof n(x).currentRoute.value.name == "string" && n(x).currentRoute.value.name.startsWith("collection") && n(x).currentRoute.value.params[n(S).Collection] === i.value.entity.uid,
253
+ "bg-sidebar-active-b text-sidebar-active-c transition-none": typeof n(x).currentRoute.value.name == "string" && n(x).currentRoute.value.name.startsWith("collection") && n(x).currentRoute.value.params[n($).Collection] === i.value.entity.uid,
254
254
  "text-c-2": i.value.title === "Untitled Collection"
255
255
  }
256
- ]])
257
- }, [
258
- s("span", {
259
- class: "flex h-5 max-w-[14px] cursor-pointer items-center justify-center",
260
- onClick: t[2] || (t[2] = (l) => n(L)(i.value.entity.uid))
261
- }, [
262
- Z(e.$slots, "leftIcon", {}, () => [
263
- v(n(ee), {
264
- class: "text-c-3 shrink-0",
265
- open: !!n(I)[i.value.entity.uid]
266
- }, null, 8, ["open"])
267
- ], !0),
268
- t[16] || (t[16] = E("   "))
269
- ]),
270
- s("div", Se, [
271
- i.value.to ? (u(), f(n(ne), {
272
- key: 0,
273
- class: "w-full no-underline",
274
- to: i.value.to,
275
- onClick: t[3] || (t[3] = U(() => {
276
- }, ["stop", "prevent"]))
277
- }, {
278
- default: c(() => [
279
- s("span", Be, D(i.value.title), 1)
280
- ]),
281
- _: 1
282
- }, 8, ["to"])) : (u(), C(_, { key: 1 }, [
283
- E(D(i.value.title), 1)
284
- ], 64)),
285
- s("div", je, [
286
- s("div", {
287
- class: y(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
288
- flex: e.menuItem.open,
289
- hidden: !e.menuItem.open || ((a = e.menuItem.item) == null ? void 0 : a.entity.uid) !== i.value.entity.uid
290
- }])
256
+ ]]),
257
+ to: i.value.to
258
+ }, {
259
+ default: c(() => {
260
+ var o;
261
+ return [
262
+ s("span", {
263
+ class: "flex h-5 max-w-[14px] cursor-pointer items-center justify-center",
264
+ onClick: t[2] || (t[2] = k((u) => n(H)(i.value.entity.uid), ["stop", "prevent"]))
291
265
  }, [
292
- n(p) !== "modal" && !M.value || M.value && J.value ? (u(), f(n(R), {
293
- key: 0,
294
- class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
295
- size: "sm",
296
- variant: "ghost",
297
- onClick: t[4] || (t[4] = U(
298
- (l) => e.$emit("openMenu", {
299
- item: i.value,
300
- parentUids: e.parentUids,
301
- targetRef: l.currentTarget.parentNode,
302
- open: !0
303
- }),
304
- ["stop", "prevent"]
305
- ))
306
- }, {
307
- default: c(() => [
308
- v(n(h), {
309
- icon: "Ellipses",
310
- size: "md"
311
- })
312
- ]),
313
- _: 1
314
- })) : m("", !0),
315
- n(p) !== "modal" ? (u(), f(n(R), {
316
- key: 1,
317
- class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
318
- size: "sm",
319
- variant: "ghost",
320
- onClick: t[5] || (t[5] = U((l) => O(i.value.entity.uid), ["stop", "prevent"]))
321
- }, {
322
- default: c(() => [
323
- v(n(h), {
324
- icon: "Add",
325
- size: "md",
326
- thickness: "2"
327
- })
328
- ]),
329
- _: 1
330
- })) : m("", !0)
331
- ], 2),
332
- i.value.watchMode ? (u(), f(n(te), {
333
- key: 0,
334
- side: "right",
335
- sideOffset: 12
336
- }, {
337
- trigger: c(() => [
338
- v(n(h), {
339
- class: y(["ml-0.5 text-sm", K.value]),
340
- icon: "Watch",
341
- size: "md",
342
- thickness: "2"
343
- }, null, 8, ["class"])
344
- ]),
345
- content: c(() => [
346
- s("div", We, [
347
- s("div", Ae, [
348
- s("p", Ne, " Watching: " + D(i.value.documentUrl), 1)
349
- ])
350
- ])
351
- ]),
352
- _: 1
353
- })) : m("", !0),
354
- t[17] || (t[17] = s("span", null, " ", -1))
355
- ])
356
- ])
357
- ], 10, Ee)) : n(p) !== "modal" || e.parentUids.length ? (u(), C("button", {
266
+ Z(e.$slots, "leftIcon", {}, () => [
267
+ v(n(_), {
268
+ class: "text-c-3 shrink-0",
269
+ open: !!n(D)[i.value.entity.uid]
270
+ }, null, 8, ["open"])
271
+ ], !0),
272
+ t[15] || (t[15] = N(""))
273
+ ]),
274
+ s("div", Ee, [
275
+ s("span", Se, C(i.value.title), 1),
276
+ s("div", Be, [
277
+ s("div", {
278
+ class: h(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
279
+ flex: e.menuItem.open,
280
+ hidden: !e.menuItem.open || ((o = e.menuItem.item) == null ? void 0 : o.entity.uid) !== i.value.entity.uid
281
+ }])
282
+ }, [
283
+ n(p) !== "modal" && !T.value || T.value && K.value ? (d(), f(n(q), {
284
+ key: 0,
285
+ class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
286
+ size: "sm",
287
+ variant: "ghost",
288
+ onClick: t[3] || (t[3] = k(
289
+ (u) => e.$emit("openMenu", {
290
+ item: i.value,
291
+ parentUids: e.parentUids,
292
+ targetRef: u.currentTarget.parentNode,
293
+ open: !0
294
+ }),
295
+ ["stop", "prevent"]
296
+ ))
297
+ }, {
298
+ default: c(() => [
299
+ v(n(y), {
300
+ icon: "Ellipses",
301
+ size: "md"
302
+ })
303
+ ]),
304
+ _: 1
305
+ })) : m("", !0),
306
+ n(p) !== "modal" ? (d(), f(n(q), {
307
+ key: 1,
308
+ class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
309
+ size: "sm",
310
+ variant: "ghost",
311
+ onClick: t[4] || (t[4] = k((u) => A(i.value.entity.uid), ["stop", "prevent"]))
312
+ }, {
313
+ default: c(() => [
314
+ v(n(y), {
315
+ icon: "Add",
316
+ size: "md",
317
+ thickness: "2"
318
+ })
319
+ ]),
320
+ _: 1
321
+ })) : m("", !0)
322
+ ], 2),
323
+ i.value.watchMode ? (d(), f(n(ee), {
324
+ key: 0,
325
+ side: "right",
326
+ sideOffset: 12
327
+ }, {
328
+ trigger: c(() => [
329
+ v(n(y), {
330
+ class: h(["ml-0.5 text-sm", G.value]),
331
+ icon: "Watch",
332
+ size: "md",
333
+ thickness: "2"
334
+ }, null, 8, ["class"])
335
+ ]),
336
+ content: c(() => [
337
+ s("div", je, [
338
+ s("div", We, [
339
+ s("p", Ae, " Watching: " + C(i.value.documentUrl), 1)
340
+ ])
341
+ ])
342
+ ]),
343
+ _: 1
344
+ })) : m("", !0),
345
+ t[16] || (t[16] = s("span", null, " ", -1))
346
+ ])
347
+ ])
348
+ ];
349
+ }),
350
+ _: 3
351
+ }, 8, ["aria-expanded", "class", "to"])) : n(p) !== "modal" || e.parentUids.length ? (d(), M("button", {
358
352
  key: 2,
359
- "aria-expanded": !!n(I)[i.value.entity.uid],
360
- class: y(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", [P]]),
353
+ "aria-expanded": !!n(D)[i.value.entity.uid],
354
+ class: h(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", [O]]),
361
355
  type: "button",
362
- onClick: t[8] || (t[8] = (l) => n(L)(i.value.entity.uid))
356
+ onClick: t[7] || (t[7] = (o) => n(H)(i.value.entity.uid))
363
357
  }, [
364
- s("span", Pe, [
358
+ s("span", Oe, [
365
359
  Z(e.$slots, "leftIcon", {}, () => [
366
- v(n(ee), {
360
+ v(n(_), {
367
361
  class: "text-c-3 hover:text-c-1 shrink-0",
368
- open: !!n(I)[i.value.entity.uid]
362
+ open: !!n(D)[i.value.entity.uid]
369
363
  }, null, 8, ["open"])
370
364
  ], !0),
371
- t[18] || (t[18] = E("   "))
365
+ t[17] || (t[17] = N("   "))
372
366
  ]),
373
- s("div", Ve, [
374
- s("span", Fe, D(i.value.title), 1),
375
- s("div", Ye, [
367
+ s("div", Pe, [
368
+ s("span", Ve, C(i.value.title), 1),
369
+ s("div", Fe, [
376
370
  s("div", {
377
- class: y(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
371
+ class: h(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
378
372
  flex: e.menuItem.open,
379
- hidden: !e.menuItem.open || ((g = e.menuItem.item) == null ? void 0 : g.entity.uid) !== i.value.entity.uid
373
+ hidden: !e.menuItem.open || ((a = e.menuItem.item) == null ? void 0 : a.entity.uid) !== i.value.entity.uid
380
374
  }])
381
375
  }, [
382
- n(p) !== "modal" && !M.value || M.value && J.value ? (u(), f(n(R), {
376
+ n(p) !== "modal" && !T.value || T.value && K.value ? (d(), f(n(q), {
383
377
  key: 0,
384
378
  class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
385
379
  size: "sm",
386
380
  variant: "ghost",
387
- onClick: t[6] || (t[6] = U(
388
- (l) => e.$emit("openMenu", {
381
+ onClick: t[5] || (t[5] = k(
382
+ (o) => e.$emit("openMenu", {
389
383
  item: i.value,
390
384
  parentUids: e.parentUids,
391
- targetRef: l.currentTarget.parentNode,
385
+ targetRef: o.currentTarget.parentNode,
392
386
  open: !0
393
387
  }),
394
388
  ["stop", "prevent"]
395
389
  ))
396
390
  }, {
397
391
  default: c(() => [
398
- v(n(h), {
392
+ v(n(y), {
399
393
  icon: "Ellipses",
400
394
  size: "md"
401
395
  })
402
396
  ]),
403
397
  _: 1
404
398
  })) : m("", !0),
405
- n(p) !== "modal" ? (u(), f(n(R), {
399
+ n(p) !== "modal" ? (d(), f(n(q), {
406
400
  key: 1,
407
401
  class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
408
402
  size: "sm",
409
403
  variant: "ghost",
410
- onClick: t[7] || (t[7] = U((l) => O(i.value.entity.uid), ["stop", "prevent"]))
404
+ onClick: t[6] || (t[6] = k((o) => A(i.value.entity.uid), ["stop", "prevent"]))
411
405
  }, {
412
406
  default: c(() => [
413
- v(n(h), {
407
+ v(n(y), {
414
408
  icon: "Add",
415
409
  size: "md",
416
410
  thickness: "2"
@@ -419,56 +413,56 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
419
413
  _: 1
420
414
  })) : m("", !0)
421
415
  ], 2),
422
- i.value.watchMode ? (u(), f(n(te), {
416
+ i.value.watchMode ? (d(), f(n(ee), {
423
417
  key: 0,
424
418
  side: "right",
425
419
  sideOffset: 12
426
420
  }, {
427
421
  trigger: c(() => [
428
- v(n(h), {
429
- class: y(["ml-0.5 text-sm", K.value]),
422
+ v(n(y), {
423
+ class: h(["ml-0.5 text-sm", G.value]),
430
424
  icon: "Watch",
431
425
  size: "md",
432
426
  thickness: "2"
433
427
  }, null, 8, ["class"])
434
428
  ]),
435
429
  content: c(() => [
436
- s("div", He, [
437
- s("div", Le, [
438
- s("p", Ge, " Watching: " + D(i.value.documentUrl), 1)
430
+ s("div", Ye, [
431
+ s("div", He, [
432
+ s("p", Le, " Watching: " + C(i.value.documentUrl), 1)
439
433
  ])
440
434
  ])
441
435
  ]),
442
436
  _: 1
443
437
  })) : m("", !0),
444
- t[19] || (t[19] = s("span", null, " ", -1))
438
+ t[18] || (t[18] = s("span", null, " ", -1))
445
439
  ])
446
440
  ])
447
- ], 10, Oe)) : m("", !0),
448
- de.value ? (u(), C("ul", Ke, [
449
- (u(!0), C(_, null, he(i.value.children, (l) => (u(), f(r, {
450
- key: l,
451
- isDraggable: !n(j)[l],
452
- isDroppable: ce,
441
+ ], 10, Ne)) : m("", !0),
442
+ ue.value ? (d(), M("ul", Ge, [
443
+ (d(!0), M(he, null, ye(i.value.children, (o) => (d(), f(r, {
444
+ key: o,
445
+ isDraggable: !n(S)[o],
446
+ isDroppable: pe,
453
447
  menuItem: e.menuItem,
454
448
  parentUids: [...e.parentUids, e.uid],
455
- uid: l,
456
- onNewTab: t[9] || (t[9] = (d, k) => e.$emit("newTab", d, k)),
457
- onOnDragEnd: t[10] || (t[10] = (...d) => e.$emit("onDragEnd", ...d)),
458
- onOpenMenu: t[11] || (t[11] = (d) => e.$emit("openMenu", d))
449
+ uid: o,
450
+ onNewTab: t[8] || (t[8] = (u, g) => e.$emit("newTab", u, g)),
451
+ onOnDragEnd: t[9] || (t[9] = (...u) => e.$emit("onDragEnd", ...u)),
452
+ onOpenMenu: t[10] || (t[10] = (u) => e.$emit("openMenu", u))
459
453
  }, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
460
- i.value.children.length === 0 ? (u(), f(n(R), {
454
+ i.value.children.length === 0 ? (d(), f(n(q), {
461
455
  key: 0,
462
- class: y(["text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 text-xs", e.parentUids.length ? "pl-9" : ""]),
456
+ class: h(["text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 text-xs", e.parentUids.length ? "pl-9" : ""]),
463
457
  variant: "ghost",
464
- onClick: t[12] || (t[12] = (l) => O(i.value.entity.uid))
458
+ onClick: t[11] || (t[11] = (o) => A(i.value.entity.uid))
465
459
  }, {
466
460
  default: c(() => [
467
- v(n(h), {
461
+ v(n(y), {
468
462
  icon: "Add",
469
463
  size: "sm"
470
464
  }),
471
- t[20] || (t[20] = s("span", null, "Add Request", -1))
465
+ t[19] || (t[19] = s("span", null, "Add Request", -1))
472
466
  ]),
473
467
  _: 1
474
468
  }, 8, ["class"])) : m("", !0)
@@ -482,5 +476,5 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
482
476
  }
483
477
  });
484
478
  export {
485
- at as default
479
+ lt as default
486
480
  };