@scalar/api-client 2.5.13 → 2.5.16
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 +77 -0
- package/README.md +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +3 -3
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.js +11 -10
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +10 -10
- 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 +129 -116
- package/dist/components/DataTable/DataTableCell.vue.js +8 -8
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/Form/Form.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +7 -7
- package/dist/components/ImportCollection/PrefetchError.vue.js +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +1 -1
- package/dist/components/ImportCollection/utils/get-openapi-version.d.ts +5 -0
- package/dist/components/ImportCollection/utils/get-openapi-version.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/get-openapi-version.js +20 -0
- package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts +2 -0
- package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/import-collection.js +1 -1
- package/dist/components/ImportCollection/utils/{isDocument.d.ts → is-document.d.ts} +2 -2
- package/dist/components/ImportCollection/utils/is-document.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/is-document.js +9 -0
- package/dist/components/ImportCollection/utils/is-document.test.d.ts +2 -0
- package/dist/components/ImportCollection/utils/is-document.test.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/is-url.d.ts +5 -0
- package/dist/components/ImportCollection/utils/is-url.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/is-url.js +9 -0
- package/dist/components/ImportCollection/utils/is-url.test.d.ts +2 -0
- package/dist/components/ImportCollection/utils/is-url.test.d.ts.map +1 -0
- package/dist/components/OpenApiClientButton.vue.js +2 -2
- package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.js +8 -8
- package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerSelector.vue.js +13 -13
- package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesSelect.vue.js +3 -3
- package/dist/components/TopNav/TopNav.vue.js +10 -10
- package/dist/components/TopNav/TopNavItem.vue.js +1 -1
- package/dist/components/TopNav/TopNavItem.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +5 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +42 -36
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +4 -4
- package/dist/hooks/useClientConfig.d.ts +42 -36
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +202 -162
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +404 -324
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +202 -162
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +202 -162
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts +5 -5
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/get-request-uid-by-path-method.d.ts.map +1 -1
- package/dist/libs/get-request-uid-by-path-method.js +15 -7
- package/dist/libs/send-request/create-request-operation.js +10 -10
- package/dist/libs/send-request/create-request-operation.test.d.ts +33 -33
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
- package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.d.ts +5 -3
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.js +17 -9
- package/dist/plugins/plugin-manager.test.d.ts +2 -0
- package/dist/plugins/plugin-manager.test.d.ts.map +1 -0
- package/dist/store/active-entities.d.ts +33 -33
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +130 -130
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +55 -55
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +42 -2
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts +204 -164
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue.js +2 -2
- package/dist/views/Collection/components/EnvironmentForm.vue.js +2 -2
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.js +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue2.js +32 -26
- package/dist/views/Cookies/CookieForm.vue.js +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +67 -61
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +98 -92
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +126 -122
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +22 -22
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +9 -9
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +9 -9
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +9 -9
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +39 -39
- package/dist/views/Settings/SettingsGeneral.vue.js +2 -2
- package/package.json +19 -19
- package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.d.ts +0 -5
- package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.js +0 -20
- package/dist/components/ImportCollection/utils/isDocument.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/isDocument.js +0 -7
- package/dist/components/ImportCollection/utils/isUrl.d.ts +0 -3
- package/dist/components/ImportCollection/utils/isUrl.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/isUrl.js +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-url.test.d.ts","sourceRoot":"","sources":["../../../../src/components/ImportCollection/utils/is-url.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./OpenApiClientButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-210c4985"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
i as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerDropdown.vue"],"names":[],"mappings":"AAkLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,IAAI,SAAS,EACpB,MAAM,EACP,MAAM,iCAAiC,CAAA;AAUxC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;
|
|
1
|
+
{"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerDropdown.vue"],"names":[],"mappings":"AAkLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,IAAI,SAAS,EACpB,MAAM,EACP,MAAM,iCAAiC,CAAA;AAUxC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;AA6RF,wBAOG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as V, computed as u, watch as z, createBlock as m, openBlock as n, unref as s, withCtx as v, createVNode as c, createElementBlock as a, Fragment as d, createElementVNode as i, createTextVNode as L, toDisplayString as W, createCommentVNode as h, renderList as k } from "vue";
|
|
2
|
-
import { ScalarPopover as q, ScalarButton as E, ScalarIcon as
|
|
2
|
+
import { ScalarPopover as q, ScalarButton as E, ScalarIcon as y, ScalarFloatingBackdrop as F, ScalarDropdownDivider as I } from "@scalar/components";
|
|
3
3
|
import { useLayout as M } from "../../hooks/useLayout.js";
|
|
4
4
|
import { useWorkspace as P } from "../../store/store.js";
|
|
5
|
-
import
|
|
5
|
+
import x from "./ServerDropdownItem.vue.js";
|
|
6
6
|
const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }, Q = /* @__PURE__ */ V({
|
|
7
7
|
__name: "ServerDropdown",
|
|
8
8
|
props: {
|
|
@@ -65,7 +65,7 @@ const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
65
65
|
t[e] = { ...t[e], default: r }, C.edit(l.server.uid, "variables", t);
|
|
66
66
|
};
|
|
67
67
|
return (e, r) => (n(), m(s(q), {
|
|
68
|
-
class: "max-h-[inherit] p-0 text-
|
|
68
|
+
class: "max-h-[inherit] p-0 text-base",
|
|
69
69
|
focus: "",
|
|
70
70
|
offset: 0,
|
|
71
71
|
placement: "bottom-start",
|
|
@@ -78,7 +78,7 @@ const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
78
78
|
class: "custom-scroll flex max-h-[inherit] flex-col gap-1 border-t p-1",
|
|
79
79
|
onClick: t
|
|
80
80
|
}, [
|
|
81
|
-
(n(!0), a(d, null, k(f.value, (o) => (n(), m(
|
|
81
|
+
(n(!0), a(d, null, k(f.value, (o) => (n(), m(x, {
|
|
82
82
|
key: o.id,
|
|
83
83
|
collection: e.collection,
|
|
84
84
|
operation: e.operation,
|
|
@@ -91,7 +91,7 @@ const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
91
91
|
c(s(I)),
|
|
92
92
|
r[2] || (r[2] = i("div", { class: "text-xxs text-c-2 px-2.5 py-1" }, "Collection", -1))
|
|
93
93
|
], 64)) : h("", !0),
|
|
94
|
-
(n(!0), a(d, null, k(S.value, (o) => (n(), m(
|
|
94
|
+
(n(!0), a(d, null, k(S.value, (o) => (n(), m(x, {
|
|
95
95
|
key: o.id,
|
|
96
96
|
collection: e.collection,
|
|
97
97
|
operation: e.operation,
|
|
@@ -107,7 +107,7 @@ const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
107
107
|
onClick: B
|
|
108
108
|
}, [
|
|
109
109
|
i("div", j, [
|
|
110
|
-
c(s(
|
|
110
|
+
c(s(y), {
|
|
111
111
|
icon: "Add",
|
|
112
112
|
size: "sm"
|
|
113
113
|
})
|
|
@@ -121,7 +121,7 @@ const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
121
121
|
]),
|
|
122
122
|
default: v(() => [
|
|
123
123
|
c(s(E), {
|
|
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-
|
|
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-base whitespace-nowrap",
|
|
125
125
|
variant: "ghost"
|
|
126
126
|
}, {
|
|
127
127
|
default: v(() => {
|
|
@@ -132,7 +132,7 @@ const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
132
132
|
L(" " + W(N.value), 1)
|
|
133
133
|
], 64)) : (n(), a(d, { key: 1 }, [
|
|
134
134
|
r[1] || (r[1] = i("span", { class: "sr-only" }, "Add Server", -1)),
|
|
135
|
-
c(s(
|
|
135
|
+
c(s(y), {
|
|
136
136
|
icon: "Add",
|
|
137
137
|
size: "xs"
|
|
138
138
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerSelector.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAYzE,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,UAAU,EAAE,UAAU,CAAA;IACtB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;
|
|
1
|
+
{"version":3,"file":"ServerSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerSelector.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAYzE,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,UAAU,EAAE,UAAU,CAAA;IACtB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;AA0LF,wBAOG"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as w, computed as n, watch as h, createBlock as
|
|
1
|
+
import { defineComponent as w, computed as n, watch as h, createBlock as b, createElementBlock as y, openBlock as m, unref as i, withCtx as p, createVNode as S, createElementVNode as s, toDisplayString as g } from "vue";
|
|
2
2
|
import { ScalarListbox as k, ScalarButton as U, 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: "text-c-1 flex h-auto w-full items-center gap-0.75 rounded-b-lg px-3 py-1.5 text-
|
|
6
|
+
class: "text-c-1 flex h-auto w-full items-center gap-0.75 rounded-b-lg px-3 py-1.5 text-base whitespace-nowrap"
|
|
7
7
|
}, C = { class: "overflow-x-auto" }, j = /* @__PURE__ */ w({
|
|
8
8
|
__name: "ServerSelector",
|
|
9
9
|
props: {
|
|
@@ -12,8 +12,8 @@ const W = { class: "overflow-x-auto" }, z = {
|
|
|
12
12
|
target: {}
|
|
13
13
|
},
|
|
14
14
|
emits: ["updateServer"],
|
|
15
|
-
setup(l, { emit:
|
|
16
|
-
const u =
|
|
15
|
+
setup(l, { emit: x }) {
|
|
16
|
+
const u = x, { 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) => {
|
|
@@ -53,7 +53,7 @@ const W = { class: "overflow-x-auto" }, z = {
|
|
|
53
53
|
var t, e, r;
|
|
54
54
|
return (e = (t = l.server) == null ? void 0 : t.url) != null && e.endsWith("/") ? l.server.url.slice(0, -1) : ((r = l.server) == null ? void 0 : r.url) || "";
|
|
55
55
|
});
|
|
56
|
-
return (t, e) => a.value.length > 1 ? (m(),
|
|
56
|
+
return (t, e) => a.value.length > 1 ? (m(), b(i(k), {
|
|
57
57
|
key: 0,
|
|
58
58
|
modelValue: d.value,
|
|
59
59
|
"onUpdate:modelValue": e[0] || (e[0] = (r) => d.value = r),
|
|
@@ -63,15 +63,15 @@ const W = { class: "overflow-x-auto" }, z = {
|
|
|
63
63
|
target: t.target,
|
|
64
64
|
teleport: `#${t.target}`
|
|
65
65
|
}, {
|
|
66
|
-
default:
|
|
67
|
-
|
|
68
|
-
class: "bg-b-1 text-c-1 h-auto w-full justify-start gap-0.75 overflow-x-auto rounded-t-none rounded-b-lg px-3 py-1.5 text-
|
|
66
|
+
default: p(() => [
|
|
67
|
+
S(i(U), {
|
|
68
|
+
class: "bg-b-1 text-c-1 h-auto w-full justify-start gap-0.75 overflow-x-auto rounded-t-none rounded-b-lg px-3 py-1.5 text-base font-normal whitespace-nowrap -outline-offset-1",
|
|
69
69
|
variant: "ghost"
|
|
70
70
|
}, {
|
|
71
|
-
default:
|
|
71
|
+
default: p(() => [
|
|
72
72
|
e[1] || (e[1] = s("span", { class: "sr-only" }, "Server:", -1)),
|
|
73
|
-
s("span", W,
|
|
74
|
-
|
|
73
|
+
s("span", W, g(v.value), 1),
|
|
74
|
+
S(i(V), {
|
|
75
75
|
class: "text-c-2",
|
|
76
76
|
icon: "ChevronDown",
|
|
77
77
|
size: "sm"
|
|
@@ -81,9 +81,9 @@ const W = { class: "overflow-x-auto" }, z = {
|
|
|
81
81
|
})
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
84
|
-
}, 8, ["modelValue", "options", "target", "teleport"])) : (m(),
|
|
84
|
+
}, 8, ["modelValue", "options", "target", "teleport"])) : (m(), y("div", z, [
|
|
85
85
|
e[2] || (e[2] = s("span", { class: "sr-only" }, "Server:", -1)),
|
|
86
|
-
s("span", C,
|
|
86
|
+
s("span", C, g(v.value), 1)
|
|
87
87
|
]));
|
|
88
88
|
}
|
|
89
89
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerVariablesSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerVariablesSelect.vue"],"names":[],"mappings":"AA+DA,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,CAAC;;;;;;
|
|
1
|
+
{"version":3,"file":"ServerVariablesSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerVariablesSelect.vue"],"names":[],"mappings":"AA+DA,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,CAAC;;;;;;AA4GF,wBAQG"}
|
|
@@ -11,8 +11,8 @@ const _ = {
|
|
|
11
11
|
controls: {}
|
|
12
12
|
},
|
|
13
13
|
emits: ["change"],
|
|
14
|
-
setup(
|
|
15
|
-
const o =
|
|
14
|
+
setup(m, { emit: u }) {
|
|
15
|
+
const o = m, d = u, t = s(
|
|
16
16
|
() => o.enum.map((e) => ({ id: e, label: e }))
|
|
17
17
|
), l = s({
|
|
18
18
|
get: () => t.value.find((e) => e.id === o.value),
|
|
@@ -26,7 +26,7 @@ const _ = {
|
|
|
26
26
|
default: c(() => [
|
|
27
27
|
i(a(B), {
|
|
28
28
|
"aria-controls": e.controls,
|
|
29
|
-
class: "h-8
|
|
29
|
+
class: "h-8 p-0 py-1.5 font-normal",
|
|
30
30
|
variant: "ghost"
|
|
31
31
|
}, {
|
|
32
32
|
default: c(() => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as O, reactive as W, ref as D, computed as L, watch as I, onMounted as K, onBeforeUnmount as q, createElementBlock as g, openBlock as p, createElementVNode as h, createVNode as r, unref as i, withCtx as m, createTextVNode as U, createBlock as k, createCommentVNode as F, toDisplayString as H, Fragment as G, renderList as J } from "vue";
|
|
2
|
-
import { ScalarContextMenu as P, ScalarFloating as Q, ScalarDropdownMenu as X, ScalarDropdownButton as A, ScalarIcon as
|
|
2
|
+
import { ScalarContextMenu as P, ScalarFloating as Q, ScalarDropdownMenu as X, ScalarDropdownButton as A, ScalarIcon as b } from "@scalar/components";
|
|
3
3
|
import { LibraryIcon as Y } from "@scalar/icons/library";
|
|
4
4
|
import { useClipboard as Z } from "@scalar/use-hooks/useClipboard";
|
|
5
5
|
import { useRouter as ee } from "vue-router";
|
|
@@ -8,7 +8,7 @@ import { ROUTES as oe } from "../../constants.js";
|
|
|
8
8
|
import { useActiveEntities as le } from "../../store/active-entities.js";
|
|
9
9
|
import ae from "./TopNavItem.vue.js";
|
|
10
10
|
import { useWorkspace as ne } from "../../store/store.js";
|
|
11
|
-
const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se = { class: "relative flex h-10 flex-1 items-center gap-1.5 overflow-hidden pr-2.5 text-
|
|
11
|
+
const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se = { class: "relative flex h-10 flex-1 items-center gap-1.5 overflow-hidden pr-2.5 text-base font-medium" }, re = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "h-full w-full overflow-hidden"
|
|
14
14
|
}, ge = /* @__PURE__ */ O({
|
|
@@ -64,7 +64,7 @@ const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se
|
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function C() {
|
|
68
68
|
var o;
|
|
69
69
|
const e = (o = t[a.value]) == null ? void 0 : o.path;
|
|
70
70
|
e && c.push(e);
|
|
@@ -78,7 +78,7 @@ const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se
|
|
|
78
78
|
}), a.value = t.length - 1, x();
|
|
79
79
|
}
|
|
80
80
|
function f(e) {
|
|
81
|
-
a.value = e,
|
|
81
|
+
a.value = e, C();
|
|
82
82
|
}
|
|
83
83
|
I(
|
|
84
84
|
() => c.currentRoute.value.path,
|
|
@@ -91,7 +91,7 @@ const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se
|
|
|
91
91
|
t.splice(e, 1), a.value = Math.min(
|
|
92
92
|
a.value,
|
|
93
93
|
t.length - 1
|
|
94
|
-
),
|
|
94
|
+
), C();
|
|
95
95
|
}
|
|
96
96
|
const R = (e) => {
|
|
97
97
|
var l;
|
|
@@ -100,7 +100,7 @@ const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se
|
|
|
100
100
|
const o = new URL(window.location.href);
|
|
101
101
|
o.pathname = t[e].path, z(o.toString());
|
|
102
102
|
}, B = (e) => {
|
|
103
|
-
t.splice(0, e), t.splice(1), a.value = 0,
|
|
103
|
+
t.splice(0, e), t.splice(1), a.value = 0, C();
|
|
104
104
|
}, _ = (e) => {
|
|
105
105
|
if (e) {
|
|
106
106
|
if (e.addTopNav && d(), e.closeTopNav && w(a.value), e.navigateTopNavLeft && f(Math.max(a.value - 1, 0)), e.navigateTopNavRight && f(Math.min(a.value + 1, t.length - 1)), e.jumpToTab) {
|
|
@@ -135,7 +135,7 @@ const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se
|
|
|
135
135
|
key: 0,
|
|
136
136
|
class: "size-3.5 min-w-3.5 stroke-2",
|
|
137
137
|
src: ((l = i(v)) == null ? void 0 : l["x-scalar-icon"]) || "Collection"
|
|
138
|
-
}, null, 8, ["src"])) : (n = t[0]) != null && n.icon ? (p(), k(i(
|
|
138
|
+
}, null, 8, ["src"])) : (n = t[0]) != null && n.icon ? (p(), k(i(b), {
|
|
139
139
|
key: 1,
|
|
140
140
|
icon: (u = t[0]) == null ? void 0 : u.icon,
|
|
141
141
|
size: "xs",
|
|
@@ -154,7 +154,7 @@ const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se
|
|
|
154
154
|
onClick: d
|
|
155
155
|
}, {
|
|
156
156
|
default: m(() => [
|
|
157
|
-
r(i(
|
|
157
|
+
r(i(b), {
|
|
158
158
|
icon: "AddTab",
|
|
159
159
|
size: "sm",
|
|
160
160
|
thickness: "1.5"
|
|
@@ -172,7 +172,7 @@ const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se
|
|
|
172
172
|
onClick: o[0] || (o[0] = (l) => R(y.value))
|
|
173
173
|
}, {
|
|
174
174
|
default: m(() => [
|
|
175
|
-
r(i(
|
|
175
|
+
r(i(b), {
|
|
176
176
|
icon: "Link",
|
|
177
177
|
size: "sm",
|
|
178
178
|
thickness: "1.5"
|
|
@@ -211,7 +211,7 @@ const ie = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, se
|
|
|
211
211
|
type: "button",
|
|
212
212
|
onClick: d
|
|
213
213
|
}, [
|
|
214
|
-
r(i(
|
|
214
|
+
r(i(b), {
|
|
215
215
|
icon: "Add",
|
|
216
216
|
size: "sm",
|
|
217
217
|
thickness: "2.5"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TopNavItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5a1bd09b"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -3,7 +3,7 @@ import { ScalarContextMenu as b, ScalarFloating as v, ScalarDropdownMenu as C, S
|
|
|
3
3
|
import { isMacOS as $ } from "@scalar/helpers/general/is-mac-os";
|
|
4
4
|
import { LibraryIcon as T } from "@scalar/icons/library";
|
|
5
5
|
import f from "../ScalarHotkey.vue.js";
|
|
6
|
-
const w = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, S = { class: "custom-scroll nav-item-copy text-
|
|
6
|
+
const w = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, S = { class: "custom-scroll nav-item-copy text-sm" }, L = /* @__PURE__ */ d({
|
|
7
7
|
__name: "TopNavItem",
|
|
8
8
|
props: {
|
|
9
9
|
hotkey: {},
|
|
@@ -20,7 +20,11 @@ declare function __VLS_template(): {
|
|
|
20
20
|
rootEl: any;
|
|
21
21
|
};
|
|
22
22
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}
|
|
23
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
24
|
+
"update:modelValue": (v: boolean) => any;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: (v: boolean) => any;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
28
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
29
|
export default _default;
|
|
26
30
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AA0GA,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAChC,CAAC;AA+BF,iBAAS,cAAc;WAkLT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAQnB,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,86 +1,92 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarIcon as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as v, useId as x, ref as C, onMounted as k, createBlock as p, openBlock as s, unref as t, normalizeClass as n, withCtx as i, createElementVNode as l, createVNode as m, createElementBlock as u, createCommentVNode as r, renderSlot as d, createTextVNode as V, toDisplayString as b, mergeProps as _ } from "vue";
|
|
2
|
+
import { Disclosure as O, DisclosureButton as w, DisclosurePanel as B } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIcon as $ } from "@scalar/components";
|
|
4
|
+
const D = ["aria-labelledby"], N = { class: "text-c-1 flex flex-1 items-center gap-1.5" }, I = ["id"], S = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "sr-only"
|
|
7
|
-
},
|
|
7
|
+
}, z = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "bg-b-2 text-c-2 inline-flex h-5 w-5 items-center justify-center rounded-full border text-xs font-semibold"
|
|
10
|
-
},
|
|
10
|
+
}, E = { class: "sr-only" }, P = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "ui-not-open:invisible flex items-center gap-2 pr-2"
|
|
13
|
-
},
|
|
13
|
+
}, T = /* @__PURE__ */ v({
|
|
14
14
|
__name: "ViewLayoutCollapse",
|
|
15
15
|
props: {
|
|
16
16
|
defaultOpen: { type: Boolean, default: !0 },
|
|
17
17
|
itemCount: { default: 0 },
|
|
18
18
|
layout: { default: "client" }
|
|
19
19
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
emits: ["update:modelValue"],
|
|
21
|
+
setup(y, { emit: h }) {
|
|
22
|
+
const c = h, f = x(), a = C(y.defaultOpen), g = () => {
|
|
23
|
+
a.value = !a.value, c("update:modelValue", a.value);
|
|
24
|
+
};
|
|
25
|
+
return k(() => {
|
|
26
|
+
c("update:modelValue", a.value);
|
|
27
|
+
}), (e, j) => (s(), p(t(O), {
|
|
23
28
|
as: "div",
|
|
24
|
-
class:
|
|
29
|
+
class: n(["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
30
|
defaultOpen: e.defaultOpen,
|
|
26
|
-
static: e.layout === "reference" ? !0 : void 0
|
|
31
|
+
static: e.layout === "reference" ? !0 : void 0,
|
|
32
|
+
onClick: g
|
|
27
33
|
}, {
|
|
28
|
-
default:
|
|
34
|
+
default: i(({ open: o }) => [
|
|
29
35
|
l("section", {
|
|
30
|
-
"aria-labelledby": t(
|
|
36
|
+
"aria-labelledby": t(f),
|
|
31
37
|
class: "contents"
|
|
32
38
|
}, [
|
|
33
39
|
l("div", {
|
|
34
|
-
class:
|
|
40
|
+
class: n(["bg-b-2 flex items-center", e.layout === "reference" && "rounded-t-lg border border-b-0"])
|
|
35
41
|
}, [
|
|
36
|
-
|
|
37
|
-
class:
|
|
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-
|
|
42
|
+
m(t(w), {
|
|
43
|
+
class: n([
|
|
44
|
+
"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-base font-medium outline-none md:px-1.5 xl:pr-0.5 xl:pl-2",
|
|
39
45
|
{ "!pl-3": e.layout === "reference" }
|
|
40
46
|
]),
|
|
41
47
|
disabled: e.layout === "reference"
|
|
42
48
|
}, {
|
|
43
|
-
default:
|
|
44
|
-
e.layout !== "reference" ? (s(),
|
|
49
|
+
default: i(() => [
|
|
50
|
+
e.layout !== "reference" ? (s(), p(t($), {
|
|
45
51
|
key: 0,
|
|
46
|
-
class:
|
|
52
|
+
class: n([
|
|
47
53
|
"text-c-3 group-hover:text-c-1 ui-open:rotate-90 ui-not-open:rotate-0 rounded-px outline-offset-2 group-focus-visible:outline"
|
|
48
54
|
]),
|
|
49
55
|
icon: "ChevronRight",
|
|
50
56
|
size: "md"
|
|
51
|
-
})) :
|
|
52
|
-
l("h2",
|
|
57
|
+
})) : r("", !0),
|
|
58
|
+
l("h2", N, [
|
|
53
59
|
l("span", {
|
|
54
|
-
id: t(
|
|
60
|
+
id: t(f),
|
|
55
61
|
class: "contents"
|
|
56
62
|
}, [
|
|
57
63
|
d(e.$slots, "title", { open: o }),
|
|
58
|
-
o ?
|
|
59
|
-
], 8,
|
|
60
|
-
!o && e.itemCount ? (s(),
|
|
61
|
-
|
|
62
|
-
l("span",
|
|
63
|
-
])) :
|
|
64
|
+
o ? r("", !0) : (s(), u("span", S, " (Collapsed) "))
|
|
65
|
+
], 8, I),
|
|
66
|
+
!o && e.itemCount ? (s(), u("span", z, [
|
|
67
|
+
V(b(e.itemCount) + " ", 1),
|
|
68
|
+
l("span", E, "Item" + b(e.itemCount === 1 ? "" : "s"), 1)
|
|
69
|
+
])) : r("", !0)
|
|
64
70
|
])
|
|
65
71
|
]),
|
|
66
72
|
_: 2
|
|
67
73
|
}, 1032, ["class", "disabled"]),
|
|
68
|
-
e.$slots.actions ? (s(),
|
|
74
|
+
e.$slots.actions ? (s(), u("div", P, [
|
|
69
75
|
d(e.$slots, "actions", { open: o })
|
|
70
|
-
])) :
|
|
76
|
+
])) : r("", !0)
|
|
71
77
|
], 2),
|
|
72
|
-
|
|
73
|
-
default:
|
|
78
|
+
m(t(B), _(e.$attrs, { class: "diclosure-panel h-full max-h-fit rounded-b" }), {
|
|
79
|
+
default: i(() => [
|
|
74
80
|
d(e.$slots, "default", { open: o })
|
|
75
81
|
]),
|
|
76
82
|
_: 2
|
|
77
83
|
}, 1040)
|
|
78
|
-
], 8,
|
|
84
|
+
], 8, D)
|
|
79
85
|
]),
|
|
80
86
|
_: 3
|
|
81
87
|
}, 8, ["class", "defaultOpen", "static"]));
|
|
82
88
|
}
|
|
83
89
|
});
|
|
84
90
|
export {
|
|
85
|
-
|
|
91
|
+
T as default
|
|
86
92
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as n, createElementBlock as t, openBlock as o, normalizeProps as l, guardReactiveProps as i, unref as
|
|
1
|
+
import { defineComponent as n, createElementBlock as t, openBlock as o, normalizeProps as l, guardReactiveProps as i, unref as c, createCommentVNode as m, renderSlot as r } from "vue";
|
|
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 -mb-1/2 sticky top-0 z-1 flex min-h-11 items-center border-b px-2.5 text-
|
|
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-base font-medium xl:rounded-none"
|
|
6
6
|
}, b = /* @__PURE__ */ n({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "ViewLayoutSection",
|
|
9
9
|
setup(d) {
|
|
10
10
|
const { cx: s } = a();
|
|
11
11
|
return (e, f) => (o(), t("section", l(i(
|
|
12
|
-
|
|
12
|
+
c(s)("xl:custom-scroll bg-b-1 flex flex-1 flex-col xl:h-full xl:min-w-0")
|
|
13
13
|
)), [
|
|
14
14
|
e.$slots.title ? (o(), t("div", u, [
|
|
15
15
|
r(e.$slots, "title")
|
|
16
|
-
])) :
|
|
16
|
+
])) : m("", !0),
|
|
17
17
|
r(e.$slots, "default")
|
|
18
18
|
], 16));
|
|
19
19
|
}
|
|
@@ -22,29 +22,31 @@ export declare const useClientConfig: () => Ref<{
|
|
|
22
22
|
proxyUrl?: string | undefined;
|
|
23
23
|
searchHotKey?: "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
|
|
24
24
|
servers?: any[] | undefined;
|
|
25
|
-
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "
|
|
25
|
+
_integration?: "go" | "rust" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "svelte" | "vue" | null | undefined;
|
|
26
26
|
onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
27
27
|
plugins?: ((...args: unknown[]) => {
|
|
28
28
|
name: string;
|
|
29
|
-
views
|
|
30
|
-
"request.section"
|
|
29
|
+
views?: {
|
|
30
|
+
"request.section"?: {
|
|
31
31
|
title?: string | undefined;
|
|
32
32
|
component?: unknown;
|
|
33
33
|
props?: Record<string, any> | undefined;
|
|
34
|
-
}[];
|
|
35
|
-
"response.section"
|
|
34
|
+
}[] | undefined;
|
|
35
|
+
"response.section"?: {
|
|
36
36
|
title?: string | undefined;
|
|
37
37
|
component?: unknown;
|
|
38
38
|
props?: Record<string, any> | undefined;
|
|
39
|
-
}[];
|
|
40
|
-
};
|
|
41
|
-
hooks
|
|
42
|
-
onBeforeRequest
|
|
43
|
-
|
|
39
|
+
}[] | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
hooks?: {
|
|
42
|
+
onBeforeRequest?: ((args_0: {
|
|
43
|
+
request: Request;
|
|
44
|
+
}, ...args: unknown[]) => void | Promise<void>) | undefined;
|
|
45
|
+
onResponseReceived?: ((args_0: {
|
|
44
46
|
response: Response;
|
|
45
47
|
operation: Record<string, any>;
|
|
46
|
-
}, ...args: unknown[]) => void | Promise<void
|
|
47
|
-
};
|
|
48
|
+
}, ...args: unknown[]) => void | Promise<void>) | undefined;
|
|
49
|
+
} | undefined;
|
|
48
50
|
})[] | undefined;
|
|
49
51
|
}, {
|
|
50
52
|
hideClientButton: boolean;
|
|
@@ -66,29 +68,31 @@ export declare const useClientConfig: () => Ref<{
|
|
|
66
68
|
proxyUrl?: string | undefined;
|
|
67
69
|
searchHotKey?: "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
|
|
68
70
|
servers?: any[] | undefined;
|
|
69
|
-
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "
|
|
71
|
+
_integration?: "go" | "rust" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "svelte" | "vue" | null | undefined;
|
|
70
72
|
onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
71
73
|
plugins?: ((...args: unknown[]) => {
|
|
72
74
|
name: string;
|
|
73
|
-
views
|
|
74
|
-
"request.section"
|
|
75
|
+
views?: {
|
|
76
|
+
"request.section"?: {
|
|
75
77
|
title?: string | undefined;
|
|
76
78
|
component?: unknown;
|
|
77
79
|
props?: Record<string, any> | undefined;
|
|
78
|
-
}[];
|
|
79
|
-
"response.section"
|
|
80
|
+
}[] | undefined;
|
|
81
|
+
"response.section"?: {
|
|
80
82
|
title?: string | undefined;
|
|
81
83
|
component?: unknown;
|
|
82
84
|
props?: Record<string, any> | undefined;
|
|
83
|
-
}[];
|
|
84
|
-
};
|
|
85
|
-
hooks
|
|
86
|
-
onBeforeRequest
|
|
87
|
-
|
|
85
|
+
}[] | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
hooks?: {
|
|
88
|
+
onBeforeRequest?: ((args_0: {
|
|
89
|
+
request: Request;
|
|
90
|
+
}, ...args: unknown[]) => void | Promise<void>) | undefined;
|
|
91
|
+
onResponseReceived?: ((args_0: {
|
|
88
92
|
response: Response;
|
|
89
93
|
operation: Record<string, any>;
|
|
90
|
-
}, ...args: unknown[]) => void | Promise<void
|
|
91
|
-
};
|
|
94
|
+
}, ...args: unknown[]) => void | Promise<void>) | undefined;
|
|
95
|
+
} | undefined;
|
|
92
96
|
})[] | undefined;
|
|
93
97
|
} | {
|
|
94
98
|
hideClientButton: boolean;
|
|
@@ -110,29 +114,31 @@ export declare const useClientConfig: () => Ref<{
|
|
|
110
114
|
proxyUrl?: string | undefined;
|
|
111
115
|
searchHotKey?: "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
|
|
112
116
|
servers?: any[] | undefined;
|
|
113
|
-
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "
|
|
117
|
+
_integration?: "go" | "rust" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "svelte" | "vue" | null | undefined;
|
|
114
118
|
onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
115
119
|
plugins?: ((...args: unknown[]) => {
|
|
116
120
|
name: string;
|
|
117
|
-
views
|
|
118
|
-
"request.section"
|
|
121
|
+
views?: {
|
|
122
|
+
"request.section"?: {
|
|
119
123
|
title?: string | undefined;
|
|
120
124
|
component?: unknown;
|
|
121
125
|
props?: Record<string, any> | undefined;
|
|
122
|
-
}[];
|
|
123
|
-
"response.section"
|
|
126
|
+
}[] | undefined;
|
|
127
|
+
"response.section"?: {
|
|
124
128
|
title?: string | undefined;
|
|
125
129
|
component?: unknown;
|
|
126
130
|
props?: Record<string, any> | undefined;
|
|
127
|
-
}[];
|
|
128
|
-
};
|
|
129
|
-
hooks
|
|
130
|
-
onBeforeRequest
|
|
131
|
-
|
|
131
|
+
}[] | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
hooks?: {
|
|
134
|
+
onBeforeRequest?: ((args_0: {
|
|
135
|
+
request: Request;
|
|
136
|
+
}, ...args: unknown[]) => void | Promise<void>) | undefined;
|
|
137
|
+
onResponseReceived?: ((args_0: {
|
|
132
138
|
response: Response;
|
|
133
139
|
operation: Record<string, any>;
|
|
134
|
-
}, ...args: unknown[]) => void | Promise<void
|
|
135
|
-
};
|
|
140
|
+
}, ...args: unknown[]) => void | Promise<void>) | undefined;
|
|
141
|
+
} | undefined;
|
|
136
142
|
})[] | undefined;
|
|
137
143
|
}>;
|
|
138
144
|
//# sourceMappingURL=useClientConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,eAAO,MAAM,2BAA2B,EAAe,YAAY,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAA;AAEhG,0DAA0D;AAC1D,eAAO,MAAM,eAAe;;;;;;;+
|
|
1
|
+
{"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,eAAO,MAAM,2BAA2B,EAAe,YAAY,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAA;AAEhG,0DAA0D;AAC1D,eAAO,MAAM,eAAe;;;;;;;+CACiya,GAAG;;;;;mDAAkO,GAAG;;;;;;;;;sCAAuuB,GAAI;gBAAuD,GAAG;;aAAyD,CAAC;6BAAiC,CAAC;qBAAyB,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;8BAA8F,CAAC;qBAAyB,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;;aAAoG,CAAC;2BAA+B,CAAC;;eAA8D,GAAI;8BAAqF,CAAC;;;eAAgH,GAAI;;;;;;;;;;+CAA/yD,GAAG;;;aAAsH,CAAC;WAAiC,CAAC;eAAqC,CAAC,mCAAmC,GAAG;YAAyE,CAAC;;;;;;;;sCAA6pB,GAAI;gBAAuD,GAAG;;aAAyD,CAAC;6BAAiC,CAAC;qBAAyB,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;8BAA8F,CAAC;qBAAyB,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;;aAAoG,CAAC;2BAA+B,CAAC;;eAA8D,GAAI;8BAAqF,CAAC;;;eAAgH,GAAI;;;;;;;;;;+CAA/yD,GAAG;;;;;mDAAkO,GAAG;;;;;;;;;sCAAuuB,GAAI;gBAAuD,GAAG;;aAAyD,CAAC;6BAAiC,CAAC;qBAAyB,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;8BAA8F,CAAC;qBAAyB,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;;aAAoG,CAAC;2BAA+B,CAAC;;eAA8D,GAAI;8BAAqF,CAAC;;;eAAgH,GAAI;;;EADv/d,CAAA"}
|