@scalar/api-reference 1.31.3 → 1.31.4
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 +36 -0
- package/dist/browser/standalone.js +9287 -9267
- 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 +69 -71
- 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/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.js +1 -1
- package/dist/legacy/fixtures/httpRequestMethods.js +2 -6
- 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/package.json +12 -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/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
|
};
|
|
@@ -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",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AA2RA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAMhD,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAIlE,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;CACjB,GAAG,YAAY,CAAC;AAqHnB,iBAAS,cAAc;WA4NT,OAAO,IAA6B;;iCAVb,GAAG;+BACJ,GAAG;;;;;;EActC;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Sidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-277426a8"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as F, ref as w, watch as N, onMounted as L, onUnmounted as G, createElementBlock as n, openBlock as s, renderSlot as V, createElementVNode as A, createVNode as M, withCtx as v, Fragment as d, renderList as m, unref as u, toDisplayString as D, createBlock as f, createCommentVNode as h } from "vue";
|
|
2
|
+
import { sleep as C } from "@scalar/helpers/testing/sleep";
|
|
2
3
|
import S from "./SidebarElement.vue.js";
|
|
3
4
|
import T from "./SidebarGroup.vue.js";
|
|
4
|
-
import { sleep as C } from "../../helpers/sleep.js";
|
|
5
5
|
import { useNavState as H } from "../../hooks/useNavState.js";
|
|
6
6
|
import { useSidebar as R } from "../../hooks/useSidebar.js";
|
|
7
7
|
const U = { class: "sidebar" }, j = ["aria-label"], q = { class: "sidebar-group-title" }, x = -160, X = /* @__PURE__ */ F({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidebarElement.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-666e87c6"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as A, createElementBlock as p, openBlock as s, createElementVNode as r, renderSlot as v, createCommentVNode as l, normalizeClass as T, unref as c, createTextVNode as h, withModifiers as V, createVNode as C, withCtx as E, toDisplayString as u, createBlock as N } from "vue";
|
|
2
2
|
import { ScalarSidebarGroupToggle as O, ScalarIcon as R } from "@scalar/components";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { scrollToId as U } from "@scalar/helpers/dom/scroll-to-id";
|
|
4
|
+
import { sleep as k } from "@scalar/helpers/testing/sleep";
|
|
5
|
+
import { combineUrlAndPath as H } from "@scalar/oas-utils/helpers";
|
|
6
6
|
import { useConfig as I } from "../../hooks/useConfig.js";
|
|
7
7
|
import { useNavState as P } from "../../hooks/useNavState.js";
|
|
8
8
|
import D from "./SidebarHttpBadge.vue.js";
|
|
@@ -31,7 +31,7 @@ const L = ["id"], M = {
|
|
|
31
31
|
d.value = !1, i.hasChildren && m("toggleOpen"), (t = (e = i.item) == null ? void 0 : e.select) == null || t.call(e), await k(100), d.value = !0;
|
|
32
32
|
}, B = () => {
|
|
33
33
|
if (n.value.pathRouting)
|
|
34
|
-
return
|
|
34
|
+
return H(n.value.pathRouting.basePath, i.item.id);
|
|
35
35
|
if (typeof window < "u") {
|
|
36
36
|
const e = new URL(window.location.href);
|
|
37
37
|
return e.hash = f(i.item.id), `${e.pathname}${e.search}${e.hash}`;
|
|
@@ -39,7 +39,7 @@ const L = ["id"], M = {
|
|
|
39
39
|
return `#${f(i.item.id)}`;
|
|
40
40
|
}, $ = async (e) => {
|
|
41
41
|
var t, a, o, b;
|
|
42
|
-
(a = (t = n.value).onSidebarClick) == null || a.call(t, i.item.id), n.value.pathRouting && (e.preventDefault(), i.hasChildren && m("toggleOpen"), (b = (o = i.item) == null ? void 0 : o.select) == null || b.call(o), m("toggleOpen"), d.value = !1, S(i.item.id),
|
|
42
|
+
(a = (t = n.value).onSidebarClick) == null || a.call(t, i.item.id), n.value.pathRouting && (e.preventDefault(), i.hasChildren && m("toggleOpen"), (b = (o = i.item) == null ? void 0 : o.select) == null || b.call(o), m("toggleOpen"), d.value = !1, S(i.item.id), U(i.item.id), await k(100), d.value = !0);
|
|
43
43
|
};
|
|
44
44
|
return (e, t) => {
|
|
45
45
|
var a, o;
|
package/dist/esm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esm.d.ts","sourceRoot":"","sources":["../src/esm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"esm.d.ts","sourceRoot":"","sources":["../src/esm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAO/F;;;;GAIG;AACH,wBAAgB,sBAAsB;AACpC,yCAAyC;AACzC,EAAE,EAAE,WAAW,GAAG,IAAI;AACtB,iDAAiD;AACjD,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,OAAO,CAAC,yBAAyB,CAAC,EAAE;AACxF;;;GAGG;AACH,iBAAiB,UAAO;IA2BtB,uDAAuD;4BAC/B,OAAO,CAAC,yBAAyB,CAAC;qBAOzC,iBAAiB;IAOlC,8CAA8C;;IAE9C,sCAAsC;;EAGzC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { measure as i } from "
|
|
1
|
+
import { measure as i } from "@scalar/helpers/testing/measure";
|
|
2
2
|
import { fetchDocument as f, prettyPrintJson as s } from "@scalar/oas-utils/helpers";
|
|
3
3
|
import { ref as u, watch as a, toValue as c } from "vue";
|
|
4
4
|
function l({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createActiveEntitiesStore, createWorkspaceStore } from '@scalar/api-client/store';
|
|
2
2
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
3
|
+
import type { Spec } from '@scalar/types/legacy';
|
|
3
4
|
import { type ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
4
5
|
import { type MaybeRefOrGetter, type Ref } from 'vue';
|
|
5
|
-
import type { Spec } from '@scalar/types/legacy';
|
|
6
6
|
/**
|
|
7
7
|
* Pass any data source, retrieve all the data stores and whatever we need to render the API reference.
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDocumentSource.d.ts","sourceRoot":"","sources":["../../../../src/features/DocumentSource/hooks/useDocumentSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAE1F,OAAO,KAAK,EAAW,WAAW,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"useDocumentSource.d.ts","sourceRoot":"","sources":["../../../../src/features/DocumentSource/hooks/useDocumentSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAE1F,OAAO,KAAK,EAAW,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEjE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,EAAE,KAAK,yBAAyB,EAAmC,MAAM,6BAA6B,CAAA;AAC7G,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,GAAG,EAAiC,MAAM,KAAK,CAAA;AAQpF;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,gBAAgB,EAAE,wBAAwB,EAC1C,oBAAoB,EAAE,4BAA4B,EAClD,aAAa,GACd,EAAE;IACD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAC3C,oBAAoB,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;IAC7D,aAAa,CAAC,EAAE,gBAAgB,CAAC,yBAAyB,CAAC,CAAA;CAC5D,GAAG;IACF,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC7B,sBAAsB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACnC,oBAAoB,EAAE,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;IAC/C,cAAc,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;IACzB,cAAc,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;IACvD,mBAAmB,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAA;CAClE,CA6IA"}
|