@scalar/api-client 2.0.60 → 2.0.63

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 (44) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  3. package/dist/components/CodeInput/CodeInput.vue2.js +16 -15
  4. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  5. package/dist/components/CodeInput/codeVariableWidget.js +35 -30
  6. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts +3 -0
  7. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -0
  8. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +114 -0
  9. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue2.js +4 -0
  10. package/dist/layouts/App/create-api-client-app.d.ts +879 -195
  11. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  12. package/dist/layouts/Modal/create-api-client-modal.d.ts +1758 -390
  13. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  14. package/dist/libs/create-client.d.ts +879 -195
  15. package/dist/libs/create-client.d.ts.map +1 -1
  16. package/dist/libs/event-busses/hot-keys-bus.d.ts +1 -1
  17. package/dist/libs/local-storage.js +1 -1
  18. package/dist/libs/normalizeHeaders.d.ts +1 -2
  19. package/dist/libs/normalizeHeaders.d.ts.map +1 -1
  20. package/dist/libs/sendRequest.d.ts +4 -5
  21. package/dist/libs/sendRequest.d.ts.map +1 -1
  22. package/dist/libs/sendRequest.js +104 -86
  23. package/dist/store/workspace.d.ts +1754 -389
  24. package/dist/store/workspace.d.ts.map +1 -1
  25. package/dist/store/workspace.js +219 -216
  26. package/dist/style.css +1 -1
  27. package/dist/views/Environment/Environment.vue2.js +12 -12
  28. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  29. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +54 -52
  30. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  31. package/dist/views/Request/Request.vue.js +4 -4
  32. package/dist/views/Request/Request.vue2.js +91 -89
  33. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  34. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  35. package/dist/views/Request/RequestSection/RequestTable.vue2.js +1 -1
  36. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  37. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  38. package/dist/views/Request/RequestSidebarItem.vue2.js +82 -80
  39. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +2 -2
  40. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  41. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +20 -20
  42. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  43. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +47 -42
  44. package/package.json +8 -8
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA2fA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAA;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAA;AACzE,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;AAgQlD,iBAAS,cAAc;gBA5NT,IAAI;;gBAAJ,IAAI;EAy5BjB;AACD,QAAA,MAAM,eAAe;IAr7BjB;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;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CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import o from "../../_virtual/_plugin-vue_export-helper.js";
5
- const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-12eca20d"]]);
5
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-fc61cd81"]]);
6
6
  export {
7
- p as default
7
+ a as default
8
8
  };
@@ -1,15 +1,15 @@
1
- import { defineComponent as he, useCssVars as Ue, computed as o, ref as J, resolveComponent as we, openBlock as f, createElementBlock as I, Fragment as Q, createElementVNode as l, normalizeClass as b, unref as i, createVNode as d, withCtx as u, createBlock as g, withModifiers as X, toDisplayString as Y, createCommentVNode as y, createTextVNode as D, renderSlot as ye, withDirectives as De, renderList as ke, vShow as qe, withKeys as $e, pushScopeId as Re, popScopeId as Ce } from "vue";
1
+ import { defineComponent as he, useCssVars as Ue, computed as o, ref as J, resolveComponent as we, openBlock as f, createElementBlock as I, Fragment as Q, createElementVNode as l, normalizeClass as g, unref as s, createVNode as d, withCtx as u, createBlock as h, withModifiers as X, toDisplayString as Y, createCommentVNode as y, createTextVNode as D, renderSlot as ye, withDirectives as De, renderList as ke, vShow as qe, withKeys as $e, pushScopeId as Re, popScopeId as Ce } from "vue";
2
2
  import Se from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
3
3
  import { PathId as E } from "../../router.js";
4
4
  import { useWorkspace as xe } from "../../store/workspace.js";
5
5
  import { useModal as Z, ScalarContextMenu as _, ScalarIcon as Me, ScalarModal as ee, ScalarTextField as Te, ScalarButton as te } from "@scalar/components";
