@scalar/api-client 2.3.21 → 2.3.23

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 (37) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +1 -1
  3. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  4. package/dist/components/IconSelector.vue.js +1 -1
  5. package/dist/components/ImportCollection/PasteEventListener.vue.d.ts.map +1 -1
  6. package/dist/components/ImportCollection/PasteEventListener.vue.js +12 -11
  7. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +1 -1
  8. package/dist/components/TopNav/TopNav.vue.js +1 -1
  9. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  10. package/dist/components/TopNav/TopNavItem.vue2.js +1 -1
  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.map +1 -1
  13. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  14. package/dist/libs/create-client.d.ts.map +1 -1
  15. package/dist/libs/find-request.d.ts.map +1 -1
  16. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  17. package/dist/libs/send-request/create-request-operation.js +81 -61
  18. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  19. package/dist/store/active-entities.d.ts.map +1 -1
  20. package/dist/store/requests.d.ts.map +1 -1
  21. package/dist/store/store.d.ts.map +1 -1
  22. package/dist/style.css +1 -1
  23. package/dist/views/Collection/CollectionInfoForm.vue.js +2 -2
  24. package/dist/views/Collection/CollectionInfoForm.vue2.js +1 -1
  25. package/dist/views/Collection/CollectionNavigation.vue.js +1 -1
  26. package/dist/views/Environment/Environment.vue2.js +1 -1
  27. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  28. package/dist/views/Request/RequestSidebar.vue2.js +1 -1
  29. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.d.ts +6 -0
  30. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.d.ts.map +1 -0
  31. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +74 -0
  32. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue2.js +4 -0
  33. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  34. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  35. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  36. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +80 -74
  37. package/package.json +12 -12
@@ -1,7 +1,7 @@
1
1
  import o from "./CollectionInfoForm.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ea76cba6"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-46f80d5f"]]);
5
5
  export {
6
- c as default
6
+ p as default
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as b, computed as p, openBlock as v, createElementBlock as h, createVNode as a, withCtx as c, unref as f, createElementVNode as V } from "vue";
2
2
  import { ScalarButton as w } from "@scalar/components";
3
- import { LibraryIcon as I } from "@scalar/icons";
3
+ import { LibraryIcon as I } from "@scalar/icons/library";
4
4
  import g from "../../components/Form/LabelInput.vue.js";
5
5
  import k from "../../components/IconSelector.vue.js";
6
6
  import { useActiveEntities as B } from "../../store/active-entities.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, computed as k, openBlock as r, createElementBlock as a, createVNode as x, createElementVNode as n, normalizeClass as c, unref as t, toDisplayString as h, createCommentVNode as _, Fragment as g, renderList as C, createBlock as N, withCtx as S } from "vue";
2
- import { LibraryIcon as B } from "@scalar/icons";
2
+ import { LibraryIcon as B } from "@scalar/icons/library";
3
3
  import { useRouter as z, RouterLink as E } from "vue-router";
4
4
  import { PathId as m } from "../../routes.js";
5
5
  import I from "./CollectionInfoForm.vue.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as ie, ref as h, watch as ue, onMounted as me, onBeforeUnmount as ce, openBlock as v, createBlock as g, withCtx as c, createVNode as m, createElementVNode as p, unref as r, createElementBlock as V, Fragment as A, renderList as B, normalizeClass as L, createTextVNode as K, toDisplayString as F, withDirectives as de, withModifiers as ve, createCommentVNode as G, vShow as fe, createSlots as pe } from "vue";
2
2
  import { useModal as O, ScalarIcon as J, ScalarButton as xe, ScalarModal as be } from "@scalar/components";
3
- import { LibraryIcon as he } from "@scalar/icons";
3
+ import { LibraryIcon as he } from "@scalar/icons/library";
4
4
  import { useToasts as Ce } from "@scalar/use-toasts";
5
5
  import { useRouter as Ee, useRoute as ke } from "vue-router";
