@scalar/api-reference 1.25.72 → 1.25.74
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 +45 -0
- package/dist/browser/standalone.js +9830 -9835
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- 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 +3 -3
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +32 -32
- 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 +10 -11
- 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 +12 -12
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +19 -19
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +30 -29
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +9 -8
- package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumn.vue.js +4 -4
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
- package/dist/components/Section/SectionHeader.vue.d.ts +2 -2
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue2.js +16 -14
- package/dist/components/ShowMoreButton.vue.js +2 -2
- 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 +3 -2
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +2 -0
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +3 -3
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +5 -5
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +2 -2
- package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +3 -3
- package/dist/features/Operation/components/ParameterHeaders.vue.js +3 -3
- package/dist/features/Operation/components/ParameterHeaders.vue2.js +7 -7
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +3 -4
- package/dist/features/Operation/components/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
- 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/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +95 -95
- package/dist/helpers/getExampleCode.d.ts +1 -1
- package/dist/helpers/getExampleCode.d.ts.map +1 -1
- package/dist/helpers/getExampleCode.js +0 -1
- package/dist/index.js +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +2 -2
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +3 -3
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +12 -12
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { ScalarMarkdown as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import g from "../../../components/Section/SectionColumns.vue.js";
|
|
9
|
-
import f from "../../../components/Section/SectionColumn.vue.js";
|
|
1
|
+
import { defineComponent as c, openBlock as m, createBlock as d, unref as r, withCtx as t, createVNode as e, createTextVNode as u, createCommentVNode as _, createElementVNode as a, normalizeClass as h, toDisplayString as S } from "vue";
|
|
2
|
+
import C from "../../../components/OperationPath.vue.js";
|
|
3
|
+
import { ScalarMarkdown as v, ScalarErrorBoundary as f } from "@scalar/components";
|
|
4
|
+
import k from "../components/OperationParameters.vue.js";
|
|
5
|
+
import y from "../components/OperationResponses.vue.js";
|
|
6
|
+
import B from "../../../components/Section/Section.vue.js";
|
|
7
|
+
import g from "../../../components/Section/SectionContent.vue.js";
|
|
10
8
|
import E from "../../../components/Badge/Badge.vue.js";
|
|
11
9
|
import N from "../../../components/Section/SectionHeader.vue.js";
|
|
12
10
|
import V from "../../../components/Anchor/Anchor.vue.js";
|
|
13
|
-
import b from "
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
11
|
+
import b from "../../../components/Section/SectionColumns.vue.js";
|
|
12
|
+
import s from "../../../components/Section/SectionColumn.vue.js";
|
|
13
|
+
import w from "../../ExampleRequest/ExampleRequest.vue.js";
|
|
14
|
+
import R from "../../TestRequestButton/TestRequestButton.vue.js";
|
|
15
|
+
import q from "../../ExampleResponses/ExampleResponses.vue.js";
|
|
16
|
+
const D = { class: "operation-details" }, M = { class: "examples" }, W = /* @__PURE__ */ c({
|
|
17
17
|
__name: "ModernLayout",
|
|
18
18
|
props: {
|
|
19
19
|
id: {},
|
|
20
20
|
operation: {}
|
|
21
21
|
},
|
|
22
|
-
setup(
|
|
23
|
-
return (o,
|
|
22
|
+
setup(T) {
|
|
23
|
+
return (o, n) => (m(), d(r(B), {
|
|
24
24
|
id: o.id,
|
|
25
25
|
label: o.operation.name
|
|
26
26
|
}, {
|
|
27
27
|
default: t(() => [
|
|
28
|
-
e(r(
|
|
29
|
-
default: t(() =>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
28
|
+
e(r(g), null, {
|
|
29
|
+
default: t(() => {
|
|
30
|
+
var i, p;
|
|
31
|
+
return [
|
|
32
|
+
(i = o.operation.information) != null && i.deprecated ? (m(), d(r(E), { key: 0 }, {
|
|
33
|
+
default: t(() => n[0] || (n[0] = [
|
|
34
|
+
u(" Deprecated ")
|
|
35
|
+
])),
|
|
36
|
+
_: 1
|
|
37
|
+
})) : _("", !0),
|
|
38
|
+
a("div", {
|
|
39
|
+
class: h((p = o.operation.information) != null && p.deprecated ? "deprecated" : "")
|
|
40
|
+
}, [
|
|
41
|
+
e(r(N), { level: 3 }, {
|
|
42
|
+
default: t(() => [
|
|
43
|
+
e(r(V), {
|
|
44
|
+
id: o.id ?? ""
|
|
45
|
+
}, {
|
|
46
|
+
default: t(() => [
|
|
47
|
+
u(S(o.operation.name), 1)
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
}, 8, ["id"])
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
})
|
|
54
|
+
], 2),
|
|
55
|
+
e(r(b), null, {
|
|
56
|
+
default: t(() => [
|
|
57
|
+
e(r(s), null, {
|
|
58
|
+
default: t(() => [
|
|
59
|
+
a("div", D, [
|
|
60
|
+
e(r(v), {
|
|
61
|
+
value: o.operation.description,
|
|
62
|
+
withImages: ""
|
|
63
|
+
}, null, 8, ["value"]),
|
|
64
|
+
e(k, { operation: o.operation }, null, 8, ["operation"]),
|
|
65
|
+
e(y, { operation: o.operation }, null, 8, ["operation"])
|
|
66
|
+
])
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}),
|
|
70
|
+
e(r(s), null, {
|
|
71
|
+
default: t(() => [
|
|
72
|
+
a("div", M, [
|
|
73
|
+
e(r(f), null, {
|
|
46
74
|
default: t(() => [
|
|
47
|
-
e(r(
|
|
48
|
-
|
|
75
|
+
e(r(w), {
|
|
76
|
+
fallback: "",
|
|
77
|
+
operation: o.operation
|
|
49
78
|
}, {
|
|
50
|
-
|
|
51
|
-
|
|
79
|
+
header: t(() => {
|
|
80
|
+
var l;
|
|
81
|
+
return [
|
|
82
|
+
e(C, {
|
|
83
|
+
class: "example-path",
|
|
84
|
+
deprecated: (l = o.operation.information) == null ? void 0 : l.deprecated,
|
|
85
|
+
path: o.operation.path
|
|
86
|
+
}, null, 8, ["deprecated", "path"])
|
|
87
|
+
];
|
|
88
|
+
}),
|
|
89
|
+
footer: t(() => [
|
|
90
|
+
e(r(R), { operation: o.operation }, null, 8, ["operation"])
|
|
52
91
|
]),
|
|
53
92
|
_: 1
|
|
54
|
-
}, 8, ["
|
|
93
|
+
}, 8, ["operation"])
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
}),
|
|
97
|
+
e(r(f), null, {
|
|
98
|
+
default: t(() => [
|
|
99
|
+
e(r(q), {
|
|
100
|
+
operation: o.operation,
|
|
101
|
+
style: { "margin-top": "12px" }
|
|
102
|
+
}, null, 8, ["operation"])
|
|
55
103
|
]),
|
|
56
104
|
_: 1
|
|
57
105
|
})
|
|
58
|
-
], 2),
|
|
59
|
-
n("div", q, [
|
|
60
|
-
e(r(C), {
|
|
61
|
-
value: o.operation.description,
|
|
62
|
-
withImages: ""
|
|
63
|
-
}, null, 8, ["value"]),
|
|
64
|
-
e(v, { operation: o.operation }, null, 8, ["operation"]),
|
|
65
|
-
e(k, { operation: o.operation }, null, 8, ["operation"])
|
|
66
106
|
])
|
|
67
|
-
]
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
default: t(() => [
|
|
76
|
-
e(r(b), {
|
|
77
|
-
fallback: "",
|
|
78
|
-
operation: o.operation
|
|
79
|
-
}, {
|
|
80
|
-
header: t(() => {
|
|
81
|
-
var a;
|
|
82
|
-
return [
|
|
83
|
-
e(S, {
|
|
84
|
-
class: "example-path",
|
|
85
|
-
deprecated: (a = o.operation.information) == null ? void 0 : a.deprecated,
|
|
86
|
-
path: o.operation.path
|
|
87
|
-
}, null, 8, ["deprecated", "path"])
|
|
88
|
-
];
|
|
89
|
-
}),
|
|
90
|
-
footer: t(() => [
|
|
91
|
-
e(r(w), { operation: o.operation }, null, 8, ["operation"])
|
|
92
|
-
]),
|
|
93
|
-
_: 1
|
|
94
|
-
}, 8, ["operation"])
|
|
95
|
-
]),
|
|
96
|
-
_: 1
|
|
97
|
-
}),
|
|
98
|
-
e(r(u), null, {
|
|
99
|
-
default: t(() => [
|
|
100
|
-
e(r(R), {
|
|
101
|
-
operation: o.operation,
|
|
102
|
-
style: { "margin-top": "12px" }
|
|
103
|
-
}, null, 8, ["operation"])
|
|
104
|
-
]),
|
|
105
|
-
_: 1
|
|
106
|
-
})
|
|
107
|
-
])
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
})
|
|
111
|
-
]),
|
|
112
|
-
_: 1
|
|
113
|
-
})
|
|
114
|
-
]),
|
|
107
|
+
]),
|
|
108
|
+
_: 1
|
|
109
|
+
})
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
})
|
|
113
|
+
];
|
|
114
|
+
}),
|
|
115
115
|
_: 1
|
|
116
116
|
})
|
|
117
117
|
]),
|
|
@@ -120,5 +120,5 @@ const q = { class: "operation-details" }, D = { class: "examples" }, U = /* @__P
|
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
export {
|
|
123
|
-
|
|
123
|
+
W as default
|
|
124
124
|
};
|
|
@@ -5,5 +5,5 @@ export type ClientId<T extends SnippetzTargetId> = HttpSnippetLiteClientId | Sni
|
|
|
5
5
|
/**
|
|
6
6
|
* Returns a code example for given HAR request
|
|
7
7
|
*/
|
|
8
|
-
export declare function getExampleCode<T extends SnippetzTargetId>(request: Request, target: TargetId, client: ClientId<T>): Promise<string>;
|
|
8
|
+
export declare function getExampleCode<T extends SnippetzTargetId>(request: Request, target: TargetId, client: ClientId<T>): Promise<string | undefined>;
|
|
9
9
|
//# sourceMappingURL=getExampleCode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getExampleCode.d.ts","sourceRoot":"","sources":["../../src/helpers/getExampleCode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,QAAQ,IAAI,gBAAgB,EACjC,KAAK,QAAQ,IAAI,gBAAgB,EAElC,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAEL,KAAK,QAAQ,IAAI,uBAAuB,EACxC,KAAK,QAAQ,IAAI,uBAAuB,EACzC,MAAM,kBAAkB,CAAA;AAEzB,MAAM,MAAM,QAAQ,GAAG,uBAAuB,GAAG,gBAAgB,CAAA;AACjE,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,gBAAgB,IAC3C,uBAAuB,GACvB,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAEvB;;GAEG;AACH,wBAAsB,cAAc,CAAC,CAAC,SAAS,gBAAgB,EAC7D,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"getExampleCode.d.ts","sourceRoot":"","sources":["../../src/helpers/getExampleCode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,QAAQ,IAAI,gBAAgB,EACjC,KAAK,QAAQ,IAAI,gBAAgB,EAElC,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAEL,KAAK,QAAQ,IAAI,uBAAuB,EACxC,KAAK,QAAQ,IAAI,uBAAuB,EACzC,MAAM,kBAAkB,CAAA;AAEzB,MAAM,MAAM,QAAQ,GAAG,uBAAuB,GAAG,gBAAgB,CAAA;AACjE,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,gBAAgB,IAC3C,uBAAuB,GACvB,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAEvB;;GAEG;AACH,wBAAsB,cAAc,CAAC,CAAC,SAAS,gBAAgB,EAC7D,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,+BAyCpB"}
|