@scalar/api-reference 1.30.0 → 1.31.0
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 +42 -0
- package/dist/browser/standalone.js +6352 -6334
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +164 -181
- 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 +56 -51
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +5 -5
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +2 -2
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue2.js +57 -63
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +46 -46
- package/dist/components/Content/Models/Models.vue.d.ts +2 -2
- 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 +7 -6
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +2 -2
- 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/Schema/Schema.preview.d.ts +98 -56
- package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts +6 -3
- 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 +127 -118
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +57 -53
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -2
- 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 +40 -38
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +3 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +152 -152
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -2
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.d.ts +2 -2
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/DocumentSelector/DocumentSelector.vue.js +3 -3
- package/dist/components/Layouts/ClassicLayout.vue.js +10 -8
- package/dist/components/Layouts/Layouts.vue.js +11 -9
- package/dist/components/Layouts/ModernLayout.vue2.js +22 -20
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.js +2 -2
- 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 +56 -56
- package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
- package/dist/components/SingleApiReference.vue.js +27 -33
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +49 -50
- package/dist/features/ApiClientModal/useApiClient.d.ts +196 -196
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts +11 -0
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts.map +1 -0
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +38 -0
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +21 -0
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -0
- package/dist/features/DocumentSource/hooks/useDocumentSource.js +94 -0
- package/dist/features/DocumentSource/index.d.ts +2 -0
- package/dist/features/DocumentSource/index.d.ts.map +1 -0
- 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 +18 -17
- package/dist/features/DownloadLink/index.d.ts +1 -0
- package/dist/features/DownloadLink/index.d.ts.map +1 -1
- package/dist/features/DownloadLink/openapi-version-symbol.d.ts +2 -0
- package/dist/features/DownloadLink/openapi-version-symbol.d.ts.map +1 -0
- package/dist/features/DownloadLink/openapi-version-symbol.js +4 -0
- package/dist/features/Operation/Operation.vue.d.ts +2 -2
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -2
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -2
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts +2 -2
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.js +2 -2
- package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -2
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +6 -6
- package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -2
- 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/layouts/ClassicLayout.vue.d.ts +2 -2
- 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 +55 -55
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +35 -32
- package/dist/features/Operation/types/schemas.d.ts +2 -2
- package/dist/features/Operation/types/schemas.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/helpers/local-storage.d.ts +8 -0
- package/dist/helpers/local-storage.d.ts.map +1 -0
- package/dist/helpers/local-storage.js +6 -0
- package/dist/helpers/measure.d.ts +21 -0
- package/dist/helpers/measure.d.ts.map +1 -0
- package/dist/helpers/measure.js +7 -0
- package/dist/helpers/parse.d.ts +3 -5
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +64 -86
- package/dist/helpers/scroll-to-id.d.ts.map +1 -1
- package/dist/helpers/scroll-to-id.js +18 -4
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -35
- package/dist/libs/openapi.d.ts +3 -3
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +35 -42
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/standalone/lib/html-api.js +15 -15
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/stores/useHttpClientStore.js +19 -18
- package/dist/style.css +1 -1
- package/dist/types.d.ts +27 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +13 -14
- package/dist/hooks/useReactiveSpec.d.ts +0 -448
- package/dist/hooks/useReactiveSpec.d.ts.map +0 -1
- package/dist/hooks/useReactiveSpec.js +0 -59
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Request as RequestEntity } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type {
|
|
2
|
+
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
parameters?: RequestEntity['parameters'] | RequestEntity['responses'];
|
|
5
5
|
showChildren?: boolean;
|
|
6
6
|
collapsableItems?: boolean;
|
|
7
7
|
withExamples?: boolean;
|
|
8
|
-
schemas?:
|
|
8
|
+
schemas?: Record<string, OpenAPIV3_1.SchemaObject> | unknown;
|
|
9
9
|
};
|
|
10
10
|
declare function __VLS_template(): {
|
|
11
11
|
attrs: Partial<{}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterList.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ParameterList.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterList.vue"],"names":[],"mappings":"AAgEA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAMxD,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAA;IACrE,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;AAoBJ,iBAAS,cAAc;WAsDT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;kBA5FF,OAAO;kBAFP,OAAO;sBACH,OAAO;6EAoG5B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,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 t from "./ParameterList.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const e = /* @__PURE__ */
|
|
3
|
+
import a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ a(t, [["__scopeId", "data-v-dabf3ac7"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Request as RequestEntity } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type {
|
|
2
|
+
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
parameter: NonNullable<RequestEntity['parameters']>[number] | NonNullable<RequestEntity['responses']>[number];
|
|
5
5
|
showChildren?: boolean;
|
|
6
6
|
collapsableItems?: boolean;
|
|
7
7
|
withExamples?: boolean;
|
|
8
|
-
schemas?:
|
|
8
|
+
schemas?: Record<string, OpenAPIV3_1.SchemaObject> | unknown;
|
|
9
9
|
};
|
|
10
10
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
11
|
withExamples: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAuPA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAWxD,KAAK,WAAW,GAAG;IACf,SAAS,EACL,WAAW,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,GAChD,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;kBAFe,OAAO;kBAFP,OAAO;sBACH,OAAO;;AAwR9B,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./ParameterListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const a = /* @__PURE__ */ e(t, [["__scopeId", "data-v-5d044e0e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -3,12 +3,12 @@ import { Disclosure as q, DisclosureButton as P, DisclosurePanel as V } from "@h
|
|
|
3
3
|
import { ScalarIcon as I, ScalarMarkdown as j } from "@scalar/components";
|
|
4
4
|
import { isDefined as N } from "@scalar/oas-utils/helpers";
|
|
5
5
|
import T from "./ContentTypeSelect.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import z from "./ParameterHeaders.vue.js";
|
|
7
|
+
import O from "../../../components/Content/Schema/SchemaProperty.vue.js";
|
|
8
8
|
const H = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "parameter-item group/parameter-item relative"
|
|
11
|
-
}, L = { class: "parameter-item-name" }, M = { class: "parameter-item-type" }, R = { class: "absolute
|
|
11
|
+
}, L = { class: "parameter-item-name" }, M = { class: "parameter-item-type" }, R = { class: "absolute top-2.5 right-0 opacity-0 group-focus-within/parameter-item:opacity-100 group-hover/parameter-item:opacity-100" }, U = /* @__PURE__ */ B({
|
|
12
12
|
__name: "ParameterListItem",
|
|
13
13
|
props: {
|
|
14
14
|
parameter: {},
|
|
@@ -32,7 +32,7 @@ const H = {
|
|
|
32
32
|
}, {
|
|
33
33
|
default: c(() => [
|
|
34
34
|
p(r(I), {
|
|
35
|
-
class: "parameter-item-icon",
|
|
35
|
+
class: "parameter-item-icon size-4.5",
|
|
36
36
|
icon: n ? "ChevronDown" : "ChevronRight",
|
|
37
37
|
thickness: "1.5"
|
|
38
38
|
}, null, 8, ["icon"]),
|
|
@@ -54,11 +54,11 @@ const H = {
|
|
|
54
54
|
default: c(() => {
|
|
55
55
|
var h, f, v, y, k;
|
|
56
56
|
return [
|
|
57
|
-
e.parameter.headers ? (s(), l(
|
|
57
|
+
e.parameter.headers ? (s(), l(z, {
|
|
58
58
|
key: 0,
|
|
59
59
|
headers: e.parameter.headers
|
|
60
60
|
}, null, 8, ["headers"])) : o("", !0),
|
|
61
|
-
p(r(
|
|
61
|
+
p(r(O), {
|
|
62
62
|
is: "div",
|
|
63
63
|
compact: "",
|
|
64
64
|
description: m.value ? "" : e.parameter.description,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
2
|
import type { RequestBody } from '@scalar/types/legacy';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
requestBody?: RequestBody;
|
|
5
|
-
schemas?:
|
|
5
|
+
schemas?: Record<string, OpenAPIV3_1.SchemaObject> | unknown;
|
|
6
6
|
};
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
8
|
attrs: Partial<{}>;
|
|
@@ -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":"AAsJA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e3af4d9a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Collection, Operation, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type {
|
|
2
|
+
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
3
3
|
import type { TransformedOperation } from '@scalar/types/legacy';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
id?: string;
|
|
@@ -8,7 +8,7 @@ type __VLS_Props = {
|
|
|
8
8
|
operation: Operation;
|
|
9
9
|
/** @deprecated Use `operation` instead */
|
|
10
10
|
transformedOperation: TransformedOperation;
|
|
11
|
-
schemas?:
|
|
11
|
+
schemas?: Record<string, OpenAPIV3_1.SchemaObject> | unknown;
|
|
12
12
|
};
|
|
13
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>;
|
|
14
14
|
export default _default;
|
|
@@ -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":"AA6TA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,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,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,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 s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-963f75f8"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as C, computed as b, createBlock as
|
|
2
|
-
import { ScalarIcon as _, ScalarIconButton as B, ScalarMarkdown as
|
|
3
|
-
import { useClipboard as
|
|
4
|
-
import
|
|
5
|
-
import { useConfig as
|
|
6
|
-
import { isOperationDeprecated as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const U = { class: "operation-title" }, j = { class: "operation-details" }, F = { class: "endpoint-label" }, G = { class: "endpoint-label-path" }, H = { class: "endpoint-label-name" }, J = { class: "endpoint-content" }, K = { class: "operation-details-card" }, Q = { class: "operation-details-card-item" }, W = { class: "operation-details-card-item" },
|
|
1
|
+
import { defineComponent as C, computed as b, createBlock as a, openBlock as r, unref as e, createSlots as g, withCtx as n, createElementVNode as t, createVNode as i, createCommentVNode as c, withModifiers as k, toDisplayString as m, normalizeClass as O, createTextVNode as S } from "vue";
|
|
2
|
+
import { ScalarIcon as _, ScalarIconButton as B, ScalarMarkdown as w } from "@scalar/components";
|
|
3
|
+
import { useClipboard as R } from "@scalar/use-hooks/useClipboard";
|
|
4
|
+
import T from "../../../components/OperationPath.vue.js";
|
|
5
|
+
import { useConfig as I } from "../../../hooks/useConfig.js";
|
|
6
|
+
import { isOperationDeprecated as N, getOperationStability as h, getOperationStabilityColor as P } from "../../../libs/openapi.js";
|
|
7
|
+
import V from "../components/OperationParameters.vue.js";
|
|
8
|
+
import $ from "../components/OperationResponses.vue.js";
|
|
9
|
+
import q from "../../../components/Section/SectionAccordion.vue.js";
|
|
10
|
+
import A from "../../ExampleResponses/ExampleResponses.vue.js";
|
|
11
|
+
import E from "../../ExampleRequest/ExampleRequest.vue.js";
|
|
12
|
+
import z from "../../TestRequestButton/TestRequestButton.vue.js";
|
|
13
|
+
import D from "../../../components/HttpMethod/HttpMethod.vue.js";
|
|
14
|
+
import L from "../../../components/Anchor/Anchor.vue.js";
|
|
15
|
+
import M from "../../../components/Badge/Badge.vue.js";
|
|
16
|
+
const U = { class: "operation-title" }, j = { class: "operation-details" }, F = { class: "endpoint-label" }, G = { class: "endpoint-label-path" }, H = { class: "endpoint-label-name" }, J = { class: "endpoint-content" }, K = { class: "operation-details-card" }, Q = { class: "operation-details-card-item" }, W = { class: "operation-details-card-item" }, ho = /* @__PURE__ */ C({
|
|
17
17
|
__name: "ClassicLayout",
|
|
18
18
|
props: {
|
|
19
19
|
id: {},
|
|
@@ -23,45 +23,45 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
|
|
|
23
23
|
transformedOperation: {},
|
|
24
24
|
schemas: {}
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const { copyToClipboard:
|
|
28
|
-
return (o,
|
|
29
|
-
var
|
|
30
|
-
return
|
|
26
|
+
setup(s) {
|
|
27
|
+
const { copyToClipboard: f } = R(), u = I(), v = b(() => s.operation.summary || s.operation.path);
|
|
28
|
+
return (o, p) => {
|
|
29
|
+
var l;
|
|
30
|
+
return r(), a(e(q), {
|
|
31
31
|
id: o.id,
|
|
32
32
|
class: "reference-endpoint",
|
|
33
33
|
transparent: ""
|
|
34
|
-
},
|
|
35
|
-
title:
|
|
34
|
+
}, g({
|
|
35
|
+
title: n(() => [
|
|
36
36
|
t("div", U, [
|
|
37
37
|
t("div", j, [
|
|
38
|
-
i(e(
|
|
38
|
+
i(e(D), {
|
|
39
39
|
class: "endpoint-type",
|
|
40
40
|
method: o.operation.method,
|
|
41
41
|
short: ""
|
|
42
42
|
}, null, 8, ["method"]),
|
|
43
|
-
i(e(
|
|
43
|
+
i(e(L), {
|
|
44
44
|
id: o.id ?? "",
|
|
45
45
|
class: "endpoint-anchor"
|
|
46
46
|
}, {
|
|
47
|
-
default:
|
|
47
|
+
default: n(() => [
|
|
48
48
|
t("h3", F, [
|
|
49
49
|
t("div", G, [
|
|
50
|
-
i(
|
|
51
|
-
deprecated: e(
|
|
50
|
+
i(T, {
|
|
51
|
+
deprecated: e(N)(o.operation),
|
|
52
52
|
path: o.operation.path
|
|
53
53
|
}, null, 8, ["deprecated", "path"])
|
|
54
54
|
]),
|
|
55
|
-
t("div", H,
|
|
56
|
-
e(h)(o.operation) ? (
|
|
55
|
+
t("div", H, m(v.value), 1),
|
|
56
|
+
e(h)(o.operation) ? (r(), a(e(M), {
|
|
57
57
|
key: 0,
|
|
58
|
-
class:
|
|
58
|
+
class: O(e(P)(o.operation))
|
|
59
59
|
}, {
|
|
60
|
-
default:
|
|
61
|
-
S(
|
|
60
|
+
default: n(() => [
|
|
61
|
+
S(m(e(h)(o.operation)), 1)
|
|
62
62
|
]),
|
|
63
63
|
_: 1
|
|
64
|
-
}, 8, ["class"])) :
|
|
64
|
+
}, 8, ["class"])) : c("", !0)
|
|
65
65
|
])
|
|
66
66
|
]),
|
|
67
67
|
_: 1
|
|
@@ -69,13 +69,13 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
|
|
|
69
69
|
])
|
|
70
70
|
])
|
|
71
71
|
]),
|
|
72
|
-
actions:
|
|
73
|
-
var
|
|
72
|
+
actions: n(({ active: y }) => {
|
|
73
|
+
var d;
|
|
74
74
|
return [
|
|
75
|
-
|
|
75
|
+
y ? (r(), a(e(z), {
|
|
76
76
|
key: 0,
|
|
77
77
|
operation: o.operation
|
|
78
|
-
}, null, 8, ["operation"])) : (
|
|
78
|
+
}, null, 8, ["operation"])) : (d = e(u)) != null && d.hideTestRequestButton ? c("", !0) : (r(), a(e(_), {
|
|
79
79
|
key: 1,
|
|
80
80
|
class: "endpoint-try-hint",
|
|
81
81
|
icon: "Play",
|
|
@@ -87,31 +87,31 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
|
|
|
87
87
|
label: "Copy endpoint URL",
|
|
88
88
|
size: "xs",
|
|
89
89
|
variant: "ghost",
|
|
90
|
-
onClick:
|
|
90
|
+
onClick: p[0] || (p[0] = k((X) => e(f)(o.operation.path), ["stop"]))
|
|
91
91
|
})
|
|
92
92
|
];
|
|
93
93
|
}),
|
|
94
|
-
default:
|
|
94
|
+
default: n(() => [
|
|
95
95
|
t("div", J, [
|
|
96
96
|
t("div", K, [
|
|
97
97
|
t("div", Q, [
|
|
98
|
-
i(
|
|
98
|
+
i(V, {
|
|
99
99
|
operation: o.operation,
|
|
100
100
|
schemas: o.schemas
|
|
101
101
|
}, null, 8, ["operation", "schemas"])
|
|
102
102
|
]),
|
|
103
103
|
t("div", W, [
|
|
104
|
-
i(
|
|
104
|
+
i($, {
|
|
105
105
|
collapsableItems: !1,
|
|
106
106
|
operation: o.transformedOperation,
|
|
107
107
|
schemas: o.schemas
|
|
108
108
|
}, null, 8, ["operation", "schemas"])
|
|
109
109
|
])
|
|
110
110
|
]),
|
|
111
|
-
i(e(
|
|
111
|
+
i(e(A), {
|
|
112
112
|
responses: o.operation.responses
|
|
113
113
|
}, null, 8, ["responses"]),
|
|
114
|
-
i(e(
|
|
114
|
+
i(e(E), {
|
|
115
115
|
collection: o.collection,
|
|
116
116
|
operation: o.operation,
|
|
117
117
|
server: o.server,
|
|
@@ -121,17 +121,17 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
|
|
|
121
121
|
]),
|
|
122
122
|
_: 2
|
|
123
123
|
}, [
|
|
124
|
-
(
|
|
124
|
+
(l = o.operation) != null && l.description ? {
|
|
125
125
|
name: "description",
|
|
126
|
-
fn:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
]
|
|
134
|
-
|
|
126
|
+
fn: n(() => [
|
|
127
|
+
i(e(w), {
|
|
128
|
+
value: o.operation.description,
|
|
129
|
+
withImages: "",
|
|
130
|
+
withAnchors: "",
|
|
131
|
+
transformType: "heading",
|
|
132
|
+
anchorPrefix: o.id
|
|
133
|
+
}, null, 8, ["value", "anchorPrefix"])
|
|
134
|
+
]),
|
|
135
135
|
key: "0"
|
|
136
136
|
} : void 0
|
|
137
137
|
]), 1032, ["id"]);
|
|
@@ -139,5 +139,5 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
|
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
141
|
export {
|
|
142
|
-
|
|
142
|
+
ho as default
|
|
143
143
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AA2JA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAgBhE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAejE,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,EAAE,OAAO,CAAA;CAClB,CAAC;;AA2PF,wBAOG"}
|
|
@@ -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-e6c411b5"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -2,22 +2,22 @@ import { defineComponent as y, useId as O, computed as S, createBlock as t, open
|
|
|
2
2
|
import { ScalarMarkdown as k, ScalarErrorBoundary as l } from "@scalar/components";
|
|
3
3
|
import C from "../../../components/OperationPath.vue.js";
|
|
4
4
|
import { useConfig as B } from "../../../hooks/useConfig.js";
|
|
5
|
-
import { getOperationStability as b, getOperationStabilityColor as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
5
|
+
import { getOperationStability as b, getOperationStabilityColor as w, isOperationDeprecated as E } from "../../../libs/openapi.js";
|
|
6
|
+
import N from "../components/callbacks/Callbacks.vue.js";
|
|
7
|
+
import T from "../components/OperationParameters.vue.js";
|
|
8
|
+
import V from "../components/OperationResponses.vue.js";
|
|
9
9
|
import I from "../../../components/Section/Section.vue.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
10
|
+
import P from "../../../components/Section/SectionContent.vue.js";
|
|
11
|
+
import R from "../../../components/Badge/Badge.vue.js";
|
|
12
|
+
import _ from "../../../components/Section/SectionHeader.vue.js";
|
|
13
|
+
import $ from "../../../components/Anchor/Anchor.vue.js";
|
|
14
|
+
import q from "../../../components/Section/SectionHeaderTag.vue.js";
|
|
15
|
+
import A from "../../../components/Section/SectionColumns.vue.js";
|
|
16
16
|
import g from "../../../components/Section/SectionColumn.vue.js";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
const
|
|
17
|
+
import D from "../../ExampleRequest/ExampleRequest.vue.js";
|
|
18
|
+
import H from "../../TestRequestButton/TestRequestButton.vue.js";
|
|
19
|
+
import L from "../../ExampleResponses/ExampleResponses.vue.js";
|
|
20
|
+
const M = { class: "operation-details" }, z = { class: "examples" }, se = /* @__PURE__ */ y({
|
|
21
21
|
__name: "ModernLayout",
|
|
22
22
|
props: {
|
|
23
23
|
id: {},
|
|
@@ -36,13 +36,13 @@ const A = { class: "operation-details" }, P = { class: "examples" }, se = /* @__
|
|
|
36
36
|
tabindex: "-1"
|
|
37
37
|
}, {
|
|
38
38
|
default: r(() => [
|
|
39
|
-
a(o(
|
|
39
|
+
a(o(P), {
|
|
40
40
|
loading: o(v).isLoading
|
|
41
41
|
}, {
|
|
42
42
|
default: r(() => [
|
|
43
|
-
o(b)(e.operation) ? (n(), t(o(
|
|
43
|
+
o(b)(e.operation) ? (n(), t(o(R), {
|
|
44
44
|
key: 0,
|
|
45
|
-
class: f(o(
|
|
45
|
+
class: f(o(w)(e.operation))
|
|
46
46
|
}, {
|
|
47
47
|
default: r(() => [
|
|
48
48
|
u(h(o(b)(e.operation)), 1)
|
|
@@ -50,15 +50,15 @@ const A = { class: "operation-details" }, P = { class: "examples" }, se = /* @__
|
|
|
50
50
|
_: 1
|
|
51
51
|
}, 8, ["class"])) : c("", !0),
|
|
52
52
|
i("div", {
|
|
53
|
-
class: f(o(
|
|
53
|
+
class: f(o(E)(e.operation) ? "deprecated" : "")
|
|
54
54
|
}, [
|
|
55
|
-
a(o(
|
|
55
|
+
a(o(_), null, {
|
|
56
56
|
default: r(() => [
|
|
57
|
-
a(o(
|
|
57
|
+
a(o($), {
|
|
58
58
|
id: e.id ?? ""
|
|
59
59
|
}, {
|
|
60
60
|
default: r(() => [
|
|
61
|
-
a(o(
|
|
61
|
+
a(o(q), {
|
|
62
62
|
id: o(p),
|
|
63
63
|
level: 3
|
|
64
64
|
}, {
|
|
@@ -74,26 +74,29 @@ const A = { class: "operation-details" }, P = { class: "examples" }, se = /* @__
|
|
|
74
74
|
_: 1
|
|
75
75
|
})
|
|
76
76
|
], 2),
|
|
77
|
-
a(o(
|
|
77
|
+
a(o(A), null, {
|
|
78
78
|
default: r(() => [
|
|
79
79
|
a(o(g), null, {
|
|
80
80
|
default: r(() => [
|
|
81
|
-
i("div",
|
|
81
|
+
i("div", M, [
|
|
82
82
|
a(o(k), {
|
|
83
83
|
value: e.operation.description,
|
|
84
|
-
withImages: ""
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
withImages: "",
|
|
85
|
+
withAnchors: "",
|
|
86
|
+
transformType: "heading",
|
|
87
|
+
anchorPrefix: e.id
|
|
88
|
+
}, null, 8, ["value", "anchorPrefix"]),
|
|
89
|
+
a(T, {
|
|
87
90
|
operation: e.operation,
|
|
88
91
|
schemas: e.schemas
|
|
89
92
|
}, null, 8, ["operation", "schemas"]),
|
|
90
|
-
a(
|
|
93
|
+
a(V, {
|
|
91
94
|
operation: e.transformedOperation,
|
|
92
95
|
schemas: e.schemas
|
|
93
96
|
}, null, 8, ["operation", "schemas"]),
|
|
94
97
|
a(o(l), null, {
|
|
95
98
|
default: r(() => [
|
|
96
|
-
e.operation.callbacks ? (n(), t(
|
|
99
|
+
e.operation.callbacks ? (n(), t(N, {
|
|
97
100
|
key: 0,
|
|
98
101
|
callbacks: e.operation.callbacks,
|
|
99
102
|
collection: e.collection,
|
|
@@ -108,10 +111,10 @@ const A = { class: "operation-details" }, P = { class: "examples" }, se = /* @__
|
|
|
108
111
|
}),
|
|
109
112
|
a(o(g), null, {
|
|
110
113
|
default: r(() => [
|
|
111
|
-
i("div",
|
|
114
|
+
i("div", z, [
|
|
112
115
|
a(o(l), null, {
|
|
113
116
|
default: r(() => [
|
|
114
|
-
a(o(
|
|
117
|
+
a(o(D), {
|
|
115
118
|
collection: e.collection,
|
|
116
119
|
fallback: "",
|
|
117
120
|
operation: e.operation,
|
|
@@ -129,7 +132,7 @@ const A = { class: "operation-details" }, P = { class: "examples" }, se = /* @__
|
|
|
129
132
|
];
|
|
130
133
|
}),
|
|
131
134
|
footer: r(() => [
|
|
132
|
-
a(o(
|
|
135
|
+
a(o(H), { operation: e.operation }, null, 8, ["operation"])
|
|
133
136
|
]),
|
|
134
137
|
_: 1
|
|
135
138
|
}, 8, ["collection", "operation", "server", "transformedOperation"])
|
|
@@ -138,7 +141,7 @@ const A = { class: "operation-details" }, P = { class: "examples" }, se = /* @__
|
|
|
138
141
|
}),
|
|
139
142
|
a(o(l), null, {
|
|
140
143
|
default: r(() => [
|
|
141
|
-
a(o(
|
|
144
|
+
a(o(L), {
|
|
142
145
|
responses: e.operation.responses,
|
|
143
146
|
style: { "margin-top": "12px" }
|
|
144
147
|
}, null, 8, ["responses"])
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type Schemas =
|
|
1
|
+
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
|
+
export type Schemas = Record<string, OpenAPIV3_1.SchemaObject> | unknown;
|
|
3
3
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/types/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/types/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA"}
|
|
@@ -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 e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ec9c0928"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../src/helpers/local-storage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;CAEpB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Measures the execution time of a function and logs it.
|
|
3
|
+
* Works with both async and sync functions.
|
|
4
|
+
* Returns the result of the measured function.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* // Async function
|
|
9
|
+
* const result = await measure('api-call', async () => {
|
|
10
|
+
* return await fetchData()
|
|
11
|
+
* })
|
|
12
|
+
*
|
|
13
|
+
* // Sync function
|
|
14
|
+
* const result = measure('computation', () => {
|
|
15
|
+
* return heavyComputation()
|
|
16
|
+
* })
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare function measure<T>(name: string, fn: () => Promise<T>): Promise<T>;
|
|
20
|
+
export declare function measure<T>(name: string, fn: () => T): T;
|
|
21
|
+
//# sourceMappingURL=measure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../src/helpers/measure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;AAC1E,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAAA"}
|
package/dist/helpers/parse.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
1
2
|
import type { Spec } from '@scalar/types/legacy';
|
|
2
|
-
import type { UnknownObject } from '@scalar/types/utils';
|
|
3
3
|
/**
|
|
4
|
-
* Parse the given
|
|
4
|
+
* Parse the given dereferencedDocument and return a super custom transformed dereferencedDocument.
|
|
5
5
|
*
|
|
6
6
|
* @deprecated Try to use a store instead.
|
|
7
7
|
*/
|
|
8
|
-
export declare const parse: (
|
|
9
|
-
proxyUrl?: string;
|
|
10
|
-
}) => Promise<Spec>;
|
|
8
|
+
export declare const parse: (dereferencedDocument: OpenAPIV3_1.Document) => Promise<Spec>;
|
|
11
9
|
//# sourceMappingURL=parse.d.ts.map
|