@scalar/api-reference 1.31.17 → 1.32.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 +62 -0
- package/dist/blocks/helpers/getPointer.d.ts +1 -1
- package/dist/blocks/helpers/getPointer.d.ts.map +1 -1
- package/dist/blocks/hooks/useBlockProps.js +10 -10
- package/dist/browser/standalone.js +15959 -15866
- 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 +124 -126
- package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
- package/dist/components/ClassicHeader.vue.js +11 -9
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +93 -92
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +3 -3
- package/dist/components/Content/Lazy/Loading.vue.d.ts +3 -0
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +93 -93
- 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 +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +1 -1
- package/dist/components/Content/Tag/TagList.vue.d.ts +7 -1
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +41 -38
- package/dist/features/Operation/Operation.vue.d.ts +8 -3
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +67 -51
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +9 -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 +92 -84
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +10 -3
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +132 -117
- package/dist/features/Search/SearchButton.vue.d.ts +1 -3
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +17 -16
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +4 -4
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +15 -15
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -0
- package/dist/features/api-client-modal/index.d.ts.map +1 -0
- package/dist/features/{ApiClientModal → api-client-modal}/useApiClient.d.ts +118 -118
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -0
- package/dist/features/base-url/BaseUrl.vue.d.ts.map +1 -0
- package/dist/features/base-url/index.d.ts.map +1 -0
- package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -0
- package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -0
- package/dist/features/document-source/hooks/useDocumentSource.js +71 -0
- package/dist/features/document-source/index.d.ts.map +1 -0
- package/dist/features/download-link/DownloadLink.vue.d.ts.map +1 -0
- package/dist/features/{DownloadLink → download-link}/DownloadLink.vue.js +2 -2
- package/dist/features/download-link/DownloadLink.vue2.js +59 -0
- package/dist/features/download-link/index.d.ts.map +1 -0
- package/dist/features/download-link/openapi-version-symbol.d.ts.map +1 -0
- package/dist/features/example-request/ExamplePicker.vue.d.ts +13 -0
- package/dist/features/example-request/ExamplePicker.vue.d.ts.map +1 -0
- package/dist/features/example-request/ExamplePicker.vue.js +7 -0
- package/dist/features/example-request/ExamplePicker.vue2.js +56 -0
- package/dist/features/example-request/ExampleRequest.vue.d.ts.map +1 -0
- package/dist/features/{ExampleRequest → example-request}/ExampleRequest.vue.js +2 -2
- package/dist/features/{ExampleRequest → example-request}/ExampleRequest.vue2.js +93 -93
- package/dist/features/example-request/TextSelect.vue.d.ts.map +1 -0
- package/dist/features/example-request/index.d.ts.map +1 -0
- package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -0
- package/dist/features/example-responses/ExampleResponse.vue.js +7 -0
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -0
- package/dist/features/example-responses/ExampleResponses.vue.js +7 -0
- package/dist/features/{ExampleResponses → example-responses}/ExampleResponses.vue2.js +1 -1
- package/dist/features/example-responses/index.d.ts.map +1 -0
- package/dist/{components/DocumentSelector → features/multiple-documents}/DocumentSelector.vue.d.ts.map +1 -1
- package/dist/{components/DocumentSelector → features/multiple-documents}/DocumentSelector.vue.js +15 -15
- package/dist/features/multiple-documents/index.d.ts +3 -0
- package/dist/features/multiple-documents/index.d.ts.map +1 -0
- package/dist/{hooks → features/multiple-documents}/useMultipleDocuments.d.ts +1 -1
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -0
- package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +1 -0
- package/dist/features/sidebar/components/Sidebar.vue.js +7 -0
- package/dist/{components/Sidebar → features/sidebar/components}/Sidebar.vue2.js +2 -2
- package/dist/{components/Sidebar → features/sidebar/components}/SidebarElement.vue.d.ts +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -0
- package/dist/features/sidebar/components/SidebarElement.vue.js +7 -0
- package/dist/{components/Sidebar → features/sidebar/components}/SidebarElement.vue2.js +2 -2
- package/dist/features/sidebar/components/SidebarGroup.vue.d.ts.map +1 -0
- package/dist/features/sidebar/components/SidebarGroup.vue.js +7 -0
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +1 -0
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +7 -0
- package/dist/{components/Sidebar → features/sidebar/components}/SidebarHttpBadge.vue2.js +1 -1
- package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -1
- package/dist/features/sidebar/helpers/create-sidebar.js +8 -8
- package/dist/features/sidebar/index.d.ts +1 -0
- package/dist/features/sidebar/index.d.ts.map +1 -1
- package/dist/features/specification-extension/SpecificationExtension.vue.d.ts.map +1 -0
- package/dist/features/specification-extension/index.d.ts.map +1 -0
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -0
- package/dist/features/{TestRequestButton → test-request-button}/TestRequestButton.vue.js +2 -2
- package/dist/features/{TestRequestButton → test-request-button}/TestRequestButton.vue2.js +1 -1
- package/dist/features/test-request-button/index.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-paths.js +21 -20
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-schemas.js +14 -14
- package/dist/helpers/parse.js +7 -7
- package/dist/hooks/useOperationDiscriminator.d.ts +2 -2
- package/dist/hooks/useOperationDiscriminator.d.ts.map +1 -1
- package/dist/hooks/useOperationDiscriminator.js +28 -28
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/libs/openapi.d.ts +5 -6
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +44 -46
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +110 -65
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +141 -0
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +38 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +21 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +20 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +4 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -0
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts +21 -0
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +1 -0
- package/package.json +14 -14
- package/dist/components/DocumentSelector/index.d.ts +0 -2
- package/dist/components/DocumentSelector/index.d.ts.map +0 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +0 -1
- package/dist/components/Sidebar/Sidebar.vue.js +0 -7
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +0 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +0 -7
- package/dist/components/Sidebar/SidebarGroup.vue.d.ts.map +0 -1
- package/dist/components/Sidebar/SidebarGroup.vue.js +0 -7
- package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +0 -1
- package/dist/components/Sidebar/SidebarHttpBadge.vue.js +0 -7
- package/dist/components/Sidebar/index.d.ts +0 -2
- package/dist/components/Sidebar/index.d.ts.map +0 -1
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.d.ts.map +0 -1
- package/dist/components/SpecificationExtension/index.d.ts.map +0 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +0 -1
- package/dist/features/ApiClientModal/index.d.ts.map +0 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +0 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +0 -1
- package/dist/features/BaseUrl/index.d.ts.map +0 -1
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts.map +0 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +0 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.js +0 -67
- package/dist/features/DocumentSource/index.d.ts.map +0 -1
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +0 -1
- package/dist/features/DownloadLink/DownloadLink.vue2.js +0 -55
- package/dist/features/DownloadLink/index.d.ts.map +0 -1
- package/dist/features/DownloadLink/openapi-version-symbol.d.ts.map +0 -1
- package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts +0 -10
- package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts.map +0 -1
- package/dist/features/ExampleRequest/ExamplePicker.vue.js +0 -7
- package/dist/features/ExampleRequest/ExamplePicker.vue2.js +0 -59
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +0 -1
- package/dist/features/ExampleRequest/TextSelect.vue.d.ts.map +0 -1
- package/dist/features/ExampleRequest/index.d.ts.map +0 -1
- package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +0 -1
- package/dist/features/ExampleResponses/ExampleResponse.vue.js +0 -7
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +0 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +0 -7
- package/dist/features/ExampleResponses/index.d.ts.map +0 -1
- package/dist/features/TestRequestButton/TestRequestButton.vue.d.ts.map +0 -1
- package/dist/features/TestRequestButton/index.d.ts.map +0 -1
- package/dist/hooks/useMultipleDocuments.d.ts.map +0 -1
- package/dist/legacy/fixtures/httpRequestMethods.d.ts +0 -10
- package/dist/legacy/fixtures/httpRequestMethods.d.ts.map +0 -1
- package/dist/legacy/fixtures/index.d.ts +0 -2
- package/dist/legacy/fixtures/index.d.ts.map +0 -1
- /package/dist/features/{ApiClientModal → api-client-modal}/ApiClientModal.vue.d.ts +0 -0
- /package/dist/features/{ApiClientModal → api-client-modal}/ApiClientModal.vue.js +0 -0
- /package/dist/features/{ApiClientModal → api-client-modal}/ApiClientModal.vue2.js +0 -0
- /package/dist/features/{ApiClientModal → api-client-modal}/index.d.ts +0 -0
- /package/dist/features/{ApiClientModal → api-client-modal}/useApiClient.js +0 -0
- /package/dist/features/{BaseUrl → base-url}/BaseUrl.vue.d.ts +0 -0
- /package/dist/features/{BaseUrl → base-url}/BaseUrl.vue.js +0 -0
- /package/dist/features/{BaseUrl → base-url}/BaseUrl.vue2.js +0 -0
- /package/dist/features/{BaseUrl → base-url}/index.d.ts +0 -0
- /package/dist/features/{DocumentSource → document-source}/hooks/useDocumentFetcher.d.ts +0 -0
- /package/dist/features/{DocumentSource → document-source}/hooks/useDocumentFetcher.js +0 -0
- /package/dist/features/{DocumentSource → document-source}/hooks/useDocumentSource.d.ts +0 -0
- /package/dist/features/{DocumentSource → document-source}/index.d.ts +0 -0
- /package/dist/features/{DownloadLink → download-link}/DownloadLink.vue.d.ts +0 -0
- /package/dist/features/{DownloadLink → download-link}/index.d.ts +0 -0
- /package/dist/features/{DownloadLink → download-link}/openapi-version-symbol.d.ts +0 -0
- /package/dist/features/{DownloadLink → download-link}/openapi-version-symbol.js +0 -0
- /package/dist/features/{ExampleRequest → example-request}/ExampleRequest.vue.d.ts +0 -0
- /package/dist/features/{ExampleRequest → example-request}/TextSelect.vue.d.ts +0 -0
- /package/dist/features/{ExampleRequest → example-request}/TextSelect.vue.js +0 -0
- /package/dist/features/{ExampleRequest → example-request}/TextSelect.vue3.js +0 -0
- /package/dist/features/{ExampleRequest → example-request}/index.d.ts +0 -0
- /package/dist/features/{ExampleResponses → example-responses}/ExampleResponse.vue.d.ts +0 -0
- /package/dist/features/{ExampleResponses → example-responses}/ExampleResponse.vue2.js +0 -0
- /package/dist/features/{ExampleResponses → example-responses}/ExampleResponses.vue.d.ts +0 -0
- /package/dist/features/{ExampleResponses → example-responses}/index.d.ts +0 -0
- /package/dist/{components/DocumentSelector → features/multiple-documents}/DocumentSelector.vue.d.ts +0 -0
- /package/dist/{components/DocumentSelector → features/multiple-documents}/DocumentSelector.vue2.js +0 -0
- /package/dist/{hooks → features/multiple-documents}/useMultipleDocuments.js +0 -0
- /package/dist/{components/Sidebar → features/sidebar/components}/Sidebar.vue.d.ts +0 -0
- /package/dist/{components/Sidebar → features/sidebar/components}/SidebarGroup.vue.d.ts +0 -0
- /package/dist/{components/Sidebar → features/sidebar/components}/SidebarGroup.vue2.js +0 -0
- /package/dist/{components/Sidebar → features/sidebar/components}/SidebarHttpBadge.vue.d.ts +0 -0
- /package/dist/{components/SpecificationExtension → features/specification-extension}/SpecificationExtension.vue.d.ts +0 -0
- /package/dist/{components/SpecificationExtension → features/specification-extension}/SpecificationExtension.vue.js +0 -0
- /package/dist/{components/SpecificationExtension → features/specification-extension}/SpecificationExtension.vue2.js +0 -0
- /package/dist/{components/SpecificationExtension → features/specification-extension}/index.d.ts +0 -0
- /package/dist/features/{TestRequestButton → test-request-button}/TestRequestButton.vue.d.ts +0 -0
- /package/dist/features/{TestRequestButton → test-request-button}/index.d.ts +0 -0
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import type { Collection, Request, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type {
|
|
3
|
-
import type { Schemas } from '
|
|
2
|
+
import type { OpenAPIV3_1 } from '@scalar/types/legacy';
|
|
3
|
+
import type { Schemas } from '../types/schemas';
|
|
4
4
|
type __VLS_Props = {
|
|
5
|
+
id: string;
|
|
6
|
+
path: string;
|
|
7
|
+
method: OpenAPIV3_1.HttpMethods;
|
|
8
|
+
operation: OpenAPIV3_1.OperationObject;
|
|
9
|
+
isWebhook: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `document` instead
|
|
12
|
+
*/
|
|
5
13
|
collection: Collection;
|
|
6
14
|
server: Server | undefined;
|
|
7
15
|
request: Request | undefined;
|
|
8
|
-
transformedOperation: TransformedOperation;
|
|
9
16
|
schemas?: Schemas;
|
|
10
17
|
};
|
|
11
18
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
@@ -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":"AAsLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AA2BvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI/C,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAA;IACtC,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA4TF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModernLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-199f4e09"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,84 +1,87 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMarkdown as
|
|
3
|
-
import { ScalarIconWebhooksLogo as
|
|
4
|
-
import
|
|
5
|
-
import { useConfig as
|
|
6
|
-
import { getOperationStability as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
const
|
|
1
|
+
import { defineComponent as I, computed as N, useId as O, createBlock as l, openBlock as s, unref as o, withCtx as r, createVNode as a, createCommentVNode as i, createElementVNode as n, normalizeClass as S, createTextVNode as m, toDisplayString as q, createSlots as W } from "vue";
|
|
2
|
+
import { ScalarMarkdown as D, ScalarErrorBoundary as p } from "@scalar/components";
|
|
3
|
+
import { ScalarIconWebhooksLogo as L } from "@scalar/icons";
|
|
4
|
+
import P from "../../../components/OperationPath.vue.js";
|
|
5
|
+
import { useConfig as R } from "../../../hooks/useConfig.js";
|
|
6
|
+
import { getOperationStability as C, getOperationStabilityColor as $, isOperationDeprecated as A } from "../../../libs/openapi.js";
|
|
7
|
+
import H from "../components/callbacks/Callbacks.vue.js";
|
|
8
|
+
import M from "../components/OperationParameters.vue.js";
|
|
9
|
+
import U from "../components/OperationResponses.vue.js";
|
|
10
|
+
import j from "../../../components/Section/Section.vue.js";
|
|
11
|
+
import z from "../../../components/Section/SectionContent.vue.js";
|
|
12
|
+
import B from "../../../components/Badge/Badge.vue.js";
|
|
13
|
+
import F from "../../../components/Section/SectionHeader.vue.js";
|
|
14
|
+
import G from "../../../components/Anchor/Anchor.vue.js";
|
|
15
|
+
import J from "../../../components/Section/SectionHeaderTag.vue.js";
|
|
16
|
+
import K from "../../../components/Section/SectionColumns.vue.js";
|
|
17
|
+
import V from "../../../components/Section/SectionColumn.vue.js";
|
|
18
|
+
import Q from "../../example-request/ExampleRequest.vue.js";
|
|
19
|
+
import X from "../../test-request-button/TestRequestButton.vue.js";
|
|
20
|
+
import Y from "../../example-responses/ExampleResponses.vue.js";
|
|
21
|
+
const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__PURE__ */ I({
|
|
22
22
|
__name: "ModernLayout",
|
|
23
23
|
props: {
|
|
24
|
+
id: {},
|
|
25
|
+
path: {},
|
|
26
|
+
method: {},
|
|
27
|
+
operation: {},
|
|
28
|
+
isWebhook: { type: Boolean },
|
|
24
29
|
collection: {},
|
|
25
30
|
server: {},
|
|
26
31
|
request: {},
|
|
27
|
-
transformedOperation: {},
|
|
28
32
|
schemas: {}
|
|
29
33
|
},
|
|
30
34
|
emits: ["update:modelValue"],
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
|
|
35
|
+
setup(d, { emit: w }) {
|
|
36
|
+
const u = N(() => {
|
|
37
|
+
var e;
|
|
38
|
+
return ((e = d.operation) == null ? void 0 : e.summary) || d.path || "";
|
|
39
|
+
}), T = w, c = O(), E = R(), f = (e) => {
|
|
40
|
+
T("update:modelValue", e);
|
|
34
41
|
};
|
|
35
|
-
return (e,
|
|
36
|
-
id: e.
|
|
37
|
-
"aria-labelledby": o(
|
|
38
|
-
label:
|
|
42
|
+
return (e, h) => (s(), l(o(j), {
|
|
43
|
+
id: e.id,
|
|
44
|
+
"aria-labelledby": o(c),
|
|
45
|
+
label: u.value,
|
|
39
46
|
tabindex: "-1"
|
|
40
47
|
}, {
|
|
41
|
-
default:
|
|
42
|
-
|
|
43
|
-
loading: o(
|
|
48
|
+
default: r(() => [
|
|
49
|
+
a(o(z), {
|
|
50
|
+
loading: o(E).isLoading
|
|
44
51
|
}, {
|
|
45
|
-
default:
|
|
46
|
-
o(
|
|
52
|
+
default: r(() => [
|
|
53
|
+
o(C)(e.operation) ? (s(), l(o(B), {
|
|
47
54
|
key: 0,
|
|
48
|
-
class:
|
|
55
|
+
class: S(o($)(e.operation))
|
|
49
56
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
m(
|
|
57
|
+
default: r(() => [
|
|
58
|
+
m(q(o(C)(e.operation)), 1)
|
|
52
59
|
]),
|
|
53
60
|
_: 1
|
|
54
61
|
}, 8, ["class"])) : i("", !0),
|
|
55
|
-
e.
|
|
62
|
+
e.isWebhook ? (s(), l(o(B), {
|
|
56
63
|
key: 1,
|
|
57
64
|
class: "font-code text-green flex w-fit items-center justify-center gap-1"
|
|
58
65
|
}, {
|
|
59
|
-
default:
|
|
60
|
-
|
|
61
|
-
|
|
66
|
+
default: r(() => [
|
|
67
|
+
a(o(L), { weight: "bold" }),
|
|
68
|
+
h[0] || (h[0] = m("Webhook "))
|
|
62
69
|
]),
|
|
63
70
|
_: 1
|
|
64
71
|
})) : i("", !0),
|
|
65
|
-
|
|
66
|
-
class:
|
|
67
|
-
o(I)(e.transformedOperation.information) ? "deprecated" : ""
|
|
68
|
-
)
|
|
72
|
+
n("div", {
|
|
73
|
+
class: S(o(A)(e.operation) ? "deprecated" : "")
|
|
69
74
|
}, [
|
|
70
|
-
|
|
71
|
-
default:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
r(o($), {
|
|
77
|
-
id: o(d),
|
|
75
|
+
a(o(F), null, {
|
|
76
|
+
default: r(() => [
|
|
77
|
+
a(o(G), { id: e.id }, {
|
|
78
|
+
default: r(() => [
|
|
79
|
+
a(o(J), {
|
|
80
|
+
id: o(c),
|
|
78
81
|
level: 3
|
|
79
82
|
}, {
|
|
80
|
-
default:
|
|
81
|
-
m(
|
|
83
|
+
default: r(() => [
|
|
84
|
+
m(q(u.value), 1)
|
|
82
85
|
]),
|
|
83
86
|
_: 1
|
|
84
87
|
}, 8, ["id"])
|
|
@@ -89,71 +92,80 @@ const j = { class: "operation-details" }, z = { class: "examples" }, pe = /* @__
|
|
|
89
92
|
_: 1
|
|
90
93
|
})
|
|
91
94
|
], 2),
|
|
92
|
-
|
|
93
|
-
default:
|
|
94
|
-
|
|
95
|
-
default:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
95
|
+
a(o(K), null, {
|
|
96
|
+
default: r(() => [
|
|
97
|
+
a(o(V), null, {
|
|
98
|
+
default: r(() => {
|
|
99
|
+
var t, b, y, g;
|
|
100
|
+
return [
|
|
101
|
+
n("div", Z, [
|
|
102
|
+
a(o(D), {
|
|
103
|
+
value: (t = e.operation) == null ? void 0 : t.description,
|
|
104
|
+
withImages: "",
|
|
105
|
+
withAnchors: "",
|
|
106
|
+
transformType: "heading",
|
|
107
|
+
anchorPrefix: e.id
|
|
108
|
+
}, null, 8, ["value", "anchorPrefix"]),
|
|
109
|
+
a(M, {
|
|
110
|
+
parameters: (b = e.operation) == null ? void 0 : b.parameters,
|
|
111
|
+
requestBody: (y = e.operation) == null ? void 0 : y.requestBody,
|
|
112
|
+
schemas: e.schemas,
|
|
113
|
+
"onUpdate:modelValue": f
|
|
114
|
+
}, null, 8, ["parameters", "requestBody", "schemas"]),
|
|
115
|
+
a(U, {
|
|
116
|
+
responses: (g = e.operation) == null ? void 0 : g.responses,
|
|
117
|
+
schemas: e.schemas
|
|
118
|
+
}, null, 8, ["responses", "schemas"]),
|
|
119
|
+
a(o(p), null, {
|
|
120
|
+
default: r(() => {
|
|
121
|
+
var k, v;
|
|
122
|
+
return [
|
|
123
|
+
(k = e.operation) != null && k.callbacks ? (s(), l(H, {
|
|
124
|
+
key: 0,
|
|
125
|
+
callbacks: (v = e.operation) == null ? void 0 : v.callbacks,
|
|
126
|
+
collection: e.collection,
|
|
127
|
+
schemas: e.schemas
|
|
128
|
+
}, null, 8, ["callbacks", "collection", "schemas"])) : i("", !0)
|
|
129
|
+
];
|
|
130
|
+
}),
|
|
131
|
+
_: 1
|
|
132
|
+
})
|
|
133
|
+
])
|
|
134
|
+
];
|
|
135
|
+
}),
|
|
127
136
|
_: 1
|
|
128
137
|
}),
|
|
129
|
-
|
|
130
|
-
default:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
default:
|
|
134
|
-
|
|
138
|
+
a(o(V), null, {
|
|
139
|
+
default: r(() => [
|
|
140
|
+
n("div", _, [
|
|
141
|
+
a(o(p), null, {
|
|
142
|
+
default: r(() => [
|
|
143
|
+
a(o(Q), {
|
|
135
144
|
request: e.request,
|
|
136
|
-
method: e.
|
|
145
|
+
method: e.method,
|
|
137
146
|
collection: e.collection,
|
|
138
147
|
fallback: "",
|
|
139
|
-
operation: e.
|
|
148
|
+
operation: e.operation,
|
|
140
149
|
server: e.server,
|
|
141
150
|
schemas: e.schemas,
|
|
142
|
-
"onUpdate:modelValue":
|
|
143
|
-
},
|
|
144
|
-
header:
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
+
"onUpdate:modelValue": f
|
|
152
|
+
}, W({
|
|
153
|
+
header: r(() => {
|
|
154
|
+
var t;
|
|
155
|
+
return [
|
|
156
|
+
a(P, {
|
|
157
|
+
class: "example-path",
|
|
158
|
+
deprecated: (t = e.operation) == null ? void 0 : t.deprecated,
|
|
159
|
+
path: e.path
|
|
160
|
+
}, null, 8, ["deprecated", "path"])
|
|
161
|
+
];
|
|
162
|
+
}),
|
|
151
163
|
_: 2
|
|
152
164
|
}, [
|
|
153
165
|
e.request ? {
|
|
154
166
|
name: "footer",
|
|
155
|
-
fn:
|
|
156
|
-
|
|
167
|
+
fn: r(() => [
|
|
168
|
+
a(o(X), { operation: e.request }, null, 8, ["operation"])
|
|
157
169
|
]),
|
|
158
170
|
key: "0"
|
|
159
171
|
} : void 0
|
|
@@ -161,13 +173,16 @@ const j = { class: "operation-details" }, z = { class: "examples" }, pe = /* @__
|
|
|
161
173
|
]),
|
|
162
174
|
_: 1
|
|
163
175
|
}),
|
|
164
|
-
|
|
165
|
-
default:
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
176
|
+
a(o(p), null, {
|
|
177
|
+
default: r(() => {
|
|
178
|
+
var t;
|
|
179
|
+
return [
|
|
180
|
+
a(o(Y), {
|
|
181
|
+
responses: (t = e.operation) == null ? void 0 : t.responses,
|
|
182
|
+
style: { "margin-top": "12px" }
|
|
183
|
+
}, null, 8, ["responses"])
|
|
184
|
+
];
|
|
185
|
+
}),
|
|
171
186
|
_: 1
|
|
172
187
|
})
|
|
173
188
|
])
|
|
@@ -186,5 +201,5 @@ const j = { class: "operation-details" }, z = { class: "examples" }, pe = /* @__
|
|
|
186
201
|
}
|
|
187
202
|
});
|
|
188
203
|
export {
|
|
189
|
-
|
|
204
|
+
ke as default
|
|
190
205
|
};
|
|
@@ -3,8 +3,6 @@ type __VLS_Props = {
|
|
|
3
3
|
spec: Spec;
|
|
4
4
|
searchHotKey?: string;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
-
searchHotKey: string;
|
|
8
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
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>;
|
|
9
7
|
export default _default;
|
|
10
8
|
//# sourceMappingURL=SearchButton.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchButton.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAQhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,IAAI,CAAA;IACV,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAC;;AAiJF,wBAMG"}
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as k, ref as w, watch as C, nextTick as v, onMounted as K, onBeforeUnmount as B, createElementBlock as a, openBlock as r, Fragment as s, createVNode as c, unref as l, normalizeClass as b, withCtx as u, createElementVNode as n, createTextVNode as m, toDisplayString as E } from "vue";
|
|
2
2
|
import { useModal as H, ScalarSidebarSearchButton as M } from "@scalar/components";
|
|
3
3
|
import { isMacOS as f } from "@scalar/helpers/general/is-mac-os";
|
|
4
4
|
import g from "./SearchModal.vue.js";
|
|
5
|
-
import { useApiClient as
|
|
6
|
-
const O = /* @__PURE__ */
|
|
5
|
+
import { useApiClient as L } from "../api-client-modal/useApiClient.js";
|
|
6
|
+
const O = /* @__PURE__ */ k({
|
|
7
7
|
__name: "SearchButton",
|
|
8
8
|
props: {
|
|
9
9
|
spec: {},
|
|
10
10
|
searchHotKey: { default: "k" }
|
|
11
11
|
},
|
|
12
12
|
setup(y) {
|
|
13
|
-
const
|
|
13
|
+
const i = w(), o = H(), { client: S } = L(), d = (t) => {
|
|
14
14
|
var e;
|
|
15
|
-
(f() ? t.metaKey : t.ctrlKey) && t.key ===
|
|
15
|
+
(f() ? t.metaKey : t.ctrlKey) && t.key === y.searchHotKey && !((e = S.value) != null && e.modalState.open) && (t.preventDefault(), t.stopPropagation(), o.open ? o.hide() : o.show());
|
|
16
16
|
};
|
|
17
17
|
C(
|
|
18
18
|
() => o.open,
|
|
19
19
|
(t, e) => {
|
|
20
|
-
!t && e &&
|
|
21
|
-
var
|
|
22
|
-
(
|
|
20
|
+
!t && e && v(() => {
|
|
21
|
+
var p;
|
|
22
|
+
(p = i.value) == null || p.$el.focus();
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
),
|
|
26
|
-
function
|
|
25
|
+
), K(() => window.addEventListener("keydown", d)), B(() => window.removeEventListener("keydown", d));
|
|
26
|
+
function h() {
|
|
27
27
|
o.show();
|
|
28
28
|
}
|
|
29
|
-
return (t, e) => (
|
|
29
|
+
return (t, e) => (r(), a(s, null, [
|
|
30
30
|
c(l(M), {
|
|
31
31
|
ref_key: "button",
|
|
32
|
-
ref:
|
|
33
|
-
|
|
32
|
+
ref: i,
|
|
33
|
+
class: b(["w-full", t.$attrs.class]),
|
|
34
|
+
onClick: h
|
|
34
35
|
}, {
|
|
35
36
|
shortcut: u(() => [
|
|
36
|
-
l(f)() ? (
|
|
37
|
+
l(f)() ? (r(), a(s, { key: 0 }, [
|
|
37
38
|
m("⌘")
|
|
38
|
-
], 64)) : (
|
|
39
|
+
], 64)) : (r(), a(s, { key: 1 }, [
|
|
39
40
|
e[0] || (e[0] = n("span", { class: "sr-only" }, "CTRL", -1)),
|
|
40
41
|
e[1] || (e[1] = n("span", { "aria-hidden": "true" }, "⌃", -1))
|
|
41
42
|
], 64)),
|
|
@@ -49,7 +50,7 @@ const O = /* @__PURE__ */ w({
|
|
|
49
50
|
}, " Search ", -1))
|
|
50
51
|
]),
|
|
51
52
|
_: 1
|
|
52
|
-
},
|
|
53
|
+
}, 8, ["class"]),
|
|
53
54
|
c(g, {
|
|
54
55
|
modalState: l(o),
|
|
55
56
|
parsedSpec: t.spec
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SearchModal.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1b20799c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -3,8 +3,8 @@ import { ScalarModal as Z, ScalarSearchInput as _, ScalarSearchResultList as ee,
|
|
|
3
3
|
import { scrollToId as N } from "@scalar/helpers/dom/scroll-to-id";
|
|
4
4
|
import { nanoid as oe } from "nanoid";
|
|
5
5
|
import { lazyBus as ae } from "../../components/Content/Lazy/lazyBus.js";
|
|
6
|
-
import se from "
|
|
7
|
-
import
|
|
6
|
+
import { useSearchIndex as se } from "./useSearchIndex.js";
|
|
7
|
+
import ne from "../sidebar/components/SidebarHttpBadge.vue.js";
|
|
8
8
|
import { useSidebar as re } from "../sidebar/hooks/useSidebar.js";
|
|
9
9
|
const le = { class: "sr-only" }, ie = { class: "sr-only" }, ve = /* @__PURE__ */ Y({
|
|
10
10
|
__name: "SearchModal",
|
|
@@ -20,7 +20,7 @@ const le = { class: "sr-only" }, ie = { class: "sr-only" }, ve = /* @__PURE__ */
|
|
|
20
20
|
selectedSearchResult: k,
|
|
21
21
|
searchResultsWithPlaceholderResults: u,
|
|
22
22
|
searchText: p
|
|
23
|
-
} =
|
|
23
|
+
} = se({
|
|
24
24
|
specification: q
|
|
25
25
|
}), M = {
|
|
26
26
|
heading: "DocsPage",
|
|
@@ -172,7 +172,7 @@ const le = { class: "sr-only" }, ie = { class: "sr-only" }, ve = /* @__PURE__ */
|
|
|
172
172
|
e.item.type === "req" ? {
|
|
173
173
|
name: "addon",
|
|
174
174
|
fn: l(() => [
|
|
175
|
-
g(
|
|
175
|
+
g(ne, {
|
|
176
176
|
"aria-hidden": "true",
|
|
177
177
|
method: e.item.httpVerb ?? "get"
|
|
178
178
|
}, null, 8, ["method"]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSearchIndex.d.ts","sourceRoot":"","sources":["../../../src/features/Search/useSearchIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,IAAI,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACnF,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":"AAAA,OAAO,KAAK,EAAe,IAAI,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACnF,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,KAAK,CAAA;AAIpD,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;;;;;EAsM5B"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import A from "fuse.js";
|
|
2
2
|
import { ref as m, watch as T, computed as k } from "vue";
|
|
3
|
-
import {
|
|
3
|
+
import { useConfig as B } from "../../hooks/useConfig.js";
|
|
4
|
+
import { useNavState as P } from "../../hooks/useNavState.js";
|
|
4
5
|
import { useOperation as O } from "../../hooks/useOperation.js";
|
|
5
|
-
import { getHeadingsFromMarkdown as
|
|
6
|
-
import { extractRequestBody as j, getModels as
|
|
7
|
-
import { useConfig as G } from "../../hooks/useConfig.js";
|
|
6
|
+
import { getHeadingsFromMarkdown as z } from "../../libs/markdown.js";
|
|
7
|
+
import { extractRequestBody as j, getModels as G } from "../../libs/openapi.js";
|
|
8
8
|
import { isHttpMethod as J } from "@scalar/helpers/http/is-http-method";
|
|
9
9
|
function w({
|
|
10
10
|
specification: q
|
|
11
11
|
}) {
|
|
12
|
-
const { getHeadingId: H, getModelId: L, getTagId: C } =
|
|
12
|
+
const { getHeadingId: H, getModelId: L, getTagId: C } = P(), F = B(), a = m([]), d = m([]), i = m(), l = m(""), y = new A(a.value, {
|
|
13
13
|
keys: ["title", "description", "body"]
|
|
14
14
|
}), b = () => {
|
|
15
15
|
i.value = 0, d.value = y.search(l.value);
|
|
@@ -30,7 +30,7 @@ function w({
|
|
|
30
30
|
(e) => {
|
|
31
31
|
var E, x, V;
|
|
32
32
|
a.value = [];
|
|
33
|
-
const f = [], I =
|
|
33
|
+
const f = [], I = z(((E = e == null ? void 0 : e.info) == null ? void 0 : E.description) ?? "");
|
|
34
34
|
if (I.length && (I.forEach((t) => {
|
|
35
35
|
f.push({
|
|
36
36
|
type: "heading",
|
|
@@ -51,15 +51,15 @@ function w({
|
|
|
51
51
|
body: ""
|
|
52
52
|
};
|
|
53
53
|
a.value.push(h), t.operations && t.operations.forEach((s) => {
|
|
54
|
-
var
|
|
55
|
-
const { parameterMap: o } = O(s),
|
|
54
|
+
var u;
|
|
55
|
+
const { parameterMap: o } = O(s), n = j(s.information) || o.value;
|
|
56
56
|
let r = null;
|
|
57
|
-
typeof
|
|
57
|
+
typeof n != "boolean" && (r = n);
|
|
58
58
|
const c = {
|
|
59
59
|
type: "req",
|
|
60
60
|
title: s.name ?? s.path,
|
|
61
61
|
href: `#${s.id}`,
|
|
62
|
-
operationId: (
|
|
62
|
+
operationId: (u = s.information) == null ? void 0 : u.operationId,
|
|
63
63
|
description: s.description ?? "",
|
|
64
64
|
httpVerb: s.httpVerb,
|
|
65
65
|
path: s.path,
|
|
@@ -73,12 +73,12 @@ function w({
|
|
|
73
73
|
const t = e.paths;
|
|
74
74
|
Object.keys(t ?? {}).forEach((h) => {
|
|
75
75
|
Object.keys((t == null ? void 0 : t[h]) ?? {}).forEach((s) => {
|
|
76
|
-
var
|
|
77
|
-
const o = (
|
|
76
|
+
var n, r;
|
|
77
|
+
const o = (n = t == null ? void 0 : t[h]) == null ? void 0 : n[s];
|
|
78
78
|
if (J(s) && o) {
|
|
79
|
-
const { parameterMap: c } = O({ ...o, information: o }),
|
|
79
|
+
const { parameterMap: c } = O({ ...o, information: o }), u = j(o) || c.value;
|
|
80
80
|
let p = null;
|
|
81
|
-
typeof
|
|
81
|
+
typeof u != "boolean" && (p = u);
|
|
82
82
|
const R = {
|
|
83
83
|
type: "req",
|
|
84
84
|
title: o.name ?? o.path,
|
|
@@ -106,7 +106,7 @@ function w({
|
|
|
106
106
|
body: ""
|
|
107
107
|
}), a.value = a.value.concat(D);
|
|
108
108
|
});
|
|
109
|
-
const v = F.value.hideModels ? {} :
|
|
109
|
+
const v = F.value.hideModels ? {} : G(e), $ = [];
|
|
110
110
|
v && (Object.keys(v).forEach((t) => {
|
|
111
111
|
$.push({
|
|
112
112
|
type: "model",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/api-client-modal/ApiClientModal.vue"],"names":[],"mappings":"AAiKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAYzE,KAAK,WAAW,GAAG;IAEjB,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,CAAA;IAC/D,oBAAoB,EAAE,WAAW,CAAC,QAAQ,CAAA;CAC3C,CAAC;;AAuLF,wBAOG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/api-client-modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
|