@scalar/api-reference 1.28.30 → 1.28.32
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 +33 -0
- package/dist/blocks/constants.js +2 -4
- package/dist/browser/standalone.js +14161 -14196
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue2.js +2 -2
- package/dist/components/ApiReference.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +17 -14
- package/dist/components/Badge/Badge.vue.js +2 -2
- package/dist/components/Card/Card.vue.js +2 -2
- package/dist/components/Card/CardContent.vue2.js +2 -2
- package/dist/components/Card/CardFooter.vue2.js +2 -2
- package/dist/components/Card/CardHeader.vue2.js +2 -2
- package/dist/components/Card/CardTab.vue2.js +2 -2
- package/dist/components/Card/CardTabHeader.vue2.js +6 -6
- package/dist/components/ClassicHeader.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +1 -1
- package/dist/components/Content/Content.vue2.js +1 -1
- package/dist/components/Content/Introduction/Description.vue2.js +5 -5
- package/dist/components/Content/Introduction/Introduction.vue2.js +15 -15
- package/dist/components/Content/Lazy/Loading.vue.js +7 -7
- package/dist/components/Content/Models/Models.vue2.js +7 -7
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +13 -13
- package/dist/components/Content/Schema/Schema.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +7 -7
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +7 -7
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +9 -9
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +1 -4
- 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 +148 -148
- package/dist/components/Content/Tag/OperationsList.vue2.js +5 -5
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +9 -9
- package/dist/components/Content/Tag/Tag.vue.js +5 -5
- package/dist/components/Content/Tag/TagAccordion.vue2.js +4 -4
- package/dist/components/Content/Tag/TagList.vue.js +1 -1
- package/dist/components/Content/Tag/TagSection.vue2.js +1 -1
- package/dist/components/DocumentSelector/DocumentSelector.vue.js +5 -5
- package/dist/components/GettingStarted.vue2.js +3 -3
- package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
- package/dist/components/IntersectionObserver.vue.js +2 -2
- package/dist/components/Layouts/ClassicLayout.vue.js +5 -5
- package/dist/components/Layouts/Layouts.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +5 -5
- package/dist/components/LoadingSkeleton.vue2.js +2 -2
- package/dist/components/MobileHeader.vue2.js +5 -5
- package/dist/components/OperationPath.vue2.js +4 -4
- package/dist/components/ScreenReader.vue2.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +4 -4
- package/dist/components/Section/Section.vue2.js +2 -2
- package/dist/components/Section/SectionAccordion.vue2.js +1 -1
- package/dist/components/Section/SectionColumn.vue.js +2 -2
- package/dist/components/Section/SectionColumns.vue.js +2 -2
- package/dist/components/Section/SectionContainer.vue.js +2 -2
- package/dist/components/Section/SectionContainerAccordion.vue2.js +2 -2
- package/dist/components/Section/SectionContent.vue2.js +1 -1
- package/dist/components/Section/SectionHeader.vue2.js +1 -1
- package/dist/components/Section/SectionHeaderTag.vue2.js +2 -2
- package/dist/components/ShowMoreButton.vue2.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +5 -5
- package/dist/components/Sidebar/SidebarGroup.vue2.js +2 -2
- package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +2 -2
- package/dist/components/SingleApiReference.vue.js +5 -5
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.js +5 -5
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -0
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +51 -29
- package/dist/features/ApiClientModal/useApiClient.d.ts +4 -4
- package/dist/features/BaseUrl/BaseUrl.vue.js +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue2.js +5 -5
- package/dist/features/ExampleRequest/ExamplePicker.vue2.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +12 -12
- package/dist/features/ExampleRequest/TextSelect.vue.js +6 -6
- package/dist/features/ExampleResponses/ExampleResponse.vue2.js +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +23 -23
- package/dist/features/Operation/Operation.vue.js +3 -3
- package/dist/features/Operation/Webhooks.vue2.js +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +3 -3
- package/dist/features/Operation/components/OperationParameters.vue.js +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +2 -2
- package/dist/features/Operation/components/ParameterHeaders.vue2.js +1 -1
- package/dist/features/Operation/components/ParameterList.vue2.js +4 -4
- package/dist/features/Operation/components/ParameterListItem.vue2.js +17 -17
- package/dist/features/Operation/components/RequestBody.vue2.js +5 -5
- package/dist/features/Operation/components/Webhook.vue2.js +5 -5
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +20 -20
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +3 -3
- package/dist/features/Search/SearchButton.vue2.js +4 -4
- package/dist/features/Search/SearchModal.vue2.js +1 -1
- package/dist/features/TestRequestButton/TestRequestButton.vue2.js +5 -5
- package/dist/hooks/useNavState.js +1 -1
- package/dist/hooks/useSidebar.js +13 -13
- package/dist/index.js +21 -21
- package/dist/stores/useHttpClientStore.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +16 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, useId as O, computed as S,
|
|
1
|
+
import { defineComponent as b, useId as O, computed as S, createBlock as p, openBlock as m, unref as e, withCtx as a, createVNode as r, createCommentVNode as y, createElementVNode as t, normalizeClass as d, createTextVNode as f, toDisplayString as u } from "vue";
|
|
2
2
|
import { ScalarMarkdown as C, ScalarErrorBoundary as c } from "@scalar/components";
|
|
3
3
|
import k from "../../../components/OperationPath.vue.js";
|
|
4
4
|
import { useConfig as B } from "../../../hooks/useConfig.js";
|
|
@@ -28,7 +28,7 @@ const z = { class: "operation-details" }, A = { class: "examples" }, ie = /* @__
|
|
|
28
28
|
},
|
|
29
29
|
setup(n) {
|
|
30
30
|
const i = O(), v = B(), l = S(() => n.operation.summary || n.operation.path);
|
|
31
|
-
return (o, P) => (
|
|
31
|
+
return (o, P) => (m(), p(e(w), {
|
|
32
32
|
id: o.id,
|
|
33
33
|
"aria-labelledby": e(i),
|
|
34
34
|
label: l.value,
|
|
@@ -39,7 +39,7 @@ const z = { class: "operation-details" }, A = { class: "examples" }, ie = /* @__
|
|
|
39
39
|
loading: e(v).isLoading
|
|
40
40
|
}, {
|
|
41
41
|
default: a(() => [
|
|
42
|
-
e(h)(o.operation) ? (
|
|
42
|
+
e(h)(o.operation) ? (m(), p(e(R), {
|
|
43
43
|
key: 0,
|
|
44
44
|
class: d(e(_)(o.operation))
|
|
45
45
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as S, ref as b, watch as w, nextTick as v, onMounted as K, onBeforeUnmount as g,
|
|
1
|
+
import { defineComponent as S, ref as b, watch as w, nextTick as v, onMounted as K, onBeforeUnmount as g, createElementBlock as a, openBlock as n, Fragment as r, createElementVNode as s, createVNode as p, normalizeClass as C, unref as l, createTextVNode as u, toDisplayString as M } from "vue";
|
|
2
2
|
import { useModal as B } from "@scalar/components";
|
|
3
3
|
import { ScalarIconMagnifyingGlass as E } from "@scalar/icons";
|
|
4
4
|
import H from "./SearchModal.vue.js";
|
|
@@ -27,7 +27,7 @@ const N = { class: "sidebar-search-input" }, T = { class: "sidebar-search-shortc
|
|
|
27
27
|
function k() {
|
|
28
28
|
t.show();
|
|
29
29
|
}
|
|
30
|
-
return (o, e) => (
|
|
30
|
+
return (o, e) => (n(), a(r, null, [
|
|
31
31
|
s("button", {
|
|
32
32
|
ref_key: "button",
|
|
33
33
|
ref: i,
|
|
@@ -49,9 +49,9 @@ const N = { class: "sidebar-search-input" }, T = { class: "sidebar-search-shortc
|
|
|
49
49
|
s("span", T, [
|
|
50
50
|
e[2] || (e[2] = s("span", { class: "sr-only" }, "Keyboard Shortcut:", -1)),
|
|
51
51
|
s("kbd", V, [
|
|
52
|
-
l(m)() ? (
|
|
52
|
+
l(m)() ? (n(), a(r, { key: 0 }, [
|
|
53
53
|
u("⌘")
|
|
54
|
-
], 64)) : (
|
|
54
|
+
], 64)) : (n(), a(r, { key: 1 }, [
|
|
55
55
|
e[0] || (e[0] = s("span", { class: "sr-only" }, "CTRL", -1)),
|
|
56
56
|
e[1] || (e[1] = s("span", { "aria-hidden": "true" }, "⌃", -1))
|
|
57
57
|
], 64)),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Y, toRef as A, ref as W, watch as x,
|
|
1
|
+
import { defineComponent as Y, toRef as A, ref as W, watch as x, createBlock as $, openBlock as h, unref as s, withCtx as l, createElementVNode as n, createVNode as g, withKeys as b, withModifiers as R, isRef as j, createElementBlock as y, Fragment as E, renderList as G, createSlots as J, normalizeClass as Q, createTextVNode as d, createCommentVNode as X, toDisplayString as c } from "vue";
|
|
2
2
|
import { ScalarModal as Z, ScalarSearchInput as _, ScalarSearchResultList as ee, ScalarSearchResultItem as te } from "@scalar/components";
|
|
3
3
|
import { nanoid as oe } from "nanoid";
|
|
4
4
|
import { lazyBus as ae } from "../../components/Content/Lazy/lazyBus.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, computed as c,
|
|
1
|
+
import { defineComponent as d, computed as c, createElementBlock as i, openBlock as r, withModifiers as f, createVNode as a, createElementVNode as h, unref as k, withCtx as C, createTextVNode as s, toDisplayString as u, Fragment as y } from "vue";
|
|
2
2
|
import { ScalarIcon as B } from "@scalar/components";
|
|
3
3
|
import b from "../../components/ScreenReader.vue.js";
|
|
4
4
|
import { useConfig as g } from "../../hooks/useConfig.js";
|
|
@@ -17,25 +17,25 @@ const v = ["method"], S = /* @__PURE__ */ d({
|
|
|
17
17
|
requestUid: o.operation.uid
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
-
return (e, n) => e.operation && l.value ? (
|
|
20
|
+
return (e, n) => e.operation && l.value ? (r(), i("button", {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "show-api-client-button",
|
|
23
23
|
method: e.operation.method,
|
|
24
24
|
type: "button",
|
|
25
25
|
onClick: f(m, ["stop"])
|
|
26
26
|
}, [
|
|
27
|
-
a(
|
|
27
|
+
a(k(B), {
|
|
28
28
|
icon: "Play",
|
|
29
29
|
size: "sm"
|
|
30
30
|
}),
|
|
31
|
-
n[0] || (n[0] =
|
|
31
|
+
n[0] || (n[0] = h("span", null, "Test Request", -1)),
|
|
32
32
|
a(b, null, {
|
|
33
33
|
default: C(() => [
|
|
34
34
|
s("(" + u(e.operation.method) + " " + u(e.operation.path) + ")", 1)
|
|
35
35
|
]),
|
|
36
36
|
_: 1
|
|
37
37
|
})
|
|
38
|
-
], 8, v)) : (
|
|
38
|
+
], 8, v)) : (r(), i(y, { key: 1 }, [
|
|
39
39
|
s(" ")
|
|
40
40
|
], 64));
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useConfig as b } from "./useConfig.js";
|
|
2
2
|
import { combineUrlAndPath as R } from "@scalar/oas-utils/helpers";
|
|
3
3
|
import { slug as i } from "github-slugger";
|
|
4
|
-
import {
|
|
4
|
+
import { inject as y, ref as l } from "vue";
|
|
5
5
|
const U = Symbol(), P = l(!1), k = l(""), x = l(""), T = (d) => {
|
|
6
6
|
const { isIntersectionEnabled: f, hash: o, hashPrefix: r } = y(U, {
|
|
7
7
|
isIntersectionEnabled: P,
|
package/dist/hooks/useSidebar.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { isOperationDeprecated as F } from "../libs/operation.js";
|
|
2
2
|
import { ssrState as Y } from "@scalar/oas-utils/helpers";
|
|
3
|
-
import {
|
|
3
|
+
import { reactive as z, ref as w, watch as U, computed as P } from "vue";
|
|
4
4
|
import { lazyBus as Z } from "../components/Content/Lazy/lazyBus.js";
|
|
5
5
|
import { useNavState as $ } from "./useNavState.js";
|
|
6
|
+
import { getHeadingsFromMarkdown as ee } from "../helpers/getHeadingsFromMarkdown.js";
|
|
6
7
|
import { getLowestHeadingLevel as q } from "../helpers/getLowestHeadingLevel.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { scrollToId as N } from "../helpers/scrollToId.js";
|
|
8
|
+
import { scrollToId as _ } from "../helpers/scrollToId.js";
|
|
9
|
+
import { hasModels as te } from "../helpers/hasModels.js";
|
|
10
|
+
import { getModels as N } from "../helpers/getModels.js";
|
|
11
|
+
import { hasWebhooks as se } from "../helpers/hasWebhooks.js";
|
|
12
12
|
const re = "introduction", O = w(null), c = w(void 0), g = z({});
|
|
13
13
|
function R(t) {
|
|
14
14
|
var p, s, l;
|
|
@@ -32,7 +32,7 @@ function I(t, a) {
|
|
|
32
32
|
}
|
|
33
33
|
const x = w([]);
|
|
34
34
|
function ae(t) {
|
|
35
|
-
const a =
|
|
35
|
+
const a = ee(t), i = q(a);
|
|
36
36
|
return a.filter((d) => (
|
|
37
37
|
// highest level, eg. # Introduction
|
|
38
38
|
d.depth === i || // second highest level, eg. ## Authentication
|
|
@@ -103,22 +103,22 @@ const Q = P(() => {
|
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
});
|
|
106
|
-
let S =
|
|
106
|
+
let S = te(c.value) && !J.value ? [
|
|
107
107
|
{
|
|
108
108
|
id: a(),
|
|
109
109
|
title: "Models",
|
|
110
110
|
show: !0,
|
|
111
|
-
children: Object.keys(
|
|
111
|
+
children: Object.keys(N(c.value) ?? {}).map((e) => {
|
|
112
112
|
var u;
|
|
113
113
|
const o = a({ name: e });
|
|
114
114
|
return s[o] = e, {
|
|
115
115
|
id: o,
|
|
116
|
-
title: ((u =
|
|
116
|
+
title: ((u = N(c.value)) == null ? void 0 : u[e]).title ?? e,
|
|
117
117
|
show: !0
|
|
118
118
|
};
|
|
119
119
|
})
|
|
120
120
|
}
|
|
121
|
-
] : [], k =
|
|
121
|
+
] : [], k = se(c.value) ? [
|
|
122
122
|
{
|
|
123
123
|
id: p(),
|
|
124
124
|
title: "Webhooks",
|
|
@@ -179,10 +179,10 @@ const Q = P(() => {
|
|
|
179
179
|
const i = (d = O.value) == null ? void 0 : d.getSectionId(t);
|
|
180
180
|
if (i && i !== t)
|
|
181
181
|
if (y[i])
|
|
182
|
-
|
|
182
|
+
_(t, a);
|
|
183
183
|
else {
|
|
184
184
|
const p = Z.on((s) => {
|
|
185
|
-
s.id === t && (
|
|
185
|
+
s.id === t && (_(t, a), p());
|
|
186
186
|
});
|
|
187
187
|
I(i, !0);
|
|
188
188
|
}
|