@scalar/api-client 2.2.44 → 2.2.45

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 (67) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  3. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  4. package/dist/components/CodeInput/CodeInput.vue2.js +37 -37
  5. package/dist/components/EmptyState.vue.d.ts +3 -0
  6. package/dist/components/EmptyState.vue.d.ts.map +1 -0
  7. package/dist/components/EmptyState.vue.js +7 -0
  8. package/dist/components/EmptyState.vue2.js +31 -0
  9. package/dist/components/Form/Form.vue.js +1 -1
  10. package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
  11. package/dist/components/ScalarHotkey.vue.js +12 -7
  12. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  13. package/dist/layouts/App/create-api-client-app.d.ts +2 -2
  14. package/dist/layouts/Modal/create-api-client-modal.d.ts +4 -4
  15. package/dist/layouts/Web/create-api-client-web.d.ts +2 -2
  16. package/dist/libs/create-client.d.ts +2 -2
  17. package/dist/libs/index.js +31 -33
  18. package/dist/libs/send-request/build-request-security.d.ts +17 -0
  19. package/dist/libs/send-request/build-request-security.d.ts.map +1 -0
  20. package/dist/libs/send-request/build-request-security.js +31 -0
  21. package/dist/libs/send-request/create-fetch-body.d.ts +18 -0
  22. package/dist/libs/send-request/create-fetch-body.d.ts.map +1 -0
  23. package/dist/libs/send-request/create-fetch-body.js +26 -0
  24. package/dist/libs/send-request/create-fetch-headers.d.ts +4 -0
  25. package/dist/libs/send-request/create-fetch-headers.d.ts.map +1 -0
  26. package/dist/libs/send-request/create-fetch-headers.js +11 -0
  27. package/dist/libs/send-request/create-fetch-query-params.d.ts +4 -0
  28. package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -0
  29. package/dist/libs/send-request/create-fetch-query-params.js +10 -0
  30. package/dist/libs/send-request/create-request-operation.d.ts +29 -0
  31. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -0
  32. package/dist/libs/send-request/create-request-operation.js +107 -0
  33. package/dist/libs/send-request/decode-buffer.d.ts +3 -0
  34. package/dist/libs/send-request/decode-buffer.d.ts.map +1 -0
  35. package/dist/libs/send-request/decode-buffer.js +9 -0
  36. package/dist/libs/send-request/index.d.ts +2 -1
  37. package/dist/libs/send-request/index.d.ts.map +1 -1
  38. package/dist/libs/send-request/index.js +4 -6
  39. package/dist/store/request-example.d.ts +2 -2
  40. package/dist/store/store.d.ts +2 -2
  41. package/dist/style.css +1 -1
  42. package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -1
  43. package/dist/views/Cookies/CookieModal.vue.js +2 -2
  44. package/dist/views/Cookies/CookieModal.vue2.js +11 -11
  45. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  46. package/dist/views/Cookies/Cookies.vue2.js +37 -36
  47. package/dist/views/Request/Request.vue2.js +1 -1
  48. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  49. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
  50. package/dist/views/Request/RequestSection/RequestBody.vue2.js +89 -87
  51. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  52. package/dist/views/Request/RequestSection/RequestParams.vue.js +47 -45
  53. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  54. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  55. package/dist/views/Request/RequestSection/RequestTable.vue2.js +8 -7
  56. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  57. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  58. package/dist/views/Request/RequestSidebarItem.vue2.js +97 -104
  59. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  60. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
  61. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +39 -57
  62. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  63. package/dist/views/Servers/Servers.vue2.js +74 -71
  64. package/package.json +10 -10
  65. package/dist/libs/send-request/send-request.d.ts +0 -51
  66. package/dist/libs/send-request/send-request.d.ts.map +0 -1
  67. package/dist/libs/send-request/send-request.js +0 -177
@@ -1,4 +1,4 @@
1
- import { defineComponent as F, resolveComponent as S, openBlock as r, createBlock as i, withCtx as t, createElementBlock as c, Fragment as f, renderList as $, createElementVNode as s, createVNode as d, unref as p, toDisplayString as b, normalizeClass as U, createSlots as T, createCommentVNode as x, createTextVNode as z, computed as D } from "vue";
1
+ import { defineComponent as F, resolveComponent as S, openBlock as r, createBlock as i, withCtx as t, createElementBlock as c, Fragment as f, renderList as $, createElementVNode as s, createVNode as d, unref as p, toDisplayString as b, normalizeClass as U, createSlots as T, createCommentVNode as k, createTextVNode as z, computed as D } from "vue";
2
2
  import w from "../../../components/CodeInput/CodeInput.vue.js";
