@scalar/api-client 2.1.23 → 2.1.25
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 +15 -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 +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.1.25
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [4722da1]
|
|
8
|
+
- @scalar/themes@0.9.39
|
|
9
|
+
- @scalar/components@0.12.55
|
|
10
|
+
- @scalar/oas-utils@0.2.58
|
|
11
|
+
|
|
12
|
+
## 2.1.24
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 8f4b4a2: fix: ui tweaks and fixes
|
|
17
|
+
|
|
3
18
|
## 2.1.23
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OA2WO,EAGL,KAAK,kBAAkB,EAGxB,MAAM,wBAAwB,CAAA;;kBAcb,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;;;;;;;;kBAlBN,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;;;;;;gBAfP,OAAO;iBAHN,OAAO;sBAMF,OAAO;kBAMX,OAAO;0BACC,OAAO;cAGnB,OAAO;mBACF,OAAO;;qBAuUG,GAAG;kBACN,GAAG;;AA5V9B,wBAmZC;AAcD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6d843399"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ContextBar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1bc6f599"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as r, openBlock as n, createElementBlock as o, createElementVNode as i, Fragment as c, renderList as a, normalizeClass as l, toDisplayString as s, createVNode as d, unref as p } from "vue";
|
|
2
2
|
import { ScalarIcon as u } from "@scalar/components";
|
|
3
|
-
const m = { class: "hidden lg:flex ml-auto filter-hover group lg:w-[120px]" }, v = { class: "request-section-content request-section-content-filter fade-request-section-content text-c-3 hidden xl:flex justify-end rounded text-xs gap-[1.5px] pointer-events-auto relative w-full py-2" }, f = ["isActive", "onClick"], h = { class: "flex items-center group-hover:text-c-1 absolute -right-6 top-1/2 -translate-y-1/2" }, _ = { class: "mr-
|
|
3
|
+
const m = { class: "hidden lg:flex ml-auto filter-hover group lg:w-[120px]" }, v = { class: "request-section-content request-section-content-filter fade-request-section-content text-c-3 hidden xl:flex justify-end rounded text-xs gap-[1.5px] pointer-events-auto relative w-full py-2" }, f = ["isActive", "onClick"], h = { class: "flex items-center group-hover:text-c-1 absolute -right-6 top-1/2 -translate-y-1/2" }, _ = { class: "mr-1.5 group-hover:hidden" }, b = /* @__PURE__ */ r({
|
|
4
4
|
__name: "ContextBar",
|
|
5
5
|
props: {
|
|
6
6
|
sections: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAmdA,wBAKG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as y, computed as S, openBlock as l, createElementBlock as f, createVNode as n, unref as e, withCtx as r, Fragment as N, renderList as D, createBlock as v, withModifiers as
|
|
1
|
+
import { defineComponent as y, computed as S, openBlock as l, createElementBlock as f, createVNode as n, unref as e, withCtx as r, Fragment as N, renderList as D, createBlock as v, withModifiers as x, createElementVNode as s, normalizeClass as h, createTextVNode as d, toDisplayString as w, createCommentVNode as j } from "vue";
|
|
2
2
|
import { ScalarDropdown as z, ScalarDropdownItem as u, ScalarIcon as c, ScalarDropdownDivider as B, ScalarButton as I } from "@scalar/components";
|
|
3
3
|
import { useRouter as V } from "vue-router";
|
|
4
4
|
import { useWorkspace as M } from "../../store/store.js";
|
|
5
|
-
const W = { class: "font-medium m-0 text-
|
|
5
|
+
const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace-nowrap" }, $ = { class: "flex items-center justify-center h-4 w-4" }, A = /* @__PURE__ */ y({
|
|
6
6
|
__name: "EnvironmentSelector",
|
|
7
7
|
setup(O) {
|
|
8
8
|
const {
|
|
@@ -24,11 +24,11 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center whitespace
|
|
|
24
24
|
(l(!0), f(N, null, D(_.value, (t) => (l(), v(e(u), {
|
|
25
25
|
key: t.uid,
|
|
26
26
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
27
|
-
onClick:
|
|
27
|
+
onClick: x((R) => p(t.uid), ["stop"])
|
|
28
28
|
}, {
|
|
29
29
|
default: r(() => [
|
|
30
30
|
s("div", {
|
|
31
|
-
class:
|
|
31
|
+
class: h([
|
|
32
32
|
"flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
|
|
33
33
|
e(i).activeEnvironmentId === t.uid ? "bg-blue text-b-1" : "text-transparent"
|
|
34
34
|
])
|
|
@@ -39,17 +39,17 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center whitespace
|
|
|
39
39
|
thickness: "3.5"
|
|
40
40
|
})
|
|
41
41
|
], 2),
|
|
42
|
-
d(" " +
|
|
42
|
+
d(" " + w(t.name), 1)
|
|
43
43
|
]),
|
|
44
44
|
_: 2
|
|
45
45
|
}, 1032, ["onClick"]))), 128)),
|
|
46
46
|
n(e(u), {
|
|
47
47
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
48
|
-
onClick: o[0] || (o[0] =
|
|
48
|
+
onClick: o[0] || (o[0] = x((t) => p(""), ["stop"]))
|
|
49
49
|
}, {
|
|
50
50
|
default: r(() => [
|
|
51
51
|
s("div", {
|
|
52
|
-
class:
|
|
52
|
+
class: h([
|
|
53
53
|
"flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
|
|
54
54
|
e(i).activeEnvironmentId === "" ? "bg-blue text-b-1" : "text-transparent"
|
|
55
55
|
])
|
|
@@ -84,7 +84,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center whitespace
|
|
|
84
84
|
]),
|
|
85
85
|
default: r(() => [
|
|
86
86
|
n(e(I), {
|
|
87
|
-
class: "font-normal h-auto justify-start py-1.5 px-1.5 text-c-1 hover:bg-b-2 text-c-
|
|
87
|
+
class: "font-normal h-auto justify-start py-1.5 px-1.5 pl-2 text-c-1 hover:bg-b-2 text-c-3 w-fit",
|
|
88
88
|
fullWidth: "",
|
|
89
89
|
variant: "ghost"
|
|
90
90
|
}, {
|
|
@@ -92,7 +92,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center whitespace
|
|
|
92
92
|
var t;
|
|
93
93
|
return [
|
|
94
94
|
s("h2", W, [
|
|
95
|
-
d(
|
|
95
|
+
d(w(((t = e(g)) == null ? void 0 : t.name) ?? "No Environment") + " ", 1),
|
|
96
96
|
n(e(c), {
|
|
97
97
|
class: "size-3",
|
|
98
98
|
icon: "ChevronDown",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as i, openBlock as c, createBlock as r, unref as t, withCtx as l, createElementVNode as e, createVNode as n } from "vue";
|
|
2
2
|
import { ScalarDropdown as d, ScalarDropdownItem as o, ScalarIcon as a } from "@scalar/components";
|
|
3
3
|
const p = {
|
|
4
|
-
class: "min-w-[37px] max-w-[37px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[
|
|
4
|
+
class: "min-w-[37px] max-w-[37px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[8px] text-c-3 focus:text-c-1 scalar-app-nav-padding",
|
|
5
5
|
type: "button"
|
|
6
6
|
}, u = {
|
|
7
7
|
class: "no-underline block",
|
|
@@ -19,7 +19,7 @@ const v = { class: "sr-only" }, C = /* @__PURE__ */ a({
|
|
|
19
19
|
}, {
|
|
20
20
|
default: l(() => [
|
|
21
21
|
n("div", {
|
|
22
|
-
class: p(["min-w-[37px] max-w-[37px] group-hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[
|
|
22
|
+
class: p(["min-w-[37px] max-w-[37px] group-hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[8px] scalar-app-nav-padding text-c-3", {
|
|
23
23
|
"bg-b-2 transition-none group-hover:cursor-auto !text-c-1": e.active
|
|
24
24
|
}])
|
|
25
25
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAmNA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAmNA,iBAAS,cAAc;oBA8GK,GAAG;oBACH,GAAG;oBAEH,GAAG;qBADF,GAAG;EAuB/B;AACD,QAAA,MAAM,eAAe;YAzMT,MAAM;kBACA,OAAO;;YADb,MAAM;kBACA,OAAO;;iBAAP,OAAO;6EA+MvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAexG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Sidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6d244398"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -6,7 +6,7 @@ const C = {
|
|
|
6
6
|
class: "min-h-11 xl:min-h-header flex items-center justify-between border-b-1/2 px-3 py-1.5 md:px-4 md:py-2.5 text-sm"
|
|
7
7
|
}, I = { class: "font-medium m-0 text-sm whitespace-nowrap" }, M = {
|
|
8
8
|
key: 1,
|
|
9
|
-
class: "relative z-10 pt-0 md:px-2.5 md:pb-2.5 -
|
|
9
|
+
class: "relative z-10 pt-0 md:px-2.5 md:pb-2.5 sticky bottom-0 w-[inherit] has-[.empty-sidebar-item]:border-t-1/2"
|
|
10
10
|
}, V = /* @__PURE__ */ _({
|
|
11
11
|
__name: "Sidebar",
|
|
12
12
|
props: {
|
|
@@ -14,7 +14,7 @@ const C = {
|
|
|
14
14
|
showSideBar: { type: Boolean, default: !0 }
|
|
15
15
|
},
|
|
16
16
|
setup(x) {
|
|
17
|
-
const
|
|
17
|
+
const k = x, { isReadOnly: m, sidebarWidth: o, setSidebarWidth: a } = z(), l = b(!1), u = y("(max-width: 780px)"), c = b(null), p = y("(max-width: 800px)"), E = (e) => {
|
|
18
18
|
e.preventDefault();
|
|
19
19
|
const f = e.clientX, S = parseInt(
|
|
20
20
|
getComputedStyle(c.value).width || o.value,
|
|
@@ -52,10 +52,10 @@ const C = {
|
|
|
52
52
|
t(u) ? d("", !0) : (r(), i("div", {
|
|
53
53
|
key: 2,
|
|
54
54
|
class: "resizer",
|
|
55
|
-
onMousedown:
|
|
55
|
+
onMousedown: E
|
|
56
56
|
}, null, 32))
|
|
57
57
|
], 6)), [
|
|
58
|
-
[$,
|
|
58
|
+
[$, k.showSideBar]
|
|
59
59
|
]);
|
|
60
60
|
}
|
|
61
61
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarList.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"SidebarList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarList.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;qBAqBM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { openBlock as o, createElementBlock as t, renderSlot as r } from "vue";
|
|
2
2
|
import c from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const s = {}, l = { class: "flex flex-col p-2" };
|
|
3
|
+
const s = {}, l = { class: "flex flex-col p-2 pb-[75px]" };
|
|
4
4
|
function n(e, f) {
|
|
5
5
|
return o(), t("ul", l, [
|
|
6
6
|
r(e.$slots, "default")
|
|
7
7
|
]);
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const p = /* @__PURE__ */ c(s, [["render", n]]);
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
p as default
|
|
12
12
|
};
|
|
@@ -12,7 +12,7 @@ const a = {
|
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
13
|
setup(i) {
|
|
14
14
|
return (o, e) => (l(), n("button", {
|
|
15
|
-
class: "text-c-
|
|
15
|
+
class: "text-c-1 hover:bg-b-2 active:text-c-1 p-2 rounded",
|
|
16
16
|
type: "button",
|
|
17
17
|
onClick: e[0] || (e[0] = (u) => o.$emit("update:modelValue", !o.modelValue))
|
|
18
18
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":";gBA+Qc;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;;gBAApC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;;AA2dlD,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TopNav.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-657b36ed"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|