@scalar/api-reference 1.32.1 → 1.32.5
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 +83 -0
- package/README.md +1 -1
- package/dist/browser/standalone.js +15738 -15439
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +163 -158
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/Badge/Badge.vue.js +1 -1
- package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
- package/dist/components/Card/CardHeader.vue.js +2 -2
- package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTab.vue.js +3 -3
- package/dist/components/Card/CardTabHeader.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTabHeader.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Lazy/Loading.vue.d.ts +1 -3
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +89 -89
- 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 +59 -56
- package/dist/components/Content/Schema/RenderString.vue.d.ts +6 -0
- package/dist/components/Content/Schema/RenderString.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/RenderString.vue.js +14 -0
- package/dist/components/Content/Schema/RenderString.vue2.js +4 -0
- package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +76 -75
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +58 -66
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts +19 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue.js +7 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +125 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +96 -170
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +18 -0
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +155 -160
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +6 -0
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/get-schema-type.js +20 -0
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +20 -46
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +6 -6
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +1 -1
- package/dist/features/Operation/components/RequestBody.vue2.js +13 -10
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +64 -60
- 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 +13 -13
- package/dist/features/Search/SearchButton.vue.d.ts +1 -0
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +36 -34
- package/dist/features/Search/SearchModal.vue.d.ts +1 -0
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +1 -1
- package/dist/features/Search/SearchModal.vue2.js +112 -112
- package/dist/features/Search/useSearchIndex.d.ts +4 -3
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +119 -82
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts +2 -2
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.js +47 -38
- package/dist/features/api-client-modal/useApiClient.d.ts +334 -334
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/base-url/BaseUrl.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
- package/dist/features/example-responses/ExampleResponse.vue2.js +7 -7
- package/dist/features/example-responses/ExampleResponses.vue.d.ts +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
- package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue.js +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue2.js +23 -21
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +2 -2
- package/dist/features/sidebar/components/SidebarHttpBadge.vue2.js +5 -6
- package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
- package/dist/features/traverse-schema/helpers/traverse-tags.js +26 -26
- package/dist/features/traverse-schema/index.d.ts +1 -1
- package/dist/features/traverse-schema/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/libs/openapi.d.ts +15 -1
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +66 -47
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/stores/useHttpClientStore.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +2 -2
- package/package.json +18 -18
- package/dist/hooks/useOperation.d.ts +0 -16
- package/dist/hooks/useOperation.d.ts.map +0 -1
- package/dist/hooks/useOperation.js +0 -27
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBody.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-f3b8e406"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { defineComponent as j, computed as f, ref as C, createElementBlock as a, createCommentVNode as
|
|
1
|
+
import { defineComponent as j, computed as f, ref as C, createElementBlock as a, createCommentVNode as d, openBlock as l, createElementVNode as b, createVNode as n, renderSlot as E, unref as i } from "vue";
|
|
2
2
|
import { ScalarMarkdown as P } from "@scalar/components";
|
|
3
3
|
import S from "./ContentTypeSelect.vue.js";
|
|
4
4
|
import y from "../../../components/Content/Schema/Schema.vue.js";
|
|
5
|
-
const _ = {
|
|
5
|
+
const _ = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "request-body"
|
|
8
|
+
}, O = { class: "request-body-header" }, R = { class: "request-body-title" }, g = {
|
|
6
9
|
key: 0,
|
|
7
10
|
class: "request-body-required"
|
|
8
11
|
}, N = {
|
|
@@ -58,7 +61,7 @@ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "reques
|
|
|
58
61
|
b("div", O, [
|
|
59
62
|
b("span", R, [
|
|
60
63
|
E(e.$slots, "title", {}, void 0, !0),
|
|
61
|
-
e.requestBody.required ? (l(), a("div", g, " required ")) :
|
|
64
|
+
e.requestBody.required ? (l(), a("div", g, " required ")) : d("", !0)
|
|
62
65
|
]),
|
|
63
66
|
n(S, {
|
|
64
67
|
defaultValue: t.value,
|
|
@@ -66,13 +69,13 @@ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "reques
|
|
|
66
69
|
onSelectContentType: s[0] || (s[0] = ({ contentType: u }) => t.value = u)
|
|
67
70
|
}, null, 8, ["defaultValue", "requestBody"]),
|
|
68
71
|
e.requestBody.description ? (l(), a("div", N, [
|
|
69
|
-
n(
|
|
72
|
+
n(i(P), {
|
|
70
73
|
value: e.requestBody.description
|
|
71
74
|
}, null, 8, ["value"])
|
|
72
|
-
])) :
|
|
75
|
+
])) : d("", !0)
|
|
73
76
|
]),
|
|
74
77
|
m.value ? (l(), a("div", T, [
|
|
75
|
-
n(
|
|
78
|
+
n(i(y), {
|
|
76
79
|
compact: "",
|
|
77
80
|
name: "Request Body",
|
|
78
81
|
noncollapsible: "",
|
|
@@ -80,7 +83,7 @@ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "reques
|
|
|
80
83
|
value: m.value.visibleProperties,
|
|
81
84
|
"onUpdate:modelValue": h
|
|
82
85
|
}, null, 8, ["schemas", "value"]),
|
|
83
|
-
n(
|
|
86
|
+
n(i(y), {
|
|
84
87
|
additionalProperties: "",
|
|
85
88
|
compact: "",
|
|
86
89
|
name: "Request Body",
|
|
@@ -88,7 +91,7 @@ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "reques
|
|
|
88
91
|
value: m.value.collapsedProperties
|
|
89
92
|
}, null, 8, ["schemas", "value"])
|
|
90
93
|
])) : (p = e.requestBody.content) != null && p[t.value] ? (l(), a("div", M, [
|
|
91
|
-
n(
|
|
94
|
+
n(i(y), {
|
|
92
95
|
compact: "",
|
|
93
96
|
name: "Request Body",
|
|
94
97
|
noncollapsible: "",
|
|
@@ -96,8 +99,8 @@ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "reques
|
|
|
96
99
|
value: (r = (o = e.requestBody.content) == null ? void 0 : o[t.value]) == null ? void 0 : r.schema,
|
|
97
100
|
"onUpdate:modelValue": h
|
|
98
101
|
}, null, 8, ["schemas", "value"])
|
|
99
|
-
])) :
|
|
100
|
-
])) :
|
|
102
|
+
])) : d("", !0)
|
|
103
|
+
])) : d("", !0);
|
|
101
104
|
};
|
|
102
105
|
}
|
|
103
106
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAqXA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAWvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAcjE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAA;IACtC,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA2VF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClassicLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3bc6e3e0"]]);
|
|
5
5
|
export {
|
|
6
6
|
c as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as B, computed as S, createBlock as n, openBlock as p, unref as o, createSlots as V, withCtx as a, createElementVNode as s, createVNode as t, createCommentVNode as d, withModifiers as w, toDisplayString as u, normalizeClass as T, createTextVNode as f } from "vue";
|
|
2
2
|
import { ScalarIcon as I, ScalarIconButton as R, ScalarMarkdown as N } from "@scalar/components";
|
|
3
3
|
import { ScalarIconWebhooksLogo as O } from "@scalar/icons";
|
|
4
4
|
import { useClipboard as P } from "@scalar/use-hooks/useClipboard";
|
|
@@ -9,12 +9,12 @@ import D from "../components/OperationParameters.vue.js";
|
|
|
9
9
|
import E from "../components/OperationResponses.vue.js";
|
|
10
10
|
import L from "../../../components/Section/SectionAccordion.vue.js";
|
|
11
11
|
import U from "../../example-responses/ExampleResponses.vue.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import M from "../../example-request/ExampleRequest.vue.js";
|
|
13
|
+
import _ from "../../test-request-button/TestRequestButton.vue.js";
|
|
14
14
|
import j from "../../../components/HttpMethod/HttpMethod.vue.js";
|
|
15
15
|
import F from "../../../components/Anchor/Anchor.vue.js";
|
|
16
16
|
import v from "../../../components/Badge/Badge.vue.js";
|
|
17
|
-
const G = { class: "operation-title" }, H = { class: "operation-details" }, J = { class: "endpoint-label" }, K = { class: "endpoint-label-path" }, Q = { class: "endpoint-label-name" }, X = { class: "endpoint-content" }, Y = { class: "operation-details-card" }, Z = { class: "operation-details-card-item" }, x = { class: "operation-details-card-item" }, ve = /* @__PURE__ */
|
|
17
|
+
const G = { class: "operation-title" }, H = { class: "operation-details" }, J = { class: "endpoint-label" }, K = { class: "endpoint-label-path" }, Q = { class: "endpoint-label-name" }, X = { class: "endpoint-content" }, Y = { class: "operation-details-card" }, Z = { class: "operation-details-card-item" }, x = { class: "operation-details-card-item" }, ve = /* @__PURE__ */ B({
|
|
18
18
|
__name: "ClassicLayout",
|
|
19
19
|
props: {
|
|
20
20
|
id: {},
|
|
@@ -28,21 +28,21 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
|
|
|
28
28
|
schemas: {}
|
|
29
29
|
},
|
|
30
30
|
emits: ["update:modelValue"],
|
|
31
|
-
setup(
|
|
32
|
-
const g =
|
|
31
|
+
setup(m, { emit: b }) {
|
|
32
|
+
const g = S(() => {
|
|
33
33
|
var e;
|
|
34
|
-
return ((e =
|
|
35
|
-
}), { copyToClipboard: k } = P(), C = $(), q = b,
|
|
34
|
+
return ((e = m.operation) == null ? void 0 : e.summary) || m.path || "";
|
|
35
|
+
}), { copyToClipboard: k } = P(), C = $(), q = b, c = (e) => {
|
|
36
36
|
q("update:modelValue", e);
|
|
37
37
|
};
|
|
38
|
-
return (e,
|
|
39
|
-
var
|
|
40
|
-
return
|
|
38
|
+
return (e, l) => {
|
|
39
|
+
var h;
|
|
40
|
+
return p(), n(o(L), {
|
|
41
41
|
id: e.id,
|
|
42
42
|
class: "reference-endpoint",
|
|
43
43
|
transparent: ""
|
|
44
|
-
},
|
|
45
|
-
title:
|
|
44
|
+
}, V({
|
|
45
|
+
title: a(() => [
|
|
46
46
|
s("div", G, [
|
|
47
47
|
s("div", H, [
|
|
48
48
|
t(o(j), {
|
|
@@ -54,7 +54,7 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
|
|
|
54
54
|
id: e.id,
|
|
55
55
|
class: "endpoint-anchor"
|
|
56
56
|
}, {
|
|
57
|
-
default:
|
|
57
|
+
default: a(() => [
|
|
58
58
|
s("h3", J, [
|
|
59
59
|
s("div", K, [
|
|
60
60
|
t(W, {
|
|
@@ -63,25 +63,25 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
|
|
|
63
63
|
}, null, 8, ["deprecated", "path"])
|
|
64
64
|
]),
|
|
65
65
|
s("div", Q, u(g.value), 1),
|
|
66
|
-
o(y)(e.operation) ? (
|
|
66
|
+
o(y)(e.operation) ? (p(), n(o(v), {
|
|
67
67
|
key: 0,
|
|
68
68
|
class: T(o(A)(e.operation))
|
|
69
69
|
}, {
|
|
70
|
-
default:
|
|
70
|
+
default: a(() => [
|
|
71
71
|
f(u(o(y)(e.operation)), 1)
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
|
-
}, 8, ["class"])) :
|
|
75
|
-
e.isWebhook ? (
|
|
74
|
+
}, 8, ["class"])) : d("", !0),
|
|
75
|
+
e.isWebhook ? (p(), n(o(v), {
|
|
76
76
|
key: 1,
|
|
77
77
|
class: "font-code text-green flex w-fit items-center justify-center gap-1"
|
|
78
78
|
}, {
|
|
79
|
-
default:
|
|
79
|
+
default: a(() => [
|
|
80
80
|
t(o(O), { weight: "bold" }),
|
|
81
|
-
|
|
81
|
+
l[1] || (l[1] = f("Webhook "))
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
84
|
-
})) :
|
|
84
|
+
})) : d("", !0)
|
|
85
85
|
])
|
|
86
86
|
]),
|
|
87
87
|
_: 1
|
|
@@ -89,13 +89,13 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
|
|
|
89
89
|
])
|
|
90
90
|
])
|
|
91
91
|
]),
|
|
92
|
-
actions:
|
|
93
|
-
var
|
|
92
|
+
actions: a(({ active: i }) => {
|
|
93
|
+
var r;
|
|
94
94
|
return [
|
|
95
|
-
|
|
95
|
+
i && e.request ? (p(), n(o(_), {
|
|
96
96
|
key: 0,
|
|
97
97
|
operation: e.request
|
|
98
|
-
}, null, 8, ["operation"])) : (
|
|
98
|
+
}, null, 8, ["operation"])) : (r = o(C)) != null && r.hideTestRequestButton ? d("", !0) : (p(), n(o(I), {
|
|
99
99
|
key: 1,
|
|
100
100
|
class: "endpoint-try-hint size-6",
|
|
101
101
|
icon: "Play",
|
|
@@ -107,50 +107,54 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
|
|
|
107
107
|
label: "Copy endpoint URL",
|
|
108
108
|
size: "xs",
|
|
109
109
|
variant: "ghost",
|
|
110
|
-
onClick:
|
|
110
|
+
onClick: l[0] || (l[0] = w((ee) => o(k)(e.path), ["stop"]))
|
|
111
111
|
})
|
|
112
112
|
];
|
|
113
113
|
}),
|
|
114
|
-
default:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
114
|
+
default: a(() => {
|
|
115
|
+
var i, r;
|
|
116
|
+
return [
|
|
117
|
+
s("div", X, [
|
|
118
|
+
s("div", Y, [
|
|
119
|
+
s("div", Z, [
|
|
120
|
+
t(D, {
|
|
121
|
+
parameters: (i = e.operation) == null ? void 0 : i.parameters,
|
|
122
|
+
requestBody: (r = e.operation) == null ? void 0 : r.requestBody,
|
|
123
|
+
schemas: e.schemas,
|
|
124
|
+
"onUpdate:modelValue": c
|
|
125
|
+
}, null, 8, ["parameters", "requestBody", "schemas"])
|
|
126
|
+
]),
|
|
127
|
+
s("div", x, [
|
|
128
|
+
t(E, {
|
|
129
|
+
collapsableItems: !1,
|
|
130
|
+
responses: e.operation.responses,
|
|
131
|
+
schemas: e.schemas
|
|
132
|
+
}, null, 8, ["responses", "schemas"])
|
|
133
|
+
])
|
|
123
134
|
]),
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
collection: e.collection,
|
|
139
|
-
operation: e.operation,
|
|
140
|
-
server: e.server,
|
|
141
|
-
"onUpdate:modelValue": m
|
|
142
|
-
}, null, 8, ["request", "method", "collection", "operation", "server"])
|
|
143
|
-
])
|
|
144
|
-
]),
|
|
135
|
+
t(o(U), {
|
|
136
|
+
responses: e.operation.responses
|
|
137
|
+
}, null, 8, ["responses"]),
|
|
138
|
+
t(o(M), {
|
|
139
|
+
request: e.request,
|
|
140
|
+
method: e.method,
|
|
141
|
+
collection: e.collection,
|
|
142
|
+
operation: e.operation,
|
|
143
|
+
server: e.server,
|
|
144
|
+
"onUpdate:modelValue": c
|
|
145
|
+
}, null, 8, ["request", "method", "collection", "operation", "server"])
|
|
146
|
+
])
|
|
147
|
+
];
|
|
148
|
+
}),
|
|
145
149
|
_: 2
|
|
146
150
|
}, [
|
|
147
|
-
(
|
|
151
|
+
(h = e.operation) != null && h.description ? {
|
|
148
152
|
name: "description",
|
|
149
|
-
fn:
|
|
150
|
-
var
|
|
153
|
+
fn: a(() => {
|
|
154
|
+
var i;
|
|
151
155
|
return [
|
|
152
156
|
t(o(N), {
|
|
153
|
-
value: (
|
|
157
|
+
value: (i = e.operation) == null ? void 0 : i.description,
|
|
154
158
|
withImages: "",
|
|
155
159
|
withAnchors: "",
|
|
156
160
|
transformType: "heading",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAuLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AA2BvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI/C,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAA;IACtC,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA6TF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModernLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d34fa883"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -3,12 +3,12 @@ import { ScalarMarkdown as D, ScalarErrorBoundary as p } from "@scalar/component
|
|
|
3
3
|
import { ScalarIconWebhooksLogo as L } from "@scalar/icons";
|
|
4
4
|
import P from "../../../components/OperationPath.vue.js";
|
|
5
5
|
import { useConfig as R } from "../../../hooks/useConfig.js";
|
|
6
|
-
import { getOperationStability as C, getOperationStabilityColor as $, isOperationDeprecated as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
6
|
+
import { getOperationStability as C, getOperationStabilityColor as $, isOperationDeprecated as z } from "../../../libs/openapi.js";
|
|
7
|
+
import A from "../components/callbacks/Callbacks.vue.js";
|
|
8
|
+
import H from "../components/OperationParameters.vue.js";
|
|
9
|
+
import M from "../components/OperationResponses.vue.js";
|
|
10
|
+
import U from "../../../components/Section/Section.vue.js";
|
|
11
|
+
import j from "../../../components/Section/SectionContent.vue.js";
|
|
12
12
|
import B from "../../../components/Badge/Badge.vue.js";
|
|
13
13
|
import F from "../../../components/Section/SectionHeader.vue.js";
|
|
14
14
|
import G from "../../../components/Anchor/Anchor.vue.js";
|
|
@@ -39,20 +39,20 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
|
|
|
39
39
|
}), T = w, c = O(), E = R(), f = (e) => {
|
|
40
40
|
T("update:modelValue", e);
|
|
41
41
|
};
|
|
42
|
-
return (e, h) => (s(), l(o(
|
|
42
|
+
return (e, h) => (s(), l(o(U), {
|
|
43
43
|
id: e.id,
|
|
44
44
|
"aria-labelledby": o(c),
|
|
45
45
|
label: u.value,
|
|
46
46
|
tabindex: "-1"
|
|
47
47
|
}, {
|
|
48
48
|
default: r(() => [
|
|
49
|
-
a(o(
|
|
49
|
+
a(o(j), {
|
|
50
50
|
loading: o(E).isLoading
|
|
51
51
|
}, {
|
|
52
52
|
default: r(() => [
|
|
53
53
|
o(C)(e.operation) ? (s(), l(o(B), {
|
|
54
54
|
key: 0,
|
|
55
|
-
class: S(o($)(e.operation))
|
|
55
|
+
class: S(["capitalize", o($)(e.operation)])
|
|
56
56
|
}, {
|
|
57
57
|
default: r(() => [
|
|
58
58
|
m(q(o(C)(e.operation)), 1)
|
|
@@ -70,7 +70,7 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
|
|
|
70
70
|
_: 1
|
|
71
71
|
})) : i("", !0),
|
|
72
72
|
n("div", {
|
|
73
|
-
class: S(o(
|
|
73
|
+
class: S(o(z)(e.operation) ? "deprecated" : "")
|
|
74
74
|
}, [
|
|
75
75
|
a(o(F), null, {
|
|
76
76
|
default: r(() => [
|
|
@@ -106,13 +106,13 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
|
|
|
106
106
|
transformType: "heading",
|
|
107
107
|
anchorPrefix: e.id
|
|
108
108
|
}, null, 8, ["value", "anchorPrefix"]),
|
|
109
|
-
a(
|
|
109
|
+
a(H, {
|
|
110
110
|
parameters: (b = e.operation) == null ? void 0 : b.parameters,
|
|
111
111
|
requestBody: (y = e.operation) == null ? void 0 : y.requestBody,
|
|
112
112
|
schemas: e.schemas,
|
|
113
113
|
"onUpdate:modelValue": f
|
|
114
114
|
}, null, 8, ["parameters", "requestBody", "schemas"]),
|
|
115
|
-
a(
|
|
115
|
+
a(M, {
|
|
116
116
|
responses: (g = e.operation) == null ? void 0 : g.responses,
|
|
117
117
|
schemas: e.schemas
|
|
118
118
|
}, null, 8, ["responses", "schemas"]),
|
|
@@ -120,7 +120,7 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
|
|
|
120
120
|
default: r(() => {
|
|
121
121
|
var k, v;
|
|
122
122
|
return [
|
|
123
|
-
(k = e.operation) != null && k.callbacks ? (s(), l(
|
|
123
|
+
(k = e.operation) != null && k.callbacks ? (s(), l(A, {
|
|
124
124
|
key: 0,
|
|
125
125
|
callbacks: (v = e.operation) == null ? void 0 : v.callbacks,
|
|
126
126
|
collection: e.collection,
|
|
@@ -2,6 +2,7 @@ import type { Spec } from '@scalar/types/legacy';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
spec: Spec;
|
|
4
4
|
searchHotKey?: string;
|
|
5
|
+
hideModels?: boolean;
|
|
5
6
|
};
|
|
6
7
|
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>;
|
|
7
8
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchButton.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAQhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,IAAI,CAAA;IACV,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;AAiJF,wBAMG"}
|
|
@@ -1,63 +1,65 @@
|
|
|
1
|
-
import { defineComponent as k, ref as w, watch as
|
|
2
|
-
import { useModal as
|
|
1
|
+
import { defineComponent as k, ref as w, watch as M, nextTick as C, onMounted as v, onBeforeUnmount as B, createElementBlock as n, openBlock as r, Fragment as s, createVNode as u, unref as l, normalizeClass as K, withCtx as c, createElementVNode as a, createTextVNode as m, toDisplayString as b } from "vue";
|
|
2
|
+
import { useModal as E, ScalarSidebarSearchButton as H } from "@scalar/components";
|
|
3
3
|
import { isMacOS as f } from "@scalar/helpers/general/is-mac-os";
|
|
4
4
|
import g from "./SearchModal.vue.js";
|
|
5
5
|
import { useApiClient as L } from "../api-client-modal/useApiClient.js";
|
|
6
|
-
const
|
|
6
|
+
const $ = /* @__PURE__ */ k({
|
|
7
7
|
__name: "SearchButton",
|
|
8
8
|
props: {
|
|
9
9
|
spec: {},
|
|
10
|
-
searchHotKey: { default: "k" }
|
|
10
|
+
searchHotKey: { default: "k" },
|
|
11
|
+
hideModels: { type: Boolean, default: !1 }
|
|
11
12
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
13
|
+
setup(h) {
|
|
14
|
+
const d = w(), t = E(), { client: y } = L(), i = (o) => {
|
|
14
15
|
var e;
|
|
15
|
-
(f() ?
|
|
16
|
+
(f() ? o.metaKey : o.ctrlKey) && o.key === h.searchHotKey && !((e = y.value) != null && e.modalState.open) && (o.preventDefault(), o.stopPropagation(), t.open ? t.hide() : t.show());
|
|
16
17
|
};
|
|
17
|
-
|
|
18
|
-
() =>
|
|
19
|
-
(
|
|
20
|
-
!
|
|
18
|
+
M(
|
|
19
|
+
() => t.open,
|
|
20
|
+
(o, e) => {
|
|
21
|
+
!o && e && C(() => {
|
|
21
22
|
var p;
|
|
22
|
-
(p =
|
|
23
|
+
(p = d.value) == null || p.$el.focus();
|
|
23
24
|
});
|
|
24
25
|
}
|
|
25
|
-
),
|
|
26
|
-
function
|
|
27
|
-
|
|
26
|
+
), v(() => window.addEventListener("keydown", i)), B(() => window.removeEventListener("keydown", i));
|
|
27
|
+
function S() {
|
|
28
|
+
t.show();
|
|
28
29
|
}
|
|
29
|
-
return (
|
|
30
|
-
|
|
30
|
+
return (o, e) => (r(), n(s, null, [
|
|
31
|
+
u(l(H), {
|
|
31
32
|
ref_key: "button",
|
|
32
|
-
ref:
|
|
33
|
-
class:
|
|
34
|
-
onClick:
|
|
33
|
+
ref: d,
|
|
34
|
+
class: K(["w-full", o.$attrs.class]),
|
|
35
|
+
onClick: S
|
|
35
36
|
}, {
|
|
36
|
-
shortcut:
|
|
37
|
-
l(f)() ? (r(),
|
|
37
|
+
shortcut: c(() => [
|
|
38
|
+
l(f)() ? (r(), n(s, { key: 0 }, [
|
|
38
39
|
m("⌘")
|
|
39
|
-
], 64)) : (r(),
|
|
40
|
-
e[0] || (e[0] =
|
|
41
|
-
e[1] || (e[1] =
|
|
40
|
+
], 64)) : (r(), n(s, { key: 1 }, [
|
|
41
|
+
e[0] || (e[0] = a("span", { class: "sr-only" }, "CTRL", -1)),
|
|
42
|
+
e[1] || (e[1] = a("span", { "aria-hidden": "true" }, "⌃", -1))
|
|
42
43
|
], 64)),
|
|
43
|
-
m(" " +
|
|
44
|
+
m(" " + b(o.searchHotKey), 1)
|
|
44
45
|
]),
|
|
45
|
-
default:
|
|
46
|
-
e[2] || (e[2] =
|
|
47
|
-
e[3] || (e[3] =
|
|
46
|
+
default: c(() => [
|
|
47
|
+
e[2] || (e[2] = a("span", { class: "sr-only" }, "Open Search", -1)),
|
|
48
|
+
e[3] || (e[3] = a("span", {
|
|
48
49
|
"aria-hidden": "true",
|
|
49
50
|
class: "sidebar-search-placeholder"
|
|
50
51
|
}, " Search ", -1))
|
|
51
52
|
]),
|
|
52
53
|
_: 1
|
|
53
54
|
}, 8, ["class"]),
|
|
54
|
-
|
|
55
|
-
modalState: l(
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
u(g, {
|
|
56
|
+
modalState: l(t),
|
|
57
|
+
hideModels: o.hideModels,
|
|
58
|
+
parsedSpec: o.spec
|
|
59
|
+
}, null, 8, ["modalState", "hideModels", "parsedSpec"])
|
|
58
60
|
], 64));
|
|
59
61
|
}
|
|
60
62
|
});
|
|
61
63
|
export {
|
|
62
|
-
|
|
64
|
+
$ as default
|
|
63
65
|
};
|
|
@@ -3,6 +3,7 @@ import type { Spec } from '@scalar/types/legacy';
|
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
parsedSpec: Spec;
|
|
5
5
|
modalState: ModalState;
|
|
6
|
+
hideModels: boolean;
|
|
6
7
|
};
|
|
7
8
|
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>;
|
|
8
9
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchModal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchModal.vue"],"names":[],"mappings":"AA8SA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAU3B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAgBhD,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;IACtB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;AA8ZF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SearchModal.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-92d07cc9"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|