3
3
  import q from "../../../components/DataTable/DataTable.vue.js";
4
4
  import y from "../../../components/DataTable/DataTableCell.vue.js";
@@ -22,7 +22,7 @@ const L = { class: "contents" }, j = { class: "sr-only" }, A = { class: "text-c-
22
22
  n("updateRow", e, o, m);
23
23
  }, h = (e) => {
24
24
  n("uploadFile", e);
25
- }, k = (e) => D(() => {
25
+ }, x = (e) => D(() => {
26
26
  if (e.type === "integer" && e.value !== void 0) {
27
27
  const o = Number(e.value);
28
28
  if (e.minimum !== void 0 && o < e.minimum)
@@ -55,13 +55,14 @@ const L = { class: "contents" }, j = { class: "sr-only" }, A = { class: "text-c-
55
55
  }, {
56
56
  trigger: t(() => [
57
57
  d(p(V), {
58
+ class: "text-c-1",
58
59
  icon: "Globe",
59
60
  size: "xs"
60
61
  })
61
62
  ]),
62
63
  content: t(() => o[4] || (o[4] = [
63
64
  s("div", { class: "grid gap-1.5 pointer-events-none max-w-[320px] w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, [
64
- s("div", { class: "flex items-center text-c-2" }, [
65
+ s("div", { class: "flex items-center text-c-1" }, [
65
66
  s("span", { class: "text-pretty" }, " Global cookies are shared across the whole workspace. ")
66
67
  ])
67
68
  ], -1)
@@ -126,14 +127,14 @@ const L = { class: "contents" }, j = { class: "sr-only" }, A = { class: "text-c-
126
127
  p(g)(l) ? (r(), i(O, {
127
128
  key: 0,
128
129
  item: { ...l, default: _(l) }
129
- }, null, 8, ["item"])) : x("", !0)
130
+ }, null, 8, ["item"])) : k("", !0)
130
131
  ]),
131
132
  _: 2
132
133
  }, [
133
- k(l).value ? {
134
+ x(l).value ? {
134
135
  name: "warning",
135
136
  fn: t(() => [
136
- z(b(k(l).value), 1)
137
+ z(b(x(l).value), 1)
137
138
  ]),
138
139
  key: "0"
139
140
  } : void 0
@@ -178,7 +179,7 @@ const L = { class: "contents" }, j = { class: "sr-only" }, A = { class: "text-c-
178
179
  ];
179
180
  }),
180
181
  _: 2
181
- }, 1024)) : x("", !0)
182
+ }, 1024)) : k("", !0)
182
183
  ]),
183
184
  _: 2
184
185
  }, 1024))), 128))
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AAuhBA,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEzE,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAQ1B,KAAK,WAAW,GAAG;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AAmRJ,iBAAS,cAAc;WAqgBT,OAAO,IAA6B;;oBA1wBpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAtDlB,KA7egB;;;;;;;oCA6ehB,KAxewC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4xBmB,GAAE,8CAA8C,GAAG,yBACpG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAghBlD;AAmCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;iBA90BH,OAAO;6EAs1BvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AAshBA,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAOzE,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAQ1B,KAAK,WAAW,GAAG;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AAmRJ,iBAAS,cAAc;WAkgBT,OAAO,IAA6B;;oBAvwBpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA3DlB,KAxeM;;;;;;;oCAweN,KAleK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4xBL,GAAG,8CAA8C,GAAG,yBACzC,GAAG,6DAEA,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0gBhB;AAoCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;iBA50BH,OAAO;6EAo1BvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import o from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9737fcc6"]]);
5
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-e3a4cd39"]]);
6
6
  export {
7
- a as default
7
+ p as default
8
8
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as ae, useCssVars as ue, computed as f, ref as de, resolveComponent as pe, openBlock as u, createElementBlock as U, normalizeClass as c, unref as n, createVNode as y, withCtx as g, createBlock as v, withModifiers as q, createElementVNode as r, toDisplayString as $, createCommentVNode as m, createTextVNode as W, renderSlot as fe, Fragment as me, renderList as ce } from "vue";
1
+ import { defineComponent as ae, useCssVars as ue, computed as f, ref as de, resolveComponent as pe, openBlock as u, createElementBlock as U, normalizeClass as h, unref as n, createVNode as y, withCtx as c, createBlock as g, withModifiers as q, createElementVNode as l, toDisplayString as S, createCommentVNode as m, createTextVNode as W, renderSlot as fe, Fragment as me, renderList as ce } from "vue";
2
2
  import { useActiveEntities as ge } from "../../store/active-entities.js";
