@scalar/api-reference 1.36.2 → 1.37.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 +49 -0
- package/dist/browser/standalone.js +26143 -25935
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceContent.vue.d.ts +34 -0
- package/dist/components/ApiReferenceContent.vue.d.ts.map +1 -0
- package/dist/components/ApiReferenceContent.vue.js +8 -0
- package/dist/components/ApiReferenceContent.vue2.js +148 -0
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +239 -219
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.d.ts +21 -3
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +132 -95
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts +4 -2
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
- package/dist/components/Content/Models/ClassicLayout.vue2.js +28 -28
- package/dist/components/Content/Models/Models.vue.d.ts +10 -2
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +25 -27
- package/dist/components/Content/Models/ModernLayout.vue.d.ts +6 -2
- package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Models/ModernLayout.vue2.js +30 -29
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +20 -6
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.js +58 -46
- package/dist/components/Content/Operations/get-current-index.d.ts +1 -1
- package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-ref-name.js +9 -7
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +15 -14
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.js +2 -2
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts +3 -1
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue2.js +34 -30
- package/dist/components/Content/Tags/Tag.vue.d.ts +3 -1
- package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/Tag.vue.js +14 -12
- package/dist/components/Content/Tags/TagSection.vue.d.ts +2 -1
- package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/TagSection.vue.js +49 -52
- package/dist/components/OperationsList/OperationsList.vue.d.ts +1 -1
- package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsList.vue.js +2 -2
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue.d.ts +1 -0
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue2.js +12 -12
- package/dist/features/Operation/Operation.vue.d.ts +21 -9
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +42 -53
- package/dist/features/Operation/components/Header.vue.d.ts +2 -2
- package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Header.vue.js +9 -8
- package/dist/features/Operation/components/Headers.vue.d.ts +2 -2
- package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Headers.vue.js +2 -2
- package/dist/features/Operation/components/Headers.vue2.js +31 -29
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +5 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +16 -17
- package/dist/features/Operation/components/ParameterList.vue.d.ts +6 -2
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +17 -19
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +6 -2
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +64 -65
- package/dist/features/Operation/components/RequestBody.vue.d.ts +4 -0
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +65 -65
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +4 -0
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +29 -22
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +6 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +18 -16
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -5
- 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 +99 -90
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -5
- 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 +99 -87
- package/dist/features/Search/helpers/create-search-index.d.ts +2 -1
- package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
- package/dist/features/Search/types.d.ts +1 -1
- package/dist/features/Search/types.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.js +23 -26
- package/dist/features/api-client-modal/useApiClient.d.ts +3032 -2888
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.js +13 -11
- package/dist/features/document-source/hooks/useDocumentSource.d.ts +1 -1
- package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
- package/dist/features/example-responses/ExampleResponse.vue2.js +26 -18
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
- package/dist/features/example-responses/ExampleResponses.vue2.js +53 -53
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts +8 -5
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
- package/dist/features/multiple-documents/useMultipleDocuments.js +46 -43
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
- package/dist/features/test-request-button/TestRequestButton.vue2.js +15 -21
- package/dist/features/toolbar/ApiReferenceToolbar.vue.js +18 -18
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +8 -8
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +34 -28
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +27 -27
- package/dist/helpers/test-utils.d.ts +3 -365
- package/dist/helpers/test-utils.d.ts.map +1 -1
- package/dist/hooks/useNavState.d.ts +4 -2
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +31 -27
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -19
- package/dist/style.css +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +46 -40
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +2 -2
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +11 -11
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +2 -2
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +10 -10
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts +3 -0
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +2 -2
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +32 -31
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +15 -8
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +25 -20
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +8 -7
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +2 -2
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +27 -32
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +2 -22
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +2 -2
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js +70 -65
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts +9 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +2 -2
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue2.js +60 -57
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +3 -365
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +3 -183
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +1 -1
- package/dist/v2/helpers/map-configuration.d.ts +22 -22
- package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
- package/package.json +19 -16
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +0 -13
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +0 -1
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +0 -52
- package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +0 -4
- package/dist/components/Content/Operations/index.d.ts +0 -2
- package/dist/components/Content/Operations/index.d.ts.map +0 -1
- package/dist/hooks/useConfig.d.ts +0 -9
- package/dist/hooks/useConfig.d.ts.map +0 -1
- package/dist/hooks/useConfig.js +0 -10
- package/dist/legacy/stores/index.d.ts +0 -2
- package/dist/legacy/stores/index.d.ts.map +0 -1
- package/dist/legacy/stores/useExampleStore.d.ts +0 -5
- package/dist/legacy/stores/useExampleStore.d.ts.map +0 -1
- package/dist/legacy/stores/useExampleStore.js +0 -8
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +0 -14
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +0 -4
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +0 -55
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +0 -79
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +0 -7
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +0 -236
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +0 -41
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +0 -22
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +0 -20
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +0 -33
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +0 -17
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +0 -26
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +0 -4
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +0 -10
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts +0 -3
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts +0 -29
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +0 -1
|
@@ -1,53 +1,55 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as b, DisclosureButton as
|
|
3
|
-
import { ScalarIcon as
|
|
4
|
-
import { getResolvedRef as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as h, createBlock as m, openBlock as r, unref as a, withCtx as o, createElementVNode as n, normalizeClass as d, createVNode as t, createElementBlock as i, Fragment as c, createTextVNode as p, renderList as f } from "vue";
|
|
2
|
+
import { Disclosure as b, DisclosureButton as B, DisclosurePanel as P } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIcon as _ } from "@scalar/components";
|
|
4
|
+
import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
5
|
+
import v from "./Header.vue.js";
|
|
6
|
+
const C = /* @__PURE__ */ h({
|
|
7
7
|
__name: "Headers",
|
|
8
8
|
props: {
|
|
9
9
|
headers: {},
|
|
10
10
|
breadcrumb: {},
|
|
11
|
-
|
|
11
|
+
orderRequiredPropertiesFirst: { type: Boolean },
|
|
12
|
+
orderSchemaPropertiesBy: {}
|
|
12
13
|
},
|
|
13
|
-
setup(
|
|
14
|
-
return (
|
|
14
|
+
setup(R) {
|
|
15
|
+
return (e, S) => (r(), m(a(b), null, {
|
|
15
16
|
default: o(({ open: s }) => [
|
|
16
|
-
|
|
17
|
-
class:
|
|
17
|
+
n("div", {
|
|
18
|
+
class: d(["headers-card headers-card--compact", [{ "headers-card--open": s }]])
|
|
18
19
|
}, [
|
|
19
|
-
|
|
20
|
-
class:
|
|
20
|
+
n("div", {
|
|
21
|
+
class: d(["headers-properties", { "headers-properties-open": s }])
|
|
21
22
|
}, [
|
|
22
|
-
|
|
23
|
+
t(a(B), {
|
|
23
24
|
class: "headers-card-title headers-card-title--compact",
|
|
24
25
|
style: {
|
|
25
26
|
top: "calc(var(--refs-viewport-offset)))"
|
|
26
27
|
}
|
|
27
28
|
}, {
|
|
28
29
|
default: o(() => [
|
|
29
|
-
|
|
30
|
-
class:
|
|
30
|
+
t(a(_), {
|
|
31
|
+
class: d(["headers-card-title-icon", { "headers-card-title-icon--open": s }]),
|
|
31
32
|
icon: "Add",
|
|
32
33
|
size: "sm"
|
|
33
34
|
}, null, 8, ["class"]),
|
|
34
|
-
s ? (
|
|
35
|
-
|
|
36
|
-
], 64)) : (
|
|
37
|
-
|
|
35
|
+
s ? (r(), i(c, { key: 0 }, [
|
|
36
|
+
p(" Hide Headers ")
|
|
37
|
+
], 64)) : (r(), i(c, { key: 1 }, [
|
|
38
|
+
p(" Show Headers ")
|
|
38
39
|
], 64))
|
|
39
40
|
]),
|
|
40
41
|
_: 2
|
|
41
42
|
}, 1024),
|
|
42
|
-
|
|
43
|
+
t(a(P), null, {
|
|
43
44
|
default: o(() => [
|
|
44
|
-
(
|
|
45
|
-
key:
|
|
46
|
-
breadcrumb:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
(r(!0), i(c, null, f(e.headers, (u, l) => (r(), m(v, {
|
|
46
|
+
key: l,
|
|
47
|
+
breadcrumb: e.breadcrumb ? [...e.breadcrumb, "headers"] : void 0,
|
|
48
|
+
header: a(y)(u),
|
|
49
|
+
name: l,
|
|
50
|
+
orderRequiredPropertiesFirst: e.orderRequiredPropertiesFirst,
|
|
51
|
+
orderSchemaPropertiesBy: e.orderSchemaPropertiesBy
|
|
52
|
+
}, null, 8, ["breadcrumb", "header", "name", "orderRequiredPropertiesFirst", "orderSchemaPropertiesBy"]))), 128))
|
|
51
53
|
]),
|
|
52
54
|
_: 1
|
|
53
55
|
})
|
|
@@ -59,5 +61,5 @@ const z = /* @__PURE__ */ p({
|
|
|
59
61
|
}
|
|
60
62
|
});
|
|
61
63
|
export {
|
|
62
|
-
|
|
64
|
+
C as default
|
|
63
65
|
};
|
|
@@ -3,6 +3,10 @@ type __VLS_Props = {
|
|
|
3
3
|
breadcrumb?: string[];
|
|
4
4
|
parameters?: ParameterObject[];
|
|
5
5
|
requestBody?: RequestBodyObject | undefined;
|
|
6
|
+
options: {
|
|
7
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
8
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
9
|
+
};
|
|
6
10
|
};
|
|
7
11
|
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>;
|
|
8
12
|
export default _default;
|
|
@@ -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":"AAkEA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EAClB,MAAM,8DAA8D,CAAA;AAKrE,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,UAAU,CAAC,EAAE,eAAe,EAAE,CAAA;IAC9B,WAAW,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAA;IAC3C,OAAO,EAAE;QACP,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AA0HF,wBAMG"}
|
|
@@ -1,62 +1,68 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as i, createElementBlock as p, openBlock as b, Fragment as u, createVNode as m, createBlock as n, createCommentVNode as l, withCtx as o, createTextVNode as t } from "vue";
|
|
2
|
+
import s from "./ParameterList.vue.js";
|
|
3
3
|
import y from "./RequestBody.vue.js";
|
|
4
|
-
const k = /* @__PURE__ */
|
|
4
|
+
const k = /* @__PURE__ */ i({
|
|
5
5
|
__name: "OperationParameters",
|
|
6
6
|
props: {
|
|
7
7
|
breadcrumb: {},
|
|
8
8
|
parameters: { default: () => [] },
|
|
9
|
-
requestBody: {}
|
|
9
|
+
requestBody: {},
|
|
10
|
+
options: {}
|
|
10
11
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
return (e, r) => (
|
|
14
|
-
|
|
12
|
+
setup(d) {
|
|
13
|
+
const a = (e) => d.parameters?.filter((r) => r.in === e) ?? [];
|
|
14
|
+
return (e, r) => (b(), p(u, null, [
|
|
15
|
+
m(s, {
|
|
15
16
|
breadcrumb: e.breadcrumb ? [...e.breadcrumb, "path"] : void 0,
|
|
16
|
-
|
|
17
|
+
options: e.options,
|
|
18
|
+
parameters: a("path")
|
|
17
19
|
}, {
|
|
18
|
-
title:
|
|
19
|
-
|
|
20
|
+
title: o(() => r[0] || (r[0] = [
|
|
21
|
+
t("Path Parameters")
|
|
20
22
|
])),
|
|
21
23
|
_: 1
|
|
22
|
-
}, 8, ["breadcrumb", "parameters"]),
|
|
23
|
-
|
|
24
|
+
}, 8, ["breadcrumb", "options", "parameters"]),
|
|
25
|
+
m(s, {
|
|
24
26
|
breadcrumb: e.breadcrumb ? [...e.breadcrumb, "query"] : void 0,
|
|
25
|
-
|
|
27
|
+
options: e.options,
|
|
28
|
+
parameters: a("query")
|
|
26
29
|
}, {
|
|
27
|
-
title:
|
|
28
|
-
|
|
30
|
+
title: o(() => r[1] || (r[1] = [
|
|
31
|
+
t("Query Parameters")
|
|
29
32
|
])),
|
|
30
33
|
_: 1
|
|
31
|
-
}, 8, ["breadcrumb", "parameters"]),
|
|
32
|
-
|
|
34
|
+
}, 8, ["breadcrumb", "options", "parameters"]),
|
|
35
|
+
m(s, {
|
|
33
36
|
breadcrumb: e.breadcrumb ? [...e.breadcrumb, "headers"] : void 0,
|
|
34
|
-
|
|
37
|
+
options: e.options,
|
|
38
|
+
parameters: a("header")
|
|
35
39
|
}, {
|
|
36
|
-
title:
|
|
37
|
-
|
|
40
|
+
title: o(() => r[2] || (r[2] = [
|
|
41
|
+
t("Headers")
|
|
38
42
|
])),
|
|
39
43
|
_: 1
|
|
40
|
-
}, 8, ["breadcrumb", "parameters"]),
|
|
41
|
-
|
|
44
|
+
}, 8, ["breadcrumb", "options", "parameters"]),
|
|
45
|
+
m(s, {
|
|
42
46
|
breadcrumb: e.breadcrumb ? [...e.breadcrumb, "cookies"] : void 0,
|
|
43
|
-
|
|
47
|
+
options: e.options,
|
|
48
|
+
parameters: a("cookie")
|
|
44
49
|
}, {
|
|
45
|
-
title:
|
|
46
|
-
|
|
50
|
+
title: o(() => r[3] || (r[3] = [
|
|
51
|
+
t("Cookies")
|
|
47
52
|
])),
|
|
48
53
|
_: 1
|
|
49
|
-
}, 8, ["breadcrumb", "parameters"]),
|
|
50
|
-
e.requestBody ? (
|
|
54
|
+
}, 8, ["breadcrumb", "options", "parameters"]),
|
|
55
|
+
e.requestBody ? (b(), n(y, {
|
|
51
56
|
key: 0,
|
|
52
57
|
breadcrumb: e.breadcrumb ? [...e.breadcrumb, "body"] : void 0,
|
|
58
|
+
options: e.options,
|
|
53
59
|
requestBody: e.requestBody
|
|
54
60
|
}, {
|
|
55
|
-
title:
|
|
56
|
-
|
|
61
|
+
title: o(() => r[4] || (r[4] = [
|
|
62
|
+
t("Body")
|
|
57
63
|
])),
|
|
58
64
|
_: 1
|
|
59
|
-
}, 8, ["breadcrumb", "requestBody"])) : l("", !0)
|
|
65
|
+
}, 8, ["breadcrumb", "options", "requestBody"])) : l("", !0)
|
|
60
66
|
], 64));
|
|
61
67
|
}
|
|
62
68
|
});
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
responses: OperationObject['responses'];
|
|
4
|
-
collapsableItems?: boolean;
|
|
5
4
|
breadcrumb?: string[];
|
|
5
|
+
options: {
|
|
6
|
+
collapsableItems?: boolean | undefined;
|
|
7
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
8
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
9
|
+
};
|
|
6
10
|
};
|
|
7
11
|
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>;
|
|
8
12
|
export default _default;
|
|
@@ -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":"AAmCA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAInG,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,CAAC,WAAW,CAAC,CAAA;IACvC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,OAAO,EAAE;QACP,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;QACtC,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AAuEF,wBAMG"}
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getResolvedRef as
|
|
1
|
+
import { defineComponent as a, createElementBlock as s, createCommentVNode as p, openBlock as r, createElementVNode as n, Fragment as i, renderList as l, createBlock as d, unref as c } from "vue";
|
|
2
|
+
import { getResolvedRef as u } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
3
|
import b from "./ParameterListItem.vue.js";
|
|
4
4
|
const f = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "mt-6"
|
|
7
|
-
}, k = { class: "mb-3 list-none p-0 text-sm" },
|
|
7
|
+
}, k = { class: "mb-3 list-none p-0 text-sm" }, y = /* @__PURE__ */ a({
|
|
8
8
|
__name: "OperationResponses",
|
|
9
9
|
props: {
|
|
10
10
|
responses: {},
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
breadcrumb: {},
|
|
12
|
+
options: {}
|
|
13
13
|
},
|
|
14
14
|
setup(_) {
|
|
15
|
-
return (e,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
(
|
|
19
|
-
key:
|
|
15
|
+
return (e, t) => Object.keys(e.responses ?? {}).length ? (r(), s("div", f, [
|
|
16
|
+
t[0] || (t[0] = n("div", { class: "text-c-1 mt-3 mb-3 leading-[1.45] font-medium" }, "Responses", -1)),
|
|
17
|
+
n("ul", k, [
|
|
18
|
+
(r(!0), s(i, null, l(e.responses, (m, o) => (r(), d(b, {
|
|
19
|
+
key: o,
|
|
20
20
|
breadcrumb: e.breadcrumb,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
parameter: u
|
|
24
|
-
|
|
25
|
-
}, null, 8, ["breadcrumb", "collapsableItems", "name", "parameter"]))), 128))
|
|
21
|
+
name: o,
|
|
22
|
+
options: e.options,
|
|
23
|
+
parameter: c(u)(m)
|
|
24
|
+
}, null, 8, ["breadcrumb", "name", "options", "parameter"]))), 128))
|
|
26
25
|
])
|
|
27
|
-
])) :
|
|
26
|
+
])) : p("", !0);
|
|
28
27
|
}
|
|
29
28
|
});
|
|
30
29
|
export {
|
|
31
|
-
|
|
30
|
+
y as default
|
|
32
31
|
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import type { ParameterObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
parameters: ParameterObject[];
|
|
4
|
-
collapsableItems?: boolean;
|
|
5
|
-
withExamples?: boolean;
|
|
6
4
|
breadcrumb?: string[];
|
|
5
|
+
options: {
|
|
6
|
+
collapsableItems?: boolean;
|
|
7
|
+
withExamples?: boolean;
|
|
8
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
9
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
10
|
+
};
|
|
7
11
|
};
|
|
8
12
|
declare var __VLS_1: {};
|
|
9
13
|
type __VLS_Slots = {} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterList.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ParameterList.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterList.vue"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAInG,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,OAAO,EAAE;QACP,gBAAgB,CAAC,EAAE,OAAO,CAAA;QAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;QACtB,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;AAsDF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB7C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,34 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as n, createElementBlock as a, createCommentVNode as m, openBlock as r, createElementVNode as o, renderSlot as s, Fragment as l, renderList as p, createBlock as c } from "vue";
|
|
2
|
+
import i from "./ParameterListItem.vue.js";
|
|
3
|
+
const d = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "mt-6"
|
|
6
|
-
}, u = { class: "text-c-1 mt-3 mb-3 text-lg leading-[1.45] font-medium" }, b = { class: "mb-3 list-none p-0 text-sm" },
|
|
6
|
+
}, u = { class: "text-c-1 mt-3 mb-3 text-lg leading-[1.45] font-medium" }, b = { class: "mb-3 list-none p-0 text-sm" }, g = /* @__PURE__ */ n({
|
|
7
7
|
__name: "ParameterList",
|
|
8
8
|
props: {
|
|
9
9
|
parameters: {},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
breadcrumb: {}
|
|
10
|
+
breadcrumb: {},
|
|
11
|
+
options: {}
|
|
13
12
|
},
|
|
14
|
-
setup(
|
|
15
|
-
return (e,
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
setup(_) {
|
|
14
|
+
return (e, f) => e.parameters?.length ? (r(), a("div", d, [
|
|
15
|
+
o("div", u, [
|
|
16
|
+
s(e.$slots, "title")
|
|
18
17
|
]),
|
|
19
|
-
|
|
20
|
-
(
|
|
18
|
+
o("ul", b, [
|
|
19
|
+
(r(!0), a(l, null, p(e.parameters, (t) => (r(), c(i, {
|
|
21
20
|
key: t.name,
|
|
22
21
|
breadcrumb: e.breadcrumb,
|
|
23
|
-
collapsableItems: e.collapsableItems,
|
|
24
22
|
name: t.name,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}, null, 8, ["breadcrumb", "
|
|
23
|
+
options: e.options,
|
|
24
|
+
parameter: t
|
|
25
|
+
}, null, 8, ["breadcrumb", "name", "options", "parameter"]))), 128))
|
|
28
26
|
])
|
|
29
|
-
])) :
|
|
27
|
+
])) : m("", !0);
|
|
30
28
|
}
|
|
31
29
|
});
|
|
32
30
|
export {
|
|
33
|
-
|
|
31
|
+
g as default
|
|
34
32
|
};
|
|
@@ -2,9 +2,13 @@ import type { ParameterObject, ResponseObject } from '@scalar/workspace-store/sc
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
parameter: ParameterObject | ResponseObject;
|
|
4
4
|
name: string;
|
|
5
|
-
collapsableItems?: boolean;
|
|
6
|
-
withExamples?: boolean;
|
|
7
5
|
breadcrumb?: string[];
|
|
6
|
+
options: {
|
|
7
|
+
collapsableItems?: boolean;
|
|
8
|
+
withExamples?: boolean;
|
|
9
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
10
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
11
|
+
};
|
|
8
12
|
};
|
|
9
13
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
14
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAiSA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EAEf,MAAM,8DAA8D,CAAA;AAQrE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,GAAG,cAAc,CAAA;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,OAAO,EAAE;QACP,gBAAgB,CAAC,EAAE,OAAO,CAAA;QAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;QACtB,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AAyTF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./ParameterListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-88dd0a04"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,95 +1,94 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarMarkdown as
|
|
4
|
-
import { isDefined as
|
|
5
|
-
import { ScalarIconCaretRight as
|
|
6
|
-
import { getResolvedRef as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
const F = { class: "parameter-item group/parameter-item relative" }, W = { class: "parameter-item-name" }, H = { class: "parameter-item-type" }, L = { class: "absolute top-3 right-0 opacity-0 group-focus-within/parameter-item:opacity-100 group-hover/parameter-item:opacity-100" }, Z = /* @__PURE__ */ E({
|
|
1
|
+
import { defineComponent as w, computed as m, ref as B, createElementBlock as E, openBlock as i, createVNode as u, createElementVNode as c, unref as s, withCtx as f, createBlock as d, createCommentVNode as h, normalizeClass as b, toDisplayString as S } from "vue";
|
|
2
|
+
import { Disclosure as q, DisclosureButton as R, DisclosurePanel as C } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as V } from "@scalar/components";
|
|
4
|
+
import { isDefined as x } from "@scalar/helpers/array/is-defined";
|
|
5
|
+
import { ScalarIconCaretRight as D } from "@scalar/icons";
|
|
6
|
+
import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
7
|
+
import F from "../../../components/Content/Schema/SchemaProperty.vue.js";
|
|
8
|
+
import O from "./ContentTypeSelect.vue.js";
|
|
9
|
+
import I from "./Headers.vue.js";
|
|
10
|
+
const N = { class: "parameter-item group/parameter-item relative" }, j = { class: "parameter-item-name" }, z = { class: "parameter-item-type" }, W = { class: "absolute top-3 right-0 opacity-0 group-focus-within/parameter-item:opacity-100 group-hover/parameter-item:opacity-100" }, Q = /* @__PURE__ */ w({
|
|
12
11
|
__name: "ParameterListItem",
|
|
13
12
|
props: {
|
|
14
13
|
parameter: {},
|
|
15
14
|
name: {},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
breadcrumb: {}
|
|
15
|
+
breadcrumb: {},
|
|
16
|
+
options: {}
|
|
19
17
|
},
|
|
20
18
|
setup(e) {
|
|
21
|
-
const
|
|
22
|
-
() => "schema" in e.parameter && e.parameter.schema ?
|
|
23
|
-
),
|
|
19
|
+
const l = m(
|
|
20
|
+
() => "schema" in e.parameter && e.parameter.schema ? y(e.parameter.schema) : null
|
|
21
|
+
), a = m(
|
|
24
22
|
() => "content" in e.parameter && e.parameter.content ? e.parameter.content : null
|
|
25
|
-
),
|
|
23
|
+
), n = B(Object.keys(a.value || {})[0]), v = m(
|
|
26
24
|
() => "headers" in e.parameter && e.parameter.headers ? e.parameter.headers : null
|
|
27
|
-
),
|
|
28
|
-
const
|
|
29
|
-
...
|
|
30
|
-
...
|
|
31
|
-
}), ...
|
|
25
|
+
), P = m(() => {
|
|
26
|
+
const r = a.value ? a.value?.[n.value]?.schema : l.value, p = "deprecated" in e.parameter ? e.parameter.deprecated : l.value?.deprecated, t = "examples" in e.parameter ? e.parameter.examples : {}, g = l.value?.examples ?? [], k = [...Object.values({
|
|
27
|
+
...t,
|
|
28
|
+
...a.value?.[n.value]?.examples
|
|
29
|
+
}), ...g];
|
|
32
30
|
return {
|
|
33
|
-
...
|
|
34
|
-
deprecated:
|
|
35
|
-
..."example" in e.parameter &&
|
|
36
|
-
examples:
|
|
31
|
+
...y(r),
|
|
32
|
+
deprecated: p,
|
|
33
|
+
..."example" in e.parameter && x(e.parameter.example) && { example: e.parameter.example },
|
|
34
|
+
examples: k
|
|
37
35
|
};
|
|
38
|
-
}),
|
|
39
|
-
() => !!(e.collapsableItems && (
|
|
36
|
+
}), o = m(
|
|
37
|
+
() => !!(e.options.collapsableItems && (a.value || v.value || l.value))
|
|
40
38
|
);
|
|
41
|
-
return (
|
|
42
|
-
u(
|
|
43
|
-
default:
|
|
44
|
-
|
|
39
|
+
return (r, p) => (i(), E("li", N, [
|
|
40
|
+
u(s(q), null, {
|
|
41
|
+
default: f(({ open: t }) => [
|
|
42
|
+
o.value ? (i(), d(s(R), {
|
|
45
43
|
key: 0,
|
|
46
|
-
class:
|
|
44
|
+
class: b(["parameter-item-trigger", { "parameter-item-trigger-open": t }])
|
|
47
45
|
}, {
|
|
48
|
-
default:
|
|
49
|
-
|
|
50
|
-
u(
|
|
51
|
-
class:
|
|
46
|
+
default: f(() => [
|
|
47
|
+
c("span", j, [
|
|
48
|
+
u(s(D), {
|
|
49
|
+
class: b(["parameter-item-icon size-3 transition-transform duration-100", { "rotate-90": t }]),
|
|
52
50
|
weight: "bold"
|
|
53
51
|
}, null, 8, ["class"]),
|
|
54
|
-
|
|
52
|
+
c("span", null, S(r.name), 1)
|
|
55
53
|
]),
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
c("span", z, [
|
|
55
|
+
r.parameter.description ? (i(), d(s(V), {
|
|
58
56
|
key: 0,
|
|
59
57
|
class: "markdown",
|
|
60
|
-
value:
|
|
58
|
+
value: r.parameter.description
|
|
61
59
|
}, null, 8, ["value"])) : h("", !0)
|
|
62
60
|
])
|
|
63
61
|
]),
|
|
64
62
|
_: 2
|
|
65
63
|
}, 1032, ["class"])) : h("", !0),
|
|
66
|
-
u(
|
|
64
|
+
u(s(C), {
|
|
67
65
|
class: "parameter-item-container parameter-item-container-markdown",
|
|
68
|
-
static: !
|
|
66
|
+
static: !o.value
|
|
69
67
|
}, {
|
|
70
|
-
default:
|
|
71
|
-
|
|
68
|
+
default: f(() => [
|
|
69
|
+
v.value ? (i(), d(I, {
|
|
72
70
|
key: 0,
|
|
73
|
-
breadcrumb:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
breadcrumb: r.breadcrumb,
|
|
72
|
+
headers: v.value,
|
|
73
|
+
orderRequiredPropertiesFirst: r.options.orderRequiredPropertiesFirst,
|
|
74
|
+
orderSchemaPropertiesBy: r.options.orderSchemaPropertiesBy
|
|
75
|
+
}, null, 8, ["breadcrumb", "headers", "orderRequiredPropertiesFirst", "orderSchemaPropertiesBy"])) : h("", !0),
|
|
76
|
+
u(F, {
|
|
78
77
|
is: "div",
|
|
79
|
-
breadcrumb:
|
|
78
|
+
breadcrumb: r.breadcrumb,
|
|
80
79
|
compact: "",
|
|
81
|
-
description:
|
|
80
|
+
description: o.value ? "" : r.parameter.description,
|
|
82
81
|
hideWriteOnly: !0,
|
|
83
|
-
name:
|
|
82
|
+
name: o.value ? "" : r.name,
|
|
84
83
|
noncollapsible: !0,
|
|
85
84
|
options: {
|
|
86
85
|
hideWriteOnly: !0,
|
|
87
|
-
orderRequiredPropertiesFirst: r
|
|
88
|
-
orderSchemaPropertiesBy: r
|
|
86
|
+
orderRequiredPropertiesFirst: r.options.orderRequiredPropertiesFirst,
|
|
87
|
+
orderSchemaPropertiesBy: r.options.orderSchemaPropertiesBy
|
|
89
88
|
},
|
|
90
|
-
required: "required" in
|
|
91
|
-
schema:
|
|
92
|
-
withExamples:
|
|
89
|
+
required: "required" in r.parameter && r.parameter.required,
|
|
90
|
+
schema: P.value,
|
|
91
|
+
withExamples: typeof r.options.withExamples == "boolean" ? r.options.withExamples : !0
|
|
93
92
|
}, null, 8, ["breadcrumb", "description", "name", "options", "required", "schema", "withExamples"])
|
|
94
93
|
]),
|
|
95
94
|
_: 1
|
|
@@ -97,18 +96,18 @@ const F = { class: "parameter-item group/parameter-item relative" }, W = { class
|
|
|
97
96
|
]),
|
|
98
97
|
_: 1
|
|
99
98
|
}),
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
c("div", W, [
|
|
100
|
+
o.value && a.value ? (i(), d(O, {
|
|
102
101
|
key: 0,
|
|
103
|
-
modelValue:
|
|
104
|
-
"onUpdate:modelValue":
|
|
102
|
+
modelValue: n.value,
|
|
103
|
+
"onUpdate:modelValue": p[0] || (p[0] = (t) => n.value = t),
|
|
105
104
|
class: "parameter-item-content-type",
|
|
106
|
-
content:
|
|
105
|
+
content: a.value
|
|
107
106
|
}, null, 8, ["modelValue", "content"])) : h("", !0)
|
|
108
107
|
])
|
|
109
108
|
]));
|
|
110
109
|
}
|
|
111
110
|
});
|
|
112
111
|
export {
|
|
113
|
-
|
|
112
|
+
Q as default
|
|
114
113
|
};
|
|
@@ -2,6 +2,10 @@ import type { RequestBodyObject } from '@scalar/workspace-store/schemas/v3.1/str
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
breadcrumb?: string[];
|
|
4
4
|
requestBody?: RequestBodyObject;
|
|
5
|
+
options: {
|
|
6
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
7
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
8
|
+
};
|
|
5
9
|
};
|
|
6
10
|
declare var __VLS_1: {};
|
|
7
11
|
type __VLS_Slots = {} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"AAsNA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAA;AAYrG,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,OAAO,EAAE;QACP,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;AAmPF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAyB7C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-04c3170c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|