@scalar/api-reference 1.32.7 → 1.32.9
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 +38 -0
- package/dist/browser/standalone.js +15835 -15738
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue2.js +2 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +24 -24
- package/dist/components/Content/Models/Models.vue2.js +5 -4
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +2 -1
- package/dist/components/Content/Schema/Schema.vue2.js +2 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +14 -7
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsList.vue2.js +18 -22
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +33 -34
- package/dist/components/Content/Tag/Tag.vue.js +2 -1
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue2.js +8 -6
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.js +1 -1
- package/dist/components/Section/SectionAccordion.vue2.js +28 -29
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
- package/dist/components/Section/SectionContainerAccordion.vue2.js +17 -18
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +8 -7
- 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 +15 -15
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +8 -8
- 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 +87 -75
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +20 -18
- package/dist/features/Search/SearchButton.vue.js +2 -1
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +16 -16
- package/dist/features/api-client-modal/useApiClient.d.ts +84 -4
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/download-link/DownloadLink.vue2.js +4 -2
- package/dist/features/example-request/ExamplePicker.vue2.js +10 -9
- package/dist/features/example-request/ExampleRequest.vue.d.ts +10 -4
- package/dist/features/example-request/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/example-request/ExampleRequest.vue.js +1 -1
- package/dist/features/example-request/ExampleRequest.vue2.js +108 -121
- package/dist/{components/Card/CardTab.vue.d.ts → features/example-responses/ExampleResponseTab.vue.d.ts} +1 -1
- package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -0
- package/dist/features/example-responses/ExampleResponseTab.vue.js +7 -0
- package/dist/{components/Card/CardTab.vue2.js → features/example-responses/ExampleResponseTab.vue2.js} +6 -6
- package/dist/{components/Card/CardTabHeader.vue.d.ts → features/example-responses/ExampleResponseTabList.vue.d.ts} +3 -3
- package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts.map +1 -0
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +7 -0
- package/dist/{components/Card/CardTabHeader.vue2.js → features/example-responses/ExampleResponseTabList.vue2.js} +9 -9
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue2.js +81 -89
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue2.js +12 -12
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -33
- package/dist/style.css +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/package.json +24 -24
- package/dist/components/Card/Card.vue.d.ts +0 -18
- package/dist/components/Card/Card.vue.d.ts.map +0 -1
- package/dist/components/Card/Card.vue.js +0 -13
- package/dist/components/Card/CardContent.vue.d.ts +0 -19
- package/dist/components/Card/CardContent.vue.d.ts.map +0 -1
- package/dist/components/Card/CardContent.vue.js +0 -7
- package/dist/components/Card/CardContent.vue2.js +0 -27
- package/dist/components/Card/CardFooter.vue.d.ts +0 -19
- package/dist/components/Card/CardFooter.vue.d.ts.map +0 -1
- package/dist/components/Card/CardFooter.vue.js +0 -7
- package/dist/components/Card/CardFooter.vue2.js +0 -24
- package/dist/components/Card/CardHeader.vue.d.ts +0 -20
- package/dist/components/Card/CardHeader.vue.d.ts.map +0 -1
- package/dist/components/Card/CardHeader.vue.js +0 -7
- package/dist/components/Card/CardHeader.vue2.js +0 -31
- package/dist/components/Card/CardTab.vue.d.ts.map +0 -1
- package/dist/components/Card/CardTab.vue.js +0 -7
- package/dist/components/Card/CardTabHeader.vue.d.ts.map +0 -1
- package/dist/components/Card/CardTabHeader.vue.js +0 -7
- package/dist/components/Card/index.d.ts +0 -7
- package/dist/components/Card/index.d.ts.map +0 -1
- package/dist/components/Card/types.d.ts +0 -8
- package/dist/components/Card/types.d.ts.map +0 -1
|
@@ -1,59 +1,58 @@
|
|
|
1
|
-
import { defineComponent as p, ref as
|
|
1
|
+
import { defineComponent as p, ref as f, createBlock as _, openBlock as c, withCtx as e, createVNode as s, unref as t, normalizeClass as a, createElementVNode as d, createElementBlock as l, createCommentVNode as u, renderSlot as n } from "vue";
|
|
2
2
|
import { Disclosure as v, DisclosureButton as h, DisclosurePanel as $ } from "@headlessui/vue";
|
|
3
|
-
import {
|
|
4
|
-
import { useElementHover as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
3
|
+
import { ScalarIconCaretRight as k } from "@scalar/icons";
|
|
4
|
+
import { useElementHover as b } from "@vueuse/core";
|
|
5
|
+
import B from "../IntersectionObserver.vue.js";
|
|
6
|
+
const C = { class: "section-accordion-button-content" }, y = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "section-accordion-button-actions"
|
|
9
9
|
}, D = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "section-accordion-description"
|
|
12
|
-
},
|
|
12
|
+
}, E = { class: "section-accordion-content-card" }, A = /* @__PURE__ */ p({
|
|
13
13
|
__name: "SectionAccordion",
|
|
14
14
|
props: {
|
|
15
15
|
id: {},
|
|
16
16
|
transparent: { type: Boolean }
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
return (o,
|
|
18
|
+
setup(N) {
|
|
19
|
+
const r = f(), m = b(r);
|
|
20
|
+
return (o, S) => (c(), _(B, {
|
|
21
21
|
id: o.id,
|
|
22
22
|
class: "section-wrapper"
|
|
23
23
|
}, {
|
|
24
|
-
default:
|
|
25
|
-
s(
|
|
24
|
+
default: e(() => [
|
|
25
|
+
s(t(v), {
|
|
26
26
|
as: "section",
|
|
27
|
-
class:
|
|
27
|
+
class: a(["section-accordion", { "section-accordion-transparent": o.transparent }])
|
|
28
28
|
}, {
|
|
29
|
-
default:
|
|
30
|
-
s(
|
|
29
|
+
default: e(({ open: i }) => [
|
|
30
|
+
s(t(h), {
|
|
31
31
|
ref_key: "button",
|
|
32
|
-
ref:
|
|
32
|
+
ref: r,
|
|
33
33
|
class: "section-accordion-button"
|
|
34
34
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
|
|
35
|
+
default: e(() => [
|
|
36
|
+
d("div", C, [
|
|
37
37
|
n(o.$slots, "title", {}, void 0, !0)
|
|
38
38
|
]),
|
|
39
|
-
o.$slots.actions ? (c(),
|
|
39
|
+
o.$slots.actions ? (c(), l("div", y, [
|
|
40
40
|
n(o.$slots, "actions", {
|
|
41
|
-
active:
|
|
41
|
+
active: t(m) || i
|
|
42
42
|
}, void 0, !0)
|
|
43
|
-
])) :
|
|
44
|
-
s(
|
|
45
|
-
class: "section-accordion-chevron size-5",
|
|
46
|
-
|
|
47
|
-
}, null, 8, ["icon"])
|
|
43
|
+
])) : u("", !0),
|
|
44
|
+
s(t(k), {
|
|
45
|
+
class: a(["section-accordion-chevron size-4.5 transition-transform", { "rotate-90": i }])
|
|
46
|
+
}, null, 8, ["class"])
|
|
48
47
|
]),
|
|
49
48
|
_: 2
|
|
50
49
|
}, 1536),
|
|
51
|
-
s(
|
|
52
|
-
default:
|
|
53
|
-
o.$slots.description ? (c(),
|
|
50
|
+
s(t($), { class: "section-accordion-content" }, {
|
|
51
|
+
default: e(() => [
|
|
52
|
+
o.$slots.description ? (c(), l("div", D, [
|
|
54
53
|
n(o.$slots, "description", {}, void 0, !0)
|
|
55
|
-
])) :
|
|
56
|
-
|
|
54
|
+
])) : u("", !0),
|
|
55
|
+
d("div", E, [
|
|
57
56
|
n(o.$slots, "default", {}, void 0, !0)
|
|
58
57
|
])
|
|
59
58
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionContainerAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContainerAccordion.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SectionContainerAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContainerAccordion.vue"],"names":[],"mappings":"AAoGA,iBAAS,cAAc;WAiGT,OAAO,IAA6B;;uBATtB,GAAG;yBACD,GAAG;;;;EAahC;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SectionContainerAccordion.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-88109f3f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
i as default
|
|
7
7
|
};
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import {
|
|
4
|
-
const p = { class: "section-accordion-wrapper" },
|
|
1
|
+
import { defineComponent as r, createElementBlock as a, openBlock as i, createVNode as o, unref as e, withCtx as t, createElementVNode as l, normalizeClass as d, renderSlot as s } from "vue";
|
|
2
|
+
import { Disclosure as u, DisclosureButton as f, DisclosurePanel as m } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIconCaretRight as _ } from "@scalar/icons";
|
|
4
|
+
const p = { class: "section-accordion-wrapper" }, h = { class: "section-accordion-title" }, k = /* @__PURE__ */ r({
|
|
5
5
|
__name: "SectionContainerAccordion",
|
|
6
|
-
setup(
|
|
7
|
-
return (c,
|
|
8
|
-
o(e(
|
|
6
|
+
setup(v) {
|
|
7
|
+
return (c, C) => (i(), a("div", p, [
|
|
8
|
+
o(e(u), {
|
|
9
9
|
as: "div",
|
|
10
10
|
class: "section-accordion",
|
|
11
11
|
defaultOpen: ""
|
|
12
12
|
}, {
|
|
13
|
-
default: t(({ open:
|
|
14
|
-
o(e(
|
|
13
|
+
default: t(({ open: n }) => [
|
|
14
|
+
o(e(f), { class: "section-accordion-button" }, {
|
|
15
15
|
default: t(() => [
|
|
16
|
-
o(e(
|
|
17
|
-
class: "section-accordion-chevron size-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
n(c.$slots, "title", {}, void 0, !0)
|
|
16
|
+
o(e(_), {
|
|
17
|
+
class: d(["section-accordion-chevron size-5 transition-transform", { "rotate-90": n }])
|
|
18
|
+
}, null, 8, ["class"]),
|
|
19
|
+
l("div", h, [
|
|
20
|
+
s(c.$slots, "title", {}, void 0, !0)
|
|
22
21
|
])
|
|
23
22
|
]),
|
|
24
23
|
_: 2
|
|
25
24
|
}, 1024),
|
|
26
|
-
o(e(
|
|
25
|
+
o(e(m), { class: "section-accordion-content" }, {
|
|
27
26
|
default: t(() => [
|
|
28
|
-
|
|
27
|
+
s(c.$slots, "default", {}, void 0, !0)
|
|
29
28
|
]),
|
|
30
29
|
_: 3
|
|
31
30
|
})
|
|
@@ -36,5 +35,5 @@ const p = { class: "section-accordion-wrapper" }, m = { class: "section-accordio
|
|
|
36
35
|
}
|
|
37
36
|
});
|
|
38
37
|
export {
|
|
39
|
-
|
|
38
|
+
k as default
|
|
40
39
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as S, computed as s, ref as B, createBlock as V, createElementBlock as k, openBlock as p, unref as n, withCtx as r, createVNode as c, normalizeClass as m, createElementVNode as f, createTextVNode as
|
|
2
|
-
import { cva as
|
|
1
|
+
import { defineComponent as S, computed as s, ref as B, createBlock as V, createElementBlock as k, openBlock as p, unref as n, withCtx as r, createVNode as c, normalizeClass as m, createElementVNode as f, createTextVNode as _, toDisplayString as y } from "vue";
|
|
2
|
+
import { cva as g, ScalarListbox as h, ScalarButton as w, ScalarIcon as q } from "@scalar/components";
|
|
3
3
|
import N from "../../../components/ScreenReader.vue.js";
|
|
4
4
|
const O = /* @__PURE__ */ S({
|
|
5
5
|
__name: "ContentTypeSelect",
|
|
@@ -24,7 +24,7 @@ const O = /* @__PURE__ */ S({
|
|
|
24
24
|
}), d = s(() => a.value.map((e) => ({
|
|
25
25
|
id: e,
|
|
26
26
|
label: e
|
|
27
|
-
}))), i =
|
|
27
|
+
}))), i = g({
|
|
28
28
|
base: "font-normal text-c-2 bg-b-2 py-0.75 flex cursor-pointer items-center gap-1 rounded-full text-xs",
|
|
29
29
|
variants: {
|
|
30
30
|
dropdown: {
|
|
@@ -33,7 +33,7 @@ const O = /* @__PURE__ */ S({
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
return (e, o) => t != null && t.requestBody && a.value.length > 1 ? (p(), V(n(
|
|
36
|
+
return (e, o) => t != null && t.requestBody && a.value.length > 1 ? (p(), V(n(h), {
|
|
37
37
|
key: 0,
|
|
38
38
|
modelValue: u.value,
|
|
39
39
|
"onUpdate:modelValue": [
|
|
@@ -45,16 +45,17 @@ const O = /* @__PURE__ */ S({
|
|
|
45
45
|
placement: "bottom-end"
|
|
46
46
|
}, {
|
|
47
47
|
default: r(() => [
|
|
48
|
-
c(n(
|
|
48
|
+
c(n(w), {
|
|
49
49
|
class: m(["h-fit", n(i)({ dropdown: !0 })]),
|
|
50
50
|
variant: "ghost"
|
|
51
51
|
}, {
|
|
52
52
|
default: r(() => [
|
|
53
53
|
c(N, null, {
|
|
54
54
|
default: r(() => o[1] || (o[1] = [
|
|
55
|
-
|
|
55
|
+
_("Selected Content Type:")
|
|
56
56
|
])),
|
|
57
|
-
_: 1
|
|
57
|
+
_: 1,
|
|
58
|
+
__: [1]
|
|
58
59
|
}),
|
|
59
60
|
f("span", null, y(l.value), 1),
|
|
60
61
|
c(n(q), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callback.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callback.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Callback.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callback.vue"],"names":[],"mappings":"AAsHA,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEhF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAMvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,eAAe,CAAA;IACrC,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAC;;AA0JF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from "./Callback.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ o(a, [["__scopeId", "data-v-e9ea54a1"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as r, computed as m, createElementBlock as n, createCommentVNode as i, openBlock as p, createElementVNode as t, createVNode as a, unref as o, createTextVNode as d, toDisplayString as l } from "vue";
|
|
2
2
|
import { ScalarIconCaretRight as u } from "@scalar/icons";
|
|
3
3
|
import { requestSchema as f } from "@scalar/oas-utils/entities/spec";
|
|
4
4
|
import { schemaModel as h } from "@scalar/oas-utils/helpers";
|
|
@@ -7,8 +7,8 @@ import k from "../OperationResponses.vue.js";
|
|
|
7
7
|
import g from "../../../../components/HttpMethod/HttpMethod.vue.js";
|
|
8
8
|
const y = {
|
|
9
9
|
key: 0,
|
|
10
|
-
class: "group"
|
|
11
|
-
}, _ = { class: "font-code bg-b-1 callback-sticky-offset sticky flex cursor-pointer flex-row items-center gap-2 border-t py-3 text-sm group-open:flex-wrap" }, q = { class: "text-c-1 truncate leading-3 group-open:whitespace-normal" },
|
|
10
|
+
class: "group callback-list-item"
|
|
11
|
+
}, _ = { class: "font-code bg-b-1 callback-sticky-offset callback-list-item-title sticky flex cursor-pointer flex-row items-center gap-2 border-t py-3 text-sm group-open:flex-wrap" }, q = { class: "text-c-1 min-w-0 flex-1 truncate leading-3 group-open:whitespace-normal" }, x = { class: "text-c-2" }, B = { class: "callback-operation-container flex flex-col gap-2" }, I = /* @__PURE__ */ r({
|
|
12
12
|
__name: "Callback",
|
|
13
13
|
props: {
|
|
14
14
|
callback: {},
|
|
@@ -18,30 +18,30 @@ const y = {
|
|
|
18
18
|
schemas: {},
|
|
19
19
|
url: {}
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
21
|
+
setup(s) {
|
|
22
22
|
const c = m(
|
|
23
|
-
() => h({ ...
|
|
23
|
+
() => h({ ...s.callback, path: s.url, method: s.method }, f, !1)
|
|
24
24
|
);
|
|
25
|
-
return (e,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
return (e, v) => e.collection && c.value ? (p(), n("details", y, [
|
|
26
|
+
t("summary", _, [
|
|
27
|
+
a(o(u), { class: "callback-list-item-icon text-c-3 group-hover:text-c-1 absolute -left-5 size-4 transition-transform group-open:rotate-90" }),
|
|
28
|
+
a(o(g), {
|
|
29
29
|
as: "span",
|
|
30
30
|
class: "request-method",
|
|
31
31
|
method: e.method
|
|
32
32
|
}, null, 8, ["method"]),
|
|
33
|
-
|
|
34
|
-
d(
|
|
35
|
-
|
|
33
|
+
t("div", q, [
|
|
34
|
+
d(l(e.name) + " ", 1),
|
|
35
|
+
t("span", x, l(e.url), 1)
|
|
36
36
|
])
|
|
37
37
|
]),
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
t("div", B, [
|
|
39
|
+
a(b, {
|
|
40
40
|
requestBody: e.callback.requestBody,
|
|
41
41
|
parameters: e.callback.parameters,
|
|
42
42
|
schemas: e.schemas
|
|
43
43
|
}, null, 8, ["requestBody", "parameters", "schemas"]),
|
|
44
|
-
|
|
44
|
+
a(k, {
|
|
45
45
|
collapsableItems: !1,
|
|
46
46
|
responses: e.callback.responses,
|
|
47
47
|
schemas: e.schemas
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callbacks.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callbacks.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Callbacks.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callbacks.vue"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAE5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAMjE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;IACjC,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;AA4EF,wBAOG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as k, createElementBlock as e, openBlock as l, createElementVNode as p, Fragment as t, renderList as a, createBlock as d } from "vue";
|
|
2
2
|
import b from "./Callback.vue.js";
|
|
3
|
-
const f = { class: "
|
|
3
|
+
const f = { class: "callbacks-list gap-3" }, g = /* @__PURE__ */ k({
|
|
4
4
|
__name: "Callbacks",
|
|
5
5
|
props: {
|
|
6
6
|
callbacks: {},
|
|
@@ -8,15 +8,15 @@ const f = { class: "mt-6 gap-3" }, g = /* @__PURE__ */ p({
|
|
|
8
8
|
schemas: {}
|
|
9
9
|
},
|
|
10
10
|
setup(h) {
|
|
11
|
-
return (c,
|
|
12
|
-
|
|
13
|
-
(
|
|
14
|
-
(
|
|
15
|
-
(
|
|
11
|
+
return (c, s) => (l(), e("div", f, [
|
|
12
|
+
s[0] || (s[0] = p("div", { class: "callbacks-title text-c-1 my-3 text-lg font-medium" }, " Callbacks ", -1)),
|
|
13
|
+
(l(!0), e(t, null, a(c.callbacks, (o, n) => (l(), e(t, { key: n }, [
|
|
14
|
+
(l(!0), e(t, null, a(o, (r, m) => (l(), e(t, null, [
|
|
15
|
+
(l(!0), e(t, null, a(r, (u, i) => (l(), d(b, {
|
|
16
16
|
callback: u,
|
|
17
17
|
collection: c.collection,
|
|
18
18
|
method: i,
|
|
19
|
-
name:
|
|
19
|
+
name: n,
|
|
20
20
|
schemas: c.schemas,
|
|
21
21
|
url: m
|
|
22
22
|
}, null, 8, ["callback", "collection", "method", "name", "schemas", "url"]))), 256))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAkbA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AAMxC,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAYzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AASjE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC;QACrC,oBAAoB,EAAE,gBAAgB,CAAA;KACvC,CAAC,CAAA;IACF,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AAgYF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClassicLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1d97e7c7"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { isOperationDeprecated as
|
|
5
|
-
import { useClipboard as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
1
|
+
import { defineComponent as S, computed as V, createBlock as l, openBlock as r, unref as o, createSlots as w, withCtx as i, createElementVNode as s, createVNode as t, createElementBlock as I, createCommentVNode as d, withModifiers as T, toDisplayString as f, normalizeClass as R, createTextVNode as y } from "vue";
|
|
2
|
+
import { ScalarIconButton as $, ScalarMarkdown as E } from "@scalar/components";
|
|
3
|
+
import { ScalarIconPlay as N, ScalarIconCopy as O, ScalarIconWebhooksLogo as P } from "@scalar/icons";
|
|
4
|
+
import { isOperationDeprecated as W, getOperationStability as k, getOperationStabilityColor as _ } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { useClipboard as z } from "@scalar/use-hooks/useClipboard";
|
|
6
|
+
import A from "../../../components/OperationPath.vue.js";
|
|
7
|
+
import D from "../components/callbacks/Callbacks.vue.js";
|
|
8
|
+
import { useConfig as L } from "../../../hooks/useConfig.js";
|
|
9
|
+
import U from "../components/OperationParameters.vue.js";
|
|
10
|
+
import M from "../components/OperationResponses.vue.js";
|
|
11
|
+
import j from "../../../components/Section/SectionAccordion.vue.js";
|
|
12
|
+
import F from "../../example-responses/ExampleResponses.vue.js";
|
|
13
|
+
import G from "../../example-request/ExampleRequest.vue.js";
|
|
14
|
+
import H from "../../test-request-button/TestRequestButton.vue.js";
|
|
15
|
+
import J from "../../../components/HttpMethod/HttpMethod.vue.js";
|
|
16
|
+
import K from "../../../components/Anchor/Anchor.vue.js";
|
|
16
17
|
import v from "../../../components/Badge/Badge.vue.js";
|
|
17
|
-
const
|
|
18
|
+
const Q = { class: "operation-title" }, X = { class: "operation-details" }, Y = { class: "endpoint-label" }, Z = { class: "endpoint-label-path" }, x = { class: "endpoint-label-name" }, ee = { class: "endpoint-content" }, oe = { class: "operation-details-card" }, te = { class: "operation-details-card-item" }, se = { class: "operation-details-card-item" }, ae = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "operation-details-card-item"
|
|
21
|
+
}, qe = /* @__PURE__ */ S({
|
|
18
22
|
__name: "ClassicLayout",
|
|
19
23
|
props: {
|
|
20
24
|
id: {},
|
|
@@ -29,58 +33,59 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
|
|
|
29
33
|
},
|
|
30
34
|
emits: ["update:modelValue"],
|
|
31
35
|
setup(m, { emit: b }) {
|
|
32
|
-
const g =
|
|
36
|
+
const g = V(() => {
|
|
33
37
|
var e;
|
|
34
38
|
return ((e = m.operation) == null ? void 0 : e.summary) || m.path || "";
|
|
35
|
-
}), { copyToClipboard:
|
|
36
|
-
|
|
39
|
+
}), { copyToClipboard: C } = z(), q = L(), B = b, h = (e) => {
|
|
40
|
+
B("update:modelValue", e);
|
|
37
41
|
};
|
|
38
|
-
return (e,
|
|
39
|
-
var
|
|
40
|
-
return
|
|
42
|
+
return (e, p) => {
|
|
43
|
+
var u;
|
|
44
|
+
return r(), l(o(j), {
|
|
41
45
|
id: e.id,
|
|
42
46
|
class: "reference-endpoint",
|
|
43
47
|
transparent: ""
|
|
44
|
-
},
|
|
45
|
-
title:
|
|
46
|
-
s("div",
|
|
47
|
-
s("div",
|
|
48
|
-
t(o(
|
|
48
|
+
}, w({
|
|
49
|
+
title: i(() => [
|
|
50
|
+
s("div", Q, [
|
|
51
|
+
s("div", X, [
|
|
52
|
+
t(o(J), {
|
|
49
53
|
class: "endpoint-type",
|
|
50
54
|
method: e.method,
|
|
51
55
|
short: ""
|
|
52
56
|
}, null, 8, ["method"]),
|
|
53
|
-
t(o(
|
|
57
|
+
t(o(K), {
|
|
54
58
|
id: e.id,
|
|
55
59
|
class: "endpoint-anchor"
|
|
56
60
|
}, {
|
|
57
|
-
default:
|
|
58
|
-
s("h3",
|
|
59
|
-
s("div",
|
|
60
|
-
t(
|
|
61
|
-
deprecated: o(
|
|
61
|
+
default: i(() => [
|
|
62
|
+
s("h3", Y, [
|
|
63
|
+
s("div", Z, [
|
|
64
|
+
t(A, {
|
|
65
|
+
deprecated: o(W)(e.operation),
|
|
62
66
|
path: e.path
|
|
63
67
|
}, null, 8, ["deprecated", "path"])
|
|
64
68
|
]),
|
|
65
|
-
s("div",
|
|
66
|
-
o(
|
|
69
|
+
s("div", x, f(g.value), 1),
|
|
70
|
+
o(k)(e.operation) ? (r(), l(o(v), {
|
|
67
71
|
key: 0,
|
|
68
|
-
class:
|
|
72
|
+
class: R(o(_)(e.operation))
|
|
69
73
|
}, {
|
|
70
|
-
default:
|
|
71
|
-
f(
|
|
74
|
+
default: i(() => [
|
|
75
|
+
y(f(o(k)(e.operation)), 1)
|
|
72
76
|
]),
|
|
73
77
|
_: 1
|
|
74
78
|
}, 8, ["class"])) : d("", !0),
|
|
75
|
-
e.isWebhook ? (
|
|
79
|
+
e.isWebhook ? (r(), l(o(v), {
|
|
76
80
|
key: 1,
|
|
77
81
|
class: "font-code text-green flex w-fit items-center justify-center gap-1"
|
|
78
82
|
}, {
|
|
79
|
-
default:
|
|
80
|
-
t(o(
|
|
81
|
-
|
|
83
|
+
default: i(() => [
|
|
84
|
+
t(o(P), { weight: "bold" }),
|
|
85
|
+
p[1] || (p[1] = y("Webhook "))
|
|
82
86
|
]),
|
|
83
|
-
_: 1
|
|
87
|
+
_: 1,
|
|
88
|
+
__: [1]
|
|
84
89
|
})) : d("", !0)
|
|
85
90
|
])
|
|
86
91
|
]),
|
|
@@ -89,72 +94,79 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
|
|
|
89
94
|
])
|
|
90
95
|
])
|
|
91
96
|
]),
|
|
92
|
-
actions:
|
|
93
|
-
var
|
|
97
|
+
actions: i(({ active: a }) => {
|
|
98
|
+
var n;
|
|
94
99
|
return [
|
|
95
|
-
|
|
100
|
+
a && e.request ? (r(), l(o(H), {
|
|
96
101
|
key: 0,
|
|
97
102
|
operation: e.request
|
|
98
|
-
}, null, 8, ["operation"])) : (
|
|
103
|
+
}, null, 8, ["operation"])) : (n = o(q)) != null && n.hideTestRequestButton ? d("", !0) : (r(), l(o(N), {
|
|
99
104
|
key: 1,
|
|
100
|
-
class: "endpoint-try-hint size-
|
|
101
|
-
icon: "Play",
|
|
102
|
-
thickness: "1.75px"
|
|
105
|
+
class: "endpoint-try-hint size-4.5"
|
|
103
106
|
})),
|
|
104
|
-
t(o(
|
|
107
|
+
t(o($), {
|
|
105
108
|
class: "endpoint-copy p-0.5",
|
|
106
|
-
icon:
|
|
109
|
+
icon: o(O),
|
|
107
110
|
label: "Copy endpoint URL",
|
|
108
111
|
size: "xs",
|
|
109
112
|
variant: "ghost",
|
|
110
|
-
onClick:
|
|
111
|
-
})
|
|
113
|
+
onClick: p[0] || (p[0] = T((c) => o(C)(e.path), ["stop"]))
|
|
114
|
+
}, null, 8, ["icon"])
|
|
112
115
|
];
|
|
113
116
|
}),
|
|
114
|
-
default:
|
|
115
|
-
var
|
|
117
|
+
default: i(() => {
|
|
118
|
+
var a, n, c;
|
|
116
119
|
return [
|
|
117
|
-
s("div",
|
|
118
|
-
s("div",
|
|
119
|
-
s("div",
|
|
120
|
-
t(
|
|
121
|
-
parameters: (
|
|
122
|
-
requestBody: (
|
|
120
|
+
s("div", ee, [
|
|
121
|
+
s("div", oe, [
|
|
122
|
+
s("div", te, [
|
|
123
|
+
t(U, {
|
|
124
|
+
parameters: (a = e.operation) == null ? void 0 : a.parameters,
|
|
125
|
+
requestBody: (n = e.operation) == null ? void 0 : n.requestBody,
|
|
123
126
|
schemas: e.schemas,
|
|
124
|
-
"onUpdate:modelValue":
|
|
127
|
+
"onUpdate:modelValue": h
|
|
125
128
|
}, null, 8, ["parameters", "requestBody", "schemas"])
|
|
126
129
|
]),
|
|
127
|
-
s("div",
|
|
128
|
-
t(
|
|
130
|
+
s("div", se, [
|
|
131
|
+
t(M, {
|
|
129
132
|
collapsableItems: !1,
|
|
130
133
|
responses: e.operation.responses,
|
|
131
134
|
schemas: e.schemas
|
|
132
135
|
}, null, 8, ["responses", "schemas"])
|
|
133
|
-
])
|
|
136
|
+
]),
|
|
137
|
+
(c = e.operation) != null && c.callbacks ? (r(), I("div", ae, [
|
|
138
|
+
t(D, {
|
|
139
|
+
callbacks: e.operation.callbacks,
|
|
140
|
+
schemas: e.schemas,
|
|
141
|
+
collection: e.collection
|
|
142
|
+
}, null, 8, ["callbacks", "schemas", "collection"])
|
|
143
|
+
])) : d("", !0)
|
|
134
144
|
]),
|
|
135
|
-
t(o(
|
|
145
|
+
t(o(F), {
|
|
146
|
+
class: "operation-example-card",
|
|
136
147
|
responses: e.operation.responses
|
|
137
148
|
}, null, 8, ["responses"]),
|
|
138
|
-
t(o(
|
|
149
|
+
t(o(G), {
|
|
150
|
+
class: "operation-example-card",
|
|
139
151
|
request: e.request,
|
|
140
152
|
method: e.method,
|
|
141
153
|
collection: e.collection,
|
|
142
154
|
operation: e.operation,
|
|
143
155
|
server: e.server,
|
|
144
|
-
"onUpdate:modelValue":
|
|
156
|
+
"onUpdate:modelValue": h
|
|
145
157
|
}, null, 8, ["request", "method", "collection", "operation", "server"])
|
|
146
158
|
])
|
|
147
159
|
];
|
|
148
160
|
}),
|
|
149
161
|
_: 2
|
|
150
162
|
}, [
|
|
151
|
-
(
|
|
163
|
+
(u = e.operation) != null && u.description ? {
|
|
152
164
|
name: "description",
|
|
153
|
-
fn:
|
|
154
|
-
var
|
|
165
|
+
fn: i(() => {
|
|
166
|
+
var a;
|
|
155
167
|
return [
|
|
156
|
-
t(o(
|
|
157
|
-
value: (
|
|
168
|
+
t(o(E), {
|
|
169
|
+
value: (a = e.operation) == null ? void 0 : a.description,
|
|
158
170
|
withImages: "",
|
|
159
171
|
withAnchors: "",
|
|
160
172
|
transformType: "heading",
|
|
@@ -169,5 +181,5 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
|
|
|
169
181
|
}
|
|
170
182
|
});
|
|
171
183
|
export {
|
|
172
|
-
|
|
184
|
+
qe as default
|
|
173
185
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAmMA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AAMxC,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAsBzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI/C,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC;QACrC,oBAAoB,EAAE,gBAAgB,CAAA;KACvC,CAAC,CAAA;IACF,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AAiUF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModernLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1030b20c"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|