@scalar/api-reference 1.25.106 → 1.25.109
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 +59 -0
- package/dist/browser/standalone.js +11355 -11274
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +0 -1
- package/dist/components/Content/Introduction/Description.vue.js +1 -1
- package/dist/components/Content/Introduction/Description.vue2.js +15 -13
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue2.js +12 -12
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +90 -90
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +45 -47
- package/dist/components/Content/Tag/TagList.vue.d.ts +2 -2
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +40 -38
- package/dist/features/ApiClientModal/useApiClient.d.ts +198 -166
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +64 -56
- 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 +103 -102
- package/dist/features/TestRequestButton/TestRequestButton.vue.d.ts +2 -2
- package/dist/features/TestRequestButton/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/TestRequestButton/TestRequestButton.vue.js +2 -2
- package/dist/features/TestRequestButton/TestRequestButton.vue2.js +34 -38
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/operation.d.ts +14 -0
- package/dist/helpers/operation.d.ts.map +1 -0
- package/dist/helpers/operation.js +18 -0
- package/dist/hooks/useReactiveSpec.d.ts +5 -16
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +81 -82
- package/dist/index.js +67 -63
- package/dist/style.css +1 -1
- package/package.json +11 -11
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { defineComponent as c, openBlock as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import S from "
|
|
1
|
+
import { defineComponent as c, openBlock as n, createBlock as l, unref as o, withCtx as r, createVNode as t, normalizeClass as p, createTextVNode as s, toDisplayString as m, createCommentVNode as h, createElementVNode as i } from "vue";
|
|
2
|
+
import C from "../../../components/OperationPath.vue.js";
|
|
3
|
+
import { getOperationStability as d, getOperationStabilityColor as y, isOperationDeprecated as q } from "../../../helpers/operation.js";
|
|
4
|
+
import { ScalarMarkdown as S, ScalarErrorBoundary as u } from "@scalar/components";
|
|
5
|
+
import _ from "../components/OperationParameters.vue.js";
|
|
5
6
|
import E from "../components/OperationResponses.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
7
|
+
import g from "../../../components/Section/Section.vue.js";
|
|
8
|
+
import v from "../../../components/Section/SectionContent.vue.js";
|
|
9
|
+
import b from "../../../components/Badge/Badge.vue.js";
|
|
10
|
+
import k from "../../../components/Section/SectionHeader.vue.js";
|
|
11
|
+
import B from "../../../components/Anchor/Anchor.vue.js";
|
|
12
|
+
import N from "../../../components/Section/SectionColumns.vue.js";
|
|
12
13
|
import f from "../../../components/Section/SectionColumn.vue.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const
|
|
14
|
+
import O from "../../ExampleRequest/ExampleRequest.vue.js";
|
|
15
|
+
import V from "../../TestRequestButton/TestRequestButton.vue.js";
|
|
16
|
+
import w from "../../ExampleResponses/ExampleResponses.vue.js";
|
|
17
|
+
const R = { class: "operation-details" }, D = { class: "examples" }, Y = /* @__PURE__ */ c({
|
|
17
18
|
__name: "ModernLayout",
|
|
18
19
|
props: {
|
|
19
20
|
id: {},
|
|
@@ -22,104 +23,104 @@ const D = { class: "operation-details" }, M = { class: "examples" }, W = /* @__P
|
|
|
22
23
|
request: {},
|
|
23
24
|
secretCredentials: {}
|
|
24
25
|
},
|
|
25
|
-
setup(
|
|
26
|
-
return (e,
|
|
26
|
+
setup(M) {
|
|
27
|
+
return (e, T) => (n(), l(o(g), {
|
|
27
28
|
id: e.id,
|
|
28
29
|
label: e.operation.name
|
|
29
30
|
}, {
|
|
30
31
|
default: r(() => [
|
|
31
|
-
o(
|
|
32
|
-
default: r(() =>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
o(t(N), {
|
|
47
|
-
id: e.id ?? ""
|
|
48
|
-
}, {
|
|
49
|
-
default: r(() => [
|
|
50
|
-
s(q(e.operation.name), 1)
|
|
51
|
-
]),
|
|
52
|
-
_: 1
|
|
53
|
-
}, 8, ["id"])
|
|
54
|
-
]),
|
|
55
|
-
_: 1
|
|
56
|
-
})
|
|
57
|
-
], 2),
|
|
58
|
-
o(t(V), null, {
|
|
32
|
+
t(o(v), null, {
|
|
33
|
+
default: r(() => [
|
|
34
|
+
o(d)(e.operation) ? (n(), l(o(b), {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: p(o(y)(e.operation))
|
|
37
|
+
}, {
|
|
38
|
+
default: r(() => [
|
|
39
|
+
s(m(o(d)(e.operation)), 1)
|
|
40
|
+
]),
|
|
41
|
+
_: 1
|
|
42
|
+
}, 8, ["class"])) : h("", !0),
|
|
43
|
+
i("div", {
|
|
44
|
+
class: p(o(q)(e.operation) ? "deprecated" : "")
|
|
45
|
+
}, [
|
|
46
|
+
t(o(k), { level: 3 }, {
|
|
59
47
|
default: r(() => [
|
|
60
|
-
o(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
return [
|
|
64
|
-
n("div", D, [
|
|
65
|
-
o(t(y), {
|
|
66
|
-
value: (a = e.requestEntity) == null ? void 0 : a.description,
|
|
67
|
-
withImages: ""
|
|
68
|
-
}, null, 8, ["value"]),
|
|
69
|
-
o(S, { operation: e.requestEntity }, null, 8, ["operation"]),
|
|
70
|
-
o(E, { operation: e.operation }, null, 8, ["operation"])
|
|
71
|
-
])
|
|
72
|
-
];
|
|
73
|
-
}),
|
|
74
|
-
_: 1
|
|
75
|
-
}),
|
|
76
|
-
o(t(f), null, {
|
|
48
|
+
t(o(B), {
|
|
49
|
+
id: e.id ?? ""
|
|
50
|
+
}, {
|
|
77
51
|
default: r(() => [
|
|
78
|
-
|
|
79
|
-
o(t(u), null, {
|
|
80
|
-
default: r(() => [
|
|
81
|
-
o(t(b), {
|
|
82
|
-
fallback: "",
|
|
83
|
-
operation: e.operation,
|
|
84
|
-
request: e.request,
|
|
85
|
-
secretCredentials: e.secretCredentials
|
|
86
|
-
}, {
|
|
87
|
-
header: r(() => {
|
|
88
|
-
var a;
|
|
89
|
-
return [
|
|
90
|
-
o(_, {
|
|
91
|
-
class: "example-path",
|
|
92
|
-
deprecated: (a = e.operation.information) == null ? void 0 : a.deprecated,
|
|
93
|
-
path: e.operation.path
|
|
94
|
-
}, null, 8, ["deprecated", "path"])
|
|
95
|
-
];
|
|
96
|
-
}),
|
|
97
|
-
footer: r(() => [
|
|
98
|
-
o(t(w), { operation: e.operation }, null, 8, ["operation"])
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
}, 8, ["operation", "request", "secretCredentials"])
|
|
102
|
-
]),
|
|
103
|
-
_: 1
|
|
104
|
-
}),
|
|
105
|
-
o(t(u), null, {
|
|
106
|
-
default: r(() => [
|
|
107
|
-
o(t(R), {
|
|
108
|
-
operation: e.operation,
|
|
109
|
-
style: { "margin-top": "12px" }
|
|
110
|
-
}, null, 8, ["operation"])
|
|
111
|
-
]),
|
|
112
|
-
_: 1
|
|
113
|
-
})
|
|
114
|
-
])
|
|
52
|
+
s(m(e.operation.name), 1)
|
|
115
53
|
]),
|
|
116
54
|
_: 1
|
|
117
|
-
})
|
|
55
|
+
}, 8, ["id"])
|
|
118
56
|
]),
|
|
119
57
|
_: 1
|
|
120
58
|
})
|
|
121
|
-
]
|
|
122
|
-
|
|
59
|
+
], 2),
|
|
60
|
+
t(o(N), null, {
|
|
61
|
+
default: r(() => [
|
|
62
|
+
t(o(f), null, {
|
|
63
|
+
default: r(() => {
|
|
64
|
+
var a;
|
|
65
|
+
return [
|
|
66
|
+
i("div", R, [
|
|
67
|
+
t(o(S), {
|
|
68
|
+
value: (a = e.requestEntity) == null ? void 0 : a.description,
|
|
69
|
+
withImages: ""
|
|
70
|
+
}, null, 8, ["value"]),
|
|
71
|
+
t(_, { operation: e.requestEntity }, null, 8, ["operation"]),
|
|
72
|
+
t(E, { operation: e.operation }, null, 8, ["operation"])
|
|
73
|
+
])
|
|
74
|
+
];
|
|
75
|
+
}),
|
|
76
|
+
_: 1
|
|
77
|
+
}),
|
|
78
|
+
t(o(f), null, {
|
|
79
|
+
default: r(() => [
|
|
80
|
+
i("div", D, [
|
|
81
|
+
t(o(u), null, {
|
|
82
|
+
default: r(() => [
|
|
83
|
+
t(o(O), {
|
|
84
|
+
fallback: "",
|
|
85
|
+
operation: e.operation,
|
|
86
|
+
request: e.request,
|
|
87
|
+
secretCredentials: e.secretCredentials
|
|
88
|
+
}, {
|
|
89
|
+
header: r(() => {
|
|
90
|
+
var a;
|
|
91
|
+
return [
|
|
92
|
+
t(C, {
|
|
93
|
+
class: "example-path",
|
|
94
|
+
deprecated: (a = e.operation.information) == null ? void 0 : a.deprecated,
|
|
95
|
+
path: e.operation.path
|
|
96
|
+
}, null, 8, ["deprecated", "path"])
|
|
97
|
+
];
|
|
98
|
+
}),
|
|
99
|
+
footer: r(() => [
|
|
100
|
+
t(o(V), { operation: e.requestEntity }, null, 8, ["operation"])
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
}, 8, ["operation", "request", "secretCredentials"])
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}),
|
|
107
|
+
t(o(u), null, {
|
|
108
|
+
default: r(() => [
|
|
109
|
+
t(o(w), {
|
|
110
|
+
operation: e.operation,
|
|
111
|
+
style: { "margin-top": "12px" }
|
|
112
|
+
}, null, 8, ["operation"])
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
})
|
|
116
|
+
])
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
})
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
})
|
|
123
|
+
]),
|
|
123
124
|
_: 1
|
|
124
125
|
})
|
|
125
126
|
]),
|
|
@@ -128,5 +129,5 @@ const D = { class: "operation-details" }, M = { class: "examples" }, W = /* @__P
|
|
|
128
129
|
}
|
|
129
130
|
});
|
|
130
131
|
export {
|
|
131
|
-
|
|
132
|
+
Y as default
|
|
132
133
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Request as RequestEntity } from '@scalar/oas-utils/entities/spec';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
operation
|
|
3
|
+
operation?: Pick<RequestEntity, 'method' | 'path' | 'uid'>;
|
|
4
4
|
};
|
|
5
5
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/TestRequestButton/TestRequestButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/TestRequestButton/TestRequestButton.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAK/E,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC,CAAA;CAC3D,CAAC;;AAsGF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./TestRequestButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ea8189a2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,47 +1,43 @@
|
|
|
1
|
-
import { defineComponent as d,
|
|
2
|
-
import
|
|
3
|
-
import { useConfig as
|
|
4
|
-
import { ScalarIcon as
|
|
5
|
-
import { useApiClient as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as d, computed as c, openBlock as i, createElementBlock as s, withModifiers as f, createVNode as a, unref as h, createElementVNode as k, withCtx as C, createTextVNode as u, toDisplayString as p, Fragment as y } from "vue";
|
|
2
|
+
import B from "../../components/ScreenReader.vue.js";
|
|
3
|
+
import { useConfig as b } from "../../hooks/useConfig.js";
|
|
4
|
+
import { ScalarIcon as q } from "@scalar/components";
|
|
5
|
+
import { useApiClient as R } from "../ApiClientModal/useApiClient.js";
|
|
6
|
+
const T = ["method"], g = /* @__PURE__ */ d({
|
|
7
7
|
__name: "TestRequestButton",
|
|
8
8
|
props: {
|
|
9
9
|
operation: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const { client:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class: "show-api-client-button",
|
|
18
|
-
method: e.operation.httpVerb,
|
|
19
|
-
type: "button",
|
|
20
|
-
onClick: t[0] || (t[0] = f((R) => {
|
|
21
|
-
var r;
|
|
22
|
-
return (r = o(u)) == null ? void 0 : r.open({
|
|
23
|
-
path: e.operation.path,
|
|
24
|
-
method: e.operation.httpVerb
|
|
25
|
-
});
|
|
26
|
-
}, ["stop"]))
|
|
27
|
-
}, [
|
|
28
|
-
s(o(y), {
|
|
29
|
-
icon: "Play",
|
|
30
|
-
size: "sm"
|
|
31
|
-
}),
|
|
32
|
-
t[1] || (t[1] = h("span", null, "Test Request", -1)),
|
|
33
|
-
s(V, null, {
|
|
34
|
-
default: c(() => [
|
|
35
|
-
a("(" + m(e.operation.httpVerb) + " " + m(e.operation.path) + ")", 1)
|
|
36
|
-
]),
|
|
37
|
-
_: 1
|
|
38
|
-
})
|
|
39
|
-
], 8, g)) : (p(), i(b, { key: 1 }, [
|
|
40
|
-
a(" ")
|
|
41
|
-
], 64));
|
|
11
|
+
setup(n) {
|
|
12
|
+
const { client: t } = R(), o = b(), l = c(() => (o == null ? void 0 : o.hideTestRequestButton) !== !0), m = () => {
|
|
13
|
+
var e;
|
|
14
|
+
n.operation && ((e = t == null ? void 0 : t.value) != null && e.open) && t.value.open({
|
|
15
|
+
requestUid: n.operation.uid
|
|
16
|
+
});
|
|
42
17
|
};
|
|
18
|
+
return (e, r) => e.operation && l.value ? (i(), s("button", {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "show-api-client-button",
|
|
21
|
+
method: e.operation.method,
|
|
22
|
+
type: "button",
|
|
23
|
+
onClick: f(m, ["stop"])
|
|
24
|
+
}, [
|
|
25
|
+
a(h(q), {
|
|
26
|
+
icon: "Play",
|
|
27
|
+
size: "sm"
|
|
28
|
+
}),
|
|
29
|
+
r[0] || (r[0] = k("span", null, "Test Request", -1)),
|
|
30
|
+
a(B, null, {
|
|
31
|
+
default: C(() => [
|
|
32
|
+
u("(" + p(e.operation.method) + " " + p(e.operation.path) + ")", 1)
|
|
33
|
+
]),
|
|
34
|
+
_: 1
|
|
35
|
+
})
|
|
36
|
+
], 8, T)) : (i(), s(y, { key: 1 }, [
|
|
37
|
+
u(" ")
|
|
38
|
+
], 64));
|
|
43
39
|
}
|
|
44
40
|
});
|
|
45
41
|
export {
|
|
46
|
-
|
|
42
|
+
g as default
|
|
47
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-request.d.ts","sourceRoot":"","sources":["../../src/helpers/get-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,6CAA6C;AAC7C,eAAO,MAAM,UAAU,aACX,cAAc,CAAC,UAAU,CAAC,QAC9B,MAAM,UACJ,MAAM;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-request.d.ts","sourceRoot":"","sources":["../../src/helpers/get-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,6CAA6C;AAC7C,eAAO,MAAM,UAAU,aACX,cAAc,CAAC,UAAU,CAAC,QAC9B,MAAM,UACJ,MAAM;;;;;;;;;;;;;mBAKujT,CAAC;;;;;;;;;;;;;mBAA8f,CAAC;eAAyC,CAAC;cAA6B,CAAC;eAA8B,CAAC;aAA4B,CAAC;gBAA8H,CAAC;iBAAwC,CAAC;mBAAkC,CAAC;;;;;aADn5U,CAAA"}
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Operation, XScalarStability } from '@scalar/types/legacy';
|
|
2
|
+
/**
|
|
3
|
+
* Returns if an operation is considered deprecated.
|
|
4
|
+
*/
|
|
5
|
+
export declare function isOperationDeprecated(operation: Operation): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Get operation stability.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getOperationStability(operation: Operation): XScalarStability | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Get Operation stability color
|
|
12
|
+
*/
|
|
13
|
+
export declare function getOperationStabilityColor(operation: Operation): string;
|
|
14
|
+
//# sourceMappingURL=operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../src/helpers/operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvE;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CASnE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,SAAS,GACnB,gBAAgB,GAAG,SAAS,CAG9B;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAMvE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { XScalarStability as i } from "@scalar/types/legacy";
|
|
2
|
+
function f(t) {
|
|
3
|
+
var e, r, a;
|
|
4
|
+
return ((e = t.information) == null ? void 0 : e.deprecated) !== void 0 ? (r = t.information) == null ? void 0 : r.deprecated : !!((a = t.information) != null && a["x-scalar-stability"] && t.information["x-scalar-stability"] === i.Deprecated);
|
|
5
|
+
}
|
|
6
|
+
function n(t) {
|
|
7
|
+
var e, r;
|
|
8
|
+
return (e = t.information) != null && e.deprecated ? i.Deprecated : (r = t.information) == null ? void 0 : r["x-scalar-stability"];
|
|
9
|
+
}
|
|
10
|
+
function c(t) {
|
|
11
|
+
const e = n(t);
|
|
12
|
+
return e === i.Deprecated ? "text-red" : e === i.Experimental ? "text-orange" : e === i.Stable ? "text-green" : "";
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
n as getOperationStability,
|
|
16
|
+
c as getOperationStabilityColor,
|
|
17
|
+
f as isOperationDeprecated
|
|
18
|
+
};
|
|
@@ -57,22 +57,17 @@ export declare function useReactiveSpec({ specConfig, proxyUrl, }: {
|
|
|
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
|
-
} | {
|
|
60
|
+
servers?: {
|
|
67
61
|
url?: string | undefined;
|
|
68
62
|
description?: string | undefined;
|
|
69
63
|
variables?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject> | undefined;
|
|
70
|
-
}
|
|
64
|
+
}[] | undefined;
|
|
71
65
|
'x-custom-examples'?: {
|
|
72
66
|
lang: string;
|
|
73
67
|
label: string;
|
|
74
68
|
source: string;
|
|
75
69
|
}[] | undefined;
|
|
70
|
+
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
76
71
|
'x-codeSamples'?: {
|
|
77
72
|
lang: string;
|
|
78
73
|
label: string;
|
|
@@ -84,17 +79,11 @@ export declare function useReactiveSpec({ specConfig, proxyUrl, }: {
|
|
|
84
79
|
source: string;
|
|
85
80
|
}[] | undefined;
|
|
86
81
|
} | 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
|
-
} | {
|
|
82
|
+
servers?: {
|
|
94
83
|
url?: string | undefined;
|
|
95
84
|
description?: string | undefined;
|
|
96
85
|
variables?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject> | undefined;
|
|
97
|
-
}
|
|
86
|
+
}[] | undefined;
|
|
98
87
|
pathParameters?: {
|
|
99
88
|
name: string;
|
|
100
89
|
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,QAAQ,GACT,EAAE;IACD,UAAU,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAA;IAChD,QAAQ,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CACpC
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSidebar.d.ts","sourceRoot":"","sources":["../../src/hooks/useSidebar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSidebar.d.ts","sourceRoot":"","sources":["../../src/hooks/useSidebar.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAc3E,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAcD,uDAAuD;AACvD,iBAAS,aAAa,CAAC,IAAI,EAAE,IAAI,QA6ChC;AAMD,KAAK,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAMpD,iBAAS,0BAA0B,CAAC,GAAG,EAAE,MAAM,QAE9C;AAED,iBAAS,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,QAE3D;AAsOD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC,CAAA;IACnD,gBAAgB,CAAC,EACb,OAAO,GACP,QAAQ,GACR,CAAC,CAAC,CAAC,EAAE,oBAAoB,EAAE,CAAC,EAAE,oBAAoB,KAAK,MAAM,CAAC,CAAA;CACnE,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,gBAAiB,MAAM,SAepD,CAAA;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,YAAY;;;;;;;;;;;;;qCApBrB,MAAM;EA2EpD"}
|