@scalar/api-client 2.3.28 → 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.
- package/CHANGELOG.md +14 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +12 -10
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +54 -53
- package/dist/layouts/App/create-api-client-app.d.ts +182 -172
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +364 -344
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +182 -172
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +182 -172
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts +6 -5
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts +18 -17
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +18 -17
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +122 -122
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +66 -55
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/store.d.ts +182 -172
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +1 -0
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +18 -14
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +12 -11
- package/dist/views/Request/ResponseSection/index.d.ts +1 -0
- package/dist/views/Request/ResponseSection/index.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/index.js +2 -0
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBody.vue"],"names":[],"mappings":"
|
|
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
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-96392ac5"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, ref as N, computed as
|
|
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 =
|
|
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 =
|
|
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 =
|
|
30
|
-
return (t,
|
|
31
|
-
|
|
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:
|
|
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(
|
|
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":
|
|
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(
|
|
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:
|
|
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:
|
|
75
|
+
fn: d(() => [
|
|
72
76
|
E(U, {
|
|
73
77
|
filename: a(V),
|
|
74
78
|
href: a(l),
|
|
75
|
-
type: a(
|
|
79
|
+
type: a(u).essence
|
|
76
80
|
}, null, 8, ["filename", "href", "type"])
|
|
77
81
|
]),
|
|
78
82
|
key: "0"
|
|
79
83
|
} : void 0
|
|
80
|
-
]),
|
|
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.
|
|
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":"
|
|
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-
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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"])) :
|
|
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"])) :
|
|
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"])) :
|
|
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"])) :
|
|
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)) :
|
|
171
|
+
], 64)) : d("", !0)
|
|
171
172
|
], 64)) : (n(), t(O, {
|
|
172
173
|
key: 0,
|
|
173
174
|
collection: e.collection,
|
|
@@ -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"}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.3.
|
|
21
|
+
"version": "2.3.29",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -199,19 +199,19 @@
|
|
|
199
199
|
"whatwg-mimetype": "^4.0.0",
|
|
200
200
|
"yaml": "^2.4.5",
|
|
201
201
|
"zod": "3.24.1",
|
|
202
|
-
"@scalar/components": "0.13.
|
|
202
|
+
"@scalar/components": "0.13.55",
|
|
203
203
|
"@scalar/draggable": "0.1.11",
|
|
204
204
|
"@scalar/icons": "0.3.3",
|
|
205
|
-
"@scalar/import": "0.3.
|
|
206
|
-
"@scalar/oas-utils": "0.2.
|
|
205
|
+
"@scalar/import": "0.3.22",
|
|
206
|
+
"@scalar/oas-utils": "0.2.139",
|
|
207
|
+
"@scalar/object-utils": "1.1.13",
|
|
207
208
|
"@scalar/openapi-parser": "0.10.16",
|
|
208
209
|
"@scalar/openapi-types": "0.2.1",
|
|
209
|
-
"@scalar/object-utils": "1.1.13",
|
|
210
210
|
"@scalar/snippetz": "0.2.19",
|
|
211
|
-
"@scalar/postman-to-openapi": "0.2.
|
|
212
|
-
"@scalar/themes": "0.10.4",
|
|
211
|
+
"@scalar/postman-to-openapi": "0.2.12",
|
|
213
212
|
"@scalar/types": "0.1.12",
|
|
214
|
-
"@scalar/
|
|
213
|
+
"@scalar/themes": "0.10.4",
|
|
214
|
+
"@scalar/use-codemirror": "0.11.100",
|
|
215
215
|
"@scalar/use-hooks": "0.1.46",
|
|
216
216
|
"@scalar/use-tooltip": "1.0.6",
|
|
217
217
|
"@scalar/use-toasts": "0.7.9"
|