@scalar/api-reference 1.31.3 → 1.31.6
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 +55 -0
- package/dist/browser/standalone.js +15752 -15637
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.js +6 -6
- package/dist/components/ApiReferenceLayout.vue.d.ts +6 -3
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +4 -2
- package/dist/components/ApiReferenceLayout.vue2.js +230 -153
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +1 -1
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.js +2 -2
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +81 -101
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +114 -105
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +35 -35
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +17 -15
- package/dist/components/Content/Schema/helpers/schema-name.js +13 -21
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsList.vue2.js +10 -9
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +29 -28
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +35 -34
- package/dist/components/DocumentSelector/DocumentSelector.vue.d.ts.map +1 -1
- package/dist/components/DocumentSelector/DocumentSelector.vue.js +21 -28
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.js +3 -3
- package/dist/components/GettingStarted.vue2.js +23 -23
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +1 -20
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +12 -13
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +6 -6
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +5 -5
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.js +11 -11
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.js +2 -2
- package/dist/features/DownloadLink/DownloadLink.vue2.js +21 -21
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +1 -1
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +16 -16
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +1 -1
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +29 -28
- package/dist/features/sidebar/helpers/create-sidebar.d.ts +26 -0
- package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -0
- package/dist/features/sidebar/hooks/useSidebar.d.ts +23 -0
- package/dist/features/sidebar/hooks/useSidebar.d.ts.map +1 -0
- package/dist/features/sidebar/index.d.ts +2 -0
- package/dist/features/sidebar/index.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/get-tag.d.ts +4 -0
- package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/operation-id-params.d.ts +8 -0
- package/dist/features/traverse-schema/helpers/operation-id-params.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/operation-id-params.js +8 -0
- package/dist/features/traverse-schema/helpers/traverse-description.d.ts +9 -0
- package/dist/features/traverse-schema/helpers/traverse-description.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-document.d.ts +16 -0
- package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +11 -0
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +6 -0
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +9 -0
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +6 -0
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -0
- package/dist/features/traverse-schema/index.d.ts +4 -0
- package/dist/features/traverse-schema/index.d.ts.map +1 -0
- package/dist/features/traverse-schema/types.d.ts +51 -0
- package/dist/features/traverse-schema/types.d.ts.map +1 -0
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +16 -16
- package/dist/hooks/useNavState.d.ts +9 -4
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +31 -29
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +69 -68
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -44
- package/dist/legacy/fixtures/httpRequestMethods.js +2 -6
- package/dist/libs/openapi.js +32 -32
- package/dist/stores/useHttpClientStore.js +9 -8
- package/dist/style.css +1 -1
- package/dist/types.d.ts +0 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +40 -0
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -0
- package/dist/v2/ApiReferenceWorkspace.vue.js +65 -0
- package/dist/v2/ApiReferenceWorkspace.vue3.js +5 -0
- package/dist/v2/events/definitions.d.ts +35 -0
- package/dist/v2/events/definitions.d.ts.map +1 -0
- package/dist/v2/events/index.d.ts +3 -0
- package/dist/v2/events/index.d.ts.map +1 -0
- package/dist/v2/events/listeners.d.ts +8 -0
- package/dist/v2/events/listeners.d.ts.map +1 -0
- package/dist/v2/events/listeners.js +15 -0
- package/dist/v2/styles.d.ts +2 -0
- package/dist/v2/styles.d.ts.map +1 -0
- package/package.json +13 -11
- package/dist/components/HttpMethod/constants.d.ts +0 -9
- package/dist/components/HttpMethod/constants.d.ts.map +0 -1
- package/dist/components/HttpMethod/constants.js +0 -36
- package/dist/components/HttpMethod/utils/isRequestMethod.d.ts +0 -4
- package/dist/components/HttpMethod/utils/isRequestMethod.d.ts.map +0 -1
- package/dist/components/HttpMethod/utils/isRequestMethod.js +0 -7
- package/dist/components/Layouts/ClassicLayout.vue.d.ts +0 -23
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +0 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +0 -67
- package/dist/components/Layouts/ClassicLayout.vue2.js +0 -4
- package/dist/components/Layouts/Layouts.vue.d.ts +0 -26
- package/dist/components/Layouts/Layouts.vue.d.ts.map +0 -1
- package/dist/components/Layouts/Layouts.vue.js +0 -35
- package/dist/components/Layouts/Layouts.vue2.js +0 -4
- package/dist/components/Layouts/ModernLayout.vue.d.ts +0 -23
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +0 -1
- package/dist/components/Layouts/ModernLayout.vue.js +0 -8
- package/dist/components/Layouts/ModernLayout.vue2.js +0 -102
- package/dist/components/Layouts/index.d.ts +0 -2
- package/dist/components/Layouts/index.d.ts.map +0 -1
- package/dist/components/SingleApiReference.vue.d.ts +0 -29
- package/dist/components/SingleApiReference.vue.d.ts.map +0 -1
- package/dist/components/SingleApiReference.vue.js +0 -57
- package/dist/components/SingleApiReference.vue3.js +0 -5
- package/dist/helpers/freeze-element.d.ts +0 -11
- package/dist/helpers/freeze-element.d.ts.map +0 -1
- package/dist/helpers/freeze-element.js +0 -20
- package/dist/helpers/is-mac-os.d.ts +0 -5
- package/dist/helpers/is-mac-os.d.ts.map +0 -1
- package/dist/helpers/is-mac-os.js +0 -4
- package/dist/helpers/measure.d.ts +0 -21
- package/dist/helpers/measure.d.ts.map +0 -1
- package/dist/helpers/measure.js +0 -7
- package/dist/helpers/scroll-to-id.d.ts +0 -7
- package/dist/helpers/scroll-to-id.d.ts.map +0 -1
- package/dist/helpers/scroll-to-id.js +0 -21
- package/dist/helpers/sleep.d.ts +0 -6
- package/dist/helpers/sleep.d.ts.map +0 -1
- package/dist/helpers/sleep.js +0 -4
- package/dist/legacy/helpers/index.d.ts +0 -2
- package/dist/legacy/helpers/index.d.ts.map +0 -1
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts +0 -6
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +0 -1
- package/dist/legacy/helpers/normalizeRequestMethod.js +0 -10
|
@@ -2,10 +2,11 @@ import { defineComponent as f, computed as g, createBlock as p, createCommentVNo
|
|
|
2
2
|
import V from "../../ScreenReader.vue.js";
|
|
3
3
|
import { useNavState as _ } from "../../../hooks/useNavState.js";
|
|
4
4
|
import v from "./OperationsListItem.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
5
|
+
import I from "../../Card/Card.vue.js";
|
|
6
|
+
import L from "../../Card/CardHeader.vue.js";
|
|
7
|
+
import S from "../../Card/CardContent.vue.js";
|
|
8
|
+
import { operationIdParams as b } from "../../../features/traverse-schema/helpers/operation-id-params.js";
|
|
9
|
+
const h = ["aria-label"], $ = /* @__PURE__ */ f({
|
|
9
10
|
__name: "OperationsList",
|
|
10
11
|
props: {
|
|
11
12
|
tag: {},
|
|
@@ -16,12 +17,12 @@ const h = ["aria-label"], T = /* @__PURE__ */ f({
|
|
|
16
17
|
const l = c, { getOperationId: u } = _(), n = g(() => l.tag["x-displayName"] ?? l.tag.name);
|
|
17
18
|
return (e, s) => {
|
|
18
19
|
var i;
|
|
19
|
-
return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (a(), p(t(
|
|
20
|
+
return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (a(), p(t(I), {
|
|
20
21
|
key: 0,
|
|
21
22
|
class: "scalar-card-sticky"
|
|
22
23
|
}, {
|
|
23
24
|
default: o(() => [
|
|
24
|
-
r(t(
|
|
25
|
+
r(t(L), { muted: "" }, {
|
|
25
26
|
default: o(() => [
|
|
26
27
|
r(V, null, {
|
|
27
28
|
default: o(() => [
|
|
@@ -33,7 +34,7 @@ const h = ["aria-label"], T = /* @__PURE__ */ f({
|
|
|
33
34
|
]),
|
|
34
35
|
_: 1
|
|
35
36
|
}),
|
|
36
|
-
r(t(
|
|
37
|
+
r(t(S), {
|
|
37
38
|
class: "custom-scroll",
|
|
38
39
|
muted: ""
|
|
39
40
|
}, {
|
|
@@ -43,7 +44,7 @@ const h = ["aria-label"], T = /* @__PURE__ */ f({
|
|
|
43
44
|
class: "endpoints"
|
|
44
45
|
}, [
|
|
45
46
|
(a(!0), y(O, null, B(e.tag.operations, (m) => (a(), p(v, {
|
|
46
|
-
key: t(u)(m, e.tag),
|
|
47
|
+
key: t(u)(t(b)(m), e.tag),
|
|
47
48
|
collection: e.collection,
|
|
48
49
|
isCollapsed: e.isCollapsed,
|
|
49
50
|
tag: e.tag,
|
|
@@ -60,5 +61,5 @@ const h = ["aria-label"], T = /* @__PURE__ */ f({
|
|
|
60
61
|
}
|
|
61
62
|
});
|
|
62
63
|
export {
|
|
63
|
-
|
|
64
|
+
$ as default
|
|
64
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAqIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAoJF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./OperationsListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-975d0b2f"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import { getPointer as
|
|
1
|
+
import { defineComponent as h, computed as O, createElementBlock as g, createCommentVNode as i, unref as t, openBlock as l, createBlock as k, createElementVNode as m, withCtx as C, createTextVNode as v, toDisplayString as p, withModifiers as y, createVNode as B, normalizeClass as N } from "vue";
|
|
2
|
+
import { useWorkspace as V } from "@scalar/api-client/store";
|
|
3
|
+
import { getPointer as I } from "../../../blocks/helpers/getPointer.js";
|
|
4
4
|
import { useBlockProps as S } from "../../../blocks/hooks/useBlockProps.js";
|
|
5
5
|
import { useNavState as w } from "../../../hooks/useNavState.js";
|
|
6
6
|
import { useSidebar as H } from "../../../hooks/useSidebar.js";
|
|
7
|
-
import { isOperationDeprecated as
|
|
7
|
+
import { isOperationDeprecated as P } from "../../../libs/openapi.js";
|
|
8
|
+
import { operationIdParams as s } from "../../../features/traverse-schema/helpers/operation-id-params.js";
|
|
8
9
|
import T from "../../Section/SectionHeaderTag.vue.js";
|
|
9
10
|
import $ from "../../HttpMethod/HttpMethod.vue.js";
|
|
10
|
-
const b = ["href"],
|
|
11
|
+
const b = ["href"], J = /* @__PURE__ */ h({
|
|
11
12
|
__name: "OperationsListItem",
|
|
12
13
|
props: {
|
|
13
14
|
transformedOperation: {},
|
|
@@ -16,53 +17,53 @@ const b = ["href"], F = /* @__PURE__ */ u({
|
|
|
16
17
|
isCollapsed: { type: Boolean }
|
|
17
18
|
},
|
|
18
19
|
setup(a) {
|
|
19
|
-
const { getOperationId: n } = w(), { scrollToOperation:
|
|
20
|
-
const o = n(e, a.tag);
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
store:
|
|
20
|
+
const { getOperationId: n } = w(), { scrollToOperation: c } = H(), d = async (e) => {
|
|
21
|
+
const o = n(s(e), a.tag);
|
|
22
|
+
c(o, !0);
|
|
23
|
+
}, f = V(), { operation: r } = S({
|
|
24
|
+
store: f,
|
|
24
25
|
collection: a.collection,
|
|
25
|
-
location:
|
|
26
|
+
location: I([
|
|
26
27
|
"paths",
|
|
27
28
|
a.transformedOperation.path,
|
|
28
29
|
a.transformedOperation.httpVerb.toLowerCase()
|
|
29
30
|
])
|
|
30
|
-
}),
|
|
31
|
+
}), u = O(() => {
|
|
31
32
|
var e, o;
|
|
32
33
|
return ((e = r.value) == null ? void 0 : e.summary) || ((o = r.value) == null ? void 0 : o.path);
|
|
33
34
|
});
|
|
34
|
-
return (e, o) => t(r) ? (
|
|
35
|
-
key: t(n)(e.transformedOperation, e.tag),
|
|
35
|
+
return (e, o) => t(r) ? (l(), g("li", {
|
|
36
|
+
key: t(n)(t(s)(e.transformedOperation), e.tag),
|
|
36
37
|
class: "contents"
|
|
37
38
|
}, [
|
|
38
|
-
e.isCollapsed ? (
|
|
39
|
+
e.isCollapsed ? (l(), k(t(T), {
|
|
39
40
|
key: 0,
|
|
40
41
|
class: "sr-only",
|
|
41
42
|
level: 3
|
|
42
43
|
}, {
|
|
43
|
-
default:
|
|
44
|
-
|
|
44
|
+
default: C(() => [
|
|
45
|
+
v(p(u.value) + " (Hidden) ", 1)
|
|
45
46
|
]),
|
|
46
47
|
_: 1
|
|
47
|
-
})) :
|
|
48
|
-
|
|
48
|
+
})) : i("", !0),
|
|
49
|
+
m("a", {
|
|
49
50
|
class: "endpoint",
|
|
50
|
-
href: `#${t(n)(e.transformedOperation, e.tag)}`,
|
|
51
|
-
onClick: o[0] || (o[0] =
|
|
51
|
+
href: `#${t(n)(t(s)(e.transformedOperation), e.tag)}`,
|
|
52
|
+
onClick: o[0] || (o[0] = y((D) => d(e.transformedOperation), ["prevent"]))
|
|
52
53
|
}, [
|
|
53
|
-
|
|
54
|
+
B(t($), {
|
|
54
55
|
class: "endpoint-method",
|
|
55
56
|
method: t(r).method
|
|
56
57
|
}, null, 8, ["method"]),
|
|
57
|
-
|
|
58
|
-
class:
|
|
59
|
-
deprecated: t(
|
|
58
|
+
m("span", {
|
|
59
|
+
class: N(["endpoint-path", {
|
|
60
|
+
deprecated: t(P)(t(r))
|
|
60
61
|
}])
|
|
61
|
-
},
|
|
62
|
+
}, p(t(r).path), 3)
|
|
62
63
|
], 8, b)
|
|
63
|
-
])) :
|
|
64
|
+
])) : i("", !0);
|
|
64
65
|
}
|
|
65
66
|
});
|
|
66
67
|
export {
|
|
67
|
-
|
|
68
|
+
J as default
|
|
68
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAkFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAchE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;AAgIF,wBAMG"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarErrorBoundary as
|
|
3
|
-
import { useNavState as
|
|
4
|
-
import { useSidebar as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as B, computed as f, createElementBlock as p, openBlock as s, Fragment as y, renderList as h, createBlock as n, unref as e, withCtx as l, resolveDynamicComponent as T, createVNode as v } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as $ } from "@scalar/components";
|
|
3
|
+
import { useNavState as b } from "../../../hooks/useNavState.js";
|
|
4
|
+
import { useSidebar as C } from "../../../hooks/useSidebar.js";
|
|
5
|
+
import O from "./TagAccordion.vue.js";
|
|
6
|
+
import _ from "./TagSection.vue.js";
|
|
7
7
|
import L from "../Lazy/Lazy.vue2.js";
|
|
8
|
-
import
|
|
9
|
-
|
|
8
|
+
import { operationIdParams as I } from "../../../features/traverse-schema/helpers/operation-id-params.js";
|
|
9
|
+
import E from "../../../features/Operation/Operation.vue.js";
|
|
10
|
+
const G = /* @__PURE__ */ B({
|
|
10
11
|
__name: "TagList",
|
|
11
12
|
props: {
|
|
12
13
|
collection: {},
|
|
@@ -16,39 +17,39 @@ const q = /* @__PURE__ */ S({
|
|
|
16
17
|
server: {},
|
|
17
18
|
schemas: {}
|
|
18
19
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const { getOperationId:
|
|
21
|
-
() =>
|
|
22
|
-
),
|
|
23
|
-
() =>
|
|
24
|
-
),
|
|
25
|
-
return (
|
|
26
|
-
id:
|
|
27
|
-
key:
|
|
28
|
-
isLazy: u
|
|
20
|
+
setup(i) {
|
|
21
|
+
const { getOperationId: c, getTagId: t, hash: z } = b(), { collapsedSidebarItems: m } = C(), g = f(
|
|
22
|
+
() => i.layout === "classic" ? O : _
|
|
23
|
+
), k = f(
|
|
24
|
+
() => i.tags.findIndex((o) => !m[t(o)]) + 1
|
|
25
|
+
), d = (o) => i.layout !== "classic" && !z.value.startsWith("model") && o > k.value;
|
|
26
|
+
return (o, N) => (s(!0), p(y, null, h(o.tags, (r, u) => (s(), n(e(L), {
|
|
27
|
+
id: e(t)(r),
|
|
28
|
+
key: e(t)(r),
|
|
29
|
+
isLazy: d(u)
|
|
29
30
|
}, {
|
|
30
31
|
default: l(() => [
|
|
31
|
-
(s(),
|
|
32
|
-
id:
|
|
33
|
-
collection:
|
|
34
|
-
spec:
|
|
35
|
-
tag:
|
|
32
|
+
(s(), n(T(g.value), {
|
|
33
|
+
id: e(t)(r),
|
|
34
|
+
collection: o.collection,
|
|
35
|
+
spec: o.spec,
|
|
36
|
+
tag: r
|
|
36
37
|
}, {
|
|
37
38
|
default: l(() => [
|
|
38
|
-
(s(!0), p(y, null, h(
|
|
39
|
-
id:
|
|
39
|
+
(s(!0), p(y, null, h(r.operations, (a, S) => (s(), n(e(L), {
|
|
40
|
+
id: e(c)(e(I)(a), r),
|
|
40
41
|
key: `${a.httpVerb}-${a.operationId}`,
|
|
41
|
-
isLazy: u
|
|
42
|
+
isLazy: d(u) || e(m)[e(t)(r)] && S > 0
|
|
42
43
|
}, {
|
|
43
44
|
default: l(() => [
|
|
44
|
-
v(
|
|
45
|
+
v(e($), null, {
|
|
45
46
|
default: l(() => [
|
|
46
|
-
v(
|
|
47
|
-
id:
|
|
48
|
-
collection:
|
|
49
|
-
layout:
|
|
50
|
-
schemas:
|
|
51
|
-
server:
|
|
47
|
+
v(e(E), {
|
|
48
|
+
id: e(c)(e(I)(a), r),
|
|
49
|
+
collection: o.collection,
|
|
50
|
+
layout: o.layout,
|
|
51
|
+
schemas: o.schemas,
|
|
52
|
+
server: o.server,
|
|
52
53
|
transformedOperation: a
|
|
53
54
|
}, null, 8, ["id", "collection", "layout", "schemas", "server", "transformedOperation"])
|
|
54
55
|
]),
|
|
@@ -66,5 +67,5 @@ const q = /* @__PURE__ */ S({
|
|
|
66
67
|
}
|
|
67
68
|
});
|
|
68
69
|
export {
|
|
69
|
-
|
|
70
|
+
G as default
|
|
70
71
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DocumentSelector/DocumentSelector.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocumentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DocumentSelector/DocumentSelector.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;;;;;;AA+HF,wBAOG"}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarListbox as g
|
|
1
|
+
import { defineComponent as p, computed as s, createElementBlock as b, createCommentVNode as f, openBlock as x, createVNode as a, unref as i, withCtx as v, createElementVNode as d, toDisplayString as V } from "vue";
|
|
2
|
+
import { ScalarListbox as g } from "@scalar/components";
|
|
3
|
+
import { ScalarIconCaretUpDown as h } from "@scalar/icons";
|
|
3
4
|
const w = {
|
|
4
5
|
key: 0,
|
|
5
6
|
class: "document-selector -mb-1 p-3 pb-0"
|
|
6
7
|
}, S = {
|
|
7
8
|
class: "group/dropdown-label hover:bg-b-2 text-c-2 flex w-full cursor-pointer items-center rounded border py-1.75 pr-1.5 pl-1.75",
|
|
8
9
|
tabindex: "0"
|
|
9
|
-
},
|
|
10
|
+
}, _ = { class: "text-c-1 overflow-hidden text-sm font-medium text-ellipsis" }, y = /* @__PURE__ */ p({
|
|
10
11
|
__name: "DocumentSelector",
|
|
11
12
|
props: {
|
|
12
13
|
options: {},
|
|
13
14
|
modelValue: {}
|
|
14
15
|
},
|
|
15
16
|
emits: ["update:modelValue"],
|
|
16
|
-
setup(l, { emit:
|
|
17
|
-
const
|
|
17
|
+
setup(l, { emit: c }) {
|
|
18
|
+
const m = c, u = s(() => {
|
|
18
19
|
var e;
|
|
19
20
|
return l.options && ((e = l.options) == null ? void 0 : e.length) > 1;
|
|
20
|
-
}), r =
|
|
21
|
+
}), r = s(
|
|
21
22
|
() => {
|
|
22
23
|
var e;
|
|
23
24
|
return ((e = l.options) == null ? void 0 : e.map((o, t) => ({
|
|
@@ -26,42 +27,34 @@ const w = {
|
|
|
26
27
|
label: o.title || o.slug || `API #${t + 1}`
|
|
27
28
|
}))) || [];
|
|
28
29
|
}
|
|
29
|
-
),
|
|
30
|
+
), n = s({
|
|
30
31
|
get: () => r.value.find(({ id: e }) => e === String(l.modelValue)),
|
|
31
|
-
set: (e) =>
|
|
32
|
+
set: (e) => m("update:modelValue", Number(e.id))
|
|
32
33
|
});
|
|
33
|
-
return (e, o) =>
|
|
34
|
-
i(
|
|
35
|
-
modelValue:
|
|
36
|
-
"onUpdate:modelValue": o[0] || (o[0] = (t) =>
|
|
34
|
+
return (e, o) => u.value ? (x(), b("div", w, [
|
|
35
|
+
a(i(g), {
|
|
36
|
+
modelValue: n.value,
|
|
37
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => n.value = t),
|
|
37
38
|
options: r.value,
|
|
38
39
|
resize: ""
|
|
39
40
|
}, {
|
|
40
|
-
default:
|
|
41
|
+
default: v(() => {
|
|
41
42
|
var t;
|
|
42
43
|
return [
|
|
43
|
-
|
|
44
|
-
i(
|
|
45
|
-
class: "mr-1.
|
|
46
|
-
|
|
47
|
-
size: "sm",
|
|
48
|
-
thickness: "2"
|
|
44
|
+
d("div", S, [
|
|
45
|
+
a(i(h), {
|
|
46
|
+
class: "mr-1.5 h-3 w-3 text-current",
|
|
47
|
+
weight: "bold"
|
|
49
48
|
}),
|
|
50
|
-
|
|
51
|
-
i(a(d), {
|
|
52
|
-
class: "group-hover/dropdown-label:text-c-1 mr-2 ml-auto",
|
|
53
|
-
icon: "ChevronDown",
|
|
54
|
-
size: "sm",
|
|
55
|
-
thickness: "2"
|
|
56
|
-
})
|
|
49
|
+
d("span", _, V(((t = n.value) == null ? void 0 : t.label) || "Select API"), 1)
|
|
57
50
|
])
|
|
58
51
|
];
|
|
59
52
|
}),
|
|
60
53
|
_: 1
|
|
61
54
|
}, 8, ["modelValue", "options"])
|
|
62
|
-
])) :
|
|
55
|
+
])) : f("", !0);
|
|
63
56
|
}
|
|
64
57
|
});
|
|
65
58
|
export {
|
|
66
|
-
|
|
59
|
+
y as default
|
|
67
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GettingStarted.vue.d.ts","sourceRoot":"","sources":["../../src/components/GettingStarted.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GettingStarted.vue.d.ts","sourceRoot":"","sources":["../../src/components/GettingStarted.vue"],"names":[],"mappings":"AA4cA,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAI1D,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,OAAO,CAAA;CACf,CAAC;;;YAIwC,OAAO;eAAS,MAAM;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;AA6QhE,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./GettingStarted.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ a(t, [["__scopeId", "data-v-0aca3a20"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarButton as
|
|
3
|
-
import { themeLabels as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as f, createElementBlock as o, openBlock as i, createElementVNode as e, createStaticVNode as r, createVNode as c, unref as l, withCtx as n, createTextVNode as d, Fragment as w, renderList as y, normalizeClass as A, toDisplayString as C } from "vue";
|
|
2
|
+
import { ScalarButton as p } from "@scalar/components";
|
|
3
|
+
import { themeLabels as v } from "@scalar/themes";
|
|
4
|
+
const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, E = ["onClick"], P = /* @__PURE__ */ f({
|
|
5
5
|
__name: "GettingStarted",
|
|
6
6
|
props: {
|
|
7
7
|
theme: {}
|
|
8
8
|
},
|
|
9
9
|
emits: ["changeTheme", "loadSwaggerFile", "linkSwaggerFile", "updateContent"],
|
|
10
|
-
setup(F, { emit:
|
|
11
|
-
const
|
|
10
|
+
setup(F, { emit: g }) {
|
|
11
|
+
const m = g, h = [
|
|
12
12
|
"default",
|
|
13
13
|
"alternate",
|
|
14
14
|
"moon",
|
|
@@ -20,49 +20,49 @@ const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { c
|
|
|
20
20
|
"mars",
|
|
21
21
|
"deepSpace"
|
|
22
22
|
];
|
|
23
|
-
async function
|
|
23
|
+
async function u() {
|
|
24
24
|
const s = await fetch(
|
|
25
25
|
"https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml"
|
|
26
26
|
);
|
|
27
|
-
|
|
27
|
+
m("updateContent", await s.text());
|
|
28
28
|
}
|
|
29
|
-
return (s, a) => (
|
|
30
|
-
e("div",
|
|
31
|
-
a[3] || (a[3] = r('<div class="start-logo" data-v-
|
|
32
|
-
e("div",
|
|
33
|
-
|
|
29
|
+
return (s, a) => (i(), o("div", S, [
|
|
30
|
+
e("div", x, [
|
|
31
|
+
a[3] || (a[3] = r('<div class="start-logo" data-v-0aca3a20><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-0aca3a20></path></svg></div><h1 class="start-h1" data-v-0aca3a20>Swagger Editor</h1><p class="start-p" data-v-0aca3a20> Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
|
|
32
|
+
e("div", b, [
|
|
33
|
+
c(l(p), {
|
|
34
34
|
fullWidth: "",
|
|
35
|
-
onClick:
|
|
35
|
+
onClick: u
|
|
36
36
|
}, {
|
|
37
37
|
default: n(() => a[1] || (a[1] = [
|
|
38
|
-
|
|
38
|
+
d(" Show Example ")
|
|
39
39
|
])),
|
|
40
40
|
_: 1
|
|
41
41
|
}),
|
|
42
|
-
|
|
42
|
+
c(l(p), {
|
|
43
43
|
fullWidth: "",
|
|
44
44
|
variant: "outlined",
|
|
45
45
|
onClick: a[0] || (a[0] = (t) => s.$emit("loadSwaggerFile"))
|
|
46
46
|
}, {
|
|
47
47
|
default: n(() => a[2] || (a[2] = [
|
|
48
|
-
|
|
48
|
+
d(" Upload File ")
|
|
49
49
|
])),
|
|
50
50
|
_: 1
|
|
51
51
|
})
|
|
52
52
|
])
|
|
53
53
|
]),
|
|
54
54
|
e("div", k, [
|
|
55
|
-
a[5] || (a[5] = r('<div class="start-section start-section-integrations" data-v-
|
|
55
|
+
a[5] || (a[5] = r('<div class="start-section start-section-integrations" data-v-0aca3a20><div class="start-h2" data-v-0aca3a20>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-0aca3a20><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-0aca3a20></path></svg><span data-v-0aca3a20>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-0aca3a20><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g data-v-0aca3a20><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-0aca3a20></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0aca3a20></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0aca3a20></path></g></svg><span data-v-0aca3a20>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-0aca3a20><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g fill="currentColor" fill-rule="nonzero" data-v-0aca3a20><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-0aca3a20></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-0aca3a20></polygon></g></svg><span data-v-0aca3a20>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-0aca3a20><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g fill="none" fill-rule="evenodd" data-v-0aca3a20><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-0aca3a20></circle><g stroke="currentColor" data-v-0aca3a20><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-0aca3a20></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-0aca3a20></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-0aca3a20></ellipse></g></g></svg><span data-v-0aca3a20>React</span></a></div>', 1)),
|
|
56
56
|
e("div", Z, [
|
|
57
57
|
a[4] || (a[4] = e("p", { class: "start-h2" }, "THEMING", -1)),
|
|
58
|
-
(
|
|
58
|
+
(i(), o(w, null, y(h, (t) => e("div", {
|
|
59
59
|
key: t,
|
|
60
|
-
class:
|
|
61
|
-
onClick: (B) => s.$emit("changeTheme", { id: t, label: l(
|
|
62
|
-
},
|
|
60
|
+
class: A(["start-item", { "start-item-active": t === s.theme }]),
|
|
61
|
+
onClick: (B) => s.$emit("changeTheme", { id: t, label: l(v)[t] })
|
|
62
|
+
}, C(l(v)[t]), 11, E)), 64))
|
|
63
63
|
])
|
|
64
64
|
]),
|
|
65
|
-
a[6] || (a[6] = r('<p class="start-h1" data-v-
|
|
65
|
+
a[6] || (a[6] = r('<p class="start-h1" data-v-0aca3a20>Features</p><ul class="start-ul" data-v-0aca3a20><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Customize</p> Bring your typography & color palettes, or use our themes! </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Testing</p> A deeply integrated Rest API Client (Also Free & Open-Source) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>OpenAPI & Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
|
|
66
66
|
]));
|
|
67
67
|
}
|
|
68
68
|
});
|
|
@@ -10,25 +10,6 @@ type __VLS_Props = {
|
|
|
10
10
|
/** The HTTP method to show */
|
|
11
11
|
method: OpenAPI.HttpMethod | string;
|
|
12
12
|
};
|
|
13
|
-
declare
|
|
14
|
-
attrs: Partial<{}>;
|
|
15
|
-
slots: {
|
|
16
|
-
default?(_: {
|
|
17
|
-
normalized: string;
|
|
18
|
-
abbreviated: string;
|
|
19
|
-
color: string;
|
|
20
|
-
}): any;
|
|
21
|
-
};
|
|
22
|
-
refs: {};
|
|
23
|
-
rootEl: any;
|
|
24
|
-
};
|
|
25
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
-
declare const __VLS_component: 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>;
|
|
27
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
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>;
|
|
28
14
|
export default _default;
|
|
29
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
-
new (): {
|
|
31
|
-
$slots: S;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
15
|
//# sourceMappingURL=HttpMethod.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,KAAK,WAAW,GAAG;IACjB,2DAA2D;IAC3D,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;IACvB,2GAA2G;IAC3G,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,8BAA8B;IAC9B,MAAM,EAAE,OAAO,CAAC,UAAU,GAAG,MAAM,CAAA;CACpC,CAAC;;AAqEF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as n, computed as r, createBlock as s, openBlock as l, resolveDynamicComponent as m, normalizeStyle as c, withCtx as d, createTextVNode as h, toDisplayString as i } from "vue";
|
|
2
|
+
import { getHttpMethodInfo as u } from "@scalar/helpers/http/http-info";
|
|
3
|
+
import { normalizeHttpMethod as f } from "@scalar/helpers/http/normalize-http-method";
|
|
4
|
+
const z = /* @__PURE__ */ n({
|
|
5
5
|
__name: "HttpMethod",
|
|
6
6
|
props: {
|
|
7
7
|
as: {},
|
|
@@ -9,20 +9,19 @@ const S = /* @__PURE__ */ u({
|
|
|
9
9
|
short: { type: Boolean },
|
|
10
10
|
method: {}
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
return (o,
|
|
15
|
-
|
|
12
|
+
setup(p) {
|
|
13
|
+
const t = p, e = r(() => u(t.method)), a = r(() => f(t.method));
|
|
14
|
+
return (o, y) => (l(), s(m(o.as ?? "span"), {
|
|
15
|
+
class: "uppercase",
|
|
16
|
+
style: c({ [o.property || "color"]: e.value.colorVar })
|
|
16
17
|
}, {
|
|
17
18
|
default: d(() => [
|
|
18
|
-
|
|
19
|
-
y(b(o.short ? t.value : e.value), 1)
|
|
20
|
-
])
|
|
19
|
+
h(i(o.short ? e.value.short : a.value), 1)
|
|
21
20
|
]),
|
|
22
|
-
_:
|
|
21
|
+
_: 1
|
|
23
22
|
}, 8, ["style"]));
|
|
24
23
|
}
|
|
25
24
|
});
|
|
26
25
|
export {
|
|
27
|
-
|
|
26
|
+
z as default
|
|
28
27
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CompactSection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4b9f7b57"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as u, ref as m, useId as f, watch as v, nextTick as h, createElementBlock as b, openBlock as n, createElementVNode as C, createBlock as k, createCommentVNode as g, normalizeClass as S, unref as t, createVNode as r, withCtx as s, renderSlot as c } from "vue";
|
|
2
2
|
import { ScalarIcon as _ } from "@scalar/components";
|
|
3
|
-
import w from "
|
|
4
|
-
import N from "
|
|
5
|
-
import
|
|
3
|
+
import { scrollToId as w } from "@scalar/helpers/dom/scroll-to-id";
|
|
4
|
+
import N from "../Anchor/Anchor.vue.js";
|
|
5
|
+
import y from "./Section.vue.js";
|
|
6
6
|
import { useNavState as B } from "../../hooks/useNavState.js";
|
|
7
7
|
const I = { class: "collapsible-section" }, V = ["id", "aria-controls", "aria-expanded"], R = /* @__PURE__ */ u({
|
|
8
8
|
__name: "CompactSection",
|
|
@@ -15,7 +15,7 @@ const I = { class: "collapsible-section" }, V = ["id", "aria-controls", "aria-ex
|
|
|
15
15
|
return v(
|
|
16
16
|
p,
|
|
17
17
|
async (o) => {
|
|
18
|
-
o === a.id && !e.value && (e.value = !0, await h(),
|
|
18
|
+
o === a.id && !e.value && (e.value = !0, await h(), w(a.id));
|
|
19
19
|
},
|
|
20
20
|
{ immediate: !0 }
|
|
21
21
|
), (o, i) => (n(), b("div", I, [
|
|
@@ -32,7 +32,7 @@ const I = { class: "collapsible-section" }, V = ["id", "aria-controls", "aria-ex
|
|
|
32
32
|
size: "md",
|
|
33
33
|
thickness: "1.5"
|
|
34
34
|
}, null, 8, ["icon"]),
|
|
35
|
-
r(
|
|
35
|
+
r(N, {
|
|
36
36
|
id: o.id,
|
|
37
37
|
class: "collapsible-section-header"
|
|
38
38
|
}, {
|
|
@@ -42,7 +42,7 @@ const I = { class: "collapsible-section" }, V = ["id", "aria-controls", "aria-ex
|
|
|
42
42
|
_: 3
|
|
43
43
|
}, 8, ["id"])
|
|
44
44
|
], 10, V),
|
|
45
|
-
e.value ? (n(), k(
|
|
45
|
+
e.value ? (n(), k(y, {
|
|
46
46
|
key: 0,
|
|
47
47
|
id: t(l),
|
|
48
48
|
class: "collapsible-section-content",
|