@scalar/api-reference 1.31.18 → 1.32.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 +43 -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 +14230 -14155
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +122 -124
- 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 +94 -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 +19 -19
- 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/index.d.ts.map +1 -0
- package/dist/features/download-link/DownloadLink.vue.d.ts.map +1 -0
- package/dist/features/download-link/DownloadLink.vue.js +7 -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/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/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 +41 -43
- 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 +11 -11
- 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/index.d.ts.map +0 -1
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +0 -1
- package/dist/features/DownloadLink/DownloadLink.vue.js +0 -7
- 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/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}/hooks/useDocumentSource.js +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}/DownloadLink.vue2.js +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.vue.js +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
|
@@ -4,12 +4,18 @@ import type { Spec, Tag as TagType } from '@scalar/types/legacy';
|
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
/** Just to set the id for webhooks, for now */
|
|
6
6
|
id?: string;
|
|
7
|
+
document: OpenAPIV3_1.Document;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Use `document` instead
|
|
10
|
+
*/
|
|
7
11
|
collection: Collection;
|
|
8
12
|
tags: TagType[];
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `document` instead
|
|
15
|
+
*/
|
|
9
16
|
spec: Spec;
|
|
10
17
|
layout?: 'modern' | 'classic';
|
|
11
18
|
server?: Server;
|
|
12
|
-
schemas?: Record<string, OpenAPIV3_1.SchemaObject> | unknown;
|
|
13
19
|
};
|
|
14
20
|
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>;
|
|
15
21
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAahE,KAAK,WAAW,GAAG;IACjB,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf;;OAEG;IACH,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;;AA8HF,wBAMG"}
|
|
@@ -1,56 +1,59 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarErrorBoundary as
|
|
3
|
-
import { useNavState as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useSidebar as
|
|
1
|
+
import { defineComponent as z, computed as m, createElementBlock as p, openBlock as a, Fragment as y, renderList as f, createBlock as r, unref as o, withCtx as c, resolveDynamicComponent as S, createVNode as h } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as B } from "@scalar/components";
|
|
3
|
+
import { useNavState as I } from "../../../hooks/useNavState.js";
|
|
4
|
+
import T from "./TagAccordion.vue.js";
|
|
5
|
+
import W from "./TagSection.vue.js";
|
|
6
|
+
import { useSidebar as C } from "../../../features/sidebar/hooks/useSidebar.js";
|
|
7
7
|
import v from "../Lazy/Lazy.vue2.js";
|
|
8
|
-
import
|
|
9
|
-
const
|
|
8
|
+
import E from "../../../features/Operation/Operation.vue.js";
|
|
9
|
+
const G = /* @__PURE__ */ z({
|
|
10
10
|
__name: "TagList",
|
|
11
11
|
props: {
|
|
12
12
|
id: {},
|
|
13
|
+
document: {},
|
|
13
14
|
collection: {},
|
|
14
15
|
tags: {},
|
|
15
16
|
spec: {},
|
|
16
17
|
layout: {},
|
|
17
|
-
server: {}
|
|
18
|
-
schemas: {}
|
|
18
|
+
server: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const { getTagId:
|
|
22
|
-
() =>
|
|
23
|
-
),
|
|
24
|
-
() =>
|
|
25
|
-
),
|
|
26
|
-
return (e,
|
|
27
|
-
id: e.id || o(
|
|
28
|
-
key: e.id || o(
|
|
29
|
-
isLazy:
|
|
20
|
+
setup(s) {
|
|
21
|
+
const { getTagId: l, hash: k } = I(), { collapsedSidebarItems: n } = C(), L = m(
|
|
22
|
+
() => s.layout === "classic" ? T : W
|
|
23
|
+
), b = m(
|
|
24
|
+
() => s.tags.findIndex((e) => !n[l(e)]) + 1
|
|
25
|
+
), u = (e) => s.layout !== "classic" && !k.value.startsWith("model") && e > b.value;
|
|
26
|
+
return (e, N) => (a(!0), p(y, null, f(e.tags, (t, d) => (a(), r(o(v), {
|
|
27
|
+
id: e.id || o(l)(t),
|
|
28
|
+
key: e.id || o(l)(t),
|
|
29
|
+
isLazy: u(d)
|
|
30
30
|
}, {
|
|
31
|
-
default:
|
|
32
|
-
(
|
|
33
|
-
id: e.id || o(
|
|
31
|
+
default: c(() => [
|
|
32
|
+
(a(), r(S(L.value), {
|
|
33
|
+
id: e.id || o(l)(t),
|
|
34
34
|
collection: e.collection,
|
|
35
35
|
spec: e.spec,
|
|
36
|
-
tag:
|
|
36
|
+
tag: t
|
|
37
37
|
}, {
|
|
38
|
-
default:
|
|
39
|
-
(
|
|
40
|
-
id:
|
|
41
|
-
key:
|
|
42
|
-
isLazy:
|
|
38
|
+
default: c(() => [
|
|
39
|
+
(a(!0), p(y, null, f(t.operations, (i, g) => (a(), r(o(v), {
|
|
40
|
+
id: i.id,
|
|
41
|
+
key: i.id,
|
|
42
|
+
isLazy: u(d) || o(n)[o(l)(t)] && g > 0
|
|
43
43
|
}, {
|
|
44
|
-
default:
|
|
45
|
-
h(o(
|
|
46
|
-
default:
|
|
47
|
-
h(o(
|
|
44
|
+
default: c(() => [
|
|
45
|
+
h(o(B), null, {
|
|
46
|
+
default: c(() => [
|
|
47
|
+
h(o(E), {
|
|
48
|
+
path: i.path,
|
|
49
|
+
method: i.httpVerb,
|
|
50
|
+
isWebhook: i.isWebhook,
|
|
51
|
+
id: i.id,
|
|
52
|
+
document: e.document,
|
|
48
53
|
collection: e.collection,
|
|
49
54
|
layout: e.layout,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
transformedOperation: l
|
|
53
|
-
}, null, 8, ["collection", "layout", "schemas", "server", "transformedOperation"])
|
|
55
|
+
server: e.server
|
|
56
|
+
}, null, 8, ["path", "method", "isWebhook", "id", "document", "collection", "layout", "server"])
|
|
54
57
|
]),
|
|
55
58
|
_: 2
|
|
56
59
|
}, 1024)
|
|
@@ -66,5 +69,5 @@ const q = /* @__PURE__ */ S({
|
|
|
66
69
|
}
|
|
67
70
|
});
|
|
68
71
|
export {
|
|
69
|
-
|
|
72
|
+
G as default
|
|
70
73
|
};
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
2
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
3
|
-
import type { TransformedOperation } from '@scalar/types/legacy';
|
|
4
3
|
type __VLS_Props = {
|
|
4
|
+
document?: OpenAPIV3_1.Document;
|
|
5
|
+
path: string;
|
|
6
|
+
method: OpenAPIV3_1.HttpMethods;
|
|
7
|
+
isWebhook?: boolean;
|
|
5
8
|
layout?: 'modern' | 'classic';
|
|
6
|
-
|
|
9
|
+
id: string;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `document` instead
|
|
12
|
+
*/
|
|
7
13
|
collection: Collection;
|
|
8
14
|
server: Server | undefined;
|
|
9
|
-
schemas?: Record<string, OpenAPIV3_1.SchemaObject> | unknown;
|
|
10
15
|
};
|
|
11
16
|
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>;
|
|
12
17
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAYxD,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B,CAAC;;AAuKF,wBAMG"}
|
|
@@ -1,63 +1,79 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import { getPointer as
|
|
4
|
-
import { useBlockProps as
|
|
5
|
-
import { useOperationDiscriminator as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as b, computed as k, createElementBlock as W, createCommentVNode as y, openBlock as c, Fragment as U, createBlock as f, unref as m } from "vue";
|
|
2
|
+
import { useWorkspace as q } from "@scalar/api-client/store";
|
|
3
|
+
import { getPointer as B } from "../../blocks/helpers/getPointer.js";
|
|
4
|
+
import { useBlockProps as V } from "../../blocks/hooks/useBlockProps.js";
|
|
5
|
+
import { useOperationDiscriminator as C } from "../../hooks/useOperationDiscriminator.js";
|
|
6
|
+
import S from "./layouts/ClassicLayout.vue.js";
|
|
7
|
+
import g from "./layouts/ModernLayout.vue.js";
|
|
8
|
+
const M = /* @__PURE__ */ b({
|
|
9
9
|
__name: "Operation",
|
|
10
10
|
props: {
|
|
11
|
+
document: {},
|
|
12
|
+
path: {},
|
|
13
|
+
method: {},
|
|
14
|
+
isWebhook: { type: Boolean },
|
|
11
15
|
layout: { default: "modern" },
|
|
12
|
-
|
|
16
|
+
id: {},
|
|
13
17
|
collection: {},
|
|
14
|
-
server: {}
|
|
15
|
-
schemas: {}
|
|
18
|
+
server: {}
|
|
16
19
|
},
|
|
17
|
-
setup(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
setup(o) {
|
|
21
|
+
var v, p;
|
|
22
|
+
const u = q(), s = k(
|
|
23
|
+
() => {
|
|
24
|
+
var e, t, n, r, i, l;
|
|
25
|
+
return o.isWebhook ? (n = (t = (e = o.document) == null ? void 0 : e.webhooks) == null ? void 0 : t[o.path]) == null ? void 0 : n[o.method] : (l = (i = (r = o.document) == null ? void 0 : r.paths) == null ? void 0 : i[o.path]) == null ? void 0 : l[o.method];
|
|
26
|
+
}
|
|
27
|
+
), { handleDiscriminatorChange: d } = C(
|
|
28
|
+
s.value,
|
|
29
|
+
(p = (v = o.document) == null ? void 0 : v.components) == null ? void 0 : p.schemas
|
|
30
|
+
), { operation: a } = V({
|
|
31
|
+
store: u,
|
|
32
|
+
collection: o.collection,
|
|
33
|
+
location: B([o.isWebhook ? "webhooks" : "paths", o.path, o.method])
|
|
34
|
+
}), h = k(() => {
|
|
30
35
|
var e;
|
|
31
|
-
if (!
|
|
32
|
-
return
|
|
33
|
-
if ((e =
|
|
34
|
-
const
|
|
35
|
-
if (
|
|
36
|
-
return
|
|
36
|
+
if (!a.value)
|
|
37
|
+
return o.server;
|
|
38
|
+
if ((e = a.value) != null && e.selectedServerUid) {
|
|
39
|
+
const t = u.servers[a.value.selectedServerUid];
|
|
40
|
+
if (t)
|
|
41
|
+
return t;
|
|
37
42
|
}
|
|
38
|
-
return
|
|
43
|
+
return o.server;
|
|
39
44
|
});
|
|
40
|
-
return (e,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
server:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
45
|
+
return (e, t) => {
|
|
46
|
+
var n, r, i, l;
|
|
47
|
+
return e.collection && s.value ? (c(), W(U, { key: 0 }, [
|
|
48
|
+
e.layout === "classic" ? (c(), f(S, {
|
|
49
|
+
key: 0,
|
|
50
|
+
id: e.id,
|
|
51
|
+
operation: s.value,
|
|
52
|
+
collection: e.collection,
|
|
53
|
+
isWebhook: e.isWebhook,
|
|
54
|
+
method: e.method,
|
|
55
|
+
path: e.path,
|
|
56
|
+
request: m(a),
|
|
57
|
+
schemas: (r = (n = e.document) == null ? void 0 : n.components) == null ? void 0 : r.schemas,
|
|
58
|
+
server: h.value,
|
|
59
|
+
"onUpdate:modelValue": m(d)
|
|
60
|
+
}, null, 8, ["id", "operation", "collection", "isWebhook", "method", "path", "request", "schemas", "server", "onUpdate:modelValue"])) : (c(), f(g, {
|
|
61
|
+
key: 1,
|
|
62
|
+
id: e.id,
|
|
63
|
+
collection: e.collection,
|
|
64
|
+
isWebhook: e.isWebhook,
|
|
65
|
+
method: e.method,
|
|
66
|
+
path: e.path,
|
|
67
|
+
request: m(a),
|
|
68
|
+
operation: s.value,
|
|
69
|
+
schemas: (l = (i = e.document) == null ? void 0 : i.components) == null ? void 0 : l.schemas,
|
|
70
|
+
server: h.value,
|
|
71
|
+
"onUpdate:modelValue": m(d)
|
|
72
|
+
}, null, 8, ["id", "collection", "isWebhook", "method", "path", "request", "operation", "schemas", "server", "onUpdate:modelValue"]))
|
|
73
|
+
], 64)) : y("", !0);
|
|
74
|
+
};
|
|
59
75
|
}
|
|
60
76
|
});
|
|
61
77
|
export {
|
|
62
|
-
|
|
78
|
+
M as default
|
|
63
79
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationParameters.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/OperationParameters.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationParameters.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/OperationParameters.vue"],"names":[],"mappings":"AAqEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,WAAW,CAAC,eAAe,EAAE,CAAA;IAC1C,WAAW,CAAC,EAAE,WAAW,CAAC,iBAAiB,GAAG,SAAS,CAAA;IACvD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA+IF,wBAOG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationResponses.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/OperationResponses.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationResponses.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/OperationResponses.vue"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAOxD,KAAK,WAAW,GAAG;IACf,SAAS,EAAE,WAAW,CAAC,cAAc,GAAG,SAAS,CAAA;IACjD,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;sBAFmB,OAAO;;AA+E9B,wBAQG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callback.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callback.vue"],"names":[],"mappings":"AAqHA,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEhF,OAAO,KAAK,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"Callback.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callback.vue"],"names":[],"mappings":"AAqHA,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEhF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAMvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,eAAe,CAAA;IACrC,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAC;;AAqJF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Callback.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-744e489e"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import type { Collection, Request, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type {
|
|
2
|
+
import type { OpenAPIV3_1 } from '@scalar/types/legacy';
|
|
3
3
|
import type { Schemas } from '../../../features/Operation/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":"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":"AAiVA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAWvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAcjE,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;;;;;;AA2UF,wBAQG"}
|
|
@@ -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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f1a2267c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,79 +1,84 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import { ScalarIconWebhooksLogo as
|
|
4
|
-
import { useClipboard as
|
|
5
|
-
import
|
|
6
|
-
import { useConfig as
|
|
7
|
-
import { isOperationDeprecated as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
const
|
|
1
|
+
import { defineComponent as S, computed as V, createBlock as a, openBlock as n, unref as o, createSlots as w, withCtx as i, createElementVNode as s, createVNode as t, createCommentVNode as p, withModifiers as B, toDisplayString as u, normalizeClass as T, createTextVNode as f } from "vue";
|
|
2
|
+
import { ScalarIcon as I, ScalarIconButton as R, ScalarMarkdown as N } from "@scalar/components";
|
|
3
|
+
import { ScalarIconWebhooksLogo as O } from "@scalar/icons";
|
|
4
|
+
import { useClipboard as P } from "@scalar/use-hooks/useClipboard";
|
|
5
|
+
import W from "../../../components/OperationPath.vue.js";
|
|
6
|
+
import { useConfig as $ } from "../../../hooks/useConfig.js";
|
|
7
|
+
import { isOperationDeprecated as z, getOperationStability as y, getOperationStabilityColor as A } from "../../../libs/openapi.js";
|
|
8
|
+
import D from "../components/OperationParameters.vue.js";
|
|
9
|
+
import E from "../components/OperationResponses.vue.js";
|
|
10
|
+
import L from "../../../components/Section/SectionAccordion.vue.js";
|
|
11
|
+
import U from "../../example-responses/ExampleResponses.vue.js";
|
|
12
|
+
import _ from "../../example-request/ExampleRequest.vue.js";
|
|
13
|
+
import M from "../../test-request-button/TestRequestButton.vue.js";
|
|
14
|
+
import j from "../../../components/HttpMethod/HttpMethod.vue.js";
|
|
15
|
+
import F from "../../../components/Anchor/Anchor.vue.js";
|
|
16
|
+
import v from "../../../components/Badge/Badge.vue.js";
|
|
17
|
+
const G = { class: "operation-title" }, H = { class: "operation-details" }, J = { class: "endpoint-label" }, K = { class: "endpoint-label-path" }, Q = { class: "endpoint-label-name" }, X = { class: "endpoint-content" }, Y = { class: "operation-details-card" }, Z = { class: "operation-details-card-item" }, x = { class: "operation-details-card-item" }, ve = /* @__PURE__ */ S({
|
|
18
18
|
__name: "ClassicLayout",
|
|
19
19
|
props: {
|
|
20
|
+
id: {},
|
|
21
|
+
path: {},
|
|
22
|
+
method: {},
|
|
23
|
+
operation: {},
|
|
24
|
+
isWebhook: { type: Boolean },
|
|
20
25
|
collection: {},
|
|
21
26
|
server: {},
|
|
22
27
|
request: {},
|
|
23
|
-
transformedOperation: {},
|
|
24
28
|
schemas: {}
|
|
25
29
|
},
|
|
26
30
|
emits: ["update:modelValue"],
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
|
|
31
|
+
setup(d, { emit: b }) {
|
|
32
|
+
const g = V(() => {
|
|
33
|
+
var e;
|
|
34
|
+
return ((e = d.operation) == null ? void 0 : e.summary) || d.path || "";
|
|
35
|
+
}), { copyToClipboard: k } = P(), C = $(), q = b, m = (e) => {
|
|
36
|
+
q("update:modelValue", e);
|
|
30
37
|
};
|
|
31
|
-
return (e,
|
|
32
|
-
var
|
|
33
|
-
return
|
|
34
|
-
id: e.
|
|
38
|
+
return (e, r) => {
|
|
39
|
+
var c;
|
|
40
|
+
return n(), a(o(L), {
|
|
41
|
+
id: e.id,
|
|
35
42
|
class: "reference-endpoint",
|
|
36
43
|
transparent: ""
|
|
37
|
-
},
|
|
38
|
-
title:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
t(o(
|
|
44
|
+
}, w({
|
|
45
|
+
title: i(() => [
|
|
46
|
+
s("div", G, [
|
|
47
|
+
s("div", H, [
|
|
48
|
+
t(o(j), {
|
|
42
49
|
class: "endpoint-type",
|
|
43
|
-
method: e.
|
|
50
|
+
method: e.method,
|
|
44
51
|
short: ""
|
|
45
52
|
}, null, 8, ["method"]),
|
|
46
|
-
t(o(
|
|
47
|
-
id: e.
|
|
53
|
+
t(o(F), {
|
|
54
|
+
id: e.id,
|
|
48
55
|
class: "endpoint-anchor"
|
|
49
56
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
t(
|
|
54
|
-
deprecated: o(
|
|
55
|
-
path: e.
|
|
57
|
+
default: i(() => [
|
|
58
|
+
s("h3", J, [
|
|
59
|
+
s("div", K, [
|
|
60
|
+
t(W, {
|
|
61
|
+
deprecated: o(z)(e.operation),
|
|
62
|
+
path: e.path
|
|
56
63
|
}, null, 8, ["deprecated", "path"])
|
|
57
64
|
]),
|
|
58
|
-
|
|
59
|
-
o(
|
|
65
|
+
s("div", Q, u(g.value), 1),
|
|
66
|
+
o(y)(e.operation) ? (n(), a(o(v), {
|
|
60
67
|
key: 0,
|
|
61
|
-
class:
|
|
62
|
-
o(P)(e.transformedOperation.information)
|
|
63
|
-
)
|
|
68
|
+
class: T(o(A)(e.operation))
|
|
64
69
|
}, {
|
|
65
|
-
default:
|
|
66
|
-
|
|
70
|
+
default: i(() => [
|
|
71
|
+
f(u(o(y)(e.operation)), 1)
|
|
67
72
|
]),
|
|
68
73
|
_: 1
|
|
69
74
|
}, 8, ["class"])) : p("", !0),
|
|
70
|
-
e.
|
|
75
|
+
e.isWebhook ? (n(), a(o(v), {
|
|
71
76
|
key: 1,
|
|
72
77
|
class: "font-code text-green flex w-fit items-center justify-center gap-1"
|
|
73
78
|
}, {
|
|
74
|
-
default:
|
|
75
|
-
t(o(
|
|
76
|
-
|
|
79
|
+
default: i(() => [
|
|
80
|
+
t(o(O), { weight: "bold" }),
|
|
81
|
+
r[1] || (r[1] = f("Webhook "))
|
|
77
82
|
]),
|
|
78
83
|
_: 1
|
|
79
84
|
})) : p("", !0)
|
|
@@ -84,72 +89,75 @@ const M = { class: "operation-title" }, j = { class: "operation-details" }, F =
|
|
|
84
89
|
])
|
|
85
90
|
])
|
|
86
91
|
]),
|
|
87
|
-
actions:
|
|
88
|
-
var
|
|
92
|
+
actions: i(({ active: l }) => {
|
|
93
|
+
var h;
|
|
89
94
|
return [
|
|
90
|
-
|
|
95
|
+
l && e.request ? (n(), a(o(M), {
|
|
91
96
|
key: 0,
|
|
92
97
|
operation: e.request
|
|
93
|
-
}, null, 8, ["operation"])) : (
|
|
98
|
+
}, null, 8, ["operation"])) : (h = o(C)) != null && h.hideTestRequestButton ? p("", !0) : (n(), a(o(I), {
|
|
94
99
|
key: 1,
|
|
95
100
|
class: "endpoint-try-hint size-6",
|
|
96
101
|
icon: "Play",
|
|
97
102
|
thickness: "1.75px"
|
|
98
103
|
})),
|
|
99
|
-
t(o(
|
|
104
|
+
t(o(R), {
|
|
100
105
|
class: "endpoint-copy p-0.5",
|
|
101
106
|
icon: "Clipboard",
|
|
102
107
|
label: "Copy endpoint URL",
|
|
103
108
|
size: "xs",
|
|
104
109
|
variant: "ghost",
|
|
105
|
-
onClick:
|
|
110
|
+
onClick: r[0] || (r[0] = B((ee) => o(k)(e.path), ["stop"]))
|
|
106
111
|
})
|
|
107
112
|
];
|
|
108
113
|
}),
|
|
109
|
-
default:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
t(
|
|
114
|
-
|
|
114
|
+
default: i(() => [
|
|
115
|
+
s("div", X, [
|
|
116
|
+
s("div", Y, [
|
|
117
|
+
s("div", Z, [
|
|
118
|
+
t(D, {
|
|
119
|
+
parameters: e.operation.parameters,
|
|
115
120
|
schemas: e.schemas,
|
|
116
|
-
"onUpdate:modelValue":
|
|
117
|
-
}, null, 8, ["
|
|
121
|
+
"onUpdate:modelValue": m
|
|
122
|
+
}, null, 8, ["parameters", "schemas"])
|
|
118
123
|
]),
|
|
119
|
-
|
|
120
|
-
t(
|
|
124
|
+
s("div", x, [
|
|
125
|
+
t(E, {
|
|
121
126
|
collapsableItems: !1,
|
|
122
|
-
responses: e.
|
|
127
|
+
responses: e.operation.responses,
|
|
123
128
|
schemas: e.schemas
|
|
124
129
|
}, null, 8, ["responses", "schemas"])
|
|
125
130
|
])
|
|
126
131
|
]),
|
|
127
|
-
t(o(
|
|
128
|
-
responses: e.
|
|
132
|
+
t(o(U), {
|
|
133
|
+
responses: e.operation.responses
|
|
129
134
|
}, null, 8, ["responses"]),
|
|
130
|
-
t(o(
|
|
135
|
+
t(o(_), {
|
|
131
136
|
request: e.request,
|
|
132
|
-
method: e.
|
|
137
|
+
method: e.method,
|
|
133
138
|
collection: e.collection,
|
|
134
|
-
operation: e.
|
|
139
|
+
operation: e.operation,
|
|
135
140
|
server: e.server,
|
|
136
|
-
"onUpdate:modelValue":
|
|
141
|
+
"onUpdate:modelValue": m
|
|
137
142
|
}, null, 8, ["request", "method", "collection", "operation", "server"])
|
|
138
143
|
])
|
|
139
144
|
]),
|
|
140
145
|
_: 2
|
|
141
146
|
}, [
|
|
142
|
-
(
|
|
147
|
+
(c = e.operation) != null && c.description ? {
|
|
143
148
|
name: "description",
|
|
144
|
-
fn:
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
149
|
+
fn: i(() => {
|
|
150
|
+
var l;
|
|
151
|
+
return [
|
|
152
|
+
t(o(N), {
|
|
153
|
+
value: (l = e.operation) == null ? void 0 : l.description,
|
|
154
|
+
withImages: "",
|
|
155
|
+
withAnchors: "",
|
|
156
|
+
transformType: "heading",
|
|
157
|
+
anchorPrefix: e.id
|
|
158
|
+
}, null, 8, ["value", "anchorPrefix"])
|
|
159
|
+
];
|
|
160
|
+
}),
|
|
153
161
|
key: "0"
|
|
154
162
|
} : void 0
|
|
155
163
|
]), 1032, ["id"]);
|
|
@@ -157,5 +165,5 @@ const M = { class: "operation-title" }, j = { class: "operation-details" }, F =
|
|
|
157
165
|
}
|
|
158
166
|
});
|
|
159
167
|
export {
|
|
160
|
-
|
|
168
|
+
ve as default
|
|
161
169
|
};
|