@scalar/api-client 2.1.47 → 2.1.48
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 +17 -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 +6 -6
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +13 -13
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts +1 -3
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +11 -11
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +71 -71
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +18 -18
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +26 -21
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +5 -97
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +97 -2
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +15 -15
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.1.48
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b5c1982: style(api-client): fix a handful of z-index and flex breakpoint issues
|
|
8
|
+
- ac55d0f: chore: add time logging for the workspace store
|
|
9
|
+
- 0c07766: fix: sets selection style properly"
|
|
10
|
+
- bdb48b0: fix: remove useTemplateRef
|
|
11
|
+
- Updated dependencies [b5c1982]
|
|
12
|
+
- Updated dependencies [ac55d0f]
|
|
13
|
+
- Updated dependencies [0c07766]
|
|
14
|
+
- Updated dependencies [7f1bd17]
|
|
15
|
+
- @scalar/components@0.12.68
|
|
16
|
+
- @scalar/oas-utils@0.2.74
|
|
17
|
+
- @scalar/use-codemirror@0.11.35
|
|
18
|
+
- @scalar/themes@0.9.48
|
|
19
|
+
|
|
3
20
|
## 2.1.47
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";;;;;AAkxBA,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AddressBar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-5e1d7a10"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -27,9 +27,9 @@ const ee = {
|
|
|
27
27
|
requestMutators: m,
|
|
28
28
|
requestHistory: R,
|
|
29
29
|
events: d
|
|
30
|
-
} = Z(), v = u(R[0]), p = u(null),
|
|
30
|
+
} = Z(), v = u(R[0]), p = u(null), x = F();
|
|
31
31
|
G(
|
|
32
|
-
j() ?
|
|
32
|
+
j() ? x.meta_enter : x.ctrl_enter,
|
|
33
33
|
() => d.executeRequest.emit()
|
|
34
34
|
);
|
|
35
35
|
const k = (e) => {
|
|
@@ -44,15 +44,15 @@ const ee = {
|
|
|
44
44
|
!l.value || !e || k(e);
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
|
-
const r = u(100),
|
|
47
|
+
const r = u(100), h = u(0), s = u(!1), i = u();
|
|
48
48
|
function q() {
|
|
49
|
-
s.value ? r.value -= (r.value - 15) / 60 : r.value -=
|
|
49
|
+
s.value ? r.value -= (r.value - 15) / 60 : r.value -= h.value / 20, r.value <= 0 && (clearInterval(i.value), i.value = void 0, r.value = 100, s.value = !1);
|
|
50
50
|
}
|
|
51
51
|
function B() {
|
|
52
52
|
i.value || (s.value = !0, i.value = setInterval(q, 20));
|
|
53
53
|
}
|
|
54
54
|
function S() {
|
|
55
|
-
|
|
55
|
+
h.value = r.value, s.value = !1;
|
|
56
56
|
}
|
|
57
57
|
function E() {
|
|
58
58
|
clearInterval(i.value), i.value = void 0, r.value = 100, s.value = !1;
|
|
@@ -87,7 +87,7 @@ const ee = {
|
|
|
87
87
|
default: w(({ open: f }) => [
|
|
88
88
|
o("div", {
|
|
89
89
|
class: y([
|
|
90
|
-
"addressbar-bg-states text-xxs relative flex w-full
|
|
90
|
+
"addressbar-bg-states text-xxs relative flex w-full xl:min-w-[720px] xl:max-w-[720px] lg:min-w-[580px] lg:max-w-[580px] order-last overflow-hidden lg:order-none flex-1 flex-row items-stretch rounded-lg border-1/2 p-[3px]",
|
|
91
91
|
{ "border-transparent overflow-visible rounded-b-none": f }
|
|
92
92
|
])
|
|
93
93
|
}, [
|
|
@@ -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,OA4cO,EAGL,KAAK,kBAAkB,EAGxB,MAAM,wBAAwB,CAAA;;kBAiBb,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;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;;;kBApBX,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;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;gBAjBZ,OAAO;iBAHN,OAAO;sBAMF,OAAO;kBAMX,OAAO;0BACC,OAAO;cAGnB,OAAO;mBACF,OAAO;gBAEV,OAAO;;qBAmZM,GAAG;kBACN,GAAG;;AA1a9B,wBAweC;AAgBD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,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-b4428c61"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.vue"],"names":[],"mappings":"AA8BA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;IAC/B,0BAA0B;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AAQF,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.vue"],"names":[],"mappings":"AA8BA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;IAC/B,0BAA0B;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AAQF,iBAAS,cAAc;WAqDT,OAAO,IAA6B;;yBATrB,GAAG;yBACH,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -10,7 +10,7 @@ const i = {
|
|
|
10
10
|
},
|
|
11
11
|
setup(p) {
|
|
12
12
|
return (o, u) => (e(), l("div", {
|
|
13
|
-
class: s(["border-1/2 rounded bg-b-1
|
|
13
|
+
class: s(["border-1/2 rounded bg-b-1", o.scroll ? "overflow-x-auto custom-scroll" : "overflow-visible"])
|
|
14
14
|
}, [
|
|
15
15
|
n("table", {
|
|
16
16
|
class: s(["grid auto-rows-auto min-h-8 mb-0", { "min-w-full w-max": o.scroll }]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAgEA,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAkBJ,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAgEA,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAkBJ,iBAAS,cAAc;WAyIT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBAhLH,OAAO;eACT,MAAM;6EAuLpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as c, openBlock as
|
|
2
|
-
import { Disclosure as m, DisclosureButton as h, DisclosurePanel as
|
|
3
|
-
import { ScalarIcon as
|
|
1
|
+
import { defineComponent as c, openBlock as s, createBlock as d, unref as o, withCtx as n, createElementVNode as r, createVNode as i, renderSlot as l, createElementBlock as u, toDisplayString as p, createCommentVNode as a, mergeProps as f } from "vue";
|
|
2
|
+
import { Disclosure as m, DisclosureButton as h, DisclosurePanel as x } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIcon as b } from "@scalar/components";
|
|
4
4
|
const g = { class: "flex items-center" }, v = { class: "flex flex-1 items-center gap-1.5 text-c-1" }, _ = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "bg-b-2 text-c-2 text-3xs inline-flex h-4 w-4 items-center justify-center rounded-full font-semibold"
|
|
@@ -14,16 +14,16 @@ const g = { class: "flex items-center" }, v = { class: "flex flex-1 items-center
|
|
|
14
14
|
itemCount: { default: 0 }
|
|
15
15
|
},
|
|
16
16
|
setup(y) {
|
|
17
|
-
return (e, k) => (
|
|
17
|
+
return (e, k) => (s(), d(o(m), {
|
|
18
18
|
as: "div",
|
|
19
|
-
class: "focus-within:bg-b-2 ui-not-open:hover:bg-b-2 focus-within:text-c-1 text-c-2 rounded request-item ui-not-open:bg-transparent ui-open:
|
|
19
|
+
class: "focus-within:bg-b-2 ui-not-open:hover:bg-b-2 focus-within:text-c-1 text-c-2 rounded request-item ui-not-open:bg-transparent ui-open:[&:not(:last-child)]:mb-2.5 ui-not-open:mb-[0.5px]",
|
|
20
20
|
defaultOpen: e.defaultOpen
|
|
21
21
|
}, {
|
|
22
|
-
default:
|
|
22
|
+
default: n(({ open: t }) => [
|
|
23
23
|
r("div", g, [
|
|
24
|
-
i(o(h), { class: "group hover:text-c-1 flex flex-1 items-center gap-2.5 overflow-hidden py-1.5 text-sm font-medium px-
|
|
25
|
-
default:
|
|
26
|
-
i(o(
|
|
24
|
+
i(o(h), { class: "group hover:text-c-1 flex flex-1 items-center gap-2.5 overflow-hidden py-1.5 text-sm font-medium px-2.5 outline-none" }, {
|
|
25
|
+
default: n(() => [
|
|
26
|
+
i(o(b), {
|
|
27
27
|
class: "text-c-3 group-hover:text-c-1 group-focus-visible:outline ui-open:rotate-90 ui-not-open:rotate-0 rounded-[1px] outline-offset-2",
|
|
28
28
|
icon: "ChevronRight",
|
|
29
29
|
size: "sm",
|
|
@@ -31,17 +31,17 @@ const g = { class: "flex items-center" }, v = { class: "flex flex-1 items-center
|
|
|
31
31
|
}),
|
|
32
32
|
r("div", v, [
|
|
33
33
|
l(e.$slots, "title", { open: t }),
|
|
34
|
-
!t && e.itemCount ? (
|
|
34
|
+
!t && e.itemCount ? (s(), u("span", _, p(e.itemCount), 1)) : a("", !0)
|
|
35
35
|
])
|
|
36
36
|
]),
|
|
37
37
|
_: 2
|
|
38
38
|
}, 1024),
|
|
39
|
-
e.$slots.actions ? (
|
|
39
|
+
e.$slots.actions ? (s(), u("div", C, [
|
|
40
40
|
l(e.$slots, "actions", { open: t })
|
|
41
41
|
])) : a("", !0)
|
|
42
42
|
]),
|
|
43
|
-
i(o(
|
|
44
|
-
default:
|
|
43
|
+
i(o(x), f(e.$attrs, { class: "h-full max-h-fit rounded-b diclosure-panel" }), {
|
|
44
|
+
default: n(() => [
|
|
45
45
|
l(e.$slots, "default", { open: t })
|
|
46
46
|
]),
|
|
47
47
|
_: 2
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAmBA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAmBA,iBAAS,cAAc;WA+DT,OAAO,IAA6B;;uBATvB,GAAG;yBACD,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock as o, createElementBlock as l, createElementVNode as n, renderSlot as t } from "vue";
|
|
2
2
|
import s from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const r = {}, c = { class: "flex h-full xl:min-w-0 xl:flex-1 flex-col xl:custom-scroll bg-b-1" }, i = { class: "min-h-12 xl:min-h-header flex items-center border-b-1/2 px-3.5 py-1.5 md:px-4 md:py-2 xl:px-6 xl:pr-5 text-sm font-medium sticky top-0 bg-b-1 xl:rounded-none" };
|
|
3
|
+
const r = {}, c = { class: "flex h-full xl:min-w-0 xl:flex-1 flex-col xl:custom-scroll bg-b-1" }, i = { class: "min-h-12 xl:min-h-header flex items-center border-b-1/2 px-3.5 py-1.5 md:px-4 md:py-2 xl:px-6 xl:pr-5 text-sm font-medium sticky top-0 bg-b-1 xl:rounded-none z-1" };
|
|
4
4
|
function m(e, d) {
|
|
5
5
|
return o(), l("section", c, [
|
|
6
6
|
n("div", i, [
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
2
|
-
client: HTMLDivElement;
|
|
3
|
-
}, HTMLDivElement>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
4
2
|
export default _default;
|
|
5
3
|
//# sourceMappingURL=ApiClientModal.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/Modal/ApiClientModal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/Modal/ApiClientModal.vue"],"names":[],"mappings":";AA0YA,wBAMG"}
|
|
@@ -2,7 +2,7 @@ import o from "./ApiClientModal.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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ab9fa596"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
m as default
|
|
8
8
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as p,
|
|
1
|
+
import { defineComponent as p, ref as f, useId as v, watch as y, onBeforeMount as w, onMounted as h, onBeforeUnmount as _, withDirectives as k, openBlock as C, createElementBlock as E, createElementVNode as l, unref as t, createVNode as K, vShow as F } from "vue";
|
|
2
2
|
import { addScalarClassesToHeadless as M } from "@scalar/components";
|
|
3
|
-
import { useFocusTrap as
|
|
4
|
-
import { RouterView as
|
|
5
|
-
import { useWorkspace as
|
|
6
|
-
import { handleHotKeyDown as
|
|
3
|
+
import { useFocusTrap as x } from "@vueuse/integrations/useFocusTrap";
|
|
4
|
+
import { RouterView as B } from "vue-router";
|
|
5
|
+
import { useWorkspace as P } from "../../store/store.js";
|
|
6
|
+
import { handleHotKeyDown as T } from "../../libs/hot-keys.js";
|
|
7
7
|
const b = { class: "scalar scalar-app" }, D = { class: "scalar-container z-overlay" }, S = ["id"], N = /* @__PURE__ */ p({
|
|
8
8
|
__name: "ApiClientModal",
|
|
9
9
|
setup(V) {
|
|
10
|
-
const { activeWorkspace: d, modalState: o, events: a } =
|
|
10
|
+
const { activeWorkspace: d, modalState: o, events: a } = P(), n = f(null), r = v(), { activate: m, deactivate: u } = x(n, {
|
|
11
11
|
allowOutsideClick: !0,
|
|
12
12
|
initialFocus: () => n.value,
|
|
13
|
-
fallbackFocus: `#${
|
|
14
|
-
}),
|
|
13
|
+
fallbackFocus: `#${r}`
|
|
14
|
+
}), s = (e) => T(e, a.hotKeys, d.value.hotKeyConfig);
|
|
15
15
|
y(
|
|
16
16
|
() => o.open,
|
|
17
17
|
(e) => {
|
|
18
|
-
e ? (window.addEventListener("keydown",
|
|
18
|
+
e ? (window.addEventListener("keydown", s), document.documentElement.style.overflow = "hidden", m()) : (window.removeEventListener("keydown", s), document.documentElement.style.removeProperty("overflow"), u());
|
|
19
19
|
}
|
|
20
20
|
), w(() => M());
|
|
21
21
|
const c = (e) => (e == null ? void 0 : e.closeModal) && o.open && o.hide();
|
|
@@ -24,7 +24,7 @@ const b = { class: "scalar scalar-app" }, D = { class: "scalar-container z-overl
|
|
|
24
24
|
}), (e, i) => k((C(), E("div", b, [
|
|
25
25
|
l("div", D, [
|
|
26
26
|
l("div", {
|
|
27
|
-
id: t(
|
|
27
|
+
id: t(r),
|
|
28
28
|
ref_key: "client",
|
|
29
29
|
ref: n,
|
|
30
30
|
"aria-label": "API Client",
|
|
@@ -33,7 +33,7 @@ const b = { class: "scalar scalar-app" }, D = { class: "scalar-container z-overl
|
|
|
33
33
|
role: "dialog",
|
|
34
34
|
tabindex: "0"
|
|
35
35
|
}, [
|
|
36
|
-
K(t(
|
|
36
|
+
K(t(B), { key: "$route.fullPath" })
|
|
37
37
|
], 8, S),
|
|
38
38
|
l("div", {
|
|
39
39
|
class: "scalar-app-exit -z-1",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-spec.d.ts","sourceRoot":"","sources":["../../src/store/import-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,QAAQ,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"import-spec.d.ts","sourceRoot":"","sources":["../../src/store/import-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,QAAQ,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAGlE,4BAA4B;AAC5B,eAAO,MAAM,cAAc,EAAE,MAAM,CACjC,MAAM,EACN;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAA;CAAE,CAC/D,CAAA;AAEN,KAAK,kBAAkB,GAAG,yBAAyB,GACjD,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAA;AAEzC,yDAAyD;AACzD,wBAAgB,qBAAqB,CAAC,EACpC,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,UAAU,GACX,EAAE,YAAY;4BAEJ,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,gBACrB,MAAM,YACX,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA4Eiqb,CAAC;;;;;;uBAAqK,CAAC;mBAAqC,CAAC;0BAA4C,CAAC;mBAAqC,CAAC;oBAAoB,CAAC;mBAAqC,CAAC;qBAAuC,CAAC;;mBAA4D,CAAC;;0BAAoD,CAAC;mBAAqC,CAAC;;;;;;;;6BA7Bltc,MAAM,gBACG,MAAM,0BAIjB,IAAI,CAAC,kBAAkB,EAAE,aAAa,CAAC,GACxC,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC,KACtC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,SAxDlC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,gBACrB,MAAM,YACX,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA4Eiqb,CAAC;;;;;;uBAAqK,CAAC;mBAAqC,CAAC;0BAA4C,CAAC;mBAAqC,CAAC;oBAAoB,CAAC;mBAAqC,CAAC;qBAAuC,CAAC;;mBAA4D,CAAC;;0BAAoD,CAAC;mBAAqC,CAAC;;;;;;;mBAtBvpc,CAAC,CAAC,CAAC;EAqBtE"}
|