@scalar/api-reference 1.28.33 → 1.29.1
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/dist/browser/standalone.js +12818 -13331
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +2 -2
- package/dist/components/Anchor/Anchor.vue2.js +24 -22
- package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +50 -50
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +5 -5
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +31 -32
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +21 -21
- package/dist/components/Content/Lazy/Loading.vue.js +22 -22
- 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 +17 -17
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +14 -14
- package/dist/components/Content/Schema/Schema.preview.d.ts +98 -15
- package/dist/components/Content/Schema/Schema.preview.d.ts.map +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 +2 -1
- package/dist/components/Content/Schema/{SchemaDiscriminator.vue.d.ts → SchemaComposition.vue.d.ts} +3 -2
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaComposition.vue.js +187 -0
- package/dist/components/Content/Schema/SchemaComposition.vue2.js +4 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
- 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 +31 -30
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +0 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +8 -9
- 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 +165 -146
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +1 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +50 -40
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts +3 -2
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +13 -13
- package/dist/components/Content/Schema/helpers/schema-composition.d.ts +12 -0
- package/dist/components/Content/Schema/helpers/schema-composition.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/schema-composition.js +8 -0
- package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +4 -0
- package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +1 -0
- package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
- package/dist/components/Content/Tag/TagAccordion.vue2.js +10 -10
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +8 -8
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagSection.vue.js +2 -2
- package/dist/components/Content/Tag/TagSection.vue2.js +8 -8
- package/dist/components/GettingStarted.vue.d.ts +2 -2
- package/dist/components/Layouts/Layouts.vue.d.ts +3 -0
- package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
- package/dist/components/Layouts/Layouts.vue.js +14 -23
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +51 -45
- package/dist/components/MobileHeader.vue.js +3 -3
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +4 -4
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -1
- 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.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +6 -6
- package/dist/components/SingleApiReference.vue.d.ts +1 -0
- package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
- package/dist/components/SingleApiReference.vue.js +25 -22
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +3 -3
- package/dist/features/ApiClientModal/index.d.ts +1 -1
- package/dist/features/ApiClientModal/index.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +186 -146
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +11 -10
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue2.js +17 -17
- 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 +12 -12
- package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
- package/dist/features/Operation/Webhooks.vue.js +2 -2
- package/dist/features/Operation/Webhooks.vue2.js +13 -13
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +18 -18
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +38 -32
- package/dist/features/Operation/hooks/useResponses.d.ts +1 -0
- package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
- package/dist/features/Operation/hooks/useResponses.js +13 -12
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +1 -1
- 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 +1 -1
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +20 -21
- package/dist/helpers/{isMacOs.d.ts → is-mac-os.d.ts} +1 -1
- package/dist/helpers/is-mac-os.d.ts.map +1 -0
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +1 -1
- package/dist/helpers/{scrollToId.d.ts → scroll-to-id.d.ts} +1 -1
- package/dist/helpers/scroll-to-id.d.ts.map +1 -0
- package/dist/helpers/sleep.d.ts +0 -2
- package/dist/helpers/sleep.d.ts.map +1 -1
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +28 -28
- package/dist/hooks/useReactiveSpec.js +1 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +45 -49
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +44 -43
- package/dist/legacy/fixtures/index.d.ts +1 -1
- package/dist/legacy/fixtures/index.d.ts.map +1 -1
- package/dist/legacy/helpers/index.d.ts +1 -1
- package/dist/legacy/helpers/index.d.ts.map +1 -1
- package/dist/libs/download.d.ts +9 -0
- package/dist/libs/download.d.ts.map +1 -0
- package/dist/libs/download.js +19 -0
- package/dist/{helpers/getLowestHeadingLevel.d.ts → libs/markdown.d.ts} +5 -1
- package/dist/libs/markdown.d.ts.map +1 -0
- package/dist/libs/markdown.js +18 -0
- package/dist/libs/openapi.d.ts +56 -0
- package/dist/libs/openapi.d.ts.map +1 -0
- package/dist/libs/openapi.js +102 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +1 -45
- package/dist/types.d.ts.map +1 -1
- package/package.json +22 -27
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +0 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +0 -167
- package/dist/esm.js +0 -34
- package/dist/helpers/createEmptySpecification.d.ts +0 -8
- package/dist/helpers/createEmptySpecification.d.ts.map +0 -1
- package/dist/helpers/createEmptySpecification.js +0 -27
- package/dist/helpers/deepMerge.d.ts +0 -5
- package/dist/helpers/deepMerge.d.ts.map +0 -1
- package/dist/helpers/deepMerge.js +0 -8
- package/dist/helpers/generateParameters.d.ts +0 -6
- package/dist/helpers/generateParameters.d.ts.map +0 -1
- package/dist/helpers/get-request.d.ts +0 -59
- package/dist/helpers/get-request.d.ts.map +0 -1
- package/dist/helpers/getHeadingsFromMarkdown.d.ts +0 -6
- package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +0 -1
- package/dist/helpers/getHeadingsFromMarkdown.js +0 -13
- package/dist/helpers/getLowestHeadingLevel.d.ts.map +0 -1
- package/dist/helpers/getLowestHeadingLevel.js +0 -7
- package/dist/helpers/getModels.d.ts +0 -7
- package/dist/helpers/getModels.d.ts.map +0 -1
- package/dist/helpers/getModels.js +0 -22
- package/dist/helpers/getVariableNames.d.ts +0 -5
- package/dist/helpers/getVariableNames.d.ts.map +0 -1
- package/dist/helpers/hasModels.d.ts +0 -3
- package/dist/helpers/hasModels.d.ts.map +0 -1
- package/dist/helpers/hasModels.js +0 -5
- package/dist/helpers/hasSecuritySchemes.d.ts +0 -3
- package/dist/helpers/hasSecuritySchemes.d.ts.map +0 -1
- package/dist/helpers/hasWebhooks.d.ts +0 -3
- package/dist/helpers/hasWebhooks.d.ts.map +0 -1
- package/dist/helpers/hasWebhooks.js +0 -4
- package/dist/helpers/index.d.ts +0 -17
- package/dist/helpers/index.d.ts.map +0 -1
- package/dist/helpers/isMacOs.d.ts.map +0 -1
- package/dist/helpers/mapFromObject.d.ts +0 -8
- package/dist/helpers/mapFromObject.d.ts.map +0 -1
- package/dist/helpers/mergeAllObjects.d.ts +0 -5
- package/dist/helpers/mergeAllObjects.d.ts.map +0 -1
- package/dist/helpers/scrollToId.d.ts.map +0 -1
- package/dist/helpers/specDownloads.d.ts +0 -7
- package/dist/helpers/specDownloads.d.ts.map +0 -1
- package/dist/helpers/specDownloads.js +0 -19
- package/dist/helpers/specHelpers.d.ts +0 -16
- package/dist/helpers/specHelpers.d.ts.map +0 -1
- package/dist/helpers/specHelpers.js +0 -36
- package/dist/helpers/waitFor.d.ts +0 -5
- package/dist/helpers/waitFor.d.ts.map +0 -1
- package/dist/hooks/index.d.ts +0 -5
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/legacy/helpers/encodeStringAsBase64.d.ts +0 -5
- package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +0 -1
- package/dist/legacy/index.d.ts +0 -5
- package/dist/legacy/index.d.ts.map +0 -1
- package/dist/legacy/types.d.ts +0 -94
- package/dist/legacy/types.d.ts.map +0 -1
- package/dist/libs/operation.d.ts +0 -15
- package/dist/libs/operation.d.ts.map +0 -1
- package/dist/libs/operation.js +0 -16
- package/dist/stores/index.d.ts +0 -2
- package/dist/stores/index.d.ts.map +0 -1
- /package/dist/helpers/{isMacOs.js → is-mac-os.js} +0 -0
- /package/dist/helpers/{scrollToId.js → scroll-to-id.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, computed as i, ref as D, createElementBlock as E, createCommentVNode as
|
|
1
|
+
import { defineComponent as B, computed as i, ref as D, createElementBlock as E, createCommentVNode as o, openBlock as s, createVNode as p, createElementVNode as u, unref as r, withCtx as c, createBlock as l, normalizeClass as S, toDisplayString as b } from "vue";
|
|
2
2
|
import { Disclosure as q, DisclosureButton as P, DisclosurePanel as V } from "@headlessui/vue";
|
|
3
3
|
import { ScalarIcon as I, ScalarMarkdown as j } from "@scalar/components";
|
|
4
4
|
import { isDefined as N } from "@scalar/oas-utils/helpers";
|
|
@@ -22,47 +22,47 @@ const H = {
|
|
|
22
22
|
g.value[0]
|
|
23
23
|
);
|
|
24
24
|
a.parameter.content && "application/json" in a.parameter.content && (t.value = "application/json");
|
|
25
|
-
const
|
|
25
|
+
const m = i(() => !!(a.collapsableItems && (a.parameter.content || a.parameter.headers || a.parameter.schema))), C = i(() => a.parameter.readOnly !== !0);
|
|
26
26
|
return (e, d) => C.value ? (s(), E("li", H, [
|
|
27
|
-
|
|
27
|
+
p(r(q), null, {
|
|
28
28
|
default: c(({ open: n }) => [
|
|
29
|
-
|
|
29
|
+
m.value ? (s(), l(r(P), {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: S(["parameter-item-trigger flex", { "parameter-item-trigger-open": n }])
|
|
32
32
|
}, {
|
|
33
33
|
default: c(() => [
|
|
34
|
-
|
|
34
|
+
p(r(I), {
|
|
35
35
|
class: "parameter-item-icon",
|
|
36
36
|
icon: n ? "ChevronDown" : "ChevronRight",
|
|
37
37
|
thickness: "1.5"
|
|
38
38
|
}, null, 8, ["icon"]),
|
|
39
39
|
u("span", L, b(e.parameter.name), 1),
|
|
40
40
|
u("span", M, [
|
|
41
|
-
e.parameter.description ? (s(),
|
|
41
|
+
e.parameter.description ? (s(), l(r(j), {
|
|
42
42
|
key: 0,
|
|
43
43
|
class: "markdown",
|
|
44
44
|
value: e.parameter.description
|
|
45
|
-
}, null, 8, ["value"])) :
|
|
45
|
+
}, null, 8, ["value"])) : o("", !0)
|
|
46
46
|
])
|
|
47
47
|
]),
|
|
48
48
|
_: 2
|
|
49
|
-
}, 1032, ["class"])) :
|
|
50
|
-
|
|
49
|
+
}, 1032, ["class"])) : o("", !0),
|
|
50
|
+
p(r(V), {
|
|
51
51
|
class: "parameter-item-container parameter-item-container-markdown",
|
|
52
|
-
static: !
|
|
52
|
+
static: !m.value
|
|
53
53
|
}, {
|
|
54
54
|
default: c(() => {
|
|
55
55
|
var h, f, v, y, k;
|
|
56
56
|
return [
|
|
57
|
-
e.parameter.headers ? (s(),
|
|
57
|
+
e.parameter.headers ? (s(), l(O, {
|
|
58
58
|
key: 0,
|
|
59
59
|
headers: e.parameter.headers
|
|
60
|
-
}, null, 8, ["headers"])) :
|
|
61
|
-
|
|
60
|
+
}, null, 8, ["headers"])) : o("", !0),
|
|
61
|
+
p(r(z), {
|
|
62
62
|
is: "div",
|
|
63
63
|
compact: "",
|
|
64
|
-
description:
|
|
65
|
-
name:
|
|
64
|
+
description: m.value ? "" : e.parameter.description,
|
|
65
|
+
name: m.value ? "" : e.parameter.name,
|
|
66
66
|
noncollapsible: !0,
|
|
67
67
|
required: e.parameter.required,
|
|
68
68
|
schemas: e.schemas,
|
|
@@ -85,15 +85,15 @@ const H = {
|
|
|
85
85
|
_: 1
|
|
86
86
|
}),
|
|
87
87
|
u("div", R, [
|
|
88
|
-
|
|
88
|
+
m.value && a.parameter.content ? (s(), l(T, {
|
|
89
89
|
key: 0,
|
|
90
90
|
class: "parameter-item-content-type",
|
|
91
91
|
defaultValue: t.value,
|
|
92
92
|
requestBody: a.parameter,
|
|
93
93
|
onSelectContentType: d[0] || (d[0] = ({ contentType: n }) => t.value = n)
|
|
94
|
-
}, null, 8, ["defaultValue", "requestBody"])) :
|
|
94
|
+
}, null, 8, ["defaultValue", "requestBody"])) : o("", !0)
|
|
95
95
|
])
|
|
96
|
-
])) :
|
|
96
|
+
])) : o("", !0);
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"AA0JA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;AAoDF,iBAAS,cAAc;WA6GT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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 "./RequestBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9c073db1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,34 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, computed as B, ref as k, createElementBlock as a, createCommentVNode as i, openBlock as n, createElementVNode as f, createVNode as l, renderSlot as j, unref as c } from "vue";
|
|
2
2
|
import { ScalarMarkdown as C } from "@scalar/components";
|
|
3
3
|
import E from "./ContentTypeSelect.vue.js";
|
|
4
4
|
import y from "../../../components/Content/Schema/Schema.vue.js";
|
|
5
|
-
const P = { key: 0 }, S = { class: "request-body-
|
|
5
|
+
const P = { key: 0 }, S = { class: "request-body-header" }, V = { class: "request-body-title" }, _ = {
|
|
6
6
|
key: 0,
|
|
7
|
-
class: "request-body-
|
|
7
|
+
class: "request-body-required"
|
|
8
8
|
}, O = {
|
|
9
9
|
key: 0,
|
|
10
|
-
class: "request-body-
|
|
10
|
+
class: "request-body-description"
|
|
11
11
|
}, R = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "request-body-schema"
|
|
14
|
+
}, N = {
|
|
12
15
|
key: 1,
|
|
13
16
|
class: "request-body-schema"
|
|
14
|
-
},
|
|
17
|
+
}, w = /* @__PURE__ */ b({
|
|
15
18
|
__name: "RequestBody",
|
|
16
19
|
props: {
|
|
17
20
|
requestBody: {},
|
|
18
21
|
schemas: {}
|
|
19
22
|
},
|
|
20
|
-
setup(
|
|
21
|
-
var
|
|
22
|
-
const v =
|
|
23
|
+
setup(d) {
|
|
24
|
+
var q;
|
|
25
|
+
const v = B(
|
|
23
26
|
() => {
|
|
24
27
|
var e;
|
|
25
|
-
return Object.keys(((e =
|
|
28
|
+
return Object.keys(((e = d.requestBody) == null ? void 0 : e.content) ?? {});
|
|
26
29
|
}
|
|
27
|
-
), t =
|
|
28
|
-
(
|
|
29
|
-
const
|
|
30
|
-
var r,
|
|
31
|
-
const e = (
|
|
30
|
+
), t = k("application/json");
|
|
31
|
+
(q = d.requestBody) != null && q.content && v.value.length > 0 && (t.value = v.value[0]);
|
|
32
|
+
const p = B(() => {
|
|
33
|
+
var r, u, h;
|
|
34
|
+
const e = (h = (u = (r = d.requestBody) == null ? void 0 : r.content) == null ? void 0 : u[t.value]) == null ? void 0 : h.schema;
|
|
32
35
|
if ((e == null ? void 0 : e.type) !== "object" || !e.properties)
|
|
33
36
|
return null;
|
|
34
37
|
const s = Object.entries(e.properties);
|
|
@@ -48,48 +51,51 @@ const P = { key: 0 }, S = { class: "request-body-title" }, V = {
|
|
|
48
51
|
});
|
|
49
52
|
return (e, s) => {
|
|
50
53
|
var m, o, r;
|
|
51
|
-
return e.requestBody ? (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
return e.requestBody ? (n(), a("div", P, [
|
|
55
|
+
f("div", S, [
|
|
56
|
+
f("span", V, [
|
|
57
|
+
j(e.$slots, "title", {}, void 0, !0),
|
|
58
|
+
e.requestBody.required ? (n(), a("div", _, " required ")) : i("", !0)
|
|
59
|
+
]),
|
|
60
|
+
l(E, {
|
|
55
61
|
defaultValue: t.value,
|
|
56
62
|
requestBody: e.requestBody,
|
|
57
|
-
onSelectContentType: s[0] || (s[0] = ({ contentType:
|
|
63
|
+
onSelectContentType: s[0] || (s[0] = ({ contentType: u }) => t.value = u)
|
|
58
64
|
}, null, 8, ["defaultValue", "requestBody"]),
|
|
59
|
-
e.requestBody.description ? (
|
|
60
|
-
|
|
65
|
+
e.requestBody.description ? (n(), a("div", O, [
|
|
66
|
+
l(c(C), {
|
|
61
67
|
value: e.requestBody.description
|
|
62
68
|
}, null, 8, ["value"])
|
|
63
|
-
])) :
|
|
69
|
+
])) : i("", !0)
|
|
64
70
|
]),
|
|
65
|
-
|
|
66
|
-
|
|
71
|
+
p.value ? (n(), a("div", R, [
|
|
72
|
+
l(c(y), {
|
|
67
73
|
compact: "",
|
|
68
74
|
name: "Request Body",
|
|
69
75
|
noncollapsible: "",
|
|
70
76
|
schemas: e.schemas,
|
|
71
|
-
value:
|
|
77
|
+
value: p.value.visibleProperties
|
|
72
78
|
}, null, 8, ["schemas", "value"]),
|
|
73
|
-
|
|
79
|
+
l(c(y), {
|
|
74
80
|
additionalProperties: "",
|
|
75
81
|
compact: "",
|
|
76
82
|
name: "Request Body",
|
|
77
83
|
schemas: e.schemas,
|
|
78
|
-
value:
|
|
84
|
+
value: p.value.collapsedProperties
|
|
79
85
|
}, null, 8, ["schemas", "value"])
|
|
80
|
-
])) : (m = e.requestBody.content) != null && m[t.value] ? (
|
|
81
|
-
|
|
86
|
+
])) : (m = e.requestBody.content) != null && m[t.value] ? (n(), a("div", N, [
|
|
87
|
+
l(c(y), {
|
|
82
88
|
compact: "",
|
|
83
89
|
name: "Request Body",
|
|
84
90
|
noncollapsible: "",
|
|
85
91
|
schemas: e.schemas,
|
|
86
92
|
value: (r = (o = e.requestBody.content) == null ? void 0 : o[t.value]) == null ? void 0 : r.schema
|
|
87
93
|
}, null, 8, ["schemas", "value"])
|
|
88
|
-
])) :
|
|
89
|
-
])) :
|
|
94
|
+
])) : i("", !0)
|
|
95
|
+
])) : i("", !0);
|
|
90
96
|
};
|
|
91
97
|
}
|
|
92
98
|
});
|
|
93
99
|
export {
|
|
94
|
-
|
|
100
|
+
w as default
|
|
95
101
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResponses.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/hooks/useResponses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAGtF;;GAEG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,oBAAoB;;cAShD,MAAM;qBACC,MAAM;iBACV,oBAAoB;kBACnB;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAA;SAAE;;
|
|
1
|
+
{"version":3,"file":"useResponses.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/hooks/useResponses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAGtF;;GAEG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,oBAAoB;;cAShD,MAAM;qBACC,MAAM;iBACV,oBAAoB;kBACnB;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAA;SAAE;iBACxC,OAAO,CAAC,YAAY;;EAqBlC"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
function
|
|
3
|
-
return { responses:
|
|
1
|
+
import { computed as o } from "vue";
|
|
2
|
+
function m(r) {
|
|
3
|
+
return { responses: o(() => {
|
|
4
4
|
if (!r.information)
|
|
5
5
|
return [];
|
|
6
|
-
const { responses: t } = r.information,
|
|
7
|
-
return t && Object.entries(t).forEach(([
|
|
8
|
-
|
|
9
|
-
name:
|
|
10
|
-
description:
|
|
11
|
-
content:
|
|
12
|
-
headers:
|
|
6
|
+
const { responses: t } = r.information, n = [];
|
|
7
|
+
return t && Object.entries(t).forEach(([s, e]) => {
|
|
8
|
+
n.push({
|
|
9
|
+
name: s,
|
|
10
|
+
description: e.description,
|
|
11
|
+
content: e.content,
|
|
12
|
+
headers: e.headers,
|
|
13
|
+
schema: e.schema
|
|
13
14
|
});
|
|
14
|
-
}),
|
|
15
|
+
}), n;
|
|
15
16
|
}) };
|
|
16
17
|
}
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
+
m as useResponses
|
|
19
20
|
};
|
|
@@ -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":"AA4TA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAwBhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;AAyQF,wBAOG"}
|
|
@@ -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
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-097505a1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -3,7 +3,7 @@ import { ScalarIcon as _, ScalarIconButton as B, ScalarMarkdown as R } from "@sc
|
|
|
3
3
|
import { useClipboard as w } from "@scalar/use-hooks/useClipboard";
|
|
4
4
|
import I from "../../../components/OperationPath.vue.js";
|
|
5
5
|
import { useConfig as N } from "../../../hooks/useConfig.js";
|
|
6
|
-
import { isOperationDeprecated as T, getOperationStability as h, getOperationStabilityColor as V } from "../../../libs/
|
|
6
|
+
import { isOperationDeprecated as T, getOperationStability as h, getOperationStabilityColor as V } from "../../../libs/openapi.js";
|
|
7
7
|
import $ from "../components/OperationParameters.vue.js";
|
|
8
8
|
import q from "../components/OperationResponses.vue.js";
|
|
9
9
|
import E from "../../../components/Section/SectionAccordion.vue.js";
|
|
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5fb2c298"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as b, useId as O, computed as S, createBlock as p, open
|
|
|
2
2
|
import { ScalarMarkdown as C, ScalarErrorBoundary as c } from "@scalar/components";
|
|
3
3
|
import k from "../../../components/OperationPath.vue.js";
|
|
4
4
|
import { useConfig as B } from "../../../hooks/useConfig.js";
|
|
5
|
-
import { getOperationStability as h, getOperationStabilityColor as _, isOperationDeprecated as E } from "../../../libs/
|
|
5
|
+
import { getOperationStability as h, getOperationStabilityColor as _, isOperationDeprecated as E } from "../../../libs/openapi.js";
|
|
6
6
|
import N from "../components/OperationParameters.vue.js";
|
|
7
7
|
import V from "../components/OperationResponses.vue.js";
|
|
8
8
|
import w from "../../../components/Section/Section.vue.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SearchButton.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-d21ab44f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as S, ref as b, watch as w, nextTick as v, onMounted as
|
|
|
2
2
|
import { useModal as B } from "@scalar/components";
|
|
3
3
|
import { ScalarIconMagnifyingGlass as E } from "@scalar/icons";
|
|
4
4
|
import H from "./SearchModal.vue.js";
|
|
5
|
-
import { isMacOs as m } from "../../helpers/
|
|
5
|
+
import { isMacOs as m } from "../../helpers/is-mac-os.js";
|
|
6
6
|
import { useApiClient as L } from "../ApiClientModal/useApiClient.js";
|
|
7
7
|
const N = { class: "sidebar-search-input" }, T = { class: "sidebar-search-shortcut" }, V = { class: "sidebar-search-key" }, G = /* @__PURE__ */ S({
|
|
8
8
|
__name: "SearchButton",
|
|
@@ -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":"AAqSA,OAAO,EAML,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAiBhD,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAC;;AA6ZF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SearchModal.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const p = /* @__PURE__ */
|
|
3
|
+
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-587d8690"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -4,8 +4,8 @@ import { nanoid as oe } from "nanoid";
|
|
|
4
4
|
import { lazyBus as ae } from "../../components/Content/Lazy/lazyBus.js";
|
|
5
5
|
import se from "../../components/Sidebar/SidebarHttpBadge.vue.js";
|
|
6
6
|
import { useSearchIndex as ne } from "./useSearchIndex.js";
|
|
7
|
+
import { scrollToId as N } from "../../helpers/scroll-to-id.js";
|
|
7
8
|
import { useSidebar as re } from "../../hooks/useSidebar.js";
|
|
8
|
-
import { scrollToId as N } from "../../helpers/scrollToId.js";
|
|
9
9
|
const le = { class: "sr-only" }, ie = { class: "sr-only" }, ve = /* @__PURE__ */ Y({
|
|
10
10
|
__name: "SearchModal",
|
|
11
11
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Spec, TransformedOperation } from '@scalar/types/legacy';
|
|
2
2
|
import { type FuseResult } from 'fuse.js';
|
|
3
3
|
import { type Ref } from 'vue';
|
|
4
|
-
import { type ParamMap } from '../../hooks';
|
|
4
|
+
import { type ParamMap } from '../../hooks/useOperation.js';
|
|
5
5
|
export type EntryType = 'req' | 'webhook' | 'model' | 'heading' | 'tag';
|
|
6
6
|
export type FuseData = {
|
|
7
7
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSearchIndex.d.ts","sourceRoot":"","sources":["../../../src/features/Search/useSearchIndex.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"useSearchIndex.d.ts","sourceRoot":"","sources":["../../../src/features/Search/useSearchIndex.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,KAAK,CAAA;AAGpD,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,sBAAsB,CAAA;AAKlE,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAA;AAEvE,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,QAAQ,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,oBAAoB,CAAA;CACjC,CAAA;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAC7B,aAAa,GACd,EAAE;IACD,aAAa,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;CACzB;uBA0ByB,IAAI;sBAbL,IAAI;;;;;EA0K5B"}
|
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import N from "fuse.js";
|
|
2
2
|
import { ref as d, watch as E, computed as O } from "vue";
|
|
3
|
-
import {
|
|
3
|
+
import { useNavState as V } from "../../hooks/useNavState.js";
|
|
4
4
|
import { useOperation as A } from "../../hooks/useOperation.js";
|
|
5
5
|
import { useSidebar as B } from "../../hooks/useSidebar.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
function w({
|
|
6
|
+
import { getHeadingsFromMarkdown as P } from "../../libs/markdown.js";
|
|
7
|
+
import { extractRequestBody as z, getModels as G } from "../../libs/openapi.js";
|
|
8
|
+
function _({
|
|
10
9
|
specification: R
|
|
11
10
|
}) {
|
|
12
|
-
const { hideModels: T } = B(), { getHeadingId: j, getWebhookId: L, getModelId: W, getOperationId: q, getTagId: C } =
|
|
11
|
+
const { hideModels: T } = B(), { getHeadingId: j, getWebhookId: L, getModelId: W, getOperationId: q, getTagId: C } = V(), s = d([]), l = d([]), a = d(), r = d(""), c = new N(s.value, {
|
|
13
12
|
keys: ["title", "description", "body"]
|
|
14
|
-
}),
|
|
13
|
+
}), v = () => {
|
|
15
14
|
a.value = 0, l.value = c.search(r.value);
|
|
16
15
|
};
|
|
17
16
|
E(r, (e) => {
|
|
18
|
-
e.length ?
|
|
17
|
+
e.length ? v() : l.value = [];
|
|
19
18
|
});
|
|
20
19
|
function F() {
|
|
21
20
|
r.value = "", a.value = void 0, l.value = [];
|
|
22
21
|
}
|
|
23
|
-
const
|
|
22
|
+
const m = O(() => r.value.length === 0 ? s.value.slice(0, 25).map((i) => ({
|
|
24
23
|
item: i
|
|
25
24
|
})) : l.value.slice(0, 25)), H = O(
|
|
26
|
-
() => typeof a.value == "number" ?
|
|
25
|
+
() => typeof a.value == "number" ? m.value[a.value] : void 0
|
|
27
26
|
);
|
|
28
27
|
return E(
|
|
29
28
|
R,
|
|
@@ -33,7 +32,7 @@ function w({
|
|
|
33
32
|
c.setCollection([]);
|
|
34
33
|
return;
|
|
35
34
|
}
|
|
36
|
-
const i = [], b =
|
|
35
|
+
const i = [], b = P(((k = e == null ? void 0 : e.info) == null ? void 0 : k.description) ?? "");
|
|
37
36
|
b.length && (b.forEach((t) => {
|
|
38
37
|
i.push({
|
|
39
38
|
type: "heading",
|
|
@@ -53,9 +52,9 @@ function w({
|
|
|
53
52
|
body: ""
|
|
54
53
|
};
|
|
55
54
|
s.value.push(D), t.operations && t.operations.forEach((o) => {
|
|
56
|
-
const { parameterMap: h } = A(o), $ =
|
|
57
|
-
let
|
|
58
|
-
typeof $ != "boolean" && (
|
|
55
|
+
const { parameterMap: h } = A(o), $ = z(o) || h.value;
|
|
56
|
+
let f = null;
|
|
57
|
+
typeof $ != "boolean" && (f = $);
|
|
59
58
|
const x = {
|
|
60
59
|
type: "req",
|
|
61
60
|
title: o.name ?? o.path,
|
|
@@ -67,7 +66,7 @@ function w({
|
|
|
67
66
|
tag: t.name,
|
|
68
67
|
operation: o
|
|
69
68
|
};
|
|
70
|
-
|
|
69
|
+
f && (x.body = f), s.value.push(x);
|
|
71
70
|
});
|
|
72
71
|
});
|
|
73
72
|
const u = e == null ? void 0 : e.webhooks, y = [];
|
|
@@ -85,13 +84,13 @@ function w({
|
|
|
85
84
|
});
|
|
86
85
|
}), s.value = s.value.concat(y);
|
|
87
86
|
});
|
|
88
|
-
const
|
|
89
|
-
|
|
87
|
+
const n = T.value ? {} : G(e), g = [];
|
|
88
|
+
n && (Object.keys(n).forEach((t) => {
|
|
90
89
|
g.push({
|
|
91
90
|
type: "model",
|
|
92
91
|
title: "Model",
|
|
93
92
|
href: `#${W({ name: t })}`,
|
|
94
|
-
description:
|
|
93
|
+
description: n[t].title ?? t,
|
|
95
94
|
tag: t,
|
|
96
95
|
body: ""
|
|
97
96
|
});
|
|
@@ -100,13 +99,13 @@ function w({
|
|
|
100
99
|
{ immediate: !0 }
|
|
101
100
|
), {
|
|
102
101
|
resetSearch: F,
|
|
103
|
-
fuseSearch:
|
|
102
|
+
fuseSearch: v,
|
|
104
103
|
selectedSearchIndex: a,
|
|
105
104
|
selectedSearchResult: H,
|
|
106
|
-
searchResultsWithPlaceholderResults:
|
|
105
|
+
searchResultsWithPlaceholderResults: m,
|
|
107
106
|
searchText: r
|
|
108
107
|
};
|
|
109
108
|
}
|
|
110
109
|
export {
|
|
111
|
-
|
|
110
|
+
_ as useSearchIndex
|
|
112
111
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-mac-os.d.ts","sourceRoot":"","sources":["../../src/helpers/is-mac-os.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO,eAAoF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/helpers/parse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/helpers/parse.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAMxD;;;;GAIG;AACH,eAAO,MAAM,KAAK,kBACD,aAAa,GAAG,MAAM,GAAG,SAAS,kBAG9C;IACD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,KACA,OAAO,CAAC,IAAI,CAgDd,CAAA"}
|
package/dist/helpers/parse.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { redirectToProxy as R, shouldIgnoreEntity as u } from "@scalar/oas-utils/helpers";
|
|
2
2
|
import { load as M, dereference as q } from "@scalar/openapi-parser";
|
|
3
3
|
import { fetchUrls as D } from "@scalar/openapi-parser/plugins/fetch-urls";
|
|
4
|
-
import { createEmptySpecification as O } from "
|
|
4
|
+
import { createEmptySpecification as O } from "../libs/openapi.js";
|
|
5
5
|
import { normalizeRequestMethod as j } from "../legacy/helpers/normalizeRequestMethod.js";
|
|
6
6
|
import { validRequestMethods as C } from "../legacy/fixtures/httpRequestMethods.js";
|
|
7
7
|
const G = (m, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-to-id.d.ts","sourceRoot":"","sources":["../../src/helpers/scroll-to-id.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,OAAc,MAAM,UAAU,OAAO,kBAS3D,CAAA"}
|
package/dist/helpers/sleep.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../src/helpers/sleep.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../src/helpers/sleep.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,KAAK,OAAQ,MAAM,qBAA0C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNavState.d.ts","sourceRoot":"","sources":["../../src/hooks/useNavState.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAE9E,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,MAAM,MAAM,QAAQ,GAAG;IACrB,0EAA0E;IAC1E,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACjB,2CAA2C;IAC3C,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACvB,sFAAsF;IACtF,qBAAqB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CACpC,CAAA;AACD,eAAO,MAAM,gBAAgB,EAAe,YAAY,CAAC,QAAQ,CAAC,CAAA;AAOlE;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,aAAc,GAAG,CAAC,yBAAyB,CAAC;;
|
|
1
|
+
{"version":3,"file":"useNavState.d.ts","sourceRoot":"","sources":["../../src/hooks/useNavState.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAE9E,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,MAAM,MAAM,QAAQ,GAAG;IACrB,0EAA0E;IAC1E,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACjB,2CAA2C;IAC3C,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACvB,sFAAsF;IACtF,qBAAqB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CACpC,CAAA;AACD,eAAO,MAAM,gBAAgB,EAAe,YAAY,CAAC,QAAQ,CAAC,CAAA;AAOlE;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,aAAc,GAAG,CAAC,yBAAyB,CAAC;;IAuIhE,mCAAmC;4BACX,MAAM;IAG9B;;;;OAIG;+BArE4B,MAAM;IAuErC;;;;;OAKG;oCA3FkC,MAAM;IA6F3C;;;OAGG;uCAlHqC,MAAM;;6BAiFhB;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;yBA9BrC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;4BAXb,OAAO;gCA6BH,oBAAoB,aAAa,GAAG;iCArGnC,MAAM;;oBA8FnB,GAAG;;;CAiE3B,CAAA"}
|