@scalar/api-client 2.3.27 → 2.3.29

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 (53) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts +4 -1
  3. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  4. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  5. package/dist/components/CodeInput/CodeInput.vue2.js +2 -1
  6. package/dist/components/CodeInput/index.d.ts +2 -0
  7. package/dist/components/CodeInput/index.d.ts.map +1 -0
  8. package/dist/components/CodeInput/index.js +4 -0
  9. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +12 -10
  10. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  11. package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -1
  12. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  13. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  14. package/dist/components/DataTable/DataTableInputSelect.vue.js +54 -53
  15. package/dist/components/ViewLayout/index.d.ts +2 -0
  16. package/dist/components/ViewLayout/index.d.ts.map +1 -0
  17. package/dist/components/ViewLayout/index.js +4 -0
  18. package/dist/layouts/App/create-api-client-app.d.ts +192 -182
  19. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  20. package/dist/layouts/Modal/create-api-client-modal.d.ts +384 -364
  21. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  22. package/dist/layouts/Web/create-api-client-web.d.ts +192 -182
  23. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  24. package/dist/libs/create-client.d.ts +192 -182
  25. package/dist/libs/create-client.d.ts.map +1 -1
  26. package/dist/libs/find-request.d.ts +6 -5
  27. package/dist/libs/find-request.d.ts.map +1 -1
  28. package/dist/libs/send-request/create-request-operation.test.d.ts +18 -17
  29. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  30. package/dist/store/active-entities.d.ts +18 -17
  31. package/dist/store/active-entities.d.ts.map +1 -1
  32. package/dist/store/request-example.d.ts +122 -122
  33. package/dist/store/request-example.d.ts.map +1 -1
  34. package/dist/store/requests.d.ts +66 -55
  35. package/dist/store/requests.d.ts.map +1 -1
  36. package/dist/store/security-schemes.d.ts +10 -10
  37. package/dist/store/store.d.ts +192 -182
  38. package/dist/store/store.d.ts.map +1 -1
  39. package/dist/style.css +1 -1
  40. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  41. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +23 -22
  42. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +1 -0
  43. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  44. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  45. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +18 -14
  46. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  47. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  48. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  49. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +12 -11
  50. package/dist/views/Request/ResponseSection/index.d.ts +1 -0
  51. package/dist/views/Request/ResponseSection/index.d.ts.map +1 -1
  52. package/dist/views/Request/ResponseSection/index.js +2 -0
  53. package/package.json +21 -11
