@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,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d8146cd8"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -73,7 +73,7 @@ const O = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
73
73
|
default: n(() => [
|
|
74
74
|
e.isGlobal ? (u(), i(s(G), {
|
|
75
75
|
key: 0,
|
|
76
|
-
class: "
|
|
76
|
+
class: "text-c-2 flex items-center justify-center border-t !border-r",
|
|
77
77
|
to: l.route ?? {}
|
|
78
78
|
}, {
|
|
79
79
|
default: n(() => [
|
|
@@ -96,7 +96,7 @@ const O = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
96
96
|
_: 2
|
|
97
97
|
}, 1032, ["to"])) : (u(), i(P, {
|
|
98
98
|
key: 1,
|
|
99
|
-
class: "!border-r
|
|
99
|
+
class: "!border-r",
|
|
100
100
|
disabled: m.hasCheckboxDisabled,
|
|
101
101
|
modelValue: l.enabled,
|
|
102
102
|
"onUpdate:modelValue": (a) => t("toggleRow", d, a)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestTableTooltip.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-4df72868"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as d, computed as c, createBlock as s, openBlock as t,
|
|
|
2
2
|
import { ScalarPopover as f } from "@scalar/components";
|
|
3
3
|
import { ScalarIconWarning as h, ScalarIconInfo as v } from "@scalar/icons";
|
|
4
4
|
import { parameterIsInvalid as p } from "../libs/request.js";
|
|
5
|
-
const y = ["aria-label", "role"], k = { class: "w-content text-xxs text-c-1 grid min-w-48 gap-1.5 rounded px-1.5 pb-1.5
|
|
5
|
+
const y = ["aria-label", "role"], k = { class: "w-content text-xxs text-c-1 grid min-w-48 gap-1.5 rounded px-1.5 pt-2 pb-1.5 leading-none" }, g = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "text-error-1"
|
|
8
8
|
}, b = {
|
|
@@ -10,7 +10,7 @@ const y = ["aria-label", "role"], k = { class: "w-content text-xxs text-c-1 grid
|
|
|
10
10
|
class: "schema text-c-2 flex items-center"
|
|
11
11
|
}, _ = { key: 0 }, I = { key: 1 }, x = { key: 2 }, S = { key: 3 }, w = { key: 4 }, B = {
|
|
12
12
|
key: 2,
|
|
13
|
-
class: "text-
|
|
13
|
+
class: "text-sm leading-snug text-pretty",
|
|
14
14
|
style: { maxWidth: "16rem" }
|
|
15
15
|
}, V = /* @__PURE__ */ d({
|
|
16
16
|
__name: "RequestTableTooltip",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestSidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7db729e2"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -179,7 +179,7 @@ const Ye = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ze
|
|
|
179
179
|
}, [
|
|
180
180
|
n("span", tt, K(m.value ? "Hide" : "Show") + " search ", 1),
|
|
181
181
|
h(t(P), {
|
|
182
|
-
class: "text-c-3 hover:bg-b-2
|
|
182
|
+
class: "text-c-3 hover:bg-b-2 max-h-8 max-w-8 rounded-lg p-1.75 text-sm",
|
|
183
183
|
icon: "Search"
|
|
184
184
|
})
|
|
185
185
|
], 8, et)
|
|
@@ -205,7 +205,7 @@ const Ye = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ze
|
|
|
205
205
|
[U, m.value]
|
|
206
206
|
]),
|
|
207
207
|
n("div", {
|
|
208
|
-
class: g(["gap-1/2 flex flex-1 flex-col overflow-visible overflow-y-auto px-3 pb-3
|
|
208
|
+
class: g(["gap-1/2 flex flex-1 flex-col overflow-visible overflow-y-auto px-3 pt-0 pb-3", [
|
|
209
209
|
{
|
|
210
210
|
"pb-14": t(i) !== "modal"
|
|
211
211
|
},
|
|
@@ -311,10 +311,10 @@ const Ye = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ze
|
|
|
311
311
|
}, null, 8, ["art"]),
|
|
312
312
|
h(j, {
|
|
313
313
|
art: t(Le),
|
|
314
|
-
class: "rabbitjump absolute
|
|
314
|
+
class: "rabbitjump absolute top-0 left-0 font-bold"
|
|
315
315
|
}, null, 8, ["art"])
|
|
316
316
|
]),
|
|
317
|
-
e[10] || (e[10] = n("div", { class: "
|
|
317
|
+
e[10] || (e[10] = n("div", { class: "mt-2 mb-2 text-center text-sm text-balance" }, [
|
|
318
318
|
n("b", { class: "font-medium" }, "Let's Get Started"),
|
|
319
319
|
n("p", { class: "mt-2" }, " Create request, folder, collection or import from OpenAPI/Postman ")
|
|
320
320
|
], -1))
|
|
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-3e34b330"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -10,13 +10,13 @@ import { PathId as $ } from "../../routes.js";
|
|
|
10
10
|
import Ce from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
11
11
|
import { getModifiers as Re } from "../../libs/hot-keys.js";
|
|
12
12
|
import { useWorkspace as Ie } from "../../store/store.js";
|
|
13
|
-
const Te = { class: "line-clamp-1 w-full
|
|
13
|
+
const Te = { class: "line-clamp-1 w-full pl-2 font-medium break-all" }, Me = { class: "flex flex-row items-center gap-1" }, $e = { class: "relative" }, ze = { class: "flex items-start" }, Ee = { class: "flex flex-1 flex-row justify-between font-medium" }, Se = { class: "line-clamp-1 w-full text-left break-all" }, je = { class: "relative flex h-fit justify-end" }, Be = {
|
|
14
14
|
class: "flex items-center justify-center",
|
|
15
15
|
type: "button"
|
|
16
|
-
}, We = ["aria-expanded"], Ae = { class: "flex h-5 max-w-[14px] items-center justify-center" }, Ne = { class: "flex flex-1 flex-row justify-between" }, Oe = { class: "line-clamp-1 w-full
|
|
16
|
+
}, We = ["aria-expanded"], Ae = { class: "flex h-5 max-w-[14px] items-center justify-center" }, Ne = { class: "flex flex-1 flex-row justify-between" }, Oe = { class: "line-clamp-1 w-full text-left font-medium break-all" }, Pe = { class: "relative flex h-fit justify-end" }, Ve = {
|
|
17
17
|
class: "flex items-center justify-center",
|
|
18
18
|
type: "button"
|
|
19
|
-
}, Fe = { key: 3 }, O = "hover:bg-sidebar-active
|
|
19
|
+
}, Fe = { key: 3 }, O = "hover:bg-sidebar-b-active indent-padding-left", it = /* @__PURE__ */ me({
|
|
20
20
|
__name: "RequestSidebarItem",
|
|
21
21
|
props: {
|
|
22
22
|
isDraggable: { type: Boolean, default: !1 },
|
|
@@ -28,8 +28,8 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, Me = { c
|
|
|
28
28
|
emits: ["onDragEnd", "newTab", "openMenu"],
|
|
29
29
|
setup(l, { emit: ne }) {
|
|
30
30
|
ve((e) => ({
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
d6dab45e: ae.value,
|
|
32
|
+
"07f1324d": re.value
|
|
33
33
|
}));
|
|
34
34
|
const oe = ne, { activeCollection: le, activeRequest: P, activeRouterParams: se, activeWorkspace: U } = De(), {
|
|
35
35
|
collections: C,
|
|
@@ -170,7 +170,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, Me = { c
|
|
|
170
170
|
return ce.value ? (d(), M("li", {
|
|
171
171
|
key: 0,
|
|
172
172
|
class: y(["relative flex flex-row", [
|
|
173
|
-
n(p) === "modal" && e.parentUids.length > 1 || n(p) !== "modal" && e.parentUids.length ? "before:bg-border indent-border-line-offset
|
|
173
|
+
n(p) === "modal" && e.parentUids.length > 1 || n(p) !== "modal" && e.parentUids.length ? "before:bg-border indent-border-line-offset mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-[calc(.75rem_+_.5px)] before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full" : ""
|
|
174
174
|
]])
|
|
175
175
|
}, [
|
|
176
176
|
m(n(ke), {
|
|
@@ -203,7 +203,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, Me = { c
|
|
|
203
203
|
s("div", {
|
|
204
204
|
class: y(["relative flex min-h-8 w-full cursor-pointer flex-row items-start justify-between gap-0.5 rounded py-1.5 pr-2", [
|
|
205
205
|
O,
|
|
206
|
-
o || de.value ? "bg-sidebar-active
|
|
206
|
+
o || de.value ? "bg-sidebar-b-active text-sidebar-c-active transition-none" : "text-sidebar-c-2"
|
|
207
207
|
]])
|
|
208
208
|
}, [
|
|
209
209
|
s("span", Te, A(i.value.title || "Untitled"), 1),
|
|
@@ -256,7 +256,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, Me = { c
|
|
|
256
256
|
class: y(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 no-underline focus-visible:z-10", [
|
|
257
257
|
O,
|
|
258
258
|
{
|
|
259
|
-
"bg-sidebar-active
|
|
259
|
+
"bg-sidebar-b-active text-sidebar-c-active transition-none": typeof n(x).currentRoute.value.name == "string" && n(x).currentRoute.value.name.startsWith("collection") && n(x).currentRoute.value.params[n($).Collection] === i.value.entity.uid,
|
|
260
260
|
"text-c-2": i.value.title === "Untitled Collection"
|
|
261
261
|
}
|
|
262
262
|
]]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./RequestSubpageHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-c8df97c6"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -6,7 +6,7 @@ import { useLayout as y } from "../../hooks/useLayout.js";
|
|
|
6
6
|
import { useSidebar as h } from "../../hooks/useSidebar.js";
|
|
7
7
|
import V from "../../components/OpenApiClientButton.vue.js";
|
|
8
8
|
import { useWorkspace as z } from "../../store/store.js";
|
|
9
|
-
const B = { class: "lg:min-h-
|
|
9
|
+
const B = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center border-b p-2 pt-2 lg:p-1 lg:pt-1" }, S = { class: "mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1" }, $ = { class: "mb-2 flex w-1/2 flex-row items-center justify-end gap-1 lg:mb-0 lg:flex-1 lg:px-2.5" }, O = /* @__PURE__ */ g({
|
|
10
10
|
__name: "RequestSubpageHeader",
|
|
11
11
|
props: {
|
|
12
12
|
collection: {},
|
|
@@ -46,7 +46,7 @@ const B = { class: "lg:min-h-client-header t-app__top-container border-b-1/2 fle
|
|
|
46
46
|
}, null, 8, ["integration", "source", "url"])) : s("", !0),
|
|
47
47
|
o(n) === "modal" ? (r(), l("button", {
|
|
48
48
|
key: 1,
|
|
49
|
-
class: "app-exit-button gitbook-hidden zoomed:static zoomed:p-1 fixed
|
|
49
|
+
class: "app-exit-button gitbook-hidden zoomed:static zoomed:p-1 fixed top-2 right-2 rounded-full p-2",
|
|
50
50
|
type: "button",
|
|
51
51
|
onClick: t[1] || (t[1] = (a) => e.$emit("hideModal"))
|
|
52
52
|
}, [
|
|
@@ -58,7 +58,7 @@ const H = {
|
|
|
58
58
|
class: "group/row text-c-1"
|
|
59
59
|
}, {
|
|
60
60
|
default: e(() => [
|
|
61
|
-
a(_, { class: "
|
|
61
|
+
a(_, { class: "bg-b-1 sticky left-0 z-1 max-w-48 group-first/row:border-t-0" }, {
|
|
62
62
|
default: e(() => {
|
|
63
63
|
var u;
|
|
64
64
|
return [
|
|
@@ -59,7 +59,7 @@ const T = { class: "flex w-full items-center justify-between" }, E = {
|
|
|
59
59
|
l("div", {
|
|
60
60
|
ref_key: "contentContainer",
|
|
61
61
|
ref: r,
|
|
62
|
-
class: "text-xxs font-code
|
|
62
|
+
class: "text-xxs font-code h-full overflow-auto leading-2 whitespace-pre-wrap"
|
|
63
63
|
}, [
|
|
64
64
|
a.value ? (s(), d("div", N, g(a.value.message), 1)) : c("", !0),
|
|
65
65
|
o.value ? (s(), d("div", V, g(o.value), 1)) : c("", !0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBodyVirtual.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyVirtual.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResponseBodyVirtual.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyVirtual.vue"],"names":[],"mappings":"AAmEA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AA6GF,wBAOG"}
|
|
@@ -21,9 +21,9 @@ const R = /* @__PURE__ */ c({
|
|
|
21
21
|
t[0] || (t[0] = y("Body"))
|
|
22
22
|
]),
|
|
23
23
|
default: r(() => [
|
|
24
|
-
t[1] || (t[1] = h("div", { class: "font-code text-xxs
|
|
24
|
+
t[1] || (t[1] = h("div", { class: "font-code text-xxs rounded-t border border-b-0 px-2.5 py-1.5" }, " This response body is massive! Syntax highlighting won’t work here. ", -1)),
|
|
25
25
|
s(e(b), {
|
|
26
|
-
containerClass: "custom-scroll scalar-code-block border
|
|
26
|
+
containerClass: "custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",
|
|
27
27
|
contentClass: "language-plaintext whitespace-pre font-code text-base",
|
|
28
28
|
lineHeight: 20,
|
|
29
29
|
text: i.value
|
|
@@ -5,7 +5,7 @@ import m from "../../../components/DataTable/DataTableText.vue.js";
|
|
|
5
5
|
import k from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
6
6
|
const d = {
|
|
7
7
|
key: 1,
|
|
8
|
-
class: "text-c-3
|
|
8
|
+
class: "text-c-3 bg-b-1 flex min-h-[65px] items-center justify-center border-t px-4 text-sm"
|
|
9
9
|
}, B = /* @__PURE__ */ c({
|
|
10
10
|
__name: "ResponseCookies",
|
|
11
11
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":"AAoKA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;IACpB,SAAS,EAAE,SAAS,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;CAC7B,CAAC;;
|
|
1
|
+
{"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":"AAoKA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;IACpB,SAAS,EAAE,SAAS,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;CAC7B,CAAC;;AAoNF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseEmpty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bb2369d4"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, onMounted as R, onBeforeUnmount as v, createElementBlock as
|
|
1
|
+
import { defineComponent as q, onMounted as R, onBeforeUnmount as v, createElementBlock as i, openBlock as u, createElementVNode as s, createCommentVNode as c, normalizeClass as y, unref as t, createVNode as m, createTextVNode as p, toDisplayString as h, nextTick as C } from "vue";
|
|
2
2
|
import { useRoute as N, useRouter as S } from "vue-router";
|
|
3
3
|
import B from "../../../assets/computer.ascii.js";
|
|
4
4
|
import V from "../../../components/EmptyState.vue.js";
|
|
@@ -6,7 +6,7 @@ import E from "../../../components/ScalarAsciiArt.vue.js";
|
|
|
6
6
|
import d from "../../../components/ScalarHotkey.vue.js";
|
|
7
7
|
import { useWorkspace as K } from "../../../store/store.js";
|
|
8
8
|
import { useLayout as A } from "../../../hooks/useLayout.js";
|
|
9
|
-
const W = { class: "
|
|
9
|
+
const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitalize" }, $ = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "scalar-version-number"
|
|
12
12
|
}, j = { class: "text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm" }, U = /* @__PURE__ */ q({
|
|
@@ -18,9 +18,9 @@ const W = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, $ = {
|
|
|
18
18
|
numWorkspaceRequests: {}
|
|
19
19
|
},
|
|
20
20
|
setup(r) {
|
|
21
|
-
const { events: a, requestMutators:
|
|
22
|
-
var
|
|
23
|
-
const o = (
|
|
21
|
+
const { events: a, requestMutators: x } = K(), g = N(), b = S(), { layout: n } = A(), f = () => {
|
|
22
|
+
var l;
|
|
23
|
+
const o = (l = r.operation.tags) != null && l.length ? { tags: r.operation.tags[0] ? [r.operation.tags[0]] : [] } : {}, e = x.add(o, r.collection.uid);
|
|
24
24
|
e && (b.push({
|
|
25
25
|
name: "request",
|
|
26
26
|
params: {
|
|
@@ -33,15 +33,15 @@ const W = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, $ = {
|
|
|
33
33
|
});
|
|
34
34
|
}));
|
|
35
35
|
}, k = (o) => {
|
|
36
|
-
o != null && o.createNew &&
|
|
37
|
-
}, w = "2.
|
|
38
|
-
return R(() => a.hotKeys.on(k)), v(() => a.hotKeys.off(k)), (o, e) => (u(),
|
|
36
|
+
o != null && o.createNew && g.name === "request" && f();
|
|
37
|
+
}, w = "2.5.0";
|
|
38
|
+
return R(() => a.hotKeys.on(k)), v(() => a.hotKeys.off(k)), (o, e) => (u(), i("div", W, [
|
|
39
39
|
s("div", {
|
|
40
40
|
class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
|
41
41
|
"hidden opacity-0": o.numWorkspaceRequests <= 1 && t(n) !== "modal"
|
|
42
42
|
}])
|
|
43
43
|
}, [
|
|
44
|
-
t(n) !== "modal" ? (u(),
|
|
44
|
+
t(n) !== "modal" ? (u(), i("div", $, [
|
|
45
45
|
p(" Scalar App V" + h(t(w)) + " Beta ", 1),
|
|
46
46
|
e[3] || (e[3] = s("div", { class: "mt-2" }, [
|
|
47
47
|
s("a", {
|
|
@@ -60,7 +60,7 @@ const W = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, $ = {
|
|
|
60
60
|
class: "text-c-3"
|
|
61
61
|
}, null, 8, ["art"])
|
|
62
62
|
], 2),
|
|
63
|
-
t(n) !== "modal" ? (u(),
|
|
63
|
+
t(n) !== "modal" ? (u(), i("div", {
|
|
64
64
|
key: 0,
|
|
65
65
|
class: y(["hidden h-[calc(100%_-_50px)] items-center justify-center pb-5", {
|
|
66
66
|
"!flex opacity-100": o.numWorkspaceRequests == 1
|
|
@@ -69,20 +69,20 @@ const W = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, $ = {
|
|
|
69
69
|
m(V)
|
|
70
70
|
], 2)) : c("", !0),
|
|
71
71
|
s("div", j, [
|
|
72
|
-
t(n) !== "modal" ? (u(),
|
|
72
|
+
t(n) !== "modal" ? (u(), i("button", {
|
|
73
73
|
key: 0,
|
|
74
74
|
class: "flex items-center gap-1.5",
|
|
75
75
|
type: "button",
|
|
76
|
-
onClick: e[0] || (e[0] = (
|
|
76
|
+
onClick: e[0] || (e[0] = (l) => t(a).commandPalette.emit())
|
|
77
77
|
}, [
|
|
78
78
|
e[5] || (e[5] = p(" Get Started ")),
|
|
79
79
|
m(d, { hotkey: "k" })
|
|
80
80
|
])) : c("", !0),
|
|
81
|
-
t(n) === "desktop" ? (u(),
|
|
81
|
+
t(n) === "desktop" ? (u(), i("button", {
|
|
82
82
|
key: 1,
|
|
83
83
|
class: "flex items-center gap-1.5",
|
|
84
84
|
type: "button",
|
|
85
|
-
onClick: e[1] || (e[1] = (
|
|
85
|
+
onClick: e[1] || (e[1] = (l) => f())
|
|
86
86
|
}, [
|
|
87
87
|
e[6] || (e[6] = p(" New Request ")),
|
|
88
88
|
m(d, { hotkey: "N" })
|
|
@@ -90,7 +90,7 @@ const W = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, $ = {
|
|
|
90
90
|
s("button", {
|
|
91
91
|
class: "flex items-center gap-1.5",
|
|
92
92
|
type: "button",
|
|
93
|
-
onClick: e[2] || (e[2] = (
|
|
93
|
+
onClick: e[2] || (e[2] = (l) => t(a).executeRequest.emit())
|
|
94
94
|
}, [
|
|
95
95
|
e[7] || (e[7] = p(" Send Request ")),
|
|
96
96
|
m(d, { hotkey: "↵" })
|
|
@@ -58,7 +58,7 @@ const H = {
|
|
|
58
58
|
class: "group/row text-c-1"
|
|
59
59
|
}, {
|
|
60
60
|
default: e(() => [
|
|
61
|
-
a(_, { class: "
|
|
61
|
+
a(_, { class: "bg-b-1 sticky left-0 z-1 max-w-48 group-first/row:border-t-0" }, {
|
|
62
62
|
default: e(() => {
|
|
63
63
|
var d;
|
|
64
64
|
return [
|
|
@@ -6,7 +6,7 @@ import { useActiveEntities as W } from "../../store/active-entities.js";
|
|
|
6
6
|
import F from "./components/SettingsAppearance.vue.js";
|
|
7
7
|
import C from "./components/SettingsSection.vue.js";
|
|
8
8
|
import { useWorkspace as O } from "../../store/store.js";
|
|
9
|
-
const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "
|
|
9
|
+
const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto ml-auto w-full max-w-[720px] px-5 py-5" }, q = { class: "flex flex-col gap-8" }, H = { class: "flex flex-col gap-2" }, M = { class: "flex flex-col gap-2" }, X = { class: "grid grid-cols-2 gap-2" }, Y = { class: "flex items-center gap-2" }, J = { class: "flex items-center gap-1" }, K = { class: "grid grid-cols-2 gap-2" }, Q = { class: "flex items-center gap-2" }, Z = { class: "flex items-center gap-1" }, I = { class: "size-7 rounded-xl" }, w = "https://proxy.scalar.com", ce = /* @__PURE__ */ P({
|
|
10
10
|
__name: "SettingsGeneral",
|
|
11
11
|
setup(ee) {
|
|
12
12
|
const { activeWorkspace: o } = W(), { proxyUrl: k, workspaceMutators: j } = O(), L = [
|
|
@@ -38,7 +38,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "ml-auto
|
|
|
38
38
|
var t;
|
|
39
39
|
return j.edit((t = o.value) == null ? void 0 : t.uid, "themeId", x);
|
|
40
40
|
}, g = R({
|
|
41
|
-
base: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border
|
|
41
|
+
base: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",
|
|
42
42
|
variants: {
|
|
43
43
|
active: {
|
|
44
44
|
true: "bg-primary text-c-1 hover:bg-inherit",
|
|
@@ -5,7 +5,7 @@ const C = { class: "flex flex-col gap-2" }, z = /* @__PURE__ */ x({
|
|
|
5
5
|
__name: "SettingsAppearance",
|
|
6
6
|
setup(h) {
|
|
7
7
|
const { colorMode: r, setColorMode: n } = v(), a = g({
|
|
8
|
-
base: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border
|
|
8
|
+
base: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",
|
|
9
9
|
variants: {
|
|
10
10
|
active: {
|
|
11
11
|
true: "bg-primary text-c-1 hover:bg-inherit",
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.
|
|
21
|
+
"version": "2.5.0",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
@@ -204,38 +204,36 @@
|
|
|
204
204
|
"whatwg-mimetype": "^4.0.0",
|
|
205
205
|
"yaml": "^2.4.5",
|
|
206
206
|
"zod": "3.24.1",
|
|
207
|
-
"@scalar/components": "0.14.
|
|
207
|
+
"@scalar/components": "0.14.3",
|
|
208
|
+
"@scalar/icons": "0.4.2",
|
|
208
209
|
"@scalar/draggable": "0.2.0",
|
|
209
|
-
"@scalar/
|
|
210
|
-
"@scalar/
|
|
210
|
+
"@scalar/import": "0.4.4",
|
|
211
|
+
"@scalar/oas-utils": "0.4.0",
|
|
211
212
|
"@scalar/object-utils": "1.2.1",
|
|
212
|
-
"@scalar/openapi-parser": "0.
|
|
213
|
-
"@scalar/oas-utils": "0.3.2",
|
|
214
|
-
"@scalar/postman-to-openapi": "0.3.2",
|
|
215
|
-
"@scalar/themes": "0.12.1",
|
|
216
|
-
"@scalar/snippetz": "0.3.0",
|
|
213
|
+
"@scalar/openapi-parser": "0.13.0",
|
|
217
214
|
"@scalar/openapi-types": "0.3.1",
|
|
215
|
+
"@scalar/postman-to-openapi": "0.3.3",
|
|
216
|
+
"@scalar/snippetz": "0.3.0",
|
|
217
|
+
"@scalar/themes": "0.13.0",
|
|
218
218
|
"@scalar/types": "0.2.1",
|
|
219
|
-
"@scalar/use-
|
|
220
|
-
"@scalar/use-hooks": "0.2.1",
|
|
219
|
+
"@scalar/use-hooks": "0.2.2",
|
|
221
220
|
"@scalar/use-tooltip": "1.1.0",
|
|
221
|
+
"@scalar/use-codemirror": "0.12.4",
|
|
222
222
|
"@scalar/use-toasts": "0.8.0"
|
|
223
223
|
},
|
|
224
224
|
"devDependencies": {
|
|
225
|
+
"@tailwindcss/vite": "^4.1.7",
|
|
225
226
|
"@types/shell-quote": "^1.7.5",
|
|
226
227
|
"@types/whatwg-mimetype": "^3.0.2",
|
|
227
228
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
228
229
|
"@vue/test-utils": "^2.4.1",
|
|
229
|
-
"autoprefixer": "^10.4.19",
|
|
230
230
|
"jsdom": "^22.1.0",
|
|
231
|
-
"
|
|
232
|
-
"tailwindcss": "^3.4.4",
|
|
233
|
-
"tailwindcss-color-mix": "^0.0.8",
|
|
231
|
+
"tailwindcss": "^4.1.7",
|
|
234
232
|
"vite": "5.4.19",
|
|
235
233
|
"vite-svg-loader": "^5.1.0",
|
|
236
234
|
"vitest": "^1.6.0",
|
|
237
|
-
"@scalar/
|
|
238
|
-
"@scalar/
|
|
235
|
+
"@scalar/build-tooling": "0.2.1",
|
|
236
|
+
"@scalar/galaxy": "0.5.0"
|
|
239
237
|
},
|
|
240
238
|
"scripts": {
|
|
241
239
|
"build": "scalar-build-vite",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Platform Variants
|
|
3
|
-
*/
|
|
4
|
-
export declare const platformVariants: readonly ["mac", "windows", "linux"];
|
|
5
|
-
/**
|
|
6
|
-
* Add support for `desktop` and platform modifiers
|
|
7
|
-
*
|
|
8
|
-
* @example <div class="desktop:rounded-lg">...</div>
|
|
9
|
-
* @example <div class="mac:hidden">...</div>
|
|
10
|
-
*
|
|
11
|
-
* Modified from `@todesktop/tailwind-variants`
|
|
12
|
-
* @see https://github.com/todesktop/tailwind-variants
|
|
13
|
-
*/
|
|
14
|
-
export declare const desktopVariants: {
|
|
15
|
-
handler: import("tailwindcss/types/config").PluginCreator;
|
|
16
|
-
config?: Partial<import("tailwindcss/types/config").Config>;
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=desktop-variants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"desktop-variants.d.ts","sourceRoot":"","sources":["../../src/tailwind/desktop-variants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,gBAAgB,sCAAuC,CAAA;AAEpE;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;;;CAQ1B,CAAA"}
|