@scalar/api-client 2.1.23 → 2.1.24
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 +6 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +9 -9
- package/dist/components/SideNav/SideHelp.vue.js +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +4 -4
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.js +3 -3
- package/dist/components/Sidebar/SidebarToggle.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +3 -3
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +45 -53
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +3 -3
- package/dist/views/Request/RequestSidebar.vue2.js +42 -45
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +3 -3
- package/dist/views/Request/RequestSubpageHeader.vue2.js +15 -13
- 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 +44 -51
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/package.json +5 -5
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { defineComponent as A, computed as i, ref as C, openBlock as s, createBlock as r, withCtx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import N from "./ResponseBodyVirtual.vue.js";
|
|
1
|
+
import { defineComponent as A, computed as i, ref as C, openBlock as s, createBlock as r, withCtx as u, createElementVNode as d, createTextVNode as B, createCommentVNode as a, createVNode as f, createElementBlock as v, Fragment as _ } from "vue";
|
|
2
|
+
import S from "../../../components/ContextBar.vue.js";
|
|
3
|
+
import H from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
4
|
+
import R from "./ResponseBody.vue.js";
|
|
5
|
+
import V from "./ResponseEmpty.vue.js";
|
|
6
|
+
import $ from "./ResponseLoadingOverlay.vue.js";
|
|
7
|
+
import N from "./ResponseMetaInformation.vue.js";
|
|
8
|
+
import g from "./ResponseBodyVirtual.vue.js";
|
|
10
9
|
/* empty css */
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
const
|
|
10
|
+
import E from "./ResponseCookies.vue.js";
|
|
11
|
+
import I from "./ResponseHeaders.vue.js";
|
|
12
|
+
const L = { class: "flex items-center flex-1" }, O = { class: "custom-scroll relative flex flex-1 flex-col px-2 xl:px-4 py-2.5" }, T = 2e4, X = /* @__PURE__ */ A({
|
|
14
13
|
__name: "ResponseSection",
|
|
15
14
|
props: {
|
|
16
15
|
response: {}
|
|
17
16
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
17
|
+
setup(k) {
|
|
18
|
+
const l = k, c = i(() => {
|
|
20
19
|
var t;
|
|
21
|
-
const e = (t =
|
|
20
|
+
const e = (t = l.response) == null ? void 0 : t.headers;
|
|
22
21
|
return e ? Object.keys(e).map((o) => ({
|
|
23
22
|
name: o,
|
|
24
23
|
value: e[o],
|
|
@@ -32,9 +31,9 @@ const T = { class: "flex items-center flex-1" }, z = { class: "custom-scroll rel
|
|
|
32
31
|
}), y = i(
|
|
33
32
|
() => {
|
|
34
33
|
var e;
|
|
35
|
-
return ((e =
|
|
36
|
-
var p,
|
|
37
|
-
const o = (
|
|
34
|
+
return ((e = l.response) == null ? void 0 : e.cookieHeaderKeys.flatMap((t) => {
|
|
35
|
+
var p, m;
|
|
36
|
+
const o = (m = (p = l.response) == null ? void 0 : p.headers) == null ? void 0 : m[t];
|
|
38
37
|
return o ? {
|
|
39
38
|
name: t,
|
|
40
39
|
value: o,
|
|
@@ -42,60 +41,54 @@ const T = { class: "flex items-center flex-1" }, z = { class: "custom-scroll rel
|
|
|
42
41
|
} : [];
|
|
43
42
|
})) ?? [];
|
|
44
43
|
}
|
|
45
|
-
),
|
|
44
|
+
), h = ["All", "Cookies", "Headers", "Body"], n = C("All"), x = i(
|
|
46
45
|
() => {
|
|
47
46
|
var e;
|
|
48
|
-
return (((e =
|
|
47
|
+
return (((e = l.response) == null ? void 0 : e.size) ?? 0) > T;
|
|
49
48
|
}
|
|
50
49
|
);
|
|
51
|
-
return (e, t) => (s(), r(
|
|
52
|
-
title:
|
|
53
|
-
|
|
54
|
-
class: "text-c-3 mr-2 rotate-180",
|
|
55
|
-
icon: "ExternalLink",
|
|
56
|
-
size: "sm",
|
|
57
|
-
thickness: "2.5"
|
|
58
|
-
}),
|
|
59
|
-
f("div", T, [
|
|
50
|
+
return (e, t) => (s(), r(H, null, {
|
|
51
|
+
title: u(() => [
|
|
52
|
+
d("div", L, [
|
|
60
53
|
t[1] || (t[1] = B(" Response ")),
|
|
61
|
-
e.response ? (s(), r(
|
|
54
|
+
e.response ? (s(), r(N, {
|
|
62
55
|
key: 0,
|
|
63
56
|
response: e.response
|
|
64
|
-
}, null, 8, ["response"])) :
|
|
65
|
-
|
|
57
|
+
}, null, 8, ["response"])) : a("", !0),
|
|
58
|
+
f(S, {
|
|
66
59
|
activeSection: n.value,
|
|
67
|
-
sections:
|
|
60
|
+
sections: h,
|
|
68
61
|
onSetActiveSection: t[0] || (t[0] = (o) => n.value = o)
|
|
69
62
|
}, null, 8, ["activeSection"])
|
|
70
63
|
])
|
|
71
64
|
]),
|
|
72
|
-
default:
|
|
65
|
+
default: u(() => {
|
|
73
66
|
var o;
|
|
74
67
|
return [
|
|
75
|
-
|
|
76
|
-
e.response ? (s(), v(
|
|
77
|
-
n.value === "All" || n.value === "Cookies" ? (s(), r(
|
|
68
|
+
d("div", O, [
|
|
69
|
+
e.response ? (s(), v(_, { key: 1 }, [
|
|
70
|
+
n.value === "All" || n.value === "Cookies" ? (s(), r(E, {
|
|
78
71
|
key: 0,
|
|
79
72
|
cookies: y.value
|
|
80
|
-
}, null, 8, ["cookies"])) :
|
|
81
|
-
n.value === "All" || n.value === "Headers" ? (s(), r(
|
|
73
|
+
}, null, 8, ["cookies"])) : a("", !0),
|
|
74
|
+
n.value === "All" || n.value === "Headers" ? (s(), r(I, {
|
|
82
75
|
key: 1,
|
|
83
|
-
headers:
|
|
84
|
-
}, null, 8, ["headers"])) :
|
|
85
|
-
n.value === "All" || n.value === "Body" ? (s(), v(
|
|
86
|
-
|
|
76
|
+
headers: c.value
|
|
77
|
+
}, null, 8, ["headers"])) : a("", !0),
|
|
78
|
+
n.value === "All" || n.value === "Body" ? (s(), v(_, { key: 2 }, [
|
|
79
|
+
x.value ? (s(), r(g, {
|
|
87
80
|
key: 0,
|
|
88
|
-
content:
|
|
89
|
-
}, null, 8, ["content"])) : (s(), r(
|
|
81
|
+
content: l.response.data
|
|
82
|
+
}, null, 8, ["content"])) : (s(), r(R, {
|
|
90
83
|
key: 1,
|
|
91
84
|
active: !0,
|
|
92
|
-
data: (o =
|
|
93
|
-
headers:
|
|
85
|
+
data: (o = l.response) == null ? void 0 : o.data,
|
|
86
|
+
headers: c.value,
|
|
94
87
|
title: "Body"
|
|
95
88
|
}, null, 8, ["data", "headers"]))
|
|
96
|
-
], 64)) :
|
|
97
|
-
], 64)) : (s(), r(
|
|
98
|
-
|
|
89
|
+
], 64)) : a("", !0)
|
|
90
|
+
], 64)) : (s(), r(V, { key: 0 })),
|
|
91
|
+
f($)
|
|
99
92
|
])
|
|
100
93
|
];
|
|
101
94
|
}),
|
|
@@ -104,5 +97,5 @@ const T = { class: "flex items-center flex-1" }, z = { class: "custom-scroll rel
|
|
|
104
97
|
}
|
|
105
98
|
});
|
|
106
99
|
export {
|
|
107
|
-
|
|
100
|
+
X as default
|
|
108
101
|
};
|
|
@@ -4,7 +4,7 @@ import q from "../../../components/Sidebar/Actions/EditSidebarListElement.vue.js
|
|
|
4
4
|
import { useModal as C, ScalarDropdown as $, ScalarDropdownItem as m, ScalarIcon as i, ScalarTooltip as F, ScalarButton as S, ScalarDropdownDivider as P, ScalarModal as N } from "@scalar/components";
|
|
5
5
|
import { useRouter as Y } from "vue-router";
|
|
6
6
|
import { useWorkspace as G } from "../../../store/store.js";
|
|
7
|
-
const H = { class: "flex items-center text-sm w-[inherit]" }, J = { class: "font-medium m-0 text-
|
|
7
|
+
const H = { class: "flex items-center text-sm w-[inherit]" }, J = { class: "font-medium m-0 text-xs flex gap-1.5 items-center" }, K = { class: "line-clamp-1 text-left w-[calc(100%-10px)]" }, Q = { class: "text-ellipsis overflow-hidden" }, X = { class: "flex items-center justify-center h-4 w-4" }, ae = /* @__PURE__ */ O({
|
|
8
8
|
__name: "WorkspaceDropdown",
|
|
9
9
|
setup(Z) {
|
|
10
10
|
const { activeWorkspace: f, workspaces: d, workspaceMutators: g, events: T } = G(), { push: b } = Y(), E = (o) => {
|
|
@@ -159,7 +159,7 @@ const H = { class: "flex items-center text-sm w-[inherit]" }, J = { class: "font
|
|
|
159
159
|
]),
|
|
160
160
|
default: n(() => [
|
|
161
161
|
s(e(S), {
|
|
162
|
-
class: "font-normal h-full justify-start line-clamp-1 py-1.5 px-1.5 text-c-
|
|
162
|
+
class: "font-normal h-full justify-start line-clamp-1 py-1.5 px-1.5 text-c-3 hover:bg-b-2 w-fit",
|
|
163
163
|
fullWidth: "",
|
|
164
164
|
variant: "ghost"
|
|
165
165
|
}, {
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.1.
|
|
21
|
+
"version": "2.1.24",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -152,15 +152,15 @@
|
|
|
152
152
|
"whatwg-mimetype": "^4.0.0",
|
|
153
153
|
"yaml": "^2.4.5",
|
|
154
154
|
"zod": "^3.23.8",
|
|
155
|
-
"@scalar/components": "0.12.55",
|
|
156
155
|
"@scalar/draggable": "0.1.6",
|
|
157
|
-
"@scalar/
|
|
156
|
+
"@scalar/components": "0.12.55",
|
|
158
157
|
"@scalar/icons": "0.1.1",
|
|
158
|
+
"@scalar/oas-utils": "0.2.57",
|
|
159
159
|
"@scalar/openapi-parser": "0.8.7",
|
|
160
|
-
"@scalar/openapi-types": "0.1.3",
|
|
161
|
-
"@scalar/object-utils": "1.1.10",
|
|
162
160
|
"@scalar/themes": "0.9.38",
|
|
161
|
+
"@scalar/openapi-types": "0.1.3",
|
|
163
162
|
"@scalar/types": "0.0.16",
|
|
163
|
+
"@scalar/object-utils": "1.1.10",
|
|
164
164
|
"@scalar/use-codemirror": "0.11.22",
|
|
165
165
|
"@scalar/use-toasts": "0.7.7",
|
|
166
166
|
"@scalar/use-tooltip": "1.0.3"
|