@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,7 +1,7 @@
|
|
|
1
1
|
import o from "./ExampleRequest.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2d271bd7"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as pe, useId as fe, ref as
|
|
1
|
+
import { defineComponent as pe, useId as fe, ref as j, inject as Q, computed as m, watch as Y, onMounted as ye, createBlock as w, createCommentVNode as J, unref as r, openBlock as g, withCtx as s, createVNode as n, createElementVNode as U, renderSlot as $, createTextVNode as b, createElementBlock as D, Fragment as Z, toDisplayString as H } from "vue";
|
|
2
2
|
import { useWorkspace as ve } from "@scalar/api-client/store";
|
|
3
|
-
import {
|
|
4
|
-
import { filterSecurityRequirements as
|
|
5
|
-
import { ScalarCodeBlock as
|
|
6
|
-
import { freezeElement as
|
|
7
|
-
import { requestSchema as
|
|
8
|
-
import { isDereferenced as
|
|
9
|
-
import
|
|
10
|
-
import { useConfig as
|
|
11
|
-
import { EXAMPLE_CONTEXT as
|
|
12
|
-
import { useHttpClientStore as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
3
|
+
import { getHarRequest as ge, getSnippet as xe } from "@scalar/api-client/views/Components/CodeSnippet";
|
|
4
|
+
import { filterSecurityRequirements as he } from "@scalar/api-client/views/Request/RequestSection";
|
|
5
|
+
import { ScalarCodeBlock as qe } from "@scalar/components";
|
|
6
|
+
import { freezeElement as Ee } from "@scalar/helpers/dom/freeze-element";
|
|
7
|
+
import { requestSchema as Ke, createExampleFromRequest as be } from "@scalar/oas-utils/entities/spec";
|
|
8
|
+
import { isDereferenced as Se } from "@scalar/openapi-types/helpers";
|
|
9
|
+
import I from "../../components/ScreenReader.vue.js";
|
|
10
|
+
import { useConfig as ke } from "../../hooks/useConfig.js";
|
|
11
|
+
import { EXAMPLE_CONTEXT as Ce, DISCRIMINATOR_CONTEXT as Oe } from "../../hooks/useDiscriminator.js";
|
|
12
|
+
import { useHttpClientStore as Ne } from "../../stores/useHttpClientStore.js";
|
|
13
|
+
import $e from "./ExamplePicker.vue.js";
|
|
14
|
+
import Te from "./TextSelect.vue.js";
|
|
15
15
|
/* empty css */
|
|
16
16
|
import _ from "../../components/Card/Card.vue.js";
|
|
17
|
-
import
|
|
17
|
+
import Ve from "../../components/Card/CardHeader.vue.js";
|
|
18
18
|
import ee from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
19
19
|
import te from "../../components/Card/CardContent.vue.js";
|
|
20
|
-
import
|
|
20
|
+
import Re from "../../components/Card/CardFooter.vue.js";
|
|
21
21
|
import { useExampleStore as Be } from "../../legacy/stores/useExampleStore.js";
|
|
22
|
-
const je = ["id"],
|
|
22
|
+
const je = ["id"], we = ["id"], Je = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "request-card-footer-addon"
|
|
25
|
-
},
|
|
25
|
+
}, Ue = { class: "request-header" }, ot = /* @__PURE__ */ pe({
|
|
26
26
|
__name: "ExampleRequest",
|
|
27
27
|
props: {
|
|
28
28
|
server: {},
|
|
@@ -34,28 +34,28 @@ const je = ["id"], Re = ["id"], we = {
|
|
|
34
34
|
schemas: {}
|
|
35
35
|
},
|
|
36
36
|
setup(l) {
|
|
37
|
-
const { selectedExampleKey: M, operationId: ae } = Be(), { requestExamples:
|
|
37
|
+
const { selectedExampleKey: M, operationId: ae } = Be(), { requestExamples: S, securitySchemes: A, requestExampleMutators: T } = ve(), le = ke(), {
|
|
38
38
|
httpClient: u,
|
|
39
39
|
setHttpClient: re,
|
|
40
40
|
availableTargets: F,
|
|
41
41
|
httpTargetTitle: oe,
|
|
42
42
|
httpClientTitle: se
|
|
43
|
-
} =
|
|
43
|
+
} = Ne(), k = fe(), x = j(!1), C = Q(Ce), f = Q(Oe), V = m(() => {
|
|
44
44
|
var e;
|
|
45
|
-
return (e =
|
|
46
|
-
}), P =
|
|
45
|
+
return (e = f == null ? void 0 : f.value) == null ? void 0 : e.selectedType;
|
|
46
|
+
}), P = m(
|
|
47
47
|
() => {
|
|
48
48
|
var e;
|
|
49
|
-
return ((e =
|
|
49
|
+
return ((e = f == null ? void 0 : f.value) == null ? void 0 : e.hasDiscriminator) || !1;
|
|
50
50
|
}
|
|
51
|
-
), d =
|
|
51
|
+
), d = m(() => {
|
|
52
52
|
var t;
|
|
53
53
|
const e = ["x-custom-examples", "x-codeSamples", "x-code-samples"];
|
|
54
54
|
for (const a of e)
|
|
55
55
|
if ((t = l.operation) != null && t[a])
|
|
56
56
|
return [...l.operation[a]];
|
|
57
57
|
return [];
|
|
58
|
-
}), o =
|
|
58
|
+
}), o = j(
|
|
59
59
|
// Default to first custom example
|
|
60
60
|
d.value.length ? {
|
|
61
61
|
targetKey: "customExamples",
|
|
@@ -74,14 +74,14 @@ const je = ["id"], Re = ["id"], we = {
|
|
|
74
74
|
clientKey: u.clientKey
|
|
75
75
|
};
|
|
76
76
|
});
|
|
77
|
-
const X =
|
|
78
|
-
const e =
|
|
77
|
+
const X = m(() => {
|
|
78
|
+
const e = O.value;
|
|
79
79
|
return Object.keys(e).length > 1;
|
|
80
80
|
}), ne = () => {
|
|
81
|
-
var
|
|
81
|
+
var q, E, c;
|
|
82
82
|
if (o.value.targetKey === "customExamples")
|
|
83
|
-
return ((
|
|
84
|
-
const e = u.clientKey, t = u.targetKey, a = l.request ||
|
|
83
|
+
return ((q = d.value[o.value.clientKey]) == null ? void 0 : q.source) ?? "";
|
|
84
|
+
const e = u.clientKey, t = u.targetKey, a = l.request || Ke.parse({
|
|
85
85
|
uid: l.operation.operationId || "temp-request",
|
|
86
86
|
method: l.method,
|
|
87
87
|
path: l.operation.path,
|
|
@@ -94,35 +94,35 @@ const je = ["id"], Re = ["id"], we = {
|
|
|
94
94
|
servers: [],
|
|
95
95
|
summary: l.operation.summary || "Example Request"
|
|
96
96
|
});
|
|
97
|
-
let i =
|
|
97
|
+
let i = S[((c = (E = l.request) == null ? void 0 : E.examples) == null ? void 0 : c[0]) ?? ""];
|
|
98
98
|
if (!i) {
|
|
99
|
-
const
|
|
100
|
-
i =
|
|
99
|
+
const B = O.value, K = Object.keys(B)[0];
|
|
100
|
+
i = be(a, K);
|
|
101
101
|
}
|
|
102
|
-
const p =
|
|
102
|
+
const p = he(
|
|
103
103
|
l.operation.security || l.collection.security,
|
|
104
104
|
l.collection.selectedSecuritySchemeUids,
|
|
105
105
|
A
|
|
106
|
-
),
|
|
107
|
-
operation:
|
|
106
|
+
), y = ge({
|
|
107
|
+
operation: a,
|
|
108
108
|
example: i,
|
|
109
109
|
server: l.server,
|
|
110
110
|
securitySchemes: p
|
|
111
|
-
});
|
|
112
|
-
return
|
|
113
|
-
}, z =
|
|
111
|
+
}), [h, N] = xe(t, e, y);
|
|
112
|
+
return h ? h.message ?? "" : N;
|
|
113
|
+
}, z = m(() => {
|
|
114
114
|
try {
|
|
115
115
|
return ne();
|
|
116
116
|
} catch (e) {
|
|
117
117
|
return console.error("[generateSnippet]", e), "";
|
|
118
118
|
}
|
|
119
|
-
}),
|
|
119
|
+
}), O = m(() => {
|
|
120
120
|
var a;
|
|
121
|
-
if (!
|
|
121
|
+
if (!Se(l.operation.requestBody))
|
|
122
122
|
return {};
|
|
123
123
|
const e = ((a = l.operation.requestBody) == null ? void 0 : a.content) ?? {}, t = Object.values(e)[0];
|
|
124
124
|
return (t == null ? void 0 : t.examples) ?? {};
|
|
125
|
-
}), ue =
|
|
125
|
+
}), ue = m(() => {
|
|
126
126
|
var t, a;
|
|
127
127
|
const e = (
|
|
128
128
|
// Specified language
|
|
@@ -132,13 +132,13 @@ const je = ["id"], Re = ["id"], we = {
|
|
|
132
132
|
)
|
|
133
133
|
);
|
|
134
134
|
return e === "shell" && z.value.includes("curl") ? "curl" : e === "Objective-C" ? "objc" : e;
|
|
135
|
-
}), ie =
|
|
135
|
+
}), ie = m(
|
|
136
136
|
() => Object.values(A).flatMap((e) => e.type === "apiKey" ? e.value : (e == null ? void 0 : e.type) === "http" ? [
|
|
137
137
|
e.token,
|
|
138
138
|
e.password,
|
|
139
139
|
btoa(`${e.username}:${e.password}`)
|
|
140
140
|
] : e.type === "oauth2" ? Object.values(e.flows).map((t) => t.token) : [])
|
|
141
|
-
), ce =
|
|
141
|
+
), ce = m(() => {
|
|
142
142
|
const e = F.value.map((t) => ({
|
|
143
143
|
value: t.key,
|
|
144
144
|
label: t.title,
|
|
@@ -161,11 +161,11 @@ const je = ["id"], Re = ["id"], we = {
|
|
|
161
161
|
label: t.label ?? t.lang ?? `Example #${a + 1}`
|
|
162
162
|
}))
|
|
163
163
|
}), e;
|
|
164
|
-
}),
|
|
164
|
+
}), R = j(null);
|
|
165
165
|
function me(e) {
|
|
166
166
|
const t = JSON.parse(e);
|
|
167
|
-
if (
|
|
168
|
-
const a =
|
|
167
|
+
if (R.value) {
|
|
168
|
+
const a = Ee(R.value.$el);
|
|
169
169
|
setTimeout(() => {
|
|
170
170
|
a();
|
|
171
171
|
}, 300);
|
|
@@ -175,94 +175,94 @@ const je = ["id"], Re = ["id"], we = {
|
|
|
175
175
|
function de(e) {
|
|
176
176
|
var i, p;
|
|
177
177
|
M.value = e, ae.value = l.operation.operationId;
|
|
178
|
-
const t =
|
|
178
|
+
const t = S[((p = (i = l.request) == null ? void 0 : i.examples) == null ? void 0 : p[0]) ?? ""], a = O.value[e];
|
|
179
179
|
if (t && (a != null && a.value))
|
|
180
180
|
try {
|
|
181
|
-
|
|
181
|
+
T.edit(
|
|
182
182
|
t.uid,
|
|
183
183
|
"body.raw.value",
|
|
184
184
|
JSON.stringify(a.value, null, 2)
|
|
185
185
|
);
|
|
186
|
-
} catch (
|
|
187
|
-
console.error("[handleExampleUpdate]",
|
|
186
|
+
} catch (y) {
|
|
187
|
+
console.error("[handleExampleUpdate]", y);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
ye(() => {
|
|
191
|
-
P.value &&
|
|
191
|
+
P.value && V.value && !x.value && L(V.value);
|
|
192
192
|
});
|
|
193
193
|
const L = (e) => {
|
|
194
|
-
var t, a, i, p,
|
|
194
|
+
var t, a, i, p, y, h, N, q, E;
|
|
195
195
|
if (!x.value)
|
|
196
196
|
try {
|
|
197
197
|
x.value = !0;
|
|
198
|
-
const
|
|
199
|
-
if (
|
|
200
|
-
const B = (a = (t =
|
|
198
|
+
const c = S[l.operation.examples[0]];
|
|
199
|
+
if (c && (C != null && C.generateExampleValue)) {
|
|
200
|
+
const B = (a = (t = c.body) == null ? void 0 : t.raw) != null && a.value ? JSON.parse(c.body.raw.value) : void 0, K = C.generateExampleValue(
|
|
201
201
|
Array.isArray(B)
|
|
202
202
|
);
|
|
203
|
-
if (
|
|
204
|
-
|
|
203
|
+
if (T.edit(
|
|
204
|
+
c.uid,
|
|
205
205
|
"body.raw.value",
|
|
206
|
-
JSON.stringify(
|
|
206
|
+
JSON.stringify(K, null, 2)
|
|
207
207
|
), (p = (i = l.request) == null ? void 0 : i.examples) != null && p[0]) {
|
|
208
|
-
const v =
|
|
209
|
-
v &&
|
|
208
|
+
const v = S[(h = (y = l.request) == null ? void 0 : y.examples) == null ? void 0 : h[0]];
|
|
209
|
+
v && T.edit(
|
|
210
210
|
v.uid,
|
|
211
211
|
"body.raw.value",
|
|
212
|
-
JSON.stringify(
|
|
212
|
+
JSON.stringify(K, null, 2)
|
|
213
213
|
);
|
|
214
214
|
}
|
|
215
|
-
if ((E = (q = (
|
|
215
|
+
if ((E = (q = (N = l.operation.requestBody) == null ? void 0 : N.content) == null ? void 0 : q["application/json"]) != null && E.examples) {
|
|
216
216
|
const v = l.operation.requestBody.content["application/json"].examples;
|
|
217
217
|
Object.keys(v).forEach((W) => {
|
|
218
218
|
var G;
|
|
219
|
-
(G = v[W]) != null && G.value && (v[W].value =
|
|
219
|
+
(G = v[W]) != null && G.value && (v[W].value = K);
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
} catch (
|
|
224
|
-
console.error("[handleDiscriminatorChange]",
|
|
223
|
+
} catch (c) {
|
|
224
|
+
console.error("[handleDiscriminatorChange]", c);
|
|
225
225
|
} finally {
|
|
226
226
|
x.value = !1;
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
|
-
return Y(
|
|
229
|
+
return Y(V, (e) => {
|
|
230
230
|
e && P.value && !x.value && L();
|
|
231
231
|
}), (e, t) => r(F).length || d.value.length ? (g(), w(r(_), {
|
|
232
232
|
key: 0,
|
|
233
|
-
"aria-labelledby": `${r(
|
|
233
|
+
"aria-labelledby": `${r(k)}-header`,
|
|
234
234
|
class: "dark-mode",
|
|
235
235
|
ref_key: "elem",
|
|
236
|
-
ref:
|
|
236
|
+
ref: R,
|
|
237
237
|
role: "region"
|
|
238
238
|
}, {
|
|
239
239
|
default: s(() => [
|
|
240
|
-
n(r(
|
|
240
|
+
n(r(Ve), { muted: "" }, {
|
|
241
241
|
actions: s(() => [
|
|
242
|
-
n(
|
|
242
|
+
n(Te, {
|
|
243
243
|
class: "request-client-picker",
|
|
244
|
-
controls: `${r(
|
|
244
|
+
controls: `${r(k)}-example`,
|
|
245
245
|
modelValue: JSON.stringify(o.value),
|
|
246
246
|
options: ce.value,
|
|
247
247
|
"onUpdate:modelValue": me
|
|
248
248
|
}, {
|
|
249
249
|
default: s(() => [
|
|
250
250
|
o.value.targetKey === "customExamples" ? (g(), D(Z, { key: 0 }, [
|
|
251
|
-
n(
|
|
251
|
+
n(I, null, {
|
|
252
252
|
default: s(() => t[1] || (t[1] = [
|
|
253
|
-
|
|
253
|
+
b("Selected Example:")
|
|
254
254
|
])),
|
|
255
255
|
_: 1
|
|
256
256
|
}),
|
|
257
|
-
|
|
257
|
+
b(" " + H(d.value[o.value.clientKey].label ?? "Example"), 1)
|
|
258
258
|
], 64)) : (g(), D(Z, { key: 1 }, [
|
|
259
|
-
n(
|
|
259
|
+
n(I, null, {
|
|
260
260
|
default: s(() => t[2] || (t[2] = [
|
|
261
|
-
|
|
261
|
+
b("Selected HTTP client:")
|
|
262
262
|
])),
|
|
263
263
|
_: 1
|
|
264
264
|
}),
|
|
265
|
-
|
|
265
|
+
b(" " + H(r(oe)) + " " + H(r(se)), 1)
|
|
266
266
|
], 64))
|
|
267
267
|
]),
|
|
268
268
|
_: 1
|
|
@@ -270,12 +270,12 @@ const je = ["id"], Re = ["id"], we = {
|
|
|
270
270
|
]),
|
|
271
271
|
default: s(() => [
|
|
272
272
|
U("div", {
|
|
273
|
-
id: `${r(
|
|
273
|
+
id: `${r(k)}-header`,
|
|
274
274
|
class: "request-header"
|
|
275
275
|
}, [
|
|
276
|
-
n(
|
|
276
|
+
n(I, null, {
|
|
277
277
|
default: s(() => t[0] || (t[0] = [
|
|
278
|
-
|
|
278
|
+
b("Request Example for")
|
|
279
279
|
])),
|
|
280
280
|
_: 1
|
|
281
281
|
}),
|
|
@@ -284,7 +284,7 @@ const je = ["id"], Re = ["id"], we = {
|
|
|
284
284
|
class: "request-method",
|
|
285
285
|
method: e.method
|
|
286
286
|
}, null, 8, ["method"]),
|
|
287
|
-
|
|
287
|
+
$(e.$slots, "header", {}, void 0, !0)
|
|
288
288
|
], 8, je)
|
|
289
289
|
]),
|
|
290
290
|
_: 3
|
|
@@ -296,35 +296,35 @@ const je = ["id"], Re = ["id"], we = {
|
|
|
296
296
|
}, {
|
|
297
297
|
default: s(() => [
|
|
298
298
|
U("div", {
|
|
299
|
-
id: `${r(
|
|
299
|
+
id: `${r(k)}-example`,
|
|
300
300
|
class: "code-snippet"
|
|
301
301
|
}, [
|
|
302
|
-
n(r(
|
|
302
|
+
n(r(qe), {
|
|
303
303
|
class: "bg-b-2 -outline-offset-2",
|
|
304
304
|
content: z.value,
|
|
305
305
|
hideCredentials: ie.value,
|
|
306
306
|
lang: ue.value,
|
|
307
307
|
lineNumbers: ""
|
|
308
308
|
}, null, 8, ["content", "hideCredentials", "lang"])
|
|
309
|
-
], 8,
|
|
309
|
+
], 8, we)
|
|
310
310
|
]),
|
|
311
311
|
_: 1
|
|
312
312
|
}),
|
|
313
|
-
(X.value || !r(le).hideTestRequestButton) && e.$slots.footer ? (g(), w(r(
|
|
313
|
+
(X.value || !r(le).hideTestRequestButton) && e.$slots.footer ? (g(), w(r(Re), {
|
|
314
314
|
key: 0,
|
|
315
315
|
class: "request-card-footer",
|
|
316
316
|
contrast: ""
|
|
317
317
|
}, {
|
|
318
318
|
default: s(() => [
|
|
319
|
-
X.value ? (g(), D("div",
|
|
320
|
-
n(
|
|
319
|
+
X.value ? (g(), D("div", Je, [
|
|
320
|
+
n($e, {
|
|
321
321
|
class: "request-example-selector",
|
|
322
|
-
examples:
|
|
322
|
+
examples: O.value,
|
|
323
323
|
modelValue: r(M),
|
|
324
324
|
"onUpdate:modelValue": de
|
|
325
325
|
}, null, 8, ["examples", "modelValue"])
|
|
326
326
|
])) : J("", !0),
|
|
327
|
-
|
|
327
|
+
$(e.$slots, "footer", {}, void 0, !0)
|
|
328
328
|
]),
|
|
329
329
|
_: 3
|
|
330
330
|
})) : J("", !0)
|
|
@@ -337,15 +337,15 @@ const je = ["id"], Re = ["id"], we = {
|
|
|
337
337
|
default: s(() => [
|
|
338
338
|
n(r(te), { class: "request-card-simple" }, {
|
|
339
339
|
default: s(() => [
|
|
340
|
-
U("div",
|
|
340
|
+
U("div", Ue, [
|
|
341
341
|
n(r(ee), {
|
|
342
342
|
as: "span",
|
|
343
343
|
class: "request-method",
|
|
344
344
|
method: e.method
|
|
345
345
|
}, null, 8, ["method"]),
|
|
346
|
-
|
|
346
|
+
$(e.$slots, "header", {}, void 0, !0)
|
|
347
347
|
]),
|
|
348
|
-
|
|
348
|
+
$(e.$slots, "footer", {}, void 0, !0)
|
|
349
349
|
]),
|
|
350
350
|
_: 3
|
|
351
351
|
})
|
|
@@ -355,5 +355,5 @@ const je = ["id"], Re = ["id"], we = {
|
|
|
355
355
|
}
|
|
356
356
|
});
|
|
357
357
|
export {
|
|
358
|
-
|
|
358
|
+
ot as default
|
|
359
359
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-request/TextSelect.vue"],"names":[],"mappings":"AA4HA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,GAAG,CAAA;IACf,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,CAAC,EAAE;YACR,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;SACd,EAAE,CAAA;KACJ,EAAE,CAAA;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAC;AAkBF,iBAAS,cAAc;WAyDT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;+FAQnB,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/example-request/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponse.vue"],"names":[],"mappings":"AAkGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAIpD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,OAAO,CAAC,cAAc,CAAA;CACjC,CAAC;;AA+FF,wBAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponses.vue"],"names":[],"mappings":"AAgVA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAsBhE;;GAEG;AAEH,KAAK,WAAW,GAAG;IAAE,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;CAAE,CAAC;;AAsVzD,wBAMG"}
|
|
@@ -9,7 +9,7 @@ import q from "../../components/Card/CardTabHeader.vue.js";
|
|
|
9
9
|
import G from "../../components/Card/CardTab.vue.js";
|
|
10
10
|
import Q from "../../components/Card/CardContent.vue.js";
|
|
11
11
|
import X from "../../components/Card/CardFooter.vue.js";
|
|
12
|
-
import Y from "../
|
|
12
|
+
import Y from "../example-request/ExamplePicker.vue.js";
|
|
13
13
|
const Z = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "scalar-card-checkbox"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/
|
|
1
|
+
{"version":3,"file":"DocumentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/features/multiple-documents/DocumentSelector.vue"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;;;;;;AA6HF,wBAOG"}
|
package/dist/{components/DocumentSelector → features/multiple-documents}/DocumentSelector.vue.js
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as p, computed as s, createElementBlock as b, createCommentVNode as f, openBlock as x, createVNode as r, unref as i, withCtx as
|
|
1
|
+
import { defineComponent as p, computed as s, createElementBlock as b, createCommentVNode as f, openBlock as x, createVNode as r, unref as i, withCtx as V, createElementVNode as c, toDisplayString as v } from "vue";
|
|
2
2
|
import { ScalarListbox as g } from "@scalar/components";
|
|
3
|
-
import { ScalarIconCaretUpDown as
|
|
4
|
-
const
|
|
3
|
+
import { ScalarIconCaretUpDown as h } from "@scalar/icons";
|
|
4
|
+
const S = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "document-selector -mb-1 p-3 pb-0"
|
|
7
7
|
}, w = {
|
|
8
|
-
class: "group/dropdown-label hover:bg-b-2 text-c-2 flex w-full cursor-pointer items-center rounded border px-2 py-1.75",
|
|
9
|
-
|
|
10
|
-
}, _ = { class: "text-c-1 overflow-hidden text-base text-ellipsis" },
|
|
8
|
+
class: "group/dropdown-label hover:bg-b-2 text-c-2 flex h-8 w-full cursor-pointer items-center rounded border px-2 py-1.75",
|
|
9
|
+
type: "button"
|
|
10
|
+
}, _ = { class: "text-c-1 overflow-hidden text-base text-ellipsis" }, k = /* @__PURE__ */ p({
|
|
11
11
|
__name: "DocumentSelector",
|
|
12
12
|
props: {
|
|
13
13
|
options: {},
|
|
14
14
|
modelValue: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["update:modelValue"],
|
|
17
|
-
setup(l, { emit:
|
|
18
|
-
const
|
|
17
|
+
setup(l, { emit: u }) {
|
|
18
|
+
const d = u, m = s(() => {
|
|
19
19
|
var e;
|
|
20
20
|
return l.options && ((e = l.options) == null ? void 0 : e.length) > 1;
|
|
21
21
|
}), a = s(
|
|
@@ -29,21 +29,21 @@ const h = {
|
|
|
29
29
|
}
|
|
30
30
|
), n = s({
|
|
31
31
|
get: () => a.value.find(({ id: e }) => e === String(l.modelValue)),
|
|
32
|
-
set: (e) =>
|
|
32
|
+
set: (e) => d("update:modelValue", Number(e.id))
|
|
33
33
|
});
|
|
34
|
-
return (e, o) => m.value ? (x(), b("div",
|
|
34
|
+
return (e, o) => m.value ? (x(), b("div", S, [
|
|
35
35
|
r(i(g), {
|
|
36
36
|
modelValue: n.value,
|
|
37
37
|
"onUpdate:modelValue": o[0] || (o[0] = (t) => n.value = t),
|
|
38
38
|
options: a.value,
|
|
39
39
|
resize: ""
|
|
40
40
|
}, {
|
|
41
|
-
default:
|
|
41
|
+
default: V(() => {
|
|
42
42
|
var t;
|
|
43
43
|
return [
|
|
44
|
-
c("
|
|
45
|
-
r(i(
|
|
46
|
-
c("span", _,
|
|
44
|
+
c("button", w, [
|
|
45
|
+
r(i(h), { class: "mr-1 size-4 text-current" }),
|
|
46
|
+
c("span", _, v(((t = n.value) == null ? void 0 : t.label) || "Select API"), 1)
|
|
47
47
|
])
|
|
48
48
|
];
|
|
49
49
|
}),
|
|
@@ -53,5 +53,5 @@ const h = {
|
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
k as default
|
|
57
57
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/multiple-documents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NavState } from '
|
|
1
|
+
import type { NavState } from '../../hooks/useNavState.js';
|
|
2
2
|
import { type AnyApiReferenceConfiguration, type ApiReferenceConfiguration, type SpecConfiguration } from '@scalar/types/api-reference';
|
|
3
3
|
import { type Ref } from 'vue';
|
|
4
4
|
type UseMultipleDocumentsProps = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMultipleDocuments.d.ts","sourceRoot":"","sources":["../../../src/features/multiple-documents/useMultipleDocuments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAEnD,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EAEvB,MAAM,6BAA6B,CAAA;AAGpC,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,KAAK,CAAA;AAKpD,KAAK,yBAAyB,GAAG;IAC/B;;;OAGG;IACH,aAAa,EAAE,GAAG,CAAC,4BAA4B,GAAG,SAAS,CAAC,CAAA;IAC5D,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,GAAG,QAAQ,CAAA;AAIZ;;GAEG;AACH,eAAO,MAAM,uBAAuB,kBACnB,4BAA4B,GAAG,SAAS,KACtD,iBAAiB,EA6BnB,CAAA;AA0CD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,8EAM9B,yBAAyB,KAAG;IAC7B,qBAAqB,EAAE,GAAG,CAAC,OAAO,CAAC,yBAAyB,CAAC,GAAG,iBAAiB,CAAC,CAAA;IAClF,kBAAkB,EAAE,GAAG,CAAC,iBAAiB,EAAE,CAAC,CAAA;IAC5C,qBAAqB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAClC,qBAAqB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACnC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACjB,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAmIxB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/components/Sidebar.vue"],"names":[],"mappings":"AAiRA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAmHF,iBAAS,cAAc;WAoKT,OAAO,IAA6B;;iCAVb,GAAG;+BACJ,GAAG;;;;;;EActC;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as N, ref as T, watch as L, onMounted as F, onUnmounted as G, createElementBlock as a, openBlock as n, renderSlot as C, createElementVNode as A, createVNode as V, withCtx as p, Fragment as u, renderList as m, unref as o, createBlock as c, toDisplayString as M, createCommentVNode as $ } from "vue";
|
|
2
2
|
import { sleep as w } from "@scalar/helpers/testing/sleep";
|
|
3
|
+
import { useNavState as D } from "../../../hooks/useNavState.js";
|
|
4
|
+
import { useSidebar as H } from "../hooks/useSidebar.js";
|
|
3
5
|
import h from "./SidebarElement.vue.js";
|
|
4
6
|
import y from "./SidebarGroup.vue.js";
|
|
5
|
-
import { useNavState as D } from "../../hooks/useNavState.js";
|
|
6
|
-
import { useSidebar as H } from "../../features/sidebar/hooks/useSidebar.js";
|
|
7
7
|
const R = { class: "sidebar" }, U = ["aria-label"], j = { class: "sidebar-group-title" }, q = -160, X = /* @__PURE__ */ N({
|
|
8
8
|
__name: "Sidebar",
|
|
9
9
|
props: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/components/SidebarElement.vue"],"names":[],"mappings":"AAiWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAQhE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,cAAc,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAuEF,iBAAS,cAAc;WA+KT,OAAO,IAA6B;;yBATpB,GAAG;+BACG,GAAG;;;;EAatC;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,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"}
|
|
@@ -5,8 +5,8 @@ import { getHttpMethodInfo as H } from "@scalar/helpers/http/http-info";
|
|
|
5
5
|
import { sleep as k } from "@scalar/helpers/testing/sleep";
|
|
6
6
|
import { ScalarIconWebhooksLogo as I } from "@scalar/icons";
|
|
7
7
|
import { combineUrlAndPath as R } from "@scalar/oas-utils/helpers";
|
|
8
|
-
import { useConfig as U } from "
|
|
9
|
-
import { useNavState as L } from "
|
|
8
|
+
import { useConfig as U } from "../../../hooks/useConfig.js";
|
|
9
|
+
import { useNavState as L } from "../../../hooks/useNavState.js";
|
|
10
10
|
import M from "./SidebarHttpBadge.vue.js";
|
|
11
11
|
const P = ["id"], z = {
|
|
12
12
|
key: 0,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/components/SidebarGroup.vue"],"names":[],"mappings":"AAgDA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAQF,iBAAS,cAAc;WAiDT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+SAOnB,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarHttpBadge.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/components/SidebarHttpBadge.vue"],"names":[],"mappings":"AAqDA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AAQF,iBAAS,cAAc;WA6DT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,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"}
|