@scalar/api-client 2.2.18 → 2.2.20

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 (46) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/components/DataTable/DataTable.vue.js +1 -1
  3. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  4. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +27 -33
  5. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  6. package/dist/components/SideNav/SideNav.vue.js +8 -5
  7. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  8. package/dist/components/Sidebar/Sidebar.vue2.js +18 -18
  9. package/dist/components/Sidebar/SidebarToggle.vue.js +2 -2
  10. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  11. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +19 -19
  12. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  13. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +7 -7
  14. package/dist/layouts/App/create-api-client-app.d.ts +2 -2
  15. package/dist/layouts/Modal/create-api-client-modal.d.ts +4 -4
  16. package/dist/layouts/Web/create-api-client-web.d.ts +2 -2
  17. package/dist/libs/create-client.d.ts +2 -2
  18. package/dist/store/request-example.d.ts +2 -2
  19. package/dist/store/store.d.ts +2 -2
  20. package/dist/style.css +1 -1
  21. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  22. package/dist/views/Request/Request.vue.js +2 -2
  23. package/dist/views/Request/Request.vue2.js +118 -108
  24. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  25. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  26. package/dist/views/Request/RequestSection/RequestSection.vue2.js +6 -6
  27. package/dist/views/Request/RequestSidebar.vue.d.ts +2 -0
  28. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  29. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  30. package/dist/views/Request/RequestSidebar.vue2.js +200 -163
  31. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  32. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  33. package/dist/views/Request/RequestSubpageHeader.vue2.js +48 -46
  34. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  35. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  36. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +20 -20
  37. package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts.map +1 -1
  38. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +11 -11
  39. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  40. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +7 -7
  41. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  42. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
  43. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +22 -22
  44. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  45. package/dist/views/Request/components/WorkspaceDropdown.vue.js +36 -40
  46. package/package.json +7 -7
