@scalar/api-client 2.4.4 → 2.5.0
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 +34 -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 +94 -96
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +3 -3
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +6 -6
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +22 -22
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +15 -15
- package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -1
- package/dist/components/DataTable/DataTableText.vue.js +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +1 -1
- package/dist/components/Form/Form.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.js +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +5 -5
- package/dist/components/ImportCollection/PrefetchError.vue.js +1 -1
- package/dist/components/ScalarHotkey.vue.js +7 -7
- package/dist/components/SectionFilter.vue.js +2 -2
- package/dist/components/SectionFilter.vue2.js +1 -1
- package/dist/components/SectionFilterButton.vue.js +1 -1
- package/dist/components/Server/ServerDropdown.vue.js +3 -3
- package/dist/components/Server/ServerSelector.vue.js +13 -13
- package/dist/components/Server/ServerVariablesForm.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue.js +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +2 -2
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.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 +3 -3
- package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -15
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.js +4 -4
- package/dist/layouts/App/create-api-client-app.d.ts +16 -16
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +1 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +3 -3
- package/dist/layouts/Modal/create-api-client-modal.d.ts +32 -32
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +16 -16
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +16 -16
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +13 -13
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts +5 -3
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/store.d.ts +16 -16
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionEnvironment.vue2.js +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue.js +2 -2
- package/dist/views/Collection/CollectionInfoForm.vue2.js +2 -2
- package/dist/views/Collection/CollectionNavigation.vue.js +2 -2
- package/dist/views/Collection/CollectionServers.vue2.js +2 -2
- package/dist/views/Collection/CollectionSettings.vue.js +1 -1
- package/dist/views/Collection/CollectionSettings.vue2.js +4 -4
- package/dist/views/Collection/components/MarkdownInput.vue.js +2 -2
- package/dist/views/Collection/components/MarkdownInput.vue2.js +7 -7
- package/dist/views/Environment/Environment.vue2.js +3 -3
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +3 -3
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +1 -1
- package/dist/views/Request/RequestRoot.vue.js +2 -2
- package/dist/views/Request/RequestRoot.vue2.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +5 -5
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +15 -17
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +2 -2
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +2 -2
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +4 -4
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +8 -8
- package/dist/views/Request/RequestSubpageHeader.vue.js +2 -2
- package/dist/views/Request/RequestSubpageHeader.vue2.js +2 -2
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +2 -2
- 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 +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +15 -15
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +2 -2
- package/dist/views/Settings/components/SettingsAppearance.vue.js +1 -1
- package/package.json +15 -17
- package/dist/tailwind/desktop-variants.d.ts +0 -18
- package/dist/tailwind/desktop-variants.d.ts.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as b, ref as d, computed as g, createBlock as
|
|
1
|
+
import { defineComponent as b, ref as d, computed as g, createBlock as r, openBlock as n, normalizeClass as B, withCtx as C, createElementBlock as i, createCommentVNode as u, createElementVNode as $, renderSlot as p, createTextVNode as O, Fragment as I, mergeProps as y, unref as h } from "vue";
|
|
2
2
|
import { ScalarIconButton as A } from "@scalar/components";
|
|
3
3
|
import W from "../CodeInput/CodeInput.vue.js";
|
|
4
4
|
import q from "./DataTableCell.vue.js";
|
|
5
5
|
import E from "./DataTableInputSelect.vue.js";
|
|
6
|
-
const F = ["for"], S = { class: "
|
|
6
|
+
const F = ["for"], S = { class: "relative flex min-w-0 flex-1" }, T = ["readOnly", "type", "value"], N = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "centered-y text-orange absolute right-7 text-xs"
|
|
9
9
|
}, L = /* @__PURE__ */ b({
|
|
@@ -28,7 +28,7 @@ const F = ["for"], S = { class: "row-1 relative min-w-0" }, T = ["readOnly", "ty
|
|
|
28
28
|
},
|
|
29
29
|
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
30
30
|
setup(v, { emit: c }) {
|
|
31
|
-
const a = v, t = c,
|
|
31
|
+
const a = v, t = c, s = d(!0), w = d(!1), m = d(null), V = () => {
|
|
32
32
|
w.value || t("inputBlur");
|
|
33
33
|
}, f = g(
|
|
34
34
|
() => a.type === "password" ? "text" : a.type ?? "text"
|
|
@@ -36,13 +36,13 @@ const F = ["for"], S = { class: "row-1 relative min-w-0" }, T = ["readOnly", "ty
|
|
|
36
36
|
var e, l;
|
|
37
37
|
!((e = a.enum) != null && e.length) && !a.readOnly && ((l = m.value) == null || l.focus());
|
|
38
38
|
};
|
|
39
|
-
return (e, l) => (n(),
|
|
40
|
-
class: B(["
|
|
39
|
+
return (e, l) => (n(), r(q, {
|
|
40
|
+
class: B(["relative flex", e.containerClass])
|
|
41
41
|
}, {
|
|
42
42
|
default: C(() => [
|
|
43
43
|
e.$slots.default ? (n(), i("div", {
|
|
44
44
|
key: 0,
|
|
45
|
-
class: "text-c-1 flex items-center pl-3
|
|
45
|
+
class: "text-c-1 flex items-center pr-0 pl-3",
|
|
46
46
|
for: e.id ?? "",
|
|
47
47
|
onClick: k
|
|
48
48
|
}, [
|
|
@@ -50,16 +50,16 @@ const F = ["for"], S = { class: "row-1 relative min-w-0" }, T = ["readOnly", "ty
|
|
|
50
50
|
l[5] || (l[5] = O(": "))
|
|
51
51
|
], 8, F)) : u("", !0),
|
|
52
52
|
$("div", S, [
|
|
53
|
-
a.enum && a.enum.length ? (n(),
|
|
53
|
+
a.enum && a.enum.length ? (n(), r(E, {
|
|
54
54
|
key: 0,
|
|
55
55
|
canAddCustomValue: a.canAddCustomEnumValue,
|
|
56
56
|
modelValue: a.modelValue,
|
|
57
57
|
value: a.enum,
|
|
58
58
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => t("update:modelValue", o))
|
|
59
59
|
}, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (n(), i(I, { key: 1 }, [
|
|
60
|
-
|
|
60
|
+
s.value && e.type === "password" ? (n(), i("input", y({ key: 0 }, e.id ? { ...e.$attrs, id: e.id } : e.$attrs, {
|
|
61
61
|
autocomplete: "off",
|
|
62
|
-
class: ["text-c-1 disabled:text-c-2
|
|
62
|
+
class: ["text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none px-2 py-1.25 -outline-offset-1", { "scalar-password-input": e.type === "password" }],
|
|
63
63
|
"data-1p-ignore": "",
|
|
64
64
|
readOnly: e.readOnly,
|
|
65
65
|
spellcheck: "false",
|
|
@@ -69,7 +69,7 @@ const F = ["for"], S = { class: "row-1 relative min-w-0" }, T = ["readOnly", "ty
|
|
|
69
69
|
"update:modelValue",
|
|
70
70
|
o.target.value ?? ""
|
|
71
71
|
))
|
|
72
|
-
}), null, 16, T)) : (n(),
|
|
72
|
+
}), null, 16, T)) : (n(), r(W, y({ key: 1 }, e.$attrs, {
|
|
73
73
|
id: e.id,
|
|
74
74
|
ref_key: "codeInput",
|
|
75
75
|
ref: m,
|
|
@@ -102,12 +102,12 @@ const F = ["for"], S = { class: "row-1 relative min-w-0" }, T = ["readOnly", "ty
|
|
|
102
102
|
p(e.$slots, "warning", {}, void 0, !0)
|
|
103
103
|
])) : u("", !0),
|
|
104
104
|
p(e.$slots, "icon", {}, void 0, !0),
|
|
105
|
-
e.type === "password" ? (n(),
|
|
105
|
+
e.type === "password" ? (n(), r(h(A), {
|
|
106
106
|
key: 2,
|
|
107
|
-
class: "-ml-.5 mr-1.25
|
|
108
|
-
icon:
|
|
109
|
-
label:
|
|
110
|
-
onClick: l[4] || (l[4] = (o) =>
|
|
107
|
+
class: "-ml-.5 mr-1.25 h-6 w-6 self-center p-1.25",
|
|
108
|
+
icon: s.value ? "Show" : "Hide",
|
|
109
|
+
label: s.value ? "Show Password" : "Hide Password",
|
|
110
|
+
onClick: l[4] || (l[4] = (o) => s.value = !s.value)
|
|
111
111
|
}, null, 8, ["icon", "label"])) : u("", !0)
|
|
112
112
|
]),
|
|
113
113
|
_: 3
|
|
@@ -124,7 +124,7 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
124
124
|
]),
|
|
125
125
|
default: s(() => [
|
|
126
126
|
u(a(b), {
|
|
127
|
-
class: "h-full justify-start gap-1.5 overflow-auto
|
|
127
|
+
class: "h-full justify-start gap-1.5 overflow-auto px-2 py-1.5 font-normal whitespace-nowrap outline-none",
|
|
128
128
|
fullWidth: "",
|
|
129
129
|
variant: "ghost"
|
|
130
130
|
}, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, createBlock as a, openBlock as o, withCtx as r, createElementVNode as s, renderSlot as n, createTextVNode as p, toDisplayString as l } from "vue";
|
|
2
2
|
import c from "./DataTableCell.vue.js";
|
|
3
|
-
const i = { class: "flex-1
|
|
3
|
+
const i = { class: "flex-1 px-2 py-1.5 whitespace-nowrap" }, x = /* @__PURE__ */ t({
|
|
4
4
|
__name: "DataTableText",
|
|
5
5
|
props: {
|
|
6
6
|
text: {}
|
|
@@ -5,7 +5,7 @@ import { PathId as O } from "../../routes.js";
|
|
|
5
5
|
import { useActiveEntities as P } from "../../store/active-entities.js";
|
|
6
6
|
import { useWorkspace as R } from "../../store/store.js";
|
|
7
7
|
import { useLayout as q } from "../../hooks/useLayout.js";
|
|
8
|
-
const G = { class: "m-0 flex items-center gap-1.5 whitespace-nowrap
|
|
8
|
+
const G = { class: "m-0 flex items-center gap-1.5 font-medium whitespace-nowrap" }, H = { class: "flex h-4 w-4 items-center justify-center" }, te = /* @__PURE__ */ D({
|
|
9
9
|
__name: "EnvironmentSelector",
|
|
10
10
|
setup(J) {
|
|
11
11
|
const { activeCollection: a, activeWorkspace: r, activeEnvironment: u } = P(), { collectionMutators: C } = R(), { layout: y } = q(), I = F(), m = (e) => {
|
|
@@ -5,7 +5,7 @@ import S from "../DataTable/DataTableInput.vue.js";
|
|
|
5
5
|
import U from "../DataTable/DataTableRow.vue.js";
|
|
6
6
|
import $ from "../ViewLayout/ViewLayoutSection.vue.js";
|
|
7
7
|
import { useActiveEntities as z } from "../../store/active-entities.js";
|
|
8
|
-
const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"], I = { class: "centered-y bg-b-2 flex-center
|
|
8
|
+
const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"], I = { class: "centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5" }, q = /* @__PURE__ */ b({
|
|
9
9
|
__name: "Form",
|
|
10
10
|
props: {
|
|
11
11
|
title: {},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./HttpMethod.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const _ = /* @__PURE__ */ o(t, [["__scopeId", "data-v-4414b964"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as x, ref as h, onMounted as D, onBeforeUnmount as E, c
|
|
|
2
2
|
import { ScalarIcon as w } from "@scalar/components";
|
|
3
3
|
const B = {
|
|
4
4
|
key: 0,
|
|
5
|
-
class: "bg-b-2 fixed
|
|
5
|
+
class: "bg-b-2 fixed right-1/2 bottom-1/2 z-50 h-64 w-64 translate-x-1/2 translate-y-1/2 rounded-xl border transition-opacity duration-200 md:right-10 md:bottom-10 md:translate-x-0 md:translate-y-0"
|
|
6
6
|
}, F = { class: "flex h-full flex-col items-center justify-center" }, z = /* @__PURE__ */ x({
|
|
7
7
|
__name: "DropEventListener",
|
|
8
8
|
emits: ["input"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportCollectionModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/ImportCollectionModal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImportCollectionModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/ImportCollectionModal.vue"],"names":[],"mappings":"AAmbA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI,CAAA;CAC7C,CAAC;;;;;;AA+dF,wBAQG"}
|
|
@@ -24,7 +24,7 @@ const he = ["innerHTML"], xe = { class: "relative flex h-screen flex-col justify
|
|
|
24
24
|
class: "text-md mb-2 line-clamp-1 text-center font-bold"
|
|
25
25
|
}, we = { class: "z-10 inline-flex w-full flex-col items-center gap-2" }, ke = { class: "flex justify-center" }, Ie = { class: "text-c-3 inline-flex items-center px-4 py-1 text-xs font-medium" }, Le = {
|
|
26
26
|
key: 0,
|
|
27
|
-
class: "
|
|
27
|
+
class: "mt-5 overflow-hidden border-t pt-4 text-sm"
|
|
28
28
|
}, Me = { class: "flex items-center justify-center" }, Te = { class: "flex flex-col items-center justify-center pb-8" }, Ue = { class: "flex flex-col items-center text-center" }, Ae = { class: "mb-2 flex h-10 w-10 items-center justify-center rounded-[10px] border" }, Ce = {
|
|
29
29
|
href: "https://scalar.com/download",
|
|
30
30
|
target: "_blank"
|
|
@@ -135,7 +135,7 @@ const he = ["innerHTML"], xe = { class: "relative flex h-screen flex-col justify
|
|
|
135
135
|
e("div", { class: "section-flare-item" })
|
|
136
136
|
], -1)),
|
|
137
137
|
e("div", {
|
|
138
|
-
class: X(["
|
|
138
|
+
class: X(["m-auto flex w-full max-w-[380px] flex-col items-center rounded-xl border px-8 py-8 transition-opacity", { "opacity-0": i(n).state === "loading" }])
|
|
139
139
|
}, [
|
|
140
140
|
i(n).error && i(n).state === "idle" && !k.value ? (l(), d(b, { key: 0 }, [
|
|
141
141
|
t[1] || (t[1] = e("div", { class: "text-md mb-2 line-clamp-1 text-center font-bold" }, " No OpenAPI document found ", -1)),
|
|
@@ -154,7 +154,7 @@ const he = ["innerHTML"], xe = { class: "relative flex h-screen flex-col justify
|
|
|
154
154
|
src: x.value
|
|
155
155
|
}, null, 8, _e)) : f("", !0),
|
|
156
156
|
x.value ? f("", !0) : (l(), d("div", be, Y(N.value || "Untitled Collection"), 1)),
|
|
157
|
-
t[4] || (t[4] = e("div", { class: "text-c-1 text-
|
|
157
|
+
t[4] || (t[4] = e("div", { class: "text-c-1 text-center text-sm font-medium text-balance" }, " Import the OpenAPI document to instantly send API requests. No signup required. ", -1)),
|
|
158
158
|
k.value ? (l(), d(b, { key: 3 }, [
|
|
159
159
|
e("div", we, [
|
|
160
160
|
m(de, {
|
|
@@ -178,7 +178,7 @@ const he = ["innerHTML"], xe = { class: "relative flex h-screen flex-col justify
|
|
|
178
178
|
disableToolTip: !0
|
|
179
179
|
}, null, 8, ["modelValue"])
|
|
180
180
|
]),
|
|
181
|
-
t[3] || (t[3] = e("div", { class: "text-c-3
|
|
181
|
+
t[3] || (t[3] = e("div", { class: "text-c-3 pt-0 text-center text-xs font-medium text-balance" }, " Automatically update your API client when the OpenAPI document content changes. ", -1))
|
|
182
182
|
])) : f("", !0)
|
|
183
183
|
], 64)) : f("", !0)
|
|
184
184
|
], 64))
|
|
@@ -193,7 +193,7 @@ const he = ["innerHTML"], xe = { class: "relative flex h-screen flex-col justify
|
|
|
193
193
|
})
|
|
194
194
|
])
|
|
195
195
|
]),
|
|
196
|
-
t[5] || (t[5] = e("span", { class: "text-c-2 text-sm font-medium
|
|
196
|
+
t[5] || (t[5] = e("span", { class: "text-c-2 text-sm leading-snug font-medium" }, [
|
|
197
197
|
e("a", {
|
|
198
198
|
class: "hover:text-c-1 mb-1 inline-block underline-offset-2",
|
|
199
199
|
href: "https://scalar.com/download",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, createElementBlock as n, openBlock as o, createTextVNode as r, unref as d } from "vue";
|
|
2
2
|
import { isUrl as s } from "../../libs/isUrl.js";
|
|
3
|
-
const a = { class: "w-full
|
|
3
|
+
const a = { class: "w-full text-center text-sm font-medium break-words" }, u = ["href"], m = {
|
|
4
4
|
key: 1,
|
|
5
5
|
textContent: "OpenAPI document manually"
|
|
6
6
|
}, c = /* @__PURE__ */ l({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, computed as
|
|
1
|
+
import { defineComponent as u, computed as a, createElementBlock as p, openBlock as y, normalizeProps as h, guardReactiveProps as k, unref as b, createElementVNode as i, toDisplayString as s } from "vue";
|
|
2
2
|
import { useBindCx as x } from "@scalar/components";
|
|
3
3
|
import { isMacOS as r } from "@scalar/use-tooltip";
|
|
4
4
|
const C = { "aria-hidden": "true" }, w = { class: "sr-only" }, A = /* @__PURE__ */ u({
|
|
@@ -25,17 +25,17 @@ const C = { "aria-hidden": "true" }, w = { class: "sr-only" }, A = /* @__PURE__
|
|
|
25
25
|
Shift: "⇧",
|
|
26
26
|
Alt: "⌥",
|
|
27
27
|
Control: "^"
|
|
28
|
-
}, { cx:
|
|
28
|
+
}, { cx: l } = x(), m = a(() => `${e.modifier.map((o) => c[o]).join("+")} ${e.hotkey}`), f = a(() => {
|
|
29
29
|
const t = e.modifier.map((n) => n === "Meta" ? r() ? "Command" : "Control" : n).join("+"), o = d[e.hotkey] ?? e.hotkey;
|
|
30
30
|
return `${t} ${o}`;
|
|
31
31
|
});
|
|
32
|
-
return (t, o) => (y(), p("div", h(
|
|
33
|
-
|
|
34
|
-
"border-
|
|
32
|
+
return (t, o) => (y(), p("div", h(k(
|
|
33
|
+
b(l)(
|
|
34
|
+
"border-(--scalar-background-3) inline-block overflow-hidden rounded border text-xxs rounded-b px-1 font-medium uppercase"
|
|
35
35
|
)
|
|
36
36
|
)), [
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
i("span", C, s(m.value), 1),
|
|
38
|
+
i("span", w, s(f.value), 1)
|
|
39
39
|
], 16));
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SectionFilter.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cac0985e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as x, mergeModels as p, useModel as h, ref as g, createElementBlock as f, openBlock as i, withKeys as m, createElementVNode as a, Fragment as b, renderList as k, createBlock as y, withCtx as V, createTextVNode as w, toDisplayString as v, createVNode as S, unref as q, nextTick as B } from "vue";
|
|
2
2
|
import { ScalarIcon as C } from "@scalar/components";
|
|
3
3
|
import I from "./SectionFilterButton.vue.js";
|
|
4
|
-
const _ = { class: "request-section-content request-section-content-filter fade-request-section-content text-c-3 pointer-events-auto relative hidden w-full justify-end gap-[1.5px] rounded py-2 text-xs xl:flex" }, $ = { class: "context-bar-group-hover:text-c-1 absolute -right-[30px]
|
|
4
|
+
const _ = { class: "request-section-content request-section-content-filter fade-request-section-content text-c-3 pointer-events-auto relative hidden w-full justify-end gap-[1.5px] rounded py-2 text-xs xl:flex" }, $ = { class: "context-bar-group-hover:text-c-1 absolute top-1/2 -right-[30px] flex -translate-y-1/2 items-center" }, F = { class: "context-bar-group-hover:hidden mr-1.5" }, K = /* @__PURE__ */ x({
|
|
5
5
|
__name: "SectionFilter",
|
|
6
6
|
props: /* @__PURE__ */ p({
|
|
7
7
|
filters: { default: () => [] },
|
|
@@ -9,7 +9,7 @@ const l = ["aria-controls", "aria-selected", "tabindex"], p = /* @__PURE__ */ t(
|
|
|
9
9
|
return (e, c) => (n(), o("button", {
|
|
10
10
|
"aria-controls": e.controls ?? "",
|
|
11
11
|
"aria-selected": !!e.selected,
|
|
12
|
-
class: r(["hover:bg-b-2 flex w-fit cursor-pointer items-center
|
|
12
|
+
class: r(["hover:bg-b-2 flex w-fit cursor-pointer items-center rounded p-1 px-2 text-center font-medium whitespace-nowrap has-[:focus-visible]:outline", { "text-c-1 pointer-events-none": e.selected }]),
|
|
13
13
|
role: "tab",
|
|
14
14
|
tabindex: e.selected ? 0 : -1,
|
|
15
15
|
type: "button"
|
|
@@ -102,7 +102,7 @@ const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
102
102
|
}, null, 8, ["collection", "operation", "server", "serverOption"]))), 128)),
|
|
103
103
|
s(U) !== "modal" ? (n(), a("button", {
|
|
104
104
|
key: 1,
|
|
105
|
-
class: "text-xxs
|
|
105
|
+
class: "text-xxs hover:bg-b-2 flex cursor-pointer items-center gap-1.5 rounded p-1.75",
|
|
106
106
|
type: "button",
|
|
107
107
|
onClick: B
|
|
108
108
|
}, [
|
|
@@ -117,11 +117,11 @@ const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
117
117
|
], 8, T)
|
|
118
118
|
]),
|
|
119
119
|
backdrop: v(() => [
|
|
120
|
-
c(s(F), { class: "-top-
|
|
120
|
+
c(s(F), { class: "-top-(--scalar-address-bar-height) rounded-lg" })
|
|
121
121
|
]),
|
|
122
122
|
default: v(() => [
|
|
123
123
|
c(s(E), {
|
|
124
|
-
class: "
|
|
124
|
+
class: "z-context-plus hover:bg-b-2 font-code text-c-2 ml-0.75 h-auto gap-0.75 rounded border px-1.5 text-xs whitespace-nowrap lg:text-sm",
|
|
125
125
|
variant: "ghost"
|
|
126
126
|
}, {
|
|
127
127
|
default: v(() => {
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
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 s, toDisplayString as S } from "vue";
|
|
2
2
|
import { ScalarListbox as U, ScalarButton as b, ScalarIcon as V } from "@scalar/components";
|
|
3
3
|
import { useWorkspace as B } from "../../store/store.js";
|
|
4
4
|
const W = { class: "overflow-x-auto" }, z = {
|
|
5
5
|
key: 1,
|
|
6
|
-
class: "
|
|
6
|
+
class: "text-c-1 flex h-auto w-full items-center gap-0.75 rounded-b-lg px-3 py-1.5 text-xs whitespace-nowrap lg:text-sm"
|
|
7
7
|
}, C = { class: "overflow-x-auto" }, j = /* @__PURE__ */ w({
|
|
8
8
|
__name: "ServerSelector",
|
|
9
9
|
props: {
|
|
@@ -13,14 +13,14 @@ const W = { class: "overflow-x-auto" }, z = {
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["updateServer"],
|
|
15
15
|
setup(l, { emit: g }) {
|
|
16
|
-
const
|
|
16
|
+
const u = g, { servers: o, collectionMutators: c } = B(), a = n(
|
|
17
17
|
() => {
|
|
18
18
|
var t;
|
|
19
19
|
return (t = l.collection) == null ? void 0 : t.servers.map((e) => {
|
|
20
20
|
var r;
|
|
21
21
|
return {
|
|
22
22
|
id: e,
|
|
23
|
-
label: ((r =
|
|
23
|
+
label: ((r = o[e]) == null ? void 0 : r.url) ?? "Unknown server"
|
|
24
24
|
};
|
|
25
25
|
});
|
|
26
26
|
}
|
|
@@ -30,13 +30,13 @@ const W = { class: "overflow-x-auto" }, z = {
|
|
|
30
30
|
var r;
|
|
31
31
|
if (!t)
|
|
32
32
|
return;
|
|
33
|
-
|
|
33
|
+
c.edit(
|
|
34
34
|
l.collection.uid,
|
|
35
35
|
"selectedServerUid",
|
|
36
36
|
t.id
|
|
37
37
|
);
|
|
38
|
-
const e = (r =
|
|
39
|
-
e &&
|
|
38
|
+
const e = (r = o[t.id]) == null ? void 0 : r.url;
|
|
39
|
+
e && u("updateServer", e);
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
h(
|
|
@@ -46,7 +46,7 @@ const W = { class: "overflow-x-auto" }, z = {
|
|
|
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 && (c.edit(l.collection.uid, "selectedServerUid", e), (f = o[e]) != null && f.url && u("updateServer", o[e].url));
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
const v = n(() => {
|
|
@@ -65,12 +65,12 @@ const W = { class: "overflow-x-auto" }, z = {
|
|
|
65
65
|
}, {
|
|
66
66
|
default: p(() => [
|
|
67
67
|
x(i(b), {
|
|
68
|
-
class: "
|
|
68
|
+
class: "text-c-1 h-auto w-full justify-start gap-0.75 overflow-x-auto rounded-b-lg px-3 py-1.5 text-xs font-normal whitespace-nowrap -outline-offset-1 lg:text-sm",
|
|
69
69
|
variant: "ghost"
|
|
70
70
|
}, {
|
|
71
71
|
default: p(() => [
|
|
72
|
-
e[1] || (e[1] =
|
|
73
|
-
|
|
72
|
+
e[1] || (e[1] = s("span", { class: "sr-only" }, "Server:", -1)),
|
|
73
|
+
s("span", W, S(v.value), 1),
|
|
74
74
|
x(i(V), {
|
|
75
75
|
class: "text-c-2",
|
|
76
76
|
icon: "ChevronDown",
|
|
@@ -82,8 +82,8 @@ const W = { class: "overflow-x-auto" }, z = {
|
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
84
84
|
}, 8, ["modelValue", "options", "target", "teleport"])) : (m(), k("div", z, [
|
|
85
|
-
e[2] || (e[2] =
|
|
86
|
-
|
|
85
|
+
e[2] || (e[2] = s("span", { class: "sr-only" }, "Server:", -1)),
|
|
86
|
+
s("span", C, S(v.value), 1)
|
|
87
87
|
]));
|
|
88
88
|
}
|
|
89
89
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as g, createElementBlock as p, createCommentVNode as y, openBlock as o, Fragment as h, renderList as k, normalizeClass as C, createElementVNode as V, createBlock as f, toDisplayString as B } from "vue";
|
|
2
2
|
import S from "./ServerVariablesSelect.vue.js";
|
|
3
3
|
import $ from "./ServerVariablesTextbox.vue.js";
|
|
4
|
-
const j = { class: "mr-1.5 flex items-center py-1.5 pl-3
|
|
4
|
+
const j = { class: "mr-1.5 flex items-center py-1.5 pl-3 group-has-[input]/label:mr-0 after:content-[':']" }, O = /* @__PURE__ */ g({
|
|
5
5
|
__name: "ServerVariablesForm",
|
|
6
6
|
props: {
|
|
7
7
|
variables: {},
|
|
@@ -27,7 +27,7 @@ const A = { class: "flex items-center" }, R = { class: "flex items-center" }, W
|
|
|
27
27
|
t(g, { class: "app-no-drag-region" }, {
|
|
28
28
|
default: a(() => [
|
|
29
29
|
c("a", {
|
|
30
|
-
class: d(["ml-1
|
|
30
|
+
class: d(["mr-3 ml-1 hidden items-center", {
|
|
31
31
|
"sm:flex": e(i) === "web"
|
|
32
32
|
}]),
|
|
33
33
|
href: "https://www.scalar.com",
|
|
@@ -11,9 +11,9 @@ const v = /* @__PURE__ */ r({
|
|
|
11
11
|
setup(f) {
|
|
12
12
|
const { layout: n } = u();
|
|
13
13
|
return (e, b) => (i(), a(m(e.is ?? "a"), {
|
|
14
|
-
class: s(["hover:bg-b-3 dark:
|
|
14
|
+
class: s(["hover:bg-b-3 hover:dark:bg-b-2 flex max-w-[37px] min-w-[37px] items-center justify-center rounded-lg p-2 no-underline", {
|
|
15
15
|
"bg-b-3 dark:bg-b-2 text-c-1 transition-none hover:cursor-default": e.active,
|
|
16
|
-
"sm:
|
|
16
|
+
"sm:max-w-max sm:min-w-max sm:rounded sm:py-1.5": o(n) === "web"
|
|
17
17
|
}])
|
|
18
18
|
}, {
|
|
19
19
|
default: l(() => [
|
|
@@ -2,7 +2,7 @@ import { defineComponent as m, computed as p, createBlock as c, openBlock as r,
|
|
|
2
2
|
import f from "./SidebarListElementForm.vue.js";
|
|
3
3
|
const v = {
|
|
4
4
|
key: 0,
|
|
5
|
-
class: "text-c-2 text-
|
|
5
|
+
class: "text-c-2 text-sm leading-normal text-pretty"
|
|
6
6
|
}, w = /* @__PURE__ */ m({
|
|
7
7
|
__name: "DeleteSidebarListElement",
|
|
8
8
|
props: {
|
|
@@ -3,7 +3,7 @@ import { ScalarButton as x, ScalarTextInput as V } from "@scalar/components";
|
|
|
3
3
|
import { LibraryIcon as _ } from "@scalar/icons/library";
|
|
4
4
|
import b from "../../IconSelector.vue.js";
|
|
5
5
|
import S from "./SidebarListElementForm.vue.js";
|
|
6
|
-
const C = { class: "grid grid-cols-[
|
|
6
|
+
const C = { class: "grid grid-cols-[auto_1fr] gap-2" }, g = { class: "flex aspect-square" }, $ = /* @__PURE__ */ p({
|
|
7
7
|
__name: "EditSidebarListCollection",
|
|
8
8
|
props: {
|
|
9
9
|
name: {},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidebarListElementForm.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a93bfefe"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -27,7 +27,7 @@ const g = { class: "flex justify-between gap-10" }, y = /* @__PURE__ */ u({
|
|
|
27
27
|
_: 1
|
|
28
28
|
}),
|
|
29
29
|
n(a(l), {
|
|
30
|
-
class: "custom-scroll h-8 gap-1.5
|
|
30
|
+
class: "custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",
|
|
31
31
|
type: "submit",
|
|
32
32
|
variant: t.danger ? "danger" : "solid"
|
|
33
33
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAqJA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAyDF,iBAAS,cAAc;WAoHT,OAAO,IAA6B;;wBAZtB,GAAG;wBACH,GAAG;wBAEH,GAAG;yBADF,GAAG;;;;;;EAe/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,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
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import a from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-72824faa"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -5,8 +5,8 @@ import { useSidebar as z } from "../../hooks/useSidebar.js";
|
|
|
5
5
|
import { useWorkspace as C } from "../../store/store.js";
|
|
6
6
|
const B = {
|
|
7
7
|
key: 0,
|
|
8
|
-
class: "xl:min-h-
|
|
9
|
-
}, I = { class: "m-0
|
|
8
|
+
class: "xl:min-h-header flex min-h-12 items-center justify-between px-3 py-1.5 text-sm md:px-[18px] md:py-2.5"
|
|
9
|
+
}, I = { class: "m-0 text-sm font-medium whitespace-nowrap" }, X = { class: "bg-b-1 relative sticky bottom-0 z-10 w-[inherit] pt-0 has-[.empty-sidebar-item]:border-t md:px-2.5 md:pb-2.5" }, q = /* @__PURE__ */ E({
|
|
10
10
|
__name: "Sidebar",
|
|
11
11
|
props: {
|
|
12
12
|
title: {}
|
|
@@ -29,7 +29,7 @@ const B = {
|
|
|
29
29
|
return (e, f) => S((m(), l("aside", {
|
|
30
30
|
ref_key: "sidebarRef",
|
|
31
31
|
ref: p,
|
|
32
|
-
class: h(["sidebar bg-b-1
|
|
32
|
+
class: h(["sidebar bg-b-1 relative flex min-w-full flex-1 flex-col overflow-hidden leading-3 md:min-w-fit md:flex-none md:border-r md:border-b-0", { dragging: a.value }]),
|
|
33
33
|
style: _({ width: t(d).lg ? t(o) : "100%" })
|
|
34
34
|
}, [
|
|
35
35
|
r(e.$slots, "header", {}, void 0, !0),
|
|
@@ -13,7 +13,7 @@ const g = /* @__PURE__ */ i({
|
|
|
13
13
|
a.click();
|
|
14
14
|
};
|
|
15
15
|
return (t, h) => (e(), o(r(m), {
|
|
16
|
-
class: "bg-b-1 text-c-1 hover:bg-b-2
|
|
16
|
+
class: "bg-b-1 text-c-1 hover:bg-b-2 group relative h-auto w-auto border px-2 py-1 md:w-full md:p-1.5",
|
|
17
17
|
icon: "Plus",
|
|
18
18
|
variant: "outlined",
|
|
19
19
|
onClick: l
|
|
@@ -2,7 +2,7 @@ import t from "./SidebarListElement.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
5
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0b6c70e4"]]);
|
|
6
6
|
export {
|
|
7
7
|
p as default
|
|
8
8
|
};
|
|
@@ -3,7 +3,7 @@ import { ScalarIcon as S } from "@scalar/components";
|
|
|
3
3
|
import { Draggable as z } from "@scalar/draggable";
|
|
4
4
|
import { useRouter as V } from "vue-router";
|
|
5
5
|
import $ from "./SidebarListElementActions.vue.js";
|
|
6
|
-
const O = { class: "empty-variable-name line-clamp-1 break-all
|
|
6
|
+
const O = { class: "empty-variable-name line-clamp-1 text-sm break-all group-hover:pr-5" }, q = /* @__PURE__ */ C({
|
|
7
7
|
__name: "SidebarListElement",
|
|
8
8
|
props: {
|
|
9
9
|
variable: {},
|
|
@@ -6,7 +6,7 @@ const u = /* @__PURE__ */ o({
|
|
|
6
6
|
const { cx: e } = a();
|
|
7
7
|
return (r, s) => (n(), t("div", l(d(
|
|
8
8
|
f(e)(
|
|
9
|
-
"flex flex-col min-h-0 flex-1 *:border-t
|
|
9
|
+
"flex flex-col min-h-0 flex-1 *:border-t first:*:border-t-0 md:*:border-t-0 xl:overflow-hidden md:flex-row leading-3"
|
|
10
10
|
)
|
|
11
11
|
)), [
|
|
12
12
|
i(r.$slots, "default")
|
|
@@ -21,7 +21,7 @@ const _ = ["aria-labelledby"], k = { class: "text-c-1 flex flex-1 items-center g
|
|
|
21
21
|
const u = b();
|
|
22
22
|
return (e, O) => (s(), c(t(x), {
|
|
23
23
|
as: "div",
|
|
24
|
-
class: r(["group/collapse focus-within:text-c-1 text-c-2 border-b", { "
|
|
24
|
+
class: r(["group/collapse focus-within:text-c-1 text-c-2 border-b", { "last-of-type:first-of-type:border-b-0": e.layout === "reference" }]),
|
|
25
25
|
defaultOpen: e.defaultOpen,
|
|
26
26
|
static: e.layout === "reference" ? !0 : void 0
|
|
27
27
|
}, {
|
|
@@ -35,7 +35,7 @@ const _ = ["aria-labelledby"], k = { class: "text-c-1 flex flex-1 items-center g
|
|
|
35
35
|
}, [
|
|
36
36
|
f(t(g), {
|
|
37
37
|
class: r([
|
|
38
|
-
"hover:text-c-1 group box-content flex max-h-8 flex-1 items-center gap-2.5 overflow-hidden px-1 py-1.5 text-sm font-medium outline-none md:px-1.5 xl:
|
|
38
|
+
"hover:text-c-1 group box-content flex max-h-8 flex-1 items-center gap-2.5 overflow-hidden px-1 py-1.5 text-sm font-medium outline-none md:px-1.5 xl:pr-0.5 xl:pl-2",
|
|
39
39
|
{ "!pl-3": e.layout === "reference" }
|
|
40
40
|
]),
|
|
41
41
|
disabled: e.layout === "reference"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElementBlock as e, openBlock as o, renderSlot as t } from "vue";
|
|
2
2
|
import l from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, s = { class: "
|
|
3
|
+
const c = {}, s = { class: "custom-scroll flex flex-col pr-0 *:border-t *:first:border-t-0 xl:flex-row *:xl:border-t-0 *:xl:border-l *:first:xl:border-l-0" };
|
|
4
4
|
function n(r, f) {
|
|
5
5
|
return o(), e("div", s, [
|
|
6
6
|
t(r.$slots, "default")
|
|
@@ -2,7 +2,7 @@ import { defineComponent as n, createElementBlock as t, openBlock as o, normaliz
|
|
|
2
2
|
import { useBindCx as a } from "@scalar/components";
|
|
3
3
|
const u = {
|
|
4
4
|
key: 0,
|
|
5
|
-
class: "request-response-header bg-b-1
|
|
5
|
+
class: "request-response-header bg-b-1 -mb-1/2 sticky top-0 z-1 flex min-h-11 items-center border-b px-2.5 text-sm font-medium xl:rounded-none"
|
|
6
6
|
}, b = /* @__PURE__ */ n({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "ViewLayoutSection",
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,UAAU,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,UAAU,CAAA"}
|