@@ -1 +1 @@
1
- {"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"AAsQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACZ,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAS1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA+eF,wBAMG"}
1
+ {"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"AAqQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACZ,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAS1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAgfF,wBAMG"}
@@ -7,7 +7,7 @@ import B from "./OAuthScopesInput.vue.js";
7
7
  import w from "./RequestAuthDataTableInput.vue.js";
8
8
  import u from "../../../../components/DataTable/DataTableRow.vue.js";
9
9
  import { authorizeOauth2 as F } from "../../libs/oauth2.js";
10
- const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "border-t-1/2 flex h-8 w-full items-center justify-end" }, W = /* @__PURE__ */ S({
10
+ const I = { class: "border-t-1/2 flex h-8 items-center justify-end gap-2" }, A = { class: "border-t-1/2 flex h-8 w-full items-center justify-end" }, W = /* @__PURE__ */ S({
11
11
  __name: "OAuth2",
12
12
  props: {
13
13
  collection: {},
@@ -18,31 +18,32 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
18
18
  server: {},
19
19
  workspace: {}
20
20
  },
21
- setup(f) {
22
- const y = T(), { toast: g } = L(), { securitySchemeMutators: z } = R(), n = (l, e) => z.edit(f.scheme.uid, l, e), C = async () => {
21
+ setup(i) {
22
+ const y = T(), { toast: g } = L(), { securitySchemeMutators: z } = R(), n = (l, e) => z.edit(i.scheme.uid, l, e), C = async () => {
23
23
  var t, v;
24
- if (y.isLoading || !((t = f.collection) != null && t.uid))
24
+ if (y.isLoading || !((t = i.collection) != null && t.uid))
25
25
  return;
26
- if (y.startLoading(), !f.server) {
26
+ if (!i.server) {
27
27
  g("No server selected", "error");
28
28
  return;
29
29
  }
30
+ y.startLoading();
30
31
  const [l, e] = await F(
31
- f.flow,
32
- f.server,
33
- (v = f.workspace) == null ? void 0 : v.proxyUrl
32
+ i.flow,
33
+ i.server,
34
+ (v = i.workspace) == null ? void 0 : v.proxyUrl
34
35
  ).finally(() => y.stopLoading());
35
- e ? n(`flows.${f.flow.type}.token`, e) : (console.error(l), g((l == null ? void 0 : l.message) ?? "Failed to authorize", "error"));
36
- }, i = {
37
- environment: f.environment,
38
- envVariables: f.envVariables,
39
- workspace: f.workspace
36
+ e ? n(`flows.${i.flow.type}.token`, e) : (console.error(l), g((l == null ? void 0 : l.message) ?? "Failed to authorize", "error"));
37
+ }, f = {
38
+ environment: i.environment,
39
+ envVariables: i.envVariables,
40
+ workspace: i.workspace
40
41
  };
41
42
  return (l, e) => (s(), V(U, null, [
42
43
  l.flow.token ? (s(), V(U, { key: 0 }, [
43
44
  a(r(u), null, {
44
45
  default: o(() => [
45
- a(w, m(i, {
46
+ a(w, m(f, {
46
47
  class: "border-r-transparent",
47
48
  modelValue: l.flow.token,
48
49
  placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
@@ -79,7 +80,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
79
80
  ], 64)) : (s(), V(U, { key: 1 }, [
80
81
  a(r(u), null, {
81
82
  default: o(() => [
82
- "authorizationUrl" in l.flow ? (s(), k(w, m({ key: 0 }, i, {
83
+ "authorizationUrl" in l.flow ? (s(), k(w, m({ key: 0 }, f, {
83
84
  containerClass: "border-r-0",
84
85
  modelValue: l.flow.authorizationUrl,
85
86
  placeholder: "https://galaxy.scalar.com/authorize",
@@ -90,7 +91,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
90
91
  ])),
91
92
  _: 1
92
93
  }, 16, ["modelValue"])) : p("", !0),
93
- "tokenUrl" in l.flow ? (s(), k(w, m({ key: 1 }, i, {
94
+ "tokenUrl" in l.flow ? (s(), k(w, m({ key: 1 }, f, {
94
95
  modelValue: l.flow.tokenUrl,
95
96
  placeholder: "https://galaxy.scalar.com/token",
96
97
  "onUpdate:modelValue": e[3] || (e[3] = (t) => n(`flows.${l.flow.type}.tokenUrl`, t))
@@ -105,7 +106,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
105
106
  }),
106
107
  "x-scalar-redirect-uri" in l.flow ? (s(), k(r(u), { key: 0 }, {
107
108
  default: o(() => [
108
- a(w, m(i, {
109
+ a(w, m(f, {
109
110
  modelValue: l.flow["x-scalar-redirect-uri"],
110
111
  placeholder: "https://galaxy.scalar.com/callback",
111
112
  "onUpdate:modelValue": e[4] || (e[4] = (t) => n(`flows.${l.flow.type}.x-scalar-redirect-uri`, t))
@@ -121,7 +122,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
121
122
  l.flow.type === "password" ? (s(), V(U, { key: 1 }, [
122
123
  a(r(u), null, {
123
124
  default: o(() => [
124
- a(w, m(i, {
125
+ a(w, m(f, {
125
126
  class: "text-c-2",
126
127
  modelValue: l.flow.username,
127
128
  placeholder: "janedoe",
@@ -137,7 +138,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
137
138
  }),
138
139
  a(r(u), null, {
139
140
  default: o(() => [
140
- a(w, m(i, {
141
+ a(w, m(f, {
141
142
  modelValue: l.flow.password,
142
143
  placeholder: "********",
143
144
  type: "password",
@@ -154,7 +155,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
154
155
  ], 64)) : p("", !0),
155
156
  a(r(u), null, {
156
157
  default: o(() => [
157
- a(w, m(i, {
158
+ a(w, m(f, {
158
159
  modelValue: l.flow["x-scalar-client-id"],
159
160
  placeholder: "12345",
160
161
  "onUpdate:modelValue": e[7] || (e[7] = (t) => n(`flows.${l.flow.type}.x-scalar-client-id`, t))
@@ -169,7 +170,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
169
170
  }),
170
171
  "clientSecret" in l.flow ? (s(), k(r(u), { key: 2 }, {
171
172
  default: o(() => [
172
- a(w, m(i, {
173
+ a(w, m(f, {
173
174
  modelValue: l.flow.clientSecret,
174
175
  placeholder: "XYZ123",
175
176
  type: "password",
@@ -185,7 +186,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
185
186
  })) : p("", !0),
186
187
  "x-usePkce" in l.flow ? (s(), k(r(u), { key: 3 }, {
187
188
  default: o(() => [
188
- a(w, m(i, {
189
+ a(w, m(f, {
189
190
  enum: r(P),
190
191
  modelValue: l.flow["x-usePkce"],
191
192
  readOnly: "",
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  title: string;
3
+ layout: 'client' | 'reference';
3
4
  data: unknown;
4
5
  headers: {
5
6
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBody.vue"],"names":[],"mappings":"AAkGA,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;;AAyKF,wBAOG"}
1
+ {"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBody.vue"],"names":[],"mappings":"AAqGA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,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;;AAyKF,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 s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1e73a183"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-96392ac5"]]);
5
5
  export {
6
- s as default
6
+ a as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, ref as N, computed as d, toRef as w, openBlock as o, createBlock as n, createSlots as T, withCtx as u, createTextVNode as g, toDisplayString as _, createElementBlock as $, createElementVNode as x, unref as a, createCommentVNode as s, createVNode as E } from "vue";
1
+ import { defineComponent as C, ref as N, computed as m, toRef as w, openBlock as o, createBlock as n, createSlots as T, withCtx as d, createTextVNode as g, toDisplayString as _, createElementBlock as $, createElementVNode as x, unref as a, createCommentVNode as s, createVNode as E } from "vue";
2
2
  import P from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
3
3
  import { useResponseBody as S } from "../../../hooks/useResponseBody.js";
4
4
  import U from "./ResponseBodyDownload.vue.js";
@@ -14,33 +14,37 @@ const z = {
14
14
  __name: "ResponseBody",
15
15
  props: {
16
16
  title: {},
17
+ layout: {},
17
18
  data: {},
18
19
  headers: {}
19
20
  },
20
21
  setup(k) {
21
- const c = k, r = N(!0), p = d(
22
+ const c = k, r = N(!0), p = m(
22
23
  () => {
23
24
  var t;
24
25
  return !!((t = e.value) != null && t.raw && e.value.preview);
25
26
  }
26
- ), B = d(() => r.value || !p.value), R = d(() => !r.value || !p.value), { mimeType: i, attachmentFilename: V, dataUrl: l } = S({
27
+ ), B = m(() => r.value || !p.value), R = m(() => !r.value || !p.value), { mimeType: u, attachmentFilename: V, dataUrl: l } = S({
27
28
  data: w(c, "data"),
28
29
  headers: w(c, "headers")
29
- }), e = d(() => q[i.value.essence]);
30
- return (t, m) => (o(), n(P, { class: "max-h-content overflow-y-hidden" }, T({
31
- title: u(() => [
30
+ }), e = m(() => q[u.value.essence]);
31
+ return (t, i) => (o(), n(P, {
32
+ class: "max-h-content overflow-y-hidden",
33
+ layout: t.layout
34
+ }, T({
35
+ title: d(() => [
32
36
  g(_(t.title), 1)
33
37
  ]),
34
- default: u(() => {
38
+ default: d(() => {
35
39
  var f, v, y, h;
36
40
  return [
37
41
  t.data ? (o(), $("div", z, [
38
42
  x("div", A, [
39
- x("span", G, _(a(i).essence), 1),
43
+ x("span", G, _(a(u).essence), 1),
40
44
  p.value ? (o(), n(I, {
41
45
  key: 0,
42
46
  modelValue: r.value,
43
- "onUpdate:modelValue": m[0] || (m[0] = (b) => r.value = b)
47
+ "onUpdate:modelValue": i[0] || (i[0] = (b) => r.value = b)
44
48
  }, null, 8, ["modelValue"])) : s("", !0)
45
49
  ]),
46
50
  (f = e.value) != null && f.raw && R.value ? (o(), n(F, {
@@ -53,10 +57,10 @@ const z = {
53
57
  alpha: e.value.alpha,
54
58
  mode: e.value.preview,
55
59
  src: a(l),
56
- type: a(i).essence
60
+ type: a(u).essence
57
61
  }, null, 8, ["alpha", "mode", "src", "type"])) : s("", !0),
58
62
  !((y = e.value) != null && y.raw) && !((h = e.value) != null && h.preview) ? (o(), n(j, { key: 2 }, {
59
- default: u(() => m[1] || (m[1] = [
63
+ default: d(() => i[1] || (i[1] = [
60
64
  g(" Binary file ")
61
65
  ])),
62
66
  _: 1
@@ -68,16 +72,16 @@ const z = {
68
72
  }, [
69
73
  t.data && a(l) ? {
70
74
  name: "actions",
71
- fn: u(() => [
75
+ fn: d(() => [
72
76
  E(U, {
73
77
  filename: a(V),
74
78
  href: a(l),
75
- type: a(i).essence
79
+ type: a(u).essence
76
80
  }, null, 8, ["filename", "href", "type"])
77
81
  ]),
78
82
  key: "0"
79
83
  } : void 0
80
- ]), 1024));
84
+ ]), 1032, ["layout"]));
81
85
  }
82
86
  });
83
87
  export {
@@ -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.27";
37
+ }, w = "2.3.29";
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":"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
+ {"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AAyQA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,gBAAgB,EACjB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAcrF,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;IACpB,SAAS,EAAE,SAAS,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAA;IACtC,aAAa,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAA;CACpD,CAAC;;AAoTF,wBAOG"}
@@ -1,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-559f2ac3"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6919642b"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,4 +1,4 @@
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";
1
+ import { defineComponent as C, computed as c, ref as T, useId as w, openBlock as n, createBlock as t, withCtx as v, createElementVNode as u, normalizeClass as y, createCommentVNode as d, createVNode as k, createElementBlock as h, Fragment as b } from "vue";
2
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";
@@ -22,7 +22,7 @@ const F = { class: "flex h-8 flex-1 items-center" }, L = ["id", "role"], A = 2e5
22
22
  requestResult: {}
23
23
  },
24
24
  setup(l) {
25
- const m = d(() => {
25
+ const m = c(() => {
26
26
  var o;
27
27
  const e = (o = l.response) == null ? void 0 : o.headers;
28
28
  return e ? Object.keys(e).map((a) => ({
@@ -30,7 +30,7 @@ const F = { class: "flex h-8 flex-1 items-center" }, L = ["id", "role"], A = 2e5
30
30
  value: e[a] ?? "",
31
31
  required: !1
32
32
  })) : [];
33
- }), B = d(
33
+ }), B = c(
34
34
  () => {
35
35
  var e;
36
36
  return ((e = l.response) == null ? void 0 : e.cookieHeaderKeys.flatMap((o) => {
@@ -43,11 +43,11 @@ const F = { class: "flex h-8 flex-1 items-center" }, L = ["id", "role"], A = 2e5
43
43
  } : [];
44
44
  })) ?? [];
45
45
  }
46
- ), R = ["Cookies", "Headers", "Body"], s = T("All"), f = d(() => ["All", ...R]), r = d(
46
+ ), R = ["Cookies", "Headers", "Body"], s = T("All"), f = c(() => ["All", ...R]), r = c(
47
47
  () => Object.fromEntries(
48
48
  f.value.map((e) => [e, w()])
49
49
  )
50
- ), q = d(() => {
50
+ ), q = c(() => {
51
51
  var i, p;
52
52
  if (!l.response || !("size" in l.response))
53
53
  return !1;
@@ -80,7 +80,7 @@ const F = { class: "flex h-8 flex-1 items-center" }, L = ["id", "role"], A = 2e5
80
80
  // Form data
81
81
  "application/x-www-form-urlencoded"
82
82
  ].some((j) => e.includes(j)) && (l.response.size ?? 0) > A;
83
- }), H = d(
83
+ }), H = c(
84
84
  () => {
85
85
  var e;
86
86
  return ((e = l.requestResult) == null ? void 0 : e.request.parameters.headers.filter((o) => o.enabled).map((o) => ({
@@ -102,7 +102,7 @@ const F = { class: "flex h-8 flex-1 items-center" }, L = ["id", "role"], A = 2e5
102
102
  key: 0,
103
103
  class: "animate-response-children",
104
104
  response: e.response
105
- }, null, 8, ["response"])) : c("", !0)
105
+ }, null, 8, ["response"])) : d("", !0)
106
106
  ], 2),
107
107
  k(x, {
108
108
  modelValue: s.value,
@@ -129,21 +129,21 @@ const F = { class: "flex h-8 flex-1 items-center" }, L = ["id", "role"], A = 2e5
129
129
  id: r.value.Cookies,
130
130
  cookies: B.value,
131
131
  role: s.value === "All" ? "none" : "tabpanel"
132
- }, null, 8, ["id", "cookies", "role"])) : c("", !0),
132
+ }, null, 8, ["id", "cookies", "role"])) : d("", !0),
133
133
  s.value === "All" || s.value === "Headers" ? (n(), t(I, {
134
134
  key: 1,
135
135
  class: "response-section-content-headers",
136
136
  id: r.value.Headers,
137
137
  headers: H.value,
138
138
  role: s.value === "All" ? "none" : "tabpanel"
139
- }, null, 8, ["id", "headers", "role"])) : c("", !0),
139
+ }, null, 8, ["id", "headers", "role"])) : d("", !0),
140
140
  s.value === "All" || s.value === "Headers" ? (n(), t(N, {
141
141
  key: 2,
142
142
  class: "response-section-content-headers",
143
143
  id: r.value.Headers,
144
144
  headers: m.value,
145
145
  role: s.value === "All" ? "none" : "tabpanel"
146
- }, null, 8, ["id", "headers", "role"])) : c("", !0),
146
+ }, null, 8, ["id", "headers", "role"])) : d("", !0),
147
147
  s.value === "All" || s.value === "Body" ? (n(), h(b, { key: 3 }, [
148
148
  "reader" in e.response ? (n(), t(g, {
149
149
  key: 0,
@@ -161,13 +161,14 @@ const F = { class: "flex h-8 flex-1 items-center" }, L = ["id", "role"], A = 2e5
161
161
  key: 2,
162
162
  class: "response-section-content-body",
163
163
  id: r.value.Body,
164
+ layout: "client",
164
165
  active: !0,
165
166
  data: (p = e.response) == null ? void 0 : p.data,
166
167
  headers: m.value,
167
168
  role: s.value === "All" ? "none" : "tabpanel",
168
169
  title: "Body"
169
170
  }, null, 8, ["id", "data", "headers", "role"]))
170
- ], 64)) : c("", !0)
171
+ ], 64)) : d("", !0)
171
172
  ], 64)) : (n(), t(O, {
172
173
  key: 0,
173
174
  collection: e.collection,
@@ -1,2 +1,3 @@
1
1
  export { default as ResponseSection } from './ResponseSection.vue';
2
+ export { default as ResponseBody } from './ResponseBody.vue';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1,4 +1,6 @@
1
1
  import { default as s } from "./ResponseSection.vue.js";
2
+ import { default as a } from "./ResponseBody.vue.js";
2
3
  export {
4
+ a as ResponseBody,
3
5
  s as ResponseSection
4
6
  };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.3.27",
21
+ "version": "2.3.29",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -45,6 +45,11 @@
45
45
  "types": "./dist/components/AddressBar/index.d.ts",
46
46
  "default": "./dist/components/AddressBar/index.js"
47
47
  },
48
+ "./components/CodeInput": {
49
+ "import": "./dist/components/CodeInput/index.js",
50
+ "types": "./dist/components/CodeInput/index.d.ts",
51
+ "default": "./dist/components/CodeInput/index.js"
52
+ },
48
53
  "./components/CommandPalette": {
49
54
  "import": "./dist/components/CommandPalette/index.js",
50
55
  "types": "./dist/components/CommandPalette/index.d.ts",
@@ -75,6 +80,11 @@
75
80
  "types": "./dist/components/Sidebar/index.d.ts",
76
81
  "default": "./dist/components/Sidebar/index.js"
77
82
  },
83
+ "./components/ViewLayout": {
84
+ "import": "./dist/components/ViewLayout/index.js",
85
+ "types": "./dist/components/ViewLayout/index.d.ts",
86
+ "default": "./dist/components/ViewLayout/index.js"
87
+ },
78
88
  "./css/*.css": {
79
89
  "import": "./dist/css/*.css",
80
90
  "require": "./dist/css/*.css",
@@ -188,20 +198,20 @@
188
198
  "vue-router": "^4.3.0",
189
199
  "whatwg-mimetype": "^4.0.0",
190
200
  "yaml": "^2.4.5",
191
- "zod": "^3.23.8",
192
- "@scalar/components": "0.13.54",
193
- "@scalar/icons": "0.3.3",
201
+ "zod": "3.24.1",
202
+ "@scalar/components": "0.13.55",
194
203
  "@scalar/draggable": "0.1.11",
195
- "@scalar/import": "0.3.20",
196
- "@scalar/oas-utils": "0.2.137",
204
+ "@scalar/icons": "0.3.3",
205
+ "@scalar/import": "0.3.22",
206
+ "@scalar/oas-utils": "0.2.139",
197
207
  "@scalar/object-utils": "1.1.13",
198
208
  "@scalar/openapi-parser": "0.10.16",
199
209
  "@scalar/openapi-types": "0.2.1",
200
- "@scalar/postman-to-openapi": "0.2.10",
201
210
  "@scalar/snippetz": "0.2.19",
202
- "@scalar/themes": "0.10.4",
203
- "@scalar/use-codemirror": "0.11.99",
211
+ "@scalar/postman-to-openapi": "0.2.12",
204
212
  "@scalar/types": "0.1.12",
213
+ "@scalar/themes": "0.10.4",
214
+ "@scalar/use-codemirror": "0.11.100",
205
215
  "@scalar/use-hooks": "0.1.46",
206
216
  "@scalar/use-tooltip": "1.0.6",
207
217
  "@scalar/use-toasts": "0.7.9"
@@ -219,8 +229,8 @@
219
229
  "vite": "^5.4.10",
220
230
  "vite-svg-loader": "^5.1.0",
221
231
  "vitest": "^1.6.0",
222
- "@scalar/build-tooling": "0.1.18",
223
- "@scalar/galaxy": "0.3.1"
232
+ "@scalar/galaxy": "0.3.1",
233
+ "@scalar/build-tooling": "0.1.18"
224
234
  },
225
235
  "scripts": {
226
236
  "build": "scalar-build-vite",