@scalar/api-reference 1.32.8 → 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 +6 -0
- package/dist/blocks/constants.js +6 -0
- package/dist/blocks/helpers/getPointer.js +12 -0
- package/dist/blocks/hooks/useBlockProps.d.ts +31 -0
- package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -0
- package/dist/blocks/hooks/useBlockProps.js +24 -0
- package/dist/browser/standalone.js +14550 -14647
- package/dist/browser/webpack-stats.json +1 -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 +176 -164
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +5 -5
- 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 +49 -50
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +6 -8
- 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 +28 -21
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +3 -5
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +18 -33
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +12 -11
- 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 +162 -164
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +13 -12
- 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 +117 -111
- package/dist/features/api-client-modal/useApiClient.d.ts +5795 -5795
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/example-request/ExamplePicker.vue.d.ts +13 -0
- package/dist/features/example-request/ExamplePicker.vue.d.ts.map +1 -0
- package/dist/features/example-request/ExamplePicker.vue.js +7 -0
- package/dist/features/example-request/ExamplePicker.vue2.js +57 -0
- package/dist/features/example-request/ExampleRequest.vue.d.ts +85 -0
- package/dist/features/example-request/ExampleRequest.vue.d.ts.map +1 -0
- package/dist/features/example-request/ExampleRequest.vue.js +7 -0
- package/dist/features/example-request/ExampleRequest.vue2.js +348 -0
- package/dist/features/example-request/TextSelect.vue.d.ts +34 -0
- package/dist/features/example-request/TextSelect.vue.d.ts.map +1 -0
- package/dist/features/example-request/TextSelect.vue.js +48 -0
- package/dist/features/example-request/TextSelect.vue3.js +5 -0
- package/dist/features/example-request/index.d.ts +3 -0
- package/dist/features/example-request/index.d.ts.map +1 -0
- 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 +50 -51
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts +2 -3
- 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 +19 -21
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -13
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +1 -3
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +86 -113
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +3 -20
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -2
- package/dist/v2/events/index.d.ts +1 -1
- package/dist/v2/events/listeners.d.ts +1 -1
- package/package.json +10 -10
- package/dist/helpers/convert-security-scheme.js +0 -23
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +0 -4
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +0 -64
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +0 -7
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +0 -212
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +0 -35
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +0 -29
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +0 -10
- package/dist/v2/events/definitions.js +0 -7
- package/dist/v2/hooks/useStore.js +0 -14
|
@@ -1,80 +1,79 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
import L from "./layouts/ModernLayout.vue.js";
|
|
10
|
-
const A = /* @__PURE__ */ S({
|
|
1
|
+
import { defineComponent as b, computed as k, createElementBlock as W, createCommentVNode as y, openBlock as c, Fragment as U, createBlock as f, unref as m } from "vue";
|
|
2
|
+
import { useWorkspace as q } from "@scalar/api-client/store";
|
|
3
|
+
import { getPointer as B } from "../../blocks/helpers/getPointer.js";
|
|
4
|
+
import { useBlockProps as V } from "../../blocks/hooks/useBlockProps.js";
|
|
5
|
+
import { useOperationDiscriminator as C } from "../../hooks/useOperationDiscriminator.js";
|
|
6
|
+
import S from "./layouts/ClassicLayout.vue.js";
|
|
7
|
+
import g from "./layouts/ModernLayout.vue.js";
|
|
8
|
+
const M = /* @__PURE__ */ b({
|
|
11
9
|
__name: "Operation",
|
|
12
10
|
props: {
|
|
11
|
+
document: {},
|
|
13
12
|
path: {},
|
|
14
13
|
method: {},
|
|
15
14
|
isWebhook: { type: Boolean },
|
|
16
15
|
layout: { default: "modern" },
|
|
17
16
|
id: {},
|
|
18
|
-
server: {},
|
|
19
17
|
collection: {},
|
|
20
|
-
|
|
18
|
+
server: {}
|
|
21
19
|
},
|
|
22
20
|
setup(o) {
|
|
23
|
-
var
|
|
24
|
-
const
|
|
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(
|
|
21
|
+
var v, p;
|
|
22
|
+
const u = q(), s = k(
|
|
29
23
|
() => {
|
|
30
|
-
var e, t,
|
|
31
|
-
return o.isWebhook ? (
|
|
24
|
+
var e, t, n, r, i, l;
|
|
25
|
+
return o.isWebhook ? (n = (t = (e = o.document) == null ? void 0 : e.webhooks) == null ? void 0 : t[o.path]) == null ? void 0 : n[o.method] : (l = (i = (r = o.document) == null ? void 0 : r.paths) == null ? void 0 : i[o.path]) == null ? void 0 : l[o.method];
|
|
32
26
|
}
|
|
33
|
-
), { handleDiscriminatorChange:
|
|
27
|
+
), { handleDiscriminatorChange: d } = C(
|
|
34
28
|
s.value,
|
|
35
|
-
(p = (
|
|
36
|
-
), {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
29
|
+
(p = (v = o.document) == null ? void 0 : v.components) == null ? void 0 : p.schemas
|
|
30
|
+
), { operation: a } = V({
|
|
31
|
+
store: u,
|
|
32
|
+
collection: o.collection,
|
|
33
|
+
location: B([o.isWebhook ? "webhooks" : "paths", o.path, o.method])
|
|
34
|
+
}), h = k(() => {
|
|
35
|
+
var e;
|
|
36
|
+
if (!a.value)
|
|
37
|
+
return o.server;
|
|
38
|
+
if ((e = a.value) != null && e.selectedServerUid) {
|
|
39
|
+
const t = u.servers[a.value.selectedServerUid];
|
|
40
|
+
if (t)
|
|
41
|
+
return t;
|
|
44
42
|
}
|
|
45
|
-
|
|
43
|
+
return o.server;
|
|
44
|
+
});
|
|
46
45
|
return (e, t) => {
|
|
47
|
-
var
|
|
48
|
-
return
|
|
49
|
-
e.layout === "classic" ? (
|
|
46
|
+
var n, r, i, l;
|
|
47
|
+
return e.collection && s.value ? (c(), W(U, { key: 0 }, [
|
|
48
|
+
e.layout === "classic" ? (c(), f(S, {
|
|
50
49
|
key: 0,
|
|
51
50
|
id: e.id,
|
|
51
|
+
operation: s.value,
|
|
52
|
+
collection: e.collection,
|
|
52
53
|
isWebhook: e.isWebhook,
|
|
53
54
|
method: e.method,
|
|
54
|
-
operation: n.value,
|
|
55
|
-
oldOperation: s.value,
|
|
56
|
-
securitySchemes: d.value,
|
|
57
55
|
path: e.path,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
request: m(a),
|
|
57
|
+
schemas: (r = (n = e.document) == null ? void 0 : n.components) == null ? void 0 : r.schemas,
|
|
58
|
+
server: h.value,
|
|
59
|
+
"onUpdate:modelValue": m(d)
|
|
60
|
+
}, null, 8, ["id", "operation", "collection", "isWebhook", "method", "path", "request", "schemas", "server", "onUpdate:modelValue"])) : (c(), f(g, {
|
|
62
61
|
key: 1,
|
|
63
62
|
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,
|
|
68
66
|
path: e.path,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
67
|
+
request: m(a),
|
|
68
|
+
operation: s.value,
|
|
69
|
+
schemas: (l = (i = e.document) == null ? void 0 : i.components) == null ? void 0 : l.schemas,
|
|
70
|
+
server: h.value,
|
|
71
|
+
"onUpdate:modelValue": m(d)
|
|
72
|
+
}, null, 8, ["id", "collection", "isWebhook", "method", "path", "request", "operation", "schemas", "server", "onUpdate:modelValue"]))
|
|
73
|
+
], 64)) : y("", !0);
|
|
75
74
|
};
|
|
76
75
|
}
|
|
77
76
|
});
|
|
78
77
|
export {
|
|
79
|
-
|
|
78
|
+
M as default
|
|
80
79
|
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { type Dereference } from '@scalar/workspace-store/schemas/v3.1/type-guard';
|
|
1
|
+
import { type Collection } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
import type { OpenAPIV3_1 } from '@scalar/types/legacy';
|
|
4
3
|
import type { Schemas } from '../../../../features/Operation/types/schemas';
|
|
5
4
|
type __VLS_Props = {
|
|
6
|
-
callback:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
operationMethod: HttpMethodType;
|
|
5
|
+
callback: OpenAPIV3_1.OperationObject;
|
|
6
|
+
collection: Collection;
|
|
7
|
+
method: string;
|
|
10
8
|
name: string;
|
|
11
9
|
schemas?: Schemas;
|
|
12
10
|
url: string;
|
|
13
11
|
};
|
|
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, {},
|
|
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, {}, any>;
|
|
15
13
|
export default _default;
|
|
16
14
|
//# 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":"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,48 +1,55 @@
|
|
|
1
|
-
import { defineComponent as r, createElementBlock as
|
|
2
|
-
import { ScalarIconCaretRight as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
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
|
+
import { ScalarIconCaretRight as u } from "@scalar/icons";
|
|
3
|
+
import { requestSchema as f } from "@scalar/oas-utils/entities/spec";
|
|
4
|
+
import { schemaModel as h } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import b from "../OperationParameters.vue.js";
|
|
6
|
+
import k from "../OperationResponses.vue.js";
|
|
7
|
+
import g from "../../../../components/HttpMethod/HttpMethod.vue.js";
|
|
8
|
+
const y = {
|
|
9
|
+
key: 0,
|
|
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({
|
|
7
12
|
__name: "Callback",
|
|
8
13
|
props: {
|
|
9
14
|
callback: {},
|
|
15
|
+
collection: {},
|
|
10
16
|
method: {},
|
|
11
|
-
path: {},
|
|
12
|
-
operationMethod: {},
|
|
13
17
|
name: {},
|
|
14
18
|
schemas: {},
|
|
15
19
|
url: {}
|
|
16
20
|
},
|
|
17
|
-
setup(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
setup(s) {
|
|
22
|
+
const c = m(
|
|
23
|
+
() => h({ ...s.callback, path: s.url, method: s.method }, f, !1)
|
|
24
|
+
);
|
|
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), {
|
|
22
29
|
as: "span",
|
|
23
30
|
class: "request-method",
|
|
24
31
|
method: e.method
|
|
25
32
|
}, null, 8, ["method"]),
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
t("div", q, [
|
|
34
|
+
d(l(e.name) + " ", 1),
|
|
35
|
+
t("span", x, l(e.url), 1)
|
|
29
36
|
])
|
|
30
37
|
]),
|
|
31
|
-
|
|
32
|
-
a(
|
|
38
|
+
t("div", B, [
|
|
39
|
+
a(b, {
|
|
33
40
|
requestBody: e.callback.requestBody,
|
|
34
41
|
parameters: e.callback.parameters,
|
|
35
42
|
schemas: e.schemas
|
|
36
43
|
}, null, 8, ["requestBody", "parameters", "schemas"]),
|
|
37
|
-
a(
|
|
44
|
+
a(k, {
|
|
38
45
|
collapsableItems: !1,
|
|
39
46
|
responses: e.callback.responses,
|
|
40
47
|
schemas: e.schemas
|
|
41
48
|
}, null, 8, ["responses", "schemas"])
|
|
42
49
|
])
|
|
43
|
-
]));
|
|
50
|
+
])) : i("", !0);
|
|
44
51
|
}
|
|
45
52
|
});
|
|
46
53
|
export {
|
|
47
|
-
|
|
54
|
+
I as default
|
|
48
55
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { CallbackObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-operations';
|
|
1
|
+
import type { Collection, Operation } from '@scalar/oas-utils/entities/spec';
|
|
3
2
|
import type { Schemas } from '../../../../features/Operation/types/schemas';
|
|
4
3
|
type __VLS_Props = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
callbacks: CallbackObject;
|
|
4
|
+
callbacks: Operation['callbacks'];
|
|
5
|
+
collection: Collection;
|
|
8
6
|
schemas?: Schemas;
|
|
9
7
|
};
|
|
10
8
|
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":"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,45 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
|
|
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({
|
|
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
|
+
import b from "./Callback.vue.js";
|
|
3
|
+
const f = { class: "callbacks-list gap-3" }, g = /* @__PURE__ */ k({
|
|
7
4
|
__name: "Callbacks",
|
|
8
5
|
props: {
|
|
9
|
-
path: {},
|
|
10
|
-
method: {},
|
|
11
6
|
callbacks: {},
|
|
7
|
+
collection: {},
|
|
12
8
|
schemas: {}
|
|
13
9
|
},
|
|
14
|
-
setup(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
()
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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))
|
|
10
|
+
setup(h) {
|
|
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
|
+
callback: u,
|
|
17
|
+
collection: c.collection,
|
|
18
|
+
method: i,
|
|
19
|
+
name: n,
|
|
20
|
+
schemas: c.schemas,
|
|
21
|
+
url: m
|
|
22
|
+
}, null, 8, ["callback", "collection", "method", "name", "schemas", "url"]))), 256))
|
|
38
23
|
], 64))), 256))
|
|
39
24
|
], 64))), 128))
|
|
40
25
|
]));
|
|
41
26
|
}
|
|
42
27
|
});
|
|
43
28
|
export {
|
|
44
|
-
|
|
29
|
+
g as default
|
|
45
30
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { OpenAPIV3_1 } from '@scalar/
|
|
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';
|
|
1
|
+
import type { Collection, Request, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
import type { OpenAPIV3_1, XScalarStability } from '@scalar/types/legacy';
|
|
7
3
|
import type { Schemas } from '../../../features/Operation/types/schemas';
|
|
8
4
|
type __VLS_Props = {
|
|
9
5
|
id: string;
|
|
10
6
|
path: string;
|
|
11
|
-
method:
|
|
12
|
-
operation:
|
|
13
|
-
|
|
7
|
+
method: OpenAPIV3_1.HttpMethods;
|
|
8
|
+
operation: OpenAPIV3_1.OperationObject<{
|
|
9
|
+
'x-scalar-stability': XScalarStability;
|
|
10
|
+
}>;
|
|
14
11
|
isWebhook: boolean;
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Use `document` instead
|
|
14
|
+
*/
|
|
15
|
+
collection: Collection;
|
|
16
|
+
server: Server | undefined;
|
|
17
|
+
request: Request | undefined;
|
|
17
18
|
schemas?: Schemas;
|
|
18
19
|
};
|
|
19
20
|
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":"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
|
};
|