@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,173 +1,187 @@
|
|
|
1
|
-
import { defineComponent as B, computed as
|
|
2
|
-
import {
|
|
3
|
-
import { ScalarIconWebhooksLogo as
|
|
4
|
-
import { isOperationDeprecated as P, getOperationStability 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
|
|
16
|
-
import
|
|
17
|
-
|
|
1
|
+
import { defineComponent as B, computed as w, createBlock as i, openBlock as r, unref as o, createSlots as O, withCtx as s, createElementVNode as a, createVNode as t, createElementBlock as V, createCommentVNode as p, withModifiers as q, toDisplayString as h, normalizeClass as I, createTextVNode as u } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as T, ScalarIconButton as E, ScalarMarkdown as R } from "@scalar/components";
|
|
3
|
+
import { ScalarIconPlay as W, ScalarIconCopy as $, ScalarIconWebhooksLogo as N } from "@scalar/icons";
|
|
4
|
+
import { isOperationDeprecated as P, getOperationStability as f, getOperationStabilityColor as z } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { useClipboard as A } from "@scalar/use-hooks/useClipboard";
|
|
6
|
+
import D from "../../../components/OperationPath.vue.js";
|
|
7
|
+
import L from "../components/callbacks/Callbacks.vue.js";
|
|
8
|
+
import U from "../components/OperationParameters.vue.js";
|
|
9
|
+
import M from "../components/OperationResponses.vue.js";
|
|
10
|
+
import { useConfig as _ } from "../../../hooks/useConfig.js";
|
|
11
|
+
import { useStore as j } from "../../../v2/hooks/useStore.js";
|
|
12
|
+
import F from "../../../components/Section/SectionAccordion.vue.js";
|
|
13
|
+
import G from "../../example-responses/ExampleResponses.vue.js";
|
|
14
|
+
import H from "../../../v2/blocks/scalar-request-example-block/components/RequestExample.vue.js";
|
|
15
|
+
import J from "../../test-request-button/TestRequestButton.vue.js";
|
|
16
|
+
import K from "../../../components/HttpMethod/HttpMethod.vue.js";
|
|
17
|
+
import Q from "../../../components/Anchor/Anchor.vue.js";
|
|
18
|
+
import y from "../../../components/Badge/Badge.vue.js";
|
|
19
|
+
const X = { class: "operation-title" }, Y = { class: "operation-details" }, Z = { class: "endpoint-label" }, x = { class: "endpoint-label-path" }, ee = { class: "endpoint-label-name" }, oe = { class: "endpoint-content" }, te = { class: "operation-details-card" }, ae = { class: "operation-details-card-item" }, se = { class: "operation-details-card-item" }, re = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "operation-details-card-item"
|
|
22
|
+
}, Oe = /* @__PURE__ */ B({
|
|
18
23
|
__name: "ClassicLayout",
|
|
19
24
|
props: {
|
|
20
25
|
id: {},
|
|
21
26
|
path: {},
|
|
22
27
|
method: {},
|
|
23
28
|
operation: {},
|
|
29
|
+
oldOperation: {},
|
|
24
30
|
isWebhook: { type: Boolean },
|
|
25
|
-
collection: {},
|
|
26
31
|
server: {},
|
|
27
|
-
|
|
32
|
+
securitySchemes: {},
|
|
28
33
|
schemas: {}
|
|
29
34
|
},
|
|
30
35
|
emits: ["update:modelValue"],
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
return ((e = m.operation) == null ? void 0 : e.summary) || m.path || "";
|
|
35
|
-
}), { copyToClipboard: k } = $(), C = A(), q = b, c = (e) => {
|
|
36
|
-
q("update:modelValue", e);
|
|
36
|
+
setup(d, { emit: k }) {
|
|
37
|
+
const b = w(() => d.operation.summary || d.path || ""), { copyToClipboard: v } = A(), { workspace: S } = j(), C = _(), g = k, m = (e) => {
|
|
38
|
+
g("update:modelValue", e);
|
|
37
39
|
};
|
|
38
|
-
return (e,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
40
|
+
return (e, n) => (r(), i(o(F), {
|
|
41
|
+
id: e.id,
|
|
42
|
+
class: "reference-endpoint",
|
|
43
|
+
transparent: ""
|
|
44
|
+
}, O({
|
|
45
|
+
title: s(() => [
|
|
46
|
+
a("div", X, [
|
|
47
|
+
a("div", Y, [
|
|
48
|
+
t(o(K), {
|
|
49
|
+
class: "endpoint-type",
|
|
50
|
+
method: e.method,
|
|
51
|
+
short: ""
|
|
52
|
+
}, null, 8, ["method"]),
|
|
53
|
+
t(o(Q), {
|
|
54
|
+
id: e.id,
|
|
55
|
+
class: "endpoint-anchor"
|
|
56
|
+
}, {
|
|
57
|
+
default: s(() => [
|
|
58
|
+
a("h3", Z, [
|
|
59
|
+
a("div", x, [
|
|
60
|
+
t(D, {
|
|
61
|
+
deprecated: o(P)(e.operation),
|
|
62
|
+
path: e.path
|
|
63
|
+
}, null, 8, ["deprecated", "path"])
|
|
64
|
+
]),
|
|
65
|
+
a("div", ee, h(b.value), 1),
|
|
66
|
+
o(f)(e.operation) ? (r(), i(o(y), {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: I(o(z)(e.operation))
|
|
69
|
+
}, {
|
|
70
|
+
default: s(() => [
|
|
71
|
+
u(h(o(f)(e.operation)), 1)
|
|
64
72
|
]),
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}, {
|
|
79
|
-
default: a(() => [
|
|
80
|
-
t(o(O), { weight: "bold" }),
|
|
81
|
-
l[1] || (l[1] = f("Webhook "))
|
|
82
|
-
]),
|
|
83
|
-
_: 1
|
|
84
|
-
})) : d("", !0)
|
|
85
|
-
])
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
}, 8, ["id"])
|
|
89
|
-
])
|
|
90
|
-
])
|
|
91
|
-
]),
|
|
92
|
-
actions: a(({ active: i }) => {
|
|
93
|
-
var r;
|
|
94
|
-
return [
|
|
95
|
-
i && e.request ? (p(), n(o(_), {
|
|
96
|
-
key: 0,
|
|
97
|
-
operation: e.request
|
|
98
|
-
}, null, 8, ["operation"])) : (r = o(C)) != null && r.hideTestRequestButton ? d("", !0) : (p(), n(o(I), {
|
|
99
|
-
key: 1,
|
|
100
|
-
class: "endpoint-try-hint size-6",
|
|
101
|
-
icon: "Play",
|
|
102
|
-
thickness: "1.75px"
|
|
103
|
-
})),
|
|
104
|
-
t(o(R), {
|
|
105
|
-
class: "endpoint-copy p-0.5",
|
|
106
|
-
icon: "Clipboard",
|
|
107
|
-
label: "Copy endpoint URL",
|
|
108
|
-
size: "xs",
|
|
109
|
-
variant: "ghost",
|
|
110
|
-
onClick: l[0] || (l[0] = w((ee) => o(k)(e.path), ["stop"]))
|
|
111
|
-
})
|
|
112
|
-
];
|
|
113
|
-
}),
|
|
114
|
-
default: a(() => {
|
|
115
|
-
var i, r;
|
|
116
|
-
return [
|
|
117
|
-
s("div", X, [
|
|
118
|
-
s("div", Y, [
|
|
119
|
-
s("div", Z, [
|
|
120
|
-
t(D, {
|
|
121
|
-
parameters: (i = e.operation) == null ? void 0 : i.parameters,
|
|
122
|
-
requestBody: (r = e.operation) == null ? void 0 : r.requestBody,
|
|
123
|
-
schemas: e.schemas,
|
|
124
|
-
"onUpdate:modelValue": c
|
|
125
|
-
}, null, 8, ["parameters", "requestBody", "schemas"])
|
|
126
|
-
]),
|
|
127
|
-
s("div", x, [
|
|
128
|
-
t(E, {
|
|
129
|
-
collapsableItems: !1,
|
|
130
|
-
responses: e.operation.responses,
|
|
131
|
-
schemas: e.schemas
|
|
132
|
-
}, null, 8, ["responses", "schemas"])
|
|
73
|
+
_: 1
|
|
74
|
+
}, 8, ["class"])) : p("", !0),
|
|
75
|
+
e.isWebhook ? (r(), i(o(y), {
|
|
76
|
+
key: 1,
|
|
77
|
+
class: "font-code text-green flex w-fit items-center justify-center gap-1"
|
|
78
|
+
}, {
|
|
79
|
+
default: s(() => [
|
|
80
|
+
t(o(N), { weight: "bold" }),
|
|
81
|
+
n[1] || (n[1] = u("Webhook "))
|
|
82
|
+
]),
|
|
83
|
+
_: 1,
|
|
84
|
+
__: [1]
|
|
85
|
+
})) : p("", !0)
|
|
133
86
|
])
|
|
134
87
|
]),
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
]
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
88
|
+
_: 1
|
|
89
|
+
}, 8, ["id"])
|
|
90
|
+
])
|
|
91
|
+
])
|
|
92
|
+
]),
|
|
93
|
+
actions: s(({ active: l }) => {
|
|
94
|
+
var c;
|
|
95
|
+
return [
|
|
96
|
+
l && !e.isWebhook ? (r(), i(o(J), {
|
|
97
|
+
key: 0,
|
|
98
|
+
method: e.method,
|
|
99
|
+
path: e.path
|
|
100
|
+
}, null, 8, ["method", "path"])) : (c = o(C)) != null && c.hideTestRequestButton ? p("", !0) : (r(), i(o(W), {
|
|
101
|
+
key: 1,
|
|
102
|
+
class: "endpoint-try-hint size-4.5"
|
|
103
|
+
})),
|
|
104
|
+
t(o(E), {
|
|
105
|
+
class: "endpoint-copy p-0.5",
|
|
106
|
+
icon: o($),
|
|
107
|
+
label: "Copy endpoint URL",
|
|
108
|
+
size: "xs",
|
|
109
|
+
variant: "ghost",
|
|
110
|
+
onClick: n[0] || (n[0] = q((ie) => o(v)(e.path), ["stop"]))
|
|
111
|
+
}, null, 8, ["icon"])
|
|
112
|
+
];
|
|
113
|
+
}),
|
|
114
|
+
default: s(() => {
|
|
115
|
+
var l;
|
|
116
|
+
return [
|
|
117
|
+
a("div", oe, [
|
|
118
|
+
a("div", te, [
|
|
119
|
+
a("div", ae, [
|
|
120
|
+
t(U, {
|
|
121
|
+
parameters: e.oldOperation.parameters,
|
|
122
|
+
requestBody: e.oldOperation.requestBody,
|
|
123
|
+
schemas: e.schemas,
|
|
124
|
+
"onUpdate:modelValue": m
|
|
125
|
+
}, null, 8, ["parameters", "requestBody", "schemas"])
|
|
126
|
+
]),
|
|
127
|
+
a("div", se, [
|
|
128
|
+
t(M, {
|
|
129
|
+
collapsableItems: !1,
|
|
130
|
+
responses: e.oldOperation.responses,
|
|
131
|
+
schemas: e.schemas
|
|
132
|
+
}, null, 8, ["responses", "schemas"])
|
|
133
|
+
]),
|
|
134
|
+
(l = e.operation) != null && l.callbacks ? (r(), V("div", re, [
|
|
135
|
+
t(L, {
|
|
136
|
+
method: e.method,
|
|
137
|
+
path: e.path,
|
|
138
|
+
callbacks: e.operation.callbacks,
|
|
139
|
+
schemas: e.schemas
|
|
140
|
+
}, null, 8, ["method", "path", "callbacks", "schemas"])
|
|
141
|
+
])) : p("", !0)
|
|
142
|
+
]),
|
|
143
|
+
t(o(G), {
|
|
144
|
+
class: "operation-example-card",
|
|
145
|
+
responses: e.operation.responses
|
|
146
|
+
}, null, 8, ["responses"]),
|
|
147
|
+
t(o(T), null, {
|
|
148
|
+
default: s(() => [
|
|
149
|
+
t(o(H), {
|
|
150
|
+
class: "operation-example-card",
|
|
151
|
+
method: e.method,
|
|
152
|
+
selectedServer: e.server,
|
|
153
|
+
selectedClient: o(S)["x-scalar-default-client"],
|
|
154
|
+
securitySchemes: e.securitySchemes,
|
|
155
|
+
path: e.path,
|
|
156
|
+
fallback: "",
|
|
157
|
+
operation: e.operation,
|
|
158
|
+
schemas: e.schemas,
|
|
159
|
+
"onUpdate:modelValue": m
|
|
160
|
+
}, null, 8, ["method", "selectedServer", "selectedClient", "securitySchemes", "path", "operation", "schemas"])
|
|
161
|
+
]),
|
|
162
|
+
_: 1
|
|
163
|
+
})
|
|
164
|
+
])
|
|
165
|
+
];
|
|
166
|
+
}),
|
|
167
|
+
_: 2
|
|
168
|
+
}, [
|
|
169
|
+
e.operation.description ? {
|
|
170
|
+
name: "description",
|
|
171
|
+
fn: s(() => [
|
|
172
|
+
t(o(R), {
|
|
173
|
+
value: e.operation.description,
|
|
174
|
+
withImages: "",
|
|
175
|
+
withAnchors: "",
|
|
176
|
+
transformType: "heading",
|
|
177
|
+
anchorPrefix: e.id
|
|
178
|
+
}, null, 8, ["value", "anchorPrefix"])
|
|
179
|
+
]),
|
|
180
|
+
key: "0"
|
|
181
|
+
} : void 0
|
|
182
|
+
]), 1032, ["id"]));
|
|
169
183
|
}
|
|
170
184
|
});
|
|
171
185
|
export {
|
|
172
|
-
|
|
186
|
+
Oe as default
|
|
173
187
|
};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { OpenAPIV3_1
|
|
3
|
-
import type {
|
|
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';
|
|
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
|
+
securitySchemes: SecuritySchemeObject[];
|
|
16
|
+
server: ServerObject | undefined;
|
|
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":"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":"AAoMA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAOrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,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;AAkBlF,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,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AAmUF,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-84b46300"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|