@scalar/api-client 2.0.57 → 2.0.58
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 +18 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +61 -58
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +31 -25
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +51 -45
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +47 -41
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -40
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +67 -61
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +30 -30
- package/dist/components/TopNav/TopNav.vue.d.ts +20 -1
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +64 -49
- package/dist/layouts/App/ApiClientApp.vue.d.ts +11 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +53 -49
- package/dist/libs/event-busses/cancel-request-bus.d.ts +2 -0
- package/dist/libs/event-busses/cancel-request-bus.d.ts.map +1 -0
- package/dist/libs/event-busses/cancel-request-bus.js +5 -0
- package/dist/libs/event-busses/hot-keys-bus.d.ts +3 -1
- package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.js +1 -0
- package/dist/libs/event-busses/index.d.ts +2 -1
- package/dist/libs/event-busses/index.d.ts.map +1 -1
- package/dist/libs/event-busses/index.js +11 -8
- package/dist/libs/index.js +21 -18
- package/dist/libs/local-storage.js +1 -1
- package/dist/libs/sendRequest.d.ts +2 -2
- package/dist/libs/sendRequest.d.ts.map +1 -1
- package/dist/libs/sendRequest.js +22 -21
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +100 -103
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.d.ts +11 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +3 -3
- package/dist/views/Request/Request.vue2.js +184 -174
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +2 -0
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +139 -130
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts +3 -0
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +39 -0
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -30
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +23 -21
- package/package.json +7 -7
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { defineComponent as _, computed as
|
|
1
|
+
import { defineComponent as _, computed as p, ref as h, openBlock as r, createBlock as n, withCtx as u, createVNode as c, unref as x, createElementVNode as d, createTextVNode as y, createCommentVNode as l, createElementBlock as C, Fragment as A } from "vue";
|
|
2
2
|
import B from "../../../components/ContextBar.vue.js";
|
|
3
3
|
import S from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
4
4
|
import $ from "./ResponseBody.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import g from "./ResponseEmpty.vue.js";
|
|
6
|
+
import E from "./ResponseLoadingOverlay.vue.js";
|
|
6
7
|
import N from "./ResponseMetaInformation.vue.js";
|
|
7
|
-
import { ScalarIcon as
|
|
8
|
-
import
|
|
8
|
+
import { ScalarIcon as R } from "@scalar/components";
|
|
9
|
+
import V from "./ResponseCookies.vue.js";
|
|
9
10
|
import H from "./ResponseHeaders.vue.js";
|
|
10
|
-
const
|
|
11
|
+
const L = { class: "flex items-center flex-1" }, O = { class: "custom-scroll relative flex flex-1 flex-col px-2 xl:px-6 py-2.5" }, D = /* @__PURE__ */ _({
|
|
11
12
|
__name: "ResponseSection",
|
|
12
13
|
props: {
|
|
13
14
|
response: {}
|
|
14
15
|
},
|
|
15
16
|
setup(f) {
|
|
16
|
-
const
|
|
17
|
+
const i = f, m = p(() => {
|
|
17
18
|
var s;
|
|
18
|
-
const e = (s =
|
|
19
|
+
const e = (s = i.response) == null ? void 0 : s.headers;
|
|
19
20
|
return e ? Object.keys(e).map((o) => ({
|
|
20
21
|
name: o,
|
|
21
22
|
value: e[o],
|
|
@@ -26,9 +27,9 @@ const R = { class: "flex items-center flex-1" }, b = { class: "custom-scroll fle
|
|
|
26
27
|
"X-API-Client-Content-Length"
|
|
27
28
|
].includes(o.name)
|
|
28
29
|
) : [];
|
|
29
|
-
}), v =
|
|
30
|
+
}), v = p(() => {
|
|
30
31
|
var s, o;
|
|
31
|
-
const e = (o = (s =
|
|
32
|
+
const e = (o = (s = i.response) == null ? void 0 : s.headers) == null ? void 0 : o.cookies;
|
|
32
33
|
return e ? Object.keys(e).map((a) => ({
|
|
33
34
|
name: a,
|
|
34
35
|
value: e[a],
|
|
@@ -36,14 +37,14 @@ const R = { class: "flex items-center flex-1" }, b = { class: "custom-scroll fle
|
|
|
36
37
|
})) : [];
|
|
37
38
|
}), k = ["All", "Body", "Headers", "Cookies"], t = h("All");
|
|
38
39
|
return (e, s) => (r(), n(S, null, {
|
|
39
|
-
title:
|
|
40
|
-
|
|
40
|
+
title: u(() => [
|
|
41
|
+
c(x(R), {
|
|
41
42
|
class: "text-c-3 mr-2 rotate-180",
|
|
42
43
|
icon: "ExternalLink",
|
|
43
44
|
size: "sm",
|
|
44
45
|
thickness: "2.5"
|
|
45
46
|
}),
|
|
46
|
-
d("div",
|
|
47
|
+
d("div", L, [
|
|
47
48
|
y(" Response "),
|
|
48
49
|
e.response ? (r(), n(N, {
|
|
49
50
|
key: 0,
|
|
@@ -51,32 +52,33 @@ const R = { class: "flex items-center flex-1" }, b = { class: "custom-scroll fle
|
|
|
51
52
|
}, null, 8, ["response"])) : l("", !0)
|
|
52
53
|
])
|
|
53
54
|
]),
|
|
54
|
-
default:
|
|
55
|
+
default: u(() => {
|
|
55
56
|
var o;
|
|
56
57
|
return [
|
|
57
|
-
d("div",
|
|
58
|
+
d("div", O, [
|
|
58
59
|
e.response ? (r(), C(A, { key: 1 }, [
|
|
59
|
-
|
|
60
|
+
c(B, {
|
|
60
61
|
activeSection: t.value,
|
|
61
62
|
sections: k,
|
|
62
63
|
onSetActiveSection: s[0] || (s[0] = (a) => t.value = a)
|
|
63
64
|
}, null, 8, ["activeSection"]),
|
|
64
|
-
t.value === "All" || t.value === "Cookies" ? (r(), n(
|
|
65
|
+
t.value === "All" || t.value === "Cookies" ? (r(), n(V, {
|
|
65
66
|
key: 0,
|
|
66
67
|
cookies: v.value
|
|
67
68
|
}, null, 8, ["cookies"])) : l("", !0),
|
|
68
69
|
t.value === "All" || t.value === "Headers" ? (r(), n(H, {
|
|
69
70
|
key: 1,
|
|
70
|
-
headers:
|
|
71
|
+
headers: m.value
|
|
71
72
|
}, null, 8, ["headers"])) : l("", !0),
|
|
72
73
|
t.value === "All" || t.value === "Body" ? (r(), n($, {
|
|
73
74
|
key: 2,
|
|
74
75
|
active: !0,
|
|
75
|
-
data: (o =
|
|
76
|
-
headers:
|
|
76
|
+
data: (o = i.response) == null ? void 0 : o.data,
|
|
77
|
+
headers: m.value,
|
|
77
78
|
title: "Body"
|
|
78
79
|
}, null, 8, ["data", "headers"])) : l("", !0)
|
|
79
|
-
], 64)) : (r(), n(
|
|
80
|
+
], 64)) : (r(), n(g, { key: 0 })),
|
|
81
|
+
c(E)
|
|
80
82
|
])
|
|
81
83
|
];
|
|
82
84
|
}),
|
|
@@ -85,5 +87,5 @@ const R = { class: "flex items-center flex-1" }, b = { class: "custom-scroll fle
|
|
|
85
87
|
}
|
|
86
88
|
});
|
|
87
89
|
export {
|
|
88
|
-
|
|
90
|
+
D as default
|
|
89
91
|
};
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.0.
|
|
21
|
+
"version": "2.0.58",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -127,15 +127,15 @@
|
|
|
127
127
|
"vue-router": "^4.3.0",
|
|
128
128
|
"whatwg-mimetype": "^4.0.0",
|
|
129
129
|
"zod": "^3.22.4",
|
|
130
|
-
"@scalar/components": "0.12.
|
|
130
|
+
"@scalar/components": "0.12.39",
|
|
131
131
|
"@scalar/draggable": "0.1.4",
|
|
132
|
-
"@scalar/oas-utils": "0.2.37",
|
|
133
132
|
"@scalar/object-utils": "1.1.7",
|
|
134
|
-
"@scalar/
|
|
135
|
-
"@scalar/
|
|
133
|
+
"@scalar/oas-utils": "0.2.38",
|
|
134
|
+
"@scalar/themes": "0.9.27",
|
|
136
135
|
"@scalar/use-codemirror": "0.11.10",
|
|
137
|
-
"@scalar/
|
|
138
|
-
"@scalar/use-toasts": "0.7.5"
|
|
136
|
+
"@scalar/types": "0.0.4",
|
|
137
|
+
"@scalar/use-toasts": "0.7.5",
|
|
138
|
+
"@scalar/use-tooltip": "1.0.2"
|
|
139
139
|
},
|
|
140
140
|
"devDependencies": {
|
|
141
141
|
"@types/content-type": "^1.1.8",
|