@scalar/api-reference 1.28.32 → 1.28.33
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 +34 -0
- package/dist/browser/standalone.js +5699 -5511
- package/dist/browser/webpack-stats.json +1 -1
- 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/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +51 -50
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +142 -138
- package/dist/components/Section/SectionHeader.vue.js +2 -2
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.d.ts.map +1 -1
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.js +30 -21
- package/dist/features/ApiClientModal/useApiClient.d.ts +128 -48
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +33 -28
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +15 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";AAwbA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClientLibraries.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const i = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b6a2d2e5"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
i as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AA8RA,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA6MF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClientSelector.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-502b1c76"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAyRA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAiBhD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AAyDJ,iBAAS,cAAc;WA+NT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA8BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA7TR,QAAQ,GAAG,SAAS;6EAoU/B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./Content.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1a04c6b2"]]);
|
|
6
6
|
export {
|
|
7
7
|
_ as default
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, computed as
|
|
1
|
+
import { defineComponent as F, computed as m, createElementBlock as i, openBlock as a, Fragment as u, createStaticVNode as G, createElementVNode as A, renderSlot as f, createBlock as t, createCommentVNode as l, unref as r, withCtx as V, createVNode as v, normalizeClass as I, renderList as O } from "vue";
|
|
2
2
|
import { useWorkspace as R, useActiveEntities as D } from "@scalar/api-client/store";
|
|
3
3
|
import { RequestAuth as H } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
|
|
4
4
|
import { ScalarErrorBoundary as J } from "@scalar/components";
|
|
@@ -9,17 +9,17 @@ import Q from "./Lazy/Loading.vue.js";
|
|
|
9
9
|
import T from "./Introduction/Introduction.vue.js";
|
|
10
10
|
import X from "../../features/BaseUrl/BaseUrl.vue.js";
|
|
11
11
|
import Y from "./ClientLibraries/ClientLibraries.vue.js";
|
|
12
|
-
import
|
|
12
|
+
import E from "./Tag/TagList.vue.js";
|
|
13
13
|
import Z from "../../features/Operation/Webhooks.vue.js";
|
|
14
14
|
import _ from "./Models/ModelsAccordion.vue.js";
|
|
15
15
|
import x from "./Models/Models.vue.js";
|
|
16
16
|
import { useSidebar as ee } from "../../hooks/useSidebar.js";
|
|
17
|
-
import { getModels as
|
|
17
|
+
import { getModels as S } from "../../helpers/getModels.js";
|
|
18
18
|
import { hasModels as re } from "../../helpers/hasModels.js";
|
|
19
|
-
const se = { class: "narrow-references-container" },
|
|
19
|
+
const se = { class: "narrow-references-container" }, ae = {
|
|
20
20
|
key: 0,
|
|
21
|
-
class: "scalar-reference-intro-server scalar-client introduction-card-item
|
|
22
|
-
},
|
|
21
|
+
class: "scalar-reference-intro-server scalar-client introduction-card-item text-sm [--scalar-address-bar-height:0px]"
|
|
22
|
+
}, te = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "scalar-reference-intro-auth scalar-client introduction-card-item"
|
|
25
25
|
}, we = /* @__PURE__ */ F({
|
|
@@ -28,20 +28,20 @@ const se = { class: "narrow-references-container" }, te = {
|
|
|
28
28
|
parsedSpec: {},
|
|
29
29
|
layout: { default: "modern" }
|
|
30
30
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
31
|
+
setup(U) {
|
|
32
|
+
const $ = U, p = P(), { hideModels: M } = ee(), { collections: B, securitySchemes: N, servers: y } = R(), {
|
|
33
33
|
activeCollection: W,
|
|
34
34
|
activeEnvVariables: L,
|
|
35
35
|
activeEnvironment: j,
|
|
36
36
|
activeWorkspace: h
|
|
37
|
-
} = D(), s =
|
|
38
|
-
if (
|
|
39
|
-
const e = B[K(
|
|
37
|
+
} = D(), s = m(() => {
|
|
38
|
+
if (p.value.slug) {
|
|
39
|
+
const e = B[K(p.value.slug)];
|
|
40
40
|
if (e)
|
|
41
41
|
return e;
|
|
42
42
|
}
|
|
43
43
|
return W.value;
|
|
44
|
-
}),
|
|
44
|
+
}), c = m(() => {
|
|
45
45
|
if (s.value) {
|
|
46
46
|
if (s.value.selectedServerUid) {
|
|
47
47
|
const e = y[s.value.selectedServerUid];
|
|
@@ -50,53 +50,54 @@ const se = { class: "narrow-references-container" }, te = {
|
|
|
50
50
|
}
|
|
51
51
|
return y[s.value.servers[0]];
|
|
52
52
|
}
|
|
53
|
-
}), q =
|
|
54
|
-
() =>
|
|
53
|
+
}), q = m(
|
|
54
|
+
() => $.layout === "classic" ? "after" : "aside"
|
|
55
55
|
);
|
|
56
56
|
return (e, k) => {
|
|
57
|
-
var
|
|
58
|
-
return
|
|
59
|
-
k[0] || (k[0] = G('<div class="section-flare" data-v-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
s.value ? (
|
|
57
|
+
var b, g, C, w;
|
|
58
|
+
return a(), i(u, null, [
|
|
59
|
+
k[0] || (k[0] = G('<div class="section-flare" data-v-1a04c6b2><div class="section-flare-item" data-v-1a04c6b2></div><div class="section-flare-item" data-v-1a04c6b2></div><div class="section-flare-item" data-v-1a04c6b2></div><div class="section-flare-item" data-v-1a04c6b2></div><div class="section-flare-item" data-v-1a04c6b2></div><div class="section-flare-item" data-v-1a04c6b2></div><div class="section-flare-item" data-v-1a04c6b2></div><div class="section-flare-item" data-v-1a04c6b2></div></div>', 1)),
|
|
60
|
+
A("div", se, [
|
|
61
|
+
f(e.$slots, "start", {}, void 0, !0),
|
|
62
|
+
s.value ? (a(), t(r(Q), {
|
|
63
63
|
key: 0,
|
|
64
64
|
collection: s.value,
|
|
65
65
|
layout: e.layout,
|
|
66
66
|
parsedSpec: e.parsedSpec,
|
|
67
|
-
server:
|
|
68
|
-
}, null, 8, ["collection", "layout", "parsedSpec", "server"])) :
|
|
69
|
-
(
|
|
67
|
+
server: c.value
|
|
68
|
+
}, null, 8, ["collection", "layout", "parsedSpec", "server"])) : l("", !0),
|
|
69
|
+
(g = (b = e.parsedSpec) == null ? void 0 : b.info) != null && g.title || (w = (C = e.parsedSpec) == null ? void 0 : C.info) != null && w.description ? (a(), t(r(T), {
|
|
70
70
|
key: 1,
|
|
71
71
|
info: e.parsedSpec.info,
|
|
72
72
|
parsedSpec: e.parsedSpec
|
|
73
73
|
}, {
|
|
74
|
-
[q.value]:
|
|
74
|
+
[q.value]: V(() => [
|
|
75
75
|
v(r(J), null, {
|
|
76
|
-
default:
|
|
76
|
+
default: V(() => {
|
|
77
77
|
var n, o, d;
|
|
78
78
|
return [
|
|
79
|
-
|
|
79
|
+
A("div", {
|
|
80
80
|
class: I(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
|
|
81
81
|
}, [
|
|
82
|
-
(o = (n = s.value) == null ? void 0 : n.servers) != null && o.length ? (
|
|
82
|
+
(o = (n = s.value) == null ? void 0 : n.servers) != null && o.length ? (a(), i("div", ae, [
|
|
83
83
|
v(r(X), {
|
|
84
84
|
collection: s.value,
|
|
85
|
-
server:
|
|
85
|
+
server: c.value
|
|
86
86
|
}, null, 8, ["collection", "server"])
|
|
87
|
-
])) :
|
|
88
|
-
s.value && r(h) && Object.keys(r(N) ?? {}).length ? (
|
|
87
|
+
])) : l("", !0),
|
|
88
|
+
s.value && r(h) && Object.keys(r(N) ?? {}).length ? (a(), i("div", te, [
|
|
89
89
|
v(r(H), {
|
|
90
90
|
collection: s.value,
|
|
91
91
|
envVariables: r(L),
|
|
92
92
|
environment: r(j),
|
|
93
93
|
layout: "reference",
|
|
94
|
+
persistAuth: r(p).persistAuth,
|
|
94
95
|
selectedSecuritySchemeUids: ((d = s.value) == null ? void 0 : d.selectedSecuritySchemeUids) ?? [],
|
|
95
|
-
server:
|
|
96
|
+
server: c.value,
|
|
96
97
|
title: "Authentication",
|
|
97
98
|
workspace: r(h)
|
|
98
|
-
}, null, 8, ["collection", "envVariables", "environment", "selectedSecuritySchemeUids", "server", "workspace"])
|
|
99
|
-
])) :
|
|
99
|
+
}, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
|
|
100
|
+
])) : l("", !0),
|
|
100
101
|
v(r(Y), { class: "introduction-card-item scalar-reference-intro-clients" })
|
|
101
102
|
], 2)
|
|
102
103
|
];
|
|
@@ -105,42 +106,42 @@ const se = { class: "narrow-references-container" }, te = {
|
|
|
105
106
|
})
|
|
106
107
|
]),
|
|
107
108
|
_: 2
|
|
108
|
-
}, 1032, ["info", "parsedSpec"])) :
|
|
109
|
-
e.parsedSpec.tags && s.value ? (
|
|
110
|
-
e.parsedSpec["x-tagGroups"] ? (
|
|
109
|
+
}, 1032, ["info", "parsedSpec"])) : f(e.$slots, "empty-state", { key: 2 }, void 0, !0),
|
|
110
|
+
e.parsedSpec.tags && s.value ? (a(), i(u, { key: 3 }, [
|
|
111
|
+
e.parsedSpec["x-tagGroups"] ? (a(!0), i(u, { key: 0 }, O(e.parsedSpec["x-tagGroups"], (n) => (a(), t(r(E), {
|
|
111
112
|
key: n.name,
|
|
112
113
|
collection: s.value,
|
|
113
114
|
layout: e.layout,
|
|
114
|
-
server:
|
|
115
|
+
server: c.value,
|
|
115
116
|
spec: e.parsedSpec,
|
|
116
117
|
tags: n.tags.map((o) => {
|
|
117
118
|
var d;
|
|
118
119
|
return (d = e.parsedSpec.tags) == null ? void 0 : d.find((z) => z.name === o);
|
|
119
120
|
}).filter((o) => !!o)
|
|
120
|
-
}, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (
|
|
121
|
+
}, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (a(), t(r(E), {
|
|
121
122
|
key: 1,
|
|
122
123
|
collection: s.value,
|
|
123
124
|
layout: e.layout,
|
|
124
|
-
schemas: r(
|
|
125
|
-
server:
|
|
125
|
+
schemas: r(S)(e.parsedSpec),
|
|
126
|
+
server: c.value,
|
|
126
127
|
spec: e.parsedSpec,
|
|
127
128
|
tags: e.parsedSpec.tags
|
|
128
129
|
}, null, 8, ["collection", "layout", "schemas", "server", "spec", "tags"]))
|
|
129
|
-
], 64)) :
|
|
130
|
-
e.parsedSpec.webhooks ? (
|
|
130
|
+
], 64)) : l("", !0),
|
|
131
|
+
e.parsedSpec.webhooks ? (a(), t(r(Z), {
|
|
131
132
|
key: 4,
|
|
132
133
|
webhooks: e.parsedSpec.webhooks
|
|
133
|
-
}, null, 8, ["webhooks"])) :
|
|
134
|
-
r(re)(e.parsedSpec) && !r(
|
|
135
|
-
e.layout === "classic" ? (
|
|
134
|
+
}, null, 8, ["webhooks"])) : l("", !0),
|
|
135
|
+
r(re)(e.parsedSpec) && !r(M) ? (a(), i(u, { key: 5 }, [
|
|
136
|
+
e.layout === "classic" ? (a(), t(r(_), {
|
|
136
137
|
key: 0,
|
|
137
|
-
schemas: r(
|
|
138
|
-
}, null, 8, ["schemas"])) : (
|
|
138
|
+
schemas: r(S)(e.parsedSpec)
|
|
139
|
+
}, null, 8, ["schemas"])) : (a(), t(r(x), {
|
|
139
140
|
key: 1,
|
|
140
|
-
schemas: r(
|
|
141
|
+
schemas: r(S)(e.parsedSpec)
|
|
141
142
|
}, null, 8, ["schemas"]))
|
|
142
|
-
], 64)) :
|
|
143
|
-
|
|
143
|
+
], 64)) : l("", !0),
|
|
144
|
+
f(e.$slots, "end", {}, void 0, !0)
|
|
144
145
|
])
|
|
145
146
|
], 64);
|
|
146
147
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAmSA,OAAO,KAAK,EAEV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAY9B,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;AA8DF,iBAAS,cAAc;WA+TT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaPropertyHeading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-c69012d3"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|