6
6
  import { Draggable as Ie } from "@scalar/draggable";
7
7
  import { useRouter as Ee, RouterLink as Ne } from "vue-router";
8
- import R from "./RequestSidebarItemMenu.vue.js";
8
+ import S from "./RequestSidebarItemMenu.vue.js";
9
9
  import ze from "../../components/HttpMethod/HttpMethod.vue.js";
10
10
  import { useSidebar as Ve } from "../../hooks/useSidebar.js";
11
11
  import { getModifiers as Oe } from "../../libs/event-busses/hot-keys-bus.js";
12
- const Be = (h) => (Re("data-v-12eca20d"), h = h(), Ce(), h), Fe = { class: "flex flex-row gap-1 items-center" }, je = { class: "relative" }, Pe = { class: "flex items-start" }, Ke = { class: "z-10 flex h-5 items-center justify-center max-w-[14px]" }, Le = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, We = { class: "relative flex h-fit" }, Ae = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("span", null, " ", -1)), He = { key: 2 }, Ge = { class: "flex gap-3" }, ie = "hover:bg-sidebar-active-b indent-padding-left", lt = /* @__PURE__ */ he({
12
+ const Be = (U) => (Re("data-v-fc61cd81"), U = U(), Ce(), U), Fe = { class: "flex flex-row gap-1 items-center" }, je = { class: "relative" }, Pe = { class: "flex items-start" }, Ke = { class: "z-10 flex h-5 items-center justify-center max-w-[14px]" }, Le = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, We = { class: "relative flex h-fit" }, Ae = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("span", null, " ", -1)), He = { key: 2 }, Ge = { class: "flex gap-3" }, ie = "hover:bg-sidebar-active-b indent-padding-left", lt = /* @__PURE__ */ he({
13
13
  __name: "RequestSidebarItem",
14
14
  props: {
15
15
  isDraggable: { type: Boolean, default: !1 },
@@ -18,119 +18,119 @@ const Be = (h) => (Re("data-v-12eca20d"), h = h(), Ce(), h), Fe = { class: "flex
18
18
  item: {}
19
19
  },
20
20
  emits: ["onDragEnd", "newTab"],
21
- setup(h, { emit: se }) {
21
+ setup(U, { emit: se }) {
22
22
  Ue((e) => ({
23
- "4347e458": de.value,
24
- a65fb12c: ue.value
23
+ "107d727c": de.value,
24
+ "11a7c088": ue.value
25
25
  }));
26
- const t = h, re = se, {
26
+ const t = U, re = se, {
27
27
  activeRequest: N,
28
- activeRouterParams: C,
29
- activeWorkspace: U,
28
+ activeRouterParams: x,
29
+ activeWorkspace: w,
30
30
  collections: z,
31
31
  folders: le,
32
- isReadOnly: a,
32
+ isReadOnly: n,
33
33
  requests: V,
34
- requestExamples: S,
34
+ requestExamples: M,
35
35
  collectionMutators: O,
36
36
  folderMutators: B,
37
37
  requestMutators: F,
38
38
  requestExampleMutators: j,
39
- router: ae
40
- } = xe(), { replace: P } = Ee(), { collapsedSidebarFolders: K, toggleSidebarFolder: ne } = Ve(), oe = o(() => "childUids" in t.item), L = o(() => "spec" in t.item), W = o(() => "summary" in t.item), de = o(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), ue = o(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), k = (e) => {
41
- var s;
42
- return "spec" in e ? (s = e.spec.info) == null ? void 0 : s.title : "summary" in e ? e.summary || e.path : "name" in e ? e.name : "";
39
+ router: ne
40
+ } = xe(), { replace: P } = Ee(), { collapsedSidebarFolders: K, toggleSidebarFolder: ae } = Ve(), oe = o(() => "childUids" in t.item), L = o(() => "spec" in t.item), W = o(() => "summary" in t.item), de = o(() => t.parentUids.length ? n.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), ue = o(() => t.parentUids.length ? n.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), k = (e) => {
41
+ var i;
42
+ return "spec" in e ? (i = e.spec.info) == null ? void 0 : i.title : "summary" in e ? e.summary || e.path : "name" in e ? e.name : "";
43
43
  }, me = o(() => ("requestUid" in t.item ? V[t.item.requestUid] : t.item).method), fe = o(
44
44
  () => {
45
45
  var e;
46
46
  return K[t.item.uid] || ((e = N.value) == null ? void 0 : e.uid) === t.item.uid && t.item.childUids.length > 1;
47
47
  }
48
- ), A = () => "requestUid" in t.item ? `/workspace/${U.value.uid}/request/${t.item.requestUid}/examples/${t.item.uid}` : `/workspace/${U.value.uid}/request/${t.item.uid}`, pe = o(
49
- () => C.value[E.Request] === "default" && N.value.uid === t.item.uid
50
- ), x = J(null), H = o(() => {
51
- let e = 0.5, s = 0.5;
52
- if (!x.value) return { ceiling: e, floor: s };
53
- const { draggingItem: v } = x.value;
54
- return !z[v == null ? void 0 : v.id] && L.value ? (e = 1, s = 0) : oe.value && !W.value && !L.value && (e = 0.8, s = 0.2), { ceiling: e, floor: s };
55
- }), ce = (e, s) => !(U.value.isReadOnly || S[s.id] || z[e.id]), p = J(""), q = Z(), w = Z(), G = () => {
48
+ ), A = () => "requestUid" in t.item ? `/workspace/${w.value.uid}/request/${t.item.requestUid}/examples/${t.item.uid}` : `/workspace/${w.value.uid}/request/${t.item.uid}`, pe = o(
49
+ () => x.value[E.Request] === "default" && N.value.uid === t.item.uid
50
+ ), T = J(null), H = o(() => {
51
+ let e = 0.5, i = 0.5;
52
+ if (!T.value) return { ceiling: e, floor: i };
53
+ const { draggingItem: b } = T.value;
54
+ return !z[b == null ? void 0 : b.id] && L.value ? (e = 1, i = 0) : oe.value && !W.value && !L.value && (e = 0.8, i = 0.2), { ceiling: e, floor: i };
55
+ }), ce = (e, i) => !(w.value.isReadOnly || M[i.id] || z[e.id]), p = J(""), q = Z(), v = Z(), G = () => {
56
56
  "summary" in t.item ? F.edit(t.item.uid, "summary", p.value) : "requestUid" in t.item ? j.edit(t.item.uid, "name", p.value) : "spec" in t.item ? O.edit(t.item.uid, "spec.info.title", p.value) : B.edit(t.item.uid, "name", p.value), q.hide();
57
- }, M = () => {
57
+ }, $ = () => {
58
58
  p.value = k(t.item) || "", q.show();
59
59
  }, ve = () => {
60
- "requestUid" in t.item ? (j.delete(t.item), C.value[E.Examples] === t.item.uid && P(`/workspace/${U.value}/request/default`)) : "summary" in t.item ? (F.delete(
60
+ "requestUid" in t.item ? (j.delete(t.item), x.value[E.Examples] === t.item.uid && P(`/workspace/${w.value}/request/default`)) : "summary" in t.item ? (F.delete(
61
61
  t.item,
62
62
  t.parentUids[t.parentUids.length - 1]
63
- ), C.value[E.Request] === t.item.uid && P(`/workspace/${U.value.uid}/request/default`)) : "spec" in t.item ? O.delete(t.item) : "name" in t.item && B.delete(
63
+ ), x.value[E.Request] === t.item.uid && P(`/workspace/${w.value.uid}/request/default`)) : "spec" in t.item ? O.delete(t.item) : "name" in t.item && B.delete(
64
64
  t.item,
65
65
  t.parentUids[t.parentUids.length - 1]
66
66
  );
67
67
  }, be = o(() => {
68
68
  var e;
69
69
  return "summary" in t.item ? t.item.summary || "" : "name" in t.item ? t.item.name || "" : "spec" in t.item && ((e = t.item.spec.info) == null ? void 0 : e.title) || "";
70
- }), c = o(() => "requestUid" in t.item ? "Example" : "summary" in t.item ? "Request" : "spec" in t.item ? "Collection" : "Folder"), ge = (e, s) => {
71
- e && (Oe(["default"]).some(($) => e[$]) ? re("newTab", k(s) || "", s.uid) : ae.push(A()));
70
+ }), c = o(() => "requestUid" in t.item ? "Example" : "summary" in t.item ? "Request" : "spec" in t.item ? "Collection" : "Folder"), ge = (e, i) => {
71
+ e && (Oe(["default"]).some((R) => e[R]) ? re("newTab", k(i) || "", i.uid) : ne.push(A()));
72
72
  };
73
- return (e, s) => {
74
- const v = we("RequestSidebarItem", !0);
73
+ return (e, i) => {
74
+ const b = we("RequestSidebarItem", !0);
75
75
  return f(), I(Q, null, [
76
76
  l("div", {
77
- class: b(["relative flex flex-row", [
78
- i(a) && e.parentUids.length > 1 || !i(a) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset" : ""
77
+ class: g(["relative flex flex-row", [
78
+ s(n) && e.parentUids.length > 1 || !s(n) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset" : ""
79
79
  ]])
80
80
  }, [
81
- d(i(Ie), {
81
+ d(s(Ie), {
82
82
  id: e.item.uid,
83
83
  ref_key: "draggableRef",
84
- ref: x,
84
+ ref: T,
85
85
  ceiling: H.value.ceiling,
86
86
  class: "flex flex-1 flex-col gap-[.5px] text-sm",
87
87
  floor: H.value.floor,
88
88
  isDraggable: e.isDraggable,
89
89
  isDroppable: e.isDroppable,
90
90
  parentIds: e.parentUids,
91
- onOnDragEnd: s[6] || (s[6] = (...m) => e.$emit("onDragEnd", ...m))
91
+ onOnDragEnd: i[7] || (i[7] = (...m) => e.$emit("onDragEnd", ...m))
92
92
  }, {
93
93
  default: u(() => {
94
- var m, $;
94
+ var m, R;
95
95
  return [
96
- "summary" in e.item || "requestUid" in e.item ? (f(), g(i(Ne), {
96
+ "summary" in e.item || "requestUid" in e.item ? (f(), h(s(Ne), {
97
97
  key: 0,
98
98
  class: "no-underline",
99
99
  to: A(),
100
- onClick: s[2] || (s[2] = X(
100
+ onClick: i[2] || (i[2] = X(
101
101
  (r) => ge(r, e.item),
102
102
  ["prevent"]
103
103
  ))
104
104
  }, {
105
105
  default: u(({ isExactActive: r }) => [
106
- d(i(_), { disabled: i(a) }, {
106
+ d(s(_), { disabled: s(n) }, {
107
107
  trigger: u(() => [
108
108
  l("div", {
109
- class: b(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover w-full", [
109
+ class: g(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover w-full", [
110
110
  ie,
111
111
  r || pe.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
112
112
  ]]),
113
113
  tabindex: "0"
114
114
  }, [
115
115
  l("span", {
116
- class: b(["z-10 font-medium w-full pl-2 word-break-break-word", {
117
- "editable-sidebar-hover-item": !i(a)
116
+ class: g(["z-10 font-medium w-full pl-2 word-break-break-word", {
117
+ "editable-sidebar-hover-item": !s(n)
118
118
  }])
119
119
  }, Y(k(e.item)), 3),
120
120
  l("div", Fe, [
121
121
  l("div", je, [
122
- i(a) ? y("", !0) : (f(), g(R, {
122
+ s(n) ? y("", !0) : (f(), h(S, {
123
123
  key: 0,
124
124
  item: e.item,
125
125
  parentUids: e.parentUids,
126
126
  resourceTitle: c.value,
127
- onDelete: s[0] || (s[0] = (n) => i(w).show()),
128
- onRename: M
127
+ onDelete: i[0] || (i[0] = (a) => s(v).show()),
128
+ onRename: $
129
129
  }, null, 8, ["item", "parentUids", "resourceTitle"]))
130
130
  ]),
131
131
  l("span", Pe, [
132
132
  D("   "),
133
- d(i(ze), {
133
+ d(s(ze), {
134
134
  class: "font-bold",
135
135
  method: me.value
136
136
  }, null, 8, ["method"])
@@ -139,39 +139,39 @@ const Be = (h) => (Re("data-v-12eca20d"), h = h(), Ce(), h), Fe = { class: "flex
139
139
  ], 2)
140
140
  ]),
141
141
  content: u(() => [
142
- d(R, {
142
+ d(S, {
143
143
  item: e.item,
144
144
  parentUids: e.parentUids,
145
145
  resourceTitle: c.value,
146
146
  static: "",
147
- onDelete: s[1] || (s[1] = (n) => i(w).show()),
148
- onRename: M
147
+ onDelete: i[1] || (i[1] = (a) => s(v).show()),
148
+ onRename: $
149
149
  }, null, 8, ["item", "parentUids", "resourceTitle"])
150
150
  ]),
151
151
  _: 2
152
152
  }, 1032, ["disabled"])
153
153
  ]),
154
154
  _: 1
155
- }, 8, ["to"])) : !i(a) || e.parentUids.length ? (f(), g(i(_), {
155
+ }, 8, ["to"])) : !s(n) || e.parentUids.length ? (f(), h(s(_), {
156
156
  key: 1,
157
- disabled: i(a) || (($ = (m = e.item.spec) == null ? void 0 : m.info) == null ? void 0 : $.title) === "Drafts"
157
+ disabled: s(n) || ((R = (m = e.item.spec) == null ? void 0 : m.info) == null ? void 0 : R.title) === "Drafts"
158
158
  }, {
159
159
  trigger: u(() => {
160
- var r, n;
160
+ var r, a;
161
161
  return [
162
162
  l("button", {
163
- class: b(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", ie]),
163
+ class: g(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", ie]),
164
164
  type: "button",
165
- onClick: s[3] || (s[3] = (T) => i(ne)(e.item.uid))
165
+ onClick: i[4] || (i[4] = (C) => s(ae)(e.item.uid))
166
166
  }, [
167
167
  l("span", Ke, [
168
168
  ye(e.$slots, "leftIcon", {}, () => [
169
169
  l("div", {
170
- class: b({
171
- "rotate-90": i(K)[e.item.uid]
170
+ class: g({
171
+ "rotate-90": s(K)[e.item.uid]
172
172
  })
173
173
  }, [
174
- d(i(Me), {
174
+ d(s(Me), {
175
175
  class: "text-c-3 text-sm",
176
176
  icon: "ChevronRight",
177
177
  size: "sm",
@@ -183,16 +183,18 @@ const Be = (h) => (Re("data-v-12eca20d"), h = h(), Ce(), h), Fe = { class: "flex
183
183
  ]),
184
184
  l("div", Le, [
185
185
  l("span", {
186
- class: b(["z-10 font-medium text-left w-full word-break-break-word", {
187
- "editable-sidebar-hover-item": !i(a)
186
+ class: g(["z-10 font-medium text-left w-full word-break-break-word", {
187
+ "editable-sidebar-hover-item": !s(n)
188
188
  }])
189
189
  }, Y(k(e.item)), 3),
190
190
  l("div", We, [
191
- !i(a) && ((n = (r = e.item.spec) == null ? void 0 : r.info) == null ? void 0 : n.title) !== "Drafts" ? (f(), g(R, {
191
+ !s(n) && ((a = (r = e.item.spec) == null ? void 0 : r.info) == null ? void 0 : a.title) !== "Drafts" ? (f(), h(S, {
192
192
  key: 0,
193
193
  item: e.item,
194
194
  parentUids: e.parentUids,
195
- resourceTitle: c.value
195
+ resourceTitle: c.value,
196
+ onDelete: i[3] || (i[3] = (C) => s(v).show()),
197
+ onRename: $
196
198
  }, null, 8, ["item", "parentUids", "resourceTitle"])) : y("", !0),
197
199
  Ae
198
200
  ])
@@ -201,16 +203,16 @@ const Be = (h) => (Re("data-v-12eca20d"), h = h(), Ce(), h), Fe = { class: "flex
201
203
  ];
202
204
  }),
203
205
  content: u(() => {
204
- var r, n;
206
+ var r, a;
205
207
  return [
206
- !i(a) && ((n = (r = e.item.spec) == null ? void 0 : r.info) == null ? void 0 : n.title) !== "Drafts" ? (f(), g(R, {
208
+ !s(n) && ((a = (r = e.item.spec) == null ? void 0 : r.info) == null ? void 0 : a.title) !== "Drafts" ? (f(), h(S, {
207
209
  key: 0,
208
210
  item: e.item,
209
211
  parentUids: e.parentUids,
210
212
  resourceTitle: c.value,
211
213
  static: "",
212
- onDelete: s[4] || (s[4] = (T) => i(w).show()),
213
- onRename: M
214
+ onDelete: i[5] || (i[5] = (C) => s(v).show()),
215
+ onRename: $
214
216
  }, null, 8, ["item", "parentUids", "resourceTitle"])) : y("", !0)
215
217
  ];
216
218
  }),
@@ -220,14 +222,14 @@ const Be = (h) => (Re("data-v-12eca20d"), h = h(), Ce(), h), Fe = { class: "flex
220
222
  _: 3
221
223
  }, 8, ["disabled"])) : y("", !0),
222
224
  "childUids" in e.item ? De((f(), I("div", He, [
223
- (f(!0), I(Q, null, ke(W.value ? e.item.childUids.slice(1) : e.item.childUids, (r) => (f(), g(v, {
225
+ (f(!0), I(Q, null, ke(W.value ? e.item.childUids.slice(1) : e.item.childUids, (r) => (f(), h(b, {
224
226
  key: r,
225
- isDraggable: !i(S)[r],
227
+ isDraggable: !s(M)[r],
226
228
  isDroppable: ce,
227
- item: i(le)[r] || i(V)[r] || i(S)[r],
229
+ item: s(le)[r] || s(V)[r] || s(M)[r],
228
230
  parentUids: [...e.parentUids, e.item.uid],
229
- onNewTab: (n, T) => e.$emit("newTab", n, T),
230
- onOnDragEnd: s[5] || (s[5] = (...n) => e.$emit("onDragEnd", ...n))
231
+ onNewTab: (a, C) => e.$emit("newTab", a, C),
232
+ onOnDragEnd: i[6] || (i[6] = (...a) => e.$emit("onDragEnd", ...a))
231
233
  }, null, 8, ["isDraggable", "item", "parentUids", "onNewTab"]))), 128))
232
234
  ], 512)), [
233
235
  [qe, fe.value]
@@ -237,44 +239,44 @@ const Be = (h) => (Re("data-v-12eca20d"), h = h(), Ce(), h), Fe = { class: "flex
237
239
  _: 3
238
240
  }, 8, ["id", "ceiling", "floor", "isDraggable", "isDroppable", "parentIds"])
239
241
  ], 2),
240
- d(i(ee), {
242
+ d(s(ee), {
241
243
  size: "sm",
242
- state: i(w),
244
+ state: s(v),
243
245
  title: `Delete ${c.value}`
244
246
  }, {
245
247
  default: u(() => [
246
248
  d(Se, {
247
249
  variableName: be.value,
248
250
  warningMessage: "Warning: Deleting this will delete all items inside of this",
249
- onClose: s[7] || (s[7] = (m) => i(w).hide()),
251
+ onClose: i[8] || (i[8] = (m) => s(v).hide()),
250
252
  onDelete: ve
251
253
  }, null, 8, ["variableName"])
252
254
  ]),
253
255
  _: 1
254
256
  }, 8, ["state", "title"]),
255
- d(i(ee), {
256
- state: i(q),
257
+ d(s(ee), {
258
+ state: s(q),
257
259
  title: `Rename ${c.value}`
258
260
  }, {
259
261
  default: u(() => [
260
- d(i(Te), {
262
+ d(s(Te), {
261
263
  modelValue: p.value,
262
- "onUpdate:modelValue": s[8] || (s[8] = (m) => p.value = m),
264
+ "onUpdate:modelValue": i[9] || (i[9] = (m) => p.value = m),
263
265
  label: c.value,
264
266
  onKeydown: $e(X(G, ["prevent"]), ["enter"])
265
267
  }, null, 8, ["modelValue", "label", "onKeydown"]),
266
268
  l("div", Ge, [
267
- d(i(te), {
269
+ d(s(te), {
268
270
  class: "flex-1",
269
271
  variant: "outlined",
270
- onClick: s[9] || (s[9] = (m) => i(q).hide())
272
+ onClick: i[10] || (i[10] = (m) => s(q).hide())
271
273
  }, {
272
274
  default: u(() => [
273
275
  D(" Cancel ")
274
276
  ]),
275
277
  _: 1
276
278
  }),
277
- d(i(te), {
279
+ d(s(te), {
278
280
  class: "flex-1",
279
281
  type: "submit",
280
282
  onClick: G
@@ -1,6 +1,6 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
2
  title: string;
3
- data: any;
3
+ data: unknown;
4
4
  headers: {
5
5
  name: string;
6
6
  value: string;
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
8
8
  }[];
9
9
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
10
10
  title: string;
11
- data: any;
11
+ data: unknown;
12
12
  headers: {
13
13
  name: string;
14
14
  value: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBody.vue"],"names":[],"mappings":";WA8GS,MAAM;UACP,GAAG;aACA;QAAE,IAAI,E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AI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,8 +1,8 @@
1
- import { defineComponent as U, ref as x, computed as l, openBlock as r, createBlock as u, createSlots as L, withCtx as p, createTextVNode as w, toDisplayString as g, createElementBlock as V, createElementVNode as b, createCommentVNode as i, createVNode as j } from "vue";
2
- import T from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
3
- import C from "whatwg-mimetype";
4
- import N from "./ResponseBodyDownload.vue.js";
5
- import O from "./ResponseBodyInfo.vue.js";
1
+ import { defineComponent as U, ref as x, computed as l, openBlock as n, createBlock as u, createSlots as L, withCtx as p, createTextVNode as w, toDisplayString as g, createElementBlock as V, createElementVNode as b, createCommentVNode as i, createVNode as j } from "vue";
2
+ import O from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
3
+ import T from "whatwg-mimetype";
4
+ import C from "./ResponseBodyDownload.vue.js";
5
+ import N from "./ResponseBodyInfo.vue.js";
6
6
  import S from "./ResponseBodyPreview.vue.js";
7
7
  import E from "./ResponseBodyRaw.vue.js";
8
8
  import $ from "./ResponseBodyToggle.vue.js";
@@ -26,43 +26,43 @@ const M = {
26
26
  ), B = l(() => d.value || !m.value), R = l(() => !d.value || !m.value), o = l(() => {
27
27
  var s;
28
28
  const e = ((s = a.headers.find((c) => c.name.toLowerCase() === "content-type")) == null ? void 0 : s.value) ?? "";
29
- return new C(e);
30
- }), t = l(() => I[o.value.essence]), n = l(() => _(a.data) ? URL.createObjectURL(a.data) : typeof a.data == "string" ? URL.createObjectURL(
29
+ return new T(e);
30
+ }), t = l(() => I[o.value.essence]), r = l(() => _(a.data) ? URL.createObjectURL(a.data) : typeof a.data == "string" ? URL.createObjectURL(
31
31
  new Blob([a.data], { type: o.value.toString() })
32
- ) : typeof a.data == "object" && Object.keys(a.data).length ? URL.createObjectURL(
32
+ ) : a.data instanceof Object && Object.keys(a.data).length ? URL.createObjectURL(
33
33
  new Blob([JSON.stringify(a.data)], {
34
34
  type: o.value.toString()
35
35
  })
36
36
  ) : "");
37
- return (e, s) => (r(), u(T, null, L({
37
+ return (e, s) => (n(), u(O, null, L({
38
38
  title: p(() => [
39
39
  w(g(e.title), 1)
40
40
  ]),
41
41
  default: p(() => {
42
42
  var c, v, f, y;
43
43
  return [
44
- e.data ? (r(), V("div", M, [
44
+ e.data ? (n(), V("div", M, [
45
45
  b("div", P, [
46
46
  b("span", D, g(o.value.essence), 1),
47
- m.value ? (r(), u($, {
47
+ m.value ? (n(), u($, {
48
48
  key: 0,
49
49
  modelValue: d.value,
50
50
  "onUpdate:modelValue": s[0] || (s[0] = (k) => d.value = k)
51
51
  }, null, 8, ["modelValue"])) : i("", !0)
52
52
  ]),
53
- (c = t.value) != null && c.raw && R.value ? (r(), u(E, {
54
- key: n.value,
53
+ (c = t.value) != null && c.raw && R.value ? (n(), u(E, {
54
+ key: r.value,
55
55
  data: e.data,
56
56
  language: t.value.language
57
57
  }, null, 8, ["data", "language"])) : i("", !0),
58
- (v = t.value) != null && v.preview && B.value ? (r(), u(S, {
59
- key: n.value,
58
+ (v = t.value) != null && v.preview && B.value ? (n(), u(S, {
59
+ key: r.value,
60
60
  alpha: t.value.alpha,
61
61
  mode: t.value.preview,
62
- src: n.value,
62
+ src: r.value,
63
63
  type: o.value.essence
64
64
  }, null, 8, ["alpha", "mode", "src", "type"])) : i("", !0),
65
- !((f = t.value) != null && f.raw) && !((y = t.value) != null && y.preview) ? (r(), u(O, { key: 2 }, {
65
+ !((f = t.value) != null && f.raw) && !((y = t.value) != null && y.preview) ? (n(), u(N, { key: 2 }, {
66
66
  default: p(() => [
67
67
  w(" Binary file ")
68
68
  ]),
@@ -73,11 +73,11 @@ const M = {
73
73
  }),
74
74
  _: 2
75
75
  }, [
76
- e.data && n.value ? {
76
+ e.data && r.value ? {
77
77
  name: "actions",
78
78
  fn: p(() => [
79
- j(N, {
80
- href: n.value,
79
+ j(C, {
80
+ href: r.value,
81
81
  type: o.value.essence
82
82
  }, null, 8, ["href", "type"])
83
83
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AA6GA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;;cASrE,gBAAgB,GAAG,SAAS;;cAA5B,gBAAgB,GAAG,SAAS;;AA2NxC,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;;cASrE,gBAAgB,GAAG,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