3
- import { ScalarButton as D, ScalarIcon as x, ScalarTooltip as ve } from "@scalar/components";
4
- import { Draggable as be } from "@scalar/draggable";
3
+ import { ScalarButton as D, ScalarIcon as x, ScalarSidebarGroupToggle as ve, ScalarTooltip as be } from "@scalar/components";
4
+ import { Draggable as he } from "@scalar/draggable";
5
5
  import { shouldIgnoreEntity as F } from "@scalar/oas-utils/helpers";
6
- import { useRouter as he, RouterLink as ye } from "vue-router";
7
- import { PathId as xe } from "../../routes.js";
8
- import ke from "../../components/HttpMethod/HttpMethod.vue.js";
9
- import { useSidebar as we } from "../../hooks/useSidebar.js";
10
- import { getModifiers as Ue } from "../../libs/hot-keys.js";
11
- import { useWorkspace as qe } from "../../store/store.js";
12
- import { useLayout as De } from "../../hooks/useLayout.js";
13
- const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { class: "flex flex-row gap-1 items-center" }, Re = { class: "relative" }, Te = { class: "flex items-start" }, Me = ["aria-expanded"], Ee = { class: "flex h-5 items-center justify-center max-w-[14px]" }, $e = { class: "flex flex-1 flex-row justify-between" }, ze = { class: "break-all line-clamp-1 font-medium text-left w-full" }, Se = { class: "relative flex justify-end h-fit" }, Ne = { 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" }, Oe = { class: "flex items-center text-c-2" }, Pe = { class: "text-pretty break-all" }, je = { key: 2 }, Y = "hover:bg-sidebar-active-b indent-padding-left", Xe = /* @__PURE__ */ ae({
6
+ import { useRouter as ye, RouterLink as xe } from "vue-router";
7
+ import { PathId as ke } from "../../routes.js";
8
+ import we from "../../components/HttpMethod/HttpMethod.vue.js";
9
+ import { useSidebar as Ue } from "../../hooks/useSidebar.js";
10
+ import { getModifiers as qe } from "../../libs/hot-keys.js";
11
+ import { useWorkspace as De } from "../../store/store.js";
12
+ import { useLayout as Te } from "../../hooks/useLayout.js";
13
+ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { class: "flex flex-row gap-1 items-center" }, Re = { class: "relative" }, Me = { class: "flex items-start" }, Ee = ["aria-expanded"], Se = { class: "flex h-5 items-center justify-center max-w-[14px]" }, $e = { class: "flex flex-1 flex-row justify-between" }, ze = { class: "break-all line-clamp-1 font-medium text-left w-full" }, Ne = { class: "relative flex justify-end h-fit" }, Oe = { 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" }, Pe = { class: "flex items-center text-c-2" }, je = { class: "text-pretty break-all" }, Ae = { key: 2 }, Y = "hover:bg-sidebar-active-b indent-padding-left", Ze = /* @__PURE__ */ ae({
14
14
  __name: "RequestSidebarItem",
15
15
  props: {
16
16
  isDraggable: { type: Boolean, default: !1 },
@@ -22,22 +22,22 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
22
22
  emits: ["onDragEnd", "newTab", "openMenu"],
23
23
  setup(H, { emit: L }) {
24
24
  ue((e) => ({
25
- "248443bc": _.value,
26
- 97006748: ee.value
25
+ f5d4ba50: _.value,
26
+ b9977834: ee.value
27
27
  }));
28
- const s = H, G = L, { activeCollection: J, activeRequest: z, activeRouterParams: K, activeWorkspace: k } = ge(), {
29
- collections: C,
30
- tags: S,
31
- requests: I,
32
- requestExamples: R,
33
- collectionMutators: T,
28
+ const s = H, G = L, { activeCollection: J, activeRequest: $, activeRouterParams: K, activeWorkspace: k } = ge(), {
29
+ collections: T,
30
+ tags: z,
31
+ requests: C,
32
+ requestExamples: I,
33
+ collectionMutators: R,
34
34
  tagMutators: N,
35
35
  requestMutators: O,
36
36
  requestExampleMutators: P,
37
37
  events: Q
38
- } = qe(), X = he(), { collapsedSidebarFolders: M, toggleSidebarFolder: Z } = we(), { layout: p } = De(), i = f(() => {
39
- var o, d, b, w;
40
- const e = C[s.uid], t = S[s.uid], l = I[s.uid], a = R[s.uid];
38
+ } = De(), X = ye(), { collapsedSidebarFolders: M, toggleSidebarFolder: Z } = Ue(), { layout: p } = Te(), i = f(() => {
39
+ var o, d, v, w;
40
+ const e = T[s.uid], t = z[s.uid], r = C[s.uid], a = I[s.uid];
41
41
  return e ? {
42
42
  title: ((o = e.info) == null ? void 0 : o.title) ?? "Unknown title",
43
43
  entity: e,
@@ -47,11 +47,11 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
47
47
  documentUrl: e.documentUrl,
48
48
  watchMode: e.watchMode,
49
49
  warning: "This cannot be undone. You’re about to delete the collection and all folders and requests inside it.",
50
- edit: (h, V) => {
51
- T.edit(e.uid, "info.title", h), V && T.edit(e.uid, "x-scalar-icon", V);
50
+ edit: (b, V) => {
51
+ R.edit(e.uid, "info.title", b), V && R.edit(e.uid, "x-scalar-icon", V);
52
52
  },
53
53
  delete: () => {
54
- k.value && T.delete(e, k.value);
54
+ k.value && R.delete(e, k.value);
55
55
  }
56
56
  } : t ? {
57
57
  title: t.name,
@@ -59,44 +59,44 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
59
59
  resourceTitle: "Tag",
60
60
  children: t.children,
61
61
  warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
62
- edit: (h) => N.edit(t.uid, "name", h),
62
+ edit: (b) => N.edit(t.uid, "name", b),
63
63
  delete: () => {
64
64
  s.parentUids[0] && N.delete(t, s.parentUids[0]);
65
65
  }
66
- } : l ? {
67
- title: l.summary ?? l.path,
66
+ } : r ? {
67
+ title: r.summary ?? r.path,
68
68
  link: {
69
69
  name: "request",
70
70
  params: {
71
71
  workspace: (d = k.value) == null ? void 0 : d.uid,
72
- request: l.uid
72
+ request: r.uid
73
73
  }
74
74
  },
75
- method: l.method,
76
- entity: l,
75
+ method: r.method,
76
+ entity: r,
77
77
  resourceTitle: "Request",
78
78
  warning: "This cannot be undone. You’re about to delete the request.",
79
- children: l.examples.slice(1),
80
- edit: (h) => O.edit(l.uid, "summary", h),
79
+ children: r.examples.slice(1),
80
+ edit: (b) => O.edit(r.uid, "summary", b),
81
81
  delete: () => {
82
- s.parentUids[0] && O.delete(l, s.parentUids[0]);
82
+ s.parentUids[0] && O.delete(r, s.parentUids[0]);
83
83
  }
84
84
  } : a ? {
85
85
  title: a.name,
86
86
  link: {
87
87
  name: "request.examples",
88
88
  params: {
89
- workspace: (b = k.value) == null ? void 0 : b.uid,
89
+ workspace: (v = k.value) == null ? void 0 : v.uid,
90
90
  request: a.requestUid,
91
91
  examples: a.uid
92
92
  }
93
93
  },
94
- method: (w = I[a.requestUid]) == null ? void 0 : w.method,
94
+ method: (w = C[a.requestUid]) == null ? void 0 : w.method,
95
95
  entity: a,
96
96
  resourceTitle: "Example",
97
97
  warning: "This cannot be undone. You’re about to delete the example from the request.",
98
98
  children: [],
99
- edit: (h) => P.edit(a.uid, "name", h),
99
+ edit: (b) => P.edit(a.uid, "name", b),
100
100
  delete: () => P.delete(a)
101
101
  } : {
102
102
  title: "Unknown",
@@ -116,20 +116,20 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
116
116
  ), _ = f(() => s.parentUids.length ? p === "modal" ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "12px"), ee = f(() => s.parentUids.length ? p === "modal" ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "0px"), te = f(
117
117
  () => {
118
118
  var e;
119
- return M[s.uid] || ((e = z.value) == null ? void 0 : e.uid) === s.uid && i.value.entity.examples.length > 1;
119
+ return M[s.uid] || ((e = $.value) == null ? void 0 : e.uid) === s.uid && i.value.entity.examples.length > 1;
120
120
  }
121
121
  ), ie = f(
122
122
  () => {
123
123
  var e;
124
- return K.value[xe.Request] === "default" && ((e = z.value) == null ? void 0 : e.uid) === s.uid;
124
+ return K.value[ke.Request] === "default" && ((e = $.value) == null ? void 0 : e.uid) === s.uid;
125
125
  }
126
126
  ), E = de(null), A = f(() => {
127
127
  let e = 0.5, t = 0.5;
128
128
  if (!E.value) return { ceiling: e, floor: t };
129
- const { draggingItem: l } = E.value;
130
- return !C[l == null ? void 0 : l.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 };
131
- }), ne = (e, t) => !(p === "modal" || R[t.id] || C[e.id]), se = (e, t) => {
132
- e && (Ue(["default"]).some((o) => e[o]) ? G("newTab", t.title || "", t.entity.uid) : t.link && X.push(t.link));
129
+ const { draggingItem: r } = E.value;
130
+ 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 };
131
+ }), ne = (e, t) => !(p === "modal" || I[t.id] || T[e.id]), se = (e, t) => {
132
+ e && (qe(["default"]).some((o) => e[o]) ? G("newTab", t.title || "", t.entity.uid) : t.link && X.push(t.link));
133
133
  };
134
134
  function B() {
135
135
  Q.commandPalette.emit({
@@ -144,20 +144,20 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
144
144
  const { uid: e, watchModeStatus: t } = J.value || {};
145
145
  return e !== i.value.entity.uid ? "text-c-3" : t === "WATCHING" ? "text-c-1" : t === "ERROR" ? "text-red" : "text-c-3";
146
146
  }), re = f(() => i.value.title == "Drafts" && p !== "modal" && i.value.children.length > 0), le = f(() => {
147
- const e = I[s.uid];
147
+ const e = C[s.uid];
148
148
  if (e) return !F(e);
149
- const t = S[s.uid];
149
+ const t = z[s.uid];
150
150
  return t ? !F(t) : !0;
151
151
  });
152
152
  return (e, t) => {
153
- const l = pe("RequestSidebarItem", !0);
153
+ const r = pe("RequestSidebarItem", !0);
154
154
  return le.value ? (u(), U("li", {
155
155
  key: 0,
156
- class: c(["relative flex flex-row", [
156
+ class: h(["relative flex flex-row", [
157
157
  n(p) === "modal" && e.parentUids.length > 1 || n(p) !== "modal" && 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" : ""
158
158
  ]])
159
159
  }, [
160
- y(n(be), {
160
+ y(n(he), {
161
161
  id: i.value.entity.uid,
162
162
  ref_key: "draggableRef",
163
163
  ref: E,
@@ -169,10 +169,10 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
169
169
  parentIds: e.parentUids,
170
170
  onOnDragEnd: t[9] || (t[9] = (...a) => e.$emit("onDragEnd", ...a))
171
171
  }, {
172
- default: g(() => {
172
+ default: c(() => {
173
173
  var a;
174
174
  return [
175
- i.value.link ? (u(), v(n(ye), {
175
+ i.value.link ? (u(), g(n(xe), {
176
176
  key: 0,
177
177
  class: "group no-underline",
178
178
  to: i.value.link,
@@ -181,22 +181,22 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
181
181
  ["prevent"]
182
182
  ))
183
183
  }, {
184
- default: g(({ isExactActive: o }) => {
185
- var d, b;
184
+ default: c(({ isExactActive: o }) => {
185
+ var d, v;
186
186
  return [
187
- r("div", {
188
- class: c(["relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-0.5 py-1.5 pr-2 rounded w-full", [
187
+ l("div", {
188
+ class: h(["relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-0.5 py-1.5 pr-2 rounded w-full", [
189
189
  Y,
190
190
  o || ie.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
191
191
  ]])
192
192
  }, [
193
- r("span", Ce, $(i.value.title), 1),
194
- r("div", Ie, [
195
- r("div", Re, [
196
- n(p) !== "modal" ? (u(), v(n(D), {
193
+ l("span", Ce, S(i.value.title), 1),
194
+ l("div", Ie, [
195
+ l("div", Re, [
196
+ n(p) !== "modal" ? (u(), g(n(D), {
197
197
  key: 0,
198
- class: c(["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", {
199
- flex: ((b = (d = e.menuItem) == null ? void 0 : d.item) == null ? void 0 : b.entity.uid) === i.value.entity.uid && e.menuItem.open
198
+ class: h(["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", {
199
+ flex: ((v = (d = e.menuItem) == null ? void 0 : d.item) == null ? void 0 : v.entity.uid) === i.value.entity.uid && e.menuItem.open
200
200
  }]),
201
201
  size: "sm",
202
202
  type: "button",
@@ -211,7 +211,7 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
211
211
  ["stop", "prevent"]
212
212
  ))
213
213
  }, {
214
- default: g(() => [
214
+ default: c(() => [
215
215
  y(n(x), {
216
216
  icon: "Ellipses",
217
217
  size: "md"
@@ -220,10 +220,10 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
220
220
  _: 1
221
221
  }, 8, ["class"])) : m("", !0)
222
222
  ]),
223
- r("span", Te, [
223
+ l("span", Me, [
224
224
  t[10] || (t[10] = W("   ")),
225
- t[11] || (t[11] = r("span", { class: "sr-only" }, "HTTP Method:", -1)),
226
- i.value.method ? (u(), v(n(ke), {
225
+ t[11] || (t[11] = l("span", { class: "sr-only" }, "HTTP Method:", -1)),
226
+ i.value.method ? (u(), g(n(we), {
227
227
  key: 0,
228
228
  class: "font-bold",
229
229
  method: i.value.method
@@ -237,36 +237,29 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
237
237
  }, 8, ["to"])) : n(p) !== "modal" || e.parentUids.length ? (u(), U("button", {
238
238
  key: 1,
239
239
  "aria-expanded": n(M)[i.value.entity.uid],
240
- class: c(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", [Y]]),
240
+ 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", [Y]]),
241
241
  type: "button",
242
242
  onClick: t[4] || (t[4] = (o) => n(Z)(i.value.entity.uid))
243
243
  }, [
244
- r("span", Ee, [
244
+ l("span", Se, [
245
245
  fe(e.$slots, "leftIcon", {}, () => [
246
- r("div", {
247
- class: c({
248
- "rotate-90": n(M)[i.value.entity.uid]
249
- })
250
- }, [
251
- y(n(x), {
252
- class: "text-c-3 text-sm",
253
- icon: "ChevronRight",
254
- size: "md"
255
- })
256
- ], 2)
246
+ y(n(ve), {
247
+ class: "text-c-3 shrink-0",
248
+ open: n(M)[i.value.entity.uid]
249
+ }, null, 8, ["open"])
257
250
  ], !0),
258
251
  t[12] || (t[12] = W("   "))
259
252
  ]),
260
- r("div", $e, [
261
- r("span", ze, $(i.value.title), 1),
262
- r("div", Se, [
263
- r("div", {
264
- class: c(["items-center opacity-0 gap-px group-hover:opacity-100 group-hover:flex group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
253
+ l("div", $e, [
254
+ l("span", ze, S(i.value.title), 1),
255
+ l("div", Ne, [
256
+ l("div", {
257
+ class: h(["items-center opacity-0 gap-px group-hover:opacity-100 group-hover:flex group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
265
258
  flex: e.menuItem.open,
266
259
  hidden: !e.menuItem.open || ((a = e.menuItem.item) == null ? void 0 : a.entity.uid) !== i.value.entity.uid
267
260
  }])
268
261
  }, [
269
- n(p) !== "modal" && !j.value || j.value && re.value ? (u(), v(n(D), {
262
+ n(p) !== "modal" && !j.value || j.value && re.value ? (u(), g(n(D), {
270
263
  key: 0,
271
264
  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",
272
265
  size: "sm",
@@ -281,7 +274,7 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
281
274
  ["stop", "prevent"]
282
275
  ))
283
276
  }, {
284
- default: g(() => [
277
+ default: c(() => [
285
278
  y(n(x), {
286
279
  icon: "Ellipses",
287
280
  size: "md"
@@ -289,14 +282,14 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
289
282
  ]),
290
283
  _: 1
291
284
  })) : m("", !0),
292
- n(p) !== "modal" ? (u(), v(n(D), {
285
+ n(p) !== "modal" ? (u(), g(n(D), {
293
286
  key: 1,
294
287
  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",
295
288
  size: "sm",
296
289
  variant: "ghost",
297
290
  onClick: t[3] || (t[3] = q((o) => B(), ["stop", "prevent"]))
298
291
  }, {
299
- default: g(() => [
292
+ default: c(() => [
300
293
  y(n(x), {
301
294
  icon: "Add",
302
295
  size: "md",
@@ -306,57 +299,57 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
306
299
  _: 1
307
300
  })) : m("", !0)
308
301
  ], 2),
309
- i.value.watchMode ? (u(), v(n(ve), {
302
+ i.value.watchMode ? (u(), g(n(be), {
310
303
  key: 0,
311
304
  side: "right",
312
305
  sideOffset: 12
313
306
  }, {
314
- trigger: g(() => [
307
+ trigger: c(() => [
315
308
  y(n(x), {
316
- class: c(["ml-0.5 text-sm", oe.value]),
309
+ class: h(["ml-0.5 text-sm", oe.value]),
317
310
  icon: "Watch",
318
311
  size: "md",
319
312
  thickness: "2"
320
313
  }, null, 8, ["class"])
321
314
  ]),
322
- content: g(() => [
323
- r("div", Ne, [
324
- r("div", Oe, [
325
- r("p", Pe, " Watching: " + $(i.value.documentUrl), 1)
315
+ content: c(() => [
316
+ l("div", Oe, [
317
+ l("div", Pe, [
318
+ l("p", je, " Watching: " + S(i.value.documentUrl), 1)
326
319
  ])
327
320
  ])
328
321
  ]),
329
322
  _: 1
330
323
  })) : m("", !0),
331
- t[13] || (t[13] = r("span", null, " ", -1))
324
+ t[13] || (t[13] = l("span", null, " ", -1))
332
325
  ])
333
326
  ])
334
- ], 10, Me)) : m("", !0),
335
- te.value ? (u(), U("ul", je, [
336
- (u(!0), U(me, null, ce(i.value.children, (o) => (u(), v(l, {
327
+ ], 10, Ee)) : m("", !0),
328
+ te.value ? (u(), U("ul", Ae, [
329
+ (u(!0), U(me, null, ce(i.value.children, (o) => (u(), g(r, {
337
330
  key: o,
338
- isDraggable: !n(R)[o],
331
+ isDraggable: !n(I)[o],
339
332
  isDroppable: ne,
340
333
  menuItem: e.menuItem,
341
334
  parentUids: [...e.parentUids, e.uid],
342
335
  uid: o,
343
- onNewTab: t[5] || (t[5] = (d, b) => e.$emit("newTab", d, b)),
336
+ onNewTab: t[5] || (t[5] = (d, v) => e.$emit("newTab", d, v)),
344
337
  onOnDragEnd: t[6] || (t[6] = (...d) => e.$emit("onDragEnd", ...d)),
345
338
  onOpenMenu: t[7] || (t[7] = (d) => e.$emit("openMenu", d))
346
339
  }, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
347
- i.value.children.length === 0 ? (u(), v(n(D), {
340
+ i.value.children.length === 0 ? (u(), g(n(D), {
348
341
  key: 0,
349
- class: c(["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" : ""]),
342
+ class: h(["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" : ""]),
350
343
  variant: "ghost",
351
344
  onClick: t[8] || (t[8] = (o) => B())
352
345
  }, {
353
- default: g(() => [
346
+ default: c(() => [
354
347
  y(n(x), {
355
348
  class: "mx-0.5 h-2.5 w-2.5",
356
349
  icon: "Add",
357
350
  thickness: "3"
358
351
  }),
359
- t[14] || (t[14] = r("span", null, "Add Request", -1))
352
+ t[14] || (t[14] = l("span", null, "Add Request", -1))
360
353
  ]),
361
354
  _: 1
362
355
  }, 8, ["class"])) : m("", !0)
@@ -370,5 +363,5 @@ const Ce = { class: "break-all line-clamp-1 font-medium w-full pl-2" }, Ie = { c
370
363
  }
371
364
  });
372
365
  export {
373
- Xe as default
366
+ Ze as default
374
367
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":";AA4YA,wBAMG"}
1
+ {"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":";AA4UA,wBAMG"}
@@ -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-e4d261a0"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3cd362ca"]]);
5
5
  export {
6
- r as default
6
+ s as default
7
7
  };