@scalar/api-reference 1.32.7 → 1.32.8
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 +32 -0
- package/dist/browser/standalone.js +16286 -16092
- 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/ApiReferenceLayout.vue2.js +164 -176
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +20 -20
- 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/Operation.vue.d.ts +6 -6
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +50 -49
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +8 -7
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +21 -28
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +33 -18
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -12
- 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 +168 -154
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -13
- 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 +113 -117
- 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 +5338 -5258
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/download-link/DownloadLink.vue2.js +4 -2
- 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 +89 -96
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
- package/dist/features/test-request-button/TestRequestButton.vue2.js +26 -24
- package/dist/helpers/convert-security-scheme.js +23 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -29
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +3 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +113 -86
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +64 -0
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +212 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +20 -3
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +35 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -2
- package/dist/v2/events/definitions.js +7 -0
- package/dist/v2/events/index.d.ts +1 -1
- package/dist/v2/events/listeners.d.ts +1 -1
- package/dist/v2/hooks/useStore.js +14 -0
- package/package.json +26 -26
- package/dist/blocks/constants.js +0 -6
- package/dist/blocks/helpers/getPointer.js +0 -12
- package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
- package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
- package/dist/blocks/hooks/useBlockProps.js +0 -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
- package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
- package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
- package/dist/features/example-request/ExamplePicker.vue.js +0 -7
- package/dist/features/example-request/ExamplePicker.vue2.js +0 -56
- package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -79
- package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
- package/dist/features/example-request/ExampleRequest.vue.js +0 -7
- package/dist/features/example-request/ExampleRequest.vue2.js +0 -361
- package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
- package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
- package/dist/features/example-request/TextSelect.vue.js +0 -48
- package/dist/features/example-request/TextSelect.vue3.js +0 -5
- package/dist/features/example-request/index.d.ts +0 -3
- package/dist/features/example-request/index.d.ts.map +0 -1
|
@@ -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,17 +1,17 @@
|
|
|
1
|
+
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
1
2
|
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
3
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
3
4
|
type __VLS_Props = {
|
|
4
|
-
document?: OpenAPIV3_1.Document;
|
|
5
5
|
path: string;
|
|
6
|
-
method:
|
|
6
|
+
method: HttpMethod;
|
|
7
7
|
isWebhook?: boolean;
|
|
8
8
|
layout?: 'modern' | 'classic';
|
|
9
9
|
id: string;
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `document` instead
|
|
12
|
-
*/
|
|
13
|
-
collection: Collection;
|
|
14
10
|
server: Server | undefined;
|
|
11
|
+
/** @deprecated Use `document` instead, we just need the selected security scheme uids for now */
|
|
12
|
+
collection: Collection;
|
|
13
|
+
/** @deprecated Use the new workspace store instead*/
|
|
14
|
+
document?: OpenAPIV3_1.Document;
|
|
15
15
|
};
|
|
16
16
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AAsHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAaxD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,iGAAiG;IACjG,UAAU,EAAE,UAAU,CAAA;IACtB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;CAChC,CAAC;;AAiKF,wBAMG"}
|
|
@@ -1,79 +1,80 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
import { defineComponent as S, computed as c, createElementBlock as b, createCommentVNode as W, openBlock as u, Fragment as O, createBlock as y, unref as k } from "vue";
|
|
2
|
+
import { useWorkspace as U } from "@scalar/api-client/store";
|
|
3
|
+
import { filterSecurityRequirements as V } from "@scalar/api-client/views/Request/RequestSection";
|
|
4
|
+
import { isReference as B } from "@scalar/workspace-store/schemas/v3.1/type-guard";
|
|
5
|
+
import { convertSecurityScheme as C } from "../../helpers/convert-security-scheme.js";
|
|
6
|
+
import { useOperationDiscriminator as w } from "../../hooks/useOperationDiscriminator.js";
|
|
7
|
+
import { useStore as D } from "../../v2/hooks/useStore.js";
|
|
8
|
+
import g from "./layouts/ClassicLayout.vue.js";
|
|
9
|
+
import L from "./layouts/ModernLayout.vue.js";
|
|
10
|
+
const A = /* @__PURE__ */ S({
|
|
9
11
|
__name: "Operation",
|
|
10
12
|
props: {
|
|
11
|
-
document: {},
|
|
12
13
|
path: {},
|
|
13
14
|
method: {},
|
|
14
15
|
isWebhook: { type: Boolean },
|
|
15
16
|
layout: { default: "modern" },
|
|
16
17
|
id: {},
|
|
18
|
+
server: {},
|
|
17
19
|
collection: {},
|
|
18
|
-
|
|
20
|
+
document: {}
|
|
19
21
|
},
|
|
20
22
|
setup(o) {
|
|
21
|
-
var
|
|
22
|
-
const
|
|
23
|
+
var l, p;
|
|
24
|
+
const { workspace: v } = D(), n = c(() => {
|
|
25
|
+
var a, r, m;
|
|
26
|
+
const e = o.isWebhook ? "webhooks" : "paths", t = (m = (r = (a = v.activeDocument) == null ? void 0 : a[e]) == null ? void 0 : r[o.path]) == null ? void 0 : m[o.method];
|
|
27
|
+
return B(t) ? null : t;
|
|
28
|
+
}), s = c(
|
|
23
29
|
() => {
|
|
24
|
-
var e, t,
|
|
25
|
-
return o.isWebhook ? (
|
|
30
|
+
var e, t, a, r, m, i;
|
|
31
|
+
return o.isWebhook ? (a = (t = (e = o.document) == null ? void 0 : e.webhooks) == null ? void 0 : t[o.path]) == null ? void 0 : a[o.method] : (i = (m = (r = o.document) == null ? void 0 : r.paths) == null ? void 0 : m[o.path]) == null ? void 0 : i[o.method];
|
|
26
32
|
}
|
|
27
|
-
), { handleDiscriminatorChange:
|
|
33
|
+
), { handleDiscriminatorChange: h } = w(
|
|
28
34
|
s.value,
|
|
29
|
-
(p = (
|
|
30
|
-
), {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if ((e = a.value) != null && e.selectedServerUid) {
|
|
39
|
-
const t = u.servers[a.value.selectedServerUid];
|
|
40
|
-
if (t)
|
|
41
|
-
return t;
|
|
35
|
+
(p = (l = o.document) == null ? void 0 : l.components) == null ? void 0 : p.schemas
|
|
36
|
+
), { securitySchemes: f } = U(), d = c(
|
|
37
|
+
() => {
|
|
38
|
+
var e, t;
|
|
39
|
+
return V(
|
|
40
|
+
((e = n.value) == null ? void 0 : e.security) || ((t = o.document) == null ? void 0 : t.security),
|
|
41
|
+
o.collection.selectedSecuritySchemeUids,
|
|
42
|
+
f
|
|
43
|
+
).map(C);
|
|
42
44
|
}
|
|
43
|
-
|
|
44
|
-
});
|
|
45
|
+
);
|
|
45
46
|
return (e, t) => {
|
|
46
|
-
var
|
|
47
|
-
return
|
|
48
|
-
e.layout === "classic" ? (
|
|
47
|
+
var a, r, m, i;
|
|
48
|
+
return n.value ? (u(), b(O, { key: 0 }, [
|
|
49
|
+
e.layout === "classic" ? (u(), y(g, {
|
|
49
50
|
key: 0,
|
|
50
51
|
id: e.id,
|
|
51
|
-
operation: s.value,
|
|
52
|
-
collection: e.collection,
|
|
53
52
|
isWebhook: e.isWebhook,
|
|
54
53
|
method: e.method,
|
|
54
|
+
operation: n.value,
|
|
55
|
+
oldOperation: s.value,
|
|
56
|
+
securitySchemes: d.value,
|
|
55
57
|
path: e.path,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}, null, 8, ["id", "operation", "collection", "isWebhook", "method", "path", "request", "schemas", "server", "onUpdate:modelValue"])) : (c(), f(g, {
|
|
58
|
+
schemas: (r = (a = e.document) == null ? void 0 : a.components) == null ? void 0 : r.schemas,
|
|
59
|
+
server: e.server,
|
|
60
|
+
"onUpdate:modelValue": k(h)
|
|
61
|
+
}, null, 8, ["id", "isWebhook", "method", "operation", "oldOperation", "securitySchemes", "path", "schemas", "server", "onUpdate:modelValue"])) : (u(), y(L, {
|
|
61
62
|
key: 1,
|
|
62
63
|
id: e.id,
|
|
63
|
-
collection: e.collection,
|
|
64
64
|
isWebhook: e.isWebhook,
|
|
65
65
|
method: e.method,
|
|
66
|
+
oldOperation: s.value,
|
|
67
|
+
securitySchemes: d.value,
|
|
66
68
|
path: e.path,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
], 64)) : y("", !0);
|
|
69
|
+
operation: n.value,
|
|
70
|
+
schemas: (i = (m = e.document) == null ? void 0 : m.components) == null ? void 0 : i.schemas,
|
|
71
|
+
server: e.server,
|
|
72
|
+
"onUpdate:modelValue": k(h)
|
|
73
|
+
}, null, 8, ["id", "isWebhook", "method", "oldOperation", "securitySchemes", "path", "operation", "schemas", "server", "onUpdate:modelValue"]))
|
|
74
|
+
], 64)) : W("", !0);
|
|
74
75
|
};
|
|
75
76
|
}
|
|
76
77
|
});
|
|
77
78
|
export {
|
|
78
|
-
|
|
79
|
+
A as default
|
|
79
80
|
};
|
|
@@ -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,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type
|
|
1
|
+
import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods';
|
|
2
|
+
import { type OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-operations';
|
|
3
|
+
import { type Dereference } from '@scalar/workspace-store/schemas/v3.1/type-guard';
|
|
3
4
|
import type { Schemas } from '../../../../features/Operation/types/schemas';
|
|
4
5
|
type __VLS_Props = {
|
|
5
|
-
callback:
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
callback: Dereference<OperationObject>;
|
|
7
|
+
method: HttpMethodType;
|
|
8
|
+
path: string;
|
|
9
|
+
operationMethod: HttpMethodType;
|
|
8
10
|
name: string;
|
|
9
11
|
schemas?: Schemas;
|
|
10
12
|
url: string;
|
|
11
13
|
};
|
|
12
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
14
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDetailsElement>;
|
|
13
15
|
export default _default;
|
|
14
16
|
//# sourceMappingURL=Callback.vue.d.ts.map
|
|
@@ -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":"AA8GA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAErF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,6DAA6D,CAAA;AAClG,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAKlF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;IACtC,MAAM,EAAE,cAAc,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,cAAc,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAC;;AAkJF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Callback.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-45f1f948"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,55 +1,48 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIconCaretRight as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import g from "../../../../components/HttpMethod/HttpMethod.vue.js";
|
|
8
|
-
const y = {
|
|
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" }, B = { class: "text-c-2" }, v = { class: "callback-operation-container flex flex-col gap-2" }, I = /* @__PURE__ */ l({
|
|
1
|
+
import { defineComponent as r, createElementBlock as l, openBlock as c, createElementVNode as s, createVNode as a, unref as t, createTextVNode as n, toDisplayString as o } from "vue";
|
|
2
|
+
import { ScalarIconCaretRight as m } from "@scalar/icons";
|
|
3
|
+
import i from "../OperationParameters.vue.js";
|
|
4
|
+
import p from "../OperationResponses.vue.js";
|
|
5
|
+
import d from "../../../../components/HttpMethod/HttpMethod.vue.js";
|
|
6
|
+
const f = { class: "group callback-list-item" }, h = { 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" }, u = { class: "text-c-1 min-w-0 flex-1 truncate leading-3 group-open:whitespace-normal" }, _ = { class: "text-c-2" }, b = { class: "callback-operation-container flex flex-col gap-2" }, v = /* @__PURE__ */ r({
|
|
12
7
|
__name: "Callback",
|
|
13
8
|
props: {
|
|
14
9
|
callback: {},
|
|
15
|
-
collection: {},
|
|
16
10
|
method: {},
|
|
11
|
+
path: {},
|
|
12
|
+
operationMethod: {},
|
|
17
13
|
name: {},
|
|
18
14
|
schemas: {},
|
|
19
15
|
url: {}
|
|
20
16
|
},
|
|
21
|
-
setup(
|
|
22
|
-
|
|
23
|
-
(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
o("summary", _, [
|
|
27
|
-
s(a(u), { class: "text-c-3 group-hover:text-c-1 absolute -left-5 size-4 transition-transform group-open:rotate-90" }),
|
|
28
|
-
s(a(g), {
|
|
17
|
+
setup(k) {
|
|
18
|
+
return (e, g) => (c(), l("details", f, [
|
|
19
|
+
s("summary", h, [
|
|
20
|
+
a(t(m), { class: "callback-list-item-icon text-c-3 group-hover:text-c-1 absolute -left-5 size-4 transition-transform group-open:rotate-90" }),
|
|
21
|
+
a(t(d), {
|
|
29
22
|
as: "span",
|
|
30
23
|
class: "request-method",
|
|
31
24
|
method: e.method
|
|
32
25
|
}, null, 8, ["method"]),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
s("div", u, [
|
|
27
|
+
n(o(e.name) + " ", 1),
|
|
28
|
+
s("span", _, o(e.url), 1)
|
|
36
29
|
])
|
|
37
30
|
]),
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
s("div", b, [
|
|
32
|
+
a(i, {
|
|
40
33
|
requestBody: e.callback.requestBody,
|
|
41
34
|
parameters: e.callback.parameters,
|
|
42
35
|
schemas: e.schemas
|
|
43
36
|
}, null, 8, ["requestBody", "parameters", "schemas"]),
|
|
44
|
-
|
|
37
|
+
a(p, {
|
|
45
38
|
collapsableItems: !1,
|
|
46
39
|
responses: e.callback.responses,
|
|
47
40
|
schemas: e.schemas
|
|
48
41
|
}, null, 8, ["responses", "schemas"])
|
|
49
42
|
])
|
|
50
|
-
]))
|
|
43
|
+
]));
|
|
51
44
|
}
|
|
52
45
|
});
|
|
53
46
|
export {
|
|
54
|
-
|
|
47
|
+
v as default
|
|
55
48
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
|
+
import type { CallbackObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-operations';
|
|
2
3
|
import type { Schemas } from '../../../../features/Operation/types/schemas';
|
|
3
4
|
type __VLS_Props = {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
path: string;
|
|
6
|
+
method: HttpMethod;
|
|
7
|
+
callbacks: CallbackObject;
|
|
6
8
|
schemas?: Schemas;
|
|
7
9
|
};
|
|
8
10
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -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":"AA0EA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAA;AAIjG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,cAAc,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;AAsGF,wBAOG"}
|
|
@@ -1,30 +1,45 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { defineComponent as b, watch as y, createElementBlock as t, openBlock as e, createElementVNode as C, Fragment as a, renderList as s, createCommentVNode as u, unref as i, createBlock as v } from "vue";
|
|
2
|
+
import { isHttpMethod as g } from "@scalar/helpers/http/is-http-method";
|
|
3
|
+
import { isReference as h } from "@scalar/workspace-store/schemas/v3.1/type-guard";
|
|
4
|
+
import { useStore as B } from "../../../../v2/hooks/useStore.js";
|
|
5
|
+
import E from "./Callback.vue.js";
|
|
6
|
+
const M = { class: "callbacks-list gap-3" }, F = /* @__PURE__ */ b({
|
|
4
7
|
__name: "Callbacks",
|
|
5
8
|
props: {
|
|
9
|
+
path: {},
|
|
10
|
+
method: {},
|
|
6
11
|
callbacks: {},
|
|
7
|
-
collection: {},
|
|
8
12
|
schemas: {}
|
|
9
13
|
},
|
|
10
|
-
setup(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
setup(r) {
|
|
15
|
+
const { resolve: k } = B();
|
|
16
|
+
return y(
|
|
17
|
+
() => r.callbacks,
|
|
18
|
+
(l) => Object.values(l).forEach((o) => {
|
|
19
|
+
h(o) && k(["paths", r.path, r.method]);
|
|
20
|
+
}),
|
|
21
|
+
{ immediate: !0 }
|
|
22
|
+
), (l, o) => (e(), t("div", M, [
|
|
23
|
+
o[0] || (o[0] = C("div", { class: "callbacks-title text-c-1 my-3 text-lg font-medium" }, " Callbacks ", -1)),
|
|
24
|
+
(e(!0), t(a, null, s(l.callbacks, (m, n) => (e(), t(a, { key: n }, [
|
|
25
|
+
i(h)(m) ? u("", !0) : (e(!0), t(a, { key: 0 }, s(m, (d, p) => (e(), t(a, null, [
|
|
26
|
+
(e(!0), t(a, null, s(d, (f, c) => (e(), t(a, { key: c }, [
|
|
27
|
+
i(g)(c) ? (e(), v(E, {
|
|
28
|
+
key: 0,
|
|
29
|
+
callback: f,
|
|
30
|
+
method: c,
|
|
31
|
+
operationMethod: r.method,
|
|
32
|
+
name: n,
|
|
33
|
+
path: l.path,
|
|
34
|
+
schemas: l.schemas,
|
|
35
|
+
url: p
|
|
36
|
+
}, null, 8, ["callback", "method", "operationMethod", "name", "path", "schemas", "url"])) : u("", !0)
|
|
37
|
+
], 64))), 128))
|
|
23
38
|
], 64))), 256))
|
|
24
39
|
], 64))), 128))
|
|
25
40
|
]));
|
|
26
41
|
}
|
|
27
42
|
});
|
|
28
43
|
export {
|
|
29
|
-
|
|
44
|
+
F as default
|
|
30
45
|
};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { OpenAPIV3_1
|
|
1
|
+
import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods';
|
|
2
|
+
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
3
|
+
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-operations';
|
|
4
|
+
import type { SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/security-scheme';
|
|
5
|
+
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/server';
|
|
6
|
+
import type { Dereference } from '@scalar/workspace-store/schemas/v3.1/type-guard';
|
|
3
7
|
import type { Schemas } from '../../../features/Operation/types/schemas';
|
|
4
8
|
type __VLS_Props = {
|
|
5
9
|
id: string;
|
|
6
10
|
path: string;
|
|
7
|
-
method:
|
|
8
|
-
operation:
|
|
9
|
-
|
|
10
|
-
}>;
|
|
11
|
+
method: HttpMethodType;
|
|
12
|
+
operation: Dereference<OperationObject>;
|
|
13
|
+
oldOperation: OpenAPIV3_1.OperationObject;
|
|
11
14
|
isWebhook: boolean;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
*/
|
|
15
|
-
collection: Collection;
|
|
16
|
-
server: Server | undefined;
|
|
17
|
-
request: Request | undefined;
|
|
15
|
+
server: ServerObject | undefined;
|
|
16
|
+
securitySchemes: SecuritySchemeObject[];
|
|
18
17
|
schemas?: Schemas;
|
|
19
18
|
};
|
|
20
19
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
@@ -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":"AAqbA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAWrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6DAA6D,CAAA;AAClG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAA;AACvG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAYlF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAQjE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;IACvC,YAAY,EAAE,WAAW,CAAC,eAAe,CAAA;IACzC,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA2YF,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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d9491f8e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|