@@ -1,82 +1,84 @@
1
- import { defineComponent as C, openBlock as l, createElementBlock as a, createElementVNode as i, createVNode as s, normalizeClass as V, unref as t, createBlock as u, createCommentVNode as r } from "vue";
2
- import x from "../../components/AddressBar/AddressBar.vue.js";
3
- import v from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
4
- import w from "../../components/Sidebar/SidebarToggle.vue.js";
5
- import { useActiveEntities as R } from "../../store/active-entities.js";
6
- import { ScalarIcon as c } from "@scalar/components";
7
- import { useRouter as $ } from "vue-router";
8
- import B from "./components/WorkspaceDropdown.vue.js";
9
- import h from "../../components/OpenApiClientButton.vue.js";
10
- import { useWorkspace as z } from "../../store/store.js";
11
- import { useLayout as A } from "../../hooks/useLayout.js";
12
- const E = { class: "lg:min-h-client-header flex items-center w-full justify-center p-2 pt-2 lg:pt-1 lg:p-1 flex-wrap t-app__top-container border-b-1/2" }, M = { class: "flex flex-row items-center gap-1 lg:px-2 lg:mb-0 lg:mb-0 mb-2 lg:flex-1 w-6/12" }, N = { class: "flex flex-row items-center gap-1 lg:px-2 lg:mb-0 mb-2 lg:flex-1 justify-end w-6/12" }, J = /* @__PURE__ */ C({
1
+ import { defineComponent as C, openBlock as n, createElementBlock as a, createElementVNode as r, createVNode as i, normalizeClass as V, unref as t, createBlock as c, createCommentVNode as s } from "vue";
2
+ import v from "../../components/AddressBar/AddressBar.vue.js";
3
+ import w from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
4
+ import h from "../../components/Sidebar/SidebarToggle.vue.js";
5
+ import { useActiveEntities as x } from "../../store/active-entities.js";
6
+ import { ScalarIcon as g } from "@scalar/components";
7
+ import { useRouter as B } from "vue-router";
8
+ import R from "../../components/OpenApiClientButton.vue.js";
9
+ import { useWorkspace as $ } from "../../store/store.js";
10
+ import { useLayout as z } from "../../hooks/useLayout.js";
11
+ const A = { class: "lg:min-h-client-header flex items-center w-full justify-center p-2 pt-2 lg:pt-1 lg:p-1 flex-wrap t-app__top-container border-b-1/2" }, E = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-2 lg:flex-1 w-6/12" }, M = { class: "flex flex-row items-center gap-1 lg:px-2.5 lg:mb-0 mb-2 lg:flex-1 justify-end w-6/12" }, F = /* @__PURE__ */ C({
13
12
  __name: "RequestSubpageHeader",
14
13
  props: {
15
14
  modelValue: { type: Boolean },
16
15
  isReadonly: { type: Boolean }
17
16
  },
18
17
  emits: ["update:modelValue", "hideModal", "importCurl"],
19
- setup(S) {
20
- const { activeCollection: m } = R(), g = z(), { hideClientButton: y } = g, { layout: b } = A(), { currentRoute: k } = $();
21
- return (o, e) => {
22
- var d, p, f;
23
- return l(), a("div", E, [
24
- i("div", M, [
25
- s(w, {
26
- class: V(["gitbook-hidden", [
27
- "xl:hidden",
28
- { "xl:!flex": !o.modelValue },
29
- { "!flex": t(b) === "modal" }
18
+ setup(N) {
19
+ const { activeCollection: m } = x(), b = $(), { hideClientButton: y } = b, { layout: d } = z(), { currentRoute: k } = B();
20
+ return (e, o) => {
21
+ var u, p, f;
22
+ return n(), a("div", A, [
23
+ r("div", E, [
24
+ i(h, {
25
+ class: V(["gitbook-hidden ml-1", [
26
+ { hidden: e.modelValue },
27
+ { "xl:!flex": !e.modelValue },
28
+ { "!flex": t(d) === "modal" },
29
+ { "!hidden": t(d) === "modal" && e.modelValue }
30
30
  ]]),
31
- modelValue: o.modelValue,
32
- "onUpdate:modelValue": e[0] || (e[0] = (n) => o.$emit("update:modelValue", n))
31
+ modelValue: e.modelValue,
32
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => e.$emit("update:modelValue", l))
33
33
  }, null, 8, ["class", "modelValue"]),
34
- o.isReadonly ? r("", !0) : (l(), u(t(B), { key: 0 }))
34
+ e.isReadonly ? s("", !0) : (n(), c(w, {
35
+ key: 0,
36
+ class: "hidden"
37
+ }))
35
38
  ]),
36
- s(x, {
37
- onImportCurl: e[1] || (e[1] = (n) => o.$emit("importCurl", n))
39
+ i(v, {
40
+ onImportCurl: o[1] || (o[1] = (l) => e.$emit("importCurl", l))
38
41
  }),
39
- i("div", N, [
40
- o.isReadonly ? r("", !0) : (l(), u(v, { key: 0 })),
41
- o.isReadonly && ((d = t(m)) != null && d.documentUrl) && !t(y) ? (l(), u(t(h), {
42
- key: 1,
42
+ r("div", M, [
43
+ e.isReadonly && ((u = t(m)) != null && u.documentUrl) && !t(y) ? (n(), c(t(R), {
44
+ key: 0,
43
45
  buttonSource: "modal",
44
46
  class: "!w-fit lg:-mr-1",
45
47
  integration: (p = t(m)) == null ? void 0 : p.integration,
46
48
  source: t(k).query.source === "gitbook" ? "gitbook" : "api-reference",
47
49
  url: (f = t(m)) == null ? void 0 : f.documentUrl
48
- }, null, 8, ["integration", "source", "url"])) : r("", !0),
49
- o.isReadonly ? (l(), a("button", {
50
- key: 2,
50
+ }, null, 8, ["integration", "source", "url"])) : s("", !0),
51
+ e.isReadonly ? (n(), a("button", {
52
+ key: 1,
51
53
  class: "app-exit-button p-2 rounded-full fixed right-2 top-2 gitbook-hidden",
52
54
  type: "button",
53
- onClick: e[2] || (e[2] = (n) => o.$emit("hideModal"))
55
+ onClick: o[2] || (o[2] = (l) => e.$emit("hideModal"))
54
56
  }, [
55
- s(t(c), {
57
+ i(t(g), {
56
58
  icon: "Close",
57
59
  size: "lg",
58
60
  thickness: "2"
59
61
  }),
60
- e[4] || (e[4] = i("span", { class: "sr-only" }, "Close Client", -1))
61
- ])) : r("", !0),
62
- o.isReadonly ? (l(), a("button", {
63
- key: 3,
62
+ o[4] || (o[4] = r("span", { class: "sr-only" }, "Close Client", -1))
63
+ ])) : s("", !0),
64
+ e.isReadonly ? (n(), a("button", {
65
+ key: 2,
64
66
  class: "text-c-1 hover:bg-b-2 active:text-c-1 p-2 rounded -mr-1.5 gitbook-show",
65
67
  type: "button",
66
- onClick: e[3] || (e[3] = (n) => o.$emit("hideModal"))
68
+ onClick: o[3] || (o[3] = (l) => e.$emit("hideModal"))
67
69
  }, [
68
- s(t(c), {
70
+ i(t(g), {
69
71
  icon: "Close",
70
72
  size: "md",
71
73
  thickness: "1.75"
72
74
  }),
73
- e[5] || (e[5] = i("span", { class: "sr-only" }, "Close Client", -1))
74
- ])) : r("", !0)
75
+ o[5] || (o[5] = r("span", { class: "sr-only" }, "Close Client", -1))
76
+ ])) : s("", !0)
75
77
  ])
76
78
  ]);
77
79
  };
78
80
  }
79
81
  });
80
82
  export {
81
- J as default
83
+ F as default
82
84
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBody.vue"],"names":[],"mappings":"AA6HA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AAsMF,wBAOG"}
1
+ {"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBody.vue"],"names":[],"mappings":"AA6HA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AAqMF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cb6b7a57"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2b036187"]]);
5
5
  export {
6
- a as default
6
+ e as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as L, ref as U, computed as n, openBlock as s, createBlock as u, createSlots as V, withCtx as m, createTextVNode as w, toDisplayString as g, createElementBlock as j, createElementVNode as h, createCommentVNode as c, createVNode as C } from "vue";
1
+ import { defineComponent as L, ref as U, computed as n, openBlock as s, createBlock as u, createSlots as V, withCtx as d, createTextVNode as w, toDisplayString as g, createElementBlock as j, createElementVNode as h, createCommentVNode as c, createVNode as C } from "vue";
2
2
  import O from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
3
3
  import { extractFilename as T } from "../../../libs/extractAttachmentFilename.js";
4
4
  import N from "whatwg-mimetype";
@@ -10,7 +10,7 @@ import F from "./ResponseBodyToggle.vue.js";
10
10
  import { mediaTypes as D } from "../consts/mediaTypes.js";
11
11
  const I = {
12
12
  key: 0,
13
- class: "max-h-[calc(100%-32px)] border-1/2 flex flex-col rounded bg-b-1 overflow-hidden"
13
+ class: "max-h-[calc(100%-32px)] border-t-1/2 flex flex-col bg-b-1 overflow-hidden"
14
14
  }, J = { class: "flex justify-between items-center border-b-1/2 px-3 py-1.5" }, M = { class: "text-xxs leading-3 font-code" }, Z = /* @__PURE__ */ L({
15
15
  __name: "ResponseBody",
16
16
  props: {
@@ -19,45 +19,45 @@ const I = {
19
19
  headers: {}
20
20
  },
21
21
  setup(b) {
22
- const a = b, x = (e) => e instanceof Blob, d = U(!0), p = n(
22
+ const a = b, x = (e) => e instanceof Blob, m = U(!0), p = n(
23
23
  () => {
24
24
  var e;
25
25
  return !!((e = o.value) != null && e.raw && o.value.preview);
26
26
  }
27
- ), B = n(() => d.value || !p.value), R = n(() => !d.value || !p.value), r = n(() => {
27
+ ), B = n(() => m.value || !p.value), R = n(() => !m.value || !p.value), l = n(() => {
28
28
  var t;
29
- const e = ((t = a.headers.find((l) => l.name.toLowerCase() === "content-type")) == null ? void 0 : t.value) ?? "";
29
+ const e = ((t = a.headers.find((r) => r.name.toLowerCase() === "content-type")) == null ? void 0 : t.value) ?? "";
30
30
  return new N(e);
31
31
  }), _ = n(() => {
32
32
  var t;
33
33
  const e = ((t = a.headers.find(
34
- (l) => l.name.toLowerCase() === "content-disposition"
34
+ (r) => r.name.toLowerCase() === "content-disposition"
35
35
  )) == null ? void 0 : t.value) ?? "";
36
36
  return T(e);
37
- }), o = n(() => D[r.value.essence]), i = n(() => x(a.data) ? URL.createObjectURL(a.data) : typeof a.data == "string" ? URL.createObjectURL(
38
- new Blob([a.data], { type: r.value.toString() })
37
+ }), o = n(() => D[l.value.essence]), i = n(() => x(a.data) ? URL.createObjectURL(a.data) : typeof a.data == "string" ? URL.createObjectURL(
38
+ new Blob([a.data], { type: l.value.toString() })
39
39
  ) : a.data instanceof Object && Object.keys(a.data).length ? URL.createObjectURL(
40
40
  new Blob([JSON.stringify(a.data)], {
41
- type: r.value.toString()
41
+ type: l.value.toString()
42
42
  })
43
43
  ) : "");
44
44
  return (e, t) => (s(), u(O, { class: "max-h-content overflow-x-auto" }, V({
45
- title: m(() => [
45
+ title: d(() => [
46
46
  w(g(e.title), 1)
47
47
  ]),
48
- default: m(() => {
49
- var l, v, f, y;
48
+ default: d(() => {
49
+ var r, v, f, y;
50
50
  return [
51
51
  e.data ? (s(), j("div", I, [
52
52
  h("div", J, [
53
- h("span", M, g(r.value.essence), 1),
53
+ h("span", M, g(l.value.essence), 1),
54
54
  p.value ? (s(), u(F, {
55
55
  key: 0,
56
- modelValue: d.value,
57
- "onUpdate:modelValue": t[0] || (t[0] = (k) => d.value = k)
56
+ modelValue: m.value,
57
+ "onUpdate:modelValue": t[0] || (t[0] = (k) => m.value = k)
58
58
  }, null, 8, ["modelValue"])) : c("", !0)
59
59
  ]),
60
- (l = o.value) != null && l.raw && R.value ? (s(), u(E, {
60
+ (r = o.value) != null && r.raw && R.value ? (s(), u(E, {
61
61
  key: i.value,
62
62
  content: e.data,
63
63
  language: o.value.language
@@ -67,10 +67,10 @@ const I = {
67
67
  alpha: o.value.alpha,
68
68
  mode: o.value.preview,
69
69
  src: i.value,
70
- type: r.value.essence
70
+ type: l.value.essence
71
71
  }, null, 8, ["alpha", "mode", "src", "type"])) : c("", !0),
72
72
  !((f = o.value) != null && f.raw) && !((y = o.value) != null && y.preview) ? (s(), u(P, { key: 2 }, {
73
- default: m(() => t[1] || (t[1] = [
73
+ default: d(() => t[1] || (t[1] = [
74
74
  w(" Binary file ")
75
75
  ])),
76
76
  _: 1
@@ -82,11 +82,11 @@ const I = {
82
82
  }, [
83
83
  e.data && i.value ? {
84
84
  name: "actions",
85
- fn: m(() => [
85
+ fn: d(() => [
86
86
  C(S, {
87
87
  filename: _.value,
88
88
  href: i.value,
89
- type: r.value.essence
89
+ type: l.value.essence
90
90
  }, null, 8, ["filename", "href", "type"])
91
91
  ]),
92
92
  key: "0"
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseCookies.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseCookies.vue"],"names":[],"mappings":"AA2CA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AAoHF,wBAOG"}
1
+ {"version":3,"file":"ResponseCookies.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseCookies.vue"],"names":[],"mappings":"AA2CA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AAkHF,wBAOG"}
@@ -1,30 +1,30 @@
1
- import { defineComponent as f, openBlock as e, createBlock as o, withCtx as t, createTextVNode as u, createElementBlock as r, Fragment as a, renderList as p, createVNode as i } from "vue";
2
- import d from "../../../components/DataTable/DataTable.vue.js";
3
- import _ from "../../../components/DataTable/DataTableRow.vue.js";
1
+ import { defineComponent as f, openBlock as e, createBlock as o, withCtx as t, createTextVNode as p, createElementBlock as r, Fragment as a, renderList as u, createVNode as i } from "vue";
2
+ import _ from "../../../components/DataTable/DataTable.vue.js";
3
+ import k from "../../../components/DataTable/DataTableRow.vue.js";
4
4
  import m from "../../../components/DataTable/DataTableText.vue.js";
5
- import k from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
5
+ import d from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
6
6
  const x = {
7
7
  key: 1,
8
- class: "text-c-3 px-4 text-sm border border-1/2 rounded min-h-12 justify-center flex items-center bg-b-1"
8
+ class: "text-c-3 px-4 text-sm border-t-1/2 min-h-16 justify-center flex items-center bg-b-1"
9
9
  }, N = /* @__PURE__ */ f({
10
10
  __name: "ResponseCookies",
11
11
  props: {
12
12
  cookies: {}
13
13
  },
14
- setup(b) {
15
- return (n, s) => (e(), o(k, { defaultOpen: !1 }, {
16
- title: t(() => s[0] || (s[0] = [
17
- u("Cookies")
14
+ setup(y) {
15
+ return (s, n) => (e(), o(d, { defaultOpen: !1 }, {
16
+ title: t(() => n[0] || (n[0] = [
17
+ p("Cookies")
18
18
  ])),
19
19
  default: t(() => [
20
20
  (e(), r(a, { key: 0 }, [
21
- n.cookies.length ? (e(), o(d, {
21
+ s.cookies.length ? (e(), o(_, {
22
22
  key: 0,
23
23
  class: "flex-1",
24
24
  columns: ["", ""]
25
25
  }, {
26
26
  default: t(() => [
27
- (e(!0), r(a, null, p(n.cookies, (l, c) => (e(), o(_, { key: c }, {
27
+ (e(!0), r(a, null, u(s.cookies, (l, c) => (e(), o(k, { key: c }, {
28
28
  default: t(() => [
29
29
  i(m, {
30
30
  text: l.name
@@ -17,7 +17,7 @@ const K = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, A = {
17
17
  a.commandPalette.emit({ commandName: "Create Request" });
18
18
  }, y = (i) => {
19
19
  i != null && i.createNew && v.name === "request" && f();
20
- }, h = "2.2.18";
20
+ }, h = "2.2.20";
21
21
  return R(() => a.hotKeys.on(y)), C(() => a.hotKeys.off(y)), (i, e) => (r(), l("div", K, [
22
22
  o("div", {
23
23
  class: k(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as _, openBlock as e, createBlock as n, withCtx as t, createTextVNode as l, createElementBlock as s, createVNode as m, Fragment as c, renderList as x, toDisplayString as i } from "vue";
2
2
  import h from "../../../components/DataTable/DataTable.vue.js";
3
- import y from "../../../components/DataTable/DataTableRow.vue.js";
3
+ import b from "../../../components/DataTable/DataTableRow.vue.js";
4
4
  import u from "../../../components/DataTable/DataTableText.vue.js";
5
- import k from "../../../components/HelpfulLink.vue.js";
6
- import b from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
5
+ import y from "../../../components/HelpfulLink.vue.js";
6
+ import k from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
7
  import { httpHeaders as g } from "../../../data/httpHeaders.js";
8
8
  const w = {
9
9
  key: 0,
10
- class: "border max-h-[calc(100%-32px)] overflow-y-auto rounded"
10
+ class: "border-t-1/2 border-b-1/20 max-h-[calc(100%-32px)] overflow-y-auto"
11
11
  }, C = {
12
12
  key: 1,
13
13
  class: "text-c-3 px-4 text-sm border rounded min-h-12 justify-center flex items-center bg-b-1"
@@ -20,7 +20,7 @@ const w = {
20
20
  const d = (r) => g.find(
21
21
  (a) => a.name.toLowerCase() === r.toLowerCase()
22
22
  );
23
- return (r, a) => (e(), n(b, {
23
+ return (r, a) => (e(), n(k, {
24
24
  class: "overflow-auto",
25
25
  defaultOpen: !1,
26
26
  itemCount: r.headers.length
@@ -36,7 +36,7 @@ const w = {
36
36
  scroll: ""
37
37
  }, {
38
38
  default: t(() => [
39
- (e(!0), s(c, null, x(r.headers, (o, p) => (e(), n(y, {
39
+ (e(!0), s(c, null, x(r.headers, (o, p) => (e(), n(b, {
40
40
  key: p,
41
41
  class: "text-c-1"
42
42
  }, {
@@ -45,7 +45,7 @@ const w = {
45
45
  default: t(() => {
46
46
  var f;
47
47
  return [
48
- typeof ((f = d(o.name)) == null ? void 0 : f.url) == "string" ? (e(), n(k, {
48
+ typeof ((f = d(o.name)) == null ? void 0 : f.url) == "string" ? (e(), n(y, {
49
49
  key: 0,
50
50
  class: "decoration-c-3",
51
51
  href: d(o.name).url
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AA6MA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AASvE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAA;CACvC,CAAC;;AA4RF,wBAOG"}
1
+ {"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AA6MA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AASvE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAA;CACvC,CAAC;;AAwRF,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 r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4c842dc1"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b9a7b992"]]);
5
5
  export {
6
- r as default
6
+ s as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as _, computed as m, ref as g, openBlock as n, createBlock as i, withCtx as u, createElementVNode as l, normalizeClass as f, createCommentVNode as c, createVNode as v, createElementBlock as y, Fragment as x } from "vue";
2
- import j from "../../../components/ContextBar.vue.js";
3
- import R from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
- import S from "./ResponseBody.vue.js";
1
+ import { defineComponent as _, computed as m, ref as j, openBlock as n, createBlock as i, withCtx as u, createElementVNode as p, normalizeClass as f, createCommentVNode as c, createVNode as v, createElementBlock as y, Fragment as h } from "vue";
2
+ import R from "../../../components/ContextBar.vue.js";
3
+ import S from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
+ import g from "./ResponseBody.vue.js";
5
5
  import b from "./ResponseEmpty.vue.js";
6
6
  import H from "./ResponseLoadingOverlay.vue.js";
7
7
  import V from "./ResponseMetaInformation.vue.js";
@@ -9,7 +9,7 @@ import w from "./ResponseBodyVirtual.vue.js";
9
9
  /* empty css */
10
10
  import L from "./ResponseCookies.vue.js";
11
11
  import z from "./ResponseHeaders.vue.js";
12
- const E = { class: "flex items-center flex-1 h-8" }, h = 2e5, X = /* @__PURE__ */ _({
12
+ const E = { class: "flex items-center flex-1 h-8" }, x = 2e5, X = /* @__PURE__ */ _({
13
13
  __name: "ResponseSection",
14
14
  props: {
15
15
  response: {}
@@ -32,8 +32,8 @@ const E = { class: "flex items-center flex-1 h-8" }, h = 2e5, X = /* @__PURE__ *
32
32
  () => {
33
33
  var e;
34
34
  return ((e = t.response) == null ? void 0 : e.cookieHeaderKeys.flatMap((o) => {
35
- var r, p;
36
- const s = (p = (r = t.response) == null ? void 0 : r.headers) == null ? void 0 : p[o];
35
+ var r, l;
36
+ const s = (l = (r = t.response) == null ? void 0 : r.headers) == null ? void 0 : l[o];
37
37
  return s ? {
38
38
  name: o,
39
39
  value: s,
@@ -41,11 +41,11 @@ const E = { class: "flex items-center flex-1 h-8" }, h = 2e5, X = /* @__PURE__ *
41
41
  } : [];
42
42
  })) ?? [];
43
43
  }
44
- ), C = ["All", "Cookies", "Headers", "Body"], a = g("All"), A = m(() => {
45
- var r, p;
44
+ ), C = ["All", "Cookies", "Headers", "Body"], a = j("All"), A = m(() => {
45
+ var r, l;
46
46
  if (!t.response) return !1;
47
- const e = ((r = t.response.headers) == null ? void 0 : r["content-type"]) || ((p = t.response.headers) == null ? void 0 : p["Content-Type"]);
48
- return !e || (t.response.size ?? 0) <= h ? !1 : [
47
+ const e = ((r = t.response.headers) == null ? void 0 : r["content-type"]) || ((l = t.response.headers) == null ? void 0 : l["Content-Type"]);
48
+ return !e || (t.response.size ?? 0) <= x ? !1 : [
49
49
  // Text types
50
50
  "text/",
51
51
  // JSON types
@@ -72,23 +72,23 @@ const E = { class: "flex items-center flex-1 h-8" }, h = 2e5, X = /* @__PURE__ *
72
72
  "application/x-java-source",
73
73
  // Form data
74
74
  "application/x-www-form-urlencoded"
75
- ].some((T) => e.includes(T)) && (t.response.size ?? 0) > h;
75
+ ].some((T) => e.includes(T)) && (t.response.size ?? 0) > x;
76
76
  });
77
- return (e, o) => (n(), i(R, { "aria-label": "Response" }, {
77
+ return (e, o) => (n(), i(S, { "aria-label": "Response" }, {
78
78
  title: u(() => [
79
- l("div", E, [
80
- l("div", {
79
+ p("div", E, [
80
+ p("div", {
81
81
  "aria-live": "polite",
82
82
  class: f(["flex items-center", { "animate-response-heading": e.response }])
83
83
  }, [
84
- o[1] || (o[1] = l("span", { class: "response-heading absolute pointer-events-none" }, " Response ", -1)),
84
+ o[1] || (o[1] = p("span", { class: "response-heading absolute pointer-events-none" }, " Response ", -1)),
85
85
  e.response ? (n(), i(V, {
86
86
  key: 0,
87
87
  class: "animate-response-children",
88
88
  response: e.response
89
89
  }, null, 8, ["response"])) : c("", !0)
90
90
  ], 2),
91
- v(j, {
91
+ v(R, {
92
92
  activeSection: a.value,
93
93
  sections: C,
94
94
  onSetActiveSection: o[0] || (o[0] = (s) => a.value = s)
@@ -98,12 +98,12 @@ const E = { class: "flex items-center flex-1 h-8" }, h = 2e5, X = /* @__PURE__ *
98
98
  default: u(() => {
99
99
  var s;
100
100
  return [
101
- l("div", {
102
- class: f(["custom-scroll h-full relative grid gap-[.5px] px-2 xl:px-3 py-2.5 justify-stretch", {
101
+ p("div", {
102
+ class: f(["custom-scroll h-full relative grid justify-stretch", {
103
103
  "content-start": e.response
104
104
  }])
105
105
  }, [
106
- e.response ? (n(), y(x, { key: 1 }, [
106
+ e.response ? (n(), y(h, { key: 1 }, [
107
107
  a.value === "All" || a.value === "Cookies" ? (n(), i(L, {
108
108
  key: 0,
109
109
  cookies: B.value
@@ -112,11 +112,11 @@ const E = { class: "flex items-center flex-1 h-8" }, h = 2e5, X = /* @__PURE__ *
112
112
  key: 1,
113
113
  headers: d.value
114
114
  }, null, 8, ["headers"])) : c("", !0),
115
- a.value === "All" || a.value === "Body" ? (n(), y(x, { key: 2 }, [
115
+ a.value === "All" || a.value === "Body" ? (n(), y(h, { key: 2 }, [
116
116
  A.value ? (n(), i(w, {
117
117
  key: 0,
118
118
  content: t.response.data
119
- }, null, 8, ["content"])) : (n(), i(S, {
119
+ }, null, 8, ["content"])) : (n(), i(g, {
120
120
  key: 1,
121
121
  active: !0,
122
122
  data: (s = t.response) == null ? void 0 : s.data,
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AA0yBA,wBAMG"}
1
+ {"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AAiyBA,wBAMG"}