@scalar/api-reference 1.43.5 → 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 +59 -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.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 +18437 -18030
- 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.vue2.js +33 -33
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +6 -6
- 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/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/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/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/style.css +39 -39
- package/package.json +31 -31
|
@@ -21,26 +21,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
},
|
|
22
22
|
setup(__props) {
|
|
23
23
|
return (_ctx, _cache) => {
|
|
24
|
-
return
|
|
24
|
+
return __props.tag ? (openBlock(), createBlock(unref(Section), {
|
|
25
25
|
key: 0,
|
|
26
|
-
id:
|
|
26
|
+
id: __props.tag.id,
|
|
27
27
|
role: "none",
|
|
28
|
-
onIntersecting: _cache[1] || (_cache[1] = () =>
|
|
28
|
+
onIntersecting: _cache[1] || (_cache[1] = () => __props.eventBus?.emit("intersecting:nav-item", { id: __props.tag.id }))
|
|
29
29
|
}, {
|
|
30
30
|
default: withCtx(() => [
|
|
31
31
|
withDirectives(createVNode(unref(SectionHeader), null, {
|
|
32
32
|
default: withCtx(() => [
|
|
33
33
|
createVNode(unref(_sfc_main$1), {
|
|
34
|
-
onCopyAnchorUrl: _cache[0] || (_cache[0] = () =>
|
|
34
|
+
onCopyAnchorUrl: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("copy-url:nav-item", { id: __props.tag.id }))
|
|
35
35
|
}, {
|
|
36
36
|
default: withCtx(() => [
|
|
37
37
|
createVNode(unref(SectionHeaderTag), {
|
|
38
|
-
id:
|
|
38
|
+
id: __props.headerId,
|
|
39
39
|
level: 2
|
|
40
40
|
}, {
|
|
41
41
|
default: withCtx(() => [
|
|
42
|
-
createTextVNode(toDisplayString(
|
|
43
|
-
|
|
42
|
+
createTextVNode(toDisplayString(__props.tag.title) + " ", 1),
|
|
43
|
+
__props.isCollapsed ? (openBlock(), createBlock(ScreenReader, { key: 0 }, {
|
|
44
44
|
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
45
45
|
createTextVNode(" (Collapsed)", -1)
|
|
46
46
|
])]),
|
|
@@ -55,17 +55,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
]),
|
|
56
56
|
_: 1
|
|
57
57
|
}, 512), [
|
|
58
|
-
[vShow, !
|
|
58
|
+
[vShow, !__props.isLoading]
|
|
59
59
|
]),
|
|
60
|
-
createVNode(unref(SectionContent), { loading:
|
|
60
|
+
createVNode(unref(SectionContent), { loading: __props.isLoading }, {
|
|
61
61
|
default: withCtx(() => [
|
|
62
62
|
createVNode(unref(SectionColumns), null, {
|
|
63
63
|
default: withCtx(() => [
|
|
64
64
|
createVNode(unref(SectionColumn), null, {
|
|
65
65
|
default: withCtx(() => [
|
|
66
66
|
createVNode(unref(ScalarMarkdown), {
|
|
67
|
-
clamp:
|
|
68
|
-
value:
|
|
67
|
+
clamp: __props.isCollapsed ? 7 : void 0,
|
|
68
|
+
value: __props.tag?.description ?? "",
|
|
69
69
|
withImages: ""
|
|
70
70
|
}, null, 8, ["clamp", "value"])
|
|
71
71
|
]),
|
|
@@ -74,8 +74,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74
74
|
createVNode(unref(SectionColumn), null, {
|
|
75
75
|
default: withCtx(() => [
|
|
76
76
|
createVNode(unref(OperationsList), {
|
|
77
|
-
eventBus:
|
|
78
|
-
tag:
|
|
77
|
+
eventBus: __props.eventBus,
|
|
78
|
+
tag: __props.tag
|
|
79
79
|
}, null, 8, ["eventBus", "tag"])
|
|
80
80
|
]),
|
|
81
81
|
_: 1
|
|
@@ -87,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
87
|
_: 1
|
|
88
88
|
}, 8, ["loading"]),
|
|
89
89
|
createVNode(unref(_sfc_main$2), {
|
|
90
|
-
value:
|
|
90
|
+
value: __props.tag.xKeys
|
|
91
91
|
}, null, 8, ["value"])
|
|
92
92
|
]),
|
|
93
93
|
_: 1
|
|
@@ -66,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
66
|
(openBlock(), createElementBlock(Fragment, null, renderList(themeIds, (themeId) => {
|
|
67
67
|
return createElementVNode("div", {
|
|
68
68
|
key: themeId,
|
|
69
|
-
class: normalizeClass(["start-item", { "start-item-active": themeId ===
|
|
69
|
+
class: normalizeClass(["start-item", { "start-item-active": themeId === __props.theme }]),
|
|
70
70
|
onClick: ($event) => _ctx.$emit("changeTheme", { id: themeId, label: unref(themeLabels)[themeId] })
|
|
71
71
|
}, toDisplayString(unref(themeLabels)[themeId]), 11, _hoisted_6);
|
|
72
72
|
}), 64))
|
|
@@ -16,13 +16,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
);
|
|
17
17
|
const normalized = computed(() => normalizeHttpMethod(props.method));
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
|
-
return openBlock(), createBlock(resolveDynamicComponent(
|
|
19
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as ?? "span"), {
|
|
20
20
|
class: "uppercase",
|
|
21
|
-
style: normalizeStyle({ [
|
|
21
|
+
style: normalizeStyle({ [__props.property || "color"]: httpMethodInfo.value.colorVar })
|
|
22
22
|
}, {
|
|
23
23
|
default: withCtx(() => [
|
|
24
24
|
renderSlot(_ctx.$slots, "default"),
|
|
25
|
-
createTextVNode(" " + toDisplayString(
|
|
25
|
+
createTextVNode(" " + toDisplayString(__props.short ? httpMethodInfo.value.short : normalized.value), 1)
|
|
26
26
|
]),
|
|
27
27
|
_: 3
|
|
28
28
|
}, 8, ["style"]);
|
|
@@ -37,8 +37,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
return (_ctx, _cache) => {
|
|
40
|
-
return openBlock(), createBlock(resolveDynamicComponent(
|
|
41
|
-
id:
|
|
40
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.is ?? "div"), {
|
|
41
|
+
id: __props.id,
|
|
42
42
|
ref_key: "intersectionObserverRef",
|
|
43
43
|
ref: intersectionObserverRef
|
|
44
44
|
}, {
|
|
@@ -6,10 +6,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6
6
|
},
|
|
7
7
|
setup(__props) {
|
|
8
8
|
return (_ctx, _cache) => {
|
|
9
|
-
return openBlock(true), createElementBlock(Fragment, null, renderList([...Array(
|
|
9
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList([...Array(__props.lines).keys()], (idx) => {
|
|
10
10
|
return openBlock(), createElementBlock("div", {
|
|
11
11
|
key: idx,
|
|
12
|
-
class: normalizeClass(["loading", { "single-line":
|
|
12
|
+
class: normalizeClass(["loading", { "single-line": __props.lines === 1 }])
|
|
13
13
|
}, null, 2);
|
|
14
14
|
}), 128);
|
|
15
15
|
};
|
|
@@ -33,22 +33,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
return (_ctx, _cache) => {
|
|
34
34
|
return unref(mediaQueries).lg.value ? renderSlot(_ctx.$slots, "sidebar", normalizeProps(mergeProps({ key: 0 }, { sidebarClasses: "sticky top-0 h-dvh [grid-area:navigation]" }))) : (openBlock(), createElementBlock("div", {
|
|
35
35
|
key: 1,
|
|
36
|
-
class: normalizeClass(["t-doc__header", unref(variants)({ open:
|
|
36
|
+
class: normalizeClass(["t-doc__header", unref(variants)({ open: __props.isSidebarOpen, lg: unref(mediaQueries).lg.value })])
|
|
37
37
|
}, [
|
|
38
38
|
createElementVNode("header", _hoisted_1, [
|
|
39
|
-
|
|
39
|
+
__props.showSidebar ? (openBlock(), createBlock(unref(ScalarIconButton), {
|
|
40
40
|
key: 0,
|
|
41
|
-
icon:
|
|
42
|
-
label:
|
|
41
|
+
icon: __props.isSidebarOpen ? unref(ScalarIconX) : unref(ScalarIconList),
|
|
42
|
+
label: __props.isSidebarOpen ? "Close Menu" : "Open Menu",
|
|
43
43
|
size: "md",
|
|
44
44
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("toggleSidebar"))
|
|
45
45
|
}, null, 8, ["icon", "label"])) : createCommentVNode("", true),
|
|
46
|
-
|
|
46
|
+
__props.showSidebar ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.breadcrumb), 1)) : renderSlot(_ctx.$slots, "search", { key: 2 }),
|
|
47
47
|
createElementVNode("div", _hoisted_3, [
|
|
48
48
|
renderSlot(_ctx.$slots, "actions")
|
|
49
49
|
])
|
|
50
50
|
]),
|
|
51
|
-
|
|
51
|
+
__props.isSidebarOpen ? renderSlot(_ctx.$slots, "sidebar", normalizeProps(mergeProps({ key: 0 }, {
|
|
52
52
|
sidebarClasses: "overflow-y-auto custom-scrollbar min-h-0 flex-1 w-full border-none"
|
|
53
53
|
}))) : createCommentVNode("", true)
|
|
54
54
|
], 2));
|
|
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
const pathParts = computed(() => props.path.split(/({[^}]+})/));
|
|
13
13
|
return (_ctx, _cache) => {
|
|
14
14
|
return openBlock(), createElementBlock("span", {
|
|
15
|
-
class: normalizeClass(["operation-path", { deprecated:
|
|
15
|
+
class: normalizeClass(["operation-path", { deprecated: __props.deprecated }])
|
|
16
16
|
}, [
|
|
17
17
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pathParts.value, (part, i) => {
|
|
18
18
|
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
@@ -16,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
) ?? [];
|
|
17
17
|
});
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
|
-
return
|
|
19
|
+
return __props.tag.children && __props.tag.children?.length > 0 ? (openBlock(), createBlock(unref(ScalarCard), {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "endpoints-card"
|
|
22
22
|
}, {
|
|
@@ -25,24 +25,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
25
|
default: withCtx(() => [
|
|
26
26
|
createVNode(ScreenReader, null, {
|
|
27
27
|
default: withCtx(() => [
|
|
28
|
-
createTextVNode(toDisplayString(
|
|
28
|
+
createTextVNode(toDisplayString(__props.tag.title), 1)
|
|
29
29
|
]),
|
|
30
30
|
_: 1
|
|
31
31
|
}),
|
|
32
|
-
createTextVNode(" " + toDisplayString(
|
|
32
|
+
createTextVNode(" " + toDisplayString(__props.tag.isWebhooks ? "Webhooks" : "Operations"), 1)
|
|
33
33
|
]),
|
|
34
34
|
_: 1
|
|
35
35
|
}),
|
|
36
36
|
createVNode(unref(ScalarCardSection), { class: "custom-scroll max-h-[60vh]" }, {
|
|
37
37
|
default: withCtx(() => [
|
|
38
38
|
createElementVNode("ul", {
|
|
39
|
-
"aria-label": `${
|
|
39
|
+
"aria-label": `${__props.tag.title} endpoints`,
|
|
40
40
|
class: "endpoints"
|
|
41
41
|
}, [
|
|
42
42
|
(openBlock(true), createElementBlock(Fragment, null, renderList(operationsAndWebhooks.value, (operationOrWebhook) => {
|
|
43
43
|
return openBlock(), createBlock(OperationsListItem, {
|
|
44
44
|
key: operationOrWebhook.id,
|
|
45
|
-
eventBus:
|
|
45
|
+
eventBus: __props.eventBus,
|
|
46
46
|
operation: operationOrWebhook
|
|
47
47
|
}, null, 8, ["eventBus", "operation"]);
|
|
48
48
|
}), 128))
|
|
@@ -20,43 +20,43 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
const isWebhook = (_operation) => _operation.type === "webhook";
|
|
21
21
|
return (_ctx, _cache) => {
|
|
22
22
|
return openBlock(), createElementBlock("li", {
|
|
23
|
-
key:
|
|
23
|
+
key: __props.operation.id,
|
|
24
24
|
class: "contents"
|
|
25
25
|
}, [
|
|
26
|
-
|
|
26
|
+
__props.isCollapsed ? (openBlock(), createBlock(unref(SectionHeaderTag), {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "sr-only",
|
|
29
29
|
level: 3
|
|
30
30
|
}, {
|
|
31
31
|
default: withCtx(() => [
|
|
32
|
-
createTextVNode(toDisplayString(
|
|
32
|
+
createTextVNode(toDisplayString(__props.operation.title) + " (Hidden) ", 1)
|
|
33
33
|
]),
|
|
34
34
|
_: 1
|
|
35
35
|
})) : createCommentVNode("", true),
|
|
36
36
|
createElementVNode("a", {
|
|
37
37
|
class: "endpoint",
|
|
38
38
|
onClick: _cache[0] || (_cache[0] = withModifiers(
|
|
39
|
-
() =>
|
|
39
|
+
() => __props.eventBus?.emit("scroll-to:nav-item", { id: __props.operation.id }),
|
|
40
40
|
["prevent"]
|
|
41
41
|
))
|
|
42
42
|
}, [
|
|
43
43
|
createVNode(unref(_sfc_main$1), {
|
|
44
44
|
class: "endpoint-method items-center justify-end gap-2",
|
|
45
|
-
method:
|
|
45
|
+
method: __props.operation.method
|
|
46
46
|
}, {
|
|
47
47
|
default: withCtx(() => [
|
|
48
|
-
isWebhook(
|
|
48
|
+
isWebhook(__props.operation) ? (openBlock(), createBlock(unref(ScalarIconWebhooksLogo), {
|
|
49
49
|
key: 0,
|
|
50
50
|
class: "size-3.5",
|
|
51
51
|
style: normalizeStyle({
|
|
52
|
-
color: unref(getHttpMethodInfo)(
|
|
52
|
+
color: unref(getHttpMethodInfo)(__props.operation.method).colorVar
|
|
53
53
|
})
|
|
54
54
|
}, null, 8, ["style"])) : createCommentVNode("", true)
|
|
55
55
|
]),
|
|
56
56
|
_: 1
|
|
57
57
|
}, 8, ["method"]),
|
|
58
58
|
createElementVNode("span", {
|
|
59
|
-
class: normalizeClass(["endpoint-path", { deprecated:
|
|
59
|
+
class: normalizeClass(["endpoint-path", { deprecated: __props.operation.isDeprecated }])
|
|
60
60
|
}, toDisplayString(pathOrTitle.value), 3)
|
|
61
61
|
])
|
|
62
62
|
]);
|
|
@@ -24,12 +24,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
ref_for: true
|
|
25
25
|
}, {
|
|
26
26
|
component: item.component,
|
|
27
|
-
options:
|
|
27
|
+
options: __props.options,
|
|
28
28
|
...item.props
|
|
29
29
|
}), null, 16)) : (openBlock(), createBlock(resolveDynamicComponent(item.component), mergeProps({
|
|
30
30
|
key: 1,
|
|
31
31
|
ref_for: true
|
|
32
|
-
}, { options:
|
|
32
|
+
}, { options: __props.options, ...item.props }), null, 16))
|
|
33
33
|
]),
|
|
34
34
|
_: 2
|
|
35
35
|
}, 1024);
|
|
@@ -16,19 +16,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
const emit = __emit;
|
|
17
17
|
return (_ctx, _cache) => {
|
|
18
18
|
return openBlock(), createElementBlock("section", {
|
|
19
|
-
"aria-label":
|
|
19
|
+
"aria-label": __props.label,
|
|
20
20
|
class: "collapsible-section"
|
|
21
21
|
}, [
|
|
22
22
|
createElementVNode("button", {
|
|
23
|
-
id:
|
|
24
|
-
"aria-controls":
|
|
25
|
-
"aria-expanded":
|
|
26
|
-
class: normalizeClass(["collapsible-section-trigger", { "collapsible-section-trigger-open":
|
|
23
|
+
id: __props.id,
|
|
24
|
+
"aria-controls": __props.id,
|
|
25
|
+
"aria-expanded": __props.modelValue,
|
|
26
|
+
class: normalizeClass(["collapsible-section-trigger", { "collapsible-section-trigger-open": __props.modelValue }]),
|
|
27
27
|
type: "button",
|
|
28
|
-
onClick: _cache[1] || (_cache[1] = ($event) => emit("update:modelValue", !
|
|
28
|
+
onClick: _cache[1] || (_cache[1] = ($event) => emit("update:modelValue", !__props.modelValue))
|
|
29
29
|
}, [
|
|
30
30
|
createVNode(unref(ScalarIconCaretRight), {
|
|
31
|
-
class: normalizeClass(["size-3 transition-transform duration-100", { "rotate-90":
|
|
31
|
+
class: normalizeClass(["size-3 transition-transform duration-100", { "rotate-90": __props.modelValue }]),
|
|
32
32
|
weight: "bold"
|
|
33
33
|
}, null, 8, ["class"]),
|
|
34
34
|
createVNode(unref(_sfc_main$1), {
|
|
@@ -41,10 +41,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
_: 3
|
|
42
42
|
})
|
|
43
43
|
], 10, _hoisted_2),
|
|
44
|
-
|
|
44
|
+
__props.modelValue ? (openBlock(), createBlock(Section, {
|
|
45
45
|
key: 0,
|
|
46
46
|
class: "collapsible-section-content",
|
|
47
|
-
label:
|
|
47
|
+
label: __props.label
|
|
48
48
|
}, {
|
|
49
49
|
default: withCtx(() => [
|
|
50
50
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -26,14 +26,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
return (_ctx, _cache) => {
|
|
27
27
|
return openBlock(), createBlock(unref(Disclosure), {
|
|
28
28
|
as: "section",
|
|
29
|
-
class: normalizeClass(["section-accordion", { "section-accordion-transparent":
|
|
29
|
+
class: normalizeClass(["section-accordion", { "section-accordion-transparent": __props.transparent }])
|
|
30
30
|
}, {
|
|
31
31
|
default: withCtx(() => [
|
|
32
32
|
createVNode(unref(DisclosureButton), {
|
|
33
33
|
ref_key: "button",
|
|
34
34
|
ref: button,
|
|
35
35
|
class: "section-accordion-button",
|
|
36
|
-
onClick: _cache[0] || (_cache[0] = () => emit("update:modelValue", !
|
|
36
|
+
onClick: _cache[0] || (_cache[0] = () => emit("update:modelValue", !__props.modelValue))
|
|
37
37
|
}, {
|
|
38
38
|
default: withCtx(() => [
|
|
39
39
|
createElementVNode("div", _hoisted_1, [
|
|
@@ -41,16 +41,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
]),
|
|
42
42
|
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
43
43
|
renderSlot(_ctx.$slots, "actions", {
|
|
44
|
-
active: unref(isHovered) ||
|
|
44
|
+
active: unref(isHovered) || __props.modelValue
|
|
45
45
|
}, void 0, true)
|
|
46
46
|
])) : createCommentVNode("", true),
|
|
47
47
|
createVNode(unref(ScalarIconCaretRight), {
|
|
48
|
-
class: normalizeClass(["section-accordion-chevron size-4.5 transition-transform", { "rotate-90":
|
|
48
|
+
class: normalizeClass(["section-accordion-chevron size-4.5 transition-transform", { "rotate-90": __props.modelValue }])
|
|
49
49
|
}, null, 8, ["class"])
|
|
50
50
|
]),
|
|
51
51
|
_: 3
|
|
52
52
|
}, 512),
|
|
53
|
-
|
|
53
|
+
__props.modelValue ? (openBlock(), createBlock(unref(DisclosurePanel), {
|
|
54
54
|
key: 0,
|
|
55
55
|
class: "section-accordion-content",
|
|
56
56
|
static: ""
|
|
@@ -10,7 +10,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
},
|
|
11
11
|
setup(__props) {
|
|
12
12
|
return (_ctx, _cache) => {
|
|
13
|
-
return
|
|
13
|
+
return __props.omit ? renderSlot(_ctx.$slots, "default", { key: 0 }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
14
14
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
15
15
|
]));
|
|
16
16
|
};
|
|
@@ -20,11 +20,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
default: withCtx(() => [
|
|
21
21
|
createVNode(unref(DisclosureButton), {
|
|
22
22
|
class: "section-accordion-button",
|
|
23
|
-
onClick: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", !
|
|
23
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", !__props.modelValue))
|
|
24
24
|
}, {
|
|
25
25
|
default: withCtx(() => [
|
|
26
26
|
createVNode(unref(ScalarIconCaretRight), {
|
|
27
|
-
class: normalizeClass(["section-accordion-chevron size-5 transition-transform", { "rotate-90":
|
|
27
|
+
class: normalizeClass(["section-accordion-chevron size-5 transition-transform", { "rotate-90": __props.modelValue }])
|
|
28
28
|
}, null, 8, ["class"]),
|
|
29
29
|
createElementVNode("div", _hoisted_2, [
|
|
30
30
|
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
]),
|
|
33
33
|
_: 3
|
|
34
34
|
}),
|
|
35
|
-
|
|
35
|
+
__props.modelValue ? (openBlock(), createBlock(unref(DisclosurePanel), {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "section-accordion-content",
|
|
38
38
|
static: ""
|
|
@@ -9,7 +9,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9
9
|
setup(__props) {
|
|
10
10
|
return (_ctx, _cache) => {
|
|
11
11
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
12
|
-
!
|
|
12
|
+
!__props.loading ? renderSlot(_ctx.$slots, "default", { key: 0 }, void 0, true) : (openBlock(), createBlock(LoadingSkeleton, {
|
|
13
13
|
key: 1,
|
|
14
14
|
lines: 8
|
|
15
15
|
}))
|
|
@@ -10,9 +10,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
setup(__props) {
|
|
11
11
|
return (_ctx, _cache) => {
|
|
12
12
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
13
|
-
|
|
13
|
+
__props.loading ? (openBlock(), createBlock(LoadingSkeleton, { key: 0 })) : (openBlock(), createElementBlock("div", {
|
|
14
14
|
key: 1,
|
|
15
|
-
class: normalizeClass(["section-header", { tight:
|
|
15
|
+
class: normalizeClass(["section-header", { tight: __props.tight }])
|
|
16
16
|
}, [
|
|
17
17
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
18
18
|
], 2)),
|
|
@@ -6,7 +6,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6
6
|
},
|
|
7
7
|
setup(__props) {
|
|
8
8
|
return (_ctx, _cache) => {
|
|
9
|
-
return openBlock(), createBlock(resolveDynamicComponent(`h${
|
|
9
|
+
return openBlock(), createBlock(resolveDynamicComponent(`h${__props.level}`), { class: "section-header-label" }, {
|
|
10
10
|
default: withCtx(() => [
|
|
11
11
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12
12
|
]),
|
|
@@ -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))
|