@scalar/api-client 2.3.34 → 2.4.2

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