@scalar/api-client 2.4.1 → 2.4.3
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/Server/ServerSelector.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerSelector.vue.js +30 -30
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +37 -34
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fbcce50: fix: adds server selector x axis overflow for long content
|
|
8
|
+
- Updated dependencies [ca8d9bc]
|
|
9
|
+
- @scalar/use-codemirror@0.12.2
|
|
10
|
+
|
|
11
|
+
## 2.4.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 2efdf8e: fix: updates introduction card and auth style
|
|
16
|
+
- Updated dependencies [ea20eb4]
|
|
17
|
+
- @scalar/openapi-parser@0.11.1
|
|
18
|
+
- @scalar/import@0.4.2
|
|
19
|
+
- @scalar/oas-utils@0.3.1
|
|
20
|
+
|
|
3
21
|
## 2.4.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerSelector.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAYzE,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,UAAU,EAAE,UAAU,CAAA;IACtB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;
|
|
1
|
+
{"version":3,"file":"ServerSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerSelector.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAYzE,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,UAAU,EAAE,UAAU,CAAA;IACtB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;AA0LF,wBAOG"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarListbox as
|
|
3
|
-
import { useWorkspace as
|
|
4
|
-
const W = {
|
|
1
|
+
import { defineComponent as w, computed as n, watch as h, createBlock as y, createElementBlock as k, openBlock as m, unref as i, withCtx as p, createVNode as x, createElementVNode as o, toDisplayString as S } from "vue";
|
|
2
|
+
import { ScalarListbox as U, ScalarButton as b, ScalarIcon as V } from "@scalar/components";
|
|
3
|
+
import { useWorkspace as B } from "../../store/store.js";
|
|
4
|
+
const W = { class: "overflow-x-auto" }, z = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "gap-0.75 text-c-1 h-6.5 flex w-full items-center whitespace-nowrap rounded-b-lg px-3 py-1.5 text-xs lg:text-sm"
|
|
7
|
-
},
|
|
7
|
+
}, C = { class: "overflow-x-auto" }, j = /* @__PURE__ */ w({
|
|
8
8
|
__name: "ServerSelector",
|
|
9
9
|
props: {
|
|
10
10
|
collection: {},
|
|
@@ -12,8 +12,8 @@ const W = {
|
|
|
12
12
|
target: {}
|
|
13
13
|
},
|
|
14
14
|
emits: ["updateServer"],
|
|
15
|
-
setup(l, { emit:
|
|
16
|
-
const
|
|
15
|
+
setup(l, { emit: g }) {
|
|
16
|
+
const c = g, { servers: s, collectionMutators: u } = B(), a = n(
|
|
17
17
|
() => {
|
|
18
18
|
var t;
|
|
19
19
|
return (t = l.collection) == null ? void 0 : t.servers.map((e) => {
|
|
@@ -24,54 +24,54 @@ const W = {
|
|
|
24
24
|
};
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
),
|
|
28
|
-
get: () => l.server ?
|
|
27
|
+
), d = n({
|
|
28
|
+
get: () => l.server ? a.value.find((t) => t.id === l.server.uid) : void 0,
|
|
29
29
|
set: (t) => {
|
|
30
30
|
var r;
|
|
31
31
|
if (!t)
|
|
32
32
|
return;
|
|
33
|
-
|
|
33
|
+
u.edit(
|
|
34
34
|
l.collection.uid,
|
|
35
35
|
"selectedServerUid",
|
|
36
36
|
t.id
|
|
37
37
|
);
|
|
38
38
|
const e = (r = s[t.id]) == null ? void 0 : r.url;
|
|
39
|
-
e &&
|
|
39
|
+
e && c("updateServer", e);
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
|
|
42
|
+
h(
|
|
43
43
|
() => l.collection,
|
|
44
44
|
(t) => {
|
|
45
|
-
var r,
|
|
45
|
+
var r, f;
|
|
46
46
|
if (!t || t.selectedServerUid)
|
|
47
47
|
return;
|
|
48
48
|
const e = (r = l.collection.servers) == null ? void 0 : r[0];
|
|
49
|
-
e && (
|
|
49
|
+
e && (u.edit(l.collection.uid, "selectedServerUid", e), (f = s[e]) != null && f.url && c("updateServer", s[e].url));
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
|
-
const
|
|
52
|
+
const v = n(() => {
|
|
53
53
|
var t, e, r;
|
|
54
54
|
return (e = (t = l.server) == null ? void 0 : t.url) != null && e.endsWith("/") ? l.server.url.slice(0, -1) : ((r = l.server) == null ? void 0 : r.url) || "";
|
|
55
55
|
});
|
|
56
|
-
return (t, e) =>
|
|
56
|
+
return (t, e) => a.value.length > 1 ? (m(), y(i(U), {
|
|
57
57
|
key: 0,
|
|
58
|
-
modelValue:
|
|
59
|
-
"onUpdate:modelValue": e[0] || (e[0] = (r) =>
|
|
60
|
-
options:
|
|
58
|
+
modelValue: d.value,
|
|
59
|
+
"onUpdate:modelValue": e[0] || (e[0] = (r) => d.value = r),
|
|
60
|
+
options: a.value,
|
|
61
61
|
placement: "bottom-start",
|
|
62
62
|
resize: "",
|
|
63
63
|
target: t.target,
|
|
64
64
|
teleport: `#${t.target}`
|
|
65
65
|
}, {
|
|
66
|
-
default:
|
|
67
|
-
|
|
68
|
-
class: "gap-0.75 text-c-1 h-6.5 w-full justify-start whitespace-nowrap rounded-b-lg px-3 py-1.5 text-xs font-normal -outline-offset-1 lg:text-sm",
|
|
66
|
+
default: p(() => [
|
|
67
|
+
x(i(b), {
|
|
68
|
+
class: "gap-0.75 text-c-1 h-6.5 w-full justify-start overflow-x-auto whitespace-nowrap rounded-b-lg px-3 py-1.5 text-xs font-normal -outline-offset-1 lg:text-sm",
|
|
69
69
|
variant: "ghost"
|
|
70
70
|
}, {
|
|
71
|
-
default:
|
|
72
|
-
e[1] || (e[1] =
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
default: p(() => [
|
|
72
|
+
e[1] || (e[1] = o("span", { class: "sr-only" }, "Server:", -1)),
|
|
73
|
+
o("span", W, S(v.value), 1),
|
|
74
|
+
x(i(V), {
|
|
75
75
|
class: "text-c-2",
|
|
76
76
|
icon: "ChevronDown",
|
|
77
77
|
size: "sm"
|
|
@@ -81,12 +81,12 @@ const W = {
|
|
|
81
81
|
})
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
84
|
-
}, 8, ["modelValue", "options", "target", "teleport"])) : (m(),
|
|
85
|
-
e[2] || (e[2] =
|
|
86
|
-
|
|
84
|
+
}, 8, ["modelValue", "options", "target", "teleport"])) : (m(), k("div", z, [
|
|
85
|
+
e[2] || (e[2] = o("span", { class: "sr-only" }, "Server:", -1)),
|
|
86
|
+
o("span", C, S(v.value), 1)
|
|
87
87
|
]));
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
j as default
|
|
92
92
|
};
|