@scalar/api-reference 1.43.4 → 1.43.7
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 +85 -0
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +7 -7
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +5 -5
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +1 -1
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue2.js +5 -5
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +11 -11
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue2.js +2 -2
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue.js +7 -7
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +2 -2
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue2.js +1 -1
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +16 -16
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.js +2 -2
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +1 -1
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +7 -7
- package/dist/browser/standalone.js +18486 -18113
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/WithBreadcrumb.vue.js +3 -3
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue2.js +16 -11
- package/dist/components/Content/Auth/Auth.vue.js +7 -7
- package/dist/components/Content/Content.vue.js +28 -28
- package/dist/components/Content/Models/Model.vue.js +14 -14
- package/dist/components/Content/Models/ModelTag.vue.js +8 -8
- package/dist/components/Content/Models/components/ClassicLayout.vue2.js +15 -15
- package/dist/components/Content/Models/components/ModernLayout.vue.js +11 -11
- package/dist/components/Content/Operations/TraversedEntry.vue.js +51 -51
- package/dist/components/Content/Schema/Schema.vue2.js +40 -40
- package/dist/components/Content/Schema/SchemaComposition.vue.js +17 -17
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +3 -3
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +7 -7
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +31 -31
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +88 -147
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +6 -6
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.d.ts +14 -0
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.js +31 -0
- package/dist/components/Content/Schema/helpers/get-enum-values.d.ts +9 -0
- package/dist/components/Content/Schema/helpers/get-enum-values.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/get-enum-values.js +20 -0
- package/dist/components/Content/Schema/helpers/get-property-description.d.ts +9 -0
- package/dist/components/Content/Schema/helpers/get-property-description.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/get-property-description.js +34 -0
- package/dist/components/Content/Schema/helpers/has-complex-array-items.d.ts +10 -0
- package/dist/components/Content/Schema/helpers/has-complex-array-items.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/has-complex-array-items.js +48 -0
- package/dist/components/Content/Schema/helpers/should-display-description.d.ts +10 -0
- package/dist/components/Content/Schema/helpers/should-display-description.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/should-display-description.js +12 -0
- package/dist/components/Content/Schema/helpers/should-display-heading.d.ts +11 -0
- package/dist/components/Content/Schema/helpers/should-display-heading.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/should-display-heading.js +12 -0
- package/dist/components/Content/Schema/helpers/should-render-array-item-composition.d.ts +10 -0
- package/dist/components/Content/Schema/helpers/should-render-array-item-composition.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/should-render-array-item-composition.js +15 -0
- package/dist/components/Content/Tags/Tag.vue.js +11 -11
- package/dist/components/Content/Tags/components/ClassicLayout.vue2.js +6 -6
- package/dist/components/Content/Tags/components/ModernLayout.vue2.js +10 -10
- package/dist/components/Content/Tags/components/TagSection.vue.js +14 -14
- package/dist/components/Content/index.d.ts +1 -0
- package/dist/components/Content/index.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue2.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +3 -3
- package/dist/components/IntersectionObserver.vue.js +2 -2
- package/dist/components/LoadingSkeleton.vue2.js +2 -2
- package/dist/components/MobileHeader.vue.js +6 -6
- package/dist/components/OperationPath.vue2.js +1 -1
- package/dist/components/OperationsList/OperationsList.vue2.js +5 -5
- package/dist/components/OperationsList/OperationsListItem.vue2.js +8 -8
- package/dist/components/RenderPlugins/RenderPlugins.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +9 -9
- package/dist/components/Section/SectionAccordion.vue2.js +5 -5
- package/dist/components/Section/SectionContainer.vue2.js +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue2.js +3 -3
- package/dist/components/Section/SectionContent.vue2.js +1 -1
- package/dist/components/Section/SectionHeader.vue2.js +2 -2
- package/dist/components/Section/SectionHeaderTag.vue2.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +18 -16
- package/dist/features/Operation/Operation.vue.js +18 -18
- package/dist/features/Operation/components/Header.vue.js +8 -8
- package/dist/features/Operation/components/Headers.vue2.js +5 -5
- package/dist/features/Operation/components/OperationParameters.vue.js +17 -17
- package/dist/features/Operation/components/OperationResponses.vue.js +6 -6
- package/dist/features/Operation/components/ParameterList.vue.js +6 -6
- package/dist/features/Operation/components/ParameterListItem.vue2.js +16 -16
- package/dist/features/Operation/components/RequestBody.vue2.js +17 -17
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +10 -10
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +3 -3
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +49 -49
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +50 -50
- package/dist/features/Search/components/SearchButton.vue.js +5 -5
- package/dist/features/Search/components/SearchModal.vue2.js +1 -1
- package/dist/features/Search/components/SearchResult.vue.js +14 -14
- package/dist/features/example-responses/ExampleResponse.vue2.js +3 -3
- package/dist/features/external-docs/ExternalDocs.vue.js +3 -3
- package/dist/features/info-object/Contact.vue.js +6 -6
- package/dist/features/info-object/License.vue.js +4 -4
- package/dist/features/info-object/TermsOfService.vue.js +2 -2
- package/dist/features/multiple-documents/DocumentSelector.vue.js +1 -1
- package/dist/features/specification-extension/SpecificationExtension.vue2.js +3 -3
- package/dist/features/test-request-button/TestRequestButton.vue2.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbar.vue.js +4 -4
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +1 -1
- package/dist/helpers/id-routing.d.ts.map +1 -1
- package/dist/helpers/id-routing.js +7 -1
- package/dist/helpers/load-from-perssistance.d.ts +32 -0
- package/dist/helpers/load-from-perssistance.d.ts.map +1 -0
- package/dist/helpers/load-from-perssistance.js +74 -0
- package/dist/helpers/map-config-plugins.d.ts +17 -2
- package/dist/helpers/map-config-plugins.d.ts.map +1 -1
- package/dist/helpers/map-config-plugins.js +20 -22
- package/dist/helpers/map-config-to-workspace-store.d.ts.map +1 -1
- package/dist/helpers/map-config-to-workspace-store.js +1 -8
- package/dist/helpers/storage.d.ts +6 -6
- package/dist/helpers/storage.d.ts.map +1 -1
- package/dist/helpers/storage.js +15 -10
- package/dist/plugins/hooks/usePluginManager.js +1 -1
- package/dist/style.css +133 -116
- package/package.json +31 -31
package/dist/components/index.js
CHANGED
|
@@ -9,32 +9,34 @@ import { default as default9 } from "./Content/Models/ModelTag.vue.js";
|
|
|
9
9
|
import { default as default10 } from "./Content/Schema/SchemaObjectExampleCodeBlock.vue.js";
|
|
10
10
|
import { default as default11 } from "./Content/Tags/Tag.vue.js";
|
|
11
11
|
import { default as default12 } from "./Content/Operations/TraversedEntry.vue.js";
|
|
12
|
-
import { default as default13 } from "./
|
|
13
|
-
import { default as default14 } from "./
|
|
14
|
-
import { default as default15 } from "./
|
|
15
|
-
import { default as default16 } from "./Content/Schema/
|
|
16
|
-
import { default as default17 } from "./Content/Schema/
|
|
17
|
-
import { default as default18 } from "./
|
|
18
|
-
import { default as default19 } from "./
|
|
19
|
-
import { default as default20 } from "./
|
|
12
|
+
import { default as default13 } from "./Content/Auth/Auth.vue.js";
|
|
13
|
+
import { default as default14 } from "./HttpMethod/HttpMethod.vue.js";
|
|
14
|
+
import { default as default15 } from "./RenderPlugins/RenderPlugins.vue.js";
|
|
15
|
+
import { default as default16 } from "./Content/Schema/Schema.vue.js";
|
|
16
|
+
import { default as default17 } from "./Content/Schema/SchemaHeading.vue.js";
|
|
17
|
+
import { default as default18 } from "./Content/Schema/SchemaProperty.vue.js";
|
|
18
|
+
import { default as default19 } from "./OperationsList/OperationsList.vue.js";
|
|
19
|
+
import { default as default20 } from "./Section/SectionContainer.vue.js";
|
|
20
|
+
import { default as default21 } from "./SectionFlare/SectionFlare.vue.js";
|
|
20
21
|
export {
|
|
21
22
|
default3 as ApiReferenceContent,
|
|
23
|
+
default13 as Auth,
|
|
22
24
|
default2 as ClassicHeader,
|
|
23
25
|
default4 as Content,
|
|
24
|
-
|
|
26
|
+
default14 as HttpMethod,
|
|
25
27
|
default5 as IntersectionObserver,
|
|
26
28
|
default6 as Lazy,
|
|
27
29
|
default7 as MobileHeader,
|
|
28
30
|
default8 as Model,
|
|
29
31
|
default9 as Models,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
default19 as OperationsList,
|
|
33
|
+
default15 as RenderPlugins,
|
|
34
|
+
default16 as Schema,
|
|
35
|
+
default17 as SchemaHeading,
|
|
34
36
|
default10 as SchemaObjectExampleCodeBlock,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
default18 as SchemaProperty,
|
|
38
|
+
default20 as SectionContainer,
|
|
39
|
+
default21 as SectionFlare,
|
|
38
40
|
default11 as Tag,
|
|
39
41
|
default12 as TraversedEntry
|
|
40
42
|
};
|
|
@@ -48,31 +48,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
);
|
|
49
49
|
return (_ctx, _cache) => {
|
|
50
50
|
return operation.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
51
|
-
|
|
51
|
+
__props.options.layout === "classic" ? (openBlock(), createBlock(ClassicLayout, {
|
|
52
52
|
key: 0,
|
|
53
|
-
id:
|
|
54
|
-
clientOptions:
|
|
55
|
-
eventBus:
|
|
56
|
-
isCollapsed:
|
|
57
|
-
isWebhook:
|
|
58
|
-
method:
|
|
53
|
+
id: __props.id,
|
|
54
|
+
clientOptions: __props.clientOptions,
|
|
55
|
+
eventBus: __props.eventBus,
|
|
56
|
+
isCollapsed: __props.isCollapsed,
|
|
57
|
+
isWebhook: __props.isWebhook,
|
|
58
|
+
method: __props.method,
|
|
59
59
|
operation: operation.value,
|
|
60
|
-
options:
|
|
61
|
-
path:
|
|
62
|
-
selectedClient:
|
|
60
|
+
options: __props.options,
|
|
61
|
+
path: __props.path,
|
|
62
|
+
selectedClient: __props.selectedClient,
|
|
63
63
|
selectedSecuritySchemes: selectedSecuritySchemes.value,
|
|
64
64
|
selectedServer: selectedServer.value
|
|
65
65
|
}, null, 8, ["id", "clientOptions", "eventBus", "isCollapsed", "isWebhook", "method", "operation", "options", "path", "selectedClient", "selectedSecuritySchemes", "selectedServer"])) : (openBlock(), createBlock(ModernLayout, {
|
|
66
66
|
key: 1,
|
|
67
|
-
id:
|
|
68
|
-
clientOptions:
|
|
69
|
-
eventBus:
|
|
70
|
-
isWebhook:
|
|
71
|
-
method:
|
|
67
|
+
id: __props.id,
|
|
68
|
+
clientOptions: __props.clientOptions,
|
|
69
|
+
eventBus: __props.eventBus,
|
|
70
|
+
isWebhook: __props.isWebhook,
|
|
71
|
+
method: __props.method,
|
|
72
72
|
operation: operation.value,
|
|
73
|
-
options:
|
|
74
|
-
path:
|
|
75
|
-
selectedClient:
|
|
73
|
+
options: __props.options,
|
|
74
|
+
path: __props.path,
|
|
75
|
+
selectedClient: __props.selectedClient,
|
|
76
76
|
selectedSecuritySchemes: selectedSecuritySchemes.value,
|
|
77
77
|
selectedServer: selectedServer.value
|
|
78
78
|
}, null, 8, ["id", "clientOptions", "eventBus", "isWebhook", "method", "operation", "options", "path", "selectedClient", "selectedSecuritySchemes", "selectedServer"]))
|
|
@@ -13,17 +13,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
},
|
|
14
14
|
setup(__props) {
|
|
15
15
|
return (_ctx, _cache) => {
|
|
16
|
-
return "schema" in
|
|
16
|
+
return "schema" in __props.header && __props.header.schema ? (openBlock(), createBlock(SchemaProperty, {
|
|
17
17
|
key: 0,
|
|
18
|
-
breadcrumb:
|
|
19
|
-
description:
|
|
20
|
-
eventBus:
|
|
21
|
-
name:
|
|
18
|
+
breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "headers"] : void 0,
|
|
19
|
+
description: __props.header.description,
|
|
20
|
+
eventBus: __props.eventBus,
|
|
21
|
+
name: __props.name,
|
|
22
22
|
options: {
|
|
23
|
-
orderRequiredPropertiesFirst:
|
|
24
|
-
orderSchemaPropertiesBy:
|
|
23
|
+
orderRequiredPropertiesFirst: __props.orderRequiredPropertiesFirst,
|
|
24
|
+
orderSchemaPropertiesBy: __props.orderSchemaPropertiesBy
|
|
25
25
|
},
|
|
26
|
-
schema: unref(getResolvedRef)(
|
|
26
|
+
schema: unref(getResolvedRef)(__props.header.schema)
|
|
27
27
|
}, null, 8, ["breadcrumb", "description", "eventBus", "name", "options", "schema"])) : createCommentVNode("", true);
|
|
28
28
|
};
|
|
29
29
|
}
|
|
@@ -44,15 +44,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
44
|
}, 1024),
|
|
45
45
|
createVNode(unref(DisclosurePanel), null, {
|
|
46
46
|
default: withCtx(() => [
|
|
47
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
47
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.headers, (header, key) => {
|
|
48
48
|
return openBlock(), createBlock(_sfc_main$1, {
|
|
49
49
|
key,
|
|
50
|
-
breadcrumb:
|
|
51
|
-
eventBus:
|
|
50
|
+
breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "headers"] : void 0,
|
|
51
|
+
eventBus: __props.eventBus,
|
|
52
52
|
header: unref(getResolvedRef)(header),
|
|
53
53
|
name: key,
|
|
54
|
-
orderRequiredPropertiesFirst:
|
|
55
|
-
orderSchemaPropertiesBy:
|
|
54
|
+
orderRequiredPropertiesFirst: __props.orderRequiredPropertiesFirst,
|
|
55
|
+
orderSchemaPropertiesBy: __props.orderSchemaPropertiesBy
|
|
56
56
|
}, null, 8, ["breadcrumb", "eventBus", "header", "name", "orderRequiredPropertiesFirst", "orderSchemaPropertiesBy"]);
|
|
57
57
|
}), 128))
|
|
58
58
|
]),
|
|
@@ -26,9 +26,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
return (_ctx, _cache) => {
|
|
27
27
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
28
28
|
createVNode(_sfc_main$1, {
|
|
29
|
-
breadcrumb:
|
|
30
|
-
eventBus:
|
|
31
|
-
options:
|
|
29
|
+
breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "path"] : void 0,
|
|
30
|
+
eventBus: __props.eventBus,
|
|
31
|
+
options: __props.options,
|
|
32
32
|
parameters: splitParameters.value["path"]
|
|
33
33
|
}, {
|
|
34
34
|
title: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
@@ -37,9 +37,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
37
|
_: 1
|
|
38
38
|
}, 8, ["breadcrumb", "eventBus", "options", "parameters"]),
|
|
39
39
|
createVNode(_sfc_main$1, {
|
|
40
|
-
breadcrumb:
|
|
41
|
-
eventBus:
|
|
42
|
-
options:
|
|
40
|
+
breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "query"] : void 0,
|
|
41
|
+
eventBus: __props.eventBus,
|
|
42
|
+
options: __props.options,
|
|
43
43
|
parameters: splitParameters.value["query"]
|
|
44
44
|
}, {
|
|
45
45
|
title: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
@@ -48,9 +48,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
_: 1
|
|
49
49
|
}, 8, ["breadcrumb", "eventBus", "options", "parameters"]),
|
|
50
50
|
createVNode(_sfc_main$1, {
|
|
51
|
-
breadcrumb:
|
|
52
|
-
eventBus:
|
|
53
|
-
options:
|
|
51
|
+
breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "headers"] : void 0,
|
|
52
|
+
eventBus: __props.eventBus,
|
|
53
|
+
options: __props.options,
|
|
54
54
|
parameters: splitParameters.value["header"]
|
|
55
55
|
}, {
|
|
56
56
|
title: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
@@ -59,9 +59,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
59
59
|
_: 1
|
|
60
60
|
}, 8, ["breadcrumb", "eventBus", "options", "parameters"]),
|
|
61
61
|
createVNode(_sfc_main$1, {
|
|
62
|
-
breadcrumb:
|
|
63
|
-
eventBus:
|
|
64
|
-
options:
|
|
62
|
+
breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "cookies"] : void 0,
|
|
63
|
+
eventBus: __props.eventBus,
|
|
64
|
+
options: __props.options,
|
|
65
65
|
parameters: splitParameters.value["cookie"]
|
|
66
66
|
}, {
|
|
67
67
|
title: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
@@ -69,12 +69,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
69
|
])]),
|
|
70
70
|
_: 1
|
|
71
71
|
}, 8, ["breadcrumb", "eventBus", "options", "parameters"]),
|
|
72
|
-
|
|
72
|
+
__props.requestBody ? (openBlock(), createBlock(RequestBody, {
|
|
73
73
|
key: 0,
|
|
74
|
-
breadcrumb:
|
|
75
|
-
eventBus:
|
|
76
|
-
options:
|
|
77
|
-
requestBody:
|
|
74
|
+
breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "body"] : void 0,
|
|
75
|
+
eventBus: __props.eventBus,
|
|
76
|
+
options: __props.options,
|
|
77
|
+
requestBody: __props.requestBody
|
|
78
78
|
}, {
|
|
79
79
|
title: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
80
80
|
createTextVNode("Body", -1)
|
|
@@ -20,17 +20,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
},
|
|
21
21
|
setup(__props) {
|
|
22
22
|
return (_ctx, _cache) => {
|
|
23
|
-
return Object.keys(
|
|
23
|
+
return Object.keys(__props.responses ?? {}).length ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
24
24
|
_cache[0] || (_cache[0] = createElementVNode("div", { class: "text-c-1 mt-3 mb-3 leading-[1.45] font-medium" }, "Responses", -1)),
|
|
25
25
|
createElementVNode("ul", _hoisted_2, [
|
|
26
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
26
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.responses, (response, status) => {
|
|
27
27
|
return openBlock(), createBlock(ParameterListItem, {
|
|
28
28
|
key: status,
|
|
29
|
-
breadcrumb:
|
|
30
|
-
collapsableItems:
|
|
31
|
-
eventBus:
|
|
29
|
+
breadcrumb: __props.breadcrumb,
|
|
30
|
+
collapsableItems: __props.collapsableItems,
|
|
31
|
+
eventBus: __props.eventBus,
|
|
32
32
|
name: status,
|
|
33
|
-
options:
|
|
33
|
+
options: __props.options,
|
|
34
34
|
parameter: unref(getResolvedRef)(response)
|
|
35
35
|
}, null, 8, ["breadcrumb", "collapsableItems", "eventBus", "name", "options", "parameter"]);
|
|
36
36
|
}), 128))
|
|
@@ -18,7 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
setup(__props) {
|
|
19
19
|
const id = useId();
|
|
20
20
|
return (_ctx, _cache) => {
|
|
21
|
-
return
|
|
21
|
+
return __props.parameters?.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
22
22
|
createElementVNode("div", {
|
|
23
23
|
id: unref(id),
|
|
24
24
|
class: "text-c-1 mt-3 mb-3 text-lg leading-[1.45] font-medium"
|
|
@@ -29,14 +29,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
"aria-labelledby": unref(id),
|
|
30
30
|
class: "mb-3 list-none p-0 text-sm"
|
|
31
31
|
}, [
|
|
32
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
32
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.parameters, (item) => {
|
|
33
33
|
return openBlock(), createBlock(ParameterListItem, {
|
|
34
34
|
key: item.name,
|
|
35
|
-
breadcrumb:
|
|
36
|
-
collapsableItems:
|
|
37
|
-
eventBus:
|
|
35
|
+
breadcrumb: __props.breadcrumb,
|
|
36
|
+
collapsableItems: __props.collapsableItems,
|
|
37
|
+
eventBus: __props.eventBus,
|
|
38
38
|
name: item.name,
|
|
39
|
-
options:
|
|
39
|
+
options: __props.options,
|
|
40
40
|
parameter: item
|
|
41
41
|
}, null, 8, ["breadcrumb", "collapsableItems", "eventBus", "name", "options", "parameter"]);
|
|
42
42
|
}), 128))
|
|
@@ -73,15 +73,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
73
|
createElementVNode("div", null, [
|
|
74
74
|
createVNode(unref(ScalarWrappingText), {
|
|
75
75
|
preset: "property",
|
|
76
|
-
text:
|
|
76
|
+
text: __props.name
|
|
77
77
|
}, null, 8, ["text"])
|
|
78
78
|
])
|
|
79
79
|
]),
|
|
80
|
-
!open &&
|
|
80
|
+
!open && __props.parameter.description ? (openBlock(), createBlock(unref(ScalarMarkdownSummary), {
|
|
81
81
|
key: 0,
|
|
82
82
|
class: "parameter-item-description-summary min-w-0 flex-1",
|
|
83
83
|
controlled: "",
|
|
84
|
-
value:
|
|
84
|
+
value: __props.parameter.description
|
|
85
85
|
}, null, 8, ["value"])) : (openBlock(), createElementBlock("div", _hoisted_3)),
|
|
86
86
|
createElementVNode("div", {
|
|
87
87
|
class: normalizeClass({
|
|
@@ -104,34 +104,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
104
104
|
static: !shouldCollapse.value
|
|
105
105
|
}, {
|
|
106
106
|
default: withCtx(() => [
|
|
107
|
-
shouldCollapse.value &&
|
|
107
|
+
shouldCollapse.value && __props.parameter.description ? (openBlock(), createBlock(unref(ScalarMarkdown), {
|
|
108
108
|
key: 0,
|
|
109
109
|
class: "parameter-item-description",
|
|
110
|
-
value:
|
|
110
|
+
value: __props.parameter.description
|
|
111
111
|
}, null, 8, ["value"])) : createCommentVNode("", true),
|
|
112
112
|
headers.value ? (openBlock(), createBlock(Headers, {
|
|
113
113
|
key: 1,
|
|
114
|
-
breadcrumb:
|
|
115
|
-
eventBus:
|
|
114
|
+
breadcrumb: __props.breadcrumb,
|
|
115
|
+
eventBus: __props.eventBus,
|
|
116
116
|
headers: headers.value,
|
|
117
|
-
orderRequiredPropertiesFirst:
|
|
118
|
-
orderSchemaPropertiesBy:
|
|
117
|
+
orderRequiredPropertiesFirst: __props.options.orderRequiredPropertiesFirst,
|
|
118
|
+
orderSchemaPropertiesBy: __props.options.orderSchemaPropertiesBy
|
|
119
119
|
}, null, 8, ["breadcrumb", "eventBus", "headers", "orderRequiredPropertiesFirst", "orderSchemaPropertiesBy"])) : createCommentVNode("", true),
|
|
120
120
|
createVNode(SchemaProperty, {
|
|
121
121
|
is: "div",
|
|
122
|
-
breadcrumb:
|
|
122
|
+
breadcrumb: __props.breadcrumb,
|
|
123
123
|
compact: "",
|
|
124
|
-
description: shouldCollapse.value ? "" :
|
|
125
|
-
eventBus:
|
|
124
|
+
description: shouldCollapse.value ? "" : __props.parameter.description,
|
|
125
|
+
eventBus: __props.eventBus,
|
|
126
126
|
hideWriteOnly: true,
|
|
127
|
-
name: shouldCollapse.value ? "" :
|
|
127
|
+
name: shouldCollapse.value ? "" : __props.name,
|
|
128
128
|
noncollapsible: true,
|
|
129
129
|
options: {
|
|
130
130
|
hideWriteOnly: true,
|
|
131
|
-
orderRequiredPropertiesFirst:
|
|
132
|
-
orderSchemaPropertiesBy:
|
|
131
|
+
orderRequiredPropertiesFirst: __props.options.orderRequiredPropertiesFirst,
|
|
132
|
+
orderSchemaPropertiesBy: __props.options.orderSchemaPropertiesBy
|
|
133
133
|
},
|
|
134
|
-
required: "required" in
|
|
134
|
+
required: "required" in __props.parameter && __props.parameter.required,
|
|
135
135
|
schema: value.value
|
|
136
136
|
}, null, 8, ["breadcrumb", "description", "eventBus", "name", "options", "required", "schema"])
|
|
137
137
|
]),
|
|
@@ -92,62 +92,62 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
92
92
|
() => Object.keys(__props.requestBody?.content ?? {}).length > 0 || __props.requestBody?.description || __props.requestBody?.required
|
|
93
93
|
);
|
|
94
94
|
return (_ctx, _cache) => {
|
|
95
|
-
return
|
|
95
|
+
return __props.requestBody && shouldRenderRequestBody.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
96
96
|
createElementVNode("div", _hoisted_2, [
|
|
97
97
|
createElementVNode("div", _hoisted_3, [
|
|
98
98
|
renderSlot(_ctx.$slots, "title", {}, void 0, true),
|
|
99
|
-
|
|
99
|
+
__props.requestBody.required ? (openBlock(), createElementBlock("div", _hoisted_4, " required ")) : createCommentVNode("", true)
|
|
100
100
|
]),
|
|
101
101
|
createVNode(_sfc_main$1, {
|
|
102
102
|
modelValue: selectedContentType.value,
|
|
103
103
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedContentType.value = $event),
|
|
104
|
-
content:
|
|
104
|
+
content: __props.requestBody.content
|
|
105
105
|
}, null, 8, ["modelValue", "content"]),
|
|
106
|
-
|
|
106
|
+
__props.requestBody.description ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
107
107
|
createVNode(unref(ScalarMarkdown), {
|
|
108
|
-
value:
|
|
108
|
+
value: __props.requestBody.description
|
|
109
109
|
}, null, 8, ["value"])
|
|
110
110
|
])) : createCommentVNode("", true)
|
|
111
111
|
]),
|
|
112
112
|
partitionedSchema.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
113
113
|
createVNode(unref(Schema), {
|
|
114
|
-
breadcrumb:
|
|
114
|
+
breadcrumb: __props.breadcrumb,
|
|
115
115
|
compact: "",
|
|
116
|
-
eventBus:
|
|
116
|
+
eventBus: __props.eventBus,
|
|
117
117
|
name: "Request Body",
|
|
118
118
|
noncollapsible: "",
|
|
119
119
|
options: {
|
|
120
120
|
hideReadOnly: true,
|
|
121
|
-
orderRequiredPropertiesFirst:
|
|
122
|
-
orderSchemaPropertiesBy:
|
|
121
|
+
orderRequiredPropertiesFirst: __props.options.orderRequiredPropertiesFirst,
|
|
122
|
+
orderSchemaPropertiesBy: __props.options.orderSchemaPropertiesBy
|
|
123
123
|
},
|
|
124
124
|
schema: partitionedSchema.value.visibleProperties
|
|
125
125
|
}, null, 8, ["breadcrumb", "eventBus", "options", "schema"]),
|
|
126
126
|
createVNode(unref(Schema), {
|
|
127
127
|
additionalProperties: "",
|
|
128
|
-
breadcrumb:
|
|
128
|
+
breadcrumb: __props.breadcrumb,
|
|
129
129
|
compact: "",
|
|
130
|
-
eventBus:
|
|
130
|
+
eventBus: __props.eventBus,
|
|
131
131
|
name: "Request Body",
|
|
132
132
|
options: {
|
|
133
133
|
hideReadOnly: true,
|
|
134
|
-
orderRequiredPropertiesFirst:
|
|
135
|
-
orderSchemaPropertiesBy:
|
|
134
|
+
orderRequiredPropertiesFirst: __props.options.orderRequiredPropertiesFirst,
|
|
135
|
+
orderSchemaPropertiesBy: __props.options.orderSchemaPropertiesBy
|
|
136
136
|
},
|
|
137
137
|
schema: partitionedSchema.value.collapsedProperties
|
|
138
138
|
}, null, 8, ["breadcrumb", "eventBus", "options", "schema"])
|
|
139
139
|
])) : schema.value ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
140
140
|
createVNode(unref(Schema), {
|
|
141
|
-
breadcrumb:
|
|
141
|
+
breadcrumb: __props.breadcrumb,
|
|
142
142
|
compact: "",
|
|
143
|
-
eventBus:
|
|
143
|
+
eventBus: __props.eventBus,
|
|
144
144
|
hideReadOnly: true,
|
|
145
145
|
name: "Request Body",
|
|
146
146
|
noncollapsible: "",
|
|
147
147
|
options: {
|
|
148
148
|
hideReadOnly: true,
|
|
149
|
-
orderRequiredPropertiesFirst:
|
|
150
|
-
orderSchemaPropertiesBy:
|
|
149
|
+
orderRequiredPropertiesFirst: __props.options.orderRequiredPropertiesFirst,
|
|
150
|
+
orderSchemaPropertiesBy: __props.options.orderSchemaPropertiesBy
|
|
151
151
|
},
|
|
152
152
|
schema: schema.value
|
|
153
153
|
}, null, 8, ["breadcrumb", "eventBus", "options", "schema"])
|
|
@@ -27,25 +27,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
createVNode(unref(_sfc_main$1), {
|
|
28
28
|
as: "span",
|
|
29
29
|
class: "request-method py-0.75",
|
|
30
|
-
method:
|
|
30
|
+
method: __props.method
|
|
31
31
|
}, null, 8, ["method"]),
|
|
32
32
|
createElementVNode("div", _hoisted_3, [
|
|
33
|
-
createTextVNode(toDisplayString(
|
|
34
|
-
createElementVNode("span", _hoisted_4, toDisplayString(
|
|
33
|
+
createTextVNode(toDisplayString(__props.name) + " ", 1),
|
|
34
|
+
createElementVNode("span", _hoisted_4, toDisplayString(__props.url), 1)
|
|
35
35
|
])
|
|
36
36
|
]),
|
|
37
37
|
createElementVNode("div", _hoisted_5, [
|
|
38
38
|
createVNode(_sfc_main$2, {
|
|
39
|
-
eventBus:
|
|
40
|
-
options:
|
|
41
|
-
parameters:
|
|
42
|
-
requestBody: unref(getResolvedRef)(
|
|
39
|
+
eventBus: __props.eventBus,
|
|
40
|
+
options: __props.options,
|
|
41
|
+
parameters: __props.callback.parameters?.map((param) => unref(getResolvedRef)(param)) ?? [],
|
|
42
|
+
requestBody: unref(getResolvedRef)(__props.callback.requestBody)
|
|
43
43
|
}, null, 8, ["eventBus", "options", "parameters", "requestBody"]),
|
|
44
44
|
createVNode(_sfc_main$3, {
|
|
45
45
|
collapsableItems: false,
|
|
46
|
-
eventBus:
|
|
47
|
-
options:
|
|
48
|
-
responses:
|
|
46
|
+
eventBus: __props.eventBus,
|
|
47
|
+
options: __props.options,
|
|
48
|
+
responses: __props.callback.responses
|
|
49
49
|
}, null, 8, ["eventBus", "options", "responses"])
|
|
50
50
|
])
|
|
51
51
|
]);
|
|
@@ -46,11 +46,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
return openBlock(), createBlock(Callback, {
|
|
47
47
|
key: `${name}-${url}-${method}`,
|
|
48
48
|
callback,
|
|
49
|
-
eventBus:
|
|
49
|
+
eventBus: __props.eventBus,
|
|
50
50
|
method,
|
|
51
51
|
name,
|
|
52
|
-
options:
|
|
53
|
-
path:
|
|
52
|
+
options: __props.options,
|
|
53
|
+
path: __props.path,
|
|
54
54
|
url
|
|
55
55
|
}, null, 8, ["callback", "eventBus", "method", "name", "options", "path", "url"]);
|
|
56
56
|
}), 128))
|