@scalar/api-reference 1.31.7 → 1.31.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 +55 -0
- package/dist/browser/standalone.js +18613 -18470
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +10 -30
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +240 -222
- package/dist/components/Content/Content.vue.d.ts +2 -0
- 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 +84 -74
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +1 -3
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue2.js +93 -83
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +84 -86
- package/dist/components/Content/Models/Models.vue.js +1 -1
- package/dist/components/Content/Models/Models.vue2.js +4 -4
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +53 -53
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +117 -112
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +161 -191
- package/dist/components/Content/Schema/helpers/schema-name.d.ts +13 -0
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +59 -13
- 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 +22 -25
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +2 -3
- 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 +46 -47
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +45 -47
- package/dist/components/Content/Tag/TagList.vue.d.ts +2 -0
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +40 -41
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagSection.vue.js +2 -2
- package/dist/components/Content/Tag/TagSection.vue2.js +21 -21
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +16 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +12 -11
- package/dist/components/MobileHeader.vue.d.ts +1 -8
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.js +1 -1
- package/dist/components/MobileHeader.vue2.js +19 -19
- package/dist/components/Section/Section.vue.js +2 -2
- package/dist/components/Section/Section.vue2.js +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue2.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -4
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +113 -159
- package/dist/components/Sidebar/SidebarElement.vue.d.ts +2 -11
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarElement.vue2.js +85 -81
- package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts +16 -1
- package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarHttpBadge.vue.js +2 -2
- package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +11 -5
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +54 -42
- package/dist/features/ApiClientModal/useApiClient.d.ts +74 -72
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +0 -2
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.js +40 -67
- package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +5 -5
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +200 -179
- package/dist/features/Operation/Operation.vue.d.ts +0 -1
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +31 -34
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +3 -2
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +62 -64
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -2
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +2 -2
- 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 +31 -38
- package/dist/features/Operation/hooks/useResponses.d.ts +3 -3
- package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
- package/dist/features/Operation/hooks/useResponses.js +12 -13
- package/dist/features/Operation/index.d.ts +0 -1
- package/dist/features/Operation/index.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +4 -6
- 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 +85 -72
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -4
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +114 -98
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +1 -1
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +61 -64
- package/dist/features/sidebar/helpers/create-sidebar.d.ts +4 -2
- package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -1
- package/dist/features/sidebar/helpers/create-sidebar.js +33 -0
- package/dist/features/sidebar/hooks/useSidebar.d.ts +2 -3
- package/dist/features/sidebar/hooks/useSidebar.d.ts.map +1 -1
- package/dist/features/sidebar/hooks/useSidebar.js +18 -0
- package/dist/features/sidebar/index.d.ts +2 -1
- package/dist/features/sidebar/index.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/get-tag.d.ts +4 -2
- package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/get-tag.js +7 -0
- package/dist/features/traverse-schema/helpers/traverse-description.js +33 -0
- package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-document.js +34 -0
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +5 -3
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-paths.js +32 -0
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +2 -2
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-schemas.js +23 -0
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +2 -2
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-tags.js +43 -0
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +2 -2
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-webhooks.js +26 -0
- package/dist/features/traverse-schema/index.d.ts +3 -3
- package/dist/features/traverse-schema/index.d.ts.map +1 -1
- package/dist/features/traverse-schema/types.d.ts +8 -5
- package/dist/features/traverse-schema/types.d.ts.map +1 -1
- package/dist/helpers/parse.d.ts +2 -1
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +72 -88
- package/dist/hooks/useMultipleDocuments.d.ts +6 -6
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/hooks/useNavState.d.ts +1 -1
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +14 -9
- package/dist/hooks/useOperation.d.ts +7 -7
- package/dist/hooks/useOperation.d.ts.map +1 -1
- package/dist/hooks/useOperation.js +13 -12
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -25
- package/dist/legacy/fixtures/index.d.ts +1 -1
- package/dist/libs/openapi.d.ts +3 -4
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +8 -9
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +4 -18
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +68 -45
- package/package.json +17 -17
- package/dist/components/Content/Webhooks/index.d.ts +0 -2
- package/dist/components/Content/Webhooks/index.d.ts.map +0 -1
- package/dist/features/Operation/Webhooks.vue.d.ts +0 -7
- package/dist/features/Operation/Webhooks.vue.d.ts.map +0 -1
- package/dist/features/Operation/Webhooks.vue.js +0 -7
- package/dist/features/Operation/Webhooks.vue2.js +0 -121
- package/dist/features/Operation/components/Webhook.vue.d.ts +0 -7
- package/dist/features/Operation/components/Webhook.vue.d.ts.map +0 -1
- package/dist/features/Operation/components/Webhook.vue.js +0 -7
- package/dist/features/Operation/components/Webhook.vue2.js +0 -29
- package/dist/features/traverse-schema/helpers/operation-id-params.d.ts +0 -8
- package/dist/features/traverse-schema/helpers/operation-id-params.d.ts.map +0 -1
- package/dist/features/traverse-schema/helpers/operation-id-params.js +0 -8
- package/dist/hooks/useSidebar.d.ts +0 -53
- package/dist/hooks/useSidebar.d.ts.map +0 -1
- package/dist/hooks/useSidebar.js +0 -248
- package/dist/legacy/fixtures/httpRequestMethods.js +0 -14
|
@@ -1,70 +1,82 @@
|
|
|
1
|
-
import { defineComponent as k,
|
|
2
|
-
import { ScalarIcon as
|
|
1
|
+
import { defineComponent as k, createBlock as a, openBlock as i, unref as o, createSlots as C, withCtx as n, createElementVNode as r, createVNode as t, createCommentVNode as p, withModifiers as V, toDisplayString as f, normalizeClass as q, createTextVNode as c } from "vue";
|
|
2
|
+
import { ScalarIcon as S, ScalarIconButton as w, ScalarMarkdown as B } from "@scalar/components";
|
|
3
|
+
import { ScalarIconWebhooksLogo as _ } from "@scalar/icons";
|
|
3
4
|
import { useClipboard as I } from "@scalar/use-hooks/useClipboard";
|
|
4
|
-
import
|
|
5
|
-
import { useConfig as
|
|
6
|
-
import { isOperationDeprecated as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
5
|
+
import R from "../../../components/OperationPath.vue.js";
|
|
6
|
+
import { useConfig as T } from "../../../hooks/useConfig.js";
|
|
7
|
+
import { isOperationDeprecated as N, getOperationStability as h, getOperationStabilityColor as P } from "../../../libs/openapi.js";
|
|
8
|
+
import $ from "../components/OperationParameters.vue.js";
|
|
9
|
+
import z from "../components/OperationResponses.vue.js";
|
|
10
|
+
import A from "../../../components/Section/SectionAccordion.vue.js";
|
|
11
|
+
import D from "../../ExampleResponses/ExampleResponses.vue.js";
|
|
12
|
+
import E from "../../ExampleRequest/ExampleRequest.vue.js";
|
|
12
13
|
import L from "../../TestRequestButton/TestRequestButton.vue.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const
|
|
14
|
+
import U from "../../../components/HttpMethod/HttpMethod.vue.js";
|
|
15
|
+
import W from "../../../components/Anchor/Anchor.vue.js";
|
|
16
|
+
import u from "../../../components/Badge/Badge.vue.js";
|
|
17
|
+
const M = { class: "operation-title" }, j = { class: "operation-details" }, F = { class: "endpoint-label" }, G = { class: "endpoint-label-path" }, H = { class: "endpoint-label-name" }, J = { class: "endpoint-content" }, K = { class: "operation-details-card" }, Q = { class: "operation-details-card-item" }, X = { class: "operation-details-card-item" }, ue = /* @__PURE__ */ k({
|
|
17
18
|
__name: "ClassicLayout",
|
|
18
19
|
props: {
|
|
19
|
-
id: {},
|
|
20
20
|
collection: {},
|
|
21
21
|
server: {},
|
|
22
|
-
|
|
22
|
+
request: {},
|
|
23
23
|
transformedOperation: {},
|
|
24
24
|
schemas: {}
|
|
25
25
|
},
|
|
26
26
|
emits: ["update:modelValue"],
|
|
27
|
-
setup(
|
|
28
|
-
const { copyToClipboard: v } = I(), y =
|
|
27
|
+
setup(Y, { emit: O }) {
|
|
28
|
+
const { copyToClipboard: v } = I(), y = T(), b = O, d = (e) => {
|
|
29
29
|
b("update:modelValue", e);
|
|
30
30
|
};
|
|
31
|
-
return (e,
|
|
32
|
-
var
|
|
33
|
-
return
|
|
34
|
-
id: e.id,
|
|
31
|
+
return (e, s) => {
|
|
32
|
+
var m;
|
|
33
|
+
return i(), a(o(A), {
|
|
34
|
+
id: e.transformedOperation.id,
|
|
35
35
|
class: "reference-endpoint",
|
|
36
36
|
transparent: ""
|
|
37
|
-
},
|
|
38
|
-
title:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
}, C({
|
|
38
|
+
title: n(() => [
|
|
39
|
+
r("div", M, [
|
|
40
|
+
r("div", j, [
|
|
41
|
+
t(o(U), {
|
|
42
42
|
class: "endpoint-type",
|
|
43
|
-
method: e.
|
|
43
|
+
method: e.transformedOperation.httpVerb,
|
|
44
44
|
short: ""
|
|
45
45
|
}, null, 8, ["method"]),
|
|
46
|
-
|
|
47
|
-
id: e.id
|
|
46
|
+
t(o(W), {
|
|
47
|
+
id: e.transformedOperation.id,
|
|
48
48
|
class: "endpoint-anchor"
|
|
49
49
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
deprecated: o(
|
|
55
|
-
path: e.
|
|
50
|
+
default: n(() => [
|
|
51
|
+
r("h3", F, [
|
|
52
|
+
r("div", G, [
|
|
53
|
+
t(R, {
|
|
54
|
+
deprecated: o(N)(e.transformedOperation.information),
|
|
55
|
+
path: e.transformedOperation.path
|
|
56
56
|
}, null, 8, ["deprecated", "path"])
|
|
57
57
|
]),
|
|
58
|
-
|
|
59
|
-
o(
|
|
58
|
+
r("div", H, f(e.transformedOperation.name), 1),
|
|
59
|
+
o(h)(e.transformedOperation.information) ? (i(), a(o(u), {
|
|
60
60
|
key: 0,
|
|
61
|
-
class:
|
|
61
|
+
class: q(
|
|
62
|
+
o(P)(e.transformedOperation.information)
|
|
63
|
+
)
|
|
62
64
|
}, {
|
|
63
|
-
default:
|
|
64
|
-
|
|
65
|
+
default: n(() => [
|
|
66
|
+
c(f(o(h)(e.transformedOperation.information)), 1)
|
|
65
67
|
]),
|
|
66
68
|
_: 1
|
|
67
|
-
}, 8, ["class"])) :
|
|
69
|
+
}, 8, ["class"])) : p("", !0),
|
|
70
|
+
e.transformedOperation.isWebhook ? (i(), a(o(u), {
|
|
71
|
+
key: 1,
|
|
72
|
+
class: "font-code text-green flex w-fit items-center justify-center gap-1"
|
|
73
|
+
}, {
|
|
74
|
+
default: n(() => [
|
|
75
|
+
t(o(_), { weight: "bold" }),
|
|
76
|
+
s[1] || (s[1] = c("Webhook "))
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
})) : p("", !0)
|
|
68
80
|
])
|
|
69
81
|
]),
|
|
70
82
|
_: 1
|
|
@@ -72,69 +84,70 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
|
|
|
72
84
|
])
|
|
73
85
|
])
|
|
74
86
|
]),
|
|
75
|
-
actions:
|
|
76
|
-
var
|
|
87
|
+
actions: n(({ active: g }) => {
|
|
88
|
+
var l;
|
|
77
89
|
return [
|
|
78
|
-
g ? (
|
|
90
|
+
g && e.request ? (i(), a(o(L), {
|
|
79
91
|
key: 0,
|
|
80
|
-
operation: e.
|
|
81
|
-
}, null, 8, ["operation"])) : (
|
|
92
|
+
operation: e.request
|
|
93
|
+
}, null, 8, ["operation"])) : (l = o(y)) != null && l.hideTestRequestButton ? p("", !0) : (i(), a(o(S), {
|
|
82
94
|
key: 1,
|
|
83
95
|
class: "endpoint-try-hint size-6",
|
|
84
96
|
icon: "Play",
|
|
85
97
|
thickness: "1.75px"
|
|
86
98
|
})),
|
|
87
|
-
|
|
99
|
+
t(o(w), {
|
|
88
100
|
class: "endpoint-copy p-0.5",
|
|
89
101
|
icon: "Clipboard",
|
|
90
102
|
label: "Copy endpoint URL",
|
|
91
103
|
size: "xs",
|
|
92
104
|
variant: "ghost",
|
|
93
|
-
onClick:
|
|
105
|
+
onClick: s[0] || (s[0] = V((Z) => o(v)(e.transformedOperation.path), ["stop"]))
|
|
94
106
|
})
|
|
95
107
|
];
|
|
96
108
|
}),
|
|
97
|
-
default:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
operation: e.
|
|
109
|
+
default: n(() => [
|
|
110
|
+
r("div", J, [
|
|
111
|
+
r("div", K, [
|
|
112
|
+
r("div", Q, [
|
|
113
|
+
t($, {
|
|
114
|
+
operation: e.transformedOperation.information,
|
|
103
115
|
schemas: e.schemas,
|
|
104
|
-
"onUpdate:modelValue":
|
|
116
|
+
"onUpdate:modelValue": d
|
|
105
117
|
}, null, 8, ["operation", "schemas"])
|
|
106
118
|
]),
|
|
107
|
-
|
|
108
|
-
|
|
119
|
+
r("div", X, [
|
|
120
|
+
t(z, {
|
|
109
121
|
collapsableItems: !1,
|
|
110
|
-
|
|
122
|
+
responses: e.transformedOperation.information.responses,
|
|
111
123
|
schemas: e.schemas
|
|
112
|
-
}, null, 8, ["
|
|
124
|
+
}, null, 8, ["responses", "schemas"])
|
|
113
125
|
])
|
|
114
126
|
]),
|
|
115
|
-
|
|
116
|
-
responses: e.
|
|
127
|
+
t(o(D), {
|
|
128
|
+
responses: e.transformedOperation.information.responses
|
|
117
129
|
}, null, 8, ["responses"]),
|
|
118
|
-
|
|
130
|
+
t(o(E), {
|
|
131
|
+
request: e.request,
|
|
132
|
+
method: e.transformedOperation.httpVerb,
|
|
119
133
|
collection: e.collection,
|
|
120
|
-
operation: e.
|
|
134
|
+
operation: e.transformedOperation.information,
|
|
121
135
|
server: e.server,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}, null, 8, ["collection", "operation", "server", "transformedOperation"])
|
|
136
|
+
"onUpdate:modelValue": d
|
|
137
|
+
}, null, 8, ["request", "method", "collection", "operation", "server"])
|
|
125
138
|
])
|
|
126
139
|
]),
|
|
127
140
|
_: 2
|
|
128
141
|
}, [
|
|
129
|
-
(
|
|
142
|
+
(m = e.transformedOperation.information) != null && m.description ? {
|
|
130
143
|
name: "description",
|
|
131
|
-
fn:
|
|
132
|
-
|
|
133
|
-
value: e.
|
|
144
|
+
fn: n(() => [
|
|
145
|
+
t(o(B), {
|
|
146
|
+
value: e.transformedOperation.information.description,
|
|
134
147
|
withImages: "",
|
|
135
148
|
withAnchors: "",
|
|
136
149
|
transformType: "heading",
|
|
137
|
-
anchorPrefix: e.id
|
|
150
|
+
anchorPrefix: e.transformedOperation.id
|
|
138
151
|
}, null, 8, ["value", "anchorPrefix"])
|
|
139
152
|
]),
|
|
140
153
|
key: "0"
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { Collection,
|
|
1
|
+
import type { Collection, Request, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
2
|
import type { TransformedOperation } from '@scalar/types/legacy';
|
|
3
3
|
import type { Schemas } from '../../../features/Operation/types/schemas';
|
|
4
4
|
type __VLS_Props = {
|
|
5
|
-
id?: string;
|
|
6
5
|
collection: Collection;
|
|
7
6
|
server: Server | undefined;
|
|
8
|
-
|
|
9
|
-
/** @deprecated Use `operation` instead */
|
|
7
|
+
request: Request | undefined;
|
|
10
8
|
transformedOperation: TransformedOperation;
|
|
11
9
|
schemas?: Schemas;
|
|
12
10
|
};
|
|
@@ -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":"AAkLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAgBhE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAejE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA6TF,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
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ae05c30d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,72 +1,84 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMarkdown as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
|
|
1
|
+
import { defineComponent as S, useId as q, createBlock as t, openBlock as n, unref as o, withCtx as a, createVNode as r, createCommentVNode as i, createElementVNode as s, normalizeClass as u, createTextVNode as m, toDisplayString as c, createSlots as v } from "vue";
|
|
2
|
+
import { ScalarMarkdown as C, ScalarErrorBoundary as l } from "@scalar/components";
|
|
3
|
+
import { ScalarIconWebhooksLogo as V } from "@scalar/icons";
|
|
4
|
+
import B from "../../../components/OperationPath.vue.js";
|
|
5
|
+
import { useConfig as w } from "../../../hooks/useConfig.js";
|
|
6
|
+
import { getOperationStability as h, getOperationStabilityColor as E, isOperationDeprecated as I } from "../../../libs/openapi.js";
|
|
7
|
+
import N from "../components/callbacks/Callbacks.vue.js";
|
|
8
|
+
import T from "../components/OperationParameters.vue.js";
|
|
9
|
+
import D from "../components/OperationResponses.vue.js";
|
|
10
|
+
import L from "../../../components/Section/Section.vue.js";
|
|
11
|
+
import P from "../../../components/Section/SectionContent.vue.js";
|
|
12
|
+
import O from "../../../components/Badge/Badge.vue.js";
|
|
13
|
+
import R from "../../../components/Section/SectionHeader.vue.js";
|
|
14
|
+
import W from "../../../components/Anchor/Anchor.vue.js";
|
|
15
|
+
import $ from "../../../components/Section/SectionHeaderTag.vue.js";
|
|
16
|
+
import A from "../../../components/Section/SectionColumns.vue.js";
|
|
17
|
+
import b from "../../../components/Section/SectionColumn.vue.js";
|
|
18
|
+
import H from "../../ExampleRequest/ExampleRequest.vue.js";
|
|
19
|
+
import M from "../../TestRequestButton/TestRequestButton.vue.js";
|
|
20
|
+
import U from "../../ExampleResponses/ExampleResponses.vue.js";
|
|
21
|
+
const j = { class: "operation-details" }, z = { class: "examples" }, pe = /* @__PURE__ */ S({
|
|
21
22
|
__name: "ModernLayout",
|
|
22
23
|
props: {
|
|
23
|
-
id: {},
|
|
24
24
|
collection: {},
|
|
25
25
|
server: {},
|
|
26
|
-
|
|
26
|
+
request: {},
|
|
27
27
|
transformedOperation: {},
|
|
28
28
|
schemas: {}
|
|
29
29
|
},
|
|
30
30
|
emits: ["update:modelValue"],
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
|
|
31
|
+
setup(F, { emit: g }) {
|
|
32
|
+
const y = g, d = q(), k = w(), p = (e) => {
|
|
33
|
+
y("update:modelValue", e);
|
|
34
34
|
};
|
|
35
|
-
return (e,
|
|
36
|
-
id: e.id,
|
|
37
|
-
"aria-labelledby": o(
|
|
38
|
-
label:
|
|
35
|
+
return (e, f) => (n(), t(o(L), {
|
|
36
|
+
id: e.transformedOperation.id,
|
|
37
|
+
"aria-labelledby": o(d),
|
|
38
|
+
label: e.transformedOperation.name,
|
|
39
39
|
tabindex: "-1"
|
|
40
40
|
}, {
|
|
41
|
-
default:
|
|
42
|
-
|
|
43
|
-
loading: o(
|
|
41
|
+
default: a(() => [
|
|
42
|
+
r(o(P), {
|
|
43
|
+
loading: o(k).isLoading
|
|
44
44
|
}, {
|
|
45
|
-
default:
|
|
46
|
-
o(
|
|
45
|
+
default: a(() => [
|
|
46
|
+
o(h)(e.transformedOperation.information) ? (n(), t(o(O), {
|
|
47
47
|
key: 0,
|
|
48
|
-
class:
|
|
48
|
+
class: u(o(E)(e.transformedOperation.information))
|
|
49
49
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
|
|
50
|
+
default: a(() => [
|
|
51
|
+
m(c(o(h)(e.transformedOperation.information)), 1)
|
|
52
52
|
]),
|
|
53
53
|
_: 1
|
|
54
|
-
}, 8, ["class"])) :
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
}, 8, ["class"])) : i("", !0),
|
|
55
|
+
e.transformedOperation.isWebhook ? (n(), t(o(O), {
|
|
56
|
+
key: 1,
|
|
57
|
+
class: "font-code text-green flex w-fit items-center justify-center gap-1"
|
|
58
|
+
}, {
|
|
59
|
+
default: a(() => [
|
|
60
|
+
r(o(V), { weight: "bold" }),
|
|
61
|
+
f[0] || (f[0] = m("Webhook "))
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
})) : i("", !0),
|
|
65
|
+
s("div", {
|
|
66
|
+
class: u(
|
|
67
|
+
o(I)(e.transformedOperation.information) ? "deprecated" : ""
|
|
68
|
+
)
|
|
57
69
|
}, [
|
|
58
|
-
|
|
59
|
-
default:
|
|
60
|
-
|
|
61
|
-
id: e.id
|
|
70
|
+
r(o(R), null, {
|
|
71
|
+
default: a(() => [
|
|
72
|
+
r(o(W), {
|
|
73
|
+
id: e.transformedOperation.id
|
|
62
74
|
}, {
|
|
63
|
-
default:
|
|
64
|
-
|
|
65
|
-
id: o(
|
|
75
|
+
default: a(() => [
|
|
76
|
+
r(o($), {
|
|
77
|
+
id: o(d),
|
|
66
78
|
level: 3
|
|
67
79
|
}, {
|
|
68
|
-
default:
|
|
69
|
-
|
|
80
|
+
default: a(() => [
|
|
81
|
+
m(c(e.transformedOperation.name), 1)
|
|
70
82
|
]),
|
|
71
83
|
_: 1
|
|
72
84
|
}, 8, ["id"])
|
|
@@ -77,35 +89,36 @@ const j = { class: "operation-details" }, F = { class: "examples" }, de = /* @__
|
|
|
77
89
|
_: 1
|
|
78
90
|
})
|
|
79
91
|
], 2),
|
|
80
|
-
|
|
81
|
-
default:
|
|
82
|
-
|
|
83
|
-
default:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
value: e.
|
|
92
|
+
r(o(A), null, {
|
|
93
|
+
default: a(() => [
|
|
94
|
+
r(o(b), null, {
|
|
95
|
+
default: a(() => [
|
|
96
|
+
s("div", j, [
|
|
97
|
+
r(o(C), {
|
|
98
|
+
value: e.transformedOperation.information.description,
|
|
87
99
|
withImages: "",
|
|
88
100
|
withAnchors: "",
|
|
89
101
|
transformType: "heading",
|
|
90
|
-
anchorPrefix: e.id
|
|
102
|
+
anchorPrefix: e.transformedOperation.id
|
|
91
103
|
}, null, 8, ["value", "anchorPrefix"]),
|
|
92
|
-
|
|
93
|
-
|
|
104
|
+
r(T, {
|
|
105
|
+
parameters: e.transformedOperation.information.parameters,
|
|
106
|
+
requestBody: e.transformedOperation.information.requestBody,
|
|
94
107
|
schemas: e.schemas,
|
|
95
|
-
"onUpdate:modelValue":
|
|
96
|
-
}, null, 8, ["
|
|
97
|
-
|
|
98
|
-
|
|
108
|
+
"onUpdate:modelValue": p
|
|
109
|
+
}, null, 8, ["parameters", "requestBody", "schemas"]),
|
|
110
|
+
r(D, {
|
|
111
|
+
responses: e.transformedOperation.information.responses,
|
|
99
112
|
schemas: e.schemas
|
|
100
|
-
}, null, 8, ["
|
|
101
|
-
|
|
102
|
-
default:
|
|
103
|
-
e.
|
|
113
|
+
}, null, 8, ["responses", "schemas"]),
|
|
114
|
+
r(o(l), null, {
|
|
115
|
+
default: a(() => [
|
|
116
|
+
e.transformedOperation.information.callbacks ? (n(), t(N, {
|
|
104
117
|
key: 0,
|
|
105
|
-
callbacks: e.
|
|
118
|
+
callbacks: e.transformedOperation.information.callbacks,
|
|
106
119
|
collection: e.collection,
|
|
107
120
|
schemas: e.schemas
|
|
108
|
-
}, null, 8, ["callbacks", "collection", "schemas"])) :
|
|
121
|
+
}, null, 8, ["callbacks", "collection", "schemas"])) : i("", !0)
|
|
109
122
|
]),
|
|
110
123
|
_: 1
|
|
111
124
|
})
|
|
@@ -113,42 +126,45 @@ const j = { class: "operation-details" }, F = { class: "examples" }, de = /* @__
|
|
|
113
126
|
]),
|
|
114
127
|
_: 1
|
|
115
128
|
}),
|
|
116
|
-
|
|
117
|
-
default:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
default:
|
|
121
|
-
|
|
129
|
+
r(o(b), null, {
|
|
130
|
+
default: a(() => [
|
|
131
|
+
s("div", z, [
|
|
132
|
+
r(o(l), null, {
|
|
133
|
+
default: a(() => [
|
|
134
|
+
r(o(H), {
|
|
135
|
+
request: e.request,
|
|
136
|
+
method: e.transformedOperation.httpVerb,
|
|
122
137
|
collection: e.collection,
|
|
123
138
|
fallback: "",
|
|
124
|
-
operation: e.
|
|
139
|
+
operation: e.transformedOperation.information,
|
|
125
140
|
server: e.server,
|
|
126
|
-
transformedOperation: e.transformedOperation,
|
|
127
141
|
schemas: e.schemas,
|
|
128
|
-
"onUpdate:modelValue":
|
|
129
|
-
}, {
|
|
130
|
-
header:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
path: e.transformedOperation.path
|
|
137
|
-
}, null, 8, ["deprecated", "path"])
|
|
138
|
-
];
|
|
139
|
-
}),
|
|
140
|
-
footer: r(() => [
|
|
141
|
-
a(o(_), { operation: e.operation }, null, 8, ["operation"])
|
|
142
|
+
"onUpdate:modelValue": p
|
|
143
|
+
}, v({
|
|
144
|
+
header: a(() => [
|
|
145
|
+
r(B, {
|
|
146
|
+
class: "example-path",
|
|
147
|
+
deprecated: e.transformedOperation.information.deprecated,
|
|
148
|
+
path: e.transformedOperation.path
|
|
149
|
+
}, null, 8, ["deprecated", "path"])
|
|
142
150
|
]),
|
|
143
|
-
_:
|
|
144
|
-
},
|
|
151
|
+
_: 2
|
|
152
|
+
}, [
|
|
153
|
+
e.request ? {
|
|
154
|
+
name: "footer",
|
|
155
|
+
fn: a(() => [
|
|
156
|
+
r(o(M), { operation: e.request }, null, 8, ["operation"])
|
|
157
|
+
]),
|
|
158
|
+
key: "0"
|
|
159
|
+
} : void 0
|
|
160
|
+
]), 1032, ["request", "method", "collection", "operation", "server", "schemas"])
|
|
145
161
|
]),
|
|
146
162
|
_: 1
|
|
147
163
|
}),
|
|
148
|
-
|
|
149
|
-
default:
|
|
150
|
-
|
|
151
|
-
responses: e.
|
|
164
|
+
r(o(l), null, {
|
|
165
|
+
default: a(() => [
|
|
166
|
+
r(o(U), {
|
|
167
|
+
responses: e.transformedOperation.information.responses,
|
|
152
168
|
style: { "margin-top": "12px" }
|
|
153
169
|
}, null, 8, ["responses"])
|
|
154
170
|
]),
|
|
@@ -170,5 +186,5 @@ const j = { class: "operation-details" }, F = { class: "examples" }, de = /* @__
|
|
|
170
186
|
}
|
|
171
187
|
});
|
|
172
188
|
export {
|
|
173
|
-
|
|
189
|
+
pe as default
|
|
174
190
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SearchModal.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1d306466"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -5,7 +5,7 @@ import { nanoid as oe } from "nanoid";
|
|
|
5
5
|
import { lazyBus as ae } from "../../components/Content/Lazy/lazyBus.js";
|
|
6
6
|
import se from "../../components/Sidebar/SidebarHttpBadge.vue.js";
|
|
7
7
|
import { useSearchIndex as ne } from "./useSearchIndex.js";
|
|
8
|
-
import { useSidebar as re } from "
|
|
8
|
+
import { useSidebar as re } from "../sidebar/hooks/useSidebar.js";
|
|
9
9
|
const le = { class: "sr-only" }, ie = { class: "sr-only" }, ve = /* @__PURE__ */ Y({
|
|
10
10
|
__name: "SearchModal",
|
|
11
11
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSearchIndex.d.ts","sourceRoot":"","sources":["../../../src/features/Search/useSearchIndex.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSearchIndex.d.ts","sourceRoot":"","sources":["../../../src/features/Search/useSearchIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,KAAK,CAAA;AAGpD,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,sBAAsB,CAAA;AAKlE,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAA;AAEvE,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,QAAQ,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,oBAAoB,CAAA;CACjC,CAAA;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAC7B,aAAa,GACd,EAAE;IACD,aAAa,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;CACzB;uBA0ByB,IAAI;sBAbL,IAAI;;;;;EAsK5B"}
|