@scalar/api-reference 1.25.70 → 1.25.72
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 +42 -0
- package/dist/browser/standalone.js +10875 -10813
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +56 -57
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +3 -3
- package/dist/components/ApiReferenceLayout.vue2.js +160 -143
- package/dist/components/Content/Authentication/Authentication.vue.d.ts +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
- package/dist/components/Content/Authentication/Authentication.vue2.js +20 -20
- package/dist/components/Content/Content.vue.d.ts +1 -1
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +58 -52
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +2 -2
- package/dist/components/Content/Models/Models.vue2.js +42 -36
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +34 -28
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +22 -0
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/embeds/OpenApiDocument/types.d.ts +1 -1
- package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +4 -4
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +124 -120
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +73 -63
- package/dist/helpers/getExampleCode.d.ts +2 -2
- package/dist/helpers/getExampleCode.d.ts.map +1 -1
- package/dist/helpers/getExampleCode.js +12 -11
- package/dist/helpers/parse.d.ts +2 -2
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +3 -3
- package/dist/hooks/useDeprecationWarnings.d.ts.map +1 -1
- package/dist/hooks/useDeprecationWarnings.js +12 -15
- package/dist/hooks/useReactiveSpec.d.ts +24 -2
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useReactiveSpec.js +4 -4
- package/dist/index.js +1 -1
- package/dist/legacy/components/SecurityScheme.vue.d.ts +1 -1
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecurityScheme.vue.js +2 -2
- package/dist/legacy/components/SecurityScheme.vue2.js +13 -13
- package/dist/legacy/helpers/getUrlFromServerState.d.ts +2 -1
- package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -1
- package/dist/legacy/helpers/getUrlFromServerState.js +14 -14
- package/dist/legacy/stores/useOpenApiStore.d.ts +22 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +11 -11
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { ScalarMarkdown as C } from "@scalar/components";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
1
|
+
import { defineComponent as s, openBlock as l, createBlock as m, unref as r, withCtx as t, createVNode as e, createTextVNode as d, createCommentVNode as c, createElementVNode as n, normalizeClass as _, toDisplayString as h } from "vue";
|
|
2
|
+
import S from "../../../components/OperationPath.vue.js";
|
|
3
|
+
import { ScalarMarkdown as C, ScalarErrorBoundary as u } from "@scalar/components";
|
|
4
|
+
import v from "../components/OperationParameters.vue.js";
|
|
5
|
+
import k from "../components/OperationResponses.vue.js";
|
|
6
|
+
import y from "../../../components/Section/Section.vue.js";
|
|
7
|
+
import B from "../../../components/Section/SectionContent.vue.js";
|
|
8
|
+
import g from "../../../components/Section/SectionColumns.vue.js";
|
|
9
|
+
import f from "../../../components/Section/SectionColumn.vue.js";
|
|
10
|
+
import E from "../../../components/Badge/Badge.vue.js";
|
|
11
11
|
import N from "../../../components/Section/SectionHeader.vue.js";
|
|
12
12
|
import V from "../../../components/Anchor/Anchor.vue.js";
|
|
13
13
|
import b from "../../ExampleRequest/ExampleRequest.vue.js";
|
|
14
14
|
import w from "../../TestRequestButton/TestRequestButton.vue.js";
|
|
15
|
-
import
|
|
16
|
-
const
|
|
15
|
+
import R from "../../ExampleResponses/ExampleResponses.vue.js";
|
|
16
|
+
const q = { class: "operation-details" }, D = { class: "examples" }, U = /* @__PURE__ */ s({
|
|
17
17
|
__name: "ModernLayout",
|
|
18
18
|
props: {
|
|
19
19
|
id: {},
|
|
20
20
|
operation: {}
|
|
21
21
|
},
|
|
22
|
-
setup(
|
|
23
|
-
return (
|
|
24
|
-
id:
|
|
25
|
-
label:
|
|
22
|
+
setup(M) {
|
|
23
|
+
return (o, i) => (l(), m(r(y), {
|
|
24
|
+
id: o.id,
|
|
25
|
+
label: o.operation.name
|
|
26
26
|
}, {
|
|
27
|
-
default:
|
|
28
|
-
|
|
29
|
-
default:
|
|
30
|
-
|
|
31
|
-
default:
|
|
32
|
-
|
|
33
|
-
default:
|
|
27
|
+
default: t(() => [
|
|
28
|
+
e(r(B), null, {
|
|
29
|
+
default: t(() => [
|
|
30
|
+
e(r(g), null, {
|
|
31
|
+
default: t(() => [
|
|
32
|
+
e(r(f), null, {
|
|
33
|
+
default: t(() => {
|
|
34
34
|
var a, p;
|
|
35
35
|
return [
|
|
36
|
-
(a =
|
|
37
|
-
default:
|
|
36
|
+
(a = o.operation.information) != null && a.deprecated ? (l(), m(r(E), { key: 0 }, {
|
|
37
|
+
default: t(() => i[0] || (i[0] = [
|
|
38
38
|
d(" Deprecated ")
|
|
39
39
|
])),
|
|
40
40
|
_: 1
|
|
41
|
-
})) :
|
|
41
|
+
})) : c("", !0),
|
|
42
42
|
n("div", {
|
|
43
|
-
class:
|
|
43
|
+
class: _((p = o.operation.information) != null && p.deprecated ? "deprecated" : "")
|
|
44
44
|
}, [
|
|
45
|
-
|
|
46
|
-
default:
|
|
47
|
-
|
|
48
|
-
id:
|
|
45
|
+
e(r(N), { level: 3 }, {
|
|
46
|
+
default: t(() => [
|
|
47
|
+
e(r(V), {
|
|
48
|
+
id: o.id ?? ""
|
|
49
49
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
d(h(
|
|
50
|
+
default: t(() => [
|
|
51
|
+
d(h(o.operation.name), 1)
|
|
52
52
|
]),
|
|
53
53
|
_: 1
|
|
54
54
|
}, 8, ["id"])
|
|
@@ -56,44 +56,54 @@ const R = { class: "operation-details" }, q = { class: "examples" }, Q = /* @__P
|
|
|
56
56
|
_: 1
|
|
57
57
|
})
|
|
58
58
|
], 2),
|
|
59
|
-
n("div",
|
|
60
|
-
|
|
61
|
-
value:
|
|
59
|
+
n("div", q, [
|
|
60
|
+
e(r(C), {
|
|
61
|
+
value: o.operation.description,
|
|
62
62
|
withImages: ""
|
|
63
63
|
}, null, 8, ["value"]),
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
e(v, { operation: o.operation }, null, 8, ["operation"]),
|
|
65
|
+
e(k, { operation: o.operation }, null, 8, ["operation"])
|
|
66
66
|
])
|
|
67
67
|
];
|
|
68
68
|
}),
|
|
69
69
|
_: 1
|
|
70
70
|
}),
|
|
71
|
-
|
|
72
|
-
default:
|
|
73
|
-
n("div",
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
71
|
+
e(r(f), null, {
|
|
72
|
+
default: t(() => [
|
|
73
|
+
n("div", D, [
|
|
74
|
+
e(r(u), null, {
|
|
75
|
+
default: t(() => [
|
|
76
|
+
e(r(b), {
|
|
77
|
+
fallback: "",
|
|
78
|
+
operation: o.operation
|
|
79
|
+
}, {
|
|
80
|
+
header: t(() => {
|
|
81
|
+
var a;
|
|
82
|
+
return [
|
|
83
|
+
e(S, {
|
|
84
|
+
class: "example-path",
|
|
85
|
+
deprecated: (a = o.operation.information) == null ? void 0 : a.deprecated,
|
|
86
|
+
path: o.operation.path
|
|
87
|
+
}, null, 8, ["deprecated", "path"])
|
|
88
|
+
];
|
|
89
|
+
}),
|
|
90
|
+
footer: t(() => [
|
|
91
|
+
e(r(w), { operation: o.operation }, null, 8, ["operation"])
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
}, 8, ["operation"])
|
|
90
95
|
]),
|
|
91
96
|
_: 1
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
+
}),
|
|
98
|
+
e(r(u), null, {
|
|
99
|
+
default: t(() => [
|
|
100
|
+
e(r(R), {
|
|
101
|
+
operation: o.operation,
|
|
102
|
+
style: { "margin-top": "12px" }
|
|
103
|
+
}, null, 8, ["operation"])
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
})
|
|
97
107
|
])
|
|
98
108
|
]),
|
|
99
109
|
_: 1
|
|
@@ -110,5 +120,5 @@ const R = { class: "operation-details" }, q = { class: "examples" }, Q = /* @__P
|
|
|
110
120
|
}
|
|
111
121
|
});
|
|
112
122
|
export {
|
|
113
|
-
|
|
123
|
+
U as default
|
|
114
124
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type Request, type ClientId as SnippetzClientId, type TargetId as SnippetzTargetId } from '@scalar/snippetz';
|
|
2
2
|
import { type ClientId as HttpSnippetLiteClientId, type TargetId as HttpSnippetLiteTargetId } from 'httpsnippet-lite';
|
|
3
3
|
export type TargetId = HttpSnippetLiteTargetId | SnippetzTargetId;
|
|
4
|
-
export type ClientId = HttpSnippetLiteClientId | SnippetzClientId
|
|
4
|
+
export type ClientId<T extends SnippetzTargetId> = HttpSnippetLiteClientId | SnippetzClientId<T>;
|
|
5
5
|
/**
|
|
6
6
|
* Returns a code example for given HAR request
|
|
7
7
|
*/
|
|
8
|
-
export declare function getExampleCode(request: Request, target: TargetId, client: ClientId): Promise<string>;
|
|
8
|
+
export declare function getExampleCode<T extends SnippetzTargetId>(request: Request, target: TargetId, client: ClientId<T>): Promise<string>;
|
|
9
9
|
//# sourceMappingURL=getExampleCode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getExampleCode.d.ts","sourceRoot":"","sources":["../../src/helpers/getExampleCode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,QAAQ,IAAI,gBAAgB,EACjC,KAAK,QAAQ,IAAI,gBAAgB,EAElC,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAEL,KAAK,QAAQ,IAAI,uBAAuB,EACxC,KAAK,QAAQ,IAAI,uBAAuB,EACzC,MAAM,kBAAkB,CAAA;AAEzB,MAAM,MAAM,QAAQ,GAAG,uBAAuB,GAAG,gBAAgB,CAAA;AACjE,MAAM,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"getExampleCode.d.ts","sourceRoot":"","sources":["../../src/helpers/getExampleCode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,QAAQ,IAAI,gBAAgB,EACjC,KAAK,QAAQ,IAAI,gBAAgB,EAElC,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAEL,KAAK,QAAQ,IAAI,uBAAuB,EACxC,KAAK,QAAQ,IAAI,uBAAuB,EACzC,MAAM,kBAAkB,CAAA;AAEzB,MAAM,MAAM,QAAQ,GAAG,uBAAuB,GAAG,gBAAgB,CAAA;AACjE,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,gBAAgB,IAC3C,uBAAuB,GACvB,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAEvB;;GAEG;AACH,wBAAsB,cAAc,CAAC,CAAC,SAAS,gBAAgB,EAC7D,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,mBA0CpB"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { snippetz as
|
|
1
|
+
import { snippetz as o } from "@scalar/snippetz";
|
|
2
2
|
import { HTTPSnippet as s } from "httpsnippet-lite";
|
|
3
|
-
async function f(
|
|
4
|
-
const
|
|
5
|
-
if (
|
|
6
|
-
return
|
|
7
|
-
|
|
3
|
+
async function f(t, e, p) {
|
|
4
|
+
const r = e;
|
|
5
|
+
if (o().hasPlugin(r, p))
|
|
6
|
+
return o().print(
|
|
7
|
+
r,
|
|
8
|
+
// @ts-expect-error Typecasting fails, but shouldn’t be necessary soon anway.
|
|
8
9
|
p,
|
|
9
|
-
|
|
10
|
+
t
|
|
10
11
|
);
|
|
11
|
-
if (
|
|
12
|
-
return
|
|
12
|
+
if (t.url.startsWith("__"))
|
|
13
|
+
return t.url;
|
|
13
14
|
try {
|
|
14
|
-
const n =
|
|
15
|
+
const n = e == null ? void 0 : e.replace(
|
|
15
16
|
"js",
|
|
16
17
|
"javascript"
|
|
17
|
-
), c = p, i = await new s(
|
|
18
|
+
), c = p, i = await new s(t).convert(
|
|
18
19
|
n,
|
|
19
20
|
c
|
|
20
21
|
);
|
package/dist/helpers/parse.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Spec } from '@scalar/types/legacy';
|
|
2
|
-
export declare const parse: (specification: any, {
|
|
3
|
-
|
|
2
|
+
export declare const parse: (specification: any, { proxyUrl, }?: {
|
|
3
|
+
proxyUrl?: string;
|
|
4
4
|
}) => Promise<Spec>;
|
|
5
5
|
//# sourceMappingURL=parse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/helpers/parse.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAMhD,eAAO,MAAM,KAAK,kBACD,GAAG,
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/helpers/parse.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAMhD,eAAO,MAAM,KAAK,kBACD,GAAG,kBAGf;IACD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,KACA,OAAO,CAAC,IAAI,CA0Dd,CAAA"}
|
package/dist/helpers/parse.js
CHANGED
|
@@ -4,8 +4,8 @@ import { fetchUrls as q } from "@scalar/openapi-parser/plugins/fetch-urls";
|
|
|
4
4
|
import { createEmptySpecification as m } from "./createEmptySpecification.js";
|
|
5
5
|
import { normalizeRequestMethod as E } from "../legacy/helpers/normalizeRequestMethod.js";
|
|
6
6
|
import { validRequestMethods as A } from "../legacy/fixtures/httpRequestMethods.js";
|
|
7
|
-
const
|
|
8
|
-
|
|
7
|
+
const D = (p, {
|
|
8
|
+
proxyUrl: e
|
|
9
9
|
} = {}) => new Promise(async (a, h) => {
|
|
10
10
|
var s;
|
|
11
11
|
try {
|
|
@@ -113,5 +113,5 @@ const z = (p, {
|
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
115
|
export {
|
|
116
|
-
|
|
116
|
+
D as parse
|
|
117
117
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDeprecationWarnings.d.ts","sourceRoot":"","sources":["../../src/hooks/useDeprecationWarnings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAOlE;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"useDeprecationWarnings.d.ts","sourceRoot":"","sources":["../../src/hooks/useDeprecationWarnings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAOlE;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,sBAAsB,QAgC3E"}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import { watch as
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
|
|
1
|
+
import { watch as t } from "vue";
|
|
2
|
+
const o = "https://api.scalar.com/request-proxy", r = "https://proxy.scalar.com";
|
|
3
|
+
function p(e) {
|
|
4
|
+
t(
|
|
5
5
|
() => e,
|
|
6
6
|
() => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
e.proxy && console.warn(
|
|
8
|
+
"[DEPRECATED] You’re using the deprecated 'proxy' attribute, rename it to 'proxyUrl' or update the package."
|
|
9
|
+
), (e.proxyUrl || e.proxy) === o && (console.warn(
|
|
10
|
+
`[DEPRECATED] Warning: configuration.proxyUrl points to our old proxy (${o}).`
|
|
10
11
|
), console.warn(
|
|
11
|
-
`[DEPRECATED] We are overwriting the value and use the new proxy URL (${
|
|
12
|
-
), e.proxy =
|
|
13
|
-
`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${
|
|
14
|
-
)) : (r = e.proxy) != null && r.length && e.proxy !== o && e.proxy !== a && (console.warn(
|
|
15
|
-
`[DEPRECATED] Warning: configuration.proxy points to a custom proxy (${e == null ? void 0 : e.proxy}).`
|
|
16
|
-
), console.warn(
|
|
17
|
-
"[DEPRECATED] Action Required: You need to use our new proxy (written in Go). Read more: https://github.com/scalar/scalar/tree/main/examples/proxy-server"
|
|
12
|
+
`[DEPRECATED] We are overwriting the value and use the new proxy URL (${r}) instead.`
|
|
13
|
+
), delete e.proxy, e.proxyUrl = r, console.warn(
|
|
14
|
+
`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${r}). Read more: https://github.com/scalar/scalar`
|
|
18
15
|
));
|
|
19
16
|
},
|
|
20
17
|
{
|
|
@@ -23,5 +20,5 @@ function n(e) {
|
|
|
23
20
|
);
|
|
24
21
|
}
|
|
25
22
|
export {
|
|
26
|
-
|
|
23
|
+
p as useDeprecationWarnings
|
|
27
24
|
};
|
|
@@ -3,9 +3,9 @@ import { type MaybeRefOrGetter } from 'vue';
|
|
|
3
3
|
/**
|
|
4
4
|
* Keep the raw spec content in a ref and update it when the configuration changes.
|
|
5
5
|
*/
|
|
6
|
-
export declare function useReactiveSpec({ specConfig,
|
|
6
|
+
export declare function useReactiveSpec({ specConfig, proxyUrl, }: {
|
|
7
7
|
specConfig?: MaybeRefOrGetter<SpecConfiguration>;
|
|
8
|
-
|
|
8
|
+
proxyUrl?: MaybeRefOrGetter<string>;
|
|
9
9
|
}): {
|
|
10
10
|
rawSpec: import("vue").Ref<string, string>;
|
|
11
11
|
parsedSpec: {
|
|
@@ -57,6 +57,17 @@ export declare function useReactiveSpec({ specConfig, proxy, }: {
|
|
|
57
57
|
summary?: string | undefined;
|
|
58
58
|
tags?: string[] | undefined;
|
|
59
59
|
deprecated?: boolean | undefined;
|
|
60
|
+
servers?: ({
|
|
61
|
+
url?: string | undefined;
|
|
62
|
+
description?: string | undefined;
|
|
63
|
+
variables?: {
|
|
64
|
+
[variable: string]: import("@scalar/openapi-types").OpenAPIV3.ServerVariableObject;
|
|
65
|
+
} | undefined;
|
|
66
|
+
} | {
|
|
67
|
+
url?: string | undefined;
|
|
68
|
+
description?: string | undefined;
|
|
69
|
+
variables?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject> | undefined;
|
|
70
|
+
})[] | undefined;
|
|
60
71
|
'x-custom-examples'?: {
|
|
61
72
|
lang: string;
|
|
62
73
|
label: string;
|
|
@@ -73,6 +84,17 @@ export declare function useReactiveSpec({ specConfig, proxy, }: {
|
|
|
73
84
|
source: string;
|
|
74
85
|
}[] | undefined;
|
|
75
86
|
} | undefined;
|
|
87
|
+
servers?: ({
|
|
88
|
+
url?: string | undefined;
|
|
89
|
+
description?: string | undefined;
|
|
90
|
+
variables?: {
|
|
91
|
+
[variable: string]: import("@scalar/openapi-types").OpenAPIV3.ServerVariableObject;
|
|
92
|
+
} | undefined;
|
|
93
|
+
} | {
|
|
94
|
+
url?: string | undefined;
|
|
95
|
+
description?: string | undefined;
|
|
96
|
+
variables?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject> | undefined;
|
|
97
|
+
})[] | undefined;
|
|
76
98
|
pathParameters?: {
|
|
77
99
|
name: string;
|
|
78
100
|
in?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useReactiveSpec.d.ts","sourceRoot":"","sources":["../../src/hooks/useReactiveSpec.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAE,KAAK,gBAAgB,EAAiC,MAAM,KAAK,CAAA;AAyD1E;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"useReactiveSpec.d.ts","sourceRoot":"","sources":["../../src/hooks/useReactiveSpec.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAE,KAAK,gBAAgB,EAAiC,MAAM,KAAK,CAAA;AAyD1E;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,QAAQ,GACT,EAAE;IACD,UAAU,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAA;IAChD,QAAQ,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwDA"}
|
|
@@ -18,14 +18,14 @@ const y = async ({ url: e, content: r }, n) => {
|
|
|
18
18
|
if (typeof t == "object")
|
|
19
19
|
return h(t);
|
|
20
20
|
};
|
|
21
|
-
function
|
|
21
|
+
function C({
|
|
22
22
|
specConfig: e,
|
|
23
|
-
|
|
23
|
+
proxyUrl: r
|
|
24
24
|
}) {
|
|
25
25
|
const n = u(""), t = v(l()), s = u(null);
|
|
26
26
|
function c(o) {
|
|
27
27
|
return o ? g(o, {
|
|
28
|
-
|
|
28
|
+
proxyUrl: r ? a(r) : void 0
|
|
29
29
|
}).then((i) => {
|
|
30
30
|
s.value = null, Object.assign(t, {
|
|
31
31
|
servers: [],
|
|
@@ -54,5 +54,5 @@ function U({
|
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
export {
|
|
57
|
-
|
|
57
|
+
C as useReactiveSpec
|
|
58
58
|
};
|