6
6
  import ye from "../../components/CodeInput/CodeInput.vue.js";
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestSidebar.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-762394bf"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5a734bd1"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as ge, useId as Se, reactive as ke, ref as Re, watch as H, onMounted as ye, onBeforeUnmount as xe, computed as D, openBlock as r, createElementBlock as b, Fragment as $, withDirectives as K, createVNode as p, unref as t, normalizeClass as g, createSlots as we, withCtx as d, createElementVNode as n, createBlock as u, createCommentVNode as v, toDisplayString as B, isRef as Ie, withKeys as q, withModifiers as S, vShow as U, renderList as G, createTextVNode as M, nextTick as Ce } from "vue";
2
2
  import { ScalarIcon as P, ScalarSearchInput as De, ScalarSearchResultList as $e, ScalarSearchResultItem as qe, ScalarButton as Me } from "@scalar/components";
3
- import { LibraryIcon as Pe } from "@scalar/icons";
3
+ import { LibraryIcon as Pe } from "@scalar/icons/library";
4
4
  import { useToasts as Te } from "@scalar/use-toasts";
5
5
  import { useRouter as _e } from "vue-router";
6
6
  import Ve from "../../assets/rabbit.ascii.js";
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ reader: ReadableStreamDefaultReader<Uint8Array>;
3
+ };
4
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
6
+ //# sourceMappingURL=ResponseBodyStreaming.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResponseBodyStreaming.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyStreaming.vue"],"names":[],"mappings":"AAiHA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,2BAA2B,CAAC,UAAU,CAAC,CAAA;CAChD,CAAC;;AAoLF,wBAOG"}
@@ -0,0 +1,74 @@
1
+ import { defineComponent as y, ref as i, watch as _, nextTick as w, onMounted as h, onBeforeUnmount as k, openBlock as s, createBlock as L, withCtx as p, createElementVNode as l, unref as d, createElementBlock as c, createVNode as B, createCommentVNode as u, toDisplayString as g } from "vue";
2
+ import { useLoadingState as S, ScalarLoading as b } from "@scalar/components";
3
+ import C from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
4
+ const T = { class: "flex w-full items-center justify-between" }, E = {
5
+ key: 0,
6
+ class: "mr-2 flex items-center gap-2"
7
+ }, N = {
8
+ key: 0,
9
+ class: "text-red bg-b-danger sticky top-0 border-b p-2"
10
+ }, V = {
11
+ key: 1,
12
+ class: "p-2"
13
+ }, z = /* @__PURE__ */ y({
14
+ __name: "ResponseBodyStreaming",
15
+ props: {
16
+ reader: {}
17
+ },
18
+ setup(f) {
19
+ const e = S(), o = i(""), a = i(null), m = new TextDecoder(), r = i(null), v = () => {
20
+ r.value && (r.value.scrollTop = r.value.scrollHeight);
21
+ };
22
+ _(o, () => {
23
+ w(v);
24
+ });
25
+ async function x() {
26
+ try {
27
+ for (; e.isLoading; ) {
28
+ const { done: n, value: t } = await f.reader.read();
29
+ if (n) {
30
+ e.stopLoading();
31
+ break;
32
+ }
33
+ t && (o.value += m.decode(t, { stream: !0 }));
34
+ }
35
+ } catch (n) {
36
+ console.error("Error reading stream:", n), e.stopLoading(), a.value = n;
37
+ } finally {
38
+ o.value += m.decode();
39
+ }
40
+ }
41
+ return h(() => {
42
+ e.startLoading(), x(), a.value = null;
43
+ }), k(() => {
44
+ f.reader.cancel(), e.stopLoading();
45
+ }), (n, t) => (s(), L(C, { class: "max-h-content overflow-y-hidden" }, {
46
+ title: p(() => [
47
+ l("div", T, [
48
+ t[1] || (t[1] = l("div", null, "Body", -1)),
49
+ d(e).isLoading ? (s(), c("div", E, [
50
+ B(d(b), {
51
+ loadingState: d(e),
52
+ size: "xs"
53
+ }, null, 8, ["loadingState"]),
54
+ t[0] || (t[0] = l("span", { class: "text-c-2" }, " Listening… ", -1))
55
+ ])) : u("", !0)
56
+ ])
57
+ ]),
58
+ default: p(() => [
59
+ l("div", {
60
+ ref_key: "contentContainer",
61
+ ref: r,
62
+ class: "text-xxs font-code leading-2 h-full overflow-auto whitespace-pre-wrap"
63
+ }, [
64
+ a.value ? (s(), c("div", N, g(a.value.message), 1)) : u("", !0),
65
+ o.value ? (s(), c("div", V, g(o.value), 1)) : u("", !0)
66
+ ], 512)
67
+ ]),
68
+ _: 1
69
+ }));
70
+ }
71
+ });
72
+ export {
73
+ z as default
74
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ResponseBodyStreaming.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -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.21";
37
+ }, w = "2.3.23";
38
38
  return R(() => a.hotKeys.on(k)), v(() => a.hotKeys.off(k)), (o, e) => (l(), u("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":"AA+PA,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;AAarF,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;;AA0SF,wBAOG"}
1
+ {"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AAwQA,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,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-15bfba2e"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-559f2ac3"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,16 +1,17 @@
1
- import { defineComponent as j, computed as c, ref as C, useId as T, openBlock as l, createBlock as i, withCtx as f, createElementVNode as d, normalizeClass as y, createCommentVNode as u, createVNode as k, createElementBlock as h, Fragment as b } from "vue";
2
- import w from "../../../components/SectionFilter.vue.js";
1
+ import { defineComponent as C, computed as d, ref as T, useId as w, openBlock as n, createBlock as t, withCtx as v, createElementVNode as u, normalizeClass as y, createCommentVNode as c, createVNode as k, createElementBlock as h, Fragment as b } from "vue";
2
+ import x from "../../../components/SectionFilter.vue.js";
3
3
  import V from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
4
  import I from "./RequestHeaders.vue.js";
5
- import g from "./ResponseBody.vue.js";
6
- import $ from "./ResponseBodyVirtual.vue.js";
5
+ import $ from "./ResponseBody.vue.js";
6
+ import g from "./ResponseBodyStreaming.vue.js";
7
+ import z from "./ResponseBodyVirtual.vue.js";
7
8
  /* empty css */
8
9
  import E from "./ResponseCookies.vue.js";
9
10
  import O from "./ResponseEmpty.vue.js";
10
- import z from "./ResponseHeaders.vue.js";
11
- import N from "./ResponseLoadingOverlay.vue.js";
12
- import S from "./ResponseMetaInformation.vue.js";
13
- const W = { class: "flex h-8 flex-1 items-center" }, F = ["id", "role"], A = 2e5, _ = /* @__PURE__ */ j({
11
+ import N from "./ResponseHeaders.vue.js";
12
+ import S from "./ResponseLoadingOverlay.vue.js";
13
+ import W from "./ResponseMetaInformation.vue.js";
14
+ const F = { class: "flex h-8 flex-1 items-center" }, L = ["id", "role"], A = 2e5, se = /* @__PURE__ */ C({
14
15
  __name: "ResponseSection",
15
16
  props: {
16
17
  collection: {},
@@ -20,38 +21,38 @@ const W = { class: "flex h-8 flex-1 items-center" }, F = ["id", "role"], A = 2e5
20
21
  response: {},
21
22
  requestResult: {}
22
23
  },
23
- setup(n) {
24
- const m = c(() => {
25
- var a;
26
- const e = (a = n.response) == null ? void 0 : a.headers;
27
- return e ? Object.keys(e).map((o) => ({
28
- name: o,
29
- value: e[o] ?? "",
24
+ setup(l) {
25
+ const m = d(() => {
26
+ var o;
27
+ const e = (o = l.response) == null ? void 0 : o.headers;
28
+ return e ? Object.keys(e).map((a) => ({
29
+ name: a,
30
+ value: e[a] ?? "",
30
31
  required: !1
31
32
  })) : [];
32
- }), R = c(
33
+ }), B = d(
33
34
  () => {
34
35
  var e;
35
- return ((e = n.response) == null ? void 0 : e.cookieHeaderKeys.flatMap((a) => {
36
- var t, r;
37
- const o = (r = (t = n.response) == null ? void 0 : t.headers) == null ? void 0 : r[a];
38
- return o ? {
39
- name: a,
40
- value: o,
36
+ return ((e = l.response) == null ? void 0 : e.cookieHeaderKeys.flatMap((o) => {
37
+ var i, p;
38
+ const a = (p = (i = l.response) == null ? void 0 : i.headers) == null ? void 0 : p[o];
39
+ return a ? {
40
+ name: o,
41
+ value: a,
41
42
  required: !1
42
43
  } : [];
43
44
  })) ?? [];
44
45
  }
45
- ), B = ["Cookies", "Headers", "Body"], s = C("All"), v = c(() => ["All", ...B]), p = c(
46
+ ), R = ["Cookies", "Headers", "Body"], s = T("All"), f = d(() => ["All", ...R]), r = d(
46
47
  () => Object.fromEntries(
47
- v.value.map((e) => [e, T()])
48
+ f.value.map((e) => [e, w()])
48
49
  )
49
- ), q = c(() => {
50
- var t, r;
51
- if (!n.response)
50
+ ), q = d(() => {
51
+ var i, p;
52
+ if (!l.response || !("size" in l.response))
52
53
  return !1;
53
- const e = ((t = n.response.headers) == null ? void 0 : t["content-type"]) || ((r = n.response.headers) == null ? void 0 : r["Content-Type"]);
54
- return !e || (n.response.size ?? 0) <= A || e.includes("text/html") ? !1 : [
54
+ const e = ((i = l.response.headers) == null ? void 0 : i["content-type"]) || ((p = l.response.headers) == null ? void 0 : p["Content-Type"]);
55
+ return !e || (l.response.size ?? 0) <= A || e.includes("text/html") ? !1 : [
55
56
  // Text types
56
57
  "text/",
57
58
  // JSON types
@@ -78,99 +79,104 @@ const W = { class: "flex h-8 flex-1 items-center" }, F = ["id", "role"], A = 2e5
78
79
  "application/x-java-source",
79
80
  // Form data
80
81
  "application/x-www-form-urlencoded"
81
- ].some((H) => e.includes(H)) && (n.response.size ?? 0) > A;
82
- }), x = c(
82
+ ].some((j) => e.includes(j)) && (l.response.size ?? 0) > A;
83
+ }), H = d(
83
84
  () => {
84
85
  var e;
85
- return ((e = n.requestResult) == null ? void 0 : e.request.parameters.headers.filter((a) => a.enabled).map((a) => ({
86
- name: a.key,
87
- value: a.value,
86
+ return ((e = l.requestResult) == null ? void 0 : e.request.parameters.headers.filter((o) => o.enabled).map((o) => ({
87
+ name: o.key,
88
+ value: o.value,
88
89
  required: !0
89
90
  }))) ?? [];
90
91
  }
91
92
  );
92
- return (e, a) => (l(), i(V, { "aria-label": "Response" }, {
93
- title: f(() => [
94
- d("div", W, [
95
- d("div", {
93
+ return (e, o) => (n(), t(V, { "aria-label": "Response" }, {
94
+ title: v(() => [
95
+ u("div", F, [
96
+ u("div", {
96
97
  "aria-live": "polite",
97
98
  class: y(["flex items-center", { "animate-response-heading": e.response }])
98
99
  }, [
99
- a[1] || (a[1] = d("span", { class: "response-heading pointer-events-none absolute" }, " Response ", -1)),
100
- e.response ? (l(), i(S, {
100
+ o[1] || (o[1] = u("span", { class: "response-heading pointer-events-none absolute" }, " Response ", -1)),
101
+ e.response ? (n(), t(W, {
101
102
  key: 0,
102
103
  class: "animate-response-children",
103
104
  response: e.response
104
- }, null, 8, ["response"])) : u("", !0)
105
+ }, null, 8, ["response"])) : c("", !0)
105
106
  ], 2),
106
- k(w, {
107
+ k(x, {
107
108
  modelValue: s.value,
108
- "onUpdate:modelValue": a[0] || (a[0] = (o) => s.value = o),
109
- filterIds: p.value,
110
- filters: v.value
109
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => s.value = a),
110
+ filterIds: r.value,
111
+ filters: f.value
111
112
  }, null, 8, ["modelValue", "filterIds", "filters"])
112
113
  ])
113
114
  ]),
114
- default: f(() => {
115
- var o, t, r;
115
+ default: v(() => {
116
+ var a, i, p;
116
117
  return [
117
- d("div", {
118
- id: p.value.All,
118
+ u("div", {
119
+ id: r.value.All,
119
120
  class: y(["custom-scroll response-section-content relative grid h-full justify-stretch", {
120
121
  "content-start": e.response
121
122
  }]),
122
123
  role: s.value === "All" && e.response ? "tabpanel" : "none"
123
124
  }, [
124
- e.response ? (l(), h(b, { key: 1 }, [
125
- s.value === "All" || s.value === "Cookies" ? (l(), i(E, {
125
+ e.response ? (n(), h(b, { key: 1 }, [
126
+ s.value === "All" || s.value === "Cookies" ? (n(), t(E, {
126
127
  key: 0,
127
128
  class: "response-section-content-cookies",
128
- id: p.value.Cookies,
129
- cookies: R.value,
129
+ id: r.value.Cookies,
130
+ cookies: B.value,
130
131
  role: s.value === "All" ? "none" : "tabpanel"
131
- }, null, 8, ["id", "cookies", "role"])) : u("", !0),
132
- s.value === "All" || s.value === "Headers" ? (l(), i(I, {
132
+ }, null, 8, ["id", "cookies", "role"])) : c("", !0),
133
+ s.value === "All" || s.value === "Headers" ? (n(), t(I, {
133
134
  key: 1,
134
135
  class: "response-section-content-headers",
135
- id: p.value.Headers,
136
- headers: x.value,
136
+ id: r.value.Headers,
137
+ headers: H.value,
137
138
  role: s.value === "All" ? "none" : "tabpanel"
138
- }, null, 8, ["id", "headers", "role"])) : u("", !0),
139
- s.value === "All" || s.value === "Headers" ? (l(), i(z, {
139
+ }, null, 8, ["id", "headers", "role"])) : c("", !0),
140
+ s.value === "All" || s.value === "Headers" ? (n(), t(N, {
140
141
  key: 2,
141
142
  class: "response-section-content-headers",
142
- id: p.value.Headers,
143
+ id: r.value.Headers,
143
144
  headers: m.value,
144
145
  role: s.value === "All" ? "none" : "tabpanel"
145
- }, null, 8, ["id", "headers", "role"])) : u("", !0),
146
- s.value === "All" || s.value === "Body" ? (l(), h(b, { key: 3 }, [
147
- q.value && typeof ((o = e.response) == null ? void 0 : o.data) == "string" ? (l(), i($, {
146
+ }, null, 8, ["id", "headers", "role"])) : c("", !0),
147
+ s.value === "All" || s.value === "Body" ? (n(), h(b, { key: 3 }, [
148
+ "reader" in e.response ? (n(), t(g, {
148
149
  key: 0,
149
- id: p.value.Body,
150
+ class: "response-section-content-body",
151
+ id: r.value.Body,
152
+ reader: e.response.reader
153
+ }, null, 8, ["id", "reader"])) : q.value && typeof ((a = e.response) == null ? void 0 : a.data) == "string" ? (n(), t(z, {
154
+ key: 1,
155
+ id: r.value.Body,
150
156
  content: e.response.data,
151
- data: (t = e.response) == null ? void 0 : t.data,
157
+ data: (i = e.response) == null ? void 0 : i.data,
152
158
  headers: m.value,
153
159
  role: s.value === "All" ? "none" : "tabpanel"
154
- }, null, 8, ["id", "content", "data", "headers", "role"])) : (l(), i(g, {
155
- key: 1,
160
+ }, null, 8, ["id", "content", "data", "headers", "role"])) : (n(), t($, {
161
+ key: 2,
156
162
  class: "response-section-content-body",
157
- id: p.value.Body,
163
+ id: r.value.Body,
158
164
  active: !0,
159
- data: (r = e.response) == null ? void 0 : r.data,
165
+ data: (p = e.response) == null ? void 0 : p.data,
160
166
  headers: m.value,
161
167
  role: s.value === "All" ? "none" : "tabpanel",
162
168
  title: "Body"
163
169
  }, null, 8, ["id", "data", "headers", "role"]))
164
- ], 64)) : u("", !0)
165
- ], 64)) : (l(), i(O, {
170
+ ], 64)) : c("", !0)
171
+ ], 64)) : (n(), t(O, {
166
172
  key: 0,
167
173
  collection: e.collection,
168
174
  operation: e.operation,
169
175
  workspace: e.workspace,
170
176
  numWorkspaceRequests: e.numWorkspaceRequests
171
177
  }, null, 8, ["collection", "operation", "workspace", "numWorkspaceRequests"])),
172
- k(N)
173
- ], 10, F)
178
+ k(S)
179
+ ], 10, L)
174
180
  ];
175
181
  }),
176
182
  _: 1
@@ -178,5 +184,5 @@ const W = { class: "flex h-8 flex-1 items-center" }, F = ["id", "role"], A = 2e5
178
184
  }
179
185
  });
180
186
  export {
181
- _ as default
187
+ se as default
182
188
  };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.3.21",
21
+ "version": "2.3.23",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -189,22 +189,22 @@
189
189
  "whatwg-mimetype": "^4.0.0",
190
190
  "yaml": "^2.4.5",
191
191
  "zod": "^3.23.8",
192
+ "@scalar/components": "0.13.50",
192
193
  "@scalar/draggable": "0.1.11",
193
- "@scalar/icons": "0.1.3",
194
- "@scalar/import": "0.3.15",
195
- "@scalar/oas-utils": "0.2.132",
194
+ "@scalar/icons": "0.2.0",
195
+ "@scalar/import": "0.3.16",
196
+ "@scalar/oas-utils": "0.2.133",
196
197
  "@scalar/object-utils": "1.1.13",
197
198
  "@scalar/openapi-parser": "0.10.16",
198
199
  "@scalar/openapi-types": "0.2.0",
199
- "@scalar/components": "0.13.48",
200
200
  "@scalar/snippetz": "0.2.19",
201
- "@scalar/postman-to-openapi": "0.2.5",
201
+ "@scalar/postman-to-openapi": "0.2.6",
202
202
  "@scalar/types": "0.1.8",
203
- "@scalar/use-codemirror": "0.11.93",
204
203
  "@scalar/themes": "0.10.0",
205
- "@scalar/use-hooks": "0.1.41",
206
- "@scalar/use-toasts": "0.7.9",
207
- "@scalar/use-tooltip": "1.0.6"
204
+ "@scalar/use-codemirror": "0.11.95",
205
+ "@scalar/use-hooks": "0.1.42",
206
+ "@scalar/use-tooltip": "1.0.6",
207
+ "@scalar/use-toasts": "0.7.9"
208
208
  },
209
209
  "devDependencies": {
210
210
  "@types/shell-quote": "^1.7.5",
@@ -219,8 +219,8 @@
219
219
  "vite": "^5.4.10",
220
220
  "vite-svg-loader": "^5.1.0",
221
221
  "vitest": "^1.6.0",
222
- "@scalar/build-tooling": "0.1.17",
223
- "@scalar/galaxy": "0.3.1"
222
+ "@scalar/galaxy": "0.3.1",
223
+ "@scalar/build-tooling": "0.1.17"
224
224
  },
225
225
  "scripts": {
226
226
  "build": "scalar